cortex-react-components 1.17.0 → 1.18.0

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.
Files changed (101) hide show
  1. package/dist/{chunk-NSUCU5DU.mjs → chunk-5O6DFU4X.mjs} +1 -1
  2. package/dist/{chunk-KVLKXXVS.mjs → chunk-6AIYOOQB.mjs} +1 -1
  3. package/dist/{chunk-5M4ELXL3.mjs → chunk-6B34FUZY.mjs} +1 -1
  4. package/dist/{chunk-PMSQWXAT.mjs → chunk-7LAWX74V.mjs} +1 -1
  5. package/dist/{chunk-GCVL4HMJ.mjs → chunk-CLX23VLS.mjs} +1 -1
  6. package/dist/{chunk-IPHHUHS3.mjs → chunk-D43ENVPX.mjs} +1 -1
  7. package/dist/{chunk-FHRWUBJS.mjs → chunk-DSLEVJ5J.mjs} +1 -1
  8. package/dist/chunk-FTXWB6OV.mjs +4 -0
  9. package/dist/{chunk-N7Z6I6KY.mjs → chunk-G2IGGQXC.mjs} +1 -1
  10. package/dist/{chunk-O7JZET2F.mjs → chunk-GXHXPWKT.mjs} +1 -1
  11. package/dist/{chunk-QCZZL6MD.mjs → chunk-HOTJ3KYZ.mjs} +1 -1
  12. package/dist/{chunk-LBKMUSVR.mjs → chunk-IE2A7UT3.mjs} +1 -1
  13. package/dist/{chunk-Q24IVBS5.mjs → chunk-KHQHXFXT.mjs} +1 -1
  14. package/dist/{chunk-NV7LUI3U.mjs → chunk-MGZHZWWG.mjs} +1 -1
  15. package/dist/{chunk-YLVDYTR5.mjs → chunk-PGGLOICR.mjs} +1 -1
  16. package/dist/{chunk-XS2GYYRB.mjs → chunk-QAZT4VG7.mjs} +1 -1
  17. package/dist/{chunk-6MWJ4LJP.mjs → chunk-U4Z5UCHZ.mjs} +1 -1
  18. package/dist/{chunk-QXFTL6FL.mjs → chunk-UJRNR62B.mjs} +1 -1
  19. package/dist/{chunk-Y7INXZZZ.mjs → chunk-VAEYKO2L.mjs} +1 -1
  20. package/dist/{chunk-ERWTLUYM.mjs → chunk-VDTIBSYZ.mjs} +1 -1
  21. package/dist/{chunk-KHYUZ2PB.mjs → chunk-VYJK4R76.mjs} +1 -1
  22. package/dist/{chunk-Q3HKMCDA.mjs → chunk-W4BDQBY4.mjs} +1 -1
  23. package/dist/{chunk-QRV2F2XT.mjs → chunk-YJLGN2LA.mjs} +1 -1
  24. package/dist/chunk-YLGJP63J.mjs +4 -0
  25. package/dist/chunk-ZBKZHJB4.mjs +1 -0
  26. package/dist/{chunk-GCBC75DA.mjs → chunk-ZDDN4BC5.mjs} +1 -1
  27. package/dist/components/Blocks/Banner.mjs +1 -1
  28. package/dist/components/Blocks/CallToAction.mjs +1 -1
  29. package/dist/components/Blocks/Content.mjs +1 -1
  30. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  31. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  32. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  33. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  34. package/dist/components/Blocks/index.mjs +1 -1
  35. package/dist/components/Cards/index.mjs +1 -1
  36. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  37. package/dist/components/HeaderFooter/VideoHeader.js +1 -1
  38. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  39. package/dist/components/HeaderFooter/index.js +1 -1
  40. package/dist/components/HeaderFooter/index.mjs +1 -1
  41. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  42. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  43. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  44. package/dist/components/Heros/RenderHero.mjs +1 -1
  45. package/dist/components/Heros/index.mjs +1 -1
  46. package/dist/components/Layouts/index.mjs +1 -1
  47. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  48. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  49. package/dist/components/Menus/SidebarRight.mjs +1 -1
  50. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  51. package/dist/components/Menus/index.mjs +1 -1
  52. package/dist/components/Pages/Documentation.mjs +1 -1
  53. package/dist/components/Pages/Documentation.stories.mjs +1 -1
  54. package/dist/components/Pages/IndexPage.mjs +1 -1
  55. package/dist/components/Pages/IndexPage.stories.mjs +1 -1
  56. package/dist/components/Pages/Intranet.mjs +1 -1
  57. package/dist/components/Pages/Intranet.stories.mjs +1 -1
  58. package/dist/components/Pages/LandingPage.js +1 -1
  59. package/dist/components/Pages/LandingPage.mjs +1 -1
  60. package/dist/components/Pages/LandingPage.stories.js +51 -51
  61. package/dist/components/Pages/LandingPage.stories.mjs +1 -1
  62. package/dist/components/Pages/Page.mjs +1 -1
  63. package/dist/components/Pages/Page.stories.mjs +1 -1
  64. package/dist/components/Pages/Website.mjs +1 -1
  65. package/dist/components/Pages/Website.stories.mjs +1 -1
  66. package/dist/components/Payload/RichText/index.mjs +1 -1
  67. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  68. package/dist/components/Payload/index.mjs +1 -1
  69. package/dist/components/index.js +1 -1
  70. package/dist/components/index.mjs +1 -1
  71. package/dist/components/ui/index.mjs +1 -1
  72. package/dist/components/ui/sidebar.mjs +1 -1
  73. package/dist/globals.css +1 -1
  74. package/dist/hooks/index.mjs +1 -1
  75. package/dist/index.js +1 -1
  76. package/dist/index.mjs +1 -1
  77. package/dist/metafile-cjs.json +1 -1
  78. package/dist/metafile-esm.json +1 -1
  79. package/dist/sections/AboutSection.mjs +1 -1
  80. package/dist/sections/AboutSection.stories.mjs +1 -1
  81. package/dist/sections/BlogListSection.d.ts +19 -0
  82. package/dist/sections/BlogListSection.js +1 -0
  83. package/dist/sections/BlogListSection.mjs +1 -0
  84. package/dist/sections/BlogListSection.stories.js +1 -0
  85. package/dist/sections/BlogListSection.stories.mjs +1 -0
  86. package/dist/sections/ContactSection.js +1 -1
  87. package/dist/sections/ContactSection.mjs +1 -1
  88. package/dist/sections/ContactSection.stories.js +1 -1
  89. package/dist/sections/ContactSection.stories.mjs +1 -1
  90. package/dist/sections/PricingSection.mjs +1 -1
  91. package/dist/sections/PricingSection.stories.mjs +1 -1
  92. package/dist/sections/ServiceSection.mjs +1 -1
  93. package/dist/sections/ServiceSection.stories.mjs +1 -1
  94. package/dist/sections/form/index.js +1 -1
  95. package/dist/sections/form/index.mjs +1 -1
  96. package/dist/sections/form/server/contact-us-form-submit.js +1 -1
  97. package/dist/sections/form/server/contact-us-form-submit.mjs +1 -1
  98. package/dist/sections/index.mjs +1 -1
  99. package/package.json +1 -1
  100. package/dist/chunk-H2JWQHUC.mjs +0 -4
  101. package/dist/chunk-WASMU2IJ.mjs +0 -4
@@ -1,26 +1,26 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- "use strict";var Dw=Object.create;var Si=Object.defineProperty;var qw=Object.getOwnPropertyDescriptor;var jw=Object.getOwnPropertyNames;var Bw=Object.getPrototypeOf,Fw=Object.prototype.hasOwnProperty;var kw=(e,t,r)=>t in e?Si(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var or=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Lw=(e,t)=>{for(var r in t)Si(e,r,{get:t[r],enumerable:!0})},qp=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of jw(t))!Fw.call(e,o)&&o!==r&&Si(e,o,{get:()=>t[o],enumerable:!(_R=qw(t,o))||_R.enumerable});return e};var Gn=(e,t,r)=>(r=e!=null?Dw(Bw(e)):{},qp(t||!e||!e.__esModule?Si(r,"default",{value:e,enumerable:!0}):r,e)),$w=e=>qp(Si({},"__esModule",{value:!0}),e);var gt=(e,t,r)=>kw(e,typeof t!="symbol"?t+"":t,r);var Tl=or((rH,ff)=>{"use strict";var Al=Object.defineProperty,RS=Object.getOwnPropertyDescriptor,xS=Object.getOwnPropertyNames,OS=Object.prototype.hasOwnProperty,PS=(e,t)=>{for(var r in t)Al(e,r,{get:t[r],enumerable:!0})},NS=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of xS(t))!OS.call(e,o)&&o!==r&&Al(e,o,{get:()=>t[o],enumerable:!(_R=RS(t,o))||_R.enumerable});return e},MS=e=>NS(Al({},"__esModule",{value:!0}),e),pf={};PS(pf,{global:()=>IS});ff.exports=MS(pf);var IS=(()=>{let e;return typeof window!="undefined"?e=window:typeof globalThis!="undefined"?e=globalThis:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e={},e})()});var Pt=or((nH,gf)=>{"use strict";var DS=Object.create,Oi=Object.defineProperty,qS=Object.getOwnPropertyDescriptor,jS=Object.getOwnPropertyNames,BS=Object.getPrototypeOf,FS=Object.prototype.hasOwnProperty,er=(e,t)=>Oi(e,"name",{value:t,configurable:!0}),kS=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),LS=(e,t)=>{for(var r in t)Oi(e,r,{get:t[r],enumerable:!0})},hf=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of jS(t))!FS.call(e,o)&&o!==r&&Oi(e,o,{get:()=>t[o],enumerable:!(_R=qS(t,o))||_R.enumerable});return e},$S=(e,t,r)=>(r=e!=null?DS(BS(e)):{},hf(t||!e||!e.__esModule?Oi(r,"default",{value:e,enumerable:!0}):r,e)),US=e=>hf(Oi({},"__esModule",{value:!0}),e),HS=kS((e,t)=>{"use strict";var r=Object.defineProperty,_R=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s=er((p,h)=>{for(var m in h)r(p,m,{get:h[m],enumerable:!0})},"__export"),l=er((p,h,m,g)=>{if(h&&typeof h=="object"||typeof h=="function")for(let y of o(h))!i.call(p,y)&&y!==m&&r(p,y,{get:er(()=>h[y],"get"),enumerable:!(g=_R(h,y))||g.enumerable});return p},"__copyProps"),u=er(p=>l(r({},"__esModule",{value:!0}),p),"__toCommonJS"),d={};s(d,{global:er(()=>c,"global")}),t.exports=u(d);var c=(()=>{let p;return typeof window<"u"?p=window:typeof globalThis<"u"?p=globalThis:typeof global<"u"?p=global:typeof self<"u"?p=self:p={},p})()}),mf={};LS(mf,{deprecate:()=>WS,logger:()=>ja,once:()=>Yt,pretty:()=>pr});gf.exports=US(mf);var zS=$S(HS(),1),{LOGLEVEL:VS}=zS.global,Qr={trace:1,debug:2,info:3,warn:4,error:5,silent:10},GS=VS,Qn=Qr[GS]||Qr.info,ja={trace:er((e,...t)=>{Qn<=Qr.trace&&console.trace(e,...t)},"trace"),debug:er((e,...t)=>{Qn<=Qr.debug&&console.debug(e,...t)},"debug"),info:er((e,...t)=>{Qn<=Qr.info&&console.info(e,...t)},"info"),warn:er((e,...t)=>{Qn<=Qr.warn&&console.warn(e,...t)},"warn"),error:er((e,...t)=>{Qn<=Qr.error&&console.error(e,...t)},"error"),log:er((e,...t)=>{Qn<Qr.silent&&console.log(e,...t)},"log")},Rl=new Set,Yt=er(e=>(t,...r)=>{if(!Rl.has(t))return Rl.add(t),ja[e](t,...r)},"once");Yt.clear=()=>Rl.clear();Yt.trace=Yt("trace");Yt.debug=Yt("debug");Yt.info=Yt("info");Yt.warn=Yt("warn");Yt.error=Yt("error");Yt.log=Yt("log");var WS=Yt("warn"),pr=er(e=>(...t)=>{let r=[];if(t.length){let _R=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,o=/<\/span>/gi,i;for(r.push(t[0].replace(_R,"%c").replace(o,"%c"));i=_R.exec(t[0]);)r.push(i[2]),r.push("");for(let s=1;s<t.length;s++)r.push(t[s])}ja[e].apply(ja,r)},"pretty");pr.trace=pr("trace");pr.debug=pr("debug");pr.info=pr("info");pr.warn=pr("warn");pr.error=pr("error")});var xl=or((oH,yf)=>{"use strict";yf.exports=Pt()});var wr=or((iH,vf)=>{"use strict";var Ol=Object.defineProperty,YS=Object.getOwnPropertyDescriptor,KS=Object.getOwnPropertyNames,JS=Object.prototype.hasOwnProperty,XS=(e,t)=>{for(var r in t)Ol(e,r,{get:t[r],enumerable:!0})},QS=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of KS(t))!JS.call(e,o)&&o!==r&&Ol(e,o,{get:()=>t[o],enumerable:!(_R=YS(t,o))||_R.enumerable});return e},ZS=e=>QS(Ol({},"__esModule",{value:!0}),e),bf={};XS(bf,{ARGTYPES_INFO_REQUEST:()=>eC,ARGTYPES_INFO_RESPONSE:()=>tC,CHANNEL_CREATED:()=>r2,CHANNEL_WS_DISCONNECT:()=>t2,CONFIG_ERROR:()=>n2,CREATE_NEW_STORYFILE_REQUEST:()=>o2,CREATE_NEW_STORYFILE_RESPONSE:()=>i2,CURRENT_STORY_WAS_SET:()=>a2,DOCS_PREPARED:()=>s2,DOCS_RENDERED:()=>l2,FILE_COMPONENT_SEARCH_REQUEST:()=>u2,FILE_COMPONENT_SEARCH_RESPONSE:()=>c2,FORCE_REMOUNT:()=>p2,FORCE_RE_RENDER:()=>d2,GLOBALS_UPDATED:()=>f2,NAVIGATE_URL:()=>h2,PLAY_FUNCTION_THREW_EXCEPTION:()=>m2,PRELOAD_ENTRIES:()=>y2,PREVIEW_BUILDER_PROGRESS:()=>b2,PREVIEW_KEYDOWN:()=>v2,REGISTER_SUBSCRIPTION:()=>E2,REQUEST_WHATS_NEW_DATA:()=>W2,RESET_STORY_ARGS:()=>_2,RESULT_WHATS_NEW_DATA:()=>Y2,SAVE_STORY_REQUEST:()=>Q2,SAVE_STORY_RESPONSE:()=>Z2,SELECT_STORY:()=>w2,SET_CONFIG:()=>S2,SET_CURRENT_STORY:()=>C2,SET_FILTER:()=>A2,SET_GLOBALS:()=>T2,SET_INDEX:()=>R2,SET_STORIES:()=>x2,SET_WHATS_NEW_CACHE:()=>K2,SHARED_STATE_CHANGED:()=>O2,SHARED_STATE_SET:()=>P2,STORIES_COLLAPSE_ALL:()=>N2,STORIES_EXPAND_ALL:()=>M2,STORY_ARGS_UPDATED:()=>I2,STORY_CHANGED:()=>D2,STORY_ERRORED:()=>q2,STORY_INDEX_INVALIDATED:()=>j2,STORY_MISSING:()=>B2,STORY_PREPARED:()=>F2,STORY_RENDERED:()=>L2,STORY_RENDER_PHASE_CHANGED:()=>k2,STORY_SPECIFIED:()=>$2,STORY_THREW_EXCEPTION:()=>U2,STORY_UNCHANGED:()=>H2,TELEMETRY_ERROR:()=>X2,TESTING_MODULE_CANCEL_TEST_RUN_REQUEST:()=>aC,TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE:()=>sC,TESTING_MODULE_CRASH_REPORT:()=>rC,TESTING_MODULE_PROGRESS_REPORT:()=>nC,TESTING_MODULE_RUN_ALL_REQUEST:()=>iC,TESTING_MODULE_RUN_REQUEST:()=>oC,TESTING_MODULE_WATCH_MODE_REQUEST:()=>lC,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>J2,UNHANDLED_ERRORS_WHILE_PLAYING:()=>g2,UPDATE_GLOBALS:()=>z2,UPDATE_QUERY_PARAMS:()=>V2,UPDATE_STORY_ARGS:()=>G2,default:()=>e2});vf.exports=ZS(bf);var Pl=(e=>(e.CHANNEL_WS_DISCONNECT="channelWSDisconnect",e.CHANNEL_CREATED="channelCreated",e.CONFIG_ERROR="configError",e.STORY_INDEX_INVALIDATED="storyIndexInvalidated",e.STORY_SPECIFIED="storySpecified",e.SET_CONFIG="setConfig",e.SET_STORIES="setStories",e.SET_INDEX="setIndex",e.SET_CURRENT_STORY="setCurrentStory",e.CURRENT_STORY_WAS_SET="currentStoryWasSet",e.FORCE_RE_RENDER="forceReRender",e.FORCE_REMOUNT="forceRemount",e.PRELOAD_ENTRIES="preloadStories",e.STORY_PREPARED="storyPrepared",e.DOCS_PREPARED="docsPrepared",e.STORY_CHANGED="storyChanged",e.STORY_UNCHANGED="storyUnchanged",e.STORY_RENDERED="storyRendered",e.STORY_MISSING="storyMissing",e.STORY_ERRORED="storyErrored",e.STORY_THREW_EXCEPTION="storyThrewException",e.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",e.PLAY_FUNCTION_THREW_EXCEPTION="playFunctionThrewException",e.UNHANDLED_ERRORS_WHILE_PLAYING="unhandledErrorsWhilePlaying",e.UPDATE_STORY_ARGS="updateStoryArgs",e.STORY_ARGS_UPDATED="storyArgsUpdated",e.RESET_STORY_ARGS="resetStoryArgs",e.SET_FILTER="setFilter",e.SET_GLOBALS="setGlobals",e.UPDATE_GLOBALS="updateGlobals",e.GLOBALS_UPDATED="globalsUpdated",e.REGISTER_SUBSCRIPTION="registerSubscription",e.PREVIEW_KEYDOWN="previewKeydown",e.PREVIEW_BUILDER_PROGRESS="preview_builder_progress",e.SELECT_STORY="selectStory",e.STORIES_COLLAPSE_ALL="storiesCollapseAll",e.STORIES_EXPAND_ALL="storiesExpandAll",e.DOCS_RENDERED="docsRendered",e.SHARED_STATE_CHANGED="sharedStateChanged",e.SHARED_STATE_SET="sharedStateSet",e.NAVIGATE_URL="navigateUrl",e.UPDATE_QUERY_PARAMS="updateQueryParams",e.REQUEST_WHATS_NEW_DATA="requestWhatsNewData",e.RESULT_WHATS_NEW_DATA="resultWhatsNewData",e.SET_WHATS_NEW_CACHE="setWhatsNewCache",e.TOGGLE_WHATS_NEW_NOTIFICATIONS="toggleWhatsNewNotifications",e.TELEMETRY_ERROR="telemetryError",e.FILE_COMPONENT_SEARCH_REQUEST="fileComponentSearchRequest",e.FILE_COMPONENT_SEARCH_RESPONSE="fileComponentSearchResponse",e.SAVE_STORY_REQUEST="saveStoryRequest",e.SAVE_STORY_RESPONSE="saveStoryResponse",e.ARGTYPES_INFO_REQUEST="argtypesInfoRequest",e.ARGTYPES_INFO_RESPONSE="argtypesInfoResponse",e.CREATE_NEW_STORYFILE_REQUEST="createNewStoryfileRequest",e.CREATE_NEW_STORYFILE_RESPONSE="createNewStoryfileResponse",e.TESTING_MODULE_CRASH_REPORT="testingModuleCrashReport",e.TESTING_MODULE_PROGRESS_REPORT="testingModuleProgressReport",e.TESTING_MODULE_RUN_REQUEST="testingModuleRunRequest",e.TESTING_MODULE_RUN_ALL_REQUEST="testingModuleRunAllRequest",e.TESTING_MODULE_CANCEL_TEST_RUN_REQUEST="testingModuleCancelTestRunRequest",e.TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE="testingModuleCancelTestRunResponse",e.TESTING_MODULE_WATCH_MODE_REQUEST="testingModuleWatchModeRequest",e))(Pl||{}),e2=Pl,{CHANNEL_WS_DISCONNECT:t2,CHANNEL_CREATED:r2,CONFIG_ERROR:n2,CREATE_NEW_STORYFILE_REQUEST:o2,CREATE_NEW_STORYFILE_RESPONSE:i2,CURRENT_STORY_WAS_SET:a2,DOCS_PREPARED:s2,DOCS_RENDERED:l2,FILE_COMPONENT_SEARCH_REQUEST:u2,FILE_COMPONENT_SEARCH_RESPONSE:c2,FORCE_RE_RENDER:d2,FORCE_REMOUNT:p2,GLOBALS_UPDATED:f2,NAVIGATE_URL:h2,PLAY_FUNCTION_THREW_EXCEPTION:m2,UNHANDLED_ERRORS_WHILE_PLAYING:g2,PRELOAD_ENTRIES:y2,PREVIEW_BUILDER_PROGRESS:b2,PREVIEW_KEYDOWN:v2,REGISTER_SUBSCRIPTION:E2,RESET_STORY_ARGS:_2,SELECT_STORY:w2,SET_CONFIG:S2,SET_CURRENT_STORY:C2,SET_FILTER:A2,SET_GLOBALS:T2,SET_INDEX:R2,SET_STORIES:x2,SHARED_STATE_CHANGED:O2,SHARED_STATE_SET:P2,STORIES_COLLAPSE_ALL:N2,STORIES_EXPAND_ALL:M2,STORY_ARGS_UPDATED:I2,STORY_CHANGED:D2,STORY_ERRORED:q2,STORY_INDEX_INVALIDATED:j2,STORY_MISSING:B2,STORY_PREPARED:F2,STORY_RENDER_PHASE_CHANGED:k2,STORY_RENDERED:L2,STORY_SPECIFIED:$2,STORY_THREW_EXCEPTION:U2,STORY_UNCHANGED:H2,UPDATE_GLOBALS:z2,UPDATE_QUERY_PARAMS:V2,UPDATE_STORY_ARGS:G2,REQUEST_WHATS_NEW_DATA:W2,RESULT_WHATS_NEW_DATA:Y2,SET_WHATS_NEW_CACHE:K2,TOGGLE_WHATS_NEW_NOTIFICATIONS:J2,TELEMETRY_ERROR:X2,SAVE_STORY_REQUEST:Q2,SAVE_STORY_RESPONSE:Z2,ARGTYPES_INFO_REQUEST:eC,ARGTYPES_INFO_RESPONSE:tC,TESTING_MODULE_CRASH_REPORT:rC,TESTING_MODULE_PROGRESS_REPORT:nC,TESTING_MODULE_RUN_REQUEST:oC,TESTING_MODULE_RUN_ALL_REQUEST:iC,TESTING_MODULE_CANCEL_TEST_RUN_REQUEST:aC,TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE:sC,TESTING_MODULE_WATCH_MODE_REQUEST:lC}=Pl});var _f=or((aH,Ef)=>{"use strict";Ef.exports=wr()});var wf=or((exports,module)=>{"use strict";var Ce=Object.create,q=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,xe=Object.getOwnPropertyNames,Ie=Object.getPrototypeOf,je=Object.prototype.hasOwnProperty,a=(e,t)=>q(e,"name",{value:t,configurable:!0}),z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Te=(e,t)=>{for(var r in t)q(e,r,{get:t[r],enumerable:!0})},ie=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of xe(t))!je.call(e,o)&&o!==r&&q(e,o,{get:()=>t[o],enumerable:!(_R=Ae(t,o))||_R.enumerable});return e},j=(e,t,r)=>(r=e!=null?Ce(Ie(e)):{},ie(t||!e||!e.__esModule?q(r,"default",{value:e,enumerable:!0}):r,e)),Me=e=>ie(q({},"__esModule",{value:!0}),e),Z=z((e,t)=>{"use strict";var r=Object.defineProperty,_R=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s=a((p,h)=>{for(var m in h)r(p,m,{get:h[m],enumerable:!0})},"__export"),l=a((p,h,m,g)=>{if(h&&typeof h=="object"||typeof h=="function")for(let y of o(h))!i.call(p,y)&&y!==m&&r(p,y,{get:a(()=>h[y],"get"),enumerable:!(g=_R(h,y))||g.enumerable});return p},"__copyProps"),u=a(p=>l(r({},"__esModule",{value:!0}),p),"__toCommonJS"),d={};s(d,{global:a(()=>c,"global")}),t.exports=u(d);var c=(()=>{let p;return typeof window<"u"?p=window:typeof globalThis<"u"?p=globalThis:typeof global<"u"?p=global:typeof self<"u"?p=self:p={},p})()}),ue=z((e,t)=>{function r(){return this.list=[],this.lastItem=void 0,this.size=0,this}a(r,"Similar"),r.prototype.get=function(_R){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,_R))return this.lastItem.val;if(o=this.indexOf(_R),o>=0)return this.lastItem=this.list[o],this.list[o].val},r.prototype.set=function(_R,o){var i;return this.lastItem&&this.isEqual(this.lastItem.key,_R)?(this.lastItem.val=o,this):(i=this.indexOf(_R),i>=0?(this.lastItem=this.list[i],this.list[i].val=o,this):(this.lastItem={key:_R,val:o},this.list.push(this.lastItem),this.size++,this))},r.prototype.delete=function(_R){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,_R)&&(this.lastItem=void 0),o=this.indexOf(_R),o>=0)return this.size--,this.list.splice(o,1)[0]},r.prototype.has=function(_R){var o;return this.lastItem&&this.isEqual(this.lastItem.key,_R)?!0:(o=this.indexOf(_R),o>=0?(this.lastItem=this.list[o],!0):!1)},r.prototype.forEach=function(_R,o){var i;for(i=0;i<this.size;i++)_R.call(o||this,this.list[i].val,this.list[i].key,this)},r.prototype.indexOf=function(_R){var o;for(o=0;o<this.size;o++)if(this.isEqual(this.list[o].key,_R))return o;return-1},r.prototype.isEqual=function(_R,o){return _R===o||_R!==_R&&o!==o},t.exports=r}),pe=z((e,t)=>{t.exports=function(r){if(typeof Map!="function"||r){var _R=ue();return new _R}else return new Map}}),he=z((e,t)=>{var r=pe();t.exports=function(s){var l=new r(process.env.FORCE_SIMILAR_INSTEAD_OF_MAP==="true"),u=[];return function(d){var c=a(function(){var p=l,h,m,g=arguments.length-1,y=Array(g+1),b=!0,E;if((c.numArgs||c.numArgs===0)&&c.numArgs!==g+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(E=0;E<g;E++){if(y[E]={cacheItem:p,arg:arguments[E]},p.has(arguments[E])){p=p.get(arguments[E]);continue}b=!1,h=new r(process.env.FORCE_SIMILAR_INSTEAD_OF_MAP==="true"),p.set(arguments[E],h),p=h}return b&&(p.has(arguments[g])?m=p.get(arguments[g]):b=!1),b||(m=d.apply(null,arguments),p.set(arguments[g],m)),s>0&&(y[g]={cacheItem:p,arg:arguments[g]},b?_R(u,y):u.push(y),u.length>s&&o(u.shift())),c.wasMemoized=b,c.numArgs=g+1,m},"memoizerific");return c.limit=s,c.wasMemoized=!1,c.cache=l,c.lru=u,c}};function _R(s,l){var u=s.length,d=l.length,c,p,h;for(p=0;p<u;p++){for(c=!0,h=0;h<d;h++)if(!i(s[p][h].arg,l[h].arg)){c=!1;break}if(c)break}s.push(s.splice(p,1)[0])}a(_R,"moveToMostRecentLru");function o(s){var l=s.length,u=s[l-1],d,c;for(u.cacheItem.delete(u.arg),c=l-2;c>=0&&(u=s[c],d=u.cacheItem.get(u.arg),!d||!d.size);c--)u.cacheItem.delete(u.arg)}a(o,"removeCachedResult");function i(s,l){return s===l||s!==s&&l!==l}a(i,"isEqual")}),ee=z((exports,module)=>{"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__commonJS=a((e,t)=>a(function(){return t||(0,e[__getOwnPropNames(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),__export=a((e,t)=>{for(var r in t)__defProp(e,r,{get:t[r],enumerable:!0})},"__export"),__copyProps=a((e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of __getOwnPropNames(t))!__hasOwnProp.call(e,o)&&o!==r&&__defProp(e,o,{get:a(()=>t[o],"get"),enumerable:!(_R=__getOwnPropDesc(t,o))||_R.enumerable});return e},"__copyProps"),__toESM=a((e,t,r)=>(r=e!=null?__create(__getProtoOf(e)):{},__copyProps(t||!e||!e.__esModule?__defProp(r,"default",{value:e,enumerable:!0}):r,e)),"__toESM"),__toCommonJS=a(e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),"__toCommonJS"),require_shams=__commonJS({"node_modules/has-symbols/shams.js"(e,t){"use strict";t.exports=a(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},_R=Symbol("test"),o=Object(_R);if(typeof _R=="string"||Object.prototype.toString.call(_R)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;r[_R]=i;for(_R in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var s=Object.getOwnPropertySymbols(r);if(s.length!==1||s[0]!==_R||!Object.prototype.propertyIsEnumerable.call(r,_R))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,_R);if(l.value!==i||l.enumerable!==!0)return!1}return!0},"hasSymbols")}}),require_has_symbols=__commonJS({"node_modules/has-symbols/index.js"(e,t){"use strict";var r=typeof Symbol<"u"&&Symbol,_R=require_shams();t.exports=a(function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:_R()},"hasNativeSymbols")}}),require_implementation=__commonJS({"node_modules/function-bind/implementation.js"(e,t){"use strict";var r="Function.prototype.bind called on incompatible ",_R=Array.prototype.slice,o=Object.prototype.toString,i="[object Function]";t.exports=a(function(s){var l=this;if(typeof l!="function"||o.call(l)!==i)throw new TypeError(r+l);for(var u=_R.call(arguments,1),d,c=a(function(){if(this instanceof d){var y=l.apply(this,u.concat(_R.call(arguments)));return Object(y)===y?y:this}else return l.apply(s,u.concat(_R.call(arguments)))},"binder"),p=Math.max(0,l.length-u.length),h=[],m=0;m<p;m++)h.push("$"+m);if(d=Function("binder","return function ("+h.join(",")+"){ return binder.apply(this,arguments); }")(c),l.prototype){var g=a(function(){},"Empty2");g.prototype=l.prototype,d.prototype=new g,g.prototype=null}return d},"bind")}}),require_function_bind=__commonJS({"node_modules/function-bind/index.js"(e,t){"use strict";var r=require_implementation();t.exports=Function.prototype.bind||r}}),require_src=__commonJS({"node_modules/has/src/index.js"(e,t){"use strict";var r=require_function_bind();t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)}}),require_get_intrinsic=__commonJS({"node_modules/get-intrinsic/index.js"(e,t){"use strict";var r,_R=SyntaxError,o=Function,i=TypeError,s=a(function(V){try{return o('"use strict"; return ('+V+").constructor;")()}catch{}},"getEvalledConstructor"),l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch{l=null}var u=a(function(){throw new i},"throwTypeError"),d=l?function(){try{return arguments.callee,u}catch{try{return l(arguments,"callee").get}catch{return u}}}():u,c=require_has_symbols()(),p=Object.getPrototypeOf||function(V){return V.__proto__},h={},m=typeof Uint8Array>"u"?r:p(Uint8Array),g={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":c?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c?p(p([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!c?r:p(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!c?r:p(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c?p(""[Symbol.iterator]()):r,"%Symbol%":c?Symbol:r,"%SyntaxError%":_R,"%ThrowTypeError%":d,"%TypedArray%":m,"%TypeError%":i,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},y=a(function V(J){var x;if(J==="%AsyncFunction%")x=s("async function () {}");else if(J==="%GeneratorFunction%")x=s("function* () {}");else if(J==="%AsyncGeneratorFunction%")x=s("async function* () {}");else if(J==="%AsyncGenerator%"){var B=V("%AsyncGeneratorFunction%");B&&(x=B.prototype)}else if(J==="%AsyncIteratorPrototype%"){var K=V("%AsyncGenerator%");K&&(x=p(K.prototype))}return g[J]=x,x},"doEval2"),b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=require_function_bind(),_=require_src(),O=E.call(Function.call,Array.prototype.concat),C=E.call(Function.apply,Array.prototype.splice),w=E.call(Function.call,String.prototype.replace),S=E.call(Function.call,String.prototype.slice),T=E.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,U=a(function(V){var J=S(V,0,1),x=S(V,-1);if(J==="%"&&x!=="%")throw new _R("invalid intrinsic syntax, expected closing `%`");if(x==="%"&&J!=="%")throw new _R("invalid intrinsic syntax, expected opening `%`");var B=[];return w(V,A,function(K,fe,ce,Se){B[B.length]=ce?w(Se,N,"$1"):fe||K}),B},"stringToPath3"),X=a(function(V,J){var x=V,B;if(_(b,x)&&(B=b[x],x="%"+B[0]+"%"),_(g,x)){var K=g[x];if(K===h&&(K=y(x)),typeof K>"u"&&!J)throw new i("intrinsic "+V+" exists, but is not available. Please file an issue!");return{alias:B,name:x,value:K}}throw new _R("intrinsic "+V+" does not exist!")},"getBaseIntrinsic2");t.exports=a(function(V,J){if(typeof V!="string"||V.length===0)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof J!="boolean")throw new i('"allowMissing" argument must be a boolean');if(T(/^%?[^%]*%?$/,V)===null)throw new _R("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var x=U(V),B=x.length>0?x[0]:"",K=X("%"+B+"%",J),fe=K.name,ce=K.value,Se=!1,De=K.alias;De&&(B=De[0],C(x,O([0,1],De)));for(var Oe=1,le=!0;Oe<x.length;Oe+=1){var se=x[Oe],de=S(se,0,1),we=S(se,-1);if((de==='"'||de==="'"||de==="`"||we==='"'||we==="'"||we==="`")&&de!==we)throw new _R("property names with quotes must have matching quotes");if((se==="constructor"||!le)&&(Se=!0),B+="."+se,fe="%"+B+"%",_(g,fe))ce=g[fe];else if(ce!=null){if(!(se in ce)){if(!J)throw new i("base intrinsic for "+V+" exists, but the property is not available.");return}if(l&&Oe+1>=x.length){var Pe=l(ce,se);le=!!Pe,le&&"get"in Pe&&!("originalValue"in Pe.get)?ce=Pe.get:ce=ce[se]}else le=_(ce,se),ce=ce[se];le&&!Se&&(g[fe]=ce)}}return ce},"GetIntrinsic")}}),require_call_bind=__commonJS({"node_modules/call-bind/index.js"(e,t){"use strict";var r=require_function_bind(),_R=require_get_intrinsic(),o=_R("%Function.prototype.apply%"),i=_R("%Function.prototype.call%"),s=_R("%Reflect.apply%",!0)||r.call(i,o),l=_R("%Object.getOwnPropertyDescriptor%",!0),u=_R("%Object.defineProperty%",!0),d=_R("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}t.exports=a(function(p){var h=s(r,i,arguments);if(l&&u){var m=l(h,"length");m.configurable&&u(h,"length",{value:1+d(0,p.length-(arguments.length-1))})}return h},"callBind");var c=a(function(){return s(r,o,arguments)},"applyBind2");u?u(t.exports,"apply",{value:c}):t.exports.apply=c}}),require_callBound=__commonJS({"node_modules/call-bind/callBound.js"(e,t){"use strict";var r=require_get_intrinsic(),_R=require_call_bind(),o=_R(r("String.prototype.indexOf"));t.exports=a(function(i,s){var l=r(i,!!s);return typeof l=="function"&&o(i,".prototype.")>-1?_R(l):l},"callBoundIntrinsic")}}),require_shams2=__commonJS({"node_modules/has-tostringtag/shams.js"(e,t){"use strict";var r=require_shams();t.exports=a(function(){return r()&&!!Symbol.toStringTag},"hasToStringTagShams")}}),require_is_regex=__commonJS({"node_modules/is-regex/index.js"(e,t){"use strict";var r=require_callBound(),_R=require_shams2()(),o,i,s,l;_R&&(o=r("Object.prototype.hasOwnProperty"),i=r("RegExp.prototype.exec"),s={},u=a(function(){throw s},"throwRegexMarker"),l={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=u));var u,d=r("Object.prototype.toString"),c=Object.getOwnPropertyDescriptor,p="[object RegExp]";t.exports=a(_R?function(h){if(!h||typeof h!="object")return!1;var m=c(h,"lastIndex"),g=m&&o(m,"value");if(!g)return!1;try{i(h,l)}catch(y){return y===s}}:function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:d(h)===p},"isRegex")}}),require_is_function=__commonJS({"node_modules/is-function/index.js"(e,t){t.exports=_R;var r=Object.prototype.toString;function _R(o){if(!o)return!1;var i=r.call(o);return i==="[object Function]"||typeof o=="function"&&i!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}a(_R,"isFunction3")}}),require_is_symbol=__commonJS({"node_modules/is-symbol/index.js"(e,t){"use strict";var r=Object.prototype.toString,_R=require_has_symbols()();_R?(o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/,s=a(function(l){return typeof l.valueOf()!="symbol"?!1:i.test(o.call(l))},"isRealSymbolObject"),t.exports=a(function(l){if(typeof l=="symbol")return!0;if(r.call(l)!=="[object Symbol]")return!1;try{return s(l)}catch{return!1}},"isSymbol3")):t.exports=a(function(l){return!1},"isSymbol3");var o,i,s}}),src_exports={};__export(src_exports,{isJSON:a(()=>isJSON,"isJSON"),parse:a(()=>parse,"parse"),replacer:a(()=>replacer,"replacer"),reviver:a(()=>reviver2,"reviver"),stringify:a(()=>stringify,"stringify")}),module.exports=__toCommonJS(src_exports);var import_is_regex=__toESM(require_is_regex()),import_is_function=__toESM(require_is_function()),import_is_symbol=__toESM(require_is_symbol());function isObject(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}a(isObject,"isObject");var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeGlobal_default=freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root2=freeGlobal_default||freeSelf||Function("return this")(),root_default=root2,Symbol2=root_default.Symbol,Symbol_default=Symbol2,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag=Symbol_default?Symbol_default.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty.call(e,symToStringTag),r=e[symToStringTag];try{e[symToStringTag]=void 0;var _R=!0}catch{}var o=nativeObjectToString.call(e);return _R&&(t?e[symToStringTag]=r:delete e[symToStringTag]),o}a(getRawTag,"getRawTag");var getRawTag_default=getRawTag,objectProto2=Object.prototype,nativeObjectToString2=objectProto2.toString;function objectToString(e){return nativeObjectToString2.call(e)}a(objectToString,"objectToString");var objectToString_default=objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag2=Symbol_default?Symbol_default.toStringTag:void 0;function baseGetTag(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag2&&symToStringTag2 in Object(e)?getRawTag_default(e):objectToString_default(e)}a(baseGetTag,"baseGetTag");var baseGetTag_default=baseGetTag;function isObjectLike(e){return e!=null&&typeof e=="object"}a(isObjectLike,"isObjectLike");var isObjectLike_default=isObjectLike,symbolTag="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||isObjectLike_default(e)&&baseGetTag_default(e)==symbolTag}a(isSymbol,"isSymbol");var isSymbol_default=isSymbol;function arrayMap(e,t){for(var r=-1,_R=e==null?0:e.length,o=Array(_R);++r<_R;)o[r]=t(e[r],r,e);return o}a(arrayMap,"arrayMap");var arrayMap_default=arrayMap,isArray=Array.isArray,isArray_default=isArray,INFINITY=1/0,symbolProto=Symbol_default?Symbol_default.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString(e){if(typeof e=="string")return e;if(isArray_default(e))return arrayMap_default(e,baseToString)+"";if(isSymbol_default(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return t=="0"&&1/e==-INFINITY?"-0":t}a(baseToString,"baseToString");var baseToString_default=baseToString;function isObject2(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}a(isObject2,"isObject2");var isObject_default=isObject2,asyncTag="[object AsyncFunction]",funcTag="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject_default(e))return!1;var t=baseGetTag_default(e);return t==funcTag||t==genTag||t==asyncTag||t==proxyTag}a(isFunction,"isFunction");var isFunction_default=isFunction,coreJsData=root_default["__core-js_shared__"],coreJsData_default=coreJsData,maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData_default&&coreJsData_default.keys&&coreJsData_default.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}a(isMasked,"isMasked");var isMasked_default=isMasked,funcProto=Function.prototype,funcToString=funcProto.toString;function toSource(e){if(e!=null){try{return funcToString.call(e)}catch{}try{return e+""}catch{}}return""}a(toSource,"toSource");var toSource_default=toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto2=Function.prototype,objectProto3=Object.prototype,funcToString2=funcProto2.toString,hasOwnProperty2=objectProto3.hasOwnProperty,reIsNative=RegExp("^"+funcToString2.call(hasOwnProperty2).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!isObject_default(e)||isMasked_default(e))return!1;var t=isFunction_default(e)?reIsNative:reIsHostCtor;return t.test(toSource_default(e))}a(baseIsNative,"baseIsNative");var baseIsNative_default=baseIsNative;function getValue(e,t){return e==null?void 0:e[t]}a(getValue,"getValue");var getValue_default=getValue;function getNative(e,t){var r=getValue_default(e,t);return baseIsNative_default(r)?r:void 0}a(getNative,"getNative");var getNative_default=getNative;function eq(e,t){return e===t||e!==e&&t!==t}a(eq,"eq");var eq_default=eq,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(e,t){if(isArray_default(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||isSymbol_default(e)?!0:reIsPlainProp.test(e)||!reIsDeepProp.test(e)||t!=null&&e in Object(t)}a(isKey,"isKey");var isKey_default=isKey,nativeCreate=getNative_default(Object,"create"),nativeCreate_default=nativeCreate;function hashClear(){this.__data__=nativeCreate_default?nativeCreate_default(null):{},this.size=0}a(hashClear,"hashClear");var hashClear_default=hashClear;function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}a(hashDelete,"hashDelete");var hashDelete_default=hashDelete,HASH_UNDEFINED="__lodash_hash_undefined__",objectProto4=Object.prototype,hasOwnProperty3=objectProto4.hasOwnProperty;function hashGet(e){var t=this.__data__;if(nativeCreate_default){var r=t[e];return r===HASH_UNDEFINED?void 0:r}return hasOwnProperty3.call(t,e)?t[e]:void 0}a(hashGet,"hashGet");var hashGet_default=hashGet,objectProto5=Object.prototype,hasOwnProperty4=objectProto5.hasOwnProperty;function hashHas(e){var t=this.__data__;return nativeCreate_default?t[e]!==void 0:hasOwnProperty4.call(t,e)}a(hashHas,"hashHas");var hashHas_default=hashHas,HASH_UNDEFINED2="__lodash_hash_undefined__";function hashSet(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nativeCreate_default&&t===void 0?HASH_UNDEFINED2:t,this}a(hashSet,"hashSet");var hashSet_default=hashSet;function Hash(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var _R=e[t];this.set(_R[0],_R[1])}}a(Hash,"Hash"),Hash.prototype.clear=hashClear_default,Hash.prototype.delete=hashDelete_default,Hash.prototype.get=hashGet_default,Hash.prototype.has=hashHas_default,Hash.prototype.set=hashSet_default;var Hash_default=Hash;function listCacheClear(){this.__data__=[],this.size=0}a(listCacheClear,"listCacheClear");var listCacheClear_default=listCacheClear;function assocIndexOf(e,t){for(var r=e.length;r--;)if(eq_default(e[r][0],t))return r;return-1}a(assocIndexOf,"assocIndexOf");var assocIndexOf_default=assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(e){var t=this.__data__,r=assocIndexOf_default(t,e);if(r<0)return!1;var _R=t.length-1;return r==_R?t.pop():splice.call(t,r,1),--this.size,!0}a(listCacheDelete,"listCacheDelete");var listCacheDelete_default=listCacheDelete;function listCacheGet(e){var t=this.__data__,r=assocIndexOf_default(t,e);return r<0?void 0:t[r][1]}a(listCacheGet,"listCacheGet");var listCacheGet_default=listCacheGet;function listCacheHas(e){return assocIndexOf_default(this.__data__,e)>-1}a(listCacheHas,"listCacheHas");var listCacheHas_default=listCacheHas;function listCacheSet(e,t){var r=this.__data__,_R=assocIndexOf_default(r,e);return _R<0?(++this.size,r.push([e,t])):r[_R][1]=t,this}a(listCacheSet,"listCacheSet");var listCacheSet_default=listCacheSet;function ListCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var _R=e[t];this.set(_R[0],_R[1])}}a(ListCache,"ListCache"),ListCache.prototype.clear=listCacheClear_default,ListCache.prototype.delete=listCacheDelete_default,ListCache.prototype.get=listCacheGet_default,ListCache.prototype.has=listCacheHas_default,ListCache.prototype.set=listCacheSet_default;var ListCache_default=ListCache,Map2=getNative_default(root_default,"Map"),Map_default=Map2;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash_default,map:new(Map_default||ListCache_default),string:new Hash_default}}a(mapCacheClear,"mapCacheClear");var mapCacheClear_default=mapCacheClear;function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}a(isKeyable,"isKeyable");var isKeyable_default=isKeyable;function getMapData(e,t){var r=e.__data__;return isKeyable_default(t)?r[typeof t=="string"?"string":"hash"]:r.map}a(getMapData,"getMapData");var getMapData_default=getMapData;function mapCacheDelete(e){var t=getMapData_default(this,e).delete(e);return this.size-=t?1:0,t}a(mapCacheDelete,"mapCacheDelete");var mapCacheDelete_default=mapCacheDelete;function mapCacheGet(e){return getMapData_default(this,e).get(e)}a(mapCacheGet,"mapCacheGet");var mapCacheGet_default=mapCacheGet;function mapCacheHas(e){return getMapData_default(this,e).has(e)}a(mapCacheHas,"mapCacheHas");var mapCacheHas_default=mapCacheHas;function mapCacheSet(e,t){var r=getMapData_default(this,e),_R=r.size;return r.set(e,t),this.size+=r.size==_R?0:1,this}a(mapCacheSet,"mapCacheSet");var mapCacheSet_default=mapCacheSet;function MapCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var _R=e[t];this.set(_R[0],_R[1])}}a(MapCache,"MapCache"),MapCache.prototype.clear=mapCacheClear_default,MapCache.prototype.delete=mapCacheDelete_default,MapCache.prototype.get=mapCacheGet_default,MapCache.prototype.has=mapCacheHas_default,MapCache.prototype.set=mapCacheSet_default;var MapCache_default=MapCache,FUNC_ERROR_TEXT="Expected a function";function memoize(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(FUNC_ERROR_TEXT);var r=a(function(){var _R=arguments,o=t?t.apply(this,_R):_R[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,_R);return r.cache=i.set(o,s)||i,s},"memoized");return r.cache=new(memoize.Cache||MapCache_default),r}a(memoize,"memoize"),memoize.Cache=MapCache_default;var memoize_default=memoize,MAX_MEMOIZE_SIZE=500;function memoizeCapped(e){var t=memoize_default(e,function(_R){return r.size===MAX_MEMOIZE_SIZE&&r.clear(),_R}),r=t.cache;return t}a(memoizeCapped,"memoizeCapped");var memoizeCapped_default=memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped_default(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rePropName,function(r,_R,o,i){t.push(o?i.replace(reEscapeChar,"$1"):_R||r)}),t}),stringToPath_default=stringToPath;function toString(e){return e==null?"":baseToString_default(e)}a(toString,"toString");var toString_default=toString;function castPath(e,t){return isArray_default(e)?e:isKey_default(e,t)?[e]:stringToPath_default(toString_default(e))}a(castPath,"castPath");var castPath_default=castPath,INFINITY2=1/0;function toKey(e){if(typeof e=="string"||isSymbol_default(e))return e;var t=e+"";return t=="0"&&1/e==-INFINITY2?"-0":t}a(toKey,"toKey");var toKey_default=toKey;function baseGet(e,t){t=castPath_default(t,e);for(var r=0,_R=t.length;e!=null&&r<_R;)e=e[toKey_default(t[r++])];return r&&r==_R?e:void 0}a(baseGet,"baseGet");var baseGet_default=baseGet;function get(e,t,r){var _R=e==null?void 0:baseGet_default(e,t);return _R===void 0?r:_R}a(get,"get");var get_default=get,import_memoizerific=__toESM(he()),eventProperties=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],customEventSpecificProperties=["detail"];function extractEventHiddenProperties(e){let t=eventProperties.filter(r=>e[r]!==void 0).reduce((r,_R)=>({...r,[_R]:e[_R]}),{});return e instanceof CustomEvent&&customEventSpecificProperties.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}a(extractEventHiddenProperties,"extractEventHiddenProperties");var isObject3=isObject,removeCodeComments=a(e=>{let t=null,r=!1,_R=!1,o=!1,i="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let s=0;s<e.length;s+=1)!t&&!r&&!_R&&!o?e[s]==='"'||e[s]==="'"||e[s]==="`"?t=e[s]:e[s]==="/"&&e[s+1]==="*"?r=!0:e[s]==="/"&&e[s+1]==="/"?_R=!0:e[s]==="/"&&e[s+1]!=="/"&&(o=!0):(t&&(e[s]===t&&e[s-1]!=="\\"||e[s]===`
4
+ "use strict";var Dw=Object.create;var Si=Object.defineProperty;var qw=Object.getOwnPropertyDescriptor;var jw=Object.getOwnPropertyNames;var Bw=Object.getPrototypeOf,Fw=Object.prototype.hasOwnProperty;var kw=(e,t,r)=>t in e?Si(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var or=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Lw=(e,t)=>{for(var r in t)Si(e,r,{get:t[r],enumerable:!0})},qp=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of jw(t))!Fw.call(e,o)&&o!==r&&Si(e,o,{get:()=>t[o],enumerable:!(_R=qw(t,o))||_R.enumerable});return e};var Gn=(e,t,r)=>(r=e!=null?Dw(Bw(e)):{},qp(t||!e||!e.__esModule?Si(r,"default",{value:e,enumerable:!0}):r,e)),$w=e=>qp(Si({},"__esModule",{value:!0}),e);var gt=(e,t,r)=>kw(e,typeof t!="symbol"?t+"":t,r);var Tl=or((nH,ff)=>{"use strict";var Al=Object.defineProperty,RS=Object.getOwnPropertyDescriptor,xS=Object.getOwnPropertyNames,OS=Object.prototype.hasOwnProperty,PS=(e,t)=>{for(var r in t)Al(e,r,{get:t[r],enumerable:!0})},NS=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of xS(t))!OS.call(e,o)&&o!==r&&Al(e,o,{get:()=>t[o],enumerable:!(_R=RS(t,o))||_R.enumerable});return e},MS=e=>NS(Al({},"__esModule",{value:!0}),e),pf={};PS(pf,{global:()=>IS});ff.exports=MS(pf);var IS=(()=>{let e;return typeof window!="undefined"?e=window:typeof globalThis!="undefined"?e=globalThis:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e={},e})()});var Nt=or((oH,gf)=>{"use strict";var DS=Object.create,Oi=Object.defineProperty,qS=Object.getOwnPropertyDescriptor,jS=Object.getOwnPropertyNames,BS=Object.getPrototypeOf,FS=Object.prototype.hasOwnProperty,er=(e,t)=>Oi(e,"name",{value:t,configurable:!0}),kS=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),LS=(e,t)=>{for(var r in t)Oi(e,r,{get:t[r],enumerable:!0})},hf=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of jS(t))!FS.call(e,o)&&o!==r&&Oi(e,o,{get:()=>t[o],enumerable:!(_R=qS(t,o))||_R.enumerable});return e},$S=(e,t,r)=>(r=e!=null?DS(BS(e)):{},hf(t||!e||!e.__esModule?Oi(r,"default",{value:e,enumerable:!0}):r,e)),US=e=>hf(Oi({},"__esModule",{value:!0}),e),HS=kS((e,t)=>{"use strict";var r=Object.defineProperty,_R=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s=er((p,h)=>{for(var m in h)r(p,m,{get:h[m],enumerable:!0})},"__export"),l=er((p,h,m,g)=>{if(h&&typeof h=="object"||typeof h=="function")for(let y of o(h))!i.call(p,y)&&y!==m&&r(p,y,{get:er(()=>h[y],"get"),enumerable:!(g=_R(h,y))||g.enumerable});return p},"__copyProps"),u=er(p=>l(r({},"__esModule",{value:!0}),p),"__toCommonJS"),d={};s(d,{global:er(()=>c,"global")}),t.exports=u(d);var c=(()=>{let p;return typeof window<"u"?p=window:typeof globalThis<"u"?p=globalThis:typeof global<"u"?p=global:typeof self<"u"?p=self:p={},p})()}),mf={};LS(mf,{deprecate:()=>WS,logger:()=>ja,once:()=>Yt,pretty:()=>pr});gf.exports=US(mf);var zS=$S(HS(),1),{LOGLEVEL:VS}=zS.global,Qr={trace:1,debug:2,info:3,warn:4,error:5,silent:10},GS=VS,Qn=Qr[GS]||Qr.info,ja={trace:er((e,...t)=>{Qn<=Qr.trace&&console.trace(e,...t)},"trace"),debug:er((e,...t)=>{Qn<=Qr.debug&&console.debug(e,...t)},"debug"),info:er((e,...t)=>{Qn<=Qr.info&&console.info(e,...t)},"info"),warn:er((e,...t)=>{Qn<=Qr.warn&&console.warn(e,...t)},"warn"),error:er((e,...t)=>{Qn<=Qr.error&&console.error(e,...t)},"error"),log:er((e,...t)=>{Qn<Qr.silent&&console.log(e,...t)},"log")},Rl=new Set,Yt=er(e=>(t,...r)=>{if(!Rl.has(t))return Rl.add(t),ja[e](t,...r)},"once");Yt.clear=()=>Rl.clear();Yt.trace=Yt("trace");Yt.debug=Yt("debug");Yt.info=Yt("info");Yt.warn=Yt("warn");Yt.error=Yt("error");Yt.log=Yt("log");var WS=Yt("warn"),pr=er(e=>(...t)=>{let r=[];if(t.length){let _R=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,o=/<\/span>/gi,i;for(r.push(t[0].replace(_R,"%c").replace(o,"%c"));i=_R.exec(t[0]);)r.push(i[2]),r.push("");for(let s=1;s<t.length;s++)r.push(t[s])}ja[e].apply(ja,r)},"pretty");pr.trace=pr("trace");pr.debug=pr("debug");pr.info=pr("info");pr.warn=pr("warn");pr.error=pr("error")});var xl=or((iH,yf)=>{"use strict";yf.exports=Nt()});var wr=or((aH,vf)=>{"use strict";var Ol=Object.defineProperty,YS=Object.getOwnPropertyDescriptor,KS=Object.getOwnPropertyNames,JS=Object.prototype.hasOwnProperty,XS=(e,t)=>{for(var r in t)Ol(e,r,{get:t[r],enumerable:!0})},QS=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of KS(t))!JS.call(e,o)&&o!==r&&Ol(e,o,{get:()=>t[o],enumerable:!(_R=YS(t,o))||_R.enumerable});return e},ZS=e=>QS(Ol({},"__esModule",{value:!0}),e),bf={};XS(bf,{ARGTYPES_INFO_REQUEST:()=>eC,ARGTYPES_INFO_RESPONSE:()=>tC,CHANNEL_CREATED:()=>r2,CHANNEL_WS_DISCONNECT:()=>t2,CONFIG_ERROR:()=>n2,CREATE_NEW_STORYFILE_REQUEST:()=>o2,CREATE_NEW_STORYFILE_RESPONSE:()=>i2,CURRENT_STORY_WAS_SET:()=>a2,DOCS_PREPARED:()=>s2,DOCS_RENDERED:()=>l2,FILE_COMPONENT_SEARCH_REQUEST:()=>u2,FILE_COMPONENT_SEARCH_RESPONSE:()=>c2,FORCE_REMOUNT:()=>p2,FORCE_RE_RENDER:()=>d2,GLOBALS_UPDATED:()=>f2,NAVIGATE_URL:()=>h2,PLAY_FUNCTION_THREW_EXCEPTION:()=>m2,PRELOAD_ENTRIES:()=>y2,PREVIEW_BUILDER_PROGRESS:()=>b2,PREVIEW_KEYDOWN:()=>v2,REGISTER_SUBSCRIPTION:()=>E2,REQUEST_WHATS_NEW_DATA:()=>W2,RESET_STORY_ARGS:()=>_2,RESULT_WHATS_NEW_DATA:()=>Y2,SAVE_STORY_REQUEST:()=>Q2,SAVE_STORY_RESPONSE:()=>Z2,SELECT_STORY:()=>w2,SET_CONFIG:()=>S2,SET_CURRENT_STORY:()=>C2,SET_FILTER:()=>A2,SET_GLOBALS:()=>T2,SET_INDEX:()=>R2,SET_STORIES:()=>x2,SET_WHATS_NEW_CACHE:()=>K2,SHARED_STATE_CHANGED:()=>O2,SHARED_STATE_SET:()=>P2,STORIES_COLLAPSE_ALL:()=>N2,STORIES_EXPAND_ALL:()=>M2,STORY_ARGS_UPDATED:()=>I2,STORY_CHANGED:()=>D2,STORY_ERRORED:()=>q2,STORY_INDEX_INVALIDATED:()=>j2,STORY_MISSING:()=>B2,STORY_PREPARED:()=>F2,STORY_RENDERED:()=>L2,STORY_RENDER_PHASE_CHANGED:()=>k2,STORY_SPECIFIED:()=>$2,STORY_THREW_EXCEPTION:()=>U2,STORY_UNCHANGED:()=>H2,TELEMETRY_ERROR:()=>X2,TESTING_MODULE_CANCEL_TEST_RUN_REQUEST:()=>aC,TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE:()=>sC,TESTING_MODULE_CRASH_REPORT:()=>rC,TESTING_MODULE_PROGRESS_REPORT:()=>nC,TESTING_MODULE_RUN_ALL_REQUEST:()=>iC,TESTING_MODULE_RUN_REQUEST:()=>oC,TESTING_MODULE_WATCH_MODE_REQUEST:()=>lC,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>J2,UNHANDLED_ERRORS_WHILE_PLAYING:()=>g2,UPDATE_GLOBALS:()=>z2,UPDATE_QUERY_PARAMS:()=>V2,UPDATE_STORY_ARGS:()=>G2,default:()=>e2});vf.exports=ZS(bf);var Pl=(e=>(e.CHANNEL_WS_DISCONNECT="channelWSDisconnect",e.CHANNEL_CREATED="channelCreated",e.CONFIG_ERROR="configError",e.STORY_INDEX_INVALIDATED="storyIndexInvalidated",e.STORY_SPECIFIED="storySpecified",e.SET_CONFIG="setConfig",e.SET_STORIES="setStories",e.SET_INDEX="setIndex",e.SET_CURRENT_STORY="setCurrentStory",e.CURRENT_STORY_WAS_SET="currentStoryWasSet",e.FORCE_RE_RENDER="forceReRender",e.FORCE_REMOUNT="forceRemount",e.PRELOAD_ENTRIES="preloadStories",e.STORY_PREPARED="storyPrepared",e.DOCS_PREPARED="docsPrepared",e.STORY_CHANGED="storyChanged",e.STORY_UNCHANGED="storyUnchanged",e.STORY_RENDERED="storyRendered",e.STORY_MISSING="storyMissing",e.STORY_ERRORED="storyErrored",e.STORY_THREW_EXCEPTION="storyThrewException",e.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",e.PLAY_FUNCTION_THREW_EXCEPTION="playFunctionThrewException",e.UNHANDLED_ERRORS_WHILE_PLAYING="unhandledErrorsWhilePlaying",e.UPDATE_STORY_ARGS="updateStoryArgs",e.STORY_ARGS_UPDATED="storyArgsUpdated",e.RESET_STORY_ARGS="resetStoryArgs",e.SET_FILTER="setFilter",e.SET_GLOBALS="setGlobals",e.UPDATE_GLOBALS="updateGlobals",e.GLOBALS_UPDATED="globalsUpdated",e.REGISTER_SUBSCRIPTION="registerSubscription",e.PREVIEW_KEYDOWN="previewKeydown",e.PREVIEW_BUILDER_PROGRESS="preview_builder_progress",e.SELECT_STORY="selectStory",e.STORIES_COLLAPSE_ALL="storiesCollapseAll",e.STORIES_EXPAND_ALL="storiesExpandAll",e.DOCS_RENDERED="docsRendered",e.SHARED_STATE_CHANGED="sharedStateChanged",e.SHARED_STATE_SET="sharedStateSet",e.NAVIGATE_URL="navigateUrl",e.UPDATE_QUERY_PARAMS="updateQueryParams",e.REQUEST_WHATS_NEW_DATA="requestWhatsNewData",e.RESULT_WHATS_NEW_DATA="resultWhatsNewData",e.SET_WHATS_NEW_CACHE="setWhatsNewCache",e.TOGGLE_WHATS_NEW_NOTIFICATIONS="toggleWhatsNewNotifications",e.TELEMETRY_ERROR="telemetryError",e.FILE_COMPONENT_SEARCH_REQUEST="fileComponentSearchRequest",e.FILE_COMPONENT_SEARCH_RESPONSE="fileComponentSearchResponse",e.SAVE_STORY_REQUEST="saveStoryRequest",e.SAVE_STORY_RESPONSE="saveStoryResponse",e.ARGTYPES_INFO_REQUEST="argtypesInfoRequest",e.ARGTYPES_INFO_RESPONSE="argtypesInfoResponse",e.CREATE_NEW_STORYFILE_REQUEST="createNewStoryfileRequest",e.CREATE_NEW_STORYFILE_RESPONSE="createNewStoryfileResponse",e.TESTING_MODULE_CRASH_REPORT="testingModuleCrashReport",e.TESTING_MODULE_PROGRESS_REPORT="testingModuleProgressReport",e.TESTING_MODULE_RUN_REQUEST="testingModuleRunRequest",e.TESTING_MODULE_RUN_ALL_REQUEST="testingModuleRunAllRequest",e.TESTING_MODULE_CANCEL_TEST_RUN_REQUEST="testingModuleCancelTestRunRequest",e.TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE="testingModuleCancelTestRunResponse",e.TESTING_MODULE_WATCH_MODE_REQUEST="testingModuleWatchModeRequest",e))(Pl||{}),e2=Pl,{CHANNEL_WS_DISCONNECT:t2,CHANNEL_CREATED:r2,CONFIG_ERROR:n2,CREATE_NEW_STORYFILE_REQUEST:o2,CREATE_NEW_STORYFILE_RESPONSE:i2,CURRENT_STORY_WAS_SET:a2,DOCS_PREPARED:s2,DOCS_RENDERED:l2,FILE_COMPONENT_SEARCH_REQUEST:u2,FILE_COMPONENT_SEARCH_RESPONSE:c2,FORCE_RE_RENDER:d2,FORCE_REMOUNT:p2,GLOBALS_UPDATED:f2,NAVIGATE_URL:h2,PLAY_FUNCTION_THREW_EXCEPTION:m2,UNHANDLED_ERRORS_WHILE_PLAYING:g2,PRELOAD_ENTRIES:y2,PREVIEW_BUILDER_PROGRESS:b2,PREVIEW_KEYDOWN:v2,REGISTER_SUBSCRIPTION:E2,RESET_STORY_ARGS:_2,SELECT_STORY:w2,SET_CONFIG:S2,SET_CURRENT_STORY:C2,SET_FILTER:A2,SET_GLOBALS:T2,SET_INDEX:R2,SET_STORIES:x2,SHARED_STATE_CHANGED:O2,SHARED_STATE_SET:P2,STORIES_COLLAPSE_ALL:N2,STORIES_EXPAND_ALL:M2,STORY_ARGS_UPDATED:I2,STORY_CHANGED:D2,STORY_ERRORED:q2,STORY_INDEX_INVALIDATED:j2,STORY_MISSING:B2,STORY_PREPARED:F2,STORY_RENDER_PHASE_CHANGED:k2,STORY_RENDERED:L2,STORY_SPECIFIED:$2,STORY_THREW_EXCEPTION:U2,STORY_UNCHANGED:H2,UPDATE_GLOBALS:z2,UPDATE_QUERY_PARAMS:V2,UPDATE_STORY_ARGS:G2,REQUEST_WHATS_NEW_DATA:W2,RESULT_WHATS_NEW_DATA:Y2,SET_WHATS_NEW_CACHE:K2,TOGGLE_WHATS_NEW_NOTIFICATIONS:J2,TELEMETRY_ERROR:X2,SAVE_STORY_REQUEST:Q2,SAVE_STORY_RESPONSE:Z2,ARGTYPES_INFO_REQUEST:eC,ARGTYPES_INFO_RESPONSE:tC,TESTING_MODULE_CRASH_REPORT:rC,TESTING_MODULE_PROGRESS_REPORT:nC,TESTING_MODULE_RUN_REQUEST:oC,TESTING_MODULE_RUN_ALL_REQUEST:iC,TESTING_MODULE_CANCEL_TEST_RUN_REQUEST:aC,TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE:sC,TESTING_MODULE_WATCH_MODE_REQUEST:lC}=Pl});var _f=or((sH,Ef)=>{"use strict";Ef.exports=wr()});var wf=or((exports,module)=>{"use strict";var Ce=Object.create,q=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,xe=Object.getOwnPropertyNames,Ie=Object.getPrototypeOf,je=Object.prototype.hasOwnProperty,a=(e,t)=>q(e,"name",{value:t,configurable:!0}),z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Te=(e,t)=>{for(var r in t)q(e,r,{get:t[r],enumerable:!0})},ie=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of xe(t))!je.call(e,o)&&o!==r&&q(e,o,{get:()=>t[o],enumerable:!(_R=Ae(t,o))||_R.enumerable});return e},j=(e,t,r)=>(r=e!=null?Ce(Ie(e)):{},ie(t||!e||!e.__esModule?q(r,"default",{value:e,enumerable:!0}):r,e)),Me=e=>ie(q({},"__esModule",{value:!0}),e),Z=z((e,t)=>{"use strict";var r=Object.defineProperty,_R=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s=a((p,h)=>{for(var m in h)r(p,m,{get:h[m],enumerable:!0})},"__export"),l=a((p,h,m,g)=>{if(h&&typeof h=="object"||typeof h=="function")for(let y of o(h))!i.call(p,y)&&y!==m&&r(p,y,{get:a(()=>h[y],"get"),enumerable:!(g=_R(h,y))||g.enumerable});return p},"__copyProps"),u=a(p=>l(r({},"__esModule",{value:!0}),p),"__toCommonJS"),d={};s(d,{global:a(()=>c,"global")}),t.exports=u(d);var c=(()=>{let p;return typeof window<"u"?p=window:typeof globalThis<"u"?p=globalThis:typeof global<"u"?p=global:typeof self<"u"?p=self:p={},p})()}),ue=z((e,t)=>{function r(){return this.list=[],this.lastItem=void 0,this.size=0,this}a(r,"Similar"),r.prototype.get=function(_R){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,_R))return this.lastItem.val;if(o=this.indexOf(_R),o>=0)return this.lastItem=this.list[o],this.list[o].val},r.prototype.set=function(_R,o){var i;return this.lastItem&&this.isEqual(this.lastItem.key,_R)?(this.lastItem.val=o,this):(i=this.indexOf(_R),i>=0?(this.lastItem=this.list[i],this.list[i].val=o,this):(this.lastItem={key:_R,val:o},this.list.push(this.lastItem),this.size++,this))},r.prototype.delete=function(_R){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,_R)&&(this.lastItem=void 0),o=this.indexOf(_R),o>=0)return this.size--,this.list.splice(o,1)[0]},r.prototype.has=function(_R){var o;return this.lastItem&&this.isEqual(this.lastItem.key,_R)?!0:(o=this.indexOf(_R),o>=0?(this.lastItem=this.list[o],!0):!1)},r.prototype.forEach=function(_R,o){var i;for(i=0;i<this.size;i++)_R.call(o||this,this.list[i].val,this.list[i].key,this)},r.prototype.indexOf=function(_R){var o;for(o=0;o<this.size;o++)if(this.isEqual(this.list[o].key,_R))return o;return-1},r.prototype.isEqual=function(_R,o){return _R===o||_R!==_R&&o!==o},t.exports=r}),pe=z((e,t)=>{t.exports=function(r){if(typeof Map!="function"||r){var _R=ue();return new _R}else return new Map}}),he=z((e,t)=>{var r=pe();t.exports=function(s){var l=new r(process.env.FORCE_SIMILAR_INSTEAD_OF_MAP==="true"),u=[];return function(d){var c=a(function(){var p=l,h,m,g=arguments.length-1,y=Array(g+1),b=!0,E;if((c.numArgs||c.numArgs===0)&&c.numArgs!==g+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(E=0;E<g;E++){if(y[E]={cacheItem:p,arg:arguments[E]},p.has(arguments[E])){p=p.get(arguments[E]);continue}b=!1,h=new r(process.env.FORCE_SIMILAR_INSTEAD_OF_MAP==="true"),p.set(arguments[E],h),p=h}return b&&(p.has(arguments[g])?m=p.get(arguments[g]):b=!1),b||(m=d.apply(null,arguments),p.set(arguments[g],m)),s>0&&(y[g]={cacheItem:p,arg:arguments[g]},b?_R(u,y):u.push(y),u.length>s&&o(u.shift())),c.wasMemoized=b,c.numArgs=g+1,m},"memoizerific");return c.limit=s,c.wasMemoized=!1,c.cache=l,c.lru=u,c}};function _R(s,l){var u=s.length,d=l.length,c,p,h;for(p=0;p<u;p++){for(c=!0,h=0;h<d;h++)if(!i(s[p][h].arg,l[h].arg)){c=!1;break}if(c)break}s.push(s.splice(p,1)[0])}a(_R,"moveToMostRecentLru");function o(s){var l=s.length,u=s[l-1],d,c;for(u.cacheItem.delete(u.arg),c=l-2;c>=0&&(u=s[c],d=u.cacheItem.get(u.arg),!d||!d.size);c--)u.cacheItem.delete(u.arg)}a(o,"removeCachedResult");function i(s,l){return s===l||s!==s&&l!==l}a(i,"isEqual")}),ee=z((exports,module)=>{"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__commonJS=a((e,t)=>a(function(){return t||(0,e[__getOwnPropNames(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),__export=a((e,t)=>{for(var r in t)__defProp(e,r,{get:t[r],enumerable:!0})},"__export"),__copyProps=a((e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of __getOwnPropNames(t))!__hasOwnProp.call(e,o)&&o!==r&&__defProp(e,o,{get:a(()=>t[o],"get"),enumerable:!(_R=__getOwnPropDesc(t,o))||_R.enumerable});return e},"__copyProps"),__toESM=a((e,t,r)=>(r=e!=null?__create(__getProtoOf(e)):{},__copyProps(t||!e||!e.__esModule?__defProp(r,"default",{value:e,enumerable:!0}):r,e)),"__toESM"),__toCommonJS=a(e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),"__toCommonJS"),require_shams=__commonJS({"node_modules/has-symbols/shams.js"(e,t){"use strict";t.exports=a(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},_R=Symbol("test"),o=Object(_R);if(typeof _R=="string"||Object.prototype.toString.call(_R)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;r[_R]=i;for(_R in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var s=Object.getOwnPropertySymbols(r);if(s.length!==1||s[0]!==_R||!Object.prototype.propertyIsEnumerable.call(r,_R))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,_R);if(l.value!==i||l.enumerable!==!0)return!1}return!0},"hasSymbols")}}),require_has_symbols=__commonJS({"node_modules/has-symbols/index.js"(e,t){"use strict";var r=typeof Symbol<"u"&&Symbol,_R=require_shams();t.exports=a(function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:_R()},"hasNativeSymbols")}}),require_implementation=__commonJS({"node_modules/function-bind/implementation.js"(e,t){"use strict";var r="Function.prototype.bind called on incompatible ",_R=Array.prototype.slice,o=Object.prototype.toString,i="[object Function]";t.exports=a(function(s){var l=this;if(typeof l!="function"||o.call(l)!==i)throw new TypeError(r+l);for(var u=_R.call(arguments,1),d,c=a(function(){if(this instanceof d){var y=l.apply(this,u.concat(_R.call(arguments)));return Object(y)===y?y:this}else return l.apply(s,u.concat(_R.call(arguments)))},"binder"),p=Math.max(0,l.length-u.length),h=[],m=0;m<p;m++)h.push("$"+m);if(d=Function("binder","return function ("+h.join(",")+"){ return binder.apply(this,arguments); }")(c),l.prototype){var g=a(function(){},"Empty2");g.prototype=l.prototype,d.prototype=new g,g.prototype=null}return d},"bind")}}),require_function_bind=__commonJS({"node_modules/function-bind/index.js"(e,t){"use strict";var r=require_implementation();t.exports=Function.prototype.bind||r}}),require_src=__commonJS({"node_modules/has/src/index.js"(e,t){"use strict";var r=require_function_bind();t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)}}),require_get_intrinsic=__commonJS({"node_modules/get-intrinsic/index.js"(e,t){"use strict";var r,_R=SyntaxError,o=Function,i=TypeError,s=a(function(V){try{return o('"use strict"; return ('+V+").constructor;")()}catch{}},"getEvalledConstructor"),l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch{l=null}var u=a(function(){throw new i},"throwTypeError"),d=l?function(){try{return arguments.callee,u}catch{try{return l(arguments,"callee").get}catch{return u}}}():u,c=require_has_symbols()(),p=Object.getPrototypeOf||function(V){return V.__proto__},h={},m=typeof Uint8Array>"u"?r:p(Uint8Array),g={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":c?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c?p(p([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!c?r:p(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!c?r:p(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c?p(""[Symbol.iterator]()):r,"%Symbol%":c?Symbol:r,"%SyntaxError%":_R,"%ThrowTypeError%":d,"%TypedArray%":m,"%TypeError%":i,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},y=a(function V(J){var x;if(J==="%AsyncFunction%")x=s("async function () {}");else if(J==="%GeneratorFunction%")x=s("function* () {}");else if(J==="%AsyncGeneratorFunction%")x=s("async function* () {}");else if(J==="%AsyncGenerator%"){var B=V("%AsyncGeneratorFunction%");B&&(x=B.prototype)}else if(J==="%AsyncIteratorPrototype%"){var K=V("%AsyncGenerator%");K&&(x=p(K.prototype))}return g[J]=x,x},"doEval2"),b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=require_function_bind(),_=require_src(),O=E.call(Function.call,Array.prototype.concat),C=E.call(Function.apply,Array.prototype.splice),w=E.call(Function.call,String.prototype.replace),S=E.call(Function.call,String.prototype.slice),T=E.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,U=a(function(V){var J=S(V,0,1),x=S(V,-1);if(J==="%"&&x!=="%")throw new _R("invalid intrinsic syntax, expected closing `%`");if(x==="%"&&J!=="%")throw new _R("invalid intrinsic syntax, expected opening `%`");var B=[];return w(V,A,function(K,fe,ce,Se){B[B.length]=ce?w(Se,N,"$1"):fe||K}),B},"stringToPath3"),X=a(function(V,J){var x=V,B;if(_(b,x)&&(B=b[x],x="%"+B[0]+"%"),_(g,x)){var K=g[x];if(K===h&&(K=y(x)),typeof K>"u"&&!J)throw new i("intrinsic "+V+" exists, but is not available. Please file an issue!");return{alias:B,name:x,value:K}}throw new _R("intrinsic "+V+" does not exist!")},"getBaseIntrinsic2");t.exports=a(function(V,J){if(typeof V!="string"||V.length===0)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof J!="boolean")throw new i('"allowMissing" argument must be a boolean');if(T(/^%?[^%]*%?$/,V)===null)throw new _R("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var x=U(V),B=x.length>0?x[0]:"",K=X("%"+B+"%",J),fe=K.name,ce=K.value,Se=!1,De=K.alias;De&&(B=De[0],C(x,O([0,1],De)));for(var Oe=1,le=!0;Oe<x.length;Oe+=1){var se=x[Oe],de=S(se,0,1),we=S(se,-1);if((de==='"'||de==="'"||de==="`"||we==='"'||we==="'"||we==="`")&&de!==we)throw new _R("property names with quotes must have matching quotes");if((se==="constructor"||!le)&&(Se=!0),B+="."+se,fe="%"+B+"%",_(g,fe))ce=g[fe];else if(ce!=null){if(!(se in ce)){if(!J)throw new i("base intrinsic for "+V+" exists, but the property is not available.");return}if(l&&Oe+1>=x.length){var Pe=l(ce,se);le=!!Pe,le&&"get"in Pe&&!("originalValue"in Pe.get)?ce=Pe.get:ce=ce[se]}else le=_(ce,se),ce=ce[se];le&&!Se&&(g[fe]=ce)}}return ce},"GetIntrinsic")}}),require_call_bind=__commonJS({"node_modules/call-bind/index.js"(e,t){"use strict";var r=require_function_bind(),_R=require_get_intrinsic(),o=_R("%Function.prototype.apply%"),i=_R("%Function.prototype.call%"),s=_R("%Reflect.apply%",!0)||r.call(i,o),l=_R("%Object.getOwnPropertyDescriptor%",!0),u=_R("%Object.defineProperty%",!0),d=_R("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}t.exports=a(function(p){var h=s(r,i,arguments);if(l&&u){var m=l(h,"length");m.configurable&&u(h,"length",{value:1+d(0,p.length-(arguments.length-1))})}return h},"callBind");var c=a(function(){return s(r,o,arguments)},"applyBind2");u?u(t.exports,"apply",{value:c}):t.exports.apply=c}}),require_callBound=__commonJS({"node_modules/call-bind/callBound.js"(e,t){"use strict";var r=require_get_intrinsic(),_R=require_call_bind(),o=_R(r("String.prototype.indexOf"));t.exports=a(function(i,s){var l=r(i,!!s);return typeof l=="function"&&o(i,".prototype.")>-1?_R(l):l},"callBoundIntrinsic")}}),require_shams2=__commonJS({"node_modules/has-tostringtag/shams.js"(e,t){"use strict";var r=require_shams();t.exports=a(function(){return r()&&!!Symbol.toStringTag},"hasToStringTagShams")}}),require_is_regex=__commonJS({"node_modules/is-regex/index.js"(e,t){"use strict";var r=require_callBound(),_R=require_shams2()(),o,i,s,l;_R&&(o=r("Object.prototype.hasOwnProperty"),i=r("RegExp.prototype.exec"),s={},u=a(function(){throw s},"throwRegexMarker"),l={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=u));var u,d=r("Object.prototype.toString"),c=Object.getOwnPropertyDescriptor,p="[object RegExp]";t.exports=a(_R?function(h){if(!h||typeof h!="object")return!1;var m=c(h,"lastIndex"),g=m&&o(m,"value");if(!g)return!1;try{i(h,l)}catch(y){return y===s}}:function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:d(h)===p},"isRegex")}}),require_is_function=__commonJS({"node_modules/is-function/index.js"(e,t){t.exports=_R;var r=Object.prototype.toString;function _R(o){if(!o)return!1;var i=r.call(o);return i==="[object Function]"||typeof o=="function"&&i!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}a(_R,"isFunction3")}}),require_is_symbol=__commonJS({"node_modules/is-symbol/index.js"(e,t){"use strict";var r=Object.prototype.toString,_R=require_has_symbols()();_R?(o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/,s=a(function(l){return typeof l.valueOf()!="symbol"?!1:i.test(o.call(l))},"isRealSymbolObject"),t.exports=a(function(l){if(typeof l=="symbol")return!0;if(r.call(l)!=="[object Symbol]")return!1;try{return s(l)}catch{return!1}},"isSymbol3")):t.exports=a(function(l){return!1},"isSymbol3");var o,i,s}}),src_exports={};__export(src_exports,{isJSON:a(()=>isJSON,"isJSON"),parse:a(()=>parse,"parse"),replacer:a(()=>replacer,"replacer"),reviver:a(()=>reviver2,"reviver"),stringify:a(()=>stringify,"stringify")}),module.exports=__toCommonJS(src_exports);var import_is_regex=__toESM(require_is_regex()),import_is_function=__toESM(require_is_function()),import_is_symbol=__toESM(require_is_symbol());function isObject(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}a(isObject,"isObject");var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeGlobal_default=freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root2=freeGlobal_default||freeSelf||Function("return this")(),root_default=root2,Symbol2=root_default.Symbol,Symbol_default=Symbol2,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag=Symbol_default?Symbol_default.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty.call(e,symToStringTag),r=e[symToStringTag];try{e[symToStringTag]=void 0;var _R=!0}catch{}var o=nativeObjectToString.call(e);return _R&&(t?e[symToStringTag]=r:delete e[symToStringTag]),o}a(getRawTag,"getRawTag");var getRawTag_default=getRawTag,objectProto2=Object.prototype,nativeObjectToString2=objectProto2.toString;function objectToString(e){return nativeObjectToString2.call(e)}a(objectToString,"objectToString");var objectToString_default=objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag2=Symbol_default?Symbol_default.toStringTag:void 0;function baseGetTag(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag2&&symToStringTag2 in Object(e)?getRawTag_default(e):objectToString_default(e)}a(baseGetTag,"baseGetTag");var baseGetTag_default=baseGetTag;function isObjectLike(e){return e!=null&&typeof e=="object"}a(isObjectLike,"isObjectLike");var isObjectLike_default=isObjectLike,symbolTag="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||isObjectLike_default(e)&&baseGetTag_default(e)==symbolTag}a(isSymbol,"isSymbol");var isSymbol_default=isSymbol;function arrayMap(e,t){for(var r=-1,_R=e==null?0:e.length,o=Array(_R);++r<_R;)o[r]=t(e[r],r,e);return o}a(arrayMap,"arrayMap");var arrayMap_default=arrayMap,isArray=Array.isArray,isArray_default=isArray,INFINITY=1/0,symbolProto=Symbol_default?Symbol_default.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString(e){if(typeof e=="string")return e;if(isArray_default(e))return arrayMap_default(e,baseToString)+"";if(isSymbol_default(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return t=="0"&&1/e==-INFINITY?"-0":t}a(baseToString,"baseToString");var baseToString_default=baseToString;function isObject2(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}a(isObject2,"isObject2");var isObject_default=isObject2,asyncTag="[object AsyncFunction]",funcTag="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject_default(e))return!1;var t=baseGetTag_default(e);return t==funcTag||t==genTag||t==asyncTag||t==proxyTag}a(isFunction,"isFunction");var isFunction_default=isFunction,coreJsData=root_default["__core-js_shared__"],coreJsData_default=coreJsData,maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData_default&&coreJsData_default.keys&&coreJsData_default.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}a(isMasked,"isMasked");var isMasked_default=isMasked,funcProto=Function.prototype,funcToString=funcProto.toString;function toSource(e){if(e!=null){try{return funcToString.call(e)}catch{}try{return e+""}catch{}}return""}a(toSource,"toSource");var toSource_default=toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto2=Function.prototype,objectProto3=Object.prototype,funcToString2=funcProto2.toString,hasOwnProperty2=objectProto3.hasOwnProperty,reIsNative=RegExp("^"+funcToString2.call(hasOwnProperty2).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!isObject_default(e)||isMasked_default(e))return!1;var t=isFunction_default(e)?reIsNative:reIsHostCtor;return t.test(toSource_default(e))}a(baseIsNative,"baseIsNative");var baseIsNative_default=baseIsNative;function getValue(e,t){return e==null?void 0:e[t]}a(getValue,"getValue");var getValue_default=getValue;function getNative(e,t){var r=getValue_default(e,t);return baseIsNative_default(r)?r:void 0}a(getNative,"getNative");var getNative_default=getNative;function eq(e,t){return e===t||e!==e&&t!==t}a(eq,"eq");var eq_default=eq,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(e,t){if(isArray_default(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||isSymbol_default(e)?!0:reIsPlainProp.test(e)||!reIsDeepProp.test(e)||t!=null&&e in Object(t)}a(isKey,"isKey");var isKey_default=isKey,nativeCreate=getNative_default(Object,"create"),nativeCreate_default=nativeCreate;function hashClear(){this.__data__=nativeCreate_default?nativeCreate_default(null):{},this.size=0}a(hashClear,"hashClear");var hashClear_default=hashClear;function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}a(hashDelete,"hashDelete");var hashDelete_default=hashDelete,HASH_UNDEFINED="__lodash_hash_undefined__",objectProto4=Object.prototype,hasOwnProperty3=objectProto4.hasOwnProperty;function hashGet(e){var t=this.__data__;if(nativeCreate_default){var r=t[e];return r===HASH_UNDEFINED?void 0:r}return hasOwnProperty3.call(t,e)?t[e]:void 0}a(hashGet,"hashGet");var hashGet_default=hashGet,objectProto5=Object.prototype,hasOwnProperty4=objectProto5.hasOwnProperty;function hashHas(e){var t=this.__data__;return nativeCreate_default?t[e]!==void 0:hasOwnProperty4.call(t,e)}a(hashHas,"hashHas");var hashHas_default=hashHas,HASH_UNDEFINED2="__lodash_hash_undefined__";function hashSet(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nativeCreate_default&&t===void 0?HASH_UNDEFINED2:t,this}a(hashSet,"hashSet");var hashSet_default=hashSet;function Hash(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var _R=e[t];this.set(_R[0],_R[1])}}a(Hash,"Hash"),Hash.prototype.clear=hashClear_default,Hash.prototype.delete=hashDelete_default,Hash.prototype.get=hashGet_default,Hash.prototype.has=hashHas_default,Hash.prototype.set=hashSet_default;var Hash_default=Hash;function listCacheClear(){this.__data__=[],this.size=0}a(listCacheClear,"listCacheClear");var listCacheClear_default=listCacheClear;function assocIndexOf(e,t){for(var r=e.length;r--;)if(eq_default(e[r][0],t))return r;return-1}a(assocIndexOf,"assocIndexOf");var assocIndexOf_default=assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(e){var t=this.__data__,r=assocIndexOf_default(t,e);if(r<0)return!1;var _R=t.length-1;return r==_R?t.pop():splice.call(t,r,1),--this.size,!0}a(listCacheDelete,"listCacheDelete");var listCacheDelete_default=listCacheDelete;function listCacheGet(e){var t=this.__data__,r=assocIndexOf_default(t,e);return r<0?void 0:t[r][1]}a(listCacheGet,"listCacheGet");var listCacheGet_default=listCacheGet;function listCacheHas(e){return assocIndexOf_default(this.__data__,e)>-1}a(listCacheHas,"listCacheHas");var listCacheHas_default=listCacheHas;function listCacheSet(e,t){var r=this.__data__,_R=assocIndexOf_default(r,e);return _R<0?(++this.size,r.push([e,t])):r[_R][1]=t,this}a(listCacheSet,"listCacheSet");var listCacheSet_default=listCacheSet;function ListCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var _R=e[t];this.set(_R[0],_R[1])}}a(ListCache,"ListCache"),ListCache.prototype.clear=listCacheClear_default,ListCache.prototype.delete=listCacheDelete_default,ListCache.prototype.get=listCacheGet_default,ListCache.prototype.has=listCacheHas_default,ListCache.prototype.set=listCacheSet_default;var ListCache_default=ListCache,Map2=getNative_default(root_default,"Map"),Map_default=Map2;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash_default,map:new(Map_default||ListCache_default),string:new Hash_default}}a(mapCacheClear,"mapCacheClear");var mapCacheClear_default=mapCacheClear;function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}a(isKeyable,"isKeyable");var isKeyable_default=isKeyable;function getMapData(e,t){var r=e.__data__;return isKeyable_default(t)?r[typeof t=="string"?"string":"hash"]:r.map}a(getMapData,"getMapData");var getMapData_default=getMapData;function mapCacheDelete(e){var t=getMapData_default(this,e).delete(e);return this.size-=t?1:0,t}a(mapCacheDelete,"mapCacheDelete");var mapCacheDelete_default=mapCacheDelete;function mapCacheGet(e){return getMapData_default(this,e).get(e)}a(mapCacheGet,"mapCacheGet");var mapCacheGet_default=mapCacheGet;function mapCacheHas(e){return getMapData_default(this,e).has(e)}a(mapCacheHas,"mapCacheHas");var mapCacheHas_default=mapCacheHas;function mapCacheSet(e,t){var r=getMapData_default(this,e),_R=r.size;return r.set(e,t),this.size+=r.size==_R?0:1,this}a(mapCacheSet,"mapCacheSet");var mapCacheSet_default=mapCacheSet;function MapCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var _R=e[t];this.set(_R[0],_R[1])}}a(MapCache,"MapCache"),MapCache.prototype.clear=mapCacheClear_default,MapCache.prototype.delete=mapCacheDelete_default,MapCache.prototype.get=mapCacheGet_default,MapCache.prototype.has=mapCacheHas_default,MapCache.prototype.set=mapCacheSet_default;var MapCache_default=MapCache,FUNC_ERROR_TEXT="Expected a function";function memoize(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(FUNC_ERROR_TEXT);var r=a(function(){var _R=arguments,o=t?t.apply(this,_R):_R[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,_R);return r.cache=i.set(o,s)||i,s},"memoized");return r.cache=new(memoize.Cache||MapCache_default),r}a(memoize,"memoize"),memoize.Cache=MapCache_default;var memoize_default=memoize,MAX_MEMOIZE_SIZE=500;function memoizeCapped(e){var t=memoize_default(e,function(_R){return r.size===MAX_MEMOIZE_SIZE&&r.clear(),_R}),r=t.cache;return t}a(memoizeCapped,"memoizeCapped");var memoizeCapped_default=memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped_default(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rePropName,function(r,_R,o,i){t.push(o?i.replace(reEscapeChar,"$1"):_R||r)}),t}),stringToPath_default=stringToPath;function toString(e){return e==null?"":baseToString_default(e)}a(toString,"toString");var toString_default=toString;function castPath(e,t){return isArray_default(e)?e:isKey_default(e,t)?[e]:stringToPath_default(toString_default(e))}a(castPath,"castPath");var castPath_default=castPath,INFINITY2=1/0;function toKey(e){if(typeof e=="string"||isSymbol_default(e))return e;var t=e+"";return t=="0"&&1/e==-INFINITY2?"-0":t}a(toKey,"toKey");var toKey_default=toKey;function baseGet(e,t){t=castPath_default(t,e);for(var r=0,_R=t.length;e!=null&&r<_R;)e=e[toKey_default(t[r++])];return r&&r==_R?e:void 0}a(baseGet,"baseGet");var baseGet_default=baseGet;function get(e,t,r){var _R=e==null?void 0:baseGet_default(e,t);return _R===void 0?r:_R}a(get,"get");var get_default=get,import_memoizerific=__toESM(he()),eventProperties=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],customEventSpecificProperties=["detail"];function extractEventHiddenProperties(e){let t=eventProperties.filter(r=>e[r]!==void 0).reduce((r,_R)=>({...r,[_R]:e[_R]}),{});return e instanceof CustomEvent&&customEventSpecificProperties.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}a(extractEventHiddenProperties,"extractEventHiddenProperties");var isObject3=isObject,removeCodeComments=a(e=>{let t=null,r=!1,_R=!1,o=!1,i="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let s=0;s<e.length;s+=1)!t&&!r&&!_R&&!o?e[s]==='"'||e[s]==="'"||e[s]==="`"?t=e[s]:e[s]==="/"&&e[s+1]==="*"?r=!0:e[s]==="/"&&e[s+1]==="/"?_R=!0:e[s]==="/"&&e[s+1]!=="/"&&(o=!0):(t&&(e[s]===t&&e[s-1]!=="\\"||e[s]===`
5
5
  `&&t!=="`")&&(t=null),o&&(e[s]==="/"&&e[s-1]!=="\\"||e[s]===`
6
6
  `)&&(o=!1),r&&e[s-1]==="/"&&e[s-2]==="*"&&(r=!1),_R&&e[s]===`
7
- `&&(_R=!1)),!r&&!_R&&(i+=e[s]);else i=e;return i},"removeCodeComments"),cleanCode=(0,import_memoizerific.default)(1e4)(e=>removeCodeComments(e).replace(/\_R\s*/g,"").trim()),convertShorthandMethods=a(function(e,t){let r=t.slice(0,t.indexOf("{")),_R=t.slice(t.indexOf("{"));if(r.includes("=>")||r.includes("function"))return t;let o=r;return o=o.replace(e,"function"),o+_R},"convertShorthandMethods2"),dateFormat=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,isJSON=a(e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/),"isJSON");function convertUnconventionalData(e){if(!isObject3(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=extractEventHiddenProperties(t),r=!0),t=Object.keys(t).reduce((_R,o)=>{try{t[o]&&t[o].toJSON,_R[o]=t[o]}catch{r=!0}return _R},{}),r?t:e}a(convertUnconventionalData,"convertUnconventionalData");var replacer=a(function(e){let t,r,_R,o;return a(function(i,s){try{if(i==="")return o=[],t=new Map([[s,"[]"]]),r=new Map,_R=[],s;let l=r.get(this)||this;for(;_R.length&&l!==_R[0];)_R.shift(),o.pop();if(typeof s=="boolean")return s;if(s===void 0)return e.allowUndefined?"_undefined_":void 0;if(s===null)return null;if(typeof s=="number")return s===-1/0?"_-Infinity_":s===1/0?"_Infinity_":Number.isNaN(s)?"_NaN_":s;if(typeof s=="bigint")return`_bigint_${s.toString()}`;if(typeof s=="string")return dateFormat.test(s)?e.allowDate?`_date_${s}`:void 0:s;if((0,import_is_regex.default)(s))return e.allowRegExp?`_regexp_${s.flags}|${s.source}`:void 0;if((0,import_is_function.default)(s)){if(!e.allowFunction)return;let{name:d}=s,c=s.toString();return c.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${d}|${(()=>{}).toString()}`:`_function_${d}|${cleanCode(convertShorthandMethods(i,c))}`}if((0,import_is_symbol.default)(s)){if(!e.allowSymbol)return;let d=Symbol.keyFor(s);return d!==void 0?`_gsymbol_${d}`:`_symbol_${s.toString().slice(7,-1)}`}if(_R.length>=e.maxDepth)return Array.isArray(s)?`[Array(${s.length})]`:"[Object]";if(s===this)return`_duplicate_${JSON.stringify(o)}`;if(s instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...s.cause?{cause:s.cause}:{},...s,name:s.name,message:s.message,stack:s.stack,"_constructor-name_":s.constructor.name}};if(s.constructor&&s.constructor.name&&s.constructor.name!=="Object"&&!Array.isArray(s)&&!e.allowClass)return;let u=t.get(s);if(!u){let d=Array.isArray(s)?s:convertUnconventionalData(s);if(s.constructor&&s.constructor.name&&s.constructor.name!=="Object"&&!Array.isArray(s)&&e.allowClass)try{Object.assign(d,{"_constructor-name_":s.constructor.name})}catch{}return o.push(i),_R.unshift(d),t.set(s,JSON.stringify(o)),s!==d&&r.set(s,d),d}return`_duplicate_${u}`}catch{return}},"replace")},"replacer2"),reviver2=a(function reviver(options){let refs=[],root;return a(function revive(key,value){if(key===""&&(root=value,refs.forEach(({target:e,container:t,replacement:r})=>{let _R=isJSON(r)?JSON.parse(r):r.split(".");_R.length===0?t[e]=root:t[e]=get_default(root,_R)})),key==="_constructor-name_")return value;if(isObject3(value)&&value.__isConvertedError__){let{message:e,...t}=value.errorProperties,r=new Error(e);return Object.assign(r,t),r}if(isObject3(value)&&value["_constructor-name_"]&&options.allowFunction){let e=value["_constructor-name_"];if(e!=="Object"){let t=new Function(`return function ${e.replace(/[^a-zA-Z0-9$_]+/g,"")}(){}`)();Object.setPrototypeOf(value,new t)}return delete value["_constructor-name_"],value}if(typeof value=="string"&&value.startsWith("_function_")&&options.allowFunction){let[,name,source]=value.match(/_function_([^|]*)\|(.*)/)||[],sourceSanitized=source.replace(/[(\(\))|\\| |\]|`]*$/,"");if(!options.lazyEval)return eval(`(${sourceSanitized})`);let result=a((...args)=>{let f=eval(`(${sourceSanitized})`);return f(...args)},"result");return Object.defineProperty(result,"toString",{value:a(()=>sourceSanitized,"value")}),Object.defineProperty(result,"name",{value:name}),result}if(typeof value=="string"&&value.startsWith("_regexp_")&&options.allowRegExp){let[,e,t]=value.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(t,e)}return typeof value=="string"&&value.startsWith("_date_")&&options.allowDate?new Date(value.replace("_date_","")):typeof value=="string"&&value.startsWith("_duplicate_")?(refs.push({target:key,container:this,replacement:value.replace(/^_duplicate_/,"")}),null):typeof value=="string"&&value.startsWith("_symbol_")&&options.allowSymbol?Symbol(value.replace("_symbol_","")):typeof value=="string"&&value.startsWith("_gsymbol_")&&options.allowSymbol?Symbol.for(value.replace("_gsymbol_","")):typeof value=="string"&&value==="_-Infinity_"?-1/0:typeof value=="string"&&value==="_Infinity_"?1/0:typeof value=="string"&&value==="_NaN_"?NaN:typeof value=="string"&&value.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(value.replace("_bigint_","")):value},"revive")},"reviver"),defaultOptions={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},stringify=a((e,t={})=>{let r={...defaultOptions,...t};return JSON.stringify(convertUnconventionalData(e),replacer(r),t.space)},"stringify"),mutator=a(()=>{let e=new Map;return a(function t(r){isObject3(r)&&Object.entries(r).forEach(([_R,o])=>{o==="_undefined_"?r[_R]=void 0:e.get(o)||(e.set(o,!0),t(o))}),Array.isArray(r)&&r.forEach((_R,o)=>{_R==="_undefined_"?(e.set(_R,!0),r[o]=void 0):e.get(_R)||(e.set(_R,!0),t(_R))})},"mutateUndefined")},"mutator"),parse=a((e,t={})=>{let r={...defaultOptions,...t},_R=JSON.parse(e,reviver2(r));return mutator()(_R),_R},"parse")}),Xe={};Te(Xe,{Channel:()=>R,PostMessageTransport:()=>$,WebsocketTransport:()=>L,createBrowserChannel:()=>Ze,default:()=>Ye});module.exports=Me(Xe);var be=j(Z(),1),He=a(e=>e.transports!==void 0,"isMulti"),Ue=a(()=>Math.random().toString(16).slice(2),"generateRandomId"),Zn,R=(Zn=class{constructor(t={}){this.sender=Ue(),this.events={},this.data={},this.transports=[],this.isAsync=t.async||!1,He(t)?(this.transports=t.transports||[],this.transports.forEach(r=>{r.setHandler(_R=>this.handleEvent(_R))})):this.transports=t.transport?[t.transport]:[],this.transports.forEach(r=>{r.setHandler(_R=>this.handleEvent(_R))})}get hasTransport(){return this.transports.length>0}addListener(t,r){this.events[t]=this.events[t]||[],this.events[t].push(r)}emit(t,...r){let _R={type:t,args:r,from:this.sender},o={};r.length>=1&&r[0]&&r[0].options&&(o=r[0].options);let i=a(()=>{this.transports.forEach(s=>{s.send(_R,o)}),this.handleEvent(_R)},"handler");this.isAsync?setImmediate(i):i()}last(t){return this.data[t]}eventNames(){return Object.keys(this.events)}listenerCount(t){let r=this.listeners(t);return r?r.length:0}listeners(t){return this.events[t]||void 0}once(t,r){let _R=this.onceListener(t,r);this.addListener(t,_R)}removeAllListeners(t){t?this.events[t]&&delete this.events[t]:this.events={}}removeListener(t,r){let _R=this.listeners(t);_R&&(this.events[t]=_R.filter(o=>o!==r))}on(t,r){this.addListener(t,r)}off(t,r){this.removeListener(t,r)}handleEvent(t){let r=this.listeners(t.type);r&&r.length&&r.forEach(_R=>{_R.apply(t,t.args)}),this.data[t.type]=t.args}onceListener(t,r){let _R=a((...o)=>(this.removeListener(t,_R),r(...o)),"onceListener");return _R}},a(Zn,"Channel"),Zn),v=j(Z(),1),D=Pt(),Je=j(wr(),1),k=j(ee(),1),We=process.env.NODE_ENV==="production",te="Invariant failed";function G(e,t){if(!e){if(We)throw new Error(te);var r=typeof t=="function"?t():t,_R=r?"".concat(te,": ").concat(r):te;throw new Error(_R)}}a(G,"invariant");var _e=Pt(),ge=a(e=>{let t=Array.from(document.querySelectorAll("iframe[data-is-storybook]")),[r,..._R]=t.filter(i=>{var u,d;try{return((u=i.contentWindow)==null?void 0:u.location.origin)===e.source.location.origin&&((d=i.contentWindow)==null?void 0:d.location.pathname)===e.source.location.pathname}catch{}try{return i.contentWindow===e.source}catch{}let s=i.getAttribute("src"),l;try{if(!s)return!1;({origin:l}=new URL(s,document.location.toString()))}catch{return!1}return l===e.origin}),o=r==null?void 0:r.getAttribute("src");if(o&&_R.length===0){let{protocol:i,host:s,pathname:l}=new URL(o,document.location.toString());return`${i}//${s}${l}`}return _R.length>0&&_e.logger.error("found multiple candidates for event source"),null},"getEventSourceUrl"),{document:re,location:ne}=v.global,me="storybook-channel",Be={allowFunction:!1,maxDepth:25},eo,$=(eo=class{constructor(t){var r;if(this.config=t,this.connected=!1,this.buffer=[],typeof((r=v.global)==null?void 0:r.addEventListener)=="function"&&v.global.addEventListener("message",this.handleEvent.bind(this),!1),t.page!=="manager"&&t.page!=="preview")throw new Error(`postmsg-channel: "config.page" cannot be "${t.page}"`)}setHandler(t){this.handler=(...r)=>{t.apply(this,r),!this.connected&&this.getLocalFrame().length&&(this.flush(),this.connected=!0)}}send(t,r){let{target:_R,allowRegExp:o,allowFunction:i,allowSymbol:s,allowDate:l,allowError:u,allowUndefined:d,allowClass:c,maxDepth:p,space:h,lazyEval:m}=r||{},g=Object.fromEntries(Object.entries({allowRegExp:o,allowFunction:i,allowSymbol:s,allowDate:l,allowError:u,allowUndefined:d,allowClass:c,maxDepth:p,space:h,lazyEval:m}).filter(([O,C])=>typeof C<"u")),y={...Be,...v.global.CHANNEL_OPTIONS||{},...g},b=this.getFrames(_R),E=new URLSearchParams((ne==null?void 0:ne.search)||""),_=(0,k.stringify)({key:me,event:t,refId:E.get("refId")},y);return b.length?(this.buffer.length&&this.flush(),b.forEach(O=>{try{O.postMessage(_,"*")}catch{D.logger.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((O,C)=>{this.buffer.push({event:t,resolve:O,reject:C})})}flush(){let{buffer:t}=this;this.buffer=[],t.forEach(r=>{this.send(r.event).then(r.resolve).catch(r.reject)})}getFrames(t){if(this.config.page==="manager"){let r=Array.from(re.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")).flatMap(_R=>{try{return _R.contentWindow&&_R.dataset.isStorybook!==void 0&&_R.id===t?[_R.contentWindow]:[]}catch{return[]}});return r!=null&&r.length?r:this.getCurrentFrames()}return v.global&&v.global.parent&&v.global.parent!==v.global.self?[v.global.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from(re.querySelectorAll('[data-is-storybook="true"]')).flatMap(t=>t.contentWindow?[t.contentWindow]:[]):v.global&&v.global.parent?[v.global.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from(re.querySelectorAll("#storybook-preview-iframe")).flatMap(t=>t.contentWindow?[t.contentWindow]:[]):v.global&&v.global.parent?[v.global.parent]:[]}handleEvent(t){try{let{data:r}=t,{key:_R,event:o,refId:i}=typeof r=="string"&&(0,k.isJSON)(r)?(0,k.parse)(r,v.global.CHANNEL_OPTIONS||{}):r;if(_R===me){let s=this.config.page==="manager"?'<span style="color: #37D5D3; background: black"> manager </span>':'<span style="color: #1EA7FD; background: black"> preview </span>',l=Object.values(Je).includes(o.type)?`<span style="color: #FF4785">${o.type}</span>`:`<span style="color: #FFAE00">${o.type}</span>`;if(i&&(o.refId=i),o.source=this.config.page==="preview"?t.origin:ge(t),!o.source){D.pretty.error(`${s} received ${l} but was unable to determine the source of the event`);return}let u=`${s} received ${l} (${r.length})`;D.pretty.debug(ne.origin!==o.source?u:`${u} <span style="color: gray">(on ${ne.origin} from ${o.source})</span>`,...o.args),G(this.handler,"ChannelHandler should be set"),this.handler(o)}}catch(r){D.logger.error(r)}}},a(eo,"PostMessageTransport"),eo),oe=j(Z(),1),ve=j(wr(),1),H=j(ee(),1),{WebSocket:Ke}=oe.global,to,L=(to=class{constructor({url:t,onError:r,page:_R}){this.buffer=[],this.isReady=!1,this.socket=new Ke(t),this.socket.onopen=()=>{this.isReady=!0,this.flush()},this.socket.onmessage=({data:o})=>{let i=typeof o=="string"&&(0,H.isJSON)(o)?(0,H.parse)(o):o;G(this.handler,"WebsocketTransport handler should be set"),this.handler(i)},this.socket.onerror=o=>{r&&r(o)},this.socket.onclose=()=>{G(this.handler,"WebsocketTransport handler should be set"),this.handler({type:ve.CHANNEL_WS_DISCONNECT,args:[],from:_R||"preview"})}}setHandler(t){this.handler=t}send(t){this.isReady?this.sendNow(t):this.sendLater(t)}sendLater(t){this.buffer.push(t)}sendNow(t){let r=(0,H.stringify)(t,{maxDepth:15,allowFunction:!1,...oe.global.CHANNEL_OPTIONS});this.socket.send(r)}flush(){let{buffer:t}=this;this.buffer=[],t.forEach(r=>this.send(r))}},a(to,"WebsocketTransport"),to),{CONFIG_TYPE:Ve}=be.global,Ye=R;function Ze({page:e,extraTransports:t=[]}){let r=[new $({page:e}),...t];if(Ve==="DEVELOPMENT"){let _R=window.location.protocol==="http:"?"ws":"wss",{hostname:o,port:i}=window.location,s=`${_R}://${o}:${i}/storybook-server-channel`;r.push(new L({url:s,onError:a(()=>{},"onError"),page:e}))}return new R({transports:r})}a(Ze,"createBrowserChannel")});var Zr=or((sH,Tf)=>{"use strict";var uC=Object.create,Pi=Object.defineProperty,cC=Object.getOwnPropertyDescriptor,dC=Object.getOwnPropertyNames,pC=Object.getPrototypeOf,fC=Object.prototype.hasOwnProperty,Ct=(e,t)=>Pi(e,"name",{value:t,configurable:!0}),hC=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),mC=(e,t)=>{for(var r in t)Pi(e,r,{get:t[r],enumerable:!0})},Sf=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of dC(t))!fC.call(e,o)&&o!==r&&Pi(e,o,{get:()=>t[o],enumerable:!(_R=cC(t,o))||_R.enumerable});return e},gC=(e,t,r)=>(r=e!=null?uC(pC(e)):{},Sf(t||!e||!e.__esModule?Pi(r,"default",{value:e,enumerable:!0}):r,e)),yC=e=>Sf(Pi({},"__esModule",{value:!0}),e),bC=hC(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dedent=void 0;function t(r){for(var _R=[],o=1;o<arguments.length;o++)_R[o-1]=arguments[o];var i=Array.from(typeof r=="string"?[r]:r);i[i.length-1]=i[i.length-1].replace(/\r?\_R([\t ]*)$/,"");var s=i.reduce(function(d,c){var p=c.match(/\_R([\t ]+|(?!\s).)/g);return p?d.concat(p.map(function(h){var m,g;return(g=(m=h.match(/[\t ]/g))===null||m===void 0?void 0:m.length)!==null&&g!==void 0?g:0})):d},[]);if(s.length){var l=new RegExp(`
7
+ `&&(_R=!1)),!r&&!_R&&(i+=e[s]);else i=e;return i},"removeCodeComments"),cleanCode=(0,import_memoizerific.default)(1e4)(e=>removeCodeComments(e).replace(/\_R\s*/g,"").trim()),convertShorthandMethods=a(function(e,t){let r=t.slice(0,t.indexOf("{")),_R=t.slice(t.indexOf("{"));if(r.includes("=>")||r.includes("function"))return t;let o=r;return o=o.replace(e,"function"),o+_R},"convertShorthandMethods2"),dateFormat=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,isJSON=a(e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/),"isJSON");function convertUnconventionalData(e){if(!isObject3(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=extractEventHiddenProperties(t),r=!0),t=Object.keys(t).reduce((_R,o)=>{try{t[o]&&t[o].toJSON,_R[o]=t[o]}catch{r=!0}return _R},{}),r?t:e}a(convertUnconventionalData,"convertUnconventionalData");var replacer=a(function(e){let t,r,_R,o;return a(function(i,s){try{if(i==="")return o=[],t=new Map([[s,"[]"]]),r=new Map,_R=[],s;let l=r.get(this)||this;for(;_R.length&&l!==_R[0];)_R.shift(),o.pop();if(typeof s=="boolean")return s;if(s===void 0)return e.allowUndefined?"_undefined_":void 0;if(s===null)return null;if(typeof s=="number")return s===-1/0?"_-Infinity_":s===1/0?"_Infinity_":Number.isNaN(s)?"_NaN_":s;if(typeof s=="bigint")return`_bigint_${s.toString()}`;if(typeof s=="string")return dateFormat.test(s)?e.allowDate?`_date_${s}`:void 0:s;if((0,import_is_regex.default)(s))return e.allowRegExp?`_regexp_${s.flags}|${s.source}`:void 0;if((0,import_is_function.default)(s)){if(!e.allowFunction)return;let{name:d}=s,c=s.toString();return c.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${d}|${(()=>{}).toString()}`:`_function_${d}|${cleanCode(convertShorthandMethods(i,c))}`}if((0,import_is_symbol.default)(s)){if(!e.allowSymbol)return;let d=Symbol.keyFor(s);return d!==void 0?`_gsymbol_${d}`:`_symbol_${s.toString().slice(7,-1)}`}if(_R.length>=e.maxDepth)return Array.isArray(s)?`[Array(${s.length})]`:"[Object]";if(s===this)return`_duplicate_${JSON.stringify(o)}`;if(s instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...s.cause?{cause:s.cause}:{},...s,name:s.name,message:s.message,stack:s.stack,"_constructor-name_":s.constructor.name}};if(s.constructor&&s.constructor.name&&s.constructor.name!=="Object"&&!Array.isArray(s)&&!e.allowClass)return;let u=t.get(s);if(!u){let d=Array.isArray(s)?s:convertUnconventionalData(s);if(s.constructor&&s.constructor.name&&s.constructor.name!=="Object"&&!Array.isArray(s)&&e.allowClass)try{Object.assign(d,{"_constructor-name_":s.constructor.name})}catch{}return o.push(i),_R.unshift(d),t.set(s,JSON.stringify(o)),s!==d&&r.set(s,d),d}return`_duplicate_${u}`}catch{return}},"replace")},"replacer2"),reviver2=a(function reviver(options){let refs=[],root;return a(function revive(key,value){if(key===""&&(root=value,refs.forEach(({target:e,container:t,replacement:r})=>{let _R=isJSON(r)?JSON.parse(r):r.split(".");_R.length===0?t[e]=root:t[e]=get_default(root,_R)})),key==="_constructor-name_")return value;if(isObject3(value)&&value.__isConvertedError__){let{message:e,...t}=value.errorProperties,r=new Error(e);return Object.assign(r,t),r}if(isObject3(value)&&value["_constructor-name_"]&&options.allowFunction){let e=value["_constructor-name_"];if(e!=="Object"){let t=new Function(`return function ${e.replace(/[^a-zA-Z0-9$_]+/g,"")}(){}`)();Object.setPrototypeOf(value,new t)}return delete value["_constructor-name_"],value}if(typeof value=="string"&&value.startsWith("_function_")&&options.allowFunction){let[,name,source]=value.match(/_function_([^|]*)\|(.*)/)||[],sourceSanitized=source.replace(/[(\(\))|\\| |\]|`]*$/,"");if(!options.lazyEval)return eval(`(${sourceSanitized})`);let result=a((...args)=>{let f=eval(`(${sourceSanitized})`);return f(...args)},"result");return Object.defineProperty(result,"toString",{value:a(()=>sourceSanitized,"value")}),Object.defineProperty(result,"name",{value:name}),result}if(typeof value=="string"&&value.startsWith("_regexp_")&&options.allowRegExp){let[,e,t]=value.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(t,e)}return typeof value=="string"&&value.startsWith("_date_")&&options.allowDate?new Date(value.replace("_date_","")):typeof value=="string"&&value.startsWith("_duplicate_")?(refs.push({target:key,container:this,replacement:value.replace(/^_duplicate_/,"")}),null):typeof value=="string"&&value.startsWith("_symbol_")&&options.allowSymbol?Symbol(value.replace("_symbol_","")):typeof value=="string"&&value.startsWith("_gsymbol_")&&options.allowSymbol?Symbol.for(value.replace("_gsymbol_","")):typeof value=="string"&&value==="_-Infinity_"?-1/0:typeof value=="string"&&value==="_Infinity_"?1/0:typeof value=="string"&&value==="_NaN_"?NaN:typeof value=="string"&&value.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(value.replace("_bigint_","")):value},"revive")},"reviver"),defaultOptions={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},stringify=a((e,t={})=>{let r={...defaultOptions,...t};return JSON.stringify(convertUnconventionalData(e),replacer(r),t.space)},"stringify"),mutator=a(()=>{let e=new Map;return a(function t(r){isObject3(r)&&Object.entries(r).forEach(([_R,o])=>{o==="_undefined_"?r[_R]=void 0:e.get(o)||(e.set(o,!0),t(o))}),Array.isArray(r)&&r.forEach((_R,o)=>{_R==="_undefined_"?(e.set(_R,!0),r[o]=void 0):e.get(_R)||(e.set(_R,!0),t(_R))})},"mutateUndefined")},"mutator"),parse=a((e,t={})=>{let r={...defaultOptions,...t},_R=JSON.parse(e,reviver2(r));return mutator()(_R),_R},"parse")}),Xe={};Te(Xe,{Channel:()=>R,PostMessageTransport:()=>$,WebsocketTransport:()=>L,createBrowserChannel:()=>Ze,default:()=>Ye});module.exports=Me(Xe);var be=j(Z(),1),He=a(e=>e.transports!==void 0,"isMulti"),Ue=a(()=>Math.random().toString(16).slice(2),"generateRandomId"),Zn,R=(Zn=class{constructor(t={}){this.sender=Ue(),this.events={},this.data={},this.transports=[],this.isAsync=t.async||!1,He(t)?(this.transports=t.transports||[],this.transports.forEach(r=>{r.setHandler(_R=>this.handleEvent(_R))})):this.transports=t.transport?[t.transport]:[],this.transports.forEach(r=>{r.setHandler(_R=>this.handleEvent(_R))})}get hasTransport(){return this.transports.length>0}addListener(t,r){this.events[t]=this.events[t]||[],this.events[t].push(r)}emit(t,...r){let _R={type:t,args:r,from:this.sender},o={};r.length>=1&&r[0]&&r[0].options&&(o=r[0].options);let i=a(()=>{this.transports.forEach(s=>{s.send(_R,o)}),this.handleEvent(_R)},"handler");this.isAsync?setImmediate(i):i()}last(t){return this.data[t]}eventNames(){return Object.keys(this.events)}listenerCount(t){let r=this.listeners(t);return r?r.length:0}listeners(t){return this.events[t]||void 0}once(t,r){let _R=this.onceListener(t,r);this.addListener(t,_R)}removeAllListeners(t){t?this.events[t]&&delete this.events[t]:this.events={}}removeListener(t,r){let _R=this.listeners(t);_R&&(this.events[t]=_R.filter(o=>o!==r))}on(t,r){this.addListener(t,r)}off(t,r){this.removeListener(t,r)}handleEvent(t){let r=this.listeners(t.type);r&&r.length&&r.forEach(_R=>{_R.apply(t,t.args)}),this.data[t.type]=t.args}onceListener(t,r){let _R=a((...o)=>(this.removeListener(t,_R),r(...o)),"onceListener");return _R}},a(Zn,"Channel"),Zn),v=j(Z(),1),D=Nt(),Je=j(wr(),1),k=j(ee(),1),We=process.env.NODE_ENV==="production",te="Invariant failed";function G(e,t){if(!e){if(We)throw new Error(te);var r=typeof t=="function"?t():t,_R=r?"".concat(te,": ").concat(r):te;throw new Error(_R)}}a(G,"invariant");var _e=Nt(),ge=a(e=>{let t=Array.from(document.querySelectorAll("iframe[data-is-storybook]")),[r,..._R]=t.filter(i=>{var u,d;try{return((u=i.contentWindow)==null?void 0:u.location.origin)===e.source.location.origin&&((d=i.contentWindow)==null?void 0:d.location.pathname)===e.source.location.pathname}catch{}try{return i.contentWindow===e.source}catch{}let s=i.getAttribute("src"),l;try{if(!s)return!1;({origin:l}=new URL(s,document.location.toString()))}catch{return!1}return l===e.origin}),o=r==null?void 0:r.getAttribute("src");if(o&&_R.length===0){let{protocol:i,host:s,pathname:l}=new URL(o,document.location.toString());return`${i}//${s}${l}`}return _R.length>0&&_e.logger.error("found multiple candidates for event source"),null},"getEventSourceUrl"),{document:re,location:ne}=v.global,me="storybook-channel",Be={allowFunction:!1,maxDepth:25},eo,$=(eo=class{constructor(t){var r;if(this.config=t,this.connected=!1,this.buffer=[],typeof((r=v.global)==null?void 0:r.addEventListener)=="function"&&v.global.addEventListener("message",this.handleEvent.bind(this),!1),t.page!=="manager"&&t.page!=="preview")throw new Error(`postmsg-channel: "config.page" cannot be "${t.page}"`)}setHandler(t){this.handler=(...r)=>{t.apply(this,r),!this.connected&&this.getLocalFrame().length&&(this.flush(),this.connected=!0)}}send(t,r){let{target:_R,allowRegExp:o,allowFunction:i,allowSymbol:s,allowDate:l,allowError:u,allowUndefined:d,allowClass:c,maxDepth:p,space:h,lazyEval:m}=r||{},g=Object.fromEntries(Object.entries({allowRegExp:o,allowFunction:i,allowSymbol:s,allowDate:l,allowError:u,allowUndefined:d,allowClass:c,maxDepth:p,space:h,lazyEval:m}).filter(([O,C])=>typeof C<"u")),y={...Be,...v.global.CHANNEL_OPTIONS||{},...g},b=this.getFrames(_R),E=new URLSearchParams((ne==null?void 0:ne.search)||""),_=(0,k.stringify)({key:me,event:t,refId:E.get("refId")},y);return b.length?(this.buffer.length&&this.flush(),b.forEach(O=>{try{O.postMessage(_,"*")}catch{D.logger.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((O,C)=>{this.buffer.push({event:t,resolve:O,reject:C})})}flush(){let{buffer:t}=this;this.buffer=[],t.forEach(r=>{this.send(r.event).then(r.resolve).catch(r.reject)})}getFrames(t){if(this.config.page==="manager"){let r=Array.from(re.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")).flatMap(_R=>{try{return _R.contentWindow&&_R.dataset.isStorybook!==void 0&&_R.id===t?[_R.contentWindow]:[]}catch{return[]}});return r!=null&&r.length?r:this.getCurrentFrames()}return v.global&&v.global.parent&&v.global.parent!==v.global.self?[v.global.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from(re.querySelectorAll('[data-is-storybook="true"]')).flatMap(t=>t.contentWindow?[t.contentWindow]:[]):v.global&&v.global.parent?[v.global.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from(re.querySelectorAll("#storybook-preview-iframe")).flatMap(t=>t.contentWindow?[t.contentWindow]:[]):v.global&&v.global.parent?[v.global.parent]:[]}handleEvent(t){try{let{data:r}=t,{key:_R,event:o,refId:i}=typeof r=="string"&&(0,k.isJSON)(r)?(0,k.parse)(r,v.global.CHANNEL_OPTIONS||{}):r;if(_R===me){let s=this.config.page==="manager"?'<span style="color: #37D5D3; background: black"> manager </span>':'<span style="color: #1EA7FD; background: black"> preview </span>',l=Object.values(Je).includes(o.type)?`<span style="color: #FF4785">${o.type}</span>`:`<span style="color: #FFAE00">${o.type}</span>`;if(i&&(o.refId=i),o.source=this.config.page==="preview"?t.origin:ge(t),!o.source){D.pretty.error(`${s} received ${l} but was unable to determine the source of the event`);return}let u=`${s} received ${l} (${r.length})`;D.pretty.debug(ne.origin!==o.source?u:`${u} <span style="color: gray">(on ${ne.origin} from ${o.source})</span>`,...o.args),G(this.handler,"ChannelHandler should be set"),this.handler(o)}}catch(r){D.logger.error(r)}}},a(eo,"PostMessageTransport"),eo),oe=j(Z(),1),ve=j(wr(),1),H=j(ee(),1),{WebSocket:Ke}=oe.global,to,L=(to=class{constructor({url:t,onError:r,page:_R}){this.buffer=[],this.isReady=!1,this.socket=new Ke(t),this.socket.onopen=()=>{this.isReady=!0,this.flush()},this.socket.onmessage=({data:o})=>{let i=typeof o=="string"&&(0,H.isJSON)(o)?(0,H.parse)(o):o;G(this.handler,"WebsocketTransport handler should be set"),this.handler(i)},this.socket.onerror=o=>{r&&r(o)},this.socket.onclose=()=>{G(this.handler,"WebsocketTransport handler should be set"),this.handler({type:ve.CHANNEL_WS_DISCONNECT,args:[],from:_R||"preview"})}}setHandler(t){this.handler=t}send(t){this.isReady?this.sendNow(t):this.sendLater(t)}sendLater(t){this.buffer.push(t)}sendNow(t){let r=(0,H.stringify)(t,{maxDepth:15,allowFunction:!1,...oe.global.CHANNEL_OPTIONS});this.socket.send(r)}flush(){let{buffer:t}=this;this.buffer=[],t.forEach(r=>this.send(r))}},a(to,"WebsocketTransport"),to),{CONFIG_TYPE:Ve}=be.global,Ye=R;function Ze({page:e,extraTransports:t=[]}){let r=[new $({page:e}),...t];if(Ve==="DEVELOPMENT"){let _R=window.location.protocol==="http:"?"ws":"wss",{hostname:o,port:i}=window.location,s=`${_R}://${o}:${i}/storybook-server-channel`;r.push(new L({url:s,onError:a(()=>{},"onError"),page:e}))}return new R({transports:r})}a(Ze,"createBrowserChannel")});var Zr=or((lH,Tf)=>{"use strict";var uC=Object.create,Pi=Object.defineProperty,cC=Object.getOwnPropertyDescriptor,dC=Object.getOwnPropertyNames,pC=Object.getPrototypeOf,fC=Object.prototype.hasOwnProperty,Ct=(e,t)=>Pi(e,"name",{value:t,configurable:!0}),hC=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),mC=(e,t)=>{for(var r in t)Pi(e,r,{get:t[r],enumerable:!0})},Sf=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of dC(t))!fC.call(e,o)&&o!==r&&Pi(e,o,{get:()=>t[o],enumerable:!(_R=cC(t,o))||_R.enumerable});return e},gC=(e,t,r)=>(r=e!=null?uC(pC(e)):{},Sf(t||!e||!e.__esModule?Pi(r,"default",{value:e,enumerable:!0}):r,e)),yC=e=>Sf(Pi({},"__esModule",{value:!0}),e),bC=hC(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dedent=void 0;function t(r){for(var _R=[],o=1;o<arguments.length;o++)_R[o-1]=arguments[o];var i=Array.from(typeof r=="string"?[r]:r);i[i.length-1]=i[i.length-1].replace(/\r?\_R([\t ]*)$/,"");var s=i.reduce(function(d,c){var p=c.match(/\_R([\t ]+|(?!\s).)/g);return p?d.concat(p.map(function(h){var m,g;return(g=(m=h.match(/[\t ]/g))===null||m===void 0?void 0:m.length)!==null&&g!==void 0?g:0})):d},[]);if(s.length){var l=new RegExp(`
8
8
  [ ]{`+Math.min.apply(Math,s)+"}","g");i=i.map(function(d){return d.replace(l,`
9
9
  `)})}i[0]=i[0].replace(/^\r?\_R/,"");var u=i[0];return _R.forEach(function(d,c){var p=u.match(/(?:^|\_R)( *)$/),h=p?p[1]:"",m=d;typeof d=="string"&&d.includes(`
10
10
  `)&&(m=String(d).split(`
11
11
  `).map(function(g,y){return y===0?g:""+h+g}).join(`
12
- `)),u+=m+i[c+1]}),u}Ct(t,"dedent"),e.dedent=t,e.default=t}),Cf={};mC(Cf,{CalledExtractOnStoreError:()=>_C,CalledPreviewMethodBeforeInitializationError:()=>SC,Category:()=>Af,EmptyIndexError:()=>TC,ImplicitActionsDuringRendering:()=>EC,MdxFileWithNoCsfReferencesError:()=>AC,MissingRenderToCanvasError:()=>wC,MissingStoryAfterHmrError:()=>vC,MissingStoryFromCsfFileError:()=>xC,MountMustBeDestructuredError:()=>PC,NextJsSharpError:()=>IC,NextjsRouterMocksNotAvailable:()=>DC,NoRenderFunctionError:()=>NC,NoStoryMatchError:()=>RC,NoStoryMountedError:()=>MC,StoryIndexFetchError:()=>CC,StoryStoreAccessedBeforeInitializationError:()=>OC,UnknownArgTypesError:()=>qC,UnsupportedViewportDimensionError:()=>jC});Tf.exports=yC(Cf);var Nt=gC(bC(),1);function Nl({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}Ct(Nl,"parseErrorCode");var An,Mt=(An=class extends Error{constructor(t){var r;super(An.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.category=t.category,this.documentation=(r=t.documentation)!=null?r:!1,this.code=t.code}get fullErrorCode(){return Nl({code:this.code,category:this.category})}get name(){let t=this.constructor.name;return`${this.fullErrorCode} (${t})`}static getFullMessage({documentation:t,code:r,category:_R,message:o}){let i;return t===!0?i=`https://storybook.js.org/error/${Nl({code:r,category:_R})}`:typeof t=="string"?i=t:Array.isArray(t)&&(i=`
12
+ `)),u+=m+i[c+1]}),u}Ct(t,"dedent"),e.dedent=t,e.default=t}),Cf={};mC(Cf,{CalledExtractOnStoreError:()=>_C,CalledPreviewMethodBeforeInitializationError:()=>SC,Category:()=>Af,EmptyIndexError:()=>TC,ImplicitActionsDuringRendering:()=>EC,MdxFileWithNoCsfReferencesError:()=>AC,MissingRenderToCanvasError:()=>wC,MissingStoryAfterHmrError:()=>vC,MissingStoryFromCsfFileError:()=>xC,MountMustBeDestructuredError:()=>PC,NextJsSharpError:()=>IC,NextjsRouterMocksNotAvailable:()=>DC,NoRenderFunctionError:()=>NC,NoStoryMatchError:()=>RC,NoStoryMountedError:()=>MC,StoryIndexFetchError:()=>CC,StoryStoreAccessedBeforeInitializationError:()=>OC,UnknownArgTypesError:()=>qC,UnsupportedViewportDimensionError:()=>jC});Tf.exports=yC(Cf);var Mt=gC(bC(),1);function Nl({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}Ct(Nl,"parseErrorCode");var An,It=(An=class extends Error{constructor(t){var r;super(An.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.category=t.category,this.documentation=(r=t.documentation)!=null?r:!1,this.code=t.code}get fullErrorCode(){return Nl({code:this.code,category:this.category})}get name(){let t=this.constructor.name;return`${this.fullErrorCode} (${t})`}static getFullMessage({documentation:t,code:r,category:_R,message:o}){let i;return t===!0?i=`https://storybook.js.org/error/${Nl({code:r,category:_R})}`:typeof t=="string"?i=t:Array.isArray(t)&&(i=`
13
13
  ${t.map(s=>` - ${s}`).join(`
14
14
  `)}`),`${o}${i!=null?`
15
15
 
16
16
  More info: ${i}
17
- `:""}`}},Ct(An,"StorybookError"),An),Af=(e=>(e.BLOCKS="BLOCKS",e.DOCS_TOOLS="DOCS-TOOLS",e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",e.ADDON_VITEST="ADDON_VITEST",e))(Af||{}),ro,vC=(ro=class extends Mt{constructor(t){super({category:"PREVIEW_API",code:1,message:Nt.dedent`
17
+ `:""}`}},Ct(An,"StorybookError"),An),Af=(e=>(e.BLOCKS="BLOCKS",e.DOCS_TOOLS="DOCS-TOOLS",e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",e.ADDON_VITEST="ADDON_VITEST",e))(Af||{}),ro,vC=(ro=class extends It{constructor(t){super({category:"PREVIEW_API",code:1,message:Mt.dedent`
18
18
  Couldn't find story matching id '${t.storyId}' after HMR.
19
19
  - Did you just rename a story?
20
20
  - Did you remove it from your CSF file?
21
21
  - Are you sure a story with the id '${t.storyId}' exists?
22
22
  - Please check the values in the stories field of your main.js config and see if they would match your CSF File.
23
- - Also check the browser console and terminal for potential error messages.`}),this.data=t}},Ct(ro,"MissingStoryAfterHmrError"),ro),no,EC=(no=class extends Mt{constructor(t){super({category:"PREVIEW_API",code:2,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",message:Nt.dedent`
23
+ - Also check the browser console and terminal for potential error messages.`}),this.data=t}},Ct(ro,"MissingStoryAfterHmrError"),ro),no,EC=(no=class extends It{constructor(t){super({category:"PREVIEW_API",code:2,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",message:Mt.dedent`
24
24
  We detected that you use an implicit action arg while ${t.phase} of your story.
25
25
  ${t.deprecated?`
26
26
  This is deprecated and won't work in Storybook 8 anymore.
@@ -30,20 +30,20 @@ This is deprecated and won't work in Storybook 8 anymore.
30
30
  ...
31
31
  args: {
32
32
  ${t.name}: fn()
33
- }`}),this.data=t}},Ct(no,"ImplicitActionsDuringRendering"),no),oo,_C=(oo=class extends Mt{constructor(){super({category:"PREVIEW_API",code:3,message:Nt.dedent`
33
+ }`}),this.data=t}},Ct(no,"ImplicitActionsDuringRendering"),no),oo,_C=(oo=class extends It{constructor(){super({category:"PREVIEW_API",code:3,message:Mt.dedent`
34
34
  Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
35
35
 
36
- You probably meant to call \`await preview.extract()\` which does the above for you.`})}},Ct(oo,"CalledExtractOnStoreError"),oo),io,wC=(io=class extends Mt{constructor(){super({category:"PREVIEW_API",code:4,message:Nt.dedent`
36
+ You probably meant to call \`await preview.extract()\` which does the above for you.`})}},Ct(oo,"CalledExtractOnStoreError"),oo),io,wC=(io=class extends It{constructor(){super({category:"PREVIEW_API",code:4,message:Mt.dedent`
37
37
  Expected your framework's preset to export a \`renderToCanvas\` field.
38
38
 
39
- Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}},Ct(io,"MissingRenderToCanvasError"),io),ao,SC=(ao=class extends Mt{constructor(t){super({category:"PREVIEW_API",code:5,message:Nt.dedent`
39
+ Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}},Ct(io,"MissingRenderToCanvasError"),io),ao,SC=(ao=class extends It{constructor(t){super({category:"PREVIEW_API",code:5,message:Mt.dedent`
40
40
  Called \`Preview.${t.methodName}()\` before initialization.
41
41
 
42
42
  The preview needs to load the story index before most methods can be called. If you want
43
43
  to call \`${t.methodName}\`, try \`await preview.initializationPromise;\` first.
44
44
 
45
45
  If you didn't call the above code, then likely it was called by an addon that needs to
46
- do the above.`}),this.data=t}},Ct(ao,"CalledPreviewMethodBeforeInitializationError"),ao),so,CC=(so=class extends Mt{constructor(t){super({category:"PREVIEW_API",code:6,message:Nt.dedent`
46
+ do the above.`}),this.data=t}},Ct(ao,"CalledPreviewMethodBeforeInitializationError"),ao),so,CC=(so=class extends It{constructor(t){super({category:"PREVIEW_API",code:6,message:Mt.dedent`
47
47
  Error fetching \`/index.json\`:
48
48
 
49
49
  ${t.text}
@@ -52,21 +52,21 @@ This is deprecated and won't work in Storybook 8 anymore.
52
52
  check the terminal for errors.
53
53
 
54
54
  If you are in a deployed Storybook, there may have been an issue deploying the full Storybook
55
- build.`}),this.data=t}},Ct(so,"StoryIndexFetchError"),so),lo,AC=(lo=class extends Mt{constructor(t){super({category:"PREVIEW_API",code:7,message:Nt.dedent`
55
+ build.`}),this.data=t}},Ct(so,"StoryIndexFetchError"),so),lo,AC=(lo=class extends It{constructor(t){super({category:"PREVIEW_API",code:7,message:Mt.dedent`
56
56
  Tried to render docs entry ${t.storyId} but it is a MDX file that has no CSF
57
57
  references, or autodocs for a CSF file that some doesn't refer to itself.
58
58
 
59
59
  This likely is an internal error in Storybook's indexing, or you've attached the
60
- \`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=t}},Ct(lo,"MdxFileWithNoCsfReferencesError"),lo),uo,TC=(uo=class extends Mt{constructor(){super({category:"PREVIEW_API",code:8,message:Nt.dedent`
60
+ \`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=t}},Ct(lo,"MdxFileWithNoCsfReferencesError"),lo),uo,TC=(uo=class extends It{constructor(){super({category:"PREVIEW_API",code:8,message:Mt.dedent`
61
61
  Couldn't find any stories in your Storybook.
62
62
 
63
63
  - Please check your stories field of your main.js config: does it match correctly?
64
- - Also check the browser console and terminal for error messages.`})}},Ct(uo,"EmptyIndexError"),uo),co,RC=(co=class extends Mt{constructor(t){super({category:"PREVIEW_API",code:9,message:Nt.dedent`
64
+ - Also check the browser console and terminal for error messages.`})}},Ct(uo,"EmptyIndexError"),uo),co,RC=(co=class extends It{constructor(t){super({category:"PREVIEW_API",code:9,message:Mt.dedent`
65
65
  Couldn't find story matching '${t.storySpecifier}'.
66
66
 
67
67
  - Are you sure a story with that id exists?
68
68
  - Please check your stories field of your main.js config.
69
- - Also check the browser console and terminal for error messages.`}),this.data=t}},Ct(co,"NoStoryMatchError"),co),po,xC=(po=class extends Mt{constructor(t){super({category:"PREVIEW_API",code:10,message:Nt.dedent`
69
+ - Also check the browser console and terminal for error messages.`}),this.data=t}},Ct(co,"NoStoryMatchError"),co),po,xC=(po=class extends It{constructor(t){super({category:"PREVIEW_API",code:10,message:Mt.dedent`
70
70
  Couldn't find story matching id '${t.storyId}' after importing a CSF file.
71
71
 
72
72
  The file was indexed as if the story was there, but then after importing the file in the browser
@@ -74,11 +74,11 @@ This is deprecated and won't work in Storybook 8 anymore.
74
74
  - You are using a custom story indexer that is misbehaving.
75
75
  - You have a custom file loader that is removing or renaming exports.
76
76
 
77
- Please check your browser console and terminal for errors that may explain the issue.`}),this.data=t}},Ct(po,"MissingStoryFromCsfFileError"),po),fo,OC=(fo=class extends Mt{constructor(){super({category:"PREVIEW_API",code:11,message:Nt.dedent`
77
+ Please check your browser console and terminal for errors that may explain the issue.`}),this.data=t}},Ct(po,"MissingStoryFromCsfFileError"),po),fo,OC=(fo=class extends It{constructor(){super({category:"PREVIEW_API",code:11,message:Mt.dedent`
78
78
  Cannot access the Story Store until the index is ready.
79
79
 
80
80
  It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
81
- remove access to the store entirely`})}},Ct(fo,"StoryStoreAccessedBeforeInitializationError"),fo),ho,PC=(ho=class extends Mt{constructor(t){super({category:"PREVIEW_API",code:12,message:Nt.dedent`
81
+ remove access to the store entirely`})}},Ct(fo,"StoryStoreAccessedBeforeInitializationError"),fo),ho,PC=(ho=class extends It{constructor(t){super({category:"PREVIEW_API",code:12,message:Mt.dedent`
82
82
  Incorrect use of mount in the play function.
83
83
 
84
84
  To use mount in the play function, you must satisfy the following two requirements:
@@ -95,9 +95,9 @@ This is deprecated and won't work in Storybook 8 anymore.
95
95
  More info: https://storybook.js.org/docs/writing-tests/interaction-testing#run-code-before-the-component-gets-rendered
96
96
 
97
97
  Received the following play function:
98
- ${t.playFunction}`}),this.data=t}},Ct(ho,"MountMustBeDestructuredError"),ho),mo,NC=(mo=class extends Mt{constructor(t){super({category:"PREVIEW_API",code:14,message:Nt.dedent`
98
+ ${t.playFunction}`}),this.data=t}},Ct(ho,"MountMustBeDestructuredError"),ho),mo,NC=(mo=class extends It{constructor(t){super({category:"PREVIEW_API",code:14,message:Mt.dedent`
99
99
  No render function available for storyId '${t.id}'
100
- `}),this.data=t}},Ct(mo,"NoRenderFunctionError"),mo),go,MC=(go=class extends Mt{constructor(){super({category:"PREVIEW_API",code:15,message:Nt.dedent`
100
+ `}),this.data=t}},Ct(mo,"NoRenderFunctionError"),mo),go,MC=(go=class extends It{constructor(){super({category:"PREVIEW_API",code:15,message:Mt.dedent`
101
101
  No component is mounted in your story.
102
102
 
103
103
  This usually occurs when you destructure mount in the play function, but forget to call it.
@@ -112,13 +112,13 @@ This is deprecated and won't work in Storybook 8 anymore.
112
112
  };
113
113
 
114
114
  Make sure to either remove it or call mount in your play function.
115
- `})}},Ct(go,"NoStoryMountedError"),go),yo,IC=(yo=class extends Mt{constructor(){super({category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/nextjs#faq",message:Nt.dedent`
115
+ `})}},Ct(go,"NoStoryMountedError"),go),yo,IC=(yo=class extends It{constructor(){super({category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/nextjs#faq",message:Mt.dedent`
116
116
  You are importing avif images, but you don't have sharp installed.
117
117
 
118
118
  You have to install sharp in order to use image optimization features in Next.js.
119
- `})}},Ct(yo,"NextJsSharpError"),yo),bo,DC=(bo=class extends Mt{constructor(t){super({category:"FRAMEWORK_NEXTJS",code:2,message:Nt.dedent`
119
+ `})}},Ct(yo,"NextJsSharpError"),yo),bo,DC=(bo=class extends It{constructor(t){super({category:"FRAMEWORK_NEXTJS",code:2,message:Mt.dedent`
120
120
  Tried to access router mocks from "${t.importType}" but they were not created yet. You might be running code in an unsupported environment.
121
- `}),this.data=t}},Ct(bo,"NextjsRouterMocksNotAvailable"),bo),vo,qC=(vo=class extends Mt{constructor(t){super({category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:Nt.dedent`
121
+ `}),this.data=t}},Ct(bo,"NextjsRouterMocksNotAvailable"),bo),vo,qC=(vo=class extends It{constructor(t){super({category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:Mt.dedent`
122
122
  There was a failure when generating detailed ArgTypes in ${t.language} for:
123
123
  ${JSON.stringify(t.type,null,2)}
124
124
 
@@ -126,24 +126,24 @@ This is deprecated and won't work in Storybook 8 anymore.
126
126
 
127
127
  This type is either not supported or it is a bug in the docgen generation in Storybook.
128
128
  If you think this is a bug, please detail it as much as possible in the Github issue.
129
- `}),this.data=t}},Ct(vo,"UnknownArgTypesError"),vo),Eo,jC=(Eo=class extends Mt{constructor(t){super({category:"ADDON_VITEST",code:1,message:Nt.dedent`
129
+ `}),this.data=t}},Ct(vo,"UnknownArgTypesError"),vo),Eo,jC=(Eo=class extends It{constructor(t){super({category:"ADDON_VITEST",code:1,message:Mt.dedent`
130
130
  Encountered an unsupported value "${t.value}" when setting the viewport ${t.dimension} dimension.
131
131
 
132
132
  The Storybook plugin only supports values in the following units:
133
133
  - px, vh, vw, em, rem and %.
134
134
 
135
135
  You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://storybook.js.org/docs/writing-stories/tags
136
- `}),this.data=t}},Ct(Eo,"UnsupportedViewportDimensionError"),Eo)});var _o=or(en=>{"use strict";var BC=Object.create,Pf=Object.defineProperty,FC=Object.getOwnPropertyDescriptor,kC=Object.getOwnPropertyNames,LC=Object.getPrototypeOf,$C=Object.prototype.hasOwnProperty,UC=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),HC=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of kC(t))!$C.call(e,o)&&o!==r&&Pf(e,o,{get:()=>t[o],enumerable:!(_R=FC(t,o))||_R.enumerable});return e},zC=(e,t,r)=>(r=e!=null?BC(LC(e)):{},HC(t||!e||!e.__esModule?Pf(r,"default",{value:e,enumerable:!0}):r,e)),VC=UC(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,_R=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,i){return function s(l,u,d){var c,p,h,m=t.call(l),g=t.call(u);if(l===u)return!0;if(l==null||u==null)return!1;if(d.indexOf(l)>-1&&d.indexOf(u)>-1)return!0;if(d.push(l,u),m!=g||(c=_R(l),p=_R(u),c.length!=p.length||c.some(function(y){return!s(l[y],u[y],d)})))return!1;switch(m.slice(8,-1)){case"Symbol":return l.valueOf()==u.valueOf();case"Date":case"Number":return+l==+u||+l!=+l&&+u!=+u;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+u;case"Set":case"Map":c=l.entries(),p=u.entries();do if(!s((h=c.next()).value,p.next().value,d))return!1;while(!h.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),u=new Uint8Array(u);case"DataView":l=new Uint8Array(l.buffer),u=new Uint8Array(u.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=u.length)return!1;for(h=0;h<l.length;h++)if((h in l||h in u)&&(h in l!=h in u||!s(l[h],u[h],d)))return!1;return!0;case"Object":return s(r(l),r(u),d);default:return!1}}(o,i,[])}}()});function GC(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\_R])([A-Z])([a-z])/g,(t,r,_R,o)=>`${r} ${_R}${o}`).replace(/([a-z])([A-Z])/g,(t,r,_R)=>`${r} ${_R}`).replace(/([a-z])([0-9])/gi,(t,r,_R)=>`${r} ${_R}`).replace(/([0-9])([a-z])/gi,(t,r,_R)=>`${r} ${_R}`).replace(/(\s|^)(\w)/g,(t,r,_R)=>`${r}${_R.toUpperCase()}`).replace(/ +/g," ").trim()}var Rf=zC(VC()),Nf=e=>e.map(t=>typeof t<"u").filter(Boolean).length,WC=(e,t)=>{let{exists:r,eq:_R,neq:o,truthy:i}=e;if(Nf([r,_R,o,i])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:_R,neq:o})}`);if(typeof _R<"u")return(0,Rf.isEqual)(t,_R);if(typeof o<"u")return!(0,Rf.isEqual)(t,o);if(typeof r<"u"){let s=typeof t<"u";return r?s:!s}return typeof i>"u"||i?!!t:!t},YC=(e,t,r)=>{if(!e.if)return!0;let{arg:_R,global:o}=e.if;if(Nf([_R,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:_R,global:o})}`);let i=_R?t[_R]:r[o];return WC(e.if,i)},Mf=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),xf=(e,t)=>{let r=Mf(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},KC=(e,t)=>`${xf(e,"kind")}${t?`--${xf(t,"name")}`:""}`,JC=e=>GC(e);function Of(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}function XC(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||Of(e,t))&&(!r||!Of(e,r))}var QC=(e,{rootSeparator:t,groupSeparator:r})=>{let[_R,o]=e.split(t,2),i=(o||e).split(r).filter(s=>!!s);return{root:o?_R:null,groups:i}},ZC=(...e)=>{let t=e.reduce((r,_R)=>(_R.startsWith("!")?r.delete(_R.slice(1)):r.add(_R),r),new Set);return Array.from(t)};en.combineTags=ZC;en.includeConditionalArg=YC;en.isExportStory=XC;en.parseKind=QC;en.sanitize=Mf;en.storyNameFromExport=JC;en.toId=KC});var sm=or((uH,am)=>{"use strict";var eA=Object.create,qi=Object.defineProperty,tA=Object.getOwnPropertyDescriptor,rA=Object.getOwnPropertyNames,nA=Object.getPrototypeOf,oA=Object.prototype.hasOwnProperty,P=(e,t)=>qi(e,"name",{value:t,configurable:!0}),At=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),iA=(e,t)=>{for(var r in t)qi(e,r,{get:t[r],enumerable:!0})},eh=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of rA(t))!oA.call(e,o)&&o!==r&&qi(e,o,{get:()=>t[o],enumerable:!(_R=tA(t,o))||_R.enumerable});return e},dt=(e,t,r)=>(r=e!=null?eA(nA(e)):{},eh(t||!e||!e.__esModule?qi(r,"default",{value:e,enumerable:!0}):r,e)),aA=e=>eh(qi({},"__esModule",{value:!0}),e),Ar=At((e,t)=>{"use strict";var r=Object.defineProperty,_R=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s=P((p,h)=>{for(var m in h)r(p,m,{get:h[m],enumerable:!0})},"__export"),l=P((p,h,m,g)=>{if(h&&typeof h=="object"||typeof h=="function")for(let y of o(h))!i.call(p,y)&&y!==m&&r(p,y,{get:P(()=>h[y],"get"),enumerable:!(g=_R(h,y))||g.enumerable});return p},"__copyProps"),u=P(p=>l(r({},"__esModule",{value:!0}),p),"__toCommonJS"),d={};s(d,{global:P(()=>c,"global")}),t.exports=u(d);var c=(()=>{let p;return typeof window<"u"?p=window:typeof globalThis<"u"?p=globalThis:typeof global<"u"?p=global:typeof self<"u"?p=self:p={},p})()}),sA=At((e,t)=>{function r(){return this.list=[],this.lastItem=void 0,this.size=0,this}P(r,"Similar"),r.prototype.get=function(_R){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,_R))return this.lastItem.val;if(o=this.indexOf(_R),o>=0)return this.lastItem=this.list[o],this.list[o].val},r.prototype.set=function(_R,o){var i;return this.lastItem&&this.isEqual(this.lastItem.key,_R)?(this.lastItem.val=o,this):(i=this.indexOf(_R),i>=0?(this.lastItem=this.list[i],this.list[i].val=o,this):(this.lastItem={key:_R,val:o},this.list.push(this.lastItem),this.size++,this))},r.prototype.delete=function(_R){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,_R)&&(this.lastItem=void 0),o=this.indexOf(_R),o>=0)return this.size--,this.list.splice(o,1)[0]},r.prototype.has=function(_R){var o;return this.lastItem&&this.isEqual(this.lastItem.key,_R)?!0:(o=this.indexOf(_R),o>=0?(this.lastItem=this.list[o],!0):!1)},r.prototype.forEach=function(_R,o){var i;for(i=0;i<this.size;i++)_R.call(o||this,this.list[i].val,this.list[i].key,this)},r.prototype.indexOf=function(_R){var o;for(o=0;o<this.size;o++)if(this.isEqual(this.list[o].key,_R))return o;return-1},r.prototype.isEqual=function(_R,o){return _R===o||_R!==_R&&o!==o},t.exports=r}),lA=At((e,t)=>{t.exports=function(r){if(typeof Map!="function"||r){var _R=sA();return new _R}else return new Map}}),th=At((e,t)=>{var r=lA();t.exports=function(s){var l=new r(process.env.FORCE_SIMILAR_INSTEAD_OF_MAP==="true"),u=[];return function(d){var c=P(function(){var p=l,h,m,g=arguments.length-1,y=Array(g+1),b=!0,E;if((c.numArgs||c.numArgs===0)&&c.numArgs!==g+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(E=0;E<g;E++){if(y[E]={cacheItem:p,arg:arguments[E]},p.has(arguments[E])){p=p.get(arguments[E]);continue}b=!1,h=new r(process.env.FORCE_SIMILAR_INSTEAD_OF_MAP==="true"),p.set(arguments[E],h),p=h}return b&&(p.has(arguments[g])?m=p.get(arguments[g]):b=!1),b||(m=d.apply(null,arguments),p.set(arguments[g],m)),s>0&&(y[g]={cacheItem:p,arg:arguments[g]},b?_R(u,y):u.push(y),u.length>s&&o(u.shift())),c.wasMemoized=b,c.numArgs=g+1,m},"memoizerific");return c.limit=s,c.wasMemoized=!1,c.cache=l,c.lru=u,c}};function _R(s,l){var u=s.length,d=l.length,c,p,h;for(p=0;p<u;p++){for(c=!0,h=0;h<d;h++)if(!i(s[p][h].arg,l[h].arg)){c=!1;break}if(c)break}s.push(s.splice(p,1)[0])}P(_R,"moveToMostRecentLru");function o(s){var l=s.length,u=s[l-1],d,c;for(u.cacheItem.delete(u.arg),c=l-2;c>=0&&(u=s[c],d=u.cacheItem.get(u.arg),!d||!d.size);c--)u.cacheItem.delete(u.arg)}P(o,"removeCachedResult");function i(s,l){return s===l||s!==s&&l!==l}P(i,"isEqual")}),Tr=At(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dedent=void 0;function t(r){for(var _R=[],o=1;o<arguments.length;o++)_R[o-1]=arguments[o];var i=Array.from(typeof r=="string"?[r]:r);i[i.length-1]=i[i.length-1].replace(/\r?\_R([\t ]*)$/,"");var s=i.reduce(function(d,c){var p=c.match(/\_R([\t ]+|(?!\s).)/g);return p?d.concat(p.map(function(h){var m,g;return(g=(m=h.match(/[\t ]/g))===null||m===void 0?void 0:m.length)!==null&&g!==void 0?g:0})):d},[]);if(s.length){var l=new RegExp(`
136
+ `}),this.data=t}},Ct(Eo,"UnsupportedViewportDimensionError"),Eo)});var _o=or(en=>{"use strict";var BC=Object.create,Pf=Object.defineProperty,FC=Object.getOwnPropertyDescriptor,kC=Object.getOwnPropertyNames,LC=Object.getPrototypeOf,$C=Object.prototype.hasOwnProperty,UC=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),HC=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of kC(t))!$C.call(e,o)&&o!==r&&Pf(e,o,{get:()=>t[o],enumerable:!(_R=FC(t,o))||_R.enumerable});return e},zC=(e,t,r)=>(r=e!=null?BC(LC(e)):{},HC(t||!e||!e.__esModule?Pf(r,"default",{value:e,enumerable:!0}):r,e)),VC=UC(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,_R=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,i){return function s(l,u,d){var c,p,h,m=t.call(l),g=t.call(u);if(l===u)return!0;if(l==null||u==null)return!1;if(d.indexOf(l)>-1&&d.indexOf(u)>-1)return!0;if(d.push(l,u),m!=g||(c=_R(l),p=_R(u),c.length!=p.length||c.some(function(y){return!s(l[y],u[y],d)})))return!1;switch(m.slice(8,-1)){case"Symbol":return l.valueOf()==u.valueOf();case"Date":case"Number":return+l==+u||+l!=+l&&+u!=+u;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+u;case"Set":case"Map":c=l.entries(),p=u.entries();do if(!s((h=c.next()).value,p.next().value,d))return!1;while(!h.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),u=new Uint8Array(u);case"DataView":l=new Uint8Array(l.buffer),u=new Uint8Array(u.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=u.length)return!1;for(h=0;h<l.length;h++)if((h in l||h in u)&&(h in l!=h in u||!s(l[h],u[h],d)))return!1;return!0;case"Object":return s(r(l),r(u),d);default:return!1}}(o,i,[])}}()});function GC(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\_R])([A-Z])([a-z])/g,(t,r,_R,o)=>`${r} ${_R}${o}`).replace(/([a-z])([A-Z])/g,(t,r,_R)=>`${r} ${_R}`).replace(/([a-z])([0-9])/gi,(t,r,_R)=>`${r} ${_R}`).replace(/([0-9])([a-z])/gi,(t,r,_R)=>`${r} ${_R}`).replace(/(\s|^)(\w)/g,(t,r,_R)=>`${r}${_R.toUpperCase()}`).replace(/ +/g," ").trim()}var Rf=zC(VC()),Nf=e=>e.map(t=>typeof t<"u").filter(Boolean).length,WC=(e,t)=>{let{exists:r,eq:_R,neq:o,truthy:i}=e;if(Nf([r,_R,o,i])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:_R,neq:o})}`);if(typeof _R<"u")return(0,Rf.isEqual)(t,_R);if(typeof o<"u")return!(0,Rf.isEqual)(t,o);if(typeof r<"u"){let s=typeof t<"u";return r?s:!s}return typeof i>"u"||i?!!t:!t},YC=(e,t,r)=>{if(!e.if)return!0;let{arg:_R,global:o}=e.if;if(Nf([_R,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:_R,global:o})}`);let i=_R?t[_R]:r[o];return WC(e.if,i)},Mf=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),xf=(e,t)=>{let r=Mf(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},KC=(e,t)=>`${xf(e,"kind")}${t?`--${xf(t,"name")}`:""}`,JC=e=>GC(e);function Of(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}function XC(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||Of(e,t))&&(!r||!Of(e,r))}var QC=(e,{rootSeparator:t,groupSeparator:r})=>{let[_R,o]=e.split(t,2),i=(o||e).split(r).filter(s=>!!s);return{root:o?_R:null,groups:i}},ZC=(...e)=>{let t=e.reduce((r,_R)=>(_R.startsWith("!")?r.delete(_R.slice(1)):r.add(_R),r),new Set);return Array.from(t)};en.combineTags=ZC;en.includeConditionalArg=YC;en.isExportStory=XC;en.parseKind=QC;en.sanitize=Mf;en.storyNameFromExport=JC;en.toId=KC});var sm=or((cH,am)=>{"use strict";var eA=Object.create,qi=Object.defineProperty,tA=Object.getOwnPropertyDescriptor,rA=Object.getOwnPropertyNames,nA=Object.getPrototypeOf,oA=Object.prototype.hasOwnProperty,P=(e,t)=>qi(e,"name",{value:t,configurable:!0}),At=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),iA=(e,t)=>{for(var r in t)qi(e,r,{get:t[r],enumerable:!0})},eh=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of rA(t))!oA.call(e,o)&&o!==r&&qi(e,o,{get:()=>t[o],enumerable:!(_R=tA(t,o))||_R.enumerable});return e},dt=(e,t,r)=>(r=e!=null?eA(nA(e)):{},eh(t||!e||!e.__esModule?qi(r,"default",{value:e,enumerable:!0}):r,e)),aA=e=>eh(qi({},"__esModule",{value:!0}),e),Ar=At((e,t)=>{"use strict";var r=Object.defineProperty,_R=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s=P((p,h)=>{for(var m in h)r(p,m,{get:h[m],enumerable:!0})},"__export"),l=P((p,h,m,g)=>{if(h&&typeof h=="object"||typeof h=="function")for(let y of o(h))!i.call(p,y)&&y!==m&&r(p,y,{get:P(()=>h[y],"get"),enumerable:!(g=_R(h,y))||g.enumerable});return p},"__copyProps"),u=P(p=>l(r({},"__esModule",{value:!0}),p),"__toCommonJS"),d={};s(d,{global:P(()=>c,"global")}),t.exports=u(d);var c=(()=>{let p;return typeof window<"u"?p=window:typeof globalThis<"u"?p=globalThis:typeof global<"u"?p=global:typeof self<"u"?p=self:p={},p})()}),sA=At((e,t)=>{function r(){return this.list=[],this.lastItem=void 0,this.size=0,this}P(r,"Similar"),r.prototype.get=function(_R){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,_R))return this.lastItem.val;if(o=this.indexOf(_R),o>=0)return this.lastItem=this.list[o],this.list[o].val},r.prototype.set=function(_R,o){var i;return this.lastItem&&this.isEqual(this.lastItem.key,_R)?(this.lastItem.val=o,this):(i=this.indexOf(_R),i>=0?(this.lastItem=this.list[i],this.list[i].val=o,this):(this.lastItem={key:_R,val:o},this.list.push(this.lastItem),this.size++,this))},r.prototype.delete=function(_R){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,_R)&&(this.lastItem=void 0),o=this.indexOf(_R),o>=0)return this.size--,this.list.splice(o,1)[0]},r.prototype.has=function(_R){var o;return this.lastItem&&this.isEqual(this.lastItem.key,_R)?!0:(o=this.indexOf(_R),o>=0?(this.lastItem=this.list[o],!0):!1)},r.prototype.forEach=function(_R,o){var i;for(i=0;i<this.size;i++)_R.call(o||this,this.list[i].val,this.list[i].key,this)},r.prototype.indexOf=function(_R){var o;for(o=0;o<this.size;o++)if(this.isEqual(this.list[o].key,_R))return o;return-1},r.prototype.isEqual=function(_R,o){return _R===o||_R!==_R&&o!==o},t.exports=r}),lA=At((e,t)=>{t.exports=function(r){if(typeof Map!="function"||r){var _R=sA();return new _R}else return new Map}}),th=At((e,t)=>{var r=lA();t.exports=function(s){var l=new r(process.env.FORCE_SIMILAR_INSTEAD_OF_MAP==="true"),u=[];return function(d){var c=P(function(){var p=l,h,m,g=arguments.length-1,y=Array(g+1),b=!0,E;if((c.numArgs||c.numArgs===0)&&c.numArgs!==g+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(E=0;E<g;E++){if(y[E]={cacheItem:p,arg:arguments[E]},p.has(arguments[E])){p=p.get(arguments[E]);continue}b=!1,h=new r(process.env.FORCE_SIMILAR_INSTEAD_OF_MAP==="true"),p.set(arguments[E],h),p=h}return b&&(p.has(arguments[g])?m=p.get(arguments[g]):b=!1),b||(m=d.apply(null,arguments),p.set(arguments[g],m)),s>0&&(y[g]={cacheItem:p,arg:arguments[g]},b?_R(u,y):u.push(y),u.length>s&&o(u.shift())),c.wasMemoized=b,c.numArgs=g+1,m},"memoizerific");return c.limit=s,c.wasMemoized=!1,c.cache=l,c.lru=u,c}};function _R(s,l){var u=s.length,d=l.length,c,p,h;for(p=0;p<u;p++){for(c=!0,h=0;h<d;h++)if(!i(s[p][h].arg,l[h].arg)){c=!1;break}if(c)break}s.push(s.splice(p,1)[0])}P(_R,"moveToMostRecentLru");function o(s){var l=s.length,u=s[l-1],d,c;for(u.cacheItem.delete(u.arg),c=l-2;c>=0&&(u=s[c],d=u.cacheItem.get(u.arg),!d||!d.size);c--)u.cacheItem.delete(u.arg)}P(o,"removeCachedResult");function i(s,l){return s===l||s!==s&&l!==l}P(i,"isEqual")}),Tr=At(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dedent=void 0;function t(r){for(var _R=[],o=1;o<arguments.length;o++)_R[o-1]=arguments[o];var i=Array.from(typeof r=="string"?[r]:r);i[i.length-1]=i[i.length-1].replace(/\r?\_R([\t ]*)$/,"");var s=i.reduce(function(d,c){var p=c.match(/\_R([\t ]+|(?!\s).)/g);return p?d.concat(p.map(function(h){var m,g;return(g=(m=h.match(/[\t ]/g))===null||m===void 0?void 0:m.length)!==null&&g!==void 0?g:0})):d},[]);if(s.length){var l=new RegExp(`
137
137
  [ ]{`+Math.min.apply(Math,s)+"}","g");i=i.map(function(d){return d.replace(l,`
138
138
  `)})}i[0]=i[0].replace(/^\r?\_R/,"");var u=i[0];return _R.forEach(function(d,c){var p=u.match(/(?:^|\_R)( *)$/),h=p?p[1]:"",m=d;typeof d=="string"&&d.includes(`
139
139
  `)&&(m=String(d).split(`
140
140
  `).map(function(g,y){return y===0?g:""+h+g}).join(`
141
141
  `)),u+=m+i[c+1]}),u}P(t,"dedent"),e.dedent=t,e.default=t}),rh=At(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=_R;var t=Array.from({length:256},(o,i)=>"%"+((i<16?"0":"")+i.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function _R(o){let i=o.length;if(i===0)return"";let s="",l=0,u=0;e:for(;u<i;u++){let d=o.charCodeAt(u);for(;d<128;){if(r[d]!==1&&(l<u&&(s+=o.slice(l,u)),l=u+1,s+=t[d]),++u===i)break e;d=o.charCodeAt(u)}if(l<u&&(s+=o.slice(l,u)),d<2048){l=u+1,s+=t[192|d>>6]+t[128|d&63];continue}if(d<55296||d>=57344){l=u+1,s+=t[224|d>>12]+t[128|d>>6&63]+t[128|d&63];continue}if(++u,u>=i)throw new Error("URI malformed");let c=o.charCodeAt(u)&1023;l=u+1,d=65536+((d&1023)<<10|c),s+=t[240|d>>18]+t[128|d>>12&63]+t[128|d>>6&63]+t[128|d&63]}return l===0?o:l<i?s+o.slice(l):s}P(_R,"encodeString")}),eu=At(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=rh(),r=P(i=>{switch(typeof i){case"string":return(0,t.encodeString)(i);case"bigint":case"boolean":return""+i;case"number":if(Number.isFinite(i))return i<1e21?""+i:(0,t.encodeString)(""+i);break}return i instanceof Date?(0,t.encodeString)(i.toISOString()):""},"defaultValueSerializer");e.defaultValueSerializer=r;var _R=P(i=>i instanceof Date,"defaultShouldSerializeObject");e.defaultShouldSerializeObject=_R;var o=P(i=>i,"identityFunc");e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}),nh=At(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=c;var t=eu(),r=rh();function _R(p){return p==="__proto__"||p==="constructor"||p==="prototype"}P(_R,"isPrototypeKey");function o(p,h,m,g,y){if(_R(h))return p;let b=p[h];return typeof b=="object"&&b!==null?b:!g&&(y||typeof m=="number"||typeof m=="string"&&m*0===0&&m.indexOf(".")===-1)?p[h]=[]:p[h]={}}P(o,"getDeepObject");var i=20,s="[]",l="[",u="]",d=".";function c(p,h,m=0,g,y){let{nestingSyntax:b=t.defaultOptions.nestingSyntax,arrayRepeat:E=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:_=t.defaultOptions.arrayRepeatSyntax,nesting:O=t.defaultOptions.nesting,delimiter:C=t.defaultOptions.delimiter,valueSerializer:w=t.defaultOptions.valueSerializer,shouldSerializeObject:S=t.defaultOptions.shouldSerializeObject}=h,T=typeof C=="number"?String.fromCharCode(C):C,A=y===!0&&E,N=b==="dot"||b==="js"&&!y;if(m>i)return"";let U="",X=!0,V=!1;for(let J in p){let x=p[J],B;g?(B=g,A?_==="bracket"&&(B+=s):N?(B+=d,B+=J):(B+=l,B+=J,B+=u)):B=J,X||(U+=T),typeof x=="object"&&x!==null&&!S(x)?(V=x.pop!==void 0,(O||E&&V)&&(U+=c(x,h,m+1,B,V))):(U+=(0,r.encodeString)(B),U+="=",U+=w(x,J)),X&&(X=!1)}return U}P(c,"stringifyObject")}),uA=At((e,t)=>{"use strict";var r=12,_R=0,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function i(u){var d=u.indexOf("%");if(d===-1)return u;for(var c=u.length,p="",h=0,m=0,g=d,y=r;d>-1&&d<c;){var b=l(u[d+1],4),E=l(u[d+2],0),_=b|E,O=o[_];if(y=o[256+y+O],m=m<<6|_&o[364+O],y===r)p+=u.slice(h,g),p+=m<=65535?String.fromCharCode(m):String.fromCharCode(55232+(m>>10),56320+(m&1023)),m=0,h=d+3,d=g=u.indexOf("%",h);else{if(y===_R)return null;if(d+=3,d<c&&u.charCodeAt(d)===37)continue;return null}}return p+u.slice(h)}P(i,"decodeURIComponent");var s={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function l(u,d){var c=s[u];return c===void 0?255:c<<d}P(l,"hexCodeToInt"),t.exports=i}),cA=At(e=>{"use strict";var t=e&&e.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=c;var r=nh(),_R=eu(),o=t(uA()),i=P(p=>{let h=Number(p);return Number.isNaN(h)?p:h},"numberKeyDeserializer");e.numberKeyDeserializer=i;var s=P(p=>{let h=Number(p);return Number.isNaN(h)?p:h},"numberValueDeserializer");e.numberValueDeserializer=s;var l=/\+/g,u=P(function(){},"Empty");u.prototype=Object.create(null);function d(p,h,m,g,y){let b=p.substring(h,m);return g&&(b=b.replace(l," ")),y&&(b=(0,o.default)(b)||b),b}P(d,"computeKeySlice");function c(p,h){let{valueDeserializer:m=_R.defaultOptions.valueDeserializer,keyDeserializer:g=_R.defaultOptions.keyDeserializer,arrayRepeatSyntax:y=_R.defaultOptions.arrayRepeatSyntax,nesting:b=_R.defaultOptions.nesting,arrayRepeat:E=_R.defaultOptions.arrayRepeat,nestingSyntax:_=_R.defaultOptions.nestingSyntax,delimiter:O=_R.defaultOptions.delimiter}=h!=null?h:{},C=typeof O=="string"?O.charCodeAt(0):O,w=_==="js",S=new u;if(typeof p!="string")return S;let T=p.length,A="",N=-1,U=-1,X=-1,V=S,J,x="",B="",K=!1,fe=!1,ce=!1,Se=!1,De=!1,Oe=!1,le=!1,se=0,de=-1,we=-1,Pe=-1;for(let Ne=0;Ne<T+1;Ne++){if(se=Ne!==T?p.charCodeAt(Ne):C,se===C){if(le=U>N,le||(U=Ne),X!==U-1&&(B=d(p,X+1,de>-1?de:U,ce,K),x=g(B),J!==void 0&&(V=(0,r.getDeepObject)(V,J,x,w&&De,w&&Oe))),le||x!==""){le&&(A=p.slice(U+1,Ne),Se&&(A=A.replace(l," ")),fe&&(A=(0,o.default)(A)||A));let Ge=m(A,x);if(E){let Tt=V[x];Tt===void 0?de>-1?V[x]=[Ge]:V[x]=Ge:Tt.pop?Tt.push(Ge):V[x]=[Tt,Ge]}else V[x]=Ge}A="",N=Ne,U=Ne,K=!1,fe=!1,ce=!1,Se=!1,De=!1,Oe=!1,de=-1,X=Ne,V=S,J=void 0,x=""}else se===93?(E&&y==="bracket"&&Pe===91&&(de=we),b&&(_==="index"||w)&&U<=N&&(X!==we&&(B=d(p,X+1,Ne,ce,K),x=g(B),J!==void 0&&(V=(0,r.getDeepObject)(V,J,x,void 0,w)),J=x,ce=!1,K=!1),X=Ne,Oe=!0,De=!1)):se===46?b&&(_==="dot"||w)&&U<=N&&(X!==we&&(B=d(p,X+1,Ne,ce,K),x=g(B),J!==void 0&&(V=(0,r.getDeepObject)(V,J,x,w)),J=x,ce=!1,K=!1),De=!0,Oe=!1,X=Ne):se===91?b&&(_==="index"||w)&&U<=N&&(X!==we&&(B=d(p,X+1,Ne,ce,K),x=g(B),w&&J!==void 0&&(V=(0,r.getDeepObject)(V,J,x,w)),J=x,ce=!1,K=!1,De=!1,Oe=!0),X=Ne):se===61?U<=N?U=Ne:fe=!0:se===43?U>N?Se=!0:ce=!0:se===37&&(U>N?fe=!0:K=!0);we=Ne,Pe=se}return S}P(c,"parse")}),dA=At(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=nh();function r(_R,o){if(_R===null||typeof _R!="object")return"";let i=o!=null?o:{};return(0,t.stringifyObject)(_R,i)}P(r,"stringify")}),tu=At(e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(i,s,l,u){u===void 0&&(u=l);var d=Object.getOwnPropertyDescriptor(s,l);(!d||("get"in d?!s.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:P(function(){return s[l]},"get")}),Object.defineProperty(i,u,d)}:function(i,s,l,u){u===void 0&&(u=l),i[u]=s[l]}),r=e&&e.__exportStar||function(i,s){for(var l in i)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&t(s,i,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var _R=cA();Object.defineProperty(e,"parse",{enumerable:!0,get:P(function(){return _R.parse},"get")});var o=dA();Object.defineProperty(e,"stringify",{enumerable:!0,get:P(function(){return o.stringify},"get")}),r(eu(),e)}),oh=At((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",Ma:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
142
142
  `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}),pA=At((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}),ih=At((e,t)=>{t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}),fA=At((e,t)=>{t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}),hA=At(e=>{"use strict";var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(fA()),_R=String.fromCodePoint||function(i){var s="";return i>65535&&(i-=65536,s+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),s+=String.fromCharCode(i),s};function o(i){return i>=55296&&i<=57343||i>1114111?"\uFFFD":(i in r.default&&(i=r.default[i]),_R(i))}P(o,"decodeCodePoint"),e.default=o}),If=At(e=>{"use strict";var t=e&&e.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(oh()),_R=t(pA()),o=t(ih()),i=t(hA()),s=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=l(o.default),e.decodeHTMLStrict=l(r.default);function l(c){var p=d(c);return function(h){return String(h).replace(s,p)}}P(l,"getStrictDecoder");var u=P(function(c,p){return c<p?1:-1},"sorter");e.decodeHTML=function(){for(var c=Object.keys(_R.default).sort(u),p=Object.keys(r.default).sort(u),h=0,m=0;h<p.length;h++)c[m]===p[h]?(p[h]+=";?",m++):p[h]+=";";var g=new RegExp("&(?:"+p.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),y=d(r.default);function b(E){return E.substr(-1)!==";"&&(E+=";"),y(E)}return P(b,"replacer"),function(E){return String(E).replace(g,b)}}();function d(c){return P(function(p){if(p.charAt(1)==="#"){var h=p.charAt(2);return h==="X"||h==="x"?i.default(parseInt(p.substr(3),16)):i.default(parseInt(p.substr(2),10))}return c[p.slice(1,-1)]||p},"replace")}P(d,"getReplacer")}),Df=At(e=>{"use strict";var t=e&&e.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(ih()),_R=u(r.default),o=d(_R);e.encodeXML=E(_R);var i=t(oh()),s=u(i.default),l=d(s);e.encodeHTML=m(s,l),e.encodeNonAsciiHTML=E(s);function u(_){return Object.keys(_).sort().reduce(function(O,C){return O[_[C]]="&"+C+";",O},{})}P(u,"getInverseObj");function d(_){for(var O=[],C=[],w=0,S=Object.keys(_);w<S.length;w++){var T=S[w];T.length===1?O.push("\\"+T):C.push(T)}O.sort();for(var A=0;A<O.length-1;A++){for(var N=A;N<O.length-1&&O[N].charCodeAt(1)+1===O[N+1].charCodeAt(1);)N+=1;var U=1+N-A;U<3||O.splice(A,U,O[A]+"-"+O[N])}return C.unshift("["+O.join("")+"]"),new RegExp(C.join("|"),"g")}P(d,"getInverseReplacer");var c=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,p=String.prototype.codePointAt!=null?function(_){return _.codePointAt(0)}:function(_){return(_.charCodeAt(0)-55296)*1024+_.charCodeAt(1)-56320+65536};function h(_){return"&#x"+(_.length>1?p(_):_.charCodeAt(0)).toString(16).toUpperCase()+";"}P(h,"singleCharReplacer");function m(_,O){return function(C){return C.replace(O,function(w){return _[w]}).replace(c,h)}}P(m,"getInverse");var g=new RegExp(o.source+"|"+c.source,"g");function y(_){return _.replace(g,h)}P(y,"escape"),e.escape=y;function b(_){return _.replace(o,h)}P(b,"escapeUTF8"),e.escapeUTF8=b;function E(_){return function(O){return O.replace(g,function(C){return _[C]||h(C)})}}P(E,"getASCIIEncoder")}),mA=At(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=If(),r=Df();function _R(u,d){return(!d||d<=0?t.decodeXML:t.decodeHTML)(u)}P(_R,"decode"),e.decode=_R;function o(u,d){return(!d||d<=0?t.decodeXML:t.decodeHTMLStrict)(u)}P(o,"decodeStrict"),e.decodeStrict=o;function i(u,d){return(!d||d<=0?r.encodeXML:r.encodeHTML)(u)}P(i,"encode"),e.encode=i;var s=Df();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:P(function(){return s.encodeXML},"get")}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:P(function(){return s.encodeHTML},"get")}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:P(function(){return s.encodeNonAsciiHTML},"get")}),Object.defineProperty(e,"escape",{enumerable:!0,get:P(function(){return s.escape},"get")}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:P(function(){return s.escapeUTF8},"get")}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:P(function(){return s.encodeHTML},"get")}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:P(function(){return s.encodeHTML},"get")});var l=If();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:P(function(){return l.decodeXML},"get")}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:P(function(){return l.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:P(function(){return l.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:P(function(){return l.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:P(function(){return l.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:P(function(){return l.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:P(function(){return l.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:P(function(){return l.decodeXML},"get")})}),gA=At((e,t)=>{"use strict";function r(x,B){if(!(x instanceof B))throw new TypeError("Cannot call a class as a function")}P(r,"_classCallCheck");function _R(x,B){for(var K=0;K<B.length;K++){var fe=B[K];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(x,fe.key,fe)}}P(_R,"_defineProperties");function o(x,B,K){return B&&_R(x.prototype,B),K&&_R(x,K),x}P(o,"_createClass");function i(x,B){var K=typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(!K){if(Array.isArray(x)||(K=s(x))||B&&x&&typeof x.length=="number"){K&&(x=K);var fe=0,ce=P(function(){},"F");return{s:ce,_R:P(function(){return fe>=x.length?{done:!0}:{done:!1,value:x[fe++]}},"_R"),e:P(function(le){throw le},"e"),f:ce}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
143
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Se=!0,De=!1,Oe;return{s:P(function(){K=K.call(x)},"s"),_R:P(function(){var le=K.next();return Se=le.done,le},"_R"),e:P(function(le){De=!0,Oe=le},"e"),f:P(function(){try{!Se&&K.return!=null&&K.return()}finally{if(De)throw Oe}},"f")}}P(i,"_createForOfIteratorHelper");function s(x,B){if(x){if(typeof x=="string")return l(x,B);var K=Object.prototype.toString.call(x).slice(8,-1);if(K==="Object"&&x.constructor&&(K=x.constructor.name),K==="Map"||K==="Set")return Array.from(x);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return l(x,B)}}P(s,"_unsupportedIterableToArray");function l(x,B){(B==null||B>x.length)&&(B=x.length);for(var K=0,fe=new Array(B);K<B;K++)fe[K]=x[K];return fe}P(l,"_arrayLikeToArray");var u=mA(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:c()};function c(){var x={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return _(0,5).forEach(function(B){_(0,5).forEach(function(K){_(0,5).forEach(function(fe){return p(B,K,fe,x)})})}),_(0,23).forEach(function(B){var K=B+232,fe=h(B*10+8);x[K]="#"+fe+fe+fe}),x}P(c,"getDefaultColors");function p(x,B,K,fe){var ce=16+x*36+B*6+K,Se=x>0?x*40+55:0,De=B>0?B*40+55:0,Oe=K>0?K*40+55:0;fe[ce]=m([Se,De,Oe])}P(p,"setStyleColor");function h(x){for(var B=x.toString(16);B.length<2;)B="0"+B;return B}P(h,"toHexString");function m(x){var B=[],K=i(x),fe;try{for(K.s();!(fe=K._R()).done;){var ce=fe.value;B.push(h(ce))}}catch(Se){K.e(Se)}finally{K.f()}return"#"+B.join("")}P(m,"toColorHexString");function g(x,B,K,fe){var ce;return B==="text"?ce=w(K,fe):B==="display"?ce=b(x,K,fe):B==="xterm256Foreground"?ce=A(x,fe.colors[K]):B==="xterm256Background"?ce=N(x,fe.colors[K]):B==="rgb"&&(ce=y(x,K)),ce}P(g,"generateOutput");function y(x,B){B=B.substring(2).slice(0,-1);var K=+B.substr(0,2),fe=B.substring(5).split(";"),ce=fe.map(function(Se){return("0"+Number(Se).toString(16)).substr(-2)}).join("");return T(x,(K===38?"color:#":"background-color:#")+ce)}P(y,"handleRgb");function b(x,B,K){B=parseInt(B,10);var fe={"-1":P(function(){return"<br/>"},"_"),0:P(function(){return x.length&&E(x)},"_"),1:P(function(){return S(x,"b")},"_"),3:P(function(){return S(x,"i")},"_"),4:P(function(){return S(x,"u")},"_"),8:P(function(){return T(x,"display:none")},"_"),9:P(function(){return S(x,"strike")},"_"),22:P(function(){return T(x,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:P(function(){return U(x,"i")},"_"),24:P(function(){return U(x,"u")},"_"),39:P(function(){return A(x,K.fg)},"_"),49:P(function(){return N(x,K.bg)},"_"),53:P(function(){return T(x,"text-decoration:overline")},"_")},ce;return fe[B]?ce=fe[B]():4<B&&B<7?ce=S(x,"blink"):29<B&&B<38?ce=A(x,K.colors[B-30]):39<B&&B<48?ce=N(x,K.colors[B-40]):89<B&&B<98?ce=A(x,K.colors[8+(B-90)]):99<B&&B<108&&(ce=N(x,K.colors[8+(B-100)])),ce}P(b,"handleDisplay");function E(x){var B=x.slice(0);return x.length=0,B.reverse().map(function(K){return"</"+K+">"}).join("")}P(E,"resetStyles");function _(x,B){for(var K=[],fe=x;fe<=B;fe++)K.push(fe);return K}P(_,"range");function O(x){return function(B){return(x===null||B.category!==x)&&x!=="all"}}P(O,"notCategory");function C(x){x=parseInt(x,10);var B=null;return x===0?B="all":x===1?B="bold":2<x&&x<5?B="underline":4<x&&x<7?B="blink":x===8?B="hide":x===9?B="strike":29<x&&x<38||x===39||89<x&&x<98?B="foreground-color":(39<x&&x<48||x===49||99<x&&x<108)&&(B="background-color"),B}P(C,"categoryForCode");function w(x,B){return B.escapeXML?u.encodeXML(x):x}P(w,"pushText");function S(x,B,K){return K||(K=""),x.push(B),"<".concat(B).concat(K?' style="'.concat(K,'"'):"",">")}P(S,"pushTag");function T(x,B){return S(x,"span",B)}P(T,"pushStyle");function A(x,B){return S(x,"span","color:"+B)}P(A,"pushForegroundColor");function N(x,B){return S(x,"span","background-color:"+B)}P(N,"pushBackgroundColor");function U(x,B){var K;if(x.slice(-1)[0]===B&&(K=x.pop()),K)return"</"+B+">"}P(U,"closeTag");function X(x,B,K){var fe=!1,ce=3;function Se(){return""}P(Se,"remove");function De(ye,Fe){return K("xterm256Foreground",Fe),""}P(De,"removeXterm256Foreground");function Oe(ye,Fe){return K("xterm256Background",Fe),""}P(Oe,"removeXterm256Background");function le(ye){return B.newline?K("display",-1):K("text",ye),""}P(le,"newline");function se(ye,Fe){fe=!0,Fe.trim().length===0&&(Fe="0"),Fe=Fe.trimRight(";").split(";");var nt=i(Fe),Wt;try{for(nt.s();!(Wt=nt._R()).done;){var yl=Wt.value;K("display",yl)}}catch(bl){nt.e(bl)}finally{nt.f()}return""}P(se,"ansiMess");function de(ye){return K("text",ye),""}P(de,"realText");function we(ye){return K("rgb",ye),""}P(we,"rgb");var Pe=[{pattern:/^\x08+/,sub:Se},{pattern:/^\x1b\[[012]?K/,sub:Se},{pattern:/^\x1b\[\(B/,sub:Se},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:we},{pattern:/^\x1b\[38;5;(\d+)m/,sub:De},{pattern:/^\x1b\[48;5;(\d+)m/,sub:Oe},{pattern:/^\_R/,sub:le},{pattern:/^\r+\_R/,sub:le},{pattern:/^\r/,sub:le},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:se},{pattern:/^\x1b\[\d?J/,sub:Se},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:Se},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:Se},{pattern:/^(([^\x1b\x08\r\_R])+)/,sub:de}];function Ne(ye,Fe){Fe>ce&&fe||(fe=!1,x=x.replace(ye.pattern,ye.sub))}P(Ne,"process");var Ge=[],Tt=x,Y=Tt.length;e:for(;Y>0;){for(var Re=0,qe=0,ze=Pe.length;qe<ze;Re=++qe){var ae=Pe[Re];if(Ne(ae,Re),x.length!==Y){Y=x.length;continue e}}if(x.length===Y)break;Ge.push(0),Y=x.length}return Ge}P(X,"tokenize");function V(x,B,K){return B!=="text"&&(x=x.filter(O(C(K))),x.push({token:B,data:K,category:C(K)})),x}P(V,"updateStickyStack");var J=function(){function x(B){r(this,x),B=B||{},B.colors&&(B.colors=Object.assign({},d.colors,B.colors)),this.options=Object.assign({},d,B),this.stack=[],this.stickyStack=[]}return P(x,"Filter"),o(x,[{key:"toHtml",value:P(function(B){var K=this;B=typeof B=="string"?[B]:B;var fe=this.stack,ce=this.options,Se=[];return this.stickyStack.forEach(function(De){var Oe=g(fe,De.token,De.data,ce);Oe&&Se.push(Oe)}),X(B.join(""),ce,function(De,Oe){var le=g(fe,De,Oe,ce);le&&Se.push(le),ce.stream&&(K.stickyStack=V(K.stickyStack,De,Oe))}),fe.length&&Se.push(E(fe)),Se.join("")},"toHtml")}]),x}();t.exports=J}),ah={};iA(ah,{DocsContext:()=>vu,HooksContext:()=>nu,Preview:()=>Hh,PreviewWeb:()=>iR,PreviewWithSelection:()=>Kh,StoryStore:()=>Lh,UrlStore:()=>tm,WebView:()=>nm,addons:()=>nn,applyHooks:()=>lh,combineArgs:()=>Ua,combineParameters:()=>on,composeConfigs:()=>Ho,composeStepRunners:()=>yu,composeStories:()=>Bh,composeStory:()=>bu,createPlaywrightTest:()=>Fh,decorateStory:()=>cu,defaultDecorateStory:()=>pu,filterArgTypes:()=>Ih,inferControls:()=>gu,makeDecorator:()=>_A,mockChannel:()=>ru,normalizeStory:()=>Ya,prepareMeta:()=>fu,prepareStory:()=>Ka,sanitizeStoryContextUpdate:()=>du,setDefaultProjectAnnotations:()=>Dh,setProjectAnnotations:()=>jh,simulateDOMContentLoaded:()=>Ga,simulatePageLoad:()=>im,sortStoriesV7:()=>DT,useArgs:()=>yh,useCallback:()=>$o,useChannel:()=>mh,useEffect:()=>lu,useGlobals:()=>bh,useMemo:()=>ch,useParameter:()=>gh,useReducer:()=>hh,useRef:()=>dh,useState:()=>fh,useStoryContext:()=>Bi,userOrAutoTitle:()=>PT,userOrAutoTitleFromSpecifier:()=>Uh});am.exports=aA(ah);var Ml=dt(Ar(),1),yA=wf();function ru(){let e={setHandler:P(()=>{},"setHandler"),send:P(()=>{},"send")};return new yA.Channel({transport:e})}P(ru,"mockChannel");var Ao,bA=(Ao=class{constructor(){this.getChannel=P(()=>{if(!this.channel){let t=ru();return this.setChannel(t),t}return this.channel},"getChannel"),this.ready=P(()=>this.promise,"ready"),this.hasChannel=P(()=>!!this.channel,"hasChannel"),this.setChannel=P(t=>{this.channel=t,this.resolve()},"setChannel"),this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}},P(Ao,"AddonStore"),Ao),Il="__STORYBOOK_ADDONS_PREVIEW";function sh(){return Ml.global[Il]||(Ml.global[Il]=new bA),Ml.global[Il]}P(sh,"getAddonsStore");var nn=sh(),Fa=dt(Ar(),1),Mi=Pt(),Lo=wr(),To,nu=(To=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=P(t=>{var r;t===((r=this.currentContext)==null?void 0:r.id)&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener"),this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),nn.getChannel().on(Lo.STORY_RENDERED,this.renderListener)}removeRenderListeners(){nn.getChannel().removeListener(Lo.STORY_RENDERED,this.renderListener)}},P(To,"HooksContext"),To);function Ul(e){let t=P((...r)=>{let{hooks:_R}=typeof r[0]=="function"?r[1]:r[0],o=_R.currentPhase,i=_R.currentHooks,s=_R.nextHookIndex,l=_R.currentDecoratorName;_R.currentDecoratorName=e.name,_R.prevMountedDecorators.has(e)?(_R.currentPhase="UPDATE",_R.currentHooks=_R.hookListsMap.get(e)||[]):(_R.currentPhase="MOUNT",_R.currentHooks=[],_R.hookListsMap.set(e,_R.currentHooks),_R.prevMountedDecorators.add(e)),_R.nextHookIndex=0;let u=Fa.global.STORYBOOK_HOOKS_CONTEXT;Fa.global.STORYBOOK_HOOKS_CONTEXT=_R;let d=e(...r);if(Fa.global.STORYBOOK_HOOKS_CONTEXT=u,_R.currentPhase==="UPDATE"&&_R.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return _R.currentPhase=o,_R.currentHooks=i,_R.nextHookIndex=s,_R.currentDecoratorName=l,d},"hookified");return t.originalFn=e,t}P(Ul,"hookify");var Dl=0,vA=25,lh=P(e=>(t,r)=>{let _R=e(Ul(t),r.map(o=>Ul(o)));return o=>{var l;let{hooks:i}=o;(l=i.prevMountedDecorators)!=null||(i.prevMountedDecorators=new Set),i.mountedDecorators=new Set([t,...r]),i.currentContext=o,i.hasUpdates=!1;let s=_R(o);for(Dl=1;i.hasUpdates;)if(i.hasUpdates=!1,i.currentEffects=[],s=_R(o),Dl+=1,Dl>vA)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return i.addRenderListeners(),s}},"applyHooks"),EA=P((e,t)=>e.length===t.length&&e.every((r,_R)=>r===t[_R]),"areDepsEqual"),ou=P(()=>new Error("Storybook preview hooks can only be called inside decorators and story functions."),"invalidHooksError");function iu(){return Fa.global.STORYBOOK_HOOKS_CONTEXT||null}P(iu,"getHooksContextOrNull");function Wa(){let e=iu();if(e==null)throw ou();return e}P(Wa,"getHooksContextOrThrow");function uh(e,t,r){let _R=Wa();if(_R.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&Mi.logger.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let o={name:e,deps:r};return _R.currentHooks.push(o),t(o),o}if(_R.currentPhase==="UPDATE"){let o=_R.getNextHook();if(o==null)throw new Error("Rendered more hooks than during the previous render.");return o.name!==e&&Mi.logger.warn(`Storybook has detected a change in the order of Hooks${_R.currentDecoratorName?` called by ${_R.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&o.deps==null&&Mi.logger.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&o.deps!=null&&r.length!==o.deps.length&&Mi.logger.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
143
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Se=!0,De=!1,Oe;return{s:P(function(){K=K.call(x)},"s"),_R:P(function(){var le=K.next();return Se=le.done,le},"_R"),e:P(function(le){De=!0,Oe=le},"e"),f:P(function(){try{!Se&&K.return!=null&&K.return()}finally{if(De)throw Oe}},"f")}}P(i,"_createForOfIteratorHelper");function s(x,B){if(x){if(typeof x=="string")return l(x,B);var K=Object.prototype.toString.call(x).slice(8,-1);if(K==="Object"&&x.constructor&&(K=x.constructor.name),K==="Map"||K==="Set")return Array.from(x);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return l(x,B)}}P(s,"_unsupportedIterableToArray");function l(x,B){(B==null||B>x.length)&&(B=x.length);for(var K=0,fe=new Array(B);K<B;K++)fe[K]=x[K];return fe}P(l,"_arrayLikeToArray");var u=mA(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:c()};function c(){var x={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return _(0,5).forEach(function(B){_(0,5).forEach(function(K){_(0,5).forEach(function(fe){return p(B,K,fe,x)})})}),_(0,23).forEach(function(B){var K=B+232,fe=h(B*10+8);x[K]="#"+fe+fe+fe}),x}P(c,"getDefaultColors");function p(x,B,K,fe){var ce=16+x*36+B*6+K,Se=x>0?x*40+55:0,De=B>0?B*40+55:0,Oe=K>0?K*40+55:0;fe[ce]=m([Se,De,Oe])}P(p,"setStyleColor");function h(x){for(var B=x.toString(16);B.length<2;)B="0"+B;return B}P(h,"toHexString");function m(x){var B=[],K=i(x),fe;try{for(K.s();!(fe=K._R()).done;){var ce=fe.value;B.push(h(ce))}}catch(Se){K.e(Se)}finally{K.f()}return"#"+B.join("")}P(m,"toColorHexString");function g(x,B,K,fe){var ce;return B==="text"?ce=w(K,fe):B==="display"?ce=b(x,K,fe):B==="xterm256Foreground"?ce=A(x,fe.colors[K]):B==="xterm256Background"?ce=N(x,fe.colors[K]):B==="rgb"&&(ce=y(x,K)),ce}P(g,"generateOutput");function y(x,B){B=B.substring(2).slice(0,-1);var K=+B.substr(0,2),fe=B.substring(5).split(";"),ce=fe.map(function(Se){return("0"+Number(Se).toString(16)).substr(-2)}).join("");return T(x,(K===38?"color:#":"background-color:#")+ce)}P(y,"handleRgb");function b(x,B,K){B=parseInt(B,10);var fe={"-1":P(function(){return"<br/>"},"_"),0:P(function(){return x.length&&E(x)},"_"),1:P(function(){return S(x,"b")},"_"),3:P(function(){return S(x,"i")},"_"),4:P(function(){return S(x,"u")},"_"),8:P(function(){return T(x,"display:none")},"_"),9:P(function(){return S(x,"strike")},"_"),22:P(function(){return T(x,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:P(function(){return U(x,"i")},"_"),24:P(function(){return U(x,"u")},"_"),39:P(function(){return A(x,K.fg)},"_"),49:P(function(){return N(x,K.bg)},"_"),53:P(function(){return T(x,"text-decoration:overline")},"_")},ce;return fe[B]?ce=fe[B]():4<B&&B<7?ce=S(x,"blink"):29<B&&B<38?ce=A(x,K.colors[B-30]):39<B&&B<48?ce=N(x,K.colors[B-40]):89<B&&B<98?ce=A(x,K.colors[8+(B-90)]):99<B&&B<108&&(ce=N(x,K.colors[8+(B-100)])),ce}P(b,"handleDisplay");function E(x){var B=x.slice(0);return x.length=0,B.reverse().map(function(K){return"</"+K+">"}).join("")}P(E,"resetStyles");function _(x,B){for(var K=[],fe=x;fe<=B;fe++)K.push(fe);return K}P(_,"range");function O(x){return function(B){return(x===null||B.category!==x)&&x!=="all"}}P(O,"notCategory");function C(x){x=parseInt(x,10);var B=null;return x===0?B="all":x===1?B="bold":2<x&&x<5?B="underline":4<x&&x<7?B="blink":x===8?B="hide":x===9?B="strike":29<x&&x<38||x===39||89<x&&x<98?B="foreground-color":(39<x&&x<48||x===49||99<x&&x<108)&&(B="background-color"),B}P(C,"categoryForCode");function w(x,B){return B.escapeXML?u.encodeXML(x):x}P(w,"pushText");function S(x,B,K){return K||(K=""),x.push(B),"<".concat(B).concat(K?' style="'.concat(K,'"'):"",">")}P(S,"pushTag");function T(x,B){return S(x,"span",B)}P(T,"pushStyle");function A(x,B){return S(x,"span","color:"+B)}P(A,"pushForegroundColor");function N(x,B){return S(x,"span","background-color:"+B)}P(N,"pushBackgroundColor");function U(x,B){var K;if(x.slice(-1)[0]===B&&(K=x.pop()),K)return"</"+B+">"}P(U,"closeTag");function X(x,B,K){var fe=!1,ce=3;function Se(){return""}P(Se,"remove");function De(ye,Fe){return K("xterm256Foreground",Fe),""}P(De,"removeXterm256Foreground");function Oe(ye,Fe){return K("xterm256Background",Fe),""}P(Oe,"removeXterm256Background");function le(ye){return B.newline?K("display",-1):K("text",ye),""}P(le,"newline");function se(ye,Fe){fe=!0,Fe.trim().length===0&&(Fe="0"),Fe=Fe.trimRight(";").split(";");var nt=i(Fe),Wt;try{for(nt.s();!(Wt=nt._R()).done;){var yl=Wt.value;K("display",yl)}}catch(bl){nt.e(bl)}finally{nt.f()}return""}P(se,"ansiMess");function de(ye){return K("text",ye),""}P(de,"realText");function we(ye){return K("rgb",ye),""}P(we,"rgb");var Pe=[{pattern:/^\x08+/,sub:Se},{pattern:/^\x1b\[[012]?K/,sub:Se},{pattern:/^\x1b\[\(B/,sub:Se},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:we},{pattern:/^\x1b\[38;5;(\d+)m/,sub:De},{pattern:/^\x1b\[48;5;(\d+)m/,sub:Oe},{pattern:/^\_R/,sub:le},{pattern:/^\r+\_R/,sub:le},{pattern:/^\r/,sub:le},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:se},{pattern:/^\x1b\[\d?J/,sub:Se},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:Se},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:Se},{pattern:/^(([^\x1b\x08\r\_R])+)/,sub:de}];function Ne(ye,Fe){Fe>ce&&fe||(fe=!1,x=x.replace(ye.pattern,ye.sub))}P(Ne,"process");var Ge=[],Tt=x,Y=Tt.length;e:for(;Y>0;){for(var Re=0,qe=0,ze=Pe.length;qe<ze;Re=++qe){var ae=Pe[Re];if(Ne(ae,Re),x.length!==Y){Y=x.length;continue e}}if(x.length===Y)break;Ge.push(0),Y=x.length}return Ge}P(X,"tokenize");function V(x,B,K){return B!=="text"&&(x=x.filter(O(C(K))),x.push({token:B,data:K,category:C(K)})),x}P(V,"updateStickyStack");var J=function(){function x(B){r(this,x),B=B||{},B.colors&&(B.colors=Object.assign({},d.colors,B.colors)),this.options=Object.assign({},d,B),this.stack=[],this.stickyStack=[]}return P(x,"Filter"),o(x,[{key:"toHtml",value:P(function(B){var K=this;B=typeof B=="string"?[B]:B;var fe=this.stack,ce=this.options,Se=[];return this.stickyStack.forEach(function(De){var Oe=g(fe,De.token,De.data,ce);Oe&&Se.push(Oe)}),X(B.join(""),ce,function(De,Oe){var le=g(fe,De,Oe,ce);le&&Se.push(le),ce.stream&&(K.stickyStack=V(K.stickyStack,De,Oe))}),fe.length&&Se.push(E(fe)),Se.join("")},"toHtml")}]),x}();t.exports=J}),ah={};iA(ah,{DocsContext:()=>vu,HooksContext:()=>nu,Preview:()=>Hh,PreviewWeb:()=>iR,PreviewWithSelection:()=>Kh,StoryStore:()=>Lh,UrlStore:()=>tm,WebView:()=>nm,addons:()=>nn,applyHooks:()=>lh,combineArgs:()=>Ua,combineParameters:()=>on,composeConfigs:()=>Ho,composeStepRunners:()=>yu,composeStories:()=>Bh,composeStory:()=>bu,createPlaywrightTest:()=>Fh,decorateStory:()=>cu,defaultDecorateStory:()=>pu,filterArgTypes:()=>Ih,inferControls:()=>gu,makeDecorator:()=>_A,mockChannel:()=>ru,normalizeStory:()=>Ya,prepareMeta:()=>fu,prepareStory:()=>Ka,sanitizeStoryContextUpdate:()=>du,setDefaultProjectAnnotations:()=>Dh,setProjectAnnotations:()=>jh,simulateDOMContentLoaded:()=>Ga,simulatePageLoad:()=>im,sortStoriesV7:()=>DT,useArgs:()=>yh,useCallback:()=>$o,useChannel:()=>mh,useEffect:()=>lu,useGlobals:()=>bh,useMemo:()=>ch,useParameter:()=>gh,useReducer:()=>hh,useRef:()=>dh,useState:()=>fh,useStoryContext:()=>Bi,userOrAutoTitle:()=>PT,userOrAutoTitleFromSpecifier:()=>Uh});am.exports=aA(ah);var Ml=dt(Ar(),1),yA=wf();function ru(){let e={setHandler:P(()=>{},"setHandler"),send:P(()=>{},"send")};return new yA.Channel({transport:e})}P(ru,"mockChannel");var Ao,bA=(Ao=class{constructor(){this.getChannel=P(()=>{if(!this.channel){let t=ru();return this.setChannel(t),t}return this.channel},"getChannel"),this.ready=P(()=>this.promise,"ready"),this.hasChannel=P(()=>!!this.channel,"hasChannel"),this.setChannel=P(t=>{this.channel=t,this.resolve()},"setChannel"),this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}},P(Ao,"AddonStore"),Ao),Il="__STORYBOOK_ADDONS_PREVIEW";function sh(){return Ml.global[Il]||(Ml.global[Il]=new bA),Ml.global[Il]}P(sh,"getAddonsStore");var nn=sh(),Fa=dt(Ar(),1),Mi=Nt(),Lo=wr(),To,nu=(To=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=P(t=>{var r;t===((r=this.currentContext)==null?void 0:r.id)&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener"),this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),nn.getChannel().on(Lo.STORY_RENDERED,this.renderListener)}removeRenderListeners(){nn.getChannel().removeListener(Lo.STORY_RENDERED,this.renderListener)}},P(To,"HooksContext"),To);function Ul(e){let t=P((...r)=>{let{hooks:_R}=typeof r[0]=="function"?r[1]:r[0],o=_R.currentPhase,i=_R.currentHooks,s=_R.nextHookIndex,l=_R.currentDecoratorName;_R.currentDecoratorName=e.name,_R.prevMountedDecorators.has(e)?(_R.currentPhase="UPDATE",_R.currentHooks=_R.hookListsMap.get(e)||[]):(_R.currentPhase="MOUNT",_R.currentHooks=[],_R.hookListsMap.set(e,_R.currentHooks),_R.prevMountedDecorators.add(e)),_R.nextHookIndex=0;let u=Fa.global.STORYBOOK_HOOKS_CONTEXT;Fa.global.STORYBOOK_HOOKS_CONTEXT=_R;let d=e(...r);if(Fa.global.STORYBOOK_HOOKS_CONTEXT=u,_R.currentPhase==="UPDATE"&&_R.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return _R.currentPhase=o,_R.currentHooks=i,_R.nextHookIndex=s,_R.currentDecoratorName=l,d},"hookified");return t.originalFn=e,t}P(Ul,"hookify");var Dl=0,vA=25,lh=P(e=>(t,r)=>{let _R=e(Ul(t),r.map(o=>Ul(o)));return o=>{var l;let{hooks:i}=o;(l=i.prevMountedDecorators)!=null||(i.prevMountedDecorators=new Set),i.mountedDecorators=new Set([t,...r]),i.currentContext=o,i.hasUpdates=!1;let s=_R(o);for(Dl=1;i.hasUpdates;)if(i.hasUpdates=!1,i.currentEffects=[],s=_R(o),Dl+=1,Dl>vA)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return i.addRenderListeners(),s}},"applyHooks"),EA=P((e,t)=>e.length===t.length&&e.every((r,_R)=>r===t[_R]),"areDepsEqual"),ou=P(()=>new Error("Storybook preview hooks can only be called inside decorators and story functions."),"invalidHooksError");function iu(){return Fa.global.STORYBOOK_HOOKS_CONTEXT||null}P(iu,"getHooksContextOrNull");function Wa(){let e=iu();if(e==null)throw ou();return e}P(Wa,"getHooksContextOrThrow");function uh(e,t,r){let _R=Wa();if(_R.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&Mi.logger.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let o={name:e,deps:r};return _R.currentHooks.push(o),t(o),o}if(_R.currentPhase==="UPDATE"){let o=_R.getNextHook();if(o==null)throw new Error("Rendered more hooks than during the previous render.");return o.name!==e&&Mi.logger.warn(`Storybook has detected a change in the order of Hooks${_R.currentDecoratorName?` called by ${_R.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&o.deps==null&&Mi.logger.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&o.deps!=null&&r.length!==o.deps.length&&Mi.logger.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
144
144
  Previous: ${o.deps}
145
145
  Incoming: ${r}`),(r==null||o.deps==null||!EA(r,o.deps))&&(t(o),o.deps=r),o}throw ou()}P(uh,"useHook");function ji(e,t,r){let{memoizedState:_R}=uh(e,o=>{o.memoizedState=t()},r);return _R}P(ji,"useMemoLike");function ch(e,t){return ji("useMemo",e,t)}P(ch,"useMemo");function $o(e,t){return ji("useCallback",()=>e,t)}P($o,"useCallback");function au(e,t){return ji(e,()=>({current:t}),[])}P(au,"useRefLike");function dh(e){return au("useRef",e)}P(dh,"useRef");function ph(){let e=iu();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{nn.getChannel().emit(Lo.FORCE_RE_RENDER)}catch{Mi.logger.warn("State updates of Storybook preview hooks work only in browser")}}P(ph,"triggerUpdate");function su(e,t){let r=au(e,typeof t=="function"?t():t),_R=P(o=>{r.current=typeof o=="function"?o(r.current):o,ph()},"setState");return[r.current,_R]}P(su,"useStateLike");function fh(e){return su("useState",e)}P(fh,"useState");function hh(e,t,r){let _R=r!=null?()=>r(t):t,[o,i]=su("useReducer",_R);return[o,P(s=>i(l=>e(l,s)),"dispatch")]}P(hh,"useReducer");function lu(e,t){let r=Wa(),_R=ji("useEffect",()=>({create:e}),t);r.currentEffects.includes(_R)||r.currentEffects.push(_R)}P(lu,"useEffect");function mh(e,t=[]){let r=nn.getChannel();return lu(()=>(Object.entries(e).forEach(([_R,o])=>r.on(_R,o)),()=>{Object.entries(e).forEach(([_R,o])=>r.removeListener(_R,o))}),[...Object.keys(e),...t]),$o(r.emit.bind(r),[r])}P(mh,"useChannel");function Bi(){let{currentContext:e}=Wa();if(e==null)throw ou();return e}P(Bi,"useStoryContext");function gh(e,t){var _R;let{parameters:r}=Bi();if(e)return(_R=r[e])!=null?_R:t}P(gh,"useParameter");function yh(){let e=nn.getChannel(),{id:t,args:r}=Bi(),_R=$o(i=>e.emit(Lo.UPDATE_STORY_ARGS,{storyId:t,updatedArgs:i}),[e,t]),o=$o(i=>e.emit(Lo.RESET_STORY_ARGS,{storyId:t,argNames:i}),[e,t]);return[r,_R,o]}P(yh,"useArgs");function bh(){let e=nn.getChannel(),{globals:t}=Bi(),r=$o(_R=>e.emit(Lo.UPDATE_GLOBALS,{globals:_R}),[e]);return[t,r]}P(bh,"useGlobals");var _A=P(({name:e,parameterName:t,wrapper:r,skipIfNoParametersOrOptions:_R=!1})=>{let o=P(i=>(s,l)=>{let u=l.parameters&&l.parameters[t];return u&&u.disable||_R&&!i&&!u?s(l):r(s,l,{options:i,parameters:u})},"decorator");return(...i)=>typeof i[0]=="function"?o()(...i):(...s)=>{if(s.length>1)return i.length>1?o(i)(...s):o(...i)(...s);throw new Error(`Passing stories directly into ${e}() is not allowed,
146
- instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}},"makeDecorator"),qf=Pt(),jf=Zr();function vh(e,t){let r={},_R=Object.entries(e);for(let o=0;o<_R.length;o++){let[i,s]=_R[o];t(s,i)||(r[i]=s)}return r}P(vh,"omitBy");function Eh(e,t){let r={};for(let _R=0;_R<t.length;_R++){let o=t[_R];Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}return r}P(Eh,"pick");function _h(e,t){let r={},_R=Object.entries(e);for(let o=0;o<_R.length;o++){let[i,s]=_R[o];t(s,i)&&(r[i]=s)}return r}P(_h,"pickBy");function fr(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(e.toString()!=="[object Object]")return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}P(fr,"isPlainObject");function xn(e,t){let r={},_R=Object.keys(e);for(let o=0;o<_R.length;o++){let i=_R[o],s=e[i];r[i]=t(s,i,e)}return r}P(xn,"mapValues");var wA="[object RegExp]",SA="[object String]",CA="[object Number]",AA="[object Boolean]",Bf="[object Arguments]",TA="[object Symbol]",RA="[object Date]",xA="[object Map]",OA="[object Set]",PA="[object Array]",NA="[object Function]",MA="[object ArrayBuffer]",ql="[object Object]",IA="[object Error]",DA="[object DataView]",qA="[object Uint8Array]",jA="[object Uint8ClampedArray]",BA="[object Uint16Array]",FA="[object Uint32Array]",kA="[object BigUint64Array]",LA="[object Int8Array]",$A="[object Int16Array]",UA="[object Int32Array]",HA="[object BigInt64Array]",zA="[object Float32Array]",VA="[object Float64Array]";function Hl(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}P(Hl,"getSymbols");function zl(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}P(zl,"getTag");function wh(e,t){if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return Sr(e,t)}return Sr(e,t)}P(wh,"isEqual");function Sr(e,t,r){if(Object.is(e,t))return!0;let _R=zl(e),o=zl(t);if(_R===Bf&&(_R=ql),o===Bf&&(o=ql),_R!==o)return!1;switch(_R){case SA:return e.toString()===t.toString();case CA:{let l=e.valueOf(),u=t.valueOf();return l===u||Number.isNaN(l)&&Number.isNaN(u)}case AA:case RA:case TA:return Object.is(e.valueOf(),t.valueOf());case wA:return e.source===t.source&&e.flags===t.flags;case NA:return e===t}r=r!=null?r:new Map;let i=r.get(e),s=r.get(t);if(i!=null&&s!=null)return i===t;r.set(e,t),r.set(t,e);try{switch(_R){case xA:{if(e.size!==t.size)return!1;for(let[l,u]of e.entries())if(!t.has(l)||!Sr(u,t.get(l),r))return!1;return!0}case OA:{if(e.size!==t.size)return!1;let l=Array.from(e.values()),u=Array.from(t.values());for(let d=0;d<l.length;d++){let c=l[d],p=u.findIndex(h=>Sr(c,h,r));if(p===-1)return!1;u.splice(p,1)}return!0}case PA:case qA:case jA:case BA:case FA:case kA:case LA:case $A:case UA:case HA:case zA:case VA:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let l=0;l<e.length;l++)if(!Sr(e[l],t[l],r))return!1;return!0}case MA:return e.byteLength!==t.byteLength?!1:Sr(new Uint8Array(e),new Uint8Array(t),r);case DA:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:Sr(e.buffer,t.buffer,r);case IA:return e.name===t.name&&e.message===t.message;case ql:{if(!(Sr(e.constructor,t.constructor,r)||fr(e)&&fr(t)))return!1;let l=[...Object.keys(e),...Hl(e)],u=[...Object.keys(t),...Hl(t)];if(l.length!==u.length)return!1;for(let d=0;d<l.length;d++){let c=l[d],p=e[c];if(!Object.prototype.hasOwnProperty.call(t,c))return!1;let h=t[c];if(!Sr(p,h,r))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}P(Sr,"areObjectsEqual");var jl=dt(th(),1),Bl=Pt(),Ff=dt(Tr(),1),So=Symbol("incompatible"),Vl=P((e,t)=>{let r=t.type;if(e==null||!r||t.mapping)return e;switch(r.name){case"string":return String(e);case"enum":return e;case"number":return Number(e);case"boolean":return String(e)==="true";case"array":return!r.value||!Array.isArray(e)?So:e.reduce((_R,o,i)=>{let s=Vl(o,{type:r.value});return s!==So&&(_R[i]=s),_R},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?So:Object.entries(e).reduce((_R,[o,i])=>{let s=Vl(i,{type:r.value[o]});return s===So?_R:Object.assign(_R,{[o]:s})},{});default:return So}},"map"),GA=P((e,t)=>Object.entries(e).reduce((r,[_R,o])=>{if(!t[_R])return r;let i=Vl(o,t[_R]);return i===So?r:Object.assign(r,{[_R]:i})},{}),"mapArgsToTypes"),Ua=P((e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,_R,o)=>(r[o]=Ua(e[o],t[o]),r),[...e]).filter(r=>r!==void 0):!fr(e)||!fr(t)?t:Object.keys({...e,...t}).reduce((r,_R)=>{if(_R in t){let o=Ua(e[_R],t[_R]);o!==void 0&&(r[_R]=o)}else r[_R]=e[_R];return r},{}),"combineArgs"),WA=P((e,t)=>Object.entries(t).reduce((r,[_R,{options:o}])=>{function i(){return _R in e&&(r[_R]=e[_R]),r}if(P(i,"allowArg"),!o)return i();if(!Array.isArray(o))return Bl.once.error(Ff.dedent`
146
+ instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}},"makeDecorator"),qf=Nt(),jf=Zr();function vh(e,t){let r={},_R=Object.entries(e);for(let o=0;o<_R.length;o++){let[i,s]=_R[o];t(s,i)||(r[i]=s)}return r}P(vh,"omitBy");function Eh(e,t){let r={};for(let _R=0;_R<t.length;_R++){let o=t[_R];Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}return r}P(Eh,"pick");function _h(e,t){let r={},_R=Object.entries(e);for(let o=0;o<_R.length;o++){let[i,s]=_R[o];t(s,i)&&(r[i]=s)}return r}P(_h,"pickBy");function fr(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(e.toString()!=="[object Object]")return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}P(fr,"isPlainObject");function xn(e,t){let r={},_R=Object.keys(e);for(let o=0;o<_R.length;o++){let i=_R[o],s=e[i];r[i]=t(s,i,e)}return r}P(xn,"mapValues");var wA="[object RegExp]",SA="[object String]",CA="[object Number]",AA="[object Boolean]",Bf="[object Arguments]",TA="[object Symbol]",RA="[object Date]",xA="[object Map]",OA="[object Set]",PA="[object Array]",NA="[object Function]",MA="[object ArrayBuffer]",ql="[object Object]",IA="[object Error]",DA="[object DataView]",qA="[object Uint8Array]",jA="[object Uint8ClampedArray]",BA="[object Uint16Array]",FA="[object Uint32Array]",kA="[object BigUint64Array]",LA="[object Int8Array]",$A="[object Int16Array]",UA="[object Int32Array]",HA="[object BigInt64Array]",zA="[object Float32Array]",VA="[object Float64Array]";function Hl(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}P(Hl,"getSymbols");function zl(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}P(zl,"getTag");function wh(e,t){if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return Sr(e,t)}return Sr(e,t)}P(wh,"isEqual");function Sr(e,t,r){if(Object.is(e,t))return!0;let _R=zl(e),o=zl(t);if(_R===Bf&&(_R=ql),o===Bf&&(o=ql),_R!==o)return!1;switch(_R){case SA:return e.toString()===t.toString();case CA:{let l=e.valueOf(),u=t.valueOf();return l===u||Number.isNaN(l)&&Number.isNaN(u)}case AA:case RA:case TA:return Object.is(e.valueOf(),t.valueOf());case wA:return e.source===t.source&&e.flags===t.flags;case NA:return e===t}r=r!=null?r:new Map;let i=r.get(e),s=r.get(t);if(i!=null&&s!=null)return i===t;r.set(e,t),r.set(t,e);try{switch(_R){case xA:{if(e.size!==t.size)return!1;for(let[l,u]of e.entries())if(!t.has(l)||!Sr(u,t.get(l),r))return!1;return!0}case OA:{if(e.size!==t.size)return!1;let l=Array.from(e.values()),u=Array.from(t.values());for(let d=0;d<l.length;d++){let c=l[d],p=u.findIndex(h=>Sr(c,h,r));if(p===-1)return!1;u.splice(p,1)}return!0}case PA:case qA:case jA:case BA:case FA:case kA:case LA:case $A:case UA:case HA:case zA:case VA:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let l=0;l<e.length;l++)if(!Sr(e[l],t[l],r))return!1;return!0}case MA:return e.byteLength!==t.byteLength?!1:Sr(new Uint8Array(e),new Uint8Array(t),r);case DA:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:Sr(e.buffer,t.buffer,r);case IA:return e.name===t.name&&e.message===t.message;case ql:{if(!(Sr(e.constructor,t.constructor,r)||fr(e)&&fr(t)))return!1;let l=[...Object.keys(e),...Hl(e)],u=[...Object.keys(t),...Hl(t)];if(l.length!==u.length)return!1;for(let d=0;d<l.length;d++){let c=l[d],p=e[c];if(!Object.prototype.hasOwnProperty.call(t,c))return!1;let h=t[c];if(!Sr(p,h,r))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}P(Sr,"areObjectsEqual");var jl=dt(th(),1),Bl=Nt(),Ff=dt(Tr(),1),So=Symbol("incompatible"),Vl=P((e,t)=>{let r=t.type;if(e==null||!r||t.mapping)return e;switch(r.name){case"string":return String(e);case"enum":return e;case"number":return Number(e);case"boolean":return String(e)==="true";case"array":return!r.value||!Array.isArray(e)?So:e.reduce((_R,o,i)=>{let s=Vl(o,{type:r.value});return s!==So&&(_R[i]=s),_R},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?So:Object.entries(e).reduce((_R,[o,i])=>{let s=Vl(i,{type:r.value[o]});return s===So?_R:Object.assign(_R,{[o]:s})},{});default:return So}},"map"),GA=P((e,t)=>Object.entries(e).reduce((r,[_R,o])=>{if(!t[_R])return r;let i=Vl(o,t[_R]);return i===So?r:Object.assign(r,{[_R]:i})},{}),"mapArgsToTypes"),Ua=P((e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,_R,o)=>(r[o]=Ua(e[o],t[o]),r),[...e]).filter(r=>r!==void 0):!fr(e)||!fr(t)?t:Object.keys({...e,...t}).reduce((r,_R)=>{if(_R in t){let o=Ua(e[_R],t[_R]);o!==void 0&&(r[_R]=o)}else r[_R]=e[_R];return r},{}),"combineArgs"),WA=P((e,t)=>Object.entries(t).reduce((r,[_R,{options:o}])=>{function i(){return _R in e&&(r[_R]=e[_R]),r}if(P(i,"allowArg"),!o)return i();if(!Array.isArray(o))return Bl.once.error(Ff.dedent`
147
147
  Invalid argType: '${_R}.options' should be an array.
148
148
 
149
149
  More info: https://storybook.js.org/docs/api/arg-types
@@ -151,18 +151,18 @@ Incoming: ${r}`),(r==null||o.deps==null||!EA(r,o.deps))&&(t(o),o.deps=r),o}throw
151
151
  Invalid argType: '${_R}.options' should only contain primitives. Use a 'mapping' for complex values.
152
152
 
153
153
  More info: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
154
- `),i();let s=Array.isArray(e[_R]),l=s&&e[_R].findIndex(p=>!o.includes(p)),u=s&&l===-1;if(e[_R]===void 0||o.includes(e[_R])||u)return i();let d=s?`${_R}[${l}]`:_R,c=o.map(p=>typeof p=="string"?`'${p}'`:String(p)).join(", ");return Bl.once.warn(`Received illegal value for '${d}'. Supported options: ${c}`),r},{}),"validateOptions"),Ii=Symbol("Deeply equal"),Ha=P((e,t)=>{if(typeof e!=typeof t)return t;if(wh(e,t))return Ii;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((_R,o,i)=>{let s=Ha(e[i],o);return s!==Ii&&(_R[i]=s),_R},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return fr(e)&&fr(t)?Object.keys({...e,...t}).reduce((r,_R)=>{let o=Ha(e==null?void 0:e[_R],t==null?void 0:t[_R]);return o===Ii?r:Object.assign(r,{[_R]:o})},{}):t},"deepDiff"),Sh="UNTARGETED";function Ch({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([_R,o])=>{let{target:i=Sh}=t[_R]||{};r[i]=r[i]||{},r[i][_R]=o}),r}P(Ch,"groupArgsByTarget");function Ah(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}P(Ah,"deleteUndefined");var Ro,YA=(Ro=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(t){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);return this.argsByStoryId[t]}setInitial(t){if(!this.initialArgsByStoryId[t.id])this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs;else if(this.initialArgsByStoryId[t.id]!==t.initialArgs){let r=Ha(this.initialArgsByStoryId[t.id],this.argsByStoryId[t.id]);this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs,r!==Ii&&this.updateFromDelta(t,r)}}updateFromDelta(t,r){let _R=WA(r,t.argTypes);this.argsByStoryId[t.id]=Ua(this.argsByStoryId[t.id],_R)}updateFromPersisted(t,r){let _R=GA(r,t.argTypes);return this.updateFromDelta(t,_R)}update(t,r){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);this.argsByStoryId[t]=Ah({...this.argsByStoryId[t],...r})}},P(Ro,"ArgsStore"),Ro),KA=Pt(),Th=P((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:_R}])=>(typeof _R<"u"&&(t[r]=_R),t),{}),"getValuesFromArgTypes"),xo,JA=(xo=class{constructor({globals:t={},globalTypes:r={}}){this.set({globals:t,globalTypes:r})}set({globals:t={},globalTypes:r={}}){let _R=this.initialGlobals&&Ha(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(t),...Object.keys(r)]);let o=Th(r);this.initialGlobals={...o,...t},this.globals=this.initialGlobals,_R&&_R!==Ii&&this.updateFromPersisted(_R)}filterAllowedGlobals(t){return Object.entries(t).reduce((r,[_R,o])=>(this.allowedGlobalNames.has(_R)?r[_R]=o:KA.logger.warn(`Attempted to set a global (${_R}) that is not defined in initial globals or globalTypes`),r),{})}updateFromPersisted(t){let r=this.filterAllowedGlobals(t);this.globals={...this.globals,...r}}get(){return this.globals}update(t){this.globals={...this.globals,...this.filterAllowedGlobals(t)}}},P(xo,"GlobalsStore"),xo),XA=Zr(),QA=dt(th(),1),ZA=(0,QA.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),Oo,eT=(Oo=class{constructor({entries:t}={v:5,entries:{}}){this.entries=t}entryFromSpecifier(t){let r=Object.values(this.entries);if(t==="*")return r[0];if(typeof t=="string")return this.entries[t]?this.entries[t]:r.find(i=>i.id.startsWith(t));let{name:_R,title:o}=t;return r.find(i=>i.name===_R&&i.title===o)}storyIdToEntry(t){let r=this.entries[t];if(!r)throw new XA.MissingStoryAfterHmrError({storyId:t});return r}importPathToEntry(t){return ZA(this.entries)[t]}},P(Oo,"StoryIndexStore"),Oo),tT=P(e=>typeof e=="string"?{name:e}:e,"normalizeType"),rT=P(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),nT=P((e,t)=>{let{type:r,control:_R,...o}=e,i={name:t,...o};return r&&(i.type=tT(r)),_R?i.control=rT(_R):_R===!1&&(i.control={disable:!0}),i},"normalizeInputType"),za=P(e=>xn(e,nT),"normalizeInputTypes"),kf=_o(),Lf=Pt(),oT=dt(Tr(),1),Ot=P(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),iT=oT.dedent`
154
+ `),i();let s=Array.isArray(e[_R]),l=s&&e[_R].findIndex(p=>!o.includes(p)),u=s&&l===-1;if(e[_R]===void 0||o.includes(e[_R])||u)return i();let d=s?`${_R}[${l}]`:_R,c=o.map(p=>typeof p=="string"?`'${p}'`:String(p)).join(", ");return Bl.once.warn(`Received illegal value for '${d}'. Supported options: ${c}`),r},{}),"validateOptions"),Ii=Symbol("Deeply equal"),Ha=P((e,t)=>{if(typeof e!=typeof t)return t;if(wh(e,t))return Ii;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((_R,o,i)=>{let s=Ha(e[i],o);return s!==Ii&&(_R[i]=s),_R},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return fr(e)&&fr(t)?Object.keys({...e,...t}).reduce((r,_R)=>{let o=Ha(e==null?void 0:e[_R],t==null?void 0:t[_R]);return o===Ii?r:Object.assign(r,{[_R]:o})},{}):t},"deepDiff"),Sh="UNTARGETED";function Ch({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([_R,o])=>{let{target:i=Sh}=t[_R]||{};r[i]=r[i]||{},r[i][_R]=o}),r}P(Ch,"groupArgsByTarget");function Ah(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}P(Ah,"deleteUndefined");var Ro,YA=(Ro=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(t){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);return this.argsByStoryId[t]}setInitial(t){if(!this.initialArgsByStoryId[t.id])this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs;else if(this.initialArgsByStoryId[t.id]!==t.initialArgs){let r=Ha(this.initialArgsByStoryId[t.id],this.argsByStoryId[t.id]);this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs,r!==Ii&&this.updateFromDelta(t,r)}}updateFromDelta(t,r){let _R=WA(r,t.argTypes);this.argsByStoryId[t.id]=Ua(this.argsByStoryId[t.id],_R)}updateFromPersisted(t,r){let _R=GA(r,t.argTypes);return this.updateFromDelta(t,_R)}update(t,r){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);this.argsByStoryId[t]=Ah({...this.argsByStoryId[t],...r})}},P(Ro,"ArgsStore"),Ro),KA=Nt(),Th=P((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:_R}])=>(typeof _R<"u"&&(t[r]=_R),t),{}),"getValuesFromArgTypes"),xo,JA=(xo=class{constructor({globals:t={},globalTypes:r={}}){this.set({globals:t,globalTypes:r})}set({globals:t={},globalTypes:r={}}){let _R=this.initialGlobals&&Ha(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(t),...Object.keys(r)]);let o=Th(r);this.initialGlobals={...o,...t},this.globals=this.initialGlobals,_R&&_R!==Ii&&this.updateFromPersisted(_R)}filterAllowedGlobals(t){return Object.entries(t).reduce((r,[_R,o])=>(this.allowedGlobalNames.has(_R)?r[_R]=o:KA.logger.warn(`Attempted to set a global (${_R}) that is not defined in initial globals or globalTypes`),r),{})}updateFromPersisted(t){let r=this.filterAllowedGlobals(t);this.globals={...this.globals,...r}}get(){return this.globals}update(t){this.globals={...this.globals,...this.filterAllowedGlobals(t)}}},P(xo,"GlobalsStore"),xo),XA=Zr(),QA=dt(th(),1),ZA=(0,QA.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),Oo,eT=(Oo=class{constructor({entries:t}={v:5,entries:{}}){this.entries=t}entryFromSpecifier(t){let r=Object.values(this.entries);if(t==="*")return r[0];if(typeof t=="string")return this.entries[t]?this.entries[t]:r.find(i=>i.id.startsWith(t));let{name:_R,title:o}=t;return r.find(i=>i.name===_R&&i.title===o)}storyIdToEntry(t){let r=this.entries[t];if(!r)throw new XA.MissingStoryAfterHmrError({storyId:t});return r}importPathToEntry(t){return ZA(this.entries)[t]}},P(Oo,"StoryIndexStore"),Oo),tT=P(e=>typeof e=="string"?{name:e}:e,"normalizeType"),rT=P(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),nT=P((e,t)=>{let{type:r,control:_R,...o}=e,i={name:t,...o};return r&&(i.type=tT(r)),_R?i.control=rT(_R):_R===!1&&(i.control={disable:!0}),i},"normalizeInputType"),za=P(e=>xn(e,nT),"normalizeInputTypes"),kf=_o(),Lf=Nt(),oT=dt(Tr(),1),Ot=P(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),iT=oT.dedent`
155
155
  CSF .story annotations deprecated; annotate story functions directly:
156
156
  - StoryFn.story.name => StoryFn.storyName
157
157
  - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
158
158
  See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
159
- `;function Ya(e,t,r){let _R=t,o=typeof t=="function"?t:null,{story:i}=_R;i&&(Lf.logger.debug("deprecated story",i),(0,Lf.deprecate)(iT));let s=(0,kf.storyNameFromExport)(e),l=typeof _R!="function"&&_R.name||_R.storyName||(i==null?void 0:i.name)||s,u=[...Ot(_R.decorators),...Ot(i==null?void 0:i.decorators)],d={...i==null?void 0:i.parameters,..._R.parameters},c={...i==null?void 0:i.args,..._R.args},p={...i==null?void 0:i.argTypes,..._R.argTypes},h=[...Ot(_R.loaders),...Ot(i==null?void 0:i.loaders)],m=[...Ot(_R.beforeEach),...Ot(i==null?void 0:i.beforeEach)],{render:g,play:y,tags:b=[],globals:E={}}=_R,_=d.__id||(0,kf.toId)(r.id,s);return{moduleExport:t,id:_,name:l,tags:b,decorators:u,parameters:d,args:c,argTypes:za(p),loaders:h,beforeEach:m,globals:E,...g&&{render:g},...o&&{userStoryFn:o},...y&&{play:y}}}P(Ya,"normalizeStory");var aT=_o(),Rh=Pt(),sT=_o();function uu(e,t=e.title,r){let{id:_R,argTypes:o}=e;return{id:(0,sT.sanitize)(_R||t),...e,title:t,...o&&{argTypes:za(o)},parameters:{fileName:r,...e.parameters}}}P(uu,"normalizeComponentAnnotations");var lT=P(e=>{let{globals:t,globalTypes:r}=e;(t||r)&&Rh.logger.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},"checkGlobals"),uT=P(e=>{let{options:t}=e;t!=null&&t.storySort&&Rh.logger.error("The storySort option parameter can only be set globally")},"checkStorySort"),$f=P(e=>{e&&(lT(e),uT(e))},"checkDisallowedParameters");function xh(e,t,r){let{default:_R,__namedExportsOrder:o,...i}=e,s=uu(_R,r,t);$f(s.parameters);let l={meta:s,stories:{},moduleExports:e};return Object.keys(i).forEach(u=>{if((0,aT.isExportStory)(u,s)){let d=Ya(u,i[u],s);$f(d.parameters),l.stories[d.id]=d}}),l}P(xh,"processCSFFile");var Oh=_o(),ka=dt(Ar(),1),cT=dt(Ar(),1),dT=Zr();function Ph(e){return e!=null&&Nh(e).includes("mount")}P(Ph,"mountDestructured");function Nh(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=Gl(t[1]);if(!r.length)return[];let _R=r[0];return _R.startsWith("{")&&_R.endsWith("}")?Gl(_R.slice(1,-1).replace(/\s/g,"")).map(o=>o.replace(/:.*|=.*/g,"")):[]}P(Nh,"getUsedProps");function Gl(e){let t=[],r=[],_R=0;for(let i=0;i<e.length;i++)if(e[i]==="{"||e[i]==="[")r.push(e[i]==="{"?"}":"]");else if(e[i]===r[r.length-1])r.pop();else if(!r.length&&e[i]===","){let s=e.substring(_R,i).trim();s&&t.push(s),_R=i+1}let o=e.substring(_R).trim();return o&&t.push(o),t}P(Gl,"splitByComma");function cu(e,t,r){let _R=r(e);return o=>t(_R,o)}P(cu,"decorateStory");function du({componentId:e,title:t,kind:r,id:_R,name:o,story:i,parameters:s,initialArgs:l,argTypes:u,...d}={}){return d}P(du,"sanitizeStoryContextUpdate");function pu(e,t){let r={},_R=P(i=>s=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...du(s)},i(r.value)},"bindWithContext"),o=t.reduce((i,s)=>cu(i,s,_R),e);return i=>(r.value=i,o(i))}P(pu,"defaultDecorateStory");var on=P((...e)=>{let t={},r=e.filter(Boolean),_R=r.reduce((o,i)=>(Object.entries(i).forEach(([s,l])=>{let u=o[s];Array.isArray(l)||typeof u>"u"?o[s]=l:fr(l)&&fr(u)?t[s]=!0:typeof l<"u"&&(o[s]=l)}),o),{});return Object.keys(t).forEach(o=>{let i=r.filter(Boolean).map(s=>s[o]).filter(s=>typeof s<"u");i.every(s=>fr(s))?_R[o]=on(...i):_R[o]=i[i.length-1]}),_R},"combineParameters");function Ka(e,t,r){var w,S,T,A;let{moduleExport:_R,id:o,name:i}=e||{},s=hu(e,t,r),l=P(async N=>{let U={};for(let X of[..."__STORYBOOK_TEST_LOADERS__"in ka.global&&Array.isArray(ka.global.__STORYBOOK_TEST_LOADERS__)?[ka.global.__STORYBOOK_TEST_LOADERS__]:[],Ot(r.loaders),Ot(t.loaders),Ot(e.loaders)]){if(N.abortSignal.aborted)return U;let V=await Promise.all(X.map(J=>J(N)));Object.assign(U,...V)}return U},"applyLoaders"),u=P(async N=>{let U=new Array;for(let X of[...Ot(r.beforeEach),...Ot(t.beforeEach),...Ot(e.beforeEach)]){if(N.abortSignal.aborted)return U;let V=await X(N);V&&U.push(V)}return U},"applyBeforeEach"),d=P(N=>N.originalStoryFn(N.args,N),"undecoratedStoryFn"),{applyDecorators:c=pu,runStep:p}=r,h=[...Ot(e==null?void 0:e.decorators),...Ot(t==null?void 0:t.decorators),...Ot(r==null?void 0:r.decorators)],m=(e==null?void 0:e.userStoryFn)||(e==null?void 0:e.render)||t.render||r.render,g=lh(c)(d,h),y=P(N=>g(N),"unboundStoryFn"),b=(w=e==null?void 0:e.play)!=null?w:t==null?void 0:t.play,E=Ph(b);if(!m&&!E)throw new dT.NoRenderFunctionError({id:o});let _=P(N=>async()=>(await N.renderToCanvas(),N.canvas),"defaultMount"),O=(A=(T=(S=e.mount)!=null?S:t.mount)!=null?T:r.mount)!=null?A:_,C=r.testingLibraryRender;return{storyGlobals:{},...s,moduleExport:_R,id:o,name:i,story:i,originalStoryFn:m,undecoratedStoryFn:d,unboundStoryFn:y,applyLoaders:l,applyBeforeEach:u,playFunction:b,runStep:p,mount:O,testingLibraryRender:C,renderToCanvas:r.renderToCanvas,usesMount:E}}P(Ka,"prepareStory");function fu(e,t,r){return{...hu(void 0,e,t),moduleExport:r}}P(fu,"prepareMeta");function hu(e,t,r){var E,_,O,C;let _R=["dev","test"],o=((E=cT.global.DOCS_OPTIONS)==null?void 0:E.autodocs)===!0?["autodocs"]:[],i=(0,Oh.combineTags)(..._R,...o,...(_=r.tags)!=null?_:[],...(O=t.tags)!=null?O:[],...(C=e==null?void 0:e.tags)!=null?C:[]),s=on(r.parameters,t.parameters,e==null?void 0:e.parameters),{argTypesEnhancers:l=[],argsEnhancers:u=[]}=r,d=on(r.argTypes,t.argTypes,e==null?void 0:e.argTypes);if(e){let w=(e==null?void 0:e.userStoryFn)||(e==null?void 0:e.render)||t.render||r.render;s.__isArgsStory=w&&w.length>0}let c={...r.args,...t.args,...e==null?void 0:e.args},p={...t.globals,...e==null?void 0:e.globals},h={componentId:t.id,title:t.title,kind:t.title,id:(e==null?void 0:e.id)||t.id,name:(e==null?void 0:e.name)||"__meta",story:(e==null?void 0:e.name)||"__meta",component:t.component,subcomponents:t.subcomponents,tags:i,parameters:s,initialArgs:c,argTypes:d,storyGlobals:p};h.argTypes=l.reduce((w,S)=>S({...h,argTypes:w}),h.argTypes);let m={...c};h.initialArgs=u.reduce((w,S)=>({...w,...S({...h,initialArgs:w})}),m);let{name:g,story:y,...b}=h;return b}P(hu,"preparePartialAnnotations");function mu(e){var i;let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if((i=ka.global.FEATURES)!=null&&i.argTypeTargetsV7){let s=Ch(e);r={...e,allArgs:e.args,argsByTarget:s,args:s[Sh]||{}}}let _R=Object.entries(r.args).reduce((s,[l,u])=>{var c;if(!((c=r.argTypes[l])!=null&&c.mapping))return s[l]=u,s;let d=P(p=>{let h=r.argTypes[l].mapping;return h&&p in h?h[p]:p},"mappingFn");return s[l]=Array.isArray(u)?u.map(d):d(u),s},{}),o=Object.entries(_R).reduce((s,[l,u])=>{let d=r.argTypes[l]||{};return(0,Oh.includeConditionalArg)(d,_R,r.globals)&&(s[l]=u),s},{});return{...r,unmappedArgs:t,args:o}}P(mu,"prepareContext");var pT=Pt(),fT=dt(Tr(),1),hT=Pt(),mT=dt(Tr(),1),Wl=P((e,t,r)=>{let _R=typeof e;switch(_R){case"boolean":case"string":case"number":case"function":case"symbol":return{name:_R};default:break}return e?r.has(e)?(hT.logger.warn(mT.dedent`
159
+ `;function Ya(e,t,r){let _R=t,o=typeof t=="function"?t:null,{story:i}=_R;i&&(Lf.logger.debug("deprecated story",i),(0,Lf.deprecate)(iT));let s=(0,kf.storyNameFromExport)(e),l=typeof _R!="function"&&_R.name||_R.storyName||(i==null?void 0:i.name)||s,u=[...Ot(_R.decorators),...Ot(i==null?void 0:i.decorators)],d={...i==null?void 0:i.parameters,..._R.parameters},c={...i==null?void 0:i.args,..._R.args},p={...i==null?void 0:i.argTypes,..._R.argTypes},h=[...Ot(_R.loaders),...Ot(i==null?void 0:i.loaders)],m=[...Ot(_R.beforeEach),...Ot(i==null?void 0:i.beforeEach)],{render:g,play:y,tags:b=[],globals:E={}}=_R,_=d.__id||(0,kf.toId)(r.id,s);return{moduleExport:t,id:_,name:l,tags:b,decorators:u,parameters:d,args:c,argTypes:za(p),loaders:h,beforeEach:m,globals:E,...g&&{render:g},...o&&{userStoryFn:o},...y&&{play:y}}}P(Ya,"normalizeStory");var aT=_o(),Rh=Nt(),sT=_o();function uu(e,t=e.title,r){let{id:_R,argTypes:o}=e;return{id:(0,sT.sanitize)(_R||t),...e,title:t,...o&&{argTypes:za(o)},parameters:{fileName:r,...e.parameters}}}P(uu,"normalizeComponentAnnotations");var lT=P(e=>{let{globals:t,globalTypes:r}=e;(t||r)&&Rh.logger.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},"checkGlobals"),uT=P(e=>{let{options:t}=e;t!=null&&t.storySort&&Rh.logger.error("The storySort option parameter can only be set globally")},"checkStorySort"),$f=P(e=>{e&&(lT(e),uT(e))},"checkDisallowedParameters");function xh(e,t,r){let{default:_R,__namedExportsOrder:o,...i}=e,s=uu(_R,r,t);$f(s.parameters);let l={meta:s,stories:{},moduleExports:e};return Object.keys(i).forEach(u=>{if((0,aT.isExportStory)(u,s)){let d=Ya(u,i[u],s);$f(d.parameters),l.stories[d.id]=d}}),l}P(xh,"processCSFFile");var Oh=_o(),ka=dt(Ar(),1),cT=dt(Ar(),1),dT=Zr();function Ph(e){return e!=null&&Nh(e).includes("mount")}P(Ph,"mountDestructured");function Nh(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=Gl(t[1]);if(!r.length)return[];let _R=r[0];return _R.startsWith("{")&&_R.endsWith("}")?Gl(_R.slice(1,-1).replace(/\s/g,"")).map(o=>o.replace(/:.*|=.*/g,"")):[]}P(Nh,"getUsedProps");function Gl(e){let t=[],r=[],_R=0;for(let i=0;i<e.length;i++)if(e[i]==="{"||e[i]==="[")r.push(e[i]==="{"?"}":"]");else if(e[i]===r[r.length-1])r.pop();else if(!r.length&&e[i]===","){let s=e.substring(_R,i).trim();s&&t.push(s),_R=i+1}let o=e.substring(_R).trim();return o&&t.push(o),t}P(Gl,"splitByComma");function cu(e,t,r){let _R=r(e);return o=>t(_R,o)}P(cu,"decorateStory");function du({componentId:e,title:t,kind:r,id:_R,name:o,story:i,parameters:s,initialArgs:l,argTypes:u,...d}={}){return d}P(du,"sanitizeStoryContextUpdate");function pu(e,t){let r={},_R=P(i=>s=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...du(s)},i(r.value)},"bindWithContext"),o=t.reduce((i,s)=>cu(i,s,_R),e);return i=>(r.value=i,o(i))}P(pu,"defaultDecorateStory");var on=P((...e)=>{let t={},r=e.filter(Boolean),_R=r.reduce((o,i)=>(Object.entries(i).forEach(([s,l])=>{let u=o[s];Array.isArray(l)||typeof u>"u"?o[s]=l:fr(l)&&fr(u)?t[s]=!0:typeof l<"u"&&(o[s]=l)}),o),{});return Object.keys(t).forEach(o=>{let i=r.filter(Boolean).map(s=>s[o]).filter(s=>typeof s<"u");i.every(s=>fr(s))?_R[o]=on(...i):_R[o]=i[i.length-1]}),_R},"combineParameters");function Ka(e,t,r){var w,S,T,A;let{moduleExport:_R,id:o,name:i}=e||{},s=hu(e,t,r),l=P(async N=>{let U={};for(let X of[..."__STORYBOOK_TEST_LOADERS__"in ka.global&&Array.isArray(ka.global.__STORYBOOK_TEST_LOADERS__)?[ka.global.__STORYBOOK_TEST_LOADERS__]:[],Ot(r.loaders),Ot(t.loaders),Ot(e.loaders)]){if(N.abortSignal.aborted)return U;let V=await Promise.all(X.map(J=>J(N)));Object.assign(U,...V)}return U},"applyLoaders"),u=P(async N=>{let U=new Array;for(let X of[...Ot(r.beforeEach),...Ot(t.beforeEach),...Ot(e.beforeEach)]){if(N.abortSignal.aborted)return U;let V=await X(N);V&&U.push(V)}return U},"applyBeforeEach"),d=P(N=>N.originalStoryFn(N.args,N),"undecoratedStoryFn"),{applyDecorators:c=pu,runStep:p}=r,h=[...Ot(e==null?void 0:e.decorators),...Ot(t==null?void 0:t.decorators),...Ot(r==null?void 0:r.decorators)],m=(e==null?void 0:e.userStoryFn)||(e==null?void 0:e.render)||t.render||r.render,g=lh(c)(d,h),y=P(N=>g(N),"unboundStoryFn"),b=(w=e==null?void 0:e.play)!=null?w:t==null?void 0:t.play,E=Ph(b);if(!m&&!E)throw new dT.NoRenderFunctionError({id:o});let _=P(N=>async()=>(await N.renderToCanvas(),N.canvas),"defaultMount"),O=(A=(T=(S=e.mount)!=null?S:t.mount)!=null?T:r.mount)!=null?A:_,C=r.testingLibraryRender;return{storyGlobals:{},...s,moduleExport:_R,id:o,name:i,story:i,originalStoryFn:m,undecoratedStoryFn:d,unboundStoryFn:y,applyLoaders:l,applyBeforeEach:u,playFunction:b,runStep:p,mount:O,testingLibraryRender:C,renderToCanvas:r.renderToCanvas,usesMount:E}}P(Ka,"prepareStory");function fu(e,t,r){return{...hu(void 0,e,t),moduleExport:r}}P(fu,"prepareMeta");function hu(e,t,r){var E,_,O,C;let _R=["dev","test"],o=((E=cT.global.DOCS_OPTIONS)==null?void 0:E.autodocs)===!0?["autodocs"]:[],i=(0,Oh.combineTags)(..._R,...o,...(_=r.tags)!=null?_:[],...(O=t.tags)!=null?O:[],...(C=e==null?void 0:e.tags)!=null?C:[]),s=on(r.parameters,t.parameters,e==null?void 0:e.parameters),{argTypesEnhancers:l=[],argsEnhancers:u=[]}=r,d=on(r.argTypes,t.argTypes,e==null?void 0:e.argTypes);if(e){let w=(e==null?void 0:e.userStoryFn)||(e==null?void 0:e.render)||t.render||r.render;s.__isArgsStory=w&&w.length>0}let c={...r.args,...t.args,...e==null?void 0:e.args},p={...t.globals,...e==null?void 0:e.globals},h={componentId:t.id,title:t.title,kind:t.title,id:(e==null?void 0:e.id)||t.id,name:(e==null?void 0:e.name)||"__meta",story:(e==null?void 0:e.name)||"__meta",component:t.component,subcomponents:t.subcomponents,tags:i,parameters:s,initialArgs:c,argTypes:d,storyGlobals:p};h.argTypes=l.reduce((w,S)=>S({...h,argTypes:w}),h.argTypes);let m={...c};h.initialArgs=u.reduce((w,S)=>({...w,...S({...h,initialArgs:w})}),m);let{name:g,story:y,...b}=h;return b}P(hu,"preparePartialAnnotations");function mu(e){var i;let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if((i=ka.global.FEATURES)!=null&&i.argTypeTargetsV7){let s=Ch(e);r={...e,allArgs:e.args,argsByTarget:s,args:s[Sh]||{}}}let _R=Object.entries(r.args).reduce((s,[l,u])=>{var c;if(!((c=r.argTypes[l])!=null&&c.mapping))return s[l]=u,s;let d=P(p=>{let h=r.argTypes[l].mapping;return h&&p in h?h[p]:p},"mappingFn");return s[l]=Array.isArray(u)?u.map(d):d(u),s},{}),o=Object.entries(_R).reduce((s,[l,u])=>{let d=r.argTypes[l]||{};return(0,Oh.includeConditionalArg)(d,_R,r.globals)&&(s[l]=u),s},{});return{...r,unmappedArgs:t,args:o}}P(mu,"prepareContext");var pT=Nt(),fT=dt(Tr(),1),hT=Nt(),mT=dt(Tr(),1),Wl=P((e,t,r)=>{let _R=typeof e;switch(_R){case"boolean":case"string":case"number":case"function":case"symbol":return{name:_R};default:break}return e?r.has(e)?(hT.logger.warn(mT.dedent`
160
160
  We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
161
161
 
162
162
  Consider using the mapping feature or fully custom args:
163
163
  - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
164
164
  - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
165
- `),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?Wl(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:xn(e,o=>Wl(o,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),Mh=P(e=>{let{id:t,argTypes:r={},initialArgs:_R={}}=e,o=xn(_R,(s,l)=>({name:l,type:Wl(s,`${t}.${l}`,new Set)})),i=xn(r,(s,l)=>({name:l}));return on(o,i,r)},"inferArgTypes");Mh.secondPass=!0;var gT=Pt(),Uf=P((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),Ih=P((e,t,r)=>!t&&!r?e:e&&_h(e,(_R,o)=>{let i=_R.name||o.toString();return!!(!t||Uf(i,t))&&(!r||!Uf(i,r))}),"filterArgTypes"),yT=P((e,t,r)=>{let{type:_R,options:o}=e;if(_R){if(r.color&&r.color.test(t)){let i=_R.name;if(i==="string")return{control:{type:"color"}};i!=="enum"&&gT.logger.warn(`Addon controls: Control of type color only supports string, received "${i}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(_R.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:i}=_R;return{control:{type:(i==null?void 0:i.length)<=5?"radio":"select"},options:i}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},"inferControl"),gu=P(e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:_R=null,exclude:o=null,matchers:i={}}={}}}=e;if(!r)return t;let s=Ih(t,_R,o),l=xn(s,(u,d)=>(u==null?void 0:u.type)&&yT(u,d.toString(),i));return on(l,s)},"inferControls");gu.secondPass=!0;function Va({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:_R,loaders:o,beforeEach:i,globals:s,initialGlobals:l,...u}){return s&&Object.keys(s).length>0&&(0,pT.deprecate)(fT.dedent`
165
+ `),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?Wl(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:xn(e,o=>Wl(o,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),Mh=P(e=>{let{id:t,argTypes:r={},initialArgs:_R={}}=e,o=xn(_R,(s,l)=>({name:l,type:Wl(s,`${t}.${l}`,new Set)})),i=xn(r,(s,l)=>({name:l}));return on(o,i,r)},"inferArgTypes");Mh.secondPass=!0;var gT=Nt(),Uf=P((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),Ih=P((e,t,r)=>!t&&!r?e:e&&_h(e,(_R,o)=>{let i=_R.name||o.toString();return!!(!t||Uf(i,t))&&(!r||!Uf(i,r))}),"filterArgTypes"),yT=P((e,t,r)=>{let{type:_R,options:o}=e;if(_R){if(r.color&&r.color.test(t)){let i=_R.name;if(i==="string")return{control:{type:"color"}};i!=="enum"&&gT.logger.warn(`Addon controls: Control of type color only supports string, received "${i}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(_R.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:i}=_R;return{control:{type:(i==null?void 0:i.length)<=5?"radio":"select"},options:i}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},"inferControl"),gu=P(e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:_R=null,exclude:o=null,matchers:i={}}={}}}=e;if(!r)return t;let s=Ih(t,_R,o),l=xn(s,(u,d)=>(u==null?void 0:u.type)&&yT(u,d.toString(),i));return on(l,s)},"inferControls");gu.secondPass=!0;function Va({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:_R,loaders:o,beforeEach:i,globals:s,initialGlobals:l,...u}){return s&&Object.keys(s).length>0&&(0,pT.deprecate)(fT.dedent`
166
166
  The preview.js 'globals' field is deprecated and will be removed in Storybook 9.0.
167
167
  Please use 'initialGlobals' instead. Learn more:
168
168
 
@@ -179,7 +179,7 @@ ${T.description}`)},"showError"),showException:P(T=>{throw T},"showException"),f
179
179
  await mount(<MyComponent foo="bar"/>)
180
180
 
181
181
  More info: https://storybook.js.org/docs/api/portable-stories-playwright
182
- `);await r.evaluate(async l=>{var d,c,p;let u=await((d=globalThis.__pwUnwrapObject)==null?void 0:d.call(globalThis,l));return(p=(c="__pw_type"in u?u.type:u)==null?void 0:c.load)==null?void 0:p.call(c)},o);let s=await t(o,...i);return await r.evaluate(async l=>{var p,h;let u=await((p=globalThis.__pwUnwrapObject)==null?void 0:p.call(globalThis,l)),d="__pw_type"in u?u.type:u,c=document.querySelector("#root");return(h=d==null?void 0:d.play)==null?void 0:h.call(d,{canvasElement:c})},o),s})},"mount")})}P(Fh,"createPlaywrightTest");async function kh(e,t){var o,i;for(let s of[...rn].reverse())await s();if(rn.length=0,!t.canvasElement){let s=document.createElement("div");(i=(o=globalThis==null?void 0:globalThis.document)==null?void 0:o.body)==null||i.appendChild(s),t.canvasElement=s,rn.push(()=>{var l,u,d,c;(u=(l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body)!=null&&u.contains(s)&&((c=(d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body)==null||c.removeChild(s))})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;rn.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,_R=e.usesMount;_R||await t.mount(),!t.abortSignal.aborted&&r&&(_R||(t.mount=async()=>{throw new _T.MountMustBeDestructuredError({playFunction:r.toString()})}),await r(t))}P(kh,"runStory");function Yl(e,t){return vh(Eh(e,t),r=>r===void 0)}P(Yl,"picky");var Hf=1e3,TT=1e4,Po,Lh=(Po=class{constructor(t,r,_R){this.importFn=r,this.getStoriesJsonData=P(()=>{let s=this.getSetStoriesPayload(),l=["fileName","docsOnly","framework","__id","__isArgsStory"];return{v:3,stories:xn(s.stories,u=>{let{importPath:d}=this.storyIndex.entries[u.id];return{...Yl(u,["id","name","title"]),importPath:d,kind:u.title,story:u.name,parameters:{...Yl(u.parameters,l),fileName:d}}})}},"getStoriesJsonData"),this.storyIndex=new eT(t),this.projectAnnotations=Va(_R);let{initialGlobals:o,globalTypes:i}=this.projectAnnotations;this.args=new YA,this.userGlobals=new JA({globals:o,globalTypes:i}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,jl.default)(Hf)(xh),this.prepareMetaWithCache=(0,jl.default)(Hf)(fu),this.prepareStoryWithCache=(0,jl.default)(TT)(Ka)}setProjectAnnotations(t){this.projectAnnotations=Va(t);let{initialGlobals:r,globalTypes:_R}=t;this.userGlobals.set({globals:r,globalTypes:_R})}async onStoriesChanged({importFn:t,storyIndex:r}){t&&(this.importFn=t),r&&(this.storyIndex.entries=r.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(t){return this.storyIndex.storyIdToEntry(t)}async loadCSFFileByStoryId(t){let{importPath:r,title:_R}=this.storyIndex.storyIdToEntry(t),o=await this.importFn(r);return this.processCSFFileWithCache(o,r,_R)}async loadAllCSFFiles(){let t={};return Object.entries(this.storyIndex.entries).forEach(([r,{importPath:_R}])=>{t[_R]=r}),(await Promise.all(Object.entries(t).map(async([r,_R])=>({importPath:r,csfFile:await this.loadCSFFileByStoryId(_R)})))).reduce((r,{importPath:_R,csfFile:o})=>(r[_R]=o,r),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:t}){let r=t.meta;return this.prepareMetaWithCache(r,this.projectAnnotations,t.moduleExports.default)}async loadStory({storyId:t}){let r=await this.loadCSFFileByStoryId(t);return this.storyFromCSFFile({storyId:t,csfFile:r})}storyFromCSFFile({storyId:t,csfFile:r}){let _R=r.stories[t];if(!_R)throw new jf.MissingStoryFromCsfFileError({storyId:t});let o=r.meta,i=this.prepareStoryWithCache(_R,o,this.projectAnnotations);return this.args.setInitial(i),this.hooks[i.id]=this.hooks[i.id]||new nu,i}componentStoriesFromCSFFile({csfFile:t}){return Object.keys(this.storyIndex.entries).filter(r=>!!t.stories[r]).map(r=>this.storyFromCSFFile({storyId:r,csfFile:t}))}async loadEntry(t){let r=await this.storyIdToEntry(t),_R=r.type==="docs"?r.storiesImports:[],[o,...i]=await Promise.all([this.importFn(r.importPath),..._R.map(s=>{let l=this.storyIndex.importPathToEntry(s);return this.loadCSFFileByStoryId(l.id)})]);return{entryExports:o,csfFiles:i}}getStoryContext(t,{forceInitialArgs:r=!1}={}){let _R=this.userGlobals.get(),{initialGlobals:o}=this.userGlobals;return mu({...t,args:r?t.initialArgs:this.args.get(t.id),initialGlobals:o,globalTypes:this.projectAnnotations.globalTypes,userGlobals:_R,globals:{..._R,...t.storyGlobals},hooks:this.hooks[t.id]})}addCleanupCallbacks(t,r){this.cleanupCallbacks[t.id]=r}async cleanupStory(t){this.hooks[t.id].clean();let r=this.cleanupCallbacks[t.id];if(r)for(let _R of[...r].reverse())await _R();delete this.cleanupCallbacks[t.id]}extract(t={includeDocsOnly:!1}){let{cachedCSFFiles:r}=this;if(!r)throw new jf.CalledExtractOnStoreError;return Object.entries(this.storyIndex.entries).reduce((_R,[o,{type:i,importPath:s}])=>{if(i==="docs")return _R;let l=r[s],u=this.storyFromCSFFile({storyId:o,csfFile:l});return!t.includeDocsOnly&&u.parameters.docsOnly||(_R[o]=Object.entries(u).reduce((d,[c,p])=>c==="moduleExport"||typeof p=="function"?d:Array.isArray(p)?Object.assign(d,{[c]:p.slice().sort()}):Object.assign(d,{[c]:p}),{args:u.initialArgs})),_R},{})}getSetStoriesPayload(){let t=this.extract({includeDocsOnly:!0}),r=Object.values(t).reduce((_R,{title:o})=>(_R[o]={},_R),{});return{v:2,globals:this.userGlobals.get(),globalParameters:{},kindParameters:r,stories:t}}raw(){return(0,qf.deprecate)("StoryStore.raw() is deprecated and will be removed in 9.0, please use extract() instead"),Object.values(this.extract()).map(({id:t})=>this.fromId(t)).filter(Boolean)}fromId(t){if((0,qf.deprecate)("StoryStore.fromId() is deprecated and will be removed in 9.0, please use loadStory() instead"),!this.cachedCSFFiles)throw new Error("Cannot call fromId/raw() unless you call cacheAllCSFFiles() first.");let r;try{({importPath:r}=this.storyIndex.storyIdToEntry(t))}catch{return null}let _R=this.cachedCSFFiles[r],o=this.storyFromCSFFile({storyId:t,csfFile:_R});return{...o,storyFn:P(i=>{let s={...this.getStoryContext(o),abortSignal:new AbortController().signal,canvasElement:null,loaded:{},step:P((l,u)=>o.runStep(l,u,s),"step"),context:null,mount:null,canvas:{},viewMode:"story"};return o.unboundStoryFn({...s,...i})},"storyFn")}}},P(Po,"StoryStore"),Po),RT=Pt();function $h(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}P($h,"slash");var xT=dt(Tr(),1),OT=P(e=>{if(e.length===0)return e;let t=e[e.length-1],r=t==null?void 0:t.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(e.length===1)return[r];let _R=e[e.length-2];return r&&_R&&r.toLowerCase()===_R.toLowerCase()?[...e.slice(0,-2),r]:r&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(r))?e.slice(0,-1):[...e.slice(0,-1),r]},"sanitize");function Kl(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}P(Kl,"pathJoin");var Uh=P((e,t,r)=>{let{directory:_R,importPathMatcher:o,titlePrefix:i=""}=t||{};typeof e=="number"&&RT.once.warn(xT.dedent`
182
+ `);await r.evaluate(async l=>{var d,c,p;let u=await((d=globalThis.__pwUnwrapObject)==null?void 0:d.call(globalThis,l));return(p=(c="__pw_type"in u?u.type:u)==null?void 0:c.load)==null?void 0:p.call(c)},o);let s=await t(o,...i);return await r.evaluate(async l=>{var p,h;let u=await((p=globalThis.__pwUnwrapObject)==null?void 0:p.call(globalThis,l)),d="__pw_type"in u?u.type:u,c=document.querySelector("#root");return(h=d==null?void 0:d.play)==null?void 0:h.call(d,{canvasElement:c})},o),s})},"mount")})}P(Fh,"createPlaywrightTest");async function kh(e,t){var o,i;for(let s of[...rn].reverse())await s();if(rn.length=0,!t.canvasElement){let s=document.createElement("div");(i=(o=globalThis==null?void 0:globalThis.document)==null?void 0:o.body)==null||i.appendChild(s),t.canvasElement=s,rn.push(()=>{var l,u,d,c;(u=(l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body)!=null&&u.contains(s)&&((c=(d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body)==null||c.removeChild(s))})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;rn.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,_R=e.usesMount;_R||await t.mount(),!t.abortSignal.aborted&&r&&(_R||(t.mount=async()=>{throw new _T.MountMustBeDestructuredError({playFunction:r.toString()})}),await r(t))}P(kh,"runStory");function Yl(e,t){return vh(Eh(e,t),r=>r===void 0)}P(Yl,"picky");var Hf=1e3,TT=1e4,Po,Lh=(Po=class{constructor(t,r,_R){this.importFn=r,this.getStoriesJsonData=P(()=>{let s=this.getSetStoriesPayload(),l=["fileName","docsOnly","framework","__id","__isArgsStory"];return{v:3,stories:xn(s.stories,u=>{let{importPath:d}=this.storyIndex.entries[u.id];return{...Yl(u,["id","name","title"]),importPath:d,kind:u.title,story:u.name,parameters:{...Yl(u.parameters,l),fileName:d}}})}},"getStoriesJsonData"),this.storyIndex=new eT(t),this.projectAnnotations=Va(_R);let{initialGlobals:o,globalTypes:i}=this.projectAnnotations;this.args=new YA,this.userGlobals=new JA({globals:o,globalTypes:i}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,jl.default)(Hf)(xh),this.prepareMetaWithCache=(0,jl.default)(Hf)(fu),this.prepareStoryWithCache=(0,jl.default)(TT)(Ka)}setProjectAnnotations(t){this.projectAnnotations=Va(t);let{initialGlobals:r,globalTypes:_R}=t;this.userGlobals.set({globals:r,globalTypes:_R})}async onStoriesChanged({importFn:t,storyIndex:r}){t&&(this.importFn=t),r&&(this.storyIndex.entries=r.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(t){return this.storyIndex.storyIdToEntry(t)}async loadCSFFileByStoryId(t){let{importPath:r,title:_R}=this.storyIndex.storyIdToEntry(t),o=await this.importFn(r);return this.processCSFFileWithCache(o,r,_R)}async loadAllCSFFiles(){let t={};return Object.entries(this.storyIndex.entries).forEach(([r,{importPath:_R}])=>{t[_R]=r}),(await Promise.all(Object.entries(t).map(async([r,_R])=>({importPath:r,csfFile:await this.loadCSFFileByStoryId(_R)})))).reduce((r,{importPath:_R,csfFile:o})=>(r[_R]=o,r),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:t}){let r=t.meta;return this.prepareMetaWithCache(r,this.projectAnnotations,t.moduleExports.default)}async loadStory({storyId:t}){let r=await this.loadCSFFileByStoryId(t);return this.storyFromCSFFile({storyId:t,csfFile:r})}storyFromCSFFile({storyId:t,csfFile:r}){let _R=r.stories[t];if(!_R)throw new jf.MissingStoryFromCsfFileError({storyId:t});let o=r.meta,i=this.prepareStoryWithCache(_R,o,this.projectAnnotations);return this.args.setInitial(i),this.hooks[i.id]=this.hooks[i.id]||new nu,i}componentStoriesFromCSFFile({csfFile:t}){return Object.keys(this.storyIndex.entries).filter(r=>!!t.stories[r]).map(r=>this.storyFromCSFFile({storyId:r,csfFile:t}))}async loadEntry(t){let r=await this.storyIdToEntry(t),_R=r.type==="docs"?r.storiesImports:[],[o,...i]=await Promise.all([this.importFn(r.importPath),..._R.map(s=>{let l=this.storyIndex.importPathToEntry(s);return this.loadCSFFileByStoryId(l.id)})]);return{entryExports:o,csfFiles:i}}getStoryContext(t,{forceInitialArgs:r=!1}={}){let _R=this.userGlobals.get(),{initialGlobals:o}=this.userGlobals;return mu({...t,args:r?t.initialArgs:this.args.get(t.id),initialGlobals:o,globalTypes:this.projectAnnotations.globalTypes,userGlobals:_R,globals:{..._R,...t.storyGlobals},hooks:this.hooks[t.id]})}addCleanupCallbacks(t,r){this.cleanupCallbacks[t.id]=r}async cleanupStory(t){this.hooks[t.id].clean();let r=this.cleanupCallbacks[t.id];if(r)for(let _R of[...r].reverse())await _R();delete this.cleanupCallbacks[t.id]}extract(t={includeDocsOnly:!1}){let{cachedCSFFiles:r}=this;if(!r)throw new jf.CalledExtractOnStoreError;return Object.entries(this.storyIndex.entries).reduce((_R,[o,{type:i,importPath:s}])=>{if(i==="docs")return _R;let l=r[s],u=this.storyFromCSFFile({storyId:o,csfFile:l});return!t.includeDocsOnly&&u.parameters.docsOnly||(_R[o]=Object.entries(u).reduce((d,[c,p])=>c==="moduleExport"||typeof p=="function"?d:Array.isArray(p)?Object.assign(d,{[c]:p.slice().sort()}):Object.assign(d,{[c]:p}),{args:u.initialArgs})),_R},{})}getSetStoriesPayload(){let t=this.extract({includeDocsOnly:!0}),r=Object.values(t).reduce((_R,{title:o})=>(_R[o]={},_R),{});return{v:2,globals:this.userGlobals.get(),globalParameters:{},kindParameters:r,stories:t}}raw(){return(0,qf.deprecate)("StoryStore.raw() is deprecated and will be removed in 9.0, please use extract() instead"),Object.values(this.extract()).map(({id:t})=>this.fromId(t)).filter(Boolean)}fromId(t){if((0,qf.deprecate)("StoryStore.fromId() is deprecated and will be removed in 9.0, please use loadStory() instead"),!this.cachedCSFFiles)throw new Error("Cannot call fromId/raw() unless you call cacheAllCSFFiles() first.");let r;try{({importPath:r}=this.storyIndex.storyIdToEntry(t))}catch{return null}let _R=this.cachedCSFFiles[r],o=this.storyFromCSFFile({storyId:t,csfFile:_R});return{...o,storyFn:P(i=>{let s={...this.getStoryContext(o),abortSignal:new AbortController().signal,canvasElement:null,loaded:{},step:P((l,u)=>o.runStep(l,u,s),"step"),context:null,mount:null,canvas:{},viewMode:"story"};return o.unboundStoryFn({...s,...i})},"storyFn")}}},P(Po,"StoryStore"),Po),RT=Nt();function $h(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}P($h,"slash");var xT=dt(Tr(),1),OT=P(e=>{if(e.length===0)return e;let t=e[e.length-1],r=t==null?void 0:t.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(e.length===1)return[r];let _R=e[e.length-2];return r&&_R&&r.toLowerCase()===_R.toLowerCase()?[...e.slice(0,-2),r]:r&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(r))?e.slice(0,-1):[...e.slice(0,-1),r]},"sanitize");function Kl(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}P(Kl,"pathJoin");var Uh=P((e,t,r)=>{let{directory:_R,importPathMatcher:o,titlePrefix:i=""}=t||{};typeof e=="number"&&RT.once.warn(xT.dedent`
183
183
  CSF Auto-title received a numeric fileName. This typically happens when
184
184
  webpack is mis-configured in production mode. To force webpack to produce
185
185
  filenames, set optimization.moduleIds = "named" in your webpack config.
@@ -191,41 +191,41 @@ ${T.description}`)},"showError"),showException:P(T=>{throw T},"showException"),f
191
191
  Are you using a V6-style sort function in V7 mode?
192
192
 
193
193
  More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort
194
- `)}},"sortStoriesV7"),qT=dt(Ar(),1),Fl=Pt(),Xt=wr(),ir=Zr(),Ni=wr(),Vf=Zr(),Ja=new Error("prepareAborted"),{AbortController:Gf}=globalThis;function Jl(e){try{let{name:t="Error",message:r=String(e),stack:_R}=e;return{name:t,message:r,stack:_R}}catch{return{name:"Error",message:String(e)}}}P(Jl,"serializeError");var No,Xl=(No=class{constructor(t,r,_R,o,i,s,l={autoplay:!0,forceInitialArgs:!1},u){this.channel=t,this.store=r,this.renderToScreen=_R,this.callbacks=o,this.id=i,this.viewMode=s,this.renderOptions=l,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=P(()=>{},"teardownRender"),this.torndown=!1,this.abortController=new Gf,u&&(this.story=u,this.phase="preparing")}async runPhase(t,r,_R){this.phase=r,this.channel.emit(Ni.STORY_RENDER_PHASE_CHANGED,{newPhase:this.phase,storyId:this.id}),_R&&(await _R(),this.checkIfAborted(t))}checkIfAborted(t){return t.aborted?(this.phase="aborted",this.channel.emit(Ni.STORY_RENDER_PHASE_CHANGED,{newPhase:this.phase,storyId:this.id}),!0):!1}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),Ja}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing"].includes(this.phase)}async renderToElement(t){return this.canvasElement=t,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:t}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:t})}async render({initial:t=!1,forceRemount:r=!1}={}){var _,O,C,w;let{canvasElement:_R}=this;if(!this.story)throw new Error("cannot render when not prepared");let o=this.story;if(!_R)throw new Error("cannot render when canvasElement is unset");let{id:i,componentId:s,title:l,name:u,tags:d,applyLoaders:c,applyBeforeEach:p,unboundStoryFn:h,playFunction:m,runStep:g}=o;r&&!t&&(this.cancelRender(),this.abortController=new Gf);let y=this.abortController.signal,b=!1,E=o.usesMount;try{let S={...this.storyContext(),viewMode:this.viewMode,abortSignal:y,canvasElement:_R,loaded:{},step:P((V,J)=>g(V,J,S),"step"),context:null,canvas:{},renderToCanvas:P(async()=>{let V=await this.renderToScreen(T,_R);this.teardownRender=V||(()=>{}),b=!0},"renderToCanvas"),mount:P(async(...V)=>{var x,B;(B=(x=this.callbacks).showStoryDuringRender)==null||B.call(x);let J=null;return await this.runPhase(y,"rendering",async()=>{J=await o.mount(S)(...V)}),E&&await this.runPhase(y,"playing"),J},"mount")};S.context=S;let T={componentId:s,title:l,kind:l,id:i,name:u,story:u,tags:d,...this.callbacks,showError:P(V=>(this.phase="errored",this.callbacks.showError(V)),"showError"),showException:P(V=>(this.phase="errored",this.callbacks.showException(V)),"showException"),forceRemount:r||this.notYetRendered,storyContext:S,storyFn:P(()=>h(S),"storyFn"),unboundStoryFn:h};if(await this.runPhase(y,"loading",async()=>{S.loaded=await c(S)}),y.aborted)return;let A=await p(S);if(this.store.addCleanupCallbacks(o,A),this.checkIfAborted(y)||(!b&&!E&&await S.mount(),this.notYetRendered=!1,y.aborted))return;let N=((O=(_=this.story.parameters)==null?void 0:_.test)==null?void 0:O.dangerouslyIgnoreUnhandledErrors)===!0,U=new Set,X=P(V=>U.add("error"in V?V.error:V.reason),"onError");if(this.renderOptions.autoplay&&r&&m&&this.phase!=="errored"){window.addEventListener("error",X),window.addEventListener("unhandledrejection",X),this.disableKeyListeners=!0;try{if(E?await m(S):(S.mount=async()=>{throw new Vf.MountMustBeDestructuredError({playFunction:m.toString()})},await this.runPhase(y,"playing",async()=>m(S))),!b)throw new Vf.NoStoryMountedError;this.checkIfAborted(y),!N&&U.size>0?await this.runPhase(y,"errored"):await this.runPhase(y,"played")}catch(V){if((w=(C=this.callbacks).showStoryDuringRender)==null||w.call(C),await this.runPhase(y,"errored",async()=>{this.channel.emit(Ni.PLAY_FUNCTION_THREW_EXCEPTION,Jl(V))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw V;console.error(V)}if(!N&&U.size>0&&this.channel.emit(Ni.UNHANDLED_ERRORS_WHILE_PLAYING,Array.from(U).map(Jl)),this.disableKeyListeners=!1,window.removeEventListener("unhandledrejection",X),window.removeEventListener("error",X),y.aborted)return}await this.runPhase(y,"completed",async()=>this.channel.emit(Ni.STORY_RENDERED,i))}catch(S){this.phase="errored",this.callbacks.showException(S)}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){var t;(t=this.abortController)==null||t.abort()}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let t=0;t<3;t+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(r=>setTimeout(r,0))}window.location.reload(),await new Promise(()=>{})}},P(No,"StoryRender"),No),{fetch:jT}=qT.global,BT="./index.json",Mo,Hh=(Mo=class{constructor(t,r,_R=nn.getChannel(),o=!0){this.importFn=t,this.getProjectAnnotations=r,this.channel=_R,this.storyRenders=[],this.storeInitializationPromise=new Promise((i,s)=>{this.resolveStoreInitializationPromise=i,this.rejectStoreInitializationPromise=s}),o&&this.initialize()}get storyStore(){return new Proxy({},{get:P((t,r)=>{if(this.storyStoreValue)return(0,Fl.deprecate)("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[r];throw new ir.StoryStoreAccessedBeforeInitializationError},"get")})}async initialize(){this.setupListeners();try{let t=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(t),await this.initializeWithProjectAnnotations(t)}catch(t){this.rejectStoreInitializationPromise(t)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(Xt.STORY_INDEX_INVALIDATED,this.onStoryIndexChanged.bind(this)),this.channel.on(Xt.UPDATE_GLOBALS,this.onUpdateGlobals.bind(this)),this.channel.on(Xt.UPDATE_STORY_ARGS,this.onUpdateArgs.bind(this)),this.channel.on(Xt.ARGTYPES_INFO_REQUEST,this.onRequestArgTypesInfo.bind(this)),this.channel.on(Xt.RESET_STORY_ARGS,this.onResetArgs.bind(this)),this.channel.on(Xt.FORCE_RE_RENDER,this.onForceReRender.bind(this)),this.channel.on(Xt.FORCE_REMOUNT,this.onForceRemount.bind(this))}async getProjectAnnotationsOrRenderError(){try{let t=await this.getProjectAnnotations();if(this.renderToCanvas=t.renderToCanvas,!this.renderToCanvas)throw new ir.MissingRenderToCanvasError;return t}catch(t){throw this.renderPreviewEntryError("Error reading preview.js:",t),t}}async initializeWithProjectAnnotations(t){this.projectAnnotationsBeforeInitialization=t;try{let r=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(r)}catch(r){throw this.renderPreviewEntryError("Error loading story index:",r),r}}async runBeforeAllHook(t){var r,_R;try{await((r=this.beforeAllCleanup)==null?void 0:r.call(this)),this.beforeAllCleanup=await((_R=t.beforeAll)==null?void 0:_R.call(t))}catch(o){throw this.renderPreviewEntryError("Error in beforeAll hook:",o),o}}async getStoryIndexFromServer(){let t=await jT(BT);if(t.status===200)return t.json();throw new ir.StoryIndexFetchError({text:await t.text()})}initializeWithStoryIndex(t){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new Lh(t,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new ir.CalledPreviewMethodBeforeInitializationError({methodName:"emitGlobals"});let t={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(Xt.SET_GLOBALS,t)}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){delete this.previewEntryError,this.getProjectAnnotations=t;let r=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(r),!this.storyStoreValue){await this.initializeWithProjectAnnotations(r);return}this.storyStoreValue.setProjectAnnotations(r),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let t=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(t);return}await this.onStoriesChanged({storyIndex:t})}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async onStoriesChanged({importFn:t,storyIndex:r}){if(!this.storyStoreValue)throw new ir.CalledPreviewMethodBeforeInitializationError({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:t,storyIndex:r})}async onUpdateGlobals({globals:t,currentStory:r}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new ir.CalledPreviewMethodBeforeInitializationError({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(t),r){let{initialGlobals:_R,storyGlobals:o,userGlobals:i,globals:s}=this.storyStoreValue.getStoryContext(r);this.channel.emit(Xt.GLOBALS_UPDATED,{initialGlobals:_R,userGlobals:i,storyGlobals:o,globals:s})}else{let{initialGlobals:_R,globals:o}=this.storyStoreValue.userGlobals;this.channel.emit(Xt.GLOBALS_UPDATED,{initialGlobals:_R,userGlobals:o,storyGlobals:{},globals:o})}await Promise.all(this.storyRenders.map(_R=>_R.rerender()))}async onUpdateArgs({storyId:t,updatedArgs:r}){if(!this.storyStoreValue)throw new ir.CalledPreviewMethodBeforeInitializationError({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(t,r),await Promise.all(this.storyRenders.filter(_R=>_R.id===t&&!_R.renderOptions.forceInitialArgs).map(_R=>_R.story&&_R.story.usesMount?_R.remount():_R.rerender())),this.channel.emit(Xt.STORY_ARGS_UPDATED,{storyId:t,args:this.storyStoreValue.args.get(t)})}async onRequestArgTypesInfo({id:t,payload:r}){var _R;try{await this.storeInitializationPromise;let o=await((_R=this.storyStoreValue)==null?void 0:_R.loadStory(r));this.channel.emit(Xt.ARGTYPES_INFO_RESPONSE,{id:t,success:!0,payload:{argTypes:(o==null?void 0:o.argTypes)||{}},error:null})}catch(o){this.channel.emit(Xt.ARGTYPES_INFO_RESPONSE,{id:t,success:!1,error:o==null?void 0:o.message})}}async onResetArgs({storyId:t,argNames:r}){var i;if(!this.storyStoreValue)throw new ir.CalledPreviewMethodBeforeInitializationError({methodName:"onResetArgs"});let _R=((i=this.storyRenders.find(s=>s.id===t))==null?void 0:i.story)||await this.storyStoreValue.loadStory({storyId:t}),o=(r||[...new Set([...Object.keys(_R.initialArgs),...Object.keys(this.storyStoreValue.args.get(t))])]).reduce((s,l)=>(s[l]=_R.initialArgs[l],s),{});await this.onUpdateArgs({storyId:t,updatedArgs:o})}async onForceReRender(){await Promise.all(this.storyRenders.map(t=>t.rerender()))}async onForceRemount({storyId:t}){await Promise.all(this.storyRenders.filter(r=>r.id===t).map(r=>r.remount()))}renderStoryToElement(t,r,_R,o){if(!this.renderToCanvas||!this.storyStoreValue)throw new ir.CalledPreviewMethodBeforeInitializationError({methodName:"renderStoryToElement"});let i=new Xl(this.channel,this.storyStoreValue,this.renderToCanvas,_R,t.id,"docs",o,t);return i.renderToElement(r),this.storyRenders.push(i),async()=>{await this.teardownRender(i)}}async teardownRender(t,{viewModeChanged:r}={}){var _R;this.storyRenders=this.storyRenders.filter(o=>o!==t),await((_R=t==null?void 0:t.teardown)==null?void 0:_R.call(t,{viewModeChanged:r}))}async loadStory({storyId:t}){if(!this.storyStoreValue)throw new ir.CalledPreviewMethodBeforeInitializationError({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:t})}getStoryContext(t,{forceInitialArgs:r=!1}={}){if(!this.storyStoreValue)throw new ir.CalledPreviewMethodBeforeInitializationError({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(t,{forceInitialArgs:r})}async extract(t){if(!this.storyStoreValue)throw new ir.CalledPreviewMethodBeforeInitializationError({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(t)}renderPreviewEntryError(t,r){this.previewEntryError=r,Fl.logger.error(t),Fl.logger.error(r),this.channel.emit(Xt.CONFIG_ERROR,r)}},P(Mo,"Preview"),Mo),FT=dt(Ar(),1),Ba=Pt(),xt=wr(),wo=Zr(),kT=process.env.NODE_ENV==="production",kl="Invariant failed";function La(e,t){if(!e){if(kT)throw new Error(kl);var r=typeof t=="function"?t():t,_R=r?"".concat(kl,": ").concat(r):kl;throw new Error(_R)}}P(La,"invariant");var LT=wr(),$T=dt(Tr(),1),Io,vu=(Io=class{constructor(t,r,_R,o){this.channel=t,this.store=r,this.renderStoryToElement=_R,this.storyIdByName=P(i=>{let s=this.nameToStoryId.get(i);if(s)return s;throw new Error(`No story found with that name: ${i}`)},"storyIdByName"),this.componentStories=P(()=>this.componentStoriesValue,"componentStories"),this.componentStoriesFromCSFFile=P(i=>this.store.componentStoriesFromCSFFile({csfFile:i}),"componentStoriesFromCSFFile"),this.storyById=P(i=>{if(!i){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}let s=this.storyIdToCSFFile.get(i);if(!s)throw new Error(`Called \`storyById\` for story that was never loaded: ${i}`);return this.store.storyFromCSFFile({storyId:i,csfFile:s})},"storyById"),this.getStoryContext=P(i=>({...this.store.getStoryContext(i),loaded:{},viewMode:"docs"}),"getStoryContext"),this.loadStory=P(i=>this.store.loadStory({storyId:i}),"loadStory"),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,o.forEach((i,s)=>{this.referenceCSFFile(i)})}referenceCSFFile(t){this.exportsToCSFFile.set(t.moduleExports,t),this.exportsToCSFFile.set(t.moduleExports.default,t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{let _R=t.stories[r.id];this.storyIdToCSFFile.set(_R.id,t),this.exportToStory.set(_R.moduleExport,r)})}attachCSFFile(t){if(!this.exportsToCSFFile.has(t.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(t)||(this.attachedCSFFiles.add(t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{this.nameToStoryId.set(r.name,r.id),this.componentStoriesValue.push(r),this.primaryStory||(this.primaryStory=r)}))}referenceMeta(t,r){let _R=this.resolveModuleExport(t);if(_R.type!=="meta")throw new Error("<Meta of={} /> must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");r&&this.attachCSFFile(_R.csfFile)}get projectAnnotations(){let{projectAnnotations:t}=this.store;if(!t)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return t}resolveAttachedModuleExportType(t){if(t==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use <Meta of={} />?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use <Meta of={} />?");let r=Array.from(this.attachedCSFFiles)[0];if(t==="meta")return{type:"meta",csfFile:r};let{component:_R}=r.meta;if(!_R)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:_R}}resolveModuleExport(t){let r=this.exportsToCSFFile.get(t);if(r)return{type:"meta",csfFile:r};let _R=this.exportToStory.get(t);return _R?{type:"story",story:_R}:{type:"component",component:t}}resolveOf(t,r=[]){let _R;if(["component","meta","story"].includes(t)){let o=t;_R=this.resolveAttachedModuleExportType(o)}else _R=this.resolveModuleExport(t);if(r.length&&!r.includes(_R.type)){let o=_R.type==="component"?"component or unknown":_R.type;throw new Error($T.dedent`Invalid value passed to the 'of' prop. The value was resolved to a '${o}' type but the only types for this block are: ${r.join(", ")}.
194
+ `)}},"sortStoriesV7"),qT=dt(Ar(),1),Fl=Nt(),Xt=wr(),ir=Zr(),Ni=wr(),Vf=Zr(),Ja=new Error("prepareAborted"),{AbortController:Gf}=globalThis;function Jl(e){try{let{name:t="Error",message:r=String(e),stack:_R}=e;return{name:t,message:r,stack:_R}}catch{return{name:"Error",message:String(e)}}}P(Jl,"serializeError");var No,Xl=(No=class{constructor(t,r,_R,o,i,s,l={autoplay:!0,forceInitialArgs:!1},u){this.channel=t,this.store=r,this.renderToScreen=_R,this.callbacks=o,this.id=i,this.viewMode=s,this.renderOptions=l,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=P(()=>{},"teardownRender"),this.torndown=!1,this.abortController=new Gf,u&&(this.story=u,this.phase="preparing")}async runPhase(t,r,_R){this.phase=r,this.channel.emit(Ni.STORY_RENDER_PHASE_CHANGED,{newPhase:this.phase,storyId:this.id}),_R&&(await _R(),this.checkIfAborted(t))}checkIfAborted(t){return t.aborted?(this.phase="aborted",this.channel.emit(Ni.STORY_RENDER_PHASE_CHANGED,{newPhase:this.phase,storyId:this.id}),!0):!1}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),Ja}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing"].includes(this.phase)}async renderToElement(t){return this.canvasElement=t,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:t}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:t})}async render({initial:t=!1,forceRemount:r=!1}={}){var _,O,C,w;let{canvasElement:_R}=this;if(!this.story)throw new Error("cannot render when not prepared");let o=this.story;if(!_R)throw new Error("cannot render when canvasElement is unset");let{id:i,componentId:s,title:l,name:u,tags:d,applyLoaders:c,applyBeforeEach:p,unboundStoryFn:h,playFunction:m,runStep:g}=o;r&&!t&&(this.cancelRender(),this.abortController=new Gf);let y=this.abortController.signal,b=!1,E=o.usesMount;try{let S={...this.storyContext(),viewMode:this.viewMode,abortSignal:y,canvasElement:_R,loaded:{},step:P((V,J)=>g(V,J,S),"step"),context:null,canvas:{},renderToCanvas:P(async()=>{let V=await this.renderToScreen(T,_R);this.teardownRender=V||(()=>{}),b=!0},"renderToCanvas"),mount:P(async(...V)=>{var x,B;(B=(x=this.callbacks).showStoryDuringRender)==null||B.call(x);let J=null;return await this.runPhase(y,"rendering",async()=>{J=await o.mount(S)(...V)}),E&&await this.runPhase(y,"playing"),J},"mount")};S.context=S;let T={componentId:s,title:l,kind:l,id:i,name:u,story:u,tags:d,...this.callbacks,showError:P(V=>(this.phase="errored",this.callbacks.showError(V)),"showError"),showException:P(V=>(this.phase="errored",this.callbacks.showException(V)),"showException"),forceRemount:r||this.notYetRendered,storyContext:S,storyFn:P(()=>h(S),"storyFn"),unboundStoryFn:h};if(await this.runPhase(y,"loading",async()=>{S.loaded=await c(S)}),y.aborted)return;let A=await p(S);if(this.store.addCleanupCallbacks(o,A),this.checkIfAborted(y)||(!b&&!E&&await S.mount(),this.notYetRendered=!1,y.aborted))return;let N=((O=(_=this.story.parameters)==null?void 0:_.test)==null?void 0:O.dangerouslyIgnoreUnhandledErrors)===!0,U=new Set,X=P(V=>U.add("error"in V?V.error:V.reason),"onError");if(this.renderOptions.autoplay&&r&&m&&this.phase!=="errored"){window.addEventListener("error",X),window.addEventListener("unhandledrejection",X),this.disableKeyListeners=!0;try{if(E?await m(S):(S.mount=async()=>{throw new Vf.MountMustBeDestructuredError({playFunction:m.toString()})},await this.runPhase(y,"playing",async()=>m(S))),!b)throw new Vf.NoStoryMountedError;this.checkIfAborted(y),!N&&U.size>0?await this.runPhase(y,"errored"):await this.runPhase(y,"played")}catch(V){if((w=(C=this.callbacks).showStoryDuringRender)==null||w.call(C),await this.runPhase(y,"errored",async()=>{this.channel.emit(Ni.PLAY_FUNCTION_THREW_EXCEPTION,Jl(V))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw V;console.error(V)}if(!N&&U.size>0&&this.channel.emit(Ni.UNHANDLED_ERRORS_WHILE_PLAYING,Array.from(U).map(Jl)),this.disableKeyListeners=!1,window.removeEventListener("unhandledrejection",X),window.removeEventListener("error",X),y.aborted)return}await this.runPhase(y,"completed",async()=>this.channel.emit(Ni.STORY_RENDERED,i))}catch(S){this.phase="errored",this.callbacks.showException(S)}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){var t;(t=this.abortController)==null||t.abort()}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let t=0;t<3;t+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(r=>setTimeout(r,0))}window.location.reload(),await new Promise(()=>{})}},P(No,"StoryRender"),No),{fetch:jT}=qT.global,BT="./index.json",Mo,Hh=(Mo=class{constructor(t,r,_R=nn.getChannel(),o=!0){this.importFn=t,this.getProjectAnnotations=r,this.channel=_R,this.storyRenders=[],this.storeInitializationPromise=new Promise((i,s)=>{this.resolveStoreInitializationPromise=i,this.rejectStoreInitializationPromise=s}),o&&this.initialize()}get storyStore(){return new Proxy({},{get:P((t,r)=>{if(this.storyStoreValue)return(0,Fl.deprecate)("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[r];throw new ir.StoryStoreAccessedBeforeInitializationError},"get")})}async initialize(){this.setupListeners();try{let t=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(t),await this.initializeWithProjectAnnotations(t)}catch(t){this.rejectStoreInitializationPromise(t)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(Xt.STORY_INDEX_INVALIDATED,this.onStoryIndexChanged.bind(this)),this.channel.on(Xt.UPDATE_GLOBALS,this.onUpdateGlobals.bind(this)),this.channel.on(Xt.UPDATE_STORY_ARGS,this.onUpdateArgs.bind(this)),this.channel.on(Xt.ARGTYPES_INFO_REQUEST,this.onRequestArgTypesInfo.bind(this)),this.channel.on(Xt.RESET_STORY_ARGS,this.onResetArgs.bind(this)),this.channel.on(Xt.FORCE_RE_RENDER,this.onForceReRender.bind(this)),this.channel.on(Xt.FORCE_REMOUNT,this.onForceRemount.bind(this))}async getProjectAnnotationsOrRenderError(){try{let t=await this.getProjectAnnotations();if(this.renderToCanvas=t.renderToCanvas,!this.renderToCanvas)throw new ir.MissingRenderToCanvasError;return t}catch(t){throw this.renderPreviewEntryError("Error reading preview.js:",t),t}}async initializeWithProjectAnnotations(t){this.projectAnnotationsBeforeInitialization=t;try{let r=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(r)}catch(r){throw this.renderPreviewEntryError("Error loading story index:",r),r}}async runBeforeAllHook(t){var r,_R;try{await((r=this.beforeAllCleanup)==null?void 0:r.call(this)),this.beforeAllCleanup=await((_R=t.beforeAll)==null?void 0:_R.call(t))}catch(o){throw this.renderPreviewEntryError("Error in beforeAll hook:",o),o}}async getStoryIndexFromServer(){let t=await jT(BT);if(t.status===200)return t.json();throw new ir.StoryIndexFetchError({text:await t.text()})}initializeWithStoryIndex(t){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new Lh(t,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new ir.CalledPreviewMethodBeforeInitializationError({methodName:"emitGlobals"});let t={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(Xt.SET_GLOBALS,t)}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){delete this.previewEntryError,this.getProjectAnnotations=t;let r=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(r),!this.storyStoreValue){await this.initializeWithProjectAnnotations(r);return}this.storyStoreValue.setProjectAnnotations(r),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let t=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(t);return}await this.onStoriesChanged({storyIndex:t})}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async onStoriesChanged({importFn:t,storyIndex:r}){if(!this.storyStoreValue)throw new ir.CalledPreviewMethodBeforeInitializationError({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:t,storyIndex:r})}async onUpdateGlobals({globals:t,currentStory:r}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new ir.CalledPreviewMethodBeforeInitializationError({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(t),r){let{initialGlobals:_R,storyGlobals:o,userGlobals:i,globals:s}=this.storyStoreValue.getStoryContext(r);this.channel.emit(Xt.GLOBALS_UPDATED,{initialGlobals:_R,userGlobals:i,storyGlobals:o,globals:s})}else{let{initialGlobals:_R,globals:o}=this.storyStoreValue.userGlobals;this.channel.emit(Xt.GLOBALS_UPDATED,{initialGlobals:_R,userGlobals:o,storyGlobals:{},globals:o})}await Promise.all(this.storyRenders.map(_R=>_R.rerender()))}async onUpdateArgs({storyId:t,updatedArgs:r}){if(!this.storyStoreValue)throw new ir.CalledPreviewMethodBeforeInitializationError({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(t,r),await Promise.all(this.storyRenders.filter(_R=>_R.id===t&&!_R.renderOptions.forceInitialArgs).map(_R=>_R.story&&_R.story.usesMount?_R.remount():_R.rerender())),this.channel.emit(Xt.STORY_ARGS_UPDATED,{storyId:t,args:this.storyStoreValue.args.get(t)})}async onRequestArgTypesInfo({id:t,payload:r}){var _R;try{await this.storeInitializationPromise;let o=await((_R=this.storyStoreValue)==null?void 0:_R.loadStory(r));this.channel.emit(Xt.ARGTYPES_INFO_RESPONSE,{id:t,success:!0,payload:{argTypes:(o==null?void 0:o.argTypes)||{}},error:null})}catch(o){this.channel.emit(Xt.ARGTYPES_INFO_RESPONSE,{id:t,success:!1,error:o==null?void 0:o.message})}}async onResetArgs({storyId:t,argNames:r}){var i;if(!this.storyStoreValue)throw new ir.CalledPreviewMethodBeforeInitializationError({methodName:"onResetArgs"});let _R=((i=this.storyRenders.find(s=>s.id===t))==null?void 0:i.story)||await this.storyStoreValue.loadStory({storyId:t}),o=(r||[...new Set([...Object.keys(_R.initialArgs),...Object.keys(this.storyStoreValue.args.get(t))])]).reduce((s,l)=>(s[l]=_R.initialArgs[l],s),{});await this.onUpdateArgs({storyId:t,updatedArgs:o})}async onForceReRender(){await Promise.all(this.storyRenders.map(t=>t.rerender()))}async onForceRemount({storyId:t}){await Promise.all(this.storyRenders.filter(r=>r.id===t).map(r=>r.remount()))}renderStoryToElement(t,r,_R,o){if(!this.renderToCanvas||!this.storyStoreValue)throw new ir.CalledPreviewMethodBeforeInitializationError({methodName:"renderStoryToElement"});let i=new Xl(this.channel,this.storyStoreValue,this.renderToCanvas,_R,t.id,"docs",o,t);return i.renderToElement(r),this.storyRenders.push(i),async()=>{await this.teardownRender(i)}}async teardownRender(t,{viewModeChanged:r}={}){var _R;this.storyRenders=this.storyRenders.filter(o=>o!==t),await((_R=t==null?void 0:t.teardown)==null?void 0:_R.call(t,{viewModeChanged:r}))}async loadStory({storyId:t}){if(!this.storyStoreValue)throw new ir.CalledPreviewMethodBeforeInitializationError({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:t})}getStoryContext(t,{forceInitialArgs:r=!1}={}){if(!this.storyStoreValue)throw new ir.CalledPreviewMethodBeforeInitializationError({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(t,{forceInitialArgs:r})}async extract(t){if(!this.storyStoreValue)throw new ir.CalledPreviewMethodBeforeInitializationError({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(t)}renderPreviewEntryError(t,r){this.previewEntryError=r,Fl.logger.error(t),Fl.logger.error(r),this.channel.emit(Xt.CONFIG_ERROR,r)}},P(Mo,"Preview"),Mo),FT=dt(Ar(),1),Ba=Nt(),xt=wr(),wo=Zr(),kT=process.env.NODE_ENV==="production",kl="Invariant failed";function La(e,t){if(!e){if(kT)throw new Error(kl);var r=typeof t=="function"?t():t,_R=r?"".concat(kl,": ").concat(r):kl;throw new Error(_R)}}P(La,"invariant");var LT=wr(),$T=dt(Tr(),1),Io,vu=(Io=class{constructor(t,r,_R,o){this.channel=t,this.store=r,this.renderStoryToElement=_R,this.storyIdByName=P(i=>{let s=this.nameToStoryId.get(i);if(s)return s;throw new Error(`No story found with that name: ${i}`)},"storyIdByName"),this.componentStories=P(()=>this.componentStoriesValue,"componentStories"),this.componentStoriesFromCSFFile=P(i=>this.store.componentStoriesFromCSFFile({csfFile:i}),"componentStoriesFromCSFFile"),this.storyById=P(i=>{if(!i){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}let s=this.storyIdToCSFFile.get(i);if(!s)throw new Error(`Called \`storyById\` for story that was never loaded: ${i}`);return this.store.storyFromCSFFile({storyId:i,csfFile:s})},"storyById"),this.getStoryContext=P(i=>({...this.store.getStoryContext(i),loaded:{},viewMode:"docs"}),"getStoryContext"),this.loadStory=P(i=>this.store.loadStory({storyId:i}),"loadStory"),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,o.forEach((i,s)=>{this.referenceCSFFile(i)})}referenceCSFFile(t){this.exportsToCSFFile.set(t.moduleExports,t),this.exportsToCSFFile.set(t.moduleExports.default,t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{let _R=t.stories[r.id];this.storyIdToCSFFile.set(_R.id,t),this.exportToStory.set(_R.moduleExport,r)})}attachCSFFile(t){if(!this.exportsToCSFFile.has(t.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(t)||(this.attachedCSFFiles.add(t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{this.nameToStoryId.set(r.name,r.id),this.componentStoriesValue.push(r),this.primaryStory||(this.primaryStory=r)}))}referenceMeta(t,r){let _R=this.resolveModuleExport(t);if(_R.type!=="meta")throw new Error("<Meta of={} /> must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");r&&this.attachCSFFile(_R.csfFile)}get projectAnnotations(){let{projectAnnotations:t}=this.store;if(!t)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return t}resolveAttachedModuleExportType(t){if(t==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use <Meta of={} />?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use <Meta of={} />?");let r=Array.from(this.attachedCSFFiles)[0];if(t==="meta")return{type:"meta",csfFile:r};let{component:_R}=r.meta;if(!_R)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:_R}}resolveModuleExport(t){let r=this.exportsToCSFFile.get(t);if(r)return{type:"meta",csfFile:r};let _R=this.exportToStory.get(t);return _R?{type:"story",story:_R}:{type:"component",component:t}}resolveOf(t,r=[]){let _R;if(["component","meta","story"].includes(t)){let o=t;_R=this.resolveAttachedModuleExportType(o)}else _R=this.resolveModuleExport(t);if(r.length&&!r.includes(_R.type)){let o=_R.type==="component"?"component or unknown":_R.type;throw new Error($T.dedent`Invalid value passed to the 'of' prop. The value was resolved to a '${o}' type but the only types for this block are: ${r.join(", ")}.
195
195
  - Did you pass a component to the 'of' prop when the block only supports a story or a meta?
196
196
  - ... or vice versa?
197
- - Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(_R.type){case"component":return{..._R,projectAnnotations:this.projectAnnotations};case"meta":return{..._R,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:_R.csfFile})};case"story":default:return _R}}},P(Io,"DocsContext"),Io),Do,Wf=(Do=class{constructor(t,r,_R,o){this.channel=t,this.store=r,this.entry=_R,this.callbacks=o,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=_R.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Ja;let{importPath:_R,title:o}=this.entry,i=this.store.processCSFFileWithCache(t,_R,o),s=Object.keys(i.stories)[0];this.story=this.store.storyFromCSFFile({storyId:s,csfFile:i}),this.csfFiles=[i,...r],this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=new vu(this.channel,this.store,t,this.csfFiles);return this.csfFiles.forEach(_R=>r.attachCSFFile(_R)),r}async renderToElement(t,r){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let _R=this.docsContext(r),{docs:o}=this.story.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i=await o.renderer(),{render:s}=i,l=P(async()=>{try{await s(_R,o,t),this.channel.emit(LT.DOCS_RENDERED,this.id)}catch(u){this.callbacks.showException(u)}},"renderDocs");return this.rerender=async()=>l(),this.teardownRender=async({viewModeChanged:u})=>{!u||!t||i.unmount(t)},l()}async teardown({viewModeChanged:t}={}){var r;(r=this.teardownRender)==null||r.call(this,{viewModeChanged:t}),this.torndown=!0}},P(Do,"CsfDocsRender"),Do),UT=wr(),qo,Yf=(qo=class{constructor(t,r,_R,o){this.channel=t,this.store=r,this.entry=_R,this.callbacks=o,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=_R.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Ja;this.csfFiles=r,this.exports=t,this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.exports&&this.exports===t.exports)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new vu(this.channel,this.store,t,this.csfFiles)}async renderToElement(t,r){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let _R=this.docsContext(r),{docs:o}=this.store.projectAnnotations.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i={...o,page:this.exports.default},s=await o.renderer(),{render:l}=s,u=P(async()=>{try{await l(_R,i,t),this.channel.emit(UT.DOCS_RENDERED,this.id)}catch(d){this.callbacks.showException(d)}},"renderDocs");return this.rerender=async()=>u(),this.teardownRender=async({viewModeChanged:d}={})=>{!d||!t||(s.unmount(t),this.torndown=!0)},u()}async teardown({viewModeChanged:t}={}){var r;(r=this.teardownRender)==null||r.call(this,{viewModeChanged:t}),this.torndown=!0}},P(qo,"MdxDocsRender"),qo),HT=globalThis;function zh(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}P(zh,"focusInInput");var Vh="attached-mdx",zT="unattached-mdx";function Gh({tags:e}){return(e==null?void 0:e.includes(zT))||(e==null?void 0:e.includes(Vh))}P(Gh,"isMdxEntry");function $a(e){return e.type==="story"}P($a,"isStoryRender");function Wh(e){return e.type==="docs"}P(Wh,"isDocsRender");function Yh(e){return Wh(e)&&e.subtype==="csf"}P(Yh,"isCsfDocsRender");var jo,Kh=(jo=class extends Hh{constructor(t,r,_R,o){super(t,r,void 0,!1),this.importFn=t,this.getProjectAnnotations=r,this.selectionStore=_R,this.view=o,this.initialize()}setupListeners(){super.setupListeners(),HT.onkeydown=this.onKeydown.bind(this),this.channel.on(xt.SET_CURRENT_STORY,this.onSetCurrentStory.bind(this)),this.channel.on(xt.UPDATE_QUERY_PARAMS,this.onUpdateQueryParams.bind(this)),this.channel.on(xt.PRELOAD_ENTRIES,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new wo.CalledPreviewMethodBeforeInitializationError({methodName:"setInitialGlobals"});let{globals:t}=this.selectionStore.selectionSpecifier||{};t&&this.storyStoreValue.userGlobals.updateFromPersisted(t),this.emitGlobals()}async initializeWithStoryIndex(t){return await super.initializeWithStoryIndex(t),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new wo.CalledPreviewMethodBeforeInitializationError({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:t,args:r}=this.selectionStore.selectionSpecifier,_R=this.storyStoreValue.storyIndex.entryFromSpecifier(t);if(!_R){t==="*"?this.renderStoryLoadingException(t,new wo.EmptyIndexError):this.renderStoryLoadingException(t,new wo.NoStoryMatchError({storySpecifier:t.toString()}));return}let{id:o,type:i}=_R;this.selectionStore.setSelection({storyId:o,viewMode:i}),this.channel.emit(xt.STORY_SPECIFIED,this.selectionStore.selection),this.channel.emit(xt.CURRENT_STORY_WAS_SET,this.selectionStore.selection),await this.renderSelection({persistedArgs:r})}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:t}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:t,storyIndex:r}){await super.onStoriesChanged({importFn:t,storyIndex:r}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(t){if(!this.storyRenders.find(r=>r.disableKeyListeners)&&!zh(t)){let{altKey:r,ctrlKey:_R,metaKey:o,shiftKey:i,key:s,code:l,keyCode:u}=t;this.channel.emit(xt.PREVIEW_KEYDOWN,{event:{altKey:r,ctrlKey:_R,metaKey:o,shiftKey:i,key:s,code:l,keyCode:u}})}}async onSetCurrentStory(t){this.selectionStore.setSelection({viewMode:"story",...t}),await this.storeInitializationPromise,this.channel.emit(xt.CURRENT_STORY_WAS_SET,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(t){this.selectionStore.setQueryParams(t)}async onUpdateGlobals({globals:t}){var _R,o;let r=this.currentRender instanceof Xl&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:t,currentStory:r}),(this.currentRender instanceof Yf||this.currentRender instanceof Wf)&&await((o=(_R=this.currentRender).rerender)==null?void 0:o.call(_R))}async onUpdateArgs({storyId:t,updatedArgs:r}){super.onUpdateArgs({storyId:t,updatedArgs:r})}async onPreloadStories({ids:t}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(t.map(r=>{var _R;return(_R=this.storyStoreValue)==null?void 0:_R.loadEntry(r)}))}async renderSelection({persistedArgs:t}={}){var h,m,g,y;let{renderToCanvas:r}=this;if(!this.storyStoreValue||!r)throw new wo.CalledPreviewMethodBeforeInitializationError({methodName:"renderSelection"});let{selection:_R}=this.selectionStore;if(!_R)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:o}=_R,i;try{i=await this.storyStoreValue.storyIdToEntry(o)}catch(b){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(o,b);return}let s=((h=this.currentSelection)==null?void 0:h.storyId)!==o,l=((m=this.currentRender)==null?void 0:m.type)!==i.type;i.type==="story"?this.view.showPreparingStory({immediate:l}):this.view.showPreparingDocs({immediate:l}),(g=this.currentRender)!=null&&g.isPreparing()&&await this.teardownRender(this.currentRender);let u;i.type==="story"?u=new Xl(this.channel,this.storyStoreValue,r,this.mainStoryCallbacks(o),o,"story"):Gh(i)?u=new Yf(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(o)):u=new Wf(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(o));let d=this.currentSelection;this.currentSelection=_R;let c=this.currentRender;this.currentRender=u;try{await u.prepare()}catch(b){c&&await this.teardownRender(c),b!==Ja&&this.renderStoryLoadingException(o,b);return}let p=!s&&c&&!u.isEqual(c);if(t&&$a(u)&&(La(!!u.story),this.storyStoreValue.args.updateFromPersisted(u.story,t)),c&&!c.torndown&&!s&&!p&&!l){this.currentRender=c,this.channel.emit(xt.STORY_UNCHANGED,o),this.view.showMain();return}if(c&&await this.teardownRender(c,{viewModeChanged:l}),d&&(s||l)&&this.channel.emit(xt.STORY_CHANGED,o),$a(u)){La(!!u.story);let{parameters:b,initialArgs:E,argTypes:_,unmappedArgs:O,initialGlobals:C,userGlobals:w,storyGlobals:S,globals:T}=this.storyStoreValue.getStoryContext(u.story);this.channel.emit(xt.STORY_PREPARED,{id:o,parameters:b,initialArgs:E,argTypes:_,args:O}),this.channel.emit(xt.GLOBALS_UPDATED,{userGlobals:w,storyGlobals:S,globals:T,initialGlobals:C})}else{let{parameters:b}=this.storyStoreValue.projectAnnotations,{initialGlobals:E,globals:_}=this.storyStoreValue.userGlobals;if(this.channel.emit(xt.GLOBALS_UPDATED,{globals:_,initialGlobals:E,storyGlobals:{},userGlobals:_}),Yh(u)||((y=u.entry.tags)==null?void 0:y.includes(Vh))){if(!u.csfFiles)throw new wo.MdxFileWithNoCsfReferencesError({storyId:o});({parameters:b}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:u.csfFiles[0]}))}this.channel.emit(xt.DOCS_PREPARED,{id:o,parameters:b})}$a(u)?(La(!!u.story),this.storyRenders.push(u),this.currentRender.renderToElement(this.view.prepareForStory(u.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(t,{viewModeChanged:r=!1}={}){var _R;this.storyRenders=this.storyRenders.filter(o=>o!==t),await((_R=t==null?void 0:t.teardown)==null?void 0:_R.call(t,{viewModeChanged:r}))}mainStoryCallbacks(t){return{showStoryDuringRender:P(()=>this.view.showStoryDuringRender(),"showStoryDuringRender"),showMain:P(()=>this.view.showMain(),"showMain"),showError:P(r=>this.renderError(t,r),"showError"),showException:P(r=>this.renderException(t,r),"showException")}}renderPreviewEntryError(t,r){super.renderPreviewEntryError(t,r),this.view.showErrorDisplay(r)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(xt.STORY_MISSING)}renderStoryLoadingException(t,r){Ba.logger.error(r),this.view.showErrorDisplay(r),this.channel.emit(xt.STORY_MISSING,t)}renderException(t,r){let{name:_R="Error",message:o=String(r),stack:i}=r;this.channel.emit(xt.STORY_THREW_EXCEPTION,{name:_R,message:o,stack:i}),this.channel.emit(xt.STORY_RENDER_PHASE_CHANGED,{newPhase:"errored",storyId:t}),this.view.showErrorDisplay(r),Ba.logger.error(`Error rendering story '${t}':`),Ba.logger.error(r)}renderError(t,{title:r,description:_R}){Ba.logger.error(`Error rendering story ${r}: ${_R}`),this.channel.emit(xt.STORY_ERRORED,{title:r,description:_R}),this.channel.emit(xt.STORY_RENDER_PHASE_CHANGED,{newPhase:"errored",storyId:t}),this.view.showErrorDisplay({message:r,stack:_R})}},P(jo,"PreviewWithSelection"),jo),VT=dt(Ar(),1),Ql=dt(tu(),1),GT=Pt(),WT=dt(tu(),1),YT=dt(Tr(),1),Kf=/^[a-zA-Z0-9 _-]*$/,Jh=/^-?[0-9]+(\.[0-9]+)?$/,KT=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,Xh=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Zl=P((e="",t)=>e===null||e===""||!Kf.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?Kf.test(t)||Jh.test(t)||KT.test(t)||Xh.test(t):Array.isArray(t)?t.every(r=>Zl(e,r)):fr(t)?Object.entries(t).every(([r,_R])=>Zl(r,_R)):!1,"validateArgs"),JT={delimiter:";",nesting:!0,arrayRepeat:!0,arrayRepeatSyntax:"bracket",nestingSyntax:"js",valueDeserializer(e){if(e.startsWith("!")){if(e==="!undefined")return;if(e==="!null")return null;if(e==="!true")return!0;if(e==="!false")return!1;if(e.startsWith("!date(")&&e.endsWith(")"))return new Date(e.replaceAll(" ","+").slice(6,-1));if(e.startsWith("!hex(")&&e.endsWith(")"))return`#${e.slice(5,-1)}`;let t=e.slice(1).match(Xh);if(t)return e.startsWith("!rgba")||e.startsWith("!RGBA")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]}, ${t[5]})`:e.startsWith("!hsla")||e.startsWith("!HSLA")?`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%, ${t[5]})`:e.startsWith("!rgb")||e.startsWith("!RGB")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]})`:`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%)`}return Jh.test(e)?Number(e):e}},Jf=P(e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,WT.parse)(t.join(";"),JT)).reduce((r,[_R,o])=>Zl(_R,o)?Object.assign(r,{[_R]:o}):(GT.once.warn(YT.dedent`
197
+ - Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(_R.type){case"component":return{..._R,projectAnnotations:this.projectAnnotations};case"meta":return{..._R,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:_R.csfFile})};case"story":default:return _R}}},P(Io,"DocsContext"),Io),Do,Wf=(Do=class{constructor(t,r,_R,o){this.channel=t,this.store=r,this.entry=_R,this.callbacks=o,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=_R.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Ja;let{importPath:_R,title:o}=this.entry,i=this.store.processCSFFileWithCache(t,_R,o),s=Object.keys(i.stories)[0];this.story=this.store.storyFromCSFFile({storyId:s,csfFile:i}),this.csfFiles=[i,...r],this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=new vu(this.channel,this.store,t,this.csfFiles);return this.csfFiles.forEach(_R=>r.attachCSFFile(_R)),r}async renderToElement(t,r){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let _R=this.docsContext(r),{docs:o}=this.story.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i=await o.renderer(),{render:s}=i,l=P(async()=>{try{await s(_R,o,t),this.channel.emit(LT.DOCS_RENDERED,this.id)}catch(u){this.callbacks.showException(u)}},"renderDocs");return this.rerender=async()=>l(),this.teardownRender=async({viewModeChanged:u})=>{!u||!t||i.unmount(t)},l()}async teardown({viewModeChanged:t}={}){var r;(r=this.teardownRender)==null||r.call(this,{viewModeChanged:t}),this.torndown=!0}},P(Do,"CsfDocsRender"),Do),UT=wr(),qo,Yf=(qo=class{constructor(t,r,_R,o){this.channel=t,this.store=r,this.entry=_R,this.callbacks=o,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=_R.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Ja;this.csfFiles=r,this.exports=t,this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.exports&&this.exports===t.exports)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new vu(this.channel,this.store,t,this.csfFiles)}async renderToElement(t,r){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let _R=this.docsContext(r),{docs:o}=this.store.projectAnnotations.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i={...o,page:this.exports.default},s=await o.renderer(),{render:l}=s,u=P(async()=>{try{await l(_R,i,t),this.channel.emit(UT.DOCS_RENDERED,this.id)}catch(d){this.callbacks.showException(d)}},"renderDocs");return this.rerender=async()=>u(),this.teardownRender=async({viewModeChanged:d}={})=>{!d||!t||(s.unmount(t),this.torndown=!0)},u()}async teardown({viewModeChanged:t}={}){var r;(r=this.teardownRender)==null||r.call(this,{viewModeChanged:t}),this.torndown=!0}},P(qo,"MdxDocsRender"),qo),HT=globalThis;function zh(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}P(zh,"focusInInput");var Vh="attached-mdx",zT="unattached-mdx";function Gh({tags:e}){return(e==null?void 0:e.includes(zT))||(e==null?void 0:e.includes(Vh))}P(Gh,"isMdxEntry");function $a(e){return e.type==="story"}P($a,"isStoryRender");function Wh(e){return e.type==="docs"}P(Wh,"isDocsRender");function Yh(e){return Wh(e)&&e.subtype==="csf"}P(Yh,"isCsfDocsRender");var jo,Kh=(jo=class extends Hh{constructor(t,r,_R,o){super(t,r,void 0,!1),this.importFn=t,this.getProjectAnnotations=r,this.selectionStore=_R,this.view=o,this.initialize()}setupListeners(){super.setupListeners(),HT.onkeydown=this.onKeydown.bind(this),this.channel.on(xt.SET_CURRENT_STORY,this.onSetCurrentStory.bind(this)),this.channel.on(xt.UPDATE_QUERY_PARAMS,this.onUpdateQueryParams.bind(this)),this.channel.on(xt.PRELOAD_ENTRIES,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new wo.CalledPreviewMethodBeforeInitializationError({methodName:"setInitialGlobals"});let{globals:t}=this.selectionStore.selectionSpecifier||{};t&&this.storyStoreValue.userGlobals.updateFromPersisted(t),this.emitGlobals()}async initializeWithStoryIndex(t){return await super.initializeWithStoryIndex(t),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new wo.CalledPreviewMethodBeforeInitializationError({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:t,args:r}=this.selectionStore.selectionSpecifier,_R=this.storyStoreValue.storyIndex.entryFromSpecifier(t);if(!_R){t==="*"?this.renderStoryLoadingException(t,new wo.EmptyIndexError):this.renderStoryLoadingException(t,new wo.NoStoryMatchError({storySpecifier:t.toString()}));return}let{id:o,type:i}=_R;this.selectionStore.setSelection({storyId:o,viewMode:i}),this.channel.emit(xt.STORY_SPECIFIED,this.selectionStore.selection),this.channel.emit(xt.CURRENT_STORY_WAS_SET,this.selectionStore.selection),await this.renderSelection({persistedArgs:r})}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:t}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:t,storyIndex:r}){await super.onStoriesChanged({importFn:t,storyIndex:r}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(t){if(!this.storyRenders.find(r=>r.disableKeyListeners)&&!zh(t)){let{altKey:r,ctrlKey:_R,metaKey:o,shiftKey:i,key:s,code:l,keyCode:u}=t;this.channel.emit(xt.PREVIEW_KEYDOWN,{event:{altKey:r,ctrlKey:_R,metaKey:o,shiftKey:i,key:s,code:l,keyCode:u}})}}async onSetCurrentStory(t){this.selectionStore.setSelection({viewMode:"story",...t}),await this.storeInitializationPromise,this.channel.emit(xt.CURRENT_STORY_WAS_SET,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(t){this.selectionStore.setQueryParams(t)}async onUpdateGlobals({globals:t}){var _R,o;let r=this.currentRender instanceof Xl&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:t,currentStory:r}),(this.currentRender instanceof Yf||this.currentRender instanceof Wf)&&await((o=(_R=this.currentRender).rerender)==null?void 0:o.call(_R))}async onUpdateArgs({storyId:t,updatedArgs:r}){super.onUpdateArgs({storyId:t,updatedArgs:r})}async onPreloadStories({ids:t}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(t.map(r=>{var _R;return(_R=this.storyStoreValue)==null?void 0:_R.loadEntry(r)}))}async renderSelection({persistedArgs:t}={}){var h,m,g,y;let{renderToCanvas:r}=this;if(!this.storyStoreValue||!r)throw new wo.CalledPreviewMethodBeforeInitializationError({methodName:"renderSelection"});let{selection:_R}=this.selectionStore;if(!_R)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:o}=_R,i;try{i=await this.storyStoreValue.storyIdToEntry(o)}catch(b){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(o,b);return}let s=((h=this.currentSelection)==null?void 0:h.storyId)!==o,l=((m=this.currentRender)==null?void 0:m.type)!==i.type;i.type==="story"?this.view.showPreparingStory({immediate:l}):this.view.showPreparingDocs({immediate:l}),(g=this.currentRender)!=null&&g.isPreparing()&&await this.teardownRender(this.currentRender);let u;i.type==="story"?u=new Xl(this.channel,this.storyStoreValue,r,this.mainStoryCallbacks(o),o,"story"):Gh(i)?u=new Yf(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(o)):u=new Wf(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(o));let d=this.currentSelection;this.currentSelection=_R;let c=this.currentRender;this.currentRender=u;try{await u.prepare()}catch(b){c&&await this.teardownRender(c),b!==Ja&&this.renderStoryLoadingException(o,b);return}let p=!s&&c&&!u.isEqual(c);if(t&&$a(u)&&(La(!!u.story),this.storyStoreValue.args.updateFromPersisted(u.story,t)),c&&!c.torndown&&!s&&!p&&!l){this.currentRender=c,this.channel.emit(xt.STORY_UNCHANGED,o),this.view.showMain();return}if(c&&await this.teardownRender(c,{viewModeChanged:l}),d&&(s||l)&&this.channel.emit(xt.STORY_CHANGED,o),$a(u)){La(!!u.story);let{parameters:b,initialArgs:E,argTypes:_,unmappedArgs:O,initialGlobals:C,userGlobals:w,storyGlobals:S,globals:T}=this.storyStoreValue.getStoryContext(u.story);this.channel.emit(xt.STORY_PREPARED,{id:o,parameters:b,initialArgs:E,argTypes:_,args:O}),this.channel.emit(xt.GLOBALS_UPDATED,{userGlobals:w,storyGlobals:S,globals:T,initialGlobals:C})}else{let{parameters:b}=this.storyStoreValue.projectAnnotations,{initialGlobals:E,globals:_}=this.storyStoreValue.userGlobals;if(this.channel.emit(xt.GLOBALS_UPDATED,{globals:_,initialGlobals:E,storyGlobals:{},userGlobals:_}),Yh(u)||((y=u.entry.tags)==null?void 0:y.includes(Vh))){if(!u.csfFiles)throw new wo.MdxFileWithNoCsfReferencesError({storyId:o});({parameters:b}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:u.csfFiles[0]}))}this.channel.emit(xt.DOCS_PREPARED,{id:o,parameters:b})}$a(u)?(La(!!u.story),this.storyRenders.push(u),this.currentRender.renderToElement(this.view.prepareForStory(u.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(t,{viewModeChanged:r=!1}={}){var _R;this.storyRenders=this.storyRenders.filter(o=>o!==t),await((_R=t==null?void 0:t.teardown)==null?void 0:_R.call(t,{viewModeChanged:r}))}mainStoryCallbacks(t){return{showStoryDuringRender:P(()=>this.view.showStoryDuringRender(),"showStoryDuringRender"),showMain:P(()=>this.view.showMain(),"showMain"),showError:P(r=>this.renderError(t,r),"showError"),showException:P(r=>this.renderException(t,r),"showException")}}renderPreviewEntryError(t,r){super.renderPreviewEntryError(t,r),this.view.showErrorDisplay(r)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(xt.STORY_MISSING)}renderStoryLoadingException(t,r){Ba.logger.error(r),this.view.showErrorDisplay(r),this.channel.emit(xt.STORY_MISSING,t)}renderException(t,r){let{name:_R="Error",message:o=String(r),stack:i}=r;this.channel.emit(xt.STORY_THREW_EXCEPTION,{name:_R,message:o,stack:i}),this.channel.emit(xt.STORY_RENDER_PHASE_CHANGED,{newPhase:"errored",storyId:t}),this.view.showErrorDisplay(r),Ba.logger.error(`Error rendering story '${t}':`),Ba.logger.error(r)}renderError(t,{title:r,description:_R}){Ba.logger.error(`Error rendering story ${r}: ${_R}`),this.channel.emit(xt.STORY_ERRORED,{title:r,description:_R}),this.channel.emit(xt.STORY_RENDER_PHASE_CHANGED,{newPhase:"errored",storyId:t}),this.view.showErrorDisplay({message:r,stack:_R})}},P(jo,"PreviewWithSelection"),jo),VT=dt(Ar(),1),Ql=dt(tu(),1),GT=Nt(),WT=dt(tu(),1),YT=dt(Tr(),1),Kf=/^[a-zA-Z0-9 _-]*$/,Jh=/^-?[0-9]+(\.[0-9]+)?$/,KT=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,Xh=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Zl=P((e="",t)=>e===null||e===""||!Kf.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?Kf.test(t)||Jh.test(t)||KT.test(t)||Xh.test(t):Array.isArray(t)?t.every(r=>Zl(e,r)):fr(t)?Object.entries(t).every(([r,_R])=>Zl(r,_R)):!1,"validateArgs"),JT={delimiter:";",nesting:!0,arrayRepeat:!0,arrayRepeatSyntax:"bracket",nestingSyntax:"js",valueDeserializer(e){if(e.startsWith("!")){if(e==="!undefined")return;if(e==="!null")return null;if(e==="!true")return!0;if(e==="!false")return!1;if(e.startsWith("!date(")&&e.endsWith(")"))return new Date(e.replaceAll(" ","+").slice(6,-1));if(e.startsWith("!hex(")&&e.endsWith(")"))return`#${e.slice(5,-1)}`;let t=e.slice(1).match(Xh);if(t)return e.startsWith("!rgba")||e.startsWith("!RGBA")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]}, ${t[5]})`:e.startsWith("!hsla")||e.startsWith("!HSLA")?`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%, ${t[5]})`:e.startsWith("!rgb")||e.startsWith("!RGB")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]})`:`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%)`}return Jh.test(e)?Number(e):e}},Jf=P(e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,WT.parse)(t.join(";"),JT)).reduce((r,[_R,o])=>Zl(_R,o)?Object.assign(r,{[_R]:o}):(GT.once.warn(YT.dedent`
198
198
  Omitted potentially unsafe URL args.
199
199
 
200
200
  More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url
201
- `),r),{})},"parseArgsParam"),{history:Qh,document:Cr}=VT.global;function Zh(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}P(Zh,"pathToId");var em=P(({selection:e,extraParams:t})=>{let r=Cr==null?void 0:Cr.location.search.slice(1),{path:_R,selectedKind:o,selectedStory:i,...s}=(0,Ql.parse)(r);return`?${(0,Ql.stringify)({...s,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},"getQueryString"),XT=P(e=>{if(!e)return;let t=em({selection:e}),{hash:r=""}=Cr.location;Cr.title=e.storyId,Qh.replaceState({},"",`${Cr.location.pathname}${t}${r}`)},"setPath"),QT=P(e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,"isObject"),Di=P(e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return Di(e[0]);if(QT(e))return Di(Object.values(e).filter(Boolean))}},"getFirstString"),ZT=P(()=>{if(typeof Cr<"u"){let e=Cr.location.search.slice(1),t=(0,Ql.parse)(e),r=typeof t.args=="string"?Jf(t.args):void 0,_R=typeof t.globals=="string"?Jf(t.globals):void 0,o=Di(t.viewMode);(typeof o!="string"||!o.match(/docs|story/))&&(o="story");let i=Di(t.path),s=i?Zh(i):Di(t.id);if(s)return{storySpecifier:s,args:r,globals:_R,viewMode:o}}return null},"getSelectionSpecifierFromPath"),Bo,tm=(Bo=class{constructor(){this.selectionSpecifier=ZT()}setSelection(t){this.selection=t,XT(this.selection)}setQueryParams(t){let r=em({extraParams:t}),{hash:_R=""}=Cr.location;Qh.replaceState({},"",`${Cr.location.pathname}${r}${_R}`)}},P(Bo,"UrlStore"),Bo),eR=dt(Ar(),1),tR=Pt(),rR=dt(gA(),1),nR=dt(tu(),1),oR=dt(Tr(),1),{document:kt}=eR.global,Xf=100,rm=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(rm||{}),Ll={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},$l={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},Qf=new rR.default({escapeXML:!0}),Fo,nm=(Fo=class{constructor(){if(this.testing=!1,typeof kt<"u"){let{__SPECIAL_TEST_PARAMETER__:t}=(0,nR.parse)(kt.location.search.slice(1));switch(t){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}default:}}}prepareForStory(t){return this.showStory(),this.applyLayout(t.parameters.layout),kt.documentElement.scrollTop=0,kt.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return kt.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),kt.documentElement.scrollTop=0,kt.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return kt.getElementById("storybook-docs")}applyLayout(t="padded"){if(t==="none"){kt.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(t);let r=$l[t];kt.body.classList.remove(this.currentLayoutClass),kt.body.classList.add(r),this.currentLayoutClass=r}checkIfLayoutExists(t){$l[t]||tR.logger.warn(oR.dedent`
201
+ `),r),{})},"parseArgsParam"),{history:Qh,document:Cr}=VT.global;function Zh(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}P(Zh,"pathToId");var em=P(({selection:e,extraParams:t})=>{let r=Cr==null?void 0:Cr.location.search.slice(1),{path:_R,selectedKind:o,selectedStory:i,...s}=(0,Ql.parse)(r);return`?${(0,Ql.stringify)({...s,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},"getQueryString"),XT=P(e=>{if(!e)return;let t=em({selection:e}),{hash:r=""}=Cr.location;Cr.title=e.storyId,Qh.replaceState({},"",`${Cr.location.pathname}${t}${r}`)},"setPath"),QT=P(e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,"isObject"),Di=P(e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return Di(e[0]);if(QT(e))return Di(Object.values(e).filter(Boolean))}},"getFirstString"),ZT=P(()=>{if(typeof Cr<"u"){let e=Cr.location.search.slice(1),t=(0,Ql.parse)(e),r=typeof t.args=="string"?Jf(t.args):void 0,_R=typeof t.globals=="string"?Jf(t.globals):void 0,o=Di(t.viewMode);(typeof o!="string"||!o.match(/docs|story/))&&(o="story");let i=Di(t.path),s=i?Zh(i):Di(t.id);if(s)return{storySpecifier:s,args:r,globals:_R,viewMode:o}}return null},"getSelectionSpecifierFromPath"),Bo,tm=(Bo=class{constructor(){this.selectionSpecifier=ZT()}setSelection(t){this.selection=t,XT(this.selection)}setQueryParams(t){let r=em({extraParams:t}),{hash:_R=""}=Cr.location;Qh.replaceState({},"",`${Cr.location.pathname}${r}${_R}`)}},P(Bo,"UrlStore"),Bo),eR=dt(Ar(),1),tR=Nt(),rR=dt(gA(),1),nR=dt(tu(),1),oR=dt(Tr(),1),{document:kt}=eR.global,Xf=100,rm=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(rm||{}),Ll={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},$l={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},Qf=new rR.default({escapeXML:!0}),Fo,nm=(Fo=class{constructor(){if(this.testing=!1,typeof kt<"u"){let{__SPECIAL_TEST_PARAMETER__:t}=(0,nR.parse)(kt.location.search.slice(1));switch(t){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}default:}}}prepareForStory(t){return this.showStory(),this.applyLayout(t.parameters.layout),kt.documentElement.scrollTop=0,kt.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return kt.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),kt.documentElement.scrollTop=0,kt.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return kt.getElementById("storybook-docs")}applyLayout(t="padded"){if(t==="none"){kt.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(t);let r=$l[t];kt.body.classList.remove(this.currentLayoutClass),kt.body.classList.add(r),this.currentLayoutClass=r}checkIfLayoutExists(t){$l[t]||tR.logger.warn(oR.dedent`
202
202
  The desired layout: ${t} is not a valid option.
203
203
  The possible options are: ${Object.keys($l).join(", ")}, none.
204
204
  `)}showMode(t){clearTimeout(this.preparingTimeout),Object.keys(rm).forEach(r=>{r===t?kt.body.classList.add(Ll[r]):kt.body.classList.remove(Ll[r])})}showErrorDisplay({message:t="",stack:r=""}){let _R=t,o=r,i=t.split(`
205
205
  `);i.length>1&&([_R]=i,o=i.slice(1).join(`
206
- `).replace(/^\_R/,"")),kt.getElementById("error-message").innerHTML=Qf.toHtml(_R),kt.getElementById("error-stack").innerHTML=Qf.toHtml(o),this.showMode("ERROR")}showNoPreview(){var t,r;this.testing||(this.showMode("NOPREVIEW"),(t=this.storyRoot())==null||t.setAttribute("hidden","true"),(r=this.docsRoot())==null||r.setAttribute("hidden","true"))}showPreparingStory({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),Xf)}showPreparingDocs({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),Xf)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){kt.body.classList.add(Ll.MAIN)}},P(Fo,"WebView"),Fo),ko,iR=(ko=class extends Kh{constructor(t,r){super(t,r,new tm,new nm),this.importFn=t,this.getProjectAnnotations=r,FT.global.__STORYBOOK_PREVIEW__=this}},P(ko,"PreviewWeb"),ko),aR=dt(Ar(),1),{document:Rn}=aR.global,sR=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],lR="script",Zf="scripts-root";function Ga(){let e=Rn.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),Rn.dispatchEvent(e)}P(Ga,"simulateDOMContentLoaded");function om(e,t,r){let _R=Rn.createElement("script");_R.type=e.type==="module"?"module":"text/javascript",e.src?(_R.onload=t,_R.onerror=t,_R.src=e.src):_R.textContent=e.innerText,r?r.appendChild(_R):Rn.head.appendChild(_R),e.parentNode.removeChild(e),e.src||t()}P(om,"insertScript");function Eu(e,t,r=0){e[r](()=>{r++,r===e.length?t():Eu(e,t,r)})}P(Eu,"insertScriptsSequentially");function im(e){let t=Rn.getElementById(Zf);t?t.innerHTML="":(t=Rn.createElement("div"),t.id=Zf,Rn.body.appendChild(t));let r=Array.from(e.querySelectorAll(lR));if(r.length){let _R=[];r.forEach(o=>{let i=o.getAttribute("type");(!i||sR.includes(i))&&_R.push(s=>om(o,s,t))}),_R.length&&Eu(_R,Ga,void 0)}else Ga()}P(im,"simulatePageLoad")});var um=or((cH,lm)=>{"use strict";lm.exports=sm()});var Ku=or((dH,Fg)=>{"use strict";var Fu=Object.defineProperty,uR=Object.getOwnPropertyDescriptor,cR=Object.getOwnPropertyNames,dR=Object.prototype.hasOwnProperty,pR=(e,t)=>{for(var r in t)Fu(e,r,{get:t[r],enumerable:!0})},fR=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of cR(t))!dR.call(e,o)&&o!==r&&Fu(e,o,{get:()=>t[o],enumerable:!(_R=uR(t,o))||_R.enumerable});return e},hR=e=>fR(Fu({},"__esModule",{value:!0}),e),Zm={};pR(Zm,{CallStates:()=>Bg,EVENTS:()=>Rr,instrument:()=>lP});Fg.exports=hR(Zm);var mR=xl(),Xa=_f(),gR=um(),Kt=Tl(),yR={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]},bR=Object.entries(yR);function ku(e){return String(e)}ku.open="";ku.close="";function vR(e=!1){let t=typeof process<"u"?process:void 0,r=(t==null?void 0:t.env)||{},_R=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in r||_R.includes("--no-color"))&&("FORCE_COLOR"in r||_R.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function ER(e=!1){let t=vR(e),r=(s,l,u,d)=>{let c="",p=0;do c+=s.substring(p,d)+u,p=d+l.length,d=s.indexOf(l,p);while(~d);return c+s.substring(p)},_R=(s,l,u=s)=>{let d=c=>{let p=String(c),h=p.indexOf(l,s.length);return~h?s+r(p,l,u,h)+l:s+p+l};return d.open=s,d.close=l,d},o={isColorSupported:t},i=s=>`\x1B[${s}m`;for(let[s,l]of bR)o[s]=t?_R(i(l[0]),i(l[1]),l[2]):ku;return o}var _R=require("tty"),Br=ER((0,_R.isatty)(1));function wR(e,t){let r=Object.keys(e),_R=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&_R.push(o);return _R}function rs(e,t,r,_R,o,i,s=": "){let l="",u=0,d=e.next();if(!d.done){l+=t.spacingOuter;let c=r+t.indent;for(;!d.done;){if(l+=c,u++===t.maxWidth){l+="\u2026";break}let p=i(d.value[0],t,c,_R,o),h=i(d.value[1],t,c,_R,o);l+=p+s+h,d=e.next(),d.done?t.min||(l+=","):l+=`,${t.spacingInner}`}l+=t.spacingOuter+r}return l}function Lu(e,t,r,_R,o,i){let s="",l=0,u=e.next();if(!u.done){s+=t.spacingOuter;let d=r+t.indent;for(;!u.done;){if(s+=d,l++===t.maxWidth){s+="\u2026";break}s+=i(u.value,t,d,_R,o),u=e.next(),u.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}function ts(e,t,r,_R,o,i){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=d=>d instanceof DataView,u=l(e)?e.byteLength:e.length;if(u>0){s+=t.spacingOuter;let d=r+t.indent;for(let c=0;c<u;c++){if(s+=d,c===t.maxWidth){s+="\u2026";break}(l(e)||c in e)&&(s+=i(l(e)?e.getInt8(c):e[c],t,d,_R,o)),c<u-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+r}return s}function $u(e,t,r,_R,o,i){let s="",l=wR(e,t.compareKeys);if(l.length>0){s+=t.spacingOuter;let u=r+t.indent;for(let d=0;d<l.length;d++){let c=l[d],p=i(c,t,u,_R,o),h=i(e[c],t,u,_R,o);s+=`${u+p}: ${h}`,d<l.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+r}return s}var SR=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,_u=" ",CR=(e,t,r,_R,o,i)=>{let s=e.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return++_R>t.maxDepth?`[${s}]`:`${s+_u}[${ts(e.sample,t,r,_R,o,i)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return++_R>t.maxDepth?`[${s}]`:`${s+_u}{${$u(e.sample,t,r,_R,o,i)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+_u+i(e.sample,t,r,_R,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},AR=e=>e&&e.$$typeof===SR,TR={serialize:CR,test:AR},RR=" ",eg=new Set(["DOMStringMap","NamedNodeMap"]),xR=/^(?:HTML\w*Collection|NodeList)$/;function OR(e){return eg.has(e)||xR.test(e)}var PR=e=>e&&e.constructor&&!!e.constructor.name&&OR(e.constructor.name);function NR(e){return e.constructor.name==="NamedNodeMap"}var MR=(e,t,r,_R,o,i)=>{let s=e.constructor.name;return++_R>t.maxDepth?`[${s}]`:(t.min?"":s+RR)+(eg.has(s)?`{${$u(NR(e)?[...e].reduce((l,u)=>(l[u.name]=u.value,l),{}):{...e},t,r,_R,o,i)}}`:`[${ts([...e],t,r,_R,o,i)}]`)},IR={serialize:MR,test:PR};function tg(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function Uu(e,t,r,_R,o,i,s){let l=_R+r.indent,u=r.colors;return e.map(d=>{let c=t[d],p=s(c,r,l,o,i);return typeof c!="string"&&(p.includes(`
206
+ `).replace(/^\_R/,"")),kt.getElementById("error-message").innerHTML=Qf.toHtml(_R),kt.getElementById("error-stack").innerHTML=Qf.toHtml(o),this.showMode("ERROR")}showNoPreview(){var t,r;this.testing||(this.showMode("NOPREVIEW"),(t=this.storyRoot())==null||t.setAttribute("hidden","true"),(r=this.docsRoot())==null||r.setAttribute("hidden","true"))}showPreparingStory({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),Xf)}showPreparingDocs({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),Xf)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){kt.body.classList.add(Ll.MAIN)}},P(Fo,"WebView"),Fo),ko,iR=(ko=class extends Kh{constructor(t,r){super(t,r,new tm,new nm),this.importFn=t,this.getProjectAnnotations=r,FT.global.__STORYBOOK_PREVIEW__=this}},P(ko,"PreviewWeb"),ko),aR=dt(Ar(),1),{document:Rn}=aR.global,sR=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],lR="script",Zf="scripts-root";function Ga(){let e=Rn.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),Rn.dispatchEvent(e)}P(Ga,"simulateDOMContentLoaded");function om(e,t,r){let _R=Rn.createElement("script");_R.type=e.type==="module"?"module":"text/javascript",e.src?(_R.onload=t,_R.onerror=t,_R.src=e.src):_R.textContent=e.innerText,r?r.appendChild(_R):Rn.head.appendChild(_R),e.parentNode.removeChild(e),e.src||t()}P(om,"insertScript");function Eu(e,t,r=0){e[r](()=>{r++,r===e.length?t():Eu(e,t,r)})}P(Eu,"insertScriptsSequentially");function im(e){let t=Rn.getElementById(Zf);t?t.innerHTML="":(t=Rn.createElement("div"),t.id=Zf,Rn.body.appendChild(t));let r=Array.from(e.querySelectorAll(lR));if(r.length){let _R=[];r.forEach(o=>{let i=o.getAttribute("type");(!i||sR.includes(i))&&_R.push(s=>om(o,s,t))}),_R.length&&Eu(_R,Ga,void 0)}else Ga()}P(im,"simulatePageLoad")});var um=or((dH,lm)=>{"use strict";lm.exports=sm()});var Ku=or((pH,Fg)=>{"use strict";var Fu=Object.defineProperty,uR=Object.getOwnPropertyDescriptor,cR=Object.getOwnPropertyNames,dR=Object.prototype.hasOwnProperty,pR=(e,t)=>{for(var r in t)Fu(e,r,{get:t[r],enumerable:!0})},fR=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of cR(t))!dR.call(e,o)&&o!==r&&Fu(e,o,{get:()=>t[o],enumerable:!(_R=uR(t,o))||_R.enumerable});return e},hR=e=>fR(Fu({},"__esModule",{value:!0}),e),Zm={};pR(Zm,{CallStates:()=>Bg,EVENTS:()=>Rr,instrument:()=>lP});Fg.exports=hR(Zm);var mR=xl(),Xa=_f(),gR=um(),Kt=Tl(),yR={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]},bR=Object.entries(yR);function ku(e){return String(e)}ku.open="";ku.close="";function vR(e=!1){let t=typeof process<"u"?process:void 0,r=(t==null?void 0:t.env)||{},_R=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in r||_R.includes("--no-color"))&&("FORCE_COLOR"in r||_R.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function ER(e=!1){let t=vR(e),r=(s,l,u,d)=>{let c="",p=0;do c+=s.substring(p,d)+u,p=d+l.length,d=s.indexOf(l,p);while(~d);return c+s.substring(p)},_R=(s,l,u=s)=>{let d=c=>{let p=String(c),h=p.indexOf(l,s.length);return~h?s+r(p,l,u,h)+l:s+p+l};return d.open=s,d.close=l,d},o={isColorSupported:t},i=s=>`\x1B[${s}m`;for(let[s,l]of bR)o[s]=t?_R(i(l[0]),i(l[1]),l[2]):ku;return o}var _R=require("tty"),Br=ER((0,_R.isatty)(1));function wR(e,t){let r=Object.keys(e),_R=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&_R.push(o);return _R}function rs(e,t,r,_R,o,i,s=": "){let l="",u=0,d=e.next();if(!d.done){l+=t.spacingOuter;let c=r+t.indent;for(;!d.done;){if(l+=c,u++===t.maxWidth){l+="\u2026";break}let p=i(d.value[0],t,c,_R,o),h=i(d.value[1],t,c,_R,o);l+=p+s+h,d=e.next(),d.done?t.min||(l+=","):l+=`,${t.spacingInner}`}l+=t.spacingOuter+r}return l}function Lu(e,t,r,_R,o,i){let s="",l=0,u=e.next();if(!u.done){s+=t.spacingOuter;let d=r+t.indent;for(;!u.done;){if(s+=d,l++===t.maxWidth){s+="\u2026";break}s+=i(u.value,t,d,_R,o),u=e.next(),u.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}function ts(e,t,r,_R,o,i){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=d=>d instanceof DataView,u=l(e)?e.byteLength:e.length;if(u>0){s+=t.spacingOuter;let d=r+t.indent;for(let c=0;c<u;c++){if(s+=d,c===t.maxWidth){s+="\u2026";break}(l(e)||c in e)&&(s+=i(l(e)?e.getInt8(c):e[c],t,d,_R,o)),c<u-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+r}return s}function $u(e,t,r,_R,o,i){let s="",l=wR(e,t.compareKeys);if(l.length>0){s+=t.spacingOuter;let u=r+t.indent;for(let d=0;d<l.length;d++){let c=l[d],p=i(c,t,u,_R,o),h=i(e[c],t,u,_R,o);s+=`${u+p}: ${h}`,d<l.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+r}return s}var SR=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,_u=" ",CR=(e,t,r,_R,o,i)=>{let s=e.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return++_R>t.maxDepth?`[${s}]`:`${s+_u}[${ts(e.sample,t,r,_R,o,i)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return++_R>t.maxDepth?`[${s}]`:`${s+_u}{${$u(e.sample,t,r,_R,o,i)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+_u+i(e.sample,t,r,_R,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},AR=e=>e&&e.$$typeof===SR,TR={serialize:CR,test:AR},RR=" ",eg=new Set(["DOMStringMap","NamedNodeMap"]),xR=/^(?:HTML\w*Collection|NodeList)$/;function OR(e){return eg.has(e)||xR.test(e)}var PR=e=>e&&e.constructor&&!!e.constructor.name&&OR(e.constructor.name);function NR(e){return e.constructor.name==="NamedNodeMap"}var MR=(e,t,r,_R,o,i)=>{let s=e.constructor.name;return++_R>t.maxDepth?`[${s}]`:(t.min?"":s+RR)+(eg.has(s)?`{${$u(NR(e)?[...e].reduce((l,u)=>(l[u.name]=u.value,l),{}):{...e},t,r,_R,o,i)}}`:`[${ts([...e],t,r,_R,o,i)}]`)},IR={serialize:MR,test:PR};function tg(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function Uu(e,t,r,_R,o,i,s){let l=_R+r.indent,u=r.colors;return e.map(d=>{let c=t[d],p=s(c,r,l,o,i);return typeof c!="string"&&(p.includes(`
207
207
  `)&&(p=r.spacingOuter+l+p+r.spacingOuter+_R),p=`{${p}}`),`${r.spacingInner+_R+u.prop.open+d+u.prop.close}=${u.value.open}${p}${u.value.close}`}).join("")}function Hu(e,t,r,_R,o,i){return e.map(s=>t.spacingOuter+r+(typeof s=="string"?rg(s,t):i(s,t,r,_R,o))).join("")}function rg(e,t){let r=t.colors.content;return r.open+tg(e)+r.close}function DR(e,t){let r=t.colors.comment;return`${r.open}<!--${tg(e)}-->${r.close}`}function zu(e,t,r,_R,o){let i=_R.colors.tag;return`${i.open}<${e}${t&&i.close+t+_R.spacingOuter+o+i.open}${r?`>${i.close}${r}${_R.spacingOuter}${o}${i.open}</${e}`:`${t&&!_R.min?"":" "}/`}>${i.close}`}function Vu(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} \u2026${r.open} />${r.close}`}var qR=1,ng=3,og=8,ig=11,jR=/^(?:(?:HTML|SVG)\w*)?Element$/;function BR(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function FR(e){let t=e.constructor.name,{nodeType:r,tagName:_R}=e,o=typeof _R=="string"&&_R.includes("-")||BR(e);return r===qR&&(jR.test(t)||o)||r===ng&&t==="Text"||r===og&&t==="Comment"||r===ig&&t==="DocumentFragment"}var kR=e=>{var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.name)&&FR(e)};function LR(e){return e.nodeType===ng}function $R(e){return e.nodeType===og}function wu(e){return e.nodeType===ig}var UR=(e,t,r,_R,o,i)=>{if(LR(e))return rg(e.data,t);if($R(e))return DR(e.data,t);let s=wu(e)?"DocumentFragment":e.tagName.toLowerCase();return++_R>t.maxDepth?Vu(s,t):zu(s,Uu(wu(e)?[]:Array.from(e.attributes,l=>l.name).sort(),wu(e)?{}:[...e.attributes].reduce((l,u)=>(l[u.name]=u.value,l),{}),t,r+t.indent,_R,o,i),Hu(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,_R,o,i),t,r)},HR={serialize:UR,test:kR},zR="@@__IMMUTABLE_ITERABLE__@@",VR="@@__IMMUTABLE_LIST__@@",GR="@@__IMMUTABLE_KEYED__@@",WR="@@__IMMUTABLE_MAP__@@",cm="@@__IMMUTABLE_ORDERED__@@",YR="@@__IMMUTABLE_RECORD__@@",KR="@@__IMMUTABLE_SEQ__@@",JR="@@__IMMUTABLE_SET__@@",XR="@@__IMMUTABLE_STACK__@@",Wo=e=>`Immutable.${e}`,ns=e=>`[${e}]`,ki=" ",dm="\u2026";function QR(e,t,r,_R,o,i,s){return++_R>t.maxDepth?ns(Wo(s)):`${Wo(s)+ki}{${rs(e.entries(),t,r,_R,o,i)}}`}function ZR(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function ex(e,t,r,_R,o,i){let s=Wo(e._name||"Record");return++_R>t.maxDepth?ns(s):`${s+ki}{${rs(ZR(e),t,r,_R,o,i)}}`}function tx(e,t,r,_R,o,i){let s=Wo("Seq");return++_R>t.maxDepth?ns(s):e[GR]?`${s+ki}{${e._iter||e._object?rs(e.entries(),t,r,_R,o,i):dm}}`:`${s+ki}[${e._iter||e._array||e._collection||e._iterable?Lu(e.values(),t,r,_R,o,i):dm}]`}function Su(e,t,r,_R,o,i,s){return++_R>t.maxDepth?ns(Wo(s)):`${Wo(s)+ki}[${Lu(e.values(),t,r,_R,o,i)}]`}var rx=(e,t,r,_R,o,i)=>e[WR]?QR(e,t,r,_R,o,i,e[cm]?"OrderedMap":"Map"):e[VR]?Su(e,t,r,_R,o,i,"List"):e[JR]?Su(e,t,r,_R,o,i,e[cm]?"OrderedSet":"Set"):e[XR]?Su(e,t,r,_R,o,i,"Stack"):e[KR]?tx(e,t,r,_R,o,i):ex(e,t,r,_R,o,i),nx=e=>e&&(e[zR]===!0||e[YR]===!0),ox={serialize:rx,test:nx},Cu={exports:{}},ot={},pm;function ix(){if(pm)return ot;pm=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),_R=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function y(b){if(typeof b=="object"&&b!==null){var E=b.$$typeof;switch(E){case e:switch(b=b.type,b){case r:case o:case _R:case d:case c:return b;default:switch(b=b&&b.$$typeof,b){case l:case s:case u:case h:case p:case i:return b;default:return E}}case t:return E}}}return ot.ContextConsumer=s,ot.ContextProvider=i,ot.Element=e,ot.ForwardRef=u,ot.Fragment=r,ot.Lazy=h,ot.Memo=p,ot.Portal=t,ot.Profiler=o,ot.StrictMode=_R,ot.Suspense=d,ot.SuspenseList=c,ot.isAsyncMode=function(){return!1},ot.isConcurrentMode=function(){return!1},ot.isContextConsumer=function(b){return y(b)===s},ot.isContextProvider=function(b){return y(b)===i},ot.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},ot.isForwardRef=function(b){return y(b)===u},ot.isFragment=function(b){return y(b)===r},ot.isLazy=function(b){return y(b)===h},ot.isMemo=function(b){return y(b)===p},ot.isPortal=function(b){return y(b)===t},ot.isProfiler=function(b){return y(b)===o},ot.isStrictMode=function(b){return y(b)===_R},ot.isSuspense=function(b){return y(b)===d},ot.isSuspenseList=function(b){return y(b)===c},ot.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===o||b===_R||b===d||b===c||b===m||typeof b=="object"&&b!==null&&(b.$$typeof===h||b.$$typeof===p||b.$$typeof===i||b.$$typeof===s||b.$$typeof===u||b.$$typeof===g||b.getModuleId!==void 0)},ot.typeOf=y,ot}var at={},fm;function ax(){return fm||(fm=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),_R=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=!1,y=!1,b=!1,E=!1,_=!1,O;O=Symbol.for("react.module.reference");function C(ae){return!!(typeof ae=="string"||typeof ae=="function"||ae===r||ae===o||_||ae===_R||ae===d||ae===c||E||ae===m||g||y||b||typeof ae=="object"&&ae!==null&&(ae.$$typeof===h||ae.$$typeof===p||ae.$$typeof===i||ae.$$typeof===s||ae.$$typeof===u||ae.$$typeof===O||ae.getModuleId!==void 0))}function w(ae){if(typeof ae=="object"&&ae!==null){var ye=ae.$$typeof;switch(ye){case e:var Fe=ae.type;switch(Fe){case r:case o:case _R:case d:case c:return Fe;default:var nt=Fe&&Fe.$$typeof;switch(nt){case l:case s:case u:case h:case p:case i:return nt;default:return ye}}case t:return ye}}}var S=s,T=i,A=e,N=u,U=r,X=h,V=p,J=t,x=o,B=_R,K=d,fe=c,ce=!1,Se=!1;function De(ae){return ce||(ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Oe(ae){return Se||(Se=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function le(ae){return w(ae)===s}function se(ae){return w(ae)===i}function de(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===e}function we(ae){return w(ae)===u}function Pe(ae){return w(ae)===r}function Ne(ae){return w(ae)===h}function Ge(ae){return w(ae)===p}function Tt(ae){return w(ae)===t}function Y(ae){return w(ae)===o}function Re(ae){return w(ae)===_R}function qe(ae){return w(ae)===d}function ze(ae){return w(ae)===c}at.ContextConsumer=S,at.ContextProvider=T,at.Element=A,at.ForwardRef=N,at.Fragment=U,at.Lazy=X,at.Memo=V,at.Portal=J,at.Profiler=x,at.StrictMode=B,at.Suspense=K,at.SuspenseList=fe,at.isAsyncMode=De,at.isConcurrentMode=Oe,at.isContextConsumer=le,at.isContextProvider=se,at.isElement=de,at.isForwardRef=we,at.isFragment=Pe,at.isLazy=Ne,at.isMemo=Ge,at.isPortal=Tt,at.isProfiler=Y,at.isStrictMode=Re,at.isSuspense=qe,at.isSuspenseList=ze,at.isValidElementType=C,at.typeOf=w}()),at}var hm;function sx(){return hm||(hm=1,process.env.NODE_ENV==="production"?Cu.exports=ix():Cu.exports=ax()),Cu.exports}var On=sx();function ag(e,t=[]){if(Array.isArray(e))for(let r of e)ag(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function mm(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(On.isFragment(e))return"React.Fragment";if(On.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(On.isContextProvider(e))return"Context.Provider";if(On.isContextConsumer(e))return"Context.Consumer";if(On.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(On.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function lx(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var ux=(e,t,r,_R,o,i)=>++_R>t.maxDepth?Vu(mm(e),t):zu(mm(e),Uu(lx(e),e.props,t,r+t.indent,_R,o,i),Hu(ag(e.props.children),t,r+t.indent,_R,o,i),t,r),cx=e=>e!=null&&On.isElement(e),dx={serialize:ux,test:cx},px=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function fx(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var hx=(e,t,r,_R,o,i)=>++_R>t.maxDepth?Vu(e.type,t):zu(e.type,e.props?Uu(fx(e),e.props,t,r+t.indent,_R,o,i):"",e.children?Hu(e.children,t,r+t.indent,_R,o,i):"",t,r),mx=e=>e&&e.$$typeof===px,gx={serialize:hx,test:mx},sg=Object.prototype.toString,yx=Date.prototype.toISOString,bx=Error.prototype.toString,gm=RegExp.prototype.toString;function Au(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function vx(e){return typeof window<"u"&&e===window}var Ex=/^Symbol\((.*)\)(.*)$/,_x=/\_R/g,lg=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function wx(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function Sx(e){return Object.is(e,-0)?"-0":String(e)}function Cx(e){return`${e}_R`}function ym(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function bm(e){return String(e).replace(Ex,"Symbol($1)")}function vm(e){return`[${bx.call(e)}]`}function ug(e,t,r,_R){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let o=typeof e;if(o==="number")return Sx(e);if(o==="bigint")return Cx(e);if(o==="string")return _R?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return ym(e,t);if(o==="symbol")return bm(e);let i=sg.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?ym(e,t):i==="[object Symbol]"?bm(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":yx.call(e):i==="[object Error]"?vm(e):i==="[object RegExp]"?r?gm.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):gm.call(e):e instanceof Error?vm(e):null}function cg(e,t,r,_R,o,i){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let s=++_R>t.maxDepth,l=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON=="function"&&!i)return an(e.toJSON(),t,r,_R,o,!0);let u=sg.call(e);return u==="[object Arguments]"?s?"[Arguments]":`${l?"":"Arguments "}[${ts(e,t,r,_R,o,an)}]`:wx(u)?s?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${ts(e,t,r,_R,o,an)}]`:u==="[object Map]"?s?"[Map]":`Map {${rs(e.entries(),t,r,_R,o,an," => ")}}`:u==="[object Set]"?s?"[Set]":`Set {${Lu(e.values(),t,r,_R,o,an)}}`:s||vx(e)?`[${Au(e)}]`:`${l||!t.printBasicPrototype&&Au(e)==="Object"?"":`${Au(e)} `}{${$u(e,t,r,_R,o,an)}}`}function Ax(e){return e.serialize!=null}function dg(e,t,r,_R,o,i){let s;try{s=Ax(e)?e.serialize(t,r,_R,o,i,an):e.print(t,l=>an(l,r,_R,o,i),l=>{let u=_R+r.indent;return u+l.replaceAll(_x,`
208
208
  ${u}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(l){throw new lg(l.message,l.stack)}if(typeof s!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}function pg(e,t){for(let r of e)try{if(r.test(t))return r}catch(_R){throw new lg(_R.message,_R.stack)}return null}function an(e,t,r,_R,o,i){let s=pg(t.plugins,e);if(s!==null)return dg(s,e,t,r,_R,o);let l=ug(e,t.printFunctionName,t.escapeRegex,t.escapeString);return l!==null?l:cg(e,t,r,_R,o,i)}var Gu={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},fg=Object.keys(Gu),hr={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:Gu};function Tx(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(hr,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function Rx(){return fg.reduce((e,t)=>{let r=Gu[t],_R=r&&Br[r];if(_R&&typeof _R.close=="string"&&typeof _R.open=="string")e[t]=_R;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function xx(){return fg.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function hg(e){var t;return(t=e==null?void 0:e.printFunctionName)!=null?t:hr.printFunctionName}function mg(e){var t;return(t=e==null?void 0:e.escapeRegex)!=null?t:hr.escapeRegex}function gg(e){var t;return(t=e==null?void 0:e.escapeString)!=null?t:hr.escapeString}function Em(e){var t,r,_R,o,i,s,l;return{callToJSON:(t=e==null?void 0:e.callToJSON)!=null?t:hr.callToJSON,colors:e!=null&&e.highlight?Rx():xx(),compareKeys:typeof(e==null?void 0:e.compareKeys)=="function"||(e==null?void 0:e.compareKeys)===null?e.compareKeys:hr.compareKeys,escapeRegex:mg(e),escapeString:gg(e),indent:e!=null&&e.min?"":Ox((r=e==null?void 0:e.indent)!=null?r:hr.indent),maxDepth:(_R=e==null?void 0:e.maxDepth)!=null?_R:hr.maxDepth,maxWidth:(o=e==null?void 0:e.maxWidth)!=null?o:hr.maxWidth,min:(i=e==null?void 0:e.min)!=null?i:hr.min,plugins:(s=e==null?void 0:e.plugins)!=null?s:hr.plugins,printBasicPrototype:(l=e==null?void 0:e.printBasicPrototype)!=null?l:!0,printFunctionName:hg(e),spacingInner:e!=null&&e.min?" ":`
209
209
  `,spacingOuter:e!=null&&e.min?"":`
210
210
  `}}function Ox(e){return Array.from({length:e+1}).join(" ")}function xr(e,t){if(t&&(Tx(t),t.plugins)){let _R=pg(t.plugins,e);if(_R!==null)return dg(_R,e,Em(t),"",0,[])}let r=ug(e,hg(t),mg(t),gg(t));return r!==null?r:cg(e,Em(t),"",0,[])}var yg={AsymmetricMatcher:TR,DOMCollection:IR,DOMElement:HR,Immutable:ox,ReactElement:dx,ReactTestComponent:gx},_m={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"]},Px={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Yo="\u2026";function Nx(e,t){let r=_m[Px[t]]||_m[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function Mx({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:_R=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:s=1/0,seen:l=[],truncate:u=1/0,stylize:d=String}={},c){let p={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!_R,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(u),seen:l,inspect:c,stylize:d};return p.colors&&(p.stylize=Nx),p}function Ix(e){return e>="\uD800"&&e<="\uDBFF"}function sn(e,t,r=Yo){e=String(e);let _R=r.length,o=e.length;if(_R>t&&o>_R)return r;if(o>t&&o>_R){let i=t-_R;return i>0&&Ix(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}function mr(e,t,r,_R=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,s="",l="",u="";for(let d=0;d<o;d+=1){let c=d+1===e.length,p=d+2===e.length;u=`${Yo}(${e.length-d})`;let h=e[d];t.truncate=i-s.length-(c?0:_R.length);let m=l||r(h,t)+(c?"":_R),g=s.length+m.length,y=g+u.length;if(c&&g>i&&s.length+u.length<=i||!c&&!p&&y>i||(l=c?"":r(e[d+1],t)+(p?"":_R),!c&&p&&y>i&&g+l.length>i))break;if(s+=m,!c&&!p&&g+l.length>=i){u=`${Yo}(${e.length-d-1})`;break}u=""}return`${s}${u}`}function Dx(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Li([e,t],r){return r.truncate-=2,typeof e=="string"?e=Dx(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function qx(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let _R=mr(e,t);t.truncate-=_R.length;let o="";return r.length&&(o=mr(r.map(i=>[i,e[i]]),t,Li)),`[ ${_R}${o?`, ${o}`:""} ]`}var jx=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function jr(e,t){let r=jx(e);t.truncate-=r.length+4;let _R=Object.keys(e).slice(e.length);if(!e.length&&!_R.length)return`${r}[]`;let o="";for(let s=0;s<e.length;s++){let l=`${t.stylize(sn(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=l.length,e[s]!==e.length&&t.truncate<=3){o+=`${Yo}(${e.length-e[s]+1})`;break}o+=l}let i="";return _R.length&&(i=mr(_R.map(s=>[s,e[s]]),t,Li)),`${r}[ ${o}${i?`, ${i}`:""} ]`}function Bx(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let _R=r.split("T"),o=_R[0];return t.stylize(`${o}T${sn(_R[1],t.truncate-o.length-1)}`,"date")}function wm(e,t){let r=e[Symbol.toStringTag]||"Function",_R=e.name;return _R?t.stylize(`[${r} ${sn(_R,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function Fx([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function kx(e){let t=[];return e.forEach((r,_R)=>{t.push([_R,r])}),t}function Lx(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${mr(kx(e),t,Fx)} }`)}var $x=Number.isNaN||(e=>e!==e);function Sm(e,t){return $x(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(sn(String(e),t.truncate),"number")}function Cm(e,t){let r=sn(e.toString(),t.truncate-1);return r!==Yo&&(r+="_R"),t.stylize(r,"bigint")}function Ux(e,t){let r=e.toString().split("/")[2],_R=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${sn(o,_R)}/${r}`,"regexp")}function Hx(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function zx(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${mr(Hx(e),t)} }`)}var Am=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),Vx={"\b":"\\b"," ":"\\t","\_R":"\\_R","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},Gx=16,Wx=4;function Yx(e){return Vx[e]||`\\u${`0000${e.charCodeAt(0).toString(Gx)}`.slice(-Wx)}`}function Tm(e,t){return Am.test(e)&&(e=e.replace(Am,Yx)),t.stylize(`'${sn(e,t.truncate-2)}'`,"string")}function Rm(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var bg=()=>"Promise{\u2026}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(bg=(_R,o)=>{let[i,s]=e(_R);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(s,o)}}`})}catch{}var Kx=bg;function es(e,t){let r=Object.getOwnPropertyNames(e),_R=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&_R.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.indexOf(e)>=0)return"[Circular]";t.seen.push(e);let o=mr(r.map(l=>[l,e[l]]),t,Li),i=mr(_R.map(l=>[l,e[l]]),t,Li);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}var Tu=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function Jx(e,t){let r="";return Tu&&Tu in e&&(r=e[Tu]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${es(e,t)}`}function Xx(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${mr(e,t)} ]`)}var Qx=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function Zx(e,t){let r=Object.getOwnPropertyNames(e).filter(s=>Qx.indexOf(s)===-1),_R=e.name;t.truncate-=_R.length;let o="";typeof e.message=="string"?o=sn(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5;let i=mr(r.map(s=>[s,e[s]]),t,Li);return`${_R}${o}${i?` { ${i} }`:""}`}function eO([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function Nu(e,t){return mr(e,t,vg,`
211
- `)}function vg(e,t){let r=e.getAttributeNames(),_R=e.tagName.toLowerCase(),o=t.stylize(`<${_R}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${_R}>`,"special");t.truncate-=_R.length*2+5;let l="";r.length>0&&(l+=" ",l+=mr(r.map(c=>[c,e.getAttribute(c)]),t,eO," ")),t.truncate-=l.length;let u=t.truncate,d=Nu(e.children,t);return d&&d.length>u&&(d=`${Yo}(${e.children.length})`),`${o}${l}${i}${d}${s}`}var tO=typeof Symbol=="function"&&typeof Symbol.for=="function",Ru=tO?Symbol.for("chai/inspect"):"@@chai/inspect",zo=!1;try{let e=require("util");zo=e.inspect?e.inspect.custom:!1}catch{zo=!1}var xm=new WeakMap,Om={},Pm={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:Sm,Number:Sm,bigint:Cm,BigInt:Cm,string:Tm,String:Tm,function:wm,Function:wm,symbol:Rm,Symbol:Rm,Array:qx,Date:Bx,Map:Lx,Set:zx,RegExp:Ux,Promise:Kx,WeakSet:(e,t)=>t.stylize("WeakSet{\u2026}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{\u2026}","special"),Arguments:Xx,Int8Array:jr,Uint8Array:jr,Uint8ClampedArray:jr,Int16Array:jr,Uint16Array:jr,Int32Array:jr,Uint32Array:jr,Float32Array:jr,Float64Array:jr,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:Zx,HTMLCollection:Nu,NodeList:Nu},rO=(e,t,r)=>Ru in e&&typeof e[Ru]=="function"?e[Ru](t):zo&&zo in e&&typeof e[zo]=="function"?e[zo](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&xm.has(e.constructor)?xm.get(e.constructor)(e,t):Om[r]?Om[r](e,t):"",nO=Object.prototype.toString;function Mu(e,t={}){let r=Mx(t,Mu),{customInspect:_R}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=nO.call(e).slice(8,-1)),o in Pm)return Pm[o](e,r);if(_R&&e){let s=rO(e,r,o);if(s)return typeof s=="string"?s:Mu(s,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?es(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?vg(e,r):"constructor"in e?e.constructor!==Object?Jx(e,r):es(e,r):e===Object(e)?es(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:oO,DOMCollection:iO,DOMElement:aO,Immutable:sO,ReactElement:lO,ReactTestComponent:uO}=yg,Nm=[uO,lO,aO,iO,sO,oO];function $i(e,t=10,{maxLength:r,..._R}={}){let o=r!=null?r:1e4,i;try{i=xr(e,{maxDepth:t,escapeString:!1,plugins:Nm,..._R})}catch{i=xr(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Nm,..._R})}return i.length>=o&&t>1?$i(e,Math.floor(t/2)):i}var cO=/%[sdjifoOc%]/g;function dO(...e){if(typeof e[0]!="string"){let i=[];for(let s=0;s<e.length;s++)i.push(Fi(e[s],{depth:0,colors:!1}));return i.join(" ")}let t=e.length,r=1,_R=e[0],o=String(_R).replace(cO,i=>{if(i==="%%")return"%";if(r>=t)return i;switch(i){case"%s":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}_R`:typeof s=="number"&&s===0&&1/s<0?"-0":typeof s=="object"&&s!==null?Fi(s,{depth:0,colors:!1}):String(s)}case"%d":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}_R`:Number(s).toString()}case"%i":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}_R`:Number.parseInt(String(s)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return Fi(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Fi(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(s){let l=s.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return"[Circular]";throw s}default:return i}});for(let i=e[r];r<t;i=e[++r])i===null||typeof i!="object"?o+=` ${i}`:o+=` ${Fi(i)}`;return o}function Fi(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Mu(e,t)}function pO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fO(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Iu(e){return Object.prototype.toString.apply(e).slice(8,-1)}function hO(e,t){let r=typeof t=="function"?t:_R=>t.add(_R);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function Eg(e){let t=new Set;return fO(e)?[]:(hO(e,t),Array.from(t))}var _g={forceWritable:!1};function Mm(e,t=_g){return Du(e,new WeakMap,t)}function Du(e,t,r=_g){let _R,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:_R=e.length}),t.set(e,o);_R--;)o[_R]=Du(e[_R],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=Eg(e);for(let s of i){let l=Object.getOwnPropertyDescriptor(e,s);if(!l)continue;let u=Du(e[s],t,r);r.forceWritable?Object.defineProperty(o,s,{enumerable:l.enumerable,configurable:!0,writable:!0,value:u}):"get"in l?Object.defineProperty(o,s,{...l,get(){return u}}):Object.defineProperty(o,s,{...l,value:u})}return o}return e}function Im(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}var Lt=-1,jt=1,_t=0,bt=class{constructor(e,t){gt(this,0);gt(this,1);this[0]=e,this[1]=t}},mO=function(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,_R=Math.min(e.length,t.length),o=_R,i=0;for(;r<o;)e.substring(i,o)===t.substring(i,o)?(r=o,i=r):_R=o,o=Math.floor((_R-r)/2+r);return o},wg=function(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,_R=Math.min(e.length,t.length),o=_R,i=0;for(;r<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(r=o,i=r):_R=o,o=Math.floor((_R-r)/2+r);return o},Dm=function(e,t){let r=e.length,_R=t.length;if(r===0||_R===0)return 0;r>_R?e=e.substring(r-_R):r<_R&&(t=t.substring(0,r));let o=Math.min(r,_R);if(e===t)return o;let i=0,s=1;for(;;){let l=e.substring(o-s),u=t.indexOf(l);if(u===-1)return i;s+=u,(u===0||e.substring(o-s)===t.substring(0,s))&&(i=s,s++)}},gO=function(e){let t=!1,r=[],_R=0,o=null,i=0,s=0,l=0,u=0,d=0;for(;i<e.length;)e[i][0]===_t?(r[_R++]=i,s=u,l=d,u=0,d=0,o=e[i][1]):(e[i][0]===jt?u+=e[i][1].length:d+=e[i][1].length,o&&o.length<=Math.max(s,l)&&o.length<=Math.max(u,d)&&(e.splice(r[_R-1],0,new bt(Lt,o)),e[r[_R-1]+1][0]=jt,_R--,_R--,i=_R>0?r[_R-1]:-1,s=0,l=0,u=0,d=0,o=null,t=!0)),i++;for(t&&Sg(e),vO(e),i=1;i<e.length;){if(e[i-1][0]===Lt&&e[i][0]===jt){let c=e[i-1][1],p=e[i][1],h=Dm(c,p),m=Dm(p,c);h>=m?(h>=c.length/2||h>=p.length/2)&&(e.splice(i,0,new bt(_t,p.substring(0,h))),e[i-1][1]=c.substring(0,c.length-h),e[i+1][1]=p.substring(h),i++):(m>=c.length/2||m>=p.length/2)&&(e.splice(i,0,new bt(_t,c.substring(0,m))),e[i-1][0]=jt,e[i-1][1]=p.substring(0,p.length-m),e[i+1][0]=Lt,e[i+1][1]=c.substring(m),i++),i++}i++}},qm=/[^a-z0-9]/i,jm=/\s/,Bm=/[\r\_R]/,yO=/\_R\r?\_R$/,bO=/^\r?\_R\r?\_R/;function vO(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===_t&&e[t+1][0]===_t){let r=e[t-1][1],_R=e[t][1],o=e[t+1][1],i=wg(r,_R);if(i){let c=_R.substring(_R.length-i);r=r.substring(0,r.length-i),_R=c+_R.substring(0,_R.length-i),o=c+o}let s=r,l=_R,u=o,d=Qa(r,_R)+Qa(_R,o);for(;_R.charAt(0)===o.charAt(0);){r+=_R.charAt(0),_R=_R.substring(1)+o.charAt(0),o=o.substring(1);let c=Qa(r,_R)+Qa(_R,o);c>=d&&(d=c,s=r,l=_R,u=o)}e[t-1][1]!==s&&(s?e[t-1][1]=s:(e.splice(t-1,1),t--),e[t][1]=l,u?e[t+1][1]=u:(e.splice(t+1,1),t--))}t++}}function Sg(e){e.push(new bt(_t,""));let t=0,r=0,_R=0,o="",i="",s;for(;t<e.length;)switch(e[t][0]){case jt:_R++,i+=e[t][1],t++;break;case Lt:r++,o+=e[t][1],t++;break;case _t:r+_R>1?(r!==0&&_R!==0&&(s=mO(i,o),s!==0&&(t-r-_R>0&&e[t-r-_R-1][0]===_t?e[t-r-_R-1][1]+=i.substring(0,s):(e.splice(0,0,new bt(_t,i.substring(0,s))),t++),i=i.substring(s),o=o.substring(s)),s=wg(i,o),s!==0&&(e[t][1]=i.substring(i.length-s)+e[t][1],i=i.substring(0,i.length-s),o=o.substring(0,o.length-s))),t-=r+_R,e.splice(t,r+_R),o.length&&(e.splice(t,0,new bt(Lt,o)),t++),i.length&&(e.splice(t,0,new bt(jt,i)),t++),t++):t!==0&&e[t-1][0]===_t?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,_R=0,r=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let l=!1;for(t=1;t<e.length-1;)e[t-1][0]===_t&&e[t+1][0]===_t&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),l=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),l=!0)),t++;l&&Sg(e)}function Qa(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),_R=t.charAt(0),o=r.match(qm),i=_R.match(qm),s=o&&r.match(jm),l=i&&_R.match(jm),u=s&&r.match(Bm),d=l&&_R.match(Bm),c=u&&e.match(yO),p=d&&t.match(bO);return c||p?5:u||d?4:o&&!s&&l?3:s||l?2:o||i?1:0}var Cg="Compared values have no visual difference.",EO="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Za={},Fm;function _O(){if(Fm)return Za;Fm=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.default=h;let e="diff-sequences",t=0,r=(m,g,y,b,E)=>{let _=0;for(;m<g&&y<b&&E(m,y);)m+=1,y+=1,_+=1;return _},_R=(m,g,y,b,E)=>{let _=0;for(;m<=g&&y<=b&&E(g,b);)g-=1,b-=1,_+=1;return _},o=(m,g,y,b,E,_,O)=>{let C=0,w=-m,S=_[C],T=S;_[C]+=r(S+1,g,b+S-w+1,y,E);let A=m<O?m:O;for(C+=1,w+=2;C<=A;C+=1,w+=2){if(C!==m&&T<_[C])S=_[C];else if(S=T+1,g<=S)return C-1;T=_[C],_[C]=S+r(S+1,g,b+S-w+1,y,E)}return O},i=(m,g,y,b,E,_,O)=>{let C=0,w=m,S=_[C],T=S;_[C]-=_R(g,S-1,y,b+S-w-1,E);let A=m<O?m:O;for(C+=1,w-=2;C<=A;C+=1,w-=2){if(C!==m&&_[C]<T)S=_[C];else if(S=T-1,S<g)return C-1;T=_[C],_[C]=S-_R(g,S-1,y,b+S-w-1,E)}return O},s=(m,g,y,b,E,_,O,C,w,S,T)=>{let A=b-g,N=y-g,U=E-b-N,X=-U-(m-1),V=-U+(m-1),J=t,x=m<C?m:C;for(let B=0,K=-m;B<=x;B+=1,K+=2){let fe=B===0||B!==m&&J<O[B],ce=fe?O[B]:J,Se=fe?ce:ce+1,De=A+Se-K,Oe=r(Se+1,y,De+1,E,_),le=Se+Oe;if(J=O[B],O[B]=le,X<=K&&K<=V){let se=(m-1-(K+U))/2;if(se<=S&&w[se]-1<=le){let de=A+ce-(fe?K+1:K-1),we=_R(g,ce,b,de,_),Pe=ce-we,Ne=de-we,Ge=Pe+1,Tt=Ne+1;T.nChangePreceding=m-1,m-1===Ge+Tt-g-b?(T.aEndPreceding=g,T.bEndPreceding=b):(T.aEndPreceding=Ge,T.bEndPreceding=Tt),T.nCommonPreceding=we,we!==0&&(T.aCommonPreceding=Ge,T.bCommonPreceding=Tt),T.nCommonFollowing=Oe,Oe!==0&&(T.aCommonFollowing=Se+1,T.bCommonFollowing=De+1);let Y=le+1,Re=De+Oe+1;return T.nChangeFollowing=m-1,m-1===y+E-Y-Re?(T.aStartFollowing=y,T.bStartFollowing=E):(T.aStartFollowing=Y,T.bStartFollowing=Re),!0}}}return!1},l=(m,g,y,b,E,_,O,C,w,S,T)=>{let A=E-y,N=y-g,U=E-b-N,X=U-m,V=U+m,J=t,x=m<S?m:S;for(let B=0,K=m;B<=x;B+=1,K-=2){let fe=B===0||B!==m&&w[B]<J,ce=fe?w[B]:J,Se=fe?ce:ce-1,De=A+Se-K,Oe=_R(g,Se-1,b,De-1,_),le=Se-Oe;if(J=w[B],w[B]=le,X<=K&&K<=V){let se=(m+(K-U))/2;if(se<=C&&le-1<=O[se]){let de=De-Oe;if(T.nChangePreceding=m,m===le+de-g-b?(T.aEndPreceding=g,T.bEndPreceding=b):(T.aEndPreceding=le,T.bEndPreceding=de),T.nCommonPreceding=Oe,Oe!==0&&(T.aCommonPreceding=le,T.bCommonPreceding=de),T.nChangeFollowing=m-1,m===1)T.nCommonFollowing=0,T.aStartFollowing=y,T.bStartFollowing=E;else{let we=A+ce-(fe?K-1:K+1),Pe=r(ce,y,we,E,_);T.nCommonFollowing=Pe,Pe!==0&&(T.aCommonFollowing=ce,T.bCommonFollowing=we);let Ne=ce+Pe,Ge=we+Pe;m-1===y+E-Ne-Ge?(T.aStartFollowing=y,T.bStartFollowing=E):(T.aStartFollowing=Ne,T.bStartFollowing=Ge)}return!0}}}return!1},u=(m,g,y,b,E,_,O,C,w)=>{let S=b-g,T=E-y,A=y-g,N=E-b,U=N-A,X=A,V=A;if(O[0]=g-1,C[0]=y,U%2===0){let J=(m||U)/2,x=(A+N)/2;for(let B=1;B<=x;B+=1)if(X=o(B,y,E,S,_,O,X),B<J)V=i(B,g,b,T,_,C,V);else if(l(B,g,y,b,E,_,O,X,C,V,w))return}else{let J=((m||U)+1)/2,x=(A+N+1)/2,B=1;for(X=o(B,y,E,S,_,O,X),B+=1;B<=x;B+=1)if(V=i(B-1,g,b,T,_,C,V),B<J)X=o(B,y,E,S,_,O,X);else if(s(B,g,y,b,E,_,O,X,C,V,w))return}throw new Error(`${e}: no overlap aStart=${g} aEnd=${y} bStart=${b} bEnd=${E}`)},d=(m,g,y,b,E,_,O,C,w,S)=>{if(E-b<y-g){if(_=!_,_&&O.length===1){let{foundSubsequence:se,isCommon:de}=O[0];O[1]={foundSubsequence:(we,Pe,Ne)=>{se(we,Ne,Pe)},isCommon:(we,Pe)=>de(Pe,we)}}let Oe=g,le=y;g=b,y=E,b=Oe,E=le}let{foundSubsequence:T,isCommon:A}=O[_?1:0];u(m,g,y,b,E,A,C,w,S);let{nChangePreceding:N,aEndPreceding:U,bEndPreceding:X,nCommonPreceding:V,aCommonPreceding:J,bCommonPreceding:x,nCommonFollowing:B,aCommonFollowing:K,bCommonFollowing:fe,nChangeFollowing:ce,aStartFollowing:Se,bStartFollowing:De}=S;g<U&&b<X&&d(N,g,U,b,X,_,O,C,w,S),V!==0&&T(V,J,x),B!==0&&T(B,K,fe),Se<y&&De<E&&d(ce,Se,y,De,E,_,O,C,w,S)},c=(m,g)=>{if(typeof g!="number")throw new TypeError(`${e}: ${m} typeof ${typeof g} is not a number`);if(!Number.isSafeInteger(g))throw new RangeError(`${e}: ${m} value ${g} is not a safe integer`);if(g<0)throw new RangeError(`${e}: ${m} value ${g} is a negative integer`)},p=(m,g)=>{let y=typeof g;if(y!=="function")throw new TypeError(`${e}: ${m} typeof ${y} is not a function`)};function h(m,g,y,b){c("aLength",m),c("bLength",g),p("isCommon",y),p("foundSubsequence",b);let E=r(0,m,0,g,y);if(E!==0&&b(E,0,0),m!==E||g!==E){let _=E,O=E,C=_R(_,m-1,O,g-1,y),w=m-C,S=g-C,T=E+C;m!==T&&g!==T&&d(0,_,w,O,S,!1,[{foundSubsequence:b,isCommon:y}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),C!==0&&b(C,w,S)}}return Za}var wO=_O(),Ag=pO(wO);function SO(e,t){return e.replace(/\s+$/,r=>t(r))}function Wu(e,t,r,_R,o,i){return e.length!==0?r(`${_R} ${SO(e,o)}`):_R!==" "?r(_R):t&&i.length!==0?r(`${_R} ${i}`):""}function Tg(e,t,{aColor:r,aIndicator:_R,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Wu(e,t,r,_R,o,i)}function Rg(e,t,{bColor:r,bIndicator:_R,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Wu(e,t,r,_R,o,i)}function xg(e,t,{commonColor:r,commonIndicator:_R,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Wu(e,t,r,_R,o,i)}function km(e,t,r,_R,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${_R-r} @@`)}function CO(e,t){let r=e.length,_R=t.contextLines,o=_R+_R,i=r,s=!1,l=0,u=0;for(;u!==r;){let C=u;for(;u!==r&&e[u][0]===_t;)u+=1;if(C!==u)if(C===0)u>_R&&(i-=u-_R,s=!0);else if(u===r){let w=u-C;w>_R&&(i-=w-_R,s=!0)}else{let w=u-C;w>o&&(i-=w-o,l+=1)}for(;u!==r&&e[u][0]!==_t;)u+=1}let d=l!==0||s;l!==0?i+=l+1:s&&(i+=1);let c=i-1,p=[],h=0;d&&p.push("");let m=0,g=0,y=0,b=0,E=C=>{let w=p.length;p.push(xg(C,w===0||w===c,t)),y+=1,b+=1},_=C=>{let w=p.length;p.push(Tg(C,w===0||w===c,t)),y+=1},O=C=>{let w=p.length;p.push(Rg(C,w===0||w===c,t)),b+=1};for(u=0;u!==r;){let C=u;for(;u!==r&&e[u][0]===_t;)u+=1;if(C!==u)if(C===0){u>_R&&(C=u-_R,m=C,g=C,y=m,b=g);for(let w=C;w!==u;w+=1)E(e[w][1])}else if(u===r){let w=u-C>_R?C+_R:u;for(let S=C;S!==w;S+=1)E(e[S][1])}else{let w=u-C;if(w>o){let S=C+_R;for(let A=C;A!==S;A+=1)E(e[A][1]);p[h]=km(m,y,g,b,t),h=p.length,p.push("");let T=w-o;m=y+T,g=b+T,y=m,b=g;for(let A=u-_R;A!==u;A+=1)E(e[A][1])}else for(let S=C;S!==u;S+=1)E(e[S][1])}for(;u!==r&&e[u][0]===Lt;)_(e[u][1]),u+=1;for(;u!==r&&e[u][0]===jt;)O(e[u][1]),u+=1}return d&&(p[h]=km(m,y,g,b,t)),p.join(`
212
- `)}function AO(e,t){return e.map((r,_R,o)=>{let i=r[1],s=_R===0||_R===o.length-1;switch(r[0]){case Lt:return Tg(i,s,t);case jt:return Rg(i,s,t);default:return xg(i,s,t)}}).join(`
213
- `)}var xu=e=>e,Og=5,TO=0;function RO(){return{aAnnotation:"Expected",aColor:Br.green,aIndicator:"-",bAnnotation:"Received",bColor:Br.red,bIndicator:"+",changeColor:Br.inverse,changeLineTrailingSpaceColor:xu,commonColor:Br.dim,commonIndicator:" ",commonLineTrailingSpaceColor:xu,compareKeys:void 0,contextLines:Og,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Br.yellow,truncateThreshold:TO,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:xu}}function xO(e){return e&&typeof e=="function"?e:void 0}function OO(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:Og}function Pn(e={}){return{...RO(),...e,compareKeys:xO(e.compareKeys),contextLines:OO(e.contextLines)}}function Vo(e){return e.length===1&&e[0].length===0}function PO(e){let t=0,r=0;return e.forEach(_R=>{switch(_R[0]){case Lt:t+=1;break;case jt:r+=1;break}}),{a:t,b:r}}function NO({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:_R,bColor:o,bIndicator:i,includeChangeCounts:s,omitAnnotationLines:l},u){if(l)return"";let d="",c="";if(s){let m=String(u.a),g=String(u.b),y=_R.length-e.length,b=" ".repeat(Math.max(0,y)),E=" ".repeat(Math.max(0,-y)),_=g.length-m.length,O=" ".repeat(Math.max(0,_)),C=" ".repeat(Math.max(0,-_));d=`${b} ${r} ${O}${m}`,c=`${E} ${i} ${C}${g}`}let p=`${r} ${e}${d}`,h=`${i} ${_R}${c}`;return`${t(p)}
211
+ `)}function vg(e,t){let r=e.getAttributeNames(),_R=e.tagName.toLowerCase(),o=t.stylize(`<${_R}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${_R}>`,"special");t.truncate-=_R.length*2+5;let l="";r.length>0&&(l+=" ",l+=mr(r.map(c=>[c,e.getAttribute(c)]),t,eO," ")),t.truncate-=l.length;let u=t.truncate,d=Nu(e.children,t);return d&&d.length>u&&(d=`${Yo}(${e.children.length})`),`${o}${l}${i}${d}${s}`}var tO=typeof Symbol=="function"&&typeof Symbol.for=="function",Ru=tO?Symbol.for("chai/inspect"):"@@chai/inspect",zo=!1;try{let e=require("util");zo=e.inspect?e.inspect.custom:!1}catch{zo=!1}var xm=new WeakMap,Om={},Pm={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:Sm,Number:Sm,bigint:Cm,BigInt:Cm,string:Tm,String:Tm,function:wm,Function:wm,symbol:Rm,Symbol:Rm,Array:qx,Date:Bx,Map:Lx,Set:zx,RegExp:Ux,Promise:Kx,WeakSet:(e,t)=>t.stylize("WeakSet{\u2026}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{\u2026}","special"),Arguments:Xx,Int8Array:jr,Uint8Array:jr,Uint8ClampedArray:jr,Int16Array:jr,Uint16Array:jr,Int32Array:jr,Uint32Array:jr,Float32Array:jr,Float64Array:jr,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:Zx,HTMLCollection:Nu,NodeList:Nu},rO=(e,t,r)=>Ru in e&&typeof e[Ru]=="function"?e[Ru](t):zo&&zo in e&&typeof e[zo]=="function"?e[zo](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&xm.has(e.constructor)?xm.get(e.constructor)(e,t):Om[r]?Om[r](e,t):"",nO=Object.prototype.toString;function Mu(e,t={}){let r=Mx(t,Mu),{customInspect:_R}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=nO.call(e).slice(8,-1)),o in Pm)return Pm[o](e,r);if(_R&&e){let s=rO(e,r,o);if(s)return typeof s=="string"?s:Mu(s,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?es(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?vg(e,r):"constructor"in e?e.constructor!==Object?Jx(e,r):es(e,r):e===Object(e)?es(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:oO,DOMCollection:iO,DOMElement:aO,Immutable:sO,ReactElement:lO,ReactTestComponent:uO}=yg,Nm=[uO,lO,aO,iO,sO,oO];function $i(e,t=10,{maxLength:r,..._R}={}){let o=r!=null?r:1e4,i;try{i=xr(e,{maxDepth:t,escapeString:!1,plugins:Nm,..._R})}catch{i=xr(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Nm,..._R})}return i.length>=o&&t>1?$i(e,Math.floor(t/2)):i}var cO=/%[sdjifoOc%]/g;function dO(...e){if(typeof e[0]!="string"){let i=[];for(let s=0;s<e.length;s++)i.push(Fi(e[s],{depth:0,colors:!1}));return i.join(" ")}let t=e.length,r=1,_R=e[0],o=String(_R).replace(cO,i=>{if(i==="%%")return"%";if(r>=t)return i;switch(i){case"%s":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}_R`:typeof s=="number"&&s===0&&1/s<0?"-0":typeof s=="object"&&s!==null?Fi(s,{depth:0,colors:!1}):String(s)}case"%d":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}_R`:Number(s).toString()}case"%i":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}_R`:Number.parseInt(String(s)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return Fi(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Fi(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(s){let l=s.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return"[Circular]";throw s}default:return i}});for(let i=e[r];r<t;i=e[++r])i===null||typeof i!="object"?o+=` ${i}`:o+=` ${Fi(i)}`;return o}function Fi(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Mu(e,t)}function pO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fO(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Iu(e){return Object.prototype.toString.apply(e).slice(8,-1)}function hO(e,t){let r=typeof t=="function"?t:_R=>t.add(_R);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function Eg(e){let t=new Set;return fO(e)?[]:(hO(e,t),Array.from(t))}var _g={forceWritable:!1};function Mm(e,t=_g){return Du(e,new WeakMap,t)}function Du(e,t,r=_g){let _R,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:_R=e.length}),t.set(e,o);_R--;)o[_R]=Du(e[_R],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=Eg(e);for(let s of i){let l=Object.getOwnPropertyDescriptor(e,s);if(!l)continue;let u=Du(e[s],t,r);r.forceWritable?Object.defineProperty(o,s,{enumerable:l.enumerable,configurable:!0,writable:!0,value:u}):"get"in l?Object.defineProperty(o,s,{...l,get(){return u}}):Object.defineProperty(o,s,{...l,value:u})}return o}return e}function Im(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}var Lt=-1,Bt=1,_t=0,bt=class{constructor(e,t){gt(this,0);gt(this,1);this[0]=e,this[1]=t}},mO=function(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,_R=Math.min(e.length,t.length),o=_R,i=0;for(;r<o;)e.substring(i,o)===t.substring(i,o)?(r=o,i=r):_R=o,o=Math.floor((_R-r)/2+r);return o},wg=function(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,_R=Math.min(e.length,t.length),o=_R,i=0;for(;r<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(r=o,i=r):_R=o,o=Math.floor((_R-r)/2+r);return o},Dm=function(e,t){let r=e.length,_R=t.length;if(r===0||_R===0)return 0;r>_R?e=e.substring(r-_R):r<_R&&(t=t.substring(0,r));let o=Math.min(r,_R);if(e===t)return o;let i=0,s=1;for(;;){let l=e.substring(o-s),u=t.indexOf(l);if(u===-1)return i;s+=u,(u===0||e.substring(o-s)===t.substring(0,s))&&(i=s,s++)}},gO=function(e){let t=!1,r=[],_R=0,o=null,i=0,s=0,l=0,u=0,d=0;for(;i<e.length;)e[i][0]===_t?(r[_R++]=i,s=u,l=d,u=0,d=0,o=e[i][1]):(e[i][0]===Bt?u+=e[i][1].length:d+=e[i][1].length,o&&o.length<=Math.max(s,l)&&o.length<=Math.max(u,d)&&(e.splice(r[_R-1],0,new bt(Lt,o)),e[r[_R-1]+1][0]=Bt,_R--,_R--,i=_R>0?r[_R-1]:-1,s=0,l=0,u=0,d=0,o=null,t=!0)),i++;for(t&&Sg(e),vO(e),i=1;i<e.length;){if(e[i-1][0]===Lt&&e[i][0]===Bt){let c=e[i-1][1],p=e[i][1],h=Dm(c,p),m=Dm(p,c);h>=m?(h>=c.length/2||h>=p.length/2)&&(e.splice(i,0,new bt(_t,p.substring(0,h))),e[i-1][1]=c.substring(0,c.length-h),e[i+1][1]=p.substring(h),i++):(m>=c.length/2||m>=p.length/2)&&(e.splice(i,0,new bt(_t,c.substring(0,m))),e[i-1][0]=Bt,e[i-1][1]=p.substring(0,p.length-m),e[i+1][0]=Lt,e[i+1][1]=c.substring(m),i++),i++}i++}},qm=/[^a-z0-9]/i,jm=/\s/,Bm=/[\r\_R]/,yO=/\_R\r?\_R$/,bO=/^\r?\_R\r?\_R/;function vO(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===_t&&e[t+1][0]===_t){let r=e[t-1][1],_R=e[t][1],o=e[t+1][1],i=wg(r,_R);if(i){let c=_R.substring(_R.length-i);r=r.substring(0,r.length-i),_R=c+_R.substring(0,_R.length-i),o=c+o}let s=r,l=_R,u=o,d=Qa(r,_R)+Qa(_R,o);for(;_R.charAt(0)===o.charAt(0);){r+=_R.charAt(0),_R=_R.substring(1)+o.charAt(0),o=o.substring(1);let c=Qa(r,_R)+Qa(_R,o);c>=d&&(d=c,s=r,l=_R,u=o)}e[t-1][1]!==s&&(s?e[t-1][1]=s:(e.splice(t-1,1),t--),e[t][1]=l,u?e[t+1][1]=u:(e.splice(t+1,1),t--))}t++}}function Sg(e){e.push(new bt(_t,""));let t=0,r=0,_R=0,o="",i="",s;for(;t<e.length;)switch(e[t][0]){case Bt:_R++,i+=e[t][1],t++;break;case Lt:r++,o+=e[t][1],t++;break;case _t:r+_R>1?(r!==0&&_R!==0&&(s=mO(i,o),s!==0&&(t-r-_R>0&&e[t-r-_R-1][0]===_t?e[t-r-_R-1][1]+=i.substring(0,s):(e.splice(0,0,new bt(_t,i.substring(0,s))),t++),i=i.substring(s),o=o.substring(s)),s=wg(i,o),s!==0&&(e[t][1]=i.substring(i.length-s)+e[t][1],i=i.substring(0,i.length-s),o=o.substring(0,o.length-s))),t-=r+_R,e.splice(t,r+_R),o.length&&(e.splice(t,0,new bt(Lt,o)),t++),i.length&&(e.splice(t,0,new bt(Bt,i)),t++),t++):t!==0&&e[t-1][0]===_t?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,_R=0,r=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let l=!1;for(t=1;t<e.length-1;)e[t-1][0]===_t&&e[t+1][0]===_t&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),l=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),l=!0)),t++;l&&Sg(e)}function Qa(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),_R=t.charAt(0),o=r.match(qm),i=_R.match(qm),s=o&&r.match(jm),l=i&&_R.match(jm),u=s&&r.match(Bm),d=l&&_R.match(Bm),c=u&&e.match(yO),p=d&&t.match(bO);return c||p?5:u||d?4:o&&!s&&l?3:s||l?2:o||i?1:0}var Cg="Compared values have no visual difference.",EO="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Za={},Fm;function _O(){if(Fm)return Za;Fm=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.default=h;let e="diff-sequences",t=0,r=(m,g,y,b,E)=>{let _=0;for(;m<g&&y<b&&E(m,y);)m+=1,y+=1,_+=1;return _},_R=(m,g,y,b,E)=>{let _=0;for(;m<=g&&y<=b&&E(g,b);)g-=1,b-=1,_+=1;return _},o=(m,g,y,b,E,_,O)=>{let C=0,w=-m,S=_[C],T=S;_[C]+=r(S+1,g,b+S-w+1,y,E);let A=m<O?m:O;for(C+=1,w+=2;C<=A;C+=1,w+=2){if(C!==m&&T<_[C])S=_[C];else if(S=T+1,g<=S)return C-1;T=_[C],_[C]=S+r(S+1,g,b+S-w+1,y,E)}return O},i=(m,g,y,b,E,_,O)=>{let C=0,w=m,S=_[C],T=S;_[C]-=_R(g,S-1,y,b+S-w-1,E);let A=m<O?m:O;for(C+=1,w-=2;C<=A;C+=1,w-=2){if(C!==m&&_[C]<T)S=_[C];else if(S=T-1,S<g)return C-1;T=_[C],_[C]=S-_R(g,S-1,y,b+S-w-1,E)}return O},s=(m,g,y,b,E,_,O,C,w,S,T)=>{let A=b-g,N=y-g,U=E-b-N,X=-U-(m-1),V=-U+(m-1),J=t,x=m<C?m:C;for(let B=0,K=-m;B<=x;B+=1,K+=2){let fe=B===0||B!==m&&J<O[B],ce=fe?O[B]:J,Se=fe?ce:ce+1,De=A+Se-K,Oe=r(Se+1,y,De+1,E,_),le=Se+Oe;if(J=O[B],O[B]=le,X<=K&&K<=V){let se=(m-1-(K+U))/2;if(se<=S&&w[se]-1<=le){let de=A+ce-(fe?K+1:K-1),we=_R(g,ce,b,de,_),Pe=ce-we,Ne=de-we,Ge=Pe+1,Tt=Ne+1;T.nChangePreceding=m-1,m-1===Ge+Tt-g-b?(T.aEndPreceding=g,T.bEndPreceding=b):(T.aEndPreceding=Ge,T.bEndPreceding=Tt),T.nCommonPreceding=we,we!==0&&(T.aCommonPreceding=Ge,T.bCommonPreceding=Tt),T.nCommonFollowing=Oe,Oe!==0&&(T.aCommonFollowing=Se+1,T.bCommonFollowing=De+1);let Y=le+1,Re=De+Oe+1;return T.nChangeFollowing=m-1,m-1===y+E-Y-Re?(T.aStartFollowing=y,T.bStartFollowing=E):(T.aStartFollowing=Y,T.bStartFollowing=Re),!0}}}return!1},l=(m,g,y,b,E,_,O,C,w,S,T)=>{let A=E-y,N=y-g,U=E-b-N,X=U-m,V=U+m,J=t,x=m<S?m:S;for(let B=0,K=m;B<=x;B+=1,K-=2){let fe=B===0||B!==m&&w[B]<J,ce=fe?w[B]:J,Se=fe?ce:ce-1,De=A+Se-K,Oe=_R(g,Se-1,b,De-1,_),le=Se-Oe;if(J=w[B],w[B]=le,X<=K&&K<=V){let se=(m+(K-U))/2;if(se<=C&&le-1<=O[se]){let de=De-Oe;if(T.nChangePreceding=m,m===le+de-g-b?(T.aEndPreceding=g,T.bEndPreceding=b):(T.aEndPreceding=le,T.bEndPreceding=de),T.nCommonPreceding=Oe,Oe!==0&&(T.aCommonPreceding=le,T.bCommonPreceding=de),T.nChangeFollowing=m-1,m===1)T.nCommonFollowing=0,T.aStartFollowing=y,T.bStartFollowing=E;else{let we=A+ce-(fe?K-1:K+1),Pe=r(ce,y,we,E,_);T.nCommonFollowing=Pe,Pe!==0&&(T.aCommonFollowing=ce,T.bCommonFollowing=we);let Ne=ce+Pe,Ge=we+Pe;m-1===y+E-Ne-Ge?(T.aStartFollowing=y,T.bStartFollowing=E):(T.aStartFollowing=Ne,T.bStartFollowing=Ge)}return!0}}}return!1},u=(m,g,y,b,E,_,O,C,w)=>{let S=b-g,T=E-y,A=y-g,N=E-b,U=N-A,X=A,V=A;if(O[0]=g-1,C[0]=y,U%2===0){let J=(m||U)/2,x=(A+N)/2;for(let B=1;B<=x;B+=1)if(X=o(B,y,E,S,_,O,X),B<J)V=i(B,g,b,T,_,C,V);else if(l(B,g,y,b,E,_,O,X,C,V,w))return}else{let J=((m||U)+1)/2,x=(A+N+1)/2,B=1;for(X=o(B,y,E,S,_,O,X),B+=1;B<=x;B+=1)if(V=i(B-1,g,b,T,_,C,V),B<J)X=o(B,y,E,S,_,O,X);else if(s(B,g,y,b,E,_,O,X,C,V,w))return}throw new Error(`${e}: no overlap aStart=${g} aEnd=${y} bStart=${b} bEnd=${E}`)},d=(m,g,y,b,E,_,O,C,w,S)=>{if(E-b<y-g){if(_=!_,_&&O.length===1){let{foundSubsequence:se,isCommon:de}=O[0];O[1]={foundSubsequence:(we,Pe,Ne)=>{se(we,Ne,Pe)},isCommon:(we,Pe)=>de(Pe,we)}}let Oe=g,le=y;g=b,y=E,b=Oe,E=le}let{foundSubsequence:T,isCommon:A}=O[_?1:0];u(m,g,y,b,E,A,C,w,S);let{nChangePreceding:N,aEndPreceding:U,bEndPreceding:X,nCommonPreceding:V,aCommonPreceding:J,bCommonPreceding:x,nCommonFollowing:B,aCommonFollowing:K,bCommonFollowing:fe,nChangeFollowing:ce,aStartFollowing:Se,bStartFollowing:De}=S;g<U&&b<X&&d(N,g,U,b,X,_,O,C,w,S),V!==0&&T(V,J,x),B!==0&&T(B,K,fe),Se<y&&De<E&&d(ce,Se,y,De,E,_,O,C,w,S)},c=(m,g)=>{if(typeof g!="number")throw new TypeError(`${e}: ${m} typeof ${typeof g} is not a number`);if(!Number.isSafeInteger(g))throw new RangeError(`${e}: ${m} value ${g} is not a safe integer`);if(g<0)throw new RangeError(`${e}: ${m} value ${g} is a negative integer`)},p=(m,g)=>{let y=typeof g;if(y!=="function")throw new TypeError(`${e}: ${m} typeof ${y} is not a function`)};function h(m,g,y,b){c("aLength",m),c("bLength",g),p("isCommon",y),p("foundSubsequence",b);let E=r(0,m,0,g,y);if(E!==0&&b(E,0,0),m!==E||g!==E){let _=E,O=E,C=_R(_,m-1,O,g-1,y),w=m-C,S=g-C,T=E+C;m!==T&&g!==T&&d(0,_,w,O,S,!1,[{foundSubsequence:b,isCommon:y}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),C!==0&&b(C,w,S)}}return Za}var wO=_O(),Ag=pO(wO);function SO(e,t){return e.replace(/\s+$/,r=>t(r))}function Wu(e,t,r,_R,o,i){return e.length!==0?r(`${_R} ${SO(e,o)}`):_R!==" "?r(_R):t&&i.length!==0?r(`${_R} ${i}`):""}function Tg(e,t,{aColor:r,aIndicator:_R,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Wu(e,t,r,_R,o,i)}function Rg(e,t,{bColor:r,bIndicator:_R,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Wu(e,t,r,_R,o,i)}function xg(e,t,{commonColor:r,commonIndicator:_R,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Wu(e,t,r,_R,o,i)}function km(e,t,r,_R,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${_R-r} @@`)}function CO(e,t){let r=e.length,_R=t.contextLines,o=_R+_R,i=r,s=!1,l=0,u=0;for(;u!==r;){let C=u;for(;u!==r&&e[u][0]===_t;)u+=1;if(C!==u)if(C===0)u>_R&&(i-=u-_R,s=!0);else if(u===r){let w=u-C;w>_R&&(i-=w-_R,s=!0)}else{let w=u-C;w>o&&(i-=w-o,l+=1)}for(;u!==r&&e[u][0]!==_t;)u+=1}let d=l!==0||s;l!==0?i+=l+1:s&&(i+=1);let c=i-1,p=[],h=0;d&&p.push("");let m=0,g=0,y=0,b=0,E=C=>{let w=p.length;p.push(xg(C,w===0||w===c,t)),y+=1,b+=1},_=C=>{let w=p.length;p.push(Tg(C,w===0||w===c,t)),y+=1},O=C=>{let w=p.length;p.push(Rg(C,w===0||w===c,t)),b+=1};for(u=0;u!==r;){let C=u;for(;u!==r&&e[u][0]===_t;)u+=1;if(C!==u)if(C===0){u>_R&&(C=u-_R,m=C,g=C,y=m,b=g);for(let w=C;w!==u;w+=1)E(e[w][1])}else if(u===r){let w=u-C>_R?C+_R:u;for(let S=C;S!==w;S+=1)E(e[S][1])}else{let w=u-C;if(w>o){let S=C+_R;for(let A=C;A!==S;A+=1)E(e[A][1]);p[h]=km(m,y,g,b,t),h=p.length,p.push("");let T=w-o;m=y+T,g=b+T,y=m,b=g;for(let A=u-_R;A!==u;A+=1)E(e[A][1])}else for(let S=C;S!==u;S+=1)E(e[S][1])}for(;u!==r&&e[u][0]===Lt;)_(e[u][1]),u+=1;for(;u!==r&&e[u][0]===Bt;)O(e[u][1]),u+=1}return d&&(p[h]=km(m,y,g,b,t)),p.join(`
212
+ `)}function AO(e,t){return e.map((r,_R,o)=>{let i=r[1],s=_R===0||_R===o.length-1;switch(r[0]){case Lt:return Tg(i,s,t);case Bt:return Rg(i,s,t);default:return xg(i,s,t)}}).join(`
213
+ `)}var xu=e=>e,Og=5,TO=0;function RO(){return{aAnnotation:"Expected",aColor:Br.green,aIndicator:"-",bAnnotation:"Received",bColor:Br.red,bIndicator:"+",changeColor:Br.inverse,changeLineTrailingSpaceColor:xu,commonColor:Br.dim,commonIndicator:" ",commonLineTrailingSpaceColor:xu,compareKeys:void 0,contextLines:Og,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Br.yellow,truncateThreshold:TO,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:xu}}function xO(e){return e&&typeof e=="function"?e:void 0}function OO(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:Og}function Pn(e={}){return{...RO(),...e,compareKeys:xO(e.compareKeys),contextLines:OO(e.contextLines)}}function Vo(e){return e.length===1&&e[0].length===0}function PO(e){let t=0,r=0;return e.forEach(_R=>{switch(_R[0]){case Lt:t+=1;break;case Bt:r+=1;break}}),{a:t,b:r}}function NO({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:_R,bColor:o,bIndicator:i,includeChangeCounts:s,omitAnnotationLines:l},u){if(l)return"";let d="",c="";if(s){let m=String(u.a),g=String(u.b),y=_R.length-e.length,b=" ".repeat(Math.max(0,y)),E=" ".repeat(Math.max(0,-y)),_=g.length-m.length,O=" ".repeat(Math.max(0,_)),C=" ".repeat(Math.max(0,-_));d=`${b} ${r} ${O}${m}`,c=`${E} ${i} ${C}${g}`}let p=`${r} ${e}${d}`,h=`${i} ${_R}${c}`;return`${t(p)}
214
214
  ${o(h)}
215
215
 
216
216
  `}function Yu(e,t,r){return NO(r,PO(e))+(r.expand?AO(e,r):CO(e,r))+(t?r.truncateAnnotationColor(`
217
- ${r.truncateAnnotation}`):"")}function os(e,t,r){let _R=Pn(r),[o,i]=Pg(Vo(e)?[]:e,Vo(t)?[]:t,_R);return Yu(o,i,_R)}function MO(e,t,r,_R,o){if(Vo(e)&&Vo(r)&&(e=[],r=[]),Vo(t)&&Vo(_R)&&(t=[],_R=[]),e.length!==r.length||t.length!==_R.length)return os(e,t,o);let[i,s]=Pg(r,_R,o),l=0,u=0;return i.forEach(d=>{switch(d[0]){case Lt:d[1]=e[l],l+=1;break;case jt:d[1]=t[u],u+=1;break;default:d[1]=t[u],l+=1,u+=1}}),Yu(i,s,Pn(o))}function Pg(e,t,r){var h,m;let _R=(h=r==null?void 0:r.truncateThreshold)!=null?h:!1,o=Math.max(Math.floor((m=r==null?void 0:r.truncateThreshold)!=null?m:0),0),i=_R?Math.min(e.length,o):e.length,s=_R?Math.min(t.length,o):t.length,l=i!==e.length||s!==t.length,u=(g,y)=>e[g]===t[y],d=[],c=0,p=0;for(Ag(i,s,u,(g,y,b)=>{for(;c!==y;c+=1)d.push(new bt(Lt,e[c]));for(;p!==b;p+=1)d.push(new bt(jt,t[p]));for(;g!==0;g-=1,c+=1,p+=1)d.push(new bt(_t,t[p]))});c!==i;c+=1)d.push(new bt(Lt,e[c]));for(;p!==s;p+=1)d.push(new bt(jt,t[p]));return[d,l]}function Lm(e){return e.includes(`\r
217
+ ${r.truncateAnnotation}`):"")}function os(e,t,r){let _R=Pn(r),[o,i]=Pg(Vo(e)?[]:e,Vo(t)?[]:t,_R);return Yu(o,i,_R)}function MO(e,t,r,_R,o){if(Vo(e)&&Vo(r)&&(e=[],r=[]),Vo(t)&&Vo(_R)&&(t=[],_R=[]),e.length!==r.length||t.length!==_R.length)return os(e,t,o);let[i,s]=Pg(r,_R,o),l=0,u=0;return i.forEach(d=>{switch(d[0]){case Lt:d[1]=e[l],l+=1;break;case Bt:d[1]=t[u],u+=1;break;default:d[1]=t[u],l+=1,u+=1}}),Yu(i,s,Pn(o))}function Pg(e,t,r){var h,m;let _R=(h=r==null?void 0:r.truncateThreshold)!=null?h:!1,o=Math.max(Math.floor((m=r==null?void 0:r.truncateThreshold)!=null?m:0),0),i=_R?Math.min(e.length,o):e.length,s=_R?Math.min(t.length,o):t.length,l=i!==e.length||s!==t.length,u=(g,y)=>e[g]===t[y],d=[],c=0,p=0;for(Ag(i,s,u,(g,y,b)=>{for(;c!==y;c+=1)d.push(new bt(Lt,e[c]));for(;p!==b;p+=1)d.push(new bt(Bt,t[p]));for(;g!==0;g-=1,c+=1,p+=1)d.push(new bt(_t,t[p]))});c!==i;c+=1)d.push(new bt(Lt,e[c]));for(;p!==s;p+=1)d.push(new bt(Bt,t[p]));return[d,l]}function Lm(e){return e.includes(`\r
218
218
  `)?`\r
219
219
  `:`
220
220
  `}function IO(e,t,r){var h,m;let _R=(h=r==null?void 0:r.truncateThreshold)!=null?h:!1,o=Math.max(Math.floor((m=r==null?void 0:r.truncateThreshold)!=null?m:0),0),i=e.length,s=t.length;if(_R){let g=e.includes(`
221
221
  `),y=t.includes(`
222
222
  `),b=Lm(e),E=Lm(t),_=g?`${e.split(b,o).join(b)}
223
223
  `:e,O=y?`${t.split(E,o).join(E)}
224
- `:t;i=_.length,s=O.length}let l=i!==e.length||s!==t.length,u=(g,y)=>e[g]===t[y],d=0,c=0,p=[];return Ag(i,s,u,(g,y,b)=>{d!==y&&p.push(new bt(Lt,e.slice(d,y))),c!==b&&p.push(new bt(jt,t.slice(c,b))),d=y+g,c=b+g,p.push(new bt(_t,t.slice(b,c)))}),d!==i&&p.push(new bt(Lt,e.slice(d))),c!==s&&p.push(new bt(jt,t.slice(c))),[p,l]}function DO(e,t,r){return t.reduce((_R,o)=>_R+(o[0]===_t?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var $m=class{constructor(e,t){gt(this,"op");gt(this,"line");gt(this,"lines");gt(this,"changeColor");this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new bt(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new bt(this.op,DO(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new bt(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
224
+ `:t;i=_.length,s=O.length}let l=i!==e.length||s!==t.length,u=(g,y)=>e[g]===t[y],d=0,c=0,p=[];return Ag(i,s,u,(g,y,b)=>{d!==y&&p.push(new bt(Lt,e.slice(d,y))),c!==b&&p.push(new bt(Bt,t.slice(c,b))),d=y+g,c=b+g,p.push(new bt(_t,t.slice(b,c)))}),d!==i&&p.push(new bt(Lt,e.slice(d))),c!==s&&p.push(new bt(Bt,t.slice(c))),[p,l]}function DO(e,t,r){return t.reduce((_R,o)=>_R+(o[0]===_t?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var $m=class{constructor(e,t){gt(this,"op");gt(this,"line");gt(this,"lines");gt(this,"changeColor");this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new bt(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new bt(this.op,DO(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new bt(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
225
225
  `)){let r=t.split(`
226
226
  `),_R=r.length-1;r.forEach((o,i)=>{i<_R?(this.pushSubstring(o),this.pushLine()):o.length!==0&&this.pushSubstring(o)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},qO=class{constructor(e,t){gt(this,"deleteBuffer");gt(this,"insertBuffer");gt(this,"lines");this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],r=e[1];if(r.includes(`
227
227
  `)){let _R=r.split(`
228
- `),o=_R.length-1;_R.forEach((i,s)=>{if(s===0){let l=new bt(t,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else s<o?this.pushDiffCommonLine(new bt(t,i)):i.length!==0&&this.pushDiffChangeLines(new bt(t,i))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function jO(e,t){let r=new $m(Lt,t),_R=new $m(jt,t),o=new qO(r,_R);return e.forEach(i=>{switch(i[0]){case Lt:r.align(i);break;case jt:_R.align(i);break;default:o.align(i)}}),o.getLines()}function BO(e,t){if(t){let r=e.length-1;return e.some((_R,o)=>_R[0]===_t&&(o!==r||_R[1]!==`
228
+ `),o=_R.length-1;_R.forEach((i,s)=>{if(s===0){let l=new bt(t,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else s<o?this.pushDiffCommonLine(new bt(t,i)):i.length!==0&&this.pushDiffChangeLines(new bt(t,i))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function jO(e,t){let r=new $m(Lt,t),_R=new $m(Bt,t),o=new qO(r,_R);return e.forEach(i=>{switch(i[0]){case Lt:r.align(i);break;case Bt:_R.align(i);break;default:o.align(i)}}),o.getLines()}function BO(e,t){if(t){let r=e.length-1;return e.some((_R,o)=>_R[0]===_t&&(o!==r||_R[1]!==`
229
229
  `))}return e.some(r=>r[0]===_t)}function FO(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let _R=e.includes(`
230
230
  `)||t.includes(`
231
231
  `),[o,i]=Ng(_R?`${e}
@@ -248,9 +248,9 @@ ${_R}`)}return _R}function Bu(e,t){let{compareKeys:r}=Pn(t);return{...e,compareK
248
248
  `),s.split(`
249
249
  `),_R)}}var Vm=2e4;function Gm(e){return Iu(e)==="Object"&&typeof e.asymmetricMatch=="function"}function Wm(e,t){let r=Iu(e),_R=Iu(t);return r===_R&&(r==="Object"||r==="Array")}function WO(e,t,r){let{aAnnotation:_R,bAnnotation:o}=Pn(r);if(typeof e=="string"&&typeof t=="string"&&e.length>0&&t.length>0&&e.length<=Vm&&t.length<=Vm&&e!==t){if(e.includes(`
250
250
  `)||t.includes(`
251
- `))return FO(t,e,r);let[d]=Ng(t,e,!0),c=d.some(g=>g[0]===_t),p=YO(_R,o),h=p(_R)+XO(Ym(d,Lt,c)),m=p(o)+JO(Ym(d,jt,c));return`${h}
251
+ `))return FO(t,e,r);let[d]=Ng(t,e,!0),c=d.some(g=>g[0]===_t),p=YO(_R,o),h=p(_R)+XO(Ym(d,Lt,c)),m=p(o)+JO(Ym(d,Bt,c));return`${h}
252
252
  ${m}`}let i=Mm(e,{forceWritable:!0}),s=Mm(t,{forceWritable:!0}),{replacedExpected:l,replacedActual:u}=Dg(i,s);return VO(l,u,r)}function Dg(e,t,r=new WeakSet,_R=new WeakSet){return Wm(e,t)?r.has(e)||_R.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),_R.add(t),Eg(t).forEach(o=>{let i=t[o],s=e[o];if(Gm(i))i.asymmetricMatch(s)&&(e[o]=i);else if(Gm(s))s.asymmetricMatch(i)&&(t[o]=s);else if(Wm(s,i)){let l=Dg(s,i,r,_R);e[o]=l.replacedActual,t[o]=l.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function YO(...e){let t=e.reduce((r,_R)=>_R.length>r?_R.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var KO="\xB7";function qg(e){return e.replace(/\s+$/gm,t=>KO.repeat(t.length))}function JO(e){return Br.red(qg($i(e)))}function XO(e){return Br.green(qg($i(e)))}function Ym(e,t,r){return e.reduce((_R,o)=>_R+(o[0]===_t?o[1]:o[0]===t?r?Br.inverse(o[1]):o[1]:""),"")}var QO="@@__IMMUTABLE_RECORD__@@",ZO="@@__IMMUTABLE_ITERABLE__@@";function eP(e){return e&&(e[ZO]||e[QO])}var tP=Object.getPrototypeOf({});function Km(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function Go(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(eP(e))return Go(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${dO(e.sample)}`;if(typeof e.toJSON=="function")return Go(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((_R,o)=>{try{r[o]=Go(_R,t)}catch(i){r[o]=Km(i)}}),r}else{let r=Object.create(null);t.set(e,r);let _R=e;for(;_R&&_R!==tP;)Object.getOwnPropertyNames(_R).forEach(o=>{if(!(o in r))try{r[o]=Go(e[o],t)}catch(i){delete r[o],r[o]=Km(i)}}),_R=Object.getPrototypeOf(_R);return r}}function rP(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function jg(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let _R=e;_R.stack&&(_R.stackStr=String(_R.stack)),_R.name&&(_R.nameStr=String(_R.name)),(_R.showDiff||_R.showDiff===void 0&&_R.expected!==void 0&&_R.actual!==void 0)&&(_R.diff=WO(_R.actual,_R.expected,{...t,..._R.diffOptions})),typeof _R.expected!="string"&&(_R.expected=$i(_R.expected,10)),typeof _R.actual!="string"&&(_R.actual=$i(_R.actual,10));try{typeof _R.message=="string"&&(_R.message=rP(_R.message))}catch{}try{!r.has(_R)&&typeof _R.cause=="object"&&(r.add(_R),_R.cause=jg(_R.cause,t,r))}catch{}try{return Go(_R)}catch(o){return Go(new Error(`Failed to fully serialize error: ${o==null?void 0:o.message}
253
- Inner error message: ${_R==null?void 0:_R.message}`))}}var Bg=(e=>(e.DONE="done",e.ERROR="error",e.ACTIVE="active",e.WAITING="waiting",e))(Bg||{}),Rr={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},Jm={start:!1,back:!1,goto:!1,next:!1,end:!1},nP=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Xm=e=>Object.prototype.toString.call(e)==="[object Object]",oP=e=>Object.prototype.toString.call(e)==="[object Module]",iP=e=>{if(!Xm(e)&&!oP(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Xm(t)},aP=e=>{try{return new e.constructor}catch{return{}}},Pu=()=>({renderPhase:void 0,isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),Qm=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let _R=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:_R}},sP=class{constructor(){var s;this.initialized=!1,this.channel=gR.addons.getChannel(),this.state=((s=Kt.global.window)==null?void 0:s.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__)||{};let e=({storyId:l,isPlaying:u=!0,isDebugging:d=!1})=>{let c=this.getState(l);this.setState(l,{...Pu(),...Qm(c,d),shadowCalls:d?c.shadowCalls:[],chainedCallIds:d?c.chainedCallIds:new Set,playUntil:d?c.playUntil:void 0,isPlaying:u,isDebugging:d}),this.sync(l)};this.channel.on(Xa.FORCE_REMOUNT,e),this.channel.on(Xa.STORY_RENDER_PHASE_CHANGED,({storyId:l,newPhase:u})=>{let{isDebugging:d}=this.getState(l);this.setState(l,{renderPhase:u}),u==="preparing"&&d&&e({storyId:l}),u==="playing"&&e({storyId:l,isDebugging:d}),u==="played"&&this.setState(l,{isLocked:!1,isPlaying:!1,isDebugging:!1}),u==="errored"&&this.setState(l,{isLocked:!1,isPlaying:!1})}),this.channel.on(Xa.SET_CURRENT_STORY,()=>{this.initialized?this.cleanup():this.initialized=!0});let t=({storyId:l,playUntil:u})=>{this.getState(l).isDebugging||this.setState(l,({calls:c})=>({calls:[],shadowCalls:c.map(p=>({...p,status:"waiting"})),isDebugging:!0}));let d=this.getLog(l);this.setState(l,({shadowCalls:c})=>{var h;if(u||!d.length)return{playUntil:u};let p=c.findIndex(m=>m.id===d[0].callId);return{playUntil:(h=c.slice(0,p).filter(m=>m.interceptable&&!m.ancestors.length).slice(-1)[0])==null?void 0:h.id}}),this.channel.emit(Xa.FORCE_REMOUNT,{storyId:l,isDebugging:!0})},r=({storyId:l})=>{var c;let u=this.getLog(l).filter(p=>!p.ancestors.length),d=u.reduceRight((p,h,m)=>p>=0||h.status==="waiting"?p:m,-1);t({storyId:l,playUntil:(c=u[d-1])==null?void 0:c.callId})},_R=({storyId:l,callId:u})=>{var g;let{calls:d,shadowCalls:c,resolvers:p}=this.getState(l),h=d.find(({id:y})=>y===u),m=c.find(({id:y})=>y===u);if(!h&&m&&Object.values(p).length>0){let y=(g=this.getLog(l).find(b=>b.status==="waiting"))==null?void 0:g.callId;m.id!==y&&this.setState(l,{playUntil:m.id}),Object.values(p).forEach(b=>b())}else t({storyId:l,playUntil:u})},o=({storyId:l})=>{var d;let{resolvers:u}=this.getState(l);if(Object.values(u).length>0)Object.values(u).forEach(c=>c());else{let c=(d=this.getLog(l).find(p=>p.status==="waiting"))==null?void 0:d.callId;c?t({storyId:l,playUntil:c}):i({storyId:l})}},i=({storyId:l})=>{this.setState(l,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(l).resolvers).forEach(u=>u())};this.channel.on(Rr.START,t),this.channel.on(Rr.BACK,r),this.channel.on(Rr.GOTO,_R),this.channel.on(Rr.NEXT,o),this.channel.on(Rr.END,i)}getState(e){return this.state[e]||Pu()}setState(e,t){var o;let r=this.getState(e),_R=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,..._R}},(o=Kt.global.window)!=null&&o.parent&&(Kt.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}cleanup(){var t;this.state=Object.entries(this.state).reduce((r,[_R,o])=>{let i=Qm(o);return i&&(r[_R]=Object.assign(Pu(),i)),r},{});let e={controlStates:Jm,logItems:[]};this.channel.emit(Rr.SYNC,e),(t=Kt.global.window)!=null&&t.parent&&(Kt.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),_R=[...r];t.forEach((i,s)=>{_R[s]=i});let o=new Set;return _R.reduceRight((i,s)=>(s.args.forEach(l=>{l!=null&&l.__callId__&&o.add(l.__callId__)}),s.path.forEach(l=>{l.__callId__&&o.add(l.__callId__)}),(s.interceptable||s.exception)&&!o.has(s.id)&&(i.unshift({callId:s.id,status:s.status,ancestors:s.ancestors}),o.add(s.id)),i),[])}instrument(e,t,r=0){if(!iP(e))return e;let{mutate:_R=!1,path:o=[]}=t,i=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,i.reduce((s,l)=>{let u=uP(e,l);if(typeof(u==null?void 0:u.get)=="function"){let c=()=>{var p,h;return(h=(p=u==null?void 0:u.get)==null?void 0:p.bind(e))==null?void 0:h()};return Object.defineProperty(s,l,{get:()=>this.instrument(c(),{...t,path:o.concat(l)},r)}),s}let d=e[l];return typeof d!="function"?(s[l]=this.instrument(d,{...t,path:o.concat(l)},r),s):"__originalFn__"in d&&typeof d.__originalFn__=="function"?(s[l]=d,s):(s[l]=(...c)=>this.track(l,d,e,c,t),s[l].__originalFn__=d,Object.defineProperty(s[l],"name",{value:l,writable:!1}),Object.keys(d).length>0&&Object.assign(s[l],this.instrument({...d},{...t,path:o.concat(l)},r)),s)},_R?e:aP(e))}track(e,t,r,_R,o){var y,b,E,_;let i=((y=_R==null?void 0:_R[0])==null?void 0:y.__storyId__)||((_=(E=(b=Kt.global.__STORYBOOK_PREVIEW__)==null?void 0:b.selectionStore)==null?void 0:E.selection)==null?void 0:_.storyId),{cursor:s,ancestors:l}=this.getState(i);this.setState(i,{cursor:s+1});let u=`${l.slice(-1)[0]||i} [${s}] ${e}`,{path:d=[],intercept:c=!1,retain:p=!1}=o,h=typeof c=="function"?c(e,d):c,m={id:u,cursor:s,storyId:i,ancestors:l,path:d,method:e,args:_R,interceptable:h,retain:p},g=(h&&!l.length?this.intercept:this.invoke).call(this,t,r,m,o);return this.instrument(g,{...o,mutate:!0,path:[{__callId__:m.id}]})}intercept(e,t,r,_R){let{chainedCallIds:o,isDebugging:i,playUntil:s}=this.getState(r.storyId),l=o.has(r.id);return!i||l||s?(s===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,_R)):new Promise(u=>{this.setState(r.storyId,({resolvers:d})=>({isLocked:!1,resolvers:{...d,[r.id]:u}}))}).then(()=>(this.setState(r.storyId,u=>{let{[r.id]:d,...c}=u.resolvers;return{isLocked:!0,resolvers:c}}),this.invoke(e,t,r,_R)))}invoke(e,t,r,_R){let{callRefsByResult:o,renderPhase:i}=this.getState(r.storyId),s=25,l=(c,p,h)=>{var m,g,y;if(h.includes(c))return"[Circular]";if(h=[...h,c],p>s)return"...";if(o.has(c))return o.get(c);if(c instanceof Array)return c.map(b=>l(b,++p,h));if(c instanceof Date)return{__date__:{value:c.toISOString()}};if(c instanceof Error){let{name:b,message:E,stack:_}=c;return{__error__:{name:b,message:E,stack:_}}}if(c instanceof RegExp){let{flags:b,source:E}=c;return{__regexp__:{flags:b,source:E}}}if(c instanceof((m=Kt.global.window)==null?void 0:m.HTMLElement)){let{prefix:b,localName:E,id:_,classList:O,innerText:C}=c,w=Array.from(O);return{__element__:{prefix:b,localName:E,id:_,classNames:w,innerText:C}}}return typeof c=="function"?{__function__:{name:"getMockName"in c?c.getMockName():c.name}}:typeof c=="symbol"?{__symbol__:{description:c.description}}:typeof c=="object"&&((g=c==null?void 0:c.constructor)!=null&&g.name)&&((y=c==null?void 0:c.constructor)==null?void 0:y.name)!=="Object"?{__class__:{name:c.constructor.name}}:Object.prototype.toString.call(c)==="[object Object]"?Object.fromEntries(Object.entries(c).map(([b,E])=>[b,l(E,++p,h)])):c},u={...r,args:r.args.map(c=>l(c,0,[]))};r.path.forEach(c=>{c!=null&&c.__callId__&&this.setState(r.storyId,({chainedCallIds:p})=>({chainedCallIds:new Set(Array.from(p).concat(c.__callId__))}))});let d=c=>{if(c instanceof Error){let{name:p,message:h,stack:m,callId:g=r.id}=c,{showDiff:y=void 0,diff:b=void 0,actual:E=void 0,expected:_=void 0}=c.name==="AssertionError"?jg(c):c,O={name:p,message:h,stack:m,callId:g,showDiff:y,diff:b,actual:E,expected:_};if(this.update({...u,status:"error",exception:O}),this.setState(r.storyId,C=>({callRefsByResult:new Map([...Array.from(C.callRefsByResult.entries()),[c,{__callId__:r.id,retain:r.retain}]])})),r.ancestors.length)throw Object.prototype.hasOwnProperty.call(c,"callId")||Object.defineProperty(c,"callId",{value:r.id}),c}throw c};try{if(i==="played"&&!r.retain)throw nP;let c=(_R.getArgs?_R.getArgs(r,this.getState(r.storyId)):r.args).map(h=>typeof h!="function"||Object.keys(h).length?h:(...m)=>{let{cursor:g,ancestors:y}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...y,r.id]});let b=()=>this.setState(r.storyId,{cursor:g,ancestors:y}),E=!1;try{let _=h(...m);return _ instanceof Promise?(E=!0,_.finally(b)):_}finally{E||b()}}),p=e.apply(t,c);return p&&["object","function","symbol"].includes(typeof p)&&this.setState(r.storyId,h=>({callRefsByResult:new Map([...Array.from(h.callRefsByResult.entries()),[p,{__callId__:r.id,retain:r.retain}]])})),this.update({...u,status:p instanceof Promise?"active":"done"}),p instanceof Promise?p.then(h=>(this.update({...u,status:"done"}),h),d):p}catch(c){return d(c)}}update(e){this.channel.emit(Rr.CALL,e),this.setState(e.storyId,({calls:t})=>{let r=t.concat(e).reduce((_R,o)=>Object.assign(_R,{[o.id]:o}),{});return{calls:Object.values(r).sort((_R,o)=>_R.id.localeCompare(o.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{var d;let{isLocked:r,isPlaying:_R}=this.getState(e),o=this.getLog(e),i=(d=o.filter(({ancestors:c})=>!c.length).find(c=>c.status==="waiting"))==null?void 0:d.callId,s=o.some(c=>c.status==="active");if(r||s||o.length===0){let c={controlStates:Jm,logItems:o};this.channel.emit(Rr.SYNC,c);return}let l=o.some(c=>c.status==="done"||c.status==="error"),u={controlStates:{start:l,back:l,goto:!0,next:_R,end:_R},logItems:o,pausedAt:i};this.channel.emit(Rr.SYNC,u)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function lP(e,t={}){var r,_R,o,i,s,l,u,d;try{let c=!1,p=!1;return(o=(_R=(r=Kt.global.window)==null?void 0:r.location)==null?void 0:_R.search)!=null&&o.includes("instrument=true")?c=!0:(l=(s=(i=Kt.global.window)==null?void 0:i.location)==null?void 0:s.search)!=null&&l.includes("instrument=false")&&(p=!0),((u=Kt.global.window)==null?void 0:u.parent)===Kt.global.window&&!c||p?e:(Kt.global.window&&!Kt.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(Kt.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new sP),((d=Kt.global.window)==null?void 0:d.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(c){return mR.once.warn(c),e}}function uP(e,t){let r=e;for(;r!=null;){let _R=Object.getOwnPropertyDescriptor(r,t);if(_R)return _R;r=Object.getPrototypeOf(r)}}});var ow=or((RH,In)=>{"use strict";var cP=Object.create,ks=Object.defineProperty,dP=Object.getOwnPropertyDescriptor,Gb=Object.getOwnPropertyNames,pP=Object.getPrototypeOf,fP=Object.prototype.hasOwnProperty,M=(e,t)=>function(){return t||(0,e[Gb(e)[0]])((t={exports:{}}).exports,t),t.exports},Ls=(e,t)=>{for(var r in t)ks(e,r,{get:t[r],enumerable:!0})},Wb=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Gb(t))!fP.call(e,o)&&o!==r&&ks(e,o,{get:()=>t[o],enumerable:!(_R=dP(t,o))||_R.enumerable});return e},nr=(e,t,r)=>(r=e!=null?cP(pP(e)):{},Wb(t||!e||!e.__esModule?ks(r,"default",{value:e,enumerable:!0}):r,e)),hP=e=>Wb(ks({},"__esModule",{value:!0}),e),mP=M({"../../node_modules/min-indent/index.js"(e,t){"use strict";t.exports=r=>{let _R=r.match(/^[ \t]*(?=\S)/gm);return _R?_R.reduce((o,i)=>Math.min(o,i.length),1/0):0}}}),gP=M({"../../node_modules/strip-indent/index.js"(e,t){"use strict";var r=mP();t.exports=_R=>{let o=r(_R);if(o===0)return _R;let i=new RegExp(`^[ \\t]{${o}}`,"gm");return _R.replace(i,"")}}}),yP=M({"../../node_modules/indent-string/index.js"(e,t){"use strict";t.exports=(r,_R=1,o)=>{if(o={indent:" ",includeEmptyLines:!1,...o},typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof _R!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof _R}\``);if(typeof o.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof o.indent}\``);if(_R===0)return r;let i=o.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return r.replace(i,o.indent.repeat(_R))}}}),Yb=M({"../../node_modules/redent/index.js"(e,t){"use strict";var r=gP(),_R=yP();t.exports=(o,i=0,s)=>_R(r(o),i,s)}}),bP=M({"../../node_modules/aria-query/lib/util/iteratorProxy.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(){var _R=this,o=0,i={"@@iterator":function(){return i},next:function(){if(o<_R.length){var s=_R[o];return o=o+1,{done:!1,value:s}}else return{done:!0}}};return i}var r=t;e.default=r}}),ma=M({"../../node_modules/aria-query/lib/util/iterationDecorator.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=r(bP());function r(i){return i&&i.__esModule?i:{default:i}}function _R(i){"@babel/helpers - typeof";return _R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_R(i)}function o(i,s){return typeof Symbol=="function"&&_R(Symbol.iterator)==="symbol"&&Object.defineProperty(i,Symbol.iterator,{value:t.default.bind(s)}),i}}}),vP=M({"../../node_modules/aria-query/lib/ariaPropsMap.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(ma());function r(m){return m&&m.__esModule?m:{default:m}}function _R(m,g){return s(m)||i(m,g)||u(m,g)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
253
+ Inner error message: ${_R==null?void 0:_R.message}`))}}var Bg=(e=>(e.DONE="done",e.ERROR="error",e.ACTIVE="active",e.WAITING="waiting",e))(Bg||{}),Rr={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},Jm={start:!1,back:!1,goto:!1,next:!1,end:!1},nP=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Xm=e=>Object.prototype.toString.call(e)==="[object Object]",oP=e=>Object.prototype.toString.call(e)==="[object Module]",iP=e=>{if(!Xm(e)&&!oP(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Xm(t)},aP=e=>{try{return new e.constructor}catch{return{}}},Pu=()=>({renderPhase:void 0,isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),Qm=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let _R=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:_R}},sP=class{constructor(){var s;this.initialized=!1,this.channel=gR.addons.getChannel(),this.state=((s=Kt.global.window)==null?void 0:s.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__)||{};let e=({storyId:l,isPlaying:u=!0,isDebugging:d=!1})=>{let c=this.getState(l);this.setState(l,{...Pu(),...Qm(c,d),shadowCalls:d?c.shadowCalls:[],chainedCallIds:d?c.chainedCallIds:new Set,playUntil:d?c.playUntil:void 0,isPlaying:u,isDebugging:d}),this.sync(l)};this.channel.on(Xa.FORCE_REMOUNT,e),this.channel.on(Xa.STORY_RENDER_PHASE_CHANGED,({storyId:l,newPhase:u})=>{let{isDebugging:d}=this.getState(l);this.setState(l,{renderPhase:u}),u==="preparing"&&d&&e({storyId:l}),u==="playing"&&e({storyId:l,isDebugging:d}),u==="played"&&this.setState(l,{isLocked:!1,isPlaying:!1,isDebugging:!1}),u==="errored"&&this.setState(l,{isLocked:!1,isPlaying:!1})}),this.channel.on(Xa.SET_CURRENT_STORY,()=>{this.initialized?this.cleanup():this.initialized=!0});let t=({storyId:l,playUntil:u})=>{this.getState(l).isDebugging||this.setState(l,({calls:c})=>({calls:[],shadowCalls:c.map(p=>({...p,status:"waiting"})),isDebugging:!0}));let d=this.getLog(l);this.setState(l,({shadowCalls:c})=>{var h;if(u||!d.length)return{playUntil:u};let p=c.findIndex(m=>m.id===d[0].callId);return{playUntil:(h=c.slice(0,p).filter(m=>m.interceptable&&!m.ancestors.length).slice(-1)[0])==null?void 0:h.id}}),this.channel.emit(Xa.FORCE_REMOUNT,{storyId:l,isDebugging:!0})},r=({storyId:l})=>{var c;let u=this.getLog(l).filter(p=>!p.ancestors.length),d=u.reduceRight((p,h,m)=>p>=0||h.status==="waiting"?p:m,-1);t({storyId:l,playUntil:(c=u[d-1])==null?void 0:c.callId})},_R=({storyId:l,callId:u})=>{var g;let{calls:d,shadowCalls:c,resolvers:p}=this.getState(l),h=d.find(({id:y})=>y===u),m=c.find(({id:y})=>y===u);if(!h&&m&&Object.values(p).length>0){let y=(g=this.getLog(l).find(b=>b.status==="waiting"))==null?void 0:g.callId;m.id!==y&&this.setState(l,{playUntil:m.id}),Object.values(p).forEach(b=>b())}else t({storyId:l,playUntil:u})},o=({storyId:l})=>{var d;let{resolvers:u}=this.getState(l);if(Object.values(u).length>0)Object.values(u).forEach(c=>c());else{let c=(d=this.getLog(l).find(p=>p.status==="waiting"))==null?void 0:d.callId;c?t({storyId:l,playUntil:c}):i({storyId:l})}},i=({storyId:l})=>{this.setState(l,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(l).resolvers).forEach(u=>u())};this.channel.on(Rr.START,t),this.channel.on(Rr.BACK,r),this.channel.on(Rr.GOTO,_R),this.channel.on(Rr.NEXT,o),this.channel.on(Rr.END,i)}getState(e){return this.state[e]||Pu()}setState(e,t){var o;let r=this.getState(e),_R=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,..._R}},(o=Kt.global.window)!=null&&o.parent&&(Kt.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}cleanup(){var t;this.state=Object.entries(this.state).reduce((r,[_R,o])=>{let i=Qm(o);return i&&(r[_R]=Object.assign(Pu(),i)),r},{});let e={controlStates:Jm,logItems:[]};this.channel.emit(Rr.SYNC,e),(t=Kt.global.window)!=null&&t.parent&&(Kt.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),_R=[...r];t.forEach((i,s)=>{_R[s]=i});let o=new Set;return _R.reduceRight((i,s)=>(s.args.forEach(l=>{l!=null&&l.__callId__&&o.add(l.__callId__)}),s.path.forEach(l=>{l.__callId__&&o.add(l.__callId__)}),(s.interceptable||s.exception)&&!o.has(s.id)&&(i.unshift({callId:s.id,status:s.status,ancestors:s.ancestors}),o.add(s.id)),i),[])}instrument(e,t,r=0){if(!iP(e))return e;let{mutate:_R=!1,path:o=[]}=t,i=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,i.reduce((s,l)=>{let u=uP(e,l);if(typeof(u==null?void 0:u.get)=="function"){let c=()=>{var p,h;return(h=(p=u==null?void 0:u.get)==null?void 0:p.bind(e))==null?void 0:h()};return Object.defineProperty(s,l,{get:()=>this.instrument(c(),{...t,path:o.concat(l)},r)}),s}let d=e[l];return typeof d!="function"?(s[l]=this.instrument(d,{...t,path:o.concat(l)},r),s):"__originalFn__"in d&&typeof d.__originalFn__=="function"?(s[l]=d,s):(s[l]=(...c)=>this.track(l,d,e,c,t),s[l].__originalFn__=d,Object.defineProperty(s[l],"name",{value:l,writable:!1}),Object.keys(d).length>0&&Object.assign(s[l],this.instrument({...d},{...t,path:o.concat(l)},r)),s)},_R?e:aP(e))}track(e,t,r,_R,o){var y,b,E,_;let i=((y=_R==null?void 0:_R[0])==null?void 0:y.__storyId__)||((_=(E=(b=Kt.global.__STORYBOOK_PREVIEW__)==null?void 0:b.selectionStore)==null?void 0:E.selection)==null?void 0:_.storyId),{cursor:s,ancestors:l}=this.getState(i);this.setState(i,{cursor:s+1});let u=`${l.slice(-1)[0]||i} [${s}] ${e}`,{path:d=[],intercept:c=!1,retain:p=!1}=o,h=typeof c=="function"?c(e,d):c,m={id:u,cursor:s,storyId:i,ancestors:l,path:d,method:e,args:_R,interceptable:h,retain:p},g=(h&&!l.length?this.intercept:this.invoke).call(this,t,r,m,o);return this.instrument(g,{...o,mutate:!0,path:[{__callId__:m.id}]})}intercept(e,t,r,_R){let{chainedCallIds:o,isDebugging:i,playUntil:s}=this.getState(r.storyId),l=o.has(r.id);return!i||l||s?(s===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,_R)):new Promise(u=>{this.setState(r.storyId,({resolvers:d})=>({isLocked:!1,resolvers:{...d,[r.id]:u}}))}).then(()=>(this.setState(r.storyId,u=>{let{[r.id]:d,...c}=u.resolvers;return{isLocked:!0,resolvers:c}}),this.invoke(e,t,r,_R)))}invoke(e,t,r,_R){let{callRefsByResult:o,renderPhase:i}=this.getState(r.storyId),s=25,l=(c,p,h)=>{var m,g,y;if(h.includes(c))return"[Circular]";if(h=[...h,c],p>s)return"...";if(o.has(c))return o.get(c);if(c instanceof Array)return c.map(b=>l(b,++p,h));if(c instanceof Date)return{__date__:{value:c.toISOString()}};if(c instanceof Error){let{name:b,message:E,stack:_}=c;return{__error__:{name:b,message:E,stack:_}}}if(c instanceof RegExp){let{flags:b,source:E}=c;return{__regexp__:{flags:b,source:E}}}if(c instanceof((m=Kt.global.window)==null?void 0:m.HTMLElement)){let{prefix:b,localName:E,id:_,classList:O,innerText:C}=c,w=Array.from(O);return{__element__:{prefix:b,localName:E,id:_,classNames:w,innerText:C}}}return typeof c=="function"?{__function__:{name:"getMockName"in c?c.getMockName():c.name}}:typeof c=="symbol"?{__symbol__:{description:c.description}}:typeof c=="object"&&((g=c==null?void 0:c.constructor)!=null&&g.name)&&((y=c==null?void 0:c.constructor)==null?void 0:y.name)!=="Object"?{__class__:{name:c.constructor.name}}:Object.prototype.toString.call(c)==="[object Object]"?Object.fromEntries(Object.entries(c).map(([b,E])=>[b,l(E,++p,h)])):c},u={...r,args:r.args.map(c=>l(c,0,[]))};r.path.forEach(c=>{c!=null&&c.__callId__&&this.setState(r.storyId,({chainedCallIds:p})=>({chainedCallIds:new Set(Array.from(p).concat(c.__callId__))}))});let d=c=>{if(c instanceof Error){let{name:p,message:h,stack:m,callId:g=r.id}=c,{showDiff:y=void 0,diff:b=void 0,actual:E=void 0,expected:_=void 0}=c.name==="AssertionError"?jg(c):c,O={name:p,message:h,stack:m,callId:g,showDiff:y,diff:b,actual:E,expected:_};if(this.update({...u,status:"error",exception:O}),this.setState(r.storyId,C=>({callRefsByResult:new Map([...Array.from(C.callRefsByResult.entries()),[c,{__callId__:r.id,retain:r.retain}]])})),r.ancestors.length)throw Object.prototype.hasOwnProperty.call(c,"callId")||Object.defineProperty(c,"callId",{value:r.id}),c}throw c};try{if(i==="played"&&!r.retain)throw nP;let c=(_R.getArgs?_R.getArgs(r,this.getState(r.storyId)):r.args).map(h=>typeof h!="function"||Object.keys(h).length?h:(...m)=>{let{cursor:g,ancestors:y}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...y,r.id]});let b=()=>this.setState(r.storyId,{cursor:g,ancestors:y}),E=!1;try{let _=h(...m);return _ instanceof Promise?(E=!0,_.finally(b)):_}finally{E||b()}}),p=e.apply(t,c);return p&&["object","function","symbol"].includes(typeof p)&&this.setState(r.storyId,h=>({callRefsByResult:new Map([...Array.from(h.callRefsByResult.entries()),[p,{__callId__:r.id,retain:r.retain}]])})),this.update({...u,status:p instanceof Promise?"active":"done"}),p instanceof Promise?p.then(h=>(this.update({...u,status:"done"}),h),d):p}catch(c){return d(c)}}update(e){this.channel.emit(Rr.CALL,e),this.setState(e.storyId,({calls:t})=>{let r=t.concat(e).reduce((_R,o)=>Object.assign(_R,{[o.id]:o}),{});return{calls:Object.values(r).sort((_R,o)=>_R.id.localeCompare(o.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{var d;let{isLocked:r,isPlaying:_R}=this.getState(e),o=this.getLog(e),i=(d=o.filter(({ancestors:c})=>!c.length).find(c=>c.status==="waiting"))==null?void 0:d.callId,s=o.some(c=>c.status==="active");if(r||s||o.length===0){let c={controlStates:Jm,logItems:o};this.channel.emit(Rr.SYNC,c);return}let l=o.some(c=>c.status==="done"||c.status==="error"),u={controlStates:{start:l,back:l,goto:!0,next:_R,end:_R},logItems:o,pausedAt:i};this.channel.emit(Rr.SYNC,u)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function lP(e,t={}){var r,_R,o,i,s,l,u,d;try{let c=!1,p=!1;return(o=(_R=(r=Kt.global.window)==null?void 0:r.location)==null?void 0:_R.search)!=null&&o.includes("instrument=true")?c=!0:(l=(s=(i=Kt.global.window)==null?void 0:i.location)==null?void 0:s.search)!=null&&l.includes("instrument=false")&&(p=!0),((u=Kt.global.window)==null?void 0:u.parent)===Kt.global.window&&!c||p?e:(Kt.global.window&&!Kt.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(Kt.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new sP),((d=Kt.global.window)==null?void 0:d.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(c){return mR.once.warn(c),e}}function uP(e,t){let r=e;for(;r!=null;){let _R=Object.getOwnPropertyDescriptor(r,t);if(_R)return _R;r=Object.getPrototypeOf(r)}}});var ow=or((xH,In)=>{"use strict";var cP=Object.create,ks=Object.defineProperty,dP=Object.getOwnPropertyDescriptor,Gb=Object.getOwnPropertyNames,pP=Object.getPrototypeOf,fP=Object.prototype.hasOwnProperty,M=(e,t)=>function(){return t||(0,e[Gb(e)[0]])((t={exports:{}}).exports,t),t.exports},Ls=(e,t)=>{for(var r in t)ks(e,r,{get:t[r],enumerable:!0})},Wb=(e,t,r,_R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Gb(t))!fP.call(e,o)&&o!==r&&ks(e,o,{get:()=>t[o],enumerable:!(_R=dP(t,o))||_R.enumerable});return e},nr=(e,t,r)=>(r=e!=null?cP(pP(e)):{},Wb(t||!e||!e.__esModule?ks(r,"default",{value:e,enumerable:!0}):r,e)),hP=e=>Wb(ks({},"__esModule",{value:!0}),e),mP=M({"../../node_modules/min-indent/index.js"(e,t){"use strict";t.exports=r=>{let _R=r.match(/^[ \t]*(?=\S)/gm);return _R?_R.reduce((o,i)=>Math.min(o,i.length),1/0):0}}}),gP=M({"../../node_modules/strip-indent/index.js"(e,t){"use strict";var r=mP();t.exports=_R=>{let o=r(_R);if(o===0)return _R;let i=new RegExp(`^[ \\t]{${o}}`,"gm");return _R.replace(i,"")}}}),yP=M({"../../node_modules/indent-string/index.js"(e,t){"use strict";t.exports=(r,_R=1,o)=>{if(o={indent:" ",includeEmptyLines:!1,...o},typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof _R!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof _R}\``);if(typeof o.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof o.indent}\``);if(_R===0)return r;let i=o.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return r.replace(i,o.indent.repeat(_R))}}}),Yb=M({"../../node_modules/redent/index.js"(e,t){"use strict";var r=gP(),_R=yP();t.exports=(o,i=0,s)=>_R(r(o),i,s)}}),bP=M({"../../node_modules/aria-query/lib/util/iteratorProxy.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(){var _R=this,o=0,i={"@@iterator":function(){return i},next:function(){if(o<_R.length){var s=_R[o];return o=o+1,{done:!1,value:s}}else return{done:!0}}};return i}var r=t;e.default=r}}),ma=M({"../../node_modules/aria-query/lib/util/iterationDecorator.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=r(bP());function r(i){return i&&i.__esModule?i:{default:i}}function _R(i){"@babel/helpers - typeof";return _R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_R(i)}function o(i,s){return typeof Symbol=="function"&&_R(Symbol.iterator)==="symbol"&&Object.defineProperty(i,Symbol.iterator,{value:t.default.bind(s)}),i}}}),vP=M({"../../node_modules/aria-query/lib/ariaPropsMap.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(ma());function r(m){return m&&m.__esModule?m:{default:m}}function _R(m,g){return s(m)||i(m,g)||u(m,g)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
254
254
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(m,g){var y=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(y!=null){var b=[],E=!0,_=!1,O,C;try{for(y=y.call(m);!(E=(O=y.next()).done)&&(b.push(O.value),!(g&&b.length===g));E=!0);}catch(w){_=!0,C=w}finally{try{!E&&y.return!=null&&y.return()}finally{if(_)throw C}}return b}}function s(m){if(Array.isArray(m))return m}function l(m,g){var y=typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(!y){if(Array.isArray(m)||(y=u(m))||g&&m&&typeof m.length=="number"){y&&(m=y);var b=0,E=function(){};return{s:E,_R:function(){return b>=m.length?{done:!0}:{done:!1,value:m[b++]}},e:function(w){throw w},f:E}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
255
255
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _=!0,O=!1,C;return{s:function(){y=y.call(m)},_R:function(){var w=y.next();return _=w.done,w},e:function(w){O=!0,C=w},f:function(){try{!_&&y.return!=null&&y.return()}finally{if(O)throw C}}}}function u(m,g){if(m){if(typeof m=="string")return d(m,g);var y=Object.prototype.toString.call(m).slice(8,-1);if(y==="Object"&&m.constructor&&(y=m.constructor.name),y==="Map"||y==="Set")return Array.from(m);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return d(m,g)}}function d(m,g){(g==null||g>m.length)&&(g=m.length);for(var y=0,b=new Array(g);y<g;y++)b[y]=m[y];return b}var c=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],p={entries:function(){return c},forEach:function(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,y=l(c),b;try{for(y.s();!(b=y._R()).done;){var E=_R(b.value,2),_=E[0],O=E[1];m.call(g,O,_,c)}}catch(C){y.e(C)}finally{y.f()}},get:function(m){var g=c.find(function(y){return y[0]===m});return g&&g[1]},has:function(m){return!!p.get(m)},keys:function(){return c.map(function(m){var g=_R(m,1),y=g[0];return y})},values:function(){return c.map(function(m){var g=_R(m,2),y=g[1];return y})}},h=(0,t.default)(p,p.entries());e.default=h}}),EP=M({"../../node_modules/aria-query/lib/domMap.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(ma());function r(m){return m&&m.__esModule?m:{default:m}}function _R(m,g){return s(m)||i(m,g)||u(m,g)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
256
256
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(m,g){var y=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(y!=null){var b=[],E=!0,_=!1,O,C;try{for(y=y.call(m);!(E=(O=y.next()).done)&&(b.push(O.value),!(g&&b.length===g));E=!0);}catch(w){_=!0,C=w}finally{try{!E&&y.return!=null&&y.return()}finally{if(_)throw C}}return b}}function s(m){if(Array.isArray(m))return m}function l(m,g){var y=typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(!y){if(Array.isArray(m)||(y=u(m))||g&&m&&typeof m.length=="number"){y&&(m=y);var b=0,E=function(){};return{s:E,_R:function(){return b>=m.length?{done:!0}:{done:!1,value:m[b++]}},e:function(w){throw w},f:E}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
@@ -300,29 +300,29 @@ ${e.utils.RECEIVED_COLOR((0,Yg.default)(ny(e,i),2))}`].join(`
300
300
  `)}}}function kv(e){ut(e,kv,this);let t=!Bv(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeValid`,"element",""),"",`Received element ${r} currently valid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
301
301
  `)}}}function Lv(e,t){if(ut(e,Lv,this),e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.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 r=gv(e),_R=t!==void 0,o=t,i=r;return t==r&&t!==r&&(o=`${t} (${typeof t})`,i=`${r} (${typeof r})`),{pass:_R?(0,fv.default)(r,t,yv):!!r,message:()=>{let s=this.isNot?"not to":"to",l=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return Ut(this,l,`Expected the element ${s} have value`,_R?o:"(any)","Received",i)}}}function $v(e,t){ut(e,$v,this);let r=e.tagName.toLowerCase();if(!["select","input","textarea"].includes(r))throw new Error(".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.");if(r==="input"&&["radio","checkbox"].includes(e.type))throw new Error(`.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`);let _R=Gj(r,e),o=Wj(t),i=o.filter(u=>_R.some(d=>u instanceof RegExp?u.test(d):this.equals(d,String(u)))).length,s=i===_R.length,l=i===o.length;return{pass:s&&l,message:()=>Ut(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,t,"Received",_R)}}function Gj(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}function Wj(e){return e instanceof Array?e:[e]}function Uv(e){ut(e,Uv,this);let t=()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),r=()=>Hv(e.getAttribute("role"))&&["true","false"].includes(e.getAttribute("aria-checked"));if(!t()&&!r())return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${Yj()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let _R=()=>t()?e.checked:e.getAttribute("aria-checked")==="true";return{pass:_R(),message:()=>{let o=_R()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeChecked`,"element",""),"",`Received element ${o} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
302
302
  `)}}}function Yj(){return fj(Kj().map(e=>`role="${e}"`),{lastWordConnector:" or "})}function Kj(){return rp.roles.keys().filter(Hv)}function Hv(e){var t;return((t=rp.roles.get(e))==null?void 0:t.props["aria-checked"])!==void 0}function zv(e){ut(e,zv,this);let t=()=>e.tagName.toLowerCase()==="input"&&e.type==="checkbox",r=()=>e.getAttribute("role")==="checkbox";if(!t()&&!r())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 _R=()=>{let o=e.getAttribute("aria-checked")==="mixed";return t()&&e.indeterminate||o};return{pass:_R(),message:()=>{let o=_R()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyChecked`,"element",""),"",`Received element ${o} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
303
- `)}}}function Vv(e,t){ol("toHaveDescription","Please use toHaveAccessibleDescription."),ut(e,Vv,this);let r=t!==void 0,_R=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),o="";if(_R.length>0){let i=e.ownerDocument,s=_R.map(l=>i.getElementById(l)).filter(Boolean);o=il(s.map(l=>l.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:()=>{let i=this.isNot?"not to":"to";return Ut(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${i} have description`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))}}}function Gv(e,t){if(ol("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),ut(e,Gv,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){let i=this.isNot?".not":"";return{pass:!1,message:()=>Ut(this,this.utils.matcherHint(`${i}.toHaveErrorMessage`,"element",""),"Expected the element to have invalid state indicated by",'aria-invalid="true"',"Received",e.hasAttribute("aria-invalid")?`aria-invalid="${e.getAttribute("aria-invalid")}"`:this.utils.printReceived(""))}}let r=t!==void 0,_R=(e.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean),o="";if(_R.length>0){let i=e.ownerDocument,s=_R.map(l=>i.getElementById(l)).filter(Boolean);o=il(s.map(l=>l.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:()=>{let i=this.isNot?"not to":"to";return Ut(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expected the element ${i} have error message`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))}}}var bH=nr(Yb(),1),vH=nr(hd(),1),EH=nr(Jb(),1),_H=nr(s0(),1),wH=nr(l0(),1);function Fr(e,t,r){let _R=typeof e;if(!r.includes(_R))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${_R}"`)}function ps(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function Jj(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Fc(e){return Object.prototype.toString.apply(e).slice(8,-1)}function Xj(e,t){let r=typeof t=="function"?t:_R=>t.add(_R);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function Wv(e){let t=new Set;return Jj(e)?[]:(Xj(e,t),Array.from(t))}var Yv={forceWritable:!1};function ly(e,t=Yv){return kc(e,new WeakMap,t)}function kc(e,t,r=Yv){let _R,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array(_R=e.length),t.set(e,o);_R--;)o[_R]=kc(e[_R],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=Wv(e);for(let s of i){let l=Object.getOwnPropertyDescriptor(e,s);if(!l)continue;let u=kc(e[s],t,r);r.forceWritable?Object.defineProperty(o,s,{enumerable:l.enumerable,configurable:!0,writable:!0,value:u}):"get"in l?Object.defineProperty(o,s,{...l,get(){return u}}):Object.defineProperty(o,s,{...l,value:u})}return o}return e}var uy={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"]},Qj={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},si="\u2026";function Zj(e,t){let r=uy[Qj[t]]||uy[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function eB({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:_R=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:s=1/0,seen:l=[],truncate:u=1/0,stylize:d=String}={},c){let p={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!_R,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(u),seen:l,inspect:c,stylize:d};return p.colors&&(p.stylize=Zj),p}function tB(e){return e>="\uD800"&&e<="\uDBFF"}function En(e,t,r=si){e=String(e);let _R=r.length,o=e.length;if(_R>t&&o>_R)return r;if(o>t&&o>_R){let i=t-_R;return i>0&&tB(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}function _r(e,t,r,_R=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,s="",l="",u="";for(let d=0;d<o;d+=1){let c=d+1===e.length,p=d+2===e.length;u=`${si}(${e.length-d})`;let h=e[d];t.truncate=i-s.length-(c?0:_R.length);let m=l||r(h,t)+(c?"":_R),g=s.length+m.length,y=g+u.length;if(c&&g>i&&s.length+u.length<=i||!c&&!p&&y>i||(l=c?"":r(e[d+1],t)+(p?"":_R),!c&&p&&y>i&&g+l.length>i))break;if(s+=m,!c&&!p&&g+l.length>=i){u=`${si}(${e.length-d-1})`;break}u=""}return`${s}${u}`}function rB(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function ta([e,t],r){return r.truncate-=2,typeof e=="string"?e=rB(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function nB(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let _R=_r(e,t);t.truncate-=_R.length;let o="";return r.length&&(o=_r(r.map(i=>[i,e[i]]),t,ta)),`[ ${_R}${o?`, ${o}`:""} ]`}var oB=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function kr(e,t){let r=oB(e);t.truncate-=r.length+4;let _R=Object.keys(e).slice(e.length);if(!e.length&&!_R.length)return`${r}[]`;let o="";for(let s=0;s<e.length;s++){let l=`${t.stylize(En(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=l.length,e[s]!==e.length&&t.truncate<=3){o+=`${si}(${e.length-e[s]+1})`;break}o+=l}let i="";return _R.length&&(i=_r(_R.map(s=>[s,e[s]]),t,ta)),`${r}[ ${o}${i?`, ${i}`:""} ]`}function iB(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let _R=r.split("T"),o=_R[0];return t.stylize(`${o}T${En(_R[1],t.truncate-o.length-1)}`,"date")}function cy(e,t){let r=e[Symbol.toStringTag]||"Function",_R=e.name;return _R?t.stylize(`[${r} ${En(_R,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function aB([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function sB(e){let t=[];return e.forEach((r,_R)=>{t.push([_R,r])}),t}function lB(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${_r(sB(e),t,aB)} }`)}var uB=Number.isNaN||(e=>e!==e);function dy(e,t){return uB(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(En(String(e),t.truncate),"number")}function py(e,t){let r=En(e.toString(),t.truncate-1);return r!==si&&(r+="_R"),t.stylize(r,"bigint")}function cB(e,t){let r=e.toString().split("/")[2],_R=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${En(o,_R)}/${r}`,"regexp")}function dB(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function pB(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${_r(dB(e),t)} }`)}var fy=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),fB={"\b":"\\b"," ":"\\t","\_R":"\\_R","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},hB=16,mB=4;function gB(e){return fB[e]||`\\u${`0000${e.charCodeAt(0).toString(hB)}`.slice(-mB)}`}function hy(e,t){return fy.test(e)&&(e=e.replace(fy,gB)),t.stylize(`'${En(e,t.truncate-2)}'`,"string")}function my(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var Kv=()=>"Promise{\u2026}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(Kv=(_R,o)=>{let[i,s]=e(_R);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(s,o)}}`})}catch{}var yB=Kv;function fs(e,t){let r=Object.getOwnPropertyNames(e),_R=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&_R.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.indexOf(e)>=0)return"[Circular]";t.seen.push(e);let o=_r(r.map(l=>[l,e[l]]),t,ta),i=_r(_R.map(l=>[l,e[l]]),t,ta);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}var Zu=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function bB(e,t){let r="";return Zu&&Zu in e&&(r=e[Zu]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${fs(e,t)}`}function vB(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${_r(e,t)} ]`)}var EB=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function _B(e,t){let r=Object.getOwnPropertyNames(e).filter(s=>EB.indexOf(s)===-1),_R=e.name;t.truncate-=_R.length;let o="";typeof e.message=="string"?o=En(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5;let i=_r(r.map(s=>[s,e[s]]),t,ta);return`${_R}${o}${i?` { ${i} }`:""}`}function wB([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function Lc(e,t){return _r(e,t,Jv,`
303
+ `)}}}function Vv(e,t){ol("toHaveDescription","Please use toHaveAccessibleDescription."),ut(e,Vv,this);let r=t!==void 0,_R=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),o="";if(_R.length>0){let i=e.ownerDocument,s=_R.map(l=>i.getElementById(l)).filter(Boolean);o=il(s.map(l=>l.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:()=>{let i=this.isNot?"not to":"to";return Ut(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${i} have description`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))}}}function Gv(e,t){if(ol("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),ut(e,Gv,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){let i=this.isNot?".not":"";return{pass:!1,message:()=>Ut(this,this.utils.matcherHint(`${i}.toHaveErrorMessage`,"element",""),"Expected the element to have invalid state indicated by",'aria-invalid="true"',"Received",e.hasAttribute("aria-invalid")?`aria-invalid="${e.getAttribute("aria-invalid")}"`:this.utils.printReceived(""))}}let r=t!==void 0,_R=(e.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean),o="";if(_R.length>0){let i=e.ownerDocument,s=_R.map(l=>i.getElementById(l)).filter(Boolean);o=il(s.map(l=>l.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:()=>{let i=this.isNot?"not to":"to";return Ut(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expected the element ${i} have error message`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))}}}var vH=nr(Yb(),1),EH=nr(hd(),1),_H=nr(Jb(),1),wH=nr(s0(),1),SH=nr(l0(),1);function Fr(e,t,r){let _R=typeof e;if(!r.includes(_R))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${_R}"`)}function ps(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function Jj(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Fc(e){return Object.prototype.toString.apply(e).slice(8,-1)}function Xj(e,t){let r=typeof t=="function"?t:_R=>t.add(_R);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function Wv(e){let t=new Set;return Jj(e)?[]:(Xj(e,t),Array.from(t))}var Yv={forceWritable:!1};function ly(e,t=Yv){return kc(e,new WeakMap,t)}function kc(e,t,r=Yv){let _R,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array(_R=e.length),t.set(e,o);_R--;)o[_R]=kc(e[_R],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=Wv(e);for(let s of i){let l=Object.getOwnPropertyDescriptor(e,s);if(!l)continue;let u=kc(e[s],t,r);r.forceWritable?Object.defineProperty(o,s,{enumerable:l.enumerable,configurable:!0,writable:!0,value:u}):"get"in l?Object.defineProperty(o,s,{...l,get(){return u}}):Object.defineProperty(o,s,{...l,value:u})}return o}return e}var uy={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"]},Qj={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},si="\u2026";function Zj(e,t){let r=uy[Qj[t]]||uy[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function eB({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:_R=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:s=1/0,seen:l=[],truncate:u=1/0,stylize:d=String}={},c){let p={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!_R,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(u),seen:l,inspect:c,stylize:d};return p.colors&&(p.stylize=Zj),p}function tB(e){return e>="\uD800"&&e<="\uDBFF"}function En(e,t,r=si){e=String(e);let _R=r.length,o=e.length;if(_R>t&&o>_R)return r;if(o>t&&o>_R){let i=t-_R;return i>0&&tB(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}function _r(e,t,r,_R=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,s="",l="",u="";for(let d=0;d<o;d+=1){let c=d+1===e.length,p=d+2===e.length;u=`${si}(${e.length-d})`;let h=e[d];t.truncate=i-s.length-(c?0:_R.length);let m=l||r(h,t)+(c?"":_R),g=s.length+m.length,y=g+u.length;if(c&&g>i&&s.length+u.length<=i||!c&&!p&&y>i||(l=c?"":r(e[d+1],t)+(p?"":_R),!c&&p&&y>i&&g+l.length>i))break;if(s+=m,!c&&!p&&g+l.length>=i){u=`${si}(${e.length-d-1})`;break}u=""}return`${s}${u}`}function rB(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function ta([e,t],r){return r.truncate-=2,typeof e=="string"?e=rB(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function nB(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let _R=_r(e,t);t.truncate-=_R.length;let o="";return r.length&&(o=_r(r.map(i=>[i,e[i]]),t,ta)),`[ ${_R}${o?`, ${o}`:""} ]`}var oB=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function kr(e,t){let r=oB(e);t.truncate-=r.length+4;let _R=Object.keys(e).slice(e.length);if(!e.length&&!_R.length)return`${r}[]`;let o="";for(let s=0;s<e.length;s++){let l=`${t.stylize(En(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=l.length,e[s]!==e.length&&t.truncate<=3){o+=`${si}(${e.length-e[s]+1})`;break}o+=l}let i="";return _R.length&&(i=_r(_R.map(s=>[s,e[s]]),t,ta)),`${r}[ ${o}${i?`, ${i}`:""} ]`}function iB(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let _R=r.split("T"),o=_R[0];return t.stylize(`${o}T${En(_R[1],t.truncate-o.length-1)}`,"date")}function cy(e,t){let r=e[Symbol.toStringTag]||"Function",_R=e.name;return _R?t.stylize(`[${r} ${En(_R,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function aB([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function sB(e){let t=[];return e.forEach((r,_R)=>{t.push([_R,r])}),t}function lB(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${_r(sB(e),t,aB)} }`)}var uB=Number.isNaN||(e=>e!==e);function dy(e,t){return uB(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(En(String(e),t.truncate),"number")}function py(e,t){let r=En(e.toString(),t.truncate-1);return r!==si&&(r+="_R"),t.stylize(r,"bigint")}function cB(e,t){let r=e.toString().split("/")[2],_R=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${En(o,_R)}/${r}`,"regexp")}function dB(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function pB(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${_r(dB(e),t)} }`)}var fy=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),fB={"\b":"\\b"," ":"\\t","\_R":"\\_R","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},hB=16,mB=4;function gB(e){return fB[e]||`\\u${`0000${e.charCodeAt(0).toString(hB)}`.slice(-mB)}`}function hy(e,t){return fy.test(e)&&(e=e.replace(fy,gB)),t.stylize(`'${En(e,t.truncate-2)}'`,"string")}function my(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var Kv=()=>"Promise{\u2026}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(Kv=(_R,o)=>{let[i,s]=e(_R);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(s,o)}}`})}catch{}var yB=Kv;function fs(e,t){let r=Object.getOwnPropertyNames(e),_R=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&_R.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.indexOf(e)>=0)return"[Circular]";t.seen.push(e);let o=_r(r.map(l=>[l,e[l]]),t,ta),i=_r(_R.map(l=>[l,e[l]]),t,ta);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}var Zu=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function bB(e,t){let r="";return Zu&&Zu in e&&(r=e[Zu]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${fs(e,t)}`}function vB(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${_r(e,t)} ]`)}var EB=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function _B(e,t){let r=Object.getOwnPropertyNames(e).filter(s=>EB.indexOf(s)===-1),_R=e.name;t.truncate-=_R.length;let o="";typeof e.message=="string"?o=En(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5;let i=_r(r.map(s=>[s,e[s]]),t,ta);return`${_R}${o}${i?` { ${i} }`:""}`}function wB([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function Lc(e,t){return _r(e,t,Jv,`
304
304
  `)}function Jv(e,t){let r=e.getAttributeNames(),_R=e.tagName.toLowerCase(),o=t.stylize(`<${_R}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${_R}>`,"special");t.truncate-=_R.length*2+5;let l="";r.length>0&&(l+=" ",l+=_r(r.map(c=>[c,e.getAttribute(c)]),t,wB," ")),t.truncate-=l.length;let u=t.truncate,d=Lc(e.children,t);return d&&d.length>u&&(d=`${si}(${e.children.length})`),`${o}${l}${i}${d}${s}`}var SB=typeof Symbol=="function"&&typeof Symbol.for=="function",ec=SB?Symbol.for("chai/inspect"):"@@chai/inspect",Xo=!1;try{let e=require("util");Xo=e.inspect?e.inspect.custom:!1}catch{Xo=!1}var gy=new WeakMap,yy={},by={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:dy,Number:dy,bigint:py,BigInt:py,string:hy,String:hy,function:cy,Function:cy,symbol:my,Symbol:my,Array:nB,Date:iB,Map:lB,Set:pB,RegExp:cB,Promise:yB,WeakSet:(e,t)=>t.stylize("WeakSet{\u2026}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{\u2026}","special"),Arguments:vB,Int8Array:kr,Uint8Array:kr,Uint8ClampedArray:kr,Int16Array:kr,Uint16Array:kr,Int32Array:kr,Uint32Array:kr,Float32Array:kr,Float64Array:kr,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:_B,HTMLCollection:Lc,NodeList:Lc},CB=(e,t,r)=>ec in e&&typeof e[ec]=="function"?e[ec](t):Xo&&Xo in e&&typeof e[Xo]=="function"?e[Xo](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&gy.has(e.constructor)?gy.get(e.constructor)(e,t):yy[r]?yy[r](e,t):"",AB=Object.prototype.toString;function $c(e,t={}){let r=eB(t,$c),{customInspect:_R}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=AB.call(e).slice(8,-1)),o in by)return by[o](e,r);if(_R&&e){let s=CB(e,r,o);if(s)return typeof s=="string"?s:$c(s,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?fs(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Jv(e,r):"constructor"in e?e.constructor!==Object?bB(e,r):fs(e,r):e===Object(e)?fs(e,r):r.stylize(String(e),o)}var TB={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]},RB=Object.entries(TB);function np(e){return String(e)}np.open="";np.close="";function xB(e=!1){let t=typeof process<"u"?process:void 0,r=(t==null?void 0:t.env)||{},_R=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in r||_R.includes("--no-color"))&&("FORCE_COLOR"in r||_R.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function OB(e=!1){let t=xB(e),r=(s,l,u,d)=>{let c="",p=0;do c+=s.substring(p,d)+u,p=d+l.length,d=s.indexOf(l,p);while(~d);return c+s.substring(p)},_R=(s,l,u=s)=>{let d=c=>{let p=String(c),h=p.indexOf(l,s.length);return~h?s+r(p,l,u,h)+l:s+p+l};return d.open=s,d.close=l,d},o={isColorSupported:t},i=s=>`\x1B[${s}m`;for(let[s,l]of RB)o[s]=t?_R(i(l[0]),i(l[1]),l[2]):np;return o}var wt=OB((0,_R.isatty)(1));function NB(e,t){let r=Object.keys(e),_R=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&_R.push(o);return _R}function al(e,t,r,_R,o,i,s=": "){let l="",u=0,d=e.next();if(!d.done){l+=t.spacingOuter;let c=r+t.indent;for(;!d.done;){if(l+=c,u++===t.maxWidth){l+="\u2026";break}let p=i(d.value[0],t,c,_R,o),h=i(d.value[1],t,c,_R,o);l+=p+s+h,d=e.next(),d.done?t.min||(l+=","):l+=`,${t.spacingInner}`}l+=t.spacingOuter+r}return l}function op(e,t,r,_R,o,i){let s="",l=0,u=e.next();if(!u.done){s+=t.spacingOuter;let d=r+t.indent;for(;!u.done;){if(s+=d,l++===t.maxWidth){s+="\u2026";break}s+=i(u.value,t,d,_R,o),u=e.next(),u.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}function Ts(e,t,r,_R,o,i){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=d=>d instanceof DataView,u=l(e)?e.byteLength:e.length;if(u>0){s+=t.spacingOuter;let d=r+t.indent;for(let c=0;c<u;c++){if(s+=d,c===t.maxWidth){s+="\u2026";break}(l(e)||c in e)&&(s+=i(l(e)?e.getInt8(c):e[c],t,d,_R,o)),c<u-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+r}return s}function ip(e,t,r,_R,o,i){let s="",l=NB(e,t.compareKeys);if(l.length>0){s+=t.spacingOuter;let u=r+t.indent;for(let d=0;d<l.length;d++){let c=l[d],p=i(c,t,u,_R,o),h=i(e[c],t,u,_R,o);s+=`${u+p}: ${h}`,d<l.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+r}return s}var MB=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,tc=" ",IB=(e,t,r,_R,o,i)=>{let s=e.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return++_R>t.maxDepth?`[${s}]`:`${s+tc}[${Ts(e.sample,t,r,_R,o,i)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return++_R>t.maxDepth?`[${s}]`:`${s+tc}{${ip(e.sample,t,r,_R,o,i)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+tc+i(e.sample,t,r,_R,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},DB=e=>e&&e.$$typeof===MB,qB={serialize:IB,test:DB},jB=" ",Xv=new Set(["DOMStringMap","NamedNodeMap"]),BB=/^(?:HTML\w*Collection|NodeList)$/;function FB(e){return Xv.has(e)||BB.test(e)}var kB=e=>e&&e.constructor&&!!e.constructor.name&&FB(e.constructor.name);function LB(e){return e.constructor.name==="NamedNodeMap"}var $B=(e,t,r,_R,o,i)=>{let s=e.constructor.name;return++_R>t.maxDepth?`[${s}]`:(t.min?"":s+jB)+(Xv.has(s)?`{${ip(LB(e)?[...e].reduce((l,u)=>(l[u.name]=u.value,l),{}):{...e},t,r,_R,o,i)}}`:`[${Ts([...e],t,r,_R,o,i)}]`)},UB={serialize:$B,test:kB};function Qv(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function ap(e,t,r,_R,o,i,s){let l=_R+r.indent,u=r.colors;return e.map(d=>{let c=t[d],p=s(c,r,l,o,i);return typeof c!="string"&&(p.includes(`
305
305
  `)&&(p=r.spacingOuter+l+p+r.spacingOuter+_R),p=`{${p}}`),`${r.spacingInner+_R+u.prop.open+d+u.prop.close}=${u.value.open}${p}${u.value.close}`}).join("")}function sp(e,t,r,_R,o,i){return e.map(s=>t.spacingOuter+r+(typeof s=="string"?Zv(s,t):i(s,t,r,_R,o))).join("")}function Zv(e,t){let r=t.colors.content;return r.open+Qv(e)+r.close}function HB(e,t){let r=t.colors.comment;return`${r.open}<!--${Qv(e)}-->${r.close}`}function lp(e,t,r,_R,o){let i=_R.colors.tag;return`${i.open}<${e}${t&&i.close+t+_R.spacingOuter+o+i.open}${r?`>${i.close}${r}${_R.spacingOuter}${o}${i.open}</${e}`:`${t&&!_R.min?"":" "}/`}>${i.close}`}function up(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} \u2026${r.open} />${r.close}`}var zB=1,e1=3,t1=8,r1=11,VB=/^(?:(?:HTML|SVG)\w*)?Element$/;function GB(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function WB(e){let t=e.constructor.name,{nodeType:r,tagName:_R}=e,o=typeof _R=="string"&&_R.includes("-")||GB(e);return r===zB&&(VB.test(t)||o)||r===e1&&t==="Text"||r===t1&&t==="Comment"||r===r1&&t==="DocumentFragment"}var YB=e=>{var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.name)&&WB(e)};function KB(e){return e.nodeType===e1}function JB(e){return e.nodeType===t1}function rc(e){return e.nodeType===r1}var XB=(e,t,r,_R,o,i)=>{if(KB(e))return Zv(e.data,t);if(JB(e))return HB(e.data,t);let s=rc(e)?"DocumentFragment":e.tagName.toLowerCase();return++_R>t.maxDepth?up(s,t):lp(s,ap(rc(e)?[]:Array.from(e.attributes,l=>l.name).sort(),rc(e)?{}:[...e.attributes].reduce((l,u)=>(l[u.name]=u.value,l),{}),t,r+t.indent,_R,o,i),sp(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,_R,o,i),t,r)},QB={serialize:XB,test:YB},ZB="@@__IMMUTABLE_ITERABLE__@@",eF="@@__IMMUTABLE_LIST__@@",tF="@@__IMMUTABLE_KEYED__@@",rF="@@__IMMUTABLE_MAP__@@",vy="@@__IMMUTABLE_ORDERED__@@",nF="@@__IMMUTABLE_RECORD__@@",oF="@@__IMMUTABLE_SEQ__@@",iF="@@__IMMUTABLE_SET__@@",aF="@@__IMMUTABLE_STACK__@@",li=e=>`Immutable.${e}`,sl=e=>`[${e}]`,ra=" ",Ey="\u2026";function sF(e,t,r,_R,o,i,s){return++_R>t.maxDepth?sl(li(s)):`${li(s)+ra}{${al(e.entries(),t,r,_R,o,i)}}`}function lF(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function uF(e,t,r,_R,o,i){let s=li(e._name||"Record");return++_R>t.maxDepth?sl(s):`${s+ra}{${al(lF(e),t,r,_R,o,i)}}`}function cF(e,t,r,_R,o,i){let s=li("Seq");return++_R>t.maxDepth?sl(s):e[tF]?`${s+ra}{${e._iter||e._object?al(e.entries(),t,r,_R,o,i):Ey}}`:`${s+ra}[${e._iter||e._array||e._collection||e._iterable?op(e.values(),t,r,_R,o,i):Ey}]`}function nc(e,t,r,_R,o,i,s){return++_R>t.maxDepth?sl(li(s)):`${li(s)+ra}[${op(e.values(),t,r,_R,o,i)}]`}var dF=(e,t,r,_R,o,i)=>e[rF]?sF(e,t,r,_R,o,i,e[vy]?"OrderedMap":"Map"):e[eF]?nc(e,t,r,_R,o,i,"List"):e[iF]?nc(e,t,r,_R,o,i,e[vy]?"OrderedSet":"Set"):e[aF]?nc(e,t,r,_R,o,i,"Stack"):e[oF]?cF(e,t,r,_R,o,i):uF(e,t,r,_R,o,i),pF=e=>e&&(e[ZB]===!0||e[nF]===!0),fF={serialize:dF,test:pF},Uc={exports:{}},it={},_y;function hF(){if(_y)return it;_y=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),_R=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function y(b){if(typeof b=="object"&&b!==null){var E=b.$$typeof;switch(E){case e:switch(b=b.type,b){case r:case o:case _R:case d:case c:return b;default:switch(b=b&&b.$$typeof,b){case l:case s:case u:case h:case p:case i:return b;default:return E}}case t:return E}}}return it.ContextConsumer=s,it.ContextProvider=i,it.Element=e,it.ForwardRef=u,it.Fragment=r,it.Lazy=h,it.Memo=p,it.Portal=t,it.Profiler=o,it.StrictMode=_R,it.Suspense=d,it.SuspenseList=c,it.isAsyncMode=function(){return!1},it.isConcurrentMode=function(){return!1},it.isContextConsumer=function(b){return y(b)===s},it.isContextProvider=function(b){return y(b)===i},it.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},it.isForwardRef=function(b){return y(b)===u},it.isFragment=function(b){return y(b)===r},it.isLazy=function(b){return y(b)===h},it.isMemo=function(b){return y(b)===p},it.isPortal=function(b){return y(b)===t},it.isProfiler=function(b){return y(b)===o},it.isStrictMode=function(b){return y(b)===_R},it.isSuspense=function(b){return y(b)===d},it.isSuspenseList=function(b){return y(b)===c},it.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===o||b===_R||b===d||b===c||b===m||typeof b=="object"&&b!==null&&(b.$$typeof===h||b.$$typeof===p||b.$$typeof===i||b.$$typeof===s||b.$$typeof===u||b.$$typeof===g||b.getModuleId!==void 0)},it.typeOf=y,it}var st={},wy;function mF(){return wy||(wy=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),_R=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=!1,y=!1,b=!1,E=!1,_=!1,O;O=Symbol.for("react.module.reference");function C(ae){return!!(typeof ae=="string"||typeof ae=="function"||ae===r||ae===o||_||ae===_R||ae===d||ae===c||E||ae===m||g||y||b||typeof ae=="object"&&ae!==null&&(ae.$$typeof===h||ae.$$typeof===p||ae.$$typeof===i||ae.$$typeof===s||ae.$$typeof===u||ae.$$typeof===O||ae.getModuleId!==void 0))}function w(ae){if(typeof ae=="object"&&ae!==null){var ye=ae.$$typeof;switch(ye){case e:var Fe=ae.type;switch(Fe){case r:case o:case _R:case d:case c:return Fe;default:var nt=Fe&&Fe.$$typeof;switch(nt){case l:case s:case u:case h:case p:case i:return nt;default:return ye}}case t:return ye}}}var S=s,T=i,A=e,N=u,U=r,X=h,V=p,J=t,x=o,B=_R,K=d,fe=c,ce=!1,Se=!1;function De(ae){return ce||(ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Oe(ae){return Se||(Se=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function le(ae){return w(ae)===s}function se(ae){return w(ae)===i}function de(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===e}function we(ae){return w(ae)===u}function Pe(ae){return w(ae)===r}function Ne(ae){return w(ae)===h}function Ge(ae){return w(ae)===p}function Tt(ae){return w(ae)===t}function Y(ae){return w(ae)===o}function Re(ae){return w(ae)===_R}function qe(ae){return w(ae)===d}function ze(ae){return w(ae)===c}st.ContextConsumer=S,st.ContextProvider=T,st.Element=A,st.ForwardRef=N,st.Fragment=U,st.Lazy=X,st.Memo=V,st.Portal=J,st.Profiler=x,st.StrictMode=B,st.Suspense=K,st.SuspenseList=fe,st.isAsyncMode=De,st.isConcurrentMode=Oe,st.isContextConsumer=le,st.isContextProvider=se,st.isElement=de,st.isForwardRef=we,st.isFragment=Pe,st.isLazy=Ne,st.isMemo=Ge,st.isPortal=Tt,st.isProfiler=Y,st.isStrictMode=Re,st.isSuspense=qe,st.isSuspenseList=ze,st.isValidElementType=C,st.typeOf=w}()),st}process.env.NODE_ENV==="production"?Uc.exports=hF():Uc.exports=mF();var Mn=Uc.exports;function n1(e,t=[]){if(Array.isArray(e))for(let r of e)n1(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function Sy(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Mn.isFragment(e))return"React.Fragment";if(Mn.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Mn.isContextProvider(e))return"Context.Provider";if(Mn.isContextConsumer(e))return"Context.Consumer";if(Mn.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(Mn.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function gF(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var yF=(e,t,r,_R,o,i)=>++_R>t.maxDepth?up(Sy(e),t):lp(Sy(e),ap(gF(e),e.props,t,r+t.indent,_R,o,i),sp(n1(e.props.children),t,r+t.indent,_R,o,i),t,r),bF=e=>e!=null&&Mn.isElement(e),vF={serialize:yF,test:bF},EF=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function _F(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var wF=(e,t,r,_R,o,i)=>++_R>t.maxDepth?up(e.type,t):lp(e.type,e.props?ap(_F(e),e.props,t,r+t.indent,_R,o,i):"",e.children?sp(e.children,t,r+t.indent,_R,o,i):"",t,r),SF=e=>e&&e.$$typeof===EF,CF={serialize:wF,test:SF},o1=Object.prototype.toString,AF=Date.prototype.toISOString,TF=Error.prototype.toString,Cy=RegExp.prototype.toString;function oc(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function RF(e){return typeof window<"u"&&e===window}var xF=/^Symbol\((.*)\)(.*)$/,OF=/\_R/g,i1=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function PF(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function NF(e){return Object.is(e,-0)?"-0":String(e)}function MF(e){return`${e}_R`}function Ay(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function Ty(e){return String(e).replace(xF,"Symbol($1)")}function Ry(e){return`[${TF.call(e)}]`}function a1(e,t,r,_R){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let o=typeof e;if(o==="number")return NF(e);if(o==="bigint")return MF(e);if(o==="string")return _R?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Ay(e,t);if(o==="symbol")return Ty(e);let i=o1.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?Ay(e,t):i==="[object Symbol]"?Ty(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":AF.call(e):i==="[object Error]"?Ry(e):i==="[object RegExp]"?r?Cy.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Cy.call(e):e instanceof Error?Ry(e):null}function s1(e,t,r,_R,o,i){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let s=++_R>t.maxDepth,l=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON=="function"&&!i)return fn(e.toJSON(),t,r,_R,o,!0);let u=o1.call(e);return u==="[object Arguments]"?s?"[Arguments]":`${l?"":"Arguments "}[${Ts(e,t,r,_R,o,fn)}]`:PF(u)?s?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Ts(e,t,r,_R,o,fn)}]`:u==="[object Map]"?s?"[Map]":`Map {${al(e.entries(),t,r,_R,o,fn," => ")}}`:u==="[object Set]"?s?"[Set]":`Set {${op(e.values(),t,r,_R,o,fn)}}`:s||RF(e)?`[${oc(e)}]`:`${l||!t.printBasicPrototype&&oc(e)==="Object"?"":`${oc(e)} `}{${ip(e,t,r,_R,o,fn)}}`}function IF(e){return e.serialize!=null}function l1(e,t,r,_R,o,i){let s;try{s=IF(e)?e.serialize(t,r,_R,o,i,fn):e.print(t,l=>fn(l,r,_R,o,i),l=>{let u=_R+r.indent;return u+l.replaceAll(OF,`
306
306
  ${u}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(l){throw new i1(l.message,l.stack)}if(typeof s!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}function u1(e,t){for(let r of e)try{if(r.test(t))return r}catch(_R){throw new i1(_R.message,_R.stack)}return null}function fn(e,t,r,_R,o,i){let s=u1(t.plugins,e);if(s!==null)return l1(s,e,t,r,_R,o);let l=a1(e,t.printFunctionName,t.escapeRegex,t.escapeString);return l!==null?l:s1(e,t,r,_R,o,i)}var cp={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},c1=Object.keys(cp),gr={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:cp};function DF(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(gr,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function qF(){return c1.reduce((e,t)=>{let r=cp[t],_R=r&&wt[r];if(_R&&typeof _R.close=="string"&&typeof _R.open=="string")e[t]=_R;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function jF(){return c1.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function d1(e){var t;return(t=e==null?void 0:e.printFunctionName)!=null?t:gr.printFunctionName}function p1(e){var t;return(t=e==null?void 0:e.escapeRegex)!=null?t:gr.escapeRegex}function f1(e){var t;return(t=e==null?void 0:e.escapeString)!=null?t:gr.escapeString}function xy(e){var t,r,_R,o,i,s,l;return{callToJSON:(t=e==null?void 0:e.callToJSON)!=null?t:gr.callToJSON,colors:e!=null&&e.highlight?qF():jF(),compareKeys:typeof(e==null?void 0:e.compareKeys)=="function"||(e==null?void 0:e.compareKeys)===null?e.compareKeys:gr.compareKeys,escapeRegex:p1(e),escapeString:f1(e),indent:e!=null&&e.min?"":BF((r=e==null?void 0:e.indent)!=null?r:gr.indent),maxDepth:(_R=e==null?void 0:e.maxDepth)!=null?_R:gr.maxDepth,maxWidth:(o=e==null?void 0:e.maxWidth)!=null?o:gr.maxWidth,min:(i=e==null?void 0:e.min)!=null?i:gr.min,plugins:(s=e==null?void 0:e.plugins)!=null?s:gr.plugins,printBasicPrototype:(l=e==null?void 0:e.printBasicPrototype)!=null?l:!0,printFunctionName:d1(e),spacingInner:e!=null&&e.min?" ":`
307
307
  `,spacingOuter:e!=null&&e.min?"":`
308
- `}}function BF(e){return Array.from({length:e+1}).join(" ")}function Nr(e,t){if(t&&(DF(t),t.plugins)){let _R=u1(t.plugins,e);if(_R!==null)return l1(_R,e,xy(t),"",0,[])}let r=a1(e,d1(t),p1(t),f1(t));return r!==null?r:s1(e,xy(t),"",0,[])}var h1={AsymmetricMatcher:qB,DOMCollection:UB,DOMElement:QB,Immutable:fF,ReactElement:vF,ReactTestComponent:CF},{AsymmetricMatcher:FF,DOMCollection:kF,DOMElement:LF,Immutable:$F,ReactElement:UF,ReactTestComponent:HF}=h1,Oy=[HF,UF,LF,kF,$F,FF];function cr(e,t=10,{maxLength:r,..._R}={}){let o=r!=null?r:1e4,i;try{i=Nr(e,{maxDepth:t,escapeString:!1,plugins:Oy,..._R})}catch{i=Nr(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Oy,..._R})}return i.length>=o&&t>1?cr(e,Math.floor(t/2)):i}var zF=/%[sdjifoOc%]/g;function VF(...e){if(typeof e[0]!="string"){let i=[];for(let s=0;s<e.length;s++)i.push(Hi(e[s],{depth:0,colors:!1}));return i.join(" ")}let t=e.length,r=1,_R=e[0],o=String(_R).replace(zF,i=>{if(i==="%%")return"%";if(r>=t)return i;switch(i){case"%s":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}_R`:typeof s=="number"&&s===0&&1/s<0?"-0":typeof s=="object"&&s!==null?Hi(s,{depth:0,colors:!1}):String(s)}case"%d":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}_R`:Number(s).toString()}case"%i":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}_R`:Number.parseInt(String(s)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return Hi(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Hi(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(s){let l=s.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return"[Circular]";throw s}default:return i}});for(let i=e[r];r<t;i=e[++r])i===null||typeof i!="object"?o+=` ${i}`:o+=` ${Hi(i)}`;return o}function Hi(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),$c(e,t)}var SH=Symbol("vitest:SAFE_TIMERS"),GF,WF,YF,KF,JF,XF,QF,m1,ZF,ek,tk,rk,nk,ok,ik,ak,sk,lk,uk;nk=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;rk=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;GF=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;ik=/(['"])(?:(?!\1)[^\\\_R\r]|\\(?:\r\_R|[^]))*(\1)?/y;tk=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)_R?|0n|[1-9](?:_?\d)*_R|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;ak=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y;uk=/[\t\v\f\ufeff\p{Zs}]+/yu;m1=/\r?\_R|[\r\u2028\u2029]/y;ZF=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y;ok=/\/\/.*/y;YF=/[<>.:={}]|\/(?![\/*])/y;WF=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;KF=/(['"])(?:(?!\1)[^])*(\1)?/y;JF=/[^<>{}]+/y;lk=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;sk=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;XF=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;QF=/^(?:return|throw|yield)$/;ek=RegExp(m1.source);var g1={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]},CH=new Set(g1.keyword),AH=new Set(g1.strict);function Py(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}var Ht=-1,Bt=1,St=0,vt=class{constructor(e,t){gt(this,0);gt(this,1);this[0]=e,this[1]=t}},ck=function(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,_R=Math.min(e.length,t.length),o=_R,i=0;for(;r<o;)e.substring(i,o)===t.substring(i,o)?(r=o,i=r):_R=o,o=Math.floor((_R-r)/2+r);return o},y1=function(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,_R=Math.min(e.length,t.length),o=_R,i=0;for(;r<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(r=o,i=r):_R=o,o=Math.floor((_R-r)/2+r);return o},Ny=function(e,t){let r=e.length,_R=t.length;if(r===0||_R===0)return 0;r>_R?e=e.substring(r-_R):r<_R&&(t=t.substring(0,r));let o=Math.min(r,_R);if(e===t)return o;let i=0,s=1;for(;;){let l=e.substring(o-s),u=t.indexOf(l);if(u===-1)return i;s+=u,(u===0||e.substring(o-s)===t.substring(0,s))&&(i=s,s++)}},dk=function(e){let t=!1,r=[],_R=0,o=null,i=0,s=0,l=0,u=0,d=0;for(;i<e.length;)e[i][0]===St?(r[_R++]=i,s=u,l=d,u=0,d=0,o=e[i][1]):(e[i][0]===Bt?u+=e[i][1].length:d+=e[i][1].length,o&&o.length<=Math.max(s,l)&&o.length<=Math.max(u,d)&&(e.splice(r[_R-1],0,new vt(Ht,o)),e[r[_R-1]+1][0]=Bt,_R--,_R--,i=_R>0?r[_R-1]:-1,s=0,l=0,u=0,d=0,o=null,t=!0)),i++;for(t&&b1(e),hk(e),i=1;i<e.length;){if(e[i-1][0]===Ht&&e[i][0]===Bt){let c=e[i-1][1],p=e[i][1],h=Ny(c,p),m=Ny(p,c);h>=m?(h>=c.length/2||h>=p.length/2)&&(e.splice(i,0,new vt(St,p.substring(0,h))),e[i-1][1]=c.substring(0,c.length-h),e[i+1][1]=p.substring(h),i++):(m>=c.length/2||m>=p.length/2)&&(e.splice(i,0,new vt(St,c.substring(0,m))),e[i-1][0]=Bt,e[i-1][1]=p.substring(0,p.length-m),e[i+1][0]=Ht,e[i+1][1]=c.substring(m),i++),i++}i++}},My=/[^a-z0-9]/i,Iy=/\s/,Dy=/[\r\_R]/,pk=/\_R\r?\_R$/,fk=/^\r?\_R\r?\_R/;function hk(e){function t(_R,o){if(!_R||!o)return 6;let i=_R.charAt(_R.length-1),s=o.charAt(0),l=i.match(My),u=s.match(My),d=l&&i.match(Iy),c=u&&s.match(Iy),p=d&&i.match(Dy),h=c&&s.match(Dy),m=p&&_R.match(pk),g=h&&o.match(fk);return m||g?5:p||h?4:l&&!d&&c?3:d||c?2:l||u?1:0}let r=1;for(;r<e.length-1;){if(e[r-1][0]===St&&e[r+1][0]===St){let _R=e[r-1][1],o=e[r][1],i=e[r+1][1],s=y1(_R,o);if(s){let p=o.substring(o.length-s);_R=_R.substring(0,_R.length-s),o=p+o.substring(0,o.length-s),i=p+i}let l=_R,u=o,d=i,c=t(_R,o)+t(o,i);for(;o.charAt(0)===i.charAt(0);){_R+=o.charAt(0),o=o.substring(1)+i.charAt(0),i=i.substring(1);let p=t(_R,o)+t(o,i);p>=c&&(c=p,l=_R,u=o,d=i)}e[r-1][1]!==l&&(l?e[r-1][1]=l:(e.splice(r-1,1),r--),e[r][1]=u,d?e[r+1][1]=d:(e.splice(r+1,1),r--))}r++}}function b1(e){e.push(new vt(St,""));let t=0,r=0,_R=0,o="",i="",s;for(;t<e.length;)switch(e[t][0]){case Bt:_R++,i+=e[t][1],t++;break;case Ht:r++,o+=e[t][1],t++;break;case St:r+_R>1?(r!==0&&_R!==0&&(s=ck(i,o),s!==0&&(t-r-_R>0&&e[t-r-_R-1][0]===St?e[t-r-_R-1][1]+=i.substring(0,s):(e.splice(0,0,new vt(St,i.substring(0,s))),t++),i=i.substring(s),o=o.substring(s)),s=y1(i,o),s!==0&&(e[t][1]=i.substring(i.length-s)+e[t][1],i=i.substring(0,i.length-s),o=o.substring(0,o.length-s))),t-=r+_R,e.splice(t,r+_R),o.length&&(e.splice(t,0,new vt(Ht,o)),t++),i.length&&(e.splice(t,0,new vt(Bt,i)),t++),t++):t!==0&&e[t-1][0]===St?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,_R=0,r=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let l=!1;for(t=1;t<e.length-1;)e[t-1][0]===St&&e[t+1][0]===St&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),l=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),l=!0)),t++;l&&b1(e)}var v1="Compared values have no visual difference.",mk="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",E1={};Object.defineProperty(E1,"__esModule",{value:!0});var _1=E1.default=vk,Ji="diff-sequences",$t=0,na=(e,t,r,_R,o)=>{let i=0;for(;e<t&&r<_R&&o(e,r);)e+=1,r+=1,i+=1;return i},oa=(e,t,r,_R,o)=>{let i=0;for(;e<=t&&r<=_R&&o(t,_R);)t-=1,_R-=1,i+=1;return i},ic=(e,t,r,_R,o,i,s)=>{let l=0,u=-e,d=i[l],c=d;i[l]+=na(d+1,t,_R+d-u+1,r,o);let p=e<s?e:s;for(l+=1,u+=2;l<=p;l+=1,u+=2){if(l!==e&&c<i[l])d=i[l];else if(d=c+1,t<=d)return l-1;c=i[l],i[l]=d+na(d+1,t,_R+d-u+1,r,o)}return s},qy=(e,t,r,_R,o,i,s)=>{let l=0,u=e,d=i[l],c=d;i[l]-=oa(t,d-1,r,_R+d-u-1,o);let p=e<s?e:s;for(l+=1,u-=2;l<=p;l+=1,u-=2){if(l!==e&&i[l]<c)d=i[l];else if(d=c-1,d<t)return l-1;c=i[l],i[l]=d-oa(t,d-1,r,_R+d-u-1,o)}return s},gk=(e,t,r,_R,o,i,s,l,u,d,c)=>{let p=_R-t,h=r-t,m=o-_R-h,g=-m-(e-1),y=-m+(e-1),b=$t,E=e<l?e:l;for(let _=0,O=-e;_<=E;_+=1,O+=2){let C=_===0||_!==e&&b<s[_],w=C?s[_]:b,S=C?w:w+1,T=p+S-O,A=na(S+1,r,T+1,o,i),N=S+A;if(b=s[_],s[_]=N,g<=O&&O<=y){let U=(e-1-(O+m))/2;if(U<=d&&u[U]-1<=N){let X=p+w-(C?O+1:O-1),V=oa(t,w,_R,X,i),J=w-V,x=X-V,B=J+1,K=x+1;c.nChangePreceding=e-1,e-1===B+K-t-_R?(c.aEndPreceding=t,c.bEndPreceding=_R):(c.aEndPreceding=B,c.bEndPreceding=K),c.nCommonPreceding=V,V!==0&&(c.aCommonPreceding=B,c.bCommonPreceding=K),c.nCommonFollowing=A,A!==0&&(c.aCommonFollowing=S+1,c.bCommonFollowing=T+1);let fe=N+1,ce=T+A+1;return c.nChangeFollowing=e-1,e-1===r+o-fe-ce?(c.aStartFollowing=r,c.bStartFollowing=o):(c.aStartFollowing=fe,c.bStartFollowing=ce),!0}}}return!1},yk=(e,t,r,_R,o,i,s,l,u,d,c)=>{let p=o-r,h=r-t,m=o-_R-h,g=m-e,y=m+e,b=$t,E=e<d?e:d;for(let _=0,O=e;_<=E;_+=1,O-=2){let C=_===0||_!==e&&u[_]<b,w=C?u[_]:b,S=C?w:w-1,T=p+S-O,A=oa(t,S-1,_R,T-1,i),N=S-A;if(b=u[_],u[_]=N,g<=O&&O<=y){let U=(e+(O-m))/2;if(U<=l&&N-1<=s[U]){let X=T-A;if(c.nChangePreceding=e,e===N+X-t-_R?(c.aEndPreceding=t,c.bEndPreceding=_R):(c.aEndPreceding=N,c.bEndPreceding=X),c.nCommonPreceding=A,A!==0&&(c.aCommonPreceding=N,c.bCommonPreceding=X),c.nChangeFollowing=e-1,e===1)c.nCommonFollowing=0,c.aStartFollowing=r,c.bStartFollowing=o;else{let V=p+w-(C?O-1:O+1),J=na(w,r,V,o,i);c.nCommonFollowing=J,J!==0&&(c.aCommonFollowing=w,c.bCommonFollowing=V);let x=w+J,B=V+J;e-1===r+o-x-B?(c.aStartFollowing=r,c.bStartFollowing=o):(c.aStartFollowing=x,c.bStartFollowing=B)}return!0}}}return!1},bk=(e,t,r,_R,o,i,s,l,u)=>{let d=_R-t,c=o-r,p=r-t,h=o-_R,m=h-p,g=p,y=p;if(s[0]=t-1,l[0]=r,m%2===0){let b=(e||m)/2,E=(p+h)/2;for(let _=1;_<=E;_+=1)if(g=ic(_,r,o,d,i,s,g),_<b)y=qy(_,t,_R,c,i,l,y);else if(yk(_,t,r,_R,o,i,s,g,l,y,u))return}else{let b=((e||m)+1)/2,E=(p+h+1)/2,_=1;for(g=ic(_,r,o,d,i,s,g),_+=1;_<=E;_+=1)if(y=qy(_-1,t,_R,c,i,l,y),_<b)g=ic(_,r,o,d,i,s,g);else if(gk(_,t,r,_R,o,i,s,g,l,y,u))return}throw new Error(`${Ji}: no overlap aStart=${t} aEnd=${r} bStart=${_R} bEnd=${o}`)},Hc=(e,t,r,_R,o,i,s,l,u,d)=>{if(o-_R<r-t){if(i=!i,i&&s.length===1){let{foundSubsequence:U,isCommon:X}=s[0];s[1]={foundSubsequence:(V,J,x)=>{U(V,x,J)},isCommon:(V,J)=>X(J,V)}}let A=t,N=r;t=_R,r=o,_R=A,o=N}let{foundSubsequence:c,isCommon:p}=s[i?1:0];bk(e,t,r,_R,o,p,l,u,d);let{nChangePreceding:h,aEndPreceding:m,bEndPreceding:g,nCommonPreceding:y,aCommonPreceding:b,bCommonPreceding:E,nCommonFollowing:_,aCommonFollowing:O,bCommonFollowing:C,nChangeFollowing:w,aStartFollowing:S,bStartFollowing:T}=d;t<m&&_R<g&&Hc(h,t,m,_R,g,i,s,l,u,d),y!==0&&c(y,b,E),_!==0&&c(_,O,C),S<r&&T<o&&Hc(w,S,r,T,o,i,s,l,u,d)},jy=(e,t)=>{if(typeof t!="number")throw new TypeError(`${Ji}: ${e} typeof ${typeof t} is not a number`);if(!Number.isSafeInteger(t))throw new RangeError(`${Ji}: ${e} value ${t} is not a safe integer`);if(t<0)throw new RangeError(`${Ji}: ${e} value ${t} is a negative integer`)},By=(e,t)=>{let r=typeof t;if(r!=="function")throw new TypeError(`${Ji}: ${e} typeof ${r} is not a function`)};function vk(e,t,r,_R){jy("aLength",e),jy("bLength",t),By("isCommon",r),By("foundSubsequence",_R);let o=na(0,e,0,t,r);if(o!==0&&_R(o,0,0),e!==o||t!==o){let i=o,s=o,l=oa(i,e-1,s,t-1,r),u=e-l,d=t-l,c=o+l;e!==c&&t!==c&&Hc(0,i,u,s,d,!1,[{foundSubsequence:_R,isCommon:r}],[$t],[$t],{aCommonFollowing:$t,aCommonPreceding:$t,aEndPreceding:$t,aStartFollowing:$t,bCommonFollowing:$t,bCommonPreceding:$t,bEndPreceding:$t,bStartFollowing:$t,nChangeFollowing:$t,nChangePreceding:$t,nCommonFollowing:$t,nCommonPreceding:$t}),l!==0&&_R(l,u,d)}}function Ek(e,t){return e.replace(/\s+$/,r=>t(r))}function dp(e,t,r,_R,o,i){return e.length!==0?r(`${_R} ${Ek(e,o)}`):_R!==" "?r(_R):t&&i.length!==0?r(`${_R} ${i}`):""}function w1(e,t,{aColor:r,aIndicator:_R,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return dp(e,t,r,_R,o,i)}function S1(e,t,{bColor:r,bIndicator:_R,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return dp(e,t,r,_R,o,i)}function C1(e,t,{commonColor:r,commonIndicator:_R,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return dp(e,t,r,_R,o,i)}function Fy(e,t,r,_R,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${_R-r} @@`)}function _k(e,t){let r=e.length,_R=t.contextLines,o=_R+_R,i=r,s=!1,l=0,u=0;for(;u!==r;){let C=u;for(;u!==r&&e[u][0]===St;)u+=1;if(C!==u)if(C===0)u>_R&&(i-=u-_R,s=!0);else if(u===r){let w=u-C;w>_R&&(i-=w-_R,s=!0)}else{let w=u-C;w>o&&(i-=w-o,l+=1)}for(;u!==r&&e[u][0]!==St;)u+=1}let d=l!==0||s;l!==0?i+=l+1:s&&(i+=1);let c=i-1,p=[],h=0;d&&p.push("");let m=0,g=0,y=0,b=0,E=C=>{let w=p.length;p.push(C1(C,w===0||w===c,t)),y+=1,b+=1},_=C=>{let w=p.length;p.push(w1(C,w===0||w===c,t)),y+=1},O=C=>{let w=p.length;p.push(S1(C,w===0||w===c,t)),b+=1};for(u=0;u!==r;){let C=u;for(;u!==r&&e[u][0]===St;)u+=1;if(C!==u)if(C===0){u>_R&&(C=u-_R,m=C,g=C,y=m,b=g);for(let w=C;w!==u;w+=1)E(e[w][1])}else if(u===r){let w=u-C>_R?C+_R:u;for(let S=C;S!==w;S+=1)E(e[S][1])}else{let w=u-C;if(w>o){let S=C+_R;for(let A=C;A!==S;A+=1)E(e[A][1]);p[h]=Fy(m,y,g,b,t),h=p.length,p.push("");let T=w-o;m=y+T,g=b+T,y=m,b=g;for(let A=u-_R;A!==u;A+=1)E(e[A][1])}else for(let S=C;S!==u;S+=1)E(e[S][1])}for(;u!==r&&e[u][0]===Ht;)_(e[u][1]),u+=1;for(;u!==r&&e[u][0]===Bt;)O(e[u][1]),u+=1}return d&&(p[h]=Fy(m,y,g,b,t)),p.join(`
309
- `)}function wk(e,t){return e.map((r,_R,o)=>{let i=r[1],s=_R===0||_R===o.length-1;switch(r[0]){case Ht:return w1(i,s,t);case Bt:return S1(i,s,t);default:return C1(i,s,t)}}).join(`
310
- `)}var ac=e=>e,A1=5,Sk=0;function Ck(){return{aAnnotation:"Expected",aColor:wt.green,aIndicator:"-",bAnnotation:"Received",bColor:wt.red,bIndicator:"+",changeColor:wt.inverse,changeLineTrailingSpaceColor:ac,commonColor:wt.dim,commonIndicator:" ",commonLineTrailingSpaceColor:ac,compareKeys:void 0,contextLines:A1,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:wt.yellow,truncateThreshold:Sk,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:ac}}function Ak(e){return e&&typeof e=="function"?e:void 0}function Tk(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:A1}function Un(e={}){return{...Ck(),...e,compareKeys:Ak(e.compareKeys),contextLines:Tk(e.contextLines)}}function Qo(e){return e.length===1&&e[0].length===0}function Rk(e){let t=0,r=0;return e.forEach(_R=>{switch(_R[0]){case Ht:t+=1;break;case Bt:r+=1;break}}),{a:t,b:r}}function xk({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:_R,bColor:o,bIndicator:i,includeChangeCounts:s,omitAnnotationLines:l},u){if(l)return"";let d="",c="";if(s){let m=String(u.a),g=String(u.b),y=_R.length-e.length,b=" ".repeat(Math.max(0,y)),E=" ".repeat(Math.max(0,-y)),_=g.length-m.length,O=" ".repeat(Math.max(0,_)),C=" ".repeat(Math.max(0,-_));d=`${b} ${r} ${O}${m}`,c=`${E} ${i} ${C}${g}`}let p=`${r} ${e}${d}`,h=`${i} ${_R}${c}`;return`${t(p)}
308
+ `}}function BF(e){return Array.from({length:e+1}).join(" ")}function Nr(e,t){if(t&&(DF(t),t.plugins)){let _R=u1(t.plugins,e);if(_R!==null)return l1(_R,e,xy(t),"",0,[])}let r=a1(e,d1(t),p1(t),f1(t));return r!==null?r:s1(e,xy(t),"",0,[])}var h1={AsymmetricMatcher:qB,DOMCollection:UB,DOMElement:QB,Immutable:fF,ReactElement:vF,ReactTestComponent:CF},{AsymmetricMatcher:FF,DOMCollection:kF,DOMElement:LF,Immutable:$F,ReactElement:UF,ReactTestComponent:HF}=h1,Oy=[HF,UF,LF,kF,$F,FF];function cr(e,t=10,{maxLength:r,..._R}={}){let o=r!=null?r:1e4,i;try{i=Nr(e,{maxDepth:t,escapeString:!1,plugins:Oy,..._R})}catch{i=Nr(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Oy,..._R})}return i.length>=o&&t>1?cr(e,Math.floor(t/2)):i}var zF=/%[sdjifoOc%]/g;function VF(...e){if(typeof e[0]!="string"){let i=[];for(let s=0;s<e.length;s++)i.push(Hi(e[s],{depth:0,colors:!1}));return i.join(" ")}let t=e.length,r=1,_R=e[0],o=String(_R).replace(zF,i=>{if(i==="%%")return"%";if(r>=t)return i;switch(i){case"%s":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}_R`:typeof s=="number"&&s===0&&1/s<0?"-0":typeof s=="object"&&s!==null?Hi(s,{depth:0,colors:!1}):String(s)}case"%d":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}_R`:Number(s).toString()}case"%i":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}_R`:Number.parseInt(String(s)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return Hi(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Hi(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(s){let l=s.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return"[Circular]";throw s}default:return i}});for(let i=e[r];r<t;i=e[++r])i===null||typeof i!="object"?o+=` ${i}`:o+=` ${Hi(i)}`;return o}function Hi(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),$c(e,t)}var CH=Symbol("vitest:SAFE_TIMERS"),GF,WF,YF,KF,JF,XF,QF,m1,ZF,ek,tk,rk,nk,ok,ik,ak,sk,lk,uk;nk=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;rk=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;GF=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;ik=/(['"])(?:(?!\1)[^\\\_R\r]|\\(?:\r\_R|[^]))*(\1)?/y;tk=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)_R?|0n|[1-9](?:_?\d)*_R|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;ak=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y;uk=/[\t\v\f\ufeff\p{Zs}]+/yu;m1=/\r?\_R|[\r\u2028\u2029]/y;ZF=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y;ok=/\/\/.*/y;YF=/[<>.:={}]|\/(?![\/*])/y;WF=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;KF=/(['"])(?:(?!\1)[^])*(\1)?/y;JF=/[^<>{}]+/y;lk=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;sk=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;XF=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;QF=/^(?:return|throw|yield)$/;ek=RegExp(m1.source);var g1={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]},AH=new Set(g1.keyword),TH=new Set(g1.strict);function Py(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}var Ht=-1,Ft=1,St=0,vt=class{constructor(e,t){gt(this,0);gt(this,1);this[0]=e,this[1]=t}},ck=function(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,_R=Math.min(e.length,t.length),o=_R,i=0;for(;r<o;)e.substring(i,o)===t.substring(i,o)?(r=o,i=r):_R=o,o=Math.floor((_R-r)/2+r);return o},y1=function(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,_R=Math.min(e.length,t.length),o=_R,i=0;for(;r<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(r=o,i=r):_R=o,o=Math.floor((_R-r)/2+r);return o},Ny=function(e,t){let r=e.length,_R=t.length;if(r===0||_R===0)return 0;r>_R?e=e.substring(r-_R):r<_R&&(t=t.substring(0,r));let o=Math.min(r,_R);if(e===t)return o;let i=0,s=1;for(;;){let l=e.substring(o-s),u=t.indexOf(l);if(u===-1)return i;s+=u,(u===0||e.substring(o-s)===t.substring(0,s))&&(i=s,s++)}},dk=function(e){let t=!1,r=[],_R=0,o=null,i=0,s=0,l=0,u=0,d=0;for(;i<e.length;)e[i][0]===St?(r[_R++]=i,s=u,l=d,u=0,d=0,o=e[i][1]):(e[i][0]===Ft?u+=e[i][1].length:d+=e[i][1].length,o&&o.length<=Math.max(s,l)&&o.length<=Math.max(u,d)&&(e.splice(r[_R-1],0,new vt(Ht,o)),e[r[_R-1]+1][0]=Ft,_R--,_R--,i=_R>0?r[_R-1]:-1,s=0,l=0,u=0,d=0,o=null,t=!0)),i++;for(t&&b1(e),hk(e),i=1;i<e.length;){if(e[i-1][0]===Ht&&e[i][0]===Ft){let c=e[i-1][1],p=e[i][1],h=Ny(c,p),m=Ny(p,c);h>=m?(h>=c.length/2||h>=p.length/2)&&(e.splice(i,0,new vt(St,p.substring(0,h))),e[i-1][1]=c.substring(0,c.length-h),e[i+1][1]=p.substring(h),i++):(m>=c.length/2||m>=p.length/2)&&(e.splice(i,0,new vt(St,c.substring(0,m))),e[i-1][0]=Ft,e[i-1][1]=p.substring(0,p.length-m),e[i+1][0]=Ht,e[i+1][1]=c.substring(m),i++),i++}i++}},My=/[^a-z0-9]/i,Iy=/\s/,Dy=/[\r\_R]/,pk=/\_R\r?\_R$/,fk=/^\r?\_R\r?\_R/;function hk(e){function t(_R,o){if(!_R||!o)return 6;let i=_R.charAt(_R.length-1),s=o.charAt(0),l=i.match(My),u=s.match(My),d=l&&i.match(Iy),c=u&&s.match(Iy),p=d&&i.match(Dy),h=c&&s.match(Dy),m=p&&_R.match(pk),g=h&&o.match(fk);return m||g?5:p||h?4:l&&!d&&c?3:d||c?2:l||u?1:0}let r=1;for(;r<e.length-1;){if(e[r-1][0]===St&&e[r+1][0]===St){let _R=e[r-1][1],o=e[r][1],i=e[r+1][1],s=y1(_R,o);if(s){let p=o.substring(o.length-s);_R=_R.substring(0,_R.length-s),o=p+o.substring(0,o.length-s),i=p+i}let l=_R,u=o,d=i,c=t(_R,o)+t(o,i);for(;o.charAt(0)===i.charAt(0);){_R+=o.charAt(0),o=o.substring(1)+i.charAt(0),i=i.substring(1);let p=t(_R,o)+t(o,i);p>=c&&(c=p,l=_R,u=o,d=i)}e[r-1][1]!==l&&(l?e[r-1][1]=l:(e.splice(r-1,1),r--),e[r][1]=u,d?e[r+1][1]=d:(e.splice(r+1,1),r--))}r++}}function b1(e){e.push(new vt(St,""));let t=0,r=0,_R=0,o="",i="",s;for(;t<e.length;)switch(e[t][0]){case Ft:_R++,i+=e[t][1],t++;break;case Ht:r++,o+=e[t][1],t++;break;case St:r+_R>1?(r!==0&&_R!==0&&(s=ck(i,o),s!==0&&(t-r-_R>0&&e[t-r-_R-1][0]===St?e[t-r-_R-1][1]+=i.substring(0,s):(e.splice(0,0,new vt(St,i.substring(0,s))),t++),i=i.substring(s),o=o.substring(s)),s=y1(i,o),s!==0&&(e[t][1]=i.substring(i.length-s)+e[t][1],i=i.substring(0,i.length-s),o=o.substring(0,o.length-s))),t-=r+_R,e.splice(t,r+_R),o.length&&(e.splice(t,0,new vt(Ht,o)),t++),i.length&&(e.splice(t,0,new vt(Ft,i)),t++),t++):t!==0&&e[t-1][0]===St?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,_R=0,r=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let l=!1;for(t=1;t<e.length-1;)e[t-1][0]===St&&e[t+1][0]===St&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),l=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),l=!0)),t++;l&&b1(e)}var v1="Compared values have no visual difference.",mk="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",E1={};Object.defineProperty(E1,"__esModule",{value:!0});var _1=E1.default=vk,Ji="diff-sequences",$t=0,na=(e,t,r,_R,o)=>{let i=0;for(;e<t&&r<_R&&o(e,r);)e+=1,r+=1,i+=1;return i},oa=(e,t,r,_R,o)=>{let i=0;for(;e<=t&&r<=_R&&o(t,_R);)t-=1,_R-=1,i+=1;return i},ic=(e,t,r,_R,o,i,s)=>{let l=0,u=-e,d=i[l],c=d;i[l]+=na(d+1,t,_R+d-u+1,r,o);let p=e<s?e:s;for(l+=1,u+=2;l<=p;l+=1,u+=2){if(l!==e&&c<i[l])d=i[l];else if(d=c+1,t<=d)return l-1;c=i[l],i[l]=d+na(d+1,t,_R+d-u+1,r,o)}return s},qy=(e,t,r,_R,o,i,s)=>{let l=0,u=e,d=i[l],c=d;i[l]-=oa(t,d-1,r,_R+d-u-1,o);let p=e<s?e:s;for(l+=1,u-=2;l<=p;l+=1,u-=2){if(l!==e&&i[l]<c)d=i[l];else if(d=c-1,d<t)return l-1;c=i[l],i[l]=d-oa(t,d-1,r,_R+d-u-1,o)}return s},gk=(e,t,r,_R,o,i,s,l,u,d,c)=>{let p=_R-t,h=r-t,m=o-_R-h,g=-m-(e-1),y=-m+(e-1),b=$t,E=e<l?e:l;for(let _=0,O=-e;_<=E;_+=1,O+=2){let C=_===0||_!==e&&b<s[_],w=C?s[_]:b,S=C?w:w+1,T=p+S-O,A=na(S+1,r,T+1,o,i),N=S+A;if(b=s[_],s[_]=N,g<=O&&O<=y){let U=(e-1-(O+m))/2;if(U<=d&&u[U]-1<=N){let X=p+w-(C?O+1:O-1),V=oa(t,w,_R,X,i),J=w-V,x=X-V,B=J+1,K=x+1;c.nChangePreceding=e-1,e-1===B+K-t-_R?(c.aEndPreceding=t,c.bEndPreceding=_R):(c.aEndPreceding=B,c.bEndPreceding=K),c.nCommonPreceding=V,V!==0&&(c.aCommonPreceding=B,c.bCommonPreceding=K),c.nCommonFollowing=A,A!==0&&(c.aCommonFollowing=S+1,c.bCommonFollowing=T+1);let fe=N+1,ce=T+A+1;return c.nChangeFollowing=e-1,e-1===r+o-fe-ce?(c.aStartFollowing=r,c.bStartFollowing=o):(c.aStartFollowing=fe,c.bStartFollowing=ce),!0}}}return!1},yk=(e,t,r,_R,o,i,s,l,u,d,c)=>{let p=o-r,h=r-t,m=o-_R-h,g=m-e,y=m+e,b=$t,E=e<d?e:d;for(let _=0,O=e;_<=E;_+=1,O-=2){let C=_===0||_!==e&&u[_]<b,w=C?u[_]:b,S=C?w:w-1,T=p+S-O,A=oa(t,S-1,_R,T-1,i),N=S-A;if(b=u[_],u[_]=N,g<=O&&O<=y){let U=(e+(O-m))/2;if(U<=l&&N-1<=s[U]){let X=T-A;if(c.nChangePreceding=e,e===N+X-t-_R?(c.aEndPreceding=t,c.bEndPreceding=_R):(c.aEndPreceding=N,c.bEndPreceding=X),c.nCommonPreceding=A,A!==0&&(c.aCommonPreceding=N,c.bCommonPreceding=X),c.nChangeFollowing=e-1,e===1)c.nCommonFollowing=0,c.aStartFollowing=r,c.bStartFollowing=o;else{let V=p+w-(C?O-1:O+1),J=na(w,r,V,o,i);c.nCommonFollowing=J,J!==0&&(c.aCommonFollowing=w,c.bCommonFollowing=V);let x=w+J,B=V+J;e-1===r+o-x-B?(c.aStartFollowing=r,c.bStartFollowing=o):(c.aStartFollowing=x,c.bStartFollowing=B)}return!0}}}return!1},bk=(e,t,r,_R,o,i,s,l,u)=>{let d=_R-t,c=o-r,p=r-t,h=o-_R,m=h-p,g=p,y=p;if(s[0]=t-1,l[0]=r,m%2===0){let b=(e||m)/2,E=(p+h)/2;for(let _=1;_<=E;_+=1)if(g=ic(_,r,o,d,i,s,g),_<b)y=qy(_,t,_R,c,i,l,y);else if(yk(_,t,r,_R,o,i,s,g,l,y,u))return}else{let b=((e||m)+1)/2,E=(p+h+1)/2,_=1;for(g=ic(_,r,o,d,i,s,g),_+=1;_<=E;_+=1)if(y=qy(_-1,t,_R,c,i,l,y),_<b)g=ic(_,r,o,d,i,s,g);else if(gk(_,t,r,_R,o,i,s,g,l,y,u))return}throw new Error(`${Ji}: no overlap aStart=${t} aEnd=${r} bStart=${_R} bEnd=${o}`)},Hc=(e,t,r,_R,o,i,s,l,u,d)=>{if(o-_R<r-t){if(i=!i,i&&s.length===1){let{foundSubsequence:U,isCommon:X}=s[0];s[1]={foundSubsequence:(V,J,x)=>{U(V,x,J)},isCommon:(V,J)=>X(J,V)}}let A=t,N=r;t=_R,r=o,_R=A,o=N}let{foundSubsequence:c,isCommon:p}=s[i?1:0];bk(e,t,r,_R,o,p,l,u,d);let{nChangePreceding:h,aEndPreceding:m,bEndPreceding:g,nCommonPreceding:y,aCommonPreceding:b,bCommonPreceding:E,nCommonFollowing:_,aCommonFollowing:O,bCommonFollowing:C,nChangeFollowing:w,aStartFollowing:S,bStartFollowing:T}=d;t<m&&_R<g&&Hc(h,t,m,_R,g,i,s,l,u,d),y!==0&&c(y,b,E),_!==0&&c(_,O,C),S<r&&T<o&&Hc(w,S,r,T,o,i,s,l,u,d)},jy=(e,t)=>{if(typeof t!="number")throw new TypeError(`${Ji}: ${e} typeof ${typeof t} is not a number`);if(!Number.isSafeInteger(t))throw new RangeError(`${Ji}: ${e} value ${t} is not a safe integer`);if(t<0)throw new RangeError(`${Ji}: ${e} value ${t} is a negative integer`)},By=(e,t)=>{let r=typeof t;if(r!=="function")throw new TypeError(`${Ji}: ${e} typeof ${r} is not a function`)};function vk(e,t,r,_R){jy("aLength",e),jy("bLength",t),By("isCommon",r),By("foundSubsequence",_R);let o=na(0,e,0,t,r);if(o!==0&&_R(o,0,0),e!==o||t!==o){let i=o,s=o,l=oa(i,e-1,s,t-1,r),u=e-l,d=t-l,c=o+l;e!==c&&t!==c&&Hc(0,i,u,s,d,!1,[{foundSubsequence:_R,isCommon:r}],[$t],[$t],{aCommonFollowing:$t,aCommonPreceding:$t,aEndPreceding:$t,aStartFollowing:$t,bCommonFollowing:$t,bCommonPreceding:$t,bEndPreceding:$t,bStartFollowing:$t,nChangeFollowing:$t,nChangePreceding:$t,nCommonFollowing:$t,nCommonPreceding:$t}),l!==0&&_R(l,u,d)}}function Ek(e,t){return e.replace(/\s+$/,r=>t(r))}function dp(e,t,r,_R,o,i){return e.length!==0?r(`${_R} ${Ek(e,o)}`):_R!==" "?r(_R):t&&i.length!==0?r(`${_R} ${i}`):""}function w1(e,t,{aColor:r,aIndicator:_R,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return dp(e,t,r,_R,o,i)}function S1(e,t,{bColor:r,bIndicator:_R,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return dp(e,t,r,_R,o,i)}function C1(e,t,{commonColor:r,commonIndicator:_R,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return dp(e,t,r,_R,o,i)}function Fy(e,t,r,_R,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${_R-r} @@`)}function _k(e,t){let r=e.length,_R=t.contextLines,o=_R+_R,i=r,s=!1,l=0,u=0;for(;u!==r;){let C=u;for(;u!==r&&e[u][0]===St;)u+=1;if(C!==u)if(C===0)u>_R&&(i-=u-_R,s=!0);else if(u===r){let w=u-C;w>_R&&(i-=w-_R,s=!0)}else{let w=u-C;w>o&&(i-=w-o,l+=1)}for(;u!==r&&e[u][0]!==St;)u+=1}let d=l!==0||s;l!==0?i+=l+1:s&&(i+=1);let c=i-1,p=[],h=0;d&&p.push("");let m=0,g=0,y=0,b=0,E=C=>{let w=p.length;p.push(C1(C,w===0||w===c,t)),y+=1,b+=1},_=C=>{let w=p.length;p.push(w1(C,w===0||w===c,t)),y+=1},O=C=>{let w=p.length;p.push(S1(C,w===0||w===c,t)),b+=1};for(u=0;u!==r;){let C=u;for(;u!==r&&e[u][0]===St;)u+=1;if(C!==u)if(C===0){u>_R&&(C=u-_R,m=C,g=C,y=m,b=g);for(let w=C;w!==u;w+=1)E(e[w][1])}else if(u===r){let w=u-C>_R?C+_R:u;for(let S=C;S!==w;S+=1)E(e[S][1])}else{let w=u-C;if(w>o){let S=C+_R;for(let A=C;A!==S;A+=1)E(e[A][1]);p[h]=Fy(m,y,g,b,t),h=p.length,p.push("");let T=w-o;m=y+T,g=b+T,y=m,b=g;for(let A=u-_R;A!==u;A+=1)E(e[A][1])}else for(let S=C;S!==u;S+=1)E(e[S][1])}for(;u!==r&&e[u][0]===Ht;)_(e[u][1]),u+=1;for(;u!==r&&e[u][0]===Ft;)O(e[u][1]),u+=1}return d&&(p[h]=Fy(m,y,g,b,t)),p.join(`
309
+ `)}function wk(e,t){return e.map((r,_R,o)=>{let i=r[1],s=_R===0||_R===o.length-1;switch(r[0]){case Ht:return w1(i,s,t);case Ft:return S1(i,s,t);default:return C1(i,s,t)}}).join(`
310
+ `)}var ac=e=>e,A1=5,Sk=0;function Ck(){return{aAnnotation:"Expected",aColor:wt.green,aIndicator:"-",bAnnotation:"Received",bColor:wt.red,bIndicator:"+",changeColor:wt.inverse,changeLineTrailingSpaceColor:ac,commonColor:wt.dim,commonIndicator:" ",commonLineTrailingSpaceColor:ac,compareKeys:void 0,contextLines:A1,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:wt.yellow,truncateThreshold:Sk,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:ac}}function Ak(e){return e&&typeof e=="function"?e:void 0}function Tk(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:A1}function Un(e={}){return{...Ck(),...e,compareKeys:Ak(e.compareKeys),contextLines:Tk(e.contextLines)}}function Qo(e){return e.length===1&&e[0].length===0}function Rk(e){let t=0,r=0;return e.forEach(_R=>{switch(_R[0]){case Ht:t+=1;break;case Ft:r+=1;break}}),{a:t,b:r}}function xk({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:_R,bColor:o,bIndicator:i,includeChangeCounts:s,omitAnnotationLines:l},u){if(l)return"";let d="",c="";if(s){let m=String(u.a),g=String(u.b),y=_R.length-e.length,b=" ".repeat(Math.max(0,y)),E=" ".repeat(Math.max(0,-y)),_=g.length-m.length,O=" ".repeat(Math.max(0,_)),C=" ".repeat(Math.max(0,-_));d=`${b} ${r} ${O}${m}`,c=`${E} ${i} ${C}${g}`}let p=`${r} ${e}${d}`,h=`${i} ${_R}${c}`;return`${t(p)}
311
311
  ${o(h)}
312
312
 
313
313
  `}function pp(e,t,r){return xk(r,Rk(e))+(r.expand?wk(e,r):_k(e,r))+(t?r.truncateAnnotationColor(`
314
- ${r.truncateAnnotation}`):"")}function ll(e,t,r){let _R=Un(r),[o,i]=T1(Qo(e)?[]:e,Qo(t)?[]:t,_R);return pp(o,i,_R)}function Ok(e,t,r,_R,o){if(Qo(e)&&Qo(r)&&(e=[],r=[]),Qo(t)&&Qo(_R)&&(t=[],_R=[]),e.length!==r.length||t.length!==_R.length)return ll(e,t,o);let[i,s]=T1(r,_R,o),l=0,u=0;return i.forEach(d=>{switch(d[0]){case Ht:d[1]=e[l],l+=1;break;case Bt:d[1]=t[u],u+=1;break;default:d[1]=t[u],l+=1,u+=1}}),pp(i,s,Un(o))}function T1(e,t,r){var h,m;let _R=(h=r==null?void 0:r.truncateThreshold)!=null?h:!1,o=Math.max(Math.floor((m=r==null?void 0:r.truncateThreshold)!=null?m:0),0),i=_R?Math.min(e.length,o):e.length,s=_R?Math.min(t.length,o):t.length,l=i!==e.length||s!==t.length,u=(g,y)=>e[g]===t[y],d=[],c=0,p=0;for(_1(i,s,u,(g,y,b)=>{for(;c!==y;c+=1)d.push(new vt(Ht,e[c]));for(;p!==b;p+=1)d.push(new vt(Bt,t[p]));for(;g!==0;g-=1,c+=1,p+=1)d.push(new vt(St,t[p]))});c!==i;c+=1)d.push(new vt(Ht,e[c]));for(;p!==s;p+=1)d.push(new vt(Bt,t[p]));return[d,l]}function ky(e){return e.includes(`\r
314
+ ${r.truncateAnnotation}`):"")}function ll(e,t,r){let _R=Un(r),[o,i]=T1(Qo(e)?[]:e,Qo(t)?[]:t,_R);return pp(o,i,_R)}function Ok(e,t,r,_R,o){if(Qo(e)&&Qo(r)&&(e=[],r=[]),Qo(t)&&Qo(_R)&&(t=[],_R=[]),e.length!==r.length||t.length!==_R.length)return ll(e,t,o);let[i,s]=T1(r,_R,o),l=0,u=0;return i.forEach(d=>{switch(d[0]){case Ht:d[1]=e[l],l+=1;break;case Ft:d[1]=t[u],u+=1;break;default:d[1]=t[u],l+=1,u+=1}}),pp(i,s,Un(o))}function T1(e,t,r){var h,m;let _R=(h=r==null?void 0:r.truncateThreshold)!=null?h:!1,o=Math.max(Math.floor((m=r==null?void 0:r.truncateThreshold)!=null?m:0),0),i=_R?Math.min(e.length,o):e.length,s=_R?Math.min(t.length,o):t.length,l=i!==e.length||s!==t.length,u=(g,y)=>e[g]===t[y],d=[],c=0,p=0;for(_1(i,s,u,(g,y,b)=>{for(;c!==y;c+=1)d.push(new vt(Ht,e[c]));for(;p!==b;p+=1)d.push(new vt(Ft,t[p]));for(;g!==0;g-=1,c+=1,p+=1)d.push(new vt(St,t[p]))});c!==i;c+=1)d.push(new vt(Ht,e[c]));for(;p!==s;p+=1)d.push(new vt(Ft,t[p]));return[d,l]}function ky(e){return e.includes(`\r
315
315
  `)?`\r
316
316
  `:`
317
317
  `}function Pk(e,t,r){var h,m;let _R=(h=r==null?void 0:r.truncateThreshold)!=null?h:!1,o=Math.max(Math.floor((m=r==null?void 0:r.truncateThreshold)!=null?m:0),0),i=e.length,s=t.length;if(_R){let g=e.includes(`
318
318
  `),y=t.includes(`
319
319
  `),b=ky(e),E=ky(t),_=g?`${e.split(b,o).join(b)}
320
320
  `:e,O=y?`${t.split(E,o).join(E)}
321
- `:t;i=_.length,s=O.length}let l=i!==e.length||s!==t.length,u=(g,y)=>e[g]===t[y],d=0,c=0,p=[];return _1(i,s,u,(g,y,b)=>{d!==y&&p.push(new vt(Ht,e.slice(d,y))),c!==b&&p.push(new vt(Bt,t.slice(c,b))),d=y+g,c=b+g,p.push(new vt(St,t.slice(b,c)))}),d!==i&&p.push(new vt(Ht,e.slice(d))),c!==s&&p.push(new vt(Bt,t.slice(c))),[p,l]}function Nk(e,t,r){return t.reduce((_R,o)=>_R+(o[0]===St?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var Ly=class{constructor(e,t){gt(this,"op");gt(this,"line");gt(this,"lines");gt(this,"changeColor");this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new vt(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new vt(this.op,Nk(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new vt(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
321
+ `:t;i=_.length,s=O.length}let l=i!==e.length||s!==t.length,u=(g,y)=>e[g]===t[y],d=0,c=0,p=[];return _1(i,s,u,(g,y,b)=>{d!==y&&p.push(new vt(Ht,e.slice(d,y))),c!==b&&p.push(new vt(Ft,t.slice(c,b))),d=y+g,c=b+g,p.push(new vt(St,t.slice(b,c)))}),d!==i&&p.push(new vt(Ht,e.slice(d))),c!==s&&p.push(new vt(Ft,t.slice(c))),[p,l]}function Nk(e,t,r){return t.reduce((_R,o)=>_R+(o[0]===St?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var Ly=class{constructor(e,t){gt(this,"op");gt(this,"line");gt(this,"lines");gt(this,"changeColor");this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new vt(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new vt(this.op,Nk(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new vt(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
322
322
  `)){let r=t.split(`
323
323
  `),_R=r.length-1;r.forEach((o,i)=>{i<_R?(this.pushSubstring(o),this.pushLine()):o.length!==0&&this.pushSubstring(o)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},Mk=class{constructor(e,t){gt(this,"deleteBuffer");gt(this,"insertBuffer");gt(this,"lines");this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],r=e[1];if(r.includes(`
324
324
  `)){let _R=r.split(`
325
- `),o=_R.length-1;_R.forEach((i,s)=>{if(s===0){let l=new vt(t,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else s<o?this.pushDiffCommonLine(new vt(t,i)):i.length!==0&&this.pushDiffChangeLines(new vt(t,i))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function Ik(e,t){let r=new Ly(Ht,t),_R=new Ly(Bt,t),o=new Mk(r,_R);return e.forEach(i=>{switch(i[0]){case Ht:r.align(i);break;case Bt:_R.align(i);break;default:o.align(i)}}),o.getLines()}function Dk(e,t){if(t){let r=e.length-1;return e.some((_R,o)=>_R[0]===St&&(o!==r||_R[1]!==`
325
+ `),o=_R.length-1;_R.forEach((i,s)=>{if(s===0){let l=new vt(t,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else s<o?this.pushDiffCommonLine(new vt(t,i)):i.length!==0&&this.pushDiffChangeLines(new vt(t,i))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function Ik(e,t){let r=new Ly(Ht,t),_R=new Ly(Ft,t),o=new Mk(r,_R);return e.forEach(i=>{switch(i[0]){case Ht:r.align(i);break;case Ft:_R.align(i);break;default:o.align(i)}}),o.getLines()}function Dk(e,t){if(t){let r=e.length-1;return e.some((_R,o)=>_R[0]===St&&(o!==r||_R[1]!==`
326
326
  `))}return e.some(r=>r[0]===St)}function qk(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let _R=e.includes(`
327
327
  `)||t.includes(`
328
328
  `),[o,i]=R1(_R?`${e}
@@ -345,9 +345,9 @@ ${_R}`)}return _R}function Gc(e,t){let{compareKeys:r}=Un(t);return{...e,compareK
345
345
  `),s.split(`
346
346
  `),_R)}}var zy=2e4;function Vy(e){return Fc(e)==="Object"&&typeof e.asymmetricMatch=="function"}function Gy(e,t){let r=Fc(e),_R=Fc(t);return r===_R&&(r==="Object"||r==="Array")}function P1(e,t,r){let{aAnnotation:_R,bAnnotation:o}=Un(r);if(typeof e=="string"&&typeof t=="string"&&e.length>0&&t.length>0&&e.length<=zy&&t.length<=zy&&e!==t){if(e.includes(`
347
347
  `)||t.includes(`
348
- `))return qk(t,e,r);let[d]=R1(t,e,!0),c=d.some(g=>g[0]===St),p=Hk(_R,o),h=p(_R)+Gk(Wy(d,Ht,c)),m=p(o)+Vk(Wy(d,Bt,c));return`${h}
348
+ `))return qk(t,e,r);let[d]=R1(t,e,!0),c=d.some(g=>g[0]===St),p=Hk(_R,o),h=p(_R)+Gk(Wy(d,Ht,c)),m=p(o)+Vk(Wy(d,Ft,c));return`${h}
349
349
  ${m}`}let i=ly(e,{forceWritable:!0}),s=ly(t,{forceWritable:!0}),{replacedExpected:l,replacedActual:u}=N1(i,s);return ui(l,u,r)}function N1(e,t,r=new WeakSet,_R=new WeakSet){return Gy(e,t)?r.has(e)||_R.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),_R.add(t),Wv(t).forEach(o=>{let i=t[o],s=e[o];if(Vy(i))i.asymmetricMatch(s)&&(e[o]=i);else if(Vy(s))s.asymmetricMatch(i)&&(t[o]=s);else if(Gy(s,i)){let l=N1(s,i,r,_R);e[o]=l.replacedActual,t[o]=l.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function Hk(...e){let t=e.reduce((r,_R)=>_R.length>r?_R.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var zk="\xB7";function M1(e){return e.replace(/\s+$/gm,t=>zk.repeat(t.length))}function Vk(e){return wt.red(M1(cr(e)))}function Gk(e){return wt.green(M1(cr(e)))}function Wy(e,t,r){return e.reduce((_R,o)=>_R+(o[0]===St?o[1]:o[0]===t?r?wt.inverse(o[1]):o[1]:""),"")}function hs(e,t){if(!e)throw new Error(t)}function Zo(e,t){return typeof t===e}function Wk(e){return e instanceof Promise}function Wc(e,t,r){Object.defineProperty(e,t,r)}function ri(e,t,r){Object.defineProperty(e,t,{value:r})}var Xi=Symbol.for("tinyspy:spy"),Yk=new Set,Kk=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},Jk=e=>(Wc(e,Xi,{value:{reset:()=>Kk(e[Xi])}}),e[Xi]),Rs=e=>e[Xi]||Jk(e);function Xk(e){hs(Zo("function",e)||Zo("undefined",e),"cannot spy on a non-function value");let t=function(..._R){let o=Rs(t);o.called=!0,o.callCount++,o.calls.push(_R);let i=o.next.shift();if(i){o.results.push(i);let[c,p]=i;if(c==="ok")return p;throw p}let s,l="ok",u=o.results.length;if(o.impl)try{new.target?s=Reflect.construct(o.impl,_R,new.target):s=o.impl.apply(this,_R),l="ok"}catch(c){throw s=c,l="error",o.results.push([l,c]),c}let d=[l,s];return Wk(s)&&s.then(c=>o.resolves[u]=["ok",c],c=>o.resolves[u]=["error",c]),o.results.push(d),s};ri(t,"_isMockFunction",!0),ri(t,"length",e?e.length:0),ri(t,"name",e&&e.name||"spy");let r=Rs(t);return r.reset(),r.impl=e,t}var Yy=(e,t)=>Object.getOwnPropertyDescriptor(e,t),Ky=(e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)};function I1(e,t,r){hs(!Zo("undefined",e),"spyOn could not find an object to spy upon"),hs(Zo("object",e)||Zo("function",e),"cannot spyOn on a primitive value");let[_R,o]=(()=>{if(!Zo("object",t))return[t,"value"];if("getter"in t&&"setter"in t)throw new Error("cannot spy on both getter and setter");if("getter"in t)return[t.getter,"get"];if("setter"in t)return[t.setter,"set"];throw new Error("specify getter or setter to spy on")})(),i=Yy(e,_R),s=Object.getPrototypeOf(e),l=s&&Yy(s,_R),u=i||l;hs(u||_R in e,`${String(_R)} does not exist`);let d=!1;o==="value"&&u&&!u.value&&u.get&&(o="get",d=!0,r=u.get());let c;u?c=u[o]:o!=="value"?c=()=>e[_R]:c=e[_R],r||(r=c);let p=Xk(r);o==="value"&&Ky(p,c);let h=y=>{let{value:b,...E}=u||{configurable:!0,writable:!0};o!=="value"&&delete E.writable,E[o]=y,Wc(e,_R,E)},m=()=>u?Wc(e,_R,u):h(c),g=p[Xi];return ri(g,"restore",m),ri(g,"getOriginal",()=>d?c():c),ri(g,"willCall",y=>(g.impl=y,p)),h(d?()=>(Ky(p,r),p):p),Yk.add(p),p}var _a=new Set;function fp(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}function Qk(e,t,r){let _R=r?{[{get:"getter",set:"setter"}[r]]:t}:t,o=I1(e,_R);return D1(o)}var Zk=0;function D1(e){let t=e,r,_R=[],o=[],i=[],s=Rs(e),l={get calls(){return s.calls},get contexts(){return o},get instances(){return _R},get invocationCallOrder(){return i},get results(){return s.results.map(([m,g])=>({type:m==="error"?"throw":"return",value:g}))},get settledResults(){return s.resolves.map(([m,g])=>({type:m==="error"?"rejected":"fulfilled",value:g}))},get lastCall(){return s.calls[s.calls.length-1]}},u=[],d=!1;function c(...m){return _R.push(this),o.push(this),i.push(++Zk),(d?r:u.shift()||r||s.getOriginal()||(()=>{})).apply(this,m)}let p=t.name;t.getMockName=()=>p||"vi.fn()",t.mockName=m=>(p=m,t),t.mockClear=()=>(s.reset(),_R=[],o=[],i=[],t),t.mockReset=()=>(t.mockClear(),r=()=>{},u=[],t),t.mockRestore=()=>(t.mockReset(),s.restore(),r=void 0,t),t.getMockImplementation=()=>r,t.mockImplementation=m=>(r=m,s.willCall(c),t),t.mockImplementationOnce=m=>(u.push(m),t);function h(m,g){let y=r;r=m,s.willCall(c),d=!0;let b=()=>{r=y,d=!1},E=g();return E instanceof Promise?E.then(()=>(b(),t)):(b(),t)}return t.withImplementation=h,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=m=>t.mockImplementation(()=>m),t.mockReturnValueOnce=m=>t.mockImplementationOnce(()=>m),t.mockResolvedValue=m=>t.mockImplementation(()=>Promise.resolve(m)),t.mockResolvedValueOnce=m=>t.mockImplementationOnce(()=>Promise.resolve(m)),t.mockRejectedValue=m=>t.mockImplementation(()=>Promise.reject(m)),t.mockRejectedValueOnce=m=>t.mockImplementationOnce(()=>Promise.reject(m)),Object.defineProperty(t,"mock",{get:()=>l}),s.willCall(c),_a.add(t),t}function Jy(e){let t=D1(I1({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}var eL="@@__IMMUTABLE_RECORD__@@",tL="@@__IMMUTABLE_ITERABLE__@@";function rL(e){return e&&(e[tL]||e[eL])}var nL=Object.getPrototypeOf({});function Xy(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function ei(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(rL(e))return ei(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${VF(e.sample)}`;if(typeof e.toJSON=="function")return ei(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((_R,o)=>{try{r[o]=ei(_R,t)}catch(i){r[o]=Xy(i)}}),r}else{let r=Object.create(null);t.set(e,r);let _R=e;for(;_R&&_R!==nL;)Object.getOwnPropertyNames(_R).forEach(o=>{if(!(o in r))try{r[o]=ei(e[o],t)}catch(i){delete r[o],r[o]=Xy(i)}}),_R=Object.getPrototypeOf(_R);return r}}function oL(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function q1(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let _R=e;_R.stack&&(_R.stackStr=String(_R.stack)),_R.name&&(_R.nameStr=String(_R.name)),(_R.showDiff||_R.showDiff===void 0&&_R.expected!==void 0&&_R.actual!==void 0)&&(_R.diff=P1(_R.actual,_R.expected,{...t,..._R.diffOptions})),typeof _R.expected!="string"&&(_R.expected=cr(_R.expected,10)),typeof _R.actual!="string"&&(_R.actual=cr(_R.actual,10));try{typeof _R.message=="string"&&(_R.message=oL(_R.message))}catch{}try{!r.has(_R)&&typeof _R.cause=="object"&&(r.add(_R),_R.cause=q1(_R.cause,t,r))}catch{}try{return ei(_R)}catch(o){return ei(new Error(`Failed to fully serialize error: ${o==null?void 0:o.message}
350
- Inner error message: ${_R==null?void 0:_R.message}`))}}var ia=Symbol.for("matchers-object"),aa=Symbol.for("$$jest-matchers-object-storybook"),hp=Symbol.for("expect-global"),Yc=Symbol.for("asymmetric-matchers-object");if(!Object.prototype.hasOwnProperty.call(globalThis,ia)){let e=new WeakMap;Object.defineProperty(globalThis,ia,{get:()=>e})}if(!Object.prototype.hasOwnProperty.call(globalThis,aa)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,aa,{configurable:!0,get:()=>({state:globalThis[ia].get(globalThis[hp]),matchers:e,customEqualityTesters:t})})}if(!Object.prototype.hasOwnProperty.call(globalThis,Yc)){let e=Object.create(null);Object.defineProperty(globalThis,Yc,{get:()=>e})}function xs(e){return globalThis[ia].get(e)}function lc(e,t){let r=globalThis[ia],_R=r.get(t)||{};Object.assign(_R,e),r.set(t,_R)}var Os=wt.green,mp=wt.red,iL=wt.inverse,aL=wt.bold,pn=wt.dim;function sL(e,t="received",r="expected",_R={}){let{comment:o="",isDirectExpectCall:i=!1,isNot:s=!1,promise:l="",secondArgument:u="",expectedColor:d=Os,receivedColor:c=mp,secondArgumentColor:p=Os}=_R,h="",m="expect";return!i&&t!==""&&(h+=pn(`${m}(`)+c(t),m=")"),l!==""&&(h+=pn(`${m}.`)+l,m=""),s&&(h+=`${pn(`${m}.`)}not`,m=""),e.includes(".")?m+=e:(h+=pn(`${m}.`)+e,m=""),r===""?m+="()":(h+=pn(`${m}(`)+d(r),u&&(h+=pn(", ")+p(u)),m=")"),o!==""&&(m+=` // ${o}`),m!==""&&(h+=pn(m)),h}var lL="\xB7";function j1(e){return e.replace(/\s+$/gm,t=>lL.repeat(t.length))}function uL(e){return mp(j1(cr(e)))}function cL(e){return Os(j1(cr(e)))}function B1(){return{EXPECTED_COLOR:Os,RECEIVED_COLOR:mp,INVERTED_COLOR:iL,BOLD_WEIGHT:aL,DIM_COLOR:pn,diff:ui,matcherHint:sL,printReceived:uL,printExpected:cL,printDiffOrStringify:P1}}function gp(){return globalThis[aa].customEqualityTesters}function rt(e,t,r,_R){return r=r||[],F1(e,t,[],[],r,_R?k1:pL)}var TH=Function.prototype.toString;function Qy(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&vr("Function",e.asymmetricMatch)}function dL(e,t){let r=Qy(e),_R=Qy(t);if(!(r&&_R)){if(r)return e.asymmetricMatch(t);if(_R)return t.asymmetricMatch(e)}}function F1(e,t,r,_R,o,i){let s=!0,l=dL(e,t);if(l!==void 0)return l;let u={equals:rt};for(let g=0;g<o.length;g++){let y=o[g].call(u,e,t,o);if(y!==void 0)return y}if(e instanceof Error&&t instanceof Error)return e.message===t.message;if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;let d=Object.prototype.toString.call(e);if(d!==Object.prototype.toString.call(t))return!1;switch(d){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof e!=typeof t?!1:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case"[object Date]":{let g=+e,y=+t;return g===y||Number.isNaN(g)&&Number.isNaN(y)}case"[object RegExp]":return e.source===t.source&&e.flags===t.flags}if(typeof e!="object"||typeof t!="object")return!1;if(eb(e)&&eb(t))return e.isEqualNode(t);let c=r.length;for(;c--;){if(r[c]===e)return _R[c]===t;if(_R[c]===t)return!1}if(r.push(e),_R.push(t),d==="[object Array]"&&e.length!==t.length)return!1;let p=Zy(e,i),h,m=p.length;if(Zy(t,i).length!==m)return!1;for(;m--;)if(h=p[m],s=i(t,h)&&F1(e[h],t[h],r,_R,o,i),!s)return!1;return r.pop(),_R.pop(),s}function Zy(e,t){let r=[];for(let _R in e)t(e,_R)&&r.push(_R);return r.concat(Object.getOwnPropertySymbols(e).filter(_R=>Object.getOwnPropertyDescriptor(e,_R).enumerable))}function pL(e,t){return k1(e,t)&&e[t]!==void 0}function k1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function vr(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function eb(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}var L1="@@__IMMUTABLE_KEYED__@@",$1="@@__IMMUTABLE_SET__@@",fL="@@__IMMUTABLE_LIST__@@",ul="@@__IMMUTABLE_ORDERED__@@",hL="@@__IMMUTABLE_RECORD__@@";function mL(e){return!!(e&&e[L1]&&!e[ul])}function gL(e){return!!(e&&e[$1]&&!e[ul])}function cl(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function yL(e){return!!(e&&cl(e)&&e[fL])}function bL(e){return!!(e&&cl(e)&&e[L1]&&e[ul])}function vL(e){return!!(e&&cl(e)&&e[$1]&&e[ul])}function EL(e){return!!(e&&cl(e)&&e[hL])}var U1=Symbol.iterator;function tb(e){return!!(e!=null&&e[U1])}function rr(e,t,r=[],_R=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!tb(e)||!tb(t))return;if(e.constructor!==t.constructor)return!1;let i=_R.length;for(;i--;)if(_R[i]===e)return o[i]===t;_R.push(e),o.push(t);let s=[...r.filter(d=>d!==rr),l];function l(d,c){return rr(d,c,[...r],[..._R],[...o])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(vr("Set",e)||gL(e)){let d=!0;for(let c of e)if(!t.has(c)){let p=!1;for(let h of t)rt(c,h,s)===!0&&(p=!0);if(p===!1){d=!1;break}}return _R.pop(),o.pop(),d}else if(vr("Map",e)||mL(e)){let d=!0;for(let c of e)if(!t.has(c[0])||!rt(c[1],t.get(c[0]),s)){let p=!1;for(let h of t){let m=rt(c[0],h[0],s),g=!1;m===!0&&(g=rt(c[1],h[1],s)),g===!0&&(p=!0)}if(p===!1){d=!1;break}}return _R.pop(),o.pop(),d}}let u=t[U1]();for(let d of e){let c=u.next();if(c.done||!rt(d,c.value,s))return!1}if(!u.next().done)return!1;if(!yL(e)&&!bL(e)&&!vL(e)&&!EL(e)){let d=Object.entries(e),c=Object.entries(t);if(!rt(d,c))return!1}return _R.pop(),o.pop(),!0}function yp(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||yp(Object.getPrototypeOf(e),t)}function _L(e){return ps(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function wa(e,t,r=[]){let _R=r.filter(i=>i!==wa),o=(i=new WeakMap)=>(s,l)=>{if(_L(l))return Object.keys(l).every(u=>{if(l[u]!=null&&typeof l[u]=="object"){if(i.has(l[u]))return rt(s[u],l[u],_R);i.set(l[u],!0)}let d=s!=null&&yp(s,u)&&rt(s[u],l[u],[..._R,o(i)]);return i.delete(l[u]),d})};return o()(e,t)}function rb(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function nb(e,t){let r=e,_R=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{r=new DataView(e),_R=new DataView(t)}catch{return}}if(r.byteLength!==_R.byteLength)return!1;for(let o=0;o<r.byteLength;o++)if(r.getUint8(o)!==_R.getUint8(o))return!1;return!0}function Kc(e,t,r=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let _R=Object.keys(e),o=Object.keys(t),i=r.filter(s=>s!==Kc);return rt(e,t,i,!0)&&rt(_R,o)}function wL(e,t="#{this}",r="#{exp}"){let _R=`expected ${t} to be ${r} // Object.is equality`;return["toStrictEqual","toEqual"].includes(e)?`${_R}
350
+ Inner error message: ${_R==null?void 0:_R.message}`))}}var ia=Symbol.for("matchers-object"),aa=Symbol.for("$$jest-matchers-object-storybook"),hp=Symbol.for("expect-global"),Yc=Symbol.for("asymmetric-matchers-object");if(!Object.prototype.hasOwnProperty.call(globalThis,ia)){let e=new WeakMap;Object.defineProperty(globalThis,ia,{get:()=>e})}if(!Object.prototype.hasOwnProperty.call(globalThis,aa)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,aa,{configurable:!0,get:()=>({state:globalThis[ia].get(globalThis[hp]),matchers:e,customEqualityTesters:t})})}if(!Object.prototype.hasOwnProperty.call(globalThis,Yc)){let e=Object.create(null);Object.defineProperty(globalThis,Yc,{get:()=>e})}function xs(e){return globalThis[ia].get(e)}function lc(e,t){let r=globalThis[ia],_R=r.get(t)||{};Object.assign(_R,e),r.set(t,_R)}var Os=wt.green,mp=wt.red,iL=wt.inverse,aL=wt.bold,pn=wt.dim;function sL(e,t="received",r="expected",_R={}){let{comment:o="",isDirectExpectCall:i=!1,isNot:s=!1,promise:l="",secondArgument:u="",expectedColor:d=Os,receivedColor:c=mp,secondArgumentColor:p=Os}=_R,h="",m="expect";return!i&&t!==""&&(h+=pn(`${m}(`)+c(t),m=")"),l!==""&&(h+=pn(`${m}.`)+l,m=""),s&&(h+=`${pn(`${m}.`)}not`,m=""),e.includes(".")?m+=e:(h+=pn(`${m}.`)+e,m=""),r===""?m+="()":(h+=pn(`${m}(`)+d(r),u&&(h+=pn(", ")+p(u)),m=")"),o!==""&&(m+=` // ${o}`),m!==""&&(h+=pn(m)),h}var lL="\xB7";function j1(e){return e.replace(/\s+$/gm,t=>lL.repeat(t.length))}function uL(e){return mp(j1(cr(e)))}function cL(e){return Os(j1(cr(e)))}function B1(){return{EXPECTED_COLOR:Os,RECEIVED_COLOR:mp,INVERTED_COLOR:iL,BOLD_WEIGHT:aL,DIM_COLOR:pn,diff:ui,matcherHint:sL,printReceived:uL,printExpected:cL,printDiffOrStringify:P1}}function gp(){return globalThis[aa].customEqualityTesters}function rt(e,t,r,_R){return r=r||[],F1(e,t,[],[],r,_R?k1:pL)}var RH=Function.prototype.toString;function Qy(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&vr("Function",e.asymmetricMatch)}function dL(e,t){let r=Qy(e),_R=Qy(t);if(!(r&&_R)){if(r)return e.asymmetricMatch(t);if(_R)return t.asymmetricMatch(e)}}function F1(e,t,r,_R,o,i){let s=!0,l=dL(e,t);if(l!==void 0)return l;let u={equals:rt};for(let g=0;g<o.length;g++){let y=o[g].call(u,e,t,o);if(y!==void 0)return y}if(e instanceof Error&&t instanceof Error)return e.message===t.message;if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;let d=Object.prototype.toString.call(e);if(d!==Object.prototype.toString.call(t))return!1;switch(d){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof e!=typeof t?!1:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case"[object Date]":{let g=+e,y=+t;return g===y||Number.isNaN(g)&&Number.isNaN(y)}case"[object RegExp]":return e.source===t.source&&e.flags===t.flags}if(typeof e!="object"||typeof t!="object")return!1;if(eb(e)&&eb(t))return e.isEqualNode(t);let c=r.length;for(;c--;){if(r[c]===e)return _R[c]===t;if(_R[c]===t)return!1}if(r.push(e),_R.push(t),d==="[object Array]"&&e.length!==t.length)return!1;let p=Zy(e,i),h,m=p.length;if(Zy(t,i).length!==m)return!1;for(;m--;)if(h=p[m],s=i(t,h)&&F1(e[h],t[h],r,_R,o,i),!s)return!1;return r.pop(),_R.pop(),s}function Zy(e,t){let r=[];for(let _R in e)t(e,_R)&&r.push(_R);return r.concat(Object.getOwnPropertySymbols(e).filter(_R=>Object.getOwnPropertyDescriptor(e,_R).enumerable))}function pL(e,t){return k1(e,t)&&e[t]!==void 0}function k1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function vr(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function eb(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}var L1="@@__IMMUTABLE_KEYED__@@",$1="@@__IMMUTABLE_SET__@@",fL="@@__IMMUTABLE_LIST__@@",ul="@@__IMMUTABLE_ORDERED__@@",hL="@@__IMMUTABLE_RECORD__@@";function mL(e){return!!(e&&e[L1]&&!e[ul])}function gL(e){return!!(e&&e[$1]&&!e[ul])}function cl(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function yL(e){return!!(e&&cl(e)&&e[fL])}function bL(e){return!!(e&&cl(e)&&e[L1]&&e[ul])}function vL(e){return!!(e&&cl(e)&&e[$1]&&e[ul])}function EL(e){return!!(e&&cl(e)&&e[hL])}var U1=Symbol.iterator;function tb(e){return!!(e!=null&&e[U1])}function rr(e,t,r=[],_R=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!tb(e)||!tb(t))return;if(e.constructor!==t.constructor)return!1;let i=_R.length;for(;i--;)if(_R[i]===e)return o[i]===t;_R.push(e),o.push(t);let s=[...r.filter(d=>d!==rr),l];function l(d,c){return rr(d,c,[...r],[..._R],[...o])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(vr("Set",e)||gL(e)){let d=!0;for(let c of e)if(!t.has(c)){let p=!1;for(let h of t)rt(c,h,s)===!0&&(p=!0);if(p===!1){d=!1;break}}return _R.pop(),o.pop(),d}else if(vr("Map",e)||mL(e)){let d=!0;for(let c of e)if(!t.has(c[0])||!rt(c[1],t.get(c[0]),s)){let p=!1;for(let h of t){let m=rt(c[0],h[0],s),g=!1;m===!0&&(g=rt(c[1],h[1],s)),g===!0&&(p=!0)}if(p===!1){d=!1;break}}return _R.pop(),o.pop(),d}}let u=t[U1]();for(let d of e){let c=u.next();if(c.done||!rt(d,c.value,s))return!1}if(!u.next().done)return!1;if(!yL(e)&&!bL(e)&&!vL(e)&&!EL(e)){let d=Object.entries(e),c=Object.entries(t);if(!rt(d,c))return!1}return _R.pop(),o.pop(),!0}function yp(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||yp(Object.getPrototypeOf(e),t)}function _L(e){return ps(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function wa(e,t,r=[]){let _R=r.filter(i=>i!==wa),o=(i=new WeakMap)=>(s,l)=>{if(_L(l))return Object.keys(l).every(u=>{if(l[u]!=null&&typeof l[u]=="object"){if(i.has(l[u]))return rt(s[u],l[u],_R);i.set(l[u],!0)}let d=s!=null&&yp(s,u)&&rt(s[u],l[u],[..._R,o(i)]);return i.delete(l[u]),d})};return o()(e,t)}function rb(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function nb(e,t){let r=e,_R=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{r=new DataView(e),_R=new DataView(t)}catch{return}}if(r.byteLength!==_R.byteLength)return!1;for(let o=0;o<r.byteLength;o++)if(r.getUint8(o)!==_R.getUint8(o))return!1;return!0}function Kc(e,t,r=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let _R=Object.keys(e),o=Object.keys(t),i=r.filter(s=>s!==Kc);return rt(e,t,i,!0)&&rt(_R,o)}function wL(e,t="#{this}",r="#{exp}"){let _R=`expected ${t} to be ${r} // Object.is equality`;return["toStrictEqual","toEqual"].includes(e)?`${_R}
351
351
 
352
352
  If it should pass with deep equality, replace "toBe" with "${e}"
353
353
 
@@ -426,7 +426,7 @@ Unable to find an `+(_R===!1?"accessible ":"")+'element with the role "'+t+'"'+u
426
426
  `+t),t},Sb={debug:j3,logTestingPlaygroundURL:B3},F3=typeof document<"u"&&document.body?ad(document.body,Ms,Sb):Object.keys(Ms).reduce((e,t)=>(e[t]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e),Sb);function $e(e,t,r){return e.namespaceURI&&e.namespaceURI!=="http://www.w3.org/1999/xhtml"||(t=Array.isArray(t)?t:[t],!t.includes(e.tagName.toLowerCase()))?!1:r?Object.entries(r).every(([_R,o])=>e[_R]===o):!0}var sd;(function(e){e.button="button",e.color="color",e.file="file",e.image="image",e.reset="reset",e.submit="submit",e.checkbox="checkbox",e.radio="radio"})(sd||(sd={}));function S_(e){return $e(e,"button")||$e(e,"input")&&e.type in sd}function Mr(e){var t;if(k3(e)&&e.defaultView)return e.defaultView;if(!((t=e.ownerDocument)===null||t===void 0)&&t.defaultView)return e.ownerDocument.defaultView;throw new Error(`Could not determine window of node. Node was ${L3(e)}`)}function k3(e){return e.nodeType===9}function L3(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}function C_(e,t){return new Promise((r,_R)=>{let o=new t;o.onerror=_R,o.onabort=_R,o.onload=()=>{r(String(o.result))},o.readAsText(e)})}function xp(e,t){let r={...t,length:t.length,item:_R=>r[_R],[Symbol.iterator]:function*(){for(let _R=0;_R<r.length;_R++)yield r[_R]}};return r.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(r,e.FileList.prototype),Object.freeze(r),r}function hn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var A_=class{getAsFile(){return this.file}getAsString(e){typeof this.data=="string"&&e(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(e,t){hn(this,"kind",void 0),hn(this,"type",void 0),hn(this,"file",null),hn(this,"data",void 0),typeof e=="string"?(this.kind="string",this.type=String(t),this.data=e):(this.kind="file",this.type=e.type,this.file=e)}},$3=class extends Array{add(...e){let t=new A_(e[0],e[1]);return this.push(t),t}clear(){this.splice(0,this.length)}remove(e){this.splice(e,1)}};function as(e,t){let[r,_R]=e.split("/"),o=!_R||_R==="*";return i=>t?i.type===(o?r:e):o?i.type.startsWith(`${r}/`):i.type===r}function U3(e){return new class{getData(t){var r;let _R=(r=this.items.find(as(t,!0)))!==null&&r!==void 0?r:this.items.find(as(t,!1)),o="";return _R==null||_R.getAsString(i=>{o=i}),o}setData(t,r){let _R=this.items.findIndex(as(t,!0)),o=new A_(r,t);_R>=0?this.items.splice(_R,1,o):this.items.push(o)}clearData(t){if(t){let r=this.items.findIndex(as(t,!0));r>=0&&this.items.remove(r)}else this.items.clear()}get types(){let t=[];return this.files.length&&t.push("Files"),this.items.forEach(r=>t.push(r.type)),Object.freeze(t),t}setDragImage(){}constructor(){hn(this,"dropEffect","none"),hn(this,"effectAllowed","uninitialized"),hn(this,"items",new $3),hn(this,"files",xp(e,[]))}}}function Op(e,t=[]){let r=typeof e.DataTransfer>"u"?U3(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:()=>xp(e,t)}),r}function H3(e,t){if(t.kind==="file")return t.getAsFile();let r="";return t.getAsString(_R=>{r=_R}),new e.Blob([r],{type:t.type})}function T_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R_(e,...t){let r=Object.fromEntries(t.map(_R=>[typeof _R=="string"?"text/plain":_R.type,Promise.resolve(_R)]));return typeof e.ClipboardItem<"u"?new e.ClipboardItem(r):new class{get types(){return Array.from(Object.keys(this.data))}async getType(_R){let o=await this.data[_R];if(!o)throw new Error(`${_R} is not one of the available MIME types on this item.`);return o instanceof e.Blob?o:new e.Blob([o],{type:_R})}constructor(_R){T_(this,"data",void 0),this.data=_R}}(r)}var pi=Symbol("Manage ClipboardSub");function Cb(e,t){return Object.assign(new class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let r="";for(let _R of this.items){let o=_R.types.includes("text/plain")?"text/plain":_R.types.find(i=>i.startsWith("text/"));o&&(r+=await _R.getType(o).then(i=>C_(i,e.FileReader)))}return r}async write(r){this.items=r}async writeText(r){this.items=[R_(e,r)]}constructor(...r){super(...r),T_(this,"items",[])}},{[pi]:t})}function Pp(e){return!!(e!=null&&e[pi])}function z3(e){if(Pp(e.navigator.clipboard))return e.navigator.clipboard[pi];let t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard"),r,_R={resetClipboardStub:()=>{r=Cb(e,_R)},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0})}};return r=Cb(e,_R),Object.defineProperty(e.navigator,"clipboard",{get:()=>r,configurable:!0}),r[pi]}function V3(e){Pp(e.navigator.clipboard)&&e.navigator.clipboard[pi].resetClipboardStub()}function G3(e){Pp(e.navigator.clipboard)&&e.navigator.clipboard[pi].detachClipboardStub()}async function W3(e){let t=e.defaultView,r=t==null?void 0:t.navigator.clipboard,_R=r&&await r.read();if(!_R)throw new Error("The Clipboard API is unavailable.");let o=Op(t);for(let i of _R)for(let s of i.types)o.setData(s,await i.getType(s).then(l=>C_(l,t.FileReader)));return o}async function x_(e,t){let r=Mr(e),_R=r.navigator.clipboard,o=[];for(let i=0;i<t.items.length;i++){let s=t.items[i],l=H3(r,s);o.push(R_(r,l))}if(!(_R&&await _R.write(o).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}var Is=globalThis;typeof Is.afterEach=="function"&&Is.afterEach(()=>V3(globalThis.window));typeof Is.afterAll=="function"&&Is.afterAll(()=>G3(globalThis.window));function Ln(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}function pa(e){let t=Y3(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}function Y3(e){return e.nodeType===1?e:e.parentElement}function fi(e){return O_(e)&&!e.readOnly||Ln(e)}var ld;(function(e){e.text="text",e.date="date",e["datetime-local"]="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url",e.week="week"})(ld||(ld={}));function O_(e){return $e(e,"textarea")||$e(e,"input")&&e.type in ld}var ud;(function(e){e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url"})(ud||(ud={}));function K3(e){var t;let r=(t=e.getAttribute("maxlength"))!==null&&t!==void 0?t:"";return/^\d+$/.test(r)&&Number(r)>=0?Number(r):void 0}function J3(e){return $e(e,"textarea")||$e(e,"input")&&e.type in ud}var P_=["input:not([type=hidden]):not([disabled])","button:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contenteditable=""]','[contenteditable="true"]',"a[href]","[tabindex]:not([disabled])"].join(", ");function Np(e){return e.matches(P_)}var Ds;(function(e){e["{"]="}",e["["]="]"})(Ds||(Ds={}));function N_(e,t){let r=0,_R=e[r]in Ds?e[r]:"";r+=_R.length;let o=new RegExp(`^\\${_R}{2}`).test(e)?"":_R;return{type:o,...o===""?X3(e,r,t):Q3(e,r,o,t)}}function X3(e,t,r){let _R=e[t];return M_(_R,e,t,r),t+=_R.length,{consumedLength:t,descriptor:_R,releasePrevious:!1,releaseSelf:!0,repeat:1}}function Q3(e,t,r,_R){var o,i;let s=e[t]==="/"?"/":"";t+=s.length;let l=r==="{"&&e[t]==="\\";t+=Number(l);let u=l?e[t]:(o=e.slice(t).match(r==="{"?/^\w+|^[^}>/]/:/^\w+/))===null||o===void 0?void 0:o[0];M_(u,e,t,_R),t+=u.length;var d;let c=(d=(i=e.slice(t).match(/^>\d+/))===null||i===void 0?void 0:i[0])!==null&&d!==void 0?d:"";t+=c.length;let p=e[t]==="/"||!c&&e[t]===">"?e[t]:"";t+=p.length;let h=Ds[r],m=e[t]===h?h:"";if(!m)throw new Error(I_([!c&&"repeat modifier",!p&&"release modifier",`"${h}"`].filter(Boolean).join(" or "),e[t],e,_R));return t+=m.length,{consumedLength:t,descriptor:u,releasePrevious:!!s,repeat:c?Math.max(Number(c.substr(1)),1):1,releaseSelf:Z3(p,c)}}function M_(e,t,r,_R){if(!e)throw new Error(I_("key descriptor",t[r],t,_R))}function Z3(e,t){if(e)return e==="/";if(t)return!1}function I_(e,t,r,_R){return`Expected ${e} but found "${t!=null?t:""}" in "${r}"
427
427
  See ${_R==="pointer"?"https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen":"https://testing-library.com/docs/user-event/keyboard"}
428
428
  for more information about how userEvent parses your input.`}function e5(e){return new e.constructor(e.type,e)}var Jt;(function(e){e[e.Trigger=2]="Trigger",e[e.Call=1]="Call"})(Jt||(Jt={}));function Vi(e,t){e.levelRefs[t]={}}function ss(e,t){return e.levelRefs[t]}var ni;(function(e){e[e.EachTrigger=4]="EachTrigger",e[e.EachApiCall=2]="EachApiCall",e[e.EachTarget=1]="EachTarget",e[e.Never=0]="Never"})(ni||(ni={}));function zr(e){for(let r=e;r;r=r.parentElement)if($e(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if($e(r,"fieldset")){var t;if(r.hasAttribute("disabled")&&!(!((t=r.querySelector(":scope > legend"))===null||t===void 0)&&t.contains(e)))return!0}else if(r.tagName.includes("-")&&r.constructor.formAssociated&&r.hasAttribute("disabled"))return!0;return!1}function hl(e){let t=e.activeElement;return t!=null&&t.shadowRoot?hl(t.shadowRoot):zr(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function pc(e){var t;return(t=hl(e))!==null&&t!==void 0?t:e.body}function t5(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}function Ir(e){return D_(e)&&O_(e)}function r5(e){return D_(e)&&S_(e)}function D_(e){return e.nodeType===1}function n5(e){let t=e.ownerDocument.getSelection();if(t!=null&&t.focusNode&&Ir(e)){let _R=pa(t.focusNode);if(_R){if(!t.isCollapsed){var r;let o=((r=_R.firstChild)===null||r===void 0?void 0:r.nodeType)===3?_R.firstChild:_R;t.setBaseAndExtent(o,0,o,0)}}else t.setBaseAndExtent(e,0,e,0)}}function hi(e,t){return et().eventWrapper(e)}function bn(e){let t=t5(e,Np),r=hl(e.ownerDocument);(t!=null?t:e.ownerDocument.body)!==r&&(hi(t?()=>t.focus():()=>r==null?void 0:r.blur()),n5(t!=null?t:e.ownerDocument.body))}function o5(e){!Np(e)||hl(e.ownerDocument)!==e||hi(()=>e.blur())}var vn={};vn.click=(e,t,r)=>{let _R=t.closest("button,input,label,select,textarea"),o=_R&&$e(_R,"label")&&_R.control;if(o)return()=>{Np(o)&&bn(o),r.dispatchEvent(o,e5(e))};if($e(t,"input",{type:"file"}))return()=>{o5(t),t.dispatchEvent(new(Mr(t)).Event("fileDialog")),bn(t)}};var mi=Symbol("Displayed value in UI"),Ur=Symbol("Displayed selection in UI"),qs=Symbol("Initial value to compare on blur");function i5(e){return typeof e=="object"&&mi in e}function a5(e){return!!e&&typeof e=="object"&&Ur in e}function s5(e,t){e[qs]===void 0&&(e[qs]=e.value),e[mi]=t,e.value=Object.assign(new String(t),{[mi]:!0})}function Dr(e){return e[mi]===void 0?e.value:String(e[mi])}function Mp(e){e[mi]=void 0}function q_(e){e[qs]=void 0}function l5(e){return e[qs]}function u5(e,t){e[Ur]=t}function _i(e,{focusOffset:t,anchorOffset:r=t},_R="replace"){let o=Dr(e).length,i=p=>Math.max(0,Math.min(o,p)),s=_R==="replace"||e[Ur]===void 0?i(r):e[Ur].anchorOffset,l=i(t),u=Math.min(s,l),d=Math.max(s,l);if(e[Ur]={anchorOffset:s,focusOffset:l},e.selectionStart===u&&e.selectionEnd===d)return;let c=Object.assign(new Number(u),{[Ur]:!0});try{e.setSelectionRange(c,d)}catch{}}function fa(e){var t,r,_R;let o=(_R=e[Ur])!==null&&_R!==void 0?_R:{anchorOffset:(t=e.selectionStart)!==null&&t!==void 0?t:0,focusOffset:(r=e.selectionEnd)!==null&&r!==void 0?r:0};return{...o,startOffset:Math.min(o.anchorOffset,o.focusOffset),endOffset:Math.max(o.anchorOffset,o.focusOffset)}}function c5(e){return!!e[Ur]}function ys(e){e[Ur]=void 0}var js=globalThis.parseInt;function d5(e){let t=e.replace(/\D/g,"");if(t.length<2)return e;let r=js(t[0],10),_R=js(t[1],10);if(r>=3||r===2&&_R>=4){let o;return r>=3?o=1:o=2,Ab(t,o)}return e.length===2?e:Ab(t,2)}function Ab(e,t){let r=e.slice(0,t),_R=Math.min(js(r,10),23),o=e.slice(t),i=js(o,10),s=Math.min(i,59);return`${_R.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`}function j_(e,t){let r=e.cloneNode();return r.value=t,r.value===t}function B_(e,t,r,_R){if(bs(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};let o=Tb(e,t,r);if(o){if(bs(o))return{node:o,offset:r>0?Math.min(1,o.nodeValue.length):Math.max(o.nodeValue.length-1,0)};if($e(o,"br")){let i=Tb(o,void 0,r);return i?bs(i)?{node:i,offset:r>0?0:i.nodeValue.length}:r<0&&$e(i,"br")?{node:o.parentNode,offset:ls(o)}:{node:i.parentNode,offset:ls(i)+(r>0?0:1)}:r<0&&_R==="deleteContentBackward"?{node:o.parentNode,offset:ls(o)}:void 0}else return{node:o.parentNode,offset:ls(o)+(r>0?1:0)}}}function Tb(e,t,r){let _R=Number(t)+(r<0?-1:0);return t!==void 0&&Ip(e)&&_R>=0&&_R<e.children.length&&(e=e.children[_R]),f5(e,r===1?"next":"previous",p5)}function p5(e){if(bs(e))return!0;if(Ip(e)){if($e(e,["input","textarea"]))return e.type!=="hidden";if($e(e,"br"))return!0}return!1}function ls(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function Ip(e){return e.nodeType===1}function bs(e){return e.nodeType===3}function f5(e,t,r){for(;;){var _R;let o=e[`${t}Sibling`];if(o){if(e=h5(o,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!Ip(e.parentNode)||!Ln(e.parentNode)&&e.parentNode!==((_R=e.ownerDocument)===null||_R===void 0?void 0:_R.body)))e=e.parentNode;else break}}function h5(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}var ha=Symbol("Track programmatic changes for React workaround");function m5(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&Mr(e).REACT_VERSION===17}function g5(e){m5(e)&&(e[ha]={previousValue:String(e.value),tracked:[]})}function y5(e,t){var r,_R;(_R=e[ha])===null||_R===void 0||(r=_R.tracked)===null||r===void 0||r.push(t),e[ha]||(Mp(e),_i(e,{focusOffset:t.length}))}function b5(e,t){var r;let _R=e[ha];if(e[ha]=void 0,!(!(_R==null||(r=_R.tracked)===null||r===void 0)&&r.length))return;let o=_R.tracked.length===2&&_R.tracked[0]===_R.previousValue&&_R.tracked[1]===e.value;o||Mp(e),c5(e)&&_i(e,{focusOffset:o?t:e.value.length})}function F_(e){let t=v5(e);if(t&&Ir(t))return{type:"input",selection:fa(t)};let r=t==null?void 0:t.ownerDocument.getSelection();return{type:pa(e)&&(r!=null&&r.anchorNode)&&pa(r.anchorNode)?"contenteditable":"default",selection:r}}function v5(e){return e.nodeType===1?e:e.parentElement}function E5(e){let t=F_(e);if(t.type==="input")return t.selection;if(t.type==="contenteditable"){var r;return(r=t.selection)===null||r===void 0?void 0:r.getRangeAt(0)}}function $_R({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:_R=t}){var o,i;if(F_(e).type==="input")return _i(e,{anchorOffset:_R,focusOffset:t});(i=r.ownerDocument)===null||i===void 0||(o=i.getSelection())===null||o===void 0||o.setBaseAndExtent(r,_R,e,t)}function k_(e){return $e(e,"input")&&["date","time"].includes(e.type)}function gi(e,t,r,_R="insertText"){let o=E5(t);o&&(!k_(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:_R,data:r})||("startContainer"in o?_5(e,t,o,r,_R):w5(e,t,o,r,_R)))}function _5(e,t,r,_R,o){let i=!1;if(!r.collapsed)i=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(o)){let s=B_(r.startContainer,r.startOffset,o==="deleteContentBackward"?-1:1,o);if(s){i=!0;let l=r.cloneRange();l.comparePoint(s.node,s.offset)<0?l.setStart(s.node,s.offset):l.setEnd(s.node,s.offset),l.deleteContents()}}if(_R)if(r.endContainer.nodeType===3){let s=r.endOffset;r.endContainer.insertData(s,_R),r.setStart(r.endContainer,s+_R.length),r.setEnd(r.endContainer,s+_R.length)}else{let s=t.ownerDocument.createTextNode(_R);r.insertNode(s),r.setStart(s,_R.length),r.setEnd(s,_R.length)}(i||_R)&&e.dispatchUIEvent(t,"input",{inputType:o})}function w5(e,t,r,_R,o){let i=_R;if(J3(t)){let d=K3(t);if(d!==void 0&&_R.length>0){let c=d-t.value.length;if(c>0)i=_R.substring(0,c);else return}}let{newValue:s,newOffset:l,oldValue:u}=S5(i,t,r,o);s===u&&l===r.startOffset&&l===r.endOffset||$e(t,"input",{type:"number"})&&!C5(s)||(s5(t,s),$_R({focusNode:t,anchorOffset:l,focusOffset:l}),k_(t)?j_(t,s)&&(Rb(e,t,l,{}),e.dispatchUIEvent(t,"change"),q_(t)):Rb(e,t,l,{data:_R,inputType:o}))}function S5(e,t,{startOffset:r,endOffset:_R},o){let i=Dr(t),s=Math.max(0,r===_R&&o==="deleteContentBackward"?r-1:r),l=i.substring(0,s),u=Math.min(i.length,r===_R&&o==="deleteContentForward"?r+1:_R),d=i.substring(u,i.length),c=`${l}${e}${d}`,p=s+e.length;if($e(t,"input",{type:"time"})){let h=d5(c);h!==""&&j_(t,h)&&(c=h,p=h.length)}return{oldValue:i,newValue:c,newOffset:p}}function Rb(e,t,r,_R){e.dispatchUIEvent(t,"input",_R),b5(t,r)}function C5(e){var t,r;let _R=e.split("e",2);return!(/[^\d.\-e]/.test(e)||Number((t=e.match(/-/g))===null||t===void 0?void 0:t.length)>2||Number((r=e.match(/\./g))===null||r===void 0?void 0:r.length)>1||_R[1]&&!/^-?\d*$/.test(_R[1]))}vn.cut=(e,t,r)=>()=>{fi(t)&&gi(r,t,"","deleteByCut")};function A5(e){return e?Ln(e)?e.textContent:Dr(e):null}function T5(e){let t=Mr(e);for(let r=e;r!=null&&r.ownerDocument;r=r.parentElement){let{display:_R,visibility:o}=t.getComputedStyle(r);if(_R==="none"||o==="hidden")return!1}return!0}function R5(e,t){let r=e.ownerDocument,_R=r.querySelectorAll(P_),o=Array.from(_R).filter(u=>u===e||!(Number(u.getAttribute("tabindex"))<0||zr(u)));Number(e.getAttribute("tabindex"))>=0&&o.sort((u,d)=>{let c=Number(u.getAttribute("tabindex")),p=Number(d.getAttribute("tabindex"));return c===p?0:c===0?1:p===0?-1:c-p});let i={},s=[r.body],l=$e(e,"input",{type:"radio"})?e.name:void 0;o.forEach(u=>{let d=u;if($e(d,"input",{type:"radio"})&&d.name){if(d===e){s.push(d);return}else if(d.name===l)return;if(d.checked){s=s.filter(c=>!$e(c,"input",{type:"radio",name:d.name})),s.push(d),i[d.name]=d;return}if(typeof i[d.name]<"u")return}s.push(d)});for(let u=s.findIndex(d=>d===e);;)if(u+=t?-1:1,u===s.length?u=0:u===-1&&(u=s.length-1),s[u]===e||s[u]===r.body||T5(s[u]))return s[u]}function xb(e,t){if(Ir(e)){let r=fa(e);$_R({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset})}else{let r=e.ownerDocument.getSelection();if(!(r!=null&&r.focusNode))return;if(r.isCollapsed){let _R=B_(r.focusNode,r.focusOffset,t);_R&&$_R({focusNode:_R.node,focusOffset:_R.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}function L_(e){if(Ir(e))return $_R({focusNode:e,anchorOffset:0,focusOffset:Dr(e).length});var t;let r=(t=pa(e))!==null&&t!==void 0?t:e.ownerDocument.body;$_R({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}function x5(e){if(Ir(e))return fa(e).startOffset===0&&fa(e).endOffset===Dr(e).length;var t;let r=(t=pa(e))!==null&&t!==void 0?t:e.ownerDocument.body,_R=e.ownerDocument.getSelection();return(_R==null?void 0:_R.anchorNode)===r&&_R.focusNode===r&&_R.anchorOffset===0&&_R.focusOffset===r.childNodes.length}function Gi(e,t,r){var _R;if(Ir(e))return $_R({focusNode:e,anchorOffset:t,focusOffset:r});if(Ln(e)&&((_R=e.firstChild)===null||_R===void 0?void 0:_R.nodeType)===3)return $_R({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}function us(e,t,r){let _R=Mr(t),o=Array.from(t.ownerDocument.querySelectorAll(t.name?`input[type="radio"][name="${_R.CSS.escape(t.name)}"]`:'input[type="radio"][name=""], input[type="radio"]:not([name])'));for(let i=o.findIndex(s=>s===t)+r;;i+=r){if(o[i]||(i=r>0?0:o.length-1),o[i]===t)return;zr(o[i])||(bn(o[i]),e.dispatchUIEvent(o[i],"click"))}}vn.keydown=(e,t,r)=>{var _R,o;return(o=(_R=Ob[e.key])===null||_R===void 0?void 0:_R.call(Ob,e,t,r))!==null&&o!==void 0?o:O5(e,t,r)};var Ob={ArrowDown:(e,t,r)=>{if($e(t,"input",{type:"radio"}))return()=>us(r,t,-1)},ArrowLeft:(e,t,r)=>$e(t,"input",{type:"radio"})?()=>us(r,t,-1):()=>xb(t,-1),ArrowRight:(e,t,r)=>$e(t,"input",{type:"radio"})?()=>us(r,t,1):()=>xb(t,1),ArrowUp:(e,t,r)=>{if($e(t,"input",{type:"radio"}))return()=>us(r,t,1)},Backspace:(e,t,r)=>{if(fi(t))return()=>{gi(r,t,"","deleteContentBackward")}},Delete:(e,t,r)=>{if(fi(t))return()=>{gi(r,t,"","deleteContentForward")}},End:(e,t)=>{if($e(t,["input","textarea"])||Ln(t))return()=>{var r,_R;let o=(_R=(r=A5(t))===null||r===void 0?void 0:r.length)!==null&&_R!==void 0?_R:0;Gi(t,o,o)}},Home:(e,t)=>{if($e(t,["input","textarea"])||Ln(t))return()=>{Gi(t,0,0)}},PageDown:(e,t)=>{if($e(t,["input"]))return()=>{let r=Dr(t).length;Gi(t,r,r)}},PageUp:(e,t)=>{if($e(t,["input"]))return()=>{Gi(t,0,0)}},Tab:(e,t,r)=>()=>{let _R=R5(t,r.system.keyboard.modifiers.Shift);bn(_R),Ir(_R)&&_i(_R,{anchorOffset:0,focusOffset:_R.value.length})}},O5=(e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>L_(t)};vn.keypress=(e,t,r)=>{if(e.key==="Enter"){if($e(t,"button")||$e(t,"input")&&P5.includes(t.type)||$e(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if($e(t,"input")){let _R=t.form,o=_R==null?void 0:_R.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return o?()=>r.dispatchUIEvent(o,"click"):_R&&N5.includes(t.type)&&_R.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(_R,"submit"):void 0}}if(fi(t)){let _R=e.key==="Enter"?Ln(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",o=e.key==="Enter"?`
429
- `:e.key;return()=>gi(r,t,o,_R)}};var P5=["button","color","file","image","reset","submit"],N5=["email","month","password","search","tel","text","url","week"];vn.keyup=(e,t,r)=>{var _R;return(_R=Pb[e.key])===null||_R===void 0?void 0:_R.call(Pb,e,t,r)};var Pb={" ":(e,t,r)=>{if(S_(t))return()=>r.dispatchUIEvent(t,"click")}};vn.paste=(e,t,r)=>{if(fi(t))return()=>{var _R;let o=(_R=e.clipboardData)===null||_R===void 0?void 0:_R.getData("text");o&&gi(r,t,o,"insertFromPaste")}};var $_={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 U_(e){return $_[e].EventType}var M5=["MouseEvent","PointerEvent"];function I5(e){return M5.includes(U_(e))}function D5(e){return U_(e)==="KeyboardEvent"}var q5={ClipboardEvent:[B5],Event:[],InputEvent:[cs,F5],MouseEvent:[cs,fc,Nb],PointerEvent:[cs,fc,Nb,L5],KeyboardEvent:[cs,fc,k5]};function H_(e,t,r){let _R=Mr(t),{EventType:o,defaultInit:i}=$_[e],s=new(j5(_R))[o](e,i);return q5[o].forEach(l=>l(s,r!=null?r:{})),s}function j5(e){var t;let r=(t=e.Event)!==null&&t!==void 0?t:class{};var _R;let o=(_R=e.AnimationEvent)!==null&&_R!==void 0?_R:class extends r{};var i;let s=(i=e.ClipboardEvent)!==null&&i!==void 0?i:class extends r{};var l;let u=(l=e.PopStateEvent)!==null&&l!==void 0?l:class extends r{};var d;let c=(d=e.ProgressEvent)!==null&&d!==void 0?d:class extends r{};var p;let h=(p=e.TransitionEvent)!==null&&p!==void 0?p:class extends r{};var m;let g=(m=e.UIEvent)!==null&&m!==void 0?m:class extends r{};var y;let b=(y=e.CompositionEvent)!==null&&y!==void 0?y:class extends g{};var E;let _=(E=e.FocusEvent)!==null&&E!==void 0?E:class extends g{};var O;let C=(O=e.InputEvent)!==null&&O!==void 0?O:class extends g{};var w;let S=(w=e.KeyboardEvent)!==null&&w!==void 0?w:class extends g{};var T;let A=(T=e.MouseEvent)!==null&&T!==void 0?T:class extends g{};var N;let U=(N=e.DragEvent)!==null&&N!==void 0?N:class extends A{};var X;let V=(X=e.PointerEvent)!==null&&X!==void 0?X:class extends A{};var J;let x=(J=e.TouchEvent)!==null&&J!==void 0?J:class extends g{};return{Event:r,AnimationEvent:o,ClipboardEvent:s,PopStateEvent:u,ProgressEvent:c,TransitionEvent:h,UIEvent:g,CompositionEvent:b,FocusEvent:_,InputEvent:C,KeyboardEvent:S,MouseEvent:A,DragEvent:U,PointerEvent:V,TouchEvent:x}}function Vn(e,t){for(let[r,_R]of Object.entries(t))Object.defineProperty(e,r,{get:()=>_R!=null?_R:null})}function It(e){return Number(e!=null?e:0)}function B5(e,{clipboardData:t}){Vn(e,{clipboardData:t})}function F5(e,{data:t,inputType:r,isComposing:_R}){Vn(e,{data:t,isComposing:!!_R,inputType:String(r)})}function cs(e,{view:t,detail:r}){Vn(e,{view:t,detail:It(r!=null?r:0)})}function fc(e,{altKey:t,ctrlKey:r,metaKey:_R,shiftKey:o,modifierAltGraph:i,modifierCapsLock:s,modifierFn:l,modifierFnLock:u,modifierNumLock:d,modifierScrollLock:c,modifierSymbol:p,modifierSymbolLock:h}){Vn(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!_R,shiftKey:!!o,getModifierState(m){return!!{Alt:t,AltGraph:i,CapsLock:s,Control:r,Fn:l,FnLock:u,Meta:_R,NumLock:d,ScrollLock:c,Shift:o,Symbol:p,SymbolLock:h}[m]}})}function k5(e,{key:t,code:r,location:_R,repeat:o,isComposing:i,charCode:s}){Vn(e,{key:String(t),code:String(r),location:It(_R),repeat:!!o,isComposing:!!i,charCode:s})}function Nb(e,{x:t,y:r,screenX:_R,screenY:o,clientX:i=t,clientY:s=r,button:l,buttons:u,relatedTarget:d}){Vn(e,{screenX:It(_R),screenY:It(o),clientX:It(i),x:It(i),clientY:It(s),y:It(s),button:It(l),buttons:It(u),relatedTarget:d})}function L5(e,{pointerId:t,width:r,height:_R,pressure:o,tangentialPressure:i,tiltX:s,tiltY:l,twist:u,pointerType:d,isPrimary:c}){Vn(e,{pointerId:It(t),width:It(r),height:It(_R),pressure:It(o),tangentialPressure:It(i),tiltX:It(s),tiltY:It(l),twist:It(u),pointerType:String(d),isPrimary:!!c})}function $5(e,t,r,_R=!1){(I5(t)||D5(t))&&(r={...r,...this.system.getUIEventModifiers()});let o=H_(t,e,r);return z_.call(this,e,o,_R)}function z_(e,t,r=!1){var _R;let o=t.type,i=r?()=>{}:(_R=vn[o])===null||_R===void 0?void 0:_R.call(vn,t,e,this);if(i){t.preventDefault();let s=!1;return Object.defineProperty(t,"defaultPrevented",{get:()=>s}),Object.defineProperty(t,"preventDefault",{value:()=>{s=t.cancelable}}),hi(()=>e.dispatchEvent(t)),s||i(),!s}return hi(()=>e.dispatchEvent(t))}function U5(e,t,r){let _R=H_(t,e,r);hi(()=>e.dispatchEvent(_R))}var hc=Symbol("Interceptor for programmatical calls");function ti(e,t,r){let _R=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=Object.getOwnPropertyDescriptor(e,t),i=_R!=null&&_R.set?"set":"value";if(typeof(_R==null?void 0:_R[i])!="function"||_R[i][hc])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function s(...l){let{applyNative:u=!1,realArgs:d,then:c}=r.call(this,...l),p=(!u&&o||_R)[i];i==="set"?p.call(this,d):p.call(this,...d),c==null||c()}s[hc]=hc,Object.defineProperty(e,t,{...o!=null?o:_R,[i]:s})}function H5(e){ti(e,"value",function(t){let r=i5(t);return r&&g5(this),{applyNative:!!r,realArgs:z5(this,t),then:r?void 0:()=>y5(this,String(t))}})}function z5(e,t){return $e(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function V5(e){ti(e,"setSelectionRange",function(t,...r){let _R=a5(t);return{applyNative:!!_R,realArgs:[Number(t),...r],then:()=>_R?void 0:ys(e)}}),ti(e,"selectionStart",function(t){return{realArgs:t,then:()=>ys(e)}}),ti(e,"selectionEnd",function(t){return{realArgs:t,then:()=>ys(e)}}),ti(e,"select",function(){return{realArgs:[],then:()=>u5(e,{anchorOffset:0,focusOffset:Dr(e).length})}})}function G5(e){ti(e,"setRangeText",function(...t){return{realArgs:t,then:()=>{Mp(e),ys(e)}}})}var oi=Symbol("Node prepared with document state workarounds");function V_(e){e[oi]||(e.addEventListener("focus",t=>{let r=t.target;Mb(r)},{capture:!0,passive:!0}),e.activeElement&&Mb(e.activeElement),e.addEventListener("blur",t=>{let r=t.target,_R=l5(r);_R!==void 0&&(r.value!==_R&&U5(r,"change"),q_(r))},{capture:!0,passive:!0}),e[oi]=oi)}function Mb(e){e[oi]||($e(e,["input","textarea"])&&(H5(e),V5(e),G5(e)),e[oi]=oi)}function W5(e){return Y5(e)?e:e.ownerDocument}function Y5(e){return e.nodeType===9}function yi(e){let t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}function Ko(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var lr;(function(e){e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD"})(lr||(lr={}));var K5=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function Ib(e){return K5.includes(e)}var J5=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function Db(e){return J5.includes(e)}var X5=class{isKeyPressed(e){return!!this.pressed[String(e.code)]}getPressedKeys(){return Object.values(this.pressed).map(e=>e.keyDef)}async keydown(e,t){var r,_R,o;let i=String(t.key),s=String(t.code),l=pc(e.config.document);this.setKeydownTarget(l);var u;(u=(r=this.pressed)[_R=s])!==null&&u!==void 0||(r[_R]={keyDef:t,unpreventedDefault:!1}),Ib(i)&&(this.modifiers[i]=!0);let d=e.dispatchUIEvent(l,"keydown",{key:i,code:s});Db(i)&&!this.modifiers[i]&&(this.modifiers[i]=!0,this.modifierLockStart[i]=!0),(o=this.pressed[s]).unpreventedDefault||(o.unpreventedDefault=d),d&&this.hasKeyPress(i)&&e.dispatchUIEvent(pc(e.config.document),"keypress",{key:i,code:s,charCode:t.key==="Enter"?13:String(t.key).charCodeAt(0)})}async keyup(e,t){let r=String(t.key),_R=String(t.code),o=this.pressed[_R].unpreventedDefault;delete this.pressed[_R],Ib(r)&&!Object.values(this.pressed).find(i=>i.keyDef.key===r)&&(this.modifiers[r]=!1),e.dispatchUIEvent(pc(e.config.document),"keyup",{key:r,code:_R},!o),Db(r)&&this.modifiers[r]&&(this.modifierLockStart[r]?this.modifierLockStart[r]=!1:this.modifiers[r]=!1)}setKeydownTarget(e){e!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=e}hasKeyPress(e){return(e.length===1||e==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(e){Ko(this,"system",void 0),Ko(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}),Ko(this,"pressed",{}),Ko(this,"carryChar",""),Ko(this,"lastKeydownTarget",void 0),Ko(this,"modifierLockStart",{}),this.system=e}},Q5=[..."0123456789".split("").map(e=>({code:`Digit${e}`,key:e})),...")!@#$%^&*(".split("").map((e,t)=>({code:`Digit${t}`,key:e,shiftKey:!0})),..."abcdefghijklmnopqrstuvwxyz".split("").map(e=>({code:`Key${e.toUpperCase()}`,key:e})),..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map(e=>({code:`Key${e}`,key:e,shiftKey:!0})),{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:lr.LEFT},{code:"AltRight",key:"Alt",location:lr.RIGHT},{code:"ShiftLeft",key:"Shift",location:lr.LEFT},{code:"ShiftRight",key:"Shift",location:lr.RIGHT},{code:"ControlLeft",key:"Control",location:lr.LEFT},{code:"ControlRight",key:"Control",location:lr.RIGHT},{code:"MetaLeft",key:"Meta",location:lr.LEFT},{code:"MetaRight",key:"Meta",location:lr.RIGHT},{code:"OSLeft",key:"OS",location:lr.LEFT},{code:"OSRight",key:"OS",location:lr.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"}],Z5=[{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 e4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var G_=class{getButtons(){let e=0;for(let t of Object.keys(this.pressed))e|=2**Number(t);return e}down(e){let t=cd(e.button);if(t in this.pressed){this.pressed[t].push(e);return}return this.pressed[t]=[e],t}up(e){let t=cd(e.button);if(t in this.pressed&&(this.pressed[t]=this.pressed[t].filter(r=>r.name!==e.name),this.pressed[t].length===0))return delete this.pressed[t],t}constructor(){e4(this,"pressed",{})}},qb={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function cd(e=0){return e in qb?qb[e]:Number(e)}var jb={1:2,2:1};function Bb(e){return e=cd(e),e in jb?jb[e]:e}function t4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var r4=class{get countPressed(){return this.pressedKeys.size}isPressed(e){return this.pressedKeys.has(e.name)}addPressed(e){return this.pressedKeys.add(e.name)}removePressed(e){return this.pressedKeys.delete(e.name)}constructor(){t4(this,"pressedKeys",new Set)}};function Qi(e,t){let r=[];for(let i=e;i;i=i.parentElement)r.push(i);let _R=[];for(let i=t;i;i=i.parentElement)_R.push(i);let o=0;for(;!(o>=r.length||o>=_R.length||r[r.length-1-o]!==_R[_R.length-1-o]);o++);return[r.slice(0,r.length-o),_R.slice(0,_R.length-o),_R.slice(_R.length-o)]}function dd({target:e,node:t,offset:r}){return Ir(e)?{node:e,offset:r!=null?r:Dr(e).length}:t?{node:t,offset:r!=null?r:t.nodeType===3?t.nodeValue.length:t.childNodes.length}:W_(e,r)}function W_(e,t,r=!0){let _R=t===void 0?e.childNodes.length-1:0,o=t===void 0?-1:1;for(;t===void 0?_R>=(r?Math.max(e.childNodes.length-1,0):0):_R<=e.childNodes.length;){if(t&&_R===e.childNodes.length)throw new Error("The given offset is out of bounds.");let i=e.childNodes.item(_R),s=String(i.textContent);if(s.length)if(t!==void 0&&s.length<t)t-=s.length;else{if(i.nodeType===1)return W_(i,t,!1);if(i.nodeType===3)return{node:i,offset:t!=null?t:i.nodeValue.length}}_R+=o}return{node:e,offset:e.childNodes.length}}function n4({document:e,target:t,clickCount:r,node:_R,offset:o}){if(r5(t))return;let i=Ir(t),s=String(i?Dr(t):t.textContent),[l,u]=_R?[o,o]:o4(s,o,r);if(i)return _i(t,{anchorOffset:l!=null?l:s.length,focusOffset:u!=null?u:s.length}),{node:t,start:l!=null?l:0,end:u!=null?u:s.length};{let{node:d,offset:c}=dd({target:t,node:_R,offset:l}),{node:p,offset:h}=dd({target:t,node:_R,offset:u}),m=t.ownerDocument.createRange();try{m.setStart(d,c),m.setEnd(p,h)}catch{throw new Error("The given offset is out of bounds.")}let g=e.getSelection();return g==null||g.removeAllRanges(),g==null||g.addRange(m.cloneRange()),m}}function o4(e,t,r){if(r%3===1||e.length===0)return[t,t];let _R=t!=null?t:e.length;return r%3===2?[_R-e.substr(0,t).match(/(\w+|\s+|\W)?$/)[0].length,t===void 0?t:t+e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length]:[_R-e.substr(0,t).match(/[^\r\_R]*$/)[0].length,t===void 0?t:t+e.substr(t).match(/^[^\r\_R]*/)[0].length]}function i4(e,{document:t,target:r,node:_R,offset:o}){let i=dd({target:r,node:_R,offset:o});if("node"in e){if(i.node===e.node){let s=i.offset<e.start?e.end:e.start,l=i.offset>e.end||i.offset<e.start?i.offset:e.end;_i(e.node,{anchorOffset:s,focusOffset:l})}}else{let s=e.cloneRange(),l=s.comparePoint(i.node,i.offset);l<0?s.setStart(i.node,i.offset):l>0&&s.setEnd(i.node,i.offset);let u=t.getSelection();u==null||u.removeAllRanges(),u==null||u.addRange(s.cloneRange())}}function Y_(e,t){var r,_R,o,i,s,l,u,d;return e.target!==t.target||((r=e.coords)===null||r===void 0?void 0:r.x)!==((_R=t.coords)===null||_R===void 0?void 0:_R.y)||((o=e.coords)===null||o===void 0?void 0:o.y)!==((i=t.coords)===null||i===void 0?void 0:i.y)||((s=e.caret)===null||s===void 0?void 0:s.node)!==((l=t.caret)===null||l===void 0?void 0:l.node)||((u=e.caret)===null||u===void 0?void 0:u.offset)!==((d=t.caret)===null||d===void 0?void 0:d.offset)}function Nn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a4=class{move(e,t){let r=this.position,_R=this.getTarget(e);if(this.position=t,!Y_(r,t))return;let o=this.getTarget(e),i=this.getEventInit("mousemove"),[s,l]=Qi(_R,o);return{leave:()=>{_R!==o&&(e.dispatchUIEvent(_R,"mouseout",i),s.forEach(u=>e.dispatchUIEvent(u,"mouseleave",i)))},enter:()=>{_R!==o&&(e.dispatchUIEvent(o,"mouseover",i),l.forEach(u=>e.dispatchUIEvent(u,"mouseenter",i)))},move:()=>{e.dispatchUIEvent(o,"mousemove",i),this.modifySelecting(e)}}}down(e,t,r){let _R=this.buttons.down(t);if(_R===void 0)return;let o=this.getTarget(e);this.buttonDownTarget[_R]=o;let i=zr(o),s=this.getEventInit("mousedown",t.button);(i||e.dispatchUIEvent(o,"mousedown",s))&&(this.startSelecting(e,s.detail),bn(o)),!i&&Bb(t.button)===2&&e.dispatchUIEvent(o,"contextmenu",this.getEventInit("contextmenu",t.button,r))}up(e,t,r){let _R=this.buttons.up(t);if(_R===void 0)return;let o=this.getTarget(e);if(!zr(o)){e.dispatchUIEvent(o,"mouseup",this.getEventInit("mouseup",t.button)),this.endSelecting();let i=Qi(this.buttonDownTarget[_R],o)[2][0];if(i){let s=this.getEventInit("click",t.button,r);s.detail&&(e.dispatchUIEvent(i,s.button===0?"click":"auxclick",s),s.button===0&&s.detail===2&&e.dispatchUIEvent(i,"dblclick",{...this.getEventInit("dblclick",t.button),detail:s.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(e,t,r){let _R={...this.position.coords};return r&&(_R.pointerId=r.pointerId,_R.pointerType=r.pointerType,_R.isPrimary=r.isPrimary),_R.button=Bb(t),_R.buttons=this.buttons.getButtons(),e==="mousedown"?_R.detail=this.clickCount.getOnDown(_R.button):e==="mouseup"?_R.detail=this.clickCount.getOnUp(_R.button):(e==="click"||e==="auxclick")&&(_R.detail=this.clickCount.incOnClick(_R.button)),_R}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}startSelecting(e,t){var r,_R;this.selecting=n4({document:e.config.document,target:this.getTarget(e),node:(r=this.position.caret)===null||r===void 0?void 0:r.node,offset:(_R=this.position.caret)===null||_R===void 0?void 0:_R.offset,clickCount:t})}modifySelecting(e){var t,r;this.selecting&&i4(this.selecting,{document:e.config.document,target:this.getTarget(e),node:(t=this.position.caret)===null||t===void 0?void 0:t.node,offset:(r=this.position.caret)===null||r===void 0?void 0:r.offset})}endSelecting(){this.selecting=void 0}constructor(){Nn(this,"position",{}),Nn(this,"buttons",new G_),Nn(this,"selecting",void 0),Nn(this,"buttonDownTarget",{}),Nn(this,"clickCount",new class{incOnClick(e){let t=this.down[e]===void 0?void 0:Number(this.down[e])+1;return this.count=this.count[e]===void 0?{}:{[e]:Number(this.count[e])+1},t}getOnDown(e){var t;this.down={[e]:(t=this.count[e])!==null&&t!==void 0?t:0};var r;return this.count={[e]:(r=this.count[e])!==null&&r!==void 0?r:0},Number(this.count[e])+1}getOnUp(e){return this.down[e]===void 0?void 0:Number(this.down[e])+1}reset(){this.count={}}constructor(){Nn(this,"down",{}),Nn(this,"count",{})}})}};function Bs(e,t){var r;return((r=K_(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}function s4(e){let t=Mr(e);for(let r=e,_R=[];r!=null&&r.ownerDocument;r=r.parentElement){_R.push(r);let o=t.getComputedStyle(r).pointerEvents;if(o&&!["inherit","unset"].includes(o))return{pointerEvents:o,tree:_R}}}var Fb=Symbol("Last check for pointer-events");function K_(e,t){let r=t[Fb];if(!(e.config.pointerEventsCheck!==ni.Never&&(!r||kb(e.config.pointerEventsCheck,ni.EachApiCall)&&r[Jt.Call]!==ss(e,Jt.Call)||kb(e.config.pointerEventsCheck,ni.EachTrigger)&&r[Jt.Trigger]!==ss(e,Jt.Trigger))))return r==null?void 0:r.result;let _R=s4(t);return t[Fb]={[Jt.Call]:ss(e,Jt.Call),[Jt.Trigger]:ss(e,Jt.Trigger),result:_R},_R}function Wi(e,t){let r=K_(e,t);if((r==null?void 0:r.pointerEvents)==="none")throw new Error([`Unable to perform pointer interaction as the element ${r.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",l4(r.tree)].join(`
429
+ `:e.key;return()=>gi(r,t,o,_R)}};var P5=["button","color","file","image","reset","submit"],N5=["email","month","password","search","tel","text","url","week"];vn.keyup=(e,t,r)=>{var _R;return(_R=Pb[e.key])===null||_R===void 0?void 0:_R.call(Pb,e,t,r)};var Pb={" ":(e,t,r)=>{if(S_(t))return()=>r.dispatchUIEvent(t,"click")}};vn.paste=(e,t,r)=>{if(fi(t))return()=>{var _R;let o=(_R=e.clipboardData)===null||_R===void 0?void 0:_R.getData("text");o&&gi(r,t,o,"insertFromPaste")}};var $_={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 U_(e){return $_[e].EventType}var M5=["MouseEvent","PointerEvent"];function I5(e){return M5.includes(U_(e))}function D5(e){return U_(e)==="KeyboardEvent"}var q5={ClipboardEvent:[B5],Event:[],InputEvent:[cs,F5],MouseEvent:[cs,fc,Nb],PointerEvent:[cs,fc,Nb,L5],KeyboardEvent:[cs,fc,k5]};function H_(e,t,r){let _R=Mr(t),{EventType:o,defaultInit:i}=$_[e],s=new(j5(_R))[o](e,i);return q5[o].forEach(l=>l(s,r!=null?r:{})),s}function j5(e){var t;let r=(t=e.Event)!==null&&t!==void 0?t:class{};var _R;let o=(_R=e.AnimationEvent)!==null&&_R!==void 0?_R:class extends r{};var i;let s=(i=e.ClipboardEvent)!==null&&i!==void 0?i:class extends r{};var l;let u=(l=e.PopStateEvent)!==null&&l!==void 0?l:class extends r{};var d;let c=(d=e.ProgressEvent)!==null&&d!==void 0?d:class extends r{};var p;let h=(p=e.TransitionEvent)!==null&&p!==void 0?p:class extends r{};var m;let g=(m=e.UIEvent)!==null&&m!==void 0?m:class extends r{};var y;let b=(y=e.CompositionEvent)!==null&&y!==void 0?y:class extends g{};var E;let _=(E=e.FocusEvent)!==null&&E!==void 0?E:class extends g{};var O;let C=(O=e.InputEvent)!==null&&O!==void 0?O:class extends g{};var w;let S=(w=e.KeyboardEvent)!==null&&w!==void 0?w:class extends g{};var T;let A=(T=e.MouseEvent)!==null&&T!==void 0?T:class extends g{};var N;let U=(N=e.DragEvent)!==null&&N!==void 0?N:class extends A{};var X;let V=(X=e.PointerEvent)!==null&&X!==void 0?X:class extends A{};var J;let x=(J=e.TouchEvent)!==null&&J!==void 0?J:class extends g{};return{Event:r,AnimationEvent:o,ClipboardEvent:s,PopStateEvent:u,ProgressEvent:c,TransitionEvent:h,UIEvent:g,CompositionEvent:b,FocusEvent:_,InputEvent:C,KeyboardEvent:S,MouseEvent:A,DragEvent:U,PointerEvent:V,TouchEvent:x}}function Vn(e,t){for(let[r,_R]of Object.entries(t))Object.defineProperty(e,r,{get:()=>_R!=null?_R:null})}function Dt(e){return Number(e!=null?e:0)}function B5(e,{clipboardData:t}){Vn(e,{clipboardData:t})}function F5(e,{data:t,inputType:r,isComposing:_R}){Vn(e,{data:t,isComposing:!!_R,inputType:String(r)})}function cs(e,{view:t,detail:r}){Vn(e,{view:t,detail:Dt(r!=null?r:0)})}function fc(e,{altKey:t,ctrlKey:r,metaKey:_R,shiftKey:o,modifierAltGraph:i,modifierCapsLock:s,modifierFn:l,modifierFnLock:u,modifierNumLock:d,modifierScrollLock:c,modifierSymbol:p,modifierSymbolLock:h}){Vn(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!_R,shiftKey:!!o,getModifierState(m){return!!{Alt:t,AltGraph:i,CapsLock:s,Control:r,Fn:l,FnLock:u,Meta:_R,NumLock:d,ScrollLock:c,Shift:o,Symbol:p,SymbolLock:h}[m]}})}function k5(e,{key:t,code:r,location:_R,repeat:o,isComposing:i,charCode:s}){Vn(e,{key:String(t),code:String(r),location:Dt(_R),repeat:!!o,isComposing:!!i,charCode:s})}function Nb(e,{x:t,y:r,screenX:_R,screenY:o,clientX:i=t,clientY:s=r,button:l,buttons:u,relatedTarget:d}){Vn(e,{screenX:Dt(_R),screenY:Dt(o),clientX:Dt(i),x:Dt(i),clientY:Dt(s),y:Dt(s),button:Dt(l),buttons:Dt(u),relatedTarget:d})}function L5(e,{pointerId:t,width:r,height:_R,pressure:o,tangentialPressure:i,tiltX:s,tiltY:l,twist:u,pointerType:d,isPrimary:c}){Vn(e,{pointerId:Dt(t),width:Dt(r),height:Dt(_R),pressure:Dt(o),tangentialPressure:Dt(i),tiltX:Dt(s),tiltY:Dt(l),twist:Dt(u),pointerType:String(d),isPrimary:!!c})}function $5(e,t,r,_R=!1){(I5(t)||D5(t))&&(r={...r,...this.system.getUIEventModifiers()});let o=H_(t,e,r);return z_.call(this,e,o,_R)}function z_(e,t,r=!1){var _R;let o=t.type,i=r?()=>{}:(_R=vn[o])===null||_R===void 0?void 0:_R.call(vn,t,e,this);if(i){t.preventDefault();let s=!1;return Object.defineProperty(t,"defaultPrevented",{get:()=>s}),Object.defineProperty(t,"preventDefault",{value:()=>{s=t.cancelable}}),hi(()=>e.dispatchEvent(t)),s||i(),!s}return hi(()=>e.dispatchEvent(t))}function U5(e,t,r){let _R=H_(t,e,r);hi(()=>e.dispatchEvent(_R))}var hc=Symbol("Interceptor for programmatical calls");function ti(e,t,r){let _R=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=Object.getOwnPropertyDescriptor(e,t),i=_R!=null&&_R.set?"set":"value";if(typeof(_R==null?void 0:_R[i])!="function"||_R[i][hc])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function s(...l){let{applyNative:u=!1,realArgs:d,then:c}=r.call(this,...l),p=(!u&&o||_R)[i];i==="set"?p.call(this,d):p.call(this,...d),c==null||c()}s[hc]=hc,Object.defineProperty(e,t,{...o!=null?o:_R,[i]:s})}function H5(e){ti(e,"value",function(t){let r=i5(t);return r&&g5(this),{applyNative:!!r,realArgs:z5(this,t),then:r?void 0:()=>y5(this,String(t))}})}function z5(e,t){return $e(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function V5(e){ti(e,"setSelectionRange",function(t,...r){let _R=a5(t);return{applyNative:!!_R,realArgs:[Number(t),...r],then:()=>_R?void 0:ys(e)}}),ti(e,"selectionStart",function(t){return{realArgs:t,then:()=>ys(e)}}),ti(e,"selectionEnd",function(t){return{realArgs:t,then:()=>ys(e)}}),ti(e,"select",function(){return{realArgs:[],then:()=>u5(e,{anchorOffset:0,focusOffset:Dr(e).length})}})}function G5(e){ti(e,"setRangeText",function(...t){return{realArgs:t,then:()=>{Mp(e),ys(e)}}})}var oi=Symbol("Node prepared with document state workarounds");function V_(e){e[oi]||(e.addEventListener("focus",t=>{let r=t.target;Mb(r)},{capture:!0,passive:!0}),e.activeElement&&Mb(e.activeElement),e.addEventListener("blur",t=>{let r=t.target,_R=l5(r);_R!==void 0&&(r.value!==_R&&U5(r,"change"),q_(r))},{capture:!0,passive:!0}),e[oi]=oi)}function Mb(e){e[oi]||($e(e,["input","textarea"])&&(H5(e),V5(e),G5(e)),e[oi]=oi)}function W5(e){return Y5(e)?e:e.ownerDocument}function Y5(e){return e.nodeType===9}function yi(e){let t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}function Ko(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var lr;(function(e){e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD"})(lr||(lr={}));var K5=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function Ib(e){return K5.includes(e)}var J5=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function Db(e){return J5.includes(e)}var X5=class{isKeyPressed(e){return!!this.pressed[String(e.code)]}getPressedKeys(){return Object.values(this.pressed).map(e=>e.keyDef)}async keydown(e,t){var r,_R,o;let i=String(t.key),s=String(t.code),l=pc(e.config.document);this.setKeydownTarget(l);var u;(u=(r=this.pressed)[_R=s])!==null&&u!==void 0||(r[_R]={keyDef:t,unpreventedDefault:!1}),Ib(i)&&(this.modifiers[i]=!0);let d=e.dispatchUIEvent(l,"keydown",{key:i,code:s});Db(i)&&!this.modifiers[i]&&(this.modifiers[i]=!0,this.modifierLockStart[i]=!0),(o=this.pressed[s]).unpreventedDefault||(o.unpreventedDefault=d),d&&this.hasKeyPress(i)&&e.dispatchUIEvent(pc(e.config.document),"keypress",{key:i,code:s,charCode:t.key==="Enter"?13:String(t.key).charCodeAt(0)})}async keyup(e,t){let r=String(t.key),_R=String(t.code),o=this.pressed[_R].unpreventedDefault;delete this.pressed[_R],Ib(r)&&!Object.values(this.pressed).find(i=>i.keyDef.key===r)&&(this.modifiers[r]=!1),e.dispatchUIEvent(pc(e.config.document),"keyup",{key:r,code:_R},!o),Db(r)&&this.modifiers[r]&&(this.modifierLockStart[r]?this.modifierLockStart[r]=!1:this.modifiers[r]=!1)}setKeydownTarget(e){e!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=e}hasKeyPress(e){return(e.length===1||e==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(e){Ko(this,"system",void 0),Ko(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}),Ko(this,"pressed",{}),Ko(this,"carryChar",""),Ko(this,"lastKeydownTarget",void 0),Ko(this,"modifierLockStart",{}),this.system=e}},Q5=[..."0123456789".split("").map(e=>({code:`Digit${e}`,key:e})),...")!@#$%^&*(".split("").map((e,t)=>({code:`Digit${t}`,key:e,shiftKey:!0})),..."abcdefghijklmnopqrstuvwxyz".split("").map(e=>({code:`Key${e.toUpperCase()}`,key:e})),..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map(e=>({code:`Key${e}`,key:e,shiftKey:!0})),{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:lr.LEFT},{code:"AltRight",key:"Alt",location:lr.RIGHT},{code:"ShiftLeft",key:"Shift",location:lr.LEFT},{code:"ShiftRight",key:"Shift",location:lr.RIGHT},{code:"ControlLeft",key:"Control",location:lr.LEFT},{code:"ControlRight",key:"Control",location:lr.RIGHT},{code:"MetaLeft",key:"Meta",location:lr.LEFT},{code:"MetaRight",key:"Meta",location:lr.RIGHT},{code:"OSLeft",key:"OS",location:lr.LEFT},{code:"OSRight",key:"OS",location:lr.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"}],Z5=[{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 e4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var G_=class{getButtons(){let e=0;for(let t of Object.keys(this.pressed))e|=2**Number(t);return e}down(e){let t=cd(e.button);if(t in this.pressed){this.pressed[t].push(e);return}return this.pressed[t]=[e],t}up(e){let t=cd(e.button);if(t in this.pressed&&(this.pressed[t]=this.pressed[t].filter(r=>r.name!==e.name),this.pressed[t].length===0))return delete this.pressed[t],t}constructor(){e4(this,"pressed",{})}},qb={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function cd(e=0){return e in qb?qb[e]:Number(e)}var jb={1:2,2:1};function Bb(e){return e=cd(e),e in jb?jb[e]:e}function t4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var r4=class{get countPressed(){return this.pressedKeys.size}isPressed(e){return this.pressedKeys.has(e.name)}addPressed(e){return this.pressedKeys.add(e.name)}removePressed(e){return this.pressedKeys.delete(e.name)}constructor(){t4(this,"pressedKeys",new Set)}};function Qi(e,t){let r=[];for(let i=e;i;i=i.parentElement)r.push(i);let _R=[];for(let i=t;i;i=i.parentElement)_R.push(i);let o=0;for(;!(o>=r.length||o>=_R.length||r[r.length-1-o]!==_R[_R.length-1-o]);o++);return[r.slice(0,r.length-o),_R.slice(0,_R.length-o),_R.slice(_R.length-o)]}function dd({target:e,node:t,offset:r}){return Ir(e)?{node:e,offset:r!=null?r:Dr(e).length}:t?{node:t,offset:r!=null?r:t.nodeType===3?t.nodeValue.length:t.childNodes.length}:W_(e,r)}function W_(e,t,r=!0){let _R=t===void 0?e.childNodes.length-1:0,o=t===void 0?-1:1;for(;t===void 0?_R>=(r?Math.max(e.childNodes.length-1,0):0):_R<=e.childNodes.length;){if(t&&_R===e.childNodes.length)throw new Error("The given offset is out of bounds.");let i=e.childNodes.item(_R),s=String(i.textContent);if(s.length)if(t!==void 0&&s.length<t)t-=s.length;else{if(i.nodeType===1)return W_(i,t,!1);if(i.nodeType===3)return{node:i,offset:t!=null?t:i.nodeValue.length}}_R+=o}return{node:e,offset:e.childNodes.length}}function n4({document:e,target:t,clickCount:r,node:_R,offset:o}){if(r5(t))return;let i=Ir(t),s=String(i?Dr(t):t.textContent),[l,u]=_R?[o,o]:o4(s,o,r);if(i)return _i(t,{anchorOffset:l!=null?l:s.length,focusOffset:u!=null?u:s.length}),{node:t,start:l!=null?l:0,end:u!=null?u:s.length};{let{node:d,offset:c}=dd({target:t,node:_R,offset:l}),{node:p,offset:h}=dd({target:t,node:_R,offset:u}),m=t.ownerDocument.createRange();try{m.setStart(d,c),m.setEnd(p,h)}catch{throw new Error("The given offset is out of bounds.")}let g=e.getSelection();return g==null||g.removeAllRanges(),g==null||g.addRange(m.cloneRange()),m}}function o4(e,t,r){if(r%3===1||e.length===0)return[t,t];let _R=t!=null?t:e.length;return r%3===2?[_R-e.substr(0,t).match(/(\w+|\s+|\W)?$/)[0].length,t===void 0?t:t+e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length]:[_R-e.substr(0,t).match(/[^\r\_R]*$/)[0].length,t===void 0?t:t+e.substr(t).match(/^[^\r\_R]*/)[0].length]}function i4(e,{document:t,target:r,node:_R,offset:o}){let i=dd({target:r,node:_R,offset:o});if("node"in e){if(i.node===e.node){let s=i.offset<e.start?e.end:e.start,l=i.offset>e.end||i.offset<e.start?i.offset:e.end;_i(e.node,{anchorOffset:s,focusOffset:l})}}else{let s=e.cloneRange(),l=s.comparePoint(i.node,i.offset);l<0?s.setStart(i.node,i.offset):l>0&&s.setEnd(i.node,i.offset);let u=t.getSelection();u==null||u.removeAllRanges(),u==null||u.addRange(s.cloneRange())}}function Y_(e,t){var r,_R,o,i,s,l,u,d;return e.target!==t.target||((r=e.coords)===null||r===void 0?void 0:r.x)!==((_R=t.coords)===null||_R===void 0?void 0:_R.y)||((o=e.coords)===null||o===void 0?void 0:o.y)!==((i=t.coords)===null||i===void 0?void 0:i.y)||((s=e.caret)===null||s===void 0?void 0:s.node)!==((l=t.caret)===null||l===void 0?void 0:l.node)||((u=e.caret)===null||u===void 0?void 0:u.offset)!==((d=t.caret)===null||d===void 0?void 0:d.offset)}function Nn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a4=class{move(e,t){let r=this.position,_R=this.getTarget(e);if(this.position=t,!Y_(r,t))return;let o=this.getTarget(e),i=this.getEventInit("mousemove"),[s,l]=Qi(_R,o);return{leave:()=>{_R!==o&&(e.dispatchUIEvent(_R,"mouseout",i),s.forEach(u=>e.dispatchUIEvent(u,"mouseleave",i)))},enter:()=>{_R!==o&&(e.dispatchUIEvent(o,"mouseover",i),l.forEach(u=>e.dispatchUIEvent(u,"mouseenter",i)))},move:()=>{e.dispatchUIEvent(o,"mousemove",i),this.modifySelecting(e)}}}down(e,t,r){let _R=this.buttons.down(t);if(_R===void 0)return;let o=this.getTarget(e);this.buttonDownTarget[_R]=o;let i=zr(o),s=this.getEventInit("mousedown",t.button);(i||e.dispatchUIEvent(o,"mousedown",s))&&(this.startSelecting(e,s.detail),bn(o)),!i&&Bb(t.button)===2&&e.dispatchUIEvent(o,"contextmenu",this.getEventInit("contextmenu",t.button,r))}up(e,t,r){let _R=this.buttons.up(t);if(_R===void 0)return;let o=this.getTarget(e);if(!zr(o)){e.dispatchUIEvent(o,"mouseup",this.getEventInit("mouseup",t.button)),this.endSelecting();let i=Qi(this.buttonDownTarget[_R],o)[2][0];if(i){let s=this.getEventInit("click",t.button,r);s.detail&&(e.dispatchUIEvent(i,s.button===0?"click":"auxclick",s),s.button===0&&s.detail===2&&e.dispatchUIEvent(i,"dblclick",{...this.getEventInit("dblclick",t.button),detail:s.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(e,t,r){let _R={...this.position.coords};return r&&(_R.pointerId=r.pointerId,_R.pointerType=r.pointerType,_R.isPrimary=r.isPrimary),_R.button=Bb(t),_R.buttons=this.buttons.getButtons(),e==="mousedown"?_R.detail=this.clickCount.getOnDown(_R.button):e==="mouseup"?_R.detail=this.clickCount.getOnUp(_R.button):(e==="click"||e==="auxclick")&&(_R.detail=this.clickCount.incOnClick(_R.button)),_R}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}startSelecting(e,t){var r,_R;this.selecting=n4({document:e.config.document,target:this.getTarget(e),node:(r=this.position.caret)===null||r===void 0?void 0:r.node,offset:(_R=this.position.caret)===null||_R===void 0?void 0:_R.offset,clickCount:t})}modifySelecting(e){var t,r;this.selecting&&i4(this.selecting,{document:e.config.document,target:this.getTarget(e),node:(t=this.position.caret)===null||t===void 0?void 0:t.node,offset:(r=this.position.caret)===null||r===void 0?void 0:r.offset})}endSelecting(){this.selecting=void 0}constructor(){Nn(this,"position",{}),Nn(this,"buttons",new G_),Nn(this,"selecting",void 0),Nn(this,"buttonDownTarget",{}),Nn(this,"clickCount",new class{incOnClick(e){let t=this.down[e]===void 0?void 0:Number(this.down[e])+1;return this.count=this.count[e]===void 0?{}:{[e]:Number(this.count[e])+1},t}getOnDown(e){var t;this.down={[e]:(t=this.count[e])!==null&&t!==void 0?t:0};var r;return this.count={[e]:(r=this.count[e])!==null&&r!==void 0?r:0},Number(this.count[e])+1}getOnUp(e){return this.down[e]===void 0?void 0:Number(this.down[e])+1}reset(){this.count={}}constructor(){Nn(this,"down",{}),Nn(this,"count",{})}})}};function Bs(e,t){var r;return((r=K_(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}function s4(e){let t=Mr(e);for(let r=e,_R=[];r!=null&&r.ownerDocument;r=r.parentElement){_R.push(r);let o=t.getComputedStyle(r).pointerEvents;if(o&&!["inherit","unset"].includes(o))return{pointerEvents:o,tree:_R}}}var Fb=Symbol("Last check for pointer-events");function K_(e,t){let r=t[Fb];if(!(e.config.pointerEventsCheck!==ni.Never&&(!r||kb(e.config.pointerEventsCheck,ni.EachApiCall)&&r[Jt.Call]!==ss(e,Jt.Call)||kb(e.config.pointerEventsCheck,ni.EachTrigger)&&r[Jt.Trigger]!==ss(e,Jt.Trigger))))return r==null?void 0:r.result;let _R=s4(t);return t[Fb]={[Jt.Call]:ss(e,Jt.Call),[Jt.Trigger]:ss(e,Jt.Trigger),result:_R},_R}function Wi(e,t){let r=K_(e,t);if((r==null?void 0:r.pointerEvents)==="none")throw new Error([`Unable to perform pointer interaction as the element ${r.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",l4(r.tree)].join(`
430
430
  `))}function l4(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,u4(t),e.length>1&&r===0&&" <-- This element declared `pointer-events: none`",e.length>1&&r===e.length-1&&" <-- Asserted pointer events here"].filter(Boolean).join("")).join(`
431
431
  `)}function u4(e){var t;let r;if(e.hasAttribute("aria-label"))r=e.getAttribute("aria-label");else if(e.hasAttribute("aria-labelledby")){var _R,o;r=(o=e.ownerDocument.getElementById(e.getAttribute("aria-labelledby")))===null||o===void 0||(_R=o.textContent)===null||_R===void 0?void 0:_R.trim()}else if($e(e,["button","input","meter","output","progress","select","textarea"])&&!((t=e.labels)===null||t===void 0)&&t.length)r=Array.from(e.labels).map(s=>{var l;return(l=s.textContent)===null||l===void 0?void 0:l.trim()}).join("|");else if($e(e,"button")){var i;r=(i=e.textContent)===null||i===void 0?void 0:i.trim()}return r=r==null?void 0:r.replace(/\_R/g," "),Number(r==null?void 0:r.length)>30&&(r=`${r==null?void 0:r.substring(0,29)}\u2026`),r?`(label=${r})`:""}function kb(e,t){return(e&t)>0}function cn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Lb=class{init(e,t){this.position=t;let r=this.getTarget(e),[,_R]=Qi(null,r),o=this.getEventInit();return Wi(e,r),e.dispatchUIEvent(r,"pointerover",o),_R.forEach(i=>e.dispatchUIEvent(i,"pointerenter",o)),this}move(e,t){let r=this.position,_R=this.getTarget(e);if(this.position=t,!Y_(r,t))return;let o=this.getTarget(e),i=this.getEventInit(),[s,l]=Qi(_R,o);return{leave:()=>{Bs(e,_R)&&_R!==o&&(e.dispatchUIEvent(_R,"pointerout",i),s.forEach(u=>e.dispatchUIEvent(u,"pointerleave",i)))},enter:()=>{Wi(e,o),_R!==o&&(e.dispatchUIEvent(o,"pointerover",i),l.forEach(u=>e.dispatchUIEvent(u,"pointerenter",i)))},move:()=>{e.dispatchUIEvent(o,"pointermove",i)}}}down(e,t){if(this.isDown)return;let r=this.getTarget(e);Wi(e,r),this.isDown=!0,this.isPrevented=!e.dispatchUIEvent(r,"pointerdown",this.getEventInit())}up(e,t){if(!this.isDown)return;let r=this.getTarget(e);Wi(e,r),this.isDown=!1,e.dispatchUIEvent(r,"pointerup",this.getEventInit())}release(e){let t=this.getTarget(e),[r]=Qi(t,null),_R=this.getEventInit();Bs(e,t)&&(e.dispatchUIEvent(t,"pointerout",_R),r.forEach(o=>e.dispatchUIEvent(o,"pointerleave",_R))),this.isCancelled=!0}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}getEventInit(){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary}}constructor({pointerId:e,pointerType:t,isPrimary:r}){cn(this,"pointerId",void 0),cn(this,"pointerType",void 0),cn(this,"isPrimary",void 0),cn(this,"isMultitouch",!1),cn(this,"isCancelled",!1),cn(this,"isDown",!1),cn(this,"isPrevented",!1),cn(this,"position",{}),this.pointerId=e,this.pointerType=t,this.isPrimary=r,this.isMultitouch=!r}};function dn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c4=class{isKeyPressed(e){return this.devices.get(e.pointerType).isPressed(e)}async press(e,t,r){let _R=this.getPointerName(t),o=t.pointerType==="touch"?this.pointers.new(_R,t).init(e,r):this.pointers.get(_R);o.position=r,o.pointerType!=="touch"&&(this.mouse.position=r),this.devices.get(t.pointerType).addPressed(t),this.buttons.down(t),o.down(e,t),o.pointerType!=="touch"&&!o.isPrevented&&this.mouse.down(e,t,o)}async move(e,t,r){let _R=this.pointers.get(t),o=_R.move(e,r),i=_R.pointerType==="touch"||_R.isPrevented&&_R.isDown?void 0:this.mouse.move(e,r);o==null||o.leave(),i==null||i.leave(),o==null||o.enter(),i==null||i.enter(),o==null||o.move(),i==null||i.move()}async release(e,t,r){let _R=this.devices.get(t.pointerType);_R.removePressed(t),this.buttons.up(t);let o=this.pointers.get(this.getPointerName(t));if(o.position=r,o.pointerType!=="touch"&&(this.mouse.position=r),_R.countPressed===0&&o.up(e,t),o.pointerType==="touch"&&o.release(e),!o.isPrevented){if(o.pointerType==="touch"&&!o.isMultitouch){let i=this.mouse.move(e,o.position);i==null||i.leave(),i==null||i.enter(),i==null||i.move(),this.mouse.down(e,t,o)}if(!o.isMultitouch){let i=this.mouse.move(e,o.position);i==null||i.leave(),i==null||i.enter(),i==null||i.move(),this.mouse.up(e,t,o)}}}getPointerName(e){return e.pointerType==="touch"?e.name:e.pointerType}getPreviousPosition(e){return this.pointers.has(e)?this.pointers.get(e).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(e){var t;return(t=this.mouse.position.target)!==null&&t!==void 0?t:e.config.document.body}setMousePosition(e){this.mouse.position=e,this.pointers.get("mouse").position=e}constructor(e){dn(this,"system",void 0),dn(this,"mouse",void 0),dn(this,"buttons",void 0),dn(this,"devices",new class{get(t){var r,_R,o;return(o=(r=this.registry)[_R=t])!==null&&o!==void 0||(r[_R]=new r4),this.registry[t]}constructor(){dn(this,"registry",{})}}),dn(this,"pointers",new class{new(t,r){let _R=r.pointerType!=="touch"||!Object.values(this.registry).some(o=>o.pointerType==="touch"&&!o.isCancelled);return _R||Object.values(this.registry).forEach(o=>{o.pointerType===r.pointerType&&!o.isCancelled&&(o.isMultitouch=!0)}),this.registry[t]=new Lb({pointerId:this.nextId++,pointerType:r.pointerType,isPrimary:_R}),this.registry[t]}get(t){if(!this.has(t))throw new Error(`Trying to access pointer "${t}" which does not exist.`);return this.registry[t]}has(t){return t in this.registry}constructor(){dn(this,"registry",{mouse:new Lb({pointerId:1,pointerType:"mouse",isPrimary:!0})}),dn(this,"nextId",2)}}),this.system=e,this.buttons=new G_,this.mouse=new a4}};function $b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var J_=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(){$b(this,"keyboard",new X5(this)),$b(this,"pointer",new c4(this))}};async function d4(e){let t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}async function p4(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}async function f4(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}async function h4(e){return this.pointer({target:e})}async function m4(e){return Wi(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function g4({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}function y4(e,t){let r=[];do{let{type:o,descriptor:i,consumedLength:s,releasePrevious:l,releaseSelf:u=!0,repeat:d}=N_(t,"keyboard");var _R;let c=(_R=e.find(p=>{if(o==="["){var h;return((h=p.code)===null||h===void 0?void 0:h.toLowerCase())===i.toLowerCase()}else if(o==="{"){var m;return((m=p.key)===null||m===void 0?void 0:m.toLowerCase())===i.toLowerCase()}return p.key===i}))!==null&&_R!==void 0?_R:{key:"Unknown",code:"Unknown",[o==="["?"code":"key"]:i};r.push({keyDef:c,releasePrevious:l,releaseSelf:u,repeat:d}),t=t.slice(s)}while(t);return r}async function b4(e){let t=y4(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await yi(this.config),await v4(this,t[r])}async function v4(e,{keyDef:t,releasePrevious:r,releaseSelf:_R,repeat:o}){let{system:i}=e;if(i.keyboard.isKeyPressed(t)&&await i.keyboard.keyup(e,t),!r){for(let s=1;s<=o;s++)await i.keyboard.keydown(e,t),s<o&&await yi(e.config);_R&&await i.keyboard.keyup(e,t)}}async function E4(e){for(let t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function X_(e){let t=Ir(e)?{"text/plain":_4(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=Op(Mr(e));for(let _R in t)t[_R]&&r.setData(_R,t[_R]);return r}function _4(e){let t=fa(e);return Dr(e).substring(t.startOffset,t.endOffset)}async function w4(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,_R=X_(r);if(_R.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:_R})&&this.config.writeToClipboard&&await x_(e,_R),_R}async function S4(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,_R=X_(r);if(_R.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:_R})&&this.config.writeToClipboard&&await x_(r.ownerDocument,_R),_R}async function C4(e){let t=this.config.document;var r;let _R=(r=t.activeElement)!==null&&r!==void 0?r:t.body;var o;let i=(o=typeof e=="string"?A4(t,e):e)!==null&&o!==void 0?o:await W3(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(_R,"paste",{clipboardData:i})}function A4(e,t){let r=Op(Mr(e));return r.setData("text",t),r}function Ub(e,t){let r=[];do{let{descriptor:_R,consumedLength:o,releasePrevious:i,releaseSelf:s=!0}=N_(t,"pointer"),l=e.find(u=>u.name===_R);l&&r.push({keyDef:l,releasePrevious:i,releaseSelf:s}),t=t.slice(o)}while(t);return r}async function T4(e){let{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(_R=>{typeof _R=="string"?r.push(...Ub(t,_R)):"keys"in _R?r.push(...Ub(t,_R.keys).map(o=>({..._R,...o}))):r.push(_R)});for(let _R=0;_R<r.length;_R++)await yi(this.config),await R4(this,r[_R]);this.system.pointer.resetClickCount()}async function R4(e,t){var r,_R;let o="pointerName"in t&&t.pointerName?t.pointerName:"keyDef"in t?e.system.pointer.getPointerName(t.keyDef):"mouse",i=e.system.pointer.getPreviousPosition(o);var s,l,u,d;let c={target:(s=t.target)!==null&&s!==void 0?s:x4(e,i),coords:(l=t.coords)!==null&&l!==void 0?l:i==null?void 0:i.coords,caret:{node:(u=t.node)!==null&&u!==void 0?u:Hb(t)||i==null||(r=i.caret)===null||r===void 0?void 0:r.node,offset:(d=t.offset)!==null&&d!==void 0?d:Hb(t)||i==null||(_R=i.caret)===null||_R===void 0?void 0:_R.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(Vi(e,Jt.Trigger),await e.system.pointer.release(e,t.keyDef,c)),t.releasePrevious||(Vi(e,Jt.Trigger),await e.system.pointer.press(e,t.keyDef,c),t.releaseSelf&&(Vi(e,Jt.Trigger),await e.system.pointer.release(e,t.keyDef,c)))):(Vi(e,Jt.Trigger),await e.system.pointer.move(e,o,c))}function Hb(e){var t,r;return!!((r=(t=e.target)!==null&&t!==void 0?t:e.node)!==null&&r!==void 0?r:e.offset!==void 0)}function x4(e,t){if(!t)throw new Error("This pointer has no previous position. Provide a target property!");var r;return(r=t.target)!==null&&r!==void 0?r:e.config.document.body}async function O4(e){if(!fi(e)||zr(e))throw new Error("clear()` is only supported on editable elements.");if(bn(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(L_(e),!x5(e))throw new Error("The element content to be cleared could not be selected.");gi(this,e,"","deleteContentBackward")}async function P4(e,t){return Q_.call(this,!0,e,t)}async function N4(e,t){return Q_.call(this,!1,e,t)}async function Q_(e,t,r){if(!e&&!t.multiple)throw et().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",t);let _R=Array.isArray(r)?r:[r],o=Array.from(t.querySelectorAll('option, [role="option"]')),i=_R.map(l=>{if(typeof l!="string"&&o.includes(l))return l;{let u=o.find(d=>d.value===l||d.innerHTML===l);if(u)return u;throw et().getElementError(`Value "${String(l)}" not found in options`,t)}}).filter(l=>!zr(l));if(zr(t)||!i.length)return;let s=l=>{l.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change")};if($e(t,"select"))if(t.multiple)for(let l of i){let u=this.config.pointerEventsCheck===0?!0:Bs(this,l);u&&(this.dispatchUIEvent(l,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(l,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(l,"pointermove"),this.dispatchUIEvent(l,"mousemove"),this.dispatchUIEvent(l,"pointerdown"),this.dispatchUIEvent(l,"mousedown")),bn(t),u&&(this.dispatchUIEvent(l,"pointerup"),this.dispatchUIEvent(l,"mouseup")),s(l),u&&this.dispatchUIEvent(l,"click"),await yi(this.config)}else if(i.length===1){let l=this.config.pointerEventsCheck===0?!0:Bs(this,t);l?await this.click(t):bn(t),s(i[0]),l&&(this.dispatchUIEvent(t,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(t,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(t,"pointerup"),this.dispatchUIEvent(t,"mouseup"),this.dispatchUIEvent(t,"click")),await yi(this.config)}else throw et().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(let l of i)await this.click(l),await this.unhover(l);else throw et().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}async function M4(e,t,{skipClick:r=this.config.skipClick,skipAutoClose:_R=this.config.skipAutoClose,initialSelectionStart:o,initialSelectionEnd:i}={}){e.disabled||(r||await this.click(e),o!==void 0&&Gi(e,o,i!=null?i:o),await this.keyboard(t),_R||await E4(this))}var zb=Symbol("files and value properties are mocked");function mc(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}function I4(e,t){var r;(r=e[zb])===null||r===void 0||r.restore();let _R=Object.getOwnPropertyDescriptor(e,"type"),o=Object.getOwnPropertyDescriptor(e,"value"),i=Object.getOwnPropertyDescriptor(e,"files");function s(){mc(e,"type",_R),mc(e,"value",o),mc(e,"files",i)}e[zb]={restore:s},Object.defineProperties(e,{files:{configurable:!0,get:()=>t},value:{configurable:!0,get:()=>t.length?`C:\\fakepath\\${t[0].name}`:"",set(l){if(l==="")s();else{var u;o==null||(u=o.set)===null||u===void 0||u.call(e,l)}}},type:{configurable:!0,get:()=>"file",set(l){l!=="file"&&(s(),e.type=l)}}})}async function D4(e,t){let r=$e(e,"label")?e.control:e;if(!r||!$e(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r==null?void 0:r.tagName} element does not accept file uploads`);if(zr(e))return;let _R=(Array.isArray(t)?t:[t]).filter(i=>!this.config.applyAccept||q4(i,r.accept)).slice(0,r.multiple?void 0:1),o=()=>{var i;_R.length===((i=r.files)===null||i===void 0?void 0:i.length)&&_R.every((s,l)=>{var u;return s===((u=r.files)===null||u===void 0?void 0:u.item(l))})||(I4(r,xp(Mr(e),_R)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))};r.addEventListener("fileDialog",o),await this.click(e),r.removeEventListener("fileDialog",o)}function q4(e,t){if(!t)return!0;let r=["audio/*","image/*","video/*"];return t.split(",").some(_R=>_R.startsWith(".")?e.name.endsWith(_R):r.includes(_R)?e.type.startsWith(_R.substr(0,_R.length-1)):e.type===_R)}var Vb={click:d4,dblClick:p4,tripleClick:f4,hover:h4,unhover:m4,tab:g4,keyboard:b4,copy:w4,cut:S4,paste:C4,pointer:T4,clear:O4,deselectOptions:N4,selectOptions:P4,type:M4,upload:D4};function j4(e){return et().asyncWrapper(e)}var Z_={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:Q5,pointerMap:Z5,pointerEventsCheck:ni.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},B4={...Z_,writeToClipboard:!0};function ew(e={},t=B4,r){let _R=$4(e,r,t);return{...t,...e,document:_R}}function F4(e={}){let t=ew(e);V_(t.document);var r;let _R=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return z3(_R),Dp(t).api}function Gt({keyboardState:e,pointerState:t,...r}={},_R){let o=ew(r,Z_,_R);V_(o.document);var i;let s=(i=t!=null?t:e)!==null&&i!==void 0?i:new J_;return{api:Dp(o,s).api,system:s}}function k4(e){return Dp({...this.config,...e},this.system).api}function L4(e,t){function r(..._R){return Vi(e,Jt.Call),j4(()=>t.apply(e,_R).then(async o=>(await yi(e.config),o)))}return Object.defineProperty(r,"name",{get:()=>t.name}),r}function Dp(e,t=new J_){let r={};return Object.assign(r,{config:e,dispatchEvent:z_.bind(r),dispatchUIEvent:$5.bind(r),system:t,levelRefs:{},...Vb}),{instance:r,api:{...Object.fromEntries(Object.entries(Vb).map(([_R,o])=>[_R,L4(r,o)])),setup:k4.bind(r)}}}function $4(e,t,r){var _R,o;return(o=(_R=e.document)!==null&&_R!==void 0?_R:t&&W5(t))!==null&&o!==void 0?o:r.document}var tw={};Ls(tw,{clear:()=>U4,click:()=>H4,copy:()=>z4,cut:()=>V4,dblClick:()=>G4,deselectOptions:()=>W4,hover:()=>Y4,keyboard:()=>K4,paste:()=>X4,pointer:()=>J4,selectOptions:()=>Q4,tab:()=>n9,tripleClick:()=>Z4,type:()=>e9,unhover:()=>t9,upload:()=>r9});function U4(e){return Gt().api.clear(e)}function H4(e,t={}){return Gt(t,e).api.click(e)}function z4(e={}){return Gt(e).api.copy()}function V4(e={}){return Gt(e).api.cut()}function G4(e,t={}){return Gt(t).api.dblClick(e)}function W4(e,t,r={}){return Gt(r).api.deselectOptions(e,t)}function Y4(e,t={}){return Gt(t).api.hover(e)}async function K4(e,t={}){let{api:r,system:_R}=Gt(t);return r.keyboard(e).then(()=>_R)}async function J4(e,t={}){let{api:r,system:_R}=Gt(t);return r.pointer(e).then(()=>_R)}function X4(e,t){return Gt(t).api.paste(e)}function Q4(e,t,r={}){return Gt(r).api.selectOptions(e,t)}function Z4(e,t={}){return Gt(t).api.tripleClick(e)}function e9(e,t,r={}){return Gt(r,e).api.type(e,t,r)}function t9(e,t={}){let{api:r,system:_R}=Gt(t);return _R.pointer.setMousePosition({target:e}),r.unhover(e)}function r9(e,t,r={}){return Gt(r).api.upload(e,t)}function n9(e={}){return Gt().api.tab(e)}var o9={...tw,setup:F4},i9=xl(),rw=Ku();function a9(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var _R=Array.from(typeof e=="string"?[e]:e);_R[_R.length-1]=_R[_R.length-1].replace(/\r?\_R([\t ]*)$/,"");var o=_R.reduce(function(l,u){var d=u.match(/\_R([\t ]+|(?!\s).)/g);return d?l.concat(d.map(function(c){var p,h;return(h=(p=c.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&h!==void 0?h:0})):l},[]);if(o.length){var i=new RegExp(`
432
432
  [ ]{`+Math.min.apply(Math,o)+"}","g");_R=_R.map(function(l){return l.replace(i,`
@@ -436,4 +436,4 @@ Unable to find an `+(_R===!1?"accessible ":"")+'element with the role "'+t+'"'+u
436
436
  `)),s+=p+_R[u+1]}),s}var s9=a9,pd=(0,rw.instrument)({...X1},{intercept:(e,t)=>t[0]==="fireEvent"||e.startsWith("find")||e.startsWith("waitFor")});pd.screen=new Proxy(pd.screen,{get(e,t,r){return i9.once.warn(s9`
437
437
  You are using Testing Library's \`screen\` object. Use \`within(canvasElement)\` instead.
438
438
  More info: https://storybook.js.org/docs/essentials/interactions
439
- `),Reflect.get(e,t,r)}});var{buildQueries:l9,configure:u9,createEvent:c9,fireEvent:d9,findAllByAltText:p9,findAllByDisplayValue:f9,findAllByLabelText:h9,findAllByPlaceholderText:m9,findAllByRole:g9,findAllByTestId:y9,findAllByText:b9,findAllByTitle:v9,findByAltText:E9,findByDisplayValue:_9,findByLabelText:w9,findByPlaceholderText:S9,findByRole:C9,findByTestId:A9,findByText:T9,findByTitle:R9,getAllByAltText:x9,getAllByDisplayValue:O9,getAllByLabelText:P9,getAllByPlaceholderText:N9,getAllByRole:M9,getAllByTestId:I9,getAllByText:D9,getAllByTitle:q9,getByAltText:j9,getByDisplayValue:B9,getByLabelText:F9,getByPlaceholderText:k9,getByRole:L9,getByTestId:$9,getByText:U9,getByTitle:H9,getConfig:z9,getDefaultNormalizer:V9,getElementError:G9,getNodeText:W9,getQueriesForElement:Y9,getRoles:K9,getSuggestedQuery:J9,isInaccessible:X9,logDOM:Q9,logRoles:Z9,prettyDOM:e6,queries:t6,queryAllByAltText:r6,queryAllByAttribute:n6,queryAllByDisplayValue:o6,queryAllByLabelText:i6,queryAllByPlaceholderText:a6,queryAllByRole:s6,queryAllByTestId:l6,queryAllByText:u6,queryAllByTitle:c6,queryByAltText:d6,queryByAttribute:p6,queryByDisplayValue:f6,queryByLabelText:h6,queryByPlaceholderText:m6,queryByRole:g6,queryByTestId:y6,queryByText:b6,queryByTitle:v6,queryHelpers:E6,screen:_6,waitFor:w6,waitForElementToBeRemoved:S6,within:nw,prettyFormat:C6}=pd,{userEvent:A6}=(0,rw.instrument)({userEvent:o9},{intercept:!0}),{expect:T6}=(0,FD.instrument)({expect:z1},{getKeys:(e,t)=>{let r=["assert","__methods","__flags","_obj"];if(e.constructor===F){let _R=Object.keys(Object.getPrototypeOf(e)).filter(o=>!r.includes(o));return t>2?_R:[..._R,"not"]}return Object.keys(e)},intercept:e=>e!=="expect"}),R6=({parameters:e})=>{var t,r,_R;((t=e==null?void 0:e.test)==null?void 0:t.mockReset)===!0?K1():((r=e==null?void 0:e.test)==null?void 0:r.clearMocks)===!0?Y1():((_R=e==null?void 0:e.test)==null?void 0:_R.restoreMocks)!==!1&&J1()},Fs=(e,t=0,r)=>{var _R;if(t>5||e==null)return e;if(fp(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let o=G1(e);return r&&o.mockName(r),o}if(Array.isArray(e))return t++,e.map(o=>Fs(o,t));if(typeof e=="object"&&e.constructor===Object){t++;for(let[o,i]of Object.entries(e))(_R=Object.getOwnPropertyDescriptor(e,o))!=null&&_R.writable&&(e[o]=Fs(i,t,o));return e}return e},x6=({initialArgs:e})=>{Fs(e)},O6=e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=nw(e.canvasElement))};d0.global.__STORYBOOK_TEST_LOADERS__=[R6,x6,O6];d0.global.__STORYBOOK_TEST_ON_MOCK_CALL__=V1});var L6={};Lw(L6,{Default:()=>Aa,HighImpactHero:()=>F6,LowImpactHero:()=>j6,MediumImpactHero:()=>B6,PostHero:()=>k6,default:()=>D6});module.exports=$w(L6);var wn=Gn(require("react"));var zp=require("clsx");var _l="-",Uw=e=>{let t=zw(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:_R}=e;return{getClassGroupId:s=>{let l=s.split(_l);return l[0]===""&&l.length!==1&&l.shift(),Fp(l,t)||Hw(s)},getConflictingClassGroupIds:(s,l)=>{let u=r[s]||[];return l&&_R[s]?[...u,..._R[s]]:u}}},Fp=(e,t)=>{var s;if(e.length===0)return t.classGroupId;let r=e[0],_R=t.nextPart.get(r),o=_R?Fp(e.slice(1),_R):void 0;if(o)return o;if(t.validators.length===0)return;let i=e.join(_l);return(s=t.validators.find(({validator:l})=>l(i)))==null?void 0:s.classGroupId},jp=/^\[(.+)\]$/,Hw=e=>{if(jp.test(e)){let t=jp.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},zw=e=>{let{theme:t,prefix:r}=e,_R={nextPart:new Map,validators:[]};return Gw(Object.entries(e.classGroups),r).forEach(([i,s])=>{El(s,_R,i,t)}),_R},El=(e,t,r,_R)=>{e.forEach(o=>{if(typeof o=="string"){let i=o===""?t:Bp(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(Vw(o)){El(o(_R),t,r,_R);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{El(s,Bp(t,i),r,_R)})})},Bp=(e,t)=>{let r=e;return t.split(_l).forEach(_R=>{r.nextPart.has(_R)||r.nextPart.set(_R,{nextPart:new Map,validators:[]}),r=r.nextPart.get(_R)}),r},Vw=e=>e.isThemeGetter,Gw=(e,t)=>t?e.map(([r,_R])=>{let o=_R.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[t+s,l])):i);return[r,o]}):e,Ww=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,_R=new Map,o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,_R=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=_R.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},kp="!",Yw=e=>{let{separator:t,experimentalParseClassName:r}=e,_R=t.length===1,o=t[0],i=t.length,s=l=>{let u=[],d=0,c=0,p;for(let b=0;b<l.length;b++){let E=l[b];if(d===0){if(E===o&&(_R||l.slice(b,b+i)===t)){u.push(l.slice(c,b)),c=b+i;continue}if(E==="/"){p=b;continue}}E==="["?d++:E==="]"&&d--}let h=u.length===0?l:l.substring(c),m=h.startsWith(kp),g=m?h.substring(1):h,y=p&&p>c?p-c:void 0;return{modifiers:u,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:y}};return r?l=>r({className:l,parseClassName:s}):s},Kw=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(_R=>{_R[0]==="["?(t.push(...r.sort(),_R),r=[]):r.push(_R)}),t.push(...r.sort()),t},Jw=e=>({cache:Ww(e.cacheSize),parseClassName:Yw(e),...Uw(e)}),Xw=/\s+/,Qw=(e,t)=>{let{parseClassName:r,getClassGroupId:_R,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(Xw),l="";for(let u=s.length-1;u>=0;u-=1){let d=s[u],{modifiers:c,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:m}=r(d),g=!!m,y=_R(g?h.substring(0,m):h);if(!y){if(!g){l=d+(l.length>0?" "+l:l);continue}if(y=_R(h),!y){l=d+(l.length>0?" "+l:l);continue}g=!1}let b=Kw(c).join(":"),E=p?b+kp:b,_=E+y;if(i.includes(_))continue;i.push(_);let O=o(y,g);for(let C=0;C<O.length;++C){let w=O[C];i.push(E+w)}l=d+(l.length>0?" "+l:l)}return l};function Zw(){let e=0,t,r,_R="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Lp(t))&&(_R&&(_R+=" "),_R+=r);return _R}var Lp=e=>{if(typeof e=="string")return e;let t,r="";for(let _R=0;_R<e.length;_R++)e[_R]&&(t=Lp(e[_R]))&&(r&&(r+=" "),r+=t);return r};function eS(e,...t){let r,_R,o,i=s;function s(u){let d=t.reduce((c,p)=>p(c),e());return r=Jw(d),_R=r.cache.get,o=r.cache.set,i=l,l(u)}function l(u){let d=_R(u);if(d)return d;let c=Qw(u,r);return o(u,c),c}return function(){return i(Zw.apply(null,arguments))}}var ft=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},$p=/^\[(?:([a-z-]+):)?(.+)\]$/i,tS=/^\d+\/\d+$/,rS=new Set(["px","full","screen"]),nS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,iS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,aS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qr=e=>Wn(e)||rS.has(e)||tS.test(e),Kr=e=>Yn(e,"length",mS),Wn=e=>!!e&&!Number.isNaN(Number(e)),vl=e=>Yn(e,"number",Wn),Ci=e=>!!e&&Number.isInteger(Number(e)),lS=e=>e.endsWith("%")&&Wn(e.slice(0,-1)),ke=e=>$p.test(e),Jr=e=>nS.test(e),uS=new Set(["length","size","percentage"]),cS=e=>Yn(e,uS,Up),dS=e=>Yn(e,"position",Up),pS=new Set(["image","url"]),fS=e=>Yn(e,pS,yS),hS=e=>Yn(e,"",gS),Ai=()=>!0,Yn=(e,t,r)=>{let _R=$p.exec(e);return _R?_R[1]?typeof t=="string"?_R[1]===t:t.has(_R[1]):r(_R[2]):!1},mS=e=>oS.test(e)&&!iS.test(e),Up=()=>!1,gS=e=>aS.test(e),yS=e=>sS.test(e);var bS=()=>{let e=ft("colors"),t=ft("spacing"),r=ft("blur"),_R=ft("brightness"),o=ft("borderColor"),i=ft("borderRadius"),s=ft("borderSpacing"),l=ft("borderWidth"),u=ft("contrast"),d=ft("grayscale"),c=ft("hueRotate"),p=ft("invert"),h=ft("gap"),m=ft("gradientColorStops"),g=ft("gradientColorStopPositions"),y=ft("inset"),b=ft("margin"),E=ft("opacity"),_=ft("padding"),O=ft("saturate"),C=ft("scale"),w=ft("sepia"),S=ft("skew"),T=ft("space"),A=ft("translate"),N=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto",ke,t],V=()=>[ke,t],J=()=>["",qr,Kr],x=()=>["auto",Wn,ke],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>["start","end","center","between","around","evenly","stretch"],Se=()=>["","0",ke],De=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Oe=()=>[Wn,ke];return{cacheSize:500,separator:":",theme:{colors:[Ai],spacing:[qr,Kr],blur:["none","",Jr,ke],brightness:Oe(),borderColor:[e],borderRadius:["none","","full",Jr,ke],borderSpacing:V(),borderWidth:J(),contrast:Oe(),grayscale:Se(),hueRotate:Oe(),invert:Se(),gap:V(),gradientColorStops:[e],gradientColorStopPositions:[lS,Kr],inset:X(),margin:X(),opacity:Oe(),padding:V(),saturate:Oe(),scale:Oe(),sepia:Se(),skew:Oe(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",ke]}],container:["container"],columns:[{columns:[Jr]}],"break-after":[{"break-after":De()}],"break-before":[{"break-before":De()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...B(),ke]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ci,ke]}],basis:[{basis:X()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ke]}],grow:[{grow:Se()}],shrink:[{shrink:Se()}],order:[{order:["first","last","none",Ci,ke]}],"grid-cols":[{"grid-cols":[Ai]}],"col-start-end":[{col:["auto",{span:["full",Ci,ke]},ke]}],"col-start":[{"col-start":x()}],"col-end":[{"col-end":x()}],"grid-rows":[{"grid-rows":[Ai]}],"row-start-end":[{row:["auto",{span:[Ci,ke]},ke]}],"row-start":[{"row-start":x()}],"row-end":[{"row-end":x()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ke]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ke]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...ce()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ce(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ce(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ke,t]}],"min-w":[{"min-w":[ke,t,"min","max","fit"]}],"max-w":[{"max-w":[ke,t,"none","full","min","max","fit","prose",{screen:[Jr]},Jr]}],h:[{h:[ke,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ke,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ke,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ke,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Jr,Kr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",vl]}],"font-family":[{font:[Ai]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ke]}],"line-clamp":[{"line-clamp":["none",Wn,vl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",qr,ke]}],"list-image":[{"list-image":["none",ke]}],"list-style-type":[{list:["none","disc","decimal",ke]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",qr,Kr]}],"underline-offset":[{"underline-offset":["auto",qr,ke]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ke]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),dS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",cS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fS]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:K()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[qr,ke]}],"outline-w":[{outline:[qr,Kr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[qr,Kr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jr,hS]}],"shadow-color":[{shadow:[Ai]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...fe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":fe()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[_R]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Jr,ke]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[O]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[_R]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[O]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ke]}],duration:[{duration:Oe()}],ease:[{ease:["linear","in","out","in-out",ke]}],delay:[{delay:Oe()}],animate:[{animate:["none","spin","ping","pulse","bounce",ke]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Ci,ke]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ke]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","_R-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ke]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ke]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[qr,Kr,vl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Hp=eS(bS);function Ft(...e){return Hp((0,zp.clsx)(e))}var Sn=require("react/jsx-runtime"),Ra=wn.forwardRef(({className:e,...t},r)=>(0,Sn.jsx)("div",{ref:r,className:Ft("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Ra.displayName="Card";var xa=wn.forwardRef(({className:e,...t},r)=>(0,Sn.jsx)("div",{ref:r,className:Ft("flex flex-col space-y-1.5 p-6",e),...t}));xa.displayName="CardHeader";var Oa=wn.forwardRef(({className:e,...t},r)=>(0,Sn.jsx)("div",{ref:r,className:Ft("font-semibold leading-none tracking-tight",e),...t}));Oa.displayName="CardTitle";var vS=wn.forwardRef(({className:e,...t},r)=>(0,Sn.jsx)("div",{ref:r,className:Ft("text-sm text-muted-foreground",e),...t}));vS.displayName="CardDescription";var Pa=wn.forwardRef(({className:e,...t},r)=>(0,Sn.jsx)("div",{ref:r,className:Ft("p-6 pt-0",e),...t}));Pa.displayName="CardContent";var ES=wn.forwardRef(({className:e,...t},r)=>(0,Sn.jsx)("div",{ref:r,className:Ft("flex items-center p-6 pt-0",e),...t}));ES.displayName="CardFooter";var Vp=require("@radix-ui/react-slot"),Gp=require("class-variance-authority"),Wp=Gn(require("react")),_S=(0,Gp.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),wl=Wp.forwardRef(({asChild:e=!1,className:t,size:r,variant:_R,...o},i)=>(0,Sn.jsx)(e?Vp.Slot:"button",{className:Ft(_S({className:t,size:r,variant:_R})),ref:i,...o}));wl.displayName="Button";var Da=require("lucide-react");var Ti=({type:e="solid",iconName:t="cloud",size:r="lg",className:_R})=>{let o=e.includes("fa-")?e+" ":"fa-"+e+" ",i="fa-"+t,s=_R!=null?_R:"",l=o+i+" fa-"+r+" "+s;return(0,Sn.jsx)("i",{className:l})};var Kn=require("@headlessui/react"),Jp=require("@heroicons/react/20/solid"),wS=({name:e,items:t,actions:r=[],href:_R})=>!t&&_R?(0,Sn.jsx)("a",{href:_R,className:"flex items-center gap-x-1 text-sm font-semibold text-foreground group",children:(0,Sn.jsxs)("span",{className:"relative",children:[e,(0,Sn.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,Sn.jsxs)(Kn.Popover,{children:[(0,Sn.jsxs)(Kn.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,Sn.jsxs)("span",{className:"relative",children:[e,(0,Sn.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,Sn.jsx)(Jp.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Sn.jsxs)(Kn.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Sn.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 z-50",children:t&&t.map(o=>(0,Sn.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Sn.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-lg bg-popover text-foreground group-hover:text-accent transition-transform duration-300 ease-in-out group-hover:scale-90",children:(0,Sn.jsx)(o.icon,{"aria-hidden":"true",size:"6x"})}),(0,Sn.jsxs)("a",{href:o.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[o.name,(0,Sn.jsx)("span",{className:"absolute inset-0"})]}),(0,Sn.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:o.description})]},o.name))}),r.length>0&&(0,Sn.jsx)("div",{className:"bg-gray-50",children:(0,Sn.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Sn.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:r.map(o=>(0,Sn.jsxs)("a",{href:o.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[(0,Sn.jsx)(o.icon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-gray-400"}),o.name]},o.name))})})})]})]}),Xp=wS;var Cn=require("react"),sf=Gn(require("next/image"));function Qp({children:e,isFluid:t=!1,isNoPadding:r=!1,className:_R=""}){let o=Ft("container",t&&"full-width",r&&"no-padding",_R);return(0,Sn.jsx)("div",{className:o,children:e})}var ef=Gn(require("next/link"));function tf({children:e,href:t,openNewTab:r,..._R}){return(0,Sn.jsx)(ef.default,{href:t,target:r?"_blank":"_self",..._R,children:e})}var Sl=Gn(require("next/image"));function xi({logoLight:e,logoDark:t,mobile:r=!1}){return(0,Sn.jsxs)(tf,{href:"/",className:Ft(r?"py-1":"py-2"),children:[(0,Sn.jsx)(Sl.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:r?35:50}}),(0,Sn.jsx)(Sl.default,{className:"logo-dark hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:r?35:50}})]})}function of({isMenuOpen:e,logoLight:t,logoDark:r,menuItems:_R}){let[o,i]=(0,Cn.useState)(!1),[s,l]=(0,Cn.useState)("light"),u=["light","dark"];(0,Cn.useEffect)(()=>{let c=localStorage.getItem("theme")||"light";console.log("storedTheme",c),l(c),document.documentElement.setAttribute("class",c)},[]);let d=()=>{let c=u[(u.indexOf(s)+1)%u.length];l(c),document.documentElement.setAttribute("class",c),localStorage.setItem("theme",c)};return(0,Cn.useEffect)(()=>{let c=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",c,{passive:!0}),()=>window.removeEventListener("scroll",c)},[]),(0,Sn.jsx)(Sn.Fragment,{children:(0,Sn.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${o||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,Sn.jsx)(Qp,{className:"px-0",children:(0,Sn.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-b-xl",children:(0,Sn.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-b-xl border border-t-0 border-accent",children:[(0,Sn.jsx)(xi,{logoDark:r,logoLight:t}),(0,Sn.jsx)(Kn.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:_R&&_R.map(c=>(0,Sn.jsx)(Xp,{...c},c.name))}),(0,Sn.jsx)("div",{className:"flex items-center space-x-4",children:(0,Sn.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full bg-accent/30 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:d,children:(0,Sn.jsxs)("div",{className:"relative",children:[(0,Sn.jsx)(Da.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Sn.jsx)(Da.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var Ma=require("@heroicons/react/24/outline");var Cl=["light","dark"];function af({logoLight:e,logoDark:t,menuItems:r,isMenuOpen:_R=!0}){let[o,i]=(0,Cn.useState)(!1),[s,l]=(0,Cn.useState)(!1),[u,d]=(0,Cn.useState)(!1),[c,p]=(0,Cn.useState)("light");(0,Cn.useEffect)(()=>{let m=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",m,{passive:!0}),()=>window.removeEventListener("scroll",m)},[]),(0,Cn.useEffect)(()=>{let m=localStorage.getItem("theme")||"light";p(m),document.documentElement.setAttribute("class",m)},[]);let h=()=>{let m=Cl[(Cl.indexOf(c)+1)%Cl.length];p(m),document.documentElement.setAttribute("class",m),localStorage.setItem("theme",m)};return(0,Sn.jsx)(Sn.Fragment,{children:(0,Sn.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${o||_R?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,Sn.jsx)("nav",{className:Ft("backdrop-blur-sm text-white p-0",s&&"hidden"),children:(0,Sn.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,Sn.jsx)(xi,{logoDark:t,logoLight:e,mobile:!0}),(0,Sn.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,Sn.jsxs)("button",{type:"button",onClick:()=>l(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,Sn.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Sn.jsx)(Ma.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]}),(0,Sn.jsx)("button",{className:"fixed right-16 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",onClick:h,children:(0,Sn.jsxs)("div",{className:"relative",children:[(0,Sn.jsx)(Da.Sun,{className:"absolute h-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Sn.jsx)(Da.Moon,{className:"absoulte h-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,Sn.jsxs)(Kn.Dialog,{open:s,onClose:l,className:"lg:hidden",children:[(0,Sn.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Sn.jsxs)(Kn.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Sn.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Sn.jsx)(xi,{logoDark:t,logoLight:e,mobile:!0}),(0,Sn.jsxs)("button",{type:"button",onClick:()=>l(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,Sn.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Sn.jsx)(Ma.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Sn.jsx)("div",{className:"mt-6 flow-root",children:(0,Sn.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,Sn.jsx)("div",{className:"space-y-2 px-2 py-6",children:r&&r.map(m=>(0,Sn.jsx)(SS,{...m},m.name))})})})]})]})]})})}function SS({name:e,items:t,actions:r,href:_R}){return!t&&_R?(0,Sn.jsx)("a",{href:_R,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,Sn.jsxs)(Kn.Disclosure,{as:"div",className:"-mx-3",children:[(0,Sn.jsx)(Kn.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,Sn.jsx)(Kn.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(o=>(0,Sn.jsx)(Kn.DisclosureButton,{as:"a",href:o.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:o.name},o.name))})]})}function lf({logoVideo:e,logoLight:t,logoDark:r,menuItems:_R}){let[o,i]=(0,Cn.useState)(!1),[s,l]=(0,Cn.useState)(!1),[u,d]=(0,Cn.useState)(!1),c=()=>{let h=document.getElementById("next-section");h&&h.scrollIntoView({behavior:"smooth"})};return(0,Cn.useEffect)(()=>{let h=()=>{window.scrollY>100?(l(!0),d(!1)):(l(!1),d(!0))};return window.addEventListener("scroll",h,{passive:!0}),()=>window.removeEventListener("scroll",h)},[]),(0,Cn.useEffect)(()=>{let h=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",h,{passive:!0}),()=>window.removeEventListener("scroll",h)},[]),(0,Sn.jsxs)("div",{className:"relative h-screen",children:[(0,Sn.jsxs)("div",{className:"absolute inset-0 w-full h-screen overflow-hidden",children:[(0,Sn.jsxs)("video",{className:"object-cover w-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Sn.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Sn.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!o&&(0,Sn.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{d(!u)},children:u?(0,Sn.jsx)(Da.X,{className:"w-6 h-6 text-white"}):(0,Sn.jsx)(Da.Menu,{className:"w-6 h-6 text-white"})}),(0,Sn.jsxs)("div",{className:"fixed top-0 left-0 right-0 z-50",children:[(0,Sn.jsx)(of,{isMenuOpen:o,logoLight:t,logoDark:r,menuItems:_R}),(0,Sn.jsx)(af,{isMenuOpen:!0,logoLight:t,logoDark:r,menuItems:_R})]}),(0,Sn.jsx)("div",{className:`fixed top-4 left-4 z-50 transition-all duration-300 ${s||u?"opacity-0":"opacity-100"}`}),(0,Sn.jsxs)("div",{className:"absolute inset-0 h-full z-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,Sn.jsx)(sf.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:"h-auto w-auto mt-8 hidden lg:block"}),(0,Sn.jsxs)("div",{className:"h-full flex flex-col items-center justify-center",children:[(0,Sn.jsx)("h1",{className:"text-4xl font-bold pt-auto mb-4",children:"We are Cortex Reply."}),(0,Sn.jsx)("p",{className:"text-2xl mb-8 max-w-2xl",children:"Efficiency through technology."})]}),(0,Sn.jsx)("div",{className:"flex justify-center items-center w-full mb-8",children:(0,Sn.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:c,children:(0,Sn.jsx)(Da.ChevronDown,{size:64})})})]})]})}var uf="../../cortex-reply-bw-TFX4Q54O.png";var cf="../../cortex-reply-light-27IMI3G7.png";var df="../../cortex-reply-dark-XPAJJJYY.png";function qa({...e}){return(0,Sn.jsxs)("div",{className:"relative",children:[(0,Sn.jsx)("div",{className:"h-screen relative overflow-hidden",children:(0,Sn.jsx)(lf,{...e.header,logoVideo:uf,logoLight:cf,logoDark:df})}),(0,Sn.jsxs)("div",{id:"next-section",className:"mt-16 pt-16 min-h-screen",children:[" ",(0,Sn.jsx)("div",{className:"container py-8",children:(0,Sn.jsxs)("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[(0,Sn.jsx)("div",{className:"lg:col-span-2",children:e.children}),(0,Sn.jsxs)("div",{className:"space-y-6",children:[(0,Sn.jsxs)(Ra,{children:[(0,Sn.jsx)(xa,{children:(0,Sn.jsx)(Oa,{children:"Quick Actions"})}),(0,Sn.jsxs)(Pa,{children:[(0,Sn.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Get started with your first action in just a few clicks."}),(0,Sn.jsx)(wl,{className:"w-full",children:"Create New"})]})]}),(0,Sn.jsxs)(Ra,{children:[(0,Sn.jsx)(xa,{children:(0,Sn.jsx)(Oa,{children:"Resources"})}),(0,Sn.jsx)(Pa,{children:(0,Sn.jsxs)("nav",{className:"flex flex-col space-y-2",children:[(0,Sn.jsxs)("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["User Guide",(0,Sn.jsx)(Da.ExternalLink,{className:"ml-1 h-3 w-3"})]}),(0,Sn.jsxs)("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["API Documentation",(0,Sn.jsx)(Da.ExternalLink,{className:"ml-1 h-3 w-3"})]}),(0,Sn.jsxs)("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["View Pricing Details",(0,Sn.jsx)(Da.ExternalLink,{className:"ml-1 h-3 w-3"})]})]})})]})]})]})})]})]})}var ml=Gn(ow());var P6=()=>(0,Sn.jsx)(Ti,{iconName:"github",size:"4x",type:"brands"});var N6=()=>(0,Sn.jsx)(Ti,{iconName:"people-sharing",size:"4x",type:"kit"}),M6=()=>(0,Sn.jsx)(Ti,{iconName:"cloud-network-sharing",size:"4x",type:"kit"}),I6=()=>(0,Sn.jsx)(Ti,{iconName:"development",size:"4x",type:"kit"}),D6={title:"Pages/LandingPage",component:qa,decorators:[e=>(0,Sn.jsx)("div",{className:"bg-sidebar",children:(0,Sn.jsx)(e,{})})]},q6=e=>(0,Sn.jsx)(qa,{...e}),Aa={render:q6,args:{title:"Storage Service",section:"Storage",description:"A scalable object storage service that offers industry-leading performance, security, and availability.",children:(0,Sn.jsxs)("div",{className:"prose max-w-none",children:[(0,Sn.jsx)("h2",{children:"How it works"}),(0,Sn.jsx)("p",{children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}),(0,Sn.jsx)("div",{className:"aspect-video overflow-hidden rounded-lg bg-slate-100",children:(0,Sn.jsx)("div",{className:"flex h-full items-center justify-center",children:"Video Placeholder"})})]}),header:{menuItems:[{name:"Documentation",items:[{name:"Platforms & Services",description:"Cloud services",href:"#",icon:M6},{name:"Solutions & Propositions",description:"Solutions that we have built",href:"#",icon:N6},{name:"Products",description:"Products that we sell",href:"#",icon:I6}]},{name:"Resources",items:[{name:"Documentation",href:"#",icon:Ma.ChartPieIcon},{name:"API Reference",href:"#",icon:Ma.CursorArrowRaysIcon},{name:"Github",href:"#",icon:P6}],actions:[{name:"Watch demo",href:"#",icon:Jp.PlayCircleIcon},{name:"Contact sales",href:"#",icon:Jp.PhoneIcon},{name:"View all products",href:"#",icon:Jp.RectangleGroupIcon}]},{name:"Intranet",href:"#"}]},sidebarRight:{tableOfContents:[{title:"Getting Started",url:"#",links:[{title:"Installation",url:"#",isActive:!0},{title:"Project Structure",url:"#"}]},{title:"Building Your Application",url:"#",links:[{title:"Routing",url:"#",isDraft:!0},{title:"Data Fetching",url:"#"},{title:"Rendering",url:"#"},{title:"Caching",url:"#"},{title:"Styling",url:"#"},{title:"Optimizing",url:"#"},{title:"Configuring",url:"#"},{title:"Testing",url:"#"},{title:"Authentication",url:"#"},{title:"Deploying",url:"#"},{title:"Upgrading",url:"#"},{title:"Examples",url:"#"}]},{title:"API Reference",url:"#",links:[{title:"Components",url:"#"},{title:"File Conventions",url:"#"},{title:"Functions",url:"#"},{title:"next.config.js Options",url:"#"},{title:"CLI",url:"#"},{title:"Edge Runtime",url:"#"}]},{title:"Architecture",url:"#",links:[{title:"Accessibility",url:"#"},{title:"Fast Refresh",url:"#"},{title:"Next.js Compiler",url:"#"},{title:"Supported Browsers",url:"#"},{title:"Turbopack",url:"#"}]},{title:"Community",url:"#",links:[{title:"Contribution Guide",url:"#"}]}],relatedContent:{knowledge:[{label:"AWS Risk Assessment Terraform Module",url:"/knowledge/terraform_risk_assessment_AWS/_index.md",type:"published"},{label:"AWS Airview CCF Terraform Module",url:"/knowledge/terraform_aws_airview_ccf/_index.md",type:"note"}],services:[{label:"AWS Account Vending Machine",url:"/services/aws_account_vending_machine/_index.md",type:"published"},{label:"AWS Beanstalk",url:"/services/aws_beanstalk/_index.md",type:"draft"},{label:"AWS Airwalk Network Firewall Terraform Module",url:"/services/aws_vpc/terraform-aws-airwalk-module-networkfirewall.md",type:"published"},{label:"AWS WAF and Shield",url:"/services/aws_waf_and_shield/_index.md",type:"published"}]},onAddDocument:(0,ml.fn)(),onEditDocument:(0,ml.fn)(),onPrintDocument:(0,ml.fn)()}}},j6={args:{...Aa.args,hero:{type:"lowImpact",children:(0,Sn.jsx)("h1",{className:"text-4xl font-bold",children:"Low Impact Hero"})},heroBackgroundImage:"stock1.jpg?height=400&width=800"}},B6={args:{...Aa.args,hero:{type:"mediumImpact",media:"stock1.jpg?height=400&width=800",children:(0,Sn.jsx)("h1",{className:"text-4xl font-bold",children:"Medium Impact Hero"})},heroBackgroundImage:"stock1.jpg?height=400&width=800"}},F6={args:{...Aa.args,hero:{type:"highImpact",children:(0,Sn.jsx)("h1",{className:"text-4xl font-bold",children:"High Impact Hero"}),media:"stock1.jpg?height=400&width=800"},heroBackgroundImage:"stock1.jpg?height=400&width=800"}},k6={args:{...Aa.args,hero:{type:"highImpact",children:(0,Sn.jsx)("h1",{className:"text-4xl font-bold",children:"Post Hero"}),media:"stock1.jpg?height=400&width=800"},media:"stock1.jpg?height=400&width=800"}};0&&(module.exports={Default,HighImpactHero,LowImpactHero,MediumImpactHero,PostHero});
439
+ `),Reflect.get(e,t,r)}});var{buildQueries:l9,configure:u9,createEvent:c9,fireEvent:d9,findAllByAltText:p9,findAllByDisplayValue:f9,findAllByLabelText:h9,findAllByPlaceholderText:m9,findAllByRole:g9,findAllByTestId:y9,findAllByText:b9,findAllByTitle:v9,findByAltText:E9,findByDisplayValue:_9,findByLabelText:w9,findByPlaceholderText:S9,findByRole:C9,findByTestId:A9,findByText:T9,findByTitle:R9,getAllByAltText:x9,getAllByDisplayValue:O9,getAllByLabelText:P9,getAllByPlaceholderText:N9,getAllByRole:M9,getAllByTestId:I9,getAllByText:D9,getAllByTitle:q9,getByAltText:j9,getByDisplayValue:B9,getByLabelText:F9,getByPlaceholderText:k9,getByRole:L9,getByTestId:$9,getByText:U9,getByTitle:H9,getConfig:z9,getDefaultNormalizer:V9,getElementError:G9,getNodeText:W9,getQueriesForElement:Y9,getRoles:K9,getSuggestedQuery:J9,isInaccessible:X9,logDOM:Q9,logRoles:Z9,prettyDOM:e6,queries:t6,queryAllByAltText:r6,queryAllByAttribute:n6,queryAllByDisplayValue:o6,queryAllByLabelText:i6,queryAllByPlaceholderText:a6,queryAllByRole:s6,queryAllByTestId:l6,queryAllByText:u6,queryAllByTitle:c6,queryByAltText:d6,queryByAttribute:p6,queryByDisplayValue:f6,queryByLabelText:h6,queryByPlaceholderText:m6,queryByRole:g6,queryByTestId:y6,queryByText:b6,queryByTitle:v6,queryHelpers:E6,screen:_6,waitFor:w6,waitForElementToBeRemoved:S6,within:nw,prettyFormat:C6}=pd,{userEvent:A6}=(0,rw.instrument)({userEvent:o9},{intercept:!0}),{expect:T6}=(0,FD.instrument)({expect:z1},{getKeys:(e,t)=>{let r=["assert","__methods","__flags","_obj"];if(e.constructor===F){let _R=Object.keys(Object.getPrototypeOf(e)).filter(o=>!r.includes(o));return t>2?_R:[..._R,"not"]}return Object.keys(e)},intercept:e=>e!=="expect"}),R6=({parameters:e})=>{var t,r,_R;((t=e==null?void 0:e.test)==null?void 0:t.mockReset)===!0?K1():((r=e==null?void 0:e.test)==null?void 0:r.clearMocks)===!0?Y1():((_R=e==null?void 0:e.test)==null?void 0:_R.restoreMocks)!==!1&&J1()},Fs=(e,t=0,r)=>{var _R;if(t>5||e==null)return e;if(fp(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let o=G1(e);return r&&o.mockName(r),o}if(Array.isArray(e))return t++,e.map(o=>Fs(o,t));if(typeof e=="object"&&e.constructor===Object){t++;for(let[o,i]of Object.entries(e))(_R=Object.getOwnPropertyDescriptor(e,o))!=null&&_R.writable&&(e[o]=Fs(i,t,o));return e}return e},x6=({initialArgs:e})=>{Fs(e)},O6=e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=nw(e.canvasElement))};d0.global.__STORYBOOK_TEST_LOADERS__=[R6,x6,O6];d0.global.__STORYBOOK_TEST_ON_MOCK_CALL__=V1});var L6={};Lw(L6,{Default:()=>Aa,HighImpactHero:()=>F6,LowImpactHero:()=>j6,MediumImpactHero:()=>B6,PostHero:()=>k6,default:()=>D6});module.exports=$w(L6);var wn=Gn(require("react"));var zp=require("clsx");var _l="-",Uw=e=>{let t=zw(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:_R}=e;return{getClassGroupId:s=>{let l=s.split(_l);return l[0]===""&&l.length!==1&&l.shift(),Fp(l,t)||Hw(s)},getConflictingClassGroupIds:(s,l)=>{let u=r[s]||[];return l&&_R[s]?[...u,..._R[s]]:u}}},Fp=(e,t)=>{var s;if(e.length===0)return t.classGroupId;let r=e[0],_R=t.nextPart.get(r),o=_R?Fp(e.slice(1),_R):void 0;if(o)return o;if(t.validators.length===0)return;let i=e.join(_l);return(s=t.validators.find(({validator:l})=>l(i)))==null?void 0:s.classGroupId},jp=/^\[(.+)\]$/,Hw=e=>{if(jp.test(e)){let t=jp.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},zw=e=>{let{theme:t,prefix:r}=e,_R={nextPart:new Map,validators:[]};return Gw(Object.entries(e.classGroups),r).forEach(([i,s])=>{El(s,_R,i,t)}),_R},El=(e,t,r,_R)=>{e.forEach(o=>{if(typeof o=="string"){let i=o===""?t:Bp(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(Vw(o)){El(o(_R),t,r,_R);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{El(s,Bp(t,i),r,_R)})})},Bp=(e,t)=>{let r=e;return t.split(_l).forEach(_R=>{r.nextPart.has(_R)||r.nextPart.set(_R,{nextPart:new Map,validators:[]}),r=r.nextPart.get(_R)}),r},Vw=e=>e.isThemeGetter,Gw=(e,t)=>t?e.map(([r,_R])=>{let o=_R.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[t+s,l])):i);return[r,o]}):e,Ww=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,_R=new Map,o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,_R=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=_R.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},kp="!",Yw=e=>{let{separator:t,experimentalParseClassName:r}=e,_R=t.length===1,o=t[0],i=t.length,s=l=>{let u=[],d=0,c=0,p;for(let b=0;b<l.length;b++){let E=l[b];if(d===0){if(E===o&&(_R||l.slice(b,b+i)===t)){u.push(l.slice(c,b)),c=b+i;continue}if(E==="/"){p=b;continue}}E==="["?d++:E==="]"&&d--}let h=u.length===0?l:l.substring(c),m=h.startsWith(kp),g=m?h.substring(1):h,y=p&&p>c?p-c:void 0;return{modifiers:u,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:y}};return r?l=>r({className:l,parseClassName:s}):s},Kw=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(_R=>{_R[0]==="["?(t.push(...r.sort(),_R),r=[]):r.push(_R)}),t.push(...r.sort()),t},Jw=e=>({cache:Ww(e.cacheSize),parseClassName:Yw(e),...Uw(e)}),Xw=/\s+/,Qw=(e,t)=>{let{parseClassName:r,getClassGroupId:_R,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(Xw),l="";for(let u=s.length-1;u>=0;u-=1){let d=s[u],{modifiers:c,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:m}=r(d),g=!!m,y=_R(g?h.substring(0,m):h);if(!y){if(!g){l=d+(l.length>0?" "+l:l);continue}if(y=_R(h),!y){l=d+(l.length>0?" "+l:l);continue}g=!1}let b=Kw(c).join(":"),E=p?b+kp:b,_=E+y;if(i.includes(_))continue;i.push(_);let O=o(y,g);for(let C=0;C<O.length;++C){let w=O[C];i.push(E+w)}l=d+(l.length>0?" "+l:l)}return l};function Zw(){let e=0,t,r,_R="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Lp(t))&&(_R&&(_R+=" "),_R+=r);return _R}var Lp=e=>{if(typeof e=="string")return e;let t,r="";for(let _R=0;_R<e.length;_R++)e[_R]&&(t=Lp(e[_R]))&&(r&&(r+=" "),r+=t);return r};function eS(e,...t){let r,_R,o,i=s;function s(u){let d=t.reduce((c,p)=>p(c),e());return r=Jw(d),_R=r.cache.get,o=r.cache.set,i=l,l(u)}function l(u){let d=_R(u);if(d)return d;let c=Qw(u,r);return o(u,c),c}return function(){return i(Zw.apply(null,arguments))}}var ft=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},$p=/^\[(?:([a-z-]+):)?(.+)\]$/i,tS=/^\d+\/\d+$/,rS=new Set(["px","full","screen"]),nS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,iS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,aS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qr=e=>Wn(e)||rS.has(e)||tS.test(e),Kr=e=>Yn(e,"length",mS),Wn=e=>!!e&&!Number.isNaN(Number(e)),vl=e=>Yn(e,"number",Wn),Ci=e=>!!e&&Number.isInteger(Number(e)),lS=e=>e.endsWith("%")&&Wn(e.slice(0,-1)),ke=e=>$p.test(e),Jr=e=>nS.test(e),uS=new Set(["length","size","percentage"]),cS=e=>Yn(e,uS,Up),dS=e=>Yn(e,"position",Up),pS=new Set(["image","url"]),fS=e=>Yn(e,pS,yS),hS=e=>Yn(e,"",gS),Ai=()=>!0,Yn=(e,t,r)=>{let _R=$p.exec(e);return _R?_R[1]?typeof t=="string"?_R[1]===t:t.has(_R[1]):r(_R[2]):!1},mS=e=>oS.test(e)&&!iS.test(e),Up=()=>!1,gS=e=>aS.test(e),yS=e=>sS.test(e);var bS=()=>{let e=ft("colors"),t=ft("spacing"),r=ft("blur"),_R=ft("brightness"),o=ft("borderColor"),i=ft("borderRadius"),s=ft("borderSpacing"),l=ft("borderWidth"),u=ft("contrast"),d=ft("grayscale"),c=ft("hueRotate"),p=ft("invert"),h=ft("gap"),m=ft("gradientColorStops"),g=ft("gradientColorStopPositions"),y=ft("inset"),b=ft("margin"),E=ft("opacity"),_=ft("padding"),O=ft("saturate"),C=ft("scale"),w=ft("sepia"),S=ft("skew"),T=ft("space"),A=ft("translate"),N=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto",ke,t],V=()=>[ke,t],J=()=>["",qr,Kr],x=()=>["auto",Wn,ke],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>["start","end","center","between","around","evenly","stretch"],Se=()=>["","0",ke],De=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Oe=()=>[Wn,ke];return{cacheSize:500,separator:":",theme:{colors:[Ai],spacing:[qr,Kr],blur:["none","",Jr,ke],brightness:Oe(),borderColor:[e],borderRadius:["none","","full",Jr,ke],borderSpacing:V(),borderWidth:J(),contrast:Oe(),grayscale:Se(),hueRotate:Oe(),invert:Se(),gap:V(),gradientColorStops:[e],gradientColorStopPositions:[lS,Kr],inset:X(),margin:X(),opacity:Oe(),padding:V(),saturate:Oe(),scale:Oe(),sepia:Se(),skew:Oe(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",ke]}],container:["container"],columns:[{columns:[Jr]}],"break-after":[{"break-after":De()}],"break-before":[{"break-before":De()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...B(),ke]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ci,ke]}],basis:[{basis:X()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ke]}],grow:[{grow:Se()}],shrink:[{shrink:Se()}],order:[{order:["first","last","none",Ci,ke]}],"grid-cols":[{"grid-cols":[Ai]}],"col-start-end":[{col:["auto",{span:["full",Ci,ke]},ke]}],"col-start":[{"col-start":x()}],"col-end":[{"col-end":x()}],"grid-rows":[{"grid-rows":[Ai]}],"row-start-end":[{row:["auto",{span:[Ci,ke]},ke]}],"row-start":[{"row-start":x()}],"row-end":[{"row-end":x()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ke]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ke]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...ce()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ce(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ce(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ke,t]}],"min-w":[{"min-w":[ke,t,"min","max","fit"]}],"max-w":[{"max-w":[ke,t,"none","full","min","max","fit","prose",{screen:[Jr]},Jr]}],h:[{h:[ke,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ke,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ke,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ke,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Jr,Kr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",vl]}],"font-family":[{font:[Ai]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ke]}],"line-clamp":[{"line-clamp":["none",Wn,vl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",qr,ke]}],"list-image":[{"list-image":["none",ke]}],"list-style-type":[{list:["none","disc","decimal",ke]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",qr,Kr]}],"underline-offset":[{"underline-offset":["auto",qr,ke]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ke]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),dS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",cS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fS]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:K()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[qr,ke]}],"outline-w":[{outline:[qr,Kr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[qr,Kr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jr,hS]}],"shadow-color":[{shadow:[Ai]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...fe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":fe()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[_R]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Jr,ke]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[O]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[_R]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[O]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ke]}],duration:[{duration:Oe()}],ease:[{ease:["linear","in","out","in-out",ke]}],delay:[{delay:Oe()}],animate:[{animate:["none","spin","ping","pulse","bounce",ke]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Ci,ke]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ke]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","_R-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ke]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ke]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[qr,Kr,vl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Hp=eS(bS);function Pt(...e){return Hp((0,zp.clsx)(e))}var Sn=require("react/jsx-runtime"),Ra=wn.forwardRef(({className:e,...t},r)=>(0,Sn.jsx)("div",{ref:r,className:Pt("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Ra.displayName="Card";var xa=wn.forwardRef(({className:e,...t},r)=>(0,Sn.jsx)("div",{ref:r,className:Pt("flex flex-col space-y-1.5 p-6",e),...t}));xa.displayName="CardHeader";var Oa=wn.forwardRef(({className:e,...t},r)=>(0,Sn.jsx)("div",{ref:r,className:Pt("font-semibold leading-none tracking-tight",e),...t}));Oa.displayName="CardTitle";var vS=wn.forwardRef(({className:e,...t},r)=>(0,Sn.jsx)("div",{ref:r,className:Pt("text-sm text-muted-foreground",e),...t}));vS.displayName="CardDescription";var Pa=wn.forwardRef(({className:e,...t},r)=>(0,Sn.jsx)("div",{ref:r,className:Pt("p-6 pt-0",e),...t}));Pa.displayName="CardContent";var ES=wn.forwardRef(({className:e,...t},r)=>(0,Sn.jsx)("div",{ref:r,className:Pt("flex items-center p-6 pt-0",e),...t}));ES.displayName="CardFooter";var Vp=require("@radix-ui/react-slot"),Gp=require("class-variance-authority"),Wp=Gn(require("react")),_S=(0,Gp.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),wl=Wp.forwardRef(({asChild:e=!1,className:t,size:r,variant:_R,...o},i)=>(0,Sn.jsx)(e?Vp.Slot:"button",{className:Pt(_S({className:t,size:r,variant:_R})),ref:i,...o}));wl.displayName="Button";var Da=require("lucide-react");var Ti=({type:e="solid",iconName:t="cloud",size:r="lg",className:_R})=>{let o=e.includes("fa-")?e+" ":"fa-"+e+" ",i="fa-"+t,s=_R!=null?_R:"",l=o+i+" fa-"+r+" "+s;return(0,Sn.jsx)("i",{className:l})};var Kn=require("@headlessui/react"),Jp=require("@heroicons/react/20/solid"),wS=({name:e,items:t,actions:r=[],href:_R})=>!t&&_R?(0,Sn.jsx)("a",{href:_R,className:"flex items-center gap-x-1 text-sm font-semibold text-foreground group",children:(0,Sn.jsxs)("span",{className:"relative",children:[e,(0,Sn.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,Sn.jsxs)(Kn.Popover,{children:[(0,Sn.jsxs)(Kn.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,Sn.jsxs)("span",{className:"relative",children:[e,(0,Sn.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,Sn.jsx)(Jp.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Sn.jsxs)(Kn.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Sn.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 z-50",children:t&&t.map(o=>(0,Sn.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Sn.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-lg bg-popover text-foreground group-hover:text-accent transition-transform duration-300 ease-in-out group-hover:scale-90",children:(0,Sn.jsx)(o.icon,{"aria-hidden":"true",size:"6x"})}),(0,Sn.jsxs)("a",{href:o.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[o.name,(0,Sn.jsx)("span",{className:"absolute inset-0"})]}),(0,Sn.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:o.description})]},o.name))}),r.length>0&&(0,Sn.jsx)("div",{className:"bg-gray-50",children:(0,Sn.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Sn.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:r.map(o=>(0,Sn.jsxs)("a",{href:o.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[(0,Sn.jsx)(o.icon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-gray-400"}),o.name]},o.name))})})})]})]}),Xp=wS;var Cn=require("react"),sf=Gn(require("next/image"));function Qp({children:e,isFluid:t=!1,isNoPadding:r=!1,className:_R=""}){let o=Pt("container",t&&"full-width",r&&"no-padding",_R);return(0,Sn.jsx)("div",{className:o,children:e})}var ef=Gn(require("next/link"));function tf({children:e,href:t,openNewTab:r,..._R}){return(0,Sn.jsx)(ef.default,{href:t,target:r?"_blank":"_self",..._R,children:e})}var Sl=Gn(require("next/image"));function xi({logoLight:e,logoDark:t,mobile:r=!1}){return(0,Sn.jsxs)(tf,{href:"/",className:Pt(r?"py-1":"py-2"),children:[(0,Sn.jsx)(Sl.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:r?35:50}}),(0,Sn.jsx)(Sl.default,{className:"logo-dark hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:r?35:50}})]})}function of({isMenuOpen:e,logoLight:t,logoDark:r,menuItems:_R}){let[o,i]=(0,Cn.useState)(!1),[s,l]=(0,Cn.useState)("light"),u=["light","dark"];(0,Cn.useEffect)(()=>{let c=localStorage.getItem("theme")||"light";console.log("storedTheme",c),l(c),document.documentElement.setAttribute("class",c)},[]);let d=()=>{let c=u[(u.indexOf(s)+1)%u.length];l(c),document.documentElement.setAttribute("class",c),localStorage.setItem("theme",c)};return(0,Cn.useEffect)(()=>{let c=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",c,{passive:!0}),()=>window.removeEventListener("scroll",c)},[]),(0,Sn.jsx)(Sn.Fragment,{children:(0,Sn.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${o||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,Sn.jsx)(Qp,{className:"px-0",children:(0,Sn.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-b-xl",children:(0,Sn.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-b-xl border border-t-0 border-accent",children:[(0,Sn.jsx)(xi,{logoDark:r,logoLight:t}),(0,Sn.jsx)(Kn.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:_R&&_R.map(c=>(0,Sn.jsx)(Xp,{...c},c.name))}),(0,Sn.jsx)("div",{className:"flex items-center space-x-4",children:(0,Sn.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full bg-accent/30 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:d,children:(0,Sn.jsxs)("div",{className:"relative",children:[(0,Sn.jsx)(Da.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Sn.jsx)(Da.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var Ma=require("@heroicons/react/24/outline");var Cl=["light","dark"];function af({logoLight:e,logoDark:t,menuItems:r,isMenuOpen:_R=!0}){let[o,i]=(0,Cn.useState)(!1),[s,l]=(0,Cn.useState)(!1),[u,d]=(0,Cn.useState)(!1),[c,p]=(0,Cn.useState)("light");(0,Cn.useEffect)(()=>{let m=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",m,{passive:!0}),()=>window.removeEventListener("scroll",m)},[]),(0,Cn.useEffect)(()=>{let m=localStorage.getItem("theme")||"light";p(m),document.documentElement.setAttribute("class",m)},[]);let h=()=>{let m=Cl[(Cl.indexOf(c)+1)%Cl.length];p(m),document.documentElement.setAttribute("class",m),localStorage.setItem("theme",m)};return(0,Sn.jsx)(Sn.Fragment,{children:(0,Sn.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${o||_R?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,Sn.jsx)("nav",{className:Pt("backdrop-blur-sm text-white p-0",s&&"hidden"),children:(0,Sn.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,Sn.jsx)(xi,{logoDark:t,logoLight:e,mobile:!0}),(0,Sn.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,Sn.jsxs)("button",{type:"button",onClick:()=>l(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,Sn.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Sn.jsx)(Ma.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]}),(0,Sn.jsx)("button",{className:"fixed right-16 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",onClick:h,children:(0,Sn.jsxs)("div",{className:"relative",children:[(0,Sn.jsx)(Da.Sun,{className:"absolute h-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Sn.jsx)(Da.Moon,{className:"absoulte h-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,Sn.jsxs)(Kn.Dialog,{open:s,onClose:l,className:"lg:hidden",children:[(0,Sn.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Sn.jsxs)(Kn.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Sn.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Sn.jsx)(xi,{logoDark:t,logoLight:e,mobile:!0}),(0,Sn.jsxs)("button",{type:"button",onClick:()=>l(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,Sn.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Sn.jsx)(Ma.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Sn.jsx)("div",{className:"mt-6 flow-root",children:(0,Sn.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,Sn.jsx)("div",{className:"space-y-2 px-2 py-6",children:r&&r.map(m=>(0,Sn.jsx)(SS,{...m},m.name))})})})]})]})]})})}function SS({name:e,items:t,actions:r,href:_R}){return!t&&_R?(0,Sn.jsx)("a",{href:_R,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,Sn.jsxs)(Kn.Disclosure,{as:"div",className:"-mx-3",children:[(0,Sn.jsx)(Kn.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,Sn.jsx)(Kn.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(o=>(0,Sn.jsx)(Kn.DisclosureButton,{as:"a",href:o.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:o.name},o.name))})]})}function lf({logoVideo:e,logoLight:t,logoDark:r,menuItems:_R}){let[o,i]=(0,Cn.useState)(!1),[s,l]=(0,Cn.useState)(!1),[u,d]=(0,Cn.useState)(!1),c=()=>{let h=document.getElementById("next-section");h&&h.scrollIntoView({behavior:"smooth"})};return(0,Cn.useEffect)(()=>{let h=()=>{window.scrollY>100?(l(!0),d(!1)):(l(!1),d(!0))};return window.addEventListener("scroll",h,{passive:!0}),()=>window.removeEventListener("scroll",h)},[]),(0,Cn.useEffect)(()=>{let h=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",h,{passive:!0}),()=>window.removeEventListener("scroll",h)},[]),(0,Sn.jsxs)("div",{className:"relative h-screen",children:[(0,Sn.jsxs)("div",{className:"absolute inset-0 w-full h-screen overflow-hidden",children:[(0,Sn.jsxs)("video",{className:"object-cover w-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Sn.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Sn.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!o&&(0,Sn.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{d(!u)},children:u?(0,Sn.jsx)(Da.X,{className:"w-6 h-6 text-white"}):(0,Sn.jsx)(Da.Menu,{className:"w-6 h-6 text-white"})}),(0,Sn.jsxs)("div",{className:"fixed top-0 left-0 right-0 z-50",children:[(0,Sn.jsx)(of,{isMenuOpen:o||u,logoLight:t,logoDark:r,menuItems:_R}),(0,Sn.jsx)(af,{isMenuOpen:!0,logoLight:t,logoDark:r,menuItems:_R})]}),(0,Sn.jsx)("div",{className:`fixed top-4 left-4 z-50 transition-all duration-300 ${s||u?"opacity-0":"opacity-100"}`}),(0,Sn.jsxs)("div",{className:"absolute inset-0 h-full z-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,Sn.jsx)(sf.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:Pt("h-auto w-auto mt-8 hidden lg:block",u&&"lg:hidden")}),(0,Sn.jsxs)("div",{className:"h-full flex flex-col items-center justify-center",children:[(0,Sn.jsx)("h1",{className:"text-6xl font-bold pt-auto mb-12",children:"We are Cortex Reply."}),(0,Sn.jsx)("p",{className:"text-3xl mb-8 max-w-2xl",children:"Efficiency through technology."})]}),(0,Sn.jsx)("div",{className:"flex justify-center items-center w-full mb-8",children:(0,Sn.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:c,children:(0,Sn.jsx)(Da.ChevronDown,{size:64})})})]})]})}var uf="../../cortex-reply-bw-TFX4Q54O.png";var cf="../../cortex-reply-light-27IMI3G7.png";var df="../../cortex-reply-dark-XPAJJJYY.png";function qa({...e}){return(0,Sn.jsxs)("div",{className:"relative",children:[(0,Sn.jsx)("div",{className:"h-screen relative overflow-hidden",children:(0,Sn.jsx)(lf,{...e.header,logoVideo:uf,logoLight:cf,logoDark:df})}),(0,Sn.jsxs)("div",{id:"next-section",className:"mt-16 pt-16 min-h-screen",children:[" ",(0,Sn.jsx)("div",{className:"container py-8",children:(0,Sn.jsxs)("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[(0,Sn.jsx)("div",{className:"lg:col-span-2",children:e.children}),(0,Sn.jsxs)("div",{className:"space-y-6",children:[(0,Sn.jsxs)(Ra,{children:[(0,Sn.jsx)(xa,{children:(0,Sn.jsx)(Oa,{children:"Quick Actions"})}),(0,Sn.jsxs)(Pa,{children:[(0,Sn.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Get started with your first action in just a few clicks."}),(0,Sn.jsx)(wl,{className:"w-full",children:"Create New"})]})]}),(0,Sn.jsxs)(Ra,{children:[(0,Sn.jsx)(xa,{children:(0,Sn.jsx)(Oa,{children:"Resources"})}),(0,Sn.jsx)(Pa,{children:(0,Sn.jsxs)("nav",{className:"flex flex-col space-y-2",children:[(0,Sn.jsxs)("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["User Guide",(0,Sn.jsx)(Da.ExternalLink,{className:"ml-1 h-3 w-3"})]}),(0,Sn.jsxs)("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["API Documentation",(0,Sn.jsx)(Da.ExternalLink,{className:"ml-1 h-3 w-3"})]}),(0,Sn.jsxs)("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["View Pricing Details",(0,Sn.jsx)(Da.ExternalLink,{className:"ml-1 h-3 w-3"})]})]})})]})]})]})})]})]})}var ml=Gn(ow());var P6=()=>(0,Sn.jsx)(Ti,{iconName:"github",size:"4x",type:"brands"});var N6=()=>(0,Sn.jsx)(Ti,{iconName:"people-sharing",size:"4x",type:"kit"}),M6=()=>(0,Sn.jsx)(Ti,{iconName:"cloud-network-sharing",size:"4x",type:"kit"}),I6=()=>(0,Sn.jsx)(Ti,{iconName:"development",size:"4x",type:"kit"}),D6={title:"Pages/LandingPage",component:qa,decorators:[e=>(0,Sn.jsx)("div",{className:"bg-sidebar",children:(0,Sn.jsx)(e,{})})]},q6=e=>(0,Sn.jsx)(qa,{...e}),Aa={render:q6,args:{title:"Storage Service",section:"Storage",description:"A scalable object storage service that offers industry-leading performance, security, and availability.",children:(0,Sn.jsxs)("div",{className:"prose max-w-none",children:[(0,Sn.jsx)("h2",{children:"How it works"}),(0,Sn.jsx)("p",{children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}),(0,Sn.jsx)("div",{className:"aspect-video overflow-hidden rounded-lg bg-slate-100",children:(0,Sn.jsx)("div",{className:"flex h-full items-center justify-center",children:"Video Placeholder"})})]}),header:{menuItems:[{name:"Documentation",items:[{name:"Platforms & Services",description:"Cloud services",href:"#",icon:M6},{name:"Solutions & Propositions",description:"Solutions that we have built",href:"#",icon:N6},{name:"Products",description:"Products that we sell",href:"#",icon:I6}]},{name:"Resources",items:[{name:"Documentation",href:"#",icon:Ma.ChartPieIcon},{name:"API Reference",href:"#",icon:Ma.CursorArrowRaysIcon},{name:"Github",href:"#",icon:P6}],actions:[{name:"Watch demo",href:"#",icon:Jp.PlayCircleIcon},{name:"Contact sales",href:"#",icon:Jp.PhoneIcon},{name:"View all products",href:"#",icon:Jp.RectangleGroupIcon}]},{name:"Intranet",href:"#"}]},sidebarRight:{tableOfContents:[{title:"Getting Started",url:"#",links:[{title:"Installation",url:"#",isActive:!0},{title:"Project Structure",url:"#"}]},{title:"Building Your Application",url:"#",links:[{title:"Routing",url:"#",isDraft:!0},{title:"Data Fetching",url:"#"},{title:"Rendering",url:"#"},{title:"Caching",url:"#"},{title:"Styling",url:"#"},{title:"Optimizing",url:"#"},{title:"Configuring",url:"#"},{title:"Testing",url:"#"},{title:"Authentication",url:"#"},{title:"Deploying",url:"#"},{title:"Upgrading",url:"#"},{title:"Examples",url:"#"}]},{title:"API Reference",url:"#",links:[{title:"Components",url:"#"},{title:"File Conventions",url:"#"},{title:"Functions",url:"#"},{title:"next.config.js Options",url:"#"},{title:"CLI",url:"#"},{title:"Edge Runtime",url:"#"}]},{title:"Architecture",url:"#",links:[{title:"Accessibility",url:"#"},{title:"Fast Refresh",url:"#"},{title:"Next.js Compiler",url:"#"},{title:"Supported Browsers",url:"#"},{title:"Turbopack",url:"#"}]},{title:"Community",url:"#",links:[{title:"Contribution Guide",url:"#"}]}],relatedContent:{knowledge:[{label:"AWS Risk Assessment Terraform Module",url:"/knowledge/terraform_risk_assessment_AWS/_index.md",type:"published"},{label:"AWS Airview CCF Terraform Module",url:"/knowledge/terraform_aws_airview_ccf/_index.md",type:"note"}],services:[{label:"AWS Account Vending Machine",url:"/services/aws_account_vending_machine/_index.md",type:"published"},{label:"AWS Beanstalk",url:"/services/aws_beanstalk/_index.md",type:"draft"},{label:"AWS Airwalk Network Firewall Terraform Module",url:"/services/aws_vpc/terraform-aws-airwalk-module-networkfirewall.md",type:"published"},{label:"AWS WAF and Shield",url:"/services/aws_waf_and_shield/_index.md",type:"published"}]},onAddDocument:(0,ml.fn)(),onEditDocument:(0,ml.fn)(),onPrintDocument:(0,ml.fn)()}}},j6={args:{...Aa.args,hero:{type:"lowImpact",children:(0,Sn.jsx)("h1",{className:"text-4xl font-bold",children:"Low Impact Hero"})},heroBackgroundImage:"stock1.jpg?height=400&width=800"}},B6={args:{...Aa.args,hero:{type:"mediumImpact",media:"stock1.jpg?height=400&width=800",children:(0,Sn.jsx)("h1",{className:"text-4xl font-bold",children:"Medium Impact Hero"})},heroBackgroundImage:"stock1.jpg?height=400&width=800"}},F6={args:{...Aa.args,hero:{type:"highImpact",children:(0,Sn.jsx)("h1",{className:"text-4xl font-bold",children:"High Impact Hero"}),media:"stock1.jpg?height=400&width=800"},heroBackgroundImage:"stock1.jpg?height=400&width=800"}},k6={args:{...Aa.args,hero:{type:"highImpact",children:(0,Sn.jsx)("h1",{className:"text-4xl font-bold",children:"Post Hero"}),media:"stock1.jpg?height=400&width=800"},media:"stock1.jpg?height=400&width=800"}};0&&(module.exports={Default,HighImpactHero,LowImpactHero,MediumImpactHero,PostHero});