diff --git a/storybook-static/assets/ArticleCallToAction.stories-07029154.js b/storybook-static/assets/ArticleCallToAction.stories-0e3e3a5f.js similarity index 91% rename from storybook-static/assets/ArticleCallToAction.stories-07029154.js rename to storybook-static/assets/ArticleCallToAction.stories-0e3e3a5f.js index f417d616a1..542feb9065 100644 --- a/storybook-static/assets/ArticleCallToAction.stories-07029154.js +++ b/storybook-static/assets/ArticleCallToAction.stories-0e3e3a5f.js @@ -1,4 +1,4 @@ -import{j as y,a as o}from"./jsx-runtime-913be41c.js";import{y as t}from"./index-a7768622.js";import{B as l}from"./Button-82517beb.js";import{LoggedOutWithCount as T}from"./UsefulStatsButton.stories-8030bf0a.js";import{A as e}from"./UserEngagementWrapper-def85d30.js";import"./index-2506bfc3.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-fdf5fad0.js";import"./iframe-6116c30d.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-0d861f57.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-dbf187d0.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const Bo={title:"Components/ArticleCallToAction",component:e},i=()=>y(e,{author:r(),children:[o(l,{sx:{fontSize:2},children:"Leave a comment"}),o(T,{isLoggedIn:!1,hasUserVotedUseful:!1,votedUsefulCount:0,onUsefulClick:function(){throw new Error("Function not implemented.")}})]}),n=()=>o(e,{author:r(),children:o(T,{isLoggedIn:!1,hasUserVotedUseful:!1,votedUsefulCount:0,onUsefulClick:function(){throw new Error("Function not implemented.")}})}),a=()=>o(e,{author:r(),contributors:[{countryCode:t.address.countryCode(),userName:t.internet.userName(),isVerified:t.datatype.boolean()}],children:o(l,{children:"Action"})}),r=()=>({countryCode:t.address.countryCode(),userName:t.internet.userName(),isVerified:t.datatype.boolean()}),s=()=>o(e,{author:r(),contributors:t.helpers.uniqueArray(r,Math.floor(Math.random()*10)),children:o(l,{children:"Action"})});var m,c,p;i.parameters={...i.parameters,docs:{...(m=i.parameters)==null?void 0:m.docs,source:{originalSource:`() => +import{j as y,a as o}from"./jsx-runtime-913be41c.js";import{y as t}from"./index-a7768622.js";import{B as l}from"./Button-82517beb.js";import{LoggedOutWithCount as T}from"./UsefulStatsButton.stories-5cff0b1d.js";import{A as e}from"./UserEngagementWrapper-e4672b42.js";import"./index-2506bfc3.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-5061a594.js";import"./iframe-2c3043d3.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-12de6328.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-f42af098.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const Bo={title:"Components/ArticleCallToAction",component:e},i=()=>y(e,{author:r(),children:[o(l,{sx:{fontSize:2},children:"Leave a comment"}),o(T,{isLoggedIn:!1,hasUserVotedUseful:!1,votedUsefulCount:0,onUsefulClick:function(){throw new Error("Function not implemented.")}})]}),n=()=>o(e,{author:r(),children:o(T,{isLoggedIn:!1,hasUserVotedUseful:!1,votedUsefulCount:0,onUsefulClick:function(){throw new Error("Function not implemented.")}})}),a=()=>o(e,{author:r(),contributors:[{countryCode:t.address.countryCode(),userName:t.internet.userName(),isVerified:t.datatype.boolean()}],children:o(l,{children:"Action"})}),r=()=>({countryCode:t.address.countryCode(),userName:t.internet.userName(),isVerified:t.datatype.boolean()}),s=()=>o(e,{author:r(),contributors:t.helpers.uniqueArray(r,Math.floor(Math.random()*10)),children:o(l,{children:"Action"})});var m,c,p;i.parameters={...i.parameters,docs:{...(m=i.parameters)==null?void 0:m.docs,source:{originalSource:`() => @@ -18,4 +18,4 @@ import{j as y,a as o}from"./jsx-runtime-913be41c.js";import{y as t}from"./index- `,...(h=(C=a.parameters)==null?void 0:C.docs)==null?void 0:h.source}}};var U,g,k;s.parameters={...s.parameters,docs:{...(U=s.parameters)==null?void 0:U.docs,source:{originalSource:`() => `,...(k=(g=s.parameters)==null?void 0:g.docs)==null?void 0:k.source}}};const So=["ArticleCallToActionCommentAndUseful","ArticleCallToActionUseful","ArticleCallToActionSingleContributor","ArticleCallToActionMultipleContributors"];export{i as ArticleCallToActionCommentAndUseful,s as ArticleCallToActionMultipleContributors,a as ArticleCallToActionSingleContributor,n as ArticleCallToActionUseful,So as __namedExportsOrder,Bo as default}; -//# sourceMappingURL=ArticleCallToAction.stories-07029154.js.map +//# sourceMappingURL=ArticleCallToAction.stories-0e3e3a5f.js.map diff --git a/storybook-static/assets/ArticleCallToAction.stories-07029154.js.map b/storybook-static/assets/ArticleCallToAction.stories-0e3e3a5f.js.map similarity index 53% rename from storybook-static/assets/ArticleCallToAction.stories-07029154.js.map rename to storybook-static/assets/ArticleCallToAction.stories-0e3e3a5f.js.map index 18046b4a9f..d94afd1c71 100644 --- a/storybook-static/assets/ArticleCallToAction.stories-07029154.js.map +++ b/storybook-static/assets/ArticleCallToAction.stories-0e3e3a5f.js.map @@ -1 +1 @@ -{"version":3,"file":"ArticleCallToAction.stories-07029154.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"ArticleCallToAction.stories-0e3e3a5f.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/storybook-static/assets/ButtonShowReplies.stories-8930086f.js b/storybook-static/assets/ButtonShowReplies.stories-94628137.js similarity index 99% rename from storybook-static/assets/ButtonShowReplies.stories-8930086f.js rename to storybook-static/assets/ButtonShowReplies.stories-94628137.js index bfebfbb85f..ab31d0cdc1 100644 --- a/storybook-static/assets/ButtonShowReplies.stories-8930086f.js +++ b/storybook-static/assets/ButtonShowReplies.stories-94628137.js @@ -1,4 +1,4 @@ -import{a as Bi}from"./jsx-runtime-913be41c.js";import{c as Go}from"./utils-1b1bed3d.js";import{B as cn}from"./ButtonShowReplies-783defd9.js";import{c as Xt,a as Pm,g as Uf}from"./index-2506bfc3.js";import{q as Im,u as xm,t as Nm,f as Bf,w as Ff,a as jm,o as zf,i as Vf,k as Rm,b as Mm,m as Wo,l as Dm,h as km,s as _m,x as Cm,r as qf,p as Lm,d as Um,y as Bm}from"./identity-0adaf7d3.js";import{_ as Fm,k as Gf,a as zm,b as Vm,c as qm,d as Gm,e as Wm}from"./cloneDeep-ab381718.js";import{i as Qm}from"./isPlainObject-fde9c36b.js";import{_ as Km}from"./iframe-6116c30d.js";import"./index-a7768622.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"../sb-preview/runtime.js";function Ot(t,e,r){const i=typeof t;if(!r.includes(i))throw new TypeError(`${e} value must be ${r.join(" or ")}, received "${i}"`)}function Wf(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)}function Qf(){}function Hm(t,e,r=void 0){const i=e.replace(/\[(\d+)\]/g,".$1").split(".");let n=t;for(const s of i)if(n=Object(n)[s],n===void 0)return r;return n}var _t={},Ai={},Xm={get exports(){return Ai},set exports(t){Ai=t}};(function(t){const r=(s=0)=>o=>`\x1B[${38+s};5;${o}m`,i=(s=0)=>(o,a,c)=>`\x1B[${38+s};2;${o};${a};${c}m`;function n(){const s=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.gray=o.color.blackBright,o.bgColor.bgGray=o.bgColor.bgBlackBright,o.color.grey=o.color.blackBright,o.bgColor.bgGrey=o.bgColor.bgBlackBright;for(const[a,c]of Object.entries(o)){for(const[u,l]of Object.entries(c))o[u]={open:`\x1B[${l[0]}m`,close:`\x1B[${l[1]}m`},c[u]=o[u],s.set(l[0],l[1]);Object.defineProperty(o,a,{value:c,enumerable:!1})}return Object.defineProperty(o,"codes",{value:s,enumerable:!1}),o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",o.color.ansi256=r(),o.color.ansi16m=i(),o.bgColor.ansi256=r(10),o.bgColor.ansi16m=i(10),Object.defineProperties(o,{rgbToAnsi256:{value:(a,c,u)=>a===c&&c===u?a<8?16:a>248?231:Math.round((a-8)/247*24)+232:16+36*Math.round(a/255*5)+6*Math.round(c/255*5)+Math.round(u/255*5),enumerable:!1},hexToRgb:{value:a=>{const c=/(?[a-f\d]{6}|[a-f\d]{3})/i.exec(a.toString(16));if(!c)return[0,0,0];let{colorString:u}=c.groups;u.length===3&&(u=u.split("").map(f=>f+f).join(""));const l=Number.parseInt(u,16);return[l>>16&255,l>>8&255,l&255]},enumerable:!1},hexToAnsi256:{value:a=>o.rgbToAnsi256(...o.hexToRgb(a)),enumerable:!1}}),o}Object.defineProperty(t,"exports",{enumerable:!0,get:n})})(Xm);var Et={};Object.defineProperty(Et,"__esModule",{value:!0});Et.printIteratorEntries=Ym;Et.printIteratorValues=Zm;Et.printListItems=ey;Et.printObjectProperties=ty;const Jm=(t,e)=>{const r=Object.keys(t).sort(e);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(i=>{Object.getOwnPropertyDescriptor(t,i).enumerable&&r.push(i)}),r};function Ym(t,e,r,i,n,s,o=": "){let a="",c=t.next();if(!c.done){a+=e.spacingOuter;const u=r+e.indent;for(;!c.done;){const l=s(c.value[0],e,u,i,n),f=s(c.value[1],e,u,i,n);a+=u+l+o+f,c=t.next(),c.done?e.min||(a+=","):a+=","+e.spacingInner}a+=e.spacingOuter+r}return a}function Zm(t,e,r,i,n,s){let o="",a=t.next();if(!a.done){o+=e.spacingOuter;const c=r+e.indent;for(;!a.done;)o+=c+s(a.value,e,c,i,n),a=t.next(),a.done?e.min||(o+=","):o+=","+e.spacingInner;o+=e.spacingOuter+r}return o}function ey(t,e,r,i,n,s){let o="";if(t.length){o+=e.spacingOuter;const a=r+e.indent;for(let c=0;c{const o=t.toString();return o==="ArrayContaining"||o==="ArrayNotContaining"?++i>e.maxDepth?"["+o+"]":o+Ln+"["+(0,jc.printListItems)(t.sample,e,r,i,n,s)+"]":o==="ObjectContaining"||o==="ObjectNotContaining"?++i>e.maxDepth?"["+o+"]":o+Ln+"{"+(0,jc.printObjectProperties)(t.sample,e,r,i,n,s)+"}":o==="StringMatching"||o==="StringNotMatching"||o==="StringContaining"||o==="StringNotContaining"?o+Ln+s(t.sample,e,r,i,n):t.toAsymmetricMatcher()};It.serialize=Kf;const Hf=t=>t&&t.$$typeof===ry;It.test=Hf;const ny={serialize:Kf,test:Hf};var iy=ny;It.default=iy;var xt={},sy=({onlyFirst:t=!1}={})=>{const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")};Object.defineProperty(xt,"__esModule",{value:!0});xt.test=xt.serialize=xt.default=void 0;var Xf=Jf(sy),$e=Jf(Ai);function Jf(t){return t&&t.__esModule?t:{default:t}}const oy=t=>t.replace((0,Xf.default)(),e=>{switch(e){case $e.default.red.close:case $e.default.green.close:case $e.default.cyan.close:case $e.default.gray.close:case $e.default.white.close:case $e.default.yellow.close:case $e.default.bgRed.close:case $e.default.bgGreen.close:case $e.default.bgYellow.close:case $e.default.inverse.close:case $e.default.dim.close:case $e.default.bold.close:case $e.default.reset.open:case $e.default.reset.close:return"";case $e.default.red.open:return"";case $e.default.green.open:return"";case $e.default.cyan.open:return"";case $e.default.gray.open:return"";case $e.default.white.open:return"";case $e.default.yellow.open:return"";case $e.default.bgRed.open:return"";case $e.default.bgGreen.open:return"";case $e.default.bgYellow.open:return"";case $e.default.inverse.open:return"";case $e.default.dim.open:return"";case $e.default.bold.open:return"";default:return""}}),Yf=t=>typeof t=="string"&&!!t.match((0,Xf.default)());xt.test=Yf;const Zf=(t,e,r,i,n,s)=>s(oy(t),e,r,i,n);xt.serialize=Zf;const ay={serialize:Zf,test:Yf};var cy=ay;xt.default=cy;var Nt={};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.test=Nt.serialize=Nt.default=void 0;var Rc=Et;const uy=" ",ep=["DOMStringMap","NamedNodeMap"],ly=/^(HTML\w*Collection|NodeList)$/,fy=t=>ep.indexOf(t)!==-1||ly.test(t),tp=t=>t&&t.constructor&&!!t.constructor.name&&fy(t.constructor.name);Nt.test=tp;const py=t=>t.constructor.name==="NamedNodeMap",rp=(t,e,r,i,n,s)=>{const o=t.constructor.name;return++i>e.maxDepth?"["+o+"]":(e.min?"":o+uy)+(ep.indexOf(o)!==-1?"{"+(0,Rc.printObjectProperties)(py(t)?Array.from(t).reduce((a,c)=>(a[c.name]=c.value,a),{}):{...t},e,r,i,n,s)+"}":"["+(0,Rc.printListItems)(Array.from(t),e,r,i,n,s)+"]")};Nt.serialize=rp;const hy={serialize:rp,test:tp};var dy=hy;Nt.default=dy;var jt={},Fe={},Qo={};Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=my;function my(t){return t.replace(//g,">")}Object.defineProperty(Fe,"__esModule",{value:!0});Fe.printText=Fe.printProps=Fe.printElementAsLeaf=Fe.printElement=Fe.printComment=Fe.printChildren=void 0;var np=yy(Qo);function yy(t){return t&&t.__esModule?t:{default:t}}const gy=(t,e,r,i,n,s,o)=>{const a=i+r.indent,c=r.colors;return t.map(u=>{const l=e[u];let f=o(l,r,a,n,s);return typeof l!="string"&&(f.indexOf(` +import{a as Bi}from"./jsx-runtime-913be41c.js";import{c as Go}from"./utils-1b1bed3d.js";import{B as cn}from"./ButtonShowReplies-783defd9.js";import{c as Xt,a as Pm,g as Uf}from"./index-2506bfc3.js";import{q as Im,u as xm,t as Nm,f as Bf,w as Ff,a as jm,o as zf,i as Vf,k as Rm,b as Mm,m as Wo,l as Dm,h as km,s as _m,x as Cm,r as qf,p as Lm,d as Um,y as Bm}from"./identity-0adaf7d3.js";import{_ as Fm,k as Gf,a as zm,b as Vm,c as qm,d as Gm,e as Wm}from"./cloneDeep-ab381718.js";import{i as Qm}from"./isPlainObject-fde9c36b.js";import{_ as Km}from"./iframe-2c3043d3.js";import"./index-a7768622.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"../sb-preview/runtime.js";function Ot(t,e,r){const i=typeof t;if(!r.includes(i))throw new TypeError(`${e} value must be ${r.join(" or ")}, received "${i}"`)}function Wf(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)}function Qf(){}function Hm(t,e,r=void 0){const i=e.replace(/\[(\d+)\]/g,".$1").split(".");let n=t;for(const s of i)if(n=Object(n)[s],n===void 0)return r;return n}var _t={},Ai={},Xm={get exports(){return Ai},set exports(t){Ai=t}};(function(t){const r=(s=0)=>o=>`\x1B[${38+s};5;${o}m`,i=(s=0)=>(o,a,c)=>`\x1B[${38+s};2;${o};${a};${c}m`;function n(){const s=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.gray=o.color.blackBright,o.bgColor.bgGray=o.bgColor.bgBlackBright,o.color.grey=o.color.blackBright,o.bgColor.bgGrey=o.bgColor.bgBlackBright;for(const[a,c]of Object.entries(o)){for(const[u,l]of Object.entries(c))o[u]={open:`\x1B[${l[0]}m`,close:`\x1B[${l[1]}m`},c[u]=o[u],s.set(l[0],l[1]);Object.defineProperty(o,a,{value:c,enumerable:!1})}return Object.defineProperty(o,"codes",{value:s,enumerable:!1}),o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",o.color.ansi256=r(),o.color.ansi16m=i(),o.bgColor.ansi256=r(10),o.bgColor.ansi16m=i(10),Object.defineProperties(o,{rgbToAnsi256:{value:(a,c,u)=>a===c&&c===u?a<8?16:a>248?231:Math.round((a-8)/247*24)+232:16+36*Math.round(a/255*5)+6*Math.round(c/255*5)+Math.round(u/255*5),enumerable:!1},hexToRgb:{value:a=>{const c=/(?[a-f\d]{6}|[a-f\d]{3})/i.exec(a.toString(16));if(!c)return[0,0,0];let{colorString:u}=c.groups;u.length===3&&(u=u.split("").map(f=>f+f).join(""));const l=Number.parseInt(u,16);return[l>>16&255,l>>8&255,l&255]},enumerable:!1},hexToAnsi256:{value:a=>o.rgbToAnsi256(...o.hexToRgb(a)),enumerable:!1}}),o}Object.defineProperty(t,"exports",{enumerable:!0,get:n})})(Xm);var Et={};Object.defineProperty(Et,"__esModule",{value:!0});Et.printIteratorEntries=Ym;Et.printIteratorValues=Zm;Et.printListItems=ey;Et.printObjectProperties=ty;const Jm=(t,e)=>{const r=Object.keys(t).sort(e);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(i=>{Object.getOwnPropertyDescriptor(t,i).enumerable&&r.push(i)}),r};function Ym(t,e,r,i,n,s,o=": "){let a="",c=t.next();if(!c.done){a+=e.spacingOuter;const u=r+e.indent;for(;!c.done;){const l=s(c.value[0],e,u,i,n),f=s(c.value[1],e,u,i,n);a+=u+l+o+f,c=t.next(),c.done?e.min||(a+=","):a+=","+e.spacingInner}a+=e.spacingOuter+r}return a}function Zm(t,e,r,i,n,s){let o="",a=t.next();if(!a.done){o+=e.spacingOuter;const c=r+e.indent;for(;!a.done;)o+=c+s(a.value,e,c,i,n),a=t.next(),a.done?e.min||(o+=","):o+=","+e.spacingInner;o+=e.spacingOuter+r}return o}function ey(t,e,r,i,n,s){let o="";if(t.length){o+=e.spacingOuter;const a=r+e.indent;for(let c=0;c{const o=t.toString();return o==="ArrayContaining"||o==="ArrayNotContaining"?++i>e.maxDepth?"["+o+"]":o+Ln+"["+(0,jc.printListItems)(t.sample,e,r,i,n,s)+"]":o==="ObjectContaining"||o==="ObjectNotContaining"?++i>e.maxDepth?"["+o+"]":o+Ln+"{"+(0,jc.printObjectProperties)(t.sample,e,r,i,n,s)+"}":o==="StringMatching"||o==="StringNotMatching"||o==="StringContaining"||o==="StringNotContaining"?o+Ln+s(t.sample,e,r,i,n):t.toAsymmetricMatcher()};It.serialize=Kf;const Hf=t=>t&&t.$$typeof===ry;It.test=Hf;const ny={serialize:Kf,test:Hf};var iy=ny;It.default=iy;var xt={},sy=({onlyFirst:t=!1}={})=>{const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")};Object.defineProperty(xt,"__esModule",{value:!0});xt.test=xt.serialize=xt.default=void 0;var Xf=Jf(sy),$e=Jf(Ai);function Jf(t){return t&&t.__esModule?t:{default:t}}const oy=t=>t.replace((0,Xf.default)(),e=>{switch(e){case $e.default.red.close:case $e.default.green.close:case $e.default.cyan.close:case $e.default.gray.close:case $e.default.white.close:case $e.default.yellow.close:case $e.default.bgRed.close:case $e.default.bgGreen.close:case $e.default.bgYellow.close:case $e.default.inverse.close:case $e.default.dim.close:case $e.default.bold.close:case $e.default.reset.open:case $e.default.reset.close:return"";case $e.default.red.open:return"";case $e.default.green.open:return"";case $e.default.cyan.open:return"";case $e.default.gray.open:return"";case $e.default.white.open:return"";case $e.default.yellow.open:return"";case $e.default.bgRed.open:return"";case $e.default.bgGreen.open:return"";case $e.default.bgYellow.open:return"";case $e.default.inverse.open:return"";case $e.default.dim.open:return"";case $e.default.bold.open:return"";default:return""}}),Yf=t=>typeof t=="string"&&!!t.match((0,Xf.default)());xt.test=Yf;const Zf=(t,e,r,i,n,s)=>s(oy(t),e,r,i,n);xt.serialize=Zf;const ay={serialize:Zf,test:Yf};var cy=ay;xt.default=cy;var Nt={};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.test=Nt.serialize=Nt.default=void 0;var Rc=Et;const uy=" ",ep=["DOMStringMap","NamedNodeMap"],ly=/^(HTML\w*Collection|NodeList)$/,fy=t=>ep.indexOf(t)!==-1||ly.test(t),tp=t=>t&&t.constructor&&!!t.constructor.name&&fy(t.constructor.name);Nt.test=tp;const py=t=>t.constructor.name==="NamedNodeMap",rp=(t,e,r,i,n,s)=>{const o=t.constructor.name;return++i>e.maxDepth?"["+o+"]":(e.min?"":o+uy)+(ep.indexOf(o)!==-1?"{"+(0,Rc.printObjectProperties)(py(t)?Array.from(t).reduce((a,c)=>(a[c.name]=c.value,a),{}):{...t},e,r,i,n,s)+"}":"["+(0,Rc.printListItems)(Array.from(t),e,r,i,n,s)+"]")};Nt.serialize=rp;const hy={serialize:rp,test:tp};var dy=hy;Nt.default=dy;var jt={},Fe={},Qo={};Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=my;function my(t){return t.replace(//g,">")}Object.defineProperty(Fe,"__esModule",{value:!0});Fe.printText=Fe.printProps=Fe.printElementAsLeaf=Fe.printElement=Fe.printComment=Fe.printChildren=void 0;var np=yy(Qo);function yy(t){return t&&t.__esModule?t:{default:t}}const gy=(t,e,r,i,n,s,o)=>{const a=i+r.indent,c=r.colors;return t.map(u=>{const l=e[u];let f=o(l,r,a,n,s);return typeof l!="string"&&(f.indexOf(` `)!==-1&&(f=r.spacingOuter+a+f+r.spacingOuter+i),f="{"+f+"}"),r.spacingInner+i+c.prop.open+u+c.prop.close+"="+c.value.open+f+c.value.close}).join("")};Fe.printProps=gy;const by=(t,e,r,i,n,s)=>t.map(o=>e.spacingOuter+r+(typeof o=="string"?ip(o,e):s(o,e,r,i,n))).join("");Fe.printChildren=by;const ip=(t,e)=>{const r=e.colors.content;return r.open+(0,np.default)(t)+r.close};Fe.printText=ip;const vy=(t,e)=>{const r=e.colors.comment;return r.open+""+r.close};Fe.printComment=vy;const wy=(t,e,r,i,n)=>{const s=i.colors.tag;return s.open+"<"+t+(e&&s.close+e+i.spacingOuter+n+s.open)+(r?">"+s.close+r+i.spacingOuter+n+s.open+""+s.close};Fe.printElement=wy;const Ey=(t,e)=>{const r=e.colors.tag;return r.open+"<"+t+r.close+" …"+r.open+" />"+r.close};Fe.printElementAsLeaf=Ey;Object.defineProperty(jt,"__esModule",{value:!0});jt.test=jt.serialize=jt.default=void 0;var cr=Fe;const Sy=1,sp=3,op=8,ap=11,Ay=/^((HTML|SVG)\w*)?Element$/,$y=t=>{try{return typeof t.hasAttribute=="function"&&t.hasAttribute("is")}catch{return!1}},Oy=t=>{const e=t.constructor.name,{nodeType:r,tagName:i}=t,n=typeof i=="string"&&i.includes("-")||$y(t);return r===Sy&&(Ay.test(e)||n)||r===sp&&e==="Text"||r===op&&e==="Comment"||r===ap&&e==="DocumentFragment"},cp=t=>{var e;return(t==null||(e=t.constructor)===null||e===void 0?void 0:e.name)&&Oy(t)};jt.test=cp;function Ty(t){return t.nodeType===sp}function Py(t){return t.nodeType===op}function $s(t){return t.nodeType===ap}const up=(t,e,r,i,n,s)=>{if(Ty(t))return(0,cr.printText)(t.data,e);if(Py(t))return(0,cr.printComment)(t.data,e);const o=$s(t)?"DocumentFragment":t.tagName.toLowerCase();return++i>e.maxDepth?(0,cr.printElementAsLeaf)(o,e):(0,cr.printElement)(o,(0,cr.printProps)($s(t)?[]:Array.from(t.attributes).map(a=>a.name).sort(),$s(t)?{}:Array.from(t.attributes).reduce((a,c)=>(a[c.name]=c.value,a),{}),e,r+e.indent,i,n,s),(0,cr.printChildren)(Array.prototype.slice.call(t.childNodes||t.children),e,r+e.indent,i,n,s),e,r)};jt.serialize=up;const Iy={serialize:up,test:cp};var xy=Iy;jt.default=xy;var Rt={};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.test=Rt.serialize=Rt.default=void 0;var rn=Et;const Ny="@@__IMMUTABLE_ITERABLE__@@",jy="@@__IMMUTABLE_LIST__@@",Ry="@@__IMMUTABLE_KEYED__@@",My="@@__IMMUTABLE_MAP__@@",Mc="@@__IMMUTABLE_ORDERED__@@",Dy="@@__IMMUTABLE_RECORD__@@",ky="@@__IMMUTABLE_SEQ__@@",_y="@@__IMMUTABLE_SET__@@",Cy="@@__IMMUTABLE_STACK__@@",Nr=t=>"Immutable."+t,Fi=t=>"["+t+"]",nn=" ",Dc="…",Ly=(t,e,r,i,n,s,o)=>++i>e.maxDepth?Fi(Nr(o)):Nr(o)+nn+"{"+(0,rn.printIteratorEntries)(t.entries(),e,r,i,n,s)+"}";function Uy(t){let e=0;return{next(){if(e{const o=Nr(t._name||"Record");return++i>e.maxDepth?Fi(o):o+nn+"{"+(0,rn.printIteratorEntries)(Uy(t),e,r,i,n,s)+"}"},Fy=(t,e,r,i,n,s)=>{const o=Nr("Seq");return++i>e.maxDepth?Fi(o):t[Ry]?o+nn+"{"+(t._iter||t._object?(0,rn.printIteratorEntries)(t.entries(),e,r,i,n,s):Dc)+"}":o+nn+"["+(t._iter||t._array||t._collection||t._iterable?(0,rn.printIteratorValues)(t.values(),e,r,i,n,s):Dc)+"]"},Os=(t,e,r,i,n,s,o)=>++i>e.maxDepth?Fi(Nr(o)):Nr(o)+nn+"["+(0,rn.printIteratorValues)(t.values(),e,r,i,n,s)+"]",lp=(t,e,r,i,n,s)=>t[My]?Ly(t,e,r,i,n,s,t[Mc]?"OrderedMap":"Map"):t[jy]?Os(t,e,r,i,n,s,"List"):t[_y]?Os(t,e,r,i,n,s,t[Mc]?"OrderedSet":"Set"):t[Cy]?Os(t,e,r,i,n,s,"Stack"):t[ky]?Fy(t,e,r,i,n,s):By(t,e,r,i,n,s);Rt.serialize=lp;const fp=t=>t&&(t[Ny]===!0||t[Dy]===!0);Rt.test=fp;const zy={serialize:lp,test:fp};var Vy=zy;Rt.default=Vy;var Mt={},go={},qy={get exports(){return go},set exports(t){go=t}},Se={};/** @license React v17.0.2 * react-is.production.min.js * @@ -498,4 +498,4 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`)}if(m }`,...(kf=(Df=li.parameters)==null?void 0:Df.docs)==null?void 0:kf.source}}};var _f,Cf,Lf;fi.parameters={...fi.parameters,docs:{...(_f=fi.parameters)==null?void 0:_f.docs,source:{originalSource:`() => { return ; }`,...(Lf=(Cf=fi.parameters)==null?void 0:Cf.docs)==null?void 0:Lf.source}}};const aj=["Default","RepliesShowing","OneReply","NoReplies"];export{ci as Default,fi as NoReplies,li as OneReply,ui as RepliesShowing,aj as __namedExportsOrder,oj as default}; -//# sourceMappingURL=ButtonShowReplies.stories-8930086f.js.map +//# sourceMappingURL=ButtonShowReplies.stories-94628137.js.map diff --git a/storybook-static/assets/ButtonShowReplies.stories-8930086f.js.map b/storybook-static/assets/ButtonShowReplies.stories-94628137.js.map similarity index 99% rename from storybook-static/assets/ButtonShowReplies.stories-8930086f.js.map rename to storybook-static/assets/ButtonShowReplies.stories-94628137.js.map index f2b68dc519..3cf7b51e94 100644 --- a/storybook-static/assets/ButtonShowReplies.stories-8930086f.js.map +++ b/storybook-static/assets/ButtonShowReplies.stories-94628137.js.map @@ -1 +1 @@ -{"version":3,"file":"ButtonShowReplies.stories-8930086f.js","sources":["../../../../node_modules/@vitest/utils/dist/helpers.js","../../../../node_modules/pretty-format/node_modules/ansi-styles/index.js","../../../../node_modules/pretty-format/build/collections.js","../../../../node_modules/pretty-format/build/plugins/AsymmetricMatcher.js","../../../../node_modules/ansi-regex/index.js","../../../../node_modules/pretty-format/build/plugins/ConvertAnsi.js","../../../../node_modules/pretty-format/build/plugins/DOMCollection.js","../../../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js","../../../../node_modules/pretty-format/build/plugins/lib/markup.js","../../../../node_modules/pretty-format/build/plugins/DOMElement.js","../../../../node_modules/pretty-format/build/plugins/Immutable.js","../../../../node_modules/pretty-format/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/pretty-format/node_modules/react-is/index.js","../../../../node_modules/pretty-format/build/plugins/ReactElement.js","../../../../node_modules/pretty-format/build/plugins/ReactTestComponent.js","../../../../node_modules/pretty-format/build/index.js","../../../../node_modules/@vitest/utils/dist/chunk-colors.js","../../../../node_modules/has-symbols/shams.js","../../../../node_modules/has-tostringtag/shams.js","../../../../node_modules/has-symbols/index.js","../../../../node_modules/function-bind/implementation.js","../../../../node_modules/function-bind/index.js","../../../../node_modules/has/src/index.js","../../../../node_modules/get-intrinsic/index.js","../../../../node_modules/call-bind/index.js","../../../../node_modules/call-bind/callBound.js","../../../../node_modules/is-arguments/index.js","../../../../node_modules/is-generator-function/index.js","../../../../node_modules/is-callable/index.js","../../../../node_modules/for-each/index.js","../../../../node_modules/available-typed-arrays/index.js","../../../../node_modules/gopd/index.js","../../../../node_modules/is-typed-array/index.js","../../../../node_modules/which-typed-array/index.js","../../../../node_modules/util/support/types.js","../../../../node_modules/util/support/isBufferBrowser.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/util/util.js","../../__vite-browser-external","../../../../node_modules/loupe/loupe.js","../../../../node_modules/@vitest/utils/dist/index.js","../../../../node_modules/concordance/lib/Circular.js","../../../../node_modules/concordance/lib/constants.js","../../../../node_modules/concordance/lib/Registry.js","../../../../node_modules/concordance/lib/lineBuilder.js","../../../../node_modules/concordance/lib/formatUtils.js","../../../../node_modules/concordance/lib/getObjectKeys.js","../../../../node_modules/concordance/lib/hasLength.js","../../../../node_modules/concordance/lib/recursorUtils.js","../../../../node_modules/concordance/lib/metaDescriptors/stats.js","../../../../node_modules/concordance/lib/complexValues/object.js","../../../../node_modules/concordance/lib/complexValues/arguments.js","../../../../node_modules/concordance/lib/complexValues/typedArray.js","../../../../node_modules/concordance/lib/complexValues/arrayBuffer.js","../../../../node_modules/fast-diff/diff.js","../../../../node_modules/concordance/lib/primitiveValues/string.js","../../../../node_modules/concordance/lib/complexValues/boxed.js","../../../../node_modules/concordance/lib/complexValues/dataView.js","../../../../node_modules/time-zone/index.js","../../../../node_modules/date-time/index.js","../../../../node_modules/concordance/lib/complexValues/date.js","../../../../node_modules/concordance/lib/isEnumerable.js","../../../../node_modules/concordance/lib/complexValues/error.js","../../../../node_modules/concordance/lib/complexValues/function.js","../../../../node_modules/concordance/lib/complexValues/global.js","../../../../node_modules/concordance/lib/complexValues/map.js","../../../../node_modules/concordance/lib/complexValues/promise.js","../../../../node_modules/concordance/lib/complexValues/regexp.js","../../../../node_modules/concordance/lib/complexValues/set.js","../../../../node_modules/concordance/lib/getCtor.js","../../../../node_modules/concordance/lib/getStringTag.js","../../../../node_modules/concordance/lib/metaDescriptors/item.js","../../../../node_modules/lodash/_assignMergeValue.js","../../../../node_modules/lodash/isArrayLikeObject.js","../../../../node_modules/lodash/_safeGet.js","../../../../node_modules/lodash/toPlainObject.js","../../../../node_modules/lodash/_baseMergeDeep.js","../../../../node_modules/lodash/_baseMerge.js","../../../../node_modules/lodash/_apply.js","../../../../node_modules/lodash/_overRest.js","../../../../node_modules/lodash/constant.js","../../../../node_modules/lodash/_baseSetToString.js","../../../../node_modules/lodash/_shortOut.js","../../../../node_modules/lodash/_setToString.js","../../../../node_modules/lodash/_baseRest.js","../../../../node_modules/lodash/_isIterateeCall.js","../../../../node_modules/lodash/_createAssigner.js","../../../../node_modules/lodash/merge.js","../../../../node_modules/semver/internal/constants.js","../../../../node_modules/semver/internal/debug.js","../../../../node_modules/semver/internal/re.js","../../../../node_modules/semver/internal/parse-options.js","../../../../node_modules/semver/internal/identifiers.js","../../../../node_modules/semver/classes/semver.js","../../../../node_modules/semver/functions/parse.js","../../../../node_modules/semver/functions/valid.js","../../../../node_modules/semver/functions/clean.js","../../../../node_modules/semver/functions/inc.js","../../../../node_modules/semver/functions/diff.js","../../../../node_modules/semver/functions/major.js","../../../../node_modules/semver/functions/minor.js","../../../../node_modules/semver/functions/patch.js","../../../../node_modules/semver/functions/prerelease.js","../../../../node_modules/semver/functions/compare.js","../../../../node_modules/semver/functions/rcompare.js","../../../../node_modules/semver/functions/compare-loose.js","../../../../node_modules/semver/functions/compare-build.js","../../../../node_modules/semver/functions/sort.js","../../../../node_modules/semver/functions/rsort.js","../../../../node_modules/semver/functions/gt.js","../../../../node_modules/semver/functions/lt.js","../../../../node_modules/semver/functions/eq.js","../../../../node_modules/semver/functions/neq.js","../../../../node_modules/semver/functions/gte.js","../../../../node_modules/semver/functions/lte.js","../../../../node_modules/semver/functions/cmp.js","../../../../node_modules/semver/functions/coerce.js","../../../../node_modules/yallist/iterator.js","../../../../node_modules/yallist/yallist.js","../../../../node_modules/lru-cache/index.js","../../../../node_modules/semver/classes/range.js","../../../../node_modules/semver/classes/comparator.js","../../../../node_modules/semver/functions/satisfies.js","../../../../node_modules/semver/ranges/to-comparators.js","../../../../node_modules/semver/ranges/max-satisfying.js","../../../../node_modules/semver/ranges/min-satisfying.js","../../../../node_modules/semver/ranges/min-version.js","../../../../node_modules/semver/ranges/valid.js","../../../../node_modules/semver/ranges/outside.js","../../../../node_modules/semver/ranges/gtr.js","../../../../node_modules/semver/ranges/ltr.js","../../../../node_modules/semver/ranges/intersects.js","../../../../node_modules/semver/ranges/simplify.js","../../../../node_modules/semver/ranges/subset.js","../../../../node_modules/semver/index.js","../../../../node_modules/js-string-escape/index.js","../../../../node_modules/well-known-symbols/index.js","../../../../node_modules/concordance/lib/primitiveValues/symbol.js","../../../../node_modules/concordance/lib/metaDescriptors/property.js","../../../../node_modules/concordance/lib/pluginRegistry.js","../../../../node_modules/concordance/lib/themeUtils.js","../../../../node_modules/concordance/lib/metaDescriptors/mapEntry.js","../../../../node_modules/concordance/lib/primitiveValues/bigInt.js","../../../../node_modules/concordance/lib/primitiveValues/boolean.js","../../../../node_modules/concordance/lib/primitiveValues/null.js","../../../../node_modules/concordance/lib/primitiveValues/number.js","../../../../node_modules/concordance/lib/primitiveValues/undefined.js","../../../../node_modules/concordance/lib/describe.js","../../../../node_modules/concordance/lib/shouldCompareDeep.js","../../../../node_modules/concordance/lib/symbolProperties.js","../../../../node_modules/concordance/lib/compare.js","../../../../node_modules/concordance/lib/Indenter.js","../../../../node_modules/concordance/lib/diff.js","../../../../node_modules/concordance/lib/format.js","../../../../node_modules/blueimp-md5/js/md5.js","../../../../node_modules/md5-hex/browser.js","../../../../node_modules/lodash/_isFlattenable.js","../../../../node_modules/lodash/_baseFlatten.js","../../../../node_modules/lodash/flattenDeep.js","../../../../node_modules/concordance/lib/encoder.js","../../../../node_modules/concordance/lib/metaDescriptors/pointer.js","../../../../node_modules/concordance/lib/serialize.js","../../../../node_modules/concordance/index.js","../../../../node_modules/@vitest/utils/dist/diff.js","../../../../node_modules/@vitest/runner/dist/chunk-tasks.js","../../../../node_modules/pathe/dist/shared/pathe.92c04245.mjs","../../../../node_modules/@vitest/runner/dist/index.js","../../../../node_modules/vitest/dist/vendor-global.6795f91f.js","../../../../node_modules/vitest/dist/vendor-index.fad2598b.js","../../../../node_modules/assertion-error/index.js","../../../../node_modules/pathval/index.js","../../../../node_modules/chai/lib/chai/utils/flag.js","../../../../node_modules/chai/lib/chai/utils/test.js","../../../../node_modules/type-detect/type-detect.js","../../../../node_modules/chai/lib/chai/utils/expectTypes.js","../../../../node_modules/chai/lib/chai/utils/getActual.js","../../../../node_modules/get-func-name/index.js","../../../../node_modules/chai/lib/chai/config.js","../../../../node_modules/chai/lib/chai/utils/inspect.js","../../../../node_modules/chai/lib/chai/utils/objDisplay.js","../../../../node_modules/chai/lib/chai/utils/getMessage.js","../../../../node_modules/chai/lib/chai/utils/transferFlags.js","../../../../node_modules/deep-eql/index.js","../../../../node_modules/chai/lib/chai/utils/isProxyEnabled.js","../../../../node_modules/chai/lib/chai/utils/addProperty.js","../../../../node_modules/chai/lib/chai/utils/addLengthGuard.js","../../../../node_modules/chai/lib/chai/utils/getProperties.js","../../../../node_modules/chai/lib/chai/utils/proxify.js","../../../../node_modules/chai/lib/chai/utils/addMethod.js","../../../../node_modules/chai/lib/chai/utils/overwriteProperty.js","../../../../node_modules/chai/lib/chai/utils/overwriteMethod.js","../../../../node_modules/chai/lib/chai/utils/addChainableMethod.js","../../../../node_modules/chai/lib/chai/utils/overwriteChainableMethod.js","../../../../node_modules/chai/lib/chai/utils/compareByInspect.js","../../../../node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js","../../../../node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js","../../../../node_modules/check-error/index.js","../../../../node_modules/chai/lib/chai/utils/isNaN.js","../../../../node_modules/chai/lib/chai/utils/getOperator.js","../../../../node_modules/chai/lib/chai/utils/index.js","../../../../node_modules/chai/lib/chai/assertion.js","../../../../node_modules/chai/lib/chai/core/assertions.js","../../../../node_modules/chai/lib/chai/interface/expect.js","../../../../node_modules/chai/lib/chai/interface/should.js","../../../../node_modules/chai/lib/chai/interface/assert.js","../../../../node_modules/chai/lib/chai.js","../../../../node_modules/chai/index.js","../../../../node_modules/chai/index.mjs","../../../../node_modules/vitest/dist/vendor-_commonjsHelpers.76cdd49e.js","../../../../node_modules/tinyspy/dist/index.js","../../../../node_modules/@vitest/spy/dist/index.js","../../../../node_modules/@vitest/expect/dist/index.js","../../../../node_modules/@vitest/snapshot/dist/index.js","../../../../node_modules/vitest/dist/vendor-tasks.042d6084.js","../../../../node_modules/vitest/dist/vendor-vi.a3ff54b1.js"],"sourcesContent":["function notNullish(v) {\n return v != null;\n}\nfunction assertTypes(value, name, types) {\n const receivedType = typeof value;\n const pass = types.includes(receivedType);\n if (!pass)\n throw new TypeError(`${name} value must be ${types.join(\" or \")}, received \"${receivedType}\"`);\n}\nfunction isPrimitive(value) {\n return value === null || typeof value !== \"function\" && typeof value !== \"object\";\n}\nfunction slash(path) {\n return path.replace(/\\\\/g, \"/\");\n}\nfunction parseRegexp(input) {\n const m = input.match(/(\\/?)(.+)\\1([a-z]*)/i);\n if (!m)\n return /$^/;\n if (m[3] && !/^(?!.*?(.).*?\\1)[gmixXsuUAJ]+$/.test(m[3]))\n return RegExp(input);\n return new RegExp(m[2], m[3]);\n}\nfunction toArray(array) {\n if (array === null || array === void 0)\n array = [];\n if (Array.isArray(array))\n return array;\n return [array];\n}\nfunction isObject(item) {\n return item != null && typeof item === \"object\" && !Array.isArray(item);\n}\nfunction isFinalObj(obj) {\n return obj === Object.prototype || obj === Function.prototype || obj === RegExp.prototype;\n}\nfunction getType(value) {\n return Object.prototype.toString.apply(value).slice(8, -1);\n}\nfunction collectOwnProperties(obj, collector) {\n const collect = typeof collector === \"function\" ? collector : (key) => collector.add(key);\n Object.getOwnPropertyNames(obj).forEach(collect);\n Object.getOwnPropertySymbols(obj).forEach(collect);\n}\nfunction getOwnProperties(obj) {\n const ownProps = /* @__PURE__ */ new Set();\n if (isFinalObj(obj))\n return [];\n collectOwnProperties(obj, ownProps);\n return Array.from(ownProps);\n}\nfunction deepClone(val) {\n const seen = /* @__PURE__ */ new WeakMap();\n return clone(val, seen);\n}\nfunction clone(val, seen) {\n let k, out;\n if (seen.has(val))\n return seen.get(val);\n if (Array.isArray(val)) {\n out = Array(k = val.length);\n seen.set(val, out);\n while (k--)\n out[k] = clone(val[k], seen);\n return out;\n }\n if (Object.prototype.toString.call(val) === \"[object Object]\") {\n out = Object.create(Object.getPrototypeOf(val));\n seen.set(val, out);\n const props = getOwnProperties(val);\n for (const k2 of props) {\n const descriptor = Object.getOwnPropertyDescriptor(val, k2);\n if (!descriptor)\n continue;\n const cloned = clone(val[k2], seen);\n if (\"get\" in descriptor) {\n Object.defineProperty(out, k2, {\n ...descriptor,\n get() {\n return cloned;\n }\n });\n } else {\n Object.defineProperty(out, k2, {\n ...descriptor,\n value: cloned\n });\n }\n }\n return out;\n }\n return val;\n}\nfunction noop() {\n}\nfunction objectAttr(source, path, defaultValue = void 0) {\n const paths = path.replace(/\\[(\\d+)\\]/g, \".$1\").split(\".\");\n let result = source;\n for (const p of paths) {\n result = Object(result)[p];\n if (result === void 0)\n return defaultValue;\n }\n return result;\n}\nfunction createDefer() {\n let resolve = null;\n let reject = null;\n const p = new Promise((_resolve, _reject) => {\n resolve = _resolve;\n reject = _reject;\n });\n p.resolve = resolve;\n p.reject = reject;\n return p;\n}\nfunction getCallLastIndex(code) {\n let charIndex = -1;\n let inString = null;\n let startedBracers = 0;\n let endedBracers = 0;\n let beforeChar = null;\n while (charIndex <= code.length) {\n beforeChar = code[charIndex];\n charIndex++;\n const char = code[charIndex];\n const isCharString = char === '\"' || char === \"'\" || char === \"`\";\n if (isCharString && beforeChar !== \"\\\\\") {\n if (inString === char)\n inString = null;\n else if (!inString)\n inString = char;\n }\n if (!inString) {\n if (char === \"(\")\n startedBracers++;\n if (char === \")\")\n endedBracers++;\n }\n if (startedBracers && endedBracers && startedBracers === endedBracers)\n return charIndex;\n }\n return null;\n}\n\nexport { assertTypes, clone, createDefer, deepClone, getCallLastIndex, getOwnProperties, getType, isObject, isPrimitive, noop, notNullish, objectAttr, parseRegexp, slash, toArray };\n","'use strict';\n\nconst ANSI_BACKGROUND_OFFSET = 10;\n\nconst wrapAnsi256 = (offset = 0) => code => `\\u001B[${38 + offset};5;${code}m`;\n\nconst wrapAnsi16m = (offset = 0) => (red, green, blue) => `\\u001B[${38 + offset};2;${red};${green};${blue}m`;\n\nfunction assembleStyles() {\n\tconst codes = new Map();\n\tconst styles = {\n\t\tmodifier: {\n\t\t\treset: [0, 0],\n\t\t\t// 21 isn't widely supported and 22 does the same thing\n\t\t\tbold: [1, 22],\n\t\t\tdim: [2, 22],\n\t\t\titalic: [3, 23],\n\t\t\tunderline: [4, 24],\n\t\t\toverline: [53, 55],\n\t\t\tinverse: [7, 27],\n\t\t\thidden: [8, 28],\n\t\t\tstrikethrough: [9, 29]\n\t\t},\n\t\tcolor: {\n\t\t\tblack: [30, 39],\n\t\t\tred: [31, 39],\n\t\t\tgreen: [32, 39],\n\t\t\tyellow: [33, 39],\n\t\t\tblue: [34, 39],\n\t\t\tmagenta: [35, 39],\n\t\t\tcyan: [36, 39],\n\t\t\twhite: [37, 39],\n\n\t\t\t// Bright color\n\t\t\tblackBright: [90, 39],\n\t\t\tredBright: [91, 39],\n\t\t\tgreenBright: [92, 39],\n\t\t\tyellowBright: [93, 39],\n\t\t\tblueBright: [94, 39],\n\t\t\tmagentaBright: [95, 39],\n\t\t\tcyanBright: [96, 39],\n\t\t\twhiteBright: [97, 39]\n\t\t},\n\t\tbgColor: {\n\t\t\tbgBlack: [40, 49],\n\t\t\tbgRed: [41, 49],\n\t\t\tbgGreen: [42, 49],\n\t\t\tbgYellow: [43, 49],\n\t\t\tbgBlue: [44, 49],\n\t\t\tbgMagenta: [45, 49],\n\t\t\tbgCyan: [46, 49],\n\t\t\tbgWhite: [47, 49],\n\n\t\t\t// Bright color\n\t\t\tbgBlackBright: [100, 49],\n\t\t\tbgRedBright: [101, 49],\n\t\t\tbgGreenBright: [102, 49],\n\t\t\tbgYellowBright: [103, 49],\n\t\t\tbgBlueBright: [104, 49],\n\t\t\tbgMagentaBright: [105, 49],\n\t\t\tbgCyanBright: [106, 49],\n\t\t\tbgWhiteBright: [107, 49]\n\t\t}\n\t};\n\n\t// Alias bright black as gray (and grey)\n\tstyles.color.gray = styles.color.blackBright;\n\tstyles.bgColor.bgGray = styles.bgColor.bgBlackBright;\n\tstyles.color.grey = styles.color.blackBright;\n\tstyles.bgColor.bgGrey = styles.bgColor.bgBlackBright;\n\n\tfor (const [groupName, group] of Object.entries(styles)) {\n\t\tfor (const [styleName, style] of Object.entries(group)) {\n\t\t\tstyles[styleName] = {\n\t\t\t\topen: `\\u001B[${style[0]}m`,\n\t\t\t\tclose: `\\u001B[${style[1]}m`\n\t\t\t};\n\n\t\t\tgroup[styleName] = styles[styleName];\n\n\t\t\tcodes.set(style[0], style[1]);\n\t\t}\n\n\t\tObject.defineProperty(styles, groupName, {\n\t\t\tvalue: group,\n\t\t\tenumerable: false\n\t\t});\n\t}\n\n\tObject.defineProperty(styles, 'codes', {\n\t\tvalue: codes,\n\t\tenumerable: false\n\t});\n\n\tstyles.color.close = '\\u001B[39m';\n\tstyles.bgColor.close = '\\u001B[49m';\n\n\tstyles.color.ansi256 = wrapAnsi256();\n\tstyles.color.ansi16m = wrapAnsi16m();\n\tstyles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);\n\n\t// From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js\n\tObject.defineProperties(styles, {\n\t\trgbToAnsi256: {\n\t\t\tvalue: (red, green, blue) => {\n\t\t\t\t// We use the extended greyscale palette here, with the exception of\n\t\t\t\t// black and white. normal palette only has 4 greyscale shades.\n\t\t\t\tif (red === green && green === blue) {\n\t\t\t\t\tif (red < 8) {\n\t\t\t\t\t\treturn 16;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (red > 248) {\n\t\t\t\t\t\treturn 231;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Math.round(((red - 8) / 247) * 24) + 232;\n\t\t\t\t}\n\n\t\t\t\treturn 16 +\n\t\t\t\t\t(36 * Math.round(red / 255 * 5)) +\n\t\t\t\t\t(6 * Math.round(green / 255 * 5)) +\n\t\t\t\t\tMath.round(blue / 255 * 5);\n\t\t\t},\n\t\t\tenumerable: false\n\t\t},\n\t\thexToRgb: {\n\t\t\tvalue: hex => {\n\t\t\t\tconst matches = /(?[a-f\\d]{6}|[a-f\\d]{3})/i.exec(hex.toString(16));\n\t\t\t\tif (!matches) {\n\t\t\t\t\treturn [0, 0, 0];\n\t\t\t\t}\n\n\t\t\t\tlet {colorString} = matches.groups;\n\n\t\t\t\tif (colorString.length === 3) {\n\t\t\t\t\tcolorString = colorString.split('').map(character => character + character).join('');\n\t\t\t\t}\n\n\t\t\t\tconst integer = Number.parseInt(colorString, 16);\n\n\t\t\t\treturn [\n\t\t\t\t\t(integer >> 16) & 0xFF,\n\t\t\t\t\t(integer >> 8) & 0xFF,\n\t\t\t\t\tinteger & 0xFF\n\t\t\t\t];\n\t\t\t},\n\t\t\tenumerable: false\n\t\t},\n\t\thexToAnsi256: {\n\t\t\tvalue: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),\n\t\t\tenumerable: false\n\t\t}\n\t});\n\n\treturn styles;\n}\n\n// Make the export immutable\nObject.defineProperty(module, 'exports', {\n\tenumerable: true,\n\tget: assembleStyles\n});\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.printIteratorEntries = printIteratorEntries;\nexports.printIteratorValues = printIteratorValues;\nexports.printListItems = printListItems;\nexports.printObjectProperties = printObjectProperties;\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\nconst getKeysOfEnumerableProperties = (object, compareKeys) => {\n const keys = Object.keys(object).sort(compareKeys);\n\n if (Object.getOwnPropertySymbols) {\n Object.getOwnPropertySymbols(object).forEach(symbol => {\n if (Object.getOwnPropertyDescriptor(object, symbol).enumerable) {\n keys.push(symbol);\n }\n });\n }\n\n return keys;\n};\n/**\n * Return entries (for example, of a map)\n * with spacing, indentation, and comma\n * without surrounding punctuation (for example, braces)\n */\n\nfunction printIteratorEntries(\n iterator,\n config,\n indentation,\n depth,\n refs,\n printer, // Too bad, so sad that separator for ECMAScript Map has been ' => '\n // What a distracting diff if you change a data structure to/from\n // ECMAScript Object or Immutable.Map/OrderedMap which use the default.\n separator = ': '\n) {\n let result = '';\n let current = iterator.next();\n\n if (!current.done) {\n result += config.spacingOuter;\n const indentationNext = indentation + config.indent;\n\n while (!current.done) {\n const name = printer(\n current.value[0],\n config,\n indentationNext,\n depth,\n refs\n );\n const value = printer(\n current.value[1],\n config,\n indentationNext,\n depth,\n refs\n );\n result += indentationNext + name + separator + value;\n current = iterator.next();\n\n if (!current.done) {\n result += ',' + config.spacingInner;\n } else if (!config.min) {\n result += ',';\n }\n }\n\n result += config.spacingOuter + indentation;\n }\n\n return result;\n}\n/**\n * Return values (for example, of a set)\n * with spacing, indentation, and comma\n * without surrounding punctuation (braces or brackets)\n */\n\nfunction printIteratorValues(\n iterator,\n config,\n indentation,\n depth,\n refs,\n printer\n) {\n let result = '';\n let current = iterator.next();\n\n if (!current.done) {\n result += config.spacingOuter;\n const indentationNext = indentation + config.indent;\n\n while (!current.done) {\n result +=\n indentationNext +\n printer(current.value, config, indentationNext, depth, refs);\n current = iterator.next();\n\n if (!current.done) {\n result += ',' + config.spacingInner;\n } else if (!config.min) {\n result += ',';\n }\n }\n\n result += config.spacingOuter + indentation;\n }\n\n return result;\n}\n/**\n * Return items (for example, of an array)\n * with spacing, indentation, and comma\n * without surrounding punctuation (for example, brackets)\n **/\n\nfunction printListItems(list, config, indentation, depth, refs, printer) {\n let result = '';\n\n if (list.length) {\n result += config.spacingOuter;\n const indentationNext = indentation + config.indent;\n\n for (let i = 0; i < list.length; i++) {\n result += indentationNext;\n\n if (i in list) {\n result += printer(list[i], config, indentationNext, depth, refs);\n }\n\n if (i < list.length - 1) {\n result += ',' + config.spacingInner;\n } else if (!config.min) {\n result += ',';\n }\n }\n\n result += config.spacingOuter + indentation;\n }\n\n return result;\n}\n/**\n * Return properties of an object\n * with spacing, indentation, and comma\n * without surrounding punctuation (for example, braces)\n */\n\nfunction printObjectProperties(val, config, indentation, depth, refs, printer) {\n let result = '';\n const keys = getKeysOfEnumerableProperties(val, config.compareKeys);\n\n if (keys.length) {\n result += config.spacingOuter;\n const indentationNext = indentation + config.indent;\n\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const name = printer(key, config, indentationNext, depth, refs);\n const value = printer(val[key], config, indentationNext, depth, refs);\n result += indentationNext + name + ': ' + value;\n\n if (i < keys.length - 1) {\n result += ',' + config.spacingInner;\n } else if (!config.min) {\n result += ',';\n }\n }\n\n result += config.spacingOuter + indentation;\n }\n\n return result;\n}\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.test = exports.serialize = exports.default = void 0;\n\nvar _collections = require('../collections');\n\nvar global = (function () {\n if (typeof globalThis !== 'undefined') {\n return globalThis;\n } else if (typeof global !== 'undefined') {\n return global;\n } else if (typeof self !== 'undefined') {\n return self;\n } else if (typeof window !== 'undefined') {\n return window;\n } else {\n return Function('return this')();\n }\n})();\n\nvar Symbol = global['jest-symbol-do-not-touch'] || global.Symbol;\nconst asymmetricMatcher =\n typeof Symbol === 'function' && Symbol.for\n ? Symbol.for('jest.asymmetricMatcher')\n : 0x1357a5;\nconst SPACE = ' ';\n\nconst serialize = (val, config, indentation, depth, refs, printer) => {\n const stringedValue = val.toString();\n\n if (\n stringedValue === 'ArrayContaining' ||\n stringedValue === 'ArrayNotContaining'\n ) {\n if (++depth > config.maxDepth) {\n return '[' + stringedValue + ']';\n }\n\n return (\n stringedValue +\n SPACE +\n '[' +\n (0, _collections.printListItems)(\n val.sample,\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n ']'\n );\n }\n\n if (\n stringedValue === 'ObjectContaining' ||\n stringedValue === 'ObjectNotContaining'\n ) {\n if (++depth > config.maxDepth) {\n return '[' + stringedValue + ']';\n }\n\n return (\n stringedValue +\n SPACE +\n '{' +\n (0, _collections.printObjectProperties)(\n val.sample,\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n '}'\n );\n }\n\n if (\n stringedValue === 'StringMatching' ||\n stringedValue === 'StringNotMatching'\n ) {\n return (\n stringedValue +\n SPACE +\n printer(val.sample, config, indentation, depth, refs)\n );\n }\n\n if (\n stringedValue === 'StringContaining' ||\n stringedValue === 'StringNotContaining'\n ) {\n return (\n stringedValue +\n SPACE +\n printer(val.sample, config, indentation, depth, refs)\n );\n }\n\n return val.toAsymmetricMatcher();\n};\n\nexports.serialize = serialize;\n\nconst test = val => val && val.$$typeof === asymmetricMatcher;\n\nexports.test = test;\nconst plugin = {\n serialize,\n test\n};\nvar _default = plugin;\nexports.default = _default;\n","'use strict';\n\nmodule.exports = ({onlyFirst = false} = {}) => {\n\tconst pattern = [\n\t\t'[\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]+)*|[a-zA-Z\\\\d]+(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)',\n\t\t'(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PR-TZcf-ntqry=><~]))'\n\t].join('|');\n\n\treturn new RegExp(pattern, onlyFirst ? undefined : 'g');\n};\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.test = exports.serialize = exports.default = void 0;\n\nvar _ansiRegex = _interopRequireDefault(require('ansi-regex'));\n\nvar _ansiStyles = _interopRequireDefault(require('ansi-styles'));\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nconst toHumanReadableAnsi = text =>\n text.replace((0, _ansiRegex.default)(), match => {\n switch (match) {\n case _ansiStyles.default.red.close:\n case _ansiStyles.default.green.close:\n case _ansiStyles.default.cyan.close:\n case _ansiStyles.default.gray.close:\n case _ansiStyles.default.white.close:\n case _ansiStyles.default.yellow.close:\n case _ansiStyles.default.bgRed.close:\n case _ansiStyles.default.bgGreen.close:\n case _ansiStyles.default.bgYellow.close:\n case _ansiStyles.default.inverse.close:\n case _ansiStyles.default.dim.close:\n case _ansiStyles.default.bold.close:\n case _ansiStyles.default.reset.open:\n case _ansiStyles.default.reset.close:\n return '';\n\n case _ansiStyles.default.red.open:\n return '';\n\n case _ansiStyles.default.green.open:\n return '';\n\n case _ansiStyles.default.cyan.open:\n return '';\n\n case _ansiStyles.default.gray.open:\n return '';\n\n case _ansiStyles.default.white.open:\n return '';\n\n case _ansiStyles.default.yellow.open:\n return '';\n\n case _ansiStyles.default.bgRed.open:\n return '';\n\n case _ansiStyles.default.bgGreen.open:\n return '';\n\n case _ansiStyles.default.bgYellow.open:\n return '';\n\n case _ansiStyles.default.inverse.open:\n return '';\n\n case _ansiStyles.default.dim.open:\n return '';\n\n case _ansiStyles.default.bold.open:\n return '';\n\n default:\n return '';\n }\n });\n\nconst test = val =>\n typeof val === 'string' && !!val.match((0, _ansiRegex.default)());\n\nexports.test = test;\n\nconst serialize = (val, config, indentation, depth, refs, printer) =>\n printer(toHumanReadableAnsi(val), config, indentation, depth, refs);\n\nexports.serialize = serialize;\nconst plugin = {\n serialize,\n test\n};\nvar _default = plugin;\nexports.default = _default;\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.test = exports.serialize = exports.default = void 0;\n\nvar _collections = require('../collections');\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* eslint-disable local/ban-types-eventually */\nconst SPACE = ' ';\nconst OBJECT_NAMES = ['DOMStringMap', 'NamedNodeMap'];\nconst ARRAY_REGEXP = /^(HTML\\w*Collection|NodeList)$/;\n\nconst testName = name =>\n OBJECT_NAMES.indexOf(name) !== -1 || ARRAY_REGEXP.test(name);\n\nconst test = val =>\n val &&\n val.constructor &&\n !!val.constructor.name &&\n testName(val.constructor.name);\n\nexports.test = test;\n\nconst isNamedNodeMap = collection =>\n collection.constructor.name === 'NamedNodeMap';\n\nconst serialize = (collection, config, indentation, depth, refs, printer) => {\n const name = collection.constructor.name;\n\n if (++depth > config.maxDepth) {\n return '[' + name + ']';\n }\n\n return (\n (config.min ? '' : name + SPACE) +\n (OBJECT_NAMES.indexOf(name) !== -1\n ? '{' +\n (0, _collections.printObjectProperties)(\n isNamedNodeMap(collection)\n ? Array.from(collection).reduce((props, attribute) => {\n props[attribute.name] = attribute.value;\n return props;\n }, {})\n : {...collection},\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n '}'\n : '[' +\n (0, _collections.printListItems)(\n Array.from(collection),\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n ']')\n );\n};\n\nexports.serialize = serialize;\nconst plugin = {\n serialize,\n test\n};\nvar _default = plugin;\nexports.default = _default;\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.default = escapeHTML;\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nfunction escapeHTML(str) {\n return str.replace(//g, '>');\n}\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.printText =\n exports.printProps =\n exports.printElementAsLeaf =\n exports.printElement =\n exports.printComment =\n exports.printChildren =\n void 0;\n\nvar _escapeHTML = _interopRequireDefault(require('./escapeHTML'));\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n// Return empty string if keys is empty.\nconst printProps = (keys, props, config, indentation, depth, refs, printer) => {\n const indentationNext = indentation + config.indent;\n const colors = config.colors;\n return keys\n .map(key => {\n const value = props[key];\n let printed = printer(value, config, indentationNext, depth, refs);\n\n if (typeof value !== 'string') {\n if (printed.indexOf('\\n') !== -1) {\n printed =\n config.spacingOuter +\n indentationNext +\n printed +\n config.spacingOuter +\n indentation;\n }\n\n printed = '{' + printed + '}';\n }\n\n return (\n config.spacingInner +\n indentation +\n colors.prop.open +\n key +\n colors.prop.close +\n '=' +\n colors.value.open +\n printed +\n colors.value.close\n );\n })\n .join('');\n}; // Return empty string if children is empty.\n\nexports.printProps = printProps;\n\nconst printChildren = (children, config, indentation, depth, refs, printer) =>\n children\n .map(\n child =>\n config.spacingOuter +\n indentation +\n (typeof child === 'string'\n ? printText(child, config)\n : printer(child, config, indentation, depth, refs))\n )\n .join('');\n\nexports.printChildren = printChildren;\n\nconst printText = (text, config) => {\n const contentColor = config.colors.content;\n return (\n contentColor.open + (0, _escapeHTML.default)(text) + contentColor.close\n );\n};\n\nexports.printText = printText;\n\nconst printComment = (comment, config) => {\n const commentColor = config.colors.comment;\n return (\n commentColor.open +\n '' +\n commentColor.close\n );\n}; // Separate the functions to format props, children, and element,\n// so a plugin could override a particular function, if needed.\n// Too bad, so sad: the traditional (but unnecessary) space\n// in a self-closing tagColor requires a second test of printedProps.\n\nexports.printComment = printComment;\n\nconst printElement = (\n type,\n printedProps,\n printedChildren,\n config,\n indentation\n) => {\n const tagColor = config.colors.tag;\n return (\n tagColor.open +\n '<' +\n type +\n (printedProps &&\n tagColor.close +\n printedProps +\n config.spacingOuter +\n indentation +\n tagColor.open) +\n (printedChildren\n ? '>' +\n tagColor.close +\n printedChildren +\n config.spacingOuter +\n indentation +\n tagColor.open +\n '' +\n tagColor.close\n );\n};\n\nexports.printElement = printElement;\n\nconst printElementAsLeaf = (type, config) => {\n const tagColor = config.colors.tag;\n return (\n tagColor.open +\n '<' +\n type +\n tagColor.close +\n ' …' +\n tagColor.open +\n ' />' +\n tagColor.close\n );\n};\n\nexports.printElementAsLeaf = printElementAsLeaf;\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.test = exports.serialize = exports.default = void 0;\n\nvar _markup = require('./lib/markup');\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nconst ELEMENT_NODE = 1;\nconst TEXT_NODE = 3;\nconst COMMENT_NODE = 8;\nconst FRAGMENT_NODE = 11;\nconst ELEMENT_REGEXP = /^((HTML|SVG)\\w*)?Element$/;\n\nconst testHasAttribute = val => {\n try {\n return typeof val.hasAttribute === 'function' && val.hasAttribute('is');\n } catch {\n return false;\n }\n};\n\nconst testNode = val => {\n const constructorName = val.constructor.name;\n const {nodeType, tagName} = val;\n const isCustomElement =\n (typeof tagName === 'string' && tagName.includes('-')) ||\n testHasAttribute(val);\n return (\n (nodeType === ELEMENT_NODE &&\n (ELEMENT_REGEXP.test(constructorName) || isCustomElement)) ||\n (nodeType === TEXT_NODE && constructorName === 'Text') ||\n (nodeType === COMMENT_NODE && constructorName === 'Comment') ||\n (nodeType === FRAGMENT_NODE && constructorName === 'DocumentFragment')\n );\n};\n\nconst test = val => {\n var _val$constructor;\n\n return (\n (val === null || val === void 0\n ? void 0\n : (_val$constructor = val.constructor) === null ||\n _val$constructor === void 0\n ? void 0\n : _val$constructor.name) && testNode(val)\n );\n};\n\nexports.test = test;\n\nfunction nodeIsText(node) {\n return node.nodeType === TEXT_NODE;\n}\n\nfunction nodeIsComment(node) {\n return node.nodeType === COMMENT_NODE;\n}\n\nfunction nodeIsFragment(node) {\n return node.nodeType === FRAGMENT_NODE;\n}\n\nconst serialize = (node, config, indentation, depth, refs, printer) => {\n if (nodeIsText(node)) {\n return (0, _markup.printText)(node.data, config);\n }\n\n if (nodeIsComment(node)) {\n return (0, _markup.printComment)(node.data, config);\n }\n\n const type = nodeIsFragment(node)\n ? 'DocumentFragment'\n : node.tagName.toLowerCase();\n\n if (++depth > config.maxDepth) {\n return (0, _markup.printElementAsLeaf)(type, config);\n }\n\n return (0, _markup.printElement)(\n type,\n (0, _markup.printProps)(\n nodeIsFragment(node)\n ? []\n : Array.from(node.attributes)\n .map(attr => attr.name)\n .sort(),\n nodeIsFragment(node)\n ? {}\n : Array.from(node.attributes).reduce((props, attribute) => {\n props[attribute.name] = attribute.value;\n return props;\n }, {}),\n config,\n indentation + config.indent,\n depth,\n refs,\n printer\n ),\n (0, _markup.printChildren)(\n Array.prototype.slice.call(node.childNodes || node.children),\n config,\n indentation + config.indent,\n depth,\n refs,\n printer\n ),\n config,\n indentation\n );\n};\n\nexports.serialize = serialize;\nconst plugin = {\n serialize,\n test\n};\nvar _default = plugin;\nexports.default = _default;\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.test = exports.serialize = exports.default = void 0;\n\nvar _collections = require('../collections');\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n// SENTINEL constants are from https://github.com/facebook/immutable-js\nconst IS_ITERABLE_SENTINEL = '@@__IMMUTABLE_ITERABLE__@@';\nconst IS_LIST_SENTINEL = '@@__IMMUTABLE_LIST__@@';\nconst IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@';\nconst IS_MAP_SENTINEL = '@@__IMMUTABLE_MAP__@@';\nconst IS_ORDERED_SENTINEL = '@@__IMMUTABLE_ORDERED__@@';\nconst IS_RECORD_SENTINEL = '@@__IMMUTABLE_RECORD__@@'; // immutable v4\n\nconst IS_SEQ_SENTINEL = '@@__IMMUTABLE_SEQ__@@';\nconst IS_SET_SENTINEL = '@@__IMMUTABLE_SET__@@';\nconst IS_STACK_SENTINEL = '@@__IMMUTABLE_STACK__@@';\n\nconst getImmutableName = name => 'Immutable.' + name;\n\nconst printAsLeaf = name => '[' + name + ']';\n\nconst SPACE = ' ';\nconst LAZY = '…'; // Seq is lazy if it calls a method like filter\n\nconst printImmutableEntries = (\n val,\n config,\n indentation,\n depth,\n refs,\n printer,\n type\n) =>\n ++depth > config.maxDepth\n ? printAsLeaf(getImmutableName(type))\n : getImmutableName(type) +\n SPACE +\n '{' +\n (0, _collections.printIteratorEntries)(\n val.entries(),\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n '}'; // Record has an entries method because it is a collection in immutable v3.\n// Return an iterator for Immutable Record from version v3 or v4.\n\nfunction getRecordEntries(val) {\n let i = 0;\n return {\n next() {\n if (i < val._keys.length) {\n const key = val._keys[i++];\n return {\n done: false,\n value: [key, val.get(key)]\n };\n }\n\n return {\n done: true,\n value: undefined\n };\n }\n };\n}\n\nconst printImmutableRecord = (\n val,\n config,\n indentation,\n depth,\n refs,\n printer\n) => {\n // _name property is defined only for an Immutable Record instance\n // which was constructed with a second optional descriptive name arg\n const name = getImmutableName(val._name || 'Record');\n return ++depth > config.maxDepth\n ? printAsLeaf(name)\n : name +\n SPACE +\n '{' +\n (0, _collections.printIteratorEntries)(\n getRecordEntries(val),\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n '}';\n};\n\nconst printImmutableSeq = (val, config, indentation, depth, refs, printer) => {\n const name = getImmutableName('Seq');\n\n if (++depth > config.maxDepth) {\n return printAsLeaf(name);\n }\n\n if (val[IS_KEYED_SENTINEL]) {\n return (\n name +\n SPACE +\n '{' + // from Immutable collection of entries or from ECMAScript object\n (val._iter || val._object\n ? (0, _collections.printIteratorEntries)(\n val.entries(),\n config,\n indentation,\n depth,\n refs,\n printer\n )\n : LAZY) +\n '}'\n );\n }\n\n return (\n name +\n SPACE +\n '[' +\n (val._iter || // from Immutable collection of values\n val._array || // from ECMAScript array\n val._collection || // from ECMAScript collection in immutable v4\n val._iterable // from ECMAScript collection in immutable v3\n ? (0, _collections.printIteratorValues)(\n val.values(),\n config,\n indentation,\n depth,\n refs,\n printer\n )\n : LAZY) +\n ']'\n );\n};\n\nconst printImmutableValues = (\n val,\n config,\n indentation,\n depth,\n refs,\n printer,\n type\n) =>\n ++depth > config.maxDepth\n ? printAsLeaf(getImmutableName(type))\n : getImmutableName(type) +\n SPACE +\n '[' +\n (0, _collections.printIteratorValues)(\n val.values(),\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n ']';\n\nconst serialize = (val, config, indentation, depth, refs, printer) => {\n if (val[IS_MAP_SENTINEL]) {\n return printImmutableEntries(\n val,\n config,\n indentation,\n depth,\n refs,\n printer,\n val[IS_ORDERED_SENTINEL] ? 'OrderedMap' : 'Map'\n );\n }\n\n if (val[IS_LIST_SENTINEL]) {\n return printImmutableValues(\n val,\n config,\n indentation,\n depth,\n refs,\n printer,\n 'List'\n );\n }\n\n if (val[IS_SET_SENTINEL]) {\n return printImmutableValues(\n val,\n config,\n indentation,\n depth,\n refs,\n printer,\n val[IS_ORDERED_SENTINEL] ? 'OrderedSet' : 'Set'\n );\n }\n\n if (val[IS_STACK_SENTINEL]) {\n return printImmutableValues(\n val,\n config,\n indentation,\n depth,\n refs,\n printer,\n 'Stack'\n );\n }\n\n if (val[IS_SEQ_SENTINEL]) {\n return printImmutableSeq(val, config, indentation, depth, refs, printer);\n } // For compatibility with immutable v3 and v4, let record be the default.\n\n return printImmutableRecord(val, config, indentation, depth, refs, printer);\n}; // Explicitly comparing sentinel properties to true avoids false positive\n// when mock identity-obj-proxy returns the key as the value for any key.\n\nexports.serialize = serialize;\n\nconst test = val =>\n val &&\n (val[IS_ITERABLE_SENTINEL] === true || val[IS_RECORD_SENTINEL] === true);\n\nexports.test = test;\nconst plugin = {\n serialize,\n test\n};\nvar _default = plugin;\nexports.default = _default;\n","/** @license React v17.0.2\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var b=60103,c=60106,d=60107,e=60108,f=60114,g=60109,h=60110,k=60112,l=60113,m=60120,n=60115,p=60116,q=60121,r=60122,u=60117,v=60129,w=60131;\nif(\"function\"===typeof Symbol&&Symbol.for){var x=Symbol.for;b=x(\"react.element\");c=x(\"react.portal\");d=x(\"react.fragment\");e=x(\"react.strict_mode\");f=x(\"react.profiler\");g=x(\"react.provider\");h=x(\"react.context\");k=x(\"react.forward_ref\");l=x(\"react.suspense\");m=x(\"react.suspense_list\");n=x(\"react.memo\");p=x(\"react.lazy\");q=x(\"react.block\");r=x(\"react.server.block\");u=x(\"react.fundamental\");v=x(\"react.debug_trace_mode\");w=x(\"react.legacy_hidden\")}\nfunction y(a){if(\"object\"===typeof a&&null!==a){var t=a.$$typeof;switch(t){case b:switch(a=a.type,a){case d:case f:case e:case l:case m:return a;default:switch(a=a&&a.$$typeof,a){case h:case k:case p:case n:case g:return a;default:return t}}case c:return t}}}var z=g,A=b,B=k,C=d,D=p,E=n,F=c,G=f,H=e,I=l;exports.ContextConsumer=h;exports.ContextProvider=z;exports.Element=A;exports.ForwardRef=B;exports.Fragment=C;exports.Lazy=D;exports.Memo=E;exports.Portal=F;exports.Profiler=G;exports.StrictMode=H;\nexports.Suspense=I;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return y(a)===h};exports.isContextProvider=function(a){return y(a)===g};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return y(a)===k};exports.isFragment=function(a){return y(a)===d};exports.isLazy=function(a){return y(a)===p};exports.isMemo=function(a){return y(a)===n};\nexports.isPortal=function(a){return y(a)===c};exports.isProfiler=function(a){return y(a)===f};exports.isStrictMode=function(a){return y(a)===e};exports.isSuspense=function(a){return y(a)===l};exports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===v||a===e||a===l||a===m||a===w||\"object\"===typeof a&&null!==a&&(a.$$typeof===p||a.$$typeof===n||a.$$typeof===g||a.$$typeof===h||a.$$typeof===k||a.$$typeof===u||a.$$typeof===q||a[0]===r)?!0:!1};\nexports.typeOf=y;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.test = exports.serialize = exports.default = void 0;\n\nvar ReactIs = _interopRequireWildcard(require('react-is'));\n\nvar _markup = require('./lib/markup');\n\nfunction _getRequireWildcardCache(nodeInterop) {\n if (typeof WeakMap !== 'function') return null;\n var cacheBabelInterop = new WeakMap();\n var cacheNodeInterop = new WeakMap();\n return (_getRequireWildcardCache = function (nodeInterop) {\n return nodeInterop ? cacheNodeInterop : cacheBabelInterop;\n })(nodeInterop);\n}\n\nfunction _interopRequireWildcard(obj, nodeInterop) {\n if (!nodeInterop && obj && obj.__esModule) {\n return obj;\n }\n if (obj === null || (typeof obj !== 'object' && typeof obj !== 'function')) {\n return {default: obj};\n }\n var cache = _getRequireWildcardCache(nodeInterop);\n if (cache && cache.has(obj)) {\n return cache.get(obj);\n }\n var newObj = {};\n var hasPropertyDescriptor =\n Object.defineProperty && Object.getOwnPropertyDescriptor;\n for (var key in obj) {\n if (key !== 'default' && Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor\n ? Object.getOwnPropertyDescriptor(obj, key)\n : null;\n if (desc && (desc.get || desc.set)) {\n Object.defineProperty(newObj, key, desc);\n } else {\n newObj[key] = obj[key];\n }\n }\n }\n newObj.default = obj;\n if (cache) {\n cache.set(obj, newObj);\n }\n return newObj;\n}\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n// Given element.props.children, or subtree during recursive traversal,\n// return flattened array of children.\nconst getChildren = (arg, children = []) => {\n if (Array.isArray(arg)) {\n arg.forEach(item => {\n getChildren(item, children);\n });\n } else if (arg != null && arg !== false) {\n children.push(arg);\n }\n\n return children;\n};\n\nconst getType = element => {\n const type = element.type;\n\n if (typeof type === 'string') {\n return type;\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || 'Unknown';\n }\n\n if (ReactIs.isFragment(element)) {\n return 'React.Fragment';\n }\n\n if (ReactIs.isSuspense(element)) {\n return 'React.Suspense';\n }\n\n if (typeof type === 'object' && type !== null) {\n if (ReactIs.isContextProvider(element)) {\n return 'Context.Provider';\n }\n\n if (ReactIs.isContextConsumer(element)) {\n return 'Context.Consumer';\n }\n\n if (ReactIs.isForwardRef(element)) {\n if (type.displayName) {\n return type.displayName;\n }\n\n const functionName = type.render.displayName || type.render.name || '';\n return functionName !== ''\n ? 'ForwardRef(' + functionName + ')'\n : 'ForwardRef';\n }\n\n if (ReactIs.isMemo(element)) {\n const functionName =\n type.displayName || type.type.displayName || type.type.name || '';\n return functionName !== '' ? 'Memo(' + functionName + ')' : 'Memo';\n }\n }\n\n return 'UNDEFINED';\n};\n\nconst getPropKeys = element => {\n const {props} = element;\n return Object.keys(props)\n .filter(key => key !== 'children' && props[key] !== undefined)\n .sort();\n};\n\nconst serialize = (element, config, indentation, depth, refs, printer) =>\n ++depth > config.maxDepth\n ? (0, _markup.printElementAsLeaf)(getType(element), config)\n : (0, _markup.printElement)(\n getType(element),\n (0, _markup.printProps)(\n getPropKeys(element),\n element.props,\n config,\n indentation + config.indent,\n depth,\n refs,\n printer\n ),\n (0, _markup.printChildren)(\n getChildren(element.props.children),\n config,\n indentation + config.indent,\n depth,\n refs,\n printer\n ),\n config,\n indentation\n );\n\nexports.serialize = serialize;\n\nconst test = val => val != null && ReactIs.isElement(val);\n\nexports.test = test;\nconst plugin = {\n serialize,\n test\n};\nvar _default = plugin;\nexports.default = _default;\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.test = exports.serialize = exports.default = void 0;\n\nvar _markup = require('./lib/markup');\n\nvar global = (function () {\n if (typeof globalThis !== 'undefined') {\n return globalThis;\n } else if (typeof global !== 'undefined') {\n return global;\n } else if (typeof self !== 'undefined') {\n return self;\n } else if (typeof window !== 'undefined') {\n return window;\n } else {\n return Function('return this')();\n }\n})();\n\nvar Symbol = global['jest-symbol-do-not-touch'] || global.Symbol;\nconst testSymbol =\n typeof Symbol === 'function' && Symbol.for\n ? Symbol.for('react.test.json')\n : 0xea71357;\n\nconst getPropKeys = object => {\n const {props} = object;\n return props\n ? Object.keys(props)\n .filter(key => props[key] !== undefined)\n .sort()\n : [];\n};\n\nconst serialize = (object, config, indentation, depth, refs, printer) =>\n ++depth > config.maxDepth\n ? (0, _markup.printElementAsLeaf)(object.type, config)\n : (0, _markup.printElement)(\n object.type,\n object.props\n ? (0, _markup.printProps)(\n getPropKeys(object),\n object.props,\n config,\n indentation + config.indent,\n depth,\n refs,\n printer\n )\n : '',\n object.children\n ? (0, _markup.printChildren)(\n object.children,\n config,\n indentation + config.indent,\n depth,\n refs,\n printer\n )\n : '',\n config,\n indentation\n );\n\nexports.serialize = serialize;\n\nconst test = val => val && val.$$typeof === testSymbol;\n\nexports.test = test;\nconst plugin = {\n serialize,\n test\n};\nvar _default = plugin;\nexports.default = _default;\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.default = exports.DEFAULT_OPTIONS = void 0;\nexports.format = format;\nexports.plugins = void 0;\n\nvar _ansiStyles = _interopRequireDefault(require('ansi-styles'));\n\nvar _collections = require('./collections');\n\nvar _AsymmetricMatcher = _interopRequireDefault(\n require('./plugins/AsymmetricMatcher')\n);\n\nvar _ConvertAnsi = _interopRequireDefault(require('./plugins/ConvertAnsi'));\n\nvar _DOMCollection = _interopRequireDefault(require('./plugins/DOMCollection'));\n\nvar _DOMElement = _interopRequireDefault(require('./plugins/DOMElement'));\n\nvar _Immutable = _interopRequireDefault(require('./plugins/Immutable'));\n\nvar _ReactElement = _interopRequireDefault(require('./plugins/ReactElement'));\n\nvar _ReactTestComponent = _interopRequireDefault(\n require('./plugins/ReactTestComponent')\n);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* eslint-disable local/ban-types-eventually */\nconst toString = Object.prototype.toString;\nconst toISOString = Date.prototype.toISOString;\nconst errorToString = Error.prototype.toString;\nconst regExpToString = RegExp.prototype.toString;\n/**\n * Explicitly comparing typeof constructor to function avoids undefined as name\n * when mock identity-obj-proxy returns the key as the value for any key.\n */\n\nconst getConstructorName = val =>\n (typeof val.constructor === 'function' && val.constructor.name) || 'Object';\n/* global window */\n\n/** Is val is equal to global window object? Works even if it does not exist :) */\n\nconst isWindow = val => typeof window !== 'undefined' && val === window;\n\nconst SYMBOL_REGEXP = /^Symbol\\((.*)\\)(.*)$/;\nconst NEWLINE_REGEXP = /\\n/gi;\n\nclass PrettyFormatPluginError extends Error {\n constructor(message, stack) {\n super(message);\n this.stack = stack;\n this.name = this.constructor.name;\n }\n}\n\nfunction isToStringedArrayType(toStringed) {\n return (\n toStringed === '[object Array]' ||\n toStringed === '[object ArrayBuffer]' ||\n toStringed === '[object DataView]' ||\n toStringed === '[object Float32Array]' ||\n toStringed === '[object Float64Array]' ||\n toStringed === '[object Int8Array]' ||\n toStringed === '[object Int16Array]' ||\n toStringed === '[object Int32Array]' ||\n toStringed === '[object Uint8Array]' ||\n toStringed === '[object Uint8ClampedArray]' ||\n toStringed === '[object Uint16Array]' ||\n toStringed === '[object Uint32Array]'\n );\n}\n\nfunction printNumber(val) {\n return Object.is(val, -0) ? '-0' : String(val);\n}\n\nfunction printBigInt(val) {\n return String(`${val}n`);\n}\n\nfunction printFunction(val, printFunctionName) {\n if (!printFunctionName) {\n return '[Function]';\n }\n\n return '[Function ' + (val.name || 'anonymous') + ']';\n}\n\nfunction printSymbol(val) {\n return String(val).replace(SYMBOL_REGEXP, 'Symbol($1)');\n}\n\nfunction printError(val) {\n return '[' + errorToString.call(val) + ']';\n}\n/**\n * The first port of call for printing an object, handles most of the\n * data-types in JS.\n */\n\nfunction printBasicValue(val, printFunctionName, escapeRegex, escapeString) {\n if (val === true || val === false) {\n return '' + val;\n }\n\n if (val === undefined) {\n return 'undefined';\n }\n\n if (val === null) {\n return 'null';\n }\n\n const typeOf = typeof val;\n\n if (typeOf === 'number') {\n return printNumber(val);\n }\n\n if (typeOf === 'bigint') {\n return printBigInt(val);\n }\n\n if (typeOf === 'string') {\n if (escapeString) {\n return '\"' + val.replace(/\"|\\\\/g, '\\\\$&') + '\"';\n }\n\n return '\"' + val + '\"';\n }\n\n if (typeOf === 'function') {\n return printFunction(val, printFunctionName);\n }\n\n if (typeOf === 'symbol') {\n return printSymbol(val);\n }\n\n const toStringed = toString.call(val);\n\n if (toStringed === '[object WeakMap]') {\n return 'WeakMap {}';\n }\n\n if (toStringed === '[object WeakSet]') {\n return 'WeakSet {}';\n }\n\n if (\n toStringed === '[object Function]' ||\n toStringed === '[object GeneratorFunction]'\n ) {\n return printFunction(val, printFunctionName);\n }\n\n if (toStringed === '[object Symbol]') {\n return printSymbol(val);\n }\n\n if (toStringed === '[object Date]') {\n return isNaN(+val) ? 'Date { NaN }' : toISOString.call(val);\n }\n\n if (toStringed === '[object Error]') {\n return printError(val);\n }\n\n if (toStringed === '[object RegExp]') {\n if (escapeRegex) {\n // https://github.com/benjamingr/RegExp.escape/blob/main/polyfill.js\n return regExpToString.call(val).replace(/[\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n }\n\n return regExpToString.call(val);\n }\n\n if (val instanceof Error) {\n return printError(val);\n }\n\n return null;\n}\n/**\n * Handles more complex objects ( such as objects with circular references.\n * maps and sets etc )\n */\n\nfunction printComplexValue(\n val,\n config,\n indentation,\n depth,\n refs,\n hasCalledToJSON\n) {\n if (refs.indexOf(val) !== -1) {\n return '[Circular]';\n }\n\n refs = refs.slice();\n refs.push(val);\n const hitMaxDepth = ++depth > config.maxDepth;\n const min = config.min;\n\n if (\n config.callToJSON &&\n !hitMaxDepth &&\n val.toJSON &&\n typeof val.toJSON === 'function' &&\n !hasCalledToJSON\n ) {\n return printer(val.toJSON(), config, indentation, depth, refs, true);\n }\n\n const toStringed = toString.call(val);\n\n if (toStringed === '[object Arguments]') {\n return hitMaxDepth\n ? '[Arguments]'\n : (min ? '' : 'Arguments ') +\n '[' +\n (0, _collections.printListItems)(\n val,\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n ']';\n }\n\n if (isToStringedArrayType(toStringed)) {\n return hitMaxDepth\n ? '[' + val.constructor.name + ']'\n : (min\n ? ''\n : !config.printBasicPrototype && val.constructor.name === 'Array'\n ? ''\n : val.constructor.name + ' ') +\n '[' +\n (0, _collections.printListItems)(\n val,\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n ']';\n }\n\n if (toStringed === '[object Map]') {\n return hitMaxDepth\n ? '[Map]'\n : 'Map {' +\n (0, _collections.printIteratorEntries)(\n val.entries(),\n config,\n indentation,\n depth,\n refs,\n printer,\n ' => '\n ) +\n '}';\n }\n\n if (toStringed === '[object Set]') {\n return hitMaxDepth\n ? '[Set]'\n : 'Set {' +\n (0, _collections.printIteratorValues)(\n val.values(),\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n '}';\n } // Avoid failure to serialize global window object in jsdom test environment.\n // For example, not even relevant if window is prop of React element.\n\n return hitMaxDepth || isWindow(val)\n ? '[' + getConstructorName(val) + ']'\n : (min\n ? ''\n : !config.printBasicPrototype && getConstructorName(val) === 'Object'\n ? ''\n : getConstructorName(val) + ' ') +\n '{' +\n (0, _collections.printObjectProperties)(\n val,\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n '}';\n}\n\nfunction isNewPlugin(plugin) {\n return plugin.serialize != null;\n}\n\nfunction printPlugin(plugin, val, config, indentation, depth, refs) {\n let printed;\n\n try {\n printed = isNewPlugin(plugin)\n ? plugin.serialize(val, config, indentation, depth, refs, printer)\n : plugin.print(\n val,\n valChild => printer(valChild, config, indentation, depth, refs),\n str => {\n const indentationNext = indentation + config.indent;\n return (\n indentationNext +\n str.replace(NEWLINE_REGEXP, '\\n' + indentationNext)\n );\n },\n {\n edgeSpacing: config.spacingOuter,\n min: config.min,\n spacing: config.spacingInner\n },\n config.colors\n );\n } catch (error) {\n throw new PrettyFormatPluginError(error.message, error.stack);\n }\n\n if (typeof printed !== 'string') {\n throw new Error(\n `pretty-format: Plugin must return type \"string\" but instead returned \"${typeof printed}\".`\n );\n }\n\n return printed;\n}\n\nfunction findPlugin(plugins, val) {\n for (let p = 0; p < plugins.length; p++) {\n try {\n if (plugins[p].test(val)) {\n return plugins[p];\n }\n } catch (error) {\n throw new PrettyFormatPluginError(error.message, error.stack);\n }\n }\n\n return null;\n}\n\nfunction printer(val, config, indentation, depth, refs, hasCalledToJSON) {\n const plugin = findPlugin(config.plugins, val);\n\n if (plugin !== null) {\n return printPlugin(plugin, val, config, indentation, depth, refs);\n }\n\n const basicResult = printBasicValue(\n val,\n config.printFunctionName,\n config.escapeRegex,\n config.escapeString\n );\n\n if (basicResult !== null) {\n return basicResult;\n }\n\n return printComplexValue(\n val,\n config,\n indentation,\n depth,\n refs,\n hasCalledToJSON\n );\n}\n\nconst DEFAULT_THEME = {\n comment: 'gray',\n content: 'reset',\n prop: 'yellow',\n tag: 'cyan',\n value: 'green'\n};\nconst DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME);\nconst DEFAULT_OPTIONS = {\n callToJSON: true,\n compareKeys: undefined,\n escapeRegex: false,\n escapeString: true,\n highlight: false,\n indent: 2,\n maxDepth: Infinity,\n min: false,\n plugins: [],\n printBasicPrototype: true,\n printFunctionName: true,\n theme: DEFAULT_THEME\n};\nexports.DEFAULT_OPTIONS = DEFAULT_OPTIONS;\n\nfunction validateOptions(options) {\n Object.keys(options).forEach(key => {\n if (!DEFAULT_OPTIONS.hasOwnProperty(key)) {\n throw new Error(`pretty-format: Unknown option \"${key}\".`);\n }\n });\n\n if (options.min && options.indent !== undefined && options.indent !== 0) {\n throw new Error(\n 'pretty-format: Options \"min\" and \"indent\" cannot be used together.'\n );\n }\n\n if (options.theme !== undefined) {\n if (options.theme === null) {\n throw new Error('pretty-format: Option \"theme\" must not be null.');\n }\n\n if (typeof options.theme !== 'object') {\n throw new Error(\n `pretty-format: Option \"theme\" must be of type \"object\" but instead received \"${typeof options.theme}\".`\n );\n }\n }\n}\n\nconst getColorsHighlight = options =>\n DEFAULT_THEME_KEYS.reduce((colors, key) => {\n const value =\n options.theme && options.theme[key] !== undefined\n ? options.theme[key]\n : DEFAULT_THEME[key];\n const color = value && _ansiStyles.default[value];\n\n if (\n color &&\n typeof color.close === 'string' &&\n typeof color.open === 'string'\n ) {\n colors[key] = color;\n } else {\n throw new Error(\n `pretty-format: Option \"theme\" has a key \"${key}\" whose value \"${value}\" is undefined in ansi-styles.`\n );\n }\n\n return colors;\n }, Object.create(null));\n\nconst getColorsEmpty = () =>\n DEFAULT_THEME_KEYS.reduce((colors, key) => {\n colors[key] = {\n close: '',\n open: ''\n };\n return colors;\n }, Object.create(null));\n\nconst getPrintFunctionName = options =>\n options && options.printFunctionName !== undefined\n ? options.printFunctionName\n : DEFAULT_OPTIONS.printFunctionName;\n\nconst getEscapeRegex = options =>\n options && options.escapeRegex !== undefined\n ? options.escapeRegex\n : DEFAULT_OPTIONS.escapeRegex;\n\nconst getEscapeString = options =>\n options && options.escapeString !== undefined\n ? options.escapeString\n : DEFAULT_OPTIONS.escapeString;\n\nconst getConfig = options => {\n var _options$printBasicPr;\n\n return {\n callToJSON:\n options && options.callToJSON !== undefined\n ? options.callToJSON\n : DEFAULT_OPTIONS.callToJSON,\n colors:\n options && options.highlight\n ? getColorsHighlight(options)\n : getColorsEmpty(),\n compareKeys:\n options && typeof options.compareKeys === 'function'\n ? options.compareKeys\n : DEFAULT_OPTIONS.compareKeys,\n escapeRegex: getEscapeRegex(options),\n escapeString: getEscapeString(options),\n indent:\n options && options.min\n ? ''\n : createIndent(\n options && options.indent !== undefined\n ? options.indent\n : DEFAULT_OPTIONS.indent\n ),\n maxDepth:\n options && options.maxDepth !== undefined\n ? options.maxDepth\n : DEFAULT_OPTIONS.maxDepth,\n min:\n options && options.min !== undefined ? options.min : DEFAULT_OPTIONS.min,\n plugins:\n options && options.plugins !== undefined\n ? options.plugins\n : DEFAULT_OPTIONS.plugins,\n printBasicPrototype:\n (_options$printBasicPr =\n options === null || options === void 0\n ? void 0\n : options.printBasicPrototype) !== null &&\n _options$printBasicPr !== void 0\n ? _options$printBasicPr\n : true,\n printFunctionName: getPrintFunctionName(options),\n spacingInner: options && options.min ? ' ' : '\\n',\n spacingOuter: options && options.min ? '' : '\\n'\n };\n};\n\nfunction createIndent(indent) {\n return new Array(indent + 1).join(' ');\n}\n/**\n * Returns a presentation string of your `val` object\n * @param val any potential JavaScript object\n * @param options Custom settings\n */\n\nfunction format(val, options) {\n if (options) {\n validateOptions(options);\n\n if (options.plugins) {\n const plugin = findPlugin(options.plugins, val);\n\n if (plugin !== null) {\n return printPlugin(plugin, val, getConfig(options), '', 0, []);\n }\n }\n }\n\n const basicResult = printBasicValue(\n val,\n getPrintFunctionName(options),\n getEscapeRegex(options),\n getEscapeString(options)\n );\n\n if (basicResult !== null) {\n return basicResult;\n }\n\n return printComplexValue(val, getConfig(options), '', 0, []);\n}\n\nconst plugins = {\n AsymmetricMatcher: _AsymmetricMatcher.default,\n ConvertAnsi: _ConvertAnsi.default,\n DOMCollection: _DOMCollection.default,\n DOMElement: _DOMElement.default,\n Immutable: _Immutable.default,\n ReactElement: _ReactElement.default,\n ReactTestComponent: _ReactTestComponent.default\n};\nexports.plugins = plugins;\nvar _default = format;\nexports.default = _default;\n","const SAFE_TIMERS_SYMBOL = Symbol(\"vitest:SAFE_TIMERS\");\nconst SAFE_COLORS_SYMBOL = Symbol(\"vitest:SAFE_COLORS\");\n\nconst colorsMap = {\n bold: [\"\\x1B[1m\", \"\\x1B[22m\", \"\\x1B[22m\\x1B[1m\"],\n dim: [\"\\x1B[2m\", \"\\x1B[22m\", \"\\x1B[22m\\x1B[2m\"],\n italic: [\"\\x1B[3m\", \"\\x1B[23m\"],\n underline: [\"\\x1B[4m\", \"\\x1B[24m\"],\n inverse: [\"\\x1B[7m\", \"\\x1B[27m\"],\n hidden: [\"\\x1B[8m\", \"\\x1B[28m\"],\n strikethrough: [\"\\x1B[9m\", \"\\x1B[29m\"],\n black: [\"\\x1B[30m\", \"\\x1B[39m\"],\n red: [\"\\x1B[31m\", \"\\x1B[39m\"],\n green: [\"\\x1B[32m\", \"\\x1B[39m\"],\n yellow: [\"\\x1B[33m\", \"\\x1B[39m\"],\n blue: [\"\\x1B[34m\", \"\\x1B[39m\"],\n magenta: [\"\\x1B[35m\", \"\\x1B[39m\"],\n cyan: [\"\\x1B[36m\", \"\\x1B[39m\"],\n white: [\"\\x1B[37m\", \"\\x1B[39m\"],\n gray: [\"\\x1B[90m\", \"\\x1B[39m\"],\n bgBlack: [\"\\x1B[40m\", \"\\x1B[49m\"],\n bgRed: [\"\\x1B[41m\", \"\\x1B[49m\"],\n bgGreen: [\"\\x1B[42m\", \"\\x1B[49m\"],\n bgYellow: [\"\\x1B[43m\", \"\\x1B[49m\"],\n bgBlue: [\"\\x1B[44m\", \"\\x1B[49m\"],\n bgMagenta: [\"\\x1B[45m\", \"\\x1B[49m\"],\n bgCyan: [\"\\x1B[46m\", \"\\x1B[49m\"],\n bgWhite: [\"\\x1B[47m\", \"\\x1B[49m\"]\n};\nconst colorsEntries = Object.entries(colorsMap);\nfunction string(str) {\n return String(str);\n}\nstring.open = \"\";\nstring.close = \"\";\nconst defaultColors = /* @__PURE__ */ colorsEntries.reduce((acc, [key]) => {\n acc[key] = string;\n return acc;\n}, { isColorSupported: false });\nfunction getDefaultColors() {\n return { ...defaultColors };\n}\nfunction getColors() {\n return globalThis[SAFE_COLORS_SYMBOL] || defaultColors;\n}\nfunction createColors(isTTY = false) {\n const enabled = typeof process !== \"undefined\" && !(\"NO_COLOR\" in process.env || process.argv.includes(\"--no-color\")) && !(\"GITHUB_ACTIONS\" in process.env) && (\"FORCE_COLOR\" in process.env || process.argv.includes(\"--color\") || process.platform === \"win32\" || isTTY && process.env.TERM !== \"dumb\" || \"CI\" in process.env);\n const replaceClose = (string2, close, replace, index) => {\n const start = string2.substring(0, index) + replace;\n const end = string2.substring(index + close.length);\n const nextIndex = end.indexOf(close);\n return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;\n };\n const formatter = (open, close, replace = open) => {\n const fn = (input) => {\n const string2 = String(input);\n const index = string2.indexOf(close, open.length);\n return ~index ? open + replaceClose(string2, close, replace, index) + close : open + string2 + close;\n };\n fn.open = open;\n fn.close = close;\n return fn;\n };\n const colorsObject = {\n isColorSupported: enabled,\n reset: enabled ? (s) => `\\x1B[0m${s}\\x1B[0m` : string\n };\n for (const [name, formatterArgs] of colorsEntries) {\n colorsObject[name] = enabled ? formatter(...formatterArgs) : string;\n }\n return colorsObject;\n}\nfunction setupColors(colors) {\n globalThis[SAFE_COLORS_SYMBOL] = colors;\n}\n\nexport { SAFE_TIMERS_SYMBOL as S, SAFE_COLORS_SYMBOL as a, getColors as b, createColors as c, getDefaultColors as g, setupColors as s };\n","'use strict';\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n","'use strict';\n\nvar hasSymbols = require('has-symbols/shams');\n\nmodule.exports = function hasToStringTagShams() {\n\treturn hasSymbols() && !!Symbol.toStringTag;\n};\n","'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n","'use strict';\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar slice = Array.prototype.slice;\nvar toStr = Object.prototype.toString;\nvar funcType = '[object Function]';\n\nmodule.exports = function bind(that) {\n var target = this;\n if (typeof target !== 'function' || toStr.call(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slice.call(arguments, 1);\n\n var bound;\n var binder = function () {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n args.concat(slice.call(arguments))\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n } else {\n return target.apply(\n that,\n args.concat(slice.call(arguments))\n );\n }\n };\n\n var boundLength = Math.max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs.push('$' + i);\n }\n\n bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);\n\n if (target.prototype) {\n var Empty = function Empty() {};\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return bound;\n};\n","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = Function.prototype.bind || implementation;\n","'use strict';\n\nvar bind = require('function-bind');\n\nmodule.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);\n","'use strict';\n\nvar undefined;\n\nvar $SyntaxError = SyntaxError;\nvar $Function = Function;\nvar $TypeError = TypeError;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\n\nvar getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': EvalError,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': Object,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': RangeError,\n\t'%ReferenceError%': ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet\n};\n\ntry {\n\tnull.error; // eslint-disable-line no-unused-expressions\n} catch (e) {\n\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\tvar errorProto = getProto(getProto(e));\n\tINTRINSICS['%Error.prototype%'] = errorProto;\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\nvar hasOwn = require('has');\nvar $concat = bind.call(Function.call, Array.prototype.concat);\nvar $spliceApply = bind.call(Function.apply, Array.prototype.splice);\nvar $replace = bind.call(Function.call, String.prototype.replace);\nvar $strSlice = bind.call(Function.call, String.prototype.slice);\nvar $exec = bind.call(Function.call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n","'use strict';\n\nvar bind = require('function-bind');\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $apply = GetIntrinsic('%Function.prototype.apply%');\nvar $call = GetIntrinsic('%Function.prototype.call%');\nvar $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\nvar $defineProperty = GetIntrinsic('%Object.defineProperty%', true);\nvar $max = GetIntrinsic('%Math.max%');\n\nif ($defineProperty) {\n\ttry {\n\t\t$defineProperty({}, 'a', { value: 1 });\n\t} catch (e) {\n\t\t// IE 8 has a broken defineProperty\n\t\t$defineProperty = null;\n\t}\n}\n\nmodule.exports = function callBind(originalFunction) {\n\tvar func = $reflectApply(bind, $call, arguments);\n\tif ($gOPD && $defineProperty) {\n\t\tvar desc = $gOPD(func, 'length');\n\t\tif (desc.configurable) {\n\t\t\t// original length, plus the receiver, minus any additional arguments (after the receiver)\n\t\t\t$defineProperty(\n\t\t\t\tfunc,\n\t\t\t\t'length',\n\t\t\t\t{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }\n\t\t\t);\n\t\t}\n\t}\n\treturn func;\n};\n\nvar applyBind = function applyBind() {\n\treturn $reflectApply(bind, $apply, arguments);\n};\n\nif ($defineProperty) {\n\t$defineProperty(module.exports, 'apply', { value: applyBind });\n} else {\n\tmodule.exports.apply = applyBind;\n}\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar callBind = require('./');\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n","'use strict';\n\nvar hasToStringTag = require('has-tostringtag/shams')();\nvar callBound = require('call-bind/callBound');\n\nvar $toString = callBound('Object.prototype.toString');\n\nvar isStandardArguments = function isArguments(value) {\n\tif (hasToStringTag && value && typeof value === 'object' && Symbol.toStringTag in value) {\n\t\treturn false;\n\t}\n\treturn $toString(value) === '[object Arguments]';\n};\n\nvar isLegacyArguments = function isArguments(value) {\n\tif (isStandardArguments(value)) {\n\t\treturn true;\n\t}\n\treturn value !== null &&\n\t\ttypeof value === 'object' &&\n\t\ttypeof value.length === 'number' &&\n\t\tvalue.length >= 0 &&\n\t\t$toString(value) !== '[object Array]' &&\n\t\t$toString(value.callee) === '[object Function]';\n};\n\nvar supportsStandardArguments = (function () {\n\treturn isStandardArguments(arguments);\n}());\n\nisStandardArguments.isLegacyArguments = isLegacyArguments; // for tests\n\nmodule.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;\n","'use strict';\n\nvar toStr = Object.prototype.toString;\nvar fnToStr = Function.prototype.toString;\nvar isFnRegex = /^\\s*(?:function)?\\*/;\nvar hasToStringTag = require('has-tostringtag/shams')();\nvar getProto = Object.getPrototypeOf;\nvar getGeneratorFunc = function () { // eslint-disable-line consistent-return\n\tif (!hasToStringTag) {\n\t\treturn false;\n\t}\n\ttry {\n\t\treturn Function('return function*() {}')();\n\t} catch (e) {\n\t}\n};\nvar GeneratorFunction;\n\nmodule.exports = function isGeneratorFunction(fn) {\n\tif (typeof fn !== 'function') {\n\t\treturn false;\n\t}\n\tif (isFnRegex.test(fnToStr.call(fn))) {\n\t\treturn true;\n\t}\n\tif (!hasToStringTag) {\n\t\tvar str = toStr.call(fn);\n\t\treturn str === '[object GeneratorFunction]';\n\t}\n\tif (!getProto) {\n\t\treturn false;\n\t}\n\tif (typeof GeneratorFunction === 'undefined') {\n\t\tvar generatorFunc = getGeneratorFunc();\n\t\tGeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;\n\t}\n\treturn getProto(fn) === GeneratorFunction;\n};\n","'use strict';\n\nvar fnToStr = Function.prototype.toString;\nvar reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;\nvar badArrayLike;\nvar isCallableMarker;\nif (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {\n\ttry {\n\t\tbadArrayLike = Object.defineProperty({}, 'length', {\n\t\t\tget: function () {\n\t\t\t\tthrow isCallableMarker;\n\t\t\t}\n\t\t});\n\t\tisCallableMarker = {};\n\t\t// eslint-disable-next-line no-throw-literal\n\t\treflectApply(function () { throw 42; }, null, badArrayLike);\n\t} catch (_) {\n\t\tif (_ !== isCallableMarker) {\n\t\t\treflectApply = null;\n\t\t}\n\t}\n} else {\n\treflectApply = null;\n}\n\nvar constructorRegex = /^\\s*class\\b/;\nvar isES6ClassFn = function isES6ClassFunction(value) {\n\ttry {\n\t\tvar fnStr = fnToStr.call(value);\n\t\treturn constructorRegex.test(fnStr);\n\t} catch (e) {\n\t\treturn false; // not a function\n\t}\n};\n\nvar tryFunctionObject = function tryFunctionToStr(value) {\n\ttry {\n\t\tif (isES6ClassFn(value)) { return false; }\n\t\tfnToStr.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\nvar toStr = Object.prototype.toString;\nvar objectClass = '[object Object]';\nvar fnClass = '[object Function]';\nvar genClass = '[object GeneratorFunction]';\nvar ddaClass = '[object HTMLAllCollection]'; // IE 11\nvar ddaClass2 = '[object HTML document.all class]';\nvar ddaClass3 = '[object HTMLCollection]'; // IE 9-10\nvar hasToStringTag = typeof Symbol === 'function' && !!Symbol.toStringTag; // better: use `has-tostringtag`\n\nvar isIE68 = !(0 in [,]); // eslint-disable-line no-sparse-arrays, comma-spacing\n\nvar isDDA = function isDocumentDotAll() { return false; };\nif (typeof document === 'object') {\n\t// Firefox 3 canonicalizes DDA to undefined when it's not accessed directly\n\tvar all = document.all;\n\tif (toStr.call(all) === toStr.call(document.all)) {\n\t\tisDDA = function isDocumentDotAll(value) {\n\t\t\t/* globals document: false */\n\t\t\t// in IE 6-8, typeof document.all is \"object\" and it's truthy\n\t\t\tif ((isIE68 || !value) && (typeof value === 'undefined' || typeof value === 'object')) {\n\t\t\t\ttry {\n\t\t\t\t\tvar str = toStr.call(value);\n\t\t\t\t\treturn (\n\t\t\t\t\t\tstr === ddaClass\n\t\t\t\t\t\t|| str === ddaClass2\n\t\t\t\t\t\t|| str === ddaClass3 // opera 12.16\n\t\t\t\t\t\t|| str === objectClass // IE 6-8\n\t\t\t\t\t) && value('') == null; // eslint-disable-line eqeqeq\n\t\t\t\t} catch (e) { /**/ }\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t}\n}\n\nmodule.exports = reflectApply\n\t? function isCallable(value) {\n\t\tif (isDDA(value)) { return true; }\n\t\tif (!value) { return false; }\n\t\tif (typeof value !== 'function' && typeof value !== 'object') { return false; }\n\t\ttry {\n\t\t\treflectApply(value, null, badArrayLike);\n\t\t} catch (e) {\n\t\t\tif (e !== isCallableMarker) { return false; }\n\t\t}\n\t\treturn !isES6ClassFn(value) && tryFunctionObject(value);\n\t}\n\t: function isCallable(value) {\n\t\tif (isDDA(value)) { return true; }\n\t\tif (!value) { return false; }\n\t\tif (typeof value !== 'function' && typeof value !== 'object') { return false; }\n\t\tif (hasToStringTag) { return tryFunctionObject(value); }\n\t\tif (isES6ClassFn(value)) { return false; }\n\t\tvar strClass = toStr.call(value);\n\t\tif (strClass !== fnClass && strClass !== genClass && !(/^\\[object HTML/).test(strClass)) { return false; }\n\t\treturn tryFunctionObject(value);\n\t};\n","'use strict';\n\nvar isCallable = require('is-callable');\n\nvar toStr = Object.prototype.toString;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar forEachArray = function forEachArray(array, iterator, receiver) {\n for (var i = 0, len = array.length; i < len; i++) {\n if (hasOwnProperty.call(array, i)) {\n if (receiver == null) {\n iterator(array[i], i, array);\n } else {\n iterator.call(receiver, array[i], i, array);\n }\n }\n }\n};\n\nvar forEachString = function forEachString(string, iterator, receiver) {\n for (var i = 0, len = string.length; i < len; i++) {\n // no such thing as a sparse string.\n if (receiver == null) {\n iterator(string.charAt(i), i, string);\n } else {\n iterator.call(receiver, string.charAt(i), i, string);\n }\n }\n};\n\nvar forEachObject = function forEachObject(object, iterator, receiver) {\n for (var k in object) {\n if (hasOwnProperty.call(object, k)) {\n if (receiver == null) {\n iterator(object[k], k, object);\n } else {\n iterator.call(receiver, object[k], k, object);\n }\n }\n }\n};\n\nvar forEach = function forEach(list, iterator, thisArg) {\n if (!isCallable(iterator)) {\n throw new TypeError('iterator must be a function');\n }\n\n var receiver;\n if (arguments.length >= 3) {\n receiver = thisArg;\n }\n\n if (toStr.call(list) === '[object Array]') {\n forEachArray(list, iterator, receiver);\n } else if (typeof list === 'string') {\n forEachString(list, iterator, receiver);\n } else {\n forEachObject(list, iterator, receiver);\n }\n};\n\nmodule.exports = forEach;\n","'use strict';\n\nvar possibleNames = [\n\t'BigInt64Array',\n\t'BigUint64Array',\n\t'Float32Array',\n\t'Float64Array',\n\t'Int16Array',\n\t'Int32Array',\n\t'Int8Array',\n\t'Uint16Array',\n\t'Uint32Array',\n\t'Uint8Array',\n\t'Uint8ClampedArray'\n];\n\nvar g = typeof globalThis === 'undefined' ? global : globalThis;\n\nmodule.exports = function availableTypedArrays() {\n\tvar out = [];\n\tfor (var i = 0; i < possibleNames.length; i++) {\n\t\tif (typeof g[possibleNames[i]] === 'function') {\n\t\t\tout[out.length] = possibleNames[i];\n\t\t}\n\t}\n\treturn out;\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\n\nif ($gOPD) {\n\ttry {\n\t\t$gOPD([], 'length');\n\t} catch (e) {\n\t\t// IE 8 has a broken gOPD\n\t\t$gOPD = null;\n\t}\n}\n\nmodule.exports = $gOPD;\n","'use strict';\n\nvar forEach = require('for-each');\nvar availableTypedArrays = require('available-typed-arrays');\nvar callBound = require('call-bind/callBound');\n\nvar $toString = callBound('Object.prototype.toString');\nvar hasToStringTag = require('has-tostringtag/shams')();\nvar gOPD = require('gopd');\n\nvar g = typeof globalThis === 'undefined' ? global : globalThis;\nvar typedArrays = availableTypedArrays();\n\nvar $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(array, value) {\n\tfor (var i = 0; i < array.length; i += 1) {\n\t\tif (array[i] === value) {\n\t\t\treturn i;\n\t\t}\n\t}\n\treturn -1;\n};\nvar $slice = callBound('String.prototype.slice');\nvar toStrTags = {};\nvar getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');\nif (hasToStringTag && gOPD && getPrototypeOf) {\n\tforEach(typedArrays, function (typedArray) {\n\t\tvar arr = new g[typedArray]();\n\t\tif (Symbol.toStringTag in arr) {\n\t\t\tvar proto = getPrototypeOf(arr);\n\t\t\tvar descriptor = gOPD(proto, Symbol.toStringTag);\n\t\t\tif (!descriptor) {\n\t\t\t\tvar superProto = getPrototypeOf(proto);\n\t\t\t\tdescriptor = gOPD(superProto, Symbol.toStringTag);\n\t\t\t}\n\t\t\ttoStrTags[typedArray] = descriptor.get;\n\t\t}\n\t});\n}\n\nvar tryTypedArrays = function tryAllTypedArrays(value) {\n\tvar anyTrue = false;\n\tforEach(toStrTags, function (getter, typedArray) {\n\t\tif (!anyTrue) {\n\t\t\ttry {\n\t\t\t\tanyTrue = getter.call(value) === typedArray;\n\t\t\t} catch (e) { /**/ }\n\t\t}\n\t});\n\treturn anyTrue;\n};\n\nmodule.exports = function isTypedArray(value) {\n\tif (!value || typeof value !== 'object') { return false; }\n\tif (!hasToStringTag || !(Symbol.toStringTag in value)) {\n\t\tvar tag = $slice($toString(value), 8, -1);\n\t\treturn $indexOf(typedArrays, tag) > -1;\n\t}\n\tif (!gOPD) { return false; }\n\treturn tryTypedArrays(value);\n};\n","'use strict';\n\nvar forEach = require('for-each');\nvar availableTypedArrays = require('available-typed-arrays');\nvar callBound = require('call-bind/callBound');\nvar gOPD = require('gopd');\n\nvar $toString = callBound('Object.prototype.toString');\nvar hasToStringTag = require('has-tostringtag/shams')();\n\nvar g = typeof globalThis === 'undefined' ? global : globalThis;\nvar typedArrays = availableTypedArrays();\n\nvar $slice = callBound('String.prototype.slice');\nvar toStrTags = {};\nvar getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');\nif (hasToStringTag && gOPD && getPrototypeOf) {\n\tforEach(typedArrays, function (typedArray) {\n\t\tif (typeof g[typedArray] === 'function') {\n\t\t\tvar arr = new g[typedArray]();\n\t\t\tif (Symbol.toStringTag in arr) {\n\t\t\t\tvar proto = getPrototypeOf(arr);\n\t\t\t\tvar descriptor = gOPD(proto, Symbol.toStringTag);\n\t\t\t\tif (!descriptor) {\n\t\t\t\t\tvar superProto = getPrototypeOf(proto);\n\t\t\t\t\tdescriptor = gOPD(superProto, Symbol.toStringTag);\n\t\t\t\t}\n\t\t\t\ttoStrTags[typedArray] = descriptor.get;\n\t\t\t}\n\t\t}\n\t});\n}\n\nvar tryTypedArrays = function tryAllTypedArrays(value) {\n\tvar foundName = false;\n\tforEach(toStrTags, function (getter, typedArray) {\n\t\tif (!foundName) {\n\t\t\ttry {\n\t\t\t\tvar name = getter.call(value);\n\t\t\t\tif (name === typedArray) {\n\t\t\t\t\tfoundName = name;\n\t\t\t\t}\n\t\t\t} catch (e) {}\n\t\t}\n\t});\n\treturn foundName;\n};\n\nvar isTypedArray = require('is-typed-array');\n\nmodule.exports = function whichTypedArray(value) {\n\tif (!isTypedArray(value)) { return false; }\n\tif (!hasToStringTag || !(Symbol.toStringTag in value)) { return $slice($toString(value), 8, -1); }\n\treturn tryTypedArrays(value);\n};\n","// Currently in sync with Node.js lib/internal/util/types.js\n// https://github.com/nodejs/node/commit/112cc7c27551254aa2b17098fb774867f05ed0d9\n\n'use strict';\n\nvar isArgumentsObject = require('is-arguments');\nvar isGeneratorFunction = require('is-generator-function');\nvar whichTypedArray = require('which-typed-array');\nvar isTypedArray = require('is-typed-array');\n\nfunction uncurryThis(f) {\n return f.call.bind(f);\n}\n\nvar BigIntSupported = typeof BigInt !== 'undefined';\nvar SymbolSupported = typeof Symbol !== 'undefined';\n\nvar ObjectToString = uncurryThis(Object.prototype.toString);\n\nvar numberValue = uncurryThis(Number.prototype.valueOf);\nvar stringValue = uncurryThis(String.prototype.valueOf);\nvar booleanValue = uncurryThis(Boolean.prototype.valueOf);\n\nif (BigIntSupported) {\n var bigIntValue = uncurryThis(BigInt.prototype.valueOf);\n}\n\nif (SymbolSupported) {\n var symbolValue = uncurryThis(Symbol.prototype.valueOf);\n}\n\nfunction checkBoxedPrimitive(value, prototypeValueOf) {\n if (typeof value !== 'object') {\n return false;\n }\n try {\n prototypeValueOf(value);\n return true;\n } catch(e) {\n return false;\n }\n}\n\nexports.isArgumentsObject = isArgumentsObject;\nexports.isGeneratorFunction = isGeneratorFunction;\nexports.isTypedArray = isTypedArray;\n\n// Taken from here and modified for better browser support\n// https://github.com/sindresorhus/p-is-promise/blob/cda35a513bda03f977ad5cde3a079d237e82d7ef/index.js\nfunction isPromise(input) {\n\treturn (\n\t\t(\n\t\t\ttypeof Promise !== 'undefined' &&\n\t\t\tinput instanceof Promise\n\t\t) ||\n\t\t(\n\t\t\tinput !== null &&\n\t\t\ttypeof input === 'object' &&\n\t\t\ttypeof input.then === 'function' &&\n\t\t\ttypeof input.catch === 'function'\n\t\t)\n\t);\n}\nexports.isPromise = isPromise;\n\nfunction isArrayBufferView(value) {\n if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {\n return ArrayBuffer.isView(value);\n }\n\n return (\n isTypedArray(value) ||\n isDataView(value)\n );\n}\nexports.isArrayBufferView = isArrayBufferView;\n\n\nfunction isUint8Array(value) {\n return whichTypedArray(value) === 'Uint8Array';\n}\nexports.isUint8Array = isUint8Array;\n\nfunction isUint8ClampedArray(value) {\n return whichTypedArray(value) === 'Uint8ClampedArray';\n}\nexports.isUint8ClampedArray = isUint8ClampedArray;\n\nfunction isUint16Array(value) {\n return whichTypedArray(value) === 'Uint16Array';\n}\nexports.isUint16Array = isUint16Array;\n\nfunction isUint32Array(value) {\n return whichTypedArray(value) === 'Uint32Array';\n}\nexports.isUint32Array = isUint32Array;\n\nfunction isInt8Array(value) {\n return whichTypedArray(value) === 'Int8Array';\n}\nexports.isInt8Array = isInt8Array;\n\nfunction isInt16Array(value) {\n return whichTypedArray(value) === 'Int16Array';\n}\nexports.isInt16Array = isInt16Array;\n\nfunction isInt32Array(value) {\n return whichTypedArray(value) === 'Int32Array';\n}\nexports.isInt32Array = isInt32Array;\n\nfunction isFloat32Array(value) {\n return whichTypedArray(value) === 'Float32Array';\n}\nexports.isFloat32Array = isFloat32Array;\n\nfunction isFloat64Array(value) {\n return whichTypedArray(value) === 'Float64Array';\n}\nexports.isFloat64Array = isFloat64Array;\n\nfunction isBigInt64Array(value) {\n return whichTypedArray(value) === 'BigInt64Array';\n}\nexports.isBigInt64Array = isBigInt64Array;\n\nfunction isBigUint64Array(value) {\n return whichTypedArray(value) === 'BigUint64Array';\n}\nexports.isBigUint64Array = isBigUint64Array;\n\nfunction isMapToString(value) {\n return ObjectToString(value) === '[object Map]';\n}\nisMapToString.working = (\n typeof Map !== 'undefined' &&\n isMapToString(new Map())\n);\n\nfunction isMap(value) {\n if (typeof Map === 'undefined') {\n return false;\n }\n\n return isMapToString.working\n ? isMapToString(value)\n : value instanceof Map;\n}\nexports.isMap = isMap;\n\nfunction isSetToString(value) {\n return ObjectToString(value) === '[object Set]';\n}\nisSetToString.working = (\n typeof Set !== 'undefined' &&\n isSetToString(new Set())\n);\nfunction isSet(value) {\n if (typeof Set === 'undefined') {\n return false;\n }\n\n return isSetToString.working\n ? isSetToString(value)\n : value instanceof Set;\n}\nexports.isSet = isSet;\n\nfunction isWeakMapToString(value) {\n return ObjectToString(value) === '[object WeakMap]';\n}\nisWeakMapToString.working = (\n typeof WeakMap !== 'undefined' &&\n isWeakMapToString(new WeakMap())\n);\nfunction isWeakMap(value) {\n if (typeof WeakMap === 'undefined') {\n return false;\n }\n\n return isWeakMapToString.working\n ? isWeakMapToString(value)\n : value instanceof WeakMap;\n}\nexports.isWeakMap = isWeakMap;\n\nfunction isWeakSetToString(value) {\n return ObjectToString(value) === '[object WeakSet]';\n}\nisWeakSetToString.working = (\n typeof WeakSet !== 'undefined' &&\n isWeakSetToString(new WeakSet())\n);\nfunction isWeakSet(value) {\n return isWeakSetToString(value);\n}\nexports.isWeakSet = isWeakSet;\n\nfunction isArrayBufferToString(value) {\n return ObjectToString(value) === '[object ArrayBuffer]';\n}\nisArrayBufferToString.working = (\n typeof ArrayBuffer !== 'undefined' &&\n isArrayBufferToString(new ArrayBuffer())\n);\nfunction isArrayBuffer(value) {\n if (typeof ArrayBuffer === 'undefined') {\n return false;\n }\n\n return isArrayBufferToString.working\n ? isArrayBufferToString(value)\n : value instanceof ArrayBuffer;\n}\nexports.isArrayBuffer = isArrayBuffer;\n\nfunction isDataViewToString(value) {\n return ObjectToString(value) === '[object DataView]';\n}\nisDataViewToString.working = (\n typeof ArrayBuffer !== 'undefined' &&\n typeof DataView !== 'undefined' &&\n isDataViewToString(new DataView(new ArrayBuffer(1), 0, 1))\n);\nfunction isDataView(value) {\n if (typeof DataView === 'undefined') {\n return false;\n }\n\n return isDataViewToString.working\n ? isDataViewToString(value)\n : value instanceof DataView;\n}\nexports.isDataView = isDataView;\n\n// Store a copy of SharedArrayBuffer in case it's deleted elsewhere\nvar SharedArrayBufferCopy = typeof SharedArrayBuffer !== 'undefined' ? SharedArrayBuffer : undefined;\nfunction isSharedArrayBufferToString(value) {\n return ObjectToString(value) === '[object SharedArrayBuffer]';\n}\nfunction isSharedArrayBuffer(value) {\n if (typeof SharedArrayBufferCopy === 'undefined') {\n return false;\n }\n\n if (typeof isSharedArrayBufferToString.working === 'undefined') {\n isSharedArrayBufferToString.working = isSharedArrayBufferToString(new SharedArrayBufferCopy());\n }\n\n return isSharedArrayBufferToString.working\n ? isSharedArrayBufferToString(value)\n : value instanceof SharedArrayBufferCopy;\n}\nexports.isSharedArrayBuffer = isSharedArrayBuffer;\n\nfunction isAsyncFunction(value) {\n return ObjectToString(value) === '[object AsyncFunction]';\n}\nexports.isAsyncFunction = isAsyncFunction;\n\nfunction isMapIterator(value) {\n return ObjectToString(value) === '[object Map Iterator]';\n}\nexports.isMapIterator = isMapIterator;\n\nfunction isSetIterator(value) {\n return ObjectToString(value) === '[object Set Iterator]';\n}\nexports.isSetIterator = isSetIterator;\n\nfunction isGeneratorObject(value) {\n return ObjectToString(value) === '[object Generator]';\n}\nexports.isGeneratorObject = isGeneratorObject;\n\nfunction isWebAssemblyCompiledModule(value) {\n return ObjectToString(value) === '[object WebAssembly.Module]';\n}\nexports.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;\n\nfunction isNumberObject(value) {\n return checkBoxedPrimitive(value, numberValue);\n}\nexports.isNumberObject = isNumberObject;\n\nfunction isStringObject(value) {\n return checkBoxedPrimitive(value, stringValue);\n}\nexports.isStringObject = isStringObject;\n\nfunction isBooleanObject(value) {\n return checkBoxedPrimitive(value, booleanValue);\n}\nexports.isBooleanObject = isBooleanObject;\n\nfunction isBigIntObject(value) {\n return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);\n}\nexports.isBigIntObject = isBigIntObject;\n\nfunction isSymbolObject(value) {\n return SymbolSupported && checkBoxedPrimitive(value, symbolValue);\n}\nexports.isSymbolObject = isSymbolObject;\n\nfunction isBoxedPrimitive(value) {\n return (\n isNumberObject(value) ||\n isStringObject(value) ||\n isBooleanObject(value) ||\n isBigIntObject(value) ||\n isSymbolObject(value)\n );\n}\nexports.isBoxedPrimitive = isBoxedPrimitive;\n\nfunction isAnyArrayBuffer(value) {\n return typeof Uint8Array !== 'undefined' && (\n isArrayBuffer(value) ||\n isSharedArrayBuffer(value)\n );\n}\nexports.isAnyArrayBuffer = isAnyArrayBuffer;\n\n['isProxy', 'isExternal', 'isModuleNamespaceObject'].forEach(function(method) {\n Object.defineProperty(exports, method, {\n enumerable: false,\n value: function() {\n throw new Error(method + ' is not supported in userland');\n }\n });\n});\n","module.exports = function isBuffer(arg) {\n return arg && typeof arg === 'object'\n && typeof arg.copy === 'function'\n && typeof arg.fill === 'function'\n && typeof arg.readUInt8 === 'function';\n}","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors ||\n function getOwnPropertyDescriptors(obj) {\n var keys = Object.keys(obj);\n var descriptors = {};\n for (var i = 0; i < keys.length; i++) {\n descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]);\n }\n return descriptors;\n };\n\nvar formatRegExp = /%[sdj%]/g;\nexports.format = function(f) {\n if (!isString(f)) {\n var objects = [];\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n return objects.join(' ');\n }\n\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function(x) {\n if (x === '%%') return '%';\n if (i >= len) return x;\n switch (x) {\n case '%s': return String(args[i++]);\n case '%d': return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n default:\n return x;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += ' ' + x;\n } else {\n str += ' ' + inspect(x);\n }\n }\n return str;\n};\n\n\n// Mark that a method should not be used.\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set, then it is a no-op.\nexports.deprecate = function(fn, msg) {\n if (typeof process !== 'undefined' && process.noDeprecation === true) {\n return fn;\n }\n\n // Allow for deprecating things in the process of starting up.\n if (typeof process === 'undefined') {\n return function() {\n return exports.deprecate(fn, msg).apply(this, arguments);\n };\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n};\n\n\nvar debugs = {};\nvar debugEnvRegex = /^$/;\n\nif (process.env.NODE_DEBUG) {\n var debugEnv = process.env.NODE_DEBUG;\n debugEnv = debugEnv.replace(/[|\\\\{}()[\\]^$+?.]/g, '\\\\$&')\n .replace(/\\*/g, '.*')\n .replace(/,/g, '$|^')\n .toUpperCase();\n debugEnvRegex = new RegExp('^' + debugEnv + '$', 'i');\n}\nexports.debuglog = function(set) {\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (debugEnvRegex.test(set)) {\n var pid = process.pid;\n debugs[set] = function() {\n var msg = exports.format.apply(exports, arguments);\n console.error('%s %d: %s', set, pid, msg);\n };\n } else {\n debugs[set] = function() {};\n }\n }\n return debugs[set];\n};\n\n\n/**\n * Echos the value of a value. Trys to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Object} opts Optional options object that alters the output.\n */\n/* legacy: obj, showHidden, depth, colors*/\nfunction inspect(obj, opts) {\n // default options\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n // legacy...\n if (arguments.length >= 3) ctx.depth = arguments[2];\n if (arguments.length >= 4) ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n // legacy...\n ctx.showHidden = opts;\n } else if (opts) {\n // got an \"options\" object\n exports._extend(ctx, opts);\n }\n // set default options\n if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n if (isUndefined(ctx.depth)) ctx.depth = 2;\n if (isUndefined(ctx.colors)) ctx.colors = false;\n if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n}\nexports.inspect = inspect;\n\n\n// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\ninspect.colors = {\n 'bold' : [1, 22],\n 'italic' : [3, 23],\n 'underline' : [4, 24],\n 'inverse' : [7, 27],\n 'white' : [37, 39],\n 'grey' : [90, 39],\n 'black' : [30, 39],\n 'blue' : [34, 39],\n 'cyan' : [36, 39],\n 'green' : [32, 39],\n 'magenta' : [35, 39],\n 'red' : [31, 39],\n 'yellow' : [33, 39]\n};\n\n// Don't use 'blue' not visible on cmd.exe\ninspect.styles = {\n 'special': 'cyan',\n 'number': 'yellow',\n 'boolean': 'yellow',\n 'undefined': 'grey',\n 'null': 'bold',\n 'string': 'green',\n 'date': 'magenta',\n // \"name\": intentionally not styling\n 'regexp': 'red'\n};\n\n\nfunction stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n\n if (style) {\n return '\\u001b[' + inspect.colors[style][0] + 'm' + str +\n '\\u001b[' + inspect.colors[style][1] + 'm';\n } else {\n return str;\n }\n}\n\n\nfunction stylizeNoColor(str, styleType) {\n return str;\n}\n\n\nfunction arrayToHash(array) {\n var hash = {};\n\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n\n return hash;\n}\n\n\nfunction formatValue(ctx, value, recurseTimes) {\n // Provide a hook for user-specified inspect functions.\n // Check that value is an object with an inspect function on it\n if (ctx.customInspect &&\n value &&\n isFunction(value.inspect) &&\n // Filter out the util module, it's inspect function is special\n value.inspect !== exports.inspect &&\n // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n\n // Primitive types cannot have properties\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n\n // Look up the keys of the object.\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n\n // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n if (isError(value)\n && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n return formatError(value);\n }\n\n // Some type of object without properties can be shortcutted.\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n\n var base = '', array = false, braces = ['{', '}'];\n\n // Make Array say that they are Array\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n\n // Make functions say that they are functions\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n\n // Make RegExps say that they are RegExps\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n\n // Make dates with properties first say the date\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n\n // Make error with message first say the error\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n\n ctx.seen.push(value);\n\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n\n ctx.seen.pop();\n\n return reduceToSingleString(output, base, braces);\n}\n\n\nfunction formatPrimitive(ctx, value) {\n if (isUndefined(value))\n return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"') + '\\'';\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value))\n return ctx.stylize('' + value, 'number');\n if (isBoolean(value))\n return ctx.stylize('' + value, 'boolean');\n // For some reason typeof null is \"object\", so special case here.\n if (isNull(value))\n return ctx.stylize('null', 'null');\n}\n\n\nfunction formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n}\n\n\nfunction formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n String(i), true));\n } else {\n output.push('');\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n key, true));\n }\n });\n return output;\n}\n\n\nfunction formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n').slice(2);\n } else {\n str = '\\n' + str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.slice(1, -1);\n name = ctx.stylize(name, 'name');\n } else {\n name = name.replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n\n return name + ': ' + str;\n}\n\n\nfunction reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function(prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n\n if (length > 60) {\n return braces[0] +\n (base === '' ? '' : base + '\\n ') +\n ' ' +\n output.join(',\\n ') +\n ' ' +\n braces[1];\n }\n\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n}\n\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\nexports.types = require('./support/types');\n\nfunction isArray(ar) {\n return Array.isArray(ar);\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\nexports.types.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\nexports.types.isDate = isDate;\n\nfunction isError(e) {\n return isObject(e) &&\n (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\nexports.types.isNativeError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = require('./support/isBuffer');\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n\nfunction pad(n) {\n return n < 10 ? '0' + n.toString(10) : n.toString(10);\n}\n\n\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',\n 'Oct', 'Nov', 'Dec'];\n\n// 26 Feb 16:19:34\nfunction timestamp() {\n var d = new Date();\n var time = [pad(d.getHours()),\n pad(d.getMinutes()),\n pad(d.getSeconds())].join(':');\n return [d.getDate(), months[d.getMonth()], time].join(' ');\n}\n\n\n// log is just a thin wrapper to console.log that prepends a timestamp\nexports.log = function() {\n console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\n};\n\n\n/**\n * Inherit the prototype methods from one constructor into another.\n *\n * The Function.prototype.inherits from lang.js rewritten as a standalone\n * function (not on Function.prototype). NOTE: If this file is to be loaded\n * during bootstrapping this function needs to be rewritten using some native\n * functions as prototype setup using normal JavaScript does not work as\n * expected during bootstrapping (see mirror.js in r114903).\n *\n * @param {function} ctor Constructor function which needs to inherit the\n * prototype.\n * @param {function} superCtor Constructor function to inherit prototype from.\n */\nexports.inherits = require('inherits');\n\nexports._extend = function(origin, add) {\n // Don't do anything if add isn't an object\n if (!add || !isObject(add)) return origin;\n\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n};\n\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nvar kCustomPromisifiedSymbol = typeof Symbol !== 'undefined' ? Symbol('util.promisify.custom') : undefined;\n\nexports.promisify = function promisify(original) {\n if (typeof original !== 'function')\n throw new TypeError('The \"original\" argument must be of type Function');\n\n if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {\n var fn = original[kCustomPromisifiedSymbol];\n if (typeof fn !== 'function') {\n throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');\n }\n Object.defineProperty(fn, kCustomPromisifiedSymbol, {\n value: fn, enumerable: false, writable: false, configurable: true\n });\n return fn;\n }\n\n function fn() {\n var promiseResolve, promiseReject;\n var promise = new Promise(function (resolve, reject) {\n promiseResolve = resolve;\n promiseReject = reject;\n });\n\n var args = [];\n for (var i = 0; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n args.push(function (err, value) {\n if (err) {\n promiseReject(err);\n } else {\n promiseResolve(value);\n }\n });\n\n try {\n original.apply(this, args);\n } catch (err) {\n promiseReject(err);\n }\n\n return promise;\n }\n\n Object.setPrototypeOf(fn, Object.getPrototypeOf(original));\n\n if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {\n value: fn, enumerable: false, writable: false, configurable: true\n });\n return Object.defineProperties(\n fn,\n getOwnPropertyDescriptors(original)\n );\n}\n\nexports.promisify.custom = kCustomPromisifiedSymbol\n\nfunction callbackifyOnRejected(reason, cb) {\n // `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M).\n // Because `null` is a special error value in callbacks which means \"no error\n // occurred\", we error-wrap so the callback consumer can distinguish between\n // \"the promise rejected with null\" or \"the promise fulfilled with undefined\".\n if (!reason) {\n var newReason = new Error('Promise was rejected with a falsy value');\n newReason.reason = reason;\n reason = newReason;\n }\n return cb(reason);\n}\n\nfunction callbackify(original) {\n if (typeof original !== 'function') {\n throw new TypeError('The \"original\" argument must be of type Function');\n }\n\n // We DO NOT return the promise as it gives the user a false sense that\n // the promise is actually somehow related to the callback's execution\n // and that the callback throwing will reject the promise.\n function callbackified() {\n var args = [];\n for (var i = 0; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n\n var maybeCb = args.pop();\n if (typeof maybeCb !== 'function') {\n throw new TypeError('The last argument must be of type Function');\n }\n var self = this;\n var cb = function() {\n return maybeCb.apply(self, arguments);\n };\n // In true node style we process the callback on `nextTick` with all the\n // implications (stack, `uncaughtException`, `async_hooks`)\n original.apply(this, args)\n .then(function(ret) { process.nextTick(cb.bind(null, null, ret)) },\n function(rej) { process.nextTick(callbackifyOnRejected.bind(null, rej, cb)) });\n }\n\n Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));\n Object.defineProperties(callbackified,\n getOwnPropertyDescriptors(original));\n return callbackified;\n}\nexports.callbackify = callbackify;\n","export default {}","(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n typeof define === 'function' && define.amd ? define(['exports'], factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.loupe = {}));\n}(this, (function (exports) { 'use strict';\n\n function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n }\n\n function _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n }\n\n function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n }\n\n function _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n }\n\n function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n }\n\n function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n\n var ansiColors = {\n bold: ['1', '22'],\n dim: ['2', '22'],\n italic: ['3', '23'],\n underline: ['4', '24'],\n // 5 & 6 are blinking\n inverse: ['7', '27'],\n hidden: ['8', '28'],\n strike: ['9', '29'],\n // 10-20 are fonts\n // 21-29 are resets for 1-9\n black: ['30', '39'],\n red: ['31', '39'],\n green: ['32', '39'],\n yellow: ['33', '39'],\n blue: ['34', '39'],\n magenta: ['35', '39'],\n cyan: ['36', '39'],\n white: ['37', '39'],\n brightblack: ['30;1', '39'],\n brightred: ['31;1', '39'],\n brightgreen: ['32;1', '39'],\n brightyellow: ['33;1', '39'],\n brightblue: ['34;1', '39'],\n brightmagenta: ['35;1', '39'],\n brightcyan: ['36;1', '39'],\n brightwhite: ['37;1', '39'],\n grey: ['90', '39']\n };\n var styles = {\n special: 'cyan',\n number: 'yellow',\n bigint: 'yellow',\n boolean: 'yellow',\n undefined: 'grey',\n null: 'bold',\n string: 'green',\n symbol: 'green',\n date: 'magenta',\n regexp: 'red'\n };\n var truncator = '…';\n\n function colorise(value, styleType) {\n var color = ansiColors[styles[styleType]] || ansiColors[styleType];\n\n if (!color) {\n return String(value);\n }\n\n return \"\\x1B[\".concat(color[0], \"m\").concat(String(value), \"\\x1B[\").concat(color[1], \"m\");\n }\n\n function normaliseOptions() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref$showHidden = _ref.showHidden,\n showHidden = _ref$showHidden === void 0 ? false : _ref$showHidden,\n _ref$depth = _ref.depth,\n depth = _ref$depth === void 0 ? 2 : _ref$depth,\n _ref$colors = _ref.colors,\n colors = _ref$colors === void 0 ? false : _ref$colors,\n _ref$customInspect = _ref.customInspect,\n customInspect = _ref$customInspect === void 0 ? true : _ref$customInspect,\n _ref$showProxy = _ref.showProxy,\n showProxy = _ref$showProxy === void 0 ? false : _ref$showProxy,\n _ref$maxArrayLength = _ref.maxArrayLength,\n maxArrayLength = _ref$maxArrayLength === void 0 ? Infinity : _ref$maxArrayLength,\n _ref$breakLength = _ref.breakLength,\n breakLength = _ref$breakLength === void 0 ? Infinity : _ref$breakLength,\n _ref$seen = _ref.seen,\n seen = _ref$seen === void 0 ? [] : _ref$seen,\n _ref$truncate = _ref.truncate,\n truncate = _ref$truncate === void 0 ? Infinity : _ref$truncate,\n _ref$stylize = _ref.stylize,\n stylize = _ref$stylize === void 0 ? String : _ref$stylize;\n\n var options = {\n showHidden: Boolean(showHidden),\n depth: Number(depth),\n colors: Boolean(colors),\n customInspect: Boolean(customInspect),\n showProxy: Boolean(showProxy),\n maxArrayLength: Number(maxArrayLength),\n breakLength: Number(breakLength),\n truncate: Number(truncate),\n seen: seen,\n stylize: stylize\n };\n\n if (options.colors) {\n options.stylize = colorise;\n }\n\n return options;\n }\n function truncate(string, length) {\n var tail = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : truncator;\n string = String(string);\n var tailLength = tail.length;\n var stringLength = string.length;\n\n if (tailLength > length && stringLength > tailLength) {\n return tail;\n }\n\n if (stringLength > length && stringLength > tailLength) {\n return \"\".concat(string.slice(0, length - tailLength)).concat(tail);\n }\n\n return string;\n } // eslint-disable-next-line complexity\n\n function inspectList(list, options, inspectItem) {\n var separator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ', ';\n inspectItem = inspectItem || options.inspect;\n var size = list.length;\n if (size === 0) return '';\n var originalLength = options.truncate;\n var output = '';\n var peek = '';\n var truncated = '';\n\n for (var i = 0; i < size; i += 1) {\n var last = i + 1 === list.length;\n var secondToLast = i + 2 === list.length;\n truncated = \"\".concat(truncator, \"(\").concat(list.length - i, \")\");\n var value = list[i]; // If there is more than one remaining we need to account for a separator of `, `\n\n options.truncate = originalLength - output.length - (last ? 0 : separator.length);\n var string = peek || inspectItem(value, options) + (last ? '' : separator);\n var nextLength = output.length + string.length;\n var truncatedLength = nextLength + truncated.length; // If this is the last element, and adding it would\n // take us over length, but adding the truncator wouldn't - then break now\n\n if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) {\n break;\n } // If this isn't the last or second to last element to scan,\n // but the string is already over length then break here\n\n\n if (!last && !secondToLast && truncatedLength > originalLength) {\n break;\n } // Peek at the next string to determine if we should\n // break early before adding this item to the output\n\n\n peek = last ? '' : inspectItem(list[i + 1], options) + (secondToLast ? '' : separator); // If we have one element left, but this element and\n // the next takes over length, the break early\n\n if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) {\n break;\n }\n\n output += string; // If the next element takes us to length -\n // but there are more after that, then we should truncate now\n\n if (!last && !secondToLast && nextLength + peek.length >= originalLength) {\n truncated = \"\".concat(truncator, \"(\").concat(list.length - i - 1, \")\");\n break;\n }\n\n truncated = '';\n }\n\n return \"\".concat(output).concat(truncated);\n }\n\n function quoteComplexKey(key) {\n if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) {\n return key;\n }\n\n return JSON.stringify(key).replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"').replace(/(^\"|\"$)/g, \"'\");\n }\n\n function inspectProperty(_ref2, options) {\n var _ref3 = _slicedToArray(_ref2, 2),\n key = _ref3[0],\n value = _ref3[1];\n\n options.truncate -= 2;\n\n if (typeof key === 'string') {\n key = quoteComplexKey(key);\n } else if (typeof key !== 'number') {\n key = \"[\".concat(options.inspect(key, options), \"]\");\n }\n\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return \"\".concat(key, \": \").concat(value);\n }\n\n function inspectArray(array, options) {\n // Object.keys will always output the Array indices first, so we can slice by\n // `array.length` to get non-index properties\n var nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length) return '[]';\n options.truncate -= 4;\n var listContents = inspectList(array, options);\n options.truncate -= listContents.length;\n var propertyContents = '';\n\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map(function (key) {\n return [key, array[key]];\n }), options, inspectProperty);\n }\n\n return \"[ \".concat(listContents).concat(propertyContents ? \", \".concat(propertyContents) : '', \" ]\");\n }\n\n /* !\n * Chai - getFuncName utility\n * Copyright(c) 2012-2016 Jake Luer \n * MIT Licensed\n */\n\n /**\n * ### .getFuncName(constructorFn)\n *\n * Returns the name of a function.\n * When a non-function instance is passed, returns `null`.\n * This also includes a polyfill function if `aFunc.name` is not defined.\n *\n * @name getFuncName\n * @param {Function} funct\n * @namespace Utils\n * @api public\n */\n\n var toString = Function.prototype.toString;\n var functionNameMatch = /\\s*function(?:\\s|\\s*\\/\\*[^(?:*\\/)]+\\*\\/\\s*)*([^\\s\\(\\/]+)/;\n function getFuncName(aFunc) {\n if (typeof aFunc !== 'function') {\n return null;\n }\n\n var name = '';\n if (typeof Function.prototype.name === 'undefined' && typeof aFunc.name === 'undefined') {\n // Here we run a polyfill if Function does not support the `name` property and if aFunc.name is not defined\n var match = toString.call(aFunc).match(functionNameMatch);\n if (match) {\n name = match[1];\n }\n } else {\n // If we've got a `name` property we just use it\n name = aFunc.name;\n }\n\n return name;\n }\n\n var getFuncName_1 = getFuncName;\n\n var getArrayName = function getArrayName(array) {\n // We need to special case Node.js' Buffers, which report to be Uint8Array\n if (typeof Buffer === 'function' && array instanceof Buffer) {\n return 'Buffer';\n }\n\n if (array[Symbol.toStringTag]) {\n return array[Symbol.toStringTag];\n }\n\n return getFuncName_1(array.constructor);\n };\n\n function inspectTypedArray(array, options) {\n var name = getArrayName(array);\n options.truncate -= name.length + 4; // Object.keys will always output the Array indices first, so we can slice by\n // `array.length` to get non-index properties\n\n var nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length) return \"\".concat(name, \"[]\"); // As we know TypedArrays only contain Unsigned Integers, we can skip inspecting each one and simply\n // stylise the toString() value of them\n\n var output = '';\n\n for (var i = 0; i < array.length; i++) {\n var string = \"\".concat(options.stylize(truncate(array[i], options.truncate), 'number')).concat(i === array.length - 1 ? '' : ', ');\n options.truncate -= string.length;\n\n if (array[i] !== array.length && options.truncate <= 3) {\n output += \"\".concat(truncator, \"(\").concat(array.length - array[i] + 1, \")\");\n break;\n }\n\n output += string;\n }\n\n var propertyContents = '';\n\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map(function (key) {\n return [key, array[key]];\n }), options, inspectProperty);\n }\n\n return \"\".concat(name, \"[ \").concat(output).concat(propertyContents ? \", \".concat(propertyContents) : '', \" ]\");\n }\n\n function inspectDate(dateObject, options) {\n var stringRepresentation = dateObject.toJSON();\n\n if (stringRepresentation === null) {\n return 'Invalid Date';\n }\n\n var split = stringRepresentation.split('T');\n var date = split[0]; // If we need to - truncate the time portion, but never the date\n\n return options.stylize(\"\".concat(date, \"T\").concat(truncate(split[1], options.truncate - date.length - 1)), 'date');\n }\n\n function inspectFunction(func, options) {\n var name = getFuncName_1(func);\n\n if (!name) {\n return options.stylize('[Function]', 'special');\n }\n\n return options.stylize(\"[Function \".concat(truncate(name, options.truncate - 11), \"]\"), 'special');\n }\n\n function inspectMapEntry(_ref, options) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n value = _ref2[1];\n\n options.truncate -= 4;\n key = options.inspect(key, options);\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return \"\".concat(key, \" => \").concat(value);\n } // IE11 doesn't support `map.entries()`\n\n\n function mapToEntries(map) {\n var entries = [];\n map.forEach(function (value, key) {\n entries.push([key, value]);\n });\n return entries;\n }\n\n function inspectMap(map, options) {\n var size = map.size - 1;\n\n if (size <= 0) {\n return 'Map{}';\n }\n\n options.truncate -= 7;\n return \"Map{ \".concat(inspectList(mapToEntries(map), options, inspectMapEntry), \" }\");\n }\n\n var isNaN = Number.isNaN || function (i) {\n return i !== i;\n }; // eslint-disable-line no-self-compare\n\n\n function inspectNumber(number, options) {\n if (isNaN(number)) {\n return options.stylize('NaN', 'number');\n }\n\n if (number === Infinity) {\n return options.stylize('Infinity', 'number');\n }\n\n if (number === -Infinity) {\n return options.stylize('-Infinity', 'number');\n }\n\n if (number === 0) {\n return options.stylize(1 / number === Infinity ? '+0' : '-0', 'number');\n }\n\n return options.stylize(truncate(number, options.truncate), 'number');\n }\n\n function inspectBigInt(number, options) {\n var nums = truncate(number.toString(), options.truncate - 1);\n if (nums !== truncator) nums += 'n';\n return options.stylize(nums, 'bigint');\n }\n\n function inspectRegExp(value, options) {\n var flags = value.toString().split('/')[2];\n var sourceLength = options.truncate - (2 + flags.length);\n var source = value.source;\n return options.stylize(\"/\".concat(truncate(source, sourceLength), \"/\").concat(flags), 'regexp');\n }\n\n function arrayFromSet(set) {\n var values = [];\n set.forEach(function (value) {\n values.push(value);\n });\n return values;\n }\n\n function inspectSet(set, options) {\n if (set.size === 0) return 'Set{}';\n options.truncate -= 7;\n return \"Set{ \".concat(inspectList(arrayFromSet(set), options), \" }\");\n }\n\n var stringEscapeChars = new RegExp(\"['\\\\u0000-\\\\u001f\\\\u007f-\\\\u009f\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\" + \"\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]\", 'g');\n var escapeCharacters = {\n '\\b': '\\\\b',\n '\\t': '\\\\t',\n '\\n': '\\\\n',\n '\\f': '\\\\f',\n '\\r': '\\\\r',\n \"'\": \"\\\\'\",\n '\\\\': '\\\\\\\\'\n };\n var hex = 16;\n var unicodeLength = 4;\n\n function escape(char) {\n return escapeCharacters[char] || \"\\\\u\".concat(\"0000\".concat(char.charCodeAt(0).toString(hex)).slice(-unicodeLength));\n }\n\n function inspectString(string, options) {\n if (stringEscapeChars.test(string)) {\n string = string.replace(stringEscapeChars, escape);\n }\n\n return options.stylize(\"'\".concat(truncate(string, options.truncate - 2), \"'\"), 'string');\n }\n\n function inspectSymbol(value) {\n if ('description' in Symbol.prototype) {\n return value.description ? \"Symbol(\".concat(value.description, \")\") : 'Symbol()';\n }\n\n return value.toString();\n }\n\n var getPromiseValue = function getPromiseValue() {\n return 'Promise{…}';\n };\n\n try {\n var _process$binding = process.binding('util'),\n getPromiseDetails = _process$binding.getPromiseDetails,\n kPending = _process$binding.kPending,\n kRejected = _process$binding.kRejected;\n\n if (Array.isArray(getPromiseDetails(Promise.resolve()))) {\n getPromiseValue = function getPromiseValue(value, options) {\n var _getPromiseDetails = getPromiseDetails(value),\n _getPromiseDetails2 = _slicedToArray(_getPromiseDetails, 2),\n state = _getPromiseDetails2[0],\n innerValue = _getPromiseDetails2[1];\n\n if (state === kPending) {\n return 'Promise{}';\n }\n\n return \"Promise\".concat(state === kRejected ? '!' : '', \"{\").concat(options.inspect(innerValue, options), \"}\");\n };\n }\n } catch (notNode) {\n /* ignore */\n }\n\n var inspectPromise = getPromiseValue;\n\n function inspectObject(object, options) {\n var properties = Object.getOwnPropertyNames(object);\n var symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];\n\n if (properties.length === 0 && symbols.length === 0) {\n return '{}';\n }\n\n options.truncate -= 4;\n options.seen = options.seen || [];\n\n if (options.seen.indexOf(object) >= 0) {\n return '[Circular]';\n }\n\n options.seen.push(object);\n var propertyContents = inspectList(properties.map(function (key) {\n return [key, object[key]];\n }), options, inspectProperty);\n var symbolContents = inspectList(symbols.map(function (key) {\n return [key, object[key]];\n }), options, inspectProperty);\n options.seen.pop();\n var sep = '';\n\n if (propertyContents && symbolContents) {\n sep = ', ';\n }\n\n return \"{ \".concat(propertyContents).concat(sep).concat(symbolContents, \" }\");\n }\n\n var toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag ? Symbol.toStringTag : false;\n function inspectClass(value, options) {\n var name = '';\n\n if (toStringTag && toStringTag in value) {\n name = value[toStringTag];\n }\n\n name = name || getFuncName_1(value.constructor); // Babel transforms anonymous classes to the name `_class`\n\n if (!name || name === '_class') {\n name = '';\n }\n\n options.truncate -= name.length;\n return \"\".concat(name).concat(inspectObject(value, options));\n }\n\n function inspectArguments(args, options) {\n if (args.length === 0) return 'Arguments[]';\n options.truncate -= 13;\n return \"Arguments[ \".concat(inspectList(args, options), \" ]\");\n }\n\n var errorKeys = ['stack', 'line', 'column', 'name', 'message', 'fileName', 'lineNumber', 'columnNumber', 'number', 'description'];\n function inspectObject$1(error, options) {\n var properties = Object.getOwnPropertyNames(error).filter(function (key) {\n return errorKeys.indexOf(key) === -1;\n });\n var name = error.name;\n options.truncate -= name.length;\n var message = '';\n\n if (typeof error.message === 'string') {\n message = truncate(error.message, options.truncate);\n } else {\n properties.unshift('message');\n }\n\n message = message ? \": \".concat(message) : '';\n options.truncate -= message.length + 5;\n var propertyContents = inspectList(properties.map(function (key) {\n return [key, error[key]];\n }), options, inspectProperty);\n return \"\".concat(name).concat(message).concat(propertyContents ? \" { \".concat(propertyContents, \" }\") : '');\n }\n\n function inspectAttribute(_ref, options) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n value = _ref2[1];\n\n options.truncate -= 3;\n\n if (!value) {\n return \"\".concat(options.stylize(key, 'yellow'));\n }\n\n return \"\".concat(options.stylize(key, 'yellow'), \"=\").concat(options.stylize(\"\\\"\".concat(value, \"\\\"\"), 'string'));\n }\n function inspectHTMLCollection(collection, options) {\n // eslint-disable-next-line no-use-before-define\n return inspectList(collection, options, inspectHTML, '\\n');\n }\n function inspectHTML(element, options) {\n var properties = element.getAttributeNames();\n var name = element.tagName.toLowerCase();\n var head = options.stylize(\"<\".concat(name), 'special');\n var headClose = options.stylize(\">\", 'special');\n var tail = options.stylize(\"\"), 'special');\n options.truncate -= name.length * 2 + 5;\n var propertyContents = '';\n\n if (properties.length > 0) {\n propertyContents += ' ';\n propertyContents += inspectList(properties.map(function (key) {\n return [key, element.getAttribute(key)];\n }), options, inspectAttribute, ' ');\n }\n\n options.truncate -= propertyContents.length;\n var truncate = options.truncate;\n var children = inspectHTMLCollection(element.children, options);\n\n if (children && children.length > truncate) {\n children = \"\".concat(truncator, \"(\").concat(element.children.length, \")\");\n }\n\n return \"\".concat(head).concat(propertyContents).concat(headClose).concat(children).concat(tail);\n }\n\n var symbolsSupported = typeof Symbol === 'function' && typeof Symbol.for === 'function';\n var chaiInspect = symbolsSupported ? Symbol.for('chai/inspect') : '@@chai/inspect';\n var nodeInspect = false;\n\n try {\n // eslint-disable-next-line global-require\n var nodeUtil = require('util');\n\n nodeInspect = nodeUtil.inspect ? nodeUtil.inspect.custom : false;\n } catch (noNodeInspect) {\n nodeInspect = false;\n }\n\n function FakeMap() {\n // eslint-disable-next-line prefer-template\n this.key = 'chai/loupe__' + Math.random() + Date.now();\n }\n\n FakeMap.prototype = {\n // eslint-disable-next-line object-shorthand\n get: function get(key) {\n return key[this.key];\n },\n // eslint-disable-next-line object-shorthand\n has: function has(key) {\n return this.key in key;\n },\n // eslint-disable-next-line object-shorthand\n set: function set(key, value) {\n if (Object.isExtensible(key)) {\n Object.defineProperty(key, this.key, {\n // eslint-disable-next-line object-shorthand\n value: value,\n configurable: true\n });\n }\n }\n };\n var constructorMap = new (typeof WeakMap === 'function' ? WeakMap : FakeMap)();\n var stringTagMap = {};\n var baseTypesMap = {\n undefined: function undefined$1(value, options) {\n return options.stylize('undefined', 'undefined');\n },\n null: function _null(value, options) {\n return options.stylize(null, 'null');\n },\n boolean: function boolean(value, options) {\n return options.stylize(value, 'boolean');\n },\n Boolean: function Boolean(value, options) {\n return options.stylize(value, 'boolean');\n },\n number: inspectNumber,\n Number: inspectNumber,\n bigint: inspectBigInt,\n BigInt: inspectBigInt,\n string: inspectString,\n String: inspectString,\n function: inspectFunction,\n Function: inspectFunction,\n symbol: inspectSymbol,\n // A Symbol polyfill will return `Symbol` not `symbol` from typedetect\n Symbol: inspectSymbol,\n Array: inspectArray,\n Date: inspectDate,\n Map: inspectMap,\n Set: inspectSet,\n RegExp: inspectRegExp,\n Promise: inspectPromise,\n // WeakSet, WeakMap are totally opaque to us\n WeakSet: function WeakSet(value, options) {\n return options.stylize('WeakSet{…}', 'special');\n },\n WeakMap: function WeakMap(value, options) {\n return options.stylize('WeakMap{…}', 'special');\n },\n Arguments: inspectArguments,\n Int8Array: inspectTypedArray,\n Uint8Array: inspectTypedArray,\n Uint8ClampedArray: inspectTypedArray,\n Int16Array: inspectTypedArray,\n Uint16Array: inspectTypedArray,\n Int32Array: inspectTypedArray,\n Uint32Array: inspectTypedArray,\n Float32Array: inspectTypedArray,\n Float64Array: inspectTypedArray,\n Generator: function Generator() {\n return '';\n },\n DataView: function DataView() {\n return '';\n },\n ArrayBuffer: function ArrayBuffer() {\n return '';\n },\n Error: inspectObject$1,\n HTMLCollection: inspectHTMLCollection,\n NodeList: inspectHTMLCollection\n }; // eslint-disable-next-line complexity\n\n var inspectCustom = function inspectCustom(value, options, type) {\n if (chaiInspect in value && typeof value[chaiInspect] === 'function') {\n return value[chaiInspect](options);\n }\n\n if (nodeInspect && nodeInspect in value && typeof value[nodeInspect] === 'function') {\n return value[nodeInspect](options.depth, options);\n }\n\n if ('inspect' in value && typeof value.inspect === 'function') {\n return value.inspect(options.depth, options);\n }\n\n if ('constructor' in value && constructorMap.has(value.constructor)) {\n return constructorMap.get(value.constructor)(value, options);\n }\n\n if (stringTagMap[type]) {\n return stringTagMap[type](value, options);\n }\n\n return '';\n };\n\n var toString$1 = Object.prototype.toString; // eslint-disable-next-line complexity\n\n function inspect(value, options) {\n options = normaliseOptions(options);\n options.inspect = inspect;\n var _options = options,\n customInspect = _options.customInspect;\n var type = value === null ? 'null' : _typeof(value);\n\n if (type === 'object') {\n type = toString$1.call(value).slice(8, -1);\n } // If it is a base value that we already support, then use Loupe's inspector\n\n\n if (baseTypesMap[type]) {\n return baseTypesMap[type](value, options);\n } // If `options.customInspect` is set to true then try to use the custom inspector\n\n\n if (customInspect && value) {\n var output = inspectCustom(value, options, type);\n\n if (output) {\n if (typeof output === 'string') return output;\n return inspect(output, options);\n }\n }\n\n var proto = value ? Object.getPrototypeOf(value) : false; // If it's a plain Object then use Loupe's inspector\n\n if (proto === Object.prototype || proto === null) {\n return inspectObject(value, options);\n } // Specifically account for HTMLElements\n // eslint-disable-next-line no-undef\n\n\n if (value && typeof HTMLElement === 'function' && value instanceof HTMLElement) {\n return inspectHTML(value, options);\n }\n\n if ('constructor' in value) {\n // If it is a class, inspect it like an object but add the constructor name\n if (value.constructor !== Object) {\n return inspectClass(value, options);\n } // If it is an object with an anonymous prototype, display it as an object.\n\n\n return inspectObject(value, options);\n } // last chance to check if it's an object\n\n\n if (value === Object(value)) {\n return inspectObject(value, options);\n } // We have run out of options! Just stringify the value\n\n\n return options.stylize(String(value), type);\n }\n function registerConstructor(constructor, inspector) {\n if (constructorMap.has(constructor)) {\n return false;\n }\n\n constructorMap.set(constructor, inspector);\n return true;\n }\n function registerStringTag(stringTag, inspector) {\n if (stringTag in stringTagMap) {\n return false;\n }\n\n stringTagMap[stringTag] = inspector;\n return true;\n }\n var custom = chaiInspect;\n\n exports.custom = custom;\n exports.default = inspect;\n exports.inspect = inspect;\n exports.registerConstructor = registerConstructor;\n exports.registerStringTag = registerStringTag;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n","import { notNullish, isPrimitive } from './helpers.js';\nexport { assertTypes, clone, createDefer, deepClone, getCallLastIndex, getOwnProperties, getType, isObject, noop, objectAttr, parseRegexp, slash, toArray } from './helpers.js';\nimport { format as format$1, plugins } from 'pretty-format';\nimport { S as SAFE_TIMERS_SYMBOL } from './chunk-colors.js';\nexport { a as SAFE_COLORS_SYMBOL, c as createColors, b as getColors, g as getDefaultColors, s as setupColors } from './chunk-colors.js';\nimport util from 'util';\nimport loupeImport from 'loupe';\n\nconst {\n AsymmetricMatcher,\n DOMCollection,\n DOMElement,\n Immutable,\n ReactElement,\n ReactTestComponent\n} = plugins;\nconst PLUGINS = [\n ReactTestComponent,\n ReactElement,\n DOMElement,\n DOMCollection,\n Immutable,\n AsymmetricMatcher\n];\nfunction stringify(object, maxDepth = 10, { maxLength, ...options } = {}) {\n const MAX_LENGTH = maxLength ?? 1e4;\n let result;\n try {\n result = format$1(object, {\n maxDepth,\n escapeString: false,\n // min: true,\n plugins: PLUGINS,\n ...options\n });\n } catch {\n result = format$1(object, {\n callToJSON: false,\n maxDepth,\n escapeString: false,\n // min: true,\n plugins: PLUGINS,\n ...options\n });\n }\n return result.length >= MAX_LENGTH && maxDepth > 1 ? stringify(object, Math.floor(maxDepth / 2)) : result;\n}\n\nfunction getSafeTimers() {\n const {\n setTimeout: safeSetTimeout,\n setInterval: safeSetInterval,\n clearInterval: safeClearInterval,\n clearTimeout: safeClearTimeout,\n setImmediate: safeSetImmediate,\n clearImmediate: safeClearImmediate\n } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis;\n const {\n nextTick: safeNextTick\n } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis.process || { nextTick: (cb) => cb() };\n return {\n nextTick: safeNextTick,\n setTimeout: safeSetTimeout,\n setInterval: safeSetInterval,\n clearInterval: safeClearInterval,\n clearTimeout: safeClearTimeout,\n setImmediate: safeSetImmediate,\n clearImmediate: safeClearImmediate\n };\n}\nfunction setSafeTimers() {\n const {\n setTimeout: safeSetTimeout,\n setInterval: safeSetInterval,\n clearInterval: safeClearInterval,\n clearTimeout: safeClearTimeout,\n setImmediate: safeSetImmediate,\n clearImmediate: safeClearImmediate\n } = globalThis;\n const {\n nextTick: safeNextTick\n } = globalThis.process || { nextTick: (cb) => cb() };\n const timers = {\n nextTick: safeNextTick,\n setTimeout: safeSetTimeout,\n setInterval: safeSetInterval,\n clearInterval: safeClearInterval,\n clearTimeout: safeClearTimeout,\n setImmediate: safeSetImmediate,\n clearImmediate: safeClearImmediate\n };\n globalThis[SAFE_TIMERS_SYMBOL] = timers;\n}\n\nconst RealDate = Date;\nfunction random(seed) {\n const x = Math.sin(seed++) * 1e4;\n return x - Math.floor(x);\n}\nfunction shuffle(array, seed = RealDate.now()) {\n let length = array.length;\n while (length) {\n const index = Math.floor(random(seed) * length--);\n const previous = array[length];\n array[length] = array[index];\n array[index] = previous;\n ++seed;\n }\n return array;\n}\n\nconst loupe = typeof loupeImport.default === \"function\" ? loupeImport.default : loupeImport;\nfunction format(...args) {\n return util.format(...args);\n}\nfunction utilInspect(item, options) {\n return util.inspect(item, options);\n}\nfunction loupeInspect(obj, options = {}) {\n return loupe(obj, {\n depth: 2,\n truncate: options.truncateThreshold === 0 ? Infinity : options.truncateThreshold ?? 40\n });\n}\nfunction objDisplay(obj, options = {}) {\n const truncateThreshold = options.truncateThreshold ?? 40;\n const str = loupeInspect(obj, options);\n const type = Object.prototype.toString.call(obj);\n if (truncateThreshold && str.length >= truncateThreshold) {\n if (type === \"[object Function]\") {\n const fn = obj;\n return !fn.name || fn.name === \"\" ? \"[Function]\" : `[Function: ${fn.name}]`;\n } else if (type === \"[object Array]\") {\n return `[ Array(${obj.length}) ]`;\n } else if (type === \"[object Object]\") {\n const keys = Object.keys(obj);\n const kstr = keys.length > 2 ? `${keys.splice(0, 2).join(\", \")}, ...` : keys.join(\", \");\n return `{ Object (${kstr}) }`;\n } else {\n return str;\n }\n }\n return str;\n}\n\nfunction createSimpleStackTrace(options) {\n const { message = \"error\", stackTraceLimit = 1 } = options || {};\n const limit = Error.stackTraceLimit;\n const prepareStackTrace = Error.prepareStackTrace;\n Error.stackTraceLimit = stackTraceLimit;\n Error.prepareStackTrace = (e) => e.stack;\n const err = new Error(message);\n const stackTrace = err.stack || \"\";\n Error.prepareStackTrace = prepareStackTrace;\n Error.stackTraceLimit = limit;\n return stackTrace;\n}\n\nfunction normalizeWindowsPath(input = \"\") {\n if (!input || !input.includes(\"\\\\\")) {\n return input;\n }\n return input.replace(/\\\\/g, \"/\");\n}\nconst _IS_ABSOLUTE_RE = /^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^[A-Za-z]:[/\\\\]/;\nfunction cwd() {\n if (typeof process !== \"undefined\") {\n return process.cwd().replace(/\\\\/g, \"/\");\n }\n return \"/\";\n}\nconst resolve = function(...arguments_) {\n arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));\n let resolvedPath = \"\";\n let resolvedAbsolute = false;\n for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {\n const path = index >= 0 ? arguments_[index] : cwd();\n if (!path || path.length === 0) {\n continue;\n }\n resolvedPath = `${path}/${resolvedPath}`;\n resolvedAbsolute = isAbsolute(path);\n }\n resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);\n if (resolvedAbsolute && !isAbsolute(resolvedPath)) {\n return `/${resolvedPath}`;\n }\n return resolvedPath.length > 0 ? resolvedPath : \".\";\n};\nfunction normalizeString(path, allowAboveRoot) {\n let res = \"\";\n let lastSegmentLength = 0;\n let lastSlash = -1;\n let dots = 0;\n let char = null;\n for (let index = 0; index <= path.length; ++index) {\n if (index < path.length) {\n char = path[index];\n } else if (char === \"/\") {\n break;\n } else {\n char = \"/\";\n }\n if (char === \"/\") {\n if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {\n if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== \".\" || res[res.length - 2] !== \".\") {\n if (res.length > 2) {\n const lastSlashIndex = res.lastIndexOf(\"/\");\n if (lastSlashIndex === -1) {\n res = \"\";\n lastSegmentLength = 0;\n } else {\n res = res.slice(0, lastSlashIndex);\n lastSegmentLength = res.length - 1 - res.lastIndexOf(\"/\");\n }\n lastSlash = index;\n dots = 0;\n continue;\n } else if (res.length > 0) {\n res = \"\";\n lastSegmentLength = 0;\n lastSlash = index;\n dots = 0;\n continue;\n }\n }\n if (allowAboveRoot) {\n res += res.length > 0 ? \"/..\" : \"..\";\n lastSegmentLength = 2;\n }\n } else {\n if (res.length > 0) {\n res += `/${path.slice(lastSlash + 1, index)}`;\n } else {\n res = path.slice(lastSlash + 1, index);\n }\n lastSegmentLength = index - lastSlash - 1;\n }\n lastSlash = index;\n dots = 0;\n } else if (char === \".\" && dots !== -1) {\n ++dots;\n } else {\n dots = -1;\n }\n }\n return res;\n}\nconst isAbsolute = function(p) {\n return _IS_ABSOLUTE_RE.test(p);\n};\n\nconst lineSplitRE = /\\r?\\n/;\nconst stackIgnorePatterns = [\n \"node:internal\",\n /\\/packages\\/\\w+\\/dist\\//,\n /\\/@vitest\\/\\w+\\/dist\\//,\n \"/vitest/dist/\",\n \"/vitest/src/\",\n \"/vite-node/dist/\",\n \"/vite-node/src/\",\n \"/node_modules/chai/\",\n \"/node_modules/tinypool/\",\n \"/node_modules/tinyspy/\"\n];\nfunction extractLocation(urlLike) {\n if (!urlLike.includes(\":\"))\n return [urlLike];\n const regExp = /(.+?)(?::(\\d+))?(?::(\\d+))?$/;\n const parts = regExp.exec(urlLike.replace(/[()]/g, \"\"));\n if (!parts)\n return [urlLike];\n return [parts[1], parts[2] || void 0, parts[3] || void 0];\n}\nfunction parseSingleStack(raw) {\n let line = raw.trim();\n if (line.includes(\"(eval \"))\n line = line.replace(/eval code/g, \"eval\").replace(/(\\(eval at [^()]*)|(,.*$)/g, \"\");\n let sanitizedLine = line.replace(/^\\s+/, \"\").replace(/\\(eval code/g, \"(\").replace(/^.*?\\s+/, \"\");\n const location = sanitizedLine.match(/ (\\(.+\\)$)/);\n sanitizedLine = location ? sanitizedLine.replace(location[0], \"\") : sanitizedLine;\n const [url, lineNumber, columnNumber] = extractLocation(location ? location[1] : sanitizedLine);\n let method = location && sanitizedLine || \"\";\n let file = url && [\"eval\", \"\"].includes(url) ? void 0 : url;\n if (!file || !lineNumber || !columnNumber)\n return null;\n if (method.startsWith(\"async \"))\n method = method.slice(6);\n if (file.startsWith(\"file://\"))\n file = file.slice(7);\n file = resolve(file);\n return {\n method,\n file,\n line: parseInt(lineNumber),\n column: parseInt(columnNumber)\n };\n}\nfunction parseStacktrace(stack, ignore = stackIgnorePatterns) {\n const stackFrames = stack.split(\"\\n\").map((raw) => {\n const stack2 = parseSingleStack(raw);\n if (!stack2 || ignore.length && ignore.some((p) => stack2.file.match(p)))\n return null;\n return stack2;\n }).filter(notNullish);\n return stackFrames;\n}\nfunction parseErrorStacktrace(e, ignore = stackIgnorePatterns) {\n if (!e || isPrimitive(e))\n return [];\n if (e.stacks)\n return e.stacks;\n const stackStr = e.stack || e.stackStr || \"\";\n const stackFrames = parseStacktrace(stackStr, ignore);\n e.stacks = stackFrames;\n return stackFrames;\n}\nfunction positionToOffset(source, lineNumber, columnNumber) {\n const lines = source.split(lineSplitRE);\n const nl = /\\r\\n/.test(source) ? 2 : 1;\n let start = 0;\n if (lineNumber > lines.length)\n return source.length;\n for (let i = 0; i < lineNumber - 1; i++)\n start += lines[i].length + nl;\n return start + columnNumber;\n}\nfunction offsetToLineNumber(source, offset) {\n if (offset > source.length) {\n throw new Error(\n `offset is longer than source length! offset ${offset} > length ${source.length}`\n );\n }\n const lines = source.split(lineSplitRE);\n const nl = /\\r\\n/.test(source) ? 2 : 1;\n let counted = 0;\n let line = 0;\n for (; line < lines.length; line++) {\n const lineLength = lines[line].length + nl;\n if (counted + lineLength >= offset)\n break;\n counted += lineLength;\n }\n return line + 1;\n}\n\nexport { SAFE_TIMERS_SYMBOL, createSimpleStackTrace, format, getSafeTimers, isPrimitive, lineSplitRE, loupeInspect, notNullish, objDisplay, offsetToLineNumber, parseErrorStacktrace, parseSingleStack, parseStacktrace, positionToOffset, setSafeTimers, shuffle, stringify, utilInspect };\n","'use strict'\n\nclass Circular {\n constructor () {\n this.stack = new Map()\n }\n\n add (descriptor) {\n if (this.stack.has(descriptor)) throw new Error('Already in stack')\n\n if (descriptor.isItem !== true && descriptor.isMapEntry !== true && descriptor.isProperty !== true) {\n this.stack.set(descriptor, this.stack.size + 1)\n }\n return this\n }\n\n delete (descriptor) {\n if (this.stack.has(descriptor)) {\n if (this.stack.get(descriptor) !== this.stack.size) throw new Error('Not on top of stack')\n this.stack.delete(descriptor)\n }\n return this\n }\n\n has (descriptor) {\n return this.stack.has(descriptor)\n }\n\n get (descriptor) {\n return this.stack.has(descriptor)\n ? this.stack.get(descriptor)\n : 0\n }\n}\nmodule.exports = Circular\n","'use strict'\n\nconst AMBIGUOUS = Symbol('AMBIGUOUS')\nconst DEEP_EQUAL = Symbol('DEEP_EQUAL')\nconst SHALLOW_EQUAL = Symbol('SHALLOW_EQUAL')\nconst UNEQUAL = Symbol('UNEQUAL')\n\nmodule.exports = {\n AMBIGUOUS,\n DEEP_EQUAL,\n SHALLOW_EQUAL,\n UNEQUAL,\n}\n","'use strict'\n\nclass Registry {\n constructor () {\n this.counter = 0\n this.map = new WeakMap()\n }\n\n has (value) {\n return this.map.has(value)\n }\n\n get (value) {\n return this.map.get(value).descriptor\n }\n\n alloc (value) {\n const index = ++this.counter\n const pointer = { descriptor: null, index }\n this.map.set(value, pointer)\n return pointer\n }\n}\nmodule.exports = Registry\n","'use strict'\n\nconst ACTUAL = Symbol('lineBuilder.gutters.ACTUAL')\nconst EXPECTED = Symbol('lineBuilder.gutters.EXPECTED')\n\nfunction translateGutter (theme, invert, gutter) {\n if (invert) {\n if (gutter === ACTUAL) return theme.diffGutters.expected\n if (gutter === EXPECTED) return theme.diffGutters.actual\n } else {\n if (gutter === ACTUAL) return theme.diffGutters.actual\n if (gutter === EXPECTED) return theme.diffGutters.expected\n }\n return theme.diffGutters.padding\n}\n\nclass Line {\n constructor (isFirst, isLast, gutter, stringValue) {\n this.isFirst = isFirst\n this.isLast = isLast\n this.gutter = gutter\n this.stringValue = stringValue\n }\n\n * [Symbol.iterator] () {\n yield this\n }\n\n get isEmpty () {\n return false\n }\n\n get hasGutter () {\n return this.gutter !== null\n }\n\n get isSingle () {\n return this.isFirst && this.isLast\n }\n\n append (other) {\n return this.concat(other)\n }\n\n concat (other) {\n return new Collection()\n .append(this)\n .append(other)\n }\n\n toString (options) {\n if (options.diff === false) return this.stringValue\n\n return translateGutter(options.theme, options.invert, this.gutter) + this.stringValue\n }\n\n mergeWithInfix (infix, other) {\n if (other.isLine !== true) {\n return new Collection()\n .append(this)\n .mergeWithInfix(infix, other)\n }\n\n return new Line(this.isFirst, other.isLast, other.gutter, this.stringValue + infix + other.stringValue)\n }\n\n withFirstPrefixed (prefix) {\n if (!this.isFirst) return this\n\n return new Line(true, this.isLast, this.gutter, prefix + this.stringValue)\n }\n\n withLastPostfixed (postfix) {\n if (!this.isLast) return this\n\n return new Line(this.isFirst, true, this.gutter, this.stringValue + postfix)\n }\n\n stripFlags () {\n return new Line(false, false, this.gutter, this.stringValue)\n }\n\n decompose () {\n return new Collection()\n .append(this)\n .decompose()\n }\n}\nObject.defineProperty(Line.prototype, 'isLine', { value: true })\n\nclass Collection {\n constructor () {\n this.buffer = []\n }\n\n * [Symbol.iterator] () {\n for (const appended of this.buffer) {\n for (const line of appended) yield line\n }\n }\n\n get isEmpty () {\n return this.buffer.length === 0\n }\n\n get hasGutter () {\n for (const line of this) {\n if (line.hasGutter) return true\n }\n return false\n }\n\n get isSingle () {\n const iterator = this[Symbol.iterator]()\n iterator.next()\n return iterator.next().done === true\n }\n\n append (lineOrLines) {\n if (!lineOrLines.isEmpty) this.buffer.push(lineOrLines)\n return this\n }\n\n concat (other) {\n return new Collection()\n .append(this)\n .append(other)\n }\n\n toString (options) {\n let lines = this\n\n if (options.invert) {\n lines = new Collection()\n let buffer = new Collection()\n\n let prev = null\n for (const line of this) {\n if (line.gutter === ACTUAL) {\n if (prev !== null && prev.gutter !== ACTUAL && !buffer.isEmpty) {\n lines.append(buffer)\n buffer = new Collection()\n }\n\n buffer.append(line)\n } else if (line.gutter === EXPECTED) {\n lines.append(line)\n } else {\n if (!buffer.isEmpty) {\n lines.append(buffer)\n buffer = new Collection()\n }\n\n lines.append(line)\n }\n\n prev = line\n }\n lines.append(buffer)\n }\n\n return Array.from(lines, line => line.toString(options)).join('\\n')\n }\n\n mergeWithInfix (infix, from) {\n if (from.isEmpty) throw new Error('Cannot merge, `from` is empty.')\n\n const otherLines = Array.from(from)\n if (!otherLines[0].isFirst) throw new Error('Cannot merge, `from` has no first line.')\n\n const merged = new Collection()\n let seenLast = false\n for (const line of this) {\n if (seenLast) throw new Error('Cannot merge line, the last line has already been seen.')\n\n if (!line.isLast) {\n merged.append(line)\n continue\n }\n\n seenLast = true\n for (const other of otherLines) {\n if (other.isFirst) {\n merged.append(line.mergeWithInfix(infix, other))\n } else {\n merged.append(other)\n }\n }\n }\n return merged\n }\n\n withFirstPrefixed (prefix) {\n return new Collection()\n .append(Array.from(this, line => line.withFirstPrefixed(prefix)))\n }\n\n withLastPostfixed (postfix) {\n return new Collection()\n .append(Array.from(this, line => line.withLastPostfixed(postfix)))\n }\n\n stripFlags () {\n return new Collection()\n .append(Array.from(this, line => line.stripFlags()))\n }\n\n decompose () {\n const first = { actual: new Collection(), expected: new Collection() }\n const last = { actual: new Collection(), expected: new Collection() }\n const remaining = new Collection()\n\n for (const line of this) {\n if (line.isFirst && line.gutter === ACTUAL) {\n first.actual.append(line)\n } else if (line.isFirst && line.gutter === EXPECTED) {\n first.expected.append(line)\n } else if (line.isLast && line.gutter === ACTUAL) {\n last.actual.append(line)\n } else if (line.isLast && line.gutter === EXPECTED) {\n last.expected.append(line)\n } else {\n remaining.append(line)\n }\n }\n\n return { first, last, remaining }\n }\n}\nObject.defineProperty(Collection.prototype, 'isCollection', { value: true })\n\nfunction setDefaultGutter (iterable, gutter) {\n return new Collection()\n .append(Array.from(iterable, line => {\n return line.gutter === null\n ? new Line(line.isFirst, line.isLast, gutter, line.stringValue)\n : line\n }))\n}\n\nmodule.exports = {\n buffer () {\n return new Collection()\n },\n\n first (stringValue) {\n return new Line(true, false, null, stringValue)\n },\n\n last (stringValue) {\n return new Line(false, true, null, stringValue)\n },\n\n line (stringValue) {\n return new Line(false, false, null, stringValue)\n },\n\n single (stringValue) {\n return new Line(true, true, null, stringValue)\n },\n\n setDefaultGutter (lineOrCollection) {\n return lineOrCollection\n },\n\n actual: {\n first (stringValue) {\n return new Line(true, false, ACTUAL, stringValue)\n },\n\n last (stringValue) {\n return new Line(false, true, ACTUAL, stringValue)\n },\n\n line (stringValue) {\n return new Line(false, false, ACTUAL, stringValue)\n },\n\n single (stringValue) {\n return new Line(true, true, ACTUAL, stringValue)\n },\n\n setDefaultGutter (lineOrCollection) {\n return setDefaultGutter(lineOrCollection, ACTUAL)\n },\n },\n\n expected: {\n first (stringValue) {\n return new Line(true, false, EXPECTED, stringValue)\n },\n\n last (stringValue) {\n return new Line(false, true, EXPECTED, stringValue)\n },\n\n line (stringValue) {\n return new Line(false, false, EXPECTED, stringValue)\n },\n\n single (stringValue) {\n return new Line(true, true, EXPECTED, stringValue)\n },\n\n setDefaultGutter (lineOrCollection) {\n return setDefaultGutter(lineOrCollection, EXPECTED)\n },\n },\n}\n","'use strict'\n\nconst lineBuilder = require('./lineBuilder')\n\nfunction wrap (fromTheme, value) {\n return fromTheme.open + value + fromTheme.close\n}\nexports.wrap = wrap\n\nfunction formatCtorAndStringTag (theme, object) {\n if (!object.ctor) return wrap(theme.object.stringTag, object.stringTag)\n\n let retval = wrap(theme.object.ctor, object.ctor)\n if (object.stringTag && object.stringTag !== object.ctor && object.stringTag !== 'Object') {\n retval += ' ' + wrap(theme.object.secondaryStringTag, object.stringTag)\n }\n return retval\n}\nexports.formatCtorAndStringTag = formatCtorAndStringTag\n\nclass ObjectFormatter {\n constructor (object, theme, indent) {\n this.object = object\n this.theme = theme\n this.indent = indent\n\n this.increaseIndent = true\n\n this.innerLines = lineBuilder.buffer()\n this.pendingStats = null\n }\n\n append (formatted, origin) {\n if (origin.isStats === true) {\n this.pendingStats = formatted\n } else {\n if (this.pendingStats !== null) {\n if (!this.innerLines.isEmpty) {\n this.innerLines.append(this.pendingStats)\n }\n this.pendingStats = null\n }\n this.innerLines.append(formatted)\n }\n }\n\n finalize () {\n const variant = this.object.isList\n ? this.theme.list\n : this.theme.object\n\n const ctor = this.object.ctor\n const stringTag = this.object.stringTag\n const prefix = (ctor === 'Array' || ctor === 'Object') && ctor === stringTag\n ? ''\n : formatCtorAndStringTag(this.theme, this.object) + ' '\n\n if (this.innerLines.isEmpty) {\n return lineBuilder.single(prefix + variant.openBracket + variant.closeBracket)\n }\n\n return lineBuilder.first(prefix + variant.openBracket)\n .concat(this.innerLines.withFirstPrefixed(this.indent.increase()).stripFlags())\n .append(lineBuilder.last(this.indent + variant.closeBracket))\n }\n\n maxDepth () {\n const variant = this.object.isList\n ? this.theme.list\n : this.theme.object\n\n return lineBuilder.single(\n formatCtorAndStringTag(this.theme, this.object) + ' ' + variant.openBracket +\n ' ' + this.theme.maxDepth + ' ' + variant.closeBracket)\n }\n\n shouldFormat () {\n return true\n }\n\n customize (methods) {\n if (methods.finalize) {\n this.finalize = () => methods.finalize(this.innerLines)\n }\n if (methods.maxDepth) {\n this.maxDepth = methods.maxDepth\n }\n if (methods.shouldFormat) {\n this.shouldFormat = methods.shouldFormat\n }\n\n return this\n }\n}\nexports.ObjectFormatter = ObjectFormatter\n\nclass SingleValueFormatter {\n constructor (theme, finalizeFn, increaseIndent) {\n this.theme = theme\n this.finalizeFn = finalizeFn\n this.hasValue = false\n this.increaseIndent = increaseIndent === true\n this.value = null\n }\n\n append (formatted) {\n if (this.hasValue) throw new Error('Formatter buffer can only take one formatted value.')\n\n this.hasValue = true\n this.value = formatted\n }\n\n finalize () {\n if (!this.hasValue) throw new Error('Formatter buffer never received a formatted value.')\n\n return this.finalizeFn(this.value)\n }\n\n maxDepth () {\n return this.finalizeFn(lineBuilder.single(this.theme.maxDepth))\n }\n}\nexports.SingleValueFormatter = SingleValueFormatter\n","'use strict'\n\nfunction getObjectKeys (obj, excludeListItemAccessorsBelowLength) {\n const keys = []\n let size = 0\n\n // Sort property names, they should never be order-sensitive\n const nameCandidates = Object.getOwnPropertyNames(obj).sort()\n // Comparators should verify symbols in an order-insensitive manner if\n // possible.\n const symbolCandidates = Object.getOwnPropertySymbols(obj)\n\n for (const name of nameCandidates) {\n let accept = true\n if (excludeListItemAccessorsBelowLength > 0) {\n const index = Number(name)\n accept = !Number.isInteger(index) || index < 0 || index >= excludeListItemAccessorsBelowLength\n }\n\n if (accept && Object.getOwnPropertyDescriptor(obj, name).enumerable) {\n keys[size++] = name\n }\n }\n\n for (const symbol of symbolCandidates) {\n if (Object.getOwnPropertyDescriptor(obj, symbol).enumerable) {\n keys[size++] = symbol\n }\n }\n\n return { keys, size }\n}\nmodule.exports = getObjectKeys\n","'use strict'\n\nconst isLength = require('lodash/isLength')\n\nconst hop = Object.prototype.hasOwnProperty\n\nfunction hasLength (obj) {\n return (\n Array.isArray(obj) ||\n (hop.call(obj, 'length') &&\n isLength(obj.length) &&\n (obj.length === 0 || '0' in obj))\n )\n}\nmodule.exports = hasLength\n","'use strict'\n\nconst NOOP_RECURSOR = {\n size: 0,\n next () { return null },\n}\nexports.NOOP_RECURSOR = NOOP_RECURSOR\n\nfunction fork (recursor) {\n const buffer = []\n\n return {\n shared () {\n const next = recursor()\n if (next !== null) buffer.push(next)\n return next\n },\n\n recursor () {\n if (buffer.length > 0) return buffer.shift()\n return recursor()\n },\n }\n}\nexports.fork = fork\n\nfunction consumeDeep (recursor) {\n const stack = [recursor]\n while (stack.length > 0) {\n const subject = stack[stack.length - 1]()\n if (subject === null) {\n stack.pop()\n continue\n }\n\n if (typeof subject.createRecursor === 'function') {\n stack.push(subject.createRecursor())\n }\n }\n}\nexports.consumeDeep = consumeDeep\n\nfunction map (recursor, mapFn) {\n return () => {\n const next = recursor()\n if (next === null) return null\n\n return mapFn(next)\n }\n}\nexports.map = map\n\nfunction replay (state, create) {\n if (!state) {\n const recursor = create()\n if (recursor === NOOP_RECURSOR) {\n state = recursor\n } else {\n state = Object.assign({\n buffer: [],\n done: false,\n }, recursor)\n }\n }\n\n if (state === NOOP_RECURSOR) return { state, recursor: state }\n\n let done = false\n let index = 0\n const next = () => {\n if (done) return null\n\n let retval = state.buffer[index]\n if (retval === undefined) {\n retval = state.buffer[index] = state.next()\n }\n\n index++\n if (retval === null) {\n done = true\n }\n return retval\n }\n\n return { state, recursor: { next, size: state.size } }\n}\nexports.replay = replay\n\nfunction sequence (first, second) {\n let fromFirst = true\n return () => {\n if (fromFirst) {\n const next = first()\n if (next !== null) return next\n\n fromFirst = false\n }\n\n return second()\n }\n}\nexports.sequence = sequence\n\nfunction singleValue (value) {\n let done = false\n return () => {\n if (done) return null\n\n done = true\n return value\n }\n}\nexports.singleValue = singleValue\n\nfunction unshift (recursor, value) {\n return () => {\n if (value !== null) {\n const next = value\n value = null\n return next\n }\n\n return recursor()\n }\n}\nexports.unshift = unshift\n","'use strict'\n\nconst constants = require('../constants')\nconst lineBuilder = require('../lineBuilder')\nconst recursorUtils = require('../recursorUtils')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describeIterableRecursor (recursor) {\n return new IterableStats(recursor.size)\n}\nexports.describeIterableRecursor = describeIterableRecursor\n\nfunction describeListRecursor (recursor) {\n return new ListStats(recursor.size)\n}\nexports.describeListRecursor = describeListRecursor\n\nfunction describePropertyRecursor (recursor) {\n return new PropertyStats(recursor.size)\n}\nexports.describePropertyRecursor = describePropertyRecursor\n\nfunction deserializeIterableStats (size) {\n return new IterableStats(size)\n}\nexports.deserializeIterableStats = deserializeIterableStats\n\nfunction deserializeListStats (size) {\n return new ListStats(size)\n}\nexports.deserializeListStats = deserializeListStats\n\nfunction deserializePropertyStats (size) {\n return new PropertyStats(size)\n}\nexports.deserializePropertyStats = deserializePropertyStats\n\nconst iterableTag = Symbol('IterableStats')\nexports.iterableTag = iterableTag\n\nconst listTag = Symbol('ListStats')\nexports.listTag = listTag\n\nconst propertyTag = Symbol('PropertyStats')\nexports.propertyTag = propertyTag\n\nclass Stats {\n constructor (size) {\n this.size = size\n }\n\n formatDeep (theme) {\n return lineBuilder.single(theme.stats.separator)\n }\n\n prepareDiff (expected, lhsRecursor, rhsRecursor, compareComplexShape) {\n if (expected.isStats !== true || expected.tag === this.tag) return null\n\n // Try to line up stats descriptors with the same tag.\n const rhsFork = recursorUtils.fork(rhsRecursor)\n const initialExpected = expected\n\n const missing = []\n while (expected !== null && this.tag !== expected.tag) {\n missing.push(expected)\n expected = rhsFork.shared()\n }\n\n if (expected !== null && missing.length > 0) {\n return {\n multipleAreMissing: true,\n descriptors: missing,\n lhsRecursor: recursorUtils.unshift(lhsRecursor, this),\n // Use original `rhsRecursor`, not `rhsFork`, since the consumed\n // descriptors are returned with the `missing` array.\n rhsRecursor: recursorUtils.unshift(rhsRecursor, expected),\n }\n }\n\n const lhsFork = recursorUtils.fork(lhsRecursor)\n let actual = this\n\n const extraneous = []\n while (actual !== null && actual.tag !== initialExpected.tag) {\n extraneous.push(actual)\n actual = lhsFork.shared()\n }\n\n if (actual !== null && extraneous.length > 0) {\n return {\n multipleAreExtraneous: true,\n descriptors: extraneous,\n // Use original `lhsRecursor`, not `lhsFork`, since the consumed\n // descriptors are returned with the `extraneous` array.\n lhsRecursor: recursorUtils.unshift(lhsRecursor, actual),\n rhsRecursor: recursorUtils.unshift(rhsFork.recursor, initialExpected),\n }\n }\n\n return null\n }\n\n serialize () {\n return this.size\n }\n}\nObject.defineProperty(Stats.prototype, 'isStats', { value: true })\n\nclass IterableStats extends Stats {\n compare (expected) {\n return expected.tag === iterableTag && this.size === expected.size\n ? DEEP_EQUAL\n : UNEQUAL\n }\n}\nObject.defineProperty(IterableStats.prototype, 'tag', { value: iterableTag })\n\nclass ListStats extends Stats {\n compare (expected) {\n return expected.tag === listTag && this.size === expected.size\n ? DEEP_EQUAL\n : UNEQUAL\n }\n}\nObject.defineProperty(ListStats.prototype, 'tag', { value: listTag })\n\nclass PropertyStats extends Stats {\n compare (expected) {\n return expected.tag === propertyTag && this.size === expected.size\n ? DEEP_EQUAL\n : UNEQUAL\n }\n}\nObject.defineProperty(PropertyStats.prototype, 'tag', { value: propertyTag })\n","'use strict'\n\nconst constants = require('../constants')\nconst ObjectFormatter = require('../formatUtils').ObjectFormatter\nconst getObjectKeys = require('../getObjectKeys')\nconst hasLength = require('../hasLength')\nconst stats = require('../metaDescriptors/stats')\nconst recursorUtils = require('../recursorUtils')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst SHALLOW_EQUAL = constants.SHALLOW_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (props) {\n const isArray = props.stringTag === 'Array'\n const object = props.value\n return new DescribedObjectValue(Object.assign({\n isArray,\n isIterable: object[Symbol.iterator] !== undefined,\n isList: isArray || hasLength(object),\n }, props))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedObjectValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('ObjectValue')\nexports.tag = tag\n\nclass ObjectValue {\n constructor (props) {\n this.ctor = props.ctor\n this.pointer = props.pointer\n this.stringTag = props.stringTag\n\n this.isArray = props.isArray === true\n this.isIterable = props.isIterable === true\n this.isList = props.isList === true\n }\n\n compare (expected) {\n if (this.tag !== expected.tag) return UNEQUAL\n if (this.stringTag !== expected.stringTag || !this.hasSameCtor(expected)) return UNEQUAL\n return SHALLOW_EQUAL\n }\n\n hasSameCtor (expected) {\n return this.ctor === expected.ctor\n }\n\n formatShallow (theme, indent) {\n return new ObjectFormatter(this, theme, indent)\n }\n\n serialize () {\n return [\n this.ctor, this.pointer, this.stringTag,\n this.isArray, this.isIterable, this.isList,\n ]\n }\n}\nObject.defineProperty(ObjectValue.prototype, 'isComplex', { value: true })\nObject.defineProperty(ObjectValue.prototype, 'tag', { value: tag })\nexports.ObjectValue = ObjectValue\n\nconst DescribedObjectValue = DescribedMixin(ObjectValue)\nconst DeserializedObjectValue = DeserializedMixin(ObjectValue)\n\nfunction DescribedMixin (base) {\n return class extends base {\n constructor (props) {\n super(props)\n\n this.value = props.value\n this.describeAny = props.describeAny\n this.describeItem = props.describeItem\n this.describeMapEntry = props.describeMapEntry\n this.describeProperty = props.describeProperty\n\n this.iterableState = null\n this.listState = null\n this.propertyState = null\n }\n\n compare (expected) {\n return this.value === expected.value\n ? DEEP_EQUAL\n : super.compare(expected)\n }\n\n createPropertyRecursor () {\n const objectKeys = getObjectKeys(this.value, this.isList ? this.value.length : 0)\n const size = objectKeys.size\n if (size === 0) return recursorUtils.NOOP_RECURSOR\n\n let index = 0\n const next = () => {\n if (index === size) return null\n\n const key = objectKeys.keys[index++]\n return this.describeProperty(key, this.describeAny(this.value[key]))\n }\n\n return { size, next }\n }\n\n createListRecursor () {\n if (!this.isList) return recursorUtils.NOOP_RECURSOR\n\n const size = this.value.length\n if (size === 0) return recursorUtils.NOOP_RECURSOR\n\n let index = 0\n const next = () => {\n if (index === size) return null\n\n const current = index\n index++\n return this.describeItem(current, this.describeAny(this.value[current]))\n }\n\n return { size, next }\n }\n\n createIterableRecursor () {\n if (this.isArray || !this.isIterable) return recursorUtils.NOOP_RECURSOR\n\n const iterator = this.value[Symbol.iterator]()\n let first = iterator.next()\n\n let done = false\n let size = -1\n if (first.done) {\n if (first.value === undefined) {\n size = 0\n done = true\n } else {\n size = 1\n }\n }\n\n let index = 0\n const next = () => {\n if (done) return null\n\n while (!done) {\n const current = first || iterator.next()\n if (current === first) {\n first = null\n }\n if (current.done) {\n done = true\n }\n\n const item = current.value\n if (done && item === undefined) return null\n\n if (this.isList && this.value[index] === item) {\n index++\n } else {\n return this.describeItem(index++, this.describeAny(item))\n }\n }\n }\n\n return { size, next }\n }\n\n createRecursor () {\n let recursedProperty = false\n let recursedList = false\n let recursedIterable = false\n\n let recursor = null\n return () => {\n let retval = null\n do {\n if (recursor !== null) {\n retval = recursor.next()\n if (retval === null) {\n recursor = null\n }\n }\n\n while (recursor === null && (!recursedList || !recursedProperty || !recursedIterable)) {\n // Prioritize recursing lists\n if (!recursedList) {\n const replay = recursorUtils.replay(this.listState, () => this.createListRecursor())\n this.listState = replay.state\n recursor = replay.recursor\n recursedList = true\n if (recursor !== recursorUtils.NOOP_RECURSOR) {\n retval = stats.describeListRecursor(recursor)\n }\n } else if (!recursedProperty) {\n const replay = recursorUtils.replay(this.propertyState, () => this.createPropertyRecursor())\n this.propertyState = replay.state\n recursor = replay.recursor\n recursedProperty = true\n if (recursor !== recursorUtils.NOOP_RECURSOR) {\n retval = stats.describePropertyRecursor(recursor)\n }\n } else if (!recursedIterable) {\n const replay = recursorUtils.replay(this.iterableState, () => this.createIterableRecursor())\n this.iterableState = replay.state\n recursor = replay.recursor\n recursedIterable = true\n if (recursor !== recursorUtils.NOOP_RECURSOR) {\n retval = stats.describeIterableRecursor(recursor)\n }\n }\n }\n } while (recursor !== null && retval === null)\n\n return retval\n }\n }\n }\n}\nexports.DescribedMixin = DescribedMixin\n\nfunction DeserializedMixin (base) {\n return class extends base {\n constructor (state, recursor) {\n super({\n ctor: state[0],\n pointer: state[1],\n stringTag: state[2],\n isArray: state[3],\n isIterable: state[4],\n isList: state[5],\n })\n\n this.deserializedRecursor = recursor\n this.replayState = null\n }\n\n createRecursor () {\n if (!this.deserializedRecursor) return () => null\n\n const replay = recursorUtils.replay(this.replayState, () => ({ size: -1, next: this.deserializedRecursor }))\n this.replayState = replay.state\n return replay.recursor.next\n }\n\n hasSameCtor (expected) {\n return this.ctor === expected.ctor\n }\n }\n}\nexports.DeserializedMixin = DeserializedMixin\n","'use strict'\n\nconst constants = require('../constants')\nconst object = require('./object')\n\nconst AMBIGUOUS = constants.AMBIGUOUS\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (props) {\n return new DescribedArgumentsValue(Object.assign({\n // Treat as an array, to allow comparisons with arrays\n isArray: true,\n isList: true,\n }, props, { ctor: 'Arguments' }))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedArgumentsValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('ArgumentsValue')\nexports.tag = tag\n\nclass ArgumentsValue extends object.ObjectValue {\n compare (expected) {\n if (expected.isComplex !== true) return UNEQUAL\n\n // When used on the left-hand side of a comparison, argument values may be\n // compared to arrays.\n if (expected.stringTag === 'Array') return AMBIGUOUS\n\n return super.compare(expected)\n }\n}\nObject.defineProperty(ArgumentsValue.prototype, 'tag', { value: tag })\n\nconst DescribedArgumentsValue = object.DescribedMixin(ArgumentsValue)\n\nclass DeserializedArgumentsValue extends object.DeserializedMixin(ArgumentsValue) {\n compare (expected) {\n // Deserialized argument values may only be compared to argument values.\n return expected.isComplex === true && expected.stringTag === 'Array'\n ? UNEQUAL\n : super.compare(expected)\n }\n}\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\nconst propertyStatsTag = require('../metaDescriptors/stats').propertyTag\nconst recursorUtils = require('../recursorUtils')\nconst object = require('./object')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction getBuffer (value) {\n const buffer = Buffer.from(value.buffer)\n return value.byteLength !== value.buffer.byteLength\n ? buffer.slice(value.byteOffset, value.byteOffset + value.byteLength)\n : buffer\n}\nexports.getBuffer = getBuffer\n\nfunction describe (props) {\n return new DescribedTypedArrayValue(Object.assign({\n buffer: getBuffer(props.value),\n // Set isArray and isList so the property recursor excludes the byte accessors\n isArray: true,\n isList: true,\n }, props))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedTypedArrayValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nfunction deserializeBytes (buffer) {\n return new Bytes(buffer)\n}\nexports.deserializeBytes = deserializeBytes\n\nconst bytesTag = Symbol('Bytes')\nexports.bytesTag = bytesTag\n\nconst tag = Symbol('TypedArrayValue')\nexports.tag = tag\n\nclass Bytes {\n constructor (buffer) {\n this.buffer = buffer\n }\n\n compare (expected) {\n return expected.tag === bytesTag && this.buffer.equals(expected.buffer)\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n formatDeep (theme, indent) {\n const indentation = indent\n const lines = lineBuilder.buffer()\n\n // Display 4-byte words, 8 per line\n let string = ''\n let isFirst = true\n for (let offset = 0; offset < this.buffer.length; offset += 4) {\n if (offset > 0) {\n if (offset % 32 === 0) {\n if (isFirst) {\n lines.append(lineBuilder.first(string))\n isFirst = false\n } else {\n lines.append(lineBuilder.line(string))\n }\n string = String(indentation)\n } else {\n string += ' '\n }\n }\n string += formatUtils.wrap(theme.typedArray.bytes, this.buffer.toString('hex', offset, offset + 4))\n }\n\n return isFirst\n ? lineBuilder.single(string)\n : lines.append(lineBuilder.last(string))\n }\n\n serialize () {\n return this.buffer\n }\n}\nObject.defineProperty(Bytes.prototype, 'tag', { value: bytesTag })\n\nclass TypedArrayValue extends object.ObjectValue {\n constructor (props) {\n super(props)\n this.buffer = props.buffer\n }\n\n formatShallow (theme, indent) {\n return super.formatShallow(theme, indent).customize({\n shouldFormat (subject) {\n if (subject.tag === propertyStatsTag) return subject.size > 1\n if (subject.isProperty === true) return subject.key.value !== 'byteLength'\n if (subject.tag === bytesTag) return subject.buffer.byteLength > 0\n return true\n },\n })\n }\n}\nObject.defineProperty(TypedArrayValue.prototype, 'tag', { value: tag })\nexports.TypedArrayValue = TypedArrayValue\n\nfunction DescribedMixin (base) {\n return class extends object.DescribedMixin(base) {\n // The list isn't recursed. Instead a Bytes instance is returned by the main\n // recursor.\n createListRecursor () {\n return recursorUtils.NOOP_RECURSOR\n }\n\n createPropertyRecursor () {\n const recursor = super.createPropertyRecursor()\n const size = recursor.size + 1\n\n let done = false\n const next = () => {\n if (done) return null\n\n const property = recursor.next()\n if (property) return property\n\n done = true\n return this.describeProperty('byteLength', this.describeAny(this.buffer.byteLength))\n }\n\n return { size, next }\n }\n\n createRecursor () {\n return recursorUtils.unshift(super.createRecursor(), new Bytes(this.buffer))\n }\n }\n}\nexports.DescribedMixin = DescribedMixin\n\nconst DescribedTypedArrayValue = DescribedMixin(TypedArrayValue)\n\nfunction DeserializedMixin (base) {\n return class extends object.DeserializedMixin(base) {\n constructor (state, recursor) {\n super(state, recursor)\n\n // Get the Bytes descriptor from the recursor. It contains the buffer.\n const bytesDescriptor = this.createRecursor()()\n this.buffer = bytesDescriptor.buffer\n }\n }\n}\nexports.DeserializedMixin = DeserializedMixin\n\nconst DeserializedTypedArrayValue = DeserializedMixin(TypedArrayValue)\n","'use strict'\n\nconst typedArray = require('./typedArray')\n\nfunction describe (props) {\n return new DescribedArrayBufferValue(Object.assign({\n buffer: Buffer.from(props.value),\n // Set isArray and isList so the property recursor excludes the byte accessors\n isArray: true,\n isList: true,\n }, props))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedArrayBufferValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('ArrayBufferValue')\nexports.tag = tag\n\n// ArrayBuffers can be represented as regular Buffers, allowing them to be\n// treated as TypedArrays for the purposes of this package.\nclass ArrayBufferValue extends typedArray.TypedArrayValue {}\nObject.defineProperty(ArrayBufferValue.prototype, 'tag', { value: tag })\n\nconst DescribedArrayBufferValue = typedArray.DescribedMixin(ArrayBufferValue)\nconst DeserializedArrayBufferValue = typedArray.DeserializedMixin(ArrayBufferValue)\n","/**\n * This library modifies the diff-patch-match library by Neil Fraser\n * by removing the patch and match functionality and certain advanced\n * options in the diff function. The original license is as follows:\n *\n * ===\n *\n * Diff Match and Patch\n *\n * Copyright 2006 Google Inc.\n * http://code.google.com/p/google-diff-match-patch/\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n/**\n * The data structure representing a diff is an array of tuples:\n * [[DIFF_DELETE, 'Hello'], [DIFF_INSERT, 'Goodbye'], [DIFF_EQUAL, ' world.']]\n * which means: delete 'Hello', add 'Goodbye' and keep ' world.'\n */\nvar DIFF_DELETE = -1;\nvar DIFF_INSERT = 1;\nvar DIFF_EQUAL = 0;\n\n\n/**\n * Find the differences between two texts. Simplifies the problem by stripping\n * any common prefix or suffix off the texts before diffing.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @param {Int|Object} [cursor_pos] Edit position in text1 or object with more info\n * @return {Array} Array of diff tuples.\n */\nfunction diff_main(text1, text2, cursor_pos, _fix_unicode) {\n // Check for equality\n if (text1 === text2) {\n if (text1) {\n return [[DIFF_EQUAL, text1]];\n }\n return [];\n }\n\n if (cursor_pos != null) {\n var editdiff = find_cursor_edit_diff(text1, text2, cursor_pos);\n if (editdiff) {\n return editdiff;\n }\n }\n\n // Trim off common prefix (speedup).\n var commonlength = diff_commonPrefix(text1, text2);\n var commonprefix = text1.substring(0, commonlength);\n text1 = text1.substring(commonlength);\n text2 = text2.substring(commonlength);\n\n // Trim off common suffix (speedup).\n commonlength = diff_commonSuffix(text1, text2);\n var commonsuffix = text1.substring(text1.length - commonlength);\n text1 = text1.substring(0, text1.length - commonlength);\n text2 = text2.substring(0, text2.length - commonlength);\n\n // Compute the diff on the middle block.\n var diffs = diff_compute_(text1, text2);\n\n // Restore the prefix and suffix.\n if (commonprefix) {\n diffs.unshift([DIFF_EQUAL, commonprefix]);\n }\n if (commonsuffix) {\n diffs.push([DIFF_EQUAL, commonsuffix]);\n }\n diff_cleanupMerge(diffs, _fix_unicode);\n return diffs;\n};\n\n\n/**\n * Find the differences between two texts. Assumes that the texts do not\n * have any common prefix or suffix.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @return {Array} Array of diff tuples.\n */\nfunction diff_compute_(text1, text2) {\n var diffs;\n\n if (!text1) {\n // Just add some text (speedup).\n return [[DIFF_INSERT, text2]];\n }\n\n if (!text2) {\n // Just delete some text (speedup).\n return [[DIFF_DELETE, text1]];\n }\n\n var longtext = text1.length > text2.length ? text1 : text2;\n var shorttext = text1.length > text2.length ? text2 : text1;\n var i = longtext.indexOf(shorttext);\n if (i !== -1) {\n // Shorter text is inside the longer text (speedup).\n diffs = [\n [DIFF_INSERT, longtext.substring(0, i)],\n [DIFF_EQUAL, shorttext],\n [DIFF_INSERT, longtext.substring(i + shorttext.length)]\n ];\n // Swap insertions for deletions if diff is reversed.\n if (text1.length > text2.length) {\n diffs[0][0] = diffs[2][0] = DIFF_DELETE;\n }\n return diffs;\n }\n\n if (shorttext.length === 1) {\n // Single character string.\n // After the previous speedup, the character can't be an equality.\n return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];\n }\n\n // Check to see if the problem can be split in two.\n var hm = diff_halfMatch_(text1, text2);\n if (hm) {\n // A half-match was found, sort out the return data.\n var text1_a = hm[0];\n var text1_b = hm[1];\n var text2_a = hm[2];\n var text2_b = hm[3];\n var mid_common = hm[4];\n // Send both pairs off for separate processing.\n var diffs_a = diff_main(text1_a, text2_a);\n var diffs_b = diff_main(text1_b, text2_b);\n // Merge the results.\n return diffs_a.concat([[DIFF_EQUAL, mid_common]], diffs_b);\n }\n\n return diff_bisect_(text1, text2);\n};\n\n\n/**\n * Find the 'middle snake' of a diff, split the problem in two\n * and return the recursively constructed diff.\n * See Myers 1986 paper: An O(ND) Difference Algorithm and Its Variations.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @return {Array} Array of diff tuples.\n * @private\n */\nfunction diff_bisect_(text1, text2) {\n // Cache the text lengths to prevent multiple calls.\n var text1_length = text1.length;\n var text2_length = text2.length;\n var max_d = Math.ceil((text1_length + text2_length) / 2);\n var v_offset = max_d;\n var v_length = 2 * max_d;\n var v1 = new Array(v_length);\n var v2 = new Array(v_length);\n // Setting all elements to -1 is faster in Chrome & Firefox than mixing\n // integers and undefined.\n for (var x = 0; x < v_length; x++) {\n v1[x] = -1;\n v2[x] = -1;\n }\n v1[v_offset + 1] = 0;\n v2[v_offset + 1] = 0;\n var delta = text1_length - text2_length;\n // If the total number of characters is odd, then the front path will collide\n // with the reverse path.\n var front = (delta % 2 !== 0);\n // Offsets for start and end of k loop.\n // Prevents mapping of space beyond the grid.\n var k1start = 0;\n var k1end = 0;\n var k2start = 0;\n var k2end = 0;\n for (var d = 0; d < max_d; d++) {\n // Walk the front path one step.\n for (var k1 = -d + k1start; k1 <= d - k1end; k1 += 2) {\n var k1_offset = v_offset + k1;\n var x1;\n if (k1 === -d || (k1 !== d && v1[k1_offset - 1] < v1[k1_offset + 1])) {\n x1 = v1[k1_offset + 1];\n } else {\n x1 = v1[k1_offset - 1] + 1;\n }\n var y1 = x1 - k1;\n while (\n x1 < text1_length && y1 < text2_length &&\n text1.charAt(x1) === text2.charAt(y1)\n ) {\n x1++;\n y1++;\n }\n v1[k1_offset] = x1;\n if (x1 > text1_length) {\n // Ran off the right of the graph.\n k1end += 2;\n } else if (y1 > text2_length) {\n // Ran off the bottom of the graph.\n k1start += 2;\n } else if (front) {\n var k2_offset = v_offset + delta - k1;\n if (k2_offset >= 0 && k2_offset < v_length && v2[k2_offset] !== -1) {\n // Mirror x2 onto top-left coordinate system.\n var x2 = text1_length - v2[k2_offset];\n if (x1 >= x2) {\n // Overlap detected.\n return diff_bisectSplit_(text1, text2, x1, y1);\n }\n }\n }\n }\n\n // Walk the reverse path one step.\n for (var k2 = -d + k2start; k2 <= d - k2end; k2 += 2) {\n var k2_offset = v_offset + k2;\n var x2;\n if (k2 === -d || (k2 !== d && v2[k2_offset - 1] < v2[k2_offset + 1])) {\n x2 = v2[k2_offset + 1];\n } else {\n x2 = v2[k2_offset - 1] + 1;\n }\n var y2 = x2 - k2;\n while (\n x2 < text1_length && y2 < text2_length &&\n text1.charAt(text1_length - x2 - 1) === text2.charAt(text2_length - y2 - 1)\n ) {\n x2++;\n y2++;\n }\n v2[k2_offset] = x2;\n if (x2 > text1_length) {\n // Ran off the left of the graph.\n k2end += 2;\n } else if (y2 > text2_length) {\n // Ran off the top of the graph.\n k2start += 2;\n } else if (!front) {\n var k1_offset = v_offset + delta - k2;\n if (k1_offset >= 0 && k1_offset < v_length && v1[k1_offset] !== -1) {\n var x1 = v1[k1_offset];\n var y1 = v_offset + x1 - k1_offset;\n // Mirror x2 onto top-left coordinate system.\n x2 = text1_length - x2;\n if (x1 >= x2) {\n // Overlap detected.\n return diff_bisectSplit_(text1, text2, x1, y1);\n }\n }\n }\n }\n }\n // Diff took too long and hit the deadline or\n // number of diffs equals number of characters, no commonality at all.\n return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];\n};\n\n\n/**\n * Given the location of the 'middle snake', split the diff in two parts\n * and recurse.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @param {number} x Index of split point in text1.\n * @param {number} y Index of split point in text2.\n * @return {Array} Array of diff tuples.\n */\nfunction diff_bisectSplit_(text1, text2, x, y) {\n var text1a = text1.substring(0, x);\n var text2a = text2.substring(0, y);\n var text1b = text1.substring(x);\n var text2b = text2.substring(y);\n\n // Compute both diffs serially.\n var diffs = diff_main(text1a, text2a);\n var diffsb = diff_main(text1b, text2b);\n\n return diffs.concat(diffsb);\n};\n\n\n/**\n * Determine the common prefix of two strings.\n * @param {string} text1 First string.\n * @param {string} text2 Second string.\n * @return {number} The number of characters common to the start of each\n * string.\n */\nfunction diff_commonPrefix(text1, text2) {\n // Quick check for common null cases.\n if (!text1 || !text2 || text1.charAt(0) !== text2.charAt(0)) {\n return 0;\n }\n // Binary search.\n // Performance analysis: http://neil.fraser.name/news/2007/10/09/\n var pointermin = 0;\n var pointermax = Math.min(text1.length, text2.length);\n var pointermid = pointermax;\n var pointerstart = 0;\n while (pointermin < pointermid) {\n if (\n text1.substring(pointerstart, pointermid) ==\n text2.substring(pointerstart, pointermid)\n ) {\n pointermin = pointermid;\n pointerstart = pointermin;\n } else {\n pointermax = pointermid;\n }\n pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);\n }\n\n if (is_surrogate_pair_start(text1.charCodeAt(pointermid - 1))) {\n pointermid--;\n }\n\n return pointermid;\n};\n\n\n/**\n * Determine the common suffix of two strings.\n * @param {string} text1 First string.\n * @param {string} text2 Second string.\n * @return {number} The number of characters common to the end of each string.\n */\nfunction diff_commonSuffix(text1, text2) {\n // Quick check for common null cases.\n if (!text1 || !text2 || text1.slice(-1) !== text2.slice(-1)) {\n return 0;\n }\n // Binary search.\n // Performance analysis: http://neil.fraser.name/news/2007/10/09/\n var pointermin = 0;\n var pointermax = Math.min(text1.length, text2.length);\n var pointermid = pointermax;\n var pointerend = 0;\n while (pointermin < pointermid) {\n if (\n text1.substring(text1.length - pointermid, text1.length - pointerend) ==\n text2.substring(text2.length - pointermid, text2.length - pointerend)\n ) {\n pointermin = pointermid;\n pointerend = pointermin;\n } else {\n pointermax = pointermid;\n }\n pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);\n }\n\n if (is_surrogate_pair_end(text1.charCodeAt(text1.length - pointermid))) {\n pointermid--;\n }\n\n return pointermid;\n};\n\n\n/**\n * Do the two texts share a substring which is at least half the length of the\n * longer text?\n * This speedup can produce non-minimal diffs.\n * @param {string} text1 First string.\n * @param {string} text2 Second string.\n * @return {Array.} Five element Array, containing the prefix of\n * text1, the suffix of text1, the prefix of text2, the suffix of\n * text2 and the common middle. Or null if there was no match.\n */\nfunction diff_halfMatch_(text1, text2) {\n var longtext = text1.length > text2.length ? text1 : text2;\n var shorttext = text1.length > text2.length ? text2 : text1;\n if (longtext.length < 4 || shorttext.length * 2 < longtext.length) {\n return null; // Pointless.\n }\n\n /**\n * Does a substring of shorttext exist within longtext such that the substring\n * is at least half the length of longtext?\n * Closure, but does not reference any external variables.\n * @param {string} longtext Longer string.\n * @param {string} shorttext Shorter string.\n * @param {number} i Start index of quarter length substring within longtext.\n * @return {Array.} Five element Array, containing the prefix of\n * longtext, the suffix of longtext, the prefix of shorttext, the suffix\n * of shorttext and the common middle. Or null if there was no match.\n * @private\n */\n function diff_halfMatchI_(longtext, shorttext, i) {\n // Start with a 1/4 length substring at position i as a seed.\n var seed = longtext.substring(i, i + Math.floor(longtext.length / 4));\n var j = -1;\n var best_common = '';\n var best_longtext_a, best_longtext_b, best_shorttext_a, best_shorttext_b;\n while ((j = shorttext.indexOf(seed, j + 1)) !== -1) {\n var prefixLength = diff_commonPrefix(\n longtext.substring(i), shorttext.substring(j));\n var suffixLength = diff_commonSuffix(\n longtext.substring(0, i), shorttext.substring(0, j));\n if (best_common.length < suffixLength + prefixLength) {\n best_common = shorttext.substring(\n j - suffixLength, j) + shorttext.substring(j, j + prefixLength);\n best_longtext_a = longtext.substring(0, i - suffixLength);\n best_longtext_b = longtext.substring(i + prefixLength);\n best_shorttext_a = shorttext.substring(0, j - suffixLength);\n best_shorttext_b = shorttext.substring(j + prefixLength);\n }\n }\n if (best_common.length * 2 >= longtext.length) {\n return [\n best_longtext_a, best_longtext_b,\n best_shorttext_a, best_shorttext_b, best_common\n ];\n } else {\n return null;\n }\n }\n\n // First check if the second quarter is the seed for a half-match.\n var hm1 = diff_halfMatchI_(longtext, shorttext, Math.ceil(longtext.length / 4));\n // Check again based on the third quarter.\n var hm2 = diff_halfMatchI_(longtext, shorttext, Math.ceil(longtext.length / 2));\n var hm;\n if (!hm1 && !hm2) {\n return null;\n } else if (!hm2) {\n hm = hm1;\n } else if (!hm1) {\n hm = hm2;\n } else {\n // Both matched. Select the longest.\n hm = hm1[4].length > hm2[4].length ? hm1 : hm2;\n }\n\n // A half-match was found, sort out the return data.\n var text1_a, text1_b, text2_a, text2_b;\n if (text1.length > text2.length) {\n text1_a = hm[0];\n text1_b = hm[1];\n text2_a = hm[2];\n text2_b = hm[3];\n } else {\n text2_a = hm[0];\n text2_b = hm[1];\n text1_a = hm[2];\n text1_b = hm[3];\n }\n var mid_common = hm[4];\n return [text1_a, text1_b, text2_a, text2_b, mid_common];\n};\n\n\n/**\n * Reorder and merge like edit sections. Merge equalities.\n * Any edit section can move as long as it doesn't cross an equality.\n * @param {Array} diffs Array of diff tuples.\n * @param {boolean} fix_unicode Whether to normalize to a unicode-correct diff\n */\nfunction diff_cleanupMerge(diffs, fix_unicode) {\n diffs.push([DIFF_EQUAL, '']); // Add a dummy entry at the end.\n var pointer = 0;\n var count_delete = 0;\n var count_insert = 0;\n var text_delete = '';\n var text_insert = '';\n var commonlength;\n while (pointer < diffs.length) {\n if (pointer < diffs.length - 1 && !diffs[pointer][1]) {\n diffs.splice(pointer, 1);\n continue;\n }\n switch (diffs[pointer][0]) {\n case DIFF_INSERT:\n\n count_insert++;\n text_insert += diffs[pointer][1];\n pointer++;\n break;\n case DIFF_DELETE:\n count_delete++;\n text_delete += diffs[pointer][1];\n pointer++;\n break;\n case DIFF_EQUAL:\n var previous_equality = pointer - count_insert - count_delete - 1;\n if (fix_unicode) {\n // prevent splitting of unicode surrogate pairs. when fix_unicode is true,\n // we assume that the old and new text in the diff are complete and correct\n // unicode-encoded JS strings, but the tuple boundaries may fall between\n // surrogate pairs. we fix this by shaving off stray surrogates from the end\n // of the previous equality and the beginning of this equality. this may create\n // empty equalities or a common prefix or suffix. for example, if AB and AC are\n // emojis, `[[0, 'A'], [-1, 'BA'], [0, 'C']]` would turn into deleting 'ABAC' and\n // inserting 'AC', and then the common suffix 'AC' will be eliminated. in this\n // particular case, both equalities go away, we absorb any previous inequalities,\n // and we keep scanning for the next equality before rewriting the tuples.\n if (previous_equality >= 0 && ends_with_pair_start(diffs[previous_equality][1])) {\n var stray = diffs[previous_equality][1].slice(-1);\n diffs[previous_equality][1] = diffs[previous_equality][1].slice(0, -1);\n text_delete = stray + text_delete;\n text_insert = stray + text_insert;\n if (!diffs[previous_equality][1]) {\n // emptied out previous equality, so delete it and include previous delete/insert\n diffs.splice(previous_equality, 1);\n pointer--;\n var k = previous_equality - 1;\n if (diffs[k] && diffs[k][0] === DIFF_INSERT) {\n count_insert++;\n text_insert = diffs[k][1] + text_insert;\n k--;\n }\n if (diffs[k] && diffs[k][0] === DIFF_DELETE) {\n count_delete++;\n text_delete = diffs[k][1] + text_delete;\n k--;\n }\n previous_equality = k;\n }\n }\n if (starts_with_pair_end(diffs[pointer][1])) {\n var stray = diffs[pointer][1].charAt(0);\n diffs[pointer][1] = diffs[pointer][1].slice(1);\n text_delete += stray;\n text_insert += stray;\n }\n }\n if (pointer < diffs.length - 1 && !diffs[pointer][1]) {\n // for empty equality not at end, wait for next equality\n diffs.splice(pointer, 1);\n break;\n }\n if (text_delete.length > 0 || text_insert.length > 0) {\n // note that diff_commonPrefix and diff_commonSuffix are unicode-aware\n if (text_delete.length > 0 && text_insert.length > 0) {\n // Factor out any common prefixes.\n commonlength = diff_commonPrefix(text_insert, text_delete);\n if (commonlength !== 0) {\n if (previous_equality >= 0) {\n diffs[previous_equality][1] += text_insert.substring(0, commonlength);\n } else {\n diffs.splice(0, 0, [DIFF_EQUAL, text_insert.substring(0, commonlength)]);\n pointer++;\n }\n text_insert = text_insert.substring(commonlength);\n text_delete = text_delete.substring(commonlength);\n }\n // Factor out any common suffixes.\n commonlength = diff_commonSuffix(text_insert, text_delete);\n if (commonlength !== 0) {\n diffs[pointer][1] =\n text_insert.substring(text_insert.length - commonlength) + diffs[pointer][1];\n text_insert = text_insert.substring(0, text_insert.length - commonlength);\n text_delete = text_delete.substring(0, text_delete.length - commonlength);\n }\n }\n // Delete the offending records and add the merged ones.\n var n = count_insert + count_delete;\n if (text_delete.length === 0 && text_insert.length === 0) {\n diffs.splice(pointer - n, n);\n pointer = pointer - n;\n } else if (text_delete.length === 0) {\n diffs.splice(pointer - n, n, [DIFF_INSERT, text_insert]);\n pointer = pointer - n + 1;\n } else if (text_insert.length === 0) {\n diffs.splice(pointer - n, n, [DIFF_DELETE, text_delete]);\n pointer = pointer - n + 1;\n } else {\n diffs.splice(pointer - n, n, [DIFF_DELETE, text_delete], [DIFF_INSERT, text_insert]);\n pointer = pointer - n + 2;\n }\n }\n if (pointer !== 0 && diffs[pointer - 1][0] === DIFF_EQUAL) {\n // Merge this equality with the previous one.\n diffs[pointer - 1][1] += diffs[pointer][1];\n diffs.splice(pointer, 1);\n } else {\n pointer++;\n }\n count_insert = 0;\n count_delete = 0;\n text_delete = '';\n text_insert = '';\n break;\n }\n }\n if (diffs[diffs.length - 1][1] === '') {\n diffs.pop(); // Remove the dummy entry at the end.\n }\n\n // Second pass: look for single edits surrounded on both sides by equalities\n // which can be shifted sideways to eliminate an equality.\n // e.g: ABAC -> ABAC\n var changes = false;\n pointer = 1;\n // Intentionally ignore the first and last element (don't need checking).\n while (pointer < diffs.length - 1) {\n if (diffs[pointer - 1][0] === DIFF_EQUAL &&\n diffs[pointer + 1][0] === DIFF_EQUAL) {\n // This is a single edit surrounded by equalities.\n if (diffs[pointer][1].substring(diffs[pointer][1].length -\n diffs[pointer - 1][1].length) === diffs[pointer - 1][1]) {\n // Shift the edit over the previous equality.\n diffs[pointer][1] = diffs[pointer - 1][1] +\n diffs[pointer][1].substring(0, diffs[pointer][1].length -\n diffs[pointer - 1][1].length);\n diffs[pointer + 1][1] = diffs[pointer - 1][1] + diffs[pointer + 1][1];\n diffs.splice(pointer - 1, 1);\n changes = true;\n } else if (diffs[pointer][1].substring(0, diffs[pointer + 1][1].length) ==\n diffs[pointer + 1][1]) {\n // Shift the edit over the next equality.\n diffs[pointer - 1][1] += diffs[pointer + 1][1];\n diffs[pointer][1] =\n diffs[pointer][1].substring(diffs[pointer + 1][1].length) +\n diffs[pointer + 1][1];\n diffs.splice(pointer + 1, 1);\n changes = true;\n }\n }\n pointer++;\n }\n // If shifts were made, the diff needs reordering and another shift sweep.\n if (changes) {\n diff_cleanupMerge(diffs, fix_unicode);\n }\n};\n\nfunction is_surrogate_pair_start(charCode) {\n return charCode >= 0xD800 && charCode <= 0xDBFF;\n}\n\nfunction is_surrogate_pair_end(charCode) {\n return charCode >= 0xDC00 && charCode <= 0xDFFF;\n}\n\nfunction starts_with_pair_end(str) {\n return is_surrogate_pair_end(str.charCodeAt(0));\n}\n\nfunction ends_with_pair_start(str) {\n return is_surrogate_pair_start(str.charCodeAt(str.length - 1));\n}\n\nfunction remove_empty_tuples(tuples) {\n var ret = [];\n for (var i = 0; i < tuples.length; i++) {\n if (tuples[i][1].length > 0) {\n ret.push(tuples[i]);\n }\n }\n return ret;\n}\n\nfunction make_edit_splice(before, oldMiddle, newMiddle, after) {\n if (ends_with_pair_start(before) || starts_with_pair_end(after)) {\n return null;\n }\n return remove_empty_tuples([\n [DIFF_EQUAL, before],\n [DIFF_DELETE, oldMiddle],\n [DIFF_INSERT, newMiddle],\n [DIFF_EQUAL, after]\n ]);\n}\n\nfunction find_cursor_edit_diff(oldText, newText, cursor_pos) {\n // note: this runs after equality check has ruled out exact equality\n var oldRange = typeof cursor_pos === 'number' ?\n { index: cursor_pos, length: 0 } : cursor_pos.oldRange;\n var newRange = typeof cursor_pos === 'number' ?\n null : cursor_pos.newRange;\n // take into account the old and new selection to generate the best diff\n // possible for a text edit. for example, a text change from \"xxx\" to \"xx\"\n // could be a delete or forwards-delete of any one of the x's, or the\n // result of selecting two of the x's and typing \"x\".\n var oldLength = oldText.length;\n var newLength = newText.length;\n if (oldRange.length === 0 && (newRange === null || newRange.length === 0)) {\n // see if we have an insert or delete before or after cursor\n var oldCursor = oldRange.index;\n var oldBefore = oldText.slice(0, oldCursor);\n var oldAfter = oldText.slice(oldCursor);\n var maybeNewCursor = newRange ? newRange.index : null;\n editBefore: {\n // is this an insert or delete right before oldCursor?\n var newCursor = oldCursor + newLength - oldLength;\n if (maybeNewCursor !== null && maybeNewCursor !== newCursor) {\n break editBefore;\n }\n if (newCursor < 0 || newCursor > newLength) {\n break editBefore;\n }\n var newBefore = newText.slice(0, newCursor);\n var newAfter = newText.slice(newCursor);\n if (newAfter !== oldAfter) {\n break editBefore;\n }\n var prefixLength = Math.min(oldCursor, newCursor);\n var oldPrefix = oldBefore.slice(0, prefixLength);\n var newPrefix = newBefore.slice(0, prefixLength);\n if (oldPrefix !== newPrefix) {\n break editBefore;\n }\n var oldMiddle = oldBefore.slice(prefixLength);\n var newMiddle = newBefore.slice(prefixLength);\n return make_edit_splice(oldPrefix, oldMiddle, newMiddle, oldAfter);\n }\n editAfter: {\n // is this an insert or delete right after oldCursor?\n if (maybeNewCursor !== null && maybeNewCursor !== oldCursor) {\n break editAfter;\n }\n var cursor = oldCursor;\n var newBefore = newText.slice(0, cursor);\n var newAfter = newText.slice(cursor);\n if (newBefore !== oldBefore) {\n break editAfter;\n }\n var suffixLength = Math.min(oldLength - cursor, newLength - cursor);\n var oldSuffix = oldAfter.slice(oldAfter.length - suffixLength);\n var newSuffix = newAfter.slice(newAfter.length - suffixLength);\n if (oldSuffix !== newSuffix) {\n break editAfter;\n }\n var oldMiddle = oldAfter.slice(0, oldAfter.length - suffixLength);\n var newMiddle = newAfter.slice(0, newAfter.length - suffixLength);\n return make_edit_splice(oldBefore, oldMiddle, newMiddle, oldSuffix);\n }\n }\n if (oldRange.length > 0 && newRange && newRange.length === 0) {\n replaceRange: {\n // see if diff could be a splice of the old selection range\n var oldPrefix = oldText.slice(0, oldRange.index);\n var oldSuffix = oldText.slice(oldRange.index + oldRange.length);\n var prefixLength = oldPrefix.length;\n var suffixLength = oldSuffix.length;\n if (newLength < prefixLength + suffixLength) {\n break replaceRange;\n }\n var newPrefix = newText.slice(0, prefixLength);\n var newSuffix = newText.slice(newLength - suffixLength);\n if (oldPrefix !== newPrefix || oldSuffix !== newSuffix) {\n break replaceRange;\n }\n var oldMiddle = oldText.slice(prefixLength, oldLength - suffixLength);\n var newMiddle = newText.slice(prefixLength, newLength - suffixLength);\n return make_edit_splice(oldPrefix, oldMiddle, newMiddle, oldSuffix);\n }\n }\n\n return null;\n}\n\nfunction diff(text1, text2, cursor_pos) {\n // only pass fix_unicode=true at the top level, not when diff_main is\n // recursively invoked\n return diff_main(text1, text2, cursor_pos, true);\n}\n\ndiff.INSERT = DIFF_INSERT;\ndiff.DELETE = DIFF_DELETE;\ndiff.EQUAL = DIFF_EQUAL;\n\nmodule.exports = diff;\n","'use strict'\n\nconst keyword = require('esutils').keyword\nconst fastDiff = require('fast-diff')\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (value) {\n return new StringValue(value)\n}\nexports.describe = describe\n\nexports.deserialize = describe\n\nconst tag = Symbol('StringValue')\nexports.tag = tag\n\n// TODO: Escape invisible characters (e.g. zero-width joiner, non-breaking space),\n// ambiguous characters (other kinds of spaces, combining characters). Use\n// http://graphemica.com/blocks/control-pictures where applicable.\nfunction basicEscape (string) {\n return string.replace(/\\\\/g, '\\\\\\\\')\n}\n\nconst CRLF_CONTROL_PICTURE = '\\u240D\\u240A'\nconst LF_CONTROL_PICTURE = '\\u240A'\nconst CR_CONTROL_PICTURE = '\\u240D'\n\nconst MATCH_CONTROL_PICTURES = new RegExp(`${CR_CONTROL_PICTURE}|${LF_CONTROL_PICTURE}|${CR_CONTROL_PICTURE}`, 'g')\n\nfunction escapeLinebreak (string) {\n if (string === '\\r\\n') return CRLF_CONTROL_PICTURE\n if (string === '\\n') return LF_CONTROL_PICTURE\n if (string === '\\r') return CR_CONTROL_PICTURE\n return string\n}\n\nfunction themeControlPictures (theme, resetWrap, str) {\n return str.replace(MATCH_CONTROL_PICTURES, picture => {\n return resetWrap.close + formatUtils.wrap(theme.string.controlPicture, picture) + resetWrap.open\n })\n}\n\nconst MATCH_SINGLE_QUOTE = /'/g\nconst MATCH_DOUBLE_QUOTE = /\"/g\nconst MATCH_BACKTICKS = /`/g\nfunction escapeQuotes (line, string) {\n const quote = line.escapeQuote\n if (quote === '\\'') return string.replace(MATCH_SINGLE_QUOTE, \"\\\\'\")\n if (quote === '\"') return string.replace(MATCH_DOUBLE_QUOTE, '\\\\\"')\n if (quote === '`') return string.replace(MATCH_BACKTICKS, '\\\\`')\n return string\n}\n\nfunction includesLinebreaks (string) {\n return string.includes('\\r') || string.includes('\\n')\n}\n\nfunction diffLine (theme, actual, expected, invert) {\n const outcome = fastDiff(actual, expected)\n\n // TODO: Compute when line is mostly unequal (80%? 90%?) and treat it as being\n // completely unequal.\n const isPartiallyEqual = !(\n (outcome.length === 2 && outcome[0][1] === actual && outcome[1][1] === expected) ||\n // Discount line ending control pictures, which will be equal even when the\n // rest of the line isn't.\n (\n outcome.length === 3 &&\n outcome[2][0] === fastDiff.EQUAL &&\n MATCH_CONTROL_PICTURES.test(outcome[2][1]) &&\n outcome[0][1] + outcome[2][1] === actual &&\n outcome[1][1] + outcome[2][1] === expected\n )\n )\n\n let stringActual = ''\n let stringExpected = ''\n\n const noopWrap = { open: '', close: '' }\n let deleteWrap = isPartiallyEqual ? theme.string.diff.delete : noopWrap\n let insertWrap = isPartiallyEqual ? theme.string.diff.insert : noopWrap\n const equalWrap = isPartiallyEqual ? theme.string.diff.equal : noopWrap\n\n if (invert) {\n [deleteWrap, insertWrap] = [insertWrap, deleteWrap]\n }\n\n for (const diff of outcome) {\n if (diff[0] === fastDiff.DELETE) {\n stringActual += formatUtils.wrap(deleteWrap, diff[1])\n } else if (diff[0] === fastDiff.INSERT) {\n stringExpected += formatUtils.wrap(insertWrap, diff[1])\n } else {\n const string = formatUtils.wrap(equalWrap, themeControlPictures(theme, equalWrap, diff[1]))\n stringActual += string\n stringExpected += string\n }\n }\n\n if (!isPartiallyEqual) {\n const deleteLineWrap = invert ? theme.string.diff.insertLine : theme.string.diff.deleteLine\n const insertLineWrap = invert ? theme.string.diff.deleteLine : theme.string.diff.insertLine\n\n stringActual = formatUtils.wrap(deleteLineWrap, stringActual)\n stringExpected = formatUtils.wrap(insertLineWrap, stringExpected)\n }\n\n return [stringActual, stringExpected]\n}\n\nconst LINEBREAKS = /\\r\\n|\\r|\\n/g\n\nfunction gatherLines (string) {\n const lines = []\n let prevIndex = 0\n for (let match; (match = LINEBREAKS.exec(string)); prevIndex = match.index + match[0].length) {\n lines.push(string.slice(prevIndex, match.index) + escapeLinebreak(match[0]))\n }\n lines.push(string.slice(prevIndex))\n return lines\n}\n\nclass StringValue {\n constructor (value) {\n this.value = value\n }\n\n compare (expected) {\n return expected.tag === tag && this.value === expected.value\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n get includesLinebreaks () {\n return includesLinebreaks(this.value)\n }\n\n formatDeep (theme, indent) {\n // Escape backslashes\n let escaped = basicEscape(this.value)\n\n if (!this.includesLinebreaks) {\n escaped = escapeQuotes(theme.string.line, escaped)\n return lineBuilder.single(formatUtils.wrap(theme.string.line, formatUtils.wrap(theme.string, escaped)))\n }\n\n escaped = escapeQuotes(theme.string.multiline, escaped)\n const lineStrings = gatherLines(escaped).map(string => {\n return formatUtils.wrap(theme.string, themeControlPictures(theme, theme.string, string))\n })\n const lastIndex = lineStrings.length - 1\n const indentation = indent\n return lineBuilder.buffer()\n .append(\n lineStrings.map((string, index) => {\n if (index === 0) return lineBuilder.first(theme.string.multiline.start + string)\n if (index === lastIndex) return lineBuilder.last(indentation + string + theme.string.multiline.end)\n return lineBuilder.line(indentation + string)\n }))\n }\n\n formatAsKey (theme) {\n const key = this.value\n if (keyword.isIdentifierNameES6(key, true) || String(parseInt(key, 10)) === key) {\n return key\n }\n\n const escaped = basicEscape(key)\n .replace(/\\n/g, '\\\\n')\n .replace(/\\r/g, '\\\\r')\n .replace(/'/g, \"\\\\'\")\n return formatUtils.wrap(theme.string.line, formatUtils.wrap(theme.string, escaped))\n }\n\n diffDeep (expected, theme, indent, invert) {\n if (expected.tag !== tag) return null\n\n const escapedActual = basicEscape(this.value)\n const escapedExpected = basicEscape(expected.value)\n\n if (!includesLinebreaks(escapedActual) && !includesLinebreaks(escapedExpected)) {\n const result = diffLine(theme,\n escapeQuotes(theme.string.line, escapedActual),\n escapeQuotes(theme.string.line, escapedExpected),\n invert,\n )\n\n return lineBuilder.actual.single(formatUtils.wrap(theme.string.line, result[0]))\n .concat(lineBuilder.expected.single(formatUtils.wrap(theme.string.line, result[1])))\n }\n\n const actualLines = gatherLines(escapeQuotes(theme.string.multiline, escapedActual))\n const expectedLines = gatherLines(escapeQuotes(theme.string.multiline, escapedExpected))\n\n const indentation = indent\n const lines = lineBuilder.buffer()\n const lastActualIndex = actualLines.length - 1\n const lastExpectedIndex = expectedLines.length - 1\n\n let actualBuffer = []\n let expectedBuffer = []\n let mustOpenNextExpected = false\n for (let actualIndex = 0, expectedIndex = 0, extraneousOffset = 0; actualIndex < actualLines.length;) {\n if (actualLines[actualIndex] === expectedLines[expectedIndex]) {\n lines.append(actualBuffer)\n lines.append(expectedBuffer)\n actualBuffer = []\n expectedBuffer = []\n\n let string = actualLines[actualIndex]\n string = themeControlPictures(theme, theme.string.diff.equal, string)\n string = formatUtils.wrap(theme.string.diff.equal, string)\n\n if (actualIndex === 0) {\n lines.append(lineBuilder.first(theme.string.multiline.start + string))\n } else if (actualIndex === lastActualIndex && expectedIndex === lastExpectedIndex) {\n lines.append(lineBuilder.last(indentation + string + theme.string.multiline.end))\n } else {\n lines.append(lineBuilder.line(indentation + string))\n }\n\n actualIndex++\n expectedIndex++\n continue\n }\n\n let expectedIsMissing = false\n {\n const compare = actualLines[actualIndex]\n for (let index = expectedIndex; !expectedIsMissing && index < expectedLines.length; index++) {\n expectedIsMissing = compare === expectedLines[index]\n }\n }\n\n let actualIsExtraneous = (actualIndex - extraneousOffset) > lastExpectedIndex || expectedIndex > lastExpectedIndex\n if (!actualIsExtraneous) {\n const compare = expectedLines[expectedIndex]\n for (let index = actualIndex; !actualIsExtraneous && index < actualLines.length; index++) {\n actualIsExtraneous = compare === actualLines[index]\n }\n\n if (!actualIsExtraneous && (actualIndex - extraneousOffset) === lastExpectedIndex && actualIndex < lastActualIndex) {\n actualIsExtraneous = true\n }\n }\n\n if (actualIsExtraneous && !expectedIsMissing) {\n const wrap = invert ? theme.string.diff.insertLine : theme.string.diff.deleteLine\n const string = formatUtils.wrap(wrap, actualLines[actualIndex])\n\n if (actualIndex === 0) {\n actualBuffer.push(lineBuilder.actual.first(theme.string.multiline.start + string))\n mustOpenNextExpected = true\n } else if (actualIndex === lastActualIndex) {\n actualBuffer.push(lineBuilder.actual.last(indentation + string + theme.string.multiline.end))\n } else {\n actualBuffer.push(lineBuilder.actual.line(indentation + string))\n }\n\n actualIndex++\n extraneousOffset++\n } else if (expectedIsMissing && !actualIsExtraneous) {\n const wrap = invert ? theme.string.diff.deleteLine : theme.string.diff.insertLine\n const string = formatUtils.wrap(wrap, expectedLines[expectedIndex])\n\n if (mustOpenNextExpected) {\n expectedBuffer.push(lineBuilder.expected.first(theme.string.multiline.start + string))\n mustOpenNextExpected = false\n } else if (expectedIndex === lastExpectedIndex) {\n expectedBuffer.push(lineBuilder.expected.last(indentation + string + theme.string.multiline.end))\n } else {\n expectedBuffer.push(lineBuilder.expected.line(indentation + string))\n }\n\n expectedIndex++\n } else {\n const result = diffLine(theme, actualLines[actualIndex], expectedLines[expectedIndex], invert)\n\n if (actualIndex === 0) {\n actualBuffer.push(lineBuilder.actual.first(theme.string.multiline.start + result[0]))\n mustOpenNextExpected = true\n } else if (actualIndex === lastActualIndex) {\n actualBuffer.push(lineBuilder.actual.last(indentation + result[0] + theme.string.multiline.end))\n } else {\n actualBuffer.push(lineBuilder.actual.line(indentation + result[0]))\n }\n\n if (mustOpenNextExpected) {\n expectedBuffer.push(lineBuilder.expected.first(theme.string.multiline.start + result[1]))\n mustOpenNextExpected = false\n } else if (expectedIndex === lastExpectedIndex) {\n expectedBuffer.push(lineBuilder.expected.last(indentation + result[1] + theme.string.multiline.end))\n } else {\n expectedBuffer.push(lineBuilder.expected.line(indentation + result[1]))\n }\n\n actualIndex++\n expectedIndex++\n }\n }\n\n lines.append(actualBuffer)\n lines.append(expectedBuffer)\n return lines\n }\n\n serialize () {\n return this.value\n }\n}\nObject.defineProperty(StringValue.prototype, 'isPrimitive', { value: true })\nObject.defineProperty(StringValue.prototype, 'tag', { value: tag })\n","'use strict'\n\nconst stringPrimitive = require('../primitiveValues/string').tag\nconst recursorUtils = require('../recursorUtils')\nconst object = require('./object')\n\nfunction describe (props) {\n return new DescribedBoxedValue(props)\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedBoxedValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('BoxedValue')\nexports.tag = tag\n\nclass BoxedValue extends object.ObjectValue {}\nObject.defineProperty(BoxedValue.prototype, 'tag', { value: tag })\n\nclass DescribedBoxedValue extends object.DescribedMixin(BoxedValue) {\n constructor (props) {\n super(props)\n this.unboxed = props.unboxed\n }\n\n createListRecursor () {\n return recursorUtils.NOOP_RECURSOR\n }\n\n createPropertyRecursor () {\n if (this.unboxed.tag !== stringPrimitive) return super.createPropertyRecursor()\n\n // Just so that createPropertyRecursor() skips the index-based character\n // properties.\n try {\n this.isList = true\n return super.createPropertyRecursor()\n } finally {\n this.isList = false\n }\n }\n\n createRecursor () {\n return recursorUtils.unshift(super.createRecursor(), this.unboxed)\n }\n}\n\nconst DeserializedBoxedValue = object.DeserializedMixin(BoxedValue)\n","'use strict'\n\nconst typedArray = require('./typedArray')\n\nfunction describe (props) {\n return new DescribedDataViewValue(Object.assign({\n buffer: typedArray.getBuffer(props.value),\n // Set isArray and isList so the property recursor excludes the byte accessors\n isArray: true,\n isList: true,\n }, props))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedDataViewValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('DataViewValue')\nexports.tag = tag\n\n// DataViews can be represented as regular Buffers, allowing them to be treated\n// as TypedArrays for the purposes of this package.\nclass DataViewValue extends typedArray.TypedArrayValue {}\nObject.defineProperty(DataViewValue.prototype, 'tag', { value: tag })\n\nconst DescribedDataViewValue = typedArray.DescribedMixin(DataViewValue)\nconst DeserializedDataViewValue = typedArray.DeserializedMixin(DataViewValue)\n","'use strict';\nmodule.exports = date => {\n\tconst offset = (date || new Date()).getTimezoneOffset();\n\tconst absOffset = Math.abs(offset);\n\tconst hours = Math.floor(absOffset / 60);\n\tconst minutes = absOffset % 60;\n\tconst minutesOut = minutes > 0 ? ':' + ('0' + minutes).slice(-2) : '';\n\n\treturn (offset < 0 ? '+' : '-') + hours + minutesOut;\n};\n","'use strict';\nconst timeZone = require('time-zone');\n\nconst dateTime = options => {\n\toptions = Object.assign({\n\t\tdate: new Date(),\n\t\tlocal: true,\n\t\tshowTimeZone: false,\n\t\tshowMilliseconds: false\n\t}, options);\n\n\tlet {date} = options;\n\n\tif (options.local) {\n\t\t// Offset the date so it will return the correct value when getting the ISO string\n\t\tdate = new Date(date.getTime() - (date.getTimezoneOffset() * 60000));\n\t}\n\n\tlet end = '';\n\n\tif (options.showTimeZone) {\n\t\tend = ' UTC' + (options.local ? timeZone(date) : '');\n\t}\n\n\tif (options.showMilliseconds && date.getUTCMilliseconds() > 0) {\n\t\tend = ` ${date.getUTCMilliseconds()}ms${end}`;\n\t}\n\n\treturn date\n\t\t.toISOString()\n\t\t.replace(/T/, ' ')\n\t\t.replace(/\\..+/, end);\n};\n\nmodule.exports = dateTime;\n// TODO: Remove this for the next major release\nmodule.exports.default = dateTime;\n","'use strict'\n\nconst dateTime = require('date-time')\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\nconst object = require('./object')\n\nconst SHALLOW_EQUAL = constants.SHALLOW_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (props) {\n const date = props.value\n const invalid = isNaN(date.valueOf())\n return new DescribedDateValue(Object.assign({}, props, { invalid }))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedDateValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('DateValue')\nexports.tag = tag\n\nfunction formatDate (date) {\n // Always format in UTC. The local timezone shouldn't be used since it's most\n // likely different from that of CI servers.\n return dateTime({\n date,\n local: false,\n showTimeZone: true,\n showMilliseconds: true,\n })\n}\n\nclass DateValue extends object.ObjectValue {\n constructor (props) {\n super(props)\n this.invalid = props.invalid\n }\n\n compare (expected) {\n const result = super.compare(expected)\n if (result !== SHALLOW_EQUAL) return result\n\n return (this.invalid && expected.invalid) || Object.is(this.value.getTime(), expected.value.getTime())\n ? SHALLOW_EQUAL\n : UNEQUAL\n }\n\n formatShallow (theme, indent) {\n const string = formatUtils.formatCtorAndStringTag(theme, this) + ' ' +\n (this.invalid ? theme.date.invalid : formatUtils.wrap(theme.date.value, formatDate(this.value))) + ' ' +\n theme.object.openBracket\n\n return super.formatShallow(theme, indent).customize({\n finalize (innerLines) {\n return innerLines.isEmpty\n ? lineBuilder.single(string + theme.object.closeBracket)\n : lineBuilder.first(string)\n .concat(innerLines.withFirstPrefixed(indent.increase()).stripFlags())\n .append(lineBuilder.last(indent + theme.object.closeBracket))\n },\n\n maxDepth () {\n return lineBuilder.single(string + ' ' + theme.maxDepth + ' ' + theme.object.closeBracket)\n },\n })\n }\n\n serialize () {\n const iso = this.invalid ? null : this.value.toISOString()\n return [this.invalid, iso, super.serialize()]\n }\n}\nObject.defineProperty(DateValue.prototype, 'tag', { value: tag })\n\nconst DescribedDateValue = object.DescribedMixin(DateValue)\n\nclass DeserializedDateValue extends object.DeserializedMixin(DateValue) {\n constructor (state, recursor) {\n super(state[2], recursor)\n this.invalid = state[0]\n this.value = new Date(this.invalid ? NaN : state[1])\n }\n}\n","'use strict'\n\nfunction isEnumerable (obj, key) {\n const desc = Object.getOwnPropertyDescriptor(obj, key)\n return desc && desc.enumerable\n}\nmodule.exports = isEnumerable\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst isEnumerable = require('../isEnumerable')\nconst lineBuilder = require('../lineBuilder')\nconst NOOP_RECURSOR = require('../recursorUtils').NOOP_RECURSOR\nconst object = require('./object')\n\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (props) {\n const error = props.value\n return new DescribedErrorValue(Object.assign({\n nameIsEnumerable: isEnumerable(error, 'name'),\n name: error.name,\n messageIsEnumerable: isEnumerable(error, 'message'),\n message: error.message,\n }, props))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedErrorValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('ErrorValue')\nexports.tag = tag\n\nclass ErrorValue extends object.ObjectValue {\n constructor (props) {\n super(props)\n this.name = props.name\n }\n\n compare (expected) {\n return this.tag === expected.tag && this.name === expected.name\n ? super.compare(expected)\n : UNEQUAL\n }\n\n formatShallow (theme, indent) {\n const name = this.name || this.ctor\n\n let string = name\n ? formatUtils.wrap(theme.error.name, name)\n : formatUtils.wrap(theme.object.stringTag, this.stringTag)\n if (this.ctor && this.ctor !== name) {\n string += ' ' + formatUtils.wrap(theme.error.ctor, this.ctor)\n }\n if (this.stringTag && this.stringTag !== this.ctor && this.name && !this.name.includes(this.stringTag)) {\n string += ' ' + formatUtils.wrap(theme.object.secondaryStringTag, this.stringTag)\n }\n string += ' ' + theme.object.openBracket\n\n return super.formatShallow(theme, indent).customize({\n finalize (innerLines) {\n return innerLines.isEmpty\n ? lineBuilder.single(string + theme.object.closeBracket)\n : lineBuilder.first(string)\n .concat(innerLines.withFirstPrefixed(indent.increase()).stripFlags())\n .append(lineBuilder.last(indent + theme.object.closeBracket))\n },\n\n maxDepth () {\n return lineBuilder.single(string + ' ' + theme.maxDepth + ' ' + theme.object.closeBracket)\n },\n })\n }\n\n serialize () {\n return [this.name, super.serialize()]\n }\n}\nObject.defineProperty(ErrorValue.prototype, 'tag', { value: tag })\n\nclass DescribedErrorValue extends object.DescribedMixin(ErrorValue) {\n constructor (props) {\n super(props)\n this.nameIsEnumerable = props.nameIsEnumerable\n this.messageIsEnumerable = props.messageIsEnumerable\n this.message = props.message\n }\n\n createPropertyRecursor () {\n const recursor = super.createPropertyRecursor()\n\n let skipName = this.nameIsEnumerable\n let emitMessage = !this.messageIsEnumerable\n\n let size = recursor.size\n if (skipName && size > 0) {\n size -= 1\n }\n if (emitMessage) {\n size += 1\n }\n\n if (size === 0) return NOOP_RECURSOR\n\n let done = false\n const next = () => {\n if (done) return null\n\n const property = recursor.next()\n if (property) {\n if (skipName && property.key.value === 'name') {\n skipName = false\n return next()\n }\n return property\n }\n\n if (emitMessage) {\n emitMessage = false\n return this.describeProperty('message', this.describeAny(this.message))\n }\n\n done = true\n return null\n }\n\n return { size, next }\n }\n}\n\nclass DeserializedErrorValue extends object.DeserializedMixin(ErrorValue) {\n constructor (state, recursor) {\n super(state[1], recursor)\n this.name = state[0]\n }\n}\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst isEnumerable = require('../isEnumerable')\nconst lineBuilder = require('../lineBuilder')\nconst NOOP_RECURSOR = require('../recursorUtils').NOOP_RECURSOR\nconst object = require('./object')\n\nconst UNEQUAL = constants.UNEQUAL\nconst SHALLOW_EQUAL = constants.SHALLOW_EQUAL\n\nfunction describe (props) {\n const fn = props.value\n return new DescribedFunctionValue(Object.assign({\n nameIsEnumerable: isEnumerable(fn, 'name'),\n name: typeof fn.name === 'string' ? fn.name : null,\n }, props))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedFunctionValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('FunctionValue')\nexports.tag = tag\n\nclass FunctionValue extends object.ObjectValue {\n constructor (props) {\n super(props)\n this.name = props.name\n }\n\n formatShallow (theme, indent) {\n const string = formatUtils.wrap(theme.function.stringTag, this.stringTag) +\n (this.name ? ' ' + formatUtils.wrap(theme.function.name, this.name) : '') +\n ' ' + theme.object.openBracket\n\n return super.formatShallow(theme, indent).customize({\n finalize (innerLines) {\n return innerLines.isEmpty\n ? lineBuilder.single(string + theme.object.closeBracket)\n : lineBuilder.first(string)\n .concat(innerLines.withFirstPrefixed(indent.increase()).stripFlags())\n .append(lineBuilder.last(indent + theme.object.closeBracket))\n },\n\n maxDepth () {\n return lineBuilder.single(string + ' ' + theme.maxDepth + ' ' + theme.object.closeBracket)\n },\n })\n }\n}\nObject.defineProperty(FunctionValue.prototype, 'tag', { value: tag })\n\nclass DescribedFunctionValue extends object.DescribedMixin(FunctionValue) {\n constructor (props) {\n super(props)\n this.nameIsEnumerable = props.nameIsEnumerable\n }\n\n compare (expected) {\n if (this.tag !== expected.tag) return UNEQUAL\n if (this.name !== expected.name) return UNEQUAL\n if (this.value && expected.value && this.value !== expected.value) return UNEQUAL\n\n return super.compare(expected)\n }\n\n createPropertyRecursor () {\n const recursor = super.createPropertyRecursor()\n\n const skipName = this.nameIsEnumerable\n if (!skipName) return recursor\n\n let size = recursor.size\n if (skipName) {\n size -= 1\n }\n\n if (size === 0) return NOOP_RECURSOR\n\n const next = () => {\n const property = recursor.next()\n if (property) {\n if (skipName && property.key.value === 'name') {\n return next()\n }\n return property\n }\n\n return null\n }\n\n return { size, next }\n }\n\n serialize () {\n return [this.name, super.serialize()]\n }\n}\n\nclass DeserializedFunctionValue extends object.DeserializedMixin(FunctionValue) {\n constructor (state, recursor) {\n super(state[1], recursor)\n this.name = state[0]\n }\n\n compare (expected) {\n if (this.tag !== expected.tag) return UNEQUAL\n if (this.name !== expected.name) return UNEQUAL\n if (this.stringTag !== expected.stringTag) return UNEQUAL\n\n return SHALLOW_EQUAL\n }\n\n serialize () {\n return [this.name, super.serialize()]\n }\n}\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe () {\n return new GlobalValue()\n}\nexports.describe = describe\n\nexports.deserialize = describe\n\nconst tag = Symbol('GlobalValue')\nexports.tag = tag\n\nclass GlobalValue {\n compare (expected) {\n return this.tag === expected.tag\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n formatDeep (theme) {\n return lineBuilder.single(\n formatUtils.wrap(theme.global, 'Global') + ' ' + theme.object.openBracket + theme.object.closeBracket)\n }\n}\nObject.defineProperty(GlobalValue.prototype, 'isComplex', { value: true })\nObject.defineProperty(GlobalValue.prototype, 'tag', { value: tag })\n","'use strict'\n\nconst constants = require('../constants')\nconst recursorUtils = require('../recursorUtils')\nconst object = require('./object')\n\nconst SHALLOW_EQUAL = constants.SHALLOW_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (props) {\n return new DescribedMapValue(Object.assign({\n size: props.value.size,\n }, props))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedMapValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('MapValue')\nexports.tag = tag\n\nclass MapValue extends object.ObjectValue {\n constructor (props) {\n super(props)\n this.size = props.size\n }\n\n compare (expected) {\n const result = super.compare(expected)\n if (result !== SHALLOW_EQUAL) return result\n\n return this.size === expected.size\n ? SHALLOW_EQUAL\n : UNEQUAL\n }\n\n prepareDiff (expected) {\n // Maps should be compared, even if they have a different number of entries.\n return { compareResult: super.compare(expected) }\n }\n\n serialize () {\n return [this.size, super.serialize()]\n }\n}\nObject.defineProperty(MapValue.prototype, 'tag', { value: tag })\n\nclass DescribedMapValue extends object.DescribedMixin(MapValue) {\n createIterableRecursor () {\n const size = this.size\n if (size === 0) return recursorUtils.NOOP_RECURSOR\n\n let index = 0\n let entries\n const next = () => {\n if (index === size) return null\n\n if (!entries) {\n entries = Array.from(this.value)\n }\n\n const entry = entries[index++]\n return this.describeMapEntry(this.describeAny(entry[0]), this.describeAny(entry[1]))\n }\n\n return { size, next }\n }\n}\n\nclass DeserializedMapValue extends object.DeserializedMixin(MapValue) {\n constructor (state, recursor) {\n super(state[1], recursor)\n this.size = state[0]\n }\n}\n","'use strict'\n\nconst constants = require('../constants')\nconst object = require('./object')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (props) {\n return new DescribedPromiseValue(props)\n}\nexports.describe = describe\n\nfunction deserialize (props) {\n return new DeserializedPromiseValue(props)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('PromiseValue')\nexports.tag = tag\n\nclass PromiseValue extends object.ObjectValue {}\nObject.defineProperty(PromiseValue.prototype, 'tag', { value: tag })\n\nclass DescribedPromiseValue extends object.DescribedMixin(PromiseValue) {\n compare (expected) {\n // When comparing described promises, require them to be the exact same\n // object.\n return super.compare(expected) === DEEP_EQUAL\n ? DEEP_EQUAL\n : UNEQUAL\n }\n}\n\nclass DeserializedPromiseValue extends object.DeserializedMixin(PromiseValue) {\n compare (expected) {\n // Deserialized promises can never be compared using object references.\n return super.compare(expected)\n }\n}\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\nconst object = require('./object')\n\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (props) {\n const regexp = props.value\n return new DescribedRegexpValue(Object.assign({\n flags: getSortedFlags(regexp),\n source: regexp.source,\n }, props))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedRegexpValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('RegexpValue')\nexports.tag = tag\n\nfunction getSortedFlags (regexp) {\n const flags = regexp.flags || String(regexp).slice(regexp.source.length + 2)\n return flags.split('').sort().join('')\n}\n\nclass RegexpValue extends object.ObjectValue {\n constructor (props) {\n super(props)\n this.flags = props.flags\n this.source = props.source\n }\n\n compare (expected) {\n return this.tag === expected.tag && this.flags === expected.flags && this.source === expected.source\n ? super.compare(expected)\n : UNEQUAL\n }\n\n formatShallow (theme, indent) {\n const ctor = this.ctor || this.stringTag\n const regexp = formatUtils.wrap(theme.regexp.source, this.source) + formatUtils.wrap(theme.regexp.flags, this.flags)\n\n return super.formatShallow(theme, indent).customize({\n finalize: innerLines => {\n if (ctor === 'RegExp' && innerLines.isEmpty) return lineBuilder.single(regexp)\n\n const innerIndentation = indent.increase()\n const header = lineBuilder.first(formatUtils.formatCtorAndStringTag(theme, this) + ' ' + theme.object.openBracket)\n .concat(lineBuilder.line(innerIndentation + regexp))\n\n if (!innerLines.isEmpty) {\n header.append(lineBuilder.line(innerIndentation + theme.regexp.separator))\n header.append(innerLines.withFirstPrefixed(innerIndentation).stripFlags())\n }\n\n return header.append(lineBuilder.last(indent + theme.object.closeBracket))\n },\n\n maxDepth: () => {\n return lineBuilder.single(\n formatUtils.formatCtorAndStringTag(theme, this) + ' ' +\n theme.object.openBracket + ' ' +\n regexp + ' ' +\n theme.maxDepth + ' ' +\n theme.object.closeBracket)\n },\n })\n }\n\n serialize () {\n return [this.flags, this.source, super.serialize()]\n }\n}\nObject.defineProperty(RegexpValue.prototype, 'tag', { value: tag })\n\nconst DescribedRegexpValue = object.DescribedMixin(RegexpValue)\n\nclass DeserializedRegexpValue extends object.DeserializedMixin(RegexpValue) {\n constructor (state, recursor) {\n super(state[2], recursor)\n this.flags = state[0]\n this.source = state[1]\n }\n}\n","'use strict'\n\nconst constants = require('../constants')\nconst recursorUtils = require('../recursorUtils')\nconst object = require('./object')\n\nconst SHALLOW_EQUAL = constants.SHALLOW_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (props) {\n return new DescribedSetValue(Object.assign({\n size: props.value.size,\n }, props))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedSetValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('SetValue')\nexports.tag = tag\n\nclass SetValue extends object.ObjectValue {\n constructor (props) {\n super(props)\n this.size = props.size\n }\n\n compare (expected) {\n const result = super.compare(expected)\n if (result !== SHALLOW_EQUAL) return result\n\n return this.size === expected.size\n ? SHALLOW_EQUAL\n : UNEQUAL\n }\n\n prepareDiff (expected) {\n // Sets should be compared, even if they have a different number of items.\n return { compareResult: super.compare(expected) }\n }\n\n serialize () {\n return [this.size, super.serialize()]\n }\n}\nObject.defineProperty(SetValue.prototype, 'tag', { value: tag })\n\nclass DescribedSetValue extends object.DescribedMixin(SetValue) {\n createIterableRecursor () {\n const size = this.size\n if (size === 0) return recursorUtils.NOOP_RECURSOR\n\n let index = 0\n let members\n const next = () => {\n if (index === size) return null\n\n if (!members) {\n members = Array.from(this.value)\n }\n\n const value = members[index]\n return this.describeItem(index++, this.describeAny(value))\n }\n\n return { size, next }\n }\n}\n\nclass DeserializedSetValue extends object.DeserializedMixin(SetValue) {\n constructor (state, recursor) {\n super(state[1], recursor)\n this.size = state[0]\n }\n}\n","'use strict'\n\nconst hop = Object.prototype.hasOwnProperty\n\nfunction getCtor (stringTag, value) {\n if (value.constructor) {\n const name = value.constructor.name\n return typeof name === 'string' && name !== ''\n ? name\n : null\n }\n\n if (value.constructor === undefined) {\n if (stringTag !== 'Object' || value instanceof Object) return null\n\n // Values without a constructor, that do not inherit from `Object`, but are\n // tagged as objects, may come from `Object.create(null)`. Or they can come\n // from a different realm, e.g.:\n //\n // ```\n // require('vm').runInNewContext(`\n // const Foo = function () {}\n // Foo.prototype.constructor = undefined\n // return new Foo()\n // `)\n // ```\n //\n // Treat such objects as if they came from `Object.create(null)` (in the\n // current realm) only if they do not have inherited properties. This allows\n // these objects to be compared with object literals.\n //\n // This means `Object.create(null)` is not differentiated from `{}`.\n\n // Using `const` prevents Crankshaft optimizations\n for (var p in value) { // eslint-disable-line no-var\n if (!hop.call(value, p)) return null\n }\n return stringTag\n }\n\n return null\n}\nmodule.exports = getCtor\n","'use strict'\n\nconst ts = Object.prototype.toString\nfunction getStringTag (value) {\n return ts.call(value).slice(8, -1)\n}\n\nconst fts = Function.prototype.toString\nconst promiseCtorString = fts.call(Promise)\nconst isPromise = value => {\n if (!value.constructor) return false\n\n try {\n return fts.call(value.constructor) === promiseCtorString\n } catch {\n return false\n }\n}\n\nif (getStringTag(Promise.resolve()) === 'Promise') {\n module.exports = getStringTag\n} else {\n const getStringTagWithPromiseWorkaround = value => {\n const stringTag = getStringTag(value)\n return stringTag === 'Object' && isPromise(value)\n ? 'Promise'\n : stringTag\n }\n module.exports = getStringTagWithPromiseWorkaround\n}\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst recursorUtils = require('../recursorUtils')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describeComplex (index, value) {\n return new ComplexItem(index, value)\n}\nexports.describeComplex = describeComplex\n\nfunction deserializeComplex (index, recursor) {\n const value = recursor()\n return new ComplexItem(index, value)\n}\nexports.deserializeComplex = deserializeComplex\n\nfunction describePrimitive (index, value) {\n return new PrimitiveItem(index, value)\n}\nexports.describePrimitive = describePrimitive\n\nfunction deserializePrimitive (state) {\n const index = state[0]\n const value = state[1]\n return new PrimitiveItem(index, value)\n}\nexports.deserializePrimitive = deserializePrimitive\n\nconst complexTag = Symbol('ComplexItem')\nexports.complexTag = complexTag\n\nconst primitiveTag = Symbol('PrimitiveItem')\nexports.primitiveTag = primitiveTag\n\nclass ComplexItem {\n constructor (index, value) {\n this.index = index\n this.value = value\n }\n\n createRecursor () {\n return recursorUtils.singleValue(this.value)\n }\n\n compare (expected) {\n return expected.tag === complexTag && this.index === expected.index\n ? this.value.compare(expected.value)\n : UNEQUAL\n }\n\n formatShallow (theme, indent) {\n const increaseValueIndent = theme.item.increaseValueIndent === true\n return new formatUtils.SingleValueFormatter(theme, value => {\n if (typeof theme.item.customFormat === 'function') {\n return theme.item.customFormat(theme, indent, value)\n }\n\n return value.withLastPostfixed(theme.item.after)\n }, increaseValueIndent)\n }\n\n prepareDiff (expected, lhsRecursor, rhsRecursor, compareComplexShape, isCircular) {\n // Circular values cannot be compared. They must be treated as being unequal when diffing.\n if (isCircular(this.value) || isCircular(expected.value)) return { compareResult: UNEQUAL }\n\n // Try to line up this or remaining items with the expected items.\n const lhsFork = recursorUtils.fork(lhsRecursor)\n const rhsFork = recursorUtils.fork(rhsRecursor)\n const initialExpected = expected\n\n let expectedIsMissing = false\n while (!expectedIsMissing && expected !== null && expected.isItem === true) {\n if (expected.tag === complexTag) {\n expectedIsMissing = compareComplexShape(this.value, expected.value) !== UNEQUAL\n }\n\n expected = rhsFork.shared()\n }\n\n let actualIsExtraneous = false\n if (initialExpected.tag === complexTag) {\n let actual = this\n while (!actualIsExtraneous && actual !== null && actual.isItem === true) {\n if (actual.tag === complexTag) {\n actualIsExtraneous = compareComplexShape(actual.value, initialExpected.value) !== UNEQUAL\n }\n\n actual = lhsFork.shared()\n }\n } else if (initialExpected.tag === primitiveTag) {\n let actual = this\n while (!actualIsExtraneous && actual !== null && actual.isItem === true) {\n if (actual.tag === primitiveTag) {\n actualIsExtraneous = initialExpected.value.compare(actual.value) === DEEP_EQUAL\n }\n\n actual = lhsFork.shared()\n }\n }\n\n if (actualIsExtraneous && !expectedIsMissing) {\n return {\n actualIsExtraneous: true,\n lhsRecursor: lhsFork.recursor,\n rhsRecursor: recursorUtils.map(\n recursorUtils.unshift(rhsFork.recursor, initialExpected),\n next => {\n if (next.isItem !== true) return next\n\n next.index++\n return next\n }),\n }\n }\n\n if (expectedIsMissing && !actualIsExtraneous) {\n return {\n expectedIsMissing: true,\n lhsRecursor: recursorUtils.map(\n recursorUtils.unshift(lhsFork.recursor, this),\n next => {\n if (next.isItem !== true) return next\n\n next.index++\n return next\n }),\n rhsRecursor: rhsFork.recursor,\n }\n }\n\n const mustRecurse = this.tag === complexTag && initialExpected.tag === complexTag &&\n this.value.compare(initialExpected.value) !== UNEQUAL\n return {\n mustRecurse,\n isUnequal: !mustRecurse,\n lhsRecursor: lhsFork.recursor,\n rhsRecursor: rhsFork.recursor,\n }\n }\n\n serialize () {\n return this.index\n }\n}\nObject.defineProperty(ComplexItem.prototype, 'isItem', { value: true })\nObject.defineProperty(ComplexItem.prototype, 'tag', { value: complexTag })\n\nclass PrimitiveItem {\n constructor (index, value) {\n this.index = index\n this.value = value\n }\n\n compare (expected) {\n return expected.tag === primitiveTag && this.index === expected.index\n ? this.value.compare(expected.value)\n : UNEQUAL\n }\n\n formatDeep (theme, indent) {\n const increaseValueIndent = theme.item.increaseValueIndent === true\n const valueIndent = increaseValueIndent ? indent.increase() : indent\n\n // Since the value is formatted directly, modifiers are not applied. Apply\n // modifiers to the item descriptor instead.\n const formatted = this.value.formatDeep(theme, valueIndent)\n\n if (typeof theme.item.customFormat === 'function') {\n return theme.item.customFormat(theme, indent, formatted)\n }\n\n return formatted.withLastPostfixed(theme.item.after)\n }\n\n prepareDiff (expected, lhsRecursor, rhsRecursor, compareComplexShape, isCircular) {\n const compareResult = this.compare(expected)\n // Short-circuit when values are deeply equal.\n if (compareResult === DEEP_EQUAL) return { compareResult }\n\n // Short-circut when values can be diffed directly.\n if (\n expected.tag === primitiveTag &&\n this.value.tag === expected.value.tag && typeof this.value.diffDeep === 'function'\n ) {\n return { compareResult }\n }\n\n // Try to line up this or remaining items with the expected items.\n const rhsFork = recursorUtils.fork(rhsRecursor)\n const initialExpected = expected\n\n do {\n if (expected === null || expected.isItem !== true) {\n return {\n actualIsExtraneous: true,\n rhsRecursor: recursorUtils.map(\n recursorUtils.unshift(rhsFork.recursor, initialExpected),\n next => {\n if (next.isItem !== true) return next\n\n next.index++\n return next\n }),\n }\n }\n\n if (this.value.compare(expected.value) === DEEP_EQUAL) {\n return {\n expectedIsMissing: true,\n lhsRecursor: recursorUtils.map(\n recursorUtils.unshift(lhsRecursor, this),\n next => {\n if (next.isItem !== true) return next\n\n next.index++\n return next\n }),\n rhsRecursor: rhsFork.recursor,\n }\n }\n\n expected = rhsFork.shared()\n } while (true)\n }\n\n diffDeep (expected, theme, indent, invert) {\n // Verify a diff can be returned.\n if (this.tag !== expected.tag || typeof this.value.diffDeep !== 'function') return null\n\n const increaseValueIndent = theme.property.increaseValueIndent === true\n const valueIndent = increaseValueIndent ? indent.increase() : indent\n\n // Since the value is diffed directly, modifiers are not applied. Apply\n // modifiers to the item descriptor instead.\n const diff = this.value.diffDeep(expected.value, theme, valueIndent, invert)\n if (diff === null) return null\n\n if (typeof theme.item.customFormat === 'function') {\n return theme.item.customFormat(theme, indent, diff)\n }\n\n return diff.withLastPostfixed(theme.item.after)\n }\n\n serialize () {\n return [this.index, this.value]\n }\n}\nObject.defineProperty(PrimitiveItem.prototype, 'isItem', { value: true })\nObject.defineProperty(PrimitiveItem.prototype, 'tag', { value: primitiveTag })\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignMergeValue;\n","var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n","/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\nmodule.exports = safeGet;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\nmodule.exports = toPlainObject;\n","var assignMergeValue = require('./_assignMergeValue'),\n cloneBuffer = require('./_cloneBuffer'),\n cloneTypedArray = require('./_cloneTypedArray'),\n copyArray = require('./_copyArray'),\n initCloneObject = require('./_initCloneObject'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLikeObject = require('./isArrayLikeObject'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isPlainObject = require('./isPlainObject'),\n isTypedArray = require('./isTypedArray'),\n safeGet = require('./_safeGet'),\n toPlainObject = require('./toPlainObject');\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\nmodule.exports = baseMergeDeep;\n","var Stack = require('./_Stack'),\n assignMergeValue = require('./_assignMergeValue'),\n baseFor = require('./_baseFor'),\n baseMergeDeep = require('./_baseMergeDeep'),\n isObject = require('./isObject'),\n keysIn = require('./keysIn'),\n safeGet = require('./_safeGet');\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\nmodule.exports = baseMerge;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","var baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\nmodule.exports = createAssigner;\n","var baseMerge = require('./_baseMerge'),\n createAssigner = require('./_createAssigner');\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\nmodule.exports = merge;\n","// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\nconst RELEASE_TYPES = [\n 'major',\n 'premajor',\n 'minor',\n 'preminor',\n 'patch',\n 'prepatch',\n 'prerelease',\n]\n\nmodule.exports = {\n MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER,\n RELEASE_TYPES,\n SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 0b001,\n FLAG_LOOSE: 0b010,\n}\n","const debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","const {\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_LENGTH,\n} = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst safeRe = exports.safeRe = []\nconst src = exports.src = []\nconst t = exports.t = {}\nlet R = 0\n\nconst LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nconst makeSafeRegex = (value) => {\n for (const [token, max] of safeRegexReplacements) {\n value = value\n .split(`${token}*`).join(`${token}{0,${max}}`)\n .split(`${token}+`).join(`${token}{1,${max}}`)\n }\n return value\n}\n\nconst createToken = (name, value, isGlobal) => {\n const safe = makeSafeRegex(value)\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '\\\\d+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCE', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","// parse out just the options we care about\nconst looseOption = Object.freeze({ loose: true })\nconst emptyOpts = Object.freeze({ })\nconst parseOptions = options => {\n if (!options) {\n return emptyOpts\n }\n\n if (typeof options !== 'object') {\n return looseOption\n }\n\n return options\n}\nmodule.exports = parseOptions\n","const numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n","const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.join('.')}`\n }\n return this\n }\n}\n\nmodule.exports = SemVer\n","const SemVer = require('../classes/semver')\nconst parse = (version, options, throwErrors = false) => {\n if (version instanceof SemVer) {\n return version\n }\n try {\n return new SemVer(version, options)\n } catch (er) {\n if (!throwErrors) {\n return null\n }\n throw er\n }\n}\n\nmodule.exports = parse\n","const parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","const parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n","const SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier, identifierBase) => {\n if (typeof (options) === 'string') {\n identifierBase = identifier\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(\n version instanceof SemVer ? version.version : version,\n options\n ).inc(release, identifier, identifierBase).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n","const parse = require('./parse.js')\n\nconst diff = (version1, version2) => {\n const v1 = parse(version1, null, true)\n const v2 = parse(version2, null, true)\n const comparison = v1.compare(v2)\n\n if (comparison === 0) {\n return null\n }\n\n const v1Higher = comparison > 0\n const highVersion = v1Higher ? v1 : v2\n const lowVersion = v1Higher ? v2 : v1\n const highHasPre = !!highVersion.prerelease.length\n const lowHasPre = !!lowVersion.prerelease.length\n\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) {\n return 'major'\n }\n\n // Otherwise it can be determined by checking the high version\n\n if (highVersion.patch) {\n // anything higher than a patch bump would result in the wrong version\n return 'patch'\n }\n\n if (highVersion.minor) {\n // anything higher than a minor bump would result in the wrong version\n return 'minor'\n }\n\n // bumping major/minor/patch all have same result\n return 'major'\n }\n\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? 'pre' : ''\n\n if (v1.major !== v2.major) {\n return prefix + 'major'\n }\n\n if (v1.minor !== v2.minor) {\n return prefix + 'minor'\n }\n\n if (v1.patch !== v2.patch) {\n return prefix + 'patch'\n }\n\n // high and low are preleases\n return 'prerelease'\n}\n\nmodule.exports = diff\n","const SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","const SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n","const SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n","const parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n","const SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","const compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n","const compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n","const SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n","const compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n","const compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n","const compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","const compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","const compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","const compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","const compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","const compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","const eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n","const SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n let next\n while ((next = re[t.COERCERTL].exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n re[t.COERCERTL].lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options)\n}\nmodule.exports = coerce\n","'use strict'\nmodule.exports = function (Yallist) {\n Yallist.prototype[Symbol.iterator] = function* () {\n for (let walker = this.head; walker; walker = walker.next) {\n yield walker.value\n }\n }\n}\n","'use strict'\nmodule.exports = Yallist\n\nYallist.Node = Node\nYallist.create = Yallist\n\nfunction Yallist (list) {\n var self = this\n if (!(self instanceof Yallist)) {\n self = new Yallist()\n }\n\n self.tail = null\n self.head = null\n self.length = 0\n\n if (list && typeof list.forEach === 'function') {\n list.forEach(function (item) {\n self.push(item)\n })\n } else if (arguments.length > 0) {\n for (var i = 0, l = arguments.length; i < l; i++) {\n self.push(arguments[i])\n }\n }\n\n return self\n}\n\nYallist.prototype.removeNode = function (node) {\n if (node.list !== this) {\n throw new Error('removing node which does not belong to this list')\n }\n\n var next = node.next\n var prev = node.prev\n\n if (next) {\n next.prev = prev\n }\n\n if (prev) {\n prev.next = next\n }\n\n if (node === this.head) {\n this.head = next\n }\n if (node === this.tail) {\n this.tail = prev\n }\n\n node.list.length--\n node.next = null\n node.prev = null\n node.list = null\n\n return next\n}\n\nYallist.prototype.unshiftNode = function (node) {\n if (node === this.head) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var head = this.head\n node.list = this\n node.next = head\n if (head) {\n head.prev = node\n }\n\n this.head = node\n if (!this.tail) {\n this.tail = node\n }\n this.length++\n}\n\nYallist.prototype.pushNode = function (node) {\n if (node === this.tail) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var tail = this.tail\n node.list = this\n node.prev = tail\n if (tail) {\n tail.next = node\n }\n\n this.tail = node\n if (!this.head) {\n this.head = node\n }\n this.length++\n}\n\nYallist.prototype.push = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n push(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.unshift = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n unshift(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.pop = function () {\n if (!this.tail) {\n return undefined\n }\n\n var res = this.tail.value\n this.tail = this.tail.prev\n if (this.tail) {\n this.tail.next = null\n } else {\n this.head = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.shift = function () {\n if (!this.head) {\n return undefined\n }\n\n var res = this.head.value\n this.head = this.head.next\n if (this.head) {\n this.head.prev = null\n } else {\n this.tail = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.head, i = 0; walker !== null; i++) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.next\n }\n}\n\nYallist.prototype.forEachReverse = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.prev\n }\n}\n\nYallist.prototype.get = function (n) {\n for (var i = 0, walker = this.head; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.next\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.getReverse = function (n) {\n for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.prev\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.map = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.head; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.next\n }\n return res\n}\n\nYallist.prototype.mapReverse = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.tail; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.prev\n }\n return res\n}\n\nYallist.prototype.reduce = function (fn, initial) {\n var acc\n var walker = this.head\n if (arguments.length > 1) {\n acc = initial\n } else if (this.head) {\n walker = this.head.next\n acc = this.head.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = 0; walker !== null; i++) {\n acc = fn(acc, walker.value, i)\n walker = walker.next\n }\n\n return acc\n}\n\nYallist.prototype.reduceReverse = function (fn, initial) {\n var acc\n var walker = this.tail\n if (arguments.length > 1) {\n acc = initial\n } else if (this.tail) {\n walker = this.tail.prev\n acc = this.tail.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = this.length - 1; walker !== null; i--) {\n acc = fn(acc, walker.value, i)\n walker = walker.prev\n }\n\n return acc\n}\n\nYallist.prototype.toArray = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.head; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.next\n }\n return arr\n}\n\nYallist.prototype.toArrayReverse = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.tail; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.prev\n }\n return arr\n}\n\nYallist.prototype.slice = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = 0, walker = this.head; walker !== null && i < from; i++) {\n walker = walker.next\n }\n for (; walker !== null && i < to; i++, walker = walker.next) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.sliceReverse = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {\n walker = walker.prev\n }\n for (; walker !== null && i > from; i--, walker = walker.prev) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.splice = function (start, deleteCount, ...nodes) {\n if (start > this.length) {\n start = this.length - 1\n }\n if (start < 0) {\n start = this.length + start;\n }\n\n for (var i = 0, walker = this.head; walker !== null && i < start; i++) {\n walker = walker.next\n }\n\n var ret = []\n for (var i = 0; walker && i < deleteCount; i++) {\n ret.push(walker.value)\n walker = this.removeNode(walker)\n }\n if (walker === null) {\n walker = this.tail\n }\n\n if (walker !== this.head && walker !== this.tail) {\n walker = walker.prev\n }\n\n for (var i = 0; i < nodes.length; i++) {\n walker = insert(this, walker, nodes[i])\n }\n return ret;\n}\n\nYallist.prototype.reverse = function () {\n var head = this.head\n var tail = this.tail\n for (var walker = head; walker !== null; walker = walker.prev) {\n var p = walker.prev\n walker.prev = walker.next\n walker.next = p\n }\n this.head = tail\n this.tail = head\n return this\n}\n\nfunction insert (self, node, value) {\n var inserted = node === self.head ?\n new Node(value, null, node, self) :\n new Node(value, node, node.next, self)\n\n if (inserted.next === null) {\n self.tail = inserted\n }\n if (inserted.prev === null) {\n self.head = inserted\n }\n\n self.length++\n\n return inserted\n}\n\nfunction push (self, item) {\n self.tail = new Node(item, self.tail, null, self)\n if (!self.head) {\n self.head = self.tail\n }\n self.length++\n}\n\nfunction unshift (self, item) {\n self.head = new Node(item, null, self.head, self)\n if (!self.tail) {\n self.tail = self.head\n }\n self.length++\n}\n\nfunction Node (value, prev, next, list) {\n if (!(this instanceof Node)) {\n return new Node(value, prev, next, list)\n }\n\n this.list = list\n this.value = value\n\n if (prev) {\n prev.next = this\n this.prev = prev\n } else {\n this.prev = null\n }\n\n if (next) {\n next.prev = this\n this.next = next\n } else {\n this.next = null\n }\n}\n\ntry {\n // add if support for Symbol.iterator is present\n require('./iterator.js')(Yallist)\n} catch (er) {}\n","'use strict'\n\n// A linked list to keep track of recently-used-ness\nconst Yallist = require('yallist')\n\nconst MAX = Symbol('max')\nconst LENGTH = Symbol('length')\nconst LENGTH_CALCULATOR = Symbol('lengthCalculator')\nconst ALLOW_STALE = Symbol('allowStale')\nconst MAX_AGE = Symbol('maxAge')\nconst DISPOSE = Symbol('dispose')\nconst NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')\nconst LRU_LIST = Symbol('lruList')\nconst CACHE = Symbol('cache')\nconst UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')\n\nconst naiveLength = () => 1\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass LRUCache {\n constructor (options) {\n if (typeof options === 'number')\n options = { max: options }\n\n if (!options)\n options = {}\n\n if (options.max && (typeof options.max !== 'number' || options.max < 0))\n throw new TypeError('max must be a non-negative number')\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[MAX] = options.max || Infinity\n\n const lc = options.length || naiveLength\n this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc\n this[ALLOW_STALE] = options.stale || false\n if (options.maxAge && typeof options.maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false\n this.reset()\n }\n\n // resize the cache when the max changes.\n set max (mL) {\n if (typeof mL !== 'number' || mL < 0)\n throw new TypeError('max must be a non-negative number')\n\n this[MAX] = mL || Infinity\n trim(this)\n }\n get max () {\n return this[MAX]\n }\n\n set allowStale (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n }\n get allowStale () {\n return this[ALLOW_STALE]\n }\n\n set maxAge (mA) {\n if (typeof mA !== 'number')\n throw new TypeError('maxAge must be a non-negative number')\n\n this[MAX_AGE] = mA\n trim(this)\n }\n get maxAge () {\n return this[MAX_AGE]\n }\n\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator (lC) {\n if (typeof lC !== 'function')\n lC = naiveLength\n\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(hit => {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n })\n }\n trim(this)\n }\n get lengthCalculator () { return this[LENGTH_CALCULATOR] }\n\n get length () { return this[LENGTH] }\n get itemCount () { return this[LRU_LIST].length }\n\n rforEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].tail; walker !== null;) {\n const prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n }\n\n forEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].head; walker !== null;) {\n const next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n }\n\n keys () {\n return this[LRU_LIST].toArray().map(k => k.key)\n }\n\n values () {\n return this[LRU_LIST].toArray().map(k => k.value)\n }\n\n reset () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n }\n\n dump () {\n return this[LRU_LIST].map(hit =>\n isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter(h => h)\n }\n\n dumpLru () {\n return this[LRU_LIST]\n }\n\n set (key, value, maxAge) {\n maxAge = maxAge || this[MAX_AGE]\n\n if (maxAge && typeof maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n\n const now = maxAge ? Date.now() : 0\n const len = this[LENGTH_CALCULATOR](value, key)\n\n if (this[CACHE].has(key)) {\n if (len > this[MAX]) {\n del(this, this[CACHE].get(key))\n return false\n }\n\n const node = this[CACHE].get(key)\n const item = node.value\n\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[DISPOSE]) {\n if (!this[NO_DISPOSE_ON_SET])\n this[DISPOSE](key, item.value)\n }\n\n item.now = now\n item.maxAge = maxAge\n item.value = value\n this[LENGTH] += len - item.length\n item.length = len\n this.get(key)\n trim(this)\n return true\n }\n\n const hit = new Entry(key, value, len, now, maxAge)\n\n // oversized objects fall out of cache automatically.\n if (hit.length > this[MAX]) {\n if (this[DISPOSE])\n this[DISPOSE](key, value)\n\n return false\n }\n\n this[LENGTH] += hit.length\n this[LRU_LIST].unshift(hit)\n this[CACHE].set(key, this[LRU_LIST].head)\n trim(this)\n return true\n }\n\n has (key) {\n if (!this[CACHE].has(key)) return false\n const hit = this[CACHE].get(key).value\n return !isStale(this, hit)\n }\n\n get (key) {\n return get(this, key, true)\n }\n\n peek (key) {\n return get(this, key, false)\n }\n\n pop () {\n const node = this[LRU_LIST].tail\n if (!node)\n return null\n\n del(this, node)\n return node.value\n }\n\n del (key) {\n del(this, this[CACHE].get(key))\n }\n\n load (arr) {\n // reset the cache\n this.reset()\n\n const now = Date.now()\n // A previous serialized cache has the most recent items first\n for (let l = arr.length - 1; l >= 0; l--) {\n const hit = arr[l]\n const expiresAt = hit.e || 0\n if (expiresAt === 0)\n // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v)\n else {\n const maxAge = expiresAt - now\n // dont add already expired items\n if (maxAge > 0) {\n this.set(hit.k, hit.v, maxAge)\n }\n }\n }\n }\n\n prune () {\n this[CACHE].forEach((value, key) => get(this, key, false))\n }\n}\n\nconst get = (self, key, doUse) => {\n const node = self[CACHE].get(key)\n if (node) {\n const hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n return undefined\n } else {\n if (doUse) {\n if (self[UPDATE_AGE_ON_GET])\n node.value.now = Date.now()\n self[LRU_LIST].unshiftNode(node)\n }\n }\n return hit.value\n }\n}\n\nconst isStale = (self, hit) => {\n if (!hit || (!hit.maxAge && !self[MAX_AGE]))\n return false\n\n const diff = Date.now() - hit.now\n return hit.maxAge ? diff > hit.maxAge\n : self[MAX_AGE] && (diff > self[MAX_AGE])\n}\n\nconst trim = self => {\n if (self[LENGTH] > self[MAX]) {\n for (let walker = self[LRU_LIST].tail;\n self[LENGTH] > self[MAX] && walker !== null;) {\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev\n del(self, walker)\n walker = prev\n }\n }\n}\n\nconst del = (self, node) => {\n if (node) {\n const hit = node.value\n if (self[DISPOSE])\n self[DISPOSE](hit.key, hit.value)\n\n self[LENGTH] -= hit.length\n self[CACHE].delete(hit.key)\n self[LRU_LIST].removeNode(node)\n }\n}\n\nclass Entry {\n constructor (key, value, length, now, maxAge) {\n this.key = key\n this.value = value\n this.length = length\n this.now = now\n this.maxAge = maxAge || 0\n }\n}\n\nconst forEachStep = (self, fn, node, thisp) => {\n let hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n hit = undefined\n }\n if (hit)\n fn.call(thisp, hit.value, hit.key, self)\n}\n\nmodule.exports = LRUCache\n","// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.format()\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range\n .trim()\n .split(/\\s+/)\n .join(' ')\n\n // First, split on ||\n this.set = this.raw\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${this.raw}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.format()\n }\n\n format () {\n this.range = this.set\n .map((comps) => comps.join(' ').trim())\n .join('||')\n .trim()\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts =\n (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |\n (this.options.loose && FLAG_LOOSE)\n const memoKey = memoOpts + ':' + range\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n debug('tilde trim', range)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n debug('caret trim', range)\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\n\nmodule.exports = Range\n\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n safeRe: re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\nconst { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require('../internal/constants')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst replaceTildes = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceTilde(c, options))\n .join(' ')\n}\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst replaceCarets = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceCaret(c, options))\n .join(' ')\n}\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp\n .split(/\\s+/)\n .map((c) => replaceXRange(c, options))\n .join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp\n .trim()\n .replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp\n .trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return `${from} ${to}`.trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n","const ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n options = parseOptions(options)\n\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease &&\n (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {\n return false\n }\n if (!options.includePrerelease &&\n (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {\n return false\n }\n\n // Same direction increasing (> or >=)\n if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {\n return true\n }\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {\n return true\n }\n // same SemVer and both sides are inclusive (<= or >=)\n if (\n (this.semver.version === comp.semver.version) &&\n this.operator.includes('=') && comp.operator.includes('=')) {\n return true\n }\n // opposite directions less than\n if (cmp(this.semver, '<', comp.semver, options) &&\n this.operator.startsWith('>') && comp.operator.startsWith('<')) {\n return true\n }\n // opposite directions greater than\n if (cmp(this.semver, '>', comp.semver, options) &&\n this.operator.startsWith('<') && comp.operator.startsWith('>')) {\n return true\n }\n return false\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { safeRe: re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","const Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n","const Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin))) {\n minver = setMin\n }\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n","const Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n","const SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n","// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n","const outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n","const Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2, options)\n}\nmodule.exports = intersects\n","// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n","const Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]\nconst minimumVersion = [new Comparator('>=0.0.0')]\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = minimumVersionWithPreRelease\n } else {\n sub = minimumVersion\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = minimumVersion\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n","// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nconst constants = require('./internal/constants')\nconst SemVer = require('./classes/semver')\nconst identifiers = require('./internal/identifiers')\nconst parse = require('./functions/parse')\nconst valid = require('./functions/valid')\nconst clean = require('./functions/clean')\nconst inc = require('./functions/inc')\nconst diff = require('./functions/diff')\nconst major = require('./functions/major')\nconst minor = require('./functions/minor')\nconst patch = require('./functions/patch')\nconst prerelease = require('./functions/prerelease')\nconst compare = require('./functions/compare')\nconst rcompare = require('./functions/rcompare')\nconst compareLoose = require('./functions/compare-loose')\nconst compareBuild = require('./functions/compare-build')\nconst sort = require('./functions/sort')\nconst rsort = require('./functions/rsort')\nconst gt = require('./functions/gt')\nconst lt = require('./functions/lt')\nconst eq = require('./functions/eq')\nconst neq = require('./functions/neq')\nconst gte = require('./functions/gte')\nconst lte = require('./functions/lte')\nconst cmp = require('./functions/cmp')\nconst coerce = require('./functions/coerce')\nconst Comparator = require('./classes/comparator')\nconst Range = require('./classes/range')\nconst satisfies = require('./functions/satisfies')\nconst toComparators = require('./ranges/to-comparators')\nconst maxSatisfying = require('./ranges/max-satisfying')\nconst minSatisfying = require('./ranges/min-satisfying')\nconst minVersion = require('./ranges/min-version')\nconst validRange = require('./ranges/valid')\nconst outside = require('./ranges/outside')\nconst gtr = require('./ranges/gtr')\nconst ltr = require('./ranges/ltr')\nconst intersects = require('./ranges/intersects')\nconst simplifyRange = require('./ranges/simplify')\nconst subset = require('./ranges/subset')\nmodule.exports = {\n parse,\n valid,\n clean,\n inc,\n diff,\n major,\n minor,\n patch,\n prerelease,\n compare,\n rcompare,\n compareLoose,\n compareBuild,\n sort,\n rsort,\n gt,\n lt,\n eq,\n neq,\n gte,\n lte,\n cmp,\n coerce,\n Comparator,\n Range,\n satisfies,\n toComparators,\n maxSatisfying,\n minSatisfying,\n minVersion,\n validRange,\n outside,\n gtr,\n ltr,\n intersects,\n simplifyRange,\n subset,\n SemVer,\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: constants.RELEASE_TYPES,\n compareIdentifiers: identifiers.compareIdentifiers,\n rcompareIdentifiers: identifiers.rcompareIdentifiers,\n}\n","module.exports = function (string) {\n return ('' + string).replace(/[\"'\\\\\\n\\r\\u2028\\u2029]/g, function (character) {\n // Escape all characters not included in SingleStringCharacters and\n // DoubleStringCharacters on\n // http://www.ecma-international.org/ecma-262/5.1/#sec-7.8.4\n switch (character) {\n case '\"':\n case \"'\":\n case '\\\\':\n return '\\\\' + character\n // Four possible LineTerminator characters need to be escaped:\n case '\\n':\n return '\\\\n'\n case '\\r':\n return '\\\\r'\n case '\\u2028':\n return '\\\\u2028'\n case '\\u2029':\n return '\\\\u2029'\n }\n })\n}\n","'use strict'\n\n// https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Symbol#Well-known_symbols\nconst WELL_KNOWN = new Map([\n [Symbol.iterator, 'Symbol.iterator'],\n [Symbol.asyncIterator, 'Symbol.asyncIterator'],\n [Symbol.match, 'Symbol.match'],\n [Symbol.replace, 'Symbol.replace'],\n [Symbol.search, 'Symbol.search'],\n [Symbol.split, 'Symbol.split'],\n [Symbol.hasInstance, 'Symbol.hasInstance'],\n [Symbol.isConcatSpreadable, 'Symbol.isConcatSpreadable'],\n [Symbol.unscopables, 'Symbol.unscopables'],\n [Symbol.species, 'Symbol.species'],\n [Symbol.toPrimitive, 'Symbol.toPrimitive'],\n [Symbol.toStringTag, 'Symbol.toStringTag']\n].filter(entry => entry[0]))\n\nexports.isWellKnown = symbol => WELL_KNOWN.has(symbol)\nexports.getLabel = symbol => WELL_KNOWN.get(symbol)\n","'use strict'\n\nconst stringEscape = require('js-string-escape')\nconst wellKnownSymbols = require('well-known-symbols')\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (value) {\n let stringCompare = null\n\n const key = Symbol.keyFor(value)\n if (key !== undefined) {\n stringCompare = `Symbol.for(${stringEscape(key)})`\n } else if (wellKnownSymbols.isWellKnown(value)) {\n stringCompare = wellKnownSymbols.getLabel(value)\n }\n\n return new SymbolValue({\n stringCompare,\n value,\n })\n}\nexports.describe = describe\n\nfunction deserialize (state) {\n const stringCompare = state[0]\n const string = state[1] || state[0]\n\n return new DeserializedSymbolValue({\n string,\n stringCompare,\n value: null,\n })\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('SymbolValue')\nexports.tag = tag\n\nclass SymbolValue {\n constructor (props) {\n this.stringCompare = props.stringCompare\n this.value = props.value\n }\n\n compare (expected) {\n if (expected.tag !== tag) return UNEQUAL\n\n if (this.stringCompare !== null) {\n return this.stringCompare === expected.stringCompare\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n return this.value === expected.value\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n formatString () {\n if (this.stringCompare !== null) return this.stringCompare\n return stringEscape(this.value.toString())\n }\n\n formatDeep (theme) {\n return lineBuilder.single(formatUtils.wrap(theme.symbol, this.formatString()))\n }\n\n formatAsKey (theme) {\n return formatUtils.wrap(theme.property.keyBracket, formatUtils.wrap(theme.symbol, this.formatString()))\n }\n\n serialize () {\n const string = this.formatString()\n return this.stringCompare === string\n ? [this.stringCompare]\n : [this.stringCompare, string]\n }\n}\nObject.defineProperty(SymbolValue.prototype, 'isPrimitive', { value: true })\nObject.defineProperty(SymbolValue.prototype, 'tag', { value: tag })\n\nclass DeserializedSymbolValue extends SymbolValue {\n constructor (props) {\n super(props)\n this.string = props.string\n }\n\n compare (expected) {\n if (expected.tag !== tag) return UNEQUAL\n\n if (this.stringCompare !== null) {\n return this.stringCompare === expected.stringCompare\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n // Symbols that are not in the global symbol registry, and are not\n // well-known, cannot be compared when deserialized. Treat symbols\n // as equal if they are formatted the same.\n return this.string === expected.formatString()\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n formatString () {\n return this.string\n }\n}\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst symbolPrimitive = require('../primitiveValues/symbol').tag\nconst recursorUtils = require('../recursorUtils')\n\nconst AMBIGUOUS = constants.AMBIGUOUS\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describeComplex (key, value) {\n return new ComplexProperty(key, value)\n}\nexports.describeComplex = describeComplex\n\nfunction deserializeComplex (key, recursor) {\n const value = recursor()\n return new ComplexProperty(key, value)\n}\nexports.deserializeComplex = deserializeComplex\n\nfunction describePrimitive (key, value) {\n return new PrimitiveProperty(key, value)\n}\nexports.describePrimitive = describePrimitive\n\nfunction deserializePrimitive (state) {\n const key = state[0]\n const value = state[1]\n return new PrimitiveProperty(key, value)\n}\nexports.deserializePrimitive = deserializePrimitive\n\nconst complexTag = Symbol('ComplexProperty')\nexports.complexTag = complexTag\n\nconst primitiveTag = Symbol('PrimitiveProperty')\nexports.primitiveTag = primitiveTag\n\nclass Property {\n constructor (key) {\n this.key = key\n }\n\n compareKeys (expected) {\n const result = this.key.compare(expected.key)\n // Return AMBIGUOUS if symbol keys are unequal. It's likely that properties\n // are compared in order of declaration, which is not the desired strategy.\n // Returning AMBIGUOUS allows compare() and diff() to recognize this\n // situation and sort the symbol properties before comparing them.\n return result === UNEQUAL && this.key.tag === symbolPrimitive && expected.key.tag === symbolPrimitive\n ? AMBIGUOUS\n : result\n }\n\n prepareDiff (expected, lhsRecursor, rhsRecursor, compareComplexShape, isCircular) {\n // Circular values cannot be compared. They must be treated as being unequal when diffing.\n if (isCircular(this.value) || isCircular(expected.value)) return { compareResult: UNEQUAL }\n\n // Try to line up this or remaining properties with the expected properties.\n const rhsFork = recursorUtils.fork(rhsRecursor)\n const initialExpected = expected\n\n do {\n if (expected === null || expected.isProperty !== true) {\n return {\n actualIsExtraneous: true,\n rhsRecursor: recursorUtils.unshift(rhsFork.recursor, initialExpected),\n }\n } else if (this.key.compare(expected.key) === DEEP_EQUAL) {\n if (expected === initialExpected) {\n return null\n } else {\n return {\n expectedIsMissing: true,\n lhsRecursor: recursorUtils.unshift(lhsRecursor, this),\n rhsRecursor: rhsFork.recursor,\n }\n }\n }\n\n expected = rhsFork.shared()\n } while (true)\n }\n}\nObject.defineProperty(Property.prototype, 'isProperty', { value: true })\n\nclass ComplexProperty extends Property {\n constructor (key, value) {\n super(key)\n this.value = value\n }\n\n createRecursor () {\n return recursorUtils.singleValue(this.value)\n }\n\n compare (expected) {\n if (expected.isProperty !== true) return UNEQUAL\n\n const keyResult = this.compareKeys(expected)\n if (keyResult !== DEEP_EQUAL) return keyResult\n\n return this.tag === expected.tag\n ? this.value.compare(expected.value)\n : UNEQUAL\n }\n\n formatShallow (theme, indent) {\n const increaseValueIndent = theme.property.increaseValueIndent === true\n return new formatUtils.SingleValueFormatter(theme, value => {\n if (typeof theme.property.customFormat === 'function') {\n return theme.property.customFormat(theme, indent, this.key, value)\n }\n\n return value\n .withFirstPrefixed(this.key.formatAsKey(theme) + theme.property.separator)\n .withLastPostfixed(theme.property.after)\n }, increaseValueIndent)\n }\n\n serialize () {\n return this.key\n }\n}\nObject.defineProperty(ComplexProperty.prototype, 'tag', { value: complexTag })\n\nclass PrimitiveProperty extends Property {\n constructor (key, value) {\n super(key)\n this.value = value\n }\n\n compare (expected) {\n if (expected.isProperty !== true) return UNEQUAL\n\n const keyResult = this.compareKeys(expected)\n if (keyResult !== DEEP_EQUAL) return keyResult\n\n return this.tag !== expected.tag\n ? UNEQUAL\n : this.value.compare(expected.value)\n }\n\n formatDeep (theme, indent) {\n const increaseValueIndent = theme.property.increaseValueIndent === true\n const valueIndent = increaseValueIndent ? indent.increase() : indent\n\n // Since the key and value are formatted directly, modifiers are not\n // applied. Apply modifiers to the property descriptor instead.\n const formatted = this.value.formatDeep(theme, valueIndent)\n\n if (typeof theme.property.customFormat === 'function') {\n return theme.property.customFormat(theme, indent, this.key, formatted)\n }\n\n return formatted\n .withFirstPrefixed(this.key.formatAsKey(theme) + theme.property.separator)\n .withLastPostfixed(theme.property.after)\n }\n\n diffDeep (expected, theme, indent, invert) {\n // Verify a diff can be returned.\n if (this.tag !== expected.tag || typeof this.value.diffDeep !== 'function') return null\n // Only use this logic to diff values when the keys are the same.\n if (this.key.compare(expected.key) !== DEEP_EQUAL) return null\n\n const increaseValueIndent = theme.property.increaseValueIndent === true\n const valueIndent = increaseValueIndent ? indent.increase() : indent\n\n // Since the key and value are diffed directly, modifiers are not\n // applied. Apply modifiers to the property descriptor instead.\n const diff = this.value.diffDeep(expected.value, theme, valueIndent, invert)\n if (diff === null) return null\n\n if (typeof theme.property.customFormat === 'function') {\n return theme.property.customFormat(theme, indent, this.key, diff)\n }\n\n return diff\n .withFirstPrefixed(this.key.formatAsKey(theme) + theme.property.separator)\n .withLastPostfixed(theme.property.after)\n }\n\n serialize () {\n return [this.key, this.value]\n }\n}\nObject.defineProperty(PrimitiveProperty.prototype, 'tag', { value: primitiveTag })\n","'use strict'\n\nconst semver = require('semver')\n\nconst pkg = require('../package.json')\nconst object = require('./complexValues/object')\nconst constants = require('./constants')\nconst formatUtils = require('./formatUtils')\nconst lineBuilder = require('./lineBuilder')\nconst itemDescriptor = require('./metaDescriptors/item')\nconst propertyDescriptor = require('./metaDescriptors/property')\nconst stringDescriptor = require('./primitiveValues/string')\nconst recursorUtils = require('./recursorUtils')\nconst themeUtils = require('./themeUtils')\n\nconst API_VERSION = 1\nconst CONCORDANCE_VERSION = pkg.version\n\nconst descriptorRegistry = new Map()\nconst registry = new Map()\n\nclass PluginError extends Error {\n constructor (message, plugin) {\n super(message)\n this.name = 'PluginError'\n this.plugin = plugin\n }\n}\n\nclass PluginTypeError extends TypeError {\n constructor (message, plugin) {\n super(message)\n this.name = 'PluginTypeError'\n this.plugin = plugin\n }\n}\n\nclass UnsupportedApiError extends PluginError {\n constructor (plugin) {\n super('Plugin requires an unsupported API version', plugin)\n this.name = 'UnsupportedApiError'\n }\n}\n\nclass UnsupportedError extends PluginError {\n constructor (plugin) {\n super('Plugin does not support this version of Concordance', plugin)\n this.name = 'UnsupportedError'\n }\n}\n\nclass DuplicateDescriptorTagError extends PluginError {\n constructor (tag, plugin) {\n super(`Could not add descriptor: tag ${String(tag)} has already been registered`, plugin)\n this.name = 'DuplicateDescriptorTagError'\n this.tag = tag\n }\n}\n\nclass DuplicateDescriptorIdError extends PluginError {\n constructor (id, plugin) {\n const printed = typeof id === 'number'\n ? `0x${id.toString(16).toUpperCase()}`\n : String(id)\n super(`Could not add descriptor: id ${printed} has already been registered`, plugin)\n this.name = 'DuplicateDescriptorIdError'\n this.id = id\n }\n}\n\nfunction verify (plugin) {\n if (typeof plugin.name !== 'string' || !plugin.name) {\n throw new PluginTypeError('Plugin must have a `name`', plugin)\n }\n\n if (plugin.apiVersion !== API_VERSION) {\n throw new UnsupportedApiError(plugin)\n }\n\n if ('minimalConcordanceVersion' in plugin) {\n if (!semver.valid(plugin.minimalConcordanceVersion)) {\n throw new PluginTypeError('If specified, `minimalConcordanceVersion` must be a valid SemVer version', plugin)\n }\n\n const range = `>=${plugin.minimalConcordanceVersion}`\n if (!semver.satisfies(CONCORDANCE_VERSION, range)) {\n throw new UnsupportedError(plugin)\n }\n }\n}\n\n// Selectively expose descriptor tags.\nconst publicDescriptorTags = Object.freeze({\n complexItem: itemDescriptor.complexTag,\n primitiveItem: itemDescriptor.primitiveTag,\n primitiveProperty: propertyDescriptor.primitiveTag,\n string: stringDescriptor.tag,\n})\n\n// Don't expose `setDefaultGutter()`.\nconst publicLineBuilder = Object.freeze({\n buffer: lineBuilder.buffer,\n first: lineBuilder.first,\n last: lineBuilder.last,\n line: lineBuilder.line,\n single: lineBuilder.single,\n actual: Object.freeze({\n buffer: lineBuilder.actual.buffer,\n first: lineBuilder.actual.first,\n last: lineBuilder.actual.last,\n line: lineBuilder.actual.line,\n single: lineBuilder.actual.single,\n }),\n expected: Object.freeze({\n buffer: lineBuilder.expected.buffer,\n first: lineBuilder.expected.first,\n last: lineBuilder.expected.last,\n line: lineBuilder.expected.line,\n single: lineBuilder.expected.single,\n }),\n})\n\nfunction modifyTheme (descriptor, modifier) {\n themeUtils.addModifier(descriptor, modifier)\n return descriptor\n}\n\nfunction add (plugin) {\n verify(plugin)\n\n const name = plugin.name\n if (registry.has(name)) return registry.get(name)\n\n const id2deserialize = new Map()\n const tag2id = new Map()\n const addDescriptor = (id, tag, deserialize) => {\n if (id2deserialize.has(id)) throw new DuplicateDescriptorIdError(id, plugin)\n if (descriptorRegistry.has(tag) || tag2id.has(tag)) throw new DuplicateDescriptorTagError(tag, plugin)\n\n id2deserialize.set(id, deserialize)\n tag2id.set(tag, id)\n }\n\n const tryDescribeValue = plugin.register({\n // Concordance makes assumptions about when AMBIGUOUS occurs. Do not expose\n // it to plugins.\n UNEQUAL: constants.UNEQUAL,\n SHALLOW_EQUAL: constants.SHALLOW_EQUAL,\n DEEP_EQUAL: constants.DEEP_EQUAL,\n\n ObjectValue: object.ObjectValue,\n DescribedMixin: object.DescribedMixin,\n DeserializedMixin: object.DeserializedMixin,\n\n addDescriptor,\n applyThemeModifiers: themeUtils.applyModifiers,\n descriptorTags: publicDescriptorTags,\n lineBuilder: publicLineBuilder,\n mapRecursor: recursorUtils.map,\n modifyTheme,\n wrapFromTheme: formatUtils.wrap,\n })\n\n const registered = {\n id2deserialize,\n serializerVersion: plugin.serializerVersion,\n name,\n tag2id,\n theme: plugin.theme || {},\n tryDescribeValue,\n }\n\n registry.set(name, registered)\n for (const tag of tag2id.keys()) {\n descriptorRegistry.set(tag, registered)\n }\n\n return registered\n}\nexports.add = add\n\nfunction getDeserializers (plugins) {\n return plugins.map(plugin => {\n const registered = add(plugin)\n return {\n id2deserialize: registered.id2deserialize,\n name: registered.name,\n serializerVersion: registered.serializerVersion,\n }\n })\n}\nexports.getDeserializers = getDeserializers\n\nfunction getThemes (plugins) {\n return plugins.map(plugin => {\n const registered = add(plugin)\n return {\n name: registered.name,\n theme: registered.theme,\n }\n })\n}\nexports.getThemes = getThemes\n\nfunction getTryDescribeValues (plugins) {\n return plugins.map(plugin => add(plugin).tryDescribeValue)\n}\nexports.getTryDescribeValues = getTryDescribeValues\n\nfunction resolveDescriptorRef (tag) {\n if (!descriptorRegistry.has(tag)) return null\n\n const registered = descriptorRegistry.get(tag)\n return {\n id: registered.tag2id.get(tag),\n name: registered.name,\n serialization: {\n serializerVersion: registered.serializerVersion,\n },\n }\n}\nexports.resolveDescriptorRef = resolveDescriptorRef\n","'use strict'\n\nconst cloneDeep = require('lodash/cloneDeep')\nconst merge = require('lodash/merge')\n\nconst pluginRegistry = require('./pluginRegistry')\n\nfunction freezeTheme (theme) {\n const queue = [theme]\n while (queue.length > 0) {\n const object = queue.shift()\n Object.freeze(object)\n\n for (const key of Object.keys(object)) {\n const value = object[key]\n if (value !== null && typeof value === 'object') {\n queue.push(value)\n }\n }\n }\n\n return theme\n}\n\nconst defaultTheme = freezeTheme({\n bigInt: { open: '', close: '' },\n boolean: { open: '', close: '' },\n circular: '[Circular]',\n date: {\n invalid: 'invalid',\n value: { open: '', close: '' },\n },\n diffGutters: {\n actual: '- ',\n expected: '+ ',\n padding: ' ',\n },\n error: {\n ctor: { open: '(', close: ')' },\n name: { open: '', close: '' },\n },\n function: {\n name: { open: '', close: '' },\n stringTag: { open: '', close: '' },\n },\n global: { open: '', close: '' },\n item: {\n after: ',',\n customFormat: null,\n increaseValueIndent: false,\n },\n list: { openBracket: '[', closeBracket: ']' },\n mapEntry: {\n after: ',',\n separator: ' => ',\n },\n maxDepth: '…',\n null: { open: '', close: '' },\n number: { open: '', close: '' },\n object: {\n openBracket: '{',\n closeBracket: '}',\n ctor: { open: '', close: '' },\n stringTag: { open: '@', close: '' },\n secondaryStringTag: { open: '@', close: '' },\n },\n property: {\n after: ',',\n customFormat: null,\n keyBracket: { open: '[', close: ']' },\n separator: ': ',\n increaseValueIndent: false,\n },\n regexp: {\n source: { open: '/', close: '/' },\n flags: { open: '', close: '' },\n separator: '---',\n },\n stats: { separator: '---' },\n string: {\n open: '',\n close: '',\n line: { open: \"'\", close: \"'\", escapeQuote: \"'\" },\n multiline: { start: '`', end: '`', escapeQuote: '`' },\n controlPicture: { open: '', close: '' },\n diff: {\n insert: { open: '', close: '' },\n delete: { open: '', close: '' },\n equal: { open: '', close: '' },\n insertLine: { open: '', close: '' },\n deleteLine: { open: '', close: '' },\n },\n },\n symbol: { open: '', close: '' },\n typedArray: {\n bytes: { open: '', close: '' },\n },\n undefined: { open: '', close: '' },\n})\n\nconst pluginRefs = new Map()\npluginRefs.count = 0\nconst normalizedPluginThemes = new Map()\nfunction normalizePlugins (plugins) {\n if (!Array.isArray(plugins) || plugins.length === 0) return null\n\n const refs = []\n const themes = []\n for (const fromPlugin of pluginRegistry.getThemes(plugins)) {\n if (!pluginRefs.has(fromPlugin.name)) {\n pluginRefs.set(fromPlugin.name, pluginRefs.count++)\n }\n\n refs.push(pluginRefs.get(fromPlugin.name))\n themes.push(fromPlugin.theme)\n }\n\n const ref = refs.join('.')\n if (normalizedPluginThemes.has(ref)) {\n return {\n ref,\n theme: normalizedPluginThemes.get(ref),\n }\n }\n\n const theme = freezeTheme(themes.reduce((acc, pluginTheme) => {\n return merge(acc, pluginTheme)\n }, cloneDeep(defaultTheme)))\n normalizedPluginThemes.set(ref, theme)\n return { ref, theme }\n}\n\nconst normalizedCache = new WeakMap()\nfunction normalize (options) {\n options = Object.assign({ plugins: [], theme: null }, options)\n\n const normalizedPlugins = normalizePlugins(options.plugins)\n if (!options.theme) {\n return normalizedPlugins ? normalizedPlugins.theme : defaultTheme\n }\n\n const entry = normalizedCache.get(options.theme) || { theme: null, withPlugins: new Map() }\n if (!normalizedCache.has(options.theme)) normalizedCache.set(options.theme, entry)\n\n if (normalizedPlugins) {\n if (entry.withPlugins.has(normalizedPlugins.ref)) {\n return entry.withPlugins.get(normalizedPlugins.ref)\n }\n\n const theme = freezeTheme(merge(cloneDeep(normalizedPlugins.theme), options.theme))\n entry.withPlugins.set(normalizedPlugins.ref, theme)\n return theme\n }\n\n if (!entry.theme) {\n entry.theme = freezeTheme(merge(cloneDeep(defaultTheme), options.theme))\n }\n return entry.theme\n}\nexports.normalize = normalize\n\nconst modifiers = new WeakMap()\nfunction addModifier (descriptor, modifier) {\n if (modifiers.has(descriptor)) {\n modifiers.get(descriptor).add(modifier)\n } else {\n modifiers.set(descriptor, new Set([modifier]))\n }\n}\nexports.addModifier = addModifier\n\nconst modifierCache = new WeakMap()\nconst originalCache = new WeakMap()\nfunction applyModifiers (descriptor, theme) {\n if (!modifiers.has(descriptor)) return theme\n\n return Array.from(modifiers.get(descriptor)).reduce((prev, modifier) => {\n const cache = modifierCache.get(modifier) || new WeakMap()\n if (!modifierCache.has(modifier)) modifierCache.set(modifier, cache)\n\n if (cache.has(prev)) return cache.get(prev)\n\n const modifiedTheme = cloneDeep(prev)\n modifier(modifiedTheme)\n freezeTheme(modifiedTheme)\n cache.set(prev, modifiedTheme)\n originalCache.set(modifiedTheme, theme)\n return modifiedTheme\n }, theme)\n}\nexports.applyModifiers = applyModifiers\n\nfunction applyModifiersToOriginal (descriptor, theme) {\n return applyModifiers(descriptor, originalCache.get(theme) || theme)\n}\nexports.applyModifiersToOriginal = applyModifiersToOriginal\n","'use strict'\n\nconst constants = require('../constants')\nconst lineBuilder = require('../lineBuilder')\nconst recursorUtils = require('../recursorUtils')\nconst themeUtils = require('../themeUtils')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\nconst SHALLOW_EQUAL = constants.SHALLOW_EQUAL\n\nfunction describe (keyDescriptor, valueDescriptor) {\n const keyIsPrimitive = keyDescriptor.isPrimitive === true\n const valueIsPrimitive = valueDescriptor.isPrimitive === true\n\n return new MapEntry(keyDescriptor, valueDescriptor, keyIsPrimitive, valueIsPrimitive)\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n const keyIsPrimitive = state[0]\n const valueIsPrimitive = state[1]\n const keyDescriptor = recursor()\n const valueDescriptor = recursor()\n\n return new MapEntry(keyDescriptor, valueDescriptor, keyIsPrimitive, valueIsPrimitive)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('MapEntry')\nexports.tag = tag\n\nfunction mergeWithKey (theme, key, values) {\n const lines = lineBuilder.buffer()\n const keyRemainder = lineBuilder.buffer()\n for (const line of key) {\n if (!line.isLast && !line.hasGutter) {\n lines.append(line)\n } else {\n keyRemainder.append(line)\n }\n }\n for (const value of values) {\n lines.append(keyRemainder.mergeWithInfix(theme.mapEntry.separator, value).withLastPostfixed(theme.mapEntry.after))\n }\n return lines\n}\n\nclass MapEntry {\n constructor (key, value, keyIsPrimitive, valueIsPrimitive) {\n this.key = key\n this.value = value\n this.keyIsPrimitive = keyIsPrimitive\n this.valueIsPrimitive = valueIsPrimitive\n }\n\n createRecursor () {\n let emitKey = true\n let emitValue = true\n\n return () => {\n if (emitKey) {\n emitKey = false\n return this.key\n }\n\n if (emitValue) {\n emitValue = false\n return this.value\n }\n\n return null\n }\n }\n\n compare (expected) {\n if (this.tag !== expected.tag) return UNEQUAL\n if (this.keyIsPrimitive !== expected.keyIsPrimitive) return UNEQUAL\n if (this.valueIsPrimitive !== expected.valueIsPrimitive) return UNEQUAL\n\n if (!this.keyIsPrimitive) return SHALLOW_EQUAL\n\n const keyResult = this.key.compare(expected.key)\n if (keyResult !== DEEP_EQUAL) return keyResult\n\n if (!this.valueIsPrimitive) return SHALLOW_EQUAL\n return this.value.compare(expected.value)\n }\n\n formatDeep (theme, indent) {\n // Verify the map entry can be formatted directly.\n if (!this.keyIsPrimitive || typeof this.value.formatDeep !== 'function') return null\n\n // Since formatShallow() would result in theme modifiers being applied\n // before the key and value are formatted, do the same here.\n const value = this.value.formatDeep(themeUtils.applyModifiersToOriginal(this.value, theme), indent)\n if (value === null) return null\n\n const key = this.key.formatDeep(themeUtils.applyModifiersToOriginal(this.key, theme), indent)\n return mergeWithKey(theme, key, [value])\n }\n\n formatShallow (theme, indent) {\n let key = null\n const values = []\n return {\n append: (formatted, origin) => {\n if (this.key === origin) {\n key = formatted\n } else {\n values.push(formatted)\n }\n },\n finalize () {\n return mergeWithKey(theme, key, values)\n },\n }\n }\n\n diffDeep (expected, theme, indent, invert) {\n // Verify a diff can be returned.\n if (this.tag !== expected.tag || typeof this.value.diffDeep !== 'function') return null\n // Only use this logic to format value diffs when the keys are primitive and equal.\n if (!this.keyIsPrimitive || !expected.keyIsPrimitive || this.key.compare(expected.key) !== DEEP_EQUAL) {\n return null\n }\n\n // Since formatShallow() would result in theme modifiers being applied\n // before the key and value are formatted, do the same here.\n const diff = this.value.diffDeep(expected.value, themeUtils.applyModifiersToOriginal(this.value, theme), indent, invert)\n if (diff === null) return null\n\n const key = this.key.formatDeep(themeUtils.applyModifiersToOriginal(this.key, theme), indent, '')\n return mergeWithKey(theme, key, [diff])\n }\n\n prepareDiff (expected, lhsRecursor, rhsRecursor, compareComplexShape, isCircular) {\n // Circular values cannot be compared. They must be treated as being unequal when diffing.\n if (isCircular(this.value) || isCircular(expected.value)) return { compareResult: UNEQUAL }\n\n const compareResult = this.compare(expected)\n const keysAreEqual = this.tag === expected.tag && this.key.compare(expected.key) === DEEP_EQUAL\n // Short-circuit when keys and/or values are deeply equal.\n if (compareResult === DEEP_EQUAL || keysAreEqual) return { compareResult }\n\n // Try to line up this or remaining map entries with the expected entries.\n const lhsFork = recursorUtils.fork(lhsRecursor)\n const rhsFork = recursorUtils.fork(rhsRecursor)\n const initialExpected = expected\n\n let expectedIsMissing = false\n while (!expectedIsMissing && expected !== null && this.tag === expected.tag) {\n if (expected.keyIsPrimitive) {\n expectedIsMissing = this.key.compare(expected.key) !== UNEQUAL\n } else {\n expectedIsMissing = compareComplexShape(this.key, expected.key) !== UNEQUAL\n }\n\n expected = rhsFork.shared()\n }\n\n let actualIsExtraneous = false\n if (this.tag === initialExpected.tag) {\n if (initialExpected.keyIsPrimitive) {\n let actual = this\n while (!actualIsExtraneous && actual !== null && this.tag === actual.tag) {\n if (actual.keyIsPrimitive) {\n actualIsExtraneous = initialExpected.key.compare(actual.key) === DEEP_EQUAL\n }\n\n actual = lhsFork.shared()\n }\n } else {\n let actual = this\n while (!actualIsExtraneous && actual !== null && this.tag === actual.tag) {\n if (!actual.keyIsPrimitive) {\n actualIsExtraneous = compareComplexShape(actual.key, initialExpected.key) !== UNEQUAL\n }\n\n actual = lhsFork.shared()\n }\n }\n }\n\n if (actualIsExtraneous && !expectedIsMissing) {\n return {\n actualIsExtraneous: true,\n lhsRecursor: lhsFork.recursor,\n rhsRecursor: recursorUtils.unshift(rhsFork.recursor, initialExpected),\n }\n }\n\n if (expectedIsMissing && !actualIsExtraneous) {\n return {\n expectedIsMissing: true,\n lhsRecursor: recursorUtils.unshift(lhsFork.recursor, this),\n rhsRecursor: rhsFork.recursor,\n }\n }\n\n let mustRecurse = false\n if (!this.keyIsPrimitive && !initialExpected.keyIsPrimitive) {\n if (this.valueIsPrimitive || initialExpected.valueIsPrimitive) {\n mustRecurse = this.value.compare(initialExpected.value) !== UNEQUAL\n } else {\n mustRecurse = compareComplexShape(this.value, initialExpected.value) !== UNEQUAL\n }\n }\n\n return {\n mustRecurse,\n isUnequal: !mustRecurse,\n lhsRecursor: lhsFork.recursor,\n rhsRecursor: rhsFork.recursor,\n }\n }\n\n serialize () {\n return [this.keyIsPrimitive, this.valueIsPrimitive]\n }\n}\nObject.defineProperty(MapEntry.prototype, 'isMapEntry', { value: true })\nObject.defineProperty(MapEntry.prototype, 'tag', { value: tag })\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (value) {\n return new BigIntValue(value)\n}\nexports.describe = describe\n\nexports.deserialize = describe\n\nconst tag = Symbol('BigIntValue')\nexports.tag = tag\n\nclass BigIntValue {\n constructor (value) {\n this.value = value\n }\n\n compare (expected) {\n return expected.tag === tag && Object.is(this.value, expected.value)\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n formatDeep (theme) {\n return lineBuilder.single(formatUtils.wrap(theme.bigInt, `${this.value}n`))\n }\n\n serialize () {\n return this.value\n }\n}\nObject.defineProperty(BigIntValue.prototype, 'isPrimitive', { value: true })\nObject.defineProperty(BigIntValue.prototype, 'tag', { value: tag })\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (value) {\n return new BooleanValue(value)\n}\nexports.describe = describe\n\nexports.deserialize = describe\n\nconst tag = Symbol('BooleanValue')\nexports.tag = tag\n\nclass BooleanValue {\n constructor (value) {\n this.value = value\n }\n\n compare (expected) {\n return this.tag === expected.tag && this.value === expected.value\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n formatDeep (theme) {\n return lineBuilder.single(formatUtils.wrap(theme.boolean, this.value === true ? 'true' : 'false'))\n }\n\n serialize () {\n return this.value\n }\n}\nObject.defineProperty(BooleanValue.prototype, 'isPrimitive', { value: true })\nObject.defineProperty(BooleanValue.prototype, 'tag', { value: tag })\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe () {\n return new NullValue()\n}\nexports.describe = describe\n\nexports.deserialize = describe\n\nconst tag = Symbol('NullValue')\nexports.tag = tag\n\nclass NullValue {\n compare (expected) {\n return expected.tag === tag\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n formatDeep (theme) {\n return lineBuilder.single(formatUtils.wrap(theme.null, 'null'))\n }\n}\nObject.defineProperty(NullValue.prototype, 'isPrimitive', { value: true })\nObject.defineProperty(NullValue.prototype, 'tag', { value: tag })\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (value) {\n return new NumberValue(value)\n}\nexports.describe = describe\n\nexports.deserialize = describe\n\nconst tag = Symbol('NumberValue')\nexports.tag = tag\n\nclass NumberValue {\n constructor (value) {\n this.value = value\n }\n\n compare (expected) {\n return expected.tag === tag && Object.is(this.value, expected.value)\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n formatDeep (theme) {\n const string = Object.is(this.value, -0) ? '-0' : String(this.value)\n return lineBuilder.single(formatUtils.wrap(theme.number, string))\n }\n\n serialize () {\n return this.value\n }\n}\nObject.defineProperty(NumberValue.prototype, 'isPrimitive', { value: true })\nObject.defineProperty(NumberValue.prototype, 'tag', { value: tag })\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe () {\n return new UndefinedValue()\n}\nexports.describe = describe\n\nexports.deserialize = describe\n\nconst tag = Symbol('UndefinedValue')\nexports.tag = tag\n\nclass UndefinedValue {\n compare (expected) {\n return expected.tag === tag\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n formatDeep (theme) {\n return lineBuilder.single(formatUtils.wrap(theme.undefined, 'undefined'))\n }\n}\nObject.defineProperty(UndefinedValue.prototype, 'isPrimitive', { value: true })\nObject.defineProperty(UndefinedValue.prototype, 'tag', { value: tag })\n","'use strict'\n\nconst Registry = require('./Registry')\nconst argumentsValue = require('./complexValues/arguments')\nconst arrayBufferValue = require('./complexValues/arrayBuffer')\nconst boxedValue = require('./complexValues/boxed')\nconst dataViewValue = require('./complexValues/dataView')\nconst dateValue = require('./complexValues/date')\nconst errorValue = require('./complexValues/error')\nconst functionValue = require('./complexValues/function')\nconst globalValue = require('./complexValues/global')\nconst mapValue = require('./complexValues/map')\nconst objectValue = require('./complexValues/object')\nconst promiseValue = require('./complexValues/promise')\nconst regexpValue = require('./complexValues/regexp')\nconst setValue = require('./complexValues/set')\nconst typedArrayValue = require('./complexValues/typedArray')\n\nconst getCtor = require('./getCtor')\nconst getStringTag = require('./getStringTag')\nconst itemDescriptor = require('./metaDescriptors/item')\nconst mapEntryDescriptor = require('./metaDescriptors/mapEntry')\nconst propertyDescriptor = require('./metaDescriptors/property')\n\nconst pluginRegistry = require('./pluginRegistry')\nconst bigIntValue = require('./primitiveValues/bigInt')\nconst booleanValue = require('./primitiveValues/boolean')\nconst nullValue = require('./primitiveValues/null')\nconst numberValue = require('./primitiveValues/number')\nconst stringValue = require('./primitiveValues/string')\nconst symbolValue = require('./primitiveValues/symbol')\nconst undefinedValue = require('./primitiveValues/undefined')\n\nconst SpecializedComplexes = new Map([\n ['Arguments', argumentsValue.describe],\n ['ArrayBuffer', arrayBufferValue.describe],\n ['DataView', dataViewValue.describe],\n ['Date', dateValue.describe],\n ['Error', errorValue.describe],\n ['Float32Array', typedArrayValue.describe],\n ['Float64Array', typedArrayValue.describe],\n ['Function', functionValue.describe],\n ['GeneratorFunction', functionValue.describe],\n ['global', globalValue.describe],\n ['Int16Array', typedArrayValue.describe],\n ['Int32Array', typedArrayValue.describe],\n ['Int8Array', typedArrayValue.describe],\n ['Map', mapValue.describe],\n ['Promise', promiseValue.describe],\n ['RegExp', regexpValue.describe],\n ['Set', setValue.describe],\n ['Uint16Array', typedArrayValue.describe],\n ['Uint32Array', typedArrayValue.describe],\n ['Uint8Array', typedArrayValue.describe],\n ['Uint8ClampedArray', typedArrayValue.describe],\n])\n\nfunction describePrimitive (value) {\n if (value === null) return nullValue.describe()\n if (value === undefined) return undefinedValue.describe()\n if (value === true || value === false) return booleanValue.describe(value)\n\n const type = typeof value\n if (type === 'bigint') return bigIntValue.describe(value)\n if (type === 'number') return numberValue.describe(value)\n if (type === 'string') return stringValue.describe(value)\n if (type === 'symbol') return symbolValue.describe(value)\n\n return null\n}\n\nfunction unboxComplex (tag, complex) {\n // Try to unbox by calling `valueOf()`. `describePrimitive()` will return\n // `null` if the resulting value is not a primitive, in which case it's\n // ignored.\n if (typeof complex.valueOf === 'function') {\n const value = complex.valueOf()\n if (value !== complex) return describePrimitive(value)\n }\n\n return null\n}\n\nfunction registerPlugins (plugins) {\n if (!Array.isArray(plugins) || plugins.length === 0) return () => null\n\n const tryFns = pluginRegistry.getTryDescribeValues(plugins)\n return (value, stringTag, ctor) => {\n for (const tryDescribeValue of tryFns) {\n const describeValue = tryDescribeValue(value, stringTag, ctor)\n if (describeValue) return describeValue\n }\n\n return null\n }\n}\n\nfunction describeComplex (value, registry, tryPlugins, describeAny, describeItem, describeMapEntry, describeProperty) {\n if (registry.has(value)) return registry.get(value)\n\n const stringTag = getStringTag(value)\n const ctor = getCtor(stringTag, value)\n const pointer = registry.alloc(value)\n\n let unboxed\n let describeValue = tryPlugins(value, stringTag, ctor)\n if (describeValue === null) {\n if (SpecializedComplexes.has(stringTag)) {\n describeValue = SpecializedComplexes.get(stringTag)\n } else {\n unboxed = unboxComplex(stringTag, value)\n if (unboxed !== null) {\n describeValue = boxedValue.describe\n } else {\n describeValue = objectValue.describe\n }\n }\n }\n\n const descriptor = describeValue({\n ctor,\n describeAny,\n describeItem,\n describeMapEntry,\n describeProperty,\n pointer: pointer.index,\n stringTag,\n unboxed,\n value,\n })\n pointer.descriptor = descriptor\n return descriptor\n}\n\nconst describeItem = (index, valueDescriptor) => {\n return valueDescriptor.isPrimitive === true\n ? itemDescriptor.describePrimitive(index, valueDescriptor)\n : itemDescriptor.describeComplex(index, valueDescriptor)\n}\n\nconst describeMapEntry = (keyDescriptor, valueDescriptor) => {\n return mapEntryDescriptor.describe(keyDescriptor, valueDescriptor)\n}\n\nfunction describe (value, options) {\n const primitive = describePrimitive(value)\n if (primitive !== null) return primitive\n\n const registry = new Registry()\n const tryPlugins = registerPlugins(options && options.plugins)\n const curriedComplex = c => {\n return describeComplex(c, registry, tryPlugins, describeAny, describeItem, describeMapEntry, describeProperty)\n }\n\n const describeAny = any => {\n const descriptor = describePrimitive(any)\n return descriptor !== null\n ? descriptor\n : curriedComplex(any)\n }\n\n const describeProperty = (key, valueDescriptor) => {\n const keyDescriptor = describePrimitive(key)\n return valueDescriptor.isPrimitive === true\n ? propertyDescriptor.describePrimitive(keyDescriptor, valueDescriptor)\n : propertyDescriptor.describeComplex(keyDescriptor, valueDescriptor)\n }\n\n return curriedComplex(value)\n}\nmodule.exports = describe\n","'use strict'\n\nconst argumentsObject = require('./complexValues/arguments').tag\nconst constants = require('./constants')\n\nconst AMBIGUOUS = constants.AMBIGUOUS\nconst SHALLOW_EQUAL = constants.SHALLOW_EQUAL\n\nfunction shouldCompareDeep (result, lhs, rhs) {\n if (result === SHALLOW_EQUAL) return true\n if (result !== AMBIGUOUS) return false\n\n // Properties are only ambiguous if they have symbol keys. These properties\n // must be compared in an order-insensitive manner.\n return lhs.tag === argumentsObject || lhs.isProperty === true\n}\nmodule.exports = shouldCompareDeep\n","'use strict'\n\nconst constants = require('./constants')\nconst recursorUtils = require('./recursorUtils')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst SHALLOW_EQUAL = constants.SHALLOW_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nclass Comparable {\n constructor (properties) {\n this.properties = properties\n this.ordered = properties.slice()\n }\n\n createRecursor () {\n const length = this.ordered.length\n let index = 0\n return () => {\n if (index === length) return null\n\n return this.ordered[index++]\n }\n }\n\n compare (expected) {\n if (this.properties.length !== expected.properties.length) return UNEQUAL\n\n // Compare property keys, reordering the expected properties in the process\n // so values can be compared if all keys are equal.\n const ordered = []\n const processed = new Set()\n for (const property of this.properties) {\n let extraneous = true\n for (const other of expected.properties) {\n if (processed.has(other.key)) continue\n\n if (property.key.compare(other.key) === DEEP_EQUAL) {\n extraneous = false\n processed.add(other.key)\n ordered.push(other)\n break\n }\n }\n\n if (extraneous) return UNEQUAL\n }\n expected.ordered = ordered\n\n return SHALLOW_EQUAL\n }\n\n prepareDiff (expected) {\n // Reorder the expected properties before recursion starts.\n const missingProperties = []\n const ordered = []\n const processed = new Set()\n for (const other of expected.properties) {\n let missing = true\n for (const property of this.properties) {\n if (processed.has(property.key)) continue\n\n if (property.key.compare(other.key) === DEEP_EQUAL) {\n missing = false\n processed.add(property.key)\n ordered.push(other)\n break\n }\n }\n\n if (missing) {\n missingProperties.push(other)\n }\n }\n expected.ordered = ordered.concat(missingProperties)\n\n return { mustRecurse: true }\n }\n}\nObject.defineProperty(Comparable.prototype, 'isSymbolPropertiesComparable', { value: true })\nexports.Comparable = Comparable\n\nclass Collector {\n constructor (firstProperty, recursor) {\n this.properties = [firstProperty]\n this.recursor = recursor\n this.remainder = null\n }\n\n collectAll () {\n do {\n const next = this.recursor()\n if (next && next.isProperty === true) { // All properties will have symbol keys\n this.properties.push(next)\n } else {\n return next\n }\n } while (true)\n }\n\n createRecursor () {\n return recursorUtils.singleValue(new Comparable(this.properties))\n }\n}\nObject.defineProperty(Collector.prototype, 'isSymbolPropertiesCollector', { value: true })\nexports.Collector = Collector\n","'use strict'\n\nconst Circular = require('./Circular')\nconst constants = require('./constants')\nconst describe = require('./describe')\nconst recursorUtils = require('./recursorUtils')\nconst shouldCompareDeep = require('./shouldCompareDeep')\nconst symbolProperties = require('./symbolProperties')\n\nconst AMBIGUOUS = constants.AMBIGUOUS\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction shortcircuitPrimitive (value) {\n if (value === null || value === undefined || value === true || value === false) return true\n\n const type = typeof value\n if (type === 'string' || type === 'symbol') return true\n // Don't shortcircuit NaN values\n if (type === 'number') return !isNaN(value)\n\n return false\n}\n\nfunction compareDescriptors (lhs, rhs) {\n const lhsCircular = new Circular()\n const rhsCircular = new Circular()\n\n const lhsStack = []\n const rhsStack = []\n let topIndex = -1\n\n do {\n let result\n if (lhsCircular.has(lhs)) {\n result = lhsCircular.get(lhs) === rhsCircular.get(rhs)\n ? DEEP_EQUAL\n : UNEQUAL\n } else if (rhsCircular.has(rhs)) {\n result = UNEQUAL\n } else {\n result = lhs.compare(rhs)\n }\n\n if (result === UNEQUAL) return false\n if (result !== DEEP_EQUAL) {\n if (!shouldCompareDeep(result, lhs, rhs)) return false\n\n if (result === AMBIGUOUS && lhs.isProperty === true) {\n // Replace both sides by a pseudo-descriptor which collects symbol\n // properties instead.\n lhs = new symbolProperties.Collector(lhs, lhsStack[topIndex].recursor)\n rhs = new symbolProperties.Collector(rhs, rhsStack[topIndex].recursor)\n // Replace the current recursors so they can continue correctly after\n // the collectors have been \"compared\". This is necessary since the\n // collectors eat the first value after the last symbol property.\n lhsStack[topIndex].recursor = recursorUtils.unshift(lhsStack[topIndex].recursor, lhs.collectAll())\n rhsStack[topIndex].recursor = recursorUtils.unshift(rhsStack[topIndex].recursor, rhs.collectAll())\n }\n\n lhsCircular.add(lhs)\n rhsCircular.add(rhs)\n\n lhsStack.push({ subject: lhs, recursor: lhs.createRecursor() })\n rhsStack.push({ subject: rhs, recursor: rhs.createRecursor() })\n topIndex++\n }\n\n while (topIndex >= 0) {\n lhs = lhsStack[topIndex].recursor()\n rhs = rhsStack[topIndex].recursor()\n if (lhs !== null && rhs !== null) {\n break\n }\n\n if (lhs === null && rhs === null) {\n const lhsRecord = lhsStack.pop()\n const rhsRecord = rhsStack.pop()\n lhsCircular.delete(lhsRecord.subject)\n rhsCircular.delete(rhsRecord.subject)\n topIndex--\n } else {\n return false\n }\n }\n } while (topIndex >= 0)\n\n return true\n}\nexports.compareDescriptors = compareDescriptors\n\nfunction compare (actual, expected, options) {\n if (Object.is(actual, expected)) return { pass: true }\n // Primitive values should be the same, so if actual or expected is primitive\n // then the values will never compare.\n if (shortcircuitPrimitive(actual) || shortcircuitPrimitive(expected)) return { pass: false }\n\n actual = describe(actual, options)\n expected = describe(expected, options)\n const pass = compareDescriptors(actual, expected)\n return { actual, expected, pass }\n}\nexports.compare = compare\n","'use strict'\n\nclass Indenter {\n constructor (level, step) {\n this.level = level\n this.step = step\n this.value = step.repeat(level)\n }\n\n increase () {\n return new Indenter(this.level + 1, this.step)\n }\n\n decrease () {\n return new Indenter(this.level - 1, this.step)\n }\n\n toString () {\n return this.value\n }\n}\nmodule.exports = Indenter\n","'use strict'\n\nconst Circular = require('./Circular')\nconst Indenter = require('./Indenter')\nconst constants = require('./constants')\nconst describe = require('./describe')\nconst lineBuilder = require('./lineBuilder')\nconst recursorUtils = require('./recursorUtils')\nconst shouldCompareDeep = require('./shouldCompareDeep')\nconst symbolProperties = require('./symbolProperties')\nconst themeUtils = require('./themeUtils')\n\nconst AMBIGUOUS = constants.AMBIGUOUS\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\nconst SHALLOW_EQUAL = constants.SHALLOW_EQUAL\nconst NOOP = Symbol('NOOP')\n\nconst alwaysFormat = () => true\n\nfunction compareComplexShape (lhs, rhs) {\n let result = lhs.compare(rhs)\n if (result === DEEP_EQUAL) return DEEP_EQUAL\n if (result === UNEQUAL || !shouldCompareDeep(result, lhs, rhs)) return UNEQUAL\n\n let collectedSymbolProperties = false\n let lhsRecursor = lhs.createRecursor()\n let rhsRecursor = rhs.createRecursor()\n\n do {\n lhs = lhsRecursor()\n rhs = rhsRecursor()\n\n if (lhs === null && rhs === null) return SHALLOW_EQUAL\n if (lhs === null || rhs === null) return UNEQUAL\n\n result = lhs.compare(rhs)\n if (result === UNEQUAL) return UNEQUAL\n if (\n result === AMBIGUOUS &&\n lhs.isProperty === true && !collectedSymbolProperties &&\n shouldCompareDeep(result, lhs, rhs)\n ) {\n collectedSymbolProperties = true\n const lhsCollector = new symbolProperties.Collector(lhs, lhsRecursor)\n const rhsCollector = new symbolProperties.Collector(rhs, rhsRecursor)\n\n lhsRecursor = recursorUtils.sequence(\n lhsCollector.createRecursor(),\n recursorUtils.unshift(lhsRecursor, lhsCollector.collectAll()))\n rhsRecursor = recursorUtils.sequence(\n rhsCollector.createRecursor(),\n recursorUtils.unshift(rhsRecursor, rhsCollector.collectAll()))\n }\n } while (true)\n}\n\nfunction diffDescriptors (lhs, rhs, options) {\n const theme = themeUtils.normalize(options)\n const invert = options ? options.invert === true : false\n\n const lhsCircular = new Circular()\n const rhsCircular = new Circular()\n const maxDepth = (options && options.maxDepth) || 0\n\n let indent = new Indenter(0, ' ')\n\n const lhsStack = []\n const rhsStack = []\n let topIndex = -1\n\n const buffer = lineBuilder.buffer()\n const diffStack = []\n let diffIndex = -1\n\n const isCircular = descriptor => lhsCircular.has(descriptor) || rhsCircular.has(descriptor)\n\n const format = (builder, subject, circular, depthOffset = 0) => {\n if (diffIndex >= 0 && !diffStack[diffIndex].shouldFormat(subject)) return\n\n if (circular.has(subject)) {\n diffStack[diffIndex].formatter.append(builder.single(theme.circular))\n return\n }\n\n const formatStack = []\n let formatIndex = -1\n\n do {\n if (circular.has(subject)) {\n formatStack[formatIndex].formatter.append(builder.single(theme.circular), subject)\n } else {\n let didFormat = false\n if (typeof subject.formatDeep === 'function') {\n let formatted = subject.formatDeep(themeUtils.applyModifiers(subject, theme), indent)\n if (formatted !== null) {\n didFormat = true\n\n if (formatIndex === -1) {\n formatted = builder.setDefaultGutter(formatted)\n if (diffIndex === -1) {\n buffer.append(formatted)\n } else {\n diffStack[diffIndex].formatter.append(formatted, subject)\n }\n } else {\n formatStack[formatIndex].formatter.append(formatted, subject)\n }\n }\n }\n\n if (!didFormat && typeof subject.formatShallow === 'function') {\n const formatter = subject.formatShallow(themeUtils.applyModifiers(subject, theme), indent)\n const recursor = subject.createRecursor()\n\n if (formatter.increaseIndent && maxDepth > 0 && indent.level === (maxDepth + depthOffset)) {\n const isEmpty = recursor() === null\n let formatted = !isEmpty && typeof formatter.maxDepth === 'function'\n ? formatter.maxDepth()\n : formatter.finalize()\n\n if (formatIndex === -1) {\n formatted = builder.setDefaultGutter(formatted)\n diffStack[diffIndex].formatter.append(formatted, subject)\n } else {\n formatStack[formatIndex].formatter.append(formatted, subject)\n }\n } else {\n formatStack.push({\n formatter,\n recursor,\n decreaseIndent: formatter.increaseIndent,\n shouldFormat: formatter.shouldFormat || alwaysFormat,\n subject,\n })\n formatIndex++\n\n if (formatter.increaseIndent) indent = indent.increase()\n circular.add(subject)\n }\n }\n }\n\n while (formatIndex >= 0) {\n do {\n subject = formatStack[formatIndex].recursor()\n } while (subject && !formatStack[formatIndex].shouldFormat(subject))\n\n if (subject) {\n break\n }\n\n const record = formatStack.pop()\n formatIndex--\n if (record.decreaseIndent) indent = indent.decrease()\n circular.delete(record.subject)\n\n let formatted = record.formatter.finalize()\n if (formatIndex === -1) {\n formatted = builder.setDefaultGutter(formatted)\n if (diffIndex === -1) {\n buffer.append(formatted)\n } else {\n diffStack[diffIndex].formatter.append(formatted, record.subject)\n }\n } else {\n formatStack[formatIndex].formatter.append(formatted, record.subject)\n }\n }\n } while (formatIndex >= 0)\n }\n\n do {\n let compareResult = NOOP\n if (lhsCircular.has(lhs)) {\n compareResult = lhsCircular.get(lhs) === rhsCircular.get(rhs)\n ? DEEP_EQUAL\n : UNEQUAL\n } else if (rhsCircular.has(rhs)) {\n compareResult = UNEQUAL\n }\n\n let firstPassSymbolProperty = false\n if (lhs.isProperty === true) {\n compareResult = lhs.compare(rhs)\n if (compareResult === AMBIGUOUS) {\n const parent = lhsStack[topIndex].subject\n firstPassSymbolProperty = parent.isSymbolPropertiesCollector !== true && parent.isSymbolPropertiesComparable !== true\n }\n }\n\n let didFormat = false\n let mustRecurse = false\n if (compareResult !== DEEP_EQUAL && !firstPassSymbolProperty && typeof lhs.prepareDiff === 'function') {\n const lhsRecursor = topIndex === -1 ? null : lhsStack[topIndex].recursor\n const rhsRecursor = topIndex === -1 ? null : rhsStack[topIndex].recursor\n\n const instructions = lhs.prepareDiff(\n rhs,\n lhsRecursor,\n rhsRecursor,\n compareComplexShape,\n isCircular)\n\n if (instructions !== null) {\n if (topIndex >= 0) {\n if (typeof instructions.lhsRecursor === 'function') {\n lhsStack[topIndex].recursor = instructions.lhsRecursor\n }\n if (typeof instructions.rhsRecursor === 'function') {\n rhsStack[topIndex].recursor = instructions.rhsRecursor\n }\n }\n\n if (instructions.compareResult) {\n compareResult = instructions.compareResult\n }\n if (instructions.mustRecurse === true) {\n mustRecurse = true\n } else {\n if (instructions.actualIsExtraneous === true) {\n format(lineBuilder.actual, lhs, lhsCircular)\n didFormat = true\n } else if (instructions.multipleAreExtraneous === true) {\n for (const extraneous of instructions.descriptors) {\n format(lineBuilder.actual, extraneous, lhsCircular)\n }\n didFormat = true\n } else if (instructions.expectedIsMissing === true) {\n format(lineBuilder.expected, rhs, rhsCircular)\n didFormat = true\n } else if (instructions.multipleAreMissing === true) {\n for (const missing of instructions.descriptors) {\n format(lineBuilder.expected, missing, rhsCircular)\n }\n didFormat = true\n } else if (instructions.isUnequal === true) {\n format(lineBuilder.actual, lhs, lhsCircular)\n format(lineBuilder.expected, rhs, rhsCircular)\n didFormat = true\n } else if (!instructions.compareResult) {\n // TODO: Throw a useful, custom error\n throw new Error('Illegal result of prepareDiff()')\n }\n }\n }\n }\n\n if (!didFormat) {\n if (compareResult === NOOP) {\n compareResult = lhs.compare(rhs)\n }\n\n if (!mustRecurse) {\n mustRecurse = shouldCompareDeep(compareResult, lhs, rhs)\n }\n\n if (compareResult === DEEP_EQUAL) {\n format(lineBuilder, lhs, lhsCircular)\n } else if (mustRecurse) {\n if (compareResult === AMBIGUOUS && lhs.isProperty === true) {\n // Replace both sides by a pseudo-descriptor which collects symbol\n // properties instead.\n lhs = new symbolProperties.Collector(lhs, lhsStack[topIndex].recursor)\n rhs = new symbolProperties.Collector(rhs, rhsStack[topIndex].recursor)\n // Replace the current recursors so they can continue correctly after\n // the collectors have been \"compared\". This is necessary since the\n // collectors eat the first value after the last symbol property.\n lhsStack[topIndex].recursor = recursorUtils.unshift(lhsStack[topIndex].recursor, lhs.collectAll())\n rhsStack[topIndex].recursor = recursorUtils.unshift(rhsStack[topIndex].recursor, rhs.collectAll())\n }\n\n if (typeof lhs.diffShallow === 'function') {\n const formatter = lhs.diffShallow(rhs, themeUtils.applyModifiers(lhs, theme), indent)\n diffStack.push({\n formatter,\n origin: lhs,\n decreaseIndent: formatter.increaseIndent,\n exceedsMaxDepth: formatter.increaseIndent && maxDepth > 0 && indent.level >= maxDepth,\n shouldFormat: formatter.shouldFormat || alwaysFormat,\n })\n diffIndex++\n\n if (formatter.increaseIndent) indent = indent.increase()\n } else if (typeof lhs.formatShallow === 'function') {\n const formatter = lhs.formatShallow(themeUtils.applyModifiers(lhs, theme), indent)\n diffStack.push({\n formatter,\n decreaseIndent: formatter.increaseIndent,\n exceedsMaxDepth: formatter.increaseIndent && maxDepth > 0 && indent.level >= maxDepth,\n shouldFormat: formatter.shouldFormat || alwaysFormat,\n subject: lhs,\n })\n diffIndex++\n\n if (formatter.increaseIndent) indent = indent.increase()\n }\n\n lhsCircular.add(lhs)\n rhsCircular.add(rhs)\n\n lhsStack.push({ diffIndex, subject: lhs, recursor: lhs.createRecursor() })\n rhsStack.push({ diffIndex, subject: rhs, recursor: rhs.createRecursor() })\n topIndex++\n } else {\n const diffed = typeof lhs.diffDeep === 'function'\n ? lhs.diffDeep(rhs, themeUtils.applyModifiers(lhs, theme), indent, invert)\n : null\n\n if (diffed === null) {\n format(lineBuilder.actual, lhs, lhsCircular)\n format(lineBuilder.expected, rhs, rhsCircular)\n } else {\n if (diffIndex === -1) {\n buffer.append(diffed)\n } else {\n diffStack[diffIndex].formatter.append(diffed, lhs)\n }\n }\n }\n }\n\n while (topIndex >= 0) {\n lhs = lhsStack[topIndex].recursor()\n rhs = rhsStack[topIndex].recursor()\n\n if (lhs !== null && rhs !== null) {\n break\n }\n\n if (lhs === null && rhs === null) {\n const lhsRecord = lhsStack.pop()\n const rhsRecord = rhsStack.pop()\n lhsCircular.delete(lhsRecord.subject)\n rhsCircular.delete(rhsRecord.subject)\n topIndex--\n\n if (lhsRecord.diffIndex === diffIndex) {\n const record = diffStack.pop()\n diffIndex--\n if (record.decreaseIndent) indent = indent.decrease()\n\n let formatted = record.formatter.finalize()\n if (record.exceedsMaxDepth && !formatted.hasGutter) {\n // The record exceeds the max depth, but contains no actual diff.\n // Discard the potentially deep formatting and format just the\n // original subject.\n const subject = lhsRecord.subject\n const formatter = subject.formatShallow(themeUtils.applyModifiers(subject, theme), indent)\n const isEmpty = subject.createRecursor()() === null\n formatted = !isEmpty && typeof formatter.maxDepth === 'function'\n ? formatter.maxDepth()\n : formatter.finalize()\n }\n\n if (diffIndex === -1) {\n buffer.append(formatted)\n } else {\n diffStack[diffIndex].formatter.append(formatted, record.subject)\n }\n }\n } else {\n let builder, circular, stack, subject\n if (lhs === null) {\n builder = lineBuilder.expected\n circular = rhsCircular\n stack = rhsStack\n subject = rhs\n } else {\n builder = lineBuilder.actual\n circular = lhsCircular\n stack = lhsStack\n subject = lhs\n }\n\n do {\n format(builder, subject, circular, indent.level)\n subject = stack[topIndex].recursor()\n } while (subject !== null)\n }\n }\n } while (topIndex >= 0)\n\n return buffer.toString({ diff: true, invert, theme })\n}\nexports.diffDescriptors = diffDescriptors\n\nfunction diff (actual, expected, options) {\n return diffDescriptors(describe(actual, options), describe(expected, options), options)\n}\nexports.diff = diff\n","'use strict'\n\nconst Circular = require('./Circular')\nconst Indenter = require('./Indenter')\nconst describe = require('./describe')\nconst lineBuilder = require('./lineBuilder')\nconst themeUtils = require('./themeUtils')\n\nconst alwaysFormat = () => true\nconst fixedIndent = new Indenter(0, ' ')\n\nfunction formatDescriptor (subject, options) {\n const theme = themeUtils.normalize(options)\n if (subject.isPrimitive === true) {\n const formatted = subject.formatDeep(themeUtils.applyModifiers(subject, theme), fixedIndent)\n return formatted.toString({ diff: false })\n }\n\n const circular = new Circular()\n const maxDepth = (options && options.maxDepth) || 0\n\n let indent = fixedIndent\n\n const buffer = lineBuilder.buffer()\n const stack = []\n let topIndex = -1\n\n do {\n if (circular.has(subject)) {\n stack[topIndex].formatter.append(lineBuilder.single(theme.circular), subject)\n } else {\n let didFormat = false\n if (typeof subject.formatDeep === 'function') {\n const formatted = subject.formatDeep(themeUtils.applyModifiers(subject, theme), indent)\n if (formatted !== null) {\n didFormat = true\n if (topIndex === -1) {\n buffer.append(formatted)\n } else {\n stack[topIndex].formatter.append(formatted, subject)\n }\n }\n }\n\n if (!didFormat && typeof subject.formatShallow === 'function') {\n const formatter = subject.formatShallow(themeUtils.applyModifiers(subject, theme), indent)\n const recursor = subject.createRecursor()\n\n if (formatter.increaseIndent && maxDepth > 0 && indent.level === maxDepth) {\n const isEmpty = recursor() === null\n const formatted = !isEmpty && typeof formatter.maxDepth === 'function'\n ? formatter.maxDepth()\n : formatter.finalize()\n stack[topIndex].formatter.append(formatted, subject)\n } else {\n stack.push({\n formatter,\n recursor,\n decreaseIndent: formatter.increaseIndent,\n shouldFormat: formatter.shouldFormat || alwaysFormat,\n subject,\n })\n topIndex++\n\n if (formatter.increaseIndent) indent = indent.increase()\n circular.add(subject)\n }\n }\n }\n\n while (topIndex >= 0) {\n do {\n subject = stack[topIndex].recursor()\n } while (subject && !stack[topIndex].shouldFormat(subject))\n\n if (subject) {\n break\n }\n\n const record = stack.pop()\n topIndex--\n if (record.decreaseIndent) indent = indent.decrease()\n circular.delete(record.subject)\n\n const formatted = record.formatter.finalize()\n if (topIndex === -1) {\n buffer.append(formatted)\n } else {\n stack[topIndex].formatter.append(formatted, record.subject)\n }\n }\n } while (topIndex >= 0)\n\n return buffer.toString({ diff: false })\n}\nexports.formatDescriptor = formatDescriptor\n\nfunction format (value, options) {\n return formatDescriptor(describe(value, options), options)\n}\nexports.format = format\n","/*\n * JavaScript MD5\n * https://github.com/blueimp/JavaScript-MD5\n *\n * Copyright 2011, Sebastian Tschan\n * https://blueimp.net\n *\n * Licensed under the MIT license:\n * https://opensource.org/licenses/MIT\n *\n * Based on\n * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message\n * Digest Algorithm, as defined in RFC 1321.\n * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n * Distributed under the BSD License\n * See http://pajhome.org.uk/crypt/md5 for more info.\n */\n\n/* global define */\n\n/* eslint-disable strict */\n\n;(function ($) {\n 'use strict'\n\n /**\n * Add integers, wrapping at 2^32.\n * This uses 16-bit operations internally to work around bugs in interpreters.\n *\n * @param {number} x First integer\n * @param {number} y Second integer\n * @returns {number} Sum\n */\n function safeAdd(x, y) {\n var lsw = (x & 0xffff) + (y & 0xffff)\n var msw = (x >> 16) + (y >> 16) + (lsw >> 16)\n return (msw << 16) | (lsw & 0xffff)\n }\n\n /**\n * Bitwise rotate a 32-bit number to the left.\n *\n * @param {number} num 32-bit number\n * @param {number} cnt Rotation count\n * @returns {number} Rotated number\n */\n function bitRotateLeft(num, cnt) {\n return (num << cnt) | (num >>> (32 - cnt))\n }\n\n /**\n * Basic operation the algorithm uses.\n *\n * @param {number} q q\n * @param {number} a a\n * @param {number} b b\n * @param {number} x x\n * @param {number} s s\n * @param {number} t t\n * @returns {number} Result\n */\n function md5cmn(q, a, b, x, s, t) {\n return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b)\n }\n /**\n * Basic operation the algorithm uses.\n *\n * @param {number} a a\n * @param {number} b b\n * @param {number} c c\n * @param {number} d d\n * @param {number} x x\n * @param {number} s s\n * @param {number} t t\n * @returns {number} Result\n */\n function md5ff(a, b, c, d, x, s, t) {\n return md5cmn((b & c) | (~b & d), a, b, x, s, t)\n }\n /**\n * Basic operation the algorithm uses.\n *\n * @param {number} a a\n * @param {number} b b\n * @param {number} c c\n * @param {number} d d\n * @param {number} x x\n * @param {number} s s\n * @param {number} t t\n * @returns {number} Result\n */\n function md5gg(a, b, c, d, x, s, t) {\n return md5cmn((b & d) | (c & ~d), a, b, x, s, t)\n }\n /**\n * Basic operation the algorithm uses.\n *\n * @param {number} a a\n * @param {number} b b\n * @param {number} c c\n * @param {number} d d\n * @param {number} x x\n * @param {number} s s\n * @param {number} t t\n * @returns {number} Result\n */\n function md5hh(a, b, c, d, x, s, t) {\n return md5cmn(b ^ c ^ d, a, b, x, s, t)\n }\n /**\n * Basic operation the algorithm uses.\n *\n * @param {number} a a\n * @param {number} b b\n * @param {number} c c\n * @param {number} d d\n * @param {number} x x\n * @param {number} s s\n * @param {number} t t\n * @returns {number} Result\n */\n function md5ii(a, b, c, d, x, s, t) {\n return md5cmn(c ^ (b | ~d), a, b, x, s, t)\n }\n\n /**\n * Calculate the MD5 of an array of little-endian words, and a bit length.\n *\n * @param {Array} x Array of little-endian words\n * @param {number} len Bit length\n * @returns {Array} MD5 Array\n */\n function binlMD5(x, len) {\n /* append padding */\n x[len >> 5] |= 0x80 << len % 32\n x[(((len + 64) >>> 9) << 4) + 14] = len\n\n var i\n var olda\n var oldb\n var oldc\n var oldd\n var a = 1732584193\n var b = -271733879\n var c = -1732584194\n var d = 271733878\n\n for (i = 0; i < x.length; i += 16) {\n olda = a\n oldb = b\n oldc = c\n oldd = d\n\n a = md5ff(a, b, c, d, x[i], 7, -680876936)\n d = md5ff(d, a, b, c, x[i + 1], 12, -389564586)\n c = md5ff(c, d, a, b, x[i + 2], 17, 606105819)\n b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330)\n a = md5ff(a, b, c, d, x[i + 4], 7, -176418897)\n d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426)\n c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341)\n b = md5ff(b, c, d, a, x[i + 7], 22, -45705983)\n a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416)\n d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417)\n c = md5ff(c, d, a, b, x[i + 10], 17, -42063)\n b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162)\n a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682)\n d = md5ff(d, a, b, c, x[i + 13], 12, -40341101)\n c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290)\n b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329)\n\n a = md5gg(a, b, c, d, x[i + 1], 5, -165796510)\n d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632)\n c = md5gg(c, d, a, b, x[i + 11], 14, 643717713)\n b = md5gg(b, c, d, a, x[i], 20, -373897302)\n a = md5gg(a, b, c, d, x[i + 5], 5, -701558691)\n d = md5gg(d, a, b, c, x[i + 10], 9, 38016083)\n c = md5gg(c, d, a, b, x[i + 15], 14, -660478335)\n b = md5gg(b, c, d, a, x[i + 4], 20, -405537848)\n a = md5gg(a, b, c, d, x[i + 9], 5, 568446438)\n d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690)\n c = md5gg(c, d, a, b, x[i + 3], 14, -187363961)\n b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501)\n a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467)\n d = md5gg(d, a, b, c, x[i + 2], 9, -51403784)\n c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473)\n b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734)\n\n a = md5hh(a, b, c, d, x[i + 5], 4, -378558)\n d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463)\n c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562)\n b = md5hh(b, c, d, a, x[i + 14], 23, -35309556)\n a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060)\n d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353)\n c = md5hh(c, d, a, b, x[i + 7], 16, -155497632)\n b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640)\n a = md5hh(a, b, c, d, x[i + 13], 4, 681279174)\n d = md5hh(d, a, b, c, x[i], 11, -358537222)\n c = md5hh(c, d, a, b, x[i + 3], 16, -722521979)\n b = md5hh(b, c, d, a, x[i + 6], 23, 76029189)\n a = md5hh(a, b, c, d, x[i + 9], 4, -640364487)\n d = md5hh(d, a, b, c, x[i + 12], 11, -421815835)\n c = md5hh(c, d, a, b, x[i + 15], 16, 530742520)\n b = md5hh(b, c, d, a, x[i + 2], 23, -995338651)\n\n a = md5ii(a, b, c, d, x[i], 6, -198630844)\n d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415)\n c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905)\n b = md5ii(b, c, d, a, x[i + 5], 21, -57434055)\n a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571)\n d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606)\n c = md5ii(c, d, a, b, x[i + 10], 15, -1051523)\n b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799)\n a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359)\n d = md5ii(d, a, b, c, x[i + 15], 10, -30611744)\n c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380)\n b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649)\n a = md5ii(a, b, c, d, x[i + 4], 6, -145523070)\n d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379)\n c = md5ii(c, d, a, b, x[i + 2], 15, 718787259)\n b = md5ii(b, c, d, a, x[i + 9], 21, -343485551)\n\n a = safeAdd(a, olda)\n b = safeAdd(b, oldb)\n c = safeAdd(c, oldc)\n d = safeAdd(d, oldd)\n }\n return [a, b, c, d]\n }\n\n /**\n * Convert an array of little-endian words to a string\n *\n * @param {Array} input MD5 Array\n * @returns {string} MD5 string\n */\n function binl2rstr(input) {\n var i\n var output = ''\n var length32 = input.length * 32\n for (i = 0; i < length32; i += 8) {\n output += String.fromCharCode((input[i >> 5] >>> i % 32) & 0xff)\n }\n return output\n }\n\n /**\n * Convert a raw string to an array of little-endian words\n * Characters >255 have their high-byte silently ignored.\n *\n * @param {string} input Raw input string\n * @returns {Array} Array of little-endian words\n */\n function rstr2binl(input) {\n var i\n var output = []\n output[(input.length >> 2) - 1] = undefined\n for (i = 0; i < output.length; i += 1) {\n output[i] = 0\n }\n var length8 = input.length * 8\n for (i = 0; i < length8; i += 8) {\n output[i >> 5] |= (input.charCodeAt(i / 8) & 0xff) << i % 32\n }\n return output\n }\n\n /**\n * Calculate the MD5 of a raw string\n *\n * @param {string} s Input string\n * @returns {string} Raw MD5 string\n */\n function rstrMD5(s) {\n return binl2rstr(binlMD5(rstr2binl(s), s.length * 8))\n }\n\n /**\n * Calculates the HMAC-MD5 of a key and some data (raw strings)\n *\n * @param {string} key HMAC key\n * @param {string} data Raw input string\n * @returns {string} Raw MD5 string\n */\n function rstrHMACMD5(key, data) {\n var i\n var bkey = rstr2binl(key)\n var ipad = []\n var opad = []\n var hash\n ipad[15] = opad[15] = undefined\n if (bkey.length > 16) {\n bkey = binlMD5(bkey, key.length * 8)\n }\n for (i = 0; i < 16; i += 1) {\n ipad[i] = bkey[i] ^ 0x36363636\n opad[i] = bkey[i] ^ 0x5c5c5c5c\n }\n hash = binlMD5(ipad.concat(rstr2binl(data)), 512 + data.length * 8)\n return binl2rstr(binlMD5(opad.concat(hash), 512 + 128))\n }\n\n /**\n * Convert a raw string to a hex string\n *\n * @param {string} input Raw input string\n * @returns {string} Hex encoded string\n */\n function rstr2hex(input) {\n var hexTab = '0123456789abcdef'\n var output = ''\n var x\n var i\n for (i = 0; i < input.length; i += 1) {\n x = input.charCodeAt(i)\n output += hexTab.charAt((x >>> 4) & 0x0f) + hexTab.charAt(x & 0x0f)\n }\n return output\n }\n\n /**\n * Encode a string as UTF-8\n *\n * @param {string} input Input string\n * @returns {string} UTF8 string\n */\n function str2rstrUTF8(input) {\n return unescape(encodeURIComponent(input))\n }\n\n /**\n * Encodes input string as raw MD5 string\n *\n * @param {string} s Input string\n * @returns {string} Raw MD5 string\n */\n function rawMD5(s) {\n return rstrMD5(str2rstrUTF8(s))\n }\n /**\n * Encodes input string as Hex encoded string\n *\n * @param {string} s Input string\n * @returns {string} Hex encoded string\n */\n function hexMD5(s) {\n return rstr2hex(rawMD5(s))\n }\n /**\n * Calculates the raw HMAC-MD5 for the given key and data\n *\n * @param {string} k HMAC key\n * @param {string} d Input string\n * @returns {string} Raw MD5 string\n */\n function rawHMACMD5(k, d) {\n return rstrHMACMD5(str2rstrUTF8(k), str2rstrUTF8(d))\n }\n /**\n * Calculates the Hex encoded HMAC-MD5 for the given key and data\n *\n * @param {string} k HMAC key\n * @param {string} d Input string\n * @returns {string} Raw MD5 string\n */\n function hexHMACMD5(k, d) {\n return rstr2hex(rawHMACMD5(k, d))\n }\n\n /**\n * Calculates MD5 value for a given string.\n * If a key is provided, calculates the HMAC-MD5 value.\n * Returns a Hex encoded string unless the raw argument is given.\n *\n * @param {string} string Input string\n * @param {string} [key] HMAC key\n * @param {boolean} [raw] Raw output switch\n * @returns {string} MD5 output\n */\n function md5(string, key, raw) {\n if (!key) {\n if (!raw) {\n return hexMD5(string)\n }\n return rawMD5(string)\n }\n if (!raw) {\n return hexHMACMD5(key, string)\n }\n return rawHMACMD5(key, string)\n }\n\n if (typeof define === 'function' && define.amd) {\n define(function () {\n return md5\n })\n } else if (typeof module === 'object' && module.exports) {\n module.exports = md5\n } else {\n $.md5 = md5\n }\n})(this)\n","'use strict';\nconst blueimpMd5 = require('blueimp-md5');\n\nmodule.exports = data => {\n\tif (Array.isArray(data)) {\n\t\tdata = data.join('');\n\t}\n\n\treturn blueimpMd5(data);\n};\n","var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var baseFlatten = require('./_baseFlatten');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\nfunction flattenDeep(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, INFINITY) : [];\n}\n\nmodule.exports = flattenDeep;\n","'use strict'\n\nconst flattenDeep = require('lodash/flattenDeep')\n\n// Indexes are hexadecimal to make reading the binary output easier.\nconst valueTypes = {\n zero: 0x00,\n int8: 0x01, // Note that the hex value equals the number of bytes required\n int16: 0x02, // to store the integer.\n int24: 0x03,\n int32: 0x04,\n int40: 0x05,\n int48: 0x06,\n numberString: 0x07,\n negativeZero: 0x08,\n notANumber: 0x09,\n infinity: 0x0A,\n negativeInfinity: 0x0B,\n bigInt: 0x0C,\n undefined: 0x0D,\n null: 0x0E,\n true: 0x0F,\n false: 0x10,\n utf8: 0x11,\n bytes: 0x12,\n list: 0x13,\n descriptor: 0x14,\n}\n\nconst descriptorSymbol = Symbol('descriptor')\nexports.descriptorSymbol = descriptorSymbol\n\nfunction encodeInteger (type, value) {\n const encoded = Buffer.alloc(type)\n encoded.writeIntLE(value, 0, type)\n return [type, encoded]\n}\n\nfunction encodeValue (value) {\n if (Object.is(value, 0)) return valueTypes.zero\n if (Object.is(value, -0)) return valueTypes.negativeZero\n if (Object.is(value, NaN)) return valueTypes.notANumber\n if (value === Infinity) return valueTypes.infinity\n if (value === -Infinity) return valueTypes.negativeInfinity\n if (value === undefined) return valueTypes.undefined\n if (value === null) return valueTypes.null\n if (value === true) return valueTypes.true\n if (value === false) return valueTypes.false\n\n const type = typeof value\n if (type === 'number') {\n if (Number.isInteger(value)) {\n // The integer types are signed, so int8 can only store 7 bits, int16\n // only 15, etc.\n if (value >= -0x80 && value < 0x80) return encodeInteger(valueTypes.int8, value)\n if (value >= -0x8000 && value < 0x8000) return encodeInteger(valueTypes.int16, value)\n if (value >= -0x800000 && value < 0x800000) return encodeInteger(valueTypes.int24, value)\n if (value >= -0x80000000 && value < 0x80000000) return encodeInteger(valueTypes.int32, value)\n if (value >= -0x8000000000 && value < 0x8000000000) return encodeInteger(valueTypes.int40, value)\n if (value >= -0x800000000000 && value < 0x800000000000) return encodeInteger(valueTypes.int48, value)\n // Fall through to encoding the value as a number string.\n }\n\n const encoded = Buffer.from(String(value), 'utf8')\n return [valueTypes.numberString, encodeValue(encoded.length), encoded]\n }\n\n if (type === 'string') {\n const encoded = Buffer.from(value, 'utf8')\n return [valueTypes.utf8, encodeValue(encoded.length), encoded]\n }\n\n if (type === 'bigint') {\n const encoded = Buffer.from(String(value), 'utf8')\n return [valueTypes.bigInt, encodeValue(encoded.length), encoded]\n }\n\n if (Buffer.isBuffer(value)) {\n return [valueTypes.bytes, encodeValue(value.byteLength), value]\n }\n\n if (Array.isArray(value)) {\n return [\n value[descriptorSymbol] === true ? valueTypes.descriptor : valueTypes.list,\n encodeValue(value.length),\n value.map(x => encodeValue(x)),\n ]\n }\n\n const hex = `0x${type.toString(16).toUpperCase()}`\n throw new TypeError(`Unexpected value with type ${hex}`)\n}\n\nfunction decodeValue (buffer, byteOffset) {\n const type = buffer.readUInt8(byteOffset)\n byteOffset += 1\n\n if (type === valueTypes.zero) return { byteOffset, value: 0 }\n if (type === valueTypes.negativeZero) return { byteOffset, value: -0 }\n if (type === valueTypes.notANumber) return { byteOffset, value: NaN }\n if (type === valueTypes.infinity) return { byteOffset, value: Infinity }\n if (type === valueTypes.negativeInfinity) return { byteOffset, value: -Infinity }\n if (type === valueTypes.undefined) return { byteOffset, value: undefined }\n if (type === valueTypes.null) return { byteOffset, value: null }\n if (type === valueTypes.true) return { byteOffset, value: true }\n if (type === valueTypes.false) return { byteOffset, value: false }\n\n if (\n type === valueTypes.int8 || type === valueTypes.int16 || type === valueTypes.int24 ||\n type === valueTypes.int32 || type === valueTypes.int40 || type === valueTypes.int48\n ) {\n const value = buffer.readIntLE(byteOffset, type)\n byteOffset += type\n return { byteOffset, value }\n }\n\n if (type === valueTypes.numberString || type === valueTypes.utf8 || type === valueTypes.bytes || type === valueTypes.bigInt) {\n const length = decodeValue(buffer, byteOffset)\n const start = length.byteOffset\n const end = start + length.value\n\n if (type === valueTypes.numberString) {\n const value = Number(buffer.toString('utf8', start, end))\n return { byteOffset: end, value }\n }\n\n if (type === valueTypes.utf8) {\n const value = buffer.toString('utf8', start, end)\n return { byteOffset: end, value }\n }\n\n if (type === valueTypes.bigInt) {\n const value = BigInt(buffer.toString('utf8', start, end)) // eslint-disable-line no-undef\n return { byteOffset: end, value }\n }\n\n const value = buffer.slice(start, end)\n return { byteOffset: end, value }\n }\n\n if (type === valueTypes.list || type === valueTypes.descriptor) {\n const length = decodeValue(buffer, byteOffset)\n byteOffset = length.byteOffset\n\n const value = new Array(length.value)\n if (type === valueTypes.descriptor) {\n value[descriptorSymbol] = true\n }\n\n for (let index = 0; index < length.value; index++) {\n const item = decodeValue(buffer, byteOffset)\n byteOffset = item.byteOffset\n value[index] = item.value\n }\n\n return { byteOffset, value }\n }\n\n const hex = `0x${type.toString(16).toUpperCase()}`\n throw new TypeError(`Could not decode type ${hex}`)\n}\n\nfunction buildBuffer (numberOrArray) {\n if (typeof numberOrArray === 'number') {\n const byte = Buffer.alloc(1)\n byte.writeUInt8(numberOrArray)\n return byte\n }\n\n const array = flattenDeep(numberOrArray)\n const buffers = new Array(array.length)\n let byteLength = 0\n for (const [index, element] of array.entries()) {\n if (typeof element === 'number') {\n byteLength += 1\n const byte = Buffer.alloc(1)\n byte.writeUInt8(element)\n buffers[index] = byte\n } else {\n byteLength += element.byteLength\n buffers[index] = element\n }\n }\n return Buffer.concat(buffers, byteLength)\n}\n\nfunction encode (serializerVersion, rootRecord, usedPlugins) {\n const buffers = []\n let byteOffset = 0\n\n const versionHeader = Buffer.alloc(2)\n versionHeader.writeUInt16LE(serializerVersion)\n buffers.push(versionHeader)\n byteOffset += versionHeader.byteLength\n\n const rootOffset = Buffer.alloc(4)\n buffers.push(rootOffset)\n byteOffset += rootOffset.byteLength\n\n const numPlugins = buildBuffer(encodeValue(usedPlugins.size))\n buffers.push(numPlugins)\n byteOffset += numPlugins.byteLength\n\n for (const name of usedPlugins.keys()) {\n const plugin = usedPlugins.get(name)\n const record = buildBuffer([\n encodeValue(name),\n encodeValue(plugin.serializerVersion),\n ])\n buffers.push(record)\n byteOffset += record.byteLength\n }\n\n const queue = [rootRecord]\n const pointers = [rootOffset]\n while (queue.length > 0) {\n pointers.shift().writeUInt32LE(byteOffset, 0)\n\n const record = queue.shift()\n const recordHeader = buildBuffer([\n encodeValue(record.pluginIndex),\n encodeValue(record.id),\n encodeValue(record.children.length),\n ])\n buffers.push(recordHeader)\n byteOffset += recordHeader.byteLength\n\n // Add pointers before encoding the state. This allows, if it ever becomes\n // necessary, for records to be extracted from a buffer without having to\n // parse the (variable length) state field.\n for (const child of record.children) {\n queue.push(child)\n\n const pointer = Buffer.alloc(4)\n pointers.push(pointer)\n buffers.push(pointer)\n byteOffset += 4\n }\n\n const state = buildBuffer(encodeValue(record.state))\n buffers.push(state)\n byteOffset += state.byteLength\n }\n\n return Buffer.concat(buffers, byteOffset)\n}\nexports.encode = encode\n\nfunction decodePlugins (buffer) {\n const $numPlugins = decodeValue(buffer, 0)\n let byteOffset = $numPlugins.byteOffset\n\n const usedPlugins = new Map()\n const lastIndex = $numPlugins.value\n for (let index = 1; index <= lastIndex; index++) {\n const $name = decodeValue(buffer, byteOffset)\n const name = $name.value\n byteOffset = $name.byteOffset\n\n const serializerVersion = decodeValue(buffer, byteOffset).value\n usedPlugins.set(index, { name, serializerVersion })\n }\n\n return usedPlugins\n}\nexports.decodePlugins = decodePlugins\n\nfunction decodeRecord (buffer, byteOffset) {\n const $pluginIndex = decodeValue(buffer, byteOffset)\n const pluginIndex = $pluginIndex.value\n byteOffset = $pluginIndex.byteOffset\n\n const $id = decodeValue(buffer, byteOffset)\n const id = $id.value\n byteOffset = $id.byteOffset\n\n const $numPointers = decodeValue(buffer, byteOffset)\n const numPointers = $numPointers.value\n byteOffset = $numPointers.byteOffset\n\n const pointerAddresses = new Array(numPointers)\n for (let index = 0; index < numPointers; index++) {\n pointerAddresses[index] = buffer.readUInt32LE(byteOffset)\n byteOffset += 4\n }\n\n const state = decodeValue(buffer, byteOffset).value\n return { id, pluginIndex, state, pointerAddresses }\n}\nexports.decodeRecord = decodeRecord\n\nfunction extractVersion (buffer) {\n return buffer.readUInt16LE(0)\n}\nexports.extractVersion = extractVersion\n\nfunction decode (buffer) {\n const rootOffset = buffer.readUInt32LE(2)\n const pluginBuffer = buffer.slice(6, rootOffset)\n const rootRecord = decodeRecord(buffer, rootOffset)\n return { pluginBuffer, rootRecord }\n}\nexports.decode = decode\n","'use strict'\n\nconst UNEQUAL = require('../constants').UNEQUAL\n\nfunction describe (index) {\n return new Pointer(index)\n}\nexports.describe = describe\n\nexports.deserialize = describe\n\nconst tag = Symbol('Pointer')\nexports.tag = tag\n\nclass Pointer {\n constructor (index) {\n this.index = index\n }\n\n // Pointers cannot be compared, and are not expected to be part of the\n // comparisons.\n compare (expected) {\n return UNEQUAL\n }\n\n serialize () {\n return this.index\n }\n}\nObject.defineProperty(Pointer.prototype, 'isPointer', { value: true })\nObject.defineProperty(Pointer.prototype, 'tag', { value: tag })\n","'use strict'\n\nconst md5hex = require('md5-hex')\n\nconst argumentsValue = require('./complexValues/arguments')\nconst arrayBufferValue = require('./complexValues/arrayBuffer')\nconst boxedValue = require('./complexValues/boxed')\nconst dataViewValue = require('./complexValues/dataView')\nconst dateValue = require('./complexValues/date')\nconst errorValue = require('./complexValues/error')\nconst functionValue = require('./complexValues/function')\nconst globalValue = require('./complexValues/global')\nconst mapValue = require('./complexValues/map')\nconst objectValue = require('./complexValues/object')\nconst promiseValue = require('./complexValues/promise')\nconst regexpValue = require('./complexValues/regexp')\nconst setValue = require('./complexValues/set')\nconst typedArrayValue = require('./complexValues/typedArray')\n\nconst encoder = require('./encoder')\n\nconst itemDescriptor = require('./metaDescriptors/item')\nconst mapEntryDescriptor = require('./metaDescriptors/mapEntry')\nconst pointerDescriptor = require('./metaDescriptors/pointer')\nconst propertyDescriptor = require('./metaDescriptors/property')\nconst statsDescriptors = require('./metaDescriptors/stats')\n\nconst pluginRegistry = require('./pluginRegistry')\n\nconst bigIntValue = require('./primitiveValues/bigInt')\nconst booleanValue = require('./primitiveValues/boolean')\nconst nullValue = require('./primitiveValues/null')\nconst numberValue = require('./primitiveValues/number')\nconst stringValue = require('./primitiveValues/string')\nconst symbolValue = require('./primitiveValues/symbol')\nconst undefinedValue = require('./primitiveValues/undefined')\n\nconst recursorUtils = require('./recursorUtils')\n\n// Increment if encoding layout, descriptor IDs, or value types change. Previous\n// Concordance versions will not be able to decode buffers generated by a newer\n// version, so changing this value will require a major version bump of\n// Concordance itself. The version is encoded as an unsigned 16 bit integer.\nconst VERSION = 3\n\n// Adding or removing mappings or changing an index requires the version in\n// encoder.js to be bumped, which necessitates a major version bump of\n// Concordance itself. Indexes are hexadecimal to make reading the binary\n// output easier.\nconst mappings = [\n [0x01, bigIntValue.tag, bigIntValue.deserialize],\n [0x02, booleanValue.tag, booleanValue.deserialize],\n [0x03, nullValue.tag, nullValue.deserialize],\n [0x04, numberValue.tag, numberValue.deserialize],\n [0x05, stringValue.tag, stringValue.deserialize],\n [0x06, symbolValue.tag, symbolValue.deserialize],\n [0x07, undefinedValue.tag, undefinedValue.deserialize],\n\n [0x08, objectValue.tag, objectValue.deserialize],\n [0x09, statsDescriptors.iterableTag, statsDescriptors.deserializeIterableStats],\n [0x0A, statsDescriptors.listTag, statsDescriptors.deserializeListStats],\n [0x0B, itemDescriptor.complexTag, itemDescriptor.deserializeComplex],\n [0x0C, itemDescriptor.primitiveTag, itemDescriptor.deserializePrimitive],\n [0x0D, statsDescriptors.propertyTag, statsDescriptors.deserializePropertyStats],\n [0x0E, propertyDescriptor.complexTag, propertyDescriptor.deserializeComplex],\n [0x0F, propertyDescriptor.primitiveTag, propertyDescriptor.deserializePrimitive],\n [0x10, pointerDescriptor.tag, pointerDescriptor.deserialize],\n\n [0x11, mapValue.tag, mapValue.deserialize],\n [0x12, mapEntryDescriptor.tag, mapEntryDescriptor.deserialize],\n\n [0x13, argumentsValue.tag, argumentsValue.deserialize],\n [0x14, arrayBufferValue.tag, arrayBufferValue.deserialize],\n [0x15, boxedValue.tag, boxedValue.deserialize],\n [0x16, dataViewValue.tag, dataViewValue.deserialize],\n [0x17, dateValue.tag, dateValue.deserialize],\n [0x18, errorValue.tag, errorValue.deserialize],\n [0x19, functionValue.tag, functionValue.deserialize],\n [0x1A, globalValue.tag, globalValue.deserialize],\n [0x1B, promiseValue.tag, promiseValue.deserialize],\n [0x1C, regexpValue.tag, regexpValue.deserialize],\n [0x1D, setValue.tag, setValue.deserialize],\n [0x1E, typedArrayValue.tag, typedArrayValue.deserialize],\n [0x1F, typedArrayValue.bytesTag, typedArrayValue.deserializeBytes],\n]\nconst tag2id = new Map(mappings.map(mapping => [mapping[1], mapping[0]]))\nconst id2deserialize = new Map(mappings.map(mapping => [mapping[0], mapping[2]]))\n\nclass DescriptorSerializationError extends Error {\n constructor (descriptor) {\n super('Could not serialize descriptor')\n this.name = 'DescriptorSerializationError'\n this.descriptor = descriptor\n }\n}\n\nclass MissingPluginError extends Error {\n constructor (pluginName) {\n super(`Could not deserialize buffer: missing plugin ${JSON.stringify(pluginName)}`)\n this.name = 'MissingPluginError'\n this.pluginName = pluginName\n }\n}\n\nclass PointerLookupError extends Error {\n constructor (index) {\n super(`Could not deserialize buffer: pointer ${index} could not be resolved`)\n this.name = 'PointerLookupError'\n this.index = index\n }\n}\n\nclass UnsupportedPluginError extends Error {\n constructor (pluginName, serializerVersion) {\n super(`Could not deserialize buffer: plugin ${JSON.stringify(pluginName)} expects a different serialization`)\n this.name = 'UnsupportedPluginError'\n this.pluginName = pluginName\n this.serializerVersion = serializerVersion\n }\n}\n\nclass UnsupportedVersion extends Error { // eslint-disable-line unicorn/custom-error-definition\n constructor (serializerVersion) {\n super('Could not deserialize buffer: a different serialization was expected')\n this.name = 'UnsupportedVersion'\n this.serializerVersion = serializerVersion\n }\n}\n\nfunction shallowSerializeDescriptor (descriptor, resolvePluginRef) {\n if (!descriptor.serialize) return undefined\n\n return serializeState(descriptor.serialize(), resolvePluginRef)\n}\n\nfunction serializeState (state, resolvePluginRef) {\n if (Array.isArray(state)) return state.map(x => serializeState(x))\n\n if (state && state.tag) {\n let id, pluginIndex\n if (tag2id.has(state.tag)) {\n id = tag2id.get(state.tag)\n pluginIndex = 0\n } else {\n const ref = resolvePluginRef(state.tag)\n if (ref) {\n id = ref.id\n pluginIndex = ref.pluginIndex\n }\n }\n\n if (id !== undefined) {\n const serialized = [pluginIndex, id, shallowSerializeDescriptor(state, resolvePluginRef)]\n serialized[encoder.descriptorSymbol] = true\n return serialized\n }\n }\n\n return state\n}\n\nfunction serialize (descriptor) {\n const usedPlugins = new Map()\n const resolvePluginRef = tag => {\n const ref = pluginRegistry.resolveDescriptorRef(tag)\n if (!ref) return null\n\n if (!usedPlugins.has(ref.name)) {\n // Start at 1, since 0 is reserved for Concordance's descriptors.\n const index = usedPlugins.size + 1\n usedPlugins.set(ref.name, Object.assign({ index }, ref.serialization))\n }\n\n return {\n id: ref.id,\n pluginIndex: usedPlugins.get(ref.name).index,\n }\n }\n\n const seen = new Set()\n\n const stack = []\n let topIndex = -1\n\n let rootRecord\n do {\n if (descriptor.isComplex === true) {\n if (seen.has(descriptor.pointer)) {\n descriptor = pointerDescriptor.describe(descriptor.pointer)\n } else {\n seen.add(descriptor.pointer)\n }\n }\n\n let id\n let pluginIndex = 0\n if (tag2id.has(descriptor.tag)) {\n id = tag2id.get(descriptor.tag)\n } else {\n const ref = resolvePluginRef(descriptor.tag)\n if (!ref) throw new DescriptorSerializationError(descriptor)\n\n id = ref.id\n pluginIndex = ref.pluginIndex\n }\n\n const record = {\n id,\n pluginIndex,\n children: [],\n state: shallowSerializeDescriptor(descriptor, resolvePluginRef),\n }\n if (!rootRecord) {\n rootRecord = record\n } else {\n stack[topIndex].children.push(record)\n }\n\n if (descriptor.createRecursor) {\n stack.push({ recursor: descriptor.createRecursor(), children: record.children })\n topIndex++\n }\n\n while (topIndex >= 0) {\n descriptor = stack[topIndex].recursor()\n if (descriptor === null) {\n stack.pop()\n topIndex--\n } else {\n break\n }\n }\n } while (topIndex >= 0)\n\n return encoder.encode(VERSION, rootRecord, usedPlugins)\n}\nexports.serialize = serialize\n\nfunction deserializeState (state, getDescriptorDeserializer) {\n if (state && state[encoder.descriptorSymbol] === true) {\n return shallowDeserializeDescriptor(state, getDescriptorDeserializer)\n }\n\n return Array.isArray(state)\n ? state.map(item => deserializeState(item, getDescriptorDeserializer))\n : state\n}\n\nfunction shallowDeserializeDescriptor (entry, getDescriptorDeserializer) {\n const deserializeDescriptor = getDescriptorDeserializer(entry[0], entry[1])\n return deserializeDescriptor(entry[2])\n}\n\nfunction deserializeRecord (record, getDescriptorDeserializer, buffer) {\n const deserializeDescriptor = getDescriptorDeserializer(record.pluginIndex, record.id)\n const state = deserializeState(record.state, getDescriptorDeserializer)\n\n if (record.pointerAddresses.length === 0) {\n return deserializeDescriptor(state)\n }\n\n const endIndex = record.pointerAddresses.length\n let index = 0\n const recursor = () => {\n if (index === endIndex) return null\n\n const recursorRecord = encoder.decodeRecord(buffer, record.pointerAddresses[index++])\n return deserializeRecord(recursorRecord, getDescriptorDeserializer, buffer)\n }\n\n return deserializeDescriptor(state, recursor)\n}\n\nfunction buildPluginMap (buffer, options) {\n const cache = options && options.deserializedPluginsCache\n const cacheKey = md5hex(buffer)\n if (cache && cache.has(cacheKey)) return cache.get(cacheKey)\n\n const decodedPlugins = encoder.decodePlugins(buffer)\n if (decodedPlugins.size === 0) {\n const pluginMap = new Map()\n if (cache) cache.set(cacheKey, pluginMap)\n return pluginMap\n }\n\n const deserializerLookup = new Map()\n if (Array.isArray(options && options.plugins)) {\n for (const deserializer of pluginRegistry.getDeserializers(options.plugins)) {\n deserializerLookup.set(deserializer.name, deserializer)\n }\n }\n\n const pluginMap = new Map()\n for (const index of decodedPlugins.keys()) {\n const used = decodedPlugins.get(index)\n const pluginName = used.name\n const serializerVersion = used.serializerVersion\n\n // TODO: Allow plugin author to encode a helpful message in its serialization\n if (!deserializerLookup.has(pluginName)) {\n throw new MissingPluginError(pluginName)\n }\n if (serializerVersion !== deserializerLookup.get(pluginName).serializerVersion) {\n throw new UnsupportedPluginError(pluginName, serializerVersion)\n }\n\n pluginMap.set(index, deserializerLookup.get(pluginName).id2deserialize)\n }\n\n if (cache) cache.set(cacheKey, pluginMap)\n return pluginMap\n}\n\nfunction deserialize (buffer, options) {\n const version = encoder.extractVersion(buffer)\n if (version !== VERSION) throw new UnsupportedVersion(version)\n\n const decoded = encoder.decode(buffer)\n const pluginMap = buildPluginMap(decoded.pluginBuffer, options)\n\n const descriptorsByPointerIndex = new Map()\n const mapPointerDescriptor = descriptor => {\n if (descriptor.isPointer === true) {\n if (descriptorsByPointerIndex.has(descriptor.index)) {\n return descriptorsByPointerIndex.get(descriptor.index)\n }\n\n if (typeof rootDescriptor.createRecursor === 'function') {\n // The descriptor we're pointing to may be elsewhere in the serialized\n // structure. Consume the entire structure and check again.\n recursorUtils.consumeDeep(rootDescriptor.createRecursor())\n\n if (descriptorsByPointerIndex.has(descriptor.index)) {\n return descriptorsByPointerIndex.get(descriptor.index)\n }\n }\n\n throw new PointerLookupError(descriptor.index)\n }\n\n if (descriptor.isComplex === true) {\n descriptorsByPointerIndex.set(descriptor.pointer, descriptor)\n }\n\n return descriptor\n }\n\n const getDescriptorDeserializer = (pluginIndex, id) => {\n return (state, recursor) => {\n const deserializeDescriptor = pluginIndex === 0\n ? id2deserialize.get(id)\n : pluginMap.get(pluginIndex).get(id)\n\n return mapPointerDescriptor(deserializeDescriptor(state, recursor))\n }\n }\n\n const rootDescriptor = deserializeRecord(decoded.rootRecord, getDescriptorDeserializer, buffer)\n return rootDescriptor\n}\nexports.deserialize = deserialize\n","'use strict'\n\nconst compare = require('./lib/compare')\nconst describe = require('./lib/describe')\nconst diff = require('./lib/diff')\nconst format = require('./lib/format')\nconst serialize = require('./lib/serialize')\n\nexports.compare = compare.compare\nexports.compareDescriptors = compare.compareDescriptors\n\nexports.describe = describe\n\nexports.diff = diff.diff\nexports.diffDescriptors = diff.diffDescriptors\n\nexports.format = format.format\nexports.formatDescriptor = format.formatDescriptor\n\nexports.serialize = serialize.serialize\nexports.deserialize = serialize.deserialize\n","import { b as getColors } from './chunk-colors.js';\nimport concordance from 'concordance';\n\nfunction getConcordanceTheme() {\n const c = getColors();\n return {\n boolean: c.yellow,\n circular: c.gray(\"[Circular]\"),\n date: {\n invalid: c.red(\"invalid\"),\n value: c.blue\n },\n diffGutters: {\n actual: ` ${c.red(\"-\")} `,\n expected: ` ${c.green(\"+\")} `,\n padding: \" \"\n },\n error: {\n ctor: { open: `${c.gray.open}(`, close: `)${c.gray.close}` },\n name: c.magenta\n },\n function: {\n name: c.blue,\n stringTag: c.magenta\n },\n global: c.magenta,\n item: { after: c.gray(\",\") },\n list: { openBracket: c.gray(\"[\"), closeBracket: c.gray(\"]\") },\n mapEntry: { after: c.gray(\",\") },\n maxDepth: c.gray(\"\\u2026\"),\n null: c.yellow,\n number: c.yellow,\n object: {\n openBracket: c.gray(\"{\"),\n closeBracket: c.gray(\"}\"),\n ctor: c.magenta,\n stringTag: { open: `${c.magenta.open}@`, close: c.magenta.close },\n secondaryStringTag: { open: `${c.gray.open}@`, close: c.gray.close }\n },\n property: {\n after: c.gray(\",\"),\n keyBracket: { open: c.gray(\"[\"), close: c.gray(\"]\") },\n valueFallback: c.gray(\"\\u2026\")\n },\n regexp: {\n source: { open: `${c.blue.open}/`, close: `/${c.blue.close}` },\n flags: c.yellow\n },\n stats: { separator: c.gray(\"---\") },\n string: {\n open: c.blue.open,\n close: c.blue.close,\n line: { open: c.blue(\"'\"), close: c.blue(\"'\") },\n multiline: { start: c.blue(\"`\"), end: c.blue(\"`\") },\n controlPicture: c.gray,\n diff: {\n insert: {\n open: c.bgGreen.open + c.black.open,\n close: c.black.close + c.bgGreen.close\n },\n delete: {\n open: c.bgRed.open + c.black.open,\n close: c.black.close + c.bgRed.close\n },\n equal: c.blue,\n insertLine: {\n open: c.green.open,\n close: c.green.close\n },\n deleteLine: {\n open: c.red.open,\n close: c.red.close\n }\n }\n },\n symbol: c.yellow,\n typedArray: {\n bytes: c.yellow\n },\n undefined: c.yellow\n };\n}\nfunction diffDescriptors(actual, expected, options) {\n return concordance.diff(expected, actual, options);\n}\n\nfunction unifiedDiff(actual, expected, options = {}) {\n const theme = getConcordanceTheme();\n const diff = diffDescriptors(actual, expected, { theme });\n const { showLegend = true } = options;\n const counts = {\n \"+\": 0,\n \"-\": 0\n };\n const c = getColors();\n const plus = theme.diffGutters.actual;\n const minus = ` ${c.green(\"+\")}`;\n const lines = diff.split(/\\r?\\n/g);\n lines.forEach((line) => {\n if (line.startsWith(plus))\n counts[\"+\"]++;\n else if (line.startsWith(minus))\n counts[\"-\"]++;\n });\n let legend = \"\";\n if (showLegend) {\n legend = ` ${c.green(`- Expected - ${counts[\"-\"]}`)}\n ${c.red(`+ Received + ${counts[\"+\"]}`)}\n\n`;\n }\n return legend + diff.replace(/␊\\s*$/mg, \"\");\n}\n\nexport { unifiedDiff };\n","import { format, deepClone, stringify, getOwnProperties, getType, toArray } from '@vitest/utils';\nimport { unifiedDiff } from '@vitest/utils/diff';\n\nfunction partitionSuiteChildren(suite) {\n let tasksGroup = [];\n const tasksGroups = [];\n for (const c of suite.tasks) {\n if (tasksGroup.length === 0 || c.concurrent === tasksGroup[0].concurrent) {\n tasksGroup.push(c);\n } else {\n tasksGroups.push(tasksGroup);\n tasksGroup = [c];\n }\n }\n if (tasksGroup.length > 0)\n tasksGroups.push(tasksGroup);\n return tasksGroups;\n}\n\nconst IS_RECORD_SYMBOL = \"@@__IMMUTABLE_RECORD__@@\";\nconst IS_COLLECTION_SYMBOL = \"@@__IMMUTABLE_ITERABLE__@@\";\nfunction isImmutable(v) {\n return v && (v[IS_COLLECTION_SYMBOL] || v[IS_RECORD_SYMBOL]);\n}\nconst OBJECT_PROTO = Object.getPrototypeOf({});\nfunction getUnserializableMessage(err) {\n if (err instanceof Error)\n return `: ${err.message}`;\n if (typeof err === \"string\")\n return `: ${err}`;\n return \"\";\n}\nfunction serializeError(val, seen = /* @__PURE__ */ new WeakMap()) {\n if (!val || typeof val === \"string\")\n return val;\n if (typeof val === \"function\")\n return `Function<${val.name || \"anonymous\"}>`;\n if (typeof val === \"symbol\")\n return val.toString();\n if (typeof val !== \"object\")\n return val;\n if (isImmutable(val))\n return serializeError(val.toJSON(), seen);\n if (val instanceof Promise || val.constructor && val.constructor.prototype === \"AsyncFunction\")\n return \"Promise\";\n if (typeof Element !== \"undefined\" && val instanceof Element)\n return val.tagName;\n if (typeof val.asymmetricMatch === \"function\")\n return `${val.toString()} ${format(val.sample)}`;\n if (seen.has(val))\n return seen.get(val);\n if (Array.isArray(val)) {\n const clone = new Array(val.length);\n seen.set(val, clone);\n val.forEach((e, i) => {\n try {\n clone[i] = serializeError(e, seen);\n } catch (err) {\n clone[i] = getUnserializableMessage(err);\n }\n });\n return clone;\n } else {\n const clone = /* @__PURE__ */ Object.create(null);\n seen.set(val, clone);\n let obj = val;\n while (obj && obj !== OBJECT_PROTO) {\n Object.getOwnPropertyNames(obj).forEach((key) => {\n if (key in clone)\n return;\n try {\n clone[key] = serializeError(val[key], seen);\n } catch (err) {\n delete clone[key];\n clone[key] = getUnserializableMessage(err);\n }\n });\n obj = Object.getPrototypeOf(obj);\n }\n return clone;\n }\n}\nfunction normalizeErrorMessage(message) {\n return message.replace(/__vite_ssr_import_\\d+__\\./g, \"\");\n}\nfunction processError(err, options = {}) {\n if (!err || typeof err !== \"object\")\n return err;\n if (err.stack)\n err.stackStr = String(err.stack);\n if (err.name)\n err.nameStr = String(err.name);\n const clonedActual = deepClone(err.actual);\n const clonedExpected = deepClone(err.expected);\n const { replacedActual, replacedExpected } = replaceAsymmetricMatcher(clonedActual, clonedExpected);\n if (err.showDiff || err.showDiff === void 0 && err.expected !== void 0 && err.actual !== void 0)\n err.diff = unifiedDiff(replacedActual, replacedExpected, options);\n if (typeof err.expected !== \"string\")\n err.expected = stringify(err.expected, 10);\n if (typeof err.actual !== \"string\")\n err.actual = stringify(err.actual, 10);\n try {\n if (typeof err.message === \"string\")\n err.message = normalizeErrorMessage(err.message);\n if (typeof err.cause === \"object\" && typeof err.cause.message === \"string\")\n err.cause.message = normalizeErrorMessage(err.cause.message);\n } catch {\n }\n try {\n return serializeError(err);\n } catch (e) {\n return serializeError(new Error(`Failed to fully serialize error: ${e == null ? void 0 : e.message}\nInner error message: ${err == null ? void 0 : err.message}`));\n }\n}\nfunction isAsymmetricMatcher(data) {\n const type = getType(data);\n return type === \"Object\" && typeof data.asymmetricMatch === \"function\";\n}\nfunction isReplaceable(obj1, obj2) {\n const obj1Type = getType(obj1);\n const obj2Type = getType(obj2);\n return obj1Type === obj2Type && obj1Type === \"Object\";\n}\nfunction replaceAsymmetricMatcher(actual, expected, actualReplaced = /* @__PURE__ */ new WeakSet(), expectedReplaced = /* @__PURE__ */ new WeakSet()) {\n if (!isReplaceable(actual, expected))\n return { replacedActual: actual, replacedExpected: expected };\n if (actualReplaced.has(actual) || expectedReplaced.has(expected))\n return { replacedActual: actual, replacedExpected: expected };\n actualReplaced.add(actual);\n expectedReplaced.add(expected);\n getOwnProperties(expected).forEach((key) => {\n const expectedValue = expected[key];\n const actualValue = actual[key];\n if (isAsymmetricMatcher(expectedValue)) {\n if (expectedValue.asymmetricMatch(actualValue))\n actual[key] = expectedValue;\n } else if (isAsymmetricMatcher(actualValue)) {\n if (actualValue.asymmetricMatch(expectedValue))\n expected[key] = actualValue;\n } else if (isReplaceable(actualValue, expectedValue)) {\n const replaced = replaceAsymmetricMatcher(\n actualValue,\n expectedValue,\n actualReplaced,\n expectedReplaced\n );\n actual[key] = replaced.replacedActual;\n expected[key] = replaced.replacedExpected;\n }\n });\n return {\n replacedActual: actual,\n replacedExpected: expected\n };\n}\n\nfunction interpretTaskModes(suite, namePattern, onlyMode, parentIsOnly, allowOnly) {\n const suiteIsOnly = parentIsOnly || suite.mode === \"only\";\n suite.tasks.forEach((t) => {\n const includeTask = suiteIsOnly || t.mode === \"only\";\n if (onlyMode) {\n if (t.type === \"suite\" && (includeTask || someTasksAreOnly(t))) {\n if (t.mode === \"only\") {\n checkAllowOnly(t, allowOnly);\n t.mode = \"run\";\n }\n } else if (t.mode === \"run\" && !includeTask) {\n t.mode = \"skip\";\n } else if (t.mode === \"only\") {\n checkAllowOnly(t, allowOnly);\n t.mode = \"run\";\n }\n }\n if (t.type === \"test\") {\n if (namePattern && !getTaskFullName(t).match(namePattern))\n t.mode = \"skip\";\n } else if (t.type === \"suite\") {\n if (t.mode === \"skip\")\n skipAllTasks(t);\n else\n interpretTaskModes(t, namePattern, onlyMode, includeTask, allowOnly);\n }\n });\n if (suite.mode === \"run\") {\n if (suite.tasks.length && suite.tasks.every((i) => i.mode !== \"run\"))\n suite.mode = \"skip\";\n }\n}\nfunction getTaskFullName(task) {\n return `${task.suite ? `${getTaskFullName(task.suite)} ` : \"\"}${task.name}`;\n}\nfunction someTasksAreOnly(suite) {\n return suite.tasks.some((t) => t.mode === \"only\" || t.type === \"suite\" && someTasksAreOnly(t));\n}\nfunction skipAllTasks(suite) {\n suite.tasks.forEach((t) => {\n if (t.mode === \"run\") {\n t.mode = \"skip\";\n if (t.type === \"suite\")\n skipAllTasks(t);\n }\n });\n}\nfunction checkAllowOnly(task, allowOnly) {\n if (allowOnly)\n return;\n const error = processError(new Error(\"[Vitest] Unexpected .only modifier. Remove it or pass --allowOnly argument to bypass this error\"));\n task.result = {\n state: \"fail\",\n error,\n errors: [error]\n };\n}\nfunction generateHash(str) {\n let hash = 0;\n if (str.length === 0)\n return `${hash}`;\n for (let i = 0; i < str.length; i++) {\n const char = str.charCodeAt(i);\n hash = (hash << 5) - hash + char;\n hash = hash & hash;\n }\n return `${hash}`;\n}\nfunction calculateSuiteHash(parent) {\n parent.tasks.forEach((t, idx) => {\n t.id = `${parent.id}_${idx}`;\n if (t.type === \"suite\")\n calculateSuiteHash(t);\n });\n}\n\nfunction createChainable(keys, fn) {\n function create(context) {\n const chain2 = function(...args) {\n return fn.apply(context, args);\n };\n Object.assign(chain2, fn);\n chain2.withContext = () => chain2.bind(context);\n for (const key of keys) {\n Object.defineProperty(chain2, key, {\n get() {\n return create({ ...context, [key]: true });\n }\n });\n }\n return chain2;\n }\n const chain = create({});\n chain.fn = fn;\n return chain;\n}\n\nfunction isAtomTest(s) {\n return s.type === \"test\" || s.type === \"custom\";\n}\nfunction getTests(suite) {\n return toArray(suite).flatMap((s) => isAtomTest(s) ? [s] : s.tasks.flatMap((c) => isAtomTest(c) ? [c] : getTests(c)));\n}\nfunction getTasks(tasks = []) {\n return toArray(tasks).flatMap((s) => isAtomTest(s) ? [s] : [s, ...getTasks(s.tasks)]);\n}\nfunction getSuites(suite) {\n return toArray(suite).flatMap((s) => s.type === \"suite\" ? [s, ...getSuites(s.tasks)] : []);\n}\nfunction hasTests(suite) {\n return toArray(suite).some((s) => s.tasks.some((c) => isAtomTest(c) || hasTests(c)));\n}\nfunction hasFailed(suite) {\n return toArray(suite).some((s) => {\n var _a;\n return ((_a = s.result) == null ? void 0 : _a.state) === \"fail\" || s.type === \"suite\" && hasFailed(s.tasks);\n });\n}\nfunction getNames(task) {\n const names = [task.name];\n let current = task;\n while ((current == null ? void 0 : current.suite) || (current == null ? void 0 : current.file)) {\n current = current.suite || current.file;\n if (current == null ? void 0 : current.name)\n names.unshift(current.name);\n }\n return names;\n}\n\nexport { calculateSuiteHash as a, partitionSuiteChildren as b, createChainable as c, hasFailed as d, getTests as e, getTasks as f, generateHash as g, hasTests as h, interpretTaskModes as i, getSuites as j, getNames as k, serializeError as l, processError as p, replaceAsymmetricMatcher as r, someTasksAreOnly as s };\n","function normalizeWindowsPath(input = \"\") {\n if (!input || !input.includes(\"\\\\\")) {\n return input;\n }\n return input.replace(/\\\\/g, \"/\");\n}\n\nconst _UNC_REGEX = /^[/\\\\]{2}/;\nconst _IS_ABSOLUTE_RE = /^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^[A-Za-z]:[/\\\\]/;\nconst _DRIVE_LETTER_RE = /^[A-Za-z]:$/;\nconst sep = \"/\";\nconst delimiter = \":\";\nconst normalize = function(path) {\n if (path.length === 0) {\n return \".\";\n }\n path = normalizeWindowsPath(path);\n const isUNCPath = path.match(_UNC_REGEX);\n const isPathAbsolute = isAbsolute(path);\n const trailingSeparator = path[path.length - 1] === \"/\";\n path = normalizeString(path, !isPathAbsolute);\n if (path.length === 0) {\n if (isPathAbsolute) {\n return \"/\";\n }\n return trailingSeparator ? \"./\" : \".\";\n }\n if (trailingSeparator) {\n path += \"/\";\n }\n if (_DRIVE_LETTER_RE.test(path)) {\n path += \"/\";\n }\n if (isUNCPath) {\n if (!isPathAbsolute) {\n return `//./${path}`;\n }\n return `//${path}`;\n }\n return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;\n};\nconst join = function(...arguments_) {\n if (arguments_.length === 0) {\n return \".\";\n }\n let joined;\n for (const argument of arguments_) {\n if (argument && argument.length > 0) {\n if (joined === void 0) {\n joined = argument;\n } else {\n joined += `/${argument}`;\n }\n }\n }\n if (joined === void 0) {\n return \".\";\n }\n return normalize(joined.replace(/\\/\\/+/g, \"/\"));\n};\nfunction cwd() {\n if (typeof process !== \"undefined\") {\n return process.cwd().replace(/\\\\/g, \"/\");\n }\n return \"/\";\n}\nconst resolve = function(...arguments_) {\n arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));\n let resolvedPath = \"\";\n let resolvedAbsolute = false;\n for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {\n const path = index >= 0 ? arguments_[index] : cwd();\n if (!path || path.length === 0) {\n continue;\n }\n resolvedPath = `${path}/${resolvedPath}`;\n resolvedAbsolute = isAbsolute(path);\n }\n resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);\n if (resolvedAbsolute && !isAbsolute(resolvedPath)) {\n return `/${resolvedPath}`;\n }\n return resolvedPath.length > 0 ? resolvedPath : \".\";\n};\nfunction normalizeString(path, allowAboveRoot) {\n let res = \"\";\n let lastSegmentLength = 0;\n let lastSlash = -1;\n let dots = 0;\n let char = null;\n for (let index = 0; index <= path.length; ++index) {\n if (index < path.length) {\n char = path[index];\n } else if (char === \"/\") {\n break;\n } else {\n char = \"/\";\n }\n if (char === \"/\") {\n if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {\n if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== \".\" || res[res.length - 2] !== \".\") {\n if (res.length > 2) {\n const lastSlashIndex = res.lastIndexOf(\"/\");\n if (lastSlashIndex === -1) {\n res = \"\";\n lastSegmentLength = 0;\n } else {\n res = res.slice(0, lastSlashIndex);\n lastSegmentLength = res.length - 1 - res.lastIndexOf(\"/\");\n }\n lastSlash = index;\n dots = 0;\n continue;\n } else if (res.length > 0) {\n res = \"\";\n lastSegmentLength = 0;\n lastSlash = index;\n dots = 0;\n continue;\n }\n }\n if (allowAboveRoot) {\n res += res.length > 0 ? \"/..\" : \"..\";\n lastSegmentLength = 2;\n }\n } else {\n if (res.length > 0) {\n res += `/${path.slice(lastSlash + 1, index)}`;\n } else {\n res = path.slice(lastSlash + 1, index);\n }\n lastSegmentLength = index - lastSlash - 1;\n }\n lastSlash = index;\n dots = 0;\n } else if (char === \".\" && dots !== -1) {\n ++dots;\n } else {\n dots = -1;\n }\n }\n return res;\n}\nconst isAbsolute = function(p) {\n return _IS_ABSOLUTE_RE.test(p);\n};\nconst toNamespacedPath = function(p) {\n return normalizeWindowsPath(p);\n};\nconst _EXTNAME_RE = /.(\\.[^./]+)$/;\nconst extname = function(p) {\n const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));\n return match && match[1] || \"\";\n};\nconst relative = function(from, to) {\n const _from = resolve(from).split(\"/\");\n const _to = resolve(to).split(\"/\");\n const _fromCopy = [..._from];\n for (const segment of _fromCopy) {\n if (_to[0] !== segment) {\n break;\n }\n _from.shift();\n _to.shift();\n }\n return [..._from.map(() => \"..\"), ..._to].join(\"/\");\n};\nconst dirname = function(p) {\n const segments = normalizeWindowsPath(p).replace(/\\/$/, \"\").split(\"/\").slice(0, -1);\n if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {\n segments[0] += \"/\";\n }\n return segments.join(\"/\") || (isAbsolute(p) ? \"/\" : \".\");\n};\nconst format = function(p) {\n const segments = [p.root, p.dir, p.base ?? p.name + p.ext].filter(Boolean);\n return normalizeWindowsPath(\n p.root ? resolve(...segments) : segments.join(\"/\")\n );\n};\nconst basename = function(p, extension) {\n const lastSegment = normalizeWindowsPath(p).split(\"/\").pop();\n return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;\n};\nconst parse = function(p) {\n const root = normalizeWindowsPath(p).split(\"/\").shift() || \"/\";\n const base = basename(p);\n const extension = extname(base);\n return {\n root,\n dir: dirname(p),\n base,\n ext: extension,\n name: base.slice(0, base.length - extension.length)\n };\n};\n\nconst path = {\n __proto__: null,\n basename: basename,\n delimiter: delimiter,\n dirname: dirname,\n extname: extname,\n format: format,\n isAbsolute: isAbsolute,\n join: join,\n normalize: normalize,\n normalizeString: normalizeString,\n parse: parse,\n relative: relative,\n resolve: resolve,\n sep: sep,\n toNamespacedPath: toNamespacedPath\n};\n\nexport { normalizeString as a, relative as b, dirname as c, delimiter as d, extname as e, format as f, basename as g, parse as h, isAbsolute as i, join as j, normalizeWindowsPath as k, normalize as n, path as p, resolve as r, sep as s, toNamespacedPath as t };\n","import limit from 'p-limit';\nimport { getSafeTimers, format, isObject, objDisplay, objectAttr, noop, toArray, shuffle } from '@vitest/utils';\nimport { c as createChainable, g as generateHash, p as processError, a as calculateSuiteHash, s as someTasksAreOnly, i as interpretTaskModes, b as partitionSuiteChildren, h as hasTests, d as hasFailed } from './chunk-tasks.js';\nimport { relative } from 'pathe';\nimport '@vitest/utils/diff';\n\nconst fnMap = /* @__PURE__ */ new WeakMap();\nconst hooksMap = /* @__PURE__ */ new WeakMap();\nfunction setFn(key, fn) {\n fnMap.set(key, fn);\n}\nfunction getFn(key) {\n return fnMap.get(key);\n}\nfunction setHooks(key, hooks) {\n hooksMap.set(key, hooks);\n}\nfunction getHooks(key) {\n return hooksMap.get(key);\n}\n\nconst collectorContext = {\n tasks: [],\n currentSuite: null\n};\nfunction collectTask(task) {\n var _a;\n (_a = collectorContext.currentSuite) == null ? void 0 : _a.tasks.push(task);\n}\nasync function runWithSuite(suite, fn) {\n const prev = collectorContext.currentSuite;\n collectorContext.currentSuite = suite;\n await fn();\n collectorContext.currentSuite = prev;\n}\nfunction withTimeout(fn, timeout, isHook = false) {\n if (timeout <= 0 || timeout === Infinity)\n return fn;\n const { setTimeout, clearTimeout } = getSafeTimers();\n return (...args) => {\n return Promise.race([fn(...args), new Promise((resolve, reject) => {\n var _a;\n const timer = setTimeout(() => {\n clearTimeout(timer);\n reject(new Error(makeTimeoutMsg(isHook, timeout)));\n }, timeout);\n (_a = timer.unref) == null ? void 0 : _a.call(timer);\n })]);\n };\n}\nfunction createTestContext(test, runner) {\n var _a;\n const context = function() {\n throw new Error(\"done() callback is deprecated, use promise instead\");\n };\n context.meta = test;\n context.onTestFailed = (fn) => {\n test.onFailed || (test.onFailed = []);\n test.onFailed.push(fn);\n };\n return ((_a = runner.extendTestContext) == null ? void 0 : _a.call(runner, context)) || context;\n}\nfunction makeTimeoutMsg(isHook, timeout) {\n return `${isHook ? \"Hook\" : \"Test\"} timed out in ${timeout}ms.\nIf this is a long-running ${isHook ? \"hook\" : \"test\"}, pass a timeout value as the last argument or configure it globally with \"${isHook ? \"hookTimeout\" : \"testTimeout\"}\".`;\n}\n\nconst suite = createSuite();\nconst test = createTest(\n function(name, fn, options) {\n getCurrentSuite().test.fn.call(this, name, fn, options);\n }\n);\nconst describe = suite;\nconst it = test;\nlet runner;\nlet defaultSuite;\nfunction getDefaultSuite() {\n return defaultSuite;\n}\nfunction getRunner() {\n return runner;\n}\nfunction clearCollectorContext(currentRunner) {\n if (!defaultSuite)\n defaultSuite = currentRunner.config.sequence.shuffle ? suite.shuffle(\"\") : suite(\"\");\n runner = currentRunner;\n collectorContext.tasks.length = 0;\n defaultSuite.clear();\n collectorContext.currentSuite = defaultSuite;\n}\nfunction getCurrentSuite() {\n return collectorContext.currentSuite || defaultSuite;\n}\nfunction createSuiteHooks() {\n return {\n beforeAll: [],\n afterAll: [],\n beforeEach: [],\n afterEach: []\n };\n}\nfunction createSuiteCollector(name, factory = () => {\n}, mode, concurrent, shuffle, suiteOptions) {\n const tasks = [];\n const factoryQueue = [];\n let suite2;\n initSuite();\n const test2 = createTest(function(name2, fn = noop, options = suiteOptions) {\n const mode2 = this.only ? \"only\" : this.skip ? \"skip\" : this.todo ? \"todo\" : \"run\";\n if (typeof options === \"number\")\n options = { timeout: options };\n const test3 = {\n id: \"\",\n type: \"test\",\n name: name2,\n mode: mode2,\n suite: void 0,\n fails: this.fails,\n retry: options == null ? void 0 : options.retry\n };\n if (this.concurrent || concurrent)\n test3.concurrent = true;\n if (shuffle)\n test3.shuffle = true;\n const context = createTestContext(test3, runner);\n Object.defineProperty(test3, \"context\", {\n value: context,\n enumerable: false\n });\n setFn(test3, withTimeout(\n () => fn(context),\n (options == null ? void 0 : options.timeout) ?? runner.config.testTimeout\n ));\n tasks.push(test3);\n });\n const custom = function(name2 = \"\") {\n const self = this || {};\n const task = {\n id: \"\",\n name: name2,\n type: \"custom\",\n mode: self.only ? \"only\" : self.skip ? \"skip\" : self.todo ? \"todo\" : \"run\"\n };\n tasks.push(task);\n return task;\n };\n const collector = {\n type: \"collector\",\n name,\n mode,\n test: test2,\n tasks,\n collect,\n custom,\n clear,\n on: addHook\n };\n function addHook(name2, ...fn) {\n getHooks(suite2)[name2].push(...fn);\n }\n function initSuite() {\n suite2 = {\n id: \"\",\n type: \"suite\",\n name,\n mode,\n shuffle,\n tasks: []\n };\n setHooks(suite2, createSuiteHooks());\n }\n function clear() {\n tasks.length = 0;\n factoryQueue.length = 0;\n initSuite();\n }\n async function collect(file) {\n factoryQueue.length = 0;\n if (factory)\n await runWithSuite(collector, () => factory(test2));\n const allChildren = [];\n for (const i of [...factoryQueue, ...tasks])\n allChildren.push(i.type === \"collector\" ? await i.collect(file) : i);\n suite2.file = file;\n suite2.tasks = allChildren;\n allChildren.forEach((task) => {\n task.suite = suite2;\n if (file)\n task.file = file;\n });\n return suite2;\n }\n collectTask(collector);\n return collector;\n}\nfunction createSuite() {\n function suiteFn(name, factory, options) {\n const mode = this.only ? \"only\" : this.skip ? \"skip\" : this.todo ? \"todo\" : \"run\";\n return createSuiteCollector(name, factory, mode, this.concurrent, this.shuffle, options);\n }\n suiteFn.each = function(cases, ...args) {\n const suite2 = this.withContext();\n if (Array.isArray(cases) && args.length)\n cases = formatTemplateString(cases, args);\n return (name, fn, options) => {\n const arrayOnlyCases = cases.every(Array.isArray);\n cases.forEach((i, idx) => {\n const items = Array.isArray(i) ? i : [i];\n arrayOnlyCases ? suite2(formatTitle(name, items, idx), () => fn(...items), options) : suite2(formatTitle(name, items, idx), () => fn(i), options);\n });\n };\n };\n suiteFn.skipIf = (condition) => condition ? suite.skip : suite;\n suiteFn.runIf = (condition) => condition ? suite : suite.skip;\n return createChainable(\n [\"concurrent\", \"shuffle\", \"skip\", \"only\", \"todo\"],\n suiteFn\n );\n}\nfunction createTest(fn) {\n const testFn = fn;\n testFn.each = function(cases, ...args) {\n const test2 = this.withContext();\n if (Array.isArray(cases) && args.length)\n cases = formatTemplateString(cases, args);\n return (name, fn2, options) => {\n const arrayOnlyCases = cases.every(Array.isArray);\n cases.forEach((i, idx) => {\n const items = Array.isArray(i) ? i : [i];\n arrayOnlyCases ? test2(formatTitle(name, items, idx), () => fn2(...items), options) : test2(formatTitle(name, items, idx), () => fn2(i), options);\n });\n };\n };\n testFn.skipIf = (condition) => condition ? test.skip : test;\n testFn.runIf = (condition) => condition ? test : test.skip;\n return createChainable(\n [\"concurrent\", \"skip\", \"only\", \"todo\", \"fails\"],\n testFn\n );\n}\nfunction formatTitle(template, items, idx) {\n if (template.includes(\"%#\")) {\n template = template.replace(/%%/g, \"__vitest_escaped_%__\").replace(/%#/g, `${idx}`).replace(/__vitest_escaped_%__/g, \"%%\");\n }\n const count = template.split(\"%\").length - 1;\n let formatted = format(template, ...items.slice(0, count));\n if (isObject(items[0])) {\n formatted = formatted.replace(\n /\\$([$\\w_.]+)/g,\n (_, key) => {\n var _a;\n return objDisplay(objectAttr(items[0], key), (_a = runner == null ? void 0 : runner.config) == null ? void 0 : _a.chaiConfig);\n }\n // https://github.com/chaijs/chai/pull/1490\n );\n }\n return formatted;\n}\nfunction formatTemplateString(cases, args) {\n const header = cases.join(\"\").trim().replace(/ /g, \"\").split(\"\\n\").map((i) => i.split(\"|\"))[0];\n const res = [];\n for (let i = 0; i < Math.floor(args.length / header.length); i++) {\n const oneCase = {};\n for (let j = 0; j < header.length; j++)\n oneCase[header[j]] = args[i * header.length + j];\n res.push(oneCase);\n }\n return res;\n}\n\nasync function runSetupFiles(config, runner) {\n const files = toArray(config.setupFiles);\n if (config.sequence.setupFiles === \"parallel\") {\n await Promise.all(\n files.map(async (fsPath) => {\n await runner.importFile(fsPath, \"setup\");\n })\n );\n } else {\n for (const fsPath of files)\n await runner.importFile(fsPath, \"setup\");\n }\n}\n\nconst now$1 = Date.now;\nasync function collectTests(paths, runner) {\n const files = [];\n const config = runner.config;\n for (const filepath of paths) {\n const path = relative(config.root, filepath);\n const file = {\n id: generateHash(`${path}${config.name || \"\"}`),\n name: path,\n type: \"suite\",\n mode: \"run\",\n filepath,\n tasks: [],\n projectName: config.name\n };\n clearCollectorContext(runner);\n try {\n const setupStart = now$1();\n await runSetupFiles(config, runner);\n const collectStart = now$1();\n file.setupDuration = collectStart - setupStart;\n await runner.importFile(filepath, \"collect\");\n const defaultTasks = await getDefaultSuite().collect(file);\n setHooks(file, getHooks(defaultTasks));\n for (const c of [...defaultTasks.tasks, ...collectorContext.tasks]) {\n if (c.type === \"test\") {\n file.tasks.push(c);\n } else if (c.type === \"custom\") {\n file.tasks.push(c);\n } else if (c.type === \"suite\") {\n file.tasks.push(c);\n } else if (c.type === \"collector\") {\n const suite = await c.collect(file);\n if (suite.name || suite.tasks.length)\n file.tasks.push(suite);\n }\n }\n file.collectDuration = now$1() - collectStart;\n } catch (e) {\n const error = processError(e);\n file.result = {\n state: \"fail\",\n error,\n errors: [error]\n };\n }\n calculateSuiteHash(file);\n const hasOnlyTasks = someTasksAreOnly(file);\n interpretTaskModes(file, config.testNamePattern, hasOnlyTasks, false, config.allowOnly);\n files.push(file);\n }\n return files;\n}\n\nlet _test;\nfunction setCurrentTest(test) {\n _test = test;\n}\nfunction getCurrentTest() {\n return _test;\n}\n\nconst now = Date.now;\nfunction updateSuiteHookState(suite, name, state, runner) {\n var _a;\n if (!suite.result)\n suite.result = { state: \"run\" };\n if (!((_a = suite.result) == null ? void 0 : _a.hooks))\n suite.result.hooks = {};\n const suiteHooks = suite.result.hooks;\n if (suiteHooks) {\n suiteHooks[name] = state;\n updateTask(suite, runner);\n }\n}\nfunction getSuiteHooks(suite, name, sequence) {\n const hooks = getHooks(suite)[name];\n if (sequence === \"stack\" && (name === \"afterAll\" || name === \"afterEach\"))\n return hooks.slice().reverse();\n return hooks;\n}\nasync function callSuiteHook(suite, currentTask, name, runner, args) {\n const sequence = runner.config.sequence.hooks;\n const callbacks = [];\n if (name === \"beforeEach\" && suite.suite) {\n callbacks.push(\n ...await callSuiteHook(suite.suite, currentTask, name, runner, args)\n );\n }\n updateSuiteHookState(currentTask, name, \"run\", runner);\n const hooks = getSuiteHooks(suite, name, sequence);\n if (sequence === \"parallel\") {\n callbacks.push(...await Promise.all(hooks.map((fn) => fn(...args))));\n } else {\n for (const hook of hooks)\n callbacks.push(await hook(...args));\n }\n updateSuiteHookState(currentTask, name, \"pass\", runner);\n if (name === \"afterEach\" && suite.suite) {\n callbacks.push(\n ...await callSuiteHook(suite.suite, currentTask, name, runner, args)\n );\n }\n return callbacks;\n}\nconst packs = /* @__PURE__ */ new Map();\nlet updateTimer;\nlet previousUpdate;\nfunction updateTask(task, runner) {\n packs.set(task.id, task.result);\n const { clearTimeout, setTimeout } = getSafeTimers();\n clearTimeout(updateTimer);\n updateTimer = setTimeout(() => {\n previousUpdate = sendTasksUpdate(runner);\n }, 10);\n}\nasync function sendTasksUpdate(runner) {\n var _a;\n const { clearTimeout } = getSafeTimers();\n clearTimeout(updateTimer);\n await previousUpdate;\n if (packs.size) {\n const p = (_a = runner.onTaskUpdate) == null ? void 0 : _a.call(runner, Array.from(packs));\n packs.clear();\n return p;\n }\n}\nasync function callCleanupHooks(cleanups) {\n await Promise.all(cleanups.map(async (fn) => {\n if (typeof fn !== \"function\")\n return;\n await fn();\n }));\n}\nasync function runTest(test, runner) {\n var _a, _b, _c, _d, _e, _f;\n await ((_a = runner.onBeforeRunTest) == null ? void 0 : _a.call(runner, test));\n if (test.mode !== \"run\")\n return;\n if (((_b = test.result) == null ? void 0 : _b.state) === \"fail\") {\n updateTask(test, runner);\n return;\n }\n const start = now();\n test.result = {\n state: \"run\",\n startTime: start\n };\n updateTask(test, runner);\n setCurrentTest(test);\n const retry = test.retry || 1;\n for (let retryCount = 0; retryCount < retry; retryCount++) {\n let beforeEachCleanups = [];\n try {\n await ((_c = runner.onBeforeTryTest) == null ? void 0 : _c.call(runner, test, retryCount));\n beforeEachCleanups = await callSuiteHook(test.suite, test, \"beforeEach\", runner, [test.context, test.suite]);\n test.result.retryCount = retryCount;\n if (runner.runTest) {\n await runner.runTest(test);\n } else {\n const fn = getFn(test);\n if (!fn)\n throw new Error(\"Test function is not found. Did you add it using `setFn`?\");\n await fn();\n }\n if (test.promises) {\n const result = await Promise.allSettled(test.promises);\n const errors = result.map((r) => r.status === \"rejected\" ? r.reason : void 0).filter(Boolean);\n if (errors.length)\n throw errors;\n }\n await ((_d = runner.onAfterTryTest) == null ? void 0 : _d.call(runner, test, retryCount));\n test.result.state = \"pass\";\n } catch (e) {\n failTask(test.result, e);\n }\n try {\n await callSuiteHook(test.suite, test, \"afterEach\", runner, [test.context, test.suite]);\n await callCleanupHooks(beforeEachCleanups);\n } catch (e) {\n failTask(test.result, e);\n }\n if (test.result.state === \"pass\")\n break;\n updateTask(test, runner);\n }\n if (test.result.state === \"fail\")\n await Promise.all(((_e = test.onFailed) == null ? void 0 : _e.map((fn) => fn(test.result))) || []);\n if (test.fails) {\n if (test.result.state === \"pass\") {\n const error = processError(new Error(\"Expect test to fail\"));\n test.result.state = \"fail\";\n test.result.error = error;\n test.result.errors = [error];\n } else {\n test.result.state = \"pass\";\n test.result.error = void 0;\n test.result.errors = void 0;\n }\n }\n setCurrentTest(void 0);\n test.result.duration = now() - start;\n await ((_f = runner.onAfterRunTest) == null ? void 0 : _f.call(runner, test));\n updateTask(test, runner);\n}\nfunction failTask(result, err) {\n result.state = \"fail\";\n const errors = Array.isArray(err) ? err : [err];\n for (const e of errors) {\n const error = processError(e);\n result.error ?? (result.error = error);\n result.errors ?? (result.errors = []);\n result.errors.push(error);\n }\n}\nfunction markTasksAsSkipped(suite, runner) {\n suite.tasks.forEach((t) => {\n t.mode = \"skip\";\n t.result = { ...t.result, state: \"skip\" };\n updateTask(t, runner);\n if (t.type === \"suite\")\n markTasksAsSkipped(t, runner);\n });\n}\nasync function runSuite(suite, runner) {\n var _a, _b, _c;\n await ((_a = runner.onBeforeRunSuite) == null ? void 0 : _a.call(runner, suite));\n if (((_b = suite.result) == null ? void 0 : _b.state) === \"fail\") {\n markTasksAsSkipped(suite, runner);\n updateTask(suite, runner);\n return;\n }\n const start = now();\n suite.result = {\n state: \"run\",\n startTime: start\n };\n updateTask(suite, runner);\n let beforeAllCleanups = [];\n if (suite.mode === \"skip\") {\n suite.result.state = \"skip\";\n } else if (suite.mode === \"todo\") {\n suite.result.state = \"todo\";\n } else {\n try {\n beforeAllCleanups = await callSuiteHook(suite, suite, \"beforeAll\", runner, [suite]);\n if (runner.runSuite) {\n await runner.runSuite(suite);\n } else {\n for (let tasksGroup of partitionSuiteChildren(suite)) {\n if (tasksGroup[0].concurrent === true) {\n const mutex = limit(runner.config.maxConcurrency);\n await Promise.all(tasksGroup.map((c) => mutex(() => runSuiteChild(c, runner))));\n } else {\n const { sequence } = runner.config;\n if (sequence.shuffle || suite.shuffle) {\n const suites = tasksGroup.filter((group) => group.type === \"suite\");\n const tests = tasksGroup.filter((group) => group.type === \"test\");\n const groups = shuffle([suites, tests], sequence.seed);\n tasksGroup = groups.flatMap((group) => shuffle(group, sequence.seed));\n }\n for (const c of tasksGroup)\n await runSuiteChild(c, runner);\n }\n }\n }\n } catch (e) {\n failTask(suite.result, e);\n }\n try {\n await callSuiteHook(suite, suite, \"afterAll\", runner, [suite]);\n await callCleanupHooks(beforeAllCleanups);\n } catch (e) {\n failTask(suite.result, e);\n }\n }\n suite.result.duration = now() - start;\n if (suite.mode === \"run\") {\n if (!hasTests(suite)) {\n suite.result.state = \"fail\";\n if (!suite.result.error) {\n const error = processError(new Error(`No test found in suite ${suite.name}`));\n suite.result.error = error;\n suite.result.errors = [error];\n }\n } else if (hasFailed(suite)) {\n suite.result.state = \"fail\";\n } else {\n suite.result.state = \"pass\";\n }\n }\n await ((_c = runner.onAfterRunSuite) == null ? void 0 : _c.call(runner, suite));\n updateTask(suite, runner);\n}\nasync function runSuiteChild(c, runner) {\n if (c.type === \"test\")\n return runTest(c, runner);\n else if (c.type === \"suite\")\n return runSuite(c, runner);\n}\nasync function runFiles(files, runner) {\n var _a, _b;\n for (const file of files) {\n if (!file.tasks.length && !runner.config.passWithNoTests) {\n if (!((_b = (_a = file.result) == null ? void 0 : _a.errors) == null ? void 0 : _b.length)) {\n const error = processError(new Error(`No test suite found in file ${file.filepath}`));\n file.result = {\n state: \"fail\",\n error,\n errors: [error]\n };\n }\n }\n await runSuite(file, runner);\n }\n}\nasync function startTests(paths, runner) {\n var _a, _b, _c, _d;\n await ((_a = runner.onBeforeCollect) == null ? void 0 : _a.call(runner, paths));\n const files = await collectTests(paths, runner);\n (_b = runner.onCollected) == null ? void 0 : _b.call(runner, files);\n await ((_c = runner.onBeforeRun) == null ? void 0 : _c.call(runner, files));\n await runFiles(files, runner);\n await ((_d = runner.onAfterRun) == null ? void 0 : _d.call(runner, files));\n await sendTasksUpdate(runner);\n return files;\n}\n\nfunction getDefaultHookTimeout() {\n return getRunner().config.hookTimeout;\n}\nfunction beforeAll(fn, timeout) {\n return getCurrentSuite().on(\"beforeAll\", withTimeout(fn, timeout ?? getDefaultHookTimeout(), true));\n}\nfunction afterAll(fn, timeout) {\n return getCurrentSuite().on(\"afterAll\", withTimeout(fn, timeout ?? getDefaultHookTimeout(), true));\n}\nfunction beforeEach(fn, timeout) {\n return getCurrentSuite().on(\"beforeEach\", withTimeout(fn, timeout ?? getDefaultHookTimeout(), true));\n}\nfunction afterEach(fn, timeout) {\n return getCurrentSuite().on(\"afterEach\", withTimeout(fn, timeout ?? getDefaultHookTimeout(), true));\n}\nconst onTestFailed = createTestHook(\"onTestFailed\", (test, handler) => {\n test.onFailed || (test.onFailed = []);\n test.onFailed.push(handler);\n});\nfunction createTestHook(name, handler) {\n return (fn) => {\n const current = getCurrentTest();\n if (!current)\n throw new Error(`Hook ${name}() can only be called inside a test`);\n handler(current, fn);\n };\n}\n\nexport { afterAll, afterEach, beforeAll, beforeEach, describe, getCurrentSuite, getCurrentTest, getFn, it, onTestFailed, setFn, startTests, suite, test, updateTask };\n","function getWorkerState() {\n return globalThis.__vitest_worker__;\n}\nfunction getCurrentEnvironment() {\n return globalThis.__vitest_environment__;\n}\n\nexport { getCurrentEnvironment as a, getWorkerState as g };\n","import { relative } from 'pathe';\nimport 'std-env';\nimport '@vitest/runner/utils';\nimport '@vitest/utils';\nimport { g as getWorkerState } from './vendor-global.6795f91f.js';\n\nvar _a;\nconst isNode = typeof process < \"u\" && typeof process.stdout < \"u\" && !((_a = process.versions) == null ? void 0 : _a.deno) && !globalThis.window;\n\nconst isWindows = isNode && process.platform === \"win32\";\nfunction getRunMode() {\n return getWorkerState().config.mode;\n}\nfunction isRunningInBenchmark() {\n return getRunMode() === \"benchmark\";\n}\nconst relativePath = relative;\nfunction resetModules(modules, resetMocks = false) {\n const skipPaths = [\n // Vitest\n /\\/vitest\\/dist\\//,\n /\\/vite-node\\/dist\\//,\n // yarn's .store folder\n /vitest-virtual-\\w+\\/dist/,\n // cnpm\n /@vitest\\/dist/,\n // don't clear mocks\n ...!resetMocks ? [/^mock:/] : []\n ];\n modules.forEach((mod, path) => {\n if (skipPaths.some((re) => re.test(path)))\n return;\n modules.invalidateModule(mod);\n });\n}\nfunction removeUndefinedValues(obj) {\n for (const key in Object.keys(obj)) {\n if (obj[key] === void 0)\n delete obj[key];\n }\n return obj;\n}\n\nexport { removeUndefinedValues as a, isWindows as b, resetModules as c, isRunningInBenchmark as d, isNode as i, relativePath as r };\n","/*!\n * assertion-error\n * Copyright(c) 2013 Jake Luer \n * MIT Licensed\n */\n\n/*!\n * Return a function that will copy properties from\n * one object to another excluding any originally\n * listed. Returned function will create a new `{}`.\n *\n * @param {String} excluded properties ...\n * @return {Function}\n */\n\nfunction exclude () {\n var excludes = [].slice.call(arguments);\n\n function excludeProps (res, obj) {\n Object.keys(obj).forEach(function (key) {\n if (!~excludes.indexOf(key)) res[key] = obj[key];\n });\n }\n\n return function extendExclude () {\n var args = [].slice.call(arguments)\n , i = 0\n , res = {};\n\n for (; i < args.length; i++) {\n excludeProps(res, args[i]);\n }\n\n return res;\n };\n};\n\n/*!\n * Primary Exports\n */\n\nmodule.exports = AssertionError;\n\n/**\n * ### AssertionError\n *\n * An extension of the JavaScript `Error` constructor for\n * assertion and validation scenarios.\n *\n * @param {String} message\n * @param {Object} properties to include (optional)\n * @param {callee} start stack function (optional)\n */\n\nfunction AssertionError (message, _props, ssf) {\n var extend = exclude('name', 'message', 'stack', 'constructor', 'toJSON')\n , props = extend(_props || {});\n\n // default values\n this.message = message || 'Unspecified AssertionError';\n this.showDiff = false;\n\n // copy from properties\n for (var key in props) {\n this[key] = props[key];\n }\n\n // capture stack trace\n ssf = ssf || AssertionError;\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, ssf);\n } else {\n try {\n throw new Error();\n } catch(e) {\n this.stack = e.stack;\n }\n }\n}\n\n/*!\n * Inherit from Error.prototype\n */\n\nAssertionError.prototype = Object.create(Error.prototype);\n\n/*!\n * Statically set name\n */\n\nAssertionError.prototype.name = 'AssertionError';\n\n/*!\n * Ensure correct constructor\n */\n\nAssertionError.prototype.constructor = AssertionError;\n\n/**\n * Allow errors to be converted to JSON for static transfer.\n *\n * @param {Boolean} include stack (default: `true`)\n * @return {Object} object that can be `JSON.stringify`\n */\n\nAssertionError.prototype.toJSON = function (stack) {\n var extend = exclude('constructor', 'toJSON', 'stack')\n , props = extend({ name: this.name }, this);\n\n // include stack if exists and not turned off\n if (false !== stack && this.stack) {\n props.stack = this.stack;\n }\n\n return props;\n};\n","'use strict';\n\n/* !\n * Chai - pathval utility\n * Copyright(c) 2012-2014 Jake Luer \n * @see https://github.com/logicalparadox/filtr\n * MIT Licensed\n */\n\n/**\n * ### .hasProperty(object, name)\n *\n * This allows checking whether an object has own\n * or inherited from prototype chain named property.\n *\n * Basically does the same thing as the `in`\n * operator but works properly with null/undefined values\n * and other primitives.\n *\n * var obj = {\n * arr: ['a', 'b', 'c']\n * , str: 'Hello'\n * }\n *\n * The following would be the results.\n *\n * hasProperty(obj, 'str'); // true\n * hasProperty(obj, 'constructor'); // true\n * hasProperty(obj, 'bar'); // false\n *\n * hasProperty(obj.str, 'length'); // true\n * hasProperty(obj.str, 1); // true\n * hasProperty(obj.str, 5); // false\n *\n * hasProperty(obj.arr, 'length'); // true\n * hasProperty(obj.arr, 2); // true\n * hasProperty(obj.arr, 3); // false\n *\n * @param {Object} object\n * @param {String|Symbol} name\n * @returns {Boolean} whether it exists\n * @namespace Utils\n * @name hasProperty\n * @api public\n */\n\nfunction hasProperty(obj, name) {\n if (typeof obj === 'undefined' || obj === null) {\n return false;\n }\n\n // The `in` operator does not work with primitives.\n return name in Object(obj);\n}\n\n/* !\n * ## parsePath(path)\n *\n * Helper function used to parse string object\n * paths. Use in conjunction with `internalGetPathValue`.\n *\n * var parsed = parsePath('myobject.property.subprop');\n *\n * ### Paths:\n *\n * * Can be infinitely deep and nested.\n * * Arrays are also valid using the formal `myobject.document[3].property`.\n * * Literal dots and brackets (not delimiter) must be backslash-escaped.\n *\n * @param {String} path\n * @returns {Object} parsed\n * @api private\n */\n\nfunction parsePath(path) {\n var str = path.replace(/([^\\\\])\\[/g, '$1.[');\n var parts = str.match(/(\\\\\\.|[^.]+?)+/g);\n return parts.map(function mapMatches(value) {\n if (\n value === 'constructor' ||\n value === '__proto__' ||\n value === 'prototype'\n ) {\n return {};\n }\n var regexp = /^\\[(\\d+)\\]$/;\n var mArr = regexp.exec(value);\n var parsed = null;\n if (mArr) {\n parsed = { i: parseFloat(mArr[1]) };\n } else {\n parsed = { p: value.replace(/\\\\([.[\\]])/g, '$1') };\n }\n\n return parsed;\n });\n}\n\n/* !\n * ## internalGetPathValue(obj, parsed[, pathDepth])\n *\n * Helper companion function for `.parsePath` that returns\n * the value located at the parsed address.\n *\n * var value = getPathValue(obj, parsed);\n *\n * @param {Object} object to search against\n * @param {Object} parsed definition from `parsePath`.\n * @param {Number} depth (nesting level) of the property we want to retrieve\n * @returns {Object|Undefined} value\n * @api private\n */\n\nfunction internalGetPathValue(obj, parsed, pathDepth) {\n var temporaryValue = obj;\n var res = null;\n pathDepth = typeof pathDepth === 'undefined' ? parsed.length : pathDepth;\n\n for (var i = 0; i < pathDepth; i++) {\n var part = parsed[i];\n if (temporaryValue) {\n if (typeof part.p === 'undefined') {\n temporaryValue = temporaryValue[part.i];\n } else {\n temporaryValue = temporaryValue[part.p];\n }\n\n if (i === pathDepth - 1) {\n res = temporaryValue;\n }\n }\n }\n\n return res;\n}\n\n/* !\n * ## internalSetPathValue(obj, value, parsed)\n *\n * Companion function for `parsePath` that sets\n * the value located at a parsed address.\n *\n * internalSetPathValue(obj, 'value', parsed);\n *\n * @param {Object} object to search and define on\n * @param {*} value to use upon set\n * @param {Object} parsed definition from `parsePath`\n * @api private\n */\n\nfunction internalSetPathValue(obj, val, parsed) {\n var tempObj = obj;\n var pathDepth = parsed.length;\n var part = null;\n // Here we iterate through every part of the path\n for (var i = 0; i < pathDepth; i++) {\n var propName = null;\n var propVal = null;\n part = parsed[i];\n\n // If it's the last part of the path, we set the 'propName' value with the property name\n if (i === pathDepth - 1) {\n propName = typeof part.p === 'undefined' ? part.i : part.p;\n // Now we set the property with the name held by 'propName' on object with the desired val\n tempObj[propName] = val;\n } else if (typeof part.p !== 'undefined' && tempObj[part.p]) {\n tempObj = tempObj[part.p];\n } else if (typeof part.i !== 'undefined' && tempObj[part.i]) {\n tempObj = tempObj[part.i];\n } else {\n // If the obj doesn't have the property we create one with that name to define it\n var next = parsed[i + 1];\n // Here we set the name of the property which will be defined\n propName = typeof part.p === 'undefined' ? part.i : part.p;\n // Here we decide if this property will be an array or a new object\n propVal = typeof next.p === 'undefined' ? [] : {};\n tempObj[propName] = propVal;\n tempObj = tempObj[propName];\n }\n }\n}\n\n/**\n * ### .getPathInfo(object, path)\n *\n * This allows the retrieval of property info in an\n * object given a string path.\n *\n * The path info consists of an object with the\n * following properties:\n *\n * * parent - The parent object of the property referenced by `path`\n * * name - The name of the final property, a number if it was an array indexer\n * * value - The value of the property, if it exists, otherwise `undefined`\n * * exists - Whether the property exists or not\n *\n * @param {Object} object\n * @param {String} path\n * @returns {Object} info\n * @namespace Utils\n * @name getPathInfo\n * @api public\n */\n\nfunction getPathInfo(obj, path) {\n var parsed = parsePath(path);\n var last = parsed[parsed.length - 1];\n var info = {\n parent:\n parsed.length > 1 ?\n internalGetPathValue(obj, parsed, parsed.length - 1) :\n obj,\n name: last.p || last.i,\n value: internalGetPathValue(obj, parsed),\n };\n info.exists = hasProperty(info.parent, info.name);\n\n return info;\n}\n\n/**\n * ### .getPathValue(object, path)\n *\n * This allows the retrieval of values in an\n * object given a string path.\n *\n * var obj = {\n * prop1: {\n * arr: ['a', 'b', 'c']\n * , str: 'Hello'\n * }\n * , prop2: {\n * arr: [ { nested: 'Universe' } ]\n * , str: 'Hello again!'\n * }\n * }\n *\n * The following would be the results.\n *\n * getPathValue(obj, 'prop1.str'); // Hello\n * getPathValue(obj, 'prop1.att[2]'); // b\n * getPathValue(obj, 'prop2.arr[0].nested'); // Universe\n *\n * @param {Object} object\n * @param {String} path\n * @returns {Object} value or `undefined`\n * @namespace Utils\n * @name getPathValue\n * @api public\n */\n\nfunction getPathValue(obj, path) {\n var info = getPathInfo(obj, path);\n return info.value;\n}\n\n/**\n * ### .setPathValue(object, path, value)\n *\n * Define the value in an object at a given string path.\n *\n * ```js\n * var obj = {\n * prop1: {\n * arr: ['a', 'b', 'c']\n * , str: 'Hello'\n * }\n * , prop2: {\n * arr: [ { nested: 'Universe' } ]\n * , str: 'Hello again!'\n * }\n * };\n * ```\n *\n * The following would be acceptable.\n *\n * ```js\n * var properties = require('tea-properties');\n * properties.set(obj, 'prop1.str', 'Hello Universe!');\n * properties.set(obj, 'prop1.arr[2]', 'B');\n * properties.set(obj, 'prop2.arr[0].nested.value', { hello: 'universe' });\n * ```\n *\n * @param {Object} object\n * @param {String} path\n * @param {Mixed} value\n * @api private\n */\n\nfunction setPathValue(obj, path, val) {\n var parsed = parsePath(path);\n internalSetPathValue(obj, val, parsed);\n return obj;\n}\n\nmodule.exports = {\n hasProperty: hasProperty,\n getPathInfo: getPathInfo,\n getPathValue: getPathValue,\n setPathValue: setPathValue,\n};\n","/*!\n * Chai - flag utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .flag(object, key, [value])\n *\n * Get or set a flag value on an object. If a\n * value is provided it will be set, else it will\n * return the currently set value or `undefined` if\n * the value is not set.\n *\n * utils.flag(this, 'foo', 'bar'); // setter\n * utils.flag(this, 'foo'); // getter, returns `bar`\n *\n * @param {Object} object constructed Assertion\n * @param {String} key\n * @param {Mixed} value (optional)\n * @namespace Utils\n * @name flag\n * @api private\n */\n\nmodule.exports = function flag(obj, key, value) {\n var flags = obj.__flags || (obj.__flags = Object.create(null));\n if (arguments.length === 3) {\n flags[key] = value;\n } else {\n return flags[key];\n }\n};\n","/*!\n * Chai - test utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/*!\n * Module dependencies\n */\n\nvar flag = require('./flag');\n\n/**\n * ### .test(object, expression)\n *\n * Test and object for expression.\n *\n * @param {Object} object (constructed Assertion)\n * @param {Arguments} chai.Assertion.prototype.assert arguments\n * @namespace Utils\n * @name test\n */\n\nmodule.exports = function test(obj, args) {\n var negate = flag(obj, 'negate')\n , expr = args[0];\n return negate ? !expr : expr;\n};\n","(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n\ttypeof define === 'function' && define.amd ? define(factory) :\n\t(global.typeDetect = factory());\n}(this, (function () { 'use strict';\n\n/* !\n * type-detect\n * Copyright(c) 2013 jake luer \n * MIT Licensed\n */\nvar promiseExists = typeof Promise === 'function';\n\n/* eslint-disable no-undef */\nvar globalObject = typeof self === 'object' ? self : global; // eslint-disable-line id-blacklist\n\nvar symbolExists = typeof Symbol !== 'undefined';\nvar mapExists = typeof Map !== 'undefined';\nvar setExists = typeof Set !== 'undefined';\nvar weakMapExists = typeof WeakMap !== 'undefined';\nvar weakSetExists = typeof WeakSet !== 'undefined';\nvar dataViewExists = typeof DataView !== 'undefined';\nvar symbolIteratorExists = symbolExists && typeof Symbol.iterator !== 'undefined';\nvar symbolToStringTagExists = symbolExists && typeof Symbol.toStringTag !== 'undefined';\nvar setEntriesExists = setExists && typeof Set.prototype.entries === 'function';\nvar mapEntriesExists = mapExists && typeof Map.prototype.entries === 'function';\nvar setIteratorPrototype = setEntriesExists && Object.getPrototypeOf(new Set().entries());\nvar mapIteratorPrototype = mapEntriesExists && Object.getPrototypeOf(new Map().entries());\nvar arrayIteratorExists = symbolIteratorExists && typeof Array.prototype[Symbol.iterator] === 'function';\nvar arrayIteratorPrototype = arrayIteratorExists && Object.getPrototypeOf([][Symbol.iterator]());\nvar stringIteratorExists = symbolIteratorExists && typeof String.prototype[Symbol.iterator] === 'function';\nvar stringIteratorPrototype = stringIteratorExists && Object.getPrototypeOf(''[Symbol.iterator]());\nvar toStringLeftSliceLength = 8;\nvar toStringRightSliceLength = -1;\n/**\n * ### typeOf (obj)\n *\n * Uses `Object.prototype.toString` to determine the type of an object,\n * normalising behaviour across engine versions & well optimised.\n *\n * @param {Mixed} object\n * @return {String} object type\n * @api public\n */\nfunction typeDetect(obj) {\n /* ! Speed optimisation\n * Pre:\n * string literal x 3,039,035 ops/sec ±1.62% (78 runs sampled)\n * boolean literal x 1,424,138 ops/sec ±4.54% (75 runs sampled)\n * number literal x 1,653,153 ops/sec ±1.91% (82 runs sampled)\n * undefined x 9,978,660 ops/sec ±1.92% (75 runs sampled)\n * function x 2,556,769 ops/sec ±1.73% (77 runs sampled)\n * Post:\n * string literal x 38,564,796 ops/sec ±1.15% (79 runs sampled)\n * boolean literal x 31,148,940 ops/sec ±1.10% (79 runs sampled)\n * number literal x 32,679,330 ops/sec ±1.90% (78 runs sampled)\n * undefined x 32,363,368 ops/sec ±1.07% (82 runs sampled)\n * function x 31,296,870 ops/sec ±0.96% (83 runs sampled)\n */\n var typeofObj = typeof obj;\n if (typeofObj !== 'object') {\n return typeofObj;\n }\n\n /* ! Speed optimisation\n * Pre:\n * null x 28,645,765 ops/sec ±1.17% (82 runs sampled)\n * Post:\n * null x 36,428,962 ops/sec ±1.37% (84 runs sampled)\n */\n if (obj === null) {\n return 'null';\n }\n\n /* ! Spec Conformance\n * Test: `Object.prototype.toString.call(window)``\n * - Node === \"[object global]\"\n * - Chrome === \"[object global]\"\n * - Firefox === \"[object Window]\"\n * - PhantomJS === \"[object Window]\"\n * - Safari === \"[object Window]\"\n * - IE 11 === \"[object Window]\"\n * - IE Edge === \"[object Window]\"\n * Test: `Object.prototype.toString.call(this)``\n * - Chrome Worker === \"[object global]\"\n * - Firefox Worker === \"[object DedicatedWorkerGlobalScope]\"\n * - Safari Worker === \"[object DedicatedWorkerGlobalScope]\"\n * - IE 11 Worker === \"[object WorkerGlobalScope]\"\n * - IE Edge Worker === \"[object WorkerGlobalScope]\"\n */\n if (obj === globalObject) {\n return 'global';\n }\n\n /* ! Speed optimisation\n * Pre:\n * array literal x 2,888,352 ops/sec ±0.67% (82 runs sampled)\n * Post:\n * array literal x 22,479,650 ops/sec ±0.96% (81 runs sampled)\n */\n if (\n Array.isArray(obj) &&\n (symbolToStringTagExists === false || !(Symbol.toStringTag in obj))\n ) {\n return 'Array';\n }\n\n // Not caching existence of `window` and related properties due to potential\n // for `window` to be unset before tests in quasi-browser environments.\n if (typeof window === 'object' && window !== null) {\n /* ! Spec Conformance\n * (https://html.spec.whatwg.org/multipage/browsers.html#location)\n * WhatWG HTML$7.7.3 - The `Location` interface\n * Test: `Object.prototype.toString.call(window.location)``\n * - IE <=11 === \"[object Object]\"\n * - IE Edge <=13 === \"[object Object]\"\n */\n if (typeof window.location === 'object' && obj === window.location) {\n return 'Location';\n }\n\n /* ! Spec Conformance\n * (https://html.spec.whatwg.org/#document)\n * WhatWG HTML$3.1.1 - The `Document` object\n * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-26809268)\n * which suggests that browsers should use HTMLTableCellElement for\n * both TD and TH elements. WhatWG separates these.\n * WhatWG HTML states:\n * > For historical reasons, Window objects must also have a\n * > writable, configurable, non-enumerable property named\n * > HTMLDocument whose value is the Document interface object.\n * Test: `Object.prototype.toString.call(document)``\n * - Chrome === \"[object HTMLDocument]\"\n * - Firefox === \"[object HTMLDocument]\"\n * - Safari === \"[object HTMLDocument]\"\n * - IE <=10 === \"[object Document]\"\n * - IE 11 === \"[object HTMLDocument]\"\n * - IE Edge <=13 === \"[object HTMLDocument]\"\n */\n if (typeof window.document === 'object' && obj === window.document) {\n return 'Document';\n }\n\n if (typeof window.navigator === 'object') {\n /* ! Spec Conformance\n * (https://html.spec.whatwg.org/multipage/webappapis.html#mimetypearray)\n * WhatWG HTML$8.6.1.5 - Plugins - Interface MimeTypeArray\n * Test: `Object.prototype.toString.call(navigator.mimeTypes)``\n * - IE <=10 === \"[object MSMimeTypesCollection]\"\n */\n if (typeof window.navigator.mimeTypes === 'object' &&\n obj === window.navigator.mimeTypes) {\n return 'MimeTypeArray';\n }\n\n /* ! Spec Conformance\n * (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray)\n * WhatWG HTML$8.6.1.5 - Plugins - Interface PluginArray\n * Test: `Object.prototype.toString.call(navigator.plugins)``\n * - IE <=10 === \"[object MSPluginsCollection]\"\n */\n if (typeof window.navigator.plugins === 'object' &&\n obj === window.navigator.plugins) {\n return 'PluginArray';\n }\n }\n\n if ((typeof window.HTMLElement === 'function' ||\n typeof window.HTMLElement === 'object') &&\n obj instanceof window.HTMLElement) {\n /* ! Spec Conformance\n * (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray)\n * WhatWG HTML$4.4.4 - The `blockquote` element - Interface `HTMLQuoteElement`\n * Test: `Object.prototype.toString.call(document.createElement('blockquote'))``\n * - IE <=10 === \"[object HTMLBlockElement]\"\n */\n if (obj.tagName === 'BLOCKQUOTE') {\n return 'HTMLQuoteElement';\n }\n\n /* ! Spec Conformance\n * (https://html.spec.whatwg.org/#htmltabledatacellelement)\n * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableDataCellElement`\n * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075)\n * which suggests that browsers should use HTMLTableCellElement for\n * both TD and TH elements. WhatWG separates these.\n * Test: Object.prototype.toString.call(document.createElement('td'))\n * - Chrome === \"[object HTMLTableCellElement]\"\n * - Firefox === \"[object HTMLTableCellElement]\"\n * - Safari === \"[object HTMLTableCellElement]\"\n */\n if (obj.tagName === 'TD') {\n return 'HTMLTableDataCellElement';\n }\n\n /* ! Spec Conformance\n * (https://html.spec.whatwg.org/#htmltableheadercellelement)\n * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableHeaderCellElement`\n * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075)\n * which suggests that browsers should use HTMLTableCellElement for\n * both TD and TH elements. WhatWG separates these.\n * Test: Object.prototype.toString.call(document.createElement('th'))\n * - Chrome === \"[object HTMLTableCellElement]\"\n * - Firefox === \"[object HTMLTableCellElement]\"\n * - Safari === \"[object HTMLTableCellElement]\"\n */\n if (obj.tagName === 'TH') {\n return 'HTMLTableHeaderCellElement';\n }\n }\n }\n\n /* ! Speed optimisation\n * Pre:\n * Float64Array x 625,644 ops/sec ±1.58% (80 runs sampled)\n * Float32Array x 1,279,852 ops/sec ±2.91% (77 runs sampled)\n * Uint32Array x 1,178,185 ops/sec ±1.95% (83 runs sampled)\n * Uint16Array x 1,008,380 ops/sec ±2.25% (80 runs sampled)\n * Uint8Array x 1,128,040 ops/sec ±2.11% (81 runs sampled)\n * Int32Array x 1,170,119 ops/sec ±2.88% (80 runs sampled)\n * Int16Array x 1,176,348 ops/sec ±5.79% (86 runs sampled)\n * Int8Array x 1,058,707 ops/sec ±4.94% (77 runs sampled)\n * Uint8ClampedArray x 1,110,633 ops/sec ±4.20% (80 runs sampled)\n * Post:\n * Float64Array x 7,105,671 ops/sec ±13.47% (64 runs sampled)\n * Float32Array x 5,887,912 ops/sec ±1.46% (82 runs sampled)\n * Uint32Array x 6,491,661 ops/sec ±1.76% (79 runs sampled)\n * Uint16Array x 6,559,795 ops/sec ±1.67% (82 runs sampled)\n * Uint8Array x 6,463,966 ops/sec ±1.43% (85 runs sampled)\n * Int32Array x 5,641,841 ops/sec ±3.49% (81 runs sampled)\n * Int16Array x 6,583,511 ops/sec ±1.98% (80 runs sampled)\n * Int8Array x 6,606,078 ops/sec ±1.74% (81 runs sampled)\n * Uint8ClampedArray x 6,602,224 ops/sec ±1.77% (83 runs sampled)\n */\n var stringTag = (symbolToStringTagExists && obj[Symbol.toStringTag]);\n if (typeof stringTag === 'string') {\n return stringTag;\n }\n\n var objPrototype = Object.getPrototypeOf(obj);\n /* ! Speed optimisation\n * Pre:\n * regex literal x 1,772,385 ops/sec ±1.85% (77 runs sampled)\n * regex constructor x 2,143,634 ops/sec ±2.46% (78 runs sampled)\n * Post:\n * regex literal x 3,928,009 ops/sec ±0.65% (78 runs sampled)\n * regex constructor x 3,931,108 ops/sec ±0.58% (84 runs sampled)\n */\n if (objPrototype === RegExp.prototype) {\n return 'RegExp';\n }\n\n /* ! Speed optimisation\n * Pre:\n * date x 2,130,074 ops/sec ±4.42% (68 runs sampled)\n * Post:\n * date x 3,953,779 ops/sec ±1.35% (77 runs sampled)\n */\n if (objPrototype === Date.prototype) {\n return 'Date';\n }\n\n /* ! Spec Conformance\n * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-promise.prototype-@@tostringtag)\n * ES6$25.4.5.4 - Promise.prototype[@@toStringTag] should be \"Promise\":\n * Test: `Object.prototype.toString.call(Promise.resolve())``\n * - Chrome <=47 === \"[object Object]\"\n * - Edge <=20 === \"[object Object]\"\n * - Firefox 29-Latest === \"[object Promise]\"\n * - Safari 7.1-Latest === \"[object Promise]\"\n */\n if (promiseExists && objPrototype === Promise.prototype) {\n return 'Promise';\n }\n\n /* ! Speed optimisation\n * Pre:\n * set x 2,222,186 ops/sec ±1.31% (82 runs sampled)\n * Post:\n * set x 4,545,879 ops/sec ±1.13% (83 runs sampled)\n */\n if (setExists && objPrototype === Set.prototype) {\n return 'Set';\n }\n\n /* ! Speed optimisation\n * Pre:\n * map x 2,396,842 ops/sec ±1.59% (81 runs sampled)\n * Post:\n * map x 4,183,945 ops/sec ±6.59% (82 runs sampled)\n */\n if (mapExists && objPrototype === Map.prototype) {\n return 'Map';\n }\n\n /* ! Speed optimisation\n * Pre:\n * weakset x 1,323,220 ops/sec ±2.17% (76 runs sampled)\n * Post:\n * weakset x 4,237,510 ops/sec ±2.01% (77 runs sampled)\n */\n if (weakSetExists && objPrototype === WeakSet.prototype) {\n return 'WeakSet';\n }\n\n /* ! Speed optimisation\n * Pre:\n * weakmap x 1,500,260 ops/sec ±2.02% (78 runs sampled)\n * Post:\n * weakmap x 3,881,384 ops/sec ±1.45% (82 runs sampled)\n */\n if (weakMapExists && objPrototype === WeakMap.prototype) {\n return 'WeakMap';\n }\n\n /* ! Spec Conformance\n * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-dataview.prototype-@@tostringtag)\n * ES6$24.2.4.21 - DataView.prototype[@@toStringTag] should be \"DataView\":\n * Test: `Object.prototype.toString.call(new DataView(new ArrayBuffer(1)))``\n * - Edge <=13 === \"[object Object]\"\n */\n if (dataViewExists && objPrototype === DataView.prototype) {\n return 'DataView';\n }\n\n /* ! Spec Conformance\n * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%mapiteratorprototype%-@@tostringtag)\n * ES6$23.1.5.2.2 - %MapIteratorPrototype%[@@toStringTag] should be \"Map Iterator\":\n * Test: `Object.prototype.toString.call(new Map().entries())``\n * - Edge <=13 === \"[object Object]\"\n */\n if (mapExists && objPrototype === mapIteratorPrototype) {\n return 'Map Iterator';\n }\n\n /* ! Spec Conformance\n * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%setiteratorprototype%-@@tostringtag)\n * ES6$23.2.5.2.2 - %SetIteratorPrototype%[@@toStringTag] should be \"Set Iterator\":\n * Test: `Object.prototype.toString.call(new Set().entries())``\n * - Edge <=13 === \"[object Object]\"\n */\n if (setExists && objPrototype === setIteratorPrototype) {\n return 'Set Iterator';\n }\n\n /* ! Spec Conformance\n * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%arrayiteratorprototype%-@@tostringtag)\n * ES6$22.1.5.2.2 - %ArrayIteratorPrototype%[@@toStringTag] should be \"Array Iterator\":\n * Test: `Object.prototype.toString.call([][Symbol.iterator]())``\n * - Edge <=13 === \"[object Object]\"\n */\n if (arrayIteratorExists && objPrototype === arrayIteratorPrototype) {\n return 'Array Iterator';\n }\n\n /* ! Spec Conformance\n * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%stringiteratorprototype%-@@tostringtag)\n * ES6$21.1.5.2.2 - %StringIteratorPrototype%[@@toStringTag] should be \"String Iterator\":\n * Test: `Object.prototype.toString.call(''[Symbol.iterator]())``\n * - Edge <=13 === \"[object Object]\"\n */\n if (stringIteratorExists && objPrototype === stringIteratorPrototype) {\n return 'String Iterator';\n }\n\n /* ! Speed optimisation\n * Pre:\n * object from null x 2,424,320 ops/sec ±1.67% (76 runs sampled)\n * Post:\n * object from null x 5,838,000 ops/sec ±0.99% (84 runs sampled)\n */\n if (objPrototype === null) {\n return 'Object';\n }\n\n return Object\n .prototype\n .toString\n .call(obj)\n .slice(toStringLeftSliceLength, toStringRightSliceLength);\n}\n\nreturn typeDetect;\n\n})));\n","/*!\n * Chai - expectTypes utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .expectTypes(obj, types)\n *\n * Ensures that the object being tested against is of a valid type.\n *\n * utils.expectTypes(this, ['array', 'object', 'string']);\n *\n * @param {Mixed} obj constructed Assertion\n * @param {Array} type A list of allowed types for this assertion\n * @namespace Utils\n * @name expectTypes\n * @api public\n */\n\nvar AssertionError = require('assertion-error');\nvar flag = require('./flag');\nvar type = require('type-detect');\n\nmodule.exports = function expectTypes(obj, types) {\n var flagMsg = flag(obj, 'message');\n var ssfi = flag(obj, 'ssfi');\n\n flagMsg = flagMsg ? flagMsg + ': ' : '';\n\n obj = flag(obj, 'object');\n types = types.map(function (t) { return t.toLowerCase(); });\n types.sort();\n\n // Transforms ['lorem', 'ipsum'] into 'a lorem, or an ipsum'\n var str = types.map(function (t, index) {\n var art = ~[ 'a', 'e', 'i', 'o', 'u' ].indexOf(t.charAt(0)) ? 'an' : 'a';\n var or = types.length > 1 && index === types.length - 1 ? 'or ' : '';\n return or + art + ' ' + t;\n }).join(', ');\n\n var objType = type(obj).toLowerCase();\n\n if (!types.some(function (expected) { return objType === expected; })) {\n throw new AssertionError(\n flagMsg + 'object tested must be ' + str + ', but ' + objType + ' given',\n undefined,\n ssfi\n );\n }\n};\n","/*!\n * Chai - getActual utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .getActual(object, [actual])\n *\n * Returns the `actual` value for an Assertion.\n *\n * @param {Object} object (constructed Assertion)\n * @param {Arguments} chai.Assertion.prototype.assert arguments\n * @namespace Utils\n * @name getActual\n */\n\nmodule.exports = function getActual(obj, args) {\n return args.length > 4 ? args[4] : obj._obj;\n};\n","'use strict';\n\n/* !\n * Chai - getFuncName utility\n * Copyright(c) 2012-2016 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .getFuncName(constructorFn)\n *\n * Returns the name of a function.\n * When a non-function instance is passed, returns `null`.\n * This also includes a polyfill function if `aFunc.name` is not defined.\n *\n * @name getFuncName\n * @param {Function} funct\n * @namespace Utils\n * @api public\n */\n\nvar toString = Function.prototype.toString;\nvar functionNameMatch = /\\s*function(?:\\s|\\s*\\/\\*[^(?:*\\/)]+\\*\\/\\s*)*([^\\s\\(\\/]+)/;\nfunction getFuncName(aFunc) {\n if (typeof aFunc !== 'function') {\n return null;\n }\n\n var name = '';\n if (typeof Function.prototype.name === 'undefined' && typeof aFunc.name === 'undefined') {\n // Here we run a polyfill if Function does not support the `name` property and if aFunc.name is not defined\n var match = toString.call(aFunc).match(functionNameMatch);\n if (match) {\n name = match[1];\n }\n } else {\n // If we've got a `name` property we just use it\n name = aFunc.name;\n }\n\n return name;\n}\n\nmodule.exports = getFuncName;\n","module.exports = {\n\n /**\n * ### config.includeStack\n *\n * User configurable property, influences whether stack trace\n * is included in Assertion error message. Default of false\n * suppresses stack trace in the error message.\n *\n * chai.config.includeStack = true; // enable stack on error\n *\n * @param {Boolean}\n * @api public\n */\n\n includeStack: false,\n\n /**\n * ### config.showDiff\n *\n * User configurable property, influences whether or not\n * the `showDiff` flag should be included in the thrown\n * AssertionErrors. `false` will always be `false`; `true`\n * will be true when the assertion has requested a diff\n * be shown.\n *\n * @param {Boolean}\n * @api public\n */\n\n showDiff: true,\n\n /**\n * ### config.truncateThreshold\n *\n * User configurable property, sets length threshold for actual and\n * expected values in assertion errors. If this threshold is exceeded, for\n * example for large data structures, the value is replaced with something\n * like `[ Array(3) ]` or `{ Object (prop1, prop2) }`.\n *\n * Set it to zero if you want to disable truncating altogether.\n *\n * This is especially userful when doing assertions on arrays: having this\n * set to a reasonable large value makes the failure messages readily\n * inspectable.\n *\n * chai.config.truncateThreshold = 0; // disable truncating\n *\n * @param {Number}\n * @api public\n */\n\n truncateThreshold: 40,\n\n /**\n * ### config.useProxy\n *\n * User configurable property, defines if chai will use a Proxy to throw\n * an error when a non-existent property is read, which protects users\n * from typos when using property-based assertions.\n *\n * Set it to false if you want to disable this feature.\n *\n * chai.config.useProxy = false; // disable use of Proxy\n *\n * This feature is automatically disabled regardless of this config value\n * in environments that don't support proxies.\n *\n * @param {Boolean}\n * @api public\n */\n\n useProxy: true,\n\n /**\n * ### config.proxyExcludedKeys\n *\n * User configurable property, defines which properties should be ignored\n * instead of throwing an error if they do not exist on the assertion.\n * This is only applied if the environment Chai is running in supports proxies and\n * if the `useProxy` configuration setting is enabled.\n * By default, `then` and `inspect` will not throw an error if they do not exist on the\n * assertion object because the `.inspect` property is read by `util.inspect` (for example, when\n * using `console.log` on the assertion object) and `.then` is necessary for promise type-checking.\n *\n * // By default these keys will not throw an error if they do not exist on the assertion object\n * chai.config.proxyExcludedKeys = ['then', 'inspect'];\n *\n * @param {Array}\n * @api public\n */\n\n proxyExcludedKeys: ['then', 'catch', 'inspect', 'toJSON']\n};\n","// This is (almost) directly from Node.js utils\n// https://github.com/joyent/node/blob/f8c335d0caf47f16d31413f89aa28eda3878e3aa/lib/util.js\n\nvar getName = require('get-func-name');\nvar loupe = require('loupe');\nvar config = require('../config');\n\nmodule.exports = inspect;\n\n/**\n * ### .inspect(obj, [showHidden], [depth], [colors])\n *\n * Echoes the value of a value. Tries to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Boolean} showHidden Flag that shows hidden (not enumerable)\n * properties of objects. Default is false.\n * @param {Number} depth Depth in which to descend in object. Default is 2.\n * @param {Boolean} colors Flag to turn on ANSI escape codes to color the\n * output. Default is false (no coloring).\n * @namespace Utils\n * @name inspect\n */\nfunction inspect(obj, showHidden, depth, colors) {\n var options = {\n colors: colors,\n depth: (typeof depth === 'undefined' ? 2 : depth),\n showHidden: showHidden,\n truncate: config.truncateThreshold ? config.truncateThreshold : Infinity,\n };\n return loupe.inspect(obj, options);\n}\n","/*!\n * Chai - flag utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/*!\n * Module dependencies\n */\n\nvar inspect = require('./inspect');\nvar config = require('../config');\n\n/**\n * ### .objDisplay(object)\n *\n * Determines if an object or an array matches\n * criteria to be inspected in-line for error\n * messages or should be truncated.\n *\n * @param {Mixed} javascript object to inspect\n * @name objDisplay\n * @namespace Utils\n * @api public\n */\n\nmodule.exports = function objDisplay(obj) {\n var str = inspect(obj)\n , type = Object.prototype.toString.call(obj);\n\n if (config.truncateThreshold && str.length >= config.truncateThreshold) {\n if (type === '[object Function]') {\n return !obj.name || obj.name === ''\n ? '[Function]'\n : '[Function: ' + obj.name + ']';\n } else if (type === '[object Array]') {\n return '[ Array(' + obj.length + ') ]';\n } else if (type === '[object Object]') {\n var keys = Object.keys(obj)\n , kstr = keys.length > 2\n ? keys.splice(0, 2).join(', ') + ', ...'\n : keys.join(', ');\n return '{ Object (' + kstr + ') }';\n } else {\n return str;\n }\n } else {\n return str;\n }\n};\n","/*!\n * Chai - message composition utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/*!\n * Module dependencies\n */\n\nvar flag = require('./flag')\n , getActual = require('./getActual')\n , objDisplay = require('./objDisplay');\n\n/**\n * ### .getMessage(object, message, negateMessage)\n *\n * Construct the error message based on flags\n * and template tags. Template tags will return\n * a stringified inspection of the object referenced.\n *\n * Message template tags:\n * - `#{this}` current asserted object\n * - `#{act}` actual value\n * - `#{exp}` expected value\n *\n * @param {Object} object (constructed Assertion)\n * @param {Arguments} chai.Assertion.prototype.assert arguments\n * @namespace Utils\n * @name getMessage\n * @api public\n */\n\nmodule.exports = function getMessage(obj, args) {\n var negate = flag(obj, 'negate')\n , val = flag(obj, 'object')\n , expected = args[3]\n , actual = getActual(obj, args)\n , msg = negate ? args[2] : args[1]\n , flagMsg = flag(obj, 'message');\n\n if(typeof msg === \"function\") msg = msg();\n msg = msg || '';\n msg = msg\n .replace(/#\\{this\\}/g, function () { return objDisplay(val); })\n .replace(/#\\{act\\}/g, function () { return objDisplay(actual); })\n .replace(/#\\{exp\\}/g, function () { return objDisplay(expected); });\n\n return flagMsg ? flagMsg + ': ' + msg : msg;\n};\n","/*!\n * Chai - transferFlags utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .transferFlags(assertion, object, includeAll = true)\n *\n * Transfer all the flags for `assertion` to `object`. If\n * `includeAll` is set to `false`, then the base Chai\n * assertion flags (namely `object`, `ssfi`, `lockSsfi`,\n * and `message`) will not be transferred.\n *\n *\n * var newAssertion = new Assertion();\n * utils.transferFlags(assertion, newAssertion);\n *\n * var anotherAssertion = new Assertion(myObj);\n * utils.transferFlags(assertion, anotherAssertion, false);\n *\n * @param {Assertion} assertion the assertion to transfer the flags from\n * @param {Object} object the object to transfer the flags to; usually a new assertion\n * @param {Boolean} includeAll\n * @namespace Utils\n * @name transferFlags\n * @api private\n */\n\nmodule.exports = function transferFlags(assertion, object, includeAll) {\n var flags = assertion.__flags || (assertion.__flags = Object.create(null));\n\n if (!object.__flags) {\n object.__flags = Object.create(null);\n }\n\n includeAll = arguments.length === 3 ? includeAll : true;\n\n for (var flag in flags) {\n if (includeAll ||\n (flag !== 'object' && flag !== 'ssfi' && flag !== 'lockSsfi' && flag != 'message')) {\n object.__flags[flag] = flags[flag];\n }\n }\n};\n","'use strict';\n/* globals Symbol: false, Uint8Array: false, WeakMap: false */\n/*!\n * deep-eql\n * Copyright(c) 2013 Jake Luer \n * MIT Licensed\n */\n\nvar type = require('type-detect');\nfunction FakeMap() {\n this._key = 'chai/deep-eql__' + Math.random() + Date.now();\n}\n\nFakeMap.prototype = {\n get: function get(key) {\n return key[this._key];\n },\n set: function set(key, value) {\n if (Object.isExtensible(key)) {\n Object.defineProperty(key, this._key, {\n value: value,\n configurable: true,\n });\n }\n },\n};\n\nvar MemoizeMap = typeof WeakMap === 'function' ? WeakMap : FakeMap;\n/*!\n * Check to see if the MemoizeMap has recorded a result of the two operands\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {MemoizeMap} memoizeMap\n * @returns {Boolean|null} result\n*/\nfunction memoizeCompare(leftHandOperand, rightHandOperand, memoizeMap) {\n // Technically, WeakMap keys can *only* be objects, not primitives.\n if (!memoizeMap || isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) {\n return null;\n }\n var leftHandMap = memoizeMap.get(leftHandOperand);\n if (leftHandMap) {\n var result = leftHandMap.get(rightHandOperand);\n if (typeof result === 'boolean') {\n return result;\n }\n }\n return null;\n}\n\n/*!\n * Set the result of the equality into the MemoizeMap\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {MemoizeMap} memoizeMap\n * @param {Boolean} result\n*/\nfunction memoizeSet(leftHandOperand, rightHandOperand, memoizeMap, result) {\n // Technically, WeakMap keys can *only* be objects, not primitives.\n if (!memoizeMap || isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) {\n return;\n }\n var leftHandMap = memoizeMap.get(leftHandOperand);\n if (leftHandMap) {\n leftHandMap.set(rightHandOperand, result);\n } else {\n leftHandMap = new MemoizeMap();\n leftHandMap.set(rightHandOperand, result);\n memoizeMap.set(leftHandOperand, leftHandMap);\n }\n}\n\n/*!\n * Primary Export\n */\n\nmodule.exports = deepEqual;\nmodule.exports.MemoizeMap = MemoizeMap;\n\n/**\n * Assert deeply nested sameValue equality between two objects of any type.\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {Object} [options] (optional) Additional options\n * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.\n * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of\n complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular\n references to blow the stack.\n * @return {Boolean} equal match\n */\nfunction deepEqual(leftHandOperand, rightHandOperand, options) {\n // If we have a comparator, we can't assume anything; so bail to its check first.\n if (options && options.comparator) {\n return extensiveDeepEqual(leftHandOperand, rightHandOperand, options);\n }\n\n var simpleResult = simpleEqual(leftHandOperand, rightHandOperand);\n if (simpleResult !== null) {\n return simpleResult;\n }\n\n // Deeper comparisons are pushed through to a larger function\n return extensiveDeepEqual(leftHandOperand, rightHandOperand, options);\n}\n\n/**\n * Many comparisons can be canceled out early via simple equality or primitive checks.\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @return {Boolean|null} equal match\n */\nfunction simpleEqual(leftHandOperand, rightHandOperand) {\n // Equal references (except for Numbers) can be returned early\n if (leftHandOperand === rightHandOperand) {\n // Handle +-0 cases\n return leftHandOperand !== 0 || 1 / leftHandOperand === 1 / rightHandOperand;\n }\n\n // handle NaN cases\n if (\n leftHandOperand !== leftHandOperand && // eslint-disable-line no-self-compare\n rightHandOperand !== rightHandOperand // eslint-disable-line no-self-compare\n ) {\n return true;\n }\n\n // Anything that is not an 'object', i.e. symbols, functions, booleans, numbers,\n // strings, and undefined, can be compared by reference.\n if (isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) {\n // Easy out b/c it would have passed the first equality check\n return false;\n }\n return null;\n}\n\n/*!\n * The main logic of the `deepEqual` function.\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {Object} [options] (optional) Additional options\n * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.\n * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of\n complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular\n references to blow the stack.\n * @return {Boolean} equal match\n*/\nfunction extensiveDeepEqual(leftHandOperand, rightHandOperand, options) {\n options = options || {};\n options.memoize = options.memoize === false ? false : options.memoize || new MemoizeMap();\n var comparator = options && options.comparator;\n\n // Check if a memoized result exists.\n var memoizeResultLeft = memoizeCompare(leftHandOperand, rightHandOperand, options.memoize);\n if (memoizeResultLeft !== null) {\n return memoizeResultLeft;\n }\n var memoizeResultRight = memoizeCompare(rightHandOperand, leftHandOperand, options.memoize);\n if (memoizeResultRight !== null) {\n return memoizeResultRight;\n }\n\n // If a comparator is present, use it.\n if (comparator) {\n var comparatorResult = comparator(leftHandOperand, rightHandOperand);\n // Comparators may return null, in which case we want to go back to default behavior.\n if (comparatorResult === false || comparatorResult === true) {\n memoizeSet(leftHandOperand, rightHandOperand, options.memoize, comparatorResult);\n return comparatorResult;\n }\n // To allow comparators to override *any* behavior, we ran them first. Since it didn't decide\n // what to do, we need to make sure to return the basic tests first before we move on.\n var simpleResult = simpleEqual(leftHandOperand, rightHandOperand);\n if (simpleResult !== null) {\n // Don't memoize this, it takes longer to set/retrieve than to just compare.\n return simpleResult;\n }\n }\n\n var leftHandType = type(leftHandOperand);\n if (leftHandType !== type(rightHandOperand)) {\n memoizeSet(leftHandOperand, rightHandOperand, options.memoize, false);\n return false;\n }\n\n // Temporarily set the operands in the memoize object to prevent blowing the stack\n memoizeSet(leftHandOperand, rightHandOperand, options.memoize, true);\n\n var result = extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options);\n memoizeSet(leftHandOperand, rightHandOperand, options.memoize, result);\n return result;\n}\n\nfunction extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options) {\n switch (leftHandType) {\n case 'String':\n case 'Number':\n case 'Boolean':\n case 'Date':\n // If these types are their instance types (e.g. `new Number`) then re-deepEqual against their values\n return deepEqual(leftHandOperand.valueOf(), rightHandOperand.valueOf());\n case 'Promise':\n case 'Symbol':\n case 'function':\n case 'WeakMap':\n case 'WeakSet':\n return leftHandOperand === rightHandOperand;\n case 'Error':\n return keysEqual(leftHandOperand, rightHandOperand, [ 'name', 'message', 'code' ], options);\n case 'Arguments':\n case 'Int8Array':\n case 'Uint8Array':\n case 'Uint8ClampedArray':\n case 'Int16Array':\n case 'Uint16Array':\n case 'Int32Array':\n case 'Uint32Array':\n case 'Float32Array':\n case 'Float64Array':\n case 'Array':\n return iterableEqual(leftHandOperand, rightHandOperand, options);\n case 'RegExp':\n return regexpEqual(leftHandOperand, rightHandOperand);\n case 'Generator':\n return generatorEqual(leftHandOperand, rightHandOperand, options);\n case 'DataView':\n return iterableEqual(new Uint8Array(leftHandOperand.buffer), new Uint8Array(rightHandOperand.buffer), options);\n case 'ArrayBuffer':\n return iterableEqual(new Uint8Array(leftHandOperand), new Uint8Array(rightHandOperand), options);\n case 'Set':\n return entriesEqual(leftHandOperand, rightHandOperand, options);\n case 'Map':\n return entriesEqual(leftHandOperand, rightHandOperand, options);\n case 'Temporal.PlainDate':\n case 'Temporal.PlainTime':\n case 'Temporal.PlainDateTime':\n case 'Temporal.Instant':\n case 'Temporal.ZonedDateTime':\n case 'Temporal.PlainYearMonth':\n case 'Temporal.PlainMonthDay':\n return leftHandOperand.equals(rightHandOperand);\n case 'Temporal.Duration':\n return leftHandOperand.total('nanoseconds') === rightHandOperand.total('nanoseconds');\n case 'Temporal.TimeZone':\n case 'Temporal.Calendar':\n return leftHandOperand.toString() === rightHandOperand.toString();\n default:\n return objectEqual(leftHandOperand, rightHandOperand, options);\n }\n}\n\n/*!\n * Compare two Regular Expressions for equality.\n *\n * @param {RegExp} leftHandOperand\n * @param {RegExp} rightHandOperand\n * @return {Boolean} result\n */\n\nfunction regexpEqual(leftHandOperand, rightHandOperand) {\n return leftHandOperand.toString() === rightHandOperand.toString();\n}\n\n/*!\n * Compare two Sets/Maps for equality. Faster than other equality functions.\n *\n * @param {Set} leftHandOperand\n * @param {Set} rightHandOperand\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n */\n\nfunction entriesEqual(leftHandOperand, rightHandOperand, options) {\n // IE11 doesn't support Set#entries or Set#@@iterator, so we need manually populate using Set#forEach\n if (leftHandOperand.size !== rightHandOperand.size) {\n return false;\n }\n if (leftHandOperand.size === 0) {\n return true;\n }\n var leftHandItems = [];\n var rightHandItems = [];\n leftHandOperand.forEach(function gatherEntries(key, value) {\n leftHandItems.push([ key, value ]);\n });\n rightHandOperand.forEach(function gatherEntries(key, value) {\n rightHandItems.push([ key, value ]);\n });\n return iterableEqual(leftHandItems.sort(), rightHandItems.sort(), options);\n}\n\n/*!\n * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.\n *\n * @param {Iterable} leftHandOperand\n * @param {Iterable} rightHandOperand\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n */\n\nfunction iterableEqual(leftHandOperand, rightHandOperand, options) {\n var length = leftHandOperand.length;\n if (length !== rightHandOperand.length) {\n return false;\n }\n if (length === 0) {\n return true;\n }\n var index = -1;\n while (++index < length) {\n if (deepEqual(leftHandOperand[index], rightHandOperand[index], options) === false) {\n return false;\n }\n }\n return true;\n}\n\n/*!\n * Simple equality for generator objects such as those returned by generator functions.\n *\n * @param {Iterable} leftHandOperand\n * @param {Iterable} rightHandOperand\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n */\n\nfunction generatorEqual(leftHandOperand, rightHandOperand, options) {\n return iterableEqual(getGeneratorEntries(leftHandOperand), getGeneratorEntries(rightHandOperand), options);\n}\n\n/*!\n * Determine if the given object has an @@iterator function.\n *\n * @param {Object} target\n * @return {Boolean} `true` if the object has an @@iterator function.\n */\nfunction hasIteratorFunction(target) {\n return typeof Symbol !== 'undefined' &&\n typeof target === 'object' &&\n typeof Symbol.iterator !== 'undefined' &&\n typeof target[Symbol.iterator] === 'function';\n}\n\n/*!\n * Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.\n * This will consume the iterator - which could have side effects depending on the @@iterator implementation.\n *\n * @param {Object} target\n * @returns {Array} an array of entries from the @@iterator function\n */\nfunction getIteratorEntries(target) {\n if (hasIteratorFunction(target)) {\n try {\n return getGeneratorEntries(target[Symbol.iterator]());\n } catch (iteratorError) {\n return [];\n }\n }\n return [];\n}\n\n/*!\n * Gets all entries from a Generator. This will consume the generator - which could have side effects.\n *\n * @param {Generator} target\n * @returns {Array} an array of entries from the Generator.\n */\nfunction getGeneratorEntries(generator) {\n var generatorResult = generator.next();\n var accumulator = [ generatorResult.value ];\n while (generatorResult.done === false) {\n generatorResult = generator.next();\n accumulator.push(generatorResult.value);\n }\n return accumulator;\n}\n\n/*!\n * Gets all own and inherited enumerable keys from a target.\n *\n * @param {Object} target\n * @returns {Array} an array of own and inherited enumerable keys from the target.\n */\nfunction getEnumerableKeys(target) {\n var keys = [];\n for (var key in target) {\n keys.push(key);\n }\n return keys;\n}\n\nfunction getEnumerableSymbols(target) {\n var keys = [];\n var allKeys = Object.getOwnPropertySymbols(target);\n for (var i = 0; i < allKeys.length; i += 1) {\n var key = allKeys[i];\n if (Object.getOwnPropertyDescriptor(target, key).enumerable) {\n keys.push(key);\n }\n }\n return keys;\n}\n\n/*!\n * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of\n * each key. If any value of the given key is not equal, the function will return false (early).\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n */\nfunction keysEqual(leftHandOperand, rightHandOperand, keys, options) {\n var length = keys.length;\n if (length === 0) {\n return true;\n }\n for (var i = 0; i < length; i += 1) {\n if (deepEqual(leftHandOperand[keys[i]], rightHandOperand[keys[i]], options) === false) {\n return false;\n }\n }\n return true;\n}\n\n/*!\n * Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`\n * for each enumerable key in the object.\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n */\nfunction objectEqual(leftHandOperand, rightHandOperand, options) {\n var leftHandKeys = getEnumerableKeys(leftHandOperand);\n var rightHandKeys = getEnumerableKeys(rightHandOperand);\n var leftHandSymbols = getEnumerableSymbols(leftHandOperand);\n var rightHandSymbols = getEnumerableSymbols(rightHandOperand);\n leftHandKeys = leftHandKeys.concat(leftHandSymbols);\n rightHandKeys = rightHandKeys.concat(rightHandSymbols);\n\n if (leftHandKeys.length && leftHandKeys.length === rightHandKeys.length) {\n if (iterableEqual(mapSymbols(leftHandKeys).sort(), mapSymbols(rightHandKeys).sort()) === false) {\n return false;\n }\n return keysEqual(leftHandOperand, rightHandOperand, leftHandKeys, options);\n }\n\n var leftHandEntries = getIteratorEntries(leftHandOperand);\n var rightHandEntries = getIteratorEntries(rightHandOperand);\n if (leftHandEntries.length && leftHandEntries.length === rightHandEntries.length) {\n leftHandEntries.sort();\n rightHandEntries.sort();\n return iterableEqual(leftHandEntries, rightHandEntries, options);\n }\n\n if (leftHandKeys.length === 0 &&\n leftHandEntries.length === 0 &&\n rightHandKeys.length === 0 &&\n rightHandEntries.length === 0) {\n return true;\n }\n\n return false;\n}\n\n/*!\n * Returns true if the argument is a primitive.\n *\n * This intentionally returns true for all objects that can be compared by reference,\n * including functions and symbols.\n *\n * @param {Mixed} value\n * @return {Boolean} result\n */\nfunction isPrimitive(value) {\n return value === null || typeof value !== 'object';\n}\n\nfunction mapSymbols(arr) {\n return arr.map(function mapSymbol(entry) {\n if (typeof entry === 'symbol') {\n return entry.toString();\n }\n\n return entry;\n });\n}\n","var config = require('../config');\n\n/*!\n * Chai - isProxyEnabled helper\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .isProxyEnabled()\n *\n * Helper function to check if Chai's proxy protection feature is enabled. If\n * proxies are unsupported or disabled via the user's Chai config, then return\n * false. Otherwise, return true.\n *\n * @namespace Utils\n * @name isProxyEnabled\n */\n\nmodule.exports = function isProxyEnabled() {\n return config.useProxy &&\n typeof Proxy !== 'undefined' &&\n typeof Reflect !== 'undefined';\n};\n","/*!\n * Chai - addProperty utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\nvar chai = require('../../chai');\nvar flag = require('./flag');\nvar isProxyEnabled = require('./isProxyEnabled');\nvar transferFlags = require('./transferFlags');\n\n/**\n * ### .addProperty(ctx, name, getter)\n *\n * Adds a property to the prototype of an object.\n *\n * utils.addProperty(chai.Assertion.prototype, 'foo', function () {\n * var obj = utils.flag(this, 'object');\n * new chai.Assertion(obj).to.be.instanceof(Foo);\n * });\n *\n * Can also be accessed directly from `chai.Assertion`.\n *\n * chai.Assertion.addProperty('foo', fn);\n *\n * Then can be used as any other assertion.\n *\n * expect(myFoo).to.be.foo;\n *\n * @param {Object} ctx object to which the property is added\n * @param {String} name of property to add\n * @param {Function} getter function to be used for name\n * @namespace Utils\n * @name addProperty\n * @api public\n */\n\nmodule.exports = function addProperty(ctx, name, getter) {\n getter = getter === undefined ? function () {} : getter;\n\n Object.defineProperty(ctx, name,\n { get: function propertyGetter() {\n // Setting the `ssfi` flag to `propertyGetter` causes this function to\n // be the starting point for removing implementation frames from the\n // stack trace of a failed assertion.\n //\n // However, we only want to use this function as the starting point if\n // the `lockSsfi` flag isn't set and proxy protection is disabled.\n //\n // If the `lockSsfi` flag is set, then either this assertion has been\n // overwritten by another assertion, or this assertion is being invoked\n // from inside of another assertion. In the first case, the `ssfi` flag\n // has already been set by the overwriting assertion. In the second\n // case, the `ssfi` flag has already been set by the outer assertion.\n //\n // If proxy protection is enabled, then the `ssfi` flag has already been\n // set by the proxy getter.\n if (!isProxyEnabled() && !flag(this, 'lockSsfi')) {\n flag(this, 'ssfi', propertyGetter);\n }\n\n var result = getter.call(this);\n if (result !== undefined)\n return result;\n\n var newAssertion = new chai.Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }\n , configurable: true\n });\n};\n","var fnLengthDesc = Object.getOwnPropertyDescriptor(function () {}, 'length');\n\n/*!\n * Chai - addLengthGuard utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .addLengthGuard(fn, assertionName, isChainable)\n *\n * Define `length` as a getter on the given uninvoked method assertion. The\n * getter acts as a guard against chaining `length` directly off of an uninvoked\n * method assertion, which is a problem because it references `function`'s\n * built-in `length` property instead of Chai's `length` assertion. When the\n * getter catches the user making this mistake, it throws an error with a\n * helpful message.\n *\n * There are two ways in which this mistake can be made. The first way is by\n * chaining the `length` assertion directly off of an uninvoked chainable\n * method. In this case, Chai suggests that the user use `lengthOf` instead. The\n * second way is by chaining the `length` assertion directly off of an uninvoked\n * non-chainable method. Non-chainable methods must be invoked prior to\n * chaining. In this case, Chai suggests that the user consult the docs for the\n * given assertion.\n *\n * If the `length` property of functions is unconfigurable, then return `fn`\n * without modification.\n *\n * Note that in ES6, the function's `length` property is configurable, so once\n * support for legacy environments is dropped, Chai's `length` property can\n * replace the built-in function's `length` property, and this length guard will\n * no longer be necessary. In the mean time, maintaining consistency across all\n * environments is the priority.\n *\n * @param {Function} fn\n * @param {String} assertionName\n * @param {Boolean} isChainable\n * @namespace Utils\n * @name addLengthGuard\n */\n\nmodule.exports = function addLengthGuard (fn, assertionName, isChainable) {\n if (!fnLengthDesc.configurable) return fn;\n\n Object.defineProperty(fn, 'length', {\n get: function () {\n if (isChainable) {\n throw Error('Invalid Chai property: ' + assertionName + '.length. Due' +\n ' to a compatibility issue, \"length\" cannot directly follow \"' +\n assertionName + '\". Use \"' + assertionName + '.lengthOf\" instead.');\n }\n\n throw Error('Invalid Chai property: ' + assertionName + '.length. See' +\n ' docs for proper usage of \"' + assertionName + '\".');\n }\n });\n\n return fn;\n};\n","/*!\n * Chai - getProperties utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .getProperties(object)\n *\n * This allows the retrieval of property names of an object, enumerable or not,\n * inherited or not.\n *\n * @param {Object} object\n * @returns {Array}\n * @namespace Utils\n * @name getProperties\n * @api public\n */\n\nmodule.exports = function getProperties(object) {\n var result = Object.getOwnPropertyNames(object);\n\n function addProperty(property) {\n if (result.indexOf(property) === -1) {\n result.push(property);\n }\n }\n\n var proto = Object.getPrototypeOf(object);\n while (proto !== null) {\n Object.getOwnPropertyNames(proto).forEach(addProperty);\n proto = Object.getPrototypeOf(proto);\n }\n\n return result;\n};\n","var config = require('../config');\nvar flag = require('./flag');\nvar getProperties = require('./getProperties');\nvar isProxyEnabled = require('./isProxyEnabled');\n\n/*!\n * Chai - proxify utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .proxify(object)\n *\n * Return a proxy of given object that throws an error when a non-existent\n * property is read. By default, the root cause is assumed to be a misspelled\n * property, and thus an attempt is made to offer a reasonable suggestion from\n * the list of existing properties. However, if a nonChainableMethodName is\n * provided, then the root cause is instead a failure to invoke a non-chainable\n * method prior to reading the non-existent property.\n *\n * If proxies are unsupported or disabled via the user's Chai config, then\n * return object without modification.\n *\n * @param {Object} obj\n * @param {String} nonChainableMethodName\n * @namespace Utils\n * @name proxify\n */\n\nvar builtins = ['__flags', '__methods', '_obj', 'assert'];\n\nmodule.exports = function proxify(obj, nonChainableMethodName) {\n if (!isProxyEnabled()) return obj;\n\n return new Proxy(obj, {\n get: function proxyGetter(target, property) {\n // This check is here because we should not throw errors on Symbol properties\n // such as `Symbol.toStringTag`.\n // The values for which an error should be thrown can be configured using\n // the `config.proxyExcludedKeys` setting.\n if (typeof property === 'string' &&\n config.proxyExcludedKeys.indexOf(property) === -1 &&\n !Reflect.has(target, property)) {\n // Special message for invalid property access of non-chainable methods.\n if (nonChainableMethodName) {\n throw Error('Invalid Chai property: ' + nonChainableMethodName + '.' +\n property + '. See docs for proper usage of \"' +\n nonChainableMethodName + '\".');\n }\n\n // If the property is reasonably close to an existing Chai property,\n // suggest that property to the user. Only suggest properties with a\n // distance less than 4.\n var suggestion = null;\n var suggestionDistance = 4;\n getProperties(target).forEach(function(prop) {\n if (\n !Object.prototype.hasOwnProperty(prop) &&\n builtins.indexOf(prop) === -1\n ) {\n var dist = stringDistanceCapped(\n property,\n prop,\n suggestionDistance\n );\n if (dist < suggestionDistance) {\n suggestion = prop;\n suggestionDistance = dist;\n }\n }\n });\n\n if (suggestion !== null) {\n throw Error('Invalid Chai property: ' + property +\n '. Did you mean \"' + suggestion + '\"?');\n } else {\n throw Error('Invalid Chai property: ' + property);\n }\n }\n\n // Use this proxy getter as the starting point for removing implementation\n // frames from the stack trace of a failed assertion. For property\n // assertions, this prevents the proxy getter from showing up in the stack\n // trace since it's invoked before the property getter. For method and\n // chainable method assertions, this flag will end up getting changed to\n // the method wrapper, which is good since this frame will no longer be in\n // the stack once the method is invoked. Note that Chai builtin assertion\n // properties such as `__flags` are skipped since this is only meant to\n // capture the starting point of an assertion. This step is also skipped\n // if the `lockSsfi` flag is set, thus indicating that this assertion is\n // being called from within another assertion. In that case, the `ssfi`\n // flag is already set to the outer assertion's starting point.\n if (builtins.indexOf(property) === -1 && !flag(target, 'lockSsfi')) {\n flag(target, 'ssfi', proxyGetter);\n }\n\n return Reflect.get(target, property);\n }\n });\n};\n\n/**\n * # stringDistanceCapped(strA, strB, cap)\n * Return the Levenshtein distance between two strings, but no more than cap.\n * @param {string} strA\n * @param {string} strB\n * @param {number} number\n * @return {number} min(string distance between strA and strB, cap)\n * @api private\n */\n\nfunction stringDistanceCapped(strA, strB, cap) {\n if (Math.abs(strA.length - strB.length) >= cap) {\n return cap;\n }\n\n var memo = [];\n // `memo` is a two-dimensional array containing distances.\n // memo[i][j] is the distance between strA.slice(0, i) and\n // strB.slice(0, j).\n for (var i = 0; i <= strA.length; i++) {\n memo[i] = Array(strB.length + 1).fill(0);\n memo[i][0] = i;\n }\n for (var j = 0; j < strB.length; j++) {\n memo[0][j] = j;\n }\n\n for (var i = 1; i <= strA.length; i++) {\n var ch = strA.charCodeAt(i - 1);\n for (var j = 1; j <= strB.length; j++) {\n if (Math.abs(i - j) >= cap) {\n memo[i][j] = cap;\n continue;\n }\n memo[i][j] = Math.min(\n memo[i - 1][j] + 1,\n memo[i][j - 1] + 1,\n memo[i - 1][j - 1] +\n (ch === strB.charCodeAt(j - 1) ? 0 : 1)\n );\n }\n }\n\n return memo[strA.length][strB.length];\n}\n","/*!\n * Chai - addMethod utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\nvar addLengthGuard = require('./addLengthGuard');\nvar chai = require('../../chai');\nvar flag = require('./flag');\nvar proxify = require('./proxify');\nvar transferFlags = require('./transferFlags');\n\n/**\n * ### .addMethod(ctx, name, method)\n *\n * Adds a method to the prototype of an object.\n *\n * utils.addMethod(chai.Assertion.prototype, 'foo', function (str) {\n * var obj = utils.flag(this, 'object');\n * new chai.Assertion(obj).to.be.equal(str);\n * });\n *\n * Can also be accessed directly from `chai.Assertion`.\n *\n * chai.Assertion.addMethod('foo', fn);\n *\n * Then can be used as any other assertion.\n *\n * expect(fooStr).to.be.foo('bar');\n *\n * @param {Object} ctx object to which the method is added\n * @param {String} name of method to add\n * @param {Function} method function to be used for name\n * @namespace Utils\n * @name addMethod\n * @api public\n */\n\nmodule.exports = function addMethod(ctx, name, method) {\n var methodWrapper = function () {\n // Setting the `ssfi` flag to `methodWrapper` causes this function to be the\n // starting point for removing implementation frames from the stack trace of\n // a failed assertion.\n //\n // However, we only want to use this function as the starting point if the\n // `lockSsfi` flag isn't set.\n //\n // If the `lockSsfi` flag is set, then either this assertion has been\n // overwritten by another assertion, or this assertion is being invoked from\n // inside of another assertion. In the first case, the `ssfi` flag has\n // already been set by the overwriting assertion. In the second case, the\n // `ssfi` flag has already been set by the outer assertion.\n if (!flag(this, 'lockSsfi')) {\n flag(this, 'ssfi', methodWrapper);\n }\n\n var result = method.apply(this, arguments);\n if (result !== undefined)\n return result;\n\n var newAssertion = new chai.Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n };\n\n addLengthGuard(methodWrapper, name, false);\n ctx[name] = proxify(methodWrapper, name);\n};\n","/*!\n * Chai - overwriteProperty utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\nvar chai = require('../../chai');\nvar flag = require('./flag');\nvar isProxyEnabled = require('./isProxyEnabled');\nvar transferFlags = require('./transferFlags');\n\n/**\n * ### .overwriteProperty(ctx, name, fn)\n *\n * Overwrites an already existing property getter and provides\n * access to previous value. Must return function to use as getter.\n *\n * utils.overwriteProperty(chai.Assertion.prototype, 'ok', function (_super) {\n * return function () {\n * var obj = utils.flag(this, 'object');\n * if (obj instanceof Foo) {\n * new chai.Assertion(obj.name).to.equal('bar');\n * } else {\n * _super.call(this);\n * }\n * }\n * });\n *\n *\n * Can also be accessed directly from `chai.Assertion`.\n *\n * chai.Assertion.overwriteProperty('foo', fn);\n *\n * Then can be used as any other assertion.\n *\n * expect(myFoo).to.be.ok;\n *\n * @param {Object} ctx object whose property is to be overwritten\n * @param {String} name of property to overwrite\n * @param {Function} getter function that returns a getter function to be used for name\n * @namespace Utils\n * @name overwriteProperty\n * @api public\n */\n\nmodule.exports = function overwriteProperty(ctx, name, getter) {\n var _get = Object.getOwnPropertyDescriptor(ctx, name)\n , _super = function () {};\n\n if (_get && 'function' === typeof _get.get)\n _super = _get.get\n\n Object.defineProperty(ctx, name,\n { get: function overwritingPropertyGetter() {\n // Setting the `ssfi` flag to `overwritingPropertyGetter` causes this\n // function to be the starting point for removing implementation frames\n // from the stack trace of a failed assertion.\n //\n // However, we only want to use this function as the starting point if\n // the `lockSsfi` flag isn't set and proxy protection is disabled.\n //\n // If the `lockSsfi` flag is set, then either this assertion has been\n // overwritten by another assertion, or this assertion is being invoked\n // from inside of another assertion. In the first case, the `ssfi` flag\n // has already been set by the overwriting assertion. In the second\n // case, the `ssfi` flag has already been set by the outer assertion.\n //\n // If proxy protection is enabled, then the `ssfi` flag has already been\n // set by the proxy getter.\n if (!isProxyEnabled() && !flag(this, 'lockSsfi')) {\n flag(this, 'ssfi', overwritingPropertyGetter);\n }\n\n // Setting the `lockSsfi` flag to `true` prevents the overwritten\n // assertion from changing the `ssfi` flag. By this point, the `ssfi`\n // flag is already set to the correct starting point for this assertion.\n var origLockSsfi = flag(this, 'lockSsfi');\n flag(this, 'lockSsfi', true);\n var result = getter(_super).call(this);\n flag(this, 'lockSsfi', origLockSsfi);\n\n if (result !== undefined) {\n return result;\n }\n\n var newAssertion = new chai.Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }\n , configurable: true\n });\n};\n","/*!\n * Chai - overwriteMethod utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\nvar addLengthGuard = require('./addLengthGuard');\nvar chai = require('../../chai');\nvar flag = require('./flag');\nvar proxify = require('./proxify');\nvar transferFlags = require('./transferFlags');\n\n/**\n * ### .overwriteMethod(ctx, name, fn)\n *\n * Overwrites an already existing method and provides\n * access to previous function. Must return function\n * to be used for name.\n *\n * utils.overwriteMethod(chai.Assertion.prototype, 'equal', function (_super) {\n * return function (str) {\n * var obj = utils.flag(this, 'object');\n * if (obj instanceof Foo) {\n * new chai.Assertion(obj.value).to.equal(str);\n * } else {\n * _super.apply(this, arguments);\n * }\n * }\n * });\n *\n * Can also be accessed directly from `chai.Assertion`.\n *\n * chai.Assertion.overwriteMethod('foo', fn);\n *\n * Then can be used as any other assertion.\n *\n * expect(myFoo).to.equal('bar');\n *\n * @param {Object} ctx object whose method is to be overwritten\n * @param {String} name of method to overwrite\n * @param {Function} method function that returns a function to be used for name\n * @namespace Utils\n * @name overwriteMethod\n * @api public\n */\n\nmodule.exports = function overwriteMethod(ctx, name, method) {\n var _method = ctx[name]\n , _super = function () {\n throw new Error(name + ' is not a function');\n };\n\n if (_method && 'function' === typeof _method)\n _super = _method;\n\n var overwritingMethodWrapper = function () {\n // Setting the `ssfi` flag to `overwritingMethodWrapper` causes this\n // function to be the starting point for removing implementation frames from\n // the stack trace of a failed assertion.\n //\n // However, we only want to use this function as the starting point if the\n // `lockSsfi` flag isn't set.\n //\n // If the `lockSsfi` flag is set, then either this assertion has been\n // overwritten by another assertion, or this assertion is being invoked from\n // inside of another assertion. In the first case, the `ssfi` flag has\n // already been set by the overwriting assertion. In the second case, the\n // `ssfi` flag has already been set by the outer assertion.\n if (!flag(this, 'lockSsfi')) {\n flag(this, 'ssfi', overwritingMethodWrapper);\n }\n\n // Setting the `lockSsfi` flag to `true` prevents the overwritten assertion\n // from changing the `ssfi` flag. By this point, the `ssfi` flag is already\n // set to the correct starting point for this assertion.\n var origLockSsfi = flag(this, 'lockSsfi');\n flag(this, 'lockSsfi', true);\n var result = method(_super).apply(this, arguments);\n flag(this, 'lockSsfi', origLockSsfi);\n\n if (result !== undefined) {\n return result;\n }\n\n var newAssertion = new chai.Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }\n\n addLengthGuard(overwritingMethodWrapper, name, false);\n ctx[name] = proxify(overwritingMethodWrapper, name);\n};\n","/*!\n * Chai - addChainingMethod utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/*!\n * Module dependencies\n */\n\nvar addLengthGuard = require('./addLengthGuard');\nvar chai = require('../../chai');\nvar flag = require('./flag');\nvar proxify = require('./proxify');\nvar transferFlags = require('./transferFlags');\n\n/*!\n * Module variables\n */\n\n// Check whether `Object.setPrototypeOf` is supported\nvar canSetPrototype = typeof Object.setPrototypeOf === 'function';\n\n// Without `Object.setPrototypeOf` support, this module will need to add properties to a function.\n// However, some of functions' own props are not configurable and should be skipped.\nvar testFn = function() {};\nvar excludeNames = Object.getOwnPropertyNames(testFn).filter(function(name) {\n var propDesc = Object.getOwnPropertyDescriptor(testFn, name);\n\n // Note: PhantomJS 1.x includes `callee` as one of `testFn`'s own properties,\n // but then returns `undefined` as the property descriptor for `callee`. As a\n // workaround, we perform an otherwise unnecessary type-check for `propDesc`,\n // and then filter it out if it's not an object as it should be.\n if (typeof propDesc !== 'object')\n return true;\n\n return !propDesc.configurable;\n});\n\n// Cache `Function` properties\nvar call = Function.prototype.call,\n apply = Function.prototype.apply;\n\n/**\n * ### .addChainableMethod(ctx, name, method, chainingBehavior)\n *\n * Adds a method to an object, such that the method can also be chained.\n *\n * utils.addChainableMethod(chai.Assertion.prototype, 'foo', function (str) {\n * var obj = utils.flag(this, 'object');\n * new chai.Assertion(obj).to.be.equal(str);\n * });\n *\n * Can also be accessed directly from `chai.Assertion`.\n *\n * chai.Assertion.addChainableMethod('foo', fn, chainingBehavior);\n *\n * The result can then be used as both a method assertion, executing both `method` and\n * `chainingBehavior`, or as a language chain, which only executes `chainingBehavior`.\n *\n * expect(fooStr).to.be.foo('bar');\n * expect(fooStr).to.be.foo.equal('foo');\n *\n * @param {Object} ctx object to which the method is added\n * @param {String} name of method to add\n * @param {Function} method function to be used for `name`, when called\n * @param {Function} chainingBehavior function to be called every time the property is accessed\n * @namespace Utils\n * @name addChainableMethod\n * @api public\n */\n\nmodule.exports = function addChainableMethod(ctx, name, method, chainingBehavior) {\n if (typeof chainingBehavior !== 'function') {\n chainingBehavior = function () { };\n }\n\n var chainableBehavior = {\n method: method\n , chainingBehavior: chainingBehavior\n };\n\n // save the methods so we can overwrite them later, if we need to.\n if (!ctx.__methods) {\n ctx.__methods = {};\n }\n ctx.__methods[name] = chainableBehavior;\n\n Object.defineProperty(ctx, name,\n { get: function chainableMethodGetter() {\n chainableBehavior.chainingBehavior.call(this);\n\n var chainableMethodWrapper = function () {\n // Setting the `ssfi` flag to `chainableMethodWrapper` causes this\n // function to be the starting point for removing implementation\n // frames from the stack trace of a failed assertion.\n //\n // However, we only want to use this function as the starting point if\n // the `lockSsfi` flag isn't set.\n //\n // If the `lockSsfi` flag is set, then this assertion is being\n // invoked from inside of another assertion. In this case, the `ssfi`\n // flag has already been set by the outer assertion.\n //\n // Note that overwriting a chainable method merely replaces the saved\n // methods in `ctx.__methods` instead of completely replacing the\n // overwritten assertion. Therefore, an overwriting assertion won't\n // set the `ssfi` or `lockSsfi` flags.\n if (!flag(this, 'lockSsfi')) {\n flag(this, 'ssfi', chainableMethodWrapper);\n }\n\n var result = chainableBehavior.method.apply(this, arguments);\n if (result !== undefined) {\n return result;\n }\n\n var newAssertion = new chai.Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n };\n\n addLengthGuard(chainableMethodWrapper, name, true);\n\n // Use `Object.setPrototypeOf` if available\n if (canSetPrototype) {\n // Inherit all properties from the object by replacing the `Function` prototype\n var prototype = Object.create(this);\n // Restore the `call` and `apply` methods from `Function`\n prototype.call = call;\n prototype.apply = apply;\n Object.setPrototypeOf(chainableMethodWrapper, prototype);\n }\n // Otherwise, redefine all properties (slow!)\n else {\n var asserterNames = Object.getOwnPropertyNames(ctx);\n asserterNames.forEach(function (asserterName) {\n if (excludeNames.indexOf(asserterName) !== -1) {\n return;\n }\n\n var pd = Object.getOwnPropertyDescriptor(ctx, asserterName);\n Object.defineProperty(chainableMethodWrapper, asserterName, pd);\n });\n }\n\n transferFlags(this, chainableMethodWrapper);\n return proxify(chainableMethodWrapper);\n }\n , configurable: true\n });\n};\n","/*!\n * Chai - overwriteChainableMethod utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\nvar chai = require('../../chai');\nvar transferFlags = require('./transferFlags');\n\n/**\n * ### .overwriteChainableMethod(ctx, name, method, chainingBehavior)\n *\n * Overwrites an already existing chainable method\n * and provides access to the previous function or\n * property. Must return functions to be used for\n * name.\n *\n * utils.overwriteChainableMethod(chai.Assertion.prototype, 'lengthOf',\n * function (_super) {\n * }\n * , function (_super) {\n * }\n * );\n *\n * Can also be accessed directly from `chai.Assertion`.\n *\n * chai.Assertion.overwriteChainableMethod('foo', fn, fn);\n *\n * Then can be used as any other assertion.\n *\n * expect(myFoo).to.have.lengthOf(3);\n * expect(myFoo).to.have.lengthOf.above(3);\n *\n * @param {Object} ctx object whose method / property is to be overwritten\n * @param {String} name of method / property to overwrite\n * @param {Function} method function that returns a function to be used for name\n * @param {Function} chainingBehavior function that returns a function to be used for property\n * @namespace Utils\n * @name overwriteChainableMethod\n * @api public\n */\n\nmodule.exports = function overwriteChainableMethod(ctx, name, method, chainingBehavior) {\n var chainableBehavior = ctx.__methods[name];\n\n var _chainingBehavior = chainableBehavior.chainingBehavior;\n chainableBehavior.chainingBehavior = function overwritingChainableMethodGetter() {\n var result = chainingBehavior(_chainingBehavior).call(this);\n if (result !== undefined) {\n return result;\n }\n\n var newAssertion = new chai.Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n };\n\n var _method = chainableBehavior.method;\n chainableBehavior.method = function overwritingChainableMethodWrapper() {\n var result = method(_method).apply(this, arguments);\n if (result !== undefined) {\n return result;\n }\n\n var newAssertion = new chai.Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n };\n};\n","/*!\n * Chai - compareByInspect utility\n * Copyright(c) 2011-2016 Jake Luer \n * MIT Licensed\n */\n\n/*!\n * Module dependencies\n */\n\nvar inspect = require('./inspect');\n\n/**\n * ### .compareByInspect(mixed, mixed)\n *\n * To be used as a compareFunction with Array.prototype.sort. Compares elements\n * using inspect instead of default behavior of using toString so that Symbols\n * and objects with irregular/missing toString can still be sorted without a\n * TypeError.\n *\n * @param {Mixed} first element to compare\n * @param {Mixed} second element to compare\n * @returns {Number} -1 if 'a' should come before 'b'; otherwise 1\n * @name compareByInspect\n * @namespace Utils\n * @api public\n */\n\nmodule.exports = function compareByInspect(a, b) {\n return inspect(a) < inspect(b) ? -1 : 1;\n};\n","/*!\n * Chai - getOwnEnumerablePropertySymbols utility\n * Copyright(c) 2011-2016 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .getOwnEnumerablePropertySymbols(object)\n *\n * This allows the retrieval of directly-owned enumerable property symbols of an\n * object. This function is necessary because Object.getOwnPropertySymbols\n * returns both enumerable and non-enumerable property symbols.\n *\n * @param {Object} object\n * @returns {Array}\n * @namespace Utils\n * @name getOwnEnumerablePropertySymbols\n * @api public\n */\n\nmodule.exports = function getOwnEnumerablePropertySymbols(obj) {\n if (typeof Object.getOwnPropertySymbols !== 'function') return [];\n\n return Object.getOwnPropertySymbols(obj).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(obj, sym).enumerable;\n });\n};\n","/*!\n * Chai - getOwnEnumerableProperties utility\n * Copyright(c) 2011-2016 Jake Luer \n * MIT Licensed\n */\n\n/*!\n * Module dependencies\n */\n\nvar getOwnEnumerablePropertySymbols = require('./getOwnEnumerablePropertySymbols');\n\n/**\n * ### .getOwnEnumerableProperties(object)\n *\n * This allows the retrieval of directly-owned enumerable property names and\n * symbols of an object. This function is necessary because Object.keys only\n * returns enumerable property names, not enumerable property symbols.\n *\n * @param {Object} object\n * @returns {Array}\n * @namespace Utils\n * @name getOwnEnumerableProperties\n * @api public\n */\n\nmodule.exports = function getOwnEnumerableProperties(obj) {\n return Object.keys(obj).concat(getOwnEnumerablePropertySymbols(obj));\n};\n","'use strict';\n\n/* !\n * Chai - checkError utility\n * Copyright(c) 2012-2016 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .checkError\n *\n * Checks that an error conforms to a given set of criteria and/or retrieves information about it.\n *\n * @api public\n */\n\n/**\n * ### .compatibleInstance(thrown, errorLike)\n *\n * Checks if two instances are compatible (strict equal).\n * Returns false if errorLike is not an instance of Error, because instances\n * can only be compatible if they're both error instances.\n *\n * @name compatibleInstance\n * @param {Error} thrown error\n * @param {Error|ErrorConstructor} errorLike object to compare against\n * @namespace Utils\n * @api public\n */\n\nfunction compatibleInstance(thrown, errorLike) {\n return errorLike instanceof Error && thrown === errorLike;\n}\n\n/**\n * ### .compatibleConstructor(thrown, errorLike)\n *\n * Checks if two constructors are compatible.\n * This function can receive either an error constructor or\n * an error instance as the `errorLike` argument.\n * Constructors are compatible if they're the same or if one is\n * an instance of another.\n *\n * @name compatibleConstructor\n * @param {Error} thrown error\n * @param {Error|ErrorConstructor} errorLike object to compare against\n * @namespace Utils\n * @api public\n */\n\nfunction compatibleConstructor(thrown, errorLike) {\n if (errorLike instanceof Error) {\n // If `errorLike` is an instance of any error we compare their constructors\n return thrown.constructor === errorLike.constructor || thrown instanceof errorLike.constructor;\n } else if (errorLike.prototype instanceof Error || errorLike === Error) {\n // If `errorLike` is a constructor that inherits from Error, we compare `thrown` to `errorLike` directly\n return thrown.constructor === errorLike || thrown instanceof errorLike;\n }\n\n return false;\n}\n\n/**\n * ### .compatibleMessage(thrown, errMatcher)\n *\n * Checks if an error's message is compatible with a matcher (String or RegExp).\n * If the message contains the String or passes the RegExp test,\n * it is considered compatible.\n *\n * @name compatibleMessage\n * @param {Error} thrown error\n * @param {String|RegExp} errMatcher to look for into the message\n * @namespace Utils\n * @api public\n */\n\nfunction compatibleMessage(thrown, errMatcher) {\n var comparisonString = typeof thrown === 'string' ? thrown : thrown.message;\n if (errMatcher instanceof RegExp) {\n return errMatcher.test(comparisonString);\n } else if (typeof errMatcher === 'string') {\n return comparisonString.indexOf(errMatcher) !== -1; // eslint-disable-line no-magic-numbers\n }\n\n return false;\n}\n\n/**\n * ### .getFunctionName(constructorFn)\n *\n * Returns the name of a function.\n * This also includes a polyfill function if `constructorFn.name` is not defined.\n *\n * @name getFunctionName\n * @param {Function} constructorFn\n * @namespace Utils\n * @api private\n */\n\nvar functionNameMatch = /\\s*function(?:\\s|\\s*\\/\\*[^(?:*\\/)]+\\*\\/\\s*)*([^\\(\\/]+)/;\nfunction getFunctionName(constructorFn) {\n var name = '';\n if (typeof constructorFn.name === 'undefined') {\n // Here we run a polyfill if constructorFn.name is not defined\n var match = String(constructorFn).match(functionNameMatch);\n if (match) {\n name = match[1];\n }\n } else {\n name = constructorFn.name;\n }\n\n return name;\n}\n\n/**\n * ### .getConstructorName(errorLike)\n *\n * Gets the constructor name for an Error instance or constructor itself.\n *\n * @name getConstructorName\n * @param {Error|ErrorConstructor} errorLike\n * @namespace Utils\n * @api public\n */\n\nfunction getConstructorName(errorLike) {\n var constructorName = errorLike;\n if (errorLike instanceof Error) {\n constructorName = getFunctionName(errorLike.constructor);\n } else if (typeof errorLike === 'function') {\n // If `err` is not an instance of Error it is an error constructor itself or another function.\n // If we've got a common function we get its name, otherwise we may need to create a new instance\n // of the error just in case it's a poorly-constructed error. Please see chaijs/chai/issues/45 to know more.\n constructorName = getFunctionName(errorLike).trim() ||\n getFunctionName(new errorLike()); // eslint-disable-line new-cap\n }\n\n return constructorName;\n}\n\n/**\n * ### .getMessage(errorLike)\n *\n * Gets the error message from an error.\n * If `err` is a String itself, we return it.\n * If the error has no message, we return an empty string.\n *\n * @name getMessage\n * @param {Error|String} errorLike\n * @namespace Utils\n * @api public\n */\n\nfunction getMessage(errorLike) {\n var msg = '';\n if (errorLike && errorLike.message) {\n msg = errorLike.message;\n } else if (typeof errorLike === 'string') {\n msg = errorLike;\n }\n\n return msg;\n}\n\nmodule.exports = {\n compatibleInstance: compatibleInstance,\n compatibleConstructor: compatibleConstructor,\n compatibleMessage: compatibleMessage,\n getMessage: getMessage,\n getConstructorName: getConstructorName,\n};\n","/*!\n * Chai - isNaN utility\n * Copyright(c) 2012-2015 Sakthipriyan Vairamani \n * MIT Licensed\n */\n\n/**\n * ### .isNaN(value)\n *\n * Checks if the given value is NaN or not.\n *\n * utils.isNaN(NaN); // true\n *\n * @param {Value} The value which has to be checked if it is NaN\n * @name isNaN\n * @api private\n */\n\nfunction isNaN(value) {\n // Refer http://www.ecma-international.org/ecma-262/6.0/#sec-isnan-number\n // section's NOTE.\n return value !== value;\n}\n\n// If ECMAScript 6's Number.isNaN is present, prefer that.\nmodule.exports = Number.isNaN || isNaN;\n","var type = require('type-detect');\n\nvar flag = require('./flag');\n\nfunction isObjectType(obj) {\n var objectType = type(obj);\n var objectTypes = ['Array', 'Object', 'function'];\n\n return objectTypes.indexOf(objectType) !== -1;\n}\n\n/**\n * ### .getOperator(message)\n *\n * Extract the operator from error message.\n * Operator defined is based on below link\n * https://nodejs.org/api/assert.html#assert_assert.\n *\n * Returns the `operator` or `undefined` value for an Assertion.\n *\n * @param {Object} object (constructed Assertion)\n * @param {Arguments} chai.Assertion.prototype.assert arguments\n * @namespace Utils\n * @name getOperator\n * @api public\n */\n\nmodule.exports = function getOperator(obj, args) {\n var operator = flag(obj, 'operator');\n var negate = flag(obj, 'negate');\n var expected = args[3];\n var msg = negate ? args[2] : args[1];\n\n if (operator) {\n return operator;\n }\n\n if (typeof msg === 'function') msg = msg();\n\n msg = msg || '';\n if (!msg) {\n return undefined;\n }\n\n if (/\\shave\\s/.test(msg)) {\n return undefined;\n }\n\n var isObject = isObjectType(expected);\n if (/\\snot\\s/.test(msg)) {\n return isObject ? 'notDeepStrictEqual' : 'notStrictEqual';\n }\n\n return isObject ? 'deepStrictEqual' : 'strictEqual';\n};\n","/*!\n * chai\n * Copyright(c) 2011 Jake Luer \n * MIT Licensed\n */\n\n/*!\n * Dependencies that are used for multiple exports are required here only once\n */\n\nvar pathval = require('pathval');\n\n/*!\n * test utility\n */\n\nexports.test = require('./test');\n\n/*!\n * type utility\n */\n\nexports.type = require('type-detect');\n\n/*!\n * expectTypes utility\n */\nexports.expectTypes = require('./expectTypes');\n\n/*!\n * message utility\n */\n\nexports.getMessage = require('./getMessage');\n\n/*!\n * actual utility\n */\n\nexports.getActual = require('./getActual');\n\n/*!\n * Inspect util\n */\n\nexports.inspect = require('./inspect');\n\n/*!\n * Object Display util\n */\n\nexports.objDisplay = require('./objDisplay');\n\n/*!\n * Flag utility\n */\n\nexports.flag = require('./flag');\n\n/*!\n * Flag transferring utility\n */\n\nexports.transferFlags = require('./transferFlags');\n\n/*!\n * Deep equal utility\n */\n\nexports.eql = require('deep-eql');\n\n/*!\n * Deep path info\n */\n\nexports.getPathInfo = pathval.getPathInfo;\n\n/*!\n * Check if a property exists\n */\n\nexports.hasProperty = pathval.hasProperty;\n\n/*!\n * Function name\n */\n\nexports.getName = require('get-func-name');\n\n/*!\n * add Property\n */\n\nexports.addProperty = require('./addProperty');\n\n/*!\n * add Method\n */\n\nexports.addMethod = require('./addMethod');\n\n/*!\n * overwrite Property\n */\n\nexports.overwriteProperty = require('./overwriteProperty');\n\n/*!\n * overwrite Method\n */\n\nexports.overwriteMethod = require('./overwriteMethod');\n\n/*!\n * Add a chainable method\n */\n\nexports.addChainableMethod = require('./addChainableMethod');\n\n/*!\n * Overwrite chainable method\n */\n\nexports.overwriteChainableMethod = require('./overwriteChainableMethod');\n\n/*!\n * Compare by inspect method\n */\n\nexports.compareByInspect = require('./compareByInspect');\n\n/*!\n * Get own enumerable property symbols method\n */\n\nexports.getOwnEnumerablePropertySymbols = require('./getOwnEnumerablePropertySymbols');\n\n/*!\n * Get own enumerable properties method\n */\n\nexports.getOwnEnumerableProperties = require('./getOwnEnumerableProperties');\n\n/*!\n * Checks error against a given set of criteria\n */\n\nexports.checkError = require('check-error');\n\n/*!\n * Proxify util\n */\n\nexports.proxify = require('./proxify');\n\n/*!\n * addLengthGuard util\n */\n\nexports.addLengthGuard = require('./addLengthGuard');\n\n/*!\n * isProxyEnabled helper\n */\n\nexports.isProxyEnabled = require('./isProxyEnabled');\n\n/*!\n * isNaN method\n */\n\nexports.isNaN = require('./isNaN');\n\n/*!\n * getOperator method\n */\n\nexports.getOperator = require('./getOperator');","/*!\n * chai\n * http://chaijs.com\n * Copyright(c) 2011-2014 Jake Luer \n * MIT Licensed\n */\n\nvar config = require('./config');\n\nmodule.exports = function (_chai, util) {\n /*!\n * Module dependencies.\n */\n\n var AssertionError = _chai.AssertionError\n , flag = util.flag;\n\n /*!\n * Module export.\n */\n\n _chai.Assertion = Assertion;\n\n /*!\n * Assertion Constructor\n *\n * Creates object for chaining.\n *\n * `Assertion` objects contain metadata in the form of flags. Three flags can\n * be assigned during instantiation by passing arguments to this constructor:\n *\n * - `object`: This flag contains the target of the assertion. For example, in\n * the assertion `expect(numKittens).to.equal(7);`, the `object` flag will\n * contain `numKittens` so that the `equal` assertion can reference it when\n * needed.\n *\n * - `message`: This flag contains an optional custom error message to be\n * prepended to the error message that's generated by the assertion when it\n * fails.\n *\n * - `ssfi`: This flag stands for \"start stack function indicator\". It\n * contains a function reference that serves as the starting point for\n * removing frames from the stack trace of the error that's created by the\n * assertion when it fails. The goal is to provide a cleaner stack trace to\n * end users by removing Chai's internal functions. Note that it only works\n * in environments that support `Error.captureStackTrace`, and only when\n * `Chai.config.includeStack` hasn't been set to `false`.\n *\n * - `lockSsfi`: This flag controls whether or not the given `ssfi` flag\n * should retain its current value, even as assertions are chained off of\n * this object. This is usually set to `true` when creating a new assertion\n * from within another assertion. It's also temporarily set to `true` before\n * an overwritten assertion gets called by the overwriting assertion.\n *\n * @param {Mixed} obj target of the assertion\n * @param {String} msg (optional) custom error message\n * @param {Function} ssfi (optional) starting point for removing stack frames\n * @param {Boolean} lockSsfi (optional) whether or not the ssfi flag is locked\n * @api private\n */\n\n function Assertion (obj, msg, ssfi, lockSsfi) {\n flag(this, 'ssfi', ssfi || Assertion);\n flag(this, 'lockSsfi', lockSsfi);\n flag(this, 'object', obj);\n flag(this, 'message', msg);\n\n return util.proxify(this);\n }\n\n Object.defineProperty(Assertion, 'includeStack', {\n get: function() {\n console.warn('Assertion.includeStack is deprecated, use chai.config.includeStack instead.');\n return config.includeStack;\n },\n set: function(value) {\n console.warn('Assertion.includeStack is deprecated, use chai.config.includeStack instead.');\n config.includeStack = value;\n }\n });\n\n Object.defineProperty(Assertion, 'showDiff', {\n get: function() {\n console.warn('Assertion.showDiff is deprecated, use chai.config.showDiff instead.');\n return config.showDiff;\n },\n set: function(value) {\n console.warn('Assertion.showDiff is deprecated, use chai.config.showDiff instead.');\n config.showDiff = value;\n }\n });\n\n Assertion.addProperty = function (name, fn) {\n util.addProperty(this.prototype, name, fn);\n };\n\n Assertion.addMethod = function (name, fn) {\n util.addMethod(this.prototype, name, fn);\n };\n\n Assertion.addChainableMethod = function (name, fn, chainingBehavior) {\n util.addChainableMethod(this.prototype, name, fn, chainingBehavior);\n };\n\n Assertion.overwriteProperty = function (name, fn) {\n util.overwriteProperty(this.prototype, name, fn);\n };\n\n Assertion.overwriteMethod = function (name, fn) {\n util.overwriteMethod(this.prototype, name, fn);\n };\n\n Assertion.overwriteChainableMethod = function (name, fn, chainingBehavior) {\n util.overwriteChainableMethod(this.prototype, name, fn, chainingBehavior);\n };\n\n /**\n * ### .assert(expression, message, negateMessage, expected, actual, showDiff)\n *\n * Executes an expression and check expectations. Throws AssertionError for reporting if test doesn't pass.\n *\n * @name assert\n * @param {Philosophical} expression to be tested\n * @param {String|Function} message or function that returns message to display if expression fails\n * @param {String|Function} negatedMessage or function that returns negatedMessage to display if negated expression fails\n * @param {Mixed} expected value (remember to check for negation)\n * @param {Mixed} actual (optional) will default to `this.obj`\n * @param {Boolean} showDiff (optional) when set to `true`, assert will display a diff in addition to the message if expression fails\n * @api private\n */\n\n Assertion.prototype.assert = function (expr, msg, negateMsg, expected, _actual, showDiff) {\n var ok = util.test(this, arguments);\n if (false !== showDiff) showDiff = true;\n if (undefined === expected && undefined === _actual) showDiff = false;\n if (true !== config.showDiff) showDiff = false;\n\n if (!ok) {\n msg = util.getMessage(this, arguments);\n var actual = util.getActual(this, arguments);\n var assertionErrorObjectProperties = {\n actual: actual\n , expected: expected\n , showDiff: showDiff\n };\n\n var operator = util.getOperator(this, arguments);\n if (operator) {\n assertionErrorObjectProperties.operator = operator;\n }\n\n throw new AssertionError(\n msg,\n assertionErrorObjectProperties,\n (config.includeStack) ? this.assert : flag(this, 'ssfi'));\n }\n };\n\n /*!\n * ### ._obj\n *\n * Quick reference to stored `actual` value for plugin developers.\n *\n * @api private\n */\n\n Object.defineProperty(Assertion.prototype, '_obj',\n { get: function () {\n return flag(this, 'object');\n }\n , set: function (val) {\n flag(this, 'object', val);\n }\n });\n};\n","/*!\n * chai\n * http://chaijs.com\n * Copyright(c) 2011-2014 Jake Luer \n * MIT Licensed\n */\n\nmodule.exports = function (chai, _) {\n var Assertion = chai.Assertion\n , AssertionError = chai.AssertionError\n , flag = _.flag;\n\n /**\n * ### Language Chains\n *\n * The following are provided as chainable getters to improve the readability\n * of your assertions.\n *\n * **Chains**\n *\n * - to\n * - be\n * - been\n * - is\n * - that\n * - which\n * - and\n * - has\n * - have\n * - with\n * - at\n * - of\n * - same\n * - but\n * - does\n * - still\n * - also\n *\n * @name language chains\n * @namespace BDD\n * @api public\n */\n\n [ 'to', 'be', 'been', 'is'\n , 'and', 'has', 'have', 'with'\n , 'that', 'which', 'at', 'of'\n , 'same', 'but', 'does', 'still', \"also\" ].forEach(function (chain) {\n Assertion.addProperty(chain);\n });\n\n /**\n * ### .not\n *\n * Negates all assertions that follow in the chain.\n *\n * expect(function () {}).to.not.throw();\n * expect({a: 1}).to.not.have.property('b');\n * expect([1, 2]).to.be.an('array').that.does.not.include(3);\n *\n * Just because you can negate any assertion with `.not` doesn't mean you\n * should. With great power comes great responsibility. It's often best to\n * assert that the one expected output was produced, rather than asserting\n * that one of countless unexpected outputs wasn't produced. See individual\n * assertions for specific guidance.\n *\n * expect(2).to.equal(2); // Recommended\n * expect(2).to.not.equal(1); // Not recommended\n *\n * @name not\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('not', function () {\n flag(this, 'negate', true);\n });\n\n /**\n * ### .deep\n *\n * Causes all `.equal`, `.include`, `.members`, `.keys`, and `.property`\n * assertions that follow in the chain to use deep equality instead of strict\n * (`===`) equality. See the `deep-eql` project page for info on the deep\n * equality algorithm: https://github.com/chaijs/deep-eql.\n *\n * // Target object deeply (but not strictly) equals `{a: 1}`\n * expect({a: 1}).to.deep.equal({a: 1});\n * expect({a: 1}).to.not.equal({a: 1});\n *\n * // Target array deeply (but not strictly) includes `{a: 1}`\n * expect([{a: 1}]).to.deep.include({a: 1});\n * expect([{a: 1}]).to.not.include({a: 1});\n *\n * // Target object deeply (but not strictly) includes `x: {a: 1}`\n * expect({x: {a: 1}}).to.deep.include({x: {a: 1}});\n * expect({x: {a: 1}}).to.not.include({x: {a: 1}});\n *\n * // Target array deeply (but not strictly) has member `{a: 1}`\n * expect([{a: 1}]).to.have.deep.members([{a: 1}]);\n * expect([{a: 1}]).to.not.have.members([{a: 1}]);\n *\n * // Target set deeply (but not strictly) has key `{a: 1}`\n * expect(new Set([{a: 1}])).to.have.deep.keys([{a: 1}]);\n * expect(new Set([{a: 1}])).to.not.have.keys([{a: 1}]);\n *\n * // Target object deeply (but not strictly) has property `x: {a: 1}`\n * expect({x: {a: 1}}).to.have.deep.property('x', {a: 1});\n * expect({x: {a: 1}}).to.not.have.property('x', {a: 1});\n *\n * @name deep\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('deep', function () {\n flag(this, 'deep', true);\n });\n\n /**\n * ### .nested\n *\n * Enables dot- and bracket-notation in all `.property` and `.include`\n * assertions that follow in the chain.\n *\n * expect({a: {b: ['x', 'y']}}).to.have.nested.property('a.b[1]');\n * expect({a: {b: ['x', 'y']}}).to.nested.include({'a.b[1]': 'y'});\n *\n * If `.` or `[]` are part of an actual property name, they can be escaped by\n * adding two backslashes before them.\n *\n * expect({'.a': {'[b]': 'x'}}).to.have.nested.property('\\\\.a.\\\\[b\\\\]');\n * expect({'.a': {'[b]': 'x'}}).to.nested.include({'\\\\.a.\\\\[b\\\\]': 'x'});\n *\n * `.nested` cannot be combined with `.own`.\n *\n * @name nested\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('nested', function () {\n flag(this, 'nested', true);\n });\n\n /**\n * ### .own\n *\n * Causes all `.property` and `.include` assertions that follow in the chain\n * to ignore inherited properties.\n *\n * Object.prototype.b = 2;\n *\n * expect({a: 1}).to.have.own.property('a');\n * expect({a: 1}).to.have.property('b');\n * expect({a: 1}).to.not.have.own.property('b');\n *\n * expect({a: 1}).to.own.include({a: 1});\n * expect({a: 1}).to.include({b: 2}).but.not.own.include({b: 2});\n *\n * `.own` cannot be combined with `.nested`.\n *\n * @name own\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('own', function () {\n flag(this, 'own', true);\n });\n\n /**\n * ### .ordered\n *\n * Causes all `.members` assertions that follow in the chain to require that\n * members be in the same order.\n *\n * expect([1, 2]).to.have.ordered.members([1, 2])\n * .but.not.have.ordered.members([2, 1]);\n *\n * When `.include` and `.ordered` are combined, the ordering begins at the\n * start of both arrays.\n *\n * expect([1, 2, 3]).to.include.ordered.members([1, 2])\n * .but.not.include.ordered.members([2, 3]);\n *\n * @name ordered\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('ordered', function () {\n flag(this, 'ordered', true);\n });\n\n /**\n * ### .any\n *\n * Causes all `.keys` assertions that follow in the chain to only require that\n * the target have at least one of the given keys. This is the opposite of\n * `.all`, which requires that the target have all of the given keys.\n *\n * expect({a: 1, b: 2}).to.not.have.any.keys('c', 'd');\n *\n * See the `.keys` doc for guidance on when to use `.any` or `.all`.\n *\n * @name any\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('any', function () {\n flag(this, 'any', true);\n flag(this, 'all', false);\n });\n\n /**\n * ### .all\n *\n * Causes all `.keys` assertions that follow in the chain to require that the\n * target have all of the given keys. This is the opposite of `.any`, which\n * only requires that the target have at least one of the given keys.\n *\n * expect({a: 1, b: 2}).to.have.all.keys('a', 'b');\n *\n * Note that `.all` is used by default when neither `.all` nor `.any` are\n * added earlier in the chain. However, it's often best to add `.all` anyway\n * because it improves readability.\n *\n * See the `.keys` doc for guidance on when to use `.any` or `.all`.\n *\n * @name all\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('all', function () {\n flag(this, 'all', true);\n flag(this, 'any', false);\n });\n\n /**\n * ### .a(type[, msg])\n *\n * Asserts that the target's type is equal to the given string `type`. Types\n * are case insensitive. See the `type-detect` project page for info on the\n * type detection algorithm: https://github.com/chaijs/type-detect.\n *\n * expect('foo').to.be.a('string');\n * expect({a: 1}).to.be.an('object');\n * expect(null).to.be.a('null');\n * expect(undefined).to.be.an('undefined');\n * expect(new Error).to.be.an('error');\n * expect(Promise.resolve()).to.be.a('promise');\n * expect(new Float32Array).to.be.a('float32array');\n * expect(Symbol()).to.be.a('symbol');\n *\n * `.a` supports objects that have a custom type set via `Symbol.toStringTag`.\n *\n * var myObj = {\n * [Symbol.toStringTag]: 'myCustomType'\n * };\n *\n * expect(myObj).to.be.a('myCustomType').but.not.an('object');\n *\n * It's often best to use `.a` to check a target's type before making more\n * assertions on the same target. That way, you avoid unexpected behavior from\n * any assertion that does different things based on the target's type.\n *\n * expect([1, 2, 3]).to.be.an('array').that.includes(2);\n * expect([]).to.be.an('array').that.is.empty;\n *\n * Add `.not` earlier in the chain to negate `.a`. However, it's often best to\n * assert that the target is the expected type, rather than asserting that it\n * isn't one of many unexpected types.\n *\n * expect('foo').to.be.a('string'); // Recommended\n * expect('foo').to.not.be.an('array'); // Not recommended\n *\n * `.a` accepts an optional `msg` argument which is a custom error message to\n * show when the assertion fails. The message can also be given as the second\n * argument to `expect`.\n *\n * expect(1).to.be.a('string', 'nooo why fail??');\n * expect(1, 'nooo why fail??').to.be.a('string');\n *\n * `.a` can also be used as a language chain to improve the readability of\n * your assertions.\n *\n * expect({b: 2}).to.have.a.property('b');\n *\n * The alias `.an` can be used interchangeably with `.a`.\n *\n * @name a\n * @alias an\n * @param {String} type\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function an (type, msg) {\n if (msg) flag(this, 'message', msg);\n type = type.toLowerCase();\n var obj = flag(this, 'object')\n , article = ~[ 'a', 'e', 'i', 'o', 'u' ].indexOf(type.charAt(0)) ? 'an ' : 'a ';\n\n this.assert(\n type === _.type(obj).toLowerCase()\n , 'expected #{this} to be ' + article + type\n , 'expected #{this} not to be ' + article + type\n );\n }\n\n Assertion.addChainableMethod('an', an);\n Assertion.addChainableMethod('a', an);\n\n /**\n * ### .include(val[, msg])\n *\n * When the target is a string, `.include` asserts that the given string `val`\n * is a substring of the target.\n *\n * expect('foobar').to.include('foo');\n *\n * When the target is an array, `.include` asserts that the given `val` is a\n * member of the target.\n *\n * expect([1, 2, 3]).to.include(2);\n *\n * When the target is an object, `.include` asserts that the given object\n * `val`'s properties are a subset of the target's properties.\n *\n * expect({a: 1, b: 2, c: 3}).to.include({a: 1, b: 2});\n *\n * When the target is a Set or WeakSet, `.include` asserts that the given `val` is a\n * member of the target. SameValueZero equality algorithm is used.\n *\n * expect(new Set([1, 2])).to.include(2);\n *\n * When the target is a Map, `.include` asserts that the given `val` is one of\n * the values of the target. SameValueZero equality algorithm is used.\n *\n * expect(new Map([['a', 1], ['b', 2]])).to.include(2);\n *\n * Because `.include` does different things based on the target's type, it's\n * important to check the target's type before using `.include`. See the `.a`\n * doc for info on testing a target's type.\n *\n * expect([1, 2, 3]).to.be.an('array').that.includes(2);\n *\n * By default, strict (`===`) equality is used to compare array members and\n * object properties. Add `.deep` earlier in the chain to use deep equality\n * instead (WeakSet targets are not supported). See the `deep-eql` project\n * page for info on the deep equality algorithm: https://github.com/chaijs/deep-eql.\n *\n * // Target array deeply (but not strictly) includes `{a: 1}`\n * expect([{a: 1}]).to.deep.include({a: 1});\n * expect([{a: 1}]).to.not.include({a: 1});\n *\n * // Target object deeply (but not strictly) includes `x: {a: 1}`\n * expect({x: {a: 1}}).to.deep.include({x: {a: 1}});\n * expect({x: {a: 1}}).to.not.include({x: {a: 1}});\n *\n * By default, all of the target's properties are searched when working with\n * objects. This includes properties that are inherited and/or non-enumerable.\n * Add `.own` earlier in the chain to exclude the target's inherited\n * properties from the search.\n *\n * Object.prototype.b = 2;\n *\n * expect({a: 1}).to.own.include({a: 1});\n * expect({a: 1}).to.include({b: 2}).but.not.own.include({b: 2});\n *\n * Note that a target object is always only searched for `val`'s own\n * enumerable properties.\n *\n * `.deep` and `.own` can be combined.\n *\n * expect({a: {b: 2}}).to.deep.own.include({a: {b: 2}});\n *\n * Add `.nested` earlier in the chain to enable dot- and bracket-notation when\n * referencing nested properties.\n *\n * expect({a: {b: ['x', 'y']}}).to.nested.include({'a.b[1]': 'y'});\n *\n * If `.` or `[]` are part of an actual property name, they can be escaped by\n * adding two backslashes before them.\n *\n * expect({'.a': {'[b]': 2}}).to.nested.include({'\\\\.a.\\\\[b\\\\]': 2});\n *\n * `.deep` and `.nested` can be combined.\n *\n * expect({a: {b: [{c: 3}]}}).to.deep.nested.include({'a.b[0]': {c: 3}});\n *\n * `.own` and `.nested` cannot be combined.\n *\n * Add `.not` earlier in the chain to negate `.include`.\n *\n * expect('foobar').to.not.include('taco');\n * expect([1, 2, 3]).to.not.include(4);\n *\n * However, it's dangerous to negate `.include` when the target is an object.\n * The problem is that it creates uncertain expectations by asserting that the\n * target object doesn't have all of `val`'s key/value pairs but may or may\n * not have some of them. It's often best to identify the exact output that's\n * expected, and then write an assertion that only accepts that exact output.\n *\n * When the target object isn't even expected to have `val`'s keys, it's\n * often best to assert exactly that.\n *\n * expect({c: 3}).to.not.have.any.keys('a', 'b'); // Recommended\n * expect({c: 3}).to.not.include({a: 1, b: 2}); // Not recommended\n *\n * When the target object is expected to have `val`'s keys, it's often best to\n * assert that each of the properties has its expected value, rather than\n * asserting that each property doesn't have one of many unexpected values.\n *\n * expect({a: 3, b: 4}).to.include({a: 3, b: 4}); // Recommended\n * expect({a: 3, b: 4}).to.not.include({a: 1, b: 2}); // Not recommended\n *\n * `.include` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`.\n *\n * expect([1, 2, 3]).to.include(4, 'nooo why fail??');\n * expect([1, 2, 3], 'nooo why fail??').to.include(4);\n *\n * `.include` can also be used as a language chain, causing all `.members` and\n * `.keys` assertions that follow in the chain to require the target to be a\n * superset of the expected set, rather than an identical set. Note that\n * `.members` ignores duplicates in the subset when `.include` is added.\n *\n * // Target object's keys are a superset of ['a', 'b'] but not identical\n * expect({a: 1, b: 2, c: 3}).to.include.all.keys('a', 'b');\n * expect({a: 1, b: 2, c: 3}).to.not.have.all.keys('a', 'b');\n *\n * // Target array is a superset of [1, 2] but not identical\n * expect([1, 2, 3]).to.include.members([1, 2]);\n * expect([1, 2, 3]).to.not.have.members([1, 2]);\n *\n * // Duplicates in the subset are ignored\n * expect([1, 2, 3]).to.include.members([1, 2, 2, 2]);\n *\n * Note that adding `.any` earlier in the chain causes the `.keys` assertion\n * to ignore `.include`.\n *\n * // Both assertions are identical\n * expect({a: 1}).to.include.any.keys('a', 'b');\n * expect({a: 1}).to.have.any.keys('a', 'b');\n *\n * The aliases `.includes`, `.contain`, and `.contains` can be used\n * interchangeably with `.include`.\n *\n * @name include\n * @alias contain\n * @alias includes\n * @alias contains\n * @param {Mixed} val\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function SameValueZero(a, b) {\n return (_.isNaN(a) && _.isNaN(b)) || a === b;\n }\n\n function includeChainingBehavior () {\n flag(this, 'contains', true);\n }\n\n function include (val, msg) {\n if (msg) flag(this, 'message', msg);\n\n var obj = flag(this, 'object')\n , objType = _.type(obj).toLowerCase()\n , flagMsg = flag(this, 'message')\n , negate = flag(this, 'negate')\n , ssfi = flag(this, 'ssfi')\n , isDeep = flag(this, 'deep')\n , descriptor = isDeep ? 'deep ' : '';\n\n flagMsg = flagMsg ? flagMsg + ': ' : '';\n\n var included = false;\n\n switch (objType) {\n case 'string':\n included = obj.indexOf(val) !== -1;\n break;\n\n case 'weakset':\n if (isDeep) {\n throw new AssertionError(\n flagMsg + 'unable to use .deep.include with WeakSet',\n undefined,\n ssfi\n );\n }\n\n included = obj.has(val);\n break;\n\n case 'map':\n var isEql = isDeep ? _.eql : SameValueZero;\n obj.forEach(function (item) {\n included = included || isEql(item, val);\n });\n break;\n\n case 'set':\n if (isDeep) {\n obj.forEach(function (item) {\n included = included || _.eql(item, val);\n });\n } else {\n included = obj.has(val);\n }\n break;\n\n case 'array':\n if (isDeep) {\n included = obj.some(function (item) {\n return _.eql(item, val);\n })\n } else {\n included = obj.indexOf(val) !== -1;\n }\n break;\n\n default:\n // This block is for asserting a subset of properties in an object.\n // `_.expectTypes` isn't used here because `.include` should work with\n // objects with a custom `@@toStringTag`.\n if (val !== Object(val)) {\n throw new AssertionError(\n flagMsg + 'the given combination of arguments ('\n + objType + ' and '\n + _.type(val).toLowerCase() + ')'\n + ' is invalid for this assertion. '\n + 'You can use an array, a map, an object, a set, a string, '\n + 'or a weakset instead of a '\n + _.type(val).toLowerCase(),\n undefined,\n ssfi\n );\n }\n\n var props = Object.keys(val)\n , firstErr = null\n , numErrs = 0;\n\n props.forEach(function (prop) {\n var propAssertion = new Assertion(obj);\n _.transferFlags(this, propAssertion, true);\n flag(propAssertion, 'lockSsfi', true);\n\n if (!negate || props.length === 1) {\n propAssertion.property(prop, val[prop]);\n return;\n }\n\n try {\n propAssertion.property(prop, val[prop]);\n } catch (err) {\n if (!_.checkError.compatibleConstructor(err, AssertionError)) {\n throw err;\n }\n if (firstErr === null) firstErr = err;\n numErrs++;\n }\n }, this);\n\n // When validating .not.include with multiple properties, we only want\n // to throw an assertion error if all of the properties are included,\n // in which case we throw the first property assertion error that we\n // encountered.\n if (negate && props.length > 1 && numErrs === props.length) {\n throw firstErr;\n }\n return;\n }\n\n // Assert inclusion in collection or substring in a string.\n this.assert(\n included\n , 'expected #{this} to ' + descriptor + 'include ' + _.inspect(val)\n , 'expected #{this} to not ' + descriptor + 'include ' + _.inspect(val));\n }\n\n Assertion.addChainableMethod('include', include, includeChainingBehavior);\n Assertion.addChainableMethod('contain', include, includeChainingBehavior);\n Assertion.addChainableMethod('contains', include, includeChainingBehavior);\n Assertion.addChainableMethod('includes', include, includeChainingBehavior);\n\n /**\n * ### .ok\n *\n * Asserts that the target is a truthy value (considered `true` in boolean context).\n * However, it's often best to assert that the target is strictly (`===`) or\n * deeply equal to its expected value.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.be.ok; // Not recommended\n *\n * expect(true).to.be.true; // Recommended\n * expect(true).to.be.ok; // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.ok`.\n *\n * expect(0).to.equal(0); // Recommended\n * expect(0).to.not.be.ok; // Not recommended\n *\n * expect(false).to.be.false; // Recommended\n * expect(false).to.not.be.ok; // Not recommended\n *\n * expect(null).to.be.null; // Recommended\n * expect(null).to.not.be.ok; // Not recommended\n *\n * expect(undefined).to.be.undefined; // Recommended\n * expect(undefined).to.not.be.ok; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect(false, 'nooo why fail??').to.be.ok;\n *\n * @name ok\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('ok', function () {\n this.assert(\n flag(this, 'object')\n , 'expected #{this} to be truthy'\n , 'expected #{this} to be falsy');\n });\n\n /**\n * ### .true\n *\n * Asserts that the target is strictly (`===`) equal to `true`.\n *\n * expect(true).to.be.true;\n *\n * Add `.not` earlier in the chain to negate `.true`. However, it's often best\n * to assert that the target is equal to its expected value, rather than not\n * equal to `true`.\n *\n * expect(false).to.be.false; // Recommended\n * expect(false).to.not.be.true; // Not recommended\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.not.be.true; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect(false, 'nooo why fail??').to.be.true;\n *\n * @name true\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('true', function () {\n this.assert(\n true === flag(this, 'object')\n , 'expected #{this} to be true'\n , 'expected #{this} to be false'\n , flag(this, 'negate') ? false : true\n );\n });\n\n /**\n * ### .false\n *\n * Asserts that the target is strictly (`===`) equal to `false`.\n *\n * expect(false).to.be.false;\n *\n * Add `.not` earlier in the chain to negate `.false`. However, it's often\n * best to assert that the target is equal to its expected value, rather than\n * not equal to `false`.\n *\n * expect(true).to.be.true; // Recommended\n * expect(true).to.not.be.false; // Not recommended\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.not.be.false; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect(true, 'nooo why fail??').to.be.false;\n *\n * @name false\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('false', function () {\n this.assert(\n false === flag(this, 'object')\n , 'expected #{this} to be false'\n , 'expected #{this} to be true'\n , flag(this, 'negate') ? true : false\n );\n });\n\n /**\n * ### .null\n *\n * Asserts that the target is strictly (`===`) equal to `null`.\n *\n * expect(null).to.be.null;\n *\n * Add `.not` earlier in the chain to negate `.null`. However, it's often best\n * to assert that the target is equal to its expected value, rather than not\n * equal to `null`.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.not.be.null; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect(42, 'nooo why fail??').to.be.null;\n *\n * @name null\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('null', function () {\n this.assert(\n null === flag(this, 'object')\n , 'expected #{this} to be null'\n , 'expected #{this} not to be null'\n );\n });\n\n /**\n * ### .undefined\n *\n * Asserts that the target is strictly (`===`) equal to `undefined`.\n *\n * expect(undefined).to.be.undefined;\n *\n * Add `.not` earlier in the chain to negate `.undefined`. However, it's often\n * best to assert that the target is equal to its expected value, rather than\n * not equal to `undefined`.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.not.be.undefined; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect(42, 'nooo why fail??').to.be.undefined;\n *\n * @name undefined\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('undefined', function () {\n this.assert(\n undefined === flag(this, 'object')\n , 'expected #{this} to be undefined'\n , 'expected #{this} not to be undefined'\n );\n });\n\n /**\n * ### .NaN\n *\n * Asserts that the target is exactly `NaN`.\n *\n * expect(NaN).to.be.NaN;\n *\n * Add `.not` earlier in the chain to negate `.NaN`. However, it's often best\n * to assert that the target is equal to its expected value, rather than not\n * equal to `NaN`.\n *\n * expect('foo').to.equal('foo'); // Recommended\n * expect('foo').to.not.be.NaN; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect(42, 'nooo why fail??').to.be.NaN;\n *\n * @name NaN\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('NaN', function () {\n this.assert(\n _.isNaN(flag(this, 'object'))\n , 'expected #{this} to be NaN'\n , 'expected #{this} not to be NaN'\n );\n });\n\n /**\n * ### .exist\n *\n * Asserts that the target is not strictly (`===`) equal to either `null` or\n * `undefined`. However, it's often best to assert that the target is equal to\n * its expected value.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.exist; // Not recommended\n *\n * expect(0).to.equal(0); // Recommended\n * expect(0).to.exist; // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.exist`.\n *\n * expect(null).to.be.null; // Recommended\n * expect(null).to.not.exist; // Not recommended\n *\n * expect(undefined).to.be.undefined; // Recommended\n * expect(undefined).to.not.exist; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect(null, 'nooo why fail??').to.exist;\n *\n * The alias `.exists` can be used interchangeably with `.exist`.\n *\n * @name exist\n * @alias exists\n * @namespace BDD\n * @api public\n */\n\n function assertExist () {\n var val = flag(this, 'object');\n this.assert(\n val !== null && val !== undefined\n , 'expected #{this} to exist'\n , 'expected #{this} to not exist'\n );\n }\n\n Assertion.addProperty('exist', assertExist);\n Assertion.addProperty('exists', assertExist);\n\n /**\n * ### .empty\n *\n * When the target is a string or array, `.empty` asserts that the target's\n * `length` property is strictly (`===`) equal to `0`.\n *\n * expect([]).to.be.empty;\n * expect('').to.be.empty;\n *\n * When the target is a map or set, `.empty` asserts that the target's `size`\n * property is strictly equal to `0`.\n *\n * expect(new Set()).to.be.empty;\n * expect(new Map()).to.be.empty;\n *\n * When the target is a non-function object, `.empty` asserts that the target\n * doesn't have any own enumerable properties. Properties with Symbol-based\n * keys are excluded from the count.\n *\n * expect({}).to.be.empty;\n *\n * Because `.empty` does different things based on the target's type, it's\n * important to check the target's type before using `.empty`. See the `.a`\n * doc for info on testing a target's type.\n *\n * expect([]).to.be.an('array').that.is.empty;\n *\n * Add `.not` earlier in the chain to negate `.empty`. However, it's often\n * best to assert that the target contains its expected number of values,\n * rather than asserting that it's not empty.\n *\n * expect([1, 2, 3]).to.have.lengthOf(3); // Recommended\n * expect([1, 2, 3]).to.not.be.empty; // Not recommended\n *\n * expect(new Set([1, 2, 3])).to.have.property('size', 3); // Recommended\n * expect(new Set([1, 2, 3])).to.not.be.empty; // Not recommended\n *\n * expect(Object.keys({a: 1})).to.have.lengthOf(1); // Recommended\n * expect({a: 1}).to.not.be.empty; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect([1, 2, 3], 'nooo why fail??').to.be.empty;\n *\n * @name empty\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('empty', function () {\n var val = flag(this, 'object')\n , ssfi = flag(this, 'ssfi')\n , flagMsg = flag(this, 'message')\n , itemsCount;\n\n flagMsg = flagMsg ? flagMsg + ': ' : '';\n\n switch (_.type(val).toLowerCase()) {\n case 'array':\n case 'string':\n itemsCount = val.length;\n break;\n case 'map':\n case 'set':\n itemsCount = val.size;\n break;\n case 'weakmap':\n case 'weakset':\n throw new AssertionError(\n flagMsg + '.empty was passed a weak collection',\n undefined,\n ssfi\n );\n case 'function':\n var msg = flagMsg + '.empty was passed a function ' + _.getName(val);\n throw new AssertionError(msg.trim(), undefined, ssfi);\n default:\n if (val !== Object(val)) {\n throw new AssertionError(\n flagMsg + '.empty was passed non-string primitive ' + _.inspect(val),\n undefined,\n ssfi\n );\n }\n itemsCount = Object.keys(val).length;\n }\n\n this.assert(\n 0 === itemsCount\n , 'expected #{this} to be empty'\n , 'expected #{this} not to be empty'\n );\n });\n\n /**\n * ### .arguments\n *\n * Asserts that the target is an `arguments` object.\n *\n * function test () {\n * expect(arguments).to.be.arguments;\n * }\n *\n * test();\n *\n * Add `.not` earlier in the chain to negate `.arguments`. However, it's often\n * best to assert which type the target is expected to be, rather than\n * asserting that it’s not an `arguments` object.\n *\n * expect('foo').to.be.a('string'); // Recommended\n * expect('foo').to.not.be.arguments; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect({}, 'nooo why fail??').to.be.arguments;\n *\n * The alias `.Arguments` can be used interchangeably with `.arguments`.\n *\n * @name arguments\n * @alias Arguments\n * @namespace BDD\n * @api public\n */\n\n function checkArguments () {\n var obj = flag(this, 'object')\n , type = _.type(obj);\n this.assert(\n 'Arguments' === type\n , 'expected #{this} to be arguments but got ' + type\n , 'expected #{this} to not be arguments'\n );\n }\n\n Assertion.addProperty('arguments', checkArguments);\n Assertion.addProperty('Arguments', checkArguments);\n\n /**\n * ### .equal(val[, msg])\n *\n * Asserts that the target is strictly (`===`) equal to the given `val`.\n *\n * expect(1).to.equal(1);\n * expect('foo').to.equal('foo');\n *\n * Add `.deep` earlier in the chain to use deep equality instead. See the\n * `deep-eql` project page for info on the deep equality algorithm:\n * https://github.com/chaijs/deep-eql.\n *\n * // Target object deeply (but not strictly) equals `{a: 1}`\n * expect({a: 1}).to.deep.equal({a: 1});\n * expect({a: 1}).to.not.equal({a: 1});\n *\n * // Target array deeply (but not strictly) equals `[1, 2]`\n * expect([1, 2]).to.deep.equal([1, 2]);\n * expect([1, 2]).to.not.equal([1, 2]);\n *\n * Add `.not` earlier in the chain to negate `.equal`. However, it's often\n * best to assert that the target is equal to its expected value, rather than\n * not equal to one of countless unexpected values.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.not.equal(2); // Not recommended\n *\n * `.equal` accepts an optional `msg` argument which is a custom error message\n * to show when the assertion fails. The message can also be given as the\n * second argument to `expect`.\n *\n * expect(1).to.equal(2, 'nooo why fail??');\n * expect(1, 'nooo why fail??').to.equal(2);\n *\n * The aliases `.equals` and `eq` can be used interchangeably with `.equal`.\n *\n * @name equal\n * @alias equals\n * @alias eq\n * @param {Mixed} val\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertEqual (val, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object');\n if (flag(this, 'deep')) {\n var prevLockSsfi = flag(this, 'lockSsfi');\n flag(this, 'lockSsfi', true);\n this.eql(val);\n flag(this, 'lockSsfi', prevLockSsfi);\n } else {\n this.assert(\n val === obj\n , 'expected #{this} to equal #{exp}'\n , 'expected #{this} to not equal #{exp}'\n , val\n , this._obj\n , true\n );\n }\n }\n\n Assertion.addMethod('equal', assertEqual);\n Assertion.addMethod('equals', assertEqual);\n Assertion.addMethod('eq', assertEqual);\n\n /**\n * ### .eql(obj[, msg])\n *\n * Asserts that the target is deeply equal to the given `obj`. See the\n * `deep-eql` project page for info on the deep equality algorithm:\n * https://github.com/chaijs/deep-eql.\n *\n * // Target object is deeply (but not strictly) equal to {a: 1}\n * expect({a: 1}).to.eql({a: 1}).but.not.equal({a: 1});\n *\n * // Target array is deeply (but not strictly) equal to [1, 2]\n * expect([1, 2]).to.eql([1, 2]).but.not.equal([1, 2]);\n *\n * Add `.not` earlier in the chain to negate `.eql`. However, it's often best\n * to assert that the target is deeply equal to its expected value, rather\n * than not deeply equal to one of countless unexpected values.\n *\n * expect({a: 1}).to.eql({a: 1}); // Recommended\n * expect({a: 1}).to.not.eql({b: 2}); // Not recommended\n *\n * `.eql` accepts an optional `msg` argument which is a custom error message\n * to show when the assertion fails. The message can also be given as the\n * second argument to `expect`.\n *\n * expect({a: 1}).to.eql({b: 2}, 'nooo why fail??');\n * expect({a: 1}, 'nooo why fail??').to.eql({b: 2});\n *\n * The alias `.eqls` can be used interchangeably with `.eql`.\n *\n * The `.deep.equal` assertion is almost identical to `.eql` but with one\n * difference: `.deep.equal` causes deep equality comparisons to also be used\n * for any other assertions that follow in the chain.\n *\n * @name eql\n * @alias eqls\n * @param {Mixed} obj\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertEql(obj, msg) {\n if (msg) flag(this, 'message', msg);\n this.assert(\n _.eql(obj, flag(this, 'object'))\n , 'expected #{this} to deeply equal #{exp}'\n , 'expected #{this} to not deeply equal #{exp}'\n , obj\n , this._obj\n , true\n );\n }\n\n Assertion.addMethod('eql', assertEql);\n Assertion.addMethod('eqls', assertEql);\n\n /**\n * ### .above(n[, msg])\n *\n * Asserts that the target is a number or a date greater than the given number or date `n` respectively.\n * However, it's often best to assert that the target is equal to its expected\n * value.\n *\n * expect(2).to.equal(2); // Recommended\n * expect(2).to.be.above(1); // Not recommended\n *\n * Add `.lengthOf` earlier in the chain to assert that the target's `length`\n * or `size` is greater than the given number `n`.\n *\n * expect('foo').to.have.lengthOf(3); // Recommended\n * expect('foo').to.have.lengthOf.above(2); // Not recommended\n *\n * expect([1, 2, 3]).to.have.lengthOf(3); // Recommended\n * expect([1, 2, 3]).to.have.lengthOf.above(2); // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.above`.\n *\n * expect(2).to.equal(2); // Recommended\n * expect(1).to.not.be.above(2); // Not recommended\n *\n * `.above` accepts an optional `msg` argument which is a custom error message\n * to show when the assertion fails. The message can also be given as the\n * second argument to `expect`.\n *\n * expect(1).to.be.above(2, 'nooo why fail??');\n * expect(1, 'nooo why fail??').to.be.above(2);\n *\n * The aliases `.gt` and `.greaterThan` can be used interchangeably with\n * `.above`.\n *\n * @name above\n * @alias gt\n * @alias greaterThan\n * @param {Number} n\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertAbove (n, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , doLength = flag(this, 'doLength')\n , flagMsg = flag(this, 'message')\n , msgPrefix = ((flagMsg) ? flagMsg + ': ' : '')\n , ssfi = flag(this, 'ssfi')\n , objType = _.type(obj).toLowerCase()\n , nType = _.type(n).toLowerCase()\n , errorMessage\n , shouldThrow = true;\n\n if (doLength && objType !== 'map' && objType !== 'set') {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property('length');\n }\n\n if (!doLength && (objType === 'date' && nType !== 'date')) {\n errorMessage = msgPrefix + 'the argument to above must be a date';\n } else if (nType !== 'number' && (doLength || objType === 'number')) {\n errorMessage = msgPrefix + 'the argument to above must be a number';\n } else if (!doLength && (objType !== 'date' && objType !== 'number')) {\n var printObj = (objType === 'string') ? \"'\" + obj + \"'\" : obj;\n errorMessage = msgPrefix + 'expected ' + printObj + ' to be a number or a date';\n } else {\n shouldThrow = false;\n }\n\n if (shouldThrow) {\n throw new AssertionError(errorMessage, undefined, ssfi);\n }\n\n if (doLength) {\n var descriptor = 'length'\n , itemsCount;\n if (objType === 'map' || objType === 'set') {\n descriptor = 'size';\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount > n\n , 'expected #{this} to have a ' + descriptor + ' above #{exp} but got #{act}'\n , 'expected #{this} to not have a ' + descriptor + ' above #{exp}'\n , n\n , itemsCount\n );\n } else {\n this.assert(\n obj > n\n , 'expected #{this} to be above #{exp}'\n , 'expected #{this} to be at most #{exp}'\n , n\n );\n }\n }\n\n Assertion.addMethod('above', assertAbove);\n Assertion.addMethod('gt', assertAbove);\n Assertion.addMethod('greaterThan', assertAbove);\n\n /**\n * ### .least(n[, msg])\n *\n * Asserts that the target is a number or a date greater than or equal to the given\n * number or date `n` respectively. However, it's often best to assert that the target is equal to\n * its expected value.\n *\n * expect(2).to.equal(2); // Recommended\n * expect(2).to.be.at.least(1); // Not recommended\n * expect(2).to.be.at.least(2); // Not recommended\n *\n * Add `.lengthOf` earlier in the chain to assert that the target's `length`\n * or `size` is greater than or equal to the given number `n`.\n *\n * expect('foo').to.have.lengthOf(3); // Recommended\n * expect('foo').to.have.lengthOf.at.least(2); // Not recommended\n *\n * expect([1, 2, 3]).to.have.lengthOf(3); // Recommended\n * expect([1, 2, 3]).to.have.lengthOf.at.least(2); // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.least`.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.not.be.at.least(2); // Not recommended\n *\n * `.least` accepts an optional `msg` argument which is a custom error message\n * to show when the assertion fails. The message can also be given as the\n * second argument to `expect`.\n *\n * expect(1).to.be.at.least(2, 'nooo why fail??');\n * expect(1, 'nooo why fail??').to.be.at.least(2);\n *\n * The aliases `.gte` and `.greaterThanOrEqual` can be used interchangeably with\n * `.least`.\n *\n * @name least\n * @alias gte\n * @alias greaterThanOrEqual\n * @param {Number} n\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertLeast (n, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , doLength = flag(this, 'doLength')\n , flagMsg = flag(this, 'message')\n , msgPrefix = ((flagMsg) ? flagMsg + ': ' : '')\n , ssfi = flag(this, 'ssfi')\n , objType = _.type(obj).toLowerCase()\n , nType = _.type(n).toLowerCase()\n , errorMessage\n , shouldThrow = true;\n\n if (doLength && objType !== 'map' && objType !== 'set') {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property('length');\n }\n\n if (!doLength && (objType === 'date' && nType !== 'date')) {\n errorMessage = msgPrefix + 'the argument to least must be a date';\n } else if (nType !== 'number' && (doLength || objType === 'number')) {\n errorMessage = msgPrefix + 'the argument to least must be a number';\n } else if (!doLength && (objType !== 'date' && objType !== 'number')) {\n var printObj = (objType === 'string') ? \"'\" + obj + \"'\" : obj;\n errorMessage = msgPrefix + 'expected ' + printObj + ' to be a number or a date';\n } else {\n shouldThrow = false;\n }\n\n if (shouldThrow) {\n throw new AssertionError(errorMessage, undefined, ssfi);\n }\n\n if (doLength) {\n var descriptor = 'length'\n , itemsCount;\n if (objType === 'map' || objType === 'set') {\n descriptor = 'size';\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount >= n\n , 'expected #{this} to have a ' + descriptor + ' at least #{exp} but got #{act}'\n , 'expected #{this} to have a ' + descriptor + ' below #{exp}'\n , n\n , itemsCount\n );\n } else {\n this.assert(\n obj >= n\n , 'expected #{this} to be at least #{exp}'\n , 'expected #{this} to be below #{exp}'\n , n\n );\n }\n }\n\n Assertion.addMethod('least', assertLeast);\n Assertion.addMethod('gte', assertLeast);\n Assertion.addMethod('greaterThanOrEqual', assertLeast);\n\n /**\n * ### .below(n[, msg])\n *\n * Asserts that the target is a number or a date less than the given number or date `n` respectively.\n * However, it's often best to assert that the target is equal to its expected\n * value.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.be.below(2); // Not recommended\n *\n * Add `.lengthOf` earlier in the chain to assert that the target's `length`\n * or `size` is less than the given number `n`.\n *\n * expect('foo').to.have.lengthOf(3); // Recommended\n * expect('foo').to.have.lengthOf.below(4); // Not recommended\n *\n * expect([1, 2, 3]).to.have.length(3); // Recommended\n * expect([1, 2, 3]).to.have.lengthOf.below(4); // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.below`.\n *\n * expect(2).to.equal(2); // Recommended\n * expect(2).to.not.be.below(1); // Not recommended\n *\n * `.below` accepts an optional `msg` argument which is a custom error message\n * to show when the assertion fails. The message can also be given as the\n * second argument to `expect`.\n *\n * expect(2).to.be.below(1, 'nooo why fail??');\n * expect(2, 'nooo why fail??').to.be.below(1);\n *\n * The aliases `.lt` and `.lessThan` can be used interchangeably with\n * `.below`.\n *\n * @name below\n * @alias lt\n * @alias lessThan\n * @param {Number} n\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertBelow (n, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , doLength = flag(this, 'doLength')\n , flagMsg = flag(this, 'message')\n , msgPrefix = ((flagMsg) ? flagMsg + ': ' : '')\n , ssfi = flag(this, 'ssfi')\n , objType = _.type(obj).toLowerCase()\n , nType = _.type(n).toLowerCase()\n , errorMessage\n , shouldThrow = true;\n\n if (doLength && objType !== 'map' && objType !== 'set') {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property('length');\n }\n\n if (!doLength && (objType === 'date' && nType !== 'date')) {\n errorMessage = msgPrefix + 'the argument to below must be a date';\n } else if (nType !== 'number' && (doLength || objType === 'number')) {\n errorMessage = msgPrefix + 'the argument to below must be a number';\n } else if (!doLength && (objType !== 'date' && objType !== 'number')) {\n var printObj = (objType === 'string') ? \"'\" + obj + \"'\" : obj;\n errorMessage = msgPrefix + 'expected ' + printObj + ' to be a number or a date';\n } else {\n shouldThrow = false;\n }\n\n if (shouldThrow) {\n throw new AssertionError(errorMessage, undefined, ssfi);\n }\n\n if (doLength) {\n var descriptor = 'length'\n , itemsCount;\n if (objType === 'map' || objType === 'set') {\n descriptor = 'size';\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount < n\n , 'expected #{this} to have a ' + descriptor + ' below #{exp} but got #{act}'\n , 'expected #{this} to not have a ' + descriptor + ' below #{exp}'\n , n\n , itemsCount\n );\n } else {\n this.assert(\n obj < n\n , 'expected #{this} to be below #{exp}'\n , 'expected #{this} to be at least #{exp}'\n , n\n );\n }\n }\n\n Assertion.addMethod('below', assertBelow);\n Assertion.addMethod('lt', assertBelow);\n Assertion.addMethod('lessThan', assertBelow);\n\n /**\n * ### .most(n[, msg])\n *\n * Asserts that the target is a number or a date less than or equal to the given number\n * or date `n` respectively. However, it's often best to assert that the target is equal to its\n * expected value.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.be.at.most(2); // Not recommended\n * expect(1).to.be.at.most(1); // Not recommended\n *\n * Add `.lengthOf` earlier in the chain to assert that the target's `length`\n * or `size` is less than or equal to the given number `n`.\n *\n * expect('foo').to.have.lengthOf(3); // Recommended\n * expect('foo').to.have.lengthOf.at.most(4); // Not recommended\n *\n * expect([1, 2, 3]).to.have.lengthOf(3); // Recommended\n * expect([1, 2, 3]).to.have.lengthOf.at.most(4); // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.most`.\n *\n * expect(2).to.equal(2); // Recommended\n * expect(2).to.not.be.at.most(1); // Not recommended\n *\n * `.most` accepts an optional `msg` argument which is a custom error message\n * to show when the assertion fails. The message can also be given as the\n * second argument to `expect`.\n *\n * expect(2).to.be.at.most(1, 'nooo why fail??');\n * expect(2, 'nooo why fail??').to.be.at.most(1);\n *\n * The aliases `.lte` and `.lessThanOrEqual` can be used interchangeably with\n * `.most`.\n *\n * @name most\n * @alias lte\n * @alias lessThanOrEqual\n * @param {Number} n\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertMost (n, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , doLength = flag(this, 'doLength')\n , flagMsg = flag(this, 'message')\n , msgPrefix = ((flagMsg) ? flagMsg + ': ' : '')\n , ssfi = flag(this, 'ssfi')\n , objType = _.type(obj).toLowerCase()\n , nType = _.type(n).toLowerCase()\n , errorMessage\n , shouldThrow = true;\n\n if (doLength && objType !== 'map' && objType !== 'set') {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property('length');\n }\n\n if (!doLength && (objType === 'date' && nType !== 'date')) {\n errorMessage = msgPrefix + 'the argument to most must be a date';\n } else if (nType !== 'number' && (doLength || objType === 'number')) {\n errorMessage = msgPrefix + 'the argument to most must be a number';\n } else if (!doLength && (objType !== 'date' && objType !== 'number')) {\n var printObj = (objType === 'string') ? \"'\" + obj + \"'\" : obj;\n errorMessage = msgPrefix + 'expected ' + printObj + ' to be a number or a date';\n } else {\n shouldThrow = false;\n }\n\n if (shouldThrow) {\n throw new AssertionError(errorMessage, undefined, ssfi);\n }\n\n if (doLength) {\n var descriptor = 'length'\n , itemsCount;\n if (objType === 'map' || objType === 'set') {\n descriptor = 'size';\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount <= n\n , 'expected #{this} to have a ' + descriptor + ' at most #{exp} but got #{act}'\n , 'expected #{this} to have a ' + descriptor + ' above #{exp}'\n , n\n , itemsCount\n );\n } else {\n this.assert(\n obj <= n\n , 'expected #{this} to be at most #{exp}'\n , 'expected #{this} to be above #{exp}'\n , n\n );\n }\n }\n\n Assertion.addMethod('most', assertMost);\n Assertion.addMethod('lte', assertMost);\n Assertion.addMethod('lessThanOrEqual', assertMost);\n\n /**\n * ### .within(start, finish[, msg])\n *\n * Asserts that the target is a number or a date greater than or equal to the given\n * number or date `start`, and less than or equal to the given number or date `finish` respectively.\n * However, it's often best to assert that the target is equal to its expected\n * value.\n *\n * expect(2).to.equal(2); // Recommended\n * expect(2).to.be.within(1, 3); // Not recommended\n * expect(2).to.be.within(2, 3); // Not recommended\n * expect(2).to.be.within(1, 2); // Not recommended\n *\n * Add `.lengthOf` earlier in the chain to assert that the target's `length`\n * or `size` is greater than or equal to the given number `start`, and less\n * than or equal to the given number `finish`.\n *\n * expect('foo').to.have.lengthOf(3); // Recommended\n * expect('foo').to.have.lengthOf.within(2, 4); // Not recommended\n *\n * expect([1, 2, 3]).to.have.lengthOf(3); // Recommended\n * expect([1, 2, 3]).to.have.lengthOf.within(2, 4); // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.within`.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.not.be.within(2, 4); // Not recommended\n *\n * `.within` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`.\n *\n * expect(4).to.be.within(1, 3, 'nooo why fail??');\n * expect(4, 'nooo why fail??').to.be.within(1, 3);\n *\n * @name within\n * @param {Number} start lower bound inclusive\n * @param {Number} finish upper bound inclusive\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n Assertion.addMethod('within', function (start, finish, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , doLength = flag(this, 'doLength')\n , flagMsg = flag(this, 'message')\n , msgPrefix = ((flagMsg) ? flagMsg + ': ' : '')\n , ssfi = flag(this, 'ssfi')\n , objType = _.type(obj).toLowerCase()\n , startType = _.type(start).toLowerCase()\n , finishType = _.type(finish).toLowerCase()\n , errorMessage\n , shouldThrow = true\n , range = (startType === 'date' && finishType === 'date')\n ? start.toISOString() + '..' + finish.toISOString()\n : start + '..' + finish;\n\n if (doLength && objType !== 'map' && objType !== 'set') {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property('length');\n }\n\n if (!doLength && (objType === 'date' && (startType !== 'date' || finishType !== 'date'))) {\n errorMessage = msgPrefix + 'the arguments to within must be dates';\n } else if ((startType !== 'number' || finishType !== 'number') && (doLength || objType === 'number')) {\n errorMessage = msgPrefix + 'the arguments to within must be numbers';\n } else if (!doLength && (objType !== 'date' && objType !== 'number')) {\n var printObj = (objType === 'string') ? \"'\" + obj + \"'\" : obj;\n errorMessage = msgPrefix + 'expected ' + printObj + ' to be a number or a date';\n } else {\n shouldThrow = false;\n }\n\n if (shouldThrow) {\n throw new AssertionError(errorMessage, undefined, ssfi);\n }\n\n if (doLength) {\n var descriptor = 'length'\n , itemsCount;\n if (objType === 'map' || objType === 'set') {\n descriptor = 'size';\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount >= start && itemsCount <= finish\n , 'expected #{this} to have a ' + descriptor + ' within ' + range\n , 'expected #{this} to not have a ' + descriptor + ' within ' + range\n );\n } else {\n this.assert(\n obj >= start && obj <= finish\n , 'expected #{this} to be within ' + range\n , 'expected #{this} to not be within ' + range\n );\n }\n });\n\n /**\n * ### .instanceof(constructor[, msg])\n *\n * Asserts that the target is an instance of the given `constructor`.\n *\n * function Cat () { }\n *\n * expect(new Cat()).to.be.an.instanceof(Cat);\n * expect([1, 2]).to.be.an.instanceof(Array);\n *\n * Add `.not` earlier in the chain to negate `.instanceof`.\n *\n * expect({a: 1}).to.not.be.an.instanceof(Array);\n *\n * `.instanceof` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`.\n *\n * expect(1).to.be.an.instanceof(Array, 'nooo why fail??');\n * expect(1, 'nooo why fail??').to.be.an.instanceof(Array);\n *\n * Due to limitations in ES5, `.instanceof` may not always work as expected\n * when using a transpiler such as Babel or TypeScript. In particular, it may\n * produce unexpected results when subclassing built-in object such as\n * `Array`, `Error`, and `Map`. See your transpiler's docs for details:\n *\n * - ([Babel](https://babeljs.io/docs/usage/caveats/#classes))\n * - ([TypeScript](https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work))\n *\n * The alias `.instanceOf` can be used interchangeably with `.instanceof`.\n *\n * @name instanceof\n * @param {Constructor} constructor\n * @param {String} msg _optional_\n * @alias instanceOf\n * @namespace BDD\n * @api public\n */\n\n function assertInstanceOf (constructor, msg) {\n if (msg) flag(this, 'message', msg);\n\n var target = flag(this, 'object')\n var ssfi = flag(this, 'ssfi');\n var flagMsg = flag(this, 'message');\n\n try {\n var isInstanceOf = target instanceof constructor;\n } catch (err) {\n if (err instanceof TypeError) {\n flagMsg = flagMsg ? flagMsg + ': ' : '';\n throw new AssertionError(\n flagMsg + 'The instanceof assertion needs a constructor but '\n + _.type(constructor) + ' was given.',\n undefined,\n ssfi\n );\n }\n throw err;\n }\n\n var name = _.getName(constructor);\n if (name === null) {\n name = 'an unnamed constructor';\n }\n\n this.assert(\n isInstanceOf\n , 'expected #{this} to be an instance of ' + name\n , 'expected #{this} to not be an instance of ' + name\n );\n };\n\n Assertion.addMethod('instanceof', assertInstanceOf);\n Assertion.addMethod('instanceOf', assertInstanceOf);\n\n /**\n * ### .property(name[, val[, msg]])\n *\n * Asserts that the target has a property with the given key `name`.\n *\n * expect({a: 1}).to.have.property('a');\n *\n * When `val` is provided, `.property` also asserts that the property's value\n * is equal to the given `val`.\n *\n * expect({a: 1}).to.have.property('a', 1);\n *\n * By default, strict (`===`) equality is used. Add `.deep` earlier in the\n * chain to use deep equality instead. See the `deep-eql` project page for\n * info on the deep equality algorithm: https://github.com/chaijs/deep-eql.\n *\n * // Target object deeply (but not strictly) has property `x: {a: 1}`\n * expect({x: {a: 1}}).to.have.deep.property('x', {a: 1});\n * expect({x: {a: 1}}).to.not.have.property('x', {a: 1});\n *\n * The target's enumerable and non-enumerable properties are always included\n * in the search. By default, both own and inherited properties are included.\n * Add `.own` earlier in the chain to exclude inherited properties from the\n * search.\n *\n * Object.prototype.b = 2;\n *\n * expect({a: 1}).to.have.own.property('a');\n * expect({a: 1}).to.have.own.property('a', 1);\n * expect({a: 1}).to.have.property('b');\n * expect({a: 1}).to.not.have.own.property('b');\n *\n * `.deep` and `.own` can be combined.\n *\n * expect({x: {a: 1}}).to.have.deep.own.property('x', {a: 1});\n *\n * Add `.nested` earlier in the chain to enable dot- and bracket-notation when\n * referencing nested properties.\n *\n * expect({a: {b: ['x', 'y']}}).to.have.nested.property('a.b[1]');\n * expect({a: {b: ['x', 'y']}}).to.have.nested.property('a.b[1]', 'y');\n *\n * If `.` or `[]` are part of an actual property name, they can be escaped by\n * adding two backslashes before them.\n *\n * expect({'.a': {'[b]': 'x'}}).to.have.nested.property('\\\\.a.\\\\[b\\\\]');\n *\n * `.deep` and `.nested` can be combined.\n *\n * expect({a: {b: [{c: 3}]}})\n * .to.have.deep.nested.property('a.b[0]', {c: 3});\n *\n * `.own` and `.nested` cannot be combined.\n *\n * Add `.not` earlier in the chain to negate `.property`.\n *\n * expect({a: 1}).to.not.have.property('b');\n *\n * However, it's dangerous to negate `.property` when providing `val`. The\n * problem is that it creates uncertain expectations by asserting that the\n * target either doesn't have a property with the given key `name`, or that it\n * does have a property with the given key `name` but its value isn't equal to\n * the given `val`. It's often best to identify the exact output that's\n * expected, and then write an assertion that only accepts that exact output.\n *\n * When the target isn't expected to have a property with the given key\n * `name`, it's often best to assert exactly that.\n *\n * expect({b: 2}).to.not.have.property('a'); // Recommended\n * expect({b: 2}).to.not.have.property('a', 1); // Not recommended\n *\n * When the target is expected to have a property with the given key `name`,\n * it's often best to assert that the property has its expected value, rather\n * than asserting that it doesn't have one of many unexpected values.\n *\n * expect({a: 3}).to.have.property('a', 3); // Recommended\n * expect({a: 3}).to.not.have.property('a', 1); // Not recommended\n *\n * `.property` changes the target of any assertions that follow in the chain\n * to be the value of the property from the original target object.\n *\n * expect({a: 1}).to.have.property('a').that.is.a('number');\n *\n * `.property` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`. When not providing `val`, only use the\n * second form.\n *\n * // Recommended\n * expect({a: 1}).to.have.property('a', 2, 'nooo why fail??');\n * expect({a: 1}, 'nooo why fail??').to.have.property('a', 2);\n * expect({a: 1}, 'nooo why fail??').to.have.property('b');\n *\n * // Not recommended\n * expect({a: 1}).to.have.property('b', undefined, 'nooo why fail??');\n *\n * The above assertion isn't the same thing as not providing `val`. Instead,\n * it's asserting that the target object has a `b` property that's equal to\n * `undefined`.\n *\n * The assertions `.ownProperty` and `.haveOwnProperty` can be used\n * interchangeably with `.own.property`.\n *\n * @name property\n * @param {String} name\n * @param {Mixed} val (optional)\n * @param {String} msg _optional_\n * @returns value of property for chaining\n * @namespace BDD\n * @api public\n */\n\n function assertProperty (name, val, msg) {\n if (msg) flag(this, 'message', msg);\n\n var isNested = flag(this, 'nested')\n , isOwn = flag(this, 'own')\n , flagMsg = flag(this, 'message')\n , obj = flag(this, 'object')\n , ssfi = flag(this, 'ssfi')\n , nameType = typeof name;\n\n flagMsg = flagMsg ? flagMsg + ': ' : '';\n\n if (isNested) {\n if (nameType !== 'string') {\n throw new AssertionError(\n flagMsg + 'the argument to property must be a string when using nested syntax',\n undefined,\n ssfi\n );\n }\n } else {\n if (nameType !== 'string' && nameType !== 'number' && nameType !== 'symbol') {\n throw new AssertionError(\n flagMsg + 'the argument to property must be a string, number, or symbol',\n undefined,\n ssfi\n );\n }\n }\n\n if (isNested && isOwn) {\n throw new AssertionError(\n flagMsg + 'The \"nested\" and \"own\" flags cannot be combined.',\n undefined,\n ssfi\n );\n }\n\n if (obj === null || obj === undefined) {\n throw new AssertionError(\n flagMsg + 'Target cannot be null or undefined.',\n undefined,\n ssfi\n );\n }\n\n var isDeep = flag(this, 'deep')\n , negate = flag(this, 'negate')\n , pathInfo = isNested ? _.getPathInfo(obj, name) : null\n , value = isNested ? pathInfo.value : obj[name];\n\n var descriptor = '';\n if (isDeep) descriptor += 'deep ';\n if (isOwn) descriptor += 'own ';\n if (isNested) descriptor += 'nested ';\n descriptor += 'property ';\n\n var hasProperty;\n if (isOwn) hasProperty = Object.prototype.hasOwnProperty.call(obj, name);\n else if (isNested) hasProperty = pathInfo.exists;\n else hasProperty = _.hasProperty(obj, name);\n\n // When performing a negated assertion for both name and val, merely having\n // a property with the given name isn't enough to cause the assertion to\n // fail. It must both have a property with the given name, and the value of\n // that property must equal the given val. Therefore, skip this assertion in\n // favor of the next.\n if (!negate || arguments.length === 1) {\n this.assert(\n hasProperty\n , 'expected #{this} to have ' + descriptor + _.inspect(name)\n , 'expected #{this} to not have ' + descriptor + _.inspect(name));\n }\n\n if (arguments.length > 1) {\n this.assert(\n hasProperty && (isDeep ? _.eql(val, value) : val === value)\n , 'expected #{this} to have ' + descriptor + _.inspect(name) + ' of #{exp}, but got #{act}'\n , 'expected #{this} to not have ' + descriptor + _.inspect(name) + ' of #{act}'\n , val\n , value\n );\n }\n\n flag(this, 'object', value);\n }\n\n Assertion.addMethod('property', assertProperty);\n\n function assertOwnProperty (name, value, msg) {\n flag(this, 'own', true);\n assertProperty.apply(this, arguments);\n }\n\n Assertion.addMethod('ownProperty', assertOwnProperty);\n Assertion.addMethod('haveOwnProperty', assertOwnProperty);\n\n /**\n * ### .ownPropertyDescriptor(name[, descriptor[, msg]])\n *\n * Asserts that the target has its own property descriptor with the given key\n * `name`. Enumerable and non-enumerable properties are included in the\n * search.\n *\n * expect({a: 1}).to.have.ownPropertyDescriptor('a');\n *\n * When `descriptor` is provided, `.ownPropertyDescriptor` also asserts that\n * the property's descriptor is deeply equal to the given `descriptor`. See\n * the `deep-eql` project page for info on the deep equality algorithm:\n * https://github.com/chaijs/deep-eql.\n *\n * expect({a: 1}).to.have.ownPropertyDescriptor('a', {\n * configurable: true,\n * enumerable: true,\n * writable: true,\n * value: 1,\n * });\n *\n * Add `.not` earlier in the chain to negate `.ownPropertyDescriptor`.\n *\n * expect({a: 1}).to.not.have.ownPropertyDescriptor('b');\n *\n * However, it's dangerous to negate `.ownPropertyDescriptor` when providing\n * a `descriptor`. The problem is that it creates uncertain expectations by\n * asserting that the target either doesn't have a property descriptor with\n * the given key `name`, or that it does have a property descriptor with the\n * given key `name` but it’s not deeply equal to the given `descriptor`. It's\n * often best to identify the exact output that's expected, and then write an\n * assertion that only accepts that exact output.\n *\n * When the target isn't expected to have a property descriptor with the given\n * key `name`, it's often best to assert exactly that.\n *\n * // Recommended\n * expect({b: 2}).to.not.have.ownPropertyDescriptor('a');\n *\n * // Not recommended\n * expect({b: 2}).to.not.have.ownPropertyDescriptor('a', {\n * configurable: true,\n * enumerable: true,\n * writable: true,\n * value: 1,\n * });\n *\n * When the target is expected to have a property descriptor with the given\n * key `name`, it's often best to assert that the property has its expected\n * descriptor, rather than asserting that it doesn't have one of many\n * unexpected descriptors.\n *\n * // Recommended\n * expect({a: 3}).to.have.ownPropertyDescriptor('a', {\n * configurable: true,\n * enumerable: true,\n * writable: true,\n * value: 3,\n * });\n *\n * // Not recommended\n * expect({a: 3}).to.not.have.ownPropertyDescriptor('a', {\n * configurable: true,\n * enumerable: true,\n * writable: true,\n * value: 1,\n * });\n *\n * `.ownPropertyDescriptor` changes the target of any assertions that follow\n * in the chain to be the value of the property descriptor from the original\n * target object.\n *\n * expect({a: 1}).to.have.ownPropertyDescriptor('a')\n * .that.has.property('enumerable', true);\n *\n * `.ownPropertyDescriptor` accepts an optional `msg` argument which is a\n * custom error message to show when the assertion fails. The message can also\n * be given as the second argument to `expect`. When not providing\n * `descriptor`, only use the second form.\n *\n * // Recommended\n * expect({a: 1}).to.have.ownPropertyDescriptor('a', {\n * configurable: true,\n * enumerable: true,\n * writable: true,\n * value: 2,\n * }, 'nooo why fail??');\n *\n * // Recommended\n * expect({a: 1}, 'nooo why fail??').to.have.ownPropertyDescriptor('a', {\n * configurable: true,\n * enumerable: true,\n * writable: true,\n * value: 2,\n * });\n *\n * // Recommended\n * expect({a: 1}, 'nooo why fail??').to.have.ownPropertyDescriptor('b');\n *\n * // Not recommended\n * expect({a: 1})\n * .to.have.ownPropertyDescriptor('b', undefined, 'nooo why fail??');\n *\n * The above assertion isn't the same thing as not providing `descriptor`.\n * Instead, it's asserting that the target object has a `b` property\n * descriptor that's deeply equal to `undefined`.\n *\n * The alias `.haveOwnPropertyDescriptor` can be used interchangeably with\n * `.ownPropertyDescriptor`.\n *\n * @name ownPropertyDescriptor\n * @alias haveOwnPropertyDescriptor\n * @param {String} name\n * @param {Object} descriptor _optional_\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertOwnPropertyDescriptor (name, descriptor, msg) {\n if (typeof descriptor === 'string') {\n msg = descriptor;\n descriptor = null;\n }\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object');\n var actualDescriptor = Object.getOwnPropertyDescriptor(Object(obj), name);\n if (actualDescriptor && descriptor) {\n this.assert(\n _.eql(descriptor, actualDescriptor)\n , 'expected the own property descriptor for ' + _.inspect(name) + ' on #{this} to match ' + _.inspect(descriptor) + ', got ' + _.inspect(actualDescriptor)\n , 'expected the own property descriptor for ' + _.inspect(name) + ' on #{this} to not match ' + _.inspect(descriptor)\n , descriptor\n , actualDescriptor\n , true\n );\n } else {\n this.assert(\n actualDescriptor\n , 'expected #{this} to have an own property descriptor for ' + _.inspect(name)\n , 'expected #{this} to not have an own property descriptor for ' + _.inspect(name)\n );\n }\n flag(this, 'object', actualDescriptor);\n }\n\n Assertion.addMethod('ownPropertyDescriptor', assertOwnPropertyDescriptor);\n Assertion.addMethod('haveOwnPropertyDescriptor', assertOwnPropertyDescriptor);\n\n /**\n * ### .lengthOf(n[, msg])\n *\n * Asserts that the target's `length` or `size` is equal to the given number\n * `n`.\n *\n * expect([1, 2, 3]).to.have.lengthOf(3);\n * expect('foo').to.have.lengthOf(3);\n * expect(new Set([1, 2, 3])).to.have.lengthOf(3);\n * expect(new Map([['a', 1], ['b', 2], ['c', 3]])).to.have.lengthOf(3);\n *\n * Add `.not` earlier in the chain to negate `.lengthOf`. However, it's often\n * best to assert that the target's `length` property is equal to its expected\n * value, rather than not equal to one of many unexpected values.\n *\n * expect('foo').to.have.lengthOf(3); // Recommended\n * expect('foo').to.not.have.lengthOf(4); // Not recommended\n *\n * `.lengthOf` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`.\n *\n * expect([1, 2, 3]).to.have.lengthOf(2, 'nooo why fail??');\n * expect([1, 2, 3], 'nooo why fail??').to.have.lengthOf(2);\n *\n * `.lengthOf` can also be used as a language chain, causing all `.above`,\n * `.below`, `.least`, `.most`, and `.within` assertions that follow in the\n * chain to use the target's `length` property as the target. However, it's\n * often best to assert that the target's `length` property is equal to its\n * expected length, rather than asserting that its `length` property falls\n * within some range of values.\n *\n * // Recommended\n * expect([1, 2, 3]).to.have.lengthOf(3);\n *\n * // Not recommended\n * expect([1, 2, 3]).to.have.lengthOf.above(2);\n * expect([1, 2, 3]).to.have.lengthOf.below(4);\n * expect([1, 2, 3]).to.have.lengthOf.at.least(3);\n * expect([1, 2, 3]).to.have.lengthOf.at.most(3);\n * expect([1, 2, 3]).to.have.lengthOf.within(2,4);\n *\n * Due to a compatibility issue, the alias `.length` can't be chained directly\n * off of an uninvoked method such as `.a`. Therefore, `.length` can't be used\n * interchangeably with `.lengthOf` in every situation. It's recommended to\n * always use `.lengthOf` instead of `.length`.\n *\n * expect([1, 2, 3]).to.have.a.length(3); // incompatible; throws error\n * expect([1, 2, 3]).to.have.a.lengthOf(3); // passes as expected\n *\n * @name lengthOf\n * @alias length\n * @param {Number} n\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertLengthChain () {\n flag(this, 'doLength', true);\n }\n\n function assertLength (n, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , objType = _.type(obj).toLowerCase()\n , flagMsg = flag(this, 'message')\n , ssfi = flag(this, 'ssfi')\n , descriptor = 'length'\n , itemsCount;\n\n switch (objType) {\n case 'map':\n case 'set':\n descriptor = 'size';\n itemsCount = obj.size;\n break;\n default:\n new Assertion(obj, flagMsg, ssfi, true).to.have.property('length');\n itemsCount = obj.length;\n }\n\n this.assert(\n itemsCount == n\n , 'expected #{this} to have a ' + descriptor + ' of #{exp} but got #{act}'\n , 'expected #{this} to not have a ' + descriptor + ' of #{act}'\n , n\n , itemsCount\n );\n }\n\n Assertion.addChainableMethod('length', assertLength, assertLengthChain);\n Assertion.addChainableMethod('lengthOf', assertLength, assertLengthChain);\n\n /**\n * ### .match(re[, msg])\n *\n * Asserts that the target matches the given regular expression `re`.\n *\n * expect('foobar').to.match(/^foo/);\n *\n * Add `.not` earlier in the chain to negate `.match`.\n *\n * expect('foobar').to.not.match(/taco/);\n *\n * `.match` accepts an optional `msg` argument which is a custom error message\n * to show when the assertion fails. The message can also be given as the\n * second argument to `expect`.\n *\n * expect('foobar').to.match(/taco/, 'nooo why fail??');\n * expect('foobar', 'nooo why fail??').to.match(/taco/);\n *\n * The alias `.matches` can be used interchangeably with `.match`.\n *\n * @name match\n * @alias matches\n * @param {RegExp} re\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n function assertMatch(re, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object');\n this.assert(\n re.exec(obj)\n , 'expected #{this} to match ' + re\n , 'expected #{this} not to match ' + re\n );\n }\n\n Assertion.addMethod('match', assertMatch);\n Assertion.addMethod('matches', assertMatch);\n\n /**\n * ### .string(str[, msg])\n *\n * Asserts that the target string contains the given substring `str`.\n *\n * expect('foobar').to.have.string('bar');\n *\n * Add `.not` earlier in the chain to negate `.string`.\n *\n * expect('foobar').to.not.have.string('taco');\n *\n * `.string` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`.\n *\n * expect('foobar').to.have.string('taco', 'nooo why fail??');\n * expect('foobar', 'nooo why fail??').to.have.string('taco');\n *\n * @name string\n * @param {String} str\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n Assertion.addMethod('string', function (str, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , flagMsg = flag(this, 'message')\n , ssfi = flag(this, 'ssfi');\n new Assertion(obj, flagMsg, ssfi, true).is.a('string');\n\n this.assert(\n ~obj.indexOf(str)\n , 'expected #{this} to contain ' + _.inspect(str)\n , 'expected #{this} to not contain ' + _.inspect(str)\n );\n });\n\n /**\n * ### .keys(key1[, key2[, ...]])\n *\n * Asserts that the target object, array, map, or set has the given keys. Only\n * the target's own inherited properties are included in the search.\n *\n * When the target is an object or array, keys can be provided as one or more\n * string arguments, a single array argument, or a single object argument. In\n * the latter case, only the keys in the given object matter; the values are\n * ignored.\n *\n * expect({a: 1, b: 2}).to.have.all.keys('a', 'b');\n * expect(['x', 'y']).to.have.all.keys(0, 1);\n *\n * expect({a: 1, b: 2}).to.have.all.keys(['a', 'b']);\n * expect(['x', 'y']).to.have.all.keys([0, 1]);\n *\n * expect({a: 1, b: 2}).to.have.all.keys({a: 4, b: 5}); // ignore 4 and 5\n * expect(['x', 'y']).to.have.all.keys({0: 4, 1: 5}); // ignore 4 and 5\n *\n * When the target is a map or set, each key must be provided as a separate\n * argument.\n *\n * expect(new Map([['a', 1], ['b', 2]])).to.have.all.keys('a', 'b');\n * expect(new Set(['a', 'b'])).to.have.all.keys('a', 'b');\n *\n * Because `.keys` does different things based on the target's type, it's\n * important to check the target's type before using `.keys`. See the `.a` doc\n * for info on testing a target's type.\n *\n * expect({a: 1, b: 2}).to.be.an('object').that.has.all.keys('a', 'b');\n *\n * By default, strict (`===`) equality is used to compare keys of maps and\n * sets. Add `.deep` earlier in the chain to use deep equality instead. See\n * the `deep-eql` project page for info on the deep equality algorithm:\n * https://github.com/chaijs/deep-eql.\n *\n * // Target set deeply (but not strictly) has key `{a: 1}`\n * expect(new Set([{a: 1}])).to.have.all.deep.keys([{a: 1}]);\n * expect(new Set([{a: 1}])).to.not.have.all.keys([{a: 1}]);\n *\n * By default, the target must have all of the given keys and no more. Add\n * `.any` earlier in the chain to only require that the target have at least\n * one of the given keys. Also, add `.not` earlier in the chain to negate\n * `.keys`. It's often best to add `.any` when negating `.keys`, and to use\n * `.all` when asserting `.keys` without negation.\n *\n * When negating `.keys`, `.any` is preferred because `.not.any.keys` asserts\n * exactly what's expected of the output, whereas `.not.all.keys` creates\n * uncertain expectations.\n *\n * // Recommended; asserts that target doesn't have any of the given keys\n * expect({a: 1, b: 2}).to.not.have.any.keys('c', 'd');\n *\n * // Not recommended; asserts that target doesn't have all of the given\n * // keys but may or may not have some of them\n * expect({a: 1, b: 2}).to.not.have.all.keys('c', 'd');\n *\n * When asserting `.keys` without negation, `.all` is preferred because\n * `.all.keys` asserts exactly what's expected of the output, whereas\n * `.any.keys` creates uncertain expectations.\n *\n * // Recommended; asserts that target has all the given keys\n * expect({a: 1, b: 2}).to.have.all.keys('a', 'b');\n *\n * // Not recommended; asserts that target has at least one of the given\n * // keys but may or may not have more of them\n * expect({a: 1, b: 2}).to.have.any.keys('a', 'b');\n *\n * Note that `.all` is used by default when neither `.all` nor `.any` appear\n * earlier in the chain. However, it's often best to add `.all` anyway because\n * it improves readability.\n *\n * // Both assertions are identical\n * expect({a: 1, b: 2}).to.have.all.keys('a', 'b'); // Recommended\n * expect({a: 1, b: 2}).to.have.keys('a', 'b'); // Not recommended\n *\n * Add `.include` earlier in the chain to require that the target's keys be a\n * superset of the expected keys, rather than identical sets.\n *\n * // Target object's keys are a superset of ['a', 'b'] but not identical\n * expect({a: 1, b: 2, c: 3}).to.include.all.keys('a', 'b');\n * expect({a: 1, b: 2, c: 3}).to.not.have.all.keys('a', 'b');\n *\n * However, if `.any` and `.include` are combined, only the `.any` takes\n * effect. The `.include` is ignored in this case.\n *\n * // Both assertions are identical\n * expect({a: 1}).to.have.any.keys('a', 'b');\n * expect({a: 1}).to.include.any.keys('a', 'b');\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect({a: 1}, 'nooo why fail??').to.have.key('b');\n *\n * The alias `.key` can be used interchangeably with `.keys`.\n *\n * @name keys\n * @alias key\n * @param {...String|Array|Object} keys\n * @namespace BDD\n * @api public\n */\n\n function assertKeys (keys) {\n var obj = flag(this, 'object')\n , objType = _.type(obj)\n , keysType = _.type(keys)\n , ssfi = flag(this, 'ssfi')\n , isDeep = flag(this, 'deep')\n , str\n , deepStr = ''\n , actual\n , ok = true\n , flagMsg = flag(this, 'message');\n\n flagMsg = flagMsg ? flagMsg + ': ' : '';\n var mixedArgsMsg = flagMsg + 'when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments';\n\n if (objType === 'Map' || objType === 'Set') {\n deepStr = isDeep ? 'deeply ' : '';\n actual = [];\n\n // Map and Set '.keys' aren't supported in IE 11. Therefore, use .forEach.\n obj.forEach(function (val, key) { actual.push(key) });\n\n if (keysType !== 'Array') {\n keys = Array.prototype.slice.call(arguments);\n }\n } else {\n actual = _.getOwnEnumerableProperties(obj);\n\n switch (keysType) {\n case 'Array':\n if (arguments.length > 1) {\n throw new AssertionError(mixedArgsMsg, undefined, ssfi);\n }\n break;\n case 'Object':\n if (arguments.length > 1) {\n throw new AssertionError(mixedArgsMsg, undefined, ssfi);\n }\n keys = Object.keys(keys);\n break;\n default:\n keys = Array.prototype.slice.call(arguments);\n }\n\n // Only stringify non-Symbols because Symbols would become \"Symbol()\"\n keys = keys.map(function (val) {\n return typeof val === 'symbol' ? val : String(val);\n });\n }\n\n if (!keys.length) {\n throw new AssertionError(flagMsg + 'keys required', undefined, ssfi);\n }\n\n var len = keys.length\n , any = flag(this, 'any')\n , all = flag(this, 'all')\n , expected = keys;\n\n if (!any && !all) {\n all = true;\n }\n\n // Has any\n if (any) {\n ok = expected.some(function(expectedKey) {\n return actual.some(function(actualKey) {\n if (isDeep) {\n return _.eql(expectedKey, actualKey);\n } else {\n return expectedKey === actualKey;\n }\n });\n });\n }\n\n // Has all\n if (all) {\n ok = expected.every(function(expectedKey) {\n return actual.some(function(actualKey) {\n if (isDeep) {\n return _.eql(expectedKey, actualKey);\n } else {\n return expectedKey === actualKey;\n }\n });\n });\n\n if (!flag(this, 'contains')) {\n ok = ok && keys.length == actual.length;\n }\n }\n\n // Key string\n if (len > 1) {\n keys = keys.map(function(key) {\n return _.inspect(key);\n });\n var last = keys.pop();\n if (all) {\n str = keys.join(', ') + ', and ' + last;\n }\n if (any) {\n str = keys.join(', ') + ', or ' + last;\n }\n } else {\n str = _.inspect(keys[0]);\n }\n\n // Form\n str = (len > 1 ? 'keys ' : 'key ') + str;\n\n // Have / include\n str = (flag(this, 'contains') ? 'contain ' : 'have ') + str;\n\n // Assertion\n this.assert(\n ok\n , 'expected #{this} to ' + deepStr + str\n , 'expected #{this} to not ' + deepStr + str\n , expected.slice(0).sort(_.compareByInspect)\n , actual.sort(_.compareByInspect)\n , true\n );\n }\n\n Assertion.addMethod('keys', assertKeys);\n Assertion.addMethod('key', assertKeys);\n\n /**\n * ### .throw([errorLike], [errMsgMatcher], [msg])\n *\n * When no arguments are provided, `.throw` invokes the target function and\n * asserts that an error is thrown.\n *\n * var badFn = function () { throw new TypeError('Illegal salmon!'); };\n *\n * expect(badFn).to.throw();\n *\n * When one argument is provided, and it's an error constructor, `.throw`\n * invokes the target function and asserts that an error is thrown that's an\n * instance of that error constructor.\n *\n * var badFn = function () { throw new TypeError('Illegal salmon!'); };\n *\n * expect(badFn).to.throw(TypeError);\n *\n * When one argument is provided, and it's an error instance, `.throw` invokes\n * the target function and asserts that an error is thrown that's strictly\n * (`===`) equal to that error instance.\n *\n * var err = new TypeError('Illegal salmon!');\n * var badFn = function () { throw err; };\n *\n * expect(badFn).to.throw(err);\n *\n * When one argument is provided, and it's a string, `.throw` invokes the\n * target function and asserts that an error is thrown with a message that\n * contains that string.\n *\n * var badFn = function () { throw new TypeError('Illegal salmon!'); };\n *\n * expect(badFn).to.throw('salmon');\n *\n * When one argument is provided, and it's a regular expression, `.throw`\n * invokes the target function and asserts that an error is thrown with a\n * message that matches that regular expression.\n *\n * var badFn = function () { throw new TypeError('Illegal salmon!'); };\n *\n * expect(badFn).to.throw(/salmon/);\n *\n * When two arguments are provided, and the first is an error instance or\n * constructor, and the second is a string or regular expression, `.throw`\n * invokes the function and asserts that an error is thrown that fulfills both\n * conditions as described above.\n *\n * var err = new TypeError('Illegal salmon!');\n * var badFn = function () { throw err; };\n *\n * expect(badFn).to.throw(TypeError, 'salmon');\n * expect(badFn).to.throw(TypeError, /salmon/);\n * expect(badFn).to.throw(err, 'salmon');\n * expect(badFn).to.throw(err, /salmon/);\n *\n * Add `.not` earlier in the chain to negate `.throw`.\n *\n * var goodFn = function () {};\n *\n * expect(goodFn).to.not.throw();\n *\n * However, it's dangerous to negate `.throw` when providing any arguments.\n * The problem is that it creates uncertain expectations by asserting that the\n * target either doesn't throw an error, or that it throws an error but of a\n * different type than the given type, or that it throws an error of the given\n * type but with a message that doesn't include the given string. It's often\n * best to identify the exact output that's expected, and then write an\n * assertion that only accepts that exact output.\n *\n * When the target isn't expected to throw an error, it's often best to assert\n * exactly that.\n *\n * var goodFn = function () {};\n *\n * expect(goodFn).to.not.throw(); // Recommended\n * expect(goodFn).to.not.throw(ReferenceError, 'x'); // Not recommended\n *\n * When the target is expected to throw an error, it's often best to assert\n * that the error is of its expected type, and has a message that includes an\n * expected string, rather than asserting that it doesn't have one of many\n * unexpected types, and doesn't have a message that includes some string.\n *\n * var badFn = function () { throw new TypeError('Illegal salmon!'); };\n *\n * expect(badFn).to.throw(TypeError, 'salmon'); // Recommended\n * expect(badFn).to.not.throw(ReferenceError, 'x'); // Not recommended\n *\n * `.throw` changes the target of any assertions that follow in the chain to\n * be the error object that's thrown.\n *\n * var err = new TypeError('Illegal salmon!');\n * err.code = 42;\n * var badFn = function () { throw err; };\n *\n * expect(badFn).to.throw(TypeError).with.property('code', 42);\n *\n * `.throw` accepts an optional `msg` argument which is a custom error message\n * to show when the assertion fails. The message can also be given as the\n * second argument to `expect`. When not providing two arguments, always use\n * the second form.\n *\n * var goodFn = function () {};\n *\n * expect(goodFn).to.throw(TypeError, 'x', 'nooo why fail??');\n * expect(goodFn, 'nooo why fail??').to.throw();\n *\n * Due to limitations in ES5, `.throw` may not always work as expected when\n * using a transpiler such as Babel or TypeScript. In particular, it may\n * produce unexpected results when subclassing the built-in `Error` object and\n * then passing the subclassed constructor to `.throw`. See your transpiler's\n * docs for details:\n *\n * - ([Babel](https://babeljs.io/docs/usage/caveats/#classes))\n * - ([TypeScript](https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work))\n *\n * Beware of some common mistakes when using the `throw` assertion. One common\n * mistake is to accidentally invoke the function yourself instead of letting\n * the `throw` assertion invoke the function for you. For example, when\n * testing if a function named `fn` throws, provide `fn` instead of `fn()` as\n * the target for the assertion.\n *\n * expect(fn).to.throw(); // Good! Tests `fn` as desired\n * expect(fn()).to.throw(); // Bad! Tests result of `fn()`, not `fn`\n *\n * If you need to assert that your function `fn` throws when passed certain\n * arguments, then wrap a call to `fn` inside of another function.\n *\n * expect(function () { fn(42); }).to.throw(); // Function expression\n * expect(() => fn(42)).to.throw(); // ES6 arrow function\n *\n * Another common mistake is to provide an object method (or any stand-alone\n * function that relies on `this`) as the target of the assertion. Doing so is\n * problematic because the `this` context will be lost when the function is\n * invoked by `.throw`; there's no way for it to know what `this` is supposed\n * to be. There are two ways around this problem. One solution is to wrap the\n * method or function call inside of another function. Another solution is to\n * use `bind`.\n *\n * expect(function () { cat.meow(); }).to.throw(); // Function expression\n * expect(() => cat.meow()).to.throw(); // ES6 arrow function\n * expect(cat.meow.bind(cat)).to.throw(); // Bind\n *\n * Finally, it's worth mentioning that it's a best practice in JavaScript to\n * only throw `Error` and derivatives of `Error` such as `ReferenceError`,\n * `TypeError`, and user-defined objects that extend `Error`. No other type of\n * value will generate a stack trace when initialized. With that said, the\n * `throw` assertion does technically support any type of value being thrown,\n * not just `Error` and its derivatives.\n *\n * The aliases `.throws` and `.Throw` can be used interchangeably with\n * `.throw`.\n *\n * @name throw\n * @alias throws\n * @alias Throw\n * @param {Error|ErrorConstructor} errorLike\n * @param {String|RegExp} errMsgMatcher error message\n * @param {String} msg _optional_\n * @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types\n * @returns error for chaining (null if no error)\n * @namespace BDD\n * @api public\n */\n\n function assertThrows (errorLike, errMsgMatcher, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , ssfi = flag(this, 'ssfi')\n , flagMsg = flag(this, 'message')\n , negate = flag(this, 'negate') || false;\n new Assertion(obj, flagMsg, ssfi, true).is.a('function');\n\n if (errorLike instanceof RegExp || typeof errorLike === 'string') {\n errMsgMatcher = errorLike;\n errorLike = null;\n }\n\n var caughtErr;\n try {\n obj();\n } catch (err) {\n caughtErr = err;\n }\n\n // If we have the negate flag enabled and at least one valid argument it means we do expect an error\n // but we want it to match a given set of criteria\n var everyArgIsUndefined = errorLike === undefined && errMsgMatcher === undefined;\n\n // If we've got the negate flag enabled and both args, we should only fail if both aren't compatible\n // See Issue #551 and PR #683@GitHub\n var everyArgIsDefined = Boolean(errorLike && errMsgMatcher);\n var errorLikeFail = false;\n var errMsgMatcherFail = false;\n\n // Checking if error was thrown\n if (everyArgIsUndefined || !everyArgIsUndefined && !negate) {\n // We need this to display results correctly according to their types\n var errorLikeString = 'an error';\n if (errorLike instanceof Error) {\n errorLikeString = '#{exp}';\n } else if (errorLike) {\n errorLikeString = _.checkError.getConstructorName(errorLike);\n }\n\n this.assert(\n caughtErr\n , 'expected #{this} to throw ' + errorLikeString\n , 'expected #{this} to not throw an error but #{act} was thrown'\n , errorLike && errorLike.toString()\n , (caughtErr instanceof Error ?\n caughtErr.toString() : (typeof caughtErr === 'string' ? caughtErr : caughtErr &&\n _.checkError.getConstructorName(caughtErr)))\n );\n }\n\n if (errorLike && caughtErr) {\n // We should compare instances only if `errorLike` is an instance of `Error`\n if (errorLike instanceof Error) {\n var isCompatibleInstance = _.checkError.compatibleInstance(caughtErr, errorLike);\n\n if (isCompatibleInstance === negate) {\n // These checks were created to ensure we won't fail too soon when we've got both args and a negate\n // See Issue #551 and PR #683@GitHub\n if (everyArgIsDefined && negate) {\n errorLikeFail = true;\n } else {\n this.assert(\n negate\n , 'expected #{this} to throw #{exp} but #{act} was thrown'\n , 'expected #{this} to not throw #{exp}' + (caughtErr && !negate ? ' but #{act} was thrown' : '')\n , errorLike.toString()\n , caughtErr.toString()\n );\n }\n }\n }\n\n var isCompatibleConstructor = _.checkError.compatibleConstructor(caughtErr, errorLike);\n if (isCompatibleConstructor === negate) {\n if (everyArgIsDefined && negate) {\n errorLikeFail = true;\n } else {\n this.assert(\n negate\n , 'expected #{this} to throw #{exp} but #{act} was thrown'\n , 'expected #{this} to not throw #{exp}' + (caughtErr ? ' but #{act} was thrown' : '')\n , (errorLike instanceof Error ? errorLike.toString() : errorLike && _.checkError.getConstructorName(errorLike))\n , (caughtErr instanceof Error ? caughtErr.toString() : caughtErr && _.checkError.getConstructorName(caughtErr))\n );\n }\n }\n }\n\n if (caughtErr && errMsgMatcher !== undefined && errMsgMatcher !== null) {\n // Here we check compatible messages\n var placeholder = 'including';\n if (errMsgMatcher instanceof RegExp) {\n placeholder = 'matching'\n }\n\n var isCompatibleMessage = _.checkError.compatibleMessage(caughtErr, errMsgMatcher);\n if (isCompatibleMessage === negate) {\n if (everyArgIsDefined && negate) {\n errMsgMatcherFail = true;\n } else {\n this.assert(\n negate\n , 'expected #{this} to throw error ' + placeholder + ' #{exp} but got #{act}'\n , 'expected #{this} to throw error not ' + placeholder + ' #{exp}'\n , errMsgMatcher\n , _.checkError.getMessage(caughtErr)\n );\n }\n }\n }\n\n // If both assertions failed and both should've matched we throw an error\n if (errorLikeFail && errMsgMatcherFail) {\n this.assert(\n negate\n , 'expected #{this} to throw #{exp} but #{act} was thrown'\n , 'expected #{this} to not throw #{exp}' + (caughtErr ? ' but #{act} was thrown' : '')\n , (errorLike instanceof Error ? errorLike.toString() : errorLike && _.checkError.getConstructorName(errorLike))\n , (caughtErr instanceof Error ? caughtErr.toString() : caughtErr && _.checkError.getConstructorName(caughtErr))\n );\n }\n\n flag(this, 'object', caughtErr);\n };\n\n Assertion.addMethod('throw', assertThrows);\n Assertion.addMethod('throws', assertThrows);\n Assertion.addMethod('Throw', assertThrows);\n\n /**\n * ### .respondTo(method[, msg])\n *\n * When the target is a non-function object, `.respondTo` asserts that the\n * target has a method with the given name `method`. The method can be own or\n * inherited, and it can be enumerable or non-enumerable.\n *\n * function Cat () {}\n * Cat.prototype.meow = function () {};\n *\n * expect(new Cat()).to.respondTo('meow');\n *\n * When the target is a function, `.respondTo` asserts that the target's\n * `prototype` property has a method with the given name `method`. Again, the\n * method can be own or inherited, and it can be enumerable or non-enumerable.\n *\n * function Cat () {}\n * Cat.prototype.meow = function () {};\n *\n * expect(Cat).to.respondTo('meow');\n *\n * Add `.itself` earlier in the chain to force `.respondTo` to treat the\n * target as a non-function object, even if it's a function. Thus, it asserts\n * that the target has a method with the given name `method`, rather than\n * asserting that the target's `prototype` property has a method with the\n * given name `method`.\n *\n * function Cat () {}\n * Cat.prototype.meow = function () {};\n * Cat.hiss = function () {};\n *\n * expect(Cat).itself.to.respondTo('hiss').but.not.respondTo('meow');\n *\n * When not adding `.itself`, it's important to check the target's type before\n * using `.respondTo`. See the `.a` doc for info on checking a target's type.\n *\n * function Cat () {}\n * Cat.prototype.meow = function () {};\n *\n * expect(new Cat()).to.be.an('object').that.respondsTo('meow');\n *\n * Add `.not` earlier in the chain to negate `.respondTo`.\n *\n * function Dog () {}\n * Dog.prototype.bark = function () {};\n *\n * expect(new Dog()).to.not.respondTo('meow');\n *\n * `.respondTo` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`.\n *\n * expect({}).to.respondTo('meow', 'nooo why fail??');\n * expect({}, 'nooo why fail??').to.respondTo('meow');\n *\n * The alias `.respondsTo` can be used interchangeably with `.respondTo`.\n *\n * @name respondTo\n * @alias respondsTo\n * @param {String} method\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function respondTo (method, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , itself = flag(this, 'itself')\n , context = ('function' === typeof obj && !itself)\n ? obj.prototype[method]\n : obj[method];\n\n this.assert(\n 'function' === typeof context\n , 'expected #{this} to respond to ' + _.inspect(method)\n , 'expected #{this} to not respond to ' + _.inspect(method)\n );\n }\n\n Assertion.addMethod('respondTo', respondTo);\n Assertion.addMethod('respondsTo', respondTo);\n\n /**\n * ### .itself\n *\n * Forces all `.respondTo` assertions that follow in the chain to behave as if\n * the target is a non-function object, even if it's a function. Thus, it\n * causes `.respondTo` to assert that the target has a method with the given\n * name, rather than asserting that the target's `prototype` property has a\n * method with the given name.\n *\n * function Cat () {}\n * Cat.prototype.meow = function () {};\n * Cat.hiss = function () {};\n *\n * expect(Cat).itself.to.respondTo('hiss').but.not.respondTo('meow');\n *\n * @name itself\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('itself', function () {\n flag(this, 'itself', true);\n });\n\n /**\n * ### .satisfy(matcher[, msg])\n *\n * Invokes the given `matcher` function with the target being passed as the\n * first argument, and asserts that the value returned is truthy.\n *\n * expect(1).to.satisfy(function(num) {\n * return num > 0;\n * });\n *\n * Add `.not` earlier in the chain to negate `.satisfy`.\n *\n * expect(1).to.not.satisfy(function(num) {\n * return num > 2;\n * });\n *\n * `.satisfy` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`.\n *\n * expect(1).to.satisfy(function(num) {\n * return num > 2;\n * }, 'nooo why fail??');\n *\n * expect(1, 'nooo why fail??').to.satisfy(function(num) {\n * return num > 2;\n * });\n *\n * The alias `.satisfies` can be used interchangeably with `.satisfy`.\n *\n * @name satisfy\n * @alias satisfies\n * @param {Function} matcher\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function satisfy (matcher, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object');\n var result = matcher(obj);\n this.assert(\n result\n , 'expected #{this} to satisfy ' + _.objDisplay(matcher)\n , 'expected #{this} to not satisfy' + _.objDisplay(matcher)\n , flag(this, 'negate') ? false : true\n , result\n );\n }\n\n Assertion.addMethod('satisfy', satisfy);\n Assertion.addMethod('satisfies', satisfy);\n\n /**\n * ### .closeTo(expected, delta[, msg])\n *\n * Asserts that the target is a number that's within a given +/- `delta` range\n * of the given number `expected`. However, it's often best to assert that the\n * target is equal to its expected value.\n *\n * // Recommended\n * expect(1.5).to.equal(1.5);\n *\n * // Not recommended\n * expect(1.5).to.be.closeTo(1, 0.5);\n * expect(1.5).to.be.closeTo(2, 0.5);\n * expect(1.5).to.be.closeTo(1, 1);\n *\n * Add `.not` earlier in the chain to negate `.closeTo`.\n *\n * expect(1.5).to.equal(1.5); // Recommended\n * expect(1.5).to.not.be.closeTo(3, 1); // Not recommended\n *\n * `.closeTo` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`.\n *\n * expect(1.5).to.be.closeTo(3, 1, 'nooo why fail??');\n * expect(1.5, 'nooo why fail??').to.be.closeTo(3, 1);\n *\n * The alias `.approximately` can be used interchangeably with `.closeTo`.\n *\n * @name closeTo\n * @alias approximately\n * @param {Number} expected\n * @param {Number} delta\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function closeTo(expected, delta, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , flagMsg = flag(this, 'message')\n , ssfi = flag(this, 'ssfi');\n\n new Assertion(obj, flagMsg, ssfi, true).is.a('number');\n if (typeof expected !== 'number' || typeof delta !== 'number') {\n flagMsg = flagMsg ? flagMsg + ': ' : '';\n var deltaMessage = delta === undefined ? \", and a delta is required\" : \"\";\n throw new AssertionError(\n flagMsg + 'the arguments to closeTo or approximately must be numbers' + deltaMessage,\n undefined,\n ssfi\n );\n }\n\n this.assert(\n Math.abs(obj - expected) <= delta\n , 'expected #{this} to be close to ' + expected + ' +/- ' + delta\n , 'expected #{this} not to be close to ' + expected + ' +/- ' + delta\n );\n }\n\n Assertion.addMethod('closeTo', closeTo);\n Assertion.addMethod('approximately', closeTo);\n\n // Note: Duplicates are ignored if testing for inclusion instead of sameness.\n function isSubsetOf(subset, superset, cmp, contains, ordered) {\n if (!contains) {\n if (subset.length !== superset.length) return false;\n superset = superset.slice();\n }\n\n return subset.every(function(elem, idx) {\n if (ordered) return cmp ? cmp(elem, superset[idx]) : elem === superset[idx];\n\n if (!cmp) {\n var matchIdx = superset.indexOf(elem);\n if (matchIdx === -1) return false;\n\n // Remove match from superset so not counted twice if duplicate in subset.\n if (!contains) superset.splice(matchIdx, 1);\n return true;\n }\n\n return superset.some(function(elem2, matchIdx) {\n if (!cmp(elem, elem2)) return false;\n\n // Remove match from superset so not counted twice if duplicate in subset.\n if (!contains) superset.splice(matchIdx, 1);\n return true;\n });\n });\n }\n\n /**\n * ### .members(set[, msg])\n *\n * Asserts that the target array has the same members as the given array\n * `set`.\n *\n * expect([1, 2, 3]).to.have.members([2, 1, 3]);\n * expect([1, 2, 2]).to.have.members([2, 1, 2]);\n *\n * By default, members are compared using strict (`===`) equality. Add `.deep`\n * earlier in the chain to use deep equality instead. See the `deep-eql`\n * project page for info on the deep equality algorithm:\n * https://github.com/chaijs/deep-eql.\n *\n * // Target array deeply (but not strictly) has member `{a: 1}`\n * expect([{a: 1}]).to.have.deep.members([{a: 1}]);\n * expect([{a: 1}]).to.not.have.members([{a: 1}]);\n *\n * By default, order doesn't matter. Add `.ordered` earlier in the chain to\n * require that members appear in the same order.\n *\n * expect([1, 2, 3]).to.have.ordered.members([1, 2, 3]);\n * expect([1, 2, 3]).to.have.members([2, 1, 3])\n * .but.not.ordered.members([2, 1, 3]);\n *\n * By default, both arrays must be the same size. Add `.include` earlier in\n * the chain to require that the target's members be a superset of the\n * expected members. Note that duplicates are ignored in the subset when\n * `.include` is added.\n *\n * // Target array is a superset of [1, 2] but not identical\n * expect([1, 2, 3]).to.include.members([1, 2]);\n * expect([1, 2, 3]).to.not.have.members([1, 2]);\n *\n * // Duplicates in the subset are ignored\n * expect([1, 2, 3]).to.include.members([1, 2, 2, 2]);\n *\n * `.deep`, `.ordered`, and `.include` can all be combined. However, if\n * `.include` and `.ordered` are combined, the ordering begins at the start of\n * both arrays.\n *\n * expect([{a: 1}, {b: 2}, {c: 3}])\n * .to.include.deep.ordered.members([{a: 1}, {b: 2}])\n * .but.not.include.deep.ordered.members([{b: 2}, {c: 3}]);\n *\n * Add `.not` earlier in the chain to negate `.members`. However, it's\n * dangerous to do so. The problem is that it creates uncertain expectations\n * by asserting that the target array doesn't have all of the same members as\n * the given array `set` but may or may not have some of them. It's often best\n * to identify the exact output that's expected, and then write an assertion\n * that only accepts that exact output.\n *\n * expect([1, 2]).to.not.include(3).and.not.include(4); // Recommended\n * expect([1, 2]).to.not.have.members([3, 4]); // Not recommended\n *\n * `.members` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`.\n *\n * expect([1, 2]).to.have.members([1, 2, 3], 'nooo why fail??');\n * expect([1, 2], 'nooo why fail??').to.have.members([1, 2, 3]);\n *\n * @name members\n * @param {Array} set\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n Assertion.addMethod('members', function (subset, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , flagMsg = flag(this, 'message')\n , ssfi = flag(this, 'ssfi');\n\n new Assertion(obj, flagMsg, ssfi, true).to.be.an('array');\n new Assertion(subset, flagMsg, ssfi, true).to.be.an('array');\n\n var contains = flag(this, 'contains');\n var ordered = flag(this, 'ordered');\n\n var subject, failMsg, failNegateMsg;\n\n if (contains) {\n subject = ordered ? 'an ordered superset' : 'a superset';\n failMsg = 'expected #{this} to be ' + subject + ' of #{exp}';\n failNegateMsg = 'expected #{this} to not be ' + subject + ' of #{exp}';\n } else {\n subject = ordered ? 'ordered members' : 'members';\n failMsg = 'expected #{this} to have the same ' + subject + ' as #{exp}';\n failNegateMsg = 'expected #{this} to not have the same ' + subject + ' as #{exp}';\n }\n\n var cmp = flag(this, 'deep') ? _.eql : undefined;\n\n this.assert(\n isSubsetOf(subset, obj, cmp, contains, ordered)\n , failMsg\n , failNegateMsg\n , subset\n , obj\n , true\n );\n });\n\n /**\n * ### .oneOf(list[, msg])\n *\n * Asserts that the target is a member of the given array `list`. However,\n * it's often best to assert that the target is equal to its expected value.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.be.oneOf([1, 2, 3]); // Not recommended\n *\n * Comparisons are performed using strict (`===`) equality.\n *\n * Add `.not` earlier in the chain to negate `.oneOf`.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.not.be.oneOf([2, 3, 4]); // Not recommended\n *\n * It can also be chained with `.contain` or `.include`, which will work with\n * both arrays and strings:\n *\n * expect('Today is sunny').to.contain.oneOf(['sunny', 'cloudy'])\n * expect('Today is rainy').to.not.contain.oneOf(['sunny', 'cloudy'])\n * expect([1,2,3]).to.contain.oneOf([3,4,5])\n * expect([1,2,3]).to.not.contain.oneOf([4,5,6])\n *\n * `.oneOf` accepts an optional `msg` argument which is a custom error message\n * to show when the assertion fails. The message can also be given as the\n * second argument to `expect`.\n *\n * expect(1).to.be.oneOf([2, 3, 4], 'nooo why fail??');\n * expect(1, 'nooo why fail??').to.be.oneOf([2, 3, 4]);\n *\n * @name oneOf\n * @param {Array<*>} list\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function oneOf (list, msg) {\n if (msg) flag(this, 'message', msg);\n var expected = flag(this, 'object')\n , flagMsg = flag(this, 'message')\n , ssfi = flag(this, 'ssfi')\n , contains = flag(this, 'contains')\n , isDeep = flag(this, 'deep');\n new Assertion(list, flagMsg, ssfi, true).to.be.an('array');\n\n if (contains) {\n this.assert(\n list.some(function(possibility) { return expected.indexOf(possibility) > -1 })\n , 'expected #{this} to contain one of #{exp}'\n , 'expected #{this} to not contain one of #{exp}'\n , list\n , expected\n );\n } else {\n if (isDeep) {\n this.assert(\n list.some(function(possibility) { return _.eql(expected, possibility) })\n , 'expected #{this} to deeply equal one of #{exp}'\n , 'expected #{this} to deeply equal one of #{exp}'\n , list\n , expected\n );\n } else {\n this.assert(\n list.indexOf(expected) > -1\n , 'expected #{this} to be one of #{exp}'\n , 'expected #{this} to not be one of #{exp}'\n , list\n , expected\n );\n }\n }\n }\n\n Assertion.addMethod('oneOf', oneOf);\n\n /**\n * ### .change(subject[, prop[, msg]])\n *\n * When one argument is provided, `.change` asserts that the given function\n * `subject` returns a different value when it's invoked before the target\n * function compared to when it's invoked afterward. However, it's often best\n * to assert that `subject` is equal to its expected value.\n *\n * var dots = ''\n * , addDot = function () { dots += '.'; }\n * , getDots = function () { return dots; };\n *\n * // Recommended\n * expect(getDots()).to.equal('');\n * addDot();\n * expect(getDots()).to.equal('.');\n *\n * // Not recommended\n * expect(addDot).to.change(getDots);\n *\n * When two arguments are provided, `.change` asserts that the value of the\n * given object `subject`'s `prop` property is different before invoking the\n * target function compared to afterward.\n *\n * var myObj = {dots: ''}\n * , addDot = function () { myObj.dots += '.'; };\n *\n * // Recommended\n * expect(myObj).to.have.property('dots', '');\n * addDot();\n * expect(myObj).to.have.property('dots', '.');\n *\n * // Not recommended\n * expect(addDot).to.change(myObj, 'dots');\n *\n * Strict (`===`) equality is used to compare before and after values.\n *\n * Add `.not` earlier in the chain to negate `.change`.\n *\n * var dots = ''\n * , noop = function () {}\n * , getDots = function () { return dots; };\n *\n * expect(noop).to.not.change(getDots);\n *\n * var myObj = {dots: ''}\n * , noop = function () {};\n *\n * expect(noop).to.not.change(myObj, 'dots');\n *\n * `.change` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`. When not providing two arguments, always\n * use the second form.\n *\n * var myObj = {dots: ''}\n * , addDot = function () { myObj.dots += '.'; };\n *\n * expect(addDot).to.not.change(myObj, 'dots', 'nooo why fail??');\n *\n * var dots = ''\n * , addDot = function () { dots += '.'; }\n * , getDots = function () { return dots; };\n *\n * expect(addDot, 'nooo why fail??').to.not.change(getDots);\n *\n * `.change` also causes all `.by` assertions that follow in the chain to\n * assert how much a numeric subject was increased or decreased by. However,\n * it's dangerous to use `.change.by`. The problem is that it creates\n * uncertain expectations by asserting that the subject either increases by\n * the given delta, or that it decreases by the given delta. It's often best\n * to identify the exact output that's expected, and then write an assertion\n * that only accepts that exact output.\n *\n * var myObj = {val: 1}\n * , addTwo = function () { myObj.val += 2; }\n * , subtractTwo = function () { myObj.val -= 2; };\n *\n * expect(addTwo).to.increase(myObj, 'val').by(2); // Recommended\n * expect(addTwo).to.change(myObj, 'val').by(2); // Not recommended\n *\n * expect(subtractTwo).to.decrease(myObj, 'val').by(2); // Recommended\n * expect(subtractTwo).to.change(myObj, 'val').by(2); // Not recommended\n *\n * The alias `.changes` can be used interchangeably with `.change`.\n *\n * @name change\n * @alias changes\n * @param {String} subject\n * @param {String} prop name _optional_\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertChanges (subject, prop, msg) {\n if (msg) flag(this, 'message', msg);\n var fn = flag(this, 'object')\n , flagMsg = flag(this, 'message')\n , ssfi = flag(this, 'ssfi');\n new Assertion(fn, flagMsg, ssfi, true).is.a('function');\n\n var initial;\n if (!prop) {\n new Assertion(subject, flagMsg, ssfi, true).is.a('function');\n initial = subject();\n } else {\n new Assertion(subject, flagMsg, ssfi, true).to.have.property(prop);\n initial = subject[prop];\n }\n\n fn();\n\n var final = prop === undefined || prop === null ? subject() : subject[prop];\n var msgObj = prop === undefined || prop === null ? initial : '.' + prop;\n\n // This gets flagged because of the .by(delta) assertion\n flag(this, 'deltaMsgObj', msgObj);\n flag(this, 'initialDeltaValue', initial);\n flag(this, 'finalDeltaValue', final);\n flag(this, 'deltaBehavior', 'change');\n flag(this, 'realDelta', final !== initial);\n\n this.assert(\n initial !== final\n , 'expected ' + msgObj + ' to change'\n , 'expected ' + msgObj + ' to not change'\n );\n }\n\n Assertion.addMethod('change', assertChanges);\n Assertion.addMethod('changes', assertChanges);\n\n /**\n * ### .increase(subject[, prop[, msg]])\n *\n * When one argument is provided, `.increase` asserts that the given function\n * `subject` returns a greater number when it's invoked after invoking the\n * target function compared to when it's invoked beforehand. `.increase` also\n * causes all `.by` assertions that follow in the chain to assert how much\n * greater of a number is returned. It's often best to assert that the return\n * value increased by the expected amount, rather than asserting it increased\n * by any amount.\n *\n * var val = 1\n * , addTwo = function () { val += 2; }\n * , getVal = function () { return val; };\n *\n * expect(addTwo).to.increase(getVal).by(2); // Recommended\n * expect(addTwo).to.increase(getVal); // Not recommended\n *\n * When two arguments are provided, `.increase` asserts that the value of the\n * given object `subject`'s `prop` property is greater after invoking the\n * target function compared to beforehand.\n *\n * var myObj = {val: 1}\n * , addTwo = function () { myObj.val += 2; };\n *\n * expect(addTwo).to.increase(myObj, 'val').by(2); // Recommended\n * expect(addTwo).to.increase(myObj, 'val'); // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.increase`. However, it's\n * dangerous to do so. The problem is that it creates uncertain expectations\n * by asserting that the subject either decreases, or that it stays the same.\n * It's often best to identify the exact output that's expected, and then\n * write an assertion that only accepts that exact output.\n *\n * When the subject is expected to decrease, it's often best to assert that it\n * decreased by the expected amount.\n *\n * var myObj = {val: 1}\n * , subtractTwo = function () { myObj.val -= 2; };\n *\n * expect(subtractTwo).to.decrease(myObj, 'val').by(2); // Recommended\n * expect(subtractTwo).to.not.increase(myObj, 'val'); // Not recommended\n *\n * When the subject is expected to stay the same, it's often best to assert\n * exactly that.\n *\n * var myObj = {val: 1}\n * , noop = function () {};\n *\n * expect(noop).to.not.change(myObj, 'val'); // Recommended\n * expect(noop).to.not.increase(myObj, 'val'); // Not recommended\n *\n * `.increase` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`. When not providing two arguments, always\n * use the second form.\n *\n * var myObj = {val: 1}\n * , noop = function () {};\n *\n * expect(noop).to.increase(myObj, 'val', 'nooo why fail??');\n *\n * var val = 1\n * , noop = function () {}\n * , getVal = function () { return val; };\n *\n * expect(noop, 'nooo why fail??').to.increase(getVal);\n *\n * The alias `.increases` can be used interchangeably with `.increase`.\n *\n * @name increase\n * @alias increases\n * @param {String|Function} subject\n * @param {String} prop name _optional_\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertIncreases (subject, prop, msg) {\n if (msg) flag(this, 'message', msg);\n var fn = flag(this, 'object')\n , flagMsg = flag(this, 'message')\n , ssfi = flag(this, 'ssfi');\n new Assertion(fn, flagMsg, ssfi, true).is.a('function');\n\n var initial;\n if (!prop) {\n new Assertion(subject, flagMsg, ssfi, true).is.a('function');\n initial = subject();\n } else {\n new Assertion(subject, flagMsg, ssfi, true).to.have.property(prop);\n initial = subject[prop];\n }\n\n // Make sure that the target is a number\n new Assertion(initial, flagMsg, ssfi, true).is.a('number');\n\n fn();\n\n var final = prop === undefined || prop === null ? subject() : subject[prop];\n var msgObj = prop === undefined || prop === null ? initial : '.' + prop;\n\n flag(this, 'deltaMsgObj', msgObj);\n flag(this, 'initialDeltaValue', initial);\n flag(this, 'finalDeltaValue', final);\n flag(this, 'deltaBehavior', 'increase');\n flag(this, 'realDelta', final - initial);\n\n this.assert(\n final - initial > 0\n , 'expected ' + msgObj + ' to increase'\n , 'expected ' + msgObj + ' to not increase'\n );\n }\n\n Assertion.addMethod('increase', assertIncreases);\n Assertion.addMethod('increases', assertIncreases);\n\n /**\n * ### .decrease(subject[, prop[, msg]])\n *\n * When one argument is provided, `.decrease` asserts that the given function\n * `subject` returns a lesser number when it's invoked after invoking the\n * target function compared to when it's invoked beforehand. `.decrease` also\n * causes all `.by` assertions that follow in the chain to assert how much\n * lesser of a number is returned. It's often best to assert that the return\n * value decreased by the expected amount, rather than asserting it decreased\n * by any amount.\n *\n * var val = 1\n * , subtractTwo = function () { val -= 2; }\n * , getVal = function () { return val; };\n *\n * expect(subtractTwo).to.decrease(getVal).by(2); // Recommended\n * expect(subtractTwo).to.decrease(getVal); // Not recommended\n *\n * When two arguments are provided, `.decrease` asserts that the value of the\n * given object `subject`'s `prop` property is lesser after invoking the\n * target function compared to beforehand.\n *\n * var myObj = {val: 1}\n * , subtractTwo = function () { myObj.val -= 2; };\n *\n * expect(subtractTwo).to.decrease(myObj, 'val').by(2); // Recommended\n * expect(subtractTwo).to.decrease(myObj, 'val'); // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.decrease`. However, it's\n * dangerous to do so. The problem is that it creates uncertain expectations\n * by asserting that the subject either increases, or that it stays the same.\n * It's often best to identify the exact output that's expected, and then\n * write an assertion that only accepts that exact output.\n *\n * When the subject is expected to increase, it's often best to assert that it\n * increased by the expected amount.\n *\n * var myObj = {val: 1}\n * , addTwo = function () { myObj.val += 2; };\n *\n * expect(addTwo).to.increase(myObj, 'val').by(2); // Recommended\n * expect(addTwo).to.not.decrease(myObj, 'val'); // Not recommended\n *\n * When the subject is expected to stay the same, it's often best to assert\n * exactly that.\n *\n * var myObj = {val: 1}\n * , noop = function () {};\n *\n * expect(noop).to.not.change(myObj, 'val'); // Recommended\n * expect(noop).to.not.decrease(myObj, 'val'); // Not recommended\n *\n * `.decrease` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`. When not providing two arguments, always\n * use the second form.\n *\n * var myObj = {val: 1}\n * , noop = function () {};\n *\n * expect(noop).to.decrease(myObj, 'val', 'nooo why fail??');\n *\n * var val = 1\n * , noop = function () {}\n * , getVal = function () { return val; };\n *\n * expect(noop, 'nooo why fail??').to.decrease(getVal);\n *\n * The alias `.decreases` can be used interchangeably with `.decrease`.\n *\n * @name decrease\n * @alias decreases\n * @param {String|Function} subject\n * @param {String} prop name _optional_\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertDecreases (subject, prop, msg) {\n if (msg) flag(this, 'message', msg);\n var fn = flag(this, 'object')\n , flagMsg = flag(this, 'message')\n , ssfi = flag(this, 'ssfi');\n new Assertion(fn, flagMsg, ssfi, true).is.a('function');\n\n var initial;\n if (!prop) {\n new Assertion(subject, flagMsg, ssfi, true).is.a('function');\n initial = subject();\n } else {\n new Assertion(subject, flagMsg, ssfi, true).to.have.property(prop);\n initial = subject[prop];\n }\n\n // Make sure that the target is a number\n new Assertion(initial, flagMsg, ssfi, true).is.a('number');\n\n fn();\n\n var final = prop === undefined || prop === null ? subject() : subject[prop];\n var msgObj = prop === undefined || prop === null ? initial : '.' + prop;\n\n flag(this, 'deltaMsgObj', msgObj);\n flag(this, 'initialDeltaValue', initial);\n flag(this, 'finalDeltaValue', final);\n flag(this, 'deltaBehavior', 'decrease');\n flag(this, 'realDelta', initial - final);\n\n this.assert(\n final - initial < 0\n , 'expected ' + msgObj + ' to decrease'\n , 'expected ' + msgObj + ' to not decrease'\n );\n }\n\n Assertion.addMethod('decrease', assertDecreases);\n Assertion.addMethod('decreases', assertDecreases);\n\n /**\n * ### .by(delta[, msg])\n *\n * When following an `.increase` assertion in the chain, `.by` asserts that\n * the subject of the `.increase` assertion increased by the given `delta`.\n *\n * var myObj = {val: 1}\n * , addTwo = function () { myObj.val += 2; };\n *\n * expect(addTwo).to.increase(myObj, 'val').by(2);\n *\n * When following a `.decrease` assertion in the chain, `.by` asserts that the\n * subject of the `.decrease` assertion decreased by the given `delta`.\n *\n * var myObj = {val: 1}\n * , subtractTwo = function () { myObj.val -= 2; };\n *\n * expect(subtractTwo).to.decrease(myObj, 'val').by(2);\n *\n * When following a `.change` assertion in the chain, `.by` asserts that the\n * subject of the `.change` assertion either increased or decreased by the\n * given `delta`. However, it's dangerous to use `.change.by`. The problem is\n * that it creates uncertain expectations. It's often best to identify the\n * exact output that's expected, and then write an assertion that only accepts\n * that exact output.\n *\n * var myObj = {val: 1}\n * , addTwo = function () { myObj.val += 2; }\n * , subtractTwo = function () { myObj.val -= 2; };\n *\n * expect(addTwo).to.increase(myObj, 'val').by(2); // Recommended\n * expect(addTwo).to.change(myObj, 'val').by(2); // Not recommended\n *\n * expect(subtractTwo).to.decrease(myObj, 'val').by(2); // Recommended\n * expect(subtractTwo).to.change(myObj, 'val').by(2); // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.by`. However, it's often best\n * to assert that the subject changed by its expected delta, rather than\n * asserting that it didn't change by one of countless unexpected deltas.\n *\n * var myObj = {val: 1}\n * , addTwo = function () { myObj.val += 2; };\n *\n * // Recommended\n * expect(addTwo).to.increase(myObj, 'val').by(2);\n *\n * // Not recommended\n * expect(addTwo).to.increase(myObj, 'val').but.not.by(3);\n *\n * `.by` accepts an optional `msg` argument which is a custom error message to\n * show when the assertion fails. The message can also be given as the second\n * argument to `expect`.\n *\n * var myObj = {val: 1}\n * , addTwo = function () { myObj.val += 2; };\n *\n * expect(addTwo).to.increase(myObj, 'val').by(3, 'nooo why fail??');\n * expect(addTwo, 'nooo why fail??').to.increase(myObj, 'val').by(3);\n *\n * @name by\n * @param {Number} delta\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertDelta(delta, msg) {\n if (msg) flag(this, 'message', msg);\n\n var msgObj = flag(this, 'deltaMsgObj');\n var initial = flag(this, 'initialDeltaValue');\n var final = flag(this, 'finalDeltaValue');\n var behavior = flag(this, 'deltaBehavior');\n var realDelta = flag(this, 'realDelta');\n\n var expression;\n if (behavior === 'change') {\n expression = Math.abs(final - initial) === Math.abs(delta);\n } else {\n expression = realDelta === Math.abs(delta);\n }\n\n this.assert(\n expression\n , 'expected ' + msgObj + ' to ' + behavior + ' by ' + delta\n , 'expected ' + msgObj + ' to not ' + behavior + ' by ' + delta\n );\n }\n\n Assertion.addMethod('by', assertDelta);\n\n /**\n * ### .extensible\n *\n * Asserts that the target is extensible, which means that new properties can\n * be added to it. Primitives are never extensible.\n *\n * expect({a: 1}).to.be.extensible;\n *\n * Add `.not` earlier in the chain to negate `.extensible`.\n *\n * var nonExtensibleObject = Object.preventExtensions({})\n * , sealedObject = Object.seal({})\n * , frozenObject = Object.freeze({});\n *\n * expect(nonExtensibleObject).to.not.be.extensible;\n * expect(sealedObject).to.not.be.extensible;\n * expect(frozenObject).to.not.be.extensible;\n * expect(1).to.not.be.extensible;\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect(1, 'nooo why fail??').to.be.extensible;\n *\n * @name extensible\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('extensible', function() {\n var obj = flag(this, 'object');\n\n // In ES5, if the argument to this method is a primitive, then it will cause a TypeError.\n // In ES6, a non-object argument will be treated as if it was a non-extensible ordinary object, simply return false.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isExtensible\n // The following provides ES6 behavior for ES5 environments.\n\n var isExtensible = obj === Object(obj) && Object.isExtensible(obj);\n\n this.assert(\n isExtensible\n , 'expected #{this} to be extensible'\n , 'expected #{this} to not be extensible'\n );\n });\n\n /**\n * ### .sealed\n *\n * Asserts that the target is sealed, which means that new properties can't be\n * added to it, and its existing properties can't be reconfigured or deleted.\n * However, it's possible that its existing properties can still be reassigned\n * to different values. Primitives are always sealed.\n *\n * var sealedObject = Object.seal({});\n * var frozenObject = Object.freeze({});\n *\n * expect(sealedObject).to.be.sealed;\n * expect(frozenObject).to.be.sealed;\n * expect(1).to.be.sealed;\n *\n * Add `.not` earlier in the chain to negate `.sealed`.\n *\n * expect({a: 1}).to.not.be.sealed;\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect({a: 1}, 'nooo why fail??').to.be.sealed;\n *\n * @name sealed\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('sealed', function() {\n var obj = flag(this, 'object');\n\n // In ES5, if the argument to this method is a primitive, then it will cause a TypeError.\n // In ES6, a non-object argument will be treated as if it was a sealed ordinary object, simply return true.\n // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isSealed\n // The following provides ES6 behavior for ES5 environments.\n\n var isSealed = obj === Object(obj) ? Object.isSealed(obj) : true;\n\n this.assert(\n isSealed\n , 'expected #{this} to be sealed'\n , 'expected #{this} to not be sealed'\n );\n });\n\n /**\n * ### .frozen\n *\n * Asserts that the target is frozen, which means that new properties can't be\n * added to it, and its existing properties can't be reassigned to different\n * values, reconfigured, or deleted. Primitives are always frozen.\n *\n * var frozenObject = Object.freeze({});\n *\n * expect(frozenObject).to.be.frozen;\n * expect(1).to.be.frozen;\n *\n * Add `.not` earlier in the chain to negate `.frozen`.\n *\n * expect({a: 1}).to.not.be.frozen;\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect({a: 1}, 'nooo why fail??').to.be.frozen;\n *\n * @name frozen\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('frozen', function() {\n var obj = flag(this, 'object');\n\n // In ES5, if the argument to this method is a primitive, then it will cause a TypeError.\n // In ES6, a non-object argument will be treated as if it was a frozen ordinary object, simply return true.\n // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isFrozen\n // The following provides ES6 behavior for ES5 environments.\n\n var isFrozen = obj === Object(obj) ? Object.isFrozen(obj) : true;\n\n this.assert(\n isFrozen\n , 'expected #{this} to be frozen'\n , 'expected #{this} to not be frozen'\n );\n });\n\n /**\n * ### .finite\n *\n * Asserts that the target is a number, and isn't `NaN` or positive/negative\n * `Infinity`.\n *\n * expect(1).to.be.finite;\n *\n * Add `.not` earlier in the chain to negate `.finite`. However, it's\n * dangerous to do so. The problem is that it creates uncertain expectations\n * by asserting that the subject either isn't a number, or that it's `NaN`, or\n * that it's positive `Infinity`, or that it's negative `Infinity`. It's often\n * best to identify the exact output that's expected, and then write an\n * assertion that only accepts that exact output.\n *\n * When the target isn't expected to be a number, it's often best to assert\n * that it's the expected type, rather than asserting that it isn't one of\n * many unexpected types.\n *\n * expect('foo').to.be.a('string'); // Recommended\n * expect('foo').to.not.be.finite; // Not recommended\n *\n * When the target is expected to be `NaN`, it's often best to assert exactly\n * that.\n *\n * expect(NaN).to.be.NaN; // Recommended\n * expect(NaN).to.not.be.finite; // Not recommended\n *\n * When the target is expected to be positive infinity, it's often best to\n * assert exactly that.\n *\n * expect(Infinity).to.equal(Infinity); // Recommended\n * expect(Infinity).to.not.be.finite; // Not recommended\n *\n * When the target is expected to be negative infinity, it's often best to\n * assert exactly that.\n *\n * expect(-Infinity).to.equal(-Infinity); // Recommended\n * expect(-Infinity).to.not.be.finite; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect('foo', 'nooo why fail??').to.be.finite;\n *\n * @name finite\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('finite', function(msg) {\n var obj = flag(this, 'object');\n\n this.assert(\n typeof obj === 'number' && isFinite(obj)\n , 'expected #{this} to be a finite number'\n , 'expected #{this} to not be a finite number'\n );\n });\n};\n","/*!\n * chai\n * Copyright(c) 2011-2014 Jake Luer \n * MIT Licensed\n */\n\nmodule.exports = function (chai, util) {\n chai.expect = function (val, message) {\n return new chai.Assertion(val, message);\n };\n\n /**\n * ### .fail([message])\n * ### .fail(actual, expected, [message], [operator])\n *\n * Throw a failure.\n *\n * expect.fail();\n * expect.fail(\"custom error message\");\n * expect.fail(1, 2);\n * expect.fail(1, 2, \"custom error message\");\n * expect.fail(1, 2, \"custom error message\", \">\");\n * expect.fail(1, 2, undefined, \">\");\n *\n * @name fail\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @param {String} operator\n * @namespace BDD\n * @api public\n */\n\n chai.expect.fail = function (actual, expected, message, operator) {\n if (arguments.length < 2) {\n message = actual;\n actual = undefined;\n }\n\n message = message || 'expect.fail()';\n throw new chai.AssertionError(message, {\n actual: actual\n , expected: expected\n , operator: operator\n }, chai.expect.fail);\n };\n};\n","/*!\n * chai\n * Copyright(c) 2011-2014 Jake Luer \n * MIT Licensed\n */\n\nmodule.exports = function (chai, util) {\n var Assertion = chai.Assertion;\n\n function loadShould () {\n // explicitly define this method as function as to have it's name to include as `ssfi`\n function shouldGetter() {\n if (this instanceof String\n || this instanceof Number\n || this instanceof Boolean\n || typeof Symbol === 'function' && this instanceof Symbol\n || typeof BigInt === 'function' && this instanceof BigInt) {\n return new Assertion(this.valueOf(), null, shouldGetter);\n }\n return new Assertion(this, null, shouldGetter);\n }\n function shouldSetter(value) {\n // See https://github.com/chaijs/chai/issues/86: this makes\n // `whatever.should = someValue` actually set `someValue`, which is\n // especially useful for `global.should = require('chai').should()`.\n //\n // Note that we have to use [[DefineProperty]] instead of [[Put]]\n // since otherwise we would trigger this very setter!\n Object.defineProperty(this, 'should', {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n }\n // modify Object.prototype to have `should`\n Object.defineProperty(Object.prototype, 'should', {\n set: shouldSetter\n , get: shouldGetter\n , configurable: true\n });\n\n var should = {};\n\n /**\n * ### .fail([message])\n * ### .fail(actual, expected, [message], [operator])\n *\n * Throw a failure.\n *\n * should.fail();\n * should.fail(\"custom error message\");\n * should.fail(1, 2);\n * should.fail(1, 2, \"custom error message\");\n * should.fail(1, 2, \"custom error message\", \">\");\n * should.fail(1, 2, undefined, \">\");\n *\n *\n * @name fail\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @param {String} operator\n * @namespace BDD\n * @api public\n */\n\n should.fail = function (actual, expected, message, operator) {\n if (arguments.length < 2) {\n message = actual;\n actual = undefined;\n }\n\n message = message || 'should.fail()';\n throw new chai.AssertionError(message, {\n actual: actual\n , expected: expected\n , operator: operator\n }, should.fail);\n };\n\n /**\n * ### .equal(actual, expected, [message])\n *\n * Asserts non-strict equality (`==`) of `actual` and `expected`.\n *\n * should.equal(3, '3', '== coerces values to strings');\n *\n * @name equal\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @namespace Should\n * @api public\n */\n\n should.equal = function (val1, val2, msg) {\n new Assertion(val1, msg).to.equal(val2);\n };\n\n /**\n * ### .throw(function, [constructor/string/regexp], [string/regexp], [message])\n *\n * Asserts that `function` will throw an error that is an instance of\n * `constructor`, or alternately that it will throw an error with message\n * matching `regexp`.\n *\n * should.throw(fn, 'function throws a reference error');\n * should.throw(fn, /function throws a reference error/);\n * should.throw(fn, ReferenceError);\n * should.throw(fn, ReferenceError, 'function throws a reference error');\n * should.throw(fn, ReferenceError, /function throws a reference error/);\n *\n * @name throw\n * @alias Throw\n * @param {Function} function\n * @param {ErrorConstructor} constructor\n * @param {RegExp} regexp\n * @param {String} message\n * @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types\n * @namespace Should\n * @api public\n */\n\n should.Throw = function (fn, errt, errs, msg) {\n new Assertion(fn, msg).to.Throw(errt, errs);\n };\n\n /**\n * ### .exist\n *\n * Asserts that the target is neither `null` nor `undefined`.\n *\n * var foo = 'hi';\n *\n * should.exist(foo, 'foo exists');\n *\n * @name exist\n * @namespace Should\n * @api public\n */\n\n should.exist = function (val, msg) {\n new Assertion(val, msg).to.exist;\n }\n\n // negation\n should.not = {}\n\n /**\n * ### .not.equal(actual, expected, [message])\n *\n * Asserts non-strict inequality (`!=`) of `actual` and `expected`.\n *\n * should.not.equal(3, 4, 'these numbers are not equal');\n *\n * @name not.equal\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @namespace Should\n * @api public\n */\n\n should.not.equal = function (val1, val2, msg) {\n new Assertion(val1, msg).to.not.equal(val2);\n };\n\n /**\n * ### .throw(function, [constructor/regexp], [message])\n *\n * Asserts that `function` will _not_ throw an error that is an instance of\n * `constructor`, or alternately that it will not throw an error with message\n * matching `regexp`.\n *\n * should.not.throw(fn, Error, 'function does not throw');\n *\n * @name not.throw\n * @alias not.Throw\n * @param {Function} function\n * @param {ErrorConstructor} constructor\n * @param {RegExp} regexp\n * @param {String} message\n * @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types\n * @namespace Should\n * @api public\n */\n\n should.not.Throw = function (fn, errt, errs, msg) {\n new Assertion(fn, msg).to.not.Throw(errt, errs);\n };\n\n /**\n * ### .not.exist\n *\n * Asserts that the target is neither `null` nor `undefined`.\n *\n * var bar = null;\n *\n * should.not.exist(bar, 'bar does not exist');\n *\n * @name not.exist\n * @namespace Should\n * @api public\n */\n\n should.not.exist = function (val, msg) {\n new Assertion(val, msg).to.not.exist;\n }\n\n should['throw'] = should['Throw'];\n should.not['throw'] = should.not['Throw'];\n\n return should;\n };\n\n chai.should = loadShould;\n chai.Should = loadShould;\n};\n","/*!\n * chai\n * Copyright(c) 2011-2014 Jake Luer \n * MIT Licensed\n */\n\nmodule.exports = function (chai, util) {\n /*!\n * Chai dependencies.\n */\n\n var Assertion = chai.Assertion\n , flag = util.flag;\n\n /*!\n * Module export.\n */\n\n /**\n * ### assert(expression, message)\n *\n * Write your own test expressions.\n *\n * assert('foo' !== 'bar', 'foo is not bar');\n * assert(Array.isArray([]), 'empty arrays are arrays');\n *\n * @param {Mixed} expression to test for truthiness\n * @param {String} message to display on error\n * @name assert\n * @namespace Assert\n * @api public\n */\n\n var assert = chai.assert = function (express, errmsg) {\n var test = new Assertion(null, null, chai.assert, true);\n test.assert(\n express\n , errmsg\n , '[ negation message unavailable ]'\n );\n };\n\n /**\n * ### .fail([message])\n * ### .fail(actual, expected, [message], [operator])\n *\n * Throw a failure. Node.js `assert` module-compatible.\n *\n * assert.fail();\n * assert.fail(\"custom error message\");\n * assert.fail(1, 2);\n * assert.fail(1, 2, \"custom error message\");\n * assert.fail(1, 2, \"custom error message\", \">\");\n * assert.fail(1, 2, undefined, \">\");\n *\n * @name fail\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @param {String} operator\n * @namespace Assert\n * @api public\n */\n\n assert.fail = function (actual, expected, message, operator) {\n if (arguments.length < 2) {\n // Comply with Node's fail([message]) interface\n\n message = actual;\n actual = undefined;\n }\n\n message = message || 'assert.fail()';\n throw new chai.AssertionError(message, {\n actual: actual\n , expected: expected\n , operator: operator\n }, assert.fail);\n };\n\n /**\n * ### .isOk(object, [message])\n *\n * Asserts that `object` is truthy.\n *\n * assert.isOk('everything', 'everything is ok');\n * assert.isOk(false, 'this will fail');\n *\n * @name isOk\n * @alias ok\n * @param {Mixed} object to test\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isOk = function (val, msg) {\n new Assertion(val, msg, assert.isOk, true).is.ok;\n };\n\n /**\n * ### .isNotOk(object, [message])\n *\n * Asserts that `object` is falsy.\n *\n * assert.isNotOk('everything', 'this will fail');\n * assert.isNotOk(false, 'this will pass');\n *\n * @name isNotOk\n * @alias notOk\n * @param {Mixed} object to test\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotOk = function (val, msg) {\n new Assertion(val, msg, assert.isNotOk, true).is.not.ok;\n };\n\n /**\n * ### .equal(actual, expected, [message])\n *\n * Asserts non-strict equality (`==`) of `actual` and `expected`.\n *\n * assert.equal(3, '3', '== coerces values to strings');\n *\n * @name equal\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.equal = function (act, exp, msg) {\n var test = new Assertion(act, msg, assert.equal, true);\n\n test.assert(\n exp == flag(test, 'object')\n , 'expected #{this} to equal #{exp}'\n , 'expected #{this} to not equal #{act}'\n , exp\n , act\n , true\n );\n };\n\n /**\n * ### .notEqual(actual, expected, [message])\n *\n * Asserts non-strict inequality (`!=`) of `actual` and `expected`.\n *\n * assert.notEqual(3, 4, 'these numbers are not equal');\n *\n * @name notEqual\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notEqual = function (act, exp, msg) {\n var test = new Assertion(act, msg, assert.notEqual, true);\n\n test.assert(\n exp != flag(test, 'object')\n , 'expected #{this} to not equal #{exp}'\n , 'expected #{this} to equal #{act}'\n , exp\n , act\n , true\n );\n };\n\n /**\n * ### .strictEqual(actual, expected, [message])\n *\n * Asserts strict equality (`===`) of `actual` and `expected`.\n *\n * assert.strictEqual(true, true, 'these booleans are strictly equal');\n *\n * @name strictEqual\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.strictEqual = function (act, exp, msg) {\n new Assertion(act, msg, assert.strictEqual, true).to.equal(exp);\n };\n\n /**\n * ### .notStrictEqual(actual, expected, [message])\n *\n * Asserts strict inequality (`!==`) of `actual` and `expected`.\n *\n * assert.notStrictEqual(3, '3', 'no coercion for strict equality');\n *\n * @name notStrictEqual\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notStrictEqual = function (act, exp, msg) {\n new Assertion(act, msg, assert.notStrictEqual, true).to.not.equal(exp);\n };\n\n /**\n * ### .deepEqual(actual, expected, [message])\n *\n * Asserts that `actual` is deeply equal to `expected`.\n *\n * assert.deepEqual({ tea: 'green' }, { tea: 'green' });\n *\n * @name deepEqual\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @alias deepStrictEqual\n * @namespace Assert\n * @api public\n */\n\n assert.deepEqual = assert.deepStrictEqual = function (act, exp, msg) {\n new Assertion(act, msg, assert.deepEqual, true).to.eql(exp);\n };\n\n /**\n * ### .notDeepEqual(actual, expected, [message])\n *\n * Assert that `actual` is not deeply equal to `expected`.\n *\n * assert.notDeepEqual({ tea: 'green' }, { tea: 'jasmine' });\n *\n * @name notDeepEqual\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notDeepEqual = function (act, exp, msg) {\n new Assertion(act, msg, assert.notDeepEqual, true).to.not.eql(exp);\n };\n\n /**\n * ### .isAbove(valueToCheck, valueToBeAbove, [message])\n *\n * Asserts `valueToCheck` is strictly greater than (>) `valueToBeAbove`.\n *\n * assert.isAbove(5, 2, '5 is strictly greater than 2');\n *\n * @name isAbove\n * @param {Mixed} valueToCheck\n * @param {Mixed} valueToBeAbove\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isAbove = function (val, abv, msg) {\n new Assertion(val, msg, assert.isAbove, true).to.be.above(abv);\n };\n\n /**\n * ### .isAtLeast(valueToCheck, valueToBeAtLeast, [message])\n *\n * Asserts `valueToCheck` is greater than or equal to (>=) `valueToBeAtLeast`.\n *\n * assert.isAtLeast(5, 2, '5 is greater or equal to 2');\n * assert.isAtLeast(3, 3, '3 is greater or equal to 3');\n *\n * @name isAtLeast\n * @param {Mixed} valueToCheck\n * @param {Mixed} valueToBeAtLeast\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isAtLeast = function (val, atlst, msg) {\n new Assertion(val, msg, assert.isAtLeast, true).to.be.least(atlst);\n };\n\n /**\n * ### .isBelow(valueToCheck, valueToBeBelow, [message])\n *\n * Asserts `valueToCheck` is strictly less than (<) `valueToBeBelow`.\n *\n * assert.isBelow(3, 6, '3 is strictly less than 6');\n *\n * @name isBelow\n * @param {Mixed} valueToCheck\n * @param {Mixed} valueToBeBelow\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isBelow = function (val, blw, msg) {\n new Assertion(val, msg, assert.isBelow, true).to.be.below(blw);\n };\n\n /**\n * ### .isAtMost(valueToCheck, valueToBeAtMost, [message])\n *\n * Asserts `valueToCheck` is less than or equal to (<=) `valueToBeAtMost`.\n *\n * assert.isAtMost(3, 6, '3 is less than or equal to 6');\n * assert.isAtMost(4, 4, '4 is less than or equal to 4');\n *\n * @name isAtMost\n * @param {Mixed} valueToCheck\n * @param {Mixed} valueToBeAtMost\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isAtMost = function (val, atmst, msg) {\n new Assertion(val, msg, assert.isAtMost, true).to.be.most(atmst);\n };\n\n /**\n * ### .isTrue(value, [message])\n *\n * Asserts that `value` is true.\n *\n * var teaServed = true;\n * assert.isTrue(teaServed, 'the tea has been served');\n *\n * @name isTrue\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isTrue = function (val, msg) {\n new Assertion(val, msg, assert.isTrue, true).is['true'];\n };\n\n /**\n * ### .isNotTrue(value, [message])\n *\n * Asserts that `value` is not true.\n *\n * var tea = 'tasty chai';\n * assert.isNotTrue(tea, 'great, time for tea!');\n *\n * @name isNotTrue\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotTrue = function (val, msg) {\n new Assertion(val, msg, assert.isNotTrue, true).to.not.equal(true);\n };\n\n /**\n * ### .isFalse(value, [message])\n *\n * Asserts that `value` is false.\n *\n * var teaServed = false;\n * assert.isFalse(teaServed, 'no tea yet? hmm...');\n *\n * @name isFalse\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isFalse = function (val, msg) {\n new Assertion(val, msg, assert.isFalse, true).is['false'];\n };\n\n /**\n * ### .isNotFalse(value, [message])\n *\n * Asserts that `value` is not false.\n *\n * var tea = 'tasty chai';\n * assert.isNotFalse(tea, 'great, time for tea!');\n *\n * @name isNotFalse\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotFalse = function (val, msg) {\n new Assertion(val, msg, assert.isNotFalse, true).to.not.equal(false);\n };\n\n /**\n * ### .isNull(value, [message])\n *\n * Asserts that `value` is null.\n *\n * assert.isNull(err, 'there was no error');\n *\n * @name isNull\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNull = function (val, msg) {\n new Assertion(val, msg, assert.isNull, true).to.equal(null);\n };\n\n /**\n * ### .isNotNull(value, [message])\n *\n * Asserts that `value` is not null.\n *\n * var tea = 'tasty chai';\n * assert.isNotNull(tea, 'great, time for tea!');\n *\n * @name isNotNull\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotNull = function (val, msg) {\n new Assertion(val, msg, assert.isNotNull, true).to.not.equal(null);\n };\n\n /**\n * ### .isNaN\n *\n * Asserts that value is NaN.\n *\n * assert.isNaN(NaN, 'NaN is NaN');\n *\n * @name isNaN\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNaN = function (val, msg) {\n new Assertion(val, msg, assert.isNaN, true).to.be.NaN;\n };\n\n /**\n * ### .isNotNaN\n *\n * Asserts that value is not NaN.\n *\n * assert.isNotNaN(4, '4 is not NaN');\n *\n * @name isNotNaN\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n assert.isNotNaN = function (val, msg) {\n new Assertion(val, msg, assert.isNotNaN, true).not.to.be.NaN;\n };\n\n /**\n * ### .exists\n *\n * Asserts that the target is neither `null` nor `undefined`.\n *\n * var foo = 'hi';\n *\n * assert.exists(foo, 'foo is neither `null` nor `undefined`');\n *\n * @name exists\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.exists = function (val, msg) {\n new Assertion(val, msg, assert.exists, true).to.exist;\n };\n\n /**\n * ### .notExists\n *\n * Asserts that the target is either `null` or `undefined`.\n *\n * var bar = null\n * , baz;\n *\n * assert.notExists(bar);\n * assert.notExists(baz, 'baz is either null or undefined');\n *\n * @name notExists\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notExists = function (val, msg) {\n new Assertion(val, msg, assert.notExists, true).to.not.exist;\n };\n\n /**\n * ### .isUndefined(value, [message])\n *\n * Asserts that `value` is `undefined`.\n *\n * var tea;\n * assert.isUndefined(tea, 'no tea defined');\n *\n * @name isUndefined\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isUndefined = function (val, msg) {\n new Assertion(val, msg, assert.isUndefined, true).to.equal(undefined);\n };\n\n /**\n * ### .isDefined(value, [message])\n *\n * Asserts that `value` is not `undefined`.\n *\n * var tea = 'cup of chai';\n * assert.isDefined(tea, 'tea has been defined');\n *\n * @name isDefined\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isDefined = function (val, msg) {\n new Assertion(val, msg, assert.isDefined, true).to.not.equal(undefined);\n };\n\n /**\n * ### .isFunction(value, [message])\n *\n * Asserts that `value` is a function.\n *\n * function serveTea() { return 'cup of tea'; };\n * assert.isFunction(serveTea, 'great, we can have tea now');\n *\n * @name isFunction\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isFunction = function (val, msg) {\n new Assertion(val, msg, assert.isFunction, true).to.be.a('function');\n };\n\n /**\n * ### .isNotFunction(value, [message])\n *\n * Asserts that `value` is _not_ a function.\n *\n * var serveTea = [ 'heat', 'pour', 'sip' ];\n * assert.isNotFunction(serveTea, 'great, we have listed the steps');\n *\n * @name isNotFunction\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotFunction = function (val, msg) {\n new Assertion(val, msg, assert.isNotFunction, true).to.not.be.a('function');\n };\n\n /**\n * ### .isObject(value, [message])\n *\n * Asserts that `value` is an object of type 'Object' (as revealed by `Object.prototype.toString`).\n * _The assertion does not match subclassed objects._\n *\n * var selection = { name: 'Chai', serve: 'with spices' };\n * assert.isObject(selection, 'tea selection is an object');\n *\n * @name isObject\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isObject = function (val, msg) {\n new Assertion(val, msg, assert.isObject, true).to.be.a('object');\n };\n\n /**\n * ### .isNotObject(value, [message])\n *\n * Asserts that `value` is _not_ an object of type 'Object' (as revealed by `Object.prototype.toString`).\n *\n * var selection = 'chai'\n * assert.isNotObject(selection, 'tea selection is not an object');\n * assert.isNotObject(null, 'null is not an object');\n *\n * @name isNotObject\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotObject = function (val, msg) {\n new Assertion(val, msg, assert.isNotObject, true).to.not.be.a('object');\n };\n\n /**\n * ### .isArray(value, [message])\n *\n * Asserts that `value` is an array.\n *\n * var menu = [ 'green', 'chai', 'oolong' ];\n * assert.isArray(menu, 'what kind of tea do we want?');\n *\n * @name isArray\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isArray = function (val, msg) {\n new Assertion(val, msg, assert.isArray, true).to.be.an('array');\n };\n\n /**\n * ### .isNotArray(value, [message])\n *\n * Asserts that `value` is _not_ an array.\n *\n * var menu = 'green|chai|oolong';\n * assert.isNotArray(menu, 'what kind of tea do we want?');\n *\n * @name isNotArray\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotArray = function (val, msg) {\n new Assertion(val, msg, assert.isNotArray, true).to.not.be.an('array');\n };\n\n /**\n * ### .isString(value, [message])\n *\n * Asserts that `value` is a string.\n *\n * var teaOrder = 'chai';\n * assert.isString(teaOrder, 'order placed');\n *\n * @name isString\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isString = function (val, msg) {\n new Assertion(val, msg, assert.isString, true).to.be.a('string');\n };\n\n /**\n * ### .isNotString(value, [message])\n *\n * Asserts that `value` is _not_ a string.\n *\n * var teaOrder = 4;\n * assert.isNotString(teaOrder, 'order placed');\n *\n * @name isNotString\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotString = function (val, msg) {\n new Assertion(val, msg, assert.isNotString, true).to.not.be.a('string');\n };\n\n /**\n * ### .isNumber(value, [message])\n *\n * Asserts that `value` is a number.\n *\n * var cups = 2;\n * assert.isNumber(cups, 'how many cups');\n *\n * @name isNumber\n * @param {Number} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNumber = function (val, msg) {\n new Assertion(val, msg, assert.isNumber, true).to.be.a('number');\n };\n\n /**\n * ### .isNotNumber(value, [message])\n *\n * Asserts that `value` is _not_ a number.\n *\n * var cups = '2 cups please';\n * assert.isNotNumber(cups, 'how many cups');\n *\n * @name isNotNumber\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotNumber = function (val, msg) {\n new Assertion(val, msg, assert.isNotNumber, true).to.not.be.a('number');\n };\n\n /**\n * ### .isFinite(value, [message])\n *\n * Asserts that `value` is a finite number. Unlike `.isNumber`, this will fail for `NaN` and `Infinity`.\n *\n * var cups = 2;\n * assert.isFinite(cups, 'how many cups');\n *\n * assert.isFinite(NaN); // throws\n *\n * @name isFinite\n * @param {Number} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isFinite = function (val, msg) {\n new Assertion(val, msg, assert.isFinite, true).to.be.finite;\n };\n\n /**\n * ### .isBoolean(value, [message])\n *\n * Asserts that `value` is a boolean.\n *\n * var teaReady = true\n * , teaServed = false;\n *\n * assert.isBoolean(teaReady, 'is the tea ready');\n * assert.isBoolean(teaServed, 'has tea been served');\n *\n * @name isBoolean\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isBoolean = function (val, msg) {\n new Assertion(val, msg, assert.isBoolean, true).to.be.a('boolean');\n };\n\n /**\n * ### .isNotBoolean(value, [message])\n *\n * Asserts that `value` is _not_ a boolean.\n *\n * var teaReady = 'yep'\n * , teaServed = 'nope';\n *\n * assert.isNotBoolean(teaReady, 'is the tea ready');\n * assert.isNotBoolean(teaServed, 'has tea been served');\n *\n * @name isNotBoolean\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotBoolean = function (val, msg) {\n new Assertion(val, msg, assert.isNotBoolean, true).to.not.be.a('boolean');\n };\n\n /**\n * ### .typeOf(value, name, [message])\n *\n * Asserts that `value`'s type is `name`, as determined by\n * `Object.prototype.toString`.\n *\n * assert.typeOf({ tea: 'chai' }, 'object', 'we have an object');\n * assert.typeOf(['chai', 'jasmine'], 'array', 'we have an array');\n * assert.typeOf('tea', 'string', 'we have a string');\n * assert.typeOf(/tea/, 'regexp', 'we have a regular expression');\n * assert.typeOf(null, 'null', 'we have a null');\n * assert.typeOf(undefined, 'undefined', 'we have an undefined');\n *\n * @name typeOf\n * @param {Mixed} value\n * @param {String} name\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.typeOf = function (val, type, msg) {\n new Assertion(val, msg, assert.typeOf, true).to.be.a(type);\n };\n\n /**\n * ### .notTypeOf(value, name, [message])\n *\n * Asserts that `value`'s type is _not_ `name`, as determined by\n * `Object.prototype.toString`.\n *\n * assert.notTypeOf('tea', 'number', 'strings are not numbers');\n *\n * @name notTypeOf\n * @param {Mixed} value\n * @param {String} typeof name\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notTypeOf = function (val, type, msg) {\n new Assertion(val, msg, assert.notTypeOf, true).to.not.be.a(type);\n };\n\n /**\n * ### .instanceOf(object, constructor, [message])\n *\n * Asserts that `value` is an instance of `constructor`.\n *\n * var Tea = function (name) { this.name = name; }\n * , chai = new Tea('chai');\n *\n * assert.instanceOf(chai, Tea, 'chai is an instance of tea');\n *\n * @name instanceOf\n * @param {Object} object\n * @param {Constructor} constructor\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.instanceOf = function (val, type, msg) {\n new Assertion(val, msg, assert.instanceOf, true).to.be.instanceOf(type);\n };\n\n /**\n * ### .notInstanceOf(object, constructor, [message])\n *\n * Asserts `value` is not an instance of `constructor`.\n *\n * var Tea = function (name) { this.name = name; }\n * , chai = new String('chai');\n *\n * assert.notInstanceOf(chai, Tea, 'chai is not an instance of tea');\n *\n * @name notInstanceOf\n * @param {Object} object\n * @param {Constructor} constructor\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notInstanceOf = function (val, type, msg) {\n new Assertion(val, msg, assert.notInstanceOf, true)\n .to.not.be.instanceOf(type);\n };\n\n /**\n * ### .include(haystack, needle, [message])\n *\n * Asserts that `haystack` includes `needle`. Can be used to assert the\n * inclusion of a value in an array, a substring in a string, or a subset of\n * properties in an object.\n *\n * assert.include([1,2,3], 2, 'array contains value');\n * assert.include('foobar', 'foo', 'string contains substring');\n * assert.include({ foo: 'bar', hello: 'universe' }, { foo: 'bar' }, 'object contains property');\n *\n * Strict equality (===) is used. When asserting the inclusion of a value in\n * an array, the array is searched for an element that's strictly equal to the\n * given value. When asserting a subset of properties in an object, the object\n * is searched for the given property keys, checking that each one is present\n * and strictly equal to the given property value. For instance:\n *\n * var obj1 = {a: 1}\n * , obj2 = {b: 2};\n * assert.include([obj1, obj2], obj1);\n * assert.include({foo: obj1, bar: obj2}, {foo: obj1});\n * assert.include({foo: obj1, bar: obj2}, {foo: obj1, bar: obj2});\n *\n * @name include\n * @param {Array|String} haystack\n * @param {Mixed} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.include = function (exp, inc, msg) {\n new Assertion(exp, msg, assert.include, true).include(inc);\n };\n\n /**\n * ### .notInclude(haystack, needle, [message])\n *\n * Asserts that `haystack` does not include `needle`. Can be used to assert\n * the absence of a value in an array, a substring in a string, or a subset of\n * properties in an object.\n *\n * assert.notInclude([1,2,3], 4, \"array doesn't contain value\");\n * assert.notInclude('foobar', 'baz', \"string doesn't contain substring\");\n * assert.notInclude({ foo: 'bar', hello: 'universe' }, { foo: 'baz' }, 'object doesn't contain property');\n *\n * Strict equality (===) is used. When asserting the absence of a value in an\n * array, the array is searched to confirm the absence of an element that's\n * strictly equal to the given value. When asserting a subset of properties in\n * an object, the object is searched to confirm that at least one of the given\n * property keys is either not present or not strictly equal to the given\n * property value. For instance:\n *\n * var obj1 = {a: 1}\n * , obj2 = {b: 2};\n * assert.notInclude([obj1, obj2], {a: 1});\n * assert.notInclude({foo: obj1, bar: obj2}, {foo: {a: 1}});\n * assert.notInclude({foo: obj1, bar: obj2}, {foo: obj1, bar: {b: 2}});\n *\n * @name notInclude\n * @param {Array|String} haystack\n * @param {Mixed} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notInclude = function (exp, inc, msg) {\n new Assertion(exp, msg, assert.notInclude, true).not.include(inc);\n };\n\n /**\n * ### .deepInclude(haystack, needle, [message])\n *\n * Asserts that `haystack` includes `needle`. Can be used to assert the\n * inclusion of a value in an array or a subset of properties in an object.\n * Deep equality is used.\n *\n * var obj1 = {a: 1}\n * , obj2 = {b: 2};\n * assert.deepInclude([obj1, obj2], {a: 1});\n * assert.deepInclude({foo: obj1, bar: obj2}, {foo: {a: 1}});\n * assert.deepInclude({foo: obj1, bar: obj2}, {foo: {a: 1}, bar: {b: 2}});\n *\n * @name deepInclude\n * @param {Array|String} haystack\n * @param {Mixed} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.deepInclude = function (exp, inc, msg) {\n new Assertion(exp, msg, assert.deepInclude, true).deep.include(inc);\n };\n\n /**\n * ### .notDeepInclude(haystack, needle, [message])\n *\n * Asserts that `haystack` does not include `needle`. Can be used to assert\n * the absence of a value in an array or a subset of properties in an object.\n * Deep equality is used.\n *\n * var obj1 = {a: 1}\n * , obj2 = {b: 2};\n * assert.notDeepInclude([obj1, obj2], {a: 9});\n * assert.notDeepInclude({foo: obj1, bar: obj2}, {foo: {a: 9}});\n * assert.notDeepInclude({foo: obj1, bar: obj2}, {foo: {a: 1}, bar: {b: 9}});\n *\n * @name notDeepInclude\n * @param {Array|String} haystack\n * @param {Mixed} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notDeepInclude = function (exp, inc, msg) {\n new Assertion(exp, msg, assert.notDeepInclude, true).not.deep.include(inc);\n };\n\n /**\n * ### .nestedInclude(haystack, needle, [message])\n *\n * Asserts that 'haystack' includes 'needle'.\n * Can be used to assert the inclusion of a subset of properties in an\n * object.\n * Enables the use of dot- and bracket-notation for referencing nested\n * properties.\n * '[]' and '.' in property names can be escaped using double backslashes.\n *\n * assert.nestedInclude({'.a': {'b': 'x'}}, {'\\\\.a.[b]': 'x'});\n * assert.nestedInclude({'a': {'[b]': 'x'}}, {'a.\\\\[b\\\\]': 'x'});\n *\n * @name nestedInclude\n * @param {Object} haystack\n * @param {Object} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.nestedInclude = function (exp, inc, msg) {\n new Assertion(exp, msg, assert.nestedInclude, true).nested.include(inc);\n };\n\n /**\n * ### .notNestedInclude(haystack, needle, [message])\n *\n * Asserts that 'haystack' does not include 'needle'.\n * Can be used to assert the absence of a subset of properties in an\n * object.\n * Enables the use of dot- and bracket-notation for referencing nested\n * properties.\n * '[]' and '.' in property names can be escaped using double backslashes.\n *\n * assert.notNestedInclude({'.a': {'b': 'x'}}, {'\\\\.a.b': 'y'});\n * assert.notNestedInclude({'a': {'[b]': 'x'}}, {'a.\\\\[b\\\\]': 'y'});\n *\n * @name notNestedInclude\n * @param {Object} haystack\n * @param {Object} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notNestedInclude = function (exp, inc, msg) {\n new Assertion(exp, msg, assert.notNestedInclude, true)\n .not.nested.include(inc);\n };\n\n /**\n * ### .deepNestedInclude(haystack, needle, [message])\n *\n * Asserts that 'haystack' includes 'needle'.\n * Can be used to assert the inclusion of a subset of properties in an\n * object while checking for deep equality.\n * Enables the use of dot- and bracket-notation for referencing nested\n * properties.\n * '[]' and '.' in property names can be escaped using double backslashes.\n *\n * assert.deepNestedInclude({a: {b: [{x: 1}]}}, {'a.b[0]': {x: 1}});\n * assert.deepNestedInclude({'.a': {'[b]': {x: 1}}}, {'\\\\.a.\\\\[b\\\\]': {x: 1}});\n *\n * @name deepNestedInclude\n * @param {Object} haystack\n * @param {Object} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.deepNestedInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.deepNestedInclude, true)\n .deep.nested.include(inc);\n };\n\n /**\n * ### .notDeepNestedInclude(haystack, needle, [message])\n *\n * Asserts that 'haystack' does not include 'needle'.\n * Can be used to assert the absence of a subset of properties in an\n * object while checking for deep equality.\n * Enables the use of dot- and bracket-notation for referencing nested\n * properties.\n * '[]' and '.' in property names can be escaped using double backslashes.\n *\n * assert.notDeepNestedInclude({a: {b: [{x: 1}]}}, {'a.b[0]': {y: 1}})\n * assert.notDeepNestedInclude({'.a': {'[b]': {x: 1}}}, {'\\\\.a.\\\\[b\\\\]': {y: 2}});\n *\n * @name notDeepNestedInclude\n * @param {Object} haystack\n * @param {Object} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notDeepNestedInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.notDeepNestedInclude, true)\n .not.deep.nested.include(inc);\n };\n\n /**\n * ### .ownInclude(haystack, needle, [message])\n *\n * Asserts that 'haystack' includes 'needle'.\n * Can be used to assert the inclusion of a subset of properties in an\n * object while ignoring inherited properties.\n *\n * assert.ownInclude({ a: 1 }, { a: 1 });\n *\n * @name ownInclude\n * @param {Object} haystack\n * @param {Object} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.ownInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.ownInclude, true).own.include(inc);\n };\n\n /**\n * ### .notOwnInclude(haystack, needle, [message])\n *\n * Asserts that 'haystack' includes 'needle'.\n * Can be used to assert the absence of a subset of properties in an\n * object while ignoring inherited properties.\n *\n * Object.prototype.b = 2;\n *\n * assert.notOwnInclude({ a: 1 }, { b: 2 });\n *\n * @name notOwnInclude\n * @param {Object} haystack\n * @param {Object} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notOwnInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.notOwnInclude, true).not.own.include(inc);\n };\n\n /**\n * ### .deepOwnInclude(haystack, needle, [message])\n *\n * Asserts that 'haystack' includes 'needle'.\n * Can be used to assert the inclusion of a subset of properties in an\n * object while ignoring inherited properties and checking for deep equality.\n *\n * assert.deepOwnInclude({a: {b: 2}}, {a: {b: 2}});\n *\n * @name deepOwnInclude\n * @param {Object} haystack\n * @param {Object} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.deepOwnInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.deepOwnInclude, true)\n .deep.own.include(inc);\n };\n\n /**\n * ### .notDeepOwnInclude(haystack, needle, [message])\n *\n * Asserts that 'haystack' includes 'needle'.\n * Can be used to assert the absence of a subset of properties in an\n * object while ignoring inherited properties and checking for deep equality.\n *\n * assert.notDeepOwnInclude({a: {b: 2}}, {a: {c: 3}});\n *\n * @name notDeepOwnInclude\n * @param {Object} haystack\n * @param {Object} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notDeepOwnInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.notDeepOwnInclude, true)\n .not.deep.own.include(inc);\n };\n\n /**\n * ### .match(value, regexp, [message])\n *\n * Asserts that `value` matches the regular expression `regexp`.\n *\n * assert.match('foobar', /^foo/, 'regexp matches');\n *\n * @name match\n * @param {Mixed} value\n * @param {RegExp} regexp\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.match = function (exp, re, msg) {\n new Assertion(exp, msg, assert.match, true).to.match(re);\n };\n\n /**\n * ### .notMatch(value, regexp, [message])\n *\n * Asserts that `value` does not match the regular expression `regexp`.\n *\n * assert.notMatch('foobar', /^foo/, 'regexp does not match');\n *\n * @name notMatch\n * @param {Mixed} value\n * @param {RegExp} regexp\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notMatch = function (exp, re, msg) {\n new Assertion(exp, msg, assert.notMatch, true).to.not.match(re);\n };\n\n /**\n * ### .property(object, property, [message])\n *\n * Asserts that `object` has a direct or inherited property named by\n * `property`.\n *\n * assert.property({ tea: { green: 'matcha' }}, 'tea');\n * assert.property({ tea: { green: 'matcha' }}, 'toString');\n *\n * @name property\n * @param {Object} object\n * @param {String} property\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.property = function (obj, prop, msg) {\n new Assertion(obj, msg, assert.property, true).to.have.property(prop);\n };\n\n /**\n * ### .notProperty(object, property, [message])\n *\n * Asserts that `object` does _not_ have a direct or inherited property named\n * by `property`.\n *\n * assert.notProperty({ tea: { green: 'matcha' }}, 'coffee');\n *\n * @name notProperty\n * @param {Object} object\n * @param {String} property\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notProperty = function (obj, prop, msg) {\n new Assertion(obj, msg, assert.notProperty, true)\n .to.not.have.property(prop);\n };\n\n /**\n * ### .propertyVal(object, property, value, [message])\n *\n * Asserts that `object` has a direct or inherited property named by\n * `property` with a value given by `value`. Uses a strict equality check\n * (===).\n *\n * assert.propertyVal({ tea: 'is good' }, 'tea', 'is good');\n *\n * @name propertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.propertyVal = function (obj, prop, val, msg) {\n new Assertion(obj, msg, assert.propertyVal, true)\n .to.have.property(prop, val);\n };\n\n /**\n * ### .notPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` does _not_ have a direct or inherited property named\n * by `property` with value given by `value`. Uses a strict equality check\n * (===).\n *\n * assert.notPropertyVal({ tea: 'is good' }, 'tea', 'is bad');\n * assert.notPropertyVal({ tea: 'is good' }, 'coffee', 'is good');\n *\n * @name notPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notPropertyVal = function (obj, prop, val, msg) {\n new Assertion(obj, msg, assert.notPropertyVal, true)\n .to.not.have.property(prop, val);\n };\n\n /**\n * ### .deepPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` has a direct or inherited property named by\n * `property` with a value given by `value`. Uses a deep equality check.\n *\n * assert.deepPropertyVal({ tea: { green: 'matcha' } }, 'tea', { green: 'matcha' });\n *\n * @name deepPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.deepPropertyVal = function (obj, prop, val, msg) {\n new Assertion(obj, msg, assert.deepPropertyVal, true)\n .to.have.deep.property(prop, val);\n };\n\n /**\n * ### .notDeepPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` does _not_ have a direct or inherited property named\n * by `property` with value given by `value`. Uses a deep equality check.\n *\n * assert.notDeepPropertyVal({ tea: { green: 'matcha' } }, 'tea', { black: 'matcha' });\n * assert.notDeepPropertyVal({ tea: { green: 'matcha' } }, 'tea', { green: 'oolong' });\n * assert.notDeepPropertyVal({ tea: { green: 'matcha' } }, 'coffee', { green: 'matcha' });\n *\n * @name notDeepPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notDeepPropertyVal = function (obj, prop, val, msg) {\n new Assertion(obj, msg, assert.notDeepPropertyVal, true)\n .to.not.have.deep.property(prop, val);\n };\n\n /**\n * ### .ownProperty(object, property, [message])\n *\n * Asserts that `object` has a direct property named by `property`. Inherited\n * properties aren't checked.\n *\n * assert.ownProperty({ tea: { green: 'matcha' }}, 'tea');\n *\n * @name ownProperty\n * @param {Object} object\n * @param {String} property\n * @param {String} message\n * @api public\n */\n\n assert.ownProperty = function (obj, prop, msg) {\n new Assertion(obj, msg, assert.ownProperty, true)\n .to.have.own.property(prop);\n };\n\n /**\n * ### .notOwnProperty(object, property, [message])\n *\n * Asserts that `object` does _not_ have a direct property named by\n * `property`. Inherited properties aren't checked.\n *\n * assert.notOwnProperty({ tea: { green: 'matcha' }}, 'coffee');\n * assert.notOwnProperty({}, 'toString');\n *\n * @name notOwnProperty\n * @param {Object} object\n * @param {String} property\n * @param {String} message\n * @api public\n */\n\n assert.notOwnProperty = function (obj, prop, msg) {\n new Assertion(obj, msg, assert.notOwnProperty, true)\n .to.not.have.own.property(prop);\n };\n\n /**\n * ### .ownPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` has a direct property named by `property` and a value\n * equal to the provided `value`. Uses a strict equality check (===).\n * Inherited properties aren't checked.\n *\n * assert.ownPropertyVal({ coffee: 'is good'}, 'coffee', 'is good');\n *\n * @name ownPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @api public\n */\n\n assert.ownPropertyVal = function (obj, prop, value, msg) {\n new Assertion(obj, msg, assert.ownPropertyVal, true)\n .to.have.own.property(prop, value);\n };\n\n /**\n * ### .notOwnPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` does _not_ have a direct property named by `property`\n * with a value equal to the provided `value`. Uses a strict equality check\n * (===). Inherited properties aren't checked.\n *\n * assert.notOwnPropertyVal({ tea: 'is better'}, 'tea', 'is worse');\n * assert.notOwnPropertyVal({}, 'toString', Object.prototype.toString);\n *\n * @name notOwnPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @api public\n */\n\n assert.notOwnPropertyVal = function (obj, prop, value, msg) {\n new Assertion(obj, msg, assert.notOwnPropertyVal, true)\n .to.not.have.own.property(prop, value);\n };\n\n /**\n * ### .deepOwnPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` has a direct property named by `property` and a value\n * equal to the provided `value`. Uses a deep equality check. Inherited\n * properties aren't checked.\n *\n * assert.deepOwnPropertyVal({ tea: { green: 'matcha' } }, 'tea', { green: 'matcha' });\n *\n * @name deepOwnPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @api public\n */\n\n assert.deepOwnPropertyVal = function (obj, prop, value, msg) {\n new Assertion(obj, msg, assert.deepOwnPropertyVal, true)\n .to.have.deep.own.property(prop, value);\n };\n\n /**\n * ### .notDeepOwnPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` does _not_ have a direct property named by `property`\n * with a value equal to the provided `value`. Uses a deep equality check.\n * Inherited properties aren't checked.\n *\n * assert.notDeepOwnPropertyVal({ tea: { green: 'matcha' } }, 'tea', { black: 'matcha' });\n * assert.notDeepOwnPropertyVal({ tea: { green: 'matcha' } }, 'tea', { green: 'oolong' });\n * assert.notDeepOwnPropertyVal({ tea: { green: 'matcha' } }, 'coffee', { green: 'matcha' });\n * assert.notDeepOwnPropertyVal({}, 'toString', Object.prototype.toString);\n *\n * @name notDeepOwnPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @api public\n */\n\n assert.notDeepOwnPropertyVal = function (obj, prop, value, msg) {\n new Assertion(obj, msg, assert.notDeepOwnPropertyVal, true)\n .to.not.have.deep.own.property(prop, value);\n };\n\n /**\n * ### .nestedProperty(object, property, [message])\n *\n * Asserts that `object` has a direct or inherited property named by\n * `property`, which can be a string using dot- and bracket-notation for\n * nested reference.\n *\n * assert.nestedProperty({ tea: { green: 'matcha' }}, 'tea.green');\n *\n * @name nestedProperty\n * @param {Object} object\n * @param {String} property\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.nestedProperty = function (obj, prop, msg) {\n new Assertion(obj, msg, assert.nestedProperty, true)\n .to.have.nested.property(prop);\n };\n\n /**\n * ### .notNestedProperty(object, property, [message])\n *\n * Asserts that `object` does _not_ have a property named by `property`, which\n * can be a string using dot- and bracket-notation for nested reference. The\n * property cannot exist on the object nor anywhere in its prototype chain.\n *\n * assert.notNestedProperty({ tea: { green: 'matcha' }}, 'tea.oolong');\n *\n * @name notNestedProperty\n * @param {Object} object\n * @param {String} property\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notNestedProperty = function (obj, prop, msg) {\n new Assertion(obj, msg, assert.notNestedProperty, true)\n .to.not.have.nested.property(prop);\n };\n\n /**\n * ### .nestedPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` has a property named by `property` with value given\n * by `value`. `property` can use dot- and bracket-notation for nested\n * reference. Uses a strict equality check (===).\n *\n * assert.nestedPropertyVal({ tea: { green: 'matcha' }}, 'tea.green', 'matcha');\n *\n * @name nestedPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.nestedPropertyVal = function (obj, prop, val, msg) {\n new Assertion(obj, msg, assert.nestedPropertyVal, true)\n .to.have.nested.property(prop, val);\n };\n\n /**\n * ### .notNestedPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` does _not_ have a property named by `property` with\n * value given by `value`. `property` can use dot- and bracket-notation for\n * nested reference. Uses a strict equality check (===).\n *\n * assert.notNestedPropertyVal({ tea: { green: 'matcha' }}, 'tea.green', 'konacha');\n * assert.notNestedPropertyVal({ tea: { green: 'matcha' }}, 'coffee.green', 'matcha');\n *\n * @name notNestedPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notNestedPropertyVal = function (obj, prop, val, msg) {\n new Assertion(obj, msg, assert.notNestedPropertyVal, true)\n .to.not.have.nested.property(prop, val);\n };\n\n /**\n * ### .deepNestedPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` has a property named by `property` with a value given\n * by `value`. `property` can use dot- and bracket-notation for nested\n * reference. Uses a deep equality check.\n *\n * assert.deepNestedPropertyVal({ tea: { green: { matcha: 'yum' } } }, 'tea.green', { matcha: 'yum' });\n *\n * @name deepNestedPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.deepNestedPropertyVal = function (obj, prop, val, msg) {\n new Assertion(obj, msg, assert.deepNestedPropertyVal, true)\n .to.have.deep.nested.property(prop, val);\n };\n\n /**\n * ### .notDeepNestedPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` does _not_ have a property named by `property` with\n * value given by `value`. `property` can use dot- and bracket-notation for\n * nested reference. Uses a deep equality check.\n *\n * assert.notDeepNestedPropertyVal({ tea: { green: { matcha: 'yum' } } }, 'tea.green', { oolong: 'yum' });\n * assert.notDeepNestedPropertyVal({ tea: { green: { matcha: 'yum' } } }, 'tea.green', { matcha: 'yuck' });\n * assert.notDeepNestedPropertyVal({ tea: { green: { matcha: 'yum' } } }, 'tea.black', { matcha: 'yum' });\n *\n * @name notDeepNestedPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notDeepNestedPropertyVal = function (obj, prop, val, msg) {\n new Assertion(obj, msg, assert.notDeepNestedPropertyVal, true)\n .to.not.have.deep.nested.property(prop, val);\n }\n\n /**\n * ### .lengthOf(object, length, [message])\n *\n * Asserts that `object` has a `length` or `size` with the expected value.\n *\n * assert.lengthOf([1,2,3], 3, 'array has length of 3');\n * assert.lengthOf('foobar', 6, 'string has length of 6');\n * assert.lengthOf(new Set([1,2,3]), 3, 'set has size of 3');\n * assert.lengthOf(new Map([['a',1],['b',2],['c',3]]), 3, 'map has size of 3');\n *\n * @name lengthOf\n * @param {Mixed} object\n * @param {Number} length\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.lengthOf = function (exp, len, msg) {\n new Assertion(exp, msg, assert.lengthOf, true).to.have.lengthOf(len);\n };\n\n /**\n * ### .hasAnyKeys(object, [keys], [message])\n *\n * Asserts that `object` has at least one of the `keys` provided.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.hasAnyKeys({foo: 1, bar: 2, baz: 3}, ['foo', 'iDontExist', 'baz']);\n * assert.hasAnyKeys({foo: 1, bar: 2, baz: 3}, {foo: 30, iDontExist: 99, baz: 1337});\n * assert.hasAnyKeys(new Map([[{foo: 1}, 'bar'], ['key', 'value']]), [{foo: 1}, 'key']);\n * assert.hasAnyKeys(new Set([{foo: 'bar'}, 'anotherKey']), [{foo: 'bar'}, 'anotherKey']);\n *\n * @name hasAnyKeys\n * @param {Mixed} object\n * @param {Array|Object} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.hasAnyKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.hasAnyKeys, true).to.have.any.keys(keys);\n }\n\n /**\n * ### .hasAllKeys(object, [keys], [message])\n *\n * Asserts that `object` has all and only all of the `keys` provided.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.hasAllKeys({foo: 1, bar: 2, baz: 3}, ['foo', 'bar', 'baz']);\n * assert.hasAllKeys({foo: 1, bar: 2, baz: 3}, {foo: 30, bar: 99, baz: 1337]);\n * assert.hasAllKeys(new Map([[{foo: 1}, 'bar'], ['key', 'value']]), [{foo: 1}, 'key']);\n * assert.hasAllKeys(new Set([{foo: 'bar'}, 'anotherKey'], [{foo: 'bar'}, 'anotherKey']);\n *\n * @name hasAllKeys\n * @param {Mixed} object\n * @param {String[]} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.hasAllKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.hasAllKeys, true).to.have.all.keys(keys);\n }\n\n /**\n * ### .containsAllKeys(object, [keys], [message])\n *\n * Asserts that `object` has all of the `keys` provided but may have more keys not listed.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.containsAllKeys({foo: 1, bar: 2, baz: 3}, ['foo', 'baz']);\n * assert.containsAllKeys({foo: 1, bar: 2, baz: 3}, ['foo', 'bar', 'baz']);\n * assert.containsAllKeys({foo: 1, bar: 2, baz: 3}, {foo: 30, baz: 1337});\n * assert.containsAllKeys({foo: 1, bar: 2, baz: 3}, {foo: 30, bar: 99, baz: 1337});\n * assert.containsAllKeys(new Map([[{foo: 1}, 'bar'], ['key', 'value']]), [{foo: 1}]);\n * assert.containsAllKeys(new Map([[{foo: 1}, 'bar'], ['key', 'value']]), [{foo: 1}, 'key']);\n * assert.containsAllKeys(new Set([{foo: 'bar'}, 'anotherKey'], [{foo: 'bar'}]);\n * assert.containsAllKeys(new Set([{foo: 'bar'}, 'anotherKey'], [{foo: 'bar'}, 'anotherKey']);\n *\n * @name containsAllKeys\n * @param {Mixed} object\n * @param {String[]} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.containsAllKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.containsAllKeys, true)\n .to.contain.all.keys(keys);\n }\n\n /**\n * ### .doesNotHaveAnyKeys(object, [keys], [message])\n *\n * Asserts that `object` has none of the `keys` provided.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.doesNotHaveAnyKeys({foo: 1, bar: 2, baz: 3}, ['one', 'two', 'example']);\n * assert.doesNotHaveAnyKeys({foo: 1, bar: 2, baz: 3}, {one: 1, two: 2, example: 'foo'});\n * assert.doesNotHaveAnyKeys(new Map([[{foo: 1}, 'bar'], ['key', 'value']]), [{one: 'two'}, 'example']);\n * assert.doesNotHaveAnyKeys(new Set([{foo: 'bar'}, 'anotherKey'], [{one: 'two'}, 'example']);\n *\n * @name doesNotHaveAnyKeys\n * @param {Mixed} object\n * @param {String[]} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.doesNotHaveAnyKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.doesNotHaveAnyKeys, true)\n .to.not.have.any.keys(keys);\n }\n\n /**\n * ### .doesNotHaveAllKeys(object, [keys], [message])\n *\n * Asserts that `object` does not have at least one of the `keys` provided.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.doesNotHaveAllKeys({foo: 1, bar: 2, baz: 3}, ['one', 'two', 'example']);\n * assert.doesNotHaveAllKeys({foo: 1, bar: 2, baz: 3}, {one: 1, two: 2, example: 'foo'});\n * assert.doesNotHaveAllKeys(new Map([[{foo: 1}, 'bar'], ['key', 'value']]), [{one: 'two'}, 'example']);\n * assert.doesNotHaveAllKeys(new Set([{foo: 'bar'}, 'anotherKey'], [{one: 'two'}, 'example']);\n *\n * @name doesNotHaveAllKeys\n * @param {Mixed} object\n * @param {String[]} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.doesNotHaveAllKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.doesNotHaveAllKeys, true)\n .to.not.have.all.keys(keys);\n }\n\n /**\n * ### .hasAnyDeepKeys(object, [keys], [message])\n *\n * Asserts that `object` has at least one of the `keys` provided.\n * Since Sets and Maps can have objects as keys you can use this assertion to perform\n * a deep comparison.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.hasAnyDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [1, 2]]), {one: 'one'});\n * assert.hasAnyDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [1, 2]]), [{one: 'one'}, {two: 'two'}]);\n * assert.hasAnyDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [{two: 'two'}, 'valueTwo']]), [{one: 'one'}, {two: 'two'}]);\n * assert.hasAnyDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), {one: 'one'});\n * assert.hasAnyDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), [{one: 'one'}, {three: 'three'}]);\n * assert.hasAnyDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), [{one: 'one'}, {two: 'two'}]);\n *\n * @name hasAnyDeepKeys\n * @param {Mixed} object\n * @param {Array|Object} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.hasAnyDeepKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.hasAnyDeepKeys, true)\n .to.have.any.deep.keys(keys);\n }\n\n /**\n * ### .hasAllDeepKeys(object, [keys], [message])\n *\n * Asserts that `object` has all and only all of the `keys` provided.\n * Since Sets and Maps can have objects as keys you can use this assertion to perform\n * a deep comparison.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.hasAllDeepKeys(new Map([[{one: 'one'}, 'valueOne']]), {one: 'one'});\n * assert.hasAllDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [{two: 'two'}, 'valueTwo']]), [{one: 'one'}, {two: 'two'}]);\n * assert.hasAllDeepKeys(new Set([{one: 'one'}]), {one: 'one'});\n * assert.hasAllDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), [{one: 'one'}, {two: 'two'}]);\n *\n * @name hasAllDeepKeys\n * @param {Mixed} object\n * @param {Array|Object} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.hasAllDeepKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.hasAllDeepKeys, true)\n .to.have.all.deep.keys(keys);\n }\n\n /**\n * ### .containsAllDeepKeys(object, [keys], [message])\n *\n * Asserts that `object` contains all of the `keys` provided.\n * Since Sets and Maps can have objects as keys you can use this assertion to perform\n * a deep comparison.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.containsAllDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [1, 2]]), {one: 'one'});\n * assert.containsAllDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [{two: 'two'}, 'valueTwo']]), [{one: 'one'}, {two: 'two'}]);\n * assert.containsAllDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), {one: 'one'});\n * assert.containsAllDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), [{one: 'one'}, {two: 'two'}]);\n *\n * @name containsAllDeepKeys\n * @param {Mixed} object\n * @param {Array|Object} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.containsAllDeepKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.containsAllDeepKeys, true)\n .to.contain.all.deep.keys(keys);\n }\n\n /**\n * ### .doesNotHaveAnyDeepKeys(object, [keys], [message])\n *\n * Asserts that `object` has none of the `keys` provided.\n * Since Sets and Maps can have objects as keys you can use this assertion to perform\n * a deep comparison.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.doesNotHaveAnyDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [1, 2]]), {thisDoesNot: 'exist'});\n * assert.doesNotHaveAnyDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [{two: 'two'}, 'valueTwo']]), [{twenty: 'twenty'}, {fifty: 'fifty'}]);\n * assert.doesNotHaveAnyDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), {twenty: 'twenty'});\n * assert.doesNotHaveAnyDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), [{twenty: 'twenty'}, {fifty: 'fifty'}]);\n *\n * @name doesNotHaveAnyDeepKeys\n * @param {Mixed} object\n * @param {Array|Object} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.doesNotHaveAnyDeepKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.doesNotHaveAnyDeepKeys, true)\n .to.not.have.any.deep.keys(keys);\n }\n\n /**\n * ### .doesNotHaveAllDeepKeys(object, [keys], [message])\n *\n * Asserts that `object` does not have at least one of the `keys` provided.\n * Since Sets and Maps can have objects as keys you can use this assertion to perform\n * a deep comparison.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.doesNotHaveAllDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [1, 2]]), {thisDoesNot: 'exist'});\n * assert.doesNotHaveAllDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [{two: 'two'}, 'valueTwo']]), [{twenty: 'twenty'}, {one: 'one'}]);\n * assert.doesNotHaveAllDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), {twenty: 'twenty'});\n * assert.doesNotHaveAllDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), [{one: 'one'}, {fifty: 'fifty'}]);\n *\n * @name doesNotHaveAllDeepKeys\n * @param {Mixed} object\n * @param {Array|Object} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.doesNotHaveAllDeepKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.doesNotHaveAllDeepKeys, true)\n .to.not.have.all.deep.keys(keys);\n }\n\n /**\n * ### .throws(fn, [errorLike/string/regexp], [string/regexp], [message])\n *\n * If `errorLike` is an `Error` constructor, asserts that `fn` will throw an error that is an\n * instance of `errorLike`.\n * If `errorLike` is an `Error` instance, asserts that the error thrown is the same\n * instance as `errorLike`.\n * If `errMsgMatcher` is provided, it also asserts that the error thrown will have a\n * message matching `errMsgMatcher`.\n *\n * assert.throws(fn, 'Error thrown must have this msg');\n * assert.throws(fn, /Error thrown must have a msg that matches this/);\n * assert.throws(fn, ReferenceError);\n * assert.throws(fn, errorInstance);\n * assert.throws(fn, ReferenceError, 'Error thrown must be a ReferenceError and have this msg');\n * assert.throws(fn, errorInstance, 'Error thrown must be the same errorInstance and have this msg');\n * assert.throws(fn, ReferenceError, /Error thrown must be a ReferenceError and match this/);\n * assert.throws(fn, errorInstance, /Error thrown must be the same errorInstance and match this/);\n *\n * @name throws\n * @alias throw\n * @alias Throw\n * @param {Function} fn\n * @param {ErrorConstructor|Error} errorLike\n * @param {RegExp|String} errMsgMatcher\n * @param {String} message\n * @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types\n * @namespace Assert\n * @api public\n */\n\n assert.throws = function (fn, errorLike, errMsgMatcher, msg) {\n if ('string' === typeof errorLike || errorLike instanceof RegExp) {\n errMsgMatcher = errorLike;\n errorLike = null;\n }\n\n var assertErr = new Assertion(fn, msg, assert.throws, true)\n .to.throw(errorLike, errMsgMatcher);\n return flag(assertErr, 'object');\n };\n\n /**\n * ### .doesNotThrow(fn, [errorLike/string/regexp], [string/regexp], [message])\n *\n * If `errorLike` is an `Error` constructor, asserts that `fn` will _not_ throw an error that is an\n * instance of `errorLike`.\n * If `errorLike` is an `Error` instance, asserts that the error thrown is _not_ the same\n * instance as `errorLike`.\n * If `errMsgMatcher` is provided, it also asserts that the error thrown will _not_ have a\n * message matching `errMsgMatcher`.\n *\n * assert.doesNotThrow(fn, 'Any Error thrown must not have this message');\n * assert.doesNotThrow(fn, /Any Error thrown must not match this/);\n * assert.doesNotThrow(fn, Error);\n * assert.doesNotThrow(fn, errorInstance);\n * assert.doesNotThrow(fn, Error, 'Error must not have this message');\n * assert.doesNotThrow(fn, errorInstance, 'Error must not have this message');\n * assert.doesNotThrow(fn, Error, /Error must not match this/);\n * assert.doesNotThrow(fn, errorInstance, /Error must not match this/);\n *\n * @name doesNotThrow\n * @param {Function} fn\n * @param {ErrorConstructor} errorLike\n * @param {RegExp|String} errMsgMatcher\n * @param {String} message\n * @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types\n * @namespace Assert\n * @api public\n */\n\n assert.doesNotThrow = function (fn, errorLike, errMsgMatcher, msg) {\n if ('string' === typeof errorLike || errorLike instanceof RegExp) {\n errMsgMatcher = errorLike;\n errorLike = null;\n }\n\n new Assertion(fn, msg, assert.doesNotThrow, true)\n .to.not.throw(errorLike, errMsgMatcher);\n };\n\n /**\n * ### .operator(val1, operator, val2, [message])\n *\n * Compares two values using `operator`.\n *\n * assert.operator(1, '<', 2, 'everything is ok');\n * assert.operator(1, '>', 2, 'this will fail');\n *\n * @name operator\n * @param {Mixed} val1\n * @param {String} operator\n * @param {Mixed} val2\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.operator = function (val, operator, val2, msg) {\n var ok;\n switch(operator) {\n case '==':\n ok = val == val2;\n break;\n case '===':\n ok = val === val2;\n break;\n case '>':\n ok = val > val2;\n break;\n case '>=':\n ok = val >= val2;\n break;\n case '<':\n ok = val < val2;\n break;\n case '<=':\n ok = val <= val2;\n break;\n case '!=':\n ok = val != val2;\n break;\n case '!==':\n ok = val !== val2;\n break;\n default:\n msg = msg ? msg + ': ' : msg;\n throw new chai.AssertionError(\n msg + 'Invalid operator \"' + operator + '\"',\n undefined,\n assert.operator\n );\n }\n var test = new Assertion(ok, msg, assert.operator, true);\n test.assert(\n true === flag(test, 'object')\n , 'expected ' + util.inspect(val) + ' to be ' + operator + ' ' + util.inspect(val2)\n , 'expected ' + util.inspect(val) + ' to not be ' + operator + ' ' + util.inspect(val2) );\n };\n\n /**\n * ### .closeTo(actual, expected, delta, [message])\n *\n * Asserts that the target is equal `expected`, to within a +/- `delta` range.\n *\n * assert.closeTo(1.5, 1, 0.5, 'numbers are close');\n *\n * @name closeTo\n * @param {Number} actual\n * @param {Number} expected\n * @param {Number} delta\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.closeTo = function (act, exp, delta, msg) {\n new Assertion(act, msg, assert.closeTo, true).to.be.closeTo(exp, delta);\n };\n\n /**\n * ### .approximately(actual, expected, delta, [message])\n *\n * Asserts that the target is equal `expected`, to within a +/- `delta` range.\n *\n * assert.approximately(1.5, 1, 0.5, 'numbers are close');\n *\n * @name approximately\n * @param {Number} actual\n * @param {Number} expected\n * @param {Number} delta\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.approximately = function (act, exp, delta, msg) {\n new Assertion(act, msg, assert.approximately, true)\n .to.be.approximately(exp, delta);\n };\n\n /**\n * ### .sameMembers(set1, set2, [message])\n *\n * Asserts that `set1` and `set2` have the same members in any order. Uses a\n * strict equality check (===).\n *\n * assert.sameMembers([ 1, 2, 3 ], [ 2, 1, 3 ], 'same members');\n *\n * @name sameMembers\n * @param {Array} set1\n * @param {Array} set2\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.sameMembers = function (set1, set2, msg) {\n new Assertion(set1, msg, assert.sameMembers, true)\n .to.have.same.members(set2);\n }\n\n /**\n * ### .notSameMembers(set1, set2, [message])\n *\n * Asserts that `set1` and `set2` don't have the same members in any order.\n * Uses a strict equality check (===).\n *\n * assert.notSameMembers([ 1, 2, 3 ], [ 5, 1, 3 ], 'not same members');\n *\n * @name notSameMembers\n * @param {Array} set1\n * @param {Array} set2\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notSameMembers = function (set1, set2, msg) {\n new Assertion(set1, msg, assert.notSameMembers, true)\n .to.not.have.same.members(set2);\n }\n\n /**\n * ### .sameDeepMembers(set1, set2, [message])\n *\n * Asserts that `set1` and `set2` have the same members in any order. Uses a\n * deep equality check.\n *\n * assert.sameDeepMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [{ b: 2 }, { a: 1 }, { c: 3 }], 'same deep members');\n *\n * @name sameDeepMembers\n * @param {Array} set1\n * @param {Array} set2\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.sameDeepMembers = function (set1, set2, msg) {\n new Assertion(set1, msg, assert.sameDeepMembers, true)\n .to.have.same.deep.members(set2);\n }\n\n /**\n * ### .notSameDeepMembers(set1, set2, [message])\n *\n * Asserts that `set1` and `set2` don't have the same members in any order.\n * Uses a deep equality check.\n *\n * assert.notSameDeepMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [{ b: 2 }, { a: 1 }, { f: 5 }], 'not same deep members');\n *\n * @name notSameDeepMembers\n * @param {Array} set1\n * @param {Array} set2\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notSameDeepMembers = function (set1, set2, msg) {\n new Assertion(set1, msg, assert.notSameDeepMembers, true)\n .to.not.have.same.deep.members(set2);\n }\n\n /**\n * ### .sameOrderedMembers(set1, set2, [message])\n *\n * Asserts that `set1` and `set2` have the same members in the same order.\n * Uses a strict equality check (===).\n *\n * assert.sameOrderedMembers([ 1, 2, 3 ], [ 1, 2, 3 ], 'same ordered members');\n *\n * @name sameOrderedMembers\n * @param {Array} set1\n * @param {Array} set2\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.sameOrderedMembers = function (set1, set2, msg) {\n new Assertion(set1, msg, assert.sameOrderedMembers, true)\n .to.have.same.ordered.members(set2);\n }\n\n /**\n * ### .notSameOrderedMembers(set1, set2, [message])\n *\n * Asserts that `set1` and `set2` don't have the same members in the same\n * order. Uses a strict equality check (===).\n *\n * assert.notSameOrderedMembers([ 1, 2, 3 ], [ 2, 1, 3 ], 'not same ordered members');\n *\n * @name notSameOrderedMembers\n * @param {Array} set1\n * @param {Array} set2\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notSameOrderedMembers = function (set1, set2, msg) {\n new Assertion(set1, msg, assert.notSameOrderedMembers, true)\n .to.not.have.same.ordered.members(set2);\n }\n\n /**\n * ### .sameDeepOrderedMembers(set1, set2, [message])\n *\n * Asserts that `set1` and `set2` have the same members in the same order.\n * Uses a deep equality check.\n *\n * assert.sameDeepOrderedMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { a: 1 }, { b: 2 }, { c: 3 } ], 'same deep ordered members');\n *\n * @name sameDeepOrderedMembers\n * @param {Array} set1\n * @param {Array} set2\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.sameDeepOrderedMembers = function (set1, set2, msg) {\n new Assertion(set1, msg, assert.sameDeepOrderedMembers, true)\n .to.have.same.deep.ordered.members(set2);\n }\n\n /**\n * ### .notSameDeepOrderedMembers(set1, set2, [message])\n *\n * Asserts that `set1` and `set2` don't have the same members in the same\n * order. Uses a deep equality check.\n *\n * assert.notSameDeepOrderedMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { a: 1 }, { b: 2 }, { z: 5 } ], 'not same deep ordered members');\n * assert.notSameDeepOrderedMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { b: 2 }, { a: 1 }, { c: 3 } ], 'not same deep ordered members');\n *\n * @name notSameDeepOrderedMembers\n * @param {Array} set1\n * @param {Array} set2\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notSameDeepOrderedMembers = function (set1, set2, msg) {\n new Assertion(set1, msg, assert.notSameDeepOrderedMembers, true)\n .to.not.have.same.deep.ordered.members(set2);\n }\n\n /**\n * ### .includeMembers(superset, subset, [message])\n *\n * Asserts that `subset` is included in `superset` in any order. Uses a\n * strict equality check (===). Duplicates are ignored.\n *\n * assert.includeMembers([ 1, 2, 3 ], [ 2, 1, 2 ], 'include members');\n *\n * @name includeMembers\n * @param {Array} superset\n * @param {Array} subset\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.includeMembers = function (superset, subset, msg) {\n new Assertion(superset, msg, assert.includeMembers, true)\n .to.include.members(subset);\n }\n\n /**\n * ### .notIncludeMembers(superset, subset, [message])\n *\n * Asserts that `subset` isn't included in `superset` in any order. Uses a\n * strict equality check (===). Duplicates are ignored.\n *\n * assert.notIncludeMembers([ 1, 2, 3 ], [ 5, 1 ], 'not include members');\n *\n * @name notIncludeMembers\n * @param {Array} superset\n * @param {Array} subset\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notIncludeMembers = function (superset, subset, msg) {\n new Assertion(superset, msg, assert.notIncludeMembers, true)\n .to.not.include.members(subset);\n }\n\n /**\n * ### .includeDeepMembers(superset, subset, [message])\n *\n * Asserts that `subset` is included in `superset` in any order. Uses a deep\n * equality check. Duplicates are ignored.\n *\n * assert.includeDeepMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { b: 2 }, { a: 1 }, { b: 2 } ], 'include deep members');\n *\n * @name includeDeepMembers\n * @param {Array} superset\n * @param {Array} subset\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.includeDeepMembers = function (superset, subset, msg) {\n new Assertion(superset, msg, assert.includeDeepMembers, true)\n .to.include.deep.members(subset);\n }\n\n /**\n * ### .notIncludeDeepMembers(superset, subset, [message])\n *\n * Asserts that `subset` isn't included in `superset` in any order. Uses a\n * deep equality check. Duplicates are ignored.\n *\n * assert.notIncludeDeepMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { b: 2 }, { f: 5 } ], 'not include deep members');\n *\n * @name notIncludeDeepMembers\n * @param {Array} superset\n * @param {Array} subset\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notIncludeDeepMembers = function (superset, subset, msg) {\n new Assertion(superset, msg, assert.notIncludeDeepMembers, true)\n .to.not.include.deep.members(subset);\n }\n\n /**\n * ### .includeOrderedMembers(superset, subset, [message])\n *\n * Asserts that `subset` is included in `superset` in the same order\n * beginning with the first element in `superset`. Uses a strict equality\n * check (===).\n *\n * assert.includeOrderedMembers([ 1, 2, 3 ], [ 1, 2 ], 'include ordered members');\n *\n * @name includeOrderedMembers\n * @param {Array} superset\n * @param {Array} subset\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.includeOrderedMembers = function (superset, subset, msg) {\n new Assertion(superset, msg, assert.includeOrderedMembers, true)\n .to.include.ordered.members(subset);\n }\n\n /**\n * ### .notIncludeOrderedMembers(superset, subset, [message])\n *\n * Asserts that `subset` isn't included in `superset` in the same order\n * beginning with the first element in `superset`. Uses a strict equality\n * check (===).\n *\n * assert.notIncludeOrderedMembers([ 1, 2, 3 ], [ 2, 1 ], 'not include ordered members');\n * assert.notIncludeOrderedMembers([ 1, 2, 3 ], [ 2, 3 ], 'not include ordered members');\n *\n * @name notIncludeOrderedMembers\n * @param {Array} superset\n * @param {Array} subset\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notIncludeOrderedMembers = function (superset, subset, msg) {\n new Assertion(superset, msg, assert.notIncludeOrderedMembers, true)\n .to.not.include.ordered.members(subset);\n }\n\n /**\n * ### .includeDeepOrderedMembers(superset, subset, [message])\n *\n * Asserts that `subset` is included in `superset` in the same order\n * beginning with the first element in `superset`. Uses a deep equality\n * check.\n *\n * assert.includeDeepOrderedMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { a: 1 }, { b: 2 } ], 'include deep ordered members');\n *\n * @name includeDeepOrderedMembers\n * @param {Array} superset\n * @param {Array} subset\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.includeDeepOrderedMembers = function (superset, subset, msg) {\n new Assertion(superset, msg, assert.includeDeepOrderedMembers, true)\n .to.include.deep.ordered.members(subset);\n }\n\n /**\n * ### .notIncludeDeepOrderedMembers(superset, subset, [message])\n *\n * Asserts that `subset` isn't included in `superset` in the same order\n * beginning with the first element in `superset`. Uses a deep equality\n * check.\n *\n * assert.notIncludeDeepOrderedMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { a: 1 }, { f: 5 } ], 'not include deep ordered members');\n * assert.notIncludeDeepOrderedMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { b: 2 }, { a: 1 } ], 'not include deep ordered members');\n * assert.notIncludeDeepOrderedMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { b: 2 }, { c: 3 } ], 'not include deep ordered members');\n *\n * @name notIncludeDeepOrderedMembers\n * @param {Array} superset\n * @param {Array} subset\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notIncludeDeepOrderedMembers = function (superset, subset, msg) {\n new Assertion(superset, msg, assert.notIncludeDeepOrderedMembers, true)\n .to.not.include.deep.ordered.members(subset);\n }\n\n /**\n * ### .oneOf(inList, list, [message])\n *\n * Asserts that non-object, non-array value `inList` appears in the flat array `list`.\n *\n * assert.oneOf(1, [ 2, 1 ], 'Not found in list');\n *\n * @name oneOf\n * @param {*} inList\n * @param {Array<*>} list\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.oneOf = function (inList, list, msg) {\n new Assertion(inList, msg, assert.oneOf, true).to.be.oneOf(list);\n }\n\n /**\n * ### .changes(function, object, property, [message])\n *\n * Asserts that a function changes the value of a property.\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val = 22 };\n * assert.changes(fn, obj, 'val');\n *\n * @name changes\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.changes = function (fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === 'function') {\n msg = prop;\n prop = null;\n }\n\n new Assertion(fn, msg, assert.changes, true).to.change(obj, prop);\n }\n\n /**\n * ### .changesBy(function, object, property, delta, [message])\n *\n * Asserts that a function changes the value of a property by an amount (delta).\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val += 2 };\n * assert.changesBy(fn, obj, 'val', 2);\n *\n * @name changesBy\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {Number} change amount (delta)\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.changesBy = function (fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === 'function') {\n var tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n\n new Assertion(fn, msg, assert.changesBy, true)\n .to.change(obj, prop).by(delta);\n }\n\n /**\n * ### .doesNotChange(function, object, property, [message])\n *\n * Asserts that a function does not change the value of a property.\n *\n * var obj = { val: 10 };\n * var fn = function() { console.log('foo'); };\n * assert.doesNotChange(fn, obj, 'val');\n *\n * @name doesNotChange\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.doesNotChange = function (fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === 'function') {\n msg = prop;\n prop = null;\n }\n\n return new Assertion(fn, msg, assert.doesNotChange, true)\n .to.not.change(obj, prop);\n }\n\n /**\n * ### .changesButNotBy(function, object, property, delta, [message])\n *\n * Asserts that a function does not change the value of a property or of a function's return value by an amount (delta)\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val += 10 };\n * assert.changesButNotBy(fn, obj, 'val', 5);\n *\n * @name changesButNotBy\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {Number} change amount (delta)\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.changesButNotBy = function (fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === 'function') {\n var tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n\n new Assertion(fn, msg, assert.changesButNotBy, true)\n .to.change(obj, prop).but.not.by(delta);\n }\n\n /**\n * ### .increases(function, object, property, [message])\n *\n * Asserts that a function increases a numeric object property.\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val = 13 };\n * assert.increases(fn, obj, 'val');\n *\n * @name increases\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.increases = function (fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === 'function') {\n msg = prop;\n prop = null;\n }\n\n return new Assertion(fn, msg, assert.increases, true)\n .to.increase(obj, prop);\n }\n\n /**\n * ### .increasesBy(function, object, property, delta, [message])\n *\n * Asserts that a function increases a numeric object property or a function's return value by an amount (delta).\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val += 10 };\n * assert.increasesBy(fn, obj, 'val', 10);\n *\n * @name increasesBy\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {Number} change amount (delta)\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.increasesBy = function (fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === 'function') {\n var tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n\n new Assertion(fn, msg, assert.increasesBy, true)\n .to.increase(obj, prop).by(delta);\n }\n\n /**\n * ### .doesNotIncrease(function, object, property, [message])\n *\n * Asserts that a function does not increase a numeric object property.\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val = 8 };\n * assert.doesNotIncrease(fn, obj, 'val');\n *\n * @name doesNotIncrease\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.doesNotIncrease = function (fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === 'function') {\n msg = prop;\n prop = null;\n }\n\n return new Assertion(fn, msg, assert.doesNotIncrease, true)\n .to.not.increase(obj, prop);\n }\n\n /**\n * ### .increasesButNotBy(function, object, property, delta, [message])\n *\n * Asserts that a function does not increase a numeric object property or function's return value by an amount (delta).\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val = 15 };\n * assert.increasesButNotBy(fn, obj, 'val', 10);\n *\n * @name increasesButNotBy\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {Number} change amount (delta)\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.increasesButNotBy = function (fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === 'function') {\n var tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n\n new Assertion(fn, msg, assert.increasesButNotBy, true)\n .to.increase(obj, prop).but.not.by(delta);\n }\n\n /**\n * ### .decreases(function, object, property, [message])\n *\n * Asserts that a function decreases a numeric object property.\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val = 5 };\n * assert.decreases(fn, obj, 'val');\n *\n * @name decreases\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.decreases = function (fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === 'function') {\n msg = prop;\n prop = null;\n }\n\n return new Assertion(fn, msg, assert.decreases, true)\n .to.decrease(obj, prop);\n }\n\n /**\n * ### .decreasesBy(function, object, property, delta, [message])\n *\n * Asserts that a function decreases a numeric object property or a function's return value by an amount (delta)\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val -= 5 };\n * assert.decreasesBy(fn, obj, 'val', 5);\n *\n * @name decreasesBy\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {Number} change amount (delta)\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.decreasesBy = function (fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === 'function') {\n var tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n\n new Assertion(fn, msg, assert.decreasesBy, true)\n .to.decrease(obj, prop).by(delta);\n }\n\n /**\n * ### .doesNotDecrease(function, object, property, [message])\n *\n * Asserts that a function does not decreases a numeric object property.\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val = 15 };\n * assert.doesNotDecrease(fn, obj, 'val');\n *\n * @name doesNotDecrease\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.doesNotDecrease = function (fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === 'function') {\n msg = prop;\n prop = null;\n }\n\n return new Assertion(fn, msg, assert.doesNotDecrease, true)\n .to.not.decrease(obj, prop);\n }\n\n /**\n * ### .doesNotDecreaseBy(function, object, property, delta, [message])\n *\n * Asserts that a function does not decreases a numeric object property or a function's return value by an amount (delta)\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val = 5 };\n * assert.doesNotDecreaseBy(fn, obj, 'val', 1);\n *\n * @name doesNotDecreaseBy\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {Number} change amount (delta)\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.doesNotDecreaseBy = function (fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === 'function') {\n var tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n\n return new Assertion(fn, msg, assert.doesNotDecreaseBy, true)\n .to.not.decrease(obj, prop).by(delta);\n }\n\n /**\n * ### .decreasesButNotBy(function, object, property, delta, [message])\n *\n * Asserts that a function does not decreases a numeric object property or a function's return value by an amount (delta)\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val = 5 };\n * assert.decreasesButNotBy(fn, obj, 'val', 1);\n *\n * @name decreasesButNotBy\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {Number} change amount (delta)\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.decreasesButNotBy = function (fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === 'function') {\n var tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n\n new Assertion(fn, msg, assert.decreasesButNotBy, true)\n .to.decrease(obj, prop).but.not.by(delta);\n }\n\n /*!\n * ### .ifError(object)\n *\n * Asserts if value is not a false value, and throws if it is a true value.\n * This is added to allow for chai to be a drop-in replacement for Node's\n * assert class.\n *\n * var err = new Error('I am a custom error');\n * assert.ifError(err); // Rethrows err!\n *\n * @name ifError\n * @param {Object} object\n * @namespace Assert\n * @api public\n */\n\n assert.ifError = function (val) {\n if (val) {\n throw(val);\n }\n };\n\n /**\n * ### .isExtensible(object)\n *\n * Asserts that `object` is extensible (can have new properties added to it).\n *\n * assert.isExtensible({});\n *\n * @name isExtensible\n * @alias extensible\n * @param {Object} object\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.isExtensible = function (obj, msg) {\n new Assertion(obj, msg, assert.isExtensible, true).to.be.extensible;\n };\n\n /**\n * ### .isNotExtensible(object)\n *\n * Asserts that `object` is _not_ extensible.\n *\n * var nonExtensibleObject = Object.preventExtensions({});\n * var sealedObject = Object.seal({});\n * var frozenObject = Object.freeze({});\n *\n * assert.isNotExtensible(nonExtensibleObject);\n * assert.isNotExtensible(sealedObject);\n * assert.isNotExtensible(frozenObject);\n *\n * @name isNotExtensible\n * @alias notExtensible\n * @param {Object} object\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.isNotExtensible = function (obj, msg) {\n new Assertion(obj, msg, assert.isNotExtensible, true).to.not.be.extensible;\n };\n\n /**\n * ### .isSealed(object)\n *\n * Asserts that `object` is sealed (cannot have new properties added to it\n * and its existing properties cannot be removed).\n *\n * var sealedObject = Object.seal({});\n * var frozenObject = Object.seal({});\n *\n * assert.isSealed(sealedObject);\n * assert.isSealed(frozenObject);\n *\n * @name isSealed\n * @alias sealed\n * @param {Object} object\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.isSealed = function (obj, msg) {\n new Assertion(obj, msg, assert.isSealed, true).to.be.sealed;\n };\n\n /**\n * ### .isNotSealed(object)\n *\n * Asserts that `object` is _not_ sealed.\n *\n * assert.isNotSealed({});\n *\n * @name isNotSealed\n * @alias notSealed\n * @param {Object} object\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.isNotSealed = function (obj, msg) {\n new Assertion(obj, msg, assert.isNotSealed, true).to.not.be.sealed;\n };\n\n /**\n * ### .isFrozen(object)\n *\n * Asserts that `object` is frozen (cannot have new properties added to it\n * and its existing properties cannot be modified).\n *\n * var frozenObject = Object.freeze({});\n * assert.frozen(frozenObject);\n *\n * @name isFrozen\n * @alias frozen\n * @param {Object} object\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.isFrozen = function (obj, msg) {\n new Assertion(obj, msg, assert.isFrozen, true).to.be.frozen;\n };\n\n /**\n * ### .isNotFrozen(object)\n *\n * Asserts that `object` is _not_ frozen.\n *\n * assert.isNotFrozen({});\n *\n * @name isNotFrozen\n * @alias notFrozen\n * @param {Object} object\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.isNotFrozen = function (obj, msg) {\n new Assertion(obj, msg, assert.isNotFrozen, true).to.not.be.frozen;\n };\n\n /**\n * ### .isEmpty(target)\n *\n * Asserts that the target does not contain any values.\n * For arrays and strings, it checks the `length` property.\n * For `Map` and `Set` instances, it checks the `size` property.\n * For non-function objects, it gets the count of own\n * enumerable string keys.\n *\n * assert.isEmpty([]);\n * assert.isEmpty('');\n * assert.isEmpty(new Map);\n * assert.isEmpty({});\n *\n * @name isEmpty\n * @alias empty\n * @param {Object|Array|String|Map|Set} target\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.isEmpty = function(val, msg) {\n new Assertion(val, msg, assert.isEmpty, true).to.be.empty;\n };\n\n /**\n * ### .isNotEmpty(target)\n *\n * Asserts that the target contains values.\n * For arrays and strings, it checks the `length` property.\n * For `Map` and `Set` instances, it checks the `size` property.\n * For non-function objects, it gets the count of own\n * enumerable string keys.\n *\n * assert.isNotEmpty([1, 2]);\n * assert.isNotEmpty('34');\n * assert.isNotEmpty(new Set([5, 6]));\n * assert.isNotEmpty({ key: 7 });\n *\n * @name isNotEmpty\n * @alias notEmpty\n * @param {Object|Array|String|Map|Set} target\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.isNotEmpty = function(val, msg) {\n new Assertion(val, msg, assert.isNotEmpty, true).to.not.be.empty;\n };\n\n /*!\n * Aliases.\n */\n\n (function alias(name, as){\n assert[as] = assert[name];\n return alias;\n })\n ('isOk', 'ok')\n ('isNotOk', 'notOk')\n ('throws', 'throw')\n ('throws', 'Throw')\n ('isExtensible', 'extensible')\n ('isNotExtensible', 'notExtensible')\n ('isSealed', 'sealed')\n ('isNotSealed', 'notSealed')\n ('isFrozen', 'frozen')\n ('isNotFrozen', 'notFrozen')\n ('isEmpty', 'empty')\n ('isNotEmpty', 'notEmpty');\n};\n","/*!\n * chai\n * Copyright(c) 2011-2014 Jake Luer \n * MIT Licensed\n */\n\nvar used = [];\n\n/*!\n * Chai version\n */\n\nexports.version = '4.3.3';\n\n/*!\n * Assertion Error\n */\n\nexports.AssertionError = require('assertion-error');\n\n/*!\n * Utils for plugins (not exported)\n */\n\nvar util = require('./chai/utils');\n\n/**\n * # .use(function)\n *\n * Provides a way to extend the internals of Chai.\n *\n * @param {Function}\n * @returns {this} for chaining\n * @api public\n */\n\nexports.use = function (fn) {\n if (!~used.indexOf(fn)) {\n fn(exports, util);\n used.push(fn);\n }\n\n return exports;\n};\n\n/*!\n * Utility Functions\n */\n\nexports.util = util;\n\n/*!\n * Configuration\n */\n\nvar config = require('./chai/config');\nexports.config = config;\n\n/*!\n * Primary `Assertion` prototype\n */\n\nvar assertion = require('./chai/assertion');\nexports.use(assertion);\n\n/*!\n * Core Assertions\n */\n\nvar core = require('./chai/core/assertions');\nexports.use(core);\n\n/*!\n * Expect interface\n */\n\nvar expect = require('./chai/interface/expect');\nexports.use(expect);\n\n/*!\n * Should interface\n */\n\nvar should = require('./chai/interface/should');\nexports.use(should);\n\n/*!\n * Assert interface\n */\n\nvar assert = require('./chai/interface/assert');\nexports.use(assert);\n","module.exports = require('./lib/chai');\n","import chai from './index.js';\n\nexport const expect = chai.expect;\nexport const version = chai.version;\nexport const Assertion = chai.Assertion;\nexport const AssertionError = chai.AssertionError;\nexport const util = chai.util;\nexport const config = chai.config;\nexport const use = chai.use;\nexport const should = chai.should;\nexport const assert = chai.assert;\nexport const core = chai.core;\n\nexport default chai;\n","var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport { commonjsGlobal as c };\n","// src/utils.ts\nfunction R(e, t) {\n if (!e)\n throw new Error(t);\n}\nfunction i(e, t) {\n return typeof t === e;\n}\nfunction b(e) {\n return e instanceof Promise;\n}\nfunction g(e, t, n) {\n Object.defineProperty(e, t, n);\n}\nfunction l(e, t, n) {\n Object.defineProperty(e, t, { value: n });\n}\n\n// src/constants.ts\nvar y = Symbol.for(\"tinyspy:spy\");\n\n// src/internal.ts\nvar m = /* @__PURE__ */ new Set(), M = (e) => {\n e.called = !1, e.callCount = 0, e.calls = [], e.results = [];\n}, C = (e) => (g(e, y, { value: { reset: () => M(e[y]) } }), e[y]), A = (e) => e[y] || C(e);\nfunction I(e) {\n R(i(\"function\", e) || i(\"undefined\", e), \"cannot spy on a non-function value\");\n let t = function(...o) {\n let r = A(t);\n if (r.called = !0, r.callCount++, r.calls.push(o), r.next) {\n let [p, s] = r.next;\n if (r.results.push(r.next), r.next = null, p === \"ok\")\n return s;\n throw s;\n }\n let a, f = \"ok\";\n if (r.impl)\n try {\n a = r.impl.apply(this, o), f = \"ok\";\n } catch (p) {\n throw a = p, f = \"error\", r.results.push([f, p]), p;\n }\n let u = [f, a];\n if (b(a)) {\n let p = a.then((s) => u[1] = s).catch((s) => {\n throw u[0] = \"error\", u[1] = s, s;\n });\n Object.assign(p, a), a = p;\n }\n return r.results.push(u), a;\n };\n l(t, \"_isMockFunction\", !0), l(t, \"length\", e ? e.length : 0), l(t, \"name\", e && e.name || \"spy\");\n let n = A(t);\n return n.reset(), n.impl = e, t;\n}\nfunction v(e) {\n let t = A(e);\n g(e, \"returns\", {\n get: () => t.results.map(([, n]) => n)\n }), [\"called\", \"callCount\", \"results\", \"calls\", \"reset\", \"impl\"].forEach((n) => g(e, n, { get: () => t[n], set: (o) => t[n] = o })), l(e, \"nextError\", (n) => (t.next = [\"error\", n], t)), l(e, \"nextResult\", (n) => (t.next = [\"ok\", n], t));\n}\n\n// src/spy.ts\nfunction z(e) {\n let t = I(e);\n return v(t), t;\n}\n\n// src/spyOn.ts\nvar P = (e, t) => Object.getOwnPropertyDescriptor(e, t);\nfunction E(e, t, n) {\n R(!i(\"undefined\", e), \"spyOn could not find an object to spy upon\"), R(i(\"object\", e) || i(\"function\", e), \"cannot spyOn on a primitive value\");\n let o = () => {\n if (!i(\"object\", t))\n return [t, \"value\"];\n if (\"getter\" in t && \"setter\" in t)\n throw new Error(\"cannot spy on both getter and setter\");\n if (\"getter\" in t)\n return [t.getter, \"get\"];\n if (\"setter\" in t)\n return [t.setter, \"set\"];\n throw new Error(\"specify getter or setter to spy on\");\n }, [r, a] = o(), f = P(e, r), u = Object.getPrototypeOf(e), p = u && P(u, r), s = f || p;\n R(s || r in e, `${String(r)} does not exist`);\n let w = !1;\n a === \"value\" && s && !s.value && s.get && (a = \"get\", w = !0, n = s.get());\n let c;\n s ? c = s[a] : a !== \"value\" ? c = () => e[r] : c = e[r], n || (n = c);\n let d = I(n), O = (h) => {\n let { value: G, ...k } = s || {\n configurable: !0,\n writable: !0\n };\n a !== \"value\" && delete k.writable, k[a] = h, g(e, r, k);\n }, K = () => O(c), T = d[y];\n return l(T, \"restore\", K), l(T, \"getOriginal\", () => w ? c() : c), l(T, \"willCall\", (h) => (T.impl = h, d)), O(w ? () => d : d), m.add(d), d;\n}\nfunction W(e, t, n) {\n let o = E(e, t, n);\n return v(o), [\"restore\", \"getOriginal\", \"willCall\"].forEach((r) => {\n l(o, r, o[y][r]);\n }), o;\n}\n\n// src/restoreAll.ts\nfunction Z() {\n for (let e of m)\n e.restore();\n m.clear();\n}\nexport {\n I as createInternalSpy,\n A as getInternalState,\n E as internalSpyOn,\n Z as restoreAll,\n m as spies,\n z as spy,\n W as spyOn\n};\n","import * as tinyspy from 'tinyspy';\n\nconst spies = /* @__PURE__ */ new Set();\nfunction isMockFunction(fn2) {\n return typeof fn2 === \"function\" && \"_isMockFunction\" in fn2 && fn2._isMockFunction;\n}\nfunction spyOn(obj, method, accessType) {\n const dictionary = {\n get: \"getter\",\n set: \"setter\"\n };\n const objMethod = accessType ? { [dictionary[accessType]]: method } : method;\n const stub = tinyspy.internalSpyOn(obj, objMethod);\n return enhanceSpy(stub);\n}\nlet callOrder = 0;\nfunction enhanceSpy(spy) {\n const stub = spy;\n let implementation;\n let instances = [];\n let invocations = [];\n const state = tinyspy.getInternalState(spy);\n const mockContext = {\n get calls() {\n return state.calls;\n },\n get instances() {\n return instances;\n },\n get invocationCallOrder() {\n return invocations;\n },\n get results() {\n return state.results.map(([callType, value]) => {\n const type = callType === \"error\" ? \"throw\" : \"return\";\n return { type, value };\n });\n },\n get lastCall() {\n return state.calls[state.calls.length - 1];\n }\n };\n let onceImplementations = [];\n let implementationChangedTemporarily = false;\n let name = stub.name;\n stub.getMockName = () => name || \"vi.fn()\";\n stub.mockName = (n) => {\n name = n;\n return stub;\n };\n stub.mockClear = () => {\n state.reset();\n instances = [];\n invocations = [];\n return stub;\n };\n stub.mockReset = () => {\n stub.mockClear();\n implementation = () => void 0;\n onceImplementations = [];\n return stub;\n };\n stub.mockRestore = () => {\n stub.mockReset();\n implementation = void 0;\n return stub;\n };\n stub.getMockImplementation = () => implementation;\n stub.mockImplementation = (fn2) => {\n implementation = fn2;\n return stub;\n };\n stub.mockImplementationOnce = (fn2) => {\n onceImplementations.push(fn2);\n return stub;\n };\n function withImplementation(fn2, cb) {\n const originalImplementation = implementation;\n implementation = fn2;\n implementationChangedTemporarily = true;\n const reset = () => {\n implementation = originalImplementation;\n implementationChangedTemporarily = false;\n };\n const result = cb();\n if (result instanceof Promise) {\n return result.then(() => {\n reset();\n return stub;\n });\n }\n reset();\n return stub;\n }\n stub.withImplementation = withImplementation;\n stub.mockReturnThis = () => stub.mockImplementation(function() {\n return this;\n });\n stub.mockReturnValue = (val) => stub.mockImplementation(() => val);\n stub.mockReturnValueOnce = (val) => stub.mockImplementationOnce(() => val);\n stub.mockResolvedValue = (val) => stub.mockImplementation(() => Promise.resolve(val));\n stub.mockResolvedValueOnce = (val) => stub.mockImplementationOnce(() => Promise.resolve(val));\n stub.mockRejectedValue = (val) => stub.mockImplementation(() => Promise.reject(val));\n stub.mockRejectedValueOnce = (val) => stub.mockImplementationOnce(() => Promise.reject(val));\n Object.defineProperty(stub, \"mock\", {\n get: () => mockContext\n });\n state.willCall(function(...args) {\n instances.push(this);\n invocations.push(++callOrder);\n const impl = implementationChangedTemporarily ? implementation : onceImplementations.shift() || implementation || state.getOriginal() || (() => {\n });\n return impl.apply(this, args);\n });\n spies.add(stub);\n return stub;\n}\nfunction fn(implementation) {\n return enhanceSpy(tinyspy.internalSpyOn({ fn: implementation || (() => {\n }) }, \"fn\"));\n}\n\nexport { fn, isMockFunction, spies, spyOn };\n","import { getColors, stringify, isObject, assertTypes } from '@vitest/utils';\nexport { setupColors } from '@vitest/utils';\nimport { unifiedDiff } from '@vitest/utils/diff';\nimport { AssertionError, util } from 'chai';\nimport { isMockFunction } from '@vitest/spy';\n\nconst MATCHERS_OBJECT = Symbol.for(\"matchers-object\");\nconst JEST_MATCHERS_OBJECT = Symbol.for(\"$$jest-matchers-object\");\nconst GLOBAL_EXPECT = Symbol.for(\"expect-global\");\n\nif (!Object.prototype.hasOwnProperty.call(globalThis, MATCHERS_OBJECT)) {\n const globalState = /* @__PURE__ */ new WeakMap();\n const matchers = /* @__PURE__ */ Object.create(null);\n Object.defineProperty(globalThis, MATCHERS_OBJECT, {\n get: () => globalState\n });\n Object.defineProperty(globalThis, JEST_MATCHERS_OBJECT, {\n configurable: true,\n get: () => ({\n state: globalState.get(globalThis[GLOBAL_EXPECT]),\n matchers\n })\n });\n}\nfunction getState(expect) {\n return globalThis[MATCHERS_OBJECT].get(expect);\n}\nfunction setState(state, expect) {\n const map = globalThis[MATCHERS_OBJECT];\n const current = map.get(expect) || {};\n Object.assign(current, state);\n map.set(expect, current);\n}\n\nfunction getMatcherUtils() {\n const c = () => getColors();\n const EXPECTED_COLOR = c().green;\n const RECEIVED_COLOR = c().red;\n const INVERTED_COLOR = c().inverse;\n const BOLD_WEIGHT = c().bold;\n const DIM_COLOR = c().dim;\n function matcherHint(matcherName, received = \"received\", expected = \"expected\", options = {}) {\n const {\n comment = \"\",\n isDirectExpectCall = false,\n // seems redundant with received === ''\n isNot = false,\n promise = \"\",\n secondArgument = \"\",\n expectedColor = EXPECTED_COLOR,\n receivedColor = RECEIVED_COLOR,\n secondArgumentColor = EXPECTED_COLOR\n } = options;\n let hint = \"\";\n let dimString = \"expect\";\n if (!isDirectExpectCall && received !== \"\") {\n hint += DIM_COLOR(`${dimString}(`) + receivedColor(received);\n dimString = \")\";\n }\n if (promise !== \"\") {\n hint += DIM_COLOR(`${dimString}.`) + promise;\n dimString = \"\";\n }\n if (isNot) {\n hint += `${DIM_COLOR(`${dimString}.`)}not`;\n dimString = \"\";\n }\n if (matcherName.includes(\".\")) {\n dimString += matcherName;\n } else {\n hint += DIM_COLOR(`${dimString}.`) + matcherName;\n dimString = \"\";\n }\n if (expected === \"\") {\n dimString += \"()\";\n } else {\n hint += DIM_COLOR(`${dimString}(`) + expectedColor(expected);\n if (secondArgument)\n hint += DIM_COLOR(\", \") + secondArgumentColor(secondArgument);\n dimString = \")\";\n }\n if (comment !== \"\")\n dimString += ` // ${comment}`;\n if (dimString !== \"\")\n hint += DIM_COLOR(dimString);\n return hint;\n }\n const SPACE_SYMBOL = \"\\xB7\";\n const replaceTrailingSpaces = (text) => text.replace(/\\s+$/gm, (spaces) => SPACE_SYMBOL.repeat(spaces.length));\n const printReceived = (object) => RECEIVED_COLOR(replaceTrailingSpaces(stringify(object)));\n const printExpected = (value) => EXPECTED_COLOR(replaceTrailingSpaces(stringify(value)));\n return {\n EXPECTED_COLOR,\n RECEIVED_COLOR,\n INVERTED_COLOR,\n BOLD_WEIGHT,\n DIM_COLOR,\n matcherHint,\n printReceived,\n printExpected\n };\n}\nfunction diff(a, b, options) {\n return unifiedDiff(b, a, {\n showLegend: options == null ? void 0 : options.showLegend\n });\n}\n\nfunction equals(a, b, customTesters, strictCheck) {\n customTesters = customTesters || [];\n return eq(a, b, [], [], customTesters, strictCheck ? hasKey : hasDefinedKey);\n}\nconst functionToString = Function.prototype.toString;\nfunction isAsymmetric(obj) {\n return !!obj && typeof obj === \"object\" && \"asymmetricMatch\" in obj && isA(\"Function\", obj.asymmetricMatch);\n}\nfunction hasAsymmetric(obj, seen = /* @__PURE__ */ new Set()) {\n if (seen.has(obj))\n return false;\n seen.add(obj);\n if (isAsymmetric(obj))\n return true;\n if (Array.isArray(obj))\n return obj.some((i) => hasAsymmetric(i, seen));\n if (obj instanceof Set)\n return Array.from(obj).some((i) => hasAsymmetric(i, seen));\n if (isObject(obj))\n return Object.values(obj).some((v) => hasAsymmetric(v, seen));\n return false;\n}\nfunction asymmetricMatch(a, b) {\n const asymmetricA = isAsymmetric(a);\n const asymmetricB = isAsymmetric(b);\n if (asymmetricA && asymmetricB)\n return void 0;\n if (asymmetricA)\n return a.asymmetricMatch(b);\n if (asymmetricB)\n return b.asymmetricMatch(a);\n}\nfunction eq(a, b, aStack, bStack, customTesters, hasKey2) {\n let result = true;\n const asymmetricResult = asymmetricMatch(a, b);\n if (asymmetricResult !== void 0)\n return asymmetricResult;\n for (let i = 0; i < customTesters.length; i++) {\n const customTesterResult = customTesters[i](a, b);\n if (customTesterResult !== void 0)\n return customTesterResult;\n }\n if (a instanceof Error && b instanceof Error)\n return a.message === b.message;\n if (Object.is(a, b))\n return true;\n if (a === null || b === null)\n return a === b;\n const className = Object.prototype.toString.call(a);\n if (className !== Object.prototype.toString.call(b))\n return false;\n switch (className) {\n case \"[object Boolean]\":\n case \"[object String]\":\n case \"[object Number]\":\n if (typeof a !== typeof b) {\n return false;\n } else if (typeof a !== \"object\" && typeof b !== \"object\") {\n return Object.is(a, b);\n } else {\n return Object.is(a.valueOf(), b.valueOf());\n }\n case \"[object Date]\":\n return isNaN(a) && isNaN(b) || +a === +b;\n case \"[object RegExp]\":\n return a.source === b.source && a.flags === b.flags;\n }\n if (typeof a !== \"object\" || typeof b !== \"object\")\n return false;\n if (isDomNode(a) && isDomNode(b))\n return a.isEqualNode(b);\n let length = aStack.length;\n while (length--) {\n if (aStack[length] === a)\n return bStack[length] === b;\n else if (bStack[length] === b)\n return false;\n }\n aStack.push(a);\n bStack.push(b);\n if (className === \"[object Array]\" && a.length !== b.length)\n return false;\n const aKeys = keys(a, hasKey2);\n let key;\n let size = aKeys.length;\n if (keys(b, hasKey2).length !== size)\n return false;\n while (size--) {\n key = aKeys[size];\n result = hasKey2(b, key) && eq(a[key], b[key], aStack, bStack, customTesters, hasKey2);\n if (!result)\n return false;\n }\n aStack.pop();\n bStack.pop();\n return result;\n}\nfunction keys(obj, hasKey2) {\n const keys2 = [];\n for (const key in obj) {\n if (hasKey2(obj, key))\n keys2.push(key);\n }\n return keys2.concat(\n Object.getOwnPropertySymbols(obj).filter(\n (symbol) => Object.getOwnPropertyDescriptor(obj, symbol).enumerable\n )\n );\n}\nfunction hasDefinedKey(obj, key) {\n return hasKey(obj, key) && obj[key] !== void 0;\n}\nfunction hasKey(obj, key) {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\nfunction isA(typeName, value) {\n return Object.prototype.toString.apply(value) === `[object ${typeName}]`;\n}\nfunction isDomNode(obj) {\n return obj !== null && typeof obj === \"object\" && typeof obj.nodeType === \"number\" && typeof obj.nodeName === \"string\" && typeof obj.isEqualNode === \"function\";\n}\nfunction fnNameFor(func) {\n if (func.name)\n return func.name;\n const matches = functionToString.call(func).match(/^(?:async)?\\s*function\\s*\\*?\\s*([\\w$]+)\\s*\\(/);\n return matches ? matches[1] : \"\";\n}\nfunction getPrototype(obj) {\n if (Object.getPrototypeOf)\n return Object.getPrototypeOf(obj);\n if (obj.constructor.prototype === obj)\n return null;\n return obj.constructor.prototype;\n}\nfunction hasProperty(obj, property) {\n if (!obj)\n return false;\n if (Object.prototype.hasOwnProperty.call(obj, property))\n return true;\n return hasProperty(getPrototype(obj), property);\n}\nconst IS_KEYED_SENTINEL = \"@@__IMMUTABLE_KEYED__@@\";\nconst IS_SET_SENTINEL = \"@@__IMMUTABLE_SET__@@\";\nconst IS_ORDERED_SENTINEL = \"@@__IMMUTABLE_ORDERED__@@\";\nfunction isImmutableUnorderedKeyed(maybeKeyed) {\n return !!(maybeKeyed && maybeKeyed[IS_KEYED_SENTINEL] && !maybeKeyed[IS_ORDERED_SENTINEL]);\n}\nfunction isImmutableUnorderedSet(maybeSet) {\n return !!(maybeSet && maybeSet[IS_SET_SENTINEL] && !maybeSet[IS_ORDERED_SENTINEL]);\n}\nconst IteratorSymbol = Symbol.iterator;\nfunction hasIterator(object) {\n return !!(object != null && object[IteratorSymbol]);\n}\nfunction iterableEquality(a, b, aStack = [], bStack = []) {\n if (typeof a !== \"object\" || typeof b !== \"object\" || Array.isArray(a) || Array.isArray(b) || !hasIterator(a) || !hasIterator(b))\n return void 0;\n if (a.constructor !== b.constructor)\n return false;\n let length = aStack.length;\n while (length--) {\n if (aStack[length] === a)\n return bStack[length] === b;\n }\n aStack.push(a);\n bStack.push(b);\n const iterableEqualityWithStack = (a2, b2) => iterableEquality(a2, b2, [...aStack], [...bStack]);\n if (a.size !== void 0) {\n if (a.size !== b.size) {\n return false;\n } else if (isA(\"Set\", a) || isImmutableUnorderedSet(a)) {\n let allFound = true;\n for (const aValue of a) {\n if (!b.has(aValue)) {\n let has = false;\n for (const bValue of b) {\n const isEqual = equals(aValue, bValue, [iterableEqualityWithStack]);\n if (isEqual === true)\n has = true;\n }\n if (has === false) {\n allFound = false;\n break;\n }\n }\n }\n aStack.pop();\n bStack.pop();\n return allFound;\n } else if (isA(\"Map\", a) || isImmutableUnorderedKeyed(a)) {\n let allFound = true;\n for (const aEntry of a) {\n if (!b.has(aEntry[0]) || !equals(aEntry[1], b.get(aEntry[0]), [iterableEqualityWithStack])) {\n let has = false;\n for (const bEntry of b) {\n const matchedKey = equals(aEntry[0], bEntry[0], [\n iterableEqualityWithStack\n ]);\n let matchedValue = false;\n if (matchedKey === true) {\n matchedValue = equals(aEntry[1], bEntry[1], [\n iterableEqualityWithStack\n ]);\n }\n if (matchedValue === true)\n has = true;\n }\n if (has === false) {\n allFound = false;\n break;\n }\n }\n }\n aStack.pop();\n bStack.pop();\n return allFound;\n }\n }\n const bIterator = b[IteratorSymbol]();\n for (const aValue of a) {\n const nextB = bIterator.next();\n if (nextB.done || !equals(aValue, nextB.value, [iterableEqualityWithStack]))\n return false;\n }\n if (!bIterator.next().done)\n return false;\n aStack.pop();\n bStack.pop();\n return true;\n}\nfunction hasPropertyInObject(object, key) {\n const shouldTerminate = !object || typeof object !== \"object\" || object === Object.prototype;\n if (shouldTerminate)\n return false;\n return Object.prototype.hasOwnProperty.call(object, key) || hasPropertyInObject(Object.getPrototypeOf(object), key);\n}\nfunction isObjectWithKeys(a) {\n return isObject(a) && !(a instanceof Error) && !Array.isArray(a) && !(a instanceof Date);\n}\nfunction subsetEquality(object, subset) {\n const subsetEqualityWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => (object2, subset2) => {\n if (!isObjectWithKeys(subset2))\n return void 0;\n return Object.keys(subset2).every((key) => {\n if (isObjectWithKeys(subset2[key])) {\n if (seenReferences.has(subset2[key]))\n return equals(object2[key], subset2[key], [iterableEquality]);\n seenReferences.set(subset2[key], true);\n }\n const result = object2 != null && hasPropertyInObject(object2, key) && equals(object2[key], subset2[key], [\n iterableEquality,\n subsetEqualityWithContext(seenReferences)\n ]);\n seenReferences.delete(subset2[key]);\n return result;\n });\n };\n return subsetEqualityWithContext()(object, subset);\n}\nfunction typeEquality(a, b) {\n if (a == null || b == null || a.constructor === b.constructor)\n return void 0;\n return false;\n}\nfunction arrayBufferEquality(a, b) {\n if (!(a instanceof ArrayBuffer) || !(b instanceof ArrayBuffer))\n return void 0;\n const dataViewA = new DataView(a);\n const dataViewB = new DataView(b);\n if (dataViewA.byteLength !== dataViewB.byteLength)\n return false;\n for (let i = 0; i < dataViewA.byteLength; i++) {\n if (dataViewA.getUint8(i) !== dataViewB.getUint8(i))\n return false;\n }\n return true;\n}\nfunction sparseArrayEquality(a, b) {\n if (!Array.isArray(a) || !Array.isArray(b))\n return void 0;\n const aKeys = Object.keys(a);\n const bKeys = Object.keys(b);\n return equals(a, b, [iterableEquality, typeEquality], true) && equals(aKeys, bKeys);\n}\nfunction generateToBeMessage(deepEqualityName, expected = \"#{this}\", actual = \"#{exp}\") {\n const toBeMessage = `expected ${expected} to be ${actual} // Object.is equality`;\n if ([\"toStrictEqual\", \"toEqual\"].includes(deepEqualityName))\n return `${toBeMessage}\n\nIf it should pass with deep equality, replace \"toBe\" with \"${deepEqualityName}\"\n\nExpected: ${expected}\nReceived: serializes to the same string\n`;\n return toBeMessage;\n}\n\nclass AsymmetricMatcher {\n constructor(sample, inverse = false) {\n this.sample = sample;\n this.inverse = inverse;\n // should have \"jest\" to be compatible with its ecosystem\n this.$$typeof = Symbol.for(\"jest.asymmetricMatcher\");\n }\n getMatcherContext(expect) {\n return {\n ...getState(expect || globalThis[GLOBAL_EXPECT]),\n equals,\n isNot: this.inverse,\n utils: {\n ...getMatcherUtils(),\n diff,\n stringify,\n iterableEquality,\n subsetEquality\n }\n };\n }\n}\nclass StringContaining extends AsymmetricMatcher {\n constructor(sample, inverse = false) {\n if (!isA(\"String\", sample))\n throw new Error(\"Expected is not a string\");\n super(sample, inverse);\n }\n asymmetricMatch(other) {\n const result = isA(\"String\", other) && other.includes(this.sample);\n return this.inverse ? !result : result;\n }\n toString() {\n return `String${this.inverse ? \"Not\" : \"\"}Containing`;\n }\n getExpectedType() {\n return \"string\";\n }\n}\nclass Anything extends AsymmetricMatcher {\n asymmetricMatch(other) {\n return other != null;\n }\n toString() {\n return \"Anything\";\n }\n toAsymmetricMatcher() {\n return \"Anything\";\n }\n}\nclass ObjectContaining extends AsymmetricMatcher {\n constructor(sample, inverse = false) {\n super(sample, inverse);\n }\n getPrototype(obj) {\n if (Object.getPrototypeOf)\n return Object.getPrototypeOf(obj);\n if (obj.constructor.prototype === obj)\n return null;\n return obj.constructor.prototype;\n }\n hasProperty(obj, property) {\n if (!obj)\n return false;\n if (Object.prototype.hasOwnProperty.call(obj, property))\n return true;\n return this.hasProperty(this.getPrototype(obj), property);\n }\n asymmetricMatch(other) {\n if (typeof this.sample !== \"object\") {\n throw new TypeError(\n `You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`\n );\n }\n let result = true;\n for (const property in this.sample) {\n if (!this.hasProperty(other, property) || !equals(this.sample[property], other[property])) {\n result = false;\n break;\n }\n }\n return this.inverse ? !result : result;\n }\n toString() {\n return `Object${this.inverse ? \"Not\" : \"\"}Containing`;\n }\n getExpectedType() {\n return \"object\";\n }\n}\nclass ArrayContaining extends AsymmetricMatcher {\n constructor(sample, inverse = false) {\n super(sample, inverse);\n }\n asymmetricMatch(other) {\n if (!Array.isArray(this.sample)) {\n throw new TypeError(\n `You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`\n );\n }\n const result = this.sample.length === 0 || Array.isArray(other) && this.sample.every(\n (item) => other.some((another) => equals(item, another))\n );\n return this.inverse ? !result : result;\n }\n toString() {\n return `Array${this.inverse ? \"Not\" : \"\"}Containing`;\n }\n getExpectedType() {\n return \"array\";\n }\n}\nclass Any extends AsymmetricMatcher {\n constructor(sample) {\n if (typeof sample === \"undefined\") {\n throw new TypeError(\n \"any() expects to be passed a constructor function. Please pass one or use anything() to match any object.\"\n );\n }\n super(sample);\n }\n fnNameFor(func) {\n if (func.name)\n return func.name;\n const functionToString = Function.prototype.toString;\n const matches = functionToString.call(func).match(/^(?:async)?\\s*function\\s*\\*?\\s*([\\w$]+)\\s*\\(/);\n return matches ? matches[1] : \"\";\n }\n asymmetricMatch(other) {\n if (this.sample === String)\n return typeof other == \"string\" || other instanceof String;\n if (this.sample === Number)\n return typeof other == \"number\" || other instanceof Number;\n if (this.sample === Function)\n return typeof other == \"function\" || other instanceof Function;\n if (this.sample === Boolean)\n return typeof other == \"boolean\" || other instanceof Boolean;\n if (this.sample === BigInt)\n return typeof other == \"bigint\" || other instanceof BigInt;\n if (this.sample === Symbol)\n return typeof other == \"symbol\" || other instanceof Symbol;\n if (this.sample === Object)\n return typeof other == \"object\";\n return other instanceof this.sample;\n }\n toString() {\n return \"Any\";\n }\n getExpectedType() {\n if (this.sample === String)\n return \"string\";\n if (this.sample === Number)\n return \"number\";\n if (this.sample === Function)\n return \"function\";\n if (this.sample === Object)\n return \"object\";\n if (this.sample === Boolean)\n return \"boolean\";\n return this.fnNameFor(this.sample);\n }\n toAsymmetricMatcher() {\n return `Any<${this.fnNameFor(this.sample)}>`;\n }\n}\nclass StringMatching extends AsymmetricMatcher {\n constructor(sample, inverse = false) {\n if (!isA(\"String\", sample) && !isA(\"RegExp\", sample))\n throw new Error(\"Expected is not a String or a RegExp\");\n super(new RegExp(sample), inverse);\n }\n asymmetricMatch(other) {\n const result = isA(\"String\", other) && this.sample.test(other);\n return this.inverse ? !result : result;\n }\n toString() {\n return `String${this.inverse ? \"Not\" : \"\"}Matching`;\n }\n getExpectedType() {\n return \"string\";\n }\n}\nconst JestAsymmetricMatchers = (chai, utils) => {\n utils.addMethod(\n chai.expect,\n \"anything\",\n () => new Anything()\n );\n utils.addMethod(\n chai.expect,\n \"any\",\n (expected) => new Any(expected)\n );\n utils.addMethod(\n chai.expect,\n \"stringContaining\",\n (expected) => new StringContaining(expected)\n );\n utils.addMethod(\n chai.expect,\n \"objectContaining\",\n (expected) => new ObjectContaining(expected)\n );\n utils.addMethod(\n chai.expect,\n \"arrayContaining\",\n (expected) => new ArrayContaining(expected)\n );\n utils.addMethod(\n chai.expect,\n \"stringMatching\",\n (expected) => new StringMatching(expected)\n );\n chai.expect.not = {\n stringContaining: (expected) => new StringContaining(expected, true),\n objectContaining: (expected) => new ObjectContaining(expected, true),\n arrayContaining: (expected) => new ArrayContaining(expected, true),\n stringMatching: (expected) => new StringMatching(expected, true)\n };\n};\n\nfunction recordAsyncExpect(test, promise) {\n if (test) {\n promise = promise.finally(() => {\n const index = test.promises.indexOf(promise);\n if (index !== -1)\n test.promises.splice(index, 1);\n });\n if (!test.promises)\n test.promises = [];\n test.promises.push(promise);\n }\n return promise;\n}\n\nconst JestChaiExpect = (chai, utils) => {\n const c = () => getColors();\n function def(name, fn) {\n const addMethod = (n) => {\n utils.addMethod(chai.Assertion.prototype, n, fn);\n utils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers, n, fn);\n };\n if (Array.isArray(name))\n name.forEach((n) => addMethod(n));\n else\n addMethod(name);\n }\n [\"throw\", \"throws\", \"Throw\"].forEach((m) => {\n utils.overwriteMethod(chai.Assertion.prototype, m, (_super) => {\n return function(...args) {\n const promise = utils.flag(this, \"promise\");\n const object = utils.flag(this, \"object\");\n const isNot = utils.flag(this, \"negate\");\n if (promise === \"rejects\") {\n utils.flag(this, \"object\", () => {\n throw object;\n });\n } else if (promise === \"resolves\" && typeof object !== \"function\") {\n if (!isNot) {\n const message = utils.flag(this, \"message\") || \"expected promise to throw an error, but it didn't\";\n const error = {\n showDiff: false\n };\n throw new AssertionError(message, error, utils.flag(this, \"ssfi\"));\n } else {\n return;\n }\n }\n _super.apply(this, args);\n };\n });\n });\n def(\"withTest\", function(test) {\n utils.flag(this, \"vitest-test\", test);\n return this;\n });\n def(\"toEqual\", function(expected) {\n const actual = utils.flag(this, \"object\");\n const equal = equals(\n actual,\n expected,\n [iterableEquality]\n );\n return this.assert(\n equal,\n \"expected #{this} to deeply equal #{exp}\",\n \"expected #{this} to not deeply equal #{exp}\",\n expected,\n actual\n );\n });\n def(\"toStrictEqual\", function(expected) {\n const obj = utils.flag(this, \"object\");\n const equal = equals(\n obj,\n expected,\n [\n iterableEquality,\n typeEquality,\n sparseArrayEquality,\n arrayBufferEquality\n ],\n true\n );\n return this.assert(\n equal,\n \"expected #{this} to strictly equal #{exp}\",\n \"expected #{this} to not strictly equal #{exp}\",\n expected,\n obj\n );\n });\n def(\"toBe\", function(expected) {\n const actual = this._obj;\n const pass = Object.is(actual, expected);\n let deepEqualityName = \"\";\n if (!pass) {\n const toStrictEqualPass = equals(\n actual,\n expected,\n [\n iterableEquality,\n typeEquality,\n sparseArrayEquality,\n arrayBufferEquality\n ],\n true\n );\n if (toStrictEqualPass) {\n deepEqualityName = \"toStrictEqual\";\n } else {\n const toEqualPass = equals(\n actual,\n expected,\n [iterableEquality]\n );\n if (toEqualPass)\n deepEqualityName = \"toEqual\";\n }\n }\n return this.assert(\n pass,\n generateToBeMessage(deepEqualityName),\n \"expected #{this} not to be #{exp} // Object.is equality\",\n expected,\n actual\n );\n });\n def(\"toMatchObject\", function(expected) {\n const actual = this._obj;\n return this.assert(\n equals(actual, expected, [iterableEquality, subsetEquality]),\n \"expected #{this} to match object #{exp}\",\n \"expected #{this} to not match object #{exp}\",\n expected,\n actual\n );\n });\n def(\"toMatch\", function(expected) {\n if (typeof expected === \"string\")\n return this.include(expected);\n else\n return this.match(expected);\n });\n def(\"toContain\", function(item) {\n return this.contain(item);\n });\n def(\"toContainEqual\", function(expected) {\n const obj = utils.flag(this, \"object\");\n const index = Array.from(obj).findIndex((item) => {\n return equals(item, expected);\n });\n this.assert(\n index !== -1,\n \"expected #{this} to deep equally contain #{exp}\",\n \"expected #{this} to not deep equally contain #{exp}\",\n expected\n );\n });\n def(\"toBeTruthy\", function() {\n const obj = utils.flag(this, \"object\");\n this.assert(\n Boolean(obj),\n \"expected #{this} to be truthy\",\n \"expected #{this} to not be truthy\",\n obj\n );\n });\n def(\"toBeFalsy\", function() {\n const obj = utils.flag(this, \"object\");\n this.assert(\n !obj,\n \"expected #{this} to be falsy\",\n \"expected #{this} to not be falsy\",\n obj\n );\n });\n def(\"toBeGreaterThan\", function(expected) {\n const actual = this._obj;\n assertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n assertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n return this.assert(\n actual > expected,\n `expected ${actual} to be greater than ${expected}`,\n `expected ${actual} to be not greater than ${expected}`,\n actual,\n expected\n );\n });\n def(\"toBeGreaterThanOrEqual\", function(expected) {\n const actual = this._obj;\n assertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n assertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n return this.assert(\n actual >= expected,\n `expected ${actual} to be greater than or equal to ${expected}`,\n `expected ${actual} to be not greater than or equal to ${expected}`,\n actual,\n expected\n );\n });\n def(\"toBeLessThan\", function(expected) {\n const actual = this._obj;\n assertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n assertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n return this.assert(\n actual < expected,\n `expected ${actual} to be less than ${expected}`,\n `expected ${actual} to be not less than ${expected}`,\n actual,\n expected\n );\n });\n def(\"toBeLessThanOrEqual\", function(expected) {\n const actual = this._obj;\n assertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n assertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n return this.assert(\n actual <= expected,\n `expected ${actual} to be less than or equal to ${expected}`,\n `expected ${actual} to be not less than or equal to ${expected}`,\n actual,\n expected\n );\n });\n def(\"toBeNaN\", function() {\n return this.be.NaN;\n });\n def(\"toBeUndefined\", function() {\n return this.be.undefined;\n });\n def(\"toBeNull\", function() {\n return this.be.null;\n });\n def(\"toBeDefined\", function() {\n const negate = utils.flag(this, \"negate\");\n utils.flag(this, \"negate\", false);\n if (negate)\n return this.be.undefined;\n return this.not.be.undefined;\n });\n def(\"toBeTypeOf\", function(expected) {\n const actual = typeof this._obj;\n const equal = expected === actual;\n return this.assert(\n equal,\n \"expected #{this} to be type of #{exp}\",\n \"expected #{this} not to be type of #{exp}\",\n expected,\n actual\n );\n });\n def(\"toBeInstanceOf\", function(obj) {\n return this.instanceOf(obj);\n });\n def(\"toHaveLength\", function(length) {\n return this.have.length(length);\n });\n def(\"toHaveProperty\", function(...args) {\n if (Array.isArray(args[0]))\n args[0] = args[0].map((key) => String(key).replace(/([.[\\]])/g, \"\\\\$1\")).join(\".\");\n const actual = this._obj;\n const [propertyName, expected] = args;\n const getValue = () => {\n const hasOwn = Object.prototype.hasOwnProperty.call(actual, propertyName);\n if (hasOwn)\n return { value: actual[propertyName], exists: true };\n return utils.getPathInfo(actual, propertyName);\n };\n const { value, exists } = getValue();\n const pass = exists && (args.length === 1 || equals(expected, value));\n const valueString = args.length === 1 ? \"\" : ` with value ${utils.objDisplay(expected)}`;\n return this.assert(\n pass,\n `expected #{this} to have property \"${propertyName}\"${valueString}`,\n `expected #{this} to not have property \"${propertyName}\"${valueString}`,\n actual\n );\n });\n def(\"toBeCloseTo\", function(received, precision = 2) {\n const expected = this._obj;\n let pass = false;\n let expectedDiff = 0;\n let receivedDiff = 0;\n if (received === Infinity && expected === Infinity) {\n pass = true;\n } else if (received === -Infinity && expected === -Infinity) {\n pass = true;\n } else {\n expectedDiff = 10 ** -precision / 2;\n receivedDiff = Math.abs(expected - received);\n pass = receivedDiff < expectedDiff;\n }\n return this.assert(\n pass,\n `expected #{this} to be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff}`,\n `expected #{this} to not be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff}`,\n received,\n expected\n );\n });\n const assertIsMock = (assertion) => {\n if (!isMockFunction(assertion._obj))\n throw new TypeError(`${utils.inspect(assertion._obj)} is not a spy or a call to a spy!`);\n };\n const getSpy = (assertion) => {\n assertIsMock(assertion);\n return assertion._obj;\n };\n const ordinalOf = (i) => {\n const j = i % 10;\n const k = i % 100;\n if (j === 1 && k !== 11)\n return `${i}st`;\n if (j === 2 && k !== 12)\n return `${i}nd`;\n if (j === 3 && k !== 13)\n return `${i}rd`;\n return `${i}th`;\n };\n const formatCalls = (spy, msg, actualCall) => {\n msg += c().gray(`\n\nReceived: \n${spy.mock.calls.map((callArg, i) => {\n let methodCall = c().bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call:\n\n`);\n if (actualCall)\n methodCall += diff(callArg, actualCall, { showLegend: false });\n else\n methodCall += stringify(callArg).split(\"\\n\").map((line) => ` ${line}`).join(\"\\n\");\n methodCall += \"\\n\";\n return methodCall;\n }).join(\"\\n\")}`);\n msg += c().gray(`\n\nNumber of calls: ${c().bold(spy.mock.calls.length)}\n`);\n return msg;\n };\n const formatReturns = (spy, msg, actualReturn) => {\n msg += c().gray(`\n\nReceived: \n${spy.mock.results.map((callReturn, i) => {\n let methodCall = c().bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call return:\n\n`);\n if (actualReturn)\n methodCall += diff(callReturn.value, actualReturn, { showLegend: false });\n else\n methodCall += stringify(callReturn).split(\"\\n\").map((line) => ` ${line}`).join(\"\\n\");\n methodCall += \"\\n\";\n return methodCall;\n }).join(\"\\n\")}`);\n msg += c().gray(`\n\nNumber of calls: ${c().bold(spy.mock.calls.length)}\n`);\n return msg;\n };\n def([\"toHaveBeenCalledTimes\", \"toBeCalledTimes\"], function(number) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const callCount = spy.mock.calls.length;\n return this.assert(\n callCount === number,\n `expected \"${spyName}\" to be called #{exp} times`,\n `expected \"${spyName}\" to not be called #{exp} times`,\n number,\n callCount\n );\n });\n def(\"toHaveBeenCalledOnce\", function() {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const callCount = spy.mock.calls.length;\n return this.assert(\n callCount === 1,\n `expected \"${spyName}\" to be called once`,\n `expected \"${spyName}\" to not be called once`,\n 1,\n callCount\n );\n });\n def([\"toHaveBeenCalled\", \"toBeCalled\"], function() {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const called = spy.mock.calls.length > 0;\n const isNot = utils.flag(this, \"negate\");\n let msg = utils.getMessage(\n this,\n [\n called,\n `expected \"${spyName}\" to be called at least once`,\n `expected \"${spyName}\" to not be called at all`,\n true,\n called\n ]\n );\n if (called && isNot)\n msg = formatCalls(spy, msg);\n if (called && isNot || !called && !isNot) {\n const err = new Error(msg);\n err.name = \"AssertionError\";\n throw err;\n }\n });\n def([\"toHaveBeenCalledWith\", \"toBeCalledWith\"], function(...args) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const pass = spy.mock.calls.some((callArg) => equals(callArg, args, [iterableEquality]));\n const isNot = utils.flag(this, \"negate\");\n let msg = utils.getMessage(\n this,\n [\n pass,\n `expected \"${spyName}\" to be called with arguments: #{exp}`,\n `expected \"${spyName}\" to not be called with arguments: #{exp}`,\n args\n ]\n );\n if (pass && isNot || !pass && !isNot) {\n msg = formatCalls(spy, msg, args);\n const err = new Error(msg);\n err.name = \"AssertionError\";\n throw err;\n }\n });\n def([\"toHaveBeenNthCalledWith\", \"nthCalledWith\"], function(times, ...args) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const nthCall = spy.mock.calls[times - 1];\n this.assert(\n equals(nthCall, args, [iterableEquality]),\n `expected ${ordinalOf(times)} \"${spyName}\" call to have been called with #{exp}`,\n `expected ${ordinalOf(times)} \"${spyName}\" call to not have been called with #{exp}`,\n args,\n nthCall\n );\n });\n def([\"toHaveBeenLastCalledWith\", \"lastCalledWith\"], function(...args) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const lastCall = spy.mock.calls[spy.mock.calls.length - 1];\n this.assert(\n equals(lastCall, args, [iterableEquality]),\n `expected last \"${spyName}\" call to have been called with #{exp}`,\n `expected last \"${spyName}\" call to not have been called with #{exp}`,\n args,\n lastCall\n );\n });\n def([\"toThrow\", \"toThrowError\"], function(expected) {\n if (typeof expected === \"string\" || typeof expected === \"undefined\" || expected instanceof RegExp)\n return this.throws(expected);\n const obj = this._obj;\n const promise = utils.flag(this, \"promise\");\n const isNot = utils.flag(this, \"negate\");\n let thrown = null;\n if (promise === \"rejects\") {\n thrown = obj;\n } else if (promise === \"resolves\" && typeof obj !== \"function\") {\n if (!isNot) {\n const message = utils.flag(this, \"message\") || \"expected promise to throw an error, but it didn't\";\n const error = {\n showDiff: false\n };\n throw new AssertionError(message, error, utils.flag(this, \"ssfi\"));\n } else {\n return;\n }\n } else {\n try {\n obj();\n } catch (err) {\n thrown = err;\n }\n }\n if (typeof expected === \"function\") {\n const name = expected.name || expected.prototype.constructor.name;\n return this.assert(\n thrown && thrown instanceof expected,\n `expected error to be instance of ${name}`,\n `expected error not to be instance of ${name}`,\n expected,\n thrown\n );\n }\n if (expected instanceof Error) {\n return this.assert(\n thrown && expected.message === thrown.message,\n `expected error to have message: ${expected.message}`,\n `expected error not to have message: ${expected.message}`,\n expected.message,\n thrown && thrown.message\n );\n }\n if (typeof expected === \"object\" && \"asymmetricMatch\" in expected && typeof expected.asymmetricMatch === \"function\") {\n const matcher = expected;\n return this.assert(\n thrown && matcher.asymmetricMatch(thrown),\n \"expected error to match asymmetric matcher\",\n \"expected error not to match asymmetric matcher\",\n matcher.toString(),\n thrown\n );\n }\n throw new Error(`\"toThrow\" expects string, RegExp, function, Error instance or asymmetric matcher, got \"${typeof expected}\"`);\n });\n def([\"toHaveReturned\", \"toReturn\"], function() {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const calledAndNotThrew = spy.mock.calls.length > 0 && spy.mock.results.some(({ type }) => type !== \"throw\");\n this.assert(\n calledAndNotThrew,\n `expected \"${spyName}\" to be successfully called at least once`,\n `expected \"${spyName}\" to not be successfully called`,\n calledAndNotThrew,\n !calledAndNotThrew\n );\n });\n def([\"toHaveReturnedTimes\", \"toReturnTimes\"], function(times) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const successfulReturns = spy.mock.results.reduce((success, { type }) => type === \"throw\" ? success : ++success, 0);\n this.assert(\n successfulReturns === times,\n `expected \"${spyName}\" to be successfully called ${times} times`,\n `expected \"${spyName}\" to not be successfully called ${times} times`,\n `expected number of returns: ${times}`,\n `received number of returns: ${successfulReturns}`\n );\n });\n def([\"toHaveReturnedWith\", \"toReturnWith\"], function(value) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const pass = spy.mock.results.some(({ type, value: result }) => type === \"return\" && equals(value, result));\n const isNot = utils.flag(this, \"negate\");\n let msg = utils.getMessage(\n this,\n [\n pass,\n `expected \"${spyName}\" to return with: #{exp} at least once`,\n `expected \"${spyName}\" to not return with: #{exp}`,\n value\n ]\n );\n if (pass && isNot || !pass && !isNot) {\n msg = formatReturns(spy, msg, value);\n const err = new Error(msg);\n err.name = \"AssertionError\";\n throw err;\n }\n });\n def([\"toHaveLastReturnedWith\", \"lastReturnedWith\"], function(value) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const { value: lastResult } = spy.mock.results[spy.mock.results.length - 1];\n const pass = equals(lastResult, value);\n this.assert(\n pass,\n `expected last \"${spyName}\" call to return #{exp}`,\n `expected last \"${spyName}\" call to not return #{exp}`,\n value,\n lastResult\n );\n });\n def([\"toHaveNthReturnedWith\", \"nthReturnedWith\"], function(nthCall, value) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const isNot = utils.flag(this, \"negate\");\n const { type: callType, value: callResult } = spy.mock.results[nthCall - 1];\n const ordinalCall = `${ordinalOf(nthCall)} call`;\n if (!isNot && callType === \"throw\")\n chai.assert.fail(`expected ${ordinalCall} to return #{exp}, but instead it threw an error`);\n const nthCallReturn = equals(callResult, value);\n this.assert(\n nthCallReturn,\n `expected ${ordinalCall} \"${spyName}\" call to return #{exp}`,\n `expected ${ordinalCall} \"${spyName}\" call to not return #{exp}`,\n value,\n callResult\n );\n });\n def(\"toSatisfy\", function(matcher, message) {\n return this.be.satisfy(matcher, message);\n });\n utils.addProperty(chai.Assertion.prototype, \"resolves\", function __VITEST_RESOLVES__() {\n utils.flag(this, \"promise\", \"resolves\");\n utils.flag(this, \"error\", new Error(\"resolves\"));\n const test = utils.flag(this, \"vitest-test\");\n const obj = utils.flag(this, \"object\");\n if (typeof (obj == null ? void 0 : obj.then) !== \"function\")\n throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof obj}'.`);\n const proxy = new Proxy(this, {\n get: (target, key, receiver) => {\n const result = Reflect.get(target, key, receiver);\n if (typeof result !== \"function\")\n return result instanceof chai.Assertion ? proxy : result;\n return async (...args) => {\n const promise = obj.then(\n (value) => {\n utils.flag(this, \"object\", value);\n return result.call(this, ...args);\n },\n (err) => {\n throw new Error(`promise rejected \"${String(err)}\" instead of resolving`);\n }\n );\n return recordAsyncExpect(test, promise);\n };\n }\n });\n return proxy;\n });\n utils.addProperty(chai.Assertion.prototype, \"rejects\", function __VITEST_REJECTS__() {\n utils.flag(this, \"promise\", \"rejects\");\n utils.flag(this, \"error\", new Error(\"rejects\"));\n const test = utils.flag(this, \"vitest-test\");\n const obj = utils.flag(this, \"object\");\n const wrapper = typeof obj === \"function\" ? obj() : obj;\n if (typeof (wrapper == null ? void 0 : wrapper.then) !== \"function\")\n throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof wrapper}'.`);\n const proxy = new Proxy(this, {\n get: (target, key, receiver) => {\n const result = Reflect.get(target, key, receiver);\n if (typeof result !== \"function\")\n return result instanceof chai.Assertion ? proxy : result;\n return async (...args) => {\n const promise = wrapper.then(\n (value) => {\n throw new Error(`promise resolved \"${String(value)}\" instead of rejecting`);\n },\n (err) => {\n utils.flag(this, \"object\", err);\n return result.call(this, ...args);\n }\n );\n return recordAsyncExpect(test, promise);\n };\n }\n });\n return proxy;\n });\n};\n\nfunction getMatcherState(assertion, expect) {\n const obj = assertion._obj;\n const isNot = util.flag(assertion, \"negate\");\n const promise = util.flag(assertion, \"promise\") || \"\";\n const jestUtils = {\n ...getMatcherUtils(),\n diff,\n stringify,\n iterableEquality,\n subsetEquality\n };\n const matcherState = {\n ...getState(expect),\n isNot,\n utils: jestUtils,\n promise,\n equals,\n // needed for built-in jest-snapshots, but we don't use it\n suppressedErrors: []\n };\n return {\n state: matcherState,\n isNot,\n obj\n };\n}\nclass JestExtendError extends Error {\n constructor(message, actual, expected) {\n super(message);\n this.actual = actual;\n this.expected = expected;\n }\n}\nfunction JestExtendPlugin(expect, matchers) {\n return (c, utils) => {\n Object.entries(matchers).forEach(([expectAssertionName, expectAssertion]) => {\n function expectWrapper(...args) {\n const { state, isNot, obj } = getMatcherState(this, expect);\n const result = expectAssertion.call(state, obj, ...args);\n if (result && typeof result === \"object\" && result instanceof Promise) {\n return result.then(({ pass: pass2, message: message2, actual: actual2, expected: expected2 }) => {\n if (pass2 && isNot || !pass2 && !isNot)\n throw new JestExtendError(message2(), actual2, expected2);\n });\n }\n const { pass, message, actual, expected } = result;\n if (pass && isNot || !pass && !isNot)\n throw new JestExtendError(message(), actual, expected);\n }\n utils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers, expectAssertionName, expectWrapper);\n utils.addMethod(c.Assertion.prototype, expectAssertionName, expectWrapper);\n class CustomMatcher extends AsymmetricMatcher {\n constructor(inverse = false, ...sample) {\n super(sample, inverse);\n }\n asymmetricMatch(other) {\n const { pass } = expectAssertion.call(\n this.getMatcherContext(expect),\n other,\n ...this.sample\n );\n return this.inverse ? !pass : pass;\n }\n toString() {\n return `${this.inverse ? \"not.\" : \"\"}${expectAssertionName}`;\n }\n getExpectedType() {\n return \"any\";\n }\n toAsymmetricMatcher() {\n return `${this.toString()}<${this.sample.map(String).join(\", \")}>`;\n }\n }\n Object.defineProperty(expect, expectAssertionName, {\n configurable: true,\n enumerable: true,\n value: (...sample) => new CustomMatcher(false, ...sample),\n writable: true\n });\n Object.defineProperty(expect.not, expectAssertionName, {\n configurable: true,\n enumerable: true,\n value: (...sample) => new CustomMatcher(true, ...sample),\n writable: true\n });\n });\n };\n}\nconst JestExtend = (chai, utils) => {\n utils.addMethod(chai.expect, \"extend\", (expect, expects) => {\n chai.use(JestExtendPlugin(expect, expects));\n });\n};\n\nexport { Any, Anything, ArrayContaining, AsymmetricMatcher, GLOBAL_EXPECT, JEST_MATCHERS_OBJECT, JestAsymmetricMatchers, JestChaiExpect, JestExtend, MATCHERS_OBJECT, ObjectContaining, StringContaining, StringMatching, arrayBufferEquality, equals, fnNameFor, generateToBeMessage, getState, hasAsymmetric, hasProperty, isA, isAsymmetric, isImmutableUnorderedKeyed, isImmutableUnorderedSet, iterableEquality, setState, sparseArrayEquality, subsetEquality, typeEquality };\n","import { join, dirname } from 'pathe';\nimport { plugins, format } from 'pretty-format';\nimport 'util';\n\nvar naturalCompare$1 = {exports: {}};\n\n/*\n * @version 1.4.0\n * @date 2015-10-26\n * @stability 3 - Stable\n * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)\n * @license MIT License\n */\n\n\nvar naturalCompare = function(a, b) {\n\tvar i, codeA\n\t, codeB = 1\n\t, posA = 0\n\t, posB = 0\n\t, alphabet = String.alphabet;\n\n\tfunction getCode(str, pos, code) {\n\t\tif (code) {\n\t\t\tfor (i = pos; code = getCode(str, i), code < 76 && code > 65;) ++i;\n\t\t\treturn +str.slice(pos - 1, i)\n\t\t}\n\t\tcode = alphabet && alphabet.indexOf(str.charAt(pos));\n\t\treturn code > -1 ? code + 76 : ((code = str.charCodeAt(pos) || 0), code < 45 || code > 127) ? code\n\t\t\t: code < 46 ? 65 // -\n\t\t\t: code < 48 ? code - 1\n\t\t\t: code < 58 ? code + 18 // 0-9\n\t\t\t: code < 65 ? code - 11\n\t\t\t: code < 91 ? code + 11 // A-Z\n\t\t\t: code < 97 ? code - 37\n\t\t\t: code < 123 ? code + 5 // a-z\n\t\t\t: code - 63\n\t}\n\n\n\tif ((a+=\"\") != (b+=\"\")) for (;codeB;) {\n\t\tcodeA = getCode(a, posA++);\n\t\tcodeB = getCode(b, posB++);\n\n\t\tif (codeA < 76 && codeB < 76 && codeA > 66 && codeB > 66) {\n\t\t\tcodeA = getCode(a, posA, posA);\n\t\t\tcodeB = getCode(b, posB, posA = i);\n\t\t\tposB = i;\n\t\t}\n\n\t\tif (codeA != codeB) return (codeA < codeB) ? -1 : 1\n\t}\n\treturn 0\n};\n\ntry {\n\tnaturalCompare$1.exports = naturalCompare;\n} catch (e) {\n\tString.naturalCompare = naturalCompare;\n}\n\nfunction notNullish(v) {\n return v != null;\n}\nfunction isPrimitive(value) {\n return value === null || typeof value !== \"function\" && typeof value !== \"object\";\n}\nfunction isObject(item) {\n return item != null && typeof item === \"object\" && !Array.isArray(item);\n}\nfunction getCallLastIndex(code) {\n let charIndex = -1;\n let inString = null;\n let startedBracers = 0;\n let endedBracers = 0;\n let beforeChar = null;\n while (charIndex <= code.length) {\n beforeChar = code[charIndex];\n charIndex++;\n const char = code[charIndex];\n const isCharString = char === '\"' || char === \"'\" || char === \"`\";\n if (isCharString && beforeChar !== \"\\\\\") {\n if (inString === char)\n inString = null;\n else if (!inString)\n inString = char;\n }\n if (!inString) {\n if (char === \"(\")\n startedBracers++;\n if (char === \")\")\n endedBracers++;\n }\n if (startedBracers && endedBracers && startedBracers === endedBracers)\n return charIndex;\n }\n return null;\n}\n\nlet getPromiseValue = () => 'Promise{…}';\ntry {\n const { getPromiseDetails, kPending, kRejected } = process.binding('util');\n if (Array.isArray(getPromiseDetails(Promise.resolve()))) {\n getPromiseValue = (value, options) => {\n const [state, innerValue] = getPromiseDetails(value);\n if (state === kPending) {\n return 'Promise{}'\n }\n return `Promise${state === kRejected ? '!' : ''}{${options.inspect(innerValue, options)}}`\n };\n }\n} catch (notNode) {\n /* ignore */\n}\n\n/* !\n * loupe\n * Copyright(c) 2013 Jake Luer \n * MIT Licensed\n */\nlet nodeInspect = false;\ntry {\n // eslint-disable-next-line global-require\n const nodeUtil = require('util');\n nodeInspect = nodeUtil.inspect ? nodeUtil.inspect.custom : false;\n} catch (noNodeInspect) {\n nodeInspect = false;\n}\n\nfunction normalizeWindowsPath(input = \"\") {\n if (!input || !input.includes(\"\\\\\")) {\n return input;\n }\n return input.replace(/\\\\/g, \"/\");\n}\nconst _IS_ABSOLUTE_RE = /^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^[A-Za-z]:[/\\\\]/;\nfunction cwd() {\n if (typeof process !== \"undefined\") {\n return process.cwd().replace(/\\\\/g, \"/\");\n }\n return \"/\";\n}\nconst resolve = function(...arguments_) {\n arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));\n let resolvedPath = \"\";\n let resolvedAbsolute = false;\n for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {\n const path = index >= 0 ? arguments_[index] : cwd();\n if (!path || path.length === 0) {\n continue;\n }\n resolvedPath = `${path}/${resolvedPath}`;\n resolvedAbsolute = isAbsolute(path);\n }\n resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);\n if (resolvedAbsolute && !isAbsolute(resolvedPath)) {\n return `/${resolvedPath}`;\n }\n return resolvedPath.length > 0 ? resolvedPath : \".\";\n};\nfunction normalizeString(path, allowAboveRoot) {\n let res = \"\";\n let lastSegmentLength = 0;\n let lastSlash = -1;\n let dots = 0;\n let char = null;\n for (let index = 0; index <= path.length; ++index) {\n if (index < path.length) {\n char = path[index];\n } else if (char === \"/\") {\n break;\n } else {\n char = \"/\";\n }\n if (char === \"/\") {\n if (lastSlash === index - 1 || dots === 1)\n ;\n else if (dots === 2) {\n if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== \".\" || res[res.length - 2] !== \".\") {\n if (res.length > 2) {\n const lastSlashIndex = res.lastIndexOf(\"/\");\n if (lastSlashIndex === -1) {\n res = \"\";\n lastSegmentLength = 0;\n } else {\n res = res.slice(0, lastSlashIndex);\n lastSegmentLength = res.length - 1 - res.lastIndexOf(\"/\");\n }\n lastSlash = index;\n dots = 0;\n continue;\n } else if (res.length > 0) {\n res = \"\";\n lastSegmentLength = 0;\n lastSlash = index;\n dots = 0;\n continue;\n }\n }\n if (allowAboveRoot) {\n res += res.length > 0 ? \"/..\" : \"..\";\n lastSegmentLength = 2;\n }\n } else {\n if (res.length > 0) {\n res += `/${path.slice(lastSlash + 1, index)}`;\n } else {\n res = path.slice(lastSlash + 1, index);\n }\n lastSegmentLength = index - lastSlash - 1;\n }\n lastSlash = index;\n dots = 0;\n } else if (char === \".\" && dots !== -1) {\n ++dots;\n } else {\n dots = -1;\n }\n }\n return res;\n}\nconst isAbsolute = function(p) {\n return _IS_ABSOLUTE_RE.test(p);\n};\nconst lineSplitRE = /\\r?\\n/;\nconst stackIgnorePatterns = [\n \"node:internal\",\n /\\/packages\\/\\w+\\/dist\\//,\n /\\/@vitest\\/\\w+\\/dist\\//,\n \"/vitest/dist/\",\n \"/vitest/src/\",\n \"/vite-node/dist/\",\n \"/vite-node/src/\",\n \"/node_modules/chai/\",\n \"/node_modules/tinypool/\",\n \"/node_modules/tinyspy/\"\n];\nfunction extractLocation(urlLike) {\n if (!urlLike.includes(\":\"))\n return [urlLike];\n const regExp = /(.+?)(?::(\\d+))?(?::(\\d+))?$/;\n const parts = regExp.exec(urlLike.replace(/[()]/g, \"\"));\n if (!parts)\n return [urlLike];\n return [parts[1], parts[2] || void 0, parts[3] || void 0];\n}\nfunction parseSingleStack(raw) {\n let line = raw.trim();\n if (line.includes(\"(eval \"))\n line = line.replace(/eval code/g, \"eval\").replace(/(\\(eval at [^()]*)|(,.*$)/g, \"\");\n let sanitizedLine = line.replace(/^\\s+/, \"\").replace(/\\(eval code/g, \"(\").replace(/^.*?\\s+/, \"\");\n const location = sanitizedLine.match(/ (\\(.+\\)$)/);\n sanitizedLine = location ? sanitizedLine.replace(location[0], \"\") : sanitizedLine;\n const [url, lineNumber, columnNumber] = extractLocation(location ? location[1] : sanitizedLine);\n let method = location && sanitizedLine || \"\";\n let file = url && [\"eval\", \"\"].includes(url) ? void 0 : url;\n if (!file || !lineNumber || !columnNumber)\n return null;\n if (method.startsWith(\"async \"))\n method = method.slice(6);\n if (file.startsWith(\"file://\"))\n file = file.slice(7);\n file = resolve(file);\n return {\n method,\n file,\n line: parseInt(lineNumber),\n column: parseInt(columnNumber)\n };\n}\nfunction parseStacktrace(stack, ignore = stackIgnorePatterns) {\n const stackFrames = stack.split(\"\\n\").map((raw) => {\n const stack2 = parseSingleStack(raw);\n if (!stack2 || ignore.length && ignore.some((p) => stack2.file.match(p)))\n return null;\n return stack2;\n }).filter(notNullish);\n return stackFrames;\n}\nfunction parseErrorStacktrace(e, ignore = stackIgnorePatterns) {\n if (!e || isPrimitive(e))\n return [];\n if (e.stacks)\n return e.stacks;\n const stackStr = e.stack || e.stackStr || \"\";\n const stackFrames = parseStacktrace(stackStr, ignore);\n e.stacks = stackFrames;\n return stackFrames;\n}\nfunction positionToOffset(source, lineNumber, columnNumber) {\n const lines = source.split(lineSplitRE);\n const nl = /\\r\\n/.test(source) ? 2 : 1;\n let start = 0;\n if (lineNumber > lines.length)\n return source.length;\n for (let i = 0; i < lineNumber - 1; i++)\n start += lines[i].length + nl;\n return start + columnNumber;\n}\nfunction offsetToLineNumber(source, offset) {\n if (offset > source.length) {\n throw new Error(\n `offset is longer than source length! offset ${offset} > length ${source.length}`\n );\n }\n const lines = source.split(lineSplitRE);\n const nl = /\\r\\n/.test(source) ? 2 : 1;\n let counted = 0;\n let line = 0;\n for (; line < lines.length; line++) {\n const lineLength = lines[line].length + nl;\n if (counted + lineLength >= offset)\n break;\n counted += lineLength;\n }\n return line + 1;\n}\n\nconst serialize$1 = (val, config, indentation, depth, refs, printer) => {\n const name = val.getMockName();\n const nameString = name === \"vi.fn()\" ? \"\" : ` ${name}`;\n let callsString = \"\";\n if (val.mock.calls.length !== 0) {\n const indentationNext = indentation + config.indent;\n callsString = ` {${config.spacingOuter}${indentationNext}\"calls\": ${printer(val.mock.calls, config, indentationNext, depth, refs)}${config.min ? \", \" : \",\"}${config.spacingOuter}${indentationNext}\"results\": ${printer(val.mock.results, config, indentationNext, depth, refs)}${config.min ? \"\" : \",\"}${config.spacingOuter}${indentation}}`;\n }\n return `[MockFunction${nameString}]${callsString}`;\n};\nconst test = (val) => val && !!val._isMockFunction;\nconst plugin = { serialize: serialize$1, test };\n\nconst {\n DOMCollection,\n DOMElement,\n Immutable,\n ReactElement,\n ReactTestComponent,\n AsymmetricMatcher\n} = plugins;\nlet PLUGINS = [\n ReactTestComponent,\n ReactElement,\n DOMElement,\n DOMCollection,\n Immutable,\n AsymmetricMatcher,\n plugin\n];\nfunction addSerializer(plugin) {\n PLUGINS = [plugin].concat(PLUGINS);\n}\nfunction getSerializers() {\n return PLUGINS;\n}\n\nfunction testNameToKey(testName, count) {\n return `${testName} ${count}`;\n}\nfunction keyToTestName(key) {\n if (!/ \\d+$/.test(key))\n throw new Error(\"Snapshot keys must end with a number.\");\n return key.replace(/ \\d+$/, \"\");\n}\nfunction getSnapshotData(content, options) {\n const update = options.updateSnapshot;\n const data = /* @__PURE__ */ Object.create(null);\n let snapshotContents = \"\";\n let dirty = false;\n if (content != null) {\n try {\n snapshotContents = content;\n const populate = new Function(\"exports\", snapshotContents);\n populate(data);\n } catch {\n }\n }\n const isInvalid = snapshotContents;\n if ((update === \"all\" || update === \"new\") && isInvalid)\n dirty = true;\n return { data, dirty };\n}\nfunction addExtraLineBreaks(string) {\n return string.includes(\"\\n\") ? `\n${string}\n` : string;\n}\nfunction removeExtraLineBreaks(string) {\n return string.length > 2 && string.startsWith(\"\\n\") && string.endsWith(\"\\n\") ? string.slice(1, -1) : string;\n}\nconst escapeRegex = true;\nconst printFunctionName = false;\nfunction serialize(val, indent = 2, formatOverrides = {}) {\n return normalizeNewlines(\n format(val, {\n escapeRegex,\n indent,\n plugins: getSerializers(),\n printFunctionName,\n ...formatOverrides\n })\n );\n}\nfunction escapeBacktickString(str) {\n return str.replace(/`|\\\\|\\${/g, \"\\\\$&\");\n}\nfunction printBacktickString(str) {\n return `\\`${escapeBacktickString(str)}\\``;\n}\nasync function ensureDirectoryExists(environment, filePath) {\n try {\n await environment.prepareDirectory(join(dirname(filePath)));\n } catch {\n }\n}\nfunction normalizeNewlines(string) {\n return string.replace(/\\r\\n|\\r/g, \"\\n\");\n}\nasync function saveSnapshotFile(environment, snapshotData, snapshotPath) {\n const snapshots = Object.keys(snapshotData).sort(naturalCompare$1.exports).map(\n (key) => `exports[${printBacktickString(key)}] = ${printBacktickString(normalizeNewlines(snapshotData[key]))};`\n );\n const content = `${environment.getHeader()}\n\n${snapshots.join(\"\\n\\n\")}\n`;\n const oldContent = await environment.readSnapshotFile(snapshotPath);\n const skipWriting = oldContent != null && oldContent === content;\n if (skipWriting)\n return;\n await ensureDirectoryExists(environment, snapshotPath);\n await environment.saveSnapshotFile(\n snapshotPath,\n content\n );\n}\nfunction prepareExpected(expected) {\n function findStartIndent() {\n var _a, _b;\n const matchObject = /^( +)}\\s+$/m.exec(expected || \"\");\n const objectIndent = (_a = matchObject == null ? void 0 : matchObject[1]) == null ? void 0 : _a.length;\n if (objectIndent)\n return objectIndent;\n const matchText = /^\\n( +)\"/.exec(expected || \"\");\n return ((_b = matchText == null ? void 0 : matchText[1]) == null ? void 0 : _b.length) || 0;\n }\n const startIndent = findStartIndent();\n let expectedTrimmed = expected == null ? void 0 : expected.trim();\n if (startIndent) {\n expectedTrimmed = expectedTrimmed == null ? void 0 : expectedTrimmed.replace(new RegExp(`^${\" \".repeat(startIndent)}`, \"gm\"), \"\").replace(/ +}$/, \"}\");\n }\n return expectedTrimmed;\n}\nfunction deepMergeArray(target = [], source = []) {\n const mergedOutput = Array.from(target);\n source.forEach((sourceElement, index) => {\n const targetElement = mergedOutput[index];\n if (Array.isArray(target[index])) {\n mergedOutput[index] = deepMergeArray(target[index], sourceElement);\n } else if (isObject(targetElement)) {\n mergedOutput[index] = deepMergeSnapshot(target[index], sourceElement);\n } else {\n mergedOutput[index] = sourceElement;\n }\n });\n return mergedOutput;\n}\nfunction deepMergeSnapshot(target, source) {\n if (isObject(target) && isObject(source)) {\n const mergedOutput = { ...target };\n Object.keys(source).forEach((key) => {\n if (isObject(source[key]) && !source[key].$$typeof) {\n if (!(key in target))\n Object.assign(mergedOutput, { [key]: source[key] });\n else\n mergedOutput[key] = deepMergeSnapshot(target[key], source[key]);\n } else if (Array.isArray(source[key])) {\n mergedOutput[key] = deepMergeArray(target[key], source[key]);\n } else {\n Object.assign(mergedOutput, { [key]: source[key] });\n }\n });\n return mergedOutput;\n } else if (Array.isArray(target) && Array.isArray(source)) {\n return deepMergeArray(target, source);\n }\n return target;\n}\n\nasync function saveInlineSnapshots(environment, snapshots) {\n const MagicString = (await import('magic-string')).default;\n const files = new Set(snapshots.map((i) => i.file));\n await Promise.all(Array.from(files).map(async (file) => {\n const snaps = snapshots.filter((i) => i.file === file);\n const code = await environment.readSnapshotFile(file);\n const s = new MagicString(code);\n for (const snap of snaps) {\n const index = positionToOffset(code, snap.line, snap.column);\n replaceInlineSnap(code, s, index, snap.snapshot);\n }\n const transformed = s.toString();\n if (transformed !== code)\n await environment.saveSnapshotFile(file, transformed);\n }));\n}\nconst startObjectRegex = /(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\\s*\\(\\s*(?:\\/\\*[\\S\\s]*\\*\\/\\s*|\\/\\/.*\\s+)*\\s*({)/m;\nfunction replaceObjectSnap(code, s, index, newSnap) {\n code = code.slice(index);\n const startMatch = startObjectRegex.exec(code);\n if (!startMatch)\n return false;\n code = code.slice(startMatch.index);\n const charIndex = getCallLastIndex(code);\n if (charIndex === null)\n return false;\n s.appendLeft(index + startMatch.index + charIndex, `, ${prepareSnapString(newSnap, code, index)}`);\n return true;\n}\nfunction prepareSnapString(snap, source, index) {\n const lineNumber = offsetToLineNumber(source, index);\n const line = source.split(lineSplitRE)[lineNumber - 1];\n const indent = line.match(/^\\s*/)[0] || \"\";\n const indentNext = indent.includes(\"\t\") ? `${indent}\t` : `${indent} `;\n const lines = snap.trim().replace(/\\\\/g, \"\\\\\\\\\").split(/\\n/g);\n const isOneline = lines.length <= 1;\n const quote = isOneline ? \"'\" : \"`\";\n if (isOneline)\n return `'${lines.join(\"\\n\").replace(/'/g, \"\\\\'\")}'`;\n else\n return `${quote}\n${lines.map((i) => i ? indentNext + i : \"\").join(\"\\n\").replace(/`/g, \"\\\\`\").replace(/\\${/g, \"\\\\${\")}\n${indent}${quote}`;\n}\nconst startRegex = /(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\\s*\\(\\s*(?:\\/\\*[\\S\\s]*\\*\\/\\s*|\\/\\/.*\\s+)*\\s*[\\w_$]*(['\"`\\)])/m;\nfunction replaceInlineSnap(code, s, index, newSnap) {\n const startMatch = startRegex.exec(code.slice(index));\n if (!startMatch)\n return replaceObjectSnap(code, s, index, newSnap);\n const quote = startMatch[1];\n const startIndex = index + startMatch.index + startMatch[0].length;\n const snapString = prepareSnapString(newSnap, code, index);\n if (quote === \")\") {\n s.appendRight(startIndex - 1, snapString);\n return true;\n }\n const quoteEndRE = new RegExp(`(?:^|[^\\\\\\\\])${quote}`);\n const endMatch = quoteEndRE.exec(code.slice(startIndex));\n if (!endMatch)\n return false;\n const endIndex = startIndex + endMatch.index + endMatch[0].length;\n s.overwrite(startIndex - 1, endIndex, snapString);\n return true;\n}\nconst INDENTATION_REGEX = /^([^\\S\\n]*)\\S/m;\nfunction stripSnapshotIndentation(inlineSnapshot) {\n const match = inlineSnapshot.match(INDENTATION_REGEX);\n if (!match || !match[1]) {\n return inlineSnapshot;\n }\n const indentation = match[1];\n const lines = inlineSnapshot.split(/\\n/g);\n if (lines.length <= 2) {\n return inlineSnapshot;\n }\n if (lines[0].trim() !== \"\" || lines[lines.length - 1].trim() !== \"\") {\n return inlineSnapshot;\n }\n for (let i = 1; i < lines.length - 1; i++) {\n if (lines[i] !== \"\") {\n if (lines[i].indexOf(indentation) !== 0) {\n return inlineSnapshot;\n }\n lines[i] = lines[i].substring(indentation.length);\n }\n }\n lines[lines.length - 1] = \"\";\n inlineSnapshot = lines.join(\"\\n\");\n return inlineSnapshot;\n}\n\nasync function saveRawSnapshots(environment, snapshots) {\n await Promise.all(snapshots.map(async (snap) => {\n if (!snap.readonly)\n await environment.saveSnapshotFile(snap.file, snap.snapshot);\n }));\n}\n\nclass SnapshotState {\n constructor(testFilePath, snapshotPath, snapshotContent, options) {\n this.testFilePath = testFilePath;\n this.snapshotPath = snapshotPath;\n const { data, dirty } = getSnapshotData(\n snapshotContent,\n options\n );\n this._fileExists = snapshotContent != null;\n this._initialData = data;\n this._snapshotData = data;\n this._dirty = dirty;\n this._inlineSnapshots = [];\n this._rawSnapshots = [];\n this._uncheckedKeys = new Set(Object.keys(this._snapshotData));\n this._counters = /* @__PURE__ */ new Map();\n this.expand = options.expand || false;\n this.added = 0;\n this.matched = 0;\n this.unmatched = 0;\n this._updateSnapshot = options.updateSnapshot;\n this.updated = 0;\n this._snapshotFormat = {\n printBasicPrototype: false,\n ...options.snapshotFormat\n };\n this._environment = options.snapshotEnvironment;\n }\n static async create(testFilePath, options) {\n const snapshotPath = await options.snapshotEnvironment.resolvePath(testFilePath);\n const content = await options.snapshotEnvironment.readSnapshotFile(snapshotPath);\n return new SnapshotState(testFilePath, snapshotPath, content, options);\n }\n get environment() {\n return this._environment;\n }\n markSnapshotsAsCheckedForTest(testName) {\n this._uncheckedKeys.forEach((uncheckedKey) => {\n if (keyToTestName(uncheckedKey) === testName)\n this._uncheckedKeys.delete(uncheckedKey);\n });\n }\n _inferInlineSnapshotStack(stacks) {\n const promiseIndex = stacks.findIndex((i) => i.method.match(/__VITEST_(RESOLVES|REJECTS)__/));\n if (promiseIndex !== -1)\n return stacks[promiseIndex + 3];\n const stackIndex = stacks.findIndex((i) => i.method.includes(\"__INLINE_SNAPSHOT__\"));\n return stackIndex !== -1 ? stacks[stackIndex + 2] : null;\n }\n _addSnapshot(key, receivedSerialized, options) {\n this._dirty = true;\n if (options.isInline) {\n const stacks = parseErrorStacktrace(options.error || new Error(\"snapshot\"), []);\n const stack = this._inferInlineSnapshotStack(stacks);\n if (!stack) {\n throw new Error(\n `@vitest/snapshot: Couldn't infer stack frame for inline snapshot.\n${JSON.stringify(stacks)}`\n );\n }\n stack.column--;\n this._inlineSnapshots.push({\n snapshot: receivedSerialized,\n ...stack\n });\n } else if (options.rawSnapshot) {\n this._rawSnapshots.push({\n ...options.rawSnapshot,\n snapshot: receivedSerialized\n });\n } else {\n this._snapshotData[key] = receivedSerialized;\n }\n }\n clear() {\n this._snapshotData = this._initialData;\n this._counters = /* @__PURE__ */ new Map();\n this.added = 0;\n this.matched = 0;\n this.unmatched = 0;\n this.updated = 0;\n this._dirty = false;\n }\n async save() {\n const hasExternalSnapshots = Object.keys(this._snapshotData).length;\n const hasInlineSnapshots = this._inlineSnapshots.length;\n const hasRawSnapshots = this._rawSnapshots.length;\n const isEmpty = !hasExternalSnapshots && !hasInlineSnapshots && !hasRawSnapshots;\n const status = {\n deleted: false,\n saved: false\n };\n if ((this._dirty || this._uncheckedKeys.size) && !isEmpty) {\n if (hasExternalSnapshots) {\n await saveSnapshotFile(this._environment, this._snapshotData, this.snapshotPath);\n this._fileExists = true;\n }\n if (hasInlineSnapshots)\n await saveInlineSnapshots(this._environment, this._inlineSnapshots);\n if (hasRawSnapshots)\n await saveRawSnapshots(this._environment, this._rawSnapshots);\n status.saved = true;\n } else if (!hasExternalSnapshots && this._fileExists) {\n if (this._updateSnapshot === \"all\") {\n await this._environment.removeSnapshotFile(this.snapshotPath);\n this._fileExists = false;\n }\n status.deleted = true;\n }\n return status;\n }\n getUncheckedCount() {\n return this._uncheckedKeys.size || 0;\n }\n getUncheckedKeys() {\n return Array.from(this._uncheckedKeys);\n }\n removeUncheckedKeys() {\n if (this._updateSnapshot === \"all\" && this._uncheckedKeys.size) {\n this._dirty = true;\n this._uncheckedKeys.forEach((key) => delete this._snapshotData[key]);\n this._uncheckedKeys.clear();\n }\n }\n match({\n testName,\n received,\n key,\n inlineSnapshot,\n isInline,\n error,\n rawSnapshot\n }) {\n this._counters.set(testName, (this._counters.get(testName) || 0) + 1);\n const count = Number(this._counters.get(testName));\n if (!key)\n key = testNameToKey(testName, count);\n if (!(isInline && this._snapshotData[key] !== void 0))\n this._uncheckedKeys.delete(key);\n let receivedSerialized = rawSnapshot && typeof received === \"string\" ? received : serialize(received, void 0, this._snapshotFormat);\n if (!rawSnapshot)\n receivedSerialized = addExtraLineBreaks(receivedSerialized);\n if (rawSnapshot) {\n if (rawSnapshot.content && rawSnapshot.content.match(/\\r\\n/) && !receivedSerialized.match(/\\r\\n/))\n rawSnapshot.content = normalizeNewlines(rawSnapshot.content);\n }\n const expected = isInline ? inlineSnapshot : rawSnapshot ? rawSnapshot.content : this._snapshotData[key];\n const expectedTrimmed = prepareExpected(expected);\n const pass = expectedTrimmed === prepareExpected(receivedSerialized);\n const hasSnapshot = expected !== void 0;\n const snapshotIsPersisted = isInline || this._fileExists || rawSnapshot && rawSnapshot.content != null;\n if (pass && !isInline && !rawSnapshot) {\n this._snapshotData[key] = receivedSerialized;\n }\n if (hasSnapshot && this._updateSnapshot === \"all\" || (!hasSnapshot || !snapshotIsPersisted) && (this._updateSnapshot === \"new\" || this._updateSnapshot === \"all\")) {\n if (this._updateSnapshot === \"all\") {\n if (!pass) {\n if (hasSnapshot)\n this.updated++;\n else\n this.added++;\n this._addSnapshot(key, receivedSerialized, { error, isInline, rawSnapshot });\n } else {\n this.matched++;\n }\n } else {\n this._addSnapshot(key, receivedSerialized, { error, isInline, rawSnapshot });\n this.added++;\n }\n return {\n actual: \"\",\n count,\n expected: \"\",\n key,\n pass: true\n };\n } else {\n if (!pass) {\n this.unmatched++;\n return {\n actual: removeExtraLineBreaks(receivedSerialized),\n count,\n expected: expectedTrimmed !== void 0 ? removeExtraLineBreaks(expectedTrimmed) : void 0,\n key,\n pass: false\n };\n } else {\n this.matched++;\n return {\n actual: \"\",\n count,\n expected: \"\",\n key,\n pass: true\n };\n }\n }\n }\n async pack() {\n const snapshot = {\n filepath: this.testFilePath,\n added: 0,\n fileDeleted: false,\n matched: 0,\n unchecked: 0,\n uncheckedKeys: [],\n unmatched: 0,\n updated: 0\n };\n const uncheckedCount = this.getUncheckedCount();\n const uncheckedKeys = this.getUncheckedKeys();\n if (uncheckedCount)\n this.removeUncheckedKeys();\n const status = await this.save();\n snapshot.fileDeleted = status.deleted;\n snapshot.added = this.added;\n snapshot.matched = this.matched;\n snapshot.unmatched = this.unmatched;\n snapshot.updated = this.updated;\n snapshot.unchecked = !status.deleted ? uncheckedCount : 0;\n snapshot.uncheckedKeys = Array.from(uncheckedKeys);\n return snapshot;\n }\n}\n\nfunction createMismatchError(message, actual, expected) {\n const error = new Error(message);\n Object.defineProperty(error, \"actual\", {\n value: actual,\n enumerable: true,\n configurable: true,\n writable: true\n });\n Object.defineProperty(error, \"expected\", {\n value: expected,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return error;\n}\nclass SnapshotClient {\n constructor(Service = SnapshotState) {\n this.Service = Service;\n this.snapshotStateMap = /* @__PURE__ */ new Map();\n }\n async setTest(filepath, name, options) {\n var _a;\n this.filepath = filepath;\n this.name = name;\n if (((_a = this.snapshotState) == null ? void 0 : _a.testFilePath) !== filepath) {\n this.resetCurrent();\n if (!this.getSnapshotState(filepath)) {\n this.snapshotStateMap.set(\n filepath,\n await this.Service.create(\n filepath,\n options\n )\n );\n }\n this.snapshotState = this.getSnapshotState(filepath);\n }\n }\n getSnapshotState(filepath) {\n return this.snapshotStateMap.get(filepath);\n }\n clearTest() {\n this.filepath = void 0;\n this.name = void 0;\n }\n skipTestSnapshots(name) {\n var _a;\n (_a = this.snapshotState) == null ? void 0 : _a.markSnapshotsAsCheckedForTest(name);\n }\n /**\n * Should be overridden by the consumer.\n *\n * Vitest checks equality with @vitest/expect.\n */\n equalityCheck(received, expected) {\n return received === expected;\n }\n assert(options) {\n const {\n filepath = this.filepath,\n name = this.name,\n message,\n isInline = false,\n properties,\n inlineSnapshot,\n error,\n errorMessage,\n rawSnapshot\n } = options;\n let { received } = options;\n if (!filepath)\n throw new Error(\"Snapshot cannot be used outside of test\");\n if (typeof properties === \"object\") {\n if (typeof received !== \"object\" || !received)\n throw new Error(\"Received value must be an object when the matcher has properties\");\n try {\n const pass2 = this.equalityCheck(received, properties);\n if (!pass2)\n throw createMismatchError(\"Snapshot properties mismatched\", received, properties);\n else\n received = deepMergeSnapshot(received, properties);\n } catch (err) {\n err.message = errorMessage || \"Snapshot mismatched\";\n throw err;\n }\n }\n const testName = [\n name,\n ...message ? [message] : []\n ].join(\" > \");\n const snapshotState = this.getSnapshotState(filepath);\n const { actual, expected, key, pass } = snapshotState.match({\n testName,\n received,\n isInline,\n error,\n inlineSnapshot,\n rawSnapshot\n });\n if (!pass)\n throw createMismatchError(`Snapshot \\`${key || \"unknown\"}\\` mismatched`, actual == null ? void 0 : actual.trim(), expected == null ? void 0 : expected.trim());\n }\n async assertRaw(options) {\n if (!options.rawSnapshot)\n throw new Error(\"Raw snapshot is required\");\n const {\n filepath = this.filepath,\n rawSnapshot\n } = options;\n if (rawSnapshot.content == null) {\n if (!filepath)\n throw new Error(\"Snapshot cannot be used outside of test\");\n const snapshotState = this.getSnapshotState(filepath);\n options.filepath || (options.filepath = filepath);\n rawSnapshot.file = await snapshotState.environment.resolveRawPath(filepath, rawSnapshot.file);\n rawSnapshot.content = await snapshotState.environment.readSnapshotFile(rawSnapshot.file) || void 0;\n }\n return this.assert(options);\n }\n async resetCurrent() {\n if (!this.snapshotState)\n return null;\n const result = await this.snapshotState.pack();\n this.snapshotState = void 0;\n return result;\n }\n clear() {\n this.snapshotStateMap.clear();\n }\n}\n\nexport { SnapshotClient, SnapshotState, addSerializer, getSerializers, stripSnapshotIndentation };\n","import { getNames, getTests } from '@vitest/runner/utils';\nimport '@vitest/utils';\n\nfunction hasFailedSnapshot(suite) {\n return getTests(suite).some((s) => {\n var _a, _b;\n return (_b = (_a = s.result) == null ? void 0 : _a.errors) == null ? void 0 : _b.some((e) => e && e.message && e.message.match(/Snapshot .* mismatched/));\n });\n}\nfunction getFullName(task, separator = \" > \") {\n return getNames(task).join(separator);\n}\n\nexport { getFullName as g, hasFailedSnapshot as h };\n","import { getCurrentSuite, getCurrentTest } from '@vitest/runner';\nimport { createChainable, getNames } from '@vitest/runner/utils';\nimport { getSafeTimers, noop, createSimpleStackTrace, parseSingleStack } from '@vitest/utils';\nimport { d as isRunningInBenchmark, c as resetModules } from './vendor-index.fad2598b.js';\nimport * as chai$1 from 'chai';\nimport { c as commonjsGlobal } from './vendor-_commonjsHelpers.76cdd49e.js';\nimport { equals, iterableEquality, subsetEquality, JestExtend, JestChaiExpect, JestAsymmetricMatchers, GLOBAL_EXPECT, getState, setState } from '@vitest/expect';\nimport { SnapshotClient, stripSnapshotIndentation, addSerializer } from '@vitest/snapshot';\nimport { g as getWorkerState, a as getCurrentEnvironment } from './vendor-global.6795f91f.js';\nimport { g as getFullName } from './vendor-tasks.042d6084.js';\nimport require$$0 from 'util';\nimport { spyOn, fn, isMockFunction, spies } from '@vitest/spy';\n\nfunction waitNextTick() {\n const { setTimeout } = getSafeTimers();\n return new Promise((resolve) => setTimeout(resolve, 0));\n}\nasync function waitForImportsToResolve() {\n await waitNextTick();\n const state = getWorkerState();\n const promises = [];\n let resolvingCount = 0;\n for (const mod of state.moduleCache.values()) {\n if (mod.promise && !mod.evaluated)\n promises.push(mod.promise);\n if (mod.resolving)\n resolvingCount++;\n }\n if (!promises.length && !resolvingCount)\n return;\n await Promise.allSettled(promises);\n await waitForImportsToResolve();\n}\n\nconst benchFns = /* @__PURE__ */ new WeakMap();\nconst benchOptsMap = /* @__PURE__ */ new WeakMap();\nfunction getBenchOptions(key) {\n return benchOptsMap.get(key);\n}\nfunction getBenchFn(key) {\n return benchFns.get(key);\n}\nconst bench = createBenchmark(\n function(name, fn = noop, options = {}) {\n if (!isRunningInBenchmark())\n throw new Error(\"`bench()` is only available in benchmark mode.\");\n const task = getCurrentSuite().custom.call(this, name);\n task.meta = {\n benchmark: true\n };\n benchFns.set(task, fn);\n benchOptsMap.set(task, options);\n }\n);\nfunction createBenchmark(fn) {\n const benchmark = createChainable(\n [\"skip\", \"only\", \"todo\"],\n fn\n );\n benchmark.skipIf = (condition) => condition ? benchmark.skip : benchmark;\n benchmark.runIf = (condition) => condition ? benchmark : benchmark.skip;\n return benchmark;\n}\n\nfunction commonjsRequire(path) {\n\tthrow new Error('Could not dynamically require \"' + path + '\". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');\n}\n\nvar chaiSubset = {exports: {}};\n\n(function (module, exports) {\n\t(function() {\n\t\t(function(chaiSubset) {\n\t\t\tif (typeof commonjsRequire === 'function' && 'object' === 'object' && 'object' === 'object') {\n\t\t\t\treturn module.exports = chaiSubset;\n\t\t\t} else {\n\t\t\t\treturn chai.use(chaiSubset);\n\t\t\t}\n\t\t})(function(chai, utils) {\n\t\t\tvar Assertion = chai.Assertion;\n\t\t\tvar assertionPrototype = Assertion.prototype;\n\n\t\t\tAssertion.addMethod('containSubset', function (expected) {\n\t\t\t\tvar actual = utils.flag(this, 'object');\n\t\t\t\tvar showDiff = chai.config.showDiff;\n\n\t\t\t\tassertionPrototype.assert.call(this,\n\t\t\t\t\tcompare(expected, actual),\n\t\t\t\t\t'expected #{act} to contain subset #{exp}',\n\t\t\t\t\t'expected #{act} to not contain subset #{exp}',\n\t\t\t\t\texpected,\n\t\t\t\t\tactual,\n\t\t\t\t\tshowDiff\n\t\t\t\t);\n\t\t\t});\n\n\t\t\tchai.assert.containSubset = function(val, exp, msg) {\n\t\t\t\tnew chai.Assertion(val, msg).to.be.containSubset(exp);\n\t\t\t};\n\n\t\t\tfunction compare(expected, actual) {\n\t\t\t\tif (expected === actual) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (typeof(actual) !== typeof(expected)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (typeof(expected) !== 'object' || expected === null) {\n\t\t\t\t\treturn expected === actual;\n\t\t\t\t}\n\t\t\t\tif (!!expected && !actual) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (Array.isArray(expected)) {\n\t\t\t\t\tif (typeof(actual.length) !== 'number') {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tvar aa = Array.prototype.slice.call(actual);\n\t\t\t\t\treturn expected.every(function (exp) {\n\t\t\t\t\t\treturn aa.some(function (act) {\n\t\t\t\t\t\t\treturn compare(exp, act);\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tif (expected instanceof Date) {\n\t\t\t\t\tif (actual instanceof Date) {\n\t\t\t\t\t\treturn expected.getTime() === actual.getTime();\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn Object.keys(expected).every(function (key) {\n\t\t\t\t\tvar eo = expected[key];\n\t\t\t\t\tvar ao = actual[key];\n\t\t\t\t\tif (typeof(eo) === 'object' && eo !== null && ao !== null) {\n\t\t\t\t\t\treturn compare(eo, ao);\n\t\t\t\t\t}\n\t\t\t\t\tif (typeof(eo) === 'function') {\n\t\t\t\t\t\treturn eo(ao);\n\t\t\t\t\t}\n\t\t\t\t\treturn ao === eo;\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t}).call(commonjsGlobal);\n} (chaiSubset));\n\nvar Subset = chaiSubset.exports;\n\nfunction recordAsyncExpect(test, promise) {\n if (test) {\n promise = promise.finally(() => {\n const index = test.promises.indexOf(promise);\n if (index !== -1)\n test.promises.splice(index, 1);\n });\n if (!test.promises)\n test.promises = [];\n test.promises.push(promise);\n }\n return promise;\n}\n\nclass VitestSnapshotClient extends SnapshotClient {\n equalityCheck(received, expected) {\n return equals(received, expected, [iterableEquality, subsetEquality]);\n }\n}\n\nlet _client;\nfunction getSnapshotClient() {\n if (!_client)\n _client = new VitestSnapshotClient();\n return _client;\n}\nfunction getErrorMessage(err) {\n if (err instanceof Error)\n return err.message;\n return err;\n}\nfunction getErrorString(expected, promise) {\n if (typeof expected !== \"function\") {\n if (!promise)\n throw new Error(`expected must be a function, received ${typeof expected}`);\n return getErrorMessage(expected);\n }\n try {\n expected();\n } catch (e) {\n return getErrorMessage(e);\n }\n throw new Error(\"snapshot function didn't throw\");\n}\nconst SnapshotPlugin = (chai, utils) => {\n const getTestNames = (test) => {\n var _a;\n if (!test)\n return {};\n return {\n filepath: (_a = test.file) == null ? void 0 : _a.filepath,\n name: getNames(test).slice(1).join(\" > \")\n };\n };\n for (const key of [\"matchSnapshot\", \"toMatchSnapshot\"]) {\n utils.addMethod(\n chai.Assertion.prototype,\n key,\n function(properties, message) {\n const expected = utils.flag(this, \"object\");\n const test = utils.flag(this, \"vitest-test\");\n if (typeof properties === \"string\" && typeof message === \"undefined\") {\n message = properties;\n properties = void 0;\n }\n const errorMessage = utils.flag(this, \"message\");\n getSnapshotClient().assert({\n received: expected,\n message,\n isInline: false,\n properties,\n errorMessage,\n ...getTestNames(test)\n });\n }\n );\n }\n utils.addMethod(\n chai.Assertion.prototype,\n \"toMatchFileSnapshot\",\n function(file, message) {\n const expected = utils.flag(this, \"object\");\n const test = utils.flag(this, \"vitest-test\");\n const errorMessage = utils.flag(this, \"message\");\n const promise = getSnapshotClient().assertRaw({\n received: expected,\n message,\n isInline: false,\n rawSnapshot: {\n file\n },\n errorMessage,\n ...getTestNames(test)\n });\n return recordAsyncExpect(test, promise);\n }\n );\n utils.addMethod(\n chai.Assertion.prototype,\n \"toMatchInlineSnapshot\",\n function __INLINE_SNAPSHOT__(properties, inlineSnapshot, message) {\n const expected = utils.flag(this, \"object\");\n const error = utils.flag(this, \"error\");\n const test = utils.flag(this, \"vitest-test\");\n if (typeof properties === \"string\") {\n message = inlineSnapshot;\n inlineSnapshot = properties;\n properties = void 0;\n }\n if (inlineSnapshot)\n inlineSnapshot = stripSnapshotIndentation(inlineSnapshot);\n const errorMessage = utils.flag(this, \"message\");\n getSnapshotClient().assert({\n received: expected,\n message,\n isInline: true,\n properties,\n inlineSnapshot,\n error,\n errorMessage,\n ...getTestNames(test)\n });\n }\n );\n utils.addMethod(\n chai.Assertion.prototype,\n \"toThrowErrorMatchingSnapshot\",\n function(message) {\n const expected = utils.flag(this, \"object\");\n const test = utils.flag(this, \"vitest-test\");\n const promise = utils.flag(this, \"promise\");\n const errorMessage = utils.flag(this, \"message\");\n getSnapshotClient().assert({\n received: getErrorString(expected, promise),\n message,\n errorMessage,\n ...getTestNames(test)\n });\n }\n );\n utils.addMethod(\n chai.Assertion.prototype,\n \"toThrowErrorMatchingInlineSnapshot\",\n function __INLINE_SNAPSHOT__(inlineSnapshot, message) {\n const expected = utils.flag(this, \"object\");\n const error = utils.flag(this, \"error\");\n const test = utils.flag(this, \"vitest-test\");\n const promise = utils.flag(this, \"promise\");\n const errorMessage = utils.flag(this, \"message\");\n getSnapshotClient().assert({\n received: getErrorString(expected, promise),\n message,\n inlineSnapshot,\n isInline: true,\n error,\n errorMessage,\n ...getTestNames(test)\n });\n }\n );\n utils.addMethod(\n chai.expect,\n \"addSnapshotSerializer\",\n addSerializer\n );\n};\n\nchai$1.use(JestExtend);\nchai$1.use(JestChaiExpect);\nchai$1.use(Subset);\nchai$1.use(SnapshotPlugin);\nchai$1.use(JestAsymmetricMatchers);\n\nfunction createExpect(test) {\n var _a;\n const expect = (value, message) => {\n const { assertionCalls } = getState(expect);\n setState({ assertionCalls: assertionCalls + 1 }, expect);\n const assert2 = chai$1.expect(value, message);\n const _test = test || getCurrentTest();\n if (_test)\n return assert2.withTest(_test);\n else\n return assert2;\n };\n Object.assign(expect, chai$1.expect);\n expect.getState = () => getState(expect);\n expect.setState = (state) => setState(state, expect);\n const globalState = getState(globalThis[GLOBAL_EXPECT]) || {};\n setState({\n // this should also add \"snapshotState\" that is added conditionally\n ...globalState,\n assertionCalls: 0,\n isExpectingAssertions: false,\n isExpectingAssertionsError: null,\n expectedAssertionsNumber: null,\n expectedAssertionsNumberErrorGen: null,\n environment: getCurrentEnvironment(),\n testPath: test ? (_a = test.suite.file) == null ? void 0 : _a.filepath : globalState.testPath,\n currentTestName: test ? getFullName(test) : globalState.currentTestName\n }, expect);\n expect.extend = (matchers) => chai$1.expect.extend(expect, matchers);\n function assertions(expected) {\n const errorGen = () => new Error(`expected number of assertions to be ${expected}, but got ${expect.getState().assertionCalls}`);\n if (Error.captureStackTrace)\n Error.captureStackTrace(errorGen(), assertions);\n expect.setState({\n expectedAssertionsNumber: expected,\n expectedAssertionsNumberErrorGen: errorGen\n });\n }\n function hasAssertions() {\n const error = new Error(\"expected any number of assertion, but got none\");\n if (Error.captureStackTrace)\n Error.captureStackTrace(error, hasAssertions);\n expect.setState({\n isExpectingAssertions: true,\n isExpectingAssertionsError: error\n });\n }\n chai$1.util.addMethod(expect, \"assertions\", assertions);\n chai$1.util.addMethod(expect, \"hasAssertions\", hasAssertions);\n return expect;\n}\nconst globalExpect = createExpect();\nObject.defineProperty(globalThis, GLOBAL_EXPECT, {\n value: globalExpect,\n writable: true,\n configurable: true\n});\nfunction setupChaiConfig(config) {\n Object.assign(chai$1.config, config);\n}\n\n/**\n * A reference to the global object\n *\n * @type {object} globalObject\n */\nvar globalObject$1;\n\n/* istanbul ignore else */\nif (typeof commonjsGlobal !== \"undefined\") {\n // Node\n globalObject$1 = commonjsGlobal;\n} else if (typeof window !== \"undefined\") {\n // Browser\n globalObject$1 = window;\n} else {\n // WebWorker\n globalObject$1 = self;\n}\n\nvar global = globalObject$1;\n\n/**\n * Is true when the environment causes an error to be thrown for accessing the\n * __proto__ property.\n *\n * This is necessary in order to support `node --disable-proto=throw`.\n *\n * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto\n *\n * @type {boolean}\n */\nlet throwsOnProto$1;\ntry {\n const object = {};\n // eslint-disable-next-line no-proto, no-unused-expressions\n object.__proto__;\n throwsOnProto$1 = false;\n} catch (_) {\n // This branch is covered when tests are run with `--disable-proto=throw`,\n // however we can test both branches at the same time, so this is ignored\n /* istanbul ignore next */\n throwsOnProto$1 = true;\n}\n\nvar throwsOnProto_1 = throwsOnProto$1;\n\nvar call = Function.call;\nvar throwsOnProto = throwsOnProto_1;\n\nvar disallowedProperties = [\n // ignore size because it throws from Map\n \"size\",\n \"caller\",\n \"callee\",\n \"arguments\",\n];\n\n// This branch is covered when tests are run with `--disable-proto=throw`,\n// however we can test both branches at the same time, so this is ignored\n/* istanbul ignore next */\nif (throwsOnProto) {\n disallowedProperties.push(\"__proto__\");\n}\n\nvar copyPrototypeMethods = function copyPrototypeMethods(prototype) {\n // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods\n return Object.getOwnPropertyNames(prototype).reduce(function (\n result,\n name\n ) {\n if (disallowedProperties.includes(name)) {\n return result;\n }\n\n if (typeof prototype[name] !== \"function\") {\n return result;\n }\n\n result[name] = call.bind(prototype[name]);\n\n return result;\n },\n Object.create(null));\n};\n\nvar copyPrototype$5 = copyPrototypeMethods;\n\nvar array = copyPrototype$5(Array.prototype);\n\nvar every$1 = array.every;\n\n/**\n * @private\n */\nfunction hasCallsLeft(callMap, spy) {\n if (callMap[spy.id] === undefined) {\n callMap[spy.id] = 0;\n }\n\n return callMap[spy.id] < spy.callCount;\n}\n\n/**\n * @private\n */\nfunction checkAdjacentCalls(callMap, spy, index, spies) {\n var calledBeforeNext = true;\n\n if (index !== spies.length - 1) {\n calledBeforeNext = spy.calledBefore(spies[index + 1]);\n }\n\n if (hasCallsLeft(callMap, spy) && calledBeforeNext) {\n callMap[spy.id] += 1;\n return true;\n }\n\n return false;\n}\n\n/**\n * A Sinon proxy object (fake, spy, stub)\n *\n * @typedef {object} SinonProxy\n * @property {Function} calledBefore - A method that determines if this proxy was called before another one\n * @property {string} id - Some id\n * @property {number} callCount - Number of times this proxy has been called\n */\n\n/**\n * Returns true when the spies have been called in the order they were supplied in\n *\n * @param {SinonProxy[] | SinonProxy} spies An array of proxies, or several proxies as arguments\n * @returns {boolean} true when spies are called in order, false otherwise\n */\nfunction calledInOrder(spies) {\n var callMap = {};\n // eslint-disable-next-line no-underscore-dangle\n var _spies = arguments.length > 1 ? arguments : spies;\n\n return every$1(_spies, checkAdjacentCalls.bind(null, callMap));\n}\n\nvar calledInOrder_1 = calledInOrder;\n\n/**\n * Returns a display name for a function\n *\n * @param {Function} func\n * @returns {string}\n */\nvar functionName$1 = function functionName(func) {\n if (!func) {\n return \"\";\n }\n\n try {\n return (\n func.displayName ||\n func.name ||\n // Use function decomposition as a last resort to get function\n // name. Does not rely on function decomposition to work - if it\n // doesn't debugging will be slightly less informative\n // (i.e. toString will say 'spy' rather than 'myFunc').\n (String(func).match(/function ([^\\s(]+)/) || [])[1]\n );\n } catch (e) {\n // Stringify may fail and we might get an exception, as a last-last\n // resort fall back to empty string.\n return \"\";\n }\n};\n\nvar functionName = functionName$1;\n\n/**\n * Returns a display name for a value from a constructor\n *\n * @param {object} value A value to examine\n * @returns {(string|null)} A string or null\n */\nfunction className(value) {\n return (\n (value.constructor && value.constructor.name) ||\n // The next branch is for IE11 support only:\n // Because the name property is not set on the prototype\n // of the Function object, we finally try to grab the\n // name from its definition. This will never be reached\n // in node, so we are not able to test this properly.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name\n (typeof value.constructor === \"function\" &&\n /* istanbul ignore next */\n functionName(value.constructor)) ||\n null\n );\n}\n\nvar className_1 = className;\n\nvar deprecated = {};\n\n/* eslint-disable no-console */\n\n(function (exports) {\n\n\t/**\n\t * Returns a function that will invoke the supplied function and print a\n\t * deprecation warning to the console each time it is called.\n\t *\n\t * @param {Function} func\n\t * @param {string} msg\n\t * @returns {Function}\n\t */\n\texports.wrap = function (func, msg) {\n\t var wrapped = function () {\n\t exports.printWarning(msg);\n\t return func.apply(this, arguments);\n\t };\n\t if (func.prototype) {\n\t wrapped.prototype = func.prototype;\n\t }\n\t return wrapped;\n\t};\n\n\t/**\n\t * Returns a string which can be supplied to `wrap()` to notify the user that a\n\t * particular part of the sinon API has been deprecated.\n\t *\n\t * @param {string} packageName\n\t * @param {string} funcName\n\t * @returns {string}\n\t */\n\texports.defaultMsg = function (packageName, funcName) {\n\t return `${packageName}.${funcName} is deprecated and will be removed from the public API in a future version of ${packageName}.`;\n\t};\n\n\t/**\n\t * Prints a warning on the console, when it exists\n\t *\n\t * @param {string} msg\n\t * @returns {undefined}\n\t */\n\texports.printWarning = function (msg) {\n\t /* istanbul ignore next */\n\t if (typeof process === \"object\" && process.emitWarning) {\n\t // Emit Warnings in Node\n\t process.emitWarning(msg);\n\t } else if (console.info) {\n\t console.info(msg);\n\t } else {\n\t console.log(msg);\n\t }\n\t};\n} (deprecated));\n\n/**\n * Returns true when fn returns true for all members of obj.\n * This is an every implementation that works for all iterables\n *\n * @param {object} obj\n * @param {Function} fn\n * @returns {boolean}\n */\nvar every = function every(obj, fn) {\n var pass = true;\n\n try {\n // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods\n obj.forEach(function () {\n if (!fn.apply(this, arguments)) {\n // Throwing an error is the only way to break `forEach`\n throw new Error();\n }\n });\n } catch (e) {\n pass = false;\n }\n\n return pass;\n};\n\nvar sort = array.sort;\nvar slice = array.slice;\n\n/**\n * @private\n */\nfunction comparator(a, b) {\n // uuid, won't ever be equal\n var aCall = a.getCall(0);\n var bCall = b.getCall(0);\n var aId = (aCall && aCall.callId) || -1;\n var bId = (bCall && bCall.callId) || -1;\n\n return aId < bId ? -1 : 1;\n}\n\n/**\n * A Sinon proxy object (fake, spy, stub)\n *\n * @typedef {object} SinonProxy\n * @property {Function} getCall - A method that can return the first call\n */\n\n/**\n * Sorts an array of SinonProxy instances (fake, spy, stub) by their first call\n *\n * @param {SinonProxy[] | SinonProxy} spies\n * @returns {SinonProxy[]}\n */\nfunction orderByFirstCall(spies) {\n return sort(slice(spies), comparator);\n}\n\nvar orderByFirstCall_1 = orderByFirstCall;\n\nvar copyPrototype$4 = copyPrototypeMethods;\n\nvar _function = copyPrototype$4(Function.prototype);\n\nvar copyPrototype$3 = copyPrototypeMethods;\n\nvar map = copyPrototype$3(Map.prototype);\n\nvar copyPrototype$2 = copyPrototypeMethods;\n\nvar object = copyPrototype$2(Object.prototype);\n\nvar copyPrototype$1 = copyPrototypeMethods;\n\nvar set = copyPrototype$1(Set.prototype);\n\nvar copyPrototype = copyPrototypeMethods;\n\nvar string = copyPrototype(String.prototype);\n\nvar prototypes = {\n array: array,\n function: _function,\n map: map,\n object: object,\n set: set,\n string: string,\n};\n\nvar typeDetect = {exports: {}};\n\n(function (module, exports) {\n\t(function (global, factory) {\n\t\tmodule.exports = factory() ;\n\t}(commonjsGlobal, (function () {\n\t/* !\n\t * type-detect\n\t * Copyright(c) 2013 jake luer \n\t * MIT Licensed\n\t */\n\tvar promiseExists = typeof Promise === 'function';\n\n\t/* eslint-disable no-undef */\n\tvar globalObject = typeof self === 'object' ? self : commonjsGlobal; // eslint-disable-line id-blacklist\n\n\tvar symbolExists = typeof Symbol !== 'undefined';\n\tvar mapExists = typeof Map !== 'undefined';\n\tvar setExists = typeof Set !== 'undefined';\n\tvar weakMapExists = typeof WeakMap !== 'undefined';\n\tvar weakSetExists = typeof WeakSet !== 'undefined';\n\tvar dataViewExists = typeof DataView !== 'undefined';\n\tvar symbolIteratorExists = symbolExists && typeof Symbol.iterator !== 'undefined';\n\tvar symbolToStringTagExists = symbolExists && typeof Symbol.toStringTag !== 'undefined';\n\tvar setEntriesExists = setExists && typeof Set.prototype.entries === 'function';\n\tvar mapEntriesExists = mapExists && typeof Map.prototype.entries === 'function';\n\tvar setIteratorPrototype = setEntriesExists && Object.getPrototypeOf(new Set().entries());\n\tvar mapIteratorPrototype = mapEntriesExists && Object.getPrototypeOf(new Map().entries());\n\tvar arrayIteratorExists = symbolIteratorExists && typeof Array.prototype[Symbol.iterator] === 'function';\n\tvar arrayIteratorPrototype = arrayIteratorExists && Object.getPrototypeOf([][Symbol.iterator]());\n\tvar stringIteratorExists = symbolIteratorExists && typeof String.prototype[Symbol.iterator] === 'function';\n\tvar stringIteratorPrototype = stringIteratorExists && Object.getPrototypeOf(''[Symbol.iterator]());\n\tvar toStringLeftSliceLength = 8;\n\tvar toStringRightSliceLength = -1;\n\t/**\n\t * ### typeOf (obj)\n\t *\n\t * Uses `Object.prototype.toString` to determine the type of an object,\n\t * normalising behaviour across engine versions & well optimised.\n\t *\n\t * @param {Mixed} object\n\t * @return {String} object type\n\t * @api public\n\t */\n\tfunction typeDetect(obj) {\n\t /* ! Speed optimisation\n\t * Pre:\n\t * string literal x 3,039,035 ops/sec ±1.62% (78 runs sampled)\n\t * boolean literal x 1,424,138 ops/sec ±4.54% (75 runs sampled)\n\t * number literal x 1,653,153 ops/sec ±1.91% (82 runs sampled)\n\t * undefined x 9,978,660 ops/sec ±1.92% (75 runs sampled)\n\t * function x 2,556,769 ops/sec ±1.73% (77 runs sampled)\n\t * Post:\n\t * string literal x 38,564,796 ops/sec ±1.15% (79 runs sampled)\n\t * boolean literal x 31,148,940 ops/sec ±1.10% (79 runs sampled)\n\t * number literal x 32,679,330 ops/sec ±1.90% (78 runs sampled)\n\t * undefined x 32,363,368 ops/sec ±1.07% (82 runs sampled)\n\t * function x 31,296,870 ops/sec ±0.96% (83 runs sampled)\n\t */\n\t var typeofObj = typeof obj;\n\t if (typeofObj !== 'object') {\n\t return typeofObj;\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * null x 28,645,765 ops/sec ±1.17% (82 runs sampled)\n\t * Post:\n\t * null x 36,428,962 ops/sec ±1.37% (84 runs sampled)\n\t */\n\t if (obj === null) {\n\t return 'null';\n\t }\n\n\t /* ! Spec Conformance\n\t * Test: `Object.prototype.toString.call(window)``\n\t * - Node === \"[object global]\"\n\t * - Chrome === \"[object global]\"\n\t * - Firefox === \"[object Window]\"\n\t * - PhantomJS === \"[object Window]\"\n\t * - Safari === \"[object Window]\"\n\t * - IE 11 === \"[object Window]\"\n\t * - IE Edge === \"[object Window]\"\n\t * Test: `Object.prototype.toString.call(this)``\n\t * - Chrome Worker === \"[object global]\"\n\t * - Firefox Worker === \"[object DedicatedWorkerGlobalScope]\"\n\t * - Safari Worker === \"[object DedicatedWorkerGlobalScope]\"\n\t * - IE 11 Worker === \"[object WorkerGlobalScope]\"\n\t * - IE Edge Worker === \"[object WorkerGlobalScope]\"\n\t */\n\t if (obj === globalObject) {\n\t return 'global';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * array literal x 2,888,352 ops/sec ±0.67% (82 runs sampled)\n\t * Post:\n\t * array literal x 22,479,650 ops/sec ±0.96% (81 runs sampled)\n\t */\n\t if (\n\t Array.isArray(obj) &&\n\t (symbolToStringTagExists === false || !(Symbol.toStringTag in obj))\n\t ) {\n\t return 'Array';\n\t }\n\n\t // Not caching existence of `window` and related properties due to potential\n\t // for `window` to be unset before tests in quasi-browser environments.\n\t if (typeof window === 'object' && window !== null) {\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/multipage/browsers.html#location)\n\t * WhatWG HTML$7.7.3 - The `Location` interface\n\t * Test: `Object.prototype.toString.call(window.location)``\n\t * - IE <=11 === \"[object Object]\"\n\t * - IE Edge <=13 === \"[object Object]\"\n\t */\n\t if (typeof window.location === 'object' && obj === window.location) {\n\t return 'Location';\n\t }\n\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/#document)\n\t * WhatWG HTML$3.1.1 - The `Document` object\n\t * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n\t * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-26809268)\n\t * which suggests that browsers should use HTMLTableCellElement for\n\t * both TD and TH elements. WhatWG separates these.\n\t * WhatWG HTML states:\n\t * > For historical reasons, Window objects must also have a\n\t * > writable, configurable, non-enumerable property named\n\t * > HTMLDocument whose value is the Document interface object.\n\t * Test: `Object.prototype.toString.call(document)``\n\t * - Chrome === \"[object HTMLDocument]\"\n\t * - Firefox === \"[object HTMLDocument]\"\n\t * - Safari === \"[object HTMLDocument]\"\n\t * - IE <=10 === \"[object Document]\"\n\t * - IE 11 === \"[object HTMLDocument]\"\n\t * - IE Edge <=13 === \"[object HTMLDocument]\"\n\t */\n\t if (typeof window.document === 'object' && obj === window.document) {\n\t return 'Document';\n\t }\n\n\t if (typeof window.navigator === 'object') {\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/multipage/webappapis.html#mimetypearray)\n\t * WhatWG HTML$8.6.1.5 - Plugins - Interface MimeTypeArray\n\t * Test: `Object.prototype.toString.call(navigator.mimeTypes)``\n\t * - IE <=10 === \"[object MSMimeTypesCollection]\"\n\t */\n\t if (typeof window.navigator.mimeTypes === 'object' &&\n\t obj === window.navigator.mimeTypes) {\n\t return 'MimeTypeArray';\n\t }\n\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray)\n\t * WhatWG HTML$8.6.1.5 - Plugins - Interface PluginArray\n\t * Test: `Object.prototype.toString.call(navigator.plugins)``\n\t * - IE <=10 === \"[object MSPluginsCollection]\"\n\t */\n\t if (typeof window.navigator.plugins === 'object' &&\n\t obj === window.navigator.plugins) {\n\t return 'PluginArray';\n\t }\n\t }\n\n\t if ((typeof window.HTMLElement === 'function' ||\n\t typeof window.HTMLElement === 'object') &&\n\t obj instanceof window.HTMLElement) {\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray)\n\t * WhatWG HTML$4.4.4 - The `blockquote` element - Interface `HTMLQuoteElement`\n\t * Test: `Object.prototype.toString.call(document.createElement('blockquote'))``\n\t * - IE <=10 === \"[object HTMLBlockElement]\"\n\t */\n\t if (obj.tagName === 'BLOCKQUOTE') {\n\t return 'HTMLQuoteElement';\n\t }\n\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/#htmltabledatacellelement)\n\t * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableDataCellElement`\n\t * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n\t * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075)\n\t * which suggests that browsers should use HTMLTableCellElement for\n\t * both TD and TH elements. WhatWG separates these.\n\t * Test: Object.prototype.toString.call(document.createElement('td'))\n\t * - Chrome === \"[object HTMLTableCellElement]\"\n\t * - Firefox === \"[object HTMLTableCellElement]\"\n\t * - Safari === \"[object HTMLTableCellElement]\"\n\t */\n\t if (obj.tagName === 'TD') {\n\t return 'HTMLTableDataCellElement';\n\t }\n\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/#htmltableheadercellelement)\n\t * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableHeaderCellElement`\n\t * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n\t * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075)\n\t * which suggests that browsers should use HTMLTableCellElement for\n\t * both TD and TH elements. WhatWG separates these.\n\t * Test: Object.prototype.toString.call(document.createElement('th'))\n\t * - Chrome === \"[object HTMLTableCellElement]\"\n\t * - Firefox === \"[object HTMLTableCellElement]\"\n\t * - Safari === \"[object HTMLTableCellElement]\"\n\t */\n\t if (obj.tagName === 'TH') {\n\t return 'HTMLTableHeaderCellElement';\n\t }\n\t }\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * Float64Array x 625,644 ops/sec ±1.58% (80 runs sampled)\n\t * Float32Array x 1,279,852 ops/sec ±2.91% (77 runs sampled)\n\t * Uint32Array x 1,178,185 ops/sec ±1.95% (83 runs sampled)\n\t * Uint16Array x 1,008,380 ops/sec ±2.25% (80 runs sampled)\n\t * Uint8Array x 1,128,040 ops/sec ±2.11% (81 runs sampled)\n\t * Int32Array x 1,170,119 ops/sec ±2.88% (80 runs sampled)\n\t * Int16Array x 1,176,348 ops/sec ±5.79% (86 runs sampled)\n\t * Int8Array x 1,058,707 ops/sec ±4.94% (77 runs sampled)\n\t * Uint8ClampedArray x 1,110,633 ops/sec ±4.20% (80 runs sampled)\n\t * Post:\n\t * Float64Array x 7,105,671 ops/sec ±13.47% (64 runs sampled)\n\t * Float32Array x 5,887,912 ops/sec ±1.46% (82 runs sampled)\n\t * Uint32Array x 6,491,661 ops/sec ±1.76% (79 runs sampled)\n\t * Uint16Array x 6,559,795 ops/sec ±1.67% (82 runs sampled)\n\t * Uint8Array x 6,463,966 ops/sec ±1.43% (85 runs sampled)\n\t * Int32Array x 5,641,841 ops/sec ±3.49% (81 runs sampled)\n\t * Int16Array x 6,583,511 ops/sec ±1.98% (80 runs sampled)\n\t * Int8Array x 6,606,078 ops/sec ±1.74% (81 runs sampled)\n\t * Uint8ClampedArray x 6,602,224 ops/sec ±1.77% (83 runs sampled)\n\t */\n\t var stringTag = (symbolToStringTagExists && obj[Symbol.toStringTag]);\n\t if (typeof stringTag === 'string') {\n\t return stringTag;\n\t }\n\n\t var objPrototype = Object.getPrototypeOf(obj);\n\t /* ! Speed optimisation\n\t * Pre:\n\t * regex literal x 1,772,385 ops/sec ±1.85% (77 runs sampled)\n\t * regex constructor x 2,143,634 ops/sec ±2.46% (78 runs sampled)\n\t * Post:\n\t * regex literal x 3,928,009 ops/sec ±0.65% (78 runs sampled)\n\t * regex constructor x 3,931,108 ops/sec ±0.58% (84 runs sampled)\n\t */\n\t if (objPrototype === RegExp.prototype) {\n\t return 'RegExp';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * date x 2,130,074 ops/sec ±4.42% (68 runs sampled)\n\t * Post:\n\t * date x 3,953,779 ops/sec ±1.35% (77 runs sampled)\n\t */\n\t if (objPrototype === Date.prototype) {\n\t return 'Date';\n\t }\n\n\t /* ! Spec Conformance\n\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-promise.prototype-@@tostringtag)\n\t * ES6$25.4.5.4 - Promise.prototype[@@toStringTag] should be \"Promise\":\n\t * Test: `Object.prototype.toString.call(Promise.resolve())``\n\t * - Chrome <=47 === \"[object Object]\"\n\t * - Edge <=20 === \"[object Object]\"\n\t * - Firefox 29-Latest === \"[object Promise]\"\n\t * - Safari 7.1-Latest === \"[object Promise]\"\n\t */\n\t if (promiseExists && objPrototype === Promise.prototype) {\n\t return 'Promise';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * set x 2,222,186 ops/sec ±1.31% (82 runs sampled)\n\t * Post:\n\t * set x 4,545,879 ops/sec ±1.13% (83 runs sampled)\n\t */\n\t if (setExists && objPrototype === Set.prototype) {\n\t return 'Set';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * map x 2,396,842 ops/sec ±1.59% (81 runs sampled)\n\t * Post:\n\t * map x 4,183,945 ops/sec ±6.59% (82 runs sampled)\n\t */\n\t if (mapExists && objPrototype === Map.prototype) {\n\t return 'Map';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * weakset x 1,323,220 ops/sec ±2.17% (76 runs sampled)\n\t * Post:\n\t * weakset x 4,237,510 ops/sec ±2.01% (77 runs sampled)\n\t */\n\t if (weakSetExists && objPrototype === WeakSet.prototype) {\n\t return 'WeakSet';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * weakmap x 1,500,260 ops/sec ±2.02% (78 runs sampled)\n\t * Post:\n\t * weakmap x 3,881,384 ops/sec ±1.45% (82 runs sampled)\n\t */\n\t if (weakMapExists && objPrototype === WeakMap.prototype) {\n\t return 'WeakMap';\n\t }\n\n\t /* ! Spec Conformance\n\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-dataview.prototype-@@tostringtag)\n\t * ES6$24.2.4.21 - DataView.prototype[@@toStringTag] should be \"DataView\":\n\t * Test: `Object.prototype.toString.call(new DataView(new ArrayBuffer(1)))``\n\t * - Edge <=13 === \"[object Object]\"\n\t */\n\t if (dataViewExists && objPrototype === DataView.prototype) {\n\t return 'DataView';\n\t }\n\n\t /* ! Spec Conformance\n\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%mapiteratorprototype%-@@tostringtag)\n\t * ES6$23.1.5.2.2 - %MapIteratorPrototype%[@@toStringTag] should be \"Map Iterator\":\n\t * Test: `Object.prototype.toString.call(new Map().entries())``\n\t * - Edge <=13 === \"[object Object]\"\n\t */\n\t if (mapExists && objPrototype === mapIteratorPrototype) {\n\t return 'Map Iterator';\n\t }\n\n\t /* ! Spec Conformance\n\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%setiteratorprototype%-@@tostringtag)\n\t * ES6$23.2.5.2.2 - %SetIteratorPrototype%[@@toStringTag] should be \"Set Iterator\":\n\t * Test: `Object.prototype.toString.call(new Set().entries())``\n\t * - Edge <=13 === \"[object Object]\"\n\t */\n\t if (setExists && objPrototype === setIteratorPrototype) {\n\t return 'Set Iterator';\n\t }\n\n\t /* ! Spec Conformance\n\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%arrayiteratorprototype%-@@tostringtag)\n\t * ES6$22.1.5.2.2 - %ArrayIteratorPrototype%[@@toStringTag] should be \"Array Iterator\":\n\t * Test: `Object.prototype.toString.call([][Symbol.iterator]())``\n\t * - Edge <=13 === \"[object Object]\"\n\t */\n\t if (arrayIteratorExists && objPrototype === arrayIteratorPrototype) {\n\t return 'Array Iterator';\n\t }\n\n\t /* ! Spec Conformance\n\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%stringiteratorprototype%-@@tostringtag)\n\t * ES6$21.1.5.2.2 - %StringIteratorPrototype%[@@toStringTag] should be \"String Iterator\":\n\t * Test: `Object.prototype.toString.call(''[Symbol.iterator]())``\n\t * - Edge <=13 === \"[object Object]\"\n\t */\n\t if (stringIteratorExists && objPrototype === stringIteratorPrototype) {\n\t return 'String Iterator';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * object from null x 2,424,320 ops/sec ±1.67% (76 runs sampled)\n\t * Post:\n\t * object from null x 5,838,000 ops/sec ±0.99% (84 runs sampled)\n\t */\n\t if (objPrototype === null) {\n\t return 'Object';\n\t }\n\n\t return Object\n\t .prototype\n\t .toString\n\t .call(obj)\n\t .slice(toStringLeftSliceLength, toStringRightSliceLength);\n\t}\n\n\treturn typeDetect;\n\n\t})));\n} (typeDetect));\n\nvar type = typeDetect.exports;\n\n/**\n * Returns the lower-case result of running type from type-detect on the value\n *\n * @param {*} value\n * @returns {string}\n */\nvar typeOf = function typeOf(value) {\n return type(value).toLowerCase();\n};\n\n/**\n * Returns a string representation of the value\n *\n * @param {*} value\n * @returns {string}\n */\nfunction valueToString(value) {\n if (value && value.toString) {\n // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods\n return value.toString();\n }\n return String(value);\n}\n\nvar valueToString_1 = valueToString;\n\nvar lib = {\n global: global,\n calledInOrder: calledInOrder_1,\n className: className_1,\n deprecated: deprecated,\n every: every,\n functionName: functionName$1,\n orderByFirstCall: orderByFirstCall_1,\n prototypes: prototypes,\n typeOf: typeOf,\n valueToString: valueToString_1,\n};\n\nconst globalObject = lib.global;\n\n/**\n * @typedef {object} IdleDeadline\n * @property {boolean} didTimeout - whether or not the callback was called before reaching the optional timeout\n * @property {function():number} timeRemaining - a floating-point value providing an estimate of the number of milliseconds remaining in the current idle period\n */\n\n/**\n * Queues a function to be called during a browser's idle periods\n *\n * @callback RequestIdleCallback\n * @param {function(IdleDeadline)} callback\n * @param {{timeout: number}} options - an options object\n * @returns {number} the id\n */\n\n/**\n * @callback NextTick\n * @param {VoidVarArgsFunc} callback - the callback to run\n * @param {...*} arguments - optional arguments to call the callback with\n * @returns {void}\n */\n\n/**\n * @callback SetImmediate\n * @param {VoidVarArgsFunc} callback - the callback to run\n * @param {...*} arguments - optional arguments to call the callback with\n * @returns {NodeImmediate}\n */\n\n/**\n * @callback VoidVarArgsFunc\n * @param {...*} callback - the callback to run\n * @returns {void}\n */\n\n/**\n * @typedef RequestAnimationFrame\n * @property {function(number):void} requestAnimationFrame\n * @returns {number} - the id\n */\n\n/**\n * @typedef Performance\n * @property {function(): number} now\n */\n\n/* eslint-disable jsdoc/require-property-description */\n/**\n * @typedef {object} Clock\n * @property {number} now - the current time\n * @property {Date} Date - the Date constructor\n * @property {number} loopLimit - the maximum number of timers before assuming an infinite loop\n * @property {RequestIdleCallback} requestIdleCallback\n * @property {function(number):void} cancelIdleCallback\n * @property {setTimeout} setTimeout\n * @property {clearTimeout} clearTimeout\n * @property {NextTick} nextTick\n * @property {queueMicrotask} queueMicrotask\n * @property {setInterval} setInterval\n * @property {clearInterval} clearInterval\n * @property {SetImmediate} setImmediate\n * @property {function(NodeImmediate):void} clearImmediate\n * @property {function():number} countTimers\n * @property {RequestAnimationFrame} requestAnimationFrame\n * @property {function(number):void} cancelAnimationFrame\n * @property {function():void} runMicrotasks\n * @property {function(string | number): number} tick\n * @property {function(string | number): Promise} tickAsync\n * @property {function(): number} next\n * @property {function(): Promise} nextAsync\n * @property {function(): number} runAll\n * @property {function(): number} runToFrame\n * @property {function(): Promise} runAllAsync\n * @property {function(): number} runToLast\n * @property {function(): Promise} runToLastAsync\n * @property {function(): void} reset\n * @property {function(number | Date): void} setSystemTime\n * @property {Performance} performance\n * @property {function(number[]): number[]} hrtime - process.hrtime (legacy)\n * @property {function(): void} uninstall Uninstall the clock.\n * @property {Function[]} methods - the methods that are faked\n * @property {boolean} [shouldClearNativeTimers] inherited from config\n */\n/* eslint-enable jsdoc/require-property-description */\n\n/**\n * Configuration object for the `install` method.\n *\n * @typedef {object} Config\n * @property {number|Date} [now] a number (in milliseconds) or a Date object (default epoch)\n * @property {string[]} [toFake] names of the methods that should be faked.\n * @property {number} [loopLimit] the maximum number of timers that will be run when calling runAll()\n * @property {boolean} [shouldAdvanceTime] tells FakeTimers to increment mocked time automatically (default false)\n * @property {number} [advanceTimeDelta] increment mocked time every <> ms (default: 20ms)\n * @property {boolean} [shouldClearNativeTimers] forwards clear timer calls to native functions if they are not fakes (default: false)\n */\n\n/* eslint-disable jsdoc/require-property-description */\n/**\n * The internal structure to describe a scheduled fake timer\n *\n * @typedef {object} Timer\n * @property {Function} func\n * @property {*[]} args\n * @property {number} delay\n * @property {number} callAt\n * @property {number} createdAt\n * @property {boolean} immediate\n * @property {number} id\n * @property {Error} [error]\n */\n\n/**\n * A Node timer\n *\n * @typedef {object} NodeImmediate\n * @property {function(): boolean} hasRef\n * @property {function(): NodeImmediate} ref\n * @property {function(): NodeImmediate} unref\n */\n/* eslint-enable jsdoc/require-property-description */\n\n/* eslint-disable complexity */\n\n/**\n * Mocks available features in the specified global namespace.\n *\n * @param {*} _global Namespace to mock (e.g. `window`)\n * @returns {FakeTimers}\n */\nfunction withGlobal(_global) {\n const userAgent = _global.navigator && _global.navigator.userAgent;\n const isRunningInIE = userAgent && userAgent.indexOf(\"MSIE \") > -1;\n const maxTimeout = Math.pow(2, 31) - 1; //see https://heycam.github.io/webidl/#abstract-opdef-converttoint\n const idCounterStart = 1e12; // arbitrarily large number to avoid collisions with native timer IDs\n const NOOP = function () {\n return undefined;\n };\n const NOOP_ARRAY = function () {\n return [];\n };\n const timeoutResult = _global.setTimeout(NOOP, 0);\n const addTimerReturnsObject = typeof timeoutResult === \"object\";\n const hrtimePresent =\n _global.process && typeof _global.process.hrtime === \"function\";\n const hrtimeBigintPresent =\n hrtimePresent && typeof _global.process.hrtime.bigint === \"function\";\n const nextTickPresent =\n _global.process && typeof _global.process.nextTick === \"function\";\n const utilPromisify = _global.process && require$$0.promisify;\n const performancePresent =\n _global.performance && typeof _global.performance.now === \"function\";\n const hasPerformancePrototype =\n _global.Performance &&\n (typeof _global.Performance).match(/^(function|object)$/);\n const hasPerformanceConstructorPrototype =\n _global.performance &&\n _global.performance.constructor &&\n _global.performance.constructor.prototype;\n const queueMicrotaskPresent = _global.hasOwnProperty(\"queueMicrotask\");\n const requestAnimationFramePresent =\n _global.requestAnimationFrame &&\n typeof _global.requestAnimationFrame === \"function\";\n const cancelAnimationFramePresent =\n _global.cancelAnimationFrame &&\n typeof _global.cancelAnimationFrame === \"function\";\n const requestIdleCallbackPresent =\n _global.requestIdleCallback &&\n typeof _global.requestIdleCallback === \"function\";\n const cancelIdleCallbackPresent =\n _global.cancelIdleCallback &&\n typeof _global.cancelIdleCallback === \"function\";\n const setImmediatePresent =\n _global.setImmediate && typeof _global.setImmediate === \"function\";\n\n // Make properties writable in IE, as per\n // https://www.adequatelygood.com/Replacing-setTimeout-Globally.html\n /* eslint-disable no-self-assign */\n if (isRunningInIE) {\n _global.setTimeout = _global.setTimeout;\n _global.clearTimeout = _global.clearTimeout;\n _global.setInterval = _global.setInterval;\n _global.clearInterval = _global.clearInterval;\n _global.Date = _global.Date;\n }\n\n // setImmediate is not a standard function\n // avoid adding the prop to the window object if not present\n if (setImmediatePresent) {\n _global.setImmediate = _global.setImmediate;\n _global.clearImmediate = _global.clearImmediate;\n }\n /* eslint-enable no-self-assign */\n\n _global.clearTimeout(timeoutResult);\n\n const NativeDate = _global.Date;\n let uniqueTimerId = idCounterStart;\n\n /**\n * @param {number} num\n * @returns {boolean}\n */\n function isNumberFinite(num) {\n if (Number.isFinite) {\n return Number.isFinite(num);\n }\n\n return isFinite(num);\n }\n\n let isNearInfiniteLimit = false;\n\n /**\n * @param {Clock} clock\n * @param {number} i\n */\n function checkIsNearInfiniteLimit(clock, i) {\n if (clock.loopLimit && i === clock.loopLimit - 1) {\n isNearInfiniteLimit = true;\n }\n }\n\n /**\n *\n */\n function resetIsNearInfiniteLimit() {\n isNearInfiniteLimit = false;\n }\n\n /**\n * Parse strings like \"01:10:00\" (meaning 1 hour, 10 minutes, 0 seconds) into\n * number of milliseconds. This is used to support human-readable strings passed\n * to clock.tick()\n *\n * @param {string} str\n * @returns {number}\n */\n function parseTime(str) {\n if (!str) {\n return 0;\n }\n\n const strings = str.split(\":\");\n const l = strings.length;\n let i = l;\n let ms = 0;\n let parsed;\n\n if (l > 3 || !/^(\\d\\d:){0,2}\\d\\d?$/.test(str)) {\n throw new Error(\n \"tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits\"\n );\n }\n\n while (i--) {\n parsed = parseInt(strings[i], 10);\n\n if (parsed >= 60) {\n throw new Error(`Invalid time ${str}`);\n }\n\n ms += parsed * Math.pow(60, l - i - 1);\n }\n\n return ms * 1000;\n }\n\n /**\n * Get the decimal part of the millisecond value as nanoseconds\n *\n * @param {number} msFloat the number of milliseconds\n * @returns {number} an integer number of nanoseconds in the range [0,1e6)\n *\n * Example: nanoRemainer(123.456789) -> 456789\n */\n function nanoRemainder(msFloat) {\n const modulo = 1e6;\n const remainder = (msFloat * 1e6) % modulo;\n const positiveRemainder =\n remainder < 0 ? remainder + modulo : remainder;\n\n return Math.floor(positiveRemainder);\n }\n\n /**\n * Used to grok the `now` parameter to createClock.\n *\n * @param {Date|number} epoch the system time\n * @returns {number}\n */\n function getEpoch(epoch) {\n if (!epoch) {\n return 0;\n }\n if (typeof epoch.getTime === \"function\") {\n return epoch.getTime();\n }\n if (typeof epoch === \"number\") {\n return epoch;\n }\n throw new TypeError(\"now should be milliseconds since UNIX epoch\");\n }\n\n /**\n * @param {number} from\n * @param {number} to\n * @param {Timer} timer\n * @returns {boolean}\n */\n function inRange(from, to, timer) {\n return timer && timer.callAt >= from && timer.callAt <= to;\n }\n\n /**\n * @param {Clock} clock\n * @param {Timer} job\n */\n function getInfiniteLoopError(clock, job) {\n const infiniteLoopError = new Error(\n `Aborting after running ${clock.loopLimit} timers, assuming an infinite loop!`\n );\n\n if (!job.error) {\n return infiniteLoopError;\n }\n\n // pattern never matched in Node\n const computedTargetPattern = /target\\.*[<|(|[].*?[>|\\]|)]\\s*/;\n let clockMethodPattern = new RegExp(\n String(Object.keys(clock).join(\"|\"))\n );\n\n if (addTimerReturnsObject) {\n // node.js environment\n clockMethodPattern = new RegExp(\n `\\\\s+at (Object\\\\.)?(?:${Object.keys(clock).join(\"|\")})\\\\s+`\n );\n }\n\n let matchedLineIndex = -1;\n job.error.stack.split(\"\\n\").some(function (line, i) {\n // If we've matched a computed target line (e.g. setTimeout) then we\n // don't need to look any further. Return true to stop iterating.\n const matchedComputedTarget = line.match(computedTargetPattern);\n /* istanbul ignore if */\n if (matchedComputedTarget) {\n matchedLineIndex = i;\n return true;\n }\n\n // If we've matched a clock method line, then there may still be\n // others further down the trace. Return false to keep iterating.\n const matchedClockMethod = line.match(clockMethodPattern);\n if (matchedClockMethod) {\n matchedLineIndex = i;\n return false;\n }\n\n // If we haven't matched anything on this line, but we matched\n // previously and set the matched line index, then we can stop.\n // If we haven't matched previously, then we should keep iterating.\n return matchedLineIndex >= 0;\n });\n\n const stack = `${infiniteLoopError}\\n${job.type || \"Microtask\"} - ${\n job.func.name || \"anonymous\"\n }\\n${job.error.stack\n .split(\"\\n\")\n .slice(matchedLineIndex + 1)\n .join(\"\\n\")}`;\n\n try {\n Object.defineProperty(infiniteLoopError, \"stack\", {\n value: stack,\n });\n } catch (e) {\n // noop\n }\n\n return infiniteLoopError;\n }\n\n /**\n * @param {Date} target\n * @param {Date} source\n * @returns {Date} the target after modifications\n */\n function mirrorDateProperties(target, source) {\n let prop;\n for (prop in source) {\n if (source.hasOwnProperty(prop)) {\n target[prop] = source[prop];\n }\n }\n\n // set special now implementation\n if (source.now) {\n target.now = function now() {\n return target.clock.now;\n };\n } else {\n delete target.now;\n }\n\n // set special toSource implementation\n if (source.toSource) {\n target.toSource = function toSource() {\n return source.toSource();\n };\n } else {\n delete target.toSource;\n }\n\n // set special toString implementation\n target.toString = function toString() {\n return source.toString();\n };\n\n target.prototype = source.prototype;\n target.parse = source.parse;\n target.UTC = source.UTC;\n target.prototype.toUTCString = source.prototype.toUTCString;\n target.isFake = true;\n\n return target;\n }\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function createDate() {\n /**\n * @param {number} year\n * @param {number} month\n * @param {number} date\n * @param {number} hour\n * @param {number} minute\n * @param {number} second\n * @param {number} ms\n * @returns {Date}\n */\n function ClockDate(year, month, date, hour, minute, second, ms) {\n // the Date constructor called as a function, ref Ecma-262 Edition 5.1, section 15.9.2.\n // This remains so in the 10th edition of 2019 as well.\n if (!(this instanceof ClockDate)) {\n return new NativeDate(ClockDate.clock.now).toString();\n }\n\n // if Date is called as a constructor with 'new' keyword\n // Defensive and verbose to avoid potential harm in passing\n // explicit undefined when user does not pass argument\n switch (arguments.length) {\n case 0:\n return new NativeDate(ClockDate.clock.now);\n case 1:\n return new NativeDate(year);\n case 2:\n return new NativeDate(year, month);\n case 3:\n return new NativeDate(year, month, date);\n case 4:\n return new NativeDate(year, month, date, hour);\n case 5:\n return new NativeDate(year, month, date, hour, minute);\n case 6:\n return new NativeDate(\n year,\n month,\n date,\n hour,\n minute,\n second\n );\n default:\n return new NativeDate(\n year,\n month,\n date,\n hour,\n minute,\n second,\n ms\n );\n }\n }\n\n return mirrorDateProperties(ClockDate, NativeDate);\n }\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function enqueueJob(clock, job) {\n // enqueues a microtick-deferred task - ecma262/#sec-enqueuejob\n if (!clock.jobs) {\n clock.jobs = [];\n }\n clock.jobs.push(job);\n }\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function runJobs(clock) {\n // runs all microtick-deferred tasks - ecma262/#sec-runjobs\n if (!clock.jobs) {\n return;\n }\n for (let i = 0; i < clock.jobs.length; i++) {\n const job = clock.jobs[i];\n job.func.apply(null, job.args);\n\n checkIsNearInfiniteLimit(clock, i);\n if (clock.loopLimit && i > clock.loopLimit) {\n throw getInfiniteLoopError(clock, job);\n }\n }\n resetIsNearInfiniteLimit();\n clock.jobs = [];\n }\n\n /**\n * @param {Clock} clock\n * @param {Timer} timer\n * @returns {number} id of the created timer\n */\n function addTimer(clock, timer) {\n if (timer.func === undefined) {\n throw new Error(\"Callback must be provided to timer calls\");\n }\n\n if (addTimerReturnsObject) {\n // Node.js environment\n if (typeof timer.func !== \"function\") {\n throw new TypeError(\n `[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${\n timer.func\n } of type ${typeof timer.func}`\n );\n }\n }\n\n if (isNearInfiniteLimit) {\n timer.error = new Error();\n }\n\n timer.type = timer.immediate ? \"Immediate\" : \"Timeout\";\n\n if (timer.hasOwnProperty(\"delay\")) {\n if (typeof timer.delay !== \"number\") {\n timer.delay = parseInt(timer.delay, 10);\n }\n\n if (!isNumberFinite(timer.delay)) {\n timer.delay = 0;\n }\n timer.delay = timer.delay > maxTimeout ? 1 : timer.delay;\n timer.delay = Math.max(0, timer.delay);\n }\n\n if (timer.hasOwnProperty(\"interval\")) {\n timer.type = \"Interval\";\n timer.interval = timer.interval > maxTimeout ? 1 : timer.interval;\n }\n\n if (timer.hasOwnProperty(\"animation\")) {\n timer.type = \"AnimationFrame\";\n timer.animation = true;\n }\n\n if (timer.hasOwnProperty(\"idleCallback\")) {\n timer.type = \"IdleCallback\";\n timer.idleCallback = true;\n }\n\n if (!clock.timers) {\n clock.timers = {};\n }\n\n timer.id = uniqueTimerId++;\n timer.createdAt = clock.now;\n timer.callAt =\n clock.now + (parseInt(timer.delay) || (clock.duringTick ? 1 : 0));\n\n clock.timers[timer.id] = timer;\n\n if (addTimerReturnsObject) {\n const res = {\n refed: true,\n ref: function () {\n this.refed = true;\n return res;\n },\n unref: function () {\n this.refed = false;\n return res;\n },\n hasRef: function () {\n return this.refed;\n },\n refresh: function () {\n timer.callAt =\n clock.now +\n (parseInt(timer.delay) || (clock.duringTick ? 1 : 0));\n\n // it _might_ have been removed, but if not the assignment is perfectly fine\n clock.timers[timer.id] = timer;\n\n return res;\n },\n [Symbol.toPrimitive]: function () {\n return timer.id;\n },\n };\n return res;\n }\n\n return timer.id;\n }\n\n /* eslint consistent-return: \"off\" */\n /**\n * Timer comparitor\n *\n * @param {Timer} a\n * @param {Timer} b\n * @returns {number}\n */\n function compareTimers(a, b) {\n // Sort first by absolute timing\n if (a.callAt < b.callAt) {\n return -1;\n }\n if (a.callAt > b.callAt) {\n return 1;\n }\n\n // Sort next by immediate, immediate timers take precedence\n if (a.immediate && !b.immediate) {\n return -1;\n }\n if (!a.immediate && b.immediate) {\n return 1;\n }\n\n // Sort next by creation time, earlier-created timers take precedence\n if (a.createdAt < b.createdAt) {\n return -1;\n }\n if (a.createdAt > b.createdAt) {\n return 1;\n }\n\n // Sort next by id, lower-id timers take precedence\n if (a.id < b.id) {\n return -1;\n }\n if (a.id > b.id) {\n return 1;\n }\n\n // As timer ids are unique, no fallback `0` is necessary\n }\n\n /**\n * @param {Clock} clock\n * @param {number} from\n * @param {number} to\n * @returns {Timer}\n */\n function firstTimerInRange(clock, from, to) {\n const timers = clock.timers;\n let timer = null;\n let id, isInRange;\n\n for (id in timers) {\n if (timers.hasOwnProperty(id)) {\n isInRange = inRange(from, to, timers[id]);\n\n if (\n isInRange &&\n (!timer || compareTimers(timer, timers[id]) === 1)\n ) {\n timer = timers[id];\n }\n }\n }\n\n return timer;\n }\n\n /**\n * @param {Clock} clock\n * @returns {Timer}\n */\n function firstTimer(clock) {\n const timers = clock.timers;\n let timer = null;\n let id;\n\n for (id in timers) {\n if (timers.hasOwnProperty(id)) {\n if (!timer || compareTimers(timer, timers[id]) === 1) {\n timer = timers[id];\n }\n }\n }\n\n return timer;\n }\n\n /**\n * @param {Clock} clock\n * @returns {Timer}\n */\n function lastTimer(clock) {\n const timers = clock.timers;\n let timer = null;\n let id;\n\n for (id in timers) {\n if (timers.hasOwnProperty(id)) {\n if (!timer || compareTimers(timer, timers[id]) === -1) {\n timer = timers[id];\n }\n }\n }\n\n return timer;\n }\n\n /**\n * @param {Clock} clock\n * @param {Timer} timer\n */\n function callTimer(clock, timer) {\n if (typeof timer.interval === \"number\") {\n clock.timers[timer.id].callAt += timer.interval;\n } else {\n delete clock.timers[timer.id];\n }\n\n if (typeof timer.func === \"function\") {\n timer.func.apply(null, timer.args);\n } else {\n /* eslint no-eval: \"off\" */\n const eval2 = eval;\n (function () {\n eval2(timer.func);\n })();\n }\n }\n\n /**\n * Gets clear handler name for a given timer type\n *\n * @param {string} ttype\n */\n function getClearHandler(ttype) {\n if (ttype === \"IdleCallback\" || ttype === \"AnimationFrame\") {\n return `cancel${ttype}`;\n }\n return `clear${ttype}`;\n }\n\n /**\n * Gets schedule handler name for a given timer type\n *\n * @param {string} ttype\n */\n function getScheduleHandler(ttype) {\n if (ttype === \"IdleCallback\" || ttype === \"AnimationFrame\") {\n return `request${ttype}`;\n }\n return `set${ttype}`;\n }\n\n /**\n * Creates an anonymous function to warn only once\n */\n function createWarnOnce() {\n let calls = 0;\n return function (msg) {\n // eslint-disable-next-line\n !calls++ && console.warn(msg);\n };\n }\n const warnOnce = createWarnOnce();\n\n /**\n * @param {Clock} clock\n * @param {number} timerId\n * @param {string} ttype\n */\n function clearTimer(clock, timerId, ttype) {\n if (!timerId) {\n // null appears to be allowed in most browsers, and appears to be\n // relied upon by some libraries, like Bootstrap carousel\n return;\n }\n\n if (!clock.timers) {\n clock.timers = {};\n }\n\n // in Node, the ID is stored as the primitive value for `Timeout` objects\n // for `Immediate` objects, no ID exists, so it gets coerced to NaN\n const id = Number(timerId);\n\n if (Number.isNaN(id) || id < idCounterStart) {\n const handlerName = getClearHandler(ttype);\n\n if (clock.shouldClearNativeTimers === true) {\n const nativeHandler = clock[`_${handlerName}`];\n return typeof nativeHandler === \"function\"\n ? nativeHandler(timerId)\n : undefined;\n }\n warnOnce(\n `FakeTimers: ${handlerName} was invoked to clear a native timer instead of one created by this library.` +\n \"\\nTo automatically clean-up native timers, use `shouldClearNativeTimers`.\"\n );\n }\n\n if (clock.timers.hasOwnProperty(id)) {\n // check that the ID matches a timer of the correct type\n const timer = clock.timers[id];\n if (\n timer.type === ttype ||\n (timer.type === \"Timeout\" && ttype === \"Interval\") ||\n (timer.type === \"Interval\" && ttype === \"Timeout\")\n ) {\n delete clock.timers[id];\n } else {\n const clear = getClearHandler(ttype);\n const schedule = getScheduleHandler(timer.type);\n throw new Error(\n `Cannot clear timer: timer created with ${schedule}() but cleared with ${clear}()`\n );\n }\n }\n }\n\n /**\n * @param {Clock} clock\n * @param {Config} config\n * @returns {Timer[]}\n */\n function uninstall(clock, config) {\n let method, i, l;\n const installedHrTime = \"_hrtime\";\n const installedNextTick = \"_nextTick\";\n\n for (i = 0, l = clock.methods.length; i < l; i++) {\n method = clock.methods[i];\n if (method === \"hrtime\" && _global.process) {\n _global.process.hrtime = clock[installedHrTime];\n } else if (method === \"nextTick\" && _global.process) {\n _global.process.nextTick = clock[installedNextTick];\n } else if (method === \"performance\") {\n const originalPerfDescriptor = Object.getOwnPropertyDescriptor(\n clock,\n `_${method}`\n );\n if (\n originalPerfDescriptor &&\n originalPerfDescriptor.get &&\n !originalPerfDescriptor.set\n ) {\n Object.defineProperty(\n _global,\n method,\n originalPerfDescriptor\n );\n } else if (originalPerfDescriptor.configurable) {\n _global[method] = clock[`_${method}`];\n }\n } else {\n if (_global[method] && _global[method].hadOwnProperty) {\n _global[method] = clock[`_${method}`];\n } else {\n try {\n delete _global[method];\n } catch (ignore) {\n /* eslint no-empty: \"off\" */\n }\n }\n }\n }\n\n if (config.shouldAdvanceTime === true) {\n _global.clearInterval(clock.attachedInterval);\n }\n\n // Prevent multiple executions which will completely remove these props\n clock.methods = [];\n\n // return pending timers, to enable checking what timers remained on uninstall\n if (!clock.timers) {\n return [];\n }\n return Object.keys(clock.timers).map(function mapper(key) {\n return clock.timers[key];\n });\n }\n\n /**\n * @param {object} target the target containing the method to replace\n * @param {string} method the keyname of the method on the target\n * @param {Clock} clock\n */\n function hijackMethod(target, method, clock) {\n clock[method].hadOwnProperty = Object.prototype.hasOwnProperty.call(\n target,\n method\n );\n clock[`_${method}`] = target[method];\n\n if (method === \"Date\") {\n const date = mirrorDateProperties(clock[method], target[method]);\n target[method] = date;\n } else if (method === \"performance\") {\n const originalPerfDescriptor = Object.getOwnPropertyDescriptor(\n target,\n method\n );\n // JSDOM has a read only performance field so we have to save/copy it differently\n if (\n originalPerfDescriptor &&\n originalPerfDescriptor.get &&\n !originalPerfDescriptor.set\n ) {\n Object.defineProperty(\n clock,\n `_${method}`,\n originalPerfDescriptor\n );\n\n const perfDescriptor = Object.getOwnPropertyDescriptor(\n clock,\n method\n );\n Object.defineProperty(target, method, perfDescriptor);\n } else {\n target[method] = clock[method];\n }\n } else {\n target[method] = function () {\n return clock[method].apply(clock, arguments);\n };\n\n Object.defineProperties(\n target[method],\n Object.getOwnPropertyDescriptors(clock[method])\n );\n }\n\n target[method].clock = clock;\n }\n\n /**\n * @param {Clock} clock\n * @param {number} advanceTimeDelta\n */\n function doIntervalTick(clock, advanceTimeDelta) {\n clock.tick(advanceTimeDelta);\n }\n\n /**\n * @typedef {object} Timers\n * @property {setTimeout} setTimeout\n * @property {clearTimeout} clearTimeout\n * @property {setInterval} setInterval\n * @property {clearInterval} clearInterval\n * @property {Date} Date\n * @property {SetImmediate=} setImmediate\n * @property {function(NodeImmediate): void=} clearImmediate\n * @property {function(number[]):number[]=} hrtime\n * @property {NextTick=} nextTick\n * @property {Performance=} performance\n * @property {RequestAnimationFrame=} requestAnimationFrame\n * @property {boolean=} queueMicrotask\n * @property {function(number): void=} cancelAnimationFrame\n * @property {RequestIdleCallback=} requestIdleCallback\n * @property {function(number): void=} cancelIdleCallback\n */\n\n /** @type {Timers} */\n const timers = {\n setTimeout: _global.setTimeout,\n clearTimeout: _global.clearTimeout,\n setInterval: _global.setInterval,\n clearInterval: _global.clearInterval,\n Date: _global.Date,\n };\n\n if (setImmediatePresent) {\n timers.setImmediate = _global.setImmediate;\n timers.clearImmediate = _global.clearImmediate;\n }\n\n if (hrtimePresent) {\n timers.hrtime = _global.process.hrtime;\n }\n\n if (nextTickPresent) {\n timers.nextTick = _global.process.nextTick;\n }\n\n if (performancePresent) {\n timers.performance = _global.performance;\n }\n\n if (requestAnimationFramePresent) {\n timers.requestAnimationFrame = _global.requestAnimationFrame;\n }\n\n if (queueMicrotaskPresent) {\n timers.queueMicrotask = true;\n }\n\n if (cancelAnimationFramePresent) {\n timers.cancelAnimationFrame = _global.cancelAnimationFrame;\n }\n\n if (requestIdleCallbackPresent) {\n timers.requestIdleCallback = _global.requestIdleCallback;\n }\n\n if (cancelIdleCallbackPresent) {\n timers.cancelIdleCallback = _global.cancelIdleCallback;\n }\n\n const originalSetTimeout = _global.setImmediate || _global.setTimeout;\n\n /**\n * @param {Date|number} [start] the system time - non-integer values are floored\n * @param {number} [loopLimit] maximum number of timers that will be run when calling runAll()\n * @returns {Clock}\n */\n function createClock(start, loopLimit) {\n // eslint-disable-next-line no-param-reassign\n start = Math.floor(getEpoch(start));\n // eslint-disable-next-line no-param-reassign\n loopLimit = loopLimit || 1000;\n let nanos = 0;\n const adjustedSystemTime = [0, 0]; // [millis, nanoremainder]\n\n if (NativeDate === undefined) {\n throw new Error(\n \"The global scope doesn't have a `Date` object\" +\n \" (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)\"\n );\n }\n\n const clock = {\n now: start,\n Date: createDate(),\n loopLimit: loopLimit,\n };\n\n clock.Date.clock = clock;\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function getTimeToNextFrame() {\n return 16 - ((clock.now - start) % 16);\n }\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function hrtime(prev) {\n const millisSinceStart = clock.now - adjustedSystemTime[0] - start;\n const secsSinceStart = Math.floor(millisSinceStart / 1000);\n const remainderInNanos =\n (millisSinceStart - secsSinceStart * 1e3) * 1e6 +\n nanos -\n adjustedSystemTime[1];\n\n if (Array.isArray(prev)) {\n if (prev[1] > 1e9) {\n throw new TypeError(\n \"Number of nanoseconds can't exceed a billion\"\n );\n }\n\n const oldSecs = prev[0];\n let nanoDiff = remainderInNanos - prev[1];\n let secDiff = secsSinceStart - oldSecs;\n\n if (nanoDiff < 0) {\n nanoDiff += 1e9;\n secDiff -= 1;\n }\n\n return [secDiff, nanoDiff];\n }\n return [secsSinceStart, remainderInNanos];\n }\n\n function fakePerformanceNow() {\n const hrt = hrtime();\n const millis = hrt[0] * 1000 + hrt[1] / 1e6;\n return millis;\n }\n\n if (hrtimeBigintPresent) {\n hrtime.bigint = function () {\n const parts = hrtime();\n return BigInt(parts[0]) * BigInt(1e9) + BigInt(parts[1]); // eslint-disable-line\n };\n }\n\n clock.requestIdleCallback = function requestIdleCallback(\n func,\n timeout\n ) {\n let timeToNextIdlePeriod = 0;\n\n if (clock.countTimers() > 0) {\n timeToNextIdlePeriod = 50; // const for now\n }\n\n const result = addTimer(clock, {\n func: func,\n args: Array.prototype.slice.call(arguments, 2),\n delay:\n typeof timeout === \"undefined\"\n ? timeToNextIdlePeriod\n : Math.min(timeout, timeToNextIdlePeriod),\n idleCallback: true,\n });\n\n return Number(result);\n };\n\n clock.cancelIdleCallback = function cancelIdleCallback(timerId) {\n return clearTimer(clock, timerId, \"IdleCallback\");\n };\n\n clock.setTimeout = function setTimeout(func, timeout) {\n return addTimer(clock, {\n func: func,\n args: Array.prototype.slice.call(arguments, 2),\n delay: timeout,\n });\n };\n if (typeof _global.Promise !== \"undefined\" && utilPromisify) {\n clock.setTimeout[utilPromisify.custom] =\n function promisifiedSetTimeout(timeout, arg) {\n return new _global.Promise(function setTimeoutExecutor(\n resolve\n ) {\n addTimer(clock, {\n func: resolve,\n args: [arg],\n delay: timeout,\n });\n });\n };\n }\n\n clock.clearTimeout = function clearTimeout(timerId) {\n return clearTimer(clock, timerId, \"Timeout\");\n };\n\n clock.nextTick = function nextTick(func) {\n return enqueueJob(clock, {\n func: func,\n args: Array.prototype.slice.call(arguments, 1),\n error: isNearInfiniteLimit ? new Error() : null,\n });\n };\n\n clock.queueMicrotask = function queueMicrotask(func) {\n return clock.nextTick(func); // explicitly drop additional arguments\n };\n\n clock.setInterval = function setInterval(func, timeout) {\n // eslint-disable-next-line no-param-reassign\n timeout = parseInt(timeout, 10);\n return addTimer(clock, {\n func: func,\n args: Array.prototype.slice.call(arguments, 2),\n delay: timeout,\n interval: timeout,\n });\n };\n\n clock.clearInterval = function clearInterval(timerId) {\n return clearTimer(clock, timerId, \"Interval\");\n };\n\n if (setImmediatePresent) {\n clock.setImmediate = function setImmediate(func) {\n return addTimer(clock, {\n func: func,\n args: Array.prototype.slice.call(arguments, 1),\n immediate: true,\n });\n };\n\n if (typeof _global.Promise !== \"undefined\" && utilPromisify) {\n clock.setImmediate[utilPromisify.custom] =\n function promisifiedSetImmediate(arg) {\n return new _global.Promise(\n function setImmediateExecutor(resolve) {\n addTimer(clock, {\n func: resolve,\n args: [arg],\n immediate: true,\n });\n }\n );\n };\n }\n\n clock.clearImmediate = function clearImmediate(timerId) {\n return clearTimer(clock, timerId, \"Immediate\");\n };\n }\n\n clock.countTimers = function countTimers() {\n return (\n Object.keys(clock.timers || {}).length +\n (clock.jobs || []).length\n );\n };\n\n clock.requestAnimationFrame = function requestAnimationFrame(func) {\n const result = addTimer(clock, {\n func: func,\n delay: getTimeToNextFrame(),\n get args() {\n return [fakePerformanceNow()];\n },\n animation: true,\n });\n\n return Number(result);\n };\n\n clock.cancelAnimationFrame = function cancelAnimationFrame(timerId) {\n return clearTimer(clock, timerId, \"AnimationFrame\");\n };\n\n clock.runMicrotasks = function runMicrotasks() {\n runJobs(clock);\n };\n\n /**\n * @param {number|string} tickValue milliseconds or a string parseable by parseTime\n * @param {boolean} isAsync\n * @param {Function} resolve\n * @param {Function} reject\n * @returns {number|undefined} will return the new `now` value or nothing for async\n */\n function doTick(tickValue, isAsync, resolve, reject) {\n const msFloat =\n typeof tickValue === \"number\"\n ? tickValue\n : parseTime(tickValue);\n const ms = Math.floor(msFloat);\n const remainder = nanoRemainder(msFloat);\n let nanosTotal = nanos + remainder;\n let tickTo = clock.now + ms;\n\n if (msFloat < 0) {\n throw new TypeError(\"Negative ticks are not supported\");\n }\n\n // adjust for positive overflow\n if (nanosTotal >= 1e6) {\n tickTo += 1;\n nanosTotal -= 1e6;\n }\n\n nanos = nanosTotal;\n let tickFrom = clock.now;\n let previous = clock.now;\n // ESLint fails to detect this correctly\n /* eslint-disable prefer-const */\n let timer,\n firstException,\n oldNow,\n nextPromiseTick,\n compensationCheck,\n postTimerCall;\n /* eslint-enable prefer-const */\n\n clock.duringTick = true;\n\n // perform microtasks\n oldNow = clock.now;\n runJobs(clock);\n if (oldNow !== clock.now) {\n // compensate for any setSystemTime() call during microtask callback\n tickFrom += clock.now - oldNow;\n tickTo += clock.now - oldNow;\n }\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function doTickInner() {\n // perform each timer in the requested range\n timer = firstTimerInRange(clock, tickFrom, tickTo);\n // eslint-disable-next-line no-unmodified-loop-condition\n while (timer && tickFrom <= tickTo) {\n if (clock.timers[timer.id]) {\n tickFrom = timer.callAt;\n clock.now = timer.callAt;\n oldNow = clock.now;\n try {\n runJobs(clock);\n callTimer(clock, timer);\n } catch (e) {\n firstException = firstException || e;\n }\n\n if (isAsync) {\n // finish up after native setImmediate callback to allow\n // all native es6 promises to process their callbacks after\n // each timer fires.\n originalSetTimeout(nextPromiseTick);\n return;\n }\n\n compensationCheck();\n }\n\n postTimerCall();\n }\n\n // perform process.nextTick()s again\n oldNow = clock.now;\n runJobs(clock);\n if (oldNow !== clock.now) {\n // compensate for any setSystemTime() call during process.nextTick() callback\n tickFrom += clock.now - oldNow;\n tickTo += clock.now - oldNow;\n }\n clock.duringTick = false;\n\n // corner case: during runJobs new timers were scheduled which could be in the range [clock.now, tickTo]\n timer = firstTimerInRange(clock, tickFrom, tickTo);\n if (timer) {\n try {\n clock.tick(tickTo - clock.now); // do it all again - for the remainder of the requested range\n } catch (e) {\n firstException = firstException || e;\n }\n } else {\n // no timers remaining in the requested range: move the clock all the way to the end\n clock.now = tickTo;\n\n // update nanos\n nanos = nanosTotal;\n }\n if (firstException) {\n throw firstException;\n }\n\n if (isAsync) {\n resolve(clock.now);\n } else {\n return clock.now;\n }\n }\n\n nextPromiseTick =\n isAsync &&\n function () {\n try {\n compensationCheck();\n postTimerCall();\n doTickInner();\n } catch (e) {\n reject(e);\n }\n };\n\n compensationCheck = function () {\n // compensate for any setSystemTime() call during timer callback\n if (oldNow !== clock.now) {\n tickFrom += clock.now - oldNow;\n tickTo += clock.now - oldNow;\n previous += clock.now - oldNow;\n }\n };\n\n postTimerCall = function () {\n timer = firstTimerInRange(clock, previous, tickTo);\n previous = tickFrom;\n };\n\n return doTickInner();\n }\n\n /**\n * @param {string|number} tickValue number of milliseconds or a human-readable value like \"01:11:15\"\n * @returns {number} will return the new `now` value\n */\n clock.tick = function tick(tickValue) {\n return doTick(tickValue, false);\n };\n\n if (typeof _global.Promise !== \"undefined\") {\n /**\n * @param {string|number} tickValue number of milliseconds or a human-readable value like \"01:11:15\"\n * @returns {Promise}\n */\n clock.tickAsync = function tickAsync(tickValue) {\n return new _global.Promise(function (resolve, reject) {\n originalSetTimeout(function () {\n try {\n doTick(tickValue, true, resolve, reject);\n } catch (e) {\n reject(e);\n }\n });\n });\n };\n }\n\n clock.next = function next() {\n runJobs(clock);\n const timer = firstTimer(clock);\n if (!timer) {\n return clock.now;\n }\n\n clock.duringTick = true;\n try {\n clock.now = timer.callAt;\n callTimer(clock, timer);\n runJobs(clock);\n return clock.now;\n } finally {\n clock.duringTick = false;\n }\n };\n\n if (typeof _global.Promise !== \"undefined\") {\n clock.nextAsync = function nextAsync() {\n return new _global.Promise(function (resolve, reject) {\n originalSetTimeout(function () {\n try {\n const timer = firstTimer(clock);\n if (!timer) {\n resolve(clock.now);\n return;\n }\n\n let err;\n clock.duringTick = true;\n clock.now = timer.callAt;\n try {\n callTimer(clock, timer);\n } catch (e) {\n err = e;\n }\n clock.duringTick = false;\n\n originalSetTimeout(function () {\n if (err) {\n reject(err);\n } else {\n resolve(clock.now);\n }\n });\n } catch (e) {\n reject(e);\n }\n });\n });\n };\n }\n\n clock.runAll = function runAll() {\n let numTimers, i;\n runJobs(clock);\n for (i = 0; i < clock.loopLimit; i++) {\n if (!clock.timers) {\n resetIsNearInfiniteLimit();\n return clock.now;\n }\n\n numTimers = Object.keys(clock.timers).length;\n if (numTimers === 0) {\n resetIsNearInfiniteLimit();\n return clock.now;\n }\n\n clock.next();\n checkIsNearInfiniteLimit(clock, i);\n }\n\n const excessJob = firstTimer(clock);\n throw getInfiniteLoopError(clock, excessJob);\n };\n\n clock.runToFrame = function runToFrame() {\n return clock.tick(getTimeToNextFrame());\n };\n\n if (typeof _global.Promise !== \"undefined\") {\n clock.runAllAsync = function runAllAsync() {\n return new _global.Promise(function (resolve, reject) {\n let i = 0;\n /**\n *\n */\n function doRun() {\n originalSetTimeout(function () {\n try {\n let numTimers;\n if (i < clock.loopLimit) {\n if (!clock.timers) {\n resetIsNearInfiniteLimit();\n resolve(clock.now);\n return;\n }\n\n numTimers = Object.keys(\n clock.timers\n ).length;\n if (numTimers === 0) {\n resetIsNearInfiniteLimit();\n resolve(clock.now);\n return;\n }\n\n clock.next();\n\n i++;\n\n doRun();\n checkIsNearInfiniteLimit(clock, i);\n return;\n }\n\n const excessJob = firstTimer(clock);\n reject(getInfiniteLoopError(clock, excessJob));\n } catch (e) {\n reject(e);\n }\n });\n }\n doRun();\n });\n };\n }\n\n clock.runToLast = function runToLast() {\n const timer = lastTimer(clock);\n if (!timer) {\n runJobs(clock);\n return clock.now;\n }\n\n return clock.tick(timer.callAt - clock.now);\n };\n\n if (typeof _global.Promise !== \"undefined\") {\n clock.runToLastAsync = function runToLastAsync() {\n return new _global.Promise(function (resolve, reject) {\n originalSetTimeout(function () {\n try {\n const timer = lastTimer(clock);\n if (!timer) {\n resolve(clock.now);\n }\n\n resolve(clock.tickAsync(timer.callAt - clock.now));\n } catch (e) {\n reject(e);\n }\n });\n });\n };\n }\n\n clock.reset = function reset() {\n nanos = 0;\n clock.timers = {};\n clock.jobs = [];\n clock.now = start;\n };\n\n clock.setSystemTime = function setSystemTime(systemTime) {\n // determine time difference\n const newNow = getEpoch(systemTime);\n const difference = newNow - clock.now;\n let id, timer;\n\n adjustedSystemTime[0] = adjustedSystemTime[0] + difference;\n adjustedSystemTime[1] = adjustedSystemTime[1] + nanos;\n // update 'system clock'\n clock.now = newNow;\n nanos = 0;\n\n // update timers and intervals to keep them stable\n for (id in clock.timers) {\n if (clock.timers.hasOwnProperty(id)) {\n timer = clock.timers[id];\n timer.createdAt += difference;\n timer.callAt += difference;\n }\n }\n };\n\n if (performancePresent) {\n clock.performance = Object.create(null);\n clock.performance.now = fakePerformanceNow;\n }\n\n if (hrtimePresent) {\n clock.hrtime = hrtime;\n }\n\n return clock;\n }\n\n /* eslint-disable complexity */\n\n /**\n * @param {Config=} [config] Optional config\n * @returns {Clock}\n */\n function install(config) {\n if (\n arguments.length > 1 ||\n config instanceof Date ||\n Array.isArray(config) ||\n typeof config === \"number\"\n ) {\n throw new TypeError(\n `FakeTimers.install called with ${String(\n config\n )} install requires an object parameter`\n );\n }\n\n if (_global.Date.isFake === true) {\n // Timers are already faked; this is a problem.\n // Make the user reset timers before continuing.\n throw new TypeError(\n \"Can't install fake timers twice on the same global object.\"\n );\n }\n\n // eslint-disable-next-line no-param-reassign\n config = typeof config !== \"undefined\" ? config : {};\n config.shouldAdvanceTime = config.shouldAdvanceTime || false;\n config.advanceTimeDelta = config.advanceTimeDelta || 20;\n config.shouldClearNativeTimers =\n config.shouldClearNativeTimers || false;\n\n if (config.target) {\n throw new TypeError(\n \"config.target is no longer supported. Use `withGlobal(target)` instead.\"\n );\n }\n\n let i, l;\n const clock = createClock(config.now, config.loopLimit);\n clock.shouldClearNativeTimers = config.shouldClearNativeTimers;\n\n clock.uninstall = function () {\n return uninstall(clock, config);\n };\n\n clock.methods = config.toFake || [];\n\n if (clock.methods.length === 0) {\n // do not fake nextTick by default - GitHub#126\n clock.methods = Object.keys(timers).filter(function (key) {\n return key !== \"nextTick\" && key !== \"queueMicrotask\";\n });\n }\n\n if (config.shouldAdvanceTime === true) {\n const intervalTick = doIntervalTick.bind(\n null,\n clock,\n config.advanceTimeDelta\n );\n const intervalId = _global.setInterval(\n intervalTick,\n config.advanceTimeDelta\n );\n clock.attachedInterval = intervalId;\n }\n\n if (clock.methods.includes(\"performance\")) {\n const proto = (() => {\n if (hasPerformancePrototype) {\n return _global.Performance.prototype;\n }\n if (hasPerformanceConstructorPrototype) {\n return _global.performance.constructor.prototype;\n }\n })();\n if (proto) {\n Object.getOwnPropertyNames(proto).forEach(function (name) {\n if (name !== \"now\") {\n clock.performance[name] =\n name.indexOf(\"getEntries\") === 0\n ? NOOP_ARRAY\n : NOOP;\n }\n });\n } else if ((config.toFake || []).includes(\"performance\")) {\n // user explicitly tried to fake performance when not present\n throw new ReferenceError(\n \"non-existent performance object cannot be faked\"\n );\n }\n }\n\n for (i = 0, l = clock.methods.length; i < l; i++) {\n const nameOfMethodToReplace = clock.methods[i];\n if (nameOfMethodToReplace === \"hrtime\") {\n if (\n _global.process &&\n typeof _global.process.hrtime === \"function\"\n ) {\n hijackMethod(_global.process, nameOfMethodToReplace, clock);\n }\n } else if (nameOfMethodToReplace === \"nextTick\") {\n if (\n _global.process &&\n typeof _global.process.nextTick === \"function\"\n ) {\n hijackMethod(_global.process, nameOfMethodToReplace, clock);\n }\n } else {\n hijackMethod(_global, nameOfMethodToReplace, clock);\n }\n }\n\n return clock;\n }\n\n /* eslint-enable complexity */\n\n return {\n timers: timers,\n createClock: createClock,\n install: install,\n withGlobal: withGlobal,\n };\n}\n\n/**\n * @typedef {object} FakeTimers\n * @property {Timers} timers\n * @property {createClock} createClock\n * @property {Function} install\n * @property {withGlobal} withGlobal\n */\n\n/* eslint-enable complexity */\n\n/** @type {FakeTimers} */\nconst defaultImplementation = withGlobal(globalObject);\n\ndefaultImplementation.timers;\ndefaultImplementation.createClock;\ndefaultImplementation.install;\nvar withGlobal_1 = withGlobal;\n\nconst RealDate = Date;\nlet now = null;\nclass MockDate extends RealDate {\n constructor(y, m, d, h, M, s, ms) {\n super();\n let date;\n switch (arguments.length) {\n case 0:\n if (now !== null)\n date = new RealDate(now.valueOf());\n else\n date = new RealDate();\n break;\n case 1:\n date = new RealDate(y);\n break;\n default:\n d = typeof d === \"undefined\" ? 1 : d;\n h = h || 0;\n M = M || 0;\n s = s || 0;\n ms = ms || 0;\n date = new RealDate(y, m, d, h, M, s, ms);\n break;\n }\n return date;\n }\n}\nMockDate.UTC = RealDate.UTC;\nMockDate.now = function() {\n return new MockDate().valueOf();\n};\nMockDate.parse = function(dateString) {\n return RealDate.parse(dateString);\n};\nMockDate.toString = function() {\n return RealDate.toString();\n};\nfunction mockDate(date) {\n const dateObj = new RealDate(date.valueOf());\n if (isNaN(dateObj.getTime()))\n throw new TypeError(`mockdate: The time set is an invalid date: ${date}`);\n globalThis.Date = MockDate;\n now = dateObj.valueOf();\n}\nfunction resetDate() {\n globalThis.Date = RealDate;\n}\n\nclass FakeTimers {\n constructor({\n global,\n config\n }) {\n this._now = RealDate.now;\n this._userConfig = config;\n this._fakingDate = false;\n this._fakingTime = false;\n this._fakeTimers = withGlobal_1(global);\n }\n clearAllTimers() {\n if (this._fakingTime)\n this._clock.reset();\n }\n dispose() {\n this.useRealTimers();\n }\n runAllTimers() {\n if (this._checkFakeTimers())\n this._clock.runAll();\n }\n async runAllTimersAsync() {\n if (this._checkFakeTimers())\n await this._clock.runAllAsync();\n }\n runOnlyPendingTimers() {\n if (this._checkFakeTimers())\n this._clock.runToLast();\n }\n async runOnlyPendingTimersAsync() {\n if (this._checkFakeTimers())\n await this._clock.runToLastAsync();\n }\n advanceTimersToNextTimer(steps = 1) {\n if (this._checkFakeTimers()) {\n for (let i = steps; i > 0; i--) {\n this._clock.next();\n this._clock.tick(0);\n if (this._clock.countTimers() === 0)\n break;\n }\n }\n }\n async advanceTimersToNextTimerAsync(steps = 1) {\n if (this._checkFakeTimers()) {\n for (let i = steps; i > 0; i--) {\n await this._clock.nextAsync();\n this._clock.tick(0);\n if (this._clock.countTimers() === 0)\n break;\n }\n }\n }\n advanceTimersByTime(msToRun) {\n if (this._checkFakeTimers())\n this._clock.tick(msToRun);\n }\n async advanceTimersByTimeAsync(msToRun) {\n if (this._checkFakeTimers())\n await this._clock.tickAsync(msToRun);\n }\n runAllTicks() {\n if (this._checkFakeTimers()) {\n this._clock.runMicrotasks();\n }\n }\n useRealTimers() {\n if (this._fakingDate) {\n resetDate();\n this._fakingDate = false;\n }\n if (this._fakingTime) {\n this._clock.uninstall();\n this._fakingTime = false;\n }\n }\n useFakeTimers() {\n if (this._fakingDate) {\n throw new Error(\n '\"setSystemTime\" was called already and date was mocked. Reset timers using `vi.useRealTimers()` if you want to use fake timers again.'\n );\n }\n if (!this._fakingTime) {\n const toFake = Object.keys(this._fakeTimers.timers);\n this._clock = this._fakeTimers.install({\n now: Date.now(),\n toFake,\n ...this._userConfig\n });\n this._fakingTime = true;\n }\n }\n reset() {\n if (this._checkFakeTimers()) {\n const { now } = this._clock;\n this._clock.reset();\n this._clock.setSystemTime(now);\n }\n }\n setSystemTime(now) {\n if (this._fakingTime) {\n this._clock.setSystemTime(now);\n } else {\n mockDate(now ?? this.getRealSystemTime());\n this._fakingDate = true;\n }\n }\n getRealSystemTime() {\n return this._now();\n }\n getTimerCount() {\n if (this._checkFakeTimers())\n return this._clock.countTimers();\n return 0;\n }\n configure(config) {\n this._userConfig = config;\n }\n _checkFakeTimers() {\n if (!this._fakingTime) {\n throw new Error(\n 'Timers are not mocked. Try calling \"vi.useFakeTimers()\" first.'\n );\n }\n return this._fakingTime;\n }\n}\n\nfunction createVitest() {\n const _mocker = typeof __vitest_mocker__ !== \"undefined\" ? __vitest_mocker__ : new Proxy({}, {\n get(name) {\n throw new Error(\n `Vitest mocker was not initialized in this environment. vi.${name}() is forbidden.`\n );\n }\n });\n let _mockedDate = null;\n let _config = null;\n const workerState = getWorkerState();\n const _timers = new FakeTimers({\n global: globalThis,\n config: workerState.config.fakeTimers\n });\n const _stubsGlobal = /* @__PURE__ */ new Map();\n const _stubsEnv = /* @__PURE__ */ new Map();\n const getImporter = () => {\n const stackTrace = createSimpleStackTrace({ stackTraceLimit: 4 });\n const importerStack = stackTrace.split(\"\\n\")[4];\n const stack = parseSingleStack(importerStack);\n return (stack == null ? void 0 : stack.file) || \"\";\n };\n return {\n useFakeTimers(config) {\n if (config) {\n _timers.configure(config);\n } else {\n const workerState2 = getWorkerState();\n _timers.configure(workerState2.config.fakeTimers);\n }\n _timers.useFakeTimers();\n return this;\n },\n useRealTimers() {\n _timers.useRealTimers();\n _mockedDate = null;\n return this;\n },\n runOnlyPendingTimers() {\n _timers.runOnlyPendingTimers();\n return this;\n },\n async runOnlyPendingTimersAsync() {\n await _timers.runOnlyPendingTimersAsync();\n return this;\n },\n runAllTimers() {\n _timers.runAllTimers();\n return this;\n },\n async runAllTimersAsync() {\n await _timers.runAllTimersAsync();\n return this;\n },\n runAllTicks() {\n _timers.runAllTicks();\n return this;\n },\n advanceTimersByTime(ms) {\n _timers.advanceTimersByTime(ms);\n return this;\n },\n async advanceTimersByTimeAsync(ms) {\n await _timers.advanceTimersByTimeAsync(ms);\n return this;\n },\n advanceTimersToNextTimer() {\n _timers.advanceTimersToNextTimer();\n return this;\n },\n async advanceTimersToNextTimerAsync() {\n await _timers.advanceTimersToNextTimerAsync();\n return this;\n },\n getTimerCount() {\n return _timers.getTimerCount();\n },\n setSystemTime(time) {\n const date = time instanceof Date ? time : new Date(time);\n _mockedDate = date;\n _timers.setSystemTime(date);\n return this;\n },\n getMockedSystemTime() {\n return _mockedDate;\n },\n getRealSystemTime() {\n return _timers.getRealSystemTime();\n },\n clearAllTimers() {\n _timers.clearAllTimers();\n return this;\n },\n // mocks\n spyOn,\n fn,\n mock(path, factory) {\n const importer = getImporter();\n _mocker.queueMock(\n path,\n importer,\n factory ? () => factory(() => _mocker.importActual(path, importer)) : void 0\n );\n },\n unmock(path) {\n _mocker.queueUnmock(path, getImporter());\n },\n doMock(path, factory) {\n _mocker.queueMock(path, getImporter(), factory);\n },\n doUnmock(path) {\n _mocker.queueUnmock(path, getImporter());\n },\n async importActual(path) {\n return _mocker.importActual(path, getImporter());\n },\n async importMock(path) {\n return _mocker.importMock(path, getImporter());\n },\n mocked(item, _options = {}) {\n return item;\n },\n isMockFunction(fn2) {\n return isMockFunction(fn2);\n },\n clearAllMocks() {\n spies.forEach((spy) => spy.mockClear());\n return this;\n },\n resetAllMocks() {\n spies.forEach((spy) => spy.mockReset());\n return this;\n },\n restoreAllMocks() {\n spies.forEach((spy) => spy.mockRestore());\n return this;\n },\n stubGlobal(name, value) {\n if (!_stubsGlobal.has(name))\n _stubsGlobal.set(name, Object.getOwnPropertyDescriptor(globalThis, name));\n Object.defineProperty(globalThis, name, {\n value,\n writable: true,\n configurable: true,\n enumerable: true\n });\n return this;\n },\n stubEnv(name, value) {\n if (!_stubsEnv.has(name))\n _stubsEnv.set(name, process.env[name]);\n process.env[name] = value;\n return this;\n },\n unstubAllGlobals() {\n _stubsGlobal.forEach((original, name) => {\n if (!original)\n Reflect.deleteProperty(globalThis, name);\n else\n Object.defineProperty(globalThis, name, original);\n });\n _stubsGlobal.clear();\n return this;\n },\n unstubAllEnvs() {\n _stubsEnv.forEach((original, name) => {\n if (original === void 0)\n delete process.env[name];\n else\n process.env[name] = original;\n });\n _stubsEnv.clear();\n return this;\n },\n resetModules() {\n const state = getWorkerState();\n resetModules(state.moduleCache);\n return this;\n },\n async dynamicImportSettled() {\n return waitForImportsToResolve();\n },\n setConfig(config) {\n const state = getWorkerState();\n if (!_config)\n _config = { ...state.config };\n Object.assign(state.config, config);\n },\n resetConfig() {\n if (_config) {\n const state = getWorkerState();\n Object.assign(state.config, _config);\n }\n }\n };\n}\nconst vitest = createVitest();\nconst vi = vitest;\n\nexport { RealDate as R, getBenchOptions as a, getBenchFn as b, createExpect as c, globalExpect as d, bench as e, vitest as f, getSnapshotClient as g, setupChaiConfig as s, vi as v };\n"],"names":["assertTypes","value","name","types","receivedType","isObject","item","noop","objectAttr","source","path","defaultValue","paths","result","p","wrapAnsi256","offset","code","wrapAnsi16m","red","green","blue","assembleStyles","codes","styles","groupName","group","styleName","style","hex","matches","colorString","character","integer","module","collections","printIteratorEntries","printIteratorValues","printListItems","printObjectProperties","getKeysOfEnumerableProperties","object","compareKeys","keys","symbol","iterator","config","indentation","depth","refs","printer","separator","current","indentationNext","list","i","val","key","AsymmetricMatcher","_collections","require$$0","global","Symbol","asymmetricMatcher","SPACE","serialize","stringedValue","test","plugin","_default","ansiRegex","onlyFirst","pattern","ConvertAnsi","_ansiRegex","_interopRequireDefault","_ansiStyles","require$$1","obj","toHumanReadableAnsi","text","match","DOMCollection","OBJECT_NAMES","ARRAY_REGEXP","testName","isNamedNodeMap","collection","props","attribute","escapeHTML_1","escapeHTML","str","markup","_escapeHTML","printProps","colors","printed","printChildren","children","child","printText","contentColor","printComment","comment","commentColor","printElement","type","printedProps","printedChildren","tagColor","printElementAsLeaf","DOMElement","_markup","ELEMENT_NODE","TEXT_NODE","COMMENT_NODE","FRAGMENT_NODE","ELEMENT_REGEXP","testHasAttribute","testNode","constructorName","nodeType","tagName","isCustomElement","_val$constructor","nodeIsText","node","nodeIsComment","nodeIsFragment","attr","Immutable","IS_ITERABLE_SENTINEL","IS_LIST_SENTINEL","IS_KEYED_SENTINEL","IS_MAP_SENTINEL","IS_ORDERED_SENTINEL","IS_RECORD_SENTINEL","IS_SEQ_SENTINEL","IS_SET_SENTINEL","IS_STACK_SENTINEL","getImmutableName","printAsLeaf","LAZY","printImmutableEntries","getRecordEntries","printImmutableRecord","printImmutableSeq","printImmutableValues","b","c","d","e","f","g","h","k","l","m","n","q","r","u","v","w","x","y","a","t","z","A","B","C","D","E","F","G","H","I","reactIs_production_min","ReactElement","ReactIs","_interopRequireWildcard","_getRequireWildcardCache","nodeInterop","cacheBabelInterop","cacheNodeInterop","cache","newObj","hasPropertyDescriptor","desc","getChildren","arg","getType","element","functionName","getPropKeys","ReactTestComponent","testSymbol","build","format_1","format","plugins_1","_AsymmetricMatcher","require$$2","_ConvertAnsi","require$$3","_DOMCollection","require$$4","_DOMElement","require$$5","_Immutable","require$$6","_ReactElement","require$$7","_ReactTestComponent","require$$8","toString","toISOString","errorToString","regExpToString","getConstructorName","isWindow","SYMBOL_REGEXP","NEWLINE_REGEXP","PrettyFormatPluginError","message","stack","isToStringedArrayType","toStringed","printNumber","printBigInt","printFunction","printFunctionName","printSymbol","printError","printBasicValue","escapeRegex","escapeString","typeOf","printComplexValue","hasCalledToJSON","hitMaxDepth","min","isNewPlugin","printPlugin","valChild","error","findPlugin","plugins","basicResult","DEFAULT_THEME","DEFAULT_THEME_KEYS","DEFAULT_OPTIONS","validateOptions","options","getColorsHighlight","color","getColorsEmpty","getPrintFunctionName","getEscapeRegex","getEscapeString","getConfig","_options$printBasicPr","createIndent","indent","SAFE_TIMERS_SYMBOL","SAFE_COLORS_SYMBOL","colorsMap","colorsEntries","string","defaultColors","acc","getColors","shams","sym","symObj","symVal","syms","descriptor","hasSymbols","origSymbol","hasSymbolSham","ERROR_MESSAGE","slice","toStr","funcType","implementation","that","target","args","bound","binder","boundLength","boundArgs","Empty","functionBind","bind","src","undefined","$SyntaxError","$Function","$TypeError","getEvalledConstructor","expressionSyntax","$gOPD","throwTypeError","ThrowTypeError","getProto","needsEval","TypedArray","INTRINSICS","errorProto","doEval","fn","gen","LEGACY_ALIASES","hasOwn","$concat","$spliceApply","$replace","$strSlice","$exec","rePropName","reEscapeChar","stringToPath","first","last","number","quote","subString","getBaseIntrinsic","allowMissing","intrinsicName","alias","getIntrinsic","parts","intrinsicBaseName","intrinsic","intrinsicRealName","skipFurtherCaching","isOwn","part","GetIntrinsic","$apply","$call","$reflectApply","$defineProperty","$max","originalFunction","func","applyBind","callBind","$indexOf","callBound","hasToStringTag","$toString","isStandardArguments","isLegacyArguments","supportsStandardArguments","isArguments","fnToStr","isFnRegex","getGeneratorFunc","GeneratorFunction","isGeneratorFunction","generatorFunc","reflectApply","badArrayLike","isCallableMarker","_","constructorRegex","isES6ClassFn","fnStr","tryFunctionObject","objectClass","fnClass","genClass","ddaClass","ddaClass2","ddaClass3","isIE68","isDDA","all","isCallable","strClass","hasOwnProperty","forEachArray","array","receiver","len","forEachString","forEachObject","forEach","thisArg","forEach_1","possibleNames","availableTypedArrays","out","gopd","gOPD","typedArrays","$slice","toStrTags","getPrototypeOf","typedArray","arr","proto","superProto","tryTypedArrays","anyTrue","getter","isTypedArray","tag","foundName","whichTypedArray","isArgumentsObject","uncurryThis","BigIntSupported","SymbolSupported","ObjectToString","numberValue","stringValue","booleanValue","bigIntValue","symbolValue","checkBoxedPrimitive","prototypeValueOf","exports","isPromise","input","isArrayBufferView","isDataView","isUint8Array","isUint8ClampedArray","isUint16Array","isUint32Array","isInt8Array","isInt16Array","isInt32Array","isFloat32Array","isFloat64Array","isBigInt64Array","isBigUint64Array","isMapToString","isMap","isSetToString","isSet","isWeakMapToString","isWeakMap","isWeakSetToString","isWeakSet","isArrayBufferToString","isArrayBuffer","isDataViewToString","SharedArrayBufferCopy","isSharedArrayBufferToString","isSharedArrayBuffer","isAsyncFunction","isMapIterator","isSetIterator","isGeneratorObject","isWebAssemblyCompiledModule","isNumberObject","isStringObject","isBooleanObject","isBigIntObject","isSymbolObject","isBoxedPrimitive","isAnyArrayBuffer","method","isBufferBrowser","inherits_browserModule","ctor","superCtor","TempCtor","getOwnPropertyDescriptors","descriptors","formatRegExp","isString","objects","inspect","isNull","msg","warned","deprecated","debugs","debugEnvRegex","debugEnv","set","pid","opts","ctx","stylizeNoColor","isBoolean","isUndefined","stylizeWithColor","formatValue","styleType","arrayToHash","hash","idx","recurseTimes","isFunction","ret","primitive","formatPrimitive","visibleKeys","isError","formatError","isRegExp","isDate","base","braces","isArray","output","formatArray","formatProperty","reduceToSingleString","simple","isNumber","line","length","prev","cur","ar","isNullOrUndefined","isSymbol","re","objectToString","isPrimitive","o","pad","months","timestamp","time","origin","add","prop","kCustomPromisifiedSymbol","original","promiseResolve","promiseReject","promise","resolve","reject","err","callbackifyOnRejected","reason","cb","newReason","callbackify","callbackified","maybeCb","self","rej","__viteBrowserExternal","factory","this","_typeof","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","_arr","_n","_d","_e","_i","_s","minLen","_arrayLikeToArray","arr2","ansiColors","truncator","colorise","normaliseOptions","_ref","_ref$showHidden","showHidden","_ref$depth","_ref$colors","_ref$customInspect","customInspect","_ref$showProxy","showProxy","_ref$maxArrayLength","maxArrayLength","_ref$breakLength","breakLength","_ref$seen","seen","_ref$truncate","truncate","_ref$stylize","stylize","tail","tailLength","stringLength","inspectList","inspectItem","size","originalLength","peek","truncated","secondToLast","nextLength","truncatedLength","quoteComplexKey","inspectProperty","_ref2","_ref3","inspectArray","nonIndexProperties","listContents","propertyContents","functionNameMatch","getFuncName","aFunc","getFuncName_1","getArrayName","inspectTypedArray","inspectDate","dateObject","stringRepresentation","split","date","inspectFunction","inspectMapEntry","mapToEntries","map","entries","inspectMap","isNaN","inspectNumber","inspectBigInt","nums","inspectRegExp","flags","sourceLength","arrayFromSet","values","inspectSet","stringEscapeChars","escapeCharacters","unicodeLength","escape","char","inspectString","inspectSymbol","getPromiseValue","_process$binding","getPromiseDetails","kPending","kRejected","_getPromiseDetails","_getPromiseDetails2","state","innerValue","inspectPromise","inspectObject","properties","symbols","symbolContents","sep","toStringTag","inspectClass","inspectArguments","errorKeys","inspectObject$1","inspectAttribute","inspectHTMLCollection","inspectHTML","head","headClose","symbolsSupported","chaiInspect","nodeInspect","nodeUtil","FakeMap","constructorMap","stringTagMap","baseTypesMap","inspectCustom","toString$1","_options","registerConstructor","constructor","inspector","registerStringTag","stringTag","custom","PLUGINS","stringify","maxDepth","maxLength","MAX_LENGTH","format$1","getSafeTimers","safeSetTimeout","safeSetInterval","safeClearInterval","safeClearTimeout","safeSetImmediate","safeClearImmediate","safeNextTick","loupe","loupeImport","util","loupeInspect","objDisplay","truncateThreshold","createSimpleStackTrace","stackTraceLimit","limit","prepareStackTrace","stackTrace","normalizeWindowsPath","_IS_ABSOLUTE_RE","cwd","arguments_","argument","resolvedPath","resolvedAbsolute","index","isAbsolute","normalizeString","allowAboveRoot","res","lastSegmentLength","lastSlash","dots","lastSlashIndex","extractLocation","urlLike","parseSingleStack","raw","sanitizedLine","location","url","lineNumber","columnNumber","file","Circular$3","Circular_1","Circular","AMBIGUOUS","DEEP_EQUAL","SHALLOW_EQUAL","UNEQUAL","constants","Registry$1","pointer","Registry_1","Registry","ACTUAL","EXPECTED","translateGutter","theme","invert","gutter","Line","isFirst","isLast","other","Collection","infix","prefix","postfix","appended","lineOrLines","lines","buffer","from","otherLines","merged","seenLast","remaining","setDefaultGutter","iterable","lineBuilder","lineOrCollection","wrap","fromTheme","formatUtils","formatCtorAndStringTag","retval","ObjectFormatter$1","formatted","variant","methods","ObjectFormatter","SingleValueFormatter","finalizeFn","increaseIndent","getObjectKeys","excludeListItemAccessorsBelowLength","nameCandidates","symbolCandidates","accept","getObjectKeys_1","isLength","hop","hasLength","hasLength_1","NOOP_RECURSOR","recursorUtils","fork","recursor","next","consumeDeep","subject","mapFn","replay","create","done","sequence","second","fromFirst","singleValue","unshift","describeIterableRecursor","IterableStats","stats","describeListRecursor","ListStats","describePropertyRecursor","PropertyStats","deserializeIterableStats","deserializeListStats","deserializePropertyStats","iterableTag","listTag","propertyTag","Stats","expected","lhsRecursor","rhsRecursor","compareComplexShape","rhsFork","initialExpected","missing","lhsFork","actual","extraneous","describe","DescribedObjectValue","deserialize","DeserializedObjectValue","ObjectValue","DescribedMixin","DeserializedMixin","objectKeys","recursedProperty","recursedList","recursedIterable","DescribedArgumentsValue","_arguments","DeserializedArgumentsValue","ArgumentsValue","propertyStatsTag","getBuffer","DescribedTypedArrayValue","DeserializedTypedArrayValue","deserializeBytes","Bytes","bytesTag","TypedArrayValue","property","bytesDescriptor","DescribedArrayBufferValue","arrayBuffer","DeserializedArrayBufferValue","ArrayBufferValue","DIFF_DELETE","DIFF_INSERT","DIFF_EQUAL","diff_main","text1","text2","cursor_pos","_fix_unicode","editdiff","find_cursor_edit_diff","commonlength","diff_commonPrefix","commonprefix","diff_commonSuffix","commonsuffix","diffs","diff_compute_","diff_cleanupMerge","longtext","shorttext","hm","diff_halfMatch_","text1_a","text1_b","text2_a","text2_b","mid_common","diffs_a","diffs_b","diff_bisect_","text1_length","text2_length","max_d","v_offset","v_length","v1","v2","delta","front","k1start","k1end","k2start","k2end","k1","k1_offset","x1","y1","k2_offset","x2","diff_bisectSplit_","k2","y2","text1a","text2a","text1b","text2b","diffsb","pointermin","pointermax","pointermid","pointerstart","is_surrogate_pair_start","pointerend","is_surrogate_pair_end","diff_halfMatchI_","seed","j","best_common","best_longtext_a","best_longtext_b","best_shorttext_a","best_shorttext_b","prefixLength","suffixLength","hm1","hm2","fix_unicode","count_delete","count_insert","text_delete","text_insert","previous_equality","ends_with_pair_start","stray","starts_with_pair_end","changes","charCode","remove_empty_tuples","tuples","make_edit_splice","before","oldMiddle","newMiddle","after","oldText","newText","oldRange","newRange","oldLength","newLength","oldCursor","oldBefore","oldAfter","maybeNewCursor","editBefore","newCursor","newBefore","newAfter","oldPrefix","newPrefix","editAfter","cursor","oldSuffix","newSuffix","replaceRange","diff","diff_1","keyword","fastDiff","StringValue","basicEscape","CRLF_CONTROL_PICTURE","LF_CONTROL_PICTURE","CR_CONTROL_PICTURE","MATCH_CONTROL_PICTURES","escapeLinebreak","themeControlPictures","resetWrap","picture","MATCH_SINGLE_QUOTE","MATCH_DOUBLE_QUOTE","MATCH_BACKTICKS","escapeQuotes","includesLinebreaks","diffLine","outcome","isPartiallyEqual","stringActual","stringExpected","noopWrap","deleteWrap","insertWrap","equalWrap","deleteLineWrap","insertLineWrap","LINEBREAKS","gatherLines","prevIndex","escaped","lineStrings","lastIndex","escapedActual","escapedExpected","actualLines","expectedLines","lastActualIndex","lastExpectedIndex","actualBuffer","expectedBuffer","mustOpenNextExpected","actualIndex","expectedIndex","extraneousOffset","expectedIsMissing","compare","actualIsExtraneous","stringPrimitive","DescribedBoxedValue","boxed","DeserializedBoxedValue","BoxedValue","DescribedDataViewValue","dataView","DeserializedDataViewValue","DataViewValue","timeZone","absOffset","hours","minutes","minutesOut","dateTime","end","dateTimeModule","dateTime_1","invalid","DescribedDateValue","DeserializedDateValue","formatDate","DateValue","innerLines","iso","isEnumerable","isEnumerable_1","DescribedErrorValue","DeserializedErrorValue","ErrorValue","skipName","emitMessage","DescribedFunctionValue","_function","DeserializedFunctionValue","FunctionValue","GlobalValue","DescribedMapValue","DeserializedMapValue","MapValue","entry","DescribedPromiseValue","DeserializedPromiseValue","PromiseValue","regexp","DescribedRegexpValue","getSortedFlags","DeserializedRegexpValue","RegexpValue","innerIndentation","header","DescribedSetValue","DeserializedSetValue","SetValue","members","getCtor","getCtor_1","ts","getStringTag","fts","promiseCtorString","getStringTagModule","getStringTagWithPromiseWorkaround","describeComplex","ComplexItem","deserializeComplex","describePrimitive","PrimitiveItem","deserializePrimitive","complexTag","primitiveTag","increaseValueIndent","isCircular","mustRecurse","valueIndent","compareResult","baseAssignValue","eq","assignMergeValue","_assignMergeValue","isArrayLike","isObjectLike","isArrayLikeObject","isArrayLikeObject_1","safeGet","_safeGet","copyObject","keysIn","toPlainObject","toPlainObject_1","cloneBuffer","cloneTypedArray","copyArray","initCloneObject","isBuffer","require$$9","require$$10","isPlainObject","require$$11","require$$12","require$$13","require$$14","baseMergeDeep","srcIndex","mergeFunc","customizer","objValue","srcValue","stacked","newValue","isCommon","isArr","isBuff","isTyped","_baseMergeDeep","Stack","baseFor","baseMerge","_baseMerge","apply","_apply","nativeMax","overRest","start","transform","otherArgs","_overRest","constant","constant_1","defineProperty","identity","baseSetToString","_baseSetToString","HOT_COUNT","HOT_SPAN","nativeNow","shortOut","count","lastCalled","stamp","_shortOut","setToString","_setToString","baseRest","_baseRest","isIndex","isIterateeCall","_isIterateeCall","createAssigner","assigner","sources","guard","_createAssigner","merge","merge_1","SEMVER_SPEC_VERSION","MAX_SAFE_INTEGER","MAX_SAFE_COMPONENT_LENGTH","MAX_SAFE_BUILD_LENGTH","RELEASE_TYPES","debug","debug_1","safeRe","R","LETTERDASHNUMBER","safeRegexReplacements","makeSafeRegex","token","max","createToken","isGlobal","safe","looseOption","emptyOpts","parseOptions","parseOptions_1","numeric","compareIdentifiers","anum","bnum","rcompareIdentifiers","identifiers","SemVer$d","SemVer","version","id","num","release","identifier","identifierBase","prerelease","semver","parse","throwErrors","er","parse_1","valid","valid_1","clean","s","clean_1","inc","inc_1","version1","version2","comparison","v1Higher","highVersion","lowVersion","highHasPre","major","loose","major_1","minor","minor_1","patch","patch_1","parsed","prerelease_1","compare_1","rcompare","rcompare_1","compareLoose","compareLoose_1","compareBuild","versionA","versionB","compareBuild_1","sort","sort_1","rsort","rsort_1","gt","gt_1","lt","lt_1","eq_1","neq","neq_1","gte","gte_1","lte","lte_1","cmp","op","cmp_1","coerce","coerce_1","Yallist","walker","yallist","Node","push","thisp","initial","to","deleteCount","nodes","insert","inserted","MAX","LENGTH","LENGTH_CALCULATOR","ALLOW_STALE","MAX_AGE","DISPOSE","NO_DISPOSE_ON_SET","LRU_LIST","CACHE","UPDATE_AGE_ON_GET","naiveLength","LRUCache","lc","mL","trim","allowStale","mA","lC","hit","forEachStep","isStale","maxAge","now","del","Entry","get","expiresAt","doUse","lruCache","Range","range","Comparator","isNullSet","isAny","comps","memoKey","FLAG_INCLUDE_PRERELEASE","FLAG_LOOSE","cached","hr","hyphenReplace","comparatorTrimReplace","tildeTrimReplace","caretTrimReplace","rangeList","comp","parseComparator","replaceGTE0","rangeMap","comparators","thisComparators","isSatisfiable","rangeComparators","thisComparator","rangeComparator","testSet","LRU","remainingComparators","testComparator","otherComparator","replaceCarets","replaceTildes","replaceXRanges","replaceStars","isX","replaceTilde","M","pr","replaceCaret","replaceXRange","gtlt","xM","xm","xp","anyX","incPr","$0","fM","fm","fp","fpr","fb","tM","tm","tp","tpr","tb","allowed","ANY","comparator","satisfies","satisfies_1","toComparators","toComparators_1","maxSatisfying","versions","maxSV","rangeObj","maxSatisfying_1","minSatisfying","minSV","minSatisfying_1","minVersion","minver","setMin","compver","minVersion_1","validRange","outside","hilo","gtfn","ltefn","ltfn","ecomp","high","low","outside_1","gtr","gtr_1","ltr","ltr_1","intersects","r1","r2","intersects_1","simplify","ranges","simplified","subset","sub","dom","sawNonNull","OUTER","simpleSub","simpleDom","isSub","simpleSubset","minimumVersionWithPreRelease","minimumVersion","eqSet","higherGT","lowerLT","gtltComp","higher","lower","hasDomLT","hasDomGT","needDomLTPre","needDomGTPre","subset_1","internalRe","require$$15","require$$16","require$$17","require$$18","require$$19","require$$20","require$$21","require$$22","require$$23","require$$24","require$$25","require$$26","require$$27","require$$28","require$$29","require$$30","require$$31","require$$32","require$$33","require$$34","require$$35","require$$36","require$$37","require$$38","simplifyRange","require$$39","require$$40","jsStringEscape","WELL_KNOWN","wellKnownSymbols","stringEscape","stringCompare","SymbolValue","DeserializedSymbolValue","symbolPrimitive","ComplexProperty","PrimitiveProperty","Property","keyResult","pkg","itemDescriptor","propertyDescriptor","stringDescriptor","themeUtils","API_VERSION","CONCORDANCE_VERSION","descriptorRegistry","registry","PluginError","PluginTypeError","UnsupportedApiError","UnsupportedError","DuplicateDescriptorTagError","DuplicateDescriptorIdError","verify","publicDescriptorTags","publicLineBuilder","modifyTheme","modifier","id2deserialize","tag2id","addDescriptor","tryDescribeValue","registered","pluginRegistry","getDeserializers","getThemes","getTryDescribeValues","resolveDescriptorRef","cloneDeep","freezeTheme","queue","defaultTheme","pluginRefs","normalizedPluginThemes","normalizePlugins","themes","fromPlugin","ref","pluginTheme","normalizedCache","normalize","normalizedPlugins","modifiers","addModifier","modifierCache","originalCache","applyModifiers","modifiedTheme","applyModifiersToOriginal","keyDescriptor","valueDescriptor","keyIsPrimitive","valueIsPrimitive","MapEntry","mapEntry","mergeWithKey","keyRemainder","emitKey","emitValue","keysAreEqual","BigIntValue","bigInt","BooleanValue","boolean","NullValue","_null","NumberValue","UndefinedValue","_undefined","argumentsValue","arrayBufferValue","boxedValue","dataViewValue","dateValue","errorValue","functionValue","globalValue","mapValue","objectValue","promiseValue","regexpValue","setValue","typedArrayValue","mapEntryDescriptor","nullValue","undefinedValue","SpecializedComplexes","unboxComplex","complex","registerPlugins","tryFns","describeValue","tryPlugins","describeAny","describeItem","describeMapEntry","describeProperty","unboxed","curriedComplex","any","describe_1","argumentsObject","shouldCompareDeep","lhs","rhs","shouldCompareDeep_1","Comparable","ordered","processed","missingProperties","symbolProperties","Collector","firstProperty","shortcircuitPrimitive","compareDescriptors","lhsCircular","rhsCircular","lhsStack","rhsStack","topIndex","lhsRecord","rhsRecord","pass","Indenter$2","Indenter","level","step","Indenter_1","NOOP","alwaysFormat","collectedSymbolProperties","lhsCollector","rhsCollector","diffDescriptors","diffStack","diffIndex","builder","circular","depthOffset","formatStack","formatIndex","didFormat","formatter","record","firstPassSymbolProperty","parent","instructions","diffed","fixedIndent","formatDescriptor","$","safeAdd","lsw","msw","bitRotateLeft","cnt","md5cmn","md5ff","md5gg","md5hh","md5ii","binlMD5","olda","oldb","oldc","oldd","binl2rstr","length32","rstr2binl","length8","rstrMD5","rstrHMACMD5","data","bkey","ipad","opad","rstr2hex","hexTab","str2rstrUTF8","rawMD5","hexMD5","rawHMACMD5","hexHMACMD5","md5","blueimpMd5","browser","spreadableSymbol","isFlattenable","_isFlattenable","arrayPush","baseFlatten","predicate","isStrict","_baseFlatten","INFINITY","flattenDeep","flattenDeep_1","valueTypes","descriptorSymbol","encoder","encodeInteger","encoded","encodeValue","decodeValue","byteOffset","buildBuffer","numberOrArray","byte","buffers","byteLength","encode","serializerVersion","rootRecord","usedPlugins","versionHeader","rootOffset","numPlugins","pointers","recordHeader","decodePlugins","$numPlugins","$name","decodeRecord","$pluginIndex","pluginIndex","$id","$numPointers","numPointers","pointerAddresses","extractVersion","decode","pluginBuffer","Pointer","md5hex","pointerDescriptor","statsDescriptors","VERSION","mappings","mapping","DescriptorSerializationError","MissingPluginError","pluginName","PointerLookupError","UnsupportedPluginError","UnsupportedVersion","shallowSerializeDescriptor","resolvePluginRef","serializeState","serialized","serialize_1","deserializeState","getDescriptorDeserializer","shallowDeserializeDescriptor","deserializeRecord","deserializeDescriptor","endIndex","recursorRecord","buildPluginMap","cacheKey","decodedPlugins","pluginMap","deserializerLookup","deserializer","used","decoded","descriptorsByPointerIndex","mapPointerDescriptor","rootDescriptor","concordance","getConcordanceTheme","unifiedDiff","showLegend","counts","plus","minus","legend","createChainable","context","chain2","chain","getNames","task","names","_UNC_REGEX","_DRIVE_LETTER_RE","isUNCPath","isPathAbsolute","trailingSeparator","join","joined","dirname","segments","fnMap","hooksMap","setFn","setHooks","hooks","getHooks","collectorContext","collectTask","_a","runWithSuite","suite","withTimeout","timeout","isHook","setTimeout","clearTimeout","timer","makeTimeoutMsg","createTestContext","runner","createSuite","createTest","getCurrentSuite","defaultSuite","createSuiteHooks","createSuiteCollector","mode","concurrent","shuffle","suiteOptions","tasks","factoryQueue","suite2","initSuite","test2","name2","mode2","test3","collector","collect","clear","addHook","allChildren","suiteFn","cases","formatTemplateString","arrayOnlyCases","items","formatTitle","condition","testFn","fn2","template","oneCase","_test","getCurrentTest","getWorkerState","getCurrentEnvironment","isNode","getRunMode","isRunningInBenchmark","resetModules","modules","resetMocks","skipPaths","mod","exclude","excludes","excludeProps","assertionError","AssertionError","_props","ssf","extend","hasProperty","parsePath","mArr","internalGetPathValue","pathDepth","temporaryValue","internalSetPathValue","tempObj","propName","propVal","getPathInfo","info","getPathValue","setPathValue","pathval","flag","negate","expr","promiseExists","globalObject","symbolExists","mapExists","setExists","weakMapExists","weakSetExists","dataViewExists","symbolIteratorExists","symbolToStringTagExists","setEntriesExists","mapEntriesExists","setIteratorPrototype","mapIteratorPrototype","arrayIteratorExists","arrayIteratorPrototype","stringIteratorExists","stringIteratorPrototype","toStringLeftSliceLength","toStringRightSliceLength","typeDetect","typeofObj","objPrototype","expectTypes","flagMsg","ssfi","art","or","objType","getActual","inspect_1","kstr","getMessage","transferFlags","assertion","includeAll","MemoizeMap","memoizeCompare","leftHandOperand","rightHandOperand","memoizeMap","leftHandMap","memoizeSet","deepEqlModule","deepEqual","deepEql","extensiveDeepEqual","simpleResult","simpleEqual","memoizeResultLeft","memoizeResultRight","comparatorResult","leftHandType","extensiveDeepEqualByType","keysEqual","iterableEqual","regexpEqual","generatorEqual","entriesEqual","objectEqual","leftHandItems","rightHandItems","getGeneratorEntries","hasIteratorFunction","getIteratorEntries","generator","generatorResult","accumulator","getEnumerableKeys","getEnumerableSymbols","allKeys","leftHandKeys","rightHandKeys","leftHandSymbols","rightHandSymbols","mapSymbols","leftHandEntries","rightHandEntries","isProxyEnabled","chai","addProperty","propertyGetter","newAssertion","fnLengthDesc","addLengthGuard","assertionName","isChainable","getProperties","builtins","proxify","nonChainableMethodName","proxyGetter","suggestion","suggestionDistance","dist","stringDistanceCapped","strA","strB","cap","memo","ch","addMethod","methodWrapper","overwriteProperty","_get","_super","overwritingPropertyGetter","origLockSsfi","overwriteMethod","_method","overwritingMethodWrapper","canSetPrototype","excludeNames","propDesc","call","addChainableMethod","chainingBehavior","chainableBehavior","chainableMethodWrapper","prototype","asserterNames","asserterName","pd","overwriteChainableMethod","_chainingBehavior","compareByInspect","getOwnEnumerablePropertySymbols","getOwnEnumerableProperties","compatibleInstance","thrown","errorLike","compatibleConstructor","compatibleMessage","errMatcher","comparisonString","getFunctionName","constructorFn","checkError","_isNaN","isObjectType","objectType","objectTypes","getOperator","operator","utils","_chai","Assertion","lockSsfi","negateMsg","_actual","showDiff","ok","assertionErrorObjectProperties","assertions","an","article","SameValueZero","includeChainingBehavior","include","isDeep","included","isEql","firstErr","numErrs","propAssertion","assertExist","itemsCount","checkArguments","assertEqual","prevLockSsfi","assertEql","assertAbove","doLength","msgPrefix","nType","errorMessage","shouldThrow","printObj","assertLeast","assertBelow","assertMost","finish","startType","finishType","assertInstanceOf","isInstanceOf","assertProperty","isNested","nameType","pathInfo","assertOwnProperty","assertOwnPropertyDescriptor","actualDescriptor","assertLengthChain","assertLength","assertMatch","assertKeys","keysType","deepStr","mixedArgsMsg","expectedKey","actualKey","assertThrows","errMsgMatcher","caughtErr","everyArgIsUndefined","everyArgIsDefined","errorLikeFail","errMsgMatcherFail","errorLikeString","isCompatibleInstance","isCompatibleConstructor","placeholder","isCompatibleMessage","respondTo","itself","satisfy","matcher","closeTo","deltaMessage","isSubsetOf","superset","contains","elem","matchIdx","elem2","failMsg","failNegateMsg","oneOf","possibility","assertChanges","final","msgObj","assertIncreases","assertDecreases","assertDelta","behavior","realDelta","expression","isExtensible","isSealed","isFrozen","expect","should","loadShould","shouldGetter","shouldSetter","val1","val2","errt","errs","assert","express","errmsg","act","exp","abv","atlst","blw","atmst","assertErr","set1","set2","inList","tmpMsg","as","core","use","commonjsGlobal","P","O","K","T","spies","isMockFunction","spyOn","accessType","objMethod","stub","tinyspy.internalSpyOn","enhanceSpy","callOrder","spy","instances","invocations","tinyspy.getInternalState","mockContext","callType","onceImplementations","implementationChangedTemporarily","withImplementation","originalImplementation","reset","MATCHERS_OBJECT","JEST_MATCHERS_OBJECT","GLOBAL_EXPECT","globalState","matchers","getState","setState","getMatcherUtils","EXPECTED_COLOR","RECEIVED_COLOR","INVERTED_COLOR","BOLD_WEIGHT","DIM_COLOR","matcherHint","matcherName","received","isDirectExpectCall","isNot","secondArgument","expectedColor","receivedColor","secondArgumentColor","hint","dimString","SPACE_SYMBOL","replaceTrailingSpaces","spaces","equals","customTesters","strictCheck","hasKey","hasDefinedKey","isAsymmetric","isA","asymmetricMatch","asymmetricA","asymmetricB","aStack","bStack","hasKey2","asymmetricResult","customTesterResult","className","isDomNode","aKeys","keys2","typeName","isImmutableUnorderedKeyed","maybeKeyed","isImmutableUnorderedSet","maybeSet","IteratorSymbol","hasIterator","iterableEquality","iterableEqualityWithStack","a2","b2","allFound","aValue","has","bValue","aEntry","bEntry","matchedKey","matchedValue","bIterator","nextB","hasPropertyInObject","isObjectWithKeys","subsetEquality","subsetEqualityWithContext","seenReferences","object2","subset2","typeEquality","arrayBufferEquality","dataViewA","dataViewB","sparseArrayEquality","bKeys","generateToBeMessage","deepEqualityName","toBeMessage","AsymmetricMatcher$1","sample","inverse","StringContaining","Anything","ObjectContaining","ArrayContaining","another","Any","StringMatching","JestAsymmetricMatchers","recordAsyncExpect","JestChaiExpect","def","equal","propertyName","getValue","exists","valueString","precision","expectedDiff","receivedDiff","assertIsMock","getSpy","ordinalOf","formatCalls","actualCall","callArg","methodCall","formatReturns","actualReturn","callReturn","spyName","callCount","called","times","nthCall","lastCall","calledAndNotThrew","successfulReturns","success","lastResult","callResult","ordinalCall","nthCallReturn","proxy","wrapper","getMatcherState","jestUtils","JestExtendError","JestExtendPlugin","expectAssertionName","expectAssertion","expectWrapper","pass2","message2","actual2","expected2","CustomMatcher","JestExtend","expects","naturalCompare$1","naturalCompare","codeA","codeB","posA","posB","alphabet","getCode","pos","notNullish","getCallLastIndex","charIndex","inString","startedBracers","endedBracers","beforeChar","lineSplitRE","stackIgnorePatterns","parseStacktrace","ignore","stack2","parseErrorStacktrace","stackStr","stackFrames","positionToOffset","nl","offsetToLineNumber","counted","lineLength","serialize$1","nameString","callsString","addSerializer","getSerializers","testNameToKey","keyToTestName","getSnapshotData","content","update","snapshotContents","dirty","addExtraLineBreaks","removeExtraLineBreaks","formatOverrides","normalizeNewlines","escapeBacktickString","printBacktickString","ensureDirectoryExists","environment","filePath","saveSnapshotFile","snapshotData","snapshotPath","snapshots","oldContent","prepareExpected","findStartIndent","_b","matchObject","objectIndent","matchText","startIndent","expectedTrimmed","deepMergeArray","mergedOutput","sourceElement","targetElement","deepMergeSnapshot","saveInlineSnapshots","MagicString","__vitePreload","files","snaps","snap","replaceInlineSnap","transformed","startObjectRegex","replaceObjectSnap","newSnap","startMatch","prepareSnapString","indentNext","isOneline","startRegex","startIndex","snapString","endMatch","INDENTATION_REGEX","stripSnapshotIndentation","inlineSnapshot","saveRawSnapshots","SnapshotState","testFilePath","snapshotContent","uncheckedKey","stacks","promiseIndex","stackIndex","receivedSerialized","hasExternalSnapshots","hasInlineSnapshots","hasRawSnapshots","isEmpty","status","isInline","rawSnapshot","hasSnapshot","snapshotIsPersisted","snapshot","uncheckedCount","uncheckedKeys","createMismatchError","SnapshotClient","Service","filepath","snapshotState","getFullName","waitNextTick","waitForImportsToResolve","promises","resolvingCount","benchFns","benchOptsMap","createBenchmark","benchmark","commonjsRequire","chaiSubset","assertionPrototype","aa","eo","ao","Subset","VitestSnapshotClient","_client","getSnapshotClient","getErrorMessage","getErrorString","SnapshotPlugin","getTestNames","chai$1.use","createExpect","assertionCalls","assert2","chai$1.expect","errorGen","hasAssertions","chai$1.util","globalExpect","globalObject$1","throwsOnProto$1","throwsOnProto_1","throwsOnProto","disallowedProperties","copyPrototypeMethods","copyPrototype$5","every$1","hasCallsLeft","callMap","checkAdjacentCalls","calledBeforeNext","calledInOrder","_spies","calledInOrder_1","functionName$1","className_1","wrapped","packageName","funcName","every","aCall","bCall","aId","bId","orderByFirstCall","orderByFirstCall_1","copyPrototype$4","copyPrototype$3","copyPrototype$2","copyPrototype$1","copyPrototype","prototypes","valueToString","valueToString_1","lib","withGlobal","_global","userAgent","isRunningInIE","maxTimeout","idCounterStart","NOOP_ARRAY","timeoutResult","addTimerReturnsObject","hrtimePresent","hrtimeBigintPresent","nextTickPresent","utilPromisify","performancePresent","hasPerformancePrototype","hasPerformanceConstructorPrototype","queueMicrotaskPresent","requestAnimationFramePresent","cancelAnimationFramePresent","requestIdleCallbackPresent","cancelIdleCallbackPresent","setImmediatePresent","NativeDate","uniqueTimerId","isNumberFinite","isNearInfiniteLimit","checkIsNearInfiniteLimit","clock","resetIsNearInfiniteLimit","parseTime","strings","ms","nanoRemainder","msFloat","remainder","positiveRemainder","getEpoch","epoch","inRange","getInfiniteLoopError","job","infiniteLoopError","computedTargetPattern","clockMethodPattern","matchedLineIndex","mirrorDateProperties","createDate","ClockDate","year","month","hour","minute","enqueueJob","runJobs","addTimer","compareTimers","firstTimerInRange","timers","isInRange","firstTimer","lastTimer","callTimer","eval2","getClearHandler","ttype","getScheduleHandler","createWarnOnce","calls","warnOnce","clearTimer","timerId","handlerName","nativeHandler","schedule","uninstall","installedHrTime","installedNextTick","originalPerfDescriptor","hijackMethod","perfDescriptor","doIntervalTick","advanceTimeDelta","originalSetTimeout","createClock","loopLimit","nanos","adjustedSystemTime","getTimeToNextFrame","hrtime","millisSinceStart","secsSinceStart","remainderInNanos","oldSecs","nanoDiff","secDiff","fakePerformanceNow","hrt","timeToNextIdlePeriod","doTick","tickValue","isAsync","nanosTotal","tickTo","tickFrom","previous","firstException","oldNow","nextPromiseTick","compensationCheck","postTimerCall","doTickInner","numTimers","excessJob","doRun","systemTime","newNow","difference","install","intervalTick","intervalId","nameOfMethodToReplace","defaultImplementation","withGlobal_1","RealDate","MockDate","dateString","mockDate","dateObj","resetDate","FakeTimers","steps","msToRun","toFake","createVitest","_mocker","_mockedDate","_config","workerState","_timers","_stubsGlobal","_stubsEnv","getImporter","importerStack","workerState2","importer","vitest","vi"],"mappings":"2sCAGA,SAASA,GAAYC,EAAOC,EAAMC,EAAO,CACvC,MAAMC,EAAe,OAAOH,EAE5B,GAAI,CADSE,EAAM,SAASC,CAAY,EAEtC,MAAM,IAAI,UAAU,GAAGF,mBAAsBC,EAAM,KAAK,MAAM,gBAAgBC,IAAe,CACjG,CAsBA,SAASC,GAASC,EAAM,CACtB,OAAOA,GAAQ,MAAQ,OAAOA,GAAS,UAAY,CAAC,MAAM,QAAQA,CAAI,CACxE,CA6DA,SAASC,IAAO,CAChB,CACA,SAASC,GAAWC,EAAQC,EAAMC,EAAe,OAAQ,CACvD,MAAMC,EAAQF,EAAK,QAAQ,aAAc,KAAK,EAAE,MAAM,GAAG,EACzD,IAAIG,EAASJ,EACb,UAAWK,KAAKF,EAEd,GADAC,EAAS,OAAOA,CAAM,EAAEC,CAAC,EACrBD,IAAW,OACb,OAAOF,EAEX,OAAOE,CACT,iFCpGA,MAAME,EAAc,CAACC,EAAS,IAAMC,GAAQ,QAAU,GAAKD,OAAYC,KAEjEC,EAAc,CAACF,EAAS,IAAM,CAACG,EAAKC,EAAOC,IAAS,QAAU,GAAKL,OAAYG,KAAOC,KAASC,KAErG,SAASC,GAAiB,CACzB,MAAMC,EAAQ,IAAI,IACZC,EAAS,CACd,SAAU,CACT,MAAO,CAAC,E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,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214]} \ No newline at end of file +{"version":3,"file":"ButtonShowReplies.stories-94628137.js","sources":["../../../../node_modules/@vitest/utils/dist/helpers.js","../../../../node_modules/pretty-format/node_modules/ansi-styles/index.js","../../../../node_modules/pretty-format/build/collections.js","../../../../node_modules/pretty-format/build/plugins/AsymmetricMatcher.js","../../../../node_modules/ansi-regex/index.js","../../../../node_modules/pretty-format/build/plugins/ConvertAnsi.js","../../../../node_modules/pretty-format/build/plugins/DOMCollection.js","../../../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js","../../../../node_modules/pretty-format/build/plugins/lib/markup.js","../../../../node_modules/pretty-format/build/plugins/DOMElement.js","../../../../node_modules/pretty-format/build/plugins/Immutable.js","../../../../node_modules/pretty-format/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/pretty-format/node_modules/react-is/index.js","../../../../node_modules/pretty-format/build/plugins/ReactElement.js","../../../../node_modules/pretty-format/build/plugins/ReactTestComponent.js","../../../../node_modules/pretty-format/build/index.js","../../../../node_modules/@vitest/utils/dist/chunk-colors.js","../../../../node_modules/has-symbols/shams.js","../../../../node_modules/has-tostringtag/shams.js","../../../../node_modules/has-symbols/index.js","../../../../node_modules/function-bind/implementation.js","../../../../node_modules/function-bind/index.js","../../../../node_modules/has/src/index.js","../../../../node_modules/get-intrinsic/index.js","../../../../node_modules/call-bind/index.js","../../../../node_modules/call-bind/callBound.js","../../../../node_modules/is-arguments/index.js","../../../../node_modules/is-generator-function/index.js","../../../../node_modules/is-callable/index.js","../../../../node_modules/for-each/index.js","../../../../node_modules/available-typed-arrays/index.js","../../../../node_modules/gopd/index.js","../../../../node_modules/is-typed-array/index.js","../../../../node_modules/which-typed-array/index.js","../../../../node_modules/util/support/types.js","../../../../node_modules/util/support/isBufferBrowser.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/util/util.js","../../__vite-browser-external","../../../../node_modules/loupe/loupe.js","../../../../node_modules/@vitest/utils/dist/index.js","../../../../node_modules/concordance/lib/Circular.js","../../../../node_modules/concordance/lib/constants.js","../../../../node_modules/concordance/lib/Registry.js","../../../../node_modules/concordance/lib/lineBuilder.js","../../../../node_modules/concordance/lib/formatUtils.js","../../../../node_modules/concordance/lib/getObjectKeys.js","../../../../node_modules/concordance/lib/hasLength.js","../../../../node_modules/concordance/lib/recursorUtils.js","../../../../node_modules/concordance/lib/metaDescriptors/stats.js","../../../../node_modules/concordance/lib/complexValues/object.js","../../../../node_modules/concordance/lib/complexValues/arguments.js","../../../../node_modules/concordance/lib/complexValues/typedArray.js","../../../../node_modules/concordance/lib/complexValues/arrayBuffer.js","../../../../node_modules/fast-diff/diff.js","../../../../node_modules/concordance/lib/primitiveValues/string.js","../../../../node_modules/concordance/lib/complexValues/boxed.js","../../../../node_modules/concordance/lib/complexValues/dataView.js","../../../../node_modules/time-zone/index.js","../../../../node_modules/date-time/index.js","../../../../node_modules/concordance/lib/complexValues/date.js","../../../../node_modules/concordance/lib/isEnumerable.js","../../../../node_modules/concordance/lib/complexValues/error.js","../../../../node_modules/concordance/lib/complexValues/function.js","../../../../node_modules/concordance/lib/complexValues/global.js","../../../../node_modules/concordance/lib/complexValues/map.js","../../../../node_modules/concordance/lib/complexValues/promise.js","../../../../node_modules/concordance/lib/complexValues/regexp.js","../../../../node_modules/concordance/lib/complexValues/set.js","../../../../node_modules/concordance/lib/getCtor.js","../../../../node_modules/concordance/lib/getStringTag.js","../../../../node_modules/concordance/lib/metaDescriptors/item.js","../../../../node_modules/lodash/_assignMergeValue.js","../../../../node_modules/lodash/isArrayLikeObject.js","../../../../node_modules/lodash/_safeGet.js","../../../../node_modules/lodash/toPlainObject.js","../../../../node_modules/lodash/_baseMergeDeep.js","../../../../node_modules/lodash/_baseMerge.js","../../../../node_modules/lodash/_apply.js","../../../../node_modules/lodash/_overRest.js","../../../../node_modules/lodash/constant.js","../../../../node_modules/lodash/_baseSetToString.js","../../../../node_modules/lodash/_shortOut.js","../../../../node_modules/lodash/_setToString.js","../../../../node_modules/lodash/_baseRest.js","../../../../node_modules/lodash/_isIterateeCall.js","../../../../node_modules/lodash/_createAssigner.js","../../../../node_modules/lodash/merge.js","../../../../node_modules/semver/internal/constants.js","../../../../node_modules/semver/internal/debug.js","../../../../node_modules/semver/internal/re.js","../../../../node_modules/semver/internal/parse-options.js","../../../../node_modules/semver/internal/identifiers.js","../../../../node_modules/semver/classes/semver.js","../../../../node_modules/semver/functions/parse.js","../../../../node_modules/semver/functions/valid.js","../../../../node_modules/semver/functions/clean.js","../../../../node_modules/semver/functions/inc.js","../../../../node_modules/semver/functions/diff.js","../../../../node_modules/semver/functions/major.js","../../../../node_modules/semver/functions/minor.js","../../../../node_modules/semver/functions/patch.js","../../../../node_modules/semver/functions/prerelease.js","../../../../node_modules/semver/functions/compare.js","../../../../node_modules/semver/functions/rcompare.js","../../../../node_modules/semver/functions/compare-loose.js","../../../../node_modules/semver/functions/compare-build.js","../../../../node_modules/semver/functions/sort.js","../../../../node_modules/semver/functions/rsort.js","../../../../node_modules/semver/functions/gt.js","../../../../node_modules/semver/functions/lt.js","../../../../node_modules/semver/functions/eq.js","../../../../node_modules/semver/functions/neq.js","../../../../node_modules/semver/functions/gte.js","../../../../node_modules/semver/functions/lte.js","../../../../node_modules/semver/functions/cmp.js","../../../../node_modules/semver/functions/coerce.js","../../../../node_modules/yallist/iterator.js","../../../../node_modules/yallist/yallist.js","../../../../node_modules/lru-cache/index.js","../../../../node_modules/semver/classes/range.js","../../../../node_modules/semver/classes/comparator.js","../../../../node_modules/semver/functions/satisfies.js","../../../../node_modules/semver/ranges/to-comparators.js","../../../../node_modules/semver/ranges/max-satisfying.js","../../../../node_modules/semver/ranges/min-satisfying.js","../../../../node_modules/semver/ranges/min-version.js","../../../../node_modules/semver/ranges/valid.js","../../../../node_modules/semver/ranges/outside.js","../../../../node_modules/semver/ranges/gtr.js","../../../../node_modules/semver/ranges/ltr.js","../../../../node_modules/semver/ranges/intersects.js","../../../../node_modules/semver/ranges/simplify.js","../../../../node_modules/semver/ranges/subset.js","../../../../node_modules/semver/index.js","../../../../node_modules/js-string-escape/index.js","../../../../node_modules/well-known-symbols/index.js","../../../../node_modules/concordance/lib/primitiveValues/symbol.js","../../../../node_modules/concordance/lib/metaDescriptors/property.js","../../../../node_modules/concordance/lib/pluginRegistry.js","../../../../node_modules/concordance/lib/themeUtils.js","../../../../node_modules/concordance/lib/metaDescriptors/mapEntry.js","../../../../node_modules/concordance/lib/primitiveValues/bigInt.js","../../../../node_modules/concordance/lib/primitiveValues/boolean.js","../../../../node_modules/concordance/lib/primitiveValues/null.js","../../../../node_modules/concordance/lib/primitiveValues/number.js","../../../../node_modules/concordance/lib/primitiveValues/undefined.js","../../../../node_modules/concordance/lib/describe.js","../../../../node_modules/concordance/lib/shouldCompareDeep.js","../../../../node_modules/concordance/lib/symbolProperties.js","../../../../node_modules/concordance/lib/compare.js","../../../../node_modules/concordance/lib/Indenter.js","../../../../node_modules/concordance/lib/diff.js","../../../../node_modules/concordance/lib/format.js","../../../../node_modules/blueimp-md5/js/md5.js","../../../../node_modules/md5-hex/browser.js","../../../../node_modules/lodash/_isFlattenable.js","../../../../node_modules/lodash/_baseFlatten.js","../../../../node_modules/lodash/flattenDeep.js","../../../../node_modules/concordance/lib/encoder.js","../../../../node_modules/concordance/lib/metaDescriptors/pointer.js","../../../../node_modules/concordance/lib/serialize.js","../../../../node_modules/concordance/index.js","../../../../node_modules/@vitest/utils/dist/diff.js","../../../../node_modules/@vitest/runner/dist/chunk-tasks.js","../../../../node_modules/pathe/dist/shared/pathe.92c04245.mjs","../../../../node_modules/@vitest/runner/dist/index.js","../../../../node_modules/vitest/dist/vendor-global.6795f91f.js","../../../../node_modules/vitest/dist/vendor-index.fad2598b.js","../../../../node_modules/assertion-error/index.js","../../../../node_modules/pathval/index.js","../../../../node_modules/chai/lib/chai/utils/flag.js","../../../../node_modules/chai/lib/chai/utils/test.js","../../../../node_modules/type-detect/type-detect.js","../../../../node_modules/chai/lib/chai/utils/expectTypes.js","../../../../node_modules/chai/lib/chai/utils/getActual.js","../../../../node_modules/get-func-name/index.js","../../../../node_modules/chai/lib/chai/config.js","../../../../node_modules/chai/lib/chai/utils/inspect.js","../../../../node_modules/chai/lib/chai/utils/objDisplay.js","../../../../node_modules/chai/lib/chai/utils/getMessage.js","../../../../node_modules/chai/lib/chai/utils/transferFlags.js","../../../../node_modules/deep-eql/index.js","../../../../node_modules/chai/lib/chai/utils/isProxyEnabled.js","../../../../node_modules/chai/lib/chai/utils/addProperty.js","../../../../node_modules/chai/lib/chai/utils/addLengthGuard.js","../../../../node_modules/chai/lib/chai/utils/getProperties.js","../../../../node_modules/chai/lib/chai/utils/proxify.js","../../../../node_modules/chai/lib/chai/utils/addMethod.js","../../../../node_modules/chai/lib/chai/utils/overwriteProperty.js","../../../../node_modules/chai/lib/chai/utils/overwriteMethod.js","../../../../node_modules/chai/lib/chai/utils/addChainableMethod.js","../../../../node_modules/chai/lib/chai/utils/overwriteChainableMethod.js","../../../../node_modules/chai/lib/chai/utils/compareByInspect.js","../../../../node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js","../../../../node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js","../../../../node_modules/check-error/index.js","../../../../node_modules/chai/lib/chai/utils/isNaN.js","../../../../node_modules/chai/lib/chai/utils/getOperator.js","../../../../node_modules/chai/lib/chai/utils/index.js","../../../../node_modules/chai/lib/chai/assertion.js","../../../../node_modules/chai/lib/chai/core/assertions.js","../../../../node_modules/chai/lib/chai/interface/expect.js","../../../../node_modules/chai/lib/chai/interface/should.js","../../../../node_modules/chai/lib/chai/interface/assert.js","../../../../node_modules/chai/lib/chai.js","../../../../node_modules/chai/index.js","../../../../node_modules/chai/index.mjs","../../../../node_modules/vitest/dist/vendor-_commonjsHelpers.76cdd49e.js","../../../../node_modules/tinyspy/dist/index.js","../../../../node_modules/@vitest/spy/dist/index.js","../../../../node_modules/@vitest/expect/dist/index.js","../../../../node_modules/@vitest/snapshot/dist/index.js","../../../../node_modules/vitest/dist/vendor-tasks.042d6084.js","../../../../node_modules/vitest/dist/vendor-vi.a3ff54b1.js"],"sourcesContent":["function notNullish(v) {\n return v != null;\n}\nfunction assertTypes(value, name, types) {\n const receivedType = typeof value;\n const pass = types.includes(receivedType);\n if (!pass)\n throw new TypeError(`${name} value must be ${types.join(\" or \")}, received \"${receivedType}\"`);\n}\nfunction isPrimitive(value) {\n return value === null || typeof value !== \"function\" && typeof value !== \"object\";\n}\nfunction slash(path) {\n return path.replace(/\\\\/g, \"/\");\n}\nfunction parseRegexp(input) {\n const m = input.match(/(\\/?)(.+)\\1([a-z]*)/i);\n if (!m)\n return /$^/;\n if (m[3] && !/^(?!.*?(.).*?\\1)[gmixXsuUAJ]+$/.test(m[3]))\n return RegExp(input);\n return new RegExp(m[2], m[3]);\n}\nfunction toArray(array) {\n if (array === null || array === void 0)\n array = [];\n if (Array.isArray(array))\n return array;\n return [array];\n}\nfunction isObject(item) {\n return item != null && typeof item === \"object\" && !Array.isArray(item);\n}\nfunction isFinalObj(obj) {\n return obj === Object.prototype || obj === Function.prototype || obj === RegExp.prototype;\n}\nfunction getType(value) {\n return Object.prototype.toString.apply(value).slice(8, -1);\n}\nfunction collectOwnProperties(obj, collector) {\n const collect = typeof collector === \"function\" ? collector : (key) => collector.add(key);\n Object.getOwnPropertyNames(obj).forEach(collect);\n Object.getOwnPropertySymbols(obj).forEach(collect);\n}\nfunction getOwnProperties(obj) {\n const ownProps = /* @__PURE__ */ new Set();\n if (isFinalObj(obj))\n return [];\n collectOwnProperties(obj, ownProps);\n return Array.from(ownProps);\n}\nfunction deepClone(val) {\n const seen = /* @__PURE__ */ new WeakMap();\n return clone(val, seen);\n}\nfunction clone(val, seen) {\n let k, out;\n if (seen.has(val))\n return seen.get(val);\n if (Array.isArray(val)) {\n out = Array(k = val.length);\n seen.set(val, out);\n while (k--)\n out[k] = clone(val[k], seen);\n return out;\n }\n if (Object.prototype.toString.call(val) === \"[object Object]\") {\n out = Object.create(Object.getPrototypeOf(val));\n seen.set(val, out);\n const props = getOwnProperties(val);\n for (const k2 of props) {\n const descriptor = Object.getOwnPropertyDescriptor(val, k2);\n if (!descriptor)\n continue;\n const cloned = clone(val[k2], seen);\n if (\"get\" in descriptor) {\n Object.defineProperty(out, k2, {\n ...descriptor,\n get() {\n return cloned;\n }\n });\n } else {\n Object.defineProperty(out, k2, {\n ...descriptor,\n value: cloned\n });\n }\n }\n return out;\n }\n return val;\n}\nfunction noop() {\n}\nfunction objectAttr(source, path, defaultValue = void 0) {\n const paths = path.replace(/\\[(\\d+)\\]/g, \".$1\").split(\".\");\n let result = source;\n for (const p of paths) {\n result = Object(result)[p];\n if (result === void 0)\n return defaultValue;\n }\n return result;\n}\nfunction createDefer() {\n let resolve = null;\n let reject = null;\n const p = new Promise((_resolve, _reject) => {\n resolve = _resolve;\n reject = _reject;\n });\n p.resolve = resolve;\n p.reject = reject;\n return p;\n}\nfunction getCallLastIndex(code) {\n let charIndex = -1;\n let inString = null;\n let startedBracers = 0;\n let endedBracers = 0;\n let beforeChar = null;\n while (charIndex <= code.length) {\n beforeChar = code[charIndex];\n charIndex++;\n const char = code[charIndex];\n const isCharString = char === '\"' || char === \"'\" || char === \"`\";\n if (isCharString && beforeChar !== \"\\\\\") {\n if (inString === char)\n inString = null;\n else if (!inString)\n inString = char;\n }\n if (!inString) {\n if (char === \"(\")\n startedBracers++;\n if (char === \")\")\n endedBracers++;\n }\n if (startedBracers && endedBracers && startedBracers === endedBracers)\n return charIndex;\n }\n return null;\n}\n\nexport { assertTypes, clone, createDefer, deepClone, getCallLastIndex, getOwnProperties, getType, isObject, isPrimitive, noop, notNullish, objectAttr, parseRegexp, slash, toArray };\n","'use strict';\n\nconst ANSI_BACKGROUND_OFFSET = 10;\n\nconst wrapAnsi256 = (offset = 0) => code => `\\u001B[${38 + offset};5;${code}m`;\n\nconst wrapAnsi16m = (offset = 0) => (red, green, blue) => `\\u001B[${38 + offset};2;${red};${green};${blue}m`;\n\nfunction assembleStyles() {\n\tconst codes = new Map();\n\tconst styles = {\n\t\tmodifier: {\n\t\t\treset: [0, 0],\n\t\t\t// 21 isn't widely supported and 22 does the same thing\n\t\t\tbold: [1, 22],\n\t\t\tdim: [2, 22],\n\t\t\titalic: [3, 23],\n\t\t\tunderline: [4, 24],\n\t\t\toverline: [53, 55],\n\t\t\tinverse: [7, 27],\n\t\t\thidden: [8, 28],\n\t\t\tstrikethrough: [9, 29]\n\t\t},\n\t\tcolor: {\n\t\t\tblack: [30, 39],\n\t\t\tred: [31, 39],\n\t\t\tgreen: [32, 39],\n\t\t\tyellow: [33, 39],\n\t\t\tblue: [34, 39],\n\t\t\tmagenta: [35, 39],\n\t\t\tcyan: [36, 39],\n\t\t\twhite: [37, 39],\n\n\t\t\t// Bright color\n\t\t\tblackBright: [90, 39],\n\t\t\tredBright: [91, 39],\n\t\t\tgreenBright: [92, 39],\n\t\t\tyellowBright: [93, 39],\n\t\t\tblueBright: [94, 39],\n\t\t\tmagentaBright: [95, 39],\n\t\t\tcyanBright: [96, 39],\n\t\t\twhiteBright: [97, 39]\n\t\t},\n\t\tbgColor: {\n\t\t\tbgBlack: [40, 49],\n\t\t\tbgRed: [41, 49],\n\t\t\tbgGreen: [42, 49],\n\t\t\tbgYellow: [43, 49],\n\t\t\tbgBlue: [44, 49],\n\t\t\tbgMagenta: [45, 49],\n\t\t\tbgCyan: [46, 49],\n\t\t\tbgWhite: [47, 49],\n\n\t\t\t// Bright color\n\t\t\tbgBlackBright: [100, 49],\n\t\t\tbgRedBright: [101, 49],\n\t\t\tbgGreenBright: [102, 49],\n\t\t\tbgYellowBright: [103, 49],\n\t\t\tbgBlueBright: [104, 49],\n\t\t\tbgMagentaBright: [105, 49],\n\t\t\tbgCyanBright: [106, 49],\n\t\t\tbgWhiteBright: [107, 49]\n\t\t}\n\t};\n\n\t// Alias bright black as gray (and grey)\n\tstyles.color.gray = styles.color.blackBright;\n\tstyles.bgColor.bgGray = styles.bgColor.bgBlackBright;\n\tstyles.color.grey = styles.color.blackBright;\n\tstyles.bgColor.bgGrey = styles.bgColor.bgBlackBright;\n\n\tfor (const [groupName, group] of Object.entries(styles)) {\n\t\tfor (const [styleName, style] of Object.entries(group)) {\n\t\t\tstyles[styleName] = {\n\t\t\t\topen: `\\u001B[${style[0]}m`,\n\t\t\t\tclose: `\\u001B[${style[1]}m`\n\t\t\t};\n\n\t\t\tgroup[styleName] = styles[styleName];\n\n\t\t\tcodes.set(style[0], style[1]);\n\t\t}\n\n\t\tObject.defineProperty(styles, groupName, {\n\t\t\tvalue: group,\n\t\t\tenumerable: false\n\t\t});\n\t}\n\n\tObject.defineProperty(styles, 'codes', {\n\t\tvalue: codes,\n\t\tenumerable: false\n\t});\n\n\tstyles.color.close = '\\u001B[39m';\n\tstyles.bgColor.close = '\\u001B[49m';\n\n\tstyles.color.ansi256 = wrapAnsi256();\n\tstyles.color.ansi16m = wrapAnsi16m();\n\tstyles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);\n\n\t// From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js\n\tObject.defineProperties(styles, {\n\t\trgbToAnsi256: {\n\t\t\tvalue: (red, green, blue) => {\n\t\t\t\t// We use the extended greyscale palette here, with the exception of\n\t\t\t\t// black and white. normal palette only has 4 greyscale shades.\n\t\t\t\tif (red === green && green === blue) {\n\t\t\t\t\tif (red < 8) {\n\t\t\t\t\t\treturn 16;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (red > 248) {\n\t\t\t\t\t\treturn 231;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Math.round(((red - 8) / 247) * 24) + 232;\n\t\t\t\t}\n\n\t\t\t\treturn 16 +\n\t\t\t\t\t(36 * Math.round(red / 255 * 5)) +\n\t\t\t\t\t(6 * Math.round(green / 255 * 5)) +\n\t\t\t\t\tMath.round(blue / 255 * 5);\n\t\t\t},\n\t\t\tenumerable: false\n\t\t},\n\t\thexToRgb: {\n\t\t\tvalue: hex => {\n\t\t\t\tconst matches = /(?[a-f\\d]{6}|[a-f\\d]{3})/i.exec(hex.toString(16));\n\t\t\t\tif (!matches) {\n\t\t\t\t\treturn [0, 0, 0];\n\t\t\t\t}\n\n\t\t\t\tlet {colorString} = matches.groups;\n\n\t\t\t\tif (colorString.length === 3) {\n\t\t\t\t\tcolorString = colorString.split('').map(character => character + character).join('');\n\t\t\t\t}\n\n\t\t\t\tconst integer = Number.parseInt(colorString, 16);\n\n\t\t\t\treturn [\n\t\t\t\t\t(integer >> 16) & 0xFF,\n\t\t\t\t\t(integer >> 8) & 0xFF,\n\t\t\t\t\tinteger & 0xFF\n\t\t\t\t];\n\t\t\t},\n\t\t\tenumerable: false\n\t\t},\n\t\thexToAnsi256: {\n\t\t\tvalue: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),\n\t\t\tenumerable: false\n\t\t}\n\t});\n\n\treturn styles;\n}\n\n// Make the export immutable\nObject.defineProperty(module, 'exports', {\n\tenumerable: true,\n\tget: assembleStyles\n});\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.printIteratorEntries = printIteratorEntries;\nexports.printIteratorValues = printIteratorValues;\nexports.printListItems = printListItems;\nexports.printObjectProperties = printObjectProperties;\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\nconst getKeysOfEnumerableProperties = (object, compareKeys) => {\n const keys = Object.keys(object).sort(compareKeys);\n\n if (Object.getOwnPropertySymbols) {\n Object.getOwnPropertySymbols(object).forEach(symbol => {\n if (Object.getOwnPropertyDescriptor(object, symbol).enumerable) {\n keys.push(symbol);\n }\n });\n }\n\n return keys;\n};\n/**\n * Return entries (for example, of a map)\n * with spacing, indentation, and comma\n * without surrounding punctuation (for example, braces)\n */\n\nfunction printIteratorEntries(\n iterator,\n config,\n indentation,\n depth,\n refs,\n printer, // Too bad, so sad that separator for ECMAScript Map has been ' => '\n // What a distracting diff if you change a data structure to/from\n // ECMAScript Object or Immutable.Map/OrderedMap which use the default.\n separator = ': '\n) {\n let result = '';\n let current = iterator.next();\n\n if (!current.done) {\n result += config.spacingOuter;\n const indentationNext = indentation + config.indent;\n\n while (!current.done) {\n const name = printer(\n current.value[0],\n config,\n indentationNext,\n depth,\n refs\n );\n const value = printer(\n current.value[1],\n config,\n indentationNext,\n depth,\n refs\n );\n result += indentationNext + name + separator + value;\n current = iterator.next();\n\n if (!current.done) {\n result += ',' + config.spacingInner;\n } else if (!config.min) {\n result += ',';\n }\n }\n\n result += config.spacingOuter + indentation;\n }\n\n return result;\n}\n/**\n * Return values (for example, of a set)\n * with spacing, indentation, and comma\n * without surrounding punctuation (braces or brackets)\n */\n\nfunction printIteratorValues(\n iterator,\n config,\n indentation,\n depth,\n refs,\n printer\n) {\n let result = '';\n let current = iterator.next();\n\n if (!current.done) {\n result += config.spacingOuter;\n const indentationNext = indentation + config.indent;\n\n while (!current.done) {\n result +=\n indentationNext +\n printer(current.value, config, indentationNext, depth, refs);\n current = iterator.next();\n\n if (!current.done) {\n result += ',' + config.spacingInner;\n } else if (!config.min) {\n result += ',';\n }\n }\n\n result += config.spacingOuter + indentation;\n }\n\n return result;\n}\n/**\n * Return items (for example, of an array)\n * with spacing, indentation, and comma\n * without surrounding punctuation (for example, brackets)\n **/\n\nfunction printListItems(list, config, indentation, depth, refs, printer) {\n let result = '';\n\n if (list.length) {\n result += config.spacingOuter;\n const indentationNext = indentation + config.indent;\n\n for (let i = 0; i < list.length; i++) {\n result += indentationNext;\n\n if (i in list) {\n result += printer(list[i], config, indentationNext, depth, refs);\n }\n\n if (i < list.length - 1) {\n result += ',' + config.spacingInner;\n } else if (!config.min) {\n result += ',';\n }\n }\n\n result += config.spacingOuter + indentation;\n }\n\n return result;\n}\n/**\n * Return properties of an object\n * with spacing, indentation, and comma\n * without surrounding punctuation (for example, braces)\n */\n\nfunction printObjectProperties(val, config, indentation, depth, refs, printer) {\n let result = '';\n const keys = getKeysOfEnumerableProperties(val, config.compareKeys);\n\n if (keys.length) {\n result += config.spacingOuter;\n const indentationNext = indentation + config.indent;\n\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const name = printer(key, config, indentationNext, depth, refs);\n const value = printer(val[key], config, indentationNext, depth, refs);\n result += indentationNext + name + ': ' + value;\n\n if (i < keys.length - 1) {\n result += ',' + config.spacingInner;\n } else if (!config.min) {\n result += ',';\n }\n }\n\n result += config.spacingOuter + indentation;\n }\n\n return result;\n}\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.test = exports.serialize = exports.default = void 0;\n\nvar _collections = require('../collections');\n\nvar global = (function () {\n if (typeof globalThis !== 'undefined') {\n return globalThis;\n } else if (typeof global !== 'undefined') {\n return global;\n } else if (typeof self !== 'undefined') {\n return self;\n } else if (typeof window !== 'undefined') {\n return window;\n } else {\n return Function('return this')();\n }\n})();\n\nvar Symbol = global['jest-symbol-do-not-touch'] || global.Symbol;\nconst asymmetricMatcher =\n typeof Symbol === 'function' && Symbol.for\n ? Symbol.for('jest.asymmetricMatcher')\n : 0x1357a5;\nconst SPACE = ' ';\n\nconst serialize = (val, config, indentation, depth, refs, printer) => {\n const stringedValue = val.toString();\n\n if (\n stringedValue === 'ArrayContaining' ||\n stringedValue === 'ArrayNotContaining'\n ) {\n if (++depth > config.maxDepth) {\n return '[' + stringedValue + ']';\n }\n\n return (\n stringedValue +\n SPACE +\n '[' +\n (0, _collections.printListItems)(\n val.sample,\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n ']'\n );\n }\n\n if (\n stringedValue === 'ObjectContaining' ||\n stringedValue === 'ObjectNotContaining'\n ) {\n if (++depth > config.maxDepth) {\n return '[' + stringedValue + ']';\n }\n\n return (\n stringedValue +\n SPACE +\n '{' +\n (0, _collections.printObjectProperties)(\n val.sample,\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n '}'\n );\n }\n\n if (\n stringedValue === 'StringMatching' ||\n stringedValue === 'StringNotMatching'\n ) {\n return (\n stringedValue +\n SPACE +\n printer(val.sample, config, indentation, depth, refs)\n );\n }\n\n if (\n stringedValue === 'StringContaining' ||\n stringedValue === 'StringNotContaining'\n ) {\n return (\n stringedValue +\n SPACE +\n printer(val.sample, config, indentation, depth, refs)\n );\n }\n\n return val.toAsymmetricMatcher();\n};\n\nexports.serialize = serialize;\n\nconst test = val => val && val.$$typeof === asymmetricMatcher;\n\nexports.test = test;\nconst plugin = {\n serialize,\n test\n};\nvar _default = plugin;\nexports.default = _default;\n","'use strict';\n\nmodule.exports = ({onlyFirst = false} = {}) => {\n\tconst pattern = [\n\t\t'[\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]+)*|[a-zA-Z\\\\d]+(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)',\n\t\t'(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PR-TZcf-ntqry=><~]))'\n\t].join('|');\n\n\treturn new RegExp(pattern, onlyFirst ? undefined : 'g');\n};\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.test = exports.serialize = exports.default = void 0;\n\nvar _ansiRegex = _interopRequireDefault(require('ansi-regex'));\n\nvar _ansiStyles = _interopRequireDefault(require('ansi-styles'));\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nconst toHumanReadableAnsi = text =>\n text.replace((0, _ansiRegex.default)(), match => {\n switch (match) {\n case _ansiStyles.default.red.close:\n case _ansiStyles.default.green.close:\n case _ansiStyles.default.cyan.close:\n case _ansiStyles.default.gray.close:\n case _ansiStyles.default.white.close:\n case _ansiStyles.default.yellow.close:\n case _ansiStyles.default.bgRed.close:\n case _ansiStyles.default.bgGreen.close:\n case _ansiStyles.default.bgYellow.close:\n case _ansiStyles.default.inverse.close:\n case _ansiStyles.default.dim.close:\n case _ansiStyles.default.bold.close:\n case _ansiStyles.default.reset.open:\n case _ansiStyles.default.reset.close:\n return '';\n\n case _ansiStyles.default.red.open:\n return '';\n\n case _ansiStyles.default.green.open:\n return '';\n\n case _ansiStyles.default.cyan.open:\n return '';\n\n case _ansiStyles.default.gray.open:\n return '';\n\n case _ansiStyles.default.white.open:\n return '';\n\n case _ansiStyles.default.yellow.open:\n return '';\n\n case _ansiStyles.default.bgRed.open:\n return '';\n\n case _ansiStyles.default.bgGreen.open:\n return '';\n\n case _ansiStyles.default.bgYellow.open:\n return '';\n\n case _ansiStyles.default.inverse.open:\n return '';\n\n case _ansiStyles.default.dim.open:\n return '';\n\n case _ansiStyles.default.bold.open:\n return '';\n\n default:\n return '';\n }\n });\n\nconst test = val =>\n typeof val === 'string' && !!val.match((0, _ansiRegex.default)());\n\nexports.test = test;\n\nconst serialize = (val, config, indentation, depth, refs, printer) =>\n printer(toHumanReadableAnsi(val), config, indentation, depth, refs);\n\nexports.serialize = serialize;\nconst plugin = {\n serialize,\n test\n};\nvar _default = plugin;\nexports.default = _default;\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.test = exports.serialize = exports.default = void 0;\n\nvar _collections = require('../collections');\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* eslint-disable local/ban-types-eventually */\nconst SPACE = ' ';\nconst OBJECT_NAMES = ['DOMStringMap', 'NamedNodeMap'];\nconst ARRAY_REGEXP = /^(HTML\\w*Collection|NodeList)$/;\n\nconst testName = name =>\n OBJECT_NAMES.indexOf(name) !== -1 || ARRAY_REGEXP.test(name);\n\nconst test = val =>\n val &&\n val.constructor &&\n !!val.constructor.name &&\n testName(val.constructor.name);\n\nexports.test = test;\n\nconst isNamedNodeMap = collection =>\n collection.constructor.name === 'NamedNodeMap';\n\nconst serialize = (collection, config, indentation, depth, refs, printer) => {\n const name = collection.constructor.name;\n\n if (++depth > config.maxDepth) {\n return '[' + name + ']';\n }\n\n return (\n (config.min ? '' : name + SPACE) +\n (OBJECT_NAMES.indexOf(name) !== -1\n ? '{' +\n (0, _collections.printObjectProperties)(\n isNamedNodeMap(collection)\n ? Array.from(collection).reduce((props, attribute) => {\n props[attribute.name] = attribute.value;\n return props;\n }, {})\n : {...collection},\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n '}'\n : '[' +\n (0, _collections.printListItems)(\n Array.from(collection),\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n ']')\n );\n};\n\nexports.serialize = serialize;\nconst plugin = {\n serialize,\n test\n};\nvar _default = plugin;\nexports.default = _default;\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.default = escapeHTML;\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nfunction escapeHTML(str) {\n return str.replace(//g, '>');\n}\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.printText =\n exports.printProps =\n exports.printElementAsLeaf =\n exports.printElement =\n exports.printComment =\n exports.printChildren =\n void 0;\n\nvar _escapeHTML = _interopRequireDefault(require('./escapeHTML'));\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n// Return empty string if keys is empty.\nconst printProps = (keys, props, config, indentation, depth, refs, printer) => {\n const indentationNext = indentation + config.indent;\n const colors = config.colors;\n return keys\n .map(key => {\n const value = props[key];\n let printed = printer(value, config, indentationNext, depth, refs);\n\n if (typeof value !== 'string') {\n if (printed.indexOf('\\n') !== -1) {\n printed =\n config.spacingOuter +\n indentationNext +\n printed +\n config.spacingOuter +\n indentation;\n }\n\n printed = '{' + printed + '}';\n }\n\n return (\n config.spacingInner +\n indentation +\n colors.prop.open +\n key +\n colors.prop.close +\n '=' +\n colors.value.open +\n printed +\n colors.value.close\n );\n })\n .join('');\n}; // Return empty string if children is empty.\n\nexports.printProps = printProps;\n\nconst printChildren = (children, config, indentation, depth, refs, printer) =>\n children\n .map(\n child =>\n config.spacingOuter +\n indentation +\n (typeof child === 'string'\n ? printText(child, config)\n : printer(child, config, indentation, depth, refs))\n )\n .join('');\n\nexports.printChildren = printChildren;\n\nconst printText = (text, config) => {\n const contentColor = config.colors.content;\n return (\n contentColor.open + (0, _escapeHTML.default)(text) + contentColor.close\n );\n};\n\nexports.printText = printText;\n\nconst printComment = (comment, config) => {\n const commentColor = config.colors.comment;\n return (\n commentColor.open +\n '' +\n commentColor.close\n );\n}; // Separate the functions to format props, children, and element,\n// so a plugin could override a particular function, if needed.\n// Too bad, so sad: the traditional (but unnecessary) space\n// in a self-closing tagColor requires a second test of printedProps.\n\nexports.printComment = printComment;\n\nconst printElement = (\n type,\n printedProps,\n printedChildren,\n config,\n indentation\n) => {\n const tagColor = config.colors.tag;\n return (\n tagColor.open +\n '<' +\n type +\n (printedProps &&\n tagColor.close +\n printedProps +\n config.spacingOuter +\n indentation +\n tagColor.open) +\n (printedChildren\n ? '>' +\n tagColor.close +\n printedChildren +\n config.spacingOuter +\n indentation +\n tagColor.open +\n '' +\n tagColor.close\n );\n};\n\nexports.printElement = printElement;\n\nconst printElementAsLeaf = (type, config) => {\n const tagColor = config.colors.tag;\n return (\n tagColor.open +\n '<' +\n type +\n tagColor.close +\n ' …' +\n tagColor.open +\n ' />' +\n tagColor.close\n );\n};\n\nexports.printElementAsLeaf = printElementAsLeaf;\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.test = exports.serialize = exports.default = void 0;\n\nvar _markup = require('./lib/markup');\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nconst ELEMENT_NODE = 1;\nconst TEXT_NODE = 3;\nconst COMMENT_NODE = 8;\nconst FRAGMENT_NODE = 11;\nconst ELEMENT_REGEXP = /^((HTML|SVG)\\w*)?Element$/;\n\nconst testHasAttribute = val => {\n try {\n return typeof val.hasAttribute === 'function' && val.hasAttribute('is');\n } catch {\n return false;\n }\n};\n\nconst testNode = val => {\n const constructorName = val.constructor.name;\n const {nodeType, tagName} = val;\n const isCustomElement =\n (typeof tagName === 'string' && tagName.includes('-')) ||\n testHasAttribute(val);\n return (\n (nodeType === ELEMENT_NODE &&\n (ELEMENT_REGEXP.test(constructorName) || isCustomElement)) ||\n (nodeType === TEXT_NODE && constructorName === 'Text') ||\n (nodeType === COMMENT_NODE && constructorName === 'Comment') ||\n (nodeType === FRAGMENT_NODE && constructorName === 'DocumentFragment')\n );\n};\n\nconst test = val => {\n var _val$constructor;\n\n return (\n (val === null || val === void 0\n ? void 0\n : (_val$constructor = val.constructor) === null ||\n _val$constructor === void 0\n ? void 0\n : _val$constructor.name) && testNode(val)\n );\n};\n\nexports.test = test;\n\nfunction nodeIsText(node) {\n return node.nodeType === TEXT_NODE;\n}\n\nfunction nodeIsComment(node) {\n return node.nodeType === COMMENT_NODE;\n}\n\nfunction nodeIsFragment(node) {\n return node.nodeType === FRAGMENT_NODE;\n}\n\nconst serialize = (node, config, indentation, depth, refs, printer) => {\n if (nodeIsText(node)) {\n return (0, _markup.printText)(node.data, config);\n }\n\n if (nodeIsComment(node)) {\n return (0, _markup.printComment)(node.data, config);\n }\n\n const type = nodeIsFragment(node)\n ? 'DocumentFragment'\n : node.tagName.toLowerCase();\n\n if (++depth > config.maxDepth) {\n return (0, _markup.printElementAsLeaf)(type, config);\n }\n\n return (0, _markup.printElement)(\n type,\n (0, _markup.printProps)(\n nodeIsFragment(node)\n ? []\n : Array.from(node.attributes)\n .map(attr => attr.name)\n .sort(),\n nodeIsFragment(node)\n ? {}\n : Array.from(node.attributes).reduce((props, attribute) => {\n props[attribute.name] = attribute.value;\n return props;\n }, {}),\n config,\n indentation + config.indent,\n depth,\n refs,\n printer\n ),\n (0, _markup.printChildren)(\n Array.prototype.slice.call(node.childNodes || node.children),\n config,\n indentation + config.indent,\n depth,\n refs,\n printer\n ),\n config,\n indentation\n );\n};\n\nexports.serialize = serialize;\nconst plugin = {\n serialize,\n test\n};\nvar _default = plugin;\nexports.default = _default;\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.test = exports.serialize = exports.default = void 0;\n\nvar _collections = require('../collections');\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n// SENTINEL constants are from https://github.com/facebook/immutable-js\nconst IS_ITERABLE_SENTINEL = '@@__IMMUTABLE_ITERABLE__@@';\nconst IS_LIST_SENTINEL = '@@__IMMUTABLE_LIST__@@';\nconst IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@';\nconst IS_MAP_SENTINEL = '@@__IMMUTABLE_MAP__@@';\nconst IS_ORDERED_SENTINEL = '@@__IMMUTABLE_ORDERED__@@';\nconst IS_RECORD_SENTINEL = '@@__IMMUTABLE_RECORD__@@'; // immutable v4\n\nconst IS_SEQ_SENTINEL = '@@__IMMUTABLE_SEQ__@@';\nconst IS_SET_SENTINEL = '@@__IMMUTABLE_SET__@@';\nconst IS_STACK_SENTINEL = '@@__IMMUTABLE_STACK__@@';\n\nconst getImmutableName = name => 'Immutable.' + name;\n\nconst printAsLeaf = name => '[' + name + ']';\n\nconst SPACE = ' ';\nconst LAZY = '…'; // Seq is lazy if it calls a method like filter\n\nconst printImmutableEntries = (\n val,\n config,\n indentation,\n depth,\n refs,\n printer,\n type\n) =>\n ++depth > config.maxDepth\n ? printAsLeaf(getImmutableName(type))\n : getImmutableName(type) +\n SPACE +\n '{' +\n (0, _collections.printIteratorEntries)(\n val.entries(),\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n '}'; // Record has an entries method because it is a collection in immutable v3.\n// Return an iterator for Immutable Record from version v3 or v4.\n\nfunction getRecordEntries(val) {\n let i = 0;\n return {\n next() {\n if (i < val._keys.length) {\n const key = val._keys[i++];\n return {\n done: false,\n value: [key, val.get(key)]\n };\n }\n\n return {\n done: true,\n value: undefined\n };\n }\n };\n}\n\nconst printImmutableRecord = (\n val,\n config,\n indentation,\n depth,\n refs,\n printer\n) => {\n // _name property is defined only for an Immutable Record instance\n // which was constructed with a second optional descriptive name arg\n const name = getImmutableName(val._name || 'Record');\n return ++depth > config.maxDepth\n ? printAsLeaf(name)\n : name +\n SPACE +\n '{' +\n (0, _collections.printIteratorEntries)(\n getRecordEntries(val),\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n '}';\n};\n\nconst printImmutableSeq = (val, config, indentation, depth, refs, printer) => {\n const name = getImmutableName('Seq');\n\n if (++depth > config.maxDepth) {\n return printAsLeaf(name);\n }\n\n if (val[IS_KEYED_SENTINEL]) {\n return (\n name +\n SPACE +\n '{' + // from Immutable collection of entries or from ECMAScript object\n (val._iter || val._object\n ? (0, _collections.printIteratorEntries)(\n val.entries(),\n config,\n indentation,\n depth,\n refs,\n printer\n )\n : LAZY) +\n '}'\n );\n }\n\n return (\n name +\n SPACE +\n '[' +\n (val._iter || // from Immutable collection of values\n val._array || // from ECMAScript array\n val._collection || // from ECMAScript collection in immutable v4\n val._iterable // from ECMAScript collection in immutable v3\n ? (0, _collections.printIteratorValues)(\n val.values(),\n config,\n indentation,\n depth,\n refs,\n printer\n )\n : LAZY) +\n ']'\n );\n};\n\nconst printImmutableValues = (\n val,\n config,\n indentation,\n depth,\n refs,\n printer,\n type\n) =>\n ++depth > config.maxDepth\n ? printAsLeaf(getImmutableName(type))\n : getImmutableName(type) +\n SPACE +\n '[' +\n (0, _collections.printIteratorValues)(\n val.values(),\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n ']';\n\nconst serialize = (val, config, indentation, depth, refs, printer) => {\n if (val[IS_MAP_SENTINEL]) {\n return printImmutableEntries(\n val,\n config,\n indentation,\n depth,\n refs,\n printer,\n val[IS_ORDERED_SENTINEL] ? 'OrderedMap' : 'Map'\n );\n }\n\n if (val[IS_LIST_SENTINEL]) {\n return printImmutableValues(\n val,\n config,\n indentation,\n depth,\n refs,\n printer,\n 'List'\n );\n }\n\n if (val[IS_SET_SENTINEL]) {\n return printImmutableValues(\n val,\n config,\n indentation,\n depth,\n refs,\n printer,\n val[IS_ORDERED_SENTINEL] ? 'OrderedSet' : 'Set'\n );\n }\n\n if (val[IS_STACK_SENTINEL]) {\n return printImmutableValues(\n val,\n config,\n indentation,\n depth,\n refs,\n printer,\n 'Stack'\n );\n }\n\n if (val[IS_SEQ_SENTINEL]) {\n return printImmutableSeq(val, config, indentation, depth, refs, printer);\n } // For compatibility with immutable v3 and v4, let record be the default.\n\n return printImmutableRecord(val, config, indentation, depth, refs, printer);\n}; // Explicitly comparing sentinel properties to true avoids false positive\n// when mock identity-obj-proxy returns the key as the value for any key.\n\nexports.serialize = serialize;\n\nconst test = val =>\n val &&\n (val[IS_ITERABLE_SENTINEL] === true || val[IS_RECORD_SENTINEL] === true);\n\nexports.test = test;\nconst plugin = {\n serialize,\n test\n};\nvar _default = plugin;\nexports.default = _default;\n","/** @license React v17.0.2\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var b=60103,c=60106,d=60107,e=60108,f=60114,g=60109,h=60110,k=60112,l=60113,m=60120,n=60115,p=60116,q=60121,r=60122,u=60117,v=60129,w=60131;\nif(\"function\"===typeof Symbol&&Symbol.for){var x=Symbol.for;b=x(\"react.element\");c=x(\"react.portal\");d=x(\"react.fragment\");e=x(\"react.strict_mode\");f=x(\"react.profiler\");g=x(\"react.provider\");h=x(\"react.context\");k=x(\"react.forward_ref\");l=x(\"react.suspense\");m=x(\"react.suspense_list\");n=x(\"react.memo\");p=x(\"react.lazy\");q=x(\"react.block\");r=x(\"react.server.block\");u=x(\"react.fundamental\");v=x(\"react.debug_trace_mode\");w=x(\"react.legacy_hidden\")}\nfunction y(a){if(\"object\"===typeof a&&null!==a){var t=a.$$typeof;switch(t){case b:switch(a=a.type,a){case d:case f:case e:case l:case m:return a;default:switch(a=a&&a.$$typeof,a){case h:case k:case p:case n:case g:return a;default:return t}}case c:return t}}}var z=g,A=b,B=k,C=d,D=p,E=n,F=c,G=f,H=e,I=l;exports.ContextConsumer=h;exports.ContextProvider=z;exports.Element=A;exports.ForwardRef=B;exports.Fragment=C;exports.Lazy=D;exports.Memo=E;exports.Portal=F;exports.Profiler=G;exports.StrictMode=H;\nexports.Suspense=I;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return y(a)===h};exports.isContextProvider=function(a){return y(a)===g};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return y(a)===k};exports.isFragment=function(a){return y(a)===d};exports.isLazy=function(a){return y(a)===p};exports.isMemo=function(a){return y(a)===n};\nexports.isPortal=function(a){return y(a)===c};exports.isProfiler=function(a){return y(a)===f};exports.isStrictMode=function(a){return y(a)===e};exports.isSuspense=function(a){return y(a)===l};exports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===v||a===e||a===l||a===m||a===w||\"object\"===typeof a&&null!==a&&(a.$$typeof===p||a.$$typeof===n||a.$$typeof===g||a.$$typeof===h||a.$$typeof===k||a.$$typeof===u||a.$$typeof===q||a[0]===r)?!0:!1};\nexports.typeOf=y;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.test = exports.serialize = exports.default = void 0;\n\nvar ReactIs = _interopRequireWildcard(require('react-is'));\n\nvar _markup = require('./lib/markup');\n\nfunction _getRequireWildcardCache(nodeInterop) {\n if (typeof WeakMap !== 'function') return null;\n var cacheBabelInterop = new WeakMap();\n var cacheNodeInterop = new WeakMap();\n return (_getRequireWildcardCache = function (nodeInterop) {\n return nodeInterop ? cacheNodeInterop : cacheBabelInterop;\n })(nodeInterop);\n}\n\nfunction _interopRequireWildcard(obj, nodeInterop) {\n if (!nodeInterop && obj && obj.__esModule) {\n return obj;\n }\n if (obj === null || (typeof obj !== 'object' && typeof obj !== 'function')) {\n return {default: obj};\n }\n var cache = _getRequireWildcardCache(nodeInterop);\n if (cache && cache.has(obj)) {\n return cache.get(obj);\n }\n var newObj = {};\n var hasPropertyDescriptor =\n Object.defineProperty && Object.getOwnPropertyDescriptor;\n for (var key in obj) {\n if (key !== 'default' && Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor\n ? Object.getOwnPropertyDescriptor(obj, key)\n : null;\n if (desc && (desc.get || desc.set)) {\n Object.defineProperty(newObj, key, desc);\n } else {\n newObj[key] = obj[key];\n }\n }\n }\n newObj.default = obj;\n if (cache) {\n cache.set(obj, newObj);\n }\n return newObj;\n}\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n// Given element.props.children, or subtree during recursive traversal,\n// return flattened array of children.\nconst getChildren = (arg, children = []) => {\n if (Array.isArray(arg)) {\n arg.forEach(item => {\n getChildren(item, children);\n });\n } else if (arg != null && arg !== false) {\n children.push(arg);\n }\n\n return children;\n};\n\nconst getType = element => {\n const type = element.type;\n\n if (typeof type === 'string') {\n return type;\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || 'Unknown';\n }\n\n if (ReactIs.isFragment(element)) {\n return 'React.Fragment';\n }\n\n if (ReactIs.isSuspense(element)) {\n return 'React.Suspense';\n }\n\n if (typeof type === 'object' && type !== null) {\n if (ReactIs.isContextProvider(element)) {\n return 'Context.Provider';\n }\n\n if (ReactIs.isContextConsumer(element)) {\n return 'Context.Consumer';\n }\n\n if (ReactIs.isForwardRef(element)) {\n if (type.displayName) {\n return type.displayName;\n }\n\n const functionName = type.render.displayName || type.render.name || '';\n return functionName !== ''\n ? 'ForwardRef(' + functionName + ')'\n : 'ForwardRef';\n }\n\n if (ReactIs.isMemo(element)) {\n const functionName =\n type.displayName || type.type.displayName || type.type.name || '';\n return functionName !== '' ? 'Memo(' + functionName + ')' : 'Memo';\n }\n }\n\n return 'UNDEFINED';\n};\n\nconst getPropKeys = element => {\n const {props} = element;\n return Object.keys(props)\n .filter(key => key !== 'children' && props[key] !== undefined)\n .sort();\n};\n\nconst serialize = (element, config, indentation, depth, refs, printer) =>\n ++depth > config.maxDepth\n ? (0, _markup.printElementAsLeaf)(getType(element), config)\n : (0, _markup.printElement)(\n getType(element),\n (0, _markup.printProps)(\n getPropKeys(element),\n element.props,\n config,\n indentation + config.indent,\n depth,\n refs,\n printer\n ),\n (0, _markup.printChildren)(\n getChildren(element.props.children),\n config,\n indentation + config.indent,\n depth,\n refs,\n printer\n ),\n config,\n indentation\n );\n\nexports.serialize = serialize;\n\nconst test = val => val != null && ReactIs.isElement(val);\n\nexports.test = test;\nconst plugin = {\n serialize,\n test\n};\nvar _default = plugin;\nexports.default = _default;\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.test = exports.serialize = exports.default = void 0;\n\nvar _markup = require('./lib/markup');\n\nvar global = (function () {\n if (typeof globalThis !== 'undefined') {\n return globalThis;\n } else if (typeof global !== 'undefined') {\n return global;\n } else if (typeof self !== 'undefined') {\n return self;\n } else if (typeof window !== 'undefined') {\n return window;\n } else {\n return Function('return this')();\n }\n})();\n\nvar Symbol = global['jest-symbol-do-not-touch'] || global.Symbol;\nconst testSymbol =\n typeof Symbol === 'function' && Symbol.for\n ? Symbol.for('react.test.json')\n : 0xea71357;\n\nconst getPropKeys = object => {\n const {props} = object;\n return props\n ? Object.keys(props)\n .filter(key => props[key] !== undefined)\n .sort()\n : [];\n};\n\nconst serialize = (object, config, indentation, depth, refs, printer) =>\n ++depth > config.maxDepth\n ? (0, _markup.printElementAsLeaf)(object.type, config)\n : (0, _markup.printElement)(\n object.type,\n object.props\n ? (0, _markup.printProps)(\n getPropKeys(object),\n object.props,\n config,\n indentation + config.indent,\n depth,\n refs,\n printer\n )\n : '',\n object.children\n ? (0, _markup.printChildren)(\n object.children,\n config,\n indentation + config.indent,\n depth,\n refs,\n printer\n )\n : '',\n config,\n indentation\n );\n\nexports.serialize = serialize;\n\nconst test = val => val && val.$$typeof === testSymbol;\n\nexports.test = test;\nconst plugin = {\n serialize,\n test\n};\nvar _default = plugin;\nexports.default = _default;\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.default = exports.DEFAULT_OPTIONS = void 0;\nexports.format = format;\nexports.plugins = void 0;\n\nvar _ansiStyles = _interopRequireDefault(require('ansi-styles'));\n\nvar _collections = require('./collections');\n\nvar _AsymmetricMatcher = _interopRequireDefault(\n require('./plugins/AsymmetricMatcher')\n);\n\nvar _ConvertAnsi = _interopRequireDefault(require('./plugins/ConvertAnsi'));\n\nvar _DOMCollection = _interopRequireDefault(require('./plugins/DOMCollection'));\n\nvar _DOMElement = _interopRequireDefault(require('./plugins/DOMElement'));\n\nvar _Immutable = _interopRequireDefault(require('./plugins/Immutable'));\n\nvar _ReactElement = _interopRequireDefault(require('./plugins/ReactElement'));\n\nvar _ReactTestComponent = _interopRequireDefault(\n require('./plugins/ReactTestComponent')\n);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* eslint-disable local/ban-types-eventually */\nconst toString = Object.prototype.toString;\nconst toISOString = Date.prototype.toISOString;\nconst errorToString = Error.prototype.toString;\nconst regExpToString = RegExp.prototype.toString;\n/**\n * Explicitly comparing typeof constructor to function avoids undefined as name\n * when mock identity-obj-proxy returns the key as the value for any key.\n */\n\nconst getConstructorName = val =>\n (typeof val.constructor === 'function' && val.constructor.name) || 'Object';\n/* global window */\n\n/** Is val is equal to global window object? Works even if it does not exist :) */\n\nconst isWindow = val => typeof window !== 'undefined' && val === window;\n\nconst SYMBOL_REGEXP = /^Symbol\\((.*)\\)(.*)$/;\nconst NEWLINE_REGEXP = /\\n/gi;\n\nclass PrettyFormatPluginError extends Error {\n constructor(message, stack) {\n super(message);\n this.stack = stack;\n this.name = this.constructor.name;\n }\n}\n\nfunction isToStringedArrayType(toStringed) {\n return (\n toStringed === '[object Array]' ||\n toStringed === '[object ArrayBuffer]' ||\n toStringed === '[object DataView]' ||\n toStringed === '[object Float32Array]' ||\n toStringed === '[object Float64Array]' ||\n toStringed === '[object Int8Array]' ||\n toStringed === '[object Int16Array]' ||\n toStringed === '[object Int32Array]' ||\n toStringed === '[object Uint8Array]' ||\n toStringed === '[object Uint8ClampedArray]' ||\n toStringed === '[object Uint16Array]' ||\n toStringed === '[object Uint32Array]'\n );\n}\n\nfunction printNumber(val) {\n return Object.is(val, -0) ? '-0' : String(val);\n}\n\nfunction printBigInt(val) {\n return String(`${val}n`);\n}\n\nfunction printFunction(val, printFunctionName) {\n if (!printFunctionName) {\n return '[Function]';\n }\n\n return '[Function ' + (val.name || 'anonymous') + ']';\n}\n\nfunction printSymbol(val) {\n return String(val).replace(SYMBOL_REGEXP, 'Symbol($1)');\n}\n\nfunction printError(val) {\n return '[' + errorToString.call(val) + ']';\n}\n/**\n * The first port of call for printing an object, handles most of the\n * data-types in JS.\n */\n\nfunction printBasicValue(val, printFunctionName, escapeRegex, escapeString) {\n if (val === true || val === false) {\n return '' + val;\n }\n\n if (val === undefined) {\n return 'undefined';\n }\n\n if (val === null) {\n return 'null';\n }\n\n const typeOf = typeof val;\n\n if (typeOf === 'number') {\n return printNumber(val);\n }\n\n if (typeOf === 'bigint') {\n return printBigInt(val);\n }\n\n if (typeOf === 'string') {\n if (escapeString) {\n return '\"' + val.replace(/\"|\\\\/g, '\\\\$&') + '\"';\n }\n\n return '\"' + val + '\"';\n }\n\n if (typeOf === 'function') {\n return printFunction(val, printFunctionName);\n }\n\n if (typeOf === 'symbol') {\n return printSymbol(val);\n }\n\n const toStringed = toString.call(val);\n\n if (toStringed === '[object WeakMap]') {\n return 'WeakMap {}';\n }\n\n if (toStringed === '[object WeakSet]') {\n return 'WeakSet {}';\n }\n\n if (\n toStringed === '[object Function]' ||\n toStringed === '[object GeneratorFunction]'\n ) {\n return printFunction(val, printFunctionName);\n }\n\n if (toStringed === '[object Symbol]') {\n return printSymbol(val);\n }\n\n if (toStringed === '[object Date]') {\n return isNaN(+val) ? 'Date { NaN }' : toISOString.call(val);\n }\n\n if (toStringed === '[object Error]') {\n return printError(val);\n }\n\n if (toStringed === '[object RegExp]') {\n if (escapeRegex) {\n // https://github.com/benjamingr/RegExp.escape/blob/main/polyfill.js\n return regExpToString.call(val).replace(/[\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n }\n\n return regExpToString.call(val);\n }\n\n if (val instanceof Error) {\n return printError(val);\n }\n\n return null;\n}\n/**\n * Handles more complex objects ( such as objects with circular references.\n * maps and sets etc )\n */\n\nfunction printComplexValue(\n val,\n config,\n indentation,\n depth,\n refs,\n hasCalledToJSON\n) {\n if (refs.indexOf(val) !== -1) {\n return '[Circular]';\n }\n\n refs = refs.slice();\n refs.push(val);\n const hitMaxDepth = ++depth > config.maxDepth;\n const min = config.min;\n\n if (\n config.callToJSON &&\n !hitMaxDepth &&\n val.toJSON &&\n typeof val.toJSON === 'function' &&\n !hasCalledToJSON\n ) {\n return printer(val.toJSON(), config, indentation, depth, refs, true);\n }\n\n const toStringed = toString.call(val);\n\n if (toStringed === '[object Arguments]') {\n return hitMaxDepth\n ? '[Arguments]'\n : (min ? '' : 'Arguments ') +\n '[' +\n (0, _collections.printListItems)(\n val,\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n ']';\n }\n\n if (isToStringedArrayType(toStringed)) {\n return hitMaxDepth\n ? '[' + val.constructor.name + ']'\n : (min\n ? ''\n : !config.printBasicPrototype && val.constructor.name === 'Array'\n ? ''\n : val.constructor.name + ' ') +\n '[' +\n (0, _collections.printListItems)(\n val,\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n ']';\n }\n\n if (toStringed === '[object Map]') {\n return hitMaxDepth\n ? '[Map]'\n : 'Map {' +\n (0, _collections.printIteratorEntries)(\n val.entries(),\n config,\n indentation,\n depth,\n refs,\n printer,\n ' => '\n ) +\n '}';\n }\n\n if (toStringed === '[object Set]') {\n return hitMaxDepth\n ? '[Set]'\n : 'Set {' +\n (0, _collections.printIteratorValues)(\n val.values(),\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n '}';\n } // Avoid failure to serialize global window object in jsdom test environment.\n // For example, not even relevant if window is prop of React element.\n\n return hitMaxDepth || isWindow(val)\n ? '[' + getConstructorName(val) + ']'\n : (min\n ? ''\n : !config.printBasicPrototype && getConstructorName(val) === 'Object'\n ? ''\n : getConstructorName(val) + ' ') +\n '{' +\n (0, _collections.printObjectProperties)(\n val,\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n '}';\n}\n\nfunction isNewPlugin(plugin) {\n return plugin.serialize != null;\n}\n\nfunction printPlugin(plugin, val, config, indentation, depth, refs) {\n let printed;\n\n try {\n printed = isNewPlugin(plugin)\n ? plugin.serialize(val, config, indentation, depth, refs, printer)\n : plugin.print(\n val,\n valChild => printer(valChild, config, indentation, depth, refs),\n str => {\n const indentationNext = indentation + config.indent;\n return (\n indentationNext +\n str.replace(NEWLINE_REGEXP, '\\n' + indentationNext)\n );\n },\n {\n edgeSpacing: config.spacingOuter,\n min: config.min,\n spacing: config.spacingInner\n },\n config.colors\n );\n } catch (error) {\n throw new PrettyFormatPluginError(error.message, error.stack);\n }\n\n if (typeof printed !== 'string') {\n throw new Error(\n `pretty-format: Plugin must return type \"string\" but instead returned \"${typeof printed}\".`\n );\n }\n\n return printed;\n}\n\nfunction findPlugin(plugins, val) {\n for (let p = 0; p < plugins.length; p++) {\n try {\n if (plugins[p].test(val)) {\n return plugins[p];\n }\n } catch (error) {\n throw new PrettyFormatPluginError(error.message, error.stack);\n }\n }\n\n return null;\n}\n\nfunction printer(val, config, indentation, depth, refs, hasCalledToJSON) {\n const plugin = findPlugin(config.plugins, val);\n\n if (plugin !== null) {\n return printPlugin(plugin, val, config, indentation, depth, refs);\n }\n\n const basicResult = printBasicValue(\n val,\n config.printFunctionName,\n config.escapeRegex,\n config.escapeString\n );\n\n if (basicResult !== null) {\n return basicResult;\n }\n\n return printComplexValue(\n val,\n config,\n indentation,\n depth,\n refs,\n hasCalledToJSON\n );\n}\n\nconst DEFAULT_THEME = {\n comment: 'gray',\n content: 'reset',\n prop: 'yellow',\n tag: 'cyan',\n value: 'green'\n};\nconst DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME);\nconst DEFAULT_OPTIONS = {\n callToJSON: true,\n compareKeys: undefined,\n escapeRegex: false,\n escapeString: true,\n highlight: false,\n indent: 2,\n maxDepth: Infinity,\n min: false,\n plugins: [],\n printBasicPrototype: true,\n printFunctionName: true,\n theme: DEFAULT_THEME\n};\nexports.DEFAULT_OPTIONS = DEFAULT_OPTIONS;\n\nfunction validateOptions(options) {\n Object.keys(options).forEach(key => {\n if (!DEFAULT_OPTIONS.hasOwnProperty(key)) {\n throw new Error(`pretty-format: Unknown option \"${key}\".`);\n }\n });\n\n if (options.min && options.indent !== undefined && options.indent !== 0) {\n throw new Error(\n 'pretty-format: Options \"min\" and \"indent\" cannot be used together.'\n );\n }\n\n if (options.theme !== undefined) {\n if (options.theme === null) {\n throw new Error('pretty-format: Option \"theme\" must not be null.');\n }\n\n if (typeof options.theme !== 'object') {\n throw new Error(\n `pretty-format: Option \"theme\" must be of type \"object\" but instead received \"${typeof options.theme}\".`\n );\n }\n }\n}\n\nconst getColorsHighlight = options =>\n DEFAULT_THEME_KEYS.reduce((colors, key) => {\n const value =\n options.theme && options.theme[key] !== undefined\n ? options.theme[key]\n : DEFAULT_THEME[key];\n const color = value && _ansiStyles.default[value];\n\n if (\n color &&\n typeof color.close === 'string' &&\n typeof color.open === 'string'\n ) {\n colors[key] = color;\n } else {\n throw new Error(\n `pretty-format: Option \"theme\" has a key \"${key}\" whose value \"${value}\" is undefined in ansi-styles.`\n );\n }\n\n return colors;\n }, Object.create(null));\n\nconst getColorsEmpty = () =>\n DEFAULT_THEME_KEYS.reduce((colors, key) => {\n colors[key] = {\n close: '',\n open: ''\n };\n return colors;\n }, Object.create(null));\n\nconst getPrintFunctionName = options =>\n options && options.printFunctionName !== undefined\n ? options.printFunctionName\n : DEFAULT_OPTIONS.printFunctionName;\n\nconst getEscapeRegex = options =>\n options && options.escapeRegex !== undefined\n ? options.escapeRegex\n : DEFAULT_OPTIONS.escapeRegex;\n\nconst getEscapeString = options =>\n options && options.escapeString !== undefined\n ? options.escapeString\n : DEFAULT_OPTIONS.escapeString;\n\nconst getConfig = options => {\n var _options$printBasicPr;\n\n return {\n callToJSON:\n options && options.callToJSON !== undefined\n ? options.callToJSON\n : DEFAULT_OPTIONS.callToJSON,\n colors:\n options && options.highlight\n ? getColorsHighlight(options)\n : getColorsEmpty(),\n compareKeys:\n options && typeof options.compareKeys === 'function'\n ? options.compareKeys\n : DEFAULT_OPTIONS.compareKeys,\n escapeRegex: getEscapeRegex(options),\n escapeString: getEscapeString(options),\n indent:\n options && options.min\n ? ''\n : createIndent(\n options && options.indent !== undefined\n ? options.indent\n : DEFAULT_OPTIONS.indent\n ),\n maxDepth:\n options && options.maxDepth !== undefined\n ? options.maxDepth\n : DEFAULT_OPTIONS.maxDepth,\n min:\n options && options.min !== undefined ? options.min : DEFAULT_OPTIONS.min,\n plugins:\n options && options.plugins !== undefined\n ? options.plugins\n : DEFAULT_OPTIONS.plugins,\n printBasicPrototype:\n (_options$printBasicPr =\n options === null || options === void 0\n ? void 0\n : options.printBasicPrototype) !== null &&\n _options$printBasicPr !== void 0\n ? _options$printBasicPr\n : true,\n printFunctionName: getPrintFunctionName(options),\n spacingInner: options && options.min ? ' ' : '\\n',\n spacingOuter: options && options.min ? '' : '\\n'\n };\n};\n\nfunction createIndent(indent) {\n return new Array(indent + 1).join(' ');\n}\n/**\n * Returns a presentation string of your `val` object\n * @param val any potential JavaScript object\n * @param options Custom settings\n */\n\nfunction format(val, options) {\n if (options) {\n validateOptions(options);\n\n if (options.plugins) {\n const plugin = findPlugin(options.plugins, val);\n\n if (plugin !== null) {\n return printPlugin(plugin, val, getConfig(options), '', 0, []);\n }\n }\n }\n\n const basicResult = printBasicValue(\n val,\n getPrintFunctionName(options),\n getEscapeRegex(options),\n getEscapeString(options)\n );\n\n if (basicResult !== null) {\n return basicResult;\n }\n\n return printComplexValue(val, getConfig(options), '', 0, []);\n}\n\nconst plugins = {\n AsymmetricMatcher: _AsymmetricMatcher.default,\n ConvertAnsi: _ConvertAnsi.default,\n DOMCollection: _DOMCollection.default,\n DOMElement: _DOMElement.default,\n Immutable: _Immutable.default,\n ReactElement: _ReactElement.default,\n ReactTestComponent: _ReactTestComponent.default\n};\nexports.plugins = plugins;\nvar _default = format;\nexports.default = _default;\n","const SAFE_TIMERS_SYMBOL = Symbol(\"vitest:SAFE_TIMERS\");\nconst SAFE_COLORS_SYMBOL = Symbol(\"vitest:SAFE_COLORS\");\n\nconst colorsMap = {\n bold: [\"\\x1B[1m\", \"\\x1B[22m\", \"\\x1B[22m\\x1B[1m\"],\n dim: [\"\\x1B[2m\", \"\\x1B[22m\", \"\\x1B[22m\\x1B[2m\"],\n italic: [\"\\x1B[3m\", \"\\x1B[23m\"],\n underline: [\"\\x1B[4m\", \"\\x1B[24m\"],\n inverse: [\"\\x1B[7m\", \"\\x1B[27m\"],\n hidden: [\"\\x1B[8m\", \"\\x1B[28m\"],\n strikethrough: [\"\\x1B[9m\", \"\\x1B[29m\"],\n black: [\"\\x1B[30m\", \"\\x1B[39m\"],\n red: [\"\\x1B[31m\", \"\\x1B[39m\"],\n green: [\"\\x1B[32m\", \"\\x1B[39m\"],\n yellow: [\"\\x1B[33m\", \"\\x1B[39m\"],\n blue: [\"\\x1B[34m\", \"\\x1B[39m\"],\n magenta: [\"\\x1B[35m\", \"\\x1B[39m\"],\n cyan: [\"\\x1B[36m\", \"\\x1B[39m\"],\n white: [\"\\x1B[37m\", \"\\x1B[39m\"],\n gray: [\"\\x1B[90m\", \"\\x1B[39m\"],\n bgBlack: [\"\\x1B[40m\", \"\\x1B[49m\"],\n bgRed: [\"\\x1B[41m\", \"\\x1B[49m\"],\n bgGreen: [\"\\x1B[42m\", \"\\x1B[49m\"],\n bgYellow: [\"\\x1B[43m\", \"\\x1B[49m\"],\n bgBlue: [\"\\x1B[44m\", \"\\x1B[49m\"],\n bgMagenta: [\"\\x1B[45m\", \"\\x1B[49m\"],\n bgCyan: [\"\\x1B[46m\", \"\\x1B[49m\"],\n bgWhite: [\"\\x1B[47m\", \"\\x1B[49m\"]\n};\nconst colorsEntries = Object.entries(colorsMap);\nfunction string(str) {\n return String(str);\n}\nstring.open = \"\";\nstring.close = \"\";\nconst defaultColors = /* @__PURE__ */ colorsEntries.reduce((acc, [key]) => {\n acc[key] = string;\n return acc;\n}, { isColorSupported: false });\nfunction getDefaultColors() {\n return { ...defaultColors };\n}\nfunction getColors() {\n return globalThis[SAFE_COLORS_SYMBOL] || defaultColors;\n}\nfunction createColors(isTTY = false) {\n const enabled = typeof process !== \"undefined\" && !(\"NO_COLOR\" in process.env || process.argv.includes(\"--no-color\")) && !(\"GITHUB_ACTIONS\" in process.env) && (\"FORCE_COLOR\" in process.env || process.argv.includes(\"--color\") || process.platform === \"win32\" || isTTY && process.env.TERM !== \"dumb\" || \"CI\" in process.env);\n const replaceClose = (string2, close, replace, index) => {\n const start = string2.substring(0, index) + replace;\n const end = string2.substring(index + close.length);\n const nextIndex = end.indexOf(close);\n return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;\n };\n const formatter = (open, close, replace = open) => {\n const fn = (input) => {\n const string2 = String(input);\n const index = string2.indexOf(close, open.length);\n return ~index ? open + replaceClose(string2, close, replace, index) + close : open + string2 + close;\n };\n fn.open = open;\n fn.close = close;\n return fn;\n };\n const colorsObject = {\n isColorSupported: enabled,\n reset: enabled ? (s) => `\\x1B[0m${s}\\x1B[0m` : string\n };\n for (const [name, formatterArgs] of colorsEntries) {\n colorsObject[name] = enabled ? formatter(...formatterArgs) : string;\n }\n return colorsObject;\n}\nfunction setupColors(colors) {\n globalThis[SAFE_COLORS_SYMBOL] = colors;\n}\n\nexport { SAFE_TIMERS_SYMBOL as S, SAFE_COLORS_SYMBOL as a, getColors as b, createColors as c, getDefaultColors as g, setupColors as s };\n","'use strict';\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n","'use strict';\n\nvar hasSymbols = require('has-symbols/shams');\n\nmodule.exports = function hasToStringTagShams() {\n\treturn hasSymbols() && !!Symbol.toStringTag;\n};\n","'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n","'use strict';\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar slice = Array.prototype.slice;\nvar toStr = Object.prototype.toString;\nvar funcType = '[object Function]';\n\nmodule.exports = function bind(that) {\n var target = this;\n if (typeof target !== 'function' || toStr.call(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slice.call(arguments, 1);\n\n var bound;\n var binder = function () {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n args.concat(slice.call(arguments))\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n } else {\n return target.apply(\n that,\n args.concat(slice.call(arguments))\n );\n }\n };\n\n var boundLength = Math.max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs.push('$' + i);\n }\n\n bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);\n\n if (target.prototype) {\n var Empty = function Empty() {};\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return bound;\n};\n","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = Function.prototype.bind || implementation;\n","'use strict';\n\nvar bind = require('function-bind');\n\nmodule.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);\n","'use strict';\n\nvar undefined;\n\nvar $SyntaxError = SyntaxError;\nvar $Function = Function;\nvar $TypeError = TypeError;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\n\nvar getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': EvalError,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': Object,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': RangeError,\n\t'%ReferenceError%': ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet\n};\n\ntry {\n\tnull.error; // eslint-disable-line no-unused-expressions\n} catch (e) {\n\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\tvar errorProto = getProto(getProto(e));\n\tINTRINSICS['%Error.prototype%'] = errorProto;\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\nvar hasOwn = require('has');\nvar $concat = bind.call(Function.call, Array.prototype.concat);\nvar $spliceApply = bind.call(Function.apply, Array.prototype.splice);\nvar $replace = bind.call(Function.call, String.prototype.replace);\nvar $strSlice = bind.call(Function.call, String.prototype.slice);\nvar $exec = bind.call(Function.call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n","'use strict';\n\nvar bind = require('function-bind');\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $apply = GetIntrinsic('%Function.prototype.apply%');\nvar $call = GetIntrinsic('%Function.prototype.call%');\nvar $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\nvar $defineProperty = GetIntrinsic('%Object.defineProperty%', true);\nvar $max = GetIntrinsic('%Math.max%');\n\nif ($defineProperty) {\n\ttry {\n\t\t$defineProperty({}, 'a', { value: 1 });\n\t} catch (e) {\n\t\t// IE 8 has a broken defineProperty\n\t\t$defineProperty = null;\n\t}\n}\n\nmodule.exports = function callBind(originalFunction) {\n\tvar func = $reflectApply(bind, $call, arguments);\n\tif ($gOPD && $defineProperty) {\n\t\tvar desc = $gOPD(func, 'length');\n\t\tif (desc.configurable) {\n\t\t\t// original length, plus the receiver, minus any additional arguments (after the receiver)\n\t\t\t$defineProperty(\n\t\t\t\tfunc,\n\t\t\t\t'length',\n\t\t\t\t{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }\n\t\t\t);\n\t\t}\n\t}\n\treturn func;\n};\n\nvar applyBind = function applyBind() {\n\treturn $reflectApply(bind, $apply, arguments);\n};\n\nif ($defineProperty) {\n\t$defineProperty(module.exports, 'apply', { value: applyBind });\n} else {\n\tmodule.exports.apply = applyBind;\n}\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar callBind = require('./');\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n","'use strict';\n\nvar hasToStringTag = require('has-tostringtag/shams')();\nvar callBound = require('call-bind/callBound');\n\nvar $toString = callBound('Object.prototype.toString');\n\nvar isStandardArguments = function isArguments(value) {\n\tif (hasToStringTag && value && typeof value === 'object' && Symbol.toStringTag in value) {\n\t\treturn false;\n\t}\n\treturn $toString(value) === '[object Arguments]';\n};\n\nvar isLegacyArguments = function isArguments(value) {\n\tif (isStandardArguments(value)) {\n\t\treturn true;\n\t}\n\treturn value !== null &&\n\t\ttypeof value === 'object' &&\n\t\ttypeof value.length === 'number' &&\n\t\tvalue.length >= 0 &&\n\t\t$toString(value) !== '[object Array]' &&\n\t\t$toString(value.callee) === '[object Function]';\n};\n\nvar supportsStandardArguments = (function () {\n\treturn isStandardArguments(arguments);\n}());\n\nisStandardArguments.isLegacyArguments = isLegacyArguments; // for tests\n\nmodule.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;\n","'use strict';\n\nvar toStr = Object.prototype.toString;\nvar fnToStr = Function.prototype.toString;\nvar isFnRegex = /^\\s*(?:function)?\\*/;\nvar hasToStringTag = require('has-tostringtag/shams')();\nvar getProto = Object.getPrototypeOf;\nvar getGeneratorFunc = function () { // eslint-disable-line consistent-return\n\tif (!hasToStringTag) {\n\t\treturn false;\n\t}\n\ttry {\n\t\treturn Function('return function*() {}')();\n\t} catch (e) {\n\t}\n};\nvar GeneratorFunction;\n\nmodule.exports = function isGeneratorFunction(fn) {\n\tif (typeof fn !== 'function') {\n\t\treturn false;\n\t}\n\tif (isFnRegex.test(fnToStr.call(fn))) {\n\t\treturn true;\n\t}\n\tif (!hasToStringTag) {\n\t\tvar str = toStr.call(fn);\n\t\treturn str === '[object GeneratorFunction]';\n\t}\n\tif (!getProto) {\n\t\treturn false;\n\t}\n\tif (typeof GeneratorFunction === 'undefined') {\n\t\tvar generatorFunc = getGeneratorFunc();\n\t\tGeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;\n\t}\n\treturn getProto(fn) === GeneratorFunction;\n};\n","'use strict';\n\nvar fnToStr = Function.prototype.toString;\nvar reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;\nvar badArrayLike;\nvar isCallableMarker;\nif (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {\n\ttry {\n\t\tbadArrayLike = Object.defineProperty({}, 'length', {\n\t\t\tget: function () {\n\t\t\t\tthrow isCallableMarker;\n\t\t\t}\n\t\t});\n\t\tisCallableMarker = {};\n\t\t// eslint-disable-next-line no-throw-literal\n\t\treflectApply(function () { throw 42; }, null, badArrayLike);\n\t} catch (_) {\n\t\tif (_ !== isCallableMarker) {\n\t\t\treflectApply = null;\n\t\t}\n\t}\n} else {\n\treflectApply = null;\n}\n\nvar constructorRegex = /^\\s*class\\b/;\nvar isES6ClassFn = function isES6ClassFunction(value) {\n\ttry {\n\t\tvar fnStr = fnToStr.call(value);\n\t\treturn constructorRegex.test(fnStr);\n\t} catch (e) {\n\t\treturn false; // not a function\n\t}\n};\n\nvar tryFunctionObject = function tryFunctionToStr(value) {\n\ttry {\n\t\tif (isES6ClassFn(value)) { return false; }\n\t\tfnToStr.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\nvar toStr = Object.prototype.toString;\nvar objectClass = '[object Object]';\nvar fnClass = '[object Function]';\nvar genClass = '[object GeneratorFunction]';\nvar ddaClass = '[object HTMLAllCollection]'; // IE 11\nvar ddaClass2 = '[object HTML document.all class]';\nvar ddaClass3 = '[object HTMLCollection]'; // IE 9-10\nvar hasToStringTag = typeof Symbol === 'function' && !!Symbol.toStringTag; // better: use `has-tostringtag`\n\nvar isIE68 = !(0 in [,]); // eslint-disable-line no-sparse-arrays, comma-spacing\n\nvar isDDA = function isDocumentDotAll() { return false; };\nif (typeof document === 'object') {\n\t// Firefox 3 canonicalizes DDA to undefined when it's not accessed directly\n\tvar all = document.all;\n\tif (toStr.call(all) === toStr.call(document.all)) {\n\t\tisDDA = function isDocumentDotAll(value) {\n\t\t\t/* globals document: false */\n\t\t\t// in IE 6-8, typeof document.all is \"object\" and it's truthy\n\t\t\tif ((isIE68 || !value) && (typeof value === 'undefined' || typeof value === 'object')) {\n\t\t\t\ttry {\n\t\t\t\t\tvar str = toStr.call(value);\n\t\t\t\t\treturn (\n\t\t\t\t\t\tstr === ddaClass\n\t\t\t\t\t\t|| str === ddaClass2\n\t\t\t\t\t\t|| str === ddaClass3 // opera 12.16\n\t\t\t\t\t\t|| str === objectClass // IE 6-8\n\t\t\t\t\t) && value('') == null; // eslint-disable-line eqeqeq\n\t\t\t\t} catch (e) { /**/ }\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t}\n}\n\nmodule.exports = reflectApply\n\t? function isCallable(value) {\n\t\tif (isDDA(value)) { return true; }\n\t\tif (!value) { return false; }\n\t\tif (typeof value !== 'function' && typeof value !== 'object') { return false; }\n\t\ttry {\n\t\t\treflectApply(value, null, badArrayLike);\n\t\t} catch (e) {\n\t\t\tif (e !== isCallableMarker) { return false; }\n\t\t}\n\t\treturn !isES6ClassFn(value) && tryFunctionObject(value);\n\t}\n\t: function isCallable(value) {\n\t\tif (isDDA(value)) { return true; }\n\t\tif (!value) { return false; }\n\t\tif (typeof value !== 'function' && typeof value !== 'object') { return false; }\n\t\tif (hasToStringTag) { return tryFunctionObject(value); }\n\t\tif (isES6ClassFn(value)) { return false; }\n\t\tvar strClass = toStr.call(value);\n\t\tif (strClass !== fnClass && strClass !== genClass && !(/^\\[object HTML/).test(strClass)) { return false; }\n\t\treturn tryFunctionObject(value);\n\t};\n","'use strict';\n\nvar isCallable = require('is-callable');\n\nvar toStr = Object.prototype.toString;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar forEachArray = function forEachArray(array, iterator, receiver) {\n for (var i = 0, len = array.length; i < len; i++) {\n if (hasOwnProperty.call(array, i)) {\n if (receiver == null) {\n iterator(array[i], i, array);\n } else {\n iterator.call(receiver, array[i], i, array);\n }\n }\n }\n};\n\nvar forEachString = function forEachString(string, iterator, receiver) {\n for (var i = 0, len = string.length; i < len; i++) {\n // no such thing as a sparse string.\n if (receiver == null) {\n iterator(string.charAt(i), i, string);\n } else {\n iterator.call(receiver, string.charAt(i), i, string);\n }\n }\n};\n\nvar forEachObject = function forEachObject(object, iterator, receiver) {\n for (var k in object) {\n if (hasOwnProperty.call(object, k)) {\n if (receiver == null) {\n iterator(object[k], k, object);\n } else {\n iterator.call(receiver, object[k], k, object);\n }\n }\n }\n};\n\nvar forEach = function forEach(list, iterator, thisArg) {\n if (!isCallable(iterator)) {\n throw new TypeError('iterator must be a function');\n }\n\n var receiver;\n if (arguments.length >= 3) {\n receiver = thisArg;\n }\n\n if (toStr.call(list) === '[object Array]') {\n forEachArray(list, iterator, receiver);\n } else if (typeof list === 'string') {\n forEachString(list, iterator, receiver);\n } else {\n forEachObject(list, iterator, receiver);\n }\n};\n\nmodule.exports = forEach;\n","'use strict';\n\nvar possibleNames = [\n\t'BigInt64Array',\n\t'BigUint64Array',\n\t'Float32Array',\n\t'Float64Array',\n\t'Int16Array',\n\t'Int32Array',\n\t'Int8Array',\n\t'Uint16Array',\n\t'Uint32Array',\n\t'Uint8Array',\n\t'Uint8ClampedArray'\n];\n\nvar g = typeof globalThis === 'undefined' ? global : globalThis;\n\nmodule.exports = function availableTypedArrays() {\n\tvar out = [];\n\tfor (var i = 0; i < possibleNames.length; i++) {\n\t\tif (typeof g[possibleNames[i]] === 'function') {\n\t\t\tout[out.length] = possibleNames[i];\n\t\t}\n\t}\n\treturn out;\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\n\nif ($gOPD) {\n\ttry {\n\t\t$gOPD([], 'length');\n\t} catch (e) {\n\t\t// IE 8 has a broken gOPD\n\t\t$gOPD = null;\n\t}\n}\n\nmodule.exports = $gOPD;\n","'use strict';\n\nvar forEach = require('for-each');\nvar availableTypedArrays = require('available-typed-arrays');\nvar callBound = require('call-bind/callBound');\n\nvar $toString = callBound('Object.prototype.toString');\nvar hasToStringTag = require('has-tostringtag/shams')();\nvar gOPD = require('gopd');\n\nvar g = typeof globalThis === 'undefined' ? global : globalThis;\nvar typedArrays = availableTypedArrays();\n\nvar $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(array, value) {\n\tfor (var i = 0; i < array.length; i += 1) {\n\t\tif (array[i] === value) {\n\t\t\treturn i;\n\t\t}\n\t}\n\treturn -1;\n};\nvar $slice = callBound('String.prototype.slice');\nvar toStrTags = {};\nvar getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');\nif (hasToStringTag && gOPD && getPrototypeOf) {\n\tforEach(typedArrays, function (typedArray) {\n\t\tvar arr = new g[typedArray]();\n\t\tif (Symbol.toStringTag in arr) {\n\t\t\tvar proto = getPrototypeOf(arr);\n\t\t\tvar descriptor = gOPD(proto, Symbol.toStringTag);\n\t\t\tif (!descriptor) {\n\t\t\t\tvar superProto = getPrototypeOf(proto);\n\t\t\t\tdescriptor = gOPD(superProto, Symbol.toStringTag);\n\t\t\t}\n\t\t\ttoStrTags[typedArray] = descriptor.get;\n\t\t}\n\t});\n}\n\nvar tryTypedArrays = function tryAllTypedArrays(value) {\n\tvar anyTrue = false;\n\tforEach(toStrTags, function (getter, typedArray) {\n\t\tif (!anyTrue) {\n\t\t\ttry {\n\t\t\t\tanyTrue = getter.call(value) === typedArray;\n\t\t\t} catch (e) { /**/ }\n\t\t}\n\t});\n\treturn anyTrue;\n};\n\nmodule.exports = function isTypedArray(value) {\n\tif (!value || typeof value !== 'object') { return false; }\n\tif (!hasToStringTag || !(Symbol.toStringTag in value)) {\n\t\tvar tag = $slice($toString(value), 8, -1);\n\t\treturn $indexOf(typedArrays, tag) > -1;\n\t}\n\tif (!gOPD) { return false; }\n\treturn tryTypedArrays(value);\n};\n","'use strict';\n\nvar forEach = require('for-each');\nvar availableTypedArrays = require('available-typed-arrays');\nvar callBound = require('call-bind/callBound');\nvar gOPD = require('gopd');\n\nvar $toString = callBound('Object.prototype.toString');\nvar hasToStringTag = require('has-tostringtag/shams')();\n\nvar g = typeof globalThis === 'undefined' ? global : globalThis;\nvar typedArrays = availableTypedArrays();\n\nvar $slice = callBound('String.prototype.slice');\nvar toStrTags = {};\nvar getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');\nif (hasToStringTag && gOPD && getPrototypeOf) {\n\tforEach(typedArrays, function (typedArray) {\n\t\tif (typeof g[typedArray] === 'function') {\n\t\t\tvar arr = new g[typedArray]();\n\t\t\tif (Symbol.toStringTag in arr) {\n\t\t\t\tvar proto = getPrototypeOf(arr);\n\t\t\t\tvar descriptor = gOPD(proto, Symbol.toStringTag);\n\t\t\t\tif (!descriptor) {\n\t\t\t\t\tvar superProto = getPrototypeOf(proto);\n\t\t\t\t\tdescriptor = gOPD(superProto, Symbol.toStringTag);\n\t\t\t\t}\n\t\t\t\ttoStrTags[typedArray] = descriptor.get;\n\t\t\t}\n\t\t}\n\t});\n}\n\nvar tryTypedArrays = function tryAllTypedArrays(value) {\n\tvar foundName = false;\n\tforEach(toStrTags, function (getter, typedArray) {\n\t\tif (!foundName) {\n\t\t\ttry {\n\t\t\t\tvar name = getter.call(value);\n\t\t\t\tif (name === typedArray) {\n\t\t\t\t\tfoundName = name;\n\t\t\t\t}\n\t\t\t} catch (e) {}\n\t\t}\n\t});\n\treturn foundName;\n};\n\nvar isTypedArray = require('is-typed-array');\n\nmodule.exports = function whichTypedArray(value) {\n\tif (!isTypedArray(value)) { return false; }\n\tif (!hasToStringTag || !(Symbol.toStringTag in value)) { return $slice($toString(value), 8, -1); }\n\treturn tryTypedArrays(value);\n};\n","// Currently in sync with Node.js lib/internal/util/types.js\n// https://github.com/nodejs/node/commit/112cc7c27551254aa2b17098fb774867f05ed0d9\n\n'use strict';\n\nvar isArgumentsObject = require('is-arguments');\nvar isGeneratorFunction = require('is-generator-function');\nvar whichTypedArray = require('which-typed-array');\nvar isTypedArray = require('is-typed-array');\n\nfunction uncurryThis(f) {\n return f.call.bind(f);\n}\n\nvar BigIntSupported = typeof BigInt !== 'undefined';\nvar SymbolSupported = typeof Symbol !== 'undefined';\n\nvar ObjectToString = uncurryThis(Object.prototype.toString);\n\nvar numberValue = uncurryThis(Number.prototype.valueOf);\nvar stringValue = uncurryThis(String.prototype.valueOf);\nvar booleanValue = uncurryThis(Boolean.prototype.valueOf);\n\nif (BigIntSupported) {\n var bigIntValue = uncurryThis(BigInt.prototype.valueOf);\n}\n\nif (SymbolSupported) {\n var symbolValue = uncurryThis(Symbol.prototype.valueOf);\n}\n\nfunction checkBoxedPrimitive(value, prototypeValueOf) {\n if (typeof value !== 'object') {\n return false;\n }\n try {\n prototypeValueOf(value);\n return true;\n } catch(e) {\n return false;\n }\n}\n\nexports.isArgumentsObject = isArgumentsObject;\nexports.isGeneratorFunction = isGeneratorFunction;\nexports.isTypedArray = isTypedArray;\n\n// Taken from here and modified for better browser support\n// https://github.com/sindresorhus/p-is-promise/blob/cda35a513bda03f977ad5cde3a079d237e82d7ef/index.js\nfunction isPromise(input) {\n\treturn (\n\t\t(\n\t\t\ttypeof Promise !== 'undefined' &&\n\t\t\tinput instanceof Promise\n\t\t) ||\n\t\t(\n\t\t\tinput !== null &&\n\t\t\ttypeof input === 'object' &&\n\t\t\ttypeof input.then === 'function' &&\n\t\t\ttypeof input.catch === 'function'\n\t\t)\n\t);\n}\nexports.isPromise = isPromise;\n\nfunction isArrayBufferView(value) {\n if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {\n return ArrayBuffer.isView(value);\n }\n\n return (\n isTypedArray(value) ||\n isDataView(value)\n );\n}\nexports.isArrayBufferView = isArrayBufferView;\n\n\nfunction isUint8Array(value) {\n return whichTypedArray(value) === 'Uint8Array';\n}\nexports.isUint8Array = isUint8Array;\n\nfunction isUint8ClampedArray(value) {\n return whichTypedArray(value) === 'Uint8ClampedArray';\n}\nexports.isUint8ClampedArray = isUint8ClampedArray;\n\nfunction isUint16Array(value) {\n return whichTypedArray(value) === 'Uint16Array';\n}\nexports.isUint16Array = isUint16Array;\n\nfunction isUint32Array(value) {\n return whichTypedArray(value) === 'Uint32Array';\n}\nexports.isUint32Array = isUint32Array;\n\nfunction isInt8Array(value) {\n return whichTypedArray(value) === 'Int8Array';\n}\nexports.isInt8Array = isInt8Array;\n\nfunction isInt16Array(value) {\n return whichTypedArray(value) === 'Int16Array';\n}\nexports.isInt16Array = isInt16Array;\n\nfunction isInt32Array(value) {\n return whichTypedArray(value) === 'Int32Array';\n}\nexports.isInt32Array = isInt32Array;\n\nfunction isFloat32Array(value) {\n return whichTypedArray(value) === 'Float32Array';\n}\nexports.isFloat32Array = isFloat32Array;\n\nfunction isFloat64Array(value) {\n return whichTypedArray(value) === 'Float64Array';\n}\nexports.isFloat64Array = isFloat64Array;\n\nfunction isBigInt64Array(value) {\n return whichTypedArray(value) === 'BigInt64Array';\n}\nexports.isBigInt64Array = isBigInt64Array;\n\nfunction isBigUint64Array(value) {\n return whichTypedArray(value) === 'BigUint64Array';\n}\nexports.isBigUint64Array = isBigUint64Array;\n\nfunction isMapToString(value) {\n return ObjectToString(value) === '[object Map]';\n}\nisMapToString.working = (\n typeof Map !== 'undefined' &&\n isMapToString(new Map())\n);\n\nfunction isMap(value) {\n if (typeof Map === 'undefined') {\n return false;\n }\n\n return isMapToString.working\n ? isMapToString(value)\n : value instanceof Map;\n}\nexports.isMap = isMap;\n\nfunction isSetToString(value) {\n return ObjectToString(value) === '[object Set]';\n}\nisSetToString.working = (\n typeof Set !== 'undefined' &&\n isSetToString(new Set())\n);\nfunction isSet(value) {\n if (typeof Set === 'undefined') {\n return false;\n }\n\n return isSetToString.working\n ? isSetToString(value)\n : value instanceof Set;\n}\nexports.isSet = isSet;\n\nfunction isWeakMapToString(value) {\n return ObjectToString(value) === '[object WeakMap]';\n}\nisWeakMapToString.working = (\n typeof WeakMap !== 'undefined' &&\n isWeakMapToString(new WeakMap())\n);\nfunction isWeakMap(value) {\n if (typeof WeakMap === 'undefined') {\n return false;\n }\n\n return isWeakMapToString.working\n ? isWeakMapToString(value)\n : value instanceof WeakMap;\n}\nexports.isWeakMap = isWeakMap;\n\nfunction isWeakSetToString(value) {\n return ObjectToString(value) === '[object WeakSet]';\n}\nisWeakSetToString.working = (\n typeof WeakSet !== 'undefined' &&\n isWeakSetToString(new WeakSet())\n);\nfunction isWeakSet(value) {\n return isWeakSetToString(value);\n}\nexports.isWeakSet = isWeakSet;\n\nfunction isArrayBufferToString(value) {\n return ObjectToString(value) === '[object ArrayBuffer]';\n}\nisArrayBufferToString.working = (\n typeof ArrayBuffer !== 'undefined' &&\n isArrayBufferToString(new ArrayBuffer())\n);\nfunction isArrayBuffer(value) {\n if (typeof ArrayBuffer === 'undefined') {\n return false;\n }\n\n return isArrayBufferToString.working\n ? isArrayBufferToString(value)\n : value instanceof ArrayBuffer;\n}\nexports.isArrayBuffer = isArrayBuffer;\n\nfunction isDataViewToString(value) {\n return ObjectToString(value) === '[object DataView]';\n}\nisDataViewToString.working = (\n typeof ArrayBuffer !== 'undefined' &&\n typeof DataView !== 'undefined' &&\n isDataViewToString(new DataView(new ArrayBuffer(1), 0, 1))\n);\nfunction isDataView(value) {\n if (typeof DataView === 'undefined') {\n return false;\n }\n\n return isDataViewToString.working\n ? isDataViewToString(value)\n : value instanceof DataView;\n}\nexports.isDataView = isDataView;\n\n// Store a copy of SharedArrayBuffer in case it's deleted elsewhere\nvar SharedArrayBufferCopy = typeof SharedArrayBuffer !== 'undefined' ? SharedArrayBuffer : undefined;\nfunction isSharedArrayBufferToString(value) {\n return ObjectToString(value) === '[object SharedArrayBuffer]';\n}\nfunction isSharedArrayBuffer(value) {\n if (typeof SharedArrayBufferCopy === 'undefined') {\n return false;\n }\n\n if (typeof isSharedArrayBufferToString.working === 'undefined') {\n isSharedArrayBufferToString.working = isSharedArrayBufferToString(new SharedArrayBufferCopy());\n }\n\n return isSharedArrayBufferToString.working\n ? isSharedArrayBufferToString(value)\n : value instanceof SharedArrayBufferCopy;\n}\nexports.isSharedArrayBuffer = isSharedArrayBuffer;\n\nfunction isAsyncFunction(value) {\n return ObjectToString(value) === '[object AsyncFunction]';\n}\nexports.isAsyncFunction = isAsyncFunction;\n\nfunction isMapIterator(value) {\n return ObjectToString(value) === '[object Map Iterator]';\n}\nexports.isMapIterator = isMapIterator;\n\nfunction isSetIterator(value) {\n return ObjectToString(value) === '[object Set Iterator]';\n}\nexports.isSetIterator = isSetIterator;\n\nfunction isGeneratorObject(value) {\n return ObjectToString(value) === '[object Generator]';\n}\nexports.isGeneratorObject = isGeneratorObject;\n\nfunction isWebAssemblyCompiledModule(value) {\n return ObjectToString(value) === '[object WebAssembly.Module]';\n}\nexports.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;\n\nfunction isNumberObject(value) {\n return checkBoxedPrimitive(value, numberValue);\n}\nexports.isNumberObject = isNumberObject;\n\nfunction isStringObject(value) {\n return checkBoxedPrimitive(value, stringValue);\n}\nexports.isStringObject = isStringObject;\n\nfunction isBooleanObject(value) {\n return checkBoxedPrimitive(value, booleanValue);\n}\nexports.isBooleanObject = isBooleanObject;\n\nfunction isBigIntObject(value) {\n return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);\n}\nexports.isBigIntObject = isBigIntObject;\n\nfunction isSymbolObject(value) {\n return SymbolSupported && checkBoxedPrimitive(value, symbolValue);\n}\nexports.isSymbolObject = isSymbolObject;\n\nfunction isBoxedPrimitive(value) {\n return (\n isNumberObject(value) ||\n isStringObject(value) ||\n isBooleanObject(value) ||\n isBigIntObject(value) ||\n isSymbolObject(value)\n );\n}\nexports.isBoxedPrimitive = isBoxedPrimitive;\n\nfunction isAnyArrayBuffer(value) {\n return typeof Uint8Array !== 'undefined' && (\n isArrayBuffer(value) ||\n isSharedArrayBuffer(value)\n );\n}\nexports.isAnyArrayBuffer = isAnyArrayBuffer;\n\n['isProxy', 'isExternal', 'isModuleNamespaceObject'].forEach(function(method) {\n Object.defineProperty(exports, method, {\n enumerable: false,\n value: function() {\n throw new Error(method + ' is not supported in userland');\n }\n });\n});\n","module.exports = function isBuffer(arg) {\n return arg && typeof arg === 'object'\n && typeof arg.copy === 'function'\n && typeof arg.fill === 'function'\n && typeof arg.readUInt8 === 'function';\n}","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors ||\n function getOwnPropertyDescriptors(obj) {\n var keys = Object.keys(obj);\n var descriptors = {};\n for (var i = 0; i < keys.length; i++) {\n descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]);\n }\n return descriptors;\n };\n\nvar formatRegExp = /%[sdj%]/g;\nexports.format = function(f) {\n if (!isString(f)) {\n var objects = [];\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n return objects.join(' ');\n }\n\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function(x) {\n if (x === '%%') return '%';\n if (i >= len) return x;\n switch (x) {\n case '%s': return String(args[i++]);\n case '%d': return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n default:\n return x;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += ' ' + x;\n } else {\n str += ' ' + inspect(x);\n }\n }\n return str;\n};\n\n\n// Mark that a method should not be used.\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set, then it is a no-op.\nexports.deprecate = function(fn, msg) {\n if (typeof process !== 'undefined' && process.noDeprecation === true) {\n return fn;\n }\n\n // Allow for deprecating things in the process of starting up.\n if (typeof process === 'undefined') {\n return function() {\n return exports.deprecate(fn, msg).apply(this, arguments);\n };\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n};\n\n\nvar debugs = {};\nvar debugEnvRegex = /^$/;\n\nif (process.env.NODE_DEBUG) {\n var debugEnv = process.env.NODE_DEBUG;\n debugEnv = debugEnv.replace(/[|\\\\{}()[\\]^$+?.]/g, '\\\\$&')\n .replace(/\\*/g, '.*')\n .replace(/,/g, '$|^')\n .toUpperCase();\n debugEnvRegex = new RegExp('^' + debugEnv + '$', 'i');\n}\nexports.debuglog = function(set) {\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (debugEnvRegex.test(set)) {\n var pid = process.pid;\n debugs[set] = function() {\n var msg = exports.format.apply(exports, arguments);\n console.error('%s %d: %s', set, pid, msg);\n };\n } else {\n debugs[set] = function() {};\n }\n }\n return debugs[set];\n};\n\n\n/**\n * Echos the value of a value. Trys to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Object} opts Optional options object that alters the output.\n */\n/* legacy: obj, showHidden, depth, colors*/\nfunction inspect(obj, opts) {\n // default options\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n // legacy...\n if (arguments.length >= 3) ctx.depth = arguments[2];\n if (arguments.length >= 4) ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n // legacy...\n ctx.showHidden = opts;\n } else if (opts) {\n // got an \"options\" object\n exports._extend(ctx, opts);\n }\n // set default options\n if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n if (isUndefined(ctx.depth)) ctx.depth = 2;\n if (isUndefined(ctx.colors)) ctx.colors = false;\n if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n}\nexports.inspect = inspect;\n\n\n// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\ninspect.colors = {\n 'bold' : [1, 22],\n 'italic' : [3, 23],\n 'underline' : [4, 24],\n 'inverse' : [7, 27],\n 'white' : [37, 39],\n 'grey' : [90, 39],\n 'black' : [30, 39],\n 'blue' : [34, 39],\n 'cyan' : [36, 39],\n 'green' : [32, 39],\n 'magenta' : [35, 39],\n 'red' : [31, 39],\n 'yellow' : [33, 39]\n};\n\n// Don't use 'blue' not visible on cmd.exe\ninspect.styles = {\n 'special': 'cyan',\n 'number': 'yellow',\n 'boolean': 'yellow',\n 'undefined': 'grey',\n 'null': 'bold',\n 'string': 'green',\n 'date': 'magenta',\n // \"name\": intentionally not styling\n 'regexp': 'red'\n};\n\n\nfunction stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n\n if (style) {\n return '\\u001b[' + inspect.colors[style][0] + 'm' + str +\n '\\u001b[' + inspect.colors[style][1] + 'm';\n } else {\n return str;\n }\n}\n\n\nfunction stylizeNoColor(str, styleType) {\n return str;\n}\n\n\nfunction arrayToHash(array) {\n var hash = {};\n\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n\n return hash;\n}\n\n\nfunction formatValue(ctx, value, recurseTimes) {\n // Provide a hook for user-specified inspect functions.\n // Check that value is an object with an inspect function on it\n if (ctx.customInspect &&\n value &&\n isFunction(value.inspect) &&\n // Filter out the util module, it's inspect function is special\n value.inspect !== exports.inspect &&\n // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n\n // Primitive types cannot have properties\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n\n // Look up the keys of the object.\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n\n // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n if (isError(value)\n && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n return formatError(value);\n }\n\n // Some type of object without properties can be shortcutted.\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n\n var base = '', array = false, braces = ['{', '}'];\n\n // Make Array say that they are Array\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n\n // Make functions say that they are functions\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n\n // Make RegExps say that they are RegExps\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n\n // Make dates with properties first say the date\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n\n // Make error with message first say the error\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n\n ctx.seen.push(value);\n\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n\n ctx.seen.pop();\n\n return reduceToSingleString(output, base, braces);\n}\n\n\nfunction formatPrimitive(ctx, value) {\n if (isUndefined(value))\n return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"') + '\\'';\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value))\n return ctx.stylize('' + value, 'number');\n if (isBoolean(value))\n return ctx.stylize('' + value, 'boolean');\n // For some reason typeof null is \"object\", so special case here.\n if (isNull(value))\n return ctx.stylize('null', 'null');\n}\n\n\nfunction formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n}\n\n\nfunction formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n String(i), true));\n } else {\n output.push('');\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n key, true));\n }\n });\n return output;\n}\n\n\nfunction formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n').slice(2);\n } else {\n str = '\\n' + str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.slice(1, -1);\n name = ctx.stylize(name, 'name');\n } else {\n name = name.replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n\n return name + ': ' + str;\n}\n\n\nfunction reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function(prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n\n if (length > 60) {\n return braces[0] +\n (base === '' ? '' : base + '\\n ') +\n ' ' +\n output.join(',\\n ') +\n ' ' +\n braces[1];\n }\n\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n}\n\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\nexports.types = require('./support/types');\n\nfunction isArray(ar) {\n return Array.isArray(ar);\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\nexports.types.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\nexports.types.isDate = isDate;\n\nfunction isError(e) {\n return isObject(e) &&\n (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\nexports.types.isNativeError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = require('./support/isBuffer');\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n\nfunction pad(n) {\n return n < 10 ? '0' + n.toString(10) : n.toString(10);\n}\n\n\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',\n 'Oct', 'Nov', 'Dec'];\n\n// 26 Feb 16:19:34\nfunction timestamp() {\n var d = new Date();\n var time = [pad(d.getHours()),\n pad(d.getMinutes()),\n pad(d.getSeconds())].join(':');\n return [d.getDate(), months[d.getMonth()], time].join(' ');\n}\n\n\n// log is just a thin wrapper to console.log that prepends a timestamp\nexports.log = function() {\n console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\n};\n\n\n/**\n * Inherit the prototype methods from one constructor into another.\n *\n * The Function.prototype.inherits from lang.js rewritten as a standalone\n * function (not on Function.prototype). NOTE: If this file is to be loaded\n * during bootstrapping this function needs to be rewritten using some native\n * functions as prototype setup using normal JavaScript does not work as\n * expected during bootstrapping (see mirror.js in r114903).\n *\n * @param {function} ctor Constructor function which needs to inherit the\n * prototype.\n * @param {function} superCtor Constructor function to inherit prototype from.\n */\nexports.inherits = require('inherits');\n\nexports._extend = function(origin, add) {\n // Don't do anything if add isn't an object\n if (!add || !isObject(add)) return origin;\n\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n};\n\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nvar kCustomPromisifiedSymbol = typeof Symbol !== 'undefined' ? Symbol('util.promisify.custom') : undefined;\n\nexports.promisify = function promisify(original) {\n if (typeof original !== 'function')\n throw new TypeError('The \"original\" argument must be of type Function');\n\n if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {\n var fn = original[kCustomPromisifiedSymbol];\n if (typeof fn !== 'function') {\n throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');\n }\n Object.defineProperty(fn, kCustomPromisifiedSymbol, {\n value: fn, enumerable: false, writable: false, configurable: true\n });\n return fn;\n }\n\n function fn() {\n var promiseResolve, promiseReject;\n var promise = new Promise(function (resolve, reject) {\n promiseResolve = resolve;\n promiseReject = reject;\n });\n\n var args = [];\n for (var i = 0; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n args.push(function (err, value) {\n if (err) {\n promiseReject(err);\n } else {\n promiseResolve(value);\n }\n });\n\n try {\n original.apply(this, args);\n } catch (err) {\n promiseReject(err);\n }\n\n return promise;\n }\n\n Object.setPrototypeOf(fn, Object.getPrototypeOf(original));\n\n if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {\n value: fn, enumerable: false, writable: false, configurable: true\n });\n return Object.defineProperties(\n fn,\n getOwnPropertyDescriptors(original)\n );\n}\n\nexports.promisify.custom = kCustomPromisifiedSymbol\n\nfunction callbackifyOnRejected(reason, cb) {\n // `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M).\n // Because `null` is a special error value in callbacks which means \"no error\n // occurred\", we error-wrap so the callback consumer can distinguish between\n // \"the promise rejected with null\" or \"the promise fulfilled with undefined\".\n if (!reason) {\n var newReason = new Error('Promise was rejected with a falsy value');\n newReason.reason = reason;\n reason = newReason;\n }\n return cb(reason);\n}\n\nfunction callbackify(original) {\n if (typeof original !== 'function') {\n throw new TypeError('The \"original\" argument must be of type Function');\n }\n\n // We DO NOT return the promise as it gives the user a false sense that\n // the promise is actually somehow related to the callback's execution\n // and that the callback throwing will reject the promise.\n function callbackified() {\n var args = [];\n for (var i = 0; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n\n var maybeCb = args.pop();\n if (typeof maybeCb !== 'function') {\n throw new TypeError('The last argument must be of type Function');\n }\n var self = this;\n var cb = function() {\n return maybeCb.apply(self, arguments);\n };\n // In true node style we process the callback on `nextTick` with all the\n // implications (stack, `uncaughtException`, `async_hooks`)\n original.apply(this, args)\n .then(function(ret) { process.nextTick(cb.bind(null, null, ret)) },\n function(rej) { process.nextTick(callbackifyOnRejected.bind(null, rej, cb)) });\n }\n\n Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));\n Object.defineProperties(callbackified,\n getOwnPropertyDescriptors(original));\n return callbackified;\n}\nexports.callbackify = callbackify;\n","export default {}","(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n typeof define === 'function' && define.amd ? define(['exports'], factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.loupe = {}));\n}(this, (function (exports) { 'use strict';\n\n function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n }\n\n function _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n }\n\n function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n }\n\n function _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n }\n\n function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n }\n\n function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n\n var ansiColors = {\n bold: ['1', '22'],\n dim: ['2', '22'],\n italic: ['3', '23'],\n underline: ['4', '24'],\n // 5 & 6 are blinking\n inverse: ['7', '27'],\n hidden: ['8', '28'],\n strike: ['9', '29'],\n // 10-20 are fonts\n // 21-29 are resets for 1-9\n black: ['30', '39'],\n red: ['31', '39'],\n green: ['32', '39'],\n yellow: ['33', '39'],\n blue: ['34', '39'],\n magenta: ['35', '39'],\n cyan: ['36', '39'],\n white: ['37', '39'],\n brightblack: ['30;1', '39'],\n brightred: ['31;1', '39'],\n brightgreen: ['32;1', '39'],\n brightyellow: ['33;1', '39'],\n brightblue: ['34;1', '39'],\n brightmagenta: ['35;1', '39'],\n brightcyan: ['36;1', '39'],\n brightwhite: ['37;1', '39'],\n grey: ['90', '39']\n };\n var styles = {\n special: 'cyan',\n number: 'yellow',\n bigint: 'yellow',\n boolean: 'yellow',\n undefined: 'grey',\n null: 'bold',\n string: 'green',\n symbol: 'green',\n date: 'magenta',\n regexp: 'red'\n };\n var truncator = '…';\n\n function colorise(value, styleType) {\n var color = ansiColors[styles[styleType]] || ansiColors[styleType];\n\n if (!color) {\n return String(value);\n }\n\n return \"\\x1B[\".concat(color[0], \"m\").concat(String(value), \"\\x1B[\").concat(color[1], \"m\");\n }\n\n function normaliseOptions() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref$showHidden = _ref.showHidden,\n showHidden = _ref$showHidden === void 0 ? false : _ref$showHidden,\n _ref$depth = _ref.depth,\n depth = _ref$depth === void 0 ? 2 : _ref$depth,\n _ref$colors = _ref.colors,\n colors = _ref$colors === void 0 ? false : _ref$colors,\n _ref$customInspect = _ref.customInspect,\n customInspect = _ref$customInspect === void 0 ? true : _ref$customInspect,\n _ref$showProxy = _ref.showProxy,\n showProxy = _ref$showProxy === void 0 ? false : _ref$showProxy,\n _ref$maxArrayLength = _ref.maxArrayLength,\n maxArrayLength = _ref$maxArrayLength === void 0 ? Infinity : _ref$maxArrayLength,\n _ref$breakLength = _ref.breakLength,\n breakLength = _ref$breakLength === void 0 ? Infinity : _ref$breakLength,\n _ref$seen = _ref.seen,\n seen = _ref$seen === void 0 ? [] : _ref$seen,\n _ref$truncate = _ref.truncate,\n truncate = _ref$truncate === void 0 ? Infinity : _ref$truncate,\n _ref$stylize = _ref.stylize,\n stylize = _ref$stylize === void 0 ? String : _ref$stylize;\n\n var options = {\n showHidden: Boolean(showHidden),\n depth: Number(depth),\n colors: Boolean(colors),\n customInspect: Boolean(customInspect),\n showProxy: Boolean(showProxy),\n maxArrayLength: Number(maxArrayLength),\n breakLength: Number(breakLength),\n truncate: Number(truncate),\n seen: seen,\n stylize: stylize\n };\n\n if (options.colors) {\n options.stylize = colorise;\n }\n\n return options;\n }\n function truncate(string, length) {\n var tail = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : truncator;\n string = String(string);\n var tailLength = tail.length;\n var stringLength = string.length;\n\n if (tailLength > length && stringLength > tailLength) {\n return tail;\n }\n\n if (stringLength > length && stringLength > tailLength) {\n return \"\".concat(string.slice(0, length - tailLength)).concat(tail);\n }\n\n return string;\n } // eslint-disable-next-line complexity\n\n function inspectList(list, options, inspectItem) {\n var separator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ', ';\n inspectItem = inspectItem || options.inspect;\n var size = list.length;\n if (size === 0) return '';\n var originalLength = options.truncate;\n var output = '';\n var peek = '';\n var truncated = '';\n\n for (var i = 0; i < size; i += 1) {\n var last = i + 1 === list.length;\n var secondToLast = i + 2 === list.length;\n truncated = \"\".concat(truncator, \"(\").concat(list.length - i, \")\");\n var value = list[i]; // If there is more than one remaining we need to account for a separator of `, `\n\n options.truncate = originalLength - output.length - (last ? 0 : separator.length);\n var string = peek || inspectItem(value, options) + (last ? '' : separator);\n var nextLength = output.length + string.length;\n var truncatedLength = nextLength + truncated.length; // If this is the last element, and adding it would\n // take us over length, but adding the truncator wouldn't - then break now\n\n if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) {\n break;\n } // If this isn't the last or second to last element to scan,\n // but the string is already over length then break here\n\n\n if (!last && !secondToLast && truncatedLength > originalLength) {\n break;\n } // Peek at the next string to determine if we should\n // break early before adding this item to the output\n\n\n peek = last ? '' : inspectItem(list[i + 1], options) + (secondToLast ? '' : separator); // If we have one element left, but this element and\n // the next takes over length, the break early\n\n if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) {\n break;\n }\n\n output += string; // If the next element takes us to length -\n // but there are more after that, then we should truncate now\n\n if (!last && !secondToLast && nextLength + peek.length >= originalLength) {\n truncated = \"\".concat(truncator, \"(\").concat(list.length - i - 1, \")\");\n break;\n }\n\n truncated = '';\n }\n\n return \"\".concat(output).concat(truncated);\n }\n\n function quoteComplexKey(key) {\n if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) {\n return key;\n }\n\n return JSON.stringify(key).replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"').replace(/(^\"|\"$)/g, \"'\");\n }\n\n function inspectProperty(_ref2, options) {\n var _ref3 = _slicedToArray(_ref2, 2),\n key = _ref3[0],\n value = _ref3[1];\n\n options.truncate -= 2;\n\n if (typeof key === 'string') {\n key = quoteComplexKey(key);\n } else if (typeof key !== 'number') {\n key = \"[\".concat(options.inspect(key, options), \"]\");\n }\n\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return \"\".concat(key, \": \").concat(value);\n }\n\n function inspectArray(array, options) {\n // Object.keys will always output the Array indices first, so we can slice by\n // `array.length` to get non-index properties\n var nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length) return '[]';\n options.truncate -= 4;\n var listContents = inspectList(array, options);\n options.truncate -= listContents.length;\n var propertyContents = '';\n\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map(function (key) {\n return [key, array[key]];\n }), options, inspectProperty);\n }\n\n return \"[ \".concat(listContents).concat(propertyContents ? \", \".concat(propertyContents) : '', \" ]\");\n }\n\n /* !\n * Chai - getFuncName utility\n * Copyright(c) 2012-2016 Jake Luer \n * MIT Licensed\n */\n\n /**\n * ### .getFuncName(constructorFn)\n *\n * Returns the name of a function.\n * When a non-function instance is passed, returns `null`.\n * This also includes a polyfill function if `aFunc.name` is not defined.\n *\n * @name getFuncName\n * @param {Function} funct\n * @namespace Utils\n * @api public\n */\n\n var toString = Function.prototype.toString;\n var functionNameMatch = /\\s*function(?:\\s|\\s*\\/\\*[^(?:*\\/)]+\\*\\/\\s*)*([^\\s\\(\\/]+)/;\n function getFuncName(aFunc) {\n if (typeof aFunc !== 'function') {\n return null;\n }\n\n var name = '';\n if (typeof Function.prototype.name === 'undefined' && typeof aFunc.name === 'undefined') {\n // Here we run a polyfill if Function does not support the `name` property and if aFunc.name is not defined\n var match = toString.call(aFunc).match(functionNameMatch);\n if (match) {\n name = match[1];\n }\n } else {\n // If we've got a `name` property we just use it\n name = aFunc.name;\n }\n\n return name;\n }\n\n var getFuncName_1 = getFuncName;\n\n var getArrayName = function getArrayName(array) {\n // We need to special case Node.js' Buffers, which report to be Uint8Array\n if (typeof Buffer === 'function' && array instanceof Buffer) {\n return 'Buffer';\n }\n\n if (array[Symbol.toStringTag]) {\n return array[Symbol.toStringTag];\n }\n\n return getFuncName_1(array.constructor);\n };\n\n function inspectTypedArray(array, options) {\n var name = getArrayName(array);\n options.truncate -= name.length + 4; // Object.keys will always output the Array indices first, so we can slice by\n // `array.length` to get non-index properties\n\n var nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length) return \"\".concat(name, \"[]\"); // As we know TypedArrays only contain Unsigned Integers, we can skip inspecting each one and simply\n // stylise the toString() value of them\n\n var output = '';\n\n for (var i = 0; i < array.length; i++) {\n var string = \"\".concat(options.stylize(truncate(array[i], options.truncate), 'number')).concat(i === array.length - 1 ? '' : ', ');\n options.truncate -= string.length;\n\n if (array[i] !== array.length && options.truncate <= 3) {\n output += \"\".concat(truncator, \"(\").concat(array.length - array[i] + 1, \")\");\n break;\n }\n\n output += string;\n }\n\n var propertyContents = '';\n\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map(function (key) {\n return [key, array[key]];\n }), options, inspectProperty);\n }\n\n return \"\".concat(name, \"[ \").concat(output).concat(propertyContents ? \", \".concat(propertyContents) : '', \" ]\");\n }\n\n function inspectDate(dateObject, options) {\n var stringRepresentation = dateObject.toJSON();\n\n if (stringRepresentation === null) {\n return 'Invalid Date';\n }\n\n var split = stringRepresentation.split('T');\n var date = split[0]; // If we need to - truncate the time portion, but never the date\n\n return options.stylize(\"\".concat(date, \"T\").concat(truncate(split[1], options.truncate - date.length - 1)), 'date');\n }\n\n function inspectFunction(func, options) {\n var name = getFuncName_1(func);\n\n if (!name) {\n return options.stylize('[Function]', 'special');\n }\n\n return options.stylize(\"[Function \".concat(truncate(name, options.truncate - 11), \"]\"), 'special');\n }\n\n function inspectMapEntry(_ref, options) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n value = _ref2[1];\n\n options.truncate -= 4;\n key = options.inspect(key, options);\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return \"\".concat(key, \" => \").concat(value);\n } // IE11 doesn't support `map.entries()`\n\n\n function mapToEntries(map) {\n var entries = [];\n map.forEach(function (value, key) {\n entries.push([key, value]);\n });\n return entries;\n }\n\n function inspectMap(map, options) {\n var size = map.size - 1;\n\n if (size <= 0) {\n return 'Map{}';\n }\n\n options.truncate -= 7;\n return \"Map{ \".concat(inspectList(mapToEntries(map), options, inspectMapEntry), \" }\");\n }\n\n var isNaN = Number.isNaN || function (i) {\n return i !== i;\n }; // eslint-disable-line no-self-compare\n\n\n function inspectNumber(number, options) {\n if (isNaN(number)) {\n return options.stylize('NaN', 'number');\n }\n\n if (number === Infinity) {\n return options.stylize('Infinity', 'number');\n }\n\n if (number === -Infinity) {\n return options.stylize('-Infinity', 'number');\n }\n\n if (number === 0) {\n return options.stylize(1 / number === Infinity ? '+0' : '-0', 'number');\n }\n\n return options.stylize(truncate(number, options.truncate), 'number');\n }\n\n function inspectBigInt(number, options) {\n var nums = truncate(number.toString(), options.truncate - 1);\n if (nums !== truncator) nums += 'n';\n return options.stylize(nums, 'bigint');\n }\n\n function inspectRegExp(value, options) {\n var flags = value.toString().split('/')[2];\n var sourceLength = options.truncate - (2 + flags.length);\n var source = value.source;\n return options.stylize(\"/\".concat(truncate(source, sourceLength), \"/\").concat(flags), 'regexp');\n }\n\n function arrayFromSet(set) {\n var values = [];\n set.forEach(function (value) {\n values.push(value);\n });\n return values;\n }\n\n function inspectSet(set, options) {\n if (set.size === 0) return 'Set{}';\n options.truncate -= 7;\n return \"Set{ \".concat(inspectList(arrayFromSet(set), options), \" }\");\n }\n\n var stringEscapeChars = new RegExp(\"['\\\\u0000-\\\\u001f\\\\u007f-\\\\u009f\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\" + \"\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]\", 'g');\n var escapeCharacters = {\n '\\b': '\\\\b',\n '\\t': '\\\\t',\n '\\n': '\\\\n',\n '\\f': '\\\\f',\n '\\r': '\\\\r',\n \"'\": \"\\\\'\",\n '\\\\': '\\\\\\\\'\n };\n var hex = 16;\n var unicodeLength = 4;\n\n function escape(char) {\n return escapeCharacters[char] || \"\\\\u\".concat(\"0000\".concat(char.charCodeAt(0).toString(hex)).slice(-unicodeLength));\n }\n\n function inspectString(string, options) {\n if (stringEscapeChars.test(string)) {\n string = string.replace(stringEscapeChars, escape);\n }\n\n return options.stylize(\"'\".concat(truncate(string, options.truncate - 2), \"'\"), 'string');\n }\n\n function inspectSymbol(value) {\n if ('description' in Symbol.prototype) {\n return value.description ? \"Symbol(\".concat(value.description, \")\") : 'Symbol()';\n }\n\n return value.toString();\n }\n\n var getPromiseValue = function getPromiseValue() {\n return 'Promise{…}';\n };\n\n try {\n var _process$binding = process.binding('util'),\n getPromiseDetails = _process$binding.getPromiseDetails,\n kPending = _process$binding.kPending,\n kRejected = _process$binding.kRejected;\n\n if (Array.isArray(getPromiseDetails(Promise.resolve()))) {\n getPromiseValue = function getPromiseValue(value, options) {\n var _getPromiseDetails = getPromiseDetails(value),\n _getPromiseDetails2 = _slicedToArray(_getPromiseDetails, 2),\n state = _getPromiseDetails2[0],\n innerValue = _getPromiseDetails2[1];\n\n if (state === kPending) {\n return 'Promise{}';\n }\n\n return \"Promise\".concat(state === kRejected ? '!' : '', \"{\").concat(options.inspect(innerValue, options), \"}\");\n };\n }\n } catch (notNode) {\n /* ignore */\n }\n\n var inspectPromise = getPromiseValue;\n\n function inspectObject(object, options) {\n var properties = Object.getOwnPropertyNames(object);\n var symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];\n\n if (properties.length === 0 && symbols.length === 0) {\n return '{}';\n }\n\n options.truncate -= 4;\n options.seen = options.seen || [];\n\n if (options.seen.indexOf(object) >= 0) {\n return '[Circular]';\n }\n\n options.seen.push(object);\n var propertyContents = inspectList(properties.map(function (key) {\n return [key, object[key]];\n }), options, inspectProperty);\n var symbolContents = inspectList(symbols.map(function (key) {\n return [key, object[key]];\n }), options, inspectProperty);\n options.seen.pop();\n var sep = '';\n\n if (propertyContents && symbolContents) {\n sep = ', ';\n }\n\n return \"{ \".concat(propertyContents).concat(sep).concat(symbolContents, \" }\");\n }\n\n var toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag ? Symbol.toStringTag : false;\n function inspectClass(value, options) {\n var name = '';\n\n if (toStringTag && toStringTag in value) {\n name = value[toStringTag];\n }\n\n name = name || getFuncName_1(value.constructor); // Babel transforms anonymous classes to the name `_class`\n\n if (!name || name === '_class') {\n name = '';\n }\n\n options.truncate -= name.length;\n return \"\".concat(name).concat(inspectObject(value, options));\n }\n\n function inspectArguments(args, options) {\n if (args.length === 0) return 'Arguments[]';\n options.truncate -= 13;\n return \"Arguments[ \".concat(inspectList(args, options), \" ]\");\n }\n\n var errorKeys = ['stack', 'line', 'column', 'name', 'message', 'fileName', 'lineNumber', 'columnNumber', 'number', 'description'];\n function inspectObject$1(error, options) {\n var properties = Object.getOwnPropertyNames(error).filter(function (key) {\n return errorKeys.indexOf(key) === -1;\n });\n var name = error.name;\n options.truncate -= name.length;\n var message = '';\n\n if (typeof error.message === 'string') {\n message = truncate(error.message, options.truncate);\n } else {\n properties.unshift('message');\n }\n\n message = message ? \": \".concat(message) : '';\n options.truncate -= message.length + 5;\n var propertyContents = inspectList(properties.map(function (key) {\n return [key, error[key]];\n }), options, inspectProperty);\n return \"\".concat(name).concat(message).concat(propertyContents ? \" { \".concat(propertyContents, \" }\") : '');\n }\n\n function inspectAttribute(_ref, options) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n value = _ref2[1];\n\n options.truncate -= 3;\n\n if (!value) {\n return \"\".concat(options.stylize(key, 'yellow'));\n }\n\n return \"\".concat(options.stylize(key, 'yellow'), \"=\").concat(options.stylize(\"\\\"\".concat(value, \"\\\"\"), 'string'));\n }\n function inspectHTMLCollection(collection, options) {\n // eslint-disable-next-line no-use-before-define\n return inspectList(collection, options, inspectHTML, '\\n');\n }\n function inspectHTML(element, options) {\n var properties = element.getAttributeNames();\n var name = element.tagName.toLowerCase();\n var head = options.stylize(\"<\".concat(name), 'special');\n var headClose = options.stylize(\">\", 'special');\n var tail = options.stylize(\"\"), 'special');\n options.truncate -= name.length * 2 + 5;\n var propertyContents = '';\n\n if (properties.length > 0) {\n propertyContents += ' ';\n propertyContents += inspectList(properties.map(function (key) {\n return [key, element.getAttribute(key)];\n }), options, inspectAttribute, ' ');\n }\n\n options.truncate -= propertyContents.length;\n var truncate = options.truncate;\n var children = inspectHTMLCollection(element.children, options);\n\n if (children && children.length > truncate) {\n children = \"\".concat(truncator, \"(\").concat(element.children.length, \")\");\n }\n\n return \"\".concat(head).concat(propertyContents).concat(headClose).concat(children).concat(tail);\n }\n\n var symbolsSupported = typeof Symbol === 'function' && typeof Symbol.for === 'function';\n var chaiInspect = symbolsSupported ? Symbol.for('chai/inspect') : '@@chai/inspect';\n var nodeInspect = false;\n\n try {\n // eslint-disable-next-line global-require\n var nodeUtil = require('util');\n\n nodeInspect = nodeUtil.inspect ? nodeUtil.inspect.custom : false;\n } catch (noNodeInspect) {\n nodeInspect = false;\n }\n\n function FakeMap() {\n // eslint-disable-next-line prefer-template\n this.key = 'chai/loupe__' + Math.random() + Date.now();\n }\n\n FakeMap.prototype = {\n // eslint-disable-next-line object-shorthand\n get: function get(key) {\n return key[this.key];\n },\n // eslint-disable-next-line object-shorthand\n has: function has(key) {\n return this.key in key;\n },\n // eslint-disable-next-line object-shorthand\n set: function set(key, value) {\n if (Object.isExtensible(key)) {\n Object.defineProperty(key, this.key, {\n // eslint-disable-next-line object-shorthand\n value: value,\n configurable: true\n });\n }\n }\n };\n var constructorMap = new (typeof WeakMap === 'function' ? WeakMap : FakeMap)();\n var stringTagMap = {};\n var baseTypesMap = {\n undefined: function undefined$1(value, options) {\n return options.stylize('undefined', 'undefined');\n },\n null: function _null(value, options) {\n return options.stylize(null, 'null');\n },\n boolean: function boolean(value, options) {\n return options.stylize(value, 'boolean');\n },\n Boolean: function Boolean(value, options) {\n return options.stylize(value, 'boolean');\n },\n number: inspectNumber,\n Number: inspectNumber,\n bigint: inspectBigInt,\n BigInt: inspectBigInt,\n string: inspectString,\n String: inspectString,\n function: inspectFunction,\n Function: inspectFunction,\n symbol: inspectSymbol,\n // A Symbol polyfill will return `Symbol` not `symbol` from typedetect\n Symbol: inspectSymbol,\n Array: inspectArray,\n Date: inspectDate,\n Map: inspectMap,\n Set: inspectSet,\n RegExp: inspectRegExp,\n Promise: inspectPromise,\n // WeakSet, WeakMap are totally opaque to us\n WeakSet: function WeakSet(value, options) {\n return options.stylize('WeakSet{…}', 'special');\n },\n WeakMap: function WeakMap(value, options) {\n return options.stylize('WeakMap{…}', 'special');\n },\n Arguments: inspectArguments,\n Int8Array: inspectTypedArray,\n Uint8Array: inspectTypedArray,\n Uint8ClampedArray: inspectTypedArray,\n Int16Array: inspectTypedArray,\n Uint16Array: inspectTypedArray,\n Int32Array: inspectTypedArray,\n Uint32Array: inspectTypedArray,\n Float32Array: inspectTypedArray,\n Float64Array: inspectTypedArray,\n Generator: function Generator() {\n return '';\n },\n DataView: function DataView() {\n return '';\n },\n ArrayBuffer: function ArrayBuffer() {\n return '';\n },\n Error: inspectObject$1,\n HTMLCollection: inspectHTMLCollection,\n NodeList: inspectHTMLCollection\n }; // eslint-disable-next-line complexity\n\n var inspectCustom = function inspectCustom(value, options, type) {\n if (chaiInspect in value && typeof value[chaiInspect] === 'function') {\n return value[chaiInspect](options);\n }\n\n if (nodeInspect && nodeInspect in value && typeof value[nodeInspect] === 'function') {\n return value[nodeInspect](options.depth, options);\n }\n\n if ('inspect' in value && typeof value.inspect === 'function') {\n return value.inspect(options.depth, options);\n }\n\n if ('constructor' in value && constructorMap.has(value.constructor)) {\n return constructorMap.get(value.constructor)(value, options);\n }\n\n if (stringTagMap[type]) {\n return stringTagMap[type](value, options);\n }\n\n return '';\n };\n\n var toString$1 = Object.prototype.toString; // eslint-disable-next-line complexity\n\n function inspect(value, options) {\n options = normaliseOptions(options);\n options.inspect = inspect;\n var _options = options,\n customInspect = _options.customInspect;\n var type = value === null ? 'null' : _typeof(value);\n\n if (type === 'object') {\n type = toString$1.call(value).slice(8, -1);\n } // If it is a base value that we already support, then use Loupe's inspector\n\n\n if (baseTypesMap[type]) {\n return baseTypesMap[type](value, options);\n } // If `options.customInspect` is set to true then try to use the custom inspector\n\n\n if (customInspect && value) {\n var output = inspectCustom(value, options, type);\n\n if (output) {\n if (typeof output === 'string') return output;\n return inspect(output, options);\n }\n }\n\n var proto = value ? Object.getPrototypeOf(value) : false; // If it's a plain Object then use Loupe's inspector\n\n if (proto === Object.prototype || proto === null) {\n return inspectObject(value, options);\n } // Specifically account for HTMLElements\n // eslint-disable-next-line no-undef\n\n\n if (value && typeof HTMLElement === 'function' && value instanceof HTMLElement) {\n return inspectHTML(value, options);\n }\n\n if ('constructor' in value) {\n // If it is a class, inspect it like an object but add the constructor name\n if (value.constructor !== Object) {\n return inspectClass(value, options);\n } // If it is an object with an anonymous prototype, display it as an object.\n\n\n return inspectObject(value, options);\n } // last chance to check if it's an object\n\n\n if (value === Object(value)) {\n return inspectObject(value, options);\n } // We have run out of options! Just stringify the value\n\n\n return options.stylize(String(value), type);\n }\n function registerConstructor(constructor, inspector) {\n if (constructorMap.has(constructor)) {\n return false;\n }\n\n constructorMap.set(constructor, inspector);\n return true;\n }\n function registerStringTag(stringTag, inspector) {\n if (stringTag in stringTagMap) {\n return false;\n }\n\n stringTagMap[stringTag] = inspector;\n return true;\n }\n var custom = chaiInspect;\n\n exports.custom = custom;\n exports.default = inspect;\n exports.inspect = inspect;\n exports.registerConstructor = registerConstructor;\n exports.registerStringTag = registerStringTag;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n","import { notNullish, isPrimitive } from './helpers.js';\nexport { assertTypes, clone, createDefer, deepClone, getCallLastIndex, getOwnProperties, getType, isObject, noop, objectAttr, parseRegexp, slash, toArray } from './helpers.js';\nimport { format as format$1, plugins } from 'pretty-format';\nimport { S as SAFE_TIMERS_SYMBOL } from './chunk-colors.js';\nexport { a as SAFE_COLORS_SYMBOL, c as createColors, b as getColors, g as getDefaultColors, s as setupColors } from './chunk-colors.js';\nimport util from 'util';\nimport loupeImport from 'loupe';\n\nconst {\n AsymmetricMatcher,\n DOMCollection,\n DOMElement,\n Immutable,\n ReactElement,\n ReactTestComponent\n} = plugins;\nconst PLUGINS = [\n ReactTestComponent,\n ReactElement,\n DOMElement,\n DOMCollection,\n Immutable,\n AsymmetricMatcher\n];\nfunction stringify(object, maxDepth = 10, { maxLength, ...options } = {}) {\n const MAX_LENGTH = maxLength ?? 1e4;\n let result;\n try {\n result = format$1(object, {\n maxDepth,\n escapeString: false,\n // min: true,\n plugins: PLUGINS,\n ...options\n });\n } catch {\n result = format$1(object, {\n callToJSON: false,\n maxDepth,\n escapeString: false,\n // min: true,\n plugins: PLUGINS,\n ...options\n });\n }\n return result.length >= MAX_LENGTH && maxDepth > 1 ? stringify(object, Math.floor(maxDepth / 2)) : result;\n}\n\nfunction getSafeTimers() {\n const {\n setTimeout: safeSetTimeout,\n setInterval: safeSetInterval,\n clearInterval: safeClearInterval,\n clearTimeout: safeClearTimeout,\n setImmediate: safeSetImmediate,\n clearImmediate: safeClearImmediate\n } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis;\n const {\n nextTick: safeNextTick\n } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis.process || { nextTick: (cb) => cb() };\n return {\n nextTick: safeNextTick,\n setTimeout: safeSetTimeout,\n setInterval: safeSetInterval,\n clearInterval: safeClearInterval,\n clearTimeout: safeClearTimeout,\n setImmediate: safeSetImmediate,\n clearImmediate: safeClearImmediate\n };\n}\nfunction setSafeTimers() {\n const {\n setTimeout: safeSetTimeout,\n setInterval: safeSetInterval,\n clearInterval: safeClearInterval,\n clearTimeout: safeClearTimeout,\n setImmediate: safeSetImmediate,\n clearImmediate: safeClearImmediate\n } = globalThis;\n const {\n nextTick: safeNextTick\n } = globalThis.process || { nextTick: (cb) => cb() };\n const timers = {\n nextTick: safeNextTick,\n setTimeout: safeSetTimeout,\n setInterval: safeSetInterval,\n clearInterval: safeClearInterval,\n clearTimeout: safeClearTimeout,\n setImmediate: safeSetImmediate,\n clearImmediate: safeClearImmediate\n };\n globalThis[SAFE_TIMERS_SYMBOL] = timers;\n}\n\nconst RealDate = Date;\nfunction random(seed) {\n const x = Math.sin(seed++) * 1e4;\n return x - Math.floor(x);\n}\nfunction shuffle(array, seed = RealDate.now()) {\n let length = array.length;\n while (length) {\n const index = Math.floor(random(seed) * length--);\n const previous = array[length];\n array[length] = array[index];\n array[index] = previous;\n ++seed;\n }\n return array;\n}\n\nconst loupe = typeof loupeImport.default === \"function\" ? loupeImport.default : loupeImport;\nfunction format(...args) {\n return util.format(...args);\n}\nfunction utilInspect(item, options) {\n return util.inspect(item, options);\n}\nfunction loupeInspect(obj, options = {}) {\n return loupe(obj, {\n depth: 2,\n truncate: options.truncateThreshold === 0 ? Infinity : options.truncateThreshold ?? 40\n });\n}\nfunction objDisplay(obj, options = {}) {\n const truncateThreshold = options.truncateThreshold ?? 40;\n const str = loupeInspect(obj, options);\n const type = Object.prototype.toString.call(obj);\n if (truncateThreshold && str.length >= truncateThreshold) {\n if (type === \"[object Function]\") {\n const fn = obj;\n return !fn.name || fn.name === \"\" ? \"[Function]\" : `[Function: ${fn.name}]`;\n } else if (type === \"[object Array]\") {\n return `[ Array(${obj.length}) ]`;\n } else if (type === \"[object Object]\") {\n const keys = Object.keys(obj);\n const kstr = keys.length > 2 ? `${keys.splice(0, 2).join(\", \")}, ...` : keys.join(\", \");\n return `{ Object (${kstr}) }`;\n } else {\n return str;\n }\n }\n return str;\n}\n\nfunction createSimpleStackTrace(options) {\n const { message = \"error\", stackTraceLimit = 1 } = options || {};\n const limit = Error.stackTraceLimit;\n const prepareStackTrace = Error.prepareStackTrace;\n Error.stackTraceLimit = stackTraceLimit;\n Error.prepareStackTrace = (e) => e.stack;\n const err = new Error(message);\n const stackTrace = err.stack || \"\";\n Error.prepareStackTrace = prepareStackTrace;\n Error.stackTraceLimit = limit;\n return stackTrace;\n}\n\nfunction normalizeWindowsPath(input = \"\") {\n if (!input || !input.includes(\"\\\\\")) {\n return input;\n }\n return input.replace(/\\\\/g, \"/\");\n}\nconst _IS_ABSOLUTE_RE = /^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^[A-Za-z]:[/\\\\]/;\nfunction cwd() {\n if (typeof process !== \"undefined\") {\n return process.cwd().replace(/\\\\/g, \"/\");\n }\n return \"/\";\n}\nconst resolve = function(...arguments_) {\n arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));\n let resolvedPath = \"\";\n let resolvedAbsolute = false;\n for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {\n const path = index >= 0 ? arguments_[index] : cwd();\n if (!path || path.length === 0) {\n continue;\n }\n resolvedPath = `${path}/${resolvedPath}`;\n resolvedAbsolute = isAbsolute(path);\n }\n resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);\n if (resolvedAbsolute && !isAbsolute(resolvedPath)) {\n return `/${resolvedPath}`;\n }\n return resolvedPath.length > 0 ? resolvedPath : \".\";\n};\nfunction normalizeString(path, allowAboveRoot) {\n let res = \"\";\n let lastSegmentLength = 0;\n let lastSlash = -1;\n let dots = 0;\n let char = null;\n for (let index = 0; index <= path.length; ++index) {\n if (index < path.length) {\n char = path[index];\n } else if (char === \"/\") {\n break;\n } else {\n char = \"/\";\n }\n if (char === \"/\") {\n if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {\n if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== \".\" || res[res.length - 2] !== \".\") {\n if (res.length > 2) {\n const lastSlashIndex = res.lastIndexOf(\"/\");\n if (lastSlashIndex === -1) {\n res = \"\";\n lastSegmentLength = 0;\n } else {\n res = res.slice(0, lastSlashIndex);\n lastSegmentLength = res.length - 1 - res.lastIndexOf(\"/\");\n }\n lastSlash = index;\n dots = 0;\n continue;\n } else if (res.length > 0) {\n res = \"\";\n lastSegmentLength = 0;\n lastSlash = index;\n dots = 0;\n continue;\n }\n }\n if (allowAboveRoot) {\n res += res.length > 0 ? \"/..\" : \"..\";\n lastSegmentLength = 2;\n }\n } else {\n if (res.length > 0) {\n res += `/${path.slice(lastSlash + 1, index)}`;\n } else {\n res = path.slice(lastSlash + 1, index);\n }\n lastSegmentLength = index - lastSlash - 1;\n }\n lastSlash = index;\n dots = 0;\n } else if (char === \".\" && dots !== -1) {\n ++dots;\n } else {\n dots = -1;\n }\n }\n return res;\n}\nconst isAbsolute = function(p) {\n return _IS_ABSOLUTE_RE.test(p);\n};\n\nconst lineSplitRE = /\\r?\\n/;\nconst stackIgnorePatterns = [\n \"node:internal\",\n /\\/packages\\/\\w+\\/dist\\//,\n /\\/@vitest\\/\\w+\\/dist\\//,\n \"/vitest/dist/\",\n \"/vitest/src/\",\n \"/vite-node/dist/\",\n \"/vite-node/src/\",\n \"/node_modules/chai/\",\n \"/node_modules/tinypool/\",\n \"/node_modules/tinyspy/\"\n];\nfunction extractLocation(urlLike) {\n if (!urlLike.includes(\":\"))\n return [urlLike];\n const regExp = /(.+?)(?::(\\d+))?(?::(\\d+))?$/;\n const parts = regExp.exec(urlLike.replace(/[()]/g, \"\"));\n if (!parts)\n return [urlLike];\n return [parts[1], parts[2] || void 0, parts[3] || void 0];\n}\nfunction parseSingleStack(raw) {\n let line = raw.trim();\n if (line.includes(\"(eval \"))\n line = line.replace(/eval code/g, \"eval\").replace(/(\\(eval at [^()]*)|(,.*$)/g, \"\");\n let sanitizedLine = line.replace(/^\\s+/, \"\").replace(/\\(eval code/g, \"(\").replace(/^.*?\\s+/, \"\");\n const location = sanitizedLine.match(/ (\\(.+\\)$)/);\n sanitizedLine = location ? sanitizedLine.replace(location[0], \"\") : sanitizedLine;\n const [url, lineNumber, columnNumber] = extractLocation(location ? location[1] : sanitizedLine);\n let method = location && sanitizedLine || \"\";\n let file = url && [\"eval\", \"\"].includes(url) ? void 0 : url;\n if (!file || !lineNumber || !columnNumber)\n return null;\n if (method.startsWith(\"async \"))\n method = method.slice(6);\n if (file.startsWith(\"file://\"))\n file = file.slice(7);\n file = resolve(file);\n return {\n method,\n file,\n line: parseInt(lineNumber),\n column: parseInt(columnNumber)\n };\n}\nfunction parseStacktrace(stack, ignore = stackIgnorePatterns) {\n const stackFrames = stack.split(\"\\n\").map((raw) => {\n const stack2 = parseSingleStack(raw);\n if (!stack2 || ignore.length && ignore.some((p) => stack2.file.match(p)))\n return null;\n return stack2;\n }).filter(notNullish);\n return stackFrames;\n}\nfunction parseErrorStacktrace(e, ignore = stackIgnorePatterns) {\n if (!e || isPrimitive(e))\n return [];\n if (e.stacks)\n return e.stacks;\n const stackStr = e.stack || e.stackStr || \"\";\n const stackFrames = parseStacktrace(stackStr, ignore);\n e.stacks = stackFrames;\n return stackFrames;\n}\nfunction positionToOffset(source, lineNumber, columnNumber) {\n const lines = source.split(lineSplitRE);\n const nl = /\\r\\n/.test(source) ? 2 : 1;\n let start = 0;\n if (lineNumber > lines.length)\n return source.length;\n for (let i = 0; i < lineNumber - 1; i++)\n start += lines[i].length + nl;\n return start + columnNumber;\n}\nfunction offsetToLineNumber(source, offset) {\n if (offset > source.length) {\n throw new Error(\n `offset is longer than source length! offset ${offset} > length ${source.length}`\n );\n }\n const lines = source.split(lineSplitRE);\n const nl = /\\r\\n/.test(source) ? 2 : 1;\n let counted = 0;\n let line = 0;\n for (; line < lines.length; line++) {\n const lineLength = lines[line].length + nl;\n if (counted + lineLength >= offset)\n break;\n counted += lineLength;\n }\n return line + 1;\n}\n\nexport { SAFE_TIMERS_SYMBOL, createSimpleStackTrace, format, getSafeTimers, isPrimitive, lineSplitRE, loupeInspect, notNullish, objDisplay, offsetToLineNumber, parseErrorStacktrace, parseSingleStack, parseStacktrace, positionToOffset, setSafeTimers, shuffle, stringify, utilInspect };\n","'use strict'\n\nclass Circular {\n constructor () {\n this.stack = new Map()\n }\n\n add (descriptor) {\n if (this.stack.has(descriptor)) throw new Error('Already in stack')\n\n if (descriptor.isItem !== true && descriptor.isMapEntry !== true && descriptor.isProperty !== true) {\n this.stack.set(descriptor, this.stack.size + 1)\n }\n return this\n }\n\n delete (descriptor) {\n if (this.stack.has(descriptor)) {\n if (this.stack.get(descriptor) !== this.stack.size) throw new Error('Not on top of stack')\n this.stack.delete(descriptor)\n }\n return this\n }\n\n has (descriptor) {\n return this.stack.has(descriptor)\n }\n\n get (descriptor) {\n return this.stack.has(descriptor)\n ? this.stack.get(descriptor)\n : 0\n }\n}\nmodule.exports = Circular\n","'use strict'\n\nconst AMBIGUOUS = Symbol('AMBIGUOUS')\nconst DEEP_EQUAL = Symbol('DEEP_EQUAL')\nconst SHALLOW_EQUAL = Symbol('SHALLOW_EQUAL')\nconst UNEQUAL = Symbol('UNEQUAL')\n\nmodule.exports = {\n AMBIGUOUS,\n DEEP_EQUAL,\n SHALLOW_EQUAL,\n UNEQUAL,\n}\n","'use strict'\n\nclass Registry {\n constructor () {\n this.counter = 0\n this.map = new WeakMap()\n }\n\n has (value) {\n return this.map.has(value)\n }\n\n get (value) {\n return this.map.get(value).descriptor\n }\n\n alloc (value) {\n const index = ++this.counter\n const pointer = { descriptor: null, index }\n this.map.set(value, pointer)\n return pointer\n }\n}\nmodule.exports = Registry\n","'use strict'\n\nconst ACTUAL = Symbol('lineBuilder.gutters.ACTUAL')\nconst EXPECTED = Symbol('lineBuilder.gutters.EXPECTED')\n\nfunction translateGutter (theme, invert, gutter) {\n if (invert) {\n if (gutter === ACTUAL) return theme.diffGutters.expected\n if (gutter === EXPECTED) return theme.diffGutters.actual\n } else {\n if (gutter === ACTUAL) return theme.diffGutters.actual\n if (gutter === EXPECTED) return theme.diffGutters.expected\n }\n return theme.diffGutters.padding\n}\n\nclass Line {\n constructor (isFirst, isLast, gutter, stringValue) {\n this.isFirst = isFirst\n this.isLast = isLast\n this.gutter = gutter\n this.stringValue = stringValue\n }\n\n * [Symbol.iterator] () {\n yield this\n }\n\n get isEmpty () {\n return false\n }\n\n get hasGutter () {\n return this.gutter !== null\n }\n\n get isSingle () {\n return this.isFirst && this.isLast\n }\n\n append (other) {\n return this.concat(other)\n }\n\n concat (other) {\n return new Collection()\n .append(this)\n .append(other)\n }\n\n toString (options) {\n if (options.diff === false) return this.stringValue\n\n return translateGutter(options.theme, options.invert, this.gutter) + this.stringValue\n }\n\n mergeWithInfix (infix, other) {\n if (other.isLine !== true) {\n return new Collection()\n .append(this)\n .mergeWithInfix(infix, other)\n }\n\n return new Line(this.isFirst, other.isLast, other.gutter, this.stringValue + infix + other.stringValue)\n }\n\n withFirstPrefixed (prefix) {\n if (!this.isFirst) return this\n\n return new Line(true, this.isLast, this.gutter, prefix + this.stringValue)\n }\n\n withLastPostfixed (postfix) {\n if (!this.isLast) return this\n\n return new Line(this.isFirst, true, this.gutter, this.stringValue + postfix)\n }\n\n stripFlags () {\n return new Line(false, false, this.gutter, this.stringValue)\n }\n\n decompose () {\n return new Collection()\n .append(this)\n .decompose()\n }\n}\nObject.defineProperty(Line.prototype, 'isLine', { value: true })\n\nclass Collection {\n constructor () {\n this.buffer = []\n }\n\n * [Symbol.iterator] () {\n for (const appended of this.buffer) {\n for (const line of appended) yield line\n }\n }\n\n get isEmpty () {\n return this.buffer.length === 0\n }\n\n get hasGutter () {\n for (const line of this) {\n if (line.hasGutter) return true\n }\n return false\n }\n\n get isSingle () {\n const iterator = this[Symbol.iterator]()\n iterator.next()\n return iterator.next().done === true\n }\n\n append (lineOrLines) {\n if (!lineOrLines.isEmpty) this.buffer.push(lineOrLines)\n return this\n }\n\n concat (other) {\n return new Collection()\n .append(this)\n .append(other)\n }\n\n toString (options) {\n let lines = this\n\n if (options.invert) {\n lines = new Collection()\n let buffer = new Collection()\n\n let prev = null\n for (const line of this) {\n if (line.gutter === ACTUAL) {\n if (prev !== null && prev.gutter !== ACTUAL && !buffer.isEmpty) {\n lines.append(buffer)\n buffer = new Collection()\n }\n\n buffer.append(line)\n } else if (line.gutter === EXPECTED) {\n lines.append(line)\n } else {\n if (!buffer.isEmpty) {\n lines.append(buffer)\n buffer = new Collection()\n }\n\n lines.append(line)\n }\n\n prev = line\n }\n lines.append(buffer)\n }\n\n return Array.from(lines, line => line.toString(options)).join('\\n')\n }\n\n mergeWithInfix (infix, from) {\n if (from.isEmpty) throw new Error('Cannot merge, `from` is empty.')\n\n const otherLines = Array.from(from)\n if (!otherLines[0].isFirst) throw new Error('Cannot merge, `from` has no first line.')\n\n const merged = new Collection()\n let seenLast = false\n for (const line of this) {\n if (seenLast) throw new Error('Cannot merge line, the last line has already been seen.')\n\n if (!line.isLast) {\n merged.append(line)\n continue\n }\n\n seenLast = true\n for (const other of otherLines) {\n if (other.isFirst) {\n merged.append(line.mergeWithInfix(infix, other))\n } else {\n merged.append(other)\n }\n }\n }\n return merged\n }\n\n withFirstPrefixed (prefix) {\n return new Collection()\n .append(Array.from(this, line => line.withFirstPrefixed(prefix)))\n }\n\n withLastPostfixed (postfix) {\n return new Collection()\n .append(Array.from(this, line => line.withLastPostfixed(postfix)))\n }\n\n stripFlags () {\n return new Collection()\n .append(Array.from(this, line => line.stripFlags()))\n }\n\n decompose () {\n const first = { actual: new Collection(), expected: new Collection() }\n const last = { actual: new Collection(), expected: new Collection() }\n const remaining = new Collection()\n\n for (const line of this) {\n if (line.isFirst && line.gutter === ACTUAL) {\n first.actual.append(line)\n } else if (line.isFirst && line.gutter === EXPECTED) {\n first.expected.append(line)\n } else if (line.isLast && line.gutter === ACTUAL) {\n last.actual.append(line)\n } else if (line.isLast && line.gutter === EXPECTED) {\n last.expected.append(line)\n } else {\n remaining.append(line)\n }\n }\n\n return { first, last, remaining }\n }\n}\nObject.defineProperty(Collection.prototype, 'isCollection', { value: true })\n\nfunction setDefaultGutter (iterable, gutter) {\n return new Collection()\n .append(Array.from(iterable, line => {\n return line.gutter === null\n ? new Line(line.isFirst, line.isLast, gutter, line.stringValue)\n : line\n }))\n}\n\nmodule.exports = {\n buffer () {\n return new Collection()\n },\n\n first (stringValue) {\n return new Line(true, false, null, stringValue)\n },\n\n last (stringValue) {\n return new Line(false, true, null, stringValue)\n },\n\n line (stringValue) {\n return new Line(false, false, null, stringValue)\n },\n\n single (stringValue) {\n return new Line(true, true, null, stringValue)\n },\n\n setDefaultGutter (lineOrCollection) {\n return lineOrCollection\n },\n\n actual: {\n first (stringValue) {\n return new Line(true, false, ACTUAL, stringValue)\n },\n\n last (stringValue) {\n return new Line(false, true, ACTUAL, stringValue)\n },\n\n line (stringValue) {\n return new Line(false, false, ACTUAL, stringValue)\n },\n\n single (stringValue) {\n return new Line(true, true, ACTUAL, stringValue)\n },\n\n setDefaultGutter (lineOrCollection) {\n return setDefaultGutter(lineOrCollection, ACTUAL)\n },\n },\n\n expected: {\n first (stringValue) {\n return new Line(true, false, EXPECTED, stringValue)\n },\n\n last (stringValue) {\n return new Line(false, true, EXPECTED, stringValue)\n },\n\n line (stringValue) {\n return new Line(false, false, EXPECTED, stringValue)\n },\n\n single (stringValue) {\n return new Line(true, true, EXPECTED, stringValue)\n },\n\n setDefaultGutter (lineOrCollection) {\n return setDefaultGutter(lineOrCollection, EXPECTED)\n },\n },\n}\n","'use strict'\n\nconst lineBuilder = require('./lineBuilder')\n\nfunction wrap (fromTheme, value) {\n return fromTheme.open + value + fromTheme.close\n}\nexports.wrap = wrap\n\nfunction formatCtorAndStringTag (theme, object) {\n if (!object.ctor) return wrap(theme.object.stringTag, object.stringTag)\n\n let retval = wrap(theme.object.ctor, object.ctor)\n if (object.stringTag && object.stringTag !== object.ctor && object.stringTag !== 'Object') {\n retval += ' ' + wrap(theme.object.secondaryStringTag, object.stringTag)\n }\n return retval\n}\nexports.formatCtorAndStringTag = formatCtorAndStringTag\n\nclass ObjectFormatter {\n constructor (object, theme, indent) {\n this.object = object\n this.theme = theme\n this.indent = indent\n\n this.increaseIndent = true\n\n this.innerLines = lineBuilder.buffer()\n this.pendingStats = null\n }\n\n append (formatted, origin) {\n if (origin.isStats === true) {\n this.pendingStats = formatted\n } else {\n if (this.pendingStats !== null) {\n if (!this.innerLines.isEmpty) {\n this.innerLines.append(this.pendingStats)\n }\n this.pendingStats = null\n }\n this.innerLines.append(formatted)\n }\n }\n\n finalize () {\n const variant = this.object.isList\n ? this.theme.list\n : this.theme.object\n\n const ctor = this.object.ctor\n const stringTag = this.object.stringTag\n const prefix = (ctor === 'Array' || ctor === 'Object') && ctor === stringTag\n ? ''\n : formatCtorAndStringTag(this.theme, this.object) + ' '\n\n if (this.innerLines.isEmpty) {\n return lineBuilder.single(prefix + variant.openBracket + variant.closeBracket)\n }\n\n return lineBuilder.first(prefix + variant.openBracket)\n .concat(this.innerLines.withFirstPrefixed(this.indent.increase()).stripFlags())\n .append(lineBuilder.last(this.indent + variant.closeBracket))\n }\n\n maxDepth () {\n const variant = this.object.isList\n ? this.theme.list\n : this.theme.object\n\n return lineBuilder.single(\n formatCtorAndStringTag(this.theme, this.object) + ' ' + variant.openBracket +\n ' ' + this.theme.maxDepth + ' ' + variant.closeBracket)\n }\n\n shouldFormat () {\n return true\n }\n\n customize (methods) {\n if (methods.finalize) {\n this.finalize = () => methods.finalize(this.innerLines)\n }\n if (methods.maxDepth) {\n this.maxDepth = methods.maxDepth\n }\n if (methods.shouldFormat) {\n this.shouldFormat = methods.shouldFormat\n }\n\n return this\n }\n}\nexports.ObjectFormatter = ObjectFormatter\n\nclass SingleValueFormatter {\n constructor (theme, finalizeFn, increaseIndent) {\n this.theme = theme\n this.finalizeFn = finalizeFn\n this.hasValue = false\n this.increaseIndent = increaseIndent === true\n this.value = null\n }\n\n append (formatted) {\n if (this.hasValue) throw new Error('Formatter buffer can only take one formatted value.')\n\n this.hasValue = true\n this.value = formatted\n }\n\n finalize () {\n if (!this.hasValue) throw new Error('Formatter buffer never received a formatted value.')\n\n return this.finalizeFn(this.value)\n }\n\n maxDepth () {\n return this.finalizeFn(lineBuilder.single(this.theme.maxDepth))\n }\n}\nexports.SingleValueFormatter = SingleValueFormatter\n","'use strict'\n\nfunction getObjectKeys (obj, excludeListItemAccessorsBelowLength) {\n const keys = []\n let size = 0\n\n // Sort property names, they should never be order-sensitive\n const nameCandidates = Object.getOwnPropertyNames(obj).sort()\n // Comparators should verify symbols in an order-insensitive manner if\n // possible.\n const symbolCandidates = Object.getOwnPropertySymbols(obj)\n\n for (const name of nameCandidates) {\n let accept = true\n if (excludeListItemAccessorsBelowLength > 0) {\n const index = Number(name)\n accept = !Number.isInteger(index) || index < 0 || index >= excludeListItemAccessorsBelowLength\n }\n\n if (accept && Object.getOwnPropertyDescriptor(obj, name).enumerable) {\n keys[size++] = name\n }\n }\n\n for (const symbol of symbolCandidates) {\n if (Object.getOwnPropertyDescriptor(obj, symbol).enumerable) {\n keys[size++] = symbol\n }\n }\n\n return { keys, size }\n}\nmodule.exports = getObjectKeys\n","'use strict'\n\nconst isLength = require('lodash/isLength')\n\nconst hop = Object.prototype.hasOwnProperty\n\nfunction hasLength (obj) {\n return (\n Array.isArray(obj) ||\n (hop.call(obj, 'length') &&\n isLength(obj.length) &&\n (obj.length === 0 || '0' in obj))\n )\n}\nmodule.exports = hasLength\n","'use strict'\n\nconst NOOP_RECURSOR = {\n size: 0,\n next () { return null },\n}\nexports.NOOP_RECURSOR = NOOP_RECURSOR\n\nfunction fork (recursor) {\n const buffer = []\n\n return {\n shared () {\n const next = recursor()\n if (next !== null) buffer.push(next)\n return next\n },\n\n recursor () {\n if (buffer.length > 0) return buffer.shift()\n return recursor()\n },\n }\n}\nexports.fork = fork\n\nfunction consumeDeep (recursor) {\n const stack = [recursor]\n while (stack.length > 0) {\n const subject = stack[stack.length - 1]()\n if (subject === null) {\n stack.pop()\n continue\n }\n\n if (typeof subject.createRecursor === 'function') {\n stack.push(subject.createRecursor())\n }\n }\n}\nexports.consumeDeep = consumeDeep\n\nfunction map (recursor, mapFn) {\n return () => {\n const next = recursor()\n if (next === null) return null\n\n return mapFn(next)\n }\n}\nexports.map = map\n\nfunction replay (state, create) {\n if (!state) {\n const recursor = create()\n if (recursor === NOOP_RECURSOR) {\n state = recursor\n } else {\n state = Object.assign({\n buffer: [],\n done: false,\n }, recursor)\n }\n }\n\n if (state === NOOP_RECURSOR) return { state, recursor: state }\n\n let done = false\n let index = 0\n const next = () => {\n if (done) return null\n\n let retval = state.buffer[index]\n if (retval === undefined) {\n retval = state.buffer[index] = state.next()\n }\n\n index++\n if (retval === null) {\n done = true\n }\n return retval\n }\n\n return { state, recursor: { next, size: state.size } }\n}\nexports.replay = replay\n\nfunction sequence (first, second) {\n let fromFirst = true\n return () => {\n if (fromFirst) {\n const next = first()\n if (next !== null) return next\n\n fromFirst = false\n }\n\n return second()\n }\n}\nexports.sequence = sequence\n\nfunction singleValue (value) {\n let done = false\n return () => {\n if (done) return null\n\n done = true\n return value\n }\n}\nexports.singleValue = singleValue\n\nfunction unshift (recursor, value) {\n return () => {\n if (value !== null) {\n const next = value\n value = null\n return next\n }\n\n return recursor()\n }\n}\nexports.unshift = unshift\n","'use strict'\n\nconst constants = require('../constants')\nconst lineBuilder = require('../lineBuilder')\nconst recursorUtils = require('../recursorUtils')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describeIterableRecursor (recursor) {\n return new IterableStats(recursor.size)\n}\nexports.describeIterableRecursor = describeIterableRecursor\n\nfunction describeListRecursor (recursor) {\n return new ListStats(recursor.size)\n}\nexports.describeListRecursor = describeListRecursor\n\nfunction describePropertyRecursor (recursor) {\n return new PropertyStats(recursor.size)\n}\nexports.describePropertyRecursor = describePropertyRecursor\n\nfunction deserializeIterableStats (size) {\n return new IterableStats(size)\n}\nexports.deserializeIterableStats = deserializeIterableStats\n\nfunction deserializeListStats (size) {\n return new ListStats(size)\n}\nexports.deserializeListStats = deserializeListStats\n\nfunction deserializePropertyStats (size) {\n return new PropertyStats(size)\n}\nexports.deserializePropertyStats = deserializePropertyStats\n\nconst iterableTag = Symbol('IterableStats')\nexports.iterableTag = iterableTag\n\nconst listTag = Symbol('ListStats')\nexports.listTag = listTag\n\nconst propertyTag = Symbol('PropertyStats')\nexports.propertyTag = propertyTag\n\nclass Stats {\n constructor (size) {\n this.size = size\n }\n\n formatDeep (theme) {\n return lineBuilder.single(theme.stats.separator)\n }\n\n prepareDiff (expected, lhsRecursor, rhsRecursor, compareComplexShape) {\n if (expected.isStats !== true || expected.tag === this.tag) return null\n\n // Try to line up stats descriptors with the same tag.\n const rhsFork = recursorUtils.fork(rhsRecursor)\n const initialExpected = expected\n\n const missing = []\n while (expected !== null && this.tag !== expected.tag) {\n missing.push(expected)\n expected = rhsFork.shared()\n }\n\n if (expected !== null && missing.length > 0) {\n return {\n multipleAreMissing: true,\n descriptors: missing,\n lhsRecursor: recursorUtils.unshift(lhsRecursor, this),\n // Use original `rhsRecursor`, not `rhsFork`, since the consumed\n // descriptors are returned with the `missing` array.\n rhsRecursor: recursorUtils.unshift(rhsRecursor, expected),\n }\n }\n\n const lhsFork = recursorUtils.fork(lhsRecursor)\n let actual = this\n\n const extraneous = []\n while (actual !== null && actual.tag !== initialExpected.tag) {\n extraneous.push(actual)\n actual = lhsFork.shared()\n }\n\n if (actual !== null && extraneous.length > 0) {\n return {\n multipleAreExtraneous: true,\n descriptors: extraneous,\n // Use original `lhsRecursor`, not `lhsFork`, since the consumed\n // descriptors are returned with the `extraneous` array.\n lhsRecursor: recursorUtils.unshift(lhsRecursor, actual),\n rhsRecursor: recursorUtils.unshift(rhsFork.recursor, initialExpected),\n }\n }\n\n return null\n }\n\n serialize () {\n return this.size\n }\n}\nObject.defineProperty(Stats.prototype, 'isStats', { value: true })\n\nclass IterableStats extends Stats {\n compare (expected) {\n return expected.tag === iterableTag && this.size === expected.size\n ? DEEP_EQUAL\n : UNEQUAL\n }\n}\nObject.defineProperty(IterableStats.prototype, 'tag', { value: iterableTag })\n\nclass ListStats extends Stats {\n compare (expected) {\n return expected.tag === listTag && this.size === expected.size\n ? DEEP_EQUAL\n : UNEQUAL\n }\n}\nObject.defineProperty(ListStats.prototype, 'tag', { value: listTag })\n\nclass PropertyStats extends Stats {\n compare (expected) {\n return expected.tag === propertyTag && this.size === expected.size\n ? DEEP_EQUAL\n : UNEQUAL\n }\n}\nObject.defineProperty(PropertyStats.prototype, 'tag', { value: propertyTag })\n","'use strict'\n\nconst constants = require('../constants')\nconst ObjectFormatter = require('../formatUtils').ObjectFormatter\nconst getObjectKeys = require('../getObjectKeys')\nconst hasLength = require('../hasLength')\nconst stats = require('../metaDescriptors/stats')\nconst recursorUtils = require('../recursorUtils')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst SHALLOW_EQUAL = constants.SHALLOW_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (props) {\n const isArray = props.stringTag === 'Array'\n const object = props.value\n return new DescribedObjectValue(Object.assign({\n isArray,\n isIterable: object[Symbol.iterator] !== undefined,\n isList: isArray || hasLength(object),\n }, props))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedObjectValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('ObjectValue')\nexports.tag = tag\n\nclass ObjectValue {\n constructor (props) {\n this.ctor = props.ctor\n this.pointer = props.pointer\n this.stringTag = props.stringTag\n\n this.isArray = props.isArray === true\n this.isIterable = props.isIterable === true\n this.isList = props.isList === true\n }\n\n compare (expected) {\n if (this.tag !== expected.tag) return UNEQUAL\n if (this.stringTag !== expected.stringTag || !this.hasSameCtor(expected)) return UNEQUAL\n return SHALLOW_EQUAL\n }\n\n hasSameCtor (expected) {\n return this.ctor === expected.ctor\n }\n\n formatShallow (theme, indent) {\n return new ObjectFormatter(this, theme, indent)\n }\n\n serialize () {\n return [\n this.ctor, this.pointer, this.stringTag,\n this.isArray, this.isIterable, this.isList,\n ]\n }\n}\nObject.defineProperty(ObjectValue.prototype, 'isComplex', { value: true })\nObject.defineProperty(ObjectValue.prototype, 'tag', { value: tag })\nexports.ObjectValue = ObjectValue\n\nconst DescribedObjectValue = DescribedMixin(ObjectValue)\nconst DeserializedObjectValue = DeserializedMixin(ObjectValue)\n\nfunction DescribedMixin (base) {\n return class extends base {\n constructor (props) {\n super(props)\n\n this.value = props.value\n this.describeAny = props.describeAny\n this.describeItem = props.describeItem\n this.describeMapEntry = props.describeMapEntry\n this.describeProperty = props.describeProperty\n\n this.iterableState = null\n this.listState = null\n this.propertyState = null\n }\n\n compare (expected) {\n return this.value === expected.value\n ? DEEP_EQUAL\n : super.compare(expected)\n }\n\n createPropertyRecursor () {\n const objectKeys = getObjectKeys(this.value, this.isList ? this.value.length : 0)\n const size = objectKeys.size\n if (size === 0) return recursorUtils.NOOP_RECURSOR\n\n let index = 0\n const next = () => {\n if (index === size) return null\n\n const key = objectKeys.keys[index++]\n return this.describeProperty(key, this.describeAny(this.value[key]))\n }\n\n return { size, next }\n }\n\n createListRecursor () {\n if (!this.isList) return recursorUtils.NOOP_RECURSOR\n\n const size = this.value.length\n if (size === 0) return recursorUtils.NOOP_RECURSOR\n\n let index = 0\n const next = () => {\n if (index === size) return null\n\n const current = index\n index++\n return this.describeItem(current, this.describeAny(this.value[current]))\n }\n\n return { size, next }\n }\n\n createIterableRecursor () {\n if (this.isArray || !this.isIterable) return recursorUtils.NOOP_RECURSOR\n\n const iterator = this.value[Symbol.iterator]()\n let first = iterator.next()\n\n let done = false\n let size = -1\n if (first.done) {\n if (first.value === undefined) {\n size = 0\n done = true\n } else {\n size = 1\n }\n }\n\n let index = 0\n const next = () => {\n if (done) return null\n\n while (!done) {\n const current = first || iterator.next()\n if (current === first) {\n first = null\n }\n if (current.done) {\n done = true\n }\n\n const item = current.value\n if (done && item === undefined) return null\n\n if (this.isList && this.value[index] === item) {\n index++\n } else {\n return this.describeItem(index++, this.describeAny(item))\n }\n }\n }\n\n return { size, next }\n }\n\n createRecursor () {\n let recursedProperty = false\n let recursedList = false\n let recursedIterable = false\n\n let recursor = null\n return () => {\n let retval = null\n do {\n if (recursor !== null) {\n retval = recursor.next()\n if (retval === null) {\n recursor = null\n }\n }\n\n while (recursor === null && (!recursedList || !recursedProperty || !recursedIterable)) {\n // Prioritize recursing lists\n if (!recursedList) {\n const replay = recursorUtils.replay(this.listState, () => this.createListRecursor())\n this.listState = replay.state\n recursor = replay.recursor\n recursedList = true\n if (recursor !== recursorUtils.NOOP_RECURSOR) {\n retval = stats.describeListRecursor(recursor)\n }\n } else if (!recursedProperty) {\n const replay = recursorUtils.replay(this.propertyState, () => this.createPropertyRecursor())\n this.propertyState = replay.state\n recursor = replay.recursor\n recursedProperty = true\n if (recursor !== recursorUtils.NOOP_RECURSOR) {\n retval = stats.describePropertyRecursor(recursor)\n }\n } else if (!recursedIterable) {\n const replay = recursorUtils.replay(this.iterableState, () => this.createIterableRecursor())\n this.iterableState = replay.state\n recursor = replay.recursor\n recursedIterable = true\n if (recursor !== recursorUtils.NOOP_RECURSOR) {\n retval = stats.describeIterableRecursor(recursor)\n }\n }\n }\n } while (recursor !== null && retval === null)\n\n return retval\n }\n }\n }\n}\nexports.DescribedMixin = DescribedMixin\n\nfunction DeserializedMixin (base) {\n return class extends base {\n constructor (state, recursor) {\n super({\n ctor: state[0],\n pointer: state[1],\n stringTag: state[2],\n isArray: state[3],\n isIterable: state[4],\n isList: state[5],\n })\n\n this.deserializedRecursor = recursor\n this.replayState = null\n }\n\n createRecursor () {\n if (!this.deserializedRecursor) return () => null\n\n const replay = recursorUtils.replay(this.replayState, () => ({ size: -1, next: this.deserializedRecursor }))\n this.replayState = replay.state\n return replay.recursor.next\n }\n\n hasSameCtor (expected) {\n return this.ctor === expected.ctor\n }\n }\n}\nexports.DeserializedMixin = DeserializedMixin\n","'use strict'\n\nconst constants = require('../constants')\nconst object = require('./object')\n\nconst AMBIGUOUS = constants.AMBIGUOUS\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (props) {\n return new DescribedArgumentsValue(Object.assign({\n // Treat as an array, to allow comparisons with arrays\n isArray: true,\n isList: true,\n }, props, { ctor: 'Arguments' }))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedArgumentsValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('ArgumentsValue')\nexports.tag = tag\n\nclass ArgumentsValue extends object.ObjectValue {\n compare (expected) {\n if (expected.isComplex !== true) return UNEQUAL\n\n // When used on the left-hand side of a comparison, argument values may be\n // compared to arrays.\n if (expected.stringTag === 'Array') return AMBIGUOUS\n\n return super.compare(expected)\n }\n}\nObject.defineProperty(ArgumentsValue.prototype, 'tag', { value: tag })\n\nconst DescribedArgumentsValue = object.DescribedMixin(ArgumentsValue)\n\nclass DeserializedArgumentsValue extends object.DeserializedMixin(ArgumentsValue) {\n compare (expected) {\n // Deserialized argument values may only be compared to argument values.\n return expected.isComplex === true && expected.stringTag === 'Array'\n ? UNEQUAL\n : super.compare(expected)\n }\n}\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\nconst propertyStatsTag = require('../metaDescriptors/stats').propertyTag\nconst recursorUtils = require('../recursorUtils')\nconst object = require('./object')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction getBuffer (value) {\n const buffer = Buffer.from(value.buffer)\n return value.byteLength !== value.buffer.byteLength\n ? buffer.slice(value.byteOffset, value.byteOffset + value.byteLength)\n : buffer\n}\nexports.getBuffer = getBuffer\n\nfunction describe (props) {\n return new DescribedTypedArrayValue(Object.assign({\n buffer: getBuffer(props.value),\n // Set isArray and isList so the property recursor excludes the byte accessors\n isArray: true,\n isList: true,\n }, props))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedTypedArrayValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nfunction deserializeBytes (buffer) {\n return new Bytes(buffer)\n}\nexports.deserializeBytes = deserializeBytes\n\nconst bytesTag = Symbol('Bytes')\nexports.bytesTag = bytesTag\n\nconst tag = Symbol('TypedArrayValue')\nexports.tag = tag\n\nclass Bytes {\n constructor (buffer) {\n this.buffer = buffer\n }\n\n compare (expected) {\n return expected.tag === bytesTag && this.buffer.equals(expected.buffer)\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n formatDeep (theme, indent) {\n const indentation = indent\n const lines = lineBuilder.buffer()\n\n // Display 4-byte words, 8 per line\n let string = ''\n let isFirst = true\n for (let offset = 0; offset < this.buffer.length; offset += 4) {\n if (offset > 0) {\n if (offset % 32 === 0) {\n if (isFirst) {\n lines.append(lineBuilder.first(string))\n isFirst = false\n } else {\n lines.append(lineBuilder.line(string))\n }\n string = String(indentation)\n } else {\n string += ' '\n }\n }\n string += formatUtils.wrap(theme.typedArray.bytes, this.buffer.toString('hex', offset, offset + 4))\n }\n\n return isFirst\n ? lineBuilder.single(string)\n : lines.append(lineBuilder.last(string))\n }\n\n serialize () {\n return this.buffer\n }\n}\nObject.defineProperty(Bytes.prototype, 'tag', { value: bytesTag })\n\nclass TypedArrayValue extends object.ObjectValue {\n constructor (props) {\n super(props)\n this.buffer = props.buffer\n }\n\n formatShallow (theme, indent) {\n return super.formatShallow(theme, indent).customize({\n shouldFormat (subject) {\n if (subject.tag === propertyStatsTag) return subject.size > 1\n if (subject.isProperty === true) return subject.key.value !== 'byteLength'\n if (subject.tag === bytesTag) return subject.buffer.byteLength > 0\n return true\n },\n })\n }\n}\nObject.defineProperty(TypedArrayValue.prototype, 'tag', { value: tag })\nexports.TypedArrayValue = TypedArrayValue\n\nfunction DescribedMixin (base) {\n return class extends object.DescribedMixin(base) {\n // The list isn't recursed. Instead a Bytes instance is returned by the main\n // recursor.\n createListRecursor () {\n return recursorUtils.NOOP_RECURSOR\n }\n\n createPropertyRecursor () {\n const recursor = super.createPropertyRecursor()\n const size = recursor.size + 1\n\n let done = false\n const next = () => {\n if (done) return null\n\n const property = recursor.next()\n if (property) return property\n\n done = true\n return this.describeProperty('byteLength', this.describeAny(this.buffer.byteLength))\n }\n\n return { size, next }\n }\n\n createRecursor () {\n return recursorUtils.unshift(super.createRecursor(), new Bytes(this.buffer))\n }\n }\n}\nexports.DescribedMixin = DescribedMixin\n\nconst DescribedTypedArrayValue = DescribedMixin(TypedArrayValue)\n\nfunction DeserializedMixin (base) {\n return class extends object.DeserializedMixin(base) {\n constructor (state, recursor) {\n super(state, recursor)\n\n // Get the Bytes descriptor from the recursor. It contains the buffer.\n const bytesDescriptor = this.createRecursor()()\n this.buffer = bytesDescriptor.buffer\n }\n }\n}\nexports.DeserializedMixin = DeserializedMixin\n\nconst DeserializedTypedArrayValue = DeserializedMixin(TypedArrayValue)\n","'use strict'\n\nconst typedArray = require('./typedArray')\n\nfunction describe (props) {\n return new DescribedArrayBufferValue(Object.assign({\n buffer: Buffer.from(props.value),\n // Set isArray and isList so the property recursor excludes the byte accessors\n isArray: true,\n isList: true,\n }, props))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedArrayBufferValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('ArrayBufferValue')\nexports.tag = tag\n\n// ArrayBuffers can be represented as regular Buffers, allowing them to be\n// treated as TypedArrays for the purposes of this package.\nclass ArrayBufferValue extends typedArray.TypedArrayValue {}\nObject.defineProperty(ArrayBufferValue.prototype, 'tag', { value: tag })\n\nconst DescribedArrayBufferValue = typedArray.DescribedMixin(ArrayBufferValue)\nconst DeserializedArrayBufferValue = typedArray.DeserializedMixin(ArrayBufferValue)\n","/**\n * This library modifies the diff-patch-match library by Neil Fraser\n * by removing the patch and match functionality and certain advanced\n * options in the diff function. The original license is as follows:\n *\n * ===\n *\n * Diff Match and Patch\n *\n * Copyright 2006 Google Inc.\n * http://code.google.com/p/google-diff-match-patch/\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n/**\n * The data structure representing a diff is an array of tuples:\n * [[DIFF_DELETE, 'Hello'], [DIFF_INSERT, 'Goodbye'], [DIFF_EQUAL, ' world.']]\n * which means: delete 'Hello', add 'Goodbye' and keep ' world.'\n */\nvar DIFF_DELETE = -1;\nvar DIFF_INSERT = 1;\nvar DIFF_EQUAL = 0;\n\n\n/**\n * Find the differences between two texts. Simplifies the problem by stripping\n * any common prefix or suffix off the texts before diffing.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @param {Int|Object} [cursor_pos] Edit position in text1 or object with more info\n * @return {Array} Array of diff tuples.\n */\nfunction diff_main(text1, text2, cursor_pos, _fix_unicode) {\n // Check for equality\n if (text1 === text2) {\n if (text1) {\n return [[DIFF_EQUAL, text1]];\n }\n return [];\n }\n\n if (cursor_pos != null) {\n var editdiff = find_cursor_edit_diff(text1, text2, cursor_pos);\n if (editdiff) {\n return editdiff;\n }\n }\n\n // Trim off common prefix (speedup).\n var commonlength = diff_commonPrefix(text1, text2);\n var commonprefix = text1.substring(0, commonlength);\n text1 = text1.substring(commonlength);\n text2 = text2.substring(commonlength);\n\n // Trim off common suffix (speedup).\n commonlength = diff_commonSuffix(text1, text2);\n var commonsuffix = text1.substring(text1.length - commonlength);\n text1 = text1.substring(0, text1.length - commonlength);\n text2 = text2.substring(0, text2.length - commonlength);\n\n // Compute the diff on the middle block.\n var diffs = diff_compute_(text1, text2);\n\n // Restore the prefix and suffix.\n if (commonprefix) {\n diffs.unshift([DIFF_EQUAL, commonprefix]);\n }\n if (commonsuffix) {\n diffs.push([DIFF_EQUAL, commonsuffix]);\n }\n diff_cleanupMerge(diffs, _fix_unicode);\n return diffs;\n};\n\n\n/**\n * Find the differences between two texts. Assumes that the texts do not\n * have any common prefix or suffix.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @return {Array} Array of diff tuples.\n */\nfunction diff_compute_(text1, text2) {\n var diffs;\n\n if (!text1) {\n // Just add some text (speedup).\n return [[DIFF_INSERT, text2]];\n }\n\n if (!text2) {\n // Just delete some text (speedup).\n return [[DIFF_DELETE, text1]];\n }\n\n var longtext = text1.length > text2.length ? text1 : text2;\n var shorttext = text1.length > text2.length ? text2 : text1;\n var i = longtext.indexOf(shorttext);\n if (i !== -1) {\n // Shorter text is inside the longer text (speedup).\n diffs = [\n [DIFF_INSERT, longtext.substring(0, i)],\n [DIFF_EQUAL, shorttext],\n [DIFF_INSERT, longtext.substring(i + shorttext.length)]\n ];\n // Swap insertions for deletions if diff is reversed.\n if (text1.length > text2.length) {\n diffs[0][0] = diffs[2][0] = DIFF_DELETE;\n }\n return diffs;\n }\n\n if (shorttext.length === 1) {\n // Single character string.\n // After the previous speedup, the character can't be an equality.\n return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];\n }\n\n // Check to see if the problem can be split in two.\n var hm = diff_halfMatch_(text1, text2);\n if (hm) {\n // A half-match was found, sort out the return data.\n var text1_a = hm[0];\n var text1_b = hm[1];\n var text2_a = hm[2];\n var text2_b = hm[3];\n var mid_common = hm[4];\n // Send both pairs off for separate processing.\n var diffs_a = diff_main(text1_a, text2_a);\n var diffs_b = diff_main(text1_b, text2_b);\n // Merge the results.\n return diffs_a.concat([[DIFF_EQUAL, mid_common]], diffs_b);\n }\n\n return diff_bisect_(text1, text2);\n};\n\n\n/**\n * Find the 'middle snake' of a diff, split the problem in two\n * and return the recursively constructed diff.\n * See Myers 1986 paper: An O(ND) Difference Algorithm and Its Variations.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @return {Array} Array of diff tuples.\n * @private\n */\nfunction diff_bisect_(text1, text2) {\n // Cache the text lengths to prevent multiple calls.\n var text1_length = text1.length;\n var text2_length = text2.length;\n var max_d = Math.ceil((text1_length + text2_length) / 2);\n var v_offset = max_d;\n var v_length = 2 * max_d;\n var v1 = new Array(v_length);\n var v2 = new Array(v_length);\n // Setting all elements to -1 is faster in Chrome & Firefox than mixing\n // integers and undefined.\n for (var x = 0; x < v_length; x++) {\n v1[x] = -1;\n v2[x] = -1;\n }\n v1[v_offset + 1] = 0;\n v2[v_offset + 1] = 0;\n var delta = text1_length - text2_length;\n // If the total number of characters is odd, then the front path will collide\n // with the reverse path.\n var front = (delta % 2 !== 0);\n // Offsets for start and end of k loop.\n // Prevents mapping of space beyond the grid.\n var k1start = 0;\n var k1end = 0;\n var k2start = 0;\n var k2end = 0;\n for (var d = 0; d < max_d; d++) {\n // Walk the front path one step.\n for (var k1 = -d + k1start; k1 <= d - k1end; k1 += 2) {\n var k1_offset = v_offset + k1;\n var x1;\n if (k1 === -d || (k1 !== d && v1[k1_offset - 1] < v1[k1_offset + 1])) {\n x1 = v1[k1_offset + 1];\n } else {\n x1 = v1[k1_offset - 1] + 1;\n }\n var y1 = x1 - k1;\n while (\n x1 < text1_length && y1 < text2_length &&\n text1.charAt(x1) === text2.charAt(y1)\n ) {\n x1++;\n y1++;\n }\n v1[k1_offset] = x1;\n if (x1 > text1_length) {\n // Ran off the right of the graph.\n k1end += 2;\n } else if (y1 > text2_length) {\n // Ran off the bottom of the graph.\n k1start += 2;\n } else if (front) {\n var k2_offset = v_offset + delta - k1;\n if (k2_offset >= 0 && k2_offset < v_length && v2[k2_offset] !== -1) {\n // Mirror x2 onto top-left coordinate system.\n var x2 = text1_length - v2[k2_offset];\n if (x1 >= x2) {\n // Overlap detected.\n return diff_bisectSplit_(text1, text2, x1, y1);\n }\n }\n }\n }\n\n // Walk the reverse path one step.\n for (var k2 = -d + k2start; k2 <= d - k2end; k2 += 2) {\n var k2_offset = v_offset + k2;\n var x2;\n if (k2 === -d || (k2 !== d && v2[k2_offset - 1] < v2[k2_offset + 1])) {\n x2 = v2[k2_offset + 1];\n } else {\n x2 = v2[k2_offset - 1] + 1;\n }\n var y2 = x2 - k2;\n while (\n x2 < text1_length && y2 < text2_length &&\n text1.charAt(text1_length - x2 - 1) === text2.charAt(text2_length - y2 - 1)\n ) {\n x2++;\n y2++;\n }\n v2[k2_offset] = x2;\n if (x2 > text1_length) {\n // Ran off the left of the graph.\n k2end += 2;\n } else if (y2 > text2_length) {\n // Ran off the top of the graph.\n k2start += 2;\n } else if (!front) {\n var k1_offset = v_offset + delta - k2;\n if (k1_offset >= 0 && k1_offset < v_length && v1[k1_offset] !== -1) {\n var x1 = v1[k1_offset];\n var y1 = v_offset + x1 - k1_offset;\n // Mirror x2 onto top-left coordinate system.\n x2 = text1_length - x2;\n if (x1 >= x2) {\n // Overlap detected.\n return diff_bisectSplit_(text1, text2, x1, y1);\n }\n }\n }\n }\n }\n // Diff took too long and hit the deadline or\n // number of diffs equals number of characters, no commonality at all.\n return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];\n};\n\n\n/**\n * Given the location of the 'middle snake', split the diff in two parts\n * and recurse.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @param {number} x Index of split point in text1.\n * @param {number} y Index of split point in text2.\n * @return {Array} Array of diff tuples.\n */\nfunction diff_bisectSplit_(text1, text2, x, y) {\n var text1a = text1.substring(0, x);\n var text2a = text2.substring(0, y);\n var text1b = text1.substring(x);\n var text2b = text2.substring(y);\n\n // Compute both diffs serially.\n var diffs = diff_main(text1a, text2a);\n var diffsb = diff_main(text1b, text2b);\n\n return diffs.concat(diffsb);\n};\n\n\n/**\n * Determine the common prefix of two strings.\n * @param {string} text1 First string.\n * @param {string} text2 Second string.\n * @return {number} The number of characters common to the start of each\n * string.\n */\nfunction diff_commonPrefix(text1, text2) {\n // Quick check for common null cases.\n if (!text1 || !text2 || text1.charAt(0) !== text2.charAt(0)) {\n return 0;\n }\n // Binary search.\n // Performance analysis: http://neil.fraser.name/news/2007/10/09/\n var pointermin = 0;\n var pointermax = Math.min(text1.length, text2.length);\n var pointermid = pointermax;\n var pointerstart = 0;\n while (pointermin < pointermid) {\n if (\n text1.substring(pointerstart, pointermid) ==\n text2.substring(pointerstart, pointermid)\n ) {\n pointermin = pointermid;\n pointerstart = pointermin;\n } else {\n pointermax = pointermid;\n }\n pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);\n }\n\n if (is_surrogate_pair_start(text1.charCodeAt(pointermid - 1))) {\n pointermid--;\n }\n\n return pointermid;\n};\n\n\n/**\n * Determine the common suffix of two strings.\n * @param {string} text1 First string.\n * @param {string} text2 Second string.\n * @return {number} The number of characters common to the end of each string.\n */\nfunction diff_commonSuffix(text1, text2) {\n // Quick check for common null cases.\n if (!text1 || !text2 || text1.slice(-1) !== text2.slice(-1)) {\n return 0;\n }\n // Binary search.\n // Performance analysis: http://neil.fraser.name/news/2007/10/09/\n var pointermin = 0;\n var pointermax = Math.min(text1.length, text2.length);\n var pointermid = pointermax;\n var pointerend = 0;\n while (pointermin < pointermid) {\n if (\n text1.substring(text1.length - pointermid, text1.length - pointerend) ==\n text2.substring(text2.length - pointermid, text2.length - pointerend)\n ) {\n pointermin = pointermid;\n pointerend = pointermin;\n } else {\n pointermax = pointermid;\n }\n pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);\n }\n\n if (is_surrogate_pair_end(text1.charCodeAt(text1.length - pointermid))) {\n pointermid--;\n }\n\n return pointermid;\n};\n\n\n/**\n * Do the two texts share a substring which is at least half the length of the\n * longer text?\n * This speedup can produce non-minimal diffs.\n * @param {string} text1 First string.\n * @param {string} text2 Second string.\n * @return {Array.} Five element Array, containing the prefix of\n * text1, the suffix of text1, the prefix of text2, the suffix of\n * text2 and the common middle. Or null if there was no match.\n */\nfunction diff_halfMatch_(text1, text2) {\n var longtext = text1.length > text2.length ? text1 : text2;\n var shorttext = text1.length > text2.length ? text2 : text1;\n if (longtext.length < 4 || shorttext.length * 2 < longtext.length) {\n return null; // Pointless.\n }\n\n /**\n * Does a substring of shorttext exist within longtext such that the substring\n * is at least half the length of longtext?\n * Closure, but does not reference any external variables.\n * @param {string} longtext Longer string.\n * @param {string} shorttext Shorter string.\n * @param {number} i Start index of quarter length substring within longtext.\n * @return {Array.} Five element Array, containing the prefix of\n * longtext, the suffix of longtext, the prefix of shorttext, the suffix\n * of shorttext and the common middle. Or null if there was no match.\n * @private\n */\n function diff_halfMatchI_(longtext, shorttext, i) {\n // Start with a 1/4 length substring at position i as a seed.\n var seed = longtext.substring(i, i + Math.floor(longtext.length / 4));\n var j = -1;\n var best_common = '';\n var best_longtext_a, best_longtext_b, best_shorttext_a, best_shorttext_b;\n while ((j = shorttext.indexOf(seed, j + 1)) !== -1) {\n var prefixLength = diff_commonPrefix(\n longtext.substring(i), shorttext.substring(j));\n var suffixLength = diff_commonSuffix(\n longtext.substring(0, i), shorttext.substring(0, j));\n if (best_common.length < suffixLength + prefixLength) {\n best_common = shorttext.substring(\n j - suffixLength, j) + shorttext.substring(j, j + prefixLength);\n best_longtext_a = longtext.substring(0, i - suffixLength);\n best_longtext_b = longtext.substring(i + prefixLength);\n best_shorttext_a = shorttext.substring(0, j - suffixLength);\n best_shorttext_b = shorttext.substring(j + prefixLength);\n }\n }\n if (best_common.length * 2 >= longtext.length) {\n return [\n best_longtext_a, best_longtext_b,\n best_shorttext_a, best_shorttext_b, best_common\n ];\n } else {\n return null;\n }\n }\n\n // First check if the second quarter is the seed for a half-match.\n var hm1 = diff_halfMatchI_(longtext, shorttext, Math.ceil(longtext.length / 4));\n // Check again based on the third quarter.\n var hm2 = diff_halfMatchI_(longtext, shorttext, Math.ceil(longtext.length / 2));\n var hm;\n if (!hm1 && !hm2) {\n return null;\n } else if (!hm2) {\n hm = hm1;\n } else if (!hm1) {\n hm = hm2;\n } else {\n // Both matched. Select the longest.\n hm = hm1[4].length > hm2[4].length ? hm1 : hm2;\n }\n\n // A half-match was found, sort out the return data.\n var text1_a, text1_b, text2_a, text2_b;\n if (text1.length > text2.length) {\n text1_a = hm[0];\n text1_b = hm[1];\n text2_a = hm[2];\n text2_b = hm[3];\n } else {\n text2_a = hm[0];\n text2_b = hm[1];\n text1_a = hm[2];\n text1_b = hm[3];\n }\n var mid_common = hm[4];\n return [text1_a, text1_b, text2_a, text2_b, mid_common];\n};\n\n\n/**\n * Reorder and merge like edit sections. Merge equalities.\n * Any edit section can move as long as it doesn't cross an equality.\n * @param {Array} diffs Array of diff tuples.\n * @param {boolean} fix_unicode Whether to normalize to a unicode-correct diff\n */\nfunction diff_cleanupMerge(diffs, fix_unicode) {\n diffs.push([DIFF_EQUAL, '']); // Add a dummy entry at the end.\n var pointer = 0;\n var count_delete = 0;\n var count_insert = 0;\n var text_delete = '';\n var text_insert = '';\n var commonlength;\n while (pointer < diffs.length) {\n if (pointer < diffs.length - 1 && !diffs[pointer][1]) {\n diffs.splice(pointer, 1);\n continue;\n }\n switch (diffs[pointer][0]) {\n case DIFF_INSERT:\n\n count_insert++;\n text_insert += diffs[pointer][1];\n pointer++;\n break;\n case DIFF_DELETE:\n count_delete++;\n text_delete += diffs[pointer][1];\n pointer++;\n break;\n case DIFF_EQUAL:\n var previous_equality = pointer - count_insert - count_delete - 1;\n if (fix_unicode) {\n // prevent splitting of unicode surrogate pairs. when fix_unicode is true,\n // we assume that the old and new text in the diff are complete and correct\n // unicode-encoded JS strings, but the tuple boundaries may fall between\n // surrogate pairs. we fix this by shaving off stray surrogates from the end\n // of the previous equality and the beginning of this equality. this may create\n // empty equalities or a common prefix or suffix. for example, if AB and AC are\n // emojis, `[[0, 'A'], [-1, 'BA'], [0, 'C']]` would turn into deleting 'ABAC' and\n // inserting 'AC', and then the common suffix 'AC' will be eliminated. in this\n // particular case, both equalities go away, we absorb any previous inequalities,\n // and we keep scanning for the next equality before rewriting the tuples.\n if (previous_equality >= 0 && ends_with_pair_start(diffs[previous_equality][1])) {\n var stray = diffs[previous_equality][1].slice(-1);\n diffs[previous_equality][1] = diffs[previous_equality][1].slice(0, -1);\n text_delete = stray + text_delete;\n text_insert = stray + text_insert;\n if (!diffs[previous_equality][1]) {\n // emptied out previous equality, so delete it and include previous delete/insert\n diffs.splice(previous_equality, 1);\n pointer--;\n var k = previous_equality - 1;\n if (diffs[k] && diffs[k][0] === DIFF_INSERT) {\n count_insert++;\n text_insert = diffs[k][1] + text_insert;\n k--;\n }\n if (diffs[k] && diffs[k][0] === DIFF_DELETE) {\n count_delete++;\n text_delete = diffs[k][1] + text_delete;\n k--;\n }\n previous_equality = k;\n }\n }\n if (starts_with_pair_end(diffs[pointer][1])) {\n var stray = diffs[pointer][1].charAt(0);\n diffs[pointer][1] = diffs[pointer][1].slice(1);\n text_delete += stray;\n text_insert += stray;\n }\n }\n if (pointer < diffs.length - 1 && !diffs[pointer][1]) {\n // for empty equality not at end, wait for next equality\n diffs.splice(pointer, 1);\n break;\n }\n if (text_delete.length > 0 || text_insert.length > 0) {\n // note that diff_commonPrefix and diff_commonSuffix are unicode-aware\n if (text_delete.length > 0 && text_insert.length > 0) {\n // Factor out any common prefixes.\n commonlength = diff_commonPrefix(text_insert, text_delete);\n if (commonlength !== 0) {\n if (previous_equality >= 0) {\n diffs[previous_equality][1] += text_insert.substring(0, commonlength);\n } else {\n diffs.splice(0, 0, [DIFF_EQUAL, text_insert.substring(0, commonlength)]);\n pointer++;\n }\n text_insert = text_insert.substring(commonlength);\n text_delete = text_delete.substring(commonlength);\n }\n // Factor out any common suffixes.\n commonlength = diff_commonSuffix(text_insert, text_delete);\n if (commonlength !== 0) {\n diffs[pointer][1] =\n text_insert.substring(text_insert.length - commonlength) + diffs[pointer][1];\n text_insert = text_insert.substring(0, text_insert.length - commonlength);\n text_delete = text_delete.substring(0, text_delete.length - commonlength);\n }\n }\n // Delete the offending records and add the merged ones.\n var n = count_insert + count_delete;\n if (text_delete.length === 0 && text_insert.length === 0) {\n diffs.splice(pointer - n, n);\n pointer = pointer - n;\n } else if (text_delete.length === 0) {\n diffs.splice(pointer - n, n, [DIFF_INSERT, text_insert]);\n pointer = pointer - n + 1;\n } else if (text_insert.length === 0) {\n diffs.splice(pointer - n, n, [DIFF_DELETE, text_delete]);\n pointer = pointer - n + 1;\n } else {\n diffs.splice(pointer - n, n, [DIFF_DELETE, text_delete], [DIFF_INSERT, text_insert]);\n pointer = pointer - n + 2;\n }\n }\n if (pointer !== 0 && diffs[pointer - 1][0] === DIFF_EQUAL) {\n // Merge this equality with the previous one.\n diffs[pointer - 1][1] += diffs[pointer][1];\n diffs.splice(pointer, 1);\n } else {\n pointer++;\n }\n count_insert = 0;\n count_delete = 0;\n text_delete = '';\n text_insert = '';\n break;\n }\n }\n if (diffs[diffs.length - 1][1] === '') {\n diffs.pop(); // Remove the dummy entry at the end.\n }\n\n // Second pass: look for single edits surrounded on both sides by equalities\n // which can be shifted sideways to eliminate an equality.\n // e.g: ABAC -> ABAC\n var changes = false;\n pointer = 1;\n // Intentionally ignore the first and last element (don't need checking).\n while (pointer < diffs.length - 1) {\n if (diffs[pointer - 1][0] === DIFF_EQUAL &&\n diffs[pointer + 1][0] === DIFF_EQUAL) {\n // This is a single edit surrounded by equalities.\n if (diffs[pointer][1].substring(diffs[pointer][1].length -\n diffs[pointer - 1][1].length) === diffs[pointer - 1][1]) {\n // Shift the edit over the previous equality.\n diffs[pointer][1] = diffs[pointer - 1][1] +\n diffs[pointer][1].substring(0, diffs[pointer][1].length -\n diffs[pointer - 1][1].length);\n diffs[pointer + 1][1] = diffs[pointer - 1][1] + diffs[pointer + 1][1];\n diffs.splice(pointer - 1, 1);\n changes = true;\n } else if (diffs[pointer][1].substring(0, diffs[pointer + 1][1].length) ==\n diffs[pointer + 1][1]) {\n // Shift the edit over the next equality.\n diffs[pointer - 1][1] += diffs[pointer + 1][1];\n diffs[pointer][1] =\n diffs[pointer][1].substring(diffs[pointer + 1][1].length) +\n diffs[pointer + 1][1];\n diffs.splice(pointer + 1, 1);\n changes = true;\n }\n }\n pointer++;\n }\n // If shifts were made, the diff needs reordering and another shift sweep.\n if (changes) {\n diff_cleanupMerge(diffs, fix_unicode);\n }\n};\n\nfunction is_surrogate_pair_start(charCode) {\n return charCode >= 0xD800 && charCode <= 0xDBFF;\n}\n\nfunction is_surrogate_pair_end(charCode) {\n return charCode >= 0xDC00 && charCode <= 0xDFFF;\n}\n\nfunction starts_with_pair_end(str) {\n return is_surrogate_pair_end(str.charCodeAt(0));\n}\n\nfunction ends_with_pair_start(str) {\n return is_surrogate_pair_start(str.charCodeAt(str.length - 1));\n}\n\nfunction remove_empty_tuples(tuples) {\n var ret = [];\n for (var i = 0; i < tuples.length; i++) {\n if (tuples[i][1].length > 0) {\n ret.push(tuples[i]);\n }\n }\n return ret;\n}\n\nfunction make_edit_splice(before, oldMiddle, newMiddle, after) {\n if (ends_with_pair_start(before) || starts_with_pair_end(after)) {\n return null;\n }\n return remove_empty_tuples([\n [DIFF_EQUAL, before],\n [DIFF_DELETE, oldMiddle],\n [DIFF_INSERT, newMiddle],\n [DIFF_EQUAL, after]\n ]);\n}\n\nfunction find_cursor_edit_diff(oldText, newText, cursor_pos) {\n // note: this runs after equality check has ruled out exact equality\n var oldRange = typeof cursor_pos === 'number' ?\n { index: cursor_pos, length: 0 } : cursor_pos.oldRange;\n var newRange = typeof cursor_pos === 'number' ?\n null : cursor_pos.newRange;\n // take into account the old and new selection to generate the best diff\n // possible for a text edit. for example, a text change from \"xxx\" to \"xx\"\n // could be a delete or forwards-delete of any one of the x's, or the\n // result of selecting two of the x's and typing \"x\".\n var oldLength = oldText.length;\n var newLength = newText.length;\n if (oldRange.length === 0 && (newRange === null || newRange.length === 0)) {\n // see if we have an insert or delete before or after cursor\n var oldCursor = oldRange.index;\n var oldBefore = oldText.slice(0, oldCursor);\n var oldAfter = oldText.slice(oldCursor);\n var maybeNewCursor = newRange ? newRange.index : null;\n editBefore: {\n // is this an insert or delete right before oldCursor?\n var newCursor = oldCursor + newLength - oldLength;\n if (maybeNewCursor !== null && maybeNewCursor !== newCursor) {\n break editBefore;\n }\n if (newCursor < 0 || newCursor > newLength) {\n break editBefore;\n }\n var newBefore = newText.slice(0, newCursor);\n var newAfter = newText.slice(newCursor);\n if (newAfter !== oldAfter) {\n break editBefore;\n }\n var prefixLength = Math.min(oldCursor, newCursor);\n var oldPrefix = oldBefore.slice(0, prefixLength);\n var newPrefix = newBefore.slice(0, prefixLength);\n if (oldPrefix !== newPrefix) {\n break editBefore;\n }\n var oldMiddle = oldBefore.slice(prefixLength);\n var newMiddle = newBefore.slice(prefixLength);\n return make_edit_splice(oldPrefix, oldMiddle, newMiddle, oldAfter);\n }\n editAfter: {\n // is this an insert or delete right after oldCursor?\n if (maybeNewCursor !== null && maybeNewCursor !== oldCursor) {\n break editAfter;\n }\n var cursor = oldCursor;\n var newBefore = newText.slice(0, cursor);\n var newAfter = newText.slice(cursor);\n if (newBefore !== oldBefore) {\n break editAfter;\n }\n var suffixLength = Math.min(oldLength - cursor, newLength - cursor);\n var oldSuffix = oldAfter.slice(oldAfter.length - suffixLength);\n var newSuffix = newAfter.slice(newAfter.length - suffixLength);\n if (oldSuffix !== newSuffix) {\n break editAfter;\n }\n var oldMiddle = oldAfter.slice(0, oldAfter.length - suffixLength);\n var newMiddle = newAfter.slice(0, newAfter.length - suffixLength);\n return make_edit_splice(oldBefore, oldMiddle, newMiddle, oldSuffix);\n }\n }\n if (oldRange.length > 0 && newRange && newRange.length === 0) {\n replaceRange: {\n // see if diff could be a splice of the old selection range\n var oldPrefix = oldText.slice(0, oldRange.index);\n var oldSuffix = oldText.slice(oldRange.index + oldRange.length);\n var prefixLength = oldPrefix.length;\n var suffixLength = oldSuffix.length;\n if (newLength < prefixLength + suffixLength) {\n break replaceRange;\n }\n var newPrefix = newText.slice(0, prefixLength);\n var newSuffix = newText.slice(newLength - suffixLength);\n if (oldPrefix !== newPrefix || oldSuffix !== newSuffix) {\n break replaceRange;\n }\n var oldMiddle = oldText.slice(prefixLength, oldLength - suffixLength);\n var newMiddle = newText.slice(prefixLength, newLength - suffixLength);\n return make_edit_splice(oldPrefix, oldMiddle, newMiddle, oldSuffix);\n }\n }\n\n return null;\n}\n\nfunction diff(text1, text2, cursor_pos) {\n // only pass fix_unicode=true at the top level, not when diff_main is\n // recursively invoked\n return diff_main(text1, text2, cursor_pos, true);\n}\n\ndiff.INSERT = DIFF_INSERT;\ndiff.DELETE = DIFF_DELETE;\ndiff.EQUAL = DIFF_EQUAL;\n\nmodule.exports = diff;\n","'use strict'\n\nconst keyword = require('esutils').keyword\nconst fastDiff = require('fast-diff')\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (value) {\n return new StringValue(value)\n}\nexports.describe = describe\n\nexports.deserialize = describe\n\nconst tag = Symbol('StringValue')\nexports.tag = tag\n\n// TODO: Escape invisible characters (e.g. zero-width joiner, non-breaking space),\n// ambiguous characters (other kinds of spaces, combining characters). Use\n// http://graphemica.com/blocks/control-pictures where applicable.\nfunction basicEscape (string) {\n return string.replace(/\\\\/g, '\\\\\\\\')\n}\n\nconst CRLF_CONTROL_PICTURE = '\\u240D\\u240A'\nconst LF_CONTROL_PICTURE = '\\u240A'\nconst CR_CONTROL_PICTURE = '\\u240D'\n\nconst MATCH_CONTROL_PICTURES = new RegExp(`${CR_CONTROL_PICTURE}|${LF_CONTROL_PICTURE}|${CR_CONTROL_PICTURE}`, 'g')\n\nfunction escapeLinebreak (string) {\n if (string === '\\r\\n') return CRLF_CONTROL_PICTURE\n if (string === '\\n') return LF_CONTROL_PICTURE\n if (string === '\\r') return CR_CONTROL_PICTURE\n return string\n}\n\nfunction themeControlPictures (theme, resetWrap, str) {\n return str.replace(MATCH_CONTROL_PICTURES, picture => {\n return resetWrap.close + formatUtils.wrap(theme.string.controlPicture, picture) + resetWrap.open\n })\n}\n\nconst MATCH_SINGLE_QUOTE = /'/g\nconst MATCH_DOUBLE_QUOTE = /\"/g\nconst MATCH_BACKTICKS = /`/g\nfunction escapeQuotes (line, string) {\n const quote = line.escapeQuote\n if (quote === '\\'') return string.replace(MATCH_SINGLE_QUOTE, \"\\\\'\")\n if (quote === '\"') return string.replace(MATCH_DOUBLE_QUOTE, '\\\\\"')\n if (quote === '`') return string.replace(MATCH_BACKTICKS, '\\\\`')\n return string\n}\n\nfunction includesLinebreaks (string) {\n return string.includes('\\r') || string.includes('\\n')\n}\n\nfunction diffLine (theme, actual, expected, invert) {\n const outcome = fastDiff(actual, expected)\n\n // TODO: Compute when line is mostly unequal (80%? 90%?) and treat it as being\n // completely unequal.\n const isPartiallyEqual = !(\n (outcome.length === 2 && outcome[0][1] === actual && outcome[1][1] === expected) ||\n // Discount line ending control pictures, which will be equal even when the\n // rest of the line isn't.\n (\n outcome.length === 3 &&\n outcome[2][0] === fastDiff.EQUAL &&\n MATCH_CONTROL_PICTURES.test(outcome[2][1]) &&\n outcome[0][1] + outcome[2][1] === actual &&\n outcome[1][1] + outcome[2][1] === expected\n )\n )\n\n let stringActual = ''\n let stringExpected = ''\n\n const noopWrap = { open: '', close: '' }\n let deleteWrap = isPartiallyEqual ? theme.string.diff.delete : noopWrap\n let insertWrap = isPartiallyEqual ? theme.string.diff.insert : noopWrap\n const equalWrap = isPartiallyEqual ? theme.string.diff.equal : noopWrap\n\n if (invert) {\n [deleteWrap, insertWrap] = [insertWrap, deleteWrap]\n }\n\n for (const diff of outcome) {\n if (diff[0] === fastDiff.DELETE) {\n stringActual += formatUtils.wrap(deleteWrap, diff[1])\n } else if (diff[0] === fastDiff.INSERT) {\n stringExpected += formatUtils.wrap(insertWrap, diff[1])\n } else {\n const string = formatUtils.wrap(equalWrap, themeControlPictures(theme, equalWrap, diff[1]))\n stringActual += string\n stringExpected += string\n }\n }\n\n if (!isPartiallyEqual) {\n const deleteLineWrap = invert ? theme.string.diff.insertLine : theme.string.diff.deleteLine\n const insertLineWrap = invert ? theme.string.diff.deleteLine : theme.string.diff.insertLine\n\n stringActual = formatUtils.wrap(deleteLineWrap, stringActual)\n stringExpected = formatUtils.wrap(insertLineWrap, stringExpected)\n }\n\n return [stringActual, stringExpected]\n}\n\nconst LINEBREAKS = /\\r\\n|\\r|\\n/g\n\nfunction gatherLines (string) {\n const lines = []\n let prevIndex = 0\n for (let match; (match = LINEBREAKS.exec(string)); prevIndex = match.index + match[0].length) {\n lines.push(string.slice(prevIndex, match.index) + escapeLinebreak(match[0]))\n }\n lines.push(string.slice(prevIndex))\n return lines\n}\n\nclass StringValue {\n constructor (value) {\n this.value = value\n }\n\n compare (expected) {\n return expected.tag === tag && this.value === expected.value\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n get includesLinebreaks () {\n return includesLinebreaks(this.value)\n }\n\n formatDeep (theme, indent) {\n // Escape backslashes\n let escaped = basicEscape(this.value)\n\n if (!this.includesLinebreaks) {\n escaped = escapeQuotes(theme.string.line, escaped)\n return lineBuilder.single(formatUtils.wrap(theme.string.line, formatUtils.wrap(theme.string, escaped)))\n }\n\n escaped = escapeQuotes(theme.string.multiline, escaped)\n const lineStrings = gatherLines(escaped).map(string => {\n return formatUtils.wrap(theme.string, themeControlPictures(theme, theme.string, string))\n })\n const lastIndex = lineStrings.length - 1\n const indentation = indent\n return lineBuilder.buffer()\n .append(\n lineStrings.map((string, index) => {\n if (index === 0) return lineBuilder.first(theme.string.multiline.start + string)\n if (index === lastIndex) return lineBuilder.last(indentation + string + theme.string.multiline.end)\n return lineBuilder.line(indentation + string)\n }))\n }\n\n formatAsKey (theme) {\n const key = this.value\n if (keyword.isIdentifierNameES6(key, true) || String(parseInt(key, 10)) === key) {\n return key\n }\n\n const escaped = basicEscape(key)\n .replace(/\\n/g, '\\\\n')\n .replace(/\\r/g, '\\\\r')\n .replace(/'/g, \"\\\\'\")\n return formatUtils.wrap(theme.string.line, formatUtils.wrap(theme.string, escaped))\n }\n\n diffDeep (expected, theme, indent, invert) {\n if (expected.tag !== tag) return null\n\n const escapedActual = basicEscape(this.value)\n const escapedExpected = basicEscape(expected.value)\n\n if (!includesLinebreaks(escapedActual) && !includesLinebreaks(escapedExpected)) {\n const result = diffLine(theme,\n escapeQuotes(theme.string.line, escapedActual),\n escapeQuotes(theme.string.line, escapedExpected),\n invert,\n )\n\n return lineBuilder.actual.single(formatUtils.wrap(theme.string.line, result[0]))\n .concat(lineBuilder.expected.single(formatUtils.wrap(theme.string.line, result[1])))\n }\n\n const actualLines = gatherLines(escapeQuotes(theme.string.multiline, escapedActual))\n const expectedLines = gatherLines(escapeQuotes(theme.string.multiline, escapedExpected))\n\n const indentation = indent\n const lines = lineBuilder.buffer()\n const lastActualIndex = actualLines.length - 1\n const lastExpectedIndex = expectedLines.length - 1\n\n let actualBuffer = []\n let expectedBuffer = []\n let mustOpenNextExpected = false\n for (let actualIndex = 0, expectedIndex = 0, extraneousOffset = 0; actualIndex < actualLines.length;) {\n if (actualLines[actualIndex] === expectedLines[expectedIndex]) {\n lines.append(actualBuffer)\n lines.append(expectedBuffer)\n actualBuffer = []\n expectedBuffer = []\n\n let string = actualLines[actualIndex]\n string = themeControlPictures(theme, theme.string.diff.equal, string)\n string = formatUtils.wrap(theme.string.diff.equal, string)\n\n if (actualIndex === 0) {\n lines.append(lineBuilder.first(theme.string.multiline.start + string))\n } else if (actualIndex === lastActualIndex && expectedIndex === lastExpectedIndex) {\n lines.append(lineBuilder.last(indentation + string + theme.string.multiline.end))\n } else {\n lines.append(lineBuilder.line(indentation + string))\n }\n\n actualIndex++\n expectedIndex++\n continue\n }\n\n let expectedIsMissing = false\n {\n const compare = actualLines[actualIndex]\n for (let index = expectedIndex; !expectedIsMissing && index < expectedLines.length; index++) {\n expectedIsMissing = compare === expectedLines[index]\n }\n }\n\n let actualIsExtraneous = (actualIndex - extraneousOffset) > lastExpectedIndex || expectedIndex > lastExpectedIndex\n if (!actualIsExtraneous) {\n const compare = expectedLines[expectedIndex]\n for (let index = actualIndex; !actualIsExtraneous && index < actualLines.length; index++) {\n actualIsExtraneous = compare === actualLines[index]\n }\n\n if (!actualIsExtraneous && (actualIndex - extraneousOffset) === lastExpectedIndex && actualIndex < lastActualIndex) {\n actualIsExtraneous = true\n }\n }\n\n if (actualIsExtraneous && !expectedIsMissing) {\n const wrap = invert ? theme.string.diff.insertLine : theme.string.diff.deleteLine\n const string = formatUtils.wrap(wrap, actualLines[actualIndex])\n\n if (actualIndex === 0) {\n actualBuffer.push(lineBuilder.actual.first(theme.string.multiline.start + string))\n mustOpenNextExpected = true\n } else if (actualIndex === lastActualIndex) {\n actualBuffer.push(lineBuilder.actual.last(indentation + string + theme.string.multiline.end))\n } else {\n actualBuffer.push(lineBuilder.actual.line(indentation + string))\n }\n\n actualIndex++\n extraneousOffset++\n } else if (expectedIsMissing && !actualIsExtraneous) {\n const wrap = invert ? theme.string.diff.deleteLine : theme.string.diff.insertLine\n const string = formatUtils.wrap(wrap, expectedLines[expectedIndex])\n\n if (mustOpenNextExpected) {\n expectedBuffer.push(lineBuilder.expected.first(theme.string.multiline.start + string))\n mustOpenNextExpected = false\n } else if (expectedIndex === lastExpectedIndex) {\n expectedBuffer.push(lineBuilder.expected.last(indentation + string + theme.string.multiline.end))\n } else {\n expectedBuffer.push(lineBuilder.expected.line(indentation + string))\n }\n\n expectedIndex++\n } else {\n const result = diffLine(theme, actualLines[actualIndex], expectedLines[expectedIndex], invert)\n\n if (actualIndex === 0) {\n actualBuffer.push(lineBuilder.actual.first(theme.string.multiline.start + result[0]))\n mustOpenNextExpected = true\n } else if (actualIndex === lastActualIndex) {\n actualBuffer.push(lineBuilder.actual.last(indentation + result[0] + theme.string.multiline.end))\n } else {\n actualBuffer.push(lineBuilder.actual.line(indentation + result[0]))\n }\n\n if (mustOpenNextExpected) {\n expectedBuffer.push(lineBuilder.expected.first(theme.string.multiline.start + result[1]))\n mustOpenNextExpected = false\n } else if (expectedIndex === lastExpectedIndex) {\n expectedBuffer.push(lineBuilder.expected.last(indentation + result[1] + theme.string.multiline.end))\n } else {\n expectedBuffer.push(lineBuilder.expected.line(indentation + result[1]))\n }\n\n actualIndex++\n expectedIndex++\n }\n }\n\n lines.append(actualBuffer)\n lines.append(expectedBuffer)\n return lines\n }\n\n serialize () {\n return this.value\n }\n}\nObject.defineProperty(StringValue.prototype, 'isPrimitive', { value: true })\nObject.defineProperty(StringValue.prototype, 'tag', { value: tag })\n","'use strict'\n\nconst stringPrimitive = require('../primitiveValues/string').tag\nconst recursorUtils = require('../recursorUtils')\nconst object = require('./object')\n\nfunction describe (props) {\n return new DescribedBoxedValue(props)\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedBoxedValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('BoxedValue')\nexports.tag = tag\n\nclass BoxedValue extends object.ObjectValue {}\nObject.defineProperty(BoxedValue.prototype, 'tag', { value: tag })\n\nclass DescribedBoxedValue extends object.DescribedMixin(BoxedValue) {\n constructor (props) {\n super(props)\n this.unboxed = props.unboxed\n }\n\n createListRecursor () {\n return recursorUtils.NOOP_RECURSOR\n }\n\n createPropertyRecursor () {\n if (this.unboxed.tag !== stringPrimitive) return super.createPropertyRecursor()\n\n // Just so that createPropertyRecursor() skips the index-based character\n // properties.\n try {\n this.isList = true\n return super.createPropertyRecursor()\n } finally {\n this.isList = false\n }\n }\n\n createRecursor () {\n return recursorUtils.unshift(super.createRecursor(), this.unboxed)\n }\n}\n\nconst DeserializedBoxedValue = object.DeserializedMixin(BoxedValue)\n","'use strict'\n\nconst typedArray = require('./typedArray')\n\nfunction describe (props) {\n return new DescribedDataViewValue(Object.assign({\n buffer: typedArray.getBuffer(props.value),\n // Set isArray and isList so the property recursor excludes the byte accessors\n isArray: true,\n isList: true,\n }, props))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedDataViewValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('DataViewValue')\nexports.tag = tag\n\n// DataViews can be represented as regular Buffers, allowing them to be treated\n// as TypedArrays for the purposes of this package.\nclass DataViewValue extends typedArray.TypedArrayValue {}\nObject.defineProperty(DataViewValue.prototype, 'tag', { value: tag })\n\nconst DescribedDataViewValue = typedArray.DescribedMixin(DataViewValue)\nconst DeserializedDataViewValue = typedArray.DeserializedMixin(DataViewValue)\n","'use strict';\nmodule.exports = date => {\n\tconst offset = (date || new Date()).getTimezoneOffset();\n\tconst absOffset = Math.abs(offset);\n\tconst hours = Math.floor(absOffset / 60);\n\tconst minutes = absOffset % 60;\n\tconst minutesOut = minutes > 0 ? ':' + ('0' + minutes).slice(-2) : '';\n\n\treturn (offset < 0 ? '+' : '-') + hours + minutesOut;\n};\n","'use strict';\nconst timeZone = require('time-zone');\n\nconst dateTime = options => {\n\toptions = Object.assign({\n\t\tdate: new Date(),\n\t\tlocal: true,\n\t\tshowTimeZone: false,\n\t\tshowMilliseconds: false\n\t}, options);\n\n\tlet {date} = options;\n\n\tif (options.local) {\n\t\t// Offset the date so it will return the correct value when getting the ISO string\n\t\tdate = new Date(date.getTime() - (date.getTimezoneOffset() * 60000));\n\t}\n\n\tlet end = '';\n\n\tif (options.showTimeZone) {\n\t\tend = ' UTC' + (options.local ? timeZone(date) : '');\n\t}\n\n\tif (options.showMilliseconds && date.getUTCMilliseconds() > 0) {\n\t\tend = ` ${date.getUTCMilliseconds()}ms${end}`;\n\t}\n\n\treturn date\n\t\t.toISOString()\n\t\t.replace(/T/, ' ')\n\t\t.replace(/\\..+/, end);\n};\n\nmodule.exports = dateTime;\n// TODO: Remove this for the next major release\nmodule.exports.default = dateTime;\n","'use strict'\n\nconst dateTime = require('date-time')\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\nconst object = require('./object')\n\nconst SHALLOW_EQUAL = constants.SHALLOW_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (props) {\n const date = props.value\n const invalid = isNaN(date.valueOf())\n return new DescribedDateValue(Object.assign({}, props, { invalid }))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedDateValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('DateValue')\nexports.tag = tag\n\nfunction formatDate (date) {\n // Always format in UTC. The local timezone shouldn't be used since it's most\n // likely different from that of CI servers.\n return dateTime({\n date,\n local: false,\n showTimeZone: true,\n showMilliseconds: true,\n })\n}\n\nclass DateValue extends object.ObjectValue {\n constructor (props) {\n super(props)\n this.invalid = props.invalid\n }\n\n compare (expected) {\n const result = super.compare(expected)\n if (result !== SHALLOW_EQUAL) return result\n\n return (this.invalid && expected.invalid) || Object.is(this.value.getTime(), expected.value.getTime())\n ? SHALLOW_EQUAL\n : UNEQUAL\n }\n\n formatShallow (theme, indent) {\n const string = formatUtils.formatCtorAndStringTag(theme, this) + ' ' +\n (this.invalid ? theme.date.invalid : formatUtils.wrap(theme.date.value, formatDate(this.value))) + ' ' +\n theme.object.openBracket\n\n return super.formatShallow(theme, indent).customize({\n finalize (innerLines) {\n return innerLines.isEmpty\n ? lineBuilder.single(string + theme.object.closeBracket)\n : lineBuilder.first(string)\n .concat(innerLines.withFirstPrefixed(indent.increase()).stripFlags())\n .append(lineBuilder.last(indent + theme.object.closeBracket))\n },\n\n maxDepth () {\n return lineBuilder.single(string + ' ' + theme.maxDepth + ' ' + theme.object.closeBracket)\n },\n })\n }\n\n serialize () {\n const iso = this.invalid ? null : this.value.toISOString()\n return [this.invalid, iso, super.serialize()]\n }\n}\nObject.defineProperty(DateValue.prototype, 'tag', { value: tag })\n\nconst DescribedDateValue = object.DescribedMixin(DateValue)\n\nclass DeserializedDateValue extends object.DeserializedMixin(DateValue) {\n constructor (state, recursor) {\n super(state[2], recursor)\n this.invalid = state[0]\n this.value = new Date(this.invalid ? NaN : state[1])\n }\n}\n","'use strict'\n\nfunction isEnumerable (obj, key) {\n const desc = Object.getOwnPropertyDescriptor(obj, key)\n return desc && desc.enumerable\n}\nmodule.exports = isEnumerable\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst isEnumerable = require('../isEnumerable')\nconst lineBuilder = require('../lineBuilder')\nconst NOOP_RECURSOR = require('../recursorUtils').NOOP_RECURSOR\nconst object = require('./object')\n\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (props) {\n const error = props.value\n return new DescribedErrorValue(Object.assign({\n nameIsEnumerable: isEnumerable(error, 'name'),\n name: error.name,\n messageIsEnumerable: isEnumerable(error, 'message'),\n message: error.message,\n }, props))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedErrorValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('ErrorValue')\nexports.tag = tag\n\nclass ErrorValue extends object.ObjectValue {\n constructor (props) {\n super(props)\n this.name = props.name\n }\n\n compare (expected) {\n return this.tag === expected.tag && this.name === expected.name\n ? super.compare(expected)\n : UNEQUAL\n }\n\n formatShallow (theme, indent) {\n const name = this.name || this.ctor\n\n let string = name\n ? formatUtils.wrap(theme.error.name, name)\n : formatUtils.wrap(theme.object.stringTag, this.stringTag)\n if (this.ctor && this.ctor !== name) {\n string += ' ' + formatUtils.wrap(theme.error.ctor, this.ctor)\n }\n if (this.stringTag && this.stringTag !== this.ctor && this.name && !this.name.includes(this.stringTag)) {\n string += ' ' + formatUtils.wrap(theme.object.secondaryStringTag, this.stringTag)\n }\n string += ' ' + theme.object.openBracket\n\n return super.formatShallow(theme, indent).customize({\n finalize (innerLines) {\n return innerLines.isEmpty\n ? lineBuilder.single(string + theme.object.closeBracket)\n : lineBuilder.first(string)\n .concat(innerLines.withFirstPrefixed(indent.increase()).stripFlags())\n .append(lineBuilder.last(indent + theme.object.closeBracket))\n },\n\n maxDepth () {\n return lineBuilder.single(string + ' ' + theme.maxDepth + ' ' + theme.object.closeBracket)\n },\n })\n }\n\n serialize () {\n return [this.name, super.serialize()]\n }\n}\nObject.defineProperty(ErrorValue.prototype, 'tag', { value: tag })\n\nclass DescribedErrorValue extends object.DescribedMixin(ErrorValue) {\n constructor (props) {\n super(props)\n this.nameIsEnumerable = props.nameIsEnumerable\n this.messageIsEnumerable = props.messageIsEnumerable\n this.message = props.message\n }\n\n createPropertyRecursor () {\n const recursor = super.createPropertyRecursor()\n\n let skipName = this.nameIsEnumerable\n let emitMessage = !this.messageIsEnumerable\n\n let size = recursor.size\n if (skipName && size > 0) {\n size -= 1\n }\n if (emitMessage) {\n size += 1\n }\n\n if (size === 0) return NOOP_RECURSOR\n\n let done = false\n const next = () => {\n if (done) return null\n\n const property = recursor.next()\n if (property) {\n if (skipName && property.key.value === 'name') {\n skipName = false\n return next()\n }\n return property\n }\n\n if (emitMessage) {\n emitMessage = false\n return this.describeProperty('message', this.describeAny(this.message))\n }\n\n done = true\n return null\n }\n\n return { size, next }\n }\n}\n\nclass DeserializedErrorValue extends object.DeserializedMixin(ErrorValue) {\n constructor (state, recursor) {\n super(state[1], recursor)\n this.name = state[0]\n }\n}\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst isEnumerable = require('../isEnumerable')\nconst lineBuilder = require('../lineBuilder')\nconst NOOP_RECURSOR = require('../recursorUtils').NOOP_RECURSOR\nconst object = require('./object')\n\nconst UNEQUAL = constants.UNEQUAL\nconst SHALLOW_EQUAL = constants.SHALLOW_EQUAL\n\nfunction describe (props) {\n const fn = props.value\n return new DescribedFunctionValue(Object.assign({\n nameIsEnumerable: isEnumerable(fn, 'name'),\n name: typeof fn.name === 'string' ? fn.name : null,\n }, props))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedFunctionValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('FunctionValue')\nexports.tag = tag\n\nclass FunctionValue extends object.ObjectValue {\n constructor (props) {\n super(props)\n this.name = props.name\n }\n\n formatShallow (theme, indent) {\n const string = formatUtils.wrap(theme.function.stringTag, this.stringTag) +\n (this.name ? ' ' + formatUtils.wrap(theme.function.name, this.name) : '') +\n ' ' + theme.object.openBracket\n\n return super.formatShallow(theme, indent).customize({\n finalize (innerLines) {\n return innerLines.isEmpty\n ? lineBuilder.single(string + theme.object.closeBracket)\n : lineBuilder.first(string)\n .concat(innerLines.withFirstPrefixed(indent.increase()).stripFlags())\n .append(lineBuilder.last(indent + theme.object.closeBracket))\n },\n\n maxDepth () {\n return lineBuilder.single(string + ' ' + theme.maxDepth + ' ' + theme.object.closeBracket)\n },\n })\n }\n}\nObject.defineProperty(FunctionValue.prototype, 'tag', { value: tag })\n\nclass DescribedFunctionValue extends object.DescribedMixin(FunctionValue) {\n constructor (props) {\n super(props)\n this.nameIsEnumerable = props.nameIsEnumerable\n }\n\n compare (expected) {\n if (this.tag !== expected.tag) return UNEQUAL\n if (this.name !== expected.name) return UNEQUAL\n if (this.value && expected.value && this.value !== expected.value) return UNEQUAL\n\n return super.compare(expected)\n }\n\n createPropertyRecursor () {\n const recursor = super.createPropertyRecursor()\n\n const skipName = this.nameIsEnumerable\n if (!skipName) return recursor\n\n let size = recursor.size\n if (skipName) {\n size -= 1\n }\n\n if (size === 0) return NOOP_RECURSOR\n\n const next = () => {\n const property = recursor.next()\n if (property) {\n if (skipName && property.key.value === 'name') {\n return next()\n }\n return property\n }\n\n return null\n }\n\n return { size, next }\n }\n\n serialize () {\n return [this.name, super.serialize()]\n }\n}\n\nclass DeserializedFunctionValue extends object.DeserializedMixin(FunctionValue) {\n constructor (state, recursor) {\n super(state[1], recursor)\n this.name = state[0]\n }\n\n compare (expected) {\n if (this.tag !== expected.tag) return UNEQUAL\n if (this.name !== expected.name) return UNEQUAL\n if (this.stringTag !== expected.stringTag) return UNEQUAL\n\n return SHALLOW_EQUAL\n }\n\n serialize () {\n return [this.name, super.serialize()]\n }\n}\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe () {\n return new GlobalValue()\n}\nexports.describe = describe\n\nexports.deserialize = describe\n\nconst tag = Symbol('GlobalValue')\nexports.tag = tag\n\nclass GlobalValue {\n compare (expected) {\n return this.tag === expected.tag\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n formatDeep (theme) {\n return lineBuilder.single(\n formatUtils.wrap(theme.global, 'Global') + ' ' + theme.object.openBracket + theme.object.closeBracket)\n }\n}\nObject.defineProperty(GlobalValue.prototype, 'isComplex', { value: true })\nObject.defineProperty(GlobalValue.prototype, 'tag', { value: tag })\n","'use strict'\n\nconst constants = require('../constants')\nconst recursorUtils = require('../recursorUtils')\nconst object = require('./object')\n\nconst SHALLOW_EQUAL = constants.SHALLOW_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (props) {\n return new DescribedMapValue(Object.assign({\n size: props.value.size,\n }, props))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedMapValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('MapValue')\nexports.tag = tag\n\nclass MapValue extends object.ObjectValue {\n constructor (props) {\n super(props)\n this.size = props.size\n }\n\n compare (expected) {\n const result = super.compare(expected)\n if (result !== SHALLOW_EQUAL) return result\n\n return this.size === expected.size\n ? SHALLOW_EQUAL\n : UNEQUAL\n }\n\n prepareDiff (expected) {\n // Maps should be compared, even if they have a different number of entries.\n return { compareResult: super.compare(expected) }\n }\n\n serialize () {\n return [this.size, super.serialize()]\n }\n}\nObject.defineProperty(MapValue.prototype, 'tag', { value: tag })\n\nclass DescribedMapValue extends object.DescribedMixin(MapValue) {\n createIterableRecursor () {\n const size = this.size\n if (size === 0) return recursorUtils.NOOP_RECURSOR\n\n let index = 0\n let entries\n const next = () => {\n if (index === size) return null\n\n if (!entries) {\n entries = Array.from(this.value)\n }\n\n const entry = entries[index++]\n return this.describeMapEntry(this.describeAny(entry[0]), this.describeAny(entry[1]))\n }\n\n return { size, next }\n }\n}\n\nclass DeserializedMapValue extends object.DeserializedMixin(MapValue) {\n constructor (state, recursor) {\n super(state[1], recursor)\n this.size = state[0]\n }\n}\n","'use strict'\n\nconst constants = require('../constants')\nconst object = require('./object')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (props) {\n return new DescribedPromiseValue(props)\n}\nexports.describe = describe\n\nfunction deserialize (props) {\n return new DeserializedPromiseValue(props)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('PromiseValue')\nexports.tag = tag\n\nclass PromiseValue extends object.ObjectValue {}\nObject.defineProperty(PromiseValue.prototype, 'tag', { value: tag })\n\nclass DescribedPromiseValue extends object.DescribedMixin(PromiseValue) {\n compare (expected) {\n // When comparing described promises, require them to be the exact same\n // object.\n return super.compare(expected) === DEEP_EQUAL\n ? DEEP_EQUAL\n : UNEQUAL\n }\n}\n\nclass DeserializedPromiseValue extends object.DeserializedMixin(PromiseValue) {\n compare (expected) {\n // Deserialized promises can never be compared using object references.\n return super.compare(expected)\n }\n}\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\nconst object = require('./object')\n\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (props) {\n const regexp = props.value\n return new DescribedRegexpValue(Object.assign({\n flags: getSortedFlags(regexp),\n source: regexp.source,\n }, props))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedRegexpValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('RegexpValue')\nexports.tag = tag\n\nfunction getSortedFlags (regexp) {\n const flags = regexp.flags || String(regexp).slice(regexp.source.length + 2)\n return flags.split('').sort().join('')\n}\n\nclass RegexpValue extends object.ObjectValue {\n constructor (props) {\n super(props)\n this.flags = props.flags\n this.source = props.source\n }\n\n compare (expected) {\n return this.tag === expected.tag && this.flags === expected.flags && this.source === expected.source\n ? super.compare(expected)\n : UNEQUAL\n }\n\n formatShallow (theme, indent) {\n const ctor = this.ctor || this.stringTag\n const regexp = formatUtils.wrap(theme.regexp.source, this.source) + formatUtils.wrap(theme.regexp.flags, this.flags)\n\n return super.formatShallow(theme, indent).customize({\n finalize: innerLines => {\n if (ctor === 'RegExp' && innerLines.isEmpty) return lineBuilder.single(regexp)\n\n const innerIndentation = indent.increase()\n const header = lineBuilder.first(formatUtils.formatCtorAndStringTag(theme, this) + ' ' + theme.object.openBracket)\n .concat(lineBuilder.line(innerIndentation + regexp))\n\n if (!innerLines.isEmpty) {\n header.append(lineBuilder.line(innerIndentation + theme.regexp.separator))\n header.append(innerLines.withFirstPrefixed(innerIndentation).stripFlags())\n }\n\n return header.append(lineBuilder.last(indent + theme.object.closeBracket))\n },\n\n maxDepth: () => {\n return lineBuilder.single(\n formatUtils.formatCtorAndStringTag(theme, this) + ' ' +\n theme.object.openBracket + ' ' +\n regexp + ' ' +\n theme.maxDepth + ' ' +\n theme.object.closeBracket)\n },\n })\n }\n\n serialize () {\n return [this.flags, this.source, super.serialize()]\n }\n}\nObject.defineProperty(RegexpValue.prototype, 'tag', { value: tag })\n\nconst DescribedRegexpValue = object.DescribedMixin(RegexpValue)\n\nclass DeserializedRegexpValue extends object.DeserializedMixin(RegexpValue) {\n constructor (state, recursor) {\n super(state[2], recursor)\n this.flags = state[0]\n this.source = state[1]\n }\n}\n","'use strict'\n\nconst constants = require('../constants')\nconst recursorUtils = require('../recursorUtils')\nconst object = require('./object')\n\nconst SHALLOW_EQUAL = constants.SHALLOW_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (props) {\n return new DescribedSetValue(Object.assign({\n size: props.value.size,\n }, props))\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n return new DeserializedSetValue(state, recursor)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('SetValue')\nexports.tag = tag\n\nclass SetValue extends object.ObjectValue {\n constructor (props) {\n super(props)\n this.size = props.size\n }\n\n compare (expected) {\n const result = super.compare(expected)\n if (result !== SHALLOW_EQUAL) return result\n\n return this.size === expected.size\n ? SHALLOW_EQUAL\n : UNEQUAL\n }\n\n prepareDiff (expected) {\n // Sets should be compared, even if they have a different number of items.\n return { compareResult: super.compare(expected) }\n }\n\n serialize () {\n return [this.size, super.serialize()]\n }\n}\nObject.defineProperty(SetValue.prototype, 'tag', { value: tag })\n\nclass DescribedSetValue extends object.DescribedMixin(SetValue) {\n createIterableRecursor () {\n const size = this.size\n if (size === 0) return recursorUtils.NOOP_RECURSOR\n\n let index = 0\n let members\n const next = () => {\n if (index === size) return null\n\n if (!members) {\n members = Array.from(this.value)\n }\n\n const value = members[index]\n return this.describeItem(index++, this.describeAny(value))\n }\n\n return { size, next }\n }\n}\n\nclass DeserializedSetValue extends object.DeserializedMixin(SetValue) {\n constructor (state, recursor) {\n super(state[1], recursor)\n this.size = state[0]\n }\n}\n","'use strict'\n\nconst hop = Object.prototype.hasOwnProperty\n\nfunction getCtor (stringTag, value) {\n if (value.constructor) {\n const name = value.constructor.name\n return typeof name === 'string' && name !== ''\n ? name\n : null\n }\n\n if (value.constructor === undefined) {\n if (stringTag !== 'Object' || value instanceof Object) return null\n\n // Values without a constructor, that do not inherit from `Object`, but are\n // tagged as objects, may come from `Object.create(null)`. Or they can come\n // from a different realm, e.g.:\n //\n // ```\n // require('vm').runInNewContext(`\n // const Foo = function () {}\n // Foo.prototype.constructor = undefined\n // return new Foo()\n // `)\n // ```\n //\n // Treat such objects as if they came from `Object.create(null)` (in the\n // current realm) only if they do not have inherited properties. This allows\n // these objects to be compared with object literals.\n //\n // This means `Object.create(null)` is not differentiated from `{}`.\n\n // Using `const` prevents Crankshaft optimizations\n for (var p in value) { // eslint-disable-line no-var\n if (!hop.call(value, p)) return null\n }\n return stringTag\n }\n\n return null\n}\nmodule.exports = getCtor\n","'use strict'\n\nconst ts = Object.prototype.toString\nfunction getStringTag (value) {\n return ts.call(value).slice(8, -1)\n}\n\nconst fts = Function.prototype.toString\nconst promiseCtorString = fts.call(Promise)\nconst isPromise = value => {\n if (!value.constructor) return false\n\n try {\n return fts.call(value.constructor) === promiseCtorString\n } catch {\n return false\n }\n}\n\nif (getStringTag(Promise.resolve()) === 'Promise') {\n module.exports = getStringTag\n} else {\n const getStringTagWithPromiseWorkaround = value => {\n const stringTag = getStringTag(value)\n return stringTag === 'Object' && isPromise(value)\n ? 'Promise'\n : stringTag\n }\n module.exports = getStringTagWithPromiseWorkaround\n}\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst recursorUtils = require('../recursorUtils')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describeComplex (index, value) {\n return new ComplexItem(index, value)\n}\nexports.describeComplex = describeComplex\n\nfunction deserializeComplex (index, recursor) {\n const value = recursor()\n return new ComplexItem(index, value)\n}\nexports.deserializeComplex = deserializeComplex\n\nfunction describePrimitive (index, value) {\n return new PrimitiveItem(index, value)\n}\nexports.describePrimitive = describePrimitive\n\nfunction deserializePrimitive (state) {\n const index = state[0]\n const value = state[1]\n return new PrimitiveItem(index, value)\n}\nexports.deserializePrimitive = deserializePrimitive\n\nconst complexTag = Symbol('ComplexItem')\nexports.complexTag = complexTag\n\nconst primitiveTag = Symbol('PrimitiveItem')\nexports.primitiveTag = primitiveTag\n\nclass ComplexItem {\n constructor (index, value) {\n this.index = index\n this.value = value\n }\n\n createRecursor () {\n return recursorUtils.singleValue(this.value)\n }\n\n compare (expected) {\n return expected.tag === complexTag && this.index === expected.index\n ? this.value.compare(expected.value)\n : UNEQUAL\n }\n\n formatShallow (theme, indent) {\n const increaseValueIndent = theme.item.increaseValueIndent === true\n return new formatUtils.SingleValueFormatter(theme, value => {\n if (typeof theme.item.customFormat === 'function') {\n return theme.item.customFormat(theme, indent, value)\n }\n\n return value.withLastPostfixed(theme.item.after)\n }, increaseValueIndent)\n }\n\n prepareDiff (expected, lhsRecursor, rhsRecursor, compareComplexShape, isCircular) {\n // Circular values cannot be compared. They must be treated as being unequal when diffing.\n if (isCircular(this.value) || isCircular(expected.value)) return { compareResult: UNEQUAL }\n\n // Try to line up this or remaining items with the expected items.\n const lhsFork = recursorUtils.fork(lhsRecursor)\n const rhsFork = recursorUtils.fork(rhsRecursor)\n const initialExpected = expected\n\n let expectedIsMissing = false\n while (!expectedIsMissing && expected !== null && expected.isItem === true) {\n if (expected.tag === complexTag) {\n expectedIsMissing = compareComplexShape(this.value, expected.value) !== UNEQUAL\n }\n\n expected = rhsFork.shared()\n }\n\n let actualIsExtraneous = false\n if (initialExpected.tag === complexTag) {\n let actual = this\n while (!actualIsExtraneous && actual !== null && actual.isItem === true) {\n if (actual.tag === complexTag) {\n actualIsExtraneous = compareComplexShape(actual.value, initialExpected.value) !== UNEQUAL\n }\n\n actual = lhsFork.shared()\n }\n } else if (initialExpected.tag === primitiveTag) {\n let actual = this\n while (!actualIsExtraneous && actual !== null && actual.isItem === true) {\n if (actual.tag === primitiveTag) {\n actualIsExtraneous = initialExpected.value.compare(actual.value) === DEEP_EQUAL\n }\n\n actual = lhsFork.shared()\n }\n }\n\n if (actualIsExtraneous && !expectedIsMissing) {\n return {\n actualIsExtraneous: true,\n lhsRecursor: lhsFork.recursor,\n rhsRecursor: recursorUtils.map(\n recursorUtils.unshift(rhsFork.recursor, initialExpected),\n next => {\n if (next.isItem !== true) return next\n\n next.index++\n return next\n }),\n }\n }\n\n if (expectedIsMissing && !actualIsExtraneous) {\n return {\n expectedIsMissing: true,\n lhsRecursor: recursorUtils.map(\n recursorUtils.unshift(lhsFork.recursor, this),\n next => {\n if (next.isItem !== true) return next\n\n next.index++\n return next\n }),\n rhsRecursor: rhsFork.recursor,\n }\n }\n\n const mustRecurse = this.tag === complexTag && initialExpected.tag === complexTag &&\n this.value.compare(initialExpected.value) !== UNEQUAL\n return {\n mustRecurse,\n isUnequal: !mustRecurse,\n lhsRecursor: lhsFork.recursor,\n rhsRecursor: rhsFork.recursor,\n }\n }\n\n serialize () {\n return this.index\n }\n}\nObject.defineProperty(ComplexItem.prototype, 'isItem', { value: true })\nObject.defineProperty(ComplexItem.prototype, 'tag', { value: complexTag })\n\nclass PrimitiveItem {\n constructor (index, value) {\n this.index = index\n this.value = value\n }\n\n compare (expected) {\n return expected.tag === primitiveTag && this.index === expected.index\n ? this.value.compare(expected.value)\n : UNEQUAL\n }\n\n formatDeep (theme, indent) {\n const increaseValueIndent = theme.item.increaseValueIndent === true\n const valueIndent = increaseValueIndent ? indent.increase() : indent\n\n // Since the value is formatted directly, modifiers are not applied. Apply\n // modifiers to the item descriptor instead.\n const formatted = this.value.formatDeep(theme, valueIndent)\n\n if (typeof theme.item.customFormat === 'function') {\n return theme.item.customFormat(theme, indent, formatted)\n }\n\n return formatted.withLastPostfixed(theme.item.after)\n }\n\n prepareDiff (expected, lhsRecursor, rhsRecursor, compareComplexShape, isCircular) {\n const compareResult = this.compare(expected)\n // Short-circuit when values are deeply equal.\n if (compareResult === DEEP_EQUAL) return { compareResult }\n\n // Short-circut when values can be diffed directly.\n if (\n expected.tag === primitiveTag &&\n this.value.tag === expected.value.tag && typeof this.value.diffDeep === 'function'\n ) {\n return { compareResult }\n }\n\n // Try to line up this or remaining items with the expected items.\n const rhsFork = recursorUtils.fork(rhsRecursor)\n const initialExpected = expected\n\n do {\n if (expected === null || expected.isItem !== true) {\n return {\n actualIsExtraneous: true,\n rhsRecursor: recursorUtils.map(\n recursorUtils.unshift(rhsFork.recursor, initialExpected),\n next => {\n if (next.isItem !== true) return next\n\n next.index++\n return next\n }),\n }\n }\n\n if (this.value.compare(expected.value) === DEEP_EQUAL) {\n return {\n expectedIsMissing: true,\n lhsRecursor: recursorUtils.map(\n recursorUtils.unshift(lhsRecursor, this),\n next => {\n if (next.isItem !== true) return next\n\n next.index++\n return next\n }),\n rhsRecursor: rhsFork.recursor,\n }\n }\n\n expected = rhsFork.shared()\n } while (true)\n }\n\n diffDeep (expected, theme, indent, invert) {\n // Verify a diff can be returned.\n if (this.tag !== expected.tag || typeof this.value.diffDeep !== 'function') return null\n\n const increaseValueIndent = theme.property.increaseValueIndent === true\n const valueIndent = increaseValueIndent ? indent.increase() : indent\n\n // Since the value is diffed directly, modifiers are not applied. Apply\n // modifiers to the item descriptor instead.\n const diff = this.value.diffDeep(expected.value, theme, valueIndent, invert)\n if (diff === null) return null\n\n if (typeof theme.item.customFormat === 'function') {\n return theme.item.customFormat(theme, indent, diff)\n }\n\n return diff.withLastPostfixed(theme.item.after)\n }\n\n serialize () {\n return [this.index, this.value]\n }\n}\nObject.defineProperty(PrimitiveItem.prototype, 'isItem', { value: true })\nObject.defineProperty(PrimitiveItem.prototype, 'tag', { value: primitiveTag })\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignMergeValue;\n","var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n","/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\nmodule.exports = safeGet;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\nmodule.exports = toPlainObject;\n","var assignMergeValue = require('./_assignMergeValue'),\n cloneBuffer = require('./_cloneBuffer'),\n cloneTypedArray = require('./_cloneTypedArray'),\n copyArray = require('./_copyArray'),\n initCloneObject = require('./_initCloneObject'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLikeObject = require('./isArrayLikeObject'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isPlainObject = require('./isPlainObject'),\n isTypedArray = require('./isTypedArray'),\n safeGet = require('./_safeGet'),\n toPlainObject = require('./toPlainObject');\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\nmodule.exports = baseMergeDeep;\n","var Stack = require('./_Stack'),\n assignMergeValue = require('./_assignMergeValue'),\n baseFor = require('./_baseFor'),\n baseMergeDeep = require('./_baseMergeDeep'),\n isObject = require('./isObject'),\n keysIn = require('./keysIn'),\n safeGet = require('./_safeGet');\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\nmodule.exports = baseMerge;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","var baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\nmodule.exports = createAssigner;\n","var baseMerge = require('./_baseMerge'),\n createAssigner = require('./_createAssigner');\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\nmodule.exports = merge;\n","// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\nconst RELEASE_TYPES = [\n 'major',\n 'premajor',\n 'minor',\n 'preminor',\n 'patch',\n 'prepatch',\n 'prerelease',\n]\n\nmodule.exports = {\n MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER,\n RELEASE_TYPES,\n SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 0b001,\n FLAG_LOOSE: 0b010,\n}\n","const debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","const {\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_LENGTH,\n} = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst safeRe = exports.safeRe = []\nconst src = exports.src = []\nconst t = exports.t = {}\nlet R = 0\n\nconst LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nconst makeSafeRegex = (value) => {\n for (const [token, max] of safeRegexReplacements) {\n value = value\n .split(`${token}*`).join(`${token}{0,${max}}`)\n .split(`${token}+`).join(`${token}{1,${max}}`)\n }\n return value\n}\n\nconst createToken = (name, value, isGlobal) => {\n const safe = makeSafeRegex(value)\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '\\\\d+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCE', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","// parse out just the options we care about\nconst looseOption = Object.freeze({ loose: true })\nconst emptyOpts = Object.freeze({ })\nconst parseOptions = options => {\n if (!options) {\n return emptyOpts\n }\n\n if (typeof options !== 'object') {\n return looseOption\n }\n\n return options\n}\nmodule.exports = parseOptions\n","const numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n","const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.join('.')}`\n }\n return this\n }\n}\n\nmodule.exports = SemVer\n","const SemVer = require('../classes/semver')\nconst parse = (version, options, throwErrors = false) => {\n if (version instanceof SemVer) {\n return version\n }\n try {\n return new SemVer(version, options)\n } catch (er) {\n if (!throwErrors) {\n return null\n }\n throw er\n }\n}\n\nmodule.exports = parse\n","const parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","const parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n","const SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier, identifierBase) => {\n if (typeof (options) === 'string') {\n identifierBase = identifier\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(\n version instanceof SemVer ? version.version : version,\n options\n ).inc(release, identifier, identifierBase).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n","const parse = require('./parse.js')\n\nconst diff = (version1, version2) => {\n const v1 = parse(version1, null, true)\n const v2 = parse(version2, null, true)\n const comparison = v1.compare(v2)\n\n if (comparison === 0) {\n return null\n }\n\n const v1Higher = comparison > 0\n const highVersion = v1Higher ? v1 : v2\n const lowVersion = v1Higher ? v2 : v1\n const highHasPre = !!highVersion.prerelease.length\n const lowHasPre = !!lowVersion.prerelease.length\n\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) {\n return 'major'\n }\n\n // Otherwise it can be determined by checking the high version\n\n if (highVersion.patch) {\n // anything higher than a patch bump would result in the wrong version\n return 'patch'\n }\n\n if (highVersion.minor) {\n // anything higher than a minor bump would result in the wrong version\n return 'minor'\n }\n\n // bumping major/minor/patch all have same result\n return 'major'\n }\n\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? 'pre' : ''\n\n if (v1.major !== v2.major) {\n return prefix + 'major'\n }\n\n if (v1.minor !== v2.minor) {\n return prefix + 'minor'\n }\n\n if (v1.patch !== v2.patch) {\n return prefix + 'patch'\n }\n\n // high and low are preleases\n return 'prerelease'\n}\n\nmodule.exports = diff\n","const SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","const SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n","const SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n","const parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n","const SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","const compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n","const compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n","const SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n","const compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n","const compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n","const compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","const compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","const compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","const compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","const compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","const compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","const eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n","const SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n let next\n while ((next = re[t.COERCERTL].exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n re[t.COERCERTL].lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options)\n}\nmodule.exports = coerce\n","'use strict'\nmodule.exports = function (Yallist) {\n Yallist.prototype[Symbol.iterator] = function* () {\n for (let walker = this.head; walker; walker = walker.next) {\n yield walker.value\n }\n }\n}\n","'use strict'\nmodule.exports = Yallist\n\nYallist.Node = Node\nYallist.create = Yallist\n\nfunction Yallist (list) {\n var self = this\n if (!(self instanceof Yallist)) {\n self = new Yallist()\n }\n\n self.tail = null\n self.head = null\n self.length = 0\n\n if (list && typeof list.forEach === 'function') {\n list.forEach(function (item) {\n self.push(item)\n })\n } else if (arguments.length > 0) {\n for (var i = 0, l = arguments.length; i < l; i++) {\n self.push(arguments[i])\n }\n }\n\n return self\n}\n\nYallist.prototype.removeNode = function (node) {\n if (node.list !== this) {\n throw new Error('removing node which does not belong to this list')\n }\n\n var next = node.next\n var prev = node.prev\n\n if (next) {\n next.prev = prev\n }\n\n if (prev) {\n prev.next = next\n }\n\n if (node === this.head) {\n this.head = next\n }\n if (node === this.tail) {\n this.tail = prev\n }\n\n node.list.length--\n node.next = null\n node.prev = null\n node.list = null\n\n return next\n}\n\nYallist.prototype.unshiftNode = function (node) {\n if (node === this.head) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var head = this.head\n node.list = this\n node.next = head\n if (head) {\n head.prev = node\n }\n\n this.head = node\n if (!this.tail) {\n this.tail = node\n }\n this.length++\n}\n\nYallist.prototype.pushNode = function (node) {\n if (node === this.tail) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var tail = this.tail\n node.list = this\n node.prev = tail\n if (tail) {\n tail.next = node\n }\n\n this.tail = node\n if (!this.head) {\n this.head = node\n }\n this.length++\n}\n\nYallist.prototype.push = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n push(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.unshift = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n unshift(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.pop = function () {\n if (!this.tail) {\n return undefined\n }\n\n var res = this.tail.value\n this.tail = this.tail.prev\n if (this.tail) {\n this.tail.next = null\n } else {\n this.head = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.shift = function () {\n if (!this.head) {\n return undefined\n }\n\n var res = this.head.value\n this.head = this.head.next\n if (this.head) {\n this.head.prev = null\n } else {\n this.tail = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.head, i = 0; walker !== null; i++) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.next\n }\n}\n\nYallist.prototype.forEachReverse = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.prev\n }\n}\n\nYallist.prototype.get = function (n) {\n for (var i = 0, walker = this.head; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.next\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.getReverse = function (n) {\n for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.prev\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.map = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.head; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.next\n }\n return res\n}\n\nYallist.prototype.mapReverse = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.tail; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.prev\n }\n return res\n}\n\nYallist.prototype.reduce = function (fn, initial) {\n var acc\n var walker = this.head\n if (arguments.length > 1) {\n acc = initial\n } else if (this.head) {\n walker = this.head.next\n acc = this.head.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = 0; walker !== null; i++) {\n acc = fn(acc, walker.value, i)\n walker = walker.next\n }\n\n return acc\n}\n\nYallist.prototype.reduceReverse = function (fn, initial) {\n var acc\n var walker = this.tail\n if (arguments.length > 1) {\n acc = initial\n } else if (this.tail) {\n walker = this.tail.prev\n acc = this.tail.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = this.length - 1; walker !== null; i--) {\n acc = fn(acc, walker.value, i)\n walker = walker.prev\n }\n\n return acc\n}\n\nYallist.prototype.toArray = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.head; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.next\n }\n return arr\n}\n\nYallist.prototype.toArrayReverse = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.tail; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.prev\n }\n return arr\n}\n\nYallist.prototype.slice = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = 0, walker = this.head; walker !== null && i < from; i++) {\n walker = walker.next\n }\n for (; walker !== null && i < to; i++, walker = walker.next) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.sliceReverse = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {\n walker = walker.prev\n }\n for (; walker !== null && i > from; i--, walker = walker.prev) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.splice = function (start, deleteCount, ...nodes) {\n if (start > this.length) {\n start = this.length - 1\n }\n if (start < 0) {\n start = this.length + start;\n }\n\n for (var i = 0, walker = this.head; walker !== null && i < start; i++) {\n walker = walker.next\n }\n\n var ret = []\n for (var i = 0; walker && i < deleteCount; i++) {\n ret.push(walker.value)\n walker = this.removeNode(walker)\n }\n if (walker === null) {\n walker = this.tail\n }\n\n if (walker !== this.head && walker !== this.tail) {\n walker = walker.prev\n }\n\n for (var i = 0; i < nodes.length; i++) {\n walker = insert(this, walker, nodes[i])\n }\n return ret;\n}\n\nYallist.prototype.reverse = function () {\n var head = this.head\n var tail = this.tail\n for (var walker = head; walker !== null; walker = walker.prev) {\n var p = walker.prev\n walker.prev = walker.next\n walker.next = p\n }\n this.head = tail\n this.tail = head\n return this\n}\n\nfunction insert (self, node, value) {\n var inserted = node === self.head ?\n new Node(value, null, node, self) :\n new Node(value, node, node.next, self)\n\n if (inserted.next === null) {\n self.tail = inserted\n }\n if (inserted.prev === null) {\n self.head = inserted\n }\n\n self.length++\n\n return inserted\n}\n\nfunction push (self, item) {\n self.tail = new Node(item, self.tail, null, self)\n if (!self.head) {\n self.head = self.tail\n }\n self.length++\n}\n\nfunction unshift (self, item) {\n self.head = new Node(item, null, self.head, self)\n if (!self.tail) {\n self.tail = self.head\n }\n self.length++\n}\n\nfunction Node (value, prev, next, list) {\n if (!(this instanceof Node)) {\n return new Node(value, prev, next, list)\n }\n\n this.list = list\n this.value = value\n\n if (prev) {\n prev.next = this\n this.prev = prev\n } else {\n this.prev = null\n }\n\n if (next) {\n next.prev = this\n this.next = next\n } else {\n this.next = null\n }\n}\n\ntry {\n // add if support for Symbol.iterator is present\n require('./iterator.js')(Yallist)\n} catch (er) {}\n","'use strict'\n\n// A linked list to keep track of recently-used-ness\nconst Yallist = require('yallist')\n\nconst MAX = Symbol('max')\nconst LENGTH = Symbol('length')\nconst LENGTH_CALCULATOR = Symbol('lengthCalculator')\nconst ALLOW_STALE = Symbol('allowStale')\nconst MAX_AGE = Symbol('maxAge')\nconst DISPOSE = Symbol('dispose')\nconst NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')\nconst LRU_LIST = Symbol('lruList')\nconst CACHE = Symbol('cache')\nconst UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')\n\nconst naiveLength = () => 1\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass LRUCache {\n constructor (options) {\n if (typeof options === 'number')\n options = { max: options }\n\n if (!options)\n options = {}\n\n if (options.max && (typeof options.max !== 'number' || options.max < 0))\n throw new TypeError('max must be a non-negative number')\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[MAX] = options.max || Infinity\n\n const lc = options.length || naiveLength\n this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc\n this[ALLOW_STALE] = options.stale || false\n if (options.maxAge && typeof options.maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false\n this.reset()\n }\n\n // resize the cache when the max changes.\n set max (mL) {\n if (typeof mL !== 'number' || mL < 0)\n throw new TypeError('max must be a non-negative number')\n\n this[MAX] = mL || Infinity\n trim(this)\n }\n get max () {\n return this[MAX]\n }\n\n set allowStale (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n }\n get allowStale () {\n return this[ALLOW_STALE]\n }\n\n set maxAge (mA) {\n if (typeof mA !== 'number')\n throw new TypeError('maxAge must be a non-negative number')\n\n this[MAX_AGE] = mA\n trim(this)\n }\n get maxAge () {\n return this[MAX_AGE]\n }\n\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator (lC) {\n if (typeof lC !== 'function')\n lC = naiveLength\n\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(hit => {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n })\n }\n trim(this)\n }\n get lengthCalculator () { return this[LENGTH_CALCULATOR] }\n\n get length () { return this[LENGTH] }\n get itemCount () { return this[LRU_LIST].length }\n\n rforEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].tail; walker !== null;) {\n const prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n }\n\n forEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].head; walker !== null;) {\n const next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n }\n\n keys () {\n return this[LRU_LIST].toArray().map(k => k.key)\n }\n\n values () {\n return this[LRU_LIST].toArray().map(k => k.value)\n }\n\n reset () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n }\n\n dump () {\n return this[LRU_LIST].map(hit =>\n isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter(h => h)\n }\n\n dumpLru () {\n return this[LRU_LIST]\n }\n\n set (key, value, maxAge) {\n maxAge = maxAge || this[MAX_AGE]\n\n if (maxAge && typeof maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n\n const now = maxAge ? Date.now() : 0\n const len = this[LENGTH_CALCULATOR](value, key)\n\n if (this[CACHE].has(key)) {\n if (len > this[MAX]) {\n del(this, this[CACHE].get(key))\n return false\n }\n\n const node = this[CACHE].get(key)\n const item = node.value\n\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[DISPOSE]) {\n if (!this[NO_DISPOSE_ON_SET])\n this[DISPOSE](key, item.value)\n }\n\n item.now = now\n item.maxAge = maxAge\n item.value = value\n this[LENGTH] += len - item.length\n item.length = len\n this.get(key)\n trim(this)\n return true\n }\n\n const hit = new Entry(key, value, len, now, maxAge)\n\n // oversized objects fall out of cache automatically.\n if (hit.length > this[MAX]) {\n if (this[DISPOSE])\n this[DISPOSE](key, value)\n\n return false\n }\n\n this[LENGTH] += hit.length\n this[LRU_LIST].unshift(hit)\n this[CACHE].set(key, this[LRU_LIST].head)\n trim(this)\n return true\n }\n\n has (key) {\n if (!this[CACHE].has(key)) return false\n const hit = this[CACHE].get(key).value\n return !isStale(this, hit)\n }\n\n get (key) {\n return get(this, key, true)\n }\n\n peek (key) {\n return get(this, key, false)\n }\n\n pop () {\n const node = this[LRU_LIST].tail\n if (!node)\n return null\n\n del(this, node)\n return node.value\n }\n\n del (key) {\n del(this, this[CACHE].get(key))\n }\n\n load (arr) {\n // reset the cache\n this.reset()\n\n const now = Date.now()\n // A previous serialized cache has the most recent items first\n for (let l = arr.length - 1; l >= 0; l--) {\n const hit = arr[l]\n const expiresAt = hit.e || 0\n if (expiresAt === 0)\n // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v)\n else {\n const maxAge = expiresAt - now\n // dont add already expired items\n if (maxAge > 0) {\n this.set(hit.k, hit.v, maxAge)\n }\n }\n }\n }\n\n prune () {\n this[CACHE].forEach((value, key) => get(this, key, false))\n }\n}\n\nconst get = (self, key, doUse) => {\n const node = self[CACHE].get(key)\n if (node) {\n const hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n return undefined\n } else {\n if (doUse) {\n if (self[UPDATE_AGE_ON_GET])\n node.value.now = Date.now()\n self[LRU_LIST].unshiftNode(node)\n }\n }\n return hit.value\n }\n}\n\nconst isStale = (self, hit) => {\n if (!hit || (!hit.maxAge && !self[MAX_AGE]))\n return false\n\n const diff = Date.now() - hit.now\n return hit.maxAge ? diff > hit.maxAge\n : self[MAX_AGE] && (diff > self[MAX_AGE])\n}\n\nconst trim = self => {\n if (self[LENGTH] > self[MAX]) {\n for (let walker = self[LRU_LIST].tail;\n self[LENGTH] > self[MAX] && walker !== null;) {\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev\n del(self, walker)\n walker = prev\n }\n }\n}\n\nconst del = (self, node) => {\n if (node) {\n const hit = node.value\n if (self[DISPOSE])\n self[DISPOSE](hit.key, hit.value)\n\n self[LENGTH] -= hit.length\n self[CACHE].delete(hit.key)\n self[LRU_LIST].removeNode(node)\n }\n}\n\nclass Entry {\n constructor (key, value, length, now, maxAge) {\n this.key = key\n this.value = value\n this.length = length\n this.now = now\n this.maxAge = maxAge || 0\n }\n}\n\nconst forEachStep = (self, fn, node, thisp) => {\n let hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n hit = undefined\n }\n if (hit)\n fn.call(thisp, hit.value, hit.key, self)\n}\n\nmodule.exports = LRUCache\n","// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.format()\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range\n .trim()\n .split(/\\s+/)\n .join(' ')\n\n // First, split on ||\n this.set = this.raw\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${this.raw}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.format()\n }\n\n format () {\n this.range = this.set\n .map((comps) => comps.join(' ').trim())\n .join('||')\n .trim()\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts =\n (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |\n (this.options.loose && FLAG_LOOSE)\n const memoKey = memoOpts + ':' + range\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n debug('tilde trim', range)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n debug('caret trim', range)\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\n\nmodule.exports = Range\n\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n safeRe: re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\nconst { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require('../internal/constants')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst replaceTildes = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceTilde(c, options))\n .join(' ')\n}\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst replaceCarets = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceCaret(c, options))\n .join(' ')\n}\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp\n .split(/\\s+/)\n .map((c) => replaceXRange(c, options))\n .join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp\n .trim()\n .replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp\n .trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return `${from} ${to}`.trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n","const ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n options = parseOptions(options)\n\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease &&\n (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {\n return false\n }\n if (!options.includePrerelease &&\n (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {\n return false\n }\n\n // Same direction increasing (> or >=)\n if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {\n return true\n }\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {\n return true\n }\n // same SemVer and both sides are inclusive (<= or >=)\n if (\n (this.semver.version === comp.semver.version) &&\n this.operator.includes('=') && comp.operator.includes('=')) {\n return true\n }\n // opposite directions less than\n if (cmp(this.semver, '<', comp.semver, options) &&\n this.operator.startsWith('>') && comp.operator.startsWith('<')) {\n return true\n }\n // opposite directions greater than\n if (cmp(this.semver, '>', comp.semver, options) &&\n this.operator.startsWith('<') && comp.operator.startsWith('>')) {\n return true\n }\n return false\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { safeRe: re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","const Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n","const Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin))) {\n minver = setMin\n }\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n","const Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n","const SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n","// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n","const outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n","const Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2, options)\n}\nmodule.exports = intersects\n","// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n","const Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]\nconst minimumVersion = [new Comparator('>=0.0.0')]\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = minimumVersionWithPreRelease\n } else {\n sub = minimumVersion\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = minimumVersion\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n","// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nconst constants = require('./internal/constants')\nconst SemVer = require('./classes/semver')\nconst identifiers = require('./internal/identifiers')\nconst parse = require('./functions/parse')\nconst valid = require('./functions/valid')\nconst clean = require('./functions/clean')\nconst inc = require('./functions/inc')\nconst diff = require('./functions/diff')\nconst major = require('./functions/major')\nconst minor = require('./functions/minor')\nconst patch = require('./functions/patch')\nconst prerelease = require('./functions/prerelease')\nconst compare = require('./functions/compare')\nconst rcompare = require('./functions/rcompare')\nconst compareLoose = require('./functions/compare-loose')\nconst compareBuild = require('./functions/compare-build')\nconst sort = require('./functions/sort')\nconst rsort = require('./functions/rsort')\nconst gt = require('./functions/gt')\nconst lt = require('./functions/lt')\nconst eq = require('./functions/eq')\nconst neq = require('./functions/neq')\nconst gte = require('./functions/gte')\nconst lte = require('./functions/lte')\nconst cmp = require('./functions/cmp')\nconst coerce = require('./functions/coerce')\nconst Comparator = require('./classes/comparator')\nconst Range = require('./classes/range')\nconst satisfies = require('./functions/satisfies')\nconst toComparators = require('./ranges/to-comparators')\nconst maxSatisfying = require('./ranges/max-satisfying')\nconst minSatisfying = require('./ranges/min-satisfying')\nconst minVersion = require('./ranges/min-version')\nconst validRange = require('./ranges/valid')\nconst outside = require('./ranges/outside')\nconst gtr = require('./ranges/gtr')\nconst ltr = require('./ranges/ltr')\nconst intersects = require('./ranges/intersects')\nconst simplifyRange = require('./ranges/simplify')\nconst subset = require('./ranges/subset')\nmodule.exports = {\n parse,\n valid,\n clean,\n inc,\n diff,\n major,\n minor,\n patch,\n prerelease,\n compare,\n rcompare,\n compareLoose,\n compareBuild,\n sort,\n rsort,\n gt,\n lt,\n eq,\n neq,\n gte,\n lte,\n cmp,\n coerce,\n Comparator,\n Range,\n satisfies,\n toComparators,\n maxSatisfying,\n minSatisfying,\n minVersion,\n validRange,\n outside,\n gtr,\n ltr,\n intersects,\n simplifyRange,\n subset,\n SemVer,\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: constants.RELEASE_TYPES,\n compareIdentifiers: identifiers.compareIdentifiers,\n rcompareIdentifiers: identifiers.rcompareIdentifiers,\n}\n","module.exports = function (string) {\n return ('' + string).replace(/[\"'\\\\\\n\\r\\u2028\\u2029]/g, function (character) {\n // Escape all characters not included in SingleStringCharacters and\n // DoubleStringCharacters on\n // http://www.ecma-international.org/ecma-262/5.1/#sec-7.8.4\n switch (character) {\n case '\"':\n case \"'\":\n case '\\\\':\n return '\\\\' + character\n // Four possible LineTerminator characters need to be escaped:\n case '\\n':\n return '\\\\n'\n case '\\r':\n return '\\\\r'\n case '\\u2028':\n return '\\\\u2028'\n case '\\u2029':\n return '\\\\u2029'\n }\n })\n}\n","'use strict'\n\n// https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Symbol#Well-known_symbols\nconst WELL_KNOWN = new Map([\n [Symbol.iterator, 'Symbol.iterator'],\n [Symbol.asyncIterator, 'Symbol.asyncIterator'],\n [Symbol.match, 'Symbol.match'],\n [Symbol.replace, 'Symbol.replace'],\n [Symbol.search, 'Symbol.search'],\n [Symbol.split, 'Symbol.split'],\n [Symbol.hasInstance, 'Symbol.hasInstance'],\n [Symbol.isConcatSpreadable, 'Symbol.isConcatSpreadable'],\n [Symbol.unscopables, 'Symbol.unscopables'],\n [Symbol.species, 'Symbol.species'],\n [Symbol.toPrimitive, 'Symbol.toPrimitive'],\n [Symbol.toStringTag, 'Symbol.toStringTag']\n].filter(entry => entry[0]))\n\nexports.isWellKnown = symbol => WELL_KNOWN.has(symbol)\nexports.getLabel = symbol => WELL_KNOWN.get(symbol)\n","'use strict'\n\nconst stringEscape = require('js-string-escape')\nconst wellKnownSymbols = require('well-known-symbols')\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (value) {\n let stringCompare = null\n\n const key = Symbol.keyFor(value)\n if (key !== undefined) {\n stringCompare = `Symbol.for(${stringEscape(key)})`\n } else if (wellKnownSymbols.isWellKnown(value)) {\n stringCompare = wellKnownSymbols.getLabel(value)\n }\n\n return new SymbolValue({\n stringCompare,\n value,\n })\n}\nexports.describe = describe\n\nfunction deserialize (state) {\n const stringCompare = state[0]\n const string = state[1] || state[0]\n\n return new DeserializedSymbolValue({\n string,\n stringCompare,\n value: null,\n })\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('SymbolValue')\nexports.tag = tag\n\nclass SymbolValue {\n constructor (props) {\n this.stringCompare = props.stringCompare\n this.value = props.value\n }\n\n compare (expected) {\n if (expected.tag !== tag) return UNEQUAL\n\n if (this.stringCompare !== null) {\n return this.stringCompare === expected.stringCompare\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n return this.value === expected.value\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n formatString () {\n if (this.stringCompare !== null) return this.stringCompare\n return stringEscape(this.value.toString())\n }\n\n formatDeep (theme) {\n return lineBuilder.single(formatUtils.wrap(theme.symbol, this.formatString()))\n }\n\n formatAsKey (theme) {\n return formatUtils.wrap(theme.property.keyBracket, formatUtils.wrap(theme.symbol, this.formatString()))\n }\n\n serialize () {\n const string = this.formatString()\n return this.stringCompare === string\n ? [this.stringCompare]\n : [this.stringCompare, string]\n }\n}\nObject.defineProperty(SymbolValue.prototype, 'isPrimitive', { value: true })\nObject.defineProperty(SymbolValue.prototype, 'tag', { value: tag })\n\nclass DeserializedSymbolValue extends SymbolValue {\n constructor (props) {\n super(props)\n this.string = props.string\n }\n\n compare (expected) {\n if (expected.tag !== tag) return UNEQUAL\n\n if (this.stringCompare !== null) {\n return this.stringCompare === expected.stringCompare\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n // Symbols that are not in the global symbol registry, and are not\n // well-known, cannot be compared when deserialized. Treat symbols\n // as equal if they are formatted the same.\n return this.string === expected.formatString()\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n formatString () {\n return this.string\n }\n}\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst symbolPrimitive = require('../primitiveValues/symbol').tag\nconst recursorUtils = require('../recursorUtils')\n\nconst AMBIGUOUS = constants.AMBIGUOUS\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describeComplex (key, value) {\n return new ComplexProperty(key, value)\n}\nexports.describeComplex = describeComplex\n\nfunction deserializeComplex (key, recursor) {\n const value = recursor()\n return new ComplexProperty(key, value)\n}\nexports.deserializeComplex = deserializeComplex\n\nfunction describePrimitive (key, value) {\n return new PrimitiveProperty(key, value)\n}\nexports.describePrimitive = describePrimitive\n\nfunction deserializePrimitive (state) {\n const key = state[0]\n const value = state[1]\n return new PrimitiveProperty(key, value)\n}\nexports.deserializePrimitive = deserializePrimitive\n\nconst complexTag = Symbol('ComplexProperty')\nexports.complexTag = complexTag\n\nconst primitiveTag = Symbol('PrimitiveProperty')\nexports.primitiveTag = primitiveTag\n\nclass Property {\n constructor (key) {\n this.key = key\n }\n\n compareKeys (expected) {\n const result = this.key.compare(expected.key)\n // Return AMBIGUOUS if symbol keys are unequal. It's likely that properties\n // are compared in order of declaration, which is not the desired strategy.\n // Returning AMBIGUOUS allows compare() and diff() to recognize this\n // situation and sort the symbol properties before comparing them.\n return result === UNEQUAL && this.key.tag === symbolPrimitive && expected.key.tag === symbolPrimitive\n ? AMBIGUOUS\n : result\n }\n\n prepareDiff (expected, lhsRecursor, rhsRecursor, compareComplexShape, isCircular) {\n // Circular values cannot be compared. They must be treated as being unequal when diffing.\n if (isCircular(this.value) || isCircular(expected.value)) return { compareResult: UNEQUAL }\n\n // Try to line up this or remaining properties with the expected properties.\n const rhsFork = recursorUtils.fork(rhsRecursor)\n const initialExpected = expected\n\n do {\n if (expected === null || expected.isProperty !== true) {\n return {\n actualIsExtraneous: true,\n rhsRecursor: recursorUtils.unshift(rhsFork.recursor, initialExpected),\n }\n } else if (this.key.compare(expected.key) === DEEP_EQUAL) {\n if (expected === initialExpected) {\n return null\n } else {\n return {\n expectedIsMissing: true,\n lhsRecursor: recursorUtils.unshift(lhsRecursor, this),\n rhsRecursor: rhsFork.recursor,\n }\n }\n }\n\n expected = rhsFork.shared()\n } while (true)\n }\n}\nObject.defineProperty(Property.prototype, 'isProperty', { value: true })\n\nclass ComplexProperty extends Property {\n constructor (key, value) {\n super(key)\n this.value = value\n }\n\n createRecursor () {\n return recursorUtils.singleValue(this.value)\n }\n\n compare (expected) {\n if (expected.isProperty !== true) return UNEQUAL\n\n const keyResult = this.compareKeys(expected)\n if (keyResult !== DEEP_EQUAL) return keyResult\n\n return this.tag === expected.tag\n ? this.value.compare(expected.value)\n : UNEQUAL\n }\n\n formatShallow (theme, indent) {\n const increaseValueIndent = theme.property.increaseValueIndent === true\n return new formatUtils.SingleValueFormatter(theme, value => {\n if (typeof theme.property.customFormat === 'function') {\n return theme.property.customFormat(theme, indent, this.key, value)\n }\n\n return value\n .withFirstPrefixed(this.key.formatAsKey(theme) + theme.property.separator)\n .withLastPostfixed(theme.property.after)\n }, increaseValueIndent)\n }\n\n serialize () {\n return this.key\n }\n}\nObject.defineProperty(ComplexProperty.prototype, 'tag', { value: complexTag })\n\nclass PrimitiveProperty extends Property {\n constructor (key, value) {\n super(key)\n this.value = value\n }\n\n compare (expected) {\n if (expected.isProperty !== true) return UNEQUAL\n\n const keyResult = this.compareKeys(expected)\n if (keyResult !== DEEP_EQUAL) return keyResult\n\n return this.tag !== expected.tag\n ? UNEQUAL\n : this.value.compare(expected.value)\n }\n\n formatDeep (theme, indent) {\n const increaseValueIndent = theme.property.increaseValueIndent === true\n const valueIndent = increaseValueIndent ? indent.increase() : indent\n\n // Since the key and value are formatted directly, modifiers are not\n // applied. Apply modifiers to the property descriptor instead.\n const formatted = this.value.formatDeep(theme, valueIndent)\n\n if (typeof theme.property.customFormat === 'function') {\n return theme.property.customFormat(theme, indent, this.key, formatted)\n }\n\n return formatted\n .withFirstPrefixed(this.key.formatAsKey(theme) + theme.property.separator)\n .withLastPostfixed(theme.property.after)\n }\n\n diffDeep (expected, theme, indent, invert) {\n // Verify a diff can be returned.\n if (this.tag !== expected.tag || typeof this.value.diffDeep !== 'function') return null\n // Only use this logic to diff values when the keys are the same.\n if (this.key.compare(expected.key) !== DEEP_EQUAL) return null\n\n const increaseValueIndent = theme.property.increaseValueIndent === true\n const valueIndent = increaseValueIndent ? indent.increase() : indent\n\n // Since the key and value are diffed directly, modifiers are not\n // applied. Apply modifiers to the property descriptor instead.\n const diff = this.value.diffDeep(expected.value, theme, valueIndent, invert)\n if (diff === null) return null\n\n if (typeof theme.property.customFormat === 'function') {\n return theme.property.customFormat(theme, indent, this.key, diff)\n }\n\n return diff\n .withFirstPrefixed(this.key.formatAsKey(theme) + theme.property.separator)\n .withLastPostfixed(theme.property.after)\n }\n\n serialize () {\n return [this.key, this.value]\n }\n}\nObject.defineProperty(PrimitiveProperty.prototype, 'tag', { value: primitiveTag })\n","'use strict'\n\nconst semver = require('semver')\n\nconst pkg = require('../package.json')\nconst object = require('./complexValues/object')\nconst constants = require('./constants')\nconst formatUtils = require('./formatUtils')\nconst lineBuilder = require('./lineBuilder')\nconst itemDescriptor = require('./metaDescriptors/item')\nconst propertyDescriptor = require('./metaDescriptors/property')\nconst stringDescriptor = require('./primitiveValues/string')\nconst recursorUtils = require('./recursorUtils')\nconst themeUtils = require('./themeUtils')\n\nconst API_VERSION = 1\nconst CONCORDANCE_VERSION = pkg.version\n\nconst descriptorRegistry = new Map()\nconst registry = new Map()\n\nclass PluginError extends Error {\n constructor (message, plugin) {\n super(message)\n this.name = 'PluginError'\n this.plugin = plugin\n }\n}\n\nclass PluginTypeError extends TypeError {\n constructor (message, plugin) {\n super(message)\n this.name = 'PluginTypeError'\n this.plugin = plugin\n }\n}\n\nclass UnsupportedApiError extends PluginError {\n constructor (plugin) {\n super('Plugin requires an unsupported API version', plugin)\n this.name = 'UnsupportedApiError'\n }\n}\n\nclass UnsupportedError extends PluginError {\n constructor (plugin) {\n super('Plugin does not support this version of Concordance', plugin)\n this.name = 'UnsupportedError'\n }\n}\n\nclass DuplicateDescriptorTagError extends PluginError {\n constructor (tag, plugin) {\n super(`Could not add descriptor: tag ${String(tag)} has already been registered`, plugin)\n this.name = 'DuplicateDescriptorTagError'\n this.tag = tag\n }\n}\n\nclass DuplicateDescriptorIdError extends PluginError {\n constructor (id, plugin) {\n const printed = typeof id === 'number'\n ? `0x${id.toString(16).toUpperCase()}`\n : String(id)\n super(`Could not add descriptor: id ${printed} has already been registered`, plugin)\n this.name = 'DuplicateDescriptorIdError'\n this.id = id\n }\n}\n\nfunction verify (plugin) {\n if (typeof plugin.name !== 'string' || !plugin.name) {\n throw new PluginTypeError('Plugin must have a `name`', plugin)\n }\n\n if (plugin.apiVersion !== API_VERSION) {\n throw new UnsupportedApiError(plugin)\n }\n\n if ('minimalConcordanceVersion' in plugin) {\n if (!semver.valid(plugin.minimalConcordanceVersion)) {\n throw new PluginTypeError('If specified, `minimalConcordanceVersion` must be a valid SemVer version', plugin)\n }\n\n const range = `>=${plugin.minimalConcordanceVersion}`\n if (!semver.satisfies(CONCORDANCE_VERSION, range)) {\n throw new UnsupportedError(plugin)\n }\n }\n}\n\n// Selectively expose descriptor tags.\nconst publicDescriptorTags = Object.freeze({\n complexItem: itemDescriptor.complexTag,\n primitiveItem: itemDescriptor.primitiveTag,\n primitiveProperty: propertyDescriptor.primitiveTag,\n string: stringDescriptor.tag,\n})\n\n// Don't expose `setDefaultGutter()`.\nconst publicLineBuilder = Object.freeze({\n buffer: lineBuilder.buffer,\n first: lineBuilder.first,\n last: lineBuilder.last,\n line: lineBuilder.line,\n single: lineBuilder.single,\n actual: Object.freeze({\n buffer: lineBuilder.actual.buffer,\n first: lineBuilder.actual.first,\n last: lineBuilder.actual.last,\n line: lineBuilder.actual.line,\n single: lineBuilder.actual.single,\n }),\n expected: Object.freeze({\n buffer: lineBuilder.expected.buffer,\n first: lineBuilder.expected.first,\n last: lineBuilder.expected.last,\n line: lineBuilder.expected.line,\n single: lineBuilder.expected.single,\n }),\n})\n\nfunction modifyTheme (descriptor, modifier) {\n themeUtils.addModifier(descriptor, modifier)\n return descriptor\n}\n\nfunction add (plugin) {\n verify(plugin)\n\n const name = plugin.name\n if (registry.has(name)) return registry.get(name)\n\n const id2deserialize = new Map()\n const tag2id = new Map()\n const addDescriptor = (id, tag, deserialize) => {\n if (id2deserialize.has(id)) throw new DuplicateDescriptorIdError(id, plugin)\n if (descriptorRegistry.has(tag) || tag2id.has(tag)) throw new DuplicateDescriptorTagError(tag, plugin)\n\n id2deserialize.set(id, deserialize)\n tag2id.set(tag, id)\n }\n\n const tryDescribeValue = plugin.register({\n // Concordance makes assumptions about when AMBIGUOUS occurs. Do not expose\n // it to plugins.\n UNEQUAL: constants.UNEQUAL,\n SHALLOW_EQUAL: constants.SHALLOW_EQUAL,\n DEEP_EQUAL: constants.DEEP_EQUAL,\n\n ObjectValue: object.ObjectValue,\n DescribedMixin: object.DescribedMixin,\n DeserializedMixin: object.DeserializedMixin,\n\n addDescriptor,\n applyThemeModifiers: themeUtils.applyModifiers,\n descriptorTags: publicDescriptorTags,\n lineBuilder: publicLineBuilder,\n mapRecursor: recursorUtils.map,\n modifyTheme,\n wrapFromTheme: formatUtils.wrap,\n })\n\n const registered = {\n id2deserialize,\n serializerVersion: plugin.serializerVersion,\n name,\n tag2id,\n theme: plugin.theme || {},\n tryDescribeValue,\n }\n\n registry.set(name, registered)\n for (const tag of tag2id.keys()) {\n descriptorRegistry.set(tag, registered)\n }\n\n return registered\n}\nexports.add = add\n\nfunction getDeserializers (plugins) {\n return plugins.map(plugin => {\n const registered = add(plugin)\n return {\n id2deserialize: registered.id2deserialize,\n name: registered.name,\n serializerVersion: registered.serializerVersion,\n }\n })\n}\nexports.getDeserializers = getDeserializers\n\nfunction getThemes (plugins) {\n return plugins.map(plugin => {\n const registered = add(plugin)\n return {\n name: registered.name,\n theme: registered.theme,\n }\n })\n}\nexports.getThemes = getThemes\n\nfunction getTryDescribeValues (plugins) {\n return plugins.map(plugin => add(plugin).tryDescribeValue)\n}\nexports.getTryDescribeValues = getTryDescribeValues\n\nfunction resolveDescriptorRef (tag) {\n if (!descriptorRegistry.has(tag)) return null\n\n const registered = descriptorRegistry.get(tag)\n return {\n id: registered.tag2id.get(tag),\n name: registered.name,\n serialization: {\n serializerVersion: registered.serializerVersion,\n },\n }\n}\nexports.resolveDescriptorRef = resolveDescriptorRef\n","'use strict'\n\nconst cloneDeep = require('lodash/cloneDeep')\nconst merge = require('lodash/merge')\n\nconst pluginRegistry = require('./pluginRegistry')\n\nfunction freezeTheme (theme) {\n const queue = [theme]\n while (queue.length > 0) {\n const object = queue.shift()\n Object.freeze(object)\n\n for (const key of Object.keys(object)) {\n const value = object[key]\n if (value !== null && typeof value === 'object') {\n queue.push(value)\n }\n }\n }\n\n return theme\n}\n\nconst defaultTheme = freezeTheme({\n bigInt: { open: '', close: '' },\n boolean: { open: '', close: '' },\n circular: '[Circular]',\n date: {\n invalid: 'invalid',\n value: { open: '', close: '' },\n },\n diffGutters: {\n actual: '- ',\n expected: '+ ',\n padding: ' ',\n },\n error: {\n ctor: { open: '(', close: ')' },\n name: { open: '', close: '' },\n },\n function: {\n name: { open: '', close: '' },\n stringTag: { open: '', close: '' },\n },\n global: { open: '', close: '' },\n item: {\n after: ',',\n customFormat: null,\n increaseValueIndent: false,\n },\n list: { openBracket: '[', closeBracket: ']' },\n mapEntry: {\n after: ',',\n separator: ' => ',\n },\n maxDepth: '…',\n null: { open: '', close: '' },\n number: { open: '', close: '' },\n object: {\n openBracket: '{',\n closeBracket: '}',\n ctor: { open: '', close: '' },\n stringTag: { open: '@', close: '' },\n secondaryStringTag: { open: '@', close: '' },\n },\n property: {\n after: ',',\n customFormat: null,\n keyBracket: { open: '[', close: ']' },\n separator: ': ',\n increaseValueIndent: false,\n },\n regexp: {\n source: { open: '/', close: '/' },\n flags: { open: '', close: '' },\n separator: '---',\n },\n stats: { separator: '---' },\n string: {\n open: '',\n close: '',\n line: { open: \"'\", close: \"'\", escapeQuote: \"'\" },\n multiline: { start: '`', end: '`', escapeQuote: '`' },\n controlPicture: { open: '', close: '' },\n diff: {\n insert: { open: '', close: '' },\n delete: { open: '', close: '' },\n equal: { open: '', close: '' },\n insertLine: { open: '', close: '' },\n deleteLine: { open: '', close: '' },\n },\n },\n symbol: { open: '', close: '' },\n typedArray: {\n bytes: { open: '', close: '' },\n },\n undefined: { open: '', close: '' },\n})\n\nconst pluginRefs = new Map()\npluginRefs.count = 0\nconst normalizedPluginThemes = new Map()\nfunction normalizePlugins (plugins) {\n if (!Array.isArray(plugins) || plugins.length === 0) return null\n\n const refs = []\n const themes = []\n for (const fromPlugin of pluginRegistry.getThemes(plugins)) {\n if (!pluginRefs.has(fromPlugin.name)) {\n pluginRefs.set(fromPlugin.name, pluginRefs.count++)\n }\n\n refs.push(pluginRefs.get(fromPlugin.name))\n themes.push(fromPlugin.theme)\n }\n\n const ref = refs.join('.')\n if (normalizedPluginThemes.has(ref)) {\n return {\n ref,\n theme: normalizedPluginThemes.get(ref),\n }\n }\n\n const theme = freezeTheme(themes.reduce((acc, pluginTheme) => {\n return merge(acc, pluginTheme)\n }, cloneDeep(defaultTheme)))\n normalizedPluginThemes.set(ref, theme)\n return { ref, theme }\n}\n\nconst normalizedCache = new WeakMap()\nfunction normalize (options) {\n options = Object.assign({ plugins: [], theme: null }, options)\n\n const normalizedPlugins = normalizePlugins(options.plugins)\n if (!options.theme) {\n return normalizedPlugins ? normalizedPlugins.theme : defaultTheme\n }\n\n const entry = normalizedCache.get(options.theme) || { theme: null, withPlugins: new Map() }\n if (!normalizedCache.has(options.theme)) normalizedCache.set(options.theme, entry)\n\n if (normalizedPlugins) {\n if (entry.withPlugins.has(normalizedPlugins.ref)) {\n return entry.withPlugins.get(normalizedPlugins.ref)\n }\n\n const theme = freezeTheme(merge(cloneDeep(normalizedPlugins.theme), options.theme))\n entry.withPlugins.set(normalizedPlugins.ref, theme)\n return theme\n }\n\n if (!entry.theme) {\n entry.theme = freezeTheme(merge(cloneDeep(defaultTheme), options.theme))\n }\n return entry.theme\n}\nexports.normalize = normalize\n\nconst modifiers = new WeakMap()\nfunction addModifier (descriptor, modifier) {\n if (modifiers.has(descriptor)) {\n modifiers.get(descriptor).add(modifier)\n } else {\n modifiers.set(descriptor, new Set([modifier]))\n }\n}\nexports.addModifier = addModifier\n\nconst modifierCache = new WeakMap()\nconst originalCache = new WeakMap()\nfunction applyModifiers (descriptor, theme) {\n if (!modifiers.has(descriptor)) return theme\n\n return Array.from(modifiers.get(descriptor)).reduce((prev, modifier) => {\n const cache = modifierCache.get(modifier) || new WeakMap()\n if (!modifierCache.has(modifier)) modifierCache.set(modifier, cache)\n\n if (cache.has(prev)) return cache.get(prev)\n\n const modifiedTheme = cloneDeep(prev)\n modifier(modifiedTheme)\n freezeTheme(modifiedTheme)\n cache.set(prev, modifiedTheme)\n originalCache.set(modifiedTheme, theme)\n return modifiedTheme\n }, theme)\n}\nexports.applyModifiers = applyModifiers\n\nfunction applyModifiersToOriginal (descriptor, theme) {\n return applyModifiers(descriptor, originalCache.get(theme) || theme)\n}\nexports.applyModifiersToOriginal = applyModifiersToOriginal\n","'use strict'\n\nconst constants = require('../constants')\nconst lineBuilder = require('../lineBuilder')\nconst recursorUtils = require('../recursorUtils')\nconst themeUtils = require('../themeUtils')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\nconst SHALLOW_EQUAL = constants.SHALLOW_EQUAL\n\nfunction describe (keyDescriptor, valueDescriptor) {\n const keyIsPrimitive = keyDescriptor.isPrimitive === true\n const valueIsPrimitive = valueDescriptor.isPrimitive === true\n\n return new MapEntry(keyDescriptor, valueDescriptor, keyIsPrimitive, valueIsPrimitive)\n}\nexports.describe = describe\n\nfunction deserialize (state, recursor) {\n const keyIsPrimitive = state[0]\n const valueIsPrimitive = state[1]\n const keyDescriptor = recursor()\n const valueDescriptor = recursor()\n\n return new MapEntry(keyDescriptor, valueDescriptor, keyIsPrimitive, valueIsPrimitive)\n}\nexports.deserialize = deserialize\n\nconst tag = Symbol('MapEntry')\nexports.tag = tag\n\nfunction mergeWithKey (theme, key, values) {\n const lines = lineBuilder.buffer()\n const keyRemainder = lineBuilder.buffer()\n for (const line of key) {\n if (!line.isLast && !line.hasGutter) {\n lines.append(line)\n } else {\n keyRemainder.append(line)\n }\n }\n for (const value of values) {\n lines.append(keyRemainder.mergeWithInfix(theme.mapEntry.separator, value).withLastPostfixed(theme.mapEntry.after))\n }\n return lines\n}\n\nclass MapEntry {\n constructor (key, value, keyIsPrimitive, valueIsPrimitive) {\n this.key = key\n this.value = value\n this.keyIsPrimitive = keyIsPrimitive\n this.valueIsPrimitive = valueIsPrimitive\n }\n\n createRecursor () {\n let emitKey = true\n let emitValue = true\n\n return () => {\n if (emitKey) {\n emitKey = false\n return this.key\n }\n\n if (emitValue) {\n emitValue = false\n return this.value\n }\n\n return null\n }\n }\n\n compare (expected) {\n if (this.tag !== expected.tag) return UNEQUAL\n if (this.keyIsPrimitive !== expected.keyIsPrimitive) return UNEQUAL\n if (this.valueIsPrimitive !== expected.valueIsPrimitive) return UNEQUAL\n\n if (!this.keyIsPrimitive) return SHALLOW_EQUAL\n\n const keyResult = this.key.compare(expected.key)\n if (keyResult !== DEEP_EQUAL) return keyResult\n\n if (!this.valueIsPrimitive) return SHALLOW_EQUAL\n return this.value.compare(expected.value)\n }\n\n formatDeep (theme, indent) {\n // Verify the map entry can be formatted directly.\n if (!this.keyIsPrimitive || typeof this.value.formatDeep !== 'function') return null\n\n // Since formatShallow() would result in theme modifiers being applied\n // before the key and value are formatted, do the same here.\n const value = this.value.formatDeep(themeUtils.applyModifiersToOriginal(this.value, theme), indent)\n if (value === null) return null\n\n const key = this.key.formatDeep(themeUtils.applyModifiersToOriginal(this.key, theme), indent)\n return mergeWithKey(theme, key, [value])\n }\n\n formatShallow (theme, indent) {\n let key = null\n const values = []\n return {\n append: (formatted, origin) => {\n if (this.key === origin) {\n key = formatted\n } else {\n values.push(formatted)\n }\n },\n finalize () {\n return mergeWithKey(theme, key, values)\n },\n }\n }\n\n diffDeep (expected, theme, indent, invert) {\n // Verify a diff can be returned.\n if (this.tag !== expected.tag || typeof this.value.diffDeep !== 'function') return null\n // Only use this logic to format value diffs when the keys are primitive and equal.\n if (!this.keyIsPrimitive || !expected.keyIsPrimitive || this.key.compare(expected.key) !== DEEP_EQUAL) {\n return null\n }\n\n // Since formatShallow() would result in theme modifiers being applied\n // before the key and value are formatted, do the same here.\n const diff = this.value.diffDeep(expected.value, themeUtils.applyModifiersToOriginal(this.value, theme), indent, invert)\n if (diff === null) return null\n\n const key = this.key.formatDeep(themeUtils.applyModifiersToOriginal(this.key, theme), indent, '')\n return mergeWithKey(theme, key, [diff])\n }\n\n prepareDiff (expected, lhsRecursor, rhsRecursor, compareComplexShape, isCircular) {\n // Circular values cannot be compared. They must be treated as being unequal when diffing.\n if (isCircular(this.value) || isCircular(expected.value)) return { compareResult: UNEQUAL }\n\n const compareResult = this.compare(expected)\n const keysAreEqual = this.tag === expected.tag && this.key.compare(expected.key) === DEEP_EQUAL\n // Short-circuit when keys and/or values are deeply equal.\n if (compareResult === DEEP_EQUAL || keysAreEqual) return { compareResult }\n\n // Try to line up this or remaining map entries with the expected entries.\n const lhsFork = recursorUtils.fork(lhsRecursor)\n const rhsFork = recursorUtils.fork(rhsRecursor)\n const initialExpected = expected\n\n let expectedIsMissing = false\n while (!expectedIsMissing && expected !== null && this.tag === expected.tag) {\n if (expected.keyIsPrimitive) {\n expectedIsMissing = this.key.compare(expected.key) !== UNEQUAL\n } else {\n expectedIsMissing = compareComplexShape(this.key, expected.key) !== UNEQUAL\n }\n\n expected = rhsFork.shared()\n }\n\n let actualIsExtraneous = false\n if (this.tag === initialExpected.tag) {\n if (initialExpected.keyIsPrimitive) {\n let actual = this\n while (!actualIsExtraneous && actual !== null && this.tag === actual.tag) {\n if (actual.keyIsPrimitive) {\n actualIsExtraneous = initialExpected.key.compare(actual.key) === DEEP_EQUAL\n }\n\n actual = lhsFork.shared()\n }\n } else {\n let actual = this\n while (!actualIsExtraneous && actual !== null && this.tag === actual.tag) {\n if (!actual.keyIsPrimitive) {\n actualIsExtraneous = compareComplexShape(actual.key, initialExpected.key) !== UNEQUAL\n }\n\n actual = lhsFork.shared()\n }\n }\n }\n\n if (actualIsExtraneous && !expectedIsMissing) {\n return {\n actualIsExtraneous: true,\n lhsRecursor: lhsFork.recursor,\n rhsRecursor: recursorUtils.unshift(rhsFork.recursor, initialExpected),\n }\n }\n\n if (expectedIsMissing && !actualIsExtraneous) {\n return {\n expectedIsMissing: true,\n lhsRecursor: recursorUtils.unshift(lhsFork.recursor, this),\n rhsRecursor: rhsFork.recursor,\n }\n }\n\n let mustRecurse = false\n if (!this.keyIsPrimitive && !initialExpected.keyIsPrimitive) {\n if (this.valueIsPrimitive || initialExpected.valueIsPrimitive) {\n mustRecurse = this.value.compare(initialExpected.value) !== UNEQUAL\n } else {\n mustRecurse = compareComplexShape(this.value, initialExpected.value) !== UNEQUAL\n }\n }\n\n return {\n mustRecurse,\n isUnequal: !mustRecurse,\n lhsRecursor: lhsFork.recursor,\n rhsRecursor: rhsFork.recursor,\n }\n }\n\n serialize () {\n return [this.keyIsPrimitive, this.valueIsPrimitive]\n }\n}\nObject.defineProperty(MapEntry.prototype, 'isMapEntry', { value: true })\nObject.defineProperty(MapEntry.prototype, 'tag', { value: tag })\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (value) {\n return new BigIntValue(value)\n}\nexports.describe = describe\n\nexports.deserialize = describe\n\nconst tag = Symbol('BigIntValue')\nexports.tag = tag\n\nclass BigIntValue {\n constructor (value) {\n this.value = value\n }\n\n compare (expected) {\n return expected.tag === tag && Object.is(this.value, expected.value)\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n formatDeep (theme) {\n return lineBuilder.single(formatUtils.wrap(theme.bigInt, `${this.value}n`))\n }\n\n serialize () {\n return this.value\n }\n}\nObject.defineProperty(BigIntValue.prototype, 'isPrimitive', { value: true })\nObject.defineProperty(BigIntValue.prototype, 'tag', { value: tag })\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (value) {\n return new BooleanValue(value)\n}\nexports.describe = describe\n\nexports.deserialize = describe\n\nconst tag = Symbol('BooleanValue')\nexports.tag = tag\n\nclass BooleanValue {\n constructor (value) {\n this.value = value\n }\n\n compare (expected) {\n return this.tag === expected.tag && this.value === expected.value\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n formatDeep (theme) {\n return lineBuilder.single(formatUtils.wrap(theme.boolean, this.value === true ? 'true' : 'false'))\n }\n\n serialize () {\n return this.value\n }\n}\nObject.defineProperty(BooleanValue.prototype, 'isPrimitive', { value: true })\nObject.defineProperty(BooleanValue.prototype, 'tag', { value: tag })\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe () {\n return new NullValue()\n}\nexports.describe = describe\n\nexports.deserialize = describe\n\nconst tag = Symbol('NullValue')\nexports.tag = tag\n\nclass NullValue {\n compare (expected) {\n return expected.tag === tag\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n formatDeep (theme) {\n return lineBuilder.single(formatUtils.wrap(theme.null, 'null'))\n }\n}\nObject.defineProperty(NullValue.prototype, 'isPrimitive', { value: true })\nObject.defineProperty(NullValue.prototype, 'tag', { value: tag })\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe (value) {\n return new NumberValue(value)\n}\nexports.describe = describe\n\nexports.deserialize = describe\n\nconst tag = Symbol('NumberValue')\nexports.tag = tag\n\nclass NumberValue {\n constructor (value) {\n this.value = value\n }\n\n compare (expected) {\n return expected.tag === tag && Object.is(this.value, expected.value)\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n formatDeep (theme) {\n const string = Object.is(this.value, -0) ? '-0' : String(this.value)\n return lineBuilder.single(formatUtils.wrap(theme.number, string))\n }\n\n serialize () {\n return this.value\n }\n}\nObject.defineProperty(NumberValue.prototype, 'isPrimitive', { value: true })\nObject.defineProperty(NumberValue.prototype, 'tag', { value: tag })\n","'use strict'\n\nconst constants = require('../constants')\nconst formatUtils = require('../formatUtils')\nconst lineBuilder = require('../lineBuilder')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction describe () {\n return new UndefinedValue()\n}\nexports.describe = describe\n\nexports.deserialize = describe\n\nconst tag = Symbol('UndefinedValue')\nexports.tag = tag\n\nclass UndefinedValue {\n compare (expected) {\n return expected.tag === tag\n ? DEEP_EQUAL\n : UNEQUAL\n }\n\n formatDeep (theme) {\n return lineBuilder.single(formatUtils.wrap(theme.undefined, 'undefined'))\n }\n}\nObject.defineProperty(UndefinedValue.prototype, 'isPrimitive', { value: true })\nObject.defineProperty(UndefinedValue.prototype, 'tag', { value: tag })\n","'use strict'\n\nconst Registry = require('./Registry')\nconst argumentsValue = require('./complexValues/arguments')\nconst arrayBufferValue = require('./complexValues/arrayBuffer')\nconst boxedValue = require('./complexValues/boxed')\nconst dataViewValue = require('./complexValues/dataView')\nconst dateValue = require('./complexValues/date')\nconst errorValue = require('./complexValues/error')\nconst functionValue = require('./complexValues/function')\nconst globalValue = require('./complexValues/global')\nconst mapValue = require('./complexValues/map')\nconst objectValue = require('./complexValues/object')\nconst promiseValue = require('./complexValues/promise')\nconst regexpValue = require('./complexValues/regexp')\nconst setValue = require('./complexValues/set')\nconst typedArrayValue = require('./complexValues/typedArray')\n\nconst getCtor = require('./getCtor')\nconst getStringTag = require('./getStringTag')\nconst itemDescriptor = require('./metaDescriptors/item')\nconst mapEntryDescriptor = require('./metaDescriptors/mapEntry')\nconst propertyDescriptor = require('./metaDescriptors/property')\n\nconst pluginRegistry = require('./pluginRegistry')\nconst bigIntValue = require('./primitiveValues/bigInt')\nconst booleanValue = require('./primitiveValues/boolean')\nconst nullValue = require('./primitiveValues/null')\nconst numberValue = require('./primitiveValues/number')\nconst stringValue = require('./primitiveValues/string')\nconst symbolValue = require('./primitiveValues/symbol')\nconst undefinedValue = require('./primitiveValues/undefined')\n\nconst SpecializedComplexes = new Map([\n ['Arguments', argumentsValue.describe],\n ['ArrayBuffer', arrayBufferValue.describe],\n ['DataView', dataViewValue.describe],\n ['Date', dateValue.describe],\n ['Error', errorValue.describe],\n ['Float32Array', typedArrayValue.describe],\n ['Float64Array', typedArrayValue.describe],\n ['Function', functionValue.describe],\n ['GeneratorFunction', functionValue.describe],\n ['global', globalValue.describe],\n ['Int16Array', typedArrayValue.describe],\n ['Int32Array', typedArrayValue.describe],\n ['Int8Array', typedArrayValue.describe],\n ['Map', mapValue.describe],\n ['Promise', promiseValue.describe],\n ['RegExp', regexpValue.describe],\n ['Set', setValue.describe],\n ['Uint16Array', typedArrayValue.describe],\n ['Uint32Array', typedArrayValue.describe],\n ['Uint8Array', typedArrayValue.describe],\n ['Uint8ClampedArray', typedArrayValue.describe],\n])\n\nfunction describePrimitive (value) {\n if (value === null) return nullValue.describe()\n if (value === undefined) return undefinedValue.describe()\n if (value === true || value === false) return booleanValue.describe(value)\n\n const type = typeof value\n if (type === 'bigint') return bigIntValue.describe(value)\n if (type === 'number') return numberValue.describe(value)\n if (type === 'string') return stringValue.describe(value)\n if (type === 'symbol') return symbolValue.describe(value)\n\n return null\n}\n\nfunction unboxComplex (tag, complex) {\n // Try to unbox by calling `valueOf()`. `describePrimitive()` will return\n // `null` if the resulting value is not a primitive, in which case it's\n // ignored.\n if (typeof complex.valueOf === 'function') {\n const value = complex.valueOf()\n if (value !== complex) return describePrimitive(value)\n }\n\n return null\n}\n\nfunction registerPlugins (plugins) {\n if (!Array.isArray(plugins) || plugins.length === 0) return () => null\n\n const tryFns = pluginRegistry.getTryDescribeValues(plugins)\n return (value, stringTag, ctor) => {\n for (const tryDescribeValue of tryFns) {\n const describeValue = tryDescribeValue(value, stringTag, ctor)\n if (describeValue) return describeValue\n }\n\n return null\n }\n}\n\nfunction describeComplex (value, registry, tryPlugins, describeAny, describeItem, describeMapEntry, describeProperty) {\n if (registry.has(value)) return registry.get(value)\n\n const stringTag = getStringTag(value)\n const ctor = getCtor(stringTag, value)\n const pointer = registry.alloc(value)\n\n let unboxed\n let describeValue = tryPlugins(value, stringTag, ctor)\n if (describeValue === null) {\n if (SpecializedComplexes.has(stringTag)) {\n describeValue = SpecializedComplexes.get(stringTag)\n } else {\n unboxed = unboxComplex(stringTag, value)\n if (unboxed !== null) {\n describeValue = boxedValue.describe\n } else {\n describeValue = objectValue.describe\n }\n }\n }\n\n const descriptor = describeValue({\n ctor,\n describeAny,\n describeItem,\n describeMapEntry,\n describeProperty,\n pointer: pointer.index,\n stringTag,\n unboxed,\n value,\n })\n pointer.descriptor = descriptor\n return descriptor\n}\n\nconst describeItem = (index, valueDescriptor) => {\n return valueDescriptor.isPrimitive === true\n ? itemDescriptor.describePrimitive(index, valueDescriptor)\n : itemDescriptor.describeComplex(index, valueDescriptor)\n}\n\nconst describeMapEntry = (keyDescriptor, valueDescriptor) => {\n return mapEntryDescriptor.describe(keyDescriptor, valueDescriptor)\n}\n\nfunction describe (value, options) {\n const primitive = describePrimitive(value)\n if (primitive !== null) return primitive\n\n const registry = new Registry()\n const tryPlugins = registerPlugins(options && options.plugins)\n const curriedComplex = c => {\n return describeComplex(c, registry, tryPlugins, describeAny, describeItem, describeMapEntry, describeProperty)\n }\n\n const describeAny = any => {\n const descriptor = describePrimitive(any)\n return descriptor !== null\n ? descriptor\n : curriedComplex(any)\n }\n\n const describeProperty = (key, valueDescriptor) => {\n const keyDescriptor = describePrimitive(key)\n return valueDescriptor.isPrimitive === true\n ? propertyDescriptor.describePrimitive(keyDescriptor, valueDescriptor)\n : propertyDescriptor.describeComplex(keyDescriptor, valueDescriptor)\n }\n\n return curriedComplex(value)\n}\nmodule.exports = describe\n","'use strict'\n\nconst argumentsObject = require('./complexValues/arguments').tag\nconst constants = require('./constants')\n\nconst AMBIGUOUS = constants.AMBIGUOUS\nconst SHALLOW_EQUAL = constants.SHALLOW_EQUAL\n\nfunction shouldCompareDeep (result, lhs, rhs) {\n if (result === SHALLOW_EQUAL) return true\n if (result !== AMBIGUOUS) return false\n\n // Properties are only ambiguous if they have symbol keys. These properties\n // must be compared in an order-insensitive manner.\n return lhs.tag === argumentsObject || lhs.isProperty === true\n}\nmodule.exports = shouldCompareDeep\n","'use strict'\n\nconst constants = require('./constants')\nconst recursorUtils = require('./recursorUtils')\n\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst SHALLOW_EQUAL = constants.SHALLOW_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nclass Comparable {\n constructor (properties) {\n this.properties = properties\n this.ordered = properties.slice()\n }\n\n createRecursor () {\n const length = this.ordered.length\n let index = 0\n return () => {\n if (index === length) return null\n\n return this.ordered[index++]\n }\n }\n\n compare (expected) {\n if (this.properties.length !== expected.properties.length) return UNEQUAL\n\n // Compare property keys, reordering the expected properties in the process\n // so values can be compared if all keys are equal.\n const ordered = []\n const processed = new Set()\n for (const property of this.properties) {\n let extraneous = true\n for (const other of expected.properties) {\n if (processed.has(other.key)) continue\n\n if (property.key.compare(other.key) === DEEP_EQUAL) {\n extraneous = false\n processed.add(other.key)\n ordered.push(other)\n break\n }\n }\n\n if (extraneous) return UNEQUAL\n }\n expected.ordered = ordered\n\n return SHALLOW_EQUAL\n }\n\n prepareDiff (expected) {\n // Reorder the expected properties before recursion starts.\n const missingProperties = []\n const ordered = []\n const processed = new Set()\n for (const other of expected.properties) {\n let missing = true\n for (const property of this.properties) {\n if (processed.has(property.key)) continue\n\n if (property.key.compare(other.key) === DEEP_EQUAL) {\n missing = false\n processed.add(property.key)\n ordered.push(other)\n break\n }\n }\n\n if (missing) {\n missingProperties.push(other)\n }\n }\n expected.ordered = ordered.concat(missingProperties)\n\n return { mustRecurse: true }\n }\n}\nObject.defineProperty(Comparable.prototype, 'isSymbolPropertiesComparable', { value: true })\nexports.Comparable = Comparable\n\nclass Collector {\n constructor (firstProperty, recursor) {\n this.properties = [firstProperty]\n this.recursor = recursor\n this.remainder = null\n }\n\n collectAll () {\n do {\n const next = this.recursor()\n if (next && next.isProperty === true) { // All properties will have symbol keys\n this.properties.push(next)\n } else {\n return next\n }\n } while (true)\n }\n\n createRecursor () {\n return recursorUtils.singleValue(new Comparable(this.properties))\n }\n}\nObject.defineProperty(Collector.prototype, 'isSymbolPropertiesCollector', { value: true })\nexports.Collector = Collector\n","'use strict'\n\nconst Circular = require('./Circular')\nconst constants = require('./constants')\nconst describe = require('./describe')\nconst recursorUtils = require('./recursorUtils')\nconst shouldCompareDeep = require('./shouldCompareDeep')\nconst symbolProperties = require('./symbolProperties')\n\nconst AMBIGUOUS = constants.AMBIGUOUS\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\n\nfunction shortcircuitPrimitive (value) {\n if (value === null || value === undefined || value === true || value === false) return true\n\n const type = typeof value\n if (type === 'string' || type === 'symbol') return true\n // Don't shortcircuit NaN values\n if (type === 'number') return !isNaN(value)\n\n return false\n}\n\nfunction compareDescriptors (lhs, rhs) {\n const lhsCircular = new Circular()\n const rhsCircular = new Circular()\n\n const lhsStack = []\n const rhsStack = []\n let topIndex = -1\n\n do {\n let result\n if (lhsCircular.has(lhs)) {\n result = lhsCircular.get(lhs) === rhsCircular.get(rhs)\n ? DEEP_EQUAL\n : UNEQUAL\n } else if (rhsCircular.has(rhs)) {\n result = UNEQUAL\n } else {\n result = lhs.compare(rhs)\n }\n\n if (result === UNEQUAL) return false\n if (result !== DEEP_EQUAL) {\n if (!shouldCompareDeep(result, lhs, rhs)) return false\n\n if (result === AMBIGUOUS && lhs.isProperty === true) {\n // Replace both sides by a pseudo-descriptor which collects symbol\n // properties instead.\n lhs = new symbolProperties.Collector(lhs, lhsStack[topIndex].recursor)\n rhs = new symbolProperties.Collector(rhs, rhsStack[topIndex].recursor)\n // Replace the current recursors so they can continue correctly after\n // the collectors have been \"compared\". This is necessary since the\n // collectors eat the first value after the last symbol property.\n lhsStack[topIndex].recursor = recursorUtils.unshift(lhsStack[topIndex].recursor, lhs.collectAll())\n rhsStack[topIndex].recursor = recursorUtils.unshift(rhsStack[topIndex].recursor, rhs.collectAll())\n }\n\n lhsCircular.add(lhs)\n rhsCircular.add(rhs)\n\n lhsStack.push({ subject: lhs, recursor: lhs.createRecursor() })\n rhsStack.push({ subject: rhs, recursor: rhs.createRecursor() })\n topIndex++\n }\n\n while (topIndex >= 0) {\n lhs = lhsStack[topIndex].recursor()\n rhs = rhsStack[topIndex].recursor()\n if (lhs !== null && rhs !== null) {\n break\n }\n\n if (lhs === null && rhs === null) {\n const lhsRecord = lhsStack.pop()\n const rhsRecord = rhsStack.pop()\n lhsCircular.delete(lhsRecord.subject)\n rhsCircular.delete(rhsRecord.subject)\n topIndex--\n } else {\n return false\n }\n }\n } while (topIndex >= 0)\n\n return true\n}\nexports.compareDescriptors = compareDescriptors\n\nfunction compare (actual, expected, options) {\n if (Object.is(actual, expected)) return { pass: true }\n // Primitive values should be the same, so if actual or expected is primitive\n // then the values will never compare.\n if (shortcircuitPrimitive(actual) || shortcircuitPrimitive(expected)) return { pass: false }\n\n actual = describe(actual, options)\n expected = describe(expected, options)\n const pass = compareDescriptors(actual, expected)\n return { actual, expected, pass }\n}\nexports.compare = compare\n","'use strict'\n\nclass Indenter {\n constructor (level, step) {\n this.level = level\n this.step = step\n this.value = step.repeat(level)\n }\n\n increase () {\n return new Indenter(this.level + 1, this.step)\n }\n\n decrease () {\n return new Indenter(this.level - 1, this.step)\n }\n\n toString () {\n return this.value\n }\n}\nmodule.exports = Indenter\n","'use strict'\n\nconst Circular = require('./Circular')\nconst Indenter = require('./Indenter')\nconst constants = require('./constants')\nconst describe = require('./describe')\nconst lineBuilder = require('./lineBuilder')\nconst recursorUtils = require('./recursorUtils')\nconst shouldCompareDeep = require('./shouldCompareDeep')\nconst symbolProperties = require('./symbolProperties')\nconst themeUtils = require('./themeUtils')\n\nconst AMBIGUOUS = constants.AMBIGUOUS\nconst DEEP_EQUAL = constants.DEEP_EQUAL\nconst UNEQUAL = constants.UNEQUAL\nconst SHALLOW_EQUAL = constants.SHALLOW_EQUAL\nconst NOOP = Symbol('NOOP')\n\nconst alwaysFormat = () => true\n\nfunction compareComplexShape (lhs, rhs) {\n let result = lhs.compare(rhs)\n if (result === DEEP_EQUAL) return DEEP_EQUAL\n if (result === UNEQUAL || !shouldCompareDeep(result, lhs, rhs)) return UNEQUAL\n\n let collectedSymbolProperties = false\n let lhsRecursor = lhs.createRecursor()\n let rhsRecursor = rhs.createRecursor()\n\n do {\n lhs = lhsRecursor()\n rhs = rhsRecursor()\n\n if (lhs === null && rhs === null) return SHALLOW_EQUAL\n if (lhs === null || rhs === null) return UNEQUAL\n\n result = lhs.compare(rhs)\n if (result === UNEQUAL) return UNEQUAL\n if (\n result === AMBIGUOUS &&\n lhs.isProperty === true && !collectedSymbolProperties &&\n shouldCompareDeep(result, lhs, rhs)\n ) {\n collectedSymbolProperties = true\n const lhsCollector = new symbolProperties.Collector(lhs, lhsRecursor)\n const rhsCollector = new symbolProperties.Collector(rhs, rhsRecursor)\n\n lhsRecursor = recursorUtils.sequence(\n lhsCollector.createRecursor(),\n recursorUtils.unshift(lhsRecursor, lhsCollector.collectAll()))\n rhsRecursor = recursorUtils.sequence(\n rhsCollector.createRecursor(),\n recursorUtils.unshift(rhsRecursor, rhsCollector.collectAll()))\n }\n } while (true)\n}\n\nfunction diffDescriptors (lhs, rhs, options) {\n const theme = themeUtils.normalize(options)\n const invert = options ? options.invert === true : false\n\n const lhsCircular = new Circular()\n const rhsCircular = new Circular()\n const maxDepth = (options && options.maxDepth) || 0\n\n let indent = new Indenter(0, ' ')\n\n const lhsStack = []\n const rhsStack = []\n let topIndex = -1\n\n const buffer = lineBuilder.buffer()\n const diffStack = []\n let diffIndex = -1\n\n const isCircular = descriptor => lhsCircular.has(descriptor) || rhsCircular.has(descriptor)\n\n const format = (builder, subject, circular, depthOffset = 0) => {\n if (diffIndex >= 0 && !diffStack[diffIndex].shouldFormat(subject)) return\n\n if (circular.has(subject)) {\n diffStack[diffIndex].formatter.append(builder.single(theme.circular))\n return\n }\n\n const formatStack = []\n let formatIndex = -1\n\n do {\n if (circular.has(subject)) {\n formatStack[formatIndex].formatter.append(builder.single(theme.circular), subject)\n } else {\n let didFormat = false\n if (typeof subject.formatDeep === 'function') {\n let formatted = subject.formatDeep(themeUtils.applyModifiers(subject, theme), indent)\n if (formatted !== null) {\n didFormat = true\n\n if (formatIndex === -1) {\n formatted = builder.setDefaultGutter(formatted)\n if (diffIndex === -1) {\n buffer.append(formatted)\n } else {\n diffStack[diffIndex].formatter.append(formatted, subject)\n }\n } else {\n formatStack[formatIndex].formatter.append(formatted, subject)\n }\n }\n }\n\n if (!didFormat && typeof subject.formatShallow === 'function') {\n const formatter = subject.formatShallow(themeUtils.applyModifiers(subject, theme), indent)\n const recursor = subject.createRecursor()\n\n if (formatter.increaseIndent && maxDepth > 0 && indent.level === (maxDepth + depthOffset)) {\n const isEmpty = recursor() === null\n let formatted = !isEmpty && typeof formatter.maxDepth === 'function'\n ? formatter.maxDepth()\n : formatter.finalize()\n\n if (formatIndex === -1) {\n formatted = builder.setDefaultGutter(formatted)\n diffStack[diffIndex].formatter.append(formatted, subject)\n } else {\n formatStack[formatIndex].formatter.append(formatted, subject)\n }\n } else {\n formatStack.push({\n formatter,\n recursor,\n decreaseIndent: formatter.increaseIndent,\n shouldFormat: formatter.shouldFormat || alwaysFormat,\n subject,\n })\n formatIndex++\n\n if (formatter.increaseIndent) indent = indent.increase()\n circular.add(subject)\n }\n }\n }\n\n while (formatIndex >= 0) {\n do {\n subject = formatStack[formatIndex].recursor()\n } while (subject && !formatStack[formatIndex].shouldFormat(subject))\n\n if (subject) {\n break\n }\n\n const record = formatStack.pop()\n formatIndex--\n if (record.decreaseIndent) indent = indent.decrease()\n circular.delete(record.subject)\n\n let formatted = record.formatter.finalize()\n if (formatIndex === -1) {\n formatted = builder.setDefaultGutter(formatted)\n if (diffIndex === -1) {\n buffer.append(formatted)\n } else {\n diffStack[diffIndex].formatter.append(formatted, record.subject)\n }\n } else {\n formatStack[formatIndex].formatter.append(formatted, record.subject)\n }\n }\n } while (formatIndex >= 0)\n }\n\n do {\n let compareResult = NOOP\n if (lhsCircular.has(lhs)) {\n compareResult = lhsCircular.get(lhs) === rhsCircular.get(rhs)\n ? DEEP_EQUAL\n : UNEQUAL\n } else if (rhsCircular.has(rhs)) {\n compareResult = UNEQUAL\n }\n\n let firstPassSymbolProperty = false\n if (lhs.isProperty === true) {\n compareResult = lhs.compare(rhs)\n if (compareResult === AMBIGUOUS) {\n const parent = lhsStack[topIndex].subject\n firstPassSymbolProperty = parent.isSymbolPropertiesCollector !== true && parent.isSymbolPropertiesComparable !== true\n }\n }\n\n let didFormat = false\n let mustRecurse = false\n if (compareResult !== DEEP_EQUAL && !firstPassSymbolProperty && typeof lhs.prepareDiff === 'function') {\n const lhsRecursor = topIndex === -1 ? null : lhsStack[topIndex].recursor\n const rhsRecursor = topIndex === -1 ? null : rhsStack[topIndex].recursor\n\n const instructions = lhs.prepareDiff(\n rhs,\n lhsRecursor,\n rhsRecursor,\n compareComplexShape,\n isCircular)\n\n if (instructions !== null) {\n if (topIndex >= 0) {\n if (typeof instructions.lhsRecursor === 'function') {\n lhsStack[topIndex].recursor = instructions.lhsRecursor\n }\n if (typeof instructions.rhsRecursor === 'function') {\n rhsStack[topIndex].recursor = instructions.rhsRecursor\n }\n }\n\n if (instructions.compareResult) {\n compareResult = instructions.compareResult\n }\n if (instructions.mustRecurse === true) {\n mustRecurse = true\n } else {\n if (instructions.actualIsExtraneous === true) {\n format(lineBuilder.actual, lhs, lhsCircular)\n didFormat = true\n } else if (instructions.multipleAreExtraneous === true) {\n for (const extraneous of instructions.descriptors) {\n format(lineBuilder.actual, extraneous, lhsCircular)\n }\n didFormat = true\n } else if (instructions.expectedIsMissing === true) {\n format(lineBuilder.expected, rhs, rhsCircular)\n didFormat = true\n } else if (instructions.multipleAreMissing === true) {\n for (const missing of instructions.descriptors) {\n format(lineBuilder.expected, missing, rhsCircular)\n }\n didFormat = true\n } else if (instructions.isUnequal === true) {\n format(lineBuilder.actual, lhs, lhsCircular)\n format(lineBuilder.expected, rhs, rhsCircular)\n didFormat = true\n } else if (!instructions.compareResult) {\n // TODO: Throw a useful, custom error\n throw new Error('Illegal result of prepareDiff()')\n }\n }\n }\n }\n\n if (!didFormat) {\n if (compareResult === NOOP) {\n compareResult = lhs.compare(rhs)\n }\n\n if (!mustRecurse) {\n mustRecurse = shouldCompareDeep(compareResult, lhs, rhs)\n }\n\n if (compareResult === DEEP_EQUAL) {\n format(lineBuilder, lhs, lhsCircular)\n } else if (mustRecurse) {\n if (compareResult === AMBIGUOUS && lhs.isProperty === true) {\n // Replace both sides by a pseudo-descriptor which collects symbol\n // properties instead.\n lhs = new symbolProperties.Collector(lhs, lhsStack[topIndex].recursor)\n rhs = new symbolProperties.Collector(rhs, rhsStack[topIndex].recursor)\n // Replace the current recursors so they can continue correctly after\n // the collectors have been \"compared\". This is necessary since the\n // collectors eat the first value after the last symbol property.\n lhsStack[topIndex].recursor = recursorUtils.unshift(lhsStack[topIndex].recursor, lhs.collectAll())\n rhsStack[topIndex].recursor = recursorUtils.unshift(rhsStack[topIndex].recursor, rhs.collectAll())\n }\n\n if (typeof lhs.diffShallow === 'function') {\n const formatter = lhs.diffShallow(rhs, themeUtils.applyModifiers(lhs, theme), indent)\n diffStack.push({\n formatter,\n origin: lhs,\n decreaseIndent: formatter.increaseIndent,\n exceedsMaxDepth: formatter.increaseIndent && maxDepth > 0 && indent.level >= maxDepth,\n shouldFormat: formatter.shouldFormat || alwaysFormat,\n })\n diffIndex++\n\n if (formatter.increaseIndent) indent = indent.increase()\n } else if (typeof lhs.formatShallow === 'function') {\n const formatter = lhs.formatShallow(themeUtils.applyModifiers(lhs, theme), indent)\n diffStack.push({\n formatter,\n decreaseIndent: formatter.increaseIndent,\n exceedsMaxDepth: formatter.increaseIndent && maxDepth > 0 && indent.level >= maxDepth,\n shouldFormat: formatter.shouldFormat || alwaysFormat,\n subject: lhs,\n })\n diffIndex++\n\n if (formatter.increaseIndent) indent = indent.increase()\n }\n\n lhsCircular.add(lhs)\n rhsCircular.add(rhs)\n\n lhsStack.push({ diffIndex, subject: lhs, recursor: lhs.createRecursor() })\n rhsStack.push({ diffIndex, subject: rhs, recursor: rhs.createRecursor() })\n topIndex++\n } else {\n const diffed = typeof lhs.diffDeep === 'function'\n ? lhs.diffDeep(rhs, themeUtils.applyModifiers(lhs, theme), indent, invert)\n : null\n\n if (diffed === null) {\n format(lineBuilder.actual, lhs, lhsCircular)\n format(lineBuilder.expected, rhs, rhsCircular)\n } else {\n if (diffIndex === -1) {\n buffer.append(diffed)\n } else {\n diffStack[diffIndex].formatter.append(diffed, lhs)\n }\n }\n }\n }\n\n while (topIndex >= 0) {\n lhs = lhsStack[topIndex].recursor()\n rhs = rhsStack[topIndex].recursor()\n\n if (lhs !== null && rhs !== null) {\n break\n }\n\n if (lhs === null && rhs === null) {\n const lhsRecord = lhsStack.pop()\n const rhsRecord = rhsStack.pop()\n lhsCircular.delete(lhsRecord.subject)\n rhsCircular.delete(rhsRecord.subject)\n topIndex--\n\n if (lhsRecord.diffIndex === diffIndex) {\n const record = diffStack.pop()\n diffIndex--\n if (record.decreaseIndent) indent = indent.decrease()\n\n let formatted = record.formatter.finalize()\n if (record.exceedsMaxDepth && !formatted.hasGutter) {\n // The record exceeds the max depth, but contains no actual diff.\n // Discard the potentially deep formatting and format just the\n // original subject.\n const subject = lhsRecord.subject\n const formatter = subject.formatShallow(themeUtils.applyModifiers(subject, theme), indent)\n const isEmpty = subject.createRecursor()() === null\n formatted = !isEmpty && typeof formatter.maxDepth === 'function'\n ? formatter.maxDepth()\n : formatter.finalize()\n }\n\n if (diffIndex === -1) {\n buffer.append(formatted)\n } else {\n diffStack[diffIndex].formatter.append(formatted, record.subject)\n }\n }\n } else {\n let builder, circular, stack, subject\n if (lhs === null) {\n builder = lineBuilder.expected\n circular = rhsCircular\n stack = rhsStack\n subject = rhs\n } else {\n builder = lineBuilder.actual\n circular = lhsCircular\n stack = lhsStack\n subject = lhs\n }\n\n do {\n format(builder, subject, circular, indent.level)\n subject = stack[topIndex].recursor()\n } while (subject !== null)\n }\n }\n } while (topIndex >= 0)\n\n return buffer.toString({ diff: true, invert, theme })\n}\nexports.diffDescriptors = diffDescriptors\n\nfunction diff (actual, expected, options) {\n return diffDescriptors(describe(actual, options), describe(expected, options), options)\n}\nexports.diff = diff\n","'use strict'\n\nconst Circular = require('./Circular')\nconst Indenter = require('./Indenter')\nconst describe = require('./describe')\nconst lineBuilder = require('./lineBuilder')\nconst themeUtils = require('./themeUtils')\n\nconst alwaysFormat = () => true\nconst fixedIndent = new Indenter(0, ' ')\n\nfunction formatDescriptor (subject, options) {\n const theme = themeUtils.normalize(options)\n if (subject.isPrimitive === true) {\n const formatted = subject.formatDeep(themeUtils.applyModifiers(subject, theme), fixedIndent)\n return formatted.toString({ diff: false })\n }\n\n const circular = new Circular()\n const maxDepth = (options && options.maxDepth) || 0\n\n let indent = fixedIndent\n\n const buffer = lineBuilder.buffer()\n const stack = []\n let topIndex = -1\n\n do {\n if (circular.has(subject)) {\n stack[topIndex].formatter.append(lineBuilder.single(theme.circular), subject)\n } else {\n let didFormat = false\n if (typeof subject.formatDeep === 'function') {\n const formatted = subject.formatDeep(themeUtils.applyModifiers(subject, theme), indent)\n if (formatted !== null) {\n didFormat = true\n if (topIndex === -1) {\n buffer.append(formatted)\n } else {\n stack[topIndex].formatter.append(formatted, subject)\n }\n }\n }\n\n if (!didFormat && typeof subject.formatShallow === 'function') {\n const formatter = subject.formatShallow(themeUtils.applyModifiers(subject, theme), indent)\n const recursor = subject.createRecursor()\n\n if (formatter.increaseIndent && maxDepth > 0 && indent.level === maxDepth) {\n const isEmpty = recursor() === null\n const formatted = !isEmpty && typeof formatter.maxDepth === 'function'\n ? formatter.maxDepth()\n : formatter.finalize()\n stack[topIndex].formatter.append(formatted, subject)\n } else {\n stack.push({\n formatter,\n recursor,\n decreaseIndent: formatter.increaseIndent,\n shouldFormat: formatter.shouldFormat || alwaysFormat,\n subject,\n })\n topIndex++\n\n if (formatter.increaseIndent) indent = indent.increase()\n circular.add(subject)\n }\n }\n }\n\n while (topIndex >= 0) {\n do {\n subject = stack[topIndex].recursor()\n } while (subject && !stack[topIndex].shouldFormat(subject))\n\n if (subject) {\n break\n }\n\n const record = stack.pop()\n topIndex--\n if (record.decreaseIndent) indent = indent.decrease()\n circular.delete(record.subject)\n\n const formatted = record.formatter.finalize()\n if (topIndex === -1) {\n buffer.append(formatted)\n } else {\n stack[topIndex].formatter.append(formatted, record.subject)\n }\n }\n } while (topIndex >= 0)\n\n return buffer.toString({ diff: false })\n}\nexports.formatDescriptor = formatDescriptor\n\nfunction format (value, options) {\n return formatDescriptor(describe(value, options), options)\n}\nexports.format = format\n","/*\n * JavaScript MD5\n * https://github.com/blueimp/JavaScript-MD5\n *\n * Copyright 2011, Sebastian Tschan\n * https://blueimp.net\n *\n * Licensed under the MIT license:\n * https://opensource.org/licenses/MIT\n *\n * Based on\n * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message\n * Digest Algorithm, as defined in RFC 1321.\n * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n * Distributed under the BSD License\n * See http://pajhome.org.uk/crypt/md5 for more info.\n */\n\n/* global define */\n\n/* eslint-disable strict */\n\n;(function ($) {\n 'use strict'\n\n /**\n * Add integers, wrapping at 2^32.\n * This uses 16-bit operations internally to work around bugs in interpreters.\n *\n * @param {number} x First integer\n * @param {number} y Second integer\n * @returns {number} Sum\n */\n function safeAdd(x, y) {\n var lsw = (x & 0xffff) + (y & 0xffff)\n var msw = (x >> 16) + (y >> 16) + (lsw >> 16)\n return (msw << 16) | (lsw & 0xffff)\n }\n\n /**\n * Bitwise rotate a 32-bit number to the left.\n *\n * @param {number} num 32-bit number\n * @param {number} cnt Rotation count\n * @returns {number} Rotated number\n */\n function bitRotateLeft(num, cnt) {\n return (num << cnt) | (num >>> (32 - cnt))\n }\n\n /**\n * Basic operation the algorithm uses.\n *\n * @param {number} q q\n * @param {number} a a\n * @param {number} b b\n * @param {number} x x\n * @param {number} s s\n * @param {number} t t\n * @returns {number} Result\n */\n function md5cmn(q, a, b, x, s, t) {\n return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b)\n }\n /**\n * Basic operation the algorithm uses.\n *\n * @param {number} a a\n * @param {number} b b\n * @param {number} c c\n * @param {number} d d\n * @param {number} x x\n * @param {number} s s\n * @param {number} t t\n * @returns {number} Result\n */\n function md5ff(a, b, c, d, x, s, t) {\n return md5cmn((b & c) | (~b & d), a, b, x, s, t)\n }\n /**\n * Basic operation the algorithm uses.\n *\n * @param {number} a a\n * @param {number} b b\n * @param {number} c c\n * @param {number} d d\n * @param {number} x x\n * @param {number} s s\n * @param {number} t t\n * @returns {number} Result\n */\n function md5gg(a, b, c, d, x, s, t) {\n return md5cmn((b & d) | (c & ~d), a, b, x, s, t)\n }\n /**\n * Basic operation the algorithm uses.\n *\n * @param {number} a a\n * @param {number} b b\n * @param {number} c c\n * @param {number} d d\n * @param {number} x x\n * @param {number} s s\n * @param {number} t t\n * @returns {number} Result\n */\n function md5hh(a, b, c, d, x, s, t) {\n return md5cmn(b ^ c ^ d, a, b, x, s, t)\n }\n /**\n * Basic operation the algorithm uses.\n *\n * @param {number} a a\n * @param {number} b b\n * @param {number} c c\n * @param {number} d d\n * @param {number} x x\n * @param {number} s s\n * @param {number} t t\n * @returns {number} Result\n */\n function md5ii(a, b, c, d, x, s, t) {\n return md5cmn(c ^ (b | ~d), a, b, x, s, t)\n }\n\n /**\n * Calculate the MD5 of an array of little-endian words, and a bit length.\n *\n * @param {Array} x Array of little-endian words\n * @param {number} len Bit length\n * @returns {Array} MD5 Array\n */\n function binlMD5(x, len) {\n /* append padding */\n x[len >> 5] |= 0x80 << len % 32\n x[(((len + 64) >>> 9) << 4) + 14] = len\n\n var i\n var olda\n var oldb\n var oldc\n var oldd\n var a = 1732584193\n var b = -271733879\n var c = -1732584194\n var d = 271733878\n\n for (i = 0; i < x.length; i += 16) {\n olda = a\n oldb = b\n oldc = c\n oldd = d\n\n a = md5ff(a, b, c, d, x[i], 7, -680876936)\n d = md5ff(d, a, b, c, x[i + 1], 12, -389564586)\n c = md5ff(c, d, a, b, x[i + 2], 17, 606105819)\n b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330)\n a = md5ff(a, b, c, d, x[i + 4], 7, -176418897)\n d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426)\n c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341)\n b = md5ff(b, c, d, a, x[i + 7], 22, -45705983)\n a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416)\n d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417)\n c = md5ff(c, d, a, b, x[i + 10], 17, -42063)\n b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162)\n a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682)\n d = md5ff(d, a, b, c, x[i + 13], 12, -40341101)\n c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290)\n b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329)\n\n a = md5gg(a, b, c, d, x[i + 1], 5, -165796510)\n d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632)\n c = md5gg(c, d, a, b, x[i + 11], 14, 643717713)\n b = md5gg(b, c, d, a, x[i], 20, -373897302)\n a = md5gg(a, b, c, d, x[i + 5], 5, -701558691)\n d = md5gg(d, a, b, c, x[i + 10], 9, 38016083)\n c = md5gg(c, d, a, b, x[i + 15], 14, -660478335)\n b = md5gg(b, c, d, a, x[i + 4], 20, -405537848)\n a = md5gg(a, b, c, d, x[i + 9], 5, 568446438)\n d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690)\n c = md5gg(c, d, a, b, x[i + 3], 14, -187363961)\n b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501)\n a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467)\n d = md5gg(d, a, b, c, x[i + 2], 9, -51403784)\n c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473)\n b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734)\n\n a = md5hh(a, b, c, d, x[i + 5], 4, -378558)\n d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463)\n c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562)\n b = md5hh(b, c, d, a, x[i + 14], 23, -35309556)\n a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060)\n d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353)\n c = md5hh(c, d, a, b, x[i + 7], 16, -155497632)\n b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640)\n a = md5hh(a, b, c, d, x[i + 13], 4, 681279174)\n d = md5hh(d, a, b, c, x[i], 11, -358537222)\n c = md5hh(c, d, a, b, x[i + 3], 16, -722521979)\n b = md5hh(b, c, d, a, x[i + 6], 23, 76029189)\n a = md5hh(a, b, c, d, x[i + 9], 4, -640364487)\n d = md5hh(d, a, b, c, x[i + 12], 11, -421815835)\n c = md5hh(c, d, a, b, x[i + 15], 16, 530742520)\n b = md5hh(b, c, d, a, x[i + 2], 23, -995338651)\n\n a = md5ii(a, b, c, d, x[i], 6, -198630844)\n d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415)\n c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905)\n b = md5ii(b, c, d, a, x[i + 5], 21, -57434055)\n a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571)\n d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606)\n c = md5ii(c, d, a, b, x[i + 10], 15, -1051523)\n b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799)\n a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359)\n d = md5ii(d, a, b, c, x[i + 15], 10, -30611744)\n c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380)\n b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649)\n a = md5ii(a, b, c, d, x[i + 4], 6, -145523070)\n d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379)\n c = md5ii(c, d, a, b, x[i + 2], 15, 718787259)\n b = md5ii(b, c, d, a, x[i + 9], 21, -343485551)\n\n a = safeAdd(a, olda)\n b = safeAdd(b, oldb)\n c = safeAdd(c, oldc)\n d = safeAdd(d, oldd)\n }\n return [a, b, c, d]\n }\n\n /**\n * Convert an array of little-endian words to a string\n *\n * @param {Array} input MD5 Array\n * @returns {string} MD5 string\n */\n function binl2rstr(input) {\n var i\n var output = ''\n var length32 = input.length * 32\n for (i = 0; i < length32; i += 8) {\n output += String.fromCharCode((input[i >> 5] >>> i % 32) & 0xff)\n }\n return output\n }\n\n /**\n * Convert a raw string to an array of little-endian words\n * Characters >255 have their high-byte silently ignored.\n *\n * @param {string} input Raw input string\n * @returns {Array} Array of little-endian words\n */\n function rstr2binl(input) {\n var i\n var output = []\n output[(input.length >> 2) - 1] = undefined\n for (i = 0; i < output.length; i += 1) {\n output[i] = 0\n }\n var length8 = input.length * 8\n for (i = 0; i < length8; i += 8) {\n output[i >> 5] |= (input.charCodeAt(i / 8) & 0xff) << i % 32\n }\n return output\n }\n\n /**\n * Calculate the MD5 of a raw string\n *\n * @param {string} s Input string\n * @returns {string} Raw MD5 string\n */\n function rstrMD5(s) {\n return binl2rstr(binlMD5(rstr2binl(s), s.length * 8))\n }\n\n /**\n * Calculates the HMAC-MD5 of a key and some data (raw strings)\n *\n * @param {string} key HMAC key\n * @param {string} data Raw input string\n * @returns {string} Raw MD5 string\n */\n function rstrHMACMD5(key, data) {\n var i\n var bkey = rstr2binl(key)\n var ipad = []\n var opad = []\n var hash\n ipad[15] = opad[15] = undefined\n if (bkey.length > 16) {\n bkey = binlMD5(bkey, key.length * 8)\n }\n for (i = 0; i < 16; i += 1) {\n ipad[i] = bkey[i] ^ 0x36363636\n opad[i] = bkey[i] ^ 0x5c5c5c5c\n }\n hash = binlMD5(ipad.concat(rstr2binl(data)), 512 + data.length * 8)\n return binl2rstr(binlMD5(opad.concat(hash), 512 + 128))\n }\n\n /**\n * Convert a raw string to a hex string\n *\n * @param {string} input Raw input string\n * @returns {string} Hex encoded string\n */\n function rstr2hex(input) {\n var hexTab = '0123456789abcdef'\n var output = ''\n var x\n var i\n for (i = 0; i < input.length; i += 1) {\n x = input.charCodeAt(i)\n output += hexTab.charAt((x >>> 4) & 0x0f) + hexTab.charAt(x & 0x0f)\n }\n return output\n }\n\n /**\n * Encode a string as UTF-8\n *\n * @param {string} input Input string\n * @returns {string} UTF8 string\n */\n function str2rstrUTF8(input) {\n return unescape(encodeURIComponent(input))\n }\n\n /**\n * Encodes input string as raw MD5 string\n *\n * @param {string} s Input string\n * @returns {string} Raw MD5 string\n */\n function rawMD5(s) {\n return rstrMD5(str2rstrUTF8(s))\n }\n /**\n * Encodes input string as Hex encoded string\n *\n * @param {string} s Input string\n * @returns {string} Hex encoded string\n */\n function hexMD5(s) {\n return rstr2hex(rawMD5(s))\n }\n /**\n * Calculates the raw HMAC-MD5 for the given key and data\n *\n * @param {string} k HMAC key\n * @param {string} d Input string\n * @returns {string} Raw MD5 string\n */\n function rawHMACMD5(k, d) {\n return rstrHMACMD5(str2rstrUTF8(k), str2rstrUTF8(d))\n }\n /**\n * Calculates the Hex encoded HMAC-MD5 for the given key and data\n *\n * @param {string} k HMAC key\n * @param {string} d Input string\n * @returns {string} Raw MD5 string\n */\n function hexHMACMD5(k, d) {\n return rstr2hex(rawHMACMD5(k, d))\n }\n\n /**\n * Calculates MD5 value for a given string.\n * If a key is provided, calculates the HMAC-MD5 value.\n * Returns a Hex encoded string unless the raw argument is given.\n *\n * @param {string} string Input string\n * @param {string} [key] HMAC key\n * @param {boolean} [raw] Raw output switch\n * @returns {string} MD5 output\n */\n function md5(string, key, raw) {\n if (!key) {\n if (!raw) {\n return hexMD5(string)\n }\n return rawMD5(string)\n }\n if (!raw) {\n return hexHMACMD5(key, string)\n }\n return rawHMACMD5(key, string)\n }\n\n if (typeof define === 'function' && define.amd) {\n define(function () {\n return md5\n })\n } else if (typeof module === 'object' && module.exports) {\n module.exports = md5\n } else {\n $.md5 = md5\n }\n})(this)\n","'use strict';\nconst blueimpMd5 = require('blueimp-md5');\n\nmodule.exports = data => {\n\tif (Array.isArray(data)) {\n\t\tdata = data.join('');\n\t}\n\n\treturn blueimpMd5(data);\n};\n","var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var baseFlatten = require('./_baseFlatten');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\nfunction flattenDeep(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, INFINITY) : [];\n}\n\nmodule.exports = flattenDeep;\n","'use strict'\n\nconst flattenDeep = require('lodash/flattenDeep')\n\n// Indexes are hexadecimal to make reading the binary output easier.\nconst valueTypes = {\n zero: 0x00,\n int8: 0x01, // Note that the hex value equals the number of bytes required\n int16: 0x02, // to store the integer.\n int24: 0x03,\n int32: 0x04,\n int40: 0x05,\n int48: 0x06,\n numberString: 0x07,\n negativeZero: 0x08,\n notANumber: 0x09,\n infinity: 0x0A,\n negativeInfinity: 0x0B,\n bigInt: 0x0C,\n undefined: 0x0D,\n null: 0x0E,\n true: 0x0F,\n false: 0x10,\n utf8: 0x11,\n bytes: 0x12,\n list: 0x13,\n descriptor: 0x14,\n}\n\nconst descriptorSymbol = Symbol('descriptor')\nexports.descriptorSymbol = descriptorSymbol\n\nfunction encodeInteger (type, value) {\n const encoded = Buffer.alloc(type)\n encoded.writeIntLE(value, 0, type)\n return [type, encoded]\n}\n\nfunction encodeValue (value) {\n if (Object.is(value, 0)) return valueTypes.zero\n if (Object.is(value, -0)) return valueTypes.negativeZero\n if (Object.is(value, NaN)) return valueTypes.notANumber\n if (value === Infinity) return valueTypes.infinity\n if (value === -Infinity) return valueTypes.negativeInfinity\n if (value === undefined) return valueTypes.undefined\n if (value === null) return valueTypes.null\n if (value === true) return valueTypes.true\n if (value === false) return valueTypes.false\n\n const type = typeof value\n if (type === 'number') {\n if (Number.isInteger(value)) {\n // The integer types are signed, so int8 can only store 7 bits, int16\n // only 15, etc.\n if (value >= -0x80 && value < 0x80) return encodeInteger(valueTypes.int8, value)\n if (value >= -0x8000 && value < 0x8000) return encodeInteger(valueTypes.int16, value)\n if (value >= -0x800000 && value < 0x800000) return encodeInteger(valueTypes.int24, value)\n if (value >= -0x80000000 && value < 0x80000000) return encodeInteger(valueTypes.int32, value)\n if (value >= -0x8000000000 && value < 0x8000000000) return encodeInteger(valueTypes.int40, value)\n if (value >= -0x800000000000 && value < 0x800000000000) return encodeInteger(valueTypes.int48, value)\n // Fall through to encoding the value as a number string.\n }\n\n const encoded = Buffer.from(String(value), 'utf8')\n return [valueTypes.numberString, encodeValue(encoded.length), encoded]\n }\n\n if (type === 'string') {\n const encoded = Buffer.from(value, 'utf8')\n return [valueTypes.utf8, encodeValue(encoded.length), encoded]\n }\n\n if (type === 'bigint') {\n const encoded = Buffer.from(String(value), 'utf8')\n return [valueTypes.bigInt, encodeValue(encoded.length), encoded]\n }\n\n if (Buffer.isBuffer(value)) {\n return [valueTypes.bytes, encodeValue(value.byteLength), value]\n }\n\n if (Array.isArray(value)) {\n return [\n value[descriptorSymbol] === true ? valueTypes.descriptor : valueTypes.list,\n encodeValue(value.length),\n value.map(x => encodeValue(x)),\n ]\n }\n\n const hex = `0x${type.toString(16).toUpperCase()}`\n throw new TypeError(`Unexpected value with type ${hex}`)\n}\n\nfunction decodeValue (buffer, byteOffset) {\n const type = buffer.readUInt8(byteOffset)\n byteOffset += 1\n\n if (type === valueTypes.zero) return { byteOffset, value: 0 }\n if (type === valueTypes.negativeZero) return { byteOffset, value: -0 }\n if (type === valueTypes.notANumber) return { byteOffset, value: NaN }\n if (type === valueTypes.infinity) return { byteOffset, value: Infinity }\n if (type === valueTypes.negativeInfinity) return { byteOffset, value: -Infinity }\n if (type === valueTypes.undefined) return { byteOffset, value: undefined }\n if (type === valueTypes.null) return { byteOffset, value: null }\n if (type === valueTypes.true) return { byteOffset, value: true }\n if (type === valueTypes.false) return { byteOffset, value: false }\n\n if (\n type === valueTypes.int8 || type === valueTypes.int16 || type === valueTypes.int24 ||\n type === valueTypes.int32 || type === valueTypes.int40 || type === valueTypes.int48\n ) {\n const value = buffer.readIntLE(byteOffset, type)\n byteOffset += type\n return { byteOffset, value }\n }\n\n if (type === valueTypes.numberString || type === valueTypes.utf8 || type === valueTypes.bytes || type === valueTypes.bigInt) {\n const length = decodeValue(buffer, byteOffset)\n const start = length.byteOffset\n const end = start + length.value\n\n if (type === valueTypes.numberString) {\n const value = Number(buffer.toString('utf8', start, end))\n return { byteOffset: end, value }\n }\n\n if (type === valueTypes.utf8) {\n const value = buffer.toString('utf8', start, end)\n return { byteOffset: end, value }\n }\n\n if (type === valueTypes.bigInt) {\n const value = BigInt(buffer.toString('utf8', start, end)) // eslint-disable-line no-undef\n return { byteOffset: end, value }\n }\n\n const value = buffer.slice(start, end)\n return { byteOffset: end, value }\n }\n\n if (type === valueTypes.list || type === valueTypes.descriptor) {\n const length = decodeValue(buffer, byteOffset)\n byteOffset = length.byteOffset\n\n const value = new Array(length.value)\n if (type === valueTypes.descriptor) {\n value[descriptorSymbol] = true\n }\n\n for (let index = 0; index < length.value; index++) {\n const item = decodeValue(buffer, byteOffset)\n byteOffset = item.byteOffset\n value[index] = item.value\n }\n\n return { byteOffset, value }\n }\n\n const hex = `0x${type.toString(16).toUpperCase()}`\n throw new TypeError(`Could not decode type ${hex}`)\n}\n\nfunction buildBuffer (numberOrArray) {\n if (typeof numberOrArray === 'number') {\n const byte = Buffer.alloc(1)\n byte.writeUInt8(numberOrArray)\n return byte\n }\n\n const array = flattenDeep(numberOrArray)\n const buffers = new Array(array.length)\n let byteLength = 0\n for (const [index, element] of array.entries()) {\n if (typeof element === 'number') {\n byteLength += 1\n const byte = Buffer.alloc(1)\n byte.writeUInt8(element)\n buffers[index] = byte\n } else {\n byteLength += element.byteLength\n buffers[index] = element\n }\n }\n return Buffer.concat(buffers, byteLength)\n}\n\nfunction encode (serializerVersion, rootRecord, usedPlugins) {\n const buffers = []\n let byteOffset = 0\n\n const versionHeader = Buffer.alloc(2)\n versionHeader.writeUInt16LE(serializerVersion)\n buffers.push(versionHeader)\n byteOffset += versionHeader.byteLength\n\n const rootOffset = Buffer.alloc(4)\n buffers.push(rootOffset)\n byteOffset += rootOffset.byteLength\n\n const numPlugins = buildBuffer(encodeValue(usedPlugins.size))\n buffers.push(numPlugins)\n byteOffset += numPlugins.byteLength\n\n for (const name of usedPlugins.keys()) {\n const plugin = usedPlugins.get(name)\n const record = buildBuffer([\n encodeValue(name),\n encodeValue(plugin.serializerVersion),\n ])\n buffers.push(record)\n byteOffset += record.byteLength\n }\n\n const queue = [rootRecord]\n const pointers = [rootOffset]\n while (queue.length > 0) {\n pointers.shift().writeUInt32LE(byteOffset, 0)\n\n const record = queue.shift()\n const recordHeader = buildBuffer([\n encodeValue(record.pluginIndex),\n encodeValue(record.id),\n encodeValue(record.children.length),\n ])\n buffers.push(recordHeader)\n byteOffset += recordHeader.byteLength\n\n // Add pointers before encoding the state. This allows, if it ever becomes\n // necessary, for records to be extracted from a buffer without having to\n // parse the (variable length) state field.\n for (const child of record.children) {\n queue.push(child)\n\n const pointer = Buffer.alloc(4)\n pointers.push(pointer)\n buffers.push(pointer)\n byteOffset += 4\n }\n\n const state = buildBuffer(encodeValue(record.state))\n buffers.push(state)\n byteOffset += state.byteLength\n }\n\n return Buffer.concat(buffers, byteOffset)\n}\nexports.encode = encode\n\nfunction decodePlugins (buffer) {\n const $numPlugins = decodeValue(buffer, 0)\n let byteOffset = $numPlugins.byteOffset\n\n const usedPlugins = new Map()\n const lastIndex = $numPlugins.value\n for (let index = 1; index <= lastIndex; index++) {\n const $name = decodeValue(buffer, byteOffset)\n const name = $name.value\n byteOffset = $name.byteOffset\n\n const serializerVersion = decodeValue(buffer, byteOffset).value\n usedPlugins.set(index, { name, serializerVersion })\n }\n\n return usedPlugins\n}\nexports.decodePlugins = decodePlugins\n\nfunction decodeRecord (buffer, byteOffset) {\n const $pluginIndex = decodeValue(buffer, byteOffset)\n const pluginIndex = $pluginIndex.value\n byteOffset = $pluginIndex.byteOffset\n\n const $id = decodeValue(buffer, byteOffset)\n const id = $id.value\n byteOffset = $id.byteOffset\n\n const $numPointers = decodeValue(buffer, byteOffset)\n const numPointers = $numPointers.value\n byteOffset = $numPointers.byteOffset\n\n const pointerAddresses = new Array(numPointers)\n for (let index = 0; index < numPointers; index++) {\n pointerAddresses[index] = buffer.readUInt32LE(byteOffset)\n byteOffset += 4\n }\n\n const state = decodeValue(buffer, byteOffset).value\n return { id, pluginIndex, state, pointerAddresses }\n}\nexports.decodeRecord = decodeRecord\n\nfunction extractVersion (buffer) {\n return buffer.readUInt16LE(0)\n}\nexports.extractVersion = extractVersion\n\nfunction decode (buffer) {\n const rootOffset = buffer.readUInt32LE(2)\n const pluginBuffer = buffer.slice(6, rootOffset)\n const rootRecord = decodeRecord(buffer, rootOffset)\n return { pluginBuffer, rootRecord }\n}\nexports.decode = decode\n","'use strict'\n\nconst UNEQUAL = require('../constants').UNEQUAL\n\nfunction describe (index) {\n return new Pointer(index)\n}\nexports.describe = describe\n\nexports.deserialize = describe\n\nconst tag = Symbol('Pointer')\nexports.tag = tag\n\nclass Pointer {\n constructor (index) {\n this.index = index\n }\n\n // Pointers cannot be compared, and are not expected to be part of the\n // comparisons.\n compare (expected) {\n return UNEQUAL\n }\n\n serialize () {\n return this.index\n }\n}\nObject.defineProperty(Pointer.prototype, 'isPointer', { value: true })\nObject.defineProperty(Pointer.prototype, 'tag', { value: tag })\n","'use strict'\n\nconst md5hex = require('md5-hex')\n\nconst argumentsValue = require('./complexValues/arguments')\nconst arrayBufferValue = require('./complexValues/arrayBuffer')\nconst boxedValue = require('./complexValues/boxed')\nconst dataViewValue = require('./complexValues/dataView')\nconst dateValue = require('./complexValues/date')\nconst errorValue = require('./complexValues/error')\nconst functionValue = require('./complexValues/function')\nconst globalValue = require('./complexValues/global')\nconst mapValue = require('./complexValues/map')\nconst objectValue = require('./complexValues/object')\nconst promiseValue = require('./complexValues/promise')\nconst regexpValue = require('./complexValues/regexp')\nconst setValue = require('./complexValues/set')\nconst typedArrayValue = require('./complexValues/typedArray')\n\nconst encoder = require('./encoder')\n\nconst itemDescriptor = require('./metaDescriptors/item')\nconst mapEntryDescriptor = require('./metaDescriptors/mapEntry')\nconst pointerDescriptor = require('./metaDescriptors/pointer')\nconst propertyDescriptor = require('./metaDescriptors/property')\nconst statsDescriptors = require('./metaDescriptors/stats')\n\nconst pluginRegistry = require('./pluginRegistry')\n\nconst bigIntValue = require('./primitiveValues/bigInt')\nconst booleanValue = require('./primitiveValues/boolean')\nconst nullValue = require('./primitiveValues/null')\nconst numberValue = require('./primitiveValues/number')\nconst stringValue = require('./primitiveValues/string')\nconst symbolValue = require('./primitiveValues/symbol')\nconst undefinedValue = require('./primitiveValues/undefined')\n\nconst recursorUtils = require('./recursorUtils')\n\n// Increment if encoding layout, descriptor IDs, or value types change. Previous\n// Concordance versions will not be able to decode buffers generated by a newer\n// version, so changing this value will require a major version bump of\n// Concordance itself. The version is encoded as an unsigned 16 bit integer.\nconst VERSION = 3\n\n// Adding or removing mappings or changing an index requires the version in\n// encoder.js to be bumped, which necessitates a major version bump of\n// Concordance itself. Indexes are hexadecimal to make reading the binary\n// output easier.\nconst mappings = [\n [0x01, bigIntValue.tag, bigIntValue.deserialize],\n [0x02, booleanValue.tag, booleanValue.deserialize],\n [0x03, nullValue.tag, nullValue.deserialize],\n [0x04, numberValue.tag, numberValue.deserialize],\n [0x05, stringValue.tag, stringValue.deserialize],\n [0x06, symbolValue.tag, symbolValue.deserialize],\n [0x07, undefinedValue.tag, undefinedValue.deserialize],\n\n [0x08, objectValue.tag, objectValue.deserialize],\n [0x09, statsDescriptors.iterableTag, statsDescriptors.deserializeIterableStats],\n [0x0A, statsDescriptors.listTag, statsDescriptors.deserializeListStats],\n [0x0B, itemDescriptor.complexTag, itemDescriptor.deserializeComplex],\n [0x0C, itemDescriptor.primitiveTag, itemDescriptor.deserializePrimitive],\n [0x0D, statsDescriptors.propertyTag, statsDescriptors.deserializePropertyStats],\n [0x0E, propertyDescriptor.complexTag, propertyDescriptor.deserializeComplex],\n [0x0F, propertyDescriptor.primitiveTag, propertyDescriptor.deserializePrimitive],\n [0x10, pointerDescriptor.tag, pointerDescriptor.deserialize],\n\n [0x11, mapValue.tag, mapValue.deserialize],\n [0x12, mapEntryDescriptor.tag, mapEntryDescriptor.deserialize],\n\n [0x13, argumentsValue.tag, argumentsValue.deserialize],\n [0x14, arrayBufferValue.tag, arrayBufferValue.deserialize],\n [0x15, boxedValue.tag, boxedValue.deserialize],\n [0x16, dataViewValue.tag, dataViewValue.deserialize],\n [0x17, dateValue.tag, dateValue.deserialize],\n [0x18, errorValue.tag, errorValue.deserialize],\n [0x19, functionValue.tag, functionValue.deserialize],\n [0x1A, globalValue.tag, globalValue.deserialize],\n [0x1B, promiseValue.tag, promiseValue.deserialize],\n [0x1C, regexpValue.tag, regexpValue.deserialize],\n [0x1D, setValue.tag, setValue.deserialize],\n [0x1E, typedArrayValue.tag, typedArrayValue.deserialize],\n [0x1F, typedArrayValue.bytesTag, typedArrayValue.deserializeBytes],\n]\nconst tag2id = new Map(mappings.map(mapping => [mapping[1], mapping[0]]))\nconst id2deserialize = new Map(mappings.map(mapping => [mapping[0], mapping[2]]))\n\nclass DescriptorSerializationError extends Error {\n constructor (descriptor) {\n super('Could not serialize descriptor')\n this.name = 'DescriptorSerializationError'\n this.descriptor = descriptor\n }\n}\n\nclass MissingPluginError extends Error {\n constructor (pluginName) {\n super(`Could not deserialize buffer: missing plugin ${JSON.stringify(pluginName)}`)\n this.name = 'MissingPluginError'\n this.pluginName = pluginName\n }\n}\n\nclass PointerLookupError extends Error {\n constructor (index) {\n super(`Could not deserialize buffer: pointer ${index} could not be resolved`)\n this.name = 'PointerLookupError'\n this.index = index\n }\n}\n\nclass UnsupportedPluginError extends Error {\n constructor (pluginName, serializerVersion) {\n super(`Could not deserialize buffer: plugin ${JSON.stringify(pluginName)} expects a different serialization`)\n this.name = 'UnsupportedPluginError'\n this.pluginName = pluginName\n this.serializerVersion = serializerVersion\n }\n}\n\nclass UnsupportedVersion extends Error { // eslint-disable-line unicorn/custom-error-definition\n constructor (serializerVersion) {\n super('Could not deserialize buffer: a different serialization was expected')\n this.name = 'UnsupportedVersion'\n this.serializerVersion = serializerVersion\n }\n}\n\nfunction shallowSerializeDescriptor (descriptor, resolvePluginRef) {\n if (!descriptor.serialize) return undefined\n\n return serializeState(descriptor.serialize(), resolvePluginRef)\n}\n\nfunction serializeState (state, resolvePluginRef) {\n if (Array.isArray(state)) return state.map(x => serializeState(x))\n\n if (state && state.tag) {\n let id, pluginIndex\n if (tag2id.has(state.tag)) {\n id = tag2id.get(state.tag)\n pluginIndex = 0\n } else {\n const ref = resolvePluginRef(state.tag)\n if (ref) {\n id = ref.id\n pluginIndex = ref.pluginIndex\n }\n }\n\n if (id !== undefined) {\n const serialized = [pluginIndex, id, shallowSerializeDescriptor(state, resolvePluginRef)]\n serialized[encoder.descriptorSymbol] = true\n return serialized\n }\n }\n\n return state\n}\n\nfunction serialize (descriptor) {\n const usedPlugins = new Map()\n const resolvePluginRef = tag => {\n const ref = pluginRegistry.resolveDescriptorRef(tag)\n if (!ref) return null\n\n if (!usedPlugins.has(ref.name)) {\n // Start at 1, since 0 is reserved for Concordance's descriptors.\n const index = usedPlugins.size + 1\n usedPlugins.set(ref.name, Object.assign({ index }, ref.serialization))\n }\n\n return {\n id: ref.id,\n pluginIndex: usedPlugins.get(ref.name).index,\n }\n }\n\n const seen = new Set()\n\n const stack = []\n let topIndex = -1\n\n let rootRecord\n do {\n if (descriptor.isComplex === true) {\n if (seen.has(descriptor.pointer)) {\n descriptor = pointerDescriptor.describe(descriptor.pointer)\n } else {\n seen.add(descriptor.pointer)\n }\n }\n\n let id\n let pluginIndex = 0\n if (tag2id.has(descriptor.tag)) {\n id = tag2id.get(descriptor.tag)\n } else {\n const ref = resolvePluginRef(descriptor.tag)\n if (!ref) throw new DescriptorSerializationError(descriptor)\n\n id = ref.id\n pluginIndex = ref.pluginIndex\n }\n\n const record = {\n id,\n pluginIndex,\n children: [],\n state: shallowSerializeDescriptor(descriptor, resolvePluginRef),\n }\n if (!rootRecord) {\n rootRecord = record\n } else {\n stack[topIndex].children.push(record)\n }\n\n if (descriptor.createRecursor) {\n stack.push({ recursor: descriptor.createRecursor(), children: record.children })\n topIndex++\n }\n\n while (topIndex >= 0) {\n descriptor = stack[topIndex].recursor()\n if (descriptor === null) {\n stack.pop()\n topIndex--\n } else {\n break\n }\n }\n } while (topIndex >= 0)\n\n return encoder.encode(VERSION, rootRecord, usedPlugins)\n}\nexports.serialize = serialize\n\nfunction deserializeState (state, getDescriptorDeserializer) {\n if (state && state[encoder.descriptorSymbol] === true) {\n return shallowDeserializeDescriptor(state, getDescriptorDeserializer)\n }\n\n return Array.isArray(state)\n ? state.map(item => deserializeState(item, getDescriptorDeserializer))\n : state\n}\n\nfunction shallowDeserializeDescriptor (entry, getDescriptorDeserializer) {\n const deserializeDescriptor = getDescriptorDeserializer(entry[0], entry[1])\n return deserializeDescriptor(entry[2])\n}\n\nfunction deserializeRecord (record, getDescriptorDeserializer, buffer) {\n const deserializeDescriptor = getDescriptorDeserializer(record.pluginIndex, record.id)\n const state = deserializeState(record.state, getDescriptorDeserializer)\n\n if (record.pointerAddresses.length === 0) {\n return deserializeDescriptor(state)\n }\n\n const endIndex = record.pointerAddresses.length\n let index = 0\n const recursor = () => {\n if (index === endIndex) return null\n\n const recursorRecord = encoder.decodeRecord(buffer, record.pointerAddresses[index++])\n return deserializeRecord(recursorRecord, getDescriptorDeserializer, buffer)\n }\n\n return deserializeDescriptor(state, recursor)\n}\n\nfunction buildPluginMap (buffer, options) {\n const cache = options && options.deserializedPluginsCache\n const cacheKey = md5hex(buffer)\n if (cache && cache.has(cacheKey)) return cache.get(cacheKey)\n\n const decodedPlugins = encoder.decodePlugins(buffer)\n if (decodedPlugins.size === 0) {\n const pluginMap = new Map()\n if (cache) cache.set(cacheKey, pluginMap)\n return pluginMap\n }\n\n const deserializerLookup = new Map()\n if (Array.isArray(options && options.plugins)) {\n for (const deserializer of pluginRegistry.getDeserializers(options.plugins)) {\n deserializerLookup.set(deserializer.name, deserializer)\n }\n }\n\n const pluginMap = new Map()\n for (const index of decodedPlugins.keys()) {\n const used = decodedPlugins.get(index)\n const pluginName = used.name\n const serializerVersion = used.serializerVersion\n\n // TODO: Allow plugin author to encode a helpful message in its serialization\n if (!deserializerLookup.has(pluginName)) {\n throw new MissingPluginError(pluginName)\n }\n if (serializerVersion !== deserializerLookup.get(pluginName).serializerVersion) {\n throw new UnsupportedPluginError(pluginName, serializerVersion)\n }\n\n pluginMap.set(index, deserializerLookup.get(pluginName).id2deserialize)\n }\n\n if (cache) cache.set(cacheKey, pluginMap)\n return pluginMap\n}\n\nfunction deserialize (buffer, options) {\n const version = encoder.extractVersion(buffer)\n if (version !== VERSION) throw new UnsupportedVersion(version)\n\n const decoded = encoder.decode(buffer)\n const pluginMap = buildPluginMap(decoded.pluginBuffer, options)\n\n const descriptorsByPointerIndex = new Map()\n const mapPointerDescriptor = descriptor => {\n if (descriptor.isPointer === true) {\n if (descriptorsByPointerIndex.has(descriptor.index)) {\n return descriptorsByPointerIndex.get(descriptor.index)\n }\n\n if (typeof rootDescriptor.createRecursor === 'function') {\n // The descriptor we're pointing to may be elsewhere in the serialized\n // structure. Consume the entire structure and check again.\n recursorUtils.consumeDeep(rootDescriptor.createRecursor())\n\n if (descriptorsByPointerIndex.has(descriptor.index)) {\n return descriptorsByPointerIndex.get(descriptor.index)\n }\n }\n\n throw new PointerLookupError(descriptor.index)\n }\n\n if (descriptor.isComplex === true) {\n descriptorsByPointerIndex.set(descriptor.pointer, descriptor)\n }\n\n return descriptor\n }\n\n const getDescriptorDeserializer = (pluginIndex, id) => {\n return (state, recursor) => {\n const deserializeDescriptor = pluginIndex === 0\n ? id2deserialize.get(id)\n : pluginMap.get(pluginIndex).get(id)\n\n return mapPointerDescriptor(deserializeDescriptor(state, recursor))\n }\n }\n\n const rootDescriptor = deserializeRecord(decoded.rootRecord, getDescriptorDeserializer, buffer)\n return rootDescriptor\n}\nexports.deserialize = deserialize\n","'use strict'\n\nconst compare = require('./lib/compare')\nconst describe = require('./lib/describe')\nconst diff = require('./lib/diff')\nconst format = require('./lib/format')\nconst serialize = require('./lib/serialize')\n\nexports.compare = compare.compare\nexports.compareDescriptors = compare.compareDescriptors\n\nexports.describe = describe\n\nexports.diff = diff.diff\nexports.diffDescriptors = diff.diffDescriptors\n\nexports.format = format.format\nexports.formatDescriptor = format.formatDescriptor\n\nexports.serialize = serialize.serialize\nexports.deserialize = serialize.deserialize\n","import { b as getColors } from './chunk-colors.js';\nimport concordance from 'concordance';\n\nfunction getConcordanceTheme() {\n const c = getColors();\n return {\n boolean: c.yellow,\n circular: c.gray(\"[Circular]\"),\n date: {\n invalid: c.red(\"invalid\"),\n value: c.blue\n },\n diffGutters: {\n actual: ` ${c.red(\"-\")} `,\n expected: ` ${c.green(\"+\")} `,\n padding: \" \"\n },\n error: {\n ctor: { open: `${c.gray.open}(`, close: `)${c.gray.close}` },\n name: c.magenta\n },\n function: {\n name: c.blue,\n stringTag: c.magenta\n },\n global: c.magenta,\n item: { after: c.gray(\",\") },\n list: { openBracket: c.gray(\"[\"), closeBracket: c.gray(\"]\") },\n mapEntry: { after: c.gray(\",\") },\n maxDepth: c.gray(\"\\u2026\"),\n null: c.yellow,\n number: c.yellow,\n object: {\n openBracket: c.gray(\"{\"),\n closeBracket: c.gray(\"}\"),\n ctor: c.magenta,\n stringTag: { open: `${c.magenta.open}@`, close: c.magenta.close },\n secondaryStringTag: { open: `${c.gray.open}@`, close: c.gray.close }\n },\n property: {\n after: c.gray(\",\"),\n keyBracket: { open: c.gray(\"[\"), close: c.gray(\"]\") },\n valueFallback: c.gray(\"\\u2026\")\n },\n regexp: {\n source: { open: `${c.blue.open}/`, close: `/${c.blue.close}` },\n flags: c.yellow\n },\n stats: { separator: c.gray(\"---\") },\n string: {\n open: c.blue.open,\n close: c.blue.close,\n line: { open: c.blue(\"'\"), close: c.blue(\"'\") },\n multiline: { start: c.blue(\"`\"), end: c.blue(\"`\") },\n controlPicture: c.gray,\n diff: {\n insert: {\n open: c.bgGreen.open + c.black.open,\n close: c.black.close + c.bgGreen.close\n },\n delete: {\n open: c.bgRed.open + c.black.open,\n close: c.black.close + c.bgRed.close\n },\n equal: c.blue,\n insertLine: {\n open: c.green.open,\n close: c.green.close\n },\n deleteLine: {\n open: c.red.open,\n close: c.red.close\n }\n }\n },\n symbol: c.yellow,\n typedArray: {\n bytes: c.yellow\n },\n undefined: c.yellow\n };\n}\nfunction diffDescriptors(actual, expected, options) {\n return concordance.diff(expected, actual, options);\n}\n\nfunction unifiedDiff(actual, expected, options = {}) {\n const theme = getConcordanceTheme();\n const diff = diffDescriptors(actual, expected, { theme });\n const { showLegend = true } = options;\n const counts = {\n \"+\": 0,\n \"-\": 0\n };\n const c = getColors();\n const plus = theme.diffGutters.actual;\n const minus = ` ${c.green(\"+\")}`;\n const lines = diff.split(/\\r?\\n/g);\n lines.forEach((line) => {\n if (line.startsWith(plus))\n counts[\"+\"]++;\n else if (line.startsWith(minus))\n counts[\"-\"]++;\n });\n let legend = \"\";\n if (showLegend) {\n legend = ` ${c.green(`- Expected - ${counts[\"-\"]}`)}\n ${c.red(`+ Received + ${counts[\"+\"]}`)}\n\n`;\n }\n return legend + diff.replace(/␊\\s*$/mg, \"\");\n}\n\nexport { unifiedDiff };\n","import { format, deepClone, stringify, getOwnProperties, getType, toArray } from '@vitest/utils';\nimport { unifiedDiff } from '@vitest/utils/diff';\n\nfunction partitionSuiteChildren(suite) {\n let tasksGroup = [];\n const tasksGroups = [];\n for (const c of suite.tasks) {\n if (tasksGroup.length === 0 || c.concurrent === tasksGroup[0].concurrent) {\n tasksGroup.push(c);\n } else {\n tasksGroups.push(tasksGroup);\n tasksGroup = [c];\n }\n }\n if (tasksGroup.length > 0)\n tasksGroups.push(tasksGroup);\n return tasksGroups;\n}\n\nconst IS_RECORD_SYMBOL = \"@@__IMMUTABLE_RECORD__@@\";\nconst IS_COLLECTION_SYMBOL = \"@@__IMMUTABLE_ITERABLE__@@\";\nfunction isImmutable(v) {\n return v && (v[IS_COLLECTION_SYMBOL] || v[IS_RECORD_SYMBOL]);\n}\nconst OBJECT_PROTO = Object.getPrototypeOf({});\nfunction getUnserializableMessage(err) {\n if (err instanceof Error)\n return `: ${err.message}`;\n if (typeof err === \"string\")\n return `: ${err}`;\n return \"\";\n}\nfunction serializeError(val, seen = /* @__PURE__ */ new WeakMap()) {\n if (!val || typeof val === \"string\")\n return val;\n if (typeof val === \"function\")\n return `Function<${val.name || \"anonymous\"}>`;\n if (typeof val === \"symbol\")\n return val.toString();\n if (typeof val !== \"object\")\n return val;\n if (isImmutable(val))\n return serializeError(val.toJSON(), seen);\n if (val instanceof Promise || val.constructor && val.constructor.prototype === \"AsyncFunction\")\n return \"Promise\";\n if (typeof Element !== \"undefined\" && val instanceof Element)\n return val.tagName;\n if (typeof val.asymmetricMatch === \"function\")\n return `${val.toString()} ${format(val.sample)}`;\n if (seen.has(val))\n return seen.get(val);\n if (Array.isArray(val)) {\n const clone = new Array(val.length);\n seen.set(val, clone);\n val.forEach((e, i) => {\n try {\n clone[i] = serializeError(e, seen);\n } catch (err) {\n clone[i] = getUnserializableMessage(err);\n }\n });\n return clone;\n } else {\n const clone = /* @__PURE__ */ Object.create(null);\n seen.set(val, clone);\n let obj = val;\n while (obj && obj !== OBJECT_PROTO) {\n Object.getOwnPropertyNames(obj).forEach((key) => {\n if (key in clone)\n return;\n try {\n clone[key] = serializeError(val[key], seen);\n } catch (err) {\n delete clone[key];\n clone[key] = getUnserializableMessage(err);\n }\n });\n obj = Object.getPrototypeOf(obj);\n }\n return clone;\n }\n}\nfunction normalizeErrorMessage(message) {\n return message.replace(/__vite_ssr_import_\\d+__\\./g, \"\");\n}\nfunction processError(err, options = {}) {\n if (!err || typeof err !== \"object\")\n return err;\n if (err.stack)\n err.stackStr = String(err.stack);\n if (err.name)\n err.nameStr = String(err.name);\n const clonedActual = deepClone(err.actual);\n const clonedExpected = deepClone(err.expected);\n const { replacedActual, replacedExpected } = replaceAsymmetricMatcher(clonedActual, clonedExpected);\n if (err.showDiff || err.showDiff === void 0 && err.expected !== void 0 && err.actual !== void 0)\n err.diff = unifiedDiff(replacedActual, replacedExpected, options);\n if (typeof err.expected !== \"string\")\n err.expected = stringify(err.expected, 10);\n if (typeof err.actual !== \"string\")\n err.actual = stringify(err.actual, 10);\n try {\n if (typeof err.message === \"string\")\n err.message = normalizeErrorMessage(err.message);\n if (typeof err.cause === \"object\" && typeof err.cause.message === \"string\")\n err.cause.message = normalizeErrorMessage(err.cause.message);\n } catch {\n }\n try {\n return serializeError(err);\n } catch (e) {\n return serializeError(new Error(`Failed to fully serialize error: ${e == null ? void 0 : e.message}\nInner error message: ${err == null ? void 0 : err.message}`));\n }\n}\nfunction isAsymmetricMatcher(data) {\n const type = getType(data);\n return type === \"Object\" && typeof data.asymmetricMatch === \"function\";\n}\nfunction isReplaceable(obj1, obj2) {\n const obj1Type = getType(obj1);\n const obj2Type = getType(obj2);\n return obj1Type === obj2Type && obj1Type === \"Object\";\n}\nfunction replaceAsymmetricMatcher(actual, expected, actualReplaced = /* @__PURE__ */ new WeakSet(), expectedReplaced = /* @__PURE__ */ new WeakSet()) {\n if (!isReplaceable(actual, expected))\n return { replacedActual: actual, replacedExpected: expected };\n if (actualReplaced.has(actual) || expectedReplaced.has(expected))\n return { replacedActual: actual, replacedExpected: expected };\n actualReplaced.add(actual);\n expectedReplaced.add(expected);\n getOwnProperties(expected).forEach((key) => {\n const expectedValue = expected[key];\n const actualValue = actual[key];\n if (isAsymmetricMatcher(expectedValue)) {\n if (expectedValue.asymmetricMatch(actualValue))\n actual[key] = expectedValue;\n } else if (isAsymmetricMatcher(actualValue)) {\n if (actualValue.asymmetricMatch(expectedValue))\n expected[key] = actualValue;\n } else if (isReplaceable(actualValue, expectedValue)) {\n const replaced = replaceAsymmetricMatcher(\n actualValue,\n expectedValue,\n actualReplaced,\n expectedReplaced\n );\n actual[key] = replaced.replacedActual;\n expected[key] = replaced.replacedExpected;\n }\n });\n return {\n replacedActual: actual,\n replacedExpected: expected\n };\n}\n\nfunction interpretTaskModes(suite, namePattern, onlyMode, parentIsOnly, allowOnly) {\n const suiteIsOnly = parentIsOnly || suite.mode === \"only\";\n suite.tasks.forEach((t) => {\n const includeTask = suiteIsOnly || t.mode === \"only\";\n if (onlyMode) {\n if (t.type === \"suite\" && (includeTask || someTasksAreOnly(t))) {\n if (t.mode === \"only\") {\n checkAllowOnly(t, allowOnly);\n t.mode = \"run\";\n }\n } else if (t.mode === \"run\" && !includeTask) {\n t.mode = \"skip\";\n } else if (t.mode === \"only\") {\n checkAllowOnly(t, allowOnly);\n t.mode = \"run\";\n }\n }\n if (t.type === \"test\") {\n if (namePattern && !getTaskFullName(t).match(namePattern))\n t.mode = \"skip\";\n } else if (t.type === \"suite\") {\n if (t.mode === \"skip\")\n skipAllTasks(t);\n else\n interpretTaskModes(t, namePattern, onlyMode, includeTask, allowOnly);\n }\n });\n if (suite.mode === \"run\") {\n if (suite.tasks.length && suite.tasks.every((i) => i.mode !== \"run\"))\n suite.mode = \"skip\";\n }\n}\nfunction getTaskFullName(task) {\n return `${task.suite ? `${getTaskFullName(task.suite)} ` : \"\"}${task.name}`;\n}\nfunction someTasksAreOnly(suite) {\n return suite.tasks.some((t) => t.mode === \"only\" || t.type === \"suite\" && someTasksAreOnly(t));\n}\nfunction skipAllTasks(suite) {\n suite.tasks.forEach((t) => {\n if (t.mode === \"run\") {\n t.mode = \"skip\";\n if (t.type === \"suite\")\n skipAllTasks(t);\n }\n });\n}\nfunction checkAllowOnly(task, allowOnly) {\n if (allowOnly)\n return;\n const error = processError(new Error(\"[Vitest] Unexpected .only modifier. Remove it or pass --allowOnly argument to bypass this error\"));\n task.result = {\n state: \"fail\",\n error,\n errors: [error]\n };\n}\nfunction generateHash(str) {\n let hash = 0;\n if (str.length === 0)\n return `${hash}`;\n for (let i = 0; i < str.length; i++) {\n const char = str.charCodeAt(i);\n hash = (hash << 5) - hash + char;\n hash = hash & hash;\n }\n return `${hash}`;\n}\nfunction calculateSuiteHash(parent) {\n parent.tasks.forEach((t, idx) => {\n t.id = `${parent.id}_${idx}`;\n if (t.type === \"suite\")\n calculateSuiteHash(t);\n });\n}\n\nfunction createChainable(keys, fn) {\n function create(context) {\n const chain2 = function(...args) {\n return fn.apply(context, args);\n };\n Object.assign(chain2, fn);\n chain2.withContext = () => chain2.bind(context);\n for (const key of keys) {\n Object.defineProperty(chain2, key, {\n get() {\n return create({ ...context, [key]: true });\n }\n });\n }\n return chain2;\n }\n const chain = create({});\n chain.fn = fn;\n return chain;\n}\n\nfunction isAtomTest(s) {\n return s.type === \"test\" || s.type === \"custom\";\n}\nfunction getTests(suite) {\n return toArray(suite).flatMap((s) => isAtomTest(s) ? [s] : s.tasks.flatMap((c) => isAtomTest(c) ? [c] : getTests(c)));\n}\nfunction getTasks(tasks = []) {\n return toArray(tasks).flatMap((s) => isAtomTest(s) ? [s] : [s, ...getTasks(s.tasks)]);\n}\nfunction getSuites(suite) {\n return toArray(suite).flatMap((s) => s.type === \"suite\" ? [s, ...getSuites(s.tasks)] : []);\n}\nfunction hasTests(suite) {\n return toArray(suite).some((s) => s.tasks.some((c) => isAtomTest(c) || hasTests(c)));\n}\nfunction hasFailed(suite) {\n return toArray(suite).some((s) => {\n var _a;\n return ((_a = s.result) == null ? void 0 : _a.state) === \"fail\" || s.type === \"suite\" && hasFailed(s.tasks);\n });\n}\nfunction getNames(task) {\n const names = [task.name];\n let current = task;\n while ((current == null ? void 0 : current.suite) || (current == null ? void 0 : current.file)) {\n current = current.suite || current.file;\n if (current == null ? void 0 : current.name)\n names.unshift(current.name);\n }\n return names;\n}\n\nexport { calculateSuiteHash as a, partitionSuiteChildren as b, createChainable as c, hasFailed as d, getTests as e, getTasks as f, generateHash as g, hasTests as h, interpretTaskModes as i, getSuites as j, getNames as k, serializeError as l, processError as p, replaceAsymmetricMatcher as r, someTasksAreOnly as s };\n","function normalizeWindowsPath(input = \"\") {\n if (!input || !input.includes(\"\\\\\")) {\n return input;\n }\n return input.replace(/\\\\/g, \"/\");\n}\n\nconst _UNC_REGEX = /^[/\\\\]{2}/;\nconst _IS_ABSOLUTE_RE = /^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^[A-Za-z]:[/\\\\]/;\nconst _DRIVE_LETTER_RE = /^[A-Za-z]:$/;\nconst sep = \"/\";\nconst delimiter = \":\";\nconst normalize = function(path) {\n if (path.length === 0) {\n return \".\";\n }\n path = normalizeWindowsPath(path);\n const isUNCPath = path.match(_UNC_REGEX);\n const isPathAbsolute = isAbsolute(path);\n const trailingSeparator = path[path.length - 1] === \"/\";\n path = normalizeString(path, !isPathAbsolute);\n if (path.length === 0) {\n if (isPathAbsolute) {\n return \"/\";\n }\n return trailingSeparator ? \"./\" : \".\";\n }\n if (trailingSeparator) {\n path += \"/\";\n }\n if (_DRIVE_LETTER_RE.test(path)) {\n path += \"/\";\n }\n if (isUNCPath) {\n if (!isPathAbsolute) {\n return `//./${path}`;\n }\n return `//${path}`;\n }\n return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;\n};\nconst join = function(...arguments_) {\n if (arguments_.length === 0) {\n return \".\";\n }\n let joined;\n for (const argument of arguments_) {\n if (argument && argument.length > 0) {\n if (joined === void 0) {\n joined = argument;\n } else {\n joined += `/${argument}`;\n }\n }\n }\n if (joined === void 0) {\n return \".\";\n }\n return normalize(joined.replace(/\\/\\/+/g, \"/\"));\n};\nfunction cwd() {\n if (typeof process !== \"undefined\") {\n return process.cwd().replace(/\\\\/g, \"/\");\n }\n return \"/\";\n}\nconst resolve = function(...arguments_) {\n arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));\n let resolvedPath = \"\";\n let resolvedAbsolute = false;\n for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {\n const path = index >= 0 ? arguments_[index] : cwd();\n if (!path || path.length === 0) {\n continue;\n }\n resolvedPath = `${path}/${resolvedPath}`;\n resolvedAbsolute = isAbsolute(path);\n }\n resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);\n if (resolvedAbsolute && !isAbsolute(resolvedPath)) {\n return `/${resolvedPath}`;\n }\n return resolvedPath.length > 0 ? resolvedPath : \".\";\n};\nfunction normalizeString(path, allowAboveRoot) {\n let res = \"\";\n let lastSegmentLength = 0;\n let lastSlash = -1;\n let dots = 0;\n let char = null;\n for (let index = 0; index <= path.length; ++index) {\n if (index < path.length) {\n char = path[index];\n } else if (char === \"/\") {\n break;\n } else {\n char = \"/\";\n }\n if (char === \"/\") {\n if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {\n if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== \".\" || res[res.length - 2] !== \".\") {\n if (res.length > 2) {\n const lastSlashIndex = res.lastIndexOf(\"/\");\n if (lastSlashIndex === -1) {\n res = \"\";\n lastSegmentLength = 0;\n } else {\n res = res.slice(0, lastSlashIndex);\n lastSegmentLength = res.length - 1 - res.lastIndexOf(\"/\");\n }\n lastSlash = index;\n dots = 0;\n continue;\n } else if (res.length > 0) {\n res = \"\";\n lastSegmentLength = 0;\n lastSlash = index;\n dots = 0;\n continue;\n }\n }\n if (allowAboveRoot) {\n res += res.length > 0 ? \"/..\" : \"..\";\n lastSegmentLength = 2;\n }\n } else {\n if (res.length > 0) {\n res += `/${path.slice(lastSlash + 1, index)}`;\n } else {\n res = path.slice(lastSlash + 1, index);\n }\n lastSegmentLength = index - lastSlash - 1;\n }\n lastSlash = index;\n dots = 0;\n } else if (char === \".\" && dots !== -1) {\n ++dots;\n } else {\n dots = -1;\n }\n }\n return res;\n}\nconst isAbsolute = function(p) {\n return _IS_ABSOLUTE_RE.test(p);\n};\nconst toNamespacedPath = function(p) {\n return normalizeWindowsPath(p);\n};\nconst _EXTNAME_RE = /.(\\.[^./]+)$/;\nconst extname = function(p) {\n const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));\n return match && match[1] || \"\";\n};\nconst relative = function(from, to) {\n const _from = resolve(from).split(\"/\");\n const _to = resolve(to).split(\"/\");\n const _fromCopy = [..._from];\n for (const segment of _fromCopy) {\n if (_to[0] !== segment) {\n break;\n }\n _from.shift();\n _to.shift();\n }\n return [..._from.map(() => \"..\"), ..._to].join(\"/\");\n};\nconst dirname = function(p) {\n const segments = normalizeWindowsPath(p).replace(/\\/$/, \"\").split(\"/\").slice(0, -1);\n if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {\n segments[0] += \"/\";\n }\n return segments.join(\"/\") || (isAbsolute(p) ? \"/\" : \".\");\n};\nconst format = function(p) {\n const segments = [p.root, p.dir, p.base ?? p.name + p.ext].filter(Boolean);\n return normalizeWindowsPath(\n p.root ? resolve(...segments) : segments.join(\"/\")\n );\n};\nconst basename = function(p, extension) {\n const lastSegment = normalizeWindowsPath(p).split(\"/\").pop();\n return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;\n};\nconst parse = function(p) {\n const root = normalizeWindowsPath(p).split(\"/\").shift() || \"/\";\n const base = basename(p);\n const extension = extname(base);\n return {\n root,\n dir: dirname(p),\n base,\n ext: extension,\n name: base.slice(0, base.length - extension.length)\n };\n};\n\nconst path = {\n __proto__: null,\n basename: basename,\n delimiter: delimiter,\n dirname: dirname,\n extname: extname,\n format: format,\n isAbsolute: isAbsolute,\n join: join,\n normalize: normalize,\n normalizeString: normalizeString,\n parse: parse,\n relative: relative,\n resolve: resolve,\n sep: sep,\n toNamespacedPath: toNamespacedPath\n};\n\nexport { normalizeString as a, relative as b, dirname as c, delimiter as d, extname as e, format as f, basename as g, parse as h, isAbsolute as i, join as j, normalizeWindowsPath as k, normalize as n, path as p, resolve as r, sep as s, toNamespacedPath as t };\n","import limit from 'p-limit';\nimport { getSafeTimers, format, isObject, objDisplay, objectAttr, noop, toArray, shuffle } from '@vitest/utils';\nimport { c as createChainable, g as generateHash, p as processError, a as calculateSuiteHash, s as someTasksAreOnly, i as interpretTaskModes, b as partitionSuiteChildren, h as hasTests, d as hasFailed } from './chunk-tasks.js';\nimport { relative } from 'pathe';\nimport '@vitest/utils/diff';\n\nconst fnMap = /* @__PURE__ */ new WeakMap();\nconst hooksMap = /* @__PURE__ */ new WeakMap();\nfunction setFn(key, fn) {\n fnMap.set(key, fn);\n}\nfunction getFn(key) {\n return fnMap.get(key);\n}\nfunction setHooks(key, hooks) {\n hooksMap.set(key, hooks);\n}\nfunction getHooks(key) {\n return hooksMap.get(key);\n}\n\nconst collectorContext = {\n tasks: [],\n currentSuite: null\n};\nfunction collectTask(task) {\n var _a;\n (_a = collectorContext.currentSuite) == null ? void 0 : _a.tasks.push(task);\n}\nasync function runWithSuite(suite, fn) {\n const prev = collectorContext.currentSuite;\n collectorContext.currentSuite = suite;\n await fn();\n collectorContext.currentSuite = prev;\n}\nfunction withTimeout(fn, timeout, isHook = false) {\n if (timeout <= 0 || timeout === Infinity)\n return fn;\n const { setTimeout, clearTimeout } = getSafeTimers();\n return (...args) => {\n return Promise.race([fn(...args), new Promise((resolve, reject) => {\n var _a;\n const timer = setTimeout(() => {\n clearTimeout(timer);\n reject(new Error(makeTimeoutMsg(isHook, timeout)));\n }, timeout);\n (_a = timer.unref) == null ? void 0 : _a.call(timer);\n })]);\n };\n}\nfunction createTestContext(test, runner) {\n var _a;\n const context = function() {\n throw new Error(\"done() callback is deprecated, use promise instead\");\n };\n context.meta = test;\n context.onTestFailed = (fn) => {\n test.onFailed || (test.onFailed = []);\n test.onFailed.push(fn);\n };\n return ((_a = runner.extendTestContext) == null ? void 0 : _a.call(runner, context)) || context;\n}\nfunction makeTimeoutMsg(isHook, timeout) {\n return `${isHook ? \"Hook\" : \"Test\"} timed out in ${timeout}ms.\nIf this is a long-running ${isHook ? \"hook\" : \"test\"}, pass a timeout value as the last argument or configure it globally with \"${isHook ? \"hookTimeout\" : \"testTimeout\"}\".`;\n}\n\nconst suite = createSuite();\nconst test = createTest(\n function(name, fn, options) {\n getCurrentSuite().test.fn.call(this, name, fn, options);\n }\n);\nconst describe = suite;\nconst it = test;\nlet runner;\nlet defaultSuite;\nfunction getDefaultSuite() {\n return defaultSuite;\n}\nfunction getRunner() {\n return runner;\n}\nfunction clearCollectorContext(currentRunner) {\n if (!defaultSuite)\n defaultSuite = currentRunner.config.sequence.shuffle ? suite.shuffle(\"\") : suite(\"\");\n runner = currentRunner;\n collectorContext.tasks.length = 0;\n defaultSuite.clear();\n collectorContext.currentSuite = defaultSuite;\n}\nfunction getCurrentSuite() {\n return collectorContext.currentSuite || defaultSuite;\n}\nfunction createSuiteHooks() {\n return {\n beforeAll: [],\n afterAll: [],\n beforeEach: [],\n afterEach: []\n };\n}\nfunction createSuiteCollector(name, factory = () => {\n}, mode, concurrent, shuffle, suiteOptions) {\n const tasks = [];\n const factoryQueue = [];\n let suite2;\n initSuite();\n const test2 = createTest(function(name2, fn = noop, options = suiteOptions) {\n const mode2 = this.only ? \"only\" : this.skip ? \"skip\" : this.todo ? \"todo\" : \"run\";\n if (typeof options === \"number\")\n options = { timeout: options };\n const test3 = {\n id: \"\",\n type: \"test\",\n name: name2,\n mode: mode2,\n suite: void 0,\n fails: this.fails,\n retry: options == null ? void 0 : options.retry\n };\n if (this.concurrent || concurrent)\n test3.concurrent = true;\n if (shuffle)\n test3.shuffle = true;\n const context = createTestContext(test3, runner);\n Object.defineProperty(test3, \"context\", {\n value: context,\n enumerable: false\n });\n setFn(test3, withTimeout(\n () => fn(context),\n (options == null ? void 0 : options.timeout) ?? runner.config.testTimeout\n ));\n tasks.push(test3);\n });\n const custom = function(name2 = \"\") {\n const self = this || {};\n const task = {\n id: \"\",\n name: name2,\n type: \"custom\",\n mode: self.only ? \"only\" : self.skip ? \"skip\" : self.todo ? \"todo\" : \"run\"\n };\n tasks.push(task);\n return task;\n };\n const collector = {\n type: \"collector\",\n name,\n mode,\n test: test2,\n tasks,\n collect,\n custom,\n clear,\n on: addHook\n };\n function addHook(name2, ...fn) {\n getHooks(suite2)[name2].push(...fn);\n }\n function initSuite() {\n suite2 = {\n id: \"\",\n type: \"suite\",\n name,\n mode,\n shuffle,\n tasks: []\n };\n setHooks(suite2, createSuiteHooks());\n }\n function clear() {\n tasks.length = 0;\n factoryQueue.length = 0;\n initSuite();\n }\n async function collect(file) {\n factoryQueue.length = 0;\n if (factory)\n await runWithSuite(collector, () => factory(test2));\n const allChildren = [];\n for (const i of [...factoryQueue, ...tasks])\n allChildren.push(i.type === \"collector\" ? await i.collect(file) : i);\n suite2.file = file;\n suite2.tasks = allChildren;\n allChildren.forEach((task) => {\n task.suite = suite2;\n if (file)\n task.file = file;\n });\n return suite2;\n }\n collectTask(collector);\n return collector;\n}\nfunction createSuite() {\n function suiteFn(name, factory, options) {\n const mode = this.only ? \"only\" : this.skip ? \"skip\" : this.todo ? \"todo\" : \"run\";\n return createSuiteCollector(name, factory, mode, this.concurrent, this.shuffle, options);\n }\n suiteFn.each = function(cases, ...args) {\n const suite2 = this.withContext();\n if (Array.isArray(cases) && args.length)\n cases = formatTemplateString(cases, args);\n return (name, fn, options) => {\n const arrayOnlyCases = cases.every(Array.isArray);\n cases.forEach((i, idx) => {\n const items = Array.isArray(i) ? i : [i];\n arrayOnlyCases ? suite2(formatTitle(name, items, idx), () => fn(...items), options) : suite2(formatTitle(name, items, idx), () => fn(i), options);\n });\n };\n };\n suiteFn.skipIf = (condition) => condition ? suite.skip : suite;\n suiteFn.runIf = (condition) => condition ? suite : suite.skip;\n return createChainable(\n [\"concurrent\", \"shuffle\", \"skip\", \"only\", \"todo\"],\n suiteFn\n );\n}\nfunction createTest(fn) {\n const testFn = fn;\n testFn.each = function(cases, ...args) {\n const test2 = this.withContext();\n if (Array.isArray(cases) && args.length)\n cases = formatTemplateString(cases, args);\n return (name, fn2, options) => {\n const arrayOnlyCases = cases.every(Array.isArray);\n cases.forEach((i, idx) => {\n const items = Array.isArray(i) ? i : [i];\n arrayOnlyCases ? test2(formatTitle(name, items, idx), () => fn2(...items), options) : test2(formatTitle(name, items, idx), () => fn2(i), options);\n });\n };\n };\n testFn.skipIf = (condition) => condition ? test.skip : test;\n testFn.runIf = (condition) => condition ? test : test.skip;\n return createChainable(\n [\"concurrent\", \"skip\", \"only\", \"todo\", \"fails\"],\n testFn\n );\n}\nfunction formatTitle(template, items, idx) {\n if (template.includes(\"%#\")) {\n template = template.replace(/%%/g, \"__vitest_escaped_%__\").replace(/%#/g, `${idx}`).replace(/__vitest_escaped_%__/g, \"%%\");\n }\n const count = template.split(\"%\").length - 1;\n let formatted = format(template, ...items.slice(0, count));\n if (isObject(items[0])) {\n formatted = formatted.replace(\n /\\$([$\\w_.]+)/g,\n (_, key) => {\n var _a;\n return objDisplay(objectAttr(items[0], key), (_a = runner == null ? void 0 : runner.config) == null ? void 0 : _a.chaiConfig);\n }\n // https://github.com/chaijs/chai/pull/1490\n );\n }\n return formatted;\n}\nfunction formatTemplateString(cases, args) {\n const header = cases.join(\"\").trim().replace(/ /g, \"\").split(\"\\n\").map((i) => i.split(\"|\"))[0];\n const res = [];\n for (let i = 0; i < Math.floor(args.length / header.length); i++) {\n const oneCase = {};\n for (let j = 0; j < header.length; j++)\n oneCase[header[j]] = args[i * header.length + j];\n res.push(oneCase);\n }\n return res;\n}\n\nasync function runSetupFiles(config, runner) {\n const files = toArray(config.setupFiles);\n if (config.sequence.setupFiles === \"parallel\") {\n await Promise.all(\n files.map(async (fsPath) => {\n await runner.importFile(fsPath, \"setup\");\n })\n );\n } else {\n for (const fsPath of files)\n await runner.importFile(fsPath, \"setup\");\n }\n}\n\nconst now$1 = Date.now;\nasync function collectTests(paths, runner) {\n const files = [];\n const config = runner.config;\n for (const filepath of paths) {\n const path = relative(config.root, filepath);\n const file = {\n id: generateHash(`${path}${config.name || \"\"}`),\n name: path,\n type: \"suite\",\n mode: \"run\",\n filepath,\n tasks: [],\n projectName: config.name\n };\n clearCollectorContext(runner);\n try {\n const setupStart = now$1();\n await runSetupFiles(config, runner);\n const collectStart = now$1();\n file.setupDuration = collectStart - setupStart;\n await runner.importFile(filepath, \"collect\");\n const defaultTasks = await getDefaultSuite().collect(file);\n setHooks(file, getHooks(defaultTasks));\n for (const c of [...defaultTasks.tasks, ...collectorContext.tasks]) {\n if (c.type === \"test\") {\n file.tasks.push(c);\n } else if (c.type === \"custom\") {\n file.tasks.push(c);\n } else if (c.type === \"suite\") {\n file.tasks.push(c);\n } else if (c.type === \"collector\") {\n const suite = await c.collect(file);\n if (suite.name || suite.tasks.length)\n file.tasks.push(suite);\n }\n }\n file.collectDuration = now$1() - collectStart;\n } catch (e) {\n const error = processError(e);\n file.result = {\n state: \"fail\",\n error,\n errors: [error]\n };\n }\n calculateSuiteHash(file);\n const hasOnlyTasks = someTasksAreOnly(file);\n interpretTaskModes(file, config.testNamePattern, hasOnlyTasks, false, config.allowOnly);\n files.push(file);\n }\n return files;\n}\n\nlet _test;\nfunction setCurrentTest(test) {\n _test = test;\n}\nfunction getCurrentTest() {\n return _test;\n}\n\nconst now = Date.now;\nfunction updateSuiteHookState(suite, name, state, runner) {\n var _a;\n if (!suite.result)\n suite.result = { state: \"run\" };\n if (!((_a = suite.result) == null ? void 0 : _a.hooks))\n suite.result.hooks = {};\n const suiteHooks = suite.result.hooks;\n if (suiteHooks) {\n suiteHooks[name] = state;\n updateTask(suite, runner);\n }\n}\nfunction getSuiteHooks(suite, name, sequence) {\n const hooks = getHooks(suite)[name];\n if (sequence === \"stack\" && (name === \"afterAll\" || name === \"afterEach\"))\n return hooks.slice().reverse();\n return hooks;\n}\nasync function callSuiteHook(suite, currentTask, name, runner, args) {\n const sequence = runner.config.sequence.hooks;\n const callbacks = [];\n if (name === \"beforeEach\" && suite.suite) {\n callbacks.push(\n ...await callSuiteHook(suite.suite, currentTask, name, runner, args)\n );\n }\n updateSuiteHookState(currentTask, name, \"run\", runner);\n const hooks = getSuiteHooks(suite, name, sequence);\n if (sequence === \"parallel\") {\n callbacks.push(...await Promise.all(hooks.map((fn) => fn(...args))));\n } else {\n for (const hook of hooks)\n callbacks.push(await hook(...args));\n }\n updateSuiteHookState(currentTask, name, \"pass\", runner);\n if (name === \"afterEach\" && suite.suite) {\n callbacks.push(\n ...await callSuiteHook(suite.suite, currentTask, name, runner, args)\n );\n }\n return callbacks;\n}\nconst packs = /* @__PURE__ */ new Map();\nlet updateTimer;\nlet previousUpdate;\nfunction updateTask(task, runner) {\n packs.set(task.id, task.result);\n const { clearTimeout, setTimeout } = getSafeTimers();\n clearTimeout(updateTimer);\n updateTimer = setTimeout(() => {\n previousUpdate = sendTasksUpdate(runner);\n }, 10);\n}\nasync function sendTasksUpdate(runner) {\n var _a;\n const { clearTimeout } = getSafeTimers();\n clearTimeout(updateTimer);\n await previousUpdate;\n if (packs.size) {\n const p = (_a = runner.onTaskUpdate) == null ? void 0 : _a.call(runner, Array.from(packs));\n packs.clear();\n return p;\n }\n}\nasync function callCleanupHooks(cleanups) {\n await Promise.all(cleanups.map(async (fn) => {\n if (typeof fn !== \"function\")\n return;\n await fn();\n }));\n}\nasync function runTest(test, runner) {\n var _a, _b, _c, _d, _e, _f;\n await ((_a = runner.onBeforeRunTest) == null ? void 0 : _a.call(runner, test));\n if (test.mode !== \"run\")\n return;\n if (((_b = test.result) == null ? void 0 : _b.state) === \"fail\") {\n updateTask(test, runner);\n return;\n }\n const start = now();\n test.result = {\n state: \"run\",\n startTime: start\n };\n updateTask(test, runner);\n setCurrentTest(test);\n const retry = test.retry || 1;\n for (let retryCount = 0; retryCount < retry; retryCount++) {\n let beforeEachCleanups = [];\n try {\n await ((_c = runner.onBeforeTryTest) == null ? void 0 : _c.call(runner, test, retryCount));\n beforeEachCleanups = await callSuiteHook(test.suite, test, \"beforeEach\", runner, [test.context, test.suite]);\n test.result.retryCount = retryCount;\n if (runner.runTest) {\n await runner.runTest(test);\n } else {\n const fn = getFn(test);\n if (!fn)\n throw new Error(\"Test function is not found. Did you add it using `setFn`?\");\n await fn();\n }\n if (test.promises) {\n const result = await Promise.allSettled(test.promises);\n const errors = result.map((r) => r.status === \"rejected\" ? r.reason : void 0).filter(Boolean);\n if (errors.length)\n throw errors;\n }\n await ((_d = runner.onAfterTryTest) == null ? void 0 : _d.call(runner, test, retryCount));\n test.result.state = \"pass\";\n } catch (e) {\n failTask(test.result, e);\n }\n try {\n await callSuiteHook(test.suite, test, \"afterEach\", runner, [test.context, test.suite]);\n await callCleanupHooks(beforeEachCleanups);\n } catch (e) {\n failTask(test.result, e);\n }\n if (test.result.state === \"pass\")\n break;\n updateTask(test, runner);\n }\n if (test.result.state === \"fail\")\n await Promise.all(((_e = test.onFailed) == null ? void 0 : _e.map((fn) => fn(test.result))) || []);\n if (test.fails) {\n if (test.result.state === \"pass\") {\n const error = processError(new Error(\"Expect test to fail\"));\n test.result.state = \"fail\";\n test.result.error = error;\n test.result.errors = [error];\n } else {\n test.result.state = \"pass\";\n test.result.error = void 0;\n test.result.errors = void 0;\n }\n }\n setCurrentTest(void 0);\n test.result.duration = now() - start;\n await ((_f = runner.onAfterRunTest) == null ? void 0 : _f.call(runner, test));\n updateTask(test, runner);\n}\nfunction failTask(result, err) {\n result.state = \"fail\";\n const errors = Array.isArray(err) ? err : [err];\n for (const e of errors) {\n const error = processError(e);\n result.error ?? (result.error = error);\n result.errors ?? (result.errors = []);\n result.errors.push(error);\n }\n}\nfunction markTasksAsSkipped(suite, runner) {\n suite.tasks.forEach((t) => {\n t.mode = \"skip\";\n t.result = { ...t.result, state: \"skip\" };\n updateTask(t, runner);\n if (t.type === \"suite\")\n markTasksAsSkipped(t, runner);\n });\n}\nasync function runSuite(suite, runner) {\n var _a, _b, _c;\n await ((_a = runner.onBeforeRunSuite) == null ? void 0 : _a.call(runner, suite));\n if (((_b = suite.result) == null ? void 0 : _b.state) === \"fail\") {\n markTasksAsSkipped(suite, runner);\n updateTask(suite, runner);\n return;\n }\n const start = now();\n suite.result = {\n state: \"run\",\n startTime: start\n };\n updateTask(suite, runner);\n let beforeAllCleanups = [];\n if (suite.mode === \"skip\") {\n suite.result.state = \"skip\";\n } else if (suite.mode === \"todo\") {\n suite.result.state = \"todo\";\n } else {\n try {\n beforeAllCleanups = await callSuiteHook(suite, suite, \"beforeAll\", runner, [suite]);\n if (runner.runSuite) {\n await runner.runSuite(suite);\n } else {\n for (let tasksGroup of partitionSuiteChildren(suite)) {\n if (tasksGroup[0].concurrent === true) {\n const mutex = limit(runner.config.maxConcurrency);\n await Promise.all(tasksGroup.map((c) => mutex(() => runSuiteChild(c, runner))));\n } else {\n const { sequence } = runner.config;\n if (sequence.shuffle || suite.shuffle) {\n const suites = tasksGroup.filter((group) => group.type === \"suite\");\n const tests = tasksGroup.filter((group) => group.type === \"test\");\n const groups = shuffle([suites, tests], sequence.seed);\n tasksGroup = groups.flatMap((group) => shuffle(group, sequence.seed));\n }\n for (const c of tasksGroup)\n await runSuiteChild(c, runner);\n }\n }\n }\n } catch (e) {\n failTask(suite.result, e);\n }\n try {\n await callSuiteHook(suite, suite, \"afterAll\", runner, [suite]);\n await callCleanupHooks(beforeAllCleanups);\n } catch (e) {\n failTask(suite.result, e);\n }\n }\n suite.result.duration = now() - start;\n if (suite.mode === \"run\") {\n if (!hasTests(suite)) {\n suite.result.state = \"fail\";\n if (!suite.result.error) {\n const error = processError(new Error(`No test found in suite ${suite.name}`));\n suite.result.error = error;\n suite.result.errors = [error];\n }\n } else if (hasFailed(suite)) {\n suite.result.state = \"fail\";\n } else {\n suite.result.state = \"pass\";\n }\n }\n await ((_c = runner.onAfterRunSuite) == null ? void 0 : _c.call(runner, suite));\n updateTask(suite, runner);\n}\nasync function runSuiteChild(c, runner) {\n if (c.type === \"test\")\n return runTest(c, runner);\n else if (c.type === \"suite\")\n return runSuite(c, runner);\n}\nasync function runFiles(files, runner) {\n var _a, _b;\n for (const file of files) {\n if (!file.tasks.length && !runner.config.passWithNoTests) {\n if (!((_b = (_a = file.result) == null ? void 0 : _a.errors) == null ? void 0 : _b.length)) {\n const error = processError(new Error(`No test suite found in file ${file.filepath}`));\n file.result = {\n state: \"fail\",\n error,\n errors: [error]\n };\n }\n }\n await runSuite(file, runner);\n }\n}\nasync function startTests(paths, runner) {\n var _a, _b, _c, _d;\n await ((_a = runner.onBeforeCollect) == null ? void 0 : _a.call(runner, paths));\n const files = await collectTests(paths, runner);\n (_b = runner.onCollected) == null ? void 0 : _b.call(runner, files);\n await ((_c = runner.onBeforeRun) == null ? void 0 : _c.call(runner, files));\n await runFiles(files, runner);\n await ((_d = runner.onAfterRun) == null ? void 0 : _d.call(runner, files));\n await sendTasksUpdate(runner);\n return files;\n}\n\nfunction getDefaultHookTimeout() {\n return getRunner().config.hookTimeout;\n}\nfunction beforeAll(fn, timeout) {\n return getCurrentSuite().on(\"beforeAll\", withTimeout(fn, timeout ?? getDefaultHookTimeout(), true));\n}\nfunction afterAll(fn, timeout) {\n return getCurrentSuite().on(\"afterAll\", withTimeout(fn, timeout ?? getDefaultHookTimeout(), true));\n}\nfunction beforeEach(fn, timeout) {\n return getCurrentSuite().on(\"beforeEach\", withTimeout(fn, timeout ?? getDefaultHookTimeout(), true));\n}\nfunction afterEach(fn, timeout) {\n return getCurrentSuite().on(\"afterEach\", withTimeout(fn, timeout ?? getDefaultHookTimeout(), true));\n}\nconst onTestFailed = createTestHook(\"onTestFailed\", (test, handler) => {\n test.onFailed || (test.onFailed = []);\n test.onFailed.push(handler);\n});\nfunction createTestHook(name, handler) {\n return (fn) => {\n const current = getCurrentTest();\n if (!current)\n throw new Error(`Hook ${name}() can only be called inside a test`);\n handler(current, fn);\n };\n}\n\nexport { afterAll, afterEach, beforeAll, beforeEach, describe, getCurrentSuite, getCurrentTest, getFn, it, onTestFailed, setFn, startTests, suite, test, updateTask };\n","function getWorkerState() {\n return globalThis.__vitest_worker__;\n}\nfunction getCurrentEnvironment() {\n return globalThis.__vitest_environment__;\n}\n\nexport { getCurrentEnvironment as a, getWorkerState as g };\n","import { relative } from 'pathe';\nimport 'std-env';\nimport '@vitest/runner/utils';\nimport '@vitest/utils';\nimport { g as getWorkerState } from './vendor-global.6795f91f.js';\n\nvar _a;\nconst isNode = typeof process < \"u\" && typeof process.stdout < \"u\" && !((_a = process.versions) == null ? void 0 : _a.deno) && !globalThis.window;\n\nconst isWindows = isNode && process.platform === \"win32\";\nfunction getRunMode() {\n return getWorkerState().config.mode;\n}\nfunction isRunningInBenchmark() {\n return getRunMode() === \"benchmark\";\n}\nconst relativePath = relative;\nfunction resetModules(modules, resetMocks = false) {\n const skipPaths = [\n // Vitest\n /\\/vitest\\/dist\\//,\n /\\/vite-node\\/dist\\//,\n // yarn's .store folder\n /vitest-virtual-\\w+\\/dist/,\n // cnpm\n /@vitest\\/dist/,\n // don't clear mocks\n ...!resetMocks ? [/^mock:/] : []\n ];\n modules.forEach((mod, path) => {\n if (skipPaths.some((re) => re.test(path)))\n return;\n modules.invalidateModule(mod);\n });\n}\nfunction removeUndefinedValues(obj) {\n for (const key in Object.keys(obj)) {\n if (obj[key] === void 0)\n delete obj[key];\n }\n return obj;\n}\n\nexport { removeUndefinedValues as a, isWindows as b, resetModules as c, isRunningInBenchmark as d, isNode as i, relativePath as r };\n","/*!\n * assertion-error\n * Copyright(c) 2013 Jake Luer \n * MIT Licensed\n */\n\n/*!\n * Return a function that will copy properties from\n * one object to another excluding any originally\n * listed. Returned function will create a new `{}`.\n *\n * @param {String} excluded properties ...\n * @return {Function}\n */\n\nfunction exclude () {\n var excludes = [].slice.call(arguments);\n\n function excludeProps (res, obj) {\n Object.keys(obj).forEach(function (key) {\n if (!~excludes.indexOf(key)) res[key] = obj[key];\n });\n }\n\n return function extendExclude () {\n var args = [].slice.call(arguments)\n , i = 0\n , res = {};\n\n for (; i < args.length; i++) {\n excludeProps(res, args[i]);\n }\n\n return res;\n };\n};\n\n/*!\n * Primary Exports\n */\n\nmodule.exports = AssertionError;\n\n/**\n * ### AssertionError\n *\n * An extension of the JavaScript `Error` constructor for\n * assertion and validation scenarios.\n *\n * @param {String} message\n * @param {Object} properties to include (optional)\n * @param {callee} start stack function (optional)\n */\n\nfunction AssertionError (message, _props, ssf) {\n var extend = exclude('name', 'message', 'stack', 'constructor', 'toJSON')\n , props = extend(_props || {});\n\n // default values\n this.message = message || 'Unspecified AssertionError';\n this.showDiff = false;\n\n // copy from properties\n for (var key in props) {\n this[key] = props[key];\n }\n\n // capture stack trace\n ssf = ssf || AssertionError;\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, ssf);\n } else {\n try {\n throw new Error();\n } catch(e) {\n this.stack = e.stack;\n }\n }\n}\n\n/*!\n * Inherit from Error.prototype\n */\n\nAssertionError.prototype = Object.create(Error.prototype);\n\n/*!\n * Statically set name\n */\n\nAssertionError.prototype.name = 'AssertionError';\n\n/*!\n * Ensure correct constructor\n */\n\nAssertionError.prototype.constructor = AssertionError;\n\n/**\n * Allow errors to be converted to JSON for static transfer.\n *\n * @param {Boolean} include stack (default: `true`)\n * @return {Object} object that can be `JSON.stringify`\n */\n\nAssertionError.prototype.toJSON = function (stack) {\n var extend = exclude('constructor', 'toJSON', 'stack')\n , props = extend({ name: this.name }, this);\n\n // include stack if exists and not turned off\n if (false !== stack && this.stack) {\n props.stack = this.stack;\n }\n\n return props;\n};\n","'use strict';\n\n/* !\n * Chai - pathval utility\n * Copyright(c) 2012-2014 Jake Luer \n * @see https://github.com/logicalparadox/filtr\n * MIT Licensed\n */\n\n/**\n * ### .hasProperty(object, name)\n *\n * This allows checking whether an object has own\n * or inherited from prototype chain named property.\n *\n * Basically does the same thing as the `in`\n * operator but works properly with null/undefined values\n * and other primitives.\n *\n * var obj = {\n * arr: ['a', 'b', 'c']\n * , str: 'Hello'\n * }\n *\n * The following would be the results.\n *\n * hasProperty(obj, 'str'); // true\n * hasProperty(obj, 'constructor'); // true\n * hasProperty(obj, 'bar'); // false\n *\n * hasProperty(obj.str, 'length'); // true\n * hasProperty(obj.str, 1); // true\n * hasProperty(obj.str, 5); // false\n *\n * hasProperty(obj.arr, 'length'); // true\n * hasProperty(obj.arr, 2); // true\n * hasProperty(obj.arr, 3); // false\n *\n * @param {Object} object\n * @param {String|Symbol} name\n * @returns {Boolean} whether it exists\n * @namespace Utils\n * @name hasProperty\n * @api public\n */\n\nfunction hasProperty(obj, name) {\n if (typeof obj === 'undefined' || obj === null) {\n return false;\n }\n\n // The `in` operator does not work with primitives.\n return name in Object(obj);\n}\n\n/* !\n * ## parsePath(path)\n *\n * Helper function used to parse string object\n * paths. Use in conjunction with `internalGetPathValue`.\n *\n * var parsed = parsePath('myobject.property.subprop');\n *\n * ### Paths:\n *\n * * Can be infinitely deep and nested.\n * * Arrays are also valid using the formal `myobject.document[3].property`.\n * * Literal dots and brackets (not delimiter) must be backslash-escaped.\n *\n * @param {String} path\n * @returns {Object} parsed\n * @api private\n */\n\nfunction parsePath(path) {\n var str = path.replace(/([^\\\\])\\[/g, '$1.[');\n var parts = str.match(/(\\\\\\.|[^.]+?)+/g);\n return parts.map(function mapMatches(value) {\n if (\n value === 'constructor' ||\n value === '__proto__' ||\n value === 'prototype'\n ) {\n return {};\n }\n var regexp = /^\\[(\\d+)\\]$/;\n var mArr = regexp.exec(value);\n var parsed = null;\n if (mArr) {\n parsed = { i: parseFloat(mArr[1]) };\n } else {\n parsed = { p: value.replace(/\\\\([.[\\]])/g, '$1') };\n }\n\n return parsed;\n });\n}\n\n/* !\n * ## internalGetPathValue(obj, parsed[, pathDepth])\n *\n * Helper companion function for `.parsePath` that returns\n * the value located at the parsed address.\n *\n * var value = getPathValue(obj, parsed);\n *\n * @param {Object} object to search against\n * @param {Object} parsed definition from `parsePath`.\n * @param {Number} depth (nesting level) of the property we want to retrieve\n * @returns {Object|Undefined} value\n * @api private\n */\n\nfunction internalGetPathValue(obj, parsed, pathDepth) {\n var temporaryValue = obj;\n var res = null;\n pathDepth = typeof pathDepth === 'undefined' ? parsed.length : pathDepth;\n\n for (var i = 0; i < pathDepth; i++) {\n var part = parsed[i];\n if (temporaryValue) {\n if (typeof part.p === 'undefined') {\n temporaryValue = temporaryValue[part.i];\n } else {\n temporaryValue = temporaryValue[part.p];\n }\n\n if (i === pathDepth - 1) {\n res = temporaryValue;\n }\n }\n }\n\n return res;\n}\n\n/* !\n * ## internalSetPathValue(obj, value, parsed)\n *\n * Companion function for `parsePath` that sets\n * the value located at a parsed address.\n *\n * internalSetPathValue(obj, 'value', parsed);\n *\n * @param {Object} object to search and define on\n * @param {*} value to use upon set\n * @param {Object} parsed definition from `parsePath`\n * @api private\n */\n\nfunction internalSetPathValue(obj, val, parsed) {\n var tempObj = obj;\n var pathDepth = parsed.length;\n var part = null;\n // Here we iterate through every part of the path\n for (var i = 0; i < pathDepth; i++) {\n var propName = null;\n var propVal = null;\n part = parsed[i];\n\n // If it's the last part of the path, we set the 'propName' value with the property name\n if (i === pathDepth - 1) {\n propName = typeof part.p === 'undefined' ? part.i : part.p;\n // Now we set the property with the name held by 'propName' on object with the desired val\n tempObj[propName] = val;\n } else if (typeof part.p !== 'undefined' && tempObj[part.p]) {\n tempObj = tempObj[part.p];\n } else if (typeof part.i !== 'undefined' && tempObj[part.i]) {\n tempObj = tempObj[part.i];\n } else {\n // If the obj doesn't have the property we create one with that name to define it\n var next = parsed[i + 1];\n // Here we set the name of the property which will be defined\n propName = typeof part.p === 'undefined' ? part.i : part.p;\n // Here we decide if this property will be an array or a new object\n propVal = typeof next.p === 'undefined' ? [] : {};\n tempObj[propName] = propVal;\n tempObj = tempObj[propName];\n }\n }\n}\n\n/**\n * ### .getPathInfo(object, path)\n *\n * This allows the retrieval of property info in an\n * object given a string path.\n *\n * The path info consists of an object with the\n * following properties:\n *\n * * parent - The parent object of the property referenced by `path`\n * * name - The name of the final property, a number if it was an array indexer\n * * value - The value of the property, if it exists, otherwise `undefined`\n * * exists - Whether the property exists or not\n *\n * @param {Object} object\n * @param {String} path\n * @returns {Object} info\n * @namespace Utils\n * @name getPathInfo\n * @api public\n */\n\nfunction getPathInfo(obj, path) {\n var parsed = parsePath(path);\n var last = parsed[parsed.length - 1];\n var info = {\n parent:\n parsed.length > 1 ?\n internalGetPathValue(obj, parsed, parsed.length - 1) :\n obj,\n name: last.p || last.i,\n value: internalGetPathValue(obj, parsed),\n };\n info.exists = hasProperty(info.parent, info.name);\n\n return info;\n}\n\n/**\n * ### .getPathValue(object, path)\n *\n * This allows the retrieval of values in an\n * object given a string path.\n *\n * var obj = {\n * prop1: {\n * arr: ['a', 'b', 'c']\n * , str: 'Hello'\n * }\n * , prop2: {\n * arr: [ { nested: 'Universe' } ]\n * , str: 'Hello again!'\n * }\n * }\n *\n * The following would be the results.\n *\n * getPathValue(obj, 'prop1.str'); // Hello\n * getPathValue(obj, 'prop1.att[2]'); // b\n * getPathValue(obj, 'prop2.arr[0].nested'); // Universe\n *\n * @param {Object} object\n * @param {String} path\n * @returns {Object} value or `undefined`\n * @namespace Utils\n * @name getPathValue\n * @api public\n */\n\nfunction getPathValue(obj, path) {\n var info = getPathInfo(obj, path);\n return info.value;\n}\n\n/**\n * ### .setPathValue(object, path, value)\n *\n * Define the value in an object at a given string path.\n *\n * ```js\n * var obj = {\n * prop1: {\n * arr: ['a', 'b', 'c']\n * , str: 'Hello'\n * }\n * , prop2: {\n * arr: [ { nested: 'Universe' } ]\n * , str: 'Hello again!'\n * }\n * };\n * ```\n *\n * The following would be acceptable.\n *\n * ```js\n * var properties = require('tea-properties');\n * properties.set(obj, 'prop1.str', 'Hello Universe!');\n * properties.set(obj, 'prop1.arr[2]', 'B');\n * properties.set(obj, 'prop2.arr[0].nested.value', { hello: 'universe' });\n * ```\n *\n * @param {Object} object\n * @param {String} path\n * @param {Mixed} value\n * @api private\n */\n\nfunction setPathValue(obj, path, val) {\n var parsed = parsePath(path);\n internalSetPathValue(obj, val, parsed);\n return obj;\n}\n\nmodule.exports = {\n hasProperty: hasProperty,\n getPathInfo: getPathInfo,\n getPathValue: getPathValue,\n setPathValue: setPathValue,\n};\n","/*!\n * Chai - flag utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .flag(object, key, [value])\n *\n * Get or set a flag value on an object. If a\n * value is provided it will be set, else it will\n * return the currently set value or `undefined` if\n * the value is not set.\n *\n * utils.flag(this, 'foo', 'bar'); // setter\n * utils.flag(this, 'foo'); // getter, returns `bar`\n *\n * @param {Object} object constructed Assertion\n * @param {String} key\n * @param {Mixed} value (optional)\n * @namespace Utils\n * @name flag\n * @api private\n */\n\nmodule.exports = function flag(obj, key, value) {\n var flags = obj.__flags || (obj.__flags = Object.create(null));\n if (arguments.length === 3) {\n flags[key] = value;\n } else {\n return flags[key];\n }\n};\n","/*!\n * Chai - test utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/*!\n * Module dependencies\n */\n\nvar flag = require('./flag');\n\n/**\n * ### .test(object, expression)\n *\n * Test and object for expression.\n *\n * @param {Object} object (constructed Assertion)\n * @param {Arguments} chai.Assertion.prototype.assert arguments\n * @namespace Utils\n * @name test\n */\n\nmodule.exports = function test(obj, args) {\n var negate = flag(obj, 'negate')\n , expr = args[0];\n return negate ? !expr : expr;\n};\n","(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n\ttypeof define === 'function' && define.amd ? define(factory) :\n\t(global.typeDetect = factory());\n}(this, (function () { 'use strict';\n\n/* !\n * type-detect\n * Copyright(c) 2013 jake luer \n * MIT Licensed\n */\nvar promiseExists = typeof Promise === 'function';\n\n/* eslint-disable no-undef */\nvar globalObject = typeof self === 'object' ? self : global; // eslint-disable-line id-blacklist\n\nvar symbolExists = typeof Symbol !== 'undefined';\nvar mapExists = typeof Map !== 'undefined';\nvar setExists = typeof Set !== 'undefined';\nvar weakMapExists = typeof WeakMap !== 'undefined';\nvar weakSetExists = typeof WeakSet !== 'undefined';\nvar dataViewExists = typeof DataView !== 'undefined';\nvar symbolIteratorExists = symbolExists && typeof Symbol.iterator !== 'undefined';\nvar symbolToStringTagExists = symbolExists && typeof Symbol.toStringTag !== 'undefined';\nvar setEntriesExists = setExists && typeof Set.prototype.entries === 'function';\nvar mapEntriesExists = mapExists && typeof Map.prototype.entries === 'function';\nvar setIteratorPrototype = setEntriesExists && Object.getPrototypeOf(new Set().entries());\nvar mapIteratorPrototype = mapEntriesExists && Object.getPrototypeOf(new Map().entries());\nvar arrayIteratorExists = symbolIteratorExists && typeof Array.prototype[Symbol.iterator] === 'function';\nvar arrayIteratorPrototype = arrayIteratorExists && Object.getPrototypeOf([][Symbol.iterator]());\nvar stringIteratorExists = symbolIteratorExists && typeof String.prototype[Symbol.iterator] === 'function';\nvar stringIteratorPrototype = stringIteratorExists && Object.getPrototypeOf(''[Symbol.iterator]());\nvar toStringLeftSliceLength = 8;\nvar toStringRightSliceLength = -1;\n/**\n * ### typeOf (obj)\n *\n * Uses `Object.prototype.toString` to determine the type of an object,\n * normalising behaviour across engine versions & well optimised.\n *\n * @param {Mixed} object\n * @return {String} object type\n * @api public\n */\nfunction typeDetect(obj) {\n /* ! Speed optimisation\n * Pre:\n * string literal x 3,039,035 ops/sec ±1.62% (78 runs sampled)\n * boolean literal x 1,424,138 ops/sec ±4.54% (75 runs sampled)\n * number literal x 1,653,153 ops/sec ±1.91% (82 runs sampled)\n * undefined x 9,978,660 ops/sec ±1.92% (75 runs sampled)\n * function x 2,556,769 ops/sec ±1.73% (77 runs sampled)\n * Post:\n * string literal x 38,564,796 ops/sec ±1.15% (79 runs sampled)\n * boolean literal x 31,148,940 ops/sec ±1.10% (79 runs sampled)\n * number literal x 32,679,330 ops/sec ±1.90% (78 runs sampled)\n * undefined x 32,363,368 ops/sec ±1.07% (82 runs sampled)\n * function x 31,296,870 ops/sec ±0.96% (83 runs sampled)\n */\n var typeofObj = typeof obj;\n if (typeofObj !== 'object') {\n return typeofObj;\n }\n\n /* ! Speed optimisation\n * Pre:\n * null x 28,645,765 ops/sec ±1.17% (82 runs sampled)\n * Post:\n * null x 36,428,962 ops/sec ±1.37% (84 runs sampled)\n */\n if (obj === null) {\n return 'null';\n }\n\n /* ! Spec Conformance\n * Test: `Object.prototype.toString.call(window)``\n * - Node === \"[object global]\"\n * - Chrome === \"[object global]\"\n * - Firefox === \"[object Window]\"\n * - PhantomJS === \"[object Window]\"\n * - Safari === \"[object Window]\"\n * - IE 11 === \"[object Window]\"\n * - IE Edge === \"[object Window]\"\n * Test: `Object.prototype.toString.call(this)``\n * - Chrome Worker === \"[object global]\"\n * - Firefox Worker === \"[object DedicatedWorkerGlobalScope]\"\n * - Safari Worker === \"[object DedicatedWorkerGlobalScope]\"\n * - IE 11 Worker === \"[object WorkerGlobalScope]\"\n * - IE Edge Worker === \"[object WorkerGlobalScope]\"\n */\n if (obj === globalObject) {\n return 'global';\n }\n\n /* ! Speed optimisation\n * Pre:\n * array literal x 2,888,352 ops/sec ±0.67% (82 runs sampled)\n * Post:\n * array literal x 22,479,650 ops/sec ±0.96% (81 runs sampled)\n */\n if (\n Array.isArray(obj) &&\n (symbolToStringTagExists === false || !(Symbol.toStringTag in obj))\n ) {\n return 'Array';\n }\n\n // Not caching existence of `window` and related properties due to potential\n // for `window` to be unset before tests in quasi-browser environments.\n if (typeof window === 'object' && window !== null) {\n /* ! Spec Conformance\n * (https://html.spec.whatwg.org/multipage/browsers.html#location)\n * WhatWG HTML$7.7.3 - The `Location` interface\n * Test: `Object.prototype.toString.call(window.location)``\n * - IE <=11 === \"[object Object]\"\n * - IE Edge <=13 === \"[object Object]\"\n */\n if (typeof window.location === 'object' && obj === window.location) {\n return 'Location';\n }\n\n /* ! Spec Conformance\n * (https://html.spec.whatwg.org/#document)\n * WhatWG HTML$3.1.1 - The `Document` object\n * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-26809268)\n * which suggests that browsers should use HTMLTableCellElement for\n * both TD and TH elements. WhatWG separates these.\n * WhatWG HTML states:\n * > For historical reasons, Window objects must also have a\n * > writable, configurable, non-enumerable property named\n * > HTMLDocument whose value is the Document interface object.\n * Test: `Object.prototype.toString.call(document)``\n * - Chrome === \"[object HTMLDocument]\"\n * - Firefox === \"[object HTMLDocument]\"\n * - Safari === \"[object HTMLDocument]\"\n * - IE <=10 === \"[object Document]\"\n * - IE 11 === \"[object HTMLDocument]\"\n * - IE Edge <=13 === \"[object HTMLDocument]\"\n */\n if (typeof window.document === 'object' && obj === window.document) {\n return 'Document';\n }\n\n if (typeof window.navigator === 'object') {\n /* ! Spec Conformance\n * (https://html.spec.whatwg.org/multipage/webappapis.html#mimetypearray)\n * WhatWG HTML$8.6.1.5 - Plugins - Interface MimeTypeArray\n * Test: `Object.prototype.toString.call(navigator.mimeTypes)``\n * - IE <=10 === \"[object MSMimeTypesCollection]\"\n */\n if (typeof window.navigator.mimeTypes === 'object' &&\n obj === window.navigator.mimeTypes) {\n return 'MimeTypeArray';\n }\n\n /* ! Spec Conformance\n * (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray)\n * WhatWG HTML$8.6.1.5 - Plugins - Interface PluginArray\n * Test: `Object.prototype.toString.call(navigator.plugins)``\n * - IE <=10 === \"[object MSPluginsCollection]\"\n */\n if (typeof window.navigator.plugins === 'object' &&\n obj === window.navigator.plugins) {\n return 'PluginArray';\n }\n }\n\n if ((typeof window.HTMLElement === 'function' ||\n typeof window.HTMLElement === 'object') &&\n obj instanceof window.HTMLElement) {\n /* ! Spec Conformance\n * (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray)\n * WhatWG HTML$4.4.4 - The `blockquote` element - Interface `HTMLQuoteElement`\n * Test: `Object.prototype.toString.call(document.createElement('blockquote'))``\n * - IE <=10 === \"[object HTMLBlockElement]\"\n */\n if (obj.tagName === 'BLOCKQUOTE') {\n return 'HTMLQuoteElement';\n }\n\n /* ! Spec Conformance\n * (https://html.spec.whatwg.org/#htmltabledatacellelement)\n * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableDataCellElement`\n * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075)\n * which suggests that browsers should use HTMLTableCellElement for\n * both TD and TH elements. WhatWG separates these.\n * Test: Object.prototype.toString.call(document.createElement('td'))\n * - Chrome === \"[object HTMLTableCellElement]\"\n * - Firefox === \"[object HTMLTableCellElement]\"\n * - Safari === \"[object HTMLTableCellElement]\"\n */\n if (obj.tagName === 'TD') {\n return 'HTMLTableDataCellElement';\n }\n\n /* ! Spec Conformance\n * (https://html.spec.whatwg.org/#htmltableheadercellelement)\n * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableHeaderCellElement`\n * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075)\n * which suggests that browsers should use HTMLTableCellElement for\n * both TD and TH elements. WhatWG separates these.\n * Test: Object.prototype.toString.call(document.createElement('th'))\n * - Chrome === \"[object HTMLTableCellElement]\"\n * - Firefox === \"[object HTMLTableCellElement]\"\n * - Safari === \"[object HTMLTableCellElement]\"\n */\n if (obj.tagName === 'TH') {\n return 'HTMLTableHeaderCellElement';\n }\n }\n }\n\n /* ! Speed optimisation\n * Pre:\n * Float64Array x 625,644 ops/sec ±1.58% (80 runs sampled)\n * Float32Array x 1,279,852 ops/sec ±2.91% (77 runs sampled)\n * Uint32Array x 1,178,185 ops/sec ±1.95% (83 runs sampled)\n * Uint16Array x 1,008,380 ops/sec ±2.25% (80 runs sampled)\n * Uint8Array x 1,128,040 ops/sec ±2.11% (81 runs sampled)\n * Int32Array x 1,170,119 ops/sec ±2.88% (80 runs sampled)\n * Int16Array x 1,176,348 ops/sec ±5.79% (86 runs sampled)\n * Int8Array x 1,058,707 ops/sec ±4.94% (77 runs sampled)\n * Uint8ClampedArray x 1,110,633 ops/sec ±4.20% (80 runs sampled)\n * Post:\n * Float64Array x 7,105,671 ops/sec ±13.47% (64 runs sampled)\n * Float32Array x 5,887,912 ops/sec ±1.46% (82 runs sampled)\n * Uint32Array x 6,491,661 ops/sec ±1.76% (79 runs sampled)\n * Uint16Array x 6,559,795 ops/sec ±1.67% (82 runs sampled)\n * Uint8Array x 6,463,966 ops/sec ±1.43% (85 runs sampled)\n * Int32Array x 5,641,841 ops/sec ±3.49% (81 runs sampled)\n * Int16Array x 6,583,511 ops/sec ±1.98% (80 runs sampled)\n * Int8Array x 6,606,078 ops/sec ±1.74% (81 runs sampled)\n * Uint8ClampedArray x 6,602,224 ops/sec ±1.77% (83 runs sampled)\n */\n var stringTag = (symbolToStringTagExists && obj[Symbol.toStringTag]);\n if (typeof stringTag === 'string') {\n return stringTag;\n }\n\n var objPrototype = Object.getPrototypeOf(obj);\n /* ! Speed optimisation\n * Pre:\n * regex literal x 1,772,385 ops/sec ±1.85% (77 runs sampled)\n * regex constructor x 2,143,634 ops/sec ±2.46% (78 runs sampled)\n * Post:\n * regex literal x 3,928,009 ops/sec ±0.65% (78 runs sampled)\n * regex constructor x 3,931,108 ops/sec ±0.58% (84 runs sampled)\n */\n if (objPrototype === RegExp.prototype) {\n return 'RegExp';\n }\n\n /* ! Speed optimisation\n * Pre:\n * date x 2,130,074 ops/sec ±4.42% (68 runs sampled)\n * Post:\n * date x 3,953,779 ops/sec ±1.35% (77 runs sampled)\n */\n if (objPrototype === Date.prototype) {\n return 'Date';\n }\n\n /* ! Spec Conformance\n * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-promise.prototype-@@tostringtag)\n * ES6$25.4.5.4 - Promise.prototype[@@toStringTag] should be \"Promise\":\n * Test: `Object.prototype.toString.call(Promise.resolve())``\n * - Chrome <=47 === \"[object Object]\"\n * - Edge <=20 === \"[object Object]\"\n * - Firefox 29-Latest === \"[object Promise]\"\n * - Safari 7.1-Latest === \"[object Promise]\"\n */\n if (promiseExists && objPrototype === Promise.prototype) {\n return 'Promise';\n }\n\n /* ! Speed optimisation\n * Pre:\n * set x 2,222,186 ops/sec ±1.31% (82 runs sampled)\n * Post:\n * set x 4,545,879 ops/sec ±1.13% (83 runs sampled)\n */\n if (setExists && objPrototype === Set.prototype) {\n return 'Set';\n }\n\n /* ! Speed optimisation\n * Pre:\n * map x 2,396,842 ops/sec ±1.59% (81 runs sampled)\n * Post:\n * map x 4,183,945 ops/sec ±6.59% (82 runs sampled)\n */\n if (mapExists && objPrototype === Map.prototype) {\n return 'Map';\n }\n\n /* ! Speed optimisation\n * Pre:\n * weakset x 1,323,220 ops/sec ±2.17% (76 runs sampled)\n * Post:\n * weakset x 4,237,510 ops/sec ±2.01% (77 runs sampled)\n */\n if (weakSetExists && objPrototype === WeakSet.prototype) {\n return 'WeakSet';\n }\n\n /* ! Speed optimisation\n * Pre:\n * weakmap x 1,500,260 ops/sec ±2.02% (78 runs sampled)\n * Post:\n * weakmap x 3,881,384 ops/sec ±1.45% (82 runs sampled)\n */\n if (weakMapExists && objPrototype === WeakMap.prototype) {\n return 'WeakMap';\n }\n\n /* ! Spec Conformance\n * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-dataview.prototype-@@tostringtag)\n * ES6$24.2.4.21 - DataView.prototype[@@toStringTag] should be \"DataView\":\n * Test: `Object.prototype.toString.call(new DataView(new ArrayBuffer(1)))``\n * - Edge <=13 === \"[object Object]\"\n */\n if (dataViewExists && objPrototype === DataView.prototype) {\n return 'DataView';\n }\n\n /* ! Spec Conformance\n * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%mapiteratorprototype%-@@tostringtag)\n * ES6$23.1.5.2.2 - %MapIteratorPrototype%[@@toStringTag] should be \"Map Iterator\":\n * Test: `Object.prototype.toString.call(new Map().entries())``\n * - Edge <=13 === \"[object Object]\"\n */\n if (mapExists && objPrototype === mapIteratorPrototype) {\n return 'Map Iterator';\n }\n\n /* ! Spec Conformance\n * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%setiteratorprototype%-@@tostringtag)\n * ES6$23.2.5.2.2 - %SetIteratorPrototype%[@@toStringTag] should be \"Set Iterator\":\n * Test: `Object.prototype.toString.call(new Set().entries())``\n * - Edge <=13 === \"[object Object]\"\n */\n if (setExists && objPrototype === setIteratorPrototype) {\n return 'Set Iterator';\n }\n\n /* ! Spec Conformance\n * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%arrayiteratorprototype%-@@tostringtag)\n * ES6$22.1.5.2.2 - %ArrayIteratorPrototype%[@@toStringTag] should be \"Array Iterator\":\n * Test: `Object.prototype.toString.call([][Symbol.iterator]())``\n * - Edge <=13 === \"[object Object]\"\n */\n if (arrayIteratorExists && objPrototype === arrayIteratorPrototype) {\n return 'Array Iterator';\n }\n\n /* ! Spec Conformance\n * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%stringiteratorprototype%-@@tostringtag)\n * ES6$21.1.5.2.2 - %StringIteratorPrototype%[@@toStringTag] should be \"String Iterator\":\n * Test: `Object.prototype.toString.call(''[Symbol.iterator]())``\n * - Edge <=13 === \"[object Object]\"\n */\n if (stringIteratorExists && objPrototype === stringIteratorPrototype) {\n return 'String Iterator';\n }\n\n /* ! Speed optimisation\n * Pre:\n * object from null x 2,424,320 ops/sec ±1.67% (76 runs sampled)\n * Post:\n * object from null x 5,838,000 ops/sec ±0.99% (84 runs sampled)\n */\n if (objPrototype === null) {\n return 'Object';\n }\n\n return Object\n .prototype\n .toString\n .call(obj)\n .slice(toStringLeftSliceLength, toStringRightSliceLength);\n}\n\nreturn typeDetect;\n\n})));\n","/*!\n * Chai - expectTypes utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .expectTypes(obj, types)\n *\n * Ensures that the object being tested against is of a valid type.\n *\n * utils.expectTypes(this, ['array', 'object', 'string']);\n *\n * @param {Mixed} obj constructed Assertion\n * @param {Array} type A list of allowed types for this assertion\n * @namespace Utils\n * @name expectTypes\n * @api public\n */\n\nvar AssertionError = require('assertion-error');\nvar flag = require('./flag');\nvar type = require('type-detect');\n\nmodule.exports = function expectTypes(obj, types) {\n var flagMsg = flag(obj, 'message');\n var ssfi = flag(obj, 'ssfi');\n\n flagMsg = flagMsg ? flagMsg + ': ' : '';\n\n obj = flag(obj, 'object');\n types = types.map(function (t) { return t.toLowerCase(); });\n types.sort();\n\n // Transforms ['lorem', 'ipsum'] into 'a lorem, or an ipsum'\n var str = types.map(function (t, index) {\n var art = ~[ 'a', 'e', 'i', 'o', 'u' ].indexOf(t.charAt(0)) ? 'an' : 'a';\n var or = types.length > 1 && index === types.length - 1 ? 'or ' : '';\n return or + art + ' ' + t;\n }).join(', ');\n\n var objType = type(obj).toLowerCase();\n\n if (!types.some(function (expected) { return objType === expected; })) {\n throw new AssertionError(\n flagMsg + 'object tested must be ' + str + ', but ' + objType + ' given',\n undefined,\n ssfi\n );\n }\n};\n","/*!\n * Chai - getActual utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .getActual(object, [actual])\n *\n * Returns the `actual` value for an Assertion.\n *\n * @param {Object} object (constructed Assertion)\n * @param {Arguments} chai.Assertion.prototype.assert arguments\n * @namespace Utils\n * @name getActual\n */\n\nmodule.exports = function getActual(obj, args) {\n return args.length > 4 ? args[4] : obj._obj;\n};\n","'use strict';\n\n/* !\n * Chai - getFuncName utility\n * Copyright(c) 2012-2016 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .getFuncName(constructorFn)\n *\n * Returns the name of a function.\n * When a non-function instance is passed, returns `null`.\n * This also includes a polyfill function if `aFunc.name` is not defined.\n *\n * @name getFuncName\n * @param {Function} funct\n * @namespace Utils\n * @api public\n */\n\nvar toString = Function.prototype.toString;\nvar functionNameMatch = /\\s*function(?:\\s|\\s*\\/\\*[^(?:*\\/)]+\\*\\/\\s*)*([^\\s\\(\\/]+)/;\nfunction getFuncName(aFunc) {\n if (typeof aFunc !== 'function') {\n return null;\n }\n\n var name = '';\n if (typeof Function.prototype.name === 'undefined' && typeof aFunc.name === 'undefined') {\n // Here we run a polyfill if Function does not support the `name` property and if aFunc.name is not defined\n var match = toString.call(aFunc).match(functionNameMatch);\n if (match) {\n name = match[1];\n }\n } else {\n // If we've got a `name` property we just use it\n name = aFunc.name;\n }\n\n return name;\n}\n\nmodule.exports = getFuncName;\n","module.exports = {\n\n /**\n * ### config.includeStack\n *\n * User configurable property, influences whether stack trace\n * is included in Assertion error message. Default of false\n * suppresses stack trace in the error message.\n *\n * chai.config.includeStack = true; // enable stack on error\n *\n * @param {Boolean}\n * @api public\n */\n\n includeStack: false,\n\n /**\n * ### config.showDiff\n *\n * User configurable property, influences whether or not\n * the `showDiff` flag should be included in the thrown\n * AssertionErrors. `false` will always be `false`; `true`\n * will be true when the assertion has requested a diff\n * be shown.\n *\n * @param {Boolean}\n * @api public\n */\n\n showDiff: true,\n\n /**\n * ### config.truncateThreshold\n *\n * User configurable property, sets length threshold for actual and\n * expected values in assertion errors. If this threshold is exceeded, for\n * example for large data structures, the value is replaced with something\n * like `[ Array(3) ]` or `{ Object (prop1, prop2) }`.\n *\n * Set it to zero if you want to disable truncating altogether.\n *\n * This is especially userful when doing assertions on arrays: having this\n * set to a reasonable large value makes the failure messages readily\n * inspectable.\n *\n * chai.config.truncateThreshold = 0; // disable truncating\n *\n * @param {Number}\n * @api public\n */\n\n truncateThreshold: 40,\n\n /**\n * ### config.useProxy\n *\n * User configurable property, defines if chai will use a Proxy to throw\n * an error when a non-existent property is read, which protects users\n * from typos when using property-based assertions.\n *\n * Set it to false if you want to disable this feature.\n *\n * chai.config.useProxy = false; // disable use of Proxy\n *\n * This feature is automatically disabled regardless of this config value\n * in environments that don't support proxies.\n *\n * @param {Boolean}\n * @api public\n */\n\n useProxy: true,\n\n /**\n * ### config.proxyExcludedKeys\n *\n * User configurable property, defines which properties should be ignored\n * instead of throwing an error if they do not exist on the assertion.\n * This is only applied if the environment Chai is running in supports proxies and\n * if the `useProxy` configuration setting is enabled.\n * By default, `then` and `inspect` will not throw an error if they do not exist on the\n * assertion object because the `.inspect` property is read by `util.inspect` (for example, when\n * using `console.log` on the assertion object) and `.then` is necessary for promise type-checking.\n *\n * // By default these keys will not throw an error if they do not exist on the assertion object\n * chai.config.proxyExcludedKeys = ['then', 'inspect'];\n *\n * @param {Array}\n * @api public\n */\n\n proxyExcludedKeys: ['then', 'catch', 'inspect', 'toJSON']\n};\n","// This is (almost) directly from Node.js utils\n// https://github.com/joyent/node/blob/f8c335d0caf47f16d31413f89aa28eda3878e3aa/lib/util.js\n\nvar getName = require('get-func-name');\nvar loupe = require('loupe');\nvar config = require('../config');\n\nmodule.exports = inspect;\n\n/**\n * ### .inspect(obj, [showHidden], [depth], [colors])\n *\n * Echoes the value of a value. Tries to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Boolean} showHidden Flag that shows hidden (not enumerable)\n * properties of objects. Default is false.\n * @param {Number} depth Depth in which to descend in object. Default is 2.\n * @param {Boolean} colors Flag to turn on ANSI escape codes to color the\n * output. Default is false (no coloring).\n * @namespace Utils\n * @name inspect\n */\nfunction inspect(obj, showHidden, depth, colors) {\n var options = {\n colors: colors,\n depth: (typeof depth === 'undefined' ? 2 : depth),\n showHidden: showHidden,\n truncate: config.truncateThreshold ? config.truncateThreshold : Infinity,\n };\n return loupe.inspect(obj, options);\n}\n","/*!\n * Chai - flag utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/*!\n * Module dependencies\n */\n\nvar inspect = require('./inspect');\nvar config = require('../config');\n\n/**\n * ### .objDisplay(object)\n *\n * Determines if an object or an array matches\n * criteria to be inspected in-line for error\n * messages or should be truncated.\n *\n * @param {Mixed} javascript object to inspect\n * @name objDisplay\n * @namespace Utils\n * @api public\n */\n\nmodule.exports = function objDisplay(obj) {\n var str = inspect(obj)\n , type = Object.prototype.toString.call(obj);\n\n if (config.truncateThreshold && str.length >= config.truncateThreshold) {\n if (type === '[object Function]') {\n return !obj.name || obj.name === ''\n ? '[Function]'\n : '[Function: ' + obj.name + ']';\n } else if (type === '[object Array]') {\n return '[ Array(' + obj.length + ') ]';\n } else if (type === '[object Object]') {\n var keys = Object.keys(obj)\n , kstr = keys.length > 2\n ? keys.splice(0, 2).join(', ') + ', ...'\n : keys.join(', ');\n return '{ Object (' + kstr + ') }';\n } else {\n return str;\n }\n } else {\n return str;\n }\n};\n","/*!\n * Chai - message composition utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/*!\n * Module dependencies\n */\n\nvar flag = require('./flag')\n , getActual = require('./getActual')\n , objDisplay = require('./objDisplay');\n\n/**\n * ### .getMessage(object, message, negateMessage)\n *\n * Construct the error message based on flags\n * and template tags. Template tags will return\n * a stringified inspection of the object referenced.\n *\n * Message template tags:\n * - `#{this}` current asserted object\n * - `#{act}` actual value\n * - `#{exp}` expected value\n *\n * @param {Object} object (constructed Assertion)\n * @param {Arguments} chai.Assertion.prototype.assert arguments\n * @namespace Utils\n * @name getMessage\n * @api public\n */\n\nmodule.exports = function getMessage(obj, args) {\n var negate = flag(obj, 'negate')\n , val = flag(obj, 'object')\n , expected = args[3]\n , actual = getActual(obj, args)\n , msg = negate ? args[2] : args[1]\n , flagMsg = flag(obj, 'message');\n\n if(typeof msg === \"function\") msg = msg();\n msg = msg || '';\n msg = msg\n .replace(/#\\{this\\}/g, function () { return objDisplay(val); })\n .replace(/#\\{act\\}/g, function () { return objDisplay(actual); })\n .replace(/#\\{exp\\}/g, function () { return objDisplay(expected); });\n\n return flagMsg ? flagMsg + ': ' + msg : msg;\n};\n","/*!\n * Chai - transferFlags utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .transferFlags(assertion, object, includeAll = true)\n *\n * Transfer all the flags for `assertion` to `object`. If\n * `includeAll` is set to `false`, then the base Chai\n * assertion flags (namely `object`, `ssfi`, `lockSsfi`,\n * and `message`) will not be transferred.\n *\n *\n * var newAssertion = new Assertion();\n * utils.transferFlags(assertion, newAssertion);\n *\n * var anotherAssertion = new Assertion(myObj);\n * utils.transferFlags(assertion, anotherAssertion, false);\n *\n * @param {Assertion} assertion the assertion to transfer the flags from\n * @param {Object} object the object to transfer the flags to; usually a new assertion\n * @param {Boolean} includeAll\n * @namespace Utils\n * @name transferFlags\n * @api private\n */\n\nmodule.exports = function transferFlags(assertion, object, includeAll) {\n var flags = assertion.__flags || (assertion.__flags = Object.create(null));\n\n if (!object.__flags) {\n object.__flags = Object.create(null);\n }\n\n includeAll = arguments.length === 3 ? includeAll : true;\n\n for (var flag in flags) {\n if (includeAll ||\n (flag !== 'object' && flag !== 'ssfi' && flag !== 'lockSsfi' && flag != 'message')) {\n object.__flags[flag] = flags[flag];\n }\n }\n};\n","'use strict';\n/* globals Symbol: false, Uint8Array: false, WeakMap: false */\n/*!\n * deep-eql\n * Copyright(c) 2013 Jake Luer \n * MIT Licensed\n */\n\nvar type = require('type-detect');\nfunction FakeMap() {\n this._key = 'chai/deep-eql__' + Math.random() + Date.now();\n}\n\nFakeMap.prototype = {\n get: function get(key) {\n return key[this._key];\n },\n set: function set(key, value) {\n if (Object.isExtensible(key)) {\n Object.defineProperty(key, this._key, {\n value: value,\n configurable: true,\n });\n }\n },\n};\n\nvar MemoizeMap = typeof WeakMap === 'function' ? WeakMap : FakeMap;\n/*!\n * Check to see if the MemoizeMap has recorded a result of the two operands\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {MemoizeMap} memoizeMap\n * @returns {Boolean|null} result\n*/\nfunction memoizeCompare(leftHandOperand, rightHandOperand, memoizeMap) {\n // Technically, WeakMap keys can *only* be objects, not primitives.\n if (!memoizeMap || isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) {\n return null;\n }\n var leftHandMap = memoizeMap.get(leftHandOperand);\n if (leftHandMap) {\n var result = leftHandMap.get(rightHandOperand);\n if (typeof result === 'boolean') {\n return result;\n }\n }\n return null;\n}\n\n/*!\n * Set the result of the equality into the MemoizeMap\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {MemoizeMap} memoizeMap\n * @param {Boolean} result\n*/\nfunction memoizeSet(leftHandOperand, rightHandOperand, memoizeMap, result) {\n // Technically, WeakMap keys can *only* be objects, not primitives.\n if (!memoizeMap || isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) {\n return;\n }\n var leftHandMap = memoizeMap.get(leftHandOperand);\n if (leftHandMap) {\n leftHandMap.set(rightHandOperand, result);\n } else {\n leftHandMap = new MemoizeMap();\n leftHandMap.set(rightHandOperand, result);\n memoizeMap.set(leftHandOperand, leftHandMap);\n }\n}\n\n/*!\n * Primary Export\n */\n\nmodule.exports = deepEqual;\nmodule.exports.MemoizeMap = MemoizeMap;\n\n/**\n * Assert deeply nested sameValue equality between two objects of any type.\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {Object} [options] (optional) Additional options\n * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.\n * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of\n complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular\n references to blow the stack.\n * @return {Boolean} equal match\n */\nfunction deepEqual(leftHandOperand, rightHandOperand, options) {\n // If we have a comparator, we can't assume anything; so bail to its check first.\n if (options && options.comparator) {\n return extensiveDeepEqual(leftHandOperand, rightHandOperand, options);\n }\n\n var simpleResult = simpleEqual(leftHandOperand, rightHandOperand);\n if (simpleResult !== null) {\n return simpleResult;\n }\n\n // Deeper comparisons are pushed through to a larger function\n return extensiveDeepEqual(leftHandOperand, rightHandOperand, options);\n}\n\n/**\n * Many comparisons can be canceled out early via simple equality or primitive checks.\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @return {Boolean|null} equal match\n */\nfunction simpleEqual(leftHandOperand, rightHandOperand) {\n // Equal references (except for Numbers) can be returned early\n if (leftHandOperand === rightHandOperand) {\n // Handle +-0 cases\n return leftHandOperand !== 0 || 1 / leftHandOperand === 1 / rightHandOperand;\n }\n\n // handle NaN cases\n if (\n leftHandOperand !== leftHandOperand && // eslint-disable-line no-self-compare\n rightHandOperand !== rightHandOperand // eslint-disable-line no-self-compare\n ) {\n return true;\n }\n\n // Anything that is not an 'object', i.e. symbols, functions, booleans, numbers,\n // strings, and undefined, can be compared by reference.\n if (isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) {\n // Easy out b/c it would have passed the first equality check\n return false;\n }\n return null;\n}\n\n/*!\n * The main logic of the `deepEqual` function.\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {Object} [options] (optional) Additional options\n * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.\n * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of\n complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular\n references to blow the stack.\n * @return {Boolean} equal match\n*/\nfunction extensiveDeepEqual(leftHandOperand, rightHandOperand, options) {\n options = options || {};\n options.memoize = options.memoize === false ? false : options.memoize || new MemoizeMap();\n var comparator = options && options.comparator;\n\n // Check if a memoized result exists.\n var memoizeResultLeft = memoizeCompare(leftHandOperand, rightHandOperand, options.memoize);\n if (memoizeResultLeft !== null) {\n return memoizeResultLeft;\n }\n var memoizeResultRight = memoizeCompare(rightHandOperand, leftHandOperand, options.memoize);\n if (memoizeResultRight !== null) {\n return memoizeResultRight;\n }\n\n // If a comparator is present, use it.\n if (comparator) {\n var comparatorResult = comparator(leftHandOperand, rightHandOperand);\n // Comparators may return null, in which case we want to go back to default behavior.\n if (comparatorResult === false || comparatorResult === true) {\n memoizeSet(leftHandOperand, rightHandOperand, options.memoize, comparatorResult);\n return comparatorResult;\n }\n // To allow comparators to override *any* behavior, we ran them first. Since it didn't decide\n // what to do, we need to make sure to return the basic tests first before we move on.\n var simpleResult = simpleEqual(leftHandOperand, rightHandOperand);\n if (simpleResult !== null) {\n // Don't memoize this, it takes longer to set/retrieve than to just compare.\n return simpleResult;\n }\n }\n\n var leftHandType = type(leftHandOperand);\n if (leftHandType !== type(rightHandOperand)) {\n memoizeSet(leftHandOperand, rightHandOperand, options.memoize, false);\n return false;\n }\n\n // Temporarily set the operands in the memoize object to prevent blowing the stack\n memoizeSet(leftHandOperand, rightHandOperand, options.memoize, true);\n\n var result = extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options);\n memoizeSet(leftHandOperand, rightHandOperand, options.memoize, result);\n return result;\n}\n\nfunction extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options) {\n switch (leftHandType) {\n case 'String':\n case 'Number':\n case 'Boolean':\n case 'Date':\n // If these types are their instance types (e.g. `new Number`) then re-deepEqual against their values\n return deepEqual(leftHandOperand.valueOf(), rightHandOperand.valueOf());\n case 'Promise':\n case 'Symbol':\n case 'function':\n case 'WeakMap':\n case 'WeakSet':\n return leftHandOperand === rightHandOperand;\n case 'Error':\n return keysEqual(leftHandOperand, rightHandOperand, [ 'name', 'message', 'code' ], options);\n case 'Arguments':\n case 'Int8Array':\n case 'Uint8Array':\n case 'Uint8ClampedArray':\n case 'Int16Array':\n case 'Uint16Array':\n case 'Int32Array':\n case 'Uint32Array':\n case 'Float32Array':\n case 'Float64Array':\n case 'Array':\n return iterableEqual(leftHandOperand, rightHandOperand, options);\n case 'RegExp':\n return regexpEqual(leftHandOperand, rightHandOperand);\n case 'Generator':\n return generatorEqual(leftHandOperand, rightHandOperand, options);\n case 'DataView':\n return iterableEqual(new Uint8Array(leftHandOperand.buffer), new Uint8Array(rightHandOperand.buffer), options);\n case 'ArrayBuffer':\n return iterableEqual(new Uint8Array(leftHandOperand), new Uint8Array(rightHandOperand), options);\n case 'Set':\n return entriesEqual(leftHandOperand, rightHandOperand, options);\n case 'Map':\n return entriesEqual(leftHandOperand, rightHandOperand, options);\n case 'Temporal.PlainDate':\n case 'Temporal.PlainTime':\n case 'Temporal.PlainDateTime':\n case 'Temporal.Instant':\n case 'Temporal.ZonedDateTime':\n case 'Temporal.PlainYearMonth':\n case 'Temporal.PlainMonthDay':\n return leftHandOperand.equals(rightHandOperand);\n case 'Temporal.Duration':\n return leftHandOperand.total('nanoseconds') === rightHandOperand.total('nanoseconds');\n case 'Temporal.TimeZone':\n case 'Temporal.Calendar':\n return leftHandOperand.toString() === rightHandOperand.toString();\n default:\n return objectEqual(leftHandOperand, rightHandOperand, options);\n }\n}\n\n/*!\n * Compare two Regular Expressions for equality.\n *\n * @param {RegExp} leftHandOperand\n * @param {RegExp} rightHandOperand\n * @return {Boolean} result\n */\n\nfunction regexpEqual(leftHandOperand, rightHandOperand) {\n return leftHandOperand.toString() === rightHandOperand.toString();\n}\n\n/*!\n * Compare two Sets/Maps for equality. Faster than other equality functions.\n *\n * @param {Set} leftHandOperand\n * @param {Set} rightHandOperand\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n */\n\nfunction entriesEqual(leftHandOperand, rightHandOperand, options) {\n // IE11 doesn't support Set#entries or Set#@@iterator, so we need manually populate using Set#forEach\n if (leftHandOperand.size !== rightHandOperand.size) {\n return false;\n }\n if (leftHandOperand.size === 0) {\n return true;\n }\n var leftHandItems = [];\n var rightHandItems = [];\n leftHandOperand.forEach(function gatherEntries(key, value) {\n leftHandItems.push([ key, value ]);\n });\n rightHandOperand.forEach(function gatherEntries(key, value) {\n rightHandItems.push([ key, value ]);\n });\n return iterableEqual(leftHandItems.sort(), rightHandItems.sort(), options);\n}\n\n/*!\n * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.\n *\n * @param {Iterable} leftHandOperand\n * @param {Iterable} rightHandOperand\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n */\n\nfunction iterableEqual(leftHandOperand, rightHandOperand, options) {\n var length = leftHandOperand.length;\n if (length !== rightHandOperand.length) {\n return false;\n }\n if (length === 0) {\n return true;\n }\n var index = -1;\n while (++index < length) {\n if (deepEqual(leftHandOperand[index], rightHandOperand[index], options) === false) {\n return false;\n }\n }\n return true;\n}\n\n/*!\n * Simple equality for generator objects such as those returned by generator functions.\n *\n * @param {Iterable} leftHandOperand\n * @param {Iterable} rightHandOperand\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n */\n\nfunction generatorEqual(leftHandOperand, rightHandOperand, options) {\n return iterableEqual(getGeneratorEntries(leftHandOperand), getGeneratorEntries(rightHandOperand), options);\n}\n\n/*!\n * Determine if the given object has an @@iterator function.\n *\n * @param {Object} target\n * @return {Boolean} `true` if the object has an @@iterator function.\n */\nfunction hasIteratorFunction(target) {\n return typeof Symbol !== 'undefined' &&\n typeof target === 'object' &&\n typeof Symbol.iterator !== 'undefined' &&\n typeof target[Symbol.iterator] === 'function';\n}\n\n/*!\n * Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.\n * This will consume the iterator - which could have side effects depending on the @@iterator implementation.\n *\n * @param {Object} target\n * @returns {Array} an array of entries from the @@iterator function\n */\nfunction getIteratorEntries(target) {\n if (hasIteratorFunction(target)) {\n try {\n return getGeneratorEntries(target[Symbol.iterator]());\n } catch (iteratorError) {\n return [];\n }\n }\n return [];\n}\n\n/*!\n * Gets all entries from a Generator. This will consume the generator - which could have side effects.\n *\n * @param {Generator} target\n * @returns {Array} an array of entries from the Generator.\n */\nfunction getGeneratorEntries(generator) {\n var generatorResult = generator.next();\n var accumulator = [ generatorResult.value ];\n while (generatorResult.done === false) {\n generatorResult = generator.next();\n accumulator.push(generatorResult.value);\n }\n return accumulator;\n}\n\n/*!\n * Gets all own and inherited enumerable keys from a target.\n *\n * @param {Object} target\n * @returns {Array} an array of own and inherited enumerable keys from the target.\n */\nfunction getEnumerableKeys(target) {\n var keys = [];\n for (var key in target) {\n keys.push(key);\n }\n return keys;\n}\n\nfunction getEnumerableSymbols(target) {\n var keys = [];\n var allKeys = Object.getOwnPropertySymbols(target);\n for (var i = 0; i < allKeys.length; i += 1) {\n var key = allKeys[i];\n if (Object.getOwnPropertyDescriptor(target, key).enumerable) {\n keys.push(key);\n }\n }\n return keys;\n}\n\n/*!\n * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of\n * each key. If any value of the given key is not equal, the function will return false (early).\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n */\nfunction keysEqual(leftHandOperand, rightHandOperand, keys, options) {\n var length = keys.length;\n if (length === 0) {\n return true;\n }\n for (var i = 0; i < length; i += 1) {\n if (deepEqual(leftHandOperand[keys[i]], rightHandOperand[keys[i]], options) === false) {\n return false;\n }\n }\n return true;\n}\n\n/*!\n * Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`\n * for each enumerable key in the object.\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n */\nfunction objectEqual(leftHandOperand, rightHandOperand, options) {\n var leftHandKeys = getEnumerableKeys(leftHandOperand);\n var rightHandKeys = getEnumerableKeys(rightHandOperand);\n var leftHandSymbols = getEnumerableSymbols(leftHandOperand);\n var rightHandSymbols = getEnumerableSymbols(rightHandOperand);\n leftHandKeys = leftHandKeys.concat(leftHandSymbols);\n rightHandKeys = rightHandKeys.concat(rightHandSymbols);\n\n if (leftHandKeys.length && leftHandKeys.length === rightHandKeys.length) {\n if (iterableEqual(mapSymbols(leftHandKeys).sort(), mapSymbols(rightHandKeys).sort()) === false) {\n return false;\n }\n return keysEqual(leftHandOperand, rightHandOperand, leftHandKeys, options);\n }\n\n var leftHandEntries = getIteratorEntries(leftHandOperand);\n var rightHandEntries = getIteratorEntries(rightHandOperand);\n if (leftHandEntries.length && leftHandEntries.length === rightHandEntries.length) {\n leftHandEntries.sort();\n rightHandEntries.sort();\n return iterableEqual(leftHandEntries, rightHandEntries, options);\n }\n\n if (leftHandKeys.length === 0 &&\n leftHandEntries.length === 0 &&\n rightHandKeys.length === 0 &&\n rightHandEntries.length === 0) {\n return true;\n }\n\n return false;\n}\n\n/*!\n * Returns true if the argument is a primitive.\n *\n * This intentionally returns true for all objects that can be compared by reference,\n * including functions and symbols.\n *\n * @param {Mixed} value\n * @return {Boolean} result\n */\nfunction isPrimitive(value) {\n return value === null || typeof value !== 'object';\n}\n\nfunction mapSymbols(arr) {\n return arr.map(function mapSymbol(entry) {\n if (typeof entry === 'symbol') {\n return entry.toString();\n }\n\n return entry;\n });\n}\n","var config = require('../config');\n\n/*!\n * Chai - isProxyEnabled helper\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .isProxyEnabled()\n *\n * Helper function to check if Chai's proxy protection feature is enabled. If\n * proxies are unsupported or disabled via the user's Chai config, then return\n * false. Otherwise, return true.\n *\n * @namespace Utils\n * @name isProxyEnabled\n */\n\nmodule.exports = function isProxyEnabled() {\n return config.useProxy &&\n typeof Proxy !== 'undefined' &&\n typeof Reflect !== 'undefined';\n};\n","/*!\n * Chai - addProperty utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\nvar chai = require('../../chai');\nvar flag = require('./flag');\nvar isProxyEnabled = require('./isProxyEnabled');\nvar transferFlags = require('./transferFlags');\n\n/**\n * ### .addProperty(ctx, name, getter)\n *\n * Adds a property to the prototype of an object.\n *\n * utils.addProperty(chai.Assertion.prototype, 'foo', function () {\n * var obj = utils.flag(this, 'object');\n * new chai.Assertion(obj).to.be.instanceof(Foo);\n * });\n *\n * Can also be accessed directly from `chai.Assertion`.\n *\n * chai.Assertion.addProperty('foo', fn);\n *\n * Then can be used as any other assertion.\n *\n * expect(myFoo).to.be.foo;\n *\n * @param {Object} ctx object to which the property is added\n * @param {String} name of property to add\n * @param {Function} getter function to be used for name\n * @namespace Utils\n * @name addProperty\n * @api public\n */\n\nmodule.exports = function addProperty(ctx, name, getter) {\n getter = getter === undefined ? function () {} : getter;\n\n Object.defineProperty(ctx, name,\n { get: function propertyGetter() {\n // Setting the `ssfi` flag to `propertyGetter` causes this function to\n // be the starting point for removing implementation frames from the\n // stack trace of a failed assertion.\n //\n // However, we only want to use this function as the starting point if\n // the `lockSsfi` flag isn't set and proxy protection is disabled.\n //\n // If the `lockSsfi` flag is set, then either this assertion has been\n // overwritten by another assertion, or this assertion is being invoked\n // from inside of another assertion. In the first case, the `ssfi` flag\n // has already been set by the overwriting assertion. In the second\n // case, the `ssfi` flag has already been set by the outer assertion.\n //\n // If proxy protection is enabled, then the `ssfi` flag has already been\n // set by the proxy getter.\n if (!isProxyEnabled() && !flag(this, 'lockSsfi')) {\n flag(this, 'ssfi', propertyGetter);\n }\n\n var result = getter.call(this);\n if (result !== undefined)\n return result;\n\n var newAssertion = new chai.Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }\n , configurable: true\n });\n};\n","var fnLengthDesc = Object.getOwnPropertyDescriptor(function () {}, 'length');\n\n/*!\n * Chai - addLengthGuard utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .addLengthGuard(fn, assertionName, isChainable)\n *\n * Define `length` as a getter on the given uninvoked method assertion. The\n * getter acts as a guard against chaining `length` directly off of an uninvoked\n * method assertion, which is a problem because it references `function`'s\n * built-in `length` property instead of Chai's `length` assertion. When the\n * getter catches the user making this mistake, it throws an error with a\n * helpful message.\n *\n * There are two ways in which this mistake can be made. The first way is by\n * chaining the `length` assertion directly off of an uninvoked chainable\n * method. In this case, Chai suggests that the user use `lengthOf` instead. The\n * second way is by chaining the `length` assertion directly off of an uninvoked\n * non-chainable method. Non-chainable methods must be invoked prior to\n * chaining. In this case, Chai suggests that the user consult the docs for the\n * given assertion.\n *\n * If the `length` property of functions is unconfigurable, then return `fn`\n * without modification.\n *\n * Note that in ES6, the function's `length` property is configurable, so once\n * support for legacy environments is dropped, Chai's `length` property can\n * replace the built-in function's `length` property, and this length guard will\n * no longer be necessary. In the mean time, maintaining consistency across all\n * environments is the priority.\n *\n * @param {Function} fn\n * @param {String} assertionName\n * @param {Boolean} isChainable\n * @namespace Utils\n * @name addLengthGuard\n */\n\nmodule.exports = function addLengthGuard (fn, assertionName, isChainable) {\n if (!fnLengthDesc.configurable) return fn;\n\n Object.defineProperty(fn, 'length', {\n get: function () {\n if (isChainable) {\n throw Error('Invalid Chai property: ' + assertionName + '.length. Due' +\n ' to a compatibility issue, \"length\" cannot directly follow \"' +\n assertionName + '\". Use \"' + assertionName + '.lengthOf\" instead.');\n }\n\n throw Error('Invalid Chai property: ' + assertionName + '.length. See' +\n ' docs for proper usage of \"' + assertionName + '\".');\n }\n });\n\n return fn;\n};\n","/*!\n * Chai - getProperties utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .getProperties(object)\n *\n * This allows the retrieval of property names of an object, enumerable or not,\n * inherited or not.\n *\n * @param {Object} object\n * @returns {Array}\n * @namespace Utils\n * @name getProperties\n * @api public\n */\n\nmodule.exports = function getProperties(object) {\n var result = Object.getOwnPropertyNames(object);\n\n function addProperty(property) {\n if (result.indexOf(property) === -1) {\n result.push(property);\n }\n }\n\n var proto = Object.getPrototypeOf(object);\n while (proto !== null) {\n Object.getOwnPropertyNames(proto).forEach(addProperty);\n proto = Object.getPrototypeOf(proto);\n }\n\n return result;\n};\n","var config = require('../config');\nvar flag = require('./flag');\nvar getProperties = require('./getProperties');\nvar isProxyEnabled = require('./isProxyEnabled');\n\n/*!\n * Chai - proxify utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .proxify(object)\n *\n * Return a proxy of given object that throws an error when a non-existent\n * property is read. By default, the root cause is assumed to be a misspelled\n * property, and thus an attempt is made to offer a reasonable suggestion from\n * the list of existing properties. However, if a nonChainableMethodName is\n * provided, then the root cause is instead a failure to invoke a non-chainable\n * method prior to reading the non-existent property.\n *\n * If proxies are unsupported or disabled via the user's Chai config, then\n * return object without modification.\n *\n * @param {Object} obj\n * @param {String} nonChainableMethodName\n * @namespace Utils\n * @name proxify\n */\n\nvar builtins = ['__flags', '__methods', '_obj', 'assert'];\n\nmodule.exports = function proxify(obj, nonChainableMethodName) {\n if (!isProxyEnabled()) return obj;\n\n return new Proxy(obj, {\n get: function proxyGetter(target, property) {\n // This check is here because we should not throw errors on Symbol properties\n // such as `Symbol.toStringTag`.\n // The values for which an error should be thrown can be configured using\n // the `config.proxyExcludedKeys` setting.\n if (typeof property === 'string' &&\n config.proxyExcludedKeys.indexOf(property) === -1 &&\n !Reflect.has(target, property)) {\n // Special message for invalid property access of non-chainable methods.\n if (nonChainableMethodName) {\n throw Error('Invalid Chai property: ' + nonChainableMethodName + '.' +\n property + '. See docs for proper usage of \"' +\n nonChainableMethodName + '\".');\n }\n\n // If the property is reasonably close to an existing Chai property,\n // suggest that property to the user. Only suggest properties with a\n // distance less than 4.\n var suggestion = null;\n var suggestionDistance = 4;\n getProperties(target).forEach(function(prop) {\n if (\n !Object.prototype.hasOwnProperty(prop) &&\n builtins.indexOf(prop) === -1\n ) {\n var dist = stringDistanceCapped(\n property,\n prop,\n suggestionDistance\n );\n if (dist < suggestionDistance) {\n suggestion = prop;\n suggestionDistance = dist;\n }\n }\n });\n\n if (suggestion !== null) {\n throw Error('Invalid Chai property: ' + property +\n '. Did you mean \"' + suggestion + '\"?');\n } else {\n throw Error('Invalid Chai property: ' + property);\n }\n }\n\n // Use this proxy getter as the starting point for removing implementation\n // frames from the stack trace of a failed assertion. For property\n // assertions, this prevents the proxy getter from showing up in the stack\n // trace since it's invoked before the property getter. For method and\n // chainable method assertions, this flag will end up getting changed to\n // the method wrapper, which is good since this frame will no longer be in\n // the stack once the method is invoked. Note that Chai builtin assertion\n // properties such as `__flags` are skipped since this is only meant to\n // capture the starting point of an assertion. This step is also skipped\n // if the `lockSsfi` flag is set, thus indicating that this assertion is\n // being called from within another assertion. In that case, the `ssfi`\n // flag is already set to the outer assertion's starting point.\n if (builtins.indexOf(property) === -1 && !flag(target, 'lockSsfi')) {\n flag(target, 'ssfi', proxyGetter);\n }\n\n return Reflect.get(target, property);\n }\n });\n};\n\n/**\n * # stringDistanceCapped(strA, strB, cap)\n * Return the Levenshtein distance between two strings, but no more than cap.\n * @param {string} strA\n * @param {string} strB\n * @param {number} number\n * @return {number} min(string distance between strA and strB, cap)\n * @api private\n */\n\nfunction stringDistanceCapped(strA, strB, cap) {\n if (Math.abs(strA.length - strB.length) >= cap) {\n return cap;\n }\n\n var memo = [];\n // `memo` is a two-dimensional array containing distances.\n // memo[i][j] is the distance between strA.slice(0, i) and\n // strB.slice(0, j).\n for (var i = 0; i <= strA.length; i++) {\n memo[i] = Array(strB.length + 1).fill(0);\n memo[i][0] = i;\n }\n for (var j = 0; j < strB.length; j++) {\n memo[0][j] = j;\n }\n\n for (var i = 1; i <= strA.length; i++) {\n var ch = strA.charCodeAt(i - 1);\n for (var j = 1; j <= strB.length; j++) {\n if (Math.abs(i - j) >= cap) {\n memo[i][j] = cap;\n continue;\n }\n memo[i][j] = Math.min(\n memo[i - 1][j] + 1,\n memo[i][j - 1] + 1,\n memo[i - 1][j - 1] +\n (ch === strB.charCodeAt(j - 1) ? 0 : 1)\n );\n }\n }\n\n return memo[strA.length][strB.length];\n}\n","/*!\n * Chai - addMethod utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\nvar addLengthGuard = require('./addLengthGuard');\nvar chai = require('../../chai');\nvar flag = require('./flag');\nvar proxify = require('./proxify');\nvar transferFlags = require('./transferFlags');\n\n/**\n * ### .addMethod(ctx, name, method)\n *\n * Adds a method to the prototype of an object.\n *\n * utils.addMethod(chai.Assertion.prototype, 'foo', function (str) {\n * var obj = utils.flag(this, 'object');\n * new chai.Assertion(obj).to.be.equal(str);\n * });\n *\n * Can also be accessed directly from `chai.Assertion`.\n *\n * chai.Assertion.addMethod('foo', fn);\n *\n * Then can be used as any other assertion.\n *\n * expect(fooStr).to.be.foo('bar');\n *\n * @param {Object} ctx object to which the method is added\n * @param {String} name of method to add\n * @param {Function} method function to be used for name\n * @namespace Utils\n * @name addMethod\n * @api public\n */\n\nmodule.exports = function addMethod(ctx, name, method) {\n var methodWrapper = function () {\n // Setting the `ssfi` flag to `methodWrapper` causes this function to be the\n // starting point for removing implementation frames from the stack trace of\n // a failed assertion.\n //\n // However, we only want to use this function as the starting point if the\n // `lockSsfi` flag isn't set.\n //\n // If the `lockSsfi` flag is set, then either this assertion has been\n // overwritten by another assertion, or this assertion is being invoked from\n // inside of another assertion. In the first case, the `ssfi` flag has\n // already been set by the overwriting assertion. In the second case, the\n // `ssfi` flag has already been set by the outer assertion.\n if (!flag(this, 'lockSsfi')) {\n flag(this, 'ssfi', methodWrapper);\n }\n\n var result = method.apply(this, arguments);\n if (result !== undefined)\n return result;\n\n var newAssertion = new chai.Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n };\n\n addLengthGuard(methodWrapper, name, false);\n ctx[name] = proxify(methodWrapper, name);\n};\n","/*!\n * Chai - overwriteProperty utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\nvar chai = require('../../chai');\nvar flag = require('./flag');\nvar isProxyEnabled = require('./isProxyEnabled');\nvar transferFlags = require('./transferFlags');\n\n/**\n * ### .overwriteProperty(ctx, name, fn)\n *\n * Overwrites an already existing property getter and provides\n * access to previous value. Must return function to use as getter.\n *\n * utils.overwriteProperty(chai.Assertion.prototype, 'ok', function (_super) {\n * return function () {\n * var obj = utils.flag(this, 'object');\n * if (obj instanceof Foo) {\n * new chai.Assertion(obj.name).to.equal('bar');\n * } else {\n * _super.call(this);\n * }\n * }\n * });\n *\n *\n * Can also be accessed directly from `chai.Assertion`.\n *\n * chai.Assertion.overwriteProperty('foo', fn);\n *\n * Then can be used as any other assertion.\n *\n * expect(myFoo).to.be.ok;\n *\n * @param {Object} ctx object whose property is to be overwritten\n * @param {String} name of property to overwrite\n * @param {Function} getter function that returns a getter function to be used for name\n * @namespace Utils\n * @name overwriteProperty\n * @api public\n */\n\nmodule.exports = function overwriteProperty(ctx, name, getter) {\n var _get = Object.getOwnPropertyDescriptor(ctx, name)\n , _super = function () {};\n\n if (_get && 'function' === typeof _get.get)\n _super = _get.get\n\n Object.defineProperty(ctx, name,\n { get: function overwritingPropertyGetter() {\n // Setting the `ssfi` flag to `overwritingPropertyGetter` causes this\n // function to be the starting point for removing implementation frames\n // from the stack trace of a failed assertion.\n //\n // However, we only want to use this function as the starting point if\n // the `lockSsfi` flag isn't set and proxy protection is disabled.\n //\n // If the `lockSsfi` flag is set, then either this assertion has been\n // overwritten by another assertion, or this assertion is being invoked\n // from inside of another assertion. In the first case, the `ssfi` flag\n // has already been set by the overwriting assertion. In the second\n // case, the `ssfi` flag has already been set by the outer assertion.\n //\n // If proxy protection is enabled, then the `ssfi` flag has already been\n // set by the proxy getter.\n if (!isProxyEnabled() && !flag(this, 'lockSsfi')) {\n flag(this, 'ssfi', overwritingPropertyGetter);\n }\n\n // Setting the `lockSsfi` flag to `true` prevents the overwritten\n // assertion from changing the `ssfi` flag. By this point, the `ssfi`\n // flag is already set to the correct starting point for this assertion.\n var origLockSsfi = flag(this, 'lockSsfi');\n flag(this, 'lockSsfi', true);\n var result = getter(_super).call(this);\n flag(this, 'lockSsfi', origLockSsfi);\n\n if (result !== undefined) {\n return result;\n }\n\n var newAssertion = new chai.Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }\n , configurable: true\n });\n};\n","/*!\n * Chai - overwriteMethod utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\nvar addLengthGuard = require('./addLengthGuard');\nvar chai = require('../../chai');\nvar flag = require('./flag');\nvar proxify = require('./proxify');\nvar transferFlags = require('./transferFlags');\n\n/**\n * ### .overwriteMethod(ctx, name, fn)\n *\n * Overwrites an already existing method and provides\n * access to previous function. Must return function\n * to be used for name.\n *\n * utils.overwriteMethod(chai.Assertion.prototype, 'equal', function (_super) {\n * return function (str) {\n * var obj = utils.flag(this, 'object');\n * if (obj instanceof Foo) {\n * new chai.Assertion(obj.value).to.equal(str);\n * } else {\n * _super.apply(this, arguments);\n * }\n * }\n * });\n *\n * Can also be accessed directly from `chai.Assertion`.\n *\n * chai.Assertion.overwriteMethod('foo', fn);\n *\n * Then can be used as any other assertion.\n *\n * expect(myFoo).to.equal('bar');\n *\n * @param {Object} ctx object whose method is to be overwritten\n * @param {String} name of method to overwrite\n * @param {Function} method function that returns a function to be used for name\n * @namespace Utils\n * @name overwriteMethod\n * @api public\n */\n\nmodule.exports = function overwriteMethod(ctx, name, method) {\n var _method = ctx[name]\n , _super = function () {\n throw new Error(name + ' is not a function');\n };\n\n if (_method && 'function' === typeof _method)\n _super = _method;\n\n var overwritingMethodWrapper = function () {\n // Setting the `ssfi` flag to `overwritingMethodWrapper` causes this\n // function to be the starting point for removing implementation frames from\n // the stack trace of a failed assertion.\n //\n // However, we only want to use this function as the starting point if the\n // `lockSsfi` flag isn't set.\n //\n // If the `lockSsfi` flag is set, then either this assertion has been\n // overwritten by another assertion, or this assertion is being invoked from\n // inside of another assertion. In the first case, the `ssfi` flag has\n // already been set by the overwriting assertion. In the second case, the\n // `ssfi` flag has already been set by the outer assertion.\n if (!flag(this, 'lockSsfi')) {\n flag(this, 'ssfi', overwritingMethodWrapper);\n }\n\n // Setting the `lockSsfi` flag to `true` prevents the overwritten assertion\n // from changing the `ssfi` flag. By this point, the `ssfi` flag is already\n // set to the correct starting point for this assertion.\n var origLockSsfi = flag(this, 'lockSsfi');\n flag(this, 'lockSsfi', true);\n var result = method(_super).apply(this, arguments);\n flag(this, 'lockSsfi', origLockSsfi);\n\n if (result !== undefined) {\n return result;\n }\n\n var newAssertion = new chai.Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }\n\n addLengthGuard(overwritingMethodWrapper, name, false);\n ctx[name] = proxify(overwritingMethodWrapper, name);\n};\n","/*!\n * Chai - addChainingMethod utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\n/*!\n * Module dependencies\n */\n\nvar addLengthGuard = require('./addLengthGuard');\nvar chai = require('../../chai');\nvar flag = require('./flag');\nvar proxify = require('./proxify');\nvar transferFlags = require('./transferFlags');\n\n/*!\n * Module variables\n */\n\n// Check whether `Object.setPrototypeOf` is supported\nvar canSetPrototype = typeof Object.setPrototypeOf === 'function';\n\n// Without `Object.setPrototypeOf` support, this module will need to add properties to a function.\n// However, some of functions' own props are not configurable and should be skipped.\nvar testFn = function() {};\nvar excludeNames = Object.getOwnPropertyNames(testFn).filter(function(name) {\n var propDesc = Object.getOwnPropertyDescriptor(testFn, name);\n\n // Note: PhantomJS 1.x includes `callee` as one of `testFn`'s own properties,\n // but then returns `undefined` as the property descriptor for `callee`. As a\n // workaround, we perform an otherwise unnecessary type-check for `propDesc`,\n // and then filter it out if it's not an object as it should be.\n if (typeof propDesc !== 'object')\n return true;\n\n return !propDesc.configurable;\n});\n\n// Cache `Function` properties\nvar call = Function.prototype.call,\n apply = Function.prototype.apply;\n\n/**\n * ### .addChainableMethod(ctx, name, method, chainingBehavior)\n *\n * Adds a method to an object, such that the method can also be chained.\n *\n * utils.addChainableMethod(chai.Assertion.prototype, 'foo', function (str) {\n * var obj = utils.flag(this, 'object');\n * new chai.Assertion(obj).to.be.equal(str);\n * });\n *\n * Can also be accessed directly from `chai.Assertion`.\n *\n * chai.Assertion.addChainableMethod('foo', fn, chainingBehavior);\n *\n * The result can then be used as both a method assertion, executing both `method` and\n * `chainingBehavior`, or as a language chain, which only executes `chainingBehavior`.\n *\n * expect(fooStr).to.be.foo('bar');\n * expect(fooStr).to.be.foo.equal('foo');\n *\n * @param {Object} ctx object to which the method is added\n * @param {String} name of method to add\n * @param {Function} method function to be used for `name`, when called\n * @param {Function} chainingBehavior function to be called every time the property is accessed\n * @namespace Utils\n * @name addChainableMethod\n * @api public\n */\n\nmodule.exports = function addChainableMethod(ctx, name, method, chainingBehavior) {\n if (typeof chainingBehavior !== 'function') {\n chainingBehavior = function () { };\n }\n\n var chainableBehavior = {\n method: method\n , chainingBehavior: chainingBehavior\n };\n\n // save the methods so we can overwrite them later, if we need to.\n if (!ctx.__methods) {\n ctx.__methods = {};\n }\n ctx.__methods[name] = chainableBehavior;\n\n Object.defineProperty(ctx, name,\n { get: function chainableMethodGetter() {\n chainableBehavior.chainingBehavior.call(this);\n\n var chainableMethodWrapper = function () {\n // Setting the `ssfi` flag to `chainableMethodWrapper` causes this\n // function to be the starting point for removing implementation\n // frames from the stack trace of a failed assertion.\n //\n // However, we only want to use this function as the starting point if\n // the `lockSsfi` flag isn't set.\n //\n // If the `lockSsfi` flag is set, then this assertion is being\n // invoked from inside of another assertion. In this case, the `ssfi`\n // flag has already been set by the outer assertion.\n //\n // Note that overwriting a chainable method merely replaces the saved\n // methods in `ctx.__methods` instead of completely replacing the\n // overwritten assertion. Therefore, an overwriting assertion won't\n // set the `ssfi` or `lockSsfi` flags.\n if (!flag(this, 'lockSsfi')) {\n flag(this, 'ssfi', chainableMethodWrapper);\n }\n\n var result = chainableBehavior.method.apply(this, arguments);\n if (result !== undefined) {\n return result;\n }\n\n var newAssertion = new chai.Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n };\n\n addLengthGuard(chainableMethodWrapper, name, true);\n\n // Use `Object.setPrototypeOf` if available\n if (canSetPrototype) {\n // Inherit all properties from the object by replacing the `Function` prototype\n var prototype = Object.create(this);\n // Restore the `call` and `apply` methods from `Function`\n prototype.call = call;\n prototype.apply = apply;\n Object.setPrototypeOf(chainableMethodWrapper, prototype);\n }\n // Otherwise, redefine all properties (slow!)\n else {\n var asserterNames = Object.getOwnPropertyNames(ctx);\n asserterNames.forEach(function (asserterName) {\n if (excludeNames.indexOf(asserterName) !== -1) {\n return;\n }\n\n var pd = Object.getOwnPropertyDescriptor(ctx, asserterName);\n Object.defineProperty(chainableMethodWrapper, asserterName, pd);\n });\n }\n\n transferFlags(this, chainableMethodWrapper);\n return proxify(chainableMethodWrapper);\n }\n , configurable: true\n });\n};\n","/*!\n * Chai - overwriteChainableMethod utility\n * Copyright(c) 2012-2014 Jake Luer \n * MIT Licensed\n */\n\nvar chai = require('../../chai');\nvar transferFlags = require('./transferFlags');\n\n/**\n * ### .overwriteChainableMethod(ctx, name, method, chainingBehavior)\n *\n * Overwrites an already existing chainable method\n * and provides access to the previous function or\n * property. Must return functions to be used for\n * name.\n *\n * utils.overwriteChainableMethod(chai.Assertion.prototype, 'lengthOf',\n * function (_super) {\n * }\n * , function (_super) {\n * }\n * );\n *\n * Can also be accessed directly from `chai.Assertion`.\n *\n * chai.Assertion.overwriteChainableMethod('foo', fn, fn);\n *\n * Then can be used as any other assertion.\n *\n * expect(myFoo).to.have.lengthOf(3);\n * expect(myFoo).to.have.lengthOf.above(3);\n *\n * @param {Object} ctx object whose method / property is to be overwritten\n * @param {String} name of method / property to overwrite\n * @param {Function} method function that returns a function to be used for name\n * @param {Function} chainingBehavior function that returns a function to be used for property\n * @namespace Utils\n * @name overwriteChainableMethod\n * @api public\n */\n\nmodule.exports = function overwriteChainableMethod(ctx, name, method, chainingBehavior) {\n var chainableBehavior = ctx.__methods[name];\n\n var _chainingBehavior = chainableBehavior.chainingBehavior;\n chainableBehavior.chainingBehavior = function overwritingChainableMethodGetter() {\n var result = chainingBehavior(_chainingBehavior).call(this);\n if (result !== undefined) {\n return result;\n }\n\n var newAssertion = new chai.Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n };\n\n var _method = chainableBehavior.method;\n chainableBehavior.method = function overwritingChainableMethodWrapper() {\n var result = method(_method).apply(this, arguments);\n if (result !== undefined) {\n return result;\n }\n\n var newAssertion = new chai.Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n };\n};\n","/*!\n * Chai - compareByInspect utility\n * Copyright(c) 2011-2016 Jake Luer \n * MIT Licensed\n */\n\n/*!\n * Module dependencies\n */\n\nvar inspect = require('./inspect');\n\n/**\n * ### .compareByInspect(mixed, mixed)\n *\n * To be used as a compareFunction with Array.prototype.sort. Compares elements\n * using inspect instead of default behavior of using toString so that Symbols\n * and objects with irregular/missing toString can still be sorted without a\n * TypeError.\n *\n * @param {Mixed} first element to compare\n * @param {Mixed} second element to compare\n * @returns {Number} -1 if 'a' should come before 'b'; otherwise 1\n * @name compareByInspect\n * @namespace Utils\n * @api public\n */\n\nmodule.exports = function compareByInspect(a, b) {\n return inspect(a) < inspect(b) ? -1 : 1;\n};\n","/*!\n * Chai - getOwnEnumerablePropertySymbols utility\n * Copyright(c) 2011-2016 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .getOwnEnumerablePropertySymbols(object)\n *\n * This allows the retrieval of directly-owned enumerable property symbols of an\n * object. This function is necessary because Object.getOwnPropertySymbols\n * returns both enumerable and non-enumerable property symbols.\n *\n * @param {Object} object\n * @returns {Array}\n * @namespace Utils\n * @name getOwnEnumerablePropertySymbols\n * @api public\n */\n\nmodule.exports = function getOwnEnumerablePropertySymbols(obj) {\n if (typeof Object.getOwnPropertySymbols !== 'function') return [];\n\n return Object.getOwnPropertySymbols(obj).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(obj, sym).enumerable;\n });\n};\n","/*!\n * Chai - getOwnEnumerableProperties utility\n * Copyright(c) 2011-2016 Jake Luer \n * MIT Licensed\n */\n\n/*!\n * Module dependencies\n */\n\nvar getOwnEnumerablePropertySymbols = require('./getOwnEnumerablePropertySymbols');\n\n/**\n * ### .getOwnEnumerableProperties(object)\n *\n * This allows the retrieval of directly-owned enumerable property names and\n * symbols of an object. This function is necessary because Object.keys only\n * returns enumerable property names, not enumerable property symbols.\n *\n * @param {Object} object\n * @returns {Array}\n * @namespace Utils\n * @name getOwnEnumerableProperties\n * @api public\n */\n\nmodule.exports = function getOwnEnumerableProperties(obj) {\n return Object.keys(obj).concat(getOwnEnumerablePropertySymbols(obj));\n};\n","'use strict';\n\n/* !\n * Chai - checkError utility\n * Copyright(c) 2012-2016 Jake Luer \n * MIT Licensed\n */\n\n/**\n * ### .checkError\n *\n * Checks that an error conforms to a given set of criteria and/or retrieves information about it.\n *\n * @api public\n */\n\n/**\n * ### .compatibleInstance(thrown, errorLike)\n *\n * Checks if two instances are compatible (strict equal).\n * Returns false if errorLike is not an instance of Error, because instances\n * can only be compatible if they're both error instances.\n *\n * @name compatibleInstance\n * @param {Error} thrown error\n * @param {Error|ErrorConstructor} errorLike object to compare against\n * @namespace Utils\n * @api public\n */\n\nfunction compatibleInstance(thrown, errorLike) {\n return errorLike instanceof Error && thrown === errorLike;\n}\n\n/**\n * ### .compatibleConstructor(thrown, errorLike)\n *\n * Checks if two constructors are compatible.\n * This function can receive either an error constructor or\n * an error instance as the `errorLike` argument.\n * Constructors are compatible if they're the same or if one is\n * an instance of another.\n *\n * @name compatibleConstructor\n * @param {Error} thrown error\n * @param {Error|ErrorConstructor} errorLike object to compare against\n * @namespace Utils\n * @api public\n */\n\nfunction compatibleConstructor(thrown, errorLike) {\n if (errorLike instanceof Error) {\n // If `errorLike` is an instance of any error we compare their constructors\n return thrown.constructor === errorLike.constructor || thrown instanceof errorLike.constructor;\n } else if (errorLike.prototype instanceof Error || errorLike === Error) {\n // If `errorLike` is a constructor that inherits from Error, we compare `thrown` to `errorLike` directly\n return thrown.constructor === errorLike || thrown instanceof errorLike;\n }\n\n return false;\n}\n\n/**\n * ### .compatibleMessage(thrown, errMatcher)\n *\n * Checks if an error's message is compatible with a matcher (String or RegExp).\n * If the message contains the String or passes the RegExp test,\n * it is considered compatible.\n *\n * @name compatibleMessage\n * @param {Error} thrown error\n * @param {String|RegExp} errMatcher to look for into the message\n * @namespace Utils\n * @api public\n */\n\nfunction compatibleMessage(thrown, errMatcher) {\n var comparisonString = typeof thrown === 'string' ? thrown : thrown.message;\n if (errMatcher instanceof RegExp) {\n return errMatcher.test(comparisonString);\n } else if (typeof errMatcher === 'string') {\n return comparisonString.indexOf(errMatcher) !== -1; // eslint-disable-line no-magic-numbers\n }\n\n return false;\n}\n\n/**\n * ### .getFunctionName(constructorFn)\n *\n * Returns the name of a function.\n * This also includes a polyfill function if `constructorFn.name` is not defined.\n *\n * @name getFunctionName\n * @param {Function} constructorFn\n * @namespace Utils\n * @api private\n */\n\nvar functionNameMatch = /\\s*function(?:\\s|\\s*\\/\\*[^(?:*\\/)]+\\*\\/\\s*)*([^\\(\\/]+)/;\nfunction getFunctionName(constructorFn) {\n var name = '';\n if (typeof constructorFn.name === 'undefined') {\n // Here we run a polyfill if constructorFn.name is not defined\n var match = String(constructorFn).match(functionNameMatch);\n if (match) {\n name = match[1];\n }\n } else {\n name = constructorFn.name;\n }\n\n return name;\n}\n\n/**\n * ### .getConstructorName(errorLike)\n *\n * Gets the constructor name for an Error instance or constructor itself.\n *\n * @name getConstructorName\n * @param {Error|ErrorConstructor} errorLike\n * @namespace Utils\n * @api public\n */\n\nfunction getConstructorName(errorLike) {\n var constructorName = errorLike;\n if (errorLike instanceof Error) {\n constructorName = getFunctionName(errorLike.constructor);\n } else if (typeof errorLike === 'function') {\n // If `err` is not an instance of Error it is an error constructor itself or another function.\n // If we've got a common function we get its name, otherwise we may need to create a new instance\n // of the error just in case it's a poorly-constructed error. Please see chaijs/chai/issues/45 to know more.\n constructorName = getFunctionName(errorLike).trim() ||\n getFunctionName(new errorLike()); // eslint-disable-line new-cap\n }\n\n return constructorName;\n}\n\n/**\n * ### .getMessage(errorLike)\n *\n * Gets the error message from an error.\n * If `err` is a String itself, we return it.\n * If the error has no message, we return an empty string.\n *\n * @name getMessage\n * @param {Error|String} errorLike\n * @namespace Utils\n * @api public\n */\n\nfunction getMessage(errorLike) {\n var msg = '';\n if (errorLike && errorLike.message) {\n msg = errorLike.message;\n } else if (typeof errorLike === 'string') {\n msg = errorLike;\n }\n\n return msg;\n}\n\nmodule.exports = {\n compatibleInstance: compatibleInstance,\n compatibleConstructor: compatibleConstructor,\n compatibleMessage: compatibleMessage,\n getMessage: getMessage,\n getConstructorName: getConstructorName,\n};\n","/*!\n * Chai - isNaN utility\n * Copyright(c) 2012-2015 Sakthipriyan Vairamani \n * MIT Licensed\n */\n\n/**\n * ### .isNaN(value)\n *\n * Checks if the given value is NaN or not.\n *\n * utils.isNaN(NaN); // true\n *\n * @param {Value} The value which has to be checked if it is NaN\n * @name isNaN\n * @api private\n */\n\nfunction isNaN(value) {\n // Refer http://www.ecma-international.org/ecma-262/6.0/#sec-isnan-number\n // section's NOTE.\n return value !== value;\n}\n\n// If ECMAScript 6's Number.isNaN is present, prefer that.\nmodule.exports = Number.isNaN || isNaN;\n","var type = require('type-detect');\n\nvar flag = require('./flag');\n\nfunction isObjectType(obj) {\n var objectType = type(obj);\n var objectTypes = ['Array', 'Object', 'function'];\n\n return objectTypes.indexOf(objectType) !== -1;\n}\n\n/**\n * ### .getOperator(message)\n *\n * Extract the operator from error message.\n * Operator defined is based on below link\n * https://nodejs.org/api/assert.html#assert_assert.\n *\n * Returns the `operator` or `undefined` value for an Assertion.\n *\n * @param {Object} object (constructed Assertion)\n * @param {Arguments} chai.Assertion.prototype.assert arguments\n * @namespace Utils\n * @name getOperator\n * @api public\n */\n\nmodule.exports = function getOperator(obj, args) {\n var operator = flag(obj, 'operator');\n var negate = flag(obj, 'negate');\n var expected = args[3];\n var msg = negate ? args[2] : args[1];\n\n if (operator) {\n return operator;\n }\n\n if (typeof msg === 'function') msg = msg();\n\n msg = msg || '';\n if (!msg) {\n return undefined;\n }\n\n if (/\\shave\\s/.test(msg)) {\n return undefined;\n }\n\n var isObject = isObjectType(expected);\n if (/\\snot\\s/.test(msg)) {\n return isObject ? 'notDeepStrictEqual' : 'notStrictEqual';\n }\n\n return isObject ? 'deepStrictEqual' : 'strictEqual';\n};\n","/*!\n * chai\n * Copyright(c) 2011 Jake Luer \n * MIT Licensed\n */\n\n/*!\n * Dependencies that are used for multiple exports are required here only once\n */\n\nvar pathval = require('pathval');\n\n/*!\n * test utility\n */\n\nexports.test = require('./test');\n\n/*!\n * type utility\n */\n\nexports.type = require('type-detect');\n\n/*!\n * expectTypes utility\n */\nexports.expectTypes = require('./expectTypes');\n\n/*!\n * message utility\n */\n\nexports.getMessage = require('./getMessage');\n\n/*!\n * actual utility\n */\n\nexports.getActual = require('./getActual');\n\n/*!\n * Inspect util\n */\n\nexports.inspect = require('./inspect');\n\n/*!\n * Object Display util\n */\n\nexports.objDisplay = require('./objDisplay');\n\n/*!\n * Flag utility\n */\n\nexports.flag = require('./flag');\n\n/*!\n * Flag transferring utility\n */\n\nexports.transferFlags = require('./transferFlags');\n\n/*!\n * Deep equal utility\n */\n\nexports.eql = require('deep-eql');\n\n/*!\n * Deep path info\n */\n\nexports.getPathInfo = pathval.getPathInfo;\n\n/*!\n * Check if a property exists\n */\n\nexports.hasProperty = pathval.hasProperty;\n\n/*!\n * Function name\n */\n\nexports.getName = require('get-func-name');\n\n/*!\n * add Property\n */\n\nexports.addProperty = require('./addProperty');\n\n/*!\n * add Method\n */\n\nexports.addMethod = require('./addMethod');\n\n/*!\n * overwrite Property\n */\n\nexports.overwriteProperty = require('./overwriteProperty');\n\n/*!\n * overwrite Method\n */\n\nexports.overwriteMethod = require('./overwriteMethod');\n\n/*!\n * Add a chainable method\n */\n\nexports.addChainableMethod = require('./addChainableMethod');\n\n/*!\n * Overwrite chainable method\n */\n\nexports.overwriteChainableMethod = require('./overwriteChainableMethod');\n\n/*!\n * Compare by inspect method\n */\n\nexports.compareByInspect = require('./compareByInspect');\n\n/*!\n * Get own enumerable property symbols method\n */\n\nexports.getOwnEnumerablePropertySymbols = require('./getOwnEnumerablePropertySymbols');\n\n/*!\n * Get own enumerable properties method\n */\n\nexports.getOwnEnumerableProperties = require('./getOwnEnumerableProperties');\n\n/*!\n * Checks error against a given set of criteria\n */\n\nexports.checkError = require('check-error');\n\n/*!\n * Proxify util\n */\n\nexports.proxify = require('./proxify');\n\n/*!\n * addLengthGuard util\n */\n\nexports.addLengthGuard = require('./addLengthGuard');\n\n/*!\n * isProxyEnabled helper\n */\n\nexports.isProxyEnabled = require('./isProxyEnabled');\n\n/*!\n * isNaN method\n */\n\nexports.isNaN = require('./isNaN');\n\n/*!\n * getOperator method\n */\n\nexports.getOperator = require('./getOperator');","/*!\n * chai\n * http://chaijs.com\n * Copyright(c) 2011-2014 Jake Luer \n * MIT Licensed\n */\n\nvar config = require('./config');\n\nmodule.exports = function (_chai, util) {\n /*!\n * Module dependencies.\n */\n\n var AssertionError = _chai.AssertionError\n , flag = util.flag;\n\n /*!\n * Module export.\n */\n\n _chai.Assertion = Assertion;\n\n /*!\n * Assertion Constructor\n *\n * Creates object for chaining.\n *\n * `Assertion` objects contain metadata in the form of flags. Three flags can\n * be assigned during instantiation by passing arguments to this constructor:\n *\n * - `object`: This flag contains the target of the assertion. For example, in\n * the assertion `expect(numKittens).to.equal(7);`, the `object` flag will\n * contain `numKittens` so that the `equal` assertion can reference it when\n * needed.\n *\n * - `message`: This flag contains an optional custom error message to be\n * prepended to the error message that's generated by the assertion when it\n * fails.\n *\n * - `ssfi`: This flag stands for \"start stack function indicator\". It\n * contains a function reference that serves as the starting point for\n * removing frames from the stack trace of the error that's created by the\n * assertion when it fails. The goal is to provide a cleaner stack trace to\n * end users by removing Chai's internal functions. Note that it only works\n * in environments that support `Error.captureStackTrace`, and only when\n * `Chai.config.includeStack` hasn't been set to `false`.\n *\n * - `lockSsfi`: This flag controls whether or not the given `ssfi` flag\n * should retain its current value, even as assertions are chained off of\n * this object. This is usually set to `true` when creating a new assertion\n * from within another assertion. It's also temporarily set to `true` before\n * an overwritten assertion gets called by the overwriting assertion.\n *\n * @param {Mixed} obj target of the assertion\n * @param {String} msg (optional) custom error message\n * @param {Function} ssfi (optional) starting point for removing stack frames\n * @param {Boolean} lockSsfi (optional) whether or not the ssfi flag is locked\n * @api private\n */\n\n function Assertion (obj, msg, ssfi, lockSsfi) {\n flag(this, 'ssfi', ssfi || Assertion);\n flag(this, 'lockSsfi', lockSsfi);\n flag(this, 'object', obj);\n flag(this, 'message', msg);\n\n return util.proxify(this);\n }\n\n Object.defineProperty(Assertion, 'includeStack', {\n get: function() {\n console.warn('Assertion.includeStack is deprecated, use chai.config.includeStack instead.');\n return config.includeStack;\n },\n set: function(value) {\n console.warn('Assertion.includeStack is deprecated, use chai.config.includeStack instead.');\n config.includeStack = value;\n }\n });\n\n Object.defineProperty(Assertion, 'showDiff', {\n get: function() {\n console.warn('Assertion.showDiff is deprecated, use chai.config.showDiff instead.');\n return config.showDiff;\n },\n set: function(value) {\n console.warn('Assertion.showDiff is deprecated, use chai.config.showDiff instead.');\n config.showDiff = value;\n }\n });\n\n Assertion.addProperty = function (name, fn) {\n util.addProperty(this.prototype, name, fn);\n };\n\n Assertion.addMethod = function (name, fn) {\n util.addMethod(this.prototype, name, fn);\n };\n\n Assertion.addChainableMethod = function (name, fn, chainingBehavior) {\n util.addChainableMethod(this.prototype, name, fn, chainingBehavior);\n };\n\n Assertion.overwriteProperty = function (name, fn) {\n util.overwriteProperty(this.prototype, name, fn);\n };\n\n Assertion.overwriteMethod = function (name, fn) {\n util.overwriteMethod(this.prototype, name, fn);\n };\n\n Assertion.overwriteChainableMethod = function (name, fn, chainingBehavior) {\n util.overwriteChainableMethod(this.prototype, name, fn, chainingBehavior);\n };\n\n /**\n * ### .assert(expression, message, negateMessage, expected, actual, showDiff)\n *\n * Executes an expression and check expectations. Throws AssertionError for reporting if test doesn't pass.\n *\n * @name assert\n * @param {Philosophical} expression to be tested\n * @param {String|Function} message or function that returns message to display if expression fails\n * @param {String|Function} negatedMessage or function that returns negatedMessage to display if negated expression fails\n * @param {Mixed} expected value (remember to check for negation)\n * @param {Mixed} actual (optional) will default to `this.obj`\n * @param {Boolean} showDiff (optional) when set to `true`, assert will display a diff in addition to the message if expression fails\n * @api private\n */\n\n Assertion.prototype.assert = function (expr, msg, negateMsg, expected, _actual, showDiff) {\n var ok = util.test(this, arguments);\n if (false !== showDiff) showDiff = true;\n if (undefined === expected && undefined === _actual) showDiff = false;\n if (true !== config.showDiff) showDiff = false;\n\n if (!ok) {\n msg = util.getMessage(this, arguments);\n var actual = util.getActual(this, arguments);\n var assertionErrorObjectProperties = {\n actual: actual\n , expected: expected\n , showDiff: showDiff\n };\n\n var operator = util.getOperator(this, arguments);\n if (operator) {\n assertionErrorObjectProperties.operator = operator;\n }\n\n throw new AssertionError(\n msg,\n assertionErrorObjectProperties,\n (config.includeStack) ? this.assert : flag(this, 'ssfi'));\n }\n };\n\n /*!\n * ### ._obj\n *\n * Quick reference to stored `actual` value for plugin developers.\n *\n * @api private\n */\n\n Object.defineProperty(Assertion.prototype, '_obj',\n { get: function () {\n return flag(this, 'object');\n }\n , set: function (val) {\n flag(this, 'object', val);\n }\n });\n};\n","/*!\n * chai\n * http://chaijs.com\n * Copyright(c) 2011-2014 Jake Luer \n * MIT Licensed\n */\n\nmodule.exports = function (chai, _) {\n var Assertion = chai.Assertion\n , AssertionError = chai.AssertionError\n , flag = _.flag;\n\n /**\n * ### Language Chains\n *\n * The following are provided as chainable getters to improve the readability\n * of your assertions.\n *\n * **Chains**\n *\n * - to\n * - be\n * - been\n * - is\n * - that\n * - which\n * - and\n * - has\n * - have\n * - with\n * - at\n * - of\n * - same\n * - but\n * - does\n * - still\n * - also\n *\n * @name language chains\n * @namespace BDD\n * @api public\n */\n\n [ 'to', 'be', 'been', 'is'\n , 'and', 'has', 'have', 'with'\n , 'that', 'which', 'at', 'of'\n , 'same', 'but', 'does', 'still', \"also\" ].forEach(function (chain) {\n Assertion.addProperty(chain);\n });\n\n /**\n * ### .not\n *\n * Negates all assertions that follow in the chain.\n *\n * expect(function () {}).to.not.throw();\n * expect({a: 1}).to.not.have.property('b');\n * expect([1, 2]).to.be.an('array').that.does.not.include(3);\n *\n * Just because you can negate any assertion with `.not` doesn't mean you\n * should. With great power comes great responsibility. It's often best to\n * assert that the one expected output was produced, rather than asserting\n * that one of countless unexpected outputs wasn't produced. See individual\n * assertions for specific guidance.\n *\n * expect(2).to.equal(2); // Recommended\n * expect(2).to.not.equal(1); // Not recommended\n *\n * @name not\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('not', function () {\n flag(this, 'negate', true);\n });\n\n /**\n * ### .deep\n *\n * Causes all `.equal`, `.include`, `.members`, `.keys`, and `.property`\n * assertions that follow in the chain to use deep equality instead of strict\n * (`===`) equality. See the `deep-eql` project page for info on the deep\n * equality algorithm: https://github.com/chaijs/deep-eql.\n *\n * // Target object deeply (but not strictly) equals `{a: 1}`\n * expect({a: 1}).to.deep.equal({a: 1});\n * expect({a: 1}).to.not.equal({a: 1});\n *\n * // Target array deeply (but not strictly) includes `{a: 1}`\n * expect([{a: 1}]).to.deep.include({a: 1});\n * expect([{a: 1}]).to.not.include({a: 1});\n *\n * // Target object deeply (but not strictly) includes `x: {a: 1}`\n * expect({x: {a: 1}}).to.deep.include({x: {a: 1}});\n * expect({x: {a: 1}}).to.not.include({x: {a: 1}});\n *\n * // Target array deeply (but not strictly) has member `{a: 1}`\n * expect([{a: 1}]).to.have.deep.members([{a: 1}]);\n * expect([{a: 1}]).to.not.have.members([{a: 1}]);\n *\n * // Target set deeply (but not strictly) has key `{a: 1}`\n * expect(new Set([{a: 1}])).to.have.deep.keys([{a: 1}]);\n * expect(new Set([{a: 1}])).to.not.have.keys([{a: 1}]);\n *\n * // Target object deeply (but not strictly) has property `x: {a: 1}`\n * expect({x: {a: 1}}).to.have.deep.property('x', {a: 1});\n * expect({x: {a: 1}}).to.not.have.property('x', {a: 1});\n *\n * @name deep\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('deep', function () {\n flag(this, 'deep', true);\n });\n\n /**\n * ### .nested\n *\n * Enables dot- and bracket-notation in all `.property` and `.include`\n * assertions that follow in the chain.\n *\n * expect({a: {b: ['x', 'y']}}).to.have.nested.property('a.b[1]');\n * expect({a: {b: ['x', 'y']}}).to.nested.include({'a.b[1]': 'y'});\n *\n * If `.` or `[]` are part of an actual property name, they can be escaped by\n * adding two backslashes before them.\n *\n * expect({'.a': {'[b]': 'x'}}).to.have.nested.property('\\\\.a.\\\\[b\\\\]');\n * expect({'.a': {'[b]': 'x'}}).to.nested.include({'\\\\.a.\\\\[b\\\\]': 'x'});\n *\n * `.nested` cannot be combined with `.own`.\n *\n * @name nested\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('nested', function () {\n flag(this, 'nested', true);\n });\n\n /**\n * ### .own\n *\n * Causes all `.property` and `.include` assertions that follow in the chain\n * to ignore inherited properties.\n *\n * Object.prototype.b = 2;\n *\n * expect({a: 1}).to.have.own.property('a');\n * expect({a: 1}).to.have.property('b');\n * expect({a: 1}).to.not.have.own.property('b');\n *\n * expect({a: 1}).to.own.include({a: 1});\n * expect({a: 1}).to.include({b: 2}).but.not.own.include({b: 2});\n *\n * `.own` cannot be combined with `.nested`.\n *\n * @name own\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('own', function () {\n flag(this, 'own', true);\n });\n\n /**\n * ### .ordered\n *\n * Causes all `.members` assertions that follow in the chain to require that\n * members be in the same order.\n *\n * expect([1, 2]).to.have.ordered.members([1, 2])\n * .but.not.have.ordered.members([2, 1]);\n *\n * When `.include` and `.ordered` are combined, the ordering begins at the\n * start of both arrays.\n *\n * expect([1, 2, 3]).to.include.ordered.members([1, 2])\n * .but.not.include.ordered.members([2, 3]);\n *\n * @name ordered\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('ordered', function () {\n flag(this, 'ordered', true);\n });\n\n /**\n * ### .any\n *\n * Causes all `.keys` assertions that follow in the chain to only require that\n * the target have at least one of the given keys. This is the opposite of\n * `.all`, which requires that the target have all of the given keys.\n *\n * expect({a: 1, b: 2}).to.not.have.any.keys('c', 'd');\n *\n * See the `.keys` doc for guidance on when to use `.any` or `.all`.\n *\n * @name any\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('any', function () {\n flag(this, 'any', true);\n flag(this, 'all', false);\n });\n\n /**\n * ### .all\n *\n * Causes all `.keys` assertions that follow in the chain to require that the\n * target have all of the given keys. This is the opposite of `.any`, which\n * only requires that the target have at least one of the given keys.\n *\n * expect({a: 1, b: 2}).to.have.all.keys('a', 'b');\n *\n * Note that `.all` is used by default when neither `.all` nor `.any` are\n * added earlier in the chain. However, it's often best to add `.all` anyway\n * because it improves readability.\n *\n * See the `.keys` doc for guidance on when to use `.any` or `.all`.\n *\n * @name all\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('all', function () {\n flag(this, 'all', true);\n flag(this, 'any', false);\n });\n\n /**\n * ### .a(type[, msg])\n *\n * Asserts that the target's type is equal to the given string `type`. Types\n * are case insensitive. See the `type-detect` project page for info on the\n * type detection algorithm: https://github.com/chaijs/type-detect.\n *\n * expect('foo').to.be.a('string');\n * expect({a: 1}).to.be.an('object');\n * expect(null).to.be.a('null');\n * expect(undefined).to.be.an('undefined');\n * expect(new Error).to.be.an('error');\n * expect(Promise.resolve()).to.be.a('promise');\n * expect(new Float32Array).to.be.a('float32array');\n * expect(Symbol()).to.be.a('symbol');\n *\n * `.a` supports objects that have a custom type set via `Symbol.toStringTag`.\n *\n * var myObj = {\n * [Symbol.toStringTag]: 'myCustomType'\n * };\n *\n * expect(myObj).to.be.a('myCustomType').but.not.an('object');\n *\n * It's often best to use `.a` to check a target's type before making more\n * assertions on the same target. That way, you avoid unexpected behavior from\n * any assertion that does different things based on the target's type.\n *\n * expect([1, 2, 3]).to.be.an('array').that.includes(2);\n * expect([]).to.be.an('array').that.is.empty;\n *\n * Add `.not` earlier in the chain to negate `.a`. However, it's often best to\n * assert that the target is the expected type, rather than asserting that it\n * isn't one of many unexpected types.\n *\n * expect('foo').to.be.a('string'); // Recommended\n * expect('foo').to.not.be.an('array'); // Not recommended\n *\n * `.a` accepts an optional `msg` argument which is a custom error message to\n * show when the assertion fails. The message can also be given as the second\n * argument to `expect`.\n *\n * expect(1).to.be.a('string', 'nooo why fail??');\n * expect(1, 'nooo why fail??').to.be.a('string');\n *\n * `.a` can also be used as a language chain to improve the readability of\n * your assertions.\n *\n * expect({b: 2}).to.have.a.property('b');\n *\n * The alias `.an` can be used interchangeably with `.a`.\n *\n * @name a\n * @alias an\n * @param {String} type\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function an (type, msg) {\n if (msg) flag(this, 'message', msg);\n type = type.toLowerCase();\n var obj = flag(this, 'object')\n , article = ~[ 'a', 'e', 'i', 'o', 'u' ].indexOf(type.charAt(0)) ? 'an ' : 'a ';\n\n this.assert(\n type === _.type(obj).toLowerCase()\n , 'expected #{this} to be ' + article + type\n , 'expected #{this} not to be ' + article + type\n );\n }\n\n Assertion.addChainableMethod('an', an);\n Assertion.addChainableMethod('a', an);\n\n /**\n * ### .include(val[, msg])\n *\n * When the target is a string, `.include` asserts that the given string `val`\n * is a substring of the target.\n *\n * expect('foobar').to.include('foo');\n *\n * When the target is an array, `.include` asserts that the given `val` is a\n * member of the target.\n *\n * expect([1, 2, 3]).to.include(2);\n *\n * When the target is an object, `.include` asserts that the given object\n * `val`'s properties are a subset of the target's properties.\n *\n * expect({a: 1, b: 2, c: 3}).to.include({a: 1, b: 2});\n *\n * When the target is a Set or WeakSet, `.include` asserts that the given `val` is a\n * member of the target. SameValueZero equality algorithm is used.\n *\n * expect(new Set([1, 2])).to.include(2);\n *\n * When the target is a Map, `.include` asserts that the given `val` is one of\n * the values of the target. SameValueZero equality algorithm is used.\n *\n * expect(new Map([['a', 1], ['b', 2]])).to.include(2);\n *\n * Because `.include` does different things based on the target's type, it's\n * important to check the target's type before using `.include`. See the `.a`\n * doc for info on testing a target's type.\n *\n * expect([1, 2, 3]).to.be.an('array').that.includes(2);\n *\n * By default, strict (`===`) equality is used to compare array members and\n * object properties. Add `.deep` earlier in the chain to use deep equality\n * instead (WeakSet targets are not supported). See the `deep-eql` project\n * page for info on the deep equality algorithm: https://github.com/chaijs/deep-eql.\n *\n * // Target array deeply (but not strictly) includes `{a: 1}`\n * expect([{a: 1}]).to.deep.include({a: 1});\n * expect([{a: 1}]).to.not.include({a: 1});\n *\n * // Target object deeply (but not strictly) includes `x: {a: 1}`\n * expect({x: {a: 1}}).to.deep.include({x: {a: 1}});\n * expect({x: {a: 1}}).to.not.include({x: {a: 1}});\n *\n * By default, all of the target's properties are searched when working with\n * objects. This includes properties that are inherited and/or non-enumerable.\n * Add `.own` earlier in the chain to exclude the target's inherited\n * properties from the search.\n *\n * Object.prototype.b = 2;\n *\n * expect({a: 1}).to.own.include({a: 1});\n * expect({a: 1}).to.include({b: 2}).but.not.own.include({b: 2});\n *\n * Note that a target object is always only searched for `val`'s own\n * enumerable properties.\n *\n * `.deep` and `.own` can be combined.\n *\n * expect({a: {b: 2}}).to.deep.own.include({a: {b: 2}});\n *\n * Add `.nested` earlier in the chain to enable dot- and bracket-notation when\n * referencing nested properties.\n *\n * expect({a: {b: ['x', 'y']}}).to.nested.include({'a.b[1]': 'y'});\n *\n * If `.` or `[]` are part of an actual property name, they can be escaped by\n * adding two backslashes before them.\n *\n * expect({'.a': {'[b]': 2}}).to.nested.include({'\\\\.a.\\\\[b\\\\]': 2});\n *\n * `.deep` and `.nested` can be combined.\n *\n * expect({a: {b: [{c: 3}]}}).to.deep.nested.include({'a.b[0]': {c: 3}});\n *\n * `.own` and `.nested` cannot be combined.\n *\n * Add `.not` earlier in the chain to negate `.include`.\n *\n * expect('foobar').to.not.include('taco');\n * expect([1, 2, 3]).to.not.include(4);\n *\n * However, it's dangerous to negate `.include` when the target is an object.\n * The problem is that it creates uncertain expectations by asserting that the\n * target object doesn't have all of `val`'s key/value pairs but may or may\n * not have some of them. It's often best to identify the exact output that's\n * expected, and then write an assertion that only accepts that exact output.\n *\n * When the target object isn't even expected to have `val`'s keys, it's\n * often best to assert exactly that.\n *\n * expect({c: 3}).to.not.have.any.keys('a', 'b'); // Recommended\n * expect({c: 3}).to.not.include({a: 1, b: 2}); // Not recommended\n *\n * When the target object is expected to have `val`'s keys, it's often best to\n * assert that each of the properties has its expected value, rather than\n * asserting that each property doesn't have one of many unexpected values.\n *\n * expect({a: 3, b: 4}).to.include({a: 3, b: 4}); // Recommended\n * expect({a: 3, b: 4}).to.not.include({a: 1, b: 2}); // Not recommended\n *\n * `.include` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`.\n *\n * expect([1, 2, 3]).to.include(4, 'nooo why fail??');\n * expect([1, 2, 3], 'nooo why fail??').to.include(4);\n *\n * `.include` can also be used as a language chain, causing all `.members` and\n * `.keys` assertions that follow in the chain to require the target to be a\n * superset of the expected set, rather than an identical set. Note that\n * `.members` ignores duplicates in the subset when `.include` is added.\n *\n * // Target object's keys are a superset of ['a', 'b'] but not identical\n * expect({a: 1, b: 2, c: 3}).to.include.all.keys('a', 'b');\n * expect({a: 1, b: 2, c: 3}).to.not.have.all.keys('a', 'b');\n *\n * // Target array is a superset of [1, 2] but not identical\n * expect([1, 2, 3]).to.include.members([1, 2]);\n * expect([1, 2, 3]).to.not.have.members([1, 2]);\n *\n * // Duplicates in the subset are ignored\n * expect([1, 2, 3]).to.include.members([1, 2, 2, 2]);\n *\n * Note that adding `.any` earlier in the chain causes the `.keys` assertion\n * to ignore `.include`.\n *\n * // Both assertions are identical\n * expect({a: 1}).to.include.any.keys('a', 'b');\n * expect({a: 1}).to.have.any.keys('a', 'b');\n *\n * The aliases `.includes`, `.contain`, and `.contains` can be used\n * interchangeably with `.include`.\n *\n * @name include\n * @alias contain\n * @alias includes\n * @alias contains\n * @param {Mixed} val\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function SameValueZero(a, b) {\n return (_.isNaN(a) && _.isNaN(b)) || a === b;\n }\n\n function includeChainingBehavior () {\n flag(this, 'contains', true);\n }\n\n function include (val, msg) {\n if (msg) flag(this, 'message', msg);\n\n var obj = flag(this, 'object')\n , objType = _.type(obj).toLowerCase()\n , flagMsg = flag(this, 'message')\n , negate = flag(this, 'negate')\n , ssfi = flag(this, 'ssfi')\n , isDeep = flag(this, 'deep')\n , descriptor = isDeep ? 'deep ' : '';\n\n flagMsg = flagMsg ? flagMsg + ': ' : '';\n\n var included = false;\n\n switch (objType) {\n case 'string':\n included = obj.indexOf(val) !== -1;\n break;\n\n case 'weakset':\n if (isDeep) {\n throw new AssertionError(\n flagMsg + 'unable to use .deep.include with WeakSet',\n undefined,\n ssfi\n );\n }\n\n included = obj.has(val);\n break;\n\n case 'map':\n var isEql = isDeep ? _.eql : SameValueZero;\n obj.forEach(function (item) {\n included = included || isEql(item, val);\n });\n break;\n\n case 'set':\n if (isDeep) {\n obj.forEach(function (item) {\n included = included || _.eql(item, val);\n });\n } else {\n included = obj.has(val);\n }\n break;\n\n case 'array':\n if (isDeep) {\n included = obj.some(function (item) {\n return _.eql(item, val);\n })\n } else {\n included = obj.indexOf(val) !== -1;\n }\n break;\n\n default:\n // This block is for asserting a subset of properties in an object.\n // `_.expectTypes` isn't used here because `.include` should work with\n // objects with a custom `@@toStringTag`.\n if (val !== Object(val)) {\n throw new AssertionError(\n flagMsg + 'the given combination of arguments ('\n + objType + ' and '\n + _.type(val).toLowerCase() + ')'\n + ' is invalid for this assertion. '\n + 'You can use an array, a map, an object, a set, a string, '\n + 'or a weakset instead of a '\n + _.type(val).toLowerCase(),\n undefined,\n ssfi\n );\n }\n\n var props = Object.keys(val)\n , firstErr = null\n , numErrs = 0;\n\n props.forEach(function (prop) {\n var propAssertion = new Assertion(obj);\n _.transferFlags(this, propAssertion, true);\n flag(propAssertion, 'lockSsfi', true);\n\n if (!negate || props.length === 1) {\n propAssertion.property(prop, val[prop]);\n return;\n }\n\n try {\n propAssertion.property(prop, val[prop]);\n } catch (err) {\n if (!_.checkError.compatibleConstructor(err, AssertionError)) {\n throw err;\n }\n if (firstErr === null) firstErr = err;\n numErrs++;\n }\n }, this);\n\n // When validating .not.include with multiple properties, we only want\n // to throw an assertion error if all of the properties are included,\n // in which case we throw the first property assertion error that we\n // encountered.\n if (negate && props.length > 1 && numErrs === props.length) {\n throw firstErr;\n }\n return;\n }\n\n // Assert inclusion in collection or substring in a string.\n this.assert(\n included\n , 'expected #{this} to ' + descriptor + 'include ' + _.inspect(val)\n , 'expected #{this} to not ' + descriptor + 'include ' + _.inspect(val));\n }\n\n Assertion.addChainableMethod('include', include, includeChainingBehavior);\n Assertion.addChainableMethod('contain', include, includeChainingBehavior);\n Assertion.addChainableMethod('contains', include, includeChainingBehavior);\n Assertion.addChainableMethod('includes', include, includeChainingBehavior);\n\n /**\n * ### .ok\n *\n * Asserts that the target is a truthy value (considered `true` in boolean context).\n * However, it's often best to assert that the target is strictly (`===`) or\n * deeply equal to its expected value.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.be.ok; // Not recommended\n *\n * expect(true).to.be.true; // Recommended\n * expect(true).to.be.ok; // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.ok`.\n *\n * expect(0).to.equal(0); // Recommended\n * expect(0).to.not.be.ok; // Not recommended\n *\n * expect(false).to.be.false; // Recommended\n * expect(false).to.not.be.ok; // Not recommended\n *\n * expect(null).to.be.null; // Recommended\n * expect(null).to.not.be.ok; // Not recommended\n *\n * expect(undefined).to.be.undefined; // Recommended\n * expect(undefined).to.not.be.ok; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect(false, 'nooo why fail??').to.be.ok;\n *\n * @name ok\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('ok', function () {\n this.assert(\n flag(this, 'object')\n , 'expected #{this} to be truthy'\n , 'expected #{this} to be falsy');\n });\n\n /**\n * ### .true\n *\n * Asserts that the target is strictly (`===`) equal to `true`.\n *\n * expect(true).to.be.true;\n *\n * Add `.not` earlier in the chain to negate `.true`. However, it's often best\n * to assert that the target is equal to its expected value, rather than not\n * equal to `true`.\n *\n * expect(false).to.be.false; // Recommended\n * expect(false).to.not.be.true; // Not recommended\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.not.be.true; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect(false, 'nooo why fail??').to.be.true;\n *\n * @name true\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('true', function () {\n this.assert(\n true === flag(this, 'object')\n , 'expected #{this} to be true'\n , 'expected #{this} to be false'\n , flag(this, 'negate') ? false : true\n );\n });\n\n /**\n * ### .false\n *\n * Asserts that the target is strictly (`===`) equal to `false`.\n *\n * expect(false).to.be.false;\n *\n * Add `.not` earlier in the chain to negate `.false`. However, it's often\n * best to assert that the target is equal to its expected value, rather than\n * not equal to `false`.\n *\n * expect(true).to.be.true; // Recommended\n * expect(true).to.not.be.false; // Not recommended\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.not.be.false; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect(true, 'nooo why fail??').to.be.false;\n *\n * @name false\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('false', function () {\n this.assert(\n false === flag(this, 'object')\n , 'expected #{this} to be false'\n , 'expected #{this} to be true'\n , flag(this, 'negate') ? true : false\n );\n });\n\n /**\n * ### .null\n *\n * Asserts that the target is strictly (`===`) equal to `null`.\n *\n * expect(null).to.be.null;\n *\n * Add `.not` earlier in the chain to negate `.null`. However, it's often best\n * to assert that the target is equal to its expected value, rather than not\n * equal to `null`.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.not.be.null; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect(42, 'nooo why fail??').to.be.null;\n *\n * @name null\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('null', function () {\n this.assert(\n null === flag(this, 'object')\n , 'expected #{this} to be null'\n , 'expected #{this} not to be null'\n );\n });\n\n /**\n * ### .undefined\n *\n * Asserts that the target is strictly (`===`) equal to `undefined`.\n *\n * expect(undefined).to.be.undefined;\n *\n * Add `.not` earlier in the chain to negate `.undefined`. However, it's often\n * best to assert that the target is equal to its expected value, rather than\n * not equal to `undefined`.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.not.be.undefined; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect(42, 'nooo why fail??').to.be.undefined;\n *\n * @name undefined\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('undefined', function () {\n this.assert(\n undefined === flag(this, 'object')\n , 'expected #{this} to be undefined'\n , 'expected #{this} not to be undefined'\n );\n });\n\n /**\n * ### .NaN\n *\n * Asserts that the target is exactly `NaN`.\n *\n * expect(NaN).to.be.NaN;\n *\n * Add `.not` earlier in the chain to negate `.NaN`. However, it's often best\n * to assert that the target is equal to its expected value, rather than not\n * equal to `NaN`.\n *\n * expect('foo').to.equal('foo'); // Recommended\n * expect('foo').to.not.be.NaN; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect(42, 'nooo why fail??').to.be.NaN;\n *\n * @name NaN\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('NaN', function () {\n this.assert(\n _.isNaN(flag(this, 'object'))\n , 'expected #{this} to be NaN'\n , 'expected #{this} not to be NaN'\n );\n });\n\n /**\n * ### .exist\n *\n * Asserts that the target is not strictly (`===`) equal to either `null` or\n * `undefined`. However, it's often best to assert that the target is equal to\n * its expected value.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.exist; // Not recommended\n *\n * expect(0).to.equal(0); // Recommended\n * expect(0).to.exist; // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.exist`.\n *\n * expect(null).to.be.null; // Recommended\n * expect(null).to.not.exist; // Not recommended\n *\n * expect(undefined).to.be.undefined; // Recommended\n * expect(undefined).to.not.exist; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect(null, 'nooo why fail??').to.exist;\n *\n * The alias `.exists` can be used interchangeably with `.exist`.\n *\n * @name exist\n * @alias exists\n * @namespace BDD\n * @api public\n */\n\n function assertExist () {\n var val = flag(this, 'object');\n this.assert(\n val !== null && val !== undefined\n , 'expected #{this} to exist'\n , 'expected #{this} to not exist'\n );\n }\n\n Assertion.addProperty('exist', assertExist);\n Assertion.addProperty('exists', assertExist);\n\n /**\n * ### .empty\n *\n * When the target is a string or array, `.empty` asserts that the target's\n * `length` property is strictly (`===`) equal to `0`.\n *\n * expect([]).to.be.empty;\n * expect('').to.be.empty;\n *\n * When the target is a map or set, `.empty` asserts that the target's `size`\n * property is strictly equal to `0`.\n *\n * expect(new Set()).to.be.empty;\n * expect(new Map()).to.be.empty;\n *\n * When the target is a non-function object, `.empty` asserts that the target\n * doesn't have any own enumerable properties. Properties with Symbol-based\n * keys are excluded from the count.\n *\n * expect({}).to.be.empty;\n *\n * Because `.empty` does different things based on the target's type, it's\n * important to check the target's type before using `.empty`. See the `.a`\n * doc for info on testing a target's type.\n *\n * expect([]).to.be.an('array').that.is.empty;\n *\n * Add `.not` earlier in the chain to negate `.empty`. However, it's often\n * best to assert that the target contains its expected number of values,\n * rather than asserting that it's not empty.\n *\n * expect([1, 2, 3]).to.have.lengthOf(3); // Recommended\n * expect([1, 2, 3]).to.not.be.empty; // Not recommended\n *\n * expect(new Set([1, 2, 3])).to.have.property('size', 3); // Recommended\n * expect(new Set([1, 2, 3])).to.not.be.empty; // Not recommended\n *\n * expect(Object.keys({a: 1})).to.have.lengthOf(1); // Recommended\n * expect({a: 1}).to.not.be.empty; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect([1, 2, 3], 'nooo why fail??').to.be.empty;\n *\n * @name empty\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('empty', function () {\n var val = flag(this, 'object')\n , ssfi = flag(this, 'ssfi')\n , flagMsg = flag(this, 'message')\n , itemsCount;\n\n flagMsg = flagMsg ? flagMsg + ': ' : '';\n\n switch (_.type(val).toLowerCase()) {\n case 'array':\n case 'string':\n itemsCount = val.length;\n break;\n case 'map':\n case 'set':\n itemsCount = val.size;\n break;\n case 'weakmap':\n case 'weakset':\n throw new AssertionError(\n flagMsg + '.empty was passed a weak collection',\n undefined,\n ssfi\n );\n case 'function':\n var msg = flagMsg + '.empty was passed a function ' + _.getName(val);\n throw new AssertionError(msg.trim(), undefined, ssfi);\n default:\n if (val !== Object(val)) {\n throw new AssertionError(\n flagMsg + '.empty was passed non-string primitive ' + _.inspect(val),\n undefined,\n ssfi\n );\n }\n itemsCount = Object.keys(val).length;\n }\n\n this.assert(\n 0 === itemsCount\n , 'expected #{this} to be empty'\n , 'expected #{this} not to be empty'\n );\n });\n\n /**\n * ### .arguments\n *\n * Asserts that the target is an `arguments` object.\n *\n * function test () {\n * expect(arguments).to.be.arguments;\n * }\n *\n * test();\n *\n * Add `.not` earlier in the chain to negate `.arguments`. However, it's often\n * best to assert which type the target is expected to be, rather than\n * asserting that it’s not an `arguments` object.\n *\n * expect('foo').to.be.a('string'); // Recommended\n * expect('foo').to.not.be.arguments; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect({}, 'nooo why fail??').to.be.arguments;\n *\n * The alias `.Arguments` can be used interchangeably with `.arguments`.\n *\n * @name arguments\n * @alias Arguments\n * @namespace BDD\n * @api public\n */\n\n function checkArguments () {\n var obj = flag(this, 'object')\n , type = _.type(obj);\n this.assert(\n 'Arguments' === type\n , 'expected #{this} to be arguments but got ' + type\n , 'expected #{this} to not be arguments'\n );\n }\n\n Assertion.addProperty('arguments', checkArguments);\n Assertion.addProperty('Arguments', checkArguments);\n\n /**\n * ### .equal(val[, msg])\n *\n * Asserts that the target is strictly (`===`) equal to the given `val`.\n *\n * expect(1).to.equal(1);\n * expect('foo').to.equal('foo');\n *\n * Add `.deep` earlier in the chain to use deep equality instead. See the\n * `deep-eql` project page for info on the deep equality algorithm:\n * https://github.com/chaijs/deep-eql.\n *\n * // Target object deeply (but not strictly) equals `{a: 1}`\n * expect({a: 1}).to.deep.equal({a: 1});\n * expect({a: 1}).to.not.equal({a: 1});\n *\n * // Target array deeply (but not strictly) equals `[1, 2]`\n * expect([1, 2]).to.deep.equal([1, 2]);\n * expect([1, 2]).to.not.equal([1, 2]);\n *\n * Add `.not` earlier in the chain to negate `.equal`. However, it's often\n * best to assert that the target is equal to its expected value, rather than\n * not equal to one of countless unexpected values.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.not.equal(2); // Not recommended\n *\n * `.equal` accepts an optional `msg` argument which is a custom error message\n * to show when the assertion fails. The message can also be given as the\n * second argument to `expect`.\n *\n * expect(1).to.equal(2, 'nooo why fail??');\n * expect(1, 'nooo why fail??').to.equal(2);\n *\n * The aliases `.equals` and `eq` can be used interchangeably with `.equal`.\n *\n * @name equal\n * @alias equals\n * @alias eq\n * @param {Mixed} val\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertEqual (val, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object');\n if (flag(this, 'deep')) {\n var prevLockSsfi = flag(this, 'lockSsfi');\n flag(this, 'lockSsfi', true);\n this.eql(val);\n flag(this, 'lockSsfi', prevLockSsfi);\n } else {\n this.assert(\n val === obj\n , 'expected #{this} to equal #{exp}'\n , 'expected #{this} to not equal #{exp}'\n , val\n , this._obj\n , true\n );\n }\n }\n\n Assertion.addMethod('equal', assertEqual);\n Assertion.addMethod('equals', assertEqual);\n Assertion.addMethod('eq', assertEqual);\n\n /**\n * ### .eql(obj[, msg])\n *\n * Asserts that the target is deeply equal to the given `obj`. See the\n * `deep-eql` project page for info on the deep equality algorithm:\n * https://github.com/chaijs/deep-eql.\n *\n * // Target object is deeply (but not strictly) equal to {a: 1}\n * expect({a: 1}).to.eql({a: 1}).but.not.equal({a: 1});\n *\n * // Target array is deeply (but not strictly) equal to [1, 2]\n * expect([1, 2]).to.eql([1, 2]).but.not.equal([1, 2]);\n *\n * Add `.not` earlier in the chain to negate `.eql`. However, it's often best\n * to assert that the target is deeply equal to its expected value, rather\n * than not deeply equal to one of countless unexpected values.\n *\n * expect({a: 1}).to.eql({a: 1}); // Recommended\n * expect({a: 1}).to.not.eql({b: 2}); // Not recommended\n *\n * `.eql` accepts an optional `msg` argument which is a custom error message\n * to show when the assertion fails. The message can also be given as the\n * second argument to `expect`.\n *\n * expect({a: 1}).to.eql({b: 2}, 'nooo why fail??');\n * expect({a: 1}, 'nooo why fail??').to.eql({b: 2});\n *\n * The alias `.eqls` can be used interchangeably with `.eql`.\n *\n * The `.deep.equal` assertion is almost identical to `.eql` but with one\n * difference: `.deep.equal` causes deep equality comparisons to also be used\n * for any other assertions that follow in the chain.\n *\n * @name eql\n * @alias eqls\n * @param {Mixed} obj\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertEql(obj, msg) {\n if (msg) flag(this, 'message', msg);\n this.assert(\n _.eql(obj, flag(this, 'object'))\n , 'expected #{this} to deeply equal #{exp}'\n , 'expected #{this} to not deeply equal #{exp}'\n , obj\n , this._obj\n , true\n );\n }\n\n Assertion.addMethod('eql', assertEql);\n Assertion.addMethod('eqls', assertEql);\n\n /**\n * ### .above(n[, msg])\n *\n * Asserts that the target is a number or a date greater than the given number or date `n` respectively.\n * However, it's often best to assert that the target is equal to its expected\n * value.\n *\n * expect(2).to.equal(2); // Recommended\n * expect(2).to.be.above(1); // Not recommended\n *\n * Add `.lengthOf` earlier in the chain to assert that the target's `length`\n * or `size` is greater than the given number `n`.\n *\n * expect('foo').to.have.lengthOf(3); // Recommended\n * expect('foo').to.have.lengthOf.above(2); // Not recommended\n *\n * expect([1, 2, 3]).to.have.lengthOf(3); // Recommended\n * expect([1, 2, 3]).to.have.lengthOf.above(2); // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.above`.\n *\n * expect(2).to.equal(2); // Recommended\n * expect(1).to.not.be.above(2); // Not recommended\n *\n * `.above` accepts an optional `msg` argument which is a custom error message\n * to show when the assertion fails. The message can also be given as the\n * second argument to `expect`.\n *\n * expect(1).to.be.above(2, 'nooo why fail??');\n * expect(1, 'nooo why fail??').to.be.above(2);\n *\n * The aliases `.gt` and `.greaterThan` can be used interchangeably with\n * `.above`.\n *\n * @name above\n * @alias gt\n * @alias greaterThan\n * @param {Number} n\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertAbove (n, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , doLength = flag(this, 'doLength')\n , flagMsg = flag(this, 'message')\n , msgPrefix = ((flagMsg) ? flagMsg + ': ' : '')\n , ssfi = flag(this, 'ssfi')\n , objType = _.type(obj).toLowerCase()\n , nType = _.type(n).toLowerCase()\n , errorMessage\n , shouldThrow = true;\n\n if (doLength && objType !== 'map' && objType !== 'set') {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property('length');\n }\n\n if (!doLength && (objType === 'date' && nType !== 'date')) {\n errorMessage = msgPrefix + 'the argument to above must be a date';\n } else if (nType !== 'number' && (doLength || objType === 'number')) {\n errorMessage = msgPrefix + 'the argument to above must be a number';\n } else if (!doLength && (objType !== 'date' && objType !== 'number')) {\n var printObj = (objType === 'string') ? \"'\" + obj + \"'\" : obj;\n errorMessage = msgPrefix + 'expected ' + printObj + ' to be a number or a date';\n } else {\n shouldThrow = false;\n }\n\n if (shouldThrow) {\n throw new AssertionError(errorMessage, undefined, ssfi);\n }\n\n if (doLength) {\n var descriptor = 'length'\n , itemsCount;\n if (objType === 'map' || objType === 'set') {\n descriptor = 'size';\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount > n\n , 'expected #{this} to have a ' + descriptor + ' above #{exp} but got #{act}'\n , 'expected #{this} to not have a ' + descriptor + ' above #{exp}'\n , n\n , itemsCount\n );\n } else {\n this.assert(\n obj > n\n , 'expected #{this} to be above #{exp}'\n , 'expected #{this} to be at most #{exp}'\n , n\n );\n }\n }\n\n Assertion.addMethod('above', assertAbove);\n Assertion.addMethod('gt', assertAbove);\n Assertion.addMethod('greaterThan', assertAbove);\n\n /**\n * ### .least(n[, msg])\n *\n * Asserts that the target is a number or a date greater than or equal to the given\n * number or date `n` respectively. However, it's often best to assert that the target is equal to\n * its expected value.\n *\n * expect(2).to.equal(2); // Recommended\n * expect(2).to.be.at.least(1); // Not recommended\n * expect(2).to.be.at.least(2); // Not recommended\n *\n * Add `.lengthOf` earlier in the chain to assert that the target's `length`\n * or `size` is greater than or equal to the given number `n`.\n *\n * expect('foo').to.have.lengthOf(3); // Recommended\n * expect('foo').to.have.lengthOf.at.least(2); // Not recommended\n *\n * expect([1, 2, 3]).to.have.lengthOf(3); // Recommended\n * expect([1, 2, 3]).to.have.lengthOf.at.least(2); // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.least`.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.not.be.at.least(2); // Not recommended\n *\n * `.least` accepts an optional `msg` argument which is a custom error message\n * to show when the assertion fails. The message can also be given as the\n * second argument to `expect`.\n *\n * expect(1).to.be.at.least(2, 'nooo why fail??');\n * expect(1, 'nooo why fail??').to.be.at.least(2);\n *\n * The aliases `.gte` and `.greaterThanOrEqual` can be used interchangeably with\n * `.least`.\n *\n * @name least\n * @alias gte\n * @alias greaterThanOrEqual\n * @param {Number} n\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertLeast (n, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , doLength = flag(this, 'doLength')\n , flagMsg = flag(this, 'message')\n , msgPrefix = ((flagMsg) ? flagMsg + ': ' : '')\n , ssfi = flag(this, 'ssfi')\n , objType = _.type(obj).toLowerCase()\n , nType = _.type(n).toLowerCase()\n , errorMessage\n , shouldThrow = true;\n\n if (doLength && objType !== 'map' && objType !== 'set') {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property('length');\n }\n\n if (!doLength && (objType === 'date' && nType !== 'date')) {\n errorMessage = msgPrefix + 'the argument to least must be a date';\n } else if (nType !== 'number' && (doLength || objType === 'number')) {\n errorMessage = msgPrefix + 'the argument to least must be a number';\n } else if (!doLength && (objType !== 'date' && objType !== 'number')) {\n var printObj = (objType === 'string') ? \"'\" + obj + \"'\" : obj;\n errorMessage = msgPrefix + 'expected ' + printObj + ' to be a number or a date';\n } else {\n shouldThrow = false;\n }\n\n if (shouldThrow) {\n throw new AssertionError(errorMessage, undefined, ssfi);\n }\n\n if (doLength) {\n var descriptor = 'length'\n , itemsCount;\n if (objType === 'map' || objType === 'set') {\n descriptor = 'size';\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount >= n\n , 'expected #{this} to have a ' + descriptor + ' at least #{exp} but got #{act}'\n , 'expected #{this} to have a ' + descriptor + ' below #{exp}'\n , n\n , itemsCount\n );\n } else {\n this.assert(\n obj >= n\n , 'expected #{this} to be at least #{exp}'\n , 'expected #{this} to be below #{exp}'\n , n\n );\n }\n }\n\n Assertion.addMethod('least', assertLeast);\n Assertion.addMethod('gte', assertLeast);\n Assertion.addMethod('greaterThanOrEqual', assertLeast);\n\n /**\n * ### .below(n[, msg])\n *\n * Asserts that the target is a number or a date less than the given number or date `n` respectively.\n * However, it's often best to assert that the target is equal to its expected\n * value.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.be.below(2); // Not recommended\n *\n * Add `.lengthOf` earlier in the chain to assert that the target's `length`\n * or `size` is less than the given number `n`.\n *\n * expect('foo').to.have.lengthOf(3); // Recommended\n * expect('foo').to.have.lengthOf.below(4); // Not recommended\n *\n * expect([1, 2, 3]).to.have.length(3); // Recommended\n * expect([1, 2, 3]).to.have.lengthOf.below(4); // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.below`.\n *\n * expect(2).to.equal(2); // Recommended\n * expect(2).to.not.be.below(1); // Not recommended\n *\n * `.below` accepts an optional `msg` argument which is a custom error message\n * to show when the assertion fails. The message can also be given as the\n * second argument to `expect`.\n *\n * expect(2).to.be.below(1, 'nooo why fail??');\n * expect(2, 'nooo why fail??').to.be.below(1);\n *\n * The aliases `.lt` and `.lessThan` can be used interchangeably with\n * `.below`.\n *\n * @name below\n * @alias lt\n * @alias lessThan\n * @param {Number} n\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertBelow (n, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , doLength = flag(this, 'doLength')\n , flagMsg = flag(this, 'message')\n , msgPrefix = ((flagMsg) ? flagMsg + ': ' : '')\n , ssfi = flag(this, 'ssfi')\n , objType = _.type(obj).toLowerCase()\n , nType = _.type(n).toLowerCase()\n , errorMessage\n , shouldThrow = true;\n\n if (doLength && objType !== 'map' && objType !== 'set') {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property('length');\n }\n\n if (!doLength && (objType === 'date' && nType !== 'date')) {\n errorMessage = msgPrefix + 'the argument to below must be a date';\n } else if (nType !== 'number' && (doLength || objType === 'number')) {\n errorMessage = msgPrefix + 'the argument to below must be a number';\n } else if (!doLength && (objType !== 'date' && objType !== 'number')) {\n var printObj = (objType === 'string') ? \"'\" + obj + \"'\" : obj;\n errorMessage = msgPrefix + 'expected ' + printObj + ' to be a number or a date';\n } else {\n shouldThrow = false;\n }\n\n if (shouldThrow) {\n throw new AssertionError(errorMessage, undefined, ssfi);\n }\n\n if (doLength) {\n var descriptor = 'length'\n , itemsCount;\n if (objType === 'map' || objType === 'set') {\n descriptor = 'size';\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount < n\n , 'expected #{this} to have a ' + descriptor + ' below #{exp} but got #{act}'\n , 'expected #{this} to not have a ' + descriptor + ' below #{exp}'\n , n\n , itemsCount\n );\n } else {\n this.assert(\n obj < n\n , 'expected #{this} to be below #{exp}'\n , 'expected #{this} to be at least #{exp}'\n , n\n );\n }\n }\n\n Assertion.addMethod('below', assertBelow);\n Assertion.addMethod('lt', assertBelow);\n Assertion.addMethod('lessThan', assertBelow);\n\n /**\n * ### .most(n[, msg])\n *\n * Asserts that the target is a number or a date less than or equal to the given number\n * or date `n` respectively. However, it's often best to assert that the target is equal to its\n * expected value.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.be.at.most(2); // Not recommended\n * expect(1).to.be.at.most(1); // Not recommended\n *\n * Add `.lengthOf` earlier in the chain to assert that the target's `length`\n * or `size` is less than or equal to the given number `n`.\n *\n * expect('foo').to.have.lengthOf(3); // Recommended\n * expect('foo').to.have.lengthOf.at.most(4); // Not recommended\n *\n * expect([1, 2, 3]).to.have.lengthOf(3); // Recommended\n * expect([1, 2, 3]).to.have.lengthOf.at.most(4); // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.most`.\n *\n * expect(2).to.equal(2); // Recommended\n * expect(2).to.not.be.at.most(1); // Not recommended\n *\n * `.most` accepts an optional `msg` argument which is a custom error message\n * to show when the assertion fails. The message can also be given as the\n * second argument to `expect`.\n *\n * expect(2).to.be.at.most(1, 'nooo why fail??');\n * expect(2, 'nooo why fail??').to.be.at.most(1);\n *\n * The aliases `.lte` and `.lessThanOrEqual` can be used interchangeably with\n * `.most`.\n *\n * @name most\n * @alias lte\n * @alias lessThanOrEqual\n * @param {Number} n\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertMost (n, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , doLength = flag(this, 'doLength')\n , flagMsg = flag(this, 'message')\n , msgPrefix = ((flagMsg) ? flagMsg + ': ' : '')\n , ssfi = flag(this, 'ssfi')\n , objType = _.type(obj).toLowerCase()\n , nType = _.type(n).toLowerCase()\n , errorMessage\n , shouldThrow = true;\n\n if (doLength && objType !== 'map' && objType !== 'set') {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property('length');\n }\n\n if (!doLength && (objType === 'date' && nType !== 'date')) {\n errorMessage = msgPrefix + 'the argument to most must be a date';\n } else if (nType !== 'number' && (doLength || objType === 'number')) {\n errorMessage = msgPrefix + 'the argument to most must be a number';\n } else if (!doLength && (objType !== 'date' && objType !== 'number')) {\n var printObj = (objType === 'string') ? \"'\" + obj + \"'\" : obj;\n errorMessage = msgPrefix + 'expected ' + printObj + ' to be a number or a date';\n } else {\n shouldThrow = false;\n }\n\n if (shouldThrow) {\n throw new AssertionError(errorMessage, undefined, ssfi);\n }\n\n if (doLength) {\n var descriptor = 'length'\n , itemsCount;\n if (objType === 'map' || objType === 'set') {\n descriptor = 'size';\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount <= n\n , 'expected #{this} to have a ' + descriptor + ' at most #{exp} but got #{act}'\n , 'expected #{this} to have a ' + descriptor + ' above #{exp}'\n , n\n , itemsCount\n );\n } else {\n this.assert(\n obj <= n\n , 'expected #{this} to be at most #{exp}'\n , 'expected #{this} to be above #{exp}'\n , n\n );\n }\n }\n\n Assertion.addMethod('most', assertMost);\n Assertion.addMethod('lte', assertMost);\n Assertion.addMethod('lessThanOrEqual', assertMost);\n\n /**\n * ### .within(start, finish[, msg])\n *\n * Asserts that the target is a number or a date greater than or equal to the given\n * number or date `start`, and less than or equal to the given number or date `finish` respectively.\n * However, it's often best to assert that the target is equal to its expected\n * value.\n *\n * expect(2).to.equal(2); // Recommended\n * expect(2).to.be.within(1, 3); // Not recommended\n * expect(2).to.be.within(2, 3); // Not recommended\n * expect(2).to.be.within(1, 2); // Not recommended\n *\n * Add `.lengthOf` earlier in the chain to assert that the target's `length`\n * or `size` is greater than or equal to the given number `start`, and less\n * than or equal to the given number `finish`.\n *\n * expect('foo').to.have.lengthOf(3); // Recommended\n * expect('foo').to.have.lengthOf.within(2, 4); // Not recommended\n *\n * expect([1, 2, 3]).to.have.lengthOf(3); // Recommended\n * expect([1, 2, 3]).to.have.lengthOf.within(2, 4); // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.within`.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.not.be.within(2, 4); // Not recommended\n *\n * `.within` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`.\n *\n * expect(4).to.be.within(1, 3, 'nooo why fail??');\n * expect(4, 'nooo why fail??').to.be.within(1, 3);\n *\n * @name within\n * @param {Number} start lower bound inclusive\n * @param {Number} finish upper bound inclusive\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n Assertion.addMethod('within', function (start, finish, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , doLength = flag(this, 'doLength')\n , flagMsg = flag(this, 'message')\n , msgPrefix = ((flagMsg) ? flagMsg + ': ' : '')\n , ssfi = flag(this, 'ssfi')\n , objType = _.type(obj).toLowerCase()\n , startType = _.type(start).toLowerCase()\n , finishType = _.type(finish).toLowerCase()\n , errorMessage\n , shouldThrow = true\n , range = (startType === 'date' && finishType === 'date')\n ? start.toISOString() + '..' + finish.toISOString()\n : start + '..' + finish;\n\n if (doLength && objType !== 'map' && objType !== 'set') {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property('length');\n }\n\n if (!doLength && (objType === 'date' && (startType !== 'date' || finishType !== 'date'))) {\n errorMessage = msgPrefix + 'the arguments to within must be dates';\n } else if ((startType !== 'number' || finishType !== 'number') && (doLength || objType === 'number')) {\n errorMessage = msgPrefix + 'the arguments to within must be numbers';\n } else if (!doLength && (objType !== 'date' && objType !== 'number')) {\n var printObj = (objType === 'string') ? \"'\" + obj + \"'\" : obj;\n errorMessage = msgPrefix + 'expected ' + printObj + ' to be a number or a date';\n } else {\n shouldThrow = false;\n }\n\n if (shouldThrow) {\n throw new AssertionError(errorMessage, undefined, ssfi);\n }\n\n if (doLength) {\n var descriptor = 'length'\n , itemsCount;\n if (objType === 'map' || objType === 'set') {\n descriptor = 'size';\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount >= start && itemsCount <= finish\n , 'expected #{this} to have a ' + descriptor + ' within ' + range\n , 'expected #{this} to not have a ' + descriptor + ' within ' + range\n );\n } else {\n this.assert(\n obj >= start && obj <= finish\n , 'expected #{this} to be within ' + range\n , 'expected #{this} to not be within ' + range\n );\n }\n });\n\n /**\n * ### .instanceof(constructor[, msg])\n *\n * Asserts that the target is an instance of the given `constructor`.\n *\n * function Cat () { }\n *\n * expect(new Cat()).to.be.an.instanceof(Cat);\n * expect([1, 2]).to.be.an.instanceof(Array);\n *\n * Add `.not` earlier in the chain to negate `.instanceof`.\n *\n * expect({a: 1}).to.not.be.an.instanceof(Array);\n *\n * `.instanceof` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`.\n *\n * expect(1).to.be.an.instanceof(Array, 'nooo why fail??');\n * expect(1, 'nooo why fail??').to.be.an.instanceof(Array);\n *\n * Due to limitations in ES5, `.instanceof` may not always work as expected\n * when using a transpiler such as Babel or TypeScript. In particular, it may\n * produce unexpected results when subclassing built-in object such as\n * `Array`, `Error`, and `Map`. See your transpiler's docs for details:\n *\n * - ([Babel](https://babeljs.io/docs/usage/caveats/#classes))\n * - ([TypeScript](https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work))\n *\n * The alias `.instanceOf` can be used interchangeably with `.instanceof`.\n *\n * @name instanceof\n * @param {Constructor} constructor\n * @param {String} msg _optional_\n * @alias instanceOf\n * @namespace BDD\n * @api public\n */\n\n function assertInstanceOf (constructor, msg) {\n if (msg) flag(this, 'message', msg);\n\n var target = flag(this, 'object')\n var ssfi = flag(this, 'ssfi');\n var flagMsg = flag(this, 'message');\n\n try {\n var isInstanceOf = target instanceof constructor;\n } catch (err) {\n if (err instanceof TypeError) {\n flagMsg = flagMsg ? flagMsg + ': ' : '';\n throw new AssertionError(\n flagMsg + 'The instanceof assertion needs a constructor but '\n + _.type(constructor) + ' was given.',\n undefined,\n ssfi\n );\n }\n throw err;\n }\n\n var name = _.getName(constructor);\n if (name === null) {\n name = 'an unnamed constructor';\n }\n\n this.assert(\n isInstanceOf\n , 'expected #{this} to be an instance of ' + name\n , 'expected #{this} to not be an instance of ' + name\n );\n };\n\n Assertion.addMethod('instanceof', assertInstanceOf);\n Assertion.addMethod('instanceOf', assertInstanceOf);\n\n /**\n * ### .property(name[, val[, msg]])\n *\n * Asserts that the target has a property with the given key `name`.\n *\n * expect({a: 1}).to.have.property('a');\n *\n * When `val` is provided, `.property` also asserts that the property's value\n * is equal to the given `val`.\n *\n * expect({a: 1}).to.have.property('a', 1);\n *\n * By default, strict (`===`) equality is used. Add `.deep` earlier in the\n * chain to use deep equality instead. See the `deep-eql` project page for\n * info on the deep equality algorithm: https://github.com/chaijs/deep-eql.\n *\n * // Target object deeply (but not strictly) has property `x: {a: 1}`\n * expect({x: {a: 1}}).to.have.deep.property('x', {a: 1});\n * expect({x: {a: 1}}).to.not.have.property('x', {a: 1});\n *\n * The target's enumerable and non-enumerable properties are always included\n * in the search. By default, both own and inherited properties are included.\n * Add `.own` earlier in the chain to exclude inherited properties from the\n * search.\n *\n * Object.prototype.b = 2;\n *\n * expect({a: 1}).to.have.own.property('a');\n * expect({a: 1}).to.have.own.property('a', 1);\n * expect({a: 1}).to.have.property('b');\n * expect({a: 1}).to.not.have.own.property('b');\n *\n * `.deep` and `.own` can be combined.\n *\n * expect({x: {a: 1}}).to.have.deep.own.property('x', {a: 1});\n *\n * Add `.nested` earlier in the chain to enable dot- and bracket-notation when\n * referencing nested properties.\n *\n * expect({a: {b: ['x', 'y']}}).to.have.nested.property('a.b[1]');\n * expect({a: {b: ['x', 'y']}}).to.have.nested.property('a.b[1]', 'y');\n *\n * If `.` or `[]` are part of an actual property name, they can be escaped by\n * adding two backslashes before them.\n *\n * expect({'.a': {'[b]': 'x'}}).to.have.nested.property('\\\\.a.\\\\[b\\\\]');\n *\n * `.deep` and `.nested` can be combined.\n *\n * expect({a: {b: [{c: 3}]}})\n * .to.have.deep.nested.property('a.b[0]', {c: 3});\n *\n * `.own` and `.nested` cannot be combined.\n *\n * Add `.not` earlier in the chain to negate `.property`.\n *\n * expect({a: 1}).to.not.have.property('b');\n *\n * However, it's dangerous to negate `.property` when providing `val`. The\n * problem is that it creates uncertain expectations by asserting that the\n * target either doesn't have a property with the given key `name`, or that it\n * does have a property with the given key `name` but its value isn't equal to\n * the given `val`. It's often best to identify the exact output that's\n * expected, and then write an assertion that only accepts that exact output.\n *\n * When the target isn't expected to have a property with the given key\n * `name`, it's often best to assert exactly that.\n *\n * expect({b: 2}).to.not.have.property('a'); // Recommended\n * expect({b: 2}).to.not.have.property('a', 1); // Not recommended\n *\n * When the target is expected to have a property with the given key `name`,\n * it's often best to assert that the property has its expected value, rather\n * than asserting that it doesn't have one of many unexpected values.\n *\n * expect({a: 3}).to.have.property('a', 3); // Recommended\n * expect({a: 3}).to.not.have.property('a', 1); // Not recommended\n *\n * `.property` changes the target of any assertions that follow in the chain\n * to be the value of the property from the original target object.\n *\n * expect({a: 1}).to.have.property('a').that.is.a('number');\n *\n * `.property` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`. When not providing `val`, only use the\n * second form.\n *\n * // Recommended\n * expect({a: 1}).to.have.property('a', 2, 'nooo why fail??');\n * expect({a: 1}, 'nooo why fail??').to.have.property('a', 2);\n * expect({a: 1}, 'nooo why fail??').to.have.property('b');\n *\n * // Not recommended\n * expect({a: 1}).to.have.property('b', undefined, 'nooo why fail??');\n *\n * The above assertion isn't the same thing as not providing `val`. Instead,\n * it's asserting that the target object has a `b` property that's equal to\n * `undefined`.\n *\n * The assertions `.ownProperty` and `.haveOwnProperty` can be used\n * interchangeably with `.own.property`.\n *\n * @name property\n * @param {String} name\n * @param {Mixed} val (optional)\n * @param {String} msg _optional_\n * @returns value of property for chaining\n * @namespace BDD\n * @api public\n */\n\n function assertProperty (name, val, msg) {\n if (msg) flag(this, 'message', msg);\n\n var isNested = flag(this, 'nested')\n , isOwn = flag(this, 'own')\n , flagMsg = flag(this, 'message')\n , obj = flag(this, 'object')\n , ssfi = flag(this, 'ssfi')\n , nameType = typeof name;\n\n flagMsg = flagMsg ? flagMsg + ': ' : '';\n\n if (isNested) {\n if (nameType !== 'string') {\n throw new AssertionError(\n flagMsg + 'the argument to property must be a string when using nested syntax',\n undefined,\n ssfi\n );\n }\n } else {\n if (nameType !== 'string' && nameType !== 'number' && nameType !== 'symbol') {\n throw new AssertionError(\n flagMsg + 'the argument to property must be a string, number, or symbol',\n undefined,\n ssfi\n );\n }\n }\n\n if (isNested && isOwn) {\n throw new AssertionError(\n flagMsg + 'The \"nested\" and \"own\" flags cannot be combined.',\n undefined,\n ssfi\n );\n }\n\n if (obj === null || obj === undefined) {\n throw new AssertionError(\n flagMsg + 'Target cannot be null or undefined.',\n undefined,\n ssfi\n );\n }\n\n var isDeep = flag(this, 'deep')\n , negate = flag(this, 'negate')\n , pathInfo = isNested ? _.getPathInfo(obj, name) : null\n , value = isNested ? pathInfo.value : obj[name];\n\n var descriptor = '';\n if (isDeep) descriptor += 'deep ';\n if (isOwn) descriptor += 'own ';\n if (isNested) descriptor += 'nested ';\n descriptor += 'property ';\n\n var hasProperty;\n if (isOwn) hasProperty = Object.prototype.hasOwnProperty.call(obj, name);\n else if (isNested) hasProperty = pathInfo.exists;\n else hasProperty = _.hasProperty(obj, name);\n\n // When performing a negated assertion for both name and val, merely having\n // a property with the given name isn't enough to cause the assertion to\n // fail. It must both have a property with the given name, and the value of\n // that property must equal the given val. Therefore, skip this assertion in\n // favor of the next.\n if (!negate || arguments.length === 1) {\n this.assert(\n hasProperty\n , 'expected #{this} to have ' + descriptor + _.inspect(name)\n , 'expected #{this} to not have ' + descriptor + _.inspect(name));\n }\n\n if (arguments.length > 1) {\n this.assert(\n hasProperty && (isDeep ? _.eql(val, value) : val === value)\n , 'expected #{this} to have ' + descriptor + _.inspect(name) + ' of #{exp}, but got #{act}'\n , 'expected #{this} to not have ' + descriptor + _.inspect(name) + ' of #{act}'\n , val\n , value\n );\n }\n\n flag(this, 'object', value);\n }\n\n Assertion.addMethod('property', assertProperty);\n\n function assertOwnProperty (name, value, msg) {\n flag(this, 'own', true);\n assertProperty.apply(this, arguments);\n }\n\n Assertion.addMethod('ownProperty', assertOwnProperty);\n Assertion.addMethod('haveOwnProperty', assertOwnProperty);\n\n /**\n * ### .ownPropertyDescriptor(name[, descriptor[, msg]])\n *\n * Asserts that the target has its own property descriptor with the given key\n * `name`. Enumerable and non-enumerable properties are included in the\n * search.\n *\n * expect({a: 1}).to.have.ownPropertyDescriptor('a');\n *\n * When `descriptor` is provided, `.ownPropertyDescriptor` also asserts that\n * the property's descriptor is deeply equal to the given `descriptor`. See\n * the `deep-eql` project page for info on the deep equality algorithm:\n * https://github.com/chaijs/deep-eql.\n *\n * expect({a: 1}).to.have.ownPropertyDescriptor('a', {\n * configurable: true,\n * enumerable: true,\n * writable: true,\n * value: 1,\n * });\n *\n * Add `.not` earlier in the chain to negate `.ownPropertyDescriptor`.\n *\n * expect({a: 1}).to.not.have.ownPropertyDescriptor('b');\n *\n * However, it's dangerous to negate `.ownPropertyDescriptor` when providing\n * a `descriptor`. The problem is that it creates uncertain expectations by\n * asserting that the target either doesn't have a property descriptor with\n * the given key `name`, or that it does have a property descriptor with the\n * given key `name` but it’s not deeply equal to the given `descriptor`. It's\n * often best to identify the exact output that's expected, and then write an\n * assertion that only accepts that exact output.\n *\n * When the target isn't expected to have a property descriptor with the given\n * key `name`, it's often best to assert exactly that.\n *\n * // Recommended\n * expect({b: 2}).to.not.have.ownPropertyDescriptor('a');\n *\n * // Not recommended\n * expect({b: 2}).to.not.have.ownPropertyDescriptor('a', {\n * configurable: true,\n * enumerable: true,\n * writable: true,\n * value: 1,\n * });\n *\n * When the target is expected to have a property descriptor with the given\n * key `name`, it's often best to assert that the property has its expected\n * descriptor, rather than asserting that it doesn't have one of many\n * unexpected descriptors.\n *\n * // Recommended\n * expect({a: 3}).to.have.ownPropertyDescriptor('a', {\n * configurable: true,\n * enumerable: true,\n * writable: true,\n * value: 3,\n * });\n *\n * // Not recommended\n * expect({a: 3}).to.not.have.ownPropertyDescriptor('a', {\n * configurable: true,\n * enumerable: true,\n * writable: true,\n * value: 1,\n * });\n *\n * `.ownPropertyDescriptor` changes the target of any assertions that follow\n * in the chain to be the value of the property descriptor from the original\n * target object.\n *\n * expect({a: 1}).to.have.ownPropertyDescriptor('a')\n * .that.has.property('enumerable', true);\n *\n * `.ownPropertyDescriptor` accepts an optional `msg` argument which is a\n * custom error message to show when the assertion fails. The message can also\n * be given as the second argument to `expect`. When not providing\n * `descriptor`, only use the second form.\n *\n * // Recommended\n * expect({a: 1}).to.have.ownPropertyDescriptor('a', {\n * configurable: true,\n * enumerable: true,\n * writable: true,\n * value: 2,\n * }, 'nooo why fail??');\n *\n * // Recommended\n * expect({a: 1}, 'nooo why fail??').to.have.ownPropertyDescriptor('a', {\n * configurable: true,\n * enumerable: true,\n * writable: true,\n * value: 2,\n * });\n *\n * // Recommended\n * expect({a: 1}, 'nooo why fail??').to.have.ownPropertyDescriptor('b');\n *\n * // Not recommended\n * expect({a: 1})\n * .to.have.ownPropertyDescriptor('b', undefined, 'nooo why fail??');\n *\n * The above assertion isn't the same thing as not providing `descriptor`.\n * Instead, it's asserting that the target object has a `b` property\n * descriptor that's deeply equal to `undefined`.\n *\n * The alias `.haveOwnPropertyDescriptor` can be used interchangeably with\n * `.ownPropertyDescriptor`.\n *\n * @name ownPropertyDescriptor\n * @alias haveOwnPropertyDescriptor\n * @param {String} name\n * @param {Object} descriptor _optional_\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertOwnPropertyDescriptor (name, descriptor, msg) {\n if (typeof descriptor === 'string') {\n msg = descriptor;\n descriptor = null;\n }\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object');\n var actualDescriptor = Object.getOwnPropertyDescriptor(Object(obj), name);\n if (actualDescriptor && descriptor) {\n this.assert(\n _.eql(descriptor, actualDescriptor)\n , 'expected the own property descriptor for ' + _.inspect(name) + ' on #{this} to match ' + _.inspect(descriptor) + ', got ' + _.inspect(actualDescriptor)\n , 'expected the own property descriptor for ' + _.inspect(name) + ' on #{this} to not match ' + _.inspect(descriptor)\n , descriptor\n , actualDescriptor\n , true\n );\n } else {\n this.assert(\n actualDescriptor\n , 'expected #{this} to have an own property descriptor for ' + _.inspect(name)\n , 'expected #{this} to not have an own property descriptor for ' + _.inspect(name)\n );\n }\n flag(this, 'object', actualDescriptor);\n }\n\n Assertion.addMethod('ownPropertyDescriptor', assertOwnPropertyDescriptor);\n Assertion.addMethod('haveOwnPropertyDescriptor', assertOwnPropertyDescriptor);\n\n /**\n * ### .lengthOf(n[, msg])\n *\n * Asserts that the target's `length` or `size` is equal to the given number\n * `n`.\n *\n * expect([1, 2, 3]).to.have.lengthOf(3);\n * expect('foo').to.have.lengthOf(3);\n * expect(new Set([1, 2, 3])).to.have.lengthOf(3);\n * expect(new Map([['a', 1], ['b', 2], ['c', 3]])).to.have.lengthOf(3);\n *\n * Add `.not` earlier in the chain to negate `.lengthOf`. However, it's often\n * best to assert that the target's `length` property is equal to its expected\n * value, rather than not equal to one of many unexpected values.\n *\n * expect('foo').to.have.lengthOf(3); // Recommended\n * expect('foo').to.not.have.lengthOf(4); // Not recommended\n *\n * `.lengthOf` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`.\n *\n * expect([1, 2, 3]).to.have.lengthOf(2, 'nooo why fail??');\n * expect([1, 2, 3], 'nooo why fail??').to.have.lengthOf(2);\n *\n * `.lengthOf` can also be used as a language chain, causing all `.above`,\n * `.below`, `.least`, `.most`, and `.within` assertions that follow in the\n * chain to use the target's `length` property as the target. However, it's\n * often best to assert that the target's `length` property is equal to its\n * expected length, rather than asserting that its `length` property falls\n * within some range of values.\n *\n * // Recommended\n * expect([1, 2, 3]).to.have.lengthOf(3);\n *\n * // Not recommended\n * expect([1, 2, 3]).to.have.lengthOf.above(2);\n * expect([1, 2, 3]).to.have.lengthOf.below(4);\n * expect([1, 2, 3]).to.have.lengthOf.at.least(3);\n * expect([1, 2, 3]).to.have.lengthOf.at.most(3);\n * expect([1, 2, 3]).to.have.lengthOf.within(2,4);\n *\n * Due to a compatibility issue, the alias `.length` can't be chained directly\n * off of an uninvoked method such as `.a`. Therefore, `.length` can't be used\n * interchangeably with `.lengthOf` in every situation. It's recommended to\n * always use `.lengthOf` instead of `.length`.\n *\n * expect([1, 2, 3]).to.have.a.length(3); // incompatible; throws error\n * expect([1, 2, 3]).to.have.a.lengthOf(3); // passes as expected\n *\n * @name lengthOf\n * @alias length\n * @param {Number} n\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertLengthChain () {\n flag(this, 'doLength', true);\n }\n\n function assertLength (n, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , objType = _.type(obj).toLowerCase()\n , flagMsg = flag(this, 'message')\n , ssfi = flag(this, 'ssfi')\n , descriptor = 'length'\n , itemsCount;\n\n switch (objType) {\n case 'map':\n case 'set':\n descriptor = 'size';\n itemsCount = obj.size;\n break;\n default:\n new Assertion(obj, flagMsg, ssfi, true).to.have.property('length');\n itemsCount = obj.length;\n }\n\n this.assert(\n itemsCount == n\n , 'expected #{this} to have a ' + descriptor + ' of #{exp} but got #{act}'\n , 'expected #{this} to not have a ' + descriptor + ' of #{act}'\n , n\n , itemsCount\n );\n }\n\n Assertion.addChainableMethod('length', assertLength, assertLengthChain);\n Assertion.addChainableMethod('lengthOf', assertLength, assertLengthChain);\n\n /**\n * ### .match(re[, msg])\n *\n * Asserts that the target matches the given regular expression `re`.\n *\n * expect('foobar').to.match(/^foo/);\n *\n * Add `.not` earlier in the chain to negate `.match`.\n *\n * expect('foobar').to.not.match(/taco/);\n *\n * `.match` accepts an optional `msg` argument which is a custom error message\n * to show when the assertion fails. The message can also be given as the\n * second argument to `expect`.\n *\n * expect('foobar').to.match(/taco/, 'nooo why fail??');\n * expect('foobar', 'nooo why fail??').to.match(/taco/);\n *\n * The alias `.matches` can be used interchangeably with `.match`.\n *\n * @name match\n * @alias matches\n * @param {RegExp} re\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n function assertMatch(re, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object');\n this.assert(\n re.exec(obj)\n , 'expected #{this} to match ' + re\n , 'expected #{this} not to match ' + re\n );\n }\n\n Assertion.addMethod('match', assertMatch);\n Assertion.addMethod('matches', assertMatch);\n\n /**\n * ### .string(str[, msg])\n *\n * Asserts that the target string contains the given substring `str`.\n *\n * expect('foobar').to.have.string('bar');\n *\n * Add `.not` earlier in the chain to negate `.string`.\n *\n * expect('foobar').to.not.have.string('taco');\n *\n * `.string` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`.\n *\n * expect('foobar').to.have.string('taco', 'nooo why fail??');\n * expect('foobar', 'nooo why fail??').to.have.string('taco');\n *\n * @name string\n * @param {String} str\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n Assertion.addMethod('string', function (str, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , flagMsg = flag(this, 'message')\n , ssfi = flag(this, 'ssfi');\n new Assertion(obj, flagMsg, ssfi, true).is.a('string');\n\n this.assert(\n ~obj.indexOf(str)\n , 'expected #{this} to contain ' + _.inspect(str)\n , 'expected #{this} to not contain ' + _.inspect(str)\n );\n });\n\n /**\n * ### .keys(key1[, key2[, ...]])\n *\n * Asserts that the target object, array, map, or set has the given keys. Only\n * the target's own inherited properties are included in the search.\n *\n * When the target is an object or array, keys can be provided as one or more\n * string arguments, a single array argument, or a single object argument. In\n * the latter case, only the keys in the given object matter; the values are\n * ignored.\n *\n * expect({a: 1, b: 2}).to.have.all.keys('a', 'b');\n * expect(['x', 'y']).to.have.all.keys(0, 1);\n *\n * expect({a: 1, b: 2}).to.have.all.keys(['a', 'b']);\n * expect(['x', 'y']).to.have.all.keys([0, 1]);\n *\n * expect({a: 1, b: 2}).to.have.all.keys({a: 4, b: 5}); // ignore 4 and 5\n * expect(['x', 'y']).to.have.all.keys({0: 4, 1: 5}); // ignore 4 and 5\n *\n * When the target is a map or set, each key must be provided as a separate\n * argument.\n *\n * expect(new Map([['a', 1], ['b', 2]])).to.have.all.keys('a', 'b');\n * expect(new Set(['a', 'b'])).to.have.all.keys('a', 'b');\n *\n * Because `.keys` does different things based on the target's type, it's\n * important to check the target's type before using `.keys`. See the `.a` doc\n * for info on testing a target's type.\n *\n * expect({a: 1, b: 2}).to.be.an('object').that.has.all.keys('a', 'b');\n *\n * By default, strict (`===`) equality is used to compare keys of maps and\n * sets. Add `.deep` earlier in the chain to use deep equality instead. See\n * the `deep-eql` project page for info on the deep equality algorithm:\n * https://github.com/chaijs/deep-eql.\n *\n * // Target set deeply (but not strictly) has key `{a: 1}`\n * expect(new Set([{a: 1}])).to.have.all.deep.keys([{a: 1}]);\n * expect(new Set([{a: 1}])).to.not.have.all.keys([{a: 1}]);\n *\n * By default, the target must have all of the given keys and no more. Add\n * `.any` earlier in the chain to only require that the target have at least\n * one of the given keys. Also, add `.not` earlier in the chain to negate\n * `.keys`. It's often best to add `.any` when negating `.keys`, and to use\n * `.all` when asserting `.keys` without negation.\n *\n * When negating `.keys`, `.any` is preferred because `.not.any.keys` asserts\n * exactly what's expected of the output, whereas `.not.all.keys` creates\n * uncertain expectations.\n *\n * // Recommended; asserts that target doesn't have any of the given keys\n * expect({a: 1, b: 2}).to.not.have.any.keys('c', 'd');\n *\n * // Not recommended; asserts that target doesn't have all of the given\n * // keys but may or may not have some of them\n * expect({a: 1, b: 2}).to.not.have.all.keys('c', 'd');\n *\n * When asserting `.keys` without negation, `.all` is preferred because\n * `.all.keys` asserts exactly what's expected of the output, whereas\n * `.any.keys` creates uncertain expectations.\n *\n * // Recommended; asserts that target has all the given keys\n * expect({a: 1, b: 2}).to.have.all.keys('a', 'b');\n *\n * // Not recommended; asserts that target has at least one of the given\n * // keys but may or may not have more of them\n * expect({a: 1, b: 2}).to.have.any.keys('a', 'b');\n *\n * Note that `.all` is used by default when neither `.all` nor `.any` appear\n * earlier in the chain. However, it's often best to add `.all` anyway because\n * it improves readability.\n *\n * // Both assertions are identical\n * expect({a: 1, b: 2}).to.have.all.keys('a', 'b'); // Recommended\n * expect({a: 1, b: 2}).to.have.keys('a', 'b'); // Not recommended\n *\n * Add `.include` earlier in the chain to require that the target's keys be a\n * superset of the expected keys, rather than identical sets.\n *\n * // Target object's keys are a superset of ['a', 'b'] but not identical\n * expect({a: 1, b: 2, c: 3}).to.include.all.keys('a', 'b');\n * expect({a: 1, b: 2, c: 3}).to.not.have.all.keys('a', 'b');\n *\n * However, if `.any` and `.include` are combined, only the `.any` takes\n * effect. The `.include` is ignored in this case.\n *\n * // Both assertions are identical\n * expect({a: 1}).to.have.any.keys('a', 'b');\n * expect({a: 1}).to.include.any.keys('a', 'b');\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect({a: 1}, 'nooo why fail??').to.have.key('b');\n *\n * The alias `.key` can be used interchangeably with `.keys`.\n *\n * @name keys\n * @alias key\n * @param {...String|Array|Object} keys\n * @namespace BDD\n * @api public\n */\n\n function assertKeys (keys) {\n var obj = flag(this, 'object')\n , objType = _.type(obj)\n , keysType = _.type(keys)\n , ssfi = flag(this, 'ssfi')\n , isDeep = flag(this, 'deep')\n , str\n , deepStr = ''\n , actual\n , ok = true\n , flagMsg = flag(this, 'message');\n\n flagMsg = flagMsg ? flagMsg + ': ' : '';\n var mixedArgsMsg = flagMsg + 'when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments';\n\n if (objType === 'Map' || objType === 'Set') {\n deepStr = isDeep ? 'deeply ' : '';\n actual = [];\n\n // Map and Set '.keys' aren't supported in IE 11. Therefore, use .forEach.\n obj.forEach(function (val, key) { actual.push(key) });\n\n if (keysType !== 'Array') {\n keys = Array.prototype.slice.call(arguments);\n }\n } else {\n actual = _.getOwnEnumerableProperties(obj);\n\n switch (keysType) {\n case 'Array':\n if (arguments.length > 1) {\n throw new AssertionError(mixedArgsMsg, undefined, ssfi);\n }\n break;\n case 'Object':\n if (arguments.length > 1) {\n throw new AssertionError(mixedArgsMsg, undefined, ssfi);\n }\n keys = Object.keys(keys);\n break;\n default:\n keys = Array.prototype.slice.call(arguments);\n }\n\n // Only stringify non-Symbols because Symbols would become \"Symbol()\"\n keys = keys.map(function (val) {\n return typeof val === 'symbol' ? val : String(val);\n });\n }\n\n if (!keys.length) {\n throw new AssertionError(flagMsg + 'keys required', undefined, ssfi);\n }\n\n var len = keys.length\n , any = flag(this, 'any')\n , all = flag(this, 'all')\n , expected = keys;\n\n if (!any && !all) {\n all = true;\n }\n\n // Has any\n if (any) {\n ok = expected.some(function(expectedKey) {\n return actual.some(function(actualKey) {\n if (isDeep) {\n return _.eql(expectedKey, actualKey);\n } else {\n return expectedKey === actualKey;\n }\n });\n });\n }\n\n // Has all\n if (all) {\n ok = expected.every(function(expectedKey) {\n return actual.some(function(actualKey) {\n if (isDeep) {\n return _.eql(expectedKey, actualKey);\n } else {\n return expectedKey === actualKey;\n }\n });\n });\n\n if (!flag(this, 'contains')) {\n ok = ok && keys.length == actual.length;\n }\n }\n\n // Key string\n if (len > 1) {\n keys = keys.map(function(key) {\n return _.inspect(key);\n });\n var last = keys.pop();\n if (all) {\n str = keys.join(', ') + ', and ' + last;\n }\n if (any) {\n str = keys.join(', ') + ', or ' + last;\n }\n } else {\n str = _.inspect(keys[0]);\n }\n\n // Form\n str = (len > 1 ? 'keys ' : 'key ') + str;\n\n // Have / include\n str = (flag(this, 'contains') ? 'contain ' : 'have ') + str;\n\n // Assertion\n this.assert(\n ok\n , 'expected #{this} to ' + deepStr + str\n , 'expected #{this} to not ' + deepStr + str\n , expected.slice(0).sort(_.compareByInspect)\n , actual.sort(_.compareByInspect)\n , true\n );\n }\n\n Assertion.addMethod('keys', assertKeys);\n Assertion.addMethod('key', assertKeys);\n\n /**\n * ### .throw([errorLike], [errMsgMatcher], [msg])\n *\n * When no arguments are provided, `.throw` invokes the target function and\n * asserts that an error is thrown.\n *\n * var badFn = function () { throw new TypeError('Illegal salmon!'); };\n *\n * expect(badFn).to.throw();\n *\n * When one argument is provided, and it's an error constructor, `.throw`\n * invokes the target function and asserts that an error is thrown that's an\n * instance of that error constructor.\n *\n * var badFn = function () { throw new TypeError('Illegal salmon!'); };\n *\n * expect(badFn).to.throw(TypeError);\n *\n * When one argument is provided, and it's an error instance, `.throw` invokes\n * the target function and asserts that an error is thrown that's strictly\n * (`===`) equal to that error instance.\n *\n * var err = new TypeError('Illegal salmon!');\n * var badFn = function () { throw err; };\n *\n * expect(badFn).to.throw(err);\n *\n * When one argument is provided, and it's a string, `.throw` invokes the\n * target function and asserts that an error is thrown with a message that\n * contains that string.\n *\n * var badFn = function () { throw new TypeError('Illegal salmon!'); };\n *\n * expect(badFn).to.throw('salmon');\n *\n * When one argument is provided, and it's a regular expression, `.throw`\n * invokes the target function and asserts that an error is thrown with a\n * message that matches that regular expression.\n *\n * var badFn = function () { throw new TypeError('Illegal salmon!'); };\n *\n * expect(badFn).to.throw(/salmon/);\n *\n * When two arguments are provided, and the first is an error instance or\n * constructor, and the second is a string or regular expression, `.throw`\n * invokes the function and asserts that an error is thrown that fulfills both\n * conditions as described above.\n *\n * var err = new TypeError('Illegal salmon!');\n * var badFn = function () { throw err; };\n *\n * expect(badFn).to.throw(TypeError, 'salmon');\n * expect(badFn).to.throw(TypeError, /salmon/);\n * expect(badFn).to.throw(err, 'salmon');\n * expect(badFn).to.throw(err, /salmon/);\n *\n * Add `.not` earlier in the chain to negate `.throw`.\n *\n * var goodFn = function () {};\n *\n * expect(goodFn).to.not.throw();\n *\n * However, it's dangerous to negate `.throw` when providing any arguments.\n * The problem is that it creates uncertain expectations by asserting that the\n * target either doesn't throw an error, or that it throws an error but of a\n * different type than the given type, or that it throws an error of the given\n * type but with a message that doesn't include the given string. It's often\n * best to identify the exact output that's expected, and then write an\n * assertion that only accepts that exact output.\n *\n * When the target isn't expected to throw an error, it's often best to assert\n * exactly that.\n *\n * var goodFn = function () {};\n *\n * expect(goodFn).to.not.throw(); // Recommended\n * expect(goodFn).to.not.throw(ReferenceError, 'x'); // Not recommended\n *\n * When the target is expected to throw an error, it's often best to assert\n * that the error is of its expected type, and has a message that includes an\n * expected string, rather than asserting that it doesn't have one of many\n * unexpected types, and doesn't have a message that includes some string.\n *\n * var badFn = function () { throw new TypeError('Illegal salmon!'); };\n *\n * expect(badFn).to.throw(TypeError, 'salmon'); // Recommended\n * expect(badFn).to.not.throw(ReferenceError, 'x'); // Not recommended\n *\n * `.throw` changes the target of any assertions that follow in the chain to\n * be the error object that's thrown.\n *\n * var err = new TypeError('Illegal salmon!');\n * err.code = 42;\n * var badFn = function () { throw err; };\n *\n * expect(badFn).to.throw(TypeError).with.property('code', 42);\n *\n * `.throw` accepts an optional `msg` argument which is a custom error message\n * to show when the assertion fails. The message can also be given as the\n * second argument to `expect`. When not providing two arguments, always use\n * the second form.\n *\n * var goodFn = function () {};\n *\n * expect(goodFn).to.throw(TypeError, 'x', 'nooo why fail??');\n * expect(goodFn, 'nooo why fail??').to.throw();\n *\n * Due to limitations in ES5, `.throw` may not always work as expected when\n * using a transpiler such as Babel or TypeScript. In particular, it may\n * produce unexpected results when subclassing the built-in `Error` object and\n * then passing the subclassed constructor to `.throw`. See your transpiler's\n * docs for details:\n *\n * - ([Babel](https://babeljs.io/docs/usage/caveats/#classes))\n * - ([TypeScript](https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work))\n *\n * Beware of some common mistakes when using the `throw` assertion. One common\n * mistake is to accidentally invoke the function yourself instead of letting\n * the `throw` assertion invoke the function for you. For example, when\n * testing if a function named `fn` throws, provide `fn` instead of `fn()` as\n * the target for the assertion.\n *\n * expect(fn).to.throw(); // Good! Tests `fn` as desired\n * expect(fn()).to.throw(); // Bad! Tests result of `fn()`, not `fn`\n *\n * If you need to assert that your function `fn` throws when passed certain\n * arguments, then wrap a call to `fn` inside of another function.\n *\n * expect(function () { fn(42); }).to.throw(); // Function expression\n * expect(() => fn(42)).to.throw(); // ES6 arrow function\n *\n * Another common mistake is to provide an object method (or any stand-alone\n * function that relies on `this`) as the target of the assertion. Doing so is\n * problematic because the `this` context will be lost when the function is\n * invoked by `.throw`; there's no way for it to know what `this` is supposed\n * to be. There are two ways around this problem. One solution is to wrap the\n * method or function call inside of another function. Another solution is to\n * use `bind`.\n *\n * expect(function () { cat.meow(); }).to.throw(); // Function expression\n * expect(() => cat.meow()).to.throw(); // ES6 arrow function\n * expect(cat.meow.bind(cat)).to.throw(); // Bind\n *\n * Finally, it's worth mentioning that it's a best practice in JavaScript to\n * only throw `Error` and derivatives of `Error` such as `ReferenceError`,\n * `TypeError`, and user-defined objects that extend `Error`. No other type of\n * value will generate a stack trace when initialized. With that said, the\n * `throw` assertion does technically support any type of value being thrown,\n * not just `Error` and its derivatives.\n *\n * The aliases `.throws` and `.Throw` can be used interchangeably with\n * `.throw`.\n *\n * @name throw\n * @alias throws\n * @alias Throw\n * @param {Error|ErrorConstructor} errorLike\n * @param {String|RegExp} errMsgMatcher error message\n * @param {String} msg _optional_\n * @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types\n * @returns error for chaining (null if no error)\n * @namespace BDD\n * @api public\n */\n\n function assertThrows (errorLike, errMsgMatcher, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , ssfi = flag(this, 'ssfi')\n , flagMsg = flag(this, 'message')\n , negate = flag(this, 'negate') || false;\n new Assertion(obj, flagMsg, ssfi, true).is.a('function');\n\n if (errorLike instanceof RegExp || typeof errorLike === 'string') {\n errMsgMatcher = errorLike;\n errorLike = null;\n }\n\n var caughtErr;\n try {\n obj();\n } catch (err) {\n caughtErr = err;\n }\n\n // If we have the negate flag enabled and at least one valid argument it means we do expect an error\n // but we want it to match a given set of criteria\n var everyArgIsUndefined = errorLike === undefined && errMsgMatcher === undefined;\n\n // If we've got the negate flag enabled and both args, we should only fail if both aren't compatible\n // See Issue #551 and PR #683@GitHub\n var everyArgIsDefined = Boolean(errorLike && errMsgMatcher);\n var errorLikeFail = false;\n var errMsgMatcherFail = false;\n\n // Checking if error was thrown\n if (everyArgIsUndefined || !everyArgIsUndefined && !negate) {\n // We need this to display results correctly according to their types\n var errorLikeString = 'an error';\n if (errorLike instanceof Error) {\n errorLikeString = '#{exp}';\n } else if (errorLike) {\n errorLikeString = _.checkError.getConstructorName(errorLike);\n }\n\n this.assert(\n caughtErr\n , 'expected #{this} to throw ' + errorLikeString\n , 'expected #{this} to not throw an error but #{act} was thrown'\n , errorLike && errorLike.toString()\n , (caughtErr instanceof Error ?\n caughtErr.toString() : (typeof caughtErr === 'string' ? caughtErr : caughtErr &&\n _.checkError.getConstructorName(caughtErr)))\n );\n }\n\n if (errorLike && caughtErr) {\n // We should compare instances only if `errorLike` is an instance of `Error`\n if (errorLike instanceof Error) {\n var isCompatibleInstance = _.checkError.compatibleInstance(caughtErr, errorLike);\n\n if (isCompatibleInstance === negate) {\n // These checks were created to ensure we won't fail too soon when we've got both args and a negate\n // See Issue #551 and PR #683@GitHub\n if (everyArgIsDefined && negate) {\n errorLikeFail = true;\n } else {\n this.assert(\n negate\n , 'expected #{this} to throw #{exp} but #{act} was thrown'\n , 'expected #{this} to not throw #{exp}' + (caughtErr && !negate ? ' but #{act} was thrown' : '')\n , errorLike.toString()\n , caughtErr.toString()\n );\n }\n }\n }\n\n var isCompatibleConstructor = _.checkError.compatibleConstructor(caughtErr, errorLike);\n if (isCompatibleConstructor === negate) {\n if (everyArgIsDefined && negate) {\n errorLikeFail = true;\n } else {\n this.assert(\n negate\n , 'expected #{this} to throw #{exp} but #{act} was thrown'\n , 'expected #{this} to not throw #{exp}' + (caughtErr ? ' but #{act} was thrown' : '')\n , (errorLike instanceof Error ? errorLike.toString() : errorLike && _.checkError.getConstructorName(errorLike))\n , (caughtErr instanceof Error ? caughtErr.toString() : caughtErr && _.checkError.getConstructorName(caughtErr))\n );\n }\n }\n }\n\n if (caughtErr && errMsgMatcher !== undefined && errMsgMatcher !== null) {\n // Here we check compatible messages\n var placeholder = 'including';\n if (errMsgMatcher instanceof RegExp) {\n placeholder = 'matching'\n }\n\n var isCompatibleMessage = _.checkError.compatibleMessage(caughtErr, errMsgMatcher);\n if (isCompatibleMessage === negate) {\n if (everyArgIsDefined && negate) {\n errMsgMatcherFail = true;\n } else {\n this.assert(\n negate\n , 'expected #{this} to throw error ' + placeholder + ' #{exp} but got #{act}'\n , 'expected #{this} to throw error not ' + placeholder + ' #{exp}'\n , errMsgMatcher\n , _.checkError.getMessage(caughtErr)\n );\n }\n }\n }\n\n // If both assertions failed and both should've matched we throw an error\n if (errorLikeFail && errMsgMatcherFail) {\n this.assert(\n negate\n , 'expected #{this} to throw #{exp} but #{act} was thrown'\n , 'expected #{this} to not throw #{exp}' + (caughtErr ? ' but #{act} was thrown' : '')\n , (errorLike instanceof Error ? errorLike.toString() : errorLike && _.checkError.getConstructorName(errorLike))\n , (caughtErr instanceof Error ? caughtErr.toString() : caughtErr && _.checkError.getConstructorName(caughtErr))\n );\n }\n\n flag(this, 'object', caughtErr);\n };\n\n Assertion.addMethod('throw', assertThrows);\n Assertion.addMethod('throws', assertThrows);\n Assertion.addMethod('Throw', assertThrows);\n\n /**\n * ### .respondTo(method[, msg])\n *\n * When the target is a non-function object, `.respondTo` asserts that the\n * target has a method with the given name `method`. The method can be own or\n * inherited, and it can be enumerable or non-enumerable.\n *\n * function Cat () {}\n * Cat.prototype.meow = function () {};\n *\n * expect(new Cat()).to.respondTo('meow');\n *\n * When the target is a function, `.respondTo` asserts that the target's\n * `prototype` property has a method with the given name `method`. Again, the\n * method can be own or inherited, and it can be enumerable or non-enumerable.\n *\n * function Cat () {}\n * Cat.prototype.meow = function () {};\n *\n * expect(Cat).to.respondTo('meow');\n *\n * Add `.itself` earlier in the chain to force `.respondTo` to treat the\n * target as a non-function object, even if it's a function. Thus, it asserts\n * that the target has a method with the given name `method`, rather than\n * asserting that the target's `prototype` property has a method with the\n * given name `method`.\n *\n * function Cat () {}\n * Cat.prototype.meow = function () {};\n * Cat.hiss = function () {};\n *\n * expect(Cat).itself.to.respondTo('hiss').but.not.respondTo('meow');\n *\n * When not adding `.itself`, it's important to check the target's type before\n * using `.respondTo`. See the `.a` doc for info on checking a target's type.\n *\n * function Cat () {}\n * Cat.prototype.meow = function () {};\n *\n * expect(new Cat()).to.be.an('object').that.respondsTo('meow');\n *\n * Add `.not` earlier in the chain to negate `.respondTo`.\n *\n * function Dog () {}\n * Dog.prototype.bark = function () {};\n *\n * expect(new Dog()).to.not.respondTo('meow');\n *\n * `.respondTo` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`.\n *\n * expect({}).to.respondTo('meow', 'nooo why fail??');\n * expect({}, 'nooo why fail??').to.respondTo('meow');\n *\n * The alias `.respondsTo` can be used interchangeably with `.respondTo`.\n *\n * @name respondTo\n * @alias respondsTo\n * @param {String} method\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function respondTo (method, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , itself = flag(this, 'itself')\n , context = ('function' === typeof obj && !itself)\n ? obj.prototype[method]\n : obj[method];\n\n this.assert(\n 'function' === typeof context\n , 'expected #{this} to respond to ' + _.inspect(method)\n , 'expected #{this} to not respond to ' + _.inspect(method)\n );\n }\n\n Assertion.addMethod('respondTo', respondTo);\n Assertion.addMethod('respondsTo', respondTo);\n\n /**\n * ### .itself\n *\n * Forces all `.respondTo` assertions that follow in the chain to behave as if\n * the target is a non-function object, even if it's a function. Thus, it\n * causes `.respondTo` to assert that the target has a method with the given\n * name, rather than asserting that the target's `prototype` property has a\n * method with the given name.\n *\n * function Cat () {}\n * Cat.prototype.meow = function () {};\n * Cat.hiss = function () {};\n *\n * expect(Cat).itself.to.respondTo('hiss').but.not.respondTo('meow');\n *\n * @name itself\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('itself', function () {\n flag(this, 'itself', true);\n });\n\n /**\n * ### .satisfy(matcher[, msg])\n *\n * Invokes the given `matcher` function with the target being passed as the\n * first argument, and asserts that the value returned is truthy.\n *\n * expect(1).to.satisfy(function(num) {\n * return num > 0;\n * });\n *\n * Add `.not` earlier in the chain to negate `.satisfy`.\n *\n * expect(1).to.not.satisfy(function(num) {\n * return num > 2;\n * });\n *\n * `.satisfy` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`.\n *\n * expect(1).to.satisfy(function(num) {\n * return num > 2;\n * }, 'nooo why fail??');\n *\n * expect(1, 'nooo why fail??').to.satisfy(function(num) {\n * return num > 2;\n * });\n *\n * The alias `.satisfies` can be used interchangeably with `.satisfy`.\n *\n * @name satisfy\n * @alias satisfies\n * @param {Function} matcher\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function satisfy (matcher, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object');\n var result = matcher(obj);\n this.assert(\n result\n , 'expected #{this} to satisfy ' + _.objDisplay(matcher)\n , 'expected #{this} to not satisfy' + _.objDisplay(matcher)\n , flag(this, 'negate') ? false : true\n , result\n );\n }\n\n Assertion.addMethod('satisfy', satisfy);\n Assertion.addMethod('satisfies', satisfy);\n\n /**\n * ### .closeTo(expected, delta[, msg])\n *\n * Asserts that the target is a number that's within a given +/- `delta` range\n * of the given number `expected`. However, it's often best to assert that the\n * target is equal to its expected value.\n *\n * // Recommended\n * expect(1.5).to.equal(1.5);\n *\n * // Not recommended\n * expect(1.5).to.be.closeTo(1, 0.5);\n * expect(1.5).to.be.closeTo(2, 0.5);\n * expect(1.5).to.be.closeTo(1, 1);\n *\n * Add `.not` earlier in the chain to negate `.closeTo`.\n *\n * expect(1.5).to.equal(1.5); // Recommended\n * expect(1.5).to.not.be.closeTo(3, 1); // Not recommended\n *\n * `.closeTo` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`.\n *\n * expect(1.5).to.be.closeTo(3, 1, 'nooo why fail??');\n * expect(1.5, 'nooo why fail??').to.be.closeTo(3, 1);\n *\n * The alias `.approximately` can be used interchangeably with `.closeTo`.\n *\n * @name closeTo\n * @alias approximately\n * @param {Number} expected\n * @param {Number} delta\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function closeTo(expected, delta, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , flagMsg = flag(this, 'message')\n , ssfi = flag(this, 'ssfi');\n\n new Assertion(obj, flagMsg, ssfi, true).is.a('number');\n if (typeof expected !== 'number' || typeof delta !== 'number') {\n flagMsg = flagMsg ? flagMsg + ': ' : '';\n var deltaMessage = delta === undefined ? \", and a delta is required\" : \"\";\n throw new AssertionError(\n flagMsg + 'the arguments to closeTo or approximately must be numbers' + deltaMessage,\n undefined,\n ssfi\n );\n }\n\n this.assert(\n Math.abs(obj - expected) <= delta\n , 'expected #{this} to be close to ' + expected + ' +/- ' + delta\n , 'expected #{this} not to be close to ' + expected + ' +/- ' + delta\n );\n }\n\n Assertion.addMethod('closeTo', closeTo);\n Assertion.addMethod('approximately', closeTo);\n\n // Note: Duplicates are ignored if testing for inclusion instead of sameness.\n function isSubsetOf(subset, superset, cmp, contains, ordered) {\n if (!contains) {\n if (subset.length !== superset.length) return false;\n superset = superset.slice();\n }\n\n return subset.every(function(elem, idx) {\n if (ordered) return cmp ? cmp(elem, superset[idx]) : elem === superset[idx];\n\n if (!cmp) {\n var matchIdx = superset.indexOf(elem);\n if (matchIdx === -1) return false;\n\n // Remove match from superset so not counted twice if duplicate in subset.\n if (!contains) superset.splice(matchIdx, 1);\n return true;\n }\n\n return superset.some(function(elem2, matchIdx) {\n if (!cmp(elem, elem2)) return false;\n\n // Remove match from superset so not counted twice if duplicate in subset.\n if (!contains) superset.splice(matchIdx, 1);\n return true;\n });\n });\n }\n\n /**\n * ### .members(set[, msg])\n *\n * Asserts that the target array has the same members as the given array\n * `set`.\n *\n * expect([1, 2, 3]).to.have.members([2, 1, 3]);\n * expect([1, 2, 2]).to.have.members([2, 1, 2]);\n *\n * By default, members are compared using strict (`===`) equality. Add `.deep`\n * earlier in the chain to use deep equality instead. See the `deep-eql`\n * project page for info on the deep equality algorithm:\n * https://github.com/chaijs/deep-eql.\n *\n * // Target array deeply (but not strictly) has member `{a: 1}`\n * expect([{a: 1}]).to.have.deep.members([{a: 1}]);\n * expect([{a: 1}]).to.not.have.members([{a: 1}]);\n *\n * By default, order doesn't matter. Add `.ordered` earlier in the chain to\n * require that members appear in the same order.\n *\n * expect([1, 2, 3]).to.have.ordered.members([1, 2, 3]);\n * expect([1, 2, 3]).to.have.members([2, 1, 3])\n * .but.not.ordered.members([2, 1, 3]);\n *\n * By default, both arrays must be the same size. Add `.include` earlier in\n * the chain to require that the target's members be a superset of the\n * expected members. Note that duplicates are ignored in the subset when\n * `.include` is added.\n *\n * // Target array is a superset of [1, 2] but not identical\n * expect([1, 2, 3]).to.include.members([1, 2]);\n * expect([1, 2, 3]).to.not.have.members([1, 2]);\n *\n * // Duplicates in the subset are ignored\n * expect([1, 2, 3]).to.include.members([1, 2, 2, 2]);\n *\n * `.deep`, `.ordered`, and `.include` can all be combined. However, if\n * `.include` and `.ordered` are combined, the ordering begins at the start of\n * both arrays.\n *\n * expect([{a: 1}, {b: 2}, {c: 3}])\n * .to.include.deep.ordered.members([{a: 1}, {b: 2}])\n * .but.not.include.deep.ordered.members([{b: 2}, {c: 3}]);\n *\n * Add `.not` earlier in the chain to negate `.members`. However, it's\n * dangerous to do so. The problem is that it creates uncertain expectations\n * by asserting that the target array doesn't have all of the same members as\n * the given array `set` but may or may not have some of them. It's often best\n * to identify the exact output that's expected, and then write an assertion\n * that only accepts that exact output.\n *\n * expect([1, 2]).to.not.include(3).and.not.include(4); // Recommended\n * expect([1, 2]).to.not.have.members([3, 4]); // Not recommended\n *\n * `.members` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`.\n *\n * expect([1, 2]).to.have.members([1, 2, 3], 'nooo why fail??');\n * expect([1, 2], 'nooo why fail??').to.have.members([1, 2, 3]);\n *\n * @name members\n * @param {Array} set\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n Assertion.addMethod('members', function (subset, msg) {\n if (msg) flag(this, 'message', msg);\n var obj = flag(this, 'object')\n , flagMsg = flag(this, 'message')\n , ssfi = flag(this, 'ssfi');\n\n new Assertion(obj, flagMsg, ssfi, true).to.be.an('array');\n new Assertion(subset, flagMsg, ssfi, true).to.be.an('array');\n\n var contains = flag(this, 'contains');\n var ordered = flag(this, 'ordered');\n\n var subject, failMsg, failNegateMsg;\n\n if (contains) {\n subject = ordered ? 'an ordered superset' : 'a superset';\n failMsg = 'expected #{this} to be ' + subject + ' of #{exp}';\n failNegateMsg = 'expected #{this} to not be ' + subject + ' of #{exp}';\n } else {\n subject = ordered ? 'ordered members' : 'members';\n failMsg = 'expected #{this} to have the same ' + subject + ' as #{exp}';\n failNegateMsg = 'expected #{this} to not have the same ' + subject + ' as #{exp}';\n }\n\n var cmp = flag(this, 'deep') ? _.eql : undefined;\n\n this.assert(\n isSubsetOf(subset, obj, cmp, contains, ordered)\n , failMsg\n , failNegateMsg\n , subset\n , obj\n , true\n );\n });\n\n /**\n * ### .oneOf(list[, msg])\n *\n * Asserts that the target is a member of the given array `list`. However,\n * it's often best to assert that the target is equal to its expected value.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.be.oneOf([1, 2, 3]); // Not recommended\n *\n * Comparisons are performed using strict (`===`) equality.\n *\n * Add `.not` earlier in the chain to negate `.oneOf`.\n *\n * expect(1).to.equal(1); // Recommended\n * expect(1).to.not.be.oneOf([2, 3, 4]); // Not recommended\n *\n * It can also be chained with `.contain` or `.include`, which will work with\n * both arrays and strings:\n *\n * expect('Today is sunny').to.contain.oneOf(['sunny', 'cloudy'])\n * expect('Today is rainy').to.not.contain.oneOf(['sunny', 'cloudy'])\n * expect([1,2,3]).to.contain.oneOf([3,4,5])\n * expect([1,2,3]).to.not.contain.oneOf([4,5,6])\n *\n * `.oneOf` accepts an optional `msg` argument which is a custom error message\n * to show when the assertion fails. The message can also be given as the\n * second argument to `expect`.\n *\n * expect(1).to.be.oneOf([2, 3, 4], 'nooo why fail??');\n * expect(1, 'nooo why fail??').to.be.oneOf([2, 3, 4]);\n *\n * @name oneOf\n * @param {Array<*>} list\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function oneOf (list, msg) {\n if (msg) flag(this, 'message', msg);\n var expected = flag(this, 'object')\n , flagMsg = flag(this, 'message')\n , ssfi = flag(this, 'ssfi')\n , contains = flag(this, 'contains')\n , isDeep = flag(this, 'deep');\n new Assertion(list, flagMsg, ssfi, true).to.be.an('array');\n\n if (contains) {\n this.assert(\n list.some(function(possibility) { return expected.indexOf(possibility) > -1 })\n , 'expected #{this} to contain one of #{exp}'\n , 'expected #{this} to not contain one of #{exp}'\n , list\n , expected\n );\n } else {\n if (isDeep) {\n this.assert(\n list.some(function(possibility) { return _.eql(expected, possibility) })\n , 'expected #{this} to deeply equal one of #{exp}'\n , 'expected #{this} to deeply equal one of #{exp}'\n , list\n , expected\n );\n } else {\n this.assert(\n list.indexOf(expected) > -1\n , 'expected #{this} to be one of #{exp}'\n , 'expected #{this} to not be one of #{exp}'\n , list\n , expected\n );\n }\n }\n }\n\n Assertion.addMethod('oneOf', oneOf);\n\n /**\n * ### .change(subject[, prop[, msg]])\n *\n * When one argument is provided, `.change` asserts that the given function\n * `subject` returns a different value when it's invoked before the target\n * function compared to when it's invoked afterward. However, it's often best\n * to assert that `subject` is equal to its expected value.\n *\n * var dots = ''\n * , addDot = function () { dots += '.'; }\n * , getDots = function () { return dots; };\n *\n * // Recommended\n * expect(getDots()).to.equal('');\n * addDot();\n * expect(getDots()).to.equal('.');\n *\n * // Not recommended\n * expect(addDot).to.change(getDots);\n *\n * When two arguments are provided, `.change` asserts that the value of the\n * given object `subject`'s `prop` property is different before invoking the\n * target function compared to afterward.\n *\n * var myObj = {dots: ''}\n * , addDot = function () { myObj.dots += '.'; };\n *\n * // Recommended\n * expect(myObj).to.have.property('dots', '');\n * addDot();\n * expect(myObj).to.have.property('dots', '.');\n *\n * // Not recommended\n * expect(addDot).to.change(myObj, 'dots');\n *\n * Strict (`===`) equality is used to compare before and after values.\n *\n * Add `.not` earlier in the chain to negate `.change`.\n *\n * var dots = ''\n * , noop = function () {}\n * , getDots = function () { return dots; };\n *\n * expect(noop).to.not.change(getDots);\n *\n * var myObj = {dots: ''}\n * , noop = function () {};\n *\n * expect(noop).to.not.change(myObj, 'dots');\n *\n * `.change` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`. When not providing two arguments, always\n * use the second form.\n *\n * var myObj = {dots: ''}\n * , addDot = function () { myObj.dots += '.'; };\n *\n * expect(addDot).to.not.change(myObj, 'dots', 'nooo why fail??');\n *\n * var dots = ''\n * , addDot = function () { dots += '.'; }\n * , getDots = function () { return dots; };\n *\n * expect(addDot, 'nooo why fail??').to.not.change(getDots);\n *\n * `.change` also causes all `.by` assertions that follow in the chain to\n * assert how much a numeric subject was increased or decreased by. However,\n * it's dangerous to use `.change.by`. The problem is that it creates\n * uncertain expectations by asserting that the subject either increases by\n * the given delta, or that it decreases by the given delta. It's often best\n * to identify the exact output that's expected, and then write an assertion\n * that only accepts that exact output.\n *\n * var myObj = {val: 1}\n * , addTwo = function () { myObj.val += 2; }\n * , subtractTwo = function () { myObj.val -= 2; };\n *\n * expect(addTwo).to.increase(myObj, 'val').by(2); // Recommended\n * expect(addTwo).to.change(myObj, 'val').by(2); // Not recommended\n *\n * expect(subtractTwo).to.decrease(myObj, 'val').by(2); // Recommended\n * expect(subtractTwo).to.change(myObj, 'val').by(2); // Not recommended\n *\n * The alias `.changes` can be used interchangeably with `.change`.\n *\n * @name change\n * @alias changes\n * @param {String} subject\n * @param {String} prop name _optional_\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertChanges (subject, prop, msg) {\n if (msg) flag(this, 'message', msg);\n var fn = flag(this, 'object')\n , flagMsg = flag(this, 'message')\n , ssfi = flag(this, 'ssfi');\n new Assertion(fn, flagMsg, ssfi, true).is.a('function');\n\n var initial;\n if (!prop) {\n new Assertion(subject, flagMsg, ssfi, true).is.a('function');\n initial = subject();\n } else {\n new Assertion(subject, flagMsg, ssfi, true).to.have.property(prop);\n initial = subject[prop];\n }\n\n fn();\n\n var final = prop === undefined || prop === null ? subject() : subject[prop];\n var msgObj = prop === undefined || prop === null ? initial : '.' + prop;\n\n // This gets flagged because of the .by(delta) assertion\n flag(this, 'deltaMsgObj', msgObj);\n flag(this, 'initialDeltaValue', initial);\n flag(this, 'finalDeltaValue', final);\n flag(this, 'deltaBehavior', 'change');\n flag(this, 'realDelta', final !== initial);\n\n this.assert(\n initial !== final\n , 'expected ' + msgObj + ' to change'\n , 'expected ' + msgObj + ' to not change'\n );\n }\n\n Assertion.addMethod('change', assertChanges);\n Assertion.addMethod('changes', assertChanges);\n\n /**\n * ### .increase(subject[, prop[, msg]])\n *\n * When one argument is provided, `.increase` asserts that the given function\n * `subject` returns a greater number when it's invoked after invoking the\n * target function compared to when it's invoked beforehand. `.increase` also\n * causes all `.by` assertions that follow in the chain to assert how much\n * greater of a number is returned. It's often best to assert that the return\n * value increased by the expected amount, rather than asserting it increased\n * by any amount.\n *\n * var val = 1\n * , addTwo = function () { val += 2; }\n * , getVal = function () { return val; };\n *\n * expect(addTwo).to.increase(getVal).by(2); // Recommended\n * expect(addTwo).to.increase(getVal); // Not recommended\n *\n * When two arguments are provided, `.increase` asserts that the value of the\n * given object `subject`'s `prop` property is greater after invoking the\n * target function compared to beforehand.\n *\n * var myObj = {val: 1}\n * , addTwo = function () { myObj.val += 2; };\n *\n * expect(addTwo).to.increase(myObj, 'val').by(2); // Recommended\n * expect(addTwo).to.increase(myObj, 'val'); // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.increase`. However, it's\n * dangerous to do so. The problem is that it creates uncertain expectations\n * by asserting that the subject either decreases, or that it stays the same.\n * It's often best to identify the exact output that's expected, and then\n * write an assertion that only accepts that exact output.\n *\n * When the subject is expected to decrease, it's often best to assert that it\n * decreased by the expected amount.\n *\n * var myObj = {val: 1}\n * , subtractTwo = function () { myObj.val -= 2; };\n *\n * expect(subtractTwo).to.decrease(myObj, 'val').by(2); // Recommended\n * expect(subtractTwo).to.not.increase(myObj, 'val'); // Not recommended\n *\n * When the subject is expected to stay the same, it's often best to assert\n * exactly that.\n *\n * var myObj = {val: 1}\n * , noop = function () {};\n *\n * expect(noop).to.not.change(myObj, 'val'); // Recommended\n * expect(noop).to.not.increase(myObj, 'val'); // Not recommended\n *\n * `.increase` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`. When not providing two arguments, always\n * use the second form.\n *\n * var myObj = {val: 1}\n * , noop = function () {};\n *\n * expect(noop).to.increase(myObj, 'val', 'nooo why fail??');\n *\n * var val = 1\n * , noop = function () {}\n * , getVal = function () { return val; };\n *\n * expect(noop, 'nooo why fail??').to.increase(getVal);\n *\n * The alias `.increases` can be used interchangeably with `.increase`.\n *\n * @name increase\n * @alias increases\n * @param {String|Function} subject\n * @param {String} prop name _optional_\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertIncreases (subject, prop, msg) {\n if (msg) flag(this, 'message', msg);\n var fn = flag(this, 'object')\n , flagMsg = flag(this, 'message')\n , ssfi = flag(this, 'ssfi');\n new Assertion(fn, flagMsg, ssfi, true).is.a('function');\n\n var initial;\n if (!prop) {\n new Assertion(subject, flagMsg, ssfi, true).is.a('function');\n initial = subject();\n } else {\n new Assertion(subject, flagMsg, ssfi, true).to.have.property(prop);\n initial = subject[prop];\n }\n\n // Make sure that the target is a number\n new Assertion(initial, flagMsg, ssfi, true).is.a('number');\n\n fn();\n\n var final = prop === undefined || prop === null ? subject() : subject[prop];\n var msgObj = prop === undefined || prop === null ? initial : '.' + prop;\n\n flag(this, 'deltaMsgObj', msgObj);\n flag(this, 'initialDeltaValue', initial);\n flag(this, 'finalDeltaValue', final);\n flag(this, 'deltaBehavior', 'increase');\n flag(this, 'realDelta', final - initial);\n\n this.assert(\n final - initial > 0\n , 'expected ' + msgObj + ' to increase'\n , 'expected ' + msgObj + ' to not increase'\n );\n }\n\n Assertion.addMethod('increase', assertIncreases);\n Assertion.addMethod('increases', assertIncreases);\n\n /**\n * ### .decrease(subject[, prop[, msg]])\n *\n * When one argument is provided, `.decrease` asserts that the given function\n * `subject` returns a lesser number when it's invoked after invoking the\n * target function compared to when it's invoked beforehand. `.decrease` also\n * causes all `.by` assertions that follow in the chain to assert how much\n * lesser of a number is returned. It's often best to assert that the return\n * value decreased by the expected amount, rather than asserting it decreased\n * by any amount.\n *\n * var val = 1\n * , subtractTwo = function () { val -= 2; }\n * , getVal = function () { return val; };\n *\n * expect(subtractTwo).to.decrease(getVal).by(2); // Recommended\n * expect(subtractTwo).to.decrease(getVal); // Not recommended\n *\n * When two arguments are provided, `.decrease` asserts that the value of the\n * given object `subject`'s `prop` property is lesser after invoking the\n * target function compared to beforehand.\n *\n * var myObj = {val: 1}\n * , subtractTwo = function () { myObj.val -= 2; };\n *\n * expect(subtractTwo).to.decrease(myObj, 'val').by(2); // Recommended\n * expect(subtractTwo).to.decrease(myObj, 'val'); // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.decrease`. However, it's\n * dangerous to do so. The problem is that it creates uncertain expectations\n * by asserting that the subject either increases, or that it stays the same.\n * It's often best to identify the exact output that's expected, and then\n * write an assertion that only accepts that exact output.\n *\n * When the subject is expected to increase, it's often best to assert that it\n * increased by the expected amount.\n *\n * var myObj = {val: 1}\n * , addTwo = function () { myObj.val += 2; };\n *\n * expect(addTwo).to.increase(myObj, 'val').by(2); // Recommended\n * expect(addTwo).to.not.decrease(myObj, 'val'); // Not recommended\n *\n * When the subject is expected to stay the same, it's often best to assert\n * exactly that.\n *\n * var myObj = {val: 1}\n * , noop = function () {};\n *\n * expect(noop).to.not.change(myObj, 'val'); // Recommended\n * expect(noop).to.not.decrease(myObj, 'val'); // Not recommended\n *\n * `.decrease` accepts an optional `msg` argument which is a custom error\n * message to show when the assertion fails. The message can also be given as\n * the second argument to `expect`. When not providing two arguments, always\n * use the second form.\n *\n * var myObj = {val: 1}\n * , noop = function () {};\n *\n * expect(noop).to.decrease(myObj, 'val', 'nooo why fail??');\n *\n * var val = 1\n * , noop = function () {}\n * , getVal = function () { return val; };\n *\n * expect(noop, 'nooo why fail??').to.decrease(getVal);\n *\n * The alias `.decreases` can be used interchangeably with `.decrease`.\n *\n * @name decrease\n * @alias decreases\n * @param {String|Function} subject\n * @param {String} prop name _optional_\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertDecreases (subject, prop, msg) {\n if (msg) flag(this, 'message', msg);\n var fn = flag(this, 'object')\n , flagMsg = flag(this, 'message')\n , ssfi = flag(this, 'ssfi');\n new Assertion(fn, flagMsg, ssfi, true).is.a('function');\n\n var initial;\n if (!prop) {\n new Assertion(subject, flagMsg, ssfi, true).is.a('function');\n initial = subject();\n } else {\n new Assertion(subject, flagMsg, ssfi, true).to.have.property(prop);\n initial = subject[prop];\n }\n\n // Make sure that the target is a number\n new Assertion(initial, flagMsg, ssfi, true).is.a('number');\n\n fn();\n\n var final = prop === undefined || prop === null ? subject() : subject[prop];\n var msgObj = prop === undefined || prop === null ? initial : '.' + prop;\n\n flag(this, 'deltaMsgObj', msgObj);\n flag(this, 'initialDeltaValue', initial);\n flag(this, 'finalDeltaValue', final);\n flag(this, 'deltaBehavior', 'decrease');\n flag(this, 'realDelta', initial - final);\n\n this.assert(\n final - initial < 0\n , 'expected ' + msgObj + ' to decrease'\n , 'expected ' + msgObj + ' to not decrease'\n );\n }\n\n Assertion.addMethod('decrease', assertDecreases);\n Assertion.addMethod('decreases', assertDecreases);\n\n /**\n * ### .by(delta[, msg])\n *\n * When following an `.increase` assertion in the chain, `.by` asserts that\n * the subject of the `.increase` assertion increased by the given `delta`.\n *\n * var myObj = {val: 1}\n * , addTwo = function () { myObj.val += 2; };\n *\n * expect(addTwo).to.increase(myObj, 'val').by(2);\n *\n * When following a `.decrease` assertion in the chain, `.by` asserts that the\n * subject of the `.decrease` assertion decreased by the given `delta`.\n *\n * var myObj = {val: 1}\n * , subtractTwo = function () { myObj.val -= 2; };\n *\n * expect(subtractTwo).to.decrease(myObj, 'val').by(2);\n *\n * When following a `.change` assertion in the chain, `.by` asserts that the\n * subject of the `.change` assertion either increased or decreased by the\n * given `delta`. However, it's dangerous to use `.change.by`. The problem is\n * that it creates uncertain expectations. It's often best to identify the\n * exact output that's expected, and then write an assertion that only accepts\n * that exact output.\n *\n * var myObj = {val: 1}\n * , addTwo = function () { myObj.val += 2; }\n * , subtractTwo = function () { myObj.val -= 2; };\n *\n * expect(addTwo).to.increase(myObj, 'val').by(2); // Recommended\n * expect(addTwo).to.change(myObj, 'val').by(2); // Not recommended\n *\n * expect(subtractTwo).to.decrease(myObj, 'val').by(2); // Recommended\n * expect(subtractTwo).to.change(myObj, 'val').by(2); // Not recommended\n *\n * Add `.not` earlier in the chain to negate `.by`. However, it's often best\n * to assert that the subject changed by its expected delta, rather than\n * asserting that it didn't change by one of countless unexpected deltas.\n *\n * var myObj = {val: 1}\n * , addTwo = function () { myObj.val += 2; };\n *\n * // Recommended\n * expect(addTwo).to.increase(myObj, 'val').by(2);\n *\n * // Not recommended\n * expect(addTwo).to.increase(myObj, 'val').but.not.by(3);\n *\n * `.by` accepts an optional `msg` argument which is a custom error message to\n * show when the assertion fails. The message can also be given as the second\n * argument to `expect`.\n *\n * var myObj = {val: 1}\n * , addTwo = function () { myObj.val += 2; };\n *\n * expect(addTwo).to.increase(myObj, 'val').by(3, 'nooo why fail??');\n * expect(addTwo, 'nooo why fail??').to.increase(myObj, 'val').by(3);\n *\n * @name by\n * @param {Number} delta\n * @param {String} msg _optional_\n * @namespace BDD\n * @api public\n */\n\n function assertDelta(delta, msg) {\n if (msg) flag(this, 'message', msg);\n\n var msgObj = flag(this, 'deltaMsgObj');\n var initial = flag(this, 'initialDeltaValue');\n var final = flag(this, 'finalDeltaValue');\n var behavior = flag(this, 'deltaBehavior');\n var realDelta = flag(this, 'realDelta');\n\n var expression;\n if (behavior === 'change') {\n expression = Math.abs(final - initial) === Math.abs(delta);\n } else {\n expression = realDelta === Math.abs(delta);\n }\n\n this.assert(\n expression\n , 'expected ' + msgObj + ' to ' + behavior + ' by ' + delta\n , 'expected ' + msgObj + ' to not ' + behavior + ' by ' + delta\n );\n }\n\n Assertion.addMethod('by', assertDelta);\n\n /**\n * ### .extensible\n *\n * Asserts that the target is extensible, which means that new properties can\n * be added to it. Primitives are never extensible.\n *\n * expect({a: 1}).to.be.extensible;\n *\n * Add `.not` earlier in the chain to negate `.extensible`.\n *\n * var nonExtensibleObject = Object.preventExtensions({})\n * , sealedObject = Object.seal({})\n * , frozenObject = Object.freeze({});\n *\n * expect(nonExtensibleObject).to.not.be.extensible;\n * expect(sealedObject).to.not.be.extensible;\n * expect(frozenObject).to.not.be.extensible;\n * expect(1).to.not.be.extensible;\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect(1, 'nooo why fail??').to.be.extensible;\n *\n * @name extensible\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('extensible', function() {\n var obj = flag(this, 'object');\n\n // In ES5, if the argument to this method is a primitive, then it will cause a TypeError.\n // In ES6, a non-object argument will be treated as if it was a non-extensible ordinary object, simply return false.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isExtensible\n // The following provides ES6 behavior for ES5 environments.\n\n var isExtensible = obj === Object(obj) && Object.isExtensible(obj);\n\n this.assert(\n isExtensible\n , 'expected #{this} to be extensible'\n , 'expected #{this} to not be extensible'\n );\n });\n\n /**\n * ### .sealed\n *\n * Asserts that the target is sealed, which means that new properties can't be\n * added to it, and its existing properties can't be reconfigured or deleted.\n * However, it's possible that its existing properties can still be reassigned\n * to different values. Primitives are always sealed.\n *\n * var sealedObject = Object.seal({});\n * var frozenObject = Object.freeze({});\n *\n * expect(sealedObject).to.be.sealed;\n * expect(frozenObject).to.be.sealed;\n * expect(1).to.be.sealed;\n *\n * Add `.not` earlier in the chain to negate `.sealed`.\n *\n * expect({a: 1}).to.not.be.sealed;\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect({a: 1}, 'nooo why fail??').to.be.sealed;\n *\n * @name sealed\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('sealed', function() {\n var obj = flag(this, 'object');\n\n // In ES5, if the argument to this method is a primitive, then it will cause a TypeError.\n // In ES6, a non-object argument will be treated as if it was a sealed ordinary object, simply return true.\n // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isSealed\n // The following provides ES6 behavior for ES5 environments.\n\n var isSealed = obj === Object(obj) ? Object.isSealed(obj) : true;\n\n this.assert(\n isSealed\n , 'expected #{this} to be sealed'\n , 'expected #{this} to not be sealed'\n );\n });\n\n /**\n * ### .frozen\n *\n * Asserts that the target is frozen, which means that new properties can't be\n * added to it, and its existing properties can't be reassigned to different\n * values, reconfigured, or deleted. Primitives are always frozen.\n *\n * var frozenObject = Object.freeze({});\n *\n * expect(frozenObject).to.be.frozen;\n * expect(1).to.be.frozen;\n *\n * Add `.not` earlier in the chain to negate `.frozen`.\n *\n * expect({a: 1}).to.not.be.frozen;\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect({a: 1}, 'nooo why fail??').to.be.frozen;\n *\n * @name frozen\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('frozen', function() {\n var obj = flag(this, 'object');\n\n // In ES5, if the argument to this method is a primitive, then it will cause a TypeError.\n // In ES6, a non-object argument will be treated as if it was a frozen ordinary object, simply return true.\n // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isFrozen\n // The following provides ES6 behavior for ES5 environments.\n\n var isFrozen = obj === Object(obj) ? Object.isFrozen(obj) : true;\n\n this.assert(\n isFrozen\n , 'expected #{this} to be frozen'\n , 'expected #{this} to not be frozen'\n );\n });\n\n /**\n * ### .finite\n *\n * Asserts that the target is a number, and isn't `NaN` or positive/negative\n * `Infinity`.\n *\n * expect(1).to.be.finite;\n *\n * Add `.not` earlier in the chain to negate `.finite`. However, it's\n * dangerous to do so. The problem is that it creates uncertain expectations\n * by asserting that the subject either isn't a number, or that it's `NaN`, or\n * that it's positive `Infinity`, or that it's negative `Infinity`. It's often\n * best to identify the exact output that's expected, and then write an\n * assertion that only accepts that exact output.\n *\n * When the target isn't expected to be a number, it's often best to assert\n * that it's the expected type, rather than asserting that it isn't one of\n * many unexpected types.\n *\n * expect('foo').to.be.a('string'); // Recommended\n * expect('foo').to.not.be.finite; // Not recommended\n *\n * When the target is expected to be `NaN`, it's often best to assert exactly\n * that.\n *\n * expect(NaN).to.be.NaN; // Recommended\n * expect(NaN).to.not.be.finite; // Not recommended\n *\n * When the target is expected to be positive infinity, it's often best to\n * assert exactly that.\n *\n * expect(Infinity).to.equal(Infinity); // Recommended\n * expect(Infinity).to.not.be.finite; // Not recommended\n *\n * When the target is expected to be negative infinity, it's often best to\n * assert exactly that.\n *\n * expect(-Infinity).to.equal(-Infinity); // Recommended\n * expect(-Infinity).to.not.be.finite; // Not recommended\n *\n * A custom error message can be given as the second argument to `expect`.\n *\n * expect('foo', 'nooo why fail??').to.be.finite;\n *\n * @name finite\n * @namespace BDD\n * @api public\n */\n\n Assertion.addProperty('finite', function(msg) {\n var obj = flag(this, 'object');\n\n this.assert(\n typeof obj === 'number' && isFinite(obj)\n , 'expected #{this} to be a finite number'\n , 'expected #{this} to not be a finite number'\n );\n });\n};\n","/*!\n * chai\n * Copyright(c) 2011-2014 Jake Luer \n * MIT Licensed\n */\n\nmodule.exports = function (chai, util) {\n chai.expect = function (val, message) {\n return new chai.Assertion(val, message);\n };\n\n /**\n * ### .fail([message])\n * ### .fail(actual, expected, [message], [operator])\n *\n * Throw a failure.\n *\n * expect.fail();\n * expect.fail(\"custom error message\");\n * expect.fail(1, 2);\n * expect.fail(1, 2, \"custom error message\");\n * expect.fail(1, 2, \"custom error message\", \">\");\n * expect.fail(1, 2, undefined, \">\");\n *\n * @name fail\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @param {String} operator\n * @namespace BDD\n * @api public\n */\n\n chai.expect.fail = function (actual, expected, message, operator) {\n if (arguments.length < 2) {\n message = actual;\n actual = undefined;\n }\n\n message = message || 'expect.fail()';\n throw new chai.AssertionError(message, {\n actual: actual\n , expected: expected\n , operator: operator\n }, chai.expect.fail);\n };\n};\n","/*!\n * chai\n * Copyright(c) 2011-2014 Jake Luer \n * MIT Licensed\n */\n\nmodule.exports = function (chai, util) {\n var Assertion = chai.Assertion;\n\n function loadShould () {\n // explicitly define this method as function as to have it's name to include as `ssfi`\n function shouldGetter() {\n if (this instanceof String\n || this instanceof Number\n || this instanceof Boolean\n || typeof Symbol === 'function' && this instanceof Symbol\n || typeof BigInt === 'function' && this instanceof BigInt) {\n return new Assertion(this.valueOf(), null, shouldGetter);\n }\n return new Assertion(this, null, shouldGetter);\n }\n function shouldSetter(value) {\n // See https://github.com/chaijs/chai/issues/86: this makes\n // `whatever.should = someValue` actually set `someValue`, which is\n // especially useful for `global.should = require('chai').should()`.\n //\n // Note that we have to use [[DefineProperty]] instead of [[Put]]\n // since otherwise we would trigger this very setter!\n Object.defineProperty(this, 'should', {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n }\n // modify Object.prototype to have `should`\n Object.defineProperty(Object.prototype, 'should', {\n set: shouldSetter\n , get: shouldGetter\n , configurable: true\n });\n\n var should = {};\n\n /**\n * ### .fail([message])\n * ### .fail(actual, expected, [message], [operator])\n *\n * Throw a failure.\n *\n * should.fail();\n * should.fail(\"custom error message\");\n * should.fail(1, 2);\n * should.fail(1, 2, \"custom error message\");\n * should.fail(1, 2, \"custom error message\", \">\");\n * should.fail(1, 2, undefined, \">\");\n *\n *\n * @name fail\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @param {String} operator\n * @namespace BDD\n * @api public\n */\n\n should.fail = function (actual, expected, message, operator) {\n if (arguments.length < 2) {\n message = actual;\n actual = undefined;\n }\n\n message = message || 'should.fail()';\n throw new chai.AssertionError(message, {\n actual: actual\n , expected: expected\n , operator: operator\n }, should.fail);\n };\n\n /**\n * ### .equal(actual, expected, [message])\n *\n * Asserts non-strict equality (`==`) of `actual` and `expected`.\n *\n * should.equal(3, '3', '== coerces values to strings');\n *\n * @name equal\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @namespace Should\n * @api public\n */\n\n should.equal = function (val1, val2, msg) {\n new Assertion(val1, msg).to.equal(val2);\n };\n\n /**\n * ### .throw(function, [constructor/string/regexp], [string/regexp], [message])\n *\n * Asserts that `function` will throw an error that is an instance of\n * `constructor`, or alternately that it will throw an error with message\n * matching `regexp`.\n *\n * should.throw(fn, 'function throws a reference error');\n * should.throw(fn, /function throws a reference error/);\n * should.throw(fn, ReferenceError);\n * should.throw(fn, ReferenceError, 'function throws a reference error');\n * should.throw(fn, ReferenceError, /function throws a reference error/);\n *\n * @name throw\n * @alias Throw\n * @param {Function} function\n * @param {ErrorConstructor} constructor\n * @param {RegExp} regexp\n * @param {String} message\n * @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types\n * @namespace Should\n * @api public\n */\n\n should.Throw = function (fn, errt, errs, msg) {\n new Assertion(fn, msg).to.Throw(errt, errs);\n };\n\n /**\n * ### .exist\n *\n * Asserts that the target is neither `null` nor `undefined`.\n *\n * var foo = 'hi';\n *\n * should.exist(foo, 'foo exists');\n *\n * @name exist\n * @namespace Should\n * @api public\n */\n\n should.exist = function (val, msg) {\n new Assertion(val, msg).to.exist;\n }\n\n // negation\n should.not = {}\n\n /**\n * ### .not.equal(actual, expected, [message])\n *\n * Asserts non-strict inequality (`!=`) of `actual` and `expected`.\n *\n * should.not.equal(3, 4, 'these numbers are not equal');\n *\n * @name not.equal\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @namespace Should\n * @api public\n */\n\n should.not.equal = function (val1, val2, msg) {\n new Assertion(val1, msg).to.not.equal(val2);\n };\n\n /**\n * ### .throw(function, [constructor/regexp], [message])\n *\n * Asserts that `function` will _not_ throw an error that is an instance of\n * `constructor`, or alternately that it will not throw an error with message\n * matching `regexp`.\n *\n * should.not.throw(fn, Error, 'function does not throw');\n *\n * @name not.throw\n * @alias not.Throw\n * @param {Function} function\n * @param {ErrorConstructor} constructor\n * @param {RegExp} regexp\n * @param {String} message\n * @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types\n * @namespace Should\n * @api public\n */\n\n should.not.Throw = function (fn, errt, errs, msg) {\n new Assertion(fn, msg).to.not.Throw(errt, errs);\n };\n\n /**\n * ### .not.exist\n *\n * Asserts that the target is neither `null` nor `undefined`.\n *\n * var bar = null;\n *\n * should.not.exist(bar, 'bar does not exist');\n *\n * @name not.exist\n * @namespace Should\n * @api public\n */\n\n should.not.exist = function (val, msg) {\n new Assertion(val, msg).to.not.exist;\n }\n\n should['throw'] = should['Throw'];\n should.not['throw'] = should.not['Throw'];\n\n return should;\n };\n\n chai.should = loadShould;\n chai.Should = loadShould;\n};\n","/*!\n * chai\n * Copyright(c) 2011-2014 Jake Luer \n * MIT Licensed\n */\n\nmodule.exports = function (chai, util) {\n /*!\n * Chai dependencies.\n */\n\n var Assertion = chai.Assertion\n , flag = util.flag;\n\n /*!\n * Module export.\n */\n\n /**\n * ### assert(expression, message)\n *\n * Write your own test expressions.\n *\n * assert('foo' !== 'bar', 'foo is not bar');\n * assert(Array.isArray([]), 'empty arrays are arrays');\n *\n * @param {Mixed} expression to test for truthiness\n * @param {String} message to display on error\n * @name assert\n * @namespace Assert\n * @api public\n */\n\n var assert = chai.assert = function (express, errmsg) {\n var test = new Assertion(null, null, chai.assert, true);\n test.assert(\n express\n , errmsg\n , '[ negation message unavailable ]'\n );\n };\n\n /**\n * ### .fail([message])\n * ### .fail(actual, expected, [message], [operator])\n *\n * Throw a failure. Node.js `assert` module-compatible.\n *\n * assert.fail();\n * assert.fail(\"custom error message\");\n * assert.fail(1, 2);\n * assert.fail(1, 2, \"custom error message\");\n * assert.fail(1, 2, \"custom error message\", \">\");\n * assert.fail(1, 2, undefined, \">\");\n *\n * @name fail\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @param {String} operator\n * @namespace Assert\n * @api public\n */\n\n assert.fail = function (actual, expected, message, operator) {\n if (arguments.length < 2) {\n // Comply with Node's fail([message]) interface\n\n message = actual;\n actual = undefined;\n }\n\n message = message || 'assert.fail()';\n throw new chai.AssertionError(message, {\n actual: actual\n , expected: expected\n , operator: operator\n }, assert.fail);\n };\n\n /**\n * ### .isOk(object, [message])\n *\n * Asserts that `object` is truthy.\n *\n * assert.isOk('everything', 'everything is ok');\n * assert.isOk(false, 'this will fail');\n *\n * @name isOk\n * @alias ok\n * @param {Mixed} object to test\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isOk = function (val, msg) {\n new Assertion(val, msg, assert.isOk, true).is.ok;\n };\n\n /**\n * ### .isNotOk(object, [message])\n *\n * Asserts that `object` is falsy.\n *\n * assert.isNotOk('everything', 'this will fail');\n * assert.isNotOk(false, 'this will pass');\n *\n * @name isNotOk\n * @alias notOk\n * @param {Mixed} object to test\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotOk = function (val, msg) {\n new Assertion(val, msg, assert.isNotOk, true).is.not.ok;\n };\n\n /**\n * ### .equal(actual, expected, [message])\n *\n * Asserts non-strict equality (`==`) of `actual` and `expected`.\n *\n * assert.equal(3, '3', '== coerces values to strings');\n *\n * @name equal\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.equal = function (act, exp, msg) {\n var test = new Assertion(act, msg, assert.equal, true);\n\n test.assert(\n exp == flag(test, 'object')\n , 'expected #{this} to equal #{exp}'\n , 'expected #{this} to not equal #{act}'\n , exp\n , act\n , true\n );\n };\n\n /**\n * ### .notEqual(actual, expected, [message])\n *\n * Asserts non-strict inequality (`!=`) of `actual` and `expected`.\n *\n * assert.notEqual(3, 4, 'these numbers are not equal');\n *\n * @name notEqual\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notEqual = function (act, exp, msg) {\n var test = new Assertion(act, msg, assert.notEqual, true);\n\n test.assert(\n exp != flag(test, 'object')\n , 'expected #{this} to not equal #{exp}'\n , 'expected #{this} to equal #{act}'\n , exp\n , act\n , true\n );\n };\n\n /**\n * ### .strictEqual(actual, expected, [message])\n *\n * Asserts strict equality (`===`) of `actual` and `expected`.\n *\n * assert.strictEqual(true, true, 'these booleans are strictly equal');\n *\n * @name strictEqual\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.strictEqual = function (act, exp, msg) {\n new Assertion(act, msg, assert.strictEqual, true).to.equal(exp);\n };\n\n /**\n * ### .notStrictEqual(actual, expected, [message])\n *\n * Asserts strict inequality (`!==`) of `actual` and `expected`.\n *\n * assert.notStrictEqual(3, '3', 'no coercion for strict equality');\n *\n * @name notStrictEqual\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notStrictEqual = function (act, exp, msg) {\n new Assertion(act, msg, assert.notStrictEqual, true).to.not.equal(exp);\n };\n\n /**\n * ### .deepEqual(actual, expected, [message])\n *\n * Asserts that `actual` is deeply equal to `expected`.\n *\n * assert.deepEqual({ tea: 'green' }, { tea: 'green' });\n *\n * @name deepEqual\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @alias deepStrictEqual\n * @namespace Assert\n * @api public\n */\n\n assert.deepEqual = assert.deepStrictEqual = function (act, exp, msg) {\n new Assertion(act, msg, assert.deepEqual, true).to.eql(exp);\n };\n\n /**\n * ### .notDeepEqual(actual, expected, [message])\n *\n * Assert that `actual` is not deeply equal to `expected`.\n *\n * assert.notDeepEqual({ tea: 'green' }, { tea: 'jasmine' });\n *\n * @name notDeepEqual\n * @param {Mixed} actual\n * @param {Mixed} expected\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notDeepEqual = function (act, exp, msg) {\n new Assertion(act, msg, assert.notDeepEqual, true).to.not.eql(exp);\n };\n\n /**\n * ### .isAbove(valueToCheck, valueToBeAbove, [message])\n *\n * Asserts `valueToCheck` is strictly greater than (>) `valueToBeAbove`.\n *\n * assert.isAbove(5, 2, '5 is strictly greater than 2');\n *\n * @name isAbove\n * @param {Mixed} valueToCheck\n * @param {Mixed} valueToBeAbove\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isAbove = function (val, abv, msg) {\n new Assertion(val, msg, assert.isAbove, true).to.be.above(abv);\n };\n\n /**\n * ### .isAtLeast(valueToCheck, valueToBeAtLeast, [message])\n *\n * Asserts `valueToCheck` is greater than or equal to (>=) `valueToBeAtLeast`.\n *\n * assert.isAtLeast(5, 2, '5 is greater or equal to 2');\n * assert.isAtLeast(3, 3, '3 is greater or equal to 3');\n *\n * @name isAtLeast\n * @param {Mixed} valueToCheck\n * @param {Mixed} valueToBeAtLeast\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isAtLeast = function (val, atlst, msg) {\n new Assertion(val, msg, assert.isAtLeast, true).to.be.least(atlst);\n };\n\n /**\n * ### .isBelow(valueToCheck, valueToBeBelow, [message])\n *\n * Asserts `valueToCheck` is strictly less than (<) `valueToBeBelow`.\n *\n * assert.isBelow(3, 6, '3 is strictly less than 6');\n *\n * @name isBelow\n * @param {Mixed} valueToCheck\n * @param {Mixed} valueToBeBelow\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isBelow = function (val, blw, msg) {\n new Assertion(val, msg, assert.isBelow, true).to.be.below(blw);\n };\n\n /**\n * ### .isAtMost(valueToCheck, valueToBeAtMost, [message])\n *\n * Asserts `valueToCheck` is less than or equal to (<=) `valueToBeAtMost`.\n *\n * assert.isAtMost(3, 6, '3 is less than or equal to 6');\n * assert.isAtMost(4, 4, '4 is less than or equal to 4');\n *\n * @name isAtMost\n * @param {Mixed} valueToCheck\n * @param {Mixed} valueToBeAtMost\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isAtMost = function (val, atmst, msg) {\n new Assertion(val, msg, assert.isAtMost, true).to.be.most(atmst);\n };\n\n /**\n * ### .isTrue(value, [message])\n *\n * Asserts that `value` is true.\n *\n * var teaServed = true;\n * assert.isTrue(teaServed, 'the tea has been served');\n *\n * @name isTrue\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isTrue = function (val, msg) {\n new Assertion(val, msg, assert.isTrue, true).is['true'];\n };\n\n /**\n * ### .isNotTrue(value, [message])\n *\n * Asserts that `value` is not true.\n *\n * var tea = 'tasty chai';\n * assert.isNotTrue(tea, 'great, time for tea!');\n *\n * @name isNotTrue\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotTrue = function (val, msg) {\n new Assertion(val, msg, assert.isNotTrue, true).to.not.equal(true);\n };\n\n /**\n * ### .isFalse(value, [message])\n *\n * Asserts that `value` is false.\n *\n * var teaServed = false;\n * assert.isFalse(teaServed, 'no tea yet? hmm...');\n *\n * @name isFalse\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isFalse = function (val, msg) {\n new Assertion(val, msg, assert.isFalse, true).is['false'];\n };\n\n /**\n * ### .isNotFalse(value, [message])\n *\n * Asserts that `value` is not false.\n *\n * var tea = 'tasty chai';\n * assert.isNotFalse(tea, 'great, time for tea!');\n *\n * @name isNotFalse\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotFalse = function (val, msg) {\n new Assertion(val, msg, assert.isNotFalse, true).to.not.equal(false);\n };\n\n /**\n * ### .isNull(value, [message])\n *\n * Asserts that `value` is null.\n *\n * assert.isNull(err, 'there was no error');\n *\n * @name isNull\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNull = function (val, msg) {\n new Assertion(val, msg, assert.isNull, true).to.equal(null);\n };\n\n /**\n * ### .isNotNull(value, [message])\n *\n * Asserts that `value` is not null.\n *\n * var tea = 'tasty chai';\n * assert.isNotNull(tea, 'great, time for tea!');\n *\n * @name isNotNull\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotNull = function (val, msg) {\n new Assertion(val, msg, assert.isNotNull, true).to.not.equal(null);\n };\n\n /**\n * ### .isNaN\n *\n * Asserts that value is NaN.\n *\n * assert.isNaN(NaN, 'NaN is NaN');\n *\n * @name isNaN\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNaN = function (val, msg) {\n new Assertion(val, msg, assert.isNaN, true).to.be.NaN;\n };\n\n /**\n * ### .isNotNaN\n *\n * Asserts that value is not NaN.\n *\n * assert.isNotNaN(4, '4 is not NaN');\n *\n * @name isNotNaN\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n assert.isNotNaN = function (val, msg) {\n new Assertion(val, msg, assert.isNotNaN, true).not.to.be.NaN;\n };\n\n /**\n * ### .exists\n *\n * Asserts that the target is neither `null` nor `undefined`.\n *\n * var foo = 'hi';\n *\n * assert.exists(foo, 'foo is neither `null` nor `undefined`');\n *\n * @name exists\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.exists = function (val, msg) {\n new Assertion(val, msg, assert.exists, true).to.exist;\n };\n\n /**\n * ### .notExists\n *\n * Asserts that the target is either `null` or `undefined`.\n *\n * var bar = null\n * , baz;\n *\n * assert.notExists(bar);\n * assert.notExists(baz, 'baz is either null or undefined');\n *\n * @name notExists\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notExists = function (val, msg) {\n new Assertion(val, msg, assert.notExists, true).to.not.exist;\n };\n\n /**\n * ### .isUndefined(value, [message])\n *\n * Asserts that `value` is `undefined`.\n *\n * var tea;\n * assert.isUndefined(tea, 'no tea defined');\n *\n * @name isUndefined\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isUndefined = function (val, msg) {\n new Assertion(val, msg, assert.isUndefined, true).to.equal(undefined);\n };\n\n /**\n * ### .isDefined(value, [message])\n *\n * Asserts that `value` is not `undefined`.\n *\n * var tea = 'cup of chai';\n * assert.isDefined(tea, 'tea has been defined');\n *\n * @name isDefined\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isDefined = function (val, msg) {\n new Assertion(val, msg, assert.isDefined, true).to.not.equal(undefined);\n };\n\n /**\n * ### .isFunction(value, [message])\n *\n * Asserts that `value` is a function.\n *\n * function serveTea() { return 'cup of tea'; };\n * assert.isFunction(serveTea, 'great, we can have tea now');\n *\n * @name isFunction\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isFunction = function (val, msg) {\n new Assertion(val, msg, assert.isFunction, true).to.be.a('function');\n };\n\n /**\n * ### .isNotFunction(value, [message])\n *\n * Asserts that `value` is _not_ a function.\n *\n * var serveTea = [ 'heat', 'pour', 'sip' ];\n * assert.isNotFunction(serveTea, 'great, we have listed the steps');\n *\n * @name isNotFunction\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotFunction = function (val, msg) {\n new Assertion(val, msg, assert.isNotFunction, true).to.not.be.a('function');\n };\n\n /**\n * ### .isObject(value, [message])\n *\n * Asserts that `value` is an object of type 'Object' (as revealed by `Object.prototype.toString`).\n * _The assertion does not match subclassed objects._\n *\n * var selection = { name: 'Chai', serve: 'with spices' };\n * assert.isObject(selection, 'tea selection is an object');\n *\n * @name isObject\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isObject = function (val, msg) {\n new Assertion(val, msg, assert.isObject, true).to.be.a('object');\n };\n\n /**\n * ### .isNotObject(value, [message])\n *\n * Asserts that `value` is _not_ an object of type 'Object' (as revealed by `Object.prototype.toString`).\n *\n * var selection = 'chai'\n * assert.isNotObject(selection, 'tea selection is not an object');\n * assert.isNotObject(null, 'null is not an object');\n *\n * @name isNotObject\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotObject = function (val, msg) {\n new Assertion(val, msg, assert.isNotObject, true).to.not.be.a('object');\n };\n\n /**\n * ### .isArray(value, [message])\n *\n * Asserts that `value` is an array.\n *\n * var menu = [ 'green', 'chai', 'oolong' ];\n * assert.isArray(menu, 'what kind of tea do we want?');\n *\n * @name isArray\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isArray = function (val, msg) {\n new Assertion(val, msg, assert.isArray, true).to.be.an('array');\n };\n\n /**\n * ### .isNotArray(value, [message])\n *\n * Asserts that `value` is _not_ an array.\n *\n * var menu = 'green|chai|oolong';\n * assert.isNotArray(menu, 'what kind of tea do we want?');\n *\n * @name isNotArray\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotArray = function (val, msg) {\n new Assertion(val, msg, assert.isNotArray, true).to.not.be.an('array');\n };\n\n /**\n * ### .isString(value, [message])\n *\n * Asserts that `value` is a string.\n *\n * var teaOrder = 'chai';\n * assert.isString(teaOrder, 'order placed');\n *\n * @name isString\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isString = function (val, msg) {\n new Assertion(val, msg, assert.isString, true).to.be.a('string');\n };\n\n /**\n * ### .isNotString(value, [message])\n *\n * Asserts that `value` is _not_ a string.\n *\n * var teaOrder = 4;\n * assert.isNotString(teaOrder, 'order placed');\n *\n * @name isNotString\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotString = function (val, msg) {\n new Assertion(val, msg, assert.isNotString, true).to.not.be.a('string');\n };\n\n /**\n * ### .isNumber(value, [message])\n *\n * Asserts that `value` is a number.\n *\n * var cups = 2;\n * assert.isNumber(cups, 'how many cups');\n *\n * @name isNumber\n * @param {Number} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNumber = function (val, msg) {\n new Assertion(val, msg, assert.isNumber, true).to.be.a('number');\n };\n\n /**\n * ### .isNotNumber(value, [message])\n *\n * Asserts that `value` is _not_ a number.\n *\n * var cups = '2 cups please';\n * assert.isNotNumber(cups, 'how many cups');\n *\n * @name isNotNumber\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotNumber = function (val, msg) {\n new Assertion(val, msg, assert.isNotNumber, true).to.not.be.a('number');\n };\n\n /**\n * ### .isFinite(value, [message])\n *\n * Asserts that `value` is a finite number. Unlike `.isNumber`, this will fail for `NaN` and `Infinity`.\n *\n * var cups = 2;\n * assert.isFinite(cups, 'how many cups');\n *\n * assert.isFinite(NaN); // throws\n *\n * @name isFinite\n * @param {Number} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isFinite = function (val, msg) {\n new Assertion(val, msg, assert.isFinite, true).to.be.finite;\n };\n\n /**\n * ### .isBoolean(value, [message])\n *\n * Asserts that `value` is a boolean.\n *\n * var teaReady = true\n * , teaServed = false;\n *\n * assert.isBoolean(teaReady, 'is the tea ready');\n * assert.isBoolean(teaServed, 'has tea been served');\n *\n * @name isBoolean\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isBoolean = function (val, msg) {\n new Assertion(val, msg, assert.isBoolean, true).to.be.a('boolean');\n };\n\n /**\n * ### .isNotBoolean(value, [message])\n *\n * Asserts that `value` is _not_ a boolean.\n *\n * var teaReady = 'yep'\n * , teaServed = 'nope';\n *\n * assert.isNotBoolean(teaReady, 'is the tea ready');\n * assert.isNotBoolean(teaServed, 'has tea been served');\n *\n * @name isNotBoolean\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.isNotBoolean = function (val, msg) {\n new Assertion(val, msg, assert.isNotBoolean, true).to.not.be.a('boolean');\n };\n\n /**\n * ### .typeOf(value, name, [message])\n *\n * Asserts that `value`'s type is `name`, as determined by\n * `Object.prototype.toString`.\n *\n * assert.typeOf({ tea: 'chai' }, 'object', 'we have an object');\n * assert.typeOf(['chai', 'jasmine'], 'array', 'we have an array');\n * assert.typeOf('tea', 'string', 'we have a string');\n * assert.typeOf(/tea/, 'regexp', 'we have a regular expression');\n * assert.typeOf(null, 'null', 'we have a null');\n * assert.typeOf(undefined, 'undefined', 'we have an undefined');\n *\n * @name typeOf\n * @param {Mixed} value\n * @param {String} name\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.typeOf = function (val, type, msg) {\n new Assertion(val, msg, assert.typeOf, true).to.be.a(type);\n };\n\n /**\n * ### .notTypeOf(value, name, [message])\n *\n * Asserts that `value`'s type is _not_ `name`, as determined by\n * `Object.prototype.toString`.\n *\n * assert.notTypeOf('tea', 'number', 'strings are not numbers');\n *\n * @name notTypeOf\n * @param {Mixed} value\n * @param {String} typeof name\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notTypeOf = function (val, type, msg) {\n new Assertion(val, msg, assert.notTypeOf, true).to.not.be.a(type);\n };\n\n /**\n * ### .instanceOf(object, constructor, [message])\n *\n * Asserts that `value` is an instance of `constructor`.\n *\n * var Tea = function (name) { this.name = name; }\n * , chai = new Tea('chai');\n *\n * assert.instanceOf(chai, Tea, 'chai is an instance of tea');\n *\n * @name instanceOf\n * @param {Object} object\n * @param {Constructor} constructor\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.instanceOf = function (val, type, msg) {\n new Assertion(val, msg, assert.instanceOf, true).to.be.instanceOf(type);\n };\n\n /**\n * ### .notInstanceOf(object, constructor, [message])\n *\n * Asserts `value` is not an instance of `constructor`.\n *\n * var Tea = function (name) { this.name = name; }\n * , chai = new String('chai');\n *\n * assert.notInstanceOf(chai, Tea, 'chai is not an instance of tea');\n *\n * @name notInstanceOf\n * @param {Object} object\n * @param {Constructor} constructor\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notInstanceOf = function (val, type, msg) {\n new Assertion(val, msg, assert.notInstanceOf, true)\n .to.not.be.instanceOf(type);\n };\n\n /**\n * ### .include(haystack, needle, [message])\n *\n * Asserts that `haystack` includes `needle`. Can be used to assert the\n * inclusion of a value in an array, a substring in a string, or a subset of\n * properties in an object.\n *\n * assert.include([1,2,3], 2, 'array contains value');\n * assert.include('foobar', 'foo', 'string contains substring');\n * assert.include({ foo: 'bar', hello: 'universe' }, { foo: 'bar' }, 'object contains property');\n *\n * Strict equality (===) is used. When asserting the inclusion of a value in\n * an array, the array is searched for an element that's strictly equal to the\n * given value. When asserting a subset of properties in an object, the object\n * is searched for the given property keys, checking that each one is present\n * and strictly equal to the given property value. For instance:\n *\n * var obj1 = {a: 1}\n * , obj2 = {b: 2};\n * assert.include([obj1, obj2], obj1);\n * assert.include({foo: obj1, bar: obj2}, {foo: obj1});\n * assert.include({foo: obj1, bar: obj2}, {foo: obj1, bar: obj2});\n *\n * @name include\n * @param {Array|String} haystack\n * @param {Mixed} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.include = function (exp, inc, msg) {\n new Assertion(exp, msg, assert.include, true).include(inc);\n };\n\n /**\n * ### .notInclude(haystack, needle, [message])\n *\n * Asserts that `haystack` does not include `needle`. Can be used to assert\n * the absence of a value in an array, a substring in a string, or a subset of\n * properties in an object.\n *\n * assert.notInclude([1,2,3], 4, \"array doesn't contain value\");\n * assert.notInclude('foobar', 'baz', \"string doesn't contain substring\");\n * assert.notInclude({ foo: 'bar', hello: 'universe' }, { foo: 'baz' }, 'object doesn't contain property');\n *\n * Strict equality (===) is used. When asserting the absence of a value in an\n * array, the array is searched to confirm the absence of an element that's\n * strictly equal to the given value. When asserting a subset of properties in\n * an object, the object is searched to confirm that at least one of the given\n * property keys is either not present or not strictly equal to the given\n * property value. For instance:\n *\n * var obj1 = {a: 1}\n * , obj2 = {b: 2};\n * assert.notInclude([obj1, obj2], {a: 1});\n * assert.notInclude({foo: obj1, bar: obj2}, {foo: {a: 1}});\n * assert.notInclude({foo: obj1, bar: obj2}, {foo: obj1, bar: {b: 2}});\n *\n * @name notInclude\n * @param {Array|String} haystack\n * @param {Mixed} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notInclude = function (exp, inc, msg) {\n new Assertion(exp, msg, assert.notInclude, true).not.include(inc);\n };\n\n /**\n * ### .deepInclude(haystack, needle, [message])\n *\n * Asserts that `haystack` includes `needle`. Can be used to assert the\n * inclusion of a value in an array or a subset of properties in an object.\n * Deep equality is used.\n *\n * var obj1 = {a: 1}\n * , obj2 = {b: 2};\n * assert.deepInclude([obj1, obj2], {a: 1});\n * assert.deepInclude({foo: obj1, bar: obj2}, {foo: {a: 1}});\n * assert.deepInclude({foo: obj1, bar: obj2}, {foo: {a: 1}, bar: {b: 2}});\n *\n * @name deepInclude\n * @param {Array|String} haystack\n * @param {Mixed} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.deepInclude = function (exp, inc, msg) {\n new Assertion(exp, msg, assert.deepInclude, true).deep.include(inc);\n };\n\n /**\n * ### .notDeepInclude(haystack, needle, [message])\n *\n * Asserts that `haystack` does not include `needle`. Can be used to assert\n * the absence of a value in an array or a subset of properties in an object.\n * Deep equality is used.\n *\n * var obj1 = {a: 1}\n * , obj2 = {b: 2};\n * assert.notDeepInclude([obj1, obj2], {a: 9});\n * assert.notDeepInclude({foo: obj1, bar: obj2}, {foo: {a: 9}});\n * assert.notDeepInclude({foo: obj1, bar: obj2}, {foo: {a: 1}, bar: {b: 9}});\n *\n * @name notDeepInclude\n * @param {Array|String} haystack\n * @param {Mixed} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notDeepInclude = function (exp, inc, msg) {\n new Assertion(exp, msg, assert.notDeepInclude, true).not.deep.include(inc);\n };\n\n /**\n * ### .nestedInclude(haystack, needle, [message])\n *\n * Asserts that 'haystack' includes 'needle'.\n * Can be used to assert the inclusion of a subset of properties in an\n * object.\n * Enables the use of dot- and bracket-notation for referencing nested\n * properties.\n * '[]' and '.' in property names can be escaped using double backslashes.\n *\n * assert.nestedInclude({'.a': {'b': 'x'}}, {'\\\\.a.[b]': 'x'});\n * assert.nestedInclude({'a': {'[b]': 'x'}}, {'a.\\\\[b\\\\]': 'x'});\n *\n * @name nestedInclude\n * @param {Object} haystack\n * @param {Object} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.nestedInclude = function (exp, inc, msg) {\n new Assertion(exp, msg, assert.nestedInclude, true).nested.include(inc);\n };\n\n /**\n * ### .notNestedInclude(haystack, needle, [message])\n *\n * Asserts that 'haystack' does not include 'needle'.\n * Can be used to assert the absence of a subset of properties in an\n * object.\n * Enables the use of dot- and bracket-notation for referencing nested\n * properties.\n * '[]' and '.' in property names can be escaped using double backslashes.\n *\n * assert.notNestedInclude({'.a': {'b': 'x'}}, {'\\\\.a.b': 'y'});\n * assert.notNestedInclude({'a': {'[b]': 'x'}}, {'a.\\\\[b\\\\]': 'y'});\n *\n * @name notNestedInclude\n * @param {Object} haystack\n * @param {Object} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notNestedInclude = function (exp, inc, msg) {\n new Assertion(exp, msg, assert.notNestedInclude, true)\n .not.nested.include(inc);\n };\n\n /**\n * ### .deepNestedInclude(haystack, needle, [message])\n *\n * Asserts that 'haystack' includes 'needle'.\n * Can be used to assert the inclusion of a subset of properties in an\n * object while checking for deep equality.\n * Enables the use of dot- and bracket-notation for referencing nested\n * properties.\n * '[]' and '.' in property names can be escaped using double backslashes.\n *\n * assert.deepNestedInclude({a: {b: [{x: 1}]}}, {'a.b[0]': {x: 1}});\n * assert.deepNestedInclude({'.a': {'[b]': {x: 1}}}, {'\\\\.a.\\\\[b\\\\]': {x: 1}});\n *\n * @name deepNestedInclude\n * @param {Object} haystack\n * @param {Object} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.deepNestedInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.deepNestedInclude, true)\n .deep.nested.include(inc);\n };\n\n /**\n * ### .notDeepNestedInclude(haystack, needle, [message])\n *\n * Asserts that 'haystack' does not include 'needle'.\n * Can be used to assert the absence of a subset of properties in an\n * object while checking for deep equality.\n * Enables the use of dot- and bracket-notation for referencing nested\n * properties.\n * '[]' and '.' in property names can be escaped using double backslashes.\n *\n * assert.notDeepNestedInclude({a: {b: [{x: 1}]}}, {'a.b[0]': {y: 1}})\n * assert.notDeepNestedInclude({'.a': {'[b]': {x: 1}}}, {'\\\\.a.\\\\[b\\\\]': {y: 2}});\n *\n * @name notDeepNestedInclude\n * @param {Object} haystack\n * @param {Object} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notDeepNestedInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.notDeepNestedInclude, true)\n .not.deep.nested.include(inc);\n };\n\n /**\n * ### .ownInclude(haystack, needle, [message])\n *\n * Asserts that 'haystack' includes 'needle'.\n * Can be used to assert the inclusion of a subset of properties in an\n * object while ignoring inherited properties.\n *\n * assert.ownInclude({ a: 1 }, { a: 1 });\n *\n * @name ownInclude\n * @param {Object} haystack\n * @param {Object} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.ownInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.ownInclude, true).own.include(inc);\n };\n\n /**\n * ### .notOwnInclude(haystack, needle, [message])\n *\n * Asserts that 'haystack' includes 'needle'.\n * Can be used to assert the absence of a subset of properties in an\n * object while ignoring inherited properties.\n *\n * Object.prototype.b = 2;\n *\n * assert.notOwnInclude({ a: 1 }, { b: 2 });\n *\n * @name notOwnInclude\n * @param {Object} haystack\n * @param {Object} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notOwnInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.notOwnInclude, true).not.own.include(inc);\n };\n\n /**\n * ### .deepOwnInclude(haystack, needle, [message])\n *\n * Asserts that 'haystack' includes 'needle'.\n * Can be used to assert the inclusion of a subset of properties in an\n * object while ignoring inherited properties and checking for deep equality.\n *\n * assert.deepOwnInclude({a: {b: 2}}, {a: {b: 2}});\n *\n * @name deepOwnInclude\n * @param {Object} haystack\n * @param {Object} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.deepOwnInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.deepOwnInclude, true)\n .deep.own.include(inc);\n };\n\n /**\n * ### .notDeepOwnInclude(haystack, needle, [message])\n *\n * Asserts that 'haystack' includes 'needle'.\n * Can be used to assert the absence of a subset of properties in an\n * object while ignoring inherited properties and checking for deep equality.\n *\n * assert.notDeepOwnInclude({a: {b: 2}}, {a: {c: 3}});\n *\n * @name notDeepOwnInclude\n * @param {Object} haystack\n * @param {Object} needle\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notDeepOwnInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.notDeepOwnInclude, true)\n .not.deep.own.include(inc);\n };\n\n /**\n * ### .match(value, regexp, [message])\n *\n * Asserts that `value` matches the regular expression `regexp`.\n *\n * assert.match('foobar', /^foo/, 'regexp matches');\n *\n * @name match\n * @param {Mixed} value\n * @param {RegExp} regexp\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.match = function (exp, re, msg) {\n new Assertion(exp, msg, assert.match, true).to.match(re);\n };\n\n /**\n * ### .notMatch(value, regexp, [message])\n *\n * Asserts that `value` does not match the regular expression `regexp`.\n *\n * assert.notMatch('foobar', /^foo/, 'regexp does not match');\n *\n * @name notMatch\n * @param {Mixed} value\n * @param {RegExp} regexp\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notMatch = function (exp, re, msg) {\n new Assertion(exp, msg, assert.notMatch, true).to.not.match(re);\n };\n\n /**\n * ### .property(object, property, [message])\n *\n * Asserts that `object` has a direct or inherited property named by\n * `property`.\n *\n * assert.property({ tea: { green: 'matcha' }}, 'tea');\n * assert.property({ tea: { green: 'matcha' }}, 'toString');\n *\n * @name property\n * @param {Object} object\n * @param {String} property\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.property = function (obj, prop, msg) {\n new Assertion(obj, msg, assert.property, true).to.have.property(prop);\n };\n\n /**\n * ### .notProperty(object, property, [message])\n *\n * Asserts that `object` does _not_ have a direct or inherited property named\n * by `property`.\n *\n * assert.notProperty({ tea: { green: 'matcha' }}, 'coffee');\n *\n * @name notProperty\n * @param {Object} object\n * @param {String} property\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notProperty = function (obj, prop, msg) {\n new Assertion(obj, msg, assert.notProperty, true)\n .to.not.have.property(prop);\n };\n\n /**\n * ### .propertyVal(object, property, value, [message])\n *\n * Asserts that `object` has a direct or inherited property named by\n * `property` with a value given by `value`. Uses a strict equality check\n * (===).\n *\n * assert.propertyVal({ tea: 'is good' }, 'tea', 'is good');\n *\n * @name propertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.propertyVal = function (obj, prop, val, msg) {\n new Assertion(obj, msg, assert.propertyVal, true)\n .to.have.property(prop, val);\n };\n\n /**\n * ### .notPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` does _not_ have a direct or inherited property named\n * by `property` with value given by `value`. Uses a strict equality check\n * (===).\n *\n * assert.notPropertyVal({ tea: 'is good' }, 'tea', 'is bad');\n * assert.notPropertyVal({ tea: 'is good' }, 'coffee', 'is good');\n *\n * @name notPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notPropertyVal = function (obj, prop, val, msg) {\n new Assertion(obj, msg, assert.notPropertyVal, true)\n .to.not.have.property(prop, val);\n };\n\n /**\n * ### .deepPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` has a direct or inherited property named by\n * `property` with a value given by `value`. Uses a deep equality check.\n *\n * assert.deepPropertyVal({ tea: { green: 'matcha' } }, 'tea', { green: 'matcha' });\n *\n * @name deepPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.deepPropertyVal = function (obj, prop, val, msg) {\n new Assertion(obj, msg, assert.deepPropertyVal, true)\n .to.have.deep.property(prop, val);\n };\n\n /**\n * ### .notDeepPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` does _not_ have a direct or inherited property named\n * by `property` with value given by `value`. Uses a deep equality check.\n *\n * assert.notDeepPropertyVal({ tea: { green: 'matcha' } }, 'tea', { black: 'matcha' });\n * assert.notDeepPropertyVal({ tea: { green: 'matcha' } }, 'tea', { green: 'oolong' });\n * assert.notDeepPropertyVal({ tea: { green: 'matcha' } }, 'coffee', { green: 'matcha' });\n *\n * @name notDeepPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notDeepPropertyVal = function (obj, prop, val, msg) {\n new Assertion(obj, msg, assert.notDeepPropertyVal, true)\n .to.not.have.deep.property(prop, val);\n };\n\n /**\n * ### .ownProperty(object, property, [message])\n *\n * Asserts that `object` has a direct property named by `property`. Inherited\n * properties aren't checked.\n *\n * assert.ownProperty({ tea: { green: 'matcha' }}, 'tea');\n *\n * @name ownProperty\n * @param {Object} object\n * @param {String} property\n * @param {String} message\n * @api public\n */\n\n assert.ownProperty = function (obj, prop, msg) {\n new Assertion(obj, msg, assert.ownProperty, true)\n .to.have.own.property(prop);\n };\n\n /**\n * ### .notOwnProperty(object, property, [message])\n *\n * Asserts that `object` does _not_ have a direct property named by\n * `property`. Inherited properties aren't checked.\n *\n * assert.notOwnProperty({ tea: { green: 'matcha' }}, 'coffee');\n * assert.notOwnProperty({}, 'toString');\n *\n * @name notOwnProperty\n * @param {Object} object\n * @param {String} property\n * @param {String} message\n * @api public\n */\n\n assert.notOwnProperty = function (obj, prop, msg) {\n new Assertion(obj, msg, assert.notOwnProperty, true)\n .to.not.have.own.property(prop);\n };\n\n /**\n * ### .ownPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` has a direct property named by `property` and a value\n * equal to the provided `value`. Uses a strict equality check (===).\n * Inherited properties aren't checked.\n *\n * assert.ownPropertyVal({ coffee: 'is good'}, 'coffee', 'is good');\n *\n * @name ownPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @api public\n */\n\n assert.ownPropertyVal = function (obj, prop, value, msg) {\n new Assertion(obj, msg, assert.ownPropertyVal, true)\n .to.have.own.property(prop, value);\n };\n\n /**\n * ### .notOwnPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` does _not_ have a direct property named by `property`\n * with a value equal to the provided `value`. Uses a strict equality check\n * (===). Inherited properties aren't checked.\n *\n * assert.notOwnPropertyVal({ tea: 'is better'}, 'tea', 'is worse');\n * assert.notOwnPropertyVal({}, 'toString', Object.prototype.toString);\n *\n * @name notOwnPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @api public\n */\n\n assert.notOwnPropertyVal = function (obj, prop, value, msg) {\n new Assertion(obj, msg, assert.notOwnPropertyVal, true)\n .to.not.have.own.property(prop, value);\n };\n\n /**\n * ### .deepOwnPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` has a direct property named by `property` and a value\n * equal to the provided `value`. Uses a deep equality check. Inherited\n * properties aren't checked.\n *\n * assert.deepOwnPropertyVal({ tea: { green: 'matcha' } }, 'tea', { green: 'matcha' });\n *\n * @name deepOwnPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @api public\n */\n\n assert.deepOwnPropertyVal = function (obj, prop, value, msg) {\n new Assertion(obj, msg, assert.deepOwnPropertyVal, true)\n .to.have.deep.own.property(prop, value);\n };\n\n /**\n * ### .notDeepOwnPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` does _not_ have a direct property named by `property`\n * with a value equal to the provided `value`. Uses a deep equality check.\n * Inherited properties aren't checked.\n *\n * assert.notDeepOwnPropertyVal({ tea: { green: 'matcha' } }, 'tea', { black: 'matcha' });\n * assert.notDeepOwnPropertyVal({ tea: { green: 'matcha' } }, 'tea', { green: 'oolong' });\n * assert.notDeepOwnPropertyVal({ tea: { green: 'matcha' } }, 'coffee', { green: 'matcha' });\n * assert.notDeepOwnPropertyVal({}, 'toString', Object.prototype.toString);\n *\n * @name notDeepOwnPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @api public\n */\n\n assert.notDeepOwnPropertyVal = function (obj, prop, value, msg) {\n new Assertion(obj, msg, assert.notDeepOwnPropertyVal, true)\n .to.not.have.deep.own.property(prop, value);\n };\n\n /**\n * ### .nestedProperty(object, property, [message])\n *\n * Asserts that `object` has a direct or inherited property named by\n * `property`, which can be a string using dot- and bracket-notation for\n * nested reference.\n *\n * assert.nestedProperty({ tea: { green: 'matcha' }}, 'tea.green');\n *\n * @name nestedProperty\n * @param {Object} object\n * @param {String} property\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.nestedProperty = function (obj, prop, msg) {\n new Assertion(obj, msg, assert.nestedProperty, true)\n .to.have.nested.property(prop);\n };\n\n /**\n * ### .notNestedProperty(object, property, [message])\n *\n * Asserts that `object` does _not_ have a property named by `property`, which\n * can be a string using dot- and bracket-notation for nested reference. The\n * property cannot exist on the object nor anywhere in its prototype chain.\n *\n * assert.notNestedProperty({ tea: { green: 'matcha' }}, 'tea.oolong');\n *\n * @name notNestedProperty\n * @param {Object} object\n * @param {String} property\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notNestedProperty = function (obj, prop, msg) {\n new Assertion(obj, msg, assert.notNestedProperty, true)\n .to.not.have.nested.property(prop);\n };\n\n /**\n * ### .nestedPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` has a property named by `property` with value given\n * by `value`. `property` can use dot- and bracket-notation for nested\n * reference. Uses a strict equality check (===).\n *\n * assert.nestedPropertyVal({ tea: { green: 'matcha' }}, 'tea.green', 'matcha');\n *\n * @name nestedPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.nestedPropertyVal = function (obj, prop, val, msg) {\n new Assertion(obj, msg, assert.nestedPropertyVal, true)\n .to.have.nested.property(prop, val);\n };\n\n /**\n * ### .notNestedPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` does _not_ have a property named by `property` with\n * value given by `value`. `property` can use dot- and bracket-notation for\n * nested reference. Uses a strict equality check (===).\n *\n * assert.notNestedPropertyVal({ tea: { green: 'matcha' }}, 'tea.green', 'konacha');\n * assert.notNestedPropertyVal({ tea: { green: 'matcha' }}, 'coffee.green', 'matcha');\n *\n * @name notNestedPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notNestedPropertyVal = function (obj, prop, val, msg) {\n new Assertion(obj, msg, assert.notNestedPropertyVal, true)\n .to.not.have.nested.property(prop, val);\n };\n\n /**\n * ### .deepNestedPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` has a property named by `property` with a value given\n * by `value`. `property` can use dot- and bracket-notation for nested\n * reference. Uses a deep equality check.\n *\n * assert.deepNestedPropertyVal({ tea: { green: { matcha: 'yum' } } }, 'tea.green', { matcha: 'yum' });\n *\n * @name deepNestedPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.deepNestedPropertyVal = function (obj, prop, val, msg) {\n new Assertion(obj, msg, assert.deepNestedPropertyVal, true)\n .to.have.deep.nested.property(prop, val);\n };\n\n /**\n * ### .notDeepNestedPropertyVal(object, property, value, [message])\n *\n * Asserts that `object` does _not_ have a property named by `property` with\n * value given by `value`. `property` can use dot- and bracket-notation for\n * nested reference. Uses a deep equality check.\n *\n * assert.notDeepNestedPropertyVal({ tea: { green: { matcha: 'yum' } } }, 'tea.green', { oolong: 'yum' });\n * assert.notDeepNestedPropertyVal({ tea: { green: { matcha: 'yum' } } }, 'tea.green', { matcha: 'yuck' });\n * assert.notDeepNestedPropertyVal({ tea: { green: { matcha: 'yum' } } }, 'tea.black', { matcha: 'yum' });\n *\n * @name notDeepNestedPropertyVal\n * @param {Object} object\n * @param {String} property\n * @param {Mixed} value\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notDeepNestedPropertyVal = function (obj, prop, val, msg) {\n new Assertion(obj, msg, assert.notDeepNestedPropertyVal, true)\n .to.not.have.deep.nested.property(prop, val);\n }\n\n /**\n * ### .lengthOf(object, length, [message])\n *\n * Asserts that `object` has a `length` or `size` with the expected value.\n *\n * assert.lengthOf([1,2,3], 3, 'array has length of 3');\n * assert.lengthOf('foobar', 6, 'string has length of 6');\n * assert.lengthOf(new Set([1,2,3]), 3, 'set has size of 3');\n * assert.lengthOf(new Map([['a',1],['b',2],['c',3]]), 3, 'map has size of 3');\n *\n * @name lengthOf\n * @param {Mixed} object\n * @param {Number} length\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.lengthOf = function (exp, len, msg) {\n new Assertion(exp, msg, assert.lengthOf, true).to.have.lengthOf(len);\n };\n\n /**\n * ### .hasAnyKeys(object, [keys], [message])\n *\n * Asserts that `object` has at least one of the `keys` provided.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.hasAnyKeys({foo: 1, bar: 2, baz: 3}, ['foo', 'iDontExist', 'baz']);\n * assert.hasAnyKeys({foo: 1, bar: 2, baz: 3}, {foo: 30, iDontExist: 99, baz: 1337});\n * assert.hasAnyKeys(new Map([[{foo: 1}, 'bar'], ['key', 'value']]), [{foo: 1}, 'key']);\n * assert.hasAnyKeys(new Set([{foo: 'bar'}, 'anotherKey']), [{foo: 'bar'}, 'anotherKey']);\n *\n * @name hasAnyKeys\n * @param {Mixed} object\n * @param {Array|Object} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.hasAnyKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.hasAnyKeys, true).to.have.any.keys(keys);\n }\n\n /**\n * ### .hasAllKeys(object, [keys], [message])\n *\n * Asserts that `object` has all and only all of the `keys` provided.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.hasAllKeys({foo: 1, bar: 2, baz: 3}, ['foo', 'bar', 'baz']);\n * assert.hasAllKeys({foo: 1, bar: 2, baz: 3}, {foo: 30, bar: 99, baz: 1337]);\n * assert.hasAllKeys(new Map([[{foo: 1}, 'bar'], ['key', 'value']]), [{foo: 1}, 'key']);\n * assert.hasAllKeys(new Set([{foo: 'bar'}, 'anotherKey'], [{foo: 'bar'}, 'anotherKey']);\n *\n * @name hasAllKeys\n * @param {Mixed} object\n * @param {String[]} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.hasAllKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.hasAllKeys, true).to.have.all.keys(keys);\n }\n\n /**\n * ### .containsAllKeys(object, [keys], [message])\n *\n * Asserts that `object` has all of the `keys` provided but may have more keys not listed.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.containsAllKeys({foo: 1, bar: 2, baz: 3}, ['foo', 'baz']);\n * assert.containsAllKeys({foo: 1, bar: 2, baz: 3}, ['foo', 'bar', 'baz']);\n * assert.containsAllKeys({foo: 1, bar: 2, baz: 3}, {foo: 30, baz: 1337});\n * assert.containsAllKeys({foo: 1, bar: 2, baz: 3}, {foo: 30, bar: 99, baz: 1337});\n * assert.containsAllKeys(new Map([[{foo: 1}, 'bar'], ['key', 'value']]), [{foo: 1}]);\n * assert.containsAllKeys(new Map([[{foo: 1}, 'bar'], ['key', 'value']]), [{foo: 1}, 'key']);\n * assert.containsAllKeys(new Set([{foo: 'bar'}, 'anotherKey'], [{foo: 'bar'}]);\n * assert.containsAllKeys(new Set([{foo: 'bar'}, 'anotherKey'], [{foo: 'bar'}, 'anotherKey']);\n *\n * @name containsAllKeys\n * @param {Mixed} object\n * @param {String[]} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.containsAllKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.containsAllKeys, true)\n .to.contain.all.keys(keys);\n }\n\n /**\n * ### .doesNotHaveAnyKeys(object, [keys], [message])\n *\n * Asserts that `object` has none of the `keys` provided.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.doesNotHaveAnyKeys({foo: 1, bar: 2, baz: 3}, ['one', 'two', 'example']);\n * assert.doesNotHaveAnyKeys({foo: 1, bar: 2, baz: 3}, {one: 1, two: 2, example: 'foo'});\n * assert.doesNotHaveAnyKeys(new Map([[{foo: 1}, 'bar'], ['key', 'value']]), [{one: 'two'}, 'example']);\n * assert.doesNotHaveAnyKeys(new Set([{foo: 'bar'}, 'anotherKey'], [{one: 'two'}, 'example']);\n *\n * @name doesNotHaveAnyKeys\n * @param {Mixed} object\n * @param {String[]} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.doesNotHaveAnyKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.doesNotHaveAnyKeys, true)\n .to.not.have.any.keys(keys);\n }\n\n /**\n * ### .doesNotHaveAllKeys(object, [keys], [message])\n *\n * Asserts that `object` does not have at least one of the `keys` provided.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.doesNotHaveAllKeys({foo: 1, bar: 2, baz: 3}, ['one', 'two', 'example']);\n * assert.doesNotHaveAllKeys({foo: 1, bar: 2, baz: 3}, {one: 1, two: 2, example: 'foo'});\n * assert.doesNotHaveAllKeys(new Map([[{foo: 1}, 'bar'], ['key', 'value']]), [{one: 'two'}, 'example']);\n * assert.doesNotHaveAllKeys(new Set([{foo: 'bar'}, 'anotherKey'], [{one: 'two'}, 'example']);\n *\n * @name doesNotHaveAllKeys\n * @param {Mixed} object\n * @param {String[]} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.doesNotHaveAllKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.doesNotHaveAllKeys, true)\n .to.not.have.all.keys(keys);\n }\n\n /**\n * ### .hasAnyDeepKeys(object, [keys], [message])\n *\n * Asserts that `object` has at least one of the `keys` provided.\n * Since Sets and Maps can have objects as keys you can use this assertion to perform\n * a deep comparison.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.hasAnyDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [1, 2]]), {one: 'one'});\n * assert.hasAnyDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [1, 2]]), [{one: 'one'}, {two: 'two'}]);\n * assert.hasAnyDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [{two: 'two'}, 'valueTwo']]), [{one: 'one'}, {two: 'two'}]);\n * assert.hasAnyDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), {one: 'one'});\n * assert.hasAnyDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), [{one: 'one'}, {three: 'three'}]);\n * assert.hasAnyDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), [{one: 'one'}, {two: 'two'}]);\n *\n * @name hasAnyDeepKeys\n * @param {Mixed} object\n * @param {Array|Object} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.hasAnyDeepKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.hasAnyDeepKeys, true)\n .to.have.any.deep.keys(keys);\n }\n\n /**\n * ### .hasAllDeepKeys(object, [keys], [message])\n *\n * Asserts that `object` has all and only all of the `keys` provided.\n * Since Sets and Maps can have objects as keys you can use this assertion to perform\n * a deep comparison.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.hasAllDeepKeys(new Map([[{one: 'one'}, 'valueOne']]), {one: 'one'});\n * assert.hasAllDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [{two: 'two'}, 'valueTwo']]), [{one: 'one'}, {two: 'two'}]);\n * assert.hasAllDeepKeys(new Set([{one: 'one'}]), {one: 'one'});\n * assert.hasAllDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), [{one: 'one'}, {two: 'two'}]);\n *\n * @name hasAllDeepKeys\n * @param {Mixed} object\n * @param {Array|Object} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.hasAllDeepKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.hasAllDeepKeys, true)\n .to.have.all.deep.keys(keys);\n }\n\n /**\n * ### .containsAllDeepKeys(object, [keys], [message])\n *\n * Asserts that `object` contains all of the `keys` provided.\n * Since Sets and Maps can have objects as keys you can use this assertion to perform\n * a deep comparison.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.containsAllDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [1, 2]]), {one: 'one'});\n * assert.containsAllDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [{two: 'two'}, 'valueTwo']]), [{one: 'one'}, {two: 'two'}]);\n * assert.containsAllDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), {one: 'one'});\n * assert.containsAllDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), [{one: 'one'}, {two: 'two'}]);\n *\n * @name containsAllDeepKeys\n * @param {Mixed} object\n * @param {Array|Object} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.containsAllDeepKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.containsAllDeepKeys, true)\n .to.contain.all.deep.keys(keys);\n }\n\n /**\n * ### .doesNotHaveAnyDeepKeys(object, [keys], [message])\n *\n * Asserts that `object` has none of the `keys` provided.\n * Since Sets and Maps can have objects as keys you can use this assertion to perform\n * a deep comparison.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.doesNotHaveAnyDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [1, 2]]), {thisDoesNot: 'exist'});\n * assert.doesNotHaveAnyDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [{two: 'two'}, 'valueTwo']]), [{twenty: 'twenty'}, {fifty: 'fifty'}]);\n * assert.doesNotHaveAnyDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), {twenty: 'twenty'});\n * assert.doesNotHaveAnyDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), [{twenty: 'twenty'}, {fifty: 'fifty'}]);\n *\n * @name doesNotHaveAnyDeepKeys\n * @param {Mixed} object\n * @param {Array|Object} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.doesNotHaveAnyDeepKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.doesNotHaveAnyDeepKeys, true)\n .to.not.have.any.deep.keys(keys);\n }\n\n /**\n * ### .doesNotHaveAllDeepKeys(object, [keys], [message])\n *\n * Asserts that `object` does not have at least one of the `keys` provided.\n * Since Sets and Maps can have objects as keys you can use this assertion to perform\n * a deep comparison.\n * You can also provide a single object instead of a `keys` array and its keys\n * will be used as the expected set of keys.\n *\n * assert.doesNotHaveAllDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [1, 2]]), {thisDoesNot: 'exist'});\n * assert.doesNotHaveAllDeepKeys(new Map([[{one: 'one'}, 'valueOne'], [{two: 'two'}, 'valueTwo']]), [{twenty: 'twenty'}, {one: 'one'}]);\n * assert.doesNotHaveAllDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), {twenty: 'twenty'});\n * assert.doesNotHaveAllDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), [{one: 'one'}, {fifty: 'fifty'}]);\n *\n * @name doesNotHaveAllDeepKeys\n * @param {Mixed} object\n * @param {Array|Object} keys\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.doesNotHaveAllDeepKeys = function (obj, keys, msg) {\n new Assertion(obj, msg, assert.doesNotHaveAllDeepKeys, true)\n .to.not.have.all.deep.keys(keys);\n }\n\n /**\n * ### .throws(fn, [errorLike/string/regexp], [string/regexp], [message])\n *\n * If `errorLike` is an `Error` constructor, asserts that `fn` will throw an error that is an\n * instance of `errorLike`.\n * If `errorLike` is an `Error` instance, asserts that the error thrown is the same\n * instance as `errorLike`.\n * If `errMsgMatcher` is provided, it also asserts that the error thrown will have a\n * message matching `errMsgMatcher`.\n *\n * assert.throws(fn, 'Error thrown must have this msg');\n * assert.throws(fn, /Error thrown must have a msg that matches this/);\n * assert.throws(fn, ReferenceError);\n * assert.throws(fn, errorInstance);\n * assert.throws(fn, ReferenceError, 'Error thrown must be a ReferenceError and have this msg');\n * assert.throws(fn, errorInstance, 'Error thrown must be the same errorInstance and have this msg');\n * assert.throws(fn, ReferenceError, /Error thrown must be a ReferenceError and match this/);\n * assert.throws(fn, errorInstance, /Error thrown must be the same errorInstance and match this/);\n *\n * @name throws\n * @alias throw\n * @alias Throw\n * @param {Function} fn\n * @param {ErrorConstructor|Error} errorLike\n * @param {RegExp|String} errMsgMatcher\n * @param {String} message\n * @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types\n * @namespace Assert\n * @api public\n */\n\n assert.throws = function (fn, errorLike, errMsgMatcher, msg) {\n if ('string' === typeof errorLike || errorLike instanceof RegExp) {\n errMsgMatcher = errorLike;\n errorLike = null;\n }\n\n var assertErr = new Assertion(fn, msg, assert.throws, true)\n .to.throw(errorLike, errMsgMatcher);\n return flag(assertErr, 'object');\n };\n\n /**\n * ### .doesNotThrow(fn, [errorLike/string/regexp], [string/regexp], [message])\n *\n * If `errorLike` is an `Error` constructor, asserts that `fn` will _not_ throw an error that is an\n * instance of `errorLike`.\n * If `errorLike` is an `Error` instance, asserts that the error thrown is _not_ the same\n * instance as `errorLike`.\n * If `errMsgMatcher` is provided, it also asserts that the error thrown will _not_ have a\n * message matching `errMsgMatcher`.\n *\n * assert.doesNotThrow(fn, 'Any Error thrown must not have this message');\n * assert.doesNotThrow(fn, /Any Error thrown must not match this/);\n * assert.doesNotThrow(fn, Error);\n * assert.doesNotThrow(fn, errorInstance);\n * assert.doesNotThrow(fn, Error, 'Error must not have this message');\n * assert.doesNotThrow(fn, errorInstance, 'Error must not have this message');\n * assert.doesNotThrow(fn, Error, /Error must not match this/);\n * assert.doesNotThrow(fn, errorInstance, /Error must not match this/);\n *\n * @name doesNotThrow\n * @param {Function} fn\n * @param {ErrorConstructor} errorLike\n * @param {RegExp|String} errMsgMatcher\n * @param {String} message\n * @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types\n * @namespace Assert\n * @api public\n */\n\n assert.doesNotThrow = function (fn, errorLike, errMsgMatcher, msg) {\n if ('string' === typeof errorLike || errorLike instanceof RegExp) {\n errMsgMatcher = errorLike;\n errorLike = null;\n }\n\n new Assertion(fn, msg, assert.doesNotThrow, true)\n .to.not.throw(errorLike, errMsgMatcher);\n };\n\n /**\n * ### .operator(val1, operator, val2, [message])\n *\n * Compares two values using `operator`.\n *\n * assert.operator(1, '<', 2, 'everything is ok');\n * assert.operator(1, '>', 2, 'this will fail');\n *\n * @name operator\n * @param {Mixed} val1\n * @param {String} operator\n * @param {Mixed} val2\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.operator = function (val, operator, val2, msg) {\n var ok;\n switch(operator) {\n case '==':\n ok = val == val2;\n break;\n case '===':\n ok = val === val2;\n break;\n case '>':\n ok = val > val2;\n break;\n case '>=':\n ok = val >= val2;\n break;\n case '<':\n ok = val < val2;\n break;\n case '<=':\n ok = val <= val2;\n break;\n case '!=':\n ok = val != val2;\n break;\n case '!==':\n ok = val !== val2;\n break;\n default:\n msg = msg ? msg + ': ' : msg;\n throw new chai.AssertionError(\n msg + 'Invalid operator \"' + operator + '\"',\n undefined,\n assert.operator\n );\n }\n var test = new Assertion(ok, msg, assert.operator, true);\n test.assert(\n true === flag(test, 'object')\n , 'expected ' + util.inspect(val) + ' to be ' + operator + ' ' + util.inspect(val2)\n , 'expected ' + util.inspect(val) + ' to not be ' + operator + ' ' + util.inspect(val2) );\n };\n\n /**\n * ### .closeTo(actual, expected, delta, [message])\n *\n * Asserts that the target is equal `expected`, to within a +/- `delta` range.\n *\n * assert.closeTo(1.5, 1, 0.5, 'numbers are close');\n *\n * @name closeTo\n * @param {Number} actual\n * @param {Number} expected\n * @param {Number} delta\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.closeTo = function (act, exp, delta, msg) {\n new Assertion(act, msg, assert.closeTo, true).to.be.closeTo(exp, delta);\n };\n\n /**\n * ### .approximately(actual, expected, delta, [message])\n *\n * Asserts that the target is equal `expected`, to within a +/- `delta` range.\n *\n * assert.approximately(1.5, 1, 0.5, 'numbers are close');\n *\n * @name approximately\n * @param {Number} actual\n * @param {Number} expected\n * @param {Number} delta\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.approximately = function (act, exp, delta, msg) {\n new Assertion(act, msg, assert.approximately, true)\n .to.be.approximately(exp, delta);\n };\n\n /**\n * ### .sameMembers(set1, set2, [message])\n *\n * Asserts that `set1` and `set2` have the same members in any order. Uses a\n * strict equality check (===).\n *\n * assert.sameMembers([ 1, 2, 3 ], [ 2, 1, 3 ], 'same members');\n *\n * @name sameMembers\n * @param {Array} set1\n * @param {Array} set2\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.sameMembers = function (set1, set2, msg) {\n new Assertion(set1, msg, assert.sameMembers, true)\n .to.have.same.members(set2);\n }\n\n /**\n * ### .notSameMembers(set1, set2, [message])\n *\n * Asserts that `set1` and `set2` don't have the same members in any order.\n * Uses a strict equality check (===).\n *\n * assert.notSameMembers([ 1, 2, 3 ], [ 5, 1, 3 ], 'not same members');\n *\n * @name notSameMembers\n * @param {Array} set1\n * @param {Array} set2\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notSameMembers = function (set1, set2, msg) {\n new Assertion(set1, msg, assert.notSameMembers, true)\n .to.not.have.same.members(set2);\n }\n\n /**\n * ### .sameDeepMembers(set1, set2, [message])\n *\n * Asserts that `set1` and `set2` have the same members in any order. Uses a\n * deep equality check.\n *\n * assert.sameDeepMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [{ b: 2 }, { a: 1 }, { c: 3 }], 'same deep members');\n *\n * @name sameDeepMembers\n * @param {Array} set1\n * @param {Array} set2\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.sameDeepMembers = function (set1, set2, msg) {\n new Assertion(set1, msg, assert.sameDeepMembers, true)\n .to.have.same.deep.members(set2);\n }\n\n /**\n * ### .notSameDeepMembers(set1, set2, [message])\n *\n * Asserts that `set1` and `set2` don't have the same members in any order.\n * Uses a deep equality check.\n *\n * assert.notSameDeepMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [{ b: 2 }, { a: 1 }, { f: 5 }], 'not same deep members');\n *\n * @name notSameDeepMembers\n * @param {Array} set1\n * @param {Array} set2\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notSameDeepMembers = function (set1, set2, msg) {\n new Assertion(set1, msg, assert.notSameDeepMembers, true)\n .to.not.have.same.deep.members(set2);\n }\n\n /**\n * ### .sameOrderedMembers(set1, set2, [message])\n *\n * Asserts that `set1` and `set2` have the same members in the same order.\n * Uses a strict equality check (===).\n *\n * assert.sameOrderedMembers([ 1, 2, 3 ], [ 1, 2, 3 ], 'same ordered members');\n *\n * @name sameOrderedMembers\n * @param {Array} set1\n * @param {Array} set2\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.sameOrderedMembers = function (set1, set2, msg) {\n new Assertion(set1, msg, assert.sameOrderedMembers, true)\n .to.have.same.ordered.members(set2);\n }\n\n /**\n * ### .notSameOrderedMembers(set1, set2, [message])\n *\n * Asserts that `set1` and `set2` don't have the same members in the same\n * order. Uses a strict equality check (===).\n *\n * assert.notSameOrderedMembers([ 1, 2, 3 ], [ 2, 1, 3 ], 'not same ordered members');\n *\n * @name notSameOrderedMembers\n * @param {Array} set1\n * @param {Array} set2\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notSameOrderedMembers = function (set1, set2, msg) {\n new Assertion(set1, msg, assert.notSameOrderedMembers, true)\n .to.not.have.same.ordered.members(set2);\n }\n\n /**\n * ### .sameDeepOrderedMembers(set1, set2, [message])\n *\n * Asserts that `set1` and `set2` have the same members in the same order.\n * Uses a deep equality check.\n *\n * assert.sameDeepOrderedMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { a: 1 }, { b: 2 }, { c: 3 } ], 'same deep ordered members');\n *\n * @name sameDeepOrderedMembers\n * @param {Array} set1\n * @param {Array} set2\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.sameDeepOrderedMembers = function (set1, set2, msg) {\n new Assertion(set1, msg, assert.sameDeepOrderedMembers, true)\n .to.have.same.deep.ordered.members(set2);\n }\n\n /**\n * ### .notSameDeepOrderedMembers(set1, set2, [message])\n *\n * Asserts that `set1` and `set2` don't have the same members in the same\n * order. Uses a deep equality check.\n *\n * assert.notSameDeepOrderedMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { a: 1 }, { b: 2 }, { z: 5 } ], 'not same deep ordered members');\n * assert.notSameDeepOrderedMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { b: 2 }, { a: 1 }, { c: 3 } ], 'not same deep ordered members');\n *\n * @name notSameDeepOrderedMembers\n * @param {Array} set1\n * @param {Array} set2\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notSameDeepOrderedMembers = function (set1, set2, msg) {\n new Assertion(set1, msg, assert.notSameDeepOrderedMembers, true)\n .to.not.have.same.deep.ordered.members(set2);\n }\n\n /**\n * ### .includeMembers(superset, subset, [message])\n *\n * Asserts that `subset` is included in `superset` in any order. Uses a\n * strict equality check (===). Duplicates are ignored.\n *\n * assert.includeMembers([ 1, 2, 3 ], [ 2, 1, 2 ], 'include members');\n *\n * @name includeMembers\n * @param {Array} superset\n * @param {Array} subset\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.includeMembers = function (superset, subset, msg) {\n new Assertion(superset, msg, assert.includeMembers, true)\n .to.include.members(subset);\n }\n\n /**\n * ### .notIncludeMembers(superset, subset, [message])\n *\n * Asserts that `subset` isn't included in `superset` in any order. Uses a\n * strict equality check (===). Duplicates are ignored.\n *\n * assert.notIncludeMembers([ 1, 2, 3 ], [ 5, 1 ], 'not include members');\n *\n * @name notIncludeMembers\n * @param {Array} superset\n * @param {Array} subset\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notIncludeMembers = function (superset, subset, msg) {\n new Assertion(superset, msg, assert.notIncludeMembers, true)\n .to.not.include.members(subset);\n }\n\n /**\n * ### .includeDeepMembers(superset, subset, [message])\n *\n * Asserts that `subset` is included in `superset` in any order. Uses a deep\n * equality check. Duplicates are ignored.\n *\n * assert.includeDeepMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { b: 2 }, { a: 1 }, { b: 2 } ], 'include deep members');\n *\n * @name includeDeepMembers\n * @param {Array} superset\n * @param {Array} subset\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.includeDeepMembers = function (superset, subset, msg) {\n new Assertion(superset, msg, assert.includeDeepMembers, true)\n .to.include.deep.members(subset);\n }\n\n /**\n * ### .notIncludeDeepMembers(superset, subset, [message])\n *\n * Asserts that `subset` isn't included in `superset` in any order. Uses a\n * deep equality check. Duplicates are ignored.\n *\n * assert.notIncludeDeepMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { b: 2 }, { f: 5 } ], 'not include deep members');\n *\n * @name notIncludeDeepMembers\n * @param {Array} superset\n * @param {Array} subset\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notIncludeDeepMembers = function (superset, subset, msg) {\n new Assertion(superset, msg, assert.notIncludeDeepMembers, true)\n .to.not.include.deep.members(subset);\n }\n\n /**\n * ### .includeOrderedMembers(superset, subset, [message])\n *\n * Asserts that `subset` is included in `superset` in the same order\n * beginning with the first element in `superset`. Uses a strict equality\n * check (===).\n *\n * assert.includeOrderedMembers([ 1, 2, 3 ], [ 1, 2 ], 'include ordered members');\n *\n * @name includeOrderedMembers\n * @param {Array} superset\n * @param {Array} subset\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.includeOrderedMembers = function (superset, subset, msg) {\n new Assertion(superset, msg, assert.includeOrderedMembers, true)\n .to.include.ordered.members(subset);\n }\n\n /**\n * ### .notIncludeOrderedMembers(superset, subset, [message])\n *\n * Asserts that `subset` isn't included in `superset` in the same order\n * beginning with the first element in `superset`. Uses a strict equality\n * check (===).\n *\n * assert.notIncludeOrderedMembers([ 1, 2, 3 ], [ 2, 1 ], 'not include ordered members');\n * assert.notIncludeOrderedMembers([ 1, 2, 3 ], [ 2, 3 ], 'not include ordered members');\n *\n * @name notIncludeOrderedMembers\n * @param {Array} superset\n * @param {Array} subset\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notIncludeOrderedMembers = function (superset, subset, msg) {\n new Assertion(superset, msg, assert.notIncludeOrderedMembers, true)\n .to.not.include.ordered.members(subset);\n }\n\n /**\n * ### .includeDeepOrderedMembers(superset, subset, [message])\n *\n * Asserts that `subset` is included in `superset` in the same order\n * beginning with the first element in `superset`. Uses a deep equality\n * check.\n *\n * assert.includeDeepOrderedMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { a: 1 }, { b: 2 } ], 'include deep ordered members');\n *\n * @name includeDeepOrderedMembers\n * @param {Array} superset\n * @param {Array} subset\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.includeDeepOrderedMembers = function (superset, subset, msg) {\n new Assertion(superset, msg, assert.includeDeepOrderedMembers, true)\n .to.include.deep.ordered.members(subset);\n }\n\n /**\n * ### .notIncludeDeepOrderedMembers(superset, subset, [message])\n *\n * Asserts that `subset` isn't included in `superset` in the same order\n * beginning with the first element in `superset`. Uses a deep equality\n * check.\n *\n * assert.notIncludeDeepOrderedMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { a: 1 }, { f: 5 } ], 'not include deep ordered members');\n * assert.notIncludeDeepOrderedMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { b: 2 }, { a: 1 } ], 'not include deep ordered members');\n * assert.notIncludeDeepOrderedMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { b: 2 }, { c: 3 } ], 'not include deep ordered members');\n *\n * @name notIncludeDeepOrderedMembers\n * @param {Array} superset\n * @param {Array} subset\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.notIncludeDeepOrderedMembers = function (superset, subset, msg) {\n new Assertion(superset, msg, assert.notIncludeDeepOrderedMembers, true)\n .to.not.include.deep.ordered.members(subset);\n }\n\n /**\n * ### .oneOf(inList, list, [message])\n *\n * Asserts that non-object, non-array value `inList` appears in the flat array `list`.\n *\n * assert.oneOf(1, [ 2, 1 ], 'Not found in list');\n *\n * @name oneOf\n * @param {*} inList\n * @param {Array<*>} list\n * @param {String} message\n * @namespace Assert\n * @api public\n */\n\n assert.oneOf = function (inList, list, msg) {\n new Assertion(inList, msg, assert.oneOf, true).to.be.oneOf(list);\n }\n\n /**\n * ### .changes(function, object, property, [message])\n *\n * Asserts that a function changes the value of a property.\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val = 22 };\n * assert.changes(fn, obj, 'val');\n *\n * @name changes\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.changes = function (fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === 'function') {\n msg = prop;\n prop = null;\n }\n\n new Assertion(fn, msg, assert.changes, true).to.change(obj, prop);\n }\n\n /**\n * ### .changesBy(function, object, property, delta, [message])\n *\n * Asserts that a function changes the value of a property by an amount (delta).\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val += 2 };\n * assert.changesBy(fn, obj, 'val', 2);\n *\n * @name changesBy\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {Number} change amount (delta)\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.changesBy = function (fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === 'function') {\n var tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n\n new Assertion(fn, msg, assert.changesBy, true)\n .to.change(obj, prop).by(delta);\n }\n\n /**\n * ### .doesNotChange(function, object, property, [message])\n *\n * Asserts that a function does not change the value of a property.\n *\n * var obj = { val: 10 };\n * var fn = function() { console.log('foo'); };\n * assert.doesNotChange(fn, obj, 'val');\n *\n * @name doesNotChange\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.doesNotChange = function (fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === 'function') {\n msg = prop;\n prop = null;\n }\n\n return new Assertion(fn, msg, assert.doesNotChange, true)\n .to.not.change(obj, prop);\n }\n\n /**\n * ### .changesButNotBy(function, object, property, delta, [message])\n *\n * Asserts that a function does not change the value of a property or of a function's return value by an amount (delta)\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val += 10 };\n * assert.changesButNotBy(fn, obj, 'val', 5);\n *\n * @name changesButNotBy\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {Number} change amount (delta)\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.changesButNotBy = function (fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === 'function') {\n var tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n\n new Assertion(fn, msg, assert.changesButNotBy, true)\n .to.change(obj, prop).but.not.by(delta);\n }\n\n /**\n * ### .increases(function, object, property, [message])\n *\n * Asserts that a function increases a numeric object property.\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val = 13 };\n * assert.increases(fn, obj, 'val');\n *\n * @name increases\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.increases = function (fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === 'function') {\n msg = prop;\n prop = null;\n }\n\n return new Assertion(fn, msg, assert.increases, true)\n .to.increase(obj, prop);\n }\n\n /**\n * ### .increasesBy(function, object, property, delta, [message])\n *\n * Asserts that a function increases a numeric object property or a function's return value by an amount (delta).\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val += 10 };\n * assert.increasesBy(fn, obj, 'val', 10);\n *\n * @name increasesBy\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {Number} change amount (delta)\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.increasesBy = function (fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === 'function') {\n var tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n\n new Assertion(fn, msg, assert.increasesBy, true)\n .to.increase(obj, prop).by(delta);\n }\n\n /**\n * ### .doesNotIncrease(function, object, property, [message])\n *\n * Asserts that a function does not increase a numeric object property.\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val = 8 };\n * assert.doesNotIncrease(fn, obj, 'val');\n *\n * @name doesNotIncrease\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.doesNotIncrease = function (fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === 'function') {\n msg = prop;\n prop = null;\n }\n\n return new Assertion(fn, msg, assert.doesNotIncrease, true)\n .to.not.increase(obj, prop);\n }\n\n /**\n * ### .increasesButNotBy(function, object, property, delta, [message])\n *\n * Asserts that a function does not increase a numeric object property or function's return value by an amount (delta).\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val = 15 };\n * assert.increasesButNotBy(fn, obj, 'val', 10);\n *\n * @name increasesButNotBy\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {Number} change amount (delta)\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.increasesButNotBy = function (fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === 'function') {\n var tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n\n new Assertion(fn, msg, assert.increasesButNotBy, true)\n .to.increase(obj, prop).but.not.by(delta);\n }\n\n /**\n * ### .decreases(function, object, property, [message])\n *\n * Asserts that a function decreases a numeric object property.\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val = 5 };\n * assert.decreases(fn, obj, 'val');\n *\n * @name decreases\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.decreases = function (fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === 'function') {\n msg = prop;\n prop = null;\n }\n\n return new Assertion(fn, msg, assert.decreases, true)\n .to.decrease(obj, prop);\n }\n\n /**\n * ### .decreasesBy(function, object, property, delta, [message])\n *\n * Asserts that a function decreases a numeric object property or a function's return value by an amount (delta)\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val -= 5 };\n * assert.decreasesBy(fn, obj, 'val', 5);\n *\n * @name decreasesBy\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {Number} change amount (delta)\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.decreasesBy = function (fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === 'function') {\n var tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n\n new Assertion(fn, msg, assert.decreasesBy, true)\n .to.decrease(obj, prop).by(delta);\n }\n\n /**\n * ### .doesNotDecrease(function, object, property, [message])\n *\n * Asserts that a function does not decreases a numeric object property.\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val = 15 };\n * assert.doesNotDecrease(fn, obj, 'val');\n *\n * @name doesNotDecrease\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.doesNotDecrease = function (fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === 'function') {\n msg = prop;\n prop = null;\n }\n\n return new Assertion(fn, msg, assert.doesNotDecrease, true)\n .to.not.decrease(obj, prop);\n }\n\n /**\n * ### .doesNotDecreaseBy(function, object, property, delta, [message])\n *\n * Asserts that a function does not decreases a numeric object property or a function's return value by an amount (delta)\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val = 5 };\n * assert.doesNotDecreaseBy(fn, obj, 'val', 1);\n *\n * @name doesNotDecreaseBy\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {Number} change amount (delta)\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.doesNotDecreaseBy = function (fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === 'function') {\n var tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n\n return new Assertion(fn, msg, assert.doesNotDecreaseBy, true)\n .to.not.decrease(obj, prop).by(delta);\n }\n\n /**\n * ### .decreasesButNotBy(function, object, property, delta, [message])\n *\n * Asserts that a function does not decreases a numeric object property or a function's return value by an amount (delta)\n *\n * var obj = { val: 10 };\n * var fn = function() { obj.val = 5 };\n * assert.decreasesButNotBy(fn, obj, 'val', 1);\n *\n * @name decreasesButNotBy\n * @param {Function} modifier function\n * @param {Object} object or getter function\n * @param {String} property name _optional_\n * @param {Number} change amount (delta)\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.decreasesButNotBy = function (fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === 'function') {\n var tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n\n new Assertion(fn, msg, assert.decreasesButNotBy, true)\n .to.decrease(obj, prop).but.not.by(delta);\n }\n\n /*!\n * ### .ifError(object)\n *\n * Asserts if value is not a false value, and throws if it is a true value.\n * This is added to allow for chai to be a drop-in replacement for Node's\n * assert class.\n *\n * var err = new Error('I am a custom error');\n * assert.ifError(err); // Rethrows err!\n *\n * @name ifError\n * @param {Object} object\n * @namespace Assert\n * @api public\n */\n\n assert.ifError = function (val) {\n if (val) {\n throw(val);\n }\n };\n\n /**\n * ### .isExtensible(object)\n *\n * Asserts that `object` is extensible (can have new properties added to it).\n *\n * assert.isExtensible({});\n *\n * @name isExtensible\n * @alias extensible\n * @param {Object} object\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.isExtensible = function (obj, msg) {\n new Assertion(obj, msg, assert.isExtensible, true).to.be.extensible;\n };\n\n /**\n * ### .isNotExtensible(object)\n *\n * Asserts that `object` is _not_ extensible.\n *\n * var nonExtensibleObject = Object.preventExtensions({});\n * var sealedObject = Object.seal({});\n * var frozenObject = Object.freeze({});\n *\n * assert.isNotExtensible(nonExtensibleObject);\n * assert.isNotExtensible(sealedObject);\n * assert.isNotExtensible(frozenObject);\n *\n * @name isNotExtensible\n * @alias notExtensible\n * @param {Object} object\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.isNotExtensible = function (obj, msg) {\n new Assertion(obj, msg, assert.isNotExtensible, true).to.not.be.extensible;\n };\n\n /**\n * ### .isSealed(object)\n *\n * Asserts that `object` is sealed (cannot have new properties added to it\n * and its existing properties cannot be removed).\n *\n * var sealedObject = Object.seal({});\n * var frozenObject = Object.seal({});\n *\n * assert.isSealed(sealedObject);\n * assert.isSealed(frozenObject);\n *\n * @name isSealed\n * @alias sealed\n * @param {Object} object\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.isSealed = function (obj, msg) {\n new Assertion(obj, msg, assert.isSealed, true).to.be.sealed;\n };\n\n /**\n * ### .isNotSealed(object)\n *\n * Asserts that `object` is _not_ sealed.\n *\n * assert.isNotSealed({});\n *\n * @name isNotSealed\n * @alias notSealed\n * @param {Object} object\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.isNotSealed = function (obj, msg) {\n new Assertion(obj, msg, assert.isNotSealed, true).to.not.be.sealed;\n };\n\n /**\n * ### .isFrozen(object)\n *\n * Asserts that `object` is frozen (cannot have new properties added to it\n * and its existing properties cannot be modified).\n *\n * var frozenObject = Object.freeze({});\n * assert.frozen(frozenObject);\n *\n * @name isFrozen\n * @alias frozen\n * @param {Object} object\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.isFrozen = function (obj, msg) {\n new Assertion(obj, msg, assert.isFrozen, true).to.be.frozen;\n };\n\n /**\n * ### .isNotFrozen(object)\n *\n * Asserts that `object` is _not_ frozen.\n *\n * assert.isNotFrozen({});\n *\n * @name isNotFrozen\n * @alias notFrozen\n * @param {Object} object\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.isNotFrozen = function (obj, msg) {\n new Assertion(obj, msg, assert.isNotFrozen, true).to.not.be.frozen;\n };\n\n /**\n * ### .isEmpty(target)\n *\n * Asserts that the target does not contain any values.\n * For arrays and strings, it checks the `length` property.\n * For `Map` and `Set` instances, it checks the `size` property.\n * For non-function objects, it gets the count of own\n * enumerable string keys.\n *\n * assert.isEmpty([]);\n * assert.isEmpty('');\n * assert.isEmpty(new Map);\n * assert.isEmpty({});\n *\n * @name isEmpty\n * @alias empty\n * @param {Object|Array|String|Map|Set} target\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.isEmpty = function(val, msg) {\n new Assertion(val, msg, assert.isEmpty, true).to.be.empty;\n };\n\n /**\n * ### .isNotEmpty(target)\n *\n * Asserts that the target contains values.\n * For arrays and strings, it checks the `length` property.\n * For `Map` and `Set` instances, it checks the `size` property.\n * For non-function objects, it gets the count of own\n * enumerable string keys.\n *\n * assert.isNotEmpty([1, 2]);\n * assert.isNotEmpty('34');\n * assert.isNotEmpty(new Set([5, 6]));\n * assert.isNotEmpty({ key: 7 });\n *\n * @name isNotEmpty\n * @alias notEmpty\n * @param {Object|Array|String|Map|Set} target\n * @param {String} message _optional_\n * @namespace Assert\n * @api public\n */\n\n assert.isNotEmpty = function(val, msg) {\n new Assertion(val, msg, assert.isNotEmpty, true).to.not.be.empty;\n };\n\n /*!\n * Aliases.\n */\n\n (function alias(name, as){\n assert[as] = assert[name];\n return alias;\n })\n ('isOk', 'ok')\n ('isNotOk', 'notOk')\n ('throws', 'throw')\n ('throws', 'Throw')\n ('isExtensible', 'extensible')\n ('isNotExtensible', 'notExtensible')\n ('isSealed', 'sealed')\n ('isNotSealed', 'notSealed')\n ('isFrozen', 'frozen')\n ('isNotFrozen', 'notFrozen')\n ('isEmpty', 'empty')\n ('isNotEmpty', 'notEmpty');\n};\n","/*!\n * chai\n * Copyright(c) 2011-2014 Jake Luer \n * MIT Licensed\n */\n\nvar used = [];\n\n/*!\n * Chai version\n */\n\nexports.version = '4.3.3';\n\n/*!\n * Assertion Error\n */\n\nexports.AssertionError = require('assertion-error');\n\n/*!\n * Utils for plugins (not exported)\n */\n\nvar util = require('./chai/utils');\n\n/**\n * # .use(function)\n *\n * Provides a way to extend the internals of Chai.\n *\n * @param {Function}\n * @returns {this} for chaining\n * @api public\n */\n\nexports.use = function (fn) {\n if (!~used.indexOf(fn)) {\n fn(exports, util);\n used.push(fn);\n }\n\n return exports;\n};\n\n/*!\n * Utility Functions\n */\n\nexports.util = util;\n\n/*!\n * Configuration\n */\n\nvar config = require('./chai/config');\nexports.config = config;\n\n/*!\n * Primary `Assertion` prototype\n */\n\nvar assertion = require('./chai/assertion');\nexports.use(assertion);\n\n/*!\n * Core Assertions\n */\n\nvar core = require('./chai/core/assertions');\nexports.use(core);\n\n/*!\n * Expect interface\n */\n\nvar expect = require('./chai/interface/expect');\nexports.use(expect);\n\n/*!\n * Should interface\n */\n\nvar should = require('./chai/interface/should');\nexports.use(should);\n\n/*!\n * Assert interface\n */\n\nvar assert = require('./chai/interface/assert');\nexports.use(assert);\n","module.exports = require('./lib/chai');\n","import chai from './index.js';\n\nexport const expect = chai.expect;\nexport const version = chai.version;\nexport const Assertion = chai.Assertion;\nexport const AssertionError = chai.AssertionError;\nexport const util = chai.util;\nexport const config = chai.config;\nexport const use = chai.use;\nexport const should = chai.should;\nexport const assert = chai.assert;\nexport const core = chai.core;\n\nexport default chai;\n","var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport { commonjsGlobal as c };\n","// src/utils.ts\nfunction R(e, t) {\n if (!e)\n throw new Error(t);\n}\nfunction i(e, t) {\n return typeof t === e;\n}\nfunction b(e) {\n return e instanceof Promise;\n}\nfunction g(e, t, n) {\n Object.defineProperty(e, t, n);\n}\nfunction l(e, t, n) {\n Object.defineProperty(e, t, { value: n });\n}\n\n// src/constants.ts\nvar y = Symbol.for(\"tinyspy:spy\");\n\n// src/internal.ts\nvar m = /* @__PURE__ */ new Set(), M = (e) => {\n e.called = !1, e.callCount = 0, e.calls = [], e.results = [];\n}, C = (e) => (g(e, y, { value: { reset: () => M(e[y]) } }), e[y]), A = (e) => e[y] || C(e);\nfunction I(e) {\n R(i(\"function\", e) || i(\"undefined\", e), \"cannot spy on a non-function value\");\n let t = function(...o) {\n let r = A(t);\n if (r.called = !0, r.callCount++, r.calls.push(o), r.next) {\n let [p, s] = r.next;\n if (r.results.push(r.next), r.next = null, p === \"ok\")\n return s;\n throw s;\n }\n let a, f = \"ok\";\n if (r.impl)\n try {\n a = r.impl.apply(this, o), f = \"ok\";\n } catch (p) {\n throw a = p, f = \"error\", r.results.push([f, p]), p;\n }\n let u = [f, a];\n if (b(a)) {\n let p = a.then((s) => u[1] = s).catch((s) => {\n throw u[0] = \"error\", u[1] = s, s;\n });\n Object.assign(p, a), a = p;\n }\n return r.results.push(u), a;\n };\n l(t, \"_isMockFunction\", !0), l(t, \"length\", e ? e.length : 0), l(t, \"name\", e && e.name || \"spy\");\n let n = A(t);\n return n.reset(), n.impl = e, t;\n}\nfunction v(e) {\n let t = A(e);\n g(e, \"returns\", {\n get: () => t.results.map(([, n]) => n)\n }), [\"called\", \"callCount\", \"results\", \"calls\", \"reset\", \"impl\"].forEach((n) => g(e, n, { get: () => t[n], set: (o) => t[n] = o })), l(e, \"nextError\", (n) => (t.next = [\"error\", n], t)), l(e, \"nextResult\", (n) => (t.next = [\"ok\", n], t));\n}\n\n// src/spy.ts\nfunction z(e) {\n let t = I(e);\n return v(t), t;\n}\n\n// src/spyOn.ts\nvar P = (e, t) => Object.getOwnPropertyDescriptor(e, t);\nfunction E(e, t, n) {\n R(!i(\"undefined\", e), \"spyOn could not find an object to spy upon\"), R(i(\"object\", e) || i(\"function\", e), \"cannot spyOn on a primitive value\");\n let o = () => {\n if (!i(\"object\", t))\n return [t, \"value\"];\n if (\"getter\" in t && \"setter\" in t)\n throw new Error(\"cannot spy on both getter and setter\");\n if (\"getter\" in t)\n return [t.getter, \"get\"];\n if (\"setter\" in t)\n return [t.setter, \"set\"];\n throw new Error(\"specify getter or setter to spy on\");\n }, [r, a] = o(), f = P(e, r), u = Object.getPrototypeOf(e), p = u && P(u, r), s = f || p;\n R(s || r in e, `${String(r)} does not exist`);\n let w = !1;\n a === \"value\" && s && !s.value && s.get && (a = \"get\", w = !0, n = s.get());\n let c;\n s ? c = s[a] : a !== \"value\" ? c = () => e[r] : c = e[r], n || (n = c);\n let d = I(n), O = (h) => {\n let { value: G, ...k } = s || {\n configurable: !0,\n writable: !0\n };\n a !== \"value\" && delete k.writable, k[a] = h, g(e, r, k);\n }, K = () => O(c), T = d[y];\n return l(T, \"restore\", K), l(T, \"getOriginal\", () => w ? c() : c), l(T, \"willCall\", (h) => (T.impl = h, d)), O(w ? () => d : d), m.add(d), d;\n}\nfunction W(e, t, n) {\n let o = E(e, t, n);\n return v(o), [\"restore\", \"getOriginal\", \"willCall\"].forEach((r) => {\n l(o, r, o[y][r]);\n }), o;\n}\n\n// src/restoreAll.ts\nfunction Z() {\n for (let e of m)\n e.restore();\n m.clear();\n}\nexport {\n I as createInternalSpy,\n A as getInternalState,\n E as internalSpyOn,\n Z as restoreAll,\n m as spies,\n z as spy,\n W as spyOn\n};\n","import * as tinyspy from 'tinyspy';\n\nconst spies = /* @__PURE__ */ new Set();\nfunction isMockFunction(fn2) {\n return typeof fn2 === \"function\" && \"_isMockFunction\" in fn2 && fn2._isMockFunction;\n}\nfunction spyOn(obj, method, accessType) {\n const dictionary = {\n get: \"getter\",\n set: \"setter\"\n };\n const objMethod = accessType ? { [dictionary[accessType]]: method } : method;\n const stub = tinyspy.internalSpyOn(obj, objMethod);\n return enhanceSpy(stub);\n}\nlet callOrder = 0;\nfunction enhanceSpy(spy) {\n const stub = spy;\n let implementation;\n let instances = [];\n let invocations = [];\n const state = tinyspy.getInternalState(spy);\n const mockContext = {\n get calls() {\n return state.calls;\n },\n get instances() {\n return instances;\n },\n get invocationCallOrder() {\n return invocations;\n },\n get results() {\n return state.results.map(([callType, value]) => {\n const type = callType === \"error\" ? \"throw\" : \"return\";\n return { type, value };\n });\n },\n get lastCall() {\n return state.calls[state.calls.length - 1];\n }\n };\n let onceImplementations = [];\n let implementationChangedTemporarily = false;\n let name = stub.name;\n stub.getMockName = () => name || \"vi.fn()\";\n stub.mockName = (n) => {\n name = n;\n return stub;\n };\n stub.mockClear = () => {\n state.reset();\n instances = [];\n invocations = [];\n return stub;\n };\n stub.mockReset = () => {\n stub.mockClear();\n implementation = () => void 0;\n onceImplementations = [];\n return stub;\n };\n stub.mockRestore = () => {\n stub.mockReset();\n implementation = void 0;\n return stub;\n };\n stub.getMockImplementation = () => implementation;\n stub.mockImplementation = (fn2) => {\n implementation = fn2;\n return stub;\n };\n stub.mockImplementationOnce = (fn2) => {\n onceImplementations.push(fn2);\n return stub;\n };\n function withImplementation(fn2, cb) {\n const originalImplementation = implementation;\n implementation = fn2;\n implementationChangedTemporarily = true;\n const reset = () => {\n implementation = originalImplementation;\n implementationChangedTemporarily = false;\n };\n const result = cb();\n if (result instanceof Promise) {\n return result.then(() => {\n reset();\n return stub;\n });\n }\n reset();\n return stub;\n }\n stub.withImplementation = withImplementation;\n stub.mockReturnThis = () => stub.mockImplementation(function() {\n return this;\n });\n stub.mockReturnValue = (val) => stub.mockImplementation(() => val);\n stub.mockReturnValueOnce = (val) => stub.mockImplementationOnce(() => val);\n stub.mockResolvedValue = (val) => stub.mockImplementation(() => Promise.resolve(val));\n stub.mockResolvedValueOnce = (val) => stub.mockImplementationOnce(() => Promise.resolve(val));\n stub.mockRejectedValue = (val) => stub.mockImplementation(() => Promise.reject(val));\n stub.mockRejectedValueOnce = (val) => stub.mockImplementationOnce(() => Promise.reject(val));\n Object.defineProperty(stub, \"mock\", {\n get: () => mockContext\n });\n state.willCall(function(...args) {\n instances.push(this);\n invocations.push(++callOrder);\n const impl = implementationChangedTemporarily ? implementation : onceImplementations.shift() || implementation || state.getOriginal() || (() => {\n });\n return impl.apply(this, args);\n });\n spies.add(stub);\n return stub;\n}\nfunction fn(implementation) {\n return enhanceSpy(tinyspy.internalSpyOn({ fn: implementation || (() => {\n }) }, \"fn\"));\n}\n\nexport { fn, isMockFunction, spies, spyOn };\n","import { getColors, stringify, isObject, assertTypes } from '@vitest/utils';\nexport { setupColors } from '@vitest/utils';\nimport { unifiedDiff } from '@vitest/utils/diff';\nimport { AssertionError, util } from 'chai';\nimport { isMockFunction } from '@vitest/spy';\n\nconst MATCHERS_OBJECT = Symbol.for(\"matchers-object\");\nconst JEST_MATCHERS_OBJECT = Symbol.for(\"$$jest-matchers-object\");\nconst GLOBAL_EXPECT = Symbol.for(\"expect-global\");\n\nif (!Object.prototype.hasOwnProperty.call(globalThis, MATCHERS_OBJECT)) {\n const globalState = /* @__PURE__ */ new WeakMap();\n const matchers = /* @__PURE__ */ Object.create(null);\n Object.defineProperty(globalThis, MATCHERS_OBJECT, {\n get: () => globalState\n });\n Object.defineProperty(globalThis, JEST_MATCHERS_OBJECT, {\n configurable: true,\n get: () => ({\n state: globalState.get(globalThis[GLOBAL_EXPECT]),\n matchers\n })\n });\n}\nfunction getState(expect) {\n return globalThis[MATCHERS_OBJECT].get(expect);\n}\nfunction setState(state, expect) {\n const map = globalThis[MATCHERS_OBJECT];\n const current = map.get(expect) || {};\n Object.assign(current, state);\n map.set(expect, current);\n}\n\nfunction getMatcherUtils() {\n const c = () => getColors();\n const EXPECTED_COLOR = c().green;\n const RECEIVED_COLOR = c().red;\n const INVERTED_COLOR = c().inverse;\n const BOLD_WEIGHT = c().bold;\n const DIM_COLOR = c().dim;\n function matcherHint(matcherName, received = \"received\", expected = \"expected\", options = {}) {\n const {\n comment = \"\",\n isDirectExpectCall = false,\n // seems redundant with received === ''\n isNot = false,\n promise = \"\",\n secondArgument = \"\",\n expectedColor = EXPECTED_COLOR,\n receivedColor = RECEIVED_COLOR,\n secondArgumentColor = EXPECTED_COLOR\n } = options;\n let hint = \"\";\n let dimString = \"expect\";\n if (!isDirectExpectCall && received !== \"\") {\n hint += DIM_COLOR(`${dimString}(`) + receivedColor(received);\n dimString = \")\";\n }\n if (promise !== \"\") {\n hint += DIM_COLOR(`${dimString}.`) + promise;\n dimString = \"\";\n }\n if (isNot) {\n hint += `${DIM_COLOR(`${dimString}.`)}not`;\n dimString = \"\";\n }\n if (matcherName.includes(\".\")) {\n dimString += matcherName;\n } else {\n hint += DIM_COLOR(`${dimString}.`) + matcherName;\n dimString = \"\";\n }\n if (expected === \"\") {\n dimString += \"()\";\n } else {\n hint += DIM_COLOR(`${dimString}(`) + expectedColor(expected);\n if (secondArgument)\n hint += DIM_COLOR(\", \") + secondArgumentColor(secondArgument);\n dimString = \")\";\n }\n if (comment !== \"\")\n dimString += ` // ${comment}`;\n if (dimString !== \"\")\n hint += DIM_COLOR(dimString);\n return hint;\n }\n const SPACE_SYMBOL = \"\\xB7\";\n const replaceTrailingSpaces = (text) => text.replace(/\\s+$/gm, (spaces) => SPACE_SYMBOL.repeat(spaces.length));\n const printReceived = (object) => RECEIVED_COLOR(replaceTrailingSpaces(stringify(object)));\n const printExpected = (value) => EXPECTED_COLOR(replaceTrailingSpaces(stringify(value)));\n return {\n EXPECTED_COLOR,\n RECEIVED_COLOR,\n INVERTED_COLOR,\n BOLD_WEIGHT,\n DIM_COLOR,\n matcherHint,\n printReceived,\n printExpected\n };\n}\nfunction diff(a, b, options) {\n return unifiedDiff(b, a, {\n showLegend: options == null ? void 0 : options.showLegend\n });\n}\n\nfunction equals(a, b, customTesters, strictCheck) {\n customTesters = customTesters || [];\n return eq(a, b, [], [], customTesters, strictCheck ? hasKey : hasDefinedKey);\n}\nconst functionToString = Function.prototype.toString;\nfunction isAsymmetric(obj) {\n return !!obj && typeof obj === \"object\" && \"asymmetricMatch\" in obj && isA(\"Function\", obj.asymmetricMatch);\n}\nfunction hasAsymmetric(obj, seen = /* @__PURE__ */ new Set()) {\n if (seen.has(obj))\n return false;\n seen.add(obj);\n if (isAsymmetric(obj))\n return true;\n if (Array.isArray(obj))\n return obj.some((i) => hasAsymmetric(i, seen));\n if (obj instanceof Set)\n return Array.from(obj).some((i) => hasAsymmetric(i, seen));\n if (isObject(obj))\n return Object.values(obj).some((v) => hasAsymmetric(v, seen));\n return false;\n}\nfunction asymmetricMatch(a, b) {\n const asymmetricA = isAsymmetric(a);\n const asymmetricB = isAsymmetric(b);\n if (asymmetricA && asymmetricB)\n return void 0;\n if (asymmetricA)\n return a.asymmetricMatch(b);\n if (asymmetricB)\n return b.asymmetricMatch(a);\n}\nfunction eq(a, b, aStack, bStack, customTesters, hasKey2) {\n let result = true;\n const asymmetricResult = asymmetricMatch(a, b);\n if (asymmetricResult !== void 0)\n return asymmetricResult;\n for (let i = 0; i < customTesters.length; i++) {\n const customTesterResult = customTesters[i](a, b);\n if (customTesterResult !== void 0)\n return customTesterResult;\n }\n if (a instanceof Error && b instanceof Error)\n return a.message === b.message;\n if (Object.is(a, b))\n return true;\n if (a === null || b === null)\n return a === b;\n const className = Object.prototype.toString.call(a);\n if (className !== Object.prototype.toString.call(b))\n return false;\n switch (className) {\n case \"[object Boolean]\":\n case \"[object String]\":\n case \"[object Number]\":\n if (typeof a !== typeof b) {\n return false;\n } else if (typeof a !== \"object\" && typeof b !== \"object\") {\n return Object.is(a, b);\n } else {\n return Object.is(a.valueOf(), b.valueOf());\n }\n case \"[object Date]\":\n return isNaN(a) && isNaN(b) || +a === +b;\n case \"[object RegExp]\":\n return a.source === b.source && a.flags === b.flags;\n }\n if (typeof a !== \"object\" || typeof b !== \"object\")\n return false;\n if (isDomNode(a) && isDomNode(b))\n return a.isEqualNode(b);\n let length = aStack.length;\n while (length--) {\n if (aStack[length] === a)\n return bStack[length] === b;\n else if (bStack[length] === b)\n return false;\n }\n aStack.push(a);\n bStack.push(b);\n if (className === \"[object Array]\" && a.length !== b.length)\n return false;\n const aKeys = keys(a, hasKey2);\n let key;\n let size = aKeys.length;\n if (keys(b, hasKey2).length !== size)\n return false;\n while (size--) {\n key = aKeys[size];\n result = hasKey2(b, key) && eq(a[key], b[key], aStack, bStack, customTesters, hasKey2);\n if (!result)\n return false;\n }\n aStack.pop();\n bStack.pop();\n return result;\n}\nfunction keys(obj, hasKey2) {\n const keys2 = [];\n for (const key in obj) {\n if (hasKey2(obj, key))\n keys2.push(key);\n }\n return keys2.concat(\n Object.getOwnPropertySymbols(obj).filter(\n (symbol) => Object.getOwnPropertyDescriptor(obj, symbol).enumerable\n )\n );\n}\nfunction hasDefinedKey(obj, key) {\n return hasKey(obj, key) && obj[key] !== void 0;\n}\nfunction hasKey(obj, key) {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\nfunction isA(typeName, value) {\n return Object.prototype.toString.apply(value) === `[object ${typeName}]`;\n}\nfunction isDomNode(obj) {\n return obj !== null && typeof obj === \"object\" && typeof obj.nodeType === \"number\" && typeof obj.nodeName === \"string\" && typeof obj.isEqualNode === \"function\";\n}\nfunction fnNameFor(func) {\n if (func.name)\n return func.name;\n const matches = functionToString.call(func).match(/^(?:async)?\\s*function\\s*\\*?\\s*([\\w$]+)\\s*\\(/);\n return matches ? matches[1] : \"\";\n}\nfunction getPrototype(obj) {\n if (Object.getPrototypeOf)\n return Object.getPrototypeOf(obj);\n if (obj.constructor.prototype === obj)\n return null;\n return obj.constructor.prototype;\n}\nfunction hasProperty(obj, property) {\n if (!obj)\n return false;\n if (Object.prototype.hasOwnProperty.call(obj, property))\n return true;\n return hasProperty(getPrototype(obj), property);\n}\nconst IS_KEYED_SENTINEL = \"@@__IMMUTABLE_KEYED__@@\";\nconst IS_SET_SENTINEL = \"@@__IMMUTABLE_SET__@@\";\nconst IS_ORDERED_SENTINEL = \"@@__IMMUTABLE_ORDERED__@@\";\nfunction isImmutableUnorderedKeyed(maybeKeyed) {\n return !!(maybeKeyed && maybeKeyed[IS_KEYED_SENTINEL] && !maybeKeyed[IS_ORDERED_SENTINEL]);\n}\nfunction isImmutableUnorderedSet(maybeSet) {\n return !!(maybeSet && maybeSet[IS_SET_SENTINEL] && !maybeSet[IS_ORDERED_SENTINEL]);\n}\nconst IteratorSymbol = Symbol.iterator;\nfunction hasIterator(object) {\n return !!(object != null && object[IteratorSymbol]);\n}\nfunction iterableEquality(a, b, aStack = [], bStack = []) {\n if (typeof a !== \"object\" || typeof b !== \"object\" || Array.isArray(a) || Array.isArray(b) || !hasIterator(a) || !hasIterator(b))\n return void 0;\n if (a.constructor !== b.constructor)\n return false;\n let length = aStack.length;\n while (length--) {\n if (aStack[length] === a)\n return bStack[length] === b;\n }\n aStack.push(a);\n bStack.push(b);\n const iterableEqualityWithStack = (a2, b2) => iterableEquality(a2, b2, [...aStack], [...bStack]);\n if (a.size !== void 0) {\n if (a.size !== b.size) {\n return false;\n } else if (isA(\"Set\", a) || isImmutableUnorderedSet(a)) {\n let allFound = true;\n for (const aValue of a) {\n if (!b.has(aValue)) {\n let has = false;\n for (const bValue of b) {\n const isEqual = equals(aValue, bValue, [iterableEqualityWithStack]);\n if (isEqual === true)\n has = true;\n }\n if (has === false) {\n allFound = false;\n break;\n }\n }\n }\n aStack.pop();\n bStack.pop();\n return allFound;\n } else if (isA(\"Map\", a) || isImmutableUnorderedKeyed(a)) {\n let allFound = true;\n for (const aEntry of a) {\n if (!b.has(aEntry[0]) || !equals(aEntry[1], b.get(aEntry[0]), [iterableEqualityWithStack])) {\n let has = false;\n for (const bEntry of b) {\n const matchedKey = equals(aEntry[0], bEntry[0], [\n iterableEqualityWithStack\n ]);\n let matchedValue = false;\n if (matchedKey === true) {\n matchedValue = equals(aEntry[1], bEntry[1], [\n iterableEqualityWithStack\n ]);\n }\n if (matchedValue === true)\n has = true;\n }\n if (has === false) {\n allFound = false;\n break;\n }\n }\n }\n aStack.pop();\n bStack.pop();\n return allFound;\n }\n }\n const bIterator = b[IteratorSymbol]();\n for (const aValue of a) {\n const nextB = bIterator.next();\n if (nextB.done || !equals(aValue, nextB.value, [iterableEqualityWithStack]))\n return false;\n }\n if (!bIterator.next().done)\n return false;\n aStack.pop();\n bStack.pop();\n return true;\n}\nfunction hasPropertyInObject(object, key) {\n const shouldTerminate = !object || typeof object !== \"object\" || object === Object.prototype;\n if (shouldTerminate)\n return false;\n return Object.prototype.hasOwnProperty.call(object, key) || hasPropertyInObject(Object.getPrototypeOf(object), key);\n}\nfunction isObjectWithKeys(a) {\n return isObject(a) && !(a instanceof Error) && !Array.isArray(a) && !(a instanceof Date);\n}\nfunction subsetEquality(object, subset) {\n const subsetEqualityWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => (object2, subset2) => {\n if (!isObjectWithKeys(subset2))\n return void 0;\n return Object.keys(subset2).every((key) => {\n if (isObjectWithKeys(subset2[key])) {\n if (seenReferences.has(subset2[key]))\n return equals(object2[key], subset2[key], [iterableEquality]);\n seenReferences.set(subset2[key], true);\n }\n const result = object2 != null && hasPropertyInObject(object2, key) && equals(object2[key], subset2[key], [\n iterableEquality,\n subsetEqualityWithContext(seenReferences)\n ]);\n seenReferences.delete(subset2[key]);\n return result;\n });\n };\n return subsetEqualityWithContext()(object, subset);\n}\nfunction typeEquality(a, b) {\n if (a == null || b == null || a.constructor === b.constructor)\n return void 0;\n return false;\n}\nfunction arrayBufferEquality(a, b) {\n if (!(a instanceof ArrayBuffer) || !(b instanceof ArrayBuffer))\n return void 0;\n const dataViewA = new DataView(a);\n const dataViewB = new DataView(b);\n if (dataViewA.byteLength !== dataViewB.byteLength)\n return false;\n for (let i = 0; i < dataViewA.byteLength; i++) {\n if (dataViewA.getUint8(i) !== dataViewB.getUint8(i))\n return false;\n }\n return true;\n}\nfunction sparseArrayEquality(a, b) {\n if (!Array.isArray(a) || !Array.isArray(b))\n return void 0;\n const aKeys = Object.keys(a);\n const bKeys = Object.keys(b);\n return equals(a, b, [iterableEquality, typeEquality], true) && equals(aKeys, bKeys);\n}\nfunction generateToBeMessage(deepEqualityName, expected = \"#{this}\", actual = \"#{exp}\") {\n const toBeMessage = `expected ${expected} to be ${actual} // Object.is equality`;\n if ([\"toStrictEqual\", \"toEqual\"].includes(deepEqualityName))\n return `${toBeMessage}\n\nIf it should pass with deep equality, replace \"toBe\" with \"${deepEqualityName}\"\n\nExpected: ${expected}\nReceived: serializes to the same string\n`;\n return toBeMessage;\n}\n\nclass AsymmetricMatcher {\n constructor(sample, inverse = false) {\n this.sample = sample;\n this.inverse = inverse;\n // should have \"jest\" to be compatible with its ecosystem\n this.$$typeof = Symbol.for(\"jest.asymmetricMatcher\");\n }\n getMatcherContext(expect) {\n return {\n ...getState(expect || globalThis[GLOBAL_EXPECT]),\n equals,\n isNot: this.inverse,\n utils: {\n ...getMatcherUtils(),\n diff,\n stringify,\n iterableEquality,\n subsetEquality\n }\n };\n }\n}\nclass StringContaining extends AsymmetricMatcher {\n constructor(sample, inverse = false) {\n if (!isA(\"String\", sample))\n throw new Error(\"Expected is not a string\");\n super(sample, inverse);\n }\n asymmetricMatch(other) {\n const result = isA(\"String\", other) && other.includes(this.sample);\n return this.inverse ? !result : result;\n }\n toString() {\n return `String${this.inverse ? \"Not\" : \"\"}Containing`;\n }\n getExpectedType() {\n return \"string\";\n }\n}\nclass Anything extends AsymmetricMatcher {\n asymmetricMatch(other) {\n return other != null;\n }\n toString() {\n return \"Anything\";\n }\n toAsymmetricMatcher() {\n return \"Anything\";\n }\n}\nclass ObjectContaining extends AsymmetricMatcher {\n constructor(sample, inverse = false) {\n super(sample, inverse);\n }\n getPrototype(obj) {\n if (Object.getPrototypeOf)\n return Object.getPrototypeOf(obj);\n if (obj.constructor.prototype === obj)\n return null;\n return obj.constructor.prototype;\n }\n hasProperty(obj, property) {\n if (!obj)\n return false;\n if (Object.prototype.hasOwnProperty.call(obj, property))\n return true;\n return this.hasProperty(this.getPrototype(obj), property);\n }\n asymmetricMatch(other) {\n if (typeof this.sample !== \"object\") {\n throw new TypeError(\n `You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`\n );\n }\n let result = true;\n for (const property in this.sample) {\n if (!this.hasProperty(other, property) || !equals(this.sample[property], other[property])) {\n result = false;\n break;\n }\n }\n return this.inverse ? !result : result;\n }\n toString() {\n return `Object${this.inverse ? \"Not\" : \"\"}Containing`;\n }\n getExpectedType() {\n return \"object\";\n }\n}\nclass ArrayContaining extends AsymmetricMatcher {\n constructor(sample, inverse = false) {\n super(sample, inverse);\n }\n asymmetricMatch(other) {\n if (!Array.isArray(this.sample)) {\n throw new TypeError(\n `You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`\n );\n }\n const result = this.sample.length === 0 || Array.isArray(other) && this.sample.every(\n (item) => other.some((another) => equals(item, another))\n );\n return this.inverse ? !result : result;\n }\n toString() {\n return `Array${this.inverse ? \"Not\" : \"\"}Containing`;\n }\n getExpectedType() {\n return \"array\";\n }\n}\nclass Any extends AsymmetricMatcher {\n constructor(sample) {\n if (typeof sample === \"undefined\") {\n throw new TypeError(\n \"any() expects to be passed a constructor function. Please pass one or use anything() to match any object.\"\n );\n }\n super(sample);\n }\n fnNameFor(func) {\n if (func.name)\n return func.name;\n const functionToString = Function.prototype.toString;\n const matches = functionToString.call(func).match(/^(?:async)?\\s*function\\s*\\*?\\s*([\\w$]+)\\s*\\(/);\n return matches ? matches[1] : \"\";\n }\n asymmetricMatch(other) {\n if (this.sample === String)\n return typeof other == \"string\" || other instanceof String;\n if (this.sample === Number)\n return typeof other == \"number\" || other instanceof Number;\n if (this.sample === Function)\n return typeof other == \"function\" || other instanceof Function;\n if (this.sample === Boolean)\n return typeof other == \"boolean\" || other instanceof Boolean;\n if (this.sample === BigInt)\n return typeof other == \"bigint\" || other instanceof BigInt;\n if (this.sample === Symbol)\n return typeof other == \"symbol\" || other instanceof Symbol;\n if (this.sample === Object)\n return typeof other == \"object\";\n return other instanceof this.sample;\n }\n toString() {\n return \"Any\";\n }\n getExpectedType() {\n if (this.sample === String)\n return \"string\";\n if (this.sample === Number)\n return \"number\";\n if (this.sample === Function)\n return \"function\";\n if (this.sample === Object)\n return \"object\";\n if (this.sample === Boolean)\n return \"boolean\";\n return this.fnNameFor(this.sample);\n }\n toAsymmetricMatcher() {\n return `Any<${this.fnNameFor(this.sample)}>`;\n }\n}\nclass StringMatching extends AsymmetricMatcher {\n constructor(sample, inverse = false) {\n if (!isA(\"String\", sample) && !isA(\"RegExp\", sample))\n throw new Error(\"Expected is not a String or a RegExp\");\n super(new RegExp(sample), inverse);\n }\n asymmetricMatch(other) {\n const result = isA(\"String\", other) && this.sample.test(other);\n return this.inverse ? !result : result;\n }\n toString() {\n return `String${this.inverse ? \"Not\" : \"\"}Matching`;\n }\n getExpectedType() {\n return \"string\";\n }\n}\nconst JestAsymmetricMatchers = (chai, utils) => {\n utils.addMethod(\n chai.expect,\n \"anything\",\n () => new Anything()\n );\n utils.addMethod(\n chai.expect,\n \"any\",\n (expected) => new Any(expected)\n );\n utils.addMethod(\n chai.expect,\n \"stringContaining\",\n (expected) => new StringContaining(expected)\n );\n utils.addMethod(\n chai.expect,\n \"objectContaining\",\n (expected) => new ObjectContaining(expected)\n );\n utils.addMethod(\n chai.expect,\n \"arrayContaining\",\n (expected) => new ArrayContaining(expected)\n );\n utils.addMethod(\n chai.expect,\n \"stringMatching\",\n (expected) => new StringMatching(expected)\n );\n chai.expect.not = {\n stringContaining: (expected) => new StringContaining(expected, true),\n objectContaining: (expected) => new ObjectContaining(expected, true),\n arrayContaining: (expected) => new ArrayContaining(expected, true),\n stringMatching: (expected) => new StringMatching(expected, true)\n };\n};\n\nfunction recordAsyncExpect(test, promise) {\n if (test) {\n promise = promise.finally(() => {\n const index = test.promises.indexOf(promise);\n if (index !== -1)\n test.promises.splice(index, 1);\n });\n if (!test.promises)\n test.promises = [];\n test.promises.push(promise);\n }\n return promise;\n}\n\nconst JestChaiExpect = (chai, utils) => {\n const c = () => getColors();\n function def(name, fn) {\n const addMethod = (n) => {\n utils.addMethod(chai.Assertion.prototype, n, fn);\n utils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers, n, fn);\n };\n if (Array.isArray(name))\n name.forEach((n) => addMethod(n));\n else\n addMethod(name);\n }\n [\"throw\", \"throws\", \"Throw\"].forEach((m) => {\n utils.overwriteMethod(chai.Assertion.prototype, m, (_super) => {\n return function(...args) {\n const promise = utils.flag(this, \"promise\");\n const object = utils.flag(this, \"object\");\n const isNot = utils.flag(this, \"negate\");\n if (promise === \"rejects\") {\n utils.flag(this, \"object\", () => {\n throw object;\n });\n } else if (promise === \"resolves\" && typeof object !== \"function\") {\n if (!isNot) {\n const message = utils.flag(this, \"message\") || \"expected promise to throw an error, but it didn't\";\n const error = {\n showDiff: false\n };\n throw new AssertionError(message, error, utils.flag(this, \"ssfi\"));\n } else {\n return;\n }\n }\n _super.apply(this, args);\n };\n });\n });\n def(\"withTest\", function(test) {\n utils.flag(this, \"vitest-test\", test);\n return this;\n });\n def(\"toEqual\", function(expected) {\n const actual = utils.flag(this, \"object\");\n const equal = equals(\n actual,\n expected,\n [iterableEquality]\n );\n return this.assert(\n equal,\n \"expected #{this} to deeply equal #{exp}\",\n \"expected #{this} to not deeply equal #{exp}\",\n expected,\n actual\n );\n });\n def(\"toStrictEqual\", function(expected) {\n const obj = utils.flag(this, \"object\");\n const equal = equals(\n obj,\n expected,\n [\n iterableEquality,\n typeEquality,\n sparseArrayEquality,\n arrayBufferEquality\n ],\n true\n );\n return this.assert(\n equal,\n \"expected #{this} to strictly equal #{exp}\",\n \"expected #{this} to not strictly equal #{exp}\",\n expected,\n obj\n );\n });\n def(\"toBe\", function(expected) {\n const actual = this._obj;\n const pass = Object.is(actual, expected);\n let deepEqualityName = \"\";\n if (!pass) {\n const toStrictEqualPass = equals(\n actual,\n expected,\n [\n iterableEquality,\n typeEquality,\n sparseArrayEquality,\n arrayBufferEquality\n ],\n true\n );\n if (toStrictEqualPass) {\n deepEqualityName = \"toStrictEqual\";\n } else {\n const toEqualPass = equals(\n actual,\n expected,\n [iterableEquality]\n );\n if (toEqualPass)\n deepEqualityName = \"toEqual\";\n }\n }\n return this.assert(\n pass,\n generateToBeMessage(deepEqualityName),\n \"expected #{this} not to be #{exp} // Object.is equality\",\n expected,\n actual\n );\n });\n def(\"toMatchObject\", function(expected) {\n const actual = this._obj;\n return this.assert(\n equals(actual, expected, [iterableEquality, subsetEquality]),\n \"expected #{this} to match object #{exp}\",\n \"expected #{this} to not match object #{exp}\",\n expected,\n actual\n );\n });\n def(\"toMatch\", function(expected) {\n if (typeof expected === \"string\")\n return this.include(expected);\n else\n return this.match(expected);\n });\n def(\"toContain\", function(item) {\n return this.contain(item);\n });\n def(\"toContainEqual\", function(expected) {\n const obj = utils.flag(this, \"object\");\n const index = Array.from(obj).findIndex((item) => {\n return equals(item, expected);\n });\n this.assert(\n index !== -1,\n \"expected #{this} to deep equally contain #{exp}\",\n \"expected #{this} to not deep equally contain #{exp}\",\n expected\n );\n });\n def(\"toBeTruthy\", function() {\n const obj = utils.flag(this, \"object\");\n this.assert(\n Boolean(obj),\n \"expected #{this} to be truthy\",\n \"expected #{this} to not be truthy\",\n obj\n );\n });\n def(\"toBeFalsy\", function() {\n const obj = utils.flag(this, \"object\");\n this.assert(\n !obj,\n \"expected #{this} to be falsy\",\n \"expected #{this} to not be falsy\",\n obj\n );\n });\n def(\"toBeGreaterThan\", function(expected) {\n const actual = this._obj;\n assertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n assertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n return this.assert(\n actual > expected,\n `expected ${actual} to be greater than ${expected}`,\n `expected ${actual} to be not greater than ${expected}`,\n actual,\n expected\n );\n });\n def(\"toBeGreaterThanOrEqual\", function(expected) {\n const actual = this._obj;\n assertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n assertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n return this.assert(\n actual >= expected,\n `expected ${actual} to be greater than or equal to ${expected}`,\n `expected ${actual} to be not greater than or equal to ${expected}`,\n actual,\n expected\n );\n });\n def(\"toBeLessThan\", function(expected) {\n const actual = this._obj;\n assertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n assertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n return this.assert(\n actual < expected,\n `expected ${actual} to be less than ${expected}`,\n `expected ${actual} to be not less than ${expected}`,\n actual,\n expected\n );\n });\n def(\"toBeLessThanOrEqual\", function(expected) {\n const actual = this._obj;\n assertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n assertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n return this.assert(\n actual <= expected,\n `expected ${actual} to be less than or equal to ${expected}`,\n `expected ${actual} to be not less than or equal to ${expected}`,\n actual,\n expected\n );\n });\n def(\"toBeNaN\", function() {\n return this.be.NaN;\n });\n def(\"toBeUndefined\", function() {\n return this.be.undefined;\n });\n def(\"toBeNull\", function() {\n return this.be.null;\n });\n def(\"toBeDefined\", function() {\n const negate = utils.flag(this, \"negate\");\n utils.flag(this, \"negate\", false);\n if (negate)\n return this.be.undefined;\n return this.not.be.undefined;\n });\n def(\"toBeTypeOf\", function(expected) {\n const actual = typeof this._obj;\n const equal = expected === actual;\n return this.assert(\n equal,\n \"expected #{this} to be type of #{exp}\",\n \"expected #{this} not to be type of #{exp}\",\n expected,\n actual\n );\n });\n def(\"toBeInstanceOf\", function(obj) {\n return this.instanceOf(obj);\n });\n def(\"toHaveLength\", function(length) {\n return this.have.length(length);\n });\n def(\"toHaveProperty\", function(...args) {\n if (Array.isArray(args[0]))\n args[0] = args[0].map((key) => String(key).replace(/([.[\\]])/g, \"\\\\$1\")).join(\".\");\n const actual = this._obj;\n const [propertyName, expected] = args;\n const getValue = () => {\n const hasOwn = Object.prototype.hasOwnProperty.call(actual, propertyName);\n if (hasOwn)\n return { value: actual[propertyName], exists: true };\n return utils.getPathInfo(actual, propertyName);\n };\n const { value, exists } = getValue();\n const pass = exists && (args.length === 1 || equals(expected, value));\n const valueString = args.length === 1 ? \"\" : ` with value ${utils.objDisplay(expected)}`;\n return this.assert(\n pass,\n `expected #{this} to have property \"${propertyName}\"${valueString}`,\n `expected #{this} to not have property \"${propertyName}\"${valueString}`,\n actual\n );\n });\n def(\"toBeCloseTo\", function(received, precision = 2) {\n const expected = this._obj;\n let pass = false;\n let expectedDiff = 0;\n let receivedDiff = 0;\n if (received === Infinity && expected === Infinity) {\n pass = true;\n } else if (received === -Infinity && expected === -Infinity) {\n pass = true;\n } else {\n expectedDiff = 10 ** -precision / 2;\n receivedDiff = Math.abs(expected - received);\n pass = receivedDiff < expectedDiff;\n }\n return this.assert(\n pass,\n `expected #{this} to be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff}`,\n `expected #{this} to not be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff}`,\n received,\n expected\n );\n });\n const assertIsMock = (assertion) => {\n if (!isMockFunction(assertion._obj))\n throw new TypeError(`${utils.inspect(assertion._obj)} is not a spy or a call to a spy!`);\n };\n const getSpy = (assertion) => {\n assertIsMock(assertion);\n return assertion._obj;\n };\n const ordinalOf = (i) => {\n const j = i % 10;\n const k = i % 100;\n if (j === 1 && k !== 11)\n return `${i}st`;\n if (j === 2 && k !== 12)\n return `${i}nd`;\n if (j === 3 && k !== 13)\n return `${i}rd`;\n return `${i}th`;\n };\n const formatCalls = (spy, msg, actualCall) => {\n msg += c().gray(`\n\nReceived: \n${spy.mock.calls.map((callArg, i) => {\n let methodCall = c().bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call:\n\n`);\n if (actualCall)\n methodCall += diff(callArg, actualCall, { showLegend: false });\n else\n methodCall += stringify(callArg).split(\"\\n\").map((line) => ` ${line}`).join(\"\\n\");\n methodCall += \"\\n\";\n return methodCall;\n }).join(\"\\n\")}`);\n msg += c().gray(`\n\nNumber of calls: ${c().bold(spy.mock.calls.length)}\n`);\n return msg;\n };\n const formatReturns = (spy, msg, actualReturn) => {\n msg += c().gray(`\n\nReceived: \n${spy.mock.results.map((callReturn, i) => {\n let methodCall = c().bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call return:\n\n`);\n if (actualReturn)\n methodCall += diff(callReturn.value, actualReturn, { showLegend: false });\n else\n methodCall += stringify(callReturn).split(\"\\n\").map((line) => ` ${line}`).join(\"\\n\");\n methodCall += \"\\n\";\n return methodCall;\n }).join(\"\\n\")}`);\n msg += c().gray(`\n\nNumber of calls: ${c().bold(spy.mock.calls.length)}\n`);\n return msg;\n };\n def([\"toHaveBeenCalledTimes\", \"toBeCalledTimes\"], function(number) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const callCount = spy.mock.calls.length;\n return this.assert(\n callCount === number,\n `expected \"${spyName}\" to be called #{exp} times`,\n `expected \"${spyName}\" to not be called #{exp} times`,\n number,\n callCount\n );\n });\n def(\"toHaveBeenCalledOnce\", function() {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const callCount = spy.mock.calls.length;\n return this.assert(\n callCount === 1,\n `expected \"${spyName}\" to be called once`,\n `expected \"${spyName}\" to not be called once`,\n 1,\n callCount\n );\n });\n def([\"toHaveBeenCalled\", \"toBeCalled\"], function() {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const called = spy.mock.calls.length > 0;\n const isNot = utils.flag(this, \"negate\");\n let msg = utils.getMessage(\n this,\n [\n called,\n `expected \"${spyName}\" to be called at least once`,\n `expected \"${spyName}\" to not be called at all`,\n true,\n called\n ]\n );\n if (called && isNot)\n msg = formatCalls(spy, msg);\n if (called && isNot || !called && !isNot) {\n const err = new Error(msg);\n err.name = \"AssertionError\";\n throw err;\n }\n });\n def([\"toHaveBeenCalledWith\", \"toBeCalledWith\"], function(...args) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const pass = spy.mock.calls.some((callArg) => equals(callArg, args, [iterableEquality]));\n const isNot = utils.flag(this, \"negate\");\n let msg = utils.getMessage(\n this,\n [\n pass,\n `expected \"${spyName}\" to be called with arguments: #{exp}`,\n `expected \"${spyName}\" to not be called with arguments: #{exp}`,\n args\n ]\n );\n if (pass && isNot || !pass && !isNot) {\n msg = formatCalls(spy, msg, args);\n const err = new Error(msg);\n err.name = \"AssertionError\";\n throw err;\n }\n });\n def([\"toHaveBeenNthCalledWith\", \"nthCalledWith\"], function(times, ...args) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const nthCall = spy.mock.calls[times - 1];\n this.assert(\n equals(nthCall, args, [iterableEquality]),\n `expected ${ordinalOf(times)} \"${spyName}\" call to have been called with #{exp}`,\n `expected ${ordinalOf(times)} \"${spyName}\" call to not have been called with #{exp}`,\n args,\n nthCall\n );\n });\n def([\"toHaveBeenLastCalledWith\", \"lastCalledWith\"], function(...args) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const lastCall = spy.mock.calls[spy.mock.calls.length - 1];\n this.assert(\n equals(lastCall, args, [iterableEquality]),\n `expected last \"${spyName}\" call to have been called with #{exp}`,\n `expected last \"${spyName}\" call to not have been called with #{exp}`,\n args,\n lastCall\n );\n });\n def([\"toThrow\", \"toThrowError\"], function(expected) {\n if (typeof expected === \"string\" || typeof expected === \"undefined\" || expected instanceof RegExp)\n return this.throws(expected);\n const obj = this._obj;\n const promise = utils.flag(this, \"promise\");\n const isNot = utils.flag(this, \"negate\");\n let thrown = null;\n if (promise === \"rejects\") {\n thrown = obj;\n } else if (promise === \"resolves\" && typeof obj !== \"function\") {\n if (!isNot) {\n const message = utils.flag(this, \"message\") || \"expected promise to throw an error, but it didn't\";\n const error = {\n showDiff: false\n };\n throw new AssertionError(message, error, utils.flag(this, \"ssfi\"));\n } else {\n return;\n }\n } else {\n try {\n obj();\n } catch (err) {\n thrown = err;\n }\n }\n if (typeof expected === \"function\") {\n const name = expected.name || expected.prototype.constructor.name;\n return this.assert(\n thrown && thrown instanceof expected,\n `expected error to be instance of ${name}`,\n `expected error not to be instance of ${name}`,\n expected,\n thrown\n );\n }\n if (expected instanceof Error) {\n return this.assert(\n thrown && expected.message === thrown.message,\n `expected error to have message: ${expected.message}`,\n `expected error not to have message: ${expected.message}`,\n expected.message,\n thrown && thrown.message\n );\n }\n if (typeof expected === \"object\" && \"asymmetricMatch\" in expected && typeof expected.asymmetricMatch === \"function\") {\n const matcher = expected;\n return this.assert(\n thrown && matcher.asymmetricMatch(thrown),\n \"expected error to match asymmetric matcher\",\n \"expected error not to match asymmetric matcher\",\n matcher.toString(),\n thrown\n );\n }\n throw new Error(`\"toThrow\" expects string, RegExp, function, Error instance or asymmetric matcher, got \"${typeof expected}\"`);\n });\n def([\"toHaveReturned\", \"toReturn\"], function() {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const calledAndNotThrew = spy.mock.calls.length > 0 && spy.mock.results.some(({ type }) => type !== \"throw\");\n this.assert(\n calledAndNotThrew,\n `expected \"${spyName}\" to be successfully called at least once`,\n `expected \"${spyName}\" to not be successfully called`,\n calledAndNotThrew,\n !calledAndNotThrew\n );\n });\n def([\"toHaveReturnedTimes\", \"toReturnTimes\"], function(times) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const successfulReturns = spy.mock.results.reduce((success, { type }) => type === \"throw\" ? success : ++success, 0);\n this.assert(\n successfulReturns === times,\n `expected \"${spyName}\" to be successfully called ${times} times`,\n `expected \"${spyName}\" to not be successfully called ${times} times`,\n `expected number of returns: ${times}`,\n `received number of returns: ${successfulReturns}`\n );\n });\n def([\"toHaveReturnedWith\", \"toReturnWith\"], function(value) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const pass = spy.mock.results.some(({ type, value: result }) => type === \"return\" && equals(value, result));\n const isNot = utils.flag(this, \"negate\");\n let msg = utils.getMessage(\n this,\n [\n pass,\n `expected \"${spyName}\" to return with: #{exp} at least once`,\n `expected \"${spyName}\" to not return with: #{exp}`,\n value\n ]\n );\n if (pass && isNot || !pass && !isNot) {\n msg = formatReturns(spy, msg, value);\n const err = new Error(msg);\n err.name = \"AssertionError\";\n throw err;\n }\n });\n def([\"toHaveLastReturnedWith\", \"lastReturnedWith\"], function(value) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const { value: lastResult } = spy.mock.results[spy.mock.results.length - 1];\n const pass = equals(lastResult, value);\n this.assert(\n pass,\n `expected last \"${spyName}\" call to return #{exp}`,\n `expected last \"${spyName}\" call to not return #{exp}`,\n value,\n lastResult\n );\n });\n def([\"toHaveNthReturnedWith\", \"nthReturnedWith\"], function(nthCall, value) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const isNot = utils.flag(this, \"negate\");\n const { type: callType, value: callResult } = spy.mock.results[nthCall - 1];\n const ordinalCall = `${ordinalOf(nthCall)} call`;\n if (!isNot && callType === \"throw\")\n chai.assert.fail(`expected ${ordinalCall} to return #{exp}, but instead it threw an error`);\n const nthCallReturn = equals(callResult, value);\n this.assert(\n nthCallReturn,\n `expected ${ordinalCall} \"${spyName}\" call to return #{exp}`,\n `expected ${ordinalCall} \"${spyName}\" call to not return #{exp}`,\n value,\n callResult\n );\n });\n def(\"toSatisfy\", function(matcher, message) {\n return this.be.satisfy(matcher, message);\n });\n utils.addProperty(chai.Assertion.prototype, \"resolves\", function __VITEST_RESOLVES__() {\n utils.flag(this, \"promise\", \"resolves\");\n utils.flag(this, \"error\", new Error(\"resolves\"));\n const test = utils.flag(this, \"vitest-test\");\n const obj = utils.flag(this, \"object\");\n if (typeof (obj == null ? void 0 : obj.then) !== \"function\")\n throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof obj}'.`);\n const proxy = new Proxy(this, {\n get: (target, key, receiver) => {\n const result = Reflect.get(target, key, receiver);\n if (typeof result !== \"function\")\n return result instanceof chai.Assertion ? proxy : result;\n return async (...args) => {\n const promise = obj.then(\n (value) => {\n utils.flag(this, \"object\", value);\n return result.call(this, ...args);\n },\n (err) => {\n throw new Error(`promise rejected \"${String(err)}\" instead of resolving`);\n }\n );\n return recordAsyncExpect(test, promise);\n };\n }\n });\n return proxy;\n });\n utils.addProperty(chai.Assertion.prototype, \"rejects\", function __VITEST_REJECTS__() {\n utils.flag(this, \"promise\", \"rejects\");\n utils.flag(this, \"error\", new Error(\"rejects\"));\n const test = utils.flag(this, \"vitest-test\");\n const obj = utils.flag(this, \"object\");\n const wrapper = typeof obj === \"function\" ? obj() : obj;\n if (typeof (wrapper == null ? void 0 : wrapper.then) !== \"function\")\n throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof wrapper}'.`);\n const proxy = new Proxy(this, {\n get: (target, key, receiver) => {\n const result = Reflect.get(target, key, receiver);\n if (typeof result !== \"function\")\n return result instanceof chai.Assertion ? proxy : result;\n return async (...args) => {\n const promise = wrapper.then(\n (value) => {\n throw new Error(`promise resolved \"${String(value)}\" instead of rejecting`);\n },\n (err) => {\n utils.flag(this, \"object\", err);\n return result.call(this, ...args);\n }\n );\n return recordAsyncExpect(test, promise);\n };\n }\n });\n return proxy;\n });\n};\n\nfunction getMatcherState(assertion, expect) {\n const obj = assertion._obj;\n const isNot = util.flag(assertion, \"negate\");\n const promise = util.flag(assertion, \"promise\") || \"\";\n const jestUtils = {\n ...getMatcherUtils(),\n diff,\n stringify,\n iterableEquality,\n subsetEquality\n };\n const matcherState = {\n ...getState(expect),\n isNot,\n utils: jestUtils,\n promise,\n equals,\n // needed for built-in jest-snapshots, but we don't use it\n suppressedErrors: []\n };\n return {\n state: matcherState,\n isNot,\n obj\n };\n}\nclass JestExtendError extends Error {\n constructor(message, actual, expected) {\n super(message);\n this.actual = actual;\n this.expected = expected;\n }\n}\nfunction JestExtendPlugin(expect, matchers) {\n return (c, utils) => {\n Object.entries(matchers).forEach(([expectAssertionName, expectAssertion]) => {\n function expectWrapper(...args) {\n const { state, isNot, obj } = getMatcherState(this, expect);\n const result = expectAssertion.call(state, obj, ...args);\n if (result && typeof result === \"object\" && result instanceof Promise) {\n return result.then(({ pass: pass2, message: message2, actual: actual2, expected: expected2 }) => {\n if (pass2 && isNot || !pass2 && !isNot)\n throw new JestExtendError(message2(), actual2, expected2);\n });\n }\n const { pass, message, actual, expected } = result;\n if (pass && isNot || !pass && !isNot)\n throw new JestExtendError(message(), actual, expected);\n }\n utils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers, expectAssertionName, expectWrapper);\n utils.addMethod(c.Assertion.prototype, expectAssertionName, expectWrapper);\n class CustomMatcher extends AsymmetricMatcher {\n constructor(inverse = false, ...sample) {\n super(sample, inverse);\n }\n asymmetricMatch(other) {\n const { pass } = expectAssertion.call(\n this.getMatcherContext(expect),\n other,\n ...this.sample\n );\n return this.inverse ? !pass : pass;\n }\n toString() {\n return `${this.inverse ? \"not.\" : \"\"}${expectAssertionName}`;\n }\n getExpectedType() {\n return \"any\";\n }\n toAsymmetricMatcher() {\n return `${this.toString()}<${this.sample.map(String).join(\", \")}>`;\n }\n }\n Object.defineProperty(expect, expectAssertionName, {\n configurable: true,\n enumerable: true,\n value: (...sample) => new CustomMatcher(false, ...sample),\n writable: true\n });\n Object.defineProperty(expect.not, expectAssertionName, {\n configurable: true,\n enumerable: true,\n value: (...sample) => new CustomMatcher(true, ...sample),\n writable: true\n });\n });\n };\n}\nconst JestExtend = (chai, utils) => {\n utils.addMethod(chai.expect, \"extend\", (expect, expects) => {\n chai.use(JestExtendPlugin(expect, expects));\n });\n};\n\nexport { Any, Anything, ArrayContaining, AsymmetricMatcher, GLOBAL_EXPECT, JEST_MATCHERS_OBJECT, JestAsymmetricMatchers, JestChaiExpect, JestExtend, MATCHERS_OBJECT, ObjectContaining, StringContaining, StringMatching, arrayBufferEquality, equals, fnNameFor, generateToBeMessage, getState, hasAsymmetric, hasProperty, isA, isAsymmetric, isImmutableUnorderedKeyed, isImmutableUnorderedSet, iterableEquality, setState, sparseArrayEquality, subsetEquality, typeEquality };\n","import { join, dirname } from 'pathe';\nimport { plugins, format } from 'pretty-format';\nimport 'util';\n\nvar naturalCompare$1 = {exports: {}};\n\n/*\n * @version 1.4.0\n * @date 2015-10-26\n * @stability 3 - Stable\n * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)\n * @license MIT License\n */\n\n\nvar naturalCompare = function(a, b) {\n\tvar i, codeA\n\t, codeB = 1\n\t, posA = 0\n\t, posB = 0\n\t, alphabet = String.alphabet;\n\n\tfunction getCode(str, pos, code) {\n\t\tif (code) {\n\t\t\tfor (i = pos; code = getCode(str, i), code < 76 && code > 65;) ++i;\n\t\t\treturn +str.slice(pos - 1, i)\n\t\t}\n\t\tcode = alphabet && alphabet.indexOf(str.charAt(pos));\n\t\treturn code > -1 ? code + 76 : ((code = str.charCodeAt(pos) || 0), code < 45 || code > 127) ? code\n\t\t\t: code < 46 ? 65 // -\n\t\t\t: code < 48 ? code - 1\n\t\t\t: code < 58 ? code + 18 // 0-9\n\t\t\t: code < 65 ? code - 11\n\t\t\t: code < 91 ? code + 11 // A-Z\n\t\t\t: code < 97 ? code - 37\n\t\t\t: code < 123 ? code + 5 // a-z\n\t\t\t: code - 63\n\t}\n\n\n\tif ((a+=\"\") != (b+=\"\")) for (;codeB;) {\n\t\tcodeA = getCode(a, posA++);\n\t\tcodeB = getCode(b, posB++);\n\n\t\tif (codeA < 76 && codeB < 76 && codeA > 66 && codeB > 66) {\n\t\t\tcodeA = getCode(a, posA, posA);\n\t\t\tcodeB = getCode(b, posB, posA = i);\n\t\t\tposB = i;\n\t\t}\n\n\t\tif (codeA != codeB) return (codeA < codeB) ? -1 : 1\n\t}\n\treturn 0\n};\n\ntry {\n\tnaturalCompare$1.exports = naturalCompare;\n} catch (e) {\n\tString.naturalCompare = naturalCompare;\n}\n\nfunction notNullish(v) {\n return v != null;\n}\nfunction isPrimitive(value) {\n return value === null || typeof value !== \"function\" && typeof value !== \"object\";\n}\nfunction isObject(item) {\n return item != null && typeof item === \"object\" && !Array.isArray(item);\n}\nfunction getCallLastIndex(code) {\n let charIndex = -1;\n let inString = null;\n let startedBracers = 0;\n let endedBracers = 0;\n let beforeChar = null;\n while (charIndex <= code.length) {\n beforeChar = code[charIndex];\n charIndex++;\n const char = code[charIndex];\n const isCharString = char === '\"' || char === \"'\" || char === \"`\";\n if (isCharString && beforeChar !== \"\\\\\") {\n if (inString === char)\n inString = null;\n else if (!inString)\n inString = char;\n }\n if (!inString) {\n if (char === \"(\")\n startedBracers++;\n if (char === \")\")\n endedBracers++;\n }\n if (startedBracers && endedBracers && startedBracers === endedBracers)\n return charIndex;\n }\n return null;\n}\n\nlet getPromiseValue = () => 'Promise{…}';\ntry {\n const { getPromiseDetails, kPending, kRejected } = process.binding('util');\n if (Array.isArray(getPromiseDetails(Promise.resolve()))) {\n getPromiseValue = (value, options) => {\n const [state, innerValue] = getPromiseDetails(value);\n if (state === kPending) {\n return 'Promise{}'\n }\n return `Promise${state === kRejected ? '!' : ''}{${options.inspect(innerValue, options)}}`\n };\n }\n} catch (notNode) {\n /* ignore */\n}\n\n/* !\n * loupe\n * Copyright(c) 2013 Jake Luer \n * MIT Licensed\n */\nlet nodeInspect = false;\ntry {\n // eslint-disable-next-line global-require\n const nodeUtil = require('util');\n nodeInspect = nodeUtil.inspect ? nodeUtil.inspect.custom : false;\n} catch (noNodeInspect) {\n nodeInspect = false;\n}\n\nfunction normalizeWindowsPath(input = \"\") {\n if (!input || !input.includes(\"\\\\\")) {\n return input;\n }\n return input.replace(/\\\\/g, \"/\");\n}\nconst _IS_ABSOLUTE_RE = /^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^[A-Za-z]:[/\\\\]/;\nfunction cwd() {\n if (typeof process !== \"undefined\") {\n return process.cwd().replace(/\\\\/g, \"/\");\n }\n return \"/\";\n}\nconst resolve = function(...arguments_) {\n arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));\n let resolvedPath = \"\";\n let resolvedAbsolute = false;\n for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {\n const path = index >= 0 ? arguments_[index] : cwd();\n if (!path || path.length === 0) {\n continue;\n }\n resolvedPath = `${path}/${resolvedPath}`;\n resolvedAbsolute = isAbsolute(path);\n }\n resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);\n if (resolvedAbsolute && !isAbsolute(resolvedPath)) {\n return `/${resolvedPath}`;\n }\n return resolvedPath.length > 0 ? resolvedPath : \".\";\n};\nfunction normalizeString(path, allowAboveRoot) {\n let res = \"\";\n let lastSegmentLength = 0;\n let lastSlash = -1;\n let dots = 0;\n let char = null;\n for (let index = 0; index <= path.length; ++index) {\n if (index < path.length) {\n char = path[index];\n } else if (char === \"/\") {\n break;\n } else {\n char = \"/\";\n }\n if (char === \"/\") {\n if (lastSlash === index - 1 || dots === 1)\n ;\n else if (dots === 2) {\n if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== \".\" || res[res.length - 2] !== \".\") {\n if (res.length > 2) {\n const lastSlashIndex = res.lastIndexOf(\"/\");\n if (lastSlashIndex === -1) {\n res = \"\";\n lastSegmentLength = 0;\n } else {\n res = res.slice(0, lastSlashIndex);\n lastSegmentLength = res.length - 1 - res.lastIndexOf(\"/\");\n }\n lastSlash = index;\n dots = 0;\n continue;\n } else if (res.length > 0) {\n res = \"\";\n lastSegmentLength = 0;\n lastSlash = index;\n dots = 0;\n continue;\n }\n }\n if (allowAboveRoot) {\n res += res.length > 0 ? \"/..\" : \"..\";\n lastSegmentLength = 2;\n }\n } else {\n if (res.length > 0) {\n res += `/${path.slice(lastSlash + 1, index)}`;\n } else {\n res = path.slice(lastSlash + 1, index);\n }\n lastSegmentLength = index - lastSlash - 1;\n }\n lastSlash = index;\n dots = 0;\n } else if (char === \".\" && dots !== -1) {\n ++dots;\n } else {\n dots = -1;\n }\n }\n return res;\n}\nconst isAbsolute = function(p) {\n return _IS_ABSOLUTE_RE.test(p);\n};\nconst lineSplitRE = /\\r?\\n/;\nconst stackIgnorePatterns = [\n \"node:internal\",\n /\\/packages\\/\\w+\\/dist\\//,\n /\\/@vitest\\/\\w+\\/dist\\//,\n \"/vitest/dist/\",\n \"/vitest/src/\",\n \"/vite-node/dist/\",\n \"/vite-node/src/\",\n \"/node_modules/chai/\",\n \"/node_modules/tinypool/\",\n \"/node_modules/tinyspy/\"\n];\nfunction extractLocation(urlLike) {\n if (!urlLike.includes(\":\"))\n return [urlLike];\n const regExp = /(.+?)(?::(\\d+))?(?::(\\d+))?$/;\n const parts = regExp.exec(urlLike.replace(/[()]/g, \"\"));\n if (!parts)\n return [urlLike];\n return [parts[1], parts[2] || void 0, parts[3] || void 0];\n}\nfunction parseSingleStack(raw) {\n let line = raw.trim();\n if (line.includes(\"(eval \"))\n line = line.replace(/eval code/g, \"eval\").replace(/(\\(eval at [^()]*)|(,.*$)/g, \"\");\n let sanitizedLine = line.replace(/^\\s+/, \"\").replace(/\\(eval code/g, \"(\").replace(/^.*?\\s+/, \"\");\n const location = sanitizedLine.match(/ (\\(.+\\)$)/);\n sanitizedLine = location ? sanitizedLine.replace(location[0], \"\") : sanitizedLine;\n const [url, lineNumber, columnNumber] = extractLocation(location ? location[1] : sanitizedLine);\n let method = location && sanitizedLine || \"\";\n let file = url && [\"eval\", \"\"].includes(url) ? void 0 : url;\n if (!file || !lineNumber || !columnNumber)\n return null;\n if (method.startsWith(\"async \"))\n method = method.slice(6);\n if (file.startsWith(\"file://\"))\n file = file.slice(7);\n file = resolve(file);\n return {\n method,\n file,\n line: parseInt(lineNumber),\n column: parseInt(columnNumber)\n };\n}\nfunction parseStacktrace(stack, ignore = stackIgnorePatterns) {\n const stackFrames = stack.split(\"\\n\").map((raw) => {\n const stack2 = parseSingleStack(raw);\n if (!stack2 || ignore.length && ignore.some((p) => stack2.file.match(p)))\n return null;\n return stack2;\n }).filter(notNullish);\n return stackFrames;\n}\nfunction parseErrorStacktrace(e, ignore = stackIgnorePatterns) {\n if (!e || isPrimitive(e))\n return [];\n if (e.stacks)\n return e.stacks;\n const stackStr = e.stack || e.stackStr || \"\";\n const stackFrames = parseStacktrace(stackStr, ignore);\n e.stacks = stackFrames;\n return stackFrames;\n}\nfunction positionToOffset(source, lineNumber, columnNumber) {\n const lines = source.split(lineSplitRE);\n const nl = /\\r\\n/.test(source) ? 2 : 1;\n let start = 0;\n if (lineNumber > lines.length)\n return source.length;\n for (let i = 0; i < lineNumber - 1; i++)\n start += lines[i].length + nl;\n return start + columnNumber;\n}\nfunction offsetToLineNumber(source, offset) {\n if (offset > source.length) {\n throw new Error(\n `offset is longer than source length! offset ${offset} > length ${source.length}`\n );\n }\n const lines = source.split(lineSplitRE);\n const nl = /\\r\\n/.test(source) ? 2 : 1;\n let counted = 0;\n let line = 0;\n for (; line < lines.length; line++) {\n const lineLength = lines[line].length + nl;\n if (counted + lineLength >= offset)\n break;\n counted += lineLength;\n }\n return line + 1;\n}\n\nconst serialize$1 = (val, config, indentation, depth, refs, printer) => {\n const name = val.getMockName();\n const nameString = name === \"vi.fn()\" ? \"\" : ` ${name}`;\n let callsString = \"\";\n if (val.mock.calls.length !== 0) {\n const indentationNext = indentation + config.indent;\n callsString = ` {${config.spacingOuter}${indentationNext}\"calls\": ${printer(val.mock.calls, config, indentationNext, depth, refs)}${config.min ? \", \" : \",\"}${config.spacingOuter}${indentationNext}\"results\": ${printer(val.mock.results, config, indentationNext, depth, refs)}${config.min ? \"\" : \",\"}${config.spacingOuter}${indentation}}`;\n }\n return `[MockFunction${nameString}]${callsString}`;\n};\nconst test = (val) => val && !!val._isMockFunction;\nconst plugin = { serialize: serialize$1, test };\n\nconst {\n DOMCollection,\n DOMElement,\n Immutable,\n ReactElement,\n ReactTestComponent,\n AsymmetricMatcher\n} = plugins;\nlet PLUGINS = [\n ReactTestComponent,\n ReactElement,\n DOMElement,\n DOMCollection,\n Immutable,\n AsymmetricMatcher,\n plugin\n];\nfunction addSerializer(plugin) {\n PLUGINS = [plugin].concat(PLUGINS);\n}\nfunction getSerializers() {\n return PLUGINS;\n}\n\nfunction testNameToKey(testName, count) {\n return `${testName} ${count}`;\n}\nfunction keyToTestName(key) {\n if (!/ \\d+$/.test(key))\n throw new Error(\"Snapshot keys must end with a number.\");\n return key.replace(/ \\d+$/, \"\");\n}\nfunction getSnapshotData(content, options) {\n const update = options.updateSnapshot;\n const data = /* @__PURE__ */ Object.create(null);\n let snapshotContents = \"\";\n let dirty = false;\n if (content != null) {\n try {\n snapshotContents = content;\n const populate = new Function(\"exports\", snapshotContents);\n populate(data);\n } catch {\n }\n }\n const isInvalid = snapshotContents;\n if ((update === \"all\" || update === \"new\") && isInvalid)\n dirty = true;\n return { data, dirty };\n}\nfunction addExtraLineBreaks(string) {\n return string.includes(\"\\n\") ? `\n${string}\n` : string;\n}\nfunction removeExtraLineBreaks(string) {\n return string.length > 2 && string.startsWith(\"\\n\") && string.endsWith(\"\\n\") ? string.slice(1, -1) : string;\n}\nconst escapeRegex = true;\nconst printFunctionName = false;\nfunction serialize(val, indent = 2, formatOverrides = {}) {\n return normalizeNewlines(\n format(val, {\n escapeRegex,\n indent,\n plugins: getSerializers(),\n printFunctionName,\n ...formatOverrides\n })\n );\n}\nfunction escapeBacktickString(str) {\n return str.replace(/`|\\\\|\\${/g, \"\\\\$&\");\n}\nfunction printBacktickString(str) {\n return `\\`${escapeBacktickString(str)}\\``;\n}\nasync function ensureDirectoryExists(environment, filePath) {\n try {\n await environment.prepareDirectory(join(dirname(filePath)));\n } catch {\n }\n}\nfunction normalizeNewlines(string) {\n return string.replace(/\\r\\n|\\r/g, \"\\n\");\n}\nasync function saveSnapshotFile(environment, snapshotData, snapshotPath) {\n const snapshots = Object.keys(snapshotData).sort(naturalCompare$1.exports).map(\n (key) => `exports[${printBacktickString(key)}] = ${printBacktickString(normalizeNewlines(snapshotData[key]))};`\n );\n const content = `${environment.getHeader()}\n\n${snapshots.join(\"\\n\\n\")}\n`;\n const oldContent = await environment.readSnapshotFile(snapshotPath);\n const skipWriting = oldContent != null && oldContent === content;\n if (skipWriting)\n return;\n await ensureDirectoryExists(environment, snapshotPath);\n await environment.saveSnapshotFile(\n snapshotPath,\n content\n );\n}\nfunction prepareExpected(expected) {\n function findStartIndent() {\n var _a, _b;\n const matchObject = /^( +)}\\s+$/m.exec(expected || \"\");\n const objectIndent = (_a = matchObject == null ? void 0 : matchObject[1]) == null ? void 0 : _a.length;\n if (objectIndent)\n return objectIndent;\n const matchText = /^\\n( +)\"/.exec(expected || \"\");\n return ((_b = matchText == null ? void 0 : matchText[1]) == null ? void 0 : _b.length) || 0;\n }\n const startIndent = findStartIndent();\n let expectedTrimmed = expected == null ? void 0 : expected.trim();\n if (startIndent) {\n expectedTrimmed = expectedTrimmed == null ? void 0 : expectedTrimmed.replace(new RegExp(`^${\" \".repeat(startIndent)}`, \"gm\"), \"\").replace(/ +}$/, \"}\");\n }\n return expectedTrimmed;\n}\nfunction deepMergeArray(target = [], source = []) {\n const mergedOutput = Array.from(target);\n source.forEach((sourceElement, index) => {\n const targetElement = mergedOutput[index];\n if (Array.isArray(target[index])) {\n mergedOutput[index] = deepMergeArray(target[index], sourceElement);\n } else if (isObject(targetElement)) {\n mergedOutput[index] = deepMergeSnapshot(target[index], sourceElement);\n } else {\n mergedOutput[index] = sourceElement;\n }\n });\n return mergedOutput;\n}\nfunction deepMergeSnapshot(target, source) {\n if (isObject(target) && isObject(source)) {\n const mergedOutput = { ...target };\n Object.keys(source).forEach((key) => {\n if (isObject(source[key]) && !source[key].$$typeof) {\n if (!(key in target))\n Object.assign(mergedOutput, { [key]: source[key] });\n else\n mergedOutput[key] = deepMergeSnapshot(target[key], source[key]);\n } else if (Array.isArray(source[key])) {\n mergedOutput[key] = deepMergeArray(target[key], source[key]);\n } else {\n Object.assign(mergedOutput, { [key]: source[key] });\n }\n });\n return mergedOutput;\n } else if (Array.isArray(target) && Array.isArray(source)) {\n return deepMergeArray(target, source);\n }\n return target;\n}\n\nasync function saveInlineSnapshots(environment, snapshots) {\n const MagicString = (await import('magic-string')).default;\n const files = new Set(snapshots.map((i) => i.file));\n await Promise.all(Array.from(files).map(async (file) => {\n const snaps = snapshots.filter((i) => i.file === file);\n const code = await environment.readSnapshotFile(file);\n const s = new MagicString(code);\n for (const snap of snaps) {\n const index = positionToOffset(code, snap.line, snap.column);\n replaceInlineSnap(code, s, index, snap.snapshot);\n }\n const transformed = s.toString();\n if (transformed !== code)\n await environment.saveSnapshotFile(file, transformed);\n }));\n}\nconst startObjectRegex = /(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\\s*\\(\\s*(?:\\/\\*[\\S\\s]*\\*\\/\\s*|\\/\\/.*\\s+)*\\s*({)/m;\nfunction replaceObjectSnap(code, s, index, newSnap) {\n code = code.slice(index);\n const startMatch = startObjectRegex.exec(code);\n if (!startMatch)\n return false;\n code = code.slice(startMatch.index);\n const charIndex = getCallLastIndex(code);\n if (charIndex === null)\n return false;\n s.appendLeft(index + startMatch.index + charIndex, `, ${prepareSnapString(newSnap, code, index)}`);\n return true;\n}\nfunction prepareSnapString(snap, source, index) {\n const lineNumber = offsetToLineNumber(source, index);\n const line = source.split(lineSplitRE)[lineNumber - 1];\n const indent = line.match(/^\\s*/)[0] || \"\";\n const indentNext = indent.includes(\"\t\") ? `${indent}\t` : `${indent} `;\n const lines = snap.trim().replace(/\\\\/g, \"\\\\\\\\\").split(/\\n/g);\n const isOneline = lines.length <= 1;\n const quote = isOneline ? \"'\" : \"`\";\n if (isOneline)\n return `'${lines.join(\"\\n\").replace(/'/g, \"\\\\'\")}'`;\n else\n return `${quote}\n${lines.map((i) => i ? indentNext + i : \"\").join(\"\\n\").replace(/`/g, \"\\\\`\").replace(/\\${/g, \"\\\\${\")}\n${indent}${quote}`;\n}\nconst startRegex = /(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\\s*\\(\\s*(?:\\/\\*[\\S\\s]*\\*\\/\\s*|\\/\\/.*\\s+)*\\s*[\\w_$]*(['\"`\\)])/m;\nfunction replaceInlineSnap(code, s, index, newSnap) {\n const startMatch = startRegex.exec(code.slice(index));\n if (!startMatch)\n return replaceObjectSnap(code, s, index, newSnap);\n const quote = startMatch[1];\n const startIndex = index + startMatch.index + startMatch[0].length;\n const snapString = prepareSnapString(newSnap, code, index);\n if (quote === \")\") {\n s.appendRight(startIndex - 1, snapString);\n return true;\n }\n const quoteEndRE = new RegExp(`(?:^|[^\\\\\\\\])${quote}`);\n const endMatch = quoteEndRE.exec(code.slice(startIndex));\n if (!endMatch)\n return false;\n const endIndex = startIndex + endMatch.index + endMatch[0].length;\n s.overwrite(startIndex - 1, endIndex, snapString);\n return true;\n}\nconst INDENTATION_REGEX = /^([^\\S\\n]*)\\S/m;\nfunction stripSnapshotIndentation(inlineSnapshot) {\n const match = inlineSnapshot.match(INDENTATION_REGEX);\n if (!match || !match[1]) {\n return inlineSnapshot;\n }\n const indentation = match[1];\n const lines = inlineSnapshot.split(/\\n/g);\n if (lines.length <= 2) {\n return inlineSnapshot;\n }\n if (lines[0].trim() !== \"\" || lines[lines.length - 1].trim() !== \"\") {\n return inlineSnapshot;\n }\n for (let i = 1; i < lines.length - 1; i++) {\n if (lines[i] !== \"\") {\n if (lines[i].indexOf(indentation) !== 0) {\n return inlineSnapshot;\n }\n lines[i] = lines[i].substring(indentation.length);\n }\n }\n lines[lines.length - 1] = \"\";\n inlineSnapshot = lines.join(\"\\n\");\n return inlineSnapshot;\n}\n\nasync function saveRawSnapshots(environment, snapshots) {\n await Promise.all(snapshots.map(async (snap) => {\n if (!snap.readonly)\n await environment.saveSnapshotFile(snap.file, snap.snapshot);\n }));\n}\n\nclass SnapshotState {\n constructor(testFilePath, snapshotPath, snapshotContent, options) {\n this.testFilePath = testFilePath;\n this.snapshotPath = snapshotPath;\n const { data, dirty } = getSnapshotData(\n snapshotContent,\n options\n );\n this._fileExists = snapshotContent != null;\n this._initialData = data;\n this._snapshotData = data;\n this._dirty = dirty;\n this._inlineSnapshots = [];\n this._rawSnapshots = [];\n this._uncheckedKeys = new Set(Object.keys(this._snapshotData));\n this._counters = /* @__PURE__ */ new Map();\n this.expand = options.expand || false;\n this.added = 0;\n this.matched = 0;\n this.unmatched = 0;\n this._updateSnapshot = options.updateSnapshot;\n this.updated = 0;\n this._snapshotFormat = {\n printBasicPrototype: false,\n ...options.snapshotFormat\n };\n this._environment = options.snapshotEnvironment;\n }\n static async create(testFilePath, options) {\n const snapshotPath = await options.snapshotEnvironment.resolvePath(testFilePath);\n const content = await options.snapshotEnvironment.readSnapshotFile(snapshotPath);\n return new SnapshotState(testFilePath, snapshotPath, content, options);\n }\n get environment() {\n return this._environment;\n }\n markSnapshotsAsCheckedForTest(testName) {\n this._uncheckedKeys.forEach((uncheckedKey) => {\n if (keyToTestName(uncheckedKey) === testName)\n this._uncheckedKeys.delete(uncheckedKey);\n });\n }\n _inferInlineSnapshotStack(stacks) {\n const promiseIndex = stacks.findIndex((i) => i.method.match(/__VITEST_(RESOLVES|REJECTS)__/));\n if (promiseIndex !== -1)\n return stacks[promiseIndex + 3];\n const stackIndex = stacks.findIndex((i) => i.method.includes(\"__INLINE_SNAPSHOT__\"));\n return stackIndex !== -1 ? stacks[stackIndex + 2] : null;\n }\n _addSnapshot(key, receivedSerialized, options) {\n this._dirty = true;\n if (options.isInline) {\n const stacks = parseErrorStacktrace(options.error || new Error(\"snapshot\"), []);\n const stack = this._inferInlineSnapshotStack(stacks);\n if (!stack) {\n throw new Error(\n `@vitest/snapshot: Couldn't infer stack frame for inline snapshot.\n${JSON.stringify(stacks)}`\n );\n }\n stack.column--;\n this._inlineSnapshots.push({\n snapshot: receivedSerialized,\n ...stack\n });\n } else if (options.rawSnapshot) {\n this._rawSnapshots.push({\n ...options.rawSnapshot,\n snapshot: receivedSerialized\n });\n } else {\n this._snapshotData[key] = receivedSerialized;\n }\n }\n clear() {\n this._snapshotData = this._initialData;\n this._counters = /* @__PURE__ */ new Map();\n this.added = 0;\n this.matched = 0;\n this.unmatched = 0;\n this.updated = 0;\n this._dirty = false;\n }\n async save() {\n const hasExternalSnapshots = Object.keys(this._snapshotData).length;\n const hasInlineSnapshots = this._inlineSnapshots.length;\n const hasRawSnapshots = this._rawSnapshots.length;\n const isEmpty = !hasExternalSnapshots && !hasInlineSnapshots && !hasRawSnapshots;\n const status = {\n deleted: false,\n saved: false\n };\n if ((this._dirty || this._uncheckedKeys.size) && !isEmpty) {\n if (hasExternalSnapshots) {\n await saveSnapshotFile(this._environment, this._snapshotData, this.snapshotPath);\n this._fileExists = true;\n }\n if (hasInlineSnapshots)\n await saveInlineSnapshots(this._environment, this._inlineSnapshots);\n if (hasRawSnapshots)\n await saveRawSnapshots(this._environment, this._rawSnapshots);\n status.saved = true;\n } else if (!hasExternalSnapshots && this._fileExists) {\n if (this._updateSnapshot === \"all\") {\n await this._environment.removeSnapshotFile(this.snapshotPath);\n this._fileExists = false;\n }\n status.deleted = true;\n }\n return status;\n }\n getUncheckedCount() {\n return this._uncheckedKeys.size || 0;\n }\n getUncheckedKeys() {\n return Array.from(this._uncheckedKeys);\n }\n removeUncheckedKeys() {\n if (this._updateSnapshot === \"all\" && this._uncheckedKeys.size) {\n this._dirty = true;\n this._uncheckedKeys.forEach((key) => delete this._snapshotData[key]);\n this._uncheckedKeys.clear();\n }\n }\n match({\n testName,\n received,\n key,\n inlineSnapshot,\n isInline,\n error,\n rawSnapshot\n }) {\n this._counters.set(testName, (this._counters.get(testName) || 0) + 1);\n const count = Number(this._counters.get(testName));\n if (!key)\n key = testNameToKey(testName, count);\n if (!(isInline && this._snapshotData[key] !== void 0))\n this._uncheckedKeys.delete(key);\n let receivedSerialized = rawSnapshot && typeof received === \"string\" ? received : serialize(received, void 0, this._snapshotFormat);\n if (!rawSnapshot)\n receivedSerialized = addExtraLineBreaks(receivedSerialized);\n if (rawSnapshot) {\n if (rawSnapshot.content && rawSnapshot.content.match(/\\r\\n/) && !receivedSerialized.match(/\\r\\n/))\n rawSnapshot.content = normalizeNewlines(rawSnapshot.content);\n }\n const expected = isInline ? inlineSnapshot : rawSnapshot ? rawSnapshot.content : this._snapshotData[key];\n const expectedTrimmed = prepareExpected(expected);\n const pass = expectedTrimmed === prepareExpected(receivedSerialized);\n const hasSnapshot = expected !== void 0;\n const snapshotIsPersisted = isInline || this._fileExists || rawSnapshot && rawSnapshot.content != null;\n if (pass && !isInline && !rawSnapshot) {\n this._snapshotData[key] = receivedSerialized;\n }\n if (hasSnapshot && this._updateSnapshot === \"all\" || (!hasSnapshot || !snapshotIsPersisted) && (this._updateSnapshot === \"new\" || this._updateSnapshot === \"all\")) {\n if (this._updateSnapshot === \"all\") {\n if (!pass) {\n if (hasSnapshot)\n this.updated++;\n else\n this.added++;\n this._addSnapshot(key, receivedSerialized, { error, isInline, rawSnapshot });\n } else {\n this.matched++;\n }\n } else {\n this._addSnapshot(key, receivedSerialized, { error, isInline, rawSnapshot });\n this.added++;\n }\n return {\n actual: \"\",\n count,\n expected: \"\",\n key,\n pass: true\n };\n } else {\n if (!pass) {\n this.unmatched++;\n return {\n actual: removeExtraLineBreaks(receivedSerialized),\n count,\n expected: expectedTrimmed !== void 0 ? removeExtraLineBreaks(expectedTrimmed) : void 0,\n key,\n pass: false\n };\n } else {\n this.matched++;\n return {\n actual: \"\",\n count,\n expected: \"\",\n key,\n pass: true\n };\n }\n }\n }\n async pack() {\n const snapshot = {\n filepath: this.testFilePath,\n added: 0,\n fileDeleted: false,\n matched: 0,\n unchecked: 0,\n uncheckedKeys: [],\n unmatched: 0,\n updated: 0\n };\n const uncheckedCount = this.getUncheckedCount();\n const uncheckedKeys = this.getUncheckedKeys();\n if (uncheckedCount)\n this.removeUncheckedKeys();\n const status = await this.save();\n snapshot.fileDeleted = status.deleted;\n snapshot.added = this.added;\n snapshot.matched = this.matched;\n snapshot.unmatched = this.unmatched;\n snapshot.updated = this.updated;\n snapshot.unchecked = !status.deleted ? uncheckedCount : 0;\n snapshot.uncheckedKeys = Array.from(uncheckedKeys);\n return snapshot;\n }\n}\n\nfunction createMismatchError(message, actual, expected) {\n const error = new Error(message);\n Object.defineProperty(error, \"actual\", {\n value: actual,\n enumerable: true,\n configurable: true,\n writable: true\n });\n Object.defineProperty(error, \"expected\", {\n value: expected,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return error;\n}\nclass SnapshotClient {\n constructor(Service = SnapshotState) {\n this.Service = Service;\n this.snapshotStateMap = /* @__PURE__ */ new Map();\n }\n async setTest(filepath, name, options) {\n var _a;\n this.filepath = filepath;\n this.name = name;\n if (((_a = this.snapshotState) == null ? void 0 : _a.testFilePath) !== filepath) {\n this.resetCurrent();\n if (!this.getSnapshotState(filepath)) {\n this.snapshotStateMap.set(\n filepath,\n await this.Service.create(\n filepath,\n options\n )\n );\n }\n this.snapshotState = this.getSnapshotState(filepath);\n }\n }\n getSnapshotState(filepath) {\n return this.snapshotStateMap.get(filepath);\n }\n clearTest() {\n this.filepath = void 0;\n this.name = void 0;\n }\n skipTestSnapshots(name) {\n var _a;\n (_a = this.snapshotState) == null ? void 0 : _a.markSnapshotsAsCheckedForTest(name);\n }\n /**\n * Should be overridden by the consumer.\n *\n * Vitest checks equality with @vitest/expect.\n */\n equalityCheck(received, expected) {\n return received === expected;\n }\n assert(options) {\n const {\n filepath = this.filepath,\n name = this.name,\n message,\n isInline = false,\n properties,\n inlineSnapshot,\n error,\n errorMessage,\n rawSnapshot\n } = options;\n let { received } = options;\n if (!filepath)\n throw new Error(\"Snapshot cannot be used outside of test\");\n if (typeof properties === \"object\") {\n if (typeof received !== \"object\" || !received)\n throw new Error(\"Received value must be an object when the matcher has properties\");\n try {\n const pass2 = this.equalityCheck(received, properties);\n if (!pass2)\n throw createMismatchError(\"Snapshot properties mismatched\", received, properties);\n else\n received = deepMergeSnapshot(received, properties);\n } catch (err) {\n err.message = errorMessage || \"Snapshot mismatched\";\n throw err;\n }\n }\n const testName = [\n name,\n ...message ? [message] : []\n ].join(\" > \");\n const snapshotState = this.getSnapshotState(filepath);\n const { actual, expected, key, pass } = snapshotState.match({\n testName,\n received,\n isInline,\n error,\n inlineSnapshot,\n rawSnapshot\n });\n if (!pass)\n throw createMismatchError(`Snapshot \\`${key || \"unknown\"}\\` mismatched`, actual == null ? void 0 : actual.trim(), expected == null ? void 0 : expected.trim());\n }\n async assertRaw(options) {\n if (!options.rawSnapshot)\n throw new Error(\"Raw snapshot is required\");\n const {\n filepath = this.filepath,\n rawSnapshot\n } = options;\n if (rawSnapshot.content == null) {\n if (!filepath)\n throw new Error(\"Snapshot cannot be used outside of test\");\n const snapshotState = this.getSnapshotState(filepath);\n options.filepath || (options.filepath = filepath);\n rawSnapshot.file = await snapshotState.environment.resolveRawPath(filepath, rawSnapshot.file);\n rawSnapshot.content = await snapshotState.environment.readSnapshotFile(rawSnapshot.file) || void 0;\n }\n return this.assert(options);\n }\n async resetCurrent() {\n if (!this.snapshotState)\n return null;\n const result = await this.snapshotState.pack();\n this.snapshotState = void 0;\n return result;\n }\n clear() {\n this.snapshotStateMap.clear();\n }\n}\n\nexport { SnapshotClient, SnapshotState, addSerializer, getSerializers, stripSnapshotIndentation };\n","import { getNames, getTests } from '@vitest/runner/utils';\nimport '@vitest/utils';\n\nfunction hasFailedSnapshot(suite) {\n return getTests(suite).some((s) => {\n var _a, _b;\n return (_b = (_a = s.result) == null ? void 0 : _a.errors) == null ? void 0 : _b.some((e) => e && e.message && e.message.match(/Snapshot .* mismatched/));\n });\n}\nfunction getFullName(task, separator = \" > \") {\n return getNames(task).join(separator);\n}\n\nexport { getFullName as g, hasFailedSnapshot as h };\n","import { getCurrentSuite, getCurrentTest } from '@vitest/runner';\nimport { createChainable, getNames } from '@vitest/runner/utils';\nimport { getSafeTimers, noop, createSimpleStackTrace, parseSingleStack } from '@vitest/utils';\nimport { d as isRunningInBenchmark, c as resetModules } from './vendor-index.fad2598b.js';\nimport * as chai$1 from 'chai';\nimport { c as commonjsGlobal } from './vendor-_commonjsHelpers.76cdd49e.js';\nimport { equals, iterableEquality, subsetEquality, JestExtend, JestChaiExpect, JestAsymmetricMatchers, GLOBAL_EXPECT, getState, setState } from '@vitest/expect';\nimport { SnapshotClient, stripSnapshotIndentation, addSerializer } from '@vitest/snapshot';\nimport { g as getWorkerState, a as getCurrentEnvironment } from './vendor-global.6795f91f.js';\nimport { g as getFullName } from './vendor-tasks.042d6084.js';\nimport require$$0 from 'util';\nimport { spyOn, fn, isMockFunction, spies } from '@vitest/spy';\n\nfunction waitNextTick() {\n const { setTimeout } = getSafeTimers();\n return new Promise((resolve) => setTimeout(resolve, 0));\n}\nasync function waitForImportsToResolve() {\n await waitNextTick();\n const state = getWorkerState();\n const promises = [];\n let resolvingCount = 0;\n for (const mod of state.moduleCache.values()) {\n if (mod.promise && !mod.evaluated)\n promises.push(mod.promise);\n if (mod.resolving)\n resolvingCount++;\n }\n if (!promises.length && !resolvingCount)\n return;\n await Promise.allSettled(promises);\n await waitForImportsToResolve();\n}\n\nconst benchFns = /* @__PURE__ */ new WeakMap();\nconst benchOptsMap = /* @__PURE__ */ new WeakMap();\nfunction getBenchOptions(key) {\n return benchOptsMap.get(key);\n}\nfunction getBenchFn(key) {\n return benchFns.get(key);\n}\nconst bench = createBenchmark(\n function(name, fn = noop, options = {}) {\n if (!isRunningInBenchmark())\n throw new Error(\"`bench()` is only available in benchmark mode.\");\n const task = getCurrentSuite().custom.call(this, name);\n task.meta = {\n benchmark: true\n };\n benchFns.set(task, fn);\n benchOptsMap.set(task, options);\n }\n);\nfunction createBenchmark(fn) {\n const benchmark = createChainable(\n [\"skip\", \"only\", \"todo\"],\n fn\n );\n benchmark.skipIf = (condition) => condition ? benchmark.skip : benchmark;\n benchmark.runIf = (condition) => condition ? benchmark : benchmark.skip;\n return benchmark;\n}\n\nfunction commonjsRequire(path) {\n\tthrow new Error('Could not dynamically require \"' + path + '\". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');\n}\n\nvar chaiSubset = {exports: {}};\n\n(function (module, exports) {\n\t(function() {\n\t\t(function(chaiSubset) {\n\t\t\tif (typeof commonjsRequire === 'function' && 'object' === 'object' && 'object' === 'object') {\n\t\t\t\treturn module.exports = chaiSubset;\n\t\t\t} else {\n\t\t\t\treturn chai.use(chaiSubset);\n\t\t\t}\n\t\t})(function(chai, utils) {\n\t\t\tvar Assertion = chai.Assertion;\n\t\t\tvar assertionPrototype = Assertion.prototype;\n\n\t\t\tAssertion.addMethod('containSubset', function (expected) {\n\t\t\t\tvar actual = utils.flag(this, 'object');\n\t\t\t\tvar showDiff = chai.config.showDiff;\n\n\t\t\t\tassertionPrototype.assert.call(this,\n\t\t\t\t\tcompare(expected, actual),\n\t\t\t\t\t'expected #{act} to contain subset #{exp}',\n\t\t\t\t\t'expected #{act} to not contain subset #{exp}',\n\t\t\t\t\texpected,\n\t\t\t\t\tactual,\n\t\t\t\t\tshowDiff\n\t\t\t\t);\n\t\t\t});\n\n\t\t\tchai.assert.containSubset = function(val, exp, msg) {\n\t\t\t\tnew chai.Assertion(val, msg).to.be.containSubset(exp);\n\t\t\t};\n\n\t\t\tfunction compare(expected, actual) {\n\t\t\t\tif (expected === actual) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (typeof(actual) !== typeof(expected)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (typeof(expected) !== 'object' || expected === null) {\n\t\t\t\t\treturn expected === actual;\n\t\t\t\t}\n\t\t\t\tif (!!expected && !actual) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (Array.isArray(expected)) {\n\t\t\t\t\tif (typeof(actual.length) !== 'number') {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tvar aa = Array.prototype.slice.call(actual);\n\t\t\t\t\treturn expected.every(function (exp) {\n\t\t\t\t\t\treturn aa.some(function (act) {\n\t\t\t\t\t\t\treturn compare(exp, act);\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tif (expected instanceof Date) {\n\t\t\t\t\tif (actual instanceof Date) {\n\t\t\t\t\t\treturn expected.getTime() === actual.getTime();\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn Object.keys(expected).every(function (key) {\n\t\t\t\t\tvar eo = expected[key];\n\t\t\t\t\tvar ao = actual[key];\n\t\t\t\t\tif (typeof(eo) === 'object' && eo !== null && ao !== null) {\n\t\t\t\t\t\treturn compare(eo, ao);\n\t\t\t\t\t}\n\t\t\t\t\tif (typeof(eo) === 'function') {\n\t\t\t\t\t\treturn eo(ao);\n\t\t\t\t\t}\n\t\t\t\t\treturn ao === eo;\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t}).call(commonjsGlobal);\n} (chaiSubset));\n\nvar Subset = chaiSubset.exports;\n\nfunction recordAsyncExpect(test, promise) {\n if (test) {\n promise = promise.finally(() => {\n const index = test.promises.indexOf(promise);\n if (index !== -1)\n test.promises.splice(index, 1);\n });\n if (!test.promises)\n test.promises = [];\n test.promises.push(promise);\n }\n return promise;\n}\n\nclass VitestSnapshotClient extends SnapshotClient {\n equalityCheck(received, expected) {\n return equals(received, expected, [iterableEquality, subsetEquality]);\n }\n}\n\nlet _client;\nfunction getSnapshotClient() {\n if (!_client)\n _client = new VitestSnapshotClient();\n return _client;\n}\nfunction getErrorMessage(err) {\n if (err instanceof Error)\n return err.message;\n return err;\n}\nfunction getErrorString(expected, promise) {\n if (typeof expected !== \"function\") {\n if (!promise)\n throw new Error(`expected must be a function, received ${typeof expected}`);\n return getErrorMessage(expected);\n }\n try {\n expected();\n } catch (e) {\n return getErrorMessage(e);\n }\n throw new Error(\"snapshot function didn't throw\");\n}\nconst SnapshotPlugin = (chai, utils) => {\n const getTestNames = (test) => {\n var _a;\n if (!test)\n return {};\n return {\n filepath: (_a = test.file) == null ? void 0 : _a.filepath,\n name: getNames(test).slice(1).join(\" > \")\n };\n };\n for (const key of [\"matchSnapshot\", \"toMatchSnapshot\"]) {\n utils.addMethod(\n chai.Assertion.prototype,\n key,\n function(properties, message) {\n const expected = utils.flag(this, \"object\");\n const test = utils.flag(this, \"vitest-test\");\n if (typeof properties === \"string\" && typeof message === \"undefined\") {\n message = properties;\n properties = void 0;\n }\n const errorMessage = utils.flag(this, \"message\");\n getSnapshotClient().assert({\n received: expected,\n message,\n isInline: false,\n properties,\n errorMessage,\n ...getTestNames(test)\n });\n }\n );\n }\n utils.addMethod(\n chai.Assertion.prototype,\n \"toMatchFileSnapshot\",\n function(file, message) {\n const expected = utils.flag(this, \"object\");\n const test = utils.flag(this, \"vitest-test\");\n const errorMessage = utils.flag(this, \"message\");\n const promise = getSnapshotClient().assertRaw({\n received: expected,\n message,\n isInline: false,\n rawSnapshot: {\n file\n },\n errorMessage,\n ...getTestNames(test)\n });\n return recordAsyncExpect(test, promise);\n }\n );\n utils.addMethod(\n chai.Assertion.prototype,\n \"toMatchInlineSnapshot\",\n function __INLINE_SNAPSHOT__(properties, inlineSnapshot, message) {\n const expected = utils.flag(this, \"object\");\n const error = utils.flag(this, \"error\");\n const test = utils.flag(this, \"vitest-test\");\n if (typeof properties === \"string\") {\n message = inlineSnapshot;\n inlineSnapshot = properties;\n properties = void 0;\n }\n if (inlineSnapshot)\n inlineSnapshot = stripSnapshotIndentation(inlineSnapshot);\n const errorMessage = utils.flag(this, \"message\");\n getSnapshotClient().assert({\n received: expected,\n message,\n isInline: true,\n properties,\n inlineSnapshot,\n error,\n errorMessage,\n ...getTestNames(test)\n });\n }\n );\n utils.addMethod(\n chai.Assertion.prototype,\n \"toThrowErrorMatchingSnapshot\",\n function(message) {\n const expected = utils.flag(this, \"object\");\n const test = utils.flag(this, \"vitest-test\");\n const promise = utils.flag(this, \"promise\");\n const errorMessage = utils.flag(this, \"message\");\n getSnapshotClient().assert({\n received: getErrorString(expected, promise),\n message,\n errorMessage,\n ...getTestNames(test)\n });\n }\n );\n utils.addMethod(\n chai.Assertion.prototype,\n \"toThrowErrorMatchingInlineSnapshot\",\n function __INLINE_SNAPSHOT__(inlineSnapshot, message) {\n const expected = utils.flag(this, \"object\");\n const error = utils.flag(this, \"error\");\n const test = utils.flag(this, \"vitest-test\");\n const promise = utils.flag(this, \"promise\");\n const errorMessage = utils.flag(this, \"message\");\n getSnapshotClient().assert({\n received: getErrorString(expected, promise),\n message,\n inlineSnapshot,\n isInline: true,\n error,\n errorMessage,\n ...getTestNames(test)\n });\n }\n );\n utils.addMethod(\n chai.expect,\n \"addSnapshotSerializer\",\n addSerializer\n );\n};\n\nchai$1.use(JestExtend);\nchai$1.use(JestChaiExpect);\nchai$1.use(Subset);\nchai$1.use(SnapshotPlugin);\nchai$1.use(JestAsymmetricMatchers);\n\nfunction createExpect(test) {\n var _a;\n const expect = (value, message) => {\n const { assertionCalls } = getState(expect);\n setState({ assertionCalls: assertionCalls + 1 }, expect);\n const assert2 = chai$1.expect(value, message);\n const _test = test || getCurrentTest();\n if (_test)\n return assert2.withTest(_test);\n else\n return assert2;\n };\n Object.assign(expect, chai$1.expect);\n expect.getState = () => getState(expect);\n expect.setState = (state) => setState(state, expect);\n const globalState = getState(globalThis[GLOBAL_EXPECT]) || {};\n setState({\n // this should also add \"snapshotState\" that is added conditionally\n ...globalState,\n assertionCalls: 0,\n isExpectingAssertions: false,\n isExpectingAssertionsError: null,\n expectedAssertionsNumber: null,\n expectedAssertionsNumberErrorGen: null,\n environment: getCurrentEnvironment(),\n testPath: test ? (_a = test.suite.file) == null ? void 0 : _a.filepath : globalState.testPath,\n currentTestName: test ? getFullName(test) : globalState.currentTestName\n }, expect);\n expect.extend = (matchers) => chai$1.expect.extend(expect, matchers);\n function assertions(expected) {\n const errorGen = () => new Error(`expected number of assertions to be ${expected}, but got ${expect.getState().assertionCalls}`);\n if (Error.captureStackTrace)\n Error.captureStackTrace(errorGen(), assertions);\n expect.setState({\n expectedAssertionsNumber: expected,\n expectedAssertionsNumberErrorGen: errorGen\n });\n }\n function hasAssertions() {\n const error = new Error(\"expected any number of assertion, but got none\");\n if (Error.captureStackTrace)\n Error.captureStackTrace(error, hasAssertions);\n expect.setState({\n isExpectingAssertions: true,\n isExpectingAssertionsError: error\n });\n }\n chai$1.util.addMethod(expect, \"assertions\", assertions);\n chai$1.util.addMethod(expect, \"hasAssertions\", hasAssertions);\n return expect;\n}\nconst globalExpect = createExpect();\nObject.defineProperty(globalThis, GLOBAL_EXPECT, {\n value: globalExpect,\n writable: true,\n configurable: true\n});\nfunction setupChaiConfig(config) {\n Object.assign(chai$1.config, config);\n}\n\n/**\n * A reference to the global object\n *\n * @type {object} globalObject\n */\nvar globalObject$1;\n\n/* istanbul ignore else */\nif (typeof commonjsGlobal !== \"undefined\") {\n // Node\n globalObject$1 = commonjsGlobal;\n} else if (typeof window !== \"undefined\") {\n // Browser\n globalObject$1 = window;\n} else {\n // WebWorker\n globalObject$1 = self;\n}\n\nvar global = globalObject$1;\n\n/**\n * Is true when the environment causes an error to be thrown for accessing the\n * __proto__ property.\n *\n * This is necessary in order to support `node --disable-proto=throw`.\n *\n * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto\n *\n * @type {boolean}\n */\nlet throwsOnProto$1;\ntry {\n const object = {};\n // eslint-disable-next-line no-proto, no-unused-expressions\n object.__proto__;\n throwsOnProto$1 = false;\n} catch (_) {\n // This branch is covered when tests are run with `--disable-proto=throw`,\n // however we can test both branches at the same time, so this is ignored\n /* istanbul ignore next */\n throwsOnProto$1 = true;\n}\n\nvar throwsOnProto_1 = throwsOnProto$1;\n\nvar call = Function.call;\nvar throwsOnProto = throwsOnProto_1;\n\nvar disallowedProperties = [\n // ignore size because it throws from Map\n \"size\",\n \"caller\",\n \"callee\",\n \"arguments\",\n];\n\n// This branch is covered when tests are run with `--disable-proto=throw`,\n// however we can test both branches at the same time, so this is ignored\n/* istanbul ignore next */\nif (throwsOnProto) {\n disallowedProperties.push(\"__proto__\");\n}\n\nvar copyPrototypeMethods = function copyPrototypeMethods(prototype) {\n // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods\n return Object.getOwnPropertyNames(prototype).reduce(function (\n result,\n name\n ) {\n if (disallowedProperties.includes(name)) {\n return result;\n }\n\n if (typeof prototype[name] !== \"function\") {\n return result;\n }\n\n result[name] = call.bind(prototype[name]);\n\n return result;\n },\n Object.create(null));\n};\n\nvar copyPrototype$5 = copyPrototypeMethods;\n\nvar array = copyPrototype$5(Array.prototype);\n\nvar every$1 = array.every;\n\n/**\n * @private\n */\nfunction hasCallsLeft(callMap, spy) {\n if (callMap[spy.id] === undefined) {\n callMap[spy.id] = 0;\n }\n\n return callMap[spy.id] < spy.callCount;\n}\n\n/**\n * @private\n */\nfunction checkAdjacentCalls(callMap, spy, index, spies) {\n var calledBeforeNext = true;\n\n if (index !== spies.length - 1) {\n calledBeforeNext = spy.calledBefore(spies[index + 1]);\n }\n\n if (hasCallsLeft(callMap, spy) && calledBeforeNext) {\n callMap[spy.id] += 1;\n return true;\n }\n\n return false;\n}\n\n/**\n * A Sinon proxy object (fake, spy, stub)\n *\n * @typedef {object} SinonProxy\n * @property {Function} calledBefore - A method that determines if this proxy was called before another one\n * @property {string} id - Some id\n * @property {number} callCount - Number of times this proxy has been called\n */\n\n/**\n * Returns true when the spies have been called in the order they were supplied in\n *\n * @param {SinonProxy[] | SinonProxy} spies An array of proxies, or several proxies as arguments\n * @returns {boolean} true when spies are called in order, false otherwise\n */\nfunction calledInOrder(spies) {\n var callMap = {};\n // eslint-disable-next-line no-underscore-dangle\n var _spies = arguments.length > 1 ? arguments : spies;\n\n return every$1(_spies, checkAdjacentCalls.bind(null, callMap));\n}\n\nvar calledInOrder_1 = calledInOrder;\n\n/**\n * Returns a display name for a function\n *\n * @param {Function} func\n * @returns {string}\n */\nvar functionName$1 = function functionName(func) {\n if (!func) {\n return \"\";\n }\n\n try {\n return (\n func.displayName ||\n func.name ||\n // Use function decomposition as a last resort to get function\n // name. Does not rely on function decomposition to work - if it\n // doesn't debugging will be slightly less informative\n // (i.e. toString will say 'spy' rather than 'myFunc').\n (String(func).match(/function ([^\\s(]+)/) || [])[1]\n );\n } catch (e) {\n // Stringify may fail and we might get an exception, as a last-last\n // resort fall back to empty string.\n return \"\";\n }\n};\n\nvar functionName = functionName$1;\n\n/**\n * Returns a display name for a value from a constructor\n *\n * @param {object} value A value to examine\n * @returns {(string|null)} A string or null\n */\nfunction className(value) {\n return (\n (value.constructor && value.constructor.name) ||\n // The next branch is for IE11 support only:\n // Because the name property is not set on the prototype\n // of the Function object, we finally try to grab the\n // name from its definition. This will never be reached\n // in node, so we are not able to test this properly.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name\n (typeof value.constructor === \"function\" &&\n /* istanbul ignore next */\n functionName(value.constructor)) ||\n null\n );\n}\n\nvar className_1 = className;\n\nvar deprecated = {};\n\n/* eslint-disable no-console */\n\n(function (exports) {\n\n\t/**\n\t * Returns a function that will invoke the supplied function and print a\n\t * deprecation warning to the console each time it is called.\n\t *\n\t * @param {Function} func\n\t * @param {string} msg\n\t * @returns {Function}\n\t */\n\texports.wrap = function (func, msg) {\n\t var wrapped = function () {\n\t exports.printWarning(msg);\n\t return func.apply(this, arguments);\n\t };\n\t if (func.prototype) {\n\t wrapped.prototype = func.prototype;\n\t }\n\t return wrapped;\n\t};\n\n\t/**\n\t * Returns a string which can be supplied to `wrap()` to notify the user that a\n\t * particular part of the sinon API has been deprecated.\n\t *\n\t * @param {string} packageName\n\t * @param {string} funcName\n\t * @returns {string}\n\t */\n\texports.defaultMsg = function (packageName, funcName) {\n\t return `${packageName}.${funcName} is deprecated and will be removed from the public API in a future version of ${packageName}.`;\n\t};\n\n\t/**\n\t * Prints a warning on the console, when it exists\n\t *\n\t * @param {string} msg\n\t * @returns {undefined}\n\t */\n\texports.printWarning = function (msg) {\n\t /* istanbul ignore next */\n\t if (typeof process === \"object\" && process.emitWarning) {\n\t // Emit Warnings in Node\n\t process.emitWarning(msg);\n\t } else if (console.info) {\n\t console.info(msg);\n\t } else {\n\t console.log(msg);\n\t }\n\t};\n} (deprecated));\n\n/**\n * Returns true when fn returns true for all members of obj.\n * This is an every implementation that works for all iterables\n *\n * @param {object} obj\n * @param {Function} fn\n * @returns {boolean}\n */\nvar every = function every(obj, fn) {\n var pass = true;\n\n try {\n // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods\n obj.forEach(function () {\n if (!fn.apply(this, arguments)) {\n // Throwing an error is the only way to break `forEach`\n throw new Error();\n }\n });\n } catch (e) {\n pass = false;\n }\n\n return pass;\n};\n\nvar sort = array.sort;\nvar slice = array.slice;\n\n/**\n * @private\n */\nfunction comparator(a, b) {\n // uuid, won't ever be equal\n var aCall = a.getCall(0);\n var bCall = b.getCall(0);\n var aId = (aCall && aCall.callId) || -1;\n var bId = (bCall && bCall.callId) || -1;\n\n return aId < bId ? -1 : 1;\n}\n\n/**\n * A Sinon proxy object (fake, spy, stub)\n *\n * @typedef {object} SinonProxy\n * @property {Function} getCall - A method that can return the first call\n */\n\n/**\n * Sorts an array of SinonProxy instances (fake, spy, stub) by their first call\n *\n * @param {SinonProxy[] | SinonProxy} spies\n * @returns {SinonProxy[]}\n */\nfunction orderByFirstCall(spies) {\n return sort(slice(spies), comparator);\n}\n\nvar orderByFirstCall_1 = orderByFirstCall;\n\nvar copyPrototype$4 = copyPrototypeMethods;\n\nvar _function = copyPrototype$4(Function.prototype);\n\nvar copyPrototype$3 = copyPrototypeMethods;\n\nvar map = copyPrototype$3(Map.prototype);\n\nvar copyPrototype$2 = copyPrototypeMethods;\n\nvar object = copyPrototype$2(Object.prototype);\n\nvar copyPrototype$1 = copyPrototypeMethods;\n\nvar set = copyPrototype$1(Set.prototype);\n\nvar copyPrototype = copyPrototypeMethods;\n\nvar string = copyPrototype(String.prototype);\n\nvar prototypes = {\n array: array,\n function: _function,\n map: map,\n object: object,\n set: set,\n string: string,\n};\n\nvar typeDetect = {exports: {}};\n\n(function (module, exports) {\n\t(function (global, factory) {\n\t\tmodule.exports = factory() ;\n\t}(commonjsGlobal, (function () {\n\t/* !\n\t * type-detect\n\t * Copyright(c) 2013 jake luer \n\t * MIT Licensed\n\t */\n\tvar promiseExists = typeof Promise === 'function';\n\n\t/* eslint-disable no-undef */\n\tvar globalObject = typeof self === 'object' ? self : commonjsGlobal; // eslint-disable-line id-blacklist\n\n\tvar symbolExists = typeof Symbol !== 'undefined';\n\tvar mapExists = typeof Map !== 'undefined';\n\tvar setExists = typeof Set !== 'undefined';\n\tvar weakMapExists = typeof WeakMap !== 'undefined';\n\tvar weakSetExists = typeof WeakSet !== 'undefined';\n\tvar dataViewExists = typeof DataView !== 'undefined';\n\tvar symbolIteratorExists = symbolExists && typeof Symbol.iterator !== 'undefined';\n\tvar symbolToStringTagExists = symbolExists && typeof Symbol.toStringTag !== 'undefined';\n\tvar setEntriesExists = setExists && typeof Set.prototype.entries === 'function';\n\tvar mapEntriesExists = mapExists && typeof Map.prototype.entries === 'function';\n\tvar setIteratorPrototype = setEntriesExists && Object.getPrototypeOf(new Set().entries());\n\tvar mapIteratorPrototype = mapEntriesExists && Object.getPrototypeOf(new Map().entries());\n\tvar arrayIteratorExists = symbolIteratorExists && typeof Array.prototype[Symbol.iterator] === 'function';\n\tvar arrayIteratorPrototype = arrayIteratorExists && Object.getPrototypeOf([][Symbol.iterator]());\n\tvar stringIteratorExists = symbolIteratorExists && typeof String.prototype[Symbol.iterator] === 'function';\n\tvar stringIteratorPrototype = stringIteratorExists && Object.getPrototypeOf(''[Symbol.iterator]());\n\tvar toStringLeftSliceLength = 8;\n\tvar toStringRightSliceLength = -1;\n\t/**\n\t * ### typeOf (obj)\n\t *\n\t * Uses `Object.prototype.toString` to determine the type of an object,\n\t * normalising behaviour across engine versions & well optimised.\n\t *\n\t * @param {Mixed} object\n\t * @return {String} object type\n\t * @api public\n\t */\n\tfunction typeDetect(obj) {\n\t /* ! Speed optimisation\n\t * Pre:\n\t * string literal x 3,039,035 ops/sec ±1.62% (78 runs sampled)\n\t * boolean literal x 1,424,138 ops/sec ±4.54% (75 runs sampled)\n\t * number literal x 1,653,153 ops/sec ±1.91% (82 runs sampled)\n\t * undefined x 9,978,660 ops/sec ±1.92% (75 runs sampled)\n\t * function x 2,556,769 ops/sec ±1.73% (77 runs sampled)\n\t * Post:\n\t * string literal x 38,564,796 ops/sec ±1.15% (79 runs sampled)\n\t * boolean literal x 31,148,940 ops/sec ±1.10% (79 runs sampled)\n\t * number literal x 32,679,330 ops/sec ±1.90% (78 runs sampled)\n\t * undefined x 32,363,368 ops/sec ±1.07% (82 runs sampled)\n\t * function x 31,296,870 ops/sec ±0.96% (83 runs sampled)\n\t */\n\t var typeofObj = typeof obj;\n\t if (typeofObj !== 'object') {\n\t return typeofObj;\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * null x 28,645,765 ops/sec ±1.17% (82 runs sampled)\n\t * Post:\n\t * null x 36,428,962 ops/sec ±1.37% (84 runs sampled)\n\t */\n\t if (obj === null) {\n\t return 'null';\n\t }\n\n\t /* ! Spec Conformance\n\t * Test: `Object.prototype.toString.call(window)``\n\t * - Node === \"[object global]\"\n\t * - Chrome === \"[object global]\"\n\t * - Firefox === \"[object Window]\"\n\t * - PhantomJS === \"[object Window]\"\n\t * - Safari === \"[object Window]\"\n\t * - IE 11 === \"[object Window]\"\n\t * - IE Edge === \"[object Window]\"\n\t * Test: `Object.prototype.toString.call(this)``\n\t * - Chrome Worker === \"[object global]\"\n\t * - Firefox Worker === \"[object DedicatedWorkerGlobalScope]\"\n\t * - Safari Worker === \"[object DedicatedWorkerGlobalScope]\"\n\t * - IE 11 Worker === \"[object WorkerGlobalScope]\"\n\t * - IE Edge Worker === \"[object WorkerGlobalScope]\"\n\t */\n\t if (obj === globalObject) {\n\t return 'global';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * array literal x 2,888,352 ops/sec ±0.67% (82 runs sampled)\n\t * Post:\n\t * array literal x 22,479,650 ops/sec ±0.96% (81 runs sampled)\n\t */\n\t if (\n\t Array.isArray(obj) &&\n\t (symbolToStringTagExists === false || !(Symbol.toStringTag in obj))\n\t ) {\n\t return 'Array';\n\t }\n\n\t // Not caching existence of `window` and related properties due to potential\n\t // for `window` to be unset before tests in quasi-browser environments.\n\t if (typeof window === 'object' && window !== null) {\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/multipage/browsers.html#location)\n\t * WhatWG HTML$7.7.3 - The `Location` interface\n\t * Test: `Object.prototype.toString.call(window.location)``\n\t * - IE <=11 === \"[object Object]\"\n\t * - IE Edge <=13 === \"[object Object]\"\n\t */\n\t if (typeof window.location === 'object' && obj === window.location) {\n\t return 'Location';\n\t }\n\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/#document)\n\t * WhatWG HTML$3.1.1 - The `Document` object\n\t * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n\t * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-26809268)\n\t * which suggests that browsers should use HTMLTableCellElement for\n\t * both TD and TH elements. WhatWG separates these.\n\t * WhatWG HTML states:\n\t * > For historical reasons, Window objects must also have a\n\t * > writable, configurable, non-enumerable property named\n\t * > HTMLDocument whose value is the Document interface object.\n\t * Test: `Object.prototype.toString.call(document)``\n\t * - Chrome === \"[object HTMLDocument]\"\n\t * - Firefox === \"[object HTMLDocument]\"\n\t * - Safari === \"[object HTMLDocument]\"\n\t * - IE <=10 === \"[object Document]\"\n\t * - IE 11 === \"[object HTMLDocument]\"\n\t * - IE Edge <=13 === \"[object HTMLDocument]\"\n\t */\n\t if (typeof window.document === 'object' && obj === window.document) {\n\t return 'Document';\n\t }\n\n\t if (typeof window.navigator === 'object') {\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/multipage/webappapis.html#mimetypearray)\n\t * WhatWG HTML$8.6.1.5 - Plugins - Interface MimeTypeArray\n\t * Test: `Object.prototype.toString.call(navigator.mimeTypes)``\n\t * - IE <=10 === \"[object MSMimeTypesCollection]\"\n\t */\n\t if (typeof window.navigator.mimeTypes === 'object' &&\n\t obj === window.navigator.mimeTypes) {\n\t return 'MimeTypeArray';\n\t }\n\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray)\n\t * WhatWG HTML$8.6.1.5 - Plugins - Interface PluginArray\n\t * Test: `Object.prototype.toString.call(navigator.plugins)``\n\t * - IE <=10 === \"[object MSPluginsCollection]\"\n\t */\n\t if (typeof window.navigator.plugins === 'object' &&\n\t obj === window.navigator.plugins) {\n\t return 'PluginArray';\n\t }\n\t }\n\n\t if ((typeof window.HTMLElement === 'function' ||\n\t typeof window.HTMLElement === 'object') &&\n\t obj instanceof window.HTMLElement) {\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray)\n\t * WhatWG HTML$4.4.4 - The `blockquote` element - Interface `HTMLQuoteElement`\n\t * Test: `Object.prototype.toString.call(document.createElement('blockquote'))``\n\t * - IE <=10 === \"[object HTMLBlockElement]\"\n\t */\n\t if (obj.tagName === 'BLOCKQUOTE') {\n\t return 'HTMLQuoteElement';\n\t }\n\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/#htmltabledatacellelement)\n\t * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableDataCellElement`\n\t * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n\t * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075)\n\t * which suggests that browsers should use HTMLTableCellElement for\n\t * both TD and TH elements. WhatWG separates these.\n\t * Test: Object.prototype.toString.call(document.createElement('td'))\n\t * - Chrome === \"[object HTMLTableCellElement]\"\n\t * - Firefox === \"[object HTMLTableCellElement]\"\n\t * - Safari === \"[object HTMLTableCellElement]\"\n\t */\n\t if (obj.tagName === 'TD') {\n\t return 'HTMLTableDataCellElement';\n\t }\n\n\t /* ! Spec Conformance\n\t * (https://html.spec.whatwg.org/#htmltableheadercellelement)\n\t * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableHeaderCellElement`\n\t * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n\t * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075)\n\t * which suggests that browsers should use HTMLTableCellElement for\n\t * both TD and TH elements. WhatWG separates these.\n\t * Test: Object.prototype.toString.call(document.createElement('th'))\n\t * - Chrome === \"[object HTMLTableCellElement]\"\n\t * - Firefox === \"[object HTMLTableCellElement]\"\n\t * - Safari === \"[object HTMLTableCellElement]\"\n\t */\n\t if (obj.tagName === 'TH') {\n\t return 'HTMLTableHeaderCellElement';\n\t }\n\t }\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * Float64Array x 625,644 ops/sec ±1.58% (80 runs sampled)\n\t * Float32Array x 1,279,852 ops/sec ±2.91% (77 runs sampled)\n\t * Uint32Array x 1,178,185 ops/sec ±1.95% (83 runs sampled)\n\t * Uint16Array x 1,008,380 ops/sec ±2.25% (80 runs sampled)\n\t * Uint8Array x 1,128,040 ops/sec ±2.11% (81 runs sampled)\n\t * Int32Array x 1,170,119 ops/sec ±2.88% (80 runs sampled)\n\t * Int16Array x 1,176,348 ops/sec ±5.79% (86 runs sampled)\n\t * Int8Array x 1,058,707 ops/sec ±4.94% (77 runs sampled)\n\t * Uint8ClampedArray x 1,110,633 ops/sec ±4.20% (80 runs sampled)\n\t * Post:\n\t * Float64Array x 7,105,671 ops/sec ±13.47% (64 runs sampled)\n\t * Float32Array x 5,887,912 ops/sec ±1.46% (82 runs sampled)\n\t * Uint32Array x 6,491,661 ops/sec ±1.76% (79 runs sampled)\n\t * Uint16Array x 6,559,795 ops/sec ±1.67% (82 runs sampled)\n\t * Uint8Array x 6,463,966 ops/sec ±1.43% (85 runs sampled)\n\t * Int32Array x 5,641,841 ops/sec ±3.49% (81 runs sampled)\n\t * Int16Array x 6,583,511 ops/sec ±1.98% (80 runs sampled)\n\t * Int8Array x 6,606,078 ops/sec ±1.74% (81 runs sampled)\n\t * Uint8ClampedArray x 6,602,224 ops/sec ±1.77% (83 runs sampled)\n\t */\n\t var stringTag = (symbolToStringTagExists && obj[Symbol.toStringTag]);\n\t if (typeof stringTag === 'string') {\n\t return stringTag;\n\t }\n\n\t var objPrototype = Object.getPrototypeOf(obj);\n\t /* ! Speed optimisation\n\t * Pre:\n\t * regex literal x 1,772,385 ops/sec ±1.85% (77 runs sampled)\n\t * regex constructor x 2,143,634 ops/sec ±2.46% (78 runs sampled)\n\t * Post:\n\t * regex literal x 3,928,009 ops/sec ±0.65% (78 runs sampled)\n\t * regex constructor x 3,931,108 ops/sec ±0.58% (84 runs sampled)\n\t */\n\t if (objPrototype === RegExp.prototype) {\n\t return 'RegExp';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * date x 2,130,074 ops/sec ±4.42% (68 runs sampled)\n\t * Post:\n\t * date x 3,953,779 ops/sec ±1.35% (77 runs sampled)\n\t */\n\t if (objPrototype === Date.prototype) {\n\t return 'Date';\n\t }\n\n\t /* ! Spec Conformance\n\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-promise.prototype-@@tostringtag)\n\t * ES6$25.4.5.4 - Promise.prototype[@@toStringTag] should be \"Promise\":\n\t * Test: `Object.prototype.toString.call(Promise.resolve())``\n\t * - Chrome <=47 === \"[object Object]\"\n\t * - Edge <=20 === \"[object Object]\"\n\t * - Firefox 29-Latest === \"[object Promise]\"\n\t * - Safari 7.1-Latest === \"[object Promise]\"\n\t */\n\t if (promiseExists && objPrototype === Promise.prototype) {\n\t return 'Promise';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * set x 2,222,186 ops/sec ±1.31% (82 runs sampled)\n\t * Post:\n\t * set x 4,545,879 ops/sec ±1.13% (83 runs sampled)\n\t */\n\t if (setExists && objPrototype === Set.prototype) {\n\t return 'Set';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * map x 2,396,842 ops/sec ±1.59% (81 runs sampled)\n\t * Post:\n\t * map x 4,183,945 ops/sec ±6.59% (82 runs sampled)\n\t */\n\t if (mapExists && objPrototype === Map.prototype) {\n\t return 'Map';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * weakset x 1,323,220 ops/sec ±2.17% (76 runs sampled)\n\t * Post:\n\t * weakset x 4,237,510 ops/sec ±2.01% (77 runs sampled)\n\t */\n\t if (weakSetExists && objPrototype === WeakSet.prototype) {\n\t return 'WeakSet';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * weakmap x 1,500,260 ops/sec ±2.02% (78 runs sampled)\n\t * Post:\n\t * weakmap x 3,881,384 ops/sec ±1.45% (82 runs sampled)\n\t */\n\t if (weakMapExists && objPrototype === WeakMap.prototype) {\n\t return 'WeakMap';\n\t }\n\n\t /* ! Spec Conformance\n\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-dataview.prototype-@@tostringtag)\n\t * ES6$24.2.4.21 - DataView.prototype[@@toStringTag] should be \"DataView\":\n\t * Test: `Object.prototype.toString.call(new DataView(new ArrayBuffer(1)))``\n\t * - Edge <=13 === \"[object Object]\"\n\t */\n\t if (dataViewExists && objPrototype === DataView.prototype) {\n\t return 'DataView';\n\t }\n\n\t /* ! Spec Conformance\n\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%mapiteratorprototype%-@@tostringtag)\n\t * ES6$23.1.5.2.2 - %MapIteratorPrototype%[@@toStringTag] should be \"Map Iterator\":\n\t * Test: `Object.prototype.toString.call(new Map().entries())``\n\t * - Edge <=13 === \"[object Object]\"\n\t */\n\t if (mapExists && objPrototype === mapIteratorPrototype) {\n\t return 'Map Iterator';\n\t }\n\n\t /* ! Spec Conformance\n\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%setiteratorprototype%-@@tostringtag)\n\t * ES6$23.2.5.2.2 - %SetIteratorPrototype%[@@toStringTag] should be \"Set Iterator\":\n\t * Test: `Object.prototype.toString.call(new Set().entries())``\n\t * - Edge <=13 === \"[object Object]\"\n\t */\n\t if (setExists && objPrototype === setIteratorPrototype) {\n\t return 'Set Iterator';\n\t }\n\n\t /* ! Spec Conformance\n\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%arrayiteratorprototype%-@@tostringtag)\n\t * ES6$22.1.5.2.2 - %ArrayIteratorPrototype%[@@toStringTag] should be \"Array Iterator\":\n\t * Test: `Object.prototype.toString.call([][Symbol.iterator]())``\n\t * - Edge <=13 === \"[object Object]\"\n\t */\n\t if (arrayIteratorExists && objPrototype === arrayIteratorPrototype) {\n\t return 'Array Iterator';\n\t }\n\n\t /* ! Spec Conformance\n\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%stringiteratorprototype%-@@tostringtag)\n\t * ES6$21.1.5.2.2 - %StringIteratorPrototype%[@@toStringTag] should be \"String Iterator\":\n\t * Test: `Object.prototype.toString.call(''[Symbol.iterator]())``\n\t * - Edge <=13 === \"[object Object]\"\n\t */\n\t if (stringIteratorExists && objPrototype === stringIteratorPrototype) {\n\t return 'String Iterator';\n\t }\n\n\t /* ! Speed optimisation\n\t * Pre:\n\t * object from null x 2,424,320 ops/sec ±1.67% (76 runs sampled)\n\t * Post:\n\t * object from null x 5,838,000 ops/sec ±0.99% (84 runs sampled)\n\t */\n\t if (objPrototype === null) {\n\t return 'Object';\n\t }\n\n\t return Object\n\t .prototype\n\t .toString\n\t .call(obj)\n\t .slice(toStringLeftSliceLength, toStringRightSliceLength);\n\t}\n\n\treturn typeDetect;\n\n\t})));\n} (typeDetect));\n\nvar type = typeDetect.exports;\n\n/**\n * Returns the lower-case result of running type from type-detect on the value\n *\n * @param {*} value\n * @returns {string}\n */\nvar typeOf = function typeOf(value) {\n return type(value).toLowerCase();\n};\n\n/**\n * Returns a string representation of the value\n *\n * @param {*} value\n * @returns {string}\n */\nfunction valueToString(value) {\n if (value && value.toString) {\n // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods\n return value.toString();\n }\n return String(value);\n}\n\nvar valueToString_1 = valueToString;\n\nvar lib = {\n global: global,\n calledInOrder: calledInOrder_1,\n className: className_1,\n deprecated: deprecated,\n every: every,\n functionName: functionName$1,\n orderByFirstCall: orderByFirstCall_1,\n prototypes: prototypes,\n typeOf: typeOf,\n valueToString: valueToString_1,\n};\n\nconst globalObject = lib.global;\n\n/**\n * @typedef {object} IdleDeadline\n * @property {boolean} didTimeout - whether or not the callback was called before reaching the optional timeout\n * @property {function():number} timeRemaining - a floating-point value providing an estimate of the number of milliseconds remaining in the current idle period\n */\n\n/**\n * Queues a function to be called during a browser's idle periods\n *\n * @callback RequestIdleCallback\n * @param {function(IdleDeadline)} callback\n * @param {{timeout: number}} options - an options object\n * @returns {number} the id\n */\n\n/**\n * @callback NextTick\n * @param {VoidVarArgsFunc} callback - the callback to run\n * @param {...*} arguments - optional arguments to call the callback with\n * @returns {void}\n */\n\n/**\n * @callback SetImmediate\n * @param {VoidVarArgsFunc} callback - the callback to run\n * @param {...*} arguments - optional arguments to call the callback with\n * @returns {NodeImmediate}\n */\n\n/**\n * @callback VoidVarArgsFunc\n * @param {...*} callback - the callback to run\n * @returns {void}\n */\n\n/**\n * @typedef RequestAnimationFrame\n * @property {function(number):void} requestAnimationFrame\n * @returns {number} - the id\n */\n\n/**\n * @typedef Performance\n * @property {function(): number} now\n */\n\n/* eslint-disable jsdoc/require-property-description */\n/**\n * @typedef {object} Clock\n * @property {number} now - the current time\n * @property {Date} Date - the Date constructor\n * @property {number} loopLimit - the maximum number of timers before assuming an infinite loop\n * @property {RequestIdleCallback} requestIdleCallback\n * @property {function(number):void} cancelIdleCallback\n * @property {setTimeout} setTimeout\n * @property {clearTimeout} clearTimeout\n * @property {NextTick} nextTick\n * @property {queueMicrotask} queueMicrotask\n * @property {setInterval} setInterval\n * @property {clearInterval} clearInterval\n * @property {SetImmediate} setImmediate\n * @property {function(NodeImmediate):void} clearImmediate\n * @property {function():number} countTimers\n * @property {RequestAnimationFrame} requestAnimationFrame\n * @property {function(number):void} cancelAnimationFrame\n * @property {function():void} runMicrotasks\n * @property {function(string | number): number} tick\n * @property {function(string | number): Promise} tickAsync\n * @property {function(): number} next\n * @property {function(): Promise} nextAsync\n * @property {function(): number} runAll\n * @property {function(): number} runToFrame\n * @property {function(): Promise} runAllAsync\n * @property {function(): number} runToLast\n * @property {function(): Promise} runToLastAsync\n * @property {function(): void} reset\n * @property {function(number | Date): void} setSystemTime\n * @property {Performance} performance\n * @property {function(number[]): number[]} hrtime - process.hrtime (legacy)\n * @property {function(): void} uninstall Uninstall the clock.\n * @property {Function[]} methods - the methods that are faked\n * @property {boolean} [shouldClearNativeTimers] inherited from config\n */\n/* eslint-enable jsdoc/require-property-description */\n\n/**\n * Configuration object for the `install` method.\n *\n * @typedef {object} Config\n * @property {number|Date} [now] a number (in milliseconds) or a Date object (default epoch)\n * @property {string[]} [toFake] names of the methods that should be faked.\n * @property {number} [loopLimit] the maximum number of timers that will be run when calling runAll()\n * @property {boolean} [shouldAdvanceTime] tells FakeTimers to increment mocked time automatically (default false)\n * @property {number} [advanceTimeDelta] increment mocked time every <> ms (default: 20ms)\n * @property {boolean} [shouldClearNativeTimers] forwards clear timer calls to native functions if they are not fakes (default: false)\n */\n\n/* eslint-disable jsdoc/require-property-description */\n/**\n * The internal structure to describe a scheduled fake timer\n *\n * @typedef {object} Timer\n * @property {Function} func\n * @property {*[]} args\n * @property {number} delay\n * @property {number} callAt\n * @property {number} createdAt\n * @property {boolean} immediate\n * @property {number} id\n * @property {Error} [error]\n */\n\n/**\n * A Node timer\n *\n * @typedef {object} NodeImmediate\n * @property {function(): boolean} hasRef\n * @property {function(): NodeImmediate} ref\n * @property {function(): NodeImmediate} unref\n */\n/* eslint-enable jsdoc/require-property-description */\n\n/* eslint-disable complexity */\n\n/**\n * Mocks available features in the specified global namespace.\n *\n * @param {*} _global Namespace to mock (e.g. `window`)\n * @returns {FakeTimers}\n */\nfunction withGlobal(_global) {\n const userAgent = _global.navigator && _global.navigator.userAgent;\n const isRunningInIE = userAgent && userAgent.indexOf(\"MSIE \") > -1;\n const maxTimeout = Math.pow(2, 31) - 1; //see https://heycam.github.io/webidl/#abstract-opdef-converttoint\n const idCounterStart = 1e12; // arbitrarily large number to avoid collisions with native timer IDs\n const NOOP = function () {\n return undefined;\n };\n const NOOP_ARRAY = function () {\n return [];\n };\n const timeoutResult = _global.setTimeout(NOOP, 0);\n const addTimerReturnsObject = typeof timeoutResult === \"object\";\n const hrtimePresent =\n _global.process && typeof _global.process.hrtime === \"function\";\n const hrtimeBigintPresent =\n hrtimePresent && typeof _global.process.hrtime.bigint === \"function\";\n const nextTickPresent =\n _global.process && typeof _global.process.nextTick === \"function\";\n const utilPromisify = _global.process && require$$0.promisify;\n const performancePresent =\n _global.performance && typeof _global.performance.now === \"function\";\n const hasPerformancePrototype =\n _global.Performance &&\n (typeof _global.Performance).match(/^(function|object)$/);\n const hasPerformanceConstructorPrototype =\n _global.performance &&\n _global.performance.constructor &&\n _global.performance.constructor.prototype;\n const queueMicrotaskPresent = _global.hasOwnProperty(\"queueMicrotask\");\n const requestAnimationFramePresent =\n _global.requestAnimationFrame &&\n typeof _global.requestAnimationFrame === \"function\";\n const cancelAnimationFramePresent =\n _global.cancelAnimationFrame &&\n typeof _global.cancelAnimationFrame === \"function\";\n const requestIdleCallbackPresent =\n _global.requestIdleCallback &&\n typeof _global.requestIdleCallback === \"function\";\n const cancelIdleCallbackPresent =\n _global.cancelIdleCallback &&\n typeof _global.cancelIdleCallback === \"function\";\n const setImmediatePresent =\n _global.setImmediate && typeof _global.setImmediate === \"function\";\n\n // Make properties writable in IE, as per\n // https://www.adequatelygood.com/Replacing-setTimeout-Globally.html\n /* eslint-disable no-self-assign */\n if (isRunningInIE) {\n _global.setTimeout = _global.setTimeout;\n _global.clearTimeout = _global.clearTimeout;\n _global.setInterval = _global.setInterval;\n _global.clearInterval = _global.clearInterval;\n _global.Date = _global.Date;\n }\n\n // setImmediate is not a standard function\n // avoid adding the prop to the window object if not present\n if (setImmediatePresent) {\n _global.setImmediate = _global.setImmediate;\n _global.clearImmediate = _global.clearImmediate;\n }\n /* eslint-enable no-self-assign */\n\n _global.clearTimeout(timeoutResult);\n\n const NativeDate = _global.Date;\n let uniqueTimerId = idCounterStart;\n\n /**\n * @param {number} num\n * @returns {boolean}\n */\n function isNumberFinite(num) {\n if (Number.isFinite) {\n return Number.isFinite(num);\n }\n\n return isFinite(num);\n }\n\n let isNearInfiniteLimit = false;\n\n /**\n * @param {Clock} clock\n * @param {number} i\n */\n function checkIsNearInfiniteLimit(clock, i) {\n if (clock.loopLimit && i === clock.loopLimit - 1) {\n isNearInfiniteLimit = true;\n }\n }\n\n /**\n *\n */\n function resetIsNearInfiniteLimit() {\n isNearInfiniteLimit = false;\n }\n\n /**\n * Parse strings like \"01:10:00\" (meaning 1 hour, 10 minutes, 0 seconds) into\n * number of milliseconds. This is used to support human-readable strings passed\n * to clock.tick()\n *\n * @param {string} str\n * @returns {number}\n */\n function parseTime(str) {\n if (!str) {\n return 0;\n }\n\n const strings = str.split(\":\");\n const l = strings.length;\n let i = l;\n let ms = 0;\n let parsed;\n\n if (l > 3 || !/^(\\d\\d:){0,2}\\d\\d?$/.test(str)) {\n throw new Error(\n \"tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits\"\n );\n }\n\n while (i--) {\n parsed = parseInt(strings[i], 10);\n\n if (parsed >= 60) {\n throw new Error(`Invalid time ${str}`);\n }\n\n ms += parsed * Math.pow(60, l - i - 1);\n }\n\n return ms * 1000;\n }\n\n /**\n * Get the decimal part of the millisecond value as nanoseconds\n *\n * @param {number} msFloat the number of milliseconds\n * @returns {number} an integer number of nanoseconds in the range [0,1e6)\n *\n * Example: nanoRemainer(123.456789) -> 456789\n */\n function nanoRemainder(msFloat) {\n const modulo = 1e6;\n const remainder = (msFloat * 1e6) % modulo;\n const positiveRemainder =\n remainder < 0 ? remainder + modulo : remainder;\n\n return Math.floor(positiveRemainder);\n }\n\n /**\n * Used to grok the `now` parameter to createClock.\n *\n * @param {Date|number} epoch the system time\n * @returns {number}\n */\n function getEpoch(epoch) {\n if (!epoch) {\n return 0;\n }\n if (typeof epoch.getTime === \"function\") {\n return epoch.getTime();\n }\n if (typeof epoch === \"number\") {\n return epoch;\n }\n throw new TypeError(\"now should be milliseconds since UNIX epoch\");\n }\n\n /**\n * @param {number} from\n * @param {number} to\n * @param {Timer} timer\n * @returns {boolean}\n */\n function inRange(from, to, timer) {\n return timer && timer.callAt >= from && timer.callAt <= to;\n }\n\n /**\n * @param {Clock} clock\n * @param {Timer} job\n */\n function getInfiniteLoopError(clock, job) {\n const infiniteLoopError = new Error(\n `Aborting after running ${clock.loopLimit} timers, assuming an infinite loop!`\n );\n\n if (!job.error) {\n return infiniteLoopError;\n }\n\n // pattern never matched in Node\n const computedTargetPattern = /target\\.*[<|(|[].*?[>|\\]|)]\\s*/;\n let clockMethodPattern = new RegExp(\n String(Object.keys(clock).join(\"|\"))\n );\n\n if (addTimerReturnsObject) {\n // node.js environment\n clockMethodPattern = new RegExp(\n `\\\\s+at (Object\\\\.)?(?:${Object.keys(clock).join(\"|\")})\\\\s+`\n );\n }\n\n let matchedLineIndex = -1;\n job.error.stack.split(\"\\n\").some(function (line, i) {\n // If we've matched a computed target line (e.g. setTimeout) then we\n // don't need to look any further. Return true to stop iterating.\n const matchedComputedTarget = line.match(computedTargetPattern);\n /* istanbul ignore if */\n if (matchedComputedTarget) {\n matchedLineIndex = i;\n return true;\n }\n\n // If we've matched a clock method line, then there may still be\n // others further down the trace. Return false to keep iterating.\n const matchedClockMethod = line.match(clockMethodPattern);\n if (matchedClockMethod) {\n matchedLineIndex = i;\n return false;\n }\n\n // If we haven't matched anything on this line, but we matched\n // previously and set the matched line index, then we can stop.\n // If we haven't matched previously, then we should keep iterating.\n return matchedLineIndex >= 0;\n });\n\n const stack = `${infiniteLoopError}\\n${job.type || \"Microtask\"} - ${\n job.func.name || \"anonymous\"\n }\\n${job.error.stack\n .split(\"\\n\")\n .slice(matchedLineIndex + 1)\n .join(\"\\n\")}`;\n\n try {\n Object.defineProperty(infiniteLoopError, \"stack\", {\n value: stack,\n });\n } catch (e) {\n // noop\n }\n\n return infiniteLoopError;\n }\n\n /**\n * @param {Date} target\n * @param {Date} source\n * @returns {Date} the target after modifications\n */\n function mirrorDateProperties(target, source) {\n let prop;\n for (prop in source) {\n if (source.hasOwnProperty(prop)) {\n target[prop] = source[prop];\n }\n }\n\n // set special now implementation\n if (source.now) {\n target.now = function now() {\n return target.clock.now;\n };\n } else {\n delete target.now;\n }\n\n // set special toSource implementation\n if (source.toSource) {\n target.toSource = function toSource() {\n return source.toSource();\n };\n } else {\n delete target.toSource;\n }\n\n // set special toString implementation\n target.toString = function toString() {\n return source.toString();\n };\n\n target.prototype = source.prototype;\n target.parse = source.parse;\n target.UTC = source.UTC;\n target.prototype.toUTCString = source.prototype.toUTCString;\n target.isFake = true;\n\n return target;\n }\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function createDate() {\n /**\n * @param {number} year\n * @param {number} month\n * @param {number} date\n * @param {number} hour\n * @param {number} minute\n * @param {number} second\n * @param {number} ms\n * @returns {Date}\n */\n function ClockDate(year, month, date, hour, minute, second, ms) {\n // the Date constructor called as a function, ref Ecma-262 Edition 5.1, section 15.9.2.\n // This remains so in the 10th edition of 2019 as well.\n if (!(this instanceof ClockDate)) {\n return new NativeDate(ClockDate.clock.now).toString();\n }\n\n // if Date is called as a constructor with 'new' keyword\n // Defensive and verbose to avoid potential harm in passing\n // explicit undefined when user does not pass argument\n switch (arguments.length) {\n case 0:\n return new NativeDate(ClockDate.clock.now);\n case 1:\n return new NativeDate(year);\n case 2:\n return new NativeDate(year, month);\n case 3:\n return new NativeDate(year, month, date);\n case 4:\n return new NativeDate(year, month, date, hour);\n case 5:\n return new NativeDate(year, month, date, hour, minute);\n case 6:\n return new NativeDate(\n year,\n month,\n date,\n hour,\n minute,\n second\n );\n default:\n return new NativeDate(\n year,\n month,\n date,\n hour,\n minute,\n second,\n ms\n );\n }\n }\n\n return mirrorDateProperties(ClockDate, NativeDate);\n }\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function enqueueJob(clock, job) {\n // enqueues a microtick-deferred task - ecma262/#sec-enqueuejob\n if (!clock.jobs) {\n clock.jobs = [];\n }\n clock.jobs.push(job);\n }\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function runJobs(clock) {\n // runs all microtick-deferred tasks - ecma262/#sec-runjobs\n if (!clock.jobs) {\n return;\n }\n for (let i = 0; i < clock.jobs.length; i++) {\n const job = clock.jobs[i];\n job.func.apply(null, job.args);\n\n checkIsNearInfiniteLimit(clock, i);\n if (clock.loopLimit && i > clock.loopLimit) {\n throw getInfiniteLoopError(clock, job);\n }\n }\n resetIsNearInfiniteLimit();\n clock.jobs = [];\n }\n\n /**\n * @param {Clock} clock\n * @param {Timer} timer\n * @returns {number} id of the created timer\n */\n function addTimer(clock, timer) {\n if (timer.func === undefined) {\n throw new Error(\"Callback must be provided to timer calls\");\n }\n\n if (addTimerReturnsObject) {\n // Node.js environment\n if (typeof timer.func !== \"function\") {\n throw new TypeError(\n `[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${\n timer.func\n } of type ${typeof timer.func}`\n );\n }\n }\n\n if (isNearInfiniteLimit) {\n timer.error = new Error();\n }\n\n timer.type = timer.immediate ? \"Immediate\" : \"Timeout\";\n\n if (timer.hasOwnProperty(\"delay\")) {\n if (typeof timer.delay !== \"number\") {\n timer.delay = parseInt(timer.delay, 10);\n }\n\n if (!isNumberFinite(timer.delay)) {\n timer.delay = 0;\n }\n timer.delay = timer.delay > maxTimeout ? 1 : timer.delay;\n timer.delay = Math.max(0, timer.delay);\n }\n\n if (timer.hasOwnProperty(\"interval\")) {\n timer.type = \"Interval\";\n timer.interval = timer.interval > maxTimeout ? 1 : timer.interval;\n }\n\n if (timer.hasOwnProperty(\"animation\")) {\n timer.type = \"AnimationFrame\";\n timer.animation = true;\n }\n\n if (timer.hasOwnProperty(\"idleCallback\")) {\n timer.type = \"IdleCallback\";\n timer.idleCallback = true;\n }\n\n if (!clock.timers) {\n clock.timers = {};\n }\n\n timer.id = uniqueTimerId++;\n timer.createdAt = clock.now;\n timer.callAt =\n clock.now + (parseInt(timer.delay) || (clock.duringTick ? 1 : 0));\n\n clock.timers[timer.id] = timer;\n\n if (addTimerReturnsObject) {\n const res = {\n refed: true,\n ref: function () {\n this.refed = true;\n return res;\n },\n unref: function () {\n this.refed = false;\n return res;\n },\n hasRef: function () {\n return this.refed;\n },\n refresh: function () {\n timer.callAt =\n clock.now +\n (parseInt(timer.delay) || (clock.duringTick ? 1 : 0));\n\n // it _might_ have been removed, but if not the assignment is perfectly fine\n clock.timers[timer.id] = timer;\n\n return res;\n },\n [Symbol.toPrimitive]: function () {\n return timer.id;\n },\n };\n return res;\n }\n\n return timer.id;\n }\n\n /* eslint consistent-return: \"off\" */\n /**\n * Timer comparitor\n *\n * @param {Timer} a\n * @param {Timer} b\n * @returns {number}\n */\n function compareTimers(a, b) {\n // Sort first by absolute timing\n if (a.callAt < b.callAt) {\n return -1;\n }\n if (a.callAt > b.callAt) {\n return 1;\n }\n\n // Sort next by immediate, immediate timers take precedence\n if (a.immediate && !b.immediate) {\n return -1;\n }\n if (!a.immediate && b.immediate) {\n return 1;\n }\n\n // Sort next by creation time, earlier-created timers take precedence\n if (a.createdAt < b.createdAt) {\n return -1;\n }\n if (a.createdAt > b.createdAt) {\n return 1;\n }\n\n // Sort next by id, lower-id timers take precedence\n if (a.id < b.id) {\n return -1;\n }\n if (a.id > b.id) {\n return 1;\n }\n\n // As timer ids are unique, no fallback `0` is necessary\n }\n\n /**\n * @param {Clock} clock\n * @param {number} from\n * @param {number} to\n * @returns {Timer}\n */\n function firstTimerInRange(clock, from, to) {\n const timers = clock.timers;\n let timer = null;\n let id, isInRange;\n\n for (id in timers) {\n if (timers.hasOwnProperty(id)) {\n isInRange = inRange(from, to, timers[id]);\n\n if (\n isInRange &&\n (!timer || compareTimers(timer, timers[id]) === 1)\n ) {\n timer = timers[id];\n }\n }\n }\n\n return timer;\n }\n\n /**\n * @param {Clock} clock\n * @returns {Timer}\n */\n function firstTimer(clock) {\n const timers = clock.timers;\n let timer = null;\n let id;\n\n for (id in timers) {\n if (timers.hasOwnProperty(id)) {\n if (!timer || compareTimers(timer, timers[id]) === 1) {\n timer = timers[id];\n }\n }\n }\n\n return timer;\n }\n\n /**\n * @param {Clock} clock\n * @returns {Timer}\n */\n function lastTimer(clock) {\n const timers = clock.timers;\n let timer = null;\n let id;\n\n for (id in timers) {\n if (timers.hasOwnProperty(id)) {\n if (!timer || compareTimers(timer, timers[id]) === -1) {\n timer = timers[id];\n }\n }\n }\n\n return timer;\n }\n\n /**\n * @param {Clock} clock\n * @param {Timer} timer\n */\n function callTimer(clock, timer) {\n if (typeof timer.interval === \"number\") {\n clock.timers[timer.id].callAt += timer.interval;\n } else {\n delete clock.timers[timer.id];\n }\n\n if (typeof timer.func === \"function\") {\n timer.func.apply(null, timer.args);\n } else {\n /* eslint no-eval: \"off\" */\n const eval2 = eval;\n (function () {\n eval2(timer.func);\n })();\n }\n }\n\n /**\n * Gets clear handler name for a given timer type\n *\n * @param {string} ttype\n */\n function getClearHandler(ttype) {\n if (ttype === \"IdleCallback\" || ttype === \"AnimationFrame\") {\n return `cancel${ttype}`;\n }\n return `clear${ttype}`;\n }\n\n /**\n * Gets schedule handler name for a given timer type\n *\n * @param {string} ttype\n */\n function getScheduleHandler(ttype) {\n if (ttype === \"IdleCallback\" || ttype === \"AnimationFrame\") {\n return `request${ttype}`;\n }\n return `set${ttype}`;\n }\n\n /**\n * Creates an anonymous function to warn only once\n */\n function createWarnOnce() {\n let calls = 0;\n return function (msg) {\n // eslint-disable-next-line\n !calls++ && console.warn(msg);\n };\n }\n const warnOnce = createWarnOnce();\n\n /**\n * @param {Clock} clock\n * @param {number} timerId\n * @param {string} ttype\n */\n function clearTimer(clock, timerId, ttype) {\n if (!timerId) {\n // null appears to be allowed in most browsers, and appears to be\n // relied upon by some libraries, like Bootstrap carousel\n return;\n }\n\n if (!clock.timers) {\n clock.timers = {};\n }\n\n // in Node, the ID is stored as the primitive value for `Timeout` objects\n // for `Immediate` objects, no ID exists, so it gets coerced to NaN\n const id = Number(timerId);\n\n if (Number.isNaN(id) || id < idCounterStart) {\n const handlerName = getClearHandler(ttype);\n\n if (clock.shouldClearNativeTimers === true) {\n const nativeHandler = clock[`_${handlerName}`];\n return typeof nativeHandler === \"function\"\n ? nativeHandler(timerId)\n : undefined;\n }\n warnOnce(\n `FakeTimers: ${handlerName} was invoked to clear a native timer instead of one created by this library.` +\n \"\\nTo automatically clean-up native timers, use `shouldClearNativeTimers`.\"\n );\n }\n\n if (clock.timers.hasOwnProperty(id)) {\n // check that the ID matches a timer of the correct type\n const timer = clock.timers[id];\n if (\n timer.type === ttype ||\n (timer.type === \"Timeout\" && ttype === \"Interval\") ||\n (timer.type === \"Interval\" && ttype === \"Timeout\")\n ) {\n delete clock.timers[id];\n } else {\n const clear = getClearHandler(ttype);\n const schedule = getScheduleHandler(timer.type);\n throw new Error(\n `Cannot clear timer: timer created with ${schedule}() but cleared with ${clear}()`\n );\n }\n }\n }\n\n /**\n * @param {Clock} clock\n * @param {Config} config\n * @returns {Timer[]}\n */\n function uninstall(clock, config) {\n let method, i, l;\n const installedHrTime = \"_hrtime\";\n const installedNextTick = \"_nextTick\";\n\n for (i = 0, l = clock.methods.length; i < l; i++) {\n method = clock.methods[i];\n if (method === \"hrtime\" && _global.process) {\n _global.process.hrtime = clock[installedHrTime];\n } else if (method === \"nextTick\" && _global.process) {\n _global.process.nextTick = clock[installedNextTick];\n } else if (method === \"performance\") {\n const originalPerfDescriptor = Object.getOwnPropertyDescriptor(\n clock,\n `_${method}`\n );\n if (\n originalPerfDescriptor &&\n originalPerfDescriptor.get &&\n !originalPerfDescriptor.set\n ) {\n Object.defineProperty(\n _global,\n method,\n originalPerfDescriptor\n );\n } else if (originalPerfDescriptor.configurable) {\n _global[method] = clock[`_${method}`];\n }\n } else {\n if (_global[method] && _global[method].hadOwnProperty) {\n _global[method] = clock[`_${method}`];\n } else {\n try {\n delete _global[method];\n } catch (ignore) {\n /* eslint no-empty: \"off\" */\n }\n }\n }\n }\n\n if (config.shouldAdvanceTime === true) {\n _global.clearInterval(clock.attachedInterval);\n }\n\n // Prevent multiple executions which will completely remove these props\n clock.methods = [];\n\n // return pending timers, to enable checking what timers remained on uninstall\n if (!clock.timers) {\n return [];\n }\n return Object.keys(clock.timers).map(function mapper(key) {\n return clock.timers[key];\n });\n }\n\n /**\n * @param {object} target the target containing the method to replace\n * @param {string} method the keyname of the method on the target\n * @param {Clock} clock\n */\n function hijackMethod(target, method, clock) {\n clock[method].hadOwnProperty = Object.prototype.hasOwnProperty.call(\n target,\n method\n );\n clock[`_${method}`] = target[method];\n\n if (method === \"Date\") {\n const date = mirrorDateProperties(clock[method], target[method]);\n target[method] = date;\n } else if (method === \"performance\") {\n const originalPerfDescriptor = Object.getOwnPropertyDescriptor(\n target,\n method\n );\n // JSDOM has a read only performance field so we have to save/copy it differently\n if (\n originalPerfDescriptor &&\n originalPerfDescriptor.get &&\n !originalPerfDescriptor.set\n ) {\n Object.defineProperty(\n clock,\n `_${method}`,\n originalPerfDescriptor\n );\n\n const perfDescriptor = Object.getOwnPropertyDescriptor(\n clock,\n method\n );\n Object.defineProperty(target, method, perfDescriptor);\n } else {\n target[method] = clock[method];\n }\n } else {\n target[method] = function () {\n return clock[method].apply(clock, arguments);\n };\n\n Object.defineProperties(\n target[method],\n Object.getOwnPropertyDescriptors(clock[method])\n );\n }\n\n target[method].clock = clock;\n }\n\n /**\n * @param {Clock} clock\n * @param {number} advanceTimeDelta\n */\n function doIntervalTick(clock, advanceTimeDelta) {\n clock.tick(advanceTimeDelta);\n }\n\n /**\n * @typedef {object} Timers\n * @property {setTimeout} setTimeout\n * @property {clearTimeout} clearTimeout\n * @property {setInterval} setInterval\n * @property {clearInterval} clearInterval\n * @property {Date} Date\n * @property {SetImmediate=} setImmediate\n * @property {function(NodeImmediate): void=} clearImmediate\n * @property {function(number[]):number[]=} hrtime\n * @property {NextTick=} nextTick\n * @property {Performance=} performance\n * @property {RequestAnimationFrame=} requestAnimationFrame\n * @property {boolean=} queueMicrotask\n * @property {function(number): void=} cancelAnimationFrame\n * @property {RequestIdleCallback=} requestIdleCallback\n * @property {function(number): void=} cancelIdleCallback\n */\n\n /** @type {Timers} */\n const timers = {\n setTimeout: _global.setTimeout,\n clearTimeout: _global.clearTimeout,\n setInterval: _global.setInterval,\n clearInterval: _global.clearInterval,\n Date: _global.Date,\n };\n\n if (setImmediatePresent) {\n timers.setImmediate = _global.setImmediate;\n timers.clearImmediate = _global.clearImmediate;\n }\n\n if (hrtimePresent) {\n timers.hrtime = _global.process.hrtime;\n }\n\n if (nextTickPresent) {\n timers.nextTick = _global.process.nextTick;\n }\n\n if (performancePresent) {\n timers.performance = _global.performance;\n }\n\n if (requestAnimationFramePresent) {\n timers.requestAnimationFrame = _global.requestAnimationFrame;\n }\n\n if (queueMicrotaskPresent) {\n timers.queueMicrotask = true;\n }\n\n if (cancelAnimationFramePresent) {\n timers.cancelAnimationFrame = _global.cancelAnimationFrame;\n }\n\n if (requestIdleCallbackPresent) {\n timers.requestIdleCallback = _global.requestIdleCallback;\n }\n\n if (cancelIdleCallbackPresent) {\n timers.cancelIdleCallback = _global.cancelIdleCallback;\n }\n\n const originalSetTimeout = _global.setImmediate || _global.setTimeout;\n\n /**\n * @param {Date|number} [start] the system time - non-integer values are floored\n * @param {number} [loopLimit] maximum number of timers that will be run when calling runAll()\n * @returns {Clock}\n */\n function createClock(start, loopLimit) {\n // eslint-disable-next-line no-param-reassign\n start = Math.floor(getEpoch(start));\n // eslint-disable-next-line no-param-reassign\n loopLimit = loopLimit || 1000;\n let nanos = 0;\n const adjustedSystemTime = [0, 0]; // [millis, nanoremainder]\n\n if (NativeDate === undefined) {\n throw new Error(\n \"The global scope doesn't have a `Date` object\" +\n \" (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)\"\n );\n }\n\n const clock = {\n now: start,\n Date: createDate(),\n loopLimit: loopLimit,\n };\n\n clock.Date.clock = clock;\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function getTimeToNextFrame() {\n return 16 - ((clock.now - start) % 16);\n }\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function hrtime(prev) {\n const millisSinceStart = clock.now - adjustedSystemTime[0] - start;\n const secsSinceStart = Math.floor(millisSinceStart / 1000);\n const remainderInNanos =\n (millisSinceStart - secsSinceStart * 1e3) * 1e6 +\n nanos -\n adjustedSystemTime[1];\n\n if (Array.isArray(prev)) {\n if (prev[1] > 1e9) {\n throw new TypeError(\n \"Number of nanoseconds can't exceed a billion\"\n );\n }\n\n const oldSecs = prev[0];\n let nanoDiff = remainderInNanos - prev[1];\n let secDiff = secsSinceStart - oldSecs;\n\n if (nanoDiff < 0) {\n nanoDiff += 1e9;\n secDiff -= 1;\n }\n\n return [secDiff, nanoDiff];\n }\n return [secsSinceStart, remainderInNanos];\n }\n\n function fakePerformanceNow() {\n const hrt = hrtime();\n const millis = hrt[0] * 1000 + hrt[1] / 1e6;\n return millis;\n }\n\n if (hrtimeBigintPresent) {\n hrtime.bigint = function () {\n const parts = hrtime();\n return BigInt(parts[0]) * BigInt(1e9) + BigInt(parts[1]); // eslint-disable-line\n };\n }\n\n clock.requestIdleCallback = function requestIdleCallback(\n func,\n timeout\n ) {\n let timeToNextIdlePeriod = 0;\n\n if (clock.countTimers() > 0) {\n timeToNextIdlePeriod = 50; // const for now\n }\n\n const result = addTimer(clock, {\n func: func,\n args: Array.prototype.slice.call(arguments, 2),\n delay:\n typeof timeout === \"undefined\"\n ? timeToNextIdlePeriod\n : Math.min(timeout, timeToNextIdlePeriod),\n idleCallback: true,\n });\n\n return Number(result);\n };\n\n clock.cancelIdleCallback = function cancelIdleCallback(timerId) {\n return clearTimer(clock, timerId, \"IdleCallback\");\n };\n\n clock.setTimeout = function setTimeout(func, timeout) {\n return addTimer(clock, {\n func: func,\n args: Array.prototype.slice.call(arguments, 2),\n delay: timeout,\n });\n };\n if (typeof _global.Promise !== \"undefined\" && utilPromisify) {\n clock.setTimeout[utilPromisify.custom] =\n function promisifiedSetTimeout(timeout, arg) {\n return new _global.Promise(function setTimeoutExecutor(\n resolve\n ) {\n addTimer(clock, {\n func: resolve,\n args: [arg],\n delay: timeout,\n });\n });\n };\n }\n\n clock.clearTimeout = function clearTimeout(timerId) {\n return clearTimer(clock, timerId, \"Timeout\");\n };\n\n clock.nextTick = function nextTick(func) {\n return enqueueJob(clock, {\n func: func,\n args: Array.prototype.slice.call(arguments, 1),\n error: isNearInfiniteLimit ? new Error() : null,\n });\n };\n\n clock.queueMicrotask = function queueMicrotask(func) {\n return clock.nextTick(func); // explicitly drop additional arguments\n };\n\n clock.setInterval = function setInterval(func, timeout) {\n // eslint-disable-next-line no-param-reassign\n timeout = parseInt(timeout, 10);\n return addTimer(clock, {\n func: func,\n args: Array.prototype.slice.call(arguments, 2),\n delay: timeout,\n interval: timeout,\n });\n };\n\n clock.clearInterval = function clearInterval(timerId) {\n return clearTimer(clock, timerId, \"Interval\");\n };\n\n if (setImmediatePresent) {\n clock.setImmediate = function setImmediate(func) {\n return addTimer(clock, {\n func: func,\n args: Array.prototype.slice.call(arguments, 1),\n immediate: true,\n });\n };\n\n if (typeof _global.Promise !== \"undefined\" && utilPromisify) {\n clock.setImmediate[utilPromisify.custom] =\n function promisifiedSetImmediate(arg) {\n return new _global.Promise(\n function setImmediateExecutor(resolve) {\n addTimer(clock, {\n func: resolve,\n args: [arg],\n immediate: true,\n });\n }\n );\n };\n }\n\n clock.clearImmediate = function clearImmediate(timerId) {\n return clearTimer(clock, timerId, \"Immediate\");\n };\n }\n\n clock.countTimers = function countTimers() {\n return (\n Object.keys(clock.timers || {}).length +\n (clock.jobs || []).length\n );\n };\n\n clock.requestAnimationFrame = function requestAnimationFrame(func) {\n const result = addTimer(clock, {\n func: func,\n delay: getTimeToNextFrame(),\n get args() {\n return [fakePerformanceNow()];\n },\n animation: true,\n });\n\n return Number(result);\n };\n\n clock.cancelAnimationFrame = function cancelAnimationFrame(timerId) {\n return clearTimer(clock, timerId, \"AnimationFrame\");\n };\n\n clock.runMicrotasks = function runMicrotasks() {\n runJobs(clock);\n };\n\n /**\n * @param {number|string} tickValue milliseconds or a string parseable by parseTime\n * @param {boolean} isAsync\n * @param {Function} resolve\n * @param {Function} reject\n * @returns {number|undefined} will return the new `now` value or nothing for async\n */\n function doTick(tickValue, isAsync, resolve, reject) {\n const msFloat =\n typeof tickValue === \"number\"\n ? tickValue\n : parseTime(tickValue);\n const ms = Math.floor(msFloat);\n const remainder = nanoRemainder(msFloat);\n let nanosTotal = nanos + remainder;\n let tickTo = clock.now + ms;\n\n if (msFloat < 0) {\n throw new TypeError(\"Negative ticks are not supported\");\n }\n\n // adjust for positive overflow\n if (nanosTotal >= 1e6) {\n tickTo += 1;\n nanosTotal -= 1e6;\n }\n\n nanos = nanosTotal;\n let tickFrom = clock.now;\n let previous = clock.now;\n // ESLint fails to detect this correctly\n /* eslint-disable prefer-const */\n let timer,\n firstException,\n oldNow,\n nextPromiseTick,\n compensationCheck,\n postTimerCall;\n /* eslint-enable prefer-const */\n\n clock.duringTick = true;\n\n // perform microtasks\n oldNow = clock.now;\n runJobs(clock);\n if (oldNow !== clock.now) {\n // compensate for any setSystemTime() call during microtask callback\n tickFrom += clock.now - oldNow;\n tickTo += clock.now - oldNow;\n }\n\n //eslint-disable-next-line jsdoc/require-jsdoc\n function doTickInner() {\n // perform each timer in the requested range\n timer = firstTimerInRange(clock, tickFrom, tickTo);\n // eslint-disable-next-line no-unmodified-loop-condition\n while (timer && tickFrom <= tickTo) {\n if (clock.timers[timer.id]) {\n tickFrom = timer.callAt;\n clock.now = timer.callAt;\n oldNow = clock.now;\n try {\n runJobs(clock);\n callTimer(clock, timer);\n } catch (e) {\n firstException = firstException || e;\n }\n\n if (isAsync) {\n // finish up after native setImmediate callback to allow\n // all native es6 promises to process their callbacks after\n // each timer fires.\n originalSetTimeout(nextPromiseTick);\n return;\n }\n\n compensationCheck();\n }\n\n postTimerCall();\n }\n\n // perform process.nextTick()s again\n oldNow = clock.now;\n runJobs(clock);\n if (oldNow !== clock.now) {\n // compensate for any setSystemTime() call during process.nextTick() callback\n tickFrom += clock.now - oldNow;\n tickTo += clock.now - oldNow;\n }\n clock.duringTick = false;\n\n // corner case: during runJobs new timers were scheduled which could be in the range [clock.now, tickTo]\n timer = firstTimerInRange(clock, tickFrom, tickTo);\n if (timer) {\n try {\n clock.tick(tickTo - clock.now); // do it all again - for the remainder of the requested range\n } catch (e) {\n firstException = firstException || e;\n }\n } else {\n // no timers remaining in the requested range: move the clock all the way to the end\n clock.now = tickTo;\n\n // update nanos\n nanos = nanosTotal;\n }\n if (firstException) {\n throw firstException;\n }\n\n if (isAsync) {\n resolve(clock.now);\n } else {\n return clock.now;\n }\n }\n\n nextPromiseTick =\n isAsync &&\n function () {\n try {\n compensationCheck();\n postTimerCall();\n doTickInner();\n } catch (e) {\n reject(e);\n }\n };\n\n compensationCheck = function () {\n // compensate for any setSystemTime() call during timer callback\n if (oldNow !== clock.now) {\n tickFrom += clock.now - oldNow;\n tickTo += clock.now - oldNow;\n previous += clock.now - oldNow;\n }\n };\n\n postTimerCall = function () {\n timer = firstTimerInRange(clock, previous, tickTo);\n previous = tickFrom;\n };\n\n return doTickInner();\n }\n\n /**\n * @param {string|number} tickValue number of milliseconds or a human-readable value like \"01:11:15\"\n * @returns {number} will return the new `now` value\n */\n clock.tick = function tick(tickValue) {\n return doTick(tickValue, false);\n };\n\n if (typeof _global.Promise !== \"undefined\") {\n /**\n * @param {string|number} tickValue number of milliseconds or a human-readable value like \"01:11:15\"\n * @returns {Promise}\n */\n clock.tickAsync = function tickAsync(tickValue) {\n return new _global.Promise(function (resolve, reject) {\n originalSetTimeout(function () {\n try {\n doTick(tickValue, true, resolve, reject);\n } catch (e) {\n reject(e);\n }\n });\n });\n };\n }\n\n clock.next = function next() {\n runJobs(clock);\n const timer = firstTimer(clock);\n if (!timer) {\n return clock.now;\n }\n\n clock.duringTick = true;\n try {\n clock.now = timer.callAt;\n callTimer(clock, timer);\n runJobs(clock);\n return clock.now;\n } finally {\n clock.duringTick = false;\n }\n };\n\n if (typeof _global.Promise !== \"undefined\") {\n clock.nextAsync = function nextAsync() {\n return new _global.Promise(function (resolve, reject) {\n originalSetTimeout(function () {\n try {\n const timer = firstTimer(clock);\n if (!timer) {\n resolve(clock.now);\n return;\n }\n\n let err;\n clock.duringTick = true;\n clock.now = timer.callAt;\n try {\n callTimer(clock, timer);\n } catch (e) {\n err = e;\n }\n clock.duringTick = false;\n\n originalSetTimeout(function () {\n if (err) {\n reject(err);\n } else {\n resolve(clock.now);\n }\n });\n } catch (e) {\n reject(e);\n }\n });\n });\n };\n }\n\n clock.runAll = function runAll() {\n let numTimers, i;\n runJobs(clock);\n for (i = 0; i < clock.loopLimit; i++) {\n if (!clock.timers) {\n resetIsNearInfiniteLimit();\n return clock.now;\n }\n\n numTimers = Object.keys(clock.timers).length;\n if (numTimers === 0) {\n resetIsNearInfiniteLimit();\n return clock.now;\n }\n\n clock.next();\n checkIsNearInfiniteLimit(clock, i);\n }\n\n const excessJob = firstTimer(clock);\n throw getInfiniteLoopError(clock, excessJob);\n };\n\n clock.runToFrame = function runToFrame() {\n return clock.tick(getTimeToNextFrame());\n };\n\n if (typeof _global.Promise !== \"undefined\") {\n clock.runAllAsync = function runAllAsync() {\n return new _global.Promise(function (resolve, reject) {\n let i = 0;\n /**\n *\n */\n function doRun() {\n originalSetTimeout(function () {\n try {\n let numTimers;\n if (i < clock.loopLimit) {\n if (!clock.timers) {\n resetIsNearInfiniteLimit();\n resolve(clock.now);\n return;\n }\n\n numTimers = Object.keys(\n clock.timers\n ).length;\n if (numTimers === 0) {\n resetIsNearInfiniteLimit();\n resolve(clock.now);\n return;\n }\n\n clock.next();\n\n i++;\n\n doRun();\n checkIsNearInfiniteLimit(clock, i);\n return;\n }\n\n const excessJob = firstTimer(clock);\n reject(getInfiniteLoopError(clock, excessJob));\n } catch (e) {\n reject(e);\n }\n });\n }\n doRun();\n });\n };\n }\n\n clock.runToLast = function runToLast() {\n const timer = lastTimer(clock);\n if (!timer) {\n runJobs(clock);\n return clock.now;\n }\n\n return clock.tick(timer.callAt - clock.now);\n };\n\n if (typeof _global.Promise !== \"undefined\") {\n clock.runToLastAsync = function runToLastAsync() {\n return new _global.Promise(function (resolve, reject) {\n originalSetTimeout(function () {\n try {\n const timer = lastTimer(clock);\n if (!timer) {\n resolve(clock.now);\n }\n\n resolve(clock.tickAsync(timer.callAt - clock.now));\n } catch (e) {\n reject(e);\n }\n });\n });\n };\n }\n\n clock.reset = function reset() {\n nanos = 0;\n clock.timers = {};\n clock.jobs = [];\n clock.now = start;\n };\n\n clock.setSystemTime = function setSystemTime(systemTime) {\n // determine time difference\n const newNow = getEpoch(systemTime);\n const difference = newNow - clock.now;\n let id, timer;\n\n adjustedSystemTime[0] = adjustedSystemTime[0] + difference;\n adjustedSystemTime[1] = adjustedSystemTime[1] + nanos;\n // update 'system clock'\n clock.now = newNow;\n nanos = 0;\n\n // update timers and intervals to keep them stable\n for (id in clock.timers) {\n if (clock.timers.hasOwnProperty(id)) {\n timer = clock.timers[id];\n timer.createdAt += difference;\n timer.callAt += difference;\n }\n }\n };\n\n if (performancePresent) {\n clock.performance = Object.create(null);\n clock.performance.now = fakePerformanceNow;\n }\n\n if (hrtimePresent) {\n clock.hrtime = hrtime;\n }\n\n return clock;\n }\n\n /* eslint-disable complexity */\n\n /**\n * @param {Config=} [config] Optional config\n * @returns {Clock}\n */\n function install(config) {\n if (\n arguments.length > 1 ||\n config instanceof Date ||\n Array.isArray(config) ||\n typeof config === \"number\"\n ) {\n throw new TypeError(\n `FakeTimers.install called with ${String(\n config\n )} install requires an object parameter`\n );\n }\n\n if (_global.Date.isFake === true) {\n // Timers are already faked; this is a problem.\n // Make the user reset timers before continuing.\n throw new TypeError(\n \"Can't install fake timers twice on the same global object.\"\n );\n }\n\n // eslint-disable-next-line no-param-reassign\n config = typeof config !== \"undefined\" ? config : {};\n config.shouldAdvanceTime = config.shouldAdvanceTime || false;\n config.advanceTimeDelta = config.advanceTimeDelta || 20;\n config.shouldClearNativeTimers =\n config.shouldClearNativeTimers || false;\n\n if (config.target) {\n throw new TypeError(\n \"config.target is no longer supported. Use `withGlobal(target)` instead.\"\n );\n }\n\n let i, l;\n const clock = createClock(config.now, config.loopLimit);\n clock.shouldClearNativeTimers = config.shouldClearNativeTimers;\n\n clock.uninstall = function () {\n return uninstall(clock, config);\n };\n\n clock.methods = config.toFake || [];\n\n if (clock.methods.length === 0) {\n // do not fake nextTick by default - GitHub#126\n clock.methods = Object.keys(timers).filter(function (key) {\n return key !== \"nextTick\" && key !== \"queueMicrotask\";\n });\n }\n\n if (config.shouldAdvanceTime === true) {\n const intervalTick = doIntervalTick.bind(\n null,\n clock,\n config.advanceTimeDelta\n );\n const intervalId = _global.setInterval(\n intervalTick,\n config.advanceTimeDelta\n );\n clock.attachedInterval = intervalId;\n }\n\n if (clock.methods.includes(\"performance\")) {\n const proto = (() => {\n if (hasPerformancePrototype) {\n return _global.Performance.prototype;\n }\n if (hasPerformanceConstructorPrototype) {\n return _global.performance.constructor.prototype;\n }\n })();\n if (proto) {\n Object.getOwnPropertyNames(proto).forEach(function (name) {\n if (name !== \"now\") {\n clock.performance[name] =\n name.indexOf(\"getEntries\") === 0\n ? NOOP_ARRAY\n : NOOP;\n }\n });\n } else if ((config.toFake || []).includes(\"performance\")) {\n // user explicitly tried to fake performance when not present\n throw new ReferenceError(\n \"non-existent performance object cannot be faked\"\n );\n }\n }\n\n for (i = 0, l = clock.methods.length; i < l; i++) {\n const nameOfMethodToReplace = clock.methods[i];\n if (nameOfMethodToReplace === \"hrtime\") {\n if (\n _global.process &&\n typeof _global.process.hrtime === \"function\"\n ) {\n hijackMethod(_global.process, nameOfMethodToReplace, clock);\n }\n } else if (nameOfMethodToReplace === \"nextTick\") {\n if (\n _global.process &&\n typeof _global.process.nextTick === \"function\"\n ) {\n hijackMethod(_global.process, nameOfMethodToReplace, clock);\n }\n } else {\n hijackMethod(_global, nameOfMethodToReplace, clock);\n }\n }\n\n return clock;\n }\n\n /* eslint-enable complexity */\n\n return {\n timers: timers,\n createClock: createClock,\n install: install,\n withGlobal: withGlobal,\n };\n}\n\n/**\n * @typedef {object} FakeTimers\n * @property {Timers} timers\n * @property {createClock} createClock\n * @property {Function} install\n * @property {withGlobal} withGlobal\n */\n\n/* eslint-enable complexity */\n\n/** @type {FakeTimers} */\nconst defaultImplementation = withGlobal(globalObject);\n\ndefaultImplementation.timers;\ndefaultImplementation.createClock;\ndefaultImplementation.install;\nvar withGlobal_1 = withGlobal;\n\nconst RealDate = Date;\nlet now = null;\nclass MockDate extends RealDate {\n constructor(y, m, d, h, M, s, ms) {\n super();\n let date;\n switch (arguments.length) {\n case 0:\n if (now !== null)\n date = new RealDate(now.valueOf());\n else\n date = new RealDate();\n break;\n case 1:\n date = new RealDate(y);\n break;\n default:\n d = typeof d === \"undefined\" ? 1 : d;\n h = h || 0;\n M = M || 0;\n s = s || 0;\n ms = ms || 0;\n date = new RealDate(y, m, d, h, M, s, ms);\n break;\n }\n return date;\n }\n}\nMockDate.UTC = RealDate.UTC;\nMockDate.now = function() {\n return new MockDate().valueOf();\n};\nMockDate.parse = function(dateString) {\n return RealDate.parse(dateString);\n};\nMockDate.toString = function() {\n return RealDate.toString();\n};\nfunction mockDate(date) {\n const dateObj = new RealDate(date.valueOf());\n if (isNaN(dateObj.getTime()))\n throw new TypeError(`mockdate: The time set is an invalid date: ${date}`);\n globalThis.Date = MockDate;\n now = dateObj.valueOf();\n}\nfunction resetDate() {\n globalThis.Date = RealDate;\n}\n\nclass FakeTimers {\n constructor({\n global,\n config\n }) {\n this._now = RealDate.now;\n this._userConfig = config;\n this._fakingDate = false;\n this._fakingTime = false;\n this._fakeTimers = withGlobal_1(global);\n }\n clearAllTimers() {\n if (this._fakingTime)\n this._clock.reset();\n }\n dispose() {\n this.useRealTimers();\n }\n runAllTimers() {\n if (this._checkFakeTimers())\n this._clock.runAll();\n }\n async runAllTimersAsync() {\n if (this._checkFakeTimers())\n await this._clock.runAllAsync();\n }\n runOnlyPendingTimers() {\n if (this._checkFakeTimers())\n this._clock.runToLast();\n }\n async runOnlyPendingTimersAsync() {\n if (this._checkFakeTimers())\n await this._clock.runToLastAsync();\n }\n advanceTimersToNextTimer(steps = 1) {\n if (this._checkFakeTimers()) {\n for (let i = steps; i > 0; i--) {\n this._clock.next();\n this._clock.tick(0);\n if (this._clock.countTimers() === 0)\n break;\n }\n }\n }\n async advanceTimersToNextTimerAsync(steps = 1) {\n if (this._checkFakeTimers()) {\n for (let i = steps; i > 0; i--) {\n await this._clock.nextAsync();\n this._clock.tick(0);\n if (this._clock.countTimers() === 0)\n break;\n }\n }\n }\n advanceTimersByTime(msToRun) {\n if (this._checkFakeTimers())\n this._clock.tick(msToRun);\n }\n async advanceTimersByTimeAsync(msToRun) {\n if (this._checkFakeTimers())\n await this._clock.tickAsync(msToRun);\n }\n runAllTicks() {\n if (this._checkFakeTimers()) {\n this._clock.runMicrotasks();\n }\n }\n useRealTimers() {\n if (this._fakingDate) {\n resetDate();\n this._fakingDate = false;\n }\n if (this._fakingTime) {\n this._clock.uninstall();\n this._fakingTime = false;\n }\n }\n useFakeTimers() {\n if (this._fakingDate) {\n throw new Error(\n '\"setSystemTime\" was called already and date was mocked. Reset timers using `vi.useRealTimers()` if you want to use fake timers again.'\n );\n }\n if (!this._fakingTime) {\n const toFake = Object.keys(this._fakeTimers.timers);\n this._clock = this._fakeTimers.install({\n now: Date.now(),\n toFake,\n ...this._userConfig\n });\n this._fakingTime = true;\n }\n }\n reset() {\n if (this._checkFakeTimers()) {\n const { now } = this._clock;\n this._clock.reset();\n this._clock.setSystemTime(now);\n }\n }\n setSystemTime(now) {\n if (this._fakingTime) {\n this._clock.setSystemTime(now);\n } else {\n mockDate(now ?? this.getRealSystemTime());\n this._fakingDate = true;\n }\n }\n getRealSystemTime() {\n return this._now();\n }\n getTimerCount() {\n if (this._checkFakeTimers())\n return this._clock.countTimers();\n return 0;\n }\n configure(config) {\n this._userConfig = config;\n }\n _checkFakeTimers() {\n if (!this._fakingTime) {\n throw new Error(\n 'Timers are not mocked. Try calling \"vi.useFakeTimers()\" first.'\n );\n }\n return this._fakingTime;\n }\n}\n\nfunction createVitest() {\n const _mocker = typeof __vitest_mocker__ !== \"undefined\" ? __vitest_mocker__ : new Proxy({}, {\n get(name) {\n throw new Error(\n `Vitest mocker was not initialized in this environment. vi.${name}() is forbidden.`\n );\n }\n });\n let _mockedDate = null;\n let _config = null;\n const workerState = getWorkerState();\n const _timers = new FakeTimers({\n global: globalThis,\n config: workerState.config.fakeTimers\n });\n const _stubsGlobal = /* @__PURE__ */ new Map();\n const _stubsEnv = /* @__PURE__ */ new Map();\n const getImporter = () => {\n const stackTrace = createSimpleStackTrace({ stackTraceLimit: 4 });\n const importerStack = stackTrace.split(\"\\n\")[4];\n const stack = parseSingleStack(importerStack);\n return (stack == null ? void 0 : stack.file) || \"\";\n };\n return {\n useFakeTimers(config) {\n if (config) {\n _timers.configure(config);\n } else {\n const workerState2 = getWorkerState();\n _timers.configure(workerState2.config.fakeTimers);\n }\n _timers.useFakeTimers();\n return this;\n },\n useRealTimers() {\n _timers.useRealTimers();\n _mockedDate = null;\n return this;\n },\n runOnlyPendingTimers() {\n _timers.runOnlyPendingTimers();\n return this;\n },\n async runOnlyPendingTimersAsync() {\n await _timers.runOnlyPendingTimersAsync();\n return this;\n },\n runAllTimers() {\n _timers.runAllTimers();\n return this;\n },\n async runAllTimersAsync() {\n await _timers.runAllTimersAsync();\n return this;\n },\n runAllTicks() {\n _timers.runAllTicks();\n return this;\n },\n advanceTimersByTime(ms) {\n _timers.advanceTimersByTime(ms);\n return this;\n },\n async advanceTimersByTimeAsync(ms) {\n await _timers.advanceTimersByTimeAsync(ms);\n return this;\n },\n advanceTimersToNextTimer() {\n _timers.advanceTimersToNextTimer();\n return this;\n },\n async advanceTimersToNextTimerAsync() {\n await _timers.advanceTimersToNextTimerAsync();\n return this;\n },\n getTimerCount() {\n return _timers.getTimerCount();\n },\n setSystemTime(time) {\n const date = time instanceof Date ? time : new Date(time);\n _mockedDate = date;\n _timers.setSystemTime(date);\n return this;\n },\n getMockedSystemTime() {\n return _mockedDate;\n },\n getRealSystemTime() {\n return _timers.getRealSystemTime();\n },\n clearAllTimers() {\n _timers.clearAllTimers();\n return this;\n },\n // mocks\n spyOn,\n fn,\n mock(path, factory) {\n const importer = getImporter();\n _mocker.queueMock(\n path,\n importer,\n factory ? () => factory(() => _mocker.importActual(path, importer)) : void 0\n );\n },\n unmock(path) {\n _mocker.queueUnmock(path, getImporter());\n },\n doMock(path, factory) {\n _mocker.queueMock(path, getImporter(), factory);\n },\n doUnmock(path) {\n _mocker.queueUnmock(path, getImporter());\n },\n async importActual(path) {\n return _mocker.importActual(path, getImporter());\n },\n async importMock(path) {\n return _mocker.importMock(path, getImporter());\n },\n mocked(item, _options = {}) {\n return item;\n },\n isMockFunction(fn2) {\n return isMockFunction(fn2);\n },\n clearAllMocks() {\n spies.forEach((spy) => spy.mockClear());\n return this;\n },\n resetAllMocks() {\n spies.forEach((spy) => spy.mockReset());\n return this;\n },\n restoreAllMocks() {\n spies.forEach((spy) => spy.mockRestore());\n return this;\n },\n stubGlobal(name, value) {\n if (!_stubsGlobal.has(name))\n _stubsGlobal.set(name, Object.getOwnPropertyDescriptor(globalThis, name));\n Object.defineProperty(globalThis, name, {\n value,\n writable: true,\n configurable: true,\n enumerable: true\n });\n return this;\n },\n stubEnv(name, value) {\n if (!_stubsEnv.has(name))\n _stubsEnv.set(name, process.env[name]);\n process.env[name] = value;\n return this;\n },\n unstubAllGlobals() {\n _stubsGlobal.forEach((original, name) => {\n if (!original)\n Reflect.deleteProperty(globalThis, name);\n else\n Object.defineProperty(globalThis, name, original);\n });\n _stubsGlobal.clear();\n return this;\n },\n unstubAllEnvs() {\n _stubsEnv.forEach((original, name) => {\n if (original === void 0)\n delete process.env[name];\n else\n process.env[name] = original;\n });\n _stubsEnv.clear();\n return this;\n },\n resetModules() {\n const state = getWorkerState();\n resetModules(state.moduleCache);\n return this;\n },\n async dynamicImportSettled() {\n return waitForImportsToResolve();\n },\n setConfig(config) {\n const state = getWorkerState();\n if (!_config)\n _config = { ...state.config };\n Object.assign(state.config, config);\n },\n resetConfig() {\n if (_config) {\n const state = getWorkerState();\n Object.assign(state.config, _config);\n }\n }\n };\n}\nconst vitest = createVitest();\nconst vi = vitest;\n\nexport { RealDate as R, getBenchOptions as a, getBenchFn as b, createExpect as c, globalExpect as d, bench as e, vitest as f, getSnapshotClient as g, setupChaiConfig as s, vi as v };\n"],"names":["assertTypes","value","name","types","receivedType","isObject","item","noop","objectAttr","source","path","defaultValue","paths","result","p","wrapAnsi256","offset","code","wrapAnsi16m","red","green","blue","assembleStyles","codes","styles","groupName","group","styleName","style","hex","matches","colorString","character","integer","module","collections","printIteratorEntries","printIteratorValues","printListItems","printObjectProperties","getKeysOfEnumerableProperties","object","compareKeys","keys","symbol","iterator","config","indentation","depth","refs","printer","separator","current","indentationNext","list","i","val","key","AsymmetricMatcher","_collections","require$$0","global","Symbol","asymmetricMatcher","SPACE","serialize","stringedValue","test","plugin","_default","ansiRegex","onlyFirst","pattern","ConvertAnsi","_ansiRegex","_interopRequireDefault","_ansiStyles","require$$1","obj","toHumanReadableAnsi","text","match","DOMCollection","OBJECT_NAMES","ARRAY_REGEXP","testName","isNamedNodeMap","collection","props","attribute","escapeHTML_1","escapeHTML","str","markup","_escapeHTML","printProps","colors","printed","printChildren","children","child","printText","contentColor","printComment","comment","commentColor","printElement","type","printedProps","printedChildren","tagColor","printElementAsLeaf","DOMElement","_markup","ELEMENT_NODE","TEXT_NODE","COMMENT_NODE","FRAGMENT_NODE","ELEMENT_REGEXP","testHasAttribute","testNode","constructorName","nodeType","tagName","isCustomElement","_val$constructor","nodeIsText","node","nodeIsComment","nodeIsFragment","attr","Immutable","IS_ITERABLE_SENTINEL","IS_LIST_SENTINEL","IS_KEYED_SENTINEL","IS_MAP_SENTINEL","IS_ORDERED_SENTINEL","IS_RECORD_SENTINEL","IS_SEQ_SENTINEL","IS_SET_SENTINEL","IS_STACK_SENTINEL","getImmutableName","printAsLeaf","LAZY","printImmutableEntries","getRecordEntries","printImmutableRecord","printImmutableSeq","printImmutableValues","b","c","d","e","f","g","h","k","l","m","n","q","r","u","v","w","x","y","a","t","z","A","B","C","D","E","F","G","H","I","reactIs_production_min","ReactElement","ReactIs","_interopRequireWildcard","_getRequireWildcardCache","nodeInterop","cacheBabelInterop","cacheNodeInterop","cache","newObj","hasPropertyDescriptor","desc","getChildren","arg","getType","element","functionName","getPropKeys","ReactTestComponent","testSymbol","build","format_1","format","plugins_1","_AsymmetricMatcher","require$$2","_ConvertAnsi","require$$3","_DOMCollection","require$$4","_DOMElement","require$$5","_Immutable","require$$6","_ReactElement","require$$7","_ReactTestComponent","require$$8","toString","toISOString","errorToString","regExpToString","getConstructorName","isWindow","SYMBOL_REGEXP","NEWLINE_REGEXP","PrettyFormatPluginError","message","stack","isToStringedArrayType","toStringed","printNumber","printBigInt","printFunction","printFunctionName","printSymbol","printError","printBasicValue","escapeRegex","escapeString","typeOf","printComplexValue","hasCalledToJSON","hitMaxDepth","min","isNewPlugin","printPlugin","valChild","error","findPlugin","plugins","basicResult","DEFAULT_THEME","DEFAULT_THEME_KEYS","DEFAULT_OPTIONS","validateOptions","options","getColorsHighlight","color","getColorsEmpty","getPrintFunctionName","getEscapeRegex","getEscapeString","getConfig","_options$printBasicPr","createIndent","indent","SAFE_TIMERS_SYMBOL","SAFE_COLORS_SYMBOL","colorsMap","colorsEntries","string","defaultColors","acc","getColors","shams","sym","symObj","symVal","syms","descriptor","hasSymbols","origSymbol","hasSymbolSham","ERROR_MESSAGE","slice","toStr","funcType","implementation","that","target","args","bound","binder","boundLength","boundArgs","Empty","functionBind","bind","src","undefined","$SyntaxError","$Function","$TypeError","getEvalledConstructor","expressionSyntax","$gOPD","throwTypeError","ThrowTypeError","getProto","needsEval","TypedArray","INTRINSICS","errorProto","doEval","fn","gen","LEGACY_ALIASES","hasOwn","$concat","$spliceApply","$replace","$strSlice","$exec","rePropName","reEscapeChar","stringToPath","first","last","number","quote","subString","getBaseIntrinsic","allowMissing","intrinsicName","alias","getIntrinsic","parts","intrinsicBaseName","intrinsic","intrinsicRealName","skipFurtherCaching","isOwn","part","GetIntrinsic","$apply","$call","$reflectApply","$defineProperty","$max","originalFunction","func","applyBind","callBind","$indexOf","callBound","hasToStringTag","$toString","isStandardArguments","isLegacyArguments","supportsStandardArguments","isArguments","fnToStr","isFnRegex","getGeneratorFunc","GeneratorFunction","isGeneratorFunction","generatorFunc","reflectApply","badArrayLike","isCallableMarker","_","constructorRegex","isES6ClassFn","fnStr","tryFunctionObject","objectClass","fnClass","genClass","ddaClass","ddaClass2","ddaClass3","isIE68","isDDA","all","isCallable","strClass","hasOwnProperty","forEachArray","array","receiver","len","forEachString","forEachObject","forEach","thisArg","forEach_1","possibleNames","availableTypedArrays","out","gopd","gOPD","typedArrays","$slice","toStrTags","getPrototypeOf","typedArray","arr","proto","superProto","tryTypedArrays","anyTrue","getter","isTypedArray","tag","foundName","whichTypedArray","isArgumentsObject","uncurryThis","BigIntSupported","SymbolSupported","ObjectToString","numberValue","stringValue","booleanValue","bigIntValue","symbolValue","checkBoxedPrimitive","prototypeValueOf","exports","isPromise","input","isArrayBufferView","isDataView","isUint8Array","isUint8ClampedArray","isUint16Array","isUint32Array","isInt8Array","isInt16Array","isInt32Array","isFloat32Array","isFloat64Array","isBigInt64Array","isBigUint64Array","isMapToString","isMap","isSetToString","isSet","isWeakMapToString","isWeakMap","isWeakSetToString","isWeakSet","isArrayBufferToString","isArrayBuffer","isDataViewToString","SharedArrayBufferCopy","isSharedArrayBufferToString","isSharedArrayBuffer","isAsyncFunction","isMapIterator","isSetIterator","isGeneratorObject","isWebAssemblyCompiledModule","isNumberObject","isStringObject","isBooleanObject","isBigIntObject","isSymbolObject","isBoxedPrimitive","isAnyArrayBuffer","method","isBufferBrowser","inherits_browserModule","ctor","superCtor","TempCtor","getOwnPropertyDescriptors","descriptors","formatRegExp","isString","objects","inspect","isNull","msg","warned","deprecated","debugs","debugEnvRegex","debugEnv","set","pid","opts","ctx","stylizeNoColor","isBoolean","isUndefined","stylizeWithColor","formatValue","styleType","arrayToHash","hash","idx","recurseTimes","isFunction","ret","primitive","formatPrimitive","visibleKeys","isError","formatError","isRegExp","isDate","base","braces","isArray","output","formatArray","formatProperty","reduceToSingleString","simple","isNumber","line","length","prev","cur","ar","isNullOrUndefined","isSymbol","re","objectToString","isPrimitive","o","pad","months","timestamp","time","origin","add","prop","kCustomPromisifiedSymbol","original","promiseResolve","promiseReject","promise","resolve","reject","err","callbackifyOnRejected","reason","cb","newReason","callbackify","callbackified","maybeCb","self","rej","__viteBrowserExternal","factory","this","_typeof","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","_arr","_n","_d","_e","_i","_s","minLen","_arrayLikeToArray","arr2","ansiColors","truncator","colorise","normaliseOptions","_ref","_ref$showHidden","showHidden","_ref$depth","_ref$colors","_ref$customInspect","customInspect","_ref$showProxy","showProxy","_ref$maxArrayLength","maxArrayLength","_ref$breakLength","breakLength","_ref$seen","seen","_ref$truncate","truncate","_ref$stylize","stylize","tail","tailLength","stringLength","inspectList","inspectItem","size","originalLength","peek","truncated","secondToLast","nextLength","truncatedLength","quoteComplexKey","inspectProperty","_ref2","_ref3","inspectArray","nonIndexProperties","listContents","propertyContents","functionNameMatch","getFuncName","aFunc","getFuncName_1","getArrayName","inspectTypedArray","inspectDate","dateObject","stringRepresentation","split","date","inspectFunction","inspectMapEntry","mapToEntries","map","entries","inspectMap","isNaN","inspectNumber","inspectBigInt","nums","inspectRegExp","flags","sourceLength","arrayFromSet","values","inspectSet","stringEscapeChars","escapeCharacters","unicodeLength","escape","char","inspectString","inspectSymbol","getPromiseValue","_process$binding","getPromiseDetails","kPending","kRejected","_getPromiseDetails","_getPromiseDetails2","state","innerValue","inspectPromise","inspectObject","properties","symbols","symbolContents","sep","toStringTag","inspectClass","inspectArguments","errorKeys","inspectObject$1","inspectAttribute","inspectHTMLCollection","inspectHTML","head","headClose","symbolsSupported","chaiInspect","nodeInspect","nodeUtil","FakeMap","constructorMap","stringTagMap","baseTypesMap","inspectCustom","toString$1","_options","registerConstructor","constructor","inspector","registerStringTag","stringTag","custom","PLUGINS","stringify","maxDepth","maxLength","MAX_LENGTH","format$1","getSafeTimers","safeSetTimeout","safeSetInterval","safeClearInterval","safeClearTimeout","safeSetImmediate","safeClearImmediate","safeNextTick","loupe","loupeImport","util","loupeInspect","objDisplay","truncateThreshold","createSimpleStackTrace","stackTraceLimit","limit","prepareStackTrace","stackTrace","normalizeWindowsPath","_IS_ABSOLUTE_RE","cwd","arguments_","argument","resolvedPath","resolvedAbsolute","index","isAbsolute","normalizeString","allowAboveRoot","res","lastSegmentLength","lastSlash","dots","lastSlashIndex","extractLocation","urlLike","parseSingleStack","raw","sanitizedLine","location","url","lineNumber","columnNumber","file","Circular$3","Circular_1","Circular","AMBIGUOUS","DEEP_EQUAL","SHALLOW_EQUAL","UNEQUAL","constants","Registry$1","pointer","Registry_1","Registry","ACTUAL","EXPECTED","translateGutter","theme","invert","gutter","Line","isFirst","isLast","other","Collection","infix","prefix","postfix","appended","lineOrLines","lines","buffer","from","otherLines","merged","seenLast","remaining","setDefaultGutter","iterable","lineBuilder","lineOrCollection","wrap","fromTheme","formatUtils","formatCtorAndStringTag","retval","ObjectFormatter$1","formatted","variant","methods","ObjectFormatter","SingleValueFormatter","finalizeFn","increaseIndent","getObjectKeys","excludeListItemAccessorsBelowLength","nameCandidates","symbolCandidates","accept","getObjectKeys_1","isLength","hop","hasLength","hasLength_1","NOOP_RECURSOR","recursorUtils","fork","recursor","next","consumeDeep","subject","mapFn","replay","create","done","sequence","second","fromFirst","singleValue","unshift","describeIterableRecursor","IterableStats","stats","describeListRecursor","ListStats","describePropertyRecursor","PropertyStats","deserializeIterableStats","deserializeListStats","deserializePropertyStats","iterableTag","listTag","propertyTag","Stats","expected","lhsRecursor","rhsRecursor","compareComplexShape","rhsFork","initialExpected","missing","lhsFork","actual","extraneous","describe","DescribedObjectValue","deserialize","DeserializedObjectValue","ObjectValue","DescribedMixin","DeserializedMixin","objectKeys","recursedProperty","recursedList","recursedIterable","DescribedArgumentsValue","_arguments","DeserializedArgumentsValue","ArgumentsValue","propertyStatsTag","getBuffer","DescribedTypedArrayValue","DeserializedTypedArrayValue","deserializeBytes","Bytes","bytesTag","TypedArrayValue","property","bytesDescriptor","DescribedArrayBufferValue","arrayBuffer","DeserializedArrayBufferValue","ArrayBufferValue","DIFF_DELETE","DIFF_INSERT","DIFF_EQUAL","diff_main","text1","text2","cursor_pos","_fix_unicode","editdiff","find_cursor_edit_diff","commonlength","diff_commonPrefix","commonprefix","diff_commonSuffix","commonsuffix","diffs","diff_compute_","diff_cleanupMerge","longtext","shorttext","hm","diff_halfMatch_","text1_a","text1_b","text2_a","text2_b","mid_common","diffs_a","diffs_b","diff_bisect_","text1_length","text2_length","max_d","v_offset","v_length","v1","v2","delta","front","k1start","k1end","k2start","k2end","k1","k1_offset","x1","y1","k2_offset","x2","diff_bisectSplit_","k2","y2","text1a","text2a","text1b","text2b","diffsb","pointermin","pointermax","pointermid","pointerstart","is_surrogate_pair_start","pointerend","is_surrogate_pair_end","diff_halfMatchI_","seed","j","best_common","best_longtext_a","best_longtext_b","best_shorttext_a","best_shorttext_b","prefixLength","suffixLength","hm1","hm2","fix_unicode","count_delete","count_insert","text_delete","text_insert","previous_equality","ends_with_pair_start","stray","starts_with_pair_end","changes","charCode","remove_empty_tuples","tuples","make_edit_splice","before","oldMiddle","newMiddle","after","oldText","newText","oldRange","newRange","oldLength","newLength","oldCursor","oldBefore","oldAfter","maybeNewCursor","editBefore","newCursor","newBefore","newAfter","oldPrefix","newPrefix","editAfter","cursor","oldSuffix","newSuffix","replaceRange","diff","diff_1","keyword","fastDiff","StringValue","basicEscape","CRLF_CONTROL_PICTURE","LF_CONTROL_PICTURE","CR_CONTROL_PICTURE","MATCH_CONTROL_PICTURES","escapeLinebreak","themeControlPictures","resetWrap","picture","MATCH_SINGLE_QUOTE","MATCH_DOUBLE_QUOTE","MATCH_BACKTICKS","escapeQuotes","includesLinebreaks","diffLine","outcome","isPartiallyEqual","stringActual","stringExpected","noopWrap","deleteWrap","insertWrap","equalWrap","deleteLineWrap","insertLineWrap","LINEBREAKS","gatherLines","prevIndex","escaped","lineStrings","lastIndex","escapedActual","escapedExpected","actualLines","expectedLines","lastActualIndex","lastExpectedIndex","actualBuffer","expectedBuffer","mustOpenNextExpected","actualIndex","expectedIndex","extraneousOffset","expectedIsMissing","compare","actualIsExtraneous","stringPrimitive","DescribedBoxedValue","boxed","DeserializedBoxedValue","BoxedValue","DescribedDataViewValue","dataView","DeserializedDataViewValue","DataViewValue","timeZone","absOffset","hours","minutes","minutesOut","dateTime","end","dateTimeModule","dateTime_1","invalid","DescribedDateValue","DeserializedDateValue","formatDate","DateValue","innerLines","iso","isEnumerable","isEnumerable_1","DescribedErrorValue","DeserializedErrorValue","ErrorValue","skipName","emitMessage","DescribedFunctionValue","_function","DeserializedFunctionValue","FunctionValue","GlobalValue","DescribedMapValue","DeserializedMapValue","MapValue","entry","DescribedPromiseValue","DeserializedPromiseValue","PromiseValue","regexp","DescribedRegexpValue","getSortedFlags","DeserializedRegexpValue","RegexpValue","innerIndentation","header","DescribedSetValue","DeserializedSetValue","SetValue","members","getCtor","getCtor_1","ts","getStringTag","fts","promiseCtorString","getStringTagModule","getStringTagWithPromiseWorkaround","describeComplex","ComplexItem","deserializeComplex","describePrimitive","PrimitiveItem","deserializePrimitive","complexTag","primitiveTag","increaseValueIndent","isCircular","mustRecurse","valueIndent","compareResult","baseAssignValue","eq","assignMergeValue","_assignMergeValue","isArrayLike","isObjectLike","isArrayLikeObject","isArrayLikeObject_1","safeGet","_safeGet","copyObject","keysIn","toPlainObject","toPlainObject_1","cloneBuffer","cloneTypedArray","copyArray","initCloneObject","isBuffer","require$$9","require$$10","isPlainObject","require$$11","require$$12","require$$13","require$$14","baseMergeDeep","srcIndex","mergeFunc","customizer","objValue","srcValue","stacked","newValue","isCommon","isArr","isBuff","isTyped","_baseMergeDeep","Stack","baseFor","baseMerge","_baseMerge","apply","_apply","nativeMax","overRest","start","transform","otherArgs","_overRest","constant","constant_1","defineProperty","identity","baseSetToString","_baseSetToString","HOT_COUNT","HOT_SPAN","nativeNow","shortOut","count","lastCalled","stamp","_shortOut","setToString","_setToString","baseRest","_baseRest","isIndex","isIterateeCall","_isIterateeCall","createAssigner","assigner","sources","guard","_createAssigner","merge","merge_1","SEMVER_SPEC_VERSION","MAX_SAFE_INTEGER","MAX_SAFE_COMPONENT_LENGTH","MAX_SAFE_BUILD_LENGTH","RELEASE_TYPES","debug","debug_1","safeRe","R","LETTERDASHNUMBER","safeRegexReplacements","makeSafeRegex","token","max","createToken","isGlobal","safe","looseOption","emptyOpts","parseOptions","parseOptions_1","numeric","compareIdentifiers","anum","bnum","rcompareIdentifiers","identifiers","SemVer$d","SemVer","version","id","num","release","identifier","identifierBase","prerelease","semver","parse","throwErrors","er","parse_1","valid","valid_1","clean","s","clean_1","inc","inc_1","version1","version2","comparison","v1Higher","highVersion","lowVersion","highHasPre","major","loose","major_1","minor","minor_1","patch","patch_1","parsed","prerelease_1","compare_1","rcompare","rcompare_1","compareLoose","compareLoose_1","compareBuild","versionA","versionB","compareBuild_1","sort","sort_1","rsort","rsort_1","gt","gt_1","lt","lt_1","eq_1","neq","neq_1","gte","gte_1","lte","lte_1","cmp","op","cmp_1","coerce","coerce_1","Yallist","walker","yallist","Node","push","thisp","initial","to","deleteCount","nodes","insert","inserted","MAX","LENGTH","LENGTH_CALCULATOR","ALLOW_STALE","MAX_AGE","DISPOSE","NO_DISPOSE_ON_SET","LRU_LIST","CACHE","UPDATE_AGE_ON_GET","naiveLength","LRUCache","lc","mL","trim","allowStale","mA","lC","hit","forEachStep","isStale","maxAge","now","del","Entry","get","expiresAt","doUse","lruCache","Range","range","Comparator","isNullSet","isAny","comps","memoKey","FLAG_INCLUDE_PRERELEASE","FLAG_LOOSE","cached","hr","hyphenReplace","comparatorTrimReplace","tildeTrimReplace","caretTrimReplace","rangeList","comp","parseComparator","replaceGTE0","rangeMap","comparators","thisComparators","isSatisfiable","rangeComparators","thisComparator","rangeComparator","testSet","LRU","remainingComparators","testComparator","otherComparator","replaceCarets","replaceTildes","replaceXRanges","replaceStars","isX","replaceTilde","M","pr","replaceCaret","replaceXRange","gtlt","xM","xm","xp","anyX","incPr","$0","fM","fm","fp","fpr","fb","tM","tm","tp","tpr","tb","allowed","ANY","comparator","satisfies","satisfies_1","toComparators","toComparators_1","maxSatisfying","versions","maxSV","rangeObj","maxSatisfying_1","minSatisfying","minSV","minSatisfying_1","minVersion","minver","setMin","compver","minVersion_1","validRange","outside","hilo","gtfn","ltefn","ltfn","ecomp","high","low","outside_1","gtr","gtr_1","ltr","ltr_1","intersects","r1","r2","intersects_1","simplify","ranges","simplified","subset","sub","dom","sawNonNull","OUTER","simpleSub","simpleDom","isSub","simpleSubset","minimumVersionWithPreRelease","minimumVersion","eqSet","higherGT","lowerLT","gtltComp","higher","lower","hasDomLT","hasDomGT","needDomLTPre","needDomGTPre","subset_1","internalRe","require$$15","require$$16","require$$17","require$$18","require$$19","require$$20","require$$21","require$$22","require$$23","require$$24","require$$25","require$$26","require$$27","require$$28","require$$29","require$$30","require$$31","require$$32","require$$33","require$$34","require$$35","require$$36","require$$37","require$$38","simplifyRange","require$$39","require$$40","jsStringEscape","WELL_KNOWN","wellKnownSymbols","stringEscape","stringCompare","SymbolValue","DeserializedSymbolValue","symbolPrimitive","ComplexProperty","PrimitiveProperty","Property","keyResult","pkg","itemDescriptor","propertyDescriptor","stringDescriptor","themeUtils","API_VERSION","CONCORDANCE_VERSION","descriptorRegistry","registry","PluginError","PluginTypeError","UnsupportedApiError","UnsupportedError","DuplicateDescriptorTagError","DuplicateDescriptorIdError","verify","publicDescriptorTags","publicLineBuilder","modifyTheme","modifier","id2deserialize","tag2id","addDescriptor","tryDescribeValue","registered","pluginRegistry","getDeserializers","getThemes","getTryDescribeValues","resolveDescriptorRef","cloneDeep","freezeTheme","queue","defaultTheme","pluginRefs","normalizedPluginThemes","normalizePlugins","themes","fromPlugin","ref","pluginTheme","normalizedCache","normalize","normalizedPlugins","modifiers","addModifier","modifierCache","originalCache","applyModifiers","modifiedTheme","applyModifiersToOriginal","keyDescriptor","valueDescriptor","keyIsPrimitive","valueIsPrimitive","MapEntry","mapEntry","mergeWithKey","keyRemainder","emitKey","emitValue","keysAreEqual","BigIntValue","bigInt","BooleanValue","boolean","NullValue","_null","NumberValue","UndefinedValue","_undefined","argumentsValue","arrayBufferValue","boxedValue","dataViewValue","dateValue","errorValue","functionValue","globalValue","mapValue","objectValue","promiseValue","regexpValue","setValue","typedArrayValue","mapEntryDescriptor","nullValue","undefinedValue","SpecializedComplexes","unboxComplex","complex","registerPlugins","tryFns","describeValue","tryPlugins","describeAny","describeItem","describeMapEntry","describeProperty","unboxed","curriedComplex","any","describe_1","argumentsObject","shouldCompareDeep","lhs","rhs","shouldCompareDeep_1","Comparable","ordered","processed","missingProperties","symbolProperties","Collector","firstProperty","shortcircuitPrimitive","compareDescriptors","lhsCircular","rhsCircular","lhsStack","rhsStack","topIndex","lhsRecord","rhsRecord","pass","Indenter$2","Indenter","level","step","Indenter_1","NOOP","alwaysFormat","collectedSymbolProperties","lhsCollector","rhsCollector","diffDescriptors","diffStack","diffIndex","builder","circular","depthOffset","formatStack","formatIndex","didFormat","formatter","record","firstPassSymbolProperty","parent","instructions","diffed","fixedIndent","formatDescriptor","$","safeAdd","lsw","msw","bitRotateLeft","cnt","md5cmn","md5ff","md5gg","md5hh","md5ii","binlMD5","olda","oldb","oldc","oldd","binl2rstr","length32","rstr2binl","length8","rstrMD5","rstrHMACMD5","data","bkey","ipad","opad","rstr2hex","hexTab","str2rstrUTF8","rawMD5","hexMD5","rawHMACMD5","hexHMACMD5","md5","blueimpMd5","browser","spreadableSymbol","isFlattenable","_isFlattenable","arrayPush","baseFlatten","predicate","isStrict","_baseFlatten","INFINITY","flattenDeep","flattenDeep_1","valueTypes","descriptorSymbol","encoder","encodeInteger","encoded","encodeValue","decodeValue","byteOffset","buildBuffer","numberOrArray","byte","buffers","byteLength","encode","serializerVersion","rootRecord","usedPlugins","versionHeader","rootOffset","numPlugins","pointers","recordHeader","decodePlugins","$numPlugins","$name","decodeRecord","$pluginIndex","pluginIndex","$id","$numPointers","numPointers","pointerAddresses","extractVersion","decode","pluginBuffer","Pointer","md5hex","pointerDescriptor","statsDescriptors","VERSION","mappings","mapping","DescriptorSerializationError","MissingPluginError","pluginName","PointerLookupError","UnsupportedPluginError","UnsupportedVersion","shallowSerializeDescriptor","resolvePluginRef","serializeState","serialized","serialize_1","deserializeState","getDescriptorDeserializer","shallowDeserializeDescriptor","deserializeRecord","deserializeDescriptor","endIndex","recursorRecord","buildPluginMap","cacheKey","decodedPlugins","pluginMap","deserializerLookup","deserializer","used","decoded","descriptorsByPointerIndex","mapPointerDescriptor","rootDescriptor","concordance","getConcordanceTheme","unifiedDiff","showLegend","counts","plus","minus","legend","createChainable","context","chain2","chain","getNames","task","names","_UNC_REGEX","_DRIVE_LETTER_RE","isUNCPath","isPathAbsolute","trailingSeparator","join","joined","dirname","segments","fnMap","hooksMap","setFn","setHooks","hooks","getHooks","collectorContext","collectTask","_a","runWithSuite","suite","withTimeout","timeout","isHook","setTimeout","clearTimeout","timer","makeTimeoutMsg","createTestContext","runner","createSuite","createTest","getCurrentSuite","defaultSuite","createSuiteHooks","createSuiteCollector","mode","concurrent","shuffle","suiteOptions","tasks","factoryQueue","suite2","initSuite","test2","name2","mode2","test3","collector","collect","clear","addHook","allChildren","suiteFn","cases","formatTemplateString","arrayOnlyCases","items","formatTitle","condition","testFn","fn2","template","oneCase","_test","getCurrentTest","getWorkerState","getCurrentEnvironment","isNode","getRunMode","isRunningInBenchmark","resetModules","modules","resetMocks","skipPaths","mod","exclude","excludes","excludeProps","assertionError","AssertionError","_props","ssf","extend","hasProperty","parsePath","mArr","internalGetPathValue","pathDepth","temporaryValue","internalSetPathValue","tempObj","propName","propVal","getPathInfo","info","getPathValue","setPathValue","pathval","flag","negate","expr","promiseExists","globalObject","symbolExists","mapExists","setExists","weakMapExists","weakSetExists","dataViewExists","symbolIteratorExists","symbolToStringTagExists","setEntriesExists","mapEntriesExists","setIteratorPrototype","mapIteratorPrototype","arrayIteratorExists","arrayIteratorPrototype","stringIteratorExists","stringIteratorPrototype","toStringLeftSliceLength","toStringRightSliceLength","typeDetect","typeofObj","objPrototype","expectTypes","flagMsg","ssfi","art","or","objType","getActual","inspect_1","kstr","getMessage","transferFlags","assertion","includeAll","MemoizeMap","memoizeCompare","leftHandOperand","rightHandOperand","memoizeMap","leftHandMap","memoizeSet","deepEqlModule","deepEqual","deepEql","extensiveDeepEqual","simpleResult","simpleEqual","memoizeResultLeft","memoizeResultRight","comparatorResult","leftHandType","extensiveDeepEqualByType","keysEqual","iterableEqual","regexpEqual","generatorEqual","entriesEqual","objectEqual","leftHandItems","rightHandItems","getGeneratorEntries","hasIteratorFunction","getIteratorEntries","generator","generatorResult","accumulator","getEnumerableKeys","getEnumerableSymbols","allKeys","leftHandKeys","rightHandKeys","leftHandSymbols","rightHandSymbols","mapSymbols","leftHandEntries","rightHandEntries","isProxyEnabled","chai","addProperty","propertyGetter","newAssertion","fnLengthDesc","addLengthGuard","assertionName","isChainable","getProperties","builtins","proxify","nonChainableMethodName","proxyGetter","suggestion","suggestionDistance","dist","stringDistanceCapped","strA","strB","cap","memo","ch","addMethod","methodWrapper","overwriteProperty","_get","_super","overwritingPropertyGetter","origLockSsfi","overwriteMethod","_method","overwritingMethodWrapper","canSetPrototype","excludeNames","propDesc","call","addChainableMethod","chainingBehavior","chainableBehavior","chainableMethodWrapper","prototype","asserterNames","asserterName","pd","overwriteChainableMethod","_chainingBehavior","compareByInspect","getOwnEnumerablePropertySymbols","getOwnEnumerableProperties","compatibleInstance","thrown","errorLike","compatibleConstructor","compatibleMessage","errMatcher","comparisonString","getFunctionName","constructorFn","checkError","_isNaN","isObjectType","objectType","objectTypes","getOperator","operator","utils","_chai","Assertion","lockSsfi","negateMsg","_actual","showDiff","ok","assertionErrorObjectProperties","assertions","an","article","SameValueZero","includeChainingBehavior","include","isDeep","included","isEql","firstErr","numErrs","propAssertion","assertExist","itemsCount","checkArguments","assertEqual","prevLockSsfi","assertEql","assertAbove","doLength","msgPrefix","nType","errorMessage","shouldThrow","printObj","assertLeast","assertBelow","assertMost","finish","startType","finishType","assertInstanceOf","isInstanceOf","assertProperty","isNested","nameType","pathInfo","assertOwnProperty","assertOwnPropertyDescriptor","actualDescriptor","assertLengthChain","assertLength","assertMatch","assertKeys","keysType","deepStr","mixedArgsMsg","expectedKey","actualKey","assertThrows","errMsgMatcher","caughtErr","everyArgIsUndefined","everyArgIsDefined","errorLikeFail","errMsgMatcherFail","errorLikeString","isCompatibleInstance","isCompatibleConstructor","placeholder","isCompatibleMessage","respondTo","itself","satisfy","matcher","closeTo","deltaMessage","isSubsetOf","superset","contains","elem","matchIdx","elem2","failMsg","failNegateMsg","oneOf","possibility","assertChanges","final","msgObj","assertIncreases","assertDecreases","assertDelta","behavior","realDelta","expression","isExtensible","isSealed","isFrozen","expect","should","loadShould","shouldGetter","shouldSetter","val1","val2","errt","errs","assert","express","errmsg","act","exp","abv","atlst","blw","atmst","assertErr","set1","set2","inList","tmpMsg","as","core","use","commonjsGlobal","P","O","K","T","spies","isMockFunction","spyOn","accessType","objMethod","stub","tinyspy.internalSpyOn","enhanceSpy","callOrder","spy","instances","invocations","tinyspy.getInternalState","mockContext","callType","onceImplementations","implementationChangedTemporarily","withImplementation","originalImplementation","reset","MATCHERS_OBJECT","JEST_MATCHERS_OBJECT","GLOBAL_EXPECT","globalState","matchers","getState","setState","getMatcherUtils","EXPECTED_COLOR","RECEIVED_COLOR","INVERTED_COLOR","BOLD_WEIGHT","DIM_COLOR","matcherHint","matcherName","received","isDirectExpectCall","isNot","secondArgument","expectedColor","receivedColor","secondArgumentColor","hint","dimString","SPACE_SYMBOL","replaceTrailingSpaces","spaces","equals","customTesters","strictCheck","hasKey","hasDefinedKey","isAsymmetric","isA","asymmetricMatch","asymmetricA","asymmetricB","aStack","bStack","hasKey2","asymmetricResult","customTesterResult","className","isDomNode","aKeys","keys2","typeName","isImmutableUnorderedKeyed","maybeKeyed","isImmutableUnorderedSet","maybeSet","IteratorSymbol","hasIterator","iterableEquality","iterableEqualityWithStack","a2","b2","allFound","aValue","has","bValue","aEntry","bEntry","matchedKey","matchedValue","bIterator","nextB","hasPropertyInObject","isObjectWithKeys","subsetEquality","subsetEqualityWithContext","seenReferences","object2","subset2","typeEquality","arrayBufferEquality","dataViewA","dataViewB","sparseArrayEquality","bKeys","generateToBeMessage","deepEqualityName","toBeMessage","AsymmetricMatcher$1","sample","inverse","StringContaining","Anything","ObjectContaining","ArrayContaining","another","Any","StringMatching","JestAsymmetricMatchers","recordAsyncExpect","JestChaiExpect","def","equal","propertyName","getValue","exists","valueString","precision","expectedDiff","receivedDiff","assertIsMock","getSpy","ordinalOf","formatCalls","actualCall","callArg","methodCall","formatReturns","actualReturn","callReturn","spyName","callCount","called","times","nthCall","lastCall","calledAndNotThrew","successfulReturns","success","lastResult","callResult","ordinalCall","nthCallReturn","proxy","wrapper","getMatcherState","jestUtils","JestExtendError","JestExtendPlugin","expectAssertionName","expectAssertion","expectWrapper","pass2","message2","actual2","expected2","CustomMatcher","JestExtend","expects","naturalCompare$1","naturalCompare","codeA","codeB","posA","posB","alphabet","getCode","pos","notNullish","getCallLastIndex","charIndex","inString","startedBracers","endedBracers","beforeChar","lineSplitRE","stackIgnorePatterns","parseStacktrace","ignore","stack2","parseErrorStacktrace","stackStr","stackFrames","positionToOffset","nl","offsetToLineNumber","counted","lineLength","serialize$1","nameString","callsString","addSerializer","getSerializers","testNameToKey","keyToTestName","getSnapshotData","content","update","snapshotContents","dirty","addExtraLineBreaks","removeExtraLineBreaks","formatOverrides","normalizeNewlines","escapeBacktickString","printBacktickString","ensureDirectoryExists","environment","filePath","saveSnapshotFile","snapshotData","snapshotPath","snapshots","oldContent","prepareExpected","findStartIndent","_b","matchObject","objectIndent","matchText","startIndent","expectedTrimmed","deepMergeArray","mergedOutput","sourceElement","targetElement","deepMergeSnapshot","saveInlineSnapshots","MagicString","__vitePreload","files","snaps","snap","replaceInlineSnap","transformed","startObjectRegex","replaceObjectSnap","newSnap","startMatch","prepareSnapString","indentNext","isOneline","startRegex","startIndex","snapString","endMatch","INDENTATION_REGEX","stripSnapshotIndentation","inlineSnapshot","saveRawSnapshots","SnapshotState","testFilePath","snapshotContent","uncheckedKey","stacks","promiseIndex","stackIndex","receivedSerialized","hasExternalSnapshots","hasInlineSnapshots","hasRawSnapshots","isEmpty","status","isInline","rawSnapshot","hasSnapshot","snapshotIsPersisted","snapshot","uncheckedCount","uncheckedKeys","createMismatchError","SnapshotClient","Service","filepath","snapshotState","getFullName","waitNextTick","waitForImportsToResolve","promises","resolvingCount","benchFns","benchOptsMap","createBenchmark","benchmark","commonjsRequire","chaiSubset","assertionPrototype","aa","eo","ao","Subset","VitestSnapshotClient","_client","getSnapshotClient","getErrorMessage","getErrorString","SnapshotPlugin","getTestNames","chai$1.use","createExpect","assertionCalls","assert2","chai$1.expect","errorGen","hasAssertions","chai$1.util","globalExpect","globalObject$1","throwsOnProto$1","throwsOnProto_1","throwsOnProto","disallowedProperties","copyPrototypeMethods","copyPrototype$5","every$1","hasCallsLeft","callMap","checkAdjacentCalls","calledBeforeNext","calledInOrder","_spies","calledInOrder_1","functionName$1","className_1","wrapped","packageName","funcName","every","aCall","bCall","aId","bId","orderByFirstCall","orderByFirstCall_1","copyPrototype$4","copyPrototype$3","copyPrototype$2","copyPrototype$1","copyPrototype","prototypes","valueToString","valueToString_1","lib","withGlobal","_global","userAgent","isRunningInIE","maxTimeout","idCounterStart","NOOP_ARRAY","timeoutResult","addTimerReturnsObject","hrtimePresent","hrtimeBigintPresent","nextTickPresent","utilPromisify","performancePresent","hasPerformancePrototype","hasPerformanceConstructorPrototype","queueMicrotaskPresent","requestAnimationFramePresent","cancelAnimationFramePresent","requestIdleCallbackPresent","cancelIdleCallbackPresent","setImmediatePresent","NativeDate","uniqueTimerId","isNumberFinite","isNearInfiniteLimit","checkIsNearInfiniteLimit","clock","resetIsNearInfiniteLimit","parseTime","strings","ms","nanoRemainder","msFloat","remainder","positiveRemainder","getEpoch","epoch","inRange","getInfiniteLoopError","job","infiniteLoopError","computedTargetPattern","clockMethodPattern","matchedLineIndex","mirrorDateProperties","createDate","ClockDate","year","month","hour","minute","enqueueJob","runJobs","addTimer","compareTimers","firstTimerInRange","timers","isInRange","firstTimer","lastTimer","callTimer","eval2","getClearHandler","ttype","getScheduleHandler","createWarnOnce","calls","warnOnce","clearTimer","timerId","handlerName","nativeHandler","schedule","uninstall","installedHrTime","installedNextTick","originalPerfDescriptor","hijackMethod","perfDescriptor","doIntervalTick","advanceTimeDelta","originalSetTimeout","createClock","loopLimit","nanos","adjustedSystemTime","getTimeToNextFrame","hrtime","millisSinceStart","secsSinceStart","remainderInNanos","oldSecs","nanoDiff","secDiff","fakePerformanceNow","hrt","timeToNextIdlePeriod","doTick","tickValue","isAsync","nanosTotal","tickTo","tickFrom","previous","firstException","oldNow","nextPromiseTick","compensationCheck","postTimerCall","doTickInner","numTimers","excessJob","doRun","systemTime","newNow","difference","install","intervalTick","intervalId","nameOfMethodToReplace","defaultImplementation","withGlobal_1","RealDate","MockDate","dateString","mockDate","dateObj","resetDate","FakeTimers","steps","msToRun","toFake","createVitest","_mocker","_mockedDate","_config","workerState","_timers","_stubsGlobal","_stubsEnv","getImporter","importerStack","workerState2","importer","vitest","vi"],"mappings":"2sCAGA,SAASA,GAAYC,EAAOC,EAAMC,EAAO,CACvC,MAAMC,EAAe,OAAOH,EAE5B,GAAI,CADSE,EAAM,SAASC,CAAY,EAEtC,MAAM,IAAI,UAAU,GAAGF,mBAAsBC,EAAM,KAAK,MAAM,gBAAgBC,IAAe,CACjG,CAsBA,SAASC,GAASC,EAAM,CACtB,OAAOA,GAAQ,MAAQ,OAAOA,GAAS,UAAY,CAAC,MAAM,QAAQA,CAAI,CACxE,CA6DA,SAASC,IAAO,CAChB,CACA,SAASC,GAAWC,EAAQC,EAAMC,EAAe,OAAQ,CACvD,MAAMC,EAAQF,EAAK,QAAQ,aAAc,KAAK,EAAE,MAAM,GAAG,EACzD,IAAIG,EAASJ,EACb,UAAWK,KAAKF,EAEd,GADAC,EAAS,OAAOA,CAAM,EAAEC,CAAC,EACrBD,IAAW,OACb,OAAOF,EAEX,OAAOE,CACT,iFCpGA,MAAME,EAAc,CAACC,EAAS,IAAMC,GAAQ,QAAU,GAA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C,CACL,CACA,CACA,MAAMS,GAASZ,GAAY,EACrBa,GAAKD;;;;;;;;;;;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214]} \ No newline at end of file diff --git a/storybook-static/assets/Color-6VNJS4EI-07669756.js b/storybook-static/assets/Color-6VNJS4EI-e3be26b7.js similarity index 99% rename from storybook-static/assets/Color-6VNJS4EI-07669756.js rename to storybook-static/assets/Color-6VNJS4EI-e3be26b7.js index a5a5ae1e8c..8eb4477640 100644 --- a/storybook-static/assets/Color-6VNJS4EI-07669756.js +++ b/storybook-static/assets/Color-6VNJS4EI-e3be26b7.js @@ -1,2 +1,2 @@ -import{n as M,W as ue,T as Ee,F as Me,I as Ce,g as $e}from"./index-10537af2.js";import{R as h,r as b}from"./index-2506bfc3.js";import{B as Ne,m as J}from"./identity-0adaf7d3.js";import{q as Oe}from"./index-98ab55b0.js";import"./iframe-6116c30d.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./index-0dfb046a.js";import"./index-d37d4223.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./inheritsLoose-0022215d.js";import"./cloneDeep-ab381718.js";import"./index-356e4a49.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var S=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,l.current)):_(!1)},N=function(){return _(!1)};function _(p){var m=i.current,x=V(o.current),C=p?x.addEventListener:x.removeEventListener;C(m?"touchmove":"mousemove",k),C(m?"touchend":"mouseup",N)}return[function(p){var m=p.nativeEvent,x=o.current;if(x&&(re(m),!function(X,R){return R&&!j(X)}(m,i.current)&&x)){if(j(m)){i.current=!0;var C=m.changedTouches||[];C.length&&(l.current=C[0].identifier)}x.focus(),a(ne(x,m,l.current)),_(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},_]},[s,a]),d=c[0],f=c[1],g=c[2];return b.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),F=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=F(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Ie={grad:.9,turn:360,rad:360/(2*Math.PI)},Se=function(e){return de(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},Re=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Ie[t]||1)},Te=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?je({h:Re(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},je=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},ze=function(e){return He(he(e))},fe=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=fe(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},q=function(e){var t=fe(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},he=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,l,s,s,i,r][c]),g:y(255*[i,r,r,l,s,s][c]),b:y(255*[s,s,i,r,r,l][c]),a:y(o,2)}},Fe=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?de({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},H=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},He=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?H(y(255*o)):"";return"#"+H(t)+H(n)+H(r)+a},de=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},ge=h.memo(function(e){var t=e.hue,n=e.onChange,r=F(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:S(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),me=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:S(t.s+100*o.left,0,100),v:S(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),be=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},ve=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Pe=function(e,t){return e.toLowerCase()===t.toLowerCase()||be(A(e),A(t))};function pe(e,t,n){var r=K(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},s(c)}},[t,e]),b.useEffect(function(){var c;be(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},r(c))},[a,e,r]);var i=b.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var Le=typeof window<"u"?b.useLayoutEffect:b.useEffect,qe=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,ye=function(e){Le(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=qe();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Be=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);ye(l);var i=pe(n,o,a),c=i[0],d=i[1],f=F(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(me,{hsva:c,onChange:d}),h.createElement(ge,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},We={defaultColor:"000",toHsva:Se,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Pe},Xe=function(e){return h.createElement(Be,$({},e,{colorModel:We}))},De=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},n,{a:0}))+", "+q(Object.assign({},n,{a:1}))+")"},a=F(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:S(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:q(n)})))},xe=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);ye(l);var i=pe(n,o,a),c=i[0],d=i[1],f=F(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(me,{hsva:c,onChange:d}),h.createElement(ge,{hue:c.h,onChange:d}),h.createElement(De,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ke={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:Te,fromHsva:q,equal:ve},Ve=function(e){return h.createElement(xe,$({},e,{colorModel:Ke}))},Ae={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Fe,fromHsva:function(e){var t=he(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:ve},Ge=function(e){return h.createElement(xe,$({},e,{colorModel:Ae}))},Ue={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const z=Ue,we={};for(const e of Object.keys(z))we[z[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var ke=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,i;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,i=e[2]/255,c=Math.max(s,l,i),d=c-Math.min(s,l,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(s),n=f(l),r=f(i),s===c?o=r-n:l===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Ye(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=we[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(z)){const a=z[o],s=Ye(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,i[c]=s*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const i=n+a*(l-n);let c,d,f;switch(s){default:case 6:case 0:c=l,d=i,f=n;break;case 1:c=i,d=l,f=n;break;case 2:c=n,d=l,f=i;break;case 3:c=n,d=i,f=l;break;case 4:c=i,d=n,f=l;break;case 5:c=l,d=n,f=i;break}return[c*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,i=o**3,c=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,i;return s<1?l=a/(1-s):l=0,s<=0?i=0:o===t?i=(n-r)/s%6:o===n?i=2+(r-t)/s:i=4+(t-n)/s,i/=6,i%=1,[i*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B=ke;function Je(){const e={},t=Object.keys(B);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function at(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=nt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=at(o),O[e][r].raw=ot(o)})});var w=O,st=Ne,lt=function(){return st.Date.now()},it=lt,ct=/\s/;function ut(e){for(var t=e.length;t--&&ct.test(e.charAt(t)););return t}var ft=ut,ht=ft,dt=/^\s+/;function gt(e){return e&&e.slice(0,ht(e)+1).replace(dt,"")}var mt=gt,bt=mt,ae=J,vt=Oe,se=0/0,pt=/^[-+]0x[0-9a-f]+$/i,yt=/^0b[01]+$/i,xt=/^0o[0-7]+$/i,wt=parseInt;function kt(e){if(typeof e=="number")return e;if(vt(e))return se;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=bt(e);var n=yt.test(e);return n||xt.test(e)?wt(e.slice(2),n?2:8):pt.test(e)?se:+e}var _t=kt,Et=J,D=it,le=_t,Mt="Expected a function",Ct=Math.max,$t=Math.min;function Nt(e,t,n){var r,o,a,s,l,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError(Mt);t=le(t)||0,Et(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Ct(le(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function k(v){var E=r,T=o;return r=o=void 0,c=v,s=e.apply(T,E),s}function N(v){return c=v,l=setTimeout(m,t),d?k(v):s}function _(v){var E=v-i,T=v-c,te=t-E;return f?$t(te,a-T):te}function p(v){var E=v-i,T=v-c;return i===void 0||E>=t||E<0||f&&T>=a}function m(){var v=D();if(p(v))return x(v);l=setTimeout(m,_(v))}function x(v){return l=void 0,g&&r?k(v):(r=o=void 0,s)}function C(){l!==void 0&&clearTimeout(l),c=0,r=i=o=l=void 0}function X(){return l===void 0?s:x(D())}function R(){var v=D(),E=p(v);if(r=arguments,o=this,i=v,E){if(l===void 0)return N(i);if(f)return clearTimeout(l),l=setTimeout(m,t),k(i)}return l===void 0&&(l=setTimeout(m,t)),s}return R.cancel=C,R.flush=X,R}var Ot=Nt,It=Ot,St=J,Rt="Expected a function";function Tt(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Rt);return St(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),It(e,t,{leading:r,maxWait:t,trailing:o})}var jt=Tt,zt=M.div({position:"relative",maxWidth:250}),Ft=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),Ht=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Pt=M(Ee)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Lt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),qt=M.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Bt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,active:t,onClick:n,style:r,...o})=>{let a=`linear-gradient(${e}, ${e}), ${Bt}, linear-gradient(#fff, #fff)`;return h.createElement(qt,{...o,active:t,onClick:n,style:{...r,backgroundImage:a}})},Wt=M(Me.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Xt=M(Ce)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),_e=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(_e||{}),P=Object.values(_e),Dt=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Kt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Vt=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,At=/^\s*#?([0-9a-f]{3})\s*$/i,Gt={hex:Xe,rgb:Ge,hsl:Ve},L={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(Dt);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},I=e=>{if(!e)return;let t=!0;if(Kt.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.rgb.hsl([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([s,l,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${w.rgb.hex([s,l,i]).toLowerCase()}`}}if(Vt.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.hsl.rgb([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([s,l,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${w.hsl.hex([s,l,i]).toLowerCase()}`}}let n=e.replace("#",""),r=w.keyword.rgb(n)||w.hex.rgb(n),o=w.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{w.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:w.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Ut=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return L[n];if(n!=="hex")return(t==null?void 0:t[n])||L[n];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let r=t.hex.match(At);if(!r)return Y.test(t.hex)?t.hex:L.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Yt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>I(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=I(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=b.useMemo(()=>Ut(n,o,s).toLowerCase(),[n,o,s]),c=b.useCallback(f=>{let g=I(f),k=(g==null?void 0:g.value)||f||"";r(k),k===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=P.indexOf(s)+1;f>=P.length&&(f=0),l(P[f]);let g=(o==null?void 0:o[P[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:s,cycleColorSpace:d}},W=e=>e.replace(/\s*/,"").toLowerCase(),Jt=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?I(l):l.title?{...I(l.color),keyword:l.title}:I(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(i=>W(i[n])===W(l[n]))||o(i=>i.concat(l)))},[n,a]);return{presets:a,addPreset:s}},Qt=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1})=>{let l=b.useCallback(jt(n,200),[n]),{value:i,realValue:c,updateValue:d,color:f,colorSpace:g,cycleColorSpace:k}=Yt(t,l),{presets:N,addPreset:_}=Jt(a,f,g),p=Gt[g];return h.createElement(zt,null,h.createElement(Ft,{startOpen:s,closeOnOutsideClick:!0,onVisibleChange:()=>_(f),tooltip:h.createElement(Ht,null,h.createElement(p,{color:c==="transparent"?"#000000":c,onChange:d,onFocus:r,onBlur:o}),N.length>0&&h.createElement(Lt,null,N.map((m,x)=>h.createElement(ue,{key:`${m.value}-${x}`,hasChrome:!1,tooltip:h.createElement(Pt,{note:m.keyword||m.value})},h.createElement(ie,{value:m[g],active:f&&W(m[g])===W(f[g]),onClick:()=>d(m.value)})))))},h.createElement(ie,{value:c,style:{margin:4}})),h.createElement(Wt,{id:$e(e),value:i,onChange:m=>d(m.target.value),onFocus:m=>m.target.select(),placeholder:"Choose color..."}),i?h.createElement(Xt,{icon:"markup",onClick:k}):null)},dn=Qt;export{Qt as ColorControl,dn as default}; -//# sourceMappingURL=Color-6VNJS4EI-07669756.js.map +import{n as M,W as ue,T as Ee,F as Me,I as Ce,g as $e}from"./index-75f1ca73.js";import{R as h,r as b}from"./index-2506bfc3.js";import{B as Ne,m as J}from"./identity-0adaf7d3.js";import{q as Oe}from"./index-98ab55b0.js";import"./iframe-2c3043d3.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./index-0dfb046a.js";import"./index-d37d4223.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./inheritsLoose-0022215d.js";import"./cloneDeep-ab381718.js";import"./index-356e4a49.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var S=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,l.current)):_(!1)},N=function(){return _(!1)};function _(p){var m=i.current,x=V(o.current),C=p?x.addEventListener:x.removeEventListener;C(m?"touchmove":"mousemove",k),C(m?"touchend":"mouseup",N)}return[function(p){var m=p.nativeEvent,x=o.current;if(x&&(re(m),!function(X,R){return R&&!j(X)}(m,i.current)&&x)){if(j(m)){i.current=!0;var C=m.changedTouches||[];C.length&&(l.current=C[0].identifier)}x.focus(),a(ne(x,m,l.current)),_(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},_]},[s,a]),d=c[0],f=c[1],g=c[2];return b.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),F=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=F(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Ie={grad:.9,turn:360,rad:360/(2*Math.PI)},Se=function(e){return de(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},Re=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Ie[t]||1)},Te=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?je({h:Re(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},je=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},ze=function(e){return He(he(e))},fe=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=fe(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},q=function(e){var t=fe(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},he=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,l,s,s,i,r][c]),g:y(255*[i,r,r,l,s,s][c]),b:y(255*[s,s,i,r,r,l][c]),a:y(o,2)}},Fe=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?de({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},H=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},He=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?H(y(255*o)):"";return"#"+H(t)+H(n)+H(r)+a},de=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},ge=h.memo(function(e){var t=e.hue,n=e.onChange,r=F(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:S(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),me=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:S(t.s+100*o.left,0,100),v:S(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),be=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},ve=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Pe=function(e,t){return e.toLowerCase()===t.toLowerCase()||be(A(e),A(t))};function pe(e,t,n){var r=K(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},s(c)}},[t,e]),b.useEffect(function(){var c;be(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},r(c))},[a,e,r]);var i=b.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var Le=typeof window<"u"?b.useLayoutEffect:b.useEffect,qe=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,ye=function(e){Le(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=qe();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Be=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);ye(l);var i=pe(n,o,a),c=i[0],d=i[1],f=F(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(me,{hsva:c,onChange:d}),h.createElement(ge,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},We={defaultColor:"000",toHsva:Se,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Pe},Xe=function(e){return h.createElement(Be,$({},e,{colorModel:We}))},De=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},n,{a:0}))+", "+q(Object.assign({},n,{a:1}))+")"},a=F(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:S(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:q(n)})))},xe=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);ye(l);var i=pe(n,o,a),c=i[0],d=i[1],f=F(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(me,{hsva:c,onChange:d}),h.createElement(ge,{hue:c.h,onChange:d}),h.createElement(De,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ke={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:Te,fromHsva:q,equal:ve},Ve=function(e){return h.createElement(xe,$({},e,{colorModel:Ke}))},Ae={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Fe,fromHsva:function(e){var t=he(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:ve},Ge=function(e){return h.createElement(xe,$({},e,{colorModel:Ae}))},Ue={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const z=Ue,we={};for(const e of Object.keys(z))we[z[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var ke=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,i;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,i=e[2]/255,c=Math.max(s,l,i),d=c-Math.min(s,l,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(s),n=f(l),r=f(i),s===c?o=r-n:l===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Ye(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=we[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(z)){const a=z[o],s=Ye(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,i[c]=s*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const i=n+a*(l-n);let c,d,f;switch(s){default:case 6:case 0:c=l,d=i,f=n;break;case 1:c=i,d=l,f=n;break;case 2:c=n,d=l,f=i;break;case 3:c=n,d=i,f=l;break;case 4:c=i,d=n,f=l;break;case 5:c=l,d=n,f=i;break}return[c*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,i=o**3,c=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,i;return s<1?l=a/(1-s):l=0,s<=0?i=0:o===t?i=(n-r)/s%6:o===n?i=2+(r-t)/s:i=4+(t-n)/s,i/=6,i%=1,[i*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B=ke;function Je(){const e={},t=Object.keys(B);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function at(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=nt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=at(o),O[e][r].raw=ot(o)})});var w=O,st=Ne,lt=function(){return st.Date.now()},it=lt,ct=/\s/;function ut(e){for(var t=e.length;t--&&ct.test(e.charAt(t)););return t}var ft=ut,ht=ft,dt=/^\s+/;function gt(e){return e&&e.slice(0,ht(e)+1).replace(dt,"")}var mt=gt,bt=mt,ae=J,vt=Oe,se=0/0,pt=/^[-+]0x[0-9a-f]+$/i,yt=/^0b[01]+$/i,xt=/^0o[0-7]+$/i,wt=parseInt;function kt(e){if(typeof e=="number")return e;if(vt(e))return se;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=bt(e);var n=yt.test(e);return n||xt.test(e)?wt(e.slice(2),n?2:8):pt.test(e)?se:+e}var _t=kt,Et=J,D=it,le=_t,Mt="Expected a function",Ct=Math.max,$t=Math.min;function Nt(e,t,n){var r,o,a,s,l,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError(Mt);t=le(t)||0,Et(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Ct(le(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function k(v){var E=r,T=o;return r=o=void 0,c=v,s=e.apply(T,E),s}function N(v){return c=v,l=setTimeout(m,t),d?k(v):s}function _(v){var E=v-i,T=v-c,te=t-E;return f?$t(te,a-T):te}function p(v){var E=v-i,T=v-c;return i===void 0||E>=t||E<0||f&&T>=a}function m(){var v=D();if(p(v))return x(v);l=setTimeout(m,_(v))}function x(v){return l=void 0,g&&r?k(v):(r=o=void 0,s)}function C(){l!==void 0&&clearTimeout(l),c=0,r=i=o=l=void 0}function X(){return l===void 0?s:x(D())}function R(){var v=D(),E=p(v);if(r=arguments,o=this,i=v,E){if(l===void 0)return N(i);if(f)return clearTimeout(l),l=setTimeout(m,t),k(i)}return l===void 0&&(l=setTimeout(m,t)),s}return R.cancel=C,R.flush=X,R}var Ot=Nt,It=Ot,St=J,Rt="Expected a function";function Tt(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Rt);return St(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),It(e,t,{leading:r,maxWait:t,trailing:o})}var jt=Tt,zt=M.div({position:"relative",maxWidth:250}),Ft=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),Ht=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Pt=M(Ee)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Lt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),qt=M.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Bt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,active:t,onClick:n,style:r,...o})=>{let a=`linear-gradient(${e}, ${e}), ${Bt}, linear-gradient(#fff, #fff)`;return h.createElement(qt,{...o,active:t,onClick:n,style:{...r,backgroundImage:a}})},Wt=M(Me.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Xt=M(Ce)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),_e=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(_e||{}),P=Object.values(_e),Dt=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Kt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Vt=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,At=/^\s*#?([0-9a-f]{3})\s*$/i,Gt={hex:Xe,rgb:Ge,hsl:Ve},L={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(Dt);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},I=e=>{if(!e)return;let t=!0;if(Kt.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.rgb.hsl([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([s,l,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${w.rgb.hex([s,l,i]).toLowerCase()}`}}if(Vt.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.hsl.rgb([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([s,l,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${w.hsl.hex([s,l,i]).toLowerCase()}`}}let n=e.replace("#",""),r=w.keyword.rgb(n)||w.hex.rgb(n),o=w.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{w.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:w.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Ut=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return L[n];if(n!=="hex")return(t==null?void 0:t[n])||L[n];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let r=t.hex.match(At);if(!r)return Y.test(t.hex)?t.hex:L.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Yt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>I(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=I(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=b.useMemo(()=>Ut(n,o,s).toLowerCase(),[n,o,s]),c=b.useCallback(f=>{let g=I(f),k=(g==null?void 0:g.value)||f||"";r(k),k===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=P.indexOf(s)+1;f>=P.length&&(f=0),l(P[f]);let g=(o==null?void 0:o[P[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:s,cycleColorSpace:d}},W=e=>e.replace(/\s*/,"").toLowerCase(),Jt=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?I(l):l.title?{...I(l.color),keyword:l.title}:I(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(i=>W(i[n])===W(l[n]))||o(i=>i.concat(l)))},[n,a]);return{presets:a,addPreset:s}},Qt=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1})=>{let l=b.useCallback(jt(n,200),[n]),{value:i,realValue:c,updateValue:d,color:f,colorSpace:g,cycleColorSpace:k}=Yt(t,l),{presets:N,addPreset:_}=Jt(a,f,g),p=Gt[g];return h.createElement(zt,null,h.createElement(Ft,{startOpen:s,closeOnOutsideClick:!0,onVisibleChange:()=>_(f),tooltip:h.createElement(Ht,null,h.createElement(p,{color:c==="transparent"?"#000000":c,onChange:d,onFocus:r,onBlur:o}),N.length>0&&h.createElement(Lt,null,N.map((m,x)=>h.createElement(ue,{key:`${m.value}-${x}`,hasChrome:!1,tooltip:h.createElement(Pt,{note:m.keyword||m.value})},h.createElement(ie,{value:m[g],active:f&&W(m[g])===W(f[g]),onClick:()=>d(m.value)})))))},h.createElement(ie,{value:c,style:{margin:4}})),h.createElement(Wt,{id:$e(e),value:i,onChange:m=>d(m.target.value),onFocus:m=>m.target.select(),placeholder:"Choose color..."}),i?h.createElement(Xt,{icon:"markup",onClick:k}):null)},dn=Qt;export{Qt as ColorControl,dn as default}; +//# sourceMappingURL=Color-6VNJS4EI-e3be26b7.js.map diff --git a/storybook-static/assets/Color-6VNJS4EI-07669756.js.map b/storybook-static/assets/Color-6VNJS4EI-e3be26b7.js.map similarity index 99% rename from storybook-static/assets/Color-6VNJS4EI-07669756.js.map rename to storybook-static/assets/Color-6VNJS4EI-e3be26b7.js.map index 26c3403865..56ee29ffdd 100644 --- a/storybook-static/assets/Color-6VNJS4EI-07669756.js.map +++ b/storybook-static/assets/Color-6VNJS4EI-e3be26b7.js.map @@ -1 +1 @@ -{"version":3,"file":"Color-6VNJS4EI-07669756.js","sources":["../../../../node_modules/react-colorful/dist/index.mjs","../../../../node_modules/color-name/index.js","../../../../node_modules/color-convert/conversions.js","../../../../node_modules/color-convert/route.js","../../../../node_modules/color-convert/index.js","../../../../node_modules/lodash/now.js","../../../../node_modules/lodash/_trimmedEndIndex.js","../../../../node_modules/lodash/_baseTrim.js","../../../../node_modules/lodash/toNumber.js","../../../../node_modules/lodash/debounce.js","../../../../node_modules/lodash/throttle.js","../../../../node_modules/@storybook/blocks/dist/Color-6VNJS4EI.mjs"],"sourcesContent":["import e,{useRef as r,useMemo as t,useEffect as n,useState as o,useCallback as a,useLayoutEffect as l}from\"react\";function u(){return(u=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function i(e){var t=r(e),n=r(function(e){t.current&&t.current(e)});return t.current=e,n.current}var s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e0:e.buttons>0)&&m.current?g(d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?\"touchmove\":\"mousemove\",e),a(n?\"touchend\":\"mouseup\",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(h(r),!function(e,r){return r&&!f(e)}(r,_.current)&&n)){if(f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]},[p,g]),C=x[0],E=x[1],H=x[2];return n(function(){return H},[H]),e.createElement(\"div\",u({},s,{onTouchStart:C,onMouseDown:C,className:\"react-colorful__interactive\",ref:m,onKeyDown:E,tabIndex:0,role:\"slider\"}))}),g=function(e){return e.filter(Boolean).join(\" \")},p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=g([\"react-colorful__pointer\",r.className]);return e.createElement(\"div\",{className:l,style:{top:100*a+\"%\",left:100*n+\"%\"}},e.createElement(\"div\",{className:\"react-colorful__pointer-fill\",style:{backgroundColor:t}}))},b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},x=function(e){return L(C(e))},C=function(e){return\"#\"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?b(parseInt(e.substring(6,8),16)/255,2):1}},E=function(e,r){return void 0===r&&(r=\"deg\"),Number(e)*(_[r]||1)},H=function(e){var r=/hsla?\\(?\\s*(-?\\d*\\.?\\d+)(deg|rad|grad|turn)?[,\\s]+(-?\\d*\\.?\\d+)%?[,\\s]+(-?\\d*\\.?\\d+)%?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?N({h:E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},M=H,N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},w=function(e){return K(I(e))},y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:b(e.h),s:b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:b(o/2),a:b(n,2)}},q=function(e){var r=y(e);return\"hsl(\"+r.h+\", \"+r.s+\"%, \"+r.l+\"%)\"},k=function(e){var r=y(e);return\"hsla(\"+r.h+\", \"+r.s+\"%, \"+r.l+\"%, \"+r.a+\")\"},I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:b(255*[n,u,l,l,c,n][i]),g:b(255*[c,n,n,u,l,l][i]),b:b(255*[l,l,c,n,n,u][i]),a:b(o,2)}},O=function(e){var r=/hsva?\\(?\\s*(-?\\d*\\.?\\d+)(deg|rad|grad|turn)?[,\\s]+(-?\\d*\\.?\\d+)%?[,\\s]+(-?\\d*\\.?\\d+)%?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?A({h:E(r[1],r[2]),s:Number(r[3]),v:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},j=O,z=function(e){var r=/rgba?\\(?\\s*(-?\\d*\\.?\\d+)(%)?[,\\s]+(-?\\d*\\.?\\d+)(%)?[,\\s]+(-?\\d*\\.?\\d+)(%)?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},B=z,D=function(e){var r=e.toString(16);return r.length<2?\"0\"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?D(b(255*o)):\"\";return\"#\"+D(r)+D(t)+D(n)+a},L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:b(60*(u<0?u+6:u)),s:b(a?l/a*100:0),v:b(a/255*100),a:o}},A=function(e){return{h:b(e.h),s:b(e.s),v:b(e.v),a:b(e.a,2)}},S=e.memo(function(r){var t=r.hue,n=r.onChange,o=g([\"react-colorful__hue\",r.className]);return e.createElement(\"div\",{className:o},e.createElement(m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:s(t+360*e.left,0,360)})},\"aria-label\":\"Hue\",\"aria-valuenow\":b(t),\"aria-valuemax\":\"360\",\"aria-valuemin\":\"0\"},e.createElement(p,{className:\"react-colorful__hue-pointer\",left:t/360,color:q({h:t,s:100,v:100,a:1})})))}),T=e.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return e.createElement(\"div\",{className:\"react-colorful__saturation\",style:o},e.createElement(m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:s(t.s+100*e.left,0,100),v:s(t.v-100*e.top,0,100)})},\"aria-label\":\"Color\",\"aria-valuetext\":\"Saturation \"+b(t.s)+\"%, Brightness \"+b(t.v)+\"%\"},e.createElement(p,{className:\"react-colorful__saturation-pointer\",top:1-t.v/100,left:t.s/100,color:q(t)})))}),F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},P=function(e,r){return e.replace(/\\s/g,\"\")===r.replace(/\\s/g,\"\")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(C(e),C(r))};function Y(e,t,l){var u=i(l),c=o(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=r({color:t,hsva:s});n(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}},[t,e]),n(function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))},[s,e,u]);var d=a(function(e){f(function(r){return Object.assign({},r,e)})},[]);return[s,d]}var R,V=\"undefined\"!=typeof window?l:n,$=function(){return R||(\"undefined\"!=typeof __webpack_nonce__?__webpack_nonce__:void 0)},G=function(e){R=e},J=new Map,Q=function(e){V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement(\"style\");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:\"\";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\\'data:image/svg+xml;charset=utf-8,\\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=$();n&&t.setAttribute(\"nonce\",n),r.head.appendChild(t)}},[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,[\"className\",\"colorModel\",\"color\",\"onChange\"]),f=r(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g([\"react-colorful\",n]);return e.createElement(\"div\",u({},s,{ref:f,className:m}),e.createElement(T,{hsva:d,onChange:h}),e.createElement(S,{hue:d.h,onChange:h,className:\"react-colorful__last-control\"}))},W={defaultColor:\"000\",toHsva:x,fromHsva:function(e){return w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return e.createElement(U,u({},r,{colorModel:W}))},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:\"linear-gradient(90deg, \"+k(Object.assign({},n,{a:0}))+\", \"+k(Object.assign({},n,{a:1}))+\")\"},l=g([\"react-colorful__alpha\",t]),u=b(100*n.a);return e.createElement(\"div\",{className:l},e.createElement(\"div\",{className:\"react-colorful__alpha-gradient\",style:a}),e.createElement(m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:s(n.a+e.left)})},\"aria-label\":\"Alpha\",\"aria-valuetext\":u+\"%\",\"aria-valuenow\":u,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"},e.createElement(p,{className:\"react-colorful__alpha-pointer\",left:n.a,color:k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,[\"className\",\"colorModel\",\"color\",\"onChange\"]),f=r(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g([\"react-colorful\",n]);return e.createElement(\"div\",u({},s,{ref:f,className:m}),e.createElement(T,{hsva:d,onChange:h}),e.createElement(S,{hue:d.h,onChange:h}),e.createElement(ee,{hsva:d,onChange:h,className:\"react-colorful__last-control\"}))},te={defaultColor:\"0001\",toHsva:x,fromHsva:w,equal:X},ne=function(r){return e.createElement(re,u({},r,{colorModel:te}))},oe={defaultColor:{h:0,s:0,l:0,a:1},toHsva:N,fromHsva:y,equal:F},ae=function(r){return e.createElement(re,u({},r,{colorModel:oe}))},le={defaultColor:\"hsla(0, 0%, 0%, 1)\",toHsva:H,fromHsva:k,equal:P},ue=function(r){return e.createElement(re,u({},r,{colorModel:le}))},ce={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return N({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=y(e)).h,s:r.s,l:r.l};var r},equal:F},ie=function(r){return e.createElement(U,u({},r,{colorModel:ce}))},se={defaultColor:\"hsl(0, 0%, 0%)\",toHsva:M,fromHsva:q,equal:P},fe=function(r){return e.createElement(U,u({},r,{colorModel:se}))},ve={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(e){return e},fromHsva:A,equal:F},de=function(r){return e.createElement(re,u({},r,{colorModel:ve}))},he={defaultColor:\"hsva(0, 0%, 0%, 1)\",toHsva:O,fromHsva:function(e){var r=A(e);return\"hsva(\"+r.h+\", \"+r.s+\"%, \"+r.v+\"%, \"+r.a+\")\"},equal:P},me=function(r){return e.createElement(re,u({},r,{colorModel:he}))},ge={defaultColor:{h:0,s:0,v:0},toHsva:function(e){return{h:e.h,s:e.s,v:e.v,a:1}},fromHsva:function(e){var r=A(e);return{h:r.h,s:r.s,v:r.v}},equal:F},pe=function(r){return e.createElement(U,u({},r,{colorModel:ge}))},be={defaultColor:\"hsv(0, 0%, 0%)\",toHsva:j,fromHsva:function(e){var r=A(e);return\"hsv(\"+r.h+\", \"+r.s+\"%, \"+r.v+\"%)\"},equal:P},_e=function(r){return e.createElement(U,u({},r,{colorModel:be}))},xe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:L,fromHsva:I,equal:F},Ce=function(r){return e.createElement(re,u({},r,{colorModel:xe}))},Ee={defaultColor:\"rgba(0, 0, 0, 1)\",toHsva:z,fromHsva:function(e){var r=I(e);return\"rgba(\"+r.r+\", \"+r.g+\", \"+r.b+\", \"+r.a+\")\"},equal:P},He=function(r){return e.createElement(re,u({},r,{colorModel:Ee}))},Me={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return L({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(r=I(e)).r,g:r.g,b:r.b};var r},equal:F},Ne=function(r){return e.createElement(U,u({},r,{colorModel:Me}))},we={defaultColor:\"rgb(0, 0, 0)\",toHsva:B,fromHsva:function(e){var r=I(e);return\"rgb(\"+r.r+\", \"+r.g+\", \"+r.b+\")\"},equal:P},ye=function(r){return e.createElement(U,u({},r,{colorModel:we}))},qe=/^#?([0-9A-F]{3,8})$/i,ke=function(r){var t=r.color,l=void 0===t?\"\":t,s=r.onChange,f=r.onBlur,v=r.escape,d=r.validate,h=r.format,m=r.process,g=c(r,[\"color\",\"onChange\",\"onBlur\",\"escape\",\"validate\",\"format\",\"process\"]),p=o(function(){return v(l)}),b=p[0],_=p[1],x=i(s),C=i(f),E=a(function(e){var r=v(e.target.value);_(r),d(r)&&x(m?m(r):r)},[v,m,d,x]),H=a(function(e){d(e.target.value)||_(v(l)),C(e)},[l,v,d,C]);return n(function(){_(v(l))},[l,v]),e.createElement(\"input\",u({},g,{value:h?h(b):b,spellCheck:\"false\",onChange:E,onBlur:H}))},Ie=function(e){return\"#\"+e},Oe=function(r){var t=r.prefixed,n=r.alpha,o=c(r,[\"prefixed\",\"alpha\"]),l=a(function(e){return e.replace(/([^0-9A-F]+)/gi,\"\").substring(0,n?8:6)},[n]),i=a(function(e){return function(e,r){var t=qe.exec(e),n=t?t[1].length:0;return 3===n||6===n||!!r&&4===n||!!r&&8===n}(e,n)},[n]);return e.createElement(ke,u({},o,{escape:l,format:t?Ie:void 0,process:Ie,validate:i}))};export{ne as HexAlphaColorPicker,Oe as HexColorInput,Z as HexColorPicker,ie as HslColorPicker,fe as HslStringColorPicker,ae as HslaColorPicker,ue as HslaStringColorPicker,pe as HsvColorPicker,_e as HsvStringColorPicker,de as HsvaColorPicker,me as HsvaStringColorPicker,Ne as RgbColorPicker,ye as RgbStringColorPicker,Ce as RgbaColorPicker,He as RgbaStringColorPicker,G as setNonce};\n//# sourceMappingURL=index.module.js.map\n","'use strict'\r\n\r\nmodule.exports = {\r\n\t\"aliceblue\": [240, 248, 255],\r\n\t\"antiquewhite\": [250, 235, 215],\r\n\t\"aqua\": [0, 255, 255],\r\n\t\"aquamarine\": [127, 255, 212],\r\n\t\"azure\": [240, 255, 255],\r\n\t\"beige\": [245, 245, 220],\r\n\t\"bisque\": [255, 228, 196],\r\n\t\"black\": [0, 0, 0],\r\n\t\"blanchedalmond\": [255, 235, 205],\r\n\t\"blue\": [0, 0, 255],\r\n\t\"blueviolet\": [138, 43, 226],\r\n\t\"brown\": [165, 42, 42],\r\n\t\"burlywood\": [222, 184, 135],\r\n\t\"cadetblue\": [95, 158, 160],\r\n\t\"chartreuse\": [127, 255, 0],\r\n\t\"chocolate\": [210, 105, 30],\r\n\t\"coral\": [255, 127, 80],\r\n\t\"cornflowerblue\": [100, 149, 237],\r\n\t\"cornsilk\": [255, 248, 220],\r\n\t\"crimson\": [220, 20, 60],\r\n\t\"cyan\": [0, 255, 255],\r\n\t\"darkblue\": [0, 0, 139],\r\n\t\"darkcyan\": [0, 139, 139],\r\n\t\"darkgoldenrod\": [184, 134, 11],\r\n\t\"darkgray\": [169, 169, 169],\r\n\t\"darkgreen\": [0, 100, 0],\r\n\t\"darkgrey\": [169, 169, 169],\r\n\t\"darkkhaki\": [189, 183, 107],\r\n\t\"darkmagenta\": [139, 0, 139],\r\n\t\"darkolivegreen\": [85, 107, 47],\r\n\t\"darkorange\": [255, 140, 0],\r\n\t\"darkorchid\": [153, 50, 204],\r\n\t\"darkred\": [139, 0, 0],\r\n\t\"darksalmon\": [233, 150, 122],\r\n\t\"darkseagreen\": [143, 188, 143],\r\n\t\"darkslateblue\": [72, 61, 139],\r\n\t\"darkslategray\": [47, 79, 79],\r\n\t\"darkslategrey\": [47, 79, 79],\r\n\t\"darkturquoise\": [0, 206, 209],\r\n\t\"darkviolet\": [148, 0, 211],\r\n\t\"deeppink\": [255, 20, 147],\r\n\t\"deepskyblue\": [0, 191, 255],\r\n\t\"dimgray\": [105, 105, 105],\r\n\t\"dimgrey\": [105, 105, 105],\r\n\t\"dodgerblue\": [30, 144, 255],\r\n\t\"firebrick\": [178, 34, 34],\r\n\t\"floralwhite\": [255, 250, 240],\r\n\t\"forestgreen\": [34, 139, 34],\r\n\t\"fuchsia\": [255, 0, 255],\r\n\t\"gainsboro\": [220, 220, 220],\r\n\t\"ghostwhite\": [248, 248, 255],\r\n\t\"gold\": [255, 215, 0],\r\n\t\"goldenrod\": [218, 165, 32],\r\n\t\"gray\": [128, 128, 128],\r\n\t\"green\": [0, 128, 0],\r\n\t\"greenyellow\": [173, 255, 47],\r\n\t\"grey\": [128, 128, 128],\r\n\t\"honeydew\": [240, 255, 240],\r\n\t\"hotpink\": [255, 105, 180],\r\n\t\"indianred\": [205, 92, 92],\r\n\t\"indigo\": [75, 0, 130],\r\n\t\"ivory\": [255, 255, 240],\r\n\t\"khaki\": [240, 230, 140],\r\n\t\"lavender\": [230, 230, 250],\r\n\t\"lavenderblush\": [255, 240, 245],\r\n\t\"lawngreen\": [124, 252, 0],\r\n\t\"lemonchiffon\": [255, 250, 205],\r\n\t\"lightblue\": [173, 216, 230],\r\n\t\"lightcoral\": [240, 128, 128],\r\n\t\"lightcyan\": [224, 255, 255],\r\n\t\"lightgoldenrodyellow\": [250, 250, 210],\r\n\t\"lightgray\": [211, 211, 211],\r\n\t\"lightgreen\": [144, 238, 144],\r\n\t\"lightgrey\": [211, 211, 211],\r\n\t\"lightpink\": [255, 182, 193],\r\n\t\"lightsalmon\": [255, 160, 122],\r\n\t\"lightseagreen\": [32, 178, 170],\r\n\t\"lightskyblue\": [135, 206, 250],\r\n\t\"lightslategray\": [119, 136, 153],\r\n\t\"lightslategrey\": [119, 136, 153],\r\n\t\"lightsteelblue\": [176, 196, 222],\r\n\t\"lightyellow\": [255, 255, 224],\r\n\t\"lime\": [0, 255, 0],\r\n\t\"limegreen\": [50, 205, 50],\r\n\t\"linen\": [250, 240, 230],\r\n\t\"magenta\": [255, 0, 255],\r\n\t\"maroon\": [128, 0, 0],\r\n\t\"mediumaquamarine\": [102, 205, 170],\r\n\t\"mediumblue\": [0, 0, 205],\r\n\t\"mediumorchid\": [186, 85, 211],\r\n\t\"mediumpurple\": [147, 112, 219],\r\n\t\"mediumseagreen\": [60, 179, 113],\r\n\t\"mediumslateblue\": [123, 104, 238],\r\n\t\"mediumspringgreen\": [0, 250, 154],\r\n\t\"mediumturquoise\": [72, 209, 204],\r\n\t\"mediumvioletred\": [199, 21, 133],\r\n\t\"midnightblue\": [25, 25, 112],\r\n\t\"mintcream\": [245, 255, 250],\r\n\t\"mistyrose\": [255, 228, 225],\r\n\t\"moccasin\": [255, 228, 181],\r\n\t\"navajowhite\": [255, 222, 173],\r\n\t\"navy\": [0, 0, 128],\r\n\t\"oldlace\": [253, 245, 230],\r\n\t\"olive\": [128, 128, 0],\r\n\t\"olivedrab\": [107, 142, 35],\r\n\t\"orange\": [255, 165, 0],\r\n\t\"orangered\": [255, 69, 0],\r\n\t\"orchid\": [218, 112, 214],\r\n\t\"palegoldenrod\": [238, 232, 170],\r\n\t\"palegreen\": [152, 251, 152],\r\n\t\"paleturquoise\": [175, 238, 238],\r\n\t\"palevioletred\": [219, 112, 147],\r\n\t\"papayawhip\": [255, 239, 213],\r\n\t\"peachpuff\": [255, 218, 185],\r\n\t\"peru\": [205, 133, 63],\r\n\t\"pink\": [255, 192, 203],\r\n\t\"plum\": [221, 160, 221],\r\n\t\"powderblue\": [176, 224, 230],\r\n\t\"purple\": [128, 0, 128],\r\n\t\"rebeccapurple\": [102, 51, 153],\r\n\t\"red\": [255, 0, 0],\r\n\t\"rosybrown\": [188, 143, 143],\r\n\t\"royalblue\": [65, 105, 225],\r\n\t\"saddlebrown\": [139, 69, 19],\r\n\t\"salmon\": [250, 128, 114],\r\n\t\"sandybrown\": [244, 164, 96],\r\n\t\"seagreen\": [46, 139, 87],\r\n\t\"seashell\": [255, 245, 238],\r\n\t\"sienna\": [160, 82, 45],\r\n\t\"silver\": [192, 192, 192],\r\n\t\"skyblue\": [135, 206, 235],\r\n\t\"slateblue\": [106, 90, 205],\r\n\t\"slategray\": [112, 128, 144],\r\n\t\"slategrey\": [112, 128, 144],\r\n\t\"snow\": [255, 250, 250],\r\n\t\"springgreen\": [0, 255, 127],\r\n\t\"steelblue\": [70, 130, 180],\r\n\t\"tan\": [210, 180, 140],\r\n\t\"teal\": [0, 128, 128],\r\n\t\"thistle\": [216, 191, 216],\r\n\t\"tomato\": [255, 99, 71],\r\n\t\"turquoise\": [64, 224, 208],\r\n\t\"violet\": [238, 130, 238],\r\n\t\"wheat\": [245, 222, 179],\r\n\t\"white\": [255, 255, 255],\r\n\t\"whitesmoke\": [245, 245, 245],\r\n\t\"yellow\": [255, 255, 0],\r\n\t\"yellowgreen\": [154, 205, 50]\r\n};\r\n","/* MIT license */\n/* eslint-disable no-mixed-operators */\nconst cssKeywords = require('color-name');\n\n// NOTE: conversions should only return primitive values (i.e. arrays, or\n// values that give correct `typeof` results).\n// do not use box values types (i.e. Number(), String(), etc.)\n\nconst reverseKeywords = {};\nfor (const key of Object.keys(cssKeywords)) {\n\treverseKeywords[cssKeywords[key]] = key;\n}\n\nconst convert = {\n\trgb: {channels: 3, labels: 'rgb'},\n\thsl: {channels: 3, labels: 'hsl'},\n\thsv: {channels: 3, labels: 'hsv'},\n\thwb: {channels: 3, labels: 'hwb'},\n\tcmyk: {channels: 4, labels: 'cmyk'},\n\txyz: {channels: 3, labels: 'xyz'},\n\tlab: {channels: 3, labels: 'lab'},\n\tlch: {channels: 3, labels: 'lch'},\n\thex: {channels: 1, labels: ['hex']},\n\tkeyword: {channels: 1, labels: ['keyword']},\n\tansi16: {channels: 1, labels: ['ansi16']},\n\tansi256: {channels: 1, labels: ['ansi256']},\n\thcg: {channels: 3, labels: ['h', 'c', 'g']},\n\tapple: {channels: 3, labels: ['r16', 'g16', 'b16']},\n\tgray: {channels: 1, labels: ['gray']}\n};\n\nmodule.exports = convert;\n\n// Hide .channels and .labels properties\nfor (const model of Object.keys(convert)) {\n\tif (!('channels' in convert[model])) {\n\t\tthrow new Error('missing channels property: ' + model);\n\t}\n\n\tif (!('labels' in convert[model])) {\n\t\tthrow new Error('missing channel labels property: ' + model);\n\t}\n\n\tif (convert[model].labels.length !== convert[model].channels) {\n\t\tthrow new Error('channel and label counts mismatch: ' + model);\n\t}\n\n\tconst {channels, labels} = convert[model];\n\tdelete convert[model].channels;\n\tdelete convert[model].labels;\n\tObject.defineProperty(convert[model], 'channels', {value: channels});\n\tObject.defineProperty(convert[model], 'labels', {value: labels});\n}\n\nconvert.rgb.hsl = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst min = Math.min(r, g, b);\n\tconst max = Math.max(r, g, b);\n\tconst delta = max - min;\n\tlet h;\n\tlet s;\n\n\tif (max === min) {\n\t\th = 0;\n\t} else if (r === max) {\n\t\th = (g - b) / delta;\n\t} else if (g === max) {\n\t\th = 2 + (b - r) / delta;\n\t} else if (b === max) {\n\t\th = 4 + (r - g) / delta;\n\t}\n\n\th = Math.min(h * 60, 360);\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst l = (min + max) / 2;\n\n\tif (max === min) {\n\t\ts = 0;\n\t} else if (l <= 0.5) {\n\t\ts = delta / (max + min);\n\t} else {\n\t\ts = delta / (2 - max - min);\n\t}\n\n\treturn [h, s * 100, l * 100];\n};\n\nconvert.rgb.hsv = function (rgb) {\n\tlet rdif;\n\tlet gdif;\n\tlet bdif;\n\tlet h;\n\tlet s;\n\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst v = Math.max(r, g, b);\n\tconst diff = v - Math.min(r, g, b);\n\tconst diffc = function (c) {\n\t\treturn (v - c) / 6 / diff + 1 / 2;\n\t};\n\n\tif (diff === 0) {\n\t\th = 0;\n\t\ts = 0;\n\t} else {\n\t\ts = diff / v;\n\t\trdif = diffc(r);\n\t\tgdif = diffc(g);\n\t\tbdif = diffc(b);\n\n\t\tif (r === v) {\n\t\t\th = bdif - gdif;\n\t\t} else if (g === v) {\n\t\t\th = (1 / 3) + rdif - bdif;\n\t\t} else if (b === v) {\n\t\t\th = (2 / 3) + gdif - rdif;\n\t\t}\n\n\t\tif (h < 0) {\n\t\t\th += 1;\n\t\t} else if (h > 1) {\n\t\t\th -= 1;\n\t\t}\n\t}\n\n\treturn [\n\t\th * 360,\n\t\ts * 100,\n\t\tv * 100\n\t];\n};\n\nconvert.rgb.hwb = function (rgb) {\n\tconst r = rgb[0];\n\tconst g = rgb[1];\n\tlet b = rgb[2];\n\tconst h = convert.rgb.hsl(rgb)[0];\n\tconst w = 1 / 255 * Math.min(r, Math.min(g, b));\n\n\tb = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n\n\treturn [h, w * 100, b * 100];\n};\n\nconvert.rgb.cmyk = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\n\tconst k = Math.min(1 - r, 1 - g, 1 - b);\n\tconst c = (1 - r - k) / (1 - k) || 0;\n\tconst m = (1 - g - k) / (1 - k) || 0;\n\tconst y = (1 - b - k) / (1 - k) || 0;\n\n\treturn [c * 100, m * 100, y * 100, k * 100];\n};\n\nfunction comparativeDistance(x, y) {\n\t/*\n\t\tSee https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\n\t*/\n\treturn (\n\t\t((x[0] - y[0]) ** 2) +\n\t\t((x[1] - y[1]) ** 2) +\n\t\t((x[2] - y[2]) ** 2)\n\t);\n}\n\nconvert.rgb.keyword = function (rgb) {\n\tconst reversed = reverseKeywords[rgb];\n\tif (reversed) {\n\t\treturn reversed;\n\t}\n\n\tlet currentClosestDistance = Infinity;\n\tlet currentClosestKeyword;\n\n\tfor (const keyword of Object.keys(cssKeywords)) {\n\t\tconst value = cssKeywords[keyword];\n\n\t\t// Compute comparative distance\n\t\tconst distance = comparativeDistance(rgb, value);\n\n\t\t// Check if its less, if so set as closest\n\t\tif (distance < currentClosestDistance) {\n\t\t\tcurrentClosestDistance = distance;\n\t\t\tcurrentClosestKeyword = keyword;\n\t\t}\n\t}\n\n\treturn currentClosestKeyword;\n};\n\nconvert.keyword.rgb = function (keyword) {\n\treturn cssKeywords[keyword];\n};\n\nconvert.rgb.xyz = function (rgb) {\n\tlet r = rgb[0] / 255;\n\tlet g = rgb[1] / 255;\n\tlet b = rgb[2] / 255;\n\n\t// Assume sRGB\n\tr = r > 0.04045 ? (((r + 0.055) / 1.055) ** 2.4) : (r / 12.92);\n\tg = g > 0.04045 ? (((g + 0.055) / 1.055) ** 2.4) : (g / 12.92);\n\tb = b > 0.04045 ? (((b + 0.055) / 1.055) ** 2.4) : (b / 12.92);\n\n\tconst x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);\n\tconst y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);\n\tconst z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);\n\n\treturn [x * 100, y * 100, z * 100];\n};\n\nconvert.rgb.lab = function (rgb) {\n\tconst xyz = convert.rgb.xyz(rgb);\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.hsl.rgb = function (hsl) {\n\tconst h = hsl[0] / 360;\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\tlet t2;\n\tlet t3;\n\tlet val;\n\n\tif (s === 0) {\n\t\tval = l * 255;\n\t\treturn [val, val, val];\n\t}\n\n\tif (l < 0.5) {\n\t\tt2 = l * (1 + s);\n\t} else {\n\t\tt2 = l + s - l * s;\n\t}\n\n\tconst t1 = 2 * l - t2;\n\n\tconst rgb = [0, 0, 0];\n\tfor (let i = 0; i < 3; i++) {\n\t\tt3 = h + 1 / 3 * -(i - 1);\n\t\tif (t3 < 0) {\n\t\t\tt3++;\n\t\t}\n\n\t\tif (t3 > 1) {\n\t\t\tt3--;\n\t\t}\n\n\t\tif (6 * t3 < 1) {\n\t\t\tval = t1 + (t2 - t1) * 6 * t3;\n\t\t} else if (2 * t3 < 1) {\n\t\t\tval = t2;\n\t\t} else if (3 * t3 < 2) {\n\t\t\tval = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n\t\t} else {\n\t\t\tval = t1;\n\t\t}\n\n\t\trgb[i] = val * 255;\n\t}\n\n\treturn rgb;\n};\n\nconvert.hsl.hsv = function (hsl) {\n\tconst h = hsl[0];\n\tlet s = hsl[1] / 100;\n\tlet l = hsl[2] / 100;\n\tlet smin = s;\n\tconst lmin = Math.max(l, 0.01);\n\n\tl *= 2;\n\ts *= (l <= 1) ? l : 2 - l;\n\tsmin *= lmin <= 1 ? lmin : 2 - lmin;\n\tconst v = (l + s) / 2;\n\tconst sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);\n\n\treturn [h, sv * 100, v * 100];\n};\n\nconvert.hsv.rgb = function (hsv) {\n\tconst h = hsv[0] / 60;\n\tconst s = hsv[1] / 100;\n\tlet v = hsv[2] / 100;\n\tconst hi = Math.floor(h) % 6;\n\n\tconst f = h - Math.floor(h);\n\tconst p = 255 * v * (1 - s);\n\tconst q = 255 * v * (1 - (s * f));\n\tconst t = 255 * v * (1 - (s * (1 - f)));\n\tv *= 255;\n\n\tswitch (hi) {\n\t\tcase 0:\n\t\t\treturn [v, t, p];\n\t\tcase 1:\n\t\t\treturn [q, v, p];\n\t\tcase 2:\n\t\t\treturn [p, v, t];\n\t\tcase 3:\n\t\t\treturn [p, q, v];\n\t\tcase 4:\n\t\t\treturn [t, p, v];\n\t\tcase 5:\n\t\t\treturn [v, p, q];\n\t}\n};\n\nconvert.hsv.hsl = function (hsv) {\n\tconst h = hsv[0];\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\tconst vmin = Math.max(v, 0.01);\n\tlet sl;\n\tlet l;\n\n\tl = (2 - s) * v;\n\tconst lmin = (2 - s) * vmin;\n\tsl = s * vmin;\n\tsl /= (lmin <= 1) ? lmin : 2 - lmin;\n\tsl = sl || 0;\n\tl /= 2;\n\n\treturn [h, sl * 100, l * 100];\n};\n\n// http://dev.w3.org/csswg/css-color/#hwb-to-rgb\nconvert.hwb.rgb = function (hwb) {\n\tconst h = hwb[0] / 360;\n\tlet wh = hwb[1] / 100;\n\tlet bl = hwb[2] / 100;\n\tconst ratio = wh + bl;\n\tlet f;\n\n\t// Wh + bl cant be > 1\n\tif (ratio > 1) {\n\t\twh /= ratio;\n\t\tbl /= ratio;\n\t}\n\n\tconst i = Math.floor(6 * h);\n\tconst v = 1 - bl;\n\tf = 6 * h - i;\n\n\tif ((i & 0x01) !== 0) {\n\t\tf = 1 - f;\n\t}\n\n\tconst n = wh + f * (v - wh); // Linear interpolation\n\n\tlet r;\n\tlet g;\n\tlet b;\n\t/* eslint-disable max-statements-per-line,no-multi-spaces */\n\tswitch (i) {\n\t\tdefault:\n\t\tcase 6:\n\t\tcase 0: r = v; g = n; b = wh; break;\n\t\tcase 1: r = n; g = v; b = wh; break;\n\t\tcase 2: r = wh; g = v; b = n; break;\n\t\tcase 3: r = wh; g = n; b = v; break;\n\t\tcase 4: r = n; g = wh; b = v; break;\n\t\tcase 5: r = v; g = wh; b = n; break;\n\t}\n\t/* eslint-enable max-statements-per-line,no-multi-spaces */\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.cmyk.rgb = function (cmyk) {\n\tconst c = cmyk[0] / 100;\n\tconst m = cmyk[1] / 100;\n\tconst y = cmyk[2] / 100;\n\tconst k = cmyk[3] / 100;\n\n\tconst r = 1 - Math.min(1, c * (1 - k) + k);\n\tconst g = 1 - Math.min(1, m * (1 - k) + k);\n\tconst b = 1 - Math.min(1, y * (1 - k) + k);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.rgb = function (xyz) {\n\tconst x = xyz[0] / 100;\n\tconst y = xyz[1] / 100;\n\tconst z = xyz[2] / 100;\n\tlet r;\n\tlet g;\n\tlet b;\n\n\tr = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\n\tg = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\n\tb = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\n\n\t// Assume sRGB\n\tr = r > 0.0031308\n\t\t? ((1.055 * (r ** (1.0 / 2.4))) - 0.055)\n\t\t: r * 12.92;\n\n\tg = g > 0.0031308\n\t\t? ((1.055 * (g ** (1.0 / 2.4))) - 0.055)\n\t\t: g * 12.92;\n\n\tb = b > 0.0031308\n\t\t? ((1.055 * (b ** (1.0 / 2.4))) - 0.055)\n\t\t: b * 12.92;\n\n\tr = Math.min(Math.max(0, r), 1);\n\tg = Math.min(Math.max(0, g), 1);\n\tb = Math.min(Math.max(0, b), 1);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.lab = function (xyz) {\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.lab.xyz = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet x;\n\tlet y;\n\tlet z;\n\n\ty = (l + 16) / 116;\n\tx = a / 500 + y;\n\tz = y - b / 200;\n\n\tconst y2 = y ** 3;\n\tconst x2 = x ** 3;\n\tconst z2 = z ** 3;\n\ty = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;\n\tx = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;\n\tz = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;\n\n\tx *= 95.047;\n\ty *= 100;\n\tz *= 108.883;\n\n\treturn [x, y, z];\n};\n\nconvert.lab.lch = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet h;\n\n\tconst hr = Math.atan2(b, a);\n\th = hr * 360 / 2 / Math.PI;\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst c = Math.sqrt(a * a + b * b);\n\n\treturn [l, c, h];\n};\n\nconvert.lch.lab = function (lch) {\n\tconst l = lch[0];\n\tconst c = lch[1];\n\tconst h = lch[2];\n\n\tconst hr = h / 360 * 2 * Math.PI;\n\tconst a = c * Math.cos(hr);\n\tconst b = c * Math.sin(hr);\n\n\treturn [l, a, b];\n};\n\nconvert.rgb.ansi16 = function (args, saturation = null) {\n\tconst [r, g, b] = args;\n\tlet value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; // Hsv -> ansi16 optimization\n\n\tvalue = Math.round(value / 50);\n\n\tif (value === 0) {\n\t\treturn 30;\n\t}\n\n\tlet ansi = 30\n\t\t+ ((Math.round(b / 255) << 2)\n\t\t| (Math.round(g / 255) << 1)\n\t\t| Math.round(r / 255));\n\n\tif (value === 2) {\n\t\tansi += 60;\n\t}\n\n\treturn ansi;\n};\n\nconvert.hsv.ansi16 = function (args) {\n\t// Optimization here; we already know the value and don't need to get\n\t// it converted for us.\n\treturn convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);\n};\n\nconvert.rgb.ansi256 = function (args) {\n\tconst r = args[0];\n\tconst g = args[1];\n\tconst b = args[2];\n\n\t// We use the extended greyscale palette here, with the exception of\n\t// black and white. normal palette only has 4 greyscale shades.\n\tif (r === g && g === b) {\n\t\tif (r < 8) {\n\t\t\treturn 16;\n\t\t}\n\n\t\tif (r > 248) {\n\t\t\treturn 231;\n\t\t}\n\n\t\treturn Math.round(((r - 8) / 247) * 24) + 232;\n\t}\n\n\tconst ansi = 16\n\t\t+ (36 * Math.round(r / 255 * 5))\n\t\t+ (6 * Math.round(g / 255 * 5))\n\t\t+ Math.round(b / 255 * 5);\n\n\treturn ansi;\n};\n\nconvert.ansi16.rgb = function (args) {\n\tlet color = args % 10;\n\n\t// Handle greyscale\n\tif (color === 0 || color === 7) {\n\t\tif (args > 50) {\n\t\t\tcolor += 3.5;\n\t\t}\n\n\t\tcolor = color / 10.5 * 255;\n\n\t\treturn [color, color, color];\n\t}\n\n\tconst mult = (~~(args > 50) + 1) * 0.5;\n\tconst r = ((color & 1) * mult) * 255;\n\tconst g = (((color >> 1) & 1) * mult) * 255;\n\tconst b = (((color >> 2) & 1) * mult) * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.ansi256.rgb = function (args) {\n\t// Handle greyscale\n\tif (args >= 232) {\n\t\tconst c = (args - 232) * 10 + 8;\n\t\treturn [c, c, c];\n\t}\n\n\targs -= 16;\n\n\tlet rem;\n\tconst r = Math.floor(args / 36) / 5 * 255;\n\tconst g = Math.floor((rem = args % 36) / 6) / 5 * 255;\n\tconst b = (rem % 6) / 5 * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hex = function (args) {\n\tconst integer = ((Math.round(args[0]) & 0xFF) << 16)\n\t\t+ ((Math.round(args[1]) & 0xFF) << 8)\n\t\t+ (Math.round(args[2]) & 0xFF);\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.hex.rgb = function (args) {\n\tconst match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);\n\tif (!match) {\n\t\treturn [0, 0, 0];\n\t}\n\n\tlet colorString = match[0];\n\n\tif (match[0].length === 3) {\n\t\tcolorString = colorString.split('').map(char => {\n\t\t\treturn char + char;\n\t\t}).join('');\n\t}\n\n\tconst integer = parseInt(colorString, 16);\n\tconst r = (integer >> 16) & 0xFF;\n\tconst g = (integer >> 8) & 0xFF;\n\tconst b = integer & 0xFF;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hcg = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst max = Math.max(Math.max(r, g), b);\n\tconst min = Math.min(Math.min(r, g), b);\n\tconst chroma = (max - min);\n\tlet grayscale;\n\tlet hue;\n\n\tif (chroma < 1) {\n\t\tgrayscale = min / (1 - chroma);\n\t} else {\n\t\tgrayscale = 0;\n\t}\n\n\tif (chroma <= 0) {\n\t\thue = 0;\n\t} else\n\tif (max === r) {\n\t\thue = ((g - b) / chroma) % 6;\n\t} else\n\tif (max === g) {\n\t\thue = 2 + (b - r) / chroma;\n\t} else {\n\t\thue = 4 + (r - g) / chroma;\n\t}\n\n\thue /= 6;\n\thue %= 1;\n\n\treturn [hue * 360, chroma * 100, grayscale * 100];\n};\n\nconvert.hsl.hcg = function (hsl) {\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\n\tconst c = l < 0.5 ? (2.0 * s * l) : (2.0 * s * (1.0 - l));\n\n\tlet f = 0;\n\tif (c < 1.0) {\n\t\tf = (l - 0.5 * c) / (1.0 - c);\n\t}\n\n\treturn [hsl[0], c * 100, f * 100];\n};\n\nconvert.hsv.hcg = function (hsv) {\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\n\tconst c = s * v;\n\tlet f = 0;\n\n\tif (c < 1.0) {\n\t\tf = (v - c) / (1 - c);\n\t}\n\n\treturn [hsv[0], c * 100, f * 100];\n};\n\nconvert.hcg.rgb = function (hcg) {\n\tconst h = hcg[0] / 360;\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tif (c === 0.0) {\n\t\treturn [g * 255, g * 255, g * 255];\n\t}\n\n\tconst pure = [0, 0, 0];\n\tconst hi = (h % 1) * 6;\n\tconst v = hi % 1;\n\tconst w = 1 - v;\n\tlet mg = 0;\n\n\t/* eslint-disable max-statements-per-line */\n\tswitch (Math.floor(hi)) {\n\t\tcase 0:\n\t\t\tpure[0] = 1; pure[1] = v; pure[2] = 0; break;\n\t\tcase 1:\n\t\t\tpure[0] = w; pure[1] = 1; pure[2] = 0; break;\n\t\tcase 2:\n\t\t\tpure[0] = 0; pure[1] = 1; pure[2] = v; break;\n\t\tcase 3:\n\t\t\tpure[0] = 0; pure[1] = w; pure[2] = 1; break;\n\t\tcase 4:\n\t\t\tpure[0] = v; pure[1] = 0; pure[2] = 1; break;\n\t\tdefault:\n\t\t\tpure[0] = 1; pure[1] = 0; pure[2] = w;\n\t}\n\t/* eslint-enable max-statements-per-line */\n\n\tmg = (1.0 - c) * g;\n\n\treturn [\n\t\t(c * pure[0] + mg) * 255,\n\t\t(c * pure[1] + mg) * 255,\n\t\t(c * pure[2] + mg) * 255\n\t];\n};\n\nconvert.hcg.hsv = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst v = c + g * (1.0 - c);\n\tlet f = 0;\n\n\tif (v > 0.0) {\n\t\tf = c / v;\n\t}\n\n\treturn [hcg[0], f * 100, v * 100];\n};\n\nconvert.hcg.hsl = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst l = g * (1.0 - c) + 0.5 * c;\n\tlet s = 0;\n\n\tif (l > 0.0 && l < 0.5) {\n\t\ts = c / (2 * l);\n\t} else\n\tif (l >= 0.5 && l < 1.0) {\n\t\ts = c / (2 * (1 - l));\n\t}\n\n\treturn [hcg[0], s * 100, l * 100];\n};\n\nconvert.hcg.hwb = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\tconst v = c + g * (1.0 - c);\n\treturn [hcg[0], (v - c) * 100, (1 - v) * 100];\n};\n\nconvert.hwb.hcg = function (hwb) {\n\tconst w = hwb[1] / 100;\n\tconst b = hwb[2] / 100;\n\tconst v = 1 - b;\n\tconst c = v - w;\n\tlet g = 0;\n\n\tif (c < 1) {\n\t\tg = (v - c) / (1 - c);\n\t}\n\n\treturn [hwb[0], c * 100, g * 100];\n};\n\nconvert.apple.rgb = function (apple) {\n\treturn [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];\n};\n\nconvert.rgb.apple = function (rgb) {\n\treturn [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];\n};\n\nconvert.gray.rgb = function (args) {\n\treturn [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];\n};\n\nconvert.gray.hsl = function (args) {\n\treturn [0, 0, args[0]];\n};\n\nconvert.gray.hsv = convert.gray.hsl;\n\nconvert.gray.hwb = function (gray) {\n\treturn [0, 100, gray[0]];\n};\n\nconvert.gray.cmyk = function (gray) {\n\treturn [0, 0, 0, gray[0]];\n};\n\nconvert.gray.lab = function (gray) {\n\treturn [gray[0], 0, 0];\n};\n\nconvert.gray.hex = function (gray) {\n\tconst val = Math.round(gray[0] / 100 * 255) & 0xFF;\n\tconst integer = (val << 16) + (val << 8) + val;\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.rgb.gray = function (rgb) {\n\tconst val = (rgb[0] + rgb[1] + rgb[2]) / 3;\n\treturn [val / 255 * 100];\n};\n","const conversions = require('./conversions');\n\n/*\n\tThis function routes a model to all other models.\n\n\tall functions that are routed have a property `.conversion` attached\n\tto the returned synthetic function. This property is an array\n\tof strings, each with the steps in between the 'from' and 'to'\n\tcolor models (inclusive).\n\n\tconversions that are not possible simply are not included.\n*/\n\nfunction buildGraph() {\n\tconst graph = {};\n\t// https://jsperf.com/object-keys-vs-for-in-with-closure/3\n\tconst models = Object.keys(conversions);\n\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tgraph[models[i]] = {\n\t\t\t// http://jsperf.com/1-vs-infinity\n\t\t\t// micro-opt, but this is simple.\n\t\t\tdistance: -1,\n\t\t\tparent: null\n\t\t};\n\t}\n\n\treturn graph;\n}\n\n// https://en.wikipedia.org/wiki/Breadth-first_search\nfunction deriveBFS(fromModel) {\n\tconst graph = buildGraph();\n\tconst queue = [fromModel]; // Unshift -> queue -> pop\n\n\tgraph[fromModel].distance = 0;\n\n\twhile (queue.length) {\n\t\tconst current = queue.pop();\n\t\tconst adjacents = Object.keys(conversions[current]);\n\n\t\tfor (let len = adjacents.length, i = 0; i < len; i++) {\n\t\t\tconst adjacent = adjacents[i];\n\t\t\tconst node = graph[adjacent];\n\n\t\t\tif (node.distance === -1) {\n\t\t\t\tnode.distance = graph[current].distance + 1;\n\t\t\t\tnode.parent = current;\n\t\t\t\tqueue.unshift(adjacent);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn graph;\n}\n\nfunction link(from, to) {\n\treturn function (args) {\n\t\treturn to(from(args));\n\t};\n}\n\nfunction wrapConversion(toModel, graph) {\n\tconst path = [graph[toModel].parent, toModel];\n\tlet fn = conversions[graph[toModel].parent][toModel];\n\n\tlet cur = graph[toModel].parent;\n\twhile (graph[cur].parent) {\n\t\tpath.unshift(graph[cur].parent);\n\t\tfn = link(conversions[graph[cur].parent][cur], fn);\n\t\tcur = graph[cur].parent;\n\t}\n\n\tfn.conversion = path;\n\treturn fn;\n}\n\nmodule.exports = function (fromModel) {\n\tconst graph = deriveBFS(fromModel);\n\tconst conversion = {};\n\n\tconst models = Object.keys(graph);\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tconst toModel = models[i];\n\t\tconst node = graph[toModel];\n\n\t\tif (node.parent === null) {\n\t\t\t// No possible conversion, or this node is the source model.\n\t\t\tcontinue;\n\t\t}\n\n\t\tconversion[toModel] = wrapConversion(toModel, graph);\n\t}\n\n\treturn conversion;\n};\n\n","const conversions = require('./conversions');\nconst route = require('./route');\n\nconst convert = {};\n\nconst models = Object.keys(conversions);\n\nfunction wrapRaw(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\treturn fn(args);\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nfunction wrapRounded(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\tconst result = fn(args);\n\n\t\t// We're assuming the result is an array here.\n\t\t// see notice in conversions.js; don't use box types\n\t\t// in conversion functions.\n\t\tif (typeof result === 'object') {\n\t\t\tfor (let len = result.length, i = 0; i < len; i++) {\n\t\t\t\tresult[i] = Math.round(result[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nmodels.forEach(fromModel => {\n\tconvert[fromModel] = {};\n\n\tObject.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});\n\tObject.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});\n\n\tconst routes = route(fromModel);\n\tconst routeModels = Object.keys(routes);\n\n\trouteModels.forEach(toModel => {\n\t\tconst fn = routes[toModel];\n\n\t\tconvert[fromModel][toModel] = wrapRounded(fn);\n\t\tconvert[fromModel][toModel].raw = wrapRaw(fn);\n\t});\n});\n\nmodule.exports = convert;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n","import { getControlId } from './chunk-GWAJ4KRU.mjs';\nimport React, { useCallback, useState, useEffect, useMemo } from 'react';\nimport { HexColorPicker, RgbaStringColorPicker, HslaStringColorPicker } from 'react-colorful';\nimport convert from 'color-convert';\nimport throttle from 'lodash/throttle.js';\nimport { styled } from '@storybook/theming';\nimport { WithTooltip, TooltipNote, Form, Icons } from '@storybook/components';\n\nvar Wrapper=styled.div({position:\"relative\",maxWidth:250}),PickerTooltip=styled(WithTooltip)({position:\"absolute\",zIndex:1,top:4,left:4}),TooltipContent=styled.div({width:200,margin:5,\".react-colorful__saturation\":{borderRadius:\"4px 4px 0 0\"},\".react-colorful__hue\":{boxShadow:\"inset 0 0 0 1px rgb(0 0 0 / 5%)\"},\".react-colorful__last-control\":{borderRadius:\"0 0 4px 4px\"}}),Note=styled(TooltipNote)(({theme})=>({fontFamily:theme.typography.fonts.base})),Swatches=styled.div({display:\"grid\",gridTemplateColumns:\"repeat(9, 16px)\",gap:6,padding:3,marginTop:5,width:200}),SwatchColor=styled.div(({theme,active})=>({width:16,height:16,boxShadow:active?`${theme.appBorderColor} 0 0 0 1px inset, ${theme.textMutedColor}50 0 0 0 4px`:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:theme.appBorderRadius})),swatchBackground=`url('data:image/svg+xml;charset=utf-8,')`,Swatch=({value,active,onClick,style,...props})=>{let backgroundImage=`linear-gradient(${value}, ${value}), ${swatchBackground}, linear-gradient(#fff, #fff)`;return React.createElement(SwatchColor,{...props,active,onClick,style:{...style,backgroundImage}})},Input=styled(Form.Input)(({theme})=>({width:\"100%\",paddingLeft:30,paddingRight:30,boxSizing:\"border-box\",fontFamily:theme.typography.fonts.base})),ToggleIcon=styled(Icons)(({theme})=>({position:\"absolute\",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:\"border-box\",cursor:\"pointer\",color:theme.input.color})),ColorSpace=(ColorSpace2=>(ColorSpace2.RGB=\"rgb\",ColorSpace2.HSL=\"hsl\",ColorSpace2.HEX=\"hex\",ColorSpace2))(ColorSpace||{}),COLOR_SPACES=Object.values(ColorSpace),COLOR_REGEXP=/\\(([0-9]+),\\s*([0-9]+)%?,\\s*([0-9]+)%?,?\\s*([0-9.]+)?\\)/,RGB_REGEXP=/^\\s*rgba?\\(([0-9]+),\\s*([0-9]+),\\s*([0-9]+),?\\s*([0-9.]+)?\\)\\s*$/i,HSL_REGEXP=/^\\s*hsla?\\(([0-9]+),\\s*([0-9]+)%,\\s*([0-9]+)%,?\\s*([0-9.]+)?\\)\\s*$/i,HEX_REGEXP=/^\\s*#?([0-9a-f]{3}|[0-9a-f]{6})\\s*$/i,SHORTHEX_REGEXP=/^\\s*#?([0-9a-f]{3})\\s*$/i,ColorPicker={hex:HexColorPicker,rgb:RgbaStringColorPicker,hsl:HslaStringColorPicker},fallbackColor={hex:\"transparent\",rgb:\"rgba(0, 0, 0, 0)\",hsl:\"hsla(0, 0%, 0%, 0)\"},stringToArgs=value=>{let match=value?.match(COLOR_REGEXP);if(!match)return [0,0,0,1];let[,x,y,z,a=1]=match;return [x,y,z,a].map(Number)},parseValue=value=>{if(!value)return;let valid=!0;if(RGB_REGEXP.test(value)){let[r,g,b,a]=stringToArgs(value),[h,s,l]=convert.rgb.hsl([r,g,b])||[0,0,0];return {valid,value,keyword:convert.rgb.keyword([r,g,b]),colorSpace:\"rgb\",rgb:value,hsl:`hsla(${h}, ${s}%, ${l}%, ${a})`,hex:`#${convert.rgb.hex([r,g,b]).toLowerCase()}`}}if(HSL_REGEXP.test(value)){let[h,s,l,a]=stringToArgs(value),[r,g,b]=convert.hsl.rgb([h,s,l])||[0,0,0];return {valid,value,keyword:convert.hsl.keyword([h,s,l]),colorSpace:\"hsl\",rgb:`rgba(${r}, ${g}, ${b}, ${a})`,hsl:value,hex:`#${convert.hsl.hex([h,s,l]).toLowerCase()}`}}let plain=value.replace(\"#\",\"\"),rgb=convert.keyword.rgb(plain)||convert.hex.rgb(plain),hsl=convert.rgb.hsl(rgb),mapped=value;if(/[^#a-f0-9]/i.test(value)?mapped=plain:HEX_REGEXP.test(value)&&(mapped=`#${plain}`),mapped.startsWith(\"#\"))valid=HEX_REGEXP.test(mapped);else try{convert.keyword.hex(mapped);}catch{valid=!1;}return {valid,value:mapped,keyword:convert.rgb.keyword(rgb),colorSpace:\"hex\",rgb:`rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 1)`,hsl:`hsla(${hsl[0]}, ${hsl[1]}%, ${hsl[2]}%, 1)`,hex:mapped}},getRealValue=(value,color,colorSpace)=>{if(!value||!color?.valid)return fallbackColor[colorSpace];if(colorSpace!==\"hex\")return color?.[colorSpace]||fallbackColor[colorSpace];if(!color.hex.startsWith(\"#\"))try{return `#${convert.keyword.hex(color.hex)}`}catch{return fallbackColor.hex}let short=color.hex.match(SHORTHEX_REGEXP);if(!short)return HEX_REGEXP.test(color.hex)?color.hex:fallbackColor.hex;let[r,g,b]=short[1].split(\"\");return `#${r}${r}${g}${g}${b}${b}`},useColorInput=(initialValue,onChange)=>{let[value,setValue]=useState(initialValue||\"\"),[color,setColor]=useState(()=>parseValue(value)),[colorSpace,setColorSpace]=useState(color?.colorSpace||\"hex\");useEffect(()=>{let nextValue=initialValue||\"\",nextColor=parseValue(nextValue);setValue(nextValue),setColor(nextColor),setColorSpace(nextColor?.colorSpace||\"hex\");},[initialValue]);let realValue=useMemo(()=>getRealValue(value,color,colorSpace).toLowerCase(),[value,color,colorSpace]),updateValue=useCallback(update=>{let parsed=parseValue(update),v=parsed?.value||update||\"\";setValue(v),v===\"\"&&(setColor(void 0),onChange(void 0)),parsed&&(setColor(parsed),setColorSpace(parsed.colorSpace),onChange(parsed.value));},[onChange]),cycleColorSpace=useCallback(()=>{let next=COLOR_SPACES.indexOf(colorSpace)+1;next>=COLOR_SPACES.length&&(next=0),setColorSpace(COLOR_SPACES[next]);let update=color?.[COLOR_SPACES[next]]||\"\";setValue(update),onChange(update);},[color,colorSpace,onChange]);return {value,realValue,updateValue,color,colorSpace,cycleColorSpace}},id=value=>value.replace(/\\s*/,\"\").toLowerCase(),usePresets=(presetColors,currentColor,colorSpace)=>{let[selectedColors,setSelectedColors]=useState(currentColor?.valid?[currentColor]:[]);useEffect(()=>{currentColor===void 0&&setSelectedColors([]);},[currentColor]);let presets=useMemo(()=>(presetColors||[]).map(preset=>typeof preset==\"string\"?parseValue(preset):preset.title?{...parseValue(preset.color),keyword:preset.title}:parseValue(preset.color)).concat(selectedColors).filter(Boolean).slice(-27),[presetColors,selectedColors]),addPreset=useCallback(color=>{color?.valid&&(presets.some(preset=>id(preset[colorSpace])===id(color[colorSpace]))||setSelectedColors(arr=>arr.concat(color)));},[colorSpace,presets]);return {presets,addPreset}},ColorControl=({name,value:initialValue,onChange,onFocus,onBlur,presetColors,startOpen=!1})=>{let throttledOnChange=useCallback(throttle(onChange,200),[onChange]),{value,realValue,updateValue,color,colorSpace,cycleColorSpace}=useColorInput(initialValue,throttledOnChange),{presets,addPreset}=usePresets(presetColors,color,colorSpace),Picker=ColorPicker[colorSpace];return React.createElement(Wrapper,null,React.createElement(PickerTooltip,{startOpen,closeOnOutsideClick:!0,onVisibleChange:()=>addPreset(color),tooltip:React.createElement(TooltipContent,null,React.createElement(Picker,{color:realValue===\"transparent\"?\"#000000\":realValue,onChange:updateValue,onFocus,onBlur}),presets.length>0&&React.createElement(Swatches,null,presets.map((preset,index)=>React.createElement(WithTooltip,{key:`${preset.value}-${index}`,hasChrome:!1,tooltip:React.createElement(Note,{note:preset.keyword||preset.value})},React.createElement(Swatch,{value:preset[colorSpace],active:color&&id(preset[colorSpace])===id(color[colorSpace]),onClick:()=>updateValue(preset.value)})))))},React.createElement(Swatch,{value:realValue,style:{margin:4}})),React.createElement(Input,{id:getControlId(name),value,onChange:e=>updateValue(e.target.value),onFocus:e=>e.target.select(),placeholder:\"Choose color...\"}),value?React.createElement(ToggleIcon,{icon:\"markup\",onClick:cycleColorSpace}):null)},Color_default=ColorControl;\n\nexport { ColorControl, Color_default as default };\n"],"names":["u","r","t","n","c","i","e","s","f","v","d","h","m","o","a","l","g","p","b","_","x","C","E","H","L","N","w","K","I","y","q","k","z","D","S","T","F","P","X","Y","V","$","J","Q","U","W","Z","ee","re","le","ue","Ee","He","colorName","cssKeywords","require$$0","reverseKeywords","key","convert","conversions","model","channels","labels","rgb","min","max","delta","rdif","gdif","bdif","diff","diffc","comparativeDistance","reversed","currentClosestDistance","currentClosestKeyword","keyword","value","distance","xyz","hsl","t2","t3","val","t1","smin","lmin","sv","hsv","hi","vmin","sl","hwb","wh","bl","ratio","cmyk","lab","y2","x2","z2","lch","hr","args","saturation","ansi","color","mult","rem","string","match","colorString","char","integer","chroma","grayscale","hue","hcg","pure","mg","apple","gray","buildGraph","graph","models","len","deriveBFS","fromModel","queue","current","adjacents","adjacent","node","link","from","to","wrapConversion","toModel","path","fn","cur","route","conversion","require$$1","wrapRaw","wrappedFn","arg0","wrapRounded","result","routes","colorConvert","root","now","now_1","reWhitespace","trimmedEndIndex","index","_trimmedEndIndex","reTrimStart","baseTrim","_baseTrim","isObject","isSymbol","require$$2","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","toNumber","other","isBinary","toNumber_1","FUNC_ERROR_TEXT","nativeMax","nativeMin","debounce","func","wait","options","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","thisArg","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","debounce_1","throttle","throttle_1","Wrapper","styled","PickerTooltip","WithTooltip","TooltipContent","Note","TooltipNote","theme","Swatches","SwatchColor","active","swatchBackground","Swatch","onClick","style","props","backgroundImage","React","Input","Form","ToggleIcon","Icons","ColorSpace","ColorSpace2","COLOR_SPACES","COLOR_REGEXP","RGB_REGEXP","HSL_REGEXP","HEX_REGEXP","SHORTHEX_REGEXP","ColorPicker","HexColorPicker","RgbaStringColorPicker","HslaStringColorPicker","fallbackColor","stringToArgs","parseValue","valid","plain","mapped","getRealValue","colorSpace","short","useColorInput","initialValue","onChange","setValue","useState","setColor","setColorSpace","useEffect","nextValue","nextColor","realValue","useMemo","updateValue","useCallback","update","parsed","cycleColorSpace","next","id","usePresets","presetColors","currentColor","selectedColors","setSelectedColors","presets","preset","addPreset","arr","ColorControl","name","onFocus","onBlur","startOpen","throttledOnChange","Picker","getControlId","Color_default"],"mappings":"8iBAAkH,SAASA,GAAG,CAAC,OAAOA,EAAE,OAAO,QAAQ,SAAS,EAAE,CAAC,QAAQC,EAAE,EAAEA,EAAE,UAAU,OAAOA,IAAI,CAAC,IAAIC,EAAE,UAAUD,CAAC,EAAE,QAAQE,KAAKD,EAAE,OAAO,UAAU,eAAe,KAAKA,EAAEC,CAAC,IAAI,EAAEA,CAAC,EAAED,EAAEC,CAAC,GAAG,OAAO,CAAC,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,SAASC,EAAE,EAAEH,EAAE,CAAC,GAAS,GAAN,KAAQ,MAAM,CAAE,EAAC,IAAIC,EAAEC,EAAE,EAAE,CAAA,EAAG,EAAE,OAAO,KAAK,CAAC,EAAE,IAAIA,EAAE,EAAEA,EAAE,EAAE,OAAOA,IAAIF,EAAE,QAAQC,EAAE,EAAEC,CAAC,CAAC,GAAG,IAAI,EAAED,CAAC,EAAE,EAAEA,CAAC,GAAG,OAAO,CAAC,CAAC,SAASG,EAAE,EAAE,CAAC,IAAI,EAAEJ,EAAAA,O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AAQsH,EAAM,cAAcb,GAAe,KAAKa,EAAM,cAAc4D,EAAO,CAAC,MAAMxB,IAAY,cAAc,UAAUA,EAAU,SAASE,EAAY,QAAAkB,EAAQ,OAAAC,CAAM,CAAC,EAAEP,EAAQ,OAAO,GAAGlD,EAAM,cAAcT,GAAS,KAAK2D,EAAQ,IAAI,CAACC,EAAOvH,IAAQoE,EAAM,cAAcd,GAAY,CAAC,IAAI,GAAGiE,EAAO,SAASvH,IAAQ,UAAU,GAAG,QAAQoE,EAAM,cAAcZ,GAAK,CAAC,KAAK+D,EAAO,SAASA,EAAO,KAAK,CAAC,CAAC,EAAEnD,EAAM,cAAcL,GAAO,CAAC,MAAMwD,EAAO3B,CAAU,EAAE,OAAO9I,GAAOkK,EAAGO,EAAO3B,CAAU,CAAC,IAAIoB,EAAGlK,EAAM8I,CAAU,CAAC,EAAE,QAAQ,IAAIc,EAAYa,EAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAEnD,EAAM,cAAcL,GAAO,CAAC,MAAMyC,EAAU,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAEpC,EAAM,cAAcC,GAAM,CAAC,GAAG4D,GAAaN,CAAI,EAAE,MAAA1M,EAAM,SAASvE,GAAGgQ,EAAYhQ,EAAE,OAAO,KAAK,EAAE,QAAQA,GAAGA,EAAE,OAAO,OAAQ,EAAC,YAAY,iBAAiB,CAAC,EAAEuE,EAAMmJ,EAAM,cAAcG,GAAW,CAAC,KAAK,SAAS,QAAQuC,CAAe,CAAC,EAAE,IAAI,CAAC,EAAEoB,GAAcR","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11]} \ No newline at end of file +{"version":3,"file":"Color-6VNJS4EI-e3be26b7.js","sources":["../../../../node_modules/react-colorful/dist/index.mjs","../../../../node_modules/color-name/index.js","../../../../node_modules/color-convert/conversions.js","../../../../node_modules/color-convert/route.js","../../../../node_modules/color-convert/index.js","../../../../node_modules/lodash/now.js","../../../../node_modules/lodash/_trimmedEndIndex.js","../../../../node_modules/lodash/_baseTrim.js","../../../../node_modules/lodash/toNumber.js","../../../../node_modules/lodash/debounce.js","../../../../node_modules/lodash/throttle.js","../../../../node_modules/@storybook/blocks/dist/Color-6VNJS4EI.mjs"],"sourcesContent":["import e,{useRef as r,useMemo as t,useEffect as n,useState as o,useCallback as a,useLayoutEffect as l}from\"react\";function u(){return(u=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function i(e){var t=r(e),n=r(function(e){t.current&&t.current(e)});return t.current=e,n.current}var s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e0:e.buttons>0)&&m.current?g(d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?\"touchmove\":\"mousemove\",e),a(n?\"touchend\":\"mouseup\",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(h(r),!function(e,r){return r&&!f(e)}(r,_.current)&&n)){if(f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]},[p,g]),C=x[0],E=x[1],H=x[2];return n(function(){return H},[H]),e.createElement(\"div\",u({},s,{onTouchStart:C,onMouseDown:C,className:\"react-colorful__interactive\",ref:m,onKeyDown:E,tabIndex:0,role:\"slider\"}))}),g=function(e){return e.filter(Boolean).join(\" \")},p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=g([\"react-colorful__pointer\",r.className]);return e.createElement(\"div\",{className:l,style:{top:100*a+\"%\",left:100*n+\"%\"}},e.createElement(\"div\",{className:\"react-colorful__pointer-fill\",style:{backgroundColor:t}}))},b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},x=function(e){return L(C(e))},C=function(e){return\"#\"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?b(parseInt(e.substring(6,8),16)/255,2):1}},E=function(e,r){return void 0===r&&(r=\"deg\"),Number(e)*(_[r]||1)},H=function(e){var r=/hsla?\\(?\\s*(-?\\d*\\.?\\d+)(deg|rad|grad|turn)?[,\\s]+(-?\\d*\\.?\\d+)%?[,\\s]+(-?\\d*\\.?\\d+)%?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?N({h:E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},M=H,N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},w=function(e){return K(I(e))},y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:b(e.h),s:b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:b(o/2),a:b(n,2)}},q=function(e){var r=y(e);return\"hsl(\"+r.h+\", \"+r.s+\"%, \"+r.l+\"%)\"},k=function(e){var r=y(e);return\"hsla(\"+r.h+\", \"+r.s+\"%, \"+r.l+\"%, \"+r.a+\")\"},I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:b(255*[n,u,l,l,c,n][i]),g:b(255*[c,n,n,u,l,l][i]),b:b(255*[l,l,c,n,n,u][i]),a:b(o,2)}},O=function(e){var r=/hsva?\\(?\\s*(-?\\d*\\.?\\d+)(deg|rad|grad|turn)?[,\\s]+(-?\\d*\\.?\\d+)%?[,\\s]+(-?\\d*\\.?\\d+)%?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?A({h:E(r[1],r[2]),s:Number(r[3]),v:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},j=O,z=function(e){var r=/rgba?\\(?\\s*(-?\\d*\\.?\\d+)(%)?[,\\s]+(-?\\d*\\.?\\d+)(%)?[,\\s]+(-?\\d*\\.?\\d+)(%)?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},B=z,D=function(e){var r=e.toString(16);return r.length<2?\"0\"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?D(b(255*o)):\"\";return\"#\"+D(r)+D(t)+D(n)+a},L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:b(60*(u<0?u+6:u)),s:b(a?l/a*100:0),v:b(a/255*100),a:o}},A=function(e){return{h:b(e.h),s:b(e.s),v:b(e.v),a:b(e.a,2)}},S=e.memo(function(r){var t=r.hue,n=r.onChange,o=g([\"react-colorful__hue\",r.className]);return e.createElement(\"div\",{className:o},e.createElement(m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:s(t+360*e.left,0,360)})},\"aria-label\":\"Hue\",\"aria-valuenow\":b(t),\"aria-valuemax\":\"360\",\"aria-valuemin\":\"0\"},e.createElement(p,{className:\"react-colorful__hue-pointer\",left:t/360,color:q({h:t,s:100,v:100,a:1})})))}),T=e.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return e.createElement(\"div\",{className:\"react-colorful__saturation\",style:o},e.createElement(m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:s(t.s+100*e.left,0,100),v:s(t.v-100*e.top,0,100)})},\"aria-label\":\"Color\",\"aria-valuetext\":\"Saturation \"+b(t.s)+\"%, Brightness \"+b(t.v)+\"%\"},e.createElement(p,{className:\"react-colorful__saturation-pointer\",top:1-t.v/100,left:t.s/100,color:q(t)})))}),F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},P=function(e,r){return e.replace(/\\s/g,\"\")===r.replace(/\\s/g,\"\")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(C(e),C(r))};function Y(e,t,l){var u=i(l),c=o(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=r({color:t,hsva:s});n(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}},[t,e]),n(function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))},[s,e,u]);var d=a(function(e){f(function(r){return Object.assign({},r,e)})},[]);return[s,d]}var R,V=\"undefined\"!=typeof window?l:n,$=function(){return R||(\"undefined\"!=typeof __webpack_nonce__?__webpack_nonce__:void 0)},G=function(e){R=e},J=new Map,Q=function(e){V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement(\"style\");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:\"\";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\\'data:image/svg+xml;charset=utf-8,\\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=$();n&&t.setAttribute(\"nonce\",n),r.head.appendChild(t)}},[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,[\"className\",\"colorModel\",\"color\",\"onChange\"]),f=r(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g([\"react-colorful\",n]);return e.createElement(\"div\",u({},s,{ref:f,className:m}),e.createElement(T,{hsva:d,onChange:h}),e.createElement(S,{hue:d.h,onChange:h,className:\"react-colorful__last-control\"}))},W={defaultColor:\"000\",toHsva:x,fromHsva:function(e){return w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return e.createElement(U,u({},r,{colorModel:W}))},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:\"linear-gradient(90deg, \"+k(Object.assign({},n,{a:0}))+\", \"+k(Object.assign({},n,{a:1}))+\")\"},l=g([\"react-colorful__alpha\",t]),u=b(100*n.a);return e.createElement(\"div\",{className:l},e.createElement(\"div\",{className:\"react-colorful__alpha-gradient\",style:a}),e.createElement(m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:s(n.a+e.left)})},\"aria-label\":\"Alpha\",\"aria-valuetext\":u+\"%\",\"aria-valuenow\":u,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"},e.createElement(p,{className:\"react-colorful__alpha-pointer\",left:n.a,color:k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,[\"className\",\"colorModel\",\"color\",\"onChange\"]),f=r(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g([\"react-colorful\",n]);return e.createElement(\"div\",u({},s,{ref:f,className:m}),e.createElement(T,{hsva:d,onChange:h}),e.createElement(S,{hue:d.h,onChange:h}),e.createElement(ee,{hsva:d,onChange:h,className:\"react-colorful__last-control\"}))},te={defaultColor:\"0001\",toHsva:x,fromHsva:w,equal:X},ne=function(r){return e.createElement(re,u({},r,{colorModel:te}))},oe={defaultColor:{h:0,s:0,l:0,a:1},toHsva:N,fromHsva:y,equal:F},ae=function(r){return e.createElement(re,u({},r,{colorModel:oe}))},le={defaultColor:\"hsla(0, 0%, 0%, 1)\",toHsva:H,fromHsva:k,equal:P},ue=function(r){return e.createElement(re,u({},r,{colorModel:le}))},ce={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return N({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=y(e)).h,s:r.s,l:r.l};var r},equal:F},ie=function(r){return e.createElement(U,u({},r,{colorModel:ce}))},se={defaultColor:\"hsl(0, 0%, 0%)\",toHsva:M,fromHsva:q,equal:P},fe=function(r){return e.createElement(U,u({},r,{colorModel:se}))},ve={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(e){return e},fromHsva:A,equal:F},de=function(r){return e.createElement(re,u({},r,{colorModel:ve}))},he={defaultColor:\"hsva(0, 0%, 0%, 1)\",toHsva:O,fromHsva:function(e){var r=A(e);return\"hsva(\"+r.h+\", \"+r.s+\"%, \"+r.v+\"%, \"+r.a+\")\"},equal:P},me=function(r){return e.createElement(re,u({},r,{colorModel:he}))},ge={defaultColor:{h:0,s:0,v:0},toHsva:function(e){return{h:e.h,s:e.s,v:e.v,a:1}},fromHsva:function(e){var r=A(e);return{h:r.h,s:r.s,v:r.v}},equal:F},pe=function(r){return e.createElement(U,u({},r,{colorModel:ge}))},be={defaultColor:\"hsv(0, 0%, 0%)\",toHsva:j,fromHsva:function(e){var r=A(e);return\"hsv(\"+r.h+\", \"+r.s+\"%, \"+r.v+\"%)\"},equal:P},_e=function(r){return e.createElement(U,u({},r,{colorModel:be}))},xe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:L,fromHsva:I,equal:F},Ce=function(r){return e.createElement(re,u({},r,{colorModel:xe}))},Ee={defaultColor:\"rgba(0, 0, 0, 1)\",toHsva:z,fromHsva:function(e){var r=I(e);return\"rgba(\"+r.r+\", \"+r.g+\", \"+r.b+\", \"+r.a+\")\"},equal:P},He=function(r){return e.createElement(re,u({},r,{colorModel:Ee}))},Me={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return L({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(r=I(e)).r,g:r.g,b:r.b};var r},equal:F},Ne=function(r){return e.createElement(U,u({},r,{colorModel:Me}))},we={defaultColor:\"rgb(0, 0, 0)\",toHsva:B,fromHsva:function(e){var r=I(e);return\"rgb(\"+r.r+\", \"+r.g+\", \"+r.b+\")\"},equal:P},ye=function(r){return e.createElement(U,u({},r,{colorModel:we}))},qe=/^#?([0-9A-F]{3,8})$/i,ke=function(r){var t=r.color,l=void 0===t?\"\":t,s=r.onChange,f=r.onBlur,v=r.escape,d=r.validate,h=r.format,m=r.process,g=c(r,[\"color\",\"onChange\",\"onBlur\",\"escape\",\"validate\",\"format\",\"process\"]),p=o(function(){return v(l)}),b=p[0],_=p[1],x=i(s),C=i(f),E=a(function(e){var r=v(e.target.value);_(r),d(r)&&x(m?m(r):r)},[v,m,d,x]),H=a(function(e){d(e.target.value)||_(v(l)),C(e)},[l,v,d,C]);return n(function(){_(v(l))},[l,v]),e.createElement(\"input\",u({},g,{value:h?h(b):b,spellCheck:\"false\",onChange:E,onBlur:H}))},Ie=function(e){return\"#\"+e},Oe=function(r){var t=r.prefixed,n=r.alpha,o=c(r,[\"prefixed\",\"alpha\"]),l=a(function(e){return e.replace(/([^0-9A-F]+)/gi,\"\").substring(0,n?8:6)},[n]),i=a(function(e){return function(e,r){var t=qe.exec(e),n=t?t[1].length:0;return 3===n||6===n||!!r&&4===n||!!r&&8===n}(e,n)},[n]);return e.createElement(ke,u({},o,{escape:l,format:t?Ie:void 0,process:Ie,validate:i}))};export{ne as HexAlphaColorPicker,Oe as HexColorInput,Z as HexColorPicker,ie as HslColorPicker,fe as HslStringColorPicker,ae as HslaColorPicker,ue as HslaStringColorPicker,pe as HsvColorPicker,_e as HsvStringColorPicker,de as HsvaColorPicker,me as HsvaStringColorPicker,Ne as RgbColorPicker,ye as RgbStringColorPicker,Ce as RgbaColorPicker,He as RgbaStringColorPicker,G as setNonce};\n//# sourceMappingURL=index.module.js.map\n","'use strict'\r\n\r\nmodule.exports = {\r\n\t\"aliceblue\": [240, 248, 255],\r\n\t\"antiquewhite\": [250, 235, 215],\r\n\t\"aqua\": [0, 255, 255],\r\n\t\"aquamarine\": [127, 255, 212],\r\n\t\"azure\": [240, 255, 255],\r\n\t\"beige\": [245, 245, 220],\r\n\t\"bisque\": [255, 228, 196],\r\n\t\"black\": [0, 0, 0],\r\n\t\"blanchedalmond\": [255, 235, 205],\r\n\t\"blue\": [0, 0, 255],\r\n\t\"blueviolet\": [138, 43, 226],\r\n\t\"brown\": [165, 42, 42],\r\n\t\"burlywood\": [222, 184, 135],\r\n\t\"cadetblue\": [95, 158, 160],\r\n\t\"chartreuse\": [127, 255, 0],\r\n\t\"chocolate\": [210, 105, 30],\r\n\t\"coral\": [255, 127, 80],\r\n\t\"cornflowerblue\": [100, 149, 237],\r\n\t\"cornsilk\": [255, 248, 220],\r\n\t\"crimson\": [220, 20, 60],\r\n\t\"cyan\": [0, 255, 255],\r\n\t\"darkblue\": [0, 0, 139],\r\n\t\"darkcyan\": [0, 139, 139],\r\n\t\"darkgoldenrod\": [184, 134, 11],\r\n\t\"darkgray\": [169, 169, 169],\r\n\t\"darkgreen\": [0, 100, 0],\r\n\t\"darkgrey\": [169, 169, 169],\r\n\t\"darkkhaki\": [189, 183, 107],\r\n\t\"darkmagenta\": [139, 0, 139],\r\n\t\"darkolivegreen\": [85, 107, 47],\r\n\t\"darkorange\": [255, 140, 0],\r\n\t\"darkorchid\": [153, 50, 204],\r\n\t\"darkred\": [139, 0, 0],\r\n\t\"darksalmon\": [233, 150, 122],\r\n\t\"darkseagreen\": [143, 188, 143],\r\n\t\"darkslateblue\": [72, 61, 139],\r\n\t\"darkslategray\": [47, 79, 79],\r\n\t\"darkslategrey\": [47, 79, 79],\r\n\t\"darkturquoise\": [0, 206, 209],\r\n\t\"darkviolet\": [148, 0, 211],\r\n\t\"deeppink\": [255, 20, 147],\r\n\t\"deepskyblue\": [0, 191, 255],\r\n\t\"dimgray\": [105, 105, 105],\r\n\t\"dimgrey\": [105, 105, 105],\r\n\t\"dodgerblue\": [30, 144, 255],\r\n\t\"firebrick\": [178, 34, 34],\r\n\t\"floralwhite\": [255, 250, 240],\r\n\t\"forestgreen\": [34, 139, 34],\r\n\t\"fuchsia\": [255, 0, 255],\r\n\t\"gainsboro\": [220, 220, 220],\r\n\t\"ghostwhite\": [248, 248, 255],\r\n\t\"gold\": [255, 215, 0],\r\n\t\"goldenrod\": [218, 165, 32],\r\n\t\"gray\": [128, 128, 128],\r\n\t\"green\": [0, 128, 0],\r\n\t\"greenyellow\": [173, 255, 47],\r\n\t\"grey\": [128, 128, 128],\r\n\t\"honeydew\": [240, 255, 240],\r\n\t\"hotpink\": [255, 105, 180],\r\n\t\"indianred\": [205, 92, 92],\r\n\t\"indigo\": [75, 0, 130],\r\n\t\"ivory\": [255, 255, 240],\r\n\t\"khaki\": [240, 230, 140],\r\n\t\"lavender\": [230, 230, 250],\r\n\t\"lavenderblush\": [255, 240, 245],\r\n\t\"lawngreen\": [124, 252, 0],\r\n\t\"lemonchiffon\": [255, 250, 205],\r\n\t\"lightblue\": [173, 216, 230],\r\n\t\"lightcoral\": [240, 128, 128],\r\n\t\"lightcyan\": [224, 255, 255],\r\n\t\"lightgoldenrodyellow\": [250, 250, 210],\r\n\t\"lightgray\": [211, 211, 211],\r\n\t\"lightgreen\": [144, 238, 144],\r\n\t\"lightgrey\": [211, 211, 211],\r\n\t\"lightpink\": [255, 182, 193],\r\n\t\"lightsalmon\": [255, 160, 122],\r\n\t\"lightseagreen\": [32, 178, 170],\r\n\t\"lightskyblue\": [135, 206, 250],\r\n\t\"lightslategray\": [119, 136, 153],\r\n\t\"lightslategrey\": [119, 136, 153],\r\n\t\"lightsteelblue\": [176, 196, 222],\r\n\t\"lightyellow\": [255, 255, 224],\r\n\t\"lime\": [0, 255, 0],\r\n\t\"limegreen\": [50, 205, 50],\r\n\t\"linen\": [250, 240, 230],\r\n\t\"magenta\": [255, 0, 255],\r\n\t\"maroon\": [128, 0, 0],\r\n\t\"mediumaquamarine\": [102, 205, 170],\r\n\t\"mediumblue\": [0, 0, 205],\r\n\t\"mediumorchid\": [186, 85, 211],\r\n\t\"mediumpurple\": [147, 112, 219],\r\n\t\"mediumseagreen\": [60, 179, 113],\r\n\t\"mediumslateblue\": [123, 104, 238],\r\n\t\"mediumspringgreen\": [0, 250, 154],\r\n\t\"mediumturquoise\": [72, 209, 204],\r\n\t\"mediumvioletred\": [199, 21, 133],\r\n\t\"midnightblue\": [25, 25, 112],\r\n\t\"mintcream\": [245, 255, 250],\r\n\t\"mistyrose\": [255, 228, 225],\r\n\t\"moccasin\": [255, 228, 181],\r\n\t\"navajowhite\": [255, 222, 173],\r\n\t\"navy\": [0, 0, 128],\r\n\t\"oldlace\": [253, 245, 230],\r\n\t\"olive\": [128, 128, 0],\r\n\t\"olivedrab\": [107, 142, 35],\r\n\t\"orange\": [255, 165, 0],\r\n\t\"orangered\": [255, 69, 0],\r\n\t\"orchid\": [218, 112, 214],\r\n\t\"palegoldenrod\": [238, 232, 170],\r\n\t\"palegreen\": [152, 251, 152],\r\n\t\"paleturquoise\": [175, 238, 238],\r\n\t\"palevioletred\": [219, 112, 147],\r\n\t\"papayawhip\": [255, 239, 213],\r\n\t\"peachpuff\": [255, 218, 185],\r\n\t\"peru\": [205, 133, 63],\r\n\t\"pink\": [255, 192, 203],\r\n\t\"plum\": [221, 160, 221],\r\n\t\"powderblue\": [176, 224, 230],\r\n\t\"purple\": [128, 0, 128],\r\n\t\"rebeccapurple\": [102, 51, 153],\r\n\t\"red\": [255, 0, 0],\r\n\t\"rosybrown\": [188, 143, 143],\r\n\t\"royalblue\": [65, 105, 225],\r\n\t\"saddlebrown\": [139, 69, 19],\r\n\t\"salmon\": [250, 128, 114],\r\n\t\"sandybrown\": [244, 164, 96],\r\n\t\"seagreen\": [46, 139, 87],\r\n\t\"seashell\": [255, 245, 238],\r\n\t\"sienna\": [160, 82, 45],\r\n\t\"silver\": [192, 192, 192],\r\n\t\"skyblue\": [135, 206, 235],\r\n\t\"slateblue\": [106, 90, 205],\r\n\t\"slategray\": [112, 128, 144],\r\n\t\"slategrey\": [112, 128, 144],\r\n\t\"snow\": [255, 250, 250],\r\n\t\"springgreen\": [0, 255, 127],\r\n\t\"steelblue\": [70, 130, 180],\r\n\t\"tan\": [210, 180, 140],\r\n\t\"teal\": [0, 128, 128],\r\n\t\"thistle\": [216, 191, 216],\r\n\t\"tomato\": [255, 99, 71],\r\n\t\"turquoise\": [64, 224, 208],\r\n\t\"violet\": [238, 130, 238],\r\n\t\"wheat\": [245, 222, 179],\r\n\t\"white\": [255, 255, 255],\r\n\t\"whitesmoke\": [245, 245, 245],\r\n\t\"yellow\": [255, 255, 0],\r\n\t\"yellowgreen\": [154, 205, 50]\r\n};\r\n","/* MIT license */\n/* eslint-disable no-mixed-operators */\nconst cssKeywords = require('color-name');\n\n// NOTE: conversions should only return primitive values (i.e. arrays, or\n// values that give correct `typeof` results).\n// do not use box values types (i.e. Number(), String(), etc.)\n\nconst reverseKeywords = {};\nfor (const key of Object.keys(cssKeywords)) {\n\treverseKeywords[cssKeywords[key]] = key;\n}\n\nconst convert = {\n\trgb: {channels: 3, labels: 'rgb'},\n\thsl: {channels: 3, labels: 'hsl'},\n\thsv: {channels: 3, labels: 'hsv'},\n\thwb: {channels: 3, labels: 'hwb'},\n\tcmyk: {channels: 4, labels: 'cmyk'},\n\txyz: {channels: 3, labels: 'xyz'},\n\tlab: {channels: 3, labels: 'lab'},\n\tlch: {channels: 3, labels: 'lch'},\n\thex: {channels: 1, labels: ['hex']},\n\tkeyword: {channels: 1, labels: ['keyword']},\n\tansi16: {channels: 1, labels: ['ansi16']},\n\tansi256: {channels: 1, labels: ['ansi256']},\n\thcg: {channels: 3, labels: ['h', 'c', 'g']},\n\tapple: {channels: 3, labels: ['r16', 'g16', 'b16']},\n\tgray: {channels: 1, labels: ['gray']}\n};\n\nmodule.exports = convert;\n\n// Hide .channels and .labels properties\nfor (const model of Object.keys(convert)) {\n\tif (!('channels' in convert[model])) {\n\t\tthrow new Error('missing channels property: ' + model);\n\t}\n\n\tif (!('labels' in convert[model])) {\n\t\tthrow new Error('missing channel labels property: ' + model);\n\t}\n\n\tif (convert[model].labels.length !== convert[model].channels) {\n\t\tthrow new Error('channel and label counts mismatch: ' + model);\n\t}\n\n\tconst {channels, labels} = convert[model];\n\tdelete convert[model].channels;\n\tdelete convert[model].labels;\n\tObject.defineProperty(convert[model], 'channels', {value: channels});\n\tObject.defineProperty(convert[model], 'labels', {value: labels});\n}\n\nconvert.rgb.hsl = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst min = Math.min(r, g, b);\n\tconst max = Math.max(r, g, b);\n\tconst delta = max - min;\n\tlet h;\n\tlet s;\n\n\tif (max === min) {\n\t\th = 0;\n\t} else if (r === max) {\n\t\th = (g - b) / delta;\n\t} else if (g === max) {\n\t\th = 2 + (b - r) / delta;\n\t} else if (b === max) {\n\t\th = 4 + (r - g) / delta;\n\t}\n\n\th = Math.min(h * 60, 360);\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst l = (min + max) / 2;\n\n\tif (max === min) {\n\t\ts = 0;\n\t} else if (l <= 0.5) {\n\t\ts = delta / (max + min);\n\t} else {\n\t\ts = delta / (2 - max - min);\n\t}\n\n\treturn [h, s * 100, l * 100];\n};\n\nconvert.rgb.hsv = function (rgb) {\n\tlet rdif;\n\tlet gdif;\n\tlet bdif;\n\tlet h;\n\tlet s;\n\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst v = Math.max(r, g, b);\n\tconst diff = v - Math.min(r, g, b);\n\tconst diffc = function (c) {\n\t\treturn (v - c) / 6 / diff + 1 / 2;\n\t};\n\n\tif (diff === 0) {\n\t\th = 0;\n\t\ts = 0;\n\t} else {\n\t\ts = diff / v;\n\t\trdif = diffc(r);\n\t\tgdif = diffc(g);\n\t\tbdif = diffc(b);\n\n\t\tif (r === v) {\n\t\t\th = bdif - gdif;\n\t\t} else if (g === v) {\n\t\t\th = (1 / 3) + rdif - bdif;\n\t\t} else if (b === v) {\n\t\t\th = (2 / 3) + gdif - rdif;\n\t\t}\n\n\t\tif (h < 0) {\n\t\t\th += 1;\n\t\t} else if (h > 1) {\n\t\t\th -= 1;\n\t\t}\n\t}\n\n\treturn [\n\t\th * 360,\n\t\ts * 100,\n\t\tv * 100\n\t];\n};\n\nconvert.rgb.hwb = function (rgb) {\n\tconst r = rgb[0];\n\tconst g = rgb[1];\n\tlet b = rgb[2];\n\tconst h = convert.rgb.hsl(rgb)[0];\n\tconst w = 1 / 255 * Math.min(r, Math.min(g, b));\n\n\tb = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n\n\treturn [h, w * 100, b * 100];\n};\n\nconvert.rgb.cmyk = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\n\tconst k = Math.min(1 - r, 1 - g, 1 - b);\n\tconst c = (1 - r - k) / (1 - k) || 0;\n\tconst m = (1 - g - k) / (1 - k) || 0;\n\tconst y = (1 - b - k) / (1 - k) || 0;\n\n\treturn [c * 100, m * 100, y * 100, k * 100];\n};\n\nfunction comparativeDistance(x, y) {\n\t/*\n\t\tSee https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\n\t*/\n\treturn (\n\t\t((x[0] - y[0]) ** 2) +\n\t\t((x[1] - y[1]) ** 2) +\n\t\t((x[2] - y[2]) ** 2)\n\t);\n}\n\nconvert.rgb.keyword = function (rgb) {\n\tconst reversed = reverseKeywords[rgb];\n\tif (reversed) {\n\t\treturn reversed;\n\t}\n\n\tlet currentClosestDistance = Infinity;\n\tlet currentClosestKeyword;\n\n\tfor (const keyword of Object.keys(cssKeywords)) {\n\t\tconst value = cssKeywords[keyword];\n\n\t\t// Compute comparative distance\n\t\tconst distance = comparativeDistance(rgb, value);\n\n\t\t// Check if its less, if so set as closest\n\t\tif (distance < currentClosestDistance) {\n\t\t\tcurrentClosestDistance = distance;\n\t\t\tcurrentClosestKeyword = keyword;\n\t\t}\n\t}\n\n\treturn currentClosestKeyword;\n};\n\nconvert.keyword.rgb = function (keyword) {\n\treturn cssKeywords[keyword];\n};\n\nconvert.rgb.xyz = function (rgb) {\n\tlet r = rgb[0] / 255;\n\tlet g = rgb[1] / 255;\n\tlet b = rgb[2] / 255;\n\n\t// Assume sRGB\n\tr = r > 0.04045 ? (((r + 0.055) / 1.055) ** 2.4) : (r / 12.92);\n\tg = g > 0.04045 ? (((g + 0.055) / 1.055) ** 2.4) : (g / 12.92);\n\tb = b > 0.04045 ? (((b + 0.055) / 1.055) ** 2.4) : (b / 12.92);\n\n\tconst x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);\n\tconst y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);\n\tconst z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);\n\n\treturn [x * 100, y * 100, z * 100];\n};\n\nconvert.rgb.lab = function (rgb) {\n\tconst xyz = convert.rgb.xyz(rgb);\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.hsl.rgb = function (hsl) {\n\tconst h = hsl[0] / 360;\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\tlet t2;\n\tlet t3;\n\tlet val;\n\n\tif (s === 0) {\n\t\tval = l * 255;\n\t\treturn [val, val, val];\n\t}\n\n\tif (l < 0.5) {\n\t\tt2 = l * (1 + s);\n\t} else {\n\t\tt2 = l + s - l * s;\n\t}\n\n\tconst t1 = 2 * l - t2;\n\n\tconst rgb = [0, 0, 0];\n\tfor (let i = 0; i < 3; i++) {\n\t\tt3 = h + 1 / 3 * -(i - 1);\n\t\tif (t3 < 0) {\n\t\t\tt3++;\n\t\t}\n\n\t\tif (t3 > 1) {\n\t\t\tt3--;\n\t\t}\n\n\t\tif (6 * t3 < 1) {\n\t\t\tval = t1 + (t2 - t1) * 6 * t3;\n\t\t} else if (2 * t3 < 1) {\n\t\t\tval = t2;\n\t\t} else if (3 * t3 < 2) {\n\t\t\tval = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n\t\t} else {\n\t\t\tval = t1;\n\t\t}\n\n\t\trgb[i] = val * 255;\n\t}\n\n\treturn rgb;\n};\n\nconvert.hsl.hsv = function (hsl) {\n\tconst h = hsl[0];\n\tlet s = hsl[1] / 100;\n\tlet l = hsl[2] / 100;\n\tlet smin = s;\n\tconst lmin = Math.max(l, 0.01);\n\n\tl *= 2;\n\ts *= (l <= 1) ? l : 2 - l;\n\tsmin *= lmin <= 1 ? lmin : 2 - lmin;\n\tconst v = (l + s) / 2;\n\tconst sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);\n\n\treturn [h, sv * 100, v * 100];\n};\n\nconvert.hsv.rgb = function (hsv) {\n\tconst h = hsv[0] / 60;\n\tconst s = hsv[1] / 100;\n\tlet v = hsv[2] / 100;\n\tconst hi = Math.floor(h) % 6;\n\n\tconst f = h - Math.floor(h);\n\tconst p = 255 * v * (1 - s);\n\tconst q = 255 * v * (1 - (s * f));\n\tconst t = 255 * v * (1 - (s * (1 - f)));\n\tv *= 255;\n\n\tswitch (hi) {\n\t\tcase 0:\n\t\t\treturn [v, t, p];\n\t\tcase 1:\n\t\t\treturn [q, v, p];\n\t\tcase 2:\n\t\t\treturn [p, v, t];\n\t\tcase 3:\n\t\t\treturn [p, q, v];\n\t\tcase 4:\n\t\t\treturn [t, p, v];\n\t\tcase 5:\n\t\t\treturn [v, p, q];\n\t}\n};\n\nconvert.hsv.hsl = function (hsv) {\n\tconst h = hsv[0];\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\tconst vmin = Math.max(v, 0.01);\n\tlet sl;\n\tlet l;\n\n\tl = (2 - s) * v;\n\tconst lmin = (2 - s) * vmin;\n\tsl = s * vmin;\n\tsl /= (lmin <= 1) ? lmin : 2 - lmin;\n\tsl = sl || 0;\n\tl /= 2;\n\n\treturn [h, sl * 100, l * 100];\n};\n\n// http://dev.w3.org/csswg/css-color/#hwb-to-rgb\nconvert.hwb.rgb = function (hwb) {\n\tconst h = hwb[0] / 360;\n\tlet wh = hwb[1] / 100;\n\tlet bl = hwb[2] / 100;\n\tconst ratio = wh + bl;\n\tlet f;\n\n\t// Wh + bl cant be > 1\n\tif (ratio > 1) {\n\t\twh /= ratio;\n\t\tbl /= ratio;\n\t}\n\n\tconst i = Math.floor(6 * h);\n\tconst v = 1 - bl;\n\tf = 6 * h - i;\n\n\tif ((i & 0x01) !== 0) {\n\t\tf = 1 - f;\n\t}\n\n\tconst n = wh + f * (v - wh); // Linear interpolation\n\n\tlet r;\n\tlet g;\n\tlet b;\n\t/* eslint-disable max-statements-per-line,no-multi-spaces */\n\tswitch (i) {\n\t\tdefault:\n\t\tcase 6:\n\t\tcase 0: r = v; g = n; b = wh; break;\n\t\tcase 1: r = n; g = v; b = wh; break;\n\t\tcase 2: r = wh; g = v; b = n; break;\n\t\tcase 3: r = wh; g = n; b = v; break;\n\t\tcase 4: r = n; g = wh; b = v; break;\n\t\tcase 5: r = v; g = wh; b = n; break;\n\t}\n\t/* eslint-enable max-statements-per-line,no-multi-spaces */\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.cmyk.rgb = function (cmyk) {\n\tconst c = cmyk[0] / 100;\n\tconst m = cmyk[1] / 100;\n\tconst y = cmyk[2] / 100;\n\tconst k = cmyk[3] / 100;\n\n\tconst r = 1 - Math.min(1, c * (1 - k) + k);\n\tconst g = 1 - Math.min(1, m * (1 - k) + k);\n\tconst b = 1 - Math.min(1, y * (1 - k) + k);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.rgb = function (xyz) {\n\tconst x = xyz[0] / 100;\n\tconst y = xyz[1] / 100;\n\tconst z = xyz[2] / 100;\n\tlet r;\n\tlet g;\n\tlet b;\n\n\tr = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\n\tg = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\n\tb = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\n\n\t// Assume sRGB\n\tr = r > 0.0031308\n\t\t? ((1.055 * (r ** (1.0 / 2.4))) - 0.055)\n\t\t: r * 12.92;\n\n\tg = g > 0.0031308\n\t\t? ((1.055 * (g ** (1.0 / 2.4))) - 0.055)\n\t\t: g * 12.92;\n\n\tb = b > 0.0031308\n\t\t? ((1.055 * (b ** (1.0 / 2.4))) - 0.055)\n\t\t: b * 12.92;\n\n\tr = Math.min(Math.max(0, r), 1);\n\tg = Math.min(Math.max(0, g), 1);\n\tb = Math.min(Math.max(0, b), 1);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.lab = function (xyz) {\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.lab.xyz = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet x;\n\tlet y;\n\tlet z;\n\n\ty = (l + 16) / 116;\n\tx = a / 500 + y;\n\tz = y - b / 200;\n\n\tconst y2 = y ** 3;\n\tconst x2 = x ** 3;\n\tconst z2 = z ** 3;\n\ty = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;\n\tx = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;\n\tz = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;\n\n\tx *= 95.047;\n\ty *= 100;\n\tz *= 108.883;\n\n\treturn [x, y, z];\n};\n\nconvert.lab.lch = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet h;\n\n\tconst hr = Math.atan2(b, a);\n\th = hr * 360 / 2 / Math.PI;\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst c = Math.sqrt(a * a + b * b);\n\n\treturn [l, c, h];\n};\n\nconvert.lch.lab = function (lch) {\n\tconst l = lch[0];\n\tconst c = lch[1];\n\tconst h = lch[2];\n\n\tconst hr = h / 360 * 2 * Math.PI;\n\tconst a = c * Math.cos(hr);\n\tconst b = c * Math.sin(hr);\n\n\treturn [l, a, b];\n};\n\nconvert.rgb.ansi16 = function (args, saturation = null) {\n\tconst [r, g, b] = args;\n\tlet value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; // Hsv -> ansi16 optimization\n\n\tvalue = Math.round(value / 50);\n\n\tif (value === 0) {\n\t\treturn 30;\n\t}\n\n\tlet ansi = 30\n\t\t+ ((Math.round(b / 255) << 2)\n\t\t| (Math.round(g / 255) << 1)\n\t\t| Math.round(r / 255));\n\n\tif (value === 2) {\n\t\tansi += 60;\n\t}\n\n\treturn ansi;\n};\n\nconvert.hsv.ansi16 = function (args) {\n\t// Optimization here; we already know the value and don't need to get\n\t// it converted for us.\n\treturn convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);\n};\n\nconvert.rgb.ansi256 = function (args) {\n\tconst r = args[0];\n\tconst g = args[1];\n\tconst b = args[2];\n\n\t// We use the extended greyscale palette here, with the exception of\n\t// black and white. normal palette only has 4 greyscale shades.\n\tif (r === g && g === b) {\n\t\tif (r < 8) {\n\t\t\treturn 16;\n\t\t}\n\n\t\tif (r > 248) {\n\t\t\treturn 231;\n\t\t}\n\n\t\treturn Math.round(((r - 8) / 247) * 24) + 232;\n\t}\n\n\tconst ansi = 16\n\t\t+ (36 * Math.round(r / 255 * 5))\n\t\t+ (6 * Math.round(g / 255 * 5))\n\t\t+ Math.round(b / 255 * 5);\n\n\treturn ansi;\n};\n\nconvert.ansi16.rgb = function (args) {\n\tlet color = args % 10;\n\n\t// Handle greyscale\n\tif (color === 0 || color === 7) {\n\t\tif (args > 50) {\n\t\t\tcolor += 3.5;\n\t\t}\n\n\t\tcolor = color / 10.5 * 255;\n\n\t\treturn [color, color, color];\n\t}\n\n\tconst mult = (~~(args > 50) + 1) * 0.5;\n\tconst r = ((color & 1) * mult) * 255;\n\tconst g = (((color >> 1) & 1) * mult) * 255;\n\tconst b = (((color >> 2) & 1) * mult) * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.ansi256.rgb = function (args) {\n\t// Handle greyscale\n\tif (args >= 232) {\n\t\tconst c = (args - 232) * 10 + 8;\n\t\treturn [c, c, c];\n\t}\n\n\targs -= 16;\n\n\tlet rem;\n\tconst r = Math.floor(args / 36) / 5 * 255;\n\tconst g = Math.floor((rem = args % 36) / 6) / 5 * 255;\n\tconst b = (rem % 6) / 5 * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hex = function (args) {\n\tconst integer = ((Math.round(args[0]) & 0xFF) << 16)\n\t\t+ ((Math.round(args[1]) & 0xFF) << 8)\n\t\t+ (Math.round(args[2]) & 0xFF);\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.hex.rgb = function (args) {\n\tconst match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);\n\tif (!match) {\n\t\treturn [0, 0, 0];\n\t}\n\n\tlet colorString = match[0];\n\n\tif (match[0].length === 3) {\n\t\tcolorString = colorString.split('').map(char => {\n\t\t\treturn char + char;\n\t\t}).join('');\n\t}\n\n\tconst integer = parseInt(colorString, 16);\n\tconst r = (integer >> 16) & 0xFF;\n\tconst g = (integer >> 8) & 0xFF;\n\tconst b = integer & 0xFF;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hcg = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst max = Math.max(Math.max(r, g), b);\n\tconst min = Math.min(Math.min(r, g), b);\n\tconst chroma = (max - min);\n\tlet grayscale;\n\tlet hue;\n\n\tif (chroma < 1) {\n\t\tgrayscale = min / (1 - chroma);\n\t} else {\n\t\tgrayscale = 0;\n\t}\n\n\tif (chroma <= 0) {\n\t\thue = 0;\n\t} else\n\tif (max === r) {\n\t\thue = ((g - b) / chroma) % 6;\n\t} else\n\tif (max === g) {\n\t\thue = 2 + (b - r) / chroma;\n\t} else {\n\t\thue = 4 + (r - g) / chroma;\n\t}\n\n\thue /= 6;\n\thue %= 1;\n\n\treturn [hue * 360, chroma * 100, grayscale * 100];\n};\n\nconvert.hsl.hcg = function (hsl) {\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\n\tconst c = l < 0.5 ? (2.0 * s * l) : (2.0 * s * (1.0 - l));\n\n\tlet f = 0;\n\tif (c < 1.0) {\n\t\tf = (l - 0.5 * c) / (1.0 - c);\n\t}\n\n\treturn [hsl[0], c * 100, f * 100];\n};\n\nconvert.hsv.hcg = function (hsv) {\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\n\tconst c = s * v;\n\tlet f = 0;\n\n\tif (c < 1.0) {\n\t\tf = (v - c) / (1 - c);\n\t}\n\n\treturn [hsv[0], c * 100, f * 100];\n};\n\nconvert.hcg.rgb = function (hcg) {\n\tconst h = hcg[0] / 360;\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tif (c === 0.0) {\n\t\treturn [g * 255, g * 255, g * 255];\n\t}\n\n\tconst pure = [0, 0, 0];\n\tconst hi = (h % 1) * 6;\n\tconst v = hi % 1;\n\tconst w = 1 - v;\n\tlet mg = 0;\n\n\t/* eslint-disable max-statements-per-line */\n\tswitch (Math.floor(hi)) {\n\t\tcase 0:\n\t\t\tpure[0] = 1; pure[1] = v; pure[2] = 0; break;\n\t\tcase 1:\n\t\t\tpure[0] = w; pure[1] = 1; pure[2] = 0; break;\n\t\tcase 2:\n\t\t\tpure[0] = 0; pure[1] = 1; pure[2] = v; break;\n\t\tcase 3:\n\t\t\tpure[0] = 0; pure[1] = w; pure[2] = 1; break;\n\t\tcase 4:\n\t\t\tpure[0] = v; pure[1] = 0; pure[2] = 1; break;\n\t\tdefault:\n\t\t\tpure[0] = 1; pure[1] = 0; pure[2] = w;\n\t}\n\t/* eslint-enable max-statements-per-line */\n\n\tmg = (1.0 - c) * g;\n\n\treturn [\n\t\t(c * pure[0] + mg) * 255,\n\t\t(c * pure[1] + mg) * 255,\n\t\t(c * pure[2] + mg) * 255\n\t];\n};\n\nconvert.hcg.hsv = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst v = c + g * (1.0 - c);\n\tlet f = 0;\n\n\tif (v > 0.0) {\n\t\tf = c / v;\n\t}\n\n\treturn [hcg[0], f * 100, v * 100];\n};\n\nconvert.hcg.hsl = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst l = g * (1.0 - c) + 0.5 * c;\n\tlet s = 0;\n\n\tif (l > 0.0 && l < 0.5) {\n\t\ts = c / (2 * l);\n\t} else\n\tif (l >= 0.5 && l < 1.0) {\n\t\ts = c / (2 * (1 - l));\n\t}\n\n\treturn [hcg[0], s * 100, l * 100];\n};\n\nconvert.hcg.hwb = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\tconst v = c + g * (1.0 - c);\n\treturn [hcg[0], (v - c) * 100, (1 - v) * 100];\n};\n\nconvert.hwb.hcg = function (hwb) {\n\tconst w = hwb[1] / 100;\n\tconst b = hwb[2] / 100;\n\tconst v = 1 - b;\n\tconst c = v - w;\n\tlet g = 0;\n\n\tif (c < 1) {\n\t\tg = (v - c) / (1 - c);\n\t}\n\n\treturn [hwb[0], c * 100, g * 100];\n};\n\nconvert.apple.rgb = function (apple) {\n\treturn [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];\n};\n\nconvert.rgb.apple = function (rgb) {\n\treturn [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];\n};\n\nconvert.gray.rgb = function (args) {\n\treturn [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];\n};\n\nconvert.gray.hsl = function (args) {\n\treturn [0, 0, args[0]];\n};\n\nconvert.gray.hsv = convert.gray.hsl;\n\nconvert.gray.hwb = function (gray) {\n\treturn [0, 100, gray[0]];\n};\n\nconvert.gray.cmyk = function (gray) {\n\treturn [0, 0, 0, gray[0]];\n};\n\nconvert.gray.lab = function (gray) {\n\treturn [gray[0], 0, 0];\n};\n\nconvert.gray.hex = function (gray) {\n\tconst val = Math.round(gray[0] / 100 * 255) & 0xFF;\n\tconst integer = (val << 16) + (val << 8) + val;\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.rgb.gray = function (rgb) {\n\tconst val = (rgb[0] + rgb[1] + rgb[2]) / 3;\n\treturn [val / 255 * 100];\n};\n","const conversions = require('./conversions');\n\n/*\n\tThis function routes a model to all other models.\n\n\tall functions that are routed have a property `.conversion` attached\n\tto the returned synthetic function. This property is an array\n\tof strings, each with the steps in between the 'from' and 'to'\n\tcolor models (inclusive).\n\n\tconversions that are not possible simply are not included.\n*/\n\nfunction buildGraph() {\n\tconst graph = {};\n\t// https://jsperf.com/object-keys-vs-for-in-with-closure/3\n\tconst models = Object.keys(conversions);\n\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tgraph[models[i]] = {\n\t\t\t// http://jsperf.com/1-vs-infinity\n\t\t\t// micro-opt, but this is simple.\n\t\t\tdistance: -1,\n\t\t\tparent: null\n\t\t};\n\t}\n\n\treturn graph;\n}\n\n// https://en.wikipedia.org/wiki/Breadth-first_search\nfunction deriveBFS(fromModel) {\n\tconst graph = buildGraph();\n\tconst queue = [fromModel]; // Unshift -> queue -> pop\n\n\tgraph[fromModel].distance = 0;\n\n\twhile (queue.length) {\n\t\tconst current = queue.pop();\n\t\tconst adjacents = Object.keys(conversions[current]);\n\n\t\tfor (let len = adjacents.length, i = 0; i < len; i++) {\n\t\t\tconst adjacent = adjacents[i];\n\t\t\tconst node = graph[adjacent];\n\n\t\t\tif (node.distance === -1) {\n\t\t\t\tnode.distance = graph[current].distance + 1;\n\t\t\t\tnode.parent = current;\n\t\t\t\tqueue.unshift(adjacent);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn graph;\n}\n\nfunction link(from, to) {\n\treturn function (args) {\n\t\treturn to(from(args));\n\t};\n}\n\nfunction wrapConversion(toModel, graph) {\n\tconst path = [graph[toModel].parent, toModel];\n\tlet fn = conversions[graph[toModel].parent][toModel];\n\n\tlet cur = graph[toModel].parent;\n\twhile (graph[cur].parent) {\n\t\tpath.unshift(graph[cur].parent);\n\t\tfn = link(conversions[graph[cur].parent][cur], fn);\n\t\tcur = graph[cur].parent;\n\t}\n\n\tfn.conversion = path;\n\treturn fn;\n}\n\nmodule.exports = function (fromModel) {\n\tconst graph = deriveBFS(fromModel);\n\tconst conversion = {};\n\n\tconst models = Object.keys(graph);\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tconst toModel = models[i];\n\t\tconst node = graph[toModel];\n\n\t\tif (node.parent === null) {\n\t\t\t// No possible conversion, or this node is the source model.\n\t\t\tcontinue;\n\t\t}\n\n\t\tconversion[toModel] = wrapConversion(toModel, graph);\n\t}\n\n\treturn conversion;\n};\n\n","const conversions = require('./conversions');\nconst route = require('./route');\n\nconst convert = {};\n\nconst models = Object.keys(conversions);\n\nfunction wrapRaw(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\treturn fn(args);\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nfunction wrapRounded(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\tconst result = fn(args);\n\n\t\t// We're assuming the result is an array here.\n\t\t// see notice in conversions.js; don't use box types\n\t\t// in conversion functions.\n\t\tif (typeof result === 'object') {\n\t\t\tfor (let len = result.length, i = 0; i < len; i++) {\n\t\t\t\tresult[i] = Math.round(result[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nmodels.forEach(fromModel => {\n\tconvert[fromModel] = {};\n\n\tObject.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});\n\tObject.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});\n\n\tconst routes = route(fromModel);\n\tconst routeModels = Object.keys(routes);\n\n\trouteModels.forEach(toModel => {\n\t\tconst fn = routes[toModel];\n\n\t\tconvert[fromModel][toModel] = wrapRounded(fn);\n\t\tconvert[fromModel][toModel].raw = wrapRaw(fn);\n\t});\n});\n\nmodule.exports = convert;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n","import { getControlId } from './chunk-GWAJ4KRU.mjs';\nimport React, { useCallback, useState, useEffect, useMemo } from 'react';\nimport { HexColorPicker, RgbaStringColorPicker, HslaStringColorPicker } from 'react-colorful';\nimport convert from 'color-convert';\nimport throttle from 'lodash/throttle.js';\nimport { styled } from '@storybook/theming';\nimport { WithTooltip, TooltipNote, Form, Icons } from '@storybook/components';\n\nvar Wrapper=styled.div({position:\"relative\",maxWidth:250}),PickerTooltip=styled(WithTooltip)({position:\"absolute\",zIndex:1,top:4,left:4}),TooltipContent=styled.div({width:200,margin:5,\".react-colorful__saturation\":{borderRadius:\"4px 4px 0 0\"},\".react-colorful__hue\":{boxShadow:\"inset 0 0 0 1px rgb(0 0 0 / 5%)\"},\".react-colorful__last-control\":{borderRadius:\"0 0 4px 4px\"}}),Note=styled(TooltipNote)(({theme})=>({fontFamily:theme.typography.fonts.base})),Swatches=styled.div({display:\"grid\",gridTemplateColumns:\"repeat(9, 16px)\",gap:6,padding:3,marginTop:5,width:200}),SwatchColor=styled.div(({theme,active})=>({width:16,height:16,boxShadow:active?`${theme.appBorderColor} 0 0 0 1px inset, ${theme.textMutedColor}50 0 0 0 4px`:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:theme.appBorderRadius})),swatchBackground=`url('data:image/svg+xml;charset=utf-8,')`,Swatch=({value,active,onClick,style,...props})=>{let backgroundImage=`linear-gradient(${value}, ${value}), ${swatchBackground}, linear-gradient(#fff, #fff)`;return React.createElement(SwatchColor,{...props,active,onClick,style:{...style,backgroundImage}})},Input=styled(Form.Input)(({theme})=>({width:\"100%\",paddingLeft:30,paddingRight:30,boxSizing:\"border-box\",fontFamily:theme.typography.fonts.base})),ToggleIcon=styled(Icons)(({theme})=>({position:\"absolute\",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:\"border-box\",cursor:\"pointer\",color:theme.input.color})),ColorSpace=(ColorSpace2=>(ColorSpace2.RGB=\"rgb\",ColorSpace2.HSL=\"hsl\",ColorSpace2.HEX=\"hex\",ColorSpace2))(ColorSpace||{}),COLOR_SPACES=Object.values(ColorSpace),COLOR_REGEXP=/\\(([0-9]+),\\s*([0-9]+)%?,\\s*([0-9]+)%?,?\\s*([0-9.]+)?\\)/,RGB_REGEXP=/^\\s*rgba?\\(([0-9]+),\\s*([0-9]+),\\s*([0-9]+),?\\s*([0-9.]+)?\\)\\s*$/i,HSL_REGEXP=/^\\s*hsla?\\(([0-9]+),\\s*([0-9]+)%,\\s*([0-9]+)%,?\\s*([0-9.]+)?\\)\\s*$/i,HEX_REGEXP=/^\\s*#?([0-9a-f]{3}|[0-9a-f]{6})\\s*$/i,SHORTHEX_REGEXP=/^\\s*#?([0-9a-f]{3})\\s*$/i,ColorPicker={hex:HexColorPicker,rgb:RgbaStringColorPicker,hsl:HslaStringColorPicker},fallbackColor={hex:\"transparent\",rgb:\"rgba(0, 0, 0, 0)\",hsl:\"hsla(0, 0%, 0%, 0)\"},stringToArgs=value=>{let match=value?.match(COLOR_REGEXP);if(!match)return [0,0,0,1];let[,x,y,z,a=1]=match;return [x,y,z,a].map(Number)},parseValue=value=>{if(!value)return;let valid=!0;if(RGB_REGEXP.test(value)){let[r,g,b,a]=stringToArgs(value),[h,s,l]=convert.rgb.hsl([r,g,b])||[0,0,0];return {valid,value,keyword:convert.rgb.keyword([r,g,b]),colorSpace:\"rgb\",rgb:value,hsl:`hsla(${h}, ${s}%, ${l}%, ${a})`,hex:`#${convert.rgb.hex([r,g,b]).toLowerCase()}`}}if(HSL_REGEXP.test(value)){let[h,s,l,a]=stringToArgs(value),[r,g,b]=convert.hsl.rgb([h,s,l])||[0,0,0];return {valid,value,keyword:convert.hsl.keyword([h,s,l]),colorSpace:\"hsl\",rgb:`rgba(${r}, ${g}, ${b}, ${a})`,hsl:value,hex:`#${convert.hsl.hex([h,s,l]).toLowerCase()}`}}let plain=value.replace(\"#\",\"\"),rgb=convert.keyword.rgb(plain)||convert.hex.rgb(plain),hsl=convert.rgb.hsl(rgb),mapped=value;if(/[^#a-f0-9]/i.test(value)?mapped=plain:HEX_REGEXP.test(value)&&(mapped=`#${plain}`),mapped.startsWith(\"#\"))valid=HEX_REGEXP.test(mapped);else try{convert.keyword.hex(mapped);}catch{valid=!1;}return {valid,value:mapped,keyword:convert.rgb.keyword(rgb),colorSpace:\"hex\",rgb:`rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 1)`,hsl:`hsla(${hsl[0]}, ${hsl[1]}%, ${hsl[2]}%, 1)`,hex:mapped}},getRealValue=(value,color,colorSpace)=>{if(!value||!color?.valid)return fallbackColor[colorSpace];if(colorSpace!==\"hex\")return color?.[colorSpace]||fallbackColor[colorSpace];if(!color.hex.startsWith(\"#\"))try{return `#${convert.keyword.hex(color.hex)}`}catch{return fallbackColor.hex}let short=color.hex.match(SHORTHEX_REGEXP);if(!short)return HEX_REGEXP.test(color.hex)?color.hex:fallbackColor.hex;let[r,g,b]=short[1].split(\"\");return `#${r}${r}${g}${g}${b}${b}`},useColorInput=(initialValue,onChange)=>{let[value,setValue]=useState(initialValue||\"\"),[color,setColor]=useState(()=>parseValue(value)),[colorSpace,setColorSpace]=useState(color?.colorSpace||\"hex\");useEffect(()=>{let nextValue=initialValue||\"\",nextColor=parseValue(nextValue);setValue(nextValue),setColor(nextColor),setColorSpace(nextColor?.colorSpace||\"hex\");},[initialValue]);let realValue=useMemo(()=>getRealValue(value,color,colorSpace).toLowerCase(),[value,color,colorSpace]),updateValue=useCallback(update=>{let parsed=parseValue(update),v=parsed?.value||update||\"\";setValue(v),v===\"\"&&(setColor(void 0),onChange(void 0)),parsed&&(setColor(parsed),setColorSpace(parsed.colorSpace),onChange(parsed.value));},[onChange]),cycleColorSpace=useCallback(()=>{let next=COLOR_SPACES.indexOf(colorSpace)+1;next>=COLOR_SPACES.length&&(next=0),setColorSpace(COLOR_SPACES[next]);let update=color?.[COLOR_SPACES[next]]||\"\";setValue(update),onChange(update);},[color,colorSpace,onChange]);return {value,realValue,updateValue,color,colorSpace,cycleColorSpace}},id=value=>value.replace(/\\s*/,\"\").toLowerCase(),usePresets=(presetColors,currentColor,colorSpace)=>{let[selectedColors,setSelectedColors]=useState(currentColor?.valid?[currentColor]:[]);useEffect(()=>{currentColor===void 0&&setSelectedColors([]);},[currentColor]);let presets=useMemo(()=>(presetColors||[]).map(preset=>typeof preset==\"string\"?parseValue(preset):preset.title?{...parseValue(preset.color),keyword:preset.title}:parseValue(preset.color)).concat(selectedColors).filter(Boolean).slice(-27),[presetColors,selectedColors]),addPreset=useCallback(color=>{color?.valid&&(presets.some(preset=>id(preset[colorSpace])===id(color[colorSpace]))||setSelectedColors(arr=>arr.concat(color)));},[colorSpace,presets]);return {presets,addPreset}},ColorControl=({name,value:initialValue,onChange,onFocus,onBlur,presetColors,startOpen=!1})=>{let throttledOnChange=useCallback(throttle(onChange,200),[onChange]),{value,realValue,updateValue,color,colorSpace,cycleColorSpace}=useColorInput(initialValue,throttledOnChange),{presets,addPreset}=usePresets(presetColors,color,colorSpace),Picker=ColorPicker[colorSpace];return React.createElement(Wrapper,null,React.createElement(PickerTooltip,{startOpen,closeOnOutsideClick:!0,onVisibleChange:()=>addPreset(color),tooltip:React.createElement(TooltipContent,null,React.createElement(Picker,{color:realValue===\"transparent\"?\"#000000\":realValue,onChange:updateValue,onFocus,onBlur}),presets.length>0&&React.createElement(Swatches,null,presets.map((preset,index)=>React.createElement(WithTooltip,{key:`${preset.value}-${index}`,hasChrome:!1,tooltip:React.createElement(Note,{note:preset.keyword||preset.value})},React.createElement(Swatch,{value:preset[colorSpace],active:color&&id(preset[colorSpace])===id(color[colorSpace]),onClick:()=>updateValue(preset.value)})))))},React.createElement(Swatch,{value:realValue,style:{margin:4}})),React.createElement(Input,{id:getControlId(name),value,onChange:e=>updateValue(e.target.value),onFocus:e=>e.target.select(),placeholder:\"Choose color...\"}),value?React.createElement(ToggleIcon,{icon:\"markup\",onClick:cycleColorSpace}):null)},Color_default=ColorControl;\n\nexport { ColorControl, Color_default as default };\n"],"names":["u","r","t","n","c","i","e","s","f","v","d","h","m","o","a","l","g","p","b","_","x","C","E","H","L","N","w","K","I","y","q","k","z","D","S","T","F","P","X","Y","V","$","J","Q","U","W","Z","ee","re","le","ue","Ee","He","colorName","cssKeywords","require$$0","reverseKeywords","key","convert","conversions","model","channels","labels","rgb","min","max","delta","rdif","gdif","bdif","diff","diffc","comparativeDistance","reversed","currentClosestDistance","currentClosestKeyword","keyword","value","distance","xyz","hsl","t2","t3","val","t1","smin","lmin","sv","hsv","hi","vmin","sl","hwb","wh","bl","ratio","cmyk","lab","y2","x2","z2","lch","hr","args","saturation","ansi","color","mult","rem","string","match","colorString","char","integer","chroma","grayscale","hue","hcg","pure","mg","apple","gray","buildGraph","graph","models","len","deriveBFS","fromModel","queue","current","adjacents","adjacent","node","link","from","to","wrapConversion","toModel","path","fn","cur","route","conversion","require$$1","wrapRaw","wrappedFn","arg0","wrapRounded","result","routes","colorConvert","root","now","now_1","reWhitespace","trimmedEndIndex","index","_trimmedEndIndex","reTrimStart","baseTrim","_baseTrim","isObject","isSymbol","require$$2","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","toNumber","other","isBinary","toNumber_1","FUNC_ERROR_TEXT","nativeMax","nativeMin","debounce","func","wait","options","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","thisArg","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","debounce_1","throttle","throttle_1","Wrapper","styled","PickerTooltip","WithTooltip","TooltipContent","Note","TooltipNote","theme","Swatches","SwatchColor","active","swatchBackground","Swatch","onClick","style","props","backgroundImage","React","Input","Form","ToggleIcon","Icons","ColorSpace","ColorSpace2","COLOR_SPACES","COLOR_REGEXP","RGB_REGEXP","HSL_REGEXP","HEX_REGEXP","SHORTHEX_REGEXP","ColorPicker","HexColorPicker","RgbaStringColorPicker","HslaStringColorPicker","fallbackColor","stringToArgs","parseValue","valid","plain","mapped","getRealValue","colorSpace","short","useColorInput","initialValue","onChange","setValue","useState","setColor","setColorSpace","useEffect","nextValue","nextColor","realValue","useMemo","updateValue","useCallback","update","parsed","cycleColorSpace","next","id","usePresets","presetColors","currentColor","selectedColors","setSelectedColors","presets","preset","addPreset","arr","ColorControl","name","onFocus","onBlur","startOpen","throttledOnChange","Picker","getControlId","Color_default"],"mappings":"8iBAAkH,SAASA,GAAG,CAAC,OAAOA,EAAE,OAAO,QAAQ,SAAS,EAAE,CAAC,QAAQC,EAAE,EAAEA,EAAE,UAAU,OAAOA,IAAI,CAAC,IAAIC,EAAE,UAAUD,CAAC,EAAE,QAAQE,KAAKD,EAAE,OAAO,UAAU,e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SAASvE,GAAGgQ,EAAYhQ,EAAE,OAAO,KAAK,EAAE,QAAQA,GAAGA,EAAE,OAAO,OAAQ,EAAC,YAAY,iBAAiB,CAAC,EAAEuE,EAAMmJ,EAAM,cAAcG,GAAW,CAAC,KAAK,SAAS,QAAQuC,CAAe,CAAC,EAAE,IAAI,CAAC,EAAEoB,GAAcR","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11]} \ No newline at end of file diff --git a/storybook-static/assets/CommentContainer.stories-e18f34a4.js b/storybook-static/assets/CommentContainer.stories-0eedd9d7.js similarity index 93% rename from storybook-static/assets/CommentContainer.stories-e18f34a4.js rename to storybook-static/assets/CommentContainer.stories-0eedd9d7.js index cdfa84ccde..3ad55cce53 100644 --- a/storybook-static/assets/CommentContainer.stories-e18f34a4.js +++ b/storybook-static/assets/CommentContainer.stories-0eedd9d7.js @@ -1,4 +1,4 @@ -import{a as n}from"./jsx-runtime-913be41c.js";import{f as o}from"./utils-1b1bed3d.js";import{h as i}from"./UserEngagementWrapper-def85d30.js";import"./index-2506bfc3.js";import"./index-a7768622.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-fdf5fad0.js";import"./iframe-6116c30d.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-0d861f57.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-dbf187d0.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const Le={title:"Components/CommentList/CommentContainer",component:i},t=()=>{const e=o();return n(i,{supportReplies:!1,comment:e,handleDelete:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),isLoggedIn:!0,maxLength:100})},r=()=>{const e=o(),s=o({replies:[e]});return n(i,{supportReplies:!0,comment:s,handleDelete:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),isLoggedIn:!0,maxLength:100})},m=()=>{const e=Array(15).fill(0).map(o),s=o({replies:e});return n(i,{supportReplies:!0,comment:s,handleDelete:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),isLoggedIn:!0,maxLength:100})};var p,a,l;t.parameters={...t.parameters,docs:{...(p=t.parameters)==null?void 0:p.docs,source:{originalSource:`() => { +import{a as n}from"./jsx-runtime-913be41c.js";import{f as o}from"./utils-1b1bed3d.js";import{h as i}from"./UserEngagementWrapper-e4672b42.js";import"./index-2506bfc3.js";import"./index-a7768622.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-5061a594.js";import"./iframe-2c3043d3.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-12de6328.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-f42af098.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const Le={title:"Components/CommentList/CommentContainer",component:i},t=()=>{const e=o();return n(i,{supportReplies:!1,comment:e,handleDelete:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),isLoggedIn:!0,maxLength:100})},r=()=>{const e=o(),s=o({replies:[e]});return n(i,{supportReplies:!0,comment:s,handleDelete:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),isLoggedIn:!0,maxLength:100})},m=()=>{const e=Array(15).fill(0).map(o),s=o({replies:e});return n(i,{supportReplies:!0,comment:s,handleDelete:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),isLoggedIn:!0,maxLength:100})};var p,a,l;t.parameters={...t.parameters,docs:{...(p=t.parameters)==null?void 0:p.docs,source:{originalSource:`() => { const comment = fakeComment(); return Promise.resolve()} handleEdit={() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} isLoggedIn={true} maxLength={100} />; }`,...(l=(a=t.parameters)==null?void 0:a.docs)==null?void 0:l.source}}};var d,c,u;r.parameters={...r.parameters,docs:{...(d=r.parameters)==null?void 0:d.docs,source:{originalSource:`() => { @@ -14,4 +14,4 @@ import{a as n}from"./jsx-runtime-913be41c.js";import{f as o}from"./utils-1b1bed3 }); return Promise.resolve()} handleEdit={() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} isLoggedIn={true} maxLength={100} />; }`,...(C=(g=m.parameters)==null?void 0:g.docs)==null?void 0:C.source}}};const Ee=["Default","WithReplies","WithLotsReplies"];export{t as Default,m as WithLotsReplies,r as WithReplies,Ee as __namedExportsOrder,Le as default}; -//# sourceMappingURL=CommentContainer.stories-e18f34a4.js.map +//# sourceMappingURL=CommentContainer.stories-0eedd9d7.js.map diff --git a/storybook-static/assets/CommentContainer.stories-e18f34a4.js.map b/storybook-static/assets/CommentContainer.stories-0eedd9d7.js.map similarity index 51% rename from storybook-static/assets/CommentContainer.stories-e18f34a4.js.map rename to storybook-static/assets/CommentContainer.stories-0eedd9d7.js.map index 8e18bd2826..8987dfa21a 100644 --- a/storybook-static/assets/CommentContainer.stories-e18f34a4.js.map +++ b/storybook-static/assets/CommentContainer.stories-0eedd9d7.js.map @@ -1 +1 @@ -{"version":3,"file":"CommentContainer.stories-e18f34a4.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"CommentContainer.stories-0eedd9d7.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/storybook-static/assets/CommentItem.stories-75b343d2.js b/storybook-static/assets/CommentItem.stories-4a7e946a.js similarity index 96% rename from storybook-static/assets/CommentItem.stories-75b343d2.js rename to storybook-static/assets/CommentItem.stories-4a7e946a.js index 49dc943b00..0a096fdcae 100644 --- a/storybook-static/assets/CommentItem.stories-75b343d2.js +++ b/storybook-static/assets/CommentItem.stories-4a7e946a.js @@ -1,4 +1,4 @@ -import{a as i}from"./jsx-runtime-913be41c.js";import{f as s}from"./utils-1b1bed3d.js";import{g as t}from"./UserEngagementWrapper-def85d30.js";import"./index-2506bfc3.js";import"./index-a7768622.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-fdf5fad0.js";import"./iframe-6116c30d.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-0d861f57.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-dbf187d0.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const Ae={title:"Components/CommentItem",component:t},u=()=>{const e=s();return i(t,{comment:e})},a=()=>{const e=s({isEditable:!0});return i(t,{comment:e})},m=()=>{const e=s({_edited:new Date().toISOString()});return i(t,{comment:e})},r=()=>{const E=s({text:`Ut dignissim, odio a cursus pretium, erat ex dictum quam, a eleifend augue mauris vel metus. Suspendisse pellentesque, elit efficitur rutrum maximus, arcu enim congue ipsum, vel aliquam ipsum urna quis tellus. Mauris at imperdiet nisi. Integer at neque ex. Nullam vel ipsum sodales, porttitor nulla vitae, tincidunt est. Pellentesque vitae lectus arcu. Integer dapibus rutrum facilisis. Nullam tincidunt quam at arcu interdum, vitae egestas libero vehicula. Morbi metus tortor, dapibus id finibus ac, egestas quis leo. Phasellus scelerisque suscipit mauris sed rhoncus. In quis ultricies ipsum. Integer vitae iaculis risus, sit amet elementum augue. Pellentesque vitae sagittis erat, eget consectetur lorem. +import{a as i}from"./jsx-runtime-913be41c.js";import{f as s}from"./utils-1b1bed3d.js";import{g as t}from"./UserEngagementWrapper-e4672b42.js";import"./index-2506bfc3.js";import"./index-a7768622.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-5061a594.js";import"./iframe-2c3043d3.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-12de6328.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-f42af098.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const Ae={title:"Components/CommentItem",component:t},u=()=>{const e=s();return i(t,{comment:e})},a=()=>{const e=s({isEditable:!0});return i(t,{comment:e})},m=()=>{const e=s({_edited:new Date().toISOString()});return i(t,{comment:e})},r=()=>{const E=s({text:`Ut dignissim, odio a cursus pretium, erat ex dictum quam, a eleifend augue mauris vel metus. Suspendisse pellentesque, elit efficitur rutrum maximus, arcu enim congue ipsum, vel aliquam ipsum urna quis tellus. Mauris at imperdiet nisi. Integer at neque ex. Nullam vel ipsum sodales, porttitor nulla vitae, tincidunt est. Pellentesque vitae lectus arcu. Integer dapibus rutrum facilisis. Nullam tincidunt quam at arcu interdum, vitae egestas libero vehicula. Morbi metus tortor, dapibus id finibus ac, egestas quis leo. Phasellus scelerisque suscipit mauris sed rhoncus. In quis ultricies ipsum. Integer vitae iaculis risus, sit amet elementum augue. Pellentesque vitae sagittis erat, eget consectetur lorem. Ut pharetra molestie quam id dictum. In molestie, arcu sit amet faucibus pulvinar, eros erat egestas leo, at molestie nunc velit a arcu. Aliquam erat volutpat. Vivamus vehicula mi sit amet nibh auctor efficitur. Duis fermentum sem et nibh facilisis, ut tincidunt sem commodo. Nullam ornare ex a elementum accumsan. Etiam a neque ut lacus suscipit blandit. Maecenas id tortor velit. @@ -34,4 +34,4 @@ Nullam dictum lectus felis. Duis vitae lacus vitae nisl aliquet faucibus. Intege }); return ; }`,...(k=(D=n.parameters)==null?void 0:D.docs)==null?void 0:k.source}}};const Le=["Default","Editable","Edited","LongText","ShortText","ShortTextWithLink"];export{u as Default,a as Editable,m as Edited,r as LongText,o as ShortText,n as ShortTextWithLink,Le as __namedExportsOrder,Ae as default}; -//# sourceMappingURL=CommentItem.stories-75b343d2.js.map +//# sourceMappingURL=CommentItem.stories-4a7e946a.js.map diff --git a/storybook-static/assets/CommentItem.stories-75b343d2.js.map b/storybook-static/assets/CommentItem.stories-4a7e946a.js.map similarity index 56% rename from storybook-static/assets/CommentItem.stories-75b343d2.js.map rename to storybook-static/assets/CommentItem.stories-4a7e946a.js.map index 23359cf43f..62f1fc46a9 100644 --- a/storybook-static/assets/CommentItem.stories-75b343d2.js.map +++ b/storybook-static/assets/CommentItem.stories-4a7e946a.js.map @@ -1 +1 @@ -{"version":3,"file":"CommentItem.stories-75b343d2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"CommentItem.stories-4a7e946a.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/storybook-static/assets/CommentList.stories-a24b9460.js.map b/storybook-static/assets/CommentList.stories-a24b9460.js.map deleted file mode 100644 index 02faa4f12b..0000000000 --- a/storybook-static/assets/CommentList.stories-a24b9460.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CommentList.stories-a24b9460.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"} \ No newline at end of file diff --git a/storybook-static/assets/CommentList.stories-a24b9460.js b/storybook-static/assets/CommentList.stories-e6594a0d.js similarity index 93% rename from storybook-static/assets/CommentList.stories-a24b9460.js rename to storybook-static/assets/CommentList.stories-e6594a0d.js index a2e6ba05ed..d92203f2bf 100644 --- a/storybook-static/assets/CommentList.stories-a24b9460.js +++ b/storybook-static/assets/CommentList.stories-e6594a0d.js @@ -1,4 +1,4 @@ -import{a as i}from"./jsx-runtime-913be41c.js";import{c as l,f as e}from"./utils-1b1bed3d.js";import{f as o}from"./UserEngagementWrapper-def85d30.js";import"./index-2506bfc3.js";import"./index-a7768622.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-fdf5fad0.js";import"./iframe-6116c30d.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-0d861f57.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-dbf187d0.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const Ie={title:"Components/CommentList",component:o},t=()=>i(o,{comments:l(2),handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,maxLength:1e3,onMoreComments:()=>null}),m=()=>i(o,{comments:l(20),handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,maxLength:1e3,onMoreComments:()=>null}),r=()=>{const f=[e({replies:[e(),e()]}),e({replies:[e()]}),e()];return i(o,{supportReplies:!0,comments:f,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,maxLength:1e3,onMoreComments:()=>Promise.resolve(),onSubmitReply:()=>Promise.resolve()})},n=l(20,{isEditable:!1}),s=()=>i(o,{comments:n,highlightedCommentId:n[n.length-2]._id,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,maxLength:1e3,onMoreComments:()=>null});var a,p,d;t.parameters={...t.parameters,docs:{...(a=t.parameters)==null?void 0:a.docs,source:{originalSource:"() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} maxLength={1000} onMoreComments={() => null} />",...(d=(p=t.parameters)==null?void 0:p.docs)==null?void 0:d.source}}};var h,c,g;m.parameters={...m.parameters,docs:{...(h=m.parameters)==null?void 0:h.docs,source:{originalSource:"() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} maxLength={1000} onMoreComments={() => null} />",...(g=(c=m.parameters)==null?void 0:c.docs)==null?void 0:g.source}}};var u,C,v;r.parameters={...r.parameters,docs:{...(u=r.parameters)==null?void 0:u.docs,source:{originalSource:`() => { +import{a as i}from"./jsx-runtime-913be41c.js";import{c as l,f as e}from"./utils-1b1bed3d.js";import{f as o}from"./UserEngagementWrapper-e4672b42.js";import"./index-2506bfc3.js";import"./index-a7768622.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-5061a594.js";import"./iframe-2c3043d3.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-12de6328.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-f42af098.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const Ie={title:"Components/CommentList",component:o},t=()=>i(o,{comments:l(2),handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,maxLength:1e3,onMoreComments:()=>null}),m=()=>i(o,{comments:l(20),handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,maxLength:1e3,onMoreComments:()=>null}),r=()=>{const f=[e({replies:[e(),e()]}),e({replies:[e()]}),e()];return i(o,{supportReplies:!0,comments:f,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,maxLength:1e3,onMoreComments:()=>Promise.resolve(),onSubmitReply:()=>Promise.resolve()})},n=l(20,{isEditable:!1}),s=()=>i(o,{comments:n,highlightedCommentId:n[n.length-2]._id,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,maxLength:1e3,onMoreComments:()=>null});var a,p,d;t.parameters={...t.parameters,docs:{...(a=t.parameters)==null?void 0:a.docs,source:{originalSource:"() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} maxLength={1000} onMoreComments={() => null} />",...(d=(p=t.parameters)==null?void 0:p.docs)==null?void 0:d.source}}};var h,c,g;m.parameters={...m.parameters,docs:{...(h=m.parameters)==null?void 0:h.docs,source:{originalSource:"() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} maxLength={1000} onMoreComments={() => null} />",...(g=(c=m.parameters)==null?void 0:c.docs)==null?void 0:g.source}}};var u,C,v;r.parameters={...r.parameters,docs:{...(u=r.parameters)==null?void 0:u.docs,source:{originalSource:`() => { const comments = [fakeComment({ replies: [fakeComment(), fakeComment()] }), fakeComment({ @@ -6,4 +6,4 @@ import{a as i}from"./jsx-runtime-913be41c.js";import{c as l,f as e}from"./utils- }), fakeComment()]; return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} maxLength={1000} onMoreComments={() => Promise.resolve()} onSubmitReply={() => Promise.resolve()} />; }`,...(v=(C=r.parameters)==null?void 0:C.docs)==null?void 0:v.source}}};var P,L,E;s.parameters={...s.parameters,docs:{...(P=s.parameters)==null?void 0:P.docs,source:{originalSource:"() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} maxLength={1000} onMoreComments={() => null} />",...(E=(L=s.parameters)==null?void 0:L.docs)==null?void 0:E.source}}};const qe=["Default","Expandable","WithNestedComments","Highlighted"];export{t as Default,m as Expandable,s as Highlighted,r as WithNestedComments,qe as __namedExportsOrder,Ie as default}; -//# sourceMappingURL=CommentList.stories-a24b9460.js.map +//# sourceMappingURL=CommentList.stories-e6594a0d.js.map diff --git a/storybook-static/assets/CommentList.stories-e6594a0d.js.map b/storybook-static/assets/CommentList.stories-e6594a0d.js.map new file mode 100644 index 0000000000..1ca17c4375 --- /dev/null +++ b/storybook-static/assets/CommentList.stories-e6594a0d.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CommentList.stories-e6594a0d.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"} \ No newline at end of file diff --git a/storybook-static/assets/ConfirmModal.stories-d8d5b274.js b/storybook-static/assets/ConfirmModal.stories-455c0b93.js similarity index 88% rename from storybook-static/assets/ConfirmModal.stories-d8d5b274.js rename to storybook-static/assets/ConfirmModal.stories-455c0b93.js index a1ac32b9c8..d8693f8900 100644 --- a/storybook-static/assets/ConfirmModal.stories-d8d5b274.js +++ b/storybook-static/assets/ConfirmModal.stories-455c0b93.js @@ -1,2 +1,2 @@ -import{a as p}from"./jsx-runtime-913be41c.js";import{e as i}from"./UserEngagementWrapper-def85d30.js";import"./index-2506bfc3.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-fdf5fad0.js";import"./iframe-6116c30d.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-0d861f57.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-dbf187d0.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const ao={title:"Components/ConfirmModal",component:i},o=()=>p(i,{message:"Are you sure you want to delete this item?",confirmButtonText:"Delete",isOpen:!0,handleCancel:()=>null,handleConfirm:()=>null});var t,r,m;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:'() => null} handleConfirm={() => null} />',...(m=(r=o.parameters)==null?void 0:r.docs)==null?void 0:m.source}}};const so=["Default"];export{o as Default,so as __namedExportsOrder,ao as default}; -//# sourceMappingURL=ConfirmModal.stories-d8d5b274.js.map +import{a as p}from"./jsx-runtime-913be41c.js";import{e as i}from"./UserEngagementWrapper-e4672b42.js";import"./index-2506bfc3.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-5061a594.js";import"./iframe-2c3043d3.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-12de6328.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-f42af098.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const ao={title:"Components/ConfirmModal",component:i},o=()=>p(i,{message:"Are you sure you want to delete this item?",confirmButtonText:"Delete",isOpen:!0,handleCancel:()=>null,handleConfirm:()=>null});var t,r,m;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:'() => null} handleConfirm={() => null} />',...(m=(r=o.parameters)==null?void 0:r.docs)==null?void 0:m.source}}};const so=["Default"];export{o as Default,so as __namedExportsOrder,ao as default}; +//# sourceMappingURL=ConfirmModal.stories-455c0b93.js.map diff --git a/storybook-static/assets/ConfirmModal.stories-455c0b93.js.map b/storybook-static/assets/ConfirmModal.stories-455c0b93.js.map new file mode 100644 index 0000000000..11961918e7 --- /dev/null +++ b/storybook-static/assets/ConfirmModal.stories-455c0b93.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ConfirmModal.stories-455c0b93.js","sources":[],"sourcesContent":[],"names":[],"mappings":""} \ No newline at end of file diff --git a/storybook-static/assets/ConfirmModal.stories-d8d5b274.js.map b/storybook-static/assets/ConfirmModal.stories-d8d5b274.js.map deleted file mode 100644 index 40ceb29fd1..0000000000 --- a/storybook-static/assets/ConfirmModal.stories-d8d5b274.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ConfirmModal.stories-d8d5b274.js","sources":[],"sourcesContent":[],"names":[],"mappings":""} \ No newline at end of file diff --git a/storybook-static/assets/ContentStatistics.stories-a568c8d3.js b/storybook-static/assets/ContentStatistics.stories-2cedaff3.js similarity index 89% rename from storybook-static/assets/ContentStatistics.stories-a568c8d3.js rename to storybook-static/assets/ContentStatistics.stories-2cedaff3.js index 25185cea2d..17d3ca5772 100644 --- a/storybook-static/assets/ContentStatistics.stories-a568c8d3.js +++ b/storybook-static/assets/ContentStatistics.stories-2cedaff3.js @@ -1,4 +1,4 @@ -import{a as c}from"./jsx-runtime-913be41c.js";import{y as t}from"./index-a7768622.js";import{d as r}from"./UserEngagementWrapper-def85d30.js";import"./index-2506bfc3.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-fdf5fad0.js";import"./iframe-6116c30d.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-0d861f57.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-dbf187d0.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const dt={title:"Components/ContentStatistics",component:r},o=()=>c(r,{statistics:[{icon:"view",label:`${t.datatype.number()} views`},{icon:"star",label:`${t.datatype.number()} useful`},{icon:"comment",label:`${t.datatype.number()} comments`},{icon:"update",label:`${t.datatype.number()} steps`}]}),i=()=>c(r,{statistics:[{icon:"view",label:"1 view"},{icon:"star",label:"1 useful"},{icon:"comment",label:"1 comment"},{icon:"update",label:"1 step"}]});var e,m,p;o.parameters={...o.parameters,docs:{...(e=o.parameters)==null?void 0:e.docs,source:{originalSource:"() => ",...(p=(m=o.parameters)==null?void 0:m.docs)==null?void 0:p.source}}};var n,a,s;i.parameters={...i.parameters,docs:{...(n=i.parameters)==null?void 0:n.docs,source:{originalSource:`() => c(r,{statistics:[{icon:"view",label:`${t.datatype.number()} views`},{icon:"star",label:`${t.datatype.number()} useful`},{icon:"comment",label:`${t.datatype.number()} comments`},{icon:"update",label:`${t.datatype.number()} steps`}]}),i=()=>c(r,{statistics:[{icon:"view",label:"1 view"},{icon:"star",label:"1 useful"},{icon:"comment",label:"1 comment"},{icon:"update",label:"1 step"}]});var e,m,p;o.parameters={...o.parameters,docs:{...(e=o.parameters)==null?void 0:e.docs,source:{originalSource:"() => ",...(p=(m=o.parameters)==null?void 0:m.docs)==null?void 0:p.source}}};var n,a,s;i.parameters={...i.parameters,docs:{...(n=i.parameters)==null?void 0:n.docs,source:{originalSource:`() => `,...(s=(a=i.parameters)==null?void 0:a.docs)==null?void 0:s.source}}};const ft=["Default","SingleCount"];export{o as Default,i as SingleCount,ft as __namedExportsOrder,dt as default}; -//# sourceMappingURL=ContentStatistics.stories-a568c8d3.js.map +//# sourceMappingURL=ContentStatistics.stories-2cedaff3.js.map diff --git a/storybook-static/assets/ContentStatistics.stories-a568c8d3.js.map b/storybook-static/assets/ContentStatistics.stories-2cedaff3.js.map similarity index 50% rename from storybook-static/assets/ContentStatistics.stories-a568c8d3.js.map rename to storybook-static/assets/ContentStatistics.stories-2cedaff3.js.map index cc4193239e..e555d086f8 100644 --- a/storybook-static/assets/ContentStatistics.stories-a568c8d3.js.map +++ b/storybook-static/assets/ContentStatistics.stories-2cedaff3.js.map @@ -1 +1 @@ -{"version":3,"file":"ContentStatistics.stories-a568c8d3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"ContentStatistics.stories-2cedaff3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"} \ No newline at end of file diff --git a/storybook-static/assets/CreateReply.stories-823ee380.js b/storybook-static/assets/CreateReply.stories-7cad2c78.js similarity index 89% rename from storybook-static/assets/CreateReply.stories-823ee380.js rename to storybook-static/assets/CreateReply.stories-7cad2c78.js index 271f7fd9e6..c07b295767 100644 --- a/storybook-static/assets/CreateReply.stories-823ee380.js +++ b/storybook-static/assets/CreateReply.stories-7cad2c78.js @@ -1,6 +1,6 @@ -import{a as n}from"./jsx-runtime-913be41c.js";import{C as t}from"./UserEngagementWrapper-def85d30.js";import"./index-2506bfc3.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-fdf5fad0.js";import"./iframe-6116c30d.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-0d861f57.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-dbf187d0.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const ur={title:"Components/CreateReply",component:t},r=()=>n(t,{commentId:"23543bh",isLoggedIn:!1,maxLength:75,onSubmit:()=>Promise.resolve()}),o=()=>n(t,{commentId:"23543bh",isLoggedIn:!0,maxLength:1e3,onSubmit:()=>Promise.resolve()});var m,e,i;r.parameters={...r.parameters,docs:{...(m=r.parameters)==null?void 0:m.docs,source:{originalSource:`() => { +import{a as n}from"./jsx-runtime-913be41c.js";import{C as t}from"./UserEngagementWrapper-e4672b42.js";import"./index-2506bfc3.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-5061a594.js";import"./iframe-2c3043d3.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-12de6328.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-f42af098.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const ur={title:"Components/CreateReply",component:t},r=()=>n(t,{commentId:"23543bh",isLoggedIn:!1,maxLength:75,onSubmit:()=>Promise.resolve()}),o=()=>n(t,{commentId:"23543bh",isLoggedIn:!0,maxLength:1e3,onSubmit:()=>Promise.resolve()});var m,e,i;r.parameters={...r.parameters,docs:{...(m=r.parameters)==null?void 0:m.docs,source:{originalSource:`() => { return Promise.resolve()} />; }`,...(i=(e=r.parameters)==null?void 0:e.docs)==null?void 0:i.source}}};var p,s,a;o.parameters={...o.parameters,docs:{...(p=o.parameters)==null?void 0:p.docs,source:{originalSource:`() => { return Promise.resolve()} />; }`,...(a=(s=o.parameters)==null?void 0:s.docs)==null?void 0:a.source}}};const gr=["Default","LoggedIn"];export{r as Default,o as LoggedIn,gr as __namedExportsOrder,ur as default}; -//# sourceMappingURL=CreateReply.stories-823ee380.js.map +//# sourceMappingURL=CreateReply.stories-7cad2c78.js.map diff --git a/storybook-static/assets/CreateReply.stories-7cad2c78.js.map b/storybook-static/assets/CreateReply.stories-7cad2c78.js.map new file mode 100644 index 0000000000..37d9445601 --- /dev/null +++ b/storybook-static/assets/CreateReply.stories-7cad2c78.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateReply.stories-7cad2c78.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"} \ No newline at end of file diff --git a/storybook-static/assets/CreateReply.stories-823ee380.js.map b/storybook-static/assets/CreateReply.stories-823ee380.js.map deleted file mode 100644 index 84e46f4982..0000000000 --- a/storybook-static/assets/CreateReply.stories-823ee380.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CreateReply.stories-823ee380.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"} \ No newline at end of file diff --git a/storybook-static/assets/DailyMotion-c43312ba.js b/storybook-static/assets/DailyMotion-037e30c7.js similarity index 98% rename from storybook-static/assets/DailyMotion-c43312ba.js rename to storybook-static/assets/DailyMotion-037e30c7.js index 46c63a78bf..0b48aad3ef 100644 --- a/storybook-static/assets/DailyMotion-c43312ba.js +++ b/storybook-static/assets/DailyMotion-037e30c7.js @@ -1,3 +1,3 @@ -import{g as F,r as J}from"./index-2506bfc3.js";import{p as Q,u as X}from"./VideoPlayer-0d861f57.js";function Z(s,f){for(var y=0;yu[c]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var b={};(function(s){function f(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(r){return typeof r}:f=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},f(e)}Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var y=T(J),u=X,c=Q;function d(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return d=function(){return e},e}function T(e){if(e&&e.__esModule)return e;if(e===null||f(e)!=="object"&&typeof e!="function")return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function A(e){for(var t=1;tu[c]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var b={};(function(s){function f(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(r){return typeof r}:f=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},f(e)}Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var y=T(J),u=X,c=Q;function d(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return d=function(){return e},e}function T(e){if(e&&e.__esModule)return e;if(e===null||f(e)!=="object"&&typeof e!="function")return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function A(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,a=void 0;try{for(var i=e[Symbol.iterator](),p;!(n=(p=i.next()).done)&&(r.push(p.value),!(t&&r.length===t));n=!0);}catch(_){o=!0,a=_}finally{try{!n&&i.return!=null&&i.return()}finally{if(o)throw a}}return r}}function I(e){if(Array.isArray(e))return e}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},v(e)}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var x="https://api.dmcdn.net/all.js",q="DM",B="dmAsyncInit",m=function(e){W(r,e);var t=$(r);function r(){var n;L(this,r);for(var o=arguments.length,a=new Array(o),i=0;i arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar SDK_URL = 'https://api.dmcdn.net/all.js';\nvar SDK_GLOBAL = 'DM';\nvar SDK_GLOBAL_READY = 'dmAsyncInit';\n\nvar DailyMotion = /*#__PURE__*/function (_Component) {\n _inherits(DailyMotion, _Component);\n\n var _super = _createSuper(DailyMotion);\n\n function DailyMotion() {\n var _this;\n\n _classCallCheck(this, DailyMotion);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"callPlayer\", _utils.callPlayer);\n\n _defineProperty(_assertThisInitialized(_this), \"onDurationChange\", function () {\n var duration = _this.getDuration();\n\n _this.props.onDuration(duration);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"mute\", function () {\n _this.callPlayer('setMuted', true);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"unmute\", function () {\n _this.callPlayer('setMuted', false);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"ref\", function (container) {\n _this.container = container;\n });\n\n return _this;\n }\n\n _createClass(DailyMotion, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.props.onMount && this.props.onMount(this);\n }\n }, {\n key: \"load\",\n value: function load(url) {\n var _this2 = this;\n\n var _this$props = this.props,\n controls = _this$props.controls,\n config = _this$props.config,\n onError = _this$props.onError,\n playing = _this$props.playing;\n\n var _url$match = url.match(_patterns.MATCH_URL_DAILYMOTION),\n _url$match2 = _slicedToArray(_url$match, 2),\n id = _url$match2[1];\n\n if (this.player) {\n this.player.load(id, {\n start: (0, _utils.parseStartTime)(url),\n autoplay: playing\n });\n return;\n }\n\n (0, _utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY, function (DM) {\n return DM.player;\n }).then(function (DM) {\n if (!_this2.container) return;\n var Player = DM.player;\n _this2.player = new Player(_this2.container, {\n width: '100%',\n height: '100%',\n video: id,\n params: _objectSpread({\n controls: controls,\n autoplay: _this2.props.playing,\n mute: _this2.props.muted,\n start: (0, _utils.parseStartTime)(url),\n origin: window.location.origin\n }, config.params),\n events: {\n apiready: _this2.props.onReady,\n seeked: function seeked() {\n return _this2.props.onSeek(_this2.player.currentTime);\n },\n video_end: _this2.props.onEnded,\n durationchange: _this2.onDurationChange,\n pause: _this2.props.onPause,\n playing: _this2.props.onPlay,\n waiting: _this2.props.onBuffer,\n error: function error(event) {\n return onError(event);\n }\n }\n });\n }, onError);\n }\n }, {\n key: \"play\",\n value: function play() {\n this.callPlayer('play');\n }\n }, {\n key: \"pause\",\n value: function pause() {\n this.callPlayer('pause');\n }\n }, {\n key: \"stop\",\n value: function stop() {// Nothing to do\n }\n }, {\n key: \"seekTo\",\n value: function seekTo(seconds) {\n this.callPlayer('seek', seconds);\n }\n }, {\n key: \"setVolume\",\n value: function setVolume(fraction) {\n this.callPlayer('setVolume', fraction);\n }\n }, {\n key: \"getDuration\",\n value: function getDuration() {\n return this.player.duration || null;\n }\n }, {\n key: \"getCurrentTime\",\n value: function getCurrentTime() {\n return this.player.currentTime;\n }\n }, {\n key: \"getSecondsLoaded\",\n value: function getSecondsLoaded() {\n return this.player.bufferedTime;\n }\n }, {\n key: \"render\",\n value: function render() {\n var display = this.props.display;\n var style = {\n width: '100%',\n height: '100%',\n display: display\n };\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: style\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n ref: this.ref\n }));\n }\n }]);\n\n return DailyMotion;\n}(_react.Component);\n\nexports[\"default\"] = DailyMotion;\n\n_defineProperty(DailyMotion, \"displayName\", 'DailyMotion');\n\n_defineProperty(DailyMotion, \"canPlay\", _patterns.canPlay.dailymotion);\n\n_defineProperty(DailyMotion, \"loopOnEnded\", true);"],"names":["_typeof","obj","exports","_react","_interopRequireWildcard","require$$0","_utils","require$$1","_patterns","require$$2","_getRequireWildcardCache","cache","newObj","hasPropertyDescriptor","key","desc","ownKeys","object","enumerableOnly","keys","symbols","sym","_objectSpread","target","i","source","_defineProperty","_slicedToArray","arr","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","o","minLen","_arrayLikeToArray","n","len","arr2","_arr","_n","_d","_e","_i","_s","err","_classCallCheck","instance","Constructor","_defineProperties","props","descriptor","_createClass","protoProps","staticProps","_inherits","subClass","superClass","_setPrototypeOf","p","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","Super","_getPrototypeOf","result","NewTarget","_possibleConstructorReturn","self","call","_assertThisInitialized","value","SDK_URL","SDK_GLOBAL","SDK_GLOBAL_READY","DailyMotion","_Component","_super","_this","_len","args","_key","duration","container","url","_this2","_this$props","controls","config","onError","playing","_url$match","_url$match2","id","DM","Player","event","seconds","fraction","display","style"],"mappings":"gdAEA,SAASA,EAAQC,EAAK,CAA6B,OAAI,OAAO,QAAW,YAAc,OAAO,OAAO,UAAa,SAAYD,EAAU,SAAiBC,EAAK,CAAE,OAAO,OAAOA,GAAiBD,EAAU,SAAiBC,EAAK,CAAE,OAAOA,GAAO,OAAO,QAAW,YAAcA,EAAI,cAAgB,QAAUA,IAAQ,OAAO,UAAY,SAAW,OAAOA,CAAI,EAAaD,EAAQC,CAAG,CAAI,CAE1X,OAAO,eAAwBC,EAAA,aAAc,CAC3C,MAAO,EACT,CAAC,EACDA,EAAQ,QAAa,OAErB,IAAIC,EAASC,EAAwBC,CAAgB,EAEjDC,EAASC,EAETC,EAAYC,EAEhB,SAASC,GAA2B,CAAE,GAAI,OAAO,SAAY,WAAY,OAAO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,CACD,IAAK,QACL,MAAO,UAAiB,CACtB,KAAK,WAAW,OAAO,CACxB,CACL,EAAK,CACD,IAAK,OACL,MAAO,UAAgB,CACtB,CACL,EAAK,CACD,IAAK,SACL,MAAO,SAAgBQ,EAAS,CAC9B,KAAK,WAAW,OAAQA,CAAO,CAChC,CACL,EAAK,CACD,IAAK,YACL,MAAO,SAAmBC,EAAU,CAClC,KAAK,WAAW,YAAaA,CAAQ,CACtC,CACL,EAAK,CACD,IAAK,cACL,MAAO,UAAuB,CAC5B,OAAO,KAAK,OAAO,UAAY,IAChC,CACL,EAAK,CACD,IAAK,iBACL,MAAO,UAA0B,CAC/B,OAAO,KAAK,OAAO,WACpB,CACL,EAAK,CACD,IAAK,mBACL,MAAO,UAA4B,CACjC,OAAO,KAAK,OAAO,YACpB,CACL,EAAK,CACD,IAAK,SACL,MAAO,UAAkB,CACvB,IAAIC,EAAU,KAAK,MAAM,QACrBC,EAAQ,CACV,MAAO,OACP,OAAQ,OACR,QAASD,CACjB,EACM,OAAoBjG,EAAO,QAAW,cAAc,MAAO,CACzD,MAAOkG,CACR,EAAelG,EAAO,QAAW,cAAc,MAAO,CACrD,IAAK,KAAK,GACX,CAAA,CAAC,CACH,CACF,CAAA,CAAC,EAEKyE,CACT,EAAEzE,EAAO,SAAS,EAElBD,EAAQ,QAAa0E,EAErBlD,EAAgBkD,EAAa,cAAe,aAAa,EAEzDlD,EAAgBkD,EAAa,UAAWpE,EAAU,QAAQ,WAAW,EAErEkB,EAAgBkD,EAAa,cAAe,EAAI","x_google_ignoreList":[0]} \ No newline at end of file +{"version":3,"file":"DailyMotion-037e30c7.js","sources":["../../../../node_modules/react-player/lazy/players/DailyMotion.js"],"sourcesContent":["\"use strict\";\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _utils = require(\"../utils\");\n\nvar _patterns = require(\"../patterns\");\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar SDK_URL = 'https://api.dmcdn.net/all.js';\nvar SDK_GLOBAL = 'DM';\nvar SDK_GLOBAL_READY = 'dmAsyncInit';\n\nvar DailyMotion = /*#__PURE__*/function (_Component) {\n _inherits(DailyMotion, _Component);\n\n var _super = _createSuper(DailyMotion);\n\n function DailyMotion() {\n var _this;\n\n _classCallCheck(this, DailyMotion);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"callPlayer\", _utils.callPlayer);\n\n _defineProperty(_assertThisInitialized(_this), \"onDurationChange\", function () {\n var duration = _this.getDuration();\n\n _this.props.onDuration(duration);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"mute\", function () {\n _this.callPlayer('setMuted', true);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"unmute\", function () {\n _this.callPlayer('setMuted', false);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"ref\", function (container) {\n _this.container = container;\n });\n\n return _this;\n }\n\n _createClass(DailyMotion, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.props.onMount && this.props.onMount(this);\n }\n }, {\n key: \"load\",\n value: function load(url) {\n var _this2 = this;\n\n var _this$props = this.props,\n controls = _this$props.controls,\n config = _this$props.config,\n onError = _this$props.onError,\n playing = _this$props.playing;\n\n var _url$match = url.match(_patterns.MATCH_URL_DAILYMOTION),\n _url$match2 = _slicedToArray(_url$match, 2),\n id = _url$match2[1];\n\n if (this.player) {\n this.player.load(id, {\n start: (0, _utils.parseStartTime)(url),\n autoplay: playing\n });\n return;\n }\n\n (0, _utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY, function (DM) {\n return DM.player;\n }).then(function (DM) {\n if (!_this2.container) return;\n var Player = DM.player;\n _this2.player = new Player(_this2.container, {\n width: '100%',\n height: '100%',\n video: id,\n params: _objectSpread({\n controls: controls,\n autoplay: _this2.props.playing,\n mute: _this2.props.muted,\n start: (0, _utils.parseStartTime)(url),\n origin: window.location.origin\n }, config.params),\n events: {\n apiready: _this2.props.onReady,\n seeked: function seeked() {\n return _this2.props.onSeek(_this2.player.currentTime);\n },\n video_end: _this2.props.onEnded,\n durationchange: _this2.onDurationChange,\n pause: _this2.props.onPause,\n playing: _this2.props.onPlay,\n waiting: _this2.props.onBuffer,\n error: function error(event) {\n return onError(event);\n }\n }\n });\n }, onError);\n }\n }, {\n key: \"play\",\n value: function play() {\n this.callPlayer('play');\n }\n }, {\n key: \"pause\",\n value: function pause() {\n this.callPlayer('pause');\n }\n }, {\n key: \"stop\",\n value: function stop() {// Nothing to do\n }\n }, {\n key: \"seekTo\",\n value: function seekTo(seconds) {\n this.callPlayer('seek', seconds);\n }\n }, {\n key: \"setVolume\",\n value: function setVolume(fraction) {\n this.callPlayer('setVolume', fraction);\n }\n }, {\n key: \"getDuration\",\n value: function getDuration() {\n return this.player.duration || null;\n }\n }, {\n key: \"getCurrentTime\",\n value: function getCurrentTime() {\n return this.player.currentTime;\n }\n }, {\n key: \"getSecondsLoaded\",\n value: function getSecondsLoaded() {\n return this.player.bufferedTime;\n }\n }, {\n key: \"render\",\n value: function render() {\n var display = this.props.display;\n var style = {\n width: '100%',\n height: '100%',\n display: display\n };\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: style\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n ref: this.ref\n }));\n }\n }]);\n\n return DailyMotion;\n}(_react.Component);\n\nexports[\"default\"] = DailyMotion;\n\n_defineProperty(DailyMotion, \"displayName\", 'DailyMotion');\n\n_defineProperty(DailyMotion, \"canPlay\", _patterns.canPlay.dailymotion);\n\n_defineProperty(DailyMotion, \"loopOnEnded\", true);"],"names":["_typeof","obj","exports","_react","_interopRequireWildcard","require$$0","_utils","require$$1","_patterns","require$$2","_getRequireWildcardCache","cache","newObj","hasPropertyDescriptor","key","desc","ownKeys","object","enumerableOnly","keys","symbols","sym","_objectSpread","target","i","source","_defineProperty","_slicedToArray","arr","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","o","minLen","_arrayLikeToArray","n","len","arr2","_arr","_n","_d","_e","_i","_s","err","_classCallCheck","instance","Constructor","_defineProperties","props","descriptor","_createClass","protoProps","staticProps","_inherits","subClass","superClass","_setPrototypeOf","p","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","Super","_getPrototypeOf","result","NewTarget","_possibleConstructorReturn","self","call","_assertThisInitialized","value","SDK_URL","SDK_GLOBAL","SDK_GLOBAL_READY","DailyMotion","_Component","_super","_this","_len","args","_key","duration","container","url","_this2","_this$props","controls","config","onError","playing","_url$match","_url$match2","id","DM","Player","event","seconds","fraction","display","style"],"mappings":"gdAEA,SAASA,EAAQC,EAAK,CAA6B,OAAI,OAAO,QAAW,YAAc,OAAO,OAAO,UAAa,SAAYD,EAAU,SAAiBC,EAAK,CAAE,OAAO,OAAOA,GAAiBD,EAAU,SAAiBC,EAAK,CAAE,OAAOA,GAAO,OAAO,QAAW,YAAcA,EAAI,cAAgB,QAAUA,IAAQ,OAAO,UAAY,SAAW,OAAOA,CAAI,EAAaD,EAAQC,CAAG,CAAI,CAE1X,OAAO,eAAwBC,EAAA,aAAc,CAC3C,MAAO,EACT,CAAC,EACDA,EAAQ,QAAa,OAErB,IAAIC,EAASC,EAAwBC,CAAgB,EAEjDC,EAASC,EAETC,EAAYC,EAEhB,SAASC,GAA2B,CAAE,GAAI,OAAO,SAAY,WAAY,OAAO,KAAM,IAAIC,EAAQ,IAAI,QAAW,OAAAD,EAA2B,UAAoC,CAAE,OAAOC,CAAQ,EAASA,CAAQ,CAElN,SAASP,EAAwBH,EAAK,CAAE,GAAIA,GAAOA,EAAI,WAAc,OAAOA,EAAO,GAAIA,IAAQ,MAAQD,EAAQC,CAAG,IAAM,UAAY,OAAOA,GAAQ,WAAc,MAAO,CAAE,QAAWA,CAAK,EAAI,IAAIU,EAAQD,EAAwB,EAAI,GAAIC,GAASA,EAAM,IAAIV,CAAG,EAAK,OAAOU,EAAM,IAAIV,CAAG,EAAK,IAAIW,EAAS,CAAE,EAAMC,EAAwB,OAAO,gBAAkB,OAAO,yBAA0B,QAASC,KAAOb,EAAO,GAAI,OAAO,UAAU,eAAe,KAAKA,EAAKa,CAAG,EAAG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O,YACpB,CACL,EAAK,CACD,IAAK,SACL,MAAO,UAAkB,CACvB,IAAIC,EAAU,KAAK,MAAM,QACrBC,EAAQ,CACV,MAAO,OACP,OAAQ,OACR,QAASD,CACjB,EACM,OAAoBjG,EAAO,QAAW,cAAc,MAAO,CACzD,MAAOkG,CACR,EAAelG,EAAO,QAAW,cAAc,MAAO,CACrD,IAAK,KAAK,GACX,CAAA,CAAC,CACH,CACF,CAAA,CAAC,EAEKyE,CACT,EAAEzE,EAAO,SAAS,EAElBD,EAAQ,QAAa0E,EAErBlD,EAAgBkD,EAAa,cAAe,aAAa,EAEzDlD,EAAgBkD,EAAa,UAAWpE,EAAU,QAAQ,WAAW,EAErEkB,EAAgBkD,EAAa,cAAe,EAAI","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/storybook-static/assets/DiscussionContainer.stories-bfd2d9c2.js b/storybook-static/assets/DiscussionContainer.stories-14fcb85a.js similarity index 94% rename from storybook-static/assets/DiscussionContainer.stories-bfd2d9c2.js rename to storybook-static/assets/DiscussionContainer.stories-14fcb85a.js index 85c4076236..c4dff99f12 100644 --- a/storybook-static/assets/DiscussionContainer.stories-bfd2d9c2.js +++ b/storybook-static/assets/DiscussionContainer.stories-14fcb85a.js @@ -1,4 +1,4 @@ -import{a as n}from"./jsx-runtime-913be41c.js";import{r as p}from"./index-2506bfc3.js";import{c as a}from"./utils-1b1bed3d.js";import{c as e}from"./UserEngagementWrapper-def85d30.js";import"./index-a7768622.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-fdf5fad0.js";import"./iframe-6116c30d.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-0d861f57.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-dbf187d0.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const we={title:"Components/DiscussionContainer",component:e},I=a(3),q=a(15),m={render:()=>n(e,{comment:"",comments:I,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,onChange:()=>null,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isLoggedIn:!1})},r={render:()=>n(e,{comments:[],handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:"",onChange:()=>null,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isLoggedIn:!1})},s={render:()=>{const[o,t]=p.useState("");return n(e,{comments:I,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:o,onChange:t,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isLoggedIn:!0})}},i={render:()=>{const[o,t]=p.useState("");return n(e,{comments:q,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:o,onChange:t,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isLoggedIn:!0})}},l={render:()=>{const[o,t]=p.useState(""),u=a(3);return u[0].replies=a(2),n(e,{supportReplies:!0,comments:u,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:o,onChange:t,onMoreComments:()=>null,onSubmit:()=>null,isLoggedIn:!0,onSubmitReply:async(y,k)=>alert(`reply to commentId: ${y} with comment: ${k}`)})}};var c,d,h;m.parameters={...m.parameters,docs:{...(c=m.parameters)==null?void 0:c.docs,source:{originalSource:`{ +import{a as n}from"./jsx-runtime-913be41c.js";import{r as p}from"./index-2506bfc3.js";import{c as a}from"./utils-1b1bed3d.js";import{c as e}from"./UserEngagementWrapper-e4672b42.js";import"./index-a7768622.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-5061a594.js";import"./iframe-2c3043d3.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-12de6328.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-f42af098.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const we={title:"Components/DiscussionContainer",component:e},I=a(3),q=a(15),m={render:()=>n(e,{comment:"",comments:I,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,onChange:()=>null,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isLoggedIn:!1})},r={render:()=>n(e,{comments:[],handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:"",onChange:()=>null,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isLoggedIn:!1})},s={render:()=>{const[o,t]=p.useState("");return n(e,{comments:I,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:o,onChange:t,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isLoggedIn:!0})}},i={render:()=>{const[o,t]=p.useState("");return n(e,{comments:q,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:o,onChange:t,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isLoggedIn:!0})}},l={render:()=>{const[o,t]=p.useState(""),u=a(3);return u[0].replies=a(2),n(e,{supportReplies:!0,comments:u,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:o,onChange:t,onMoreComments:()=>null,onSubmit:()=>null,isLoggedIn:!0,onSubmitReply:async(y,k)=>alert(`reply to commentId: ${y} with comment: ${k}`)})}};var c,d,h;m.parameters={...m.parameters,docs:{...(c=m.parameters)==null?void 0:c.docs,source:{originalSource:`{ render: () => { return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} onChange={() => null} onMoreComments={() => null} onSubmit={() => null} onSubmitReply={() => Promise.resolve()} isLoggedIn={false} />; } @@ -24,4 +24,4 @@ import{a as n}from"./jsx-runtime-913be41c.js";import{r as p}from"./index-2506bfc return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} comment={comment} onChange={setComment} onMoreComments={() => null} onSubmit={() => null} isLoggedIn={true} onSubmitReply={async (commentId, comment) => alert(\`reply to commentId: \${commentId} with comment: \${comment}\`)} />; } }`,...(x=(f=l.parameters)==null?void 0:f.docs)==null?void 0:x.source}}};const Ne=["Default","NoComments","LoggedIn","Expandable","WithReplies"];export{m as Default,i as Expandable,s as LoggedIn,r as NoComments,l as WithReplies,Ne as __namedExportsOrder,we as default}; -//# sourceMappingURL=DiscussionContainer.stories-bfd2d9c2.js.map +//# sourceMappingURL=DiscussionContainer.stories-14fcb85a.js.map diff --git a/storybook-static/assets/DiscussionContainer.stories-bfd2d9c2.js.map b/storybook-static/assets/DiscussionContainer.stories-14fcb85a.js.map similarity index 55% rename from storybook-static/assets/DiscussionContainer.stories-bfd2d9c2.js.map rename to storybook-static/assets/DiscussionContainer.stories-14fcb85a.js.map index 0b439a8b0f..3554da2ced 100644 --- a/storybook-static/assets/DiscussionContainer.stories-bfd2d9c2.js.map +++ b/storybook-static/assets/DiscussionContainer.stories-14fcb85a.js.map @@ -1 +1 @@ -{"version":3,"file":"DiscussionContainer.stories-bfd2d9c2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"DiscussionContainer.stories-14fcb85a.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/storybook-static/assets/DocsRenderer-3PUGWF3O-c7181fe4.js b/storybook-static/assets/DocsRenderer-3PUGWF3O-75cdb252.js similarity index 82% rename from storybook-static/assets/DocsRenderer-3PUGWF3O-c7181fe4.js rename to storybook-static/assets/DocsRenderer-3PUGWF3O-75cdb252.js index 7e91e3ad80..2ad1700cfa 100644 --- a/storybook-static/assets/DocsRenderer-3PUGWF3O-c7181fe4.js +++ b/storybook-static/assets/DocsRenderer-3PUGWF3O-75cdb252.js @@ -1,2 +1,2 @@ -import{_ as a}from"./iframe-6116c30d.js";import{R as e,r as c}from"./index-2506bfc3.js";import{r as u,u as h}from"./react-16-4d690755.js";import{C as l,A as E,H as d,D as x}from"./index-10537af2.js";import"../sb-preview/runtime.js";import"./index-0dfb046a.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./index-d37d4223.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./inheritsLoose-0022215d.js";import"./index-98ab55b0.js";import"./identity-0adaf7d3.js";import"./cloneDeep-ab381718.js";import"./index-356e4a49.js";var _={code:l,a:E,...d},D=class extends c.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){let{showException:r}=this.props;r(t)}render(){let{hasError:t}=this.state,{children:r}=this.props;return t?null:r}},B=class{constructor(){this.render=async(t,r,o)=>{let n={..._,...r==null?void 0:r.components},s=x;return new Promise((m,i)=>{a(()=>import("./index-ae96d1e8.js"),["./index-ae96d1e8.js","./index-f54c3cf8.js","./index-2506bfc3.js"],import.meta.url).then(({MDXProvider:p})=>u(e.createElement(D,{showException:i,key:Math.random()},e.createElement(p,{components:n},e.createElement(s,{context:t,docsParameter:r}))),o)).then(()=>m())})},this.unmount=t=>{h(t)}}};export{B as DocsRenderer,_ as defaultComponents}; -//# sourceMappingURL=DocsRenderer-3PUGWF3O-c7181fe4.js.map +import{_ as a}from"./iframe-2c3043d3.js";import{R as e,r as c}from"./index-2506bfc3.js";import{r as u,u as h}from"./react-16-4d690755.js";import{C as l,A as E,H as d,D as x}from"./index-75f1ca73.js";import"../sb-preview/runtime.js";import"./index-0dfb046a.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./index-d37d4223.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./inheritsLoose-0022215d.js";import"./index-98ab55b0.js";import"./identity-0adaf7d3.js";import"./cloneDeep-ab381718.js";import"./index-356e4a49.js";var _={code:l,a:E,...d},D=class extends c.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){let{showException:r}=this.props;r(t)}render(){let{hasError:t}=this.state,{children:r}=this.props;return t?null:r}},B=class{constructor(){this.render=async(t,r,o)=>{let n={..._,...r==null?void 0:r.components},s=x;return new Promise((m,i)=>{a(()=>import("./index-ae96d1e8.js"),["./index-ae96d1e8.js","./index-f54c3cf8.js","./index-2506bfc3.js"],import.meta.url).then(({MDXProvider:p})=>u(e.createElement(D,{showException:i,key:Math.random()},e.createElement(p,{components:n},e.createElement(s,{context:t,docsParameter:r}))),o)).then(()=>m())})},this.unmount=t=>{h(t)}}};export{B as DocsRenderer,_ as defaultComponents}; +//# sourceMappingURL=DocsRenderer-3PUGWF3O-75cdb252.js.map diff --git a/storybook-static/assets/DocsRenderer-3PUGWF3O-c7181fe4.js.map b/storybook-static/assets/DocsRenderer-3PUGWF3O-75cdb252.js.map similarity index 97% rename from storybook-static/assets/DocsRenderer-3PUGWF3O-c7181fe4.js.map rename to storybook-static/assets/DocsRenderer-3PUGWF3O-75cdb252.js.map index 2073048c6b..534bf6bd3c 100644 --- a/storybook-static/assets/DocsRenderer-3PUGWF3O-c7181fe4.js.map +++ b/storybook-static/assets/DocsRenderer-3PUGWF3O-75cdb252.js.map @@ -1 +1 @@ -{"version":3,"file":"DocsRenderer-3PUGWF3O-c7181fe4.js","sources":["../../../../node_modules/@storybook/addon-docs/dist/chunk-S4VUQJ4A.mjs"],"sourcesContent":["import React, { Component } from 'react';\nimport { renderElement, unmountElement } from '@storybook/react-dom-shim';\nimport { CodeOrSourceMdx, AnchorMdx, HeadersMdx, Docs } from '@storybook/blocks';\n\nvar defaultComponents={code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx},ErrorBoundary=class extends Component{constructor(){super(...arguments);this.state={hasError:!1};}static getDerivedStateFromError(){return {hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err);}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:children}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=Docs;return new Promise((resolve,reject)=>{import('@mdx-js/react').then(({MDXProvider})=>renderElement(React.createElement(ErrorBoundary,{showException:reject,key:Math.random()},React.createElement(MDXProvider,{components},React.createElement(TDocs,{context,docsParameter}))),element)).then(()=>resolve());})},this.unmount=element=>{unmountElement(element);};}};\n\nexport { DocsRenderer, defaultComponents };\n"],"names":["defaultComponents","CodeOrSourceMdx","AnchorMdx","HeadersMdx","ErrorBoundary","Component","err","showException","hasError","children","DocsRenderer","context","docsParameter","element","components","TDocs","Docs","resolve","reject","__vitePreload","MDXProvider","renderElement","React","unmountElement"],"mappings":"wjBAIG,IAACA,EAAkB,CAAC,KAAKC,EAAgB,EAAEC,EAAU,GAAGC,CAAU,EAAEC,EAAc,cAAcC,EAAAA,SAAS,CAAC,aAAa,CAAC,MAAM,GAAG,SAAS,EAAE,KAAK,MAAM,CAAC,SAAS,EAAE,CAAE,CAAC,OAAO,0BAA0B,CAAC,MAAO,CAAC,SAAS,EAAE,CAAC,CAAC,kBAAkBC,EAAI,CAAC,GAAG,CAAC,cAAAC,CAAa,EAAE,KAAK,MAAMA,EAAcD,CAAG,CAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAAE,CAAQ,EAAE,KAAK,MAAM,CAAC,SAAAC,CAAQ,EAAE,KAAK,MAAM,OAAOD,EAAS,KAAKC,CAAQ,CAAC,EAAEC,EAAa,KAAK,CAAC,aAAa,CAAC,KAAK,OAAO,MAAMC,EAAQC,EAAcC,IAAU,CAAC,IAAIC,EAAW,CAAC,GAAGd,EAAkB,GAAGY,GAAA,YAAAA,EAAe,UAAU,EAAEG,EAAMC,EAAK,OAAO,IAAI,QAAQ,CAACC,EAAQC,IAAS,CAACC,EAAA,IAAA,OAAO,qBAAe,sCAAE,KAAK,CAAC,CAAC,YAAAC,CAAW,IAAIC,EAAcC,EAAM,cAAclB,EAAc,CAAC,cAAcc,EAAO,IAAI,KAAK,OAAM,CAAE,EAAEI,EAAM,cAAcF,EAAY,CAAC,WAAAN,CAAU,EAAEQ,EAAM,cAAcP,EAAM,CAAC,QAAAJ,EAAQ,cAAAC,CAAa,CAAC,CAAC,CAAC,EAAEC,CAAO,CAAC,EAAE,KAAK,IAAII,EAAO,CAAE,CAAE,CAAC,CAAC,EAAE,KAAK,QAAQJ,GAAS,CAACU,EAAeV,CAAO,CAAE,CAAE,CAAC","x_google_ignoreList":[0]} \ No newline at end of file +{"version":3,"file":"DocsRenderer-3PUGWF3O-75cdb252.js","sources":["../../../../node_modules/@storybook/addon-docs/dist/chunk-S4VUQJ4A.mjs"],"sourcesContent":["import React, { Component } from 'react';\nimport { renderElement, unmountElement } from '@storybook/react-dom-shim';\nimport { CodeOrSourceMdx, AnchorMdx, HeadersMdx, Docs } from '@storybook/blocks';\n\nvar defaultComponents={code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx},ErrorBoundary=class extends Component{constructor(){super(...arguments);this.state={hasError:!1};}static getDerivedStateFromError(){return {hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err);}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:children}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=Docs;return new Promise((resolve,reject)=>{import('@mdx-js/react').then(({MDXProvider})=>renderElement(React.createElement(ErrorBoundary,{showException:reject,key:Math.random()},React.createElement(MDXProvider,{components},React.createElement(TDocs,{context,docsParameter}))),element)).then(()=>resolve());})},this.unmount=element=>{unmountElement(element);};}};\n\nexport { DocsRenderer, defaultComponents };\n"],"names":["defaultComponents","CodeOrSourceMdx","AnchorMdx","HeadersMdx","ErrorBoundary","Component","err","showException","hasError","children","DocsRenderer","context","docsParameter","element","components","TDocs","Docs","resolve","reject","__vitePreload","MDXProvider","renderElement","React","unmountElement"],"mappings":"wjBAIG,IAACA,EAAkB,CAAC,KAAKC,EAAgB,EAAEC,EAAU,GAAGC,CAAU,EAAEC,EAAc,cAAcC,EAAAA,SAAS,CAAC,aAAa,CAAC,MAAM,GAAG,SAAS,EAAE,KAAK,MAAM,CAAC,SAAS,EAAE,CAAE,CAAC,OAAO,0BAA0B,CAAC,MAAO,CAAC,SAAS,EAAE,CAAC,CAAC,kBAAkBC,EAAI,CAAC,GAAG,CAAC,cAAAC,CAAa,EAAE,KAAK,MAAMA,EAAcD,CAAG,CAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAAE,CAAQ,EAAE,KAAK,MAAM,CAAC,SAAAC,CAAQ,EAAE,KAAK,MAAM,OAAOD,EAAS,KAAKC,CAAQ,CAAC,EAAEC,EAAa,KAAK,CAAC,aAAa,CAAC,KAAK,OAAO,MAAMC,EAAQC,EAAcC,IAAU,CAAC,IAAIC,EAAW,CAAC,GAAGd,EAAkB,GAAGY,GAAA,YAAAA,EAAe,UAAU,EAAEG,EAAMC,EAAK,OAAO,IAAI,QAAQ,CAACC,EAAQC,IAAS,CAACC,EAAA,IAAA,OAAO,qBAAe,sCAAE,KAAK,CAAC,CAAC,YAAAC,CAAW,IAAIC,EAAcC,EAAM,cAAclB,EAAc,CAAC,cAAcc,EAAO,IAAI,KAAK,OAAM,CAAE,EAAEI,EAAM,cAAcF,EAAY,CAAC,WAAAN,CAAU,EAAEQ,EAAM,cAAcP,EAAM,CAAC,QAAAJ,EAAQ,cAAAC,CAAa,CAAC,CAAC,CAAC,EAAEC,CAAO,CAAC,EAAE,KAAK,IAAII,EAAO,CAAE,CAAE,CAAC,CAAC,EAAE,KAAK,QAAQJ,GAAS,CAACU,EAAeV,CAAO,CAAE,CAAE,CAAC","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/storybook-static/assets/DownloadFileFromLink.stories-5f2ac877.js b/storybook-static/assets/DownloadFileFromLink.stories-4466eb28.js similarity index 90% rename from storybook-static/assets/DownloadFileFromLink.stories-5f2ac877.js rename to storybook-static/assets/DownloadFileFromLink.stories-4466eb28.js index 01b4ca6a71..ae3e7a9636 100644 --- a/storybook-static/assets/DownloadFileFromLink.stories-5f2ac877.js +++ b/storybook-static/assets/DownloadFileFromLink.stories-4466eb28.js @@ -1,8 +1,8 @@ -import{a as l}from"./jsx-runtime-913be41c.js";import{b as t}from"./UserEngagementWrapper-def85d30.js";import"./index-2506bfc3.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-fdf5fad0.js";import"./iframe-6116c30d.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-0d861f57.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-dbf187d0.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const ko={title:"Components/DownloadFileFromLink",component:t},o=()=>l(t,{link:"https://example.com",handleClick:async()=>{alert("Clicked")}}),r=()=>l(t,{link:"https://example.com",handleClick:async()=>{alert("Clicked")},redirectToSignIn:async()=>{alert("Redirect to Sign In")}});var i,m,p;o.parameters={...o.parameters,docs:{...(i=o.parameters)==null?void 0:i.docs,source:{originalSource:`() => { +import{a as l}from"./jsx-runtime-913be41c.js";import{b as t}from"./UserEngagementWrapper-e4672b42.js";import"./index-2506bfc3.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-5061a594.js";import"./iframe-2c3043d3.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-12de6328.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-f42af098.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const ko={title:"Components/DownloadFileFromLink",component:t},o=()=>l(t,{link:"https://example.com",handleClick:async()=>{alert("Clicked")}}),r=()=>l(t,{link:"https://example.com",handleClick:async()=>{alert("Clicked")},redirectToSignIn:async()=>{alert("Redirect to Sign In")}});var i,m,p;o.parameters={...o.parameters,docs:{...(i=o.parameters)==null?void 0:i.docs,source:{originalSource:`() => { alert('Clicked'); }} />`,...(p=(m=o.parameters)==null?void 0:m.docs)==null?void 0:p.source}}};var e,a,n;r.parameters={...r.parameters,docs:{...(e=r.parameters)==null?void 0:e.docs,source:{originalSource:`() => { alert('Clicked'); }} redirectToSignIn={async () => { alert('Redirect to Sign In'); }} />`,...(n=(a=r.parameters)==null?void 0:a.docs)==null?void 0:n.source}}};const uo=["Default","LoggedOut"];export{o as Default,r as LoggedOut,uo as __namedExportsOrder,ko as default}; -//# sourceMappingURL=DownloadFileFromLink.stories-5f2ac877.js.map +//# sourceMappingURL=DownloadFileFromLink.stories-4466eb28.js.map diff --git a/storybook-static/assets/DownloadFileFromLink.stories-4466eb28.js.map b/storybook-static/assets/DownloadFileFromLink.stories-4466eb28.js.map new file mode 100644 index 0000000000..3f40430393 --- /dev/null +++ b/storybook-static/assets/DownloadFileFromLink.stories-4466eb28.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DownloadFileFromLink.stories-4466eb28.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"} \ No newline at end of file diff --git a/storybook-static/assets/DownloadFileFromLink.stories-5f2ac877.js.map b/storybook-static/assets/DownloadFileFromLink.stories-5f2ac877.js.map deleted file mode 100644 index fce963cfa5..0000000000 --- a/storybook-static/assets/DownloadFileFromLink.stories-5f2ac877.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DownloadFileFromLink.stories-5f2ac877.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"} \ No newline at end of file diff --git a/storybook-static/assets/DownloadStaticFile.stories-dad4acb6.js b/storybook-static/assets/DownloadStaticFile.stories-e2231425.js similarity index 90% rename from storybook-static/assets/DownloadStaticFile.stories-dad4acb6.js rename to storybook-static/assets/DownloadStaticFile.stories-e2231425.js index f415dc99cc..d83e285f27 100644 --- a/storybook-static/assets/DownloadStaticFile.stories-dad4acb6.js +++ b/storybook-static/assets/DownloadStaticFile.stories-e2231425.js @@ -1,4 +1,4 @@ -import{a as s}from"./jsx-runtime-913be41c.js";import{D as r}from"./UserEngagementWrapper-def85d30.js";import"./index-2506bfc3.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-fdf5fad0.js";import"./iframe-6116c30d.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-0d861f57.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-dbf187d0.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const uo={title:"Components/DownloadStaticFile",component:r},o=()=>s(r,{file:{name:"example",size:12e5,downloadUrl:"https://example.com"}}),t=()=>s(r,{file:{name:"example",size:12e5,downloadUrl:"https://example.com"},redirectToSignIn:async()=>{alert("Redirect to Sign In")}});var i,m,p;o.parameters={...o.parameters,docs:{...(i=o.parameters)==null?void 0:i.docs,source:{originalSource:`() => s(r,{file:{name:"example",size:12e5,downloadUrl:"https://example.com"}}),t=()=>s(r,{file:{name:"example",size:12e5,downloadUrl:"https://example.com"},redirectToSignIn:async()=>{alert("Redirect to Sign In")}});var i,m,p;o.parameters={...o.parameters,docs:{...(i=o.parameters)==null?void 0:i.docs,source:{originalSource:`() => { alert('Redirect to Sign In'); }} />`,...(n=(a=t.parameters)==null?void 0:a.docs)==null?void 0:n.source}}};const xo=["Default","LoggedOut"];export{o as Default,t as LoggedOut,xo as __namedExportsOrder,uo as default}; -//# sourceMappingURL=DownloadStaticFile.stories-dad4acb6.js.map +//# sourceMappingURL=DownloadStaticFile.stories-e2231425.js.map diff --git a/storybook-static/assets/DownloadStaticFile.stories-dad4acb6.js.map b/storybook-static/assets/DownloadStaticFile.stories-e2231425.js.map similarity index 50% rename from storybook-static/assets/DownloadStaticFile.stories-dad4acb6.js.map rename to storybook-static/assets/DownloadStaticFile.stories-e2231425.js.map index c0011ef6cf..bacd0d0e44 100644 --- a/storybook-static/assets/DownloadStaticFile.stories-dad4acb6.js.map +++ b/storybook-static/assets/DownloadStaticFile.stories-e2231425.js.map @@ -1 +1 @@ -{"version":3,"file":"DownloadStaticFile.stories-dad4acb6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"DownloadStaticFile.stories-e2231425.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"} \ No newline at end of file diff --git a/storybook-static/assets/EditComment.stories-19024d62.js.map b/storybook-static/assets/EditComment.stories-19024d62.js.map deleted file mode 100644 index a51283d622..0000000000 --- a/storybook-static/assets/EditComment.stories-19024d62.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EditComment.stories-19024d62.js","sources":[],"sourcesContent":[],"names":[],"mappings":""} \ No newline at end of file diff --git a/storybook-static/assets/EditComment.stories-19024d62.js b/storybook-static/assets/EditComment.stories-c563f09f.js similarity index 88% rename from storybook-static/assets/EditComment.stories-19024d62.js rename to storybook-static/assets/EditComment.stories-c563f09f.js index 99551a2c16..f0811766b6 100644 --- a/storybook-static/assets/EditComment.stories-19024d62.js +++ b/storybook-static/assets/EditComment.stories-c563f09f.js @@ -1,2 +1,2 @@ -import{a as p}from"./jsx-runtime-913be41c.js";import{E as i}from"./UserEngagementWrapper-def85d30.js";import"./index-2506bfc3.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-fdf5fad0.js";import"./iframe-6116c30d.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-0d861f57.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-dbf187d0.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const at={title:"Components/EditComment",component:i},t=()=>p(i,{comment:"A short comment",handleCancel:()=>null,handleSubmit:()=>null});var o,m,r;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:'() => null} handleSubmit={() => null} />',...(r=(m=t.parameters)==null?void 0:m.docs)==null?void 0:r.source}}};const st=["Default"];export{t as Default,st as __namedExportsOrder,at as default}; -//# sourceMappingURL=EditComment.stories-19024d62.js.map +import{a as p}from"./jsx-runtime-913be41c.js";import{E as i}from"./UserEngagementWrapper-e4672b42.js";import"./index-2506bfc3.js";import"./Button-82517beb.js";import"./Icon-976e5b12.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./theme-ui-css.esm-a1197288.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./icon-verified-badge-3c009cbf.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./theme-ui-components.esm-784287e5.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./index-150eb7c2.js";import"./MemberBadge-a0c54109.js";import"./ExternalLink-299075d0.js";import"./Select-747e2260.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./ElWithBeforeIcon-bfad359c.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./CharacterCount-ef389ffa.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./index-4d501b15.js";import"./InternalLink-53f45de4.js";import"./GlobalStyles-6382182d.js";import"./ImageGallery-5061a594.js";import"./iframe-2c3043d3.js";import"../sb-preview/runtime.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-12de6328.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-f42af098.js";import"./DiscussionTitle-b470b4e1.js";import"./inheritsLoose-0022215d.js";const at={title:"Components/EditComment",component:i},t=()=>p(i,{comment:"A short comment",handleCancel:()=>null,handleSubmit:()=>null});var o,m,r;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:'() => null} handleSubmit={() => null} />',...(r=(m=t.parameters)==null?void 0:m.docs)==null?void 0:r.source}}};const st=["Default"];export{t as Default,st as __namedExportsOrder,at as default}; +//# sourceMappingURL=EditComment.stories-c563f09f.js.map diff --git a/storybook-static/assets/EditComment.stories-c563f09f.js.map b/storybook-static/assets/EditComment.stories-c563f09f.js.map new file mode 100644 index 0000000000..4b6809ce02 --- /dev/null +++ b/storybook-static/assets/EditComment.stories-c563f09f.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EditComment.stories-c563f09f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""} \ No newline at end of file diff --git a/storybook-static/assets/ExternalLink.stories-264554d3.js b/storybook-static/assets/ExternalLink.stories-20c7ce71.js similarity index 89% rename from storybook-static/assets/ExternalLink.stories-264554d3.js rename to storybook-static/assets/ExternalLink.stories-20c7ce71.js index 91ce0c017e..99c0a47e30 100644 --- a/storybook-static/assets/ExternalLink.stories-264554d3.js +++ b/storybook-static/assets/ExternalLink.stories-20c7ce71.js @@ -1,4 +1,4 @@ -import{a as i,j as k}from"./jsx-runtime-913be41c.js";import"./UserEngagementWrapper-def85d30.js";import"./Button-82517beb.js";import"./ButtonShowReplies-783defd9.js";import"./CreateComment-6120cd48.js";import"./ElWithBeforeIcon-bfad359c.js";import{E as e}from"./ExternalLink-299075d0.js";import"./FieldDatepicker-3af30642.js";import"./FieldInput-bd380294.js";import"./FieldTextarea-3d00f174.js";import"./Username-259912a7.js";import"./GlobalStyles-6382182d.js";import{I as L}from"./Icon-976e5b12.js";import"./ImageGallery-fdf5fad0.js";import"./InternalLink-53f45de4.js";import"./Loader-25159258.js";import"./MapMemberCard-577ffa07.js";import"./MemberBadge-a0c54109.js";import"./Modal-edae582c.js";import"./ModerationStatus-3b9fa1d2.js";import"./MoreContainer-58244bef.js";import"./NotificationItem-6920b16c.js";import"./NotificationList-da3b9a1e.js";import"./OsmGeocoding-362e7475.js";import"./ProfileLink-fd0a19e7.js";import"./ResearchEditorOverview-2f92ab3e.js";import"./Select-747e2260.js";import"./emotion-styled.browser.esm-935c8bd8.js";import"./Tag-1587e022.js";import"./TextNotification-2d34cd0a.js";import"./Tooltip-60f84766.js";import"./UserStatistics-55370718.js";import"./VideoPlayer-0d861f57.js";import"./BlockedRoute-9a43b7fd.js";import"./TabbedContent-dbf187d0.js";import"./DiscussionTitle-b470b4e1.js";import{b as h}from"./theme-ui-components.esm-784287e5.js";import"./index-2506bfc3.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-11801e73.js";import"./emotion-element-6a883da9.browser.esm-becb4ad2.js";import"./index-150eb7c2.js";import"./isNativeReflectConstruct-7f9e7527.js";import"./inheritsLoose-0022215d.js";import"./hoist-non-react-statics.cjs-dd442a32.js";import"./index-54304c9c.js";import"./index-0dfb046a.js";import"./CharacterCount-ef389ffa.js";import"./icon-verified-badge-3c009cbf.js";import"./index-4d501b15.js";import"./emotion-react.browser.esm-ac7fc07b.js";import"./theme-ui-core-jsx-runtime.esm-9bc3c749.js";import"./theme-ui-css.esm-a1197288.js";import"./icon-arrow-down-33f070d5.js";import"./icon-star-active-309631d9.js";import"./iframe-6116c30d.js";import"../sb-preview/runtime.js";const Er={title:"Components/ExternalLink",component:e},r=()=>i(e,{href:"#",children:"Link Text"}),t=()=>i(e,{href:"#",color:"black",sx:{textDecoration:"underline"},children:"Link Text"}),o=()=>k(e,{href:"#",children:[i(h,{children:"Link Text"}),i(L,{glyph:"external-link",ml:[1]})]});var m,p,n;r.parameters={...r.parameters,docs:{...(m=r.parameters)==null?void 0:m.docs,source:{originalSource:'() => Link Text',...(n=(p=r.parameters)==null?void 0:p.docs)==null?void 0:n.source}}};var a,s,c;t.parameters={...t.parameters,docs:{...(a=t.parameters)==null?void 0:a.docs,source:{originalSource:`() => i(e,{href:"#",children:"Link Text"}),t=()=>i(e,{href:"#",color:"black",sx:{textDecoration:"underline"},children:"Link Text"}),o=()=>k(e,{href:"#",children:[i(h,{children:"Link Text"}),i(L,{glyph:"external-link",ml:[1]})]});var m,p,n;r.parameters={...r.parameters,docs:{...(m=r.parameters)==null?void 0:m.docs,source:{originalSource:'() => Link Text',...(n=(p=r.parameters)==null?void 0:p.docs)==null?void 0:n.source}}};var a,s,c;t.parameters={...t.parameters,docs:{...(a=t.parameters)==null?void 0:a.docs,source:{originalSource:`() => Link Text @@ -6,4 +6,4 @@ import{a as i,j as k}from"./jsx-runtime-913be41c.js";import"./UserEngagementWrap Link Text `,...(d=(x=o.parameters)==null?void 0:x.docs)==null?void 0:d.source}}};const Tr=["Basic","Styled","WithIcon"];export{r as Basic,t as Styled,o as WithIcon,Tr as __namedExportsOrder,Er as default}; -//# sourceMappingURL=ExternalLink.stories-264554d3.js.map +//# sourceMappingURL=ExternalLink.stories-20c7ce71.js.map diff --git a/storybook-static/assets/ExternalLink.stories-20c7ce71.js.map b/storybook-static/assets/ExternalLink.stories-20c7ce71.js.map new file mode 100644 index 0000000000..0307615a38 --- /dev/null +++ b/storybook-static/assets/ExternalLink.stories-20c7ce71.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ExternalLink.stories-20c7ce71.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"} \ No newline at end of file diff --git a/storybook-static/assets/ExternalLink.stories-264554d3.js.map b/storybook-static/assets/ExternalLink.stories-264554d3.js.map deleted file mode 100644 index e1455f197c..0000000000 --- a/storybook-static/assets/ExternalLink.stories-264554d3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ExternalLink.stories-264554d3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"} \ No newline at end of file diff --git a/storybook-static/assets/Facebook-a6226103.js b/storybook-static/assets/Facebook-410e8186.js similarity index 98% rename from storybook-static/assets/Facebook-a6226103.js rename to storybook-static/assets/Facebook-410e8186.js index c125eea040..4169966950 100644 --- a/storybook-static/assets/Facebook-a6226103.js +++ b/storybook-static/assets/Facebook-410e8186.js @@ -1,2 +1,2 @@ -import{g as T,r as x}from"./index-2506bfc3.js";import{p as B,u as C}from"./VideoPlayer-0d861f57.js";function K(c,l){for(var p=0;pi[f]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var P={};(function(c){function l(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(n){return typeof n}:l=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},l(e)}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var p=k(x),i=C,f=B;function y(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return y=function(){return e},e}function k(e){if(e&&e.__esModule)return e;if(e===null||l(e)!=="object"&&typeof e!="function")return{default:e};var t=y();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=r?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function m(){return m=Object.assign||function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},h(e)}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D="https://connect.facebook.net/en_US/sdk.js",S="FB",w="fbAsyncInit",A="facebook-player-",v=function(e){I(n,e);var t=L(n);function n(){var r;R(this,n);for(var a=arguments.length,u=new Array(a),o=0;oi[f]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var P={};(function(c){function l(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(n){return typeof n}:l=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},l(e)}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var p=k(x),i=C,f=B;function y(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return y=function(){return e},e}function k(e){if(e&&e.__esModule)return e;if(e===null||l(e)!=="object"&&typeof e!="function")return{default:e};var t=y();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=r?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function m(){return m=Object.assign||function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},h(e)}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D="https://connect.facebook.net/en_US/sdk.js",S="FB",w="fbAsyncInit",A="facebook-player-",v=function(e){I(n,e);var t=L(n);function n(){var r;R(this,n);for(var a=arguments.length,u=new Array(a),o=0;oc[h]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var I={};(function(v){function y(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(s){return typeof s}:y=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},y(r)}Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var d=M(Q),c=Z,h=Y;function m(){if(typeof WeakMap!="function")return null;var r=new WeakMap;return m=function(){return r},r}function M(r){if(r&&r.__esModule)return r;if(r===null||y(r)!=="object"&&typeof r!="function")return{default:r};var o=m();if(o&&o.has(r))return o.get(r);var s={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e)){var n=t?Object.getOwnPropertyDescriptor(r,e):null;n&&(n.get||n.set)?Object.defineProperty(s,e,n):s[e]=r[e]}return s.default=r,o&&o.set(r,s),s}function S(){return S=Object.assign||function(r){for(var o=1;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(r){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},_(r)}function u(r,o,s){return o in r?Object.defineProperty(r,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[o]=s,r}var O=typeof navigator<"u",C=O&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,D=O&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||C)&&!window.MSStream,B=O&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,$="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",j="Hls",x="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",W="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",q="flvjs",G=/www\.dropbox\.com\/.+/,R=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,X="https://videodelivery.net/{id}/manifest/video.m3u8",k=function(r){T(s,r);var o=H(s);function s(){var t;U(this,s);for(var e=arguments.length,n=new Array(e),a=0;a0?a.end(a.length-1):n}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var e=this.player.buffered;if(e.length===0)return 0;var n=e.end(e.length-1),a=this.getDuration();return n>a?a:n}},{key:"getSource",value:function(e){var n=this.shouldUseHLS(e),a=this.shouldUseDASH(e),i=this.shouldUseFLV(e);if(!(e instanceof Array||(0,c.isMediaStream)(e)||n||a||i))return G.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}},{key:"render",value:function(){var e=this.props,n=e.url,a=e.playing,i=e.loop,p=e.controls,g=e.muted,P=e.config,f=e.width,E=e.height,L=this.shouldUseAudio(this.props),A=L?"audio":"video",z={width:f==="auto"?f:"100%",height:E==="auto"?E:"100%"};return d.default.createElement(A,S({ref:this.ref,src:this.getSource(n),style:z,preload:"auto",autoPlay:a||void 0,controls:p,muted:g,loop:i},P.attributes),n instanceof Array&&n.map(this.renderSourceElement),P.tracks.map(this.renderTrack))}}]),s}(d.Component);v.default=k,u(k,"displayName","FilePlayer"),u(k,"canPlay",h.canPlay.file)})(I);const te=J(I),ie=ee({__proto__:null,default:te},[I]);export{ie as F}; -//# sourceMappingURL=FilePlayer-a108850c.js.map +import{g as J,r as Q}from"./index-2506bfc3.js";import{p as Y,u as Z}from"./VideoPlayer-12de6328.js";function ee(v,y){for(var d=0;dc[h]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var I={};(function(v){function y(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(s){return typeof s}:y=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},y(r)}Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var d=M(Q),c=Z,h=Y;function m(){if(typeof WeakMap!="function")return null;var r=new WeakMap;return m=function(){return r},r}function M(r){if(r&&r.__esModule)return r;if(r===null||y(r)!=="object"&&typeof r!="function")return{default:r};var o=m();if(o&&o.has(r))return o.get(r);var s={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e)){var n=t?Object.getOwnPropertyDescriptor(r,e):null;n&&(n.get||n.set)?Object.defineProperty(s,e,n):s[e]=r[e]}return s.default=r,o&&o.set(r,s),s}function S(){return S=Object.assign||function(r){for(var o=1;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(r){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},_(r)}function u(r,o,s){return o in r?Object.defineProperty(r,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[o]=s,r}var O=typeof navigator<"u",C=O&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,D=O&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||C)&&!window.MSStream,B=O&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,$="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",j="Hls",x="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",W="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",q="flvjs",G=/www\.dropbox\.com\/.+/,R=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,X="https://videodelivery.net/{id}/manifest/video.m3u8",k=function(r){T(s,r);var o=H(s);function s(){var t;U(this,s);for(var e=arguments.length,n=new Array(e),a=0;a0?a.end(a.length-1):n}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var e=this.player.buffered;if(e.length===0)return 0;var n=e.end(e.length-1),a=this.getDuration();return n>a?a:n}},{key:"getSource",value:function(e){var n=this.shouldUseHLS(e),a=this.shouldUseDASH(e),i=this.shouldUseFLV(e);if(!(e instanceof Array||(0,c.isMediaStream)(e)||n||a||i))return G.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}},{key:"render",value:function(){var e=this.props,n=e.url,a=e.playing,i=e.loop,p=e.controls,g=e.muted,P=e.config,f=e.width,E=e.height,L=this.shouldUseAudio(this.props),A=L?"audio":"video",z={width:f==="auto"?f:"100%",height:E==="auto"?E:"100%"};return d.default.createElement(A,S({ref:this.ref,src:this.getSource(n),style:z,preload:"auto",autoPlay:a||void 0,controls:p,muted:g,loop:i},P.attributes),n instanceof Array&&n.map(this.renderSourceElement),P.tracks.map(this.renderTrack))}}]),s}(d.Component);v.default=k,u(k,"displayName","FilePlayer"),u(k,"canPlay",h.canPlay.file)})(I);const te=J(I),ie=ee({__proto__:null,default:te},[I]);export{ie as F}; +//# sourceMappingURL=FilePlayer-0f00787a.js.map diff --git a/storybook-static/assets/FilePlayer-a108850c.js.map b/storybook-static/assets/FilePlayer-0f00787a.js.map similarity index 99% rename from storybook-static/assets/FilePlayer-a108850c.js.map rename to storybook-static/assets/FilePlayer-0f00787a.js.map index 51baca845f..21ccea3641 100644 --- a/storybook-static/assets/FilePlayer-a108850c.js.map +++ b/storybook-static/assets/FilePlayer-0f00787a.js.map @@ -1 +1 @@ -{"version":3,"file":"FilePlayer-a108850c.js","sources":["../../../../node_modules/react-player/lazy/players/FilePlayer.js"],"sourcesContent":["\"use strict\";\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _utils = require(\"../utils\");\n\nvar _patterns = require(\"../patterns\");\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar HAS_NAVIGATOR = typeof navigator !== 'undefined';\nvar IS_IPAD_PRO = HAS_NAVIGATOR && navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1;\nvar IS_IOS = HAS_NAVIGATOR && (/iPad|iPhone|iPod/.test(navigator.userAgent) || IS_IPAD_PRO) && !window.MSStream;\nvar IS_SAFARI = HAS_NAVIGATOR && /^((?!chrome|android).)*safari/i.test(navigator.userAgent) && !window.MSStream;\nvar HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';\nvar HLS_GLOBAL = 'Hls';\nvar DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';\nvar DASH_GLOBAL = 'dashjs';\nvar FLV_SDK_URL = 'https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js';\nvar FLV_GLOBAL = 'flvjs';\nvar MATCH_DROPBOX_URL = /www\\.dropbox\\.com\\/.+/;\nvar MATCH_CLOUDFLARE_STREAM = /https:\\/\\/watch\\.cloudflarestream\\.com\\/([a-z0-9]+)/;\nvar REPLACE_CLOUDFLARE_STREAM = 'https://videodelivery.net/{id}/manifest/video.m3u8';\n\nvar FilePlayer = /*#__PURE__*/function (_Component) {\n _inherits(FilePlayer, _Component);\n\n var _super = _createSuper(FilePlayer);\n\n function FilePlayer() {\n var _this;\n\n _classCallCheck(this, FilePlayer);\n\n for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n _args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(_args));\n\n _defineProperty(_assertThisInitialized(_this), \"onReady\", function () {\n var _this$props;\n\n return (_this$props = _this.props).onReady.apply(_this$props, arguments);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onPlay\", function () {\n var _this$props2;\n\n return (_this$props2 = _this.props).onPlay.apply(_this$props2, arguments);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onBuffer\", function () {\n var _this$props3;\n\n return (_this$props3 = _this.props).onBuffer.apply(_this$props3, arguments);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onBufferEnd\", function () {\n var _this$props4;\n\n return (_this$props4 = _this.props).onBufferEnd.apply(_this$props4, arguments);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onPause\", function () {\n var _this$props5;\n\n return (_this$props5 = _this.props).onPause.apply(_this$props5, arguments);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onEnded\", function () {\n var _this$props6;\n\n return (_this$props6 = _this.props).onEnded.apply(_this$props6, arguments);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onError\", function () {\n var _this$props7;\n\n return (_this$props7 = _this.props).onError.apply(_this$props7, arguments);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onPlayBackRateChange\", function (event) {\n return _this.props.onPlaybackRateChange(event.target.playbackRate);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onEnablePIP\", function () {\n var _this$props8;\n\n return (_this$props8 = _this.props).onEnablePIP.apply(_this$props8, arguments);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onDisablePIP\", function (e) {\n var _this$props9 = _this.props,\n onDisablePIP = _this$props9.onDisablePIP,\n playing = _this$props9.playing;\n onDisablePIP(e);\n\n if (playing) {\n _this.play();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onPresentationModeChange\", function (e) {\n if (_this.player && (0, _utils.supportsWebKitPresentationMode)(_this.player)) {\n var webkitPresentationMode = _this.player.webkitPresentationMode;\n\n if (webkitPresentationMode === 'picture-in-picture') {\n _this.onEnablePIP(e);\n } else if (webkitPresentationMode === 'inline') {\n _this.onDisablePIP(e);\n }\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onSeek\", function (e) {\n _this.props.onSeek(e.target.currentTime);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"mute\", function () {\n _this.player.muted = true;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"unmute\", function () {\n _this.player.muted = false;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"renderSourceElement\", function (source, index) {\n if (typeof source === 'string') {\n return /*#__PURE__*/_react[\"default\"].createElement(\"source\", {\n key: index,\n src: source\n });\n }\n\n return /*#__PURE__*/_react[\"default\"].createElement(\"source\", _extends({\n key: index\n }, source));\n });\n\n _defineProperty(_assertThisInitialized(_this), \"renderTrack\", function (track, index) {\n return /*#__PURE__*/_react[\"default\"].createElement(\"track\", _extends({\n key: index\n }, track));\n });\n\n _defineProperty(_assertThisInitialized(_this), \"ref\", function (player) {\n if (_this.player) {\n // Store previous player to be used by removeListeners()\n _this.prevPlayer = _this.player;\n }\n\n _this.player = player;\n });\n\n return _this;\n }\n\n _createClass(FilePlayer, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.props.onMount && this.props.onMount(this);\n this.addListeners(this.player);\n this.player.src = this.getSource(this.props.url); // Ensure src is set in strict mode\n\n if (IS_IOS) {\n this.player.load();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (this.shouldUseAudio(this.props) !== this.shouldUseAudio(prevProps)) {\n this.removeListeners(this.prevPlayer, prevProps.url);\n this.addListeners(this.player);\n }\n\n if (this.props.url !== prevProps.url && !(0, _utils.isMediaStream)(this.props.url)) {\n this.player.srcObject = null;\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.player.src = '';\n this.removeListeners(this.player);\n\n if (this.hls) {\n this.hls.destroy();\n }\n }\n }, {\n key: \"addListeners\",\n value: function addListeners(player) {\n var _this$props10 = this.props,\n url = _this$props10.url,\n playsinline = _this$props10.playsinline;\n player.addEventListener('play', this.onPlay);\n player.addEventListener('waiting', this.onBuffer);\n player.addEventListener('playing', this.onBufferEnd);\n player.addEventListener('pause', this.onPause);\n player.addEventListener('seeked', this.onSeek);\n player.addEventListener('ended', this.onEnded);\n player.addEventListener('error', this.onError);\n player.addEventListener('ratechange', this.onPlayBackRateChange);\n player.addEventListener('enterpictureinpicture', this.onEnablePIP);\n player.addEventListener('leavepictureinpicture', this.onDisablePIP);\n player.addEventListener('webkitpresentationmodechanged', this.onPresentationModeChange);\n\n if (!this.shouldUseHLS(url)) {\n // onReady is handled by hls.js\n player.addEventListener('canplay', this.onReady);\n }\n\n if (playsinline) {\n player.setAttribute('playsinline', '');\n player.setAttribute('webkit-playsinline', '');\n player.setAttribute('x5-playsinline', '');\n }\n }\n }, {\n key: \"removeListeners\",\n value: function removeListeners(player, url) {\n player.removeEventListener('canplay', this.onReady);\n player.removeEventListener('play', this.onPlay);\n player.removeEventListener('waiting', this.onBuffer);\n player.removeEventListener('playing', this.onBufferEnd);\n player.removeEventListener('pause', this.onPause);\n player.removeEventListener('seeked', this.onSeek);\n player.removeEventListener('ended', this.onEnded);\n player.removeEventListener('error', this.onError);\n player.removeEventListener('ratechange', this.onPlayBackRateChange);\n player.removeEventListener('enterpictureinpicture', this.onEnablePIP);\n player.removeEventListener('leavepictureinpicture', this.onDisablePIP);\n player.removeEventListener('webkitpresentationmodechanged', this.onPresentationModeChange);\n\n if (!this.shouldUseHLS(url)) {\n // onReady is handled by hls.js\n player.removeEventListener('canplay', this.onReady);\n }\n } // Proxy methods to prevent listener leaks\n\n }, {\n key: \"shouldUseAudio\",\n value: function shouldUseAudio(props) {\n if (props.config.forceVideo) {\n return false;\n }\n\n if (props.config.attributes.poster) {\n return false; // Use