@jackuait/blok 0.13.2 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blok.cjs +1 -1
- package/dist/blok.iife.js +30 -30
- package/dist/blok.mjs +2 -2
- package/dist/chunks/blok-Da-GaWJ8.cjs +17 -0
- package/dist/chunks/{blok-Du6vYONn.mjs → blok-PpFnlqXZ.mjs} +2722 -2322
- package/dist/chunks/constants-C-OQpSwB.cjs +457 -0
- package/dist/chunks/{constants-DUuYY64n.mjs → constants-DdfiMdC1.mjs} +390 -299
- package/dist/chunks/{i18next-loader-GIrBCFrC.mjs → i18next-loader-BEWWek8j.mjs} +1 -1
- package/dist/chunks/{i18next-loader-DC1uN-wc.cjs → i18next-loader-BRLYf-CW.cjs} +1 -1
- package/dist/chunks/{lightweight-i18n-DF9Pupws.mjs → lightweight-i18n-GbzxWVgl.mjs} +9 -0
- package/dist/chunks/lightweight-i18n-lNYVKCfj.cjs +1 -0
- package/dist/chunks/messages-085GG-gT.cjs +1 -0
- package/dist/{messages-3j4yi-DF.mjs → chunks/messages-46QopBh4.mjs} +9 -0
- package/dist/chunks/messages-5kQujjf1.cjs +1 -0
- package/dist/chunks/{messages-CTWXEx_o.mjs → messages-6r3Lrqpf.mjs} +9 -0
- package/dist/chunks/messages-8vjbwhvK.cjs +1 -0
- package/dist/chunks/messages-ACbZDExx.cjs +1 -0
- package/dist/chunks/messages-B05XREvI.cjs +1 -0
- package/dist/chunks/{messages-CQg2_vmm.mjs → messages-B0y97-C9.mjs} +9 -0
- package/dist/chunks/{messages-ZHNvKiIX.mjs → messages-B26pkAIj.mjs} +9 -0
- package/dist/chunks/messages-B2J7kDKI.cjs +1 -0
- package/dist/chunks/messages-B3jMjjFG.cjs +1 -0
- package/dist/chunks/messages-B4_c-uS0.cjs +1 -0
- package/dist/chunks/messages-B6zoVYEd.cjs +1 -0
- package/dist/chunks/{messages-DI9Ifrgt.mjs → messages-B73uch0z.mjs} +9 -0
- package/dist/chunks/{messages-AgmrT2Id.mjs → messages-B74xK8Ux.mjs} +9 -0
- package/dist/chunks/messages-B7efcz_S2.cjs +1 -0
- package/dist/chunks/{messages-sqdfYuVj2.mjs → messages-B9u3UJRu2.mjs} +9 -0
- package/dist/chunks/messages-BB9huoLU.cjs +1 -0
- package/dist/{messages-Cx7sqvx02.mjs → chunks/messages-BEzCtzW3.mjs} +9 -0
- package/dist/chunks/messages-BGQdk2zV2.cjs +1 -0
- package/dist/chunks/messages-BGmUrVtN2.cjs +1 -0
- package/dist/chunks/messages-BH-3FR4b2.cjs +1 -0
- package/dist/chunks/{messages-BZ4d5yNH.mjs → messages-BHqAQF6C.mjs} +9 -0
- package/dist/{messages-DzkZ434Z.mjs → chunks/messages-BI_-Ub99.mjs} +9 -0
- package/dist/chunks/messages-BNa6_BYq2.cjs +1 -0
- package/dist/chunks/{messages-BvupGuDw2.mjs → messages-BOMNOs8T2.mjs} +9 -0
- package/dist/chunks/{messages-fSeXd6-z.mjs → messages-BPYPnKHy.mjs} +9 -0
- package/dist/{messages-B3PWaMcw.mjs → chunks/messages-BQmUOeft.mjs} +9 -0
- package/dist/chunks/messages-BRfutnCs.cjs +1 -0
- package/dist/chunks/messages-BT_0dgL1.cjs +1 -0
- package/dist/chunks/{messages-BWGqOZ9J.mjs → messages-BWSXW4jk.mjs} +9 -0
- package/dist/chunks/messages-BWpKvkND2.cjs +1 -0
- package/dist/chunks/messages-BY6gCAsA2.cjs +1 -0
- package/dist/{messages-BDwU9rYR2.mjs → chunks/messages-BbfZo0kw2.mjs} +9 -0
- package/dist/{messages-gQ5PFa2t2.mjs → chunks/messages-BfqzgRP72.mjs} +9 -0
- package/dist/chunks/messages-Bk2Xs7_v.cjs +1 -0
- package/dist/{messages-CmN2OfuB.mjs → chunks/messages-BmkavfpK.mjs} +9 -0
- package/dist/chunks/{messages-B1k4DgVe.mjs → messages-BmzMikmq.mjs} +9 -0
- package/dist/chunks/messages-BniEGAW32.cjs +1 -0
- package/dist/chunks/{messages-BP77P9ER.mjs → messages-BplwYBhA.mjs} +9 -0
- package/dist/chunks/{messages-B1xgsCNQ.cjs → messages-BqJ-xe8R.cjs} +1 -1
- package/dist/chunks/messages-Bry43U_U.cjs +1 -0
- package/dist/{messages-DFfhoDWZ2.mjs → chunks/messages-BuzGjYKw.mjs} +9 -0
- package/dist/chunks/messages-ByT63R7v2.cjs +1 -0
- package/dist/{messages-C_gdsU952.mjs → chunks/messages-C0S7KViA2.mjs} +9 -0
- package/dist/chunks/{messages-DzY53I67.mjs → messages-C0Tt7Odx.mjs} +9 -0
- package/dist/{messages-B8Tq9Txy.mjs → chunks/messages-C3A1iLjY.mjs} +9 -0
- package/dist/chunks/{messages-B6You-RA.mjs → messages-C3gh1rpr.mjs} +9 -0
- package/dist/chunks/{messages-CXxz5HYQ.mjs → messages-C7JE4SUS.mjs} +9 -0
- package/dist/chunks/messages-C9IWDnCh2.cjs +1 -0
- package/dist/chunks/messages-CBc3S61g2.cjs +1 -0
- package/dist/chunks/{messages-DefZ3ihx.mjs → messages-CHpkDOiI.mjs} +9 -0
- package/dist/{messages-BcD7xtJA.mjs → chunks/messages-CImQCp-z2.mjs} +9 -0
- package/dist/chunks/messages-CJ--z80t2.cjs +1 -0
- package/dist/chunks/messages-CNH8YFuv.cjs +1 -0
- package/dist/chunks/{messages-bjSJwsXK2.mjs → messages-CQ2KWTbV2.mjs} +9 -0
- package/dist/{messages-C8RMjnBe.mjs → chunks/messages-CWAukiLC.mjs} +9 -0
- package/dist/{messages-B3oFjWq3.mjs → chunks/messages-C_BUhMkZ.mjs} +9 -0
- package/dist/chunks/{messages-BvuEffoe.mjs → messages-CcBT1o1B.mjs} +9 -0
- package/dist/chunks/messages-CdqejEof.cjs +1 -0
- package/dist/chunks/messages-Chdejshy2.cjs +1 -0
- package/dist/{messages-D-rvoUSJ.mjs → chunks/messages-CijMg_B_.mjs} +9 -0
- package/dist/{messages-JKXCsFKZ.mjs → chunks/messages-Ciz80Z2u2.mjs} +9 -0
- package/dist/{messages-Dq2WEsEu.mjs → chunks/messages-CjuGKMoT.mjs} +9 -0
- package/dist/chunks/{messages-BxKobpJ22.mjs → messages-ClOfUECP2.mjs} +9 -0
- package/dist/chunks/messages-CrF-Q_ML.cjs +1 -0
- package/dist/chunks/messages-Cww_rBCM.cjs +1 -0
- package/dist/chunks/messages-CxPVYl2H2.cjs +1 -0
- package/dist/chunks/{messages-BA2sVGrR2.mjs → messages-Cyiqo_dk2.mjs} +9 -0
- package/dist/{messages-D788KtGe.mjs → chunks/messages-D-u_SWhb.mjs} +9 -0
- package/dist/chunks/messages-D0H-D5FQ2.cjs +1 -0
- package/dist/chunks/messages-D195RH3A.cjs +1 -0
- package/dist/chunks/{messages-Dd4nzvLj2.mjs → messages-D5-DG-_u2.mjs} +9 -0
- package/dist/chunks/messages-D6kDQgDP2.cjs +1 -0
- package/dist/{messages-CAGQtm7T.mjs → chunks/messages-D8-hiQgf.mjs} +9 -0
- package/dist/{messages-ftPYsH6d2.mjs → chunks/messages-D8nb9CKr2.mjs} +9 -0
- package/dist/{messages-DPqFBtJR.mjs → chunks/messages-DAd5yWtH2.mjs} +9 -0
- package/dist/chunks/messages-DAdsFLpE.cjs +1 -0
- package/dist/chunks/messages-DCUsbiUQ.cjs +1 -0
- package/dist/{messages-AycxTjmw.mjs → chunks/messages-DCVZaAT9.mjs} +9 -0
- package/dist/chunks/messages-DHXttezt2.cjs +1 -0
- package/dist/chunks/messages-DIgxCixa.cjs +1 -0
- package/dist/chunks/messages-DJ0Wr-Bt2.cjs +1 -0
- package/dist/chunks/messages-DJBdlmxR.cjs +1 -0
- package/dist/chunks/{messages-5AxgjKgf2.mjs → messages-DJm-uLwr2.mjs} +9 -0
- package/dist/chunks/{messages-BVarbXYD2.mjs → messages-DKF4qWhw2.mjs} +9 -0
- package/dist/chunks/messages-DLAWSVlE.cjs +1 -0
- package/dist/{messages-Bj03XD-02.mjs → chunks/messages-DLI8m6z_2.mjs} +9 -0
- package/dist/{messages-CTzO11jz.mjs → chunks/messages-DNiWBVQr.mjs} +9 -0
- package/dist/chunks/messages-DNsgR3ZH.cjs +1 -0
- package/dist/{messages-CgaGkQi32.mjs → chunks/messages-DPI5-TrO2.mjs} +9 -0
- package/dist/chunks/{messages-CyCl8la6.mjs → messages-DQ1z_srP.mjs} +9 -0
- package/dist/chunks/{messages-C4bHKGnB2.mjs → messages-DSxYO-_j2.mjs} +9 -0
- package/dist/chunks/messages-DTrrEqf02.cjs +1 -0
- package/dist/chunks/{messages-D7YPlNAK.mjs → messages-DYLfoakZ.mjs} +9 -0
- package/dist/chunks/messages-DZCWq8nI2.cjs +1 -0
- package/dist/{messages-PQVh93mt.mjs → chunks/messages-D_JT9POv.mjs} +9 -0
- package/dist/chunks/{messages-Uc3Uc2862.mjs → messages-DaTniq4w2.mjs} +9 -0
- package/dist/{messages-DiL61awK.mjs → chunks/messages-De2tXe0o.mjs} +9 -0
- package/dist/chunks/{messages-l5xHQb_m.mjs → messages-DiwyN3uU.mjs} +9 -0
- package/dist/chunks/messages-DkQGwmom.cjs +1 -0
- package/dist/chunks/{messages-B6t1xShv.mjs → messages-Dl-C7Pdf.mjs} +9 -0
- package/dist/chunks/{messages-bSVgJ1cu.mjs → messages-DlDyYt5x.mjs} +9 -0
- package/dist/chunks/messages-Dmhwr_Ow2.cjs +1 -0
- package/dist/chunks/messages-DrQQ1Hky.cjs +1 -0
- package/dist/chunks/messages-DtQ_pCWn.cjs +1 -0
- package/dist/{messages-uy3FE24_2.mjs → chunks/messages-Du-inLpi2.mjs} +9 -0
- package/dist/{messages-DqXJJPx9.mjs → chunks/messages-Duu9LiF32.mjs} +9 -0
- package/dist/chunks/messages-DxCc14pu2.cjs +1 -0
- package/dist/chunks/{messages-DNqFlfOd.mjs → messages-Dz3cVqxu.mjs} +9 -0
- package/dist/chunks/messages-EJkYSgsP.cjs +1 -0
- package/dist/chunks/messages-F3QeKduK.cjs +1 -0
- package/dist/chunks/messages-HfCZ1oPV.cjs +1 -0
- package/dist/chunks/{messages-BVZONUH9.mjs → messages-Ji3WDjrp.mjs} +9 -0
- package/dist/chunks/messages-MTnjMh07.cjs +1 -0
- package/dist/{messages-DL7JAwpC.mjs → chunks/messages-NU3n_1t9.mjs} +9 -0
- package/dist/chunks/messages-NpCBoXqi.cjs +1 -0
- package/dist/chunks/messages-PMZIH3mH.cjs +1 -0
- package/dist/{messages-7fwJIrld2.mjs → chunks/messages-TFu4tdzc2.mjs} +9 -0
- package/dist/{messages-BSHFypGE2.mjs → chunks/messages-Ti4ZdnqM2.mjs} +9 -0
- package/dist/chunks/messages-UOTfsDv3.cjs +1 -0
- package/dist/chunks/messages-WDBEGpNu.cjs +1 -0
- package/dist/chunks/messages-Zg6PFQ87.cjs +1 -0
- package/dist/chunks/messages-bdVhFVzt2.cjs +1 -0
- package/dist/chunks/messages-dnnjc_oR2.cjs +1 -0
- package/dist/{messages-BmWP4vpV2.mjs → chunks/messages-fI_5bRwV2.mjs} +9 -0
- package/dist/{messages-CIjSE2_O2.mjs → chunks/messages-g80Luov_2.mjs} +9 -0
- package/dist/chunks/messages-hlzAtKI5.cjs +1 -0
- package/dist/chunks/messages-kuh4lSUE2.cjs +1 -0
- package/dist/chunks/messages-m20Eebmt2.cjs +1 -0
- package/dist/chunks/messages-o1__8Rul.cjs +1 -0
- package/dist/chunks/messages-pBYvH88_.cjs +1 -0
- package/dist/chunks/{messages-CMRjQYxi2.mjs → messages-u1hpTCvK2.mjs} +9 -0
- package/dist/chunks/{messages-BoCUgrkI.mjs → messages-vq5ZvFTF.mjs} +9 -0
- package/dist/chunks/tools-DeTgjuIK.cjs +116 -0
- package/dist/chunks/{tools-Tt-NXbRZ.mjs → tools-omGeunql.mjs} +1818 -1686
- package/dist/full.cjs +1 -1
- package/dist/full.mjs +8 -8
- package/dist/locales.mjs +76 -67
- package/dist/{chunks/messages-DHdoaaFq2.mjs → messages-2hSOMnir2.mjs} +9 -0
- package/dist/{chunks/messages-DlcI-0Sy.mjs → messages-3VCxXECx.mjs} +9 -0
- package/dist/{messages-CxX23Jsk2.mjs → messages-8xGEIh_m2.mjs} +9 -0
- package/dist/{chunks/messages-DmErSGPk2.mjs → messages-B-QcHnuI2.mjs} +9 -0
- package/dist/{messages-BKCuCTFM.mjs → messages-B8zoeMf9.mjs} +9 -0
- package/dist/{chunks/messages-BmdkDNYv.mjs → messages-B9CF0GcE.mjs} +9 -0
- package/dist/{messages-1ufJbdRv2.mjs → messages-B9W0pRCr2.mjs} +9 -0
- package/dist/{messages-DQik3_xv2.mjs → messages-BFM2ljkf2.mjs} +9 -0
- package/dist/{chunks/messages-BNxTGhHu.mjs → messages-BLm4FSbz2.mjs} +9 -0
- package/dist/{chunks/messages-GHsufIGi2.mjs → messages-BLpeYPKv2.mjs} +9 -0
- package/dist/{messages-D_WzyzUt.mjs → messages-BM73sjxy.mjs} +9 -0
- package/dist/{messages-CX8egsiA2.mjs → messages-BOpqKi6Y2.mjs} +9 -0
- package/dist/{chunks/messages-eyGOcbhV.mjs → messages-BUGdUeTK.mjs} +9 -0
- package/dist/{chunks/messages-DhZwMl9x2.mjs → messages-BZm7MzSJ2.mjs} +9 -0
- package/dist/{messages-C31VIrlL.mjs → messages-BtBhP1sv.mjs} +9 -0
- package/dist/{messages-D1Fjr4OK2.mjs → messages-BthFu3bN2.mjs} +9 -0
- package/dist/{chunks/messages-COMdnGQV2.mjs → messages-BurjwjCQ2.mjs} +9 -0
- package/dist/{messages-DTkd9ND8.mjs → messages-ByIHkus-.mjs} +9 -0
- package/dist/{messages-C9GFRcVj.mjs → messages-ByVKFMH3.mjs} +9 -0
- package/dist/{chunks/messages-B5CFhyI8.mjs → messages-C6FDRqcf.mjs} +9 -0
- package/dist/{chunks/messages-OSIAf0Wk2.mjs → messages-C9dJ_N542.mjs} +9 -0
- package/dist/{messages-CRR1VRO6.mjs → messages-CCw8aJgW.mjs} +9 -0
- package/dist/{chunks/messages-AtUsRyWK2.mjs → messages-CO3NEwf22.mjs} +9 -0
- package/dist/{chunks/messages-CcboYTP8.mjs → messages-CPB2xkpC.mjs} +9 -0
- package/dist/{messages-CITYhXUz.mjs → messages-CPDsEORY.mjs} +9 -0
- package/dist/{chunks/messages-B2zrJyAc2.mjs → messages-CYyPOGy7.mjs} +9 -0
- package/dist/{chunks/messages-C03LZxma.mjs → messages-CZAODRjY.mjs} +9 -0
- package/dist/{messages-Duk7VVeY.mjs → messages-C_rns7Ku.mjs} +9 -0
- package/dist/{chunks/messages-CdWXgq_r.mjs → messages-CaUUIQvU.mjs} +9 -0
- package/dist/{messages-Cp0fjsey.mjs → messages-Cc-A7Vip.mjs} +9 -0
- package/dist/{chunks/messages-B7KbtBAE.mjs → messages-Ccf81JsG.mjs} +9 -0
- package/dist/{chunks/messages-rEsI_fAk.mjs → messages-CerTDuSC.mjs} +9 -0
- package/dist/{messages-BkTBwYet.mjs → messages-CgmDwRRE.mjs} +9 -0
- package/dist/{chunks/messages-DsyO86r3.mjs → messages-Cn3PWtLp.mjs} +9 -0
- package/dist/{chunks/messages-CWTFEPbA2.mjs → messages-Cu1rTEkB.mjs} +9 -0
- package/dist/{messages-oIa8wahx.mjs → messages-CxEHfUNH.mjs} +9 -0
- package/dist/{messages-C_mN4lx0.mjs → messages-D1B41i8X.mjs} +9 -0
- package/dist/{messages-NVepzgE3.mjs → messages-D6954zcl.mjs} +9 -0
- package/dist/{messages-C2TRJroV2.mjs → messages-DBwWssfL2.mjs} +9 -0
- package/dist/{messages-Cdgz3urh.mjs → messages-DFHRMYke.mjs} +9 -0
- package/dist/{messages-DXCyNanc2.mjs → messages-DJVrq0Xa2.mjs} +9 -0
- package/dist/{chunks/messages-OYoN_rp1.mjs → messages-DMJz28kt.mjs} +9 -0
- package/dist/{chunks/messages-B_U10evN2.mjs → messages-DOnOpXFJ2.mjs} +9 -0
- package/dist/{messages-5USazVPA2.mjs → messages-DR1Tf-Kj2.mjs} +9 -0
- package/dist/{chunks/messages-C4sIqArW2.mjs → messages-DSUXwuzH2.mjs} +9 -0
- package/dist/{chunks/messages-DGHTTk1S2.mjs → messages-DTNO7tw1.mjs} +9 -0
- package/dist/{messages-Ddz6eH0-2.mjs → messages-DWBtyom42.mjs} +9 -0
- package/dist/{messages-DKsyrVp5.mjs → messages-DZQALZIU.mjs} +9 -0
- package/dist/{chunks/messages-V8K7-1l2.mjs → messages-D_i86vbQ.mjs} +9 -0
- package/dist/{chunks/messages-BmiN0JGP2.mjs → messages-Da1VKvvf2.mjs} +9 -0
- package/dist/{messages-D5qgCWmB2.mjs → messages-Ddimgqvp2.mjs} +9 -0
- package/dist/{chunks/messages-MPF8o3EP.mjs → messages-DdmXBLUC.mjs} +9 -0
- package/dist/{messages-D4U4wkYM.mjs → messages-Devcsnrv.mjs} +9 -0
- package/dist/{chunks/messages-DiGsu5XN.mjs → messages-DhS-j4Hp.mjs} +9 -0
- package/dist/{messages-BGzpwNrz.mjs → messages-DrRVvVPI.mjs} +9 -0
- package/dist/{chunks/messages-Z9mDYT3w.mjs → messages-Ds4gQbVR2.mjs} +9 -0
- package/dist/{chunks/messages-vQ5kblO8.mjs → messages-DxkB7LL6.mjs} +9 -0
- package/dist/{chunks/messages-LTkIIrSe2.mjs → messages-GgHHrLBU2.mjs} +9 -0
- package/dist/{messages-CntTlSE22.mjs → messages-IycPaZe22.mjs} +9 -0
- package/dist/{messages-BtDz-sw92.mjs → messages-ST8f_nDx2.mjs} +9 -0
- package/dist/{messages-CgVEHCQ-.mjs → messages-SV8lf6F0.mjs} +9 -0
- package/dist/{messages-Bt4TLGth.mjs → messages-lVrQmsky.mjs} +9 -0
- package/dist/{messages-rpO1POP02.mjs → messages-lcoIGSX82.mjs} +9 -0
- package/dist/{chunks/messages-BuYnNUtU2.mjs → messages-mqRVfUUq.mjs} +9 -0
- package/dist/{chunks/messages-C24IC_eR.mjs → messages-qWFvoPY1.mjs} +9 -0
- package/dist/{messages-CacRpQpm.mjs → messages-yte1QPX5.mjs} +9 -0
- package/dist/{messages-DNlrcG5Z.mjs → messages-zyiti_A8.mjs} +9 -0
- package/dist/react.cjs +1 -1
- package/dist/react.mjs +1 -1
- package/dist/tools.cjs +1 -1
- package/dist/tools.mjs +3 -3
- package/package.json +1 -1
- package/src/components/blocks.ts +30 -7
- package/src/components/i18n/locales/am/messages.json +9 -0
- package/src/components/i18n/locales/ar/messages.json +9 -0
- package/src/components/i18n/locales/az/messages.json +9 -0
- package/src/components/i18n/locales/bg/messages.json +9 -0
- package/src/components/i18n/locales/bn/messages.json +9 -0
- package/src/components/i18n/locales/bs/messages.json +9 -0
- package/src/components/i18n/locales/cs/messages.json +9 -0
- package/src/components/i18n/locales/da/messages.json +9 -0
- package/src/components/i18n/locales/de/messages.json +9 -0
- package/src/components/i18n/locales/dv/messages.json +9 -0
- package/src/components/i18n/locales/el/messages.json +9 -0
- package/src/components/i18n/locales/en/messages.json +9 -0
- package/src/components/i18n/locales/es/messages.json +9 -0
- package/src/components/i18n/locales/et/messages.json +9 -0
- package/src/components/i18n/locales/fa/messages.json +9 -0
- package/src/components/i18n/locales/fi/messages.json +9 -0
- package/src/components/i18n/locales/fil/messages.json +9 -0
- package/src/components/i18n/locales/fr/messages.json +9 -0
- package/src/components/i18n/locales/gu/messages.json +9 -0
- package/src/components/i18n/locales/he/messages.json +9 -0
- package/src/components/i18n/locales/hi/messages.json +9 -0
- package/src/components/i18n/locales/hr/messages.json +9 -0
- package/src/components/i18n/locales/hu/messages.json +9 -0
- package/src/components/i18n/locales/hy/messages.json +9 -0
- package/src/components/i18n/locales/id/messages.json +9 -0
- package/src/components/i18n/locales/it/messages.json +9 -0
- package/src/components/i18n/locales/ja/messages.json +9 -0
- package/src/components/i18n/locales/ka/messages.json +9 -0
- package/src/components/i18n/locales/km/messages.json +9 -0
- package/src/components/i18n/locales/kn/messages.json +9 -0
- package/src/components/i18n/locales/ko/messages.json +9 -0
- package/src/components/i18n/locales/ku/messages.json +9 -0
- package/src/components/i18n/locales/lo/messages.json +9 -0
- package/src/components/i18n/locales/lt/messages.json +9 -0
- package/src/components/i18n/locales/lv/messages.json +9 -0
- package/src/components/i18n/locales/mk/messages.json +9 -0
- package/src/components/i18n/locales/ml/messages.json +9 -0
- package/src/components/i18n/locales/mn/messages.json +9 -0
- package/src/components/i18n/locales/mr/messages.json +9 -0
- package/src/components/i18n/locales/ms/messages.json +9 -0
- package/src/components/i18n/locales/my/messages.json +9 -0
- package/src/components/i18n/locales/ne/messages.json +9 -0
- package/src/components/i18n/locales/nl/messages.json +9 -0
- package/src/components/i18n/locales/no/messages.json +9 -0
- package/src/components/i18n/locales/pa/messages.json +9 -0
- package/src/components/i18n/locales/pl/messages.json +9 -0
- package/src/components/i18n/locales/ps/messages.json +9 -0
- package/src/components/i18n/locales/pt/messages.json +9 -0
- package/src/components/i18n/locales/ro/messages.json +9 -0
- package/src/components/i18n/locales/ru/messages.json +9 -0
- package/src/components/i18n/locales/sd/messages.json +9 -0
- package/src/components/i18n/locales/si/messages.json +9 -0
- package/src/components/i18n/locales/sk/messages.json +9 -0
- package/src/components/i18n/locales/sl/messages.json +9 -0
- package/src/components/i18n/locales/sq/messages.json +9 -0
- package/src/components/i18n/locales/sr/messages.json +9 -0
- package/src/components/i18n/locales/sv/messages.json +9 -0
- package/src/components/i18n/locales/sw/messages.json +9 -0
- package/src/components/i18n/locales/ta/messages.json +9 -0
- package/src/components/i18n/locales/te/messages.json +9 -0
- package/src/components/i18n/locales/th/messages.json +9 -0
- package/src/components/i18n/locales/tr/messages.json +9 -0
- package/src/components/i18n/locales/ug/messages.json +9 -0
- package/src/components/i18n/locales/uk/messages.json +9 -0
- package/src/components/i18n/locales/ur/messages.json +9 -0
- package/src/components/i18n/locales/vi/messages.json +9 -0
- package/src/components/i18n/locales/yi/messages.json +9 -0
- package/src/components/i18n/locales/zh/messages.json +9 -0
- package/src/components/icons/index.ts +24 -0
- package/src/components/modules/blockEvents/composers/keyboardNavigation.ts +67 -6
- package/src/components/modules/blockManager/hierarchy.ts +150 -8
- package/src/components/modules/blockManager/operations.ts +207 -8
- package/src/components/modules/blockManager/yjs-sync.ts +36 -1
- package/src/components/modules/caret.ts +205 -31
- package/src/components/modules/drag/DragController.ts +219 -2
- package/src/components/modules/drag/a11y/DragA11y.ts +9 -1
- package/src/components/modules/drag/state/DragStateMachine.ts +1 -1
- package/src/components/modules/drag/target/DropTargetDetector.ts +513 -3
- package/src/components/modules/drag/utils/drag.constants.ts +9 -0
- package/src/components/modules/toolbar/blockSettings.ts +75 -5
- package/src/components/modules/toolbar/index.ts +12 -1
- package/src/components/modules/uiControllers/controllers/blockHover.ts +24 -2
- package/src/components/modules/uiControllers/controllers/selection.ts +50 -0
- package/src/components/utils/blocks.ts +21 -7
- package/src/styles/colors.css +3 -0
- package/src/styles/columns.css +105 -0
- package/src/styles/main.css +48 -3
- package/src/styles/popover-animation.css +8 -0
- package/src/tools/column/index.ts +189 -0
- package/src/tools/column/types.ts +26 -0
- package/src/tools/column-drop.ts +273 -0
- package/src/tools/column-list/index.ts +142 -0
- package/src/tools/column-list/types.ts +17 -0
- package/src/tools/columns-shared.ts +343 -0
- package/src/tools/divider/index.ts +1 -0
- package/src/tools/index.ts +4 -0
- package/src/tools/nested-blocks.ts +23 -2
- package/src/tools/table/table-restrictions.ts +1 -1
- package/types/tools/column-list.d.ts +15 -0
- package/types/tools/column.d.ts +13 -0
- package/types/tools-entry.d.ts +8 -0
- package/dist/chunks/blok-Xu27QC2G.cjs +0 -17
- package/dist/chunks/constants-DDTVRO2H.cjs +0 -457
- package/dist/chunks/lightweight-i18n-Bbl1cNYK.cjs +0 -1
- package/dist/chunks/messages-1qYt6EhZ2.cjs +0 -1
- package/dist/chunks/messages-2fxvN3Nb.cjs +0 -1
- package/dist/chunks/messages-B1Vs2HmR.cjs +0 -1
- package/dist/chunks/messages-B780gS332.cjs +0 -1
- package/dist/chunks/messages-B7T5Notn.cjs +0 -1
- package/dist/chunks/messages-BE9aZQ1Q.cjs +0 -1
- package/dist/chunks/messages-BIQpTYfm.cjs +0 -1
- package/dist/chunks/messages-BIRvUJ0t.cjs +0 -1
- package/dist/chunks/messages-BIodfkjv.cjs +0 -1
- package/dist/chunks/messages-BL-zBcuM.cjs +0 -1
- package/dist/chunks/messages-BQr0zpmu2.cjs +0 -1
- package/dist/chunks/messages-BTHi6rVW2.cjs +0 -1
- package/dist/chunks/messages-BZOAdcmO2.cjs +0 -1
- package/dist/chunks/messages-BbsGeVs_2.cjs +0 -1
- package/dist/chunks/messages-Bc1NYJVS.cjs +0 -1
- package/dist/chunks/messages-BdORNG8X.cjs +0 -1
- package/dist/chunks/messages-Bg2kheTv.cjs +0 -1
- package/dist/chunks/messages-Bj1eQtQw.cjs +0 -1
- package/dist/chunks/messages-BkJJCHNK.cjs +0 -1
- package/dist/chunks/messages-BkdGQfIX.cjs +0 -1
- package/dist/chunks/messages-BkgsB-cj2.cjs +0 -1
- package/dist/chunks/messages-Bn0vGFEP.cjs +0 -1
- package/dist/chunks/messages-BoIUXwWe.cjs +0 -1
- package/dist/chunks/messages-BpDEh8rW.cjs +0 -1
- package/dist/chunks/messages-BwknPZJ8.cjs +0 -1
- package/dist/chunks/messages-ByicRCge2.cjs +0 -1
- package/dist/chunks/messages-C2oBmyTn.cjs +0 -1
- package/dist/chunks/messages-C9wBMmxr2.cjs +0 -1
- package/dist/chunks/messages-CDK5-8vW.cjs +0 -1
- package/dist/chunks/messages-CKHbPcfh.cjs +0 -1
- package/dist/chunks/messages-CNFfwTfw.cjs +0 -1
- package/dist/chunks/messages-CNiuofck2.cjs +0 -1
- package/dist/chunks/messages-CWszAGkF.cjs +0 -1
- package/dist/chunks/messages-CWzQNagc2.cjs +0 -1
- package/dist/chunks/messages-CYf1gv722.cjs +0 -1
- package/dist/chunks/messages-CfcCwbQo.cjs +0 -1
- package/dist/chunks/messages-CkvqOnAR.cjs +0 -1
- package/dist/chunks/messages-Cnrug7nz2.cjs +0 -1
- package/dist/chunks/messages-Cr51zCHy.cjs +0 -1
- package/dist/chunks/messages-CsLvvl2F2.cjs +0 -1
- package/dist/chunks/messages-CuO-Rx4g.cjs +0 -1
- package/dist/chunks/messages-Cv4I3k1W2.cjs +0 -1
- package/dist/chunks/messages-CwHRv6g8.cjs +0 -1
- package/dist/chunks/messages-CzXnHfGb2.cjs +0 -1
- package/dist/chunks/messages-D2QxLx1a.cjs +0 -1
- package/dist/chunks/messages-D4LUPpX_.cjs +0 -1
- package/dist/chunks/messages-DJFL-bxd2.cjs +0 -1
- package/dist/chunks/messages-DLEeNpMi2.cjs +0 -1
- package/dist/chunks/messages-DTNU_cq0.cjs +0 -1
- package/dist/chunks/messages-DVKsYqpJ.cjs +0 -1
- package/dist/chunks/messages-DXlfz-nC.cjs +0 -1
- package/dist/chunks/messages-DbA_Zja3.cjs +0 -1
- package/dist/chunks/messages-Dc2TTEx_2.cjs +0 -1
- package/dist/chunks/messages-DeDMMmRC.cjs +0 -1
- package/dist/chunks/messages-DlQNXqzr.cjs +0 -1
- package/dist/chunks/messages-DqMqZLcn.cjs +0 -1
- package/dist/chunks/messages-DqqDuEE22.cjs +0 -1
- package/dist/chunks/messages-DzppdmWe.cjs +0 -1
- package/dist/chunks/messages-HzLF-BQL2.cjs +0 -1
- package/dist/chunks/messages-Jb9n97oP2.cjs +0 -1
- package/dist/chunks/messages-K_vSdSoF2.cjs +0 -1
- package/dist/chunks/messages-Nh7wrRdm.cjs +0 -1
- package/dist/chunks/messages-QHS-Ydg_.cjs +0 -1
- package/dist/chunks/messages-SpiG5vT-2.cjs +0 -1
- package/dist/chunks/messages-XFaJzdhP2.cjs +0 -1
- package/dist/chunks/messages-y03BGg692.cjs +0 -1
- package/dist/chunks/tools-DOuVjow8.cjs +0 -116
|
@@ -131,7 +131,7 @@ var a = {
|
|
|
131
131
|
RIGHT: 2,
|
|
132
132
|
BACKWARD: 3,
|
|
133
133
|
FORWARD: 4
|
|
134
|
-
}, l = () => "0.
|
|
134
|
+
}, l = () => "0.14.0", u = /* @__PURE__ */ function(e) {
|
|
135
135
|
return e.VERBOSE = "VERBOSE", e.INFO = "INFO", e.WARN = "WARN", e.ERROR = "ERROR", e;
|
|
136
136
|
}({}), d = (e, t, n = "log", r, i = "color: inherit") => {
|
|
137
137
|
let a = typeof console > "u" ? void 0 : console;
|
|
@@ -514,7 +514,11 @@ var S = () => {
|
|
|
514
514
|
}
|
|
515
515
|
}, xe = (e) => !/[^\t\n\r \u200B]/.test(e), Se = (e) => {
|
|
516
516
|
e.setAttribute("data-blok-empty", T.isEmpty(e) ? "true" : "false");
|
|
517
|
-
}, Ce = [
|
|
517
|
+
}, Ce = [
|
|
518
|
+
"header",
|
|
519
|
+
"table",
|
|
520
|
+
"column_list"
|
|
521
|
+
], E = /* @__PURE__ */ new Map(), we = (e) => {
|
|
518
522
|
let t = [...new Set(e)];
|
|
519
523
|
for (let e of t) {
|
|
520
524
|
var n;
|
|
@@ -649,15 +653,17 @@ var S = () => {
|
|
|
649
653
|
}, Pe = (e, t) => e.mergeable ? e.name === t.name ? !0 : je(t, "export") && je(e, "import") : !1, Fe = async (e, t) => {
|
|
650
654
|
if (e.length === 0) return [];
|
|
651
655
|
if (e.length === 1) return Ne(e[0], t);
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
656
|
+
let r = new Set(e.map((e) => e.id)), i = e.filter((e) => {
|
|
657
|
+
if (e.parentId !== null && r.has(e.parentId)) return !1;
|
|
658
|
+
let n = t.find((t) => t.name === e.name);
|
|
659
|
+
return n === void 0 || D(n, "export");
|
|
660
|
+
});
|
|
661
|
+
if (i.length === 0) return [];
|
|
662
|
+
let a = new Set(i.map((e) => e.name));
|
|
657
663
|
return t.reduce((e, t) => {
|
|
658
664
|
if (!D(t, "import") || t.toolbox === void 0) return e;
|
|
659
|
-
let
|
|
660
|
-
return
|
|
665
|
+
let r = t.toolbox.filter((e) => !(b(e) || e.icon === void 0 || e.data === void 0 && a.size === 1 && a.has(t.name)));
|
|
666
|
+
return r.length > 0 && e.push(n(n({}, t), {}, { toolbox: r })), e;
|
|
661
667
|
}, []);
|
|
662
668
|
}, Ie = (e, t) => {
|
|
663
669
|
let n = t == null ? void 0 : t.export;
|
|
@@ -886,7 +892,7 @@ var Ke = class {
|
|
|
886
892
|
];
|
|
887
893
|
return n.slice(0, -1).map((t, r) => e.substring(t, n[r + 1])).filter((e) => e.length > 0);
|
|
888
894
|
}
|
|
889
|
-
},
|
|
895
|
+
}, j = class {
|
|
890
896
|
static wrapRangeWithHighlight(e) {
|
|
891
897
|
if (e.collapsed) return null;
|
|
892
898
|
let t = T.make("span");
|
|
@@ -924,7 +930,7 @@ var Ke = class {
|
|
|
924
930
|
t.removeChild(e);
|
|
925
931
|
}
|
|
926
932
|
}
|
|
927
|
-
},
|
|
933
|
+
}, qe = class {
|
|
928
934
|
constructor(e) {
|
|
929
935
|
this.selectionUtils = e;
|
|
930
936
|
}
|
|
@@ -942,10 +948,10 @@ var Ke = class {
|
|
|
942
948
|
let c = document.createRange(), l = e === r, u = e === a, d = l ? i : 0, f = (t = (n = e.textContent) == null ? void 0 : n.length) == null ? 0 : t, p = u ? o : f;
|
|
943
949
|
if (d === p) return;
|
|
944
950
|
c.setStart(e, d), c.setEnd(e, p);
|
|
945
|
-
let m =
|
|
951
|
+
let m = j.wrapRangeWithHighlight(c);
|
|
946
952
|
m && s.push(m);
|
|
947
953
|
}), s.length === 0) return;
|
|
948
|
-
let c =
|
|
954
|
+
let c = j.postProcessHighlightWrappers(s);
|
|
949
955
|
A.applyLineHeightExtensions(c);
|
|
950
956
|
let l = document.createRange();
|
|
951
957
|
l.setStartBefore(c[0]), l.setEndAfter(c[c.length - 1]), this.selectionUtils.savedSelectionRange = l.cloneRange();
|
|
@@ -957,7 +963,7 @@ var Ke = class {
|
|
|
957
963
|
}
|
|
958
964
|
removeOrphanedFakeBackgroundElements() {
|
|
959
965
|
document.querySelectorAll("[data-blok-fake-background=\"true\"]").forEach((e) => {
|
|
960
|
-
|
|
966
|
+
j.unwrapFakeBackground(e);
|
|
961
967
|
});
|
|
962
968
|
}
|
|
963
969
|
clearFakeBackground() {
|
|
@@ -968,14 +974,14 @@ var Ke = class {
|
|
|
968
974
|
if (e.length === 0) return;
|
|
969
975
|
let t = e[0], n = e[e.length - 1], r = t.firstChild, i = n.lastChild;
|
|
970
976
|
if (e.forEach((e) => {
|
|
971
|
-
|
|
977
|
+
j.unwrapFakeBackground(e);
|
|
972
978
|
}), r && i) {
|
|
973
979
|
var a;
|
|
974
980
|
let e = document.createRange();
|
|
975
981
|
e.setStart(r, 0), e.setEnd(i, ((a = i.textContent) == null ? void 0 : a.length) || 0), this.selectionUtils.savedSelectionRange = e;
|
|
976
982
|
}
|
|
977
983
|
}
|
|
978
|
-
},
|
|
984
|
+
}, Je = class {
|
|
979
985
|
static addFakeCursor() {
|
|
980
986
|
let e = k.getRange();
|
|
981
987
|
if (e === null) return;
|
|
@@ -989,7 +995,7 @@ var Ke = class {
|
|
|
989
995
|
let t = T.find(e, o(a.fakeCursor));
|
|
990
996
|
t && t.remove();
|
|
991
997
|
}
|
|
992
|
-
},
|
|
998
|
+
}, Ye = class {
|
|
993
999
|
static findParentTag(e, t, n = 10) {
|
|
994
1000
|
let r = window.getSelection();
|
|
995
1001
|
if (!r || !r.anchorNode || !r.focusNode) return null;
|
|
@@ -1017,9 +1023,9 @@ var Ke = class {
|
|
|
1017
1023
|
let n = document.createRange();
|
|
1018
1024
|
n.selectNodeContents(e), t.addRange(n);
|
|
1019
1025
|
}
|
|
1020
|
-
},
|
|
1026
|
+
}, Xe = class {
|
|
1021
1027
|
constructor() {
|
|
1022
|
-
this.instance = null, this.selection = null, this.savedSelectionRange = null, this.isFakeBackgroundEnabled = !1, this.fakeBackgroundManager = new
|
|
1028
|
+
this.instance = null, this.selection = null, this.savedSelectionRange = null, this.isFakeBackgroundEnabled = !1, this.fakeBackgroundManager = new qe(this);
|
|
1023
1029
|
}
|
|
1024
1030
|
static get anchorNode() {
|
|
1025
1031
|
return k.getAnchorNode();
|
|
@@ -1067,13 +1073,13 @@ var Ke = class {
|
|
|
1067
1073
|
return We.isRangeInsideContainer(e);
|
|
1068
1074
|
}
|
|
1069
1075
|
static addFakeCursor() {
|
|
1070
|
-
|
|
1076
|
+
Je.addFakeCursor();
|
|
1071
1077
|
}
|
|
1072
1078
|
static isFakeCursorInsideContainer(e) {
|
|
1073
|
-
return
|
|
1079
|
+
return Je.isFakeCursorInsideContainer(e);
|
|
1074
1080
|
}
|
|
1075
1081
|
static removeFakeCursor(e = document.body) {
|
|
1076
|
-
|
|
1082
|
+
Je.removeFakeCursor(e);
|
|
1077
1083
|
}
|
|
1078
1084
|
removeFakeBackground() {
|
|
1079
1085
|
this.fakeBackgroundManager.removeFakeBackground();
|
|
@@ -1102,14 +1108,14 @@ var Ke = class {
|
|
|
1102
1108
|
We.collapseToEnd();
|
|
1103
1109
|
}
|
|
1104
1110
|
findParentTag(e, t, n = 10) {
|
|
1105
|
-
return
|
|
1111
|
+
return Ye.findParentTag(e, t, n);
|
|
1106
1112
|
}
|
|
1107
1113
|
expandToTag(e) {
|
|
1108
|
-
|
|
1114
|
+
Ye.expandToTag(e);
|
|
1109
1115
|
}
|
|
1110
|
-
},
|
|
1116
|
+
}, M = /* @__PURE__ */ function(e) {
|
|
1111
1117
|
return e.Default = "default", e.Separator = "separator", e.Html = "html", e;
|
|
1112
|
-
}({}),
|
|
1118
|
+
}({}), Ze = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
1113
1119
|
(function(n, r) {
|
|
1114
1120
|
typeof define == "function" && define.amd ? define("html-janitor", r) : typeof e == "object" ? t.exports = r() : n.HTMLJanitor = r();
|
|
1115
1121
|
})(e, function() {
|
|
@@ -1197,66 +1203,66 @@ var Ke = class {
|
|
|
1197
1203
|
}
|
|
1198
1204
|
return e;
|
|
1199
1205
|
});
|
|
1200
|
-
})))()),
|
|
1206
|
+
})))()), Qe = /^\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)/i, $e = /\s*(?:href|src)\s*=\s*(?:"\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^"]*"|'\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^']*|(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^ \t\r\n>]*)/gi, et = (e, t, r = {}) => e.map((e) => {
|
|
1201
1207
|
let i = h(t) ? t(e.tool) : t, a = i == null ? {} : i;
|
|
1202
|
-
return g(a) && b(a) && b(r) ? e : n(n({}, e), {}, { data:
|
|
1203
|
-
}),
|
|
1208
|
+
return g(a) && b(a) && b(r) ? e : n(n({}, e), {}, { data: tt(e.data, a, r) });
|
|
1209
|
+
}), N = (e, t = {}) => new Ze.default({ tags: t }).clean(e), tt = (e, t, n) => Array.isArray(e) ? nt(e, t, n) : g(e) ? rt(e, t, n) : _(e) ? it(e, t, n) : e, nt = (e, t, n) => e.map((e) => tt(e, t, n)), rt = (e, t, n) => {
|
|
1204
1210
|
let r = {}, i = e;
|
|
1205
1211
|
for (let a in e) {
|
|
1206
1212
|
if (!Object.prototype.hasOwnProperty.call(e, a)) continue;
|
|
1207
1213
|
let o = i[a], s = g(t) ? t : void 0, c = s == null ? void 0 : s[a];
|
|
1208
|
-
r[a] =
|
|
1214
|
+
r[a] = tt(o, c !== void 0 && at(c) ? c : t, n);
|
|
1209
1215
|
}
|
|
1210
1216
|
return r;
|
|
1211
|
-
},
|
|
1212
|
-
let r =
|
|
1213
|
-
return r ?
|
|
1214
|
-
},
|
|
1217
|
+
}, it = (e, t, n) => {
|
|
1218
|
+
let r = mt(t, n);
|
|
1219
|
+
return r ? st(gt(N(e, r), r)) : b(n) ? st(e) : st(gt(N(e, n), n));
|
|
1220
|
+
}, at = (e) => g(e) || v(e) || h(e), ot = (e) => e ? Qe.test(e) : !1, st = (e) => {
|
|
1215
1221
|
if (!e || e.indexOf("<") === -1) return e;
|
|
1216
1222
|
if (typeof document < "u") {
|
|
1217
1223
|
let t = document.createElement("template");
|
|
1218
1224
|
return t.innerHTML = e, t.content.querySelectorAll("[href],[src]").forEach((e) => {
|
|
1219
1225
|
["href", "src"].forEach((t) => {
|
|
1220
|
-
|
|
1226
|
+
ot(e.getAttribute(t)) && e.removeAttribute(t);
|
|
1221
1227
|
});
|
|
1222
1228
|
}), t.innerHTML;
|
|
1223
1229
|
}
|
|
1224
|
-
return e.replace(
|
|
1225
|
-
},
|
|
1230
|
+
return e.replace($e, "");
|
|
1231
|
+
}, ct = (e) => {
|
|
1226
1232
|
if (b(e)) return {};
|
|
1227
1233
|
let t = {};
|
|
1228
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
1234
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = P(e[n]));
|
|
1229
1235
|
return t;
|
|
1230
|
-
},
|
|
1236
|
+
}, lt = (e) => function(t) {
|
|
1231
1237
|
let n = e.call(this, t);
|
|
1232
1238
|
return n == null ? {} : n;
|
|
1233
|
-
},
|
|
1239
|
+
}, ut = new Set([
|
|
1234
1240
|
"class",
|
|
1235
1241
|
"id",
|
|
1236
1242
|
"title",
|
|
1237
1243
|
"role",
|
|
1238
1244
|
"dir",
|
|
1239
1245
|
"lang"
|
|
1240
|
-
]),
|
|
1246
|
+
]), dt = (e) => {
|
|
1241
1247
|
let t = e.toLowerCase();
|
|
1242
|
-
return t.startsWith("data-") || t.startsWith("aria-") ||
|
|
1243
|
-
},
|
|
1248
|
+
return t.startsWith("data-") || t.startsWith("aria-") || ut.has(t);
|
|
1249
|
+
}, ft = (e) => {
|
|
1244
1250
|
let t = {};
|
|
1245
1251
|
return Array.from(e.attributes).forEach((e) => {
|
|
1246
|
-
|
|
1252
|
+
dt(e.name) && (t[e.name] = !0);
|
|
1247
1253
|
}), t;
|
|
1248
|
-
},
|
|
1249
|
-
if (b(e)) return
|
|
1254
|
+
}, P = (e) => e === !0 ? lt(ft) : e === !1 ? !1 : h(e) ? lt(e) : _(e) ? e : g(e) ? C({}, e) : e, pt = (e, t) => {
|
|
1255
|
+
if (b(e)) return ct(t);
|
|
1250
1256
|
let n = {};
|
|
1251
1257
|
for (let r in e) {
|
|
1252
1258
|
if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
|
|
1253
1259
|
let i = e[r], a = t ? t[r] : void 0;
|
|
1254
1260
|
if (h(a)) {
|
|
1255
|
-
n[r] =
|
|
1261
|
+
n[r] = P(a);
|
|
1256
1262
|
continue;
|
|
1257
1263
|
}
|
|
1258
1264
|
if (h(i)) {
|
|
1259
|
-
n[r] =
|
|
1265
|
+
n[r] = P(i);
|
|
1260
1266
|
continue;
|
|
1261
1267
|
}
|
|
1262
1268
|
if (g(i) && g(a)) {
|
|
@@ -1264,17 +1270,17 @@ var Ke = class {
|
|
|
1264
1270
|
continue;
|
|
1265
1271
|
}
|
|
1266
1272
|
if (a !== void 0) {
|
|
1267
|
-
n[r] =
|
|
1273
|
+
n[r] = P(a);
|
|
1268
1274
|
continue;
|
|
1269
1275
|
}
|
|
1270
|
-
n[r] =
|
|
1276
|
+
n[r] = P(i);
|
|
1271
1277
|
}
|
|
1272
1278
|
if (!t) return n;
|
|
1273
|
-
for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (Object.prototype.hasOwnProperty.call(n, e) || (n[e] =
|
|
1279
|
+
for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (Object.prototype.hasOwnProperty.call(n, e) || (n[e] = P(t[e])));
|
|
1274
1280
|
return n;
|
|
1275
|
-
},
|
|
1281
|
+
}, mt = (e, t) => g(e) && !h(e) ? pt(t, e) : e === !1 ? {} : b(t) ? null : ct(t), ht = (e, ...t) => {
|
|
1276
1282
|
if (b(e)) return Object.assign({}, ...t);
|
|
1277
|
-
let n =
|
|
1283
|
+
let n = ct(e);
|
|
1278
1284
|
return t.forEach((e) => {
|
|
1279
1285
|
if (e) for (let t in e) {
|
|
1280
1286
|
if (!Object.prototype.hasOwnProperty.call(e, t)) continue;
|
|
@@ -1287,18 +1293,18 @@ var Ke = class {
|
|
|
1287
1293
|
}
|
|
1288
1294
|
if (!(r === !0 && h(i))) {
|
|
1289
1295
|
if (r === !0) {
|
|
1290
|
-
n[t] = g(i) && !h(i) ? C({}, i) :
|
|
1296
|
+
n[t] = g(i) && !h(i) ? C({}, i) : P(r);
|
|
1291
1297
|
continue;
|
|
1292
1298
|
}
|
|
1293
1299
|
if (g(r) && g(i)) {
|
|
1294
1300
|
n[t] = C({}, i, r);
|
|
1295
1301
|
continue;
|
|
1296
1302
|
}
|
|
1297
|
-
n[t] =
|
|
1303
|
+
n[t] = P(r);
|
|
1298
1304
|
}
|
|
1299
1305
|
}
|
|
1300
1306
|
}), n;
|
|
1301
|
-
},
|
|
1307
|
+
}, gt = (e, t) => {
|
|
1302
1308
|
if (typeof document > "u" || !e || e.indexOf("<") === -1) return e;
|
|
1303
1309
|
let n = Object.entries(t).filter(([, e]) => h(e));
|
|
1304
1310
|
if (n.length === 0) return e;
|
|
@@ -1315,24 +1321,24 @@ var Ke = class {
|
|
|
1315
1321
|
}
|
|
1316
1322
|
});
|
|
1317
1323
|
}), r.innerHTML;
|
|
1318
|
-
},
|
|
1319
|
-
if (e.setAttribute(
|
|
1320
|
-
e.hasAttribute(
|
|
1324
|
+
}, F = "popover", _t = "manual", vt = "data-blok-top-layer", I = () => typeof HTMLElement < "u" && "popover" in HTMLElement.prototype, yt = (e) => {
|
|
1325
|
+
if (e.setAttribute(vt, "true"), !I()) return !1;
|
|
1326
|
+
e.hasAttribute(F) || e.setAttribute(F, _t);
|
|
1321
1327
|
try {
|
|
1322
1328
|
return e.showPopover(), !0;
|
|
1323
1329
|
} catch (e) {
|
|
1324
1330
|
return !1;
|
|
1325
1331
|
}
|
|
1326
|
-
},
|
|
1327
|
-
if (e.removeAttribute(
|
|
1332
|
+
}, bt = (e) => {
|
|
1333
|
+
if (e.removeAttribute(vt), I() && e.hasAttribute(F)) {
|
|
1328
1334
|
try {
|
|
1329
1335
|
e.hidePopover();
|
|
1330
1336
|
} catch (e) {}
|
|
1331
|
-
e.removeAttribute(
|
|
1337
|
+
e.removeAttribute(F);
|
|
1332
1338
|
}
|
|
1333
|
-
},
|
|
1334
|
-
e.removeAttribute(
|
|
1335
|
-
},
|
|
1339
|
+
}, xt = (e) => e.hasAttribute(vt), St = (e) => {
|
|
1340
|
+
e.removeAttribute(F);
|
|
1341
|
+
}, Ct, wt = 10, Tt = "tooltip", Et = "aria-hidden", Dt = "false", Ot = "true", kt = "visibility", At = "visible", jt = "hidden", Mt = class e {
|
|
1336
1342
|
get CSS() {
|
|
1337
1343
|
return {
|
|
1338
1344
|
tooltip: i("fixed z-overlay top-0 left-0", "bg-tooltip-bg opacity-0", "select-none pointer-events-none", "rounded-lg shadow-tooltip", "mobile:hidden").split(" "),
|
|
@@ -1347,7 +1353,7 @@ var Ke = class {
|
|
|
1347
1353
|
this.nodes = {
|
|
1348
1354
|
wrapper: null,
|
|
1349
1355
|
content: null
|
|
1350
|
-
}, this.showed = !1, this.offsetTop =
|
|
1356
|
+
}, this.showed = !1, this.offsetTop = wt, this.offsetLeft = wt, this.offsetRight = wt, this.showingTimeout = null, this.ariaObserver = null, this.handleWindowScroll = () => {
|
|
1351
1357
|
this.showed && this.hide();
|
|
1352
1358
|
}, this.prepare(), window.addEventListener("scroll", this.handleWindowScroll, { passive: !0 });
|
|
1353
1359
|
}
|
|
@@ -1394,7 +1400,7 @@ var Ke = class {
|
|
|
1394
1400
|
}
|
|
1395
1401
|
}
|
|
1396
1402
|
promoteToTopLayer() {
|
|
1397
|
-
this.nodes.wrapper !== null &&
|
|
1403
|
+
this.nodes.wrapper !== null && yt(this.nodes.wrapper);
|
|
1398
1404
|
}
|
|
1399
1405
|
createContentNode(e) {
|
|
1400
1406
|
if (typeof e == "string") return document.createTextNode(e);
|
|
@@ -1409,7 +1415,7 @@ var Ke = class {
|
|
|
1409
1415
|
this.showed = !1;
|
|
1410
1416
|
}
|
|
1411
1417
|
removeFromTopLayer() {
|
|
1412
|
-
this.nodes.wrapper !== null &&
|
|
1418
|
+
this.nodes.wrapper !== null && bt(this.nodes.wrapper);
|
|
1413
1419
|
}
|
|
1414
1420
|
onHover(e, t, n = {}) {
|
|
1415
1421
|
e.addEventListener("mouseenter", () => {
|
|
@@ -1429,7 +1435,7 @@ var Ke = class {
|
|
|
1429
1435
|
updateTooltipVisibility() {
|
|
1430
1436
|
if (!this.nodes.wrapper) return;
|
|
1431
1437
|
let e = Array.isArray(this.CSS.tooltipShown) ? this.CSS.tooltipShown[0] : this.CSS.tooltipShown, t = this.nodes.wrapper.classList.contains(e);
|
|
1432
|
-
this.nodes.wrapper.style.setProperty(
|
|
1438
|
+
this.nodes.wrapper.style.setProperty(kt, t ? At : jt, t ? "" : "important"), this.nodes.wrapper.setAttribute(Et, t ? Dt : Ot), this.nodes.wrapper.setAttribute("data-blok-shown", t ? "true" : "false");
|
|
1433
1439
|
}
|
|
1434
1440
|
watchTooltipVisibility() {
|
|
1435
1441
|
var e;
|
|
@@ -1441,7 +1447,7 @@ var Ke = class {
|
|
|
1441
1447
|
}));
|
|
1442
1448
|
}
|
|
1443
1449
|
ensureTooltipAttributes() {
|
|
1444
|
-
this.nodes.wrapper && ((!this.nodes.wrapper.hasAttribute(a.interface) || this.nodes.wrapper.getAttribute(a.interface) !== "tooltip") && this.nodes.wrapper.setAttribute(a.interface, Ve), this.nodes.wrapper.setAttribute("role",
|
|
1450
|
+
this.nodes.wrapper && ((!this.nodes.wrapper.hasAttribute(a.interface) || this.nodes.wrapper.getAttribute(a.interface) !== "tooltip") && this.nodes.wrapper.setAttribute(a.interface, Ve), this.nodes.wrapper.setAttribute("role", Tt), this.watchTooltipVisibility());
|
|
1445
1451
|
}
|
|
1446
1452
|
placeBottom(e, t) {
|
|
1447
1453
|
var n;
|
|
@@ -1482,16 +1488,16 @@ var Ke = class {
|
|
|
1482
1488
|
Array.isArray(t) ? t.forEach((t) => e.appendChild(t)) : e.appendChild(t);
|
|
1483
1489
|
}
|
|
1484
1490
|
};
|
|
1485
|
-
|
|
1486
|
-
var
|
|
1487
|
-
|
|
1491
|
+
Ct = Mt, Ct.instance = null;
|
|
1492
|
+
var L = () => Mt.getInstance(), Nt = (e, t, n) => {
|
|
1493
|
+
L().show(e, t, n == null ? {} : n);
|
|
1494
|
+
}, Pt = () => {
|
|
1495
|
+
L().hide();
|
|
1496
|
+
}, Ft = (e, t, n) => {
|
|
1497
|
+
L().onHover(e, t, n == null ? {} : n);
|
|
1488
1498
|
}, It = () => {
|
|
1489
|
-
|
|
1490
|
-
}, Lt = (
|
|
1491
|
-
F().onHover(e, t, n == null ? {} : n);
|
|
1492
|
-
}, Rt = () => {
|
|
1493
|
-
F().destroy();
|
|
1494
|
-
}, zt = () => {
|
|
1499
|
+
L().destroy();
|
|
1500
|
+
}, Lt = () => {
|
|
1495
1501
|
var e, t;
|
|
1496
1502
|
let n = window.getSelection();
|
|
1497
1503
|
if (n === null) return [null, 0];
|
|
@@ -1502,7 +1508,7 @@ var F = () => Pt.getInstance(), Ft = (e, t, n) => {
|
|
|
1502
1508
|
if (a !== void 0) return [a, 0];
|
|
1503
1509
|
let o = (e = r.childNodes[i - 1]) == null ? null : e, s = (t = o == null ? void 0 : o.textContent) == null ? null : t;
|
|
1504
1510
|
return [o, s === null ? 0 : s.length];
|
|
1505
|
-
},
|
|
1511
|
+
}, Rt = (e) => {
|
|
1506
1512
|
var t;
|
|
1507
1513
|
let n = window.getSelection();
|
|
1508
1514
|
if (n === null || n.rangeCount === 0) return 0;
|
|
@@ -1510,7 +1516,7 @@ var F = () => Pt.getInstance(), Ft = (e, t, n) => {
|
|
|
1510
1516
|
if (i == null) return 0;
|
|
1511
1517
|
let a = document.createRange();
|
|
1512
1518
|
return a.selectNodeContents(i), a.setEnd(r.startContainer, r.startOffset), a.toString().length;
|
|
1513
|
-
},
|
|
1519
|
+
}, zt = (e, t, n, r) => {
|
|
1514
1520
|
let i = document.createRange();
|
|
1515
1521
|
r === "left" ? (i.selectNodeContents(e), i.setEnd(t, n)) : (i.selectNodeContents(e), i.setStart(t, n));
|
|
1516
1522
|
let a = i.cloneContents(), o = document.createElement("div");
|
|
@@ -1522,23 +1528,23 @@ var F = () => Pt.getInstance(), Ft = (e, t, n) => {
|
|
|
1522
1528
|
o.style.position = "absolute", o.style.visibility = "hidden", o.style.height = "auto", o.style.width = "auto", o.style.whiteSpace = window.getComputedStyle(e).whiteSpace, document.body.appendChild(o);
|
|
1523
1529
|
let u = o.getBoundingClientRect().width;
|
|
1524
1530
|
return document.body.removeChild(o), !(u > 0 || !xe(s) || window.getComputedStyle(e).whiteSpace.startsWith("pre") && s.length > 0);
|
|
1525
|
-
},
|
|
1531
|
+
}, Bt = (e) => {
|
|
1526
1532
|
var t;
|
|
1527
1533
|
let n = T.getDeepestNode(e);
|
|
1528
1534
|
if (n === null || T.isEmpty(e)) return !0;
|
|
1529
1535
|
if (T.isNativeInput(n)) return n.selectionEnd === 0;
|
|
1530
1536
|
if (T.isEmpty(e)) return !0;
|
|
1531
|
-
let [r, i] =
|
|
1537
|
+
let [r, i] = Lt();
|
|
1532
1538
|
if (r === null) return !1;
|
|
1533
1539
|
let a = window.getSelection(), o = (t = a == null ? void 0 : a.focusNode) == null ? null : t;
|
|
1534
|
-
return o !== null && o !== e && !(o.nodeType === Node.TEXT_NODE && o.parentNode === e) ? !1 :
|
|
1535
|
-
},
|
|
1540
|
+
return o !== null && o !== e && !(o.nodeType === Node.TEXT_NODE && o.parentNode === e) ? !1 : zt(e, r, i, "left");
|
|
1541
|
+
}, Vt = (e) => {
|
|
1536
1542
|
let t = T.getDeepestNode(e, !0);
|
|
1537
1543
|
if (t === null) return !0;
|
|
1538
1544
|
if (T.isNativeInput(t)) return t.selectionEnd === t.value.length;
|
|
1539
|
-
let [n, r] =
|
|
1540
|
-
return n === null ? !1 :
|
|
1541
|
-
},
|
|
1545
|
+
let [n, r] = Lt();
|
|
1546
|
+
return n === null ? !1 : zt(e, n, r, "right");
|
|
1547
|
+
}, Ht, R = class e {
|
|
1542
1548
|
constructor(e, t) {
|
|
1543
1549
|
this.cursor = -1, this.items = [], this.items = e == null ? [] : e, this.focusedCssClass = t;
|
|
1544
1550
|
}
|
|
@@ -1568,16 +1574,16 @@ var F = () => Pt.getInstance(), Ft = (e, t, n) => {
|
|
|
1568
1574
|
let n = t === e.directions.RIGHT ? -1 : 0, r = this.cursor === -1 ? n : this.cursor;
|
|
1569
1575
|
r !== -1 && (this.items[r].classList.remove(this.focusedCssClass), this.items[r].removeAttribute("data-blok-focused"));
|
|
1570
1576
|
let i = t === e.directions.RIGHT ? (r + 1) % this.items.length : (this.items.length + r - 1) % this.items.length;
|
|
1571
|
-
return T.canSetCaret(this.items[i]) && te(() =>
|
|
1577
|
+
return T.canSetCaret(this.items[i]) && te(() => Xe.setCursor(this.items[i]), 50)(), this.items[i].classList.add(this.focusedCssClass), this.items[i].setAttribute("data-blok-focused", "true"), i;
|
|
1572
1578
|
}
|
|
1573
1579
|
};
|
|
1574
|
-
|
|
1580
|
+
Ht = R, Ht.directions = {
|
|
1575
1581
|
RIGHT: "right",
|
|
1576
1582
|
LEFT: "left"
|
|
1577
1583
|
};
|
|
1578
1584
|
//#endregion
|
|
1579
1585
|
//#region src/components/flipper.ts
|
|
1580
|
-
var
|
|
1586
|
+
var Ut = class e {
|
|
1581
1587
|
get isActivated() {
|
|
1582
1588
|
return this.activated;
|
|
1583
1589
|
}
|
|
@@ -1610,7 +1616,7 @@ var Gt = class e {
|
|
|
1610
1616
|
break;
|
|
1611
1617
|
case null: break;
|
|
1612
1618
|
}
|
|
1613
|
-
}, this.iterator = new
|
|
1619
|
+
}, this.iterator = new R(t.items || [], (n = t.focusedItemClass) == null ? "" : n), this.activateCallback = t.activateCallback, this.allowedKeys = t.allowedKeys || e.usedKeys, this.handleContentEditableTargets = (r = t.handleContentEditableTargets) == null ? !1 : r, this.onArrowLeftCallback = t.onArrowLeft;
|
|
1614
1620
|
}
|
|
1615
1621
|
static get usedKeys() {
|
|
1616
1622
|
return [
|
|
@@ -1699,16 +1705,16 @@ var Gt = class e {
|
|
|
1699
1705
|
return this.handleContentEditableTargets;
|
|
1700
1706
|
}
|
|
1701
1707
|
handleTabPress(e) {
|
|
1702
|
-
let t = e.shiftKey ?
|
|
1708
|
+
let t = e.shiftKey ? R.directions.LEFT : R.directions.RIGHT;
|
|
1703
1709
|
if (this.skipNextTabFocus) {
|
|
1704
1710
|
this.skipNextTabFocus = !1;
|
|
1705
1711
|
return;
|
|
1706
1712
|
}
|
|
1707
1713
|
switch (t) {
|
|
1708
|
-
case
|
|
1714
|
+
case R.directions.RIGHT:
|
|
1709
1715
|
this.flipRight();
|
|
1710
1716
|
break;
|
|
1711
|
-
case
|
|
1717
|
+
case R.directions.LEFT:
|
|
1712
1718
|
this.flipLeft();
|
|
1713
1719
|
break;
|
|
1714
1720
|
}
|
|
@@ -1737,7 +1743,86 @@ var Gt = class e {
|
|
|
1737
1743
|
let n = e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement, r = t.key === "Tab" || t.key === "ArrowUp" || t.key === "ArrowDown" || t.key === "Enter" || t.key === "ArrowRight" || t.key === "ArrowLeft", i = e.getAttribute("data-blok-flipper-navigation-target") === "true" && r, a = e.isContentEditable, o = e.closest("[data-blok-link-tool-input-opened=\"true\"]") !== null, s = a && !this.handleContentEditableTargets;
|
|
1738
1744
|
return n && !i || s || o;
|
|
1739
1745
|
}
|
|
1740
|
-
}, Kt =
|
|
1746
|
+
}, Wt = "column_list", Gt = "column", Kt = "data-blok-columns", qt = "data-blok-column", Jt = "data-blok-column-resizer", Yt = "data-blok-column-enter", Xt = (e) => {
|
|
1747
|
+
e.setAttribute(Yt, ""), e.addEventListener("animationend", () => e.removeAttribute(Yt), { once: !0 });
|
|
1748
|
+
}, Zt = (e) => {
|
|
1749
|
+
let t = e.leftWidth + e.rightWidth, n = e.leftGrow + e.rightGrow;
|
|
1750
|
+
if (t <= 0 || n <= 0) return {
|
|
1751
|
+
leftGrow: e.leftGrow,
|
|
1752
|
+
rightGrow: e.rightGrow
|
|
1753
|
+
};
|
|
1754
|
+
let r = Math.max(e.minWidth, Math.min(t - e.minWidth, e.leftWidth + e.delta)), i = t - r;
|
|
1755
|
+
return {
|
|
1756
|
+
leftGrow: n * r / t,
|
|
1757
|
+
rightGrow: n * i / t
|
|
1758
|
+
};
|
|
1759
|
+
}, Qt = (e, t, n) => {
|
|
1760
|
+
let r = Number(t.style.flexGrow) || 1, i = r + (Number(n.style.flexGrow) || 1), a = i > 0 ? Math.round(r / i * 100) : 50;
|
|
1761
|
+
e.setAttribute("aria-valuenow", String(a));
|
|
1762
|
+
}, $t = (e, t, n, r) => {
|
|
1763
|
+
let i = t, a = n, o = Zt({
|
|
1764
|
+
leftWidth: i.getBoundingClientRect().width,
|
|
1765
|
+
rightWidth: a.getBoundingClientRect().width,
|
|
1766
|
+
leftGrow: Number(i.style.flexGrow) || 1,
|
|
1767
|
+
rightGrow: Number(a.style.flexGrow) || 1,
|
|
1768
|
+
delta: r,
|
|
1769
|
+
minWidth: 0
|
|
1770
|
+
});
|
|
1771
|
+
i.style.flexGrow = String(o.leftGrow), a.style.flexGrow = String(o.rightGrow), Qt(e, i, a);
|
|
1772
|
+
}, en = 16, tn = (e, t, n, r) => {
|
|
1773
|
+
let i = n.getBoundingClientRect().width + r.getBoundingClientRect().width, a = {
|
|
1774
|
+
ArrowLeft: -en,
|
|
1775
|
+
ArrowRight: en,
|
|
1776
|
+
Home: -i,
|
|
1777
|
+
End: i
|
|
1778
|
+
}[e.key];
|
|
1779
|
+
a !== void 0 && (e.preventDefault(), $t(t, n, r, a));
|
|
1780
|
+
}, nn = (e, t, n, r) => {
|
|
1781
|
+
if (e.button !== 0) return;
|
|
1782
|
+
e.preventDefault();
|
|
1783
|
+
let i = n, a = r, o = e.clientX, s = i.getBoundingClientRect().width, c = a.getBoundingClientRect().width, l = Number(i.style.flexGrow) || 1, u = Number(a.style.flexGrow) || 1;
|
|
1784
|
+
t.setPointerCapture(e.pointerId), t.setAttribute("data-dragging", "");
|
|
1785
|
+
let d = (e) => {
|
|
1786
|
+
let n = Zt({
|
|
1787
|
+
leftWidth: s,
|
|
1788
|
+
rightWidth: c,
|
|
1789
|
+
leftGrow: l,
|
|
1790
|
+
rightGrow: u,
|
|
1791
|
+
delta: e.clientX - o,
|
|
1792
|
+
minWidth: 0
|
|
1793
|
+
});
|
|
1794
|
+
i.style.flexGrow = String(n.leftGrow), a.style.flexGrow = String(n.rightGrow), Qt(t, i, a);
|
|
1795
|
+
}, f = (e) => {
|
|
1796
|
+
t.releasePointerCapture(e.pointerId), t.removeAttribute("data-dragging"), t.removeEventListener("pointermove", d), t.removeEventListener("pointerup", f);
|
|
1797
|
+
};
|
|
1798
|
+
t.addEventListener("pointermove", d), t.addEventListener("pointerup", f);
|
|
1799
|
+
}, rn = (e, t, n, r) => {
|
|
1800
|
+
let i = document.createElement("div");
|
|
1801
|
+
return i.setAttribute(Jt, ""), i.setAttribute("data-blok-testid", "column-resizer"), i.setAttribute("role", "separator"), i.setAttribute("aria-orientation", "vertical"), i.setAttribute("tabindex", "0"), i.setAttribute("aria-label", n.i18n.t("tools.columns.resizeAriaLabel")), i.setAttribute("aria-valuemin", "0"), i.setAttribute("aria-valuemax", "100"), Qt(i, e, t), i.addEventListener("pointerdown", (n) => {
|
|
1802
|
+
nn(n, i, e, t);
|
|
1803
|
+
}), i.addEventListener("dblclick", () => {
|
|
1804
|
+
on(n, r);
|
|
1805
|
+
}), i.addEventListener("keydown", (n) => {
|
|
1806
|
+
tn(n, i, e, t);
|
|
1807
|
+
}), i;
|
|
1808
|
+
}, an = (e, t, n, r, i) => {
|
|
1809
|
+
n || (e.querySelectorAll(`[${Jt}]`).forEach((e) => e.remove()), t.slice(1).forEach((n, a) => {
|
|
1810
|
+
let o = t[a], s = rn(o, n, r, i);
|
|
1811
|
+
e.insertBefore(s, n);
|
|
1812
|
+
}));
|
|
1813
|
+
}, on = (e, t) => {
|
|
1814
|
+
for (let n of e.blocks.getChildren(t)) n.holder.style.flexGrow = "1";
|
|
1815
|
+
}, sn = async (e, t) => {
|
|
1816
|
+
let n = e.blocks.getBlockIndex(t);
|
|
1817
|
+
n !== void 0 && await e.blocks.delete(n);
|
|
1818
|
+
}, cn = async (e, t, n) => {
|
|
1819
|
+
var r, i;
|
|
1820
|
+
let a = e.blocks.getChildren(t), o = n === void 0 ? a : a.filter((e) => e.id !== n);
|
|
1821
|
+
if (o.length !== 1) return !1;
|
|
1822
|
+
let s = (r = (i = e.blocks.getById(t)) == null ? void 0 : i.parentId) == null ? null : r, [c] = o, l = e.blocks.getChildren(c.id);
|
|
1823
|
+
for (let t of l) e.blocks.setBlockParent(t.id, s);
|
|
1824
|
+
return e.blocks.setBlockParent(c.id, null), await sn(e, c.id), await sn(e, t), !0;
|
|
1825
|
+
}, ln = [
|
|
1741
1826
|
{
|
|
1742
1827
|
name: "gray",
|
|
1743
1828
|
text: "#787774",
|
|
@@ -1783,7 +1868,7 @@ var Gt = class e {
|
|
|
1783
1868
|
text: "#d44c47",
|
|
1784
1869
|
bg: "#fdebec"
|
|
1785
1870
|
}
|
|
1786
|
-
],
|
|
1871
|
+
], un = [
|
|
1787
1872
|
{
|
|
1788
1873
|
name: "gray",
|
|
1789
1874
|
text: "#9b9b9b",
|
|
@@ -1830,16 +1915,16 @@ var Gt = class e {
|
|
|
1830
1915
|
bg: "#4e1a18"
|
|
1831
1916
|
}
|
|
1832
1917
|
];
|
|
1833
|
-
function
|
|
1918
|
+
function dn(e, t) {
|
|
1834
1919
|
return `var(--blok-color-${e}-${t})`;
|
|
1835
1920
|
}
|
|
1836
1921
|
//#endregion
|
|
1837
1922
|
//#region src/components/utils/default-page-colors.ts
|
|
1838
|
-
function
|
|
1923
|
+
function z(e) {
|
|
1839
1924
|
let t = e.replace(/\s/g, "").toLowerCase();
|
|
1840
1925
|
return t === "rgb(255,255,255)" || t === "#ffffff" || t === "#fff" || t === "white";
|
|
1841
1926
|
}
|
|
1842
|
-
function
|
|
1927
|
+
function fn(e) {
|
|
1843
1928
|
let t = e.replace(/\s/g, "").toLowerCase(), n = /^rgba?\((\d+),(\d+),(\d+)(?:,[\d.]+)?\)$/.exec(t);
|
|
1844
1929
|
if (n) {
|
|
1845
1930
|
let e = parseInt(n[1], 10) / 255, t = parseInt(n[2], 10) / 255, r = parseInt(n[3], 10) / 255;
|
|
@@ -1870,13 +1955,13 @@ function Yt(e) {
|
|
|
1870
1955
|
}
|
|
1871
1956
|
return -1;
|
|
1872
1957
|
}
|
|
1873
|
-
function
|
|
1874
|
-
let t =
|
|
1958
|
+
function B(e) {
|
|
1959
|
+
let t = fn(e);
|
|
1875
1960
|
return t >= 0 && t < .12;
|
|
1876
1961
|
}
|
|
1877
1962
|
//#endregion
|
|
1878
1963
|
//#region src/components/utils/color-mapping.ts
|
|
1879
|
-
function
|
|
1964
|
+
function pn(e, t, n) {
|
|
1880
1965
|
let r = t / 100, i = n / 100;
|
|
1881
1966
|
if (r === 0) {
|
|
1882
1967
|
let e = Math.round(i * 255);
|
|
@@ -1896,7 +1981,7 @@ function Xt(e, t, n) {
|
|
|
1896
1981
|
Math.round(o(c, s, l - 1 / 3) * 255)
|
|
1897
1982
|
];
|
|
1898
1983
|
}
|
|
1899
|
-
function
|
|
1984
|
+
function V(e) {
|
|
1900
1985
|
let t = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);
|
|
1901
1986
|
if (t) return [
|
|
1902
1987
|
parseInt(t[1], 16),
|
|
@@ -1928,10 +2013,10 @@ function z(e) {
|
|
|
1928
2013
|
Number(a[3])
|
|
1929
2014
|
];
|
|
1930
2015
|
let o = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%\s*(?:,\s*[\d.]+\s*)?\)$/i.exec(e);
|
|
1931
|
-
return o ?
|
|
2016
|
+
return o ? pn(Number(o[1]), Number(o[2]), Number(o[3])) : null;
|
|
1932
2017
|
}
|
|
1933
|
-
var
|
|
1934
|
-
function
|
|
2018
|
+
var mn = .1;
|
|
2019
|
+
function H(e) {
|
|
1935
2020
|
let t = e[0] / 255, n = e[1] / 255, r = e[2] / 255, i = Math.max(t, n, r), a = Math.min(t, n, r), o = (i + a) / 2;
|
|
1936
2021
|
if (i === a) return [
|
|
1937
2022
|
0,
|
|
@@ -1945,8 +2030,8 @@ function B(e) {
|
|
|
1945
2030
|
o
|
|
1946
2031
|
];
|
|
1947
2032
|
}
|
|
1948
|
-
function
|
|
1949
|
-
let n = e[1] <
|
|
2033
|
+
function hn(e, t) {
|
|
2034
|
+
let n = e[1] < mn, r = t[1] < mn;
|
|
1950
2035
|
if (n && r) {
|
|
1951
2036
|
let n = Math.abs(e[2] - t[2]);
|
|
1952
2037
|
return n * n;
|
|
@@ -1955,15 +2040,15 @@ function Qt(e, t) {
|
|
|
1955
2040
|
let i = Math.abs(e[0] - t[0]), a = Math.min(i, 360 - i) / 180, o = Math.abs(e[1] - t[1]), s = Math.abs(e[2] - t[2]);
|
|
1956
2041
|
return 8 * a * a + 1 * o * o + 1 * s * s;
|
|
1957
2042
|
}
|
|
1958
|
-
function
|
|
1959
|
-
if (t === "bg" && (
|
|
1960
|
-
let n =
|
|
2043
|
+
function U(e, t) {
|
|
2044
|
+
if (t === "bg" && (z(e) || B(e))) return e;
|
|
2045
|
+
let n = V(e);
|
|
1961
2046
|
if (n === null) return e;
|
|
1962
|
-
let r =
|
|
1963
|
-
return
|
|
1964
|
-
let i =
|
|
2047
|
+
let r = H(n);
|
|
2048
|
+
return ln.reduce((e, n) => {
|
|
2049
|
+
let i = V(n[t]);
|
|
1965
2050
|
if (i === null) return e;
|
|
1966
|
-
let a =
|
|
2051
|
+
let a = hn(r, H(i));
|
|
1967
2052
|
return a < e.distance ? {
|
|
1968
2053
|
color: n[t],
|
|
1969
2054
|
distance: a
|
|
@@ -1973,15 +2058,15 @@ function V(e, t) {
|
|
|
1973
2058
|
distance: Infinity
|
|
1974
2059
|
}).color;
|
|
1975
2060
|
}
|
|
1976
|
-
function
|
|
2061
|
+
function gn(e, t) {
|
|
1977
2062
|
var n;
|
|
1978
|
-
if (t === "bg" && (
|
|
1979
|
-
let r =
|
|
2063
|
+
if (t === "bg" && (z(e) || B(e))) return null;
|
|
2064
|
+
let r = V(e);
|
|
1980
2065
|
if (r === null) return null;
|
|
1981
|
-
let i =
|
|
1982
|
-
let r =
|
|
2066
|
+
let i = H(r), a = [...ln, ...un].reduce((e, n) => {
|
|
2067
|
+
let r = V(n[t]);
|
|
1983
2068
|
if (r === null) return e;
|
|
1984
|
-
let a =
|
|
2069
|
+
let a = hn(i, H(r));
|
|
1985
2070
|
return e === null || a < e.distance ? {
|
|
1986
2071
|
name: n.name,
|
|
1987
2072
|
distance: a
|
|
@@ -1991,17 +2076,17 @@ function $t(e, t) {
|
|
|
1991
2076
|
}
|
|
1992
2077
|
//#endregion
|
|
1993
2078
|
//#region src/components/modules/paste/google-docs-preprocessor.ts
|
|
1994
|
-
function
|
|
2079
|
+
function _n(e) {
|
|
1995
2080
|
let t = document.createElement("div");
|
|
1996
2081
|
t.innerHTML = e;
|
|
1997
|
-
let n =
|
|
1998
|
-
return
|
|
2082
|
+
let n = wn(t);
|
|
2083
|
+
return Fn(t, n), n && (Ln(t), Cn(t)), t.innerHTML;
|
|
1999
2084
|
}
|
|
2000
|
-
function
|
|
2085
|
+
function vn(e, t) {
|
|
2001
2086
|
let n = e.parentElement;
|
|
2002
|
-
return n === null ? null : n === t ? e :
|
|
2087
|
+
return n === null ? null : n === t ? e : vn(n, t);
|
|
2003
2088
|
}
|
|
2004
|
-
function
|
|
2089
|
+
function yn(e, t, n) {
|
|
2005
2090
|
let r = e.cloneNode(!1), i = [];
|
|
2006
2091
|
for (let n of Array.from(e.childNodes)) {
|
|
2007
2092
|
if (n === t) break;
|
|
@@ -2009,11 +2094,11 @@ function nn(e, t, n) {
|
|
|
2009
2094
|
}
|
|
2010
2095
|
return i.forEach((e) => r.appendChild(e)), n !== null && r.appendChild(n), r.childNodes.length > 0 ? r : null;
|
|
2011
2096
|
}
|
|
2012
|
-
function
|
|
2097
|
+
function bn(e, t, n) {
|
|
2013
2098
|
let r = e.cloneNode(!1), i = Array.from(e.childNodes), a = i.findIndex((e) => e === t), o = i.slice(a + 1);
|
|
2014
2099
|
return n !== null && r.appendChild(n), o.forEach((e) => r.appendChild(e)), r.childNodes.length > 0 ? r : null;
|
|
2015
2100
|
}
|
|
2016
|
-
function
|
|
2101
|
+
function xn(e, t) {
|
|
2017
2102
|
let n = (e, r, i) => {
|
|
2018
2103
|
if (e === t) return {
|
|
2019
2104
|
before: r,
|
|
@@ -2023,39 +2108,39 @@ function an(e, t) {
|
|
|
2023
2108
|
return a === null ? {
|
|
2024
2109
|
before: r,
|
|
2025
2110
|
after: i
|
|
2026
|
-
} : n(a,
|
|
2111
|
+
} : n(a, yn(a, e, r), bn(a, e, i));
|
|
2027
2112
|
};
|
|
2028
2113
|
return n(e, null, null);
|
|
2029
2114
|
}
|
|
2030
|
-
function
|
|
2115
|
+
function Sn(e, t) {
|
|
2031
2116
|
let n = e.parentElement;
|
|
2032
|
-
return n === null || n === t ? !1 : n.tagName === "TABLE" ? !0 :
|
|
2117
|
+
return n === null || n === t ? !1 : n.tagName === "TABLE" ? !0 : Sn(n, t);
|
|
2033
2118
|
}
|
|
2034
|
-
function
|
|
2119
|
+
function Cn(e) {
|
|
2035
2120
|
let t = Array.from(e.querySelectorAll("img"));
|
|
2036
2121
|
for (let n of t) {
|
|
2037
|
-
if (
|
|
2038
|
-
let t =
|
|
2122
|
+
if (Sn(n, e)) continue;
|
|
2123
|
+
let t = vn(n, e);
|
|
2039
2124
|
if (!t) continue;
|
|
2040
|
-
let { before: r, after: i } =
|
|
2125
|
+
let { before: r, after: i } = xn(n, t), a = document.createDocumentFragment();
|
|
2041
2126
|
r && a.appendChild(r), a.appendChild(n), i && a.appendChild(i), t.replaceWith(a);
|
|
2042
2127
|
}
|
|
2043
2128
|
}
|
|
2044
|
-
function
|
|
2129
|
+
function wn(e) {
|
|
2045
2130
|
let t = e.querySelector("b[id^=\"docs-internal-guid-\"]");
|
|
2046
2131
|
if (!t) return !1;
|
|
2047
2132
|
let n = document.createDocumentFragment();
|
|
2048
2133
|
for (; t.firstChild;) n.appendChild(t.firstChild);
|
|
2049
2134
|
return t.replaceWith(n), !0;
|
|
2050
2135
|
}
|
|
2051
|
-
function
|
|
2136
|
+
function Tn(e, t, n) {
|
|
2052
2137
|
return e ? `background-color: ${n}` : t ? "background-color: transparent" : "";
|
|
2053
2138
|
}
|
|
2054
|
-
function
|
|
2139
|
+
function En(e) {
|
|
2055
2140
|
let t = e.replace(/\s/g, "");
|
|
2056
2141
|
return t === "rgb(0,0,0)" || t === "#000000";
|
|
2057
2142
|
}
|
|
2058
|
-
function
|
|
2143
|
+
function Dn(e) {
|
|
2059
2144
|
let t = e.replace(/\s/g, "").toLowerCase(), n = /^rgba?\((\d+),(\d+),(\d+)(?:,[\d.]+)?\)$/.exec(t);
|
|
2060
2145
|
if (n) {
|
|
2061
2146
|
let e = parseInt(n[1], 10) / 255, t = parseInt(n[2], 10) / 255, r = parseInt(n[3], 10) / 255;
|
|
@@ -2086,17 +2171,17 @@ function dn(e) {
|
|
|
2086
2171
|
}
|
|
2087
2172
|
return -1;
|
|
2088
2173
|
}
|
|
2089
|
-
var
|
|
2090
|
-
function
|
|
2091
|
-
let t =
|
|
2174
|
+
var On = z, kn = B;
|
|
2175
|
+
function An(e) {
|
|
2176
|
+
let t = Dn(e);
|
|
2092
2177
|
return t >= 0 && t > .75;
|
|
2093
2178
|
}
|
|
2094
|
-
function
|
|
2179
|
+
function jn(e, t, n, r, i) {
|
|
2095
2180
|
if (!t && !n) return e;
|
|
2096
|
-
let a = t && r !== void 0 ?
|
|
2181
|
+
let a = t && r !== void 0 ? U(r, "text") : "", o = n && i !== void 0 ? U(i, "bg") : "", s = [t ? `color: ${a}` : "", Tn(n, t, o)].filter(Boolean).join("; ");
|
|
2097
2182
|
return s ? `<mark style="${s};">${e}</mark>` : e;
|
|
2098
2183
|
}
|
|
2099
|
-
var
|
|
2184
|
+
var Mn = new Set([
|
|
2100
2185
|
"H1",
|
|
2101
2186
|
"H2",
|
|
2102
2187
|
"H3",
|
|
@@ -2104,34 +2189,34 @@ var gn = new Set([
|
|
|
2104
2189
|
"H5",
|
|
2105
2190
|
"H6"
|
|
2106
2191
|
]);
|
|
2107
|
-
function
|
|
2192
|
+
function Nn(e) {
|
|
2108
2193
|
let t = e.parentElement;
|
|
2109
|
-
return t === null ? !1 :
|
|
2194
|
+
return t === null ? !1 : Mn.has(t.tagName) ? !0 : Nn(t);
|
|
2110
2195
|
}
|
|
2111
|
-
function
|
|
2196
|
+
function Pn(e, t) {
|
|
2112
2197
|
var n, r, i;
|
|
2113
|
-
let a = (n = e.getAttribute("style")) == null ? "" : n, o = /font-weight\s*:\s*(700|bold)/i.test(a) && !
|
|
2198
|
+
let a = (n = e.getAttribute("style")) == null ? "" : n, o = /font-weight\s*:\s*(700|bold)/i.test(a) && !Nn(e), s = /font-style\s*:\s*italic/i.test(a), c = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(a), l = /background-color\s*:\s*([^;]+)/i.exec(a), u = c == null || (r = c[1]) == null ? void 0 : r.trim(), d = l == null || (i = l[1]) == null ? void 0 : i.trim(), f = t ? u !== void 0 && !En(u) : u !== void 0 && !En(u) && !An(u), p = d !== void 0 && d !== "transparent" && !On(d) && !kn(d);
|
|
2114
2199
|
if (!o && !s && !f && !p) return null;
|
|
2115
|
-
let m =
|
|
2200
|
+
let m = jn(e.innerHTML, f, p, u, d), h = s ? `<i>${m}</i>` : m;
|
|
2116
2201
|
return o ? `<b>${h}</b>` : h;
|
|
2117
2202
|
}
|
|
2118
|
-
function
|
|
2203
|
+
function Fn(e, t) {
|
|
2119
2204
|
for (let n of Array.from(e.querySelectorAll("span[style]"))) {
|
|
2120
|
-
let e =
|
|
2205
|
+
let e = Pn(n, t);
|
|
2121
2206
|
e !== null && n.replaceWith(document.createRange().createContextualFragment(e));
|
|
2122
2207
|
}
|
|
2123
|
-
t &&
|
|
2208
|
+
t && In(e);
|
|
2124
2209
|
}
|
|
2125
|
-
function
|
|
2210
|
+
function In(e) {
|
|
2126
2211
|
for (let i of Array.from(e.querySelectorAll("a[style]"))) {
|
|
2127
2212
|
var t, n, r;
|
|
2128
|
-
let e = (t = i.getAttribute("style")) == null ? "" : t, a = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(e), o = /background-color\s*:\s*([^;]+)/i.exec(e), s = a == null || (n = a[1]) == null ? void 0 : n.trim(), c = o == null || (r = o[1]) == null ? void 0 : r.trim(), l = s !== void 0 && !
|
|
2213
|
+
let e = (t = i.getAttribute("style")) == null ? "" : t, a = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(e), o = /background-color\s*:\s*([^;]+)/i.exec(e), s = a == null || (n = a[1]) == null ? void 0 : n.trim(), c = o == null || (r = o[1]) == null ? void 0 : r.trim(), l = s !== void 0 && !En(s) && s !== "inherit", u = c !== void 0 && c !== "transparent" && c !== "inherit";
|
|
2129
2214
|
if (!l && !u) continue;
|
|
2130
|
-
let d = l ?
|
|
2215
|
+
let d = l ? U(s, "text") : "", f = u ? U(c, "bg") : "", p = [l ? `color: ${d}` : "", Tn(u, l, f)].filter(Boolean).join("; "), m = i;
|
|
2131
2216
|
m.innerHTML = `<mark style="${p};">${m.innerHTML}</mark>`, m.style.removeProperty("color"), m.style.removeProperty("background-color");
|
|
2132
2217
|
}
|
|
2133
2218
|
}
|
|
2134
|
-
function
|
|
2219
|
+
function Ln(e) {
|
|
2135
2220
|
for (let t of Array.from(e.querySelectorAll("td, th"))) {
|
|
2136
2221
|
let e = t.querySelectorAll("p");
|
|
2137
2222
|
if (e.length !== 0) {
|
|
@@ -2145,11 +2230,11 @@ function xn(e) {
|
|
|
2145
2230
|
}
|
|
2146
2231
|
//#endregion
|
|
2147
2232
|
//#region src/tools/table/table-cell-clipboard.ts
|
|
2148
|
-
var
|
|
2149
|
-
function
|
|
2233
|
+
var Rn = "data-blok-table-cells";
|
|
2234
|
+
function zn(e, t, n) {
|
|
2150
2235
|
return e ? `background-color: ${n}` : t ? "background-color: transparent" : "";
|
|
2151
2236
|
}
|
|
2152
|
-
function
|
|
2237
|
+
function Bn(e) {
|
|
2153
2238
|
if (e.length === 0) return {
|
|
2154
2239
|
rows: 0,
|
|
2155
2240
|
cols: 0,
|
|
@@ -2166,28 +2251,28 @@ function wn(e) {
|
|
|
2166
2251
|
cells: s
|
|
2167
2252
|
};
|
|
2168
2253
|
}
|
|
2169
|
-
function
|
|
2254
|
+
function Vn(e) {
|
|
2170
2255
|
let { data: t } = e;
|
|
2171
2256
|
return typeof t.text == "string" ? t.text : Array.isArray(t.items) ? t.items.filter((e) => typeof e == "string").join(" ") : "";
|
|
2172
2257
|
}
|
|
2173
|
-
function
|
|
2258
|
+
function Hn(e) {
|
|
2174
2259
|
var t;
|
|
2175
2260
|
let n = document.createElement("div");
|
|
2176
2261
|
return n.innerHTML = e, (t = n.textContent) == null ? "" : t;
|
|
2177
2262
|
}
|
|
2178
|
-
function
|
|
2179
|
-
return
|
|
2263
|
+
function Un(e) {
|
|
2264
|
+
return Hn(Vn(e));
|
|
2180
2265
|
}
|
|
2181
|
-
function
|
|
2182
|
-
return `<table ${
|
|
2183
|
-
let t = e.blocks.map(
|
|
2266
|
+
function Wn(e) {
|
|
2267
|
+
return `<table ${Rn}='${JSON.stringify(e).replace(/'/g, "'")}'>${e.cells.map((e) => `<tr>${e.map((e) => {
|
|
2268
|
+
let t = e.blocks.map(Vn).join(" "), n = [e.color ? `background-color: ${e.color}` : "", e.textColor ? `color: ${e.textColor}` : ""].filter(Boolean).join("; ");
|
|
2184
2269
|
return `<td${n ? ` style="${n}"` : ""}>${t}</td>`;
|
|
2185
2270
|
}).join("")}</tr>`).join("")}</table>`;
|
|
2186
2271
|
}
|
|
2187
|
-
function
|
|
2188
|
-
return e.cells.map((e) => e.map((e) => e.blocks.map(
|
|
2272
|
+
function Gn(e) {
|
|
2273
|
+
return e.cells.map((e) => e.map((e) => e.blocks.map(Un).join(" ")).join(" ")).join("\n");
|
|
2189
2274
|
}
|
|
2190
|
-
var
|
|
2275
|
+
var Kn = new Set(["color", "background-color"]), qn = {
|
|
2191
2276
|
b: !0,
|
|
2192
2277
|
strong: !0,
|
|
2193
2278
|
i: !0,
|
|
@@ -2200,40 +2285,40 @@ var An = new Set(["color", "background-color"]), jn = {
|
|
|
2200
2285
|
},
|
|
2201
2286
|
mark: (e) => {
|
|
2202
2287
|
let t = e.style, n = Array.from({ length: t.length }, (e, n) => t.item(n));
|
|
2203
|
-
for (let e of n)
|
|
2288
|
+
for (let e of n) Kn.has(e) || t.removeProperty(e);
|
|
2204
2289
|
return t.length > 0 ? { style: !0 } : {};
|
|
2205
2290
|
}
|
|
2206
2291
|
};
|
|
2207
|
-
function
|
|
2292
|
+
function Jn(e) {
|
|
2208
2293
|
let t = e.replace(/\s/g, "");
|
|
2209
2294
|
return t === "rgb(0,0,0)" || t === "#000000";
|
|
2210
2295
|
}
|
|
2211
|
-
function
|
|
2296
|
+
function Yn(e) {
|
|
2212
2297
|
let t = e.cloneNode(!0);
|
|
2213
2298
|
for (let e of Array.from(t.querySelectorAll("span"))) {
|
|
2214
2299
|
var n, r, i;
|
|
2215
|
-
let t = (n = e.getAttribute("style")) == null ? "" : n, a = /font-weight\s*:\s*(700|bold)/i.test(t), o = /font-style\s*:\s*italic/i.test(t), s = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(t), c = /background-color\s*:\s*([^;]+)/i.exec(t), l = s == null || (r = s[1]) == null ? void 0 : r.trim(), u = c == null || (i = c[1]) == null ? void 0 : i.trim(), d = l !== void 0 && !
|
|
2300
|
+
let t = (n = e.getAttribute("style")) == null ? "" : n, a = /font-weight\s*:\s*(700|bold)/i.test(t), o = /font-style\s*:\s*italic/i.test(t), s = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(t), c = /background-color\s*:\s*([^;]+)/i.exec(t), l = s == null || (r = s[1]) == null ? void 0 : r.trim(), u = c == null || (i = c[1]) == null ? void 0 : i.trim(), d = l !== void 0 && !Jn(l), f = u !== void 0 && u !== "transparent" && !On(u) && !kn(u);
|
|
2216
2301
|
if (!a && !o && !d && !f) continue;
|
|
2217
|
-
let p = d ?
|
|
2302
|
+
let p = d ? U(l, "text") : "", m = f ? U(u, "bg") : "", h = [d ? `color: ${p}` : "", zn(f, d, m)].filter(Boolean).join("; "), g = e.innerHTML, _ = h ? `<mark style="${h};">${g}</mark>` : g, v = o ? `<i>${_}</i>` : _, y = a ? `<b>${v}</b>` : v;
|
|
2218
2303
|
e.replaceWith(document.createRange().createContextualFragment(y));
|
|
2219
2304
|
}
|
|
2220
2305
|
for (let e of Array.from(t.querySelectorAll("a[style]"))) {
|
|
2221
2306
|
var a, o, s;
|
|
2222
|
-
let t = (a = e.getAttribute("style")) == null ? "" : a, n = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(t), r = /background-color\s*:\s*([^;]+)/i.exec(t), i = n == null || (o = n[1]) == null ? void 0 : o.trim(), c = r == null || (s = r[1]) == null ? void 0 : s.trim(), l = i !== void 0 && !
|
|
2307
|
+
let t = (a = e.getAttribute("style")) == null ? "" : a, n = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(t), r = /background-color\s*:\s*([^;]+)/i.exec(t), i = n == null || (o = n[1]) == null ? void 0 : o.trim(), c = r == null || (s = r[1]) == null ? void 0 : s.trim(), l = i !== void 0 && !Jn(i) && i !== "inherit", u = c !== void 0 && c !== "transparent" && c !== "inherit" && !On(c) && !kn(c);
|
|
2223
2308
|
if (!l && !u) continue;
|
|
2224
|
-
let d = l ?
|
|
2309
|
+
let d = l ? U(i, "text") : "", f = u ? U(c, "bg") : "", p = [l ? `color: ${d}` : "", zn(u, l, f)].filter(Boolean).join("; "), m = e;
|
|
2225
2310
|
m.innerHTML = `<mark style="${p};">${m.innerHTML}</mark>`, m.style.removeProperty("color"), m.style.removeProperty("background-color");
|
|
2226
2311
|
}
|
|
2227
2312
|
for (let e of Array.from(t.querySelectorAll("p"))) {
|
|
2228
2313
|
let t = document.createRange().createContextualFragment(e.innerHTML + "<br>");
|
|
2229
2314
|
e.replaceWith(t);
|
|
2230
2315
|
}
|
|
2231
|
-
return
|
|
2316
|
+
return N(t.innerHTML, qn).replace(/(<br\s*\/?>|\s)+$/i, "").trim();
|
|
2232
2317
|
}
|
|
2233
|
-
function
|
|
2318
|
+
function Xn(e) {
|
|
2234
2319
|
if (!e) return null;
|
|
2235
2320
|
let t = new DOMParser().parseFromString(e, "text/html").querySelector("table");
|
|
2236
|
-
if (!t || t.hasAttribute(
|
|
2321
|
+
if (!t || t.hasAttribute(Rn)) return null;
|
|
2237
2322
|
let n = t.querySelectorAll("tr");
|
|
2238
2323
|
if (n.length === 0) return null;
|
|
2239
2324
|
let r = [];
|
|
@@ -2241,7 +2326,7 @@ function Pn(e) {
|
|
|
2241
2326
|
let t = e.querySelectorAll("td, th"), n = [];
|
|
2242
2327
|
t.forEach((e) => {
|
|
2243
2328
|
var t;
|
|
2244
|
-
let r =
|
|
2329
|
+
let r = Yn(e).split(/<br\s*\/?>/i).map((e) => e.trim()).filter(Boolean), i = { blocks: r.length > 0 ? r.map((e) => ({
|
|
2245
2330
|
tool: "paragraph",
|
|
2246
2331
|
data: { text: e }
|
|
2247
2332
|
})) : [{
|
|
@@ -2250,10 +2335,10 @@ function Pn(e) {
|
|
|
2250
2335
|
}] }, a = (t = e.getAttribute("style")) == null ? "" : t, o = /background-color\s*:\s*([^;]+)/i.exec(a);
|
|
2251
2336
|
if (o != null && o[1]) {
|
|
2252
2337
|
let e = o[1].trim();
|
|
2253
|
-
!
|
|
2338
|
+
!On(e) && !kn(e) && (i.color = U(e, "bg"));
|
|
2254
2339
|
}
|
|
2255
2340
|
let s = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(a);
|
|
2256
|
-
s != null && s[1] && !
|
|
2341
|
+
s != null && s[1] && !Jn(s[1].trim()) && (i.textColor = U(s[1].trim(), "text")), n.push(i);
|
|
2257
2342
|
}), r.push(n);
|
|
2258
2343
|
});
|
|
2259
2344
|
let i = Math.max(0, ...r.map((e) => e.length));
|
|
@@ -2268,8 +2353,8 @@ function Pn(e) {
|
|
|
2268
2353
|
cells: r
|
|
2269
2354
|
};
|
|
2270
2355
|
}
|
|
2271
|
-
function
|
|
2272
|
-
let t = RegExp(`${
|
|
2356
|
+
function Zn(e) {
|
|
2357
|
+
let t = RegExp(`${Rn}='([^']*)'|${Rn}="([^"]*)"`, "s").exec(e);
|
|
2273
2358
|
if (!t) return null;
|
|
2274
2359
|
try {
|
|
2275
2360
|
var n;
|
|
@@ -2283,7 +2368,13 @@ function Fn(e) {
|
|
|
2283
2368
|
}
|
|
2284
2369
|
//#endregion
|
|
2285
2370
|
//#region src/components/icons/index.ts
|
|
2286
|
-
var In = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m4.5 10.5 4 4 7-8\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 2 Q10 10 18 10 Q10 10 10 18 Q10 10 2 10 Q10 10 10 2Z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n</svg>\n", Rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m5 15 10-10m0 10L5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", zn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n transform=\"translate(0,-1)\"\n d=\"M6 11h4.9231c.6528 0 1.2789-.3161 1.7405-.8787.4617-.56259.721-1.32565.721-2.1213 0-.79565-.2593-1.55871-.721-2.12132C12.202 5.31607 11.5759 5 10.9231 5H6v6Zm0 0h5.5385c.6528 0 1.2789.3161 1.7405.8787.4617.5626.721 1.3257.721 2.1213 0 .7956-.2593 1.5587-.721 2.1213-.4616.5626-1.0877.8787-1.7405.8787H6v-6Z\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Bn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M8.5 4h6m-10 12h6m1-12-4 12\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Vn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8.5 11.5a3.5 3.5 0 0 0 5 0l2-2a3.536 3.536 0 0 0-5-5l-1 1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M11.5 8.5a3.5 3.5 0 0 0-5 0l-2 2a3.536 3.536 0 0 0 5 5l1-1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Hn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"1.25\" y=\"1.25\" width=\"17.5\" height=\"17.5\" rx=\"4.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M6.5 14.5L10 5.5l3.5 9\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M8.5 11h3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5.5 3.5v7.5a4.5 4.5 0 0 0 9 0V3.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M3.5 18.5h13\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Wn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 10h12\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M8.2 10c-1-.5-1.8-1.27-1.8-2.4 0-1.99 1.61-3.6 3.6-3.6s3.6 1.61 3.6 3.6\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M11.8 10c1 .5 1.8 1.27 1.8 2.4 0 1.99-1.61 3.6-3.6 3.6s-3.6-1.61-3.6-3.6\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Gn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14.5 6.5l2-2-2-2\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16.5 4.5h-4a5 5 0 0 0-5 5v1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M5.5 13.5l-2 2 2 2\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M3.5 15.5h4a5 5 0 0 0 5-5v-1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Kn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"7.5\" cy=\"5.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"5.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"7.5\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"7.5\" cy=\"14.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"14.5\" r=\"1\" fill=\"currentColor\"/>\n</svg>\n", qn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 10h11M10 4.5v11\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Jn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m6 8 4 4 4-4\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Yn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m12 5-5 5 5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Xn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m8 5 5 5-5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Zn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"9\" cy=\"9\" r=\"4.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"m12.5 12.5 3.5 3.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Qn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.1667 5 2.5-1.66667V15\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", $n = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m7.5 10h-3.3333c0-3.3333 3.3333-2.5 3.3333-5 0-1.25-1.6667-2.08333-3.3333-.83333\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", er = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.5833 3.75C16 7.91667 17.5 8.75 17.5 10c0 .442-.1756.866-.4882 1.1785-.3125.3126-.7364.4882-1.1785.4882.4421 0 .866.1756 1.1785.4881.3126.3126.4882.7365.4882 1.1785 0 1.5-1.6667 2.5-3.3333 1.25\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", tr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10 15V5M14.1667 8.33333V10.8333C14.1667 11.0543 14.2545 11.2663 14.4107 11.4226C14.567 11.5789 14.779 11.6667 15 11.6667H17.5M17.5 8.33333V15M3.33334 10H10M3.33334 15V5\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", nr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10M3.33334 15V5M10 15V5M17.5 8.33333H14.1667V10.8333H15.25C16.5 10.8333 17.5 11.75 17.5 12.9167C17.5 14.0833 16.5 15 15.25 15C14.8333 15 14.5 14.9167 14.1667 14.75\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", rr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.1667 8.3333c0 .9205.7462 1.6667 1.6666 1.6667.9205 0 1.6667-.7462 1.6667-1.6667 0-.9204-.7462-1.6666-1.6667-1.6666-.9204 0-1.6666.7462-1.6666 1.6666Zm0 0c0-2.0833.8333-3.3333 2.5-4.99997\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", ir = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M14.5 7.28571V6h-9v1.28571M10 6v9m0 0H8.71429M10 15h1.2857\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", ar = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 4 3 16h14Z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M10 8.5v3.5m0 2v.01\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", or = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3 3l3 2-3 2M9 5h8M6 10h11M6 15h11\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", sr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M8 5h9M8 10h9M8 15h9\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n />\n <circle cx=\"4\" cy=\"5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4\" cy=\"15\" r=\"1\" fill=\"currentColor\"/>\n</svg>\n", cr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8 5h9M8 10h9M8 15h9\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <text x=\"4\" y=\"6\" fill=\"currentColor\" font-size=\"5\" font-family=\"sans-serif\" text-anchor=\"middle\" dominant-baseline=\"central\">1</text>\n <text x=\"4\" y=\"11\" fill=\"currentColor\" font-size=\"5\" font-family=\"sans-serif\" text-anchor=\"middle\" dominant-baseline=\"central\">2</text>\n <text x=\"4\" y=\"16\" fill=\"currentColor\" font-size=\"5\" font-family=\"sans-serif\" text-anchor=\"middle\" dominant-baseline=\"central\">3</text>\n</svg>\n", lr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10 5h7M10 10h7M10 15h7M3 5l1 1 2-2M3 10l1 1 2-2M3 15l1 1 2-2\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", ur = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8h14M3 12h14M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", dr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 4h11A1.5 1.5 0 0 1 17 5.5V8H3V5.5A1.5 1.5 0 0 1 4.5 4Z\" fill=\"currentColor\"/>\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8h14M3 12h14M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", fr = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\"/>\n <circle cx=\"12\" cy=\"12\" r=\"3\"/>\n</svg>\n", pr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 4H7.5v12H4.5A1.5 1.5 0 0 1 3 14.5v-9A1.5 1.5 0 0 1 4.5 4Z\" fill=\"currentColor\"/>\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8h14M3 12h14M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", mr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 4l-3 3m3-3l3 3M10 4v7M5 16h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", hr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 16l-3-3m3 3l3-3M10 16V9M5 4h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", gr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 10l3-3M4 10l3 3M4 10h7M16 5v10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", _r = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M16 10l-3-3m3 3l-3 3M16 10H9M4 5v10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", vr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"7\" y=\"7\" width=\"9\" height=\"9\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M5 13h-.5A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3h7A1.5 1.5 0 0 1 13 4.5V5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", yr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M12.5 5.5l2 2M4.5 13.5l8-8 2 2-8 8H4.5v-2z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", br = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 6.5h11\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M8 6.5V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M6.5 6.5l.5 8.5a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1l.5-8.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M8.5 9.5v3.5M11.5 9.5v3.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", xr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"5\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"15\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n</svg>\n", Sr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 15V5m3.5 5 2-1.5V15\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16 7l2.5 3-2.5 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Cr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 15V5m7 10h-3c0-3 3-2.25 3-4.5 0-1.125-1.5-1.875-3-.75\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16 7l2.5 3-2.5 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", wr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 15V5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M11 8.5c1.25-.75 2.5-.25 2.5.75 0 .75-1 1.25-1 1.25s1 .5 1 1.25c0 1-1.25 1.5-2.5.75\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16 7l2.5 3-2.5 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Tr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"6\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M10 4C8 6 7.5 8 7.5 10C7.5 12 8 14 10 16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M10 4C12 6 12.5 8 12.5 10C12.5 12 12 14 10 16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M4 10H16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Er = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"5.5\" width=\"14\" height=\"9\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n <path d=\"M3 8L10 10L17 8\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Dr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M7.5 4L7.5 16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M12.5 4L12.5 16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M4 8H16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M4 12H16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Or = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 4v12\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\"/>\n <path d=\"M9 6h7\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M9 10h7\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M9 14h5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", kr = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\"/><line x1=\"9\" y1=\"10\" x2=\"15\" y2=\"10\"/><line x1=\"12\" y1=\"7\" x2=\"12\" y2=\"13\"/></svg>", Ar = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\n <rect x=\"2.5\" y=\"3\" width=\"12\" height=\"6\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M14.5 6H16a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-6a1 1 0 0 0-1 1V14\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <rect x=\"8\" y=\"14\" width=\"3\" height=\"3.5\" rx=\"0.75\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>", jr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 10h12\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Mr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m7 6-4 4 4 4m6-8 4 4-4 4\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Nr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m6 7-3 3 3 3m8-6 3 3-3 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"m12 5-4 10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Pr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 3l2.2 4.4 4.8.7-3.5 3.4.8 4.8L10 14l-4.3 2.3.8-4.8L3 8.1l4.8-.7L10 3z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Fr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <circle cx=\"7.5\" cy=\"8.5\" r=\"0.75\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"8.5\" r=\"0.75\" fill=\"currentColor\"/>\n <path d=\"M7.5 12a3 3 0 0 0 5 0\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Ir = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 17v-7\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M10 13c-3 0-6-2-6-5 3 0 6 2 6 5z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n <path d=\"M10 10c3 0 6-2.5 6-5.5-3 0-6 2.5-6 5.5z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n</svg>\n", Lr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5 3v4c0 1.1.9 2 2 2v8\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M9 3v4c0 1.1-.9 2-2 2\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M7 3v3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M13 3v14\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M13 3c1.7 0 3 1.5 3 3.5S13 10 13 10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n</svg>\n", Rr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M10 7.5l2.4 1.7-.9 2.8h-3l-.9-2.8z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n <path d=\"M10 7.5V4\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M12.4 9.2l3.1-1.1\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M11.5 12l2 2.6\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M8.5 12l-2 2.6\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M7.6 9.2l-3.1-1.1\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", zr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <ellipse cx=\"10\" cy=\"10\" rx=\"2.75\" ry=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3.5 10h13\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", Br = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8 13.5c-.25-1.5-1.5-3.5-2.5-5.5a4.5 4.5 0 0 1 9 0c-1 2-2.25 4-2.5 5.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M8 13.5v1.75c0 .41.34.75.75.75h2.5c.41 0 .75-.34.75-.75V13.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n <path d=\"M8 14.75h4\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M9.25 11l.75-3 .75 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <circle cx=\"10\" cy=\"7\" r=\"1\" stroke=\"currentColor\" stroke-width=\"1\"/>\n</svg>\n", Vr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8.5 5l-1 10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M12.5 5l-1 10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M5 8h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M5 12h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Hr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5 17V3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M5 3c2 0 3 1.5 5 1.5S14 3 16 3v8c-2 0-3 1.5-5 1.5S7 11 5 11\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Ur = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <ellipse cx=\"10\" cy=\"5.5\" rx=\"6\" ry=\"2.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M4 5.5v4c0 1.38 2.69 2.5 6 2.5s6-1.12 6-2.5v-4\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M4 9.5v4c0 1.38 2.69 2.5 6 2.5s6-1.12 6-2.5v-4\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", Wr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <rect x=\"4.5\" y=\"6\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n <rect x=\"4.5\" y=\"9\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n <rect x=\"9\" y=\"6\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n <rect x=\"14\" y=\"6\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n</svg>\n", Gr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"4.5\" cy=\"6.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4.5\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4.5\" cy=\"13.5\" r=\"1\" fill=\"currentColor\"/>\n <path d=\"M7.5 6.5h9M7.5 10h9M7.5 13.5h9\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Kr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4.5\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8.5h14\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M7 3v3M13 3v3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <circle cx=\"7\" cy=\"12\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"12\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"13\" cy=\"12\" r=\"1\" fill=\"currentColor\"/>\n</svg>\n", qr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-dasharray=\"1.5 2\"/>\n <path d=\"M5.5 7 8.5 10 5.5 13\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M14.5 7 11.5 10 14.5 13\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Jr = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\"/><path d=\"M12 3v18\"/><path d=\"M8 8l4 4-4 4\"/><path d=\"M16 8l-4 4 4 4\"/></svg>", Yr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4\" width=\"6\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <rect x=\"11\" y=\"4\" width=\"6\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", Xr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"6\" cy=\"6\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"6\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"14\" cy=\"6\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"6\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"14\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"6\" cy=\"14\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"14\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"14\" cy=\"14\" r=\"1.25\" fill=\"currentColor\"/>\n</svg>\n", Zr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"2.5\" y=\"3.5\" width=\"15\" height=\"13\" rx=\"2\" fill=\"currentColor\" fill-opacity=\"0.08\" stroke=\"currentColor\" stroke-width=\"1.4\"/>\n <circle cx=\"7\" cy=\"8\" r=\"1.3\" fill=\"currentColor\"/>\n <path d=\"M3 13.25 6.25 10l2.25 2.25L12.25 8.25 17 13\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", H = (e) => `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${e}</svg>`, Qr = H("<rect x=\"3\" y=\"8\" width=\"8\" height=\"8\" rx=\"1.5\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M3 4h18\"/><path d=\"M14 10h7\"/><path d=\"M14 14h7\"/><path d=\"M3 20h18\"/>"), $r = H("<rect x=\"8\" y=\"8\" width=\"8\" height=\"8\" rx=\"1.5\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M3 4h18\"/><path d=\"M3 20h18\"/>"), ei = H("<rect x=\"13\" y=\"8\" width=\"8\" height=\"8\" rx=\"1.5\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M3 4h18\"/><path d=\"M3 10h7\"/><path d=\"M3 14h7\"/><path d=\"M3 20h18\"/>"), ti = H("<path d=\"M5 12h14\"/>"), ni = H("<path d=\"M12 5v14\"/><path d=\"M5 12h14\"/>"), ri = H("<path d=\"M10 13a4 4 0 0 1 0-5.66l3-3a4 4 0 0 1 5.66 5.66l-1.5 1.5\"/><path d=\"M14 11a4 4 0 0 1 0 5.66l-3 3a4 4 0 1 1-5.66-5.66l1.5-1.5\"/>"), ii = H("<path d=\"M9 3v6H3\"/><path d=\"M21 9h-6V3\"/><path d=\"M3 15h6v6\"/><path d=\"M15 21v-6h6\"/>"), ai = H("<path d=\"M15 3h6v6\"/><path d=\"M9 21H3v-6\"/><path d=\"m21 3-7 7\"/><path d=\"m3 21 7-7\"/>"), oi = H("<path d=\"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4\"/><path d=\"M7 10l5 5 5-5\"/><path d=\"M12 15V3\"/>"), si = H("<rect x=\"3\" y=\"3.5\" width=\"18\" height=\"12\" rx=\"2.5\"/><path d=\"M5 19h14\"/><path d=\"M8 22h8\"/>"), ci = H("<path d=\"m17.5 8 2.5-2.5L17.5 3\"/><path d=\"M20 5.5h-5.5a6 6 0 0 0-6 6V13\"/><path d=\"m6.5 16-2.5 2.5L6.5 21\"/><path d=\"M4 18.5h5.5a6 6 0 0 0 6-6V11\"/>"), li = H("<path d=\"M6 2v14a2 2 0 0 0 2 2h14\"/><path d=\"M2 6h14a2 2 0 0 1 2 2v14\"/>"), ui = "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\"><circle cx=\"5\" cy=\"12\" r=\"1.6\"/><circle cx=\"12\" cy=\"12\" r=\"1.6\"/><circle cx=\"19\" cy=\"12\" r=\"1.6\"/></svg>", di = "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" width=\"14\" height=\"14\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M18 6L6 18M6 6l12 12\"/></svg>", fi = "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M14.5 4.5H6A2.5 2.5 0 0 0 3.5 7v10A2.5 2.5 0 0 0 6 19.5h12a2.5 2.5 0 0 0 2.5-2.5v-6.25\"/><path d=\"m14.5 4.5 1.75 2.25 2.25-1.25 2 2.75\"/><circle cx=\"8\" cy=\"9\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><path d=\"m3.8 16.25 3.45-3.45 2.5 2.5 3.5-3.5 4 4\"/></svg>", pi = "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M20 16.5A4.5 4.5 0 0 0 17 8.25a6 6 0 0 0-11.7 1.5A4 4 0 0 0 6 17.5\"/><path d=\"M12 12v5\"/><path d=\"m9.5 14.5 2.5-2.5 2.5 2.5\"/><path d=\"m4 4 16 16\" stroke-width=\"2\"/></svg>", mi = H("<path d=\"M12 4v10\"/><path d=\"m7.5 8.5 4.5-4.5 4.5 4.5\"/><path d=\"M5 14v3.5A2.5 2.5 0 0 0 7.5 20h9a2.5 2.5 0 0 0 2.5-2.5V14\"/>"), hi = H("<path d=\"M10 14a5 5 0 0 0 7.07 0l2.83-2.83a5 5 0 0 0-7.07-7.07L11.5 5.5\"/><path d=\"M14 10a5 5 0 0 0-7.07 0l-2.83 2.83a5 5 0 0 0 7.07 7.07l1.33-1.33\"/>"), gi = H("<path d=\"M12 4v12\"/><path d=\"m6.5 10.5 5.5 5.5 5.5-5.5\"/><path d=\"M4 18h16\"/>"), _i = H("<path d=\"M12 5v11\"/><path d=\"m7 10 5-5 5 5\"/>"), vi = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\"><rect x=\"1.5\" y=\"1.5\" width=\"11\" height=\"11\" rx=\"2\" stroke=\"currentColor\" stroke-width=\"1.2\"/><circle cx=\"4.5\" cy=\"4.5\" r=\".9\" fill=\"currentColor\"/><circle cx=\"7\" cy=\"7\" r=\".9\" fill=\"currentColor\"/><circle cx=\"9.5\" cy=\"9.5\" r=\".9\" fill=\"currentColor\"/></svg>", yi = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\"><path d=\"M3.5 3.5l7 7M10.5 3.5l-7 7\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"/></svg>", bi = "<svg aria-hidden=\"true\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.5 2.5L8.5 6L4.5 9.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>", xi = {
|
|
2371
|
+
var Qn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m4.5 10.5 4 4 7-8\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", $n = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 2 Q10 10 18 10 Q10 10 10 18 Q10 10 2 10 Q10 10 10 2Z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n</svg>\n", er = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m5 15 10-10m0 10L5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", tr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n transform=\"translate(0,-1)\"\n d=\"M6 11h4.9231c.6528 0 1.2789-.3161 1.7405-.8787.4617-.56259.721-1.32565.721-2.1213 0-.79565-.2593-1.55871-.721-2.12132C12.202 5.31607 11.5759 5 10.9231 5H6v6Zm0 0h5.5385c.6528 0 1.2789.3161 1.7405.8787.4617.5626.721 1.3257.721 2.1213 0 .7956-.2593 1.5587-.721 2.1213-.4616.5626-1.0877.8787-1.7405.8787H6v-6Z\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", nr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M8.5 4h6m-10 12h6m1-12-4 12\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", rr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8.5 11.5a3.5 3.5 0 0 0 5 0l2-2a3.536 3.536 0 0 0-5-5l-1 1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M11.5 8.5a3.5 3.5 0 0 0-5 0l-2 2a3.536 3.536 0 0 0 5 5l1-1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", ir = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"1.25\" y=\"1.25\" width=\"17.5\" height=\"17.5\" rx=\"4.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M6.5 14.5L10 5.5l3.5 9\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M8.5 11h3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", ar = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5.5 3.5v7.5a4.5 4.5 0 0 0 9 0V3.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M3.5 18.5h13\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", or = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 10h12\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M8.2 10c-1-.5-1.8-1.27-1.8-2.4 0-1.99 1.61-3.6 3.6-3.6s3.6 1.61 3.6 3.6\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M11.8 10c1 .5 1.8 1.27 1.8 2.4 0 1.99-1.61 3.6-3.6 3.6s-3.6-1.61-3.6-3.6\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", sr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14.5 6.5l2-2-2-2\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16.5 4.5h-4a5 5 0 0 0-5 5v1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M5.5 13.5l-2 2 2 2\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M3.5 15.5h4a5 5 0 0 0 5-5v-1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", cr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"7.5\" cy=\"5.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"5.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"7.5\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"7.5\" cy=\"14.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"14.5\" r=\"1\" fill=\"currentColor\"/>\n</svg>\n", lr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 10h11M10 4.5v11\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", ur = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m6 8 4 4 4-4\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", dr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m12 5-5 5 5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", fr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m8 5 5 5-5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", pr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"9\" cy=\"9\" r=\"4.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"m12.5 12.5 3.5 3.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", mr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.1667 5 2.5-1.66667V15\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", hr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m7.5 10h-3.3333c0-3.3333 3.3333-2.5 3.3333-5 0-1.25-1.6667-2.08333-3.3333-.83333\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", gr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.5833 3.75C16 7.91667 17.5 8.75 17.5 10c0 .442-.1756.866-.4882 1.1785-.3125.3126-.7364.4882-1.1785.4882.4421 0 .866.1756 1.1785.4881.3126.3126.4882.7365.4882 1.1785 0 1.5-1.6667 2.5-3.3333 1.25\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", _r = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10 15V5M14.1667 8.33333V10.8333C14.1667 11.0543 14.2545 11.2663 14.4107 11.4226C14.567 11.5789 14.779 11.6667 15 11.6667H17.5M17.5 8.33333V15M3.33334 10H10M3.33334 15V5\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", vr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10M3.33334 15V5M10 15V5M17.5 8.33333H14.1667V10.8333H15.25C16.5 10.8333 17.5 11.75 17.5 12.9167C17.5 14.0833 16.5 15 15.25 15C14.8333 15 14.5 14.9167 14.1667 14.75\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", yr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.1667 8.3333c0 .9205.7462 1.6667 1.6666 1.6667.9205 0 1.6667-.7462 1.6667-1.6667 0-.9204-.7462-1.6666-1.6667-1.6666-.9204 0-1.6666.7462-1.6666 1.6666Zm0 0c0-2.0833.8333-3.3333 2.5-4.99997\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", br = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M14.5 7.28571V6h-9v1.28571M10 6v9m0 0H8.71429M10 15h1.2857\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", xr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 4 3 16h14Z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M10 8.5v3.5m0 2v.01\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Sr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3 3l3 2-3 2M9 5h8M6 10h11M6 15h11\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Cr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M8 5h9M8 10h9M8 15h9\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n />\n <circle cx=\"4\" cy=\"5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4\" cy=\"15\" r=\"1\" fill=\"currentColor\"/>\n</svg>\n", wr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8 5h9M8 10h9M8 15h9\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <text x=\"4\" y=\"6\" fill=\"currentColor\" font-size=\"5\" font-family=\"sans-serif\" text-anchor=\"middle\" dominant-baseline=\"central\">1</text>\n <text x=\"4\" y=\"11\" fill=\"currentColor\" font-size=\"5\" font-family=\"sans-serif\" text-anchor=\"middle\" dominant-baseline=\"central\">2</text>\n <text x=\"4\" y=\"16\" fill=\"currentColor\" font-size=\"5\" font-family=\"sans-serif\" text-anchor=\"middle\" dominant-baseline=\"central\">3</text>\n</svg>\n", Tr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10 5h7M10 10h7M10 15h7M3 5l1 1 2-2M3 10l1 1 2-2M3 15l1 1 2-2\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Er = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8h14M3 12h14M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", Dr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 4h11A1.5 1.5 0 0 1 17 5.5V8H3V5.5A1.5 1.5 0 0 1 4.5 4Z\" fill=\"currentColor\"/>\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8h14M3 12h14M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", Or = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\"/>\n <circle cx=\"12\" cy=\"12\" r=\"3\"/>\n</svg>\n", kr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 4H7.5v12H4.5A1.5 1.5 0 0 1 3 14.5v-9A1.5 1.5 0 0 1 4.5 4Z\" fill=\"currentColor\"/>\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8h14M3 12h14M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", Ar = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 4l-3 3m3-3l3 3M10 4v7M5 16h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", jr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 16l-3-3m3 3l3-3M10 16V9M5 4h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Mr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 10l3-3M4 10l3 3M4 10h7M16 5v10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Nr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M16 10l-3-3m3 3l-3 3M16 10H9M4 5v10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Pr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"7\" y=\"7\" width=\"9\" height=\"9\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M5 13h-.5A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3h7A1.5 1.5 0 0 1 13 4.5V5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", Fr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M12.5 5.5l2 2M4.5 13.5l8-8 2 2-8 8H4.5v-2z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Ir = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 6.5h11\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M8 6.5V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M6.5 6.5l.5 8.5a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1l.5-8.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M8.5 9.5v3.5M11.5 9.5v3.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Lr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"5\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"15\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n</svg>\n", Rr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 15V5m3.5 5 2-1.5V15\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16 7l2.5 3-2.5 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", zr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 15V5m7 10h-3c0-3 3-2.25 3-4.5 0-1.125-1.5-1.875-3-.75\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16 7l2.5 3-2.5 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Br = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 15V5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M11 8.5c1.25-.75 2.5-.25 2.5.75 0 .75-1 1.25-1 1.25s1 .5 1 1.25c0 1-1.25 1.5-2.5.75\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16 7l2.5 3-2.5 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Vr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"6\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M10 4C8 6 7.5 8 7.5 10C7.5 12 8 14 10 16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M10 4C12 6 12.5 8 12.5 10C12.5 12 12 14 10 16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M4 10H16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Hr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"5.5\" width=\"14\" height=\"9\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n <path d=\"M3 8L10 10L17 8\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Ur = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M7.5 4L7.5 16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M12.5 4L12.5 16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M4 8H16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M4 12H16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Wr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 4v12\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\"/>\n <path d=\"M9 6h7\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M9 10h7\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M9 14h5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Gr = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\"/><line x1=\"9\" y1=\"10\" x2=\"15\" y2=\"10\"/><line x1=\"12\" y1=\"7\" x2=\"12\" y2=\"13\"/></svg>", Kr = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\n <rect x=\"2.5\" y=\"3\" width=\"12\" height=\"6\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M14.5 6H16a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-6a1 1 0 0 0-1 1V14\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <rect x=\"8\" y=\"14\" width=\"3\" height=\"3.5\" rx=\"0.75\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>", qr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 10h12\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Jr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m7 6-4 4 4 4m6-8 4 4-4 4\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Yr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m6 7-3 3 3 3m8-6 3 3-3 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"m12 5-4 10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Xr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 3l2.2 4.4 4.8.7-3.5 3.4.8 4.8L10 14l-4.3 2.3.8-4.8L3 8.1l4.8-.7L10 3z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Zr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <circle cx=\"7.5\" cy=\"8.5\" r=\"0.75\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"8.5\" r=\"0.75\" fill=\"currentColor\"/>\n <path d=\"M7.5 12a3 3 0 0 0 5 0\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Qr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 17v-7\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M10 13c-3 0-6-2-6-5 3 0 6 2 6 5z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n <path d=\"M10 10c3 0 6-2.5 6-5.5-3 0-6 2.5-6 5.5z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n</svg>\n", $r = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5 3v4c0 1.1.9 2 2 2v8\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M9 3v4c0 1.1-.9 2-2 2\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M7 3v3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M13 3v14\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M13 3c1.7 0 3 1.5 3 3.5S13 10 13 10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n</svg>\n", ei = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M10 7.5l2.4 1.7-.9 2.8h-3l-.9-2.8z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n <path d=\"M10 7.5V4\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M12.4 9.2l3.1-1.1\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M11.5 12l2 2.6\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M8.5 12l-2 2.6\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M7.6 9.2l-3.1-1.1\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", ti = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <ellipse cx=\"10\" cy=\"10\" rx=\"2.75\" ry=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3.5 10h13\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", ni = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8 13.5c-.25-1.5-1.5-3.5-2.5-5.5a4.5 4.5 0 0 1 9 0c-1 2-2.25 4-2.5 5.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M8 13.5v1.75c0 .41.34.75.75.75h2.5c.41 0 .75-.34.75-.75V13.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n <path d=\"M8 14.75h4\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M9.25 11l.75-3 .75 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <circle cx=\"10\" cy=\"7\" r=\"1\" stroke=\"currentColor\" stroke-width=\"1\"/>\n</svg>\n", ri = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8.5 5l-1 10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M12.5 5l-1 10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M5 8h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M5 12h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", ii = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5 17V3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M5 3c2 0 3 1.5 5 1.5S14 3 16 3v8c-2 0-3 1.5-5 1.5S7 11 5 11\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", ai = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <ellipse cx=\"10\" cy=\"5.5\" rx=\"6\" ry=\"2.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M4 5.5v4c0 1.38 2.69 2.5 6 2.5s6-1.12 6-2.5v-4\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M4 9.5v4c0 1.38 2.69 2.5 6 2.5s6-1.12 6-2.5v-4\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", oi = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <rect x=\"4.5\" y=\"6\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n <rect x=\"4.5\" y=\"9\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n <rect x=\"9\" y=\"6\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n <rect x=\"14\" y=\"6\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n</svg>\n", si = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"4.5\" cy=\"6.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4.5\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4.5\" cy=\"13.5\" r=\"1\" fill=\"currentColor\"/>\n <path d=\"M7.5 6.5h9M7.5 10h9M7.5 13.5h9\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", ci = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4.5\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8.5h14\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M7 3v3M13 3v3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <circle cx=\"7\" cy=\"12\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"12\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"13\" cy=\"12\" r=\"1\" fill=\"currentColor\"/>\n</svg>\n", li = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-dasharray=\"1.5 2\"/>\n <path d=\"M5.5 7 8.5 10 5.5 13\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M14.5 7 11.5 10 14.5 13\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", ui = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\"/><path d=\"M12 3v18\"/><path d=\"M8 8l4 4-4 4\"/><path d=\"M16 8l-4 4 4 4\"/></svg>", di = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4\" width=\"6\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <rect x=\"11\" y=\"4\" width=\"6\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", fi = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"6\" cy=\"6\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"6\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"14\" cy=\"6\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"6\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"14\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"6\" cy=\"14\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"14\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"14\" cy=\"14\" r=\"1.25\" fill=\"currentColor\"/>\n</svg>\n", pi = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"2.5\" y=\"3.5\" width=\"15\" height=\"13\" rx=\"2\" fill=\"currentColor\" fill-opacity=\"0.08\" stroke=\"currentColor\" stroke-width=\"1.4\"/>\n <circle cx=\"7\" cy=\"8\" r=\"1.3\" fill=\"currentColor\"/>\n <path d=\"M3 13.25 6.25 10l2.25 2.25L12.25 8.25 17 13\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", W = (e) => `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${e}</svg>`, mi = W("<rect x=\"3\" y=\"8\" width=\"8\" height=\"8\" rx=\"1.5\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M3 4h18\"/><path d=\"M14 10h7\"/><path d=\"M14 14h7\"/><path d=\"M3 20h18\"/>"), hi = W("<rect x=\"8\" y=\"8\" width=\"8\" height=\"8\" rx=\"1.5\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M3 4h18\"/><path d=\"M3 20h18\"/>"), gi = W("<rect x=\"13\" y=\"8\" width=\"8\" height=\"8\" rx=\"1.5\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M3 4h18\"/><path d=\"M3 10h7\"/><path d=\"M3 14h7\"/><path d=\"M3 20h18\"/>"), _i = W("<path d=\"M5 12h14\"/>"), vi = W("<path d=\"M12 5v14\"/><path d=\"M5 12h14\"/>"), yi = W("<path d=\"M10 13a4 4 0 0 1 0-5.66l3-3a4 4 0 0 1 5.66 5.66l-1.5 1.5\"/><path d=\"M14 11a4 4 0 0 1 0 5.66l-3 3a4 4 0 1 1-5.66-5.66l1.5-1.5\"/>"), bi = W("<path d=\"M9 3v6H3\"/><path d=\"M21 9h-6V3\"/><path d=\"M3 15h6v6\"/><path d=\"M15 21v-6h6\"/>"), xi = W("<path d=\"M15 3h6v6\"/><path d=\"M9 21H3v-6\"/><path d=\"m21 3-7 7\"/><path d=\"m3 21 7-7\"/>"), Si = W("<path d=\"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4\"/><path d=\"M7 10l5 5 5-5\"/><path d=\"M12 15V3\"/>"), Ci = W("<rect x=\"3\" y=\"3.5\" width=\"18\" height=\"12\" rx=\"2.5\"/><path d=\"M5 19h14\"/><path d=\"M8 22h8\"/>"), wi = W("<path d=\"m17.5 8 2.5-2.5L17.5 3\"/><path d=\"M20 5.5h-5.5a6 6 0 0 0-6 6V13\"/><path d=\"m6.5 16-2.5 2.5L6.5 21\"/><path d=\"M4 18.5h5.5a6 6 0 0 0 6-6V11\"/>"), Ti = W("<path d=\"M6 2v14a2 2 0 0 0 2 2h14\"/><path d=\"M2 6h14a2 2 0 0 1 2 2v14\"/>"), Ei = "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\"><circle cx=\"5\" cy=\"12\" r=\"1.6\"/><circle cx=\"12\" cy=\"12\" r=\"1.6\"/><circle cx=\"19\" cy=\"12\" r=\"1.6\"/></svg>", Di = "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" width=\"14\" height=\"14\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M18 6L6 18M6 6l12 12\"/></svg>", Oi = "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M14.5 4.5H6A2.5 2.5 0 0 0 3.5 7v10A2.5 2.5 0 0 0 6 19.5h12a2.5 2.5 0 0 0 2.5-2.5v-6.25\"/><path d=\"m14.5 4.5 1.75 2.25 2.25-1.25 2 2.75\"/><circle cx=\"8\" cy=\"9\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><path d=\"m3.8 16.25 3.45-3.45 2.5 2.5 3.5-3.5 4 4\"/></svg>", ki = "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M20 16.5A4.5 4.5 0 0 0 17 8.25a6 6 0 0 0-11.7 1.5A4 4 0 0 0 6 17.5\"/><path d=\"M12 12v5\"/><path d=\"m9.5 14.5 2.5-2.5 2.5 2.5\"/><path d=\"m4 4 16 16\" stroke-width=\"2\"/></svg>", Ai = W("<path d=\"M12 4v10\"/><path d=\"m7.5 8.5 4.5-4.5 4.5 4.5\"/><path d=\"M5 14v3.5A2.5 2.5 0 0 0 7.5 20h9a2.5 2.5 0 0 0 2.5-2.5V14\"/>"), ji = W("<path d=\"M10 14a5 5 0 0 0 7.07 0l2.83-2.83a5 5 0 0 0-7.07-7.07L11.5 5.5\"/><path d=\"M14 10a5 5 0 0 0-7.07 0l-2.83 2.83a5 5 0 0 0 7.07 7.07l1.33-1.33\"/>"), Mi = W("<path d=\"M12 4v12\"/><path d=\"m6.5 10.5 5.5 5.5 5.5-5.5\"/><path d=\"M4 18h16\"/>"), Ni = W("<path d=\"M12 5v11\"/><path d=\"m7 10 5-5 5 5\"/>"), Pi = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\"><rect x=\"1.5\" y=\"1.5\" width=\"11\" height=\"11\" rx=\"2\" stroke=\"currentColor\" stroke-width=\"1.2\"/><circle cx=\"4.5\" cy=\"4.5\" r=\".9\" fill=\"currentColor\"/><circle cx=\"7\" cy=\"7\" r=\".9\" fill=\"currentColor\"/><circle cx=\"9.5\" cy=\"9.5\" r=\".9\" fill=\"currentColor\"/></svg>", Fi = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\"><path d=\"M3.5 3.5l7 7M10.5 3.5l-7 7\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"/></svg>", Ii = "<svg aria-hidden=\"true\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.5 2.5L8.5 6L4.5 9.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>", Li = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"4\" width=\"7\" height=\"16\" rx=\"1\"/><rect x=\"14\" y=\"4\" width=\"7\" height=\"16\" rx=\"1\"/></svg>", Ri = (e) => {
|
|
2372
|
+
let t = 18 / e;
|
|
2373
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="16" rx="2"/>${Array.from({ length: e - 1 }, (e, n) => {
|
|
2374
|
+
let r = +(3 + t * (n + 1)).toFixed(2);
|
|
2375
|
+
return `<line x1="${r}" y1="4" x2="${r}" y2="20"/>`;
|
|
2376
|
+
}).join("")}</svg>`;
|
|
2377
|
+
}, zi = {
|
|
2287
2378
|
"⌘": "⌘",
|
|
2288
2379
|
"⇧": "⇧",
|
|
2289
2380
|
"⌥": "⌥",
|
|
@@ -2309,12 +2400,12 @@ var In = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2309
2400
|
ins: "Ins",
|
|
2310
2401
|
win: "⊞"
|
|
2311
2402
|
};
|
|
2312
|
-
function
|
|
2403
|
+
function Bi(e) {
|
|
2313
2404
|
var t, n;
|
|
2314
2405
|
let r = e.trim();
|
|
2315
|
-
return (t = (n =
|
|
2406
|
+
return (t = (n = zi[r.toLowerCase()]) == null ? zi[r] : n) == null ? r : t;
|
|
2316
2407
|
}
|
|
2317
|
-
function
|
|
2408
|
+
function Vi(e) {
|
|
2318
2409
|
let t = /([⌘⇧⌥⌃⌫⏎⎋⌦↑↓←→↵⇥])|([^⌘⇧⌥⌃⌫⏎⎋⌦↑↓←→↵⇥]+)/gu, n = [];
|
|
2319
2410
|
for (let r of e.matchAll(t)) {
|
|
2320
2411
|
let e = r[0].trim();
|
|
@@ -2322,15 +2413,15 @@ function Ci(e) {
|
|
|
2322
2413
|
}
|
|
2323
2414
|
return n;
|
|
2324
2415
|
}
|
|
2325
|
-
function
|
|
2416
|
+
function Hi(e) {
|
|
2326
2417
|
let t = e.length === 1, n = t ? 13 : 11, r = t ? 13 : 7.5, i = Math.ceil(e.length * r);
|
|
2327
2418
|
return `<svg xmlns="http://www.w3.org/2000/svg" width="${i}" height="16" viewBox="0 0 ${i} 16" style="display:inline-block;vertical-align:middle;flex-shrink:0" aria-hidden="true"><text x="${i / 2}" y="9" text-anchor="middle" dominant-baseline="middle" font-family="-apple-system,BlinkMacSystemFont,'SF Pro Text','Helvetica Neue',sans-serif" font-size="${n}" font-weight="400" fill="currentColor">${e}</text></svg>`;
|
|
2328
2419
|
}
|
|
2329
|
-
function
|
|
2330
|
-
let t = e.split(" + ").flatMap(
|
|
2331
|
-
return t.length === 0 ? e : `<span style="display:inline-flex;align-items:center;line-height:1">${t.map((e) =>
|
|
2420
|
+
function Ui(e) {
|
|
2421
|
+
let t = e.split(" + ").flatMap(Vi);
|
|
2422
|
+
return t.length === 0 ? e : `<span style="display:inline-flex;align-items:center;line-height:1">${t.map((e) => Hi(Bi(e))).join("")}</span>`;
|
|
2332
2423
|
}
|
|
2333
|
-
var
|
|
2424
|
+
var Wi = {
|
|
2334
2425
|
"⌘": "Command",
|
|
2335
2426
|
"⇧": "Shift",
|
|
2336
2427
|
"⌥": "Option",
|
|
@@ -2349,34 +2440,34 @@ var Ti = {
|
|
|
2349
2440
|
ins: "Insert",
|
|
2350
2441
|
"⊞": "Win"
|
|
2351
2442
|
};
|
|
2352
|
-
function
|
|
2353
|
-
let t = e.split(" + ").flatMap(
|
|
2443
|
+
function Gi(e) {
|
|
2444
|
+
let t = e.split(" + ").flatMap(Vi);
|
|
2354
2445
|
return t.length === 0 ? e : t.map((e) => {
|
|
2355
2446
|
var t, n;
|
|
2356
2447
|
let r = e.trim(), i = r.toLowerCase();
|
|
2357
|
-
return (t = (n =
|
|
2448
|
+
return (t = (n = Wi[r]) == null ? Wi[i] : n) == null ? r.toUpperCase() : t;
|
|
2358
2449
|
}).join("+");
|
|
2359
2450
|
}
|
|
2360
2451
|
//#endregion
|
|
2361
2452
|
//#region src/components/utils/popover/components/hint/hint.const.ts
|
|
2362
|
-
var
|
|
2453
|
+
var G = {
|
|
2363
2454
|
root: "",
|
|
2364
2455
|
alignedStart: "text-start",
|
|
2365
2456
|
alignedCenter: "text-center",
|
|
2366
2457
|
title: "",
|
|
2367
2458
|
description: "opacity-60 mt-[3px]"
|
|
2368
|
-
},
|
|
2459
|
+
}, Ki = class {
|
|
2369
2460
|
constructor(e) {
|
|
2370
2461
|
let t = e.alignment === "center" ? "center" : "start";
|
|
2371
2462
|
this.nodes = {
|
|
2372
|
-
root: T.make("div", [
|
|
2373
|
-
title: T.make("div",
|
|
2374
|
-
}, this.nodes.root.setAttribute("data-alignment", t), this.nodes.root.appendChild(this.nodes.title), e.description !== void 0 && (this.nodes.description = T.make("div",
|
|
2463
|
+
root: T.make("div", [G.root, t === "center" ? G.alignedCenter : G.alignedStart]),
|
|
2464
|
+
title: T.make("div", G.title, { textContent: e.title })
|
|
2465
|
+
}, this.nodes.root.setAttribute("data-alignment", t), this.nodes.root.appendChild(this.nodes.title), e.description !== void 0 && (this.nodes.description = T.make("div", G.description), this.nodes.description.innerHTML = Ui(e.description), this.nodes.root.appendChild(this.nodes.description));
|
|
2375
2466
|
}
|
|
2376
2467
|
getElement() {
|
|
2377
2468
|
return this.nodes.root;
|
|
2378
2469
|
}
|
|
2379
|
-
},
|
|
2470
|
+
}, qi = class {
|
|
2380
2471
|
constructor(e) {
|
|
2381
2472
|
this.params = e;
|
|
2382
2473
|
}
|
|
@@ -2384,7 +2475,7 @@ var W = {
|
|
|
2384
2475
|
if (this.params !== void 0 && "name" in this.params) return this.params.name;
|
|
2385
2476
|
}
|
|
2386
2477
|
destroy() {
|
|
2387
|
-
|
|
2478
|
+
Pt();
|
|
2388
2479
|
}
|
|
2389
2480
|
onChildrenOpen() {
|
|
2390
2481
|
var e;
|
|
@@ -2399,7 +2490,7 @@ var W = {
|
|
|
2399
2490
|
this.params !== void 0 && "onActivate" in this.params && ((e = (t = this.params).onActivate) == null || e.call(t, this.params));
|
|
2400
2491
|
}
|
|
2401
2492
|
addHint(e, t) {
|
|
2402
|
-
|
|
2493
|
+
Ft(e, new Ki(t).getElement(), { placement: t.position });
|
|
2403
2494
|
}
|
|
2404
2495
|
getMountElement() {
|
|
2405
2496
|
return this.getElement();
|
|
@@ -2441,16 +2532,16 @@ var W = {
|
|
|
2441
2532
|
get isActive() {
|
|
2442
2533
|
return this.params === void 0 || !("isActive" in this.params) ? !1 : typeof this.params.isActive == "function" ? this.params.isActive() : this.params.isActive === !0;
|
|
2443
2534
|
}
|
|
2444
|
-
},
|
|
2535
|
+
}, K = {
|
|
2445
2536
|
item: "flex items-center select-none border-none bg-transparent rounded-lg px-2 py-1 text-text-primary mb-px outline-hidden max-h-8 overflow-hidden data-blok-popover-item-active:bg-icon-active-bg data-blok-popover-item-active:text-icon-active-text can-hover:hover:cursor-pointer can-hover:hover:bg-item-hover-bg data-blok-force-hover:cursor-pointer data-blok-force-hover:bg-item-hover-bg data-[blok-focused=\"true\"]:bg-item-focus-bg data-blok-popover-item-no-hover:hover:bg-transparent data-blok-popover-item-no-hover:cursor-default can-hover:data-blok-popover-item-destructive:hover:text-item-destructive-text can-hover:data-blok-popover-item-destructive:hover:bg-item-destructive-hover-bg [&[data-blok-popover-item-destructive][data-blok-force-hover]]:text-item-destructive-text [&[data-blok-popover-item-destructive][data-blok-force-hover]]:bg-item-destructive-hover-bg [&[data-blok-popover-item-destructive][data-blok-focused=\"true\"]]:text-item-destructive-text [&[data-blok-popover-item-destructive][data-blok-focused=\"true\"]]:bg-item-destructive-hover-bg",
|
|
2446
2537
|
itemDisabled: "cursor-default pointer-events-none text-text-secondary",
|
|
2447
2538
|
icon: "flex items-center justify-center w-6 h-6 shrink-0 rounded-lg bg-popover-icon-bg [&_svg]:w-4 [&_svg]:h-4",
|
|
2448
2539
|
focused: "is-focused"
|
|
2449
|
-
},
|
|
2540
|
+
}, Ji = {
|
|
2450
2541
|
item: "rounded-md px-1 py-1.5",
|
|
2451
2542
|
itemIconOnly: "justify-center",
|
|
2452
2543
|
itemWithTitle: "px-2"
|
|
2453
|
-
},
|
|
2544
|
+
}, Yi = { item: "rounded p-[3px] mobile:p-1" }, q = class extends qi {
|
|
2454
2545
|
get isDisabled() {
|
|
2455
2546
|
return this.params.isDisabled === !0;
|
|
2456
2547
|
}
|
|
@@ -2532,9 +2623,9 @@ var W = {
|
|
|
2532
2623
|
}
|
|
2533
2624
|
if (t.secondaryLabel) {
|
|
2534
2625
|
let n = document.createElement("div");
|
|
2535
|
-
if (n.className = "ml-auto shrink-0 inline-flex items-center whitespace-nowrap pl-20 leading-none text-text-secondary/60", n.setAttribute(a.popoverItemSecondaryTitle, ""), n.setAttribute("data-blok-testid", "popover-item-secondary-title"), n.innerHTML =
|
|
2626
|
+
if (n.className = "ml-auto shrink-0 inline-flex items-center whitespace-nowrap pl-20 leading-none text-text-secondary/60", n.setAttribute(a.popoverItemSecondaryTitle, ""), n.setAttribute("data-blok-testid", "popover-item-secondary-title"), n.innerHTML = Ui(t.secondaryLabel), e.appendChild(n), this.nodes.secondaryLabelEl = n, t.title !== void 0) {
|
|
2536
2627
|
var d;
|
|
2537
|
-
|
|
2628
|
+
Ft((d = n.firstElementChild) == null ? n : d, Gi(t.secondaryLabel), { placement: "top" });
|
|
2538
2629
|
}
|
|
2539
2630
|
}
|
|
2540
2631
|
if (t.trailingIcon) {
|
|
@@ -2543,7 +2634,7 @@ var W = {
|
|
|
2543
2634
|
}
|
|
2544
2635
|
if (this.hasChildren && !this.isChevronHidden) {
|
|
2545
2636
|
let t = document.createElement("div");
|
|
2546
|
-
t.className = this.getChevronClass(c), t.setAttribute(a.popoverItemIcon, ""), t.setAttribute(a.popoverItemIconChevronRight, ""), t.setAttribute("data-blok-testid", "popover-item-chevron-right"), t.innerHTML =
|
|
2637
|
+
t.className = this.getChevronClass(c), t.setAttribute(a.popoverItemIcon, ""), t.setAttribute(a.popoverItemIconChevronRight, ""), t.setAttribute("data-blok-testid", "popover-item-chevron-right"), t.innerHTML = fr, e.appendChild(t), this.nodes.chevron = t;
|
|
2547
2638
|
}
|
|
2548
2639
|
}
|
|
2549
2640
|
createIconElement(e, t, n, r) {
|
|
@@ -2553,13 +2644,13 @@ var W = {
|
|
|
2553
2644
|
getContainerClass() {
|
|
2554
2645
|
var e, t, n, i;
|
|
2555
2646
|
let a = (e = (t = this.renderParams) == null ? void 0 : t.isInline) == null ? !1 : e, o = (n = (i = this.renderParams) == null ? void 0 : i.isNestedInline) == null ? !1 : n;
|
|
2556
|
-
return r(
|
|
2647
|
+
return r(K.item, !a && !o && "pl-2 pr-3", a && Ji.item, a && this.params.icon && Ji.itemIconOnly, a && this.params.title && Ji.itemWithTitle, o && Yi.item, this.params.isDisabled && K.itemDisabled);
|
|
2557
2648
|
}
|
|
2558
2649
|
getIconClass(e, t, n) {
|
|
2559
|
-
return r(
|
|
2650
|
+
return r(K.icon, t && "w-auto h-auto bg-transparent [&_svg]:w-icon [&_svg]:h-icon mobile:[&_svg]:w-icon-mobile mobile:[&_svg]:h-icon-mobile", n && "w-toolbox-btn h-toolbox-btn", e && "mr-3", e && t && "shadow-none mr-0!", e && n && "mr-2!");
|
|
2560
2651
|
}
|
|
2561
2652
|
getChevronClass(e) {
|
|
2562
|
-
return r(
|
|
2653
|
+
return r(K.icon, "w-5 h-5 bg-transparent", e && "rotate-90");
|
|
2563
2654
|
}
|
|
2564
2655
|
setActive(e) {
|
|
2565
2656
|
this.nodes.root && (e ? this.nodes.root.setAttribute(a.popoverItemActive, "true") : this.nodes.root.removeAttribute(a.popoverItemActive));
|
|
@@ -2605,7 +2696,7 @@ var W = {
|
|
|
2605
2696
|
restoreOriginalSecondaryLabel() {
|
|
2606
2697
|
if (!this.nodes.secondaryLabelEl) return;
|
|
2607
2698
|
let e = this.params.secondaryLabel;
|
|
2608
|
-
this.nodes.secondaryLabelEl.innerHTML = e ?
|
|
2699
|
+
this.nodes.secondaryLabelEl.innerHTML = e ? Ui(e) : "", this.nodes.secondaryLabelEl.style.display = e ? "" : "none";
|
|
2609
2700
|
}
|
|
2610
2701
|
updateIcon(e) {
|
|
2611
2702
|
!this.nodes.icon || !e || (this.nodes.icon.innerHTML = e);
|
|
@@ -2614,7 +2705,7 @@ var W = {
|
|
|
2614
2705
|
!this.nodes.titleEl || e.title === void 0 || (this.nodes.titleEl.textContent = e.title);
|
|
2615
2706
|
}
|
|
2616
2707
|
updateSecondaryLabel(e) {
|
|
2617
|
-
this.nodes.secondaryLabelEl && (this.nodes.secondaryLabelEl.innerHTML = e ?
|
|
2708
|
+
this.nodes.secondaryLabelEl && (this.nodes.secondaryLabelEl.innerHTML = e ? Ui(e) : "", this.nodes.secondaryLabelEl.style.display = e ? "" : "none");
|
|
2618
2709
|
}
|
|
2619
2710
|
disableConfirmationMode() {
|
|
2620
2711
|
this.nodes.root !== null && (this.setConfirmation(null), this.confirmationState = null, this.disableSpecialHoverAndFocusBehavior());
|
|
@@ -2637,16 +2728,16 @@ var W = {
|
|
|
2637
2728
|
getIconElement() {
|
|
2638
2729
|
return this.nodes.icon;
|
|
2639
2730
|
}
|
|
2640
|
-
},
|
|
2731
|
+
}, J = {
|
|
2641
2732
|
container: "py-1.5 max-h-5 overflow-hidden",
|
|
2642
2733
|
containerHidden: "opacity-0 max-h-0! py-0!",
|
|
2643
2734
|
line: "h-px w-full bg-popover-border/60"
|
|
2644
|
-
},
|
|
2735
|
+
}, Xi = {
|
|
2645
2736
|
container: "px-1 py-0 max-h-none",
|
|
2646
2737
|
line: "h-full w-px",
|
|
2647
2738
|
nestedContainer: "py-1 px-[3px]",
|
|
2648
2739
|
nestedLine: "w-full h-px"
|
|
2649
|
-
},
|
|
2740
|
+
}, Zi = class extends qi {
|
|
2650
2741
|
constructor(e) {
|
|
2651
2742
|
var t, n;
|
|
2652
2743
|
super(), this.nodes = {
|
|
@@ -2663,11 +2754,11 @@ var W = {
|
|
|
2663
2754
|
this.nodes.root.className = e ? n : t, e ? this.nodes.root.setAttribute(a.hidden, "true") : this.nodes.root.removeAttribute(a.hidden);
|
|
2664
2755
|
}
|
|
2665
2756
|
getContainerClass(e) {
|
|
2666
|
-
let t =
|
|
2667
|
-
return this.isNestedInline ? r(t,
|
|
2757
|
+
let t = J.container;
|
|
2758
|
+
return this.isNestedInline ? r(t, Xi.nestedContainer, e && J.containerHidden) : this.isInline ? r(t, Xi.container, e && J.containerHidden) : r(t, e && J.containerHidden);
|
|
2668
2759
|
}
|
|
2669
2760
|
getLineClass() {
|
|
2670
|
-
return this.isNestedInline ? r(
|
|
2761
|
+
return this.isNestedInline ? r(J.line, Xi.nestedLine) : this.isInline ? r(J.line, Xi.line) : J.line;
|
|
2671
2762
|
}
|
|
2672
2763
|
createRootElement() {
|
|
2673
2764
|
let e = document.createElement("div");
|
|
@@ -2675,10 +2766,10 @@ var W = {
|
|
|
2675
2766
|
let t = document.createElement("div");
|
|
2676
2767
|
return t.className = this.getLineClass(), t.setAttribute(a.popoverItemSeparatorLine, ""), e.appendChild(t), this.nodes.line = t, e;
|
|
2677
2768
|
}
|
|
2678
|
-
},
|
|
2769
|
+
}, Qi = {
|
|
2679
2770
|
root: "",
|
|
2680
2771
|
rootHidden: "hidden"
|
|
2681
|
-
},
|
|
2772
|
+
}, $i = { root: "flex items-center" }, Y = class extends qi {
|
|
2682
2773
|
constructor(e, t) {
|
|
2683
2774
|
var n;
|
|
2684
2775
|
super(e), this.nodes = { root: null }, this.isHidden = !1, this.isInline = (n = t == null ? void 0 : t.isInline) == null ? !1 : n, this.nodes.root = this.createRootElement(e, t);
|
|
@@ -2695,12 +2786,12 @@ var W = {
|
|
|
2695
2786
|
return Array.from(e);
|
|
2696
2787
|
}
|
|
2697
2788
|
updateRootClasses() {
|
|
2698
|
-
this.nodes.root && (this.nodes.root.className = r(
|
|
2789
|
+
this.nodes.root && (this.nodes.root.className = r(Qi.root, this.isInline && $i.root, this.isHidden && Qi.rootHidden));
|
|
2699
2790
|
}
|
|
2700
2791
|
createRootElement(e, t) {
|
|
2701
2792
|
var i;
|
|
2702
2793
|
let o = document.createElement("div");
|
|
2703
|
-
if (o.className = r(
|
|
2794
|
+
if (o.className = r(Qi.root, this.isInline && $i.root), o.setAttribute(a.popoverItemHtml, ""), o.setAttribute("data-blok-testid", "popover-item-html"), e.name && o.setAttribute("data-blok-item-name", e.name), o.appendChild(e.element), e.hint !== void 0 && (t == null || (i = t.hint) == null ? void 0 : i.enabled) !== !1) {
|
|
2704
2795
|
var s, c;
|
|
2705
2796
|
this.addHint(o, n(n({}, e.hint), {}, {
|
|
2706
2797
|
position: (t == null || (s = t.hint) == null ? void 0 : s.position) || "right",
|
|
@@ -2709,11 +2800,11 @@ var W = {
|
|
|
2709
2800
|
}
|
|
2710
2801
|
return o;
|
|
2711
2802
|
}
|
|
2712
|
-
},
|
|
2803
|
+
}, ea = {
|
|
2713
2804
|
wrapper: "bg-search-input-bg border border-search-input-border rounded-lg px-2 py-0.5 grid grid-cols-[auto_1fr] grid-rows-[auto] focus-within:border-search-input-focus-border focus-within:shadow-[0_0_0_2px_rgba(35,131,226,0.15)]",
|
|
2714
2805
|
icon: "w-6 h-6 flex items-center justify-center mr-1.5 [&_svg]:w-4 [&_svg]:h-4 [&_svg]:text-gray-text",
|
|
2715
2806
|
input: "text-sm outline-hidden font-medium font-inherit border-0 bg-transparent m-0 p-0 leading-[20px] min-w-[calc(100%-(--spacing(6))-6px)] text-text-primary placeholder:text-gray-text/80 placeholder:font-normal"
|
|
2716
|
-
},
|
|
2807
|
+
}, ta = (e, t) => {
|
|
2717
2808
|
if (e.length === 0) return t.length;
|
|
2718
2809
|
if (t.length === 0) return e.length;
|
|
2719
2810
|
let n = Array.from({ length: t.length + 1 }, (e, t) => t), r = Array(t.length + 1);
|
|
@@ -2726,37 +2817,37 @@ var W = {
|
|
|
2726
2817
|
n.splice(0, n.length, ...r);
|
|
2727
2818
|
}
|
|
2728
2819
|
return n[t.length];
|
|
2729
|
-
},
|
|
2820
|
+
}, na = (e, t) => [...e].reduce((e, n) => e < t.length && n === t[e] ? e + 1 : e, 0) === t.length, ra = (e, t) => [...e].reduce((n, r, i) => {
|
|
2730
2821
|
let a = i === 0 || e[i - 1] === " " || e[i - 1] === "-" || e[i - 1] === "_";
|
|
2731
2822
|
return n < t.length && a && r === t[n] ? n + 1 : n;
|
|
2732
|
-
}, 0) === t.length,
|
|
2823
|
+
}, 0) === t.length, ia = (e, t) => {
|
|
2733
2824
|
if (e === t) return 100;
|
|
2734
2825
|
if (e.startsWith(t)) return 90;
|
|
2735
2826
|
if (e.includes(t)) return 75;
|
|
2736
|
-
if (t.length >= 2 &&
|
|
2737
|
-
if (t.length >= 2 &&
|
|
2827
|
+
if (t.length >= 2 && ra(e, t)) return 55;
|
|
2828
|
+
if (t.length >= 2 && na(e, t)) return 35;
|
|
2738
2829
|
if (t.length >= 3) {
|
|
2739
2830
|
let n = Math.floor(t.length / 3);
|
|
2740
|
-
if (
|
|
2831
|
+
if (ta(e, t) <= n) return 15;
|
|
2741
2832
|
}
|
|
2742
2833
|
return 0;
|
|
2743
|
-
},
|
|
2834
|
+
}, aa = (e, t) => {
|
|
2744
2835
|
if (t === "") return 100;
|
|
2745
2836
|
let n = t.toLowerCase(), r = [];
|
|
2746
2837
|
if (e.title !== void 0 && r.push(e.title.toLowerCase()), e.englishTitle !== void 0 && r.push(e.englishTitle.toLowerCase()), e.searchTerms !== void 0) for (let t of e.searchTerms) r.push(t.toLowerCase());
|
|
2747
2838
|
return r.reduce((e, t) => {
|
|
2748
|
-
let r =
|
|
2839
|
+
let r = ia(t, n);
|
|
2749
2840
|
return r > e ? r : e;
|
|
2750
2841
|
}, 0);
|
|
2751
|
-
},
|
|
2842
|
+
}, oa = /* @__PURE__ */ function(e) {
|
|
2752
2843
|
return e.Search = "search", e;
|
|
2753
|
-
}({}),
|
|
2844
|
+
}({}), sa = class extends Re {
|
|
2754
2845
|
constructor({ items: e, placeholder: t }) {
|
|
2755
2846
|
super(), this.searchQuery = "", this.handleValueChange = () => {
|
|
2756
2847
|
this.applySearch(this.input.value);
|
|
2757
|
-
}, this.listeners = new Oe(), this.items = e, this.wrapper = T.make("div",
|
|
2758
|
-
let n = T.make("div",
|
|
2759
|
-
this.input = T.make("input",
|
|
2848
|
+
}, this.listeners = new Oe(), this.items = e, this.wrapper = T.make("div", ea.wrapper), this.wrapper.setAttribute("data-blok-testid", "popover-search-field");
|
|
2849
|
+
let n = T.make("div", ea.icon, { innerHTML: pr });
|
|
2850
|
+
this.input = T.make("input", ea.input, {
|
|
2760
2851
|
type: "search",
|
|
2761
2852
|
placeholder: t,
|
|
2762
2853
|
tabIndex: -1
|
|
@@ -2779,7 +2870,7 @@ var W = {
|
|
|
2779
2870
|
this.input.value = "";
|
|
2780
2871
|
}
|
|
2781
2872
|
applySearch(e) {
|
|
2782
|
-
this.searchQuery !== e && (this.searchQuery = e, this.emit(
|
|
2873
|
+
this.searchQuery !== e && (this.searchQuery = e, this.emit(oa.Search, {
|
|
2783
2874
|
query: e,
|
|
2784
2875
|
items: this.foundItems
|
|
2785
2876
|
}));
|
|
@@ -2807,10 +2898,10 @@ var W = {
|
|
|
2807
2898
|
get foundItems() {
|
|
2808
2899
|
return this.items.map((e) => ({
|
|
2809
2900
|
item: e,
|
|
2810
|
-
score:
|
|
2901
|
+
score: aa(e, this.searchQuery)
|
|
2811
2902
|
})).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score).map(({ item: e }) => e);
|
|
2812
2903
|
}
|
|
2813
|
-
},
|
|
2904
|
+
}, ca, la = class e {
|
|
2814
2905
|
constructor() {
|
|
2815
2906
|
this.stack = [], this.boundPointerDown = null;
|
|
2816
2907
|
}
|
|
@@ -2862,7 +2953,7 @@ var W = {
|
|
|
2862
2953
|
t !== -1 && this.stack.splice(t, 1);
|
|
2863
2954
|
}
|
|
2864
2955
|
};
|
|
2865
|
-
|
|
2956
|
+
ca = la, ca._instance = null;
|
|
2866
2957
|
//#endregion
|
|
2867
2958
|
//#region src/components/utils/popover/popover.const.ts
|
|
2868
2959
|
var X = {
|
|
@@ -2872,17 +2963,17 @@ var X = {
|
|
|
2872
2963
|
popoverOverlay: "hidden bg-dark",
|
|
2873
2964
|
items: "flex-1 min-h-0 overflow-y-auto overscroll-contain pb-1.5",
|
|
2874
2965
|
scrollHaze: "absolute inset-x-0 h-6 pointer-events-none z-1 transition-opacity duration-300 ease-in-out"
|
|
2875
|
-
},
|
|
2966
|
+
}, ua = {
|
|
2876
2967
|
popover: "relative",
|
|
2877
2968
|
popoverContainer: "flex-row top-0 min-w-max w-max p-1 mobile:absolute",
|
|
2878
2969
|
popoverContainerOpened: "pb-1.5"
|
|
2879
|
-
},
|
|
2970
|
+
}, da = (e) => `level-${e}`, Z = /* @__PURE__ */ function(e) {
|
|
2880
2971
|
return e.NestingLevel = "--nesting-level", e.PopoverHeight = "--popover-height", e.InlinePopoverWidth = "--inline-popover-width", e.PopoverTop = "--popover-top", e.PopoverLeft = "--popover-left", e.TriggerItemLeft = "--trigger-item-left", e.TriggerItemTop = "--trigger-item-top", e;
|
|
2881
2972
|
}({}), Q = /* @__PURE__ */ function(e) {
|
|
2882
2973
|
return e.Closed = "closed", e.ClosedOnActivate = "closed-on-activate", e;
|
|
2883
|
-
}({}),
|
|
2974
|
+
}({}), fa = class extends Re {
|
|
2884
2975
|
get itemsDefault() {
|
|
2885
|
-
return this.items.filter((e) => e instanceof
|
|
2976
|
+
return this.items.filter((e) => e instanceof q);
|
|
2886
2977
|
}
|
|
2887
2978
|
constructor(e, t = {}) {
|
|
2888
2979
|
super(), this.params = e, this.itemsRenderParams = t, this.listeners = new Oe(), this.messages = {
|
|
@@ -2905,15 +2996,15 @@ var X = {
|
|
|
2905
2996
|
let n = this.nodes.popover;
|
|
2906
2997
|
n !== null && !n.isConnected && document.body.appendChild(n);
|
|
2907
2998
|
let i = ((e = this.params.nestingLevel) == null ? 0 : e) === 0, o = this.params.trigger !== void 0;
|
|
2908
|
-
n !== null && i && o &&
|
|
2999
|
+
n !== null && i && o && I() && yt(n), this.nodes.popover.setAttribute(a.popoverOpened, "true"), this.nodes.popoverContainer.className = r(this.nodes.popoverContainer.className, X.popoverContainerOpened), this.itemsDefault.forEach((e) => this.refreshItemActiveState(e)), this.search !== void 0 && this.search.focus(), this.nodes.scrollHazeTop.style.transition = "none", this.nodes.scrollHazeBottom.style.transition = "none", this.updateScrollHazes(), requestAnimationFrame(() => {
|
|
2909
3000
|
this.nodes.scrollHazeTop.style.transition = "", this.nodes.scrollHazeBottom.style.transition = "";
|
|
2910
3001
|
});
|
|
2911
3002
|
let { trigger: s } = this.params;
|
|
2912
|
-
((t = this.params.nestingLevel) == null ? 0 : t) === 0 && s !== void 0 &&
|
|
3003
|
+
((t = this.params.nestingLevel) == null ? 0 : t) === 0 && s !== void 0 && la.instance.register(this, s);
|
|
2913
3004
|
}
|
|
2914
3005
|
hide() {
|
|
2915
3006
|
let e = this.nodes.popover;
|
|
2916
|
-
e !== null &&
|
|
3007
|
+
e !== null && I() && xt(e) && bt(e), this.nodes.popover.removeAttribute(a.popoverOpened), this.nodes.popover.removeAttribute(a.popoverOpenTop), this.nodes.popover.removeAttribute(a.popoverOpenLeft), this.nodes.popoverContainer.className = X.popoverContainer, this.itemsDefault.forEach((e) => e.reset()), this.nodes.scrollHazeTop.style.opacity = "0", this.nodes.scrollHazeBottom.style.opacity = "0", this.search !== void 0 && this.search.clear(), la.instance.unregister(this), this.emit(Q.Closed);
|
|
2917
3008
|
}
|
|
2918
3009
|
destroy() {
|
|
2919
3010
|
var e, t;
|
|
@@ -2954,21 +3045,21 @@ var X = {
|
|
|
2954
3045
|
buildItems(e) {
|
|
2955
3046
|
return e.map((e) => {
|
|
2956
3047
|
switch (e.type) {
|
|
2957
|
-
case
|
|
2958
|
-
case
|
|
2959
|
-
case
|
|
2960
|
-
case void 0: return new
|
|
3048
|
+
case M.Separator: return new Zi(this.itemsRenderParams[M.Separator]);
|
|
3049
|
+
case M.Html: return new Y(e, this.itemsRenderParams[M.Html]);
|
|
3050
|
+
case M.Default:
|
|
3051
|
+
case void 0: return new q(e, this.itemsRenderParams[M.Default]);
|
|
2961
3052
|
}
|
|
2962
3053
|
});
|
|
2963
3054
|
}
|
|
2964
3055
|
getTargetItem(e) {
|
|
2965
|
-
return this.items.filter((e) => e instanceof
|
|
3056
|
+
return this.items.filter((e) => e instanceof q || e instanceof Y).find((t) => {
|
|
2966
3057
|
let n = t.getElement();
|
|
2967
3058
|
return n === null ? !1 : e.composedPath().includes(n);
|
|
2968
3059
|
});
|
|
2969
3060
|
}
|
|
2970
3061
|
handleItemClick(e) {
|
|
2971
|
-
if (!(e instanceof
|
|
3062
|
+
if (!(e instanceof q && e.isDisabled)) {
|
|
2972
3063
|
if (e.hasChildren) {
|
|
2973
3064
|
this.showNestedItems(e), this.callHandleClickIfPresent(e);
|
|
2974
3065
|
return;
|
|
@@ -2981,7 +3072,7 @@ var X = {
|
|
|
2981
3072
|
t !== void 0 && this.handleItemClick(t);
|
|
2982
3073
|
}
|
|
2983
3074
|
toggleItemActivenessIfNeeded(e) {
|
|
2984
|
-
if (!(e instanceof
|
|
3075
|
+
if (!(e instanceof q) || (e.toggle === !0 && e.toggleActive(), typeof e.toggle != "string")) return;
|
|
2985
3076
|
let t = this.itemsDefault.filter((t) => t.toggle === e.toggle);
|
|
2986
3077
|
if (t.length === 1) {
|
|
2987
3078
|
e.toggleActive();
|
|
@@ -2992,7 +3083,7 @@ var X = {
|
|
|
2992
3083
|
});
|
|
2993
3084
|
}
|
|
2994
3085
|
refreshItemActiveState(e) {
|
|
2995
|
-
e instanceof
|
|
3086
|
+
e instanceof q && e.toggle === void 0 && e.toggleActive(e.isActive);
|
|
2996
3087
|
}
|
|
2997
3088
|
callHandleClickIfPresent(e) {
|
|
2998
3089
|
"handleClick" in e && typeof e.handleClick == "function" && e.handleClick();
|
|
@@ -3060,7 +3151,7 @@ var X = {
|
|
|
3060
3151
|
};
|
|
3061
3152
|
//#endregion
|
|
3062
3153
|
//#region src/components/utils/popover/popover-nested-position.ts
|
|
3063
|
-
function
|
|
3154
|
+
function pa(e) {
|
|
3064
3155
|
let { parentRect: t, nestedWidth: n, viewportWidth: r, parentPrefersLeft: i, overlap: a = 4 } = e, o = Math.max(0, t.left), s = Math.max(0, r - t.right + a), c = n <= o, l = n <= s;
|
|
3065
3156
|
if (i) {
|
|
3066
3157
|
if (c) return { openLeft: !0 };
|
|
@@ -3071,16 +3162,16 @@ function qi(e) {
|
|
|
3071
3162
|
}
|
|
3072
3163
|
return { openLeft: o > s };
|
|
3073
3164
|
}
|
|
3074
|
-
function
|
|
3165
|
+
function ma(e) {
|
|
3075
3166
|
let { desiredTop: t, nestedHeight: n, viewportHeight: r, margin: i = 8 } = e, a = i, o = r - n - i;
|
|
3076
3167
|
return o < a ? { top: a } : { top: Math.max(a, Math.min(o, t)) };
|
|
3077
3168
|
}
|
|
3078
3169
|
//#endregion
|
|
3079
3170
|
//#region src/components/utils/popover/popover-position.ts
|
|
3080
|
-
function
|
|
3171
|
+
function ha(e, t, n) {
|
|
3081
3172
|
return e <= t ? !1 : e <= n;
|
|
3082
3173
|
}
|
|
3083
|
-
function
|
|
3174
|
+
function ga(e) {
|
|
3084
3175
|
var t;
|
|
3085
3176
|
let { anchor: n, popoverSize: r, scopeBounds: i, viewportSize: a, scrollOffset: o, offset: s = 8, leftAlignRect: c, placeLeftOfAnchor: l = !1, viewportMargin: u = 0 } = e, d = Math.min(a.height, i.bottom), f = Math.max(0, i.top), p = Math.min(a.width, i.right), m = Math.max(0, i.left), h = i.top + o.y;
|
|
3086
3177
|
if (l) {
|
|
@@ -3092,7 +3183,7 @@ function Xi(e) {
|
|
|
3092
3183
|
openLeft: !0
|
|
3093
3184
|
};
|
|
3094
3185
|
}
|
|
3095
|
-
let g = d - n.bottom - s, _ = n.top - s - f, v =
|
|
3186
|
+
let g = d - n.bottom - s, _ = n.top - s - f, v = ha(r.height, g, _), y = v ? n.top - s - r.height + o.y : n.bottom + s + o.y, ee = y < h ? h : y, b = ((t = c == null ? void 0 : c.left) == null ? n.left : t) + o.x, te = n.right + o.x, ne = p + o.x - b, re = te - m - o.x, x = ha(r.width, ne, re), S = x ? Math.max(m + o.x, n.right - r.width + o.x) : b;
|
|
3096
3187
|
return {
|
|
3097
3188
|
top: ee,
|
|
3098
3189
|
left: S + r.width > p + o.x ? Math.max(m + o.x, p + o.x - r.width) : S,
|
|
@@ -3105,11 +3196,11 @@ function Xi(e) {
|
|
|
3105
3196
|
var $ = {
|
|
3106
3197
|
x: null,
|
|
3107
3198
|
y: null
|
|
3108
|
-
},
|
|
3109
|
-
typeof document < "u" && !document[
|
|
3199
|
+
}, _a = "__blokPopoverPointerTracker__";
|
|
3200
|
+
typeof document < "u" && !document[_a] && (document.addEventListener("mousemove", (e) => {
|
|
3110
3201
|
$.x = e.clientX, $.y = e.clientY;
|
|
3111
|
-
}, { capture: !0 }), document[
|
|
3112
|
-
var
|
|
3202
|
+
}, { capture: !0 }), document[_a] = !0);
|
|
3203
|
+
var va = class e extends fa {
|
|
3113
3204
|
setLeftAlignElement(e) {
|
|
3114
3205
|
this.leftAlignElement = e;
|
|
3115
3206
|
}
|
|
@@ -3127,7 +3218,7 @@ var Qi = class e extends Ki {
|
|
|
3127
3218
|
this.nodes.contextLabel !== void 0 && (n ? (this.nodes.contextLabel.removeAttribute(a.hidden), this.nodes.contextLabel.classList.remove("hidden")) : (this.nodes.contextLabel.setAttribute(a.hidden, "true"), this.nodes.contextLabel.classList.add("hidden")));
|
|
3128
3219
|
let i = !n && e.promotedItems.length > 0 ? this.deduplicateAgainstPromoted(r, e.promotedItems) : r, o = i.length === 0 && e.promotedItems.length === 0;
|
|
3129
3220
|
this.items.forEach((e) => {
|
|
3130
|
-
let t = e instanceof
|
|
3221
|
+
let t = e instanceof q, r = e instanceof Zi || e instanceof Y, a = t ? !i.includes(e) || e.name !== void 0 && this.isNamePermanentlyHidden(e.name) : r && (o || !n);
|
|
3131
3222
|
e.toggleHidden(a);
|
|
3132
3223
|
}), this._size = void 0, !n && i.length > 0 ? this.reorderItemsByRank(i) : n && this.originalItemOrder !== void 0 && this.restoreOriginalItemOrder();
|
|
3133
3224
|
for (let e of this.promotedSeparators) e.remove();
|
|
@@ -3175,9 +3266,9 @@ var Qi = class e extends Ki {
|
|
|
3175
3266
|
}
|
|
3176
3267
|
if (e.leftAlignElement && (this.leftAlignElement = e.leftAlignElement), e.placeLeftOfAnchor === !0 && (this.placeLeftOfAnchor = !0), typeof e.viewportMargin == "number" && (this.viewportMargin = e.viewportMargin), e.nestingLevel !== void 0 && (this.nestingLevel = e.nestingLevel), this.nestingLevel > 0 && this.nodes.popover.setAttribute(a.nested, "true"), e.scopeElement !== void 0 && (this.scopeElement = e.scopeElement), this.nodes.popoverContainer !== null && (this.listeners.on(this.nodes.popoverContainer, "mouseover", (e) => this.handleHover(e)), this.listeners.on(this.nodes.popoverContainer, "mouseleave", (e) => this.handleMouseLeave(e))), e.searchable && this.addSearch(), e.flippable === !1) return;
|
|
3177
3268
|
let r = e.flipper;
|
|
3178
|
-
r === void 0 ? this.flipper = new
|
|
3269
|
+
r === void 0 ? this.flipper = new Ut({
|
|
3179
3270
|
items: this.flippableElements,
|
|
3180
|
-
focusedItemClass:
|
|
3271
|
+
focusedItemClass: K.focused,
|
|
3181
3272
|
allowedKeys: [
|
|
3182
3273
|
s.TAB,
|
|
3183
3274
|
s.UP,
|
|
@@ -3215,7 +3306,7 @@ var Qi = class e extends Ki {
|
|
|
3215
3306
|
this.nodes.popover.style.setProperty("--width", t + "px");
|
|
3216
3307
|
}
|
|
3217
3308
|
if (!this.trigger) {
|
|
3218
|
-
let { openTop: e, openLeft: t } =
|
|
3309
|
+
let { openTop: e, openLeft: t } = ga({
|
|
3219
3310
|
anchor: this.nodes.popoverContainer.getBoundingClientRect(),
|
|
3220
3311
|
popoverSize: n,
|
|
3221
3312
|
scopeBounds: this.scopeElement.getBoundingClientRect(),
|
|
@@ -3259,7 +3350,7 @@ var Qi = class e extends Ki {
|
|
|
3259
3350
|
openLeft: !1
|
|
3260
3351
|
};
|
|
3261
3352
|
let o = n === void 0 ? (t = this.leftAlignElement) == null ? void 0 : t.getBoundingClientRect() : void 0;
|
|
3262
|
-
return
|
|
3353
|
+
return ga({
|
|
3263
3354
|
anchor: a,
|
|
3264
3355
|
popoverSize: this.size,
|
|
3265
3356
|
scopeBounds: this.scopeElement.getBoundingClientRect(),
|
|
@@ -3327,7 +3418,7 @@ var Qi = class e extends Ki {
|
|
|
3327
3418
|
t instanceof Node && this.nestedPopover !== void 0 && this.nestedPopover !== null && this.nestedPopover.hasNode(t) || (this.destroyNestedPopoverIfExists(!1), this.previouslyHoveredItem = null);
|
|
3328
3419
|
}
|
|
3329
3420
|
getTargetItem(e) {
|
|
3330
|
-
return (this.promotedItemCache === null ? this.items : [...this.items, ...this.promotedItemCache.items]).filter((e) => e instanceof
|
|
3421
|
+
return (this.promotedItemCache === null ? this.items : [...this.items, ...this.promotedItemCache.items]).filter((e) => e instanceof q || e instanceof Y).find((t) => {
|
|
3331
3422
|
let n = t.getElement();
|
|
3332
3423
|
return n === null ? !1 : e.composedPath().includes(n);
|
|
3333
3424
|
});
|
|
@@ -3383,7 +3474,7 @@ var Qi = class e extends Ki {
|
|
|
3383
3474
|
this.nodes.popover.hasAttribute(a.popoverOpenTop);
|
|
3384
3475
|
let d = this.nodes.popover.hasAttribute(a.popoverOpenLeft);
|
|
3385
3476
|
c.style.position = "absolute";
|
|
3386
|
-
let f = this.nodes.popoverContainer.offsetWidth, p = this.params.width === void 0 || this.params.width === "auto" ? `${f}px` : "var(--width)", m = this.nodes.popoverContainer.getBoundingClientRect(), h = (n = (r = this.nestedPopover) == null ? void 0 : r.size.width) == null ? f : n, { openLeft: g } =
|
|
3477
|
+
let f = this.nodes.popoverContainer.offsetWidth, p = this.params.width === void 0 || this.params.width === "auto" ? `${f}px` : "var(--width)", m = this.nodes.popoverContainer.getBoundingClientRect(), h = (n = (r = this.nestedPopover) == null ? void 0 : r.size.width) == null ? f : n, { openLeft: g } = pa({
|
|
3387
3478
|
parentRect: {
|
|
3388
3479
|
left: m.left,
|
|
3389
3480
|
right: m.right,
|
|
@@ -3396,7 +3487,7 @@ var Qi = class e extends Ki {
|
|
|
3396
3487
|
g ? u.style.setProperty(Z.PopoverLeft, `calc(-1 * (var(--nesting-level) + 1) * ${p} + 100%)`) : u.style.setProperty(Z.PopoverLeft, `calc(var(--nesting-level) * (${p} - var(--nested-popover-overlap)))`);
|
|
3397
3488
|
let _ = t.getElement(), v = _ == null ? void 0 : _.getBoundingClientRect(), y = (i = (o = this.nestedPopover) == null ? void 0 : o.size.height) == null ? 0 : i;
|
|
3398
3489
|
if (v && y > 0) {
|
|
3399
|
-
let { top: e } =
|
|
3490
|
+
let { top: e } = ma({
|
|
3400
3491
|
desiredTop: v.top + v.height / 2 - y / 2,
|
|
3401
3492
|
nestedHeight: y,
|
|
3402
3493
|
viewportHeight: window.innerHeight
|
|
@@ -3413,7 +3504,7 @@ var Qi = class e extends Ki {
|
|
|
3413
3504
|
};
|
|
3414
3505
|
if (this.nodes.popover === null) return t;
|
|
3415
3506
|
let n = this.nodes.popover.cloneNode(!0);
|
|
3416
|
-
n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "-1000px",
|
|
3507
|
+
n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "-1000px", St(n), n.setAttribute(a.popoverOpened, "true"), (e = n.querySelector(`[${a.nested}]`)) == null || e.remove();
|
|
3417
3508
|
let i = n.querySelector(`[${a.popoverContainer}]`);
|
|
3418
3509
|
return i.className = r(i.className, X.popoverContainerOpened), document.body.appendChild(n), t.height = i.offsetHeight, t.width = i.offsetWidth, n.remove(), this._size = t, t;
|
|
3419
3510
|
}
|
|
@@ -3424,11 +3515,11 @@ var Qi = class e extends Ki {
|
|
|
3424
3515
|
return this.items.flatMap((e) => this.getFlippableElementsForItem(e)).filter((e) => e != null);
|
|
3425
3516
|
}
|
|
3426
3517
|
getFlippableElementsForItem(e) {
|
|
3427
|
-
if (e instanceof
|
|
3518
|
+
if (e instanceof Y) {
|
|
3428
3519
|
let t = e.getElement();
|
|
3429
3520
|
return t ? [t] : [];
|
|
3430
3521
|
}
|
|
3431
|
-
if (!(e instanceof
|
|
3522
|
+
if (!(e instanceof q) || e.isDisabled) return [];
|
|
3432
3523
|
let t = e.getElement();
|
|
3433
3524
|
return t ? [t] : [];
|
|
3434
3525
|
}
|
|
@@ -3442,15 +3533,15 @@ var Qi = class e extends Ki {
|
|
|
3442
3533
|
collectPromotedChildren(e, t, n) {
|
|
3443
3534
|
for (let a of e) {
|
|
3444
3535
|
var r, i;
|
|
3445
|
-
if (!(a instanceof
|
|
3536
|
+
if (!(a instanceof q) || !a.hasChildren) continue;
|
|
3446
3537
|
let e = (r = (i = a.title) == null ? a.name : i) == null ? "" : r, o = [...t, e];
|
|
3447
3538
|
this.collectDefaultChildren(a.children, o, n);
|
|
3448
3539
|
}
|
|
3449
3540
|
}
|
|
3450
3541
|
collectDefaultChildren(e, t, n) {
|
|
3451
3542
|
for (let r of e) {
|
|
3452
|
-
if (r.type !== void 0 && r.type !==
|
|
3453
|
-
let e = new
|
|
3543
|
+
if (r.type !== void 0 && r.type !== M.Default) continue;
|
|
3544
|
+
let e = new q(r);
|
|
3454
3545
|
if (e.name !== void 0 && this.isNamePermanentlyHidden(e.name)) {
|
|
3455
3546
|
e.destroy();
|
|
3456
3547
|
continue;
|
|
@@ -3484,13 +3575,13 @@ var Qi = class e extends Ki {
|
|
|
3484
3575
|
deduplicateAgainstPromoted(e, t) {
|
|
3485
3576
|
let n = /* @__PURE__ */ new Set();
|
|
3486
3577
|
for (let { item: e } of t) e.title !== void 0 && n.add(e.title.toLowerCase());
|
|
3487
|
-
return e.filter((e) => !(e instanceof
|
|
3578
|
+
return e.filter((e) => !(e instanceof q) || e.title === void 0 ? !0 : !n.has(e.title.toLowerCase()));
|
|
3488
3579
|
}
|
|
3489
3580
|
addSearch() {
|
|
3490
|
-
this.search = new
|
|
3581
|
+
this.search = new sa({
|
|
3491
3582
|
items: this.itemsDefault,
|
|
3492
3583
|
placeholder: this.messages.search
|
|
3493
|
-
}), this.search.on(
|
|
3584
|
+
}), this.search.on(oa.Search, (e) => {
|
|
3494
3585
|
if (e.query === "") {
|
|
3495
3586
|
this.cleanupPromotedItems(), this.onSearch({
|
|
3496
3587
|
query: e.query,
|
|
@@ -3504,7 +3595,7 @@ var Qi = class e extends Ki {
|
|
|
3504
3595
|
var r;
|
|
3505
3596
|
return {
|
|
3506
3597
|
item: n,
|
|
3507
|
-
score:
|
|
3598
|
+
score: aa(n, e.query),
|
|
3508
3599
|
chain: (r = t.get(n)) == null ? [] : r
|
|
3509
3600
|
};
|
|
3510
3601
|
}).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score);
|
|
@@ -3529,12 +3620,12 @@ var Qi = class e extends Ki {
|
|
|
3529
3620
|
this.promotedItemCache === null && (this.promotedItemCache = this.buildPromotedItemCache());
|
|
3530
3621
|
let t = this.itemsDefault.map((t) => ({
|
|
3531
3622
|
item: t,
|
|
3532
|
-
score:
|
|
3623
|
+
score: aa(t, e)
|
|
3533
3624
|
})).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score), { parentChains: n } = this.promotedItemCache, r = this.promotedItemCache.items.map((t) => {
|
|
3534
3625
|
var r;
|
|
3535
3626
|
return {
|
|
3536
3627
|
item: t,
|
|
3537
|
-
score:
|
|
3628
|
+
score: aa(t, e),
|
|
3538
3629
|
chain: (r = n.get(t)) == null ? [] : r
|
|
3539
3630
|
};
|
|
3540
3631
|
}).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score);
|
|
@@ -3559,28 +3650,28 @@ var Qi = class e extends Ki {
|
|
|
3559
3650
|
this.originalItemOrder = void 0;
|
|
3560
3651
|
}
|
|
3561
3652
|
}
|
|
3562
|
-
},
|
|
3653
|
+
}, ya = (e) => {
|
|
3563
3654
|
e.style.color = "white", e.style.fontWeight = "500";
|
|
3564
|
-
},
|
|
3655
|
+
}, ba = function(e) {
|
|
3565
3656
|
let t = T.make("div");
|
|
3566
3657
|
return t.style.display = "flex", t.style.flexDirection = "column", t.style.gap = "4px", t.style.color = "rgba(255, 255, 255, 0.55)", e.forEach((e) => {
|
|
3567
3658
|
let n = T.make("div");
|
|
3568
3659
|
if (Array.isArray(e)) e.forEach((e) => {
|
|
3569
3660
|
if (e.highlight) {
|
|
3570
3661
|
let t = T.make("span", null, { textContent: e.text });
|
|
3571
|
-
|
|
3662
|
+
ya(t), n.appendChild(t);
|
|
3572
3663
|
} else n.appendChild(document.createTextNode(e.text));
|
|
3573
3664
|
});
|
|
3574
3665
|
else {
|
|
3575
3666
|
let t = e.indexOf(" ");
|
|
3576
3667
|
if (t > 0) {
|
|
3577
3668
|
let r = e.substring(0, t), i = e.substring(t), a = T.make("span", null, { textContent: r });
|
|
3578
|
-
|
|
3669
|
+
ya(a), n.appendChild(a), n.appendChild(document.createTextNode(i));
|
|
3579
3670
|
} else n.appendChild(document.createTextNode(e));
|
|
3580
3671
|
}
|
|
3581
3672
|
t.appendChild(n);
|
|
3582
3673
|
}), t;
|
|
3583
|
-
},
|
|
3674
|
+
}, xa, Sa = class {
|
|
3584
3675
|
constructor({ api: e }) {
|
|
3585
3676
|
this.i18nAPI = e.i18n, this.blocksAPI = e.blocks, this.selectionAPI = e.selection, this.toolsAPI = e.tools, this.caretAPI = e.caret, this.i18nInstance = {
|
|
3586
3677
|
t: (e, t) => this.i18nAPI.t(e),
|
|
@@ -3589,7 +3680,7 @@ var Qi = class e extends Ki {
|
|
|
3589
3680
|
}
|
|
3590
3681
|
async render() {
|
|
3591
3682
|
var e = this;
|
|
3592
|
-
let t =
|
|
3683
|
+
let t = Xe.get();
|
|
3593
3684
|
if (t === null) return [];
|
|
3594
3685
|
let n = e.blocksAPI.getBlockByElement(t.anchorNode);
|
|
3595
3686
|
if (n === void 0) return [];
|
|
@@ -3628,10 +3719,10 @@ var Qi = class e extends Ki {
|
|
|
3628
3719
|
};
|
|
3629
3720
|
}
|
|
3630
3721
|
};
|
|
3631
|
-
|
|
3722
|
+
xa = Sa, xa.isInline = !0;
|
|
3632
3723
|
//#endregion
|
|
3633
3724
|
//#region src/tools/toggle/constants.ts
|
|
3634
|
-
var
|
|
3725
|
+
var Ca = "toggle", wa = "tools.toggle.placeholder", Ta = "tools.toggle.bodyPlaceholder", Ea = "tools.toggle.ariaLabelCollapse", Da = "tools.toggle.ariaLabelExpand", Oa = "outline-hidden py-[7px] mt-[2px] mb-px", ka = "outline-hidden pl-0.5 leading-[1.5] flex-1 min-w-0", Aa = "flex items-center", ja = "flex-shrink-0 p-[8px] flex items-center justify-center cursor-pointer select-none rounded can-hover:hover:bg-item-hover-bg transition-colors duration-200 ease-in-out focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none in-data-[blok-toggle-empty=true]:text-gray-text", Ma = Ii, Na = "hidden pl-7 pt-[8px] pb-[8px] text-gray-text leading-[1.5] cursor-pointer select-none", Pa = "pl-7", Fa = {
|
|
3635
3726
|
toggleOpen: "data-blok-toggle-open",
|
|
3636
3727
|
toggleArrow: "data-blok-toggle-arrow",
|
|
3637
3728
|
toggleContent: "data-blok-toggle-content",
|
|
@@ -3640,4 +3731,4 @@ var ra = "toggle", ia = "tools.toggle.placeholder", aa = "tools.toggle.bodyPlace
|
|
|
3640
3731
|
toggleEmpty: "data-blok-toggle-empty"
|
|
3641
3732
|
};
|
|
3642
3733
|
//#endregion
|
|
3643
|
-
export {
|
|
3734
|
+
export { ii as $, ze as $n, br as $t, tr as A, qt as An, ce as Ar, ji as At, Yr as B, Lt as Bn, _ as Br, Kr as Bt, la as C, V as Cn, ge as Cr, Ar as Ct, Mi as D, un as Dn, de as Dr, nr as Dt, K as E, ln as En, fe as Er, Nr as Et, ur as F, on as Fn, te as Fr, Hr as Ft, er as G, Nt as Gn, f as Gr, Wr as Gt, Li as H, It as Hn, u as Hr, fi as Ht, dr as I, cn as In, re as Ir, ir as It, Pi as J, N as Jn, c as Jr, pr as Jt, Fi as K, yt as Kn, l as Kr, sr as Kt, fr as L, Ut as Ln, b as Lr, cr as Lt, Gr as M, Gt as Mn, ae as Mr, Cr as Mt, Ci as N, an as Nn, ue as Nr, Tr as Nt, Ni as O, dn as On, oe as Or, rr as Ot, Qn as P, Xt as Pn, ne as Pr, wr as Pt, ei as Q, Xe as Qn, Er as Qt, Di as R, Vt as Rn, h as Rr, li as Rt, da as S, gn as Sn, ye as Sr, Oi as St, q as T, z as Tn, w as Tr, Mr as Tt, Pr as U, Pt as Un, p as Ur, lr as Ut, bi as V, Rt as Vn, ee as Vr, Fr as Vt, Ti as W, Ft as Wn, m as Wr, Or as Wt, Lr as X, et as Xn, o as Xr, di as Xt, qr as Y, ht as Yn, a as Yr, ui as Yt, Si as Z, M as Zn, or as Zt, fa as _, Zn as _n, De as _r, Dr as _t, Oa as a, ar as an, Ie as ar, Xr as at, X as b, _n as bn, xe as br, mi as bt, ka as c, $n as cn, Fe as cr, Vr as ct, Pa as d, _i as dn, D as dr, gr as dt, Rr as en, He as er, ti as et, Aa as f, Ri as fn, Ae as fr, _r as ft, va as g, Jn as gn, Ee as gr, kr as gt, ba as h, Gn as hn, Te as hr, Ur as ht, ja as i, Ir as in, Pe as ir, Qr as it, ci as j, Wt as jn, se as jr, si as jt, oi as k, Kt as kn, le as kr, yi as kt, wa as l, xr as ln, je as lr, mr as lt, Sa as m, Wn as mn, Oe as mr, yr as mt, Da as n, Br as nn, Ue as nr, ni as nt, Ta as o, Ai as on, Le as or, $r as ot, Ca as p, Kn as pn, ke as pr, vr as pt, ai as q, bt as qn, s as qr, wi as qt, Ma as r, Sr as rn, Re as rr, Zr as rt, Na as s, ki as sn, Ne as sr, xi as st, Ea as t, zr as tn, Be as tr, ri as tt, Fa as u, vi as un, Me as ur, hr as ut, Q as v, Xn as vn, we as vr, pi as vt, Y as w, B as wn, C as wr, jr as wt, ua as x, U as xn, Se as xr, gi as xt, Z as y, Bn as yn, T as yr, hi as yt, Jr as z, Bt as zn, g as zr, Ei as zt };
|