@aussieljk/forkbook 0.0.1-2 → 0.0.1-4
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/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 +1 -1
- package/assets/create/rendererAssets/common/header.css +1 -1
- package/assets/create/rendererAssets/common/page.css +2 -2
- package/assets/server/base-preview-body.html +32 -32
- package/assets/server/base-preview-head.html +86 -86
- package/assets/server/template.ejs +11 -26
- package/dist/_browser-chunks/{Color-PCLE2J36.js → Color-KRDPNBZS.js} +6 -6
- package/dist/_browser-chunks/{WithTooltip-XSQFTBMB.js → WithTooltip-523JD6VH.js} +4 -4
- package/dist/_browser-chunks/{chunk-66OCZ54D.js → chunk-3HM3VWJS.js} +1 -1
- package/dist/_browser-chunks/{chunk-CFAOWGL7.js → chunk-3M5T7BW4.js} +1 -1
- package/dist/_browser-chunks/{chunk-2MEPHP35.js → chunk-4KIQBRD2.js} +1 -1
- package/dist/_browser-chunks/{chunk-OQWFVDIN.js → chunk-5H4KFI44.js} +1 -1
- package/dist/_browser-chunks/{chunk-PFRNG3UC.js → chunk-6ELMKWKX.js} +5 -5
- package/dist/_browser-chunks/{chunk-C3D4HEFY.js → chunk-6SHRDXGF.js} +24 -24
- package/dist/_browser-chunks/{chunk-6SXYJQST.js → chunk-76222HQR.js} +1 -1
- package/dist/_browser-chunks/{chunk-JSBKXXXF.js → chunk-7DQREF4S.js} +1 -1
- package/dist/_browser-chunks/{chunk-RSPAQWVJ.js → chunk-BNP234B4.js} +1 -1
- package/dist/_browser-chunks/{chunk-KQ7CRO2B.js → chunk-BZGX2THJ.js} +10 -10
- package/dist/_browser-chunks/{chunk-P6PK47TQ.js → chunk-DS2WQZGO.js} +7 -21
- package/dist/_browser-chunks/{chunk-FJGWSWL5.js → chunk-DYNTDJ3O.js} +3 -3
- package/dist/_browser-chunks/{chunk-ODVJ3XZJ.js → chunk-GRO2ZYEJ.js} +2 -2
- package/dist/_browser-chunks/{chunk-LV5PIKV4.js → chunk-GU3X2J4S.js} +2 -2
- package/dist/_browser-chunks/{chunk-MDOL7KML.js → chunk-K2B36HKM.js} +1 -1
- package/dist/_browser-chunks/{chunk-CFWWCCZV.js → chunk-K6GRZSXS.js} +1 -1
- package/dist/_browser-chunks/{chunk-YTIT5NA5.js → chunk-KYSD26D6.js} +3 -3
- package/dist/_browser-chunks/{chunk-JYVGARBG.js → chunk-LXQPPHMD.js} +85 -93
- 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-OD6IBQCC.js → chunk-N3NRW5XX.js} +2 -2
- package/dist/_browser-chunks/{chunk-V2G23FV7.js → chunk-N5WQGLI7.js} +1 -1
- package/dist/_browser-chunks/{chunk-W5M6NPS3.js → chunk-NMRSYACM.js} +2 -2
- package/dist/_browser-chunks/{chunk-YEKO6BHJ.js → chunk-ONTSNQON.js} +1 -1
- package/dist/_browser-chunks/{chunk-EIYAKDGP.js → chunk-SZCSXISG.js} +124 -104
- package/dist/_browser-chunks/{chunk-JMC7AIKT.js → chunk-UDQ3XQFC.js} +1 -1
- package/dist/_browser-chunks/{chunk-MFMDGWP6.js → chunk-ZLWA5RIE.js} +1 -1
- package/dist/_node-chunks/{attached-runtime-I2G4WLJI.js → attached-runtime-CYMSKF3A.js} +29 -29
- package/dist/_node-chunks/{builder-manager-VVHYQXCH.js → builder-manager-RMLSIO45.js} +32 -32
- package/dist/_node-chunks/{chunk-UVINFLGY.js → chunk-2APY2YSW.js} +7 -7
- package/dist/_node-chunks/{chunk-NPO45IMH.js → chunk-2IJCISIB.js} +6 -6
- package/dist/_node-chunks/{chunk-EWOX7HPJ.js → chunk-2NWHHNNI.js} +6 -6
- package/dist/_node-chunks/{chunk-XGIUVY52.js → chunk-2QWFS23O.js} +7 -7
- package/dist/_node-chunks/{chunk-TFEWM4E3.js → chunk-3XDIBUGD.js} +12 -11
- package/dist/_node-chunks/{chunk-JGGFYIG5.js → chunk-4GD7MMLJ.js} +7 -7
- package/dist/_node-chunks/{chunk-GRBLDJCR.js → chunk-4LPAWP5S.js} +24 -24
- package/dist/_node-chunks/{chunk-LO56I6E2.js → chunk-5TPSYG4L.js} +8 -8
- package/dist/_node-chunks/{chunk-TNJIXE37.js → chunk-5ZLOPVTG.js} +6 -6
- package/dist/_node-chunks/{chunk-B5J7Q7J4.js → chunk-653BSJIX.js} +6 -6
- package/dist/_node-chunks/{chunk-MA24JW6C.js → chunk-6Y6RBJD7.js} +8 -8
- package/dist/_node-chunks/{chunk-WNZ2UMFM.js → chunk-74IEHSIR.js} +8 -8
- package/dist/_node-chunks/{chunk-Q7QNUM5H.js → chunk-7JA2DMCJ.js} +6 -6
- package/dist/_node-chunks/chunk-7XCEKQGV.js +18 -0
- package/dist/_node-chunks/{chunk-YCMRA6RX.js → chunk-7XCJ7RAJ.js} +7 -7
- package/dist/_node-chunks/{chunk-3SDUYDXH.js → chunk-A2UMIN5B.js} +7 -7
- package/dist/_node-chunks/{chunk-SWO5CDYU.js → chunk-A4YELYR3.js} +8 -8
- package/dist/_node-chunks/{chunk-RZMQ7S3L.js → chunk-AFKKN27O.js} +6 -6
- package/dist/_node-chunks/{chunk-6YKBRP72.js → chunk-AU3SF2WM.js} +6 -6
- package/dist/_node-chunks/{chunk-WZJF2OUH.js → chunk-AY6B2C46.js} +7 -7
- package/dist/_node-chunks/{chunk-XHL2LVBM.js → chunk-B3LK7C7B.js} +13 -13
- package/dist/_node-chunks/{chunk-ET7PWEO7.js → chunk-B5VFV3ZW.js} +10 -10
- package/dist/_node-chunks/{chunk-U5W53R2J.js → chunk-BOUA7OB7.js} +22 -32
- package/dist/_node-chunks/{chunk-FK7KGTV7.js → chunk-CGWACHNW.js} +6 -6
- package/dist/_node-chunks/{chunk-5DQFEZEA.js → chunk-DD2S4BFV.js} +6 -6
- package/dist/_node-chunks/{chunk-CCOTJ4FC.js → chunk-DIUBMAMV.js} +8 -8
- package/dist/_node-chunks/{chunk-BS2WMZMR.js → chunk-DVLFCSDG.js} +7 -7
- package/dist/_node-chunks/{chunk-MK2KYAI6.js → chunk-EGS2SAD2.js} +13 -13
- package/dist/_node-chunks/{chunk-2BUPBPFB.js → chunk-ESZVID7Q.js} +7 -7
- package/dist/_node-chunks/{chunk-EHUNOMDD.js → chunk-F2N6BJRH.js} +10 -10
- package/dist/_node-chunks/{chunk-OWNFOGTA.js → chunk-FAZ3MUOI.js} +7 -7
- package/dist/_node-chunks/{chunk-34EO2PUT.js → chunk-FJDJE7XC.js} +6 -6
- package/dist/_node-chunks/{chunk-H4PPVMP5.js → chunk-FNGLVURC.js} +6 -6
- package/dist/_node-chunks/{chunk-UBOGWBEA.js → chunk-GEMKJCEE.js} +10 -10
- package/dist/_node-chunks/{chunk-BXVYT7SB.js → chunk-GKTCJPLL.js} +6 -6
- package/dist/_node-chunks/{chunk-FW2HQUBQ.js → chunk-GZBUCUF7.js} +6 -6
- package/dist/_node-chunks/{chunk-QEQLR22M.js → chunk-HENM5ZK3.js} +7 -7
- package/dist/_node-chunks/{chunk-LXBD4UL4.js → chunk-HP5UY6OY.js} +6 -6
- package/dist/_node-chunks/chunk-HQM4ISVU.js +11 -0
- package/dist/_node-chunks/{chunk-DC7DKR5K.js → chunk-HUFAUSEX.js} +6 -6
- package/dist/_node-chunks/{chunk-UMUBKI6E.js → chunk-IBO346NQ.js} +25 -25
- package/dist/_node-chunks/{chunk-42UWAGPW.js → chunk-ILFIERUB.js} +8 -8
- package/dist/_node-chunks/{chunk-YZFWBA5L.js → chunk-INEYTOWF.js} +13 -13
- package/dist/_node-chunks/{chunk-CQKMLL5J.js → chunk-IR34HUSL.js} +7 -7
- package/dist/_node-chunks/{chunk-IK4FGZLR.js → chunk-J3M3X7GO.js} +6 -6
- package/dist/_node-chunks/{chunk-XLP2ZKXV.js → chunk-JEEXR245.js} +7 -7
- package/dist/_node-chunks/{chunk-ZMAMXQKP.js → chunk-K3I3G4VL.js} +7 -7
- package/dist/_node-chunks/{chunk-DUR55DJJ.js → chunk-KINEBDMM.js} +35 -35
- package/dist/_node-chunks/{chunk-XI6B6P47.js → chunk-KN2S7JF2.js} +6 -6
- package/dist/_node-chunks/{chunk-OISX4AGQ.js → chunk-KXDJ77EW.js} +7 -7
- package/dist/_node-chunks/{chunk-VLOXOXXE.js → chunk-KZBZYQTZ.js} +9 -9
- package/dist/_node-chunks/{chunk-H32DYT6P.js → chunk-LGUMVMBA.js} +6 -6
- package/dist/_node-chunks/{chunk-RRN2V55B.js → chunk-M2UZP5GC.js} +7 -7
- package/dist/_node-chunks/{chunk-3Y6AAY5H.js → chunk-MOITZTEA.js} +8 -8
- package/dist/_node-chunks/{chunk-HMP2G23X.js → chunk-MRZD5SBV.js} +6 -6
- package/dist/_node-chunks/{chunk-JPAZLYJ3.js → chunk-MZMPFII2.js} +6 -6
- package/dist/_node-chunks/{chunk-V2DY426G.js → chunk-NAYTBC72.js} +8 -8
- package/dist/_node-chunks/{chunk-4FEANXWU.js → chunk-NHIRHARE.js} +12 -12
- package/dist/_node-chunks/{chunk-6LMWA44H.js → chunk-NYAWUR6L.js} +11 -25
- package/dist/_node-chunks/{chunk-IDEL2J23.js → chunk-NYRUWAL3.js} +6 -6
- package/dist/_node-chunks/{chunk-TEQGGSP7.js → chunk-OIIORQX5.js} +6 -6
- package/dist/_node-chunks/{chunk-WCULS5TP.js → chunk-OQ4NCWE4.js} +7 -7
- package/dist/_node-chunks/{chunk-F3ZFKBHY.js → chunk-OS5LQEC6.js} +8 -8
- package/dist/_node-chunks/{chunk-ZWBCQ4MJ.js → chunk-P6QAFJ5M.js} +8 -8
- package/dist/_node-chunks/{chunk-DHJFTB4K.js → chunk-PDCSUZ4L.js} +7 -7
- package/dist/_node-chunks/{chunk-NIBT7XDZ.js → chunk-POXTROIX.js} +6 -6
- package/dist/_node-chunks/{chunk-SLWQNBGO.js → chunk-QDLR4JF5.js} +10 -10
- package/dist/_node-chunks/{chunk-TFCEV2XX.js → chunk-QU5ANYM7.js} +6 -6
- package/dist/_node-chunks/{chunk-LCK4ZQKG.js → chunk-RMLENEZC.js} +9 -9
- package/dist/_node-chunks/{chunk-TWI4GVH7.js → chunk-RNF3Z4ZJ.js} +6 -6
- package/dist/_node-chunks/{chunk-KISMCCP5.js → chunk-SBQT3LMM.js} +10 -10
- package/dist/_node-chunks/{chunk-GEFQN7K3.js → chunk-SQMCVWOR.js} +8 -8
- package/dist/_node-chunks/{chunk-3BKIBF5S.js → chunk-SSZ5REKS.js} +8 -8
- package/dist/_node-chunks/{chunk-SVTBJ7Q3.js → chunk-STRSG3GT.js} +6 -6
- package/dist/_node-chunks/{chunk-OUW6R7C3.js → chunk-TLVEPWBN.js} +6 -6
- package/dist/_node-chunks/{chunk-2DSIDINN.js → chunk-U5QMVW3H.js} +7 -7
- package/dist/_node-chunks/{chunk-RXNJDRGO.js → chunk-UAALLQAQ.js} +9 -9
- package/dist/_node-chunks/{chunk-NDWKJ4CL.js → chunk-UIFLXDUL.js} +36 -35
- package/dist/_node-chunks/{chunk-3W7F2B7P.js → chunk-UMZSNFWM.js} +6 -6
- package/dist/_node-chunks/{chunk-ICPBH3E7.js → chunk-UXW4I2CN.js} +7 -7
- package/dist/_node-chunks/{chunk-FPZB5OI7.js → chunk-V2JDVM46.js} +6 -6
- package/dist/_node-chunks/{chunk-6KEHV53S.js → chunk-VPOJCHKM.js} +14 -14
- package/dist/_node-chunks/{chunk-TD5PLLQG.js → chunk-WBTLBIED.js} +6 -6
- package/dist/_node-chunks/{chunk-3T4ZSNPH.js → chunk-WEW23EEE.js} +8 -8
- package/dist/_node-chunks/{chunk-E6YESGLX.js → chunk-WHZWLJGO.js} +30 -30
- package/dist/_node-chunks/{chunk-CXRU72ET.js → chunk-WS367FSJ.js} +6 -6
- package/dist/_node-chunks/{chunk-7GUDZVRQ.js → chunk-X2KWNNFB.js} +6 -6
- package/dist/_node-chunks/{chunk-JZOO7GGC.js → chunk-X3E55W5S.js} +6 -6
- package/dist/_node-chunks/{chunk-JDXXX6LB.js → chunk-XBXGLD3K.js} +6 -6
- package/dist/_node-chunks/{chunk-W4OMYLSP.js → chunk-XD5SYXAU.js} +37 -37
- package/dist/_node-chunks/{chunk-TINO74G5.js → chunk-XH6TDVML.js} +6 -6
- package/dist/_node-chunks/{chunk-SIEXZVCR.js → chunk-XWQEWRFD.js} +6 -6
- package/dist/_node-chunks/{chunk-BSKFCWQD.js → chunk-YGXJOSRU.js} +7 -7
- package/dist/_node-chunks/{chunk-RWFIFGO5.js → chunk-YU2WFBFL.js} +7 -7
- package/dist/_node-chunks/chunk-YYIZ2PC4.js +20 -0
- package/dist/_node-chunks/dist-CNA633FI.js +16 -0
- package/dist/_node-chunks/{globby-OEMHPBFY.js → globby-HRQV5N3V.js} +10 -10
- package/dist/_node-chunks/{jiti-NFX6UU74.js → jiti-WE7NHS2Y.js} +7 -7
- package/dist/_node-chunks/{lib-MDVARD7W.js → lib-7MVA6CTW.js} +7 -7
- package/dist/_node-chunks/{local-runtime-NTKIN2QT.js → local-runtime-KTI3DH6X.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-MWISDWDQ.js → mdx-plugin-2E3SW5TL.js} +14 -14
- package/dist/_node-chunks/{monorepo-LIRFMQXE.js → monorepo-MWAMFHKY.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-MGORG6W7.js} +12 -12
- package/dist/_node-chunks/optimized-tests-IAX6YURR.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-EKHIUAU2.js → pattern-copy-play-QTQOY7E7.js} +10 -10
- package/dist/_node-chunks/postinstallAddon-ROH2TBJX.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-BUN3HUCO.js → rehype-external-links-T7DZNKMB.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-PLADX223.js → rehype-slug-CSHI5WYI.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-GBHW6KIQ.js → relaxed-limits-RAZD36YR.js} +12 -12
- package/dist/_node-chunks/{run-KDTIZNSY.js → run-KJ3Z2TTY.js} +17 -17
- package/dist/_node-chunks/{run-NL66VTNR.js → run-S6XSLPEB.js} +13 -13
- package/dist/_node-chunks/session-id-GM226DGP.js +23 -0
- package/dist/_node-chunks/{setup-MGC7BQO6.js → setup-35J66GFB.js} +9 -9
- package/dist/_node-chunks/{vitest.config.4.template-JH2THZFG.js → vitest.config.4.template-Z7OCRDKD.js} +9 -9
- package/dist/actions/decorator.js +2 -2
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.js +2 -2
- package/dist/addon-a11y/index.d.ts +3 -3
- package/dist/addon-a11y/index.js +1 -1
- package/dist/addon-a11y/manager.js +24 -24
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +1 -1
- package/dist/addon-docs/blocks.js +56 -56
- package/dist/addon-docs/index.d.ts +19 -19
- package/dist/addon-docs/manager.js +6 -6
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-mcp/preset.js +27 -19
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +6 -5
- 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/preview.d.ts +1 -1
- package/dist/addon-themes/index.d.ts +1 -1
- package/dist/addon-themes/index.js +2 -2
- package/dist/addon-themes/manager.js +1 -1
- 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 +16 -16
- package/dist/addon-vitest/node/coverage-reporter.js +8 -8
- package/dist/addon-vitest/node/vitest.js +17 -17
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +14 -14
- package/dist/addon-vitest/vitest-plugin/global-setup.js +8 -8
- package/dist/addon-vitest/vitest-plugin/index.js +17 -17
- 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.js +12 -12
- package/dist/backgrounds/index.d.ts +1 -1
- package/dist/bin/core.js +59 -59
- package/dist/bin/dispatcher.js +10 -10
- package/dist/bin/loader.js +9 -9
- package/dist/builder-vite/index.js +17 -17
- package/dist/builder-vite/preset.js +13 -13
- package/dist/channels/index.js +6 -6
- package/dist/{chunk-Dw1z1Pki.d.ts → chunk-B2xylxt5.d.ts} +43 -43
- package/dist/{chunk-C-bavsOH.d.ts → chunk-BWzbIWPz.d.ts} +1 -1
- package/dist/{chunk-CwQKNaYL.d.ts → chunk-BYnH2sbb.d.ts} +1 -1
- package/dist/{chunk-CMeX4WRe.d.ts → chunk-CT2iXaHz.d.ts} +1 -1
- package/dist/{chunk-DzuY9DXg.d.ts → chunk-DDd8BhTY.d.ts} +2 -2
- package/dist/{chunk-BTVrWliM.d.ts → chunk-DF6btpT3.d.ts} +1 -1
- package/dist/{chunk-C2p5r3Vt.d.ts → chunk-DIz17UEJ.d.ts} +20 -20
- 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-DtHByo32.d.ts → chunk-DuDsmeM7.d.ts} +1 -1
- package/dist/{chunk-DEVFdzxR.d.ts → chunk-DvufcbCc.d.ts} +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +26 -26
- 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 +1 -1
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/common/index.d.ts +2 -2
- package/dist/common/index.js +37 -37
- package/dist/components/index.d.ts +8 -7
- package/dist/components/index.js +287 -292
- package/dist/core-events/index.d.ts +1 -1
- package/dist/core-server/index.d.ts +2 -2
- package/dist/core-server/index.js +77 -77
- package/dist/core-server/presets/common-manager.js +61 -61
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +44 -44
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/index.d.ts +5 -5
- package/dist/csf/index.js +29 -29
- package/dist/csf-tools/index.js +13 -13
- package/dist/docs-tools/index.js +2 -2
- package/dist/highlight/index.d.ts +1 -1
- package/dist/instrumenter/index.js +5 -5
- package/dist/manager/_manager-chunks/{globals-runtime-sGpNlIJ1.js → globals-runtime-C9P2ZbMM.js} +125 -133
- package/dist/manager/_manager-chunks/{globals-runtime-Rp_zjGnh.js → globals-runtime-DuLFjsF4.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-qKvCZHFY.js → globals-runtime-dKGpUUSb.js} +38 -62
- package/dist/manager/_manager-chunks/{globals-runtime-DpNYC-qi.js → globals-runtime-q5R9dawi.js} +408 -429
- package/dist/manager/_manager-chunks/{runtime-eDVAYF7N.js → runtime-50_aob4S.js} +2 -2
- package/dist/manager/_manager-chunks/runtime-89Cb0A8U.js +998 -0
- package/dist/manager/_manager-chunks/{runtime-D94Vq3oR.js → runtime-B9QzcYO3.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-i-PDAHLR.js → runtime-BGvLm94o.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-cp5pazY2.js → runtime-BdLdsHca.js} +427 -425
- package/dist/manager/_manager-chunks/{runtime-D0UOWx0U.js → runtime-CE2sHVqs.js} +58 -58
- package/dist/manager/_manager-chunks/{runtime-BK0zF7FN.js → runtime-CKP1i0--.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-BhkT2CXl.js → runtime-DdCaBowH.js} +17 -27
- package/dist/manager/_manager-chunks/{runtime-B1L9TH89.js → runtime-wL4UO7YO.js} +12 -12
- 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 +18 -47
- package/dist/manager-errors.d.ts +1 -1
- package/dist/manager-errors.js +2 -2
- package/dist/mcp/index.js +8 -8
- package/dist/mocking-utils/index.d.ts +2 -2
- package/dist/mocking-utils/index.js +15 -15
- package/dist/mocking-utils/mocker-runtime.js +2 -2
- package/dist/nextjs-vite/index.d.ts +1 -1
- package/dist/nextjs-vite/index.js +3 -3
- package/dist/nextjs-vite/node/index.d.ts +1 -1
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +11 -11
- package/dist/nextjs-vite/preview.js +1 -1
- package/dist/nextjs-vite/vite-plugin/index.js +7 -7
- package/dist/nextjs-vite-plugin/index.d.ts +1 -1
- package/dist/nextjs-vite-plugin/index.js +11 -11
- 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/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.js +10 -10
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-CxZK_Ln3.js → runtime-B3y8ocOg.js} +2 -2
- package/dist/preview/_chunks/{runtime-CsV4HZPV.js → runtime-BoxmlDdB.js} +66 -66
- package/dist/preview/_chunks/{runtime-BwSxqk3t.js → runtime-BsMjBzuq.js} +6 -16
- package/dist/preview/_chunks/{runtime-iXdo8CR8.js → runtime-CijtAN7R.js} +4 -4
- package/dist/preview/_chunks/{runtime-DuHdxMFA.js → runtime-D7B4bVe_.js} +3 -3
- package/dist/preview/_chunks/{runtime-DrTjJkPY.js → runtime-DVM_AHbR.js} +36 -36
- 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 +1 -1
- package/dist/preview-api/index.js +9 -9
- package/dist/preview-errors.d.ts +1 -1
- package/dist/preview-errors.js +2 -2
- package/dist/react/docgen/docgen-worker.js +12 -12
- package/dist/react/entry-preview.js +1 -1
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +3 -3
- package/dist/react/preset.js +14 -14
- package/dist/react/preview.d.ts +1 -1
- package/dist/react/preview.js +2 -2
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/index.d.ts +6 -6
- package/dist/react-native/index.js +21 -20
- package/dist/react-native/metro/node.d.ts +2 -2
- package/dist/react-native/metro/node.js +9 -9
- package/dist/react-native/metro/withStorybook.d.ts +1 -1
- package/dist/react-native/metro/withStorybook.js +16 -16
- package/dist/react-native/scripts/generate.js +8 -8
- 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 +6 -7
- package/dist/react-native-ui/index.js +7 -7
- package/dist/react-native-ui-common/index.d.ts +2 -3
- package/dist/react-vite/index.d.ts +1 -1
- package/dist/react-vite/node/index.d.ts +1 -1
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/router/index.js +1 -1
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +1 -1
- 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 +21 -21
- package/dist/telemetry/index.js +45 -45
- package/dist/test/index.js +2 -2
- package/dist/theming/create.js +1 -1
- package/dist/theming/index.d.ts +5 -5
- package/dist/theming/index.js +16 -16
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +5 -5
- package/dist/viewport/index.d.ts +1 -1
- package/package.json +6 -5
- 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.stories.js +2 -2
- package/template/nextjs-vite/cli/js/Page.jsx +2 -2
- 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/Configure.mdx +84 -84
- package/template/nextjs-vite/cli/ts/Header.stories.ts +2 -2
- package/template/nextjs-vite/cli/ts/Page.stories.ts +2 -2
- package/template/nextjs-vite/cli/ts/Page.tsx +2 -2
- package/template/react/cli/js/Button.stories.js +6 -6
- package/template/react/cli/js/Header.stories.js +2 -2
- package/template/react/cli/js/Page.jsx +2 -2
- 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/Header.stories.ts +2 -2
- package/template/react/cli/ts/Page.stories.ts +2 -2
- package/template/react/cli/ts/Page.tsx +2 -2
- package/template/react-vite/cli/js/Button.stories.js +6 -6
- package/template/react-vite/cli/js/Header.stories.js +2 -2
- package/template/react-vite/cli/js/Page.jsx +2 -2
- 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/Header.stories.ts +2 -2
- package/template/react-vite/cli/ts/Page.stories.ts +2 -2
- package/template/react-vite/cli/ts/Page.tsx +2 -2
- package/LICENSE +0 -22
- 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/_node-chunks/chunk-2RU7BKEW.js +0 -23
- package/dist/_node-chunks/chunk-FY6UXW6G.js +0 -11
- package/dist/_node-chunks/chunk-WAXVSN3O.js +0 -18
- package/dist/_node-chunks/dist-VTSTZKUB.js +0 -16
- 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-BxWufQms.d.ts +0 -142
- package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +0 -998
|
@@ -1,2326 +1,55 @@
|
|
|
1
1
|
import {
|
|
2
2
|
curriedTransparentize$1
|
|
3
3
|
} from "../_browser-chunks/chunk-S6TK43XQ.js";
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
} from "../_browser-chunks/chunk-LE2LTDW3.js";
|
|
7
|
-
import {
|
|
8
|
-
__commonJS,
|
|
9
|
-
__toESM
|
|
10
|
-
} from "../_browser-chunks/chunk-IMSF75WX.js";
|
|
11
|
-
|
|
12
|
-
// ../../node_modules/postcss-value-parser/lib/parse.js
|
|
13
|
-
var require_parse = __commonJS({
|
|
14
|
-
"../../node_modules/postcss-value-parser/lib/parse.js"(exports, module) {
|
|
15
|
-
var openParentheses = 40, closeParentheses = 41, singleQuote = 39, doubleQuote = 34, backslash = 92, slash = 47, comma = 44, colon = 58, star = 42, uLower = 117, uUpper = 85, plus = 43, isUnicodeRange = /^[a-f0-9?-]+$/i;
|
|
16
|
-
module.exports = function(input) {
|
|
17
|
-
for (var tokens = [], value = input, next2, quote, prev2, token2, escape, escapePos, whitespacePos, parenthesesOpenPos, pos = 0, code = value.charCodeAt(pos), max = value.length, stack = [{ nodes: tokens }], balanced = 0, parent, name = "", before = "", after = ""; pos < max; )
|
|
18
|
-
if (code <= 32) {
|
|
19
|
-
next2 = pos;
|
|
20
|
-
do
|
|
21
|
-
next2 += 1, code = value.charCodeAt(next2);
|
|
22
|
-
while (code <= 32);
|
|
23
|
-
token2 = value.slice(pos, next2), prev2 = tokens[tokens.length - 1], code === closeParentheses && balanced ? after = token2 : prev2 && prev2.type === "div" ? (prev2.after = token2, prev2.sourceEndIndex += token2.length) : code === comma || code === colon || code === slash && value.charCodeAt(next2 + 1) !== star && (!parent || parent && parent.type === "function" && parent.value !== "calc") ? before = token2 : tokens.push({
|
|
24
|
-
type: "space",
|
|
25
|
-
sourceIndex: pos,
|
|
26
|
-
sourceEndIndex: next2,
|
|
27
|
-
value: token2
|
|
28
|
-
}), pos = next2;
|
|
29
|
-
} else if (code === singleQuote || code === doubleQuote) {
|
|
30
|
-
next2 = pos, quote = code === singleQuote ? "'" : '"', token2 = {
|
|
31
|
-
type: "string",
|
|
32
|
-
sourceIndex: pos,
|
|
33
|
-
quote
|
|
34
|
-
};
|
|
35
|
-
do
|
|
36
|
-
if (escape = !1, next2 = value.indexOf(quote, next2 + 1), ~next2)
|
|
37
|
-
for (escapePos = next2; value.charCodeAt(escapePos - 1) === backslash; )
|
|
38
|
-
escapePos -= 1, escape = !escape;
|
|
39
|
-
else
|
|
40
|
-
value += quote, next2 = value.length - 1, token2.unclosed = !0;
|
|
41
|
-
while (escape);
|
|
42
|
-
token2.value = value.slice(pos + 1, next2), token2.sourceEndIndex = token2.unclosed ? next2 : next2 + 1, tokens.push(token2), pos = next2 + 1, code = value.charCodeAt(pos);
|
|
43
|
-
} else if (code === slash && value.charCodeAt(pos + 1) === star)
|
|
44
|
-
next2 = value.indexOf("*/", pos), token2 = {
|
|
45
|
-
type: "comment",
|
|
46
|
-
sourceIndex: pos,
|
|
47
|
-
sourceEndIndex: next2 + 2
|
|
48
|
-
}, next2 === -1 && (token2.unclosed = !0, next2 = value.length, token2.sourceEndIndex = next2), token2.value = value.slice(pos + 2, next2), tokens.push(token2), pos = next2 + 2, code = value.charCodeAt(pos);
|
|
49
|
-
else if ((code === slash || code === star) && parent && parent.type === "function" && parent.value === "calc")
|
|
50
|
-
token2 = value[pos], tokens.push({
|
|
51
|
-
type: "word",
|
|
52
|
-
sourceIndex: pos - before.length,
|
|
53
|
-
sourceEndIndex: pos + token2.length,
|
|
54
|
-
value: token2
|
|
55
|
-
}), pos += 1, code = value.charCodeAt(pos);
|
|
56
|
-
else if (code === slash || code === comma || code === colon)
|
|
57
|
-
token2 = value[pos], tokens.push({
|
|
58
|
-
type: "div",
|
|
59
|
-
sourceIndex: pos - before.length,
|
|
60
|
-
sourceEndIndex: pos + token2.length,
|
|
61
|
-
value: token2,
|
|
62
|
-
before,
|
|
63
|
-
after: ""
|
|
64
|
-
}), before = "", pos += 1, code = value.charCodeAt(pos);
|
|
65
|
-
else if (openParentheses === code) {
|
|
66
|
-
next2 = pos;
|
|
67
|
-
do
|
|
68
|
-
next2 += 1, code = value.charCodeAt(next2);
|
|
69
|
-
while (code <= 32);
|
|
70
|
-
if (parenthesesOpenPos = pos, token2 = {
|
|
71
|
-
type: "function",
|
|
72
|
-
sourceIndex: pos - name.length,
|
|
73
|
-
value: name,
|
|
74
|
-
before: value.slice(parenthesesOpenPos + 1, next2)
|
|
75
|
-
}, pos = next2, name === "url" && code !== singleQuote && code !== doubleQuote) {
|
|
76
|
-
next2 -= 1;
|
|
77
|
-
do
|
|
78
|
-
if (escape = !1, next2 = value.indexOf(")", next2 + 1), ~next2)
|
|
79
|
-
for (escapePos = next2; value.charCodeAt(escapePos - 1) === backslash; )
|
|
80
|
-
escapePos -= 1, escape = !escape;
|
|
81
|
-
else
|
|
82
|
-
value += ")", next2 = value.length - 1, token2.unclosed = !0;
|
|
83
|
-
while (escape);
|
|
84
|
-
whitespacePos = next2;
|
|
85
|
-
do
|
|
86
|
-
whitespacePos -= 1, code = value.charCodeAt(whitespacePos);
|
|
87
|
-
while (code <= 32);
|
|
88
|
-
parenthesesOpenPos < whitespacePos ? (pos !== whitespacePos + 1 ? token2.nodes = [
|
|
89
|
-
{
|
|
90
|
-
type: "word",
|
|
91
|
-
sourceIndex: pos,
|
|
92
|
-
sourceEndIndex: whitespacePos + 1,
|
|
93
|
-
value: value.slice(pos, whitespacePos + 1)
|
|
94
|
-
}
|
|
95
|
-
] : token2.nodes = [], token2.unclosed && whitespacePos + 1 !== next2 ? (token2.after = "", token2.nodes.push({
|
|
96
|
-
type: "space",
|
|
97
|
-
sourceIndex: whitespacePos + 1,
|
|
98
|
-
sourceEndIndex: next2,
|
|
99
|
-
value: value.slice(whitespacePos + 1, next2)
|
|
100
|
-
})) : (token2.after = value.slice(whitespacePos + 1, next2), token2.sourceEndIndex = next2)) : (token2.after = "", token2.nodes = []), pos = next2 + 1, token2.sourceEndIndex = token2.unclosed ? next2 : pos, code = value.charCodeAt(pos), tokens.push(token2);
|
|
101
|
-
} else
|
|
102
|
-
balanced += 1, token2.after = "", token2.sourceEndIndex = pos + 1, tokens.push(token2), stack.push(token2), tokens = token2.nodes = [], parent = token2;
|
|
103
|
-
name = "";
|
|
104
|
-
} else if (closeParentheses === code && balanced)
|
|
105
|
-
pos += 1, code = value.charCodeAt(pos), parent.after = after, parent.sourceEndIndex += after.length, after = "", balanced -= 1, stack[stack.length - 1].sourceEndIndex = pos, stack.pop(), parent = stack[balanced], tokens = parent.nodes;
|
|
106
|
-
else {
|
|
107
|
-
next2 = pos;
|
|
108
|
-
do
|
|
109
|
-
code === backslash && (next2 += 1), next2 += 1, code = value.charCodeAt(next2);
|
|
110
|
-
while (next2 < max && !(code <= 32 || code === singleQuote || code === doubleQuote || code === comma || code === colon || code === slash || code === openParentheses || code === star && parent && parent.type === "function" && parent.value === "calc" || code === slash && parent.type === "function" && parent.value === "calc" || code === closeParentheses && balanced));
|
|
111
|
-
token2 = value.slice(pos, next2), openParentheses === code ? name = token2 : (uLower === token2.charCodeAt(0) || uUpper === token2.charCodeAt(0)) && plus === token2.charCodeAt(1) && isUnicodeRange.test(token2.slice(2)) ? tokens.push({
|
|
112
|
-
type: "unicode-range",
|
|
113
|
-
sourceIndex: pos,
|
|
114
|
-
sourceEndIndex: next2,
|
|
115
|
-
value: token2
|
|
116
|
-
}) : tokens.push({
|
|
117
|
-
type: "word",
|
|
118
|
-
sourceIndex: pos,
|
|
119
|
-
sourceEndIndex: next2,
|
|
120
|
-
value: token2
|
|
121
|
-
}), pos = next2;
|
|
122
|
-
}
|
|
123
|
-
for (pos = stack.length - 1; pos; pos -= 1)
|
|
124
|
-
stack[pos].unclosed = !0, stack[pos].sourceEndIndex = value.length;
|
|
125
|
-
return stack[0].nodes;
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
|
|
130
|
-
// ../../node_modules/postcss-value-parser/lib/walk.js
|
|
131
|
-
var require_walk = __commonJS({
|
|
132
|
-
"../../node_modules/postcss-value-parser/lib/walk.js"(exports, module) {
|
|
133
|
-
module.exports = function walk(nodes, cb, bubble) {
|
|
134
|
-
var i, max, node2, result;
|
|
135
|
-
for (i = 0, max = nodes.length; i < max; i += 1)
|
|
136
|
-
node2 = nodes[i], bubble || (result = cb(node2, i, nodes)), result !== !1 && node2.type === "function" && Array.isArray(node2.nodes) && walk(node2.nodes, cb, bubble), bubble && cb(node2, i, nodes);
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
// ../../node_modules/postcss-value-parser/lib/stringify.js
|
|
142
|
-
var require_stringify = __commonJS({
|
|
143
|
-
"../../node_modules/postcss-value-parser/lib/stringify.js"(exports, module) {
|
|
144
|
-
function stringifyNode(node2, custom) {
|
|
145
|
-
var type = node2.type, value = node2.value, buf, customResult;
|
|
146
|
-
return custom && (customResult = custom(node2)) !== void 0 ? customResult : type === "word" || type === "space" ? value : type === "string" ? (buf = node2.quote || "", buf + value + (node2.unclosed ? "" : buf)) : type === "comment" ? "/*" + value + (node2.unclosed ? "" : "*/") : type === "div" ? (node2.before || "") + value + (node2.after || "") : Array.isArray(node2.nodes) ? (buf = stringify2(node2.nodes, custom), type !== "function" ? buf : value + "(" + (node2.before || "") + buf + (node2.after || "") + (node2.unclosed ? "" : ")")) : value;
|
|
147
|
-
}
|
|
148
|
-
function stringify2(nodes, custom) {
|
|
149
|
-
var result, i;
|
|
150
|
-
if (Array.isArray(nodes)) {
|
|
151
|
-
for (result = "", i = nodes.length - 1; ~i; i -= 1)
|
|
152
|
-
result = stringifyNode(nodes[i], custom) + result;
|
|
153
|
-
return result;
|
|
154
|
-
}
|
|
155
|
-
return stringifyNode(nodes, custom);
|
|
156
|
-
}
|
|
157
|
-
module.exports = stringify2;
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
// ../../node_modules/postcss-value-parser/lib/unit.js
|
|
162
|
-
var require_unit = __commonJS({
|
|
163
|
-
"../../node_modules/postcss-value-parser/lib/unit.js"(exports, module) {
|
|
164
|
-
var minus = 45, plus = 43, dot = 46, exp = 101, EXP = 69;
|
|
165
|
-
function likeNumber(value) {
|
|
166
|
-
var code = value.charCodeAt(0), nextCode;
|
|
167
|
-
if (code === plus || code === minus) {
|
|
168
|
-
if (nextCode = value.charCodeAt(1), nextCode >= 48 && nextCode <= 57)
|
|
169
|
-
return !0;
|
|
170
|
-
var nextNextCode = value.charCodeAt(2);
|
|
171
|
-
return nextCode === dot && nextNextCode >= 48 && nextNextCode <= 57;
|
|
172
|
-
}
|
|
173
|
-
return code === dot ? (nextCode = value.charCodeAt(1), nextCode >= 48 && nextCode <= 57) : code >= 48 && code <= 57;
|
|
174
|
-
}
|
|
175
|
-
module.exports = function(value) {
|
|
176
|
-
var pos = 0, length2 = value.length, code, nextCode, nextNextCode;
|
|
177
|
-
if (length2 === 0 || !likeNumber(value))
|
|
178
|
-
return !1;
|
|
179
|
-
for (code = value.charCodeAt(pos), (code === plus || code === minus) && pos++; pos < length2 && (code = value.charCodeAt(pos), !(code < 48 || code > 57)); )
|
|
180
|
-
pos += 1;
|
|
181
|
-
if (code = value.charCodeAt(pos), nextCode = value.charCodeAt(pos + 1), code === dot && nextCode >= 48 && nextCode <= 57)
|
|
182
|
-
for (pos += 2; pos < length2 && (code = value.charCodeAt(pos), !(code < 48 || code > 57)); )
|
|
183
|
-
pos += 1;
|
|
184
|
-
if (code = value.charCodeAt(pos), nextCode = value.charCodeAt(pos + 1), nextNextCode = value.charCodeAt(pos + 2), (code === exp || code === EXP) && (nextCode >= 48 && nextCode <= 57 || (nextCode === plus || nextCode === minus) && nextNextCode >= 48 && nextNextCode <= 57))
|
|
185
|
-
for (pos += nextCode === plus || nextCode === minus ? 3 : 2; pos < length2 && (code = value.charCodeAt(pos), !(code < 48 || code > 57)); )
|
|
186
|
-
pos += 1;
|
|
187
|
-
return {
|
|
188
|
-
number: value.slice(0, pos),
|
|
189
|
-
unit: value.slice(pos)
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
|
|
195
|
-
// ../../node_modules/postcss-value-parser/lib/index.js
|
|
196
|
-
var require_lib = __commonJS({
|
|
197
|
-
"../../node_modules/postcss-value-parser/lib/index.js"(exports, module) {
|
|
198
|
-
var parse2 = require_parse(), walk = require_walk(), stringify2 = require_stringify();
|
|
199
|
-
function ValueParser(value) {
|
|
200
|
-
return this instanceof ValueParser ? (this.nodes = parse2(value), this) : new ValueParser(value);
|
|
201
|
-
}
|
|
202
|
-
ValueParser.prototype.toString = function() {
|
|
203
|
-
return Array.isArray(this.nodes) ? stringify2(this.nodes) : "";
|
|
204
|
-
};
|
|
205
|
-
ValueParser.prototype.walk = function(cb, bubble) {
|
|
206
|
-
return walk(this.nodes, cb, bubble), this;
|
|
207
|
-
};
|
|
208
|
-
ValueParser.unit = require_unit();
|
|
209
|
-
ValueParser.walk = walk;
|
|
210
|
-
ValueParser.stringify = stringify2;
|
|
211
|
-
module.exports = ValueParser;
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
|
|
215
|
-
// ../../node_modules/camelize/index.js
|
|
216
|
-
var require_camelize = __commonJS({
|
|
217
|
-
"../../node_modules/camelize/index.js"(exports, module) {
|
|
218
|
-
"use strict";
|
|
219
|
-
module.exports = function(obj) {
|
|
220
|
-
return typeof obj == "string" ? camelCase(obj) : walk(obj);
|
|
221
|
-
};
|
|
222
|
-
function walk(obj) {
|
|
223
|
-
return !obj || typeof obj != "object" || isDate(obj) || isRegex(obj) ? obj : isArray(obj) ? map(obj, walk) : reduce(objectKeys(obj), function(acc, key) {
|
|
224
|
-
var camel = camelCase(key);
|
|
225
|
-
return acc[camel] = walk(obj[key]), acc;
|
|
226
|
-
}, {});
|
|
227
|
-
}
|
|
228
|
-
function camelCase(str) {
|
|
229
|
-
return str.replace(/[_.-](\w|$)/g, function(_, x) {
|
|
230
|
-
return x.toUpperCase();
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
var isArray = Array.isArray || function(obj) {
|
|
234
|
-
return Object.prototype.toString.call(obj) === "[object Array]";
|
|
235
|
-
}, isDate = function(obj) {
|
|
236
|
-
return Object.prototype.toString.call(obj) === "[object Date]";
|
|
237
|
-
}, isRegex = function(obj) {
|
|
238
|
-
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
239
|
-
}, has = Object.prototype.hasOwnProperty, objectKeys = Object.keys || function(obj) {
|
|
240
|
-
var keys = [];
|
|
241
|
-
for (var key in obj)
|
|
242
|
-
has.call(obj, key) && keys.push(key);
|
|
243
|
-
return keys;
|
|
244
|
-
};
|
|
245
|
-
function map(xs, f) {
|
|
246
|
-
if (xs.map)
|
|
247
|
-
return xs.map(f);
|
|
248
|
-
for (var res = [], i = 0; i < xs.length; i++)
|
|
249
|
-
res.push(f(xs[i], i));
|
|
250
|
-
return res;
|
|
251
|
-
}
|
|
252
|
-
function reduce(xs, f, acc) {
|
|
253
|
-
if (xs.reduce)
|
|
254
|
-
return xs.reduce(f, acc);
|
|
255
|
-
for (var i = 0; i < xs.length; i++)
|
|
256
|
-
acc = f(acc, xs[i], i);
|
|
257
|
-
return acc;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
|
|
262
|
-
// ../../node_modules/css-color-keywords/colors.json
|
|
263
|
-
var require_colors = __commonJS({
|
|
264
|
-
"../../node_modules/css-color-keywords/colors.json"(exports, module) {
|
|
265
|
-
module.exports = {
|
|
266
|
-
black: "#000000",
|
|
267
|
-
silver: "#c0c0c0",
|
|
268
|
-
gray: "#808080",
|
|
269
|
-
white: "#ffffff",
|
|
270
|
-
maroon: "#800000",
|
|
271
|
-
red: "#ff0000",
|
|
272
|
-
purple: "#800080",
|
|
273
|
-
fuchsia: "#ff00ff",
|
|
274
|
-
green: "#008000",
|
|
275
|
-
lime: "#00ff00",
|
|
276
|
-
olive: "#808000",
|
|
277
|
-
yellow: "#ffff00",
|
|
278
|
-
navy: "#000080",
|
|
279
|
-
blue: "#0000ff",
|
|
280
|
-
teal: "#008080",
|
|
281
|
-
aqua: "#00ffff",
|
|
282
|
-
orange: "#ffa500",
|
|
283
|
-
aliceblue: "#f0f8ff",
|
|
284
|
-
antiquewhite: "#faebd7",
|
|
285
|
-
aquamarine: "#7fffd4",
|
|
286
|
-
azure: "#f0ffff",
|
|
287
|
-
beige: "#f5f5dc",
|
|
288
|
-
bisque: "#ffe4c4",
|
|
289
|
-
blanchedalmond: "#ffebcd",
|
|
290
|
-
blueviolet: "#8a2be2",
|
|
291
|
-
brown: "#a52a2a",
|
|
292
|
-
burlywood: "#deb887",
|
|
293
|
-
cadetblue: "#5f9ea0",
|
|
294
|
-
chartreuse: "#7fff00",
|
|
295
|
-
chocolate: "#d2691e",
|
|
296
|
-
coral: "#ff7f50",
|
|
297
|
-
cornflowerblue: "#6495ed",
|
|
298
|
-
cornsilk: "#fff8dc",
|
|
299
|
-
crimson: "#dc143c",
|
|
300
|
-
darkblue: "#00008b",
|
|
301
|
-
darkcyan: "#008b8b",
|
|
302
|
-
darkgoldenrod: "#b8860b",
|
|
303
|
-
darkgray: "#a9a9a9",
|
|
304
|
-
darkgreen: "#006400",
|
|
305
|
-
darkgrey: "#a9a9a9",
|
|
306
|
-
darkkhaki: "#bdb76b",
|
|
307
|
-
darkmagenta: "#8b008b",
|
|
308
|
-
darkolivegreen: "#556b2f",
|
|
309
|
-
darkorange: "#ff8c00",
|
|
310
|
-
darkorchid: "#9932cc",
|
|
311
|
-
darkred: "#8b0000",
|
|
312
|
-
darksalmon: "#e9967a",
|
|
313
|
-
darkseagreen: "#8fbc8f",
|
|
314
|
-
darkslateblue: "#483d8b",
|
|
315
|
-
darkslategray: "#2f4f4f",
|
|
316
|
-
darkslategrey: "#2f4f4f",
|
|
317
|
-
darkturquoise: "#00ced1",
|
|
318
|
-
darkviolet: "#9400d3",
|
|
319
|
-
deeppink: "#ff1493",
|
|
320
|
-
deepskyblue: "#00bfff",
|
|
321
|
-
dimgray: "#696969",
|
|
322
|
-
dimgrey: "#696969",
|
|
323
|
-
dodgerblue: "#1e90ff",
|
|
324
|
-
firebrick: "#b22222",
|
|
325
|
-
floralwhite: "#fffaf0",
|
|
326
|
-
forestgreen: "#228b22",
|
|
327
|
-
gainsboro: "#dcdcdc",
|
|
328
|
-
ghostwhite: "#f8f8ff",
|
|
329
|
-
gold: "#ffd700",
|
|
330
|
-
goldenrod: "#daa520",
|
|
331
|
-
greenyellow: "#adff2f",
|
|
332
|
-
grey: "#808080",
|
|
333
|
-
honeydew: "#f0fff0",
|
|
334
|
-
hotpink: "#ff69b4",
|
|
335
|
-
indianred: "#cd5c5c",
|
|
336
|
-
indigo: "#4b0082",
|
|
337
|
-
ivory: "#fffff0",
|
|
338
|
-
khaki: "#f0e68c",
|
|
339
|
-
lavender: "#e6e6fa",
|
|
340
|
-
lavenderblush: "#fff0f5",
|
|
341
|
-
lawngreen: "#7cfc00",
|
|
342
|
-
lemonchiffon: "#fffacd",
|
|
343
|
-
lightblue: "#add8e6",
|
|
344
|
-
lightcoral: "#f08080",
|
|
345
|
-
lightcyan: "#e0ffff",
|
|
346
|
-
lightgoldenrodyellow: "#fafad2",
|
|
347
|
-
lightgray: "#d3d3d3",
|
|
348
|
-
lightgreen: "#90ee90",
|
|
349
|
-
lightgrey: "#d3d3d3",
|
|
350
|
-
lightpink: "#ffb6c1",
|
|
351
|
-
lightsalmon: "#ffa07a",
|
|
352
|
-
lightseagreen: "#20b2aa",
|
|
353
|
-
lightskyblue: "#87cefa",
|
|
354
|
-
lightslategray: "#778899",
|
|
355
|
-
lightslategrey: "#778899",
|
|
356
|
-
lightsteelblue: "#b0c4de",
|
|
357
|
-
lightyellow: "#ffffe0",
|
|
358
|
-
limegreen: "#32cd32",
|
|
359
|
-
linen: "#faf0e6",
|
|
360
|
-
mediumaquamarine: "#66cdaa",
|
|
361
|
-
mediumblue: "#0000cd",
|
|
362
|
-
mediumorchid: "#ba55d3",
|
|
363
|
-
mediumpurple: "#9370db",
|
|
364
|
-
mediumseagreen: "#3cb371",
|
|
365
|
-
mediumslateblue: "#7b68ee",
|
|
366
|
-
mediumspringgreen: "#00fa9a",
|
|
367
|
-
mediumturquoise: "#48d1cc",
|
|
368
|
-
mediumvioletred: "#c71585",
|
|
369
|
-
midnightblue: "#191970",
|
|
370
|
-
mintcream: "#f5fffa",
|
|
371
|
-
mistyrose: "#ffe4e1",
|
|
372
|
-
moccasin: "#ffe4b5",
|
|
373
|
-
navajowhite: "#ffdead",
|
|
374
|
-
oldlace: "#fdf5e6",
|
|
375
|
-
olivedrab: "#6b8e23",
|
|
376
|
-
orangered: "#ff4500",
|
|
377
|
-
orchid: "#da70d6",
|
|
378
|
-
palegoldenrod: "#eee8aa",
|
|
379
|
-
palegreen: "#98fb98",
|
|
380
|
-
paleturquoise: "#afeeee",
|
|
381
|
-
palevioletred: "#db7093",
|
|
382
|
-
papayawhip: "#ffefd5",
|
|
383
|
-
peachpuff: "#ffdab9",
|
|
384
|
-
peru: "#cd853f",
|
|
385
|
-
pink: "#ffc0cb",
|
|
386
|
-
plum: "#dda0dd",
|
|
387
|
-
powderblue: "#b0e0e6",
|
|
388
|
-
rosybrown: "#bc8f8f",
|
|
389
|
-
royalblue: "#4169e1",
|
|
390
|
-
saddlebrown: "#8b4513",
|
|
391
|
-
salmon: "#fa8072",
|
|
392
|
-
sandybrown: "#f4a460",
|
|
393
|
-
seagreen: "#2e8b57",
|
|
394
|
-
seashell: "#fff5ee",
|
|
395
|
-
sienna: "#a0522d",
|
|
396
|
-
skyblue: "#87ceeb",
|
|
397
|
-
slateblue: "#6a5acd",
|
|
398
|
-
slategray: "#708090",
|
|
399
|
-
slategrey: "#708090",
|
|
400
|
-
snow: "#fffafa",
|
|
401
|
-
springgreen: "#00ff7f",
|
|
402
|
-
steelblue: "#4682b4",
|
|
403
|
-
tan: "#d2b48c",
|
|
404
|
-
thistle: "#d8bfd8",
|
|
405
|
-
tomato: "#ff6347",
|
|
406
|
-
turquoise: "#40e0d0",
|
|
407
|
-
violet: "#ee82ee",
|
|
408
|
-
wheat: "#f5deb3",
|
|
409
|
-
whitesmoke: "#f5f5f5",
|
|
410
|
-
yellowgreen: "#9acd32",
|
|
411
|
-
rebeccapurple: "#663399"
|
|
412
|
-
};
|
|
413
|
-
}
|
|
414
|
-
});
|
|
415
|
-
|
|
416
|
-
// ../../node_modules/css-color-keywords/index.js
|
|
417
|
-
var require_css_color_keywords = __commonJS({
|
|
418
|
-
"../../node_modules/css-color-keywords/index.js"(exports, module) {
|
|
419
|
-
"use strict";
|
|
420
|
-
module.exports = require_colors();
|
|
421
|
-
}
|
|
422
|
-
});
|
|
423
|
-
|
|
424
|
-
// ../../node_modules/css-to-react-native/index.js
|
|
425
|
-
var require_css_to_react_native = __commonJS({
|
|
426
|
-
"../../node_modules/css-to-react-native/index.js"(exports) {
|
|
427
|
-
"use strict";
|
|
428
|
-
Object.defineProperty(exports, "__esModule", {
|
|
429
|
-
value: !0
|
|
430
|
-
});
|
|
431
|
-
function _interopDefault(ex) {
|
|
432
|
-
return ex && typeof ex == "object" && "default" in ex ? ex.default : ex;
|
|
433
|
-
}
|
|
434
|
-
var parse2 = require_lib(), parse__default = _interopDefault(parse2), camelizeStyleName = _interopDefault(require_camelize()), cssColorKeywords = _interopDefault(require_css_color_keywords()), matchString = function(node2) {
|
|
435
|
-
return node2.type !== "string" ? null : node2.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi, function(match2, charCode) {
|
|
436
|
-
return String.fromCharCode(parseInt(charCode, 16));
|
|
437
|
-
}).replace(/\\/g, "");
|
|
438
|
-
}, hexColorRe = /^(#(?:[0-9a-f]{3,4}){1,2})$/i, cssFunctionNameRe = /^(rgba?|hsla?|hwb|lab|lch|gray|color)$/, matchColor = function(node2) {
|
|
439
|
-
return node2.type === "word" && (hexColorRe.test(node2.value) || node2.value in cssColorKeywords || node2.value === "transparent") ? node2.value : node2.type === "function" && cssFunctionNameRe.test(node2.value) ? parse2.stringify(node2) : null;
|
|
440
|
-
}, noneRe = /^(none)$/i, autoRe = /^(auto)$/i, identRe = /(^-?[_a-z][_a-z0-9-]*$)/i, numberRe = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i, lengthRe = /^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i, unsupportedUnitRe = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i, angleRe = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i, percentRe = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i, noopToken = function(predicate) {
|
|
441
|
-
return function(node2) {
|
|
442
|
-
return predicate(node2) ? "<token>" : null;
|
|
443
|
-
};
|
|
444
|
-
}, valueForTypeToken = function(type) {
|
|
445
|
-
return function(node2) {
|
|
446
|
-
return node2.type === type ? node2.value : null;
|
|
447
|
-
};
|
|
448
|
-
}, regExpToken = function(regExp, transform3) {
|
|
449
|
-
return transform3 === void 0 && (transform3 = String), function(node2) {
|
|
450
|
-
if (node2.type !== "word") return null;
|
|
451
|
-
var match2 = node2.value.match(regExp);
|
|
452
|
-
if (match2 === null) return null;
|
|
453
|
-
var value = transform3(match2[1]);
|
|
454
|
-
return value;
|
|
455
|
-
};
|
|
456
|
-
}, SPACE = noopToken(function(node2) {
|
|
457
|
-
return node2.type === "space";
|
|
458
|
-
}), SLASH = noopToken(function(node2) {
|
|
459
|
-
return node2.type === "div" && node2.value === "/";
|
|
460
|
-
}), COMMA = noopToken(function(node2) {
|
|
461
|
-
return node2.type === "div" && node2.value === ",";
|
|
462
|
-
}), WORD = valueForTypeToken("word"), NONE = regExpToken(noneRe), AUTO = regExpToken(autoRe), NUMBER = regExpToken(numberRe, Number), LENGTH = regExpToken(lengthRe, Number), UNSUPPORTED_LENGTH_UNIT = regExpToken(unsupportedUnitRe), ANGLE = regExpToken(angleRe, function(angle) {
|
|
463
|
-
return angle.toLowerCase();
|
|
464
|
-
}), PERCENT = regExpToken(percentRe), IDENT = regExpToken(identRe), STRING = matchString, COLOR = matchColor, LINE = regExpToken(/^(none|underline|line-through)$/i), aspectRatio = function(tokenStream) {
|
|
465
|
-
var aspectRatio3 = tokenStream.expect(NUMBER);
|
|
466
|
-
return tokenStream.hasTokens() && (tokenStream.expect(SLASH), aspectRatio3 /= tokenStream.expect(NUMBER)), {
|
|
467
|
-
aspectRatio: aspectRatio3
|
|
468
|
-
};
|
|
469
|
-
}, BORDER_STYLE = regExpToken(/^(solid|dashed|dotted)$/), defaultBorderWidth = 1, defaultBorderColor = "black", defaultBorderStyle = "solid", border = function(tokenStream) {
|
|
470
|
-
var borderWidth2, borderColor2, borderStyle;
|
|
471
|
-
if (tokenStream.matches(NONE))
|
|
472
|
-
return tokenStream.expectEmpty(), {
|
|
473
|
-
borderWidth: 0,
|
|
474
|
-
borderColor: "black",
|
|
475
|
-
borderStyle: "solid"
|
|
476
|
-
};
|
|
477
|
-
for (var partsParsed = 0; partsParsed < 3 && tokenStream.hasTokens(); )
|
|
478
|
-
partsParsed !== 0 && tokenStream.expect(SPACE), borderWidth2 === void 0 && tokenStream.matches(LENGTH, UNSUPPORTED_LENGTH_UNIT) ? borderWidth2 = tokenStream.lastValue : borderColor2 === void 0 && tokenStream.matches(COLOR) ? borderColor2 = tokenStream.lastValue : borderStyle === void 0 && tokenStream.matches(BORDER_STYLE) ? borderStyle = tokenStream.lastValue : tokenStream.throw(), partsParsed += 1;
|
|
479
|
-
return tokenStream.expectEmpty(), borderWidth2 === void 0 && (borderWidth2 = defaultBorderWidth), borderColor2 === void 0 && (borderColor2 = defaultBorderColor), borderStyle === void 0 && (borderStyle = defaultBorderStyle), {
|
|
480
|
-
borderWidth: borderWidth2,
|
|
481
|
-
borderColor: borderColor2,
|
|
482
|
-
borderStyle
|
|
483
|
-
};
|
|
484
|
-
}, directionFactory = function(_ref) {
|
|
485
|
-
var _ref$types = _ref.types, types = _ref$types === void 0 ? [LENGTH, UNSUPPORTED_LENGTH_UNIT, PERCENT] : _ref$types, _ref$directions = _ref.directions, directions = _ref$directions === void 0 ? ["Top", "Right", "Bottom", "Left"] : _ref$directions, _ref$prefix = _ref.prefix, prefix3 = _ref$prefix === void 0 ? "" : _ref$prefix, _ref$suffix = _ref.suffix, suffix = _ref$suffix === void 0 ? "" : _ref$suffix;
|
|
486
|
-
return function(tokenStream) {
|
|
487
|
-
var _ref2, values = [];
|
|
488
|
-
for (values.push(tokenStream.expect.apply(tokenStream, types)); values.length < 4 && tokenStream.hasTokens(); )
|
|
489
|
-
tokenStream.expect(SPACE), values.push(tokenStream.expect.apply(tokenStream, types));
|
|
490
|
-
tokenStream.expectEmpty();
|
|
491
|
-
var top = values[0], _values$ = values[1], right = _values$ === void 0 ? top : _values$, _values$2 = values[2], bottom = _values$2 === void 0 ? top : _values$2, _values$3 = values[3], left = _values$3 === void 0 ? right : _values$3, keyFor = function(n) {
|
|
492
|
-
return "" + prefix3 + directions[n] + suffix;
|
|
493
|
-
};
|
|
494
|
-
return _ref2 = {}, _ref2[keyFor(0)] = top, _ref2[keyFor(1)] = right, _ref2[keyFor(2)] = bottom, _ref2[keyFor(3)] = left, _ref2;
|
|
495
|
-
};
|
|
496
|
-
}, parseShadowOffset = function(tokenStream) {
|
|
497
|
-
var width = tokenStream.expect(LENGTH), height = tokenStream.matches(SPACE) ? tokenStream.expect(LENGTH) : width;
|
|
498
|
-
return tokenStream.expectEmpty(), {
|
|
499
|
-
width,
|
|
500
|
-
height
|
|
501
|
-
};
|
|
502
|
-
}, parseShadow = function(tokenStream) {
|
|
503
|
-
var offsetX, offsetY, radius, color2;
|
|
504
|
-
if (tokenStream.matches(NONE))
|
|
505
|
-
return tokenStream.expectEmpty(), {
|
|
506
|
-
offset: {
|
|
507
|
-
width: 0,
|
|
508
|
-
height: 0
|
|
509
|
-
},
|
|
510
|
-
radius: 0,
|
|
511
|
-
color: "black"
|
|
512
|
-
};
|
|
513
|
-
for (var didParseFirst = !1; tokenStream.hasTokens(); )
|
|
514
|
-
didParseFirst && tokenStream.expect(SPACE), offsetX === void 0 && tokenStream.matches(LENGTH, UNSUPPORTED_LENGTH_UNIT) ? (offsetX = tokenStream.lastValue, tokenStream.expect(SPACE), offsetY = tokenStream.expect(LENGTH, UNSUPPORTED_LENGTH_UNIT), tokenStream.saveRewindPoint(), tokenStream.matches(SPACE) && tokenStream.matches(LENGTH, UNSUPPORTED_LENGTH_UNIT) ? radius = tokenStream.lastValue : tokenStream.rewind()) : color2 === void 0 && tokenStream.matches(COLOR) ? color2 = tokenStream.lastValue : tokenStream.throw(), didParseFirst = !0;
|
|
515
|
-
return offsetX === void 0 && tokenStream.throw(), {
|
|
516
|
-
offset: {
|
|
517
|
-
width: offsetX,
|
|
518
|
-
height: offsetY
|
|
519
|
-
},
|
|
520
|
-
radius: radius !== void 0 ? radius : 0,
|
|
521
|
-
color: color2 !== void 0 ? color2 : "black"
|
|
522
|
-
};
|
|
523
|
-
}, boxShadow = function(tokenStream) {
|
|
524
|
-
var _parseShadow = parseShadow(tokenStream), offset = _parseShadow.offset, radius = _parseShadow.radius, color2 = _parseShadow.color;
|
|
525
|
-
return {
|
|
526
|
-
shadowOffset: offset,
|
|
527
|
-
shadowRadius: radius,
|
|
528
|
-
shadowColor: color2,
|
|
529
|
-
shadowOpacity: 1
|
|
530
|
-
};
|
|
531
|
-
}, defaultFlexGrow = 1, defaultFlexShrink = 1, defaultFlexBasis = 0, flex = function(tokenStream) {
|
|
532
|
-
var flexGrow, flexShrink, flexBasis;
|
|
533
|
-
if (tokenStream.matches(NONE))
|
|
534
|
-
return tokenStream.expectEmpty(), {
|
|
535
|
-
flexGrow: 0,
|
|
536
|
-
flexShrink: 0,
|
|
537
|
-
flexBasis: "auto"
|
|
538
|
-
};
|
|
539
|
-
if (tokenStream.saveRewindPoint(), tokenStream.matches(AUTO) && !tokenStream.hasTokens())
|
|
540
|
-
return {
|
|
541
|
-
flexGrow: 1,
|
|
542
|
-
flexShrink: 1,
|
|
543
|
-
flexBasis: "auto"
|
|
544
|
-
};
|
|
545
|
-
tokenStream.rewind();
|
|
546
|
-
for (var partsParsed = 0; partsParsed < 2 && tokenStream.hasTokens(); )
|
|
547
|
-
partsParsed !== 0 && tokenStream.expect(SPACE), flexGrow === void 0 && tokenStream.matches(NUMBER) ? (flexGrow = tokenStream.lastValue, tokenStream.saveRewindPoint(), tokenStream.matches(SPACE) && tokenStream.matches(NUMBER) ? flexShrink = tokenStream.lastValue : tokenStream.rewind()) : flexBasis === void 0 && tokenStream.matches(LENGTH, UNSUPPORTED_LENGTH_UNIT, PERCENT) ? flexBasis = tokenStream.lastValue : flexBasis === void 0 && tokenStream.matches(AUTO) ? flexBasis = "auto" : tokenStream.throw(), partsParsed += 1;
|
|
548
|
-
return tokenStream.expectEmpty(), flexGrow === void 0 && (flexGrow = defaultFlexGrow), flexShrink === void 0 && (flexShrink = defaultFlexShrink), flexBasis === void 0 && (flexBasis = defaultFlexBasis), {
|
|
549
|
-
flexGrow,
|
|
550
|
-
flexShrink,
|
|
551
|
-
flexBasis
|
|
552
|
-
};
|
|
553
|
-
}, FLEX_WRAP = regExpToken(/(nowrap|wrap|wrap-reverse)/), FLEX_DIRECTION = regExpToken(/(row|row-reverse|column|column-reverse)/), defaultFlexWrap = "nowrap", defaultFlexDirection = "row", flexFlow = function(tokenStream) {
|
|
554
|
-
for (var flexWrap, flexDirection, partsParsed = 0; partsParsed < 2 && tokenStream.hasTokens(); )
|
|
555
|
-
partsParsed !== 0 && tokenStream.expect(SPACE), flexWrap === void 0 && tokenStream.matches(FLEX_WRAP) ? flexWrap = tokenStream.lastValue : flexDirection === void 0 && tokenStream.matches(FLEX_DIRECTION) ? flexDirection = tokenStream.lastValue : tokenStream.throw(), partsParsed += 1;
|
|
556
|
-
return tokenStream.expectEmpty(), flexWrap === void 0 && (flexWrap = defaultFlexWrap), flexDirection === void 0 && (flexDirection = defaultFlexDirection), {
|
|
557
|
-
flexWrap,
|
|
558
|
-
flexDirection
|
|
559
|
-
};
|
|
560
|
-
}, fontFamily = function(tokenStream) {
|
|
561
|
-
var fontFamily3;
|
|
562
|
-
if (tokenStream.matches(STRING))
|
|
563
|
-
fontFamily3 = tokenStream.lastValue;
|
|
564
|
-
else
|
|
565
|
-
for (fontFamily3 = tokenStream.expect(IDENT); tokenStream.hasTokens(); ) {
|
|
566
|
-
tokenStream.expect(SPACE);
|
|
567
|
-
var nextIdent = tokenStream.expect(IDENT);
|
|
568
|
-
fontFamily3 += " " + nextIdent;
|
|
569
|
-
}
|
|
570
|
-
return tokenStream.expectEmpty(), {
|
|
571
|
-
fontFamily: fontFamily3
|
|
572
|
-
};
|
|
573
|
-
}, NORMAL = regExpToken(/^(normal)$/), STYLE = regExpToken(/^(italic)$/), WEIGHT = regExpToken(/^([1-9]00|bold)$/), VARIANT = regExpToken(/^(small-caps)$/), defaultFontStyle = "normal", defaultFontWeight = "normal", defaultFontVariant = [], font = function(tokenStream) {
|
|
574
|
-
for (var fontStyle, fontWeight2, fontVariant2, lineHeight, numStyleWeightVariantMatched = 0; numStyleWeightVariantMatched < 3 && tokenStream.hasTokens(); ) {
|
|
575
|
-
if (!tokenStream.matches(NORMAL)) if (fontStyle === void 0 && tokenStream.matches(STYLE))
|
|
576
|
-
fontStyle = tokenStream.lastValue;
|
|
577
|
-
else if (fontWeight2 === void 0 && tokenStream.matches(WEIGHT))
|
|
578
|
-
fontWeight2 = tokenStream.lastValue;
|
|
579
|
-
else if (fontVariant2 === void 0 && tokenStream.matches(VARIANT))
|
|
580
|
-
fontVariant2 = [tokenStream.lastValue];
|
|
581
|
-
else
|
|
582
|
-
break;
|
|
583
|
-
tokenStream.expect(SPACE), numStyleWeightVariantMatched += 1;
|
|
584
|
-
}
|
|
585
|
-
var fontSize = tokenStream.expect(LENGTH, UNSUPPORTED_LENGTH_UNIT);
|
|
586
|
-
tokenStream.matches(SLASH) && (lineHeight = tokenStream.expect(LENGTH, UNSUPPORTED_LENGTH_UNIT)), tokenStream.expect(SPACE);
|
|
587
|
-
var _fontFamily = fontFamily(tokenStream), fontFamily$1 = _fontFamily.fontFamily;
|
|
588
|
-
fontStyle === void 0 && (fontStyle = defaultFontStyle), fontWeight2 === void 0 && (fontWeight2 = defaultFontWeight), fontVariant2 === void 0 && (fontVariant2 = defaultFontVariant);
|
|
589
|
-
var out = {
|
|
590
|
-
fontStyle,
|
|
591
|
-
fontWeight: fontWeight2,
|
|
592
|
-
fontVariant: fontVariant2,
|
|
593
|
-
fontSize,
|
|
594
|
-
fontFamily: fontFamily$1
|
|
595
|
-
};
|
|
596
|
-
return lineHeight !== void 0 && (out.lineHeight = lineHeight), out;
|
|
597
|
-
}, fontVariant = function(tokenStream) {
|
|
598
|
-
for (var values = [tokenStream.expect(IDENT)]; tokenStream.hasTokens(); )
|
|
599
|
-
tokenStream.expect(SPACE), values.push(tokenStream.expect(IDENT));
|
|
600
|
-
return {
|
|
601
|
-
fontVariant: values
|
|
602
|
-
};
|
|
603
|
-
}, ALIGN_CONTENT = regExpToken(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/), JUSTIFY_CONTENT = regExpToken(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/), placeContent = function(tokenStream) {
|
|
604
|
-
var alignContent = tokenStream.expect(ALIGN_CONTENT), justifyContent;
|
|
605
|
-
return tokenStream.hasTokens() ? (tokenStream.expect(SPACE), justifyContent = tokenStream.expect(JUSTIFY_CONTENT)) : justifyContent = "stretch", tokenStream.expectEmpty(), {
|
|
606
|
-
alignContent,
|
|
607
|
-
justifyContent
|
|
608
|
-
};
|
|
609
|
-
}, STYLE$1 = regExpToken(/^(solid|double|dotted|dashed)$/), defaultTextDecorationLine = "none", defaultTextDecorationStyle = "solid", defaultTextDecorationColor = "black", textDecoration = function(tokenStream) {
|
|
610
|
-
for (var line2, style, color2, didParseFirst = !1; tokenStream.hasTokens(); ) {
|
|
611
|
-
if (didParseFirst && tokenStream.expect(SPACE), line2 === void 0 && tokenStream.matches(LINE)) {
|
|
612
|
-
var lines = [tokenStream.lastValue.toLowerCase()];
|
|
613
|
-
tokenStream.saveRewindPoint(), lines[0] !== "none" && tokenStream.matches(SPACE) && tokenStream.matches(LINE) ? (lines.push(tokenStream.lastValue.toLowerCase()), lines.sort().reverse()) : tokenStream.rewind(), line2 = lines.join(" ");
|
|
614
|
-
} else style === void 0 && tokenStream.matches(STYLE$1) ? style = tokenStream.lastValue : color2 === void 0 && tokenStream.matches(COLOR) ? color2 = tokenStream.lastValue : tokenStream.throw();
|
|
615
|
-
didParseFirst = !0;
|
|
616
|
-
}
|
|
617
|
-
return {
|
|
618
|
-
textDecorationLine: line2 !== void 0 ? line2 : defaultTextDecorationLine,
|
|
619
|
-
textDecorationColor: color2 !== void 0 ? color2 : defaultTextDecorationColor,
|
|
620
|
-
textDecorationStyle: style !== void 0 ? style : defaultTextDecorationStyle
|
|
621
|
-
};
|
|
622
|
-
}, textDecorationLine = function(tokenStream) {
|
|
623
|
-
for (var lines = [], didParseFirst = !1; tokenStream.hasTokens(); )
|
|
624
|
-
didParseFirst && tokenStream.expect(SPACE), lines.push(tokenStream.expect(LINE).toLowerCase()), didParseFirst = !0;
|
|
625
|
-
return lines.sort().reverse(), {
|
|
626
|
-
textDecorationLine: lines.join(" ")
|
|
627
|
-
};
|
|
628
|
-
}, textShadow = function(tokenStream) {
|
|
629
|
-
var _parseShadow2 = parseShadow(tokenStream), offset = _parseShadow2.offset, radius = _parseShadow2.radius, color2 = _parseShadow2.color;
|
|
630
|
-
return {
|
|
631
|
-
textShadowOffset: offset,
|
|
632
|
-
textShadowRadius: radius,
|
|
633
|
-
textShadowColor: color2
|
|
634
|
-
};
|
|
635
|
-
}, oneOfType = function(tokenType) {
|
|
636
|
-
return function(functionStream) {
|
|
637
|
-
var value = functionStream.expect(tokenType);
|
|
638
|
-
return functionStream.expectEmpty(), value;
|
|
639
|
-
};
|
|
640
|
-
}, singleNumber = oneOfType(NUMBER), singleLength = oneOfType(LENGTH), singleAngle = oneOfType(ANGLE), xyTransformFactory = function(tokenType) {
|
|
641
|
-
return function(key, valueIfOmitted) {
|
|
642
|
-
return function(functionStream) {
|
|
643
|
-
var _ref3, _ref4, x = functionStream.expect(tokenType), y;
|
|
644
|
-
if (functionStream.hasTokens())
|
|
645
|
-
functionStream.expect(COMMA), y = functionStream.expect(tokenType);
|
|
646
|
-
else if (valueIfOmitted !== void 0)
|
|
647
|
-
y = valueIfOmitted;
|
|
648
|
-
else
|
|
649
|
-
return x;
|
|
650
|
-
return functionStream.expectEmpty(), [(_ref3 = {}, _ref3[key + "Y"] = y, _ref3), (_ref4 = {}, _ref4[key + "X"] = x, _ref4)];
|
|
651
|
-
};
|
|
652
|
-
};
|
|
653
|
-
}, xyNumber = xyTransformFactory(NUMBER), xyLength = xyTransformFactory(LENGTH), xyAngle = xyTransformFactory(ANGLE), partTransforms = {
|
|
654
|
-
perspective: singleNumber,
|
|
655
|
-
scale: xyNumber("scale"),
|
|
656
|
-
scaleX: singleNumber,
|
|
657
|
-
scaleY: singleNumber,
|
|
658
|
-
translate: xyLength("translate", 0),
|
|
659
|
-
translateX: singleLength,
|
|
660
|
-
translateY: singleLength,
|
|
661
|
-
rotate: singleAngle,
|
|
662
|
-
rotateX: singleAngle,
|
|
663
|
-
rotateY: singleAngle,
|
|
664
|
-
rotateZ: singleAngle,
|
|
665
|
-
skewX: singleAngle,
|
|
666
|
-
skewY: singleAngle,
|
|
667
|
-
skew: xyAngle("skew", "0deg")
|
|
668
|
-
}, transform2 = function(tokenStream) {
|
|
669
|
-
for (var transforms2 = [], didParseFirst = !1; tokenStream.hasTokens(); ) {
|
|
670
|
-
didParseFirst && tokenStream.expect(SPACE);
|
|
671
|
-
var functionStream = tokenStream.expectFunction(), functionName = functionStream.functionName, transformedValues = partTransforms[functionName](functionStream);
|
|
672
|
-
if (!Array.isArray(transformedValues)) {
|
|
673
|
-
var _ref5;
|
|
674
|
-
transformedValues = [(_ref5 = {}, _ref5[functionName] = transformedValues, _ref5)];
|
|
675
|
-
}
|
|
676
|
-
transforms2 = transformedValues.concat(transforms2), didParseFirst = !0;
|
|
677
|
-
}
|
|
678
|
-
return {
|
|
679
|
-
transform: transforms2
|
|
680
|
-
};
|
|
681
|
-
}, background2 = function(tokenStream) {
|
|
682
|
-
return {
|
|
683
|
-
backgroundColor: tokenStream.expect(COLOR)
|
|
684
|
-
};
|
|
685
|
-
}, borderColor = directionFactory({
|
|
686
|
-
types: [COLOR],
|
|
687
|
-
prefix: "border",
|
|
688
|
-
suffix: "Color"
|
|
689
|
-
}), borderRadius = directionFactory({
|
|
690
|
-
directions: ["TopLeft", "TopRight", "BottomRight", "BottomLeft"],
|
|
691
|
-
prefix: "border",
|
|
692
|
-
suffix: "Radius"
|
|
693
|
-
}), borderWidth = directionFactory({
|
|
694
|
-
prefix: "border",
|
|
695
|
-
suffix: "Width"
|
|
696
|
-
}), margin = directionFactory({
|
|
697
|
-
types: [LENGTH, UNSUPPORTED_LENGTH_UNIT, PERCENT, AUTO],
|
|
698
|
-
prefix: "margin"
|
|
699
|
-
}), padding = directionFactory({
|
|
700
|
-
prefix: "padding"
|
|
701
|
-
}), fontWeight = function(tokenStream) {
|
|
702
|
-
return {
|
|
703
|
-
fontWeight: tokenStream.expect(WORD)
|
|
704
|
-
// Also match numbers as strings
|
|
705
|
-
};
|
|
706
|
-
}, shadowOffset = function(tokenStream) {
|
|
707
|
-
return {
|
|
708
|
-
shadowOffset: parseShadowOffset(tokenStream)
|
|
709
|
-
};
|
|
710
|
-
}, textShadowOffset = function(tokenStream) {
|
|
711
|
-
return {
|
|
712
|
-
textShadowOffset: parseShadowOffset(tokenStream)
|
|
713
|
-
};
|
|
714
|
-
}, transforms = {
|
|
715
|
-
aspectRatio,
|
|
716
|
-
background: background2,
|
|
717
|
-
border,
|
|
718
|
-
borderColor,
|
|
719
|
-
borderRadius,
|
|
720
|
-
borderWidth,
|
|
721
|
-
boxShadow,
|
|
722
|
-
flex,
|
|
723
|
-
flexFlow,
|
|
724
|
-
font,
|
|
725
|
-
fontFamily,
|
|
726
|
-
fontVariant,
|
|
727
|
-
fontWeight,
|
|
728
|
-
margin,
|
|
729
|
-
padding,
|
|
730
|
-
placeContent,
|
|
731
|
-
shadowOffset,
|
|
732
|
-
textShadow,
|
|
733
|
-
textShadowOffset,
|
|
734
|
-
textDecoration,
|
|
735
|
-
textDecorationLine,
|
|
736
|
-
transform: transform2
|
|
737
|
-
}, propertiesWithoutUnits;
|
|
738
|
-
process.env.NODE_ENV !== "production" && (propertiesWithoutUnits = ["aspectRatio", "elevation", "flexGrow", "flexShrink", "opacity", "shadowOpacity", "zIndex"]);
|
|
739
|
-
var devPropertiesWithUnitsRegExp = propertiesWithoutUnits != null ? new RegExp(propertiesWithoutUnits.join("|")) : null, SYMBOL_MATCH = "SYMBOL_MATCH", TokenStream = (function() {
|
|
740
|
-
function TokenStream2(nodes, parent) {
|
|
741
|
-
this.index = 0, this.nodes = nodes, this.functionName = parent != null ? parent.value : null, this.lastValue = null, this.rewindIndex = -1;
|
|
742
|
-
}
|
|
743
|
-
var _proto = TokenStream2.prototype;
|
|
744
|
-
return _proto.hasTokens = function() {
|
|
745
|
-
return this.index <= this.nodes.length - 1;
|
|
746
|
-
}, _proto[SYMBOL_MATCH] = function() {
|
|
747
|
-
if (!this.hasTokens()) return null;
|
|
748
|
-
for (var node2 = this.nodes[this.index], i = 0; i < arguments.length; i += 1) {
|
|
749
|
-
var tokenDescriptor = i < 0 || arguments.length <= i ? void 0 : arguments[i], value = tokenDescriptor(node2);
|
|
750
|
-
if (value !== null)
|
|
751
|
-
return this.index += 1, this.lastValue = value, value;
|
|
752
|
-
}
|
|
753
|
-
return null;
|
|
754
|
-
}, _proto.matches = function() {
|
|
755
|
-
return this[SYMBOL_MATCH].apply(this, arguments) !== null;
|
|
756
|
-
}, _proto.expect = function() {
|
|
757
|
-
var value = this[SYMBOL_MATCH].apply(this, arguments);
|
|
758
|
-
return value !== null ? value : this.throw();
|
|
759
|
-
}, _proto.matchesFunction = function() {
|
|
760
|
-
var node2 = this.nodes[this.index];
|
|
761
|
-
if (node2.type !== "function") return null;
|
|
762
|
-
var value = new TokenStream2(node2.nodes, node2);
|
|
763
|
-
return this.index += 1, this.lastValue = null, value;
|
|
764
|
-
}, _proto.expectFunction = function() {
|
|
765
|
-
var value = this.matchesFunction();
|
|
766
|
-
return value !== null ? value : this.throw();
|
|
767
|
-
}, _proto.expectEmpty = function() {
|
|
768
|
-
this.hasTokens() && this.throw();
|
|
769
|
-
}, _proto.throw = function() {
|
|
770
|
-
throw new Error("Unexpected token type: " + this.nodes[this.index].type);
|
|
771
|
-
}, _proto.saveRewindPoint = function() {
|
|
772
|
-
this.rewindIndex = this.index;
|
|
773
|
-
}, _proto.rewind = function() {
|
|
774
|
-
if (this.rewindIndex === -1) throw new Error("Internal error");
|
|
775
|
-
this.index = this.rewindIndex, this.lastValue = null;
|
|
776
|
-
}, TokenStream2;
|
|
777
|
-
})(), numberOrLengthRe = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i, numberOnlyRe = /^[+-]?(?:\d*\.\d*|[1-9]\d*)(?:e[+-]?\d+)?$/i, boolRe = /^true|false$/i, nullRe = /^null$/i, undefinedRe = /^undefined$/i, transformRawValue = function(propName, value) {
|
|
778
|
-
if (process.env.NODE_ENV !== "production") {
|
|
779
|
-
var needsUnit = !devPropertiesWithUnitsRegExp.test(propName), isNumberWithoutUnit = numberOnlyRe.test(value);
|
|
780
|
-
needsUnit && isNumberWithoutUnit && console.warn('Expected style "' + propName + ": " + value + '" to contain units'), !needsUnit && value !== "0" && !isNumberWithoutUnit && console.warn('Expected style "' + propName + ": " + value + '" to be unitless');
|
|
781
|
-
}
|
|
782
|
-
var numberMatch = value.match(numberOrLengthRe);
|
|
783
|
-
if (numberMatch !== null) return Number(numberMatch[1]);
|
|
784
|
-
var boolMatch = value.match(boolRe);
|
|
785
|
-
if (boolMatch !== null) return boolMatch[0].toLowerCase() === "true";
|
|
786
|
-
var nullMatch = value.match(nullRe);
|
|
787
|
-
if (nullMatch !== null) return null;
|
|
788
|
-
var undefinedMatch = value.match(undefinedRe);
|
|
789
|
-
if (undefinedMatch === null)
|
|
790
|
-
return value;
|
|
791
|
-
}, baseTransformShorthandValue = function(propName, value) {
|
|
792
|
-
var ast = parse__default(value), tokenStream = new TokenStream(ast.nodes);
|
|
793
|
-
return transforms[propName](tokenStream);
|
|
794
|
-
}, transformShorthandValue = process.env.NODE_ENV === "production" ? baseTransformShorthandValue : function(propName, value) {
|
|
795
|
-
try {
|
|
796
|
-
return baseTransformShorthandValue(propName, value);
|
|
797
|
-
} catch {
|
|
798
|
-
throw new Error('Failed to parse declaration "' + propName + ": " + value + '"');
|
|
799
|
-
}
|
|
800
|
-
}, getStylesForProperty = function(propName, inputValue, allowShorthand) {
|
|
801
|
-
var _ref6, isRawValue = allowShorthand === !1 || !(propName in transforms), value = inputValue.trim(), propValues = isRawValue ? (_ref6 = {}, _ref6[propName] = transformRawValue(propName, value), _ref6) : transformShorthandValue(propName, value);
|
|
802
|
-
return propValues;
|
|
803
|
-
}, getPropertyName = function(propName) {
|
|
804
|
-
var isCustomProp = /^--\w+/.test(propName);
|
|
805
|
-
return isCustomProp ? propName : camelizeStyleName(propName);
|
|
806
|
-
}, index2 = function(rules, shorthandBlacklist) {
|
|
807
|
-
return shorthandBlacklist === void 0 && (shorthandBlacklist = []), rules.reduce(function(accum, rule) {
|
|
808
|
-
var propertyName = getPropertyName(rule[0]), value = rule[1], allowShorthand = shorthandBlacklist.indexOf(propertyName) === -1;
|
|
809
|
-
return Object.assign(accum, getStylesForProperty(propertyName, value, allowShorthand));
|
|
810
|
-
}, {});
|
|
811
|
-
};
|
|
812
|
-
exports.default = index2;
|
|
813
|
-
exports.getPropertyName = getPropertyName;
|
|
814
|
-
exports.getStylesForProperty = getStylesForProperty;
|
|
815
|
-
exports.transformRawValue = transformRawValue;
|
|
816
|
-
}
|
|
817
|
-
});
|
|
818
|
-
|
|
819
|
-
// ../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js
|
|
820
|
-
var require_react_is_production_min = __commonJS({
|
|
821
|
-
"../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
|
|
822
|
-
"use strict";
|
|
823
|
-
var b = typeof Symbol == "function" && Symbol.for, c = b ? /* @__PURE__ */ Symbol.for("react.element") : 60103, d = b ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, e = b ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, f = b ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, g = b ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, h = b ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, k = b ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = b ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = b ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, n = b ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = b ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, q = b ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, r = b ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, t = b ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = b ? /* @__PURE__ */ Symbol.for("react.block") : 60121, w = b ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = b ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, y = b ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
824
|
-
function z(a) {
|
|
825
|
-
if (typeof a == "object" && a !== null) {
|
|
826
|
-
var u = a.$$typeof;
|
|
827
|
-
switch (u) {
|
|
828
|
-
case c:
|
|
829
|
-
switch (a = a.type, a) {
|
|
830
|
-
case l:
|
|
831
|
-
case m:
|
|
832
|
-
case e:
|
|
833
|
-
case g:
|
|
834
|
-
case f:
|
|
835
|
-
case p:
|
|
836
|
-
return a;
|
|
837
|
-
default:
|
|
838
|
-
switch (a = a && a.$$typeof, a) {
|
|
839
|
-
case k:
|
|
840
|
-
case n:
|
|
841
|
-
case t:
|
|
842
|
-
case r:
|
|
843
|
-
case h:
|
|
844
|
-
return a;
|
|
845
|
-
default:
|
|
846
|
-
return u;
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
case d:
|
|
850
|
-
return u;
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
function A(a) {
|
|
855
|
-
return z(a) === m;
|
|
856
|
-
}
|
|
857
|
-
exports.AsyncMode = l;
|
|
858
|
-
exports.ConcurrentMode = m;
|
|
859
|
-
exports.ContextConsumer = k;
|
|
860
|
-
exports.ContextProvider = h;
|
|
861
|
-
exports.Element = c;
|
|
862
|
-
exports.ForwardRef = n;
|
|
863
|
-
exports.Fragment = e;
|
|
864
|
-
exports.Lazy = t;
|
|
865
|
-
exports.Memo = r;
|
|
866
|
-
exports.Portal = d;
|
|
867
|
-
exports.Profiler = g;
|
|
868
|
-
exports.StrictMode = f;
|
|
869
|
-
exports.Suspense = p;
|
|
870
|
-
exports.isAsyncMode = function(a) {
|
|
871
|
-
return A(a) || z(a) === l;
|
|
872
|
-
};
|
|
873
|
-
exports.isConcurrentMode = A;
|
|
874
|
-
exports.isContextConsumer = function(a) {
|
|
875
|
-
return z(a) === k;
|
|
876
|
-
};
|
|
877
|
-
exports.isContextProvider = function(a) {
|
|
878
|
-
return z(a) === h;
|
|
879
|
-
};
|
|
880
|
-
exports.isElement = function(a) {
|
|
881
|
-
return typeof a == "object" && a !== null && a.$$typeof === c;
|
|
882
|
-
};
|
|
883
|
-
exports.isForwardRef = function(a) {
|
|
884
|
-
return z(a) === n;
|
|
885
|
-
};
|
|
886
|
-
exports.isFragment = function(a) {
|
|
887
|
-
return z(a) === e;
|
|
888
|
-
};
|
|
889
|
-
exports.isLazy = function(a) {
|
|
890
|
-
return z(a) === t;
|
|
891
|
-
};
|
|
892
|
-
exports.isMemo = function(a) {
|
|
893
|
-
return z(a) === r;
|
|
894
|
-
};
|
|
895
|
-
exports.isPortal = function(a) {
|
|
896
|
-
return z(a) === d;
|
|
897
|
-
};
|
|
898
|
-
exports.isProfiler = function(a) {
|
|
899
|
-
return z(a) === g;
|
|
900
|
-
};
|
|
901
|
-
exports.isStrictMode = function(a) {
|
|
902
|
-
return z(a) === f;
|
|
903
|
-
};
|
|
904
|
-
exports.isSuspense = function(a) {
|
|
905
|
-
return z(a) === p;
|
|
906
|
-
};
|
|
907
|
-
exports.isValidElementType = function(a) {
|
|
908
|
-
return typeof a == "string" || typeof a == "function" || a === e || a === m || a === g || a === f || a === p || a === q || typeof a == "object" && a !== null && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
909
|
-
};
|
|
910
|
-
exports.typeOf = z;
|
|
911
|
-
}
|
|
912
|
-
});
|
|
913
|
-
|
|
914
|
-
// ../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js
|
|
915
|
-
var require_react_is_development = __commonJS({
|
|
916
|
-
"../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js"(exports) {
|
|
917
|
-
"use strict";
|
|
918
|
-
process.env.NODE_ENV !== "production" && (function() {
|
|
919
|
-
"use strict";
|
|
920
|
-
var hasSymbol = typeof Symbol == "function" && Symbol.for, REACT_ELEMENT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.element") : 60103, REACT_PORTAL_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, REACT_FRAGMENT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, REACT_STRICT_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, REACT_PROFILER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, REACT_PROVIDER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, REACT_CONTEXT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.context") : 60110, REACT_ASYNC_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, REACT_CONCURRENT_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, REACT_FORWARD_REF_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, REACT_SUSPENSE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, REACT_SUSPENSE_LIST_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, REACT_MEMO_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, REACT_LAZY_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, REACT_BLOCK_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.block") : 60121, REACT_FUNDAMENTAL_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, REACT_RESPONDER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, REACT_SCOPE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
921
|
-
function isValidElementType(type) {
|
|
922
|
-
return typeof type == "string" || typeof type == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
923
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type == "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
924
|
-
}
|
|
925
|
-
function typeOf(object) {
|
|
926
|
-
if (typeof object == "object" && object !== null) {
|
|
927
|
-
var $$typeof = object.$$typeof;
|
|
928
|
-
switch ($$typeof) {
|
|
929
|
-
case REACT_ELEMENT_TYPE:
|
|
930
|
-
var type = object.type;
|
|
931
|
-
switch (type) {
|
|
932
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
933
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
934
|
-
case REACT_FRAGMENT_TYPE:
|
|
935
|
-
case REACT_PROFILER_TYPE:
|
|
936
|
-
case REACT_STRICT_MODE_TYPE:
|
|
937
|
-
case REACT_SUSPENSE_TYPE:
|
|
938
|
-
return type;
|
|
939
|
-
default:
|
|
940
|
-
var $$typeofType = type && type.$$typeof;
|
|
941
|
-
switch ($$typeofType) {
|
|
942
|
-
case REACT_CONTEXT_TYPE:
|
|
943
|
-
case REACT_FORWARD_REF_TYPE:
|
|
944
|
-
case REACT_LAZY_TYPE:
|
|
945
|
-
case REACT_MEMO_TYPE:
|
|
946
|
-
case REACT_PROVIDER_TYPE:
|
|
947
|
-
return $$typeofType;
|
|
948
|
-
default:
|
|
949
|
-
return $$typeof;
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
case REACT_PORTAL_TYPE:
|
|
953
|
-
return $$typeof;
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE, ConcurrentMode = REACT_CONCURRENT_MODE_TYPE, ContextConsumer = REACT_CONTEXT_TYPE, ContextProvider = REACT_PROVIDER_TYPE, Element = REACT_ELEMENT_TYPE, ForwardRef = REACT_FORWARD_REF_TYPE, Fragment3 = REACT_FRAGMENT_TYPE, Lazy = REACT_LAZY_TYPE, Memo = REACT_MEMO_TYPE, Portal = REACT_PORTAL_TYPE, Profiler = REACT_PROFILER_TYPE, StrictMode = REACT_STRICT_MODE_TYPE, Suspense = REACT_SUSPENSE_TYPE, hasWarnedAboutDeprecatedIsAsyncMode = !1;
|
|
958
|
-
function isAsyncMode(object) {
|
|
959
|
-
return hasWarnedAboutDeprecatedIsAsyncMode || (hasWarnedAboutDeprecatedIsAsyncMode = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
960
|
-
}
|
|
961
|
-
function isConcurrentMode(object) {
|
|
962
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
963
|
-
}
|
|
964
|
-
function isContextConsumer(object) {
|
|
965
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
966
|
-
}
|
|
967
|
-
function isContextProvider(object) {
|
|
968
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
969
|
-
}
|
|
970
|
-
function isElement(object) {
|
|
971
|
-
return typeof object == "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
972
|
-
}
|
|
973
|
-
function isForwardRef(object) {
|
|
974
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
975
|
-
}
|
|
976
|
-
function isFragment(object) {
|
|
977
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
978
|
-
}
|
|
979
|
-
function isLazy(object) {
|
|
980
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
981
|
-
}
|
|
982
|
-
function isMemo(object) {
|
|
983
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
984
|
-
}
|
|
985
|
-
function isPortal(object) {
|
|
986
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
987
|
-
}
|
|
988
|
-
function isProfiler(object) {
|
|
989
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
990
|
-
}
|
|
991
|
-
function isStrictMode(object) {
|
|
992
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
993
|
-
}
|
|
994
|
-
function isSuspense(object) {
|
|
995
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
996
|
-
}
|
|
997
|
-
exports.AsyncMode = AsyncMode, exports.ConcurrentMode = ConcurrentMode, exports.ContextConsumer = ContextConsumer, exports.ContextProvider = ContextProvider, exports.Element = Element, exports.ForwardRef = ForwardRef, exports.Fragment = Fragment3, exports.Lazy = Lazy, exports.Memo = Memo, exports.Portal = Portal, exports.Profiler = Profiler, exports.StrictMode = StrictMode, exports.Suspense = Suspense, exports.isAsyncMode = isAsyncMode, exports.isConcurrentMode = isConcurrentMode, exports.isContextConsumer = isContextConsumer, exports.isContextProvider = isContextProvider, exports.isElement = isElement, exports.isForwardRef = isForwardRef, exports.isFragment = isFragment, exports.isLazy = isLazy, exports.isMemo = isMemo, exports.isPortal = isPortal, exports.isProfiler = isProfiler, exports.isStrictMode = isStrictMode, exports.isSuspense = isSuspense, exports.isValidElementType = isValidElementType, exports.typeOf = typeOf;
|
|
998
|
-
})();
|
|
999
|
-
}
|
|
1000
|
-
});
|
|
1001
|
-
|
|
1002
|
-
// ../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js
|
|
1003
|
-
var require_react_is = __commonJS({
|
|
1004
|
-
"../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js"(exports, module) {
|
|
1005
|
-
"use strict";
|
|
1006
|
-
process.env.NODE_ENV === "production" ? module.exports = require_react_is_production_min() : module.exports = require_react_is_development();
|
|
1007
|
-
}
|
|
1008
|
-
});
|
|
1009
|
-
|
|
1010
|
-
// ../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
|
1011
|
-
var require_hoist_non_react_statics_cjs = __commonJS({
|
|
1012
|
-
"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) {
|
|
1013
|
-
"use strict";
|
|
1014
|
-
var reactIs = require_react_is(), REACT_STATICS = {
|
|
1015
|
-
childContextTypes: !0,
|
|
1016
|
-
contextType: !0,
|
|
1017
|
-
contextTypes: !0,
|
|
1018
|
-
defaultProps: !0,
|
|
1019
|
-
displayName: !0,
|
|
1020
|
-
getDefaultProps: !0,
|
|
1021
|
-
getDerivedStateFromError: !0,
|
|
1022
|
-
getDerivedStateFromProps: !0,
|
|
1023
|
-
mixins: !0,
|
|
1024
|
-
propTypes: !0,
|
|
1025
|
-
type: !0
|
|
1026
|
-
}, KNOWN_STATICS = {
|
|
1027
|
-
name: !0,
|
|
1028
|
-
length: !0,
|
|
1029
|
-
prototype: !0,
|
|
1030
|
-
caller: !0,
|
|
1031
|
-
callee: !0,
|
|
1032
|
-
arguments: !0,
|
|
1033
|
-
arity: !0
|
|
1034
|
-
}, FORWARD_REF_STATICS = {
|
|
1035
|
-
$$typeof: !0,
|
|
1036
|
-
render: !0,
|
|
1037
|
-
defaultProps: !0,
|
|
1038
|
-
displayName: !0,
|
|
1039
|
-
propTypes: !0
|
|
1040
|
-
}, MEMO_STATICS = {
|
|
1041
|
-
$$typeof: !0,
|
|
1042
|
-
compare: !0,
|
|
1043
|
-
defaultProps: !0,
|
|
1044
|
-
displayName: !0,
|
|
1045
|
-
propTypes: !0,
|
|
1046
|
-
type: !0
|
|
1047
|
-
}, TYPE_STATICS = {};
|
|
1048
|
-
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
1049
|
-
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
1050
|
-
function getStatics(component) {
|
|
1051
|
-
return reactIs.isMemo(component) ? MEMO_STATICS : TYPE_STATICS[component.$$typeof] || REACT_STATICS;
|
|
1052
|
-
}
|
|
1053
|
-
var defineProperty = Object.defineProperty, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getPrototypeOf = Object.getPrototypeOf, objectPrototype = Object.prototype;
|
|
1054
|
-
function hoistNonReactStatics2(targetComponent, sourceComponent, blacklist) {
|
|
1055
|
-
if (typeof sourceComponent != "string") {
|
|
1056
|
-
if (objectPrototype) {
|
|
1057
|
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
1058
|
-
inheritedComponent && inheritedComponent !== objectPrototype && hoistNonReactStatics2(targetComponent, inheritedComponent, blacklist);
|
|
1059
|
-
}
|
|
1060
|
-
var keys = getOwnPropertyNames(sourceComponent);
|
|
1061
|
-
getOwnPropertySymbols && (keys = keys.concat(getOwnPropertySymbols(sourceComponent)));
|
|
1062
|
-
for (var targetStatics = getStatics(targetComponent), sourceStatics = getStatics(sourceComponent), i = 0; i < keys.length; ++i) {
|
|
1063
|
-
var key = keys[i];
|
|
1064
|
-
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
1065
|
-
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
1066
|
-
try {
|
|
1067
|
-
defineProperty(targetComponent, key, descriptor);
|
|
1068
|
-
} catch {
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
return targetComponent;
|
|
1074
|
-
}
|
|
1075
|
-
module.exports = hoistNonReactStatics2;
|
|
1076
|
-
}
|
|
1077
|
-
});
|
|
1078
|
-
|
|
1079
|
-
// ../../node_modules/@emotion/native/dist/emotion-native.esm.js
|
|
1080
|
-
import * as reactNative from "react-native";
|
|
1081
|
-
import { StyleSheet as StyleSheet3 } from "react-native";
|
|
1082
|
-
|
|
1083
|
-
// ../../node_modules/@emotion/primitives-core/dist/emotion-primitives-core.esm.js
|
|
1084
|
-
var import_css_to_react_native = __toESM(require_css_to_react_native());
|
|
1085
|
-
import * as React4 from "react";
|
|
1086
|
-
|
|
1087
|
-
// ../../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js
|
|
1088
|
-
import * as React2 from "react";
|
|
1089
|
-
import { useContext as useContext2, forwardRef as forwardRef2 } from "react";
|
|
1090
|
-
|
|
1091
|
-
// ../../node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
|
|
1092
|
-
var isDevelopment = !1;
|
|
1093
|
-
function sheetForTag(tag) {
|
|
1094
|
-
if (tag.sheet)
|
|
1095
|
-
return tag.sheet;
|
|
1096
|
-
for (var i = 0; i < document.styleSheets.length; i++)
|
|
1097
|
-
if (document.styleSheets[i].ownerNode === tag)
|
|
1098
|
-
return document.styleSheets[i];
|
|
1099
|
-
}
|
|
1100
|
-
function createStyleElement(options) {
|
|
1101
|
-
var tag = document.createElement("style");
|
|
1102
|
-
return tag.setAttribute("data-emotion", options.key), options.nonce !== void 0 && tag.setAttribute("nonce", options.nonce), tag.appendChild(document.createTextNode("")), tag.setAttribute("data-s", ""), tag;
|
|
1103
|
-
}
|
|
1104
|
-
var StyleSheet = (function() {
|
|
1105
|
-
function StyleSheet4(options) {
|
|
1106
|
-
var _this = this;
|
|
1107
|
-
this._insertTag = function(tag) {
|
|
1108
|
-
var before;
|
|
1109
|
-
_this.tags.length === 0 ? _this.insertionPoint ? before = _this.insertionPoint.nextSibling : _this.prepend ? before = _this.container.firstChild : before = _this.before : before = _this.tags[_this.tags.length - 1].nextSibling, _this.container.insertBefore(tag, before), _this.tags.push(tag);
|
|
1110
|
-
}, this.isSpeedy = options.speedy === void 0 ? !isDevelopment : options.speedy, this.tags = [], this.ctr = 0, this.nonce = options.nonce, this.key = options.key, this.container = options.container, this.prepend = options.prepend, this.insertionPoint = options.insertionPoint, this.before = null;
|
|
1111
|
-
}
|
|
1112
|
-
var _proto = StyleSheet4.prototype;
|
|
1113
|
-
return _proto.hydrate = function(nodes) {
|
|
1114
|
-
nodes.forEach(this._insertTag);
|
|
1115
|
-
}, _proto.insert = function(rule) {
|
|
1116
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(createStyleElement(this));
|
|
1117
|
-
var tag = this.tags[this.tags.length - 1];
|
|
1118
|
-
if (this.isSpeedy) {
|
|
1119
|
-
var sheet = sheetForTag(tag);
|
|
1120
|
-
try {
|
|
1121
|
-
sheet.insertRule(rule, sheet.cssRules.length);
|
|
1122
|
-
} catch {
|
|
1123
|
-
}
|
|
1124
|
-
} else
|
|
1125
|
-
tag.appendChild(document.createTextNode(rule));
|
|
1126
|
-
this.ctr++;
|
|
1127
|
-
}, _proto.flush = function() {
|
|
1128
|
-
this.tags.forEach(function(tag) {
|
|
1129
|
-
var _tag$parentNode;
|
|
1130
|
-
return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
|
|
1131
|
-
}), this.tags = [], this.ctr = 0;
|
|
1132
|
-
}, StyleSheet4;
|
|
1133
|
-
})();
|
|
1134
|
-
|
|
1135
|
-
// ../../node_modules/stylis/src/Enum.js
|
|
1136
|
-
var MS = "-ms-", MOZ = "-moz-", WEBKIT = "-webkit-", COMMENT = "comm", RULESET = "rule", DECLARATION = "decl";
|
|
1137
|
-
var IMPORT = "@import";
|
|
1138
|
-
var KEYFRAMES = "@keyframes";
|
|
1139
|
-
var LAYER = "@layer";
|
|
1140
|
-
|
|
1141
|
-
// ../../node_modules/stylis/src/Utility.js
|
|
1142
|
-
var abs = Math.abs, from = String.fromCharCode, assign = Object.assign;
|
|
1143
|
-
function hash(value, length2) {
|
|
1144
|
-
return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
1145
|
-
}
|
|
1146
|
-
function trim(value) {
|
|
1147
|
-
return value.trim();
|
|
1148
|
-
}
|
|
1149
|
-
function match(value, pattern) {
|
|
1150
|
-
return (value = pattern.exec(value)) ? value[0] : value;
|
|
1151
|
-
}
|
|
1152
|
-
function replace(value, pattern, replacement) {
|
|
1153
|
-
return value.replace(pattern, replacement);
|
|
1154
|
-
}
|
|
1155
|
-
function indexof(value, search) {
|
|
1156
|
-
return value.indexOf(search);
|
|
1157
|
-
}
|
|
1158
|
-
function charat(value, index2) {
|
|
1159
|
-
return value.charCodeAt(index2) | 0;
|
|
1160
|
-
}
|
|
1161
|
-
function substr(value, begin, end) {
|
|
1162
|
-
return value.slice(begin, end);
|
|
1163
|
-
}
|
|
1164
|
-
function strlen(value) {
|
|
1165
|
-
return value.length;
|
|
1166
|
-
}
|
|
1167
|
-
function sizeof(value) {
|
|
1168
|
-
return value.length;
|
|
1169
|
-
}
|
|
1170
|
-
function append(value, array) {
|
|
1171
|
-
return array.push(value), value;
|
|
1172
|
-
}
|
|
1173
|
-
function combine(array, callback) {
|
|
1174
|
-
return array.map(callback).join("");
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
// ../../node_modules/stylis/src/Tokenizer.js
|
|
1178
|
-
var line = 1, column = 1, length = 0, position = 0, character = 0, characters = "";
|
|
1179
|
-
function node(value, root, parent, type, props, children, length2) {
|
|
1180
|
-
return { value, root, parent, type, props, children, line, column, length: length2, return: "" };
|
|
1181
|
-
}
|
|
1182
|
-
function copy(root, props) {
|
|
1183
|
-
return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props);
|
|
1184
|
-
}
|
|
1185
|
-
function char() {
|
|
1186
|
-
return character;
|
|
1187
|
-
}
|
|
1188
|
-
function prev() {
|
|
1189
|
-
return character = position > 0 ? charat(characters, --position) : 0, column--, character === 10 && (column = 1, line--), character;
|
|
1190
|
-
}
|
|
1191
|
-
function next() {
|
|
1192
|
-
return character = position < length ? charat(characters, position++) : 0, column++, character === 10 && (column = 1, line++), character;
|
|
1193
|
-
}
|
|
1194
|
-
function peek() {
|
|
1195
|
-
return charat(characters, position);
|
|
1196
|
-
}
|
|
1197
|
-
function caret() {
|
|
1198
|
-
return position;
|
|
1199
|
-
}
|
|
1200
|
-
function slice(begin, end) {
|
|
1201
|
-
return substr(characters, begin, end);
|
|
1202
|
-
}
|
|
1203
|
-
function token(type) {
|
|
1204
|
-
switch (type) {
|
|
1205
|
-
// \0 \t \n \r \s whitespace token
|
|
1206
|
-
case 0:
|
|
1207
|
-
case 9:
|
|
1208
|
-
case 10:
|
|
1209
|
-
case 13:
|
|
1210
|
-
case 32:
|
|
1211
|
-
return 5;
|
|
1212
|
-
// ! + , / > @ ~ isolate token
|
|
1213
|
-
case 33:
|
|
1214
|
-
case 43:
|
|
1215
|
-
case 44:
|
|
1216
|
-
case 47:
|
|
1217
|
-
case 62:
|
|
1218
|
-
case 64:
|
|
1219
|
-
case 126:
|
|
1220
|
-
// ; { } breakpoint token
|
|
1221
|
-
case 59:
|
|
1222
|
-
case 123:
|
|
1223
|
-
case 125:
|
|
1224
|
-
return 4;
|
|
1225
|
-
// : accompanied token
|
|
1226
|
-
case 58:
|
|
1227
|
-
return 3;
|
|
1228
|
-
// " ' ( [ opening delimit token
|
|
1229
|
-
case 34:
|
|
1230
|
-
case 39:
|
|
1231
|
-
case 40:
|
|
1232
|
-
case 91:
|
|
1233
|
-
return 2;
|
|
1234
|
-
// ) ] closing delimit token
|
|
1235
|
-
case 41:
|
|
1236
|
-
case 93:
|
|
1237
|
-
return 1;
|
|
1238
|
-
}
|
|
1239
|
-
return 0;
|
|
1240
|
-
}
|
|
1241
|
-
function alloc(value) {
|
|
1242
|
-
return line = column = 1, length = strlen(characters = value), position = 0, [];
|
|
1243
|
-
}
|
|
1244
|
-
function dealloc(value) {
|
|
1245
|
-
return characters = "", value;
|
|
1246
|
-
}
|
|
1247
|
-
function delimit(type) {
|
|
1248
|
-
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
|
|
1249
|
-
}
|
|
1250
|
-
function whitespace(type) {
|
|
1251
|
-
for (; (character = peek()) && character < 33; )
|
|
1252
|
-
next();
|
|
1253
|
-
return token(type) > 2 || token(character) > 3 ? "" : " ";
|
|
1254
|
-
}
|
|
1255
|
-
function escaping(index2, count) {
|
|
1256
|
-
for (; --count && next() && !(character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97); )
|
|
1257
|
-
;
|
|
1258
|
-
return slice(index2, caret() + (count < 6 && peek() == 32 && next() == 32));
|
|
1259
|
-
}
|
|
1260
|
-
function delimiter(type) {
|
|
1261
|
-
for (; next(); )
|
|
1262
|
-
switch (character) {
|
|
1263
|
-
// ] ) " '
|
|
1264
|
-
case type:
|
|
1265
|
-
return position;
|
|
1266
|
-
// " '
|
|
1267
|
-
case 34:
|
|
1268
|
-
case 39:
|
|
1269
|
-
type !== 34 && type !== 39 && delimiter(character);
|
|
1270
|
-
break;
|
|
1271
|
-
// (
|
|
1272
|
-
case 40:
|
|
1273
|
-
type === 41 && delimiter(type);
|
|
1274
|
-
break;
|
|
1275
|
-
// \
|
|
1276
|
-
case 92:
|
|
1277
|
-
next();
|
|
1278
|
-
break;
|
|
1279
|
-
}
|
|
1280
|
-
return position;
|
|
1281
|
-
}
|
|
1282
|
-
function commenter(type, index2) {
|
|
1283
|
-
for (; next() && type + character !== 57; )
|
|
1284
|
-
if (type + character === 84 && peek() === 47)
|
|
1285
|
-
break;
|
|
1286
|
-
return "/*" + slice(index2, position - 1) + "*" + from(type === 47 ? type : next());
|
|
1287
|
-
}
|
|
1288
|
-
function identifier(index2) {
|
|
1289
|
-
for (; !token(peek()); )
|
|
1290
|
-
next();
|
|
1291
|
-
return slice(index2, position);
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
// ../../node_modules/stylis/src/Parser.js
|
|
1295
|
-
function compile(value) {
|
|
1296
|
-
return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
|
|
1297
|
-
}
|
|
1298
|
-
function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
1299
|
-
for (var index2 = 0, offset = 0, length2 = pseudo, atrule = 0, property = 0, previous = 0, variable = 1, scanning = 1, ampersand = 1, character2 = 0, type = "", props = rules, children = rulesets, reference = rule, characters2 = type; scanning; )
|
|
1300
|
-
switch (previous = character2, character2 = next()) {
|
|
1301
|
-
// (
|
|
1302
|
-
case 40:
|
|
1303
|
-
if (previous != 108 && charat(characters2, length2 - 1) == 58) {
|
|
1304
|
-
indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1 && (ampersand = -1);
|
|
1305
|
-
break;
|
|
1306
|
-
}
|
|
1307
|
-
// " ' [
|
|
1308
|
-
case 34:
|
|
1309
|
-
case 39:
|
|
1310
|
-
case 91:
|
|
1311
|
-
characters2 += delimit(character2);
|
|
1312
|
-
break;
|
|
1313
|
-
// \t \n \r \s
|
|
1314
|
-
case 9:
|
|
1315
|
-
case 10:
|
|
1316
|
-
case 13:
|
|
1317
|
-
case 32:
|
|
1318
|
-
characters2 += whitespace(previous);
|
|
1319
|
-
break;
|
|
1320
|
-
// \
|
|
1321
|
-
case 92:
|
|
1322
|
-
characters2 += escaping(caret() - 1, 7);
|
|
1323
|
-
continue;
|
|
1324
|
-
// /
|
|
1325
|
-
case 47:
|
|
1326
|
-
switch (peek()) {
|
|
1327
|
-
case 42:
|
|
1328
|
-
case 47:
|
|
1329
|
-
append(comment(commenter(next(), caret()), root, parent), declarations);
|
|
1330
|
-
break;
|
|
1331
|
-
default:
|
|
1332
|
-
characters2 += "/";
|
|
1333
|
-
}
|
|
1334
|
-
break;
|
|
1335
|
-
// {
|
|
1336
|
-
case 123 * variable:
|
|
1337
|
-
points[index2++] = strlen(characters2) * ampersand;
|
|
1338
|
-
// } ; \0
|
|
1339
|
-
case 125 * variable:
|
|
1340
|
-
case 59:
|
|
1341
|
-
case 0:
|
|
1342
|
-
switch (character2) {
|
|
1343
|
-
// \0 }
|
|
1344
|
-
case 0:
|
|
1345
|
-
case 125:
|
|
1346
|
-
scanning = 0;
|
|
1347
|
-
// ;
|
|
1348
|
-
case 59 + offset:
|
|
1349
|
-
ampersand == -1 && (characters2 = replace(characters2, /\f/g, "")), property > 0 && strlen(characters2) - length2 && append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
|
|
1350
|
-
break;
|
|
1351
|
-
// @ ;
|
|
1352
|
-
case 59:
|
|
1353
|
-
characters2 += ";";
|
|
1354
|
-
// { rule/at-rule
|
|
1355
|
-
default:
|
|
1356
|
-
if (append(reference = ruleset(characters2, root, parent, index2, offset, rules, points, type, props = [], children = [], length2), rulesets), character2 === 123)
|
|
1357
|
-
if (offset === 0)
|
|
1358
|
-
parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
|
|
1359
|
-
else
|
|
1360
|
-
switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
|
|
1361
|
-
// d l m s
|
|
1362
|
-
case 100:
|
|
1363
|
-
case 108:
|
|
1364
|
-
case 109:
|
|
1365
|
-
case 115:
|
|
1366
|
-
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2), children), rules, children, length2, points, rule ? props : children);
|
|
1367
|
-
break;
|
|
1368
|
-
default:
|
|
1369
|
-
parse(characters2, reference, reference, reference, [""], children, 0, points, children);
|
|
1370
|
-
}
|
|
1371
|
-
}
|
|
1372
|
-
index2 = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
|
|
1373
|
-
break;
|
|
1374
|
-
// :
|
|
1375
|
-
case 58:
|
|
1376
|
-
length2 = 1 + strlen(characters2), property = previous;
|
|
1377
|
-
default:
|
|
1378
|
-
if (variable < 1) {
|
|
1379
|
-
if (character2 == 123)
|
|
1380
|
-
--variable;
|
|
1381
|
-
else if (character2 == 125 && variable++ == 0 && prev() == 125)
|
|
1382
|
-
continue;
|
|
1383
|
-
}
|
|
1384
|
-
switch (characters2 += from(character2), character2 * variable) {
|
|
1385
|
-
// &
|
|
1386
|
-
case 38:
|
|
1387
|
-
ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
|
|
1388
|
-
break;
|
|
1389
|
-
// ,
|
|
1390
|
-
case 44:
|
|
1391
|
-
points[index2++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
|
|
1392
|
-
break;
|
|
1393
|
-
// @
|
|
1394
|
-
case 64:
|
|
1395
|
-
peek() === 45 && (characters2 += delimit(next())), atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
|
|
1396
|
-
break;
|
|
1397
|
-
// -
|
|
1398
|
-
case 45:
|
|
1399
|
-
previous === 45 && strlen(characters2) == 2 && (variable = 0);
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
return rulesets;
|
|
1403
|
-
}
|
|
1404
|
-
function ruleset(value, root, parent, index2, offset, rules, points, type, props, children, length2) {
|
|
1405
|
-
for (var post = offset - 1, rule = offset === 0 ? rules : [""], size = sizeof(rule), i = 0, j = 0, k = 0; i < index2; ++i)
|
|
1406
|
-
for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
|
|
1407
|
-
(z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x]))) && (props[k++] = z);
|
|
1408
|
-
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2);
|
|
1409
|
-
}
|
|
1410
|
-
function comment(value, root, parent) {
|
|
1411
|
-
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
|
|
1412
|
-
}
|
|
1413
|
-
function declaration(value, root, parent, length2) {
|
|
1414
|
-
return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
// ../../node_modules/stylis/src/Serializer.js
|
|
1418
|
-
function serialize(children, callback) {
|
|
1419
|
-
for (var output = "", length2 = sizeof(children), i = 0; i < length2; i++)
|
|
1420
|
-
output += callback(children[i], i, children, callback) || "";
|
|
1421
|
-
return output;
|
|
1422
|
-
}
|
|
1423
|
-
function stringify(element, index2, children, callback) {
|
|
1424
|
-
switch (element.type) {
|
|
1425
|
-
case LAYER:
|
|
1426
|
-
if (element.children.length) break;
|
|
1427
|
-
case IMPORT:
|
|
1428
|
-
case DECLARATION:
|
|
1429
|
-
return element.return = element.return || element.value;
|
|
1430
|
-
case COMMENT:
|
|
1431
|
-
return "";
|
|
1432
|
-
case KEYFRAMES:
|
|
1433
|
-
return element.return = element.value + "{" + serialize(element.children, callback) + "}";
|
|
1434
|
-
case RULESET:
|
|
1435
|
-
element.value = element.props.join(",");
|
|
1436
|
-
}
|
|
1437
|
-
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
// ../../node_modules/stylis/src/Middleware.js
|
|
1441
|
-
function middleware(collection) {
|
|
1442
|
-
var length2 = sizeof(collection);
|
|
1443
|
-
return function(element, index2, children, callback) {
|
|
1444
|
-
for (var output = "", i = 0; i < length2; i++)
|
|
1445
|
-
output += collection[i](element, index2, children, callback) || "";
|
|
1446
|
-
return output;
|
|
1447
|
-
};
|
|
1448
|
-
}
|
|
1449
|
-
function rulesheet(callback) {
|
|
1450
|
-
return function(element) {
|
|
1451
|
-
element.root || (element = element.return) && callback(element);
|
|
1452
|
-
};
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
|
-
// ../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js
|
|
1456
|
-
var weakMemoize = function(func) {
|
|
1457
|
-
var cache = /* @__PURE__ */ new WeakMap();
|
|
1458
|
-
return function(arg) {
|
|
1459
|
-
if (cache.has(arg))
|
|
1460
|
-
return cache.get(arg);
|
|
1461
|
-
var ret = func(arg);
|
|
1462
|
-
return cache.set(arg, ret), ret;
|
|
1463
|
-
};
|
|
1464
|
-
};
|
|
1465
|
-
|
|
1466
|
-
// ../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
|
1467
|
-
function memoize(fn) {
|
|
1468
|
-
var cache = /* @__PURE__ */ Object.create(null);
|
|
1469
|
-
return function(arg) {
|
|
1470
|
-
return cache[arg] === void 0 && (cache[arg] = fn(arg)), cache[arg];
|
|
1471
|
-
};
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
// ../../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
|
|
1475
|
-
var identifierWithPointTracking = function(begin, points, index2) {
|
|
1476
|
-
for (var previous = 0, character2 = 0; previous = character2, character2 = peek(), previous === 38 && character2 === 12 && (points[index2] = 1), !token(character2); )
|
|
1477
|
-
next();
|
|
1478
|
-
return slice(begin, position);
|
|
1479
|
-
}, toRules = function(parsed, points) {
|
|
1480
|
-
var index2 = -1, character2 = 44;
|
|
1481
|
-
do
|
|
1482
|
-
switch (token(character2)) {
|
|
1483
|
-
case 0:
|
|
1484
|
-
character2 === 38 && peek() === 12 && (points[index2] = 1), parsed[index2] += identifierWithPointTracking(position - 1, points, index2);
|
|
1485
|
-
break;
|
|
1486
|
-
case 2:
|
|
1487
|
-
parsed[index2] += delimit(character2);
|
|
1488
|
-
break;
|
|
1489
|
-
case 4:
|
|
1490
|
-
if (character2 === 44) {
|
|
1491
|
-
parsed[++index2] = peek() === 58 ? "&\f" : "", points[index2] = parsed[index2].length;
|
|
1492
|
-
break;
|
|
1493
|
-
}
|
|
1494
|
-
// fallthrough
|
|
1495
|
-
default:
|
|
1496
|
-
parsed[index2] += from(character2);
|
|
1497
|
-
}
|
|
1498
|
-
while (character2 = next());
|
|
1499
|
-
return parsed;
|
|
1500
|
-
}, getRules = function(value, points) {
|
|
1501
|
-
return dealloc(toRules(alloc(value), points));
|
|
1502
|
-
}, fixedElements = /* @__PURE__ */ new WeakMap(), compat = function(element) {
|
|
1503
|
-
if (!(element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo
|
|
1504
|
-
// negative .length indicates that this rule has been already prefixed
|
|
1505
|
-
element.length < 1)) {
|
|
1506
|
-
for (var value = element.value, parent = element.parent, isImplicitRule = element.column === parent.column && element.line === parent.line; parent.type !== "rule"; )
|
|
1507
|
-
if (parent = parent.parent, !parent) return;
|
|
1508
|
-
if (!(element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) && !isImplicitRule) {
|
|
1509
|
-
fixedElements.set(element, !0);
|
|
1510
|
-
for (var points = [], rules = getRules(value, points), parentRules = parent.props, i = 0, k = 0; i < rules.length; i++)
|
|
1511
|
-
for (var j = 0; j < parentRules.length; j++, k++)
|
|
1512
|
-
element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
|
|
1513
|
-
}
|
|
1514
|
-
}
|
|
1515
|
-
}, removeLabel = function(element) {
|
|
1516
|
-
if (element.type === "decl") {
|
|
1517
|
-
var value = element.value;
|
|
1518
|
-
// charcode for l
|
|
1519
|
-
value.charCodeAt(0) === 108 && // charcode for b
|
|
1520
|
-
value.charCodeAt(2) === 98 && (element.return = "", element.value = "");
|
|
1521
|
-
}
|
|
1522
|
-
};
|
|
1523
|
-
function prefix2(value, length2) {
|
|
1524
|
-
switch (hash(value, length2)) {
|
|
1525
|
-
// color-adjust
|
|
1526
|
-
case 5103:
|
|
1527
|
-
return WEBKIT + "print-" + value + value;
|
|
1528
|
-
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
1529
|
-
case 5737:
|
|
1530
|
-
case 4201:
|
|
1531
|
-
case 3177:
|
|
1532
|
-
case 3433:
|
|
1533
|
-
case 1641:
|
|
1534
|
-
case 4457:
|
|
1535
|
-
case 2921:
|
|
1536
|
-
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
1537
|
-
case 5572:
|
|
1538
|
-
case 6356:
|
|
1539
|
-
case 5844:
|
|
1540
|
-
case 3191:
|
|
1541
|
-
case 6645:
|
|
1542
|
-
case 3005:
|
|
1543
|
-
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
1544
|
-
case 6391:
|
|
1545
|
-
case 5879:
|
|
1546
|
-
case 5623:
|
|
1547
|
-
case 6135:
|
|
1548
|
-
case 4599:
|
|
1549
|
-
case 4855:
|
|
1550
|
-
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
1551
|
-
case 4215:
|
|
1552
|
-
case 6389:
|
|
1553
|
-
case 5109:
|
|
1554
|
-
case 5365:
|
|
1555
|
-
case 5621:
|
|
1556
|
-
case 3829:
|
|
1557
|
-
return WEBKIT + value + value;
|
|
1558
|
-
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
1559
|
-
case 5349:
|
|
1560
|
-
case 4246:
|
|
1561
|
-
case 4810:
|
|
1562
|
-
case 6968:
|
|
1563
|
-
case 2756:
|
|
1564
|
-
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
1565
|
-
// flex, flex-direction
|
|
1566
|
-
case 6828:
|
|
1567
|
-
case 4268:
|
|
1568
|
-
return WEBKIT + value + MS + value + value;
|
|
1569
|
-
// order
|
|
1570
|
-
case 6165:
|
|
1571
|
-
return WEBKIT + value + MS + "flex-" + value + value;
|
|
1572
|
-
// align-items
|
|
1573
|
-
case 5187:
|
|
1574
|
-
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
|
|
1575
|
-
// align-self
|
|
1576
|
-
case 5443:
|
|
1577
|
-
return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
|
|
1578
|
-
// align-content
|
|
1579
|
-
case 4675:
|
|
1580
|
-
return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
|
|
1581
|
-
// flex-shrink
|
|
1582
|
-
case 5548:
|
|
1583
|
-
return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
|
|
1584
|
-
// flex-basis
|
|
1585
|
-
case 5292:
|
|
1586
|
-
return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
|
|
1587
|
-
// flex-grow
|
|
1588
|
-
case 6060:
|
|
1589
|
-
return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
|
|
1590
|
-
// transition
|
|
1591
|
-
case 4554:
|
|
1592
|
-
return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
|
|
1593
|
-
// cursor
|
|
1594
|
-
case 6187:
|
|
1595
|
-
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
|
|
1596
|
-
// background, background-image
|
|
1597
|
-
case 5495:
|
|
1598
|
-
case 3959:
|
|
1599
|
-
return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
|
|
1600
|
-
// justify-content
|
|
1601
|
-
case 4968:
|
|
1602
|
-
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
|
|
1603
|
-
// (margin|padding)-inline-(start|end)
|
|
1604
|
-
case 4095:
|
|
1605
|
-
case 3583:
|
|
1606
|
-
case 4068:
|
|
1607
|
-
case 2532:
|
|
1608
|
-
return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
|
|
1609
|
-
// (min|max)?(width|height|inline-size|block-size)
|
|
1610
|
-
case 8116:
|
|
1611
|
-
case 7059:
|
|
1612
|
-
case 5753:
|
|
1613
|
-
case 5535:
|
|
1614
|
-
case 5445:
|
|
1615
|
-
case 5701:
|
|
1616
|
-
case 4933:
|
|
1617
|
-
case 4677:
|
|
1618
|
-
case 5533:
|
|
1619
|
-
case 5789:
|
|
1620
|
-
case 5021:
|
|
1621
|
-
case 4765:
|
|
1622
|
-
if (strlen(value) - 1 - length2 > 6) switch (charat(value, length2 + 1)) {
|
|
1623
|
-
// (m)ax-content, (m)in-content
|
|
1624
|
-
case 109:
|
|
1625
|
-
if (charat(value, length2 + 4) !== 45) break;
|
|
1626
|
-
// (f)ill-available, (f)it-content
|
|
1627
|
-
case 102:
|
|
1628
|
-
return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
|
|
1629
|
-
// (s)tretch
|
|
1630
|
-
case 115:
|
|
1631
|
-
return ~indexof(value, "stretch") ? prefix2(replace(value, "stretch", "fill-available"), length2) + value : value;
|
|
1632
|
-
}
|
|
1633
|
-
break;
|
|
1634
|
-
// position: sticky
|
|
1635
|
-
case 4949:
|
|
1636
|
-
if (charat(value, length2 + 1) !== 115) break;
|
|
1637
|
-
// display: (flex|inline-flex)
|
|
1638
|
-
case 6444:
|
|
1639
|
-
switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
|
|
1640
|
-
// stic(k)y
|
|
1641
|
-
case 107:
|
|
1642
|
-
return replace(value, ":", ":" + WEBKIT) + value;
|
|
1643
|
-
// (inline-)?fl(e)x
|
|
1644
|
-
case 101:
|
|
1645
|
-
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
|
|
1646
|
-
}
|
|
1647
|
-
break;
|
|
1648
|
-
// writing-mode
|
|
1649
|
-
case 5936:
|
|
1650
|
-
switch (charat(value, length2 + 11)) {
|
|
1651
|
-
// vertical-l(r)
|
|
1652
|
-
case 114:
|
|
1653
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
|
|
1654
|
-
// vertical-r(l)
|
|
1655
|
-
case 108:
|
|
1656
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
|
|
1657
|
-
// horizontal(-)tb
|
|
1658
|
-
case 45:
|
|
1659
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
|
|
1660
|
-
}
|
|
1661
|
-
return WEBKIT + value + MS + value + value;
|
|
1662
|
-
}
|
|
1663
|
-
return value;
|
|
1664
|
-
}
|
|
1665
|
-
var prefixer = function(element, index2, children, callback) {
|
|
1666
|
-
if (element.length > -1 && !element.return) switch (element.type) {
|
|
1667
|
-
case DECLARATION:
|
|
1668
|
-
element.return = prefix2(element.value, element.length);
|
|
1669
|
-
break;
|
|
1670
|
-
case KEYFRAMES:
|
|
1671
|
-
return serialize([copy(element, {
|
|
1672
|
-
value: replace(element.value, "@", "@" + WEBKIT)
|
|
1673
|
-
})], callback);
|
|
1674
|
-
case RULESET:
|
|
1675
|
-
if (element.length) return combine(element.props, function(value) {
|
|
1676
|
-
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
|
1677
|
-
// :read-(only|write)
|
|
1678
|
-
case ":read-only":
|
|
1679
|
-
case ":read-write":
|
|
1680
|
-
return serialize([copy(element, {
|
|
1681
|
-
props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")]
|
|
1682
|
-
})], callback);
|
|
1683
|
-
// :placeholder
|
|
1684
|
-
case "::placeholder":
|
|
1685
|
-
return serialize([copy(element, {
|
|
1686
|
-
props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")]
|
|
1687
|
-
}), copy(element, {
|
|
1688
|
-
props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")]
|
|
1689
|
-
}), copy(element, {
|
|
1690
|
-
props: [replace(value, /:(plac\w+)/, MS + "input-$1")]
|
|
1691
|
-
})], callback);
|
|
1692
|
-
}
|
|
1693
|
-
return "";
|
|
1694
|
-
});
|
|
1695
|
-
}
|
|
1696
|
-
}, defaultStylisPlugins = [prefixer], createCache = function(options) {
|
|
1697
|
-
var key = options.key;
|
|
1698
|
-
if (key === "css") {
|
|
1699
|
-
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1700
|
-
Array.prototype.forEach.call(ssrStyles, function(node2) {
|
|
1701
|
-
var dataEmotionAttribute = node2.getAttribute("data-emotion");
|
|
1702
|
-
dataEmotionAttribute.indexOf(" ") !== -1 && (document.head.appendChild(node2), node2.setAttribute("data-s", ""));
|
|
1703
|
-
});
|
|
1704
|
-
}
|
|
1705
|
-
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins, inserted = {}, container, nodesToHydrate = [];
|
|
1706
|
-
container = options.container || document.head, Array.prototype.forEach.call(
|
|
1707
|
-
// this means we will ignore elements which don't have a space in them which
|
|
1708
|
-
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1709
|
-
document.querySelectorAll('style[data-emotion^="' + key + ' "]'),
|
|
1710
|
-
function(node2) {
|
|
1711
|
-
for (var attrib = node2.getAttribute("data-emotion").split(" "), i = 1; i < attrib.length; i++)
|
|
1712
|
-
inserted[attrib[i]] = !0;
|
|
1713
|
-
nodesToHydrate.push(node2);
|
|
1714
|
-
}
|
|
1715
|
-
);
|
|
1716
|
-
var _insert, omnipresentPlugins = [compat, removeLabel];
|
|
1717
|
-
{
|
|
1718
|
-
var currentSheet, finalizingPlugins = [stringify, rulesheet(function(rule) {
|
|
1719
|
-
currentSheet.insert(rule);
|
|
1720
|
-
})], serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins)), stylis = function(styles2) {
|
|
1721
|
-
return serialize(compile(styles2), serializer);
|
|
1722
|
-
};
|
|
1723
|
-
_insert = function(selector, serialized, sheet, shouldCache) {
|
|
1724
|
-
currentSheet = sheet, stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles), shouldCache && (cache.inserted[serialized.name] = !0);
|
|
1725
|
-
};
|
|
1726
|
-
}
|
|
1727
|
-
var cache = {
|
|
1728
|
-
key,
|
|
1729
|
-
sheet: new StyleSheet({
|
|
1730
|
-
key,
|
|
1731
|
-
container,
|
|
1732
|
-
nonce: options.nonce,
|
|
1733
|
-
speedy: options.speedy,
|
|
1734
|
-
prepend: options.prepend,
|
|
1735
|
-
insertionPoint: options.insertionPoint
|
|
1736
|
-
}),
|
|
1737
|
-
nonce: options.nonce,
|
|
1738
|
-
inserted,
|
|
1739
|
-
registered: {},
|
|
1740
|
-
insert: _insert
|
|
1741
|
-
};
|
|
1742
|
-
return cache.sheet.hydrate(nodesToHydrate), cache;
|
|
1743
|
-
};
|
|
1744
|
-
|
|
1745
|
-
// ../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js
|
|
1746
|
-
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs()), hoistNonReactStatics = (function(targetComponent, sourceComponent) {
|
|
1747
|
-
return (0, import_hoist_non_react_statics.default)(targetComponent, sourceComponent);
|
|
1748
|
-
});
|
|
1749
|
-
|
|
1750
|
-
// ../../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
|
|
1751
|
-
var isBrowser = !0;
|
|
1752
|
-
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
1753
|
-
var rawClassName = "";
|
|
1754
|
-
return classNames.split(" ").forEach(function(className) {
|
|
1755
|
-
registered[className] !== void 0 ? registeredStyles.push(registered[className] + ";") : className && (rawClassName += className + " ");
|
|
1756
|
-
}), rawClassName;
|
|
1757
|
-
}
|
|
1758
|
-
var registerStyles = function(cache, serialized, isStringTag) {
|
|
1759
|
-
var className = cache.key + "-" + serialized.name;
|
|
1760
|
-
// we only need to add the styles to the registered cache if the
|
|
1761
|
-
// class name could be used further down
|
|
1762
|
-
// the tree but if it's a string tag, we know it won't
|
|
1763
|
-
// so we don't have to add it to registered cache.
|
|
1764
|
-
// this improves memory usage since we can avoid storing the whole style string
|
|
1765
|
-
(isStringTag === !1 || // we need to always store it if we're in compat mode and
|
|
1766
|
-
// in node since emotion-server relies on whether a style is in
|
|
1767
|
-
// the registered cache to know whether a style is global or not
|
|
1768
|
-
// also, note that this check will be dead code eliminated in the browser
|
|
1769
|
-
isBrowser === !1) && cache.registered[className] === void 0 && (cache.registered[className] = serialized.styles);
|
|
1770
|
-
}, insertStyles = function(cache, serialized, isStringTag) {
|
|
1771
|
-
registerStyles(cache, serialized, isStringTag);
|
|
1772
|
-
var className = cache.key + "-" + serialized.name;
|
|
1773
|
-
if (cache.inserted[serialized.name] === void 0) {
|
|
1774
|
-
var current = serialized;
|
|
1775
|
-
do
|
|
1776
|
-
cache.insert(serialized === current ? "." + className : "", current, cache.sheet, !0), current = current.next;
|
|
1777
|
-
while (current !== void 0);
|
|
1778
|
-
}
|
|
1779
|
-
};
|
|
1780
|
-
|
|
1781
|
-
// ../../node_modules/@emotion/hash/dist/emotion-hash.esm.js
|
|
1782
|
-
function murmur2(str) {
|
|
1783
|
-
for (var h = 0, k, i = 0, len = str.length; len >= 4; ++i, len -= 4)
|
|
1784
|
-
k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24, k = /* Math.imul(k, m): */
|
|
1785
|
-
(k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16), k ^= /* k >>> r: */
|
|
1786
|
-
k >>> 24, h = /* Math.imul(k, m): */
|
|
1787
|
-
(k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
1788
|
-
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
1789
|
-
switch (len) {
|
|
1790
|
-
case 3:
|
|
1791
|
-
h ^= (str.charCodeAt(i + 2) & 255) << 16;
|
|
1792
|
-
case 2:
|
|
1793
|
-
h ^= (str.charCodeAt(i + 1) & 255) << 8;
|
|
1794
|
-
case 1:
|
|
1795
|
-
h ^= str.charCodeAt(i) & 255, h = /* Math.imul(h, m): */
|
|
1796
|
-
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
1797
|
-
}
|
|
1798
|
-
return h ^= h >>> 13, h = /* Math.imul(h, m): */
|
|
1799
|
-
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16), ((h ^ h >>> 15) >>> 0).toString(36);
|
|
1800
|
-
}
|
|
1801
|
-
|
|
1802
|
-
// ../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
|
1803
|
-
var unitlessKeys = {
|
|
1804
|
-
animationIterationCount: 1,
|
|
1805
|
-
aspectRatio: 1,
|
|
1806
|
-
borderImageOutset: 1,
|
|
1807
|
-
borderImageSlice: 1,
|
|
1808
|
-
borderImageWidth: 1,
|
|
1809
|
-
boxFlex: 1,
|
|
1810
|
-
boxFlexGroup: 1,
|
|
1811
|
-
boxOrdinalGroup: 1,
|
|
1812
|
-
columnCount: 1,
|
|
1813
|
-
columns: 1,
|
|
1814
|
-
flex: 1,
|
|
1815
|
-
flexGrow: 1,
|
|
1816
|
-
flexPositive: 1,
|
|
1817
|
-
flexShrink: 1,
|
|
1818
|
-
flexNegative: 1,
|
|
1819
|
-
flexOrder: 1,
|
|
1820
|
-
gridRow: 1,
|
|
1821
|
-
gridRowEnd: 1,
|
|
1822
|
-
gridRowSpan: 1,
|
|
1823
|
-
gridRowStart: 1,
|
|
1824
|
-
gridColumn: 1,
|
|
1825
|
-
gridColumnEnd: 1,
|
|
1826
|
-
gridColumnSpan: 1,
|
|
1827
|
-
gridColumnStart: 1,
|
|
1828
|
-
msGridRow: 1,
|
|
1829
|
-
msGridRowSpan: 1,
|
|
1830
|
-
msGridColumn: 1,
|
|
1831
|
-
msGridColumnSpan: 1,
|
|
1832
|
-
fontWeight: 1,
|
|
1833
|
-
lineHeight: 1,
|
|
1834
|
-
opacity: 1,
|
|
1835
|
-
order: 1,
|
|
1836
|
-
orphans: 1,
|
|
1837
|
-
scale: 1,
|
|
1838
|
-
tabSize: 1,
|
|
1839
|
-
widows: 1,
|
|
1840
|
-
zIndex: 1,
|
|
1841
|
-
zoom: 1,
|
|
1842
|
-
WebkitLineClamp: 1,
|
|
1843
|
-
// SVG-related properties
|
|
1844
|
-
fillOpacity: 1,
|
|
1845
|
-
floodOpacity: 1,
|
|
1846
|
-
stopOpacity: 1,
|
|
1847
|
-
strokeDasharray: 1,
|
|
1848
|
-
strokeDashoffset: 1,
|
|
1849
|
-
strokeMiterlimit: 1,
|
|
1850
|
-
strokeOpacity: 1,
|
|
1851
|
-
strokeWidth: 1
|
|
1852
|
-
};
|
|
1853
|
-
|
|
1854
|
-
// ../../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js
|
|
1855
|
-
var isDevelopment2 = !1, hyphenateRegex = /[A-Z]|^ms/g, animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g, isCustomProperty = function(property) {
|
|
1856
|
-
return property.charCodeAt(1) === 45;
|
|
1857
|
-
}, isProcessableValue = function(value) {
|
|
1858
|
-
return value != null && typeof value != "boolean";
|
|
1859
|
-
}, processStyleName = memoize(function(styleName) {
|
|
1860
|
-
return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
|
|
1861
|
-
}), processStyleValue = function(key, value) {
|
|
1862
|
-
switch (key) {
|
|
1863
|
-
case "animation":
|
|
1864
|
-
case "animationName":
|
|
1865
|
-
if (typeof value == "string")
|
|
1866
|
-
return value.replace(animationRegex, function(match2, p1, p2) {
|
|
1867
|
-
return cursor = {
|
|
1868
|
-
name: p1,
|
|
1869
|
-
styles: p2,
|
|
1870
|
-
next: cursor
|
|
1871
|
-
}, p1;
|
|
1872
|
-
});
|
|
1873
|
-
}
|
|
1874
|
-
return unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value == "number" && value !== 0 ? value + "px" : value;
|
|
1875
|
-
}, noComponentSelectorMessage = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
|
|
1876
|
-
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
1877
|
-
if (interpolation == null)
|
|
1878
|
-
return "";
|
|
1879
|
-
var componentSelector = interpolation;
|
|
1880
|
-
if (componentSelector.__emotion_styles !== void 0)
|
|
1881
|
-
return componentSelector;
|
|
1882
|
-
switch (typeof interpolation) {
|
|
1883
|
-
case "boolean":
|
|
1884
|
-
return "";
|
|
1885
|
-
case "object": {
|
|
1886
|
-
var keyframes = interpolation;
|
|
1887
|
-
if (keyframes.anim === 1)
|
|
1888
|
-
return cursor = {
|
|
1889
|
-
name: keyframes.name,
|
|
1890
|
-
styles: keyframes.styles,
|
|
1891
|
-
next: cursor
|
|
1892
|
-
}, keyframes.name;
|
|
1893
|
-
var serializedStyles = interpolation;
|
|
1894
|
-
if (serializedStyles.styles !== void 0) {
|
|
1895
|
-
var next2 = serializedStyles.next;
|
|
1896
|
-
if (next2 !== void 0)
|
|
1897
|
-
for (; next2 !== void 0; )
|
|
1898
|
-
cursor = {
|
|
1899
|
-
name: next2.name,
|
|
1900
|
-
styles: next2.styles,
|
|
1901
|
-
next: cursor
|
|
1902
|
-
}, next2 = next2.next;
|
|
1903
|
-
var styles2 = serializedStyles.styles + ";";
|
|
1904
|
-
return styles2;
|
|
1905
|
-
}
|
|
1906
|
-
return createStringFromObject(mergedProps, registered, interpolation);
|
|
1907
|
-
}
|
|
1908
|
-
case "function": {
|
|
1909
|
-
if (mergedProps !== void 0) {
|
|
1910
|
-
var previousCursor = cursor, result = interpolation(mergedProps);
|
|
1911
|
-
return cursor = previousCursor, handleInterpolation(mergedProps, registered, result);
|
|
1912
|
-
}
|
|
1913
|
-
break;
|
|
1914
|
-
}
|
|
1915
|
-
}
|
|
1916
|
-
var asString = interpolation;
|
|
1917
|
-
if (registered == null)
|
|
1918
|
-
return asString;
|
|
1919
|
-
var cached = registered[asString];
|
|
1920
|
-
return cached !== void 0 ? cached : asString;
|
|
1921
|
-
}
|
|
1922
|
-
function createStringFromObject(mergedProps, registered, obj) {
|
|
1923
|
-
var string = "";
|
|
1924
|
-
if (Array.isArray(obj))
|
|
1925
|
-
for (var i = 0; i < obj.length; i++)
|
|
1926
|
-
string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
|
|
1927
|
-
else
|
|
1928
|
-
for (var key in obj) {
|
|
1929
|
-
var value = obj[key];
|
|
1930
|
-
if (typeof value != "object") {
|
|
1931
|
-
var asString = value;
|
|
1932
|
-
registered != null && registered[asString] !== void 0 ? string += key + "{" + registered[asString] + "}" : isProcessableValue(asString) && (string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";");
|
|
1933
|
-
} else {
|
|
1934
|
-
if (key === "NO_COMPONENT_SELECTOR" && isDevelopment2)
|
|
1935
|
-
throw new Error(noComponentSelectorMessage);
|
|
1936
|
-
if (Array.isArray(value) && typeof value[0] == "string" && (registered == null || registered[value[0]] === void 0))
|
|
1937
|
-
for (var _i = 0; _i < value.length; _i++)
|
|
1938
|
-
isProcessableValue(value[_i]) && (string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";");
|
|
1939
|
-
else {
|
|
1940
|
-
var interpolated = handleInterpolation(mergedProps, registered, value);
|
|
1941
|
-
switch (key) {
|
|
1942
|
-
case "animation":
|
|
1943
|
-
case "animationName": {
|
|
1944
|
-
string += processStyleName(key) + ":" + interpolated + ";";
|
|
1945
|
-
break;
|
|
1946
|
-
}
|
|
1947
|
-
default:
|
|
1948
|
-
string += key + "{" + interpolated + "}";
|
|
1949
|
-
}
|
|
1950
|
-
}
|
|
1951
|
-
}
|
|
1952
|
-
}
|
|
1953
|
-
return string;
|
|
1954
|
-
}
|
|
1955
|
-
var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g, cursor;
|
|
1956
|
-
function serializeStyles(args, registered, mergedProps) {
|
|
1957
|
-
if (args.length === 1 && typeof args[0] == "object" && args[0] !== null && args[0].styles !== void 0)
|
|
1958
|
-
return args[0];
|
|
1959
|
-
var stringMode = !0, styles2 = "";
|
|
1960
|
-
cursor = void 0;
|
|
1961
|
-
var strings = args[0];
|
|
1962
|
-
if (strings == null || strings.raw === void 0)
|
|
1963
|
-
stringMode = !1, styles2 += handleInterpolation(mergedProps, registered, strings);
|
|
1964
|
-
else {
|
|
1965
|
-
var asTemplateStringsArr = strings;
|
|
1966
|
-
styles2 += asTemplateStringsArr[0];
|
|
1967
|
-
}
|
|
1968
|
-
for (var i = 1; i < args.length; i++)
|
|
1969
|
-
if (styles2 += handleInterpolation(mergedProps, registered, args[i]), stringMode) {
|
|
1970
|
-
var templateStringsArr = strings;
|
|
1971
|
-
styles2 += templateStringsArr[i];
|
|
1972
|
-
}
|
|
1973
|
-
labelPattern.lastIndex = 0;
|
|
1974
|
-
for (var identifierName = "", match2; (match2 = labelPattern.exec(styles2)) !== null; )
|
|
1975
|
-
identifierName += "-" + match2[1];
|
|
1976
|
-
var name = murmur2(styles2) + identifierName;
|
|
1977
|
-
return {
|
|
1978
|
-
name,
|
|
1979
|
-
styles: styles2,
|
|
1980
|
-
next: cursor
|
|
1981
|
-
};
|
|
1982
|
-
}
|
|
1983
|
-
|
|
1984
|
-
// ../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js
|
|
1985
|
-
import * as React from "react";
|
|
1986
|
-
var syncFallback = function(create) {
|
|
1987
|
-
return create();
|
|
1988
|
-
}, useInsertionEffect2 = React.useInsertionEffect ? React.useInsertionEffect : !1, useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect2 || syncFallback, useInsertionEffectWithLayoutFallback = useInsertionEffect2 || React.useLayoutEffect;
|
|
4
|
+
import "../_browser-chunks/chunk-LE2LTDW3.js";
|
|
5
|
+
import "../_browser-chunks/chunk-IMSF75WX.js";
|
|
1989
6
|
|
|
1990
|
-
//
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
// because this module is primarily intended for the browser and node
|
|
1994
|
-
// but it's also required in react native and similar environments sometimes
|
|
1995
|
-
// and we could have a special build just for that
|
|
1996
|
-
// but this is much easier and the native packages
|
|
1997
|
-
// might use a different theme context in the future anyway
|
|
1998
|
-
typeof HTMLElement < "u" ? createCache({
|
|
1999
|
-
key: "css"
|
|
2000
|
-
}) : null
|
|
2001
|
-
), CacheProvider = EmotionCacheContext.Provider;
|
|
2002
|
-
var withEmotionCache = function(func) {
|
|
2003
|
-
return forwardRef2(function(props, ref) {
|
|
2004
|
-
var cache = useContext2(EmotionCacheContext);
|
|
2005
|
-
return func(props, cache, ref);
|
|
2006
|
-
});
|
|
2007
|
-
}, ThemeContext = React2.createContext({}), useTheme = function() {
|
|
2008
|
-
return React2.useContext(ThemeContext);
|
|
2009
|
-
}, getTheme = function(outerTheme, theme2) {
|
|
2010
|
-
if (typeof theme2 == "function") {
|
|
2011
|
-
var mergedTheme = theme2(outerTheme);
|
|
2012
|
-
return mergedTheme;
|
|
2013
|
-
}
|
|
2014
|
-
return _extends({}, outerTheme, theme2);
|
|
2015
|
-
}, createCacheWithTheme = weakMemoize(function(outerTheme) {
|
|
2016
|
-
return weakMemoize(function(theme2) {
|
|
2017
|
-
return getTheme(outerTheme, theme2);
|
|
2018
|
-
});
|
|
2019
|
-
}), ThemeProvider = function(props) {
|
|
2020
|
-
var theme2 = React2.useContext(ThemeContext);
|
|
2021
|
-
return props.theme !== theme2 && (theme2 = createCacheWithTheme(theme2)(props.theme)), React2.createElement(ThemeContext.Provider, {
|
|
2022
|
-
value: theme2
|
|
2023
|
-
}, props.children);
|
|
2024
|
-
};
|
|
2025
|
-
function withTheme(Component) {
|
|
2026
|
-
var componentName = Component.displayName || Component.name || "Component", WithTheme = React2.forwardRef(function(props, ref) {
|
|
2027
|
-
var theme2 = React2.useContext(ThemeContext);
|
|
2028
|
-
return React2.createElement(Component, _extends({
|
|
2029
|
-
theme: theme2,
|
|
2030
|
-
ref
|
|
2031
|
-
}, props));
|
|
2032
|
-
});
|
|
2033
|
-
return WithTheme.displayName = "WithTheme(" + componentName + ")", hoistNonReactStatics(WithTheme, Component);
|
|
2034
|
-
}
|
|
2035
|
-
var hasOwn = {}.hasOwnProperty, typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", createEmotionProps = function(type, props) {
|
|
2036
|
-
var newProps = {};
|
|
2037
|
-
for (var _key in props)
|
|
2038
|
-
hasOwn.call(props, _key) && (newProps[_key] = props[_key]);
|
|
2039
|
-
return newProps[typePropName] = type, newProps;
|
|
2040
|
-
}, Insertion = function(_ref) {
|
|
2041
|
-
var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
|
|
2042
|
-
return registerStyles(cache, serialized, isStringTag), useInsertionEffectAlwaysWithSyncFallback(function() {
|
|
2043
|
-
return insertStyles(cache, serialized, isStringTag);
|
|
2044
|
-
}), null;
|
|
2045
|
-
}, Emotion = withEmotionCache(function(props, cache, ref) {
|
|
2046
|
-
var cssProp = props.css;
|
|
2047
|
-
typeof cssProp == "string" && cache.registered[cssProp] !== void 0 && (cssProp = cache.registered[cssProp]);
|
|
2048
|
-
var WrappedComponent = props[typePropName], registeredStyles = [cssProp], className = "";
|
|
2049
|
-
typeof props.className == "string" ? className = getRegisteredStyles(cache.registered, registeredStyles, props.className) : props.className != null && (className = props.className + " ");
|
|
2050
|
-
var serialized = serializeStyles(registeredStyles, void 0, React2.useContext(ThemeContext));
|
|
2051
|
-
className += cache.key + "-" + serialized.name;
|
|
2052
|
-
var newProps = {};
|
|
2053
|
-
for (var _key2 in props)
|
|
2054
|
-
hasOwn.call(props, _key2) && _key2 !== "css" && _key2 !== typePropName && !isDevelopment3 && (newProps[_key2] = props[_key2]);
|
|
2055
|
-
return newProps.className = className, ref && (newProps.ref = ref), React2.createElement(React2.Fragment, null, React2.createElement(Insertion, {
|
|
2056
|
-
cache,
|
|
2057
|
-
serialized,
|
|
2058
|
-
isStringTag: typeof WrappedComponent == "string"
|
|
2059
|
-
}), React2.createElement(WrappedComponent, newProps));
|
|
2060
|
-
}), Emotion$1 = Emotion;
|
|
2061
|
-
|
|
2062
|
-
// ../../node_modules/@emotion/react/dist/emotion-react.browser.esm.js
|
|
2063
|
-
import * as React3 from "react";
|
|
2064
|
-
var import_hoist_non_react_statics2 = __toESM(require_hoist_non_react_statics_cjs()), jsx = function(type, props) {
|
|
2065
|
-
var args = arguments;
|
|
2066
|
-
if (props == null || !hasOwn.call(props, "css"))
|
|
2067
|
-
return React3.createElement.apply(void 0, args);
|
|
2068
|
-
var argsLength = args.length, createElementArgArray = new Array(argsLength);
|
|
2069
|
-
createElementArgArray[0] = Emotion$1, createElementArgArray[1] = createEmotionProps(type, props);
|
|
2070
|
-
for (var i = 2; i < argsLength; i++)
|
|
2071
|
-
createElementArgArray[i] = args[i];
|
|
2072
|
-
return React3.createElement.apply(null, createElementArgArray);
|
|
2073
|
-
};
|
|
2074
|
-
(function(_jsx) {
|
|
2075
|
-
var JSX;
|
|
2076
|
-
JSX || (JSX = _jsx.JSX || (_jsx.JSX = {}));
|
|
2077
|
-
})(jsx || (jsx = {}));
|
|
2078
|
-
var Global = withEmotionCache(function(props, cache) {
|
|
2079
|
-
var styles2 = props.styles, serialized = serializeStyles([styles2], void 0, React3.useContext(ThemeContext)), sheetRef = React3.useRef();
|
|
2080
|
-
return useInsertionEffectWithLayoutFallback(function() {
|
|
2081
|
-
var key = cache.key + "-global", sheet = new cache.sheet.constructor({
|
|
2082
|
-
key,
|
|
2083
|
-
nonce: cache.sheet.nonce,
|
|
2084
|
-
container: cache.sheet.container,
|
|
2085
|
-
speedy: cache.sheet.isSpeedy
|
|
2086
|
-
}), rehydrating = !1, node2 = document.querySelector('style[data-emotion="' + key + " " + serialized.name + '"]');
|
|
2087
|
-
return cache.sheet.tags.length && (sheet.before = cache.sheet.tags[0]), node2 !== null && (rehydrating = !0, node2.setAttribute("data-emotion", key), sheet.hydrate([node2])), sheetRef.current = [sheet, rehydrating], function() {
|
|
2088
|
-
sheet.flush();
|
|
2089
|
-
};
|
|
2090
|
-
}, [cache]), useInsertionEffectWithLayoutFallback(function() {
|
|
2091
|
-
var sheetRefCurrent = sheetRef.current, sheet = sheetRefCurrent[0], rehydrating = sheetRefCurrent[1];
|
|
2092
|
-
if (rehydrating) {
|
|
2093
|
-
sheetRefCurrent[1] = !1;
|
|
2094
|
-
return;
|
|
2095
|
-
}
|
|
2096
|
-
if (serialized.next !== void 0 && insertStyles(cache, serialized.next, !0), sheet.tags.length) {
|
|
2097
|
-
var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
|
|
2098
|
-
sheet.before = element, sheet.flush();
|
|
2099
|
-
}
|
|
2100
|
-
cache.insert("", serialized, sheet, !1);
|
|
2101
|
-
}, [cache, serialized.name]), null;
|
|
2102
|
-
});
|
|
2103
|
-
var classnames = function classnames2(args) {
|
|
2104
|
-
for (var len = args.length, i = 0, cls = ""; i < len; i++) {
|
|
2105
|
-
var arg = args[i];
|
|
2106
|
-
if (arg != null) {
|
|
2107
|
-
var toAdd = void 0;
|
|
2108
|
-
switch (typeof arg) {
|
|
2109
|
-
case "boolean":
|
|
2110
|
-
break;
|
|
2111
|
-
case "object": {
|
|
2112
|
-
if (Array.isArray(arg))
|
|
2113
|
-
toAdd = classnames2(arg);
|
|
2114
|
-
else {
|
|
2115
|
-
toAdd = "";
|
|
2116
|
-
for (var k in arg)
|
|
2117
|
-
arg[k] && k && (toAdd && (toAdd += " "), toAdd += k);
|
|
2118
|
-
}
|
|
2119
|
-
break;
|
|
2120
|
-
}
|
|
2121
|
-
default:
|
|
2122
|
-
toAdd = arg;
|
|
2123
|
-
}
|
|
2124
|
-
toAdd && (cls && (cls += " "), cls += toAdd);
|
|
2125
|
-
}
|
|
2126
|
-
}
|
|
2127
|
-
return cls;
|
|
2128
|
-
};
|
|
2129
|
-
function merge(registered, css2, className) {
|
|
2130
|
-
var registeredStyles = [], rawClassName = getRegisteredStyles(registered, registeredStyles, className);
|
|
2131
|
-
return registeredStyles.length < 2 ? className : rawClassName + css2(registeredStyles);
|
|
2132
|
-
}
|
|
2133
|
-
var Insertion3 = function(_ref) {
|
|
2134
|
-
var cache = _ref.cache, serializedArr = _ref.serializedArr;
|
|
2135
|
-
return useInsertionEffectAlwaysWithSyncFallback(function() {
|
|
2136
|
-
for (var i = 0; i < serializedArr.length; i++)
|
|
2137
|
-
insertStyles(cache, serializedArr[i], !1);
|
|
2138
|
-
}), null;
|
|
2139
|
-
}, ClassNames = withEmotionCache(function(props, cache) {
|
|
2140
|
-
var hasRendered = !1, serializedArr = [], css2 = function() {
|
|
2141
|
-
if (hasRendered && isDevelopment3)
|
|
2142
|
-
throw new Error("css can only be used during render");
|
|
2143
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
|
|
2144
|
-
args[_key] = arguments[_key];
|
|
2145
|
-
var serialized = serializeStyles(args, cache.registered);
|
|
2146
|
-
return serializedArr.push(serialized), registerStyles(cache, serialized, !1), cache.key + "-" + serialized.name;
|
|
2147
|
-
}, cx = function() {
|
|
2148
|
-
if (hasRendered && isDevelopment3)
|
|
2149
|
-
throw new Error("cx can only be used during render");
|
|
2150
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++)
|
|
2151
|
-
args[_key2] = arguments[_key2];
|
|
2152
|
-
return merge(cache.registered, css2, classnames(args));
|
|
2153
|
-
}, content = {
|
|
2154
|
-
css: css2,
|
|
2155
|
-
cx,
|
|
2156
|
-
theme: React3.useContext(ThemeContext)
|
|
2157
|
-
}, ele = props.children(content);
|
|
2158
|
-
return hasRendered = !0, React3.createElement(React3.Fragment, null, React3.createElement(Insertion3, {
|
|
2159
|
-
cache,
|
|
2160
|
-
serializedArr
|
|
2161
|
-
}), ele);
|
|
2162
|
-
});
|
|
2163
|
-
|
|
2164
|
-
// ../../node_modules/@emotion/primitives-core/dist/emotion-primitives-core.esm.js
|
|
2165
|
-
function interleave(vals) {
|
|
2166
|
-
for (var strings = vals[0], finalArray = [strings[0]], i = 1, len = vals.length; i < len; i++)
|
|
2167
|
-
finalArray.push(vals[i]), strings[i] !== void 0 && finalArray.push(strings[i]);
|
|
2168
|
-
return finalArray;
|
|
2169
|
-
}
|
|
2170
|
-
var styles, generated = {}, buffer = "", lastType;
|
|
2171
|
-
function handleInterpolation2(interpolation, i, arr) {
|
|
2172
|
-
var type = typeof interpolation;
|
|
2173
|
-
if (type === "string" && (interpolation = interpolation.replace(/\/\*[\s\S]*?\*\/|\/\/.*$/gm, "")), type === "function") {
|
|
2174
|
-
this === void 0 || handleInterpolation2.call(this, interpolation(this), i, arr);
|
|
2175
|
-
return;
|
|
2176
|
-
}
|
|
2177
|
-
var isIrrelevant = interpolation == null || type === "boolean", isRnStyle = type === "object" && !Array.isArray(interpolation) || type === "number";
|
|
2178
|
-
if (lastType === "string" && (isRnStyle || isIrrelevant)) {
|
|
2179
|
-
var converted = convertStyles(buffer);
|
|
2180
|
-
converted !== void 0 && styles.push(converted), buffer = "";
|
|
2181
|
-
}
|
|
2182
|
-
if (!isIrrelevant) {
|
|
2183
|
-
if (type === "string" && (buffer += interpolation, arr.length - 1 === i)) {
|
|
2184
|
-
var _converted = convertStyles(buffer);
|
|
2185
|
-
_converted !== void 0 && styles.push(_converted), buffer = "";
|
|
2186
|
-
}
|
|
2187
|
-
isRnStyle && styles.push(interpolation), Array.isArray(interpolation) && interpolation.forEach(handleInterpolation2, this), lastType = type;
|
|
2188
|
-
}
|
|
2189
|
-
}
|
|
2190
|
-
function createCss(StyleSheet4) {
|
|
2191
|
-
return function() {
|
|
2192
|
-
var prevBuffer = buffer, vals;
|
|
2193
|
-
styles = [], buffer = "", lastType = void 0;
|
|
2194
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
|
|
2195
|
-
args[_key] = arguments[_key];
|
|
2196
|
-
args[0] == null || args[0].raw === void 0 ? vals = args : vals = interleave(args);
|
|
2197
|
-
try {
|
|
2198
|
-
vals.forEach(handleInterpolation2, this);
|
|
2199
|
-
} finally {
|
|
2200
|
-
buffer = prevBuffer;
|
|
2201
|
-
}
|
|
2202
|
-
var hash2 = JSON.stringify(styles);
|
|
2203
|
-
if (!generated[hash2]) {
|
|
2204
|
-
var styleSheet = StyleSheet4.create({
|
|
2205
|
-
generated: StyleSheet4.flatten(styles)
|
|
2206
|
-
});
|
|
2207
|
-
generated[hash2] = styleSheet.generated;
|
|
2208
|
-
}
|
|
2209
|
-
return generated[hash2];
|
|
2210
|
-
};
|
|
2211
|
-
}
|
|
2212
|
-
var propertyValuePattern = /\s*([^\s]+)\s*:\s*(.+?)\s*$/;
|
|
2213
|
-
function convertPropertyValue(style) {
|
|
2214
|
-
var match2 = propertyValuePattern.exec(style);
|
|
2215
|
-
match2 !== null && match2[2] !== " " && (match2.shift(), this.push(match2));
|
|
2216
|
-
}
|
|
2217
|
-
function convertStyles(str) {
|
|
2218
|
-
if (str.trim() !== "") {
|
|
2219
|
-
var stylePairs = [], parsedString = str.split(";");
|
|
2220
|
-
parsedString.forEach(convertPropertyValue, stylePairs);
|
|
2221
|
-
try {
|
|
2222
|
-
return (0, import_css_to_react_native.default)(stylePairs);
|
|
2223
|
-
} catch (error) {
|
|
2224
|
-
var msg = error?.message;
|
|
2225
|
-
if (msg && msg.includes("Failed to parse declaration")) {
|
|
2226
|
-
var values = msg.replace("Failed to parse declaration ", "").replace(/"/g, "").trim().split(":"), errorMsg = "'" + values[0] + "' shorthand property requires units for example - " + values[0] + ": 20px or " + values[0] + ": 10px 20px 40px 50px";
|
|
2227
|
-
console.error(errorMsg);
|
|
2228
|
-
}
|
|
2229
|
-
}
|
|
2230
|
-
}
|
|
2231
|
-
}
|
|
2232
|
-
var testOmitPropsOnComponent = function(prop) {
|
|
2233
|
-
return prop !== "theme" && prop !== "as";
|
|
2234
|
-
};
|
|
2235
|
-
function createStyled(StyleSheet4, options) {
|
|
2236
|
-
var _options$getShouldFor, getShouldForwardProp = (_options$getShouldFor = options?.getShouldForwardProp) != null ? _options$getShouldFor : function() {
|
|
2237
|
-
return testOmitPropsOnComponent;
|
|
2238
|
-
}, css2 = createCss(StyleSheet4);
|
|
2239
|
-
return function createEmotion(component, options2) {
|
|
2240
|
-
var shouldForwardProp = options2 && options2.shouldForwardProp ? options2.shouldForwardProp : void 0, defaultShouldForwardProp = shouldForwardProp || getShouldForwardProp(component), shouldUseAs = !defaultShouldForwardProp("as");
|
|
2241
|
-
return function() {
|
|
2242
|
-
for (var styles2, _len = arguments.length, rawStyles = new Array(_len), _key = 0; _key < _len; _key++)
|
|
2243
|
-
rawStyles[_key] = arguments[_key];
|
|
2244
|
-
rawStyles[0] == null || rawStyles[0].raw === void 0 ? styles2 = rawStyles : styles2 = interleave(rawStyles);
|
|
2245
|
-
var Styled = React4.forwardRef(function(props, ref) {
|
|
2246
|
-
var finalTag = shouldUseAs && props.as || component, mergedProps = props;
|
|
2247
|
-
if (props.theme == null) {
|
|
2248
|
-
mergedProps = {};
|
|
2249
|
-
for (var key in props)
|
|
2250
|
-
mergedProps[key] = props[key];
|
|
2251
|
-
mergedProps.theme = React4.useContext(ThemeContext);
|
|
2252
|
-
}
|
|
2253
|
-
var finalShouldForwardProp = shouldUseAs && shouldForwardProp === void 0 ? getShouldForwardProp(finalTag) : defaultShouldForwardProp, newProps = {};
|
|
2254
|
-
for (var _key2 in props)
|
|
2255
|
-
shouldUseAs && _key2 === "as" || finalShouldForwardProp(_key2) && (newProps[_key2] = props[_key2]);
|
|
2256
|
-
return newProps.style = [css2.apply(mergedProps, styles2), props.style], ref && (newProps.ref = ref), React4.createElement(finalTag, newProps);
|
|
2257
|
-
});
|
|
2258
|
-
Styled.displayName = "emotion(" + getDisplayName(component) + ")";
|
|
2259
|
-
var withComponent = function(newComponent) {
|
|
2260
|
-
return createEmotion(newComponent).apply(void 0, styles2);
|
|
2261
|
-
}, castedStyled = Styled;
|
|
2262
|
-
return castedStyled.withComponent = withComponent, castedStyled;
|
|
2263
|
-
};
|
|
2264
|
-
};
|
|
2265
|
-
}
|
|
2266
|
-
var getDisplayName = function(primitive) {
|
|
2267
|
-
return typeof primitive == "string" ? primitive : primitive.displayName || primitive.name || "Styled";
|
|
2268
|
-
};
|
|
2269
|
-
|
|
2270
|
-
// ../../node_modules/@emotion/native/dist/emotion-native.esm.js
|
|
2271
|
-
var styled = createStyled(StyleSheet3), css = createCss(reactNative.StyleSheet), components = ["ActivityIndicator", "Button", "DatePickerIOS", "DrawerLayoutAndroid", "FlatList", "Image", "ImageBackground", "KeyboardAvoidingView", "ListView", "Modal", "NavigatorIOS", "Picker", "PickerIOS", "Pressable", "ProgressBarAndroid", "ProgressViewIOS", "RecyclerViewBackedScrollView", "RefreshControl", "SafeAreaView", "ScrollView", "SectionList", "SegmentedControlIOS", "Slider", "SnapshotViewIOS", "StatusBar", "SwipeableListView", "Switch", "SwitchIOS", "TabBarIOS", "Text", "TextInput", "ToolbarAndroid", "TouchableHighlight", "TouchableNativeFeedback", "TouchableOpacity", "TouchableWithoutFeedback", "View", "ViewPagerAndroid"], index = components.reduce(function(acc, comp) {
|
|
2272
|
-
return Object.defineProperty(acc, comp, {
|
|
2273
|
-
enumerable: !0,
|
|
2274
|
-
configurable: !1,
|
|
2275
|
-
get: function() {
|
|
2276
|
-
return styled(reactNative[comp]);
|
|
2277
|
-
}
|
|
2278
|
-
});
|
|
2279
|
-
}, styled);
|
|
7
|
+
// src/react-native-theming/index.ts
|
|
8
|
+
import styled from "@emotion/native";
|
|
9
|
+
import { useTheme, withTheme, ThemeProvider } from "@emotion/react";
|
|
2280
10
|
|
|
2281
11
|
// src/react-native-theming/web-theme.ts
|
|
2282
12
|
var color = {
|
|
2283
|
-
//
|
|
2284
|
-
primary: "#
|
|
2285
|
-
//
|
|
2286
|
-
secondary: "#
|
|
2287
|
-
//
|
|
2288
|
-
secondaryLighter: "rgba(
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
ancillary: "#22a699",
|
|
13
|
+
// Forkbook palette: the iOS system colours
|
|
14
|
+
primary: "#007AFF",
|
|
15
|
+
// systemBlue
|
|
16
|
+
secondary: "#007AFF",
|
|
17
|
+
// systemBlue
|
|
18
|
+
secondaryLighter: "rgba(0, 122, 255, 0.9)",
|
|
19
|
+
tertiary: "#F2F2F7",
|
|
20
|
+
ancillary: "#30B0C7",
|
|
2292
21
|
// Complimentary
|
|
2293
|
-
orange: "#
|
|
2294
|
-
gold: "#
|
|
2295
|
-
green: "#
|
|
2296
|
-
seafoam: "#
|
|
2297
|
-
purple: "#
|
|
2298
|
-
ultraviolet: "#
|
|
22
|
+
orange: "#FF9500",
|
|
23
|
+
gold: "#FFCC00",
|
|
24
|
+
green: "#34C759",
|
|
25
|
+
seafoam: "#32ADE6",
|
|
26
|
+
purple: "#AF52DE",
|
|
27
|
+
ultraviolet: "#5856D6",
|
|
2299
28
|
// Monochrome
|
|
2300
29
|
lightest: "#FFFFFF",
|
|
2301
|
-
lighter: "#
|
|
2302
|
-
light: "#
|
|
2303
|
-
mediumlight: "#
|
|
2304
|
-
medium: "#
|
|
2305
|
-
mediumdark: "#
|
|
2306
|
-
dark: "#
|
|
2307
|
-
darker: "#
|
|
2308
|
-
darkest: "#
|
|
30
|
+
lighter: "#F2F2F7",
|
|
31
|
+
light: "#E5E5EA",
|
|
32
|
+
mediumlight: "#E5E5EA",
|
|
33
|
+
medium: "#D1D1D6",
|
|
34
|
+
mediumdark: "#8E8E93",
|
|
35
|
+
dark: "#636366",
|
|
36
|
+
darker: "#48484A",
|
|
37
|
+
darkest: "#1C1C1E",
|
|
2309
38
|
// For borders
|
|
2310
|
-
border: "
|
|
39
|
+
border: "rgba(60, 60, 67, 0.18)",
|
|
2311
40
|
// Status
|
|
2312
|
-
positive: "#
|
|
2313
|
-
negative: "#
|
|
2314
|
-
warning: "#
|
|
41
|
+
positive: "#34C759",
|
|
42
|
+
negative: "#FF3B30",
|
|
43
|
+
warning: "#FF9500",
|
|
2315
44
|
critical: "#FFFFFF",
|
|
2316
45
|
// Text
|
|
2317
|
-
defaultText: "#
|
|
46
|
+
defaultText: "#1C1C1E",
|
|
2318
47
|
inverseText: "#FFFFFF",
|
|
2319
|
-
positiveText: "#
|
|
2320
|
-
negativeText: "#
|
|
2321
|
-
warningText: "#
|
|
48
|
+
positiveText: "#248A3D",
|
|
49
|
+
negativeText: "#D70015",
|
|
50
|
+
warningText: "#C93400"
|
|
2322
51
|
}, background = {
|
|
2323
|
-
app: "#
|
|
52
|
+
app: "#F2F2F7",
|
|
2324
53
|
bar: color.lightest,
|
|
2325
54
|
content: color.lightest,
|
|
2326
55
|
preview: color.lightest,
|
|
@@ -2328,18 +57,16 @@ var color = {
|
|
|
2328
57
|
hoverable: curriedTransparentize$1(0.9, color.secondary),
|
|
2329
58
|
// hover state for items in a list
|
|
2330
59
|
// Notification, error, and warning backgrounds
|
|
2331
|
-
positive: "#
|
|
2332
|
-
negative: "#
|
|
2333
|
-
warning: "#
|
|
2334
|
-
critical: "#
|
|
60
|
+
positive: "#EAF9EE",
|
|
61
|
+
negative: "#FFEBEA",
|
|
62
|
+
warning: "#FFF4E5",
|
|
63
|
+
critical: "#D70015"
|
|
2335
64
|
};
|
|
2336
65
|
var light = {
|
|
2337
66
|
base: "light",
|
|
2338
|
-
//
|
|
2339
|
-
colorPrimary:
|
|
2340
|
-
|
|
2341
|
-
colorSecondary: "#029CFD",
|
|
2342
|
-
// ocean
|
|
67
|
+
// Forkbook-specific color palette
|
|
68
|
+
colorPrimary: color.primary,
|
|
69
|
+
colorSecondary: color.secondary,
|
|
2343
70
|
// UI
|
|
2344
71
|
appBg: background.app,
|
|
2345
72
|
appContentBg: color.lightest,
|
|
@@ -2367,33 +94,31 @@ var light = {
|
|
|
2367
94
|
inputBorderRadius: 4
|
|
2368
95
|
}, dark = {
|
|
2369
96
|
base: "dark",
|
|
2370
|
-
//
|
|
2371
|
-
colorPrimary: "#
|
|
2372
|
-
|
|
2373
|
-
colorSecondary: "#029CFD",
|
|
2374
|
-
// ocean
|
|
97
|
+
// Forkbook palette: the iOS system colours (dark appearance)
|
|
98
|
+
colorPrimary: "#0A84FF",
|
|
99
|
+
colorSecondary: "#0A84FF",
|
|
2375
100
|
// UI
|
|
2376
|
-
appBg: "#
|
|
2377
|
-
appContentBg: "#
|
|
101
|
+
appBg: "#000000",
|
|
102
|
+
appContentBg: "#1C1C1E",
|
|
2378
103
|
appPreviewBg: color.lightest,
|
|
2379
|
-
appBorderColor: "rgba(
|
|
104
|
+
appBorderColor: "rgba(84, 84, 88, 0.6)",
|
|
2380
105
|
appBorderRadius: 4,
|
|
2381
106
|
// Text colors
|
|
2382
|
-
textColor: "#
|
|
2383
|
-
textInverseColor: "#
|
|
2384
|
-
textMutedColor: "#
|
|
107
|
+
textColor: "#F2F2F7",
|
|
108
|
+
textInverseColor: "#1C1C1E",
|
|
109
|
+
textMutedColor: "#98989F",
|
|
2385
110
|
// Toolbar default and active colors
|
|
2386
|
-
barTextColor:
|
|
2387
|
-
barHoverColor:
|
|
2388
|
-
barSelectedColor:
|
|
2389
|
-
barBg: "#
|
|
111
|
+
barTextColor: "#98989F",
|
|
112
|
+
barHoverColor: "#0A84FF",
|
|
113
|
+
barSelectedColor: "#0A84FF",
|
|
114
|
+
barBg: "#1C1C1E",
|
|
2390
115
|
// Form colors
|
|
2391
|
-
buttonBg: "#
|
|
2392
|
-
buttonBorder: "rgba(
|
|
2393
|
-
booleanBg: "#
|
|
2394
|
-
booleanSelectedBg: "#
|
|
2395
|
-
inputBg: "#
|
|
2396
|
-
inputBorder: "rgba(
|
|
116
|
+
buttonBg: "#2C2C2E",
|
|
117
|
+
buttonBorder: "rgba(84, 84, 88, 0.6)",
|
|
118
|
+
booleanBg: "#2C2C2E",
|
|
119
|
+
booleanSelectedBg: "#3A3A3C",
|
|
120
|
+
inputBg: "#2C2C2E",
|
|
121
|
+
inputBorder: "rgba(84, 84, 88, 0.6)",
|
|
2397
122
|
inputTextColor: color.lightest,
|
|
2398
123
|
inputBorderRadius: 4
|
|
2399
124
|
};
|
|
@@ -2584,7 +309,7 @@ var typography = {
|
|
|
2584
309
|
export {
|
|
2585
310
|
ThemeProvider,
|
|
2586
311
|
darkTheme,
|
|
2587
|
-
|
|
312
|
+
styled,
|
|
2588
313
|
theme,
|
|
2589
314
|
useTheme,
|
|
2590
315
|
withTheme
|