@stacksjs/stx 0.2.771 → 0.2.775
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/app-shell.d.ts +10 -0
- package/dist/app-shell.js +3 -0
- package/dist/chunk-02mqhdjh.js +2 -0
- package/dist/chunk-0b5kxf5j.js +3 -0
- package/dist/chunk-0jvrzpfs.js +2 -0
- package/dist/chunk-11mygkp2.js +2 -0
- package/dist/chunk-1tvb2stj.js +2 -0
- package/dist/{chunk-krdc3c87.js → chunk-20afyff6.js} +3 -3
- package/dist/chunk-21kkn27r.js +2 -0
- package/dist/chunk-26bk0d1q.js +2 -0
- package/dist/{chunk-p1mbbdwj.js → chunk-27rzdq3n.js} +2 -2
- package/dist/{chunk-s369wfsp.js → chunk-286yy223.js} +6 -6
- package/dist/{chunk-xaqtk05e.js → chunk-2gqhfge6.js} +2 -2
- package/dist/chunk-2vnhyter.js +2 -0
- package/dist/{chunk-4833k99b.js → chunk-2yxva96k.js} +2 -2
- package/dist/chunk-3b2yc1p4.js +2 -0
- package/dist/{chunk-e6ynacgc.js → chunk-3vj887s9.js} +2 -2
- package/dist/{chunk-477gjb2b.js → chunk-416jy1m5.js} +2 -2
- package/dist/{chunk-c9ygnsx5.js → chunk-42d8076j.js} +68 -68
- package/dist/chunk-47qestfz.js +2 -0
- package/dist/chunk-4kx7pw6x.js +2 -0
- package/dist/{chunk-x148cxrj.js → chunk-4wc5pc19.js} +4 -4
- package/dist/{chunk-f7h5ty84.js → chunk-56j217w9.js} +2 -2
- package/dist/{chunk-3csfmhg0.js → chunk-5emrarpf.js} +2 -2
- package/dist/{chunk-erjp2w63.js → chunk-5mng4x26.js} +5 -5
- package/dist/{chunk-bwzjjxnj.js → chunk-605b93pe.js} +4 -4
- package/dist/chunk-6r5ynphk.js +2 -0
- package/dist/{chunk-pqyhxpa6.js → chunk-70x35hkm.js} +5 -5
- package/dist/chunk-713az4kg.js +2 -0
- package/dist/{chunk-bwv5j7z3.js → chunk-73197ak9.js} +6 -6
- package/dist/{chunk-6sa5adg6.js → chunk-7gdwvnwc.js} +2 -2
- package/dist/chunk-7gsp4wxj.js +2 -0
- package/dist/chunk-7mshja1h.js +177 -0
- package/dist/{chunk-g4k0svq6.js → chunk-7qk4exw1.js} +2 -2
- package/dist/{chunk-wmnzapn8.js → chunk-7sh9fa3q.js} +2 -2
- package/dist/{chunk-e6az23ep.js → chunk-7vpzzr5k.js} +59 -59
- package/dist/chunk-7y2h7nfd.js +2 -0
- package/dist/chunk-7y6ad89y.js +2 -0
- package/dist/{chunk-spr5bxm8.js → chunk-85tzv79s.js} +1 -1
- package/dist/chunk-8ds59ttd.js +2 -0
- package/dist/{chunk-m0deyakx.js → chunk-8ek9ayfk.js} +6 -6
- package/dist/{chunk-4qng287p.js → chunk-8nb8b0nf.js} +2 -2
- package/dist/chunk-8pyyqev1.js +2 -0
- package/dist/chunk-96zrm4x7.js +2 -0
- package/dist/{chunk-83fh7j8g.js → chunk-985afhhy.js} +2 -2
- package/dist/chunk-9896204h.js +2 -0
- package/dist/{chunk-2vbgm9t4.js → chunk-9ct3gbyv.js} +6 -6
- package/dist/{chunk-yzbdm457.js → chunk-9f6qx8b9.js} +2 -2
- package/dist/chunk-9qwkyt81.js +2 -0
- package/dist/{chunk-tahdfsp4.js → chunk-9tec9eap.js} +2 -2
- package/dist/{chunk-cn7d3389.js → chunk-9ydrcvjj.js} +30 -30
- package/dist/{chunk-vht2rhrj.js → chunk-ady8cnpb.js} +5 -5
- package/dist/chunk-aent8wje.js +2 -0
- package/dist/chunk-ajj56vrw.js +2 -0
- package/dist/{chunk-g9kgxx0t.js → chunk-apmn6hf2.js} +3 -3
- package/dist/chunk-b3b9tfpx.js +2 -0
- package/dist/chunk-ba0kefkt.js +2 -0
- package/dist/chunk-bc35m40d.js +2 -0
- package/dist/{chunk-efr9dgt6.js → chunk-bgc2fm73.js} +2 -2
- package/dist/{chunk-xw8ygkyb.js → chunk-bhbcm77r.js} +2 -2
- package/dist/{chunk-wabahwkj.js → chunk-bmfk3b29.js} +2 -2
- package/dist/{chunk-5s2dwh5z.js → chunk-bq9xf8nq.js} +16 -16
- package/dist/{chunk-hgm6f2t2.js → chunk-c0ejyxfj.js} +3 -3
- package/dist/chunk-c91y14ae.js +2 -0
- package/dist/{chunk-jasfbhp3.js → chunk-cb478dy9.js} +7 -7
- package/dist/{chunk-81x4xnv9.js → chunk-cf7rq74j.js} +9 -9
- package/dist/{chunk-dmj9gk6d.js → chunk-cfpw4c6b.js} +2 -2
- package/dist/chunk-cgamtmxv.js +2 -0
- package/dist/chunk-cpq9b0fx.js +2 -0
- package/dist/{chunk-m207mdpy.js → chunk-cz8mka1b.js} +2 -2
- package/dist/{chunk-rkz3k2td.js → chunk-d18xd9x5.js} +3 -3
- package/dist/{chunk-4q292036.js → chunk-dvarmxjq.js} +6 -6
- package/dist/chunk-dxp022r0.js +2 -0
- package/dist/{chunk-xr28hjkp.js → chunk-e1gxykm8.js} +7 -7
- package/dist/{chunk-7h0mjwkq.js → chunk-eapt899m.js} +5 -5
- package/dist/{chunk-qmwaqdc1.js → chunk-ee9f9ety.js} +17 -17
- package/dist/{chunk-qtja7fpr.js → chunk-et1vz3wd.js} +2 -2
- package/dist/{chunk-zs35vgyy.js → chunk-f5tg49tb.js} +4 -4
- package/dist/chunk-f9bj9nce.js +2 -0
- package/dist/{chunk-ssd9g1wz.js → chunk-fpn4dren.js} +1 -1
- package/dist/{chunk-2s0157xg.js → chunk-fppa729v.js} +3 -3
- package/dist/chunk-fprb7vaf.js +2 -0
- package/dist/{chunk-nk4jhdnk.js → chunk-fxwkw93g.js} +3 -3
- package/dist/{chunk-g53y0v3f.js → chunk-g31ca0ax.js} +10 -10
- package/dist/chunk-g9xeydd7.js +2 -0
- package/dist/chunk-ga3y58h7.js +2 -0
- package/dist/chunk-gbgbhpms.js +2 -0
- package/dist/{chunk-cn7zpm1x.js → chunk-gbx5vw81.js} +5 -5
- package/dist/{chunk-3jv81hw3.js → chunk-gybdzsj7.js} +3 -3
- package/dist/{chunk-w07n2ddj.js → chunk-he85ksa7.js} +2 -2
- package/dist/{chunk-yjdnfxm7.js → chunk-hrj5hg2n.js} +3 -3
- package/dist/{chunk-afxt272e.js → chunk-hvd3vdm9.js} +14 -14
- package/dist/chunk-j43asvw6.js +2 -0
- package/dist/chunk-jdj1358b.js +3 -0
- package/dist/{chunk-zkwtrmwg.js → chunk-jp0dachh.js} +2 -2
- package/dist/chunk-jy2xmwf4.js +2 -0
- package/dist/{chunk-z5vkzbct.js → chunk-k0aejzg9.js} +4 -4
- package/dist/{chunk-0wj31pqy.js → chunk-k3rcpnzm.js} +2 -2
- package/dist/{chunk-nnzmbfjq.js → chunk-k4bdf0dw.js} +3 -3
- package/dist/chunk-k5qgfjzg.js +2 -0
- package/dist/{chunk-6d1jmx97.js → chunk-k6exjw0z.js} +9 -9
- package/dist/chunk-k9dg3nyy.js +2 -0
- package/dist/{chunk-ddhazq2g.js → chunk-kf8hzvb7.js} +3 -3
- package/dist/{chunk-rc4zsymn.js → chunk-kr8qdg0r.js} +2 -2
- package/dist/chunk-ksq6q8n1.js +2 -0
- package/dist/{chunk-2bm97z09.js → chunk-m4mpyq3d.js} +3 -3
- package/dist/chunk-m90wyzhd.js +2 -0
- package/dist/chunk-mcevnfnx.js +2 -0
- package/dist/{chunk-am4wadh7.js → chunk-mv3yhspn.js} +2 -2
- package/dist/{chunk-2g7yg3na.js → chunk-n0czk1fr.js} +6 -6
- package/dist/chunk-n2wea4wt.js +2 -0
- package/dist/chunk-n5ejs365.js +2 -0
- package/dist/{chunk-v3kynq6v.js → chunk-na6yveav.js} +5 -5
- package/dist/chunk-ndjmt3vg.js +3 -0
- package/dist/chunk-nfkr531f.js +2 -0
- package/dist/chunk-nqases6m.js +3 -0
- package/dist/chunk-nx20kccb.js +2 -0
- package/dist/chunk-p43hw6ef.js +2 -0
- package/dist/chunk-q71qqjy7.js +2 -0
- package/dist/{chunk-6b32wt31.js → chunk-qby3e5nm.js} +30 -30
- package/dist/{chunk-ngzdcvry.js → chunk-qfcn4btf.js} +1 -1
- package/dist/chunk-qtcxy3y3.js +2 -0
- package/dist/chunk-r19swv5s.js +2 -0
- package/dist/{chunk-618d3ng3.js → chunk-r1jzbqr3.js} +6 -6
- package/dist/{chunk-55rg4qyr.js → chunk-r64derfx.js} +2 -2
- package/dist/{chunk-qk61pv1v.js → chunk-ra8f8sm2.js} +15 -10
- package/dist/chunk-s53psb1j.js +2 -0
- package/dist/{chunk-nbwmcm2p.js → chunk-s9vymzsb.js} +6 -6
- package/dist/chunk-scd1b28h.js +2 -0
- package/dist/chunk-srd9dakc.js +2 -0
- package/dist/{chunk-38c5cw2c.js → chunk-sxn4b24s.js} +1 -1
- package/dist/{chunk-ddjkt87h.js → chunk-sxwgq49z.js} +1 -1
- package/dist/chunk-t482tgm6.js +2 -0
- package/dist/{chunk-91q55gjp.js → chunk-td3qp5my.js} +3 -3
- package/dist/chunk-tsvnhc0c.js +4 -0
- package/dist/{chunk-qr5ddqbf.js → chunk-tyjzye2d.js} +2 -2
- package/dist/{chunk-nj2q40p8.js → chunk-vct6dec8.js} +2 -2
- package/dist/{chunk-4fkxm22d.js → chunk-w1mjt8jc.js} +2 -2
- package/dist/{chunk-1925kbjc.js → chunk-w9d18r1t.js} +1 -1
- package/dist/chunk-wcm7e1r3.js +2 -0
- package/dist/{chunk-5t33zwwg.js → chunk-wj78td69.js} +1 -1
- package/dist/chunk-wm8wz183.js +2 -0
- package/dist/{chunk-snbnhqn3.js → chunk-wsfk4y4m.js} +10 -10
- package/dist/chunk-x0e0pcn0.js +2 -0
- package/dist/chunk-x756yzrc.js +2 -0
- package/dist/{chunk-07thf07b.js → chunk-x8anspa5.js} +2 -2
- package/dist/{chunk-cak9fp9b.js → chunk-x8js27hd.js} +7 -7
- package/dist/chunk-xj6vm7v9.js +2 -0
- package/dist/chunk-xq2tfg4v.js +2 -0
- package/dist/{chunk-vke28xq8.js → chunk-y38swh5t.js} +2 -2
- package/dist/{chunk-pgkcbm6g.js → chunk-y5f04xtb.js} +2 -2
- package/dist/{chunk-z1br7qeb.js → chunk-yewd8836.js} +4 -4
- package/dist/chunk-yjeqae79.js +2 -0
- package/dist/chunk-yrdxvphr.js +2 -0
- package/dist/{chunk-x0qtgyqr.js → chunk-yzs2afn7.js} +9 -9
- package/dist/{chunk-nwhv1889.js → chunk-z2m9p8xe.js} +3 -3
- package/dist/chunk-zh8w0nb6.js +2 -0
- package/dist/chunk-zhm282df.js +2 -0
- package/dist/{chunk-79x0812m.js → chunk-zxfptbac.js} +2 -2
- package/dist/cli.js +20 -20
- package/dist/client/signals-dom-ready-runtime.js +6 -1
- package/dist/craft-entry.js +2 -2
- package/dist/craft.js +2 -2
- package/dist/dev-server/serve-app.js +2 -2
- package/dist/native/bridge/protocol.d.ts +1 -1
- package/dist/native/compiler/headwind-to-style.d.ts +2 -10
- package/dist/native/compiler/headwind-to-style.js +31 -2
- package/dist/native/compiler/html-to-ir.js +14 -4
- package/dist/native/compiler/ir.d.ts +3 -0
- package/dist/native/event-names.js +14 -1
- package/dist/native/prop-names.js +8 -1
- package/dist/native/runtime/craft-bridge.js +7 -1
- package/dist/native/runtime/craft.d.ts +1 -1
- package/dist/native/runtime/native-host.d.ts +1 -0
- package/dist/native/runtime/native-host.js +8 -2
- package/dist/native/runtime/shared-screen.js +1 -0
- package/dist/native/testing.d.ts +1 -1
- package/dist/production-server.js +5 -5
- package/dist/pwa.js +3 -3
- package/dist/ssg.js +10 -10
- package/package.json +5 -5
- package/dist/chunk-0qgdex7z.js +0 -2
- package/dist/chunk-1gpvkgb0.js +0 -2
- package/dist/chunk-1se5y83a.js +0 -2
- package/dist/chunk-1y4agex5.js +0 -2
- package/dist/chunk-2p301rsb.js +0 -2
- package/dist/chunk-2zg3jmy7.js +0 -2
- package/dist/chunk-33gccrx0.js +0 -2
- package/dist/chunk-3jkbs3fc.js +0 -2
- package/dist/chunk-3pxche1k.js +0 -2
- package/dist/chunk-3vankrf5.js +0 -2
- package/dist/chunk-4tvty67c.js +0 -2
- package/dist/chunk-4xdapekt.js +0 -2
- package/dist/chunk-4xzk9529.js +0 -3
- package/dist/chunk-53md2scd.js +0 -2
- package/dist/chunk-5c4g0v5g.js +0 -2
- package/dist/chunk-5g5v7yns.js +0 -2
- package/dist/chunk-6weh2dhz.js +0 -177
- package/dist/chunk-75st1ttq.js +0 -2
- package/dist/chunk-7k95121a.js +0 -2
- package/dist/chunk-7p4tvw5x.js +0 -2
- package/dist/chunk-825zg5ar.js +0 -2
- package/dist/chunk-83aq0n9s.js +0 -2
- package/dist/chunk-83c3vrbg.js +0 -3
- package/dist/chunk-9pgnhayn.js +0 -2
- package/dist/chunk-9vgkp3nj.js +0 -2
- package/dist/chunk-9za2wr5r.js +0 -2
- package/dist/chunk-ba43drcj.js +0 -2
- package/dist/chunk-bpbhjn4w.js +0 -2
- package/dist/chunk-cgv3r6q9.js +0 -2
- package/dist/chunk-cnt08b67.js +0 -2
- package/dist/chunk-e645nk33.js +0 -4
- package/dist/chunk-g3sgf16e.js +0 -2
- package/dist/chunk-g5ebz7hm.js +0 -2
- package/dist/chunk-g6m3q9n4.js +0 -2
- package/dist/chunk-h2ymq7fa.js +0 -2
- package/dist/chunk-hnen9b45.js +0 -2
- package/dist/chunk-hy91tn1w.js +0 -2
- package/dist/chunk-j46nvncc.js +0 -2
- package/dist/chunk-jjvrm2j8.js +0 -2
- package/dist/chunk-k4pwpr5q.js +0 -2
- package/dist/chunk-kh0szwf3.js +0 -2
- package/dist/chunk-kzx3t7q6.js +0 -2
- package/dist/chunk-mvfj17fr.js +0 -2
- package/dist/chunk-nmjgcw4g.js +0 -2
- package/dist/chunk-p454tj1h.js +0 -2
- package/dist/chunk-p7ksex4f.js +0 -2
- package/dist/chunk-q245q8z1.js +0 -2
- package/dist/chunk-q4m5p4wx.js +0 -2
- package/dist/chunk-q85s8ne0.js +0 -2
- package/dist/chunk-qy01jdzk.js +0 -2
- package/dist/chunk-rfp5f55f.js +0 -2
- package/dist/chunk-tk17tjzw.js +0 -2
- package/dist/chunk-tw2c09tw.js +0 -2
- package/dist/chunk-tynz075x.js +0 -2
- package/dist/chunk-v0tewfbx.js +0 -2
- package/dist/chunk-vdxjyrjf.js +0 -3
- package/dist/chunk-vk494kgn.js +0 -2
- package/dist/chunk-vyr8zzyr.js +0 -2
- package/dist/chunk-w1sjp421.js +0 -2
- package/dist/chunk-wq0wbvgd.js +0 -2
- package/dist/chunk-wr6b3a1w.js +0 -2
- package/dist/chunk-wwnqbv9j.js +0 -3
- package/dist/chunk-x3xtyr95.js +0 -2
- package/dist/chunk-xb16yy2x.js +0 -2
- package/dist/chunk-y7df8y9a.js +0 -2
- package/dist/chunk-ybd2tfqm.js +0 -2
- package/dist/chunk-yrh9yfnv.js +0 -2
- package/dist/chunk-ysm6gaq9.js +0 -2
- package/dist/chunk-z6xfmrtc.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{pu,So,Kn,fu,gu,mu,hu,yu,bu,wu,vu,xu,Su,ku,_u,Cu,Eu,Tu,$u,Ru,Au,Pu,Iu,Ou,Nu,Du,Mu,Lu,ju,Bu,Fu,zu,Hu,Vu,Uu,Wu,qu,Ku,Xu,Gu,Ju,Yu,Zu,Qu,ed,td,nd,rd,Jt,Ta,sd,od,id,$a,ad,cd,ld,ud,dd,pd,Ra,fd,gd,md,hd,yd,bd,wd,vd,xd,Xn,Sd,kd,_d,Cd,Ed,Td,$d,Rd,Ad,Pd,Id,Od,ko,Nd,Dd,Md,Ld,jd,Qr,Bd,Fd,zd,Hd,Vd,Aa,Ud,Wd,qd,Pa,_o,Kd,Xd,Ia,Oa,es,Na,Gd,Yt,Jd,Da,Ma,Co,Yd,Eo,Zd,Qd,ep,tp,np,rp,sp,La,op,ip,ja,ap,cp,lp,up,dp,pp,fp,gp,mp,hp,yp,bp,wp,vp,xp,Sp,kp,_p,Cp,Ep,Tp,$p,Rp,Ap,Ba,Pp,Ip,Op,Np,Dp,Mp,Lp,jp,Bp,Fp,zp,Gn,Fa,za,Hp,Jn,Vp,Up,Wp,Ha,Va,ts,ns,qp,To,Kp,Xp,Gp,Jp,Yp,Zp,Qp,ef,tf,nf,rf,sf,of,af,cf,lf,uf,df,pf,ff,Ua,gf,mf,Wa,qa,hf,yf}from"./chunk-qby3e5nm.js";export{nd as AVAILABLE_COMPONENTS,Aa as AutoUpdater,rd as COMPONENT_STYLES,ts as DEFAULT_WATCH_INTERVAL_MS,Va as MAX_WATCH_INTERVAL_MS,Ha as MIN_WATCH_INTERVAL_MS,pd as MODAL_STYLES,xu as TOAST_STYLES,wd as TRAY_MENU_STYLES,Ia as UPDATE_MANIFEST_ASSET,cd as alert,Tp as appInfo,Zp as appleScript,yf as applicationDataDirectory,Yp as audio,mf as backgroundDelay,kp as battery,Jp as biometric,Fp as bluetooth,rf as bonjour,Yt as bundlePathForExecutable,Yd as caffeinate,Ud as canReplaceBundle,Wd as clearQuarantine,gp as clipboard,dd as closeAllModals,Od as closeAllWindows,ad as confirm,Ap as contextMenu,uf as continuityCamera,lf as coreml,Hd as craftBinaryNotFoundMessage,ko as craftWindowArguments,Gn as crashReporter,Uu as createAccordion,Lu as createAutocomplete,$u as createAvatar,Tu as createBadge,Su as createButton,Ru as createCard,Yu as createChart,_u as createCheckbox,Fu as createChip,Zu as createCodeEditor,Nu as createColorPicker,Ju as createDataGrid,Du as createDatePicker,Pu as createDropdown,ed as createFileExplorer,Gd as createGitHubUpdateManifest,Na as createGitHubUpdater,Bu as createImageView,up as createInterval,ju as createLabel,Ku as createListView,Qu as createMediaPlayer,fd as createMenubar,qu as createModalComponent,hf as createNativeUpdateApi,qa as createPantrySelfUpdater,np as createPreferences,Eu as createProgressBar,Ou as createRadioButton,Iu as createRating,Hu as createScrollView,Co as createSelfUpdater,Cu as createSlider,Vu as createSplitView,Wu as createStepper,Ra as createSystemTray,Xu as createTable,Au as createTabs,ku as createTextInput,Mu as createTimePicker,lp as createTimer,zu as createTooltip,Gu as createTreeView,td as createWebView,Nd as createWindow,Md as createWindowWithHTML,Eo as decaffeinate,Sp as deepLinks,dp as delay,bu as dismissAlertById,wu as dismissAllAlerts,vp as dragOut,qd as extractBundle,Qp as fileAssociations,To as focus,Xp as focusShortcutsReady,fp as formatCompact,tp as formatDuration,ep as formatRemainingTime,op as formatShortcut,pp as formatTime,hp as fs,Pa as generateUpdateManifest,vu as getActiveAlertCount,ud as getActiveModalCount,gd as getActiveTrayInstances,Pd as getActiveWindowIds,Qd as getCaffeinateStatus,ff as getCapabilities,Ua as getCapability,Rd as getDesktopConfig,Td as getDialogBridgeScript,cp as getRegisteredHotkeys,yd as getSimulatedTrayHTML,bd as getTrayBridgeScript,md as getTrayInstance,Id as getWindow,jd as getWindowBridgeScript,Oa as githubLatestAssetUrl,es as githubReleaseAssetUrl,bp as globalShortcuts,Jn as handoff,Kp as hasFocusShortcuts,Hp as iap,sp as isAutoLaunchEnabled,gf as isAvailable,Zd as isCaffeinated,xp as isDragOutAvailable,Ld as isWebviewAvailable,Op as keychain,Vp as liveActivities,Gp as localServer,Up as location,nf as log,Bd as macOSRuntimeExecutablePath,Rp as menu,cf as midi,Mp as nativeAutoLaunch,Lp as nativeTray,jp as nativeWindow,_p as network,mp as notifications,yu as notify,Dd as openDevWindow,Fd as pack,zd as packageApp,Wa as parsePantryUpdateManifest,La as parseShortcut,tf as pdf,Np as permissions,Dp as printing,ld as prompt,Da as quitLauncher,_o as readBundleIdentity,Fa as redactPII,ip as registerHotkey,Ma as relaunchBundle,pu as requestNotificationPermission,Ad as resetDesktopConfig,Vd as resolveCraftBinary,Qr as resolveCraftExecutablePath,Jd as runningBundleTeamId,Ip as screen,Wp as screenCapture,ns as screenSharing,pf as serial,df as serviceMenu,rp as setAutoLaunch,$d as setDesktopConfig,yp as shell,So as showAlert,kd as showAlertDialog,Sd as showColorPicker,_d as showConfirmDialog,Cd as showErrorDialog,od as showErrorModal,hu as showErrorToast,Ta as showInfoModal,fu as showInfoToast,Xn as showMessageBox,Jt as showModal,vd as showOpenDialog,$a as showQuestionModal,xd as showSaveDialog,id as showSuccessModal,gu as showSuccessToast,Kn as showToast,Ed as showWarningDialog,sd as showWarningModal,mu as showWarningToast,Ba as sidebar,za as signPayload,zp as speech,of as speechRecognition,sf as spotlight,$p as standardMenus,Kd as swapBundle,Pp as system,ef as tags,wp as theme,Bp as touchbar,hd as triggerTrayAction,ap as unregisterAllHotkeys,ja as unregisterHotkey,Cp as updater,Xd as verifyBundleTrust,af as vision,qp as watchScreenSharing,Ep as windowEvents};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-bq9xf8nq.js";import"./chunk-9f6qx8b9.js";import"./chunk-2yxva96k.js";import"./chunk-7vpzzr5k.js";import"./chunk-27rzdq3n.js";import"./chunk-jp0dachh.js";import"./chunk-zxfptbac.js";import"./chunk-gybdzsj7.js";import{l}from"./chunk-jdj1358b.js";import u from"fs";import m from"path";async function d(e,t={}){let s=Date.now(),n={total:0,passed:0,failed:0,new:0,failures:[],duration:0},i=t.snapshotDir||l(e.root,"story","snapshots");await u.promises.mkdir(i,{recursive:!0});let r=e.storyFiles;if(t.filter&&t.filter.length>0)r=r.filter((a)=>t.filter.some((o)=>a.fileName.toLowerCase().includes(o.toLowerCase())));for(let a of r)await h(a,i,t,n);return n.duration=Date.now()-s,n}async function h(e,t,s,n){let i=e.story;if(!i)return;for(let r of i.variants){n.total++;let a=m.join(t,`${e.id}-${r.id}.snap`),o=g(r.source||""),f=await w(a);if(s.update||!f){let p={storyId:e.id,variantId:r.id,component:e.fileName,timestamp:Date.now(),hash:o};if(await u.promises.writeFile(a,JSON.stringify(p,null,2)),!f)n.new++;n.passed++}else try{let p=await u.promises.readFile(a,"utf-8"),c=JSON.parse(p);if(c.hash===o)n.passed++;else n.failed++,n.failures.push({storyId:e.id,variantId:r.id,component:e.fileName,message:"Snapshot mismatch",difference:y(c.hash,o)})}catch(p){n.failed++,n.failures.push({storyId:e.id,variantId:r.id,component:e.fileName,message:`Error reading snapshot: ${p}`})}}}async function x(e,t={}){return(await d(e,{...t,update:!0})).total}function g(e){let t=0;for(let s=0;s<e.length;s++){let n=e.charCodeAt(s);t=(t<<5)-t+n,t=t&t}return t.toString(16)}function y(e,t){if(e===t)return 0;let s=Math.abs(Number.parseInt(e,16)-Number.parseInt(t,16));return Math.min(s/1e6,1)}async function w(e){try{return await u.promises.access(e),!0}catch{return!1}}function F(e){let t=[];if(t.push(""),t.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),t.push(" STX Story Visual Regression Tests"),t.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),t.push(""),e.failures.length>0){t.push(" \u274C Failures:"),t.push("");for(let s of e.failures){if(t.push(` \u2022 ${s.component} / ${s.variantId}`),t.push(` ${s.message}`),s.difference!==void 0)t.push(` Difference: ${(s.difference*100).toFixed(2)}%`);t.push("")}}if(t.push(" Summary:"),t.push(` Total: ${e.total}`),t.push(` Passed: ${e.passed} \u2713`),t.push(` Failed: ${e.failed} \u2717`),e.new>0)t.push(` New: ${e.new} \u26A1`);return t.push(` Time: ${e.duration}ms`),t.push(""),t.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),t.push(""),t.join(`
|
|
3
3
|
`)}export{F as formatTestResults,d as runVisualTests,x as updateSnapshots};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{m,h,p}from"./chunk-
|
|
2
|
+
import{m,h,p}from"./chunk-7vpzzr5k.js";import{j}from"./chunk-ee9f9ety.js";import{i}from"./chunk-9ydrcvjj.js";import k from"path";var q={enabled:!0,bufferSize:16384,strategy:"auto",timeout:30000},T=/<!-- @section:([\w-]+) -->([\s\S]*?)<!-- @endsection:\1 -->/g;var M=/<!-- @suspense:([\w-]+) -->([\s\S]*?)<!-- @endsuspense:\1 -->/g;function H(e){let t=[],o=0,n;M.lastIndex=0;while((n=M.exec(e))!==null){if(n.index>o){let a=e.slice(o,n.index);if(a.trim())t.push({type:t.length===0?"shell":"content",content:a})}let s=n[1],r=n[2];t.push({type:"suspense",name:s,content:r}),o=n.index+n[0].length}if(o<e.length){let s=e.slice(o);if(s.trim())t.push({type:t.length===0?"shell":"content",content:s})}if(t.length===0)t.push({type:"shell",content:e});return t}async function Rm(e,t={},o={}){let n={...j,...o,streaming:{...q,...o.streaming}},s=n.streaming?.bufferSize||16384;return new ReadableStream({async start(r){try{let a=await Bun.file(e).text(),S=a.match(/<script\b[^>]*\bserver\b[^>]*>([\s\S]*?)<\/script>/i),g=S?S[1]:"",c=a.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),y={...t,__filename:e,__dirname:k.dirname(e)};if(g.trim())await m(g,y,e);let E=H(c),l=new Set;if(!E.some((w)=>w.type==="suspense")){let w=n.streaming?.strategy||"auto",x=new RegExp(T.source,"g");if(!(w!=="manual"&&x.test(c))){let u=await i(c,y,e,n,l);for(let b=0;b<u.length;b+=s)r.enqueue(u.slice(b,b+s)),await new Promise((f)=>setTimeout(f,0))}else{let u=[],b=new RegExp(T.source,"g"),f;while((f=b.exec(c))!==null)u.push({name:f[1],content:f[2],start:f.index,end:f.index+f[0].length});let v=0;for(let _ of u){if(_.start>v){let I=c.slice(v,_.start);if(I.trim()){let O=await i(I,y,e,n,l);r.enqueue(O),await new Promise((D)=>setTimeout(D,0))}}let C=await i(_.content,y,e,n,l);r.enqueue(C),await new Promise((I)=>setTimeout(I,0)),v=_.end}if(v<c.length){let _=c.slice(v);if(_.trim()){let C=await i(_,y,e,n,l);r.enqueue(C)}}}}else{let w=new Map;for(let d of E)if(d.type==="shell"||d.type==="content"){let u=await i(d.content,y,e,n,l);r.enqueue(u)}else if(d.type==="suspense"&&d.name){let u=`stx-suspense-${d.name}`;r.enqueue(`<div id="${u}" data-suspense="${d.name}" style="display:contents;">
|
|
3
3
|
<template data-suspense-fallback>Loading...</template>
|
|
4
4
|
</div>`),w.set(d.name,i(d.content,y,e,n,l))}r.enqueue(`
|
|
5
5
|
<script>
|
|
@@ -17,13 +17,13 @@ import{m,h,p}from"./chunk-e6az23ep.js";import{j}from"./chunk-qmwaqdc1.js";import
|
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
})();
|
|
20
|
-
</script>`);let x=Array.from(w.entries()).map(async([d,u])=>{r.enqueue(await
|
|
20
|
+
</script>`);let x=Array.from(w.entries()).map(async([d,u])=>{r.enqueue(await ha(d,u))});await Promise.all(x)}r.close()}catch(a){r.error(a)}}})}async function ha(e,t){try{let n=(await t).replace(/`/g,"\\`").replace(/<\/script>/gi,"<\\/script>");return`
|
|
21
21
|
<script>
|
|
22
22
|
window.__stxSuspense.resolve('${e}', \`${n}\`);
|
|
23
23
|
</script>`}catch(o){let n=o instanceof Error?o.message:String(o);return`
|
|
24
24
|
<script>
|
|
25
25
|
window.__stxSuspense.resolve('${e}', '<div class="stx-error">Error loading content: ${p(n)}</div>');
|
|
26
|
-
</script>`}}var
|
|
26
|
+
</script>`}}var cu=`
|
|
27
27
|
<script>
|
|
28
28
|
(function(){
|
|
29
29
|
window.__stxSuspense = window.__stxSuspense || {
|
|
@@ -43,12 +43,12 @@ window.__stxSuspense.resolve('${e}', '<div class="stx-error">Error loading conte
|
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
})();
|
|
46
|
-
</script>`;function z(e,t,o){if(!t||t<=0)return e;let n,s=new Promise((r,a)=>{n=setTimeout(()=>a(Error(`streaming boundary "${o}" timed out after ${t}ms`)),t)});return Promise.race([e,s]).finally(()=>clearTimeout(n))}function
|
|
46
|
+
</script>`;function z(e,t,o){if(!t||t<=0)return e;let n,s=new Promise((r,a)=>{n=setTimeout(()=>a(Error(`streaming boundary "${o}" timed out after ${t}ms`)),t)});return Promise.race([e,s]).finally(()=>clearTimeout(n))}function Am(e,t=[],o={}){let n=o.timeoutMs??0;return new ReadableStream({async start(s){try{if(s.enqueue(e),t.length>0)s.enqueue(cu),await Promise.all(t.map(async(r)=>{let a=z(r.render(),n,r.id);s.enqueue(await ha(r.id,a))}));s.close()}catch(r){s.error(r)}}})}var A=/@stream\s*\(\s*['"]([^'"]+)['"]\s*\)([\s\S]*?)@endstream/gi;function Pm(e,t){return e.replace(A,(o,n,s)=>{let r=n.trim(),a=s.split(/@fallback/i),S=a[0].trim(),g=a.length>1?a.slice(1).join("@fallback").trim():"";if(!t.__streamTemplates)t.__streamTemplates={};return t.__streamTemplates[r]=S,`<div data-suspense="${r}">${g}</div>`})}function Im(e){let t=e?.streamBoundaries;if(!t||typeof t!=="object")return;let o=Object.entries(t).filter(([,n])=>typeof n==="function");return o.length>0?o.map(([n,s])=>({id:n,render:s})):void 0}async function Om(e,t={},o={}){let n={...j,...o,streaming:{...q,...o.streaming}},s=n.streaming?.bufferSize||16384;return new ReadableStream({async start(r){try{let a=await Bun.file(e).text(),S=a.match(/<script\b[^>]*\bserver\b[^>]*>([\s\S]*?)<\/script>/i),g=S?S[1]:"",c=a.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),y={...t,__filename:e,__dirname:k.dirname(e)};if(g.trim())await m(g,y,e);let E=new Set,l=n.streaming?.strategy||"auto",R=new RegExp(T.source,"g");if(!(l!=="manual"&&R.test(c))){let x=await i(c,y,e,n,E);for(let d=0;d<x.length;d+=s)r.enqueue(x.slice(d,d+s))}else{let x=[],d=new RegExp(T.source,"g"),u;while((u=d.exec(c))!==null)x.push({name:u[1],content:u[2],start:u.index,end:u.index+u[0].length});let b=0;for(let f of x){if(f.start>b){let _=c.slice(b,f.start);if(_.trim()){let C=await i(_,y,e,n,E);r.enqueue(C)}}let v=await i(f.content,y,e,n,E);r.enqueue(v),b=f.end}if(b<c.length){let f=c.slice(b);if(f.trim()){let v=await i(f,y,e,n,E);r.enqueue(v)}}}r.close()}catch(a){r.error(a)}}})}async function Nm(e,t={}){let o={...j,...t,streaming:{...q,...t.streaming}},n=await Bun.file(e).text(),s=n.match(/<script\b[^>]*\bserver\b[^>]*>([\s\S]*?)<\/script>/i),r=s?s[1]:"",a=n.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),S=a,g={},c;T.lastIndex=0;while((c=T.exec(a))!==null){let l=c[1],R=c[2];g[l]=R}let y=a.replace(T,"");return{renderShell:async(l={})=>{let R={...l,__filename:e,__dirname:k.dirname(e)};return await m(r,R,e),i(y,R,e,o,new Set)},renderSection:async(l,R={})=>{try{if(!g[l])return`<div class="error-message">Section "${p(l)}" not found in template "${p(e)}"</div>`;let w={...R,__filename:e,__dirname:k.dirname(e)};await m(r,w,e);let x=new Set;return await i(g[l],w,e,o,x)}catch(w){let x=w instanceof Error?w.message:String(w);return h("Expression",x,e,g[l]||"",0,g[l]||"")}},getSections:()=>Object.keys(g),getTemplate:()=>S}}var lu={name:"suspense",hasEndTag:!0,handler:(e,t,o,n)=>{if(!t||t.length===0)throw Error("Suspense directive requires a name parameter");let s=t[0].replace(/['"`]/g,"");return`<!-- @suspense:${s} -->${e}<!-- @endsuspense:${s} -->`}},uu={name:"island",hasEndTag:!0,handler:(e,t,o,n)=>{if(!t||t.length===0)throw Error("Island directive requires a name parameter");let s=t[0].replace(/['"`]/g,""),r=t[1]?t[1].replace(/['"`]/g,""):"lazy",a=`island-${s}-${Math.random().toString(36).substring(2,9)}`,S=e.match(/<script\s+props\s*>([\s\S]*?)<\/script>/i),g=S?S[1].trim():"",c=S?e.replace(S[0],""):e;return`<div data-island="${s}" data-island-id="${a}" data-priority="${r}">
|
|
47
47
|
${c}
|
|
48
48
|
<script type="application/json" data-island-props="${a}">
|
|
49
49
|
${g?`{${g}}`:"{}"}
|
|
50
50
|
</script>
|
|
51
|
-
</div>`}};function
|
|
51
|
+
</div>`}};function Dm(e={}){let t=[];if(e.streaming?.enabled)t.push(lu);if(e.hydration?.enabled)t.push(uu);return t}async function Mm(e,t,o,n={}){return e}function Lm(e,t={}){let o=new TextEncoder,n=e.pipeThrough(new TransformStream({transform(r,a){a.enqueue(o.encode(r))}})),s=new Headers(t.headers);if(!s.has("Content-Type"))s.set("Content-Type","text/html; charset=utf-8");if(!s.has("Transfer-Encoding"))s.set("Transfer-Encoding","chunked");if(!s.has("X-Content-Type-Options"))s.set("X-Content-Type-Options","nosniff");if(!s.has("X-Accel-Buffering"))s.set("X-Accel-Buffering","no");return new Response(n,{...t,headers:s})}function jm(e={mode:"full"}){let{mode:t,components:o={},dynamicImports:n=!0}=e,s=Object.entries(o).map(([r,a])=>`'${r}': ${n?`() => import('${a}')`:`require('${a}')`}`).join(`,
|
|
52
52
|
`);if(t==="loader")return`
|
|
53
53
|
(function() {
|
|
54
54
|
window.__stx = window.__stx || {};
|
|
@@ -191,4 +191,4 @@ else {
|
|
|
191
191
|
stx.hydrate();
|
|
192
192
|
}
|
|
193
193
|
})();`}
|
|
194
|
-
export{
|
|
194
|
+
export{Rm,ha,cu,Am,Pm,Im,Om,Nm,lu,uu,Dm,Mm,Lm,jm};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{E}from"./chunk-
|
|
2
|
+
import{E}from"./chunk-bmfk3b29.js";import{Ue,Tn}from"./chunk-k4bdf0dw.js";function m(e){let t={"cache-first":{className:"CacheFirst",importFrom:"workbox-strategies"},"network-first":{className:"NetworkFirst",importFrom:"workbox-strategies"},"stale-while-revalidate":{className:"StaleWhileRevalidate",importFrom:"workbox-strategies"},"network-only":{className:"NetworkOnly",importFrom:"workbox-strategies"},"cache-only":{className:"CacheOnly",importFrom:"workbox-strategies"}};return t[e]||t["network-first"]}function g(e){return m(e).className}function d(e){let t=e.pwa;if(!t?.enabled)return"";let r=t.routes||[],n=t.cacheStorage,c=[];for(let a of r){let i=g(a.strategy),s=[];if(a.maxAgeSeconds||a.maxEntries||n?.maxEntries){let o=a.maxEntries||n?.maxEntries||100,u=a.maxAgeSeconds||(n?.maxAge?n.maxAge*24*60*60:void 0);s.push(`new ExpirationPlugin({
|
|
3
3
|
maxEntries: ${o},
|
|
4
4
|
${u?`maxAgeSeconds: ${u},`:""}
|
|
5
5
|
purgeOnQuotaError: true,
|
|
@@ -17,7 +17,7 @@ registerRoute(
|
|
|
17
17
|
],`:""}
|
|
18
18
|
})
|
|
19
19
|
);`)}return c.join(`
|
|
20
|
-
`)}function p(e){if(e.startsWith("*.")){let t=e.slice(2);return`({ request }) => request.destination === '${f(t)}'`}if(e.endsWith("/**"))return`({ url }) => url.pathname.startsWith('${e.slice(0,-3)}')`;if(e.endsWith("/*")){let t=e.slice(0,-2);return`({ url }) => url.pathname.startsWith('${t}') && !url.pathname.slice(${t.length+1}).includes('/')`}if(e.includes("*")&&!e.startsWith("*")){let[t,r]=e.split("*");return`({ url }) => url.pathname.startsWith('${t}') && url.pathname.endsWith('${r}')`}if(e==="/"||!e.includes("*"))return`({ url }) => url.pathname === '${e}'`;return`new RegExp('${x(e).replace(/\\\*/g,".*")}')`}function f(e){return{js:"script",mjs:"script",css:"style",html:"document",htm:"document",png:"image",jpg:"image",jpeg:"image",gif:"image",svg:"image",webp:"image",avif:"image",ico:"image",woff:"font",woff2:"font",ttf:"font",eot:"font",otf:"font"}[e.toLowerCase()]||"empty"}function h(e){return"stx-"+e.replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"").toLowerCase().slice(0,30)+"-cache"}function x(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function b(e,t){let r=e.pwa;if(!r?.enabled)return{mode:"generate",modules:[],skipWaiting:!0,clientsClaim:!0};let n=r.serviceWorker||{},c=r.routes||[],a=[{name:"workbox-precaching",exports:["precacheAndRoute","cleanupOutdatedCaches"]},{name:"workbox-routing",exports:["registerRoute","NavigationRoute","setDefaultHandler"]}],i=new Set;for(let o of c)i.add(g(o.strategy));if(i.size>0)a.push({name:"workbox-strategies",exports:Array.from(i)});if(c.some((o)=>o.maxAgeSeconds||o.maxEntries)||r.cacheStorage)a.push({name:"workbox-expiration",exports:["ExpirationPlugin"]});if(c.some((o)=>o.strategy==="network-first"||o.strategy==="stale-while-revalidate"))a.push({name:"workbox-cacheable-response",exports:["CacheableResponsePlugin"]});if(r.backgroundSync?.enabled)a.push({name:"workbox-background-sync",exports:["BackgroundSyncPlugin","Queue"]});if(n.navigationPreload)a.push({name:"workbox-navigation-preload",exports:["enable"]});let l=t?Ue(t,e):void 0;return{mode:"generate",modules:a,precacheManifest:l?.entries,skipWaiting:n.skipWaiting??!0,clientsClaim:n.clientsClaim??!0,offlineFallback:r.offline?.enabled?"/offline.html":void 0,navigationPreload:n.navigationPreload??!1,cacheVersion:n.cacheVersion||"1.0.0"}}function R(e,t){let r=e.pwa;if(!r?.enabled)return"";let n=b(e,t),c=r.serviceWorker||{},{push:a,backgroundSync:i}=r,s=t?Ue(t,e):null,l=s?
|
|
20
|
+
`)}function p(e){if(e.startsWith("*.")){let t=e.slice(2);return`({ request }) => request.destination === '${f(t)}'`}if(e.endsWith("/**"))return`({ url }) => url.pathname.startsWith('${e.slice(0,-3)}')`;if(e.endsWith("/*")){let t=e.slice(0,-2);return`({ url }) => url.pathname.startsWith('${t}') && !url.pathname.slice(${t.length+1}).includes('/')`}if(e.includes("*")&&!e.startsWith("*")){let[t,r]=e.split("*");return`({ url }) => url.pathname.startsWith('${t}') && url.pathname.endsWith('${r}')`}if(e==="/"||!e.includes("*"))return`({ url }) => url.pathname === '${e}'`;return`new RegExp('${x(e).replace(/\\\*/g,".*")}')`}function f(e){return{js:"script",mjs:"script",css:"style",html:"document",htm:"document",png:"image",jpg:"image",jpeg:"image",gif:"image",svg:"image",webp:"image",avif:"image",ico:"image",woff:"font",woff2:"font",ttf:"font",eot:"font",otf:"font"}[e.toLowerCase()]||"empty"}function h(e){return"stx-"+e.replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"").toLowerCase().slice(0,30)+"-cache"}function x(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function b(e,t){let r=e.pwa;if(!r?.enabled)return{mode:"generate",modules:[],skipWaiting:!0,clientsClaim:!0};let n=r.serviceWorker||{},c=r.routes||[],a=[{name:"workbox-precaching",exports:["precacheAndRoute","cleanupOutdatedCaches"]},{name:"workbox-routing",exports:["registerRoute","NavigationRoute","setDefaultHandler"]}],i=new Set;for(let o of c)i.add(g(o.strategy));if(i.size>0)a.push({name:"workbox-strategies",exports:Array.from(i)});if(c.some((o)=>o.maxAgeSeconds||o.maxEntries)||r.cacheStorage)a.push({name:"workbox-expiration",exports:["ExpirationPlugin"]});if(c.some((o)=>o.strategy==="network-first"||o.strategy==="stale-while-revalidate"))a.push({name:"workbox-cacheable-response",exports:["CacheableResponsePlugin"]});if(r.backgroundSync?.enabled)a.push({name:"workbox-background-sync",exports:["BackgroundSyncPlugin","Queue"]});if(n.navigationPreload)a.push({name:"workbox-navigation-preload",exports:["enable"]});let l=t?Ue(t,e):void 0;return{mode:"generate",modules:a,precacheManifest:l?.entries,skipWaiting:n.skipWaiting??!0,clientsClaim:n.clientsClaim??!0,offlineFallback:r.offline?.enabled?"/offline.html":void 0,navigationPreload:n.navigationPreload??!1,cacheVersion:n.cacheVersion||"1.0.0"}}function R(e,t){let r=e.pwa;if(!r?.enabled)return"";let n=b(e,t),c=r.serviceWorker||{},{push:a,backgroundSync:i}=r,s=t?Ue(t,e):null,l=s?Tn(s):"[]",o=k(n.modules),u=d(e);return`/**
|
|
21
21
|
* Service Worker - Generated by stx with Workbox
|
|
22
22
|
* Cache Version: ${n.cacheVersion}
|
|
23
23
|
*
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{El,ta,Tl,$l,na,Rl,Al,Pl,Il,ra,Ol,Kg}from"./chunk-ady8cnpb.js";import{da,jl}from"./chunk-vct6dec8.js";import{Q,ee,te,Nn,me,Te,Kr,gt,Xt,Dn,Mn,Ln,ne,jn,Bn,Xr}from"./chunk-cfpw4c6b.js";import{Vl}from"./chunk-416jy1m5.js";import"./chunk-c0ejyxfj.js";export{ee as DEFAULT_FORMATS,te as DEFAULT_QUALITY,Q as DEFAULT_WIDTHS,Xr as ImageProcessingError,$l as clearImageCache,na as createImageDirective,jl as createImageHandler,Al as createImagePlugin,Kg as defaultImageConfig,Bn as formatSize,ra as generateImageManifest,Xt as generateSizes,gt as generateSrcSet,Dn as getFallbackVariant,Kr as getImageMetadata,ne as getMimeType,jn as getTotalSize,Mn as groupVariantsByFormat,da as handleImageRequest,Rl as imageDirective,me as isImageBackendAvailable,Ln as isImageFile,Nn as isSharpAvailable,Il as optimizeDirectory,Pl as optimizeImage,ta as parseImageComponent,Te as processImage,Tl as processImageComponents,El as renderImageComponent,Vl as rewriteImagesWithSiblings,Ol as writeImageManifest};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ug}from"./chunk-nqases6m.js";import"./chunk-286yy223.js";import"./chunk-bhbcm77r.js";import"./chunk-na6yveav.js";import"./chunk-0b5kxf5j.js";import"./chunk-cb478dy9.js";import"./chunk-ee9f9ety.js";import"./chunk-gybdzsj7.js";import"./chunk-zxfptbac.js";import"./chunk-605b93pe.js";import"./chunk-x8js27hd.js";import"./chunk-yewd8836.js";import"./chunk-7vpzzr5k.js";import"./chunk-jp0dachh.js";import"./chunk-27rzdq3n.js";import"./chunk-bq9xf8nq.js";import"./chunk-2yxva96k.js";import"./chunk-9f6qx8b9.js";export{Ug as startProductionServer};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
function c(i){if(!i.startsWith("/")||/[?#\\]/.test(i))throw Error(`Invalid route rule pattern: ${i}`);let t=i==="/"?[]:i.slice(1).split("/");if(t.some((r,e)=>!r||r.includes("*")&&r!=="*"&&r!=="**"||r==="**"&&e!==t.length-1||r.startsWith(":")&&!/^:[\w]+$/.test(r)))throw Error(`Unsupported route rule pattern: ${i}`);return t}function
|
|
3
|
-
export{
|
|
2
|
+
function c(i){if(!i.startsWith("/")||/[?#\\]/.test(i))throw Error(`Invalid route rule pattern: ${i}`);let t=i==="/"?[]:i.slice(1).split("/");if(t.some((r,e)=>!r||r.includes("*")&&r!=="*"&&r!=="**"||r==="**"&&e!==t.length-1||r.startsWith(":")&&!/^:[\w]+$/.test(r)))throw Error(`Unsupported route rule pattern: ${i}`);return t}function mo(i){for(let[t,r]of Object.entries(i)){if(c(t),!r||typeof r!=="object"||Object.keys(r).some((e)=>e!=="rendering"&&e!=="cache"))throw Error(`Unsupported route rule for ${t}`);if(r.rendering!==void 0&&r.rendering!=="prerender"&&r.rendering!=="dynamic")throw Error(`Unsupported rendering mode for ${t}`);if(r.cache!==void 0&&r.cache!==!1){let e=r.cache;if(!e||e.public!==!0||Object.keys(e).some((n)=>!["public","maxAge","swr"].includes(n))||!Number.isFinite(e.maxAge)||e.maxAge<=0||e.swr!==void 0&&(!Number.isFinite(e.swr)||e.swr<0))throw Error(`Route cache for ${t} requires public: true, maxAge > 0 and swr >= 0`);if(r.rendering==="prerender")throw Error(`Prerendered route ${t} cannot revalidate; use dynamic rendering with cache`)}}}function On(i={}){mo(i);let t=(e)=>e==="**"?0:e==="*"?1:e.startsWith(":")?2:3,r=Object.entries(i).map(([e,n])=>({pattern:e,parts:c(e),rule:n}));return r.sort((e,n)=>{for(let o=0;o<Math.max(e.parts.length,n.parts.length);o++){let s=(n.parts[o]===void 0?4:t(n.parts[o]))-(e.parts[o]===void 0?4:t(e.parts[o]));if(s)return s}return e.pattern.localeCompare(n.pattern)}),(e)=>{let n=e==="/"?[]:e.replace(/\/$/,"").slice(1).split("/");return r.find(({parts:o})=>o.every((s,u)=>s==="**"||n[u]!==void 0&&(s==="*"||s.startsWith(":")||s===n[u]))&&(o.at(-1)==="**"||o.length===n.length))?.rule??{}}}
|
|
3
|
+
export{mo,On};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Jo,Yo,Zo,Qo,ks,_s,Bh,Fh,zh,Hh,Cs,Vh}from"./chunk-x8js27hd.js";import"./chunk-bq9xf8nq.js";export{Vh as generateDefaultRobotsTxt,Cs as generateRobotsTxt,Fh as generateSitemap,zh as generateSitemapIndex,Qo as injectSeoTags,ks as metaDirective,Jo as processMetaDirectives,Zo as processSeoDirective,Yo as processStructuredData,Bh as registerSeoDirectives,Hh as scanForSitemapEntries,_s as structuredDataDirective};
|
|
@@ -159,7 +159,7 @@ else {
|
|
|
159
159
|
stxIslands.initIslands();
|
|
160
160
|
}
|
|
161
161
|
})();
|
|
162
|
-
</script>`}function b(e){let t=e.match(/<([A-Z][a-zA-Z0-9]+)[\s/>]/);if(t)return t[1];let n=e.match(/<([a-z][a-z0-9]*-[a-z0-9-]+)[\s/>]/);if(n)return n[1];return null}function w(e,t){let n={},r=/:([a-zA-Z_][\w-]*)\s*=\s*"([^"]+)"/g,i;while((i=r.exec(e))!==null){let d=i[1],o=i[2];if(o in t)n[d]=t[o];else n[d]=o}return n}function
|
|
162
|
+
</script>`}function b(e){let t=e.match(/<([A-Z][a-zA-Z0-9]+)[\s/>]/);if(t)return t[1];let n=e.match(/<([a-z][a-z0-9]*-[a-z0-9-]+)[\s/>]/);if(n)return n[1];return null}function w(e,t){let n={},r=/:([a-zA-Z_][\w-]*)\s*=\s*"([^"]+)"/g,i;while((i=r.exec(e))!==null){let d=i[1],o=i[2];if(o in t)n[d]=t[o];else n[d]=o}return n}function Xl(){let e=new Map;return{islands:e,register(t){e.set(t.id,t)},get(t){return e.get(t)},async hydrate(t){let n=e.get(t);if(!n||n.hydrated)return;if(n.hydrated=!0,typeof window<"u"&&typeof window.dispatchEvent==="function")window.dispatchEvent(new CustomEvent("stx:hydrate",{detail:{id:t,component:n.component}}))},async hydrateAll(){let t=Array.from(e.values()).filter((n)=>!n.hydrated).map((n)=>this.hydrate(n.id));await Promise.all(t)}}}function I(e){return`
|
|
163
163
|
<script data-hydrate="${e}">
|
|
164
164
|
(function() {
|
|
165
165
|
const island = document.querySelector('[data-island="${e}"]');
|
|
@@ -311,7 +311,7 @@ else {
|
|
|
311
311
|
});
|
|
312
312
|
})();
|
|
313
313
|
</script>
|
|
314
|
-
`}function
|
|
314
|
+
`}function Gl(e,t={},n){let r=e,i=!1,d=/@client:(load|idle|visible|media|only|hover|event)/i.test(e);if(r=u(r,"load",t),r=u(r,"idle",t),r=u(r,"visible",t),r=u(r,"media",t),r=M(r),r=u(r,"hover",t),r=u(r,"event",t),i=d&&r!==e,i)r+=`
|
|
315
315
|
`+v();return r}function u(e,t,n){let r=new RegExp(`@client:${t}(?:\\s*\\(([^)]*)\\))?\\s*([\\s\\S]*?)@endclient`,"gi");return e.replace(r,(i,d,o)=>{let a={strategy:t};if(d)try{let E=d.split(",").map((h)=>h.trim());for(let h of E){let[m,g]=h.split(":").map((p)=>p.trim());if(m&&g){let p=g.replace(/^['"]|['"]$/g,"");a[m]=p}}}catch{}let s=`island-${Math.random().toString(36).substring(2,9)}`,y=b(o.trim()),f=w(o.trim(),n),c=[];if(a.rootMargin)c.push(`data-root-margin="${a.rootMargin}"`);if(a.threshold!==void 0)c.push(`data-threshold="${a.threshold}"`);if(a.media)c.push(`data-media="${a.media}"`);if(a.event)c.push(`data-event="${a.event}"`);if(y)c.push(`data-component="${y}"`);let x=Object.keys(f).length>0?`
|
|
316
316
|
<script type="application/json" data-island-props="${s}">${JSON.stringify(f)}</script>`:"",l="";switch(t){case"load":l=I(s);break;case"idle":l=L(s,a);break;case"visible":l=C(s,a);break;case"media":l=S(s,a);break;case"hover":l=k(s);break;case"event":l=H(s,a);break}return`
|
|
317
317
|
<div data-island="${s}"
|
|
@@ -342,7 +342,7 @@ else {
|
|
|
342
342
|
}
|
|
343
343
|
})();
|
|
344
344
|
</script>
|
|
345
|
-
`})}function
|
|
345
|
+
`})}function Jl(){return`
|
|
346
346
|
/* Island base styles */
|
|
347
347
|
.stx-island {
|
|
348
348
|
display: contents;
|
|
@@ -383,9 +383,9 @@ else {
|
|
|
383
383
|
.stx-island.hydrated {
|
|
384
384
|
opacity: 1;
|
|
385
385
|
}
|
|
386
|
-
`}function
|
|
386
|
+
`}function Yl(e){if(typeof window>"u")return;let t=document.querySelector(`[data-island="${e}"]`);if(!t||t.classList.contains("hydrated"))return;t.classList.add("hydrated"),t.dispatchEvent(new CustomEvent("stx:hydrated",{bubbles:!0}))}function Zl(e){if(typeof window>"u")return;document.querySelectorAll(`[data-strategy="${e}"]:not(.hydrated)`).forEach((n)=>{n.classList.add("hydrated"),n.dispatchEvent(new CustomEvent("stx:hydrated",{bubbles:!0}))})}function Ql(){if(typeof window>"u")return;document.querySelectorAll(".stx-island:not(.hydrated)").forEach((t)=>{t.classList.add("hydrated"),t.dispatchEvent(new CustomEvent("stx:hydrated",{bubbles:!0}))})}function eu(e){if(typeof window>"u")return!1;return document.querySelector(`[data-island="${e}"]`)?.classList.contains("hydrated")??!1}function tu(e){return new Promise((t)=>{if(typeof window>"u"){t();return}let n=document.querySelector(`[data-island="${e}"]`);if(!n){t();return}if(n.classList.contains("hydrated")){t();return}n.addEventListener("stx:hydrated",()=>t(),{once:!0})})}function nu(e){return e.replace(/@static\s*([\s\S]*?)@endstatic/gi,(t,n)=>`<div class="stx-static">${n.trim()}</div>`)}function ru(e){let t=e.map((n)=>({id:n.id,component:n.component,strategy:n.options.strategy,props:n.props}));return`
|
|
387
387
|
<script type="application/json" id="stx-island-manifest">
|
|
388
388
|
${JSON.stringify(t)}
|
|
389
389
|
</script>
|
|
390
|
-
`}var
|
|
391
|
-
export{
|
|
390
|
+
`}var Em={processPartialHydrationDirectives:Gl,processStaticDirectives:nu,generatePartialHydrationCSS:Jl,generateIslandManifest:ru,createIslandRegistry:Xl,hydrateIsland:Yl,hydrateByStrategy:Zl,hydrateAll:Ql,isHydrated:eu,onHydrated:tu};
|
|
391
|
+
export{Xl,Gl,Jl,Yl,Zl,Ql,eu,tu,nu,ru,Em};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import l from"fs";import u from"path";var m=/\b(?:state|derived|effect|ref|reactive|computed|watch|watchEffect|useModel)\s*(?:<[^<>()]*>)?\s*\(/,g=/(?:^|\n)\s*(?:import|export)\s+(?:[^'"]*?\sfrom\s+)?['"](\.[^'"]*)['"]/g,b=["",".ts",".tsx",".js",".jsx",".mts",".mjs","/index.ts","/index.js"],x=3;function h(e,t){let r=u.resolve(u.dirname(t),e);for(let o of b){let s=r+o;try{if(l.statSync(s).isFile())return s}catch{}}return null}function
|
|
3
|
-
export{
|
|
2
|
+
import l from"fs";import u from"path";var m=/\b(?:state|derived|effect|ref|reactive|computed|watch|watchEffect|useModel)\s*(?:<[^<>()]*>)?\s*\(/,g=/(?:^|\n)\s*(?:import|export)\s+(?:[^'"]*?\sfrom\s+)?['"](\.[^'"]*)['"]/g,b=["",".ts",".tsx",".js",".jsx",".mts",".mjs","/index.ts","/index.js"],x=3;function h(e,t){let r=u.resolve(u.dirname(t),e);for(let o of b){let s=r+o;try{if(l.statSync(s).isFile())return s}catch{}}return null}function Or(e,t,r=0,o=new Set){if(!t||r>=x)return!1;for(let s of e.matchAll(g)){let n=h(s[1],t);if(!n||o.has(n))continue;o.add(n);let i;try{i=l.readFileSync(n,"utf8")}catch{continue}if(m.test(i))return!0;if(Or(i,n,r+1,o))return!0}return!1}var k=["batch","cachedQuery","clearServerData","computed","configureFetch","defineEmits","defineExpose","definePageMeta","defineProps","defineSlots","defineStore","derived","effect","flushKeptState","forgetKeptState","goBack","goForward","inject","invalidateRoute","isDerived","isSignal","keptState","memo","navigate","nextTick","onBeforeMount","onBeforeUnmount","onDestroy","onMount","onMounted","onUnmounted","peek","provide","reactive","ref","refDebounced","refresh","registerStoresClient","setKeptScope","setRouteParams","sharedRequest","state","untrack","useAsync","useBroadcastStream","useClickOutside","useColorMode","useCookie","useCounter","useDark","useDebounce","useDebounceFn","useDebouncedValue","useDocumentVisibility","useEventListener","useFetch","useFocus","useHead","useId","useInterval","useLocalStorage","useMediaQuery","useModel","useMutation","useNativeDesktop","useOptimistic","usePreferredContrast","usePreferredDark","usePreferredLight","usePreferredReducedMotion","useQuery","useReactiveProp","useRef","useRoute","useRouteParam","useRouteParams","useScrollLock","useSearchParams","useSeoMeta","useSessionStorage","useSlots","useStore","useThrottle","useThrottleFn","useTimeout","useTimeoutFn","useToggle","useWebSocket","watch","watchEffect","watchMultiple","withDefaults"],al=["onMount","onDestroy"];function at(e="const",t=[],r){let o=t.length?k.filter((s)=>!t.includes(s)):k;if(r!==void 0)o=o.filter((s)=>{let n=s.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");return new RegExp(`(^|[^\\w$])${n}(?![\\w$])`).test(r)});return`${e} { ${o.join(", ")} } = window.stx;`}var y=["defineEmits","defineExpose","definePageMeta","defineProps","defineSlots","withDefaults"];var S=k.filter((e)=>!y.includes(e));function $i(e){if(!e)return!1;return S.some((t)=>new RegExp(`\\b${t}\\s*(?:<[^>]*>)?\\s*\\(`).test(e))}var v=[/@if\s*=/,/@for\s*=/,/@show\s*=/,/@model\s*=/,/@bind:/,/@class\s*=/,/@style\s*=/,/\bx-data\s*=/,/\bstate\s*(?:<[^>]*>)?\s*\(/,/\bderived\s*(?:<[^>]*>)?\s*\(/,/\beffect\s*(?:<[^>]*>)?\s*\(/,/\bref\s*(?:<[^>]*>)?\s*\(/,/\bcomputed\s*(?:<[^>]*>)?\s*\(/,/\breactive\s*(?:<[^>]*>)?\s*\(/,/\bwatch\s*(?:<[^>]*>)?\s*\(/,/\bwatchEffect\s*(?:<[^>]*>)?\s*\(/,/\s:[a-z][\w-]*\s*=\s*["']/i,/\s:(?:if|else-if|else|for|show|text|html|model)\s*=/,/data-stx(?:-auto)?(?![-\w])/,/data-stx-scoped/],E=/\s@[a-z][\w.:-]*\s*=/i;function cl(e,t){if(!e)return!1;let r=f(e);return d(r,t)}function d(e,t){if(v.some((r)=>r.test(e)))return!0;if($i(e))return!0;return T(e,t)}function T(e,t){if(!t)return!1;for(let r of e.matchAll(/<script\b(?![^>]*\bserver\b)(?![^>]*\bsrc\s*=)[^>]*>([\s\S]*?)<\/script\s*>/gi))if(Or(r[1],t))return!0;return!1}function ll(e,t){if(!e)return!1;let r=f(e);return E.test(r)||d(r,t)}var R=["if","else-if","elseif","else","for","show","key","text","html","model","ref"];function ul(e){return R.includes(e.toLowerCase())}var Js=["x-text","x-html","x-model","x-show","x-if","x-for","x-cloak","x-ref","x-data","x-bind","x-class","x-style","x-tooltip","x-tooltip-position"],_=["x-init","x-transition","x-effect","x-on"],dl=[...Js,..._];function pl(){return`{${Js.map((e)=>`'${e}':1`).join(",")}}`}var Ri=["class","style","text","html","show","model","if","ref"];function fl(){return`{${Ri.map((e)=>e==="if"?"'if':1":`${e}:1`).join(",")}}`}var p=["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","keydown","keyup","keypress","input","change","submit","focus","blur","scroll","resize","touchstart","touchend","touchmove","contextmenu","wheel","pointerdown","pointerup","pointermove"];function gl(){return`/^(${p.join("|")})(?:\\.|$)/`}function ml(e){return p.some((t)=>e===t||e.startsWith(`${t}.`))}var w=65536,A=4,c=new Map;function f(e){if(!e)return e;if(!e.includes("<!--")&&!/<(?:pre|code)\b/i.test(e))return e;let t=e.length>=w;if(t){let s=c.get(e);if(s!==void 0)return s}let r=(s)=>s.replace(/(<[^>]*>)|([^<]+)/g,(n,i,a)=>i??" ".repeat(a.length)),o=e.replace(/(<pre\b[^>]*>)([\s\S]*?)(<\/pre>)/gi,(s,n,i,a)=>n+r(i)+a).replace(/(<code\b[^>]*>)([\s\S]*?)(<\/code>)/gi,(s,n,i,a)=>n+r(i)+a).replace(/<!--[\s\S]*?-->/g,(s)=>" ".repeat(s.length));if(t){while(c.size>=A){let s=c.keys().next();if(s.done)break;c.delete(s.value)}c.set(e,o)}return o}
|
|
3
|
+
export{Or,k,al,at,$i,cl,ll,ul,Js,dl,pl,Ri,fl,gl,ml};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var{WebView:p}=globalThis.Bun;import{existsSync as y,mkdirSync as b,readdirSync as v,statSync as S}from"fs";import l from"path";var h=16384;function M(e){if(/^https?:\/\//.test(e)||e.startsWith("file://"))return e;return`file://${l.resolve(e)}`}function g(e,n,t,o){return new Promise((s)=>{let i=!1,r,m,c=()=>{if(!i){if(i=!0,clearTimeout(m),r)clearTimeout(r);e.onNavigated=void 0,s()}};m=setTimeout(c,o),e.onNavigated=()=>{if(!i)r=setTimeout(c,t)};try{let u=e.navigate(n);if(u&&typeof u.catch==="function")u.catch(c)}catch{c()}})}async function w(e,n,t){let o=`!!document.querySelector(${JSON.stringify(n)})`,s=Date.now()+t;while(Date.now()<s){try{if(await e.evaluate(o))return}catch{}await new Promise((i)=>setTimeout(i,100))}}async function T(e){try{let n=await e.evaluate("Math.ceil(Math.max(document.documentElement.scrollHeight, document.documentElement.offsetHeight, document.body ? document.body.scrollHeight : 0, document.body ? document.body.offsetHeight : 0))");return typeof n==="number"&&Number.isFinite(n)&&n>0?Math.min(n,h):0}catch{return 0}}async function
|
|
3
|
-
export{
|
|
2
|
+
var{WebView:p}=globalThis.Bun;import{existsSync as y,mkdirSync as b,readdirSync as v,statSync as S}from"fs";import l from"path";var h=16384;function M(e){if(/^https?:\/\//.test(e)||e.startsWith("file://"))return e;return`file://${l.resolve(e)}`}function g(e,n,t,o){return new Promise((s)=>{let i=!1,r,m,c=()=>{if(!i){if(i=!0,clearTimeout(m),r)clearTimeout(r);e.onNavigated=void 0,s()}};m=setTimeout(c,o),e.onNavigated=()=>{if(!i)r=setTimeout(c,t)};try{let u=e.navigate(n);if(u&&typeof u.catch==="function")u.catch(c)}catch{c()}})}async function w(e,n,t){let o=`!!document.querySelector(${JSON.stringify(n)})`,s=Date.now()+t;while(Date.now()<s){try{if(await e.evaluate(o))return}catch{}await new Promise((i)=>setTimeout(i,100))}}async function T(e){try{let n=await e.evaluate("Math.ceil(Math.max(document.documentElement.scrollHeight, document.documentElement.offsetHeight, document.body ? document.body.scrollHeight : 0, document.body ? document.body.offsetHeight : 0))");return typeof n==="number"&&Number.isFinite(n)&&n>0?Math.min(n,h):0}catch{return 0}}async function Cl(e,n,t={}){let o=Math.min(t.width??1440,h),s=Math.min(t.height??2200,h),i=t.waitMs??800,r=t.timeoutMs??15000,m=t.format??"png",c=M(e),u=(f)=>new p({width:o,height:f,headless:!0,...t.backend?{backend:t.backend}:{}}),a=u(s);try{if(await g(a,c,i,r),t.waitSelector)await w(a,t.waitSelector,r);if(t.fullPage){let d=await T(a);if(d>s){if(a.close(),a=u(d),await g(a,c,i,r),t.waitSelector)await w(a,t.waitSelector,r)}}let f=await a.screenshot({encoding:"buffer",format:m});b(l.dirname(l.resolve(n)),{recursive:!0}),await Bun.write(n,f)}finally{a.close()}if(!y(n))throw Error(`Screenshot was not produced for ${e}`);return{input:e,output:n,bytes:S(n).size}}async function zg(e,n,t={}){b(n,{recursive:!0});let o;if(!/^https?:\/\//.test(e)&&y(e)&&S(e).isDirectory())o=v(e).filter((r)=>r.endsWith(".html")).map((r)=>l.join(e,r));else o=[e];let s=t.format??"png",i=[];for(let r of o){let m=/^https?:\/\//.test(r)?new URL(r).pathname.replace(/\W+/g,"-").replace(/^-|-$/g,"")||"index":l.basename(r).replace(/\.html?$/,"");i.push(await Cl(r,l.join(n,`${m}.${s}`),t))}return i}
|
|
3
|
+
export{Cl,zg};
|