Ethscriptions commited on
Commit
f9828ed
·
verified ·
1 Parent(s): 62d6709

覆盖:3D 装修漫游站点(清空旧项目)

Browse files
Alibaba-PuHuiTi-Bold.ttf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8a6cbceb875e00504071b353b35925cc8cb405963e67dc2da4b8ea4f9209d434
3
- size 9312212
 
 
 
 
Alibaba-PuHuiTi.ttf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:fb633db41cedc5abc292157a9a78ed97ae58d2e6c056151c50498483042cbb81
3
- size 9724448
 
 
 
 
AlibabaPuHuiTi-Bold.otf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ad6d653f0da8f5da3b04e1ea22e8f28c071573bd4f0ebbf37771d8efb75988fe
3
- size 6517436
 
 
 
 
AlibabaPuHuiTi-Heavy.otf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:fef3f9123d7b75e28ff4d7390c59b248d203868091de98c712318d2fd873c56a
3
- size 1656252
 
 
 
 
GenShinGothic-Monospace-Bold.ttf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6c2e1490357ab477c7e9663244689dd365b2aaaffb9ef88a01c6bdaa99cc9250
3
- size 4952384
 
 
 
 
PingFangSC-Medium.otf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8e6a0b3fba3aa759bf84e51f6d52558aa869c7aa9b74e159891175235ede9f63
3
- size 13089512
 
 
 
 
PingFangSC-Semibold.otf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:488a6b6e8684ac9ebe7eb915c9bbf39e275a5e8f5348f992c952324fc57cf792
3
- size 13042764
 
 
 
 
PingFangSC-Ultralight.otf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:589d68ec2b10a01ed73ce310961141c5bc5c2240f6711038813a8d06d529d36c
3
- size 13509300
 
 
 
 
README.md CHANGED
@@ -1,12 +1,13 @@
1
  ---
2
- title: 影城工作便捷工具
3
- emoji: 🔧
4
- colorFrom: pink
5
- colorTo: indigo
6
- sdk: streamlit
7
- sdk_version: 1.51.0
8
- app_file: app.py
9
  pinned: false
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
1
  ---
2
+ title: End Print
3
+ emoji: 🏠
4
+ colorFrom: yellow
5
+ colorTo: gray
6
+ sdk: static
7
+ app_file: index.html
 
8
  pinned: false
9
  ---
10
 
11
+ # 化州 H1区235栋3B-05 · 3D 装修漫游
12
+
13
+ 按户型图 1:1 搭建的全屋 3D 装修效果,可在浏览器中鸟瞰、漫游、单独查看各房间,支持白天/傍晚/夜晚光照与光线追踪渲染。
SimHei.ttf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c582099366b2d28e578a831887c5b3a5746b849dbbfb4dbf01d35f2911871162
3
- size 10050868
 
 
 
 
SourceHanSansCN-Bold.otf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:97e5eff6dd208ccb814726458c8c7ab4b59327c62b9ee8df3440e7e835209ab9
3
- size 8608184
 
 
 
 
SourceHanSansCN-Normal.otf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:14ec9d09dad83098938370be17170a747d63084022b05710e3d34b4ddb359091
3
- size 8364840
 
 
 
 
SourceHanSansCN-Regular.otf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:14ec9d09dad83098938370be17170a747d63084022b05710e3d34b4ddb359091
3
- size 8364840
 
 
 
 
SourceHanSansOLD-Bold-2.otf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:316853e0207394060130020e9b66330e376de10bffdf5ac040f39a84505badc7
3
- size 18426000
 
 
 
 
SourceHanSansOLD-Heavy-2.otf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:271561468709b0e6a66e1d56731cca9f8c2e7c2c8bc9cab9e8c58bf4ffabb4c2
3
- size 19681272
 
 
 
 
app2.py DELETED
@@ -1,228 +0,0 @@
1
- import pandas as pd
2
- import streamlit as st
3
- from datetime import datetime, timedelta
4
- import matplotlib.pyplot as plt
5
- import io
6
- import base64
7
- import matplotlib.gridspec as gridspec
8
- import math
9
-
10
- SPLIT_TIME = "17:30"
11
- BUSINESS_START = "09:30"
12
- BUSINESS_END = "01:30"
13
- BORDER_COLOR = '#A9A9A9'
14
- DATE_COLOR = '#A9A9A9'
15
-
16
- def process_schedule(file):
17
- """处理上传的 Excel 文件,生成排序和分组后的打印内容"""
18
- try:
19
- # 读取 Excel,跳过前 8 行
20
- df = pd.read_excel(file, skiprows=8)
21
-
22
- # 提取所需列 (G9, H9, J9)
23
- df = df.iloc[:, [6, 7, 9]] # G, H, J 列
24
- df.columns = ['Hall', 'StartTime', 'EndTime']
25
-
26
- # 清理数据
27
- df = df.dropna(subset=['Hall', 'StartTime', 'EndTime'])
28
-
29
- # 转换影厅格式为 "#号" 格式
30
- df['Hall'] = df['Hall'].str.extract(r'(\d+)号').astype(str) + ' '
31
-
32
- # 保存原始时间字符串用于诊断
33
- df['original_end'] = df['EndTime']
34
-
35
- # 转换时间为 datetime 对象
36
- base_date = datetime.today().date()
37
- df['StartTime'] = pd.to_datetime(df['StartTime'])
38
- df['EndTime'] = pd.to_datetime(df['EndTime'])
39
-
40
- # 设置基准时间
41
- business_start = datetime.strptime(f"{base_date} {BUSINESS_START}", "%Y-%m-%d %H:%M")
42
- business_end = datetime.strptime(f"{base_date} {BUSINESS_END}", "%Y-%m-%d %H:%M")
43
-
44
- # 处理跨天情况
45
- if business_end < business_start:
46
- business_end += timedelta(days=1)
47
-
48
- # 标准化所有时间到同一天
49
- for idx, row in df.iterrows():
50
- end_time = row['EndTime']
51
- if end_time.hour < 9:
52
- df.at[idx, 'EndTime'] = end_time + timedelta(days=1)
53
-
54
- if row['StartTime'].hour >= 21 and end_time.hour < 9:
55
- df.at[idx, 'EndTime'] = end_time + timedelta(days=1)
56
-
57
- # 筛选营业时间内的场次
58
- df['time_for_comparison'] = df['EndTime'].apply(
59
- lambda x: datetime.combine(base_date, x.time())
60
- )
61
-
62
- df.loc[df['time_for_comparison'].dt.hour < 9, 'time_for_comparison'] += timedelta(days=1)
63
-
64
- valid_times = (
65
- ((df['time_for_comparison'] >= datetime.combine(base_date, business_start.time())) &
66
- (df['time_for_comparison'] <= datetime.combine(base_date + timedelta(days=1), business_end.time())))
67
- )
68
-
69
- df = df[valid_times]
70
-
71
- # 按散场时间排序
72
- df = df.sort_values('EndTime')
73
-
74
- # 分割数据
75
- split_time = datetime.strptime(f"{base_date} {SPLIT_TIME}", "%Y-%m-%d %H:%M")
76
- split_time_for_comparison = df['time_for_comparison'].apply(
77
- lambda x: datetime.combine(base_date, split_time.time())
78
- )
79
-
80
- part1 = df[df['time_for_comparison'] <= split_time_for_comparison].copy()
81
- part2 = df[df['time_for_comparison'] > split_time_for_comparison].copy()
82
-
83
- # 格式化时间显示
84
- for part in [part1, part2]:
85
- part['EndTime'] = part['EndTime'].dt.strftime('%-I:%M')
86
-
87
- # 关键修改:精确读取C6单元格
88
- date_df = pd.read_excel(
89
- file,
90
- skiprows=5, # 跳过前5行(0-4)
91
- nrows=1, # 只读1行
92
- usecols=[2], # 第三列(C列)
93
- header=None # 无表头
94
- )
95
- date_cell = date_df.iloc[0, 0]
96
-
97
- try:
98
- # 处理不同日期格式
99
- if isinstance(date_cell, str):
100
- date_str = datetime.strptime(date_cell, '%Y-%m-%d').strftime('%Y-%m-%d')
101
- else:
102
- date_str = pd.to_datetime(date_cell).strftime('%Y-%m-%d')
103
- except:
104
- date_str = datetime.today().strftime('%Y-%m-%d')
105
-
106
- return part1[['Hall', 'EndTime']], part2[['Hall', 'EndTime']], date_str
107
-
108
- except Exception as e:
109
- st.error(f"处理文件时出错: {str(e)}")
110
- return None, None, None
111
-
112
- def create_print_layout(data, title, date_str):
113
- """创建打印布局"""
114
- if data.empty:
115
- return None
116
-
117
- # 设置 A5 纸张竖向尺寸
118
- fig = plt.figure(figsize=(5.83, 8.27), dpi=300)
119
- plt.subplots_adjust(left=0.05, right=0.95, top=0.95, bottom=0.05)
120
-
121
- # 设置字体
122
- plt.rcParams['font.family'] = 'sans-serif'
123
- plt.rcParams['font.sans-serif'] = ['Arial Unicode MS']
124
-
125
- # 计算行数和总数
126
- total_items = len(data)
127
- num_cols = 3
128
- num_rows = math.ceil(total_items / num_cols)
129
-
130
- # 创建网格
131
- gs = gridspec.GridSpec(num_rows + 1, num_cols, hspace=0.1, wspace=0.1, height_ratios=[1] * num_rows + [0.2])
132
-
133
- base_fontsize = min(30, 265 / num_rows)
134
-
135
- data_values = data.values.tolist()
136
-
137
- while len(data_values) % 3 != 0:
138
- data_values.append(['', ''])
139
-
140
- rows_per_col = math.ceil(len(data_values) / 3)
141
-
142
- sorted_data = [['', '']] * len(data_values)
143
-
144
- for i, item in enumerate(data_values):
145
- if item[0] and item[1]:
146
- row = i % rows_per_col
147
- col = i // rows_per_col
148
- new_index = row * 3 + col
149
- if new_index < len(sorted_data):
150
- sorted_data[new_index] = item
151
-
152
- for idx, (hall, end_time) in enumerate(sorted_data):
153
- if hall and end_time:
154
- row = idx // 3
155
- col = idx % 3
156
-
157
- ax = plt.subplot(gs[row, col])
158
-
159
- for spine in ax.spines.values():
160
- spine.set_color(BORDER_COLOR)
161
- spine.set_linewidth(0.5)
162
-
163
- display_text = f"{hall}{end_time}"
164
- ax.text(0.5, 0.5, display_text,
165
- fontsize=base_fontsize,
166
- fontweight='bold',
167
- ha='center',
168
- va='center')
169
-
170
- ax.set_xlim(-0.02, 1.02)
171
- ax.set_ylim(-0.02, 1.02)
172
-
173
- ax.set_xticks([])
174
- ax.set_yticks([])
175
-
176
- # 添加日期信息
177
- ax_date = plt.subplot(gs[0, 0])
178
- ax_date.text(0.05, 0.95, f"{date_str} {title}",
179
- fontsize=base_fontsize * 0.4,
180
- color=DATE_COLOR,
181
- fontweight='bold',
182
- ha='left',
183
- va='top')
184
-
185
- for spine in ax_date.spines.values():
186
- spine.set_visible(False)
187
- ax_date.set_xticks([])
188
- ax_date.set_yticks([])
189
-
190
- # 转换为图片
191
- buffer = io.BytesIO()
192
- plt.savefig(buffer, format='png', bbox_inches='tight', pad_inches=0.05)
193
- buffer.seek(0)
194
- image_base64 = base64.b64encode(buffer.getvalue()).decode()
195
- plt.close()
196
-
197
- return f'data:image/png;base64,{image_base64}'
198
-
199
- # Streamlit 界面
200
- st.set_page_config(page_title="散厅时间快捷打印", layout="wide")
201
- st.title("散厅时间快捷打印")
202
-
203
- uploaded_file = st.file_uploader("上传【放映场次核对表.xls】文件", type=["xls", "xlsx"])
204
-
205
- if uploaded_file:
206
- part1, part2, date_str = process_schedule(uploaded_file)
207
-
208
- if part1 is not None and part2 is not None:
209
- part1_image = create_print_layout(part1, "A", date_str)
210
- part2_image = create_print_layout(part2, "C", date_str)
211
-
212
- col1, col2 = st.columns(2)
213
-
214
- with col1:
215
- st.subheader("白班散场预览(时间 ≤ 17:30)")
216
- if part1_image:
217
- st.image(part1_image)
218
- else:
219
- st.info("白班部分没有数据")
220
-
221
- with col2:
222
- st.subheader("夜班散场预览(时间 > 17:30)")
223
- if part2_image:
224
- st.image(part2_image)
225
- else:
226
- st.info("夜班部分没有数据")
227
-
228
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app3.py DELETED
@@ -1,281 +0,0 @@
1
- import pandas as pd
2
- import streamlit as st
3
- from datetime import datetime, timedelta
4
- import matplotlib.pyplot as plt
5
- import io
6
- import base64
7
- import matplotlib.gridspec as gridspec
8
- import math
9
- from matplotlib.backends.backend_pdf import PdfPages
10
- from matplotlib.patches import Rectangle # Replaced FancyBboxPatch
11
-
12
- # --- Constants ---
13
- SPLIT_TIME = "17:30"
14
- BUSINESS_START = "09:30"
15
- BUSINESS_END = "01:30"
16
- BORDER_COLOR = '#A9A9A9'
17
- DATE_COLOR = '#A9A9A9'
18
- SEQ_COLOR = '#A9A9A9' # Color for the new serial number
19
-
20
- def process_schedule(file):
21
- """处理上传的 Excel 文件,生成排序和分组后的打印内容"""
22
- try:
23
- # 读取 Excel,跳过前 8 行
24
- df = pd.read_excel(file, skiprows=8)
25
-
26
- # 提取所需列 (G9, H9, J9)
27
- df = df.iloc[:, [6, 7, 9]] # G, H, J 列
28
- df.columns = ['Hall', 'StartTime', 'EndTime']
29
-
30
- # 清理数据
31
- df = df.dropna(subset=['Hall', 'StartTime', 'EndTime'])
32
-
33
- # 转换影厅格式为 "#号" 格式
34
- df['Hall'] = df['Hall'].str.extract(r'(\d+)号').astype(str) + ' '
35
-
36
- # 保存原始时间字符串用于诊断
37
- df['original_end'] = df['EndTime']
38
-
39
- # 转换时间为 datetime 对象
40
- base_date = datetime.today().date()
41
- # Using errors='coerce' will turn unparseable times into NaT (Not a Time)
42
- df['StartTime'] = pd.to_datetime(df['StartTime'], errors='coerce')
43
- df['EndTime'] = pd.to_datetime(df['EndTime'], errors='coerce')
44
- df = df.dropna(subset=['StartTime', 'EndTime']) # Drop rows where time conversion failed
45
-
46
- # 设置基准时间
47
- business_start_time = datetime.strptime(BUSINESS_START, "%H:%M").time()
48
- business_end_time = datetime.strptime(BUSINESS_END, "%H:%M").time()
49
-
50
- # 处理跨天情况:结束时间小于开始时间,则结束时间加一天
51
- # This logic handles cases like 9:30 AM to 1:30 AM (next day)
52
- df['EndTime_adjusted'] = df.apply(
53
- lambda row: row['EndTime'] + timedelta(days=1) if row['EndTime'].time() < row['StartTime'].time() else row['EndTime'],
54
- axis=1
55
- )
56
-
57
- # 按散场时间排序 (using the adjusted time)
58
- df = df.sort_values('EndTime_adjusted')
59
-
60
- # 分割数据
61
- split_dt = datetime.strptime(SPLIT_TIME, "%H:%M").time()
62
-
63
- part1 = df[df['EndTime_adjusted'].dt.time <= split_dt].copy()
64
- part2 = df[df['EndTime_adjusted'].dt.time > split_dt].copy()
65
-
66
- # 格式化时间显示 (use original EndTime for display)
67
- for part in [part1, part2]:
68
- part['EndTime_formatted'] = part['EndTime'].dt.strftime('%-I:%M')
69
-
70
- # 读取日期单元格 C6
71
- date_df = pd.read_excel(file, skiprows=5, nrows=1, usecols=[2], header=None)
72
- date_cell = date_df.iloc[0, 0]
73
-
74
- try:
75
- if isinstance(date_cell, str):
76
- # Assuming format like '2023-10-27'
77
- date_str = datetime.strptime(date_cell, '%Y-%m-%d').strftime('%Y-%m-%d')
78
- else:
79
- # Assuming it's a datetime object
80
- date_str = pd.to_datetime(date_cell).strftime('%Y-%m-%d')
81
- except:
82
- date_str = datetime.today().strftime('%Y-%m-%d')
83
-
84
- return part1[['Hall', 'EndTime_formatted']], part2[['Hall', 'EndTime_formatted']], date_str
85
-
86
- except Exception as e:
87
- st.error(f"处理文件时出错: {str(e)}")
88
- return None, None, None
89
-
90
-
91
- def create_print_layout(data, title, date_str):
92
- """
93
- 创建符合新要求的打印布局 (PNG 和 PDF)。
94
- 1. 动态计算边距。
95
- 2. 使用灰色虚线圆点作为单元格边框。
96
- 3. 单元格内容区域为单元格的90%。
97
- 4. 在左上角添加灰色序号。
98
- """
99
- if data.empty:
100
- return None
101
-
102
- # --- Constants ---
103
- A5_WIDTH_IN = 5.83
104
- A5_HEIGHT_IN = 8.27
105
- DPI = 300
106
- NUM_COLS = 3
107
-
108
- # --- Setup Figure ---
109
- fig = plt.figure(figsize=(A5_WIDTH_IN, A5_HEIGHT_IN), dpi=DPI)
110
-
111
- # --- Font Setup ---
112
- plt.rcParams['font.family'] = 'sans-serif'
113
- plt.rcParams['font.sans-serif'] = ['Arial Unicode MS', 'Heiti TC', 'sans-serif']
114
-
115
-
116
- # --- Data Preparation ---
117
- total_items = len(data)
118
- # Augment data with an original index for numbering
119
- data_values_with_index = [(i, row) for i, row in enumerate(data.values.tolist())]
120
-
121
- # Pad data to be a multiple of NUM_COLS
122
- padded_total = math.ceil(total_items / NUM_COLS) * NUM_COLS
123
- while len(data_values_with_index) < padded_total:
124
- data_values_with_index.append((None, ['', '']))
125
-
126
- num_rows = padded_total // NUM_COLS
127
-
128
- # --- Layout Calculation (Request 1) ---
129
- if num_rows > 0:
130
- # "A5 paper height / num_rows / 4 is the padding for all sides"
131
- padding_in = (A5_HEIGHT_IN / num_rows / 4)
132
- # Cap padding to prevent it from being excessively large
133
- padding_in = min(padding_in, 0.5)
134
- else:
135
- padding_in = 0.25 # Default padding if no rows
136
-
137
- # Convert padding to relative figure coordinates for subplots_adjust
138
- left_margin = padding_in / A5_WIDTH_IN
139
- right_margin = 1 - left_margin
140
- bottom_margin = padding_in / A5_HEIGHT_IN
141
- top_margin = 1 - bottom_margin
142
-
143
- # Adjust overall figure margins
144
- fig.subplots_adjust(left=left_margin, right=right_margin, top=top_margin, bottom=bottom_margin, hspace=0.4, wspace=0.4)
145
-
146
- # --- Grid & Font Size ---
147
- gs = gridspec.GridSpec(num_rows + 1, NUM_COLS, height_ratios=[0.2] + [1] * num_rows, figure=fig)
148
-
149
- if num_rows > 0:
150
- content_area_height_in = A5_HEIGHT_IN * (top_margin - bottom_margin)
151
- cell_height_in = content_area_height_in / num_rows * (1 - fig.subplotpars.hspace)
152
- base_fontsize = min(40, max(10, cell_height_in * 72 * 0.4)) # 72 pt/inch, 40% of cell height
153
- else:
154
- base_fontsize = 20
155
-
156
- # --- Z-Sort (Column-major) Data for Layout ---
157
- rows_per_col_layout = num_rows
158
- sorted_data = [(None, ['',''])] * padded_total
159
- for i, item_tuple in enumerate(data_values_with_index):
160
- if item_tuple[0] is not None:
161
- original_data_index = i # Index from the time-sorted list
162
- row_in_col = original_data_index % rows_per_col_layout
163
- col_idx = original_data_index // rows_per_col_layout
164
- new_grid_index = row_in_col * NUM_COLS + col_idx
165
- if new_grid_index < len(sorted_data):
166
- sorted_data[new_grid_index] = item_tuple
167
-
168
- # --- Drawing Logic ---
169
- for grid_idx, item_tuple in enumerate(sorted_data):
170
- original_index, (hall, end_time) = item_tuple
171
-
172
- if original_index is not None:
173
- row_grid = grid_idx // NUM_COLS + 1 # +1 because date is in row 0
174
- col_grid = grid_idx % NUM_COLS
175
-
176
- ax = fig.add_subplot(gs[row_grid, col_grid])
177
- ax.set_axis_off()
178
-
179
- # --- Cell Border (Request 2) & Content Area (Request 3) ---
180
- # Draw a dotted rectangle. Content will be placed inside this.
181
- # Making the rect slightly smaller creates a visual 90% area.
182
- cell_border = Rectangle((0.05, 0.05), 0.9, 0.9,
183
- edgecolor=BORDER_COLOR,
184
- facecolor='none',
185
- linestyle=(0, (1, 1.5)), # Dotted line with round caps
186
- linewidth=1,
187
- transform=ax.transAxes,
188
- clip_on=False)
189
- ax.add_patch(cell_border)
190
-
191
- # --- Cell Content ---
192
- display_text = f"{hall}{end_time}"
193
- ax.text(0.5, 0.5, display_text,
194
- fontsize=base_fontsize,
195
- fontweight='bold',
196
- ha='center', va='center',
197
- transform=ax.transAxes)
198
-
199
- # --- Cell Numbering (Request 4) ---
200
- # Serial number is original_index + 1
201
- ax.text(0.12, 0.82, str(original_index + 1),
202
- fontsize=base_fontsize * 0.5,
203
- color=SEQ_COLOR,
204
- fontweight='normal',
205
- ha='center', va='center',
206
- transform=ax.transAxes)
207
-
208
- # --- Date Header ---
209
- ax_date = fig.add_subplot(gs[0, :])
210
- ax_date.set_axis_off()
211
- ax_date.text(0, 0.5, f"{date_str} {title}",
212
- fontsize=base_fontsize * 0.6,
213
- color=DATE_COLOR,
214
- fontweight='bold',
215
- ha='left', va='center',
216
- transform=ax_date.transAxes)
217
-
218
- # --- Save to Buffers ---
219
- # Save PNG
220
- png_buffer = io.BytesIO()
221
- fig.savefig(png_buffer, format='png', bbox_inches='tight', pad_inches=0.02)
222
- png_buffer.seek(0)
223
- png_base64 = base64.b64encode(png_buffer.getvalue()).decode()
224
-
225
- # Save PDF
226
- pdf_buffer = io.BytesIO()
227
- fig.savefig(pdf_buffer, format='pdf', bbox_inches='tight', pad_inches=0.02)
228
- pdf_buffer.seek(0)
229
- pdf_base64 = base64.b64encode(pdf_buffer.getvalue()).decode()
230
-
231
- plt.close(fig)
232
-
233
- return {
234
- 'png': f'data:image/png;base64,{png_base64}',
235
- 'pdf': f'data:application/pdf;base64,{pdf_base64}'
236
- }
237
-
238
- def display_pdf(base64_pdf):
239
- """在Streamlit中嵌入显示PDF"""
240
- pdf_display = f'<iframe src="{base64_pdf}" width="100%" height="800" type="application/pdf"></iframe>'
241
- return pdf_display
242
-
243
- # --- Streamlit UI ---
244
- st.set_page_config(page_title="散厅时间快捷打印", layout="wide")
245
- st.title("散厅时间快捷打印")
246
-
247
- uploaded_file = st.file_uploader("上传【放映场次核对表.xls】文件", type=["xls", "xlsx"])
248
-
249
- if uploaded_file:
250
- # Use new column name 'EndTime_formatted' for display
251
- part1, part2, date_str = process_schedule(uploaded_file)
252
- if part1 is not None and part2 is not None:
253
- part1_data_for_layout = part1[['Hall', 'EndTime_formatted']]
254
- part2_data_for_layout = part2[['Hall', 'EndTime_formatted']]
255
-
256
- part1_output = create_print_layout(part1_data_for_layout, "A", date_str)
257
- part2_output = create_print_layout(part2_data_for_layout, "C", date_str)
258
-
259
- col1, col2 = st.columns(2)
260
-
261
- with col1:
262
- st.subheader("白班散场预览(散场时间 ≤ 17:30)")
263
- if part1_output:
264
- tab1_1, tab1_2 = st.tabs(["PDF 预览", "PNG 预览"])
265
- with tab1_1:
266
- st.markdown(display_pdf(part1_output['pdf']), unsafe_allow_html=True)
267
- with tab1_2:
268
- st.image(part1_output['png'])
269
- else:
270
- st.info("白班部分没有数据")
271
-
272
- with col2:
273
- st.subheader("夜班散场预览(散场时间 > 17:30)")
274
- if part2_output:
275
- tab2_1, tab2_2 = st.tabs(["PDF 预览", "PNG 预览"])
276
- with tab2_1:
277
- st.markdown(display_pdf(part2_output['pdf']), unsafe_allow_html=True)
278
- with tab2_2:
279
- st.image(part2_output['png'])
280
- else:
281
- st.info("夜班部分没有数据")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app4.py DELETED
@@ -1,429 +0,0 @@
1
- import pandas as pd
2
- import streamlit as st
3
- import matplotlib.pyplot as plt
4
- import matplotlib.font_manager as font_manager
5
- from matplotlib.lines import Line2D
6
- import io
7
- import base64
8
- import os
9
- from datetime import datetime, timedelta
10
- from pypinyin import lazy_pinyin, Style
11
- from matplotlib.backends.backend_pdf import PdfPages
12
- import matplotlib.gridspec as gridspec
13
- import math
14
-
15
- # --- 常量定义 ---
16
- SPLIT_TIME = "17:00"
17
- BUSINESS_START = "09:30"
18
- BUSINESS_END = "01:30"
19
- BORDER_COLOR = 'grey'
20
- DATE_COLOR = '#A9A9A9'
21
- A5_WIDTH_IN = 5.83
22
- A5_HEIGHT_IN = 8.27
23
- NUM_COLS = 3
24
-
25
- # --- 字体加载与文本处理函数 ---
26
-
27
- def get_font_regular(size=14):
28
- """加载思源黑体-常规 (SimHei.ttf)"""
29
- font_path = "SimHei.ttf"
30
- if os.path.exists(font_path):
31
- return font_manager.FontProperties(fname=font_path, size=size)
32
- else:
33
- st.warning("警告:未找到字体文件 'SimHei.ttf',LED屏排片表显示可能不正确。")
34
- return font_manager.FontProperties(family='sans-serif', size=size)
35
-
36
- def get_font_bold(size=14):
37
- """加载思源黑体-粗体 (SourceHanSansOLD-Heavy-2.otf)"""
38
- font_path = "SourceHanSansOLD-Heavy-2.otf"
39
- if os.path.exists(font_path):
40
- return font_manager.FontProperties(fname=font_path, size=size)
41
- else:
42
- st.warning("警告:未找到字体文件 'SourceHanSansOLD-Heavy-2.otf',散场时间表显示可能不正确。")
43
- return font_manager.FontProperties(family='sans-serif', size=size, weight='bold')
44
-
45
- def get_pinyin_abbr(text):
46
- """获取中文文本前两个字的拼音首字母"""
47
- if not text:
48
- return ""
49
- chars = [c for c in text if '\u4e00' <= c <= '\u9fff'][:2]
50
- if not chars:
51
- return ""
52
- pinyin_list = lazy_pinyin(chars, style=Style.FIRST_LETTER)
53
- return ''.join(pinyin_list).upper()
54
-
55
- def format_seq(n):
56
- """将数字转换为带圈序号 (①, ②, ③...)"""
57
- if not isinstance(n, int) or n <= 0:
58
- return str(n)
59
- circled_chars = "①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳" \
60
- "㉑㉒㉓㉔㉕㉖㉗㉘㉙㉚㉛㉜㉝㉞㉟" \
61
- "㊱㊲㊳㊴㊵㊶㊷㊸㊹㊺㊻㊼㊽㊾㊿"
62
- if 1 <= n <= 50:
63
- return circled_chars[n - 1]
64
- return f'({n})'
65
-
66
- # --- '放映时间核对表' 处理函数 ---
67
- def process_schedule_led(file):
68
- """处理 '放映时间核对表.xls' 文件"""
69
- try:
70
- date_df = pd.read_excel(file, header=None, skiprows=7, nrows=1, usecols=[3])
71
- date_str = pd.to_datetime(date_df.iloc[0, 0]).strftime('%Y-%m-%d')
72
- base_date = pd.to_datetime(date_str).date()
73
- except Exception:
74
- date_str = datetime.today().strftime('%Y-%m-%d')
75
- base_date = datetime.today().date()
76
-
77
- try:
78
- df = pd.read_excel(file, header=9, usecols=[1, 2, 4, 5])
79
- df.columns = ['Hall', 'StartTime', 'EndTime', 'Movie']
80
- df['Hall'] = df['Hall'].ffill()
81
- df.dropna(subset=['StartTime', 'EndTime', 'Movie'], inplace=True)
82
- df['Hall'] = df['Hall'].astype(str).str.extract(r'(\d+号)')
83
- df['StartTime_dt'] = pd.to_datetime(df['StartTime'], format='%H:%M', errors='coerce').apply(
84
- lambda t: t.replace(year=base_date.year, month=base_date.month, day=base_date.day) if pd.notnull(t) else t)
85
- df['EndTime_dt'] = pd.to_datetime(df['EndTime'], format='%H:%M', errors='coerce').apply(
86
- lambda t: t.replace(year=base_date.year, month=base_date.month, day=base_date.day) if pd.notnull(t) else t)
87
- df.loc[df['EndTime_dt'] < df['StartTime_dt'], 'EndTime_dt'] += timedelta(days=1)
88
- df = df.sort_values(['Hall', 'StartTime_dt'])
89
- merged_rows = []
90
- for _, group in df.groupby('Hall'):
91
- current = None
92
- for _, row in group.sort_values('StartTime_dt').iterrows():
93
- if current is None:
94
- current = row.copy()
95
- elif row['Movie'] == current['Movie']:
96
- current['EndTime_dt'] = row['EndTime_dt']
97
- else:
98
- merged_rows.append(current)
99
- current = row.copy()
100
- if current is not None:
101
- merged_rows.append(current)
102
- merged_df = pd.DataFrame(merged_rows)
103
- merged_df['StartTime_dt'] -= timedelta(minutes=10)
104
- merged_df['EndTime_dt'] -= timedelta(minutes=5)
105
- merged_df['Seq'] = merged_df.groupby('Hall').cumcount() + 1
106
- merged_df['StartTime_str'] = merged_df['StartTime_dt'].dt.strftime('%H:%M')
107
- merged_df['EndTime_str'] = merged_df['EndTime_dt'].dt.strftime('%H:%M')
108
- return merged_df[['Hall', 'Seq', 'Movie', 'StartTime_str', 'EndTime_str']], date_str
109
- except Exception as e:
110
- st.error(f"处理数据出错: {e}。请检查文件格式是否正确。")
111
- return None, date_str
112
-
113
- def create_print_layout_led(data, date_str):
114
- """为 '放映时间核对表' 生成打印布局 (使用 Regular 字体)"""
115
- if data is None or data.empty:
116
- return None
117
- A4_width_in, A4_height_in = 8.27, 11.69
118
- dpi = 300
119
- total_content_rows = len(data)
120
-
121
- # --- 已修改部分:如果数据条数小于25条,则按25条计算行高以防止字体过大 ---
122
- layout_rows = max(total_content_rows, 25)
123
- totalA = layout_rows + 2
124
- # --- 修改结束 ---
125
-
126
- row_height = A4_height_in / totalA
127
- data = data.reset_index(drop=True)
128
- data['hall_str'] = '$' + data['Hall'].str.replace('号', '') + '^{\#}$'
129
- data['seq_str'] = data['Seq'].apply(format_seq)
130
- data['pinyin_abbr'] = data['Movie'].apply(get_pinyin_abbr)
131
- data['time_str'] = data['StartTime_str'] + ' - ' + data['EndTime_str']
132
-
133
- temp_fig = plt.figure(figsize=(A4_width_in, A4_height_in), dpi=dpi)
134
- renderer = temp_fig.canvas.get_renderer()
135
- base_font_size_pt = (row_height * 0.9) * 72
136
- seq_font_size_pt = (row_height * 0.5) * 72
137
-
138
- def get_col_width_in(series, font_size_pt, is_math=False):
139
- if series.empty: return 0
140
- font_prop = get_font_regular(font_size_pt) # 使用 Regular 字体
141
- longest_str_idx = series.astype(str).str.len().idxmax()
142
- max_content = str(series.loc[longest_str_idx])
143
- text_width_px, _, _ = renderer.get_text_width_height_descent(max_content, font_prop, ismath=is_math)
144
- return (text_width_px / dpi) * 1.1
145
-
146
- margin_col_width = row_height
147
- hall_col_width = get_col_width_in(data['hall_str'], base_font_size_pt, is_math=True)
148
- seq_col_width = get_col_width_in(data['seq_str'], seq_font_size_pt)
149
- pinyin_col_width = get_col_width_in(data['pinyin_abbr'], base_font_size_pt)
150
- time_col_width = get_col_width_in(data['time_str'], base_font_size_pt)
151
- movie_col_width = A4_width_in - (
152
- margin_col_width * 2 + hall_col_width + seq_col_width + pinyin_col_width + time_col_width)
153
- plt.close(temp_fig)
154
-
155
- col_widths = {'hall': hall_col_width, 'seq': seq_col_width, 'movie': movie_col_width, 'pinyin': pinyin_col_width,
156
- 'time': time_col_width}
157
- col_x_starts = {}
158
- current_x = margin_col_width
159
- for col_name in ['hall', 'seq', 'movie', 'pinyin', 'time']:
160
- col_x_starts[col_name] = current_x
161
- current_x += col_widths[col_name]
162
-
163
- def draw_figure(fig, ax):
164
- renderer = fig.canvas.get_renderer()
165
- for col_name in ['hall', 'seq', 'movie', 'pinyin']:
166
- x_line = col_x_starts[col_name] + col_widths[col_name]
167
- line_top_y, line_bottom_y = A4_height_in - row_height, row_height
168
- ax.add_line(Line2D([x_line, x_line], [line_bottom_y, line_top_y], color='gray', linestyle=':', linewidth=0.5))
169
-
170
- last_hall_drawn = None
171
- for i, row in data.iterrows():
172
- y_bottom = A4_height_in - (i + 2) * row_height
173
- y_center = y_bottom + row_height / 2
174
-
175
- if row['Hall'] != last_hall_drawn:
176
- ax.text(col_x_starts['hall'] + col_widths['hall'] / 2, y_center, row['hall_str'],
177
- fontproperties=get_font_regular(base_font_size_pt), ha='center', va='center')
178
- last_hall_drawn = row['Hall']
179
-
180
- ax.text(col_x_starts['seq'] + col_widths['seq'] / 2, y_center, row['seq_str'],
181
- fontproperties=get_font_regular(seq_font_size_pt), ha='center', va='center')
182
- ax.text(col_x_starts['pinyin'] + col_widths['pinyin'] / 2, y_center, row['pinyin_abbr'],
183
- fontproperties=get_font_regular(base_font_size_pt), ha='center', va='center')
184
- ax.text(col_x_starts['time'] + col_widths['time'] / 2, y_center, row['time_str'],
185
- fontproperties=get_font_regular(base_font_size_pt), ha='center', va='center')
186
-
187
- movie_font_size = base_font_size_pt
188
- movie_font_prop = get_font_regular(movie_font_size)
189
- text_w_px, _, _ = renderer.get_text_width_height_descent(row['Movie'], movie_font_prop, ismath=False)
190
- text_w_in = text_w_px / dpi
191
- max_width_in = col_widths['movie'] * 0.9
192
-
193
- if text_w_in > max_width_in:
194
- movie_font_size *= (max_width_in / text_w_in)
195
- movie_font_prop = get_font_regular(movie_font_size)
196
-
197
- ax.text(col_x_starts['movie'] + 0.05, y_center, row['Movie'], fontproperties=movie_font_prop, ha='left', va='center')
198
-
199
- is_last_in_hall = (i == len(data) - 1) or (row['Hall'] != data.loc[i + 1, 'Hall'])
200
- line_start_x = margin_col_width
201
- line_end_x = A4_width_in - margin_col_width
202
- if is_last_in_hall:
203
- ax.add_line(Line2D([line_start_x, line_end_x], [y_bottom, y_bottom], color='black', linestyle='-', linewidth=0.8))
204
- else:
205
- ax.add_line(Line2D([line_start_x, line_end_x], [y_bottom, y_bottom], color='gray', linestyle=':', linewidth=0.5))
206
-
207
- outputs = {}
208
- for format_type in ['png', 'pdf']:
209
- fig = plt.figure(figsize=(A4_width_in, A4_height_in), dpi=dpi)
210
- ax = fig.add_axes([0, 0, 1, 1])
211
- ax.set_axis_off()
212
- ax.set_xlim(0, A4_width_in)
213
- ax.set_ylim(0, A4_height_in)
214
- ax.text(margin_col_width, A4_height_in - (row_height / 2), date_str,
215
- fontproperties=get_font_regular(10), color='#A9A9A9', ha='left', va='center')
216
-
217
- draw_figure(fig, ax)
218
-
219
- buf = io.BytesIO()
220
- fig.savefig(buf, format=format_type, dpi=dpi, bbox_inches='tight', pad_inches=0)
221
- buf.seek(0)
222
- data_uri = base64.b64encode(buf.getvalue()).decode()
223
- mime_type = 'image/png' if format_type == 'png' else 'application/pdf'
224
- outputs[format_type] = f"data:{mime_type};base64,{data_uri}"
225
- plt.close(fig)
226
-
227
- return outputs
228
-
229
- # --- '放映场次核对表' 处理函数 ---
230
- def process_schedule_times(file):
231
- """处理 '放映场次核对表.xls' 文件"""
232
- try:
233
- df = pd.read_excel(file, skiprows=8)
234
- df = df.iloc[:, [6, 7, 9]]
235
- df.columns = ['Hall', 'StartTime', 'EndTime']
236
- df = df.dropna(subset=['Hall', 'StartTime', 'EndTime'])
237
- df['Hall'] = df['Hall'].str.extract(r'(\d+)号').astype(str) + ' '
238
- base_date = datetime.today().date()
239
- df['StartTime'] = pd.to_datetime(df['StartTime'])
240
- df['EndTime'] = pd.to_datetime(df['EndTime'])
241
-
242
- business_start = datetime.strptime(f"{base_date} {BUSINESS_START}", "%Y-%m-%d %H:%M")
243
- business_end = datetime.strptime(f"{base_date} {BUSINESS_END}", "%Y-%m-%d %H:%M")
244
- if business_end < business_start:
245
- business_end += timedelta(days=1)
246
-
247
- for idx, row in df.iterrows():
248
- end_time = row['EndTime']
249
- if end_time.hour < 9:
250
- df.at[idx, 'EndTime'] = end_time + timedelta(days=1)
251
- if row['StartTime'].hour >= 21 and end_time.hour < 9:
252
- df.at[idx, 'EndTime'] = end_time + timedelta(days=1)
253
-
254
- df['time_for_comparison'] = df['EndTime'].apply(lambda x: datetime.combine(base_date, x.time()))
255
- df.loc[df['time_for_comparison'].dt.hour < 9, 'time_for_comparison'] += timedelta(days=1)
256
-
257
- valid_times = (((df['time_for_comparison'] >= datetime.combine(base_date, business_start.time())) &
258
- (df['time_for_comparison'] <= datetime.combine(base_date + timedelta(days=1), business_end.time()))))
259
- df = df[valid_times]
260
-
261
- df = df.sort_values('EndTime')
262
- split_time = datetime.strptime(f"{base_date} {SPLIT_TIME}", "%Y-%m-%d %H:%M")
263
- split_time_for_comparison = df['time_for_comparison'].apply(lambda x: datetime.combine(base_date, split_time.time()))
264
-
265
- part1 = df[df['time_for_comparison'] <= split_time_for_comparison].copy()
266
- part2 = df[df['time_for_comparison'] > split_time_for_comparison].copy()
267
-
268
- for part in [part1, part2]:
269
- part['EndTime'] = part['EndTime'].dt.strftime('%-H:%M')
270
-
271
- date_df = pd.read_excel(file, skiprows=5, nrows=1, usecols=[2], header=None)
272
- date_cell = date_df.iloc[0, 0]
273
- try:
274
- if isinstance(date_cell, str):
275
- date_str = datetime.strptime(date_cell, '%Y-%m-%d').strftime('%Y-%m-%d')
276
- else:
277
- date_str = pd.to_datetime(date_cell).strftime('%Y-%m-%d')
278
- except:
279
- date_str = datetime.today().strftime('%Y-%m-%d')
280
-
281
- return part1[['Hall', 'EndTime']], part2[['Hall', 'EndTime']], date_str
282
- except Exception as e:
283
- st.error(f"处理文件出错: {str(e)}")
284
- return None, None, None
285
-
286
- def create_print_layout_times(data, title, date_str):
287
- """为 '放映场次核对表' 生成打印布局 (使用 Bold 字体)"""
288
- if data.empty:
289
- return None
290
-
291
- def generate_figure():
292
- total_items = len(data)
293
- num_rows = math.ceil(total_items / NUM_COLS) if total_items > 0 else 1
294
- date_header_height_in = 0.3
295
- data_area_height_in = A5_HEIGHT_IN - date_header_height_in
296
- cell_width_in = A5_WIDTH_IN / NUM_COLS
297
- cell_height_in = data_area_height_in / num_rows
298
- cell_width_pt = cell_width_in * 72
299
- cell_height_pt = cell_height_in * 72
300
- target_text_width_pt = cell_width_pt * 0.9
301
- fontsize_from_width = target_text_width_pt / (8 * 0.6)
302
- fontsize_from_height = cell_height_pt * 0.8
303
- base_fontsize = min(fontsize_from_width, fontsize_from_height)
304
-
305
- fig = plt.figure(figsize=(A5_WIDTH_IN, A5_HEIGHT_IN), dpi=300)
306
- fig.subplots_adjust(left=0, right=1, top=1, bottom=0)
307
-
308
- gs = gridspec.GridSpec(
309
- num_rows + 1, NUM_COLS,
310
- hspace=0, wspace=0,
311
- height_ratios=[date_header_height_in] + [cell_height_in] * num_rows,
312
- figure=fig)
313
-
314
- data_values = data.values.tolist()
315
- while len(data_values) % NUM_COLS != 0:
316
- data_values.append(['', ''])
317
-
318
- rows_per_col_layout = math.ceil(len(data_values) / NUM_COLS)
319
- sorted_data = [['', '']] * len(data_values)
320
- for i, item in enumerate(data_values):
321
- if item[0] and item[1]:
322
- row_in_col = i % rows_per_col_layout
323
- col_idx = i // rows_per_col_layout
324
- new_index = row_in_col * NUM_COLS + col_idx
325
- if new_index < len(sorted_data):
326
- sorted_data[new_index] = item
327
-
328
- for idx, (hall, end_time) in enumerate(sorted_data):
329
- if hall and end_time:
330
- row_grid = idx // NUM_COLS + 1
331
- col_grid = idx % NUM_COLS
332
- ax = fig.add_subplot(gs[row_grid, col_grid])
333
- for spine in ax.spines.values():
334
- spine.set_visible(True)
335
- spine.set_linestyle((0, (1, 2)))
336
- spine.set_color(BORDER_COLOR)
337
- spine.set_linewidth(0.75)
338
-
339
- display_text = f"{hall}{end_time}"
340
- ax.text(0.5, 0.5, display_text,
341
- fontproperties=get_font_bold(base_fontsize), # 使用 Bold 字体
342
- ha='center', va='center',
343
- transform=ax.transAxes)
344
- ax.set_xticks([])
345
- ax.set_yticks([])
346
- ax.set_facecolor('none')
347
-
348
- ax_date = fig.add_subplot(gs[0, :])
349
- ax_date.text(0.01, 0.5, f"{date_str} {title}",
350
- fontproperties=get_font_bold(base_fontsize * 0.5), # 使用 Bold 字体
351
- color=DATE_COLOR,
352
- ha='left', va='center',
353
- transform=ax_date.transAxes)
354
- ax_date.set_axis_off()
355
- ax_date.set_facecolor('none')
356
-
357
- return fig
358
-
359
- fig_for_output = generate_figure()
360
- png_buffer = io.BytesIO()
361
- fig_for_output.savefig(png_buffer, format='png')
362
- png_buffer.seek(0)
363
- png_base64 = base64.b64encode(png_buffer.getvalue()).decode()
364
-
365
- pdf_buffer = io.BytesIO()
366
- with PdfPages(pdf_buffer) as pdf:
367
- pdf.savefig(fig_for_output)
368
- pdf_buffer.seek(0)
369
- pdf_base64 = base64.b64encode(pdf_buffer.getvalue()).decode()
370
-
371
- plt.close(fig_for_output)
372
- return {'png': f'data:image/png;base64,{png_base64}', 'pdf': f'data:application/pdf;base64,{pdf_base64}'}
373
-
374
- def display_pdf(base64_pdf):
375
- """在Streamlit中嵌入显示PDF"""
376
- return f'<iframe src="{base64_pdf}" width="100%" height="800" type="application/pdf"></iframe>'
377
-
378
- # --- Streamlit 主程序 ---
379
- st.set_page_config(page_title="影院排期打印工具", layout="wide")
380
- st.title("影院排期打印工具")
381
-
382
- uploaded_file = st.file_uploader("请上传 '放映时间核对表.xls' 或 '放映场次核对表.xls'",
383
- type=["xls", "xlsx"])
384
-
385
- if uploaded_file:
386
- # 根据文件名中的关键字判断使用哪个处理流程
387
- if "时间" in uploaded_file.name:
388
- st.header("LED屏排片表")
389
- with st.spinner("正在处理文件,请稍候..."):
390
- schedule, date_str = process_schedule_led(uploaded_file)
391
- if schedule is not None and not schedule.empty:
392
- output = create_print_layout_led(schedule, date_str)
393
- tab1, tab2 = st.tabs(["PDF 预览", "图片预览 (PNG)"])
394
- with tab1:
395
- st.markdown(display_pdf(output['pdf']), unsafe_allow_html=True)
396
- with tab2:
397
- st.image(output['png'], use_container_width=True)
398
- else:
399
- st.error("无法处理文件。请检查文件内容和格式是否正确。")
400
-
401
- elif "场次" in uploaded_file.name:
402
- st.header("散场时间快捷打印")
403
- part1, part2, date_str = process_schedule_times(uploaded_file)
404
- if part1 is not None and part2 is not None:
405
- part1_output = create_print_layout_times(part1, "A", date_str)
406
- part2_output = create_print_layout_times(part2, "C", date_str)
407
-
408
- col1, col2 = st.columns(2)
409
- with col1:
410
- st.subheader("白班 (散场时间 ≤ 17:00)")
411
- if part1_output:
412
- tab1_1, tab1_2 = st.tabs(["PDF 预览 ", "图片预览 (PNG) "])
413
- with tab1_1:
414
- st.markdown(display_pdf(part1_output['pdf']), unsafe_allow_html=True)
415
- with tab1_2:
416
- st.image(part1_output['png'])
417
- else:
418
- st.info("白班没有排期数据。")
419
-
420
- with col2:
421
- st.subheader("晚班 (散场时间 > 17:00)")
422
- if part2_output:
423
- tab2_1, tab2_2 = st.tabs(["PDF 预览 ", "图片预览 (PNG) "])
424
- with tab2_1:
425
- st.markdown(display_pdf(part2_output['pdf']), unsafe_allow_html=True)
426
- with tab2_2:
427
- st.image(part2_output['png'])
428
- else:
429
- st.info("晚班没有排期数据。")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app5.py DELETED
@@ -1,459 +0,0 @@
1
- import pandas as pd
2
- import streamlit as st
3
- import matplotlib.pyplot as plt
4
- import matplotlib.font_manager as font_manager
5
- from matplotlib.lines import Line2D
6
- import io
7
- import base64
8
- import os
9
- from datetime import datetime, timedelta, time
10
- from pypinyin import lazy_pinyin, Style
11
- from matplotlib.backends.backend_pdf import PdfPages
12
- import matplotlib.gridspec as gridspec
13
- import math
14
-
15
- # --- 常量和配置 ---
16
- BUSINESS_START = "09:30"
17
- BUSINESS_END = "01:30"
18
- BORDER_COLOR = 'grey'
19
- DATE_COLOR = '#A9A9A9'
20
- A5_WIDTH_IN = 5.83
21
- A5_HEIGHT_IN = 8.27
22
- NUM_COLS = 3
23
-
24
- # --- 字体清单 ---
25
- ALL_FONTS = {
26
- "思源黑体-常规 (推荐 LED 屏)": "SimHei.ttf",
27
- "思源黑体-重体 (推荐散场表)": "SourceHanSansOLD-Heavy-2.otf",
28
- "思源黑体-粗体": "SourceHanSansOLD-Bold-2.otf",
29
- "思源宋体-常规": "SourceHanSansCN-Normal.otf",
30
- "苹方-中黑": "PingFangSC-Medium.otf",
31
- "苹方-半粗": "PingFangSC-Semibold.otf",
32
- "苹方-极细": "PingFangSC-Ultralight.otf",
33
- "阿里巴巴普惠体-常规": "Alibaba-PuHuiTi.ttf",
34
- "阿里巴巴普惠体-粗体": "AlibabaPuHuiTi-Bold.otf",
35
- "阿里巴巴普惠体-重体": "AlibabaPuHuiTi-Heavy.otf",
36
- }
37
- AVAILABLE_FONTS = {name: fname for name, fname in ALL_FONTS.items() if os.path.exists(fname)}
38
-
39
-
40
- # --- 字体加载与文本处理函数 ---
41
-
42
- def get_font_properties(font_path, size=14):
43
- """通用字体加载函数"""
44
- if font_path and os.path.exists(font_path):
45
- return font_manager.FontProperties(fname=font_path, size=size)
46
- else:
47
- st.warning(f"警告:未找到字体文件 '{font_path}',显示可能不正确。将使用默认字体。")
48
- return font_manager.FontProperties(family='sans-serif', size=size)
49
-
50
-
51
- def get_pinyin_abbr(text):
52
- """获取中文文本前两个字的拼音首字母"""
53
- if not text: return ""
54
- chars = [c for c in text if '\u4e00' <= c <= '\u9fff'][:2]
55
- if not chars: return ""
56
- pinyin_list = lazy_pinyin(chars, style=Style.FIRST_LETTER)
57
- return ''.join(pinyin_list).upper()
58
-
59
-
60
- def format_seq(n):
61
- """将数字或字符转换为带圈序号 (①, ②, ③...),非数字则直接返回"""
62
- try:
63
- n = int(n)
64
- except (ValueError, TypeError):
65
- return str(n)
66
- if n <= 0: return str(n)
67
- circled_chars = "①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳㉑㉒㉓㉔㉕㉖㉗㉘㉙㉚㉛㉜㉝㉞㉟㊱㊲㊳㊴㊵㊶㊷㊸㊹㊺㊻㊼㊽㊾㊿"
68
- if 1 <= n <= 50: return circled_chars[n - 1]
69
- return f'({n})'
70
-
71
-
72
- # --- 核心数据处理函数 ---
73
-
74
- def process_unified_schedule(file, split_time_str, time_adjustment_minutes=0):
75
- """
76
- 统一处理 '放映时间核对表.xls' 文件, 生成两种表格所需的数据。
77
- """
78
- try:
79
- date_df = pd.read_excel(file, header=None, skiprows=7, nrows=1, usecols=[3])
80
- date_str = pd.to_datetime(date_df.iloc[0, 0]).strftime('%Y-%m-%d')
81
- base_date = pd.to_datetime(date_str).date()
82
- except Exception:
83
- date_str = datetime.today().strftime('%Y-%m-%d')
84
- base_date = datetime.today().date()
85
-
86
- try:
87
- df = pd.read_excel(file, header=9, usecols=[1, 2, 4, 5])
88
- df.columns = ['Hall', 'StartTime', 'EndTime', 'Movie']
89
- df['Hall'] = df['Hall'].ffill()
90
- df.dropna(subset=['StartTime', 'EndTime', 'Movie'], inplace=True)
91
- except Exception as e:
92
- st.error(f"读取排期数据时出错: {e}。请检查文件格式是否为'放映时间核对表'。")
93
- return None, None, None, date_str
94
-
95
- # 'LED屏排片表' 数据处理
96
- led_df = df.copy()
97
- try:
98
- # **优化2**: 优先提取 'X号',失败则取第一个字符 + '号'
99
- extracted = led_df['Hall'].astype(str).str.extract(r'(\d+号)')
100
- fallback = led_df['Hall'].astype(str).str[0] + '号'
101
- led_df['Hall'] = extracted[0].fillna(fallback)
102
-
103
- led_df['StartTime_dt'] = pd.to_datetime(led_df['StartTime'], format='%H:%M', errors='coerce').apply(
104
- lambda t: t.replace(year=base_date.year, month=base_date.month, day=base_date.day) if pd.notnull(t) else t)
105
- led_df['EndTime_dt'] = pd.to_datetime(led_df['EndTime'], format='%H:%M', errors='coerce').apply(
106
- lambda t: t.replace(year=base_date.year, month=base_date.month, day=base_date.day) if pd.notnull(t) else t)
107
- led_df.loc[led_df['EndTime_dt'] < led_df['StartTime_dt'], 'EndTime_dt'] += timedelta(days=1)
108
- led_df = led_df.sort_values(['Hall', 'StartTime_dt'])
109
- merged_rows = []
110
- for _, group in led_df.groupby('Hall'):
111
- current = None
112
- for _, row in group.sort_values('StartTime_dt').iterrows():
113
- if current is None:
114
- current = row.copy()
115
- elif row['Movie'] == current['Movie']:
116
- current['EndTime_dt'] = row['EndTime_dt']
117
- else:
118
- merged_rows.append(current)
119
- current = row.copy()
120
- if current is not None: merged_rows.append(current)
121
- merged_df = pd.DataFrame(merged_rows)
122
- merged_df['StartTime_dt'] -= timedelta(minutes=10)
123
- merged_df['EndTime_dt'] -= timedelta(minutes=5)
124
- merged_df['Seq'] = merged_df.groupby('Hall').cumcount() + 1
125
- merged_df['StartTime_str'] = merged_df['StartTime_dt'].dt.strftime('%H:%M')
126
- merged_df['EndTime_str'] = merged_df['EndTime_dt'].dt.strftime('%H:%M')
127
- led_schedule_df = merged_df[['Hall', 'Seq', 'Movie', 'StartTime_str', 'EndTime_str']]
128
- except Exception as e:
129
- st.error(f"处理 'LED屏排片表' 数据时出错: {e}")
130
- led_schedule_df = None
131
-
132
- # '散场时间快捷打印' 数据处理
133
- times_df = df.copy()
134
- try:
135
- # **优化2**: 优先提取数字,失败则取第一个字符
136
- num_part = times_df['Hall'].str.extract(r'(\d+)')[0]
137
- char_part = times_df['Hall'].astype(str).str[0]
138
- times_df['Hall'] = num_part.fillna(char_part)
139
- times_df.dropna(subset=['Hall', 'StartTime', 'EndTime'], inplace=True)
140
- times_df['StartTime_dt'] = pd.to_datetime(times_df['StartTime'], format='%H:%M', errors='coerce').apply(
141
- lambda t: datetime.combine(base_date, t.time()) if pd.notnull(t) else pd.NaT)
142
- times_df['EndTime_dt'] = pd.to_datetime(times_df['EndTime'], format='%H:%M', errors='coerce').apply(
143
- lambda t: datetime.combine(base_date, t.time()) if pd.notnull(t) else pd.NaT)
144
- times_df.loc[times_df['EndTime_dt'] < times_df['StartTime_dt'], 'EndTime_dt'] += timedelta(days=1)
145
-
146
- # **优化4**: 应用时间提前量
147
- if time_adjustment_minutes > 0:
148
- times_df['EndTime_dt'] -= timedelta(minutes=time_adjustment_minutes)
149
-
150
- business_start_dt = datetime.combine(base_date, datetime.strptime(BUSINESS_START, "%H:%M").time())
151
- business_end_dt = datetime.combine(base_date, datetime.strptime(BUSINESS_END, "%H:%M").time())
152
- if business_end_dt < business_start_dt: business_end_dt += timedelta(days=1)
153
- times_df = times_df[(times_df['EndTime_dt'] >= business_start_dt) & (times_df['EndTime_dt'] <= business_end_dt)]
154
- times_df = times_df.sort_values('EndTime_dt')
155
- split_dt = datetime.combine(base_date, split_time_str)
156
- part1 = times_df[times_df['EndTime_dt'] <= split_dt].copy()
157
- part2 = times_df[times_df['EndTime_dt'] > split_dt].copy()
158
-
159
- # **优化1**: 使用 %H:%M 保证两位小时
160
- part1['EndTime'] = part1['EndTime_dt'].dt.strftime('%H:%M')
161
- part2['EndTime'] = part2['EndTime_dt'].dt.strftime('%H:%M')
162
-
163
- times_part1_df = part1[['Hall', 'EndTime']]
164
- times_part2_df = part2[['Hall', 'EndTime']]
165
- except Exception as e:
166
- st.error(f"处理 '散场时间表' 数据时出错: {e}")
167
- times_part1_df, times_part2_df = None, None
168
-
169
- return led_schedule_df, times_part1_df, times_part2_df, date_str
170
-
171
-
172
- # --- 'LED屏排片表' 布局生成函数 ---
173
- def create_print_layout_led(data, date_str, font_path, generate_png=False):
174
- if data is None or data.empty: return None
175
- A4_width_in, A4_height_in = 8.27, 11.69
176
- dpi = 300
177
- total_content_rows = len(data)
178
- layout_rows = max(total_content_rows, 25)
179
- totalA = layout_rows + 2
180
- row_height = A4_height_in / totalA
181
- data = data.reset_index(drop=True)
182
- data['hall_str'] = '$' + data['Hall'].str.replace('号', '') + '^{\#}$'
183
- data['seq_str'] = data['Seq'].apply(format_seq)
184
- data['pinyin_abbr'] = data['Movie'].apply(get_pinyin_abbr)
185
- data['time_str'] = data['StartTime_str'] + ' - ' + data['EndTime_str']
186
- temp_fig = plt.figure(figsize=(A4_width_in, A4_height_in), dpi=dpi)
187
- renderer = temp_fig.canvas.get_renderer()
188
- base_font_size_pt = (row_height * 0.9) * 72
189
- seq_font_size_pt = (row_height * 0.5) * 72
190
-
191
- def get_col_width_in(series, font_size_pt, is_math=False):
192
- if series.empty: return 0
193
- font_prop = get_font_properties(font_path, font_size_pt)
194
- longest_str_idx = series.astype(str).str.len().idxmax()
195
- max_content = str(series.loc[longest_str_idx])
196
- text_width_px, _, _ = renderer.get_text_width_height_descent(max_content, font_prop, ismath=is_math)
197
- return (text_width_px / dpi) * 1.1
198
-
199
- margin_col_width = row_height
200
- hall_col_width = get_col_width_in(data['hall_str'], base_font_size_pt, is_math=True)
201
- seq_col_width = get_col_width_in(data['seq_str'], seq_font_size_pt)
202
- pinyin_col_width = get_col_width_in(data['pinyin_abbr'], base_font_size_pt)
203
- time_col_width = get_col_width_in(data['time_str'], base_font_size_pt)
204
- movie_col_width = A4_width_in - (
205
- margin_col_width * 2 + hall_col_width + seq_col_width + pinyin_col_width + time_col_width)
206
- plt.close(temp_fig)
207
- col_widths = {'hall': hall_col_width, 'seq': seq_col_width, 'movie': movie_col_width, 'pinyin': pinyin_col_width,
208
- 'time': time_col_width}
209
- col_x_starts = {}
210
- current_x = margin_col_width
211
- for col_name in ['hall', 'seq', 'movie', 'pinyin', 'time']:
212
- col_x_starts[col_name] = current_x
213
- current_x += col_widths[col_name]
214
-
215
- def draw_figure(fig, ax):
216
- renderer = fig.canvas.get_renderer()
217
- for col_name in ['hall', 'seq', 'movie', 'pinyin']:
218
- x_line = col_x_starts[col_name] + col_widths[col_name]
219
- line_top_y, line_bottom_y = A4_height_in - row_height, row_height
220
- ax.add_line(
221
- Line2D([x_line, x_line], [line_bottom_y, line_top_y], color='gray', linestyle=':', linewidth=0.5))
222
- last_hall_drawn = None
223
- for i, row in data.iterrows():
224
- y_bottom = A4_height_in - (i + 2) * row_height
225
- y_center = y_bottom + row_height / 2
226
- if row['Hall'] != last_hall_drawn:
227
- ax.text(col_x_starts['hall'] + col_widths['hall'] / 2, y_center, row['hall_str'],
228
- fontproperties=get_font_properties(font_path, base_font_size_pt), ha='center', va='center')
229
- last_hall_drawn = row['Hall']
230
- ax.text(col_x_starts['seq'] + col_widths['seq'] / 2, y_center, row['seq_str'],
231
- fontproperties=get_font_properties(font_path, seq_font_size_pt), ha='center', va='center')
232
- ax.text(col_x_starts['pinyin'] + col_widths['pinyin'] / 2, y_center, row['pinyin_abbr'],
233
- fontproperties=get_font_properties(font_path, base_font_size_pt), ha='center', va='center')
234
- ax.text(col_x_starts['time'] + col_widths['time'] / 2, y_center, row['time_str'],
235
- fontproperties=get_font_properties(font_path, base_font_size_pt), ha='center', va='center')
236
- movie_font_size = base_font_size_pt
237
- movie_font_prop = get_font_properties(font_path, movie_font_size)
238
- text_w_px, _, _ = renderer.get_text_width_height_descent(row['Movie'], movie_font_prop, ismath=False)
239
- text_w_in = text_w_px / dpi
240
- max_width_in = col_widths['movie'] * 0.9
241
- if text_w_in > max_width_in:
242
- movie_font_size *= (max_width_in / text_w_in)
243
- movie_font_prop = get_font_properties(font_path, movie_font_size)
244
- ax.text(col_x_starts['movie'] + 0.05, y_center, row['Movie'], fontproperties=movie_font_prop, ha='left',
245
- va='center')
246
- is_last_in_hall = (i == len(data) - 1) or (row['Hall'] != data.loc[i + 1, 'Hall'])
247
- line_start_x, line_end_x = margin_col_width, A4_width_in - margin_col_width
248
- if is_last_in_hall:
249
- ax.add_line(Line2D([line_start_x, line_end_x], [y_bottom, y_bottom], color='black', linestyle='-',
250
- linewidth=0.8))
251
- else:
252
- ax.add_line(Line2D([line_start_x, line_end_x], [y_bottom, y_bottom], color='gray', linestyle=':',
253
- linewidth=0.5))
254
-
255
- outputs = {}
256
- fig = plt.figure(figsize=(A4_width_in, A4_height_in), dpi=300)
257
- ax = fig.add_axes([0, 0, 1, 1])
258
- ax.set_axis_off();
259
- ax.set_xlim(0, A4_width_in);
260
- ax.set_ylim(0, A4_height_in)
261
- ax.text(margin_col_width, A4_height_in - row_height, date_str, fontproperties=get_font_properties(font_path, 10),
262
- color=DATE_COLOR, ha='left', va='bottom', transform=ax.transData)
263
- draw_figure(fig, ax)
264
- pdf_buf = io.BytesIO()
265
- fig.savefig(pdf_buf, format='pdf', dpi=dpi, bbox_inches='tight', pad_inches=0)
266
- pdf_buf.seek(0)
267
- outputs['pdf'] = f"data:application/pdf;base64,{base64.b64encode(pdf_buf.getvalue()).decode()}"
268
- if generate_png:
269
- png_buf = io.BytesIO()
270
- fig.savefig(png_buf, format='png', dpi=dpi, bbox_inches='tight', pad_inches=0)
271
- png_buf.seek(0)
272
- outputs['png'] = f"data:image/png;base64,{base64.b64encode(png_buf.getvalue()).decode()}"
273
- plt.close(fig)
274
- return outputs
275
-
276
-
277
- # --- '散场时间表' 布局生成函数 ---
278
- def create_print_layout_times(data, title, date_str, font_path, size_multiplier=1.1, hall_format='Default',
279
- generate_png=False):
280
- if data is None or data.empty: return None
281
-
282
- def generate_figure():
283
- total_items = len(data)
284
- num_rows = math.ceil(total_items / NUM_COLS) if total_items > 0 else 1
285
- data_area_height_in, cell_width_in = A5_HEIGHT_IN, A5_WIDTH_IN / NUM_COLS
286
- cell_height_in = data_area_height_in / num_rows
287
- target_width_pt, target_height_pt = (cell_width_in * 0.9) * 72, (cell_height_in * 0.9) * 72
288
- font_size_based_on_width = target_width_pt / (8 * 0.6)
289
- base_fontsize = min(font_size_based_on_width, target_height_pt) * size_multiplier
290
- fig = plt.figure(figsize=(A5_WIDTH_IN, A5_HEIGHT_IN), dpi=300)
291
- fig.subplots_adjust(left=0, right=1, top=1, bottom=0)
292
- gs = gridspec.GridSpec(num_rows, NUM_COLS, hspace=0, wspace=0, figure=fig)
293
- data_values = data.values.tolist()
294
- while len(data_values) % NUM_COLS != 0: data_values.append(['', ''])
295
- rows_per_col_layout = math.ceil(len(data_values) / NUM_COLS)
296
- sorted_data = [['', '']] * len(data_values)
297
- for i, item in enumerate(data_values):
298
- if item[0] and item[1]:
299
- row_in_col, col_idx = i % rows_per_col_layout, i // rows_per_col_layout
300
- new_index = row_in_col * NUM_COLS + col_idx
301
- if new_index < len(sorted_data): sorted_data[new_index] = item
302
- is_first_cell_with_data = True
303
- for idx, (hall, end_time) in enumerate(sorted_data):
304
- if hall and end_time:
305
- row_grid, col_grid = idx // NUM_COLS, idx % NUM_COLS
306
- ax = fig.add_subplot(gs[row_grid, col_grid])
307
- for spine in ax.spines.values():
308
- spine.set_visible(True);
309
- spine.set_linestyle((0, (1, 2)))
310
- spine.set_color(BORDER_COLOR);
311
- spine.set_linewidth(0.75)
312
- if is_first_cell_with_data:
313
- ax.text(0.05, 0.95, f"{date_str} {title}",
314
- fontproperties=get_font_properties(font_path, base_fontsize * 0.5), color=DATE_COLOR,
315
- ha='left', va='top', transform=ax.transAxes)
316
- is_first_cell_with_data = False
317
- if hall_format == 'Superscript':
318
- display_text = f'${str(hall)}^{{\#}}$ {end_time}'
319
- elif hall_format == 'Circled':
320
- display_text = f'{format_seq(hall)} {end_time}'
321
- else: # Default
322
- display_text = f"{str(hall)} {end_time}"
323
- ax.text(0.5, 0.5, display_text, fontproperties=get_font_properties(font_path, base_fontsize),
324
- ha='center', va='center', transform=ax.transAxes)
325
- ax.set_xticks([]);
326
- ax.set_yticks([]);
327
- ax.set_facecolor('none')
328
- return fig
329
-
330
- fig_for_output = generate_figure()
331
- outputs = {}
332
- pdf_buffer = io.BytesIO()
333
- with PdfPages(pdf_buffer) as pdf:
334
- pdf.savefig(fig_for_output)
335
- pdf_buffer.seek(0)
336
- outputs['pdf'] = f"data:application/pdf;base64,{base64.b64encode(pdf_buffer.getvalue()).decode()}"
337
- if generate_png:
338
- png_buffer = io.BytesIO()
339
- fig_for_output.savefig(png_buffer, format='png')
340
- png_buffer.seek(0)
341
- outputs['png'] = f'data:image/png;base64,{base64.b64encode(png_buffer.getvalue()).decode()}'
342
- plt.close(fig_for_output)
343
- return outputs
344
-
345
-
346
- def display_pdf(base64_pdf):
347
- """在Streamlit中嵌入显示PDF"""
348
- return f'<iframe src="{base64_pdf}" width="100%" height="800" type="application/pdf"></iframe>'
349
-
350
-
351
- # --- Streamlit 主程序 ---
352
- st.set_page_config(page_title="影院场次与散场时间快捷打印工具", layout="wide")
353
- st.title("影院场次与散场时间快捷打印工具")
354
-
355
- uploaded_file = st.file_uploader("请上传 `放映时间核对表.xls` 文件", type=["xls"])
356
-
357
- with st.expander("⚙️ 显示与打印设置", expanded=False):
358
- col1, col2 = st.columns(2)
359
- with col1:
360
- st.subheader("⚙️ 修改 LED 屏排片表设置")
361
- led_font_name = st.selectbox("字体选择", options=list(AVAILABLE_FONTS.keys()), index=0, key="led_font")
362
- led_font_path = AVAILABLE_FONTS.get(led_font_name)
363
- generate_png_led = st.checkbox("生成 PNG 图片", value=False, key="png_led")
364
- with col2:
365
- st.subheader("⚙️ 散场时间表设置")
366
- times_font_name = st.selectbox("字体选择", options=list(AVAILABLE_FONTS.keys()), index=1, key="times_font")
367
- times_font_path = AVAILABLE_FONTS.get(times_font_name)
368
- # **优化5**: 调整字体大小范围
369
- font_size_multiplier = st.slider("字体大小调节", min_value=0.8, max_value=1.5, value=1.2, step=0.05,
370
- help="调整字体在单元格内的相对大小")
371
- split_time = st.time_input("白班 / 晚班分割时间", value=time(17, 0), help="散场时间在此时间点之前(含)的为白班")
372
- # **优化4**: 增加时间提前设置
373
- time_adjustment = st.slider("时间提前 (分钟)", min_value=0, max_value=10, value=0,
374
- help="将所有散场时间提前 N 分钟显示")
375
- hall_display_format = st.radio("影厅号格式", options=['Default', 'Superscript', 'Circled'],
376
- format_func=lambda x:
377
- {'Default': '默认 (2 18:28)', 'Superscript': '上标 (2# 18:28)',
378
- 'Circled': '带圈 (② 18:28)'}[x], horizontal=True)
379
- generate_png_times = st.checkbox("生成 PNG 图片", value=False, key="png_times")
380
-
381
- with st.expander("💡 使用帮助", expanded=False):
382
- st.markdown("""
383
- #### 🖨️ 功能简介
384
- 本工具用于将影院的 `放映时间核对表.xls` 文件快速转换为两种形式的打印页:
385
- 1. **修改 LED 屏幕排片表打印**:A4 竖版,详细列出影厅、场次、影片名、拼音缩写和时间范围,方便员工在修改 LED 屏幕时快速查阅和输入。
386
- - 拼音缩写是为了在输入法如 QQ 拼音输入法等造词功能,拼音缩写填写快捷键,内容填写影片名字,更快捷输入。
387
- - 时间范围已经优化过了,默认提前了 10 分钟。
388
- 2. **散场时间打印**:A5 竖版,以大字体分栏显示各影厅的散场时间,方便员工在疏散人群和清洁影厅时查阅。
389
- - 内容分三列,顺序是每列从上到下。
390
- - 可以在设置里面设置提前如 5 分钟,到时间就可以前往影厅在疏散人群和清洁影厅。
391
-
392
- #### ⬇️ 操作步骤
393
- 1. **上传文件**:导出 `放映时间核对表.xls` 后,点击上方的 "Browse files" 按钮,选择您的 `放映时间核对表.xls` 文件。
394
- 2. **调整设置 (可选)**:点击上方的 "显示与打印设置" 打开设置面板,根据需要调整字体、大小、格式等。
395
- 3. **预览与打印**:
396
- * 上传成功后,下方会自动生成预览。
397
- * 默认显示 **PDF 预览**,这是最适合打印的格式。可以直接在预览界面点击 🖨️ 打印按钮,设置纸张大小即可打印。
398
- * 如果勾选了 "生成 PNG 图片",可以切换到 **图片预览 (PNG)** 标签页查看或在新标签页中打开图片或下载图片后打印。
399
- """)
400
-
401
- # --- 主页面逻辑 ---
402
- if uploaded_file:
403
- with st.spinner("正在处理文件,请稍候..."):
404
- led_data, times_part1, times_part2, date_str = process_unified_schedule(uploaded_file, split_time,
405
- time_adjustment)
406
-
407
- st.toast(f"文件处理完成!排期日期:**{date_str}**", icon="🎉")
408
-
409
- # 显示 LED 屏排片表
410
- st.header("🖥️ 修改 LED 屏幕排片表打印")
411
- if led_data is not None and not led_data.empty:
412
- led_output = create_print_layout_led(led_data, date_str, led_font_path, generate_png_led)
413
- if led_output:
414
- tabs = ["PDF 预览"]
415
- if 'png' in led_output: tabs.append("PNG 预览")
416
- tab_views = st.tabs(tabs)
417
- with tab_views[0]:
418
- st.markdown(display_pdf(led_output['pdf']), unsafe_allow_html=True)
419
- if 'png' in led_output:
420
- with tab_views[1]: st.image(led_output['png'], use_container_width=True)
421
- else:
422
- st.error("未能成功生成 '修改 LED 屏排片表'。请检查文件内容或格式。")
423
-
424
- # 显示散场时间快捷打印
425
- st.header("🔚 散场时间打印")
426
- col1, col2 = st.columns(2)
427
- with col1:
428
- if times_part1 is not None and not times_part1.empty:
429
- part1_output = create_print_layout_times(times_part1, "A", date_str, times_font_path, font_size_multiplier,
430
- hall_display_format, generate_png_times)
431
- if part1_output:
432
- # **优化3**: 更改Tab标题
433
- tabs1 = [f"白班 (≤ {split_time.strftime('%H:%M')}) PDF 预览"]
434
- if 'png' in part1_output: tabs1.append(f"白班 (≤ {split_time.strftime('%H:%M')}) PNG 预览")
435
- tab_views1 = st.tabs(tabs1)
436
- with tab_views1[0]:
437
- st.markdown(display_pdf(part1_output['pdf']), unsafe_allow_html=True)
438
- if 'png' in part1_output:
439
- with tab_views1[1]: st.image(part1_output['png'])
440
- else:
441
- st.info(f"白班 (≤ {split_time.strftime('%H:%M')}) 没有排期数据。")
442
-
443
- with col2:
444
- if times_part2 is not None and not times_part2.empty:
445
- part2_output = create_print_layout_times(times_part2, "C", date_str, times_font_path, font_size_multiplier,
446
- hall_display_format, generate_png_times)
447
- if part2_output:
448
- # **优化3**: 更改Tab标题
449
- tabs2 = [f"晚班 (> {split_time.strftime('%H:%M')}) PDF 预览"]
450
- if 'png' in part2_output: tabs2.append(f"晚班 (> {split_time.strftime('%H:%M')}) PNG 预览")
451
- tab_views2 = st.tabs(tabs2)
452
- with tab_views2[0]:
453
- st.markdown(display_pdf(part2_output['pdf']), unsafe_allow_html=True)
454
- if 'png' in part2_output:
455
- with tab_views2[1]: st.image(part2_output['png'])
456
- else:
457
- st.info(f"晚班 (> {split_time.strftime('%H:%M')}) 没有排期数据。")
458
- else:
459
- st.info("👆 请先上传文件以生成预览。")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/App-Br-cfw1T.js ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./engine-D8pb6_zI.js","./index-BzsFXDqf.js","./index-advI9kSY.css"])))=>i.map(i=>d[i]);
2
+ import{j as e}from"./jsx-dev-runtime-Czb3f8pQ.js";import{_ as ae}from"./index-BzsFXDqf.js";import{r as m}from"./index-Br42UDbl.js";const _e=2.8,ce=[[.3,1.4,1.9,1.6],[1.9,1.4,2.1,2.05],[3.9,1.4,7.8,1.6],[7.8,0,9.4,.2],[9.4,0,9.8,.2],[10.8,0,11.6,.2],[9.4,.2,9.6,.3],[9.4,1.1,9.6,1.6],[9.4,3.4,9.6,3.6],[9.6,3.4,11.4,3.6],[11.4,.2,11.6,3.9],[11.4,5,11.6,5.9],[9.6,5.7,9.9,5.9],[11.1,5.7,11.4,5.9],[9.4,5.1,9.6,6],[9.4,6.65,9.6,7.9],[9.4,7.9,9.6,9.7],[9.4,9.7,9.6,9.9],[6.6,5.1,9.4,5.3],[6.7,6.8,9.4,6.9],[6.6,7.9,6.7,8.1],[6.6,8.3,6.8,9.4],[6.6,8.1,6.8,8.3],[6.6,5.3,6.7,6],[6.6,6.7,6.7,6.95],[6.6,7.85,6.7,7.9],[6.6,9.4,6.8,11.55],[0,11.35,5.5,11.55],[6.1,11.35,6.6,11.55],[4.3,9.4,4.4,11.35],[4.3,9.4,4.5,9.5],[5.3,9.4,6.6,9.5],[5.4,5.1,5.5,5.3],[5.4,6.2,5.5,8.4],[5.4,9.3,5.5,9.4],[2.1,8.2,5.4,8.3],[0,8.1,2.1,8.3],[.2,8.3,.8,8.5],[2.1,5.1,5.4,5.2],[1.3,5.1,2.1,5.3],[1.3,5.3,1.5,5.7],[1.3,7.5,1.5,8.1],[1.9,4.75,2.1,5.1],[0,8.3,.2,8.8],[0,10.75,.2,11.15],[0,11.15,.8,11.35]],W=[{kind:"window",r:[2.1,1.4,3.9,1.6],sill:.9,head:2.4},{kind:"window",r:[7.8,1.4,9.4,1.6],sill:.9,head:2.4},{kind:"window",r:[9.8,0,10.8,.2],sill:1,head:2.4},{kind:"window",r:[9.9,5.7,11.1,5.9],sill:.45,head:2.4},{kind:"window",r:[9.4,6,9.6,6.65],sill:1.4,head:2.3},{kind:"window",r:[5.5,11.35,6.1,11.55],sill:1.4,head:2.3},{kind:"window",r:[1.3,5.7,1.5,7.5],sill:.45,head:2.4},{kind:"window",r:[0,8.8,.2,10.75],sill:.45,head:2.4},{kind:"entry",r:[11.4,3.9,11.6,5],head:2.2},{kind:"door",r:[9.4,.3,9.6,1.1],head:2.1,leaf:"l",swing:1},{kind:"slide",r:[9.4,1.6,9.6,3.4],head:2.2},{kind:"slide",r:[1.9,2.05,2.1,4.75],head:2.4},{kind:"door",r:[6.6,6,6.7,6.7],head:2.1,leaf:"l",swing:1},{kind:"door",r:[6.6,6.95,6.7,7.85],head:2.1,leaf:"l",swing:1},{kind:"door",r:[5.4,5.3,5.5,6.2],head:2.1,leaf:"l",swing:-1},{kind:"door",r:[5.4,8.4,5.5,9.3],head:2.1,leaf:"r",swing:-1},{kind:"door",r:[4.5,9.4,5.3,9.5],head:2.1,leaf:"l",swing:1},{kind:"rail",r:[.3,1.6,.5,5.35]},{kind:"rail",r:[.5,5.15,1.3,5.35]},{kind:"rail",r:[7.8,.2,8,1.4]},{kind:"window",r:[6.8,9.7,9.4,9.9],sill:.9,head:2.4}],M=[{id:"foyer",name:"玄关",en:"Entry",rects:[[9.4,3.6,11.4,5.1]],bay:[9.6,5.1,11.4,5.7],floor:"porcelain",ceiling:"flat",eye:[10.9,4.45,Math.PI/2],light:[10.5,4.4],finishes:{floor:"800×800 哑光通体大板砖(暖灰)",wall:"防霉乳胶漆 · 奶油白",ceiling:"石膏板平顶 + 嵌入式射灯"},furniture:["顶天立地鞋柜(离地 20cm 悬空 + 底部感应灯带)","换鞋凳","飘窗收纳台 + 坐垫","全身镜"],tips:["鞋柜底部悬空 15–20cm,放常穿鞋并利于通风防霉;柜体选防潮多层板/颗粒板 E0 级","入户门内侧预留插座给智能锁/烘鞋器","飘窗台面用石材整块铺,避免回南天渗水发霉"]},{id:"dining",name:"餐厅",en:"Dining",rects:[[6.6,1.6,9.4,5.1]],floor:"porcelain",ceiling:"flat",eye:[8.9,4.4,Math.PI*.8],light:[8,3],finishes:{floor:"800×800 哑光通体大板砖(与客厅通铺)",wall:"防霉乳胶漆 · 奶油白",ceiling:"石膏板边吊 + 无主灯线性灯"},furniture:["岩板餐桌 1.6m + 6 把餐椅","线性吊灯","餐边柜(嵌入式,含小家电位)","厨房玻璃推拉门"],tips:["餐边柜台面高 ~95cm 处预留 2–3 组插座(咖啡机/烧水壶)","厨房做玻璃推拉门,中式爆炒油烟不跑进客餐厅","餐桌中心对准吊灯点位,水电阶段先定好"]},{id:"kitchen",name:"厨房",en:"Kitchen",rects:[[9.6,.2,11.4,3.4]],floor:"kitchen",ceiling:"alu",wet:!0,eye:[9.9,2.9,-Math.PI*.15],light:[10.5,1.8],finishes:{floor:"600×600 防滑哑光砖",wall:"300×600 白色亮面砖(通铺到顶)",ceiling:"铝扣板集成吊顶 + 平板灯"},furniture:["L 型橱柜 + 石英石台面","单槽水盆 + 净水器位","嵌入式燃气灶 + 侧吸油烟机","双开门冰箱位","吊柜到顶"],tips:["水槽柜底板贴铝箔/用防水板,柜体首选不锈钢或防潮颗粒板","台面挡水条 + 后挡水,防止台面背后渗水发霉","烟道止逆阀必装,高层烟道串味常见"]},{id:"lifeBalcony",name:"生活阳台",en:"Utility",rects:[[8,.2,9.4,1.4]],floor:"balcony",ceiling:"alu",wet:!0,eye:[9,1.2,-Math.PI*.35],light:[8.7,.8],finishes:{floor:"300×300 防滑砖,找坡 1% 到地漏",wall:"外墙涂料/瓷砖",ceiling:"铝扣板 + 电动升降晾衣架"},furniture:["滚筒洗衣机(带烘干)","洗衣柜 + 小水槽","电动晾衣架"],tips:["洗衣机地漏用专用防返味地漏,排水管插到底","回南天建议洗烘一体机或热泵干衣机","电动晾衣架需预留顶部插座"]},{id:"living",name:"客厅",en:"Living",rects:[[2.1,1.6,6.6,5.1]],floor:"porcelain",ceiling:"flat",eye:[5.8,2.2,Math.PI*.62],light:[3.8,3.3],finishes:{floor:"800×800 哑光通体大板砖 · 暖灰",wall:"防霉乳胶漆 + 电视背景木饰面",ceiling:"石膏板悬浮吊顶 + 灯带 + 射灯"},furniture:["3+1 布艺沙发(科技布,易打理)","岩板茶几","75 寸电视 + 悬浮电视柜","地毯","落地灯","柜��空调"],tips:["地面全屋通铺瓷砖,比木地板更防潮耐磨","电视墙预埋 50 管穿线,后期线不外露","空调柜机位在水电前确定,冷凝水管入墙"]},{id:"livingBalcony",name:"客厅阳台",en:"Balcony",rects:[[.5,1.6,1.9,5.15]],floor:"balcony",ceiling:"alu",eye:[1.6,4.7,-.2],light:[1.2,3.3],finishes:{floor:"600×600 防滑仿古砖",wall:"外墙涂料",ceiling:"铝扣板"},furniture:["休闲躺椅","小边几","绿植","空调外机位(百叶遮挡)"],tips:["化州台风季多,若封阳台选断桥铝 + 中空钢化玻璃","地面找坡朝地漏,防止暴雨倒灌客厅","阳台推拉门下框做挡水台阶"]},{id:"corridor",name:"过道",en:"Hall",rects:[[5.5,5.1,6.6,9.4]],floor:"porcelain",ceiling:"flat",eye:[6.05,5.4,Math.PI],light:[6.05,7.2],finishes:{floor:"大板砖通铺",wall:"防霉乳胶漆",ceiling:"石膏板平顶 + 筒灯"},furniture:["感应夜灯","装饰画"],tips:["过道做双控开关或人体感应夜灯","过道吊顶可藏中央空调/新风管"]},{id:"bath",name:"公卫",en:"Bath",rects:[[6.7,5.3,9.4,6.8]],floor:"bath",ceiling:"alu",wet:!0,eye:[6.95,6.3,-Math.PI/2],light:[8,6],finishes:{floor:"300×600 防滑哑光砖",wall:"300×600 哑光砖到顶",ceiling:"铝扣板 + 风暖浴霸"},furniture:["悬挂浴室柜 + 镜柜","壁挂/智能马桶","淋浴区 + 钢化玻璃隔断(干湿分离)","恒温花洒"],tips:["防水:地面全做 + 墙面淋浴区刷到 1.8m 以上,闭水试验 48h","淋浴区用长条地漏,挡水条用石材","浴霸带换气,回南天也能快速除湿"]},{id:"bed3",name:"次卧2(储藏+阳台合并)",en:"Bedroom 3",rects:[[6.7,6.9,9.4,8.1],[6.8,8.1,9.4,9.7]],floor:"wood",ceiling:"flat",eye:[6.95,7.4,-Math.PI*.7],light:[8.1,8.3],finishes:{floor:"强化复合木地板(防潮垫 + 地面找平,抹平原阳台高差)",wall:"防霉乳胶漆 · 燕麦色;原阳台外墙做内保温",ceiling:"石膏板平顶 + 吸顶灯"},furniture:["1.5×2.0m 床(床头靠东墙)","1.55m 推拉门衣柜","床头柜 + 台灯","南窗遮光窗帘 + 纱帘","壁挂空调"],tips:["拆墙前务必先找物业/开发商确认:这道墙原本是阳台外墙(200mm 厚),可能是剪力墙或承重墙,承重墙严禁拆;阳台窗下墙(配重墙)也不能动","封阳台要按物业统一的窗型和颜色报备,用断桥铝 + 中空玻璃,隔热隔音、防回南天结露","原阳台地面比室内低 2–5cm:先做防水(上翻 30cm)再找平,地漏和空调冷凝水管不要堵,改到窗外或包管保留","南向阳台夏天晒,窗户选 Low-E 玻璃 + 遮光帘,空调选 1.5 匹","合并后约 7.5㎡,床靠东墙、衣柜放北墙,门口留出 70cm 以上通道"]},{id:"bed2",name:"次卧(避难间)",en:"Bedroom 2",rects:[[2.1,5.2,5.4,8.2]],bay:[1.5,5.3,2.1,8.1],floor:"wood",ceiling:"flat",eye:[5.1,5.75,Math.PI*.62],light:[3.6,6.7],finishes:{floor:"木纹砖 / SPC 石塑地板(防潮)",wall:"防霉乳胶漆 · 浅燕麦色",ceiling:"石膏板平顶 + 无主灯"},furniture:["1.5m 床 + 床头柜","整体衣柜(到顶)","飘窗书桌 + 坐垫","挂壁空调"],tips:["本间为“避难间”,消防规范要求:外窗、防火门等设施不得私自改动,装修前向物业确认","衣柜背板贴墙处留 1cm 缝或加防潮膜","飘窗台改书桌注意台面承重"]},{id:"master",name:"主卧",en:"Master",rects:[[.8,8.3,5.4,9.4],[.8,9.4,4.3,11.35]],bay:[.2,8.5,.8,11.15],floor:"wood",ceiling:"flat",eye:[5,8.85,Math.PI*.65],light:[2.4,9.6],finishes:{floor:"木纹砖 / SPC 石塑地板(防潮)",wall:"防霉乳胶漆 · 雾霾蓝床头背景",ceiling:"石膏板悬浮吊顶 + 灯带"},furniture:["1.8m 软包床 + 床头柜","整体衣柜(到顶,防潮板材)","梳妆台","飘窗卧榻","挂壁空调","遮光窗帘"],tips:["衣柜做到顶,柜内装除湿棒或小抽湿机","床头两侧预留双控开关 + USB 插座","飘窗做下沉收纳要注意防水,台面整块石材"]},{id:"masterBath",name:"主卫",en:"En-suite",rects:[[4.4,9.5,6.6,11.35]],floor:"bath",ceiling:"alu",wet:!0,eye:[4.9,9.8,Math.PI*.8],light:[5.5,10.4],finishes:{floor:"300×600 防滑哑光砖",wall:"300×600 哑光砖到顶",ceiling:"铝扣板 + 风暖浴霸"},furniture:["悬挂浴室柜","马桶","淋浴房","毛巾架"],tips:["马桶离墙距离(坑距)验房时量清,常见 300/400mm","门口用石材门槛石 + 挡水条,避免水渗到卧室木地板","排风扇常开定时,主卫防霉关键"]}],E={x0:0,z0:0,x1:11.6,z1:11.55};function me(s){return(s[2]-s[0])*(s[3]-s[1])}function A(s){return s.rects.reduce((t,r)=>t+me(r),0)}function qe(s){const t=s.bay?[...s.rects,s.bay]:s.rects,r=Math.min(...t.map(i=>i[0])),l=Math.min(...t.map(i=>i[1])),f=Math.max(...t.map(i=>i[2])),u=Math.max(...t.map(i=>i[3]));return[r,l,f,u]}function ue(s,t){return M.find(r=>[...r.rects,...r.bay?[r.bay]:[]].some(l=>s>=l[0]&&s<=l[2]&&t>=l[1]&&t<=l[3]))}/**
3
+ * @license lucide-react v0.454.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */const de=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),X=(...s)=>s.filter((t,r,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===r).join(" ").trim();/**
8
+ * @license lucide-react v0.454.0 - ISC
9
+ *
10
+ * This source code is licensed under the ISC license.
11
+ * See the LICENSE file in the root directory of this source tree.
12
+ */var fe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
13
+ * @license lucide-react v0.454.0 - ISC
14
+ *
15
+ * This source code is licensed under the ISC license.
16
+ * See the LICENSE file in the root directory of this source tree.
17
+ */const pe=m.forwardRef(({color:s="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:l,className:f="",children:u,iconNode:i,...x},N)=>m.createElement("svg",{ref:N,...fe,width:t,height:t,stroke:s,strokeWidth:l?Number(r)*24/Number(t):r,className:X("lucide",f),...x},[...i.map(([w,b])=>m.createElement(w,b)),...Array.isArray(u)?u:[u]]));/**
18
+ * @license lucide-react v0.454.0 - ISC
19
+ *
20
+ * This source code is licensed under the ISC license.
21
+ * See the LICENSE file in the root directory of this source tree.
22
+ */const d=(s,t)=>{const r=m.forwardRef(({className:l,...f},u)=>m.createElement(pe,{ref:u,iconNode:t,className:X(`lucide-${de(s)}`,l),...f}));return r.displayName=`${s}`,r};/**
23
+ * @license lucide-react v0.454.0 - ISC
24
+ *
25
+ * This source code is licensed under the ISC license.
26
+ * See the LICENSE file in the root directory of this source tree.
27
+ */const Z=d("Aperture",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m14.31 8 5.74 9.94",key:"1y6ab4"}],["path",{d:"M9.69 8h11.48",key:"1wxppr"}],["path",{d:"m7.38 12 5.74-9.94",key:"1grp0k"}],["path",{d:"M9.69 16 3.95 6.06",key:"libnyf"}],["path",{d:"M14.31 16H2.83",key:"x5fava"}],["path",{d:"m16.62 12-5.74 9.94",key:"1vwawt"}]]);/**
28
+ * @license lucide-react v0.454.0 - ISC
29
+ *
30
+ * This source code is licensed under the ISC license.
31
+ * See the LICENSE file in the root directory of this source tree.
32
+ */const he=d("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
33
+ * @license lucide-react v0.454.0 - ISC
34
+ *
35
+ * This source code is licensed under the ISC license.
36
+ * See the LICENSE file in the root directory of this source tree.
37
+ */const xe=d("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
38
+ * @license lucide-react v0.454.0 - ISC
39
+ *
40
+ * This source code is licensed under the ISC license.
41
+ * See the LICENSE file in the root directory of this source tree.
42
+ */const Ne=d("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
43
+ * @license lucide-react v0.454.0 - ISC
44
+ *
45
+ * This source code is licensed under the ISC license.
46
+ * See the LICENSE file in the root directory of this source tree.
47
+ */const we=d("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
48
+ * @license lucide-react v0.454.0 - ISC
49
+ *
50
+ * This source code is licensed under the ISC license.
51
+ * See the LICENSE file in the root directory of this source tree.
52
+ */const be=d("Droplets",[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]]);/**
53
+ * @license lucide-react v0.454.0 - ISC
54
+ *
55
+ * This source code is licensed under the ISC license.
56
+ * See the LICENSE file in the root directory of this source tree.
57
+ */const ke=d("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
58
+ * @license lucide-react v0.454.0 - ISC
59
+ *
60
+ * This source code is licensed under the ISC license.
61
+ * See the LICENSE file in the root directory of this source tree.
62
+ */const K=d("Focus",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]]);/**
63
+ * @license lucide-react v0.454.0 - ISC
64
+ *
65
+ * This source code is licensed under the ISC license.
66
+ * See the LICENSE file in the root directory of this source tree.
67
+ */const Q=d("Footprints",[["path",{d:"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",key:"1dudjm"}],["path",{d:"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z",key:"l2t8xc"}],["path",{d:"M16 17h4",key:"1dejxt"}],["path",{d:"M4 13h4",key:"1bwh8b"}]]);/**
68
+ * @license lucide-react v0.454.0 - ISC
69
+ *
70
+ * This source code is licensed under the ISC license.
71
+ * See the LICENSE file in the root directory of this source tree.
72
+ */const Ve=d("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
73
+ * @license lucide-react v0.454.0 - ISC
74
+ *
75
+ * This source code is licensed under the ISC license.
76
+ * See the LICENSE file in the root directory of this source tree.
77
+ */const ve=d("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
78
+ * @license lucide-react v0.454.0 - ISC
79
+ *
80
+ * This source code is licensed under the ISC license.
81
+ * See the LICENSE file in the root directory of this source tree.
82
+ */const ye=d("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
83
+ * @license lucide-react v0.454.0 - ISC
84
+ *
85
+ * This source code is licensed under the ISC license.
86
+ * See the LICENSE file in the root directory of this source tree.
87
+ */const ge=d("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
88
+ * @license lucide-react v0.454.0 - ISC
89
+ *
90
+ * This source code is licensed under the ISC license.
91
+ * See the LICENSE file in the root directory of this source tree.
92
+ */const je=d("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
93
+ * @license lucide-react v0.454.0 - ISC
94
+ *
95
+ * This source code is licensed under the ISC license.
96
+ * See the LICENSE file in the root directory of this source tree.
97
+ */const Ee=d("PaintRoller",[["rect",{width:"16",height:"6",x:"2",y:"2",rx:"2",key:"jcyz7m"}],["path",{d:"M10 16v-2a2 2 0 0 1 2-2h8a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2",key:"1b9h7c"}],["rect",{width:"4",height:"6",x:"8",y:"16",rx:"1",key:"d6e7yl"}]]);/**
98
+ * @license lucide-react v0.454.0 - ISC
99
+ *
100
+ * This source code is licensed under the ISC license.
101
+ * See the LICENSE file in the root directory of this source tree.
102
+ */const He=d("Ruler",[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]]);/**
103
+ * @license lucide-react v0.454.0 - ISC
104
+ *
105
+ * This source code is licensed under the ISC license.
106
+ * See the LICENSE file in the root directory of this source tree.
107
+ */const De=d("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);/**
108
+ * @license lucide-react v0.454.0 - ISC
109
+ *
110
+ * This source code is licensed under the ISC license.
111
+ * See the LICENSE file in the root directory of this source tree.
112
+ */const Me=d("Sofa",[["path",{d:"M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3",key:"1dgpiv"}],["path",{d:"M2 16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"xacw8m"}],["path",{d:"M4 18v2",key:"jwo5n2"}],["path",{d:"M20 18v2",key:"1ar1qi"}],["path",{d:"M12 4v9",key:"oqhhn3"}]]);/**
113
+ * @license lucide-react v0.454.0 - ISC
114
+ *
115
+ * This source code is licensed under the ISC license.
116
+ * See the LICENSE file in the root directory of this source tree.
117
+ */const ze=d("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
118
+ * @license lucide-react v0.454.0 - ISC
119
+ *
120
+ * This source code is licensed under the ISC license.
121
+ * See the LICENSE file in the root directory of this source tree.
122
+ */const Ce=d("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
123
+ * @license lucide-react v0.454.0 - ISC
124
+ *
125
+ * This source code is licensed under the ISC license.
126
+ * See the LICENSE file in the root directory of this source tree.
127
+ */const Se=d("Sunset",[["path",{d:"M12 10V2",key:"16sf7g"}],["path",{d:"m4.93 10.93 1.41 1.41",key:"2a7f42"}],["path",{d:"M2 18h2",key:"j10viu"}],["path",{d:"M20 18h2",key:"wocana"}],["path",{d:"m19.07 10.93-1.41 1.41",key:"15zs5n"}],["path",{d:"M22 22H2",key:"19qnx5"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["path",{d:"M16 18a4 4 0 0 0-8 0",key:"1lzouq"}]]);/**
128
+ * @license lucide-react v0.454.0 - ISC
129
+ *
130
+ * This source code is licensed under the ISC license.
131
+ * See the LICENSE file in the root directory of this source tree.
132
+ */const B=d("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Pe=[{title:"公共区",ids:["foyer","living","dining","kitchen","corridor"]},{title:"卧室区",ids:["master","bed2","bed3"]},{title:"卫浴",ids:["bath","masterBath"]},{title:"阳台",ids:["livingBalcony","lifeBalcony"]}],G=s=>s?M.find(t=>t.id===s)??null:null,$=s=>s.toFixed(1),Y={porcelain:"#d9d2c5",wood:"#b98a5c",kitchen:"#c9c4bb",bath:"#a9b3b6",balcony:"#9aa58f"};function Le(){const s=m.useRef(null),t=m.useRef(null),[r,l]=m.useState(!1),[f,u]=m.useState(null),[i,x]=m.useState("orbit"),[N,w]=m.useState("day"),[b,y]=m.useState(!0),[H,o]=m.useState(!1),[a,V]=m.useState(!1),[g,O]=m.useState(null),[C,J]=m.useState("foyer"),[ee,se]=m.useState([10.9,4.45,Math.PI/2]),[S,T]=m.useState(!0),[_,z]=m.useState(!0),[te,ne]=m.useState(!0),[j,oe]=m.useState({on:!1,preparing:!1,samples:0});m.useEffect(()=>{let n=!1,c=null;const k=window.innerWidth<768;return k&&(T(!1),y(!1)),ae(async()=>{const{HouseEngine:p}=await import("./engine-D8pb6_zI.js").then(h=>h.a8);return{HouseEngine:p}},__vite__mapDeps([0,1,2]),import.meta.url).then(({HouseEngine:p})=>{n||!s.current||(c=new p(s.current,{onReady:()=>l(!0),onMode:h=>x(h),onSelect:h=>{O(h),h&&z(!0)},onRoom:h=>J(h),onPose:(h,ie,le)=>se([h,ie,le]),onTrace:h=>oe(h)}),k&&c.setQuality(!1),t.current=c,l(!0))}).catch(p=>u(String((p==null?void 0:p.message)??p))),()=>{n=!0,c==null||c.dispose(),t.current=null}},[]);const P=i==="walk"?C:g,D=G(P),re=m.useMemo(()=>M.reduce((n,c)=>n+A(c),0),[]),q=n=>{t.current&&(n==="walk"&&g?t.current.goToRoom(g,"walk"):t.current.setMode(n),n==="walk"&&V(!1))},F=n=>{const c=t.current;c&&(i==="walk"?c.goToRoom(n,"walk"):c.select(n,!0),O(n),z(!0))},U=()=>{const n=t.current;if(!n)return;const c=g??C;a?(n.setIsolate(null),V(!1)):c&&(i==="walk"&&n.setMode("orbit"),n.select(c,!0),n.setIsolate(c),V(!0))};return e.jsxDEV("div",{className:"fixed inset-0 overflow-hidden bg-[#0b0d10] text-[#eceae6] select-none",style:{fontFamily:"Lato, system-ui, sans-serif"},children:[e.jsxDEV("div",{ref:s,className:"absolute inset-0"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:113,columnNumber:7},this),!r&&!f&&e.jsxDEV("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-3 bg-[#0b0d10]",children:[e.jsxDEV("div",{className:"h-10 w-10 animate-spin rounded-full border-2 border-white/15 border-t-[#e7b47a]"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:118,columnNumber:11},this),e.jsxDEV("div",{className:"text-sm text-white/60",children:"正在搭建你的家…"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:119,columnNumber:11},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:117,columnNumber:9},this),f&&e.jsxDEV("div",{className:"absolute inset-0 flex items-center justify-center text-sm text-red-300",children:["3D 加载失败:",f]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:122,columnNumber:15},this),e.jsxDEV("div",{className:"pointer-events-none absolute inset-x-0 top-0 flex flex-wrap items-start justify-between gap-2 p-3",children:[e.jsxDEV("div",{className:"pointer-events-auto glass rounded-2xl px-4 py-2.5",children:[e.jsxDEV("div",{className:"flex items-center gap-2",children:[e.jsxDEV(Ve,{size:16,className:"text-[#e7b47a]"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:128,columnNumber:13},this),e.jsxDEV("span",{className:"text-[15px] font-bold tracking-wide",children:"H1区 235栋 3B-05"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:129,columnNumber:13},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:127,columnNumber:11},this),e.jsxDEV("div",{className:"mt-0.5 text-[11px] text-white/55",children:["化州 · 18/33F · 建面 107㎡ · 套内实测约 ",$(re),"㎡ · 南北通透"]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:131,columnNumber:11},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:126,columnNumber:9},this),e.jsxDEV("div",{className:"pointer-events-auto flex flex-wrap items-center gap-2",children:[e.jsxDEV(L,{children:[e.jsxDEV(v,{on:i==="orbit",onClick:()=>q("orbit"),icon:e.jsxDEV(ke,{size:15},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:138,columnNumber:81},this),label:"鸟瞰"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:138,columnNumber:13},this),e.jsxDEV(v,{on:i==="walk",onClick:()=>q("walk"),icon:e.jsxDEV(Q,{size:15},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:139,columnNumber:79},this),label:"漫游"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:139,columnNumber:13},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:137,columnNumber:11},this),e.jsxDEV(L,{children:[e.jsxDEV(v,{on:N==="day",onClick:()=>{var n;(n=t.current)==null||n.setPreset("day"),w("day")},icon:e.jsxDEV(Ce,{size:15},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:142,columnNumber:117},this),label:"白天"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:142,columnNumber:13},this),e.jsxDEV(v,{on:N==="dusk",onClick:()=>{var n;(n=t.current)==null||n.setPreset("dusk"),w("dusk")},icon:e.jsxDEV(Se,{size:15},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:143,columnNumber:120},this),label:"傍晚"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:143,columnNumber:13},this),e.jsxDEV(v,{on:N==="night",onClick:()=>{var n;(n=t.current)==null||n.setPreset("night"),w("night")},icon:e.jsxDEV(je,{size:15},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:144,columnNumber:123},this),label:"夜晚"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:144,columnNumber:13},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:141,columnNumber:11},this),e.jsxDEV(L,{children:[i==="orbit"&&e.jsxDEV(v,{on:H,onClick:()=>{var n;(n=t.current)==null||n.setCut(!H),o(!H)},icon:e.jsxDEV(De,{size:15},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:148,columnNumber:98},this),label:"剖切"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:148,columnNumber:15},this),e.jsxDEV(v,{on:a,onClick:U,icon:e.jsxDEV(K,{size:15},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:150,columnNumber:64},this),label:"单独查看"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:150,columnNumber:13},this),e.jsxDEV(v,{on:j.on,onClick:()=>{var n;return(n=t.current)==null?void 0:n.setTracing(!j.on)},icon:e.jsxDEV(Z,{size:15},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:151,columnNumber:92},this),label:"光追渲染"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:151,columnNumber:13},this),e.jsxDEV(v,{on:b,onClick:()=>{var n;(n=t.current)==null||n.setQuality(!b),y(!b)},icon:e.jsxDEV(ze,{size:15},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:152,columnNumber:96},this),label:b?"高画质":"流畅"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:152,columnNumber:13},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:146,columnNumber:11},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:136,columnNumber:9},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:125,columnNumber:7},this),j.on&&e.jsxDEV("div",{className:"glass pointer-events-none absolute left-1/2 top-[132px] xl:top-[86px] -translate-x-1/2 rounded-full px-4 py-1.5 text-[12px] text-white/85 max-md:top-[150px]",children:j.preparing?e.jsxDEV("span",{className:"flex items-center gap-2",children:[e.jsxDEV("span",{className:"h-3 w-3 animate-spin rounded-full border-2 border-white/20 border-t-[#e7b47a]"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:161,columnNumber:55},this),"正在准备光线追踪…"]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:161,columnNumber:13},this):e.jsxDEV("span",{className:"flex items-center gap-2",children:[e.jsxDEV(Z,{size:13,className:"text-[#e7b47a]"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:164,columnNumber:15},this),"光线追踪 · 已采样 ",e.jsxDEV("b",{className:"tabular-nums text-[#ffd9a8]",children:j.samples},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:165,columnNumber:26},this)," 次",e.jsxDEV("span",{className:"text-white/45",children:j.samples<40?"· 保持不动,画面会越来越细腻":"· 已接近成片质量"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:166,columnNumber:15},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:163,columnNumber:13},this)},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:159,columnNumber:9},this),e.jsxDEV("div",{className:"pointer-events-none absolute left-3 top-[132px] xl:top-[86px] bottom-3 flex flex-col gap-2 max-md:top-[150px]",children:[e.jsxDEV("button",{className:"pointer-events-auto glass flex w-fit items-center gap-2 rounded-xl px-3 py-2 text-xs",onClick:()=>T(!S),children:[S?e.jsxDEV(B,{size:14},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:175,columnNumber:23},this):e.jsxDEV(ge,{size:14},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:175,columnNumber:41},this)," 房间分区"]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:174,columnNumber:9},this),S&&e.jsxDEV("div",{className:"pointer-events-auto glass w-[212px] overflow-y-auto rounded-2xl p-2 scroll-thin",children:[Pe.map(n=>e.jsxDEV("div",{className:"mb-1.5",children:[e.jsxDEV("div",{className:"px-2 pb-1 pt-1.5 text-[10px] font-semibold uppercase tracking-[0.18em] text-white/40",children:n.title},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:181,columnNumber:17},this),n.ids.map(c=>{const k=G(c);if(!k)return null;const p=P===c;return e.jsxDEV("button",{onClick:()=>F(c),onDoubleClick:()=>{var h;return(h=t.current)==null?void 0:h.goToRoom(c,"walk")},className:`group flex w-full items-center justify-between rounded-lg px-2 py-1.5 text-left text-[13px] transition ${p?"bg-[#e7b47a]/20 text-[#ffd9a8]":"hover:bg-white/8 text-white/85"}`,children:[e.jsxDEV("span",{className:"flex items-center gap-2",children:[e.jsxDEV("span",{className:"h-2 w-2 rounded-sm",style:{background:Y[k.floor]}},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:194,columnNumber:25},this),k.name]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:193,columnNumber:23},this),e.jsxDEV("span",{className:"text-[11px] tabular-nums text-white/45",children:[$(A(k)),"㎡"]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:197,columnNumber:23},this)]},c,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:187,columnNumber:21},this)})]},n.title,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:180,columnNumber:15},this)),e.jsxDEV("div",{className:"mt-1 border-t border-white/10 px-2 pt-2 text-[10.5px] leading-relaxed text-white/40",children:"单击定位 · 双击直接走进去"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:203,columnNumber:13},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:178,columnNumber:11},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:173,columnNumber:7},this),D&&_&&e.jsxDEV(Re,{room:D,mode:i,onClose:()=>z(!1),onWalk:()=>{var n;return(n=t.current)==null?void 0:n.goToRoom(D.id,"walk")},onIsolate:U,isolate:a},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:211,columnNumber:28},this),D&&!_&&e.jsxDEV("button",{className:"glass absolute right-3 top-[132px] xl:top-[86px] flex items-center gap-2 rounded-xl px-3 py-2 text-xs max-md:top-[150px]",onClick:()=>z(!0),children:[e.jsxDEV(ve,{size:14},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:214,columnNumber:11},this)," ",D.name," · 装修说明"]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:213,columnNumber:9},this),e.jsxDEV(Ie,{mode:i,pose:ee,active:P,onPick:(n,c)=>{const k=t.current;if(!k)return;const p=ue(n,c);p&&(i==="walk"&&p.id===C?k.teleport(n,c):i==="walk"?k.goToRoom(p.id,"walk"):F(p.id))}},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:219,columnNumber:7},this),i==="walk"&&r&&e.jsxDEV(Ae,{eng:t},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:235,columnNumber:36},this),r&&te&&e.jsxDEV("div",{className:"glass pointer-events-auto absolute bottom-3 left-1/2 flex max-w-[92vw] -translate-x-1/2 items-center gap-3 rounded-full px-4 py-2 text-[11.5px] text-white/75 max-md:bottom-[150px]",children:[i==="walk"?e.jsxDEV("span",{children:"拖动转头 · WASD/方向键 行走 · Shift 快走 · 双击地面走过去 · 滚轮缩放视野"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:241,columnNumber:13},this):e.jsxDEV("span",{children:"拖动旋转 · 右键平移 · 滚轮缩放 · 点击房间查看装修 · 双击进入漫游"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:243,columnNumber:13},this),e.jsxDEV("button",{onClick:()=>ne(!1),className:"text-white/40 hover:text-white",children:e.jsxDEV(B,{size:13},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:245,columnNumber:93},this)},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:245,columnNumber:11},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:239,columnNumber:9},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:112,columnNumber:5},this)}function L({children:s}){return e.jsxDEV("div",{className:"glass flex items-center gap-0.5 rounded-xl p-1",children:s},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:253,columnNumber:10},this)}function v({on:s,onClick:t,icon:r,label:l}){return e.jsxDEV("button",{onClick:t,className:`flex items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-[12.5px] transition ${s?"bg-[#e7b47a] text-[#1b140c] font-semibold":"text-white/75 hover:bg-white/10"}`,children:[r,e.jsxDEV("span",{className:"max-sm:hidden",children:l},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:262,columnNumber:7},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:257,columnNumber:5},this)}function Re({room:s,mode:t,onClose:r,onWalk:l,onIsolate:f,isolate:u}){return e.jsxDEV("div",{className:"glass absolute right-3 top-[132px] xl:top-[86px] bottom-[208px] flex w-[330px] flex-col overflow-hidden rounded-2xl max-md:inset-x-3 max-md:top-auto max-md:bottom-3 max-md:w-auto max-md:max-h-[46vh]",children:[e.jsxDEV("div",{className:"flex items-start justify-between gap-2 border-b border-white/10 p-4 pb-3",children:[e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"text-[10px] uppercase tracking-[0.2em] text-[#e7b47a]/80",children:s.en},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:272,columnNumber:11},this),e.jsxDEV("div",{className:"text-xl font-bold",children:s.name},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:273,columnNumber:11},this),e.jsxDEV("div",{className:"mt-1 flex items-center gap-3 text-[11.5px] text-white/55",children:[e.jsxDEV("span",{className:"flex items-center gap-1",children:[e.jsxDEV(He,{size:12},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:275,columnNumber:55},this)," 约 ",$(A(s)),"㎡",s.bay?" + 飘窗":""]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:275,columnNumber:13},this),s.wet&&e.jsxDEV("span",{className:"flex items-center gap-1 text-sky-300/80",children:[e.jsxDEV(be,{size:12},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:276,columnNumber:84},this)," 湿区"]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:276,columnNumber:26},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:274,columnNumber:11},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:271,columnNumber:9},this),e.jsxDEV("button",{onClick:r,className:"rounded-lg p-1 text-white/50 hover:bg-white/10 hover:text-white",children:e.jsxDEV(B,{size:16},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:279,columnNumber:111},this)},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:279,columnNumber:9},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:270,columnNumber:7},this),e.jsxDEV("div",{className:"scroll-thin flex-1 overflow-y-auto p-4 pt-3 text-[12.5px] leading-relaxed",children:[e.jsxDEV(R,{icon:e.jsxDEV(Ee,{size:13},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:282,columnNumber:24},this),title:"硬装饰面",children:[e.jsxDEV(I,{k:"地面",v:s.finishes.floor},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:283,columnNumber:11},this),e.jsxDEV(I,{k:"墙面",v:s.finishes.wall},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:284,columnNumber:11},this),e.jsxDEV(I,{k:"顶面",v:s.finishes.ceiling},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:285,columnNumber:11},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:282,columnNumber:9},this),e.jsxDEV(R,{icon:e.jsxDEV(Me,{size:13},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:287,columnNumber:24},this),title:"家具软装",children:e.jsxDEV("ul",{className:"space-y-1",children:s.furniture.map(i=>e.jsxDEV("li",{className:"flex gap-2 text-white/80",children:[e.jsxDEV("span",{className:"mt-[7px] h-1 w-1 shrink-0 rounded-full bg-[#e7b47a]"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:290,columnNumber:64},this),i]},i,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:290,columnNumber:15},this))},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:288,columnNumber:11},this)},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:287,columnNumber:9},this),e.jsxDEV(R,{icon:e.jsxDEV(ye,{size:13},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:294,columnNumber:24},this),title:"防潮 · 防霉 · 少踩坑",children:e.jsxDEV("ul",{className:"space-y-1.5",children:s.tips.map((i,x)=>e.jsxDEV("li",{className:"rounded-lg bg-white/[0.04] px-2.5 py-1.5 text-white/80",children:i},x,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:297,columnNumber:15},this))},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:295,columnNumber:11},this)},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:294,columnNumber:9},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:281,columnNumber:7},this),e.jsxDEV("div",{className:"flex gap-2 border-t border-white/10 p-3",children:[t==="orbit"&&e.jsxDEV("button",{onClick:l,className:"flex flex-1 items-center justify-center gap-1.5 rounded-xl bg-[#e7b47a] py-2 text-[13px] font-semibold text-[#1b140c] hover:brightness-110",children:[e.jsxDEV(Q,{size:14},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:305,columnNumber:13},this)," 走进去看"]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:304,columnNumber:11},this),e.jsxDEV("button",{onClick:f,className:`flex flex-1 items-center justify-center gap-1.5 rounded-xl py-2 text-[13px] ${u?"bg-white/90 text-black":"bg-white/10 hover:bg-white/15"}`,children:[e.jsxDEV(K,{size:14},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:309,columnNumber:11},this)," ",u?"显示全屋":"单独查看"]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:308,columnNumber:9},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:302,columnNumber:7},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:269,columnNumber:5},this)}function R({icon:s,title:t,children:r}){return e.jsxDEV("div",{className:"mb-4",children:[e.jsxDEV("div",{className:"mb-1.5 flex items-center gap-1.5 text-[11px] font-semibold tracking-wider text-[#e7b47a]",children:[s,t]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:318,columnNumber:7},this),r]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:317,columnNumber:5},this)}function I({k:s,v:t}){return e.jsxDEV("div",{className:"flex gap-3 py-0.5",children:[e.jsxDEV("span",{className:"w-8 shrink-0 text-white/40",children:s},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:326,columnNumber:7},this),e.jsxDEV("span",{className:"text-white/85",children:t},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:327,columnNumber:7},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:325,columnNumber:5},this)}function Ie({mode:s,pose:t,active:r,onPick:l}){const f=m.useRef(null),u=.4,i=`${E.x0-u} ${E.z0-u} ${E.x1-E.x0+u*2} ${E.z1-E.z0+u*2}`,[x,N,w]=t,b=-Math.sin(w),y=-Math.cos(w),H=o=>{const a=f.current;if(!a)return;const V=a.createSVGPoint();V.x=o.clientX,V.y=o.clientY;const g=V.matrixTransform(a.getScreenCTM().inverse());l(g.x,g.y)};return e.jsxDEV("div",{className:"glass absolute bottom-3 right-3 rounded-2xl p-2 max-md:hidden",children:[e.jsxDEV("div",{className:"mb-1 flex items-center justify-between px-1 text-[10px] text-white/45",children:[e.jsxDEV("span",{children:"户型平面 · 点击跳转"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:351,columnNumber:9},this),e.jsxDEV("span",{children:"N ↑"},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:352,columnNumber:9},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:350,columnNumber:7},this),e.jsxDEV("svg",{ref:f,viewBox:i,width:188,height:188,onClick:H,className:"cursor-pointer",children:[M.map(o=>[...o.rects,...o.bay?[o.bay]:[]].map((a,V)=>e.jsxDEV("rect",{x:a[0],y:a[1],width:a[2]-a[0],height:a[3]-a[1],fill:r===o.id?"#e7b47a":Y[o.floor],opacity:r===o.id?.85:.32},o.id+V,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:357,columnNumber:13},this))),ce.map((o,a)=>e.jsxDEV("rect",{x:o[0],y:o[1],width:o[2]-o[0],height:o[3]-o[1],fill:"#f2efe9"},a,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:366,columnNumber:11},this)),W.filter(o=>o.kind==="window").map((o,a)=>e.jsxDEV("rect",{x:o.r[0],y:o.r[1],width:o.r[2]-o.r[0],height:o.r[3]-o.r[1],fill:"#7fc7ff"},"w"+a,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:369,columnNumber:11},this)),W.filter(o=>o.kind!=="window"&&o.kind!=="rail").map((o,a)=>e.jsxDEV("rect",{x:o.r[0],y:o.r[1],width:o.r[2]-o.r[0],height:o.r[3]-o.r[1],fill:"#2a2d33"},"d"+a,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:372,columnNumber:11},this)),M.map(o=>{const a=o.rects[0];return e.jsxDEV("text",{x:(a[0]+a[2])/2,y:(a[1]+a[3])/2+.15,fontSize:.42,textAnchor:"middle",fill:"#fff",opacity:.75,style:{pointerEvents:"none"},children:o.name.replace(/(.*)/,"")},o.id,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:377,columnNumber:13},this)}),s==="walk"&&e.jsxDEV("g",{style:{pointerEvents:"none"},children:[e.jsxDEV("path",{d:`M ${x} ${N} L ${x+(b*1.3-y*.55)} ${N+(y*1.3+b*.55)} L ${x+(b*1.3+y*.55)} ${N+(y*1.3-b*.55)} Z`,fill:"#e7b47a",opacity:.35},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:384,columnNumber:13},this),e.jsxDEV("circle",{cx:x,cy:N,r:.22,fill:"#e7b47a",stroke:"#fff",strokeWidth:.06},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:385,columnNumber:13},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:383,columnNumber:11},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:354,columnNumber:7},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:349,columnNumber:5},this)}function Ae({eng:s}){const t=(l,f)=>{var u;return(u=s.current)==null?void 0:u.setTouchMove(l,f)},r=(l,f,u,i)=>e.jsxDEV("button",{className:`glass absolute flex h-11 w-11 items-center justify-center rounded-xl active:bg-[#e7b47a]/40 ${i}`,onPointerDown:x=>{var N,w;(w=(N=x.target).setPointerCapture)==null||w.call(N,x.pointerId),t(l,f)},onPointerUp:()=>t(0,0),onPointerCancel:()=>t(0,0),onPointerLeave:()=>t(0,0),children:u},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:396,columnNumber:5},this);return e.jsxDEV("div",{className:"absolute bottom-3 left-3 h-[140px] w-[140px] md:bottom-3 md:left-[236px]",children:[r(1,0,e.jsxDEV(we,{size:20},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:408,columnNumber:18},this),"left-[48px] top-0"),r(-1,0,e.jsxDEV(he,{size:20},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:409,columnNumber:19},this),"left-[48px] bottom-0"),r(0,-1,e.jsxDEV(xe,{size:20},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:410,columnNumber:19},this),"left-0 top-[48px]"),r(0,1,e.jsxDEV(Ne,{size:20},void 0,!1,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:411,columnNumber:18},this),"right-0 top-[48px]")]},void 0,!0,{fileName:"/workspaces/frontend/src/components/HouseViewer.tsx",lineNumber:407,columnNumber:5},this)}function Be(){return e.jsxDEV(Le,{},void 0,!1,{fileName:"/workspaces/frontend/src/App.tsx",lineNumber:5,columnNumber:10},this)}const Fe=Object.freeze(Object.defineProperty({__proto__:null,default:Be},Symbol.toStringTag,{value:"Module"}));export{Fe as A,E as B,_e as H,W as O,M as R,ce as W,ue as a,qe as r};
assets/ErrorBoundary-DwultlP_.js ADDED
@@ -0,0 +1 @@
 
 
1
+ var m=Object.defineProperty;var p=(e,r,t)=>r in e?m(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var i=(e,r,t)=>p(e,typeof r!="symbol"?r+"":r,t);import{j as o}from"./jsx-dev-runtime-Czb3f8pQ.js";import{r as f}from"./index-Br42UDbl.js";import"./index-BlGQAcOD.js";const u="__dep_reload",a=6,c=6e4,g=["reading 'useState'","reading 'useEffect'","reading 'useRef'","reading 'useCallback'","reading 'useMemo'","reading 'useContext'","reading 'useReducer'"];function d(e){return g.some(r=>e.includes(r))}function l(){try{const e=sessionStorage.getItem(u);if(e)return JSON.parse(e)}catch{}return{c:0,t:0}}class N extends f.Component{constructor(){super(...arguments);i(this,"state",{error:null})}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t){if(!d(t.message))return;const s=l(),n=Date.now()-s.t>c?0:s.c;n<a&&(sessionStorage.setItem(u,JSON.stringify({c:n+1,t:Date.now()})),setTimeout(()=>location.reload(),3e3))}render(){if(this.state.error){if(this.props.fallback)return this.props.fallback;if(d(this.state.error.message)){const{c:t,t:s}=l();if(!(Date.now()-s<=c)||t<a)return o.jsxDEV("div",{style:{padding:"24px",margin:"16px",borderRadius:"12px",background:"rgba(59,130,246,0.06)",border:"1px solid rgba(59,130,246,0.15)",color:"#3b82f6",fontSize:"13px",fontFamily:"system-ui, sans-serif",textAlign:"center"},children:[o.jsxDEV("p",{style:{fontWeight:600,marginBottom:"4px"},children:"Loading dependencies..."},void 0,!1,{fileName:"/workspaces/frontend/src/ErrorBoundary.tsx",lineNumber:81,columnNumber:15},this),o.jsxDEV("p",{style:{opacity:.7,fontSize:"12px"},children:"Reloading automatically"},void 0,!1,{fileName:"/workspaces/frontend/src/ErrorBoundary.tsx",lineNumber:82,columnNumber:15},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/ErrorBoundary.tsx",lineNumber:70,columnNumber:13},this)}return o.jsxDEV("div",{style:{padding:"24px",margin:"16px",borderRadius:"12px",background:"rgba(245,34,45,0.06)",border:"1px solid rgba(245,34,45,0.15)",color:"#c0392b",fontSize:"13px",fontFamily:"monospace"},children:[o.jsxDEV("p",{style:{fontWeight:600,marginBottom:"8px"},children:"Component Error"},void 0,!1,{fileName:"/workspaces/frontend/src/ErrorBoundary.tsx",lineNumber:99,columnNumber:11},this),o.jsxDEV("p",{style:{opacity:.8},children:this.state.error.message},void 0,!1,{fileName:"/workspaces/frontend/src/ErrorBoundary.tsx",lineNumber:100,columnNumber:11},this)]},void 0,!0,{fileName:"/workspaces/frontend/src/ErrorBoundary.tsx",lineNumber:89,columnNumber:9},this)}return this.props.children}}export{N as default};
assets/client-BlQxAbrl.js ADDED
The diff for this file is too large to render. See raw diff
 
assets/engine-D8pb6_zI.js ADDED
The diff for this file is too large to render. See raw diff
 
assets/index-BlGQAcOD.js ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function Ue(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}var Q={exports:{}},b={exports:{}};b.exports;var Ee;function Ye(){return Ee||(Ee=1,(function(p,u){/**
2
+ * @license React
3
+ * react.development.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */(function(){function Re(e,t){Object.defineProperty(m.prototype,e,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}function Te(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}function M(e,t){e=(e=e.constructor)&&(e.displayName||e.name)||"ReactClass";var r=e+"."+t;ie[r]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),ie[r]=!0)}function m(e,t,r){this.props=e,this.context=t,this.refs=H,this.updater=r||ce}function B(){}function N(e,t,r){this.props=e,this.context=t,this.refs=H,this.updater=r||ce}function L(){}function K(e){return""+e}function R(e){try{K(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),K(e)}}function T(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case q:return"Fragment";case re:return"Profiler";case te:return"StrictMode";case ue:return"Suspense";case Pe:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case ee:return"Portal";case ne:return e.displayName||"Context";case W:return(e._context.displayName||"Context")+".Consumer";case oe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z:return t=e.displayName||null,t!==null?t:T(e.type)||"Memo";case w:t=e._payload,e=e._init;try{return T(e(t))}catch{}}return null}function F(e){if(e===q)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===w)return"<...>";try{var t=T(e);return t?"<"+t+">":"<...>"}catch{return"<...>"}}function X(){var e=s.A;return e===null?null:e.getOwner()}function V(){return Error("react-stack-top-frame")}function Z(e){if(A.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Oe(e,t){function r(){pe||(pe=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}function ke(){var e=T(this.type);return me[e]||(me[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function $(e,t,r,n,o,i){var a=r.ref;return e={$$typeof:I,type:e,key:t,props:r,_owner:n},(a!==void 0?a:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:ke}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function Se(e,t){return t=$(e.type,t,e.props,e._owner,e._debugStack,e._debugTask),e._store&&(t._store.validated=e._store.validated),t}function J(e){y(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===w&&(e._payload.status==="fulfilled"?y(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function y(e){return typeof e=="object"&&e!==null&&e.$$typeof===I}function Ae(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}function D(e,t){return typeof e=="object"&&e!==null&&e.key!=null?(R(e.key),Ae(""+e.key)):t.toString(36)}function Ce(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(L,L):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function g(e,t,r,n,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case I:case ee:a=!0;break;case w:return a=e._init,g(a(e._payload),t,r,n,o)}}if(a){a=e,o=o(a);var f=n===""?"."+D(a,0):n;return le(o)?(r="",f!=null&&(r=f.replace(ge,"$&/")+"/"),g(o,t,r,"",function(h){return h})):o!=null&&(y(o)&&(o.key!=null&&(a&&a.key===o.key||R(o.key)),r=Se(o,r+(o.key==null||a&&a.key===o.key?"":(""+o.key).replace(ge,"$&/")+"/")+f),n!==""&&a!=null&&y(a)&&a.key==null&&a._store&&!a._store.validated&&(r._store.validated=2),o=r),t.push(o)),1}if(a=0,f=n===""?".":n+":",le(e))for(var c=0;c<e.length;c++)n=e[c],i=f+D(n,c),a+=g(n,t,r,i,o);else if(c=Te(e),typeof c=="function")for(c===e.entries&&(ye||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ye=!0),e=c.call(e),c=0;!(n=e.next()).done;)n=n.value,i=f+D(n,c++),a+=g(n,t,r,i,o);else if(i==="object"){if(typeof e.then=="function")return g(Ce(e),t,r,n,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function O(e,t,r){if(e==null)return e;var n=[],o=0;return g(e,n,"","",function(i){return t.call(r,i,o++)}),n}function je(e){if(e._status===-1){var t=e._ioInfo;t!=null&&(t.start=t.end=performance.now()),t=e._result;var r=t();if(r.then(function(o){if(e._status===0||e._status===-1){e._status=1,e._result=o;var i=e._ioInfo;i!=null&&(i.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=o)}},function(o){if(e._status===0||e._status===-1){e._status=2,e._result=o;var i=e._ioInfo;i!=null&&(i.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=o)}}),t=e._ioInfo,t!=null){t.value=r;var n=r.displayName;typeof n=="string"&&(t.name=n)}e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return t=e._result,t===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
10
+
11
+ Your code should look like:
12
+ const MyComponent = lazy(() => import('./MyComponent'))
13
+
14
+ Did you accidentally put curly braces around the import?`,t),"default"in t||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
15
+
16
+ Your code should look like:
17
+ const MyComponent = lazy(() => import('./MyComponent'))`,t),t.default;throw e._result}function l(){var e=s.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
18
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
19
+ 2. You might be breaking the Rules of Hooks
20
+ 3. You might have more than one copy of React in the same app
21
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function x(){s.asyncTransitions--}function k(e){if(C===null)try{var t=("require"+Math.random()).slice(0,7);C=(p&&p[t]).call(p,"timers").setImmediate}catch{C=function(n){ve===!1&&(ve=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var o=new MessageChannel;o.port1.onmessage=n,o.port2.postMessage(void 0)}}return C(e)}function v(e){return 1<e.length&&typeof AggregateError=="function"?new AggregateError(e):e[0]}function S(e,t){t!==j-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),j=t}function Y(e,t,r){var n=s.actQueue;if(n!==null)if(n.length!==0)try{U(n),k(function(){return Y(e,t,r)});return}catch(o){s.thrownErrors.push(o)}else s.actQueue=null;0<s.thrownErrors.length?(n=v(s.thrownErrors),s.thrownErrors.length=0,r(n)):t(e)}function U(e){if(!G){G=!0;var t=0;try{for(;t<e.length;t++){var r=e[t];do{s.didUsePromise=!1;var n=r(!1);if(n!==null){if(s.didUsePromise){e[t]=r,e.splice(0,t);return}r=n}else break}while(!0)}e.length=0}catch(o){e.splice(0,t+1),s.thrownErrors.push(o)}finally{G=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var I=Symbol.for("react.transitional.element"),ee=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),W=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),Pe=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),se=Symbol.iterator,ie={},ce={isMounted:function(){return!1},enqueueForceUpdate:function(e){M(e,"forceUpdate")},enqueueReplaceState:function(e){M(e,"replaceState")},enqueueSetState:function(e){M(e,"setState")}},fe=Object.assign,H={};Object.freeze(H),m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var d={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(E in d)d.hasOwnProperty(E)&&Re(E,d[E]);B.prototype=m.prototype,d=N.prototype=new B,d.constructor=N,fe(d,m.prototype),d.isPureReactComponent=!0;var le=Array.isArray,Me=Symbol.for("react.client.reference"),s={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},A=Object.prototype.hasOwnProperty,de=console.createTask?console.createTask:function(){return null};d={react_stack_bottom_frame:function(e){return e()}};var pe,he,me={},Ne=d.react_stack_bottom_frame.bind(d,V)(),Le=de(F(V)),ye=!1,ge=/\/+/g,_e=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ve=!1,C=null,j=0,P=!1,G=!1,we=typeof queueMicrotask=="function"?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:k;d=Object.freeze({__proto__:null,c:function(e){return l().useMemoCache(e)}});var E={map:O,forEach:function(e,t,r){O(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(t){return t})||[]},only:function(e){if(!y(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};u.Activity=ae,u.Children=E,u.Component=m,u.Fragment=q,u.Profiler=re,u.PureComponent=N,u.StrictMode=te,u.Suspense=ue,u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,u.__COMPILER_RUNTIME=d,u.act=function(e){var t=s.actQueue,r=j;j++;var n=s.actQueue=t!==null?t:[],o=!1;try{var i=e()}catch(c){s.thrownErrors.push(c)}if(0<s.thrownErrors.length)throw S(t,r),e=v(s.thrownErrors),s.thrownErrors.length=0,e;if(i!==null&&typeof i=="object"&&typeof i.then=="function"){var a=i;return we(function(){o||P||(P=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(c,h){o=!0,a.then(function(_){if(S(t,r),r===0){try{U(n),k(function(){return Y(_,c,h)})}catch(De){s.thrownErrors.push(De)}if(0<s.thrownErrors.length){var $e=v(s.thrownErrors);s.thrownErrors.length=0,h($e)}}else c(_)},function(_){S(t,r),0<s.thrownErrors.length&&(_=v(s.thrownErrors),s.thrownErrors.length=0),h(_)})}}}var f=i;if(S(t,r),r===0&&(U(n),n.length!==0&&we(function(){o||P||(P=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),s.actQueue=null),0<s.thrownErrors.length)throw e=v(s.thrownErrors),s.thrownErrors.length=0,e;return{then:function(c,h){o=!0,r===0?(s.actQueue=n,k(function(){return Y(f,c,h)})):c(f)}}},u.cache=function(e){return function(){return e.apply(null,arguments)}},u.cacheSignal=function(){return null},u.captureOwnerStack=function(){var e=s.getCurrentStack;return e===null?null:e()},u.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=fe({},e.props),o=e.key,i=e._owner;if(t!=null){var a;e:{if(A.call(t,"ref")&&(a=Object.getOwnPropertyDescriptor(t,"ref").get)&&a.isReactWarning){a=!1;break e}a=t.ref!==void 0}a&&(i=X()),Z(t)&&(R(t.key),o=""+t.key);for(f in t)!A.call(t,f)||f==="key"||f==="__self"||f==="__source"||f==="ref"&&t.ref===void 0||(n[f]=t[f])}var f=arguments.length-2;if(f===1)n.children=r;else if(1<f){a=Array(f);for(var c=0;c<f;c++)a[c]=arguments[c+2];n.children=a}for(n=$(e.type,o,n,i,e._debugStack,e._debugTask),o=2;o<arguments.length;o++)J(arguments[o]);return n},u.createContext=function(e){return e={$$typeof:ne,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:W,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},u.createElement=function(e,t,r){for(var n=2;n<arguments.length;n++)J(arguments[n]);n={};var o=null;if(t!=null)for(c in he||!("__self"in t)||"key"in t||(he=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),Z(t)&&(R(t.key),o=""+t.key),t)A.call(t,c)&&c!=="key"&&c!=="__self"&&c!=="__source"&&(n[c]=t[c]);var i=arguments.length-2;if(i===1)n.children=r;else if(1<i){for(var a=Array(i),f=0;f<i;f++)a[f]=arguments[f+2];Object.freeze&&Object.freeze(a),n.children=a}if(e&&e.defaultProps)for(c in i=e.defaultProps,i)n[c]===void 0&&(n[c]=i[c]);o&&Oe(n,typeof e=="function"?e.displayName||e.name||"Unknown":e);var c=1e4>s.recentlyCreatedOwnerStacks++;return $(e,o,n,X(),c?Error("react-stack-top-frame"):Ne,c?de(F(e)):Le)},u.createRef=function(){var e={current:null};return Object.seal(e),e},u.forwardRef=function(e){e!=null&&e.$$typeof===z?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?console.error("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&e.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var t={$$typeof:oe,render:e},r;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(n){r=n,e.name||e.displayName||(Object.defineProperty(e,"name",{value:n}),e.displayName=n)}}),t},u.isValidElement=y,u.lazy=function(e){e={_status:-1,_result:e};var t={$$typeof:w,_payload:e,_init:je},r={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return e._ioInfo=r,t._debugInfo=[{awaited:r}],t},u.memo=function(e,t){e==null&&console.error("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e),t={$$typeof:z,type:e,compare:t===void 0?null:t};var r;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(n){r=n,e.name||e.displayName||(Object.defineProperty(e,"name",{value:n}),e.displayName=n)}}),t},u.startTransition=function(e){var t=s.T,r={};r._updatedFibers=new Set,s.T=r;try{var n=e(),o=s.S;o!==null&&o(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&(s.asyncTransitions++,n.then(x,x),n.then(L,_e))}catch(i){_e(i)}finally{t===null&&r._updatedFibers&&(e=r._updatedFibers.size,r._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),t!==null&&r.types!==null&&(t.types!==null&&t.types!==r.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),t.types=r.types),s.T=t}},u.unstable_useCacheRefresh=function(){return l().useCacheRefresh()},u.use=function(e){return l().use(e)},u.useActionState=function(e,t,r){return l().useActionState(e,t,r)},u.useCallback=function(e,t){return l().useCallback(e,t)},u.useContext=function(e){var t=l();return e.$$typeof===W&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),t.useContext(e)},u.useDebugValue=function(e,t){return l().useDebugValue(e,t)},u.useDeferredValue=function(e,t){return l().useDeferredValue(e,t)},u.useEffect=function(e,t){return e==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),l().useEffect(e,t)},u.useEffectEvent=function(e){return l().useEffectEvent(e)},u.useId=function(){return l().useId()},u.useImperativeHandle=function(e,t,r){return l().useImperativeHandle(e,t,r)},u.useInsertionEffect=function(e,t){return e==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),l().useInsertionEffect(e,t)},u.useLayoutEffect=function(e,t){return e==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),l().useLayoutEffect(e,t)},u.useMemo=function(e,t){return l().useMemo(e,t)},u.useOptimistic=function(e,t){return l().useOptimistic(e,t)},u.useReducer=function(e,t,r){return l().useReducer(e,t,r)},u.useRef=function(e){return l().useRef(e)},u.useState=function(e){return l().useState(e)},u.useSyncExternalStore=function(e,t,r){return l().useSyncExternalStore(e,t,r)},u.useTransition=function(){return l().useTransition()},u.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(b,b.exports)),b.exports}var be;function Ie(){return be||(be=1,Q.exports=Ye()),Q.exports}export{Ue as g,Ie as r};
assets/index-Br42UDbl.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{g as i,r as c}from"./index-BlGQAcOD.js";function f(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var s=c();const p=i(s),g=f({__proto__:null,default:p},[s]);export{g as i,s as r};
assets/index-BzsFXDqf.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-Br42UDbl.js","./index-BlGQAcOD.js","./client-BlQxAbrl.js","./index-tKuM8enU.js","./App-Br-cfw1T.js","./jsx-dev-runtime-Czb3f8pQ.js","./ErrorBoundary-DwultlP_.js"])))=>i.map(i=>d[i]);
2
+ (function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))d(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const a of t.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&d(a)}).observe(document,{childList:!0,subtree:!0});function s(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function d(e){if(e.ep)return;e.ep=!0;const t=s(e);fetch(e.href,t)}})();const E="modulepreload",v=function(o,n){return new URL(o,n).href},w={},y=function(n,s,d){let e=Promise.resolve();if(s&&s.length>0){let a=function(i){return Promise.all(i.map(u=>Promise.resolve(u).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};const l=document.getElementsByTagName("link"),f=document.querySelector("meta[property=csp-nonce]"),h=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));e=a(s.map(i=>{if(i=v(i,d),i in w)return;w[i]=!0;const u=i.endsWith(".css"),p=u?'[rel="stylesheet"]':"";if(!!d)for(let m=l.length-1;m>=0;m--){const g=l[m];if(g.href===i&&(!u||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${p}`))return;const r=document.createElement("link");if(r.rel=u?"stylesheet":E,u||(r.as="script"),r.crossOrigin="",r.href=i,h&&r.setAttribute("nonce",h),document.head.appendChild(r),u)return new Promise((m,g)=>{r.addEventListener("load",m),r.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${i}`)))})}))}function t(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return e.then(a=>{for(const l of a||[])l.status==="rejected"&&t(l.reason);return n().catch(t)})},_="__dep_reload",L=6,O=6e4;function P(){try{return JSON.parse(sessionStorage.getItem(_)||"{}")}catch{return{c:0,t:0}}}async function R(){const o=document.getElementById("root");try{let n=function(){if(!document.querySelector("[data-surf-placeholder]"))try{window.parent.postMessage({type:"surf-app-ready"},"*")}catch{}};const s=await y(()=>import("./index-Br42UDbl.js").then(c=>c.i),__vite__mapDeps([0,1]),import.meta.url);if(typeof s.useState!="function")throw new Error("dep-stub");const{createElement:d}=s,{createRoot:e,hydrateRoot:t}=await y(async()=>{const{createRoot:c,hydrateRoot:r}=await import("./client-BlQxAbrl.js").then(m=>m.c);return{createRoot:c,hydrateRoot:r}},__vite__mapDeps([2,1]),import.meta.url),{QueryClient:a,QueryClientProvider:l}=await y(async()=>{const{QueryClient:c,QueryClientProvider:r}=await import("./index-tKuM8enU.js");return{QueryClient:c,QueryClientProvider:r}},__vite__mapDeps([3,0,1]),import.meta.url),{default:f}=await y(async()=>{const{default:c}=await import("./App-Br-cfw1T.js").then(r=>r.A);return{default:c}},__vite__mapDeps([4,5,1,0]),import.meta.url),{default:h}=await y(async()=>{const{default:c}=await import("./ErrorBoundary-DwultlP_.js");return{default:c}},__vite__mapDeps([6,5,1,0]),import.meta.url),i=new a({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:3,retryDelay:c=>Math.min(1e3*2**c,1e4),staleTime:3e4}}}),u=d(h,null,d(l,{client:i},d(f))),p=!!o.querySelector("[data-surf-placeholder]");o.childNodes.length>0&&o.innerHTML!=="<!--ssr-outlet-->"&&!p?t(o,u):(o.innerHTML="",e(o).render(u)),window.__reactOk=!0,sessionStorage.removeItem(_),n(),new MutationObserver(n).observe(o,{childList:!0,subtree:!0})}catch{const n=P(),s=Date.now()-n.t>O?0:n.c;s<L?(o.innerHTML=['<div style="padding:24px;text-align:center;font-family:system-ui,sans-serif">','<p style="color:#3b82f6;font-weight:600;margin:0 0 4px">Loading dependencies...</p>','<p style="color:#3b82f6;opacity:0.7;font-size:12px;margin:0">Reloading automatically</p>',"</div>"].join(""),sessionStorage.setItem(_,JSON.stringify({c:s+1,t:Date.now()})),setTimeout(()=>location.reload(),3e3+s*1e3)):o.innerHTML=['<div style="padding:24px;text-align:center;font-family:system-ui,sans-serif">','<p style="color:#c0392b;font-weight:600;margin:0 0 4px">Failed to load dependencies</p>','<p style="color:#c0392b;opacity:0.8;font-size:12px;margin:0">Please refresh the page</p>',"</div>"].join("")}}R();export{y as _};
assets/index-D4Jw1gkK.js ADDED
The diff for this file is too large to render. See raw diff
 
assets/index-advI9kSY.css ADDED
@@ -0,0 +1 @@
 
 
1
+ @import"https://fonts.googleapis.com/css2?family=Lato:wght@400;600;700;900&family=Roboto+Mono:wght@400;500&display=swap";/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-600:oklch(57.7% .245 27.325);--color-sky-300:oklch(82.8% .111 230.318);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-relaxed:1.625;--radius-2xl:1rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-2xl:40px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-background:var(--background);--color-foreground:var(--foreground);--color-border:var(--border)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:after,:before{border-color:var(--color-border)}body{background-color:var(--color-background);color:var(--color-foreground);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Lato,PingFang SC,sans-serif}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.visible\!{visibility:visible!important}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.-top-12{top:calc(var(--spacing) * -12)}.top-0{top:calc(var(--spacing) * 0)}.top-1{top:calc(var(--spacing) * 1)}.top-1\/2{top:50%}.top-4{top:calc(var(--spacing) * 4)}.top-\[1px\]{top:1px}.top-\[48px\]{top:48px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-\[132px\]{top:132px}.top-full{top:100%}.-right-12{right:calc(var(--spacing) * -12)}.right-0{right:calc(var(--spacing) * 0)}.right-1{right:calc(var(--spacing) * 1)}.right-2{right:calc(var(--spacing) * 2)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-12{bottom:calc(var(--spacing) * -12)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-\[208px\]{bottom:208px}.-left-12{left:calc(var(--spacing) * -12)}.left-0{left:calc(var(--spacing) * 0)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-3{left:calc(var(--spacing) * 3)}.left-\[48px\]{left:48px}.left-\[50\%\]{left:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[100\]{z-index:100}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing) * 1)}.-mt-4{margin-top:calc(var(--spacing) * -4)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-24{margin-top:calc(var(--spacing) * 24)}.mt-\[7px\]{margin-top:7px}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.-ml-4{margin-left:calc(var(--spacing) * -4)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.hidden\!{display:none!important}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.aspect-square{aspect-ratio:1}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-\[--cell-size\]{width:--cell-size;height:--cell-size}.h-1{height:calc(var(--spacing) * 1)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-\[--cell-size\]{height:--cell-size}.h-\[1px\]{height:1px}.h-\[140px\]{height:140px}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-\[--radix-context-menu-content-available-height\]{max-height:--radix-context-menu-content-available-height}.max-h-\[--radix-select-content-available-height\]{max-height:--radix-select-content-available-height}.max-h-\[300px\]{max-height:300px}.max-h-\[var\(--radix-dropdown-menu-content-available-height\)\]{max-height:var(--radix-dropdown-menu-content-available-height)}.max-h-screen{max-height:100vh}.min-h-\[60px\]{min-height:60px}.w-1{width:calc(var(--spacing) * 1)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing) * 4)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[--cell-size\]{width:--cell-size}.w-\[1px\]{width:1px}.w-\[100px\]{width:100px}.w-\[140px\]{width:140px}.w-\[212px\]{width:212px}.w-\[330px\]{width:330px}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-\[92vw\]{max-width:92vw}.max-w-lg{max-width:var(--container-lg)}.max-w-max{max-width:max-content}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-10{min-width:calc(var(--spacing) * 10)}.min-w-\[--cell-size\]{min-width:--cell-size}.min-w-\[8rem\]{min-width:8rem}.min-w-\[12rem\]{min-width:12rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.origin-\[--radix-context-menu-content-transform-origin\]{transform-origin:--radix-context-menu-content-transform-origin}.origin-\[--radix-dropdown-menu-content-transform-origin\]{transform-origin:--radix-dropdown-menu-content-transform-origin}.origin-\[--radix-hover-card-content-transform-origin\]{transform-origin:--radix-hover-card-content-transform-origin}.origin-\[--radix-menubar-content-transform-origin\]{transform-origin:--radix-menubar-content-transform-origin}.origin-\[--radix-popover-content-transform-origin\]{transform-origin:--radix-popover-content-transform-origin}.origin-\[--radix-select-content-transform-origin\]{transform-origin:--radix-select-content-transform-origin}.origin-\[--radix-tooltip-content-transform-origin\]{transform-origin:--radix-tooltip-content-transform-origin}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.resize{resize:both}.list-none{list-style-type:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 1) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[10px\]{border-radius:10px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-\[var\(--border-base\)\]{border-color:var(--border-base)}.border-destructive,.border-destructive\/50{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.border-destructive\/50{border-color:color-mix(in oklab,var(--destructive) 50%,transparent)}}.border-input{border-color:var(--input)}.border-primary,.border-primary\/50{border-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.border-primary\/50{border-color:color-mix(in oklab,var(--primary) 50%,transparent)}}.border-transparent{border-color:#0000}.border-white\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.border-white\/10{border-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.border-white\/15{border-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.border-white\/15{border-color:color-mix(in oklab,var(--color-white) 15%,transparent)}}.border-white\/20{border-color:#fff3}@supports (color:color-mix(in lab,red,red)){.border-white\/20{border-color:color-mix(in oklab,var(--color-white) 20%,transparent)}}.border-t-\[\#e7b47a\]{border-top-color:#e7b47a}.border-t-transparent{border-top-color:#0000}.border-l-transparent{border-left-color:#0000}.bg-\[\#0b0d10\]{background-color:#0b0d10}.bg-\[\#e7b47a\]{background-color:#e7b47a}.bg-\[\#e7b47a\]\/20{background-color:#e7b47a33}.bg-\[var\(--bg-subtle\)\]{background-color:var(--bg-subtle)}.bg-\[var\(--neutral-0\)\]{background-color:var(--neutral-0)}.bg-accent{background-color:var(--accent)}.bg-background{background-color:var(--background)}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\/80{background-color:color-mix(in oklab,var(--color-black) 80%,transparent)}}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-foreground\/5{background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.bg-foreground\/5{background-color:color-mix(in oklab,var(--foreground) 5%,transparent)}}.bg-muted,.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted) 50%,transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary,.bg-primary\/20{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\/20{background-color:color-mix(in oklab,var(--primary) 20%,transparent)}}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.bg-white\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.bg-white\/90{background-color:color-mix(in oklab,var(--color-white) 90%,transparent)}}.bg-white\/\[0\.04\]{background-color:#ffffff0a}@supports (color:color-mix(in lab,red,red)){.bg-white\/\[0\.04\]{background-color:color-mix(in oklab,var(--color-white) 4%,transparent)}}.fill-current{fill:currentColor}.fill-primary{fill:var(--primary)}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-\[1px\]{padding:1px}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-\[--cell-size\]{padding-inline:--cell-size}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-1{padding-right:calc(var(--spacing) * 1)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-6{padding-right:calc(var(--spacing) * 6)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-8{padding-left:calc(var(--spacing) * 8)}.text-center{text-align:center}.text-left{text-align:left}.align-middle{vertical-align:middle}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.8rem\]{font-size:.8rem}.text-\[10\.5px\]{font-size:10.5px}.text-\[10px\]{font-size:10px}.text-\[11\.5px\]{font-size:11.5px}.text-\[11px\]{font-size:11px}.text-\[12\.5px\]{font-size:12.5px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.2em\]{--tw-tracking:.2em;letter-spacing:.2em}.tracking-\[0\.18em\]{--tw-tracking:.18em;letter-spacing:.18em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.text-\[\#1b140c\]{color:#1b140c}.text-\[\#e7b47a\]{color:#e7b47a}.text-\[\#e7b47a\]\/80{color:#e7b47acc}.text-\[\#eceae6\]{color:#eceae6}.text-\[\#ffd9a8\]{color:#ffd9a8}.text-\[var\(--fg-subtle\)\]{color:var(--fg-subtle)}.text-accent-foreground{color:var(--accent-foreground)}.text-black{color:var(--color-black)}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-destructive{color:var(--destructive)}.text-destructive-foreground{color:var(--destructive-foreground)}.text-foreground,.text-foreground\/50{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.text-foreground\/50{color:color-mix(in oklab,var(--foreground) 50%,transparent)}}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-300{color:var(--color-red-300)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sky-300\/80{color:#77d4ffcc}@supports (color:color-mix(in lab,red,red)){.text-sky-300\/80{color:color-mix(in oklab,var(--color-sky-300) 80%,transparent)}}.text-white\/40{color:#fff6}@supports (color:color-mix(in lab,red,red)){.text-white\/40{color:color-mix(in oklab,var(--color-white) 40%,transparent)}}.text-white\/45{color:#ffffff73}@supports (color:color-mix(in lab,red,red)){.text-white\/45{color:color-mix(in oklab,var(--color-white) 45%,transparent)}}.text-white\/50{color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.text-white\/50{color:color-mix(in oklab,var(--color-white) 50%,transparent)}}.text-white\/55{color:#ffffff8c}@supports (color:color-mix(in lab,red,red)){.text-white\/55{color:color-mix(in oklab,var(--color-white) 55%,transparent)}}.text-white\/60{color:#fff9}@supports (color:color-mix(in lab,red,red)){.text-white\/60{color:color-mix(in oklab,var(--color-white) 60%,transparent)}}.text-white\/75{color:#ffffffbf}@supports (color:color-mix(in lab,red,red)){.text-white\/75{color:color-mix(in oklab,var(--color-white) 75%,transparent)}}.text-white\/80{color:#fffc}@supports (color:color-mix(in lab,red,red)){.text-white\/80{color:color-mix(in oklab,var(--color-white) 80%,transparent)}}.text-white\/85{color:#ffffffd9}@supports (color:color-mix(in lab,red,red)){.text-white\/85{color:color-mix(in oklab,var(--color-white) 85%,transparent)}}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-2xl{--tw-backdrop-blur:blur(var(--blur-2xl));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.zoom-in-95{--tw-enter-scale:.95}.\[--cell-size\:2rem\]{--cell-size:2rem}.paused{animation-play-state:paused}.running{animation-play-state:running}@media(hover:hover){.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-data-\[focused\=true\]\/day\:relative:is(:where(.group\/day)[data-focused=true] *){position:relative}.group-data-\[focused\=true\]\/day\:z-10:is(:where(.group\/day)[data-focused=true] *){z-index:10}.group-data-\[focused\=true\]\/day\:border-ring:is(:where(.group\/day)[data-focused=true] *){border-color:var(--ring)}.group-data-\[focused\=true\]\/day\:ring-\[3px\]:is(:where(.group\/day)[data-focused=true] *){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state=open] *){rotate:180deg}.group-\[\.destructive\]\:border-muted\/40:is(:where(.group).destructive *){border-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.group-\[\.destructive\]\:border-muted\/40:is(:where(.group).destructive *){border-color:color-mix(in oklab,var(--muted) 40%,transparent)}}.group-\[\.destructive\]\:text-red-300:is(:where(.group).destructive *){color:var(--color-red-300)}.group-\[\.toast\]\:bg-muted:is(:where(.group).toast *){background-color:var(--muted)}.group-\[\.toast\]\:bg-primary:is(:where(.group).toast *){background-color:var(--primary)}.group-\[\.toast\]\:text-muted-foreground:is(:where(.group).toast *){color:var(--muted-foreground)}.group-\[\.toast\]\:text-primary-foreground:is(:where(.group).toast *){color:var(--primary-foreground)}.group-\[\.toaster\]\:border-border:is(:where(.group).toaster *){border-color:var(--border)}.group-\[\.toaster\]\:bg-background:is(:where(.group).toaster *){background-color:var(--background)}.group-\[\.toaster\]\:text-foreground:is(:where(.group).toaster *){color:var(--foreground)}.group-\[\.toaster\]\:shadow-lg:is(:where(.group).toaster *){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-70:is(:where(.peer):disabled~*){opacity:.7}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing) * 0)}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-1:after{content:var(--tw-content);width:calc(var(--spacing) * 1)}.after\:-translate-x-1\/2:after{content:var(--tw-content);--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}@media(hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive\/80:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/80:hover{background-color:color-mix(in oklab,var(--destructive) 80%,transparent)}}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive) 90%,transparent)}}.hover\:bg-muted:hover,.hover\:bg-muted\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/50:hover{background-color:color-mix(in oklab,var(--muted) 50%,transparent)}}.hover\:bg-primary\/80:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/80:hover{background-color:color-mix(in oklab,var(--primary) 80%,transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary) 90%,transparent)}}.hover\:bg-secondary:hover,.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary) 80%,transparent)}}.hover\:bg-white\/8:hover{background-color:#ffffff14}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/8:hover{background-color:color-mix(in oklab,var(--color-white) 8%,transparent)}}.hover\:bg-white\/10:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/10:hover{background-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.hover\:bg-white\/15:hover{background-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/15:hover{background-color:color-mix(in oklab,var(--color-white) 15%,transparent)}}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-muted-foreground:hover{color:var(--muted-foreground)}.hover\:text-white:hover{color:var(--color-white)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:brightness-110:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.group-\[\.destructive\]\:hover\:border-destructive\/30:is(:where(.group).destructive *):hover{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.group-\[\.destructive\]\:hover\:border-destructive\/30:is(:where(.group).destructive *):hover{border-color:color-mix(in oklab,var(--destructive) 30%,transparent)}}.group-\[\.destructive\]\:hover\:bg-destructive:is(:where(.group).destructive *):hover{background-color:var(--destructive)}.group-\[\.destructive\]\:hover\:text-destructive-foreground:is(:where(.group).destructive *):hover{color:var(--destructive-foreground)}.group-\[\.destructive\]\:hover\:text-red-50:is(:where(.group).destructive *):hover{color:var(--color-red-50)}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:opacity-100:focus{opacity:1}.focus\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.group-\[\.destructive\]\:focus\:ring-destructive:is(:where(.group).destructive *):focus{--tw-ring-color:var(--destructive)}.group-\[\.destructive\]\:focus\:ring-red-400:is(:where(.group).destructive *):focus{--tw-ring-color:var(--color-red-400)}.group-\[\.destructive\]\:focus\:ring-offset-red-600:is(:where(.group).destructive *):focus{--tw-ring-offset-color:var(--color-red-600)}.focus-visible\:border-\[var\(--fg-base\)\]:focus-visible{border-color:var(--fg-base)}.focus-visible\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:var(--ring)}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:var(--background)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:bg-\[\#e7b47a\]\/40:active{background-color:#e7b47a66}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.has-focus\:border-ring:has(:focus){border-color:var(--ring)}.has-focus\:ring-\[3px\]:has(:focus){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-selected\:text-muted-foreground[aria-selected=true]{color:var(--muted-foreground)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true]{pointer-events:none}.data-\[disabled\=true\]\:opacity-50[data-disabled=true]{opacity:.5}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x:calc(52*var(--spacing))}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x:calc(52*var(--spacing)*-1)}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x:calc(52*var(--spacing))}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x:calc(52*var(--spacing)*-1)}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity:0}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-]{--tw-exit-opacity:0}.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction=vertical]{height:1px}.data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction=vertical]{width:100%}.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}.data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:calc(var(--spacing) * 0)}.data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:calc(var(--spacing) * 1)}.data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}.data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\[range-end\=true\]\:rounded-md[data-range-end=true]{border-radius:calc(var(--radius) - 2px)}.data-\[range-end\=true\]\:bg-primary[data-range-end=true]{background-color:var(--primary)}.data-\[range-end\=true\]\:text-primary-foreground[data-range-end=true]{color:var(--primary-foreground)}.data-\[range-middle\=true\]\:rounded-none[data-range-middle=true]{border-radius:0}.data-\[range-middle\=true\]\:bg-accent[data-range-middle=true]{background-color:var(--accent)}.data-\[range-middle\=true\]\:text-accent-foreground[data-range-middle=true]{color:var(--accent-foreground)}.data-\[range-start\=true\]\:rounded-md[data-range-start=true]{border-radius:calc(var(--radius) - 2px)}.data-\[range-start\=true\]\:bg-primary[data-range-start=true]{background-color:var(--primary)}.data-\[range-start\=true\]\:text-primary-foreground[data-range-start=true]{color:var(--primary-foreground)}.data-\[selected-single\=true\]\:bg-primary[data-selected-single=true]{background-color:var(--primary)}.data-\[selected-single\=true\]\:text-primary-foreground[data-selected-single=true]{color:var(--primary-foreground)}.data-\[selected\=true\]\:rounded-none[data-selected=true]{border-radius:0}.data-\[selected\=true\]\:bg-accent[data-selected=true]{background-color:var(--accent)}.data-\[selected\=true\]\:text-accent-foreground[data-selected=true]{color:var(--accent-foreground)}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:var(--background)}.data-\[state\=active\]\:text-foreground[data-state=active]{color:var(--foreground)}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:.2s ease-out accordion-up}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity:.8}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50% }.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed]{--tw-exit-translate-x: 100% }.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48% }.data-\[state\=hidden\]\:animate-out[data-state=hidden]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity:0}.data-\[state\=on\]\:bg-accent[data-state=on]{background-color:var(--accent)}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:var(--accent-foreground)}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:.2s ease-out accordion-down}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent[data-state=open],.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:color-mix(in oklab,var(--accent) 50%,transparent)}}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:var(--secondary)}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.data-\[state\=open\]\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale:.9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50% }.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48% }.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100% }@media(hover:hover){.data-\[state\=open\]\:hover\:bg-accent[data-state=open]:hover{background-color:var(--accent)}}.data-\[state\=open\]\:focus\:bg-accent[data-state=open]:focus{background-color:var(--accent)}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:var(--muted)}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:var(--input)}.data-\[state\=visible\]\:animate-in[data-state=visible]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity:0}.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x:var(--radix-toast-swipe-end-x);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x:var(--radix-toast-swipe-move-x);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}@media not all and (min-width:48rem){.max-md\:inset-x-3{inset-inline:calc(var(--spacing) * 3)}.max-md\:top-\[150px\]{top:150px}.max-md\:top-auto{top:auto}.max-md\:bottom-3{bottom:calc(var(--spacing) * 3)}.max-md\:bottom-\[150px\]{bottom:150px}.max-md\:hidden{display:none}.max-md\:max-h-\[46vh\]{max-height:46vh}.max-md\:w-auto{width:auto}}@media not all and (min-width:40rem){.max-sm\:hidden{display:none}}@media(min-width:40rem){.sm\:top-auto{top:auto}.sm\:right-0{right:calc(var(--spacing) * 0)}.sm\:bottom-0{bottom:calc(var(--spacing) * 0)}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:flex-col{flex-direction:column}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2\.5{gap:calc(var(--spacing) * 2.5)}:where(.sm\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100% }}@media(min-width:48rem){.md\:absolute{position:absolute}.md\:bottom-3{bottom:calc(var(--spacing) * 3)}.md\:left-\[236px\]{left:236px}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:max-w-\[420px\]{max-width:420px}.md\:flex-row{flex-direction:row}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:80rem){.xl\:top-\[86px\]{top:86px}}@media(prefers-color-scheme:dark){.dark\:border-destructive{border-color:var(--destructive)}}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-inline:calc(var(--spacing) * 2)}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-block:calc(var(--spacing) * 1.5)}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:var(--muted-foreground)}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-inline:calc(var(--spacing) * 2)}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:calc(var(--spacing) * 0)}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:calc(var(--spacing) * 5)}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:calc(var(--spacing) * 5)}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:calc(var(--spacing) * 12)}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-inline:calc(var(--spacing) * 2)}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-block:calc(var(--spacing) * 3)}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:calc(var(--spacing) * 5)}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:calc(var(--spacing) * 5)}.\[\&_p\]\:leading-relaxed p{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_tr\]\:border-b tr{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-style:var(--tw-border-style);border-width:0}.\[\&\+div\]\:text-xs+div{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&\:first-child\[data-selected\=true\]_button\]\:rounded-l-md:first-child[data-selected=true] button{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:calc(var(--spacing) * 0)}:is(.rtl\:\*\*\:\[\.rdp-button\\_next\>svg\]\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_next>svg),:is(.rtl\:\*\*\:\[\.rdp-button\\_previous\>svg\]\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_previous>svg){rotate:180deg}.\[\&\:last-child\[data-selected\=true\]_button\]\:rounded-r-md:last-child[data-selected=true] button{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y:2px;translate:var(--tw-translate-x) var(--tw-translate-y)}.\[\&\>span\]\:line-clamp-1>span{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.\[\&\>span\]\:text-xs>span{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&\>span\]\:opacity-70>span{opacity:.7}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:top-4>svg{top:calc(var(--spacing) * 4)}.\[\&\>svg\]\:left-4>svg{left:calc(var(--spacing) * 4)}.\[\&\>svg\]\:size-3\.5>svg{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>svg\]\:h-3\.5>svg{height:calc(var(--spacing) * 3.5)}.\[\&\>svg\]\:w-3\.5>svg{width:calc(var(--spacing) * 3.5)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:text-destructive>svg{color:var(--destructive)}.\[\&\>svg\]\:text-foreground>svg{color:var(--foreground)}.\[\&\>svg\]\:text-muted-foreground>svg{color:var(--muted-foreground)}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y:-3px;translate:var(--tw-translate-x) var(--tw-translate-y)}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:calc(var(--spacing) * 7)}.\[\&\>tr\]\:last\:border-b-0>tr:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction=vertical]>div{rotate:90deg}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{rotate:180deg}[data-slot=card-content] .\[\[data-slot\=card-content\]_\&\]\:bg-transparent,[data-slot=popover-content] .\[\[data-slot\=popover-content\]_\&\]\:bg-transparent{background-color:#0000}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}to{height:0}}:root{--background:#fff;--foreground:#212121;--card:#fff;--card-foreground:#212121;--popover:#fff;--popover-foreground:#212121;--primary:#ff2974;--primary-foreground:#fff;--secondary:#f3f2f2;--secondary-foreground:#212121;--muted:#f3f2f2;--muted-foreground:#7a7a7a;--accent:#f3f2f2;--accent-foreground:#212121;--destructive:#f5242e;--destructive-foreground:#fff;--border:#e8e8e8;--input:#e8e8e8;--ring:#212121;--radius:.5rem;--neutral-0:#fff;--neutral-50:#fafafa;--neutral-100:#f5f4f4;--neutral-200:#e7e7e7;--neutral-300:#d8d8d8;--neutral-400:#aaa;--neutral-500:#7a7a7a;--neutral-600:#5b5b5b;--neutral-700:#464646;--neutral-800:#2a2a2a;--neutral-900:#212121;--neutral-950:#1b1b1b;--neutral-1000:#101010;--brand-100:#ff2882;--brand-60:#ff288299;--brand-30:#ff28824d;--brand-10:#ff28821a;--brand-seafoam:#b6cfd0;--brand-dusty-teal:#6ba4b8;--brand-black-aqua:#002f38;--brand-deep-teal-blue:#07272d;--visualizer-rose-pop:#fd4b96;--visualizer-indigo-breeze:#6366f1;--visualizer-emerald-mint:#10b981;--visualizer-golden-amber:#f59e0b;--visualizer-royal-blue:#1d4ed8;--visualizer-crimson-spark:#ef4444;--visualizer-aqua-glow:#06b6d4;--visualizer-sunbeam-yellow:#facc15;--bg-subtle:#2a2a2a0a;--bg-subtle-hover:#2a2a2a0f;--bg-base:#ffffffe0;--bg-base-opaque:#fff;--bg-menu:#fff;--bg-chat:#fcfcfc;--bg-chat-nav:#f4f4f4;--fg-base:#212121;--fg-subtle:#7a7a7a;--fg-muted:#aaa;--fg-disabled:#d8d8d8;--border-base:#2a2a2a0a;--border-strong:#2a2a2a14;--border-contrast:#2a2a2a1f;--border-focus:#2a2a2a66;--tag-blue-10:#5bb5ff1a;--tag-blue-100:#5bb5ff;--tag-yellow-10:#dec3781a;--tag-yellow-100:#dec378;--tag-purple-10:#908eb81a;--tag-purple-100:#908eb8;--tag-cyan-10:#74ada41a;--tag-cyan-100:#74ada4;--tag-pink-10:#b88ea71a;--tag-pink-100:#b88ea7;--tag-orange-10:#b8a08e1a;--tag-orange-100:#b8a08e;--gradient-max-dark:linear-gradient(213deg, #8c421d 2%, #fbe67b 31%, #fcfbe7 53%, #f7d14e 77%, #d4a041 100%);--gradient-max-light:linear-gradient(125deg, #8c421d 22%, #d2af00 47%, #cd9124 67%, #d4a041 88%);--gradient-pro-dark:linear-gradient(213deg, #7a96ac 1%, #c5d6e2 27%, #eaeff3 47%, #c5d6e2 65%, #a3bccf 89%);--gradient-pro-light:linear-gradient(129deg, #7a96ac 4%, #6d7f8d 27%, #9fb9ce 55%, #6d7f8d 90%);--gradient-plus-dark:linear-gradient(214deg, #986732 0%, #a7825b 23%, #f6d0ab 45%, #a07043 66%, #9d774e 100%);--gradient-plus-light:linear-gradient(129deg, #9e8976 5%, #7a5e50 19%, #f6d0ab 35%, #9d774e 49%, #c99b70 65%, #795f52 78%);--gradient-upgrade-dark:linear-gradient(214deg, #ffedf3 0%, #ff9fbf 30%, #fd5d92 59%, #ffdab2 100%);--gradient-upgrade-light:linear-gradient(32deg, #fc3bb2 6%, #f7906e 79%);--gradient-new-function:linear-gradient(33deg, #6e86ff 17%, #ff2882 55%, #ff98a4 103%);--gradient-suggestion:linear-gradient(32deg, #fd538c 4%, #5aa6e0 47%, #ffdab2 98%);--gradient-g1:linear-gradient(189deg, #ffacc6 6%, #b6e0f5 99%);--gradient-g2:linear-gradient(34deg, #9796f0 9%, #fbc7d4 84%);--gradient-g3:linear-gradient(to right, #ed4264, #ffedbc);--gradient-g4:linear-gradient(232deg, #fedc2a 4%, #dd5789 56%, #7a2c9e 104%);--gradient-g5:linear-gradient(32deg, #fc3bb2 6%, #f7906e 79%);--gradient-max:var(--gradient-max-light);--gradient-pro:var(--gradient-pro-light);--gradient-plus:var(--gradient-plus-light);--gradient-upgrade:var(--gradient-upgrade-light);--spacing-2:2px;--spacing-4:4px;--spacing-6:6px;--spacing-8:8px;--spacing-10:10px;--spacing-12:12px;--spacing-16:16px;--spacing-24:24px;--spacing-32:32px;--spacing-40:40px;--spacing-64:64px;--spacing-96:96px;--spacing-128:128px;--radius-2:2px;--radius-4:4px;--radius-6:6px;--radius-8:8px;--radius-10:10px;--radius-12:12px;--radius-16:16px;--radius-20:20px;--radius-24:24px;--radius-full:999px;--font-family-header:"Lato", "PingFang SC", sans-serif;--font-family-body:"Lato", "PingFang SC", sans-serif;--font-family-code:"Roboto Mono", monospace}.dark{--background:#171717;--foreground:#e8e8e8;--card:#171717;--card-foreground:#e8e8e8;--popover:#262626;--popover-foreground:#e8e8e8;--primary:#ff2974;--primary-foreground:#fff;--secondary:#292929;--secondary-foreground:#e8e8e8;--muted:#292929;--muted-foreground:#ababab;--accent:#292929;--accent-foreground:#e8e8e8;--destructive:#ff4c4f;--destructive-foreground:#fff;--border:#333;--input:#333;--ring:#e7e7e7;--gradient-max:var(--gradient-max-dark);--gradient-pro:var(--gradient-pro-dark);--gradient-plus:var(--gradient-plus-dark);--gradient-upgrade:var(--gradient-upgrade-dark);--bg-subtle:#ffffff0a;--bg-subtle-hover:#ffffff1f;--bg-base:#2a2a2acc;--bg-base-opaque:#171717;--bg-menu:#252525;--bg-chat:#101010;--bg-chat-nav:#171717;--fg-base:#e7e7e7;--fg-subtle:#aaa;--fg-muted:#7a7a7a;--fg-disabled:#5b5b5b;--border-base:#ffffff0a;--border-strong:#ffffff14;--border-contrast:#ffffff1f;--border-focus:#fff6}@media(max-width:768px){:root{--spacing-96:64px;--spacing-128:64px}}.glass{-webkit-backdrop-filter:blur(14px)saturate(1.3);background:#1012169e;border:1px solid #ffffff17;box-shadow:0 8px 30px #00000059}.scroll-thin::-webkit-scrollbar{width:5px}.scroll-thin::-webkit-scrollbar-thumb{background:#ffffff26;border-radius:4px}.house-label{color:#f3efe8;letter-spacing:.04em;white-space:nowrap;cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0e1014b8;border:1px solid #ffffff2e;border-radius:999px;padding:4px 10px;font:600 12px Lato,system-ui,sans-serif;transition:background .2s,color .2s,transform .2s;transform:translateY(-50%)}.house-label:hover{color:#1b140c;background:#e7b47ad9}.house-label.active{color:#1b140c;background:#e7b47a;border-color:#ffd9a8;transform:translateY(-50%)scale(1.08)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}
assets/index-tKuM8enU.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var us=t=>{throw TypeError(t)};var Ft=(t,e,s)=>e.has(t)||us("Cannot "+s);var i=(t,e,s)=>(Ft(t,e,"read from private field"),s?s.call(t):e.get(t)),f=(t,e,s)=>e.has(t)?us("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),h=(t,e,s,r)=>(Ft(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s),w=(t,e,s)=>(Ft(t,e,"access private method"),s);var St=(t,e,s,r)=>({set _(n){h(t,e,n,s)},get _(){return i(t,e,r)}});import{r as Q}from"./index-Br42UDbl.js";import{r as ar}from"./index-BlGQAcOD.js";var Ue=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ce,pe,Le,Os,or=(Os=class extends Ue{constructor(){super();f(this,Ce);f(this,pe);f(this,Le);h(this,Le,e=>{if(typeof window<"u"&&window.addEventListener){const s=()=>e();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){i(this,pe)||this.setEventListener(i(this,Le))}onUnsubscribe(){var e;this.hasListeners()||((e=i(this,pe))==null||e.call(this),h(this,pe,void 0))}setEventListener(e){var s;h(this,Le,e),(s=i(this,pe))==null||s.call(this),h(this,pe,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){i(this,Ce)!==e&&(h(this,Ce,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(s=>{s(e)})}isFocused(){var e;return typeof i(this,Ce)=="boolean"?i(this,Ce):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Ce=new WeakMap,pe=new WeakMap,Le=new WeakMap,Os),Xt=new or,ur={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},te,Qe,Rs,cr=(Rs=class{constructor(){f(this,te,ur);f(this,Qe,!1)}setTimeoutProvider(t){i(this,Qe)&&t!==i(this,te)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:i(this,te),provider:t}),h(this,te,t),h(this,Qe,!1)}setTimeout(t,e){return h(this,Qe,!0),i(this,te).setTimeout(t,e)}clearTimeout(t){i(this,te).clearTimeout(t)}setInterval(t,e){return h(this,Qe,!0),i(this,te).setInterval(t,e)}clearInterval(t){i(this,te).clearInterval(t)}},te=new WeakMap,Qe=new WeakMap,Rs),Ee=new cr;function hr(t){setTimeout(t,0)}var lr=typeof window>"u"||"Deno"in globalThis;function _(){}function fr(t,e){return typeof t=="function"?t(e):t}function At(t){return typeof t=="number"&&t>=0&&t!==1/0}function ks(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Pe(t,e){return typeof t=="function"?t(e):t}function X(t,e){return typeof t=="function"?t(e):t}function cs(t,e){const{type:s="all",exact:r,fetchStatus:n,predicate:a,queryKey:o,stale:c}=t;if(o){if(r){if(e.queryHash!==Zt(o,e.options))return!1}else if(!nt(e.queryKey,o))return!1}if(s!=="all"){const y=e.isActive();if(s==="active"&&!y||s==="inactive"&&y)return!1}return!(typeof c=="boolean"&&e.isStale()!==c||n&&n!==e.state.fetchStatus||a&&!a(e))}function hs(t,e){const{exact:s,status:r,predicate:n,mutationKey:a}=t;if(a){if(!e.options.mutationKey)return!1;if(s){if(je(e.options.mutationKey)!==je(a))return!1}else if(!nt(e.options.mutationKey,a))return!1}return!(r&&e.state.status!==r||n&&!n(e))}function Zt(t,e){return((e==null?void 0:e.queryKeyHashFn)||je)(t)}function je(t){return JSON.stringify(t,(e,s)=>xt(s)?Object.keys(s).sort().reduce((r,n)=>(r[n]=s[n],r),{}):s)}function nt(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(s=>nt(t[s],e[s])):!1}var dr=Object.prototype.hasOwnProperty;function at(t,e,s=0){if(t===e)return t;if(s>500)return e;const r=ls(t)&&ls(e);if(!r&&!(xt(t)&&xt(e)))return e;const a=(r?t:Object.keys(t)).length,o=r?e:Object.keys(e),c=o.length,y=r?new Array(c):{};let m=0;for(let v=0;v<c;v++){const l=r?v:o[v],d=t[l],p=e[l];if(d===p){y[l]=d,(r?v<a:dr.call(t,l))&&m++;continue}if(d===null||p===null||typeof d!="object"||typeof p!="object"){y[l]=p;continue}const P=at(d,p,s+1);y[l]=P,P===d&&m++}return a===c&&m===a?t:y}function ot(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const s in t)if(t[s]!==e[s])return!1;return!0}function ls(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function xt(t){if(!fs(t))return!1;const e=t.constructor;if(e===void 0)return!0;const s=e.prototype;return!(!fs(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function fs(t){return Object.prototype.toString.call(t)==="[object Object]"}function yr(t){return new Promise(e=>{Ee.setTimeout(e,t)})}function Dt(t,e,s){if(typeof s.structuralSharing=="function")return s.structuralSharing(t,e);if(s.structuralSharing!==!1){try{return at(t,e)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${s.queryHash}]: ${r}`),r}return at(t,e)}return e}function $r(t){return t}function Is(t,e,s=0){const r=[...t,e];return s&&r.length>s?r.slice(1):r}function pr(t,e,s=0){const r=[e,...t];return s&&r.length>s?r.slice(0,-1):r}var qe=Symbol();function _s(t,e){return t.queryFn===qe&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`),!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===qe?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function es(t,e){return typeof t=="function"?t(...e):!!t}function js(t,e,s){let r=!1,n;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(n??(n=e()),r||(r=!0,n.aborted?s():n.addEventListener("abort",s,{once:!0})),n)}),t}var ut=(()=>{let t=()=>lr;return{isServer(){return t()},setIsServer(e){t=e}}})();function kt(){let t,e;const s=new Promise((n,a)=>{t=n,e=a});s.status="pending",s.catch(()=>{});function r(n){Object.assign(s,n),delete s.resolve,delete s.reject}return s.resolve=n=>{r({status:"fulfilled",value:n}),t(n)},s.reject=n=>{r({status:"rejected",reason:n}),e(n)},s}function mr(t){var s;let e;if((s=t.then(r=>(e=r,r),_))==null||s.catch(_),e!==void 0)return{data:e}}function qs(t){return t}function vr(t){return{mutationKey:t.options.mutationKey,state:t.state,...t.options.scope&&{scope:t.options.scope},...t.meta&&{meta:t.meta}}}function gr(t,e,s){const r=()=>{var a;const n=(a=t.promise)==null?void 0:a.then(e).catch(o=>s(o)?(console.error(`A query that was dehydrated as pending ended up rejecting. [${t.queryHash}]: ${o}; The error will be redacted in production builds`),Promise.reject(new Error("redacted"))):Promise.reject(o));return n==null||n.catch(_),n};return{dehydratedAt:Date.now(),state:{...t.state,...t.state.data!==void 0&&{data:e(t.state.data)}},queryKey:t.queryKey,queryHash:t.queryHash,...t.state.status==="pending"&&{promise:r()},...t.meta&&{meta:t.meta}}}function br(t){return t.state.isPaused}function Sr(t){return t.state.status==="success"}function wr(t){return!0}function Gr(t,e={}){var y,m,v,l;const s=e.shouldDehydrateMutation??((y=t.getDefaultOptions().dehydrate)==null?void 0:y.shouldDehydrateMutation)??br,r=t.getMutationCache().getAll().flatMap(d=>s(d)?[vr(d)]:[]),n=e.shouldDehydrateQuery??((m=t.getDefaultOptions().dehydrate)==null?void 0:m.shouldDehydrateQuery)??Sr,a=e.shouldRedactErrors??((v=t.getDefaultOptions().dehydrate)==null?void 0:v.shouldRedactErrors)??wr,o=e.serializeData??((l=t.getDefaultOptions().dehydrate)==null?void 0:l.serializeData)??qs,c=t.getQueryCache().getAll().flatMap(d=>n(d)?[gr(d,o,a)]:[]);return{mutations:r,queries:c}}function ds(t,e,s){var y,m;if(typeof e!="object"||e===null)return;const r=t.getMutationCache(),n=t.getQueryCache(),a=((y=s==null?void 0:s.defaultOptions)==null?void 0:y.deserializeData)??((m=t.getDefaultOptions().hydrate)==null?void 0:m.deserializeData)??qs,o=e.mutations||[],c=e.queries||[];o.forEach(({state:v,...l})=>{var d,p;r.build(t,{...(d=t.getDefaultOptions().hydrate)==null?void 0:d.mutations,...(p=s==null?void 0:s.defaultOptions)==null?void 0:p.mutations,...l},v)}),c.forEach(({queryKey:v,state:l,queryHash:d,meta:p,promise:P,dehydratedAt:g})=>{var j,B;const b=P?mr(P):void 0,O=l.data===void 0?b==null?void 0:b.data:l.data,M=O===void 0?O:a(O);let R=n.get(d);const S=(R==null?void 0:R.state.status)==="pending",D=(R==null?void 0:R.state.fetchStatus)==="fetching";if(R){const T=b&&g!==void 0&&g>R.state.dataUpdatedAt;if(l.dataUpdatedAt>R.state.dataUpdatedAt||T){const{fetchStatus:x,...q}=l;R.setState({...q,data:M})}}else R=n.build(t,{...(j=t.getDefaultOptions().hydrate)==null?void 0:j.queries,...(B=s==null?void 0:s.defaultOptions)==null?void 0:B.queries,queryKey:v,queryHash:d,meta:p},{...l,data:M,fetchStatus:"idle",status:M!==void 0?"success":l.status});P&&!S&&!D&&(g===void 0||g>R.state.dataUpdatedAt)&&R.fetch(void 0,{initialPromise:Promise.resolve(P).then(a)}).catch(_)})}var Or=hr;function Rr(){let t=[],e=0,s=c=>{c()},r=c=>{c()},n=Or;const a=c=>{e?t.push(c):n(()=>{s(c)})},o=()=>{const c=t;t=[],c.length&&n(()=>{r(()=>{c.forEach(y=>{s(y)})})})};return{batch:c=>{let y;e++;try{y=c()}finally{e--,e||o()}return y},batchCalls:c=>(...y)=>{a(()=>{c(...y)})},schedule:a,setNotifyFunction:c=>{s=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{n=c}}}var A=Rr(),He,me,ze,Ps,Pr=(Ps=class extends Ue{constructor(){super();f(this,He,!0);f(this,me);f(this,ze);h(this,ze,e=>{if(typeof window<"u"&&window.addEventListener){const s=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",r)}}})}onSubscribe(){i(this,me)||this.setEventListener(i(this,ze))}onUnsubscribe(){var e;this.hasListeners()||((e=i(this,me))==null||e.call(this),h(this,me,void 0))}setEventListener(e){var s;h(this,ze,e),(s=i(this,me))==null||s.call(this),h(this,me,e(this.setOnline.bind(this)))}setOnline(e){i(this,He)!==e&&(h(this,He,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return i(this,He)}},He=new WeakMap,me=new WeakMap,ze=new WeakMap,Ps),Rt=new Pr;function Er(t){return Math.min(1e3*2**t,3e4)}function Us(t){return(t??"online")==="online"?Rt.isOnline():!0}var Pt=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Br(t){return t instanceof Pt}function Ns(t){let e=!1,s=0,r;const n=kt(),a=()=>n.status!=="pending",o=g=>{var b;if(!a()){const O=new Pt(g);d(O),(b=t.onCancel)==null||b.call(t,O)}},c=()=>{e=!0},y=()=>{e=!1},m=()=>Xt.isFocused()&&(t.networkMode==="always"||Rt.isOnline())&&t.canRun(),v=()=>Us(t.networkMode)&&t.canRun(),l=g=>{a()||(r==null||r(),n.resolve(g))},d=g=>{a()||(r==null||r(),n.reject(g))},p=()=>new Promise(g=>{var b;r=O=>{(a()||m())&&g(O)},(b=t.onPause)==null||b.call(t)}).then(()=>{var g;r=void 0,a()||(g=t.onContinue)==null||g.call(t)}),P=()=>{if(a())return;let g;const b=s===0?t.initialPromise:void 0;try{g=b??t.fn()}catch(O){g=Promise.reject(O)}Promise.resolve(g).then(l).catch(O=>{var j;if(a())return;const M=t.retry??(ut.isServer()?0:3),R=t.retryDelay??Er,S=typeof R=="function"?R(s,O):R,D=M===!0||typeof M=="number"&&s<M||typeof M=="function"&&M(s,O);if(e||!D){d(O);return}s++,(j=t.onFail)==null||j.call(t,s,O),yr(S).then(()=>m()?void 0:p()).then(()=>{e?d(O):P()})})};return{promise:n,status:()=>n.status,cancel:o,continue:()=>(r==null||r(),n),cancelRetry:c,continueRetry:y,canStart:v,start:()=>(v()?P():p().then(P),n)}}var Te,Es,Ks=(Es=class{constructor(){f(this,Te)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),At(this.gcTime)&&h(this,Te,Ee.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(ut.isServer()?1/0:300*1e3))}clearGcTimeout(){i(this,Te)&&(Ee.clearTimeout(i(this,Te)),h(this,Te,void 0))}},Te=new WeakMap,Es),Fe,$e,J,Me,K,ct,Ae,W,Ls,ne,Cs,Cr=(Cs=class extends Ks{constructor(e){super();f(this,W);f(this,Fe);f(this,$e);f(this,J);f(this,Me);f(this,K);f(this,ct);f(this,Ae);h(this,Ae,!1),h(this,ct,e.defaultOptions),this.setOptions(e.options),this.observers=[],h(this,Me,e.client),h(this,J,i(this,Me).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,h(this,Fe,ps(this.options)),this.state=e.state??i(this,Fe),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=i(this,K))==null?void 0:e.promise}setOptions(e){if(this.options={...i(this,ct),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=ps(this.options);s.data!==void 0&&(this.setState(ys(s.data,s.dataUpdatedAt)),h(this,Fe,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&i(this,J).remove(this)}setData(e,s){const r=Dt(this.state.data,e,this.options);return w(this,W,ne).call(this,{data:r,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),r}setState(e,s){w(this,W,ne).call(this,{type:"setState",state:e,setStateOptions:s})}cancel(e){var r,n;const s=(r=i(this,K))==null?void 0:r.promise;return(n=i(this,K))==null||n.cancel(e),s?s.then(_).catch(_):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return i(this,Fe)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>X(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qe||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Pe(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!ks(this.state.dataUpdatedAt,e)}onFocus(){var s;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(s=i(this,K))==null||s.continue()}onOnline(){var s;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(s=i(this,K))==null||s.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),i(this,J).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(s=>s!==e),this.observers.length||(i(this,K)&&(i(this,Ae)||w(this,W,Ls).call(this)?i(this,K).cancel({revert:!0}):i(this,K).cancelRetry()),this.scheduleGc()),i(this,J).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||w(this,W,ne).call(this,{type:"invalidate"})}async fetch(e,s){var y,m,v,l,d,p,P,g,b,O,M,R;if(this.state.fetchStatus!=="idle"&&((y=i(this,K))==null?void 0:y.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(i(this,K))return i(this,K).continueRetry(),i(this,K).promise}if(e&&this.setOptions(e),!this.options.queryFn){const S=this.observers.find(D=>D.options.queryFn);S&&this.setOptions(S.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const r=new AbortController,n=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(h(this,Ae,!0),r.signal)})},a=()=>{const S=_s(this.options,s),j=(()=>{const B={client:i(this,Me),queryKey:this.queryKey,meta:this.meta};return n(B),B})();return h(this,Ae,!1),this.options.persister?this.options.persister(S,j,this):S(j)},c=(()=>{const S={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:i(this,Me),state:this.state,fetchFn:a};return n(S),S})();(m=this.options.behavior)==null||m.onFetch(c,this),h(this,$e,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=c.fetchOptions)==null?void 0:v.meta))&&w(this,W,ne).call(this,{type:"fetch",meta:(l=c.fetchOptions)==null?void 0:l.meta}),h(this,K,Ns({initialPromise:s==null?void 0:s.initialPromise,fn:c.fetchFn,onCancel:S=>{S instanceof Pt&&S.revert&&this.setState({...i(this,$e),fetchStatus:"idle"}),r.abort()},onFail:(S,D)=>{w(this,W,ne).call(this,{type:"failed",failureCount:S,error:D})},onPause:()=>{w(this,W,ne).call(this,{type:"pause"})},onContinue:()=>{w(this,W,ne).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const S=await i(this,K).start();if(S===void 0)throw console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(S),(p=(d=i(this,J).config).onSuccess)==null||p.call(d,S,this),(g=(P=i(this,J).config).onSettled)==null||g.call(P,S,this.state.error,this),S}catch(S){if(S instanceof Pt){if(S.silent)return i(this,K).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw w(this,W,ne).call(this,{type:"error",error:S}),(O=(b=i(this,J).config).onError)==null||O.call(b,S,this),(R=(M=i(this,J).config).onSettled)==null||R.call(M,this.state.data,S,this),S}finally{this.scheduleGc()}}},Fe=new WeakMap,$e=new WeakMap,J=new WeakMap,Me=new WeakMap,K=new WeakMap,ct=new WeakMap,Ae=new WeakMap,W=new WeakSet,Ls=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ne=function(e){const s=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Hs(r.data,this.options),fetchMeta:e.meta??null};case"success":const n={...r,...ys(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return h(this,$e,e.manual?n:void 0),n;case"error":const a=e.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=s(this.state),A.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),i(this,J).notify({query:this,type:"updated",action:e})})},Cs);function Hs(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Us(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function ys(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ps(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,s=e!==void 0,r=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var $,C,ht,z,xe,Ge,ae,ve,lt,Be,Ye,De,ke,ge,We,F,it,It,_t,jt,qt,Ut,Nt,Kt,zs,Qs,gt=(Qs=class extends Ue{constructor(e,s){super();f(this,F);f(this,$);f(this,C);f(this,ht);f(this,z);f(this,xe);f(this,Ge);f(this,ae);f(this,ve);f(this,lt);f(this,Be);f(this,Ye);f(this,De);f(this,ke);f(this,ge);f(this,We,new Set);this.options=s,h(this,$,e),h(this,ve,null),h(this,ae,kt()),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(i(this,C).addObserver(this),ms(i(this,C),this.options)?w(this,F,it).call(this):this.updateResult(),w(this,F,qt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lt(i(this,C),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lt(i(this,C),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,w(this,F,Ut).call(this),w(this,F,Nt).call(this),i(this,C).removeObserver(this)}setOptions(e){const s=this.options,r=i(this,C);if(this.options=i(this,$).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof X(this.options.enabled,i(this,C))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");w(this,F,Kt).call(this),i(this,C).setOptions(this.options),s._defaulted&&!ot(this.options,s)&&i(this,$).getQueryCache().notify({type:"observerOptionsUpdated",query:i(this,C),observer:this});const n=this.hasListeners();n&&vs(i(this,C),r,this.options,s)&&w(this,F,it).call(this),this.updateResult(),n&&(i(this,C)!==r||X(this.options.enabled,i(this,C))!==X(s.enabled,i(this,C))||Pe(this.options.staleTime,i(this,C))!==Pe(s.staleTime,i(this,C)))&&w(this,F,It).call(this);const a=w(this,F,_t).call(this);n&&(i(this,C)!==r||X(this.options.enabled,i(this,C))!==X(s.enabled,i(this,C))||a!==i(this,ge))&&w(this,F,jt).call(this,a)}getOptimisticResult(e){const s=i(this,$).getQueryCache().build(i(this,$),e),r=this.createResult(s,e);return Tr(this,r)&&(h(this,z,r),h(this,Ge,this.options),h(this,xe,i(this,C).state)),r}getCurrentResult(){return i(this,z)}trackResult(e,s){return new Proxy(e,{get:(r,n)=>(this.trackProp(n),s==null||s(n),n==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&i(this,ae).status==="pending"&&i(this,ae).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,n))})}trackProp(e){i(this,We).add(e)}getCurrentQuery(){return i(this,C)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const s=i(this,$).defaultQueryOptions(e),r=i(this,$).getQueryCache().build(i(this,$),s);return r.fetch().then(()=>this.createResult(r,s))}fetch(e){return w(this,F,it).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),i(this,z)))}createResult(e,s){var x;const r=i(this,C),n=this.options,a=i(this,z),o=i(this,xe),c=i(this,Ge),m=e!==r?e.state:i(this,ht),{state:v}=e;let l={...v},d=!1,p;if(s._optimisticResults){const q=this.hasListeners(),ee=!q&&ms(e,s),fe=q&&vs(e,r,s,n);(ee||fe)&&(l={...l,...Hs(v.data,e.options)}),s._optimisticResults==="isRestoring"&&(l.fetchStatus="idle")}let{error:P,errorUpdatedAt:g,status:b}=l;p=l.data;let O=!1;if(s.placeholderData!==void 0&&p===void 0&&b==="pending"){let q;a!=null&&a.isPlaceholderData&&s.placeholderData===(c==null?void 0:c.placeholderData)?(q=a.data,O=!0):q=typeof s.placeholderData=="function"?s.placeholderData((x=i(this,Ye))==null?void 0:x.state.data,i(this,Ye)):s.placeholderData,q!==void 0&&(b="success",p=Dt(a==null?void 0:a.data,q,s),d=!0)}if(s.select&&p!==void 0&&!O)if(a&&p===(o==null?void 0:o.data)&&s.select===i(this,lt))p=i(this,Be);else try{h(this,lt,s.select),p=s.select(p),p=Dt(a==null?void 0:a.data,p,s),h(this,Be,p),h(this,ve,null)}catch(q){h(this,ve,q)}i(this,ve)&&(P=i(this,ve),p=i(this,Be),g=Date.now(),b="error");const M=l.fetchStatus==="fetching",R=b==="pending",S=b==="error",D=R&&M,j=p!==void 0,T={status:b,fetchStatus:l.fetchStatus,isPending:R,isSuccess:b==="success",isError:S,isInitialLoading:D,isLoading:D,data:p,dataUpdatedAt:l.dataUpdatedAt,error:P,errorUpdatedAt:g,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>m.dataUpdateCount||l.errorUpdateCount>m.errorUpdateCount,isFetching:M,isRefetching:M&&!R,isLoadingError:S&&!j,isPaused:l.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:S&&j,isStale:ts(e,s),refetch:this.refetch,promise:i(this,ae),isEnabled:X(s.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const q=T.data!==void 0,ee=T.status==="error"&&!q,fe=de=>{ee?de.reject(T.error):q&&de.resolve(T.data)},st=()=>{const de=h(this,ae,T.promise=kt());fe(de)},Ne=i(this,ae);switch(Ne.status){case"pending":e.queryHash===r.queryHash&&fe(Ne);break;case"fulfilled":(ee||T.data!==Ne.value)&&st();break;case"rejected":(!ee||T.error!==Ne.reason)&&st();break}}return T}updateResult(){const e=i(this,z),s=this.createResult(i(this,C),this.options);if(h(this,xe,i(this,C).state),h(this,Ge,this.options),i(this,xe).data!==void 0&&h(this,Ye,i(this,C)),ot(s,e))return;h(this,z,s);const r=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,a=typeof n=="function"?n():n;if(a==="all"||!a&&!i(this,We).size)return!0;const o=new Set(a??i(this,We));return this.options.throwOnError&&o.add("error"),Object.keys(i(this,z)).some(c=>{const y=c;return i(this,z)[y]!==e[y]&&o.has(y)})};w(this,F,zs).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&w(this,F,qt).call(this)}},$=new WeakMap,C=new WeakMap,ht=new WeakMap,z=new WeakMap,xe=new WeakMap,Ge=new WeakMap,ae=new WeakMap,ve=new WeakMap,lt=new WeakMap,Be=new WeakMap,Ye=new WeakMap,De=new WeakMap,ke=new WeakMap,ge=new WeakMap,We=new WeakMap,F=new WeakSet,it=function(e){w(this,F,Kt).call(this);let s=i(this,C).fetch(this.options,e);return e!=null&&e.throwOnError||(s=s.catch(_)),s},It=function(){w(this,F,Ut).call(this);const e=Pe(this.options.staleTime,i(this,C));if(ut.isServer()||i(this,z).isStale||!At(e))return;const r=ks(i(this,z).dataUpdatedAt,e)+1;h(this,De,Ee.setTimeout(()=>{i(this,z).isStale||this.updateResult()},r))},_t=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(i(this,C)):this.options.refetchInterval)??!1},jt=function(e){w(this,F,Nt).call(this),h(this,ge,e),!(ut.isServer()||X(this.options.enabled,i(this,C))===!1||!At(i(this,ge))||i(this,ge)===0)&&h(this,ke,Ee.setInterval(()=>{(this.options.refetchIntervalInBackground||Xt.isFocused())&&w(this,F,it).call(this)},i(this,ge)))},qt=function(){w(this,F,It).call(this),w(this,F,jt).call(this,w(this,F,_t).call(this))},Ut=function(){i(this,De)&&(Ee.clearTimeout(i(this,De)),h(this,De,void 0))},Nt=function(){i(this,ke)&&(Ee.clearInterval(i(this,ke)),h(this,ke,void 0))},Kt=function(){const e=i(this,$).getQueryCache().build(i(this,$),this.options);if(e===i(this,C))return;const s=i(this,C);h(this,C,e),h(this,ht,e.state),this.hasListeners()&&(s==null||s.removeObserver(this),e.addObserver(this))},zs=function(e){A.batch(()=>{e.listeners&&this.listeners.forEach(s=>{s(i(this,z))}),i(this,$).getQueryCache().notify({query:i(this,C),type:"observerResultsUpdated"})})},Qs);function Qr(t,e){return X(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function ms(t,e){return Qr(t,e)||t.state.data!==void 0&&Lt(t,e,e.refetchOnMount)}function Lt(t,e,s){if(X(e.enabled,t)!==!1&&Pe(e.staleTime,t)!=="static"){const r=typeof s=="function"?s(t):s;return r==="always"||r!==!1&&ts(t,e)}return!1}function vs(t,e,s,r){return(t!==e||X(r.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&ts(t,s)}function ts(t,e){return X(e.enabled,t)!==!1&&t.isStaleByTime(Pe(e.staleTime,t))}function Tr(t,e){return!ot(t.getCurrentResult(),e)}function Et(t){return{onFetch:(e,s)=>{var v,l,d,p,P;const r=e.options,n=(d=(l=(v=e.fetchOptions)==null?void 0:v.meta)==null?void 0:l.fetchMore)==null?void 0:d.direction,a=((p=e.state.data)==null?void 0:p.pages)||[],o=((P=e.state.data)==null?void 0:P.pageParams)||[];let c={pages:[],pageParams:[]},y=0;const m=async()=>{let g=!1;const b=R=>{js(R,()=>e.signal,()=>g=!0)},O=_s(e.options,e.fetchOptions),M=async(R,S,D)=>{if(g)return Promise.reject();if(S==null&&R.pages.length)return Promise.resolve(R);const B=(()=>{const ee={client:e.client,queryKey:e.queryKey,pageParam:S,direction:D?"backward":"forward",meta:e.options.meta};return b(ee),ee})(),T=await O(B),{maxPages:x}=e.options,q=D?pr:Is;return{pages:q(R.pages,T,x),pageParams:q(R.pageParams,S,x)}};if(n&&a.length){const R=n==="backward",S=R?$s:Ht,D={pages:a,pageParams:o},j=S(r,D);c=await M(D,j,R)}else{const R=t??a.length;do{const S=y===0?o[0]??r.initialPageParam:Ht(r,c);if(y>0&&S==null)break;c=await M(c,S),y++}while(y<R)}return c};e.options.persister?e.fetchFn=()=>{var g,b;return(b=(g=e.options).persister)==null?void 0:b.call(g,m,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s)}:e.fetchFn=m}}}function Ht(t,{pages:e,pageParams:s}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,s[r],s):void 0}function $s(t,{pages:e,pageParams:s}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,s[0],s):void 0}function Fr(t,e){return e?Ht(t,e)!=null:!1}function Mr(t,e){return!e||!t.getPreviousPageParam?!1:$s(t,e)!=null}var Gs=class extends gt{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t){super.setOptions({...t,behavior:Et()})}getOptimisticResult(t){return t.behavior=Et(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,e){var P,g;const{state:s}=t,r=super.createResult(t,e),{isFetching:n,isRefetching:a,isError:o,isRefetchError:c}=r,y=(g=(P=s.fetchMeta)==null?void 0:P.fetchMore)==null?void 0:g.direction,m=o&&y==="forward",v=n&&y==="forward",l=o&&y==="backward",d=n&&y==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Fr(e,s.data),hasPreviousPage:Mr(e,s.data),isFetchNextPageError:m,isFetchingNextPage:v,isFetchPreviousPageError:l,isFetchingPreviousPage:d,isRefetchError:c&&!m&&!l,isRefetching:a&&!v&&!d}}},ft,se,H,Ie,re,ye,Ts,Ar=(Ts=class extends Ks{constructor(e){super();f(this,re);f(this,ft);f(this,se);f(this,H);f(this,Ie);h(this,ft,e.client),this.mutationId=e.mutationId,h(this,H,e.mutationCache),h(this,se,[]),this.state=e.state||Bs(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){i(this,se).includes(e)||(i(this,se).push(e),this.clearGcTimeout(),i(this,H).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){h(this,se,i(this,se).filter(s=>s!==e)),this.scheduleGc(),i(this,H).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){i(this,se).length||(this.state.status==="pending"?this.scheduleGc():i(this,H).remove(this))}continue(){var e;return((e=i(this,Ie))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var o,c,y,m,v,l,d,p,P,g,b,O,M,R,S,D,j,B;const s=()=>{w(this,re,ye).call(this,{type:"continue"})},r={client:i(this,ft),meta:this.options.meta,mutationKey:this.options.mutationKey};h(this,Ie,Ns({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(T,x)=>{w(this,re,ye).call(this,{type:"failed",failureCount:T,error:x})},onPause:()=>{w(this,re,ye).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>i(this,H).canRun(this)}));const n=this.state.status==="pending",a=!i(this,Ie).canStart();try{if(n)s();else{w(this,re,ye).call(this,{type:"pending",variables:e,isPaused:a}),i(this,H).config.onMutate&&await i(this,H).config.onMutate(e,this,r);const x=await((c=(o=this.options).onMutate)==null?void 0:c.call(o,e,r));x!==this.state.context&&w(this,re,ye).call(this,{type:"pending",context:x,variables:e,isPaused:a})}const T=await i(this,Ie).start();return await((m=(y=i(this,H).config).onSuccess)==null?void 0:m.call(y,T,e,this.state.context,this,r)),await((l=(v=this.options).onSuccess)==null?void 0:l.call(v,T,e,this.state.context,r)),await((p=(d=i(this,H).config).onSettled)==null?void 0:p.call(d,T,null,this.state.variables,this.state.context,this,r)),await((g=(P=this.options).onSettled)==null?void 0:g.call(P,T,null,e,this.state.context,r)),w(this,re,ye).call(this,{type:"success",data:T}),T}catch(T){try{await((O=(b=i(this,H).config).onError)==null?void 0:O.call(b,T,e,this.state.context,this,r))}catch(x){Promise.reject(x)}try{await((R=(M=this.options).onError)==null?void 0:R.call(M,T,e,this.state.context,r))}catch(x){Promise.reject(x)}try{await((D=(S=i(this,H).config).onSettled)==null?void 0:D.call(S,void 0,T,this.state.variables,this.state.context,this,r))}catch(x){Promise.reject(x)}try{await((B=(j=this.options).onSettled)==null?void 0:B.call(j,void 0,T,e,this.state.context,r))}catch(x){Promise.reject(x)}throw w(this,re,ye).call(this,{type:"error",error:T}),T}finally{i(this,H).runNext(this)}}},ft=new WeakMap,se=new WeakMap,H=new WeakMap,Ie=new WeakMap,re=new WeakSet,ye=function(e){const s=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=s(this.state),A.batch(()=>{i(this,se).forEach(r=>{r.onMutationUpdate(e)}),i(this,H).notify({mutation:this,type:"updated",action:e})})},Ts);function Bs(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var oe,Z,dt,Fs,xr=(Fs=class extends Ue{constructor(e={}){super();f(this,oe);f(this,Z);f(this,dt);this.config=e,h(this,oe,new Set),h(this,Z,new Map),h(this,dt,0)}build(e,s,r){const n=new Ar({client:e,mutationCache:this,mutationId:++St(this,dt)._,options:e.defaultMutationOptions(s),state:r});return this.add(n),n}add(e){i(this,oe).add(e);const s=wt(e);if(typeof s=="string"){const r=i(this,Z).get(s);r?r.push(e):i(this,Z).set(s,[e])}this.notify({type:"added",mutation:e})}remove(e){if(i(this,oe).delete(e)){const s=wt(e);if(typeof s=="string"){const r=i(this,Z).get(s);if(r)if(r.length>1){const n=r.indexOf(e);n!==-1&&r.splice(n,1)}else r[0]===e&&i(this,Z).delete(s)}}this.notify({type:"removed",mutation:e})}canRun(e){const s=wt(e);if(typeof s=="string"){const r=i(this,Z).get(s),n=r==null?void 0:r.find(a=>a.state.status==="pending");return!n||n===e}else return!0}runNext(e){var r;const s=wt(e);if(typeof s=="string"){const n=(r=i(this,Z).get(s))==null?void 0:r.find(a=>a!==e&&a.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}else return Promise.resolve()}clear(){A.batch(()=>{i(this,oe).forEach(e=>{this.notify({type:"removed",mutation:e})}),i(this,oe).clear(),i(this,Z).clear()})}getAll(){return Array.from(i(this,oe))}find(e){const s={exact:!0,...e};return this.getAll().find(r=>hs(s,r))}findAll(e={}){return this.getAll().filter(s=>hs(e,s))}notify(e){A.batch(()=>{this.listeners.forEach(s=>{s(e)})})}resumePausedMutations(){const e=this.getAll().filter(s=>s.state.isPaused);return A.batch(()=>Promise.all(e.map(s=>s.continue().catch(_))))}},oe=new WeakMap,Z=new WeakMap,dt=new WeakMap,Fs);function wt(t){var e;return(e=t.options.scope)==null?void 0:e.id}var ue,be,G,ce,he,Ot,zt,Ms,Dr=(Ms=class extends Ue{constructor(e,s){super();f(this,he);f(this,ue);f(this,be);f(this,G);f(this,ce);h(this,ue,e),this.setOptions(s),this.bindMethods(),w(this,he,Ot).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var r;const s=this.options;this.options=i(this,ue).defaultMutationOptions(e),ot(this.options,s)||i(this,ue).getMutationCache().notify({type:"observerOptionsUpdated",mutation:i(this,G),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&je(s.mutationKey)!==je(this.options.mutationKey)?this.reset():((r=i(this,G))==null?void 0:r.state.status)==="pending"&&i(this,G).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(e=i(this,G))==null||e.removeObserver(this)}onMutationUpdate(e){w(this,he,Ot).call(this),w(this,he,zt).call(this,e)}getCurrentResult(){return i(this,be)}reset(){var e;(e=i(this,G))==null||e.removeObserver(this),h(this,G,void 0),w(this,he,Ot).call(this),w(this,he,zt).call(this)}mutate(e,s){var r;return h(this,ce,s),(r=i(this,G))==null||r.removeObserver(this),h(this,G,i(this,ue).getMutationCache().build(i(this,ue),this.options)),i(this,G).addObserver(this),i(this,G).execute(e)}},ue=new WeakMap,be=new WeakMap,G=new WeakMap,ce=new WeakMap,he=new WeakSet,Ot=function(){var s;const e=((s=i(this,G))==null?void 0:s.state)??Bs();h(this,be,{...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset})},zt=function(e){A.batch(()=>{var s,r,n,a,o,c,y,m;if(i(this,ce)&&this.hasListeners()){const v=i(this,be).variables,l=i(this,be).context,d={client:i(this,ue),meta:this.options.meta,mutationKey:this.options.mutationKey};if((e==null?void 0:e.type)==="success"){try{(r=(s=i(this,ce)).onSuccess)==null||r.call(s,e.data,v,l,d)}catch(p){Promise.reject(p)}try{(a=(n=i(this,ce)).onSettled)==null||a.call(n,e.data,null,v,l,d)}catch(p){Promise.reject(p)}}else if((e==null?void 0:e.type)==="error"){try{(c=(o=i(this,ce)).onError)==null||c.call(o,e.error,v,l,d)}catch(p){Promise.reject(p)}try{(m=(y=i(this,ce)).onSettled)==null||m.call(y,void 0,e.error,v,l,d)}catch(p){Promise.reject(p)}}}this.listeners.forEach(v=>{v(i(this,be))})})},Ms);function gs(t,e){const s=new Set(e);return t.filter(r=>!s.has(r))}function kr(t,e,s){const r=t.slice(0);return r[e]=s,r}var _e,Y,Je,Ve,V,Se,yt,pt,mt,vt,L,$t,Gt,Bt,Yt,Wt,As,Ir=(As=class extends Ue{constructor(e,s,r){super();f(this,L);f(this,_e);f(this,Y);f(this,Je);f(this,Ve);f(this,V);f(this,Se);f(this,yt);f(this,pt);f(this,mt);f(this,vt,[]);h(this,_e,e),h(this,Ve,r),h(this,Je,[]),h(this,V,[]),h(this,Y,[]),this.setQueries(s)}onSubscribe(){this.listeners.size===1&&i(this,V).forEach(e=>{e.subscribe(s=>{w(this,L,Yt).call(this,e,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,i(this,V).forEach(e=>{e.destroy()})}setQueries(e,s){h(this,Je,e),h(this,Ve,s);{const r=e.map(n=>i(this,_e).defaultQueryOptions(n).queryHash);new Set(r).size!==r.length&&console.warn("[QueriesObserver]: Duplicate Queries found. This might result in unexpected behavior.")}A.batch(()=>{const r=i(this,V),n=w(this,L,Bt).call(this,i(this,Je));n.forEach(l=>l.observer.setOptions(l.defaultedQueryOptions));const a=n.map(l=>l.observer),o=a.map(l=>l.getCurrentResult()),c=r.length!==a.length,y=a.some((l,d)=>l!==r[d]),m=c||y,v=m?!0:o.some((l,d)=>{const p=i(this,Y)[d];return!p||!ot(l,p)});!m&&!v||(m&&(h(this,vt,n),h(this,V,a)),h(this,Y,o),this.hasListeners()&&(m&&(gs(r,a).forEach(l=>{l.destroy()}),gs(a,r).forEach(l=>{l.subscribe(d=>{w(this,L,Yt).call(this,l,d)})})),w(this,L,Wt).call(this)))})}getCurrentResult(){return i(this,Y)}getQueries(){return i(this,V).map(e=>e.getCurrentQuery())}getObservers(){return i(this,V)}getOptimisticResult(e,s){const r=w(this,L,Bt).call(this,e),n=r.map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions)),a=r.map(o=>o.defaultedQueryOptions.queryHash);return[n,o=>w(this,L,Gt).call(this,o??n,s,a),()=>w(this,L,$t).call(this,n,r)]}},_e=new WeakMap,Y=new WeakMap,Je=new WeakMap,Ve=new WeakMap,V=new WeakMap,Se=new WeakMap,yt=new WeakMap,pt=new WeakMap,mt=new WeakMap,vt=new WeakMap,L=new WeakSet,$t=function(e,s){return s.map((r,n)=>{const a=e[n];return r.defaultedQueryOptions.notifyOnChangeProps?a:r.observer.trackResult(a,o=>{s.forEach(c=>{c.observer.trackProp(o)})})})},Gt=function(e,s,r){if(s){const n=i(this,mt),a=r!==void 0&&n!==void 0&&(n.length!==r.length||r.some((o,c)=>o!==n[c]));return(!i(this,Se)||i(this,Y)!==i(this,pt)||a||s!==i(this,yt))&&(h(this,yt,s),h(this,pt,i(this,Y)),r!==void 0&&h(this,mt,r),h(this,Se,at(i(this,Se),s(e)))),i(this,Se)}return e},Bt=function(e){const s=new Map;i(this,V).forEach(n=>{const a=n.options.queryHash;if(!a)return;const o=s.get(a);o?o.push(n):s.set(a,[n])});const r=[];return e.forEach(n=>{var y;const a=i(this,_e).defaultQueryOptions(n),c=((y=s.get(a.queryHash))==null?void 0:y.shift())??new gt(i(this,_e),a);r.push({defaultedQueryOptions:a,observer:c})}),r},Yt=function(e,s){const r=i(this,V).indexOf(e);r!==-1&&(h(this,Y,kr(i(this,Y),r,s)),w(this,L,Wt).call(this))},Wt=function(){var e;if(this.hasListeners()){const s=i(this,Se),r=w(this,L,$t).call(this,i(this,Y),i(this,vt)),n=w(this,L,Gt).call(this,r,(e=i(this,Ve))==null?void 0:e.combine);s!==n&&A.batch(()=>{this.listeners.forEach(a=>{a(i(this,Y))})})}},As),ie,xs,_r=(xs=class extends Ue{constructor(e={}){super();f(this,ie);this.config=e,h(this,ie,new Map)}build(e,s,r){const n=s.queryKey,a=s.queryHash??Zt(n,s);let o=this.get(a);return o||(o=new Cr({client:e,queryKey:n,queryHash:a,options:e.defaultQueryOptions(s),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(o)),o}add(e){i(this,ie).has(e.queryHash)||(i(this,ie).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const s=i(this,ie).get(e.queryHash);s&&(e.destroy(),s===e&&i(this,ie).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){A.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return i(this,ie).get(e)}getAll(){return[...i(this,ie).values()]}find(e){const s={exact:!0,...e};return this.getAll().find(r=>cs(s,r))}findAll(e={}){const s=this.getAll();return Object.keys(e).length>0?s.filter(r=>cs(e,r)):s}notify(e){A.batch(()=>{this.listeners.forEach(s=>{s(e)})})}onFocus(){A.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){A.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ie=new WeakMap,xs),I,we,Oe,Xe,Ze,Re,et,tt,Ds,Yr=(Ds=class{constructor(t={}){f(this,I);f(this,we);f(this,Oe);f(this,Xe);f(this,Ze);f(this,Re);f(this,et);f(this,tt);h(this,I,t.queryCache||new _r),h(this,we,t.mutationCache||new xr),h(this,Oe,t.defaultOptions||{}),h(this,Xe,new Map),h(this,Ze,new Map),h(this,Re,0)}mount(){St(this,Re)._++,i(this,Re)===1&&(h(this,et,Xt.subscribe(async t=>{t&&(await this.resumePausedMutations(),i(this,I).onFocus())})),h(this,tt,Rt.subscribe(async t=>{t&&(await this.resumePausedMutations(),i(this,I).onOnline())})))}unmount(){var t,e;St(this,Re)._--,i(this,Re)===0&&((t=i(this,et))==null||t.call(this),h(this,et,void 0),(e=i(this,tt))==null||e.call(this),h(this,tt,void 0))}isFetching(t){return i(this,I).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return i(this,we).findAll({...t,status:"pending"}).length}getQueryData(t){var s;const e=this.defaultQueryOptions({queryKey:t});return(s=i(this,I).get(e.queryHash))==null?void 0:s.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),s=i(this,I).build(this,e),r=s.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(Pe(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return i(this,I).findAll(t).map(({queryKey:e,state:s})=>{const r=s.data;return[e,r]})}setQueryData(t,e,s){const r=this.defaultQueryOptions({queryKey:t}),n=i(this,I).get(r.queryHash),a=n==null?void 0:n.state.data,o=fr(e,a);if(o!==void 0)return i(this,I).build(this,r).setData(o,{...s,manual:!0})}setQueriesData(t,e,s){return A.batch(()=>i(this,I).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,s)]))}getQueryState(t){var s;const e=this.defaultQueryOptions({queryKey:t});return(s=i(this,I).get(e.queryHash))==null?void 0:s.state}removeQueries(t){const e=i(this,I);A.batch(()=>{e.findAll(t).forEach(s=>{e.remove(s)})})}resetQueries(t,e){const s=i(this,I);return A.batch(()=>(s.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const s={revert:!0,...e},r=A.batch(()=>i(this,I).findAll(t).map(n=>n.cancel(s)));return Promise.all(r).then(_).catch(_)}invalidateQueries(t,e={}){return A.batch(()=>(i(this,I).findAll(t).forEach(s=>{s.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const s={...e,cancelRefetch:e.cancelRefetch??!0},r=A.batch(()=>i(this,I).findAll(t).filter(n=>!n.isDisabled()&&!n.isStatic()).map(n=>{let a=n.fetch(void 0,s);return s.throwOnError||(a=a.catch(_)),n.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(_)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const s=i(this,I).build(this,e);return s.isStaleByTime(Pe(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(_).catch(_)}fetchInfiniteQuery(t){return t.behavior=Et(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(_).catch(_)}ensureInfiniteQueryData(t){return t.behavior=Et(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Rt.isOnline()?i(this,we).resumePausedMutations():Promise.resolve()}getQueryCache(){return i(this,I)}getMutationCache(){return i(this,we)}getDefaultOptions(){return i(this,Oe)}setDefaultOptions(t){h(this,Oe,t)}setQueryDefaults(t,e){i(this,Xe).set(je(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...i(this,Xe).values()],s={};return e.forEach(r=>{nt(t,r.queryKey)&&Object.assign(s,r.defaultOptions)}),s}setMutationDefaults(t,e){i(this,Ze).set(je(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...i(this,Ze).values()],s={};return e.forEach(r=>{nt(t,r.mutationKey)&&Object.assign(s,r.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const e={...i(this,Oe).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Zt(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===qe&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...i(this,Oe).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){i(this,I).clear(),i(this,we).clear()}},I=new WeakMap,we=new WeakMap,Oe=new WeakMap,Xe=new WeakMap,Ze=new WeakMap,Re=new WeakMap,et=new WeakMap,tt=new WeakMap,Ds);function Wr({streamFn:t,refetchMode:e="reset",reducer:s=(n,a)=>Is(n,a),initialValue:r=[]}){return async n=>{const a=n.client.getQueryCache().find({queryKey:n.queryKey,exact:!0}),o=!!a&&a.isFetched();o&&e==="reset"&&a.setState({...a.resetState,fetchStatus:"fetching"});let c=r,y=!1;const m=js({client:n.client,meta:n.meta,queryKey:n.queryKey,pageParam:n.pageParam,direction:n.direction},()=>n.signal,()=>y=!0),v=await t(m),l=o&&e==="replace";for await(const d of v){if(y)break;l?c=s(c,d):n.client.setQueryData(n.queryKey,p=>s(p===void 0?r:p,d))}return l&&!y&&n.client.setQueryData(n.queryKey,c),n.client.getQueryData(n.queryKey)??r}}var Jr=Symbol("dataTagSymbol"),Vr=Symbol("dataTagErrorSymbol"),Xr=Symbol("unsetMarker"),Mt={exports:{}},rt={},bs;function jr(){if(bs)return rt;bs=1;/**
2
+ * @license React
3
+ * react-jsx-runtime.development.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */return(function(){function t(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===ee?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case b:return"Fragment";case M:return"Profiler";case O:return"StrictMode";case j:return"Suspense";case B:return"SuspenseList";case q:return"Activity"}if(typeof u=="object")switch(typeof u.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),u.$$typeof){case g:return"Portal";case S:return u.displayName||"Context";case R:return(u._context.displayName||"Context")+".Consumer";case D:var E=u.render;return u=u.displayName,u||(u=E.displayName||E.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case T:return E=u.displayName||null,E!==null?E:t(u.type)||"Memo";case x:E=u._payload,u=u._init;try{return t(u(E))}catch{}}return null}function e(u){return""+u}function s(u){try{e(u);var E=!1}catch{E=!0}if(E){E=console;var k=E.error,U=typeof Symbol=="function"&&Symbol.toStringTag&&u[Symbol.toStringTag]||u.constructor.name||"Object";return k.call(E,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",U),e(u)}}function r(u){if(u===b)return"<>";if(typeof u=="object"&&u!==null&&u.$$typeof===x)return"<...>";try{var E=t(u);return E?"<"+E+">":"<...>"}catch{return"<...>"}}function n(){var u=fe.A;return u===null?null:u.getOwner()}function a(){return Error("react-stack-top-frame")}function o(u){if(st.call(u,"key")){var E=Object.getOwnPropertyDescriptor(u,"key").get;if(E&&E.isReactWarning)return!1}return u.key!==void 0}function c(u,E){function k(){rs||(rs=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",E))}k.isReactWarning=!0,Object.defineProperty(u,"key",{get:k,configurable:!0})}function y(){var u=t(this.type);return is[u]||(is[u]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),u=this.props.ref,u!==void 0?u:null}function m(u,E,k,U,bt,Qt){var N=k.ref;return u={$$typeof:P,type:u,key:E,props:k,_owner:U},(N!==void 0?N:null)!==null?Object.defineProperty(u,"ref",{enumerable:!1,get:y}):Object.defineProperty(u,"ref",{enumerable:!1,value:null}),u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(u,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(u,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:bt}),Object.defineProperty(u,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Qt}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u}function v(u,E,k,U,bt,Qt){var N=E.children;if(N!==void 0)if(U)if(Ne(N)){for(U=0;U<N.length;U++)l(N[U]);Object.freeze&&Object.freeze(N)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l(N);if(st.call(E,"key")){N=t(u);var Ke=Object.keys(E).filter(function(nr){return nr!=="key"});U=0<Ke.length?"{key: someKey, "+Ke.join(": ..., ")+": ...}":"{key: someKey}",os[N+U]||(Ke=0<Ke.length?"{"+Ke.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
10
+ let props = %s;
11
+ <%s {...props} />
12
+ React keys must be passed directly to JSX without using spread:
13
+ let props = %s;
14
+ <%s key={someKey} {...props} />`,U,N,Ke,N),os[N+U]=!0)}if(N=null,k!==void 0&&(s(k),N=""+k),o(E)&&(s(E.key),N=""+E.key),"key"in E){k={};for(var Tt in E)Tt!=="key"&&(k[Tt]=E[Tt])}else k=E;return N&&c(k,typeof u=="function"?u.displayName||u.name||"Unknown":u),m(u,N,k,n(),bt,Qt)}function l(u){d(u)?u._store&&(u._store.validated=1):typeof u=="object"&&u!==null&&u.$$typeof===x&&(u._payload.status==="fulfilled"?d(u._payload.value)&&u._payload.value._store&&(u._payload.value._store.validated=1):u._store&&(u._store.validated=1))}function d(u){return typeof u=="object"&&u!==null&&u.$$typeof===P}var p=ar(),P=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),S=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),ee=Symbol.for("react.client.reference"),fe=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,st=Object.prototype.hasOwnProperty,Ne=Array.isArray,de=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(u){return u()}};var rs,is={},ns=p.react_stack_bottom_frame.bind(p,a)(),as=de(r(a)),os={};rt.Fragment=b,rt.jsx=function(u,E,k){var U=1e4>fe.recentlyCreatedOwnerStacks++;return v(u,E,k,!1,U?Error("react-stack-top-frame"):ns,U?de(r(u)):as)},rt.jsxs=function(u,E,k){var U=1e4>fe.recentlyCreatedOwnerStacks++;return v(u,E,k,!0,U?Error("react-stack-top-frame"):ns,U?de(r(u)):as)}})(),rt}var Ss;function qr(){return Ss||(Ss=1,Mt.exports=jr()),Mt.exports}var Ys=qr(),Ws=Q.createContext(void 0),le=t=>{const e=Q.useContext(Ws);if(t)return t;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},Zr=({client:t,children:e})=>(Q.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),Ys.jsx(Ws.Provider,{value:t,children:e})),Js=Q.createContext(!1),Vs=()=>Q.useContext(Js),ei=Js.Provider;function Xs(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Zs=Q.createContext(Xs()),er=()=>Q.useContext(Zs),ti=({children:t})=>{const[e]=Q.useState(()=>Xs());return Ys.jsx(Zs.Provider,{value:e,children:typeof t=="function"?t(e):t})},tr=(t,e,s)=>{const r=s!=null&&s.state.error&&typeof t.throwOnError=="function"?es(t.throwOnError,[s.state.error,s]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||r)&&(e.isReset()||(t.retryOnMount=!1))},sr=t=>{Q.useEffect(()=>{t.clearReset()},[t])},rr=({result:t,errorResetBoundary:e,throwOnError:s,query:r,suspense:n})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(n&&t.data===void 0||es(s,[t.error,r])),ss=(t,e)=>e.state.data===void 0,ir=t=>{if(t.suspense){const s=n=>n==="static"?n:Math.max(n??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...n)=>s(r(...n)):s(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Ur=(t,e)=>t.isLoading&&t.isFetching&&!e,Jt=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,Vt=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function Nr({queries:t,...e},s){const r=le(s),n=Vs(),a=er(),o=Q.useMemo(()=>t.map(g=>{const b=r.defaultQueryOptions(g);return b._optimisticResults=n?"isRestoring":"optimistic",b}),[t,r,n]);o.forEach(g=>{ir(g);const b=r.getQueryCache().get(g.queryHash);tr(g,a,b)}),sr(a);const[c]=Q.useState(()=>new Ir(r,o,e)),[y,m,v]=c.getOptimisticResult(o,e.combine),l=!n&&e.subscribed!==!1;Q.useSyncExternalStore(Q.useCallback(g=>l?c.subscribe(A.batchCalls(g)):_,[c,l]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),Q.useEffect(()=>{c.setQueries(o,e)},[o,e,c]);const p=y.some((g,b)=>Jt(o[b],g))?y.flatMap((g,b)=>{const O=o[b];if(O&&Jt(O,g)){const M=new gt(r,O);return Vt(O,M,a)}return[]}):[];if(p.length>0)throw Promise.all(p);const P=y.find((g,b)=>{const O=o[b];return O&&rr({result:g,errorResetBoundary:a,throwOnError:O.throwOnError,query:r.getQueryCache().get(O.queryHash),suspense:O.suspense})});if(P!=null&&P.error)throw P.error;return m(v())}function Ct(t,e,s){var d,p,P,g;if(typeof t!="object"||Array.isArray(t))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Vs(),n=er(),a=le(s),o=a.defaultQueryOptions(t);(p=(d=a.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||p.call(d,o);const c=a.getQueryCache().get(o.queryHash);o.queryFn||console.error(`[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),o._optimisticResults=r?"isRestoring":"optimistic",ir(o),tr(o,n,c),sr(n);const y=!a.getQueryCache().get(o.queryHash),[m]=Q.useState(()=>new e(a,o)),v=m.getOptimisticResult(o),l=!r&&t.subscribed!==!1;if(Q.useSyncExternalStore(Q.useCallback(b=>{const O=l?m.subscribe(A.batchCalls(b)):_;return m.updateResult(),O},[m,l]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),Q.useEffect(()=>{m.setOptions(o)},[o,m]),Jt(o,v))throw Vt(o,m,n);if(rr({result:v,errorResetBoundary:n,throwOnError:o.throwOnError,query:c,suspense:o.suspense}))throw v.error;if((g=(P=a.getDefaultOptions().queries)==null?void 0:P._experimental_afterQuery)==null||g.call(P,o,v),o.experimental_prefetchInRender&&!ut.isServer()&&Ur(v,r)){const b=y?Vt(o,m,n):c==null?void 0:c.promise;b==null||b.catch(_).finally(()=>{m.updateResult()})}return o.notifyOnChangeProps?v:m.trackResult(v)}function si(t,e){return Ct(t,gt,e)}function ri(t,e){return t.queryFn===qe&&console.error("skipToken is not allowed for useSuspenseQuery"),Ct({...t,enabled:!0,suspense:!0,throwOnError:ss,placeholderData:void 0},gt,e)}function ii(t,e){return t.queryFn===qe&&console.error("skipToken is not allowed for useSuspenseInfiniteQuery"),Ct({...t,enabled:!0,suspense:!0,throwOnError:ss},Gs,e)}function ni(t,e){return Nr({...t,queries:t.queries.map(s=>(s.queryFn===qe&&console.error("skipToken is not allowed for useSuspenseQueries"),{...s,suspense:!0,throwOnError:ss,enabled:!0,placeholderData:void 0}))},e)}function ai(t,e){const s=le(e);s.getQueryState(t.queryKey)||s.prefetchQuery(t)}function oi(t,e){const s=le(e);s.getQueryState(t.queryKey)||s.prefetchInfiniteQuery(t)}function ui(t){return t}function ci(t){return t}var hi=({children:t,options:e={},state:s,queryClient:r})=>{const n=le(r),a=Q.useRef(e);Q.useEffect(()=>{a.current=e});const o=Q.useMemo(()=>{if(s){if(typeof s!="object")return;const c=n.getQueryCache(),y=s.queries||[],m=[],v=[];for(const l of y){const d=c.get(l.queryHash);d?(l.state.dataUpdatedAt>d.state.dataUpdatedAt||l.promise&&d.state.status!=="pending"&&d.state.fetchStatus!=="fetching"&&l.dehydratedAt!==void 0&&l.dehydratedAt>d.state.dataUpdatedAt)&&v.push(l):m.push(l)}if(m.length>0&&ds(n,{queries:m},a.current),v.length>0)return v}},[n,s]);return Q.useEffect(()=>{o&&ds(n,{queries:o},a.current)},[n,o]),t};function li(t,e){const s=le(e),r=s.getQueryCache();return Q.useSyncExternalStore(Q.useCallback(n=>r.subscribe(A.batchCalls(n)),[r]),()=>s.isFetching(t),()=>s.isFetching(t))}function fi(t,e){const s=le(e);return Kr({filters:{...t,status:"pending"}},s).length}function ws(t,e){return t.findAll(e.filters).map(s=>e.select?e.select(s):s.state)}function Kr(t={},e){const s=le(e).getMutationCache(),r=Q.useRef(t),n=Q.useRef(null);return n.current===null&&(n.current=ws(s,t)),Q.useEffect(()=>{r.current=t}),Q.useSyncExternalStore(Q.useCallback(a=>s.subscribe(()=>{const o=at(n.current,ws(s,r.current));n.current!==o&&(n.current=o,A.schedule(a))}),[s]),()=>n.current,()=>n.current)}function di(t,e){const s=le(e),[r]=Q.useState(()=>new Dr(s,t));Q.useEffect(()=>{r.setOptions(t)},[r,t]);const n=Q.useSyncExternalStore(Q.useCallback(o=>r.subscribe(A.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=Q.useCallback((o,c)=>{r.mutate(o,c).catch(_)},[r]);if(n.error&&es(r.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:a,mutateAsync:n.mutate}}function yi(t){return t}function pi(t,e){return Ct(t,Gs,e)}export{Pt as CancelledError,hi as HydrationBoundary,Gs as InfiniteQueryObserver,ei as IsRestoringProvider,Ar as Mutation,xr as MutationCache,Dr as MutationObserver,Ir as QueriesObserver,Cr as Query,_r as QueryCache,Yr as QueryClient,Ws as QueryClientContext,Zr as QueryClientProvider,ti as QueryErrorResetBoundary,gt as QueryObserver,Vr as dataTagErrorSymbol,Jr as dataTagSymbol,Or as defaultScheduler,br as defaultShouldDehydrateMutation,Sr as defaultShouldDehydrateQuery,Gr as dehydrate,ut as environmentManager,Wr as experimental_streamedQuery,Xt as focusManager,je as hashKey,ds as hydrate,ci as infiniteQueryOptions,Br as isCancelledError,lr as isServer,$r as keepPreviousData,hs as matchMutation,cs as matchQuery,yi as mutationOptions,_ as noop,A as notifyManager,Rt as onlineManager,nt as partialMatchKey,ui as queryOptions,at as replaceEqualDeep,es as shouldThrowError,qe as skipToken,Ee as timeoutManager,Xr as unsetMarker,pi as useInfiniteQuery,li as useIsFetching,fi as useIsMutating,Vs as useIsRestoring,di as useMutation,Kr as useMutationState,oi as usePrefetchInfiniteQuery,ai as usePrefetchQuery,Nr as useQueries,si as useQuery,le as useQueryClient,er as useQueryErrorResetBoundary,ii as useSuspenseInfiniteQuery,ni as useSuspenseQueries,ri as useSuspenseQuery};
assets/jsx-dev-runtime-Czb3f8pQ.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import{r as H}from"./index-BlGQAcOD.js";var b={exports:{}},c={},w;function Z(){if(w)return c;w=1;/**
2
+ * @license React
3
+ * react-jsx-dev-runtime.development.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */return(function(){function s(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===G?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case i:return"Fragment";case F:return"Profiler";case $:return"StrictMode";case M:return"Suspense";case z:return"SuspenseList";case q:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case I:return"Portal";case L:return e.displayName||"Context";case W:return(e._context.displayName||"Context")+".Consumer";case U:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return r=e.displayName||null,r!==null?r:s(e.type)||"Memo";case f:r=e._payload,e=e._init;try{return s(e(r))}catch{}}return null}function _(e){return""+e}function E(e){try{_(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),_(e)}}function v(e){if(e===i)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===f)return"<...>";try{var r=s(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function j(){var e=O.A;return e===null?null:e.getOwner()}function R(){return Error("react-stack-top-frame")}function x(e){if(k.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function N(e,r){function t(){A||(A=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function C(){var e=s(this.type);return S[e]||(S[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,o,m){var a=t.ref;return e={$$typeof:g,type:e,key:r,props:t,_owner:n},(a!==void 0?a:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:C}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:m}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function Y(e,r,t,n,o,m){var a=r.children;if(a!==void 0)if(n)if(J(a)){for(n=0;n<a.length;n++)T(a[n]);Object.freeze&&Object.freeze(a)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(a);if(k.call(r,"key")){a=s(e);var l=Object.keys(r).filter(function(B){return B!=="key"});n=0<l.length?"{key: someKey, "+l.join(": ..., ")+": ...}":"{key: someKey}",P[a+n]||(l=0<l.length?"{"+l.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
10
+ let props = %s;
11
+ <%s {...props} />
12
+ React keys must be passed directly to JSX without using spread:
13
+ let props = %s;
14
+ <%s key={someKey} {...props} />`,n,a,l,a),P[a+n]=!0)}if(a=null,t!==void 0&&(E(t),a=""+t),x(r)&&(E(r.key),a=""+r.key),"key"in r){t={};for(var d in r)d!=="key"&&(t[d]=r[d])}else t=r;return a&&N(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,a,t,j(),o,m)}function T(e){p(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===f&&(e._payload.status==="fulfilled"?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e=="object"&&e!==null&&e.$$typeof===g}var u=H(),g=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),W=Symbol.for("react.consumer"),L=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),G=Symbol.for("react.client.reference"),O=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=Object.prototype.hasOwnProperty,J=Array.isArray,y=console.createTask?console.createTask:function(){return null};u={react_stack_bottom_frame:function(e){return e()}};var A,S={},X=u.react_stack_bottom_frame.bind(u,R)(),K=y(v(R)),P={};c.Fragment=i,c.jsxDEV=function(e,r,t,n){var o=1e4>O.recentlyCreatedOwnerStacks++;return Y(e,r,t,n,o?Error("react-stack-top-frame"):X,o?y(v(e)):K)}})(),c}var h;function Q(){return h||(h=1,b.exports=Z()),b.exports}var re=Q();export{re as j};
index.html ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <script type="module">
5
+ (function() {
6
+ const errors = [];
7
+ let timer = null;
8
+
9
+ function push(err) {
10
+ errors.push(err);
11
+ if (!timer) {
12
+ timer = setTimeout(flush, 2000);
13
+ }
14
+ }
15
+
16
+ function flush() {
17
+ timer = null;
18
+ if (!errors.length) return;
19
+ const batch = errors.splice(0);
20
+ fetch("/_vulcan/errors", {
21
+ method: "POST",
22
+ headers: { "Content-Type": "application/json" },
23
+ body: JSON.stringify({ errors: batch }),
24
+ }).catch(() => {});
25
+ }
26
+
27
+ window.addEventListener("error", (ev) => {
28
+ push({
29
+ type: "uncaught_error",
30
+ message: ev.message || String(ev.error),
31
+ file: ev.filename || "",
32
+ line: ev.lineno || 0,
33
+ column: ev.colno || 0,
34
+ stack: ev.error?.stack || "",
35
+ timestamp: Math.floor(Date.now() / 1000),
36
+ });
37
+ });
38
+
39
+ window.addEventListener("unhandledrejection", (ev) => {
40
+ const reason = ev.reason;
41
+ push({
42
+ type: "unhandled_rejection",
43
+ message: reason?.message || String(reason),
44
+ file: "",
45
+ line: 0,
46
+ column: 0,
47
+ stack: reason?.stack || "",
48
+ timestamp: Math.floor(Date.now() / 1000),
49
+ });
50
+ });
51
+ })();
52
+ </script>
53
+
54
+ <meta charset="UTF-8" />
55
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
56
+ <link rel="icon" href="/favicon.ico" />
57
+ <title>App</title>
58
+ <script>
59
+ document.documentElement.classList.add('dark');
60
+ </script>
61
+ <script type="module" crossorigin src="./assets/index-BzsFXDqf.js"></script>
62
+ <link rel="stylesheet" crossorigin href="./assets/index-advI9kSY.css">
63
+ </head>
64
+ <body>
65
+ <div id="root"><!--ssr-outlet--></div>
66
+ <script>
67
+ // Fallback: if React fails to render (e.g. Vite dep stubs during cold
68
+ // start), auto-reload until deps are ready. This fires OUTSIDE React
69
+ // so it works even when React itself is null/undefined.
70
+ (function(){
71
+ var K='__boot_reload', W=30000, M=8;
72
+ function st(){try{return JSON.parse(sessionStorage.getItem(K))||{c:0,t:0}}catch(e){return{c:0,t:0}}}
73
+ setTimeout(function(){
74
+ if(window.__reactOk)return;
75
+ var s=st(),c=(Date.now()-s.t>W)?0:s.c;
76
+ if(c<M){sessionStorage.setItem(K,JSON.stringify({c:c+1,t:Date.now()}));location.reload()}
77
+ },3000);
78
+ })();
79
+ </script>
80
+ <!-- Made by Surf badge -->
81
+ <style>
82
+ #surf-badge{position:fixed;bottom:16px;right:16px;z-index:2147483647;display:inline-flex;align-items:center;gap:4px;padding:4px 12px;border-radius:20px;font-family:"Lato",system-ui,sans-serif;font-size:12px;font-weight:500;line-height:16px;text-decoration:none;box-shadow:0 1px 1px rgba(51,51,51,.08),0 6px 12px rgba(51,51,51,.08);opacity:.9;transition:opacity .2s}
83
+ #surf-badge:hover{opacity:1}
84
+ @media print{#surf-badge{display:none}}
85
+ </style>
86
+ <a id="surf-badge" href="https://asksurf.ai" target="_blank" rel="noopener noreferrer" aria-label="Made by Surf" style="background:var(--bg-menu,#fff);color:var(--fg-base,#212121)">
87
+ <span>Made by</span>
88
+ <svg width="40" height="13" viewBox="0 0 63 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
89
+ <path d="M15.583 13.333C15.9931 13.3331 16.3814 13.5196 16.6377 13.8398L18.7666 16.5019C18.7956 16.5382 18.8261 16.5719 18.8574 16.6035C19.2049 16.954 19.6484 17.3405 19.6484 17.834C19.6484 18.3399 19.2383 18.75 18.7324 18.75H18.4668C18.1079 18.75 17.7682 18.5868 17.5439 18.3066L16.3633 16.831C15.6565 15.9476 14.2315 16.4477 14.2314 17.5791V18.6494C14.2314 18.7061 14.1827 18.7499 14.126 18.75H12.2529C11.6074 18.75 10.997 18.4562 10.5938 17.9521L9.69629 16.831C8.98948 15.9478 7.56544 16.4478 7.56543 17.5791V18.6494C7.56542 18.7062 7.51669 18.7499 7.45996 18.75H5.58594C4.94038 18.7499 4.32999 18.4563 3.92676 17.9521L3.03027 16.831C2.67436 16.3862 2.14844 15.9311 2.14844 15.3613V13.4385C2.14851 13.3817 2.19228 13.333 2.24902 13.333C2.65919 13.333 3.04737 13.5197 3.30371 13.8398L5.43359 16.5019C6.14031 17.3853 7.56521 16.8861 7.56543 15.7549V14.6846C7.56543 13.9385 8.16998 13.333 8.91602 13.333C9.32621 13.333 9.71437 13.5196 9.9707 13.8398L12.1006 16.5019C12.8052 17.3827 14.2227 16.8887 14.2314 15.7646V14.6846C14.2314 13.9385 14.837 13.333 15.583 13.333ZM15.583 6.66698C15.9932 6.66711 16.3814 6.8535 16.6377 7.17382L18.7666 9.83593C19.1224 10.2806 19.6484 10.7352 19.6484 11.3047V13.2266C19.6483 13.2833 19.6046 13.333 19.5479 13.333C19.1375 13.333 18.7495 13.1466 18.4932 12.8262L16.3633 10.1641C15.6565 9.28087 14.2315 9.78081 14.2314 10.9121V11.9824C14.2314 12.7284 13.6269 13.333 12.8809 13.333C12.4706 13.3329 12.0825 13.1465 11.8262 12.8262L9.69629 10.1641C8.98942 9.28109 7.56544 9.78088 7.56543 10.9121V11.9824C7.56543 12.7282 6.96062 13.3327 6.21484 13.333C5.80451 13.333 5.41551 13.1466 5.15918 12.8262L3.03027 10.1641C2.67435 9.71918 2.14844 9.26406 2.14844 8.69433V6.77245C2.14851 6.71573 2.19228 6.66699 2.24902 6.66698C2.65936 6.66698 3.04738 6.8534 3.30371 7.17382L5.43359 9.83593C6.14042 10.7191 7.56543 10.2192 7.56543 9.08788V8.01757C7.56543 7.27154 8.16998 6.66698 8.91602 6.66698C9.32634 6.66701 9.71437 6.85341 9.9707 7.17382L12.1006 9.83593C12.8052 10.7162 14.2225 10.2223 14.2314 9.09863V8.01757C14.2314 7.27154 14.837 6.66698 15.583 6.66698ZM3.33008 1.24999C3.68899 1.24999 4.02863 1.41318 4.25293 1.69335L5.43359 3.16894C6.14036 4.0524 7.56543 3.55227 7.56543 2.42089V1.35058C7.56544 1.29384 7.61417 1.25007 7.6709 1.24999H9.54395C10.1895 1.24999 10.7999 1.54378 11.2031 2.04784L12.1006 3.16894C12.8052 4.04953 14.2227 3.5556 14.2314 2.43163V1.35058C14.2315 1.29384 14.2802 1.25007 14.3369 1.24999H16.2109C16.8565 1.25014 17.4669 1.54375 17.8701 2.04784L18.7666 3.16894C19.1223 3.61354 19.6481 4.06741 19.6484 4.63671V6.56054C19.6483 6.61728 19.6046 6.66698 19.5479 6.66698C19.1377 6.66698 18.7495 6.48034 18.4932 6.16015L16.3633 3.49804C15.6566 2.61465 14.2317 3.11391 14.2314 4.24511V5.3164C14.2312 6.06217 13.6267 6.66698 12.8809 6.66698C12.4707 6.66693 12.0825 6.48039 11.8262 6.16015L9.69629 3.49804C8.98957 2.61465 7.56565 3.11391 7.56543 4.24511V5.3164C7.56518 6.06202 6.96046 6.66673 6.21484 6.66698C5.80453 6.66698 5.41551 6.48054 5.15918 6.16015L3.03027 3.49804C3.00109 3.46156 2.97093 3.42724 2.93945 3.3955C2.59217 3.04543 2.14867 2.65906 2.14844 2.16601C2.14844 1.66032 2.55877 1.24999 3.06445 1.24999H3.33008Z"/>
90
+ <path d="M35.1083 6.97044C34.7154 6.97044 34.5223 6.77734 34.3692 6.39782C33.9963 5.49228 33.0042 4.97958 31.6925 4.97958C30.0146 4.97958 28.9559 5.83851 28.9559 6.99707C28.9493 8.30211 30.3675 8.80149 31.4328 9.07449L32.7645 9.42072C34.4957 9.84686 36.6863 10.799 36.6863 13.2559C36.6863 15.5664 34.8419 17.251 31.6392 17.251C28.8827 17.251 27.0649 16.0125 26.6321 13.9617C26.5389 13.5156 26.7986 13.2559 27.2514 13.2559H27.9971C28.3966 13.2559 28.5897 13.4557 28.7229 13.8485C29.1024 14.9272 30.2676 15.4466 31.6259 15.4466C33.3771 15.4466 34.6488 14.5676 34.6488 13.236C34.6488 12.0241 33.5236 11.5447 32.0654 11.1586L30.454 10.7191C28.2634 10.1265 26.9051 9.01456 26.9051 7.11692C26.9051 4.76651 29.0025 3.20179 31.7391 3.20179C34.2027 3.20179 36.0005 4.45357 36.4133 6.27131C36.5132 6.71076 36.2335 6.97044 35.7874 6.97044H35.1083Z"/>
91
+ <path d="M45.0887 7.46316C45.0887 7.03036 45.3217 6.79732 45.7545 6.79732H46.4204C46.8532 6.79732 47.0862 7.03036 47.0862 7.46316V16.3588C47.0862 16.7915 46.8532 17.0246 46.4204 17.0246H45.7945C45.3617 17.0246 45.1286 16.7915 45.1286 16.3588V15.2535H45.0221C44.5494 16.3454 43.504 17.1578 41.9659 17.1578C40.0017 17.1578 38.6101 15.8394 38.6101 13.3026V7.46316C38.6101 7.03036 38.8431 6.79732 39.2759 6.79732H39.9351C40.3679 6.79732 40.601 7.03036 40.601 7.46316V13.0629C40.601 14.4545 41.4532 15.3467 42.685 15.3467C43.8036 15.3467 45.0954 14.521 45.0887 12.7832V7.46316Z"/>
92
+ <path d="M49.3862 7.46316C49.3862 7.03036 49.6193 6.79732 50.0521 6.79732H50.6447C51.0774 6.79732 51.3105 7.03036 51.3105 7.46316V8.42196H51.417C51.7899 7.32333 52.8153 6.64418 54.0138 6.64418C54.0737 6.64418 54.147 6.64418 54.2202 6.65084C54.6397 6.65749 54.8594 6.91717 54.8594 7.33665V7.88264C54.8594 8.33541 54.673 8.54182 54.3467 8.50852C54.1803 8.48855 53.9938 8.47523 53.8207 8.47523C52.4091 8.47523 51.3771 9.4407 51.3771 10.779V16.3588C51.3771 16.7915 51.144 17.0246 50.7112 17.0246H50.0521C49.6193 17.0246 49.3862 16.7915 49.3862 16.3588V7.46316Z"/>
93
+ <path d="M61.6788 7.72949C61.6788 8.16229 61.4457 8.39533 61.013 8.39533H59.4749V16.3588C59.4749 16.7915 59.2418 17.0246 58.809 17.0246H58.1432C57.7104 17.0246 57.4774 16.7915 57.4774 16.3588V8.39533H56.5652C56.1324 8.39533 55.8993 8.16229 55.8993 7.72949V7.46316C55.8993 7.03036 56.1324 6.79732 56.5652 6.79732H57.4774V5.61213C57.4774 3.69451 58.8956 2.74902 60.5136 2.74902C60.9131 2.74902 61.2593 2.78897 61.539 2.84224C61.9651 2.9288 62.1116 3.2484 61.9917 3.66122L61.8919 4.01412C61.7787 4.42028 61.5656 4.57342 61.2726 4.52015C61.1395 4.49352 60.993 4.4802 60.8199 4.4802C59.8477 4.4802 59.4749 4.97292 59.4749 5.87846V6.79732H61.013C61.4457 6.79732 61.6788 7.03036 61.6788 7.46316V7.72949Z"/>
94
+ </svg>
95
+ </a>
96
+ <!-- Plaza badge: rendered only when this deployed site is shared on Surf Plaza. -->
97
+ <script>
98
+ (function(){
99
+ try{
100
+ var m=location.hostname.match(/^([a-z0-9][a-z0-9-]{0,51})\.(?:surf\.computer|stg\.ask\.surf)$/i);
101
+ if(!m)return;
102
+ var slug=m[1].toLowerCase();
103
+ fetch('https://api.asksurf.ai/muninn/v1/plaza/by-subdomain?subdomain='+encodeURIComponent(slug))
104
+ .then(function(r){return r.ok?r.json():null;})
105
+ .then(function(j){
106
+ var d=j&&j.data;
107
+ if(!d||!d.shared||!d.listing_id)return;
108
+ var a=document.createElement('a');
109
+ a.id='plaza-badge';
110
+ a.href='https://asksurf.ai/studio/gallery?id='+encodeURIComponent(d.listing_id);
111
+ a.target='_blank';
112
+ a.rel='noopener noreferrer';
113
+ a.setAttribute('aria-label','Remix this on Surf Plaza');
114
+ a.style.cssText='position:fixed;bottom:56px;right:16px;z-index:2147483647;display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:20px;font-family:"Lato",system-ui,sans-serif;font-size:12px;font-weight:500;line-height:16px;text-decoration:none;background:#fd5587;color:#fff;box-shadow:0 1px 1px rgba(51,51,51,.08),0 6px 12px rgba(51,51,51,.16);opacity:.92;transition:opacity .2s';
115
+ a.onmouseenter=function(){a.style.opacity='1';};
116
+ a.onmouseleave=function(){a.style.opacity='.92';};
117
+ a.innerHTML='<span aria-hidden="true" style="font-size:13px;line-height:1">↻</span><span>Remix on Plaza</span>';
118
+ var s=document.createElement('style');
119
+ s.textContent='@media print{#plaza-badge{display:none}}';
120
+ document.head.appendChild(s);
121
+ document.body.appendChild(a);
122
+ })
123
+ .catch(function(){});
124
+ }catch(e){}
125
+ })();
126
+ </script>
127
+ </body>
128
+ </html>
requirements.txt DELETED
@@ -1,4 +0,0 @@
1
- pandas
2
- matplotlib
3
- xlrd
4
- pypinyin