@storybook/test 9.0.0-alpha.1 → 9.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -23,8 +23,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
23
23
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit(arr,i2){var _i=arr==null?null:typeof Symbol<"u"&&arr[Symbol.iterator]||arr["@@iterator"];if(_i!=null){var _arr=[],_n=!0,_d=!1,_s,_e;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!(i2&&_arr.length===i2));_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return!=null&&_i.return()}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length=="number"){it&&(o=it);var i2=0,F=function(){};return{s:F,n:function(){return i2>=o.length?{done:!0}:{done:!1,value:o[i2++]}},e:function(_e2){throw _e2},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
24
24
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var normalCompletion=!0,didErr=!1,err;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3},f:function(){try{!normalCompletion&&it.return!=null&&it.return()}finally{if(didErr)throw err}}}}function _unsupportedIterableToArray(o,minLen){if(o){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),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)}}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i2=0,arr2=new Array(len);i2<len;i2++)arr2[i2]=arr[i2];return arr2}var elementRoles3=[],keys2=_rolesMap.default.keys();for(i=0;i<keys2.length;i++)if(key=keys2[i],role=_rolesMap.default.get(key),role)for(concepts=[].concat(role.baseConcepts,role.relatedConcepts),k2=0;k2<concepts.length;k2++)relation=concepts[k2],relation.module==="HTML"&&function(){var concept=relation.concept;if(concept){var elementRoleRelation=elementRoles3.find(function(relation2){return(0,_lite.dequal)(relation2,concept)}),roles3;elementRoleRelation?roles3=elementRoleRelation[1]:roles3=[];for(var isUnique=!0,_i=0;_i<roles3.length;_i++)if(roles3[_i]===key){isUnique=!1;break}isUnique&&roles3.push(key),elementRoles3.push([concept,roles3])}}();var key,role,concepts,relation,k2,i,elementRoleMap={entries:function(){return elementRoles3},forEach:function(fn3){var thisArg=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,_iterator=_createForOfIteratorHelper(elementRoles3),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),_key=_step$value[0],values=_step$value[1];fn3.call(thisArg,values,_key,elementRoles3)}}catch(err){_iterator.e(err)}finally{_iterator.f()}},get:function(key2){var item=elementRoles3.find(function(tuple){return key2.name===tuple[0].name&&(0,_lite.dequal)(key2.attributes,tuple[0].attributes)});return item&&item[1]},has:function(key2){return!!elementRoleMap.get(key2)},keys:function(){return elementRoles3.map(function(_ref){var _ref2=_slicedToArray(_ref,1),key2=_ref2[0];return key2})},values:function(){return elementRoles3.map(function(_ref3){var _ref4=_slicedToArray(_ref3,2),values2=_ref4[1];return values2})}},_default2=(0,_iterationDecorator.default)(elementRoleMap,elementRoleMap.entries());exports2.default=_default2}});var require_roleElementMap2=__commonJS({"../../node_modules/@testing-library/dom/node_modules/aria-query/lib/roleElementMap.js"(exports2){"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});exports2.default=void 0;var _iterationDecorator=_interopRequireDefault(require_iterationDecorator2()),_rolesMap=_interopRequireDefault(require_rolesMap2());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _slicedToArray(arr,i2){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i2)||_unsupportedIterableToArray(arr,i2)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
25
25
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit(arr,i2){var _i=arr==null?null:typeof Symbol<"u"&&arr[Symbol.iterator]||arr["@@iterator"];if(_i!=null){var _arr=[],_n=!0,_d=!1,_s,_e;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!(i2&&_arr.length===i2));_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return!=null&&_i.return()}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length=="number"){it&&(o=it);var i2=0,F=function(){};return{s:F,n:function(){return i2>=o.length?{done:!0}:{done:!1,value:o[i2++]}},e:function(_e2){throw _e2},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
26
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var normalCompletion=!0,didErr=!1,err;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3},f:function(){try{!normalCompletion&&it.return!=null&&it.return()}finally{if(didErr)throw err}}}}function _unsupportedIterableToArray(o,minLen){if(o){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),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)}}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i2=0,arr2=new Array(len);i2<len;i2++)arr2[i2]=arr[i2];return arr2}var roleElement=[],keys2=_rolesMap.default.keys();for(i=0;i<keys2.length;i++)if(key=keys2[i],role=_rolesMap.default.get(key),relationConcepts=[],role){for(concepts=[].concat(role.baseConcepts,role.relatedConcepts),k2=0;k2<concepts.length;k2++)relation=concepts[k2],relation.module==="HTML"&&(concept=relation.concept,concept!=null&&relationConcepts.push(concept));relationConcepts.length>0&&roleElement.push([key,relationConcepts])}var key,role,relationConcepts,concepts,relation,concept,k2,i,roleElementMap={entries:function(){return roleElement},forEach:function(fn3){var thisArg=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,_iterator=_createForOfIteratorHelper(roleElement),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),_key=_step$value[0],values=_step$value[1];fn3.call(thisArg,values,_key,roleElement)}}catch(err){_iterator.e(err)}finally{_iterator.f()}},get:function(key2){var item=roleElement.find(function(tuple){return tuple[0]===key2});return item&&item[1]},has:function(key2){return!!roleElementMap.get(key2)},keys:function(){return roleElement.map(function(_ref){var _ref2=_slicedToArray(_ref,1),key2=_ref2[0];return key2})},values:function(){return roleElement.map(function(_ref3){var _ref4=_slicedToArray(_ref3,2),values2=_ref4[1];return values2})}},_default2=(0,_iterationDecorator.default)(roleElementMap,roleElementMap.entries());exports2.default=_default2}});var require_lib2=__commonJS({"../../node_modules/@testing-library/dom/node_modules/aria-query/lib/index.js"(exports2){"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});exports2.roles=exports2.roleElements=exports2.elementRoles=exports2.dom=exports2.aria=void 0;var _ariaPropsMap=_interopRequireDefault(require_ariaPropsMap2()),_domMap=_interopRequireDefault(require_domMap2()),_rolesMap=_interopRequireDefault(require_rolesMap2()),_elementRoleMap=_interopRequireDefault(require_elementRoleMap2()),_roleElementMap=_interopRequireDefault(require_roleElementMap2());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var aria=_ariaPropsMap.default;exports2.aria=aria;var dom=_domMap.default;exports2.dom=dom;var roles3=_rolesMap.default;exports2.roles=roles3;var elementRoles3=_elementRoleMap.default;exports2.elementRoles=elementRoles3;var roleElements2=_roleElementMap.default;exports2.roleElements=roleElements2}});var require_lz_string=__commonJS({"../../node_modules/lz-string/libs/lz-string.js"(exports2,module2){"use strict";var LZString=function(){var f3=String.fromCharCode,keyStrBase64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",keyStrUriSafe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",baseReverseDic={};function getBaseValue(alphabet,character){if(!baseReverseDic[alphabet]){baseReverseDic[alphabet]={};for(var i=0;i<alphabet.length;i++)baseReverseDic[alphabet][alphabet.charAt(i)]=i}return baseReverseDic[alphabet][character]}var LZString2={compressToBase64:function(input2){if(input2==null)return"";var res=LZString2._compress(input2,6,function(a2){return keyStrBase64.charAt(a2)});switch(res.length%4){default:case 0:return res;case 1:return res+"===";case 2:return res+"==";case 3:return res+"="}},decompressFromBase64:function(input2){return input2==null?"":input2==""?null:LZString2._decompress(input2.length,32,function(index){return getBaseValue(keyStrBase64,input2.charAt(index))})},compressToUTF16:function(input2){return input2==null?"":LZString2._compress(input2,15,function(a2){return f3(a2+32)})+" "},decompressFromUTF16:function(compressed){return compressed==null?"":compressed==""?null:LZString2._decompress(compressed.length,16384,function(index){return compressed.charCodeAt(index)-32})},compressToUint8Array:function(uncompressed){for(var compressed=LZString2.compress(uncompressed),buf=new Uint8Array(compressed.length*2),i=0,TotalLen=compressed.length;i<TotalLen;i++){var current_value=compressed.charCodeAt(i);buf[i*2]=current_value>>>8,buf[i*2+1]=current_value%256}return buf},decompressFromUint8Array:function(compressed){if(compressed==null)return LZString2.decompress(compressed);for(var buf=new Array(compressed.length/2),i=0,TotalLen=buf.length;i<TotalLen;i++)buf[i]=compressed[i*2]*256+compressed[i*2+1];var result=[];return buf.forEach(function(c){result.push(f3(c))}),LZString2.decompress(result.join(""))},compressToEncodedURIComponent:function(input2){return input2==null?"":LZString2._compress(input2,6,function(a2){return keyStrUriSafe.charAt(a2)})},decompressFromEncodedURIComponent:function(input2){return input2==null?"":input2==""?null:(input2=input2.replace(/ /g,"+"),LZString2._decompress(input2.length,32,function(index){return getBaseValue(keyStrUriSafe,input2.charAt(index))}))},compress:function(uncompressed){return LZString2._compress(uncompressed,16,function(a2){return f3(a2)})},_compress:function(uncompressed,bitsPerChar,getCharFromInt){if(uncompressed==null)return"";var i,value,context_dictionary={},context_dictionaryToCreate={},context_c="",context_wc="",context_w="",context_enlargeIn=2,context_dictSize=3,context_numBits=2,context_data=[],context_data_val=0,context_data_position=0,ii;for(ii=0;ii<uncompressed.length;ii+=1)if(context_c=uncompressed.charAt(ii),Object.prototype.hasOwnProperty.call(context_dictionary,context_c)||(context_dictionary[context_c]=context_dictSize++,context_dictionaryToCreate[context_c]=!0),context_wc=context_w+context_c,Object.prototype.hasOwnProperty.call(context_dictionary,context_wc))context_w=context_wc;else{if(Object.prototype.hasOwnProperty.call(context_dictionaryToCreate,context_w)){if(context_w.charCodeAt(0)<256){for(i=0;i<context_numBits;i++)context_data_val=context_data_val<<1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++;for(value=context_w.charCodeAt(0),i=0;i<8;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1}else{for(value=1,i=0;i<context_numBits;i++)context_data_val=context_data_val<<1|value,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=0;for(value=context_w.charCodeAt(0),i=0;i<16;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1}context_enlargeIn--,context_enlargeIn==0&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++),delete context_dictionaryToCreate[context_w]}else for(value=context_dictionary[context_w],i=0;i<context_numBits;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1;context_enlargeIn--,context_enlargeIn==0&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++),context_dictionary[context_wc]=context_dictSize++,context_w=String(context_c)}if(context_w!==""){if(Object.prototype.hasOwnProperty.call(context_dictionaryToCreate,context_w)){if(context_w.charCodeAt(0)<256){for(i=0;i<context_numBits;i++)context_data_val=context_data_val<<1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++;for(value=context_w.charCodeAt(0),i=0;i<8;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1}else{for(value=1,i=0;i<context_numBits;i++)context_data_val=context_data_val<<1|value,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=0;for(value=context_w.charCodeAt(0),i=0;i<16;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1}context_enlargeIn--,context_enlargeIn==0&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++),delete context_dictionaryToCreate[context_w]}else for(value=context_dictionary[context_w],i=0;i<context_numBits;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1;context_enlargeIn--,context_enlargeIn==0&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++)}for(value=2,i=0;i<context_numBits;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1;for(;;)if(context_data_val=context_data_val<<1,context_data_position==bitsPerChar-1){context_data.push(getCharFromInt(context_data_val));break}else context_data_position++;return context_data.join("")},decompress:function(compressed){return compressed==null?"":compressed==""?null:LZString2._decompress(compressed.length,32768,function(index){return compressed.charCodeAt(index)})},_decompress:function(length,resetValue,getNextValue){var dictionary=[],next,enlargeIn=4,dictSize=4,numBits=3,entry="",result=[],i,w2,bits,resb,maxpower,power,c,data={val:getNextValue(0),position:resetValue,index:1};for(i=0;i<3;i+=1)dictionary[i]=i;for(bits=0,maxpower=Math.pow(2,2),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;switch(next=bits){case 0:for(bits=0,maxpower=Math.pow(2,8),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;c=f3(bits);break;case 1:for(bits=0,maxpower=Math.pow(2,16),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;c=f3(bits);break;case 2:return""}for(dictionary[3]=c,w2=c,result.push(c);;){if(data.index>length)return"";for(bits=0,maxpower=Math.pow(2,numBits),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;switch(c=bits){case 0:for(bits=0,maxpower=Math.pow(2,8),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;dictionary[dictSize++]=f3(bits),c=dictSize-1,enlargeIn--;break;case 1:for(bits=0,maxpower=Math.pow(2,16),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;dictionary[dictSize++]=f3(bits),c=dictSize-1,enlargeIn--;break;case 2:return result.join("")}if(enlargeIn==0&&(enlargeIn=Math.pow(2,numBits),numBits++),dictionary[c])entry=dictionary[c];else if(c===dictSize)entry=w2+w2.charAt(0);else return null;result.push(entry),dictionary[dictSize++]=w2+entry.charAt(0),enlargeIn--,w2=entry,enlargeIn==0&&(enlargeIn=Math.pow(2,numBits),numBits++)}}};return LZString2}();typeof define=="function"&&define.amd?define(function(){return LZString}):typeof module2<"u"&&module2!=null?module2.exports=LZString:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return LZString})}});var index_exports={};__export(index_exports,{buildQueries:()=>buildQueries2,clearAllMocks:()=>clearAllMocks,configure:()=>configure2,createEvent:()=>createEvent3,expect:()=>expect3,findAllByAltText:()=>findAllByAltText2,findAllByDisplayValue:()=>findAllByDisplayValue2,findAllByLabelText:()=>findAllByLabelText2,findAllByPlaceholderText:()=>findAllByPlaceholderText2,findAllByRole:()=>findAllByRole2,findAllByTestId:()=>findAllByTestId2,findAllByText:()=>findAllByText2,findAllByTitle:()=>findAllByTitle2,findByAltText:()=>findByAltText2,findByDisplayValue:()=>findByDisplayValue2,findByLabelText:()=>findByLabelText2,findByPlaceholderText:()=>findByPlaceholderText2,findByRole:()=>findByRole2,findByTestId:()=>findByTestId2,findByText:()=>findByText2,findByTitle:()=>findByTitle2,fireEvent:()=>fireEvent2,fn:()=>fn2,getAllByAltText:()=>getAllByAltText2,getAllByDisplayValue:()=>getAllByDisplayValue2,getAllByLabelText:()=>getAllByLabelText2,getAllByPlaceholderText:()=>getAllByPlaceholderText2,getAllByRole:()=>getAllByRole2,getAllByTestId:()=>getAllByTestId2,getAllByText:()=>getAllByText2,getAllByTitle:()=>getAllByTitle2,getByAltText:()=>getByAltText2,getByDisplayValue:()=>getByDisplayValue2,getByLabelText:()=>getByLabelText2,getByPlaceholderText:()=>getByPlaceholderText2,getByRole:()=>getByRole2,getByTestId:()=>getByTestId2,getByText:()=>getByText2,getByTitle:()=>getByTitle2,getConfig:()=>getConfig3,getDefaultNormalizer:()=>getDefaultNormalizer2,getElementError:()=>getElementError2,getNodeText:()=>getNodeText2,getQueriesForElement:()=>getQueriesForElement2,getRoles:()=>getRoles2,getSuggestedQuery:()=>getSuggestedQuery2,isInaccessible:()=>isInaccessible2,isMockFunction:()=>isMockFunction,logDOM:()=>logDOM2,logRoles:()=>logRoles2,mocked:()=>mocked,mocks:()=>mocks,onMockCall:()=>onMockCall,prettyDOM:()=>prettyDOM2,prettyFormat:()=>prettyFormat2,queries:()=>queries2,queryAllByAltText:()=>queryAllByAltText2,queryAllByAttribute:()=>queryAllByAttribute2,queryAllByDisplayValue:()=>queryAllByDisplayValue2,queryAllByLabelText:()=>queryAllByLabelText2,queryAllByPlaceholderText:()=>queryAllByPlaceholderText2,queryAllByRole:()=>queryAllByRole2,queryAllByTestId:()=>queryAllByTestId2,queryAllByText:()=>queryAllByText2,queryAllByTitle:()=>queryAllByTitle2,queryByAltText:()=>queryByAltText2,queryByAttribute:()=>queryByAttribute2,queryByDisplayValue:()=>queryByDisplayValue2,queryByLabelText:()=>queryByLabelText2,queryByPlaceholderText:()=>queryByPlaceholderText2,queryByRole:()=>queryByRole2,queryByTestId:()=>queryByTestId2,queryByText:()=>queryByText2,queryByTitle:()=>queryByTitle2,queryHelpers:()=>queryHelpers2,resetAllMocks:()=>resetAllMocks,restoreAllMocks:()=>restoreAllMocks,screen:()=>screen2,spyOn:()=>spyOn2,traverseArgs:()=>traverseArgs,userEvent:()=>userEvent2,waitFor:()=>waitFor2,waitForElementToBeRemoved:()=>waitForElementToBeRemoved2,within:()=>within});module.exports=__toCommonJS(index_exports);var import_global=require("@storybook/global"),import_instrumenter2=require("@storybook/instrumenter");var __defProp2=Object.defineProperty,__getOwnPropNames2=Object.getOwnPropertyNames,__name=(target,value)=>__defProp2(target,"name",{value,configurable:!0}),__commonJS2=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames2(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__export2=(target,all)=>{for(var name in all)__defProp2(target,name,{get:all[name],enumerable:!0})},require_util=__commonJS2({"(disabled):util"(){}}),utils_exports={};__export2(utils_exports,{addChainableMethod:()=>addChainableMethod,addLengthGuard:()=>addLengthGuard,addMethod:()=>addMethod,addProperty:()=>addProperty,checkError:()=>check_error_exports,compareByInspect:()=>compareByInspect,eql:()=>deep_eql_default,expectTypes:()=>expectTypes,flag:()=>flag,getActual:()=>getActual,getMessage:()=>getMessage2,getName:()=>getName,getOperator:()=>getOperator,getOwnEnumerableProperties:()=>getOwnEnumerableProperties,getOwnEnumerablePropertySymbols:()=>getOwnEnumerablePropertySymbols,getPathInfo:()=>getPathInfo,hasProperty:()=>hasProperty,inspect:()=>inspect2,isNaN:()=>isNaN22,isNumeric:()=>isNumeric,isProxyEnabled:()=>isProxyEnabled,isRegExp:()=>isRegExp2,objDisplay:()=>objDisplay,overwriteChainableMethod:()=>overwriteChainableMethod,overwriteMethod:()=>overwriteMethod,overwriteProperty:()=>overwriteProperty,proxify:()=>proxify,test:()=>test,transferFlags:()=>transferFlags,type:()=>type});var check_error_exports={};__export2(check_error_exports,{compatibleConstructor:()=>compatibleConstructor,compatibleInstance:()=>compatibleInstance,compatibleMessage:()=>compatibleMessage,getConstructorName:()=>getConstructorName,getMessage:()=>getMessage});function isErrorInstance(obj){return obj instanceof Error||Object.prototype.toString.call(obj)==="[object Error]"}__name(isErrorInstance,"isErrorInstance");function isRegExp(obj){return Object.prototype.toString.call(obj)==="[object RegExp]"}__name(isRegExp,"isRegExp");function compatibleInstance(thrown,errorLike){return isErrorInstance(errorLike)&&thrown===errorLike}__name(compatibleInstance,"compatibleInstance");function compatibleConstructor(thrown,errorLike){return isErrorInstance(errorLike)?thrown.constructor===errorLike.constructor||thrown instanceof errorLike.constructor:(typeof errorLike=="object"||typeof errorLike=="function")&&errorLike.prototype?thrown.constructor===errorLike||thrown instanceof errorLike:!1}__name(compatibleConstructor,"compatibleConstructor");function compatibleMessage(thrown,errMatcher){let comparisonString=typeof thrown=="string"?thrown:thrown.message;return isRegExp(errMatcher)?errMatcher.test(comparisonString):typeof errMatcher=="string"?comparisonString.indexOf(errMatcher)!==-1:!1}__name(compatibleMessage,"compatibleMessage");function getConstructorName(errorLike){let constructorName=errorLike;return isErrorInstance(errorLike)?constructorName=errorLike.constructor.name:typeof errorLike=="function"&&(constructorName=errorLike.name,constructorName===""&&(constructorName=new errorLike().name||constructorName)),constructorName}__name(getConstructorName,"getConstructorName");function getMessage(errorLike){let msg="";return errorLike&&errorLike.message?msg=errorLike.message:typeof errorLike=="string"&&(msg=errorLike),msg}__name(getMessage,"getMessage");function flag(obj,key,value){var flags=obj.__flags||(obj.__flags=Object.create(null));if(arguments.length===3)flags[key]=value;else return flags[key]}__name(flag,"flag");function test(obj,args){var negate=flag(obj,"negate"),expr=args[0];return negate?!expr:expr}__name(test,"test");function type(obj){if(typeof obj>"u")return"undefined";if(obj===null)return"null";let stringTag=obj[Symbol.toStringTag];return typeof stringTag=="string"?stringTag:Object.prototype.toString.call(obj).slice(8,-1)}__name(type,"type");var canElideFrames="captureStackTrace"in Error,AssertionError=class _AssertionError extends Error{static{__name(this,"AssertionError")}message;get name(){return"AssertionError"}get ok(){return!1}constructor(message="Unspecified AssertionError",props,ssf){super(message),this.message=message,canElideFrames&&Error.captureStackTrace(this,ssf||_AssertionError);for(let key in props)key in this||(this[key]=props[key])}toJSON(stack){return{...this,name:this.name,message:this.message,ok:!1,stack:stack!==!1?this.stack:void 0}}};function expectTypes(obj,types){var flagMsg=flag(obj,"message"),ssfi=flag(obj,"ssfi");flagMsg=flagMsg?flagMsg+": ":"",obj=flag(obj,"object"),types=types.map(function(t){return t.toLowerCase()}),types.sort();var str=types.map(function(t,index){var art=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an":"a",or=types.length>1&&index===types.length-1?"or ":"";return or+art+" "+t}).join(", "),objType=type(obj).toLowerCase();if(!types.some(function(expected){return objType===expected}))throw new AssertionError(flagMsg+"object tested must be "+str+", but "+objType+" given",void 0,ssfi)}__name(expectTypes,"expectTypes");function getActual(obj,args){return args.length>4?args[4]:obj._obj}__name(getActual,"getActual");var ansiColors={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},styles={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},truncator="\u2026";function colorise(value,styleType){let color=ansiColors[styles[styleType]]||ansiColors[styleType]||"";return color?`\x1B[${color[0]}m${String(value)}\x1B[${color[1]}m`:String(value)}__name(colorise,"colorise");function normaliseOptions({showHidden=!1,depth=2,colors=!1,customInspect=!0,showProxy=!1,maxArrayLength=1/0,breakLength=1/0,seen=[],truncate:truncate22=1/0,stylize=String}={},inspect32){let options={showHidden:!!showHidden,depth:Number(depth),colors:!!colors,customInspect:!!customInspect,showProxy:!!showProxy,maxArrayLength:Number(maxArrayLength),breakLength:Number(breakLength),truncate:Number(truncate22),seen,inspect:inspect32,stylize};return options.colors&&(options.stylize=colorise),options}__name(normaliseOptions,"normaliseOptions");function isHighSurrogate(char){return char>="\uD800"&&char<="\uDBFF"}__name(isHighSurrogate,"isHighSurrogate");function truncate(string,length,tail=truncator){string=String(string);let tailLength=tail.length,stringLength=string.length;if(tailLength>length&&stringLength>tailLength)return tail;if(stringLength>length&&stringLength>tailLength){let end=length-tailLength;return end>0&&isHighSurrogate(string[end-1])&&(end=end-1),`${string.slice(0,end)}${tail}`}return string}__name(truncate,"truncate");function inspectList(list,options,inspectItem,separator=", "){inspectItem=inspectItem||options.inspect;let size=list.length;if(size===0)return"";let originalLength=options.truncate,output="",peek="",truncated="";for(let i=0;i<size;i+=1){let last=i+1===list.length,secondToLast=i+2===list.length;truncated=`${truncator}(${list.length-i})`;let value=list[i];options.truncate=originalLength-output.length-(last?0:separator.length);let string=peek||inspectItem(value,options)+(last?"":separator),nextLength=output.length+string.length,truncatedLength=nextLength+truncated.length;if(last&&nextLength>originalLength&&output.length+truncated.length<=originalLength||!last&&!secondToLast&&truncatedLength>originalLength||(peek=last?"":inspectItem(list[i+1],options)+(secondToLast?"":separator),!last&&secondToLast&&truncatedLength>originalLength&&nextLength+peek.length>originalLength))break;if(output+=string,!last&&!secondToLast&&nextLength+peek.length>=originalLength){truncated=`${truncator}(${list.length-i-1})`;break}truncated=""}return`${output}${truncated}`}__name(inspectList,"inspectList");function quoteComplexKey(key){return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?key:JSON.stringify(key).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}__name(quoteComplexKey,"quoteComplexKey");function inspectProperty([key,value],options){return options.truncate-=2,typeof key=="string"?key=quoteComplexKey(key):typeof key!="number"&&(key=`[${options.inspect(key,options)}]`),options.truncate-=key.length,value=options.inspect(value,options),`${key}: ${value}`}__name(inspectProperty,"inspectProperty");function inspectArray(array,options){let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return"[]";options.truncate-=4;let listContents=inspectList(array,options);options.truncate-=listContents.length;let propertyContents="";return nonIndexProperties.length&&(propertyContents=inspectList(nonIndexProperties.map(key=>[key,array[key]]),options,inspectProperty)),`[ ${listContents}${propertyContents?`, ${propertyContents}`:""} ]`}__name(inspectArray,"inspectArray");var getArrayName=__name(array=>typeof Buffer=="function"&&array instanceof Buffer?"Buffer":array[Symbol.toStringTag]?array[Symbol.toStringTag]:array.constructor.name,"getArrayName");function inspectTypedArray(array,options){let name=getArrayName(array);options.truncate-=name.length+4;let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return`${name}[]`;let output="";for(let i=0;i<array.length;i++){let string=`${options.stylize(truncate(array[i],options.truncate),"number")}${i===array.length-1?"":", "}`;if(options.truncate-=string.length,array[i]!==array.length&&options.truncate<=3){output+=`${truncator}(${array.length-array[i]+1})`;break}output+=string}let propertyContents="";return nonIndexProperties.length&&(propertyContents=inspectList(nonIndexProperties.map(key=>[key,array[key]]),options,inspectProperty)),`${name}[ ${output}${propertyContents?`, ${propertyContents}`:""} ]`}__name(inspectTypedArray,"inspectTypedArray");function inspectDate(dateObject,options){let stringRepresentation=dateObject.toJSON();if(stringRepresentation===null)return"Invalid Date";let split=stringRepresentation.split("T"),date=split[0];return options.stylize(`${date}T${truncate(split[1],options.truncate-date.length-1)}`,"date")}__name(inspectDate,"inspectDate");function inspectFunction(func,options){let functionType=func[Symbol.toStringTag]||"Function",name=func.name;return name?options.stylize(`[${functionType} ${truncate(name,options.truncate-11)}]`,"special"):options.stylize(`[${functionType}]`,"special")}__name(inspectFunction,"inspectFunction");function inspectMapEntry([key,value],options){return options.truncate-=4,key=options.inspect(key,options),options.truncate-=key.length,value=options.inspect(value,options),`${key} => ${value}`}__name(inspectMapEntry,"inspectMapEntry");function mapToEntries(map){let entries=[];return map.forEach((value,key)=>{entries.push([key,value])}),entries}__name(mapToEntries,"mapToEntries");function inspectMap(map,options){return map.size-1<=0?"Map{}":(options.truncate-=7,`Map{ ${inspectList(mapToEntries(map),options,inspectMapEntry)} }`)}__name(inspectMap,"inspectMap");var isNaN2=Number.isNaN||(i=>i!==i);function inspectNumber(number,options){return isNaN2(number)?options.stylize("NaN","number"):number===1/0?options.stylize("Infinity","number"):number===-1/0?options.stylize("-Infinity","number"):number===0?options.stylize(1/number===1/0?"+0":"-0","number"):options.stylize(truncate(String(number),options.truncate),"number")}__name(inspectNumber,"inspectNumber");function inspectBigInt(number,options){let nums=truncate(number.toString(),options.truncate-1);return nums!==truncator&&(nums+="n"),options.stylize(nums,"bigint")}__name(inspectBigInt,"inspectBigInt");function inspectRegExp(value,options){let flags=value.toString().split("/")[2],sourceLength=options.truncate-(2+flags.length),source=value.source;return options.stylize(`/${truncate(source,sourceLength)}/${flags}`,"regexp")}__name(inspectRegExp,"inspectRegExp");function arrayFromSet(set2){let values=[];return set2.forEach(value=>{values.push(value)}),values}__name(arrayFromSet,"arrayFromSet");function inspectSet(set2,options){return set2.size===0?"Set{}":(options.truncate-=7,`Set{ ${inspectList(arrayFromSet(set2),options)} }`)}__name(inspectSet,"inspectSet");var stringEscapeChars=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),escapeCharacters={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},hex=16,unicodeLength=4;function escape(char){return escapeCharacters[char]||`\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`}__name(escape,"escape");function inspectString(string,options){return stringEscapeChars.test(string)&&(string=string.replace(stringEscapeChars,escape)),options.stylize(`'${truncate(string,options.truncate-2)}'`,"string")}__name(inspectString,"inspectString");function inspectSymbol(value){return"description"in Symbol.prototype?value.description?`Symbol(${value.description})`:"Symbol()":value.toString()}__name(inspectSymbol,"inspectSymbol");var getPromiseValue=__name(()=>"Promise{\u2026}","getPromiseValue");try{let{getPromiseDetails,kPending,kRejected}=process.binding("util");Array.isArray(getPromiseDetails(Promise.resolve()))&&(getPromiseValue=__name((value,options)=>{let[state,innerValue]=getPromiseDetails(value);return state===kPending?"Promise{<pending>}":`Promise${state===kRejected?"!":""}{${options.inspect(innerValue,options)}}`},"getPromiseValue"))}catch{}var promise_default=getPromiseValue;function inspectObject(object,options){let properties=Object.getOwnPropertyNames(object),symbols=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(object):[];if(properties.length===0&&symbols.length===0)return"{}";if(options.truncate-=4,options.seen=options.seen||[],options.seen.includes(object))return"[Circular]";options.seen.push(object);let propertyContents=inspectList(properties.map(key=>[key,object[key]]),options,inspectProperty),symbolContents=inspectList(symbols.map(key=>[key,object[key]]),options,inspectProperty);options.seen.pop();let sep="";return propertyContents&&symbolContents&&(sep=", "),`{ ${propertyContents}${sep}${symbolContents} }`}__name(inspectObject,"inspectObject");var toStringTag=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function inspectClass(value,options){let name="";return toStringTag&&toStringTag in value&&(name=value[toStringTag]),name=name||value.constructor.name,(!name||name==="_class")&&(name="<Anonymous Class>"),options.truncate-=name.length,`${name}${inspectObject(value,options)}`}__name(inspectClass,"inspectClass");function inspectArguments(args,options){return args.length===0?"Arguments[]":(options.truncate-=13,`Arguments[ ${inspectList(args,options)} ]`)}__name(inspectArguments,"inspectArguments");var errorKeys=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function inspectObject2(error,options){let properties=Object.getOwnPropertyNames(error).filter(key=>errorKeys.indexOf(key)===-1),name=error.name;options.truncate-=name.length;let message="";if(typeof error.message=="string"?message=truncate(error.message,options.truncate):properties.unshift("message"),message=message?`: ${message}`:"",options.truncate-=message.length+5,options.seen=options.seen||[],options.seen.includes(error))return"[Circular]";options.seen.push(error);let propertyContents=inspectList(properties.map(key=>[key,error[key]]),options,inspectProperty);return`${name}${message}${propertyContents?` { ${propertyContents} }`:""}`}__name(inspectObject2,"inspectObject");function inspectAttribute([key,value],options){return options.truncate-=3,value?`${options.stylize(String(key),"yellow")}=${options.stylize(`"${value}"`,"string")}`:`${options.stylize(String(key),"yellow")}`}__name(inspectAttribute,"inspectAttribute");function inspectHTMLCollection(collection,options){return inspectList(collection,options,inspectHTML,`
27
- `)}__name(inspectHTMLCollection,"inspectHTMLCollection");function inspectHTML(element,options){let properties=element.getAttributeNames(),name=element.tagName.toLowerCase(),head=options.stylize(`<${name}`,"special"),headClose=options.stylize(">","special"),tail=options.stylize(`</${name}>`,"special");options.truncate-=name.length*2+5;let propertyContents="";properties.length>0&&(propertyContents+=" ",propertyContents+=inspectList(properties.map(key=>[key,element.getAttribute(key)]),options,inspectAttribute," ")),options.truncate-=propertyContents.length;let truncate22=options.truncate,children=inspectHTMLCollection(element.children,options);return children&&children.length>truncate22&&(children=`${truncator}(${element.children.length})`),`${head}${propertyContents}${headClose}${children}${tail}`}__name(inspectHTML,"inspectHTML");var symbolsSupported=typeof Symbol=="function"&&typeof Symbol.for=="function",chaiInspect=symbolsSupported?Symbol.for("chai/inspect"):"@@chai/inspect",nodeInspect=!1;try{let nodeUtil=require_util();nodeInspect=nodeUtil.inspect?nodeUtil.inspect.custom:!1}catch{nodeInspect=!1}var constructorMap=new WeakMap,stringTagMap={},baseTypesMap={undefined:(value,options)=>options.stylize("undefined","undefined"),null:(value,options)=>options.stylize("null","null"),boolean:(value,options)=>options.stylize(String(value),"boolean"),Boolean:(value,options)=>options.stylize(String(value),"boolean"),number:inspectNumber,Number:inspectNumber,bigint:inspectBigInt,BigInt:inspectBigInt,string:inspectString,String:inspectString,function:inspectFunction,Function:inspectFunction,symbol:inspectSymbol,Symbol:inspectSymbol,Array:inspectArray,Date:inspectDate,Map:inspectMap,Set:inspectSet,RegExp:inspectRegExp,Promise:promise_default,WeakSet:(value,options)=>options.stylize("WeakSet{\u2026}","special"),WeakMap:(value,options)=>options.stylize("WeakMap{\u2026}","special"),Arguments:inspectArguments,Int8Array:inspectTypedArray,Uint8Array:inspectTypedArray,Uint8ClampedArray:inspectTypedArray,Int16Array:inspectTypedArray,Uint16Array:inspectTypedArray,Int32Array:inspectTypedArray,Uint32Array:inspectTypedArray,Float32Array:inspectTypedArray,Float64Array:inspectTypedArray,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:inspectObject2,HTMLCollection:inspectHTMLCollection,NodeList:inspectHTMLCollection},inspectCustom=__name((value,options,type32)=>chaiInspect in value&&typeof value[chaiInspect]=="function"?value[chaiInspect](options):nodeInspect&&nodeInspect in value&&typeof value[nodeInspect]=="function"?value[nodeInspect](options.depth,options):"inspect"in value&&typeof value.inspect=="function"?value.inspect(options.depth,options):"constructor"in value&&constructorMap.has(value.constructor)?constructorMap.get(value.constructor)(value,options):stringTagMap[type32]?stringTagMap[type32](value,options):"","inspectCustom"),toString=Object.prototype.toString;function inspect(value,opts={}){let options=normaliseOptions(opts,inspect),{customInspect}=options,type32=value===null?"null":typeof value;if(type32==="object"&&(type32=toString.call(value).slice(8,-1)),type32 in baseTypesMap)return baseTypesMap[type32](value,options);if(customInspect&&value){let output=inspectCustom(value,options,type32);if(output)return typeof output=="string"?output:inspect(output,options)}let proto=value?Object.getPrototypeOf(value):!1;return proto===Object.prototype||proto===null?inspectObject(value,options):value&&typeof HTMLElement=="function"&&value instanceof HTMLElement?inspectHTML(value,options):"constructor"in value?value.constructor!==Object?inspectClass(value,options):inspectObject(value,options):value===Object(value)?inspectObject(value,options):options.stylize(String(value),type32)}__name(inspect,"inspect");var config={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function inspect2(obj,showHidden,depth,colors){var options={colors,depth:typeof depth>"u"?2:depth,showHidden,truncate:config.truncateThreshold?config.truncateThreshold:1/0};return inspect(obj,options)}__name(inspect2,"inspect");function objDisplay(obj){var str=inspect2(obj),type32=Object.prototype.toString.call(obj);if(config.truncateThreshold&&str.length>=config.truncateThreshold){if(type32==="[object Function]")return!obj.name||obj.name===""?"[Function]":"[Function: "+obj.name+"]";if(type32==="[object Array]")return"[ Array("+obj.length+") ]";if(type32==="[object Object]"){var keys2=Object.keys(obj),kstr=keys2.length>2?keys2.splice(0,2).join(", ")+", ...":keys2.join(", ");return"{ Object ("+kstr+") }"}else return str}else return str}__name(objDisplay,"objDisplay");function getMessage2(obj,args){var negate=flag(obj,"negate"),val=flag(obj,"object"),expected=args[3],actual=getActual(obj,args),msg=negate?args[2]:args[1],flagMsg=flag(obj,"message");return typeof msg=="function"&&(msg=msg()),msg=msg||"",msg=msg.replace(/#\{this\}/g,function(){return objDisplay(val)}).replace(/#\{act\}/g,function(){return objDisplay(actual)}).replace(/#\{exp\}/g,function(){return objDisplay(expected)}),flagMsg?flagMsg+": "+msg:msg}__name(getMessage2,"getMessage");function transferFlags(assertion,object,includeAll){var flags=assertion.__flags||(assertion.__flags=Object.create(null));object.__flags||(object.__flags=Object.create(null)),includeAll=arguments.length===3?includeAll:!0;for(var flag3 in flags)(includeAll||flag3!=="object"&&flag3!=="ssfi"&&flag3!=="lockSsfi"&&flag3!="message")&&(object.__flags[flag3]=flags[flag3])}__name(transferFlags,"transferFlags");function type2(obj){if(typeof obj>"u")return"undefined";if(obj===null)return"null";let stringTag=obj[Symbol.toStringTag];return typeof stringTag=="string"?stringTag:Object.prototype.toString.call(obj).slice(8,-1)}__name(type2,"type");function FakeMap(){this._key="chai/deep-eql__"+Math.random()+Date.now()}__name(FakeMap,"FakeMap");FakeMap.prototype={get:__name(function(key){return key[this._key]},"get"),set:__name(function(key,value){Object.isExtensible(key)&&Object.defineProperty(key,this._key,{value,configurable:!0})},"set")};var MemoizeMap=typeof WeakMap=="function"?WeakMap:FakeMap;function memoizeCompare(leftHandOperand,rightHandOperand,memoizeMap){if(!memoizeMap||isPrimitive(leftHandOperand)||isPrimitive(rightHandOperand))return null;var leftHandMap=memoizeMap.get(leftHandOperand);if(leftHandMap){var result=leftHandMap.get(rightHandOperand);if(typeof result=="boolean")return result}return null}__name(memoizeCompare,"memoizeCompare");function memoizeSet(leftHandOperand,rightHandOperand,memoizeMap,result){if(!(!memoizeMap||isPrimitive(leftHandOperand)||isPrimitive(rightHandOperand))){var leftHandMap=memoizeMap.get(leftHandOperand);leftHandMap?leftHandMap.set(rightHandOperand,result):(leftHandMap=new MemoizeMap,leftHandMap.set(rightHandOperand,result),memoizeMap.set(leftHandOperand,leftHandMap))}}__name(memoizeSet,"memoizeSet");var deep_eql_default=deepEqual;function deepEqual(leftHandOperand,rightHandOperand,options){if(options&&options.comparator)return extensiveDeepEqual(leftHandOperand,rightHandOperand,options);var simpleResult=simpleEqual(leftHandOperand,rightHandOperand);return simpleResult!==null?simpleResult:extensiveDeepEqual(leftHandOperand,rightHandOperand,options)}__name(deepEqual,"deepEqual");function simpleEqual(leftHandOperand,rightHandOperand){return leftHandOperand===rightHandOperand?leftHandOperand!==0||1/leftHandOperand===1/rightHandOperand:leftHandOperand!==leftHandOperand&&rightHandOperand!==rightHandOperand?!0:isPrimitive(leftHandOperand)||isPrimitive(rightHandOperand)?!1:null}__name(simpleEqual,"simpleEqual");function extensiveDeepEqual(leftHandOperand,rightHandOperand,options){options=options||{},options.memoize=options.memoize===!1?!1:options.memoize||new MemoizeMap;var comparator=options&&options.comparator,memoizeResultLeft=memoizeCompare(leftHandOperand,rightHandOperand,options.memoize);if(memoizeResultLeft!==null)return memoizeResultLeft;var memoizeResultRight=memoizeCompare(rightHandOperand,leftHandOperand,options.memoize);if(memoizeResultRight!==null)return memoizeResultRight;if(comparator){var comparatorResult=comparator(leftHandOperand,rightHandOperand);if(comparatorResult===!1||comparatorResult===!0)return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,comparatorResult),comparatorResult;var simpleResult=simpleEqual(leftHandOperand,rightHandOperand);if(simpleResult!==null)return simpleResult}var leftHandType=type2(leftHandOperand);if(leftHandType!==type2(rightHandOperand))return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,!1),!1;memoizeSet(leftHandOperand,rightHandOperand,options.memoize,!0);var result=extensiveDeepEqualByType(leftHandOperand,rightHandOperand,leftHandType,options);return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,result),result}__name(extensiveDeepEqual,"extensiveDeepEqual");function extensiveDeepEqualByType(leftHandOperand,rightHandOperand,leftHandType,options){switch(leftHandType){case"String":case"Number":case"Boolean":case"Date":return deepEqual(leftHandOperand.valueOf(),rightHandOperand.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return leftHandOperand===rightHandOperand;case"Error":return keysEqual(leftHandOperand,rightHandOperand,["name","message","code"],options);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return iterableEqual(leftHandOperand,rightHandOperand,options);case"RegExp":return regexpEqual(leftHandOperand,rightHandOperand);case"Generator":return generatorEqual(leftHandOperand,rightHandOperand,options);case"DataView":return iterableEqual(new Uint8Array(leftHandOperand.buffer),new Uint8Array(rightHandOperand.buffer),options);case"ArrayBuffer":return iterableEqual(new Uint8Array(leftHandOperand),new Uint8Array(rightHandOperand),options);case"Set":return entriesEqual(leftHandOperand,rightHandOperand,options);case"Map":return entriesEqual(leftHandOperand,rightHandOperand,options);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return leftHandOperand.equals(rightHandOperand);case"Temporal.Duration":return leftHandOperand.total("nanoseconds")===rightHandOperand.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return leftHandOperand.toString()===rightHandOperand.toString();default:return objectEqual(leftHandOperand,rightHandOperand,options)}}__name(extensiveDeepEqualByType,"extensiveDeepEqualByType");function regexpEqual(leftHandOperand,rightHandOperand){return leftHandOperand.toString()===rightHandOperand.toString()}__name(regexpEqual,"regexpEqual");function entriesEqual(leftHandOperand,rightHandOperand,options){try{if(leftHandOperand.size!==rightHandOperand.size)return!1;if(leftHandOperand.size===0)return!0}catch{return!1}var leftHandItems=[],rightHandItems=[];return leftHandOperand.forEach(__name(function(key,value){leftHandItems.push([key,value])},"gatherEntries")),rightHandOperand.forEach(__name(function(key,value){rightHandItems.push([key,value])},"gatherEntries")),iterableEqual(leftHandItems.sort(),rightHandItems.sort(),options)}__name(entriesEqual,"entriesEqual");function iterableEqual(leftHandOperand,rightHandOperand,options){var length=leftHandOperand.length;if(length!==rightHandOperand.length)return!1;if(length===0)return!0;for(var index=-1;++index<length;)if(deepEqual(leftHandOperand[index],rightHandOperand[index],options)===!1)return!1;return!0}__name(iterableEqual,"iterableEqual");function generatorEqual(leftHandOperand,rightHandOperand,options){return iterableEqual(getGeneratorEntries(leftHandOperand),getGeneratorEntries(rightHandOperand),options)}__name(generatorEqual,"generatorEqual");function hasIteratorFunction(target){return typeof Symbol<"u"&&typeof target=="object"&&typeof Symbol.iterator<"u"&&typeof target[Symbol.iterator]=="function"}__name(hasIteratorFunction,"hasIteratorFunction");function getIteratorEntries(target){if(hasIteratorFunction(target))try{return getGeneratorEntries(target[Symbol.iterator]())}catch{return[]}return[]}__name(getIteratorEntries,"getIteratorEntries");function getGeneratorEntries(generator){for(var generatorResult=generator.next(),accumulator=[generatorResult.value];generatorResult.done===!1;)generatorResult=generator.next(),accumulator.push(generatorResult.value);return accumulator}__name(getGeneratorEntries,"getGeneratorEntries");function getEnumerableKeys(target){var keys2=[];for(var key in target)keys2.push(key);return keys2}__name(getEnumerableKeys,"getEnumerableKeys");function getEnumerableSymbols(target){for(var keys2=[],allKeys=Object.getOwnPropertySymbols(target),i=0;i<allKeys.length;i+=1){var key=allKeys[i];Object.getOwnPropertyDescriptor(target,key).enumerable&&keys2.push(key)}return keys2}__name(getEnumerableSymbols,"getEnumerableSymbols");function keysEqual(leftHandOperand,rightHandOperand,keys2,options){var length=keys2.length;if(length===0)return!0;for(var i=0;i<length;i+=1)if(deepEqual(leftHandOperand[keys2[i]],rightHandOperand[keys2[i]],options)===!1)return!1;return!0}__name(keysEqual,"keysEqual");function objectEqual(leftHandOperand,rightHandOperand,options){var leftHandKeys=getEnumerableKeys(leftHandOperand),rightHandKeys=getEnumerableKeys(rightHandOperand),leftHandSymbols=getEnumerableSymbols(leftHandOperand),rightHandSymbols=getEnumerableSymbols(rightHandOperand);if(leftHandKeys=leftHandKeys.concat(leftHandSymbols),rightHandKeys=rightHandKeys.concat(rightHandSymbols),leftHandKeys.length&&leftHandKeys.length===rightHandKeys.length)return iterableEqual(mapSymbols(leftHandKeys).sort(),mapSymbols(rightHandKeys).sort())===!1?!1:keysEqual(leftHandOperand,rightHandOperand,leftHandKeys,options);var leftHandEntries=getIteratorEntries(leftHandOperand),rightHandEntries=getIteratorEntries(rightHandOperand);return leftHandEntries.length&&leftHandEntries.length===rightHandEntries.length?(leftHandEntries.sort(),rightHandEntries.sort(),iterableEqual(leftHandEntries,rightHandEntries,options)):leftHandKeys.length===0&&leftHandEntries.length===0&&rightHandKeys.length===0&&rightHandEntries.length===0}__name(objectEqual,"objectEqual");function isPrimitive(value){return value===null||typeof value!="object"}__name(isPrimitive,"isPrimitive");function mapSymbols(arr){return arr.map(__name(function(entry){return typeof entry=="symbol"?entry.toString():entry},"mapSymbol"))}__name(mapSymbols,"mapSymbols");function hasProperty(obj,name){return typeof obj>"u"||obj===null?!1:name in Object(obj)}__name(hasProperty,"hasProperty");function parsePath(path){return path.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(value=>{if(value==="constructor"||value==="__proto__"||value==="prototype")return{};let mArr=/^\[(\d+)\]$/.exec(value),parsed=null;return mArr?parsed={i:parseFloat(mArr[1])}:parsed={p:value.replace(/\\([.[\]])/g,"$1")},parsed})}__name(parsePath,"parsePath");function internalGetPathValue(obj,parsed,pathDepth){let temporaryValue=obj,res=null;pathDepth=typeof pathDepth>"u"?parsed.length:pathDepth;for(let i=0;i<pathDepth;i++){let part=parsed[i];temporaryValue&&(typeof part.p>"u"?temporaryValue=temporaryValue[part.i]:temporaryValue=temporaryValue[part.p],i===pathDepth-1&&(res=temporaryValue))}return res}__name(internalGetPathValue,"internalGetPathValue");function getPathInfo(obj,path){let parsed=parsePath(path),last=parsed[parsed.length-1],info={parent:parsed.length>1?internalGetPathValue(obj,parsed,parsed.length-1):obj,name:last.p||last.i,value:internalGetPathValue(obj,parsed)};return info.exists=hasProperty(info.parent,info.name),info}__name(getPathInfo,"getPathInfo");function Assertion(obj,msg,ssfi,lockSsfi){return flag(this,"ssfi",ssfi||Assertion),flag(this,"lockSsfi",lockSsfi),flag(this,"object",obj),flag(this,"message",msg),flag(this,"eql",config.deepEqual||deep_eql_default),proxify(this)}__name(Assertion,"Assertion");Object.defineProperty(Assertion,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),config.includeStack},set:function(value){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),config.includeStack=value}});Object.defineProperty(Assertion,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),config.showDiff},set:function(value){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),config.showDiff=value}});Assertion.addProperty=function(name,fn3){addProperty(this.prototype,name,fn3)};Assertion.addMethod=function(name,fn3){addMethod(this.prototype,name,fn3)};Assertion.addChainableMethod=function(name,fn3,chainingBehavior){addChainableMethod(this.prototype,name,fn3,chainingBehavior)};Assertion.overwriteProperty=function(name,fn3){overwriteProperty(this.prototype,name,fn3)};Assertion.overwriteMethod=function(name,fn3){overwriteMethod(this.prototype,name,fn3)};Assertion.overwriteChainableMethod=function(name,fn3,chainingBehavior){overwriteChainableMethod(this.prototype,name,fn3,chainingBehavior)};Assertion.prototype.assert=function(expr,msg,negateMsg,expected,_actual,showDiff){var ok=test(this,arguments);if(showDiff!==!1&&(showDiff=!0),expected===void 0&&_actual===void 0&&(showDiff=!1),config.showDiff!==!0&&(showDiff=!1),!ok){msg=getMessage2(this,arguments);var actual=getActual(this,arguments),assertionErrorObjectProperties={actual,expected,showDiff},operator=getOperator(this,arguments);throw operator&&(assertionErrorObjectProperties.operator=operator),new AssertionError(msg,assertionErrorObjectProperties,config.includeStack?this.assert:flag(this,"ssfi"))}};Object.defineProperty(Assertion.prototype,"_obj",{get:function(){return flag(this,"object")},set:function(val){flag(this,"object",val)}});function isProxyEnabled(){return config.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}__name(isProxyEnabled,"isProxyEnabled");function addProperty(ctx,name,getter){getter=getter===void 0?function(){}:getter,Object.defineProperty(ctx,name,{get:__name(function propertyGetter(){!isProxyEnabled()&&!flag(this,"lockSsfi")&&flag(this,"ssfi",propertyGetter);var result=getter.call(this);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"propertyGetter"),configurable:!0})}__name(addProperty,"addProperty");var fnLengthDesc=Object.getOwnPropertyDescriptor(function(){},"length");function addLengthGuard(fn3,assertionName,isChainable){return fnLengthDesc.configurable&&Object.defineProperty(fn3,"length",{get:function(){throw Error(isChainable?"Invalid Chai property: "+assertionName+'.length. Due to a compatibility issue, "length" cannot directly follow "'+assertionName+'". Use "'+assertionName+'.lengthOf" instead.':"Invalid Chai property: "+assertionName+'.length. See docs for proper usage of "'+assertionName+'".')}}),fn3}__name(addLengthGuard,"addLengthGuard");function getProperties(object){var result=Object.getOwnPropertyNames(object);function addProperty2(property){result.indexOf(property)===-1&&result.push(property)}__name(addProperty2,"addProperty");for(var proto=Object.getPrototypeOf(object);proto!==null;)Object.getOwnPropertyNames(proto).forEach(addProperty2),proto=Object.getPrototypeOf(proto);return result}__name(getProperties,"getProperties");var builtins=["__flags","__methods","_obj","assert"];function proxify(obj,nonChainableMethodName){return isProxyEnabled()?new Proxy(obj,{get:__name(function proxyGetter(target,property){if(typeof property=="string"&&config.proxyExcludedKeys.indexOf(property)===-1&&!Reflect.has(target,property)){if(nonChainableMethodName)throw Error("Invalid Chai property: "+nonChainableMethodName+"."+property+'. See docs for proper usage of "'+nonChainableMethodName+'".');var suggestion=null,suggestionDistance=4;throw getProperties(target).forEach(function(prop){if(!Object.prototype.hasOwnProperty(prop)&&builtins.indexOf(prop)===-1){var dist=stringDistanceCapped(property,prop,suggestionDistance);dist<suggestionDistance&&(suggestion=prop,suggestionDistance=dist)}}),Error(suggestion!==null?"Invalid Chai property: "+property+'. Did you mean "'+suggestion+'"?':"Invalid Chai property: "+property)}return builtins.indexOf(property)===-1&&!flag(target,"lockSsfi")&&flag(target,"ssfi",proxyGetter),Reflect.get(target,property)},"proxyGetter")}):obj}__name(proxify,"proxify");function stringDistanceCapped(strA,strB,cap){if(Math.abs(strA.length-strB.length)>=cap)return cap;for(var memo=[],i=0;i<=strA.length;i++)memo[i]=Array(strB.length+1).fill(0),memo[i][0]=i;for(var j=0;j<strB.length;j++)memo[0][j]=j;for(var i=1;i<=strA.length;i++)for(var ch=strA.charCodeAt(i-1),j=1;j<=strB.length;j++){if(Math.abs(i-j)>=cap){memo[i][j]=cap;continue}memo[i][j]=Math.min(memo[i-1][j]+1,memo[i][j-1]+1,memo[i-1][j-1]+(ch===strB.charCodeAt(j-1)?0:1))}return memo[strA.length][strB.length]}__name(stringDistanceCapped,"stringDistanceCapped");function addMethod(ctx,name,method){var methodWrapper=__name(function(){flag(this,"lockSsfi")||flag(this,"ssfi",methodWrapper);var result=method.apply(this,arguments);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"methodWrapper");addLengthGuard(methodWrapper,name,!1),ctx[name]=proxify(methodWrapper,name)}__name(addMethod,"addMethod");function overwriteProperty(ctx,name,getter){var _get=Object.getOwnPropertyDescriptor(ctx,name),_super=__name(function(){},"_super");_get&&typeof _get.get=="function"&&(_super=_get.get),Object.defineProperty(ctx,name,{get:__name(function overwritingPropertyGetter(){!isProxyEnabled()&&!flag(this,"lockSsfi")&&flag(this,"ssfi",overwritingPropertyGetter);var origLockSsfi=flag(this,"lockSsfi");flag(this,"lockSsfi",!0);var result=getter(_super).call(this);if(flag(this,"lockSsfi",origLockSsfi),result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"overwritingPropertyGetter"),configurable:!0})}__name(overwriteProperty,"overwriteProperty");function overwriteMethod(ctx,name,method){var _method=ctx[name],_super=__name(function(){throw new Error(name+" is not a function")},"_super");_method&&typeof _method=="function"&&(_super=_method);var overwritingMethodWrapper=__name(function(){flag(this,"lockSsfi")||flag(this,"ssfi",overwritingMethodWrapper);var origLockSsfi=flag(this,"lockSsfi");flag(this,"lockSsfi",!0);var result=method(_super).apply(this,arguments);if(flag(this,"lockSsfi",origLockSsfi),result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"overwritingMethodWrapper");addLengthGuard(overwritingMethodWrapper,name,!1),ctx[name]=proxify(overwritingMethodWrapper,name)}__name(overwriteMethod,"overwriteMethod");var canSetPrototype=typeof Object.setPrototypeOf=="function",testFn=__name(function(){},"testFn"),excludeNames=Object.getOwnPropertyNames(testFn).filter(function(name){var propDesc=Object.getOwnPropertyDescriptor(testFn,name);return typeof propDesc!="object"?!0:!propDesc.configurable}),call=Function.prototype.call,apply=Function.prototype.apply;function addChainableMethod(ctx,name,method,chainingBehavior){typeof chainingBehavior!="function"&&(chainingBehavior=__name(function(){},"chainingBehavior"));var chainableBehavior={method,chainingBehavior};ctx.__methods||(ctx.__methods={}),ctx.__methods[name]=chainableBehavior,Object.defineProperty(ctx,name,{get:__name(function(){chainableBehavior.chainingBehavior.call(this);var chainableMethodWrapper=__name(function(){flag(this,"lockSsfi")||flag(this,"ssfi",chainableMethodWrapper);var result=chainableBehavior.method.apply(this,arguments);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"chainableMethodWrapper");if(addLengthGuard(chainableMethodWrapper,name,!0),canSetPrototype){var prototype=Object.create(this);prototype.call=call,prototype.apply=apply,Object.setPrototypeOf(chainableMethodWrapper,prototype)}else{var asserterNames=Object.getOwnPropertyNames(ctx);asserterNames.forEach(function(asserterName){if(excludeNames.indexOf(asserterName)===-1){var pd=Object.getOwnPropertyDescriptor(ctx,asserterName);Object.defineProperty(chainableMethodWrapper,asserterName,pd)}})}return transferFlags(this,chainableMethodWrapper),proxify(chainableMethodWrapper)},"chainableMethodGetter"),configurable:!0})}__name(addChainableMethod,"addChainableMethod");function overwriteChainableMethod(ctx,name,method,chainingBehavior){var chainableBehavior=ctx.__methods[name],_chainingBehavior=chainableBehavior.chainingBehavior;chainableBehavior.chainingBehavior=__name(function(){var result=chainingBehavior(_chainingBehavior).call(this);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"overwritingChainableMethodGetter");var _method=chainableBehavior.method;chainableBehavior.method=__name(function(){var result=method(_method).apply(this,arguments);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"overwritingChainableMethodWrapper")}__name(overwriteChainableMethod,"overwriteChainableMethod");function compareByInspect(a2,b){return inspect2(a2)<inspect2(b)?-1:1}__name(compareByInspect,"compareByInspect");function getOwnEnumerablePropertySymbols(obj){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(obj).filter(function(sym){return Object.getOwnPropertyDescriptor(obj,sym).enumerable})}__name(getOwnEnumerablePropertySymbols,"getOwnEnumerablePropertySymbols");function getOwnEnumerableProperties(obj){return Object.keys(obj).concat(getOwnEnumerablePropertySymbols(obj))}__name(getOwnEnumerableProperties,"getOwnEnumerableProperties");function _isNaN(value){return value!==value}__name(_isNaN,"_isNaN");var isNaN22=Number.isNaN||_isNaN;function isObjectType(obj){var objectType=type(obj),objectTypes=["Array","Object","Function"];return objectTypes.indexOf(objectType)!==-1}__name(isObjectType,"isObjectType");function getOperator(obj,args){var operator=flag(obj,"operator"),negate=flag(obj,"negate"),expected=args[3],msg=negate?args[2]:args[1];if(operator)return operator;if(typeof msg=="function"&&(msg=msg()),msg=msg||"",!!msg&&!/\shave\s/.test(msg)){var isObject2=isObjectType(expected);return/\snot\s/.test(msg)?isObject2?"notDeepStrictEqual":"notStrictEqual":isObject2?"deepStrictEqual":"strictEqual"}}__name(getOperator,"getOperator");function getName(fn3){return fn3.name}__name(getName,"getName");function isRegExp2(obj){return Object.prototype.toString.call(obj)==="[object RegExp]"}__name(isRegExp2,"isRegExp");function isNumeric(obj){return["Number","BigInt"].includes(type(obj))}__name(isNumeric,"isNumeric");var{flag:flag2}=utils_exports;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(chain){Assertion.addProperty(chain)});Assertion.addProperty("not",function(){flag2(this,"negate",!0)});Assertion.addProperty("deep",function(){flag2(this,"deep",!0)});Assertion.addProperty("nested",function(){flag2(this,"nested",!0)});Assertion.addProperty("own",function(){flag2(this,"own",!0)});Assertion.addProperty("ordered",function(){flag2(this,"ordered",!0)});Assertion.addProperty("any",function(){flag2(this,"any",!0),flag2(this,"all",!1)});Assertion.addProperty("all",function(){flag2(this,"all",!0),flag2(this,"any",!1)});var functionTypes={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function an(type32,msg){msg&&flag2(this,"message",msg),type32=type32.toLowerCase();var obj=flag2(this,"object"),article=~["a","e","i","o","u"].indexOf(type32.charAt(0))?"an ":"a ";let detectedType=type(obj).toLowerCase();functionTypes.function.includes(type32)?this.assert(functionTypes[type32].includes(detectedType),"expected #{this} to be "+article+type32,"expected #{this} not to be "+article+type32):this.assert(type32===detectedType,"expected #{this} to be "+article+type32,"expected #{this} not to be "+article+type32)}__name(an,"an");Assertion.addChainableMethod("an",an);Assertion.addChainableMethod("a",an);function SameValueZero(a2,b){return isNaN22(a2)&&isNaN22(b)||a2===b}__name(SameValueZero,"SameValueZero");function includeChainingBehavior(){flag2(this,"contains",!0)}__name(includeChainingBehavior,"includeChainingBehavior");function include(val,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),objType=type(obj).toLowerCase(),flagMsg=flag2(this,"message"),negate=flag2(this,"negate"),ssfi=flag2(this,"ssfi"),isDeep=flag2(this,"deep"),descriptor=isDeep?"deep ":"",isEql=isDeep?flag2(this,"eql"):SameValueZero;flagMsg=flagMsg?flagMsg+": ":"";var included=!1;switch(objType){case"string":included=obj.indexOf(val)!==-1;break;case"weakset":if(isDeep)throw new AssertionError(flagMsg+"unable to use .deep.include with WeakSet",void 0,ssfi);included=obj.has(val);break;case"map":obj.forEach(function(item){included=included||isEql(item,val)});break;case"set":isDeep?obj.forEach(function(item){included=included||isEql(item,val)}):included=obj.has(val);break;case"array":isDeep?included=obj.some(function(item){return isEql(item,val)}):included=obj.indexOf(val)!==-1;break;default:if(val!==Object(val))throw new AssertionError(flagMsg+"the given combination of arguments ("+objType+" and "+type(val).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+type(val).toLowerCase(),void 0,ssfi);var props=Object.keys(val),firstErr=null,numErrs=0;if(props.forEach(function(prop){var propAssertion=new Assertion(obj);if(transferFlags(this,propAssertion,!0),flag2(propAssertion,"lockSsfi",!0),!negate||props.length===1){propAssertion.property(prop,val[prop]);return}try{propAssertion.property(prop,val[prop])}catch(err){if(!check_error_exports.compatibleConstructor(err,AssertionError))throw err;firstErr===null&&(firstErr=err),numErrs++}},this),negate&&props.length>1&&numErrs===props.length)throw firstErr;return}this.assert(included,"expected #{this} to "+descriptor+"include "+inspect2(val),"expected #{this} to not "+descriptor+"include "+inspect2(val))}__name(include,"include");Assertion.addChainableMethod("include",include,includeChainingBehavior);Assertion.addChainableMethod("contain",include,includeChainingBehavior);Assertion.addChainableMethod("contains",include,includeChainingBehavior);Assertion.addChainableMethod("includes",include,includeChainingBehavior);Assertion.addProperty("ok",function(){this.assert(flag2(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});Assertion.addProperty("true",function(){this.assert(flag2(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!flag2(this,"negate"))});Assertion.addProperty("numeric",function(){let object=flag2(this,"object");this.assert(["Number","BigInt"].includes(type(object)),"expected #{this} to be numeric","expected #{this} to not be numeric",!flag2(this,"negate"))});Assertion.addProperty("callable",function(){let val=flag2(this,"object"),ssfi=flag2(this,"ssfi"),message=flag2(this,"message"),msg=message?`${message}: `:"",negate=flag2(this,"negate"),assertionMessage=negate?`${msg}expected ${inspect2(val)} not to be a callable function`:`${msg}expected ${inspect2(val)} to be a callable function`,isCallable3=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(type(val));if(isCallable3&&negate||!isCallable3&&!negate)throw new AssertionError(assertionMessage,void 0,ssfi)});Assertion.addProperty("false",function(){this.assert(flag2(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!flag2(this,"negate"))});Assertion.addProperty("null",function(){this.assert(flag2(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});Assertion.addProperty("undefined",function(){this.assert(flag2(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});Assertion.addProperty("NaN",function(){this.assert(isNaN22(flag2(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function assertExist(){var val=flag2(this,"object");this.assert(val!=null,"expected #{this} to exist","expected #{this} to not exist")}__name(assertExist,"assertExist");Assertion.addProperty("exist",assertExist);Assertion.addProperty("exists",assertExist);Assertion.addProperty("empty",function(){var val=flag2(this,"object"),ssfi=flag2(this,"ssfi"),flagMsg=flag2(this,"message"),itemsCount;switch(flagMsg=flagMsg?flagMsg+": ":"",type(val).toLowerCase()){case"array":case"string":itemsCount=val.length;break;case"map":case"set":itemsCount=val.size;break;case"weakmap":case"weakset":throw new AssertionError(flagMsg+".empty was passed a weak collection",void 0,ssfi);case"function":var msg=flagMsg+".empty was passed a function "+getName(val);throw new AssertionError(msg.trim(),void 0,ssfi);default:if(val!==Object(val))throw new AssertionError(flagMsg+".empty was passed non-string primitive "+inspect2(val),void 0,ssfi);itemsCount=Object.keys(val).length}this.assert(itemsCount===0,"expected #{this} to be empty","expected #{this} not to be empty")});function checkArguments(){var obj=flag2(this,"object"),type32=type(obj);this.assert(type32==="Arguments","expected #{this} to be arguments but got "+type32,"expected #{this} to not be arguments")}__name(checkArguments,"checkArguments");Assertion.addProperty("arguments",checkArguments);Assertion.addProperty("Arguments",checkArguments);function assertEqual(val,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");if(flag2(this,"deep")){var prevLockSsfi=flag2(this,"lockSsfi");flag2(this,"lockSsfi",!0),this.eql(val),flag2(this,"lockSsfi",prevLockSsfi)}else this.assert(val===obj,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",val,this._obj,!0)}__name(assertEqual,"assertEqual");Assertion.addMethod("equal",assertEqual);Assertion.addMethod("equals",assertEqual);Assertion.addMethod("eq",assertEqual);function assertEql(obj,msg){msg&&flag2(this,"message",msg);var eql=flag2(this,"eql");this.assert(eql(obj,flag2(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",obj,this._obj,!0)}__name(assertEql,"assertEql");Assertion.addMethod("eql",assertEql);Assertion.addMethod("eqls",assertEql);function assertAbove(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase();if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&nType!=="date")throw new AssertionError(msgPrefix+"the argument to above must be a date",void 0,ssfi);if(!isNumeric(n)&&(doLength||isNumeric(obj)))throw new AssertionError(msgPrefix+"the argument to above must be a number",void 0,ssfi);if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;throw new AssertionError(msgPrefix+"expected "+printObj+" to be a number or a date",void 0,ssfi)}if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>n,"expected #{this} to have a "+descriptor+" above #{exp} but got #{act}","expected #{this} to not have a "+descriptor+" above #{exp}",n,itemsCount)}else this.assert(obj>n,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",n)}__name(assertAbove,"assertAbove");Assertion.addMethod("above",assertAbove);Assertion.addMethod("gt",assertAbove);Assertion.addMethod("greaterThan",assertAbove);function assertLeast(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),errorMessage,shouldThrow=!0;if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&nType!=="date")errorMessage=msgPrefix+"the argument to least must be a date";else if(!isNumeric(n)&&(doLength||isNumeric(obj)))errorMessage=msgPrefix+"the argument to least must be a number";else if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;errorMessage=msgPrefix+"expected "+printObj+" to be a number or a date"}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>=n,"expected #{this} to have a "+descriptor+" at least #{exp} but got #{act}","expected #{this} to have a "+descriptor+" below #{exp}",n,itemsCount)}else this.assert(obj>=n,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",n)}__name(assertLeast,"assertLeast");Assertion.addMethod("least",assertLeast);Assertion.addMethod("gte",assertLeast);Assertion.addMethod("greaterThanOrEqual",assertLeast);function assertBelow(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),errorMessage,shouldThrow=!0;if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&nType!=="date")errorMessage=msgPrefix+"the argument to below must be a date";else if(!isNumeric(n)&&(doLength||isNumeric(obj)))errorMessage=msgPrefix+"the argument to below must be a number";else if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;errorMessage=msgPrefix+"expected "+printObj+" to be a number or a date"}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount<n,"expected #{this} to have a "+descriptor+" below #{exp} but got #{act}","expected #{this} to not have a "+descriptor+" below #{exp}",n,itemsCount)}else this.assert(obj<n,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",n)}__name(assertBelow,"assertBelow");Assertion.addMethod("below",assertBelow);Assertion.addMethod("lt",assertBelow);Assertion.addMethod("lessThan",assertBelow);function assertMost(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),errorMessage,shouldThrow=!0;if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&nType!=="date")errorMessage=msgPrefix+"the argument to most must be a date";else if(!isNumeric(n)&&(doLength||isNumeric(obj)))errorMessage=msgPrefix+"the argument to most must be a number";else if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;errorMessage=msgPrefix+"expected "+printObj+" to be a number or a date"}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount<=n,"expected #{this} to have a "+descriptor+" at most #{exp} but got #{act}","expected #{this} to have a "+descriptor+" above #{exp}",n,itemsCount)}else this.assert(obj<=n,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",n)}__name(assertMost,"assertMost");Assertion.addMethod("most",assertMost);Assertion.addMethod("lte",assertMost);Assertion.addMethod("lessThanOrEqual",assertMost);Assertion.addMethod("within",function(start,finish,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),startType=type(start).toLowerCase(),finishType=type(finish).toLowerCase(),errorMessage,shouldThrow=!0,range=startType==="date"&&finishType==="date"?start.toISOString()+".."+finish.toISOString():start+".."+finish;if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&(startType!=="date"||finishType!=="date"))errorMessage=msgPrefix+"the arguments to within must be dates";else if((!isNumeric(start)||!isNumeric(finish))&&(doLength||isNumeric(obj)))errorMessage=msgPrefix+"the arguments to within must be numbers";else if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;errorMessage=msgPrefix+"expected "+printObj+" to be a number or a date"}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>=start&&itemsCount<=finish,"expected #{this} to have a "+descriptor+" within "+range,"expected #{this} to not have a "+descriptor+" within "+range)}else this.assert(obj>=start&&obj<=finish,"expected #{this} to be within "+range,"expected #{this} to not be within "+range)});function assertInstanceOf(constructor,msg){msg&&flag2(this,"message",msg);var target=flag2(this,"object"),ssfi=flag2(this,"ssfi"),flagMsg=flag2(this,"message");try{var isInstanceOf=target instanceof constructor}catch(err){throw err instanceof TypeError?(flagMsg=flagMsg?flagMsg+": ":"",new AssertionError(flagMsg+"The instanceof assertion needs a constructor but "+type(constructor)+" was given.",void 0,ssfi)):err}var name=getName(constructor);name==null&&(name="an unnamed constructor"),this.assert(isInstanceOf,"expected #{this} to be an instance of "+name,"expected #{this} to not be an instance of "+name)}__name(assertInstanceOf,"assertInstanceOf");Assertion.addMethod("instanceof",assertInstanceOf);Assertion.addMethod("instanceOf",assertInstanceOf);function assertProperty(name,val,msg){msg&&flag2(this,"message",msg);var isNested=flag2(this,"nested"),isOwn=flag2(this,"own"),flagMsg=flag2(this,"message"),obj=flag2(this,"object"),ssfi=flag2(this,"ssfi"),nameType=typeof name;if(flagMsg=flagMsg?flagMsg+": ":"",isNested){if(nameType!=="string")throw new AssertionError(flagMsg+"the argument to property must be a string when using nested syntax",void 0,ssfi)}else if(nameType!=="string"&&nameType!=="number"&&nameType!=="symbol")throw new AssertionError(flagMsg+"the argument to property must be a string, number, or symbol",void 0,ssfi);if(isNested&&isOwn)throw new AssertionError(flagMsg+'The "nested" and "own" flags cannot be combined.',void 0,ssfi);if(obj==null)throw new AssertionError(flagMsg+"Target cannot be null or undefined.",void 0,ssfi);var isDeep=flag2(this,"deep"),negate=flag2(this,"negate"),pathInfo=isNested?getPathInfo(obj,name):null,value=isNested?pathInfo.value:obj[name],isEql=isDeep?flag2(this,"eql"):(val1,val2)=>val1===val2,descriptor="";isDeep&&(descriptor+="deep "),isOwn&&(descriptor+="own "),isNested&&(descriptor+="nested "),descriptor+="property ";var hasProperty2;isOwn?hasProperty2=Object.prototype.hasOwnProperty.call(obj,name):isNested?hasProperty2=pathInfo.exists:hasProperty2=hasProperty(obj,name),(!negate||arguments.length===1)&&this.assert(hasProperty2,"expected #{this} to have "+descriptor+inspect2(name),"expected #{this} to not have "+descriptor+inspect2(name)),arguments.length>1&&this.assert(hasProperty2&&isEql(val,value),"expected #{this} to have "+descriptor+inspect2(name)+" of #{exp}, but got #{act}","expected #{this} to not have "+descriptor+inspect2(name)+" of #{act}",val,value),flag2(this,"object",value)}__name(assertProperty,"assertProperty");Assertion.addMethod("property",assertProperty);function assertOwnProperty(name,value,msg){flag2(this,"own",!0),assertProperty.apply(this,arguments)}__name(assertOwnProperty,"assertOwnProperty");Assertion.addMethod("ownProperty",assertOwnProperty);Assertion.addMethod("haveOwnProperty",assertOwnProperty);function assertOwnPropertyDescriptor(name,descriptor,msg){typeof descriptor=="string"&&(msg=descriptor,descriptor=null),msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),actualDescriptor=Object.getOwnPropertyDescriptor(Object(obj),name),eql=flag2(this,"eql");actualDescriptor&&descriptor?this.assert(eql(descriptor,actualDescriptor),"expected the own property descriptor for "+inspect2(name)+" on #{this} to match "+inspect2(descriptor)+", got "+inspect2(actualDescriptor),"expected the own property descriptor for "+inspect2(name)+" on #{this} to not match "+inspect2(descriptor),descriptor,actualDescriptor,!0):this.assert(actualDescriptor,"expected #{this} to have an own property descriptor for "+inspect2(name),"expected #{this} to not have an own property descriptor for "+inspect2(name)),flag2(this,"object",actualDescriptor)}__name(assertOwnPropertyDescriptor,"assertOwnPropertyDescriptor");Assertion.addMethod("ownPropertyDescriptor",assertOwnPropertyDescriptor);Assertion.addMethod("haveOwnPropertyDescriptor",assertOwnPropertyDescriptor);function assertLengthChain(){flag2(this,"doLength",!0)}__name(assertLengthChain,"assertLengthChain");function assertLength(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),objType=type(obj).toLowerCase(),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi"),descriptor="length",itemsCount;switch(objType){case"map":case"set":descriptor="size",itemsCount=obj.size;break;default:new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),itemsCount=obj.length}this.assert(itemsCount==n,"expected #{this} to have a "+descriptor+" of #{exp} but got #{act}","expected #{this} to not have a "+descriptor+" of #{act}",n,itemsCount)}__name(assertLength,"assertLength");Assertion.addChainableMethod("length",assertLength,assertLengthChain);Assertion.addChainableMethod("lengthOf",assertLength,assertLengthChain);function assertMatch(re,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");this.assert(re.exec(obj),"expected #{this} to match "+re,"expected #{this} not to match "+re)}__name(assertMatch,"assertMatch");Assertion.addMethod("match",assertMatch);Assertion.addMethod("matches",assertMatch);Assertion.addMethod("string",function(str,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(obj,flagMsg,ssfi,!0).is.a("string"),this.assert(~obj.indexOf(str),"expected #{this} to contain "+inspect2(str),"expected #{this} to not contain "+inspect2(str))});function assertKeys(keys2){var obj=flag2(this,"object"),objType=type(obj),keysType=type(keys2),ssfi=flag2(this,"ssfi"),isDeep=flag2(this,"deep"),str,deepStr="",actual,ok=!0,flagMsg=flag2(this,"message");flagMsg=flagMsg?flagMsg+": ":"";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";if(objType==="Map"||objType==="Set")deepStr=isDeep?"deeply ":"",actual=[],obj.forEach(function(val,key){actual.push(key)}),keysType!=="Array"&&(keys2=Array.prototype.slice.call(arguments));else{switch(actual=getOwnEnumerableProperties(obj),keysType){case"Array":if(arguments.length>1)throw new AssertionError(mixedArgsMsg,void 0,ssfi);break;case"Object":if(arguments.length>1)throw new AssertionError(mixedArgsMsg,void 0,ssfi);keys2=Object.keys(keys2);break;default:keys2=Array.prototype.slice.call(arguments)}keys2=keys2.map(function(val){return typeof val=="symbol"?val:String(val)})}if(!keys2.length)throw new AssertionError(flagMsg+"keys required",void 0,ssfi);var len=keys2.length,any=flag2(this,"any"),all=flag2(this,"all"),expected=keys2,isEql=isDeep?flag2(this,"eql"):(val1,val2)=>val1===val2;if(!any&&!all&&(all=!0),any&&(ok=expected.some(function(expectedKey){return actual.some(function(actualKey){return isEql(expectedKey,actualKey)})})),all&&(ok=expected.every(function(expectedKey){return actual.some(function(actualKey){return isEql(expectedKey,actualKey)})}),flag2(this,"contains")||(ok=ok&&keys2.length==actual.length)),len>1){keys2=keys2.map(function(key){return inspect2(key)});var last=keys2.pop();all&&(str=keys2.join(", ")+", and "+last),any&&(str=keys2.join(", ")+", or "+last)}else str=inspect2(keys2[0]);str=(len>1?"keys ":"key ")+str,str=(flag2(this,"contains")?"contain ":"have ")+str,this.assert(ok,"expected #{this} to "+deepStr+str,"expected #{this} to not "+deepStr+str,expected.slice(0).sort(compareByInspect),actual.sort(compareByInspect),!0)}__name(assertKeys,"assertKeys");Assertion.addMethod("keys",assertKeys);Assertion.addMethod("key",assertKeys);function assertThrows(errorLike,errMsgMatcher,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),ssfi=flag2(this,"ssfi"),flagMsg=flag2(this,"message"),negate=flag2(this,"negate")||!1;new Assertion(obj,flagMsg,ssfi,!0).is.a("function"),(isRegExp2(errorLike)||typeof errorLike=="string")&&(errMsgMatcher=errorLike,errorLike=null);let caughtErr,errorWasThrown=!1;try{obj()}catch(err){errorWasThrown=!0,caughtErr=err}var everyArgIsUndefined=errorLike===void 0&&errMsgMatcher===void 0,everyArgIsDefined=!!(errorLike&&errMsgMatcher),errorLikeFail=!1,errMsgMatcherFail=!1;if(everyArgIsUndefined||!everyArgIsUndefined&&!negate){var errorLikeString="an error";errorLike instanceof Error?errorLikeString="#{exp}":errorLike&&(errorLikeString=check_error_exports.getConstructorName(errorLike));let actual=caughtErr;if(caughtErr instanceof Error)actual=caughtErr.toString();else if(typeof caughtErr=="string")actual=caughtErr;else if(caughtErr&&(typeof caughtErr=="object"||typeof caughtErr=="function"))try{actual=check_error_exports.getConstructorName(caughtErr)}catch{}this.assert(errorWasThrown,"expected #{this} to throw "+errorLikeString,"expected #{this} to not throw an error but #{act} was thrown",errorLike&&errorLike.toString(),actual)}if(errorLike&&caughtErr){if(errorLike instanceof Error){var isCompatibleInstance=check_error_exports.compatibleInstance(caughtErr,errorLike);isCompatibleInstance===negate&&(everyArgIsDefined&&negate?errorLikeFail=!0:this.assert(negate,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(caughtErr&&!negate?" but #{act} was thrown":""),errorLike.toString(),caughtErr.toString()))}var isCompatibleConstructor=check_error_exports.compatibleConstructor(caughtErr,errorLike);isCompatibleConstructor===negate&&(everyArgIsDefined&&negate?errorLikeFail=!0:this.assert(negate,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(caughtErr?" but #{act} was thrown":""),errorLike instanceof Error?errorLike.toString():errorLike&&check_error_exports.getConstructorName(errorLike),caughtErr instanceof Error?caughtErr.toString():caughtErr&&check_error_exports.getConstructorName(caughtErr)))}if(caughtErr&&errMsgMatcher!==void 0&&errMsgMatcher!==null){var placeholder="including";isRegExp2(errMsgMatcher)&&(placeholder="matching");var isCompatibleMessage=check_error_exports.compatibleMessage(caughtErr,errMsgMatcher);isCompatibleMessage===negate&&(everyArgIsDefined&&negate?errMsgMatcherFail=!0:this.assert(negate,"expected #{this} to throw error "+placeholder+" #{exp} but got #{act}","expected #{this} to throw error not "+placeholder+" #{exp}",errMsgMatcher,check_error_exports.getMessage(caughtErr)))}errorLikeFail&&errMsgMatcherFail&&this.assert(negate,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(caughtErr?" but #{act} was thrown":""),errorLike instanceof Error?errorLike.toString():errorLike&&check_error_exports.getConstructorName(errorLike),caughtErr instanceof Error?caughtErr.toString():caughtErr&&check_error_exports.getConstructorName(caughtErr)),flag2(this,"object",caughtErr)}__name(assertThrows,"assertThrows");Assertion.addMethod("throw",assertThrows);Assertion.addMethod("throws",assertThrows);Assertion.addMethod("Throw",assertThrows);function respondTo(method,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),itself=flag2(this,"itself"),context=typeof obj=="function"&&!itself?obj.prototype[method]:obj[method];this.assert(typeof context=="function","expected #{this} to respond to "+inspect2(method),"expected #{this} to not respond to "+inspect2(method))}__name(respondTo,"respondTo");Assertion.addMethod("respondTo",respondTo);Assertion.addMethod("respondsTo",respondTo);Assertion.addProperty("itself",function(){flag2(this,"itself",!0)});function satisfy(matcher,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),result=matcher(obj);this.assert(result,"expected #{this} to satisfy "+objDisplay(matcher),"expected #{this} to not satisfy"+objDisplay(matcher),!flag2(this,"negate"),result)}__name(satisfy,"satisfy");Assertion.addMethod("satisfy",satisfy);Assertion.addMethod("satisfies",satisfy);function closeTo(expected,delta,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(obj,flagMsg,ssfi,!0).is.numeric;let message="A `delta` value is required for `closeTo`";if(delta==null)throw new AssertionError(flagMsg?`${flagMsg}: ${message}`:message,void 0,ssfi);if(new Assertion(delta,flagMsg,ssfi,!0).is.numeric,message="A `expected` value is required for `closeTo`",expected==null)throw new AssertionError(flagMsg?`${flagMsg}: ${message}`:message,void 0,ssfi);new Assertion(expected,flagMsg,ssfi,!0).is.numeric;let abs=__name(x2=>x2<0n?-x2:x2,"abs");this.assert(abs(obj-expected)<=delta,"expected #{this} to be close to "+expected+" +/- "+delta,"expected #{this} not to be close to "+expected+" +/- "+delta)}__name(closeTo,"closeTo");Assertion.addMethod("closeTo",closeTo);Assertion.addMethod("approximately",closeTo);function isSubsetOf(_subset,_superset,cmp,contains,ordered){let superset=Array.from(_superset),subset=Array.from(_subset);if(!contains){if(subset.length!==superset.length)return!1;superset=superset.slice()}return subset.every(function(elem,idx){if(ordered)return cmp?cmp(elem,superset[idx]):elem===superset[idx];if(!cmp){var matchIdx=superset.indexOf(elem);return matchIdx===-1?!1:(contains||superset.splice(matchIdx,1),!0)}return superset.some(function(elem2,matchIdx2){return cmp(elem,elem2)?(contains||superset.splice(matchIdx2,1),!0):!1})})}__name(isSubsetOf,"isSubsetOf");Assertion.addMethod("members",function(subset,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(obj,flagMsg,ssfi,!0).to.be.iterable,new Assertion(subset,flagMsg,ssfi,!0).to.be.iterable;var contains=flag2(this,"contains"),ordered=flag2(this,"ordered"),subject,failMsg,failNegateMsg;contains?(subject=ordered?"an ordered superset":"a superset",failMsg="expected #{this} to be "+subject+" of #{exp}",failNegateMsg="expected #{this} to not be "+subject+" of #{exp}"):(subject=ordered?"ordered members":"members",failMsg="expected #{this} to have the same "+subject+" as #{exp}",failNegateMsg="expected #{this} to not have the same "+subject+" as #{exp}");var cmp=flag2(this,"deep")?flag2(this,"eql"):void 0;this.assert(isSubsetOf(subset,obj,cmp,contains,ordered),failMsg,failNegateMsg,subset,obj,!0)});Assertion.addProperty("iterable",function(msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");this.assert(obj!=null&&obj[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",obj)});function oneOf(list,msg){msg&&flag2(this,"message",msg);var expected=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi"),contains=flag2(this,"contains"),isDeep=flag2(this,"deep"),eql=flag2(this,"eql");new Assertion(list,flagMsg,ssfi,!0).to.be.an("array"),contains?this.assert(list.some(function(possibility){return expected.indexOf(possibility)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",list,expected):isDeep?this.assert(list.some(function(possibility){return eql(expected,possibility)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",list,expected):this.assert(list.indexOf(expected)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",list,expected)}__name(oneOf,"oneOf");Assertion.addMethod("oneOf",oneOf);function assertChanges(subject,prop,msg){msg&&flag2(this,"message",msg);var fn3=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(fn3,flagMsg,ssfi,!0).is.a("function");var initial;prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a("function"),initial=subject()),fn3();var final=prop==null?subject():subject[prop],msgObj=prop==null?initial:"."+prop;flag2(this,"deltaMsgObj",msgObj),flag2(this,"initialDeltaValue",initial),flag2(this,"finalDeltaValue",final),flag2(this,"deltaBehavior","change"),flag2(this,"realDelta",final!==initial),this.assert(initial!==final,"expected "+msgObj+" to change","expected "+msgObj+" to not change")}__name(assertChanges,"assertChanges");Assertion.addMethod("change",assertChanges);Assertion.addMethod("changes",assertChanges);function assertIncreases(subject,prop,msg){msg&&flag2(this,"message",msg);var fn3=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(fn3,flagMsg,ssfi,!0).is.a("function");var initial;prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a("function"),initial=subject()),new Assertion(initial,flagMsg,ssfi,!0).is.a("number"),fn3();var final=prop==null?subject():subject[prop],msgObj=prop==null?initial:"."+prop;flag2(this,"deltaMsgObj",msgObj),flag2(this,"initialDeltaValue",initial),flag2(this,"finalDeltaValue",final),flag2(this,"deltaBehavior","increase"),flag2(this,"realDelta",final-initial),this.assert(final-initial>0,"expected "+msgObj+" to increase","expected "+msgObj+" to not increase")}__name(assertIncreases,"assertIncreases");Assertion.addMethod("increase",assertIncreases);Assertion.addMethod("increases",assertIncreases);function assertDecreases(subject,prop,msg){msg&&flag2(this,"message",msg);var fn3=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(fn3,flagMsg,ssfi,!0).is.a("function");var initial;prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a("function"),initial=subject()),new Assertion(initial,flagMsg,ssfi,!0).is.a("number"),fn3();var final=prop==null?subject():subject[prop],msgObj=prop==null?initial:"."+prop;flag2(this,"deltaMsgObj",msgObj),flag2(this,"initialDeltaValue",initial),flag2(this,"finalDeltaValue",final),flag2(this,"deltaBehavior","decrease"),flag2(this,"realDelta",initial-final),this.assert(final-initial<0,"expected "+msgObj+" to decrease","expected "+msgObj+" to not decrease")}__name(assertDecreases,"assertDecreases");Assertion.addMethod("decrease",assertDecreases);Assertion.addMethod("decreases",assertDecreases);function assertDelta(delta,msg){msg&&flag2(this,"message",msg);var msgObj=flag2(this,"deltaMsgObj"),initial=flag2(this,"initialDeltaValue"),final=flag2(this,"finalDeltaValue"),behavior2=flag2(this,"deltaBehavior"),realDelta=flag2(this,"realDelta"),expression;behavior2==="change"?expression=Math.abs(final-initial)===Math.abs(delta):expression=realDelta===Math.abs(delta),this.assert(expression,"expected "+msgObj+" to "+behavior2+" by "+delta,"expected "+msgObj+" to not "+behavior2+" by "+delta)}__name(assertDelta,"assertDelta");Assertion.addMethod("by",assertDelta);Assertion.addProperty("extensible",function(){var obj=flag2(this,"object"),isExtensible=obj===Object(obj)&&Object.isExtensible(obj);this.assert(isExtensible,"expected #{this} to be extensible","expected #{this} to not be extensible")});Assertion.addProperty("sealed",function(){var obj=flag2(this,"object"),isSealed=obj===Object(obj)?Object.isSealed(obj):!0;this.assert(isSealed,"expected #{this} to be sealed","expected #{this} to not be sealed")});Assertion.addProperty("frozen",function(){var obj=flag2(this,"object"),isFrozen=obj===Object(obj)?Object.isFrozen(obj):!0;this.assert(isFrozen,"expected #{this} to be frozen","expected #{this} to not be frozen")});Assertion.addProperty("finite",function(msg){var obj=flag2(this,"object");this.assert(typeof obj=="number"&&isFinite(obj),"expected #{this} to be a finite number","expected #{this} to not be a finite number")});function expect(val,message){return new Assertion(val,message)}__name(expect,"expect");expect.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),message=message||"expect.fail()",new AssertionError(message,{actual,expected,operator},expect.fail)};var should_exports={};__export2(should_exports,{Should:()=>Should,should:()=>should});function loadShould(){function shouldGetter(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new Assertion(this.valueOf(),null,shouldGetter):new Assertion(this,null,shouldGetter)}__name(shouldGetter,"shouldGetter");function shouldSetter(value){Object.defineProperty(this,"should",{value,enumerable:!0,configurable:!0,writable:!0})}__name(shouldSetter,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:shouldSetter,get:shouldGetter,configurable:!0});var should2={};return should2.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),message=message||"should.fail()",new AssertionError(message,{actual,expected,operator},should2.fail)},should2.equal=function(actual,expected,message){new Assertion(actual,message).to.equal(expected)},should2.Throw=function(fn3,errt,errs,msg){new Assertion(fn3,msg).to.Throw(errt,errs)},should2.exist=function(val,msg){new Assertion(val,msg).to.exist},should2.not={},should2.not.equal=function(actual,expected,msg){new Assertion(actual,msg).to.not.equal(expected)},should2.not.Throw=function(fn3,errt,errs,msg){new Assertion(fn3,msg).to.not.Throw(errt,errs)},should2.not.exist=function(val,msg){new Assertion(val,msg).to.not.exist},should2.throw=should2.Throw,should2.not.throw=should2.not.Throw,should2}__name(loadShould,"loadShould");var should=loadShould,Should=loadShould;function assert(express,errmsg){var test22=new Assertion(null,null,assert,!0);test22.assert(express,errmsg,"[ negation message unavailable ]")}__name(assert,"assert");assert.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),message=message||"assert.fail()",new AssertionError(message,{actual,expected,operator},assert.fail)};assert.isOk=function(val,msg){new Assertion(val,msg,assert.isOk,!0).is.ok};assert.isNotOk=function(val,msg){new Assertion(val,msg,assert.isNotOk,!0).is.not.ok};assert.equal=function(act,exp,msg){var test22=new Assertion(act,msg,assert.equal,!0);test22.assert(exp==flag(test22,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",exp,act,!0)};assert.notEqual=function(act,exp,msg){var test22=new Assertion(act,msg,assert.notEqual,!0);test22.assert(exp!=flag(test22,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",exp,act,!0)};assert.strictEqual=function(act,exp,msg){new Assertion(act,msg,assert.strictEqual,!0).to.equal(exp)};assert.notStrictEqual=function(act,exp,msg){new Assertion(act,msg,assert.notStrictEqual,!0).to.not.equal(exp)};assert.deepEqual=assert.deepStrictEqual=function(act,exp,msg){new Assertion(act,msg,assert.deepEqual,!0).to.eql(exp)};assert.notDeepEqual=function(act,exp,msg){new Assertion(act,msg,assert.notDeepEqual,!0).to.not.eql(exp)};assert.isAbove=function(val,abv,msg){new Assertion(val,msg,assert.isAbove,!0).to.be.above(abv)};assert.isAtLeast=function(val,atlst,msg){new Assertion(val,msg,assert.isAtLeast,!0).to.be.least(atlst)};assert.isBelow=function(val,blw,msg){new Assertion(val,msg,assert.isBelow,!0).to.be.below(blw)};assert.isAtMost=function(val,atmst,msg){new Assertion(val,msg,assert.isAtMost,!0).to.be.most(atmst)};assert.isTrue=function(val,msg){new Assertion(val,msg,assert.isTrue,!0).is.true};assert.isNotTrue=function(val,msg){new Assertion(val,msg,assert.isNotTrue,!0).to.not.equal(!0)};assert.isFalse=function(val,msg){new Assertion(val,msg,assert.isFalse,!0).is.false};assert.isNotFalse=function(val,msg){new Assertion(val,msg,assert.isNotFalse,!0).to.not.equal(!1)};assert.isNull=function(val,msg){new Assertion(val,msg,assert.isNull,!0).to.equal(null)};assert.isNotNull=function(val,msg){new Assertion(val,msg,assert.isNotNull,!0).to.not.equal(null)};assert.isNaN=function(val,msg){new Assertion(val,msg,assert.isNaN,!0).to.be.NaN};assert.isNotNaN=function(value,message){new Assertion(value,message,assert.isNotNaN,!0).not.to.be.NaN};assert.exists=function(val,msg){new Assertion(val,msg,assert.exists,!0).to.exist};assert.notExists=function(val,msg){new Assertion(val,msg,assert.notExists,!0).to.not.exist};assert.isUndefined=function(val,msg){new Assertion(val,msg,assert.isUndefined,!0).to.equal(void 0)};assert.isDefined=function(val,msg){new Assertion(val,msg,assert.isDefined,!0).to.not.equal(void 0)};assert.isCallable=function(value,message){new Assertion(value,message,assert.isCallable,!0).is.callable};assert.isNotCallable=function(value,message){new Assertion(value,message,assert.isNotCallable,!0).is.not.callable};assert.isObject=function(val,msg){new Assertion(val,msg,assert.isObject,!0).to.be.a("object")};assert.isNotObject=function(val,msg){new Assertion(val,msg,assert.isNotObject,!0).to.not.be.a("object")};assert.isArray=function(val,msg){new Assertion(val,msg,assert.isArray,!0).to.be.an("array")};assert.isNotArray=function(val,msg){new Assertion(val,msg,assert.isNotArray,!0).to.not.be.an("array")};assert.isString=function(val,msg){new Assertion(val,msg,assert.isString,!0).to.be.a("string")};assert.isNotString=function(val,msg){new Assertion(val,msg,assert.isNotString,!0).to.not.be.a("string")};assert.isNumber=function(val,msg){new Assertion(val,msg,assert.isNumber,!0).to.be.a("number")};assert.isNotNumber=function(val,msg){new Assertion(val,msg,assert.isNotNumber,!0).to.not.be.a("number")};assert.isNumeric=function(val,msg){new Assertion(val,msg,assert.isNumeric,!0).is.numeric};assert.isNotNumeric=function(val,msg){new Assertion(val,msg,assert.isNotNumeric,!0).is.not.numeric};assert.isFinite=function(val,msg){new Assertion(val,msg,assert.isFinite,!0).to.be.finite};assert.isBoolean=function(val,msg){new Assertion(val,msg,assert.isBoolean,!0).to.be.a("boolean")};assert.isNotBoolean=function(val,msg){new Assertion(val,msg,assert.isNotBoolean,!0).to.not.be.a("boolean")};assert.typeOf=function(val,type32,msg){new Assertion(val,msg,assert.typeOf,!0).to.be.a(type32)};assert.notTypeOf=function(value,type32,message){new Assertion(value,message,assert.notTypeOf,!0).to.not.be.a(type32)};assert.instanceOf=function(val,type32,msg){new Assertion(val,msg,assert.instanceOf,!0).to.be.instanceOf(type32)};assert.notInstanceOf=function(val,type32,msg){new Assertion(val,msg,assert.notInstanceOf,!0).to.not.be.instanceOf(type32)};assert.include=function(exp,inc,msg){new Assertion(exp,msg,assert.include,!0).include(inc)};assert.notInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notInclude,!0).not.include(inc)};assert.deepInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepInclude,!0).deep.include(inc)};assert.notDeepInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepInclude,!0).not.deep.include(inc)};assert.nestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.nestedInclude,!0).nested.include(inc)};assert.notNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notNestedInclude,!0).not.nested.include(inc)};assert.deepNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepNestedInclude,!0).deep.nested.include(inc)};assert.notDeepNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepNestedInclude,!0).not.deep.nested.include(inc)};assert.ownInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.ownInclude,!0).own.include(inc)};assert.notOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notOwnInclude,!0).not.own.include(inc)};assert.deepOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepOwnInclude,!0).deep.own.include(inc)};assert.notDeepOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepOwnInclude,!0).not.deep.own.include(inc)};assert.match=function(exp,re,msg){new Assertion(exp,msg,assert.match,!0).to.match(re)};assert.notMatch=function(exp,re,msg){new Assertion(exp,msg,assert.notMatch,!0).to.not.match(re)};assert.property=function(obj,prop,msg){new Assertion(obj,msg,assert.property,!0).to.have.property(prop)};assert.notProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notProperty,!0).to.not.have.property(prop)};assert.propertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.propertyVal,!0).to.have.property(prop,val)};assert.notPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notPropertyVal,!0).to.not.have.property(prop,val)};assert.deepPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.deepPropertyVal,!0).to.have.deep.property(prop,val)};assert.notDeepPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notDeepPropertyVal,!0).to.not.have.deep.property(prop,val)};assert.ownProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.ownProperty,!0).to.have.own.property(prop)};assert.notOwnProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notOwnProperty,!0).to.not.have.own.property(prop)};assert.ownPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.ownPropertyVal,!0).to.have.own.property(prop,value)};assert.notOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.notOwnPropertyVal,!0).to.not.have.own.property(prop,value)};assert.deepOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.deepOwnPropertyVal,!0).to.have.deep.own.property(prop,value)};assert.notDeepOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(prop,value)};assert.nestedProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.nestedProperty,!0).to.have.nested.property(prop)};assert.notNestedProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notNestedProperty,!0).to.not.have.nested.property(prop)};assert.nestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.nestedPropertyVal,!0).to.have.nested.property(prop,val)};assert.notNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notNestedPropertyVal,!0).to.not.have.nested.property(prop,val)};assert.deepNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.deepNestedPropertyVal,!0).to.have.deep.nested.property(prop,val)};assert.notDeepNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(prop,val)};assert.lengthOf=function(exp,len,msg){new Assertion(exp,msg,assert.lengthOf,!0).to.have.lengthOf(len)};assert.hasAnyKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAnyKeys,!0).to.have.any.keys(keys2)};assert.hasAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAllKeys,!0).to.have.all.keys(keys2)};assert.containsAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.containsAllKeys,!0).to.contain.all.keys(keys2)};assert.doesNotHaveAnyKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAnyKeys,!0).to.not.have.any.keys(keys2)};assert.doesNotHaveAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAllKeys,!0).to.not.have.all.keys(keys2)};assert.hasAnyDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAnyDeepKeys,!0).to.have.any.deep.keys(keys2)};assert.hasAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAllDeepKeys,!0).to.have.all.deep.keys(keys2)};assert.containsAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.containsAllDeepKeys,!0).to.contain.all.deep.keys(keys2)};assert.doesNotHaveAnyDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(keys2)};assert.doesNotHaveAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(keys2)};assert.throws=function(fn3,errorLike,errMsgMatcher,msg){(typeof errorLike=="string"||errorLike instanceof RegExp)&&(errMsgMatcher=errorLike,errorLike=null);var assertErr=new Assertion(fn3,msg,assert.throws,!0).to.throw(errorLike,errMsgMatcher);return flag(assertErr,"object")};assert.doesNotThrow=function(fn3,errorLike,errMsgMatcher,message){(typeof errorLike=="string"||errorLike instanceof RegExp)&&(errMsgMatcher=errorLike,errorLike=null),new Assertion(fn3,message,assert.doesNotThrow,!0).to.not.throw(errorLike,errMsgMatcher)};assert.operator=function(val,operator,val2,msg){var ok;switch(operator){case"==":ok=val==val2;break;case"===":ok=val===val2;break;case">":ok=val>val2;break;case">=":ok=val>=val2;break;case"<":ok=val<val2;break;case"<=":ok=val<=val2;break;case"!=":ok=val!=val2;break;case"!==":ok=val!==val2;break;default:throw msg=msg&&msg+": ",new AssertionError(msg+'Invalid operator "'+operator+'"',void 0,assert.operator)}var test22=new Assertion(ok,msg,assert.operator,!0);test22.assert(flag(test22,"object")===!0,"expected "+inspect2(val)+" to be "+operator+" "+inspect2(val2),"expected "+inspect2(val)+" to not be "+operator+" "+inspect2(val2))};assert.closeTo=function(act,exp,delta,msg){new Assertion(act,msg,assert.closeTo,!0).to.be.closeTo(exp,delta)};assert.approximately=function(act,exp,delta,msg){new Assertion(act,msg,assert.approximately,!0).to.be.approximately(exp,delta)};assert.sameMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.sameMembers,!0).to.have.same.members(set2)};assert.notSameMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.notSameMembers,!0).to.not.have.same.members(set2)};assert.sameDeepMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.sameDeepMembers,!0).to.have.same.deep.members(set2)};assert.notSameDeepMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.notSameDeepMembers,!0).to.not.have.same.deep.members(set2)};assert.sameOrderedMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.sameOrderedMembers,!0).to.have.same.ordered.members(set2)};assert.notSameOrderedMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.notSameOrderedMembers,!0).to.not.have.same.ordered.members(set2)};assert.sameDeepOrderedMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(set2)};assert.notSameDeepOrderedMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(set2)};assert.includeMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.includeMembers,!0).to.include.members(subset)};assert.notIncludeMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.notIncludeMembers,!0).to.not.include.members(subset)};assert.includeDeepMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.includeDeepMembers,!0).to.include.deep.members(subset)};assert.notIncludeDeepMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.notIncludeDeepMembers,!0).to.not.include.deep.members(subset)};assert.includeOrderedMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.includeOrderedMembers,!0).to.include.ordered.members(subset)};assert.notIncludeOrderedMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.notIncludeOrderedMembers,!0).to.not.include.ordered.members(subset)};assert.includeDeepOrderedMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(subset)};assert.notIncludeDeepOrderedMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(subset)};assert.oneOf=function(inList,list,msg){new Assertion(inList,msg,assert.oneOf,!0).to.be.oneOf(list)};assert.isIterable=function(obj,msg){if(obj==null||!obj[Symbol.iterator])throw msg=msg?`${msg} expected ${inspect2(obj)} to be an iterable`:`expected ${inspect2(obj)} to be an iterable`,new AssertionError(msg,void 0,assert.isIterable)};assert.changes=function(fn3,obj,prop,msg){arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.changes,!0).to.change(obj,prop)};assert.changesBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.changesBy,!0).to.change(obj,prop).by(delta)};assert.doesNotChange=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.doesNotChange,!0).to.not.change(obj,prop)};assert.changesButNotBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.changesButNotBy,!0).to.change(obj,prop).but.not.by(delta)};assert.increases=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.increases,!0).to.increase(obj,prop)};assert.increasesBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.increasesBy,!0).to.increase(obj,prop).by(delta)};assert.doesNotIncrease=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.doesNotIncrease,!0).to.not.increase(obj,prop)};assert.increasesButNotBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.increasesButNotBy,!0).to.increase(obj,prop).but.not.by(delta)};assert.decreases=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.decreases,!0).to.decrease(obj,prop)};assert.decreasesBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.decreasesBy,!0).to.decrease(obj,prop).by(delta)};assert.doesNotDecrease=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.doesNotDecrease,!0).to.not.decrease(obj,prop)};assert.doesNotDecreaseBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);return new Assertion(fn3,msg,assert.doesNotDecreaseBy,!0).to.not.decrease(obj,prop).by(delta)};assert.decreasesButNotBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.decreasesButNotBy,!0).to.decrease(obj,prop).but.not.by(delta)};assert.ifError=function(val){if(val)throw val};assert.isExtensible=function(obj,msg){new Assertion(obj,msg,assert.isExtensible,!0).to.be.extensible};assert.isNotExtensible=function(obj,msg){new Assertion(obj,msg,assert.isNotExtensible,!0).to.not.be.extensible};assert.isSealed=function(obj,msg){new Assertion(obj,msg,assert.isSealed,!0).to.be.sealed};assert.isNotSealed=function(obj,msg){new Assertion(obj,msg,assert.isNotSealed,!0).to.not.be.sealed};assert.isFrozen=function(obj,msg){new Assertion(obj,msg,assert.isFrozen,!0).to.be.frozen};assert.isNotFrozen=function(obj,msg){new Assertion(obj,msg,assert.isNotFrozen,!0).to.not.be.frozen};assert.isEmpty=function(val,msg){new Assertion(val,msg,assert.isEmpty,!0).to.be.empty};assert.isNotEmpty=function(val,msg){new Assertion(val,msg,assert.isNotEmpty,!0).to.not.be.empty};__name(function alias(name,as){return assert[as]=assert[name],alias},"alias")("isOk","ok")("isNotOk","notOk")("throws","throw")("throws","Throw")("isExtensible","extensible")("isNotExtensible","notExtensible")("isSealed","sealed")("isNotSealed","notSealed")("isFrozen","frozen")("isNotFrozen","notFrozen")("isEmpty","empty")("isNotEmpty","notEmpty")("isCallable","isFunction")("isNotCallable","isNotFunction");var used=[];function use(fn3){let exports2={AssertionError,util:utils_exports,config,expect,assert,Assertion,...should_exports};return~used.indexOf(fn3)||(fn3(exports2,utils_exports),used.push(fn3)),exports2}__name(use,"use");var matchers_exports={};__export(matchers_exports,{toBeChecked:()=>toBeChecked,toBeDisabled:()=>toBeDisabled,toBeEmpty:()=>toBeEmpty,toBeEmptyDOMElement:()=>toBeEmptyDOMElement,toBeEnabled:()=>toBeEnabled,toBeInTheDOM:()=>toBeInTheDOM,toBeInTheDocument:()=>toBeInTheDocument,toBeInvalid:()=>toBeInvalid,toBePartiallyChecked:()=>toBePartiallyChecked,toBeRequired:()=>toBeRequired,toBeValid:()=>toBeValid,toBeVisible:()=>toBeVisible,toContainElement:()=>toContainElement,toContainHTML:()=>toContainHTML,toHaveAccessibleDescription:()=>toHaveAccessibleDescription,toHaveAccessibleErrorMessage:()=>toHaveAccessibleErrorMessage,toHaveAccessibleName:()=>toHaveAccessibleName,toHaveAttribute:()=>toHaveAttribute,toHaveClass:()=>toHaveClass,toHaveDescription:()=>toHaveDescription,toHaveDisplayValue:()=>toHaveDisplayValue,toHaveErrorMessage:()=>toHaveErrorMessage,toHaveFocus:()=>toHaveFocus,toHaveFormValues:()=>toHaveFormValues,toHaveRole:()=>toHaveRole,toHaveStyle:()=>toHaveStyle,toHaveTextContent:()=>toHaveTextContent,toHaveValue:()=>toHaveValue});var import_redent=__toESM(require_redent(),1);function $parcel$defineInteropFlag(a2){Object.defineProperty(a2,"__esModule",{value:!0,configurable:!0})}function $parcel$export(e,n,v,s){Object.defineProperty(e,n,{get:v,set:s,enumerable:!0,configurable:!0})}var $009ddb00d3ec72b8$exports={};$parcel$defineInteropFlag($009ddb00d3ec72b8$exports);$parcel$export($009ddb00d3ec72b8$exports,"default",()=>$009ddb00d3ec72b8$export$2e2bcd8739ae039);var $009ddb00d3ec72b8$export$2e2bcd8739ae039=class extends Error{constructor(filename,msg,lineno,column,css){super(filename+":"+lineno+":"+column+": "+msg),this.reason=msg,this.filename=filename,this.line=lineno,this.column=column,this.source=css}},$0865a9fb4cc365fe$exports={};$parcel$defineInteropFlag($0865a9fb4cc365fe$exports);$parcel$export($0865a9fb4cc365fe$exports,"default",()=>$0865a9fb4cc365fe$export$2e2bcd8739ae039);var $0865a9fb4cc365fe$export$2e2bcd8739ae039=class{constructor(start,end,source){this.start=start,this.end=end,this.source=source}},$b2e137848b48cf4f$exports={};$parcel$export($b2e137848b48cf4f$exports,"CssTypes",()=>$b2e137848b48cf4f$export$9be5dd6e61d5d73a);var $b2e137848b48cf4f$export$9be5dd6e61d5d73a=function(CssTypes){return CssTypes.stylesheet="stylesheet",CssTypes.rule="rule",CssTypes.declaration="declaration",CssTypes.comment="comment",CssTypes.container="container",CssTypes.charset="charset",CssTypes.document="document",CssTypes.customMedia="custom-media",CssTypes.fontFace="font-face",CssTypes.host="host",CssTypes.import="import",CssTypes.keyframes="keyframes",CssTypes.keyframe="keyframe",CssTypes.layer="layer",CssTypes.media="media",CssTypes.namespace="namespace",CssTypes.page="page",CssTypes.startingStyle="starting-style",CssTypes.supports="supports",CssTypes}({}),$d708735ed1303b43$var$commentre=/\/\*[^]*?(?:\*\/|$)/g,$d708735ed1303b43$export$98e6a39c04603d36=(css,options)=>{options=options||{};let lineno=1,column=1;function updatePosition(str){let lines=str.match(/\n/g);lines&&(lineno+=lines.length);let i=str.lastIndexOf(`
26
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var normalCompletion=!0,didErr=!1,err;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3},f:function(){try{!normalCompletion&&it.return!=null&&it.return()}finally{if(didErr)throw err}}}}function _unsupportedIterableToArray(o,minLen){if(o){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),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)}}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i2=0,arr2=new Array(len);i2<len;i2++)arr2[i2]=arr[i2];return arr2}var roleElement=[],keys2=_rolesMap.default.keys();for(i=0;i<keys2.length;i++)if(key=keys2[i],role=_rolesMap.default.get(key),relationConcepts=[],role){for(concepts=[].concat(role.baseConcepts,role.relatedConcepts),k2=0;k2<concepts.length;k2++)relation=concepts[k2],relation.module==="HTML"&&(concept=relation.concept,concept!=null&&relationConcepts.push(concept));relationConcepts.length>0&&roleElement.push([key,relationConcepts])}var key,role,relationConcepts,concepts,relation,concept,k2,i,roleElementMap={entries:function(){return roleElement},forEach:function(fn3){var thisArg=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,_iterator=_createForOfIteratorHelper(roleElement),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),_key=_step$value[0],values=_step$value[1];fn3.call(thisArg,values,_key,roleElement)}}catch(err){_iterator.e(err)}finally{_iterator.f()}},get:function(key2){var item=roleElement.find(function(tuple){return tuple[0]===key2});return item&&item[1]},has:function(key2){return!!roleElementMap.get(key2)},keys:function(){return roleElement.map(function(_ref){var _ref2=_slicedToArray(_ref,1),key2=_ref2[0];return key2})},values:function(){return roleElement.map(function(_ref3){var _ref4=_slicedToArray(_ref3,2),values2=_ref4[1];return values2})}},_default2=(0,_iterationDecorator.default)(roleElementMap,roleElementMap.entries());exports2.default=_default2}});var require_lib2=__commonJS({"../../node_modules/@testing-library/dom/node_modules/aria-query/lib/index.js"(exports2){"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});exports2.roles=exports2.roleElements=exports2.elementRoles=exports2.dom=exports2.aria=void 0;var _ariaPropsMap=_interopRequireDefault(require_ariaPropsMap2()),_domMap=_interopRequireDefault(require_domMap2()),_rolesMap=_interopRequireDefault(require_rolesMap2()),_elementRoleMap=_interopRequireDefault(require_elementRoleMap2()),_roleElementMap=_interopRequireDefault(require_roleElementMap2());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var aria=_ariaPropsMap.default;exports2.aria=aria;var dom=_domMap.default;exports2.dom=dom;var roles3=_rolesMap.default;exports2.roles=roles3;var elementRoles3=_elementRoleMap.default;exports2.elementRoles=elementRoles3;var roleElements2=_roleElementMap.default;exports2.roleElements=roleElements2}});var require_lz_string=__commonJS({"../../node_modules/lz-string/libs/lz-string.js"(exports2,module2){"use strict";var LZString=function(){var f3=String.fromCharCode,keyStrBase64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",keyStrUriSafe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",baseReverseDic={};function getBaseValue(alphabet,character){if(!baseReverseDic[alphabet]){baseReverseDic[alphabet]={};for(var i=0;i<alphabet.length;i++)baseReverseDic[alphabet][alphabet.charAt(i)]=i}return baseReverseDic[alphabet][character]}var LZString2={compressToBase64:function(input2){if(input2==null)return"";var res=LZString2._compress(input2,6,function(a2){return keyStrBase64.charAt(a2)});switch(res.length%4){default:case 0:return res;case 1:return res+"===";case 2:return res+"==";case 3:return res+"="}},decompressFromBase64:function(input2){return input2==null?"":input2==""?null:LZString2._decompress(input2.length,32,function(index){return getBaseValue(keyStrBase64,input2.charAt(index))})},compressToUTF16:function(input2){return input2==null?"":LZString2._compress(input2,15,function(a2){return f3(a2+32)})+" "},decompressFromUTF16:function(compressed){return compressed==null?"":compressed==""?null:LZString2._decompress(compressed.length,16384,function(index){return compressed.charCodeAt(index)-32})},compressToUint8Array:function(uncompressed){for(var compressed=LZString2.compress(uncompressed),buf=new Uint8Array(compressed.length*2),i=0,TotalLen=compressed.length;i<TotalLen;i++){var current_value=compressed.charCodeAt(i);buf[i*2]=current_value>>>8,buf[i*2+1]=current_value%256}return buf},decompressFromUint8Array:function(compressed){if(compressed==null)return LZString2.decompress(compressed);for(var buf=new Array(compressed.length/2),i=0,TotalLen=buf.length;i<TotalLen;i++)buf[i]=compressed[i*2]*256+compressed[i*2+1];var result=[];return buf.forEach(function(c){result.push(f3(c))}),LZString2.decompress(result.join(""))},compressToEncodedURIComponent:function(input2){return input2==null?"":LZString2._compress(input2,6,function(a2){return keyStrUriSafe.charAt(a2)})},decompressFromEncodedURIComponent:function(input2){return input2==null?"":input2==""?null:(input2=input2.replace(/ /g,"+"),LZString2._decompress(input2.length,32,function(index){return getBaseValue(keyStrUriSafe,input2.charAt(index))}))},compress:function(uncompressed){return LZString2._compress(uncompressed,16,function(a2){return f3(a2)})},_compress:function(uncompressed,bitsPerChar,getCharFromInt){if(uncompressed==null)return"";var i,value,context_dictionary={},context_dictionaryToCreate={},context_c="",context_wc="",context_w="",context_enlargeIn=2,context_dictSize=3,context_numBits=2,context_data=[],context_data_val=0,context_data_position=0,ii;for(ii=0;ii<uncompressed.length;ii+=1)if(context_c=uncompressed.charAt(ii),Object.prototype.hasOwnProperty.call(context_dictionary,context_c)||(context_dictionary[context_c]=context_dictSize++,context_dictionaryToCreate[context_c]=!0),context_wc=context_w+context_c,Object.prototype.hasOwnProperty.call(context_dictionary,context_wc))context_w=context_wc;else{if(Object.prototype.hasOwnProperty.call(context_dictionaryToCreate,context_w)){if(context_w.charCodeAt(0)<256){for(i=0;i<context_numBits;i++)context_data_val=context_data_val<<1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++;for(value=context_w.charCodeAt(0),i=0;i<8;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1}else{for(value=1,i=0;i<context_numBits;i++)context_data_val=context_data_val<<1|value,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=0;for(value=context_w.charCodeAt(0),i=0;i<16;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1}context_enlargeIn--,context_enlargeIn==0&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++),delete context_dictionaryToCreate[context_w]}else for(value=context_dictionary[context_w],i=0;i<context_numBits;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1;context_enlargeIn--,context_enlargeIn==0&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++),context_dictionary[context_wc]=context_dictSize++,context_w=String(context_c)}if(context_w!==""){if(Object.prototype.hasOwnProperty.call(context_dictionaryToCreate,context_w)){if(context_w.charCodeAt(0)<256){for(i=0;i<context_numBits;i++)context_data_val=context_data_val<<1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++;for(value=context_w.charCodeAt(0),i=0;i<8;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1}else{for(value=1,i=0;i<context_numBits;i++)context_data_val=context_data_val<<1|value,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=0;for(value=context_w.charCodeAt(0),i=0;i<16;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1}context_enlargeIn--,context_enlargeIn==0&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++),delete context_dictionaryToCreate[context_w]}else for(value=context_dictionary[context_w],i=0;i<context_numBits;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1;context_enlargeIn--,context_enlargeIn==0&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++)}for(value=2,i=0;i<context_numBits;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1;for(;;)if(context_data_val=context_data_val<<1,context_data_position==bitsPerChar-1){context_data.push(getCharFromInt(context_data_val));break}else context_data_position++;return context_data.join("")},decompress:function(compressed){return compressed==null?"":compressed==""?null:LZString2._decompress(compressed.length,32768,function(index){return compressed.charCodeAt(index)})},_decompress:function(length,resetValue,getNextValue){var dictionary=[],next,enlargeIn=4,dictSize=4,numBits=3,entry="",result=[],i,w2,bits,resb,maxpower,power,c,data={val:getNextValue(0),position:resetValue,index:1};for(i=0;i<3;i+=1)dictionary[i]=i;for(bits=0,maxpower=Math.pow(2,2),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;switch(next=bits){case 0:for(bits=0,maxpower=Math.pow(2,8),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;c=f3(bits);break;case 1:for(bits=0,maxpower=Math.pow(2,16),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;c=f3(bits);break;case 2:return""}for(dictionary[3]=c,w2=c,result.push(c);;){if(data.index>length)return"";for(bits=0,maxpower=Math.pow(2,numBits),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;switch(c=bits){case 0:for(bits=0,maxpower=Math.pow(2,8),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;dictionary[dictSize++]=f3(bits),c=dictSize-1,enlargeIn--;break;case 1:for(bits=0,maxpower=Math.pow(2,16),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;dictionary[dictSize++]=f3(bits),c=dictSize-1,enlargeIn--;break;case 2:return result.join("")}if(enlargeIn==0&&(enlargeIn=Math.pow(2,numBits),numBits++),dictionary[c])entry=dictionary[c];else if(c===dictSize)entry=w2+w2.charAt(0);else return null;result.push(entry),dictionary[dictSize++]=w2+entry.charAt(0),enlargeIn--,w2=entry,enlargeIn==0&&(enlargeIn=Math.pow(2,numBits),numBits++)}}};return LZString2}();typeof define=="function"&&define.amd?define(function(){return LZString}):typeof module2<"u"&&module2!=null?module2.exports=LZString:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return LZString})}});var index_exports={};__export(index_exports,{buildQueries:()=>buildQueries2,clearAllMocks:()=>clearAllMocks,configure:()=>configure2,createEvent:()=>createEvent3,expect:()=>expect3,findAllByAltText:()=>findAllByAltText2,findAllByDisplayValue:()=>findAllByDisplayValue2,findAllByLabelText:()=>findAllByLabelText2,findAllByPlaceholderText:()=>findAllByPlaceholderText2,findAllByRole:()=>findAllByRole2,findAllByTestId:()=>findAllByTestId2,findAllByText:()=>findAllByText2,findAllByTitle:()=>findAllByTitle2,findByAltText:()=>findByAltText2,findByDisplayValue:()=>findByDisplayValue2,findByLabelText:()=>findByLabelText2,findByPlaceholderText:()=>findByPlaceholderText2,findByRole:()=>findByRole2,findByTestId:()=>findByTestId2,findByText:()=>findByText2,findByTitle:()=>findByTitle2,fireEvent:()=>fireEvent2,fn:()=>fn2,getAllByAltText:()=>getAllByAltText2,getAllByDisplayValue:()=>getAllByDisplayValue2,getAllByLabelText:()=>getAllByLabelText2,getAllByPlaceholderText:()=>getAllByPlaceholderText2,getAllByRole:()=>getAllByRole2,getAllByTestId:()=>getAllByTestId2,getAllByText:()=>getAllByText2,getAllByTitle:()=>getAllByTitle2,getByAltText:()=>getByAltText2,getByDisplayValue:()=>getByDisplayValue2,getByLabelText:()=>getByLabelText2,getByPlaceholderText:()=>getByPlaceholderText2,getByRole:()=>getByRole2,getByTestId:()=>getByTestId2,getByText:()=>getByText2,getByTitle:()=>getByTitle2,getConfig:()=>getConfig3,getDefaultNormalizer:()=>getDefaultNormalizer2,getElementError:()=>getElementError2,getNodeText:()=>getNodeText2,getQueriesForElement:()=>getQueriesForElement2,getRoles:()=>getRoles2,getSuggestedQuery:()=>getSuggestedQuery2,isInaccessible:()=>isInaccessible2,isMockFunction:()=>isMockFunction,logDOM:()=>logDOM2,logRoles:()=>logRoles2,mocked:()=>mocked,mocks:()=>mocks,onMockCall:()=>onMockCall,prettyDOM:()=>prettyDOM2,prettyFormat:()=>prettyFormat2,queries:()=>queries2,queryAllByAltText:()=>queryAllByAltText2,queryAllByAttribute:()=>queryAllByAttribute2,queryAllByDisplayValue:()=>queryAllByDisplayValue2,queryAllByLabelText:()=>queryAllByLabelText2,queryAllByPlaceholderText:()=>queryAllByPlaceholderText2,queryAllByRole:()=>queryAllByRole2,queryAllByTestId:()=>queryAllByTestId2,queryAllByText:()=>queryAllByText2,queryAllByTitle:()=>queryAllByTitle2,queryByAltText:()=>queryByAltText2,queryByAttribute:()=>queryByAttribute2,queryByDisplayValue:()=>queryByDisplayValue2,queryByLabelText:()=>queryByLabelText2,queryByPlaceholderText:()=>queryByPlaceholderText2,queryByRole:()=>queryByRole2,queryByTestId:()=>queryByTestId2,queryByText:()=>queryByText2,queryByTitle:()=>queryByTitle2,queryHelpers:()=>queryHelpers2,resetAllMocks:()=>resetAllMocks,restoreAllMocks:()=>restoreAllMocks,screen:()=>screen2,spyOn:()=>spyOn2,traverseArgs:()=>traverseArgs,userEvent:()=>userEvent2,waitFor:()=>waitFor2,waitForElementToBeRemoved:()=>waitForElementToBeRemoved2,within:()=>within});module.exports=__toCommonJS(index_exports);var import_instrumenter2=require("storybook/internal/instrumenter"),import_global=require("@storybook/global");var __defProp2=Object.defineProperty,__getOwnPropNames2=Object.getOwnPropertyNames,__name=(target,value)=>__defProp2(target,"name",{value,configurable:!0}),__commonJS2=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames2(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__export2=(target,all)=>{for(var name in all)__defProp2(target,name,{get:all[name],enumerable:!0})},require_util=__commonJS2({"(disabled):util"(){}}),utils_exports={};__export2(utils_exports,{addChainableMethod:()=>addChainableMethod,addLengthGuard:()=>addLengthGuard,addMethod:()=>addMethod,addProperty:()=>addProperty,checkError:()=>check_error_exports,compareByInspect:()=>compareByInspect,eql:()=>deep_eql_default,expectTypes:()=>expectTypes,flag:()=>flag,getActual:()=>getActual,getMessage:()=>getMessage2,getName:()=>getName,getOperator:()=>getOperator,getOwnEnumerableProperties:()=>getOwnEnumerableProperties,getOwnEnumerablePropertySymbols:()=>getOwnEnumerablePropertySymbols,getPathInfo:()=>getPathInfo,hasProperty:()=>hasProperty,inspect:()=>inspect2,isNaN:()=>isNaN22,isNumeric:()=>isNumeric,isProxyEnabled:()=>isProxyEnabled,isRegExp:()=>isRegExp2,objDisplay:()=>objDisplay,overwriteChainableMethod:()=>overwriteChainableMethod,overwriteMethod:()=>overwriteMethod,overwriteProperty:()=>overwriteProperty,proxify:()=>proxify,test:()=>test,transferFlags:()=>transferFlags,type:()=>type});var check_error_exports={};__export2(check_error_exports,{compatibleConstructor:()=>compatibleConstructor,compatibleInstance:()=>compatibleInstance,compatibleMessage:()=>compatibleMessage,getConstructorName:()=>getConstructorName,getMessage:()=>getMessage});function isErrorInstance(obj){return obj instanceof Error||Object.prototype.toString.call(obj)==="[object Error]"}__name(isErrorInstance,"isErrorInstance");function isRegExp(obj){return Object.prototype.toString.call(obj)==="[object RegExp]"}__name(isRegExp,"isRegExp");function compatibleInstance(thrown,errorLike){return isErrorInstance(errorLike)&&thrown===errorLike}__name(compatibleInstance,"compatibleInstance");function compatibleConstructor(thrown,errorLike){return isErrorInstance(errorLike)?thrown.constructor===errorLike.constructor||thrown instanceof errorLike.constructor:(typeof errorLike=="object"||typeof errorLike=="function")&&errorLike.prototype?thrown.constructor===errorLike||thrown instanceof errorLike:!1}__name(compatibleConstructor,"compatibleConstructor");function compatibleMessage(thrown,errMatcher){let comparisonString=typeof thrown=="string"?thrown:thrown.message;return isRegExp(errMatcher)?errMatcher.test(comparisonString):typeof errMatcher=="string"?comparisonString.indexOf(errMatcher)!==-1:!1}__name(compatibleMessage,"compatibleMessage");function getConstructorName(errorLike){let constructorName=errorLike;return isErrorInstance(errorLike)?constructorName=errorLike.constructor.name:typeof errorLike=="function"&&(constructorName=errorLike.name,constructorName===""&&(constructorName=new errorLike().name||constructorName)),constructorName}__name(getConstructorName,"getConstructorName");function getMessage(errorLike){let msg="";return errorLike&&errorLike.message?msg=errorLike.message:typeof errorLike=="string"&&(msg=errorLike),msg}__name(getMessage,"getMessage");function flag(obj,key,value){var flags=obj.__flags||(obj.__flags=Object.create(null));if(arguments.length===3)flags[key]=value;else return flags[key]}__name(flag,"flag");function test(obj,args){var negate=flag(obj,"negate"),expr=args[0];return negate?!expr:expr}__name(test,"test");function type(obj){if(typeof obj>"u")return"undefined";if(obj===null)return"null";let stringTag=obj[Symbol.toStringTag];return typeof stringTag=="string"?stringTag:Object.prototype.toString.call(obj).slice(8,-1)}__name(type,"type");var canElideFrames="captureStackTrace"in Error,AssertionError=class _AssertionError extends Error{static{__name(this,"AssertionError")}message;get name(){return"AssertionError"}get ok(){return!1}constructor(message="Unspecified AssertionError",props,ssf){super(message),this.message=message,canElideFrames&&Error.captureStackTrace(this,ssf||_AssertionError);for(let key in props)key in this||(this[key]=props[key])}toJSON(stack){return{...this,name:this.name,message:this.message,ok:!1,stack:stack!==!1?this.stack:void 0}}};function expectTypes(obj,types){var flagMsg=flag(obj,"message"),ssfi=flag(obj,"ssfi");flagMsg=flagMsg?flagMsg+": ":"",obj=flag(obj,"object"),types=types.map(function(t){return t.toLowerCase()}),types.sort();var str=types.map(function(t,index){var art=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an":"a",or=types.length>1&&index===types.length-1?"or ":"";return or+art+" "+t}).join(", "),objType=type(obj).toLowerCase();if(!types.some(function(expected){return objType===expected}))throw new AssertionError(flagMsg+"object tested must be "+str+", but "+objType+" given",void 0,ssfi)}__name(expectTypes,"expectTypes");function getActual(obj,args){return args.length>4?args[4]:obj._obj}__name(getActual,"getActual");var ansiColors={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},styles={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},truncator="\u2026";function colorise(value,styleType){let color=ansiColors[styles[styleType]]||ansiColors[styleType]||"";return color?`\x1B[${color[0]}m${String(value)}\x1B[${color[1]}m`:String(value)}__name(colorise,"colorise");function normaliseOptions({showHidden=!1,depth=2,colors=!1,customInspect=!0,showProxy=!1,maxArrayLength=1/0,breakLength=1/0,seen=[],truncate:truncate22=1/0,stylize=String}={},inspect32){let options={showHidden:!!showHidden,depth:Number(depth),colors:!!colors,customInspect:!!customInspect,showProxy:!!showProxy,maxArrayLength:Number(maxArrayLength),breakLength:Number(breakLength),truncate:Number(truncate22),seen,inspect:inspect32,stylize};return options.colors&&(options.stylize=colorise),options}__name(normaliseOptions,"normaliseOptions");function isHighSurrogate(char){return char>="\uD800"&&char<="\uDBFF"}__name(isHighSurrogate,"isHighSurrogate");function truncate(string,length,tail=truncator){string=String(string);let tailLength=tail.length,stringLength=string.length;if(tailLength>length&&stringLength>tailLength)return tail;if(stringLength>length&&stringLength>tailLength){let end=length-tailLength;return end>0&&isHighSurrogate(string[end-1])&&(end=end-1),`${string.slice(0,end)}${tail}`}return string}__name(truncate,"truncate");function inspectList(list,options,inspectItem,separator=", "){inspectItem=inspectItem||options.inspect;let size=list.length;if(size===0)return"";let originalLength=options.truncate,output="",peek="",truncated="";for(let i=0;i<size;i+=1){let last=i+1===list.length,secondToLast=i+2===list.length;truncated=`${truncator}(${list.length-i})`;let value=list[i];options.truncate=originalLength-output.length-(last?0:separator.length);let string=peek||inspectItem(value,options)+(last?"":separator),nextLength=output.length+string.length,truncatedLength=nextLength+truncated.length;if(last&&nextLength>originalLength&&output.length+truncated.length<=originalLength||!last&&!secondToLast&&truncatedLength>originalLength||(peek=last?"":inspectItem(list[i+1],options)+(secondToLast?"":separator),!last&&secondToLast&&truncatedLength>originalLength&&nextLength+peek.length>originalLength))break;if(output+=string,!last&&!secondToLast&&nextLength+peek.length>=originalLength){truncated=`${truncator}(${list.length-i-1})`;break}truncated=""}return`${output}${truncated}`}__name(inspectList,"inspectList");function quoteComplexKey(key){return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?key:JSON.stringify(key).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}__name(quoteComplexKey,"quoteComplexKey");function inspectProperty([key,value],options){return options.truncate-=2,typeof key=="string"?key=quoteComplexKey(key):typeof key!="number"&&(key=`[${options.inspect(key,options)}]`),options.truncate-=key.length,value=options.inspect(value,options),`${key}: ${value}`}__name(inspectProperty,"inspectProperty");function inspectArray(array,options){let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return"[]";options.truncate-=4;let listContents=inspectList(array,options);options.truncate-=listContents.length;let propertyContents="";return nonIndexProperties.length&&(propertyContents=inspectList(nonIndexProperties.map(key=>[key,array[key]]),options,inspectProperty)),`[ ${listContents}${propertyContents?`, ${propertyContents}`:""} ]`}__name(inspectArray,"inspectArray");var getArrayName=__name(array=>typeof Buffer=="function"&&array instanceof Buffer?"Buffer":array[Symbol.toStringTag]?array[Symbol.toStringTag]:array.constructor.name,"getArrayName");function inspectTypedArray(array,options){let name=getArrayName(array);options.truncate-=name.length+4;let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return`${name}[]`;let output="";for(let i=0;i<array.length;i++){let string=`${options.stylize(truncate(array[i],options.truncate),"number")}${i===array.length-1?"":", "}`;if(options.truncate-=string.length,array[i]!==array.length&&options.truncate<=3){output+=`${truncator}(${array.length-array[i]+1})`;break}output+=string}let propertyContents="";return nonIndexProperties.length&&(propertyContents=inspectList(nonIndexProperties.map(key=>[key,array[key]]),options,inspectProperty)),`${name}[ ${output}${propertyContents?`, ${propertyContents}`:""} ]`}__name(inspectTypedArray,"inspectTypedArray");function inspectDate(dateObject,options){let stringRepresentation=dateObject.toJSON();if(stringRepresentation===null)return"Invalid Date";let split=stringRepresentation.split("T"),date=split[0];return options.stylize(`${date}T${truncate(split[1],options.truncate-date.length-1)}`,"date")}__name(inspectDate,"inspectDate");function inspectFunction(func,options){let functionType=func[Symbol.toStringTag]||"Function",name=func.name;return name?options.stylize(`[${functionType} ${truncate(name,options.truncate-11)}]`,"special"):options.stylize(`[${functionType}]`,"special")}__name(inspectFunction,"inspectFunction");function inspectMapEntry([key,value],options){return options.truncate-=4,key=options.inspect(key,options),options.truncate-=key.length,value=options.inspect(value,options),`${key} => ${value}`}__name(inspectMapEntry,"inspectMapEntry");function mapToEntries(map){let entries=[];return map.forEach((value,key)=>{entries.push([key,value])}),entries}__name(mapToEntries,"mapToEntries");function inspectMap(map,options){return map.size-1<=0?"Map{}":(options.truncate-=7,`Map{ ${inspectList(mapToEntries(map),options,inspectMapEntry)} }`)}__name(inspectMap,"inspectMap");var isNaN2=Number.isNaN||(i=>i!==i);function inspectNumber(number,options){return isNaN2(number)?options.stylize("NaN","number"):number===1/0?options.stylize("Infinity","number"):number===-1/0?options.stylize("-Infinity","number"):number===0?options.stylize(1/number===1/0?"+0":"-0","number"):options.stylize(truncate(String(number),options.truncate),"number")}__name(inspectNumber,"inspectNumber");function inspectBigInt(number,options){let nums=truncate(number.toString(),options.truncate-1);return nums!==truncator&&(nums+="n"),options.stylize(nums,"bigint")}__name(inspectBigInt,"inspectBigInt");function inspectRegExp(value,options){let flags=value.toString().split("/")[2],sourceLength=options.truncate-(2+flags.length),source=value.source;return options.stylize(`/${truncate(source,sourceLength)}/${flags}`,"regexp")}__name(inspectRegExp,"inspectRegExp");function arrayFromSet(set2){let values=[];return set2.forEach(value=>{values.push(value)}),values}__name(arrayFromSet,"arrayFromSet");function inspectSet(set2,options){return set2.size===0?"Set{}":(options.truncate-=7,`Set{ ${inspectList(arrayFromSet(set2),options)} }`)}__name(inspectSet,"inspectSet");var stringEscapeChars=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),escapeCharacters={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},hex=16,unicodeLength=4;function escape(char){return escapeCharacters[char]||`\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`}__name(escape,"escape");function inspectString(string,options){return stringEscapeChars.test(string)&&(string=string.replace(stringEscapeChars,escape)),options.stylize(`'${truncate(string,options.truncate-2)}'`,"string")}__name(inspectString,"inspectString");function inspectSymbol(value){return"description"in Symbol.prototype?value.description?`Symbol(${value.description})`:"Symbol()":value.toString()}__name(inspectSymbol,"inspectSymbol");var getPromiseValue=__name(()=>"Promise{\u2026}","getPromiseValue");try{let{getPromiseDetails,kPending,kRejected}=process.binding("util");Array.isArray(getPromiseDetails(Promise.resolve()))&&(getPromiseValue=__name((value,options)=>{let[state,innerValue]=getPromiseDetails(value);return state===kPending?"Promise{<pending>}":`Promise${state===kRejected?"!":""}{${options.inspect(innerValue,options)}}`},"getPromiseValue"))}catch{}var promise_default=getPromiseValue;function inspectObject(object,options){let properties=Object.getOwnPropertyNames(object),symbols=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(object):[];if(properties.length===0&&symbols.length===0)return"{}";if(options.truncate-=4,options.seen=options.seen||[],options.seen.includes(object))return"[Circular]";options.seen.push(object);let propertyContents=inspectList(properties.map(key=>[key,object[key]]),options,inspectProperty),symbolContents=inspectList(symbols.map(key=>[key,object[key]]),options,inspectProperty);options.seen.pop();let sep="";return propertyContents&&symbolContents&&(sep=", "),`{ ${propertyContents}${sep}${symbolContents} }`}__name(inspectObject,"inspectObject");var toStringTag=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function inspectClass(value,options){let name="";return toStringTag&&toStringTag in value&&(name=value[toStringTag]),name=name||value.constructor.name,(!name||name==="_class")&&(name="<Anonymous Class>"),options.truncate-=name.length,`${name}${inspectObject(value,options)}`}__name(inspectClass,"inspectClass");function inspectArguments(args,options){return args.length===0?"Arguments[]":(options.truncate-=13,`Arguments[ ${inspectList(args,options)} ]`)}__name(inspectArguments,"inspectArguments");var errorKeys=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function inspectObject2(error,options){let properties=Object.getOwnPropertyNames(error).filter(key=>errorKeys.indexOf(key)===-1),name=error.name;options.truncate-=name.length;let message="";if(typeof error.message=="string"?message=truncate(error.message,options.truncate):properties.unshift("message"),message=message?`: ${message}`:"",options.truncate-=message.length+5,options.seen=options.seen||[],options.seen.includes(error))return"[Circular]";options.seen.push(error);let propertyContents=inspectList(properties.map(key=>[key,error[key]]),options,inspectProperty);return`${name}${message}${propertyContents?` { ${propertyContents} }`:""}`}__name(inspectObject2,"inspectObject");function inspectAttribute([key,value],options){return options.truncate-=3,value?`${options.stylize(String(key),"yellow")}=${options.stylize(`"${value}"`,"string")}`:`${options.stylize(String(key),"yellow")}`}__name(inspectAttribute,"inspectAttribute");function inspectHTMLCollection(collection,options){return inspectList(collection,options,inspectHTML,`
27
+ `)}__name(inspectHTMLCollection,"inspectHTMLCollection");function inspectHTML(element,options){let properties=element.getAttributeNames(),name=element.tagName.toLowerCase(),head=options.stylize(`<${name}`,"special"),headClose=options.stylize(">","special"),tail=options.stylize(`</${name}>`,"special");options.truncate-=name.length*2+5;let propertyContents="";properties.length>0&&(propertyContents+=" ",propertyContents+=inspectList(properties.map(key=>[key,element.getAttribute(key)]),options,inspectAttribute," ")),options.truncate-=propertyContents.length;let truncate22=options.truncate,children=inspectHTMLCollection(element.children,options);return children&&children.length>truncate22&&(children=`${truncator}(${element.children.length})`),`${head}${propertyContents}${headClose}${children}${tail}`}__name(inspectHTML,"inspectHTML");var symbolsSupported=typeof Symbol=="function"&&typeof Symbol.for=="function",chaiInspect=symbolsSupported?Symbol.for("chai/inspect"):"@@chai/inspect",nodeInspect=!1;try{let nodeUtil=require_util();nodeInspect=nodeUtil.inspect?nodeUtil.inspect.custom:!1}catch{nodeInspect=!1}var constructorMap=new WeakMap,stringTagMap={},baseTypesMap={undefined:(value,options)=>options.stylize("undefined","undefined"),null:(value,options)=>options.stylize("null","null"),boolean:(value,options)=>options.stylize(String(value),"boolean"),Boolean:(value,options)=>options.stylize(String(value),"boolean"),number:inspectNumber,Number:inspectNumber,bigint:inspectBigInt,BigInt:inspectBigInt,string:inspectString,String:inspectString,function:inspectFunction,Function:inspectFunction,symbol:inspectSymbol,Symbol:inspectSymbol,Array:inspectArray,Date:inspectDate,Map:inspectMap,Set:inspectSet,RegExp:inspectRegExp,Promise:promise_default,WeakSet:(value,options)=>options.stylize("WeakSet{\u2026}","special"),WeakMap:(value,options)=>options.stylize("WeakMap{\u2026}","special"),Arguments:inspectArguments,Int8Array:inspectTypedArray,Uint8Array:inspectTypedArray,Uint8ClampedArray:inspectTypedArray,Int16Array:inspectTypedArray,Uint16Array:inspectTypedArray,Int32Array:inspectTypedArray,Uint32Array:inspectTypedArray,Float32Array:inspectTypedArray,Float64Array:inspectTypedArray,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:inspectObject2,HTMLCollection:inspectHTMLCollection,NodeList:inspectHTMLCollection},inspectCustom=__name((value,options,type32)=>chaiInspect in value&&typeof value[chaiInspect]=="function"?value[chaiInspect](options):nodeInspect&&nodeInspect in value&&typeof value[nodeInspect]=="function"?value[nodeInspect](options.depth,options):"inspect"in value&&typeof value.inspect=="function"?value.inspect(options.depth,options):"constructor"in value&&constructorMap.has(value.constructor)?constructorMap.get(value.constructor)(value,options):stringTagMap[type32]?stringTagMap[type32](value,options):"","inspectCustom"),toString=Object.prototype.toString;function inspect(value,opts={}){let options=normaliseOptions(opts,inspect),{customInspect}=options,type32=value===null?"null":typeof value;if(type32==="object"&&(type32=toString.call(value).slice(8,-1)),type32 in baseTypesMap)return baseTypesMap[type32](value,options);if(customInspect&&value){let output=inspectCustom(value,options,type32);if(output)return typeof output=="string"?output:inspect(output,options)}let proto=value?Object.getPrototypeOf(value):!1;return proto===Object.prototype||proto===null?inspectObject(value,options):value&&typeof HTMLElement=="function"&&value instanceof HTMLElement?inspectHTML(value,options):"constructor"in value?value.constructor!==Object?inspectClass(value,options):inspectObject(value,options):value===Object(value)?inspectObject(value,options):options.stylize(String(value),type32)}__name(inspect,"inspect");var config={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function inspect2(obj,showHidden,depth,colors){var options={colors,depth:typeof depth>"u"?2:depth,showHidden,truncate:config.truncateThreshold?config.truncateThreshold:1/0};return inspect(obj,options)}__name(inspect2,"inspect");function objDisplay(obj){var str=inspect2(obj),type32=Object.prototype.toString.call(obj);if(config.truncateThreshold&&str.length>=config.truncateThreshold){if(type32==="[object Function]")return!obj.name||obj.name===""?"[Function]":"[Function: "+obj.name+"]";if(type32==="[object Array]")return"[ Array("+obj.length+") ]";if(type32==="[object Object]"){var keys2=Object.keys(obj),kstr=keys2.length>2?keys2.splice(0,2).join(", ")+", ...":keys2.join(", ");return"{ Object ("+kstr+") }"}else return str}else return str}__name(objDisplay,"objDisplay");function getMessage2(obj,args){var negate=flag(obj,"negate"),val=flag(obj,"object"),expected=args[3],actual=getActual(obj,args),msg=negate?args[2]:args[1],flagMsg=flag(obj,"message");return typeof msg=="function"&&(msg=msg()),msg=msg||"",msg=msg.replace(/#\{this\}/g,function(){return objDisplay(val)}).replace(/#\{act\}/g,function(){return objDisplay(actual)}).replace(/#\{exp\}/g,function(){return objDisplay(expected)}),flagMsg?flagMsg+": "+msg:msg}__name(getMessage2,"getMessage");function transferFlags(assertion,object,includeAll){var flags=assertion.__flags||(assertion.__flags=Object.create(null));object.__flags||(object.__flags=Object.create(null)),includeAll=arguments.length===3?includeAll:!0;for(var flag3 in flags)(includeAll||flag3!=="object"&&flag3!=="ssfi"&&flag3!=="lockSsfi"&&flag3!="message")&&(object.__flags[flag3]=flags[flag3])}__name(transferFlags,"transferFlags");function type2(obj){if(typeof obj>"u")return"undefined";if(obj===null)return"null";let stringTag=obj[Symbol.toStringTag];return typeof stringTag=="string"?stringTag:Object.prototype.toString.call(obj).slice(8,-1)}__name(type2,"type");function FakeMap(){this._key="chai/deep-eql__"+Math.random()+Date.now()}__name(FakeMap,"FakeMap");FakeMap.prototype={get:__name(function(key){return key[this._key]},"get"),set:__name(function(key,value){Object.isExtensible(key)&&Object.defineProperty(key,this._key,{value,configurable:!0})},"set")};var MemoizeMap=typeof WeakMap=="function"?WeakMap:FakeMap;function memoizeCompare(leftHandOperand,rightHandOperand,memoizeMap){if(!memoizeMap||isPrimitive(leftHandOperand)||isPrimitive(rightHandOperand))return null;var leftHandMap=memoizeMap.get(leftHandOperand);if(leftHandMap){var result=leftHandMap.get(rightHandOperand);if(typeof result=="boolean")return result}return null}__name(memoizeCompare,"memoizeCompare");function memoizeSet(leftHandOperand,rightHandOperand,memoizeMap,result){if(!(!memoizeMap||isPrimitive(leftHandOperand)||isPrimitive(rightHandOperand))){var leftHandMap=memoizeMap.get(leftHandOperand);leftHandMap?leftHandMap.set(rightHandOperand,result):(leftHandMap=new MemoizeMap,leftHandMap.set(rightHandOperand,result),memoizeMap.set(leftHandOperand,leftHandMap))}}__name(memoizeSet,"memoizeSet");var deep_eql_default=deepEqual;function deepEqual(leftHandOperand,rightHandOperand,options){if(options&&options.comparator)return extensiveDeepEqual(leftHandOperand,rightHandOperand,options);var simpleResult=simpleEqual(leftHandOperand,rightHandOperand);return simpleResult!==null?simpleResult:extensiveDeepEqual(leftHandOperand,rightHandOperand,options)}__name(deepEqual,"deepEqual");function simpleEqual(leftHandOperand,rightHandOperand){return leftHandOperand===rightHandOperand?leftHandOperand!==0||1/leftHandOperand===1/rightHandOperand:leftHandOperand!==leftHandOperand&&rightHandOperand!==rightHandOperand?!0:isPrimitive(leftHandOperand)||isPrimitive(rightHandOperand)?!1:null}__name(simpleEqual,"simpleEqual");function extensiveDeepEqual(leftHandOperand,rightHandOperand,options){options=options||{},options.memoize=options.memoize===!1?!1:options.memoize||new MemoizeMap;var comparator=options&&options.comparator,memoizeResultLeft=memoizeCompare(leftHandOperand,rightHandOperand,options.memoize);if(memoizeResultLeft!==null)return memoizeResultLeft;var memoizeResultRight=memoizeCompare(rightHandOperand,leftHandOperand,options.memoize);if(memoizeResultRight!==null)return memoizeResultRight;if(comparator){var comparatorResult=comparator(leftHandOperand,rightHandOperand);if(comparatorResult===!1||comparatorResult===!0)return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,comparatorResult),comparatorResult;var simpleResult=simpleEqual(leftHandOperand,rightHandOperand);if(simpleResult!==null)return simpleResult}var leftHandType=type2(leftHandOperand);if(leftHandType!==type2(rightHandOperand))return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,!1),!1;memoizeSet(leftHandOperand,rightHandOperand,options.memoize,!0);var result=extensiveDeepEqualByType(leftHandOperand,rightHandOperand,leftHandType,options);return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,result),result}__name(extensiveDeepEqual,"extensiveDeepEqual");function extensiveDeepEqualByType(leftHandOperand,rightHandOperand,leftHandType,options){switch(leftHandType){case"String":case"Number":case"Boolean":case"Date":return deepEqual(leftHandOperand.valueOf(),rightHandOperand.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return leftHandOperand===rightHandOperand;case"Error":return keysEqual(leftHandOperand,rightHandOperand,["name","message","code"],options);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return iterableEqual(leftHandOperand,rightHandOperand,options);case"RegExp":return regexpEqual(leftHandOperand,rightHandOperand);case"Generator":return generatorEqual(leftHandOperand,rightHandOperand,options);case"DataView":return iterableEqual(new Uint8Array(leftHandOperand.buffer),new Uint8Array(rightHandOperand.buffer),options);case"ArrayBuffer":return iterableEqual(new Uint8Array(leftHandOperand),new Uint8Array(rightHandOperand),options);case"Set":return entriesEqual(leftHandOperand,rightHandOperand,options);case"Map":return entriesEqual(leftHandOperand,rightHandOperand,options);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return leftHandOperand.equals(rightHandOperand);case"Temporal.Duration":return leftHandOperand.total("nanoseconds")===rightHandOperand.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return leftHandOperand.toString()===rightHandOperand.toString();default:return objectEqual(leftHandOperand,rightHandOperand,options)}}__name(extensiveDeepEqualByType,"extensiveDeepEqualByType");function regexpEqual(leftHandOperand,rightHandOperand){return leftHandOperand.toString()===rightHandOperand.toString()}__name(regexpEqual,"regexpEqual");function entriesEqual(leftHandOperand,rightHandOperand,options){try{if(leftHandOperand.size!==rightHandOperand.size)return!1;if(leftHandOperand.size===0)return!0}catch{return!1}var leftHandItems=[],rightHandItems=[];return leftHandOperand.forEach(__name(function(key,value){leftHandItems.push([key,value])},"gatherEntries")),rightHandOperand.forEach(__name(function(key,value){rightHandItems.push([key,value])},"gatherEntries")),iterableEqual(leftHandItems.sort(),rightHandItems.sort(),options)}__name(entriesEqual,"entriesEqual");function iterableEqual(leftHandOperand,rightHandOperand,options){var length=leftHandOperand.length;if(length!==rightHandOperand.length)return!1;if(length===0)return!0;for(var index=-1;++index<length;)if(deepEqual(leftHandOperand[index],rightHandOperand[index],options)===!1)return!1;return!0}__name(iterableEqual,"iterableEqual");function generatorEqual(leftHandOperand,rightHandOperand,options){return iterableEqual(getGeneratorEntries(leftHandOperand),getGeneratorEntries(rightHandOperand),options)}__name(generatorEqual,"generatorEqual");function hasIteratorFunction(target){return typeof Symbol<"u"&&typeof target=="object"&&typeof Symbol.iterator<"u"&&typeof target[Symbol.iterator]=="function"}__name(hasIteratorFunction,"hasIteratorFunction");function getIteratorEntries(target){if(hasIteratorFunction(target))try{return getGeneratorEntries(target[Symbol.iterator]())}catch{return[]}return[]}__name(getIteratorEntries,"getIteratorEntries");function getGeneratorEntries(generator){for(var generatorResult=generator.next(),accumulator=[generatorResult.value];generatorResult.done===!1;)generatorResult=generator.next(),accumulator.push(generatorResult.value);return accumulator}__name(getGeneratorEntries,"getGeneratorEntries");function getEnumerableKeys(target){var keys2=[];for(var key in target)keys2.push(key);return keys2}__name(getEnumerableKeys,"getEnumerableKeys");function getEnumerableSymbols(target){for(var keys2=[],allKeys=Object.getOwnPropertySymbols(target),i=0;i<allKeys.length;i+=1){var key=allKeys[i];Object.getOwnPropertyDescriptor(target,key).enumerable&&keys2.push(key)}return keys2}__name(getEnumerableSymbols,"getEnumerableSymbols");function keysEqual(leftHandOperand,rightHandOperand,keys2,options){var length=keys2.length;if(length===0)return!0;for(var i=0;i<length;i+=1)if(deepEqual(leftHandOperand[keys2[i]],rightHandOperand[keys2[i]],options)===!1)return!1;return!0}__name(keysEqual,"keysEqual");function objectEqual(leftHandOperand,rightHandOperand,options){var leftHandKeys=getEnumerableKeys(leftHandOperand),rightHandKeys=getEnumerableKeys(rightHandOperand),leftHandSymbols=getEnumerableSymbols(leftHandOperand),rightHandSymbols=getEnumerableSymbols(rightHandOperand);if(leftHandKeys=leftHandKeys.concat(leftHandSymbols),rightHandKeys=rightHandKeys.concat(rightHandSymbols),leftHandKeys.length&&leftHandKeys.length===rightHandKeys.length)return iterableEqual(mapSymbols(leftHandKeys).sort(),mapSymbols(rightHandKeys).sort())===!1?!1:keysEqual(leftHandOperand,rightHandOperand,leftHandKeys,options);var leftHandEntries=getIteratorEntries(leftHandOperand),rightHandEntries=getIteratorEntries(rightHandOperand);return leftHandEntries.length&&leftHandEntries.length===rightHandEntries.length?(leftHandEntries.sort(),rightHandEntries.sort(),iterableEqual(leftHandEntries,rightHandEntries,options)):leftHandKeys.length===0&&leftHandEntries.length===0&&rightHandKeys.length===0&&rightHandEntries.length===0}__name(objectEqual,"objectEqual");function isPrimitive(value){return value===null||typeof value!="object"}__name(isPrimitive,"isPrimitive");function mapSymbols(arr){return arr.map(__name(function(entry){return typeof entry=="symbol"?entry.toString():entry},"mapSymbol"))}__name(mapSymbols,"mapSymbols");function hasProperty(obj,name){return typeof obj>"u"||obj===null?!1:name in Object(obj)}__name(hasProperty,"hasProperty");function parsePath(path){return path.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(value=>{if(value==="constructor"||value==="__proto__"||value==="prototype")return{};let mArr=/^\[(\d+)\]$/.exec(value),parsed=null;return mArr?parsed={i:parseFloat(mArr[1])}:parsed={p:value.replace(/\\([.[\]])/g,"$1")},parsed})}__name(parsePath,"parsePath");function internalGetPathValue(obj,parsed,pathDepth){let temporaryValue=obj,res=null;pathDepth=typeof pathDepth>"u"?parsed.length:pathDepth;for(let i=0;i<pathDepth;i++){let part=parsed[i];temporaryValue&&(typeof part.p>"u"?temporaryValue=temporaryValue[part.i]:temporaryValue=temporaryValue[part.p],i===pathDepth-1&&(res=temporaryValue))}return res}__name(internalGetPathValue,"internalGetPathValue");function getPathInfo(obj,path){let parsed=parsePath(path),last=parsed[parsed.length-1],info={parent:parsed.length>1?internalGetPathValue(obj,parsed,parsed.length-1):obj,name:last.p||last.i,value:internalGetPathValue(obj,parsed)};return info.exists=hasProperty(info.parent,info.name),info}__name(getPathInfo,"getPathInfo");function Assertion(obj,msg,ssfi,lockSsfi){return flag(this,"ssfi",ssfi||Assertion),flag(this,"lockSsfi",lockSsfi),flag(this,"object",obj),flag(this,"message",msg),flag(this,"eql",config.deepEqual||deep_eql_default),proxify(this)}__name(Assertion,"Assertion");Object.defineProperty(Assertion,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),config.includeStack},set:function(value){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),config.includeStack=value}});Object.defineProperty(Assertion,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),config.showDiff},set:function(value){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),config.showDiff=value}});Assertion.addProperty=function(name,fn3){addProperty(this.prototype,name,fn3)};Assertion.addMethod=function(name,fn3){addMethod(this.prototype,name,fn3)};Assertion.addChainableMethod=function(name,fn3,chainingBehavior){addChainableMethod(this.prototype,name,fn3,chainingBehavior)};Assertion.overwriteProperty=function(name,fn3){overwriteProperty(this.prototype,name,fn3)};Assertion.overwriteMethod=function(name,fn3){overwriteMethod(this.prototype,name,fn3)};Assertion.overwriteChainableMethod=function(name,fn3,chainingBehavior){overwriteChainableMethod(this.prototype,name,fn3,chainingBehavior)};Assertion.prototype.assert=function(expr,msg,negateMsg,expected,_actual,showDiff){var ok=test(this,arguments);if(showDiff!==!1&&(showDiff=!0),expected===void 0&&_actual===void 0&&(showDiff=!1),config.showDiff!==!0&&(showDiff=!1),!ok){msg=getMessage2(this,arguments);var actual=getActual(this,arguments),assertionErrorObjectProperties={actual,expected,showDiff},operator=getOperator(this,arguments);throw operator&&(assertionErrorObjectProperties.operator=operator),new AssertionError(msg,assertionErrorObjectProperties,config.includeStack?this.assert:flag(this,"ssfi"))}};Object.defineProperty(Assertion.prototype,"_obj",{get:function(){return flag(this,"object")},set:function(val){flag(this,"object",val)}});function isProxyEnabled(){return config.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}__name(isProxyEnabled,"isProxyEnabled");function addProperty(ctx,name,getter){getter=getter===void 0?function(){}:getter,Object.defineProperty(ctx,name,{get:__name(function propertyGetter(){!isProxyEnabled()&&!flag(this,"lockSsfi")&&flag(this,"ssfi",propertyGetter);var result=getter.call(this);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"propertyGetter"),configurable:!0})}__name(addProperty,"addProperty");var fnLengthDesc=Object.getOwnPropertyDescriptor(function(){},"length");function addLengthGuard(fn3,assertionName,isChainable){return fnLengthDesc.configurable&&Object.defineProperty(fn3,"length",{get:function(){throw Error(isChainable?"Invalid Chai property: "+assertionName+'.length. Due to a compatibility issue, "length" cannot directly follow "'+assertionName+'". Use "'+assertionName+'.lengthOf" instead.':"Invalid Chai property: "+assertionName+'.length. See docs for proper usage of "'+assertionName+'".')}}),fn3}__name(addLengthGuard,"addLengthGuard");function getProperties(object){var result=Object.getOwnPropertyNames(object);function addProperty2(property){result.indexOf(property)===-1&&result.push(property)}__name(addProperty2,"addProperty");for(var proto=Object.getPrototypeOf(object);proto!==null;)Object.getOwnPropertyNames(proto).forEach(addProperty2),proto=Object.getPrototypeOf(proto);return result}__name(getProperties,"getProperties");var builtins=["__flags","__methods","_obj","assert"];function proxify(obj,nonChainableMethodName){return isProxyEnabled()?new Proxy(obj,{get:__name(function proxyGetter(target,property){if(typeof property=="string"&&config.proxyExcludedKeys.indexOf(property)===-1&&!Reflect.has(target,property)){if(nonChainableMethodName)throw Error("Invalid Chai property: "+nonChainableMethodName+"."+property+'. See docs for proper usage of "'+nonChainableMethodName+'".');var suggestion=null,suggestionDistance=4;throw getProperties(target).forEach(function(prop){if(!Object.prototype.hasOwnProperty(prop)&&builtins.indexOf(prop)===-1){var dist=stringDistanceCapped(property,prop,suggestionDistance);dist<suggestionDistance&&(suggestion=prop,suggestionDistance=dist)}}),Error(suggestion!==null?"Invalid Chai property: "+property+'. Did you mean "'+suggestion+'"?':"Invalid Chai property: "+property)}return builtins.indexOf(property)===-1&&!flag(target,"lockSsfi")&&flag(target,"ssfi",proxyGetter),Reflect.get(target,property)},"proxyGetter")}):obj}__name(proxify,"proxify");function stringDistanceCapped(strA,strB,cap){if(Math.abs(strA.length-strB.length)>=cap)return cap;for(var memo=[],i=0;i<=strA.length;i++)memo[i]=Array(strB.length+1).fill(0),memo[i][0]=i;for(var j=0;j<strB.length;j++)memo[0][j]=j;for(var i=1;i<=strA.length;i++)for(var ch=strA.charCodeAt(i-1),j=1;j<=strB.length;j++){if(Math.abs(i-j)>=cap){memo[i][j]=cap;continue}memo[i][j]=Math.min(memo[i-1][j]+1,memo[i][j-1]+1,memo[i-1][j-1]+(ch===strB.charCodeAt(j-1)?0:1))}return memo[strA.length][strB.length]}__name(stringDistanceCapped,"stringDistanceCapped");function addMethod(ctx,name,method){var methodWrapper=__name(function(){flag(this,"lockSsfi")||flag(this,"ssfi",methodWrapper);var result=method.apply(this,arguments);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"methodWrapper");addLengthGuard(methodWrapper,name,!1),ctx[name]=proxify(methodWrapper,name)}__name(addMethod,"addMethod");function overwriteProperty(ctx,name,getter){var _get=Object.getOwnPropertyDescriptor(ctx,name),_super=__name(function(){},"_super");_get&&typeof _get.get=="function"&&(_super=_get.get),Object.defineProperty(ctx,name,{get:__name(function overwritingPropertyGetter(){!isProxyEnabled()&&!flag(this,"lockSsfi")&&flag(this,"ssfi",overwritingPropertyGetter);var origLockSsfi=flag(this,"lockSsfi");flag(this,"lockSsfi",!0);var result=getter(_super).call(this);if(flag(this,"lockSsfi",origLockSsfi),result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"overwritingPropertyGetter"),configurable:!0})}__name(overwriteProperty,"overwriteProperty");function overwriteMethod(ctx,name,method){var _method=ctx[name],_super=__name(function(){throw new Error(name+" is not a function")},"_super");_method&&typeof _method=="function"&&(_super=_method);var overwritingMethodWrapper=__name(function(){flag(this,"lockSsfi")||flag(this,"ssfi",overwritingMethodWrapper);var origLockSsfi=flag(this,"lockSsfi");flag(this,"lockSsfi",!0);var result=method(_super).apply(this,arguments);if(flag(this,"lockSsfi",origLockSsfi),result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"overwritingMethodWrapper");addLengthGuard(overwritingMethodWrapper,name,!1),ctx[name]=proxify(overwritingMethodWrapper,name)}__name(overwriteMethod,"overwriteMethod");var canSetPrototype=typeof Object.setPrototypeOf=="function",testFn=__name(function(){},"testFn"),excludeNames=Object.getOwnPropertyNames(testFn).filter(function(name){var propDesc=Object.getOwnPropertyDescriptor(testFn,name);return typeof propDesc!="object"?!0:!propDesc.configurable}),call=Function.prototype.call,apply=Function.prototype.apply;function addChainableMethod(ctx,name,method,chainingBehavior){typeof chainingBehavior!="function"&&(chainingBehavior=__name(function(){},"chainingBehavior"));var chainableBehavior={method,chainingBehavior};ctx.__methods||(ctx.__methods={}),ctx.__methods[name]=chainableBehavior,Object.defineProperty(ctx,name,{get:__name(function(){chainableBehavior.chainingBehavior.call(this);var chainableMethodWrapper=__name(function(){flag(this,"lockSsfi")||flag(this,"ssfi",chainableMethodWrapper);var result=chainableBehavior.method.apply(this,arguments);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"chainableMethodWrapper");if(addLengthGuard(chainableMethodWrapper,name,!0),canSetPrototype){var prototype=Object.create(this);prototype.call=call,prototype.apply=apply,Object.setPrototypeOf(chainableMethodWrapper,prototype)}else{var asserterNames=Object.getOwnPropertyNames(ctx);asserterNames.forEach(function(asserterName){if(excludeNames.indexOf(asserterName)===-1){var pd=Object.getOwnPropertyDescriptor(ctx,asserterName);Object.defineProperty(chainableMethodWrapper,asserterName,pd)}})}return transferFlags(this,chainableMethodWrapper),proxify(chainableMethodWrapper)},"chainableMethodGetter"),configurable:!0})}__name(addChainableMethod,"addChainableMethod");function overwriteChainableMethod(ctx,name,method,chainingBehavior){var chainableBehavior=ctx.__methods[name],_chainingBehavior=chainableBehavior.chainingBehavior;chainableBehavior.chainingBehavior=__name(function(){var result=chainingBehavior(_chainingBehavior).call(this);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"overwritingChainableMethodGetter");var _method=chainableBehavior.method;chainableBehavior.method=__name(function(){var result=method(_method).apply(this,arguments);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"overwritingChainableMethodWrapper")}__name(overwriteChainableMethod,"overwriteChainableMethod");function compareByInspect(a2,b){return inspect2(a2)<inspect2(b)?-1:1}__name(compareByInspect,"compareByInspect");function getOwnEnumerablePropertySymbols(obj){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(obj).filter(function(sym){return Object.getOwnPropertyDescriptor(obj,sym).enumerable})}__name(getOwnEnumerablePropertySymbols,"getOwnEnumerablePropertySymbols");function getOwnEnumerableProperties(obj){return Object.keys(obj).concat(getOwnEnumerablePropertySymbols(obj))}__name(getOwnEnumerableProperties,"getOwnEnumerableProperties");function _isNaN(value){return value!==value}__name(_isNaN,"_isNaN");var isNaN22=Number.isNaN||_isNaN;function isObjectType(obj){var objectType=type(obj),objectTypes=["Array","Object","Function"];return objectTypes.indexOf(objectType)!==-1}__name(isObjectType,"isObjectType");function getOperator(obj,args){var operator=flag(obj,"operator"),negate=flag(obj,"negate"),expected=args[3],msg=negate?args[2]:args[1];if(operator)return operator;if(typeof msg=="function"&&(msg=msg()),msg=msg||"",!!msg&&!/\shave\s/.test(msg)){var isObject2=isObjectType(expected);return/\snot\s/.test(msg)?isObject2?"notDeepStrictEqual":"notStrictEqual":isObject2?"deepStrictEqual":"strictEqual"}}__name(getOperator,"getOperator");function getName(fn3){return fn3.name}__name(getName,"getName");function isRegExp2(obj){return Object.prototype.toString.call(obj)==="[object RegExp]"}__name(isRegExp2,"isRegExp");function isNumeric(obj){return["Number","BigInt"].includes(type(obj))}__name(isNumeric,"isNumeric");var{flag:flag2}=utils_exports;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(chain){Assertion.addProperty(chain)});Assertion.addProperty("not",function(){flag2(this,"negate",!0)});Assertion.addProperty("deep",function(){flag2(this,"deep",!0)});Assertion.addProperty("nested",function(){flag2(this,"nested",!0)});Assertion.addProperty("own",function(){flag2(this,"own",!0)});Assertion.addProperty("ordered",function(){flag2(this,"ordered",!0)});Assertion.addProperty("any",function(){flag2(this,"any",!0),flag2(this,"all",!1)});Assertion.addProperty("all",function(){flag2(this,"all",!0),flag2(this,"any",!1)});var functionTypes={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function an(type32,msg){msg&&flag2(this,"message",msg),type32=type32.toLowerCase();var obj=flag2(this,"object"),article=~["a","e","i","o","u"].indexOf(type32.charAt(0))?"an ":"a ";let detectedType=type(obj).toLowerCase();functionTypes.function.includes(type32)?this.assert(functionTypes[type32].includes(detectedType),"expected #{this} to be "+article+type32,"expected #{this} not to be "+article+type32):this.assert(type32===detectedType,"expected #{this} to be "+article+type32,"expected #{this} not to be "+article+type32)}__name(an,"an");Assertion.addChainableMethod("an",an);Assertion.addChainableMethod("a",an);function SameValueZero(a2,b){return isNaN22(a2)&&isNaN22(b)||a2===b}__name(SameValueZero,"SameValueZero");function includeChainingBehavior(){flag2(this,"contains",!0)}__name(includeChainingBehavior,"includeChainingBehavior");function include(val,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),objType=type(obj).toLowerCase(),flagMsg=flag2(this,"message"),negate=flag2(this,"negate"),ssfi=flag2(this,"ssfi"),isDeep=flag2(this,"deep"),descriptor=isDeep?"deep ":"",isEql=isDeep?flag2(this,"eql"):SameValueZero;flagMsg=flagMsg?flagMsg+": ":"";var included=!1;switch(objType){case"string":included=obj.indexOf(val)!==-1;break;case"weakset":if(isDeep)throw new AssertionError(flagMsg+"unable to use .deep.include with WeakSet",void 0,ssfi);included=obj.has(val);break;case"map":obj.forEach(function(item){included=included||isEql(item,val)});break;case"set":isDeep?obj.forEach(function(item){included=included||isEql(item,val)}):included=obj.has(val);break;case"array":isDeep?included=obj.some(function(item){return isEql(item,val)}):included=obj.indexOf(val)!==-1;break;default:if(val!==Object(val))throw new AssertionError(flagMsg+"the given combination of arguments ("+objType+" and "+type(val).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+type(val).toLowerCase(),void 0,ssfi);var props=Object.keys(val),firstErr=null,numErrs=0;if(props.forEach(function(prop){var propAssertion=new Assertion(obj);if(transferFlags(this,propAssertion,!0),flag2(propAssertion,"lockSsfi",!0),!negate||props.length===1){propAssertion.property(prop,val[prop]);return}try{propAssertion.property(prop,val[prop])}catch(err){if(!check_error_exports.compatibleConstructor(err,AssertionError))throw err;firstErr===null&&(firstErr=err),numErrs++}},this),negate&&props.length>1&&numErrs===props.length)throw firstErr;return}this.assert(included,"expected #{this} to "+descriptor+"include "+inspect2(val),"expected #{this} to not "+descriptor+"include "+inspect2(val))}__name(include,"include");Assertion.addChainableMethod("include",include,includeChainingBehavior);Assertion.addChainableMethod("contain",include,includeChainingBehavior);Assertion.addChainableMethod("contains",include,includeChainingBehavior);Assertion.addChainableMethod("includes",include,includeChainingBehavior);Assertion.addProperty("ok",function(){this.assert(flag2(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});Assertion.addProperty("true",function(){this.assert(flag2(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!flag2(this,"negate"))});Assertion.addProperty("numeric",function(){let object=flag2(this,"object");this.assert(["Number","BigInt"].includes(type(object)),"expected #{this} to be numeric","expected #{this} to not be numeric",!flag2(this,"negate"))});Assertion.addProperty("callable",function(){let val=flag2(this,"object"),ssfi=flag2(this,"ssfi"),message=flag2(this,"message"),msg=message?`${message}: `:"",negate=flag2(this,"negate"),assertionMessage=negate?`${msg}expected ${inspect2(val)} not to be a callable function`:`${msg}expected ${inspect2(val)} to be a callable function`,isCallable3=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(type(val));if(isCallable3&&negate||!isCallable3&&!negate)throw new AssertionError(assertionMessage,void 0,ssfi)});Assertion.addProperty("false",function(){this.assert(flag2(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!flag2(this,"negate"))});Assertion.addProperty("null",function(){this.assert(flag2(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});Assertion.addProperty("undefined",function(){this.assert(flag2(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});Assertion.addProperty("NaN",function(){this.assert(isNaN22(flag2(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function assertExist(){var val=flag2(this,"object");this.assert(val!=null,"expected #{this} to exist","expected #{this} to not exist")}__name(assertExist,"assertExist");Assertion.addProperty("exist",assertExist);Assertion.addProperty("exists",assertExist);Assertion.addProperty("empty",function(){var val=flag2(this,"object"),ssfi=flag2(this,"ssfi"),flagMsg=flag2(this,"message"),itemsCount;switch(flagMsg=flagMsg?flagMsg+": ":"",type(val).toLowerCase()){case"array":case"string":itemsCount=val.length;break;case"map":case"set":itemsCount=val.size;break;case"weakmap":case"weakset":throw new AssertionError(flagMsg+".empty was passed a weak collection",void 0,ssfi);case"function":var msg=flagMsg+".empty was passed a function "+getName(val);throw new AssertionError(msg.trim(),void 0,ssfi);default:if(val!==Object(val))throw new AssertionError(flagMsg+".empty was passed non-string primitive "+inspect2(val),void 0,ssfi);itemsCount=Object.keys(val).length}this.assert(itemsCount===0,"expected #{this} to be empty","expected #{this} not to be empty")});function checkArguments(){var obj=flag2(this,"object"),type32=type(obj);this.assert(type32==="Arguments","expected #{this} to be arguments but got "+type32,"expected #{this} to not be arguments")}__name(checkArguments,"checkArguments");Assertion.addProperty("arguments",checkArguments);Assertion.addProperty("Arguments",checkArguments);function assertEqual(val,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");if(flag2(this,"deep")){var prevLockSsfi=flag2(this,"lockSsfi");flag2(this,"lockSsfi",!0),this.eql(val),flag2(this,"lockSsfi",prevLockSsfi)}else this.assert(val===obj,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",val,this._obj,!0)}__name(assertEqual,"assertEqual");Assertion.addMethod("equal",assertEqual);Assertion.addMethod("equals",assertEqual);Assertion.addMethod("eq",assertEqual);function assertEql(obj,msg){msg&&flag2(this,"message",msg);var eql=flag2(this,"eql");this.assert(eql(obj,flag2(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",obj,this._obj,!0)}__name(assertEql,"assertEql");Assertion.addMethod("eql",assertEql);Assertion.addMethod("eqls",assertEql);function assertAbove(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase();if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&nType!=="date")throw new AssertionError(msgPrefix+"the argument to above must be a date",void 0,ssfi);if(!isNumeric(n)&&(doLength||isNumeric(obj)))throw new AssertionError(msgPrefix+"the argument to above must be a number",void 0,ssfi);if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;throw new AssertionError(msgPrefix+"expected "+printObj+" to be a number or a date",void 0,ssfi)}if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>n,"expected #{this} to have a "+descriptor+" above #{exp} but got #{act}","expected #{this} to not have a "+descriptor+" above #{exp}",n,itemsCount)}else this.assert(obj>n,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",n)}__name(assertAbove,"assertAbove");Assertion.addMethod("above",assertAbove);Assertion.addMethod("gt",assertAbove);Assertion.addMethod("greaterThan",assertAbove);function assertLeast(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),errorMessage,shouldThrow=!0;if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&nType!=="date")errorMessage=msgPrefix+"the argument to least must be a date";else if(!isNumeric(n)&&(doLength||isNumeric(obj)))errorMessage=msgPrefix+"the argument to least must be a number";else if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;errorMessage=msgPrefix+"expected "+printObj+" to be a number or a date"}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>=n,"expected #{this} to have a "+descriptor+" at least #{exp} but got #{act}","expected #{this} to have a "+descriptor+" below #{exp}",n,itemsCount)}else this.assert(obj>=n,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",n)}__name(assertLeast,"assertLeast");Assertion.addMethod("least",assertLeast);Assertion.addMethod("gte",assertLeast);Assertion.addMethod("greaterThanOrEqual",assertLeast);function assertBelow(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),errorMessage,shouldThrow=!0;if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&nType!=="date")errorMessage=msgPrefix+"the argument to below must be a date";else if(!isNumeric(n)&&(doLength||isNumeric(obj)))errorMessage=msgPrefix+"the argument to below must be a number";else if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;errorMessage=msgPrefix+"expected "+printObj+" to be a number or a date"}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount<n,"expected #{this} to have a "+descriptor+" below #{exp} but got #{act}","expected #{this} to not have a "+descriptor+" below #{exp}",n,itemsCount)}else this.assert(obj<n,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",n)}__name(assertBelow,"assertBelow");Assertion.addMethod("below",assertBelow);Assertion.addMethod("lt",assertBelow);Assertion.addMethod("lessThan",assertBelow);function assertMost(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),errorMessage,shouldThrow=!0;if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&nType!=="date")errorMessage=msgPrefix+"the argument to most must be a date";else if(!isNumeric(n)&&(doLength||isNumeric(obj)))errorMessage=msgPrefix+"the argument to most must be a number";else if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;errorMessage=msgPrefix+"expected "+printObj+" to be a number or a date"}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount<=n,"expected #{this} to have a "+descriptor+" at most #{exp} but got #{act}","expected #{this} to have a "+descriptor+" above #{exp}",n,itemsCount)}else this.assert(obj<=n,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",n)}__name(assertMost,"assertMost");Assertion.addMethod("most",assertMost);Assertion.addMethod("lte",assertMost);Assertion.addMethod("lessThanOrEqual",assertMost);Assertion.addMethod("within",function(start,finish,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),startType=type(start).toLowerCase(),finishType=type(finish).toLowerCase(),errorMessage,shouldThrow=!0,range=startType==="date"&&finishType==="date"?start.toISOString()+".."+finish.toISOString():start+".."+finish;if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&(startType!=="date"||finishType!=="date"))errorMessage=msgPrefix+"the arguments to within must be dates";else if((!isNumeric(start)||!isNumeric(finish))&&(doLength||isNumeric(obj)))errorMessage=msgPrefix+"the arguments to within must be numbers";else if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;errorMessage=msgPrefix+"expected "+printObj+" to be a number or a date"}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>=start&&itemsCount<=finish,"expected #{this} to have a "+descriptor+" within "+range,"expected #{this} to not have a "+descriptor+" within "+range)}else this.assert(obj>=start&&obj<=finish,"expected #{this} to be within "+range,"expected #{this} to not be within "+range)});function assertInstanceOf(constructor,msg){msg&&flag2(this,"message",msg);var target=flag2(this,"object"),ssfi=flag2(this,"ssfi"),flagMsg=flag2(this,"message");try{var isInstanceOf=target instanceof constructor}catch(err){throw err instanceof TypeError?(flagMsg=flagMsg?flagMsg+": ":"",new AssertionError(flagMsg+"The instanceof assertion needs a constructor but "+type(constructor)+" was given.",void 0,ssfi)):err}var name=getName(constructor);name==null&&(name="an unnamed constructor"),this.assert(isInstanceOf,"expected #{this} to be an instance of "+name,"expected #{this} to not be an instance of "+name)}__name(assertInstanceOf,"assertInstanceOf");Assertion.addMethod("instanceof",assertInstanceOf);Assertion.addMethod("instanceOf",assertInstanceOf);function assertProperty(name,val,msg){msg&&flag2(this,"message",msg);var isNested=flag2(this,"nested"),isOwn=flag2(this,"own"),flagMsg=flag2(this,"message"),obj=flag2(this,"object"),ssfi=flag2(this,"ssfi"),nameType=typeof name;if(flagMsg=flagMsg?flagMsg+": ":"",isNested){if(nameType!=="string")throw new AssertionError(flagMsg+"the argument to property must be a string when using nested syntax",void 0,ssfi)}else if(nameType!=="string"&&nameType!=="number"&&nameType!=="symbol")throw new AssertionError(flagMsg+"the argument to property must be a string, number, or symbol",void 0,ssfi);if(isNested&&isOwn)throw new AssertionError(flagMsg+'The "nested" and "own" flags cannot be combined.',void 0,ssfi);if(obj==null)throw new AssertionError(flagMsg+"Target cannot be null or undefined.",void 0,ssfi);var isDeep=flag2(this,"deep"),negate=flag2(this,"negate"),pathInfo=isNested?getPathInfo(obj,name):null,value=isNested?pathInfo.value:obj[name],isEql=isDeep?flag2(this,"eql"):(val1,val2)=>val1===val2,descriptor="";isDeep&&(descriptor+="deep "),isOwn&&(descriptor+="own "),isNested&&(descriptor+="nested "),descriptor+="property ";var hasProperty2;isOwn?hasProperty2=Object.prototype.hasOwnProperty.call(obj,name):isNested?hasProperty2=pathInfo.exists:hasProperty2=hasProperty(obj,name),(!negate||arguments.length===1)&&this.assert(hasProperty2,"expected #{this} to have "+descriptor+inspect2(name),"expected #{this} to not have "+descriptor+inspect2(name)),arguments.length>1&&this.assert(hasProperty2&&isEql(val,value),"expected #{this} to have "+descriptor+inspect2(name)+" of #{exp}, but got #{act}","expected #{this} to not have "+descriptor+inspect2(name)+" of #{act}",val,value),flag2(this,"object",value)}__name(assertProperty,"assertProperty");Assertion.addMethod("property",assertProperty);function assertOwnProperty(name,value,msg){flag2(this,"own",!0),assertProperty.apply(this,arguments)}__name(assertOwnProperty,"assertOwnProperty");Assertion.addMethod("ownProperty",assertOwnProperty);Assertion.addMethod("haveOwnProperty",assertOwnProperty);function assertOwnPropertyDescriptor(name,descriptor,msg){typeof descriptor=="string"&&(msg=descriptor,descriptor=null),msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),actualDescriptor=Object.getOwnPropertyDescriptor(Object(obj),name),eql=flag2(this,"eql");actualDescriptor&&descriptor?this.assert(eql(descriptor,actualDescriptor),"expected the own property descriptor for "+inspect2(name)+" on #{this} to match "+inspect2(descriptor)+", got "+inspect2(actualDescriptor),"expected the own property descriptor for "+inspect2(name)+" on #{this} to not match "+inspect2(descriptor),descriptor,actualDescriptor,!0):this.assert(actualDescriptor,"expected #{this} to have an own property descriptor for "+inspect2(name),"expected #{this} to not have an own property descriptor for "+inspect2(name)),flag2(this,"object",actualDescriptor)}__name(assertOwnPropertyDescriptor,"assertOwnPropertyDescriptor");Assertion.addMethod("ownPropertyDescriptor",assertOwnPropertyDescriptor);Assertion.addMethod("haveOwnPropertyDescriptor",assertOwnPropertyDescriptor);function assertLengthChain(){flag2(this,"doLength",!0)}__name(assertLengthChain,"assertLengthChain");function assertLength(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),objType=type(obj).toLowerCase(),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi"),descriptor="length",itemsCount;switch(objType){case"map":case"set":descriptor="size",itemsCount=obj.size;break;default:new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),itemsCount=obj.length}this.assert(itemsCount==n,"expected #{this} to have a "+descriptor+" of #{exp} but got #{act}","expected #{this} to not have a "+descriptor+" of #{act}",n,itemsCount)}__name(assertLength,"assertLength");Assertion.addChainableMethod("length",assertLength,assertLengthChain);Assertion.addChainableMethod("lengthOf",assertLength,assertLengthChain);function assertMatch(re,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");this.assert(re.exec(obj),"expected #{this} to match "+re,"expected #{this} not to match "+re)}__name(assertMatch,"assertMatch");Assertion.addMethod("match",assertMatch);Assertion.addMethod("matches",assertMatch);Assertion.addMethod("string",function(str,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(obj,flagMsg,ssfi,!0).is.a("string"),this.assert(~obj.indexOf(str),"expected #{this} to contain "+inspect2(str),"expected #{this} to not contain "+inspect2(str))});function assertKeys(keys2){var obj=flag2(this,"object"),objType=type(obj),keysType=type(keys2),ssfi=flag2(this,"ssfi"),isDeep=flag2(this,"deep"),str,deepStr="",actual,ok=!0,flagMsg=flag2(this,"message");flagMsg=flagMsg?flagMsg+": ":"";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";if(objType==="Map"||objType==="Set")deepStr=isDeep?"deeply ":"",actual=[],obj.forEach(function(val,key){actual.push(key)}),keysType!=="Array"&&(keys2=Array.prototype.slice.call(arguments));else{switch(actual=getOwnEnumerableProperties(obj),keysType){case"Array":if(arguments.length>1)throw new AssertionError(mixedArgsMsg,void 0,ssfi);break;case"Object":if(arguments.length>1)throw new AssertionError(mixedArgsMsg,void 0,ssfi);keys2=Object.keys(keys2);break;default:keys2=Array.prototype.slice.call(arguments)}keys2=keys2.map(function(val){return typeof val=="symbol"?val:String(val)})}if(!keys2.length)throw new AssertionError(flagMsg+"keys required",void 0,ssfi);var len=keys2.length,any=flag2(this,"any"),all=flag2(this,"all"),expected=keys2,isEql=isDeep?flag2(this,"eql"):(val1,val2)=>val1===val2;if(!any&&!all&&(all=!0),any&&(ok=expected.some(function(expectedKey){return actual.some(function(actualKey){return isEql(expectedKey,actualKey)})})),all&&(ok=expected.every(function(expectedKey){return actual.some(function(actualKey){return isEql(expectedKey,actualKey)})}),flag2(this,"contains")||(ok=ok&&keys2.length==actual.length)),len>1){keys2=keys2.map(function(key){return inspect2(key)});var last=keys2.pop();all&&(str=keys2.join(", ")+", and "+last),any&&(str=keys2.join(", ")+", or "+last)}else str=inspect2(keys2[0]);str=(len>1?"keys ":"key ")+str,str=(flag2(this,"contains")?"contain ":"have ")+str,this.assert(ok,"expected #{this} to "+deepStr+str,"expected #{this} to not "+deepStr+str,expected.slice(0).sort(compareByInspect),actual.sort(compareByInspect),!0)}__name(assertKeys,"assertKeys");Assertion.addMethod("keys",assertKeys);Assertion.addMethod("key",assertKeys);function assertThrows(errorLike,errMsgMatcher,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),ssfi=flag2(this,"ssfi"),flagMsg=flag2(this,"message"),negate=flag2(this,"negate")||!1;new Assertion(obj,flagMsg,ssfi,!0).is.a("function"),(isRegExp2(errorLike)||typeof errorLike=="string")&&(errMsgMatcher=errorLike,errorLike=null);let caughtErr,errorWasThrown=!1;try{obj()}catch(err){errorWasThrown=!0,caughtErr=err}var everyArgIsUndefined=errorLike===void 0&&errMsgMatcher===void 0,everyArgIsDefined=!!(errorLike&&errMsgMatcher),errorLikeFail=!1,errMsgMatcherFail=!1;if(everyArgIsUndefined||!everyArgIsUndefined&&!negate){var errorLikeString="an error";errorLike instanceof Error?errorLikeString="#{exp}":errorLike&&(errorLikeString=check_error_exports.getConstructorName(errorLike));let actual=caughtErr;if(caughtErr instanceof Error)actual=caughtErr.toString();else if(typeof caughtErr=="string")actual=caughtErr;else if(caughtErr&&(typeof caughtErr=="object"||typeof caughtErr=="function"))try{actual=check_error_exports.getConstructorName(caughtErr)}catch{}this.assert(errorWasThrown,"expected #{this} to throw "+errorLikeString,"expected #{this} to not throw an error but #{act} was thrown",errorLike&&errorLike.toString(),actual)}if(errorLike&&caughtErr){if(errorLike instanceof Error){var isCompatibleInstance=check_error_exports.compatibleInstance(caughtErr,errorLike);isCompatibleInstance===negate&&(everyArgIsDefined&&negate?errorLikeFail=!0:this.assert(negate,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(caughtErr&&!negate?" but #{act} was thrown":""),errorLike.toString(),caughtErr.toString()))}var isCompatibleConstructor=check_error_exports.compatibleConstructor(caughtErr,errorLike);isCompatibleConstructor===negate&&(everyArgIsDefined&&negate?errorLikeFail=!0:this.assert(negate,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(caughtErr?" but #{act} was thrown":""),errorLike instanceof Error?errorLike.toString():errorLike&&check_error_exports.getConstructorName(errorLike),caughtErr instanceof Error?caughtErr.toString():caughtErr&&check_error_exports.getConstructorName(caughtErr)))}if(caughtErr&&errMsgMatcher!==void 0&&errMsgMatcher!==null){var placeholder="including";isRegExp2(errMsgMatcher)&&(placeholder="matching");var isCompatibleMessage=check_error_exports.compatibleMessage(caughtErr,errMsgMatcher);isCompatibleMessage===negate&&(everyArgIsDefined&&negate?errMsgMatcherFail=!0:this.assert(negate,"expected #{this} to throw error "+placeholder+" #{exp} but got #{act}","expected #{this} to throw error not "+placeholder+" #{exp}",errMsgMatcher,check_error_exports.getMessage(caughtErr)))}errorLikeFail&&errMsgMatcherFail&&this.assert(negate,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(caughtErr?" but #{act} was thrown":""),errorLike instanceof Error?errorLike.toString():errorLike&&check_error_exports.getConstructorName(errorLike),caughtErr instanceof Error?caughtErr.toString():caughtErr&&check_error_exports.getConstructorName(caughtErr)),flag2(this,"object",caughtErr)}__name(assertThrows,"assertThrows");Assertion.addMethod("throw",assertThrows);Assertion.addMethod("throws",assertThrows);Assertion.addMethod("Throw",assertThrows);function respondTo(method,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),itself=flag2(this,"itself"),context=typeof obj=="function"&&!itself?obj.prototype[method]:obj[method];this.assert(typeof context=="function","expected #{this} to respond to "+inspect2(method),"expected #{this} to not respond to "+inspect2(method))}__name(respondTo,"respondTo");Assertion.addMethod("respondTo",respondTo);Assertion.addMethod("respondsTo",respondTo);Assertion.addProperty("itself",function(){flag2(this,"itself",!0)});function satisfy(matcher,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),result=matcher(obj);this.assert(result,"expected #{this} to satisfy "+objDisplay(matcher),"expected #{this} to not satisfy"+objDisplay(matcher),!flag2(this,"negate"),result)}__name(satisfy,"satisfy");Assertion.addMethod("satisfy",satisfy);Assertion.addMethod("satisfies",satisfy);function closeTo(expected,delta,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(obj,flagMsg,ssfi,!0).is.numeric;let message="A `delta` value is required for `closeTo`";if(delta==null)throw new AssertionError(flagMsg?`${flagMsg}: ${message}`:message,void 0,ssfi);if(new Assertion(delta,flagMsg,ssfi,!0).is.numeric,message="A `expected` value is required for `closeTo`",expected==null)throw new AssertionError(flagMsg?`${flagMsg}: ${message}`:message,void 0,ssfi);new Assertion(expected,flagMsg,ssfi,!0).is.numeric;let abs=__name(x2=>x2<0n?-x2:x2,"abs");this.assert(abs(obj-expected)<=delta,"expected #{this} to be close to "+expected+" +/- "+delta,"expected #{this} not to be close to "+expected+" +/- "+delta)}__name(closeTo,"closeTo");Assertion.addMethod("closeTo",closeTo);Assertion.addMethod("approximately",closeTo);function isSubsetOf(_subset,_superset,cmp,contains,ordered){let superset=Array.from(_superset),subset=Array.from(_subset);if(!contains){if(subset.length!==superset.length)return!1;superset=superset.slice()}return subset.every(function(elem,idx){if(ordered)return cmp?cmp(elem,superset[idx]):elem===superset[idx];if(!cmp){var matchIdx=superset.indexOf(elem);return matchIdx===-1?!1:(contains||superset.splice(matchIdx,1),!0)}return superset.some(function(elem2,matchIdx2){return cmp(elem,elem2)?(contains||superset.splice(matchIdx2,1),!0):!1})})}__name(isSubsetOf,"isSubsetOf");Assertion.addMethod("members",function(subset,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(obj,flagMsg,ssfi,!0).to.be.iterable,new Assertion(subset,flagMsg,ssfi,!0).to.be.iterable;var contains=flag2(this,"contains"),ordered=flag2(this,"ordered"),subject,failMsg,failNegateMsg;contains?(subject=ordered?"an ordered superset":"a superset",failMsg="expected #{this} to be "+subject+" of #{exp}",failNegateMsg="expected #{this} to not be "+subject+" of #{exp}"):(subject=ordered?"ordered members":"members",failMsg="expected #{this} to have the same "+subject+" as #{exp}",failNegateMsg="expected #{this} to not have the same "+subject+" as #{exp}");var cmp=flag2(this,"deep")?flag2(this,"eql"):void 0;this.assert(isSubsetOf(subset,obj,cmp,contains,ordered),failMsg,failNegateMsg,subset,obj,!0)});Assertion.addProperty("iterable",function(msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");this.assert(obj!=null&&obj[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",obj)});function oneOf(list,msg){msg&&flag2(this,"message",msg);var expected=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi"),contains=flag2(this,"contains"),isDeep=flag2(this,"deep"),eql=flag2(this,"eql");new Assertion(list,flagMsg,ssfi,!0).to.be.an("array"),contains?this.assert(list.some(function(possibility){return expected.indexOf(possibility)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",list,expected):isDeep?this.assert(list.some(function(possibility){return eql(expected,possibility)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",list,expected):this.assert(list.indexOf(expected)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",list,expected)}__name(oneOf,"oneOf");Assertion.addMethod("oneOf",oneOf);function assertChanges(subject,prop,msg){msg&&flag2(this,"message",msg);var fn3=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(fn3,flagMsg,ssfi,!0).is.a("function");var initial;prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a("function"),initial=subject()),fn3();var final=prop==null?subject():subject[prop],msgObj=prop==null?initial:"."+prop;flag2(this,"deltaMsgObj",msgObj),flag2(this,"initialDeltaValue",initial),flag2(this,"finalDeltaValue",final),flag2(this,"deltaBehavior","change"),flag2(this,"realDelta",final!==initial),this.assert(initial!==final,"expected "+msgObj+" to change","expected "+msgObj+" to not change")}__name(assertChanges,"assertChanges");Assertion.addMethod("change",assertChanges);Assertion.addMethod("changes",assertChanges);function assertIncreases(subject,prop,msg){msg&&flag2(this,"message",msg);var fn3=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(fn3,flagMsg,ssfi,!0).is.a("function");var initial;prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a("function"),initial=subject()),new Assertion(initial,flagMsg,ssfi,!0).is.a("number"),fn3();var final=prop==null?subject():subject[prop],msgObj=prop==null?initial:"."+prop;flag2(this,"deltaMsgObj",msgObj),flag2(this,"initialDeltaValue",initial),flag2(this,"finalDeltaValue",final),flag2(this,"deltaBehavior","increase"),flag2(this,"realDelta",final-initial),this.assert(final-initial>0,"expected "+msgObj+" to increase","expected "+msgObj+" to not increase")}__name(assertIncreases,"assertIncreases");Assertion.addMethod("increase",assertIncreases);Assertion.addMethod("increases",assertIncreases);function assertDecreases(subject,prop,msg){msg&&flag2(this,"message",msg);var fn3=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(fn3,flagMsg,ssfi,!0).is.a("function");var initial;prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a("function"),initial=subject()),new Assertion(initial,flagMsg,ssfi,!0).is.a("number"),fn3();var final=prop==null?subject():subject[prop],msgObj=prop==null?initial:"."+prop;flag2(this,"deltaMsgObj",msgObj),flag2(this,"initialDeltaValue",initial),flag2(this,"finalDeltaValue",final),flag2(this,"deltaBehavior","decrease"),flag2(this,"realDelta",initial-final),this.assert(final-initial<0,"expected "+msgObj+" to decrease","expected "+msgObj+" to not decrease")}__name(assertDecreases,"assertDecreases");Assertion.addMethod("decrease",assertDecreases);Assertion.addMethod("decreases",assertDecreases);function assertDelta(delta,msg){msg&&flag2(this,"message",msg);var msgObj=flag2(this,"deltaMsgObj"),initial=flag2(this,"initialDeltaValue"),final=flag2(this,"finalDeltaValue"),behavior2=flag2(this,"deltaBehavior"),realDelta=flag2(this,"realDelta"),expression;behavior2==="change"?expression=Math.abs(final-initial)===Math.abs(delta):expression=realDelta===Math.abs(delta),this.assert(expression,"expected "+msgObj+" to "+behavior2+" by "+delta,"expected "+msgObj+" to not "+behavior2+" by "+delta)}__name(assertDelta,"assertDelta");Assertion.addMethod("by",assertDelta);Assertion.addProperty("extensible",function(){var obj=flag2(this,"object"),isExtensible=obj===Object(obj)&&Object.isExtensible(obj);this.assert(isExtensible,"expected #{this} to be extensible","expected #{this} to not be extensible")});Assertion.addProperty("sealed",function(){var obj=flag2(this,"object"),isSealed=obj===Object(obj)?Object.isSealed(obj):!0;this.assert(isSealed,"expected #{this} to be sealed","expected #{this} to not be sealed")});Assertion.addProperty("frozen",function(){var obj=flag2(this,"object"),isFrozen=obj===Object(obj)?Object.isFrozen(obj):!0;this.assert(isFrozen,"expected #{this} to be frozen","expected #{this} to not be frozen")});Assertion.addProperty("finite",function(msg){var obj=flag2(this,"object");this.assert(typeof obj=="number"&&isFinite(obj),"expected #{this} to be a finite number","expected #{this} to not be a finite number")});function expect(val,message){return new Assertion(val,message)}__name(expect,"expect");expect.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),message=message||"expect.fail()",new AssertionError(message,{actual,expected,operator},expect.fail)};var should_exports={};__export2(should_exports,{Should:()=>Should,should:()=>should});function loadShould(){function shouldGetter(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new Assertion(this.valueOf(),null,shouldGetter):new Assertion(this,null,shouldGetter)}__name(shouldGetter,"shouldGetter");function shouldSetter(value){Object.defineProperty(this,"should",{value,enumerable:!0,configurable:!0,writable:!0})}__name(shouldSetter,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:shouldSetter,get:shouldGetter,configurable:!0});var should2={};return should2.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),message=message||"should.fail()",new AssertionError(message,{actual,expected,operator},should2.fail)},should2.equal=function(actual,expected,message){new Assertion(actual,message).to.equal(expected)},should2.Throw=function(fn3,errt,errs,msg){new Assertion(fn3,msg).to.Throw(errt,errs)},should2.exist=function(val,msg){new Assertion(val,msg).to.exist},should2.not={},should2.not.equal=function(actual,expected,msg){new Assertion(actual,msg).to.not.equal(expected)},should2.not.Throw=function(fn3,errt,errs,msg){new Assertion(fn3,msg).to.not.Throw(errt,errs)},should2.not.exist=function(val,msg){new Assertion(val,msg).to.not.exist},should2.throw=should2.Throw,should2.not.throw=should2.not.Throw,should2}__name(loadShould,"loadShould");var should=loadShould,Should=loadShould;function assert(express,errmsg){var test22=new Assertion(null,null,assert,!0);test22.assert(express,errmsg,"[ negation message unavailable ]")}__name(assert,"assert");assert.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),message=message||"assert.fail()",new AssertionError(message,{actual,expected,operator},assert.fail)};assert.isOk=function(val,msg){new Assertion(val,msg,assert.isOk,!0).is.ok};assert.isNotOk=function(val,msg){new Assertion(val,msg,assert.isNotOk,!0).is.not.ok};assert.equal=function(act,exp,msg){var test22=new Assertion(act,msg,assert.equal,!0);test22.assert(exp==flag(test22,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",exp,act,!0)};assert.notEqual=function(act,exp,msg){var test22=new Assertion(act,msg,assert.notEqual,!0);test22.assert(exp!=flag(test22,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",exp,act,!0)};assert.strictEqual=function(act,exp,msg){new Assertion(act,msg,assert.strictEqual,!0).to.equal(exp)};assert.notStrictEqual=function(act,exp,msg){new Assertion(act,msg,assert.notStrictEqual,!0).to.not.equal(exp)};assert.deepEqual=assert.deepStrictEqual=function(act,exp,msg){new Assertion(act,msg,assert.deepEqual,!0).to.eql(exp)};assert.notDeepEqual=function(act,exp,msg){new Assertion(act,msg,assert.notDeepEqual,!0).to.not.eql(exp)};assert.isAbove=function(val,abv,msg){new Assertion(val,msg,assert.isAbove,!0).to.be.above(abv)};assert.isAtLeast=function(val,atlst,msg){new Assertion(val,msg,assert.isAtLeast,!0).to.be.least(atlst)};assert.isBelow=function(val,blw,msg){new Assertion(val,msg,assert.isBelow,!0).to.be.below(blw)};assert.isAtMost=function(val,atmst,msg){new Assertion(val,msg,assert.isAtMost,!0).to.be.most(atmst)};assert.isTrue=function(val,msg){new Assertion(val,msg,assert.isTrue,!0).is.true};assert.isNotTrue=function(val,msg){new Assertion(val,msg,assert.isNotTrue,!0).to.not.equal(!0)};assert.isFalse=function(val,msg){new Assertion(val,msg,assert.isFalse,!0).is.false};assert.isNotFalse=function(val,msg){new Assertion(val,msg,assert.isNotFalse,!0).to.not.equal(!1)};assert.isNull=function(val,msg){new Assertion(val,msg,assert.isNull,!0).to.equal(null)};assert.isNotNull=function(val,msg){new Assertion(val,msg,assert.isNotNull,!0).to.not.equal(null)};assert.isNaN=function(val,msg){new Assertion(val,msg,assert.isNaN,!0).to.be.NaN};assert.isNotNaN=function(value,message){new Assertion(value,message,assert.isNotNaN,!0).not.to.be.NaN};assert.exists=function(val,msg){new Assertion(val,msg,assert.exists,!0).to.exist};assert.notExists=function(val,msg){new Assertion(val,msg,assert.notExists,!0).to.not.exist};assert.isUndefined=function(val,msg){new Assertion(val,msg,assert.isUndefined,!0).to.equal(void 0)};assert.isDefined=function(val,msg){new Assertion(val,msg,assert.isDefined,!0).to.not.equal(void 0)};assert.isCallable=function(value,message){new Assertion(value,message,assert.isCallable,!0).is.callable};assert.isNotCallable=function(value,message){new Assertion(value,message,assert.isNotCallable,!0).is.not.callable};assert.isObject=function(val,msg){new Assertion(val,msg,assert.isObject,!0).to.be.a("object")};assert.isNotObject=function(val,msg){new Assertion(val,msg,assert.isNotObject,!0).to.not.be.a("object")};assert.isArray=function(val,msg){new Assertion(val,msg,assert.isArray,!0).to.be.an("array")};assert.isNotArray=function(val,msg){new Assertion(val,msg,assert.isNotArray,!0).to.not.be.an("array")};assert.isString=function(val,msg){new Assertion(val,msg,assert.isString,!0).to.be.a("string")};assert.isNotString=function(val,msg){new Assertion(val,msg,assert.isNotString,!0).to.not.be.a("string")};assert.isNumber=function(val,msg){new Assertion(val,msg,assert.isNumber,!0).to.be.a("number")};assert.isNotNumber=function(val,msg){new Assertion(val,msg,assert.isNotNumber,!0).to.not.be.a("number")};assert.isNumeric=function(val,msg){new Assertion(val,msg,assert.isNumeric,!0).is.numeric};assert.isNotNumeric=function(val,msg){new Assertion(val,msg,assert.isNotNumeric,!0).is.not.numeric};assert.isFinite=function(val,msg){new Assertion(val,msg,assert.isFinite,!0).to.be.finite};assert.isBoolean=function(val,msg){new Assertion(val,msg,assert.isBoolean,!0).to.be.a("boolean")};assert.isNotBoolean=function(val,msg){new Assertion(val,msg,assert.isNotBoolean,!0).to.not.be.a("boolean")};assert.typeOf=function(val,type32,msg){new Assertion(val,msg,assert.typeOf,!0).to.be.a(type32)};assert.notTypeOf=function(value,type32,message){new Assertion(value,message,assert.notTypeOf,!0).to.not.be.a(type32)};assert.instanceOf=function(val,type32,msg){new Assertion(val,msg,assert.instanceOf,!0).to.be.instanceOf(type32)};assert.notInstanceOf=function(val,type32,msg){new Assertion(val,msg,assert.notInstanceOf,!0).to.not.be.instanceOf(type32)};assert.include=function(exp,inc,msg){new Assertion(exp,msg,assert.include,!0).include(inc)};assert.notInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notInclude,!0).not.include(inc)};assert.deepInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepInclude,!0).deep.include(inc)};assert.notDeepInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepInclude,!0).not.deep.include(inc)};assert.nestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.nestedInclude,!0).nested.include(inc)};assert.notNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notNestedInclude,!0).not.nested.include(inc)};assert.deepNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepNestedInclude,!0).deep.nested.include(inc)};assert.notDeepNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepNestedInclude,!0).not.deep.nested.include(inc)};assert.ownInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.ownInclude,!0).own.include(inc)};assert.notOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notOwnInclude,!0).not.own.include(inc)};assert.deepOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepOwnInclude,!0).deep.own.include(inc)};assert.notDeepOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepOwnInclude,!0).not.deep.own.include(inc)};assert.match=function(exp,re,msg){new Assertion(exp,msg,assert.match,!0).to.match(re)};assert.notMatch=function(exp,re,msg){new Assertion(exp,msg,assert.notMatch,!0).to.not.match(re)};assert.property=function(obj,prop,msg){new Assertion(obj,msg,assert.property,!0).to.have.property(prop)};assert.notProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notProperty,!0).to.not.have.property(prop)};assert.propertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.propertyVal,!0).to.have.property(prop,val)};assert.notPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notPropertyVal,!0).to.not.have.property(prop,val)};assert.deepPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.deepPropertyVal,!0).to.have.deep.property(prop,val)};assert.notDeepPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notDeepPropertyVal,!0).to.not.have.deep.property(prop,val)};assert.ownProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.ownProperty,!0).to.have.own.property(prop)};assert.notOwnProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notOwnProperty,!0).to.not.have.own.property(prop)};assert.ownPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.ownPropertyVal,!0).to.have.own.property(prop,value)};assert.notOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.notOwnPropertyVal,!0).to.not.have.own.property(prop,value)};assert.deepOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.deepOwnPropertyVal,!0).to.have.deep.own.property(prop,value)};assert.notDeepOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(prop,value)};assert.nestedProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.nestedProperty,!0).to.have.nested.property(prop)};assert.notNestedProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notNestedProperty,!0).to.not.have.nested.property(prop)};assert.nestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.nestedPropertyVal,!0).to.have.nested.property(prop,val)};assert.notNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notNestedPropertyVal,!0).to.not.have.nested.property(prop,val)};assert.deepNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.deepNestedPropertyVal,!0).to.have.deep.nested.property(prop,val)};assert.notDeepNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(prop,val)};assert.lengthOf=function(exp,len,msg){new Assertion(exp,msg,assert.lengthOf,!0).to.have.lengthOf(len)};assert.hasAnyKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAnyKeys,!0).to.have.any.keys(keys2)};assert.hasAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAllKeys,!0).to.have.all.keys(keys2)};assert.containsAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.containsAllKeys,!0).to.contain.all.keys(keys2)};assert.doesNotHaveAnyKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAnyKeys,!0).to.not.have.any.keys(keys2)};assert.doesNotHaveAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAllKeys,!0).to.not.have.all.keys(keys2)};assert.hasAnyDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAnyDeepKeys,!0).to.have.any.deep.keys(keys2)};assert.hasAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAllDeepKeys,!0).to.have.all.deep.keys(keys2)};assert.containsAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.containsAllDeepKeys,!0).to.contain.all.deep.keys(keys2)};assert.doesNotHaveAnyDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(keys2)};assert.doesNotHaveAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(keys2)};assert.throws=function(fn3,errorLike,errMsgMatcher,msg){(typeof errorLike=="string"||errorLike instanceof RegExp)&&(errMsgMatcher=errorLike,errorLike=null);var assertErr=new Assertion(fn3,msg,assert.throws,!0).to.throw(errorLike,errMsgMatcher);return flag(assertErr,"object")};assert.doesNotThrow=function(fn3,errorLike,errMsgMatcher,message){(typeof errorLike=="string"||errorLike instanceof RegExp)&&(errMsgMatcher=errorLike,errorLike=null),new Assertion(fn3,message,assert.doesNotThrow,!0).to.not.throw(errorLike,errMsgMatcher)};assert.operator=function(val,operator,val2,msg){var ok;switch(operator){case"==":ok=val==val2;break;case"===":ok=val===val2;break;case">":ok=val>val2;break;case">=":ok=val>=val2;break;case"<":ok=val<val2;break;case"<=":ok=val<=val2;break;case"!=":ok=val!=val2;break;case"!==":ok=val!==val2;break;default:throw msg=msg&&msg+": ",new AssertionError(msg+'Invalid operator "'+operator+'"',void 0,assert.operator)}var test22=new Assertion(ok,msg,assert.operator,!0);test22.assert(flag(test22,"object")===!0,"expected "+inspect2(val)+" to be "+operator+" "+inspect2(val2),"expected "+inspect2(val)+" to not be "+operator+" "+inspect2(val2))};assert.closeTo=function(act,exp,delta,msg){new Assertion(act,msg,assert.closeTo,!0).to.be.closeTo(exp,delta)};assert.approximately=function(act,exp,delta,msg){new Assertion(act,msg,assert.approximately,!0).to.be.approximately(exp,delta)};assert.sameMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.sameMembers,!0).to.have.same.members(set2)};assert.notSameMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.notSameMembers,!0).to.not.have.same.members(set2)};assert.sameDeepMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.sameDeepMembers,!0).to.have.same.deep.members(set2)};assert.notSameDeepMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.notSameDeepMembers,!0).to.not.have.same.deep.members(set2)};assert.sameOrderedMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.sameOrderedMembers,!0).to.have.same.ordered.members(set2)};assert.notSameOrderedMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.notSameOrderedMembers,!0).to.not.have.same.ordered.members(set2)};assert.sameDeepOrderedMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(set2)};assert.notSameDeepOrderedMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(set2)};assert.includeMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.includeMembers,!0).to.include.members(subset)};assert.notIncludeMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.notIncludeMembers,!0).to.not.include.members(subset)};assert.includeDeepMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.includeDeepMembers,!0).to.include.deep.members(subset)};assert.notIncludeDeepMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.notIncludeDeepMembers,!0).to.not.include.deep.members(subset)};assert.includeOrderedMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.includeOrderedMembers,!0).to.include.ordered.members(subset)};assert.notIncludeOrderedMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.notIncludeOrderedMembers,!0).to.not.include.ordered.members(subset)};assert.includeDeepOrderedMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(subset)};assert.notIncludeDeepOrderedMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(subset)};assert.oneOf=function(inList,list,msg){new Assertion(inList,msg,assert.oneOf,!0).to.be.oneOf(list)};assert.isIterable=function(obj,msg){if(obj==null||!obj[Symbol.iterator])throw msg=msg?`${msg} expected ${inspect2(obj)} to be an iterable`:`expected ${inspect2(obj)} to be an iterable`,new AssertionError(msg,void 0,assert.isIterable)};assert.changes=function(fn3,obj,prop,msg){arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.changes,!0).to.change(obj,prop)};assert.changesBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.changesBy,!0).to.change(obj,prop).by(delta)};assert.doesNotChange=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.doesNotChange,!0).to.not.change(obj,prop)};assert.changesButNotBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.changesButNotBy,!0).to.change(obj,prop).but.not.by(delta)};assert.increases=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.increases,!0).to.increase(obj,prop)};assert.increasesBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.increasesBy,!0).to.increase(obj,prop).by(delta)};assert.doesNotIncrease=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.doesNotIncrease,!0).to.not.increase(obj,prop)};assert.increasesButNotBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.increasesButNotBy,!0).to.increase(obj,prop).but.not.by(delta)};assert.decreases=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.decreases,!0).to.decrease(obj,prop)};assert.decreasesBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.decreasesBy,!0).to.decrease(obj,prop).by(delta)};assert.doesNotDecrease=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.doesNotDecrease,!0).to.not.decrease(obj,prop)};assert.doesNotDecreaseBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);return new Assertion(fn3,msg,assert.doesNotDecreaseBy,!0).to.not.decrease(obj,prop).by(delta)};assert.decreasesButNotBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.decreasesButNotBy,!0).to.decrease(obj,prop).but.not.by(delta)};assert.ifError=function(val){if(val)throw val};assert.isExtensible=function(obj,msg){new Assertion(obj,msg,assert.isExtensible,!0).to.be.extensible};assert.isNotExtensible=function(obj,msg){new Assertion(obj,msg,assert.isNotExtensible,!0).to.not.be.extensible};assert.isSealed=function(obj,msg){new Assertion(obj,msg,assert.isSealed,!0).to.be.sealed};assert.isNotSealed=function(obj,msg){new Assertion(obj,msg,assert.isNotSealed,!0).to.not.be.sealed};assert.isFrozen=function(obj,msg){new Assertion(obj,msg,assert.isFrozen,!0).to.be.frozen};assert.isNotFrozen=function(obj,msg){new Assertion(obj,msg,assert.isNotFrozen,!0).to.not.be.frozen};assert.isEmpty=function(val,msg){new Assertion(val,msg,assert.isEmpty,!0).to.be.empty};assert.isNotEmpty=function(val,msg){new Assertion(val,msg,assert.isNotEmpty,!0).to.not.be.empty};__name(function alias(name,as){return assert[as]=assert[name],alias},"alias")("isOk","ok")("isNotOk","notOk")("throws","throw")("throws","Throw")("isExtensible","extensible")("isNotExtensible","notExtensible")("isSealed","sealed")("isNotSealed","notSealed")("isFrozen","frozen")("isNotFrozen","notFrozen")("isEmpty","empty")("isNotEmpty","notEmpty")("isCallable","isFunction")("isNotCallable","isNotFunction");var used=[];function use(fn3){let exports2={AssertionError,util:utils_exports,config,expect,assert,Assertion,...should_exports};return~used.indexOf(fn3)||(fn3(exports2,utils_exports),used.push(fn3)),exports2}__name(use,"use");var matchers_exports={};__export(matchers_exports,{toBeChecked:()=>toBeChecked,toBeDisabled:()=>toBeDisabled,toBeEmpty:()=>toBeEmpty,toBeEmptyDOMElement:()=>toBeEmptyDOMElement,toBeEnabled:()=>toBeEnabled,toBeInTheDOM:()=>toBeInTheDOM,toBeInTheDocument:()=>toBeInTheDocument,toBeInvalid:()=>toBeInvalid,toBePartiallyChecked:()=>toBePartiallyChecked,toBeRequired:()=>toBeRequired,toBeValid:()=>toBeValid,toBeVisible:()=>toBeVisible,toContainElement:()=>toContainElement,toContainHTML:()=>toContainHTML,toHaveAccessibleDescription:()=>toHaveAccessibleDescription,toHaveAccessibleErrorMessage:()=>toHaveAccessibleErrorMessage,toHaveAccessibleName:()=>toHaveAccessibleName,toHaveAttribute:()=>toHaveAttribute,toHaveClass:()=>toHaveClass,toHaveDescription:()=>toHaveDescription,toHaveDisplayValue:()=>toHaveDisplayValue,toHaveErrorMessage:()=>toHaveErrorMessage,toHaveFocus:()=>toHaveFocus,toHaveFormValues:()=>toHaveFormValues,toHaveRole:()=>toHaveRole,toHaveStyle:()=>toHaveStyle,toHaveTextContent:()=>toHaveTextContent,toHaveValue:()=>toHaveValue});var import_redent=__toESM(require_redent(),1);function $parcel$defineInteropFlag(a2){Object.defineProperty(a2,"__esModule",{value:!0,configurable:!0})}function $parcel$export(e,n,v,s){Object.defineProperty(e,n,{get:v,set:s,enumerable:!0,configurable:!0})}var $009ddb00d3ec72b8$exports={};$parcel$defineInteropFlag($009ddb00d3ec72b8$exports);$parcel$export($009ddb00d3ec72b8$exports,"default",()=>$009ddb00d3ec72b8$export$2e2bcd8739ae039);var $009ddb00d3ec72b8$export$2e2bcd8739ae039=class extends Error{constructor(filename,msg,lineno,column,css){super(filename+":"+lineno+":"+column+": "+msg),this.reason=msg,this.filename=filename,this.line=lineno,this.column=column,this.source=css}},$0865a9fb4cc365fe$exports={};$parcel$defineInteropFlag($0865a9fb4cc365fe$exports);$parcel$export($0865a9fb4cc365fe$exports,"default",()=>$0865a9fb4cc365fe$export$2e2bcd8739ae039);var $0865a9fb4cc365fe$export$2e2bcd8739ae039=class{constructor(start,end,source){this.start=start,this.end=end,this.source=source}},$b2e137848b48cf4f$exports={};$parcel$export($b2e137848b48cf4f$exports,"CssTypes",()=>$b2e137848b48cf4f$export$9be5dd6e61d5d73a);var $b2e137848b48cf4f$export$9be5dd6e61d5d73a;(function(CssTypes){CssTypes.stylesheet="stylesheet",CssTypes.rule="rule",CssTypes.declaration="declaration",CssTypes.comment="comment",CssTypes.container="container",CssTypes.charset="charset",CssTypes.document="document",CssTypes.customMedia="custom-media",CssTypes.fontFace="font-face",CssTypes.host="host",CssTypes.import="import",CssTypes.keyframes="keyframes",CssTypes.keyframe="keyframe",CssTypes.layer="layer",CssTypes.media="media",CssTypes.namespace="namespace",CssTypes.page="page",CssTypes.startingStyle="starting-style",CssTypes.supports="supports"})($b2e137848b48cf4f$export$9be5dd6e61d5d73a||($b2e137848b48cf4f$export$9be5dd6e61d5d73a={}));var $d708735ed1303b43$var$commentre=/\/\*[^]*?(?:\*\/|$)/g,$d708735ed1303b43$export$98e6a39c04603d36=(css,options)=>{options=options||{};let lineno=1,column=1;function updatePosition(str){let lines=str.match(/\n/g);lines&&(lineno+=lines.length);let i=str.lastIndexOf(`
28
28
  `);column=~i?str.length-i:column+str.length}function position(){let start={line:lineno,column};return function(node){return node.position=new $0865a9fb4cc365fe$export$2e2bcd8739ae039(start,{line:lineno,column},options?.source||""),whitespace(),node}}let errorsList=[];function error(msg){let err=new $009ddb00d3ec72b8$export$2e2bcd8739ae039(options?.source||"",msg,lineno,column,css);if(options?.silent)errorsList.push(err);else throw err}function stylesheet(){let rulesList=rules();return{type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.stylesheet,stylesheet:{source:options?.source,rules:rulesList,parsingErrors:errorsList}}}function open(){return match(/^{\s*/)}function close(){return match(/^}/)}function rules(){let node,rules2=[];for(whitespace(),comments(rules2);css.length&&css.charAt(0)!=="}"&&(node=atrule()||rule());)node&&(rules2.push(node),comments(rules2));return rules2}function match(re){let m3=re.exec(css);if(!m3)return;let str=m3[0];return updatePosition(str),css=css.slice(str.length),m3}function whitespace(){match(/^\s*/)}function comments(rules2){let c;for(rules2=rules2||[];c=comment();)c&&rules2.push(c);return rules2}function comment(){let pos=position();if(css.charAt(0)!=="/"||css.charAt(1)!=="*")return;let m3=match(/^\/\*[^]*?\*\//);return m3?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.comment,comment:m3[0].slice(2,-2)}):error("End of comment missing")}function findClosingParenthese(str,start,depth){let ptr=start+1,found=!1,closeParentheses=str.indexOf(")",ptr);for(;!found&&closeParentheses!==-1;){let nextParentheses=str.indexOf("(",ptr);nextParentheses!==-1&&nextParentheses<closeParentheses?(ptr=findClosingParenthese(str,nextParentheses+1,depth+1)+1,closeParentheses=str.indexOf(")",ptr)):found=!0}return found&&closeParentheses!==-1?closeParentheses:-1}function selector(){let m3=match(/^([^{]+)/);if(!m3)return;let res=$d708735ed1303b43$var$trim(m3[0]).replace($d708735ed1303b43$var$commentre,"");if(res.indexOf(",")===-1)return[res];let ptr=0,startParentheses=res.indexOf("(",ptr);for(;startParentheses!==-1;){let closeParentheses=findClosingParenthese(res,startParentheses,0);if(closeParentheses===-1)break;ptr=closeParentheses+1,res=res.substring(0,startParentheses)+res.substring(startParentheses,closeParentheses).replace(/,/g,"\u200C")+res.substring(closeParentheses),startParentheses=res.indexOf("(",ptr)}return res=res.replace(/("|')(?:\\\1|.)*?\1/g,m4=>m4.replace(/,/g,"\u200C")),res.split(",").map(s=>$d708735ed1303b43$var$trim(s.replace(/\u200C/g,",")))}function declaration(){let pos=position(),propMatch=match(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!propMatch)return;let propValue=$d708735ed1303b43$var$trim(propMatch[0]);if(!match(/^:\s*/))return error("property missing ':'");let val=match(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),ret=pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.declaration,property:propValue.replace($d708735ed1303b43$var$commentre,""),value:val?$d708735ed1303b43$var$trim(val[0]).replace($d708735ed1303b43$var$commentre,""):""});return match(/^[;\s]*/),ret}function declarations(){let decls=[];if(!open())return error("missing '{'");comments(decls);let decl;for(;decl=declaration();)decl&&(decls.push(decl),comments(decls));return close()?decls:error("missing '}'")}function keyframe(){let m3,vals=[],pos=position();for(;m3=match(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)vals.push(m3[1]),match(/^,\s*/);if(vals.length)return pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.keyframe,values:vals,declarations:declarations()||[]})}function atkeyframes(){let pos=position(),m1=match(/^@([-\w]+)?keyframes\s*/);if(!m1)return;let vendor=m1[1],m22=match(/^([-\w]+)\s*/);if(!m22)return error("@keyframes missing name");let name=m22[1];if(!open())return error("@keyframes missing '{'");let frame,frames=comments();for(;frame=keyframe();)frames.push(frame),frames=frames.concat(comments());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.keyframes,name,vendor,keyframes:frames}):error("@keyframes missing '}'")}function atsupports(){let pos=position(),m3=match(/^@supports *([^{]+)/);if(!m3)return;let supports=$d708735ed1303b43$var$trim(m3[1]);if(!open())return error("@supports missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.supports,supports,rules:style}):error("@supports missing '}'")}function athost(){let pos=position();if(!match(/^@host\s*/))return;if(!open())return error("@host missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.host,rules:style}):error("@host missing '}'")}function atcontainer(){let pos=position(),m3=match(/^@container *([^{]+)/);if(!m3)return;let container=$d708735ed1303b43$var$trim(m3[1]);if(!open())return error("@container missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.container,container,rules:style}):error("@container missing '}'")}function atlayer(){let pos=position(),m3=match(/^@layer *([^{;@]+)/);if(!m3)return;let layer=$d708735ed1303b43$var$trim(m3[1]);if(!open())return match(/^[;\s]*/),pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.layer,layer});let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.layer,layer,rules:style}):error("@layer missing '}'")}function atmedia(){let pos=position(),m3=match(/^@media *([^{]+)/);if(!m3)return;let media=$d708735ed1303b43$var$trim(m3[1]);if(!open())return error("@media missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.media,media,rules:style}):error("@media missing '}'")}function atcustommedia(){let pos=position(),m3=match(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(m3)return pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.customMedia,name:$d708735ed1303b43$var$trim(m3[1]),media:$d708735ed1303b43$var$trim(m3[2])})}function atpage(){let pos=position();if(!match(/^@page */))return;let sel=selector()||[];if(!open())return error("@page missing '{'");let decls=comments(),decl;for(;decl=declaration();)decls.push(decl),decls=decls.concat(comments());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.page,selectors:sel,declarations:decls}):error("@page missing '}'")}function atdocument(){let pos=position(),m3=match(/^@([-\w]+)?document *([^{]+)/);if(!m3)return;let vendor=$d708735ed1303b43$var$trim(m3[1]),doc=$d708735ed1303b43$var$trim(m3[2]);if(!open())return error("@document missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.document,document:doc,vendor,rules:style}):error("@document missing '}'")}function atfontface(){let pos=position();if(!match(/^@font-face\s*/))return;if(!open())return error("@font-face missing '{'");let decls=comments(),decl;for(;decl=declaration();)decls.push(decl),decls=decls.concat(comments());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.fontFace,declarations:decls}):error("@font-face missing '}'")}function atstartingstyle(){let pos=position();if(!match(/^@starting-style\s*/))return;if(!open())return error("@starting-style missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.startingStyle,rules:style}):error("@starting-style missing '}'")}let atimport=_compileAtrule("import"),atcharset=_compileAtrule("charset"),atnamespace=_compileAtrule("namespace");function _compileAtrule(name){let re=new RegExp("^@"+name+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){let pos=position(),m3=match(re);if(!m3)return;let ret={type:name};return ret[name]=m3[1].trim(),pos(ret)}}function atrule(){if(css[0]==="@")return atkeyframes()||atmedia()||atcustommedia()||atsupports()||atimport()||atcharset()||atnamespace()||atdocument()||atpage()||athost()||atfontface()||atcontainer()||atstartingstyle()||atlayer()}function rule(){let pos=position(),sel=selector();return sel?(comments(),pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.rule,selectors:sel,declarations:declarations()||[]})):error("selector missing")}return $d708735ed1303b43$var$addParent(stylesheet())};function $d708735ed1303b43$var$trim(str){return str?str.trim():""}function $d708735ed1303b43$var$addParent(obj,parent){let isNode=obj&&typeof obj.type=="string",childParent=isNode?obj:parent;for(let k2 in obj){let value=obj[k2];Array.isArray(value)?value.forEach(v=>{$d708735ed1303b43$var$addParent(v,childParent)}):value&&typeof value=="object"&&$d708735ed1303b43$var$addParent(value,childParent)}return isNode&&Object.defineProperty(obj,"parent",{configurable:!0,writable:!0,enumerable:!1,value:parent||null}),obj}var $d708735ed1303b43$export$2e2bcd8739ae039=$d708735ed1303b43$export$98e6a39c04603d36;var $149c1bd638913645$export$98e6a39c04603d36=$d708735ed1303b43$export$2e2bcd8739ae039;var toStr=Object.prototype.toString;function isCallable(fn3){return typeof fn3=="function"||toStr.call(fn3)==="[object Function]"}function toInteger(value){var number=Number(value);return isNaN(number)?0:number===0||!isFinite(number)?number:(number>0?1:-1)*Math.floor(Math.abs(number))}var maxSafeInteger=Math.pow(2,53)-1;function toLength(value){var len=toInteger(value);return Math.min(Math.max(len,0),maxSafeInteger)}function arrayFrom(arrayLike,mapFn){var C3=Array,items=Object(arrayLike);if(arrayLike==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof mapFn<"u"&&!isCallable(mapFn))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var len=toLength(items.length),A=isCallable(C3)?Object(new C3(len)):new Array(len),k2=0,kValue;k2<len;)kValue=items[k2],mapFn?A[k2]=mapFn(kValue,k2):A[k2]=kValue,k2+=1;return A.length=len,A}function _typeof(o){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o2){return typeof o2}:function(o2){return o2&&typeof Symbol=="function"&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2},_typeof(o)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}function _defineProperty(obj,key,value){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key)}function _toPrimitive(input2,hint){if(_typeof(input2)!=="object"||input2===null)return input2;var prim=input2[Symbol.toPrimitive];if(prim!==void 0){var res=prim.call(input2,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return(hint==="string"?String:Number)(input2)}var SetLike=function(){function SetLike3(){var items=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_classCallCheck(this,SetLike3),_defineProperty(this,"items",void 0),this.items=items}return _createClass(SetLike3,[{key:"add",value:function(value){return this.has(value)===!1&&this.items.push(value),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(value){var previousLength=this.items.length;return this.items=this.items.filter(function(item){return item!==value}),previousLength!==this.items.length}},{key:"forEach",value:function(callbackfn){var _this=this;this.items.forEach(function(item){callbackfn(item,item,_this)})}},{key:"has",value:function(value){return this.items.indexOf(value)!==-1}},{key:"size",get:function(){return this.items.length}}]),SetLike3}(),SetLike_default=typeof Set>"u"?Set:SetLike;function getLocalName(element){var _element$localName;return(_element$localName=element.localName)!==null&&_element$localName!==void 0?_element$localName:element.tagName.toLowerCase()}var localNameToRoleMappings={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},prohibitedAttributes={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),none:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function hasGlobalAriaAttributes(element,role){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-description","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(attributeName){var _prohibitedAttributes;return element.hasAttribute(attributeName)&&!((_prohibitedAttributes=prohibitedAttributes[role])!==null&&_prohibitedAttributes!==void 0&&_prohibitedAttributes.has(attributeName))})}function ignorePresentationalRole(element,implicitRole){return hasGlobalAriaAttributes(element,implicitRole)}function getRole(element){var explicitRole=getExplicitRole(element);if(explicitRole===null||presentationRoles.indexOf(explicitRole)!==-1){var implicitRole=getImplicitRole(element);if(presentationRoles.indexOf(explicitRole||"")===-1||ignorePresentationalRole(element,implicitRole||""))return implicitRole}return explicitRole}function getImplicitRole(element){var mappedByTag=localNameToRoleMappings[getLocalName(element)];if(mappedByTag!==void 0)return mappedByTag;switch(getLocalName(element)){case"a":case"area":case"link":if(element.hasAttribute("href"))return"link";break;case"img":return element.getAttribute("alt")===""&&!ignorePresentationalRole(element,"img")?"presentation":"img";case"input":{var _ref=element,type5=_ref.type;switch(type5){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return type5;case"range":return"slider";case"email":case"tel":case"text":case"url":return element.hasAttribute("list")?"combobox":"textbox";case"search":return element.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return element.hasAttribute("multiple")||element.size>1?"listbox":"combobox"}return null}function getExplicitRole(element){var role=element.getAttribute("role");if(role!==null){var explicitRole=role.trim().split(" ")[0];if(explicitRole.length>0)return explicitRole}return null}var presentationRoles=["presentation","none"];function isElement(node){return node!==null&&node.nodeType===node.ELEMENT_NODE}function isHTMLTableCaptionElement(node){return isElement(node)&&getLocalName(node)==="caption"}function isHTMLInputElement(node){return isElement(node)&&getLocalName(node)==="input"}function isHTMLOptGroupElement(node){return isElement(node)&&getLocalName(node)==="optgroup"}function isHTMLSelectElement(node){return isElement(node)&&getLocalName(node)==="select"}function isHTMLTableElement(node){return isElement(node)&&getLocalName(node)==="table"}function isHTMLTextAreaElement(node){return isElement(node)&&getLocalName(node)==="textarea"}function safeWindow(node){var _ref=node.ownerDocument===null?node:node.ownerDocument,defaultView=_ref.defaultView;if(defaultView===null)throw new TypeError("no window available");return defaultView}function isHTMLFieldSetElement(node){return isElement(node)&&getLocalName(node)==="fieldset"}function isHTMLLegendElement(node){return isElement(node)&&getLocalName(node)==="legend"}function isHTMLSlotElement(node){return isElement(node)&&getLocalName(node)==="slot"}function isSVGElement(node){return isElement(node)&&node.ownerSVGElement!==void 0}function isSVGSVGElement(node){return isElement(node)&&getLocalName(node)==="svg"}function isSVGTitleElement(node){return isSVGElement(node)&&getLocalName(node)==="title"}function queryIdRefs(node,attributeName){if(isElement(node)&&node.hasAttribute(attributeName)){var ids=node.getAttribute(attributeName).split(" "),root=node.getRootNode?node.getRootNode():node.ownerDocument;return ids.map(function(id){return root.getElementById(id)}).filter(function(element){return element!==null})}return[]}function hasAnyConcreteRoles(node,roles3){return isElement(node)?roles3.indexOf(getRole(node))!==-1:!1}function asFlatString(s){return s.trim().replace(/\s\s+/g," ")}function isHidden(node,getComputedStyleImplementation){if(!isElement(node))return!1;if(node.hasAttribute("hidden")||node.getAttribute("aria-hidden")==="true")return!0;var style=getComputedStyleImplementation(node);return style.getPropertyValue("display")==="none"||style.getPropertyValue("visibility")==="hidden"}function isControl(node){return hasAnyConcreteRoles(node,["button","combobox","listbox","textbox"])||hasAbstractRole(node,"range")}function hasAbstractRole(node,role){if(!isElement(node))return!1;switch(role){case"range":return hasAnyConcreteRoles(node,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(role,"'. This is likely a bug :("))}}function querySelectorAllSubtree(element,selectors){var elements=arrayFrom(element.querySelectorAll(selectors));return queryIdRefs(element,"aria-owns").forEach(function(root){elements.push.apply(elements,arrayFrom(root.querySelectorAll(selectors)))}),elements}function querySelectedOptions(listbox){return isHTMLSelectElement(listbox)?listbox.selectedOptions||querySelectorAllSubtree(listbox,"[selected]"):querySelectorAllSubtree(listbox,'[aria-selected="true"]')}function isMarkedPresentational(node){return hasAnyConcreteRoles(node,presentationRoles)}function isNativeHostLanguageTextAlternativeElement(node){return isHTMLTableCaptionElement(node)}function allowsNameFromContent(node){return hasAnyConcreteRoles(node,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function isDescendantOfNativeHostLanguageTextAlternativeElement(node){return!1}function getValueOfTextbox(element){return isHTMLInputElement(element)||isHTMLTextAreaElement(element)?element.value:element.textContent||""}function getTextualContent(declaration){var content=declaration.getPropertyValue("content");return/^["'].*["']$/.test(content)?content.slice(1,-1):""}function isLabelableElement(element){var localName=getLocalName(element);return localName==="button"||localName==="input"&&element.getAttribute("type")!=="hidden"||localName==="meter"||localName==="output"||localName==="progress"||localName==="select"||localName==="textarea"}function findLabelableElement(element){if(isLabelableElement(element))return element;var labelableElement=null;return element.childNodes.forEach(function(childNode){if(labelableElement===null&&isElement(childNode)){var descendantLabelableElement=findLabelableElement(childNode);descendantLabelableElement!==null&&(labelableElement=descendantLabelableElement)}}),labelableElement}function getControlOfLabel(label){if(label.control!==void 0)return label.control;var htmlFor=label.getAttribute("for");return htmlFor!==null?label.ownerDocument.getElementById(htmlFor):findLabelableElement(label)}function getLabels(element){var labelsProperty=element.labels;if(labelsProperty===null)return labelsProperty;if(labelsProperty!==void 0)return arrayFrom(labelsProperty);if(!isLabelableElement(element))return null;var document2=element.ownerDocument;return arrayFrom(document2.querySelectorAll("label")).filter(function(label){return getControlOfLabel(label)===element})}function getSlotContents(slot){var assignedNodes=slot.assignedNodes();return assignedNodes.length===0?arrayFrom(slot.childNodes):assignedNodes}function computeTextAlternative(root){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},consultedNodes=new SetLike_default,window2=safeWindow(root),_options$compute=options.compute,compute=_options$compute===void 0?"name":_options$compute,_options$computedStyl=options.computedStyleSupportsPseudoElements,computedStyleSupportsPseudoElements=_options$computedStyl===void 0?options.getComputedStyle!==void 0:_options$computedStyl,_options$getComputedS=options.getComputedStyle,getComputedStyle=_options$getComputedS===void 0?window2.getComputedStyle.bind(window2):_options$getComputedS,_options$hidden=options.hidden,hidden=_options$hidden===void 0?!1:_options$hidden;function computeMiscTextAlternative(node,context){var accumulatedText="";if(isElement(node)&&computedStyleSupportsPseudoElements){var pseudoBefore=getComputedStyle(node,"::before"),beforeContent=getTextualContent(pseudoBefore);accumulatedText="".concat(beforeContent," ").concat(accumulatedText)}var childNodes=isHTMLSlotElement(node)?getSlotContents(node):arrayFrom(node.childNodes).concat(queryIdRefs(node,"aria-owns"));if(childNodes.forEach(function(child){var result=computeTextAlternative3(child,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),display2=isElement(child)?getComputedStyle(child).getPropertyValue("display"):"inline",separator=display2!=="inline"?" ":"";accumulatedText+="".concat(separator).concat(result).concat(separator)}),isElement(node)&&computedStyleSupportsPseudoElements){var pseudoAfter=getComputedStyle(node,"::after"),afterContent=getTextualContent(pseudoAfter);accumulatedText="".concat(accumulatedText," ").concat(afterContent)}return accumulatedText.trim()}function useAttribute(element,attributeName){var attribute=element.getAttributeNode(attributeName);return attribute!==null&&!consultedNodes.has(attribute)&&attribute.value.trim()!==""?(consultedNodes.add(attribute),attribute.value):null}function computeTooltipAttributeValue(node){return isElement(node)?useAttribute(node,"title"):null}function computeElementTextAlternative(node){if(!isElement(node))return null;if(isHTMLFieldSetElement(node)){consultedNodes.add(node);for(var children=arrayFrom(node.childNodes),i=0;i<children.length;i+=1){var child=children[i];if(isHTMLLegendElement(child))return computeTextAlternative3(child,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(isHTMLTableElement(node)){consultedNodes.add(node);for(var _children=arrayFrom(node.childNodes),_i=0;_i<_children.length;_i+=1){var _child=_children[_i];if(isHTMLTableCaptionElement(_child))return computeTextAlternative3(_child,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(isSVGSVGElement(node)){consultedNodes.add(node);for(var _children2=arrayFrom(node.childNodes),_i2=0;_i2<_children2.length;_i2+=1){var _child2=_children2[_i2];if(isSVGTitleElement(_child2))return _child2.textContent}return null}else if(getLocalName(node)==="img"||getLocalName(node)==="area"){var nameFromAlt=useAttribute(node,"alt");if(nameFromAlt!==null)return nameFromAlt}else if(isHTMLOptGroupElement(node)){var nameFromLabel=useAttribute(node,"label");if(nameFromLabel!==null)return nameFromLabel}if(isHTMLInputElement(node)&&(node.type==="button"||node.type==="submit"||node.type==="reset")){var nameFromValue=useAttribute(node,"value");if(nameFromValue!==null)return nameFromValue;if(node.type==="submit")return"Submit";if(node.type==="reset")return"Reset"}var labels=getLabels(node);if(labels!==null&&labels.length!==0)return consultedNodes.add(node),arrayFrom(labels).map(function(element){return computeTextAlternative3(element,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(label){return label.length>0}).join(" ");if(isHTMLInputElement(node)&&node.type==="image"){var _nameFromAlt=useAttribute(node,"alt");if(_nameFromAlt!==null)return _nameFromAlt;var nameFromTitle=useAttribute(node,"title");return nameFromTitle!==null?nameFromTitle:"Submit Query"}if(hasAnyConcreteRoles(node,["button"])){var nameFromSubTree=computeMiscTextAlternative(node,{isEmbeddedInLabel:!1,isReferenced:!1});if(nameFromSubTree!=="")return nameFromSubTree}return null}function computeTextAlternative3(current,context){if(consultedNodes.has(current))return"";if(!hidden&&isHidden(current,getComputedStyle)&&!context.isReferenced)return consultedNodes.add(current),"";var labelAttributeNode=isElement(current)?current.getAttributeNode("aria-labelledby"):null,labelElements=labelAttributeNode!==null&&!consultedNodes.has(labelAttributeNode)?queryIdRefs(current,"aria-labelledby"):[];if(compute==="name"&&!context.isReferenced&&labelElements.length>0)return consultedNodes.add(labelAttributeNode),labelElements.map(function(element){return computeTextAlternative3(element,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var skipToStep2E=context.recursion&&isControl(current)&&compute==="name";if(!skipToStep2E){var ariaLabel=(isElement(current)&&current.getAttribute("aria-label")||"").trim();if(ariaLabel!==""&&compute==="name")return consultedNodes.add(current),ariaLabel;if(!isMarkedPresentational(current)){var elementTextAlternative=computeElementTextAlternative(current);if(elementTextAlternative!==null)return consultedNodes.add(current),elementTextAlternative}}if(hasAnyConcreteRoles(current,["menu"]))return consultedNodes.add(current),"";if(skipToStep2E||context.isEmbeddedInLabel||context.isReferenced){if(hasAnyConcreteRoles(current,["combobox","listbox"])){consultedNodes.add(current);var selectedOptions=querySelectedOptions(current);return selectedOptions.length===0?isHTMLInputElement(current)?current.value:"":arrayFrom(selectedOptions).map(function(selectedOption){return computeTextAlternative3(selectedOption,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(hasAbstractRole(current,"range"))return consultedNodes.add(current),current.hasAttribute("aria-valuetext")?current.getAttribute("aria-valuetext"):current.hasAttribute("aria-valuenow")?current.getAttribute("aria-valuenow"):current.getAttribute("value")||"";if(hasAnyConcreteRoles(current,["textbox"]))return consultedNodes.add(current),getValueOfTextbox(current)}if(allowsNameFromContent(current)||isElement(current)&&context.isReferenced||isNativeHostLanguageTextAlternativeElement(current)||isDescendantOfNativeHostLanguageTextAlternativeElement(current)){var accumulatedText2F=computeMiscTextAlternative(current,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1});if(accumulatedText2F!=="")return consultedNodes.add(current),accumulatedText2F}if(current.nodeType===current.TEXT_NODE)return consultedNodes.add(current),current.textContent||"";if(context.recursion)return consultedNodes.add(current),computeMiscTextAlternative(current,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1});var tooltipAttributeValue=computeTooltipAttributeValue(current);return tooltipAttributeValue!==null?(consultedNodes.add(current),tooltipAttributeValue):(consultedNodes.add(current),"")}return asFlatString(computeTextAlternative3(root,{isEmbeddedInLabel:!1,isReferenced:compute==="description",recursion:!1}))}function _typeof2(o){"@babel/helpers - typeof";return _typeof2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o2){return typeof o2}:function(o2){return o2&&typeof Symbol=="function"&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2},_typeof2(o)}function ownKeys(e,r2){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r2&&(o=o.filter(function(r3){return Object.getOwnPropertyDescriptor(e,r3).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r2=1;r2<arguments.length;r2++){var t=arguments[r2]!=null?arguments[r2]:{};r2%2?ownKeys(Object(t),!0).forEach(function(r3){_defineProperty2(e,r3,t[r3])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r3){Object.defineProperty(e,r3,Object.getOwnPropertyDescriptor(t,r3))})}return e}function _defineProperty2(obj,key,value){return key=_toPropertyKey2(key),key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _toPropertyKey2(arg){var key=_toPrimitive2(arg,"string");return _typeof2(key)==="symbol"?key:String(key)}function _toPrimitive2(input2,hint){if(_typeof2(input2)!=="object"||input2===null)return input2;var prim=input2[Symbol.toPrimitive];if(prim!==void 0){var res=prim.call(input2,hint||"default");if(_typeof2(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return(hint==="string"?String:Number)(input2)}function computeAccessibleDescription(root){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},description=queryIdRefs(root,"aria-describedby").map(function(element){return computeTextAlternative(element,_objectSpread(_objectSpread({},options),{},{compute:"description"}))}).join(" ");if(description===""){var ariaDescription=root.getAttribute("aria-description");description=ariaDescription===null?"":ariaDescription}if(description===""){var title=root.getAttribute("title");description=title===null?"":title}return description}function prohibitsNaming(node){return hasAnyConcreteRoles(node,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}function computeAccessibleName(root){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return prohibitsNaming(root)?"":computeTextAlternative(root,options)}var import_aria_query=__toESM(require_lib(),1),import_chalk=__toESM(require_source(),1),import_isEqualWith=__toESM(require_isEqualWith(),1),import_css=__toESM(require_css_escape(),1),GenericTypeError=class extends Error{constructor(expectedString,received,matcherFn,context){super(),Error.captureStackTrace&&Error.captureStackTrace(this,matcherFn);let withType="";try{withType=context.utils.printWithType("Received",received,context.utils.printReceived)}catch{}this.message=[context.utils.matcherHint(`${context.isNot?".not":""}.${matcherFn.name}`,"received",""),"",`${context.utils.RECEIVED_COLOR("received")} value must ${expectedString}.`,withType].join(`
29
29
  `)}},HtmlElementTypeError=class extends GenericTypeError{constructor(...args){super("be an HTMLElement or an SVGElement",...args)}},NodeTypeError=class extends GenericTypeError{constructor(...args){super("be a Node",...args)}};function checkHasWindow(htmlElement,ErrorClass,...args){if(!htmlElement||!htmlElement.ownerDocument||!htmlElement.ownerDocument.defaultView)throw new ErrorClass(htmlElement,...args)}function checkNode(node,...args){checkHasWindow(node,NodeTypeError,...args);let window2=node.ownerDocument.defaultView;if(!(node instanceof window2.Node))throw new NodeTypeError(node,...args)}function checkHtmlElement(htmlElement,...args){checkHasWindow(htmlElement,HtmlElementTypeError,...args);let window2=htmlElement.ownerDocument.defaultView;if(!(htmlElement instanceof window2.HTMLElement)&&!(htmlElement instanceof window2.SVGElement))throw new HtmlElementTypeError(htmlElement,...args)}var InvalidCSSError=class extends Error{constructor(received,matcherFn,context){super(),Error.captureStackTrace&&Error.captureStackTrace(this,matcherFn),this.message=[received.message,"",context.utils.RECEIVED_COLOR("Failing css:"),context.utils.RECEIVED_COLOR(`${received.css}`)].join(`
30
30
  `)}};function parseCSS(css,...args){let ast=$149c1bd638913645$export$98e6a39c04603d36(`selector { ${css} }`,{silent:!0}).stylesheet;if(ast.parsingErrors&&ast.parsingErrors.length>0){let{reason,line}=ast.parsingErrors[0];throw new InvalidCSSError({css,message:`Syntax error parsing expected css: ${reason} on line: ${line}`},...args)}return ast.rules[0].declarations.filter(d2=>d2.type==="declaration").reduce((obj,{property,value})=>Object.assign(obj,{[property]:value}),{})}function display(context,value){return typeof value=="string"?value:context.utils.stringify(value)}function getMessage3(context,matcher,expectedLabel,expectedValue,receivedLabel,receivedValue){return[`${matcher}
@@ -54,7 +54,7 @@ ${context.utils.RECEIVED_COLOR((0,import_redent.default)(display(context,receive
54
54
  `)}}}function toBeValid(element){checkHtmlElement(element,toBeValid,this);let isValid=!isElementInvalid(element);return{pass:isValid,message:()=>{let is=isValid?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeValid`,"element",""),"",`Received element ${is} currently valid:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join(`
55
55
  `)}}}function toHaveValue(htmlElement,expectedValue){if(checkHtmlElement(htmlElement,toHaveValue,this),htmlElement.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(htmlElement.type))throw new Error("input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead");let receivedValue=getSingleElementValue(htmlElement),expectsValue=expectedValue!==void 0,expectedTypedValue=expectedValue,receivedTypedValue=receivedValue;return expectedValue==receivedValue&&expectedValue!==receivedValue&&(expectedTypedValue=`${expectedValue} (${typeof expectedValue})`,receivedTypedValue=`${receivedValue} (${typeof receivedValue})`),{pass:expectsValue?(0,import_isEqualWith.default)(receivedValue,expectedValue,compareArraysAsSet):!!receivedValue,message:()=>{let to=this.isNot?"not to":"to",matcher=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",expectedValue);return getMessage3(this,matcher,`Expected the element ${to} have value`,expectsValue?expectedTypedValue:"(any)","Received",receivedTypedValue)}}}function toHaveDisplayValue(htmlElement,expectedValue){checkHtmlElement(htmlElement,toHaveDisplayValue,this);let tagName=htmlElement.tagName.toLowerCase();if(!["select","input","textarea"].includes(tagName))throw new Error(".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.");if(tagName==="input"&&["radio","checkbox"].includes(htmlElement.type))throw new Error(`.toHaveDisplayValue() currently does not support input[type="${htmlElement.type}"], try with another matcher instead.`);let values=getValues(tagName,htmlElement),expectedValues=getExpectedValues(expectedValue),numberOfMatchesWithValues=expectedValues.filter(expected=>values.some(value=>expected instanceof RegExp?expected.test(value):this.equals(value,String(expected)))).length,matchedWithAllValues=numberOfMatchesWithValues===values.length,matchedWithAllExpectedValues=numberOfMatchesWithValues===expectedValues.length;return{pass:matchedWithAllValues&&matchedWithAllExpectedValues,message:()=>getMessage3(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,expectedValue,"Received",values)}}function getValues(tagName,htmlElement){return tagName==="select"?Array.from(htmlElement).filter(option=>option.selected).map(option=>option.textContent):[htmlElement.value]}function getExpectedValues(expectedValue){return expectedValue instanceof Array?expectedValue:[expectedValue]}function toBeChecked(element){checkHtmlElement(element,toBeChecked,this);let isValidInput=()=>element.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(element.type),isValidAriaElement=()=>roleSupportsChecked(element.getAttribute("role"))&&["true","false"].includes(element.getAttribute("aria-checked"));if(!isValidInput()&&!isValidAriaElement())return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${supportedRolesSentence()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let isChecked=()=>isValidInput()?element.checked:element.getAttribute("aria-checked")==="true";return{pass:isChecked(),message:()=>{let is=isChecked()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeChecked`,"element",""),"",`Received element ${is} checked:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join(`
56
56
  `)}}}function supportedRolesSentence(){return toSentence(supportedRoles().map(role=>`role="${role}"`),{lastWordConnector:" or "})}function supportedRoles(){return import_aria_query.roles.keys().filter(roleSupportsChecked)}function roleSupportsChecked(role){return import_aria_query.roles.get(role)?.props["aria-checked"]!==void 0}function toBePartiallyChecked(element){checkHtmlElement(element,toBePartiallyChecked,this);let isValidInput=()=>element.tagName.toLowerCase()==="input"&&element.type==="checkbox",isValidAriaElement=()=>element.getAttribute("role")==="checkbox";if(!isValidInput()&&!isValidAriaElement())return{pass:!1,message:()=>'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead'};let isPartiallyChecked=()=>{let isAriaMixed=element.getAttribute("aria-checked")==="mixed";return isValidInput()&&element.indeterminate||isAriaMixed};return{pass:isPartiallyChecked(),message:()=>{let is=isPartiallyChecked()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyChecked`,"element",""),"",`Received element ${is} partially checked:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join(`
57
- `)}}}function toHaveDescription(htmlElement,checkWith){deprecate("toHaveDescription","Please use toHaveAccessibleDescription."),checkHtmlElement(htmlElement,toHaveDescription,this);let expectsDescription=checkWith!==void 0,descriptionIDs=(htmlElement.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),description="";if(descriptionIDs.length>0){let document2=htmlElement.ownerDocument,descriptionEls=descriptionIDs.map(descriptionID=>document2.getElementById(descriptionID)).filter(Boolean);description=normalize(descriptionEls.map(el=>el.textContent).join(" "))}return{pass:expectsDescription?checkWith instanceof RegExp?checkWith.test(description):this.equals(description,checkWith):!!description,message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${to} have description`,this.utils.printExpected(checkWith),"Received",this.utils.printReceived(description))}}}function toHaveErrorMessage(htmlElement,checkWith){if(deprecate("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),checkHtmlElement(htmlElement,toHaveErrorMessage,this),!htmlElement.hasAttribute("aria-invalid")||htmlElement.getAttribute("aria-invalid")==="false"){let not=this.isNot?".not":"";return{pass:!1,message:()=>getMessage3(this,this.utils.matcherHint(`${not}.toHaveErrorMessage`,"element",""),"Expected the element to have invalid state indicated by",'aria-invalid="true"',"Received",htmlElement.hasAttribute("aria-invalid")?`aria-invalid="${htmlElement.getAttribute("aria-invalid")}"`:this.utils.printReceived(""))}}let expectsErrorMessage=checkWith!==void 0,errormessageIDs=(htmlElement.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean),errormessage="";if(errormessageIDs.length>0){let document2=htmlElement.ownerDocument,errormessageEls=errormessageIDs.map(errormessageID=>document2.getElementById(errormessageID)).filter(Boolean);errormessage=normalize(errormessageEls.map(el=>el.textContent).join(" "))}return{pass:expectsErrorMessage?checkWith instanceof RegExp?checkWith.test(errormessage):this.equals(errormessage,checkWith):!!errormessage,message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expected the element ${to} have error message`,this.utils.printExpected(checkWith),"Received",this.utils.printReceived(errormessage))}}}var import_redent2=__toESM(require_redent(),1);var import_aria_query2=__toESM(require_lib(),1),import_chalk2=__toESM(require_source(),1),import_isEqualWith2=__toESM(require_isEqualWith(),1),import_css2=__toESM(require_css_escape(),1);function assertTypes(value,name,types){let receivedType=typeof value;if(!types.includes(receivedType))throw new TypeError(`${name} value must be ${types.join(" or ")}, received "${receivedType}"`)}function isObject(item){return item!=null&&typeof item=="object"&&!Array.isArray(item)}function isFinalObj(obj){return obj===Object.prototype||obj===Function.prototype||obj===RegExp.prototype}function getType(value){return Object.prototype.toString.apply(value).slice(8,-1)}function collectOwnProperties(obj,collector){let collect=typeof collector=="function"?collector:key=>collector.add(key);Object.getOwnPropertyNames(obj).forEach(collect),Object.getOwnPropertySymbols(obj).forEach(collect)}function getOwnProperties(obj){let ownProps=new Set;return isFinalObj(obj)?[]:(collectOwnProperties(obj,ownProps),Array.from(ownProps))}var defaultCloneOptions={forceWritable:!1};function deepClone(val,options=defaultCloneOptions){return clone(val,new WeakMap,options)}function clone(val,seen,options=defaultCloneOptions){let k2,out;if(seen.has(val))return seen.get(val);if(Array.isArray(val)){for(out=Array(k2=val.length),seen.set(val,out);k2--;)out[k2]=clone(val[k2],seen,options);return out}if(Object.prototype.toString.call(val)==="[object Object]"){out=Object.create(Object.getPrototypeOf(val)),seen.set(val,out);let props=getOwnProperties(val);for(let k22 of props){let descriptor=Object.getOwnPropertyDescriptor(val,k22);if(!descriptor)continue;let cloned=clone(val[k22],seen,options);options.forceWritable?Object.defineProperty(out,k22,{enumerable:descriptor.enumerable,configurable:!0,writable:!0,value:cloned}):"get"in descriptor?Object.defineProperty(out,k22,{...descriptor,get(){return cloned}}):Object.defineProperty(out,k22,{...descriptor,value:cloned})}return out}return val}var ansiColors2={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},styles2={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},truncator2="\u2026";function colorise2(value,styleType){let color=ansiColors2[styles2[styleType]]||ansiColors2[styleType]||"";return color?`\x1B[${color[0]}m${String(value)}\x1B[${color[1]}m`:String(value)}function normaliseOptions2({showHidden=!1,depth=2,colors=!1,customInspect=!0,showProxy=!1,maxArrayLength=1/0,breakLength=1/0,seen=[],truncate:truncate3=1/0,stylize=String}={},inspect5){let options={showHidden:!!showHidden,depth:Number(depth),colors:!!colors,customInspect:!!customInspect,showProxy:!!showProxy,maxArrayLength:Number(maxArrayLength),breakLength:Number(breakLength),truncate:Number(truncate3),seen,inspect:inspect5,stylize};return options.colors&&(options.stylize=colorise2),options}function isHighSurrogate2(char){return char>="\uD800"&&char<="\uDBFF"}function truncate2(string,length,tail=truncator2){string=String(string);let tailLength=tail.length,stringLength=string.length;if(tailLength>length&&stringLength>tailLength)return tail;if(stringLength>length&&stringLength>tailLength){let end=length-tailLength;return end>0&&isHighSurrogate2(string[end-1])&&(end=end-1),`${string.slice(0,end)}${tail}`}return string}function inspectList2(list,options,inspectItem,separator=", "){inspectItem=inspectItem||options.inspect;let size=list.length;if(size===0)return"";let originalLength=options.truncate,output="",peek="",truncated="";for(let i=0;i<size;i+=1){let last=i+1===list.length,secondToLast=i+2===list.length;truncated=`${truncator2}(${list.length-i})`;let value=list[i];options.truncate=originalLength-output.length-(last?0:separator.length);let string=peek||inspectItem(value,options)+(last?"":separator),nextLength=output.length+string.length,truncatedLength=nextLength+truncated.length;if(last&&nextLength>originalLength&&output.length+truncated.length<=originalLength||!last&&!secondToLast&&truncatedLength>originalLength||(peek=last?"":inspectItem(list[i+1],options)+(secondToLast?"":separator),!last&&secondToLast&&truncatedLength>originalLength&&nextLength+peek.length>originalLength))break;if(output+=string,!last&&!secondToLast&&nextLength+peek.length>=originalLength){truncated=`${truncator2}(${list.length-i-1})`;break}truncated=""}return`${output}${truncated}`}function quoteComplexKey2(key){return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?key:JSON.stringify(key).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function inspectProperty2([key,value],options){return options.truncate-=2,typeof key=="string"?key=quoteComplexKey2(key):typeof key!="number"&&(key=`[${options.inspect(key,options)}]`),options.truncate-=key.length,value=options.inspect(value,options),`${key}: ${value}`}function inspectArray2(array,options){let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return"[]";options.truncate-=4;let listContents=inspectList2(array,options);options.truncate-=listContents.length;let propertyContents="";return nonIndexProperties.length&&(propertyContents=inspectList2(nonIndexProperties.map(key=>[key,array[key]]),options,inspectProperty2)),`[ ${listContents}${propertyContents?`, ${propertyContents}`:""} ]`}var getArrayName2=array=>typeof Buffer=="function"&&array instanceof Buffer?"Buffer":array[Symbol.toStringTag]?array[Symbol.toStringTag]:array.constructor.name;function inspectTypedArray2(array,options){let name=getArrayName2(array);options.truncate-=name.length+4;let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return`${name}[]`;let output="";for(let i=0;i<array.length;i++){let string=`${options.stylize(truncate2(array[i],options.truncate),"number")}${i===array.length-1?"":", "}`;if(options.truncate-=string.length,array[i]!==array.length&&options.truncate<=3){output+=`${truncator2}(${array.length-array[i]+1})`;break}output+=string}let propertyContents="";return nonIndexProperties.length&&(propertyContents=inspectList2(nonIndexProperties.map(key=>[key,array[key]]),options,inspectProperty2)),`${name}[ ${output}${propertyContents?`, ${propertyContents}`:""} ]`}function inspectDate2(dateObject,options){let stringRepresentation=dateObject.toJSON();if(stringRepresentation===null)return"Invalid Date";let split=stringRepresentation.split("T"),date=split[0];return options.stylize(`${date}T${truncate2(split[1],options.truncate-date.length-1)}`,"date")}function inspectFunction2(func,options){let functionType=func[Symbol.toStringTag]||"Function",name=func.name;return name?options.stylize(`[${functionType} ${truncate2(name,options.truncate-11)}]`,"special"):options.stylize(`[${functionType}]`,"special")}function inspectMapEntry2([key,value],options){return options.truncate-=4,key=options.inspect(key,options),options.truncate-=key.length,value=options.inspect(value,options),`${key} => ${value}`}function mapToEntries2(map){let entries=[];return map.forEach((value,key)=>{entries.push([key,value])}),entries}function inspectMap2(map,options){return map.size===0?"Map{}":(options.truncate-=7,`Map{ ${inspectList2(mapToEntries2(map),options,inspectMapEntry2)} }`)}var isNaN3=Number.isNaN||(i=>i!==i);function inspectNumber2(number,options){return isNaN3(number)?options.stylize("NaN","number"):number===1/0?options.stylize("Infinity","number"):number===-1/0?options.stylize("-Infinity","number"):number===0?options.stylize(1/number===1/0?"+0":"-0","number"):options.stylize(truncate2(String(number),options.truncate),"number")}function inspectBigInt2(number,options){let nums=truncate2(number.toString(),options.truncate-1);return nums!==truncator2&&(nums+="n"),options.stylize(nums,"bigint")}function inspectRegExp2(value,options){let flags=value.toString().split("/")[2],sourceLength=options.truncate-(2+flags.length),source=value.source;return options.stylize(`/${truncate2(source,sourceLength)}/${flags}`,"regexp")}function arrayFromSet2(set2){let values=[];return set2.forEach(value=>{values.push(value)}),values}function inspectSet2(set2,options){return set2.size===0?"Set{}":(options.truncate-=7,`Set{ ${inspectList2(arrayFromSet2(set2),options)} }`)}var stringEscapeChars2=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),escapeCharacters2={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},hex2=16,unicodeLength2=4;function escape3(char){return escapeCharacters2[char]||`\\u${`0000${char.charCodeAt(0).toString(hex2)}`.slice(-unicodeLength2)}`}function inspectString2(string,options){return stringEscapeChars2.test(string)&&(string=string.replace(stringEscapeChars2,escape3)),options.stylize(`'${truncate2(string,options.truncate-2)}'`,"string")}function inspectSymbol2(value){return"description"in Symbol.prototype?value.description?`Symbol(${value.description})`:"Symbol()":value.toString()}var getPromiseValue2=()=>"Promise{\u2026}";try{let{getPromiseDetails,kPending,kRejected}=process.binding("util");Array.isArray(getPromiseDetails(Promise.resolve()))&&(getPromiseValue2=(value,options)=>{let[state,innerValue]=getPromiseDetails(value);return state===kPending?"Promise{<pending>}":`Promise${state===kRejected?"!":""}{${options.inspect(innerValue,options)}}`})}catch{}var promise_default2=getPromiseValue2;function inspectObject3(object,options){let properties=Object.getOwnPropertyNames(object),symbols=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(object):[];if(properties.length===0&&symbols.length===0)return"{}";if(options.truncate-=4,options.seen=options.seen||[],options.seen.includes(object))return"[Circular]";options.seen.push(object);let propertyContents=inspectList2(properties.map(key=>[key,object[key]]),options,inspectProperty2),symbolContents=inspectList2(symbols.map(key=>[key,object[key]]),options,inspectProperty2);options.seen.pop();let sep="";return propertyContents&&symbolContents&&(sep=", "),`{ ${propertyContents}${sep}${symbolContents} }`}var toStringTag2=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function inspectClass2(value,options){let name="";return toStringTag2&&toStringTag2 in value&&(name=value[toStringTag2]),name=name||value.constructor.name,(!name||name==="_class")&&(name="<Anonymous Class>"),options.truncate-=name.length,`${name}${inspectObject3(value,options)}`}function inspectArguments2(args,options){return args.length===0?"Arguments[]":(options.truncate-=13,`Arguments[ ${inspectList2(args,options)} ]`)}var errorKeys2=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function inspectObject4(error,options){let properties=Object.getOwnPropertyNames(error).filter(key=>errorKeys2.indexOf(key)===-1),name=error.name;options.truncate-=name.length;let message="";if(typeof error.message=="string"?message=truncate2(error.message,options.truncate):properties.unshift("message"),message=message?`: ${message}`:"",options.truncate-=message.length+5,options.seen=options.seen||[],options.seen.includes(error))return"[Circular]";options.seen.push(error);let propertyContents=inspectList2(properties.map(key=>[key,error[key]]),options,inspectProperty2);return`${name}${message}${propertyContents?` { ${propertyContents} }`:""}`}function inspectAttribute2([key,value],options){return options.truncate-=3,value?`${options.stylize(String(key),"yellow")}=${options.stylize(`"${value}"`,"string")}`:`${options.stylize(String(key),"yellow")}`}function inspectHTMLCollection2(collection,options){return inspectList2(collection,options,inspectHTML2,`
57
+ `)}}}function toHaveDescription(htmlElement,checkWith){deprecate("toHaveDescription","Please use toHaveAccessibleDescription."),checkHtmlElement(htmlElement,toHaveDescription,this);let expectsDescription=checkWith!==void 0,descriptionIDs=(htmlElement.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),description="";if(descriptionIDs.length>0){let document2=htmlElement.ownerDocument,descriptionEls=descriptionIDs.map(descriptionID=>document2.getElementById(descriptionID)).filter(Boolean);description=normalize(descriptionEls.map(el=>el.textContent).join(" "))}return{pass:expectsDescription?checkWith instanceof RegExp?checkWith.test(description):this.equals(description,checkWith):!!description,message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${to} have description`,this.utils.printExpected(checkWith),"Received",this.utils.printReceived(description))}}}function toHaveErrorMessage(htmlElement,checkWith){if(deprecate("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),checkHtmlElement(htmlElement,toHaveErrorMessage,this),!htmlElement.hasAttribute("aria-invalid")||htmlElement.getAttribute("aria-invalid")==="false"){let not=this.isNot?".not":"";return{pass:!1,message:()=>getMessage3(this,this.utils.matcherHint(`${not}.toHaveErrorMessage`,"element",""),"Expected the element to have invalid state indicated by",'aria-invalid="true"',"Received",htmlElement.hasAttribute("aria-invalid")?`aria-invalid="${htmlElement.getAttribute("aria-invalid")}"`:this.utils.printReceived(""))}}let expectsErrorMessage=checkWith!==void 0,errormessageIDs=(htmlElement.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean),errormessage="";if(errormessageIDs.length>0){let document2=htmlElement.ownerDocument,errormessageEls=errormessageIDs.map(errormessageID=>document2.getElementById(errormessageID)).filter(Boolean);errormessage=normalize(errormessageEls.map(el=>el.textContent).join(" "))}return{pass:expectsErrorMessage?checkWith instanceof RegExp?checkWith.test(errormessage):this.equals(errormessage,checkWith):!!errormessage,message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expected the element ${to} have error message`,this.utils.printExpected(checkWith),"Received",this.utils.printReceived(errormessage))}}}var import_redent2=__toESM(require_redent(),1);var import_aria_query2=__toESM(require_lib(),1),import_chalk2=__toESM(require_source(),1),import_isEqualWith2=__toESM(require_isEqualWith(),1),import_css2=__toESM(require_css_escape(),1);function assertTypes(value,name,types){let receivedType=typeof value;if(!types.includes(receivedType))throw new TypeError(`${name} value must be ${types.join(" or ")}, received "${receivedType}"`)}function isObject(item){return item!=null&&typeof item=="object"&&!Array.isArray(item)}function isFinalObj(obj){return obj===Object.prototype||obj===Function.prototype||obj===RegExp.prototype}function getType(value){return Object.prototype.toString.apply(value).slice(8,-1)}function collectOwnProperties(obj,collector){let collect=typeof collector=="function"?collector:key=>collector.add(key);Object.getOwnPropertyNames(obj).forEach(collect),Object.getOwnPropertySymbols(obj).forEach(collect)}function getOwnProperties(obj){let ownProps=new Set;return isFinalObj(obj)?[]:(collectOwnProperties(obj,ownProps),Array.from(ownProps))}var defaultCloneOptions={forceWritable:!1};function deepClone(val,options=defaultCloneOptions){return clone(val,new WeakMap,options)}function clone(val,seen,options=defaultCloneOptions){let k2,out;if(seen.has(val))return seen.get(val);if(Array.isArray(val)){for(out=Array(k2=val.length),seen.set(val,out);k2--;)out[k2]=clone(val[k2],seen,options);return out}if(Object.prototype.toString.call(val)==="[object Object]"){out=Object.create(Object.getPrototypeOf(val)),seen.set(val,out);let props=getOwnProperties(val);for(let k22 of props){let descriptor=Object.getOwnPropertyDescriptor(val,k22);if(!descriptor)continue;let cloned=clone(val[k22],seen,options);options.forceWritable?Object.defineProperty(out,k22,{enumerable:descriptor.enumerable,configurable:!0,writable:!0,value:cloned}):"get"in descriptor?Object.defineProperty(out,k22,{...descriptor,get(){return cloned}}):Object.defineProperty(out,k22,{...descriptor,value:cloned})}return out}return val}var ansiColors2={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},styles2={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},truncator2="\u2026";function colorise2(value,styleType){let color=ansiColors2[styles2[styleType]]||ansiColors2[styleType]||"";return color?`\x1B[${color[0]}m${String(value)}\x1B[${color[1]}m`:String(value)}function normaliseOptions2({showHidden=!1,depth=2,colors=!1,customInspect=!0,showProxy=!1,maxArrayLength=1/0,breakLength=1/0,seen=[],truncate:truncate3=1/0,stylize=String}={},inspect5){let options={showHidden:!!showHidden,depth:Number(depth),colors:!!colors,customInspect:!!customInspect,showProxy:!!showProxy,maxArrayLength:Number(maxArrayLength),breakLength:Number(breakLength),truncate:Number(truncate3),seen,inspect:inspect5,stylize};return options.colors&&(options.stylize=colorise2),options}function isHighSurrogate2(char){return char>="\uD800"&&char<="\uDBFF"}function truncate2(string,length,tail=truncator2){string=String(string);let tailLength=tail.length,stringLength=string.length;if(tailLength>length&&stringLength>tailLength)return tail;if(stringLength>length&&stringLength>tailLength){let end=length-tailLength;return end>0&&isHighSurrogate2(string[end-1])&&(end=end-1),`${string.slice(0,end)}${tail}`}return string}function inspectList2(list,options,inspectItem,separator=", "){inspectItem=inspectItem||options.inspect;let size=list.length;if(size===0)return"";let originalLength=options.truncate,output="",peek="",truncated="";for(let i=0;i<size;i+=1){let last=i+1===list.length,secondToLast=i+2===list.length;truncated=`${truncator2}(${list.length-i})`;let value=list[i];options.truncate=originalLength-output.length-(last?0:separator.length);let string=peek||inspectItem(value,options)+(last?"":separator),nextLength=output.length+string.length,truncatedLength=nextLength+truncated.length;if(last&&nextLength>originalLength&&output.length+truncated.length<=originalLength||!last&&!secondToLast&&truncatedLength>originalLength||(peek=last?"":inspectItem(list[i+1],options)+(secondToLast?"":separator),!last&&secondToLast&&truncatedLength>originalLength&&nextLength+peek.length>originalLength))break;if(output+=string,!last&&!secondToLast&&nextLength+peek.length>=originalLength){truncated=`${truncator2}(${list.length-i-1})`;break}truncated=""}return`${output}${truncated}`}function quoteComplexKey2(key){return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?key:JSON.stringify(key).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function inspectProperty2([key,value],options){return options.truncate-=2,typeof key=="string"?key=quoteComplexKey2(key):typeof key!="number"&&(key=`[${options.inspect(key,options)}]`),options.truncate-=key.length,value=options.inspect(value,options),`${key}: ${value}`}function inspectArray2(array,options){let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return"[]";options.truncate-=4;let listContents=inspectList2(array,options);options.truncate-=listContents.length;let propertyContents="";return nonIndexProperties.length&&(propertyContents=inspectList2(nonIndexProperties.map(key=>[key,array[key]]),options,inspectProperty2)),`[ ${listContents}${propertyContents?`, ${propertyContents}`:""} ]`}var getArrayName2=array=>typeof Buffer=="function"&&array instanceof Buffer?"Buffer":array[Symbol.toStringTag]?array[Symbol.toStringTag]:array.constructor.name;function inspectTypedArray2(array,options){let name=getArrayName2(array);options.truncate-=name.length+4;let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return`${name}[]`;let output="";for(let i=0;i<array.length;i++){let string=`${options.stylize(truncate2(array[i],options.truncate),"number")}${i===array.length-1?"":", "}`;if(options.truncate-=string.length,array[i]!==array.length&&options.truncate<=3){output+=`${truncator2}(${array.length-array[i]+1})`;break}output+=string}let propertyContents="";return nonIndexProperties.length&&(propertyContents=inspectList2(nonIndexProperties.map(key=>[key,array[key]]),options,inspectProperty2)),`${name}[ ${output}${propertyContents?`, ${propertyContents}`:""} ]`}function inspectDate2(dateObject,options){let stringRepresentation=dateObject.toJSON();if(stringRepresentation===null)return"Invalid Date";let split=stringRepresentation.split("T"),date=split[0];return options.stylize(`${date}T${truncate2(split[1],options.truncate-date.length-1)}`,"date")}function inspectFunction2(func,options){let functionType=func[Symbol.toStringTag]||"Function",name=func.name;return name?options.stylize(`[${functionType} ${truncate2(name,options.truncate-11)}]`,"special"):options.stylize(`[${functionType}]`,"special")}function inspectMapEntry2([key,value],options){return options.truncate-=4,key=options.inspect(key,options),options.truncate-=key.length,value=options.inspect(value,options),`${key} => ${value}`}function mapToEntries2(map){let entries=[];return map.forEach((value,key)=>{entries.push([key,value])}),entries}function inspectMap2(map,options){return map.size-1<=0?"Map{}":(options.truncate-=7,`Map{ ${inspectList2(mapToEntries2(map),options,inspectMapEntry2)} }`)}var isNaN3=Number.isNaN||(i=>i!==i);function inspectNumber2(number,options){return isNaN3(number)?options.stylize("NaN","number"):number===1/0?options.stylize("Infinity","number"):number===-1/0?options.stylize("-Infinity","number"):number===0?options.stylize(1/number===1/0?"+0":"-0","number"):options.stylize(truncate2(String(number),options.truncate),"number")}function inspectBigInt2(number,options){let nums=truncate2(number.toString(),options.truncate-1);return nums!==truncator2&&(nums+="n"),options.stylize(nums,"bigint")}function inspectRegExp2(value,options){let flags=value.toString().split("/")[2],sourceLength=options.truncate-(2+flags.length),source=value.source;return options.stylize(`/${truncate2(source,sourceLength)}/${flags}`,"regexp")}function arrayFromSet2(set2){let values=[];return set2.forEach(value=>{values.push(value)}),values}function inspectSet2(set2,options){return set2.size===0?"Set{}":(options.truncate-=7,`Set{ ${inspectList2(arrayFromSet2(set2),options)} }`)}var stringEscapeChars2=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),escapeCharacters2={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},hex2=16,unicodeLength2=4;function escape3(char){return escapeCharacters2[char]||`\\u${`0000${char.charCodeAt(0).toString(hex2)}`.slice(-unicodeLength2)}`}function inspectString2(string,options){return stringEscapeChars2.test(string)&&(string=string.replace(stringEscapeChars2,escape3)),options.stylize(`'${truncate2(string,options.truncate-2)}'`,"string")}function inspectSymbol2(value){return"description"in Symbol.prototype?value.description?`Symbol(${value.description})`:"Symbol()":value.toString()}var getPromiseValue2=()=>"Promise{\u2026}";try{let{getPromiseDetails,kPending,kRejected}=process.binding("util");Array.isArray(getPromiseDetails(Promise.resolve()))&&(getPromiseValue2=(value,options)=>{let[state,innerValue]=getPromiseDetails(value);return state===kPending?"Promise{<pending>}":`Promise${state===kRejected?"!":""}{${options.inspect(innerValue,options)}}`})}catch{}var promise_default2=getPromiseValue2;function inspectObject3(object,options){let properties=Object.getOwnPropertyNames(object),symbols=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(object):[];if(properties.length===0&&symbols.length===0)return"{}";if(options.truncate-=4,options.seen=options.seen||[],options.seen.includes(object))return"[Circular]";options.seen.push(object);let propertyContents=inspectList2(properties.map(key=>[key,object[key]]),options,inspectProperty2),symbolContents=inspectList2(symbols.map(key=>[key,object[key]]),options,inspectProperty2);options.seen.pop();let sep="";return propertyContents&&symbolContents&&(sep=", "),`{ ${propertyContents}${sep}${symbolContents} }`}var toStringTag2=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function inspectClass2(value,options){let name="";return toStringTag2&&toStringTag2 in value&&(name=value[toStringTag2]),name=name||value.constructor.name,(!name||name==="_class")&&(name="<Anonymous Class>"),options.truncate-=name.length,`${name}${inspectObject3(value,options)}`}function inspectArguments2(args,options){return args.length===0?"Arguments[]":(options.truncate-=13,`Arguments[ ${inspectList2(args,options)} ]`)}var errorKeys2=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function inspectObject4(error,options){let properties=Object.getOwnPropertyNames(error).filter(key=>errorKeys2.indexOf(key)===-1),name=error.name;options.truncate-=name.length;let message="";if(typeof error.message=="string"?message=truncate2(error.message,options.truncate):properties.unshift("message"),message=message?`: ${message}`:"",options.truncate-=message.length+5,options.seen=options.seen||[],options.seen.includes(error))return"[Circular]";options.seen.push(error);let propertyContents=inspectList2(properties.map(key=>[key,error[key]]),options,inspectProperty2);return`${name}${message}${propertyContents?` { ${propertyContents} }`:""}`}function inspectAttribute2([key,value],options){return options.truncate-=3,value?`${options.stylize(String(key),"yellow")}=${options.stylize(`"${value}"`,"string")}`:`${options.stylize(String(key),"yellow")}`}function inspectHTMLCollection2(collection,options){return inspectList2(collection,options,inspectHTML2,`
58
58
  `)}function inspectHTML2(element,options){let properties=element.getAttributeNames(),name=element.tagName.toLowerCase(),head=options.stylize(`<${name}`,"special"),headClose=options.stylize(">","special"),tail=options.stylize(`</${name}>`,"special");options.truncate-=name.length*2+5;let propertyContents="";properties.length>0&&(propertyContents+=" ",propertyContents+=inspectList2(properties.map(key=>[key,element.getAttribute(key)]),options,inspectAttribute2," ")),options.truncate-=propertyContents.length;let truncate3=options.truncate,children=inspectHTMLCollection2(element.children,options);return children&&children.length>truncate3&&(children=`${truncator2}(${element.children.length})`),`${head}${propertyContents}${headClose}${children}${tail}`}var symbolsSupported2=typeof Symbol=="function"&&typeof Symbol.for=="function",chaiInspect2=symbolsSupported2?Symbol.for("chai/inspect"):"@@chai/inspect",nodeInspect2=!1;try{let nodeUtil=require("util");nodeInspect2=nodeUtil.inspect?nodeUtil.inspect.custom:!1}catch{nodeInspect2=!1}var constructorMap2=new WeakMap,stringTagMap2={},baseTypesMap2={undefined:(value,options)=>options.stylize("undefined","undefined"),null:(value,options)=>options.stylize("null","null"),boolean:(value,options)=>options.stylize(String(value),"boolean"),Boolean:(value,options)=>options.stylize(String(value),"boolean"),number:inspectNumber2,Number:inspectNumber2,bigint:inspectBigInt2,BigInt:inspectBigInt2,string:inspectString2,String:inspectString2,function:inspectFunction2,Function:inspectFunction2,symbol:inspectSymbol2,Symbol:inspectSymbol2,Array:inspectArray2,Date:inspectDate2,Map:inspectMap2,Set:inspectSet2,RegExp:inspectRegExp2,Promise:promise_default2,WeakSet:(value,options)=>options.stylize("WeakSet{\u2026}","special"),WeakMap:(value,options)=>options.stylize("WeakMap{\u2026}","special"),Arguments:inspectArguments2,Int8Array:inspectTypedArray2,Uint8Array:inspectTypedArray2,Uint8ClampedArray:inspectTypedArray2,Int16Array:inspectTypedArray2,Uint16Array:inspectTypedArray2,Int32Array:inspectTypedArray2,Uint32Array:inspectTypedArray2,Float32Array:inspectTypedArray2,Float64Array:inspectTypedArray2,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:inspectObject4,HTMLCollection:inspectHTMLCollection2,NodeList:inspectHTMLCollection2},inspectCustom2=(value,options,type5)=>chaiInspect2 in value&&typeof value[chaiInspect2]=="function"?value[chaiInspect2](options):nodeInspect2&&nodeInspect2 in value&&typeof value[nodeInspect2]=="function"?value[nodeInspect2](options.depth,options):"inspect"in value&&typeof value.inspect=="function"?value.inspect(options.depth,options):"constructor"in value&&constructorMap2.has(value.constructor)?constructorMap2.get(value.constructor)(value,options):stringTagMap2[type5]?stringTagMap2[type5](value,options):"",toString2=Object.prototype.toString;function inspect3(value,opts={}){let options=normaliseOptions2(opts,inspect3),{customInspect}=options,type5=value===null?"null":typeof value;if(type5==="object"&&(type5=toString2.call(value).slice(8,-1)),type5 in baseTypesMap2)return baseTypesMap2[type5](value,options);if(customInspect&&value){let output=inspectCustom2(value,options,type5);if(output)return typeof output=="string"?output:inspect3(output,options)}let proto=value?Object.getPrototypeOf(value):!1;return proto===Object.prototype||proto===null?inspectObject3(value,options):value&&typeof HTMLElement=="function"&&value instanceof HTMLElement?inspectHTML2(value,options):"constructor"in value?value.constructor!==Object?inspectClass2(value,options):inspectObject3(value,options):value===Object(value)?inspectObject3(value,options):options.stylize(String(value),type5)}var f={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},h=Object.entries(f);function a(n){return String(n)}a.open="";a.close="";function C(n=!1){let e=typeof process<"u"?process:void 0,i=e?.env||{},g2=e?.argv||[];return!("NO_COLOR"in i||g2.includes("--no-color"))&&("FORCE_COLOR"in i||g2.includes("--color")||e?.platform==="win32"||n&&i.TERM!=="dumb"||"CI"in i)||typeof window<"u"&&!!window.chrome}function p(n=!1){let e=C(n),i=(r2,t,c,o)=>{let l2="",s=0;do l2+=r2.substring(s,o)+c,s=o+t.length,o=r2.indexOf(t,s);while(~o);return l2+r2.substring(s)},g2=(r2,t,c=r2)=>{let o=l2=>{let s=String(l2),b=s.indexOf(t,r2.length);return~b?r2+i(s,t,c,b)+t:r2+s+t};return o.open=r2,o.close=t,o},u2={isColorSupported:e},d2=r2=>`\x1B[${r2}m`;for(let[r2,t]of h)u2[r2]=e?g2(d2(t[0]),d2(t[1]),t[2]):a;return u2}var import_tty=require("tty"),p2=p((0,import_tty.isatty)(1));function getKeysOfEnumerableProperties(object,compareKeys){let rawKeys=Object.keys(object),keys2=compareKeys===null?rawKeys:rawKeys.sort(compareKeys);if(Object.getOwnPropertySymbols)for(let symbol of Object.getOwnPropertySymbols(object))Object.getOwnPropertyDescriptor(object,symbol).enumerable&&keys2.push(symbol);return keys2}function printIteratorEntries(iterator,config3,indentation,depth,refs,printer2,separator=": "){let result="",width=0,current=iterator.next();if(!current.done){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(;!current.done;){if(result+=indentationNext,width++===config3.maxWidth){result+="\u2026";break}let name=printer2(current.value[0],config3,indentationNext,depth,refs),value=printer2(current.value[1],config3,indentationNext,depth,refs);result+=name+separator+value,current=iterator.next(),current.done?config3.min||(result+=","):result+=`,${config3.spacingInner}`}result+=config3.spacingOuter+indentation}return result}function printIteratorValues(iterator,config3,indentation,depth,refs,printer2){let result="",width=0,current=iterator.next();if(!current.done){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(;!current.done;){if(result+=indentationNext,width++===config3.maxWidth){result+="\u2026";break}result+=printer2(current.value,config3,indentationNext,depth,refs),current=iterator.next(),current.done?config3.min||(result+=","):result+=`,${config3.spacingInner}`}result+=config3.spacingOuter+indentation}return result}function printListItems(list,config3,indentation,depth,refs,printer2){let result="";list=list instanceof ArrayBuffer?new DataView(list):list;let isDataView=l2=>l2 instanceof DataView,length=isDataView(list)?list.byteLength:list.length;if(length>0){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(let i=0;i<length;i++){if(result+=indentationNext,i===config3.maxWidth){result+="\u2026";break}(isDataView(list)||i in list)&&(result+=printer2(isDataView(list)?list.getInt8(i):list[i],config3,indentationNext,depth,refs)),i<length-1?result+=`,${config3.spacingInner}`:config3.min||(result+=",")}result+=config3.spacingOuter+indentation}return result}function printObjectProperties(val,config3,indentation,depth,refs,printer2){let result="",keys2=getKeysOfEnumerableProperties(val,config3.compareKeys);if(keys2.length>0){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(let i=0;i<keys2.length;i++){let key=keys2[i],name=printer2(key,config3,indentationNext,depth,refs),value=printer2(val[key],config3,indentationNext,depth,refs);result+=`${indentationNext+name}: ${value}`,i<keys2.length-1?result+=`,${config3.spacingInner}`:config3.min||(result+=",")}result+=config3.spacingOuter+indentation}return result}var asymmetricMatcher=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,SPACE$2=" ",serialize$5=(val,config3,indentation,depth,refs,printer2)=>{let stringedValue=val.toString();if(stringedValue==="ArrayContaining"||stringedValue==="ArrayNotContaining")return++depth>config3.maxDepth?`[${stringedValue}]`:`${stringedValue+SPACE$2}[${printListItems(val.sample,config3,indentation,depth,refs,printer2)}]`;if(stringedValue==="ObjectContaining"||stringedValue==="ObjectNotContaining")return++depth>config3.maxDepth?`[${stringedValue}]`:`${stringedValue+SPACE$2}{${printObjectProperties(val.sample,config3,indentation,depth,refs,printer2)}}`;if(stringedValue==="StringMatching"||stringedValue==="StringNotMatching"||stringedValue==="StringContaining"||stringedValue==="StringNotContaining")return stringedValue+SPACE$2+printer2(val.sample,config3,indentation,depth,refs);if(typeof val.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);return val.toAsymmetricMatcher()},test$5=val=>val&&val.$$typeof===asymmetricMatcher,plugin$5={serialize:serialize$5,test:test$5},SPACE$1=" ",OBJECT_NAMES=new Set(["DOMStringMap","NamedNodeMap"]),ARRAY_REGEXP=/^(?:HTML\w*Collection|NodeList)$/;function testName(name){return OBJECT_NAMES.has(name)||ARRAY_REGEXP.test(name)}var test$4=val=>val&&val.constructor&&!!val.constructor.name&&testName(val.constructor.name);function isNamedNodeMap(collection){return collection.constructor.name==="NamedNodeMap"}var serialize$4=(collection,config3,indentation,depth,refs,printer2)=>{let name=collection.constructor.name;return++depth>config3.maxDepth?`[${name}]`:(config3.min?"":name+SPACE$1)+(OBJECT_NAMES.has(name)?`{${printObjectProperties(isNamedNodeMap(collection)?[...collection].reduce((props,attribute)=>(props[attribute.name]=attribute.value,props),{}):{...collection},config3,indentation,depth,refs,printer2)}}`:`[${printListItems([...collection],config3,indentation,depth,refs,printer2)}]`)},plugin$4={serialize:serialize$4,test:test$4};function escapeHTML(str){return str.replaceAll("<","&lt;").replaceAll(">","&gt;")}function printProps(keys2,props,config3,indentation,depth,refs,printer2){let indentationNext=indentation+config3.indent,colors=config3.colors;return keys2.map(key=>{let value=props[key],printed=printer2(value,config3,indentationNext,depth,refs);return typeof value!="string"&&(printed.includes(`
59
59
  `)&&(printed=config3.spacingOuter+indentationNext+printed+config3.spacingOuter+indentation),printed=`{${printed}}`),`${config3.spacingInner+indentation+colors.prop.open+key+colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`}).join("")}function printChildren(children,config3,indentation,depth,refs,printer2){return children.map(child=>config3.spacingOuter+indentation+(typeof child=="string"?printText(child,config3):printer2(child,config3,indentation,depth,refs))).join("")}function printText(text,config3){let contentColor=config3.colors.content;return contentColor.open+escapeHTML(text)+contentColor.close}function printComment(comment,config3){let commentColor=config3.colors.comment;return`${commentColor.open}<!--${escapeHTML(comment)}-->${commentColor.close}`}function printElement(type5,printedProps,printedChildren,config3,indentation){let tagColor=config3.colors.tag;return`${tagColor.open}<${type5}${printedProps&&tagColor.close+printedProps+config3.spacingOuter+indentation+tagColor.open}${printedChildren?`>${tagColor.close}${printedChildren}${config3.spacingOuter}${indentation}${tagColor.open}</${type5}`:`${printedProps&&!config3.min?"":" "}/`}>${tagColor.close}`}function printElementAsLeaf(type5,config3){let tagColor=config3.colors.tag;return`${tagColor.open}<${type5}${tagColor.close} \u2026${tagColor.open} />${tagColor.close}`}var ELEMENT_NODE=1,TEXT_NODE=3,COMMENT_NODE=8,FRAGMENT_NODE=11,ELEMENT_REGEXP=/^(?:(?:HTML|SVG)\w*)?Element$/;function testHasAttribute(val){try{return typeof val.hasAttribute=="function"&&val.hasAttribute("is")}catch{return!1}}function testNode(val){let constructorName=val.constructor.name,{nodeType,tagName}=val,isCustomElement3=typeof tagName=="string"&&tagName.includes("-")||testHasAttribute(val);return nodeType===ELEMENT_NODE&&(ELEMENT_REGEXP.test(constructorName)||isCustomElement3)||nodeType===TEXT_NODE&&constructorName==="Text"||nodeType===COMMENT_NODE&&constructorName==="Comment"||nodeType===FRAGMENT_NODE&&constructorName==="DocumentFragment"}var test$3=val=>{var _a;return((_a=val?.constructor)==null?void 0:_a.name)&&testNode(val)};function nodeIsText(node){return node.nodeType===TEXT_NODE}function nodeIsComment(node){return node.nodeType===COMMENT_NODE}function nodeIsFragment(node){return node.nodeType===FRAGMENT_NODE}var serialize$3=(node,config3,indentation,depth,refs,printer2)=>{if(nodeIsText(node))return printText(node.data,config3);if(nodeIsComment(node))return printComment(node.data,config3);let type5=nodeIsFragment(node)?"DocumentFragment":node.tagName.toLowerCase();return++depth>config3.maxDepth?printElementAsLeaf(type5,config3):printElement(type5,printProps(nodeIsFragment(node)?[]:Array.from(node.attributes,attr=>attr.name).sort(),nodeIsFragment(node)?{}:[...node.attributes].reduce((props,attribute)=>(props[attribute.name]=attribute.value,props),{}),config3,indentation+config3.indent,depth,refs,printer2),printChildren(Array.prototype.slice.call(node.childNodes||node.children),config3,indentation+config3.indent,depth,refs,printer2),config3,indentation)},plugin$3={serialize:serialize$3,test:test$3},IS_ITERABLE_SENTINEL="@@__IMMUTABLE_ITERABLE__@@",IS_LIST_SENTINEL="@@__IMMUTABLE_LIST__@@",IS_KEYED_SENTINEL="@@__IMMUTABLE_KEYED__@@",IS_MAP_SENTINEL="@@__IMMUTABLE_MAP__@@",IS_ORDERED_SENTINEL="@@__IMMUTABLE_ORDERED__@@",IS_RECORD_SENTINEL="@@__IMMUTABLE_RECORD__@@",IS_SEQ_SENTINEL="@@__IMMUTABLE_SEQ__@@",IS_SET_SENTINEL="@@__IMMUTABLE_SET__@@",IS_STACK_SENTINEL="@@__IMMUTABLE_STACK__@@",getImmutableName=name=>`Immutable.${name}`,printAsLeaf=name=>`[${name}]`,SPACE=" ",LAZY="\u2026";function printImmutableEntries(val,config3,indentation,depth,refs,printer2,type5){return++depth>config3.maxDepth?printAsLeaf(getImmutableName(type5)):`${getImmutableName(type5)+SPACE}{${printIteratorEntries(val.entries(),config3,indentation,depth,refs,printer2)}}`}function getRecordEntries(val){let i=0;return{next(){if(i<val._keys.length){let key=val._keys[i++];return{done:!1,value:[key,val.get(key)]}}return{done:!0,value:void 0}}}}function printImmutableRecord(val,config3,indentation,depth,refs,printer2){let name=getImmutableName(val._name||"Record");return++depth>config3.maxDepth?printAsLeaf(name):`${name+SPACE}{${printIteratorEntries(getRecordEntries(val),config3,indentation,depth,refs,printer2)}}`}function printImmutableSeq(val,config3,indentation,depth,refs,printer2){let name=getImmutableName("Seq");return++depth>config3.maxDepth?printAsLeaf(name):val[IS_KEYED_SENTINEL]?`${name+SPACE}{${val._iter||val._object?printIteratorEntries(val.entries(),config3,indentation,depth,refs,printer2):LAZY}}`:`${name+SPACE}[${val._iter||val._array||val._collection||val._iterable?printIteratorValues(val.values(),config3,indentation,depth,refs,printer2):LAZY}]`}function printImmutableValues(val,config3,indentation,depth,refs,printer2,type5){return++depth>config3.maxDepth?printAsLeaf(getImmutableName(type5)):`${getImmutableName(type5)+SPACE}[${printIteratorValues(val.values(),config3,indentation,depth,refs,printer2)}]`}var serialize$2=(val,config3,indentation,depth,refs,printer2)=>val[IS_MAP_SENTINEL]?printImmutableEntries(val,config3,indentation,depth,refs,printer2,val[IS_ORDERED_SENTINEL]?"OrderedMap":"Map"):val[IS_LIST_SENTINEL]?printImmutableValues(val,config3,indentation,depth,refs,printer2,"List"):val[IS_SET_SENTINEL]?printImmutableValues(val,config3,indentation,depth,refs,printer2,val[IS_ORDERED_SENTINEL]?"OrderedSet":"Set"):val[IS_STACK_SENTINEL]?printImmutableValues(val,config3,indentation,depth,refs,printer2,"Stack"):val[IS_SEQ_SENTINEL]?printImmutableSeq(val,config3,indentation,depth,refs,printer2):printImmutableRecord(val,config3,indentation,depth,refs,printer2),test$2=val=>val&&(val[IS_ITERABLE_SENTINEL]===!0||val[IS_RECORD_SENTINEL]===!0),plugin$2={serialize:serialize$2,test:test$2},reactIs={exports:{}},reactIs_production_min={};var hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d2=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f3=Symbol.for("react.profiler"),g2=Symbol.for("react.provider"),h2=Symbol.for("react.context"),k2=Symbol.for("react.server_context"),l2=Symbol.for("react.forward_ref"),m3=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p3=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen"),u2;u2=Symbol.for("react.module.reference");function v(a2){if(typeof a2=="object"&&a2!==null){var r2=a2.$$typeof;switch(r2){case b:switch(a2=a2.type,a2){case d2:case f3:case e:case m3:case n:return a2;default:switch(a2=a2&&a2.$$typeof,a2){case k2:case h2:case l2:case q:case p3:case g2:return a2;default:return r2}}case c:return r2}}}return reactIs_production_min.ContextConsumer=h2,reactIs_production_min.ContextProvider=g2,reactIs_production_min.Element=b,reactIs_production_min.ForwardRef=l2,reactIs_production_min.Fragment=d2,reactIs_production_min.Lazy=q,reactIs_production_min.Memo=p3,reactIs_production_min.Portal=c,reactIs_production_min.Profiler=f3,reactIs_production_min.StrictMode=e,reactIs_production_min.Suspense=m3,reactIs_production_min.SuspenseList=n,reactIs_production_min.isAsyncMode=function(){return!1},reactIs_production_min.isConcurrentMode=function(){return!1},reactIs_production_min.isContextConsumer=function(a2){return v(a2)===h2},reactIs_production_min.isContextProvider=function(a2){return v(a2)===g2},reactIs_production_min.isElement=function(a2){return typeof a2=="object"&&a2!==null&&a2.$$typeof===b},reactIs_production_min.isForwardRef=function(a2){return v(a2)===l2},reactIs_production_min.isFragment=function(a2){return v(a2)===d2},reactIs_production_min.isLazy=function(a2){return v(a2)===q},reactIs_production_min.isMemo=function(a2){return v(a2)===p3},reactIs_production_min.isPortal=function(a2){return v(a2)===c},reactIs_production_min.isProfiler=function(a2){return v(a2)===f3},reactIs_production_min.isStrictMode=function(a2){return v(a2)===e},reactIs_production_min.isSuspense=function(a2){return v(a2)===m3},reactIs_production_min.isSuspenseList=function(a2){return v(a2)===n},reactIs_production_min.isValidElementType=function(a2){return typeof a2=="string"||typeof a2=="function"||a2===d2||a2===f3||a2===e||a2===m3||a2===n||a2===t||typeof a2=="object"&&a2!==null&&(a2.$$typeof===q||a2.$$typeof===p3||a2.$$typeof===g2||a2.$$typeof===h2||a2.$$typeof===l2||a2.$$typeof===u2||a2.getModuleId!==void 0)},reactIs_production_min.typeOf=v,reactIs_production_min}var reactIs_development={};var hasRequiredReactIs_development;function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,process.env.NODE_ENV!=="production"&&function(){var REACT_ELEMENT_TYPE=Symbol.for("react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_SERVER_CONTEXT_TYPE=Symbol.for("react.server_context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_OFFSCREEN_TYPE=Symbol.for("react.offscreen"),enableScopeAPI=!1,enableCacheElement=!1,enableTransitionTracing=!1,enableLegacyHidden=!1,enableDebugTracing=!1,REACT_MODULE_REFERENCE;REACT_MODULE_REFERENCE=Symbol.for("react.module.reference");function isValidElementType(type5){return!!(typeof type5=="string"||typeof type5=="function"||type5===REACT_FRAGMENT_TYPE||type5===REACT_PROFILER_TYPE||enableDebugTracing||type5===REACT_STRICT_MODE_TYPE||type5===REACT_SUSPENSE_TYPE||type5===REACT_SUSPENSE_LIST_TYPE||enableLegacyHidden||type5===REACT_OFFSCREEN_TYPE||enableScopeAPI||enableCacheElement||enableTransitionTracing||typeof type5=="object"&&type5!==null&&(type5.$$typeof===REACT_LAZY_TYPE||type5.$$typeof===REACT_MEMO_TYPE||type5.$$typeof===REACT_PROVIDER_TYPE||type5.$$typeof===REACT_CONTEXT_TYPE||type5.$$typeof===REACT_FORWARD_REF_TYPE||type5.$$typeof===REACT_MODULE_REFERENCE||type5.getModuleId!==void 0))}function typeOf(object){if(typeof object=="object"&&object!==null){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type5=object.type;switch(type5){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:return type5;default:var $$typeofType=type5&&type5.$$typeof;switch($$typeofType){case REACT_SERVER_CONTEXT_TYPE:case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}}var ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element2=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,SuspenseList=REACT_SUSPENSE_LIST_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1,hasWarnedAboutDeprecatedIsConcurrentMode=!1;function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function isConcurrentMode(object){return hasWarnedAboutDeprecatedIsConcurrentMode||(hasWarnedAboutDeprecatedIsConcurrentMode=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE}function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE}function isElement5(object){return typeof object=="object"&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE}function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE}function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE}function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE}function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE}function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE}function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE}function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE}function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE}function isSuspenseList(object){return typeOf(object)===REACT_SUSPENSE_LIST_TYPE}reactIs_development.ContextConsumer=ContextConsumer,reactIs_development.ContextProvider=ContextProvider,reactIs_development.Element=Element2,reactIs_development.ForwardRef=ForwardRef,reactIs_development.Fragment=Fragment,reactIs_development.Lazy=Lazy,reactIs_development.Memo=Memo,reactIs_development.Portal=Portal,reactIs_development.Profiler=Profiler,reactIs_development.StrictMode=StrictMode,reactIs_development.Suspense=Suspense,reactIs_development.SuspenseList=SuspenseList,reactIs_development.isAsyncMode=isAsyncMode,reactIs_development.isConcurrentMode=isConcurrentMode,reactIs_development.isContextConsumer=isContextConsumer,reactIs_development.isContextProvider=isContextProvider,reactIs_development.isElement=isElement5,reactIs_development.isForwardRef=isForwardRef,reactIs_development.isFragment=isFragment,reactIs_development.isLazy=isLazy,reactIs_development.isMemo=isMemo,reactIs_development.isPortal=isPortal,reactIs_development.isProfiler=isProfiler,reactIs_development.isStrictMode=isStrictMode,reactIs_development.isSuspense=isSuspense,reactIs_development.isSuspenseList=isSuspenseList,reactIs_development.isValidElementType=isValidElementType,reactIs_development.typeOf=typeOf}()),reactIs_development}process.env.NODE_ENV==="production"?reactIs.exports=requireReactIs_production_min():reactIs.exports=requireReactIs_development();var reactIsExports=reactIs.exports;function getChildren(arg,children=[]){if(Array.isArray(arg))for(let item of arg)getChildren(item,children);else arg!=null&&arg!==!1&&arg!==""&&children.push(arg);return children}function getType2(element){let type5=element.type;if(typeof type5=="string")return type5;if(typeof type5=="function")return type5.displayName||type5.name||"Unknown";if(reactIsExports.isFragment(element))return"React.Fragment";if(reactIsExports.isSuspense(element))return"React.Suspense";if(typeof type5=="object"&&type5!==null){if(reactIsExports.isContextProvider(element))return"Context.Provider";if(reactIsExports.isContextConsumer(element))return"Context.Consumer";if(reactIsExports.isForwardRef(element)){if(type5.displayName)return type5.displayName;let functionName=type5.render.displayName||type5.render.name||"";return functionName===""?"ForwardRef":`ForwardRef(${functionName})`}if(reactIsExports.isMemo(element)){let functionName=type5.displayName||type5.type.displayName||type5.type.name||"";return functionName===""?"Memo":`Memo(${functionName})`}}return"UNDEFINED"}function getPropKeys$1(element){let{props}=element;return Object.keys(props).filter(key=>key!=="children"&&props[key]!==void 0).sort()}var serialize$1=(element,config3,indentation,depth,refs,printer2)=>++depth>config3.maxDepth?printElementAsLeaf(getType2(element),config3):printElement(getType2(element),printProps(getPropKeys$1(element),element.props,config3,indentation+config3.indent,depth,refs,printer2),printChildren(getChildren(element.props.children),config3,indentation+config3.indent,depth,refs,printer2),config3,indentation),test$1=val=>val!=null&&reactIsExports.isElement(val),plugin$1={serialize:serialize$1,test:test$1},testSymbol=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function getPropKeys(object){let{props}=object;return props?Object.keys(props).filter(key=>props[key]!==void 0).sort():[]}var serialize=(object,config3,indentation,depth,refs,printer2)=>++depth>config3.maxDepth?printElementAsLeaf(object.type,config3):printElement(object.type,object.props?printProps(getPropKeys(object),object.props,config3,indentation+config3.indent,depth,refs,printer2):"",object.children?printChildren(object.children,config3,indentation+config3.indent,depth,refs,printer2):"",config3,indentation),test2=val=>val&&val.$$typeof===testSymbol,plugin={serialize,test:test2},toString3=Object.prototype.toString,toISOString=Date.prototype.toISOString,errorToString=Error.prototype.toString,regExpToString=RegExp.prototype.toString;function getConstructorName2(val){return typeof val.constructor=="function"&&val.constructor.name||"Object"}function isWindow(val){return typeof window<"u"&&val===window}var SYMBOL_REGEXP=/^Symbol\((.*)\)(.*)$/,NEWLINE_REGEXP=/\n/g,PrettyFormatPluginError=class extends Error{constructor(message,stack){super(message),this.stack=stack,this.name=this.constructor.name}};function isToStringedArrayType(toStringed){return toStringed==="[object Array]"||toStringed==="[object ArrayBuffer]"||toStringed==="[object DataView]"||toStringed==="[object Float32Array]"||toStringed==="[object Float64Array]"||toStringed==="[object Int8Array]"||toStringed==="[object Int16Array]"||toStringed==="[object Int32Array]"||toStringed==="[object Uint8Array]"||toStringed==="[object Uint8ClampedArray]"||toStringed==="[object Uint16Array]"||toStringed==="[object Uint32Array]"}function printNumber(val){return Object.is(val,-0)?"-0":String(val)}function printBigInt(val){return`${val}n`}function printFunction(val,printFunctionName){return printFunctionName?`[Function ${val.name||"anonymous"}]`:"[Function]"}function printSymbol(val){return String(val).replace(SYMBOL_REGEXP,"Symbol($1)")}function printError(val){return`[${errorToString.call(val)}]`}function printBasicValue(val,printFunctionName,escapeRegex,escapeString){if(val===!0||val===!1)return`${val}`;if(val===void 0)return"undefined";if(val===null)return"null";let typeOf=typeof val;if(typeOf==="number")return printNumber(val);if(typeOf==="bigint")return printBigInt(val);if(typeOf==="string")return escapeString?`"${val.replaceAll(/"|\\/g,"\\$&")}"`:`"${val}"`;if(typeOf==="function")return printFunction(val,printFunctionName);if(typeOf==="symbol")return printSymbol(val);let toStringed=toString3.call(val);return toStringed==="[object WeakMap]"?"WeakMap {}":toStringed==="[object WeakSet]"?"WeakSet {}":toStringed==="[object Function]"||toStringed==="[object GeneratorFunction]"?printFunction(val,printFunctionName):toStringed==="[object Symbol]"?printSymbol(val):toStringed==="[object Date]"?Number.isNaN(+val)?"Date { NaN }":toISOString.call(val):toStringed==="[object Error]"?printError(val):toStringed==="[object RegExp]"?escapeRegex?regExpToString.call(val).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):regExpToString.call(val):val instanceof Error?printError(val):null}function printComplexValue(val,config3,indentation,depth,refs,hasCalledToJSON){if(refs.includes(val))return"[Circular]";refs=[...refs],refs.push(val);let hitMaxDepth=++depth>config3.maxDepth,min=config3.min;if(config3.callToJSON&&!hitMaxDepth&&val.toJSON&&typeof val.toJSON=="function"&&!hasCalledToJSON)return printer(val.toJSON(),config3,indentation,depth,refs,!0);let toStringed=toString3.call(val);return toStringed==="[object Arguments]"?hitMaxDepth?"[Arguments]":`${min?"":"Arguments "}[${printListItems(val,config3,indentation,depth,refs,printer)}]`:isToStringedArrayType(toStringed)?hitMaxDepth?`[${val.constructor.name}]`:`${min||!config3.printBasicPrototype&&val.constructor.name==="Array"?"":`${val.constructor.name} `}[${printListItems(val,config3,indentation,depth,refs,printer)}]`:toStringed==="[object Map]"?hitMaxDepth?"[Map]":`Map {${printIteratorEntries(val.entries(),config3,indentation,depth,refs,printer," => ")}}`:toStringed==="[object Set]"?hitMaxDepth?"[Set]":`Set {${printIteratorValues(val.values(),config3,indentation,depth,refs,printer)}}`:hitMaxDepth||isWindow(val)?`[${getConstructorName2(val)}]`:`${min||!config3.printBasicPrototype&&getConstructorName2(val)==="Object"?"":`${getConstructorName2(val)} `}{${printObjectProperties(val,config3,indentation,depth,refs,printer)}}`}function isNewPlugin(plugin2){return plugin2.serialize!=null}function printPlugin(plugin2,val,config3,indentation,depth,refs){let printed;try{printed=isNewPlugin(plugin2)?plugin2.serialize(val,config3,indentation,depth,refs,printer):plugin2.print(val,valChild=>printer(valChild,config3,indentation,depth,refs),str=>{let indentationNext=indentation+config3.indent;return indentationNext+str.replaceAll(NEWLINE_REGEXP,`
60
60
  ${indentationNext}`)},{edgeSpacing:config3.spacingOuter,min:config3.min,spacing:config3.spacingInner},config3.colors)}catch(error){throw new PrettyFormatPluginError(error.message,error.stack)}if(typeof printed!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`);return printed}function findPlugin(plugins22,val){for(let plugin2 of plugins22)try{if(plugin2.test(val))return plugin2}catch(error){throw new PrettyFormatPluginError(error.message,error.stack)}return null}function printer(val,config3,indentation,depth,refs,hasCalledToJSON){let plugin2=findPlugin(config3.plugins,val);if(plugin2!==null)return printPlugin(plugin2,val,config3,indentation,depth,refs);let basicResult=printBasicValue(val,config3.printFunctionName,config3.escapeRegex,config3.escapeString);return basicResult!==null?basicResult:printComplexValue(val,config3,indentation,depth,refs,hasCalledToJSON)}var DEFAULT_THEME={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},DEFAULT_THEME_KEYS=Object.keys(DEFAULT_THEME),DEFAULT_OPTIONS={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:DEFAULT_THEME};function validateOptions(options){for(let key of Object.keys(options))if(!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS,key))throw new Error(`pretty-format: Unknown option "${key}".`);if(options.min&&options.indent!==void 0&&options.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function getColorsHighlight(){return DEFAULT_THEME_KEYS.reduce((colors,key)=>{let value=DEFAULT_THEME[key],color=value&&p2[value];if(color&&typeof color.close=="string"&&typeof color.open=="string")colors[key]=color;else throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`);return colors},Object.create(null))}function getColorsEmpty(){return DEFAULT_THEME_KEYS.reduce((colors,key)=>(colors[key]={close:"",open:""},colors),Object.create(null))}function getPrintFunctionName(options){return options?.printFunctionName??DEFAULT_OPTIONS.printFunctionName}function getEscapeRegex(options){return options?.escapeRegex??DEFAULT_OPTIONS.escapeRegex}function getEscapeString(options){return options?.escapeString??DEFAULT_OPTIONS.escapeString}function getConfig(options){return{callToJSON:options?.callToJSON??DEFAULT_OPTIONS.callToJSON,colors:options?.highlight?getColorsHighlight():getColorsEmpty(),compareKeys:typeof options?.compareKeys=="function"||options?.compareKeys===null?options.compareKeys:DEFAULT_OPTIONS.compareKeys,escapeRegex:getEscapeRegex(options),escapeString:getEscapeString(options),indent:options?.min?"":createIndent(options?.indent??DEFAULT_OPTIONS.indent),maxDepth:options?.maxDepth??DEFAULT_OPTIONS.maxDepth,maxWidth:options?.maxWidth??DEFAULT_OPTIONS.maxWidth,min:options?.min??DEFAULT_OPTIONS.min,plugins:options?.plugins??DEFAULT_OPTIONS.plugins,printBasicPrototype:options?.printBasicPrototype??!0,printFunctionName:getPrintFunctionName(options),spacingInner:options?.min?" ":`
@@ -182,7 +182,7 @@ Unable to find an `+(hidden===!1?"accessible ":"")+'element with the role "'+rol
182
182
  for more information about how userEvent parses your input.`}function cloneEvent(event){return new event.constructor(event.type,event)}var ApiLevel;(function(ApiLevel2){ApiLevel2[ApiLevel2.Trigger=2]="Trigger",ApiLevel2[ApiLevel2.Call=1]="Call"})(ApiLevel||(ApiLevel={}));function setLevelRef(instance,level){instance.levelRefs[level]={}}function getLevelRef(instance,level){return instance.levelRefs[level]}var PointerEventsCheckLevel;(function(PointerEventsCheckLevel2){PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachTrigger=4]="EachTrigger",PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachApiCall=2]="EachApiCall",PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachTarget=1]="EachTarget",PointerEventsCheckLevel2[PointerEventsCheckLevel2.Never=0]="Never"})(PointerEventsCheckLevel||(PointerEventsCheckLevel={}));function isDisabled2(element){for(let el=element;el;el=el.parentElement)if(isElementType(el,["button","input","select","textarea","optgroup","option"])){if(el.hasAttribute("disabled"))return!0}else if(isElementType(el,"fieldset")){var _el_querySelector;if(el.hasAttribute("disabled")&&!(!((_el_querySelector=el.querySelector(":scope > legend"))===null||_el_querySelector===void 0)&&_el_querySelector.contains(element)))return!0}else if(el.tagName.includes("-")&&el.constructor.formAssociated&&el.hasAttribute("disabled"))return!0;return!1}function getActiveElement(document2){let activeElement=document2.activeElement;return activeElement?.shadowRoot?getActiveElement(activeElement.shadowRoot):isDisabled2(activeElement)?document2.ownerDocument?document2.ownerDocument.body:document2.body:activeElement}function getActiveElementOrBody(document2){var _getActiveElement;return(_getActiveElement=getActiveElement(document2))!==null&&_getActiveElement!==void 0?_getActiveElement:document2.body}function findClosest(element,callback){let el=element;do{if(callback(el))return el;el=el.parentElement}while(el&&el!==element.ownerDocument.body)}function hasOwnSelection(node){return isElement3(node)&&isEditableInputOrTextArea(node)}function hasNoSelection(node){return isElement3(node)&&isClickableInput(node)}function isElement3(node){return node.nodeType===1}function updateSelectionOnFocus(element){let selection=element.ownerDocument.getSelection();if(selection?.focusNode&&hasOwnSelection(element)){let contenteditable=getContentEditable(selection.focusNode);if(contenteditable){if(!selection.isCollapsed){var _contenteditable_firstChild;let focusNode=((_contenteditable_firstChild=contenteditable.firstChild)===null||_contenteditable_firstChild===void 0?void 0:_contenteditable_firstChild.nodeType)===3?contenteditable.firstChild:contenteditable;selection.setBaseAndExtent(focusNode,0,focusNode,0)}}else selection.setBaseAndExtent(element,0,element,0)}}function wrapEvent(cb,_element){return getConfig2().eventWrapper(cb)}function focusElement(element){let target=findClosest(element,isFocusable),activeElement=getActiveElement(element.ownerDocument);(target??element.ownerDocument.body)!==activeElement&&(target?wrapEvent(()=>target.focus()):wrapEvent(()=>activeElement?.blur()),updateSelectionOnFocus(target??element.ownerDocument.body))}function blurElement(element){!isFocusable(element)||!(getActiveElement(element.ownerDocument)===element)||wrapEvent(()=>element.blur())}var behavior={};behavior.click=(event,target,instance)=>{let context=target.closest("button,input,label,select,textarea"),control=context&&isElementType(context,"label")&&context.control;if(control)return()=>{isFocusable(control)&&focusElement(control),instance.dispatchEvent(control,cloneEvent(event))};if(isElementType(target,"input",{type:"file"}))return()=>{blurElement(target),target.dispatchEvent(new(getWindow(target)).Event("fileDialog")),focusElement(target)}};var UIValue=Symbol("Displayed value in UI"),UISelection=Symbol("Displayed selection in UI"),InitialValue=Symbol("Initial value to compare on blur");function isUIValue(value){return typeof value=="object"&&UIValue in value}function isUISelectionStart(start){return!!start&&typeof start=="object"&&UISelection in start}function setUIValue(element,value){element[InitialValue]===void 0&&(element[InitialValue]=element.value),element[UIValue]=value,element.value=Object.assign(new String(value),{[UIValue]:!0})}function getUIValue(element){return element[UIValue]===void 0?element.value:String(element[UIValue])}function setUIValueClean(element){element[UIValue]=void 0}function clearInitialValue(element){element[InitialValue]=void 0}function getInitialValue(element){return element[InitialValue]}function setUISelectionRaw(element,selection){element[UISelection]=selection}function setUISelection(element,{focusOffset:focusOffsetParam,anchorOffset:anchorOffsetParam=focusOffsetParam},mode="replace"){let valueLength=getUIValue(element).length,sanitizeOffset=o=>Math.max(0,Math.min(valueLength,o)),anchorOffset=mode==="replace"||element[UISelection]===void 0?sanitizeOffset(anchorOffsetParam):element[UISelection].anchorOffset,focusOffset=sanitizeOffset(focusOffsetParam),startOffset=Math.min(anchorOffset,focusOffset),endOffset=Math.max(anchorOffset,focusOffset);if(element[UISelection]={anchorOffset,focusOffset},element.selectionStart===startOffset&&element.selectionEnd===endOffset)return;let startObj=Object.assign(new Number(startOffset),{[UISelection]:!0});try{element.setSelectionRange(startObj,endOffset)}catch{}}function getUISelection(element){var _element_selectionStart,_element_selectionEnd,_element_UISelection;let sel=(_element_UISelection=element[UISelection])!==null&&_element_UISelection!==void 0?_element_UISelection:{anchorOffset:(_element_selectionStart=element.selectionStart)!==null&&_element_selectionStart!==void 0?_element_selectionStart:0,focusOffset:(_element_selectionEnd=element.selectionEnd)!==null&&_element_selectionEnd!==void 0?_element_selectionEnd:0};return{...sel,startOffset:Math.min(sel.anchorOffset,sel.focusOffset),endOffset:Math.max(sel.anchorOffset,sel.focusOffset)}}function hasUISelection(element){return!!element[UISelection]}function setUISelectionClean(element){element[UISelection]=void 0}var parseInt2=globalThis.parseInt;function buildTimeValue(value){let onlyDigitsValue=value.replace(/\D/g,"");if(onlyDigitsValue.length<2)return value;let firstDigit=parseInt2(onlyDigitsValue[0],10),secondDigit=parseInt2(onlyDigitsValue[1],10);if(firstDigit>=3||firstDigit===2&&secondDigit>=4){let index;return firstDigit>=3?index=1:index=2,build2(onlyDigitsValue,index)}return value.length===2?value:build2(onlyDigitsValue,2)}function build2(onlyDigitsValue,index){let hours=onlyDigitsValue.slice(0,index),validHours=Math.min(parseInt2(hours,10),23),minuteCharacters=onlyDigitsValue.slice(index),parsedMinutes=parseInt2(minuteCharacters,10),validMinutes=Math.min(parsedMinutes,59);return`${validHours.toString().padStart(2,"0")}:${validMinutes.toString().padStart(2,"0")}`}function isValidDateOrTimeValue(element,value){let clone2=element.cloneNode();return clone2.value=value,clone2.value===value}function getNextCursorPosition(node,offset,direction,inputType){if(isTextNode(node)&&offset+direction>=0&&offset+direction<=node.nodeValue.length)return{node,offset:offset+direction};let nextNode=getNextCharacterContentNode(node,offset,direction);if(nextNode){if(isTextNode(nextNode))return{node:nextNode,offset:direction>0?Math.min(1,nextNode.nodeValue.length):Math.max(nextNode.nodeValue.length-1,0)};if(isElementType(nextNode,"br")){let nextPlusOne=getNextCharacterContentNode(nextNode,void 0,direction);return nextPlusOne?isTextNode(nextPlusOne)?{node:nextPlusOne,offset:direction>0?0:nextPlusOne.nodeValue.length}:direction<0&&isElementType(nextPlusOne,"br")?{node:nextNode.parentNode,offset:getOffset(nextNode)}:{node:nextPlusOne.parentNode,offset:getOffset(nextPlusOne)+(direction>0?0:1)}:direction<0&&inputType==="deleteContentBackward"?{node:nextNode.parentNode,offset:getOffset(nextNode)}:void 0}else return{node:nextNode.parentNode,offset:getOffset(nextNode)+(direction>0?1:0)}}}function getNextCharacterContentNode(node,offset,direction){let nextOffset=Number(offset)+(direction<0?-1:0);return offset!==void 0&&isElement4(node)&&nextOffset>=0&&nextOffset<node.children.length&&(node=node.children[nextOffset]),walkNodes(node,direction===1?"next":"previous",isTreatedAsCharacterContent)}function isTreatedAsCharacterContent(node){if(isTextNode(node))return!0;if(isElement4(node)){if(isElementType(node,["input","textarea"]))return node.type!=="hidden";if(isElementType(node,"br"))return!0}return!1}function getOffset(node){let i=0;for(;node.previousSibling;)i++,node=node.previousSibling;return i}function isElement4(node){return node.nodeType===1}function isTextNode(node){return node.nodeType===3}function walkNodes(node,direction,callback){for(;;){var _node_ownerDocument;let sibling=node[`${direction}Sibling`];if(sibling){if(node=getDescendant(sibling,direction==="next"?"first":"last"),callback(node))return node}else if(node.parentNode&&(!isElement4(node.parentNode)||!isContentEditable(node.parentNode)&&node.parentNode!==((_node_ownerDocument=node.ownerDocument)===null||_node_ownerDocument===void 0?void 0:_node_ownerDocument.body)))node=node.parentNode;else break}}function getDescendant(node,direction){for(;node.hasChildNodes();)node=node[`${direction}Child`];return node}var TrackChanges=Symbol("Track programmatic changes for React workaround");function isReact17Element(element){return Object.getOwnPropertyNames(element).some(k2=>k2.startsWith("__react"))&&getWindow(element).REACT_VERSION===17}function startTrackValue(element){isReact17Element(element)&&(element[TrackChanges]={previousValue:String(element.value),tracked:[]})}function trackOrSetValue(element,v){var _element_TrackChanges_tracked,_element_TrackChanges;(_element_TrackChanges=element[TrackChanges])===null||_element_TrackChanges===void 0||(_element_TrackChanges_tracked=_element_TrackChanges.tracked)===null||_element_TrackChanges_tracked===void 0||_element_TrackChanges_tracked.push(v),element[TrackChanges]||(setUIValueClean(element),setUISelection(element,{focusOffset:v.length}))}function commitValueAfterInput(element,cursorOffset){var _changes_tracked;let changes=element[TrackChanges];if(element[TrackChanges]=void 0,!(!(changes==null||(_changes_tracked=changes.tracked)===null||_changes_tracked===void 0)&&_changes_tracked.length))return;let isJustReactStateUpdate=changes.tracked.length===2&&changes.tracked[0]===changes.previousValue&&changes.tracked[1]===element.value;isJustReactStateUpdate||setUIValueClean(element),hasUISelection(element)&&setUISelection(element,{focusOffset:isJustReactStateUpdate?cursorOffset:element.value.length})}function getTargetTypeAndSelection(node){let element=getElement2(node);if(element&&hasOwnSelection(element))return{type:"input",selection:getUISelection(element)};let selection=element?.ownerDocument.getSelection();return{type:getContentEditable(node)&&selection?.anchorNode&&getContentEditable(selection.anchorNode)?"contenteditable":"default",selection}}function getElement2(node){return node.nodeType===1?node:node.parentElement}function getInputRange(focusNode){let typeAndSelection=getTargetTypeAndSelection(focusNode);if(typeAndSelection.type==="input")return typeAndSelection.selection;if(typeAndSelection.type==="contenteditable"){var _typeAndSelection_selection;return(_typeAndSelection_selection=typeAndSelection.selection)===null||_typeAndSelection_selection===void 0?void 0:_typeAndSelection_selection.getRangeAt(0)}}function setSelection({focusNode,focusOffset,anchorNode=focusNode,anchorOffset=focusOffset}){var _anchorNode_ownerDocument_getSelection,_anchorNode_ownerDocument;if(getTargetTypeAndSelection(focusNode).type==="input")return setUISelection(focusNode,{anchorOffset,focusOffset});(_anchorNode_ownerDocument=anchorNode.ownerDocument)===null||_anchorNode_ownerDocument===void 0||(_anchorNode_ownerDocument_getSelection=_anchorNode_ownerDocument.getSelection())===null||_anchorNode_ownerDocument_getSelection===void 0||_anchorNode_ownerDocument_getSelection.setBaseAndExtent(anchorNode,anchorOffset,focusNode,focusOffset)}function isDateOrTime(element){return isElementType(element,"input")&&["date","time"].includes(element.type)}function input(instance,element,data,inputType="insertText"){let inputRange=getInputRange(element);inputRange&&(!isDateOrTime(element)&&!instance.dispatchUIEvent(element,"beforeinput",{inputType,data})||("startContainer"in inputRange?editContenteditable(instance,element,inputRange,data,inputType):editInputElement(instance,element,inputRange,data,inputType)))}function editContenteditable(instance,element,inputRange,data,inputType){let del=!1;if(!inputRange.collapsed)del=!0,inputRange.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(inputType)){let nextPosition=getNextCursorPosition(inputRange.startContainer,inputRange.startOffset,inputType==="deleteContentBackward"?-1:1,inputType);if(nextPosition){del=!0;let delRange=inputRange.cloneRange();delRange.comparePoint(nextPosition.node,nextPosition.offset)<0?delRange.setStart(nextPosition.node,nextPosition.offset):delRange.setEnd(nextPosition.node,nextPosition.offset),delRange.deleteContents()}}if(data)if(inputRange.endContainer.nodeType===3){let offset=inputRange.endOffset;inputRange.endContainer.insertData(offset,data),inputRange.setStart(inputRange.endContainer,offset+data.length),inputRange.setEnd(inputRange.endContainer,offset+data.length)}else{let text=element.ownerDocument.createTextNode(data);inputRange.insertNode(text),inputRange.setStart(text,data.length),inputRange.setEnd(text,data.length)}(del||data)&&instance.dispatchUIEvent(element,"input",{inputType})}function editInputElement(instance,element,inputRange,data,inputType){let dataToInsert=data;if(supportsMaxLength(element)){let maxLength=getMaxLength(element);if(maxLength!==void 0&&data.length>0){let spaceUntilMaxLength=maxLength-element.value.length;if(spaceUntilMaxLength>0)dataToInsert=data.substring(0,spaceUntilMaxLength);else return}}let{newValue,newOffset,oldValue}=calculateNewValue(dataToInsert,element,inputRange,inputType);newValue===oldValue&&newOffset===inputRange.startOffset&&newOffset===inputRange.endOffset||isElementType(element,"input",{type:"number"})&&!isValidNumberInput(newValue)||(setUIValue(element,newValue),setSelection({focusNode:element,anchorOffset:newOffset,focusOffset:newOffset}),isDateOrTime(element)?isValidDateOrTimeValue(element,newValue)&&(commitInput(instance,element,newOffset,{}),instance.dispatchUIEvent(element,"change"),clearInitialValue(element)):commitInput(instance,element,newOffset,{data,inputType}))}function calculateNewValue(inputData,node,{startOffset,endOffset},inputType){let value=getUIValue(node),prologEnd=Math.max(0,startOffset===endOffset&&inputType==="deleteContentBackward"?startOffset-1:startOffset),prolog=value.substring(0,prologEnd),epilogStart=Math.min(value.length,startOffset===endOffset&&inputType==="deleteContentForward"?startOffset+1:endOffset),epilog=value.substring(epilogStart,value.length),newValue=`${prolog}${inputData}${epilog}`,newOffset=prologEnd+inputData.length;if(isElementType(node,"input",{type:"time"})){let builtValue=buildTimeValue(newValue);builtValue!==""&&isValidDateOrTimeValue(node,builtValue)&&(newValue=builtValue,newOffset=builtValue.length)}return{oldValue:value,newValue,newOffset}}function commitInput(instance,element,newOffset,inputInit){instance.dispatchUIEvent(element,"input",inputInit),commitValueAfterInput(element,newOffset)}function isValidNumberInput(value){var _value_match,_value_match1;let valueParts=value.split("e",2);return!(/[^\d.\-e]/.test(value)||Number((_value_match=value.match(/-/g))===null||_value_match===void 0?void 0:_value_match.length)>2||Number((_value_match1=value.match(/\./g))===null||_value_match1===void 0?void 0:_value_match1.length)>1||valueParts[1]&&!/^-?\d*$/.test(valueParts[1]))}behavior.cut=(event,target,instance)=>()=>{isEditable(target)&&input(instance,target,"","deleteByCut")};function getValueOrTextContent(element){return element?isContentEditable(element)?element.textContent:getUIValue(element):null}function isVisible(element){let window2=getWindow(element);for(let el=element;el?.ownerDocument;el=el.parentElement){let{display:display2,visibility}=window2.getComputedStyle(el);if(display2==="none"||visibility==="hidden")return!1}return!0}function getTabDestination(activeElement,shift){let document2=activeElement.ownerDocument,focusableElements=document2.querySelectorAll(FOCUSABLE_SELECTOR),enabledElements=Array.from(focusableElements).filter(el=>el===activeElement||!(Number(el.getAttribute("tabindex"))<0||isDisabled2(el)));Number(activeElement.getAttribute("tabindex"))>=0&&enabledElements.sort((a2,b)=>{let i=Number(a2.getAttribute("tabindex")),j=Number(b.getAttribute("tabindex"));return i===j?0:i===0?1:j===0?-1:i-j});let checkedRadio={},prunedElements=[document2.body],activeRadioGroup=isElementType(activeElement,"input",{type:"radio"})?activeElement.name:void 0;enabledElements.forEach(currentElement=>{let el=currentElement;if(isElementType(el,"input",{type:"radio"})&&el.name){if(el===activeElement){prunedElements.push(el);return}else if(el.name===activeRadioGroup)return;if(el.checked){prunedElements=prunedElements.filter(e=>!isElementType(e,"input",{type:"radio",name:el.name})),prunedElements.push(el),checkedRadio[el.name]=el;return}if(typeof checkedRadio[el.name]<"u")return}prunedElements.push(el)});for(let index=prunedElements.findIndex(el=>el===activeElement);;)if(index+=shift?-1:1,index===prunedElements.length?index=0:index===-1&&(index=prunedElements.length-1),prunedElements[index]===activeElement||prunedElements[index]===document2.body||isVisible(prunedElements[index]))return prunedElements[index]}function moveSelection(node,direction){if(hasOwnSelection(node)){let selection=getUISelection(node);setSelection({focusNode:node,focusOffset:selection.startOffset===selection.endOffset?selection.focusOffset+direction:direction<0?selection.startOffset:selection.endOffset})}else{let selection=node.ownerDocument.getSelection();if(!selection?.focusNode)return;if(selection.isCollapsed){let nextPosition=getNextCursorPosition(selection.focusNode,selection.focusOffset,direction);nextPosition&&setSelection({focusNode:nextPosition.node,focusOffset:nextPosition.offset})}else selection[direction<0?"collapseToStart":"collapseToEnd"]()}}function selectAll(target){if(hasOwnSelection(target))return setSelection({focusNode:target,anchorOffset:0,focusOffset:getUIValue(target).length});var _getContentEditable;let focusNode=(_getContentEditable=getContentEditable(target))!==null&&_getContentEditable!==void 0?_getContentEditable:target.ownerDocument.body;setSelection({focusNode,anchorOffset:0,focusOffset:focusNode.childNodes.length})}function isAllSelected(target){if(hasOwnSelection(target))return getUISelection(target).startOffset===0&&getUISelection(target).endOffset===getUIValue(target).length;var _getContentEditable;let focusNode=(_getContentEditable=getContentEditable(target))!==null&&_getContentEditable!==void 0?_getContentEditable:target.ownerDocument.body,selection=target.ownerDocument.getSelection();return selection?.anchorNode===focusNode&&selection.focusNode===focusNode&&selection.anchorOffset===0&&selection.focusOffset===focusNode.childNodes.length}function setSelectionRange(element,anchorOffset,focusOffset){var _element_firstChild;if(hasOwnSelection(element))return setSelection({focusNode:element,anchorOffset,focusOffset});if(isContentEditable(element)&&((_element_firstChild=element.firstChild)===null||_element_firstChild===void 0?void 0:_element_firstChild.nodeType)===3)return setSelection({focusNode:element.firstChild,anchorOffset,focusOffset});throw new Error("Not implemented. The result of this interaction is unreliable.")}function walkRadio(instance,el,direction){let window2=getWindow(el),group=Array.from(el.ownerDocument.querySelectorAll(el.name?`input[type="radio"][name="${window2.CSS.escape(el.name)}"]`:'input[type="radio"][name=""], input[type="radio"]:not([name])'));for(let i=group.findIndex(e=>e===el)+direction;;i+=direction){if(group[i]||(i=direction>0?0:group.length-1),group[i]===el)return;isDisabled2(group[i])||(focusElement(group[i]),instance.dispatchUIEvent(group[i],"click"))}}behavior.keydown=(event,target,instance)=>{var _keydownBehavior_event_key,_keydownBehavior_event_key1;return(_keydownBehavior_event_key1=(_keydownBehavior_event_key=keydownBehavior[event.key])===null||_keydownBehavior_event_key===void 0?void 0:_keydownBehavior_event_key.call(keydownBehavior,event,target,instance))!==null&&_keydownBehavior_event_key1!==void 0?_keydownBehavior_event_key1:combinationBehavior(event,target,instance)};var keydownBehavior={ArrowDown:(event,target,instance)=>{if(isElementType(target,"input",{type:"radio"}))return()=>walkRadio(instance,target,-1)},ArrowLeft:(event,target,instance)=>isElementType(target,"input",{type:"radio"})?()=>walkRadio(instance,target,-1):()=>moveSelection(target,-1),ArrowRight:(event,target,instance)=>isElementType(target,"input",{type:"radio"})?()=>walkRadio(instance,target,1):()=>moveSelection(target,1),ArrowUp:(event,target,instance)=>{if(isElementType(target,"input",{type:"radio"}))return()=>walkRadio(instance,target,1)},Backspace:(event,target,instance)=>{if(isEditable(target))return()=>{input(instance,target,"","deleteContentBackward")}},Delete:(event,target,instance)=>{if(isEditable(target))return()=>{input(instance,target,"","deleteContentForward")}},End:(event,target)=>{if(isElementType(target,["input","textarea"])||isContentEditable(target))return()=>{var _getValueOrTextContent,_getValueOrTextContent_length;let newPos=(_getValueOrTextContent_length=(_getValueOrTextContent=getValueOrTextContent(target))===null||_getValueOrTextContent===void 0?void 0:_getValueOrTextContent.length)!==null&&_getValueOrTextContent_length!==void 0?_getValueOrTextContent_length:0;setSelectionRange(target,newPos,newPos)}},Home:(event,target)=>{if(isElementType(target,["input","textarea"])||isContentEditable(target))return()=>{setSelectionRange(target,0,0)}},PageDown:(event,target)=>{if(isElementType(target,["input"]))return()=>{let newPos=getUIValue(target).length;setSelectionRange(target,newPos,newPos)}},PageUp:(event,target)=>{if(isElementType(target,["input"]))return()=>{setSelectionRange(target,0,0)}},Tab:(event,target,instance)=>()=>{let dest=getTabDestination(target,instance.system.keyboard.modifiers.Shift);focusElement(dest),hasOwnSelection(dest)&&setUISelection(dest,{anchorOffset:0,focusOffset:dest.value.length})}},combinationBehavior=(event,target,instance)=>{if(event.code==="KeyA"&&instance.system.keyboard.modifiers.Control)return()=>selectAll(target)};behavior.keypress=(event,target,instance)=>{if(event.key==="Enter"){if(isElementType(target,"button")||isElementType(target,"input")&&ClickInputOnEnter.includes(target.type)||isElementType(target,"a")&&target.href)return()=>{instance.dispatchUIEvent(target,"click")};if(isElementType(target,"input")){let form=target.form,submit=form?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return submit?()=>instance.dispatchUIEvent(submit,"click"):form&&SubmitSingleInputOnEnter.includes(target.type)&&form.querySelectorAll("input").length===1?()=>instance.dispatchUIEvent(form,"submit"):void 0}}if(isEditable(target)){let inputType=event.key==="Enter"?isContentEditable(target)&&!instance.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",inputData=event.key==="Enter"?`
183
183
  `:event.key;return()=>input(instance,target,inputData,inputType)}};var ClickInputOnEnter=["button","color","file","image","reset","submit"],SubmitSingleInputOnEnter=["email","month","password","search","tel","text","url","week"];behavior.keyup=(event,target,instance)=>{var _keyupBehavior_event_key;return(_keyupBehavior_event_key=keyupBehavior[event.key])===null||_keyupBehavior_event_key===void 0?void 0:_keyupBehavior_event_key.call(keyupBehavior,event,target,instance)};var keyupBehavior={" ":(event,target,instance)=>{if(isClickableInput(target))return()=>instance.dispatchUIEvent(target,"click")}};behavior.paste=(event,target,instance)=>{if(isEditable(target))return()=>{var _event_clipboardData;let insertData=(_event_clipboardData=event.clipboardData)===null||_event_clipboardData===void 0?void 0:_event_clipboardData.getData("text");insertData&&input(instance,target,insertData,"insertFromPaste")}};var eventMap2={auxclick:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeinput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},click:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},contextmenu:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblclick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keydown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keypress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyup:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},mousedown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseenter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseleave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mousemove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseout:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseover:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseup:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerover:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerenter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerdown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointermove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerup:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointercancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerout:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerleave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}}};function getEventClass(type5){return eventMap2[type5].EventType}var mouseEvents=["MouseEvent","PointerEvent"];function isMouseEvent(type5){return mouseEvents.includes(getEventClass(type5))}function isKeyboardEvent(type5){return getEventClass(type5)==="KeyboardEvent"}var eventInitializer={ClipboardEvent:[initClipboardEvent],Event:[],InputEvent:[initUIEvent,initInputEvent],MouseEvent:[initUIEvent,initUIEventModififiers,initMouseEvent],PointerEvent:[initUIEvent,initUIEventModififiers,initMouseEvent,initPointerEvent],KeyboardEvent:[initUIEvent,initUIEventModififiers,initKeyboardEvent]};function createEvent2(type5,target,init){let window2=getWindow(target),{EventType,defaultInit}=eventMap2[type5],event=new(getEventConstructors(window2))[EventType](type5,defaultInit);return eventInitializer[EventType].forEach(f3=>f3(event,init??{})),event}function getEventConstructors(window2){var _window_Event;let Event=(_window_Event=window2.Event)!==null&&_window_Event!==void 0?_window_Event:class{};var _window_AnimationEvent;let AnimationEvent=(_window_AnimationEvent=window2.AnimationEvent)!==null&&_window_AnimationEvent!==void 0?_window_AnimationEvent:class extends Event{};var _window_ClipboardEvent;let ClipboardEvent=(_window_ClipboardEvent=window2.ClipboardEvent)!==null&&_window_ClipboardEvent!==void 0?_window_ClipboardEvent:class extends Event{};var _window_PopStateEvent;let PopStateEvent=(_window_PopStateEvent=window2.PopStateEvent)!==null&&_window_PopStateEvent!==void 0?_window_PopStateEvent:class extends Event{};var _window_ProgressEvent;let ProgressEvent=(_window_ProgressEvent=window2.ProgressEvent)!==null&&_window_ProgressEvent!==void 0?_window_ProgressEvent:class extends Event{};var _window_TransitionEvent;let TransitionEvent=(_window_TransitionEvent=window2.TransitionEvent)!==null&&_window_TransitionEvent!==void 0?_window_TransitionEvent:class extends Event{};var _window_UIEvent;let UIEvent=(_window_UIEvent=window2.UIEvent)!==null&&_window_UIEvent!==void 0?_window_UIEvent:class extends Event{};var _window_CompositionEvent;let CompositionEvent=(_window_CompositionEvent=window2.CompositionEvent)!==null&&_window_CompositionEvent!==void 0?_window_CompositionEvent:class extends UIEvent{};var _window_FocusEvent;let FocusEvent=(_window_FocusEvent=window2.FocusEvent)!==null&&_window_FocusEvent!==void 0?_window_FocusEvent:class extends UIEvent{};var _window_InputEvent;let InputEvent=(_window_InputEvent=window2.InputEvent)!==null&&_window_InputEvent!==void 0?_window_InputEvent:class extends UIEvent{};var _window_KeyboardEvent;let KeyboardEvent=(_window_KeyboardEvent=window2.KeyboardEvent)!==null&&_window_KeyboardEvent!==void 0?_window_KeyboardEvent:class extends UIEvent{};var _window_MouseEvent;let MouseEvent=(_window_MouseEvent=window2.MouseEvent)!==null&&_window_MouseEvent!==void 0?_window_MouseEvent:class extends UIEvent{};var _window_DragEvent;let DragEvent=(_window_DragEvent=window2.DragEvent)!==null&&_window_DragEvent!==void 0?_window_DragEvent:class extends MouseEvent{};var _window_PointerEvent;let PointerEvent=(_window_PointerEvent=window2.PointerEvent)!==null&&_window_PointerEvent!==void 0?_window_PointerEvent:class extends MouseEvent{};var _window_TouchEvent;let TouchEvent=(_window_TouchEvent=window2.TouchEvent)!==null&&_window_TouchEvent!==void 0?_window_TouchEvent:class extends UIEvent{};return{Event,AnimationEvent,ClipboardEvent,PopStateEvent,ProgressEvent,TransitionEvent,UIEvent,CompositionEvent,FocusEvent,InputEvent,KeyboardEvent,MouseEvent,DragEvent,PointerEvent,TouchEvent}}function assignProps(obj,props){for(let[key,value]of Object.entries(props))Object.defineProperty(obj,key,{get:()=>value??null})}function sanitizeNumber(n){return Number(n??0)}function initClipboardEvent(event,{clipboardData}){assignProps(event,{clipboardData})}function initInputEvent(event,{data,inputType,isComposing}){assignProps(event,{data,isComposing:!!isComposing,inputType:String(inputType)})}function initUIEvent(event,{view,detail}){assignProps(event,{view,detail:sanitizeNumber(detail??0)})}function initUIEventModififiers(event,{altKey,ctrlKey,metaKey,shiftKey,modifierAltGraph,modifierCapsLock,modifierFn,modifierFnLock,modifierNumLock,modifierScrollLock,modifierSymbol,modifierSymbolLock}){assignProps(event,{altKey:!!altKey,ctrlKey:!!ctrlKey,metaKey:!!metaKey,shiftKey:!!shiftKey,getModifierState(k2){return!!{Alt:altKey,AltGraph:modifierAltGraph,CapsLock:modifierCapsLock,Control:ctrlKey,Fn:modifierFn,FnLock:modifierFnLock,Meta:metaKey,NumLock:modifierNumLock,ScrollLock:modifierScrollLock,Shift:shiftKey,Symbol:modifierSymbol,SymbolLock:modifierSymbolLock}[k2]}})}function initKeyboardEvent(event,{key,code,location,repeat,isComposing,charCode}){assignProps(event,{key:String(key),code:String(code),location:sanitizeNumber(location),repeat:!!repeat,isComposing:!!isComposing,charCode})}function initMouseEvent(event,{x:x2,y:y2,screenX,screenY,clientX=x2,clientY=y2,button,buttons,relatedTarget}){assignProps(event,{screenX:sanitizeNumber(screenX),screenY:sanitizeNumber(screenY),clientX:sanitizeNumber(clientX),x:sanitizeNumber(clientX),clientY:sanitizeNumber(clientY),y:sanitizeNumber(clientY),button:sanitizeNumber(button),buttons:sanitizeNumber(buttons),relatedTarget})}function initPointerEvent(event,{pointerId,width,height,pressure,tangentialPressure,tiltX,tiltY,twist,pointerType,isPrimary}){assignProps(event,{pointerId:sanitizeNumber(pointerId),width:sanitizeNumber(width),height:sanitizeNumber(height),pressure:sanitizeNumber(pressure),tangentialPressure:sanitizeNumber(tangentialPressure),tiltX:sanitizeNumber(tiltX),tiltY:sanitizeNumber(tiltY),twist:sanitizeNumber(twist),pointerType:String(pointerType),isPrimary:!!isPrimary})}function dispatchUIEvent(target,type5,init,preventDefault=!1){(isMouseEvent(type5)||isKeyboardEvent(type5))&&(init={...init,...this.system.getUIEventModifiers()});let event=createEvent2(type5,target,init);return dispatchEvent.call(this,target,event,preventDefault)}function dispatchEvent(target,event,preventDefault=!1){var _behavior_type;let type5=event.type,behaviorImplementation=preventDefault?()=>{}:(_behavior_type=behavior[type5])===null||_behavior_type===void 0?void 0:_behavior_type.call(behavior,event,target,this);if(behaviorImplementation){event.preventDefault();let defaultPrevented=!1;return Object.defineProperty(event,"defaultPrevented",{get:()=>defaultPrevented}),Object.defineProperty(event,"preventDefault",{value:()=>{defaultPrevented=event.cancelable}}),wrapEvent(()=>target.dispatchEvent(event)),defaultPrevented||behaviorImplementation(),!defaultPrevented}return wrapEvent(()=>target.dispatchEvent(event))}function dispatchDOMEvent(target,type5,init){let event=createEvent2(type5,target,init);wrapEvent(()=>target.dispatchEvent(event))}var Interceptor=Symbol("Interceptor for programmatical calls");function prepareInterceptor(element,propName,interceptorImpl){let prototypeDescriptor=Object.getOwnPropertyDescriptor(element.constructor.prototype,propName),objectDescriptor=Object.getOwnPropertyDescriptor(element,propName),target=prototypeDescriptor?.set?"set":"value";if(typeof prototypeDescriptor?.[target]!="function"||prototypeDescriptor[target][Interceptor])throw new Error(`Element ${element.tagName} does not implement "${String(propName)}".`);function intercept(...args){let{applyNative=!1,realArgs,then}=interceptorImpl.call(this,...args),realFunc=(!applyNative&&objectDescriptor||prototypeDescriptor)[target];target==="set"?realFunc.call(this,realArgs):realFunc.call(this,...realArgs),then?.()}intercept[Interceptor]=Interceptor,Object.defineProperty(element,propName,{...objectDescriptor??prototypeDescriptor,[target]:intercept})}function prepareValueInterceptor(element){prepareInterceptor(element,"value",function(v){let isUI=isUIValue(v);return isUI&&startTrackValue(this),{applyNative:!!isUI,realArgs:sanitizeValue(this,v),then:isUI?void 0:()=>trackOrSetValue(this,String(v))}})}function sanitizeValue(element,v){return isElementType(element,"input",{type:"number"})&&String(v)!==""&&!Number.isNaN(Number(v))?String(Number(v)):String(v)}function prepareSelectionInterceptor(element){prepareInterceptor(element,"setSelectionRange",function(start,...others){let isUI=isUISelectionStart(start);return{applyNative:!!isUI,realArgs:[Number(start),...others],then:()=>isUI?void 0:setUISelectionClean(element)}}),prepareInterceptor(element,"selectionStart",function(v){return{realArgs:v,then:()=>setUISelectionClean(element)}}),prepareInterceptor(element,"selectionEnd",function(v){return{realArgs:v,then:()=>setUISelectionClean(element)}}),prepareInterceptor(element,"select",function(){return{realArgs:[],then:()=>setUISelectionRaw(element,{anchorOffset:0,focusOffset:getUIValue(element).length})}})}function prepareRangeTextInterceptor(element){prepareInterceptor(element,"setRangeText",function(...realArgs){return{realArgs,then:()=>{setUIValueClean(element),setUISelectionClean(element)}}})}var isPrepared=Symbol("Node prepared with document state workarounds");function prepareDocument(document2){document2[isPrepared]||(document2.addEventListener("focus",e=>{let el=e.target;prepareElement(el)},{capture:!0,passive:!0}),document2.activeElement&&prepareElement(document2.activeElement),document2.addEventListener("blur",e=>{let el=e.target,initialValue2=getInitialValue(el);initialValue2!==void 0&&(el.value!==initialValue2&&dispatchDOMEvent(el,"change"),clearInitialValue(el))},{capture:!0,passive:!0}),document2[isPrepared]=isPrepared)}function prepareElement(el){el[isPrepared]||(isElementType(el,["input","textarea"])&&(prepareValueInterceptor(el),prepareSelectionInterceptor(el),prepareRangeTextInterceptor(el)),el[isPrepared]=isPrepared)}function getDocumentFromNode(el){return isDocument2(el)?el:el.ownerDocument}function isDocument2(node){return node.nodeType===9}function wait(config3){let delay=config3.delay;if(typeof delay=="number")return Promise.all([new Promise(resolve=>globalThis.setTimeout(()=>resolve(),delay)),config3.advanceTimers(delay)])}function _define_property3(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var DOM_KEY_LOCATION;(function(DOM_KEY_LOCATION2){DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.STANDARD=0]="STANDARD",DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.LEFT=1]="LEFT",DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.RIGHT=2]="RIGHT",DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.NUMPAD=3]="NUMPAD"})(DOM_KEY_LOCATION||(DOM_KEY_LOCATION={}));var modifierKeys=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function isModifierKey(key){return modifierKeys.includes(key)}var modifierLocks=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function isModifierLock(key){return modifierLocks.includes(key)}var KeyboardHost=class{isKeyPressed(keyDef){return!!this.pressed[String(keyDef.code)]}getPressedKeys(){return Object.values(this.pressed).map(p3=>p3.keyDef)}async keydown(instance,keyDef){var _this_pressed,_code,_this_pressed_code;let key=String(keyDef.key),code=String(keyDef.code),target=getActiveElementOrBody(instance.config.document);this.setKeydownTarget(target);var _;(_=(_this_pressed=this.pressed)[_code=code])!==null&&_!==void 0||(_this_pressed[_code]={keyDef,unpreventedDefault:!1}),isModifierKey(key)&&(this.modifiers[key]=!0);let unprevented=instance.dispatchUIEvent(target,"keydown",{key,code});isModifierLock(key)&&!this.modifiers[key]&&(this.modifiers[key]=!0,this.modifierLockStart[key]=!0),(_this_pressed_code=this.pressed[code]).unpreventedDefault||(_this_pressed_code.unpreventedDefault=unprevented),unprevented&&this.hasKeyPress(key)&&instance.dispatchUIEvent(getActiveElementOrBody(instance.config.document),"keypress",{key,code,charCode:keyDef.key==="Enter"?13:String(keyDef.key).charCodeAt(0)})}async keyup(instance,keyDef){let key=String(keyDef.key),code=String(keyDef.code),unprevented=this.pressed[code].unpreventedDefault;delete this.pressed[code],isModifierKey(key)&&!Object.values(this.pressed).find(p3=>p3.keyDef.key===key)&&(this.modifiers[key]=!1),instance.dispatchUIEvent(getActiveElementOrBody(instance.config.document),"keyup",{key,code},!unprevented),isModifierLock(key)&&this.modifiers[key]&&(this.modifierLockStart[key]?this.modifierLockStart[key]=!1:this.modifiers[key]=!1)}setKeydownTarget(target){target!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=target}hasKeyPress(key){return(key.length===1||key==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(system){_define_property3(this,"system",void 0),_define_property3(this,"modifiers",{Alt:!1,AltGraph:!1,CapsLock:!1,Control:!1,Fn:!1,FnLock:!1,Meta:!1,NumLock:!1,ScrollLock:!1,Shift:!1,Symbol:!1,SymbolLock:!1}),_define_property3(this,"pressed",{}),_define_property3(this,"carryChar",""),_define_property3(this,"lastKeydownTarget",void 0),_define_property3(this,"modifierLockStart",{}),this.system=system}};var defaultKeyMap=[..."0123456789".split("").map(c=>({code:`Digit${c}`,key:c})),...")!@#$%^&*(".split("").map((c,i)=>({code:`Digit${i}`,key:c,shiftKey:!0})),..."abcdefghijklmnopqrstuvwxyz".split("").map(c=>({code:`Key${c.toUpperCase()}`,key:c})),..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map(c=>({code:`Key${c}`,key:c,shiftKey:!0})),{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:DOM_KEY_LOCATION.LEFT},{code:"AltRight",key:"Alt",location:DOM_KEY_LOCATION.RIGHT},{code:"ShiftLeft",key:"Shift",location:DOM_KEY_LOCATION.LEFT},{code:"ShiftRight",key:"Shift",location:DOM_KEY_LOCATION.RIGHT},{code:"ControlLeft",key:"Control",location:DOM_KEY_LOCATION.LEFT},{code:"ControlRight",key:"Control",location:DOM_KEY_LOCATION.RIGHT},{code:"MetaLeft",key:"Meta",location:DOM_KEY_LOCATION.LEFT},{code:"MetaRight",key:"Meta",location:DOM_KEY_LOCATION.RIGHT},{code:"OSLeft",key:"OS",location:DOM_KEY_LOCATION.LEFT},{code:"OSRight",key:"OS",location:DOM_KEY_LOCATION.RIGHT},{code:"Tab",key:"Tab"},{code:"CapsLock",key:"CapsLock"},{code:"Backspace",key:"Backspace"},{code:"Enter",key:"Enter"},{code:"Escape",key:"Escape"},{code:"ArrowUp",key:"ArrowUp"},{code:"ArrowDown",key:"ArrowDown"},{code:"ArrowLeft",key:"ArrowLeft"},{code:"ArrowRight",key:"ArrowRight"},{code:"Home",key:"Home"},{code:"End",key:"End"},{code:"Delete",key:"Delete"},{code:"PageUp",key:"PageUp"},{code:"PageDown",key:"PageDown"},{code:"Fn",key:"Fn"},{code:"Symbol",key:"Symbol"},{code:"AltRight",key:"AltGraph"}];var defaultKeyMap2=[{name:"MouseLeft",pointerType:"mouse",button:"primary"},{name:"MouseRight",pointerType:"mouse",button:"secondary"},{name:"MouseMiddle",pointerType:"mouse",button:"auxiliary"},{name:"TouchA",pointerType:"touch"},{name:"TouchB",pointerType:"touch"},{name:"TouchC",pointerType:"touch"}];function _define_property4(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var Buttons=class{getButtons(){let v=0;for(let button of Object.keys(this.pressed))v|=2**Number(button);return v}down(keyDef){let button=getMouseButtonId(keyDef.button);if(button in this.pressed){this.pressed[button].push(keyDef);return}return this.pressed[button]=[keyDef],button}up(keyDef){let button=getMouseButtonId(keyDef.button);if(button in this.pressed&&(this.pressed[button]=this.pressed[button].filter(k2=>k2.name!==keyDef.name),this.pressed[button].length===0))return delete this.pressed[button],button}constructor(){_define_property4(this,"pressed",{})}},MouseButton={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function getMouseButtonId(button=0){return button in MouseButton?MouseButton[button]:Number(button)}var MouseButtonFlip={1:2,2:1};function getMouseEventButton(button){return button=getMouseButtonId(button),button in MouseButtonFlip?MouseButtonFlip[button]:button}function _define_property5(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var Device=class{get countPressed(){return this.pressedKeys.size}isPressed(keyDef){return this.pressedKeys.has(keyDef.name)}addPressed(keyDef){return this.pressedKeys.add(keyDef.name)}removePressed(keyDef){return this.pressedKeys.delete(keyDef.name)}constructor(){_define_property5(this,"pressedKeys",new Set)}};function getTreeDiff(a2,b){let treeA=[];for(let el=a2;el;el=el.parentElement)treeA.push(el);let treeB=[];for(let el=b;el;el=el.parentElement)treeB.push(el);let i=0;for(;!(i>=treeA.length||i>=treeB.length||treeA[treeA.length-1-i]!==treeB[treeB.length-1-i]);i++);return[treeA.slice(0,treeA.length-i),treeB.slice(0,treeB.length-i),treeB.slice(treeB.length-i)]}function resolveCaretPosition({target,node,offset}){return hasOwnSelection(target)?{node:target,offset:offset??getUIValue(target).length}:node?{node,offset:offset??(node.nodeType===3?node.nodeValue.length:node.childNodes.length)}:findNodeAtTextOffset(target,offset)}function findNodeAtTextOffset(node,offset,isRoot=!0){let i=offset===void 0?node.childNodes.length-1:0,step=offset===void 0?-1:1;for(;offset===void 0?i>=(isRoot?Math.max(node.childNodes.length-1,0):0):i<=node.childNodes.length;){if(offset&&i===node.childNodes.length)throw new Error("The given offset is out of bounds.");let c=node.childNodes.item(i),text=String(c.textContent);if(text.length)if(offset!==void 0&&text.length<offset)offset-=text.length;else{if(c.nodeType===1)return findNodeAtTextOffset(c,offset,!1);if(c.nodeType===3)return{node:c,offset:offset??c.nodeValue.length}}i+=step}return{node,offset:node.childNodes.length}}function setSelectionPerMouseDown({document:document2,target,clickCount,node,offset}){if(hasNoSelection(target))return;let targetHasOwnSelection=hasOwnSelection(target),text=String(targetHasOwnSelection?getUIValue(target):target.textContent),[start,end]=node?[offset,offset]:getTextRange(text,offset,clickCount);if(targetHasOwnSelection)return setUISelection(target,{anchorOffset:start??text.length,focusOffset:end??text.length}),{node:target,start:start??0,end:end??text.length};{let{node:startNode,offset:startOffset}=resolveCaretPosition({target,node,offset:start}),{node:endNode,offset:endOffset}=resolveCaretPosition({target,node,offset:end}),range=target.ownerDocument.createRange();try{range.setStart(startNode,startOffset),range.setEnd(endNode,endOffset)}catch{throw new Error("The given offset is out of bounds.")}let selection=document2.getSelection();return selection?.removeAllRanges(),selection?.addRange(range.cloneRange()),range}}function getTextRange(text,pos,clickCount){if(clickCount%3===1||text.length===0)return[pos,pos];let textPos=pos??text.length;return clickCount%3===2?[textPos-text.substr(0,pos).match(/(\w+|\s+|\W)?$/)[0].length,pos===void 0?pos:pos+text.substr(pos).match(/^(\w+|\s+|\W)?/)[0].length]:[textPos-text.substr(0,pos).match(/[^\r\n]*$/)[0].length,pos===void 0?pos:pos+text.substr(pos).match(/^[^\r\n]*/)[0].length]}function modifySelectionPerMouseMove(selectionRange,{document:document2,target,node,offset}){let selectionFocus=resolveCaretPosition({target,node,offset});if("node"in selectionRange){if(selectionFocus.node===selectionRange.node){let anchorOffset=selectionFocus.offset<selectionRange.start?selectionRange.end:selectionRange.start,focusOffset=selectionFocus.offset>selectionRange.end||selectionFocus.offset<selectionRange.start?selectionFocus.offset:selectionRange.end;setUISelection(selectionRange.node,{anchorOffset,focusOffset})}}else{let range=selectionRange.cloneRange(),cmp=range.comparePoint(selectionFocus.node,selectionFocus.offset);cmp<0?range.setStart(selectionFocus.node,selectionFocus.offset):cmp>0&&range.setEnd(selectionFocus.node,selectionFocus.offset);let selection=document2.getSelection();selection?.removeAllRanges(),selection?.addRange(range.cloneRange())}}function isDifferentPointerPosition(positionA,positionB){var _positionA_coords,_positionB_coords,_positionA_coords1,_positionB_coords1,_positionA_caret,_positionB_caret,_positionA_caret1,_positionB_caret1;return positionA.target!==positionB.target||((_positionA_coords=positionA.coords)===null||_positionA_coords===void 0?void 0:_positionA_coords.x)!==((_positionB_coords=positionB.coords)===null||_positionB_coords===void 0?void 0:_positionB_coords.y)||((_positionA_coords1=positionA.coords)===null||_positionA_coords1===void 0?void 0:_positionA_coords1.y)!==((_positionB_coords1=positionB.coords)===null||_positionB_coords1===void 0?void 0:_positionB_coords1.y)||((_positionA_caret=positionA.caret)===null||_positionA_caret===void 0?void 0:_positionA_caret.node)!==((_positionB_caret=positionB.caret)===null||_positionB_caret===void 0?void 0:_positionB_caret.node)||((_positionA_caret1=positionA.caret)===null||_positionA_caret1===void 0?void 0:_positionA_caret1.offset)!==((_positionB_caret1=positionB.caret)===null||_positionB_caret1===void 0?void 0:_positionB_caret1.offset)}function _define_property6(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var Mouse=class{move(instance,position){let prevPosition=this.position,prevTarget=this.getTarget(instance);if(this.position=position,!isDifferentPointerPosition(prevPosition,position))return;let nextTarget=this.getTarget(instance),init=this.getEventInit("mousemove"),[leave,enter]=getTreeDiff(prevTarget,nextTarget);return{leave:()=>{prevTarget!==nextTarget&&(instance.dispatchUIEvent(prevTarget,"mouseout",init),leave.forEach(el=>instance.dispatchUIEvent(el,"mouseleave",init)))},enter:()=>{prevTarget!==nextTarget&&(instance.dispatchUIEvent(nextTarget,"mouseover",init),enter.forEach(el=>instance.dispatchUIEvent(el,"mouseenter",init)))},move:()=>{instance.dispatchUIEvent(nextTarget,"mousemove",init),this.modifySelecting(instance)}}}down(instance,keyDef,pointer3){let button=this.buttons.down(keyDef);if(button===void 0)return;let target=this.getTarget(instance);this.buttonDownTarget[button]=target;let disabled=isDisabled2(target),init=this.getEventInit("mousedown",keyDef.button);(disabled||instance.dispatchUIEvent(target,"mousedown",init))&&(this.startSelecting(instance,init.detail),focusElement(target)),!disabled&&getMouseEventButton(keyDef.button)===2&&instance.dispatchUIEvent(target,"contextmenu",this.getEventInit("contextmenu",keyDef.button,pointer3))}up(instance,keyDef,pointer3){let button=this.buttons.up(keyDef);if(button===void 0)return;let target=this.getTarget(instance);if(!isDisabled2(target)){instance.dispatchUIEvent(target,"mouseup",this.getEventInit("mouseup",keyDef.button)),this.endSelecting();let clickTarget=getTreeDiff(this.buttonDownTarget[button],target)[2][0];if(clickTarget){let init=this.getEventInit("click",keyDef.button,pointer3);init.detail&&(instance.dispatchUIEvent(clickTarget,init.button===0?"click":"auxclick",init),init.button===0&&init.detail===2&&instance.dispatchUIEvent(clickTarget,"dblclick",{...this.getEventInit("dblclick",keyDef.button),detail:init.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(type5,button,pointer3){let init={...this.position.coords};return pointer3&&(init.pointerId=pointer3.pointerId,init.pointerType=pointer3.pointerType,init.isPrimary=pointer3.isPrimary),init.button=getMouseEventButton(button),init.buttons=this.buttons.getButtons(),type5==="mousedown"?init.detail=this.clickCount.getOnDown(init.button):type5==="mouseup"?init.detail=this.clickCount.getOnUp(init.button):(type5==="click"||type5==="auxclick")&&(init.detail=this.clickCount.incOnClick(init.button)),init}getTarget(instance){var _this_position_target;return(_this_position_target=this.position.target)!==null&&_this_position_target!==void 0?_this_position_target:instance.config.document.body}startSelecting(instance,clickCount){var _this_position_caret,_this_position_caret1;this.selecting=setSelectionPerMouseDown({document:instance.config.document,target:this.getTarget(instance),node:(_this_position_caret=this.position.caret)===null||_this_position_caret===void 0?void 0:_this_position_caret.node,offset:(_this_position_caret1=this.position.caret)===null||_this_position_caret1===void 0?void 0:_this_position_caret1.offset,clickCount})}modifySelecting(instance){var _this_position_caret,_this_position_caret1;this.selecting&&modifySelectionPerMouseMove(this.selecting,{document:instance.config.document,target:this.getTarget(instance),node:(_this_position_caret=this.position.caret)===null||_this_position_caret===void 0?void 0:_this_position_caret.node,offset:(_this_position_caret1=this.position.caret)===null||_this_position_caret1===void 0?void 0:_this_position_caret1.offset})}endSelecting(){this.selecting=void 0}constructor(){_define_property6(this,"position",{}),_define_property6(this,"buttons",new Buttons),_define_property6(this,"selecting",void 0),_define_property6(this,"buttonDownTarget",{}),_define_property6(this,"clickCount",new class{incOnClick(button){let current=this.down[button]===void 0?void 0:Number(this.down[button])+1;return this.count=this.count[button]===void 0?{}:{[button]:Number(this.count[button])+1},current}getOnDown(button){var _this_count_button;this.down={[button]:(_this_count_button=this.count[button])!==null&&_this_count_button!==void 0?_this_count_button:0};var _this_count_button1;return this.count={[button]:(_this_count_button1=this.count[button])!==null&&_this_count_button1!==void 0?_this_count_button1:0},Number(this.count[button])+1}getOnUp(button){return this.down[button]===void 0?void 0:Number(this.down[button])+1}reset(){this.count={}}constructor(){_define_property6(this,"down",{}),_define_property6(this,"count",{})}})}};function hasPointerEvents(instance,element){var _checkPointerEvents;return((_checkPointerEvents=checkPointerEvents(instance,element))===null||_checkPointerEvents===void 0?void 0:_checkPointerEvents.pointerEvents)!=="none"}function closestPointerEventsDeclaration(element){let window2=getWindow(element);for(let el=element,tree=[];el?.ownerDocument;el=el.parentElement){tree.push(el);let pointerEvents=window2.getComputedStyle(el).pointerEvents;if(pointerEvents&&!["inherit","unset"].includes(pointerEvents))return{pointerEvents,tree}}}var PointerEventsCheck=Symbol("Last check for pointer-events");function checkPointerEvents(instance,element){let lastCheck=element[PointerEventsCheck];if(!(instance.config.pointerEventsCheck!==PointerEventsCheckLevel.Never&&(!lastCheck||hasBitFlag(instance.config.pointerEventsCheck,PointerEventsCheckLevel.EachApiCall)&&lastCheck[ApiLevel.Call]!==getLevelRef(instance,ApiLevel.Call)||hasBitFlag(instance.config.pointerEventsCheck,PointerEventsCheckLevel.EachTrigger)&&lastCheck[ApiLevel.Trigger]!==getLevelRef(instance,ApiLevel.Trigger))))return lastCheck?.result;let declaration=closestPointerEventsDeclaration(element);return element[PointerEventsCheck]={[ApiLevel.Call]:getLevelRef(instance,ApiLevel.Call),[ApiLevel.Trigger]:getLevelRef(instance,ApiLevel.Trigger),result:declaration},declaration}function assertPointerEvents(instance,element){let declaration=checkPointerEvents(instance,element);if(declaration?.pointerEvents==="none")throw new Error([`Unable to perform pointer interaction as the element ${declaration.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",printTree(declaration.tree)].join(`
184
184
  `))}function printTree(tree){return tree.reverse().map((el,i)=>["".padEnd(i),el.tagName,el.id&&`#${el.id}`,el.hasAttribute("data-testid")&&`(testId=${el.getAttribute("data-testid")})`,getLabelDescr(el),tree.length>1&&i===0&&" <-- This element declared `pointer-events: none`",tree.length>1&&i===tree.length-1&&" <-- Asserted pointer events here"].filter(Boolean).join("")).join(`
185
- `)}function getLabelDescr(element){var _element_labels;let label;if(element.hasAttribute("aria-label"))label=element.getAttribute("aria-label");else if(element.hasAttribute("aria-labelledby")){var _element_ownerDocument_getElementById_textContent,_element_ownerDocument_getElementById;label=(_element_ownerDocument_getElementById=element.ownerDocument.getElementById(element.getAttribute("aria-labelledby")))===null||_element_ownerDocument_getElementById===void 0||(_element_ownerDocument_getElementById_textContent=_element_ownerDocument_getElementById.textContent)===null||_element_ownerDocument_getElementById_textContent===void 0?void 0:_element_ownerDocument_getElementById_textContent.trim()}else if(isElementType(element,["button","input","meter","output","progress","select","textarea"])&&(!((_element_labels=element.labels)===null||_element_labels===void 0)&&_element_labels.length))label=Array.from(element.labels).map(el=>{var _el_textContent;return(_el_textContent=el.textContent)===null||_el_textContent===void 0?void 0:_el_textContent.trim()}).join("|");else if(isElementType(element,"button")){var _element_textContent;label=(_element_textContent=element.textContent)===null||_element_textContent===void 0?void 0:_element_textContent.trim()}return label=label?.replace(/\n/g," "),Number(label?.length)>30&&(label=`${label?.substring(0,29)}\u2026`),label?`(label=${label})`:""}function hasBitFlag(conf,flag3){return(conf&flag3)>0}function _define_property7(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var Pointer=class{init(instance,position){this.position=position;let target=this.getTarget(instance),[,enter]=getTreeDiff(null,target),init=this.getEventInit();return assertPointerEvents(instance,target),instance.dispatchUIEvent(target,"pointerover",init),enter.forEach(el=>instance.dispatchUIEvent(el,"pointerenter",init)),this}move(instance,position){let prevPosition=this.position,prevTarget=this.getTarget(instance);if(this.position=position,!isDifferentPointerPosition(prevPosition,position))return;let nextTarget=this.getTarget(instance),init=this.getEventInit(),[leave,enter]=getTreeDiff(prevTarget,nextTarget);return{leave:()=>{hasPointerEvents(instance,prevTarget)&&prevTarget!==nextTarget&&(instance.dispatchUIEvent(prevTarget,"pointerout",init),leave.forEach(el=>instance.dispatchUIEvent(el,"pointerleave",init)))},enter:()=>{assertPointerEvents(instance,nextTarget),prevTarget!==nextTarget&&(instance.dispatchUIEvent(nextTarget,"pointerover",init),enter.forEach(el=>instance.dispatchUIEvent(el,"pointerenter",init)))},move:()=>{instance.dispatchUIEvent(nextTarget,"pointermove",init)}}}down(instance,_keyDef){if(this.isDown)return;let target=this.getTarget(instance);assertPointerEvents(instance,target),this.isDown=!0,this.isPrevented=!instance.dispatchUIEvent(target,"pointerdown",this.getEventInit())}up(instance,_keyDef){if(!this.isDown)return;let target=this.getTarget(instance);assertPointerEvents(instance,target),this.isDown=!1,instance.dispatchUIEvent(target,"pointerup",this.getEventInit())}release(instance){let target=this.getTarget(instance),[leave]=getTreeDiff(target,null),init=this.getEventInit();hasPointerEvents(instance,target)&&(instance.dispatchUIEvent(target,"pointerout",init),leave.forEach(el=>instance.dispatchUIEvent(el,"pointerleave",init))),this.isCancelled=!0}getTarget(instance){var _this_position_target;return(_this_position_target=this.position.target)!==null&&_this_position_target!==void 0?_this_position_target:instance.config.document.body}getEventInit(){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary}}constructor({pointerId,pointerType,isPrimary}){_define_property7(this,"pointerId",void 0),_define_property7(this,"pointerType",void 0),_define_property7(this,"isPrimary",void 0),_define_property7(this,"isMultitouch",!1),_define_property7(this,"isCancelled",!1),_define_property7(this,"isDown",!1),_define_property7(this,"isPrevented",!1),_define_property7(this,"position",{}),this.pointerId=pointerId,this.pointerType=pointerType,this.isPrimary=isPrimary,this.isMultitouch=!isPrimary}};function _define_property8(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var PointerHost=class{isKeyPressed(keyDef){return this.devices.get(keyDef.pointerType).isPressed(keyDef)}async press(instance,keyDef,position){let pointerName=this.getPointerName(keyDef),pointer3=keyDef.pointerType==="touch"?this.pointers.new(pointerName,keyDef).init(instance,position):this.pointers.get(pointerName);pointer3.position=position,pointer3.pointerType!=="touch"&&(this.mouse.position=position),this.devices.get(keyDef.pointerType).addPressed(keyDef),this.buttons.down(keyDef),pointer3.down(instance,keyDef),pointer3.pointerType!=="touch"&&!pointer3.isPrevented&&this.mouse.down(instance,keyDef,pointer3)}async move(instance,pointerName,position){let pointer3=this.pointers.get(pointerName),pointermove=pointer3.move(instance,position),mousemove=pointer3.pointerType==="touch"||pointer3.isPrevented&&pointer3.isDown?void 0:this.mouse.move(instance,position);pointermove?.leave(),mousemove?.leave(),pointermove?.enter(),mousemove?.enter(),pointermove?.move(),mousemove?.move()}async release(instance,keyDef,position){let device=this.devices.get(keyDef.pointerType);device.removePressed(keyDef),this.buttons.up(keyDef);let pointer3=this.pointers.get(this.getPointerName(keyDef));if(pointer3.position=position,pointer3.pointerType!=="touch"&&(this.mouse.position=position),device.countPressed===0&&pointer3.up(instance,keyDef),pointer3.pointerType==="touch"&&pointer3.release(instance),!pointer3.isPrevented){if(pointer3.pointerType==="touch"&&!pointer3.isMultitouch){let mousemove=this.mouse.move(instance,pointer3.position);mousemove?.leave(),mousemove?.enter(),mousemove?.move(),this.mouse.down(instance,keyDef,pointer3)}if(!pointer3.isMultitouch){let mousemove=this.mouse.move(instance,pointer3.position);mousemove?.leave(),mousemove?.enter(),mousemove?.move(),this.mouse.up(instance,keyDef,pointer3)}}}getPointerName(keyDef){return keyDef.pointerType==="touch"?keyDef.name:keyDef.pointerType}getPreviousPosition(pointerName){return this.pointers.has(pointerName)?this.pointers.get(pointerName).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(instance){var _this_mouse_position_target;return(_this_mouse_position_target=this.mouse.position.target)!==null&&_this_mouse_position_target!==void 0?_this_mouse_position_target:instance.config.document.body}setMousePosition(position){this.mouse.position=position,this.pointers.get("mouse").position=position}constructor(system){_define_property8(this,"system",void 0),_define_property8(this,"mouse",void 0),_define_property8(this,"buttons",void 0),_define_property8(this,"devices",new class{get(k2){var _this_registry,_k,_;return(_=(_this_registry=this.registry)[_k=k2])!==null&&_!==void 0||(_this_registry[_k]=new Device),this.registry[k2]}constructor(){_define_property8(this,"registry",{})}}),_define_property8(this,"pointers",new class{new(pointerName,keyDef){let isPrimary=keyDef.pointerType!=="touch"||!Object.values(this.registry).some(p3=>p3.pointerType==="touch"&&!p3.isCancelled);return isPrimary||Object.values(this.registry).forEach(p3=>{p3.pointerType===keyDef.pointerType&&!p3.isCancelled&&(p3.isMultitouch=!0)}),this.registry[pointerName]=new Pointer({pointerId:this.nextId++,pointerType:keyDef.pointerType,isPrimary}),this.registry[pointerName]}get(pointerName){if(!this.has(pointerName))throw new Error(`Trying to access pointer "${pointerName}" which does not exist.`);return this.registry[pointerName]}has(pointerName){return pointerName in this.registry}constructor(){_define_property8(this,"registry",{mouse:new Pointer({pointerId:1,pointerType:"mouse",isPrimary:!0})}),_define_property8(this,"nextId",2)}}),this.system=system,this.buttons=new Buttons,this.mouse=new Mouse}};function _define_property9(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var System=class{getUIEventModifiers(){return{altKey:this.keyboard.modifiers.Alt,ctrlKey:this.keyboard.modifiers.Control,metaKey:this.keyboard.modifiers.Meta,shiftKey:this.keyboard.modifiers.Shift,modifierAltGraph:this.keyboard.modifiers.AltGraph,modifierCapsLock:this.keyboard.modifiers.CapsLock,modifierFn:this.keyboard.modifiers.Fn,modifierFnLock:this.keyboard.modifiers.FnLock,modifierNumLock:this.keyboard.modifiers.NumLock,modifierScrollLock:this.keyboard.modifiers.ScrollLock,modifierSymbol:this.keyboard.modifiers.Symbol,modifierSymbolLock:this.keyboard.modifiers.SymbolLock}}constructor(){_define_property9(this,"keyboard",new KeyboardHost(this)),_define_property9(this,"pointer",new PointerHost(this))}};async function click(element){let pointerIn=[];return this.config.skipHover||pointerIn.push({target:element}),pointerIn.push({keys:"[MouseLeft]",target:element}),this.pointer(pointerIn)}async function dblClick(element){return this.pointer([{target:element},"[MouseLeft][MouseLeft]"])}async function tripleClick(element){return this.pointer([{target:element},"[MouseLeft][MouseLeft][MouseLeft]"])}async function hover(element){return this.pointer({target:element})}async function unhover(element){return assertPointerEvents(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:element.ownerDocument.body})}async function tab({shift}={}){return this.keyboard(shift===!0?"{Shift>}{Tab}{/Shift}":shift===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}function parseKeyDef(keyboardMap,text){let defs=[];do{let{type:type5,descriptor,consumedLength,releasePrevious,releaseSelf=!0,repeat}=readNextDescriptor(text,"keyboard");var _keyboardMap_find;let keyDef=(_keyboardMap_find=keyboardMap.find(def=>{if(type5==="["){var _def_code;return((_def_code=def.code)===null||_def_code===void 0?void 0:_def_code.toLowerCase())===descriptor.toLowerCase()}else if(type5==="{"){var _def_key;return((_def_key=def.key)===null||_def_key===void 0?void 0:_def_key.toLowerCase())===descriptor.toLowerCase()}return def.key===descriptor}))!==null&&_keyboardMap_find!==void 0?_keyboardMap_find:{key:"Unknown",code:"Unknown",[type5==="["?"code":"key"]:descriptor};defs.push({keyDef,releasePrevious,releaseSelf,repeat}),text=text.slice(consumedLength)}while(text);return defs}async function keyboard(text){let actions=parseKeyDef(this.config.keyboardMap,text);for(let i=0;i<actions.length;i++)await wait(this.config),await keyboardAction(this,actions[i])}async function keyboardAction(instance,{keyDef,releasePrevious,releaseSelf,repeat}){let{system}=instance;if(system.keyboard.isKeyPressed(keyDef)&&await system.keyboard.keyup(instance,keyDef),!releasePrevious){for(let i=1;i<=repeat;i++)await system.keyboard.keydown(instance,keyDef),i<repeat&&await wait(instance.config);releaseSelf&&await system.keyboard.keyup(instance,keyDef)}}async function releaseAllKeys(instance){for(let k2 of instance.system.keyboard.getPressedKeys())await instance.system.keyboard.keyup(instance,k2)}function copySelection(target){let data=hasOwnSelection(target)?{"text/plain":readSelectedValueFromInput(target)}:{"text/plain":String(target.ownerDocument.getSelection())},dt=createDataTransfer(getWindow(target));for(let type5 in data)data[type5]&&dt.setData(type5,data[type5]);return dt}function readSelectedValueFromInput(target){let sel=getUISelection(target);return getUIValue(target).substring(sel.startOffset,sel.endOffset)}async function copy(){let doc=this.config.document;var _doc_activeElement;let target=(_doc_activeElement=doc.activeElement)!==null&&_doc_activeElement!==void 0?_doc_activeElement:doc.body,clipboardData=copySelection(target);if(clipboardData.items.length!==0)return this.dispatchUIEvent(target,"copy",{clipboardData})&&this.config.writeToClipboard&&await writeDataTransferToClipboard(doc,clipboardData),clipboardData}async function cut(){let doc=this.config.document;var _doc_activeElement;let target=(_doc_activeElement=doc.activeElement)!==null&&_doc_activeElement!==void 0?_doc_activeElement:doc.body,clipboardData=copySelection(target);if(clipboardData.items.length!==0)return this.dispatchUIEvent(target,"cut",{clipboardData})&&this.config.writeToClipboard&&await writeDataTransferToClipboard(target.ownerDocument,clipboardData),clipboardData}async function paste(clipboardData){let doc=this.config.document;var _doc_activeElement;let target=(_doc_activeElement=doc.activeElement)!==null&&_doc_activeElement!==void 0?_doc_activeElement:doc.body;var _ref;let dataTransfer=(_ref=typeof clipboardData=="string"?getClipboardDataFromString(doc,clipboardData):clipboardData)!==null&&_ref!==void 0?_ref:await readDataTransferFromClipboard(doc).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(target,"paste",{clipboardData:dataTransfer})}function getClipboardDataFromString(doc,text){let dt=createDataTransfer(getWindow(doc));return dt.setData("text",text),dt}function parseKeyDef2(pointerMap,keys2){let defs=[];do{let{descriptor,consumedLength,releasePrevious,releaseSelf=!0}=readNextDescriptor(keys2,"pointer"),keyDef=pointerMap.find(p3=>p3.name===descriptor);keyDef&&defs.push({keyDef,releasePrevious,releaseSelf}),keys2=keys2.slice(consumedLength)}while(keys2);return defs}async function pointer(input2){let{pointerMap}=this.config,actions=[];(Array.isArray(input2)?input2:[input2]).forEach(actionInput=>{typeof actionInput=="string"?actions.push(...parseKeyDef2(pointerMap,actionInput)):"keys"in actionInput?actions.push(...parseKeyDef2(pointerMap,actionInput.keys).map(i=>({...actionInput,...i}))):actions.push(actionInput)});for(let i=0;i<actions.length;i++)await wait(this.config),await pointerAction(this,actions[i]);this.system.pointer.resetClickCount()}async function pointerAction(instance,action){var _previousPosition_caret,_previousPosition_caret1;let pointerName="pointerName"in action&&action.pointerName?action.pointerName:"keyDef"in action?instance.system.pointer.getPointerName(action.keyDef):"mouse",previousPosition=instance.system.pointer.getPreviousPosition(pointerName);var _action_target,_action_coords,_action_node,_action_offset;let position={target:(_action_target=action.target)!==null&&_action_target!==void 0?_action_target:getPrevTarget(instance,previousPosition),coords:(_action_coords=action.coords)!==null&&_action_coords!==void 0?_action_coords:previousPosition?.coords,caret:{node:(_action_node=action.node)!==null&&_action_node!==void 0?_action_node:hasCaretPosition(action)||previousPosition==null||(_previousPosition_caret=previousPosition.caret)===null||_previousPosition_caret===void 0?void 0:_previousPosition_caret.node,offset:(_action_offset=action.offset)!==null&&_action_offset!==void 0?_action_offset:hasCaretPosition(action)||previousPosition==null||(_previousPosition_caret1=previousPosition.caret)===null||_previousPosition_caret1===void 0?void 0:_previousPosition_caret1.offset}};"keyDef"in action?(instance.system.pointer.isKeyPressed(action.keyDef)&&(setLevelRef(instance,ApiLevel.Trigger),await instance.system.pointer.release(instance,action.keyDef,position)),action.releasePrevious||(setLevelRef(instance,ApiLevel.Trigger),await instance.system.pointer.press(instance,action.keyDef,position),action.releaseSelf&&(setLevelRef(instance,ApiLevel.Trigger),await instance.system.pointer.release(instance,action.keyDef,position)))):(setLevelRef(instance,ApiLevel.Trigger),await instance.system.pointer.move(instance,pointerName,position))}function hasCaretPosition(action){var _action_target,_ref;return!!((_ref=(_action_target=action.target)!==null&&_action_target!==void 0?_action_target:action.node)!==null&&_ref!==void 0?_ref:action.offset!==void 0)}function getPrevTarget(instance,position){if(!position)throw new Error("This pointer has no previous position. Provide a target property!");var _position_target;return(_position_target=position.target)!==null&&_position_target!==void 0?_position_target:instance.config.document.body}async function clear(element){if(!isEditable(element)||isDisabled2(element))throw new Error("clear()` is only supported on editable elements.");if(focusElement(element),element.ownerDocument.activeElement!==element)throw new Error("The element to be cleared could not be focused.");if(selectAll(element),!isAllSelected(element))throw new Error("The element content to be cleared could not be selected.");input(this,element,"","deleteContentBackward")}async function selectOptions(select,values){return selectOptionsBase.call(this,!0,select,values)}async function deselectOptions(select,values){return selectOptionsBase.call(this,!1,select,values)}async function selectOptionsBase(newValue,select,values){if(!newValue&&!select.multiple)throw getConfig2().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",select);let valArray=Array.isArray(values)?values:[values],allOptions=Array.from(select.querySelectorAll('option, [role="option"]')),selectedOptions=valArray.map(val=>{if(typeof val!="string"&&allOptions.includes(val))return val;{let matchingOption=allOptions.find(o=>o.value===val||o.innerHTML===val);if(matchingOption)return matchingOption;throw getConfig2().getElementError(`Value "${String(val)}" not found in options`,select)}}).filter(option=>!isDisabled2(option));if(isDisabled2(select)||!selectedOptions.length)return;let selectOption=option=>{option.selected=newValue,this.dispatchUIEvent(select,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(select,"change")};if(isElementType(select,"select"))if(select.multiple)for(let option of selectedOptions){let withPointerEvents=this.config.pointerEventsCheck===0?!0:hasPointerEvents(this,option);withPointerEvents&&(this.dispatchUIEvent(option,"pointerover"),this.dispatchUIEvent(select,"pointerenter"),this.dispatchUIEvent(option,"mouseover"),this.dispatchUIEvent(select,"mouseenter"),this.dispatchUIEvent(option,"pointermove"),this.dispatchUIEvent(option,"mousemove"),this.dispatchUIEvent(option,"pointerdown"),this.dispatchUIEvent(option,"mousedown")),focusElement(select),withPointerEvents&&(this.dispatchUIEvent(option,"pointerup"),this.dispatchUIEvent(option,"mouseup")),selectOption(option),withPointerEvents&&this.dispatchUIEvent(option,"click"),await wait(this.config)}else if(selectedOptions.length===1){let withPointerEvents=this.config.pointerEventsCheck===0?!0:hasPointerEvents(this,select);withPointerEvents?await this.click(select):focusElement(select),selectOption(selectedOptions[0]),withPointerEvents&&(this.dispatchUIEvent(select,"pointerover"),this.dispatchUIEvent(select,"pointerenter"),this.dispatchUIEvent(select,"mouseover"),this.dispatchUIEvent(select,"mouseenter"),this.dispatchUIEvent(select,"pointerup"),this.dispatchUIEvent(select,"mouseup"),this.dispatchUIEvent(select,"click")),await wait(this.config)}else throw getConfig2().getElementError("Cannot select multiple options on a non-multiple select",select);else if(select.getAttribute("role")==="listbox")for(let option of selectedOptions)await this.click(option),await this.unhover(option);else throw getConfig2().getElementError("Cannot select options on elements that are neither select nor listbox elements",select)}async function type3(element,text,{skipClick=this.config.skipClick,skipAutoClose=this.config.skipAutoClose,initialSelectionStart,initialSelectionEnd}={}){element.disabled||(skipClick||await this.click(element),initialSelectionStart!==void 0&&setSelectionRange(element,initialSelectionStart,initialSelectionEnd??initialSelectionStart),await this.keyboard(text),skipAutoClose||await releaseAllKeys(this))}var fakeFiles=Symbol("files and value properties are mocked");function restoreProperty(obj,prop,descriptor){descriptor?Object.defineProperty(obj,prop,descriptor):delete obj[prop]}function setFiles(el,files){var _el_fakeFiles;(_el_fakeFiles=el[fakeFiles])===null||_el_fakeFiles===void 0||_el_fakeFiles.restore();let typeDescr=Object.getOwnPropertyDescriptor(el,"type"),valueDescr=Object.getOwnPropertyDescriptor(el,"value"),filesDescr=Object.getOwnPropertyDescriptor(el,"files");function restore(){restoreProperty(el,"type",typeDescr),restoreProperty(el,"value",valueDescr),restoreProperty(el,"files",filesDescr)}el[fakeFiles]={restore},Object.defineProperties(el,{files:{configurable:!0,get:()=>files},value:{configurable:!0,get:()=>files.length?`C:\\fakepath\\${files[0].name}`:"",set(v){if(v==="")restore();else{var _valueDescr_set;valueDescr==null||(_valueDescr_set=valueDescr.set)===null||_valueDescr_set===void 0||_valueDescr_set.call(el,v)}}},type:{configurable:!0,get:()=>"file",set(v){v!=="file"&&(restore(),el.type=v)}}})}async function upload(element,fileOrFiles){let input2=isElementType(element,"label")?element.control:element;if(!input2||!isElementType(input2,"input",{type:"file"}))throw new TypeError(`The ${input2===element?"given":"associated"} ${input2?.tagName} element does not accept file uploads`);if(isDisabled2(element))return;let files=(Array.isArray(fileOrFiles)?fileOrFiles:[fileOrFiles]).filter(file=>!this.config.applyAccept||isAcceptableFile(file,input2.accept)).slice(0,input2.multiple?void 0:1),fileDialog=()=>{var _input_files;files.length===((_input_files=input2.files)===null||_input_files===void 0?void 0:_input_files.length)&&files.every((f3,i)=>{var _input_files2;return f3===((_input_files2=input2.files)===null||_input_files2===void 0?void 0:_input_files2.item(i))})||(setFiles(input2,createFileList(getWindow(element),files)),this.dispatchUIEvent(input2,"input"),this.dispatchUIEvent(input2,"change"))};input2.addEventListener("fileDialog",fileDialog),await this.click(element),input2.removeEventListener("fileDialog",fileDialog)}function isAcceptableFile(file,accept){if(!accept)return!0;let wildcards=["audio/*","image/*","video/*"];return accept.split(",").some(acceptToken=>acceptToken.startsWith(".")?file.name.endsWith(acceptToken):wildcards.includes(acceptToken)?file.type.startsWith(acceptToken.substr(0,acceptToken.length-1)):file.type===acceptToken)}var userEventApi={click,dblClick,tripleClick,hover,unhover,tab,keyboard,copy,cut,paste,pointer,clear,deselectOptions,selectOptions,type:type3,upload};function wrapAsync(implementation){return getConfig2().asyncWrapper(implementation)}var defaultOptionsDirect={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:defaultKeyMap,pointerMap:defaultKeyMap2,pointerEventsCheck:PointerEventsCheckLevel.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},defaultOptionsSetup={...defaultOptionsDirect,writeToClipboard:!0};function createConfig(options={},defaults=defaultOptionsSetup,node){let document2=getDocument2(options,node,defaults);return{...defaults,...options,document:document2}}function setupMain(options={}){let config3=createConfig(options);prepareDocument(config3.document);var _config_document_defaultView;let view=(_config_document_defaultView=config3.document.defaultView)!==null&&_config_document_defaultView!==void 0?_config_document_defaultView:globalThis.window;return attachClipboardStubToView(view),createInstance(config3).api}function setupDirect({keyboardState,pointerState,...options}={},node){let config3=createConfig(options,defaultOptionsDirect,node);prepareDocument(config3.document);var _ref;let system=(_ref=pointerState??keyboardState)!==null&&_ref!==void 0?_ref:new System;return{api:createInstance(config3,system).api,system}}function setupSub(options){return createInstance({...this.config,...options},this.system).api}function wrapAndBindImpl(instance,impl){function method(...args){return setLevelRef(instance,ApiLevel.Call),wrapAsync(()=>impl.apply(instance,args).then(async ret=>(await wait(instance.config),ret)))}return Object.defineProperty(method,"name",{get:()=>impl.name}),method}function createInstance(config3,system=new System){let instance={};return Object.assign(instance,{config:config3,dispatchEvent:dispatchEvent.bind(instance),dispatchUIEvent:dispatchUIEvent.bind(instance),system,levelRefs:{},...userEventApi}),{instance,api:{...Object.fromEntries(Object.entries(userEventApi).map(([name,api])=>[name,wrapAndBindImpl(instance,api)])),setup:setupSub.bind(instance)}}}function getDocument2(options,node,defaults){var _options_document,_ref;return(_ref=(_options_document=options.document)!==null&&_options_document!==void 0?_options_document:node&&getDocumentFromNode(node))!==null&&_ref!==void 0?_ref:defaults.document}var directApi_exports={};__export(directApi_exports,{clear:()=>clear2,click:()=>click2,copy:()=>copy2,cut:()=>cut2,dblClick:()=>dblClick2,deselectOptions:()=>deselectOptions2,hover:()=>hover2,keyboard:()=>keyboard2,paste:()=>paste2,pointer:()=>pointer2,selectOptions:()=>selectOptions2,tab:()=>tab2,tripleClick:()=>tripleClick2,type:()=>type4,unhover:()=>unhover2,upload:()=>upload2});function clear2(element){return setupDirect().api.clear(element)}function click2(element,options={}){return setupDirect(options,element).api.click(element)}function copy2(options={}){return setupDirect(options).api.copy()}function cut2(options={}){return setupDirect(options).api.cut()}function dblClick2(element,options={}){return setupDirect(options).api.dblClick(element)}function deselectOptions2(select,values,options={}){return setupDirect(options).api.deselectOptions(select,values)}function hover2(element,options={}){return setupDirect(options).api.hover(element)}async function keyboard2(text,options={}){let{api,system}=setupDirect(options);return api.keyboard(text).then(()=>system)}async function pointer2(input2,options={}){let{api,system}=setupDirect(options);return api.pointer(input2).then(()=>system)}function paste2(clipboardData,options){return setupDirect(options).api.paste(clipboardData)}function selectOptions2(select,values,options={}){return setupDirect(options).api.selectOptions(select,values)}function tripleClick2(element,options={}){return setupDirect(options).api.tripleClick(element)}function type4(element,text,options={}){return setupDirect(options,element).api.type(element,text,options)}function unhover2(element,options={}){let{api,system}=setupDirect(options);return system.pointer.setMousePosition({target:element}),api.unhover(element)}function upload2(element,fileOrFiles,options={}){return setupDirect(options).api.upload(element,fileOrFiles)}function tab2(options={}){return setupDirect().api.tab(options)}var userEvent={...directApi_exports,setup:setupMain};var import_client_logger=require("storybook/internal/client-logger"),import_instrumenter=require("@storybook/instrumenter");function dedent(templ){for(var values=[],_i=1;_i<arguments.length;_i++)values[_i-1]=arguments[_i];var strings=Array.from(typeof templ=="string"?[templ]:templ);strings[strings.length-1]=strings[strings.length-1].replace(/\r?\n([\t ]*)$/,"");var indentLengths=strings.reduce(function(arr,str){var matches3=str.match(/\n([\t ]+|(?!\s).)/g);return matches3?arr.concat(matches3.map(function(match){var _a,_b;return(_b=(_a=match.match(/[\t ]/g))===null||_a===void 0?void 0:_a.length)!==null&&_b!==void 0?_b:0})):arr},[]);if(indentLengths.length){var pattern_1=new RegExp(`
185
+ `)}function getLabelDescr(element){var _element_labels;let label;if(element.hasAttribute("aria-label"))label=element.getAttribute("aria-label");else if(element.hasAttribute("aria-labelledby")){var _element_ownerDocument_getElementById_textContent,_element_ownerDocument_getElementById;label=(_element_ownerDocument_getElementById=element.ownerDocument.getElementById(element.getAttribute("aria-labelledby")))===null||_element_ownerDocument_getElementById===void 0||(_element_ownerDocument_getElementById_textContent=_element_ownerDocument_getElementById.textContent)===null||_element_ownerDocument_getElementById_textContent===void 0?void 0:_element_ownerDocument_getElementById_textContent.trim()}else if(isElementType(element,["button","input","meter","output","progress","select","textarea"])&&(!((_element_labels=element.labels)===null||_element_labels===void 0)&&_element_labels.length))label=Array.from(element.labels).map(el=>{var _el_textContent;return(_el_textContent=el.textContent)===null||_el_textContent===void 0?void 0:_el_textContent.trim()}).join("|");else if(isElementType(element,"button")){var _element_textContent;label=(_element_textContent=element.textContent)===null||_element_textContent===void 0?void 0:_element_textContent.trim()}return label=label?.replace(/\n/g," "),Number(label?.length)>30&&(label=`${label?.substring(0,29)}\u2026`),label?`(label=${label})`:""}function hasBitFlag(conf,flag3){return(conf&flag3)>0}function _define_property7(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var Pointer=class{init(instance,position){this.position=position;let target=this.getTarget(instance),[,enter]=getTreeDiff(null,target),init=this.getEventInit();return assertPointerEvents(instance,target),instance.dispatchUIEvent(target,"pointerover",init),enter.forEach(el=>instance.dispatchUIEvent(el,"pointerenter",init)),this}move(instance,position){let prevPosition=this.position,prevTarget=this.getTarget(instance);if(this.position=position,!isDifferentPointerPosition(prevPosition,position))return;let nextTarget=this.getTarget(instance),init=this.getEventInit(),[leave,enter]=getTreeDiff(prevTarget,nextTarget);return{leave:()=>{hasPointerEvents(instance,prevTarget)&&prevTarget!==nextTarget&&(instance.dispatchUIEvent(prevTarget,"pointerout",init),leave.forEach(el=>instance.dispatchUIEvent(el,"pointerleave",init)))},enter:()=>{assertPointerEvents(instance,nextTarget),prevTarget!==nextTarget&&(instance.dispatchUIEvent(nextTarget,"pointerover",init),enter.forEach(el=>instance.dispatchUIEvent(el,"pointerenter",init)))},move:()=>{instance.dispatchUIEvent(nextTarget,"pointermove",init)}}}down(instance,_keyDef){if(this.isDown)return;let target=this.getTarget(instance);assertPointerEvents(instance,target),this.isDown=!0,this.isPrevented=!instance.dispatchUIEvent(target,"pointerdown",this.getEventInit())}up(instance,_keyDef){if(!this.isDown)return;let target=this.getTarget(instance);assertPointerEvents(instance,target),this.isDown=!1,instance.dispatchUIEvent(target,"pointerup",this.getEventInit())}release(instance){let target=this.getTarget(instance),[leave]=getTreeDiff(target,null),init=this.getEventInit();hasPointerEvents(instance,target)&&(instance.dispatchUIEvent(target,"pointerout",init),leave.forEach(el=>instance.dispatchUIEvent(el,"pointerleave",init))),this.isCancelled=!0}getTarget(instance){var _this_position_target;return(_this_position_target=this.position.target)!==null&&_this_position_target!==void 0?_this_position_target:instance.config.document.body}getEventInit(){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary}}constructor({pointerId,pointerType,isPrimary}){_define_property7(this,"pointerId",void 0),_define_property7(this,"pointerType",void 0),_define_property7(this,"isPrimary",void 0),_define_property7(this,"isMultitouch",!1),_define_property7(this,"isCancelled",!1),_define_property7(this,"isDown",!1),_define_property7(this,"isPrevented",!1),_define_property7(this,"position",{}),this.pointerId=pointerId,this.pointerType=pointerType,this.isPrimary=isPrimary,this.isMultitouch=!isPrimary}};function _define_property8(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var PointerHost=class{isKeyPressed(keyDef){return this.devices.get(keyDef.pointerType).isPressed(keyDef)}async press(instance,keyDef,position){let pointerName=this.getPointerName(keyDef),pointer3=keyDef.pointerType==="touch"?this.pointers.new(pointerName,keyDef).init(instance,position):this.pointers.get(pointerName);pointer3.position=position,pointer3.pointerType!=="touch"&&(this.mouse.position=position),this.devices.get(keyDef.pointerType).addPressed(keyDef),this.buttons.down(keyDef),pointer3.down(instance,keyDef),pointer3.pointerType!=="touch"&&!pointer3.isPrevented&&this.mouse.down(instance,keyDef,pointer3)}async move(instance,pointerName,position){let pointer3=this.pointers.get(pointerName),pointermove=pointer3.move(instance,position),mousemove=pointer3.pointerType==="touch"||pointer3.isPrevented&&pointer3.isDown?void 0:this.mouse.move(instance,position);pointermove?.leave(),mousemove?.leave(),pointermove?.enter(),mousemove?.enter(),pointermove?.move(),mousemove?.move()}async release(instance,keyDef,position){let device=this.devices.get(keyDef.pointerType);device.removePressed(keyDef),this.buttons.up(keyDef);let pointer3=this.pointers.get(this.getPointerName(keyDef));if(pointer3.position=position,pointer3.pointerType!=="touch"&&(this.mouse.position=position),device.countPressed===0&&pointer3.up(instance,keyDef),pointer3.pointerType==="touch"&&pointer3.release(instance),!pointer3.isPrevented){if(pointer3.pointerType==="touch"&&!pointer3.isMultitouch){let mousemove=this.mouse.move(instance,pointer3.position);mousemove?.leave(),mousemove?.enter(),mousemove?.move(),this.mouse.down(instance,keyDef,pointer3)}if(!pointer3.isMultitouch){let mousemove=this.mouse.move(instance,pointer3.position);mousemove?.leave(),mousemove?.enter(),mousemove?.move(),this.mouse.up(instance,keyDef,pointer3)}}}getPointerName(keyDef){return keyDef.pointerType==="touch"?keyDef.name:keyDef.pointerType}getPreviousPosition(pointerName){return this.pointers.has(pointerName)?this.pointers.get(pointerName).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(instance){var _this_mouse_position_target;return(_this_mouse_position_target=this.mouse.position.target)!==null&&_this_mouse_position_target!==void 0?_this_mouse_position_target:instance.config.document.body}setMousePosition(position){this.mouse.position=position,this.pointers.get("mouse").position=position}constructor(system){_define_property8(this,"system",void 0),_define_property8(this,"mouse",void 0),_define_property8(this,"buttons",void 0),_define_property8(this,"devices",new class{get(k2){var _this_registry,_k,_;return(_=(_this_registry=this.registry)[_k=k2])!==null&&_!==void 0||(_this_registry[_k]=new Device),this.registry[k2]}constructor(){_define_property8(this,"registry",{})}}),_define_property8(this,"pointers",new class{new(pointerName,keyDef){let isPrimary=keyDef.pointerType!=="touch"||!Object.values(this.registry).some(p3=>p3.pointerType==="touch"&&!p3.isCancelled);return isPrimary||Object.values(this.registry).forEach(p3=>{p3.pointerType===keyDef.pointerType&&!p3.isCancelled&&(p3.isMultitouch=!0)}),this.registry[pointerName]=new Pointer({pointerId:this.nextId++,pointerType:keyDef.pointerType,isPrimary}),this.registry[pointerName]}get(pointerName){if(!this.has(pointerName))throw new Error(`Trying to access pointer "${pointerName}" which does not exist.`);return this.registry[pointerName]}has(pointerName){return pointerName in this.registry}constructor(){_define_property8(this,"registry",{mouse:new Pointer({pointerId:1,pointerType:"mouse",isPrimary:!0})}),_define_property8(this,"nextId",2)}}),this.system=system,this.buttons=new Buttons,this.mouse=new Mouse}};function _define_property9(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var System=class{getUIEventModifiers(){return{altKey:this.keyboard.modifiers.Alt,ctrlKey:this.keyboard.modifiers.Control,metaKey:this.keyboard.modifiers.Meta,shiftKey:this.keyboard.modifiers.Shift,modifierAltGraph:this.keyboard.modifiers.AltGraph,modifierCapsLock:this.keyboard.modifiers.CapsLock,modifierFn:this.keyboard.modifiers.Fn,modifierFnLock:this.keyboard.modifiers.FnLock,modifierNumLock:this.keyboard.modifiers.NumLock,modifierScrollLock:this.keyboard.modifiers.ScrollLock,modifierSymbol:this.keyboard.modifiers.Symbol,modifierSymbolLock:this.keyboard.modifiers.SymbolLock}}constructor(){_define_property9(this,"keyboard",new KeyboardHost(this)),_define_property9(this,"pointer",new PointerHost(this))}};async function click(element){let pointerIn=[];return this.config.skipHover||pointerIn.push({target:element}),pointerIn.push({keys:"[MouseLeft]",target:element}),this.pointer(pointerIn)}async function dblClick(element){return this.pointer([{target:element},"[MouseLeft][MouseLeft]"])}async function tripleClick(element){return this.pointer([{target:element},"[MouseLeft][MouseLeft][MouseLeft]"])}async function hover(element){return this.pointer({target:element})}async function unhover(element){return assertPointerEvents(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:element.ownerDocument.body})}async function tab({shift}={}){return this.keyboard(shift===!0?"{Shift>}{Tab}{/Shift}":shift===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}function parseKeyDef(keyboardMap,text){let defs=[];do{let{type:type5,descriptor,consumedLength,releasePrevious,releaseSelf=!0,repeat}=readNextDescriptor(text,"keyboard");var _keyboardMap_find;let keyDef=(_keyboardMap_find=keyboardMap.find(def=>{if(type5==="["){var _def_code;return((_def_code=def.code)===null||_def_code===void 0?void 0:_def_code.toLowerCase())===descriptor.toLowerCase()}else if(type5==="{"){var _def_key;return((_def_key=def.key)===null||_def_key===void 0?void 0:_def_key.toLowerCase())===descriptor.toLowerCase()}return def.key===descriptor}))!==null&&_keyboardMap_find!==void 0?_keyboardMap_find:{key:"Unknown",code:"Unknown",[type5==="["?"code":"key"]:descriptor};defs.push({keyDef,releasePrevious,releaseSelf,repeat}),text=text.slice(consumedLength)}while(text);return defs}async function keyboard(text){let actions=parseKeyDef(this.config.keyboardMap,text);for(let i=0;i<actions.length;i++)await wait(this.config),await keyboardAction(this,actions[i])}async function keyboardAction(instance,{keyDef,releasePrevious,releaseSelf,repeat}){let{system}=instance;if(system.keyboard.isKeyPressed(keyDef)&&await system.keyboard.keyup(instance,keyDef),!releasePrevious){for(let i=1;i<=repeat;i++)await system.keyboard.keydown(instance,keyDef),i<repeat&&await wait(instance.config);releaseSelf&&await system.keyboard.keyup(instance,keyDef)}}async function releaseAllKeys(instance){for(let k2 of instance.system.keyboard.getPressedKeys())await instance.system.keyboard.keyup(instance,k2)}function copySelection(target){let data=hasOwnSelection(target)?{"text/plain":readSelectedValueFromInput(target)}:{"text/plain":String(target.ownerDocument.getSelection())},dt=createDataTransfer(getWindow(target));for(let type5 in data)data[type5]&&dt.setData(type5,data[type5]);return dt}function readSelectedValueFromInput(target){let sel=getUISelection(target);return getUIValue(target).substring(sel.startOffset,sel.endOffset)}async function copy(){let doc=this.config.document;var _doc_activeElement;let target=(_doc_activeElement=doc.activeElement)!==null&&_doc_activeElement!==void 0?_doc_activeElement:doc.body,clipboardData=copySelection(target);if(clipboardData.items.length!==0)return this.dispatchUIEvent(target,"copy",{clipboardData})&&this.config.writeToClipboard&&await writeDataTransferToClipboard(doc,clipboardData),clipboardData}async function cut(){let doc=this.config.document;var _doc_activeElement;let target=(_doc_activeElement=doc.activeElement)!==null&&_doc_activeElement!==void 0?_doc_activeElement:doc.body,clipboardData=copySelection(target);if(clipboardData.items.length!==0)return this.dispatchUIEvent(target,"cut",{clipboardData})&&this.config.writeToClipboard&&await writeDataTransferToClipboard(target.ownerDocument,clipboardData),clipboardData}async function paste(clipboardData){let doc=this.config.document;var _doc_activeElement;let target=(_doc_activeElement=doc.activeElement)!==null&&_doc_activeElement!==void 0?_doc_activeElement:doc.body;var _ref;let dataTransfer=(_ref=typeof clipboardData=="string"?getClipboardDataFromString(doc,clipboardData):clipboardData)!==null&&_ref!==void 0?_ref:await readDataTransferFromClipboard(doc).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(target,"paste",{clipboardData:dataTransfer})}function getClipboardDataFromString(doc,text){let dt=createDataTransfer(getWindow(doc));return dt.setData("text",text),dt}function parseKeyDef2(pointerMap,keys2){let defs=[];do{let{descriptor,consumedLength,releasePrevious,releaseSelf=!0}=readNextDescriptor(keys2,"pointer"),keyDef=pointerMap.find(p3=>p3.name===descriptor);keyDef&&defs.push({keyDef,releasePrevious,releaseSelf}),keys2=keys2.slice(consumedLength)}while(keys2);return defs}async function pointer(input2){let{pointerMap}=this.config,actions=[];(Array.isArray(input2)?input2:[input2]).forEach(actionInput=>{typeof actionInput=="string"?actions.push(...parseKeyDef2(pointerMap,actionInput)):"keys"in actionInput?actions.push(...parseKeyDef2(pointerMap,actionInput.keys).map(i=>({...actionInput,...i}))):actions.push(actionInput)});for(let i=0;i<actions.length;i++)await wait(this.config),await pointerAction(this,actions[i]);this.system.pointer.resetClickCount()}async function pointerAction(instance,action){var _previousPosition_caret,_previousPosition_caret1;let pointerName="pointerName"in action&&action.pointerName?action.pointerName:"keyDef"in action?instance.system.pointer.getPointerName(action.keyDef):"mouse",previousPosition=instance.system.pointer.getPreviousPosition(pointerName);var _action_target,_action_coords,_action_node,_action_offset;let position={target:(_action_target=action.target)!==null&&_action_target!==void 0?_action_target:getPrevTarget(instance,previousPosition),coords:(_action_coords=action.coords)!==null&&_action_coords!==void 0?_action_coords:previousPosition?.coords,caret:{node:(_action_node=action.node)!==null&&_action_node!==void 0?_action_node:hasCaretPosition(action)||previousPosition==null||(_previousPosition_caret=previousPosition.caret)===null||_previousPosition_caret===void 0?void 0:_previousPosition_caret.node,offset:(_action_offset=action.offset)!==null&&_action_offset!==void 0?_action_offset:hasCaretPosition(action)||previousPosition==null||(_previousPosition_caret1=previousPosition.caret)===null||_previousPosition_caret1===void 0?void 0:_previousPosition_caret1.offset}};"keyDef"in action?(instance.system.pointer.isKeyPressed(action.keyDef)&&(setLevelRef(instance,ApiLevel.Trigger),await instance.system.pointer.release(instance,action.keyDef,position)),action.releasePrevious||(setLevelRef(instance,ApiLevel.Trigger),await instance.system.pointer.press(instance,action.keyDef,position),action.releaseSelf&&(setLevelRef(instance,ApiLevel.Trigger),await instance.system.pointer.release(instance,action.keyDef,position)))):(setLevelRef(instance,ApiLevel.Trigger),await instance.system.pointer.move(instance,pointerName,position))}function hasCaretPosition(action){var _action_target,_ref;return!!((_ref=(_action_target=action.target)!==null&&_action_target!==void 0?_action_target:action.node)!==null&&_ref!==void 0?_ref:action.offset!==void 0)}function getPrevTarget(instance,position){if(!position)throw new Error("This pointer has no previous position. Provide a target property!");var _position_target;return(_position_target=position.target)!==null&&_position_target!==void 0?_position_target:instance.config.document.body}async function clear(element){if(!isEditable(element)||isDisabled2(element))throw new Error("clear()` is only supported on editable elements.");if(focusElement(element),element.ownerDocument.activeElement!==element)throw new Error("The element to be cleared could not be focused.");if(selectAll(element),!isAllSelected(element))throw new Error("The element content to be cleared could not be selected.");input(this,element,"","deleteContentBackward")}async function selectOptions(select,values){return selectOptionsBase.call(this,!0,select,values)}async function deselectOptions(select,values){return selectOptionsBase.call(this,!1,select,values)}async function selectOptionsBase(newValue,select,values){if(!newValue&&!select.multiple)throw getConfig2().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",select);let valArray=Array.isArray(values)?values:[values],allOptions=Array.from(select.querySelectorAll('option, [role="option"]')),selectedOptions=valArray.map(val=>{if(typeof val!="string"&&allOptions.includes(val))return val;{let matchingOption=allOptions.find(o=>o.value===val||o.innerHTML===val);if(matchingOption)return matchingOption;throw getConfig2().getElementError(`Value "${String(val)}" not found in options`,select)}}).filter(option=>!isDisabled2(option));if(isDisabled2(select)||!selectedOptions.length)return;let selectOption=option=>{option.selected=newValue,this.dispatchUIEvent(select,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(select,"change")};if(isElementType(select,"select"))if(select.multiple)for(let option of selectedOptions){let withPointerEvents=this.config.pointerEventsCheck===0?!0:hasPointerEvents(this,option);withPointerEvents&&(this.dispatchUIEvent(option,"pointerover"),this.dispatchUIEvent(select,"pointerenter"),this.dispatchUIEvent(option,"mouseover"),this.dispatchUIEvent(select,"mouseenter"),this.dispatchUIEvent(option,"pointermove"),this.dispatchUIEvent(option,"mousemove"),this.dispatchUIEvent(option,"pointerdown"),this.dispatchUIEvent(option,"mousedown")),focusElement(select),withPointerEvents&&(this.dispatchUIEvent(option,"pointerup"),this.dispatchUIEvent(option,"mouseup")),selectOption(option),withPointerEvents&&this.dispatchUIEvent(option,"click"),await wait(this.config)}else if(selectedOptions.length===1){let withPointerEvents=this.config.pointerEventsCheck===0?!0:hasPointerEvents(this,select);withPointerEvents?await this.click(select):focusElement(select),selectOption(selectedOptions[0]),withPointerEvents&&(this.dispatchUIEvent(select,"pointerover"),this.dispatchUIEvent(select,"pointerenter"),this.dispatchUIEvent(select,"mouseover"),this.dispatchUIEvent(select,"mouseenter"),this.dispatchUIEvent(select,"pointerup"),this.dispatchUIEvent(select,"mouseup"),this.dispatchUIEvent(select,"click")),await wait(this.config)}else throw getConfig2().getElementError("Cannot select multiple options on a non-multiple select",select);else if(select.getAttribute("role")==="listbox")for(let option of selectedOptions)await this.click(option),await this.unhover(option);else throw getConfig2().getElementError("Cannot select options on elements that are neither select nor listbox elements",select)}async function type3(element,text,{skipClick=this.config.skipClick,skipAutoClose=this.config.skipAutoClose,initialSelectionStart,initialSelectionEnd}={}){element.disabled||(skipClick||await this.click(element),initialSelectionStart!==void 0&&setSelectionRange(element,initialSelectionStart,initialSelectionEnd??initialSelectionStart),await this.keyboard(text),skipAutoClose||await releaseAllKeys(this))}var fakeFiles=Symbol("files and value properties are mocked");function restoreProperty(obj,prop,descriptor){descriptor?Object.defineProperty(obj,prop,descriptor):delete obj[prop]}function setFiles(el,files){var _el_fakeFiles;(_el_fakeFiles=el[fakeFiles])===null||_el_fakeFiles===void 0||_el_fakeFiles.restore();let typeDescr=Object.getOwnPropertyDescriptor(el,"type"),valueDescr=Object.getOwnPropertyDescriptor(el,"value"),filesDescr=Object.getOwnPropertyDescriptor(el,"files");function restore(){restoreProperty(el,"type",typeDescr),restoreProperty(el,"value",valueDescr),restoreProperty(el,"files",filesDescr)}el[fakeFiles]={restore},Object.defineProperties(el,{files:{configurable:!0,get:()=>files},value:{configurable:!0,get:()=>files.length?`C:\\fakepath\\${files[0].name}`:"",set(v){if(v==="")restore();else{var _valueDescr_set;valueDescr==null||(_valueDescr_set=valueDescr.set)===null||_valueDescr_set===void 0||_valueDescr_set.call(el,v)}}},type:{configurable:!0,get:()=>"file",set(v){v!=="file"&&(restore(),el.type=v)}}})}async function upload(element,fileOrFiles){let input2=isElementType(element,"label")?element.control:element;if(!input2||!isElementType(input2,"input",{type:"file"}))throw new TypeError(`The ${input2===element?"given":"associated"} ${input2?.tagName} element does not accept file uploads`);if(isDisabled2(element))return;let files=(Array.isArray(fileOrFiles)?fileOrFiles:[fileOrFiles]).filter(file=>!this.config.applyAccept||isAcceptableFile(file,input2.accept)).slice(0,input2.multiple?void 0:1),fileDialog=()=>{var _input_files;files.length===((_input_files=input2.files)===null||_input_files===void 0?void 0:_input_files.length)&&files.every((f3,i)=>{var _input_files2;return f3===((_input_files2=input2.files)===null||_input_files2===void 0?void 0:_input_files2.item(i))})||(setFiles(input2,createFileList(getWindow(element),files)),this.dispatchUIEvent(input2,"input"),this.dispatchUIEvent(input2,"change"))};input2.addEventListener("fileDialog",fileDialog),await this.click(element),input2.removeEventListener("fileDialog",fileDialog)}function isAcceptableFile(file,accept){if(!accept)return!0;let wildcards=["audio/*","image/*","video/*"];return accept.split(",").some(acceptToken=>acceptToken.startsWith(".")?file.name.endsWith(acceptToken):wildcards.includes(acceptToken)?file.type.startsWith(acceptToken.substr(0,acceptToken.length-1)):file.type===acceptToken)}var userEventApi={click,dblClick,tripleClick,hover,unhover,tab,keyboard,copy,cut,paste,pointer,clear,deselectOptions,selectOptions,type:type3,upload};function wrapAsync(implementation){return getConfig2().asyncWrapper(implementation)}var defaultOptionsDirect={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:defaultKeyMap,pointerMap:defaultKeyMap2,pointerEventsCheck:PointerEventsCheckLevel.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},defaultOptionsSetup={...defaultOptionsDirect,writeToClipboard:!0};function createConfig(options={},defaults=defaultOptionsSetup,node){let document2=getDocument2(options,node,defaults);return{...defaults,...options,document:document2}}function setupMain(options={}){let config3=createConfig(options);prepareDocument(config3.document);var _config_document_defaultView;let view=(_config_document_defaultView=config3.document.defaultView)!==null&&_config_document_defaultView!==void 0?_config_document_defaultView:globalThis.window;return attachClipboardStubToView(view),createInstance(config3).api}function setupDirect({keyboardState,pointerState,...options}={},node){let config3=createConfig(options,defaultOptionsDirect,node);prepareDocument(config3.document);var _ref;let system=(_ref=pointerState??keyboardState)!==null&&_ref!==void 0?_ref:new System;return{api:createInstance(config3,system).api,system}}function setupSub(options){return createInstance({...this.config,...options},this.system).api}function wrapAndBindImpl(instance,impl){function method(...args){return setLevelRef(instance,ApiLevel.Call),wrapAsync(()=>impl.apply(instance,args).then(async ret=>(await wait(instance.config),ret)))}return Object.defineProperty(method,"name",{get:()=>impl.name}),method}function createInstance(config3,system=new System){let instance={};return Object.assign(instance,{config:config3,dispatchEvent:dispatchEvent.bind(instance),dispatchUIEvent:dispatchUIEvent.bind(instance),system,levelRefs:{},...userEventApi}),{instance,api:{...Object.fromEntries(Object.entries(userEventApi).map(([name,api])=>[name,wrapAndBindImpl(instance,api)])),setup:setupSub.bind(instance)}}}function getDocument2(options,node,defaults){var _options_document,_ref;return(_ref=(_options_document=options.document)!==null&&_options_document!==void 0?_options_document:node&&getDocumentFromNode(node))!==null&&_ref!==void 0?_ref:defaults.document}var directApi_exports={};__export(directApi_exports,{clear:()=>clear2,click:()=>click2,copy:()=>copy2,cut:()=>cut2,dblClick:()=>dblClick2,deselectOptions:()=>deselectOptions2,hover:()=>hover2,keyboard:()=>keyboard2,paste:()=>paste2,pointer:()=>pointer2,selectOptions:()=>selectOptions2,tab:()=>tab2,tripleClick:()=>tripleClick2,type:()=>type4,unhover:()=>unhover2,upload:()=>upload2});function clear2(element){return setupDirect().api.clear(element)}function click2(element,options={}){return setupDirect(options,element).api.click(element)}function copy2(options={}){return setupDirect(options).api.copy()}function cut2(options={}){return setupDirect(options).api.cut()}function dblClick2(element,options={}){return setupDirect(options).api.dblClick(element)}function deselectOptions2(select,values,options={}){return setupDirect(options).api.deselectOptions(select,values)}function hover2(element,options={}){return setupDirect(options).api.hover(element)}async function keyboard2(text,options={}){let{api,system}=setupDirect(options);return api.keyboard(text).then(()=>system)}async function pointer2(input2,options={}){let{api,system}=setupDirect(options);return api.pointer(input2).then(()=>system)}function paste2(clipboardData,options){return setupDirect(options).api.paste(clipboardData)}function selectOptions2(select,values,options={}){return setupDirect(options).api.selectOptions(select,values)}function tripleClick2(element,options={}){return setupDirect(options).api.tripleClick(element)}function type4(element,text,options={}){return setupDirect(options,element).api.type(element,text,options)}function unhover2(element,options={}){let{api,system}=setupDirect(options);return system.pointer.setMousePosition({target:element}),api.unhover(element)}function upload2(element,fileOrFiles,options={}){return setupDirect(options).api.upload(element,fileOrFiles)}function tab2(options={}){return setupDirect().api.tab(options)}var userEvent={...directApi_exports,setup:setupMain};var import_client_logger=require("storybook/internal/client-logger"),import_instrumenter=require("storybook/internal/instrumenter");function dedent(templ){for(var values=[],_i=1;_i<arguments.length;_i++)values[_i-1]=arguments[_i];var strings=Array.from(typeof templ=="string"?[templ]:templ);strings[strings.length-1]=strings[strings.length-1].replace(/\r?\n([\t ]*)$/,"");var indentLengths=strings.reduce(function(arr,str){var matches3=str.match(/\n([\t ]+|(?!\s).)/g);return matches3?arr.concat(matches3.map(function(match){var _a,_b;return(_b=(_a=match.match(/[\t ]/g))===null||_a===void 0?void 0:_a.length)!==null&&_b!==void 0?_b:0})):arr},[]);if(indentLengths.length){var pattern_1=new RegExp(`
186
186
  [ ]{`+Math.min.apply(Math,indentLengths)+"}","g");strings=strings.map(function(str){return str.replace(pattern_1,`
187
187
  `)})}strings[0]=strings[0].replace(/^\r?\n/,"");var string=strings[0];return values.forEach(function(value,i){var endentations=string.match(/(?:^|\n)( *)$/),endentation=endentations?endentations[1]:"",indentedValue=value;typeof value=="string"&&value.includes(`
188
188
  `)&&(indentedValue=String(value).split(`