@aussieljk/forkbook 0.0.1-2 → 0.0.1-21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +35 -53
- package/assets/addon-vitest/templates/vitest.config.4.template.ts +2 -2
- package/assets/browser/favicon-wrapper.svg +4 -4
- package/assets/browser/favicon.svg +1 -1
- package/assets/browser/inter-LICENSE.txt +92 -0
- package/assets/browser/inter-variable-italic.woff2 +0 -0
- package/assets/browser/inter-variable.woff2 +0 -0
- package/assets/browser/mirror-ball.png +0 -0
- package/assets/builder-vite/iframe.html +8 -24
- package/assets/create/rendererAssets/common/Configure.mdx +100 -100
- package/assets/create/rendererAssets/common/button.css +7 -7
- package/assets/create/rendererAssets/common/header.css +6 -6
- package/assets/create/rendererAssets/common/page.css +12 -12
- package/assets/create/templates/react-native/index.expo.js +4 -4
- package/assets/create/templates/react-native/index.js +5 -5
- package/assets/server/base-preview-body.html +32 -32
- package/assets/server/base-preview-head.html +86 -86
- package/assets/server/template.ejs +31 -26
- package/dist/_browser-chunks/{Color-PCLE2J36.js → Color-7FO5YFB5.js} +8 -8
- package/dist/_browser-chunks/{DocsRenderer-JXND3PVQ.js → DocsRenderer-DKXSW2OY.js} +2 -2
- package/dist/_browser-chunks/WithTooltip-QWFSUQZP.js +199 -0
- package/dist/_browser-chunks/{chunk-RBCHTR7C.js → chunk-2ELGJRFZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-PFRNG3UC.js → chunk-2WZWS7GJ.js} +5 -5
- package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-3QNZOMD7.js} +8 -3
- package/dist/_browser-chunks/{chunk-LV5PIKV4.js → chunk-3QPZOXB7.js} +6 -8
- package/dist/_browser-chunks/{chunk-ODVJ3XZJ.js → chunk-4BOJAE7P.js} +14 -10
- package/dist/_browser-chunks/{chunk-2MEPHP35.js → chunk-4KIQBRD2.js} +1 -1
- package/dist/_browser-chunks/{chunk-KQ7CRO2B.js → chunk-5Z3MWCFR.js} +12 -12
- package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/{chunk-W5M6NPS3.js → chunk-6SL45YM3.js} +15 -18
- package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-AN2LJG5I.js} +1 -1
- package/dist/_browser-chunks/{chunk-P6PK47TQ.js → chunk-BLCZ3C5M.js} +48 -83
- package/dist/_browser-chunks/{chunk-RSPAQWVJ.js → chunk-BNP234B4.js} +1 -1
- package/dist/_browser-chunks/{chunk-JYVGARBG.js → chunk-BSYOFSF6.js} +770 -720
- package/dist/_browser-chunks/{chunk-JSBKXXXF.js → chunk-DHTLVXAL.js} +38 -45
- package/dist/_browser-chunks/{chunk-GNZY6LOW.js → chunk-DISGPOF4.js} +54 -51
- package/dist/_browser-chunks/chunk-DNJ3OSLB.js +6021 -0
- package/dist/_browser-chunks/{chunk-6SXYJQST.js → chunk-E6QKKKLO.js} +21 -6
- package/dist/_browser-chunks/{chunk-FJGWSWL5.js → chunk-EBSOKHFG.js} +10 -4
- package/dist/_browser-chunks/{chunk-CFAOWGL7.js → chunk-ECMVTOVD.js} +1 -1
- package/dist/_browser-chunks/{chunk-CFWWCCZV.js → chunk-ENHFQXYS.js} +9 -7
- package/dist/_browser-chunks/{chunk-YTIT5NA5.js → chunk-EW2M3URL.js} +91 -84
- package/dist/_browser-chunks/chunk-FAOLWWRN.js +20 -0
- package/dist/_browser-chunks/{chunk-MFMDGWP6.js → chunk-FCULT3AE.js} +3 -3
- package/dist/_browser-chunks/{chunk-46Z7NGAS.js → chunk-HX443LKV.js} +1 -1
- package/dist/_browser-chunks/chunk-HZFHNYRC.js +53 -0
- package/dist/_browser-chunks/chunk-IFADVEQE.js +669 -0
- package/dist/_browser-chunks/{chunk-OQWFVDIN.js → chunk-KQJ4T6JL.js} +31 -25
- package/dist/_browser-chunks/{chunk-RNTIV5CE.js → chunk-LYYXDWR2.js} +9 -9
- package/dist/_browser-chunks/{chunk-V5M7Q4HT.js → chunk-MJIDTL3X.js} +4 -14
- package/dist/_browser-chunks/{chunk-V2G23FV7.js → chunk-N5WQGLI7.js} +1 -1
- package/dist/_browser-chunks/{chunk-EIYAKDGP.js → chunk-NA4ITZTK.js} +127 -105
- package/dist/_browser-chunks/{chunk-RMYQ3QN3.js → chunk-NK5SGJNG.js} +22 -17
- package/dist/_browser-chunks/chunk-NPNIBOPF.js +18 -0
- package/dist/_browser-chunks/{chunk-YEKO6BHJ.js → chunk-ONTSNQON.js} +1 -1
- package/dist/_browser-chunks/chunk-OOETBSA7.js +502 -0
- package/dist/_browser-chunks/chunk-PFYL47RM.js +45 -0
- package/dist/_browser-chunks/{chunk-OD6IBQCC.js → chunk-PQRPDA4U.js} +5 -5
- package/dist/_browser-chunks/{chunk-2JDQ35OA.js → chunk-PU7D2WDP.js} +0 -11
- package/dist/_browser-chunks/chunk-PZQRXPVR.js +21 -0
- package/dist/_browser-chunks/{chunk-5WMXI5GW.js → chunk-QFO2B4X2.js} +31 -28
- package/dist/_browser-chunks/{chunk-2JT76G3E.js → chunk-SBOQ4QPY.js} +15 -15
- package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
- package/dist/_browser-chunks/{chunk-5I7E4GMO.js → chunk-WY2LUGOH.js} +1 -1
- package/dist/_browser-chunks/chunk-XKTORVEQ.js +255 -0
- package/dist/_browser-chunks/chunk-XSVERCGB.js +91 -0
- package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-XTQCLWVH.js} +325 -1635
- package/dist/_browser-chunks/{chunk-MDOL7KML.js → chunk-YJO5BK52.js} +7 -3
- package/dist/_browser-chunks/{chunk-66OCZ54D.js → chunk-ZF37BMDS.js} +6 -2
- package/dist/_browser-chunks/{chunk-C3D4HEFY.js → chunk-ZIZCGWCG.js} +348 -170
- package/dist/_browser-chunks/{matchers-YLBYSYAF.js → matchers-2HVLNCVO.js} +4 -4
- package/dist/_browser-chunks/{react-dom-client-4OHE3QDV.js → react-dom-client-SLBUX3U3.js} +1 -1
- package/dist/_node-chunks/{attached-runtime-I2G4WLJI.js → attached-runtime-UC2CB4GH.js} +37 -35
- package/dist/_node-chunks/builder-manager-S5UUKVOR.js +1174 -0
- package/dist/_node-chunks/{chunk-OUW6R7C3.js → chunk-3335ZZIO.js} +6 -6
- package/dist/_node-chunks/{chunk-V2DY426G.js → chunk-3D6N6P2R.js} +283 -306
- package/dist/_node-chunks/{chunk-3Y6AAY5H.js → chunk-3ER54PQM.js} +8 -8
- package/dist/_node-chunks/{chunk-DC7DKR5K.js → chunk-3H5C52QU.js} +6 -6
- package/dist/_node-chunks/chunk-3UI3TQ7R.js +28 -0
- package/dist/_node-chunks/{chunk-Q7QNUM5H.js → chunk-4C3ACAHV.js} +6 -6
- package/dist/_node-chunks/{chunk-XGIUVY52.js → chunk-4UTCKJEQ.js} +7 -7
- package/dist/_node-chunks/chunk-53A5CYDK.js +572 -0
- package/dist/_node-chunks/{chunk-4FEANXWU.js → chunk-53PSBDRK.js} +140 -118
- package/dist/_node-chunks/{chunk-3W7F2B7P.js → chunk-54MO4QLB.js} +6 -6
- package/dist/_node-chunks/{chunk-7GUDZVRQ.js → chunk-5CJMRQZ6.js} +6 -6
- package/dist/_node-chunks/chunk-5HOM7B4V.js +20 -0
- package/dist/_node-chunks/{chunk-BSKFCWQD.js → chunk-5QG6AXK4.js} +7 -7
- package/dist/_node-chunks/chunk-67XVZZUO.js +405 -0
- package/dist/_node-chunks/{chunk-EWOX7HPJ.js → chunk-6HQJJDLH.js} +6 -6
- package/dist/_node-chunks/chunk-6IPHWCFI.js +29 -0
- package/dist/_node-chunks/{chunk-NDWKJ4CL.js → chunk-6XYOFBRD.js} +98 -129
- package/dist/_node-chunks/{chunk-TNJIXE37.js → chunk-7IAYDGYH.js} +6 -6
- package/dist/_node-chunks/{chunk-ICPBH3E7.js → chunk-7P67PUU2.js} +7 -7
- package/dist/_node-chunks/{chunk-XLP2ZKXV.js → chunk-AAK5BBF2.js} +7 -7
- package/dist/_node-chunks/{chunk-CCOTJ4FC.js → chunk-BGUVBOOU.js} +10 -10
- package/dist/_node-chunks/chunk-BNGBOASQ.js +25 -0
- package/dist/_node-chunks/{chunk-VLOXOXXE.js → chunk-BWZWCVVH.js} +9 -9
- package/dist/_node-chunks/{chunk-SWO5CDYU.js → chunk-C6HQ6WLU.js} +8 -8
- package/dist/_node-chunks/chunk-CJHRH777.js +20 -0
- package/dist/_node-chunks/{chunk-IK4FGZLR.js → chunk-COEW4ORP.js} +6 -6
- package/dist/_node-chunks/{chunk-JGGFYIG5.js → chunk-CVHDAEDZ.js} +7 -7
- package/dist/_node-chunks/{chunk-YCMRA6RX.js → chunk-CXGOQNGI.js} +7 -7
- package/dist/_node-chunks/chunk-D4XTQWRM.js +11 -0
- package/dist/_node-chunks/{chunk-BS2WMZMR.js → chunk-D5V6CZ6U.js} +7 -7
- package/dist/_node-chunks/{chunk-XHL2LVBM.js → chunk-DCTXJ4TT.js} +14 -16
- package/dist/_node-chunks/{chunk-WCULS5TP.js → chunk-DP6WFY3D.js} +7 -7
- package/dist/_node-chunks/chunk-E23GDXG6.js +271 -0
- package/dist/_node-chunks/{chunk-GEFQN7K3.js → chunk-E3ZFMURC.js} +8 -8
- package/dist/_node-chunks/{chunk-WZJF2OUH.js → chunk-E6O3NA44.js} +7 -7
- package/dist/_node-chunks/{chunk-RWFIFGO5.js → chunk-ECS3WDOU.js} +8 -8
- package/dist/_node-chunks/{chunk-XI6B6P47.js → chunk-FB5YJWOH.js} +6 -6
- package/dist/_node-chunks/{chunk-3SDUYDXH.js → chunk-FCK5FM6D.js} +7 -7
- package/dist/_node-chunks/{chunk-6YKBRP72.js → chunk-FJUGPEJK.js} +6 -6
- package/dist/_node-chunks/{chunk-TFEWM4E3.js → chunk-FPYXI76E.js} +75 -75
- package/dist/_node-chunks/chunk-GEWVOY3F.js +62 -0
- package/dist/_node-chunks/{chunk-ET7PWEO7.js → chunk-GHZ44BFB.js} +14 -13
- package/dist/_node-chunks/{chunk-LXBD4UL4.js → chunk-GJMFISS3.js} +8 -8
- package/dist/_node-chunks/{chunk-FK7KGTV7.js → chunk-GK2Y2RFX.js} +7 -7
- package/dist/_node-chunks/{chunk-FPZB5OI7.js → chunk-GP6YBA2R.js} +6 -6
- package/dist/_node-chunks/{chunk-34EO2PUT.js → chunk-GQUFGJ4D.js} +6 -6
- package/dist/_node-chunks/{chunk-HMP2G23X.js → chunk-H4CRQDTK.js} +6 -6
- package/dist/_node-chunks/{chunk-2BUPBPFB.js → chunk-HCDG54OG.js} +7 -7
- package/dist/_node-chunks/{chunk-U5W53R2J.js → chunk-HGJMP4EI.js} +506 -494
- package/dist/_node-chunks/chunk-HSX6BDBA.js +18 -0
- package/dist/_node-chunks/{chunk-UMUBKI6E.js → chunk-IPFPWMT5.js} +1320 -437
- package/dist/_node-chunks/chunk-KRIOC4WF.js +281 -0
- package/dist/_node-chunks/{chunk-TINO74G5.js → chunk-KUL2MJ6N.js} +6 -6
- package/dist/_node-chunks/{chunk-LO56I6E2.js → chunk-LUR6QTYB.js} +10 -10
- package/dist/_node-chunks/{chunk-YZFWBA5L.js → chunk-LYS7TI35.js} +368 -321
- package/dist/_node-chunks/chunk-MDTXL6SN.js +2613 -0
- package/dist/_node-chunks/{chunk-LCK4ZQKG.js → chunk-MIIPXT4S.js} +9 -9
- package/dist/_node-chunks/chunk-MLWGAA2I.js +138 -0
- package/dist/_node-chunks/{chunk-42UWAGPW.js → chunk-MWUGCUB5.js} +52 -22
- package/dist/_node-chunks/{chunk-JDXXX6LB.js → chunk-MX5MVLEK.js} +6 -6
- package/dist/_node-chunks/chunk-N44UIGCO.js +47 -0
- package/dist/_node-chunks/{chunk-OISX4AGQ.js → chunk-NP2JHOFY.js} +37 -31
- package/dist/_node-chunks/chunk-OMNGOPNG.js +52 -0
- package/dist/_node-chunks/{chunk-ZWBCQ4MJ.js → chunk-OO2GTHUF.js} +9 -17
- package/dist/_node-chunks/{chunk-F3ZFKBHY.js → chunk-PC57BIYZ.js} +8 -8
- package/dist/_node-chunks/chunk-PHWMAF5C.js +49 -0
- package/dist/_node-chunks/{chunk-B5J7Q7J4.js → chunk-PLIQQETC.js} +7 -7
- package/dist/_node-chunks/{chunk-H32DYT6P.js → chunk-QMYCIS2U.js} +6 -6
- package/dist/_node-chunks/{chunk-DUR55DJJ.js → chunk-QZIDK3GX.js} +89 -71
- package/dist/_node-chunks/{chunk-UVINFLGY.js → chunk-ROJ6RSIJ.js} +7 -7
- package/dist/_node-chunks/{chunk-E6YESGLX.js → chunk-S2NB6QEG.js} +542 -1049
- package/dist/_node-chunks/{chunk-TWI4GVH7.js → chunk-S6VCOSQS.js} +6 -6
- package/dist/_node-chunks/{chunk-KISMCCP5.js → chunk-SEVOOOB2.js} +474 -479
- package/dist/_node-chunks/{chunk-JZOO7GGC.js → chunk-SFT6ZAVN.js} +6 -6
- package/dist/_node-chunks/{chunk-RRN2V55B.js → chunk-SXBUK4F6.js} +7 -7
- package/dist/_node-chunks/{chunk-WNZ2UMFM.js → chunk-TGF6Q66I.js} +15 -9
- package/dist/_node-chunks/{chunk-NIBT7XDZ.js → chunk-TGFHWGGT.js} +9 -6
- package/dist/_node-chunks/chunk-TTLSBLPQ.js +620 -0
- package/dist/_node-chunks/{chunk-SVTBJ7Q3.js → chunk-UUAEW2AR.js} +6 -6
- package/dist/_node-chunks/chunk-VQHM66NL.js +534 -0
- package/dist/_node-chunks/{chunk-H4PPVMP5.js → chunk-VSTTY3TM.js} +6 -6
- package/dist/_node-chunks/{chunk-2DSIDINN.js → chunk-XDBSAFUB.js} +650 -9
- package/dist/_node-chunks/{chunk-OWNFOGTA.js → chunk-XTQQGAUZ.js} +7 -7
- package/dist/_node-chunks/{chunk-CXRU72ET.js → chunk-YMJVSFJT.js} +6 -6
- package/dist/_node-chunks/{chunk-DHJFTB4K.js → chunk-YXEKWVJQ.js} +7 -7
- package/dist/_node-chunks/{chunk-SLWQNBGO.js → chunk-Z6CUUWJO.js} +34 -949
- package/dist/_node-chunks/{chunk-TD5PLLQG.js → chunk-ZAIGR7EV.js} +64 -17
- package/dist/_node-chunks/{chunk-6KEHV53S.js → chunk-ZCFXEFR6.js} +33 -41
- package/dist/_node-chunks/{chunk-FW2HQUBQ.js → chunk-ZHUBOYOD.js} +6 -6
- package/dist/_node-chunks/{chunk-MA24JW6C.js → chunk-ZHUBTBP2.js} +25 -8
- package/dist/_node-chunks/{chunk-RXNJDRGO.js → chunk-ZSTIFZHY.js} +21 -25
- package/dist/_node-chunks/dist-TRTHRODT.js +16 -0
- package/dist/_node-chunks/dist-XPLJ5T4W.js +27 -0
- package/dist/_node-chunks/{local-runtime-NTKIN2QT.js → local-runtime-AC7MOWYK.js} +21 -22
- package/dist/_node-chunks/{mdx-plugin-MWISDWDQ.js → mdx-plugin-ZW26VGEP.js} +2263 -130
- package/dist/_node-chunks/{monorepo-LIRFMQXE.js → monorepo-T2KZK62Q.js} +12 -12
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-CPDW4XTW.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-2CWUUF6H.js} +12 -12
- package/dist/_node-chunks/optimized-tests-4AK3PFSX.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-EKHIUAU2.js → pattern-copy-play-CMRGEXHM.js} +12 -12
- package/dist/_node-chunks/postinstallAddon-OUQENFYO.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-BUN3HUCO.js → rehype-external-links-LHOAIJ2E.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-PLADX223.js → rehype-slug-K54MMYY6.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-GBHW6KIQ.js → relaxed-limits-TTL4PWH7.js} +12 -12
- package/dist/_node-chunks/{run-NL66VTNR.js → run-6DXBB5F7.js} +294 -30
- package/dist/_node-chunks/{run-KDTIZNSY.js → run-BMTV5ZAO.js} +18 -18
- package/dist/_node-chunks/{setup-MGC7BQO6.js → setup-FDPYW25Y.js} +9 -9
- package/dist/_node-chunks/{vitest.config.4.template-JH2THZFG.js → vitest.config.4.template-2TCFWAAI.js} +9 -9
- package/dist/actions/decorator.js +18 -22
- package/dist/actions/index.d.ts +4 -4
- package/dist/actions/index.js +3 -2
- package/dist/addon-a11y/index.d.ts +3 -3
- package/dist/addon-a11y/index.js +3 -2
- package/dist/addon-a11y/manager.js +41 -38
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.d.ts +8 -2
- package/dist/addon-a11y/preview.js +3 -2
- package/dist/addon-comments/manager.js +353 -0
- package/dist/addon-comments/preset.js +80 -0
- package/dist/addon-comments/preview.js +101 -0
- package/dist/addon-docs/blocks.d.ts +123 -85
- package/dist/addon-docs/blocks.js +159 -85
- package/dist/addon-docs/index.d.ts +21 -21
- package/dist/addon-docs/index.js +3 -3
- package/dist/addon-docs/manager.js +6 -6
- package/dist/addon-docs/preset.js +12 -12
- package/dist/addon-docs/preview.d.ts +3 -1
- package/dist/addon-docs/preview.js +1 -1
- package/dist/addon-links/index.d.ts +2 -1
- package/dist/addon-links/index.js +5 -2
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-links/preview.js +5 -2
- package/dist/addon-links/react/index.js +4 -1
- package/dist/addon-mcp/preset.js +203 -84
- package/dist/addon-mcp/preview.js +1 -1
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +71 -71
- package/dist/addon-ondevice-actions/index.js +5 -1
- package/dist/addon-ondevice-actions/register.js +5 -1
- package/dist/addon-ondevice-controls/index.js +1 -1
- package/dist/addon-ondevice-controls/register.js +1 -1
- package/dist/addon-pseudo-states/index.d.ts +1 -1
- package/dist/addon-pseudo-states/index.js +1 -1
- package/dist/addon-pseudo-states/manager.js +2 -2
- package/dist/addon-pseudo-states/preview.d.ts +1 -1
- package/dist/addon-pseudo-states/preview.js +1 -1
- package/dist/addon-themes/index.d.ts +7 -6
- package/dist/addon-themes/index.js +2 -2
- package/dist/addon-themes/manager.js +4 -4
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-themes/preview.js +2 -2
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +32 -23
- package/dist/addon-vitest/node/coverage-reporter.js +11 -11
- package/dist/addon-vitest/node/vitest.js +37 -37
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +26 -26
- package/dist/addon-vitest/vitest-plugin/global-setup.js +23 -23
- package/dist/addon-vitest/vitest-plugin/index.js +83 -73
- package/dist/addon-vitest/vitest-plugin/setup-file-with-project-annotations.js +3 -3
- package/dist/addon-vitest/vitest-plugin/setup-file.js +1 -1
- package/dist/babel/index.d.ts +241 -995
- package/dist/babel/index.js +30583 -38
- package/dist/backgrounds/index.d.ts +1 -1
- package/dist/bin/core.js +122 -110
- package/dist/bin/dispatcher.js +18 -16
- package/dist/bin/loader.js +17 -16
- package/dist/builder-next/index.d.ts +59 -0
- package/dist/builder-next/index.js +201 -0
- package/dist/builder-vite/index.d.ts +8 -3
- package/dist/builder-vite/index.js +80 -25
- package/dist/builder-vite/preset.js +13 -13
- package/dist/channels/index.d.ts +3 -2
- package/dist/channels/index.js +97 -24
- package/dist/{chunk-Dr3R0DXk.d.ts → chunk-B-NVyPqN.d.ts} +2 -2
- package/dist/{chunk-C2p5r3Vt.d.ts → chunk-B53gRJBs.d.ts} +838 -703
- package/dist/{chunk-DoIGKY33.d.ts → chunk-BLZXEm1K.d.ts} +6 -8
- package/dist/chunk-BcYKnZln.d.ts +10 -0
- package/dist/{chunk-Bpi2tz-6.d.ts → chunk-BspNQvZn.d.ts} +21 -23
- package/dist/{chunk-BCoJQE-f.d.ts → chunk-BtKww7r1.d.ts} +6 -4
- package/dist/chunk-CFhJCPSB.d.ts +48 -0
- package/dist/{chunk-DtHByo32.d.ts → chunk-CFk6djyM.d.ts} +5 -5
- package/dist/{chunk-CwQKNaYL.d.ts → chunk-CMx6bGAU.d.ts} +2 -2
- package/dist/{chunk-DEVFdzxR.d.ts → chunk-CRmUwbkb.d.ts} +4 -4
- package/dist/{chunk-CMeX4WRe.d.ts → chunk-CT2iXaHz.d.ts} +1 -1
- package/dist/{chunk-pcFXCimE.d.ts → chunk-CmV7WZzR.d.ts} +124 -2
- package/dist/{chunk-BGkgZp-H.d.ts → chunk-D3uSIa6H.d.ts} +9 -1
- package/dist/{chunk-DzuY9DXg.d.ts → chunk-DDd8BhTY.d.ts} +2 -2
- package/dist/{chunk-Dw1z1Pki.d.ts → chunk-DNCU78oW.d.ts} +160 -323
- package/dist/chunk-DVIvUVkS.d.ts +195 -0
- package/dist/{chunk-gCX81nOr.d.ts → chunk-DgzPaTw9.d.ts} +3 -3
- package/dist/{chunk-Kt1tW-D1.d.ts → chunk-Dm-iHJ-s.d.ts} +3 -3
- package/dist/{chunk-C-bavsOH.d.ts → chunk-Dw_4ad2Y.d.ts} +6 -6
- package/dist/chunk-Susgfkap.d.ts +20 -0
- package/dist/{chunk-B2t1tGRh.d.ts → chunk-bhl-7rRD.d.ts} +40 -15
- package/dist/{chunk-BXLImeLy.d.ts → chunk-r-Vjut9o.d.ts} +52 -11
- package/dist/cli/index.d.ts +15 -904
- package/dist/cli/index.js +49 -5209
- package/dist/cli/skills/content/index.d.ts +3 -3
- package/dist/cli/skills/content/index.js +3 -3
- package/dist/cli/tools/sdk/child-host.d.ts +1 -1
- package/dist/cli/tools/sdk/child-host.js +17 -17
- package/dist/cli/tools/sdk/index.d.ts +4 -4
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/client-logger/index.d.ts +20 -21
- package/dist/client-logger/index.js +5 -2
- package/dist/common/index.d.ts +32 -44
- package/dist/common/index.js +89 -98
- package/dist/components/index.d.ts +86 -272
- package/dist/components/index.js +2759 -8547
- package/dist/core-events/index.d.ts +16 -7
- package/dist/core-events/index.js +5 -5
- package/dist/core-server/index.d.ts +95 -26
- package/dist/core-server/index.js +1675 -408
- package/dist/core-server/presets/common-manager.js +837 -1335
- package/dist/core-server/presets/common-override-preset.js +12 -10
- package/dist/core-server/presets/common-preset.js +100 -282
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/csf-utils.d.ts +1 -1
- package/dist/csf/index.d.ts +6 -6
- package/dist/csf/index.js +90 -159
- package/dist/csf-tools/index.d.ts +66 -54
- package/dist/csf-tools/index.js +19 -17
- package/dist/docs-tools/index.d.ts +332 -16
- package/dist/docs-tools/index.js +3 -3
- package/dist/highlight/index.d.ts +1 -1
- package/dist/instrumenter/index.d.ts +5 -5
- package/dist/instrumenter/index.js +31 -19
- package/dist/manager/_manager-chunks/{globals-runtime-BvM-NY2g.js → globals-runtime-B4NRbNSS.js} +638 -1731
- package/dist/{preview/_chunks/runtime-CqHxptiK.js → manager/_manager-chunks/globals-runtime-BC43T1rL.js} +3413 -173
- package/dist/manager/_manager-chunks/{globals-runtime-qKvCZHFY.js → globals-runtime-BJ6EZqH7.js} +1035 -623
- package/dist/manager/_manager-chunks/{globals-runtime-Rp_zjGnh.js → globals-runtime-BfXaq_CP.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-C02fvgcd.js → globals-runtime-BkSn_Jpe.js} +411 -379
- package/dist/manager/_manager-chunks/{globals-runtime-eLPTIfX-.js → globals-runtime-BnQ7i5wq.js} +232 -370
- package/dist/manager/_manager-chunks/globals-runtime-BtduS2C2.js +10601 -0
- package/dist/manager/_manager-chunks/globals-runtime-BzuYs3dZ.js +1971 -0
- package/dist/manager/_manager-chunks/globals-runtime-CBviMKtt.js +446 -0
- package/dist/manager/_manager-chunks/globals-runtime-CS41oTca.js +1808 -0
- package/dist/manager/_manager-chunks/{globals-runtime-BmphMP6z.js → globals-runtime-Cisw9IIE.js} +11 -11
- package/dist/manager/_manager-chunks/globals-runtime-CoTrrHG3.js +1163 -0
- package/dist/manager/_manager-chunks/{globals-runtime-FC201B7s.js → globals-runtime-DCmvKMN5.js} +2 -1
- package/dist/manager/_manager-chunks/globals-runtime-DgO0hT2p.js +32 -0
- package/dist/manager/_manager-chunks/{globals-runtime-DpNYC-qi.js → globals-runtime-DpvE_zRs.js} +1013 -782
- package/dist/manager/_manager-chunks/globals-runtime-Me9Bl-sx.js +156 -0
- package/dist/manager/_manager-chunks/globals-runtime-nQMRiA0J.js +19 -0
- package/dist/manager/_manager-chunks/globals-runtime-oRjPg2jY.js +8935 -0
- package/dist/manager/_manager-chunks/{globals-runtime-sGpNlIJ1.js → globals-runtime-wV08sCKl.js} +715 -620
- package/dist/manager/_manager-chunks/{runtime-cp5pazY2.js → runtime-4OQZWibO.js} +1717 -1536
- package/dist/manager/_manager-chunks/runtime-BYxbyNm0.js +201 -0
- package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
- package/dist/manager/_manager-chunks/runtime-CM4Z8aKR.js +735 -0
- package/dist/manager/_manager-chunks/{runtime-eDVAYF7N.js → runtime-Cjo1UL1u.js} +57 -76
- package/dist/manager/_manager-chunks/runtime-Cx1-wr6J.js +294 -0
- package/dist/manager/_manager-chunks/{runtime-BhkT2CXl.js → runtime-Cxe_uJRb.js} +220 -406
- package/dist/manager/_manager-chunks/runtime-D702FFTO.js +551 -0
- package/dist/manager/_manager-chunks/{runtime-D94Vq3oR.js → runtime-DnWFp6Zw.js} +8 -534
- package/dist/manager/_manager-chunks/{runtime-D0UOWx0U.js → runtime-DoYPE6g6.js} +232 -158
- package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
- package/dist/manager/_manager-chunks/{runtime-i-PDAHLR.js → runtime-sppa-0ll.js} +741 -698
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/globals.d.ts +12 -12
- package/dist/manager/globals.js +12 -12
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +538 -528
- package/dist/manager-errors.d.ts +1 -1
- package/dist/manager-errors.js +2 -2
- package/dist/mcp/index.d.ts +10 -10
- package/dist/mcp/index.js +11 -11
- package/dist/mocking-utils/index.d.ts +7 -5
- package/dist/mocking-utils/index.js +34 -34
- package/dist/mocking-utils/mocker-runtime.js +2 -2
- package/dist/next/index.d.ts +231 -0
- package/dist/next/index.js +398 -0
- package/dist/nextjs-vite/export-mocks/headers/index.js +3 -1
- package/dist/nextjs-vite/export-mocks/link/index.d.ts +4 -1
- package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +9 -1
- package/dist/nextjs-vite/export-mocks/router/index.js +13 -7
- package/dist/nextjs-vite/index.d.ts +4 -4
- package/dist/nextjs-vite/index.js +10 -5
- package/dist/nextjs-vite/node/index.d.ts +2 -2
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/node-stand-ins/index.d.ts +68 -0
- package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
- package/dist/nextjs-vite/preset.js +117 -15
- package/dist/nextjs-vite/preview.d.ts +2 -1
- package/dist/nextjs-vite/preview.js +1 -1
- package/dist/nextjs-vite/vite-plugin/index.d.ts +2 -2
- package/dist/nextjs-vite/vite-plugin/index.js +9 -9
- package/dist/nextjs-vite-plugin/index.d.ts +2 -3
- package/dist/nextjs-vite-plugin/index.js +24 -49
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-image.js +2 -2
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-legacy-image.js +2 -2
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +10 -6
- package/dist/node-logger/index.d.ts +89 -90
- package/dist/node-logger/index.js +11 -12
- package/dist/oxc-parser/index.js +15 -14
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/{manager/_manager-chunks/globals-runtime-8HkdnU2F.js → preview/_chunks/runtime-BYRCSYBN.js} +4440 -179
- package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-Bvh_rfnQ.js} +29 -64
- package/dist/preview/_chunks/{runtime-iXdo8CR8.js → runtime-Cbq5WjbL.js} +772 -418
- package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-D2MPrqbU.js} +2 -2
- package/dist/preview/_chunks/{runtime-DrTjJkPY.js → runtime-DDEUZops.js} +453 -161
- package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-DS0s7U3c.js} +482 -334
- package/dist/preview/_chunks/{runtime-CsV4HZPV.js → runtime-DsjyhLpG.js} +397 -176
- package/dist/preview/_chunks/{runtime-CxZK_Ln3.js → runtime-Dwi6NFcX.js} +3 -3
- package/dist/preview/globals.d.ts +10 -10
- package/dist/preview/globals.js +10 -10
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +3 -3
- package/dist/preview-api/index.js +12 -10
- package/dist/preview-errors.d.ts +1 -1
- package/dist/preview-errors.js +2 -2
- package/dist/react/docgen/docgen-worker.js +11 -12
- package/dist/react/entry-preview-argtypes.js +1 -1
- package/dist/react/entry-preview-docs.js +1 -1
- package/dist/react/entry-preview.js +2 -1
- package/dist/react/index.d.ts +9 -11
- package/dist/react/index.js +8 -6
- package/dist/react/preset.js +13 -14
- package/dist/react/preview.d.ts +1 -1
- package/dist/react/preview.js +5 -4
- package/dist/react-native/bin/get-stories.js +12 -12
- package/dist/react-native/index.d.ts +48 -47
- package/dist/react-native/index.js +64 -249
- package/dist/react-native/metro/node.d.ts +3 -3
- package/dist/react-native/metro/node.js +10 -9
- package/dist/react-native/metro/{withStorybook.d.ts → withForkbook.d.ts} +18 -18
- package/dist/react-native/metro/{withStorybook.js → withForkbook.js} +27 -26
- package/dist/react-native/preview.js +4 -1
- package/dist/react-native/scripts/generate.d.ts +1 -1
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-native/stub.js +1 -1
- package/dist/react-native-theming/index.d.ts +2 -58
- package/dist/react-native-theming/index.js +63 -2338
- package/dist/react-native-ui/index.d.ts +14 -14
- package/dist/react-native-ui/index.js +8 -15
- package/dist/react-native-ui-common/index.d.ts +32 -12
- package/dist/react-native-ui-common/index.js +26 -31
- package/dist/react-vite/index.d.ts +2 -2
- package/dist/react-vite/node/index.d.ts +3 -3
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.d.ts +3 -1
- package/dist/react-vite/preset.js +16 -9
- package/dist/router/index.d.ts +80 -3
- package/dist/router/index.js +66 -12
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +3 -3
- package/dist/shared/open-service/index.js +2 -2
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/shared/open-service/toolsets/docs/public.d.ts +28 -28
- package/dist/telemetry/index.d.ts +38 -274
- package/dist/telemetry/index.js +11 -68
- package/dist/test/index.d.ts +2 -2
- package/dist/test/index.js +765 -511
- package/dist/theming/create.d.ts +1 -1
- package/dist/theming/create.js +2 -1
- package/dist/theming/index.d.ts +6 -6
- package/dist/theming/index.js +41 -16
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +5 -5
- package/dist/viewport/index.d.ts +1 -1
- package/package.json +69 -69
- package/skills/setup/SKILL.md +14 -0
- package/skills/stories/SKILL.md +21 -0
- package/skills/write-story/SKILL.md +14 -0
- package/template/nextjs-vite/cli/js/Button.jsx +2 -2
- package/template/nextjs-vite/cli/js/Button.stories.js +6 -6
- package/template/nextjs-vite/cli/js/Configure.mdx +100 -100
- package/template/nextjs-vite/cli/js/Header.jsx +1 -1
- package/template/nextjs-vite/cli/js/Header.stories.js +2 -2
- package/template/nextjs-vite/cli/js/Page.jsx +3 -3
- package/template/nextjs-vite/cli/js/Page.stories.js +2 -2
- package/template/nextjs-vite/cli/ts/Button.stories.ts +6 -6
- package/template/nextjs-vite/cli/ts/Button.tsx +2 -2
- package/template/nextjs-vite/cli/ts/Configure.mdx +84 -84
- package/template/nextjs-vite/cli/ts/Header.stories.ts +2 -2
- package/template/nextjs-vite/cli/ts/Header.tsx +1 -1
- package/template/nextjs-vite/cli/ts/Page.stories.ts +2 -2
- package/template/nextjs-vite/cli/ts/Page.tsx +3 -3
- package/template/react/cli/js/Button.jsx +2 -2
- package/template/react/cli/js/Button.stories.js +6 -6
- package/template/react/cli/js/Header.jsx +1 -1
- package/template/react/cli/js/Header.stories.js +2 -2
- package/template/react/cli/js/Page.jsx +3 -3
- package/template/react/cli/js/Page.stories.js +2 -2
- package/template/react/cli/ts/Button.stories.ts +6 -6
- package/template/react/cli/ts/Button.tsx +2 -2
- package/template/react/cli/ts/Header.stories.ts +2 -2
- package/template/react/cli/ts/Header.tsx +1 -1
- package/template/react/cli/ts/Page.stories.ts +2 -2
- package/template/react/cli/ts/Page.tsx +3 -3
- package/template/react-vite/cli/js/Button.jsx +2 -2
- package/template/react-vite/cli/js/Button.stories.js +6 -6
- package/template/react-vite/cli/js/Header.jsx +1 -1
- package/template/react-vite/cli/js/Header.stories.js +2 -2
- package/template/react-vite/cli/js/Page.jsx +3 -3
- package/template/react-vite/cli/js/Page.stories.js +2 -2
- package/template/react-vite/cli/ts/Button.stories.ts +6 -6
- package/template/react-vite/cli/ts/Button.tsx +2 -2
- package/template/react-vite/cli/ts/Header.stories.ts +2 -2
- package/template/react-vite/cli/ts/Header.tsx +1 -1
- package/template/react-vite/cli/ts/Page.stories.ts +2 -2
- package/template/react-vite/cli/ts/Page.tsx +3 -3
- package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-bold.woff2 +0 -0
- package/assets/browser/nunito-sans-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-regular.woff2 +0 -0
- package/dist/_browser-chunks/WithTooltip-XSQFTBMB.js +0 -1619
- package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
- package/dist/_browser-chunks/chunk-JMC7AIKT.js +0 -108
- package/dist/_node-chunks/builder-manager-VVHYQXCH.js +0 -1661
- package/dist/_node-chunks/chunk-2RU7BKEW.js +0 -23
- package/dist/_node-chunks/chunk-3BKIBF5S.js +0 -3008
- package/dist/_node-chunks/chunk-3T4ZSNPH.js +0 -662
- package/dist/_node-chunks/chunk-5DQFEZEA.js +0 -40
- package/dist/_node-chunks/chunk-6LMWA44H.js +0 -3837
- package/dist/_node-chunks/chunk-BXVYT7SB.js +0 -36
- package/dist/_node-chunks/chunk-CQKMLL5J.js +0 -33
- package/dist/_node-chunks/chunk-EHUNOMDD.js +0 -52345
- package/dist/_node-chunks/chunk-FY6UXW6G.js +0 -11
- package/dist/_node-chunks/chunk-GRBLDJCR.js +0 -989
- package/dist/_node-chunks/chunk-IDEL2J23.js +0 -23
- package/dist/_node-chunks/chunk-JPAZLYJ3.js +0 -29
- package/dist/_node-chunks/chunk-MK2KYAI6.js +0 -5414
- package/dist/_node-chunks/chunk-NPO45IMH.js +0 -33
- package/dist/_node-chunks/chunk-QEQLR22M.js +0 -1877
- package/dist/_node-chunks/chunk-RZMQ7S3L.js +0 -92
- package/dist/_node-chunks/chunk-SIEXZVCR.js +0 -51
- package/dist/_node-chunks/chunk-TEQGGSP7.js +0 -33
- package/dist/_node-chunks/chunk-TFCEV2XX.js +0 -155
- package/dist/_node-chunks/chunk-UBOGWBEA.js +0 -148
- package/dist/_node-chunks/chunk-W4OMYLSP.js +0 -1297
- package/dist/_node-chunks/chunk-WAXVSN3O.js +0 -18
- package/dist/_node-chunks/chunk-ZMAMXQKP.js +0 -4731
- package/dist/_node-chunks/dist-VTSTZKUB.js +0 -16
- package/dist/_node-chunks/globby-OEMHPBFY.js +0 -2884
- package/dist/_node-chunks/jiti-NFX6UU74.js +0 -3848
- package/dist/_node-chunks/lib-MDVARD7W.js +0 -366
- package/dist/_node-chunks/optimized-tests-HDOLR3EY.js +0 -22
- package/dist/_node-chunks/postinstallAddon-GYGMWDL6.js +0 -20
- package/dist/_node-chunks/session-id-KIIVOQLR.js +0 -23
- package/dist/chunk-BTVrWliM.d.ts +0 -115
- package/dist/chunk-BfBzpgct.d.ts +0 -916
- package/dist/chunk-BxWufQms.d.ts +0 -142
- package/dist/chunk-DaVb55-_.d.ts +0 -124
- package/dist/core-server/presets/common-manager.css +0 -170
- package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +0 -3389
- package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +0 -9766
- package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +0 -5357
- package/dist/manager/_manager-chunks/globals-runtime-ZHrQFa3-.js +0 -10463
- package/dist/manager/_manager-chunks/runtime-B1L9TH89.js +0 -452
- package/dist/manager/_manager-chunks/runtime-BK0zF7FN.js +0 -22
- package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +0 -998
- package/dist/manager/_manager-chunks/runtime-DMig8mT7.js +0 -77
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
- package/dist/preview/_chunks/runtime-BwSxqk3t.js +0 -63
- package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
- package/dist/preview/_chunks/runtime-DuHdxMFA.js +0 -387
|
@@ -0,0 +1,1163 @@
|
|
|
1
|
+
import { a as __toESM, n as __esmMin, t as __commonJSMin } from "./globals-runtime-BdGkqNEt.js";
|
|
2
|
+
import { i as useLatest, n as useComposedRef, r as init_use_latest_esm, t as init_use_composed_ref_esm } from "./globals-runtime-BnQ7i5wq.js";
|
|
3
|
+
import { i as require_react } from "./globals-runtime-nQMRiA0J.js";
|
|
4
|
+
import { l as _objectWithoutPropertiesLoose$1, s as _extends$2 } from "./globals-runtime-DwFqpqya.js";
|
|
5
|
+
import { a as createPath, c as invariant, d as resolveTo, f as stripBasename, i as createMemoryHistory, l as joinPaths, n as Action, o as getPathContributingMatches, r as createBrowserHistory, s as init_router, u as parsePath } from "./globals-runtime-CBviMKtt.js";
|
|
6
|
+
//#region ../../node_modules/react/cjs/react.production.js
|
|
7
|
+
/**
|
|
8
|
+
* @license React
|
|
9
|
+
* react.production.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
var require_react_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
17
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
18
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
19
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
20
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
21
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
22
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
23
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
24
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
25
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
26
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
27
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
28
|
+
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
29
|
+
var REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition");
|
|
30
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
31
|
+
function getIteratorFn(maybeIterable) {
|
|
32
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
33
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
34
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
35
|
+
}
|
|
36
|
+
var ReactNoopUpdateQueue = {
|
|
37
|
+
isMounted: function() {
|
|
38
|
+
return !1;
|
|
39
|
+
},
|
|
40
|
+
enqueueForceUpdate: function() {},
|
|
41
|
+
enqueueReplaceState: function() {},
|
|
42
|
+
enqueueSetState: function() {}
|
|
43
|
+
};
|
|
44
|
+
var assign = Object.assign;
|
|
45
|
+
var emptyObject = {};
|
|
46
|
+
function Component(props, context, updater) {
|
|
47
|
+
this.props = props;
|
|
48
|
+
this.context = context;
|
|
49
|
+
this.refs = emptyObject;
|
|
50
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
51
|
+
}
|
|
52
|
+
Component.prototype.isReactComponent = {};
|
|
53
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
54
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
55
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
56
|
+
};
|
|
57
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
58
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
59
|
+
};
|
|
60
|
+
function ComponentDummy() {}
|
|
61
|
+
ComponentDummy.prototype = Component.prototype;
|
|
62
|
+
function PureComponent(props, context, updater) {
|
|
63
|
+
this.props = props;
|
|
64
|
+
this.context = context;
|
|
65
|
+
this.refs = emptyObject;
|
|
66
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
67
|
+
}
|
|
68
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
69
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
70
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
71
|
+
pureComponentPrototype.isPureReactComponent = !0;
|
|
72
|
+
var isArrayImpl = Array.isArray;
|
|
73
|
+
function noop() {}
|
|
74
|
+
var ReactSharedInternals = {
|
|
75
|
+
H: null,
|
|
76
|
+
A: null,
|
|
77
|
+
T: null,
|
|
78
|
+
S: null
|
|
79
|
+
};
|
|
80
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
81
|
+
function ReactElement(type, key, props) {
|
|
82
|
+
var refProp = props.ref;
|
|
83
|
+
return {
|
|
84
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
85
|
+
type,
|
|
86
|
+
key,
|
|
87
|
+
ref: void 0 !== refProp ? refProp : null,
|
|
88
|
+
props
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
92
|
+
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
93
|
+
}
|
|
94
|
+
function isValidElement(object) {
|
|
95
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
96
|
+
}
|
|
97
|
+
function escape(key) {
|
|
98
|
+
var escaperLookup = {
|
|
99
|
+
"=": "=0",
|
|
100
|
+
":": "=2"
|
|
101
|
+
};
|
|
102
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
103
|
+
return escaperLookup[match];
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
107
|
+
function getElementKey(element, index) {
|
|
108
|
+
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
109
|
+
}
|
|
110
|
+
function resolveThenable(thenable) {
|
|
111
|
+
switch (thenable.status) {
|
|
112
|
+
case "fulfilled": return thenable.value;
|
|
113
|
+
case "rejected": throw thenable.reason;
|
|
114
|
+
default: switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
|
|
115
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
116
|
+
}, function(error) {
|
|
117
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
118
|
+
})), thenable.status) {
|
|
119
|
+
case "fulfilled": return thenable.value;
|
|
120
|
+
case "rejected": throw thenable.reason;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
throw thenable;
|
|
124
|
+
}
|
|
125
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
126
|
+
var type = typeof children;
|
|
127
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
128
|
+
var invokeCallback = !1;
|
|
129
|
+
if (null === children) invokeCallback = !0;
|
|
130
|
+
else switch (type) {
|
|
131
|
+
case "bigint":
|
|
132
|
+
case "string":
|
|
133
|
+
case "number":
|
|
134
|
+
invokeCallback = !0;
|
|
135
|
+
break;
|
|
136
|
+
case "object": switch (children.$$typeof) {
|
|
137
|
+
case REACT_ELEMENT_TYPE:
|
|
138
|
+
case REACT_PORTAL_TYPE:
|
|
139
|
+
invokeCallback = !0;
|
|
140
|
+
break;
|
|
141
|
+
case REACT_LAZY_TYPE: return invokeCallback = children._init, mapIntoArray(invokeCallback(children._payload), array, escapedPrefix, nameSoFar, callback);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
if (invokeCallback) return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
145
|
+
return c;
|
|
146
|
+
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(callback, escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(userProvidedKeyEscapeRegex, "$&/") + "/") + invokeCallback)), array.push(callback)), 1;
|
|
147
|
+
invokeCallback = 0;
|
|
148
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
149
|
+
if (isArrayImpl(children)) for (var i = 0; i < children.length; i++) nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
|
|
150
|
+
else if (i = getIteratorFn(children), "function" === typeof i) for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done;) nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
|
|
151
|
+
else if ("object" === type) {
|
|
152
|
+
if ("function" === typeof children.then) return mapIntoArray(resolveThenable(children), array, escapedPrefix, nameSoFar, callback);
|
|
153
|
+
array = String(children);
|
|
154
|
+
throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead.");
|
|
155
|
+
}
|
|
156
|
+
return invokeCallback;
|
|
157
|
+
}
|
|
158
|
+
function mapChildren(children, func, context) {
|
|
159
|
+
if (null == children) return children;
|
|
160
|
+
var result = [], count = 0;
|
|
161
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
162
|
+
return func.call(context, child, count++);
|
|
163
|
+
});
|
|
164
|
+
return result;
|
|
165
|
+
}
|
|
166
|
+
function lazyInitializer(payload) {
|
|
167
|
+
if (-1 === payload._status) {
|
|
168
|
+
var ctor = payload._result, thenable = ctor();
|
|
169
|
+
thenable.then(function(moduleObject) {
|
|
170
|
+
if (0 === payload._status || -1 === payload._status) payload._status = 1, payload._result = moduleObject, void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
|
|
171
|
+
}, function(error) {
|
|
172
|
+
if (0 === payload._status || -1 === payload._status) payload._status = 2, payload._result = error, void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
173
|
+
});
|
|
174
|
+
-1 === payload._status && (payload._status = 0, payload._result = thenable);
|
|
175
|
+
}
|
|
176
|
+
if (1 === payload._status) return payload._result.default;
|
|
177
|
+
throw payload._result;
|
|
178
|
+
}
|
|
179
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
180
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
181
|
+
var event = new window.ErrorEvent("error", {
|
|
182
|
+
bubbles: !0,
|
|
183
|
+
cancelable: !0,
|
|
184
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
185
|
+
error
|
|
186
|
+
});
|
|
187
|
+
if (!window.dispatchEvent(event)) return;
|
|
188
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
189
|
+
process.emit("uncaughtException", error);
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
console.error(error);
|
|
193
|
+
};
|
|
194
|
+
function startTransition(scope) {
|
|
195
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
196
|
+
currentTransition.types = null !== prevTransition ? prevTransition.types : null;
|
|
197
|
+
ReactSharedInternals.T = currentTransition;
|
|
198
|
+
try {
|
|
199
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
200
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
201
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
202
|
+
} catch (error) {
|
|
203
|
+
reportGlobalError(error);
|
|
204
|
+
} finally {
|
|
205
|
+
null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
function addTransitionType(type) {
|
|
209
|
+
var transition = ReactSharedInternals.T;
|
|
210
|
+
if (null !== transition) {
|
|
211
|
+
var transitionTypes = transition.types;
|
|
212
|
+
null === transitionTypes ? transition.types = [type] : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);
|
|
213
|
+
} else startTransition(addTransitionType.bind(null, type));
|
|
214
|
+
}
|
|
215
|
+
var Children = {
|
|
216
|
+
map: mapChildren,
|
|
217
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
218
|
+
mapChildren(children, function() {
|
|
219
|
+
forEachFunc.apply(this, arguments);
|
|
220
|
+
}, forEachContext);
|
|
221
|
+
},
|
|
222
|
+
count: function(children) {
|
|
223
|
+
var n = 0;
|
|
224
|
+
mapChildren(children, function() {
|
|
225
|
+
n++;
|
|
226
|
+
});
|
|
227
|
+
return n;
|
|
228
|
+
},
|
|
229
|
+
toArray: function(children) {
|
|
230
|
+
return mapChildren(children, function(child) {
|
|
231
|
+
return child;
|
|
232
|
+
}) || [];
|
|
233
|
+
},
|
|
234
|
+
only: function(children) {
|
|
235
|
+
if (!isValidElement(children)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
236
|
+
return children;
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
240
|
+
exports.Children = Children;
|
|
241
|
+
exports.Component = Component;
|
|
242
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
243
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
244
|
+
exports.PureComponent = PureComponent;
|
|
245
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
246
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
247
|
+
exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
|
|
248
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
249
|
+
exports.__COMPILER_RUNTIME = {
|
|
250
|
+
__proto__: null,
|
|
251
|
+
c: function(size) {
|
|
252
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
exports.addTransitionType = addTransitionType;
|
|
256
|
+
exports.cache = function(fn) {
|
|
257
|
+
return function() {
|
|
258
|
+
return fn.apply(null, arguments);
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
exports.cacheSignal = function() {
|
|
262
|
+
return null;
|
|
263
|
+
};
|
|
264
|
+
exports.cloneElement = function(element, config, children) {
|
|
265
|
+
if (null === element || void 0 === element) throw Error("The argument must be a React element, but you passed " + element + ".");
|
|
266
|
+
var props = assign({}, element.props), key = element.key;
|
|
267
|
+
if (null != config) for (propName in void 0 !== config.key && (key = "" + config.key), config) !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
268
|
+
var propName = arguments.length - 2;
|
|
269
|
+
if (1 === propName) props.children = children;
|
|
270
|
+
else if (1 < propName) {
|
|
271
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++) childArray[i] = arguments[i + 2];
|
|
272
|
+
props.children = childArray;
|
|
273
|
+
}
|
|
274
|
+
return ReactElement(element.type, key, props);
|
|
275
|
+
};
|
|
276
|
+
exports.createContext = function(defaultValue) {
|
|
277
|
+
defaultValue = {
|
|
278
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
279
|
+
_currentValue: defaultValue,
|
|
280
|
+
_currentValue2: defaultValue,
|
|
281
|
+
_threadCount: 0,
|
|
282
|
+
Provider: null,
|
|
283
|
+
Consumer: null
|
|
284
|
+
};
|
|
285
|
+
defaultValue.Provider = defaultValue;
|
|
286
|
+
defaultValue.Consumer = {
|
|
287
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
288
|
+
_context: defaultValue
|
|
289
|
+
};
|
|
290
|
+
return defaultValue;
|
|
291
|
+
};
|
|
292
|
+
exports.createElement = function(type, config, children) {
|
|
293
|
+
var propName, props = {}, key = null;
|
|
294
|
+
if (null != config) for (propName in void 0 !== config.key && (key = "" + config.key), config) hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
295
|
+
var childrenLength = arguments.length - 2;
|
|
296
|
+
if (1 === childrenLength) props.children = children;
|
|
297
|
+
else if (1 < childrenLength) {
|
|
298
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 2];
|
|
299
|
+
props.children = childArray;
|
|
300
|
+
}
|
|
301
|
+
if (type && type.defaultProps) for (propName in childrenLength = type.defaultProps, childrenLength) void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
302
|
+
return ReactElement(type, key, props);
|
|
303
|
+
};
|
|
304
|
+
exports.createRef = function() {
|
|
305
|
+
return { current: null };
|
|
306
|
+
};
|
|
307
|
+
exports.forwardRef = function(render) {
|
|
308
|
+
return {
|
|
309
|
+
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
310
|
+
render
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
exports.isValidElement = isValidElement;
|
|
314
|
+
exports.lazy = function(ctor) {
|
|
315
|
+
return {
|
|
316
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
317
|
+
_payload: {
|
|
318
|
+
_status: -1,
|
|
319
|
+
_result: ctor
|
|
320
|
+
},
|
|
321
|
+
_init: lazyInitializer
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
exports.memo = function(type, compare) {
|
|
325
|
+
return {
|
|
326
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
327
|
+
type,
|
|
328
|
+
compare: void 0 === compare ? null : compare
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
exports.startTransition = startTransition;
|
|
332
|
+
exports.unstable_useCacheRefresh = function() {
|
|
333
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
334
|
+
};
|
|
335
|
+
exports.use = function(usable) {
|
|
336
|
+
return ReactSharedInternals.H.use(usable);
|
|
337
|
+
};
|
|
338
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
339
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
340
|
+
};
|
|
341
|
+
exports.useCallback = function(callback, deps) {
|
|
342
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
343
|
+
};
|
|
344
|
+
exports.useContext = function(Context) {
|
|
345
|
+
return ReactSharedInternals.H.useContext(Context);
|
|
346
|
+
};
|
|
347
|
+
exports.useDebugValue = function() {};
|
|
348
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
349
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
350
|
+
};
|
|
351
|
+
exports.useEffect = function(create, deps) {
|
|
352
|
+
return ReactSharedInternals.H.useEffect(create, deps);
|
|
353
|
+
};
|
|
354
|
+
exports.useEffectEvent = function(callback) {
|
|
355
|
+
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
356
|
+
};
|
|
357
|
+
exports.useId = function() {
|
|
358
|
+
return ReactSharedInternals.H.useId();
|
|
359
|
+
};
|
|
360
|
+
exports.useImperativeHandle = function(ref, create, deps) {
|
|
361
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
362
|
+
};
|
|
363
|
+
exports.useInsertionEffect = function(create, deps) {
|
|
364
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
365
|
+
};
|
|
366
|
+
exports.useLayoutEffect = function(create, deps) {
|
|
367
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
368
|
+
};
|
|
369
|
+
exports.useMemo = function(create, deps) {
|
|
370
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
371
|
+
};
|
|
372
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
373
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
374
|
+
};
|
|
375
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
376
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
377
|
+
};
|
|
378
|
+
exports.useRef = function(initialValue) {
|
|
379
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
380
|
+
};
|
|
381
|
+
exports.useState = function(initialState) {
|
|
382
|
+
return ReactSharedInternals.H.useState(initialState);
|
|
383
|
+
};
|
|
384
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
385
|
+
return ReactSharedInternals.H.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
386
|
+
};
|
|
387
|
+
exports.useTransition = function() {
|
|
388
|
+
return ReactSharedInternals.H.useTransition();
|
|
389
|
+
};
|
|
390
|
+
exports.version = "19.3.1";
|
|
391
|
+
}));
|
|
392
|
+
//#endregion
|
|
393
|
+
//#region ../../node_modules/react/cjs/react-jsx-runtime.production.js
|
|
394
|
+
/**
|
|
395
|
+
* @license React
|
|
396
|
+
* react-jsx-runtime.production.js
|
|
397
|
+
*
|
|
398
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
399
|
+
*
|
|
400
|
+
* This source code is licensed under the MIT license found in the
|
|
401
|
+
* LICENSE file in the root directory of this source tree.
|
|
402
|
+
*/
|
|
403
|
+
var require_react_jsx_runtime_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
404
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
405
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
406
|
+
function jsxProd(type, config, maybeKey) {
|
|
407
|
+
var key = null;
|
|
408
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
409
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
410
|
+
if ("key" in config) {
|
|
411
|
+
maybeKey = {};
|
|
412
|
+
for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
|
|
413
|
+
} else maybeKey = config;
|
|
414
|
+
config = maybeKey.ref;
|
|
415
|
+
return {
|
|
416
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
417
|
+
type,
|
|
418
|
+
key,
|
|
419
|
+
ref: void 0 !== config ? config : null,
|
|
420
|
+
props: maybeKey
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
424
|
+
exports.jsx = jsxProd;
|
|
425
|
+
exports.jsxs = jsxProd;
|
|
426
|
+
}));
|
|
427
|
+
//#endregion
|
|
428
|
+
//#region ../../node_modules/react-router/dist/index.js
|
|
429
|
+
/**
|
|
430
|
+
* React Router v6.15.0
|
|
431
|
+
*
|
|
432
|
+
* Copyright (c) Remix Software Inc.
|
|
433
|
+
*
|
|
434
|
+
* This source code is licensed under the MIT license found in the
|
|
435
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
436
|
+
*
|
|
437
|
+
* @license MIT
|
|
438
|
+
*/
|
|
439
|
+
function _extends$1() {
|
|
440
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
441
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
442
|
+
var source = arguments[i];
|
|
443
|
+
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
444
|
+
}
|
|
445
|
+
return target;
|
|
446
|
+
};
|
|
447
|
+
return _extends$1.apply(this, arguments);
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Returns the full href for the given "to" value. This is useful for building
|
|
451
|
+
* custom links that are also accessible and preserve right-click behavior.
|
|
452
|
+
*
|
|
453
|
+
* @see https://reactrouter.com/hooks/use-href
|
|
454
|
+
*/
|
|
455
|
+
function useHref(to, _temp) {
|
|
456
|
+
let { relative } = _temp === void 0 ? {} : _temp;
|
|
457
|
+
!useInRouterContext() && invariant(false);
|
|
458
|
+
let { basename, navigator } = import_react$3.useContext(NavigationContext);
|
|
459
|
+
let { hash, pathname, search } = useResolvedPath(to, { relative });
|
|
460
|
+
let joinedPathname = pathname;
|
|
461
|
+
if (basename !== "/") joinedPathname = pathname === "/" ? basename : joinPaths([basename, pathname]);
|
|
462
|
+
return navigator.createHref({
|
|
463
|
+
pathname: joinedPathname,
|
|
464
|
+
search,
|
|
465
|
+
hash
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Returns true if this component is a descendant of a <Router>.
|
|
470
|
+
*
|
|
471
|
+
* @see https://reactrouter.com/hooks/use-in-router-context
|
|
472
|
+
*/
|
|
473
|
+
function useInRouterContext() {
|
|
474
|
+
return import_react$3.useContext(LocationContext) != null;
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* Returns the current location object, which represents the current URL in web
|
|
478
|
+
* browsers.
|
|
479
|
+
*
|
|
480
|
+
* Note: If you're using this it may mean you're doing some of your own
|
|
481
|
+
* "routing" in your app, and we'd like to know what your use case is. We may
|
|
482
|
+
* be able to provide something higher-level to better suit your needs.
|
|
483
|
+
*
|
|
484
|
+
* @see https://reactrouter.com/hooks/use-location
|
|
485
|
+
*/
|
|
486
|
+
function useLocation() {
|
|
487
|
+
!useInRouterContext() && invariant(false);
|
|
488
|
+
return import_react$3.useContext(LocationContext).location;
|
|
489
|
+
}
|
|
490
|
+
function useIsomorphicLayoutEffect(cb) {
|
|
491
|
+
if (!import_react$3.useContext(NavigationContext).static) import_react$3.useLayoutEffect(cb);
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Returns an imperative method for changing the location. Used by <Link>s, but
|
|
495
|
+
* may also be used by other elements to change the location.
|
|
496
|
+
*
|
|
497
|
+
* @see https://reactrouter.com/hooks/use-navigate
|
|
498
|
+
*/
|
|
499
|
+
function useNavigate() {
|
|
500
|
+
let { isDataRoute } = import_react$3.useContext(RouteContext);
|
|
501
|
+
return isDataRoute ? useNavigateStable() : useNavigateUnstable();
|
|
502
|
+
}
|
|
503
|
+
function useNavigateUnstable() {
|
|
504
|
+
!useInRouterContext() && invariant(false);
|
|
505
|
+
let dataRouterContext = import_react$3.useContext(DataRouterContext);
|
|
506
|
+
let { basename, navigator } = import_react$3.useContext(NavigationContext);
|
|
507
|
+
let { matches } = import_react$3.useContext(RouteContext);
|
|
508
|
+
let { pathname: locationPathname } = useLocation();
|
|
509
|
+
let routePathnamesJson = JSON.stringify(getPathContributingMatches(matches).map((match) => match.pathnameBase));
|
|
510
|
+
let activeRef = import_react$3.useRef(false);
|
|
511
|
+
useIsomorphicLayoutEffect(() => {
|
|
512
|
+
activeRef.current = true;
|
|
513
|
+
});
|
|
514
|
+
return import_react$3.useCallback(function(to, options) {
|
|
515
|
+
if (options === void 0) options = {};
|
|
516
|
+
if (!activeRef.current) return;
|
|
517
|
+
if (typeof to === "number") {
|
|
518
|
+
navigator.go(to);
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, options.relative === "path");
|
|
522
|
+
if (dataRouterContext == null && basename !== "/") path.pathname = path.pathname === "/" ? basename : joinPaths([basename, path.pathname]);
|
|
523
|
+
(!!options.replace ? navigator.replace : navigator.push)(path, options.state, options);
|
|
524
|
+
}, [
|
|
525
|
+
basename,
|
|
526
|
+
navigator,
|
|
527
|
+
routePathnamesJson,
|
|
528
|
+
locationPathname,
|
|
529
|
+
dataRouterContext
|
|
530
|
+
]);
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Resolves the pathname of the given `to` value against the current location.
|
|
534
|
+
*
|
|
535
|
+
* @see https://reactrouter.com/hooks/use-resolved-path
|
|
536
|
+
*/
|
|
537
|
+
function useResolvedPath(to, _temp2) {
|
|
538
|
+
let { relative } = _temp2 === void 0 ? {} : _temp2;
|
|
539
|
+
let { matches } = import_react$3.useContext(RouteContext);
|
|
540
|
+
let { pathname: locationPathname } = useLocation();
|
|
541
|
+
let routePathnamesJson = JSON.stringify(getPathContributingMatches(matches).map((match) => match.pathnameBase));
|
|
542
|
+
return import_react$3.useMemo(() => resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, relative === "path"), [
|
|
543
|
+
to,
|
|
544
|
+
routePathnamesJson,
|
|
545
|
+
locationPathname,
|
|
546
|
+
relative
|
|
547
|
+
]);
|
|
548
|
+
}
|
|
549
|
+
function useDataRouterContext(hookName) {
|
|
550
|
+
let ctx = import_react$3.useContext(DataRouterContext);
|
|
551
|
+
!ctx && invariant(false);
|
|
552
|
+
return ctx;
|
|
553
|
+
}
|
|
554
|
+
function useRouteContext(hookName) {
|
|
555
|
+
let route = import_react$3.useContext(RouteContext);
|
|
556
|
+
!route && invariant(false);
|
|
557
|
+
return route;
|
|
558
|
+
}
|
|
559
|
+
function useCurrentRouteId(hookName) {
|
|
560
|
+
let route = useRouteContext(hookName);
|
|
561
|
+
let thisRoute = route.matches[route.matches.length - 1];
|
|
562
|
+
!thisRoute.route.id && invariant(false);
|
|
563
|
+
return thisRoute.route.id;
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Stable version of useNavigate that is used when we are in the context of
|
|
567
|
+
* a RouterProvider.
|
|
568
|
+
*/
|
|
569
|
+
function useNavigateStable() {
|
|
570
|
+
let { router } = useDataRouterContext(DataRouterHook$1.UseNavigateStable);
|
|
571
|
+
let id = useCurrentRouteId(DataRouterStateHook$1.UseNavigateStable);
|
|
572
|
+
let activeRef = import_react$3.useRef(false);
|
|
573
|
+
useIsomorphicLayoutEffect(() => {
|
|
574
|
+
activeRef.current = true;
|
|
575
|
+
});
|
|
576
|
+
return import_react$3.useCallback(function(to, options) {
|
|
577
|
+
if (options === void 0) options = {};
|
|
578
|
+
if (!activeRef.current) return;
|
|
579
|
+
if (typeof to === "number") router.navigate(to);
|
|
580
|
+
else router.navigate(to, _extends$1({ fromRouteId: id }, options));
|
|
581
|
+
}, [router, id]);
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* A <Router> that stores all entries in memory.
|
|
585
|
+
*
|
|
586
|
+
* @see https://reactrouter.com/router-components/memory-router
|
|
587
|
+
*/
|
|
588
|
+
function MemoryRouter(_ref3) {
|
|
589
|
+
let { basename, children, initialEntries, initialIndex, future } = _ref3;
|
|
590
|
+
let historyRef = import_react$3.useRef();
|
|
591
|
+
if (historyRef.current == null) historyRef.current = createMemoryHistory({
|
|
592
|
+
initialEntries,
|
|
593
|
+
initialIndex,
|
|
594
|
+
v5Compat: true
|
|
595
|
+
});
|
|
596
|
+
let history = historyRef.current;
|
|
597
|
+
let [state, setStateImpl] = import_react$3.useState({
|
|
598
|
+
action: history.action,
|
|
599
|
+
location: history.location
|
|
600
|
+
});
|
|
601
|
+
let { v7_startTransition } = future || {};
|
|
602
|
+
let setState = import_react$3.useCallback((newState) => {
|
|
603
|
+
v7_startTransition && startTransitionImpl$1 ? startTransitionImpl$1(() => setStateImpl(newState)) : setStateImpl(newState);
|
|
604
|
+
}, [setStateImpl, v7_startTransition]);
|
|
605
|
+
import_react$3.useLayoutEffect(() => history.listen(setState), [history, setState]);
|
|
606
|
+
return /*#__PURE__*/ import_react$3.createElement(Router, {
|
|
607
|
+
basename,
|
|
608
|
+
children,
|
|
609
|
+
location: state.location,
|
|
610
|
+
navigationType: state.action,
|
|
611
|
+
navigator: history
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* Provides location context for the rest of the app.
|
|
616
|
+
*
|
|
617
|
+
* Note: You usually won't render a <Router> directly. Instead, you'll render a
|
|
618
|
+
* router that is more specific to your environment such as a <BrowserRouter>
|
|
619
|
+
* in web browsers or a <StaticRouter> for server rendering.
|
|
620
|
+
*
|
|
621
|
+
* @see https://reactrouter.com/router-components/router
|
|
622
|
+
*/
|
|
623
|
+
function Router(_ref5) {
|
|
624
|
+
let { basename: basenameProp = "/", children = null, location: locationProp, navigationType = Action.Pop, navigator, static: staticProp = false } = _ref5;
|
|
625
|
+
useInRouterContext() && invariant(false);
|
|
626
|
+
let basename = basenameProp.replace(/^\/*/, "/");
|
|
627
|
+
let navigationContext = import_react$3.useMemo(() => ({
|
|
628
|
+
basename,
|
|
629
|
+
navigator,
|
|
630
|
+
static: staticProp
|
|
631
|
+
}), [
|
|
632
|
+
basename,
|
|
633
|
+
navigator,
|
|
634
|
+
staticProp
|
|
635
|
+
]);
|
|
636
|
+
if (typeof locationProp === "string") locationProp = parsePath(locationProp);
|
|
637
|
+
let { pathname = "/", search = "", hash = "", state = null, key = "default" } = locationProp;
|
|
638
|
+
let locationContext = import_react$3.useMemo(() => {
|
|
639
|
+
let trailingPathname = stripBasename(pathname, basename);
|
|
640
|
+
if (trailingPathname == null) return null;
|
|
641
|
+
return {
|
|
642
|
+
location: {
|
|
643
|
+
pathname: trailingPathname,
|
|
644
|
+
search,
|
|
645
|
+
hash,
|
|
646
|
+
state,
|
|
647
|
+
key
|
|
648
|
+
},
|
|
649
|
+
navigationType
|
|
650
|
+
};
|
|
651
|
+
}, [
|
|
652
|
+
basename,
|
|
653
|
+
pathname,
|
|
654
|
+
search,
|
|
655
|
+
hash,
|
|
656
|
+
state,
|
|
657
|
+
key,
|
|
658
|
+
navigationType
|
|
659
|
+
]);
|
|
660
|
+
if (locationContext == null) return null;
|
|
661
|
+
return /*#__PURE__*/ import_react$3.createElement(NavigationContext.Provider, { value: navigationContext }, /*#__PURE__*/ import_react$3.createElement(LocationContext.Provider, {
|
|
662
|
+
children,
|
|
663
|
+
value: locationContext
|
|
664
|
+
}));
|
|
665
|
+
}
|
|
666
|
+
var import_react$3, DataRouterContext, NavigationContext, LocationContext, RouteContext, DataRouterHook$1, DataRouterStateHook$1, startTransitionImpl$1, AwaitRenderStatus;
|
|
667
|
+
function init_dist() {
|
|
668
|
+
return (init_dist = __esmMin((() => {
|
|
669
|
+
import_react$3 = /* @__PURE__ */ __toESM(require_react());
|
|
670
|
+
init_router();
|
|
671
|
+
DataRouterContext = /*#__PURE__*/ import_react$3.createContext(null);
|
|
672
|
+
NavigationContext = /*#__PURE__*/ import_react$3.createContext(null);
|
|
673
|
+
LocationContext = /*#__PURE__*/ import_react$3.createContext(null);
|
|
674
|
+
RouteContext = /*#__PURE__*/ import_react$3.createContext({
|
|
675
|
+
outlet: null,
|
|
676
|
+
matches: [],
|
|
677
|
+
isDataRoute: false
|
|
678
|
+
});
|
|
679
|
+
import_react$3.Component;
|
|
680
|
+
DataRouterHook$1 = /*#__PURE__*/ function(DataRouterHook) {
|
|
681
|
+
DataRouterHook["UseBlocker"] = "useBlocker";
|
|
682
|
+
DataRouterHook["UseRevalidator"] = "useRevalidator";
|
|
683
|
+
DataRouterHook["UseNavigateStable"] = "useNavigate";
|
|
684
|
+
return DataRouterHook;
|
|
685
|
+
}(DataRouterHook$1 || {});
|
|
686
|
+
DataRouterStateHook$1 = /*#__PURE__*/ function(DataRouterStateHook) {
|
|
687
|
+
DataRouterStateHook["UseBlocker"] = "useBlocker";
|
|
688
|
+
DataRouterStateHook["UseLoaderData"] = "useLoaderData";
|
|
689
|
+
DataRouterStateHook["UseActionData"] = "useActionData";
|
|
690
|
+
DataRouterStateHook["UseRouteError"] = "useRouteError";
|
|
691
|
+
DataRouterStateHook["UseNavigation"] = "useNavigation";
|
|
692
|
+
DataRouterStateHook["UseRouteLoaderData"] = "useRouteLoaderData";
|
|
693
|
+
DataRouterStateHook["UseMatches"] = "useMatches";
|
|
694
|
+
DataRouterStateHook["UseRevalidator"] = "useRevalidator";
|
|
695
|
+
DataRouterStateHook["UseNavigateStable"] = "useNavigate";
|
|
696
|
+
DataRouterStateHook["UseRouteId"] = "useRouteId";
|
|
697
|
+
return DataRouterStateHook;
|
|
698
|
+
}(DataRouterStateHook$1 || {});
|
|
699
|
+
startTransitionImpl$1 = import_react$3.startTransition;
|
|
700
|
+
AwaitRenderStatus = /*#__PURE__*/ function(AwaitRenderStatus) {
|
|
701
|
+
AwaitRenderStatus[AwaitRenderStatus["pending"] = 0] = "pending";
|
|
702
|
+
AwaitRenderStatus[AwaitRenderStatus["success"] = 1] = "success";
|
|
703
|
+
AwaitRenderStatus[AwaitRenderStatus["error"] = 2] = "error";
|
|
704
|
+
return AwaitRenderStatus;
|
|
705
|
+
}(AwaitRenderStatus || {});
|
|
706
|
+
new Promise(() => {});
|
|
707
|
+
import_react$3.Component;
|
|
708
|
+
})))();
|
|
709
|
+
}
|
|
710
|
+
//#endregion
|
|
711
|
+
//#region ../../node_modules/react-router-dom/dist/index.js
|
|
712
|
+
/**
|
|
713
|
+
* React Router DOM v6.15.0
|
|
714
|
+
*
|
|
715
|
+
* Copyright (c) Remix Software Inc.
|
|
716
|
+
*
|
|
717
|
+
* This source code is licensed under the MIT license found in the
|
|
718
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
719
|
+
*
|
|
720
|
+
* @license MIT
|
|
721
|
+
*/
|
|
722
|
+
function _extends() {
|
|
723
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
724
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
725
|
+
var source = arguments[i];
|
|
726
|
+
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
727
|
+
}
|
|
728
|
+
return target;
|
|
729
|
+
};
|
|
730
|
+
return _extends.apply(this, arguments);
|
|
731
|
+
}
|
|
732
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
733
|
+
if (source == null) return {};
|
|
734
|
+
var target = {};
|
|
735
|
+
var sourceKeys = Object.keys(source);
|
|
736
|
+
var key, i = 0;
|
|
737
|
+
for (; i < sourceKeys.length; i++) {
|
|
738
|
+
key = sourceKeys[i];
|
|
739
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
740
|
+
target[key] = source[key];
|
|
741
|
+
}
|
|
742
|
+
return target;
|
|
743
|
+
}
|
|
744
|
+
function isModifiedEvent(event) {
|
|
745
|
+
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
|
|
746
|
+
}
|
|
747
|
+
function shouldProcessLinkClick(event, target) {
|
|
748
|
+
return event.button === 0 && (!target || target === "_self") && !isModifiedEvent(event);
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
751
|
+
* A `<Router>` for use in web browsers. Provides the cleanest URLs.
|
|
752
|
+
*/
|
|
753
|
+
function BrowserRouter(_ref) {
|
|
754
|
+
let { basename, children, future, window } = _ref;
|
|
755
|
+
let historyRef = import_react$2.useRef();
|
|
756
|
+
if (historyRef.current == null) historyRef.current = createBrowserHistory({
|
|
757
|
+
window,
|
|
758
|
+
v5Compat: true
|
|
759
|
+
});
|
|
760
|
+
let history = historyRef.current;
|
|
761
|
+
let [state, setStateImpl] = import_react$2.useState({
|
|
762
|
+
action: history.action,
|
|
763
|
+
location: history.location
|
|
764
|
+
});
|
|
765
|
+
let { v7_startTransition } = future || {};
|
|
766
|
+
let setState = import_react$2.useCallback((newState) => {
|
|
767
|
+
v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState);
|
|
768
|
+
}, [setStateImpl, v7_startTransition]);
|
|
769
|
+
import_react$2.useLayoutEffect(() => history.listen(setState), [history, setState]);
|
|
770
|
+
return /*#__PURE__*/ import_react$2.createElement(Router, {
|
|
771
|
+
basename,
|
|
772
|
+
children,
|
|
773
|
+
location: state.location,
|
|
774
|
+
navigationType: state.action,
|
|
775
|
+
navigator: history
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* Handles the click behavior for router `<Link>` components. This is useful if
|
|
780
|
+
* you need to create custom `<Link>` components with the same click behavior we
|
|
781
|
+
* use in our exported `<Link>`.
|
|
782
|
+
*/
|
|
783
|
+
function useLinkClickHandler(to, _temp) {
|
|
784
|
+
let { target, replace: replaceProp, state, preventScrollReset, relative } = _temp === void 0 ? {} : _temp;
|
|
785
|
+
let navigate = useNavigate();
|
|
786
|
+
let location = useLocation();
|
|
787
|
+
let path = useResolvedPath(to, { relative });
|
|
788
|
+
return import_react$2.useCallback((event) => {
|
|
789
|
+
if (shouldProcessLinkClick(event, target)) {
|
|
790
|
+
event.preventDefault();
|
|
791
|
+
let replace = replaceProp !== void 0 ? replaceProp : createPath(location) === createPath(path);
|
|
792
|
+
navigate(to, {
|
|
793
|
+
replace,
|
|
794
|
+
state,
|
|
795
|
+
preventScrollReset,
|
|
796
|
+
relative
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
}, [
|
|
800
|
+
location,
|
|
801
|
+
navigate,
|
|
802
|
+
path,
|
|
803
|
+
replaceProp,
|
|
804
|
+
state,
|
|
805
|
+
target,
|
|
806
|
+
to,
|
|
807
|
+
preventScrollReset,
|
|
808
|
+
relative
|
|
809
|
+
]);
|
|
810
|
+
}
|
|
811
|
+
var import_react$2, _excluded$1, startTransitionImpl, isBrowser, ABSOLUTE_URL_REGEX, Link, DataRouterHook, DataRouterStateHook;
|
|
812
|
+
function init_dist$1() {
|
|
813
|
+
return (init_dist$1 = __esmMin((() => {
|
|
814
|
+
import_react$2 = /* @__PURE__ */ __toESM(require_react());
|
|
815
|
+
init_dist();
|
|
816
|
+
init_router();
|
|
817
|
+
_excluded$1 = [
|
|
818
|
+
"onClick",
|
|
819
|
+
"relative",
|
|
820
|
+
"reloadDocument",
|
|
821
|
+
"replace",
|
|
822
|
+
"state",
|
|
823
|
+
"target",
|
|
824
|
+
"to",
|
|
825
|
+
"preventScrollReset"
|
|
826
|
+
];
|
|
827
|
+
startTransitionImpl = import_react$2.startTransition;
|
|
828
|
+
isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
829
|
+
ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
|
|
830
|
+
Link = /*#__PURE__*/ import_react$2.forwardRef(function LinkWithRef(_ref4, ref) {
|
|
831
|
+
let { onClick, relative, reloadDocument, replace, state, target, to, preventScrollReset } = _ref4, rest = _objectWithoutPropertiesLoose(_ref4, _excluded$1);
|
|
832
|
+
let { basename } = import_react$2.useContext(NavigationContext);
|
|
833
|
+
let absoluteHref;
|
|
834
|
+
let isExternal = false;
|
|
835
|
+
if (typeof to === "string" && ABSOLUTE_URL_REGEX.test(to)) {
|
|
836
|
+
absoluteHref = to;
|
|
837
|
+
if (isBrowser) try {
|
|
838
|
+
let currentUrl = new URL(window.location.href);
|
|
839
|
+
let targetUrl = to.startsWith("//") ? new URL(currentUrl.protocol + to) : new URL(to);
|
|
840
|
+
let path = stripBasename(targetUrl.pathname, basename);
|
|
841
|
+
if (targetUrl.origin === currentUrl.origin && path != null) to = path + targetUrl.search + targetUrl.hash;
|
|
842
|
+
else isExternal = true;
|
|
843
|
+
} catch (e) {}
|
|
844
|
+
}
|
|
845
|
+
let href = useHref(to, { relative });
|
|
846
|
+
let internalOnClick = useLinkClickHandler(to, {
|
|
847
|
+
replace,
|
|
848
|
+
state,
|
|
849
|
+
target,
|
|
850
|
+
preventScrollReset,
|
|
851
|
+
relative
|
|
852
|
+
});
|
|
853
|
+
function handleClick(event) {
|
|
854
|
+
if (onClick) onClick(event);
|
|
855
|
+
if (!event.defaultPrevented) internalOnClick(event);
|
|
856
|
+
}
|
|
857
|
+
return /*#__PURE__*/ import_react$2.createElement("a", _extends({}, rest, {
|
|
858
|
+
href: absoluteHref || href,
|
|
859
|
+
onClick: isExternal || reloadDocument ? onClick : handleClick,
|
|
860
|
+
ref,
|
|
861
|
+
target
|
|
862
|
+
}));
|
|
863
|
+
});
|
|
864
|
+
(function(DataRouterHook) {
|
|
865
|
+
DataRouterHook["UseScrollRestoration"] = "useScrollRestoration";
|
|
866
|
+
DataRouterHook["UseSubmit"] = "useSubmit";
|
|
867
|
+
DataRouterHook["UseSubmitFetcher"] = "useSubmitFetcher";
|
|
868
|
+
DataRouterHook["UseFetcher"] = "useFetcher";
|
|
869
|
+
})(DataRouterHook || (DataRouterHook = {}));
|
|
870
|
+
(function(DataRouterStateHook) {
|
|
871
|
+
DataRouterStateHook["UseFetchers"] = "useFetchers";
|
|
872
|
+
DataRouterStateHook["UseScrollRestoration"] = "useScrollRestoration";
|
|
873
|
+
})(DataRouterStateHook || (DataRouterStateHook = {}));
|
|
874
|
+
})))();
|
|
875
|
+
}
|
|
876
|
+
//#endregion
|
|
877
|
+
//#region ../../node_modules/react-transition-state/dist/esm/internal.mjs
|
|
878
|
+
var STATUS, getState, startOrEnd, getEndStatus, getTimeout, nextTick;
|
|
879
|
+
function init_internal() {
|
|
880
|
+
return (init_internal = __esmMin((() => {
|
|
881
|
+
STATUS = [
|
|
882
|
+
"preEnter",
|
|
883
|
+
"entering",
|
|
884
|
+
"entered",
|
|
885
|
+
"preExit",
|
|
886
|
+
"exiting",
|
|
887
|
+
"exited",
|
|
888
|
+
"unmounted"
|
|
889
|
+
];
|
|
890
|
+
getState = (status) => ({
|
|
891
|
+
$: status,
|
|
892
|
+
status: STATUS[status],
|
|
893
|
+
isEnter: status < 3,
|
|
894
|
+
isMounted: status !== 6,
|
|
895
|
+
isResolved: status === 2 || status > 4
|
|
896
|
+
});
|
|
897
|
+
startOrEnd = (unmounted) => unmounted ? 6 : 5;
|
|
898
|
+
getEndStatus = (status, unmountOnExit) => {
|
|
899
|
+
switch (status) {
|
|
900
|
+
case 1:
|
|
901
|
+
case 0: return 2;
|
|
902
|
+
case 4:
|
|
903
|
+
case 3: return startOrEnd(unmountOnExit);
|
|
904
|
+
}
|
|
905
|
+
};
|
|
906
|
+
getTimeout = (timeout) => typeof timeout === "object" ? [timeout.enter, timeout.exit] : [timeout, timeout];
|
|
907
|
+
nextTick = (callback, config) => {
|
|
908
|
+
config.r = requestAnimationFrame(() => {
|
|
909
|
+
config.r = requestAnimationFrame(callback);
|
|
910
|
+
});
|
|
911
|
+
};
|
|
912
|
+
})))();
|
|
913
|
+
}
|
|
914
|
+
//#endregion
|
|
915
|
+
//#region ../../node_modules/react-transition-state/dist/esm/useTransitionState.mjs
|
|
916
|
+
var import_react$1, updateState, useTransitionState;
|
|
917
|
+
function init_useTransitionState() {
|
|
918
|
+
return (init_useTransitionState = __esmMin((() => {
|
|
919
|
+
init_internal();
|
|
920
|
+
import_react$1 = require_react();
|
|
921
|
+
updateState = (status, setState, ref, onChange) => {
|
|
922
|
+
clearTimeout(ref.t);
|
|
923
|
+
cancelAnimationFrame(ref.r);
|
|
924
|
+
const state = getState(status);
|
|
925
|
+
setState(state);
|
|
926
|
+
ref.s = state;
|
|
927
|
+
onChange?.({ current: state });
|
|
928
|
+
};
|
|
929
|
+
useTransitionState = ({ enter = true, exit = true, preEnter, preExit, timeout, initialEntered, mountOnEnter, unmountOnExit, onStateChange: onChange } = {}) => {
|
|
930
|
+
const [state, setState] = (0, import_react$1.useState)(() => getState(initialEntered ? 2 : startOrEnd(mountOnEnter)));
|
|
931
|
+
const [ref] = (0, import_react$1.useState)({
|
|
932
|
+
s: state,
|
|
933
|
+
r: 0
|
|
934
|
+
});
|
|
935
|
+
const [enterTimeout, exitTimeout] = getTimeout(timeout);
|
|
936
|
+
const endTransition = (0, import_react$1.useCallback)(() => {
|
|
937
|
+
const status = getEndStatus(ref.s.$, unmountOnExit);
|
|
938
|
+
if (status) updateState(status, setState, ref, onChange);
|
|
939
|
+
}, [
|
|
940
|
+
onChange,
|
|
941
|
+
unmountOnExit,
|
|
942
|
+
ref
|
|
943
|
+
]);
|
|
944
|
+
return [
|
|
945
|
+
state,
|
|
946
|
+
(0, import_react$1.useCallback)((toEnter) => {
|
|
947
|
+
const transitState = (status) => {
|
|
948
|
+
updateState(status, setState, ref, onChange);
|
|
949
|
+
switch (status) {
|
|
950
|
+
case 1:
|
|
951
|
+
if (enterTimeout >= 0) ref.t = setTimeout(endTransition, enterTimeout);
|
|
952
|
+
break;
|
|
953
|
+
case 4:
|
|
954
|
+
if (exitTimeout >= 0) ref.t = setTimeout(endTransition, exitTimeout);
|
|
955
|
+
break;
|
|
956
|
+
case 0:
|
|
957
|
+
case 3: nextTick(() => transitState(status + 1), ref);
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
const enterStage = ref.s.isEnter;
|
|
961
|
+
if (typeof toEnter !== "boolean") toEnter = !enterStage;
|
|
962
|
+
if (toEnter) !enterStage && transitState(enter ? preEnter ? 0 : 1 : 2);
|
|
963
|
+
else enterStage && transitState(exit ? preExit ? 3 : 4 : startOrEnd(unmountOnExit));
|
|
964
|
+
}, [
|
|
965
|
+
ref,
|
|
966
|
+
endTransition,
|
|
967
|
+
onChange,
|
|
968
|
+
enter,
|
|
969
|
+
exit,
|
|
970
|
+
preEnter,
|
|
971
|
+
preExit,
|
|
972
|
+
enterTimeout,
|
|
973
|
+
exitTimeout,
|
|
974
|
+
unmountOnExit
|
|
975
|
+
]),
|
|
976
|
+
endTransition
|
|
977
|
+
];
|
|
978
|
+
};
|
|
979
|
+
})))();
|
|
980
|
+
}
|
|
981
|
+
//#endregion
|
|
982
|
+
//#region ../../node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js
|
|
983
|
+
function calculateNodeHeight(sizingData, value, minRows, maxRows) {
|
|
984
|
+
if (minRows === void 0) minRows = 1;
|
|
985
|
+
if (maxRows === void 0) maxRows = Infinity;
|
|
986
|
+
if (!hiddenTextarea) {
|
|
987
|
+
hiddenTextarea = document.createElement("textarea");
|
|
988
|
+
hiddenTextarea.setAttribute("tabindex", "-1");
|
|
989
|
+
hiddenTextarea.setAttribute("aria-hidden", "true");
|
|
990
|
+
forceHiddenStyles$1(hiddenTextarea);
|
|
991
|
+
}
|
|
992
|
+
if (hiddenTextarea.parentNode === null) document.body.appendChild(hiddenTextarea);
|
|
993
|
+
var paddingSize = sizingData.paddingSize, borderSize = sizingData.borderSize, sizingStyle = sizingData.sizingStyle;
|
|
994
|
+
var boxSizing = sizingStyle.boxSizing;
|
|
995
|
+
Object.keys(sizingStyle).forEach(function(_key) {
|
|
996
|
+
var key = _key;
|
|
997
|
+
hiddenTextarea.style[key] = sizingStyle[key];
|
|
998
|
+
});
|
|
999
|
+
forceHiddenStyles$1(hiddenTextarea);
|
|
1000
|
+
hiddenTextarea.value = value;
|
|
1001
|
+
var height = getHeight(hiddenTextarea, sizingData);
|
|
1002
|
+
hiddenTextarea.value = value;
|
|
1003
|
+
height = getHeight(hiddenTextarea, sizingData);
|
|
1004
|
+
hiddenTextarea.value = "x";
|
|
1005
|
+
var rowHeight = hiddenTextarea.scrollHeight - paddingSize;
|
|
1006
|
+
var minHeight = rowHeight * minRows;
|
|
1007
|
+
if (boxSizing === "border-box") minHeight = minHeight + paddingSize + borderSize;
|
|
1008
|
+
height = Math.max(minHeight, height);
|
|
1009
|
+
var maxHeight = rowHeight * maxRows;
|
|
1010
|
+
if (boxSizing === "border-box") maxHeight = maxHeight + paddingSize + borderSize;
|
|
1011
|
+
height = Math.min(maxHeight, height);
|
|
1012
|
+
return [height, rowHeight];
|
|
1013
|
+
}
|
|
1014
|
+
function useListener(target, type, listener) {
|
|
1015
|
+
var latestListener = useLatest(listener);
|
|
1016
|
+
import_react.useLayoutEffect(function() {
|
|
1017
|
+
var handler = function handler(ev) {
|
|
1018
|
+
return latestListener.current(ev);
|
|
1019
|
+
};
|
|
1020
|
+
if (!target) return;
|
|
1021
|
+
target.addEventListener(type, handler);
|
|
1022
|
+
return function() {
|
|
1023
|
+
return target.removeEventListener(type, handler);
|
|
1024
|
+
};
|
|
1025
|
+
}, []);
|
|
1026
|
+
}
|
|
1027
|
+
var import_react, HIDDEN_TEXTAREA_STYLE, forceHiddenStyles$1, hiddenTextarea, getHeight, noop, pick, SIZING_STYLE, isIE, getSizingData$1, useFormResetListener, useWindowResizeListener, useFontsLoadedListener, _excluded, index;
|
|
1028
|
+
function init_react_textarea_autosize_browser_esm() {
|
|
1029
|
+
return (init_react_textarea_autosize_browser_esm = __esmMin((() => {
|
|
1030
|
+
import_react = /* @__PURE__ */ __toESM(require_react());
|
|
1031
|
+
init_use_latest_esm();
|
|
1032
|
+
init_use_composed_ref_esm();
|
|
1033
|
+
HIDDEN_TEXTAREA_STYLE = {
|
|
1034
|
+
"min-height": "0",
|
|
1035
|
+
"max-height": "none",
|
|
1036
|
+
height: "0",
|
|
1037
|
+
visibility: "hidden",
|
|
1038
|
+
overflow: "hidden",
|
|
1039
|
+
position: "absolute",
|
|
1040
|
+
"z-index": "-1000",
|
|
1041
|
+
top: "0",
|
|
1042
|
+
right: "0",
|
|
1043
|
+
display: "block"
|
|
1044
|
+
};
|
|
1045
|
+
forceHiddenStyles$1 = function forceHiddenStyles(node) {
|
|
1046
|
+
Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function(key) {
|
|
1047
|
+
node.style.setProperty(key, HIDDEN_TEXTAREA_STYLE[key], "important");
|
|
1048
|
+
});
|
|
1049
|
+
};
|
|
1050
|
+
hiddenTextarea = null;
|
|
1051
|
+
getHeight = function getHeight(node, sizingData) {
|
|
1052
|
+
var height = node.scrollHeight;
|
|
1053
|
+
if (sizingData.sizingStyle.boxSizing === "border-box") return height + sizingData.borderSize;
|
|
1054
|
+
return height - sizingData.paddingSize;
|
|
1055
|
+
};
|
|
1056
|
+
noop = function noop() {};
|
|
1057
|
+
pick = function pick(props, obj) {
|
|
1058
|
+
return props.reduce(function(acc, prop) {
|
|
1059
|
+
acc[prop] = obj[prop];
|
|
1060
|
+
return acc;
|
|
1061
|
+
}, {});
|
|
1062
|
+
};
|
|
1063
|
+
SIZING_STYLE = [
|
|
1064
|
+
"borderBottomWidth",
|
|
1065
|
+
"borderLeftWidth",
|
|
1066
|
+
"borderRightWidth",
|
|
1067
|
+
"borderTopWidth",
|
|
1068
|
+
"boxSizing",
|
|
1069
|
+
"fontFamily",
|
|
1070
|
+
"fontSize",
|
|
1071
|
+
"fontStyle",
|
|
1072
|
+
"fontWeight",
|
|
1073
|
+
"letterSpacing",
|
|
1074
|
+
"lineHeight",
|
|
1075
|
+
"paddingBottom",
|
|
1076
|
+
"paddingLeft",
|
|
1077
|
+
"paddingRight",
|
|
1078
|
+
"paddingTop",
|
|
1079
|
+
"tabSize",
|
|
1080
|
+
"textIndent",
|
|
1081
|
+
"textRendering",
|
|
1082
|
+
"textTransform",
|
|
1083
|
+
"width",
|
|
1084
|
+
"wordBreak",
|
|
1085
|
+
"wordSpacing",
|
|
1086
|
+
"scrollbarGutter"
|
|
1087
|
+
];
|
|
1088
|
+
isIE = !!document.documentElement.currentStyle;
|
|
1089
|
+
getSizingData$1 = function getSizingData(node) {
|
|
1090
|
+
var style = window.getComputedStyle(node);
|
|
1091
|
+
if (style === null) return null;
|
|
1092
|
+
var sizingStyle = pick(SIZING_STYLE, style);
|
|
1093
|
+
var boxSizing = sizingStyle.boxSizing;
|
|
1094
|
+
if (boxSizing === "") return null;
|
|
1095
|
+
if (isIE && boxSizing === "border-box") sizingStyle.width = parseFloat(sizingStyle.width) + parseFloat(sizingStyle.borderRightWidth) + parseFloat(sizingStyle.borderLeftWidth) + parseFloat(sizingStyle.paddingRight) + parseFloat(sizingStyle.paddingLeft) + "px";
|
|
1096
|
+
return {
|
|
1097
|
+
sizingStyle,
|
|
1098
|
+
paddingSize: parseFloat(sizingStyle.paddingBottom) + parseFloat(sizingStyle.paddingTop),
|
|
1099
|
+
borderSize: parseFloat(sizingStyle.borderBottomWidth) + parseFloat(sizingStyle.borderTopWidth)
|
|
1100
|
+
};
|
|
1101
|
+
};
|
|
1102
|
+
useFormResetListener = function useFormResetListener(libRef, listener) {
|
|
1103
|
+
useListener(document.body, "reset", function(ev) {
|
|
1104
|
+
if (libRef.current.form === ev.target) listener(ev);
|
|
1105
|
+
});
|
|
1106
|
+
};
|
|
1107
|
+
useWindowResizeListener = function useWindowResizeListener(listener) {
|
|
1108
|
+
useListener(window, "resize", listener);
|
|
1109
|
+
};
|
|
1110
|
+
useFontsLoadedListener = function useFontsLoadedListener(listener) {
|
|
1111
|
+
useListener(document.fonts, "loadingdone", listener);
|
|
1112
|
+
};
|
|
1113
|
+
_excluded = [
|
|
1114
|
+
"cacheMeasurements",
|
|
1115
|
+
"maxRows",
|
|
1116
|
+
"minRows",
|
|
1117
|
+
"onChange",
|
|
1118
|
+
"onHeightChange"
|
|
1119
|
+
];
|
|
1120
|
+
index = /* #__PURE__ */ import_react.forwardRef(function TextareaAutosize(_ref, userRef) {
|
|
1121
|
+
var cacheMeasurements = _ref.cacheMeasurements, maxRows = _ref.maxRows, minRows = _ref.minRows, _ref$onChange = _ref.onChange, onChange = _ref$onChange === void 0 ? noop : _ref$onChange, _ref$onHeightChange = _ref.onHeightChange, onHeightChange = _ref$onHeightChange === void 0 ? noop : _ref$onHeightChange, props = _objectWithoutPropertiesLoose$1(_ref, _excluded);
|
|
1122
|
+
var isControlled = props.value !== void 0;
|
|
1123
|
+
var libRef = import_react.useRef(null);
|
|
1124
|
+
var ref = useComposedRef(libRef, userRef);
|
|
1125
|
+
var heightRef = import_react.useRef(0);
|
|
1126
|
+
var measurementsCacheRef = import_react.useRef();
|
|
1127
|
+
var resizeTextarea = function resizeTextarea() {
|
|
1128
|
+
var node = libRef.current;
|
|
1129
|
+
var nodeSizingData = cacheMeasurements && measurementsCacheRef.current ? measurementsCacheRef.current : getSizingData$1(node);
|
|
1130
|
+
if (!nodeSizingData) return;
|
|
1131
|
+
measurementsCacheRef.current = nodeSizingData;
|
|
1132
|
+
var _calculateNodeHeight = calculateNodeHeight(nodeSizingData, node.value || node.placeholder || "x", minRows, maxRows), height = _calculateNodeHeight[0], rowHeight = _calculateNodeHeight[1];
|
|
1133
|
+
if (heightRef.current !== height) {
|
|
1134
|
+
heightRef.current = height;
|
|
1135
|
+
node.style.setProperty("height", height + "px", "important");
|
|
1136
|
+
onHeightChange(height, { rowHeight });
|
|
1137
|
+
}
|
|
1138
|
+
};
|
|
1139
|
+
var handleChange = function handleChange(event) {
|
|
1140
|
+
if (!isControlled) resizeTextarea();
|
|
1141
|
+
onChange(event);
|
|
1142
|
+
};
|
|
1143
|
+
import_react.useLayoutEffect(resizeTextarea);
|
|
1144
|
+
useFormResetListener(libRef, function() {
|
|
1145
|
+
if (!isControlled) {
|
|
1146
|
+
var currentValue = libRef.current.value;
|
|
1147
|
+
requestAnimationFrame(function() {
|
|
1148
|
+
var node = libRef.current;
|
|
1149
|
+
if (node && currentValue !== node.value) resizeTextarea();
|
|
1150
|
+
});
|
|
1151
|
+
}
|
|
1152
|
+
});
|
|
1153
|
+
useWindowResizeListener(resizeTextarea);
|
|
1154
|
+
useFontsLoadedListener(resizeTextarea);
|
|
1155
|
+
return /*#__PURE__*/ import_react.createElement("textarea", _extends$2({}, props, {
|
|
1156
|
+
onChange: handleChange,
|
|
1157
|
+
ref
|
|
1158
|
+
}));
|
|
1159
|
+
});
|
|
1160
|
+
})))();
|
|
1161
|
+
}
|
|
1162
|
+
//#endregion
|
|
1163
|
+
export { BrowserRouter as a, MemoryRouter as c, useLocation as d, useNavigate as f, useTransitionState as i, Router as l, require_react_production as m, init_react_textarea_autosize_browser_esm as n, Link as o, require_react_jsx_runtime_production as p, init_useTransitionState as r, init_dist$1 as s, index as t, init_dist as u };
|