@absolutejs/absolute 0.19.0-beta.1087 → 0.19.0-beta.1088

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/build.js CHANGED
@@ -10655,18 +10655,658 @@ var init_lib = __esm(() => {
10655
10655
  init_chunk_HTB5LLOP();
10656
10656
  });
10657
10657
 
10658
+ // node_modules/@tailwindcss/oxide-linux-x64-musl/tailwindcss-oxide.linux-x64-musl.node
10659
+ var require_tailwindcss_oxide_linux_x64_musl = __commonJS((exports, module) => {
10660
+ module.exports = __require("./tailwindcss-oxide.linux-x64-musl-vr6z8t87.node");
10661
+ });
10662
+
10663
+ // node_modules/@tailwindcss/oxide-linux-x64-musl/package.json
10664
+ var require_package = __commonJS((exports, module) => {
10665
+ module.exports = {
10666
+ name: "@tailwindcss/oxide-linux-x64-musl",
10667
+ version: "4.3.2",
10668
+ repository: {
10669
+ type: "git",
10670
+ url: "git+https://github.com/tailwindlabs/tailwindcss.git",
10671
+ directory: "crates/node/npm/linux-x64-musl"
10672
+ },
10673
+ os: [
10674
+ "linux"
10675
+ ],
10676
+ cpu: [
10677
+ "x64"
10678
+ ],
10679
+ main: "tailwindcss-oxide.linux-x64-musl.node",
10680
+ files: [
10681
+ "tailwindcss-oxide.linux-x64-musl.node"
10682
+ ],
10683
+ publishConfig: {
10684
+ provenance: true,
10685
+ access: "public"
10686
+ },
10687
+ license: "MIT",
10688
+ engines: {
10689
+ node: ">= 20"
10690
+ },
10691
+ libc: [
10692
+ "musl"
10693
+ ]
10694
+ };
10695
+ });
10696
+
10697
+ // node_modules/@tailwindcss/oxide-linux-x64-gnu/tailwindcss-oxide.linux-x64-gnu.node
10698
+ var require_tailwindcss_oxide_linux_x64_gnu = __commonJS((exports, module) => {
10699
+ module.exports = __require("./tailwindcss-oxide.linux-x64-gnu-vcb5zrt4.node");
10700
+ });
10701
+
10702
+ // node_modules/@tailwindcss/oxide-linux-x64-gnu/package.json
10703
+ var require_package2 = __commonJS((exports, module) => {
10704
+ module.exports = {
10705
+ name: "@tailwindcss/oxide-linux-x64-gnu",
10706
+ version: "4.3.2",
10707
+ repository: {
10708
+ type: "git",
10709
+ url: "git+https://github.com/tailwindlabs/tailwindcss.git",
10710
+ directory: "crates/node/npm/linux-x64-gnu"
10711
+ },
10712
+ os: [
10713
+ "linux"
10714
+ ],
10715
+ cpu: [
10716
+ "x64"
10717
+ ],
10718
+ main: "tailwindcss-oxide.linux-x64-gnu.node",
10719
+ files: [
10720
+ "tailwindcss-oxide.linux-x64-gnu.node"
10721
+ ],
10722
+ publishConfig: {
10723
+ provenance: true,
10724
+ access: "public"
10725
+ },
10726
+ license: "MIT",
10727
+ engines: {
10728
+ node: ">= 20"
10729
+ },
10730
+ libc: [
10731
+ "glibc"
10732
+ ]
10733
+ };
10734
+ });
10735
+
10736
+ // node_modules/@tailwindcss/oxide/index.js
10737
+ var require_oxide = __commonJS((exports, module) => {
10738
+ var { readFileSync: readFileSync7 } = __require("fs");
10739
+ var nativeBinding = null;
10740
+ var loadErrors = [];
10741
+ var isMusl = () => {
10742
+ let musl = false;
10743
+ if (process.platform === "linux") {
10744
+ musl = isMuslFromFilesystem();
10745
+ if (musl === null) {
10746
+ musl = isMuslFromReport();
10747
+ }
10748
+ if (musl === null) {
10749
+ musl = isMuslFromChildProcess();
10750
+ }
10751
+ }
10752
+ return musl;
10753
+ };
10754
+ var isFileMusl = (f2) => f2.includes("libc.musl-") || f2.includes("ld-musl-");
10755
+ var isMuslFromFilesystem = () => {
10756
+ try {
10757
+ return readFileSync7("/usr/bin/ldd", "utf-8").includes("musl");
10758
+ } catch {
10759
+ return null;
10760
+ }
10761
+ };
10762
+ var isMuslFromReport = () => {
10763
+ let report = null;
10764
+ if (typeof process.report?.getReport === "function") {
10765
+ process.report.excludeNetwork = true;
10766
+ report = process.report.getReport();
10767
+ }
10768
+ if (!report) {
10769
+ return null;
10770
+ }
10771
+ if (report.header && report.header.glibcVersionRuntime) {
10772
+ return false;
10773
+ }
10774
+ if (Array.isArray(report.sharedObjects)) {
10775
+ if (report.sharedObjects.some(isFileMusl)) {
10776
+ return true;
10777
+ }
10778
+ }
10779
+ return false;
10780
+ };
10781
+ var isMuslFromChildProcess = () => {
10782
+ try {
10783
+ return __require("child_process").execSync("ldd --version", { encoding: "utf8" }).includes("musl");
10784
+ } catch (e) {
10785
+ return false;
10786
+ }
10787
+ };
10788
+ function requireNative() {
10789
+ if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) {
10790
+ try {
10791
+ return __require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
10792
+ } catch (err) {
10793
+ loadErrors.push(err);
10794
+ }
10795
+ } else if (process.platform === "android") {
10796
+ if (process.arch === "arm64") {
10797
+ try {
10798
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.android-arm64.node");})();
10799
+ } catch (e) {
10800
+ loadErrors.push(e);
10801
+ }
10802
+ try {
10803
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-android-arm64");})();
10804
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-android-arm64/package.json");})().version;
10805
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
10806
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10807
+ }
10808
+ return binding;
10809
+ } catch (e) {
10810
+ loadErrors.push(e);
10811
+ }
10812
+ } else if (process.arch === "arm") {
10813
+ try {
10814
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.android-arm-eabi.node");})();
10815
+ } catch (e) {
10816
+ loadErrors.push(e);
10817
+ }
10818
+ try {
10819
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-android-arm-eabi");})();
10820
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-android-arm-eabi/package.json");})().version;
10821
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
10822
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10823
+ }
10824
+ return binding;
10825
+ } catch (e) {
10826
+ loadErrors.push(e);
10827
+ }
10828
+ } else {
10829
+ loadErrors.push(new Error(`Unsupported architecture on Android ${process.arch}`));
10830
+ }
10831
+ } else if (process.platform === "win32") {
10832
+ if (process.arch === "x64") {
10833
+ if (process.config?.variables?.shlib_suffix === "dll.a" || process.config?.variables?.node_target_type === "shared_library") {
10834
+ try {
10835
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.win32-x64-gnu.node");})();
10836
+ } catch (e) {
10837
+ loadErrors.push(e);
10838
+ }
10839
+ try {
10840
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-win32-x64-gnu");})();
10841
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-win32-x64-gnu/package.json");})().version;
10842
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
10843
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10844
+ }
10845
+ return binding;
10846
+ } catch (e) {
10847
+ loadErrors.push(e);
10848
+ }
10849
+ } else {
10850
+ try {
10851
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.win32-x64-msvc.node");})();
10852
+ } catch (e) {
10853
+ loadErrors.push(e);
10854
+ }
10855
+ try {
10856
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-win32-x64-msvc");})();
10857
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-win32-x64-msvc/package.json");})().version;
10858
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
10859
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10860
+ }
10861
+ return binding;
10862
+ } catch (e) {
10863
+ loadErrors.push(e);
10864
+ }
10865
+ }
10866
+ } else if (process.arch === "ia32") {
10867
+ try {
10868
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.win32-ia32-msvc.node");})();
10869
+ } catch (e) {
10870
+ loadErrors.push(e);
10871
+ }
10872
+ try {
10873
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-win32-ia32-msvc");})();
10874
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-win32-ia32-msvc/package.json");})().version;
10875
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
10876
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10877
+ }
10878
+ return binding;
10879
+ } catch (e) {
10880
+ loadErrors.push(e);
10881
+ }
10882
+ } else if (process.arch === "arm64") {
10883
+ try {
10884
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.win32-arm64-msvc.node");})();
10885
+ } catch (e) {
10886
+ loadErrors.push(e);
10887
+ }
10888
+ try {
10889
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-win32-arm64-msvc");})();
10890
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-win32-arm64-msvc/package.json");})().version;
10891
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
10892
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10893
+ }
10894
+ return binding;
10895
+ } catch (e) {
10896
+ loadErrors.push(e);
10897
+ }
10898
+ } else {
10899
+ loadErrors.push(new Error(`Unsupported architecture on Windows: ${process.arch}`));
10900
+ }
10901
+ } else if (process.platform === "darwin") {
10902
+ try {
10903
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.darwin-universal.node");})();
10904
+ } catch (e) {
10905
+ loadErrors.push(e);
10906
+ }
10907
+ try {
10908
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-darwin-universal");})();
10909
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-darwin-universal/package.json");})().version;
10910
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
10911
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10912
+ }
10913
+ return binding;
10914
+ } catch (e) {
10915
+ loadErrors.push(e);
10916
+ }
10917
+ if (process.arch === "x64") {
10918
+ try {
10919
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.darwin-x64.node");})();
10920
+ } catch (e) {
10921
+ loadErrors.push(e);
10922
+ }
10923
+ try {
10924
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-darwin-x64");})();
10925
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-darwin-x64/package.json");})().version;
10926
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
10927
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10928
+ }
10929
+ return binding;
10930
+ } catch (e) {
10931
+ loadErrors.push(e);
10932
+ }
10933
+ } else if (process.arch === "arm64") {
10934
+ try {
10935
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.darwin-arm64.node");})();
10936
+ } catch (e) {
10937
+ loadErrors.push(e);
10938
+ }
10939
+ try {
10940
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-darwin-arm64");})();
10941
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-darwin-arm64/package.json");})().version;
10942
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
10943
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10944
+ }
10945
+ return binding;
10946
+ } catch (e) {
10947
+ loadErrors.push(e);
10948
+ }
10949
+ } else {
10950
+ loadErrors.push(new Error(`Unsupported architecture on macOS: ${process.arch}`));
10951
+ }
10952
+ } else if (process.platform === "freebsd") {
10953
+ if (process.arch === "x64") {
10954
+ try {
10955
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.freebsd-x64.node");})();
10956
+ } catch (e) {
10957
+ loadErrors.push(e);
10958
+ }
10959
+ try {
10960
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-freebsd-x64");})();
10961
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-freebsd-x64/package.json");})().version;
10962
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
10963
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10964
+ }
10965
+ return binding;
10966
+ } catch (e) {
10967
+ loadErrors.push(e);
10968
+ }
10969
+ } else if (process.arch === "arm64") {
10970
+ try {
10971
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.freebsd-arm64.node");})();
10972
+ } catch (e) {
10973
+ loadErrors.push(e);
10974
+ }
10975
+ try {
10976
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-freebsd-arm64");})();
10977
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-freebsd-arm64/package.json");})().version;
10978
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
10979
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10980
+ }
10981
+ return binding;
10982
+ } catch (e) {
10983
+ loadErrors.push(e);
10984
+ }
10985
+ } else {
10986
+ loadErrors.push(new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));
10987
+ }
10988
+ } else if (process.platform === "linux") {
10989
+ if (process.arch === "x64") {
10990
+ if (isMusl()) {
10991
+ try {
10992
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.linux-x64-musl.node");})();
10993
+ } catch (e) {
10994
+ loadErrors.push(e);
10995
+ }
10996
+ try {
10997
+ const binding = require_tailwindcss_oxide_linux_x64_musl();
10998
+ const bindingPackageVersion = require_package().version;
10999
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
11000
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
11001
+ }
11002
+ return binding;
11003
+ } catch (e) {
11004
+ loadErrors.push(e);
11005
+ }
11006
+ } else {
11007
+ try {
11008
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.linux-x64-gnu.node");})();
11009
+ } catch (e) {
11010
+ loadErrors.push(e);
11011
+ }
11012
+ try {
11013
+ const binding = require_tailwindcss_oxide_linux_x64_gnu();
11014
+ const bindingPackageVersion = require_package2().version;
11015
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
11016
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
11017
+ }
11018
+ return binding;
11019
+ } catch (e) {
11020
+ loadErrors.push(e);
11021
+ }
11022
+ }
11023
+ } else if (process.arch === "arm64") {
11024
+ if (isMusl()) {
11025
+ try {
11026
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.linux-arm64-musl.node");})();
11027
+ } catch (e) {
11028
+ loadErrors.push(e);
11029
+ }
11030
+ try {
11031
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-arm64-musl");})();
11032
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-arm64-musl/package.json");})().version;
11033
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
11034
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
11035
+ }
11036
+ return binding;
11037
+ } catch (e) {
11038
+ loadErrors.push(e);
11039
+ }
11040
+ } else {
11041
+ try {
11042
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.linux-arm64-gnu.node");})();
11043
+ } catch (e) {
11044
+ loadErrors.push(e);
11045
+ }
11046
+ try {
11047
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-arm64-gnu");})();
11048
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-arm64-gnu/package.json");})().version;
11049
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
11050
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
11051
+ }
11052
+ return binding;
11053
+ } catch (e) {
11054
+ loadErrors.push(e);
11055
+ }
11056
+ }
11057
+ } else if (process.arch === "arm") {
11058
+ if (isMusl()) {
11059
+ try {
11060
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.linux-arm-musleabihf.node");})();
11061
+ } catch (e) {
11062
+ loadErrors.push(e);
11063
+ }
11064
+ try {
11065
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-arm-musleabihf");})();
11066
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-arm-musleabihf/package.json");})().version;
11067
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
11068
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
11069
+ }
11070
+ return binding;
11071
+ } catch (e) {
11072
+ loadErrors.push(e);
11073
+ }
11074
+ } else {
11075
+ try {
11076
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.linux-arm-gnueabihf.node");})();
11077
+ } catch (e) {
11078
+ loadErrors.push(e);
11079
+ }
11080
+ try {
11081
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-arm-gnueabihf");})();
11082
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-arm-gnueabihf/package.json");})().version;
11083
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
11084
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
11085
+ }
11086
+ return binding;
11087
+ } catch (e) {
11088
+ loadErrors.push(e);
11089
+ }
11090
+ }
11091
+ } else if (process.arch === "loong64") {
11092
+ if (isMusl()) {
11093
+ try {
11094
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.linux-loong64-musl.node");})();
11095
+ } catch (e) {
11096
+ loadErrors.push(e);
11097
+ }
11098
+ try {
11099
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-loong64-musl");})();
11100
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-loong64-musl/package.json");})().version;
11101
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
11102
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
11103
+ }
11104
+ return binding;
11105
+ } catch (e) {
11106
+ loadErrors.push(e);
11107
+ }
11108
+ } else {
11109
+ try {
11110
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.linux-loong64-gnu.node");})();
11111
+ } catch (e) {
11112
+ loadErrors.push(e);
11113
+ }
11114
+ try {
11115
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-loong64-gnu");})();
11116
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-loong64-gnu/package.json");})().version;
11117
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
11118
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
11119
+ }
11120
+ return binding;
11121
+ } catch (e) {
11122
+ loadErrors.push(e);
11123
+ }
11124
+ }
11125
+ } else if (process.arch === "riscv64") {
11126
+ if (isMusl()) {
11127
+ try {
11128
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.linux-riscv64-musl.node");})();
11129
+ } catch (e) {
11130
+ loadErrors.push(e);
11131
+ }
11132
+ try {
11133
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-riscv64-musl");})();
11134
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-riscv64-musl/package.json");})().version;
11135
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
11136
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
11137
+ }
11138
+ return binding;
11139
+ } catch (e) {
11140
+ loadErrors.push(e);
11141
+ }
11142
+ } else {
11143
+ try {
11144
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.linux-riscv64-gnu.node");})();
11145
+ } catch (e) {
11146
+ loadErrors.push(e);
11147
+ }
11148
+ try {
11149
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-riscv64-gnu");})();
11150
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-riscv64-gnu/package.json");})().version;
11151
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
11152
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
11153
+ }
11154
+ return binding;
11155
+ } catch (e) {
11156
+ loadErrors.push(e);
11157
+ }
11158
+ }
11159
+ } else if (process.arch === "ppc64") {
11160
+ try {
11161
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.linux-ppc64-gnu.node");})();
11162
+ } catch (e) {
11163
+ loadErrors.push(e);
11164
+ }
11165
+ try {
11166
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-ppc64-gnu");})();
11167
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-ppc64-gnu/package.json");})().version;
11168
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
11169
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
11170
+ }
11171
+ return binding;
11172
+ } catch (e) {
11173
+ loadErrors.push(e);
11174
+ }
11175
+ } else if (process.arch === "s390x") {
11176
+ try {
11177
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.linux-s390x-gnu.node");})();
11178
+ } catch (e) {
11179
+ loadErrors.push(e);
11180
+ }
11181
+ try {
11182
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-s390x-gnu");})();
11183
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-linux-s390x-gnu/package.json");})().version;
11184
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
11185
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
11186
+ }
11187
+ return binding;
11188
+ } catch (e) {
11189
+ loadErrors.push(e);
11190
+ }
11191
+ } else {
11192
+ loadErrors.push(new Error(`Unsupported architecture on Linux: ${process.arch}`));
11193
+ }
11194
+ } else if (process.platform === "openharmony") {
11195
+ if (process.arch === "arm64") {
11196
+ try {
11197
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.openharmony-arm64.node");})();
11198
+ } catch (e) {
11199
+ loadErrors.push(e);
11200
+ }
11201
+ try {
11202
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-openharmony-arm64");})();
11203
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-openharmony-arm64/package.json");})().version;
11204
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
11205
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
11206
+ }
11207
+ return binding;
11208
+ } catch (e) {
11209
+ loadErrors.push(e);
11210
+ }
11211
+ } else if (process.arch === "x64") {
11212
+ try {
11213
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.openharmony-x64.node");})();
11214
+ } catch (e) {
11215
+ loadErrors.push(e);
11216
+ }
11217
+ try {
11218
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-openharmony-x64");})();
11219
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-openharmony-x64/package.json");})().version;
11220
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
11221
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
11222
+ }
11223
+ return binding;
11224
+ } catch (e) {
11225
+ loadErrors.push(e);
11226
+ }
11227
+ } else if (process.arch === "arm") {
11228
+ try {
11229
+ return (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.openharmony-arm.node");})();
11230
+ } catch (e) {
11231
+ loadErrors.push(e);
11232
+ }
11233
+ try {
11234
+ const binding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-openharmony-arm");})();
11235
+ const bindingPackageVersion = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-openharmony-arm/package.json");})().version;
11236
+ if (bindingPackageVersion !== "4.3.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
11237
+ throw new Error(`Native binding package version mismatch, expected 4.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
11238
+ }
11239
+ return binding;
11240
+ } catch (e) {
11241
+ loadErrors.push(e);
11242
+ }
11243
+ } else {
11244
+ loadErrors.push(new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));
11245
+ }
11246
+ } else {
11247
+ loadErrors.push(new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`));
11248
+ }
11249
+ }
11250
+ nativeBinding = requireNative();
11251
+ var forceWasi = process.env.NAPI_RS_FORCE_WASI === "true" || process.env.NAPI_RS_FORCE_WASI === "error";
11252
+ if (!nativeBinding || forceWasi) {
11253
+ let wasiBinding = null;
11254
+ let wasiBindingError = null;
11255
+ try {
11256
+ wasiBinding = (()=>{throw new Error("Cannot require module "+"./tailwindcss-oxide.wasi.cjs");})();
11257
+ nativeBinding = wasiBinding;
11258
+ } catch (err) {
11259
+ if (forceWasi) {
11260
+ wasiBindingError = err;
11261
+ }
11262
+ }
11263
+ if (!nativeBinding || forceWasi) {
11264
+ try {
11265
+ wasiBinding = (()=>{throw new Error("Cannot require module "+"@tailwindcss/oxide-wasm32-wasi");})();
11266
+ nativeBinding = wasiBinding;
11267
+ } catch (err) {
11268
+ if (forceWasi) {
11269
+ if (!wasiBindingError) {
11270
+ wasiBindingError = err;
11271
+ } else {
11272
+ wasiBindingError.cause = err;
11273
+ }
11274
+ loadErrors.push(err);
11275
+ }
11276
+ }
11277
+ }
11278
+ if (process.env.NAPI_RS_FORCE_WASI === "error" && !wasiBinding) {
11279
+ const error = new Error("WASI binding not found and NAPI_RS_FORCE_WASI is set to error");
11280
+ error.cause = wasiBindingError;
11281
+ throw error;
11282
+ }
11283
+ }
11284
+ if (!nativeBinding) {
11285
+ if (loadErrors.length > 0) {
11286
+ throw new Error(`Cannot find native binding. ` + `npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). ` + "Please try `npm i` again after removing both package-lock.json and node_modules directory.", {
11287
+ cause: loadErrors.reduce((err, cur) => {
11288
+ cur.cause = err;
11289
+ return cur;
11290
+ })
11291
+ });
11292
+ }
11293
+ throw new Error(`Failed to load native binding`);
11294
+ }
11295
+ module.exports = nativeBinding;
11296
+ module.exports.Scanner = nativeBinding.Scanner;
11297
+ });
11298
+
10658
11299
  // src/build/tailwindCompiler.ts
10659
11300
  var exports_tailwindCompiler = {};
10660
11301
  __export(exports_tailwindCompiler, {
10661
11302
  warmTailwindCompiler: () => warmTailwindCompiler,
10662
11303
  incrementalTailwindBuild: () => incrementalTailwindBuild,
10663
- extractCandidates: () => extractCandidates,
10664
11304
  disposeTailwindCompiler: () => disposeTailwindCompiler
10665
11305
  });
10666
11306
  import { createHash as createHash2 } from "crypto";
10667
11307
  import { existsSync as existsSync13, readFileSync as readFileSync7 } from "fs";
10668
11308
  import { readFile as readFile2, stat } from "fs/promises";
10669
- import { dirname as dirname6, isAbsolute as isAbsolute2, resolve as resolve10 } from "path";
11309
+ import { dirname as dirname6, extname as extname5, isAbsolute as isAbsolute2, resolve as resolve10 } from "path";
10670
11310
  var compilerCache, cachedTailwindCompile = null, loadTailwindCompile = async () => {
10671
11311
  if (cachedTailwindCompile)
10672
11312
  return cachedTailwindCompile;
@@ -10677,6 +11317,16 @@ var compilerCache, cachedTailwindCompile = null, loadTailwindCompile = async ()
10677
11317
  } catch {
10678
11318
  throw new Error("Tailwind incremental dev compiler requires `tailwindcss` to be installed.");
10679
11319
  }
11320
+ }, cachedScannerCtor = null, loadScanner = async () => {
11321
+ if (cachedScannerCtor)
11322
+ return cachedScannerCtor;
11323
+ try {
11324
+ const mod = await Promise.resolve().then(() => __toESM(require_oxide(), 1));
11325
+ cachedScannerCtor = mod.Scanner;
11326
+ return mod.Scanner;
11327
+ } catch {
11328
+ throw new Error("Tailwind incremental dev compiler requires `@tailwindcss/oxide` (it ships with Tailwind v4).");
11329
+ }
10680
11330
  }, recordDependency = async (deps, path) => {
10681
11331
  try {
10682
11332
  const mtime = (await stat(path)).mtimeMs;
@@ -10743,22 +11393,25 @@ ${userCss}` : userCss;
10743
11393
  loadModule,
10744
11394
  loadStylesheet: createLoadStylesheet(cssDependencies)
10745
11395
  });
11396
+ const sources = [...compiler.sources];
11397
+ const Scanner = await loadScanner();
11398
+ const scanner = new Scanner({
11399
+ sources: sources.map((source) => ({
11400
+ base: source.base,
11401
+ negated: source.negated,
11402
+ pattern: source.pattern
11403
+ }))
11404
+ });
10746
11405
  return {
10747
- candidateCounts: new Map,
11406
+ candidates: new Set(scanner.scan()),
10748
11407
  compiler,
10749
11408
  cssDependencies,
10750
11409
  cssMtimeMs,
10751
11410
  cssPath: absPath,
10752
11411
  lastEmittedHash: null,
10753
- perFileCandidates: new Map,
10754
- sources: [...compiler.sources]
11412
+ scanner,
11413
+ sources
10755
11414
  };
10756
- }, CANDIDATE_PATTERN, extractCandidates = (source) => {
10757
- const out = new Set;
10758
- for (const match of source.matchAll(CANDIDATE_PATTERN)) {
10759
- out.add(match[0]);
10760
- }
10761
- return out;
10762
11415
  }, hashCss = (css) => createHash2("sha1").update(css).digest("hex"), fileMatchesSources = (file, sources) => {
10763
11416
  if (sources.length === 0)
10764
11417
  return true;
@@ -10777,77 +11430,6 @@ ${userCss}` : userCss;
10777
11430
  return true;
10778
11431
  }
10779
11432
  return false;
10780
- }, incrementCandidateCount = (entry, candidate) => {
10781
- const current = entry.candidateCounts.get(candidate) ?? 0;
10782
- entry.candidateCounts.set(candidate, current + 1);
10783
- }, decrementCandidateCount = (entry, candidate) => {
10784
- const current = entry.candidateCounts.get(candidate) ?? 0;
10785
- const next = current - 1;
10786
- if (next <= 0) {
10787
- entry.candidateCounts.delete(candidate);
10788
- return;
10789
- }
10790
- entry.candidateCounts.set(candidate, next);
10791
- }, replaceFileCandidates = (entry, file, freshCandidates) => {
10792
- const previous = entry.perFileCandidates.get(file);
10793
- if (previous) {
10794
- for (const candidate of previous)
10795
- decrementCandidateCount(entry, candidate);
10796
- }
10797
- entry.perFileCandidates.set(file, freshCandidates);
10798
- for (const candidate of freshCandidates)
10799
- incrementCandidateCount(entry, candidate);
10800
- }, splitGlobAtFirstMeta = (absolutePattern) => {
10801
- const firstMetaIndex = absolutePattern.search(/[*?{[]/);
10802
- if (firstMetaIndex === -1) {
10803
- return { glob: "", root: absolutePattern };
10804
- }
10805
- const lastSlashBeforeMeta = absolutePattern.lastIndexOf("/", firstMetaIndex);
10806
- return {
10807
- glob: absolutePattern.slice(lastSlashBeforeMeta + 1),
10808
- root: absolutePattern.slice(0, lastSlashBeforeMeta) || "/"
10809
- };
10810
- }, collectFilesForSources = async (sources) => {
10811
- const seen = new Set;
10812
- const collected = [];
10813
- const scans = sources.filter((source) => !source.negated).map(async (source) => {
10814
- const absolutePattern = resolve10(source.base, source.pattern);
10815
- const { glob: relativePattern, root } = splitGlobAtFirstMeta(absolutePattern);
10816
- if (!relativePattern) {
10817
- try {
10818
- const stats = await stat(absolutePattern);
10819
- return stats.isFile() ? [absolutePattern] : [];
10820
- } catch {
10821
- return [];
10822
- }
10823
- }
10824
- const glob = new Bun.Glob(relativePattern);
10825
- const matches = [];
10826
- for await (const relative7 of glob.scan({
10827
- absolute: false,
10828
- cwd: root,
10829
- onlyFiles: true
10830
- })) {
10831
- matches.push(resolve10(root, relative7));
10832
- }
10833
- return matches;
10834
- });
10835
- const results = await Promise.all(scans);
10836
- for (const absolute of results.flat()) {
10837
- if (seen.has(absolute))
10838
- continue;
10839
- seen.add(absolute);
10840
- collected.push(absolute);
10841
- }
10842
- return collected;
10843
- }, ingestFile = async (entry, absolute) => {
10844
- try {
10845
- const text = await readFile2(absolute, "utf-8");
10846
- replaceFileCandidates(entry, absolute, extractCandidates(text));
10847
- } catch {}
10848
- }, populateCandidatesFromAllSources = async (entry) => {
10849
- const files = await collectFilesForSources(entry.sources);
10850
- await Promise.all(files.map((file) => ingestFile(entry, file)));
10851
11433
  }, isCompilerStale = async (entry) => {
10852
11434
  const checks = [...entry.cssDependencies.entries()].map(async ([path, knownMtime]) => {
10853
11435
  try {
@@ -10865,7 +11447,6 @@ ${userCss}` : userCss;
10865
11447
  if (cached && !await isCompilerStale(cached))
10866
11448
  return cached;
10867
11449
  const fresh = await buildCompilerEntry(cssPath, extraSources);
10868
- await populateCandidatesFromAllSources(fresh);
10869
11450
  compilerCache.set(key, fresh);
10870
11451
  return fresh;
10871
11452
  }, disposeTailwindCompiler = (cssPath) => {
@@ -10887,8 +11468,15 @@ ${userCss}` : userCss;
10887
11468
  continue;
10888
11469
  filesToRescan.push(abs);
10889
11470
  }
10890
- await Promise.all(filesToRescan.map((file) => ingestFile(entry, file)));
10891
- const rawCss = entry.compiler.build([...entry.candidateCounts.keys()]);
11471
+ if (filesToRescan.length > 0) {
11472
+ const found = entry.scanner.scanFiles(filesToRescan.map((file) => ({
11473
+ extension: extname5(file).slice(1),
11474
+ file
11475
+ })));
11476
+ for (const candidate of found)
11477
+ entry.candidates.add(candidate);
11478
+ }
11479
+ const rawCss = entry.compiler.build([...entry.candidates]);
10892
11480
  const outputPath = resolve10(buildPath, tailwind.output);
10893
11481
  const finalCss = await compileStyleSource(outputPath, rawCss, "css", styleTransformConfig);
10894
11482
  const hash = hashCss(finalCss);
@@ -10905,7 +11493,6 @@ ${userCss}` : userCss;
10905
11493
  var init_tailwindCompiler = __esm(() => {
10906
11494
  init_stylePreprocessor();
10907
11495
  compilerCache = new Map;
10908
- CANDIDATE_PATTERN = /[A-Za-z!\-_][\w:\-/[\]().!,#%@&]*[\w\])]/g;
10909
11496
  });
10910
11497
 
10911
11498
  // src/build/compileTailwind.ts
@@ -12939,7 +13526,7 @@ import {
12939
13526
  dirname as dirname13,
12940
13527
  join as join28,
12941
13528
  basename as basename7,
12942
- extname as extname5,
13529
+ extname as extname6,
12943
13530
  resolve as resolve19,
12944
13531
  relative as relative10,
12945
13532
  sep as sep2
@@ -13186,7 +13773,7 @@ var resolveDevClientDir2 = () => {
13186
13773
  const roots = await Promise.all(entryPoints.map(build));
13187
13774
  await Promise.all(roots.map(async ({ client, hasAwaitSlot }) => {
13188
13775
  const relClientDir = dirname13(relative10(clientDir, client));
13189
- const name = basename7(client, extname5(client));
13776
+ const name = basename7(client, extname6(client));
13190
13777
  const indexPath = join28(indexDir, relClientDir, `${name}.js`);
13191
13778
  const importRaw = relative10(dirname13(indexPath), client).split(sep2).join("/");
13192
13779
  const importPath = importRaw.startsWith(".") || importRaw.startsWith("/") ? importRaw : `./${importRaw}`;
@@ -16775,7 +17362,7 @@ __export(exports_fastHmrCompiler, {
16775
17362
  invalidateFingerprintCache: () => invalidateFingerprintCache
16776
17363
  });
16777
17364
  import { existsSync as existsSync24, readFileSync as readFileSync20, statSync as statSync2 } from "fs";
16778
- import { dirname as dirname16, extname as extname6, relative as relative13, resolve as resolve22 } from "path";
17365
+ import { dirname as dirname16, extname as extname7, relative as relative13, resolve as resolve22 } from "path";
16779
17366
  import ts15 from "typescript";
16780
17367
  var fail = (reason, detail, location) => ({
16781
17368
  ok: false,
@@ -18368,7 +18955,7 @@ ${transpiled}
18368
18955
  const abs = resolve22(componentDir, url);
18369
18956
  if (!existsSync24(abs))
18370
18957
  return null;
18371
- const ext = extname6(abs).toLowerCase();
18958
+ const ext = extname7(abs).toLowerCase();
18372
18959
  if (!STYLE_PREPROCESSED_EXT.has(ext) || ext === ".css") {
18373
18960
  return readFileSync20(abs, "utf8");
18374
18961
  }
@@ -19252,7 +19839,7 @@ __export(exports_compileEmber, {
19252
19839
  });
19253
19840
  import { existsSync as existsSync25 } from "fs";
19254
19841
  import { mkdir as mkdir7, rm as rm4 } from "fs/promises";
19255
- import { basename as basename10, dirname as dirname17, extname as extname7, join as join31, resolve as resolve23 } from "path";
19842
+ import { basename as basename10, dirname as dirname17, extname as extname8, join as join31, resolve as resolve23 } from "path";
19256
19843
  var {build: bunBuild2, Transpiler: Transpiler4, write: write4, file: file3 } = globalThis.Bun;
19257
19844
  var cachedPreprocessor = null, getPreprocessor = async () => {
19258
19845
  if (cachedPreprocessor)
@@ -19261,7 +19848,7 @@ var cachedPreprocessor = null, getPreprocessor = async () => {
19261
19848
  cachedPreprocessor = new module.Preprocessor;
19262
19849
  return cachedPreprocessor;
19263
19850
  }, transpiler5, isTemplateTagFile = (entry) => {
19264
- const ext = extname7(entry);
19851
+ const ext = extname8(entry);
19265
19852
  return ext === ".gjs" || ext === ".gts";
19266
19853
  }, rewriteTemplateEvalToScope = (source) => {
19267
19854
  const importedNames = new Set;
@@ -19987,7 +20574,7 @@ import {
19987
20574
  statSync as statSync3,
19988
20575
  writeFileSync as writeFileSync8
19989
20576
  } from "fs";
19990
- import { basename as basename11, dirname as dirname18, extname as extname8, join as join36, relative as relative14, resolve as resolve25 } from "path";
20577
+ import { basename as basename11, dirname as dirname18, extname as extname9, join as join36, relative as relative14, resolve as resolve25 } from "path";
19991
20578
  import { cwd, env as env2, exit } from "process";
19992
20579
  var {build: bunBuild7, Glob: Glob8 } = globalThis.Bun;
19993
20580
  var isDev, isBuildTraceEnabled = () => {
@@ -21439,7 +22026,7 @@ ${content.slice(firstUseIdx)}`;
21439
22026
  ], buildPath)
21440
22027
  };
21441
22028
  for (const artifact of serverOutputs) {
21442
- if (extname8(artifact.path) !== ".js")
22029
+ if (extname9(artifact.path) !== ".js")
21443
22030
  continue;
21444
22031
  const fileWithHash = basename11(artifact.path);
21445
22032
  const [baseName] = fileWithHash.split(`.${artifact.hash}.`);
@@ -21459,7 +22046,7 @@ ${content.slice(firstUseIdx)}`;
21459
22046
  };
21460
22047
  const cssByName = new Map;
21461
22048
  for (const artifact of cssOutputs) {
21462
- if (extname8(artifact.path) !== ".css")
22049
+ if (extname9(artifact.path) !== ".css")
21463
22050
  continue;
21464
22051
  const cssName = stripHash(basename11(artifact.path), artifact.hash);
21465
22052
  if (cssName)
@@ -21469,7 +22056,7 @@ ${content.slice(firstUseIdx)}`;
21469
22056
  const siblingCssPaths = [];
21470
22057
  const serverJsByPascalName = new Map;
21471
22058
  await Promise.all(serverOutputs.map(async (artifact) => {
21472
- if (extname8(artifact.path) !== ".js")
22059
+ if (extname9(artifact.path) !== ".js")
21473
22060
  return;
21474
22061
  const pascalName = stripHash(basename11(artifact.path), artifact.hash);
21475
22062
  if (!pascalName)
@@ -23111,7 +23698,7 @@ __export(exports_resolveOwningComponents, {
23111
23698
  invalidateResourceIndex: () => invalidateResourceIndex
23112
23699
  });
23113
23700
  import { readdirSync as readdirSync8, readFileSync as readFileSync26, statSync as statSync5 } from "fs";
23114
- import { dirname as dirname22, extname as extname9, join as join39, resolve as resolve34 } from "path";
23701
+ import { dirname as dirname22, extname as extname10, join as join39, resolve as resolve34 } from "path";
23115
23702
  import ts16 from "typescript";
23116
23703
  var ENTITY_DECORATORS, isAngularSourceFile = (file4) => file4.endsWith(".ts") || file4.endsWith(".tsx"), walkAngularSourceFiles = (root) => {
23117
23704
  const out = [];
@@ -23228,7 +23815,7 @@ var ENTITY_DECORATORS, isAngularSourceFile = (file4) => file4.endsWith(".ts") ||
23228
23815
  const { changedFilePath, userAngularRoot } = params;
23229
23816
  const changedAbs = safeNormalize(changedFilePath);
23230
23817
  const out = [];
23231
- const ext = extname9(changedAbs).toLowerCase();
23818
+ const ext = extname10(changedAbs).toLowerCase();
23232
23819
  if (ext === ".ts" || ext === ".tsx") {
23233
23820
  const classes = parseDecoratedClasses(changedAbs);
23234
23821
  for (const cls of classes) {
@@ -23626,7 +24213,7 @@ __export(exports_moduleServer, {
23626
24213
  SRC_URL_PREFIX: () => SRC_URL_PREFIX
23627
24214
  });
23628
24215
  import { existsSync as existsSync32, readFileSync as readFileSync27, realpathSync as realpathSync3, statSync as statSync6 } from "fs";
23629
- import { basename as basename13, dirname as dirname23, extname as extname10, join as join40, resolve as resolve36, relative as relative15 } from "path";
24216
+ import { basename as basename13, dirname as dirname23, extname as extname11, join as join40, resolve as resolve36, relative as relative15 } from "path";
23630
24217
  var SRC_PREFIX = "/@src/", jsTranspiler2, legacyDecoratorTsconfig, tsTranspiler2, tsxTranspiler, TRANSPILABLE, ALL_EXPORTS_RE, STRING_CONTENTS_RE, preserveTypeExports = (originalSource, transpiled, valueExports) => {
23631
24218
  const codeOnly = originalSource.replace(STRING_CONTENTS_RE, '""');
23632
24219
  const allExports = [];
@@ -23680,9 +24267,9 @@ ${stubs}
23680
24267
  }, resolveRelativeImport = (relPath, fileDir, projectRoot, extensions) => {
23681
24268
  const absPath = resolve36(fileDir, relPath);
23682
24269
  const rel = relative15(projectRoot, absPath);
23683
- const extension = extname10(rel);
24270
+ const extension = extname11(rel);
23684
24271
  let srcPath = RESOLVED_MODULE_EXTENSIONS.has(extension) ? rel : resolveRelativeExtension(rel, projectRoot, extensions);
23685
- if (extname10(srcPath) === ".svelte") {
24272
+ if (extname11(srcPath) === ".svelte") {
23686
24273
  srcPath = relative15(projectRoot, resolveSvelteModulePath(resolve36(projectRoot, srcPath)));
23687
24274
  }
23688
24275
  return srcUrl(srcPath, projectRoot);
@@ -23823,7 +24410,7 @@ ${transpiled}`;
23823
24410
  return rewriteImports(transpiled, filePath, projectRoot, rewriter);
23824
24411
  }, transformPlainFile = (filePath, projectRoot, rewriter, vueDir) => {
23825
24412
  const raw = readFileSync27(filePath, "utf-8");
23826
- const ext = extname10(filePath);
24413
+ const ext = extname11(filePath);
23827
24414
  const isTS = ext === ".ts" || ext === ".tsx";
23828
24415
  const isTSX = ext === ".tsx" || ext === ".jsx";
23829
24416
  let transpiler6 = jsTranspiler2;
@@ -24247,7 +24834,7 @@ export default {};
24247
24834
  return jsResponse(`var s=document.createElement('style');s.textContent=\`${escaped}\`;s.dataset.svelteHmr=${JSON.stringify(cssCheckPath)};var p=document.querySelector('style[data-svelte-hmr="${cssCheckPath}"]');if(p)p.remove();document.head.appendChild(s);`);
24248
24835
  }, resolveSourcePath = (relPath, projectRoot) => {
24249
24836
  const filePath = resolve36(projectRoot, relPath);
24250
- const ext = extname10(filePath);
24837
+ const ext = extname11(filePath);
24251
24838
  if (ext === ".svelte")
24252
24839
  return { ext, filePath: resolveSvelteModulePath(filePath) };
24253
24840
  if (ext)
@@ -28047,5 +28634,5 @@ export {
28047
28634
  build
28048
28635
  };
28049
28636
 
28050
- //# debugId=DEE26AA869F54FE864756E2164756E21
28637
+ //# debugId=F4C1E016DFD62C1964756E2164756E21
28051
28638
  //# sourceMappingURL=build.js.map