@happyvertical/smrt-planner 0.0.2 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (752) hide show
  1. package/README.md +81 -8
  2. package/app/404.html +42 -49
  3. package/app/_app/immutable/assets/0.DUow1OzM.css +1 -0
  4. package/app/_app/immutable/assets/10.CdYxvH4G.css +1 -0
  5. package/app/_app/immutable/assets/11.nOT5Z4Fv.css +1 -0
  6. package/app/_app/immutable/assets/12.F7A7zP4J.css +1 -0
  7. package/app/_app/immutable/assets/13.JoySu8W5.css +1 -0
  8. package/app/_app/immutable/assets/14.nsp62-4b.css +1 -0
  9. package/app/_app/immutable/assets/2.CbPiqdz5.css +1 -0
  10. package/app/_app/immutable/assets/3.D518dbB5.css +1 -0
  11. package/app/_app/immutable/assets/4.B3vt1gMJ.css +1 -0
  12. package/app/_app/immutable/assets/AiSetup.4fXjMpTZ.css +1 -0
  13. package/app/_app/immutable/assets/AppShell.DOvXbUZo.css +1 -0
  14. package/app/_app/immutable/assets/ConnectTools.DTleL8YA.css +1 -0
  15. package/app/_app/immutable/assets/FieldMapForm.C8SZ3t4N.css +1 -0
  16. package/app/_app/immutable/assets/ModelPage.DbXvPbHE.css +1 -0
  17. package/app/_app/immutable/assets/SectionActions.BE1CPmxk.css +1 -0
  18. package/app/_app/immutable/assets/SectionIcons.BGFcFuOf.css +1 -0
  19. package/app/_app/immutable/assets/SegmentedControl.BkyuoCEJ.css +1 -0
  20. package/app/_app/immutable/assets/app.eM0k786r.css +1 -0
  21. package/app/_app/immutable/assets/currency-metadata.DDyu8_ub.css +1 -0
  22. package/app/_app/immutable/assets/data.bGq43K60.css +1 -0
  23. package/app/_app/immutable/assets/feedback.xBpOq9ef.css +1 -0
  24. package/app/_app/immutable/assets/forms.B3_bbIMe.css +1 -0
  25. package/app/_app/immutable/assets/labels.BiuUjqHs.css +1 -0
  26. package/app/_app/immutable/assets/percent.DbwvwMhf.css +1 -0
  27. package/app/_app/immutable/assets/state.CJipYvSU.css +1 -0
  28. package/app/_app/immutable/assets/webmcp-ui-context.BnR-DUfO.css +1 -0
  29. package/app/_app/immutable/assets/workspace.B5Xq-5pJ.css +1 -0
  30. package/app/_app/immutable/chunks/1ElZWh_R.js +10 -0
  31. package/app/_app/immutable/chunks/B-CpwO-j.js +1 -0
  32. package/app/_app/immutable/chunks/{BnRri03M.js → B7KB-rhH.js} +1 -1
  33. package/app/_app/immutable/chunks/BUhghcIm.js +1 -0
  34. package/app/_app/immutable/chunks/BV3NwM01.js +1 -0
  35. package/app/_app/immutable/chunks/BZVZZ6VY.js +1 -0
  36. package/app/_app/immutable/chunks/Ba1g71Sq.js +1 -0
  37. package/app/_app/immutable/chunks/BeJD7_hy.js +1 -0
  38. package/app/_app/immutable/chunks/BiO_bqNH.js +2 -0
  39. package/app/_app/immutable/chunks/{DkR8_Ws6.js → BqBuCJB_.js} +2 -2
  40. package/app/_app/immutable/chunks/BsJoBmTA.js +1 -0
  41. package/app/_app/immutable/chunks/Bxbz6_Mb.js +1 -0
  42. package/app/_app/immutable/chunks/Bz5uCkjV.js +2 -0
  43. package/app/_app/immutable/chunks/BzMfoxBk.js +1 -0
  44. package/app/_app/immutable/chunks/CF6zSg_o.js +2 -0
  45. package/app/_app/immutable/chunks/CFL0B6dk.js +1 -0
  46. package/app/_app/immutable/chunks/CRu55ZTy.js +4 -0
  47. package/app/_app/immutable/chunks/{CyUMm_Wp.js → Cv2EcCr0.js} +1 -1
  48. package/app/_app/immutable/chunks/D-3Ri0zJ.js +1 -0
  49. package/app/_app/immutable/chunks/{BWPhGFHl.js → D0FW0z6R.js} +1 -1
  50. package/app/_app/immutable/chunks/D7d5GssF.js +1 -0
  51. package/app/_app/immutable/chunks/DCsSRJsN.js +1 -0
  52. package/app/_app/immutable/chunks/DGqV6_5v.js +1 -0
  53. package/app/_app/immutable/chunks/DNSRTkf6.js +11 -0
  54. package/app/_app/immutable/chunks/DQNX_XPY.js +1 -0
  55. package/app/_app/immutable/chunks/DSyIMN4M.js +1 -0
  56. package/app/_app/immutable/chunks/DUTtmM1Y.js +1 -0
  57. package/app/_app/immutable/chunks/DYuawOB3.js +980 -0
  58. package/app/_app/immutable/chunks/DfCLzLZc.js +1 -0
  59. package/app/_app/immutable/chunks/Dh5fne6n.js +1 -0
  60. package/app/_app/immutable/chunks/LruoUXGC.js +1 -0
  61. package/app/_app/immutable/chunks/ZLqixH7j.js +9 -0
  62. package/app/_app/immutable/chunks/_pYwB_Eb.js +4 -0
  63. package/app/_app/immutable/chunks/aoU3lIZI.js +1 -0
  64. package/app/_app/immutable/chunks/c57ZlocB.js +24 -0
  65. package/app/_app/immutable/chunks/h8ppmjOm.js +1 -0
  66. package/app/_app/immutable/chunks/jhcy_jeO.js +1 -0
  67. package/app/_app/immutable/chunks/vNEnXNLV.js +3 -0
  68. package/app/_app/immutable/chunks/vwntRvfV.js +1 -0
  69. package/app/_app/immutable/entry/app.D5LoTsNA.js +2 -0
  70. package/app/_app/immutable/entry/start.Sb_s0NGC.js +1 -0
  71. package/app/_app/immutable/nodes/0.Cuo9-RQc.js +9 -0
  72. package/app/_app/immutable/nodes/1.BW8Ar5T3.js +1 -0
  73. package/app/_app/immutable/nodes/10.CpLYjN7r.js +3 -0
  74. package/app/_app/immutable/nodes/11.BMPKD4M3.js +1 -0
  75. package/app/_app/immutable/nodes/12.WYpy0AHE.js +4 -0
  76. package/app/_app/immutable/nodes/13.BYo05X9B.js +1 -0
  77. package/app/_app/immutable/nodes/14.DN0MT3KB.js +1 -0
  78. package/app/_app/immutable/nodes/2.DM6k_pqu.js +24 -0
  79. package/app/_app/immutable/nodes/3.YgEwJ-vF.js +1 -0
  80. package/app/_app/immutable/nodes/4.A3Y6Lax0.js +1 -0
  81. package/app/_app/immutable/nodes/5.D9Vd85hG.js +1 -0
  82. package/app/_app/immutable/nodes/6.C5c56bSW.js +1 -0
  83. package/app/_app/immutable/nodes/7.CDBMbYlD.js +1 -0
  84. package/app/_app/immutable/nodes/8.8olDkDou.js +1 -0
  85. package/app/_app/immutable/nodes/9.CWgx__8Z.js +1 -0
  86. package/app/_app/version.json +1 -1
  87. package/app/advanced-styles/index.html +84 -0
  88. package/app/ai/index.html +60 -52
  89. package/app/blueprint/index.html +46 -53
  90. package/app/cookbook/index.html +46 -53
  91. package/app/index.html +92 -64
  92. package/app/m/ads/AdDeliveryTier/index.html +52 -59
  93. package/app/m/ads/AdEvent/index.html +52 -59
  94. package/app/m/ads/AdFormat/index.html +52 -59
  95. package/app/m/ads/AdGroup/index.html +52 -59
  96. package/app/m/ads/AdVariation/index.html +52 -59
  97. package/app/m/analytics/AnalyticsDataStream/index.html +52 -59
  98. package/app/m/analytics/AnalyticsEvent/index.html +52 -59
  99. package/app/m/analytics/AnalyticsProperty/index.html +52 -59
  100. package/app/m/analytics/AnalyticsReport/index.html +52 -59
  101. package/app/m/approvals/ApprovalEvent/index.html +52 -59
  102. package/app/m/approvals/ApprovalPolicy/index.html +52 -59
  103. package/app/m/approvals/ApprovalRequest/index.html +52 -59
  104. package/app/m/assets/Asset/attachments/index.html +91 -0
  105. package/app/m/assets/Asset/index.html +52 -59
  106. package/app/m/assets/AssetAssociation/index.html +53 -60
  107. package/app/m/assets/AssetMetafield/index.html +52 -59
  108. package/app/m/assets/AssetStatus/index.html +52 -59
  109. package/app/m/assets/AssetType/index.html +52 -59
  110. package/app/m/assets/Folder/index.html +52 -59
  111. package/app/m/chat/AgentSession/index.html +52 -59
  112. package/app/m/chat/ChatMessage/index.html +53 -60
  113. package/app/m/chat/ChatParticipant/index.html +53 -60
  114. package/app/m/chat/ChatReaction/index.html +52 -59
  115. package/app/m/chat/ChatRoom/index.html +52 -59
  116. package/app/m/chat/ChatThread/index.html +53 -60
  117. package/app/m/chat/VoiceGatewayTurn/index.html +52 -59
  118. package/app/m/chat/VoiceSession/index.html +52 -59
  119. package/app/m/commerce/Agreement/index.html +52 -59
  120. package/app/m/commerce/Cart/index.html +52 -59
  121. package/app/m/commerce/Contract/index.html +52 -59
  122. package/app/m/commerce/ContractLineItem/index.html +53 -60
  123. package/app/m/commerce/Customer/index.html +52 -59
  124. package/app/m/commerce/DocumentTax/index.html +89 -0
  125. package/app/m/commerce/Estimate/index.html +52 -59
  126. package/app/m/commerce/Fulfillment/index.html +52 -59
  127. package/app/m/commerce/FulfillmentLineItem/index.html +53 -60
  128. package/app/m/commerce/Invoice/index.html +52 -59
  129. package/app/m/commerce/InvoiceLineItem/index.html +53 -60
  130. package/app/m/commerce/Lease/index.html +52 -59
  131. package/app/m/commerce/LicenseSale/index.html +52 -59
  132. package/app/m/commerce/Order/index.html +52 -59
  133. package/app/m/commerce/Payment/index.html +52 -59
  134. package/app/m/commerce/PaymentAllocation/index.html +53 -60
  135. package/app/m/commerce/PaymentInstrument/index.html +52 -59
  136. package/app/m/commerce/PaymentIntent/index.html +52 -59
  137. package/app/m/commerce/Payout/index.html +52 -59
  138. package/app/m/commerce/ProductionOrder/index.html +52 -59
  139. package/app/m/commerce/PurchaseContract/index.html +89 -0
  140. package/app/m/commerce/PurchaseOrder/index.html +52 -59
  141. package/app/m/commerce/SalesContract/index.html +89 -0
  142. package/app/m/commerce/SupplierQuote/index.html +89 -0
  143. package/app/m/commerce/TaxCode/index.html +89 -0
  144. package/app/m/commerce/TaxComponent/index.html +89 -0
  145. package/app/m/commerce/TaxSettings/index.html +89 -0
  146. package/app/m/commerce/TaxSummaryReport/index.html +89 -0
  147. package/app/m/commerce/Vendor/index.html +52 -59
  148. package/app/m/commerce/WholesaleOrder/index.html +52 -59
  149. package/app/m/content/Content/index.html +52 -59
  150. package/app/m/content/ContentContribution/index.html +52 -59
  151. package/app/m/content/ContentContributionAttachment/index.html +52 -59
  152. package/app/m/content/ContentContributionRevision/index.html +52 -59
  153. package/app/m/content/ContentContributionType/index.html +52 -59
  154. package/app/m/content/ContentContributor/index.html +52 -59
  155. package/app/m/content/ContentCorrection/index.html +52 -59
  156. package/app/m/content/ContentFeedSource/index.html +52 -59
  157. package/app/m/content/ContentGovernanceAssignment/index.html +52 -59
  158. package/app/m/content/ContentGovernancePolicy/index.html +52 -59
  159. package/app/m/content/ContentGovernanceProfile/index.html +52 -59
  160. package/app/m/content/ContentReference/index.html +52 -59
  161. package/app/m/content/ContentReview/index.html +52 -59
  162. package/app/m/content/ContentVersion/index.html +52 -59
  163. package/app/m/events/Event/index.html +52 -59
  164. package/app/m/events/EventParticipant/index.html +53 -60
  165. package/app/m/events/EventSeries/index.html +52 -59
  166. package/app/m/events/EventType/index.html +52 -59
  167. package/app/m/expenses/Expense/index.html +89 -0
  168. package/app/m/facts/Fact/index.html +52 -59
  169. package/app/m/facts/FactContent/index.html +52 -59
  170. package/app/m/facts/FactEvidence/index.html +52 -59
  171. package/app/m/facts/FactSource/index.html +52 -59
  172. package/app/m/facts/FactSubject/index.html +52 -59
  173. package/app/m/facts/FactTag/index.html +52 -59
  174. package/app/m/fields/FieldPolicy/index.html +52 -59
  175. package/app/m/fields/FieldPolicySuggestion/index.html +52 -59
  176. package/app/m/fields/FieldUsageCounter/index.html +52 -59
  177. package/app/m/images/Image/index.html +52 -59
  178. package/app/m/inventory/InventoryLocation/index.html +52 -59
  179. package/app/m/inventory/StockLevel/index.html +52 -59
  180. package/app/m/inventory/StockMovement/index.html +52 -59
  181. package/app/m/ledgers/Account/index.html +52 -59
  182. package/app/m/ledgers/Journal/index.html +52 -59
  183. package/app/m/ledgers/JournalEntry/index.html +53 -60
  184. package/app/m/manufacturing/Assembly/index.html +52 -59
  185. package/app/m/manufacturing/BillOfMaterials/index.html +52 -59
  186. package/app/m/manufacturing/BomLine/index.html +52 -59
  187. package/app/m/manufacturing/Operation/index.html +52 -59
  188. package/app/m/manufacturing/ProductionRun/index.html +52 -59
  189. package/app/m/manufacturing/ProductionRunCompletion/index.html +52 -59
  190. package/app/m/manufacturing/RoutingStep/index.html +52 -59
  191. package/app/m/marketing/Campaign/index.html +52 -59
  192. package/app/m/marketing/CampaignChannel/index.html +52 -59
  193. package/app/m/marketing/CampaignMetricSnapshot/index.html +52 -59
  194. package/app/m/messages/Account/index.html +52 -59
  195. package/app/m/messages/Attachment/index.html +52 -59
  196. package/app/m/messages/Blacklist/index.html +52 -59
  197. package/app/m/messages/Email/failed-sends/index.html +54 -59
  198. package/app/m/messages/Email/index.html +52 -59
  199. package/app/m/messages/Email/mailbox/index.html +54 -59
  200. package/app/m/messages/EmailAccount/index.html +52 -59
  201. package/app/m/messages/EmailAttachment/index.html +89 -0
  202. package/app/m/messages/EmailFolder/index.html +52 -59
  203. package/app/m/messages/Message/index.html +52 -59
  204. package/app/m/messages/MessagingEndpoint/index.html +52 -59
  205. package/app/m/messages/PersonaMessageRoute/index.html +52 -59
  206. package/app/m/messages/SlackAccount/index.html +52 -59
  207. package/app/m/messages/SlackMessage/index.html +52 -59
  208. package/app/m/messages/TelegramAccount/index.html +52 -59
  209. package/app/m/messages/Tweet/index.html +52 -59
  210. package/app/m/messages/TwitterAccount/index.html +52 -59
  211. package/app/m/messages/Whitelist/index.html +52 -59
  212. package/app/m/messages/ZulipAccount/index.html +52 -59
  213. package/app/m/places/Place/index.html +52 -59
  214. package/app/m/places/PlaceType/index.html +52 -59
  215. package/app/m/products/Category/index.html +52 -59
  216. package/app/m/products/Material/index.html +52 -59
  217. package/app/m/products/Product/index.html +52 -59
  218. package/app/m/products/Product/ingredients/index.html +54 -59
  219. package/app/m/products/ProductVariant/index.html +53 -60
  220. package/app/m/products/Sku/index.html +53 -60
  221. package/app/m/profiles/ApiKey/index.html +52 -59
  222. package/app/m/profiles/Bot/index.html +52 -59
  223. package/app/m/profiles/MagicLinkToken/index.html +52 -59
  224. package/app/m/profiles/NostrIdentity/index.html +52 -59
  225. package/app/m/profiles/OidcIdentity/index.html +52 -59
  226. package/app/m/profiles/Organization/index.html +52 -59
  227. package/app/m/profiles/Person/index.html +52 -59
  228. package/app/m/profiles/Profile/index.html +52 -59
  229. package/app/m/profiles/ProfileMetadata/index.html +52 -59
  230. package/app/m/profiles/ProfileMetafield/index.html +52 -59
  231. package/app/m/profiles/ProfileRelationship/index.html +52 -59
  232. package/app/m/profiles/ProfileRelationshipTerm/index.html +52 -59
  233. package/app/m/profiles/ProfileRelationshipType/index.html +52 -59
  234. package/app/m/profiles/ProfileType/index.html +52 -59
  235. package/app/m/projects/Comment/index.html +53 -60
  236. package/app/m/projects/Issue/index.html +52 -59
  237. package/app/m/projects/Label/index.html +52 -59
  238. package/app/m/projects/Project/index.html +52 -59
  239. package/app/m/projects/ProjectIntegration/index.html +52 -59
  240. package/app/m/projects/PullRequest/index.html +52 -59
  241. package/app/m/projects/Repository/index.html +52 -59
  242. package/app/m/properties/Property/index.html +52 -59
  243. package/app/m/properties/Zone/index.html +52 -59
  244. package/app/m/reports/RuntimeReport/index.html +52 -59
  245. package/app/m/reports/SmrtPrincipalReportRefreshTask/index.html +52 -59
  246. package/app/m/reports/SmrtReportLock/index.html +52 -59
  247. package/app/m/reports/SmrtReportRefreshTask/index.html +52 -59
  248. package/app/m/reports/SmrtReportRun/index.html +52 -59
  249. package/app/m/reports/SmrtReportSchedule/index.html +52 -59
  250. package/app/m/reports/SmrtReportWatermark/index.html +52 -59
  251. package/app/m/sales/AttributionException/index.html +52 -59
  252. package/app/m/sales/AttributionPolicy/index.html +52 -59
  253. package/app/m/sales/Commission/index.html +52 -59
  254. package/app/m/sales/CommissionAdjustment/index.html +52 -59
  255. package/app/m/sales/CommissionPayout/index.html +52 -59
  256. package/app/m/sales/CommissionPlan/index.html +52 -59
  257. package/app/m/sales/Earner/index.html +52 -59
  258. package/app/m/sales/EarnerSourceAttribution/index.html +52 -59
  259. package/app/m/sales/EarningEvent/index.html +52 -59
  260. package/app/m/sales/ExecutedAgreement/index.html +52 -59
  261. package/app/m/sales/Lead/index.html +52 -59
  262. package/app/m/sales/Opportunity/index.html +52 -59
  263. package/app/m/sales/OpportunityConversion/index.html +52 -59
  264. package/app/m/sales/PipelineDefinition/index.html +52 -59
  265. package/app/m/sales/PipelineStage/index.html +53 -60
  266. package/app/m/sales/Referral/index.html +52 -59
  267. package/app/m/sales/ReferralAgreement/index.html +52 -59
  268. package/app/m/sales/ReferralLink/index.html +52 -59
  269. package/app/m/sales/ReferralProgram/index.html +52 -59
  270. package/app/m/sales/ReferralTermSnapshot/index.html +52 -59
  271. package/app/m/sales/ReferralTouch/index.html +52 -59
  272. package/app/m/sales/Referrer/index.html +52 -59
  273. package/app/m/sales/SalesActivity/index.html +52 -59
  274. package/app/m/sales/SalesRepresentative/index.html +52 -59
  275. package/app/m/sites/Site/index.html +52 -59
  276. package/app/m/sites/SiteAgentBinding/index.html +52 -59
  277. package/app/m/social/OAuthState/index.html +52 -59
  278. package/app/m/social/SocialAccount/index.html +52 -59
  279. package/app/m/social/SocialPost/index.html +52 -59
  280. package/app/m/social/SocialPostAnalyticsSnapshot/index.html +52 -59
  281. package/app/m/subscriptions/BillingAdjustment/index.html +52 -59
  282. package/app/m/subscriptions/ClientCharge/index.html +52 -59
  283. package/app/m/subscriptions/CreditGrant/index.html +52 -59
  284. package/app/m/subscriptions/PricingRule/index.html +52 -59
  285. package/app/m/subscriptions/RetailCharge/index.html +52 -59
  286. package/app/m/subscriptions/SpendingPolicy/index.html +52 -59
  287. package/app/m/subscriptions/SubscriptionPlan/index.html +52 -59
  288. package/app/m/subscriptions/TenantSubscription/index.html +52 -59
  289. package/app/m/subscriptions/TenantUsageMetric/index.html +52 -59
  290. package/app/m/support/ServiceTimeEntry/index.html +52 -59
  291. package/app/m/support/SupportAiRun/index.html +52 -59
  292. package/app/m/support/SupportAvailability/index.html +52 -59
  293. package/app/m/support/SupportCase/index.html +52 -59
  294. package/app/m/support/SupportCaseEvent/index.html +52 -59
  295. package/app/m/support/SupportChannelBinding/index.html +52 -59
  296. package/app/m/support/SupportCharge/index.html +52 -59
  297. package/app/m/support/SupportCompensation/index.html +52 -59
  298. package/app/m/support/SupportCompensationPlan/index.html +52 -59
  299. package/app/m/support/SupportEscalation/index.html +52 -59
  300. package/app/m/support/SupportInteraction/index.html +52 -59
  301. package/app/m/support/SupportPlan/index.html +52 -59
  302. package/app/m/support/SupportPolicy/index.html +52 -59
  303. package/app/m/support/SupportQualification/index.html +52 -59
  304. package/app/m/support/SupportServiceTarget/index.html +52 -59
  305. package/app/m/support/SupportSpecialist/index.html +52 -59
  306. package/app/m/support/SupportWorkLink/index.html +52 -59
  307. package/app/m/tags/Tag/index.html +52 -59
  308. package/app/m/tags/TagAlias/index.html +52 -59
  309. package/app/m/timesheets/AttendanceBreak/index.html +52 -59
  310. package/app/m/timesheets/AttendancePunch/index.html +52 -59
  311. package/app/m/timesheets/AttendanceSegment/index.html +89 -0
  312. package/app/m/timesheets/ServiceChargeSnapshot/index.html +52 -59
  313. package/app/m/timesheets/ServiceCompensationSnapshot/index.html +52 -59
  314. package/app/m/timesheets/ServiceTimeEntry/index.html +52 -59
  315. package/app/m/users/Group/index.html +52 -59
  316. package/app/m/users/GroupMember/index.html +52 -59
  317. package/app/m/users/GroupRole/index.html +52 -59
  318. package/app/m/users/Membership/index.html +53 -60
  319. package/app/m/users/MembershipOverride/index.html +52 -59
  320. package/app/m/users/Permission/index.html +52 -59
  321. package/app/m/users/Role/index.html +52 -59
  322. package/app/m/users/RolePermission/index.html +52 -59
  323. package/app/m/users/Session/index.html +52 -59
  324. package/app/m/users/Tenant/index.html +52 -59
  325. package/app/m/users/TenantIntegration/index.html +52 -59
  326. package/app/m/users/TenantPermissionOverride/index.html +52 -59
  327. package/app/m/users/User/index.html +52 -59
  328. package/app/m/video/Character/index.html +52 -59
  329. package/app/m/video/CharacterAsset/index.html +52 -59
  330. package/app/m/video/CompositeJob/index.html +52 -59
  331. package/app/m/video/Performer/index.html +52 -59
  332. package/app/m/video/PerformerAsset/index.html +52 -59
  333. package/app/m/video/Scene/index.html +52 -59
  334. package/app/m/video/SceneAsset/index.html +52 -59
  335. package/app/m/video/VideoComposition/index.html +52 -59
  336. package/app/m/video/VideoCompositionAsset/index.html +52 -59
  337. package/app/m/video/VideoSequence/index.html +52 -59
  338. package/app/m/video/VideoSequenceAsset/index.html +52 -59
  339. package/app/m/video/VideoShot/index.html +52 -59
  340. package/app/m/video/VideoShotAsset/index.html +52 -59
  341. package/app/m/video/VideoShotCharacter/index.html +52 -59
  342. package/app/m/video/VideoWorkflow/index.html +52 -59
  343. package/app/m/voice/VoiceOutput/index.html +52 -59
  344. package/app/m/voice/VoiceProfile/index.html +52 -59
  345. package/app/m/voice/VoiceSample/index.html +52 -59
  346. package/app/packages/ads/index.html +50 -57
  347. package/app/packages/analytics/index.html +50 -57
  348. package/app/packages/approvals/index.html +50 -57
  349. package/app/packages/assets/index.html +50 -57
  350. package/app/packages/chat/index.html +50 -57
  351. package/app/packages/comments/index.html +50 -57
  352. package/app/packages/commerce/index.html +50 -57
  353. package/app/packages/content/index.html +50 -57
  354. package/app/packages/events/index.html +50 -57
  355. package/app/packages/expenses/index.html +50 -57
  356. package/app/packages/facts/index.html +50 -57
  357. package/app/packages/fields/index.html +50 -57
  358. package/app/packages/human-resources/index.html +50 -57
  359. package/app/packages/images/index.html +50 -57
  360. package/app/packages/index.html +49 -55
  361. package/app/packages/ingestion/index.html +85 -0
  362. package/app/packages/inventory/index.html +50 -57
  363. package/app/packages/ledgers/index.html +50 -57
  364. package/app/packages/manufacturing/index.html +50 -57
  365. package/app/packages/marketing/index.html +50 -57
  366. package/app/packages/messages/index.html +50 -57
  367. package/app/packages/places/index.html +50 -57
  368. package/app/packages/preferences/index.html +50 -57
  369. package/app/packages/products/index.html +50 -57
  370. package/app/packages/profiles/index.html +50 -57
  371. package/app/packages/projects/index.html +50 -57
  372. package/app/packages/properties/index.html +50 -57
  373. package/app/packages/reports/index.html +50 -57
  374. package/app/packages/sales/index.html +50 -57
  375. package/app/packages/sites/index.html +50 -57
  376. package/app/packages/social/index.html +50 -57
  377. package/app/packages/subscriptions/index.html +50 -57
  378. package/app/packages/support/index.html +50 -57
  379. package/app/packages/tags/index.html +50 -57
  380. package/app/packages/timesheets/index.html +50 -57
  381. package/app/packages/users/index.html +50 -57
  382. package/app/packages/video/index.html +50 -57
  383. package/app/packages/voice/index.html +50 -57
  384. package/app/packages/webhooks/index.html +85 -0
  385. package/app/recipes/account-access/help/index.html +52 -57
  386. package/app/recipes/account-access/index.html +57 -59
  387. package/app/recipes/activity/help/index.html +52 -57
  388. package/app/recipes/activity/index.html +57 -59
  389. package/app/recipes/agreements/help/index.html +52 -57
  390. package/app/recipes/agreements/index.html +57 -59
  391. package/app/recipes/analytics.reports/help/index.html +52 -57
  392. package/app/recipes/analytics.reports/index.html +57 -59
  393. package/app/recipes/assets/help/index.html +52 -57
  394. package/app/recipes/assets/index.html +57 -59
  395. package/app/recipes/billing/help/index.html +52 -57
  396. package/app/recipes/billing/index.html +57 -59
  397. package/app/recipes/chat.assistant/help/index.html +52 -57
  398. package/app/recipes/chat.assistant/index.html +57 -59
  399. package/app/recipes/comments/help/index.html +52 -57
  400. package/app/recipes/comments/index.html +57 -59
  401. package/app/recipes/commerce.customers/help/index.html +52 -57
  402. package/app/recipes/commerce.customers/index.html +57 -59
  403. package/app/recipes/commerce.estimates/help/index.html +52 -57
  404. package/app/recipes/commerce.estimates/index.html +57 -59
  405. package/app/recipes/commerce.purchases/help/index.html +52 -57
  406. package/app/recipes/commerce.purchases/index.html +57 -59
  407. package/app/recipes/commerce.sales/help/index.html +52 -57
  408. package/app/recipes/commerce.sales/index.html +57 -59
  409. package/app/recipes/commerce.vendors/help/index.html +52 -57
  410. package/app/recipes/commerce.vendors/index.html +57 -59
  411. package/app/recipes/commerce.wholesale/help/index.html +52 -57
  412. package/app/recipes/commerce.wholesale/index.html +57 -59
  413. package/app/recipes/events.calendar/help/index.html +52 -57
  414. package/app/recipes/events.calendar/index.html +57 -59
  415. package/app/recipes/expenses.tracking/help/index.html +88 -0
  416. package/app/recipes/expenses.tracking/index.html +92 -0
  417. package/app/recipes/fields.form-customization/help/index.html +52 -57
  418. package/app/recipes/fields.form-customization/index.html +57 -59
  419. package/app/recipes/ingestion/help/index.html +88 -0
  420. package/app/recipes/ingestion/index.html +93 -0
  421. package/app/recipes/integrations/help/index.html +88 -0
  422. package/app/recipes/integrations/index.html +92 -0
  423. package/app/recipes/inventory.stock/help/index.html +52 -57
  424. package/app/recipes/inventory.stock/index.html +57 -59
  425. package/app/recipes/ledgers.bookkeeping/help/index.html +52 -57
  426. package/app/recipes/ledgers.bookkeeping/index.html +57 -59
  427. package/app/recipes/messages/help/index.html +52 -57
  428. package/app/recipes/messages/index.html +57 -59
  429. package/app/recipes/products/help/index.html +52 -57
  430. package/app/recipes/products/index.html +57 -59
  431. package/app/recipes/projects.tracker/help/index.html +52 -57
  432. package/app/recipes/projects.tracker/index.html +57 -59
  433. package/app/recipes/reports.materialized/help/index.html +52 -57
  434. package/app/recipes/reports.materialized/index.html +57 -59
  435. package/app/recipes/reports.runtime/help/index.html +88 -0
  436. package/app/recipes/reports.runtime/index.html +92 -0
  437. package/app/recipes/sales.pipeline/help/index.html +52 -57
  438. package/app/recipes/sales.pipeline/index.html +57 -59
  439. package/app/recipes/tags.taxonomy/help/index.html +52 -57
  440. package/app/recipes/tags.taxonomy/index.html +57 -59
  441. package/app/recipes/team-collaboration/help/index.html +52 -57
  442. package/app/recipes/team-collaboration/index.html +57 -59
  443. package/app/recipes/timesheets.time-entries/help/index.html +88 -0
  444. package/app/recipes/timesheets.time-entries/index.html +92 -0
  445. package/app/s/custom-accounts/index.html +82 -0
  446. package/app/s/custom-appointments/index.html +82 -0
  447. package/app/s/custom-billing/index.html +47 -54
  448. package/app/s/custom-buying/index.html +47 -54
  449. package/app/s/custom-checkout/index.html +82 -0
  450. package/app/s/custom-classes/index.html +47 -54
  451. package/app/s/custom-clients/index.html +82 -0
  452. package/app/s/custom-events/index.html +82 -0
  453. package/app/s/custom-fleet/index.html +82 -0
  454. package/app/s/custom-giving/index.html +82 -0
  455. package/app/s/custom-jobs/index.html +47 -54
  456. package/app/s/custom-kitchen/index.html +47 -54
  457. package/app/s/custom-material/index.html +47 -54
  458. package/app/s/custom-meetings/index.html +82 -0
  459. package/app/s/custom-members/index.html +47 -54
  460. package/app/s/custom-parts/index.html +47 -54
  461. package/app/s/custom-rentals/index.html +82 -0
  462. package/app/s/custom-roastery/index.html +82 -0
  463. package/app/s/custom-schedule/index.html +47 -54
  464. package/app/s/custom-shelf/index.html +82 -0
  465. package/app/s/custom-shop/index.html +47 -54
  466. package/app/s/custom-wholesale/index.html +47 -54
  467. package/app/s/custom-work/index.html +82 -0
  468. package/app/s/custom-yard/index.html +82 -0
  469. package/app/s/section-access-control/index.html +47 -54
  470. package/app/s/section-account-security/index.html +47 -54
  471. package/app/s/section-accounting/index.html +47 -54
  472. package/app/s/section-activity/index.html +47 -54
  473. package/app/s/section-agreements/index.html +47 -54
  474. package/app/s/section-analytics/index.html +47 -54
  475. package/app/s/section-assets/index.html +47 -54
  476. package/app/s/section-billing/index.html +47 -54
  477. package/app/s/section-calendar/index.html +47 -54
  478. package/app/s/section-catalog/index.html +47 -54
  479. package/app/s/section-chat.assistant/index.html +47 -54
  480. package/app/s/section-comments/index.html +47 -54
  481. package/app/s/section-fields.form-customization/index.html +47 -54
  482. package/app/s/section-ingestion/index.html +82 -0
  483. package/app/s/section-integrations/index.html +82 -0
  484. package/app/s/section-messages/index.html +47 -54
  485. package/app/s/section-more/index.html +47 -54
  486. package/app/s/section-operations/index.html +47 -54
  487. package/app/s/section-projects/index.html +47 -54
  488. package/app/s/section-purchasing/index.html +47 -54
  489. package/app/s/section-reports.materialized/index.html +47 -54
  490. package/app/s/section-reports.runtime/index.html +82 -0
  491. package/app/s/section-sales/index.html +47 -54
  492. package/app/s/section-taxonomy/index.html +47 -54
  493. package/app/s/section-team/index.html +47 -54
  494. package/app/s/section-work/index.html +82 -0
  495. package/dist/ai/state.svelte.d.ts +13 -0
  496. package/dist/ai/state.svelte.js +33 -0
  497. package/dist/assistant/change.d.ts +14 -3
  498. package/dist/assistant/change.js +26 -3
  499. package/dist/assistant/engine.js +5 -1
  500. package/dist/assistant/prompt.js +7 -3
  501. package/dist/catalog/catalog.json +11263 -14455
  502. package/dist/catalog/generate/exclusions.d.ts +2 -0
  503. package/dist/catalog/generate/exclusions.js +14 -0
  504. package/dist/catalog/generate/extract.js +28 -7
  505. package/dist/catalog/types.d.ts +7 -0
  506. package/dist/components/AdvancedStyles.svelte +138 -0
  507. package/dist/components/AdvancedStyles.svelte.d.ts +6 -0
  508. package/dist/components/AiModelsPage.svelte +40 -0
  509. package/dist/components/AiModelsPage.svelte.d.ts +7 -0
  510. package/dist/components/AiSetup.svelte +9 -6
  511. package/dist/components/AiStatusIcons.svelte +8 -5
  512. package/dist/components/AppSettings.svelte +105 -1
  513. package/dist/components/BrowserAssistant.svelte +16 -17
  514. package/dist/components/BrowserAssistant.svelte.d.ts +2 -0
  515. package/dist/components/ChildRecords.svelte +61 -14
  516. package/dist/components/ChildRecords.svelte.d.ts +1 -0
  517. package/dist/components/ConnectTools.svelte +5 -2
  518. package/dist/components/CookbooksPanel.svelte +56 -33
  519. package/dist/components/CopyButton.svelte +65 -0
  520. package/dist/components/CopyButton.svelte.d.ts +24 -0
  521. package/dist/components/ExportPanel.svelte +292 -57
  522. package/dist/components/ExportPanel.svelte.d.ts +10 -1
  523. package/dist/components/FeatureCard.svelte +21 -10
  524. package/dist/components/FeaturesPanel.svelte +4 -1
  525. package/dist/components/FieldInput.svelte +6 -3
  526. package/dist/components/FieldMapForm.svelte +6 -10
  527. package/dist/components/FieldMapForm.svelte.d.ts +1 -0
  528. package/dist/components/FormWorkspace.svelte +80 -9
  529. package/dist/components/FormWorkspace.svelte.d.ts +1 -0
  530. package/dist/components/HeaderIconLink.svelte +86 -0
  531. package/dist/components/HeaderIconLink.svelte.d.ts +14 -0
  532. package/dist/components/HelpView.svelte +3 -0
  533. package/dist/components/ModelOptions.svelte +13 -2
  534. package/dist/components/ModelPage.svelte +33 -5
  535. package/dist/components/ModelPage.svelte.d.ts +4 -0
  536. package/dist/components/ModelWorkspace.svelte +148 -50
  537. package/dist/components/ModelWorkspace.svelte.d.ts +4 -0
  538. package/dist/components/PackagePage.svelte +96 -0
  539. package/dist/components/PackagePage.svelte.d.ts +9 -0
  540. package/dist/components/ProductMedia.svelte +95 -0
  541. package/dist/components/ProductMedia.svelte.d.ts +10 -0
  542. package/dist/components/RecipeCards.svelte +13 -1
  543. package/dist/components/RecipeHelp.svelte +3 -0
  544. package/dist/components/RecipeOptions.svelte +13 -1
  545. package/dist/components/RecordFeatures.svelte +22 -8
  546. package/dist/components/RecordView.svelte +354 -0
  547. package/dist/components/RecordView.svelte.d.ts +14 -0
  548. package/dist/components/RelationField.svelte +5 -2
  549. package/dist/components/SectionActions.svelte +8 -5
  550. package/dist/components/SectionHeading.svelte +63 -0
  551. package/dist/components/SectionHeading.svelte.d.ts +11 -0
  552. package/dist/components/SectionIcons.svelte +15 -3
  553. package/dist/components/SectionOverview.svelte +33 -3
  554. package/dist/components/SectionOverview.svelte.d.ts +4 -0
  555. package/dist/components/SectionPage.svelte +25 -165
  556. package/dist/components/SectionView.svelte +172 -0
  557. package/dist/components/SectionView.svelte.d.ts +18 -0
  558. package/dist/components/SettingsPanel.svelte +3 -9
  559. package/dist/components/SettingsPanel.svelte.d.ts +1 -5
  560. package/dist/components/ThemeBridge.svelte +80 -4
  561. package/dist/components/ThemeBridge.svelte.d.ts +5 -1
  562. package/dist/components/ThemeSection.svelte +208 -117
  563. package/dist/components/ThemeSection.svelte.d.ts +3 -7
  564. package/dist/components/VariantGridForm.svelte +9 -13
  565. package/dist/components/VariantGridForm.svelte.d.ts +1 -0
  566. package/dist/components/VoiceTyping.svelte +3 -0
  567. package/dist/cookbook/describe.d.ts +29 -0
  568. package/dist/cookbook/describe.js +164 -0
  569. package/dist/cookbook/file.d.ts +6 -0
  570. package/dist/cookbook/file.js +18 -4
  571. package/dist/cookbook/prompt.d.ts +49 -0
  572. package/dist/cookbook/prompt.js +96 -0
  573. package/dist/cookbook/store.svelte.d.ts +13 -0
  574. package/dist/cookbook/store.svelte.js +36 -8
  575. package/dist/core/prompt.js +10 -1
  576. package/dist/core/reply.d.ts +6 -1
  577. package/dist/data/children.d.ts +50 -6
  578. package/dist/data/children.js +146 -16
  579. package/dist/data/derived.d.ts +37 -29
  580. package/dist/data/derived.js +49 -30
  581. package/dist/data/display.d.ts +21 -8
  582. package/dist/data/display.js +74 -11
  583. package/dist/data/fakes.d.ts +48 -9
  584. package/dist/data/fakes.js +146 -22
  585. package/dist/data/labels.d.ts +7 -2
  586. package/dist/data/labels.js +12 -2
  587. package/dist/data/list-sort.d.ts +8 -0
  588. package/dist/data/list-sort.js +45 -0
  589. package/dist/data/money.d.ts +225 -0
  590. package/dist/data/money.js +411 -0
  591. package/dist/data/packs.d.ts +13 -0
  592. package/dist/data/packs.js +1224 -0
  593. package/dist/data/planner-source.js +120 -3
  594. package/dist/data/source.d.ts +13 -2
  595. package/dist/data/source.js +274 -40
  596. package/dist/features/palette.d.ts +2 -0
  597. package/dist/features/palette.js +1 -1
  598. package/dist/forms/stock.d.ts +1 -1
  599. package/dist/forms/stock.js +3 -1
  600. package/dist/index.d.ts +7 -2
  601. package/dist/index.js +6 -1
  602. package/dist/kitchen/LiveKitchenBridge.svelte +73 -0
  603. package/dist/kitchen/LiveKitchenBridge.svelte.d.ts +8 -0
  604. package/dist/kitchen/live.d.ts +7 -0
  605. package/dist/kitchen/live.js +51 -0
  606. package/dist/library/icons.js +34 -0
  607. package/dist/library/library.json +1546 -15
  608. package/dist/library/pending.json +5 -0
  609. package/dist/library/types.d.ts +4 -0
  610. package/dist/motion/tokens.d.ts +6 -0
  611. package/dist/motion/tokens.js +32 -0
  612. package/dist/motion/view-transition.d.ts +13 -0
  613. package/dist/motion/view-transition.js +17 -0
  614. package/dist/overviews/definitions.d.ts +41 -2
  615. package/dist/overviews/definitions.js +111 -4
  616. package/dist/overviews/models.d.ts +10 -0
  617. package/dist/overviews/models.js +19 -0
  618. package/dist/overviews/registry.d.ts +92 -5
  619. package/dist/overviews/registry.js +468 -58
  620. package/dist/overviews/validate.js +2 -2
  621. package/dist/planner/Planner.svelte +374 -166
  622. package/dist/planner/PlannerControls.svelte +255 -0
  623. package/dist/planner/PlannerControls.svelte.d.ts +17 -0
  624. package/dist/planner/PlannerLifecycle.svelte +73 -0
  625. package/dist/planner/PlannerLifecycle.svelte.d.ts +9 -0
  626. package/dist/planner/app.svelte.d.ts +12 -2
  627. package/dist/planner/app.svelte.js +13 -3
  628. package/dist/planner/assistant.js +20 -2
  629. package/dist/planner/commands/adapter.js +9 -2
  630. package/dist/planner/commands/types.d.ts +1 -1
  631. package/dist/planner/commands/types.js +1 -0
  632. package/dist/planner/header-icons.d.ts +12 -0
  633. package/dist/planner/header-icons.js +12 -0
  634. package/dist/planner/host/HostPlanner.svelte +70 -0
  635. package/dist/planner/host/HostPlanner.svelte.d.ts +17 -0
  636. package/dist/planner/host/session.svelte.d.ts +28 -0
  637. package/dist/planner/host/session.svelte.js +186 -0
  638. package/dist/planner/routes.d.ts +49 -0
  639. package/dist/planner/routes.js +64 -0
  640. package/dist/planner/shell.d.ts +40 -0
  641. package/dist/planner/shell.js +56 -0
  642. package/dist/planner/tab.svelte.d.ts +6 -3
  643. package/dist/planner/tab.svelte.js +11 -4
  644. package/dist/planner/title.d.ts +15 -0
  645. package/dist/planner/title.js +21 -0
  646. package/dist/planner/title.svelte.d.ts +6 -0
  647. package/dist/planner/title.svelte.js +11 -0
  648. package/dist/planner/types.d.ts +39 -7
  649. package/dist/products/media.d.ts +20 -0
  650. package/dist/products/media.js +65 -0
  651. package/dist/recipes/help/descriptions.json +1 -3
  652. package/dist/recipes/index.d.ts +2 -0
  653. package/dist/recipes/index.js +6 -0
  654. package/dist/recipes/plumbing.d.ts +35 -1
  655. package/dist/recipes/plumbing.js +74 -0
  656. package/dist/screens/definition.d.ts +35 -0
  657. package/dist/screens/definition.js +132 -0
  658. package/dist/screens/relations.d.ts +17 -0
  659. package/dist/screens/relations.js +98 -0
  660. package/dist/screens/totals.d.ts +37 -0
  661. package/dist/screens/totals.js +65 -0
  662. package/dist/sections/info.d.ts +1 -1
  663. package/dist/sections/info.js +2 -2
  664. package/dist/settings/app-settings.d.ts +17 -1
  665. package/dist/settings/app-settings.js +40 -3
  666. package/dist/smrt-version.d.ts +2 -0
  667. package/dist/smrt-version.js +4 -0
  668. package/dist/styles/planner-forms.css +53 -0
  669. package/dist/styles/planner-lists.css +43 -0
  670. package/dist/theme/css-highlight.d.ts +6 -0
  671. package/dist/theme/css-highlight.js +34 -0
  672. package/dist/theme/custom-css.svelte.d.ts +34 -0
  673. package/dist/theme/custom-css.svelte.js +246 -0
  674. package/dist/theme/runtime.js +25 -5
  675. package/dist/theme/theme.d.ts +26 -3
  676. package/dist/theme/theme.js +70 -2
  677. package/dist/upstream/overlay.d.ts +14 -5
  678. package/dist/upstream/overlay.js +20 -2
  679. package/package.json +12 -6
  680. package/app/_app/immutable/assets/0.B5zXkXe_.css +0 -1
  681. package/app/_app/immutable/assets/10.hpcnxvK1.css +0 -1
  682. package/app/_app/immutable/assets/11.D7zoXfVV.css +0 -1
  683. package/app/_app/immutable/assets/12.CPobm1ED.css +0 -1
  684. package/app/_app/immutable/assets/2.CyaWdRdI.css +0 -1
  685. package/app/_app/immutable/assets/3.BlPQOes8.css +0 -1
  686. package/app/_app/immutable/assets/8.2gQeKBp_.css +0 -1
  687. package/app/_app/immutable/assets/9.HOPT4xtg.css +0 -1
  688. package/app/_app/immutable/assets/AiSetup.Cb22AigN.css +0 -1
  689. package/app/_app/immutable/assets/Button.DkP0qkG9.css +0 -1
  690. package/app/_app/immutable/assets/ConnectTools.BgIJOOGW.css +0 -1
  691. package/app/_app/immutable/assets/FieldMapForm.BCU-4pO4.css +0 -1
  692. package/app/_app/immutable/assets/ModelPage.Dd3LcMta.css +0 -1
  693. package/app/_app/immutable/assets/SectionActions.CTkVuNMF.css +0 -1
  694. package/app/_app/immutable/assets/SectionIcons.5Udq9vN-.css +0 -1
  695. package/app/_app/immutable/assets/SegmentedControl.B8SrQacd.css +0 -1
  696. package/app/_app/immutable/assets/dist.C5nHBk_O.css +0 -1
  697. package/app/_app/immutable/assets/feedback.BVKAwFck.css +0 -1
  698. package/app/_app/immutable/assets/forms.BChZ2RWM.css +0 -1
  699. package/app/_app/immutable/assets/percent.LH0z-ozZ.css +0 -1
  700. package/app/_app/immutable/assets/store.CGDwHkkF.css +0 -1
  701. package/app/_app/immutable/assets/ui.B1A1Zl2p.css +0 -1
  702. package/app/_app/immutable/assets/workspace.BIMkuZDb.css +0 -1
  703. package/app/_app/immutable/chunks/1okeBSoq.js +0 -1
  704. package/app/_app/immutable/chunks/2jFBkS1C.js +0 -1
  705. package/app/_app/immutable/chunks/6P9zxrzU.js +0 -1
  706. package/app/_app/immutable/chunks/B32EWqI8.js +0 -9
  707. package/app/_app/immutable/chunks/B4Kevpe0.js +0 -1
  708. package/app/_app/immutable/chunks/BKwRT_1p.js +0 -1
  709. package/app/_app/immutable/chunks/BS4h9ES-.js +0 -1
  710. package/app/_app/immutable/chunks/CMhpRMKg.js +0 -1
  711. package/app/_app/immutable/chunks/CPRHZZeW.js +0 -1
  712. package/app/_app/immutable/chunks/CRQ1Pmzr.js +0 -1
  713. package/app/_app/immutable/chunks/CWtfVMDz.js +0 -1
  714. package/app/_app/immutable/chunks/Chyo8rdT.js +0 -3
  715. package/app/_app/immutable/chunks/Ci0DUht6.js +0 -34
  716. package/app/_app/immutable/chunks/CmmuWmp6.js +0 -2
  717. package/app/_app/immutable/chunks/CrFNLK0f.js +0 -1
  718. package/app/_app/immutable/chunks/CsprTb3f.js +0 -2
  719. package/app/_app/immutable/chunks/CygC84VT.js +0 -2
  720. package/app/_app/immutable/chunks/D0VgZnk1.js +0 -1
  721. package/app/_app/immutable/chunks/DD7gpKb2.js +0 -1
  722. package/app/_app/immutable/chunks/DNRgqfTx.js +0 -1
  723. package/app/_app/immutable/chunks/DVRKjN-E.js +0 -1
  724. package/app/_app/immutable/chunks/D_J_XtJy.js +0 -846
  725. package/app/_app/immutable/chunks/Dp9GVO-9.js +0 -1
  726. package/app/_app/immutable/chunks/DqcD-WtP.js +0 -1
  727. package/app/_app/immutable/chunks/QukgIHDX.js +0 -1
  728. package/app/_app/immutable/chunks/WxSPP8QW.js +0 -4
  729. package/app/_app/immutable/chunks/Xp1g1t4n.js +0 -3
  730. package/app/_app/immutable/chunks/leQCwW2d.js +0 -1
  731. package/app/_app/immutable/chunks/p6bgzXiY.js +0 -1
  732. package/app/_app/immutable/entry/app.IZIJXhgq.js +0 -2
  733. package/app/_app/immutable/entry/start.BuaYHD1N.js +0 -1
  734. package/app/_app/immutable/nodes/0.m_U8WC7E.js +0 -10
  735. package/app/_app/immutable/nodes/1.Crw8ULhB.js +0 -1
  736. package/app/_app/immutable/nodes/10.1nQxyH9H.js +0 -4
  737. package/app/_app/immutable/nodes/11.Cw0JnQF3.js +0 -1
  738. package/app/_app/immutable/nodes/12.BIocA1aI.js +0 -1
  739. package/app/_app/immutable/nodes/2.CR5BwGnt.js +0 -17
  740. package/app/_app/immutable/nodes/3.1B56hgAG.js +0 -1
  741. package/app/_app/immutable/nodes/4.SSIC7sUh.js +0 -1
  742. package/app/_app/immutable/nodes/5.DgdwleDQ.js +0 -1
  743. package/app/_app/immutable/nodes/6.DmD9rqLU.js +0 -1
  744. package/app/_app/immutable/nodes/7.DdngsBmo.js +0 -1
  745. package/app/_app/immutable/nodes/8.D2Mszsua.js +0 -3
  746. package/app/_app/immutable/nodes/9.CLYsywul.js +0 -1
  747. package/app/m/content/Contents/index.html +0 -96
  748. package/app/m/preferences/UiPreferenceRecord/index.html +0 -96
  749. package/app/m/users/AccessRequest/index.html +0 -96
  750. package/app/m/users/ResourceGrant/index.html +0 -96
  751. package/app/m/users/UsersCliAuthRequest/index.html +0 -96
  752. package/app/m/users/UsersMagicLinkToken/index.html +0 -96
@@ -1 +0,0 @@
1
- import{$ as e,B as t,Dt as n,E as r,Et as i,F as a,Ft as o,G as s,H as c,I as l,J as u,K as d,L as f,M as p,Mt as m,N as h,Nt as g,Pt as _,R as v,T as y,Tt as b,U as x,V as S,W as C,Y as w,Z as T,a as E,at as D,bt as O,d as k,dt as A,et as j,ft as M,gt as N,k as P,mt as F,n as ee,o as te,ot as I,pt as L,q as R,r as z,ut as B,v as V,vt as H,wt as U,xt as W}from"./Chyo8rdT.js";import"./xihTtKlq.js";import"./D0VgZnk1.js";import{a as ne,t as re}from"./BWPhGFHl.js";import{n as ie}from"./CWtfVMDz.js";import{t as ae}from"./CPRHZZeW.js";import{n as oe}from"./DVRKjN-E.js";import{$ as se,A as ce,B as le,C as G,E as ue,F as K,G as de,H as q,I as J,K as fe,L as pe,M as me,N as he,P as ge,R as _e,S as ve,T as ye,U as be,V as xe,W as Se,X as Ce,Y as we,j as Y,k as Te,q as Ee,x as De,z as Oe}from"./WxSPP8QW.js";import{i as ke}from"./CygC84VT.js";function Ae(e,t,n,r=64){return n===`left`?-e>=r&&Math.abs(e)>Math.abs(t)*1.5:n===`right`?e>=r&&Math.abs(e)>Math.abs(t)*1.5:t>=r&&Math.abs(t)>Math.abs(e)*1.5}function je(e,t){let n=t,r=null;function i(e){if(n.enabled===!1||e.touches.length!==1)return;let t=e.touches[0];r={x:t.clientX,y:t.clientY}}function a(e){if(!r)return;let t=e.changedTouches[0],i=t.clientX-r.x,a=t.clientY-r.y;r=null,Ae(i,a,n.direction,n.threshold)&&n.onDismiss()}function o(){r=null}return e.addEventListener(`touchstart`,i,{passive:!0}),e.addEventListener(`touchend`,a),e.addEventListener(`touchcancel`,o),{update(e){n=e},destroy(){e.removeEventListener(`touchstart`,i),e.removeEventListener(`touchend`,a),e.removeEventListener(`touchcancel`,o)}}}var Me=Symbol(`smrt-admin-shell`);function Ne(e){return n(Me,e),e}function Pe(){let e=U(Me);if(!e)throw Error(`[useAdminShell] No AdminShell state found on Svelte context.`);return e}function Fe(e,n){i(n,!0);let r=E(n,`label`,3,`Running activities`),a=Pe(),o=W(()=>a.activityBadge(n.edge));var s=c(),l=A(s),u=e=>{{let n=W(()=>T(o).hasFailed?`error`:`primary`),i=W(()=>`${r()}: ${T(o).count}`);ie(e,{get variant(){return T(n)},size:`sm`,get title(){return r()},get"aria-label"(){return T(i)},children:(e,n)=>{m();var r=d();D(e=>t(r,e),[()=>T(o).progress===null?T(o).count:`${Math.round(T(o).progress)}%`]),S(e,r)},$$slots:{default:!0}})}};v(l,e=>{(T(o).count>0||T(o).hasFailed)&&e(u)}),S(e,s),b()}var X=ne({"ui.stt_test.heading":`STT Adapter Test`,"ui.stt_test.adapter_browser":`Browser (Web Speech API)`,"ui.stt_test.adapter_whisper_wasm":`Whisper WASM (v2)`,"ui.stt_test.adapter_whisper_cpp":`Whisper CPP`,"ui.stt_test.status_initializing":`Initializing...`,"ui.stt_test.status_ready":`Ready`,"ui.stt_test.status_not_initialized":`Not initialized`,"ui.workspace_shell.close_navigation":`Close navigation`,"ui.workspace_shell.close_inspector":`Close inspector`,"ui.workspace_shell.primary_navigation":`Primary navigation`,"ui.workspace_shell.workspace_navigation":`Workspace navigation`,"ui.workspace_shell.inspector_tools":`Inspector tools`,"ui.tools_dock.no_tools_available":`No tools available`,"ui.tools_dock.no_tools_context":`No tools are available for the current context.`,"ui.tools_dock.select_tool":`Select a tool to begin.`,"ui.tools_dock.workspace_tools":`Workspace tools`,"ui.admin_shell.no_focus_tools":`No focus tools`,"ui.admin_shell.focus_tools":`Focus tools`,"ui.admin_shell.no_app_panel":`No app panel`,"ui.admin_shell.no_system_panel":`No system panel`,"ui.admin_shell.shell_shortcuts":`Shell shortcuts`,"ui.admin_shell.close_shortcuts":`Close shortcuts`,"ui.admin_shell.shortcuts":`Shortcuts`,"ui.admin_shell.close":`Close`,"ui.admin_shell.home":`Home`,"ui.admin_shell.menu":`Menu`,"ui.admin_shell.expand_panel":`Expand {panel}`,"ui.admin_shell.collapse_panel":`Collapse {panel}`,"ui.admin_shell.close_panel":`Close {label}`,"ui.admin_shell.open_panel":`Open {label}`,"ui.admin_shell.resize_panel":`Resize {label}`,"ui.shell_nav_toggle.collapse":`Collapse {label}`,"ui.shell_nav_toggle.expand":`Expand {label}`,"ui.shell_nav_toggle.navigation":`navigation`,"ui.phone_top_bar.back":`Back to {label}`,"ui.phone_bottom_bar.label":`Main`,"ui.phone_bottom_bar.unread":`{count} unread`,"ui.phone_bottom_bar.new":`new`,"ui.activity_toasts.dismiss":`Dismiss activity notification`,"ui.activity_toasts.dismiss_action":`Dismiss`,"ui.activity_item.view":`View`,"ui.activity_item.cancel":`Cancel`,"ui.activity_list.empty":`No activities`,"ui.activity_ticker.label":`Running processes`,"ui.activity_ticker.empty":`No active processes`,"ui.activity_ticker.pause":`Pause scrolling activities`,"ui.activity_ticker.resume":`Resume scrolling activities`,"ui.activity_ticker.queued":`Queued`,"ui.app_scope_panel.app_scope":`App scope`,"ui.app_shell.settings_link":`Shell settings`,"ui.app_shell.navigation":`Application navigation`,"ui.app_shell.slot_content":`{slot} content`,"ui.shell_slot.header_start":`Header, left`,"ui.shell_slot.header_center":`Header, middle`,"ui.shell_slot.header_end":`Header, right`,"ui.shell_slot.footer_start":`Footer, left`,"ui.shell_slot.footer_center":`Footer, middle`,"ui.shell_slot.footer_end":`Footer, right`,"ui.shell_slot.left_sidebar_header":`Left sidebar, header`,"ui.shell_slot.left_sidebar_footer":`Left sidebar, footer`,"ui.shell_slot.right_sidebar_header":`Right sidebar, header`,"ui.shell_slot.right_sidebar_footer":`Right sidebar, footer`,"ui.shell_slot.short_header_start":`Left`,"ui.shell_slot.short_header_center":`Middle`,"ui.shell_slot.short_header_end":`Right`,"ui.shell_slot.short_footer_start":`Left`,"ui.shell_slot.short_footer_center":`Middle`,"ui.shell_slot.short_footer_end":`Right`,"ui.shell_slot.short_sidebar_header":`Header`,"ui.shell_slot.short_sidebar_footer":`Footer`,"ui.owner_setup.heading":`Set up your local application`,"ui.owner_setup.unavailable":`Local owner setup is unavailable or has already been completed.`,"ui.owner_setup.intro":`Create the real local owner account. This invitation works once and stays on this device.`,"ui.owner_setup.name":`Name`,"ui.owner_setup.email":`Email`,"ui.owner_setup.tenant_name":`Workspace name (optional)`,"ui.owner_setup.submit":`Create owner`,"ui.shell_settings_page.heading":`Settings`,"ui.shell_settings_page.description":`Adjust the workspace shell — panel layout and keyboard shortcuts.`,"ui.hotkey_input.capture_title":`Press a key to capture it`,"ui.hotkey_input.conflicts_with":`Conflicts with`,"ui.shell_settings_panel.shell_settings":`Shell settings`,"ui.shell_settings_panel.description":`Panel preferences and physical-key shortcuts.`,"ui.shell_settings_panel.disable_hotkeys":`Disable hotkeys`,"ui.shell_settings_panel.enable_hotkeys":`Enable hotkeys`,"ui.shell_settings_panel.collapse":`Collapse`,"ui.shell_settings_panel.expand":`Expand`,"ui.shell_layout_editor.heading":`Shell layout`,"ui.shell_layout_editor.description":`Choose which panels appear and arrange the navigation. Drag a handle, or focus it, press Space, and use the arrow keys.`,"ui.shell_layout_editor.reset":`Reset to defaults`,"ui.shell_layout_editor.panels":`Panels`,"ui.shell_layout_editor.show_panel":`Show {panel} panel`,"ui.shell_layout_editor.start_expanded":`Start {panel} panel expanded`,"ui.shell_layout_editor.panel_unavailable":`The {panel} panel is not available in this app.`,"ui.shell_layout_editor.navigation":`Navigation`,"ui.shell_layout_editor.top_level":`Top level`,"ui.shell_layout_editor.show_entry":`Show {label} in navigation`,"ui.shell_layout_editor.new_section":`New section`,"ui.shell_layout_editor.new_section_label":`New section`,"ui.shell_layout_editor.section_name":`Name of section {label}`,"ui.shell_layout_editor.rename_item":`Rename {label}`,"ui.shell_layout_editor.item_name":`Name of item {label}`,"ui.shell_layout_editor.reset_item":`Reset {label} to {original}`,"ui.shell_layout_editor.section_icon":`Icon of {label}`,"ui.shell_layout_editor.icon_option":`Use {icon} icon`,"ui.section_menu.label":`{label} entries`,"ui.section_menu.empty":`No entries in this section.`,"ui.shell_layout_editor.show_title_for":`Show title of {label}`,"ui.shell_layout_editor.delete":`Delete`,"ui.shell_layout_editor.delete_section":`Delete section {label}`,"ui.shell_layout_editor.delete_confirm":`Delete {label}? Its items return to their default sections.`,"ui.shell_layout_editor.preview":`Preview`,"ui.shell_layout_editor.preview_label":`Navigation preview`,"ui.shell_layout_editor.sortable_label":`Navigation sections and items`,"ui.layout_edit.toggle":`Edit layout`,"ui.layout_edit.announce_on":`Layout editing on. Drag items between zones, or focus a grip, press Space, and use the arrow keys.`,"ui.layout_edit.announce_off":`Layout editing off.`,"ui.layout_edit.zone":`{region} · {slot}`,"ui.layout_edit.region_hidden":`{region} · hidden`,"ui.layout_edit.show_region":`Show {region}`,"ui.layout_edit.hide_region":`Hide {region}`,"ui.layout_edit.hide_last_region":`Cannot hide {region}: at least one region must stay visible`,"ui.app_shell.brand_item":`App title`,"ui.layout_edit.section_options":`Options for section {label}`,"ui.layout_edit.edit_section":`Edit section {label}`,"ui.shell_region.header":`Header`,"ui.shell_region.left_sidebar":`Left sidebar`,"ui.shell_region.right_sidebar":`Right sidebar`,"ui.shell_region.footer":`Footer`,"ui.shortcuts_overlay.open_shortcuts":`Open shortcuts`,"ui.shortcuts_overlay.close_drawer":`Close drawer`,"ui.shortcuts_overlay.close":`Close`,"ui.shortcuts_overlay.escape":`Esc`,"ui.system_scope_panel.system_scope":`System scope`,"ui.system_scope_panel.activities":`Activities`,"ui.system_scope_panel.no_running_work":`No running work`,"ui.system_status_chips.system_status":`System status`,"ui.tenant_nav.tenant_navigation":`Tenant navigation`,"ui.tenant_nav.needs_attention":`Needs attention`,"ui.workspace_account_menu.open":`Open account menu`,"ui.workspace_account_menu.current_tenant":`{tenant} — current`,"ui.workspace_account_menu.sign_out":`Sign out`,"ui.activity_feed.title":`Live activity feed`,"ui.activity_feed.description":`A smrt-web live collection reconciled into the shell activity registry.`,"ui.activity_feed.enqueue_job":`Enqueue job`,"ui.activity_feed.advance_job":`Advance job`,"ui.activity_feed.complete_job":`Complete job`,"ui.activity_feed.fail_job":`Fail job`,"ui.activity_feed.clear_finished":`Clear finished`,"ui.activity_feed.rows_heading":`Backing collection rows`,"ui.activity_feed.no_rows":`No rows yet`,"ui.activity_feed.job_label":`Render job`,"ui.system_feed.title":`System feed`,"ui.system_feed.description":`Polls an app-provided status endpoint and maps it into the system-scope panels and status chips.`,"ui.system_feed.pause":`Pause polling`,"ui.system_feed.resume":`Resume polling`,"ui.system_feed.refresh":`Refresh now`,"ui.system_feed.fail_next":`Fail next fetch`,"ui.system_feed.status_label":`Feed status`,"ui.system_feed.tick_label":`Ticks`,"ui.system_feed.error_label":`Last error`,"ui.system_feed.jobs_panel":`Jobs`,"ui.system_feed.schedules_panel":`Schedules`,"ui.system_feed.dispatch_panel":`Dispatch`,"ui.system_feed.chip_workers":`Workers`,"ui.system_feed.chip_running":`Running`,"ui.system_feed.chip_queued":`Queued`,"ui.system_feed.chip_failed":`Failed`}),Ie=x(`<img class="smrt-admin-shell__logo svelte-183tmwc"/>`),Le=x(`<span aria-hidden="true" class="svelte-183tmwc"> </span>`),Re=x(`<span class="svelte-183tmwc"> </span>`),ze=x(`<div><strong class="svelte-183tmwc"> </strong><!></div>`),Be=x(`<!> <!>`,1),Ve=x(`<a><!></a>`),He=x(`<div><!></div>`);function Ue(e,n){i(n,!0);let a=e=>{var i=c(),a=A(i),d=e=>{var t=c(),r=A(t);h(r,()=>n.brand,()=>({compact:u()})),S(e,t)},f=e=>{var i=Be(),a=A(i),d=e=>{var t=Ie();D(()=>{V(t,`src`,n.logoSrc),V(t,`alt`,l())}),S(e,t)};v(a,e=>{n.logoSrc&&e(d)});var f=L(a,2),p=e=>{var r=c(),i=A(r),a=e=>{var n=Le(),r=M(n,!0);D(e=>t(r,e),[()=>o().charAt(0)]),S(e,n)};v(i,e=>{n.logoSrc||e(a)}),S(e,r)},m=e=>{var i=ze();let a;var c=B(i),l=M(c,!0),u=L(c),d=e=>{var n=Re(),r=M(n,!0);D(()=>t(r,s())),S(e,n)};v(u,e=>{s()&&e(d)}),g(i),D(e=>{a=r(i,1,`smrt-admin-shell__brand-text svelte-183tmwc`,null,a,{wordmark:e}),t(l,o())},[()=>!!n.logoSrc&&!s()]),S(e,i)};v(f,e=>{u()?e(p):e(m,-1)}),S(e,i)};v(a,e=>{n.brand?e(d):e(f,-1)}),S(e,i)},o=E(n,`title`,3,`SMRT`),s=E(n,`subtitle`,3,``),l=E(n,`logoAlt`,3,``),u=E(n,`compact`,3,!1),{t:d}=re();var f=c(),p=A(f),m=e=>{var t=Ve();let i;var s=B(t);a(s),g(t),D(e=>{i=r(t,1,`smrt-admin-shell__brand smrt-admin-shell__brand-link svelte-183tmwc`,null,i,{compact:u()}),V(t,`href`,n.homeHref),V(t,`aria-label`,e)},[()=>o()||d(X[`ui.admin_shell.home`])]),S(e,t)},_=e=>{var t=He();let n;var i=B(t);a(i),g(t),D(()=>n=r(t,1,`smrt-admin-shell__brand svelte-183tmwc`,null,n,{compact:u()})),S(e,t)};v(p,e=>{n.homeHref?e(m):e(_,-1)}),S(e,f),b()}var Z=[`top`,`left`,`right`,`bottom`],We={top:`app`,left:`tenant`,right:`focus`,bottom:`system`},Ge={app:`top`,tenant:`left`,focus:`right`,system:`bottom`},Ke={top:{code:`KeyW`},left:{code:`KeyA`},bottom:{code:`KeyS`},right:{code:`KeyD`}},qe={top:{edge:`top`,scope:`app`,label:`Header`,initial:`collapsed`,presentation:`overlay`,hotkey:Ke.top,collapsedSize:`3.5rem`,expandedSize:`18rem`},left:{edge:`left`,scope:`tenant`,label:`Left sidebar`,initial:`collapsed`,presentation:`push`,hotkey:Ke.left,collapsedSize:`4.25rem`,expandedSize:`16rem`},right:{edge:`right`,scope:`focus`,label:`Right sidebar`,initial:`collapsed`,presentation:`push`,hotkey:Ke.right,collapsedSize:`4.25rem`,expandedSize:`20rem`},bottom:{edge:`bottom`,scope:`system`,label:`Footer`,initial:`collapsed`,presentation:`overlay`,hotkey:Ke.bottom,collapsedSize:`2.75rem`,expandedSize:`18rem`}};function Je(e={}){return{panels:Object.fromEntries(Z.map(t=>{let n=e[t];return n===!1?[t,{...qe[t],initial:`hidden`,hotkey:null}]:[t,{...qe[t],...n,edge:t,scope:n?.scope??We[t]}]}))}}function Ye(e,t,n={},r,i){return t.initial===`hidden`||i?.visible===!1?`hidden`:n.panels?.[e]??(r?t.viewportDefaults?.[r]:void 0)??i?.initial??t.initial}var Xe={min:240,max:720,step:16};function Ze(e,t){if(e!==`left`&&e!==`right`||!t.resizable||t.initial===`hidden`)return null;let n=t.resizable===!0?{}:t.resizable,r=Math.max(0,n.min??Xe.min);return{min:r,max:Math.max(r,n.max??Xe.max),step:Math.max(1,n.step??Xe.step)}}function Qe(e,t){return Math.round(Math.min(t.max,Math.max(t.min,e)))}function $e(e,t){if(t===`state`&&e.viewportDefaults)return!1;let n=e.persist??!0;return typeof n==`boolean`?n:n[t]??!0}function et(e,t){let n={...e};for(let r of[`panels`,`sizes`]){let i=e[r];if(!i)continue;let a={};for(let e of Z)e in i&&$e(t.panels[e],r===`panels`?`state`:`size`)&&(a[e]=i[e]);Object.keys(a).length>0?n[r]=a:delete n[r]}return n}function tt(e,t,n={}){return t.initial===`hidden`?null:n.keymap&&e in n.keymap?n.keymap[e]??null:t.hotkey}function nt(e,t){return{...e,...t,keymap:e.keymap||t.keymap?{...e.keymap??{},...t.keymap??{}}:void 0,panels:e.panels||t.panels?{...e.panels??{},...t.panels??{}}:void 0,sizes:e.sizes||t.sizes?{...e.sizes??{},...t.sizes??{}}:void 0}}function rt(e){let t={};if(e.hotkeysEnabled!==void 0&&(t.hotkeysEnabled=e.hotkeysEnabled),e.activeFocusToolId!==void 0&&(t.activeFocusToolId=e.activeFocusToolId),e.layout!==void 0){let n=pe(e.layout);ge(n)||(t.layout=n)}if(e.keymap&&Object.keys(e.keymap).length>0&&(t.keymap=e.keymap),e.panels&&Object.keys(e.panels).length>0&&(t.panels=e.panels),e.sizes){let n=Object.fromEntries(Object.entries(e.sizes).filter(([,e])=>typeof e==`number`&&Number.isFinite(e)));Object.keys(n).length>0&&(t.sizes=n)}return t}var it=class{key;constructor(e){this.key=e}read(){if(typeof window>`u`)return null;try{let e=window.localStorage.getItem(this.key);return e?JSON.parse(e):null}catch{return null}}write(e){typeof window<`u`&&window.localStorage.setItem(this.key,JSON.stringify(rt(e)))}};function at(e,t,n={}){if(ot(e,n))return null;if(ct(e))return{type:`show-shortcuts`};for(let r of Z){let i=tt(r,t[r],n);if(i&&st(i,e))return{type:`toggle-panel`,edge:r}}return null}function ot(e,t={}){return t.hotkeysEnabled===!1||e.isComposing||lt(e.target)?!0:e.altKey||e.ctrlKey||e.metaKey||e.shiftKey?!ct(e):!1}function st(e,t){return e.code===t.code&&!!e.altKey===t.altKey&&!!e.ctrlKey===t.ctrlKey&&!!e.metaKey===t.metaKey&&!!e.shiftKey===t.shiftKey}function ct(e){return e.key===`?`||e.code===`Slash`&&e.shiftKey}function lt(e){if(!(e instanceof HTMLElement))return!1;let t=e.tagName.toLowerCase();return t===`input`||t===`textarea`||t===`select`||e.isContentEditable?!0:!!e.closest(`[contenteditable="true"]`)}function ut(e){return e?[e.ctrlKey?`Ctrl`:``,e.altKey?`Alt`:``,e.shiftKey?`Shift`:``,e.metaKey?`Meta`:``,e.code.replace(/^Key/,``).replace(/^Digit/,``)].filter(Boolean).join(`+`):`Off`}function dt(e){return e.phone?`phone`:e.desktop?`desktop`:`tablet`}var ft=class{hidden=!1;#e=0;#t=0;#n;#r;#i;constructor(e={}){this.#n=e.revealWithin??56,this.#r=e.hideAfter??12,this.#i=e.showAfter??4}update(e){let t=e.maxY??1/0,n=Math.min(Math.max(e.y,0),Math.max(t,0));if(e.pinned||n<=this.#n)return this.hidden=!1,this.#e=n,this.#t=0,this.hidden;let r=n-this.#e;return this.#e=n,r===0?this.hidden:(this.#t=Math.sign(r)===Math.sign(this.#t)?this.#t+r:r,this.#t>=this.#r?this.hidden=!0:-this.#t>=this.#i&&(this.hidden=!1),this.hidden)}reset(){this.hidden=!1,this.#e=0,this.#t=0}};function pt(e){let t=e.visualHeight*(e.scale??1);return e.layoutHeight-t>(e.threshold??150)}function mt(e){return e.keyboardOpen?`none`:e.formActions?`form`:`nav`}var ht=`[data-form-action-bar]`,gt=`(max-width: 48rem)`,_t=`(min-width: 64rem)`;function Q(){return typeof window>`u`||typeof window.matchMedia!=`function`?`desktop`:window.matchMedia(`(max-width: 48rem)`).matches?`phone`:window.matchMedia(`(min-width: 64rem)`).matches?`desktop`:`tablet`}var $=class{config;adapter;#e=H(F({}));get settings(){return T(this.#e)}set settings(e){N(this.#e,e,!0)}revealed=new Set;#t=H(F({top:`collapsed`,left:`collapsed`,right:`collapsed`,bottom:`collapsed`}));get panels(){return T(this.#t)}set panels(e){N(this.#t,e,!0)}#n=H(`desktop`);get viewport(){return T(this.#n)}set viewport(e){N(this.#n,e,!0)}#r=H(F([]));get focusTools(){return T(this.#r)}set focusTools(e){N(this.#r,e,!0)}#i=H(null);get activeFocusToolId(){return T(this.#i)}set activeFocusToolId(e){N(this.#i,e,!0)}#a=H(0);get dockFocusRequest(){return T(this.#a)}set dockFocusRequest(e){N(this.#a,e,!0)}dockReturnFocus=null;#o=H(F([]));get activities(){return T(this.#o)}set activities(e){N(this.#o,e,!0)}#s=H(F({}));get overlayMatches(){return T(this.#s)}set overlayMatches(e){N(this.#s,e,!0)}#c=H(F({}));get layoutPanels(){return T(this.#c)}set layoutPanels(e){N(this.#c,e,!0)}#l=H(F({}));get inlineEdges(){return T(this.#l)}set inlineEdges(e){N(this.#l,e,!0)}activityListeners=new Set;constructor(e={}){this.config=Je(e.config),this.adapter=e.settingsAdapter??(e.storageKey?new it(e.storageKey):null),this.viewport=e.viewport??Q(),this.layoutPanels={...e.layoutPanels??{}},this.applySettings(e.settings??{},{persist:!1})}async hydrate(){if(!this.adapter)return;let e=await this.adapter.read();e&&this.applySettings(et(e,this.config),{persist:!1})}setViewport(e){j(()=>{if(e===this.viewport)return;this.viewport=e;let t=!1,n={...this.settings.panels??{}};for(let r of Z){let i=this.config.panels[r],a=i.viewportDefaults?.[e];a&&i.initial!==`hidden`&&this.layoutPanels[r]?.visible!==!1&&(delete n[r],t=!0,a===`expanded`&&this.closeExclusivePeers(r),this.panels[r]=a)}t&&(this.settings={...this.settings,panels:n}),e===`phone`&&this.inlineEdges.left&&this.panels.left===`expanded`&&(this.panels.left=`collapsed`),this.applyInline()})}phonePresentation(e){return this.config.panels[e].phone??`drawer`}presentationFor(e){let t=this.config.panels[e];return this.isInline(e)?t.presentation:(e===`left`||e===`right`)&&this.viewport!==`phone`&&t.overlayMedia&&this.overlayMatches[e]?`overlay`:t.presentation}closeOverlaidEdges(){j(()=>{for(let e of[`left`,`right`])this.panels[e]===`expanded`&&this.presentationFor(e)===`overlay`&&(this.panels[e]=`collapsed`)})}isInline(e){return e===`right`||!this.inlineEdges[e]?!1:e!==`left`||this.viewport!==`phone`}setInlineEdges(e){j(()=>{Z.every(t=>!!this.inlineEdges[t]==!!e[t])||(this.inlineEdges={...e},this.applyInline())})}applyInline(){this.isInline(`left`)&&this.panels.left===`collapsed`&&(this.panels.left=`expanded`);for(let e of[`top`,`bottom`])this.isInline(e)&&this.panels[e]===`expanded`&&(this.panels[e]=`collapsed`)}setOverlayMatch(e,t){j(()=>{!!this.overlayMatches[e]!==t&&(this.overlayMatches={...this.overlayMatches,[e]:t})})}isEdgeShown(e){return this.panels[e]===`hidden`?!1:this.viewport!==`phone`||this.phonePresentation(e)!==`hidden`}isRegionVisible(e){switch(e){case`header`:return this.panels.top!==`hidden`;case`footer`:return this.panels.bottom!==`hidden`;case`leftSidebar`:return this.isEdgeShown(`left`)&&this.panels.left===`expanded`;case`rightSidebar`:return this.isEdgeShown(`right`)&&this.panels.right===`expanded`}}resizeLimits(e){return Ze(e,this.config.panels[e])}panelSize(e){if(!this.resizeLimits(e))return null;let t=this.settings.sizes?.[e];return typeof t==`number`&&Number.isFinite(t)?t:null}setPanelSize(e,t,n={}){j(()=>{let r=this.resizeLimits(e);if(!r)return;let i=t===null||!Number.isFinite(t)?null:Qe(t,r);this.settings=nt(this.settings,{sizes:{[e]:i}}),n.persist!==!1&&this.persistSettings()})}snapshot(){return{panels:{...this.panels},viewport:this.viewport,activeFocusToolId:this.activeFocusToolId,settings:{...this.settings,keymap:this.settings.keymap?{...this.settings.keymap}:void 0,panels:this.settings.panels?{...this.settings.panels}:void 0,sizes:this.settings.sizes?{...this.settings.sizes}:void 0}}}applySettings(e,t={}){let n=St(e),r=t.persist;j(()=>{this.settings=nt(this.settings,n);for(let e of Z)this.revealed.delete(e),this.panels[e]=Ye(e,this.config.panels[e],this.settings,this.viewport,this.layoutPanels[e]);this.applyInline(),this.activeFocusToolId=this.settings.activeFocusToolId??this.activeFocusToolId,r!==!1&&this.persistSettings()})}setLayoutPanels(e={}){j(()=>{let t=this.layoutPanels;this.layoutPanels={...e};for(let n of Z){let r=t[n],i=e[n];if(r?.visible===i?.visible&&r?.initial===i?.initial)continue;let a=this.config.panels[n];a.initial!==`hidden`&&(this.revealed.delete(n),this.panels[n]=Ye(n,a,this.settings,this.viewport,i),this.panels[n]===`expanded`&&this.closeExclusivePeers(n))}this.applyInline()})}setPanelStart(e,t){j(()=>{let n=this.config.panels[e];if(!(n.initial===`hidden`||n.viewportDefaults||this.layoutPanels[e]?.visible===!1)){if(this.settings.panels&&e in this.settings.panels){let{[e]:t,...n}=this.settings.panels;this.settings={...this.settings,panels:n}}t===`expanded`&&this.closeExclusivePeers(e),this.revealed.delete(e),this.panels[e]=t,this.applyInline(),this.persistSettings()}})}setLayout(e){j(()=>{let{layout:t,...n}=this.settings;this.settings=e&&!ge(e)?{...n,layout:e}:n,this.persistSettings()})}setHotkeysEnabled(e){j(()=>this.applySettings({hotkeysEnabled:e}))}setHotkey(e,t){j(()=>{this.applySettings({keymap:{[e]:t?{code:t}:null}})})}setPanel(e,t){this.setPanelState(e,t)}setPanelState(e,t){Z.includes(e)&&[`hidden`,`collapsed`,`expanded`].includes(t)&&j(()=>{if(this.config.panels[e].initial===`hidden`||this.layoutPanels[e]?.visible===!1){this.panels[e]=`hidden`;return}if(this.isInline(e)){let n=e===`left`;n&&t===`collapsed`&&(t=`expanded`),!n&&t===`expanded`&&(t=`collapsed`)}t===`expanded`&&this.closeExclusivePeers(e),this.revealed.delete(e),this.panels[e]=t,this.settings=nt(this.settings,{panels:{[e]:t}}),this.persistSettings()})}revealPanelTemporarily(e){return j(()=>!this.isEdgeShown(e)||this.panels[e]!==`collapsed`?!1:(this.panels[e]=`expanded`,this.revealed.add(e),!0))}endTemporaryReveal(e){j(()=>{this.revealed.delete(e)&&this.panels[e]===`expanded`&&(this.panels[e]=`collapsed`)})}togglePanel(e){j(()=>{this.panels[e]!==`hidden`&&this.setPanel(e,this.panels[e]===`expanded`?`collapsed`:`expanded`)})}expandPanel(e){j(()=>this.setPanel(e,`expanded`))}collapsePanel(e){j(()=>this.setPanel(e,`collapsed`))}closeTopmostExpanded(){return j(()=>{for(let e of[...Z].reverse())if(!this.isInline(e)&&this.panels[e]===`expanded`&&this.isEdgeShown(e))return this.collapsePanel(e),!0;return!1})}registerFocusTool(e){let t=wt(e);return j(()=>(this.focusTools=[...this.focusTools.filter(e=>e.id!==t.id),t].sort((e,t)=>(e.order??0)-(t.order??0)),this.activeFocusToolId||=t.id,()=>this.unregisterFocusTool(t.id)))}unregisterFocusTool(e){j(()=>{this.focusTools=this.focusTools.filter(t=>t.id!==e),this.activeFocusToolId===e&&(this.activeFocusToolId=this.focusTools[0]?.id??null)})}openFocusTool(e){j(()=>{this.focusTools.some(t=>t.id===e)&&(this.activeFocusToolId=e,this.settings=nt(this.settings,{activeFocusToolId:e}),this.expandPanel(`right`),this.persistSettings())})}toggleFocusTool(e){j(()=>{if(this.focusTools.some(t=>t.id===e)){if(this.activeFocusToolId===e&&this.panels.right===`expanded`){this.collapsePanel(`right`);return}this.openFocusTool(e)}})}get openFocusToolId(){return this.panels.right===`expanded`&&this.isEdgeShown(`right`)?this.activeFocusToolId:null}get dockAvailable(){return this.config.panels.right.initial!==`hidden`&&this.layoutPanels.right?.visible!==!1&&(this.viewport!==`phone`||this.phonePresentation(`right`)!==`hidden`)}closeFocusTool(){this.collapsePanel(`right`)}openDockTool(e,t={}){return j(()=>{if(!this.focusTools.some(t=>t.id===e)||!this.dockAvailable)return!1;if(this.openFocusTool(e),t.focus===!1)return!0;let n=typeof document>`u`?null:document.activeElement;return this.dockReturnFocus=t.returnFocus??(n instanceof HTMLElement&&n!==document.body?n:null),this.dockFocusRequest+=1,!0})}toggleDockTool(e,t={}){return j(()=>!this.focusTools.some(t=>t.id===e)||!this.dockAvailable?!1:this.openFocusToolId===e?(this.closeFocusTool(),!0):this.openDockTool(e,t))}upsertActivity(e){let t=Tt(e);j(()=>{let e=new Date().toISOString(),n={...t,edge:t.edge??this.homeEdgeForScope(t.scope),createdAt:t.createdAt??e,updatedAt:t.updatedAt??e},r=this.activities.find(e=>e.id===t.id);this.activities=[...this.activities.filter(e=>e.id!==t.id),n],this.emitActivity({type:r&&r.status!==n.status?`transition`:`upsert`,activity:n,previous:r})})}updateActivity(e,t){let n=Et(t);j(()=>{let t=this.activities.find(t=>t.id===e);t&&this.upsertActivity({...t,...n,id:e,updatedAt:new Date().toISOString()})})}removeActivity(e){j(()=>{let t=this.activities.find(t=>t.id===e);t&&(this.activities=this.activities.filter(t=>t.id!==e),this.emitActivity({type:`remove`,activity:t}))})}watchActivities(e){return this.activityListeners.add(e),()=>this.activityListeners.delete(e)}listActivities(e={}){return this.activities.map(e=>({...e,edge:e.edge??this.homeEdgeForScope(e.scope)})).filter(t=>yt(t,e))}activityBadge(e){let t=this.listActivities({edge:e}).filter(e=>xt(e.status)),n=t.map(e=>e.progress).filter(e=>typeof e==`number`);return{count:t.length,running:t.filter(e=>e.status===`running`).length,hasFailed:this.listActivities({edge:e}).some(e=>e.status===`failed`),progress:n.length===0?null:n.reduce((e,t)=>e+t,0)/n.length}}homeEdgeForScope(e){let t=Ge[e];return this.panels[t]===`hidden`?this.panels.bottom===`hidden`?Z.find(e=>this.panels[e]!==`hidden`)??t:`bottom`:t}closeExclusivePeers(e){let t=this.config.panels[e].exclusiveGroup;if(t)for(let n of Z)n!==e&&this.config.panels[n].exclusiveGroup===t&&this.panels[n]===`expanded`&&(this.panels[n]=`collapsed`,this.settings=nt(this.settings,{panels:{[n]:`collapsed`}}))}async persistSettings(){this.adapter&&await this.adapter.write(et(this.settings,this.config))}emitActivity(e){for(let t of this.activityListeners)t(e)}};function vt(e={}){return new $(e)}function yt(e,t){return t.edge&&e.edge!==t.edge||t.scope&&e.scope!==t.scope||t.kind&&!bt(e.kind,t.kind)||t.status&&!bt(e.status,t.status)?!1:!t.subject||e.subject?.type===t.subject.type&&e.subject.id===t.subject.id}function bt(e,t){return Array.isArray(t)?t.includes(e):e===t}function xt(e){return e===`queued`||e===`running`}function St(e){let t={...e};return`keymap`in e&&(t.keymap=Ct(e.keymap)),`panels`in e&&(t.panels=e.panels?{...e.panels}:e.panels),`sizes`in e&&(t.sizes=e.sizes?{...e.sizes}:e.sizes),t}function Ct(e){if(!e)return e;let t={};for(let n of Z)if(n in e){let r=e[n];t[n]=r&&{...r}}return t}function wt(e){let t={...e};return`subject`in e&&(t.subject=e.subject?{...e.subject}:e.subject),`activityKinds`in e&&(t.activityKinds=e.activityKinds?[...e.activityKinds]:e.activityKinds),t}function Tt(e){let t={...e};return`subject`in e&&(t.subject=e.subject?{...e.subject}:e.subject),t}function Et(e){let t={...e};return`subject`in e&&(t.subject=e.subject?{...e.subject}:e.subject),t}function Dt(e){if(typeof window>`u`||typeof window.matchMedia!=`function`)return()=>{};let t=window.matchMedia(gt),n=window.matchMedia(_t),r=()=>e.setViewport(dt({phone:t.matches,desktop:n.matches}));return r(),t.addEventListener(`change`,r),n.addEventListener(`change`,r),()=>{t.removeEventListener(`change`,r),n.removeEventListener(`change`,r)}}function Ot(e){if(typeof window>`u`||typeof window.matchMedia!=`function`)return()=>{};let t=[];for(let n of[`left`,`right`]){let r=e.config.panels[n].overlayMedia;if(!r)continue;let i=window.matchMedia(r),a=()=>e.setOverlayMatch(n,i.matches);a(),i.addEventListener(`change`,a),t.push(()=>i.removeEventListener(`change`,a))}return()=>{for(let e of t)e()}}function kt(e,t){let n=new ft(t.tuning),r=0,i=!1;function a(){r=0;let a=n.update({y:e.scrollTop,maxY:e.scrollHeight-e.clientHeight,pinned:t.isPinned()});a!==i&&(i=a,t.onChange(a))}function o(){r||=requestAnimationFrame(a)}return e.addEventListener(`scroll`,o,{passive:!0}),{recheck:a,reset(){n.reset(),i&&(i=!1,t.onChange(!1))},destroy(){r&&cancelAnimationFrame(r),e.removeEventListener(`scroll`,o)}}}function At(e){if(typeof window>`u`||!window.visualViewport)return()=>{};let t=window.visualViewport,n=!1;function r(){let r=pt({layoutHeight:window.innerHeight,visualHeight:t.height,scale:t.scale});if(r===n)return;n=r,n?document.documentElement.dataset.keyboardOpen=``:delete document.documentElement.dataset.keyboardOpen,e(n);let i=document.activeElement;n&&i instanceof HTMLElement&&lt(i)&&i.scrollIntoView({block:`center`})}return t.addEventListener(`resize`,r),()=>{t.removeEventListener(`resize`,r),delete document.documentElement.dataset.keyboardOpen}}function jt(e,t){let n=!!e.querySelector(ht);if(t(n),typeof MutationObserver>`u`)return()=>{};let r=new MutationObserver(()=>{let r=!!e.querySelector(ht);r!==n&&(n=r,t(n))});return r.observe(e,{childList:!0,subtree:!0}),()=>r.disconnect()}function Mt(e,t){let n=e.panelSize(t);return n===null?e.config.panels[t].expandedSize:`${n}px`}function Nt(e,t){let n=e.panels[t];return n===`hidden`?`0rem`:n===`collapsed`||e.presentationFor(t)===`overlay`?Pt(e,t):Mt(e,t)}function Pt(e,t){if(e.panels[t]===`hidden`)return`0rem`;let n=e.config.panels[t];return n.rail===!1?`0rem`:n.collapsedSize}function Ft(e){return[`--smrt-admin-shell-left-track: ${Nt(e,`left`)}`,`--smrt-admin-shell-right-track: ${Nt(e,`right`)}`,`--smrt-admin-shell-top-track: ${Nt(e,`top`)}`,`--smrt-admin-shell-bottom-track: ${Nt(e,`bottom`)}`,`--smrt-admin-shell-left-collapsed: ${Pt(e,`left`)}`,`--smrt-admin-shell-right-collapsed: ${Pt(e,`right`)}`,`--smrt-admin-shell-left-expanded: ${Mt(e,`left`)}`,`--smrt-admin-shell-right-expanded: ${Mt(e,`right`)}`,`--smrt-admin-shell-top-expanded: ${Mt(e,`top`)}`,`--smrt-admin-shell-bottom-expanded: ${Mt(e,`bottom`)}`].join(`; `)}var It=x(`<span aria-hidden="true" class="svelte-1x3knxs">›</span>`),Lt=x(`<span class="svelte-1x3knxs"> </span>`),Rt=x(`<kbd class="smrt-admin-shell__edge-toggle-kbd svelte-1x3knxs"> </kbd>`),zt=x(`<!> <!> <!>`,1),Bt=x(`<div role="separator" aria-orientation="vertical" tabindex="0"></div>`),Vt=x(`<p class="smrt-admin-shell__empty svelte-1x3knxs"> </p>`),Ht=x(`<div><!></div>`),Ut=x(`<div></div>`),Wt=x(`<div class="smrt-admin-shell__region-edit svelte-1x3knxs"><!></div>`),Gt=x(`<div id="smrt-admin-shell-header" class="smrt-admin-shell__header svelte-1x3knxs" data-testid="admin-shell-header"><!></div>`),Kt=x(`<div class="smrt-admin-shell__corner smrt-admin-shell__corner--top-left svelte-1x3knxs"><!></div>`),qt=x(`<!> <!>`,1),Jt=x(`<div class="smrt-admin-shell__account svelte-1x3knxs"><!></div>`),Yt=x(`<div class="smrt-admin-shell__corner smrt-admin-shell__corner--top-right svelte-1x3knxs"><!></div>`),Xt=x(`<section class="smrt-admin-shell__drawer smrt-admin-shell__drawer--top svelte-1x3knxs"><!></section>`),Zt=x(`<header id="smrt-admin-shell-top-panel" class="smrt-admin-shell__edge smrt-admin-shell__edge--top svelte-1x3knxs"><!> <div class="smrt-admin-shell__band smrt-admin-shell__band--top svelte-1x3knxs"><!> <!> <!> <!> <!> <!> <!></div> <!> <!></header>`),Qt=x(`<div class="smrt-admin-shell__tenant-footer svelte-1x3knxs"><!></div>`),$t=x(`<div class="smrt-admin-shell__tenant-stack svelte-1x3knxs"><!> <div class="smrt-admin-shell__tenant-content svelte-1x3knxs"><!></div> <!> <!></div>`),en=x(`<div class="smrt-admin-shell__tenant-rail-content svelte-1x3knxs"><!></div>`),tn=x(`<div class="smrt-admin-shell__tenant-rail-footer svelte-1x3knxs"><!></div>`),nn=x(`<div class="smrt-admin-shell__tenant-rail-stack svelte-1x3knxs"><!> <!></div>`),rn=x(`<aside id="smrt-admin-shell-left-panel" class="smrt-admin-shell__edge smrt-admin-shell__edge--left svelte-1x3knxs"><!> <div class="smrt-admin-shell__rail svelte-1x3knxs"><!> <!> <!> <!> <!></div></aside>`),an=x(`<div class="smrt-admin-shell__phone-default-top svelte-1x3knxs"><!></div>`),on=x(`<div class="smrt-admin-shell__phone-top svelte-1x3knxs" data-testid="admin-shell-phone-top"><!></div>`),sn=x(`<button type="button" class="smrt-admin-shell__scrim svelte-1x3knxs" tabindex="-1" data-testid="admin-shell-scrim"></button>`),cn=x(`<button type="button" class="smrt-admin-shell__overlay-scrim svelte-1x3knxs" tabindex="-1" data-testid="admin-shell-overlay-scrim"></button>`),ln=x(`<div class="smrt-admin-shell__sheet-grabber svelte-1x3knxs" aria-hidden="true"><span class="svelte-1x3knxs"></span></div>`),un=x(`<span aria-hidden="true"> </span>`),dn=x(`<span class="smrt-admin-shell__focus-tool-badge svelte-1x3knxs"> </span>`),fn=x(`<button type="button"><!> <!></button>`),pn=x(`<nav class="smrt-admin-shell__focus-rail svelte-1x3knxs"></nav>`),mn=x(`<div class="smrt-admin-shell__panel smrt-admin-shell__panel--right svelte-1x3knxs" tabindex="-1"><!> <!> <!></div>`),hn=x(`<aside id="smrt-admin-shell-right-panel" class="smrt-admin-shell__edge smrt-admin-shell__edge--right svelte-1x3knxs"><!> <!> <div class="smrt-admin-shell__rail svelte-1x3knxs"><!> <!></div> <!></aside>`),gn=x(`<button type="button" class="smrt-admin-shell__edit-indicator svelte-1x3knxs" data-edit-indicator="right" aria-expanded="false" aria-controls="smrt-admin-shell-right-panel"><!> <span class="smrt-admin-shell__edit-indicator-label"> </span></button>`),_n=x(`<div class="smrt-admin-shell__corner smrt-admin-shell__corner--bottom-left svelte-1x3knxs"><!></div>`),vn=x(`<div class="smrt-admin-shell__corner smrt-admin-shell__corner--bottom-right svelte-1x3knxs"><!></div>`),yn=x(`<section class="smrt-admin-shell__drawer smrt-admin-shell__drawer--bottom svelte-1x3knxs"><!></section>`),bn=x(`<footer id="smrt-admin-shell-bottom-panel" class="smrt-admin-shell__edge smrt-admin-shell__edge--bottom svelte-1x3knxs"><!> <div class="smrt-admin-shell__band smrt-admin-shell__band--bottom svelte-1x3knxs"><!> <!> <!> <!> <!> <!></div> <!> <!></footer>`),xn=x(`<div class="smrt-admin-shell__overlays svelte-1x3knxs"><!></div>`),Sn=x(`<div class="smrt-admin-shell__phone-bar svelte-1x3knxs" data-testid="admin-shell-phone-bar"><!></div>`),Cn=x(`<div class="svelte-1x3knxs"><dt> </dt> <dd class="svelte-1x3knxs"> </dd></div>`),wn=x(`<header class="svelte-1x3knxs"><h2 class="svelte-1x3knxs"> </h2> <!></header> <dl class="svelte-1x3knxs"><!> <div class="svelte-1x3knxs"><dt> </dt> <dd class="svelte-1x3knxs">?</dd></div></dl>`,1),Tn=x(`<div class="smrt-admin-shell__shortcuts svelte-1x3knxs" role="dialog" aria-modal="true" tabindex="-1"><div class="smrt-admin-shell__shortcuts-panel svelte-1x3knxs"><!></div></div>`),En=x(`<div class="smrt-admin-shell svelte-1x3knxs"><!> <!> <!> <!> <!> <main id="smrt-admin-shell-main" class="smrt-admin-shell__main svelte-1x3knxs"><!></main> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div>`);function Dn(n,s){i(s,!0);let x=(e,n=o)=>{{let r=W(()=>n()===`left`?q(X[$(n())?`ui.admin_shell.collapse_panel`:`ui.admin_shell.expand_panel`],{panel:wt(n())}):void 0),i=W(()=>$(n())),a=W(()=>`smrt-admin-shell-${n()}-panel`);ae(e,{variant:`ghost`,size:`sm`,class:`smrt-admin-shell__edge-toggle`,get"aria-label"(){return T(r)},get"aria-expanded"(){return T(i)},get"aria-controls"(){return T(a)},onclick:()=>J.togglePanel(n()),children:(e,r)=>{var i=zt(),a=A(i),o=e=>{var t=It();S(e,t)},s=W(()=>n()===`left`&&!$(n())),c=e=>{var r=Lt(),i=M(r,!0);D(e=>t(i,e),[()=>wt(n())]),S(e,r)};v(a,e=>{T(s)?e(o):e(c,-1)});var l=L(a,2),u=e=>{var r=Rt(),i=M(r,!0);D(e=>t(i,e),[()=>Tt(n())]),S(e,r)},d=W(()=>Dn(n())&&(n()!==`left`||$(n())));v(l,e=>{T(d)&&e(u)}),Fe(L(l,2),{get edge(){return n()}}),S(e,i)},$$slots:{default:!0}})}},C=(e,t=o)=>{var n=c(),i=A(n),a=e=>{let n=W(()=>J.resizeLimits(t()));var i=Bt();D((e,a)=>{r(i,1,`smrt-admin-shell__resizer smrt-admin-shell__resizer--${t()??``}`,`svelte-1x3knxs`),V(i,`aria-controls`,`smrt-admin-shell-${t()}-panel`),V(i,`aria-label`,e),V(i,`aria-valuemin`,T(n)?.min),V(i,`aria-valuemax`,T(n)?.max),V(i,`aria-valuenow`,a),V(i,`data-testid`,`admin-shell-resizer-${t()}`)},[()=>q(X[`ui.admin_shell.resize_panel`],{label:wt(t())}),()=>$e(t())]),u(`pointerdown`,i,e=>it(e,t())),u(`keydown`,i,e=>nt(e,t())),u(`dblclick`,i,()=>J.setPanelSize(t(),null)),S(e,i)},s=W(()=>et(t()));v(i,e=>{T(s)&&e(a)}),S(e,n)},ee=(e,n=o)=>{var r=c(),i=A(r),a=e=>{var t=c(),r=A(t);h(r,()=>s.focusPanel,()=>({tool:n()})),S(e,t)},l=e=>{var t=c(),r=A(t);h(r,()=>n().render,()=>({tool:n()})),S(e,t)},u=e=>{let t=W(()=>n().component);var r=c(),i=A(r);p(i,()=>T(t),(e,t)=>{t(e,{get tool(){return n()},get shell(){return J}})}),S(e,r)},d=e=>{var n=Vt(),r=M(n,!0);D(e=>t(r,e),[()=>q(X[`ui.admin_shell.no_focus_tools`])]),S(e,n)};v(i,e=>{s.focusPanel?e(a):n()?.render?e(l,1):n()?.component?e(u,2):e(d,-1)}),S(e,r)},te=(e,t)=>{let n=O(()=>_(t?.(),!1));Ue(e,{get title(){return ie()},get subtitle(){return G()},get homeHref(){return s.homeHref},get logoSrc(){return s.logoSrc},get logoAlt(){return le()},get brand(){return s.brand},get compact(){return T(n)}})},R=(e,t=o)=>{var n=c(),i=A(n),u=e=>{var n=c(),i=A(n),a=e=>{var n=Ht(),i=B(n);h(i,()=>s.layoutEdit.zone,t),g(n),D(e=>{r(n,1,`smrt-admin-shell__slot smrt-admin-shell__slot--${e??``} smrt-admin-shell__slot--editing`,`svelte-1x3knxs`),V(n,`data-slot`,t()),V(n,`data-smrt-edit-zone`,t()),V(n,`data-drop-target`,s.layoutEdit.highlight===t()?``:void 0)},[()=>t().replace(`.`,`-`)]),S(e,n)},o=W(()=>st(se(t())));v(i,e=>{T(o)&&e(a)}),S(e,n)},d=e=>{var n=Ut();a(n,21,()=>T(lt)[t()]??[],l,(e,t)=>{var n=c(),r=A(n);h(r,()=>T(t)),S(e,n)}),g(n),D(e=>{r(n,1,`smrt-admin-shell__slot smrt-admin-shell__slot--${e??``}`,`svelte-1x3knxs`),V(n,`data-slot`,t())},[()=>t().replace(`.`,`-`)]),S(e,n)};v(i,e=>{s.layoutEdit?.active?e(u):T(lt)[t()]?.length&&e(d,1)}),S(e,n)},U=(e,t=o)=>{var n=c(),r=A(n),i=e=>{var n=Wt(),r=B(n);h(r,()=>s.layoutEdit.regionControl,t),g(n),D(()=>V(n,`data-region-edit`,t())),S(e,n)},a=W(()=>s.layoutEdit?.active&&s.layoutEdit.regionControl&&ct(t()));v(r,e=>{T(a)&&e(i)}),S(e,n)},ne=(e,t=o)=>{var n=c(),i=A(n),a=e=>{var n=Ht(),i=B(n);h(i,()=>s.layoutEdit?.strip??o,t),g(n),D(()=>{r(n,1,`smrt-admin-shell__strip smrt-admin-shell__strip--${t()??``}`,`svelte-1x3knxs`),V(n,`data-region-strip`,t())}),S(e,n)},l=W(()=>T(ft).includes(t()));v(i,e=>{T(l)&&e(a)}),S(e,n)},ie=E(s,`title`,3,`SMRT`),oe=E(s,`edgeToggles`,3,!1),ce=E(s,`brandInSlot`,3,!1),le=E(s,`logoAlt`,3,``),G=E(s,`subtitle`,3,``),ue=E(s,`storageKey`,3,`smrt-admin-shell`),K=E(s,`rootElement`,15),de=E(s,`pinChrome`,3,!1),{t:q}=re(),J=j(()=>s.state??vt({config:s.config,settings:s.settings,settingsAdapter:s.settingsAdapter,storageKey:ue()}));Ne(J);let fe=H(!1);function pe(){return J.focusTools.find(e=>e.id===J.activeFocusToolId)??J.focusTools[0]??null}let me=[`top`,`left`,`bottom`,`right`],he=[`left`,`right`],ge=H(void 0),_e=H(!1),ve=H(!1),ye=H(!1),be=H(null),xe=F({}),Se=null,we=W(()=>J.viewport),Y=W(()=>T(we)===`phone`),Te=W(()=>J.viewport===`phone`);I(()=>{let t=xe.left;if(!T(Te)||!$(`left`)||!t)return;let n=document.activeElement instanceof HTMLElement?document.activeElement:null,r=!1;return e().then(async()=>{let e=t.getAnimations?.({subtree:!0})??[];await Promise.all(e.filter(e=>e.playState!==`paused`&&Number.isFinite(e.effect?.getComputedTiming().endTime??0)).map(e=>e.finished.catch(()=>{}))),!r&&T(Te)&&$(`left`)&&t.isConnected&&t.querySelector(`a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`)?.focus()}),()=>{r=!0,queueMicrotask(()=>{n?.isConnected&&n.focus()})}});let Ee=W(()=>T(Y)&&!s.phoneTopBar&&Q(`top`)===`hidden`&&J.isEdgeShown(`left`)&&J.phonePresentation(`left`)!==`hidden`),De=W(()=>T(Y)&&(!!s.phoneTopBar||T(Ee))),Oe=W(()=>!!s.header&&!(T(Y)&&s.phoneTopBar)),ke=W(()=>T(Y)&&s.phoneBottomBar?mt({formActions:T(ve),keyboardOpen:T(_e)}):`none`),Ae=W(()=>T(Y)&&he.some(e=>Q(e)===`expanded`&&J.isEdgeShown(e))),Me=W(()=>[`--smrt-shell-floating-reserve-inline: ${s.floatingReserve?.inline??`0px`}`,`--smrt-shell-floating-reserve-block: ${s.floatingReserve?.block??`0px`}`,`--smrt-shell-floating-reserve-main: ${s.floatingReserve?.main??`0px`}`].join(`; `)),Pe=W(()=>[`--smrt-admin-shell-header-track: ${T(Oe)?`var(--smrt-admin-shell-header-size)`:`0rem`}`,`--smrt-admin-shell-phone-bar-track: ${T(ke)===`nav`?`var(--smrt-admin-shell-phone-bar-size)`:`0rem`}`].join(`; `)),Ie=W(()=>T(Y)?null:he.find(e=>Q(e)===`expanded`&&J.isEdgeShown(e)&&J.presentationFor(e)===`overlay`)??null),Le=null,Re=null,ze=H(null),Be=null;function Ve(){Be&&clearTimeout(Be),Be=null,N(ze,null)}function He(){return typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function Z(e){return $(e)||T(ze)===e}I(()=>{let e=T(Ie);j(()=>{if(e===Re)return;let t=Re;if(Re=e,typeof document>`u`)return;if(e){Ve();let t=document.activeElement;Le=t instanceof HTMLElement&&t!==document.body?t:null;let n=xe[e];n&&!n.contains(document.activeElement)&&n.focus({preventScroll:!0});return}let n=t?xe[t]:void 0,r=document.activeElement;(!r||r===document.body||n?.contains(r))&&Le?.isConnected&&Le.focus({preventScroll:!0}),Le=null,t&&Q(t)!==`expanded`&&J.presentationFor(t)===`overlay`&&!T(Y)&&!He()&&(Ve(),N(ze,t,!0),Be=setTimeout(Ve,600))})});let We=0;I(()=>{let t=J.dockFocusRequest;j(()=>{t!==We&&(We=t,e().then(Ge))})});function Ge(){let e=xe.right?.querySelector(`.smrt-admin-shell__panel--right`);e&&!e.hidden&&$(`right`)&&(e.contains(document.activeElement)||(e.querySelector(`a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [contenteditable="true"], [tabindex]:not([tabindex="-1"])`)??e).focus({preventScroll:!0}))}let Ke=!1;I(()=>{let e=$(`right`);j(()=>{let t=Ke;if(Ke=e,!t||e)return;let n=J.dockReturnFocus;if(J.dockReturnFocus=null,!n?.isConnected||typeof document>`u`)return;let r=document.activeElement;(!r||r===document.body||xe.right?.contains(r))&&n.focus({preventScroll:!0})})});function qe(e,t){T(ze)===t&&e.target===e.currentTarget&&Ve()}function Je(){for(let e of he)Q(e)===`expanded`&&J.isEdgeShown(e)&&J.collapsePanel(e)}z(()=>{let e=Dt(J),t=Ot(J);J.hydrate().then(()=>J.closeOverlaidEdges());let n=s.phoneBottomBar?At(e=>N(_e,e,!0)):()=>{},r=s.phoneBottomBar&&T(ge)?jt(T(ge),e=>N(ve,e,!0)):()=>{};Se=s.phoneTopBar&&s.phone?.hideOnScroll!==!1&&T(ge)?kt(T(ge),{onChange:e=>N(ye,e,!0),isPinned:()=>de()||T(Ae)||J.viewport!==`phone`}):null;function i(e){if(e.key===`Escape`){if(T(fe)){N(fe,!1),e.preventDefault();return}if(s.layoutEdit?.active)return;J.closeTopmostExpanded()&&e.preventDefault();return}let t=at(e,J.config.panels,J.settings);if(t){if(t.type===`show-shortcuts`){if(!me.some(Pt))return;e.preventDefault(),N(fe,!0)}else{if(!Pt(t.edge))return;e.preventDefault(),J.togglePanel(t.edge)}}}return window.addEventListener(`keydown`,i),()=>{window.removeEventListener(`keydown`,i),e(),t(),Be&&clearTimeout(Be),n(),r(),Se?.destroy(),Se=null}}),I(()=>{(de()||T(Ae)||!T(Y))&&N(ye,!1)});let Ye;I(()=>{let e=s.path;j(()=>{Ye!==void 0&&e!==Ye&&(J.viewport===`phone`&&Je(),Se?.reset(),N(ye,!1)),Ye=e})});function Xe(){if(typeof window>`u`)return 16;let e=Number.parseFloat(window.getComputedStyle(document.documentElement).fontSize);return Number.isFinite(e)&&e>0?e:16}function Ze(e){let t=/^\s*(-?\d*\.?\d+)(px|rem|em)?\s*$/.exec(e);if(!t)return null;let n=Number.parseFloat(t[1]);return t[2]===`rem`||t[2]===`em`?n*Xe():n}function $e(e){let t=J.resizeLimits(e),n=J.panelSize(e);if(n!==null)return n;let r=Ze(J.config.panels[e].expandedSize)??xe[e]?.getBoundingClientRect().width??0;return t?Qe(r,t):Math.round(r)}function et(e){return!T(Y)&&$(e)&&J.presentationFor(e)===`push`&&J.resizeLimits(e)!==null}function nt(e,t){let n=J.resizeLimits(t);if(!n)return;let r=n.step*(e.shiftKey?4:1),i=t===`left`?`ArrowRight`:`ArrowLeft`,a=t===`left`?`ArrowLeft`:`ArrowRight`,o;if(e.key===i)o=$e(t)+r;else if(e.key===a)o=$e(t)-r;else if(e.key===`Home`)o=n.min;else if(e.key===`End`)o=n.max;else if(e.key===`Enter`)o=null;else return;e.preventDefault(),J.setPanelSize(t,o)}let rt=null;I(()=>()=>rt?.(!1));function it(e,t){if(e.button!==0||!J.resizeLimits(t))return;e.preventDefault(),rt?.(!0);let n=e.currentTarget,r=e.pointerId;r!==void 0&&n.setPointerCapture?.(r);let i=e.clientX,a=$e(t),o=a;N(be,t,!0);function s(e){let n=e.clientX-i;o=a+(t===`left`?n:-n),J.setPanelSize(t,o,{persist:!1})}function c(e){rt===c&&(rt=null,n.removeEventListener(`pointermove`,s),n.removeEventListener(`pointerup`,l),n.removeEventListener(`pointercancel`,l),n.removeEventListener(`lostpointercapture`,l),r!==void 0&&n.hasPointerCapture?.(r)&&n.releasePointerCapture(r),N(be,null),e&&o!==a&&J.setPanelSize(t,o))}function l(){c(!0)}rt=c,n.addEventListener(`pointermove`,s),n.addEventListener(`pointerup`,l),n.addEventListener(`pointercancel`,l),n.addEventListener(`lostpointercapture`,l)}let ot=W(()=>!s.account&&!!s.tenantFooter&&(!J.isEdgeShown(`left`)||!$(`left`)&&!s.tenantRailFooter));function st(e){return J.isRegionVisible(e)}function ct(e){return e===`leftSidebar`?J.isEdgeShown(`left`):e===`rightSidebar`?J.isEdgeShown(`right`):st(e)}let lt=W(()=>{let e={};for(let[t,n]of Object.entries(s.slots??{})){if(!n)continue;let r=Ce(t,st);r&&(e[r]??=[]).push(n)}return e}),dt={header:`top`,footer:`bottom`,leftSidebar:`left`,rightSidebar:`right`},ft=W(()=>s.layoutEdit?.active&&s.layoutEdit.strip?s.layoutEdit.hiddenRegions??[]:[]),pt=W(()=>[Ft(J),...T(ft).map(e=>`--smrt-admin-shell-${dt[e]}-track: 1.75rem`)].join(`; `));function ht(e,t){return`${e?`var(--smrt-admin-shell-left-collapsed)`:`0px`} minmax(0, 1fr) ${t?`var(--smrt-admin-shell-right-collapsed)`:`0px`}`}let gt=W(()=>ht(s.topLeftCorner,s.topRightCorner)),_t=W(()=>ht(s.bottomLeftCorner,s.bottomRightCorner));function Q(e){return J.panels[e]}function $(e){return Q(e)===`expanded`}function yt(e){return Q(e)===`collapsed`&&J.config.panels[e].keepMounted===!0&&(e!==`top`&&e!==`bottom`||!J.isInline(e))}let bt=W(()=>s.layoutEdit?.active&&!T(Y)&&J.config.panels.right.rail===!1&&J.isEdgeShown(`right`)&&Q(`right`)===`collapsed`&&J.focusTools.length>0?J.focusTools:null),xt=!1;function St(){let e=J.focusTools;if(e.length===0)return;let t=e.find(e=>e.id===J.activeFocusToolId)??e[0];J.openFocusTool(t.id),xt=!0}I(()=>{s.layoutEdit?.active||j(()=>{xt&&J.panels.right===`expanded`&&J.collapsePanel(`right`),xt=!1})});function Ct(e){return Z(e)||yt(e)}function wt(e){return J.config.panels[e].label}function Tt(e){return ut(tt(e,J.config.panels[e],J.settings))}function Et(e){return typeof oe()==`boolean`?oe():oe()[e]===!0}function Mt(e){let t=Et(e);return e===`left`&&(s.showTenantToggle===!1?t=!1:s.showTenantToggle===!0&&(t=!0)),t}let Nt=W(()=>({top:Mt(`top`)||Et(`top`)||s.hotkeys===!0,left:Mt(`left`)||Et(`left`)||s.hotkeys===!0,right:Mt(`right`)||Et(`right`)||s.hotkeys===!0,bottom:Mt(`bottom`)||Et(`bottom`)||s.hotkeys===!0}));J.setInlineEdges(j(()=>({top:!T(Nt).top,left:!T(Nt).left,right:!T(Nt).right,bottom:!T(Nt).bottom}))),I(()=>{let e=T(Nt);J.setInlineEdges({top:!e.top,left:!e.left,right:!e.right,bottom:!e.bottom})});function Pt(e){return s.hotkeys===void 0?Et(e)||Mt(e):s.hotkeys}function Dn(e){return Pt(e)&&J.settings.hotkeysEnabled!==!1&&tt(e,J.config.panels[e],J.settings)!==null}function On(e){let t=document.activeElement instanceof HTMLElement?document.activeElement:null,n=()=>Array.from(e.querySelectorAll(`a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`)).filter(e=>e.offsetParent!==null);(n()[0]??e).focus();function r(t){if(t.key!==`Tab`)return;let r=n();if(r.length===0){t.preventDefault(),e.focus();return}let i=r[0],a=r[r.length-1];t.shiftKey&&document.activeElement===i?(t.preventDefault(),a.focus()):!t.shiftKey&&document.activeElement===a&&(t.preventDefault(),i.focus())}return e.addEventListener(`keydown`,r),{destroy(){e.removeEventListener(`keydown`,r),t?.focus()}}}var kn=En(),An=B(kn),jn=e=>{var t=Gt(),n=B(t);h(n,()=>s.header??o,()=>({viewport:T(we)})),g(t),S(e,t)};v(An,e=>{T(Oe)&&e(jn)});var Mn=L(An,2);ne(Mn,()=>`header`);var Nn=L(Mn,2),Pn=e=>{var n=Zt();let i;var a=B(n),o=e=>{var t=Kt(),n=B(t);h(n,()=>s.topLeftCorner),g(t),S(e,t)};v(a,e=>{s.topLeftCorner&&e(o)});var l=L(a,2);y(l,``,{},{"--band-column":2});var u=B(l),f=e=>{var t=c(),n=A(t);h(n,()=>s.appBar),S(e,t)},p=e=>{var t=qt(),n=A(t),r=e=>{te(e)};v(n,e=>{ce()||e(r)});var i=L(n,2),a=e=>{x(e,()=>`top`)},o=W(()=>Mt(`top`));v(i,e=>{T(o)&&e(a)}),S(e,t)};v(u,e=>{s.appBar?e(f):e(p,-1)});var _=L(u,2),b=e=>{var n=Ht();let i;var a=B(n);{let e=W(()=>q(X[`ui.admin_shell.menu`])),n=W(()=>$(`left`));ae(a,{variant:`ghost`,size:`sm`,get"aria-label"(){return T(e)},get"aria-expanded"(){return T(n)},"aria-controls":`smrt-admin-shell-left-panel`,onclick:()=>J.setPanelState(`left`,$(`left`)?`collapsed`:`expanded`),children:(e,n)=>{m();var r=d();D(e=>t(r,e),[()=>q(X[`ui.admin_shell.menu`])]),S(e,r)},$$slots:{default:!0}})}g(n),D(e=>i=r(n,1,`smrt-admin-shell__tenant-opener svelte-1x3knxs`,null,i,{"restore-hidden":e}),[()=>Q(`left`)===`hidden`]),S(e,n)},C=W(()=>!(s.layoutEdit?.active&&!T(Y))&&J.config.panels.left.initial!==`hidden`&&J.layoutPanels.left?.visible!==!1&&(!T(Y)||J.phonePresentation(`left`)!==`hidden`));v(_,e=>{T(C)&&e(b)});var w=L(_,2);R(w,()=>`header.start`);var E=L(w,2);R(E,()=>`header.center`);var O=L(E,2),k=e=>{var t=Jt(),n=B(t),r=e=>{var t=c(),n=A(t);h(n,()=>s.account),S(e,t)},i=e=>{var t=c(),n=A(t);h(n,()=>s.tenantFooter),S(e,t)};v(n,e=>{s.account?e(r):s.tenantFooter&&e(i,1)}),g(t),S(e,t)};v(O,e=>{(s.account||T(ot))&&e(k)});var j=L(O,2);R(j,()=>`header.end`);var N=L(j,2);U(N,()=>`header`),g(l);var P=L(l,2),F=e=>{var t=Yt(),n=B(t);h(n,()=>s.topRightCorner),g(t),S(e,t)};v(P,e=>{s.topRightCorner&&e(F)});var ee=L(P,2),I=e=>{var n=Xt(),r=B(n),i=e=>{var t=c(),n=A(t);h(n,()=>s.appPanel),S(e,t)},a=e=>{var n=Vt(),r=M(n,!0);D(e=>t(r,e),[()=>q(X[`ui.admin_shell.no_app_panel`])]),S(e,n)};v(r,e=>{s.appPanel?e(i):e(a,-1)}),g(n),D((e,t)=>{V(n,`aria-label`,e),V(n,`hidden`,t)},[()=>wt(`top`),()=>!$(`top`)]),S(e,n)},z=W(()=>Ct(`top`));v(ee,e=>{T(z)&&e(I)}),g(n),D(e=>{V(n,`data-state`,e),V(n,`data-presentation`,J.config.panels.top.presentation),i=y(n,``,i,{"--edge-columns":T(gt)})},[()=>Q(`top`)]),S(e,n)},Fn=W(()=>Q(`top`)!==`hidden`);v(Nn,e=>{T(Fn)&&e(Pn)});var In=L(Nn,2);ne(In,()=>`leftSidebar`);var Ln=L(In,2),Rn=e=>{var t=rn(),n=B(t);C(n,()=>`left`);var r=L(n,2),i=B(r);U(i,()=>`leftSidebar`);var a=L(i,2),o=e=>{{let t=W(()=>!$(`left`));te(e,()=>T(t))}},l=W(()=>(Q(`top`)===`hidden`||!$(`left`))&&(s.homeHref||s.logoSrc||s.brand));v(a,e=>{T(l)&&e(o)});var u=L(a,2),d=e=>{x(e,()=>`left`)},f=W(()=>Mt(`left`)||T(Y));v(u,e=>{T(f)&&e(d)});var p=L(u,2),m=e=>{var t=$t(),n=B(t);R(n,()=>`leftSidebar.header`);var r=L(n,2),i=B(r),a=e=>{var t=c(),n=A(t);h(n,()=>s.tenantPanel),S(e,t)},o=e=>{var t=c(),n=A(t);h(n,()=>s.tenantRail),S(e,t)};v(i,e=>{s.tenantPanel?e(a):s.tenantRail&&e(o,1)}),g(r);var l=L(r,2),u=e=>{var t=Qt(),n=B(t);h(n,()=>s.tenantFooter),g(t),S(e,t)};v(l,e=>{s.tenantFooter&&!T(ot)&&e(u)});var d=L(l,2);R(d,()=>`leftSidebar.footer`),g(t),D(e=>V(t,`hidden`,e),[()=>!Z(`left`)]),S(e,t)},_=W(()=>Z(`left`)||s.tenantPanel&&yt(`left`));v(p,e=>{T(_)&&e(m)});var y=L(p,2),b=e=>{var t=nn(),n=B(t),r=e=>{var t=en(),n=B(t);h(n,()=>s.tenantRail),g(t),S(e,t)};v(n,e=>{s.tenantRail&&e(r)});var i=L(n,2),a=e=>{var t=tn(),n=B(t);h(n,()=>s.tenantRailFooter),g(t),S(e,t)};v(i,e=>{s.tenantRailFooter&&e(a)}),g(t),S(e,t)},E=W(()=>!Z(`left`)&&(s.tenantRail||s.tenantRailFooter));v(y,e=>{T(E)&&e(b)}),g(r),g(t),k(t,e=>xe.left=e,()=>xe?.left),P(t,(e,t)=>je?.(e,t),()=>({direction:`left`,onDismiss:()=>J.collapsePanel(`left`),enabled:T(Y)&&!!s.phone?.swipeToClose&&$(`left`)})),D((e,n,r,i)=>{V(t,`data-state`,e),V(t,`data-closing`,T(ze)===`left`?``:void 0),V(t,`data-presentation`,n),V(t,`aria-label`,r),V(t,`tabindex`,T(Ie)===`left`?-1:void 0),t.inert=i},[()=>T(ze)===`left`?`expanded`:Q(`left`),()=>J.presentationFor(`left`),()=>wt(`left`),()=>T(Y)&&!$(`left`)||T(Ie)===`right`||T(ze)===`left`]),w(`animationend`,t,e=>qe(e,`left`)),S(e,t)},zn=W(()=>J.isEdgeShown(`left`));v(Ln,e=>{T(zn)&&e(Rn)});var Bn=L(Ln,2),Vn=B(Bn);h(Vn,()=>s.children),g(Bn),k(Bn,e=>N(ge,e),()=>T(ge));var Hn=L(Bn,2),Un=e=>{var n=on(),r=B(n),i=e=>{var t=c(),n=A(t);h(n,()=>s.phoneTopBar,()=>({hidden:T(ye)})),S(e,t)},a=e=>{var n=an(),r=B(n);{let e=W(()=>q(X[`ui.admin_shell.menu`])),n=W(()=>$(`left`));ae(r,{variant:`ghost`,size:`sm`,get"aria-label"(){return T(e)},get"aria-expanded"(){return T(n)},"aria-controls":`smrt-admin-shell-left-panel`,onclick:()=>J.setPanelState(`left`,$(`left`)?`collapsed`:`expanded`),children:(e,n)=>{m();var r=d();D(e=>t(r,e),[()=>q(X[`ui.admin_shell.menu`])]),S(e,r)},$$slots:{default:!0}})}g(n),S(e,n)};v(r,e=>{s.phoneTopBar?e(i):T(Ee)&&e(a,1)}),g(n),S(e,n)};v(Hn,e=>{T(De)&&e(Un)});var Wn=L(Hn,2),Gn=e=>{var t=sn();D(e=>V(t,`aria-label`,e),[()=>q(X[`ui.admin_shell.close_panel`],{label:wt($(`left`)&&J.isEdgeShown(`left`)?`left`:`right`)})]),u(`click`,t,Je),S(e,t)};v(Wn,e=>{T(Y)&&s.phone?.scrim&&T(Ae)&&e(Gn)});var Kn=L(Wn,2),qn=e=>{let t=W(()=>T(Ie)??T(ze));var n=cn();D(e=>{V(n,`aria-label`,e),V(n,`data-closing`,T(Ie)?void 0:``)},[()=>q(X[`ui.admin_shell.close_panel`],{label:wt(T(t))})]),u(`click`,n,()=>{T(Ie)&&J.collapsePanel(T(t))}),S(e,n)};v(Kn,e=>{(T(Ie)||T(ze))&&e(qn)});var Jn=L(Kn,2);ne(Jn,()=>`rightSidebar`);var Yn=L(Jn,2),Xn=e=>{let n=W(()=>T(Y)?J.phonePresentation(`right`):void 0);var i=hn(),o=B(i);C(o,()=>`right`);var l=L(o,2),d=e=>{var t=ln();P(t,(e,t)=>je?.(e,t),()=>({direction:`down`,onDismiss:()=>J.collapsePanel(`right`),enabled:$(`right`)})),S(e,t)};v(l,e=>{T(n)===`sheet`&&e(d)});var m=L(l,2),_=B(m);U(_,()=>`rightSidebar`);var y=L(_,2),b=e=>{},E=e=>{var t=c(),n=A(t);h(n,()=>s.focusRail),S(e,t)},O=e=>{var n=pn();a(n,21,()=>J.focusTools,e=>e.id,(e,n)=>{var i=fn();let a;var o=B(i),s=e=>{var t=c(),r=A(t);p(r,()=>T(n).icon,(e,t)=>{t(e,{})}),S(e,t)},l=e=>{var r=un(),i=M(r,!0);D(e=>t(i,e),[()=>T(n).label.charAt(0)]),S(e,r)};v(o,e=>{T(n).icon?e(s):e(l,-1)});var d=L(o,2),f=e=>{var r=dn(),i=M(r,!0);D(()=>t(i,T(n).badge)),S(e,r)};v(d,e=>{T(n).badge!=null&&e(f)}),g(i),D((e,t)=>{a=r(i,1,`smrt-admin-shell__focus-tool svelte-1x3knxs`,null,a,{active:e}),V(i,`aria-pressed`,t),V(i,`aria-label`,T(n).label),V(i,`title`,T(n).label)},[()=>J.activeFocusToolId===T(n).id&&$(`right`),()=>J.activeFocusToolId===T(n).id&&$(`right`)]),u(`click`,i,()=>J.toggleFocusTool(T(n).id)),S(e,i)}),g(n),D(e=>V(n,`aria-label`,e),[()=>q(X[`ui.admin_shell.focus_tools`])]),S(e,n)},j=e=>{x(e,()=>`right`)},N=W(()=>Mt(`right`));v(y,e=>{J.config.panels.right.rail===!1?e(b):s.focusRail?e(E,1):J.focusTools.length>0?e(O,2):T(N)&&e(j,3)}),g(m);var F=L(m,2),te=e=>{var t=mn(),n=B(t);R(n,()=>`rightSidebar.header`);var r=L(n,2);f(r,()=>J.activeFocusToolId,e=>{{let t=W(pe);ee(e,()=>T(t))}});var i=L(r,2);R(i,()=>`rightSidebar.footer`),g(t),D(e=>V(t,`hidden`,e),[()=>!Z(`right`)]),S(e,t)},I=W(()=>Ct(`right`));v(F,e=>{T(I)&&e(te)}),g(i),k(i,e=>xe.right=e,()=>xe?.right),P(i,(e,t)=>je?.(e,t),()=>({direction:`right`,onDismiss:()=>J.collapsePanel(`right`),enabled:T(n)===`drawer`&&!!s.phone?.swipeToClose&&$(`right`)})),D((e,t,r,a)=>{V(i,`data-state`,e),V(i,`data-closing`,T(ze)===`right`?``:void 0),V(i,`data-presentation`,t),V(i,`data-phone`,T(n)),V(i,`aria-label`,r),V(i,`tabindex`,T(Ie)===`right`?-1:void 0),i.inert=a},[()=>T(ze)===`right`?`expanded`:Q(`right`),()=>J.presentationFor(`right`),()=>wt(`right`),()=>T(Y)&&!$(`right`)||T(Ie)===`left`||T(ze)===`right`]),w(`animationend`,i,e=>qe(e,`right`)),S(e,i)},Zn=W(()=>J.isEdgeShown(`right`));v(Yn,e=>{T(Zn)&&e(Xn)});var Qn=L(Yn,2),$n=e=>{var n=gn(),r=B(n),i=e=>{let t=W(()=>T(bt)[0].icon);var n=c(),r=A(n);p(r,()=>T(t),(e,t)=>{t(e,{})}),S(e,n)};v(r,e=>{T(bt)[0].icon&&e(i)});var a=L(r,2),o=M(a,!0);g(n),D((e,r)=>{V(n,`aria-label`,e),t(o,r)},[()=>q(X[`ui.admin_shell.open_panel`],{label:T(bt).map(e=>e.label).join(`, `)}),()=>T(bt).map(e=>e.label).join(`, `)]),u(`click`,n,St),S(e,n)};v(Qn,e=>{T(bt)&&e($n)});var er=L(Qn,2);ne(er,()=>`footer`);var tr=L(er,2),nr=e=>{var n=bn();let r;var i=B(n),a=e=>{var t=_n(),n=B(t);h(n,()=>s.bottomLeftCorner),g(t),S(e,t)};v(i,e=>{s.bottomLeftCorner&&e(a)});var o=L(i,2);y(o,``,{},{"--band-column":2});var l=B(o);R(l,()=>`footer.start`);var u=L(l,2);R(u,()=>`footer.center`);var d=L(u,2),f=e=>{var t=c(),n=A(t);h(n,()=>s.systemBar),S(e,t)};v(d,e=>{s.systemBar&&e(f)});var p=L(d,2);R(p,()=>`footer.end`);var m=L(p,2);U(m,()=>`footer`);var _=L(m,2),b=e=>{x(e,()=>`bottom`)},C=W(()=>Mt(`bottom`)&&(s.systemPanel||!s.systemBar));v(_,e=>{T(C)&&e(b)}),g(o);var w=L(o,2),E=e=>{var t=vn(),n=B(t);h(n,()=>s.bottomRightCorner),g(t),S(e,t)};v(w,e=>{s.bottomRightCorner&&e(E)});var O=L(w,2),k=e=>{var n=yn(),r=B(n),i=e=>{var t=c(),n=A(t);h(n,()=>s.systemPanel),S(e,t)},a=e=>{var n=Vt(),r=M(n,!0);D(e=>t(r,e),[()=>q(X[`ui.admin_shell.no_system_panel`])]),S(e,n)};v(r,e=>{s.systemPanel?e(i):e(a,-1)}),g(n),D((e,t)=>{V(n,`aria-label`,e),V(n,`hidden`,t)},[()=>wt(`bottom`),()=>!$(`bottom`)]),S(e,n)},j=W(()=>Ct(`bottom`));v(O,e=>{T(j)&&e(k)}),g(n),D(e=>{V(n,`data-state`,e),V(n,`data-presentation`,J.config.panels.bottom.presentation),r=y(n,``,r,{"--edge-columns":T(_t)})},[()=>Q(`bottom`)]),S(e,n)},rr=W(()=>Q(`bottom`)!==`hidden`);v(tr,e=>{T(rr)&&e(nr)});var ir=L(tr,2),ar=e=>{var t=xn(),n=B(t);h(n,()=>s.overlays,()=>({viewport:T(we),bottomBar:T(ke)})),g(t),S(e,t)};v(ir,e=>{s.overlays&&e(ar)});var or=L(ir,2),sr=e=>{var t=Sn(),n=B(t);h(n,()=>s.phoneBottomBar??o),g(t),S(e,t)};v(or,e=>{T(ke)===`nav`&&e(sr)});var cr=L(or,2),lr=e=>{var n=Tn(),r=B(n),i=B(r),o=e=>{var t=c(),n=A(t);h(n,()=>s.shortcutsOverlay),S(e,t)},u=e=>{var n=wn(),r=A(n),i=B(r),o=M(i,!0),s=L(i,2);{let e=W(()=>q(X[`ui.admin_shell.close_shortcuts`]));ae(s,{variant:`ghost`,size:`sm`,get"aria-label"(){return T(e)},onclick:()=>N(fe,!1),children:(e,n)=>{m();var r=d();D(e=>t(r,e),[()=>q(X[`ui.admin_shell.close`])]),S(e,r)},$$slots:{default:!0}})}g(r);var c=L(r,2),u=B(c);a(u,17,()=>me,l,(e,n)=>{var r=Cn(),i=B(r),a=M(i,!0),o=L(i,2),s=M(o,!0);g(r),D((e,n)=>{t(a,e),t(s,n)},[()=>wt(T(n)),()=>Tt(T(n))]),S(e,r)});var f=L(u,2),p=B(f),h=M(p,!0);m(2),g(f),g(c),D((e,n)=>{t(o,e),t(h,n)},[()=>q(X[`ui.admin_shell.shell_shortcuts`]),()=>q(X[`ui.admin_shell.shortcuts`])]),S(e,n)};v(i,e=>{s.shortcutsOverlay?e(o):e(u,-1)}),g(r),g(n),P(n,e=>On?.(e)),D(e=>V(n,`aria-label`,e),[()=>q(X[`ui.admin_shell.shell_shortcuts`])]),S(e,n)};v(cr,e=>{T(fe)&&e(lr)}),g(kn),k(kn,e=>K(e),()=>K()),D((e,t,n,r)=>{V(kn,`data-top-state`,e),V(kn,`data-left-state`,t),V(kn,`data-right-state`,n),V(kn,`data-bottom-state`,r),V(kn,`data-viewport`,T(we)),V(kn,`data-bottom-bar`,T(ke)),V(kn,`data-phone-top`,T(De)?``:void 0),V(kn,`data-chrome-hidden`,T(ye)?``:void 0),V(kn,`data-resizing`,T(be)??void 0),y(kn,`${T(pt)}; ${T(Pe)}; ${T(Me)}`),Bn.inert=T(Ie)!==null},[()=>Q(`top`),()=>Q(`left`),()=>Q(`right`),()=>Q(`bottom`)]),S(n,kn),b()}R([`pointerdown`,`keydown`,`dblclick`,`click`]);var On=x(`<span class="smrt-hotkey-input__conflict svelte-1bewart"> </span>`),kn=x(`<div class="smrt-hotkey-input svelte-1bewart"><!> <!></div>`);function An(e,n){i(n,!0);let r=E(n,`value`,3,null),a=E(n,`disabled`,3,!1),o=E(n,`conflictsWith`,3,null),{t:s}=re();function c(e){if(!a()&&e.key!==`Tab`){if(e.preventDefault(),e.key===`Backspace`||e.key===`Delete`){n.oncapture?.(null);return}e.code&&n.oncapture?.({code:e.code,altKey:e.altKey||void 0,ctrlKey:e.ctrlKey||void 0,metaKey:e.metaKey||void 0,shiftKey:e.shiftKey||void 0})}}var l=kn(),u=B(l);{let e=W(()=>s(X[`ui.hotkey_input.capture_title`]));ae(u,{variant:`secondary`,size:`sm`,get disabled(){return a()},onkeydown:c,get title(){return T(e)},children:(e,n)=>{m();var i=d();D(e=>t(i,e),[()=>ut(r())]),S(e,i)},$$slots:{default:!0}})}var f=L(u,2),p=e=>{var n=On(),r=M(n);D(e=>t(r,`${e??``} ${o()??``}`),[()=>s(X[`ui.hotkey_input.conflicts_with`])]),S(e,n)};v(f,e=>{o()&&e(p)}),g(l),S(e,l),b()}var jn=x(`<div class="smrt-shell-settings-panel__row svelte-6ssh9w"><div class="svelte-6ssh9w"><strong> </strong> <span class="svelte-6ssh9w"> </span></div> <div class="smrt-shell-settings-panel__actions svelte-6ssh9w"><!> <!></div></div>`),Mn=x(`<section class="smrt-shell-settings-panel svelte-6ssh9w"><header class="svelte-6ssh9w"><div><h2 class="svelte-6ssh9w"> </h2> <p class="svelte-6ssh9w"> </p></div> <!></header> <div class="smrt-shell-settings-panel__grid svelte-6ssh9w"></div></section>`);function Nn(e,n){i(n,!0);let{t:r}=re(),o=Pe(),s=[`top`,`left`,`bottom`,`right`],u=W(()=>o.settings.hotkeysEnabled!==!1);function f(e){return tt(e,o.config.panels[e],o.settings)}function p(e){let t=f(e);if(!t)return null;let n=s.find(n=>n!==e&&f(n)?.code===t.code&&f(n)?.altKey===t.altKey&&f(n)?.ctrlKey===t.ctrlKey&&f(n)?.metaKey===t.metaKey&&f(n)?.shiftKey===t.shiftKey);return n?o.config.panels[n].label:null}var h=Mn(),_=B(h),y=B(_),x=B(y),C=M(x,!0),w=L(x,2),E=M(w,!0);g(y);var O=L(y,2);{let e=W(()=>T(u)?`secondary`:`primary`);ae(O,{get variant(){return T(e)},size:`sm`,onclick:()=>o.setHotkeysEnabled(!T(u)),children:(e,n)=>{m();var i=d();D(e=>t(i,e),[()=>T(u)?r(X[`ui.shell_settings_panel.disable_hotkeys`]):r(X[`ui.shell_settings_panel.enable_hotkeys`])]),S(e,i)},$$slots:{default:!0}})}g(_);var k=L(_,2);a(k,21,()=>s,l,(e,n)=>{let i=W(()=>o.config.panels[T(n)]);var a=c(),s=A(a),l=e=>{var a=jn(),s=B(a),c=B(s),l=M(c,!0),h=L(c,2),_=M(h,!0);g(s);var v=L(s,2),y=B(v);ae(y,{variant:`ghost`,size:`sm`,onclick:()=>o.setPanel(T(n),o.panels[T(n)]===`expanded`?`collapsed`:`expanded`),children:(e,i)=>{m();var a=d();D(e=>t(a,e),[()=>o.panels[T(n)]===`expanded`?r(X[`ui.shell_settings_panel.collapse`]):r(X[`ui.shell_settings_panel.expand`])]),S(e,a)},$$slots:{default:!0}});var b=L(y,2);{let e=W(()=>f(T(n))),t=W(()=>!T(u)),r=W(()=>p(T(n)));An(b,{get value(){return T(e)},get disabled(){return T(t)},get conflictsWith(){return T(r)},oncapture:e=>o.setHotkey(T(n),e?.code??null)})}g(v),g(a),D(()=>{t(l,T(i).label),t(_,o.panels[T(n)])}),S(e,a)};v(s,e=>{o.panels[T(n)]!==`hidden`&&e(l)}),S(e,a)}),g(k),g(h),D((e,n,r)=>{V(h,`aria-label`,e),t(C,n),t(E,r)},[()=>r(X[`ui.shell_settings_panel.shell_settings`]),()=>r(X[`ui.shell_settings_panel.shell_settings`]),()=>r(X[`ui.shell_settings_panel.description`])]),S(e,h),b()}var Pn=x(`<p class="svelte-1xn2c24"> </p>`),Fn=x(`<span class="smrt-app-scope-panel__environment svelte-1xn2c24"> </span>`),In=x(`<div class="smrt-app-scope-panel__section svelte-1xn2c24"><!></div>`),Ln=x(`<section class="smrt-app-scope-panel svelte-1xn2c24"><header class="svelte-1xn2c24"><div class="svelte-1xn2c24"><h2 class="svelte-1xn2c24"> </h2> <!></div> <!></header> <!> <!> <!> <!></section>`);function Rn(e,n){i(n,!0);let r=E(n,`tenantName`,3,``),a=E(n,`environment`,3,``),o=E(n,`showSettings`,3,!0),{t:s}=re();var c=Ln(),l=B(c),u=B(l),d=B(u),f=M(d,!0),p=L(d,2),m=e=>{var n=Pn(),i=M(n,!0);D(()=>t(i,r())),S(e,n)};v(p,e=>{r()&&e(m)}),g(u);var _=L(u,2),y=e=>{ie(e,{variant:`info`,size:`sm`,children:(e,n)=>{var r=Fn(),i=M(r,!0);D(()=>t(i,a())),S(e,r)},$$slots:{default:!0}})};v(_,e=>{a()&&e(y)}),g(l);var x=L(l,2),C=e=>{var t=In(),r=B(t);h(r,()=>n.switcher),g(t),S(e,t)};v(x,e=>{n.switcher&&e(C)});var w=L(x,2),T=e=>{var t=In(),r=B(t);h(r,()=>n.search),g(t),S(e,t)};v(w,e=>{n.search&&e(T)});var O=L(w,2),k=e=>{var t=In(),r=B(t);h(r,()=>n.docs),g(t),S(e,t)};v(O,e=>{n.docs&&e(k)});var A=L(O,2),j=e=>{Nn(e,{})};v(A,e=>{o()&&e(j)}),g(c),D(e=>{V(c,`aria-label`,e),t(f,n.appName)},[()=>s(X[`ui.app_scope_panel.app_scope`])]),S(e,c),b()}function zn(){let e=Pe();return{get active(){return e.openFocusToolId},get tools(){return e.focusTools.map(e=>e.id)},get available(){return e.dockAvailable},has:t=>e.focusTools.some(e=>e.id===t),isOpen:t=>e.openFocusToolId===t,open:(t,n)=>e.openDockTool(t,n),close:()=>e.closeFocusTool(),toggle:(t,n)=>e.toggleDockTool(t,n)}}var Bn={header:`top`,footer:`bottom`,leftSidebar:`left`,rightSidebar:`right`},Vn=class{options;#e=H(!1);get editingState(){return T(this.#e)}set editingState(e){N(this.#e,e,!0)}constructor(e){this.options=e}get editable(){return this.options.editable?.()??!1}get editing(){return this.editable&&this.editingState}setEditing(e){return e&&!this.editable||this.editingState===e?!1:(this.editingState=e,!0)}get layout(){return pe(this.options.layout()??{version:1})}get sections(){return q(this.options.nav(),this.options.groups(),this.layout)}get applied(){let{nav:e,groups:t}=ce(this.options.nav(),this.options.groups(),this.options.panels(),this.layout);return{nav:e,groups:t}}get panels(){let e=Je(this.options.panels()).panels,t=this.layout;return Z.map(n=>{let r=e[n],i=t.panels?.[n];return{edge:n,label:r.label,available:r.initial!==`hidden`,visible:r.initial!==`hidden`&&i?.visible!==!1,initial:i?.initial??(r.initial===`expanded`?`expanded`:`collapsed`)}})}get placementItems(){let e=this.options.items?.()??[],t=be(e,this.layout),n=new Map;for(let[e,r]of Object.entries(t))for(let t of r)n.set(t,e);let r=new Set,i=[];for(let t of e){if(r.has(t.id))continue;r.add(t.id);let e=n.get(t.id)??t.slot;i.push({id:t.id,label:t.label,defaultSlot:t.slot,slot:e,moved:e!==t.slot})}return i}get placements(){let e=new Map(this.placementItems.map(e=>[e.id,e])),t=be(this.options.items?.()??[],this.layout);return Object.fromEntries(Object.entries(t).map(([t,n])=>[t,n.flatMap(t=>e.get(t)??[])]))}isRegionVisible(e){let t=Bn[e];return this.panels.find(e=>e.edge===t)?.visible??!1}get customized(){return!ge(this.layout)}isHidden(e){return this.layout.hidden?.includes(e)??!1}apply(e){let t=this.layout;return JSON.stringify(e)!==JSON.stringify(t)&&(this.options.commit(e),!0)}moveSection(e,t){return this.apply(J(this.options.nav(),this.options.groups(),this.layout,e,t))}moveItem(e,t,n){return this.apply(K(this.options.nav(),this.options.groups(),this.layout,e,t,n))}hide(e){return this.apply(he(this.options.nav(),this.options.groups(),this.layout,e))}show(e){return this.apply(Ee(this.layout,e))}setPanel(e,t){return this.panels.find(t=>t.edge===e)?.available?this.apply(Se(this.layout,e,t,this.options.panels())):!1}renameSection(e,t){return this.apply(le(this.options.nav(),this.options.groups(),this.layout,e,t))}renameItem(e,t){return this.apply(Oe(this.options.nav(),this.options.groups(),this.layout,e,t))}setSectionIcon(e,t){return this.apply(de(this.options.nav(),this.options.groups(),this.layout,e,t))}setSectionTitleVisible(e,t){return this.apply(fe(this.options.nav(),this.options.groups(),this.layout,e,t))}createSection(e){let t=this.layout.customSections?.length??0,n=Y(this.options.nav(),this.options.groups(),this.layout,e);if(!this.apply(n))return null;let r=n.customSections??[];return r.length>t?r[r.length-1]?.id??null:null}deleteSection(e){return this.apply(me(this.layout,e))}placeItem(e,t){if(!we(t))return!1;let n=this.placementItems.find(t=>t.id===e);return!n||n.slot===t?!1:this.apply(_e(this.layout,e,t,n.defaultSlot))}resetItem(e){return this.apply(xe(this.layout,e))}reset(){return this.apply({version:1})}};R([`click`]);var Hn=new Set([`$$slots`,`$$events`,`$$legacy`]);function Un(e,t){i(t,!0);let n=Pe(),r=te(t,Hn),a=null;z(()=>{a=n.registerFocusTool(r)}),ee(()=>{a?.()}),b()}var Wn=ne({"ui.sortable.label":`Sortable list`,"ui.sortable.move":`Move {item}`,"ui.sortable.group":`{label}, {count} items`,"ui.sortable.empty":`No items in {container}.`,"ui.sortable.pickup":`Picked up {item}. Available destinations: {destinations}. Use the up and down arrow keys to choose a position, then Space or Enter to drop. Escape cancels.`,"ui.sortable.position":`{item}, position {position} of {count} in {container}.`,"ui.sortable.drop":`Moved {item} to {container}, position {position} of {count}.`,"ui.sortable.failed":`Could not move {item}. The list was restored.`,"ui.sortable.cancel":`Cancelled moving {item}.`,"ui.sortable.unavailable":`{container} is unavailable.`});function Gn(e,t){switch(t.type){case`pickup`:return e(Wn[`ui.sortable.pickup`],{item:t.item,destinations:t.destinations.join(`, `)});case`position`:return e(Wn[`ui.sortable.position`],{item:t.item,container:t.container,position:t.position,count:t.count});case`drop`:return e(Wn[`ui.sortable.drop`],{item:t.item,container:t.container,position:t.position,count:t.count});case`unavailable`:return e(Wn[`ui.sortable.unavailable`],{container:t.container});case`failed`:return e(Wn[`ui.sortable.failed`],{item:t.item});case`cancel`:return e(Wn[`ui.sortable.cancel`],{item:t.item})}}var Kn=x(`<div class="smrt-sortable__marker svelte-71hk1v" aria-hidden="true"></div>`),qn=x(`<!> <div role="listitem"><button type="button" class="smrt-sortable__handle svelte-71hk1v" data-smrt-sortable-handle="item"><span aria-hidden="true">⠿</span></button> <div class="smrt-sortable__content svelte-71hk1v"><!></div></div>`,1),Jn=x(`<div role="listitem" class="smrt-sortable__empty svelte-71hk1v"> </div>`),Yn=x(`<div class="smrt-sortable__items svelte-71hk1v" role="list"><!> <!></div>`),Xn=x(`<button type="button" class="smrt-sortable__handle svelte-71hk1v" data-smrt-sortable-handle="container"><span aria-hidden="true">⠿</span></button>`),Zn=x(`<strong> </strong>`),Qn=x(`<section><header class="smrt-sortable__header svelte-71hk1v"><!> <div class="smrt-sortable__content svelte-71hk1v"><!></div></header> <!></section>`),$n=x(`<!> <div role="listitem" class="smrt-sortable__container-slot"><!></div>`,1),er=x(`<div class="smrt-sortable__containers svelte-71hk1v" role="list"><!> <!></div>`),tr=x(`<div class="smrt-sortable svelte-71hk1v" role="group"><!> <!> <div class="smrt-sortable__live svelte-71hk1v" aria-live="assertive" aria-atomic="true"> </div> <div class="smrt-sortable__live svelte-71hk1v" aria-live="assertive" aria-atomic="true"> </div></div>`);function nr(e,n){let l=s();i(n,!0);let d=(e,i=o)=>{let s=W(()=>T(F).get(i().id)??[]),c=W(()=>R.drag?.itemId),l=W(()=>T(s).length);var d=Yn(),f=B(d);a(f,19,()=>T(s),e=>e.id,(e,t,a)=>{var o=qn(),l=A(o),d=e=>{var t=Kn();S(e,t)},f=W(()=>H(i().id,U(T(s),T(a)))&&T(t).id!==T(c));v(l,e=>{T(f)&&e(d)});var p=L(l,2);let m;var b=B(p),x=L(b,2),C=B(x);h(C,()=>n.item,()=>({item:T(t),container:i(),index:T(a),isDragging:T(c)===T(t).id})),g(x),g(p),D(e=>{m=r(p,1,`smrt-sortable__item svelte-71hk1v`,null,m,{"smrt-sortable__item--dragging":T(c)===T(t).id}),V(p,`data-smrt-sortable-item-id`,T(t).id),V(b,`draggable`,R.nativeDraggable),V(b,`aria-label`,e),V(b,`aria-pressed`,T(c)===T(t).id),V(b,`aria-describedby`,T(c)===T(t).id?y:void 0)},[()=>_(Wn[`ui.sortable.move`],{item:T(t).label})]),w(`dragover`,p,e=>e.preventDefault()),w(`drop`,p,e=>{R.drag&&(e.stopPropagation(),R.dropOnItem(e,i().id,T(a)))}),u(`click`,b,()=>R.consumeClick(T(t).id)),u(`keydown`,b,e=>R.keydown(e,T(t).id)),w(`blur`,b,e=>R.blur(e,T(t).id)),u(`pointerdown`,b,e=>R.pointerDown(e,T(t).id)),u(`pointermove`,b,e=>R.pointerMove(e)),u(`pointerup`,b,e=>R.pointerUp(e)),w(`pointercancel`,b,e=>R.pointerCancel(e)),w(`dragstart`,b,e=>R.dragStart(e,T(t).id)),w(`dragend`,b,()=>R.dragEnd()),S(e,o)},e=>{var n=Jn(),r=M(n,!0);D(e=>t(r,e),[()=>_(Wn[`ui.sortable.empty`],{container:i().label})]),S(e,n)});var p=L(f,2),m=e=>{var t=Kn();S(e,t)},b=W(()=>H(i().id,T(s).filter(e=>e.id!==T(c)).length));v(p,e=>{T(b)&&e(m)}),g(d),D(e=>V(d,`aria-label`,e),[()=>_(Wn[`ui.sortable.group`],{label:i().label,count:T(l)})]),S(e,d)},f=(e,i=o,a=o)=>{let s=W(()=>(T(F).get(i().id)??[]).length),l=W(()=>z.drag?.itemId===i().id);var f=Qn();let p;var m=B(f),y=B(m),b=e=>{var t=Xn();D(e=>{V(t,`draggable`,z.nativeDraggable),V(t,`aria-label`,e),V(t,`aria-pressed`,T(l)),V(t,`aria-describedby`,T(l)?x:void 0)},[()=>_(Wn[`ui.sortable.move`],{item:i().label})]),u(`click`,t,()=>z.consumeClick(i().id)),u(`keydown`,t,e=>z.keydown(e,i().id)),w(`blur`,t,e=>z.blur(e,i().id)),u(`pointerdown`,t,e=>z.pointerDown(e,i().id)),u(`pointermove`,t,e=>z.pointerMove(e)),u(`pointerup`,t,e=>z.pointerUp(e)),w(`pointercancel`,t,e=>z.pointerCancel(e)),w(`dragstart`,t,e=>z.dragStart(e,i().id)),w(`dragend`,t,()=>z.dragEnd()),S(e,t)};v(y,e=>{a()&&e(b)});var E=L(y,2),O=B(E),k=e=>{var t=c(),r=A(t);h(r,()=>n.containerHeader,()=>({container:i(),count:T(s),isDragging:T(l)})),S(e,t)},j=e=>{var n=Zn(),r=M(n,!0);D(()=>t(r,i().label)),S(e,n)};v(O,e=>{n.containerHeader?e(k):e(j,-1)}),g(E),g(m);var P=L(m,2);d(P,i),g(f),D(()=>{p=r(f,1,`smrt-sortable__container svelte-71hk1v`,null,p,{"smrt-sortable__container--disabled":i().disabled,"smrt-sortable__container--dragging":T(l)}),V(f,`data-smrt-sortable-container-id`,i().id),V(f,`data-smrt-sortable-container-item`,a()?i().id:void 0),V(f,`aria-label`,i().label)}),w(`dragover`,f,e=>e.preventDefault()),w(`drop`,f,e=>{R.drag?R.dropOnContainer(e,i().id):a()&&z.dropOnItem(e,C,T(N).findIndex(e=>e.id===i().id))}),S(e,f)},p=E(n,`reorderContainers`,3,!1),m=E(n,`allowSameContainerReorder`,3,!0),{t:_}=re(),y=`${l}-item-live`,x=`${l}-container-live`,C=`__smrt-sortable-containers__`,O,j=W(()=>p()?n.containers.filter(e=>e.fixed):[]),N=W(()=>p()?n.containers.filter(e=>!e.fixed):n.containers),P=W(()=>[...T(j),...T(N)]),F=W(()=>{let e=new Map;for(let t of n.containers)e.set(t.id,[]);for(let t of n.items)e.get(t.containerId)?.push(t);return e}),ee=W(()=>new Map(n.items.map(e=>[e.id,e]))),te=W(()=>new Map(n.containers.map(e=>[e.id,e])));function I(e){return Gn(_,e)}let R=ve({root:()=>O,selectors:{container:`[data-smrt-sortable-container-id]`,containerKey:`smrtSortableContainerId`,item:`[data-smrt-sortable-item-id]`,itemKey:`smrtSortableItemId`},containers:()=>T(P),itemIds:e=>(T(F).get(e)??[]).map(e=>e.id),itemLabel:e=>T(ee).get(e)?.label,allowSameContainerReorder:()=>m(),enabled:()=>n.onmove!==void 0,orientation:()=>`vertical`,announce:I,focusTarget:e=>e.querySelector(`[data-smrt-sortable-handle="item"]`),async commit(e){let t=T(ee).get(e.itemId),r=T(te).get(e.source.containerId),i=T(te).get(e.target.containerId);t&&r&&i&&await n.onmove?.({item:t,source:e.source,target:e.target,sourceContainer:r,targetContainer:i})}}),z=ve({root:()=>O,selectors:{container:`[data-smrt-sortable-container-list]`,containerKey:`smrtSortableContainerList`,item:`[data-smrt-sortable-container-item]`,itemKey:`smrtSortableContainerItem`},containers:()=>[{id:C,label:n.label??_(Wn[`ui.sortable.label`])}],itemIds:()=>T(N).map(e=>e.id),itemLabel:e=>T(te).get(e)?.label,allowSameContainerReorder:()=>!0,enabled:()=>p()&&n.oncontainermove!==void 0,orientation:()=>`vertical`,announce:I,focusTarget:e=>Array.from(e.children).find(e=>e.tagName===`HEADER`)?.querySelector(`[data-smrt-sortable-handle="container"]`)??null,async commit(e){let t=T(te).get(e.itemId);t&&await n.oncontainermove?.({container:t,source:e.source.index,target:e.target.index})}});function H(e,t){let n=R.drag?.target;return n?.containerId===e&&n.index===t}function U(e,t){let n=R.drag?.itemId,r=0;for(let i=0;i<t;i+=1)e[i].id!==n&&(r+=1);return r}function ne(e){return z.drag?.target.index===e}function ie(e){let t=z.drag?.itemId,n=0;for(let r of T(N)){if(r.id===e)break;r.id!==t&&(n+=1)}return n}var ae=tr(),oe=B(ae);a(oe,17,()=>T(j),e=>e.id,(e,t)=>{f(e,()=>T(t),()=>!1)});var se=L(oe,2),ce=e=>{var t=er();V(t,`data-smrt-sortable-container-list`,C);var n=B(t);a(n,17,()=>T(N),e=>e.id,(e,t)=>{var n=$n(),r=A(n),i=e=>{var t=Kn();S(e,t)},a=W(()=>ne(ie(T(t).id))&&z.drag?.itemId!==T(t).id);v(r,e=>{T(a)&&e(i)});var o=L(r,2),s=B(o);f(s,()=>T(t),()=>!0),g(o),S(e,n)});var r=L(n,2),i=e=>{var t=Kn();S(e,t)},o=W(()=>ne(T(N).filter(e=>e.id!==z.drag?.itemId).length));v(r,e=>{T(o)&&e(i)}),g(t),S(e,t)},le=e=>{var t=c(),n=A(t);a(n,17,()=>T(N),e=>e.id,(e,t)=>{f(e,()=>T(t),()=>!1)}),S(e,t)};v(se,e=>{p()?e(ce):e(le,-1)});var G=L(se,2),ue=M(G,!0),K=L(G,2),de=M(K,!0);g(ae),k(ae,e=>O=e,()=>O),D(e=>{V(ae,`aria-label`,e),V(G,`id`,y),t(ue,R.announcement),V(K,`id`,x),t(de,z.announcement)},[()=>n.label??_(Wn[`ui.sortable.label`])]),S(e,ae),b()}R([`click`,`keydown`,`pointerdown`,`pointermove`,`pointerup`]);var rr=x(`<span class="smrt-tenant-nav__attention svelte-klqdew" data-attention="" aria-hidden="true"></span> <span class="smrt-tenant-nav__sr-only svelte-klqdew"> </span>`,1),ir=x(`<span class="smrt-tenant-nav__icon svelte-klqdew" aria-hidden="true"><!></span>`),ar=x(`<span class="smrt-tenant-nav__icon smrt-tenant-nav__icon--fallback svelte-klqdew" aria-hidden="true"> </span>`),or=x(`<span class="smrt-tenant-nav__sr-only svelte-klqdew"> </span>`),sr=x(`<small class="svelte-klqdew"> </small>`),cr=x(`<strong class="svelte-klqdew"> </strong> <!>`,1),lr=C(`<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path></path></svg>`),ur=x(`<a class="smrt-tenant-nav__action svelte-klqdew"><span class="smrt-tenant-nav__icon svelte-klqdew" aria-hidden="true"><!></span></a>`),dr=x(`<a class="svelte-klqdew"><!> <span class="svelte-klqdew"> </span> <!> <!></a>`),fr=x(`<div class="smrt-tenant-nav__children svelte-klqdew"></div>`),pr=x(`<div class="smrt-tenant-nav__section svelte-klqdew"><div class="smrt-tenant-nav__row svelte-klqdew"><a><!> <!> <!></a> <!></div> <!></div>`),mr=x(`<strong class="svelte-klqdew"> </strong>`),hr=x(`<div class="smrt-tenant-nav__section svelte-klqdew"><div class="smrt-tenant-nav__row svelte-klqdew"><a><span class="smrt-tenant-nav__icon svelte-klqdew" aria-hidden="true"><!></span> <!></a></div></div>`),gr=x(`<div class="smrt-tenant-nav__group smrt-tenant-nav__group--flat" role="group"><div class="smrt-tenant-nav__group-items svelte-klqdew"><!></div></div>`),_r=x(`<span aria-hidden="true" class="svelte-klqdew"> </span> <span class="smrt-tenant-nav__sr-only svelte-klqdew"> </span>`,1),vr=x(`<span class="svelte-klqdew"> </span>`),yr=x(`<details class="smrt-tenant-nav__group" open=""><summary class="smrt-tenant-nav__heading svelte-klqdew"><!></summary> <div class="smrt-tenant-nav__group-items svelte-klqdew"><!></div></details>`),br=x(`<nav><!> <!></nav>`);function xr(e,n){i(n,!0);let s=(e,n=o)=>{let r=W(()=>I(n()));var i=c(),a=A(i),s=e=>{var n=rr(),i=L(A(n),2),a=M(i);D(()=>t(a,`(${T(r)??``})`)),S(e,n)};v(a,e=>{T(r)&&e(s)}),S(e,i)},f=(e,i=o,l=o)=>{var f=c(),h=A(f);a(h,17,i,e=>e.href,(e,i)=>{let o=W(()=>ee(T(i),l()??k(T(i)))?T(i).action:void 0);var f=pr(),h=B(f),_=B(h);let y;var b=B(_),C=e=>{var r=ir(),a=B(r),o=e=>{var t=c(),r=A(t);p(r,()=>n.iconComponent,(e,t)=>{t(e,{get name(){return T(i).icon},size:18})}),S(e,t)},s=e=>{var n=d();D(()=>t(n,T(i).icon)),S(e,n)};v(a,e=>{n.iconComponent?e(o):e(s,-1)}),g(r),S(e,r)},w=e=>{var n=ar(),r=M(n,!0);D(e=>t(r,e),[()=>R(T(i).label)]),S(e,n)};v(b,e=>{T(i).icon?e(C):x()&&e(w,1)});var E=L(b,2),j=e=>{var n=or(),r=M(n,!0);D(()=>t(r,T(i).label)),S(e,n)},N=e=>{var n=cr(),r=A(n),a=M(r,!0),o=L(r,2),s=e=>{var n=sr(),r=M(n,!0);D(()=>t(r,T(i).badge)),S(e,n)};v(o,e=>{T(i).badge!==null&&T(i).badge!==void 0&&e(s)}),D(()=>t(a,T(i).label)),S(e,n)};v(E,e=>{x()?e(j):e(N,-1)});var P=L(E,2);s(P,()=>T(i)),g(_);var F=L(_,2),I=e=>{var r=ur(),i=B(r),a=B(i),s=e=>{var t=c(),r=A(t);{let e=W(()=>T(o).icon??m);p(r,()=>n.iconComponent,(t,n)=>{n(t,{get name(){return T(e)},size:16})})}S(e,t)},l=e=>{var n=d();D(()=>t(n,T(o).icon)),S(e,n)},f=e=>{var t=lr(),n=M(t);D(()=>V(n,`d`,ye.settings)),S(e,t)};v(a,e=>{n.iconComponent?e(s):T(o).icon?e(l,1):e(f,-1)}),g(i),g(r),D(e=>{V(r,`href`,T(o).href),V(r,`aria-label`,T(o).label),V(r,`aria-current`,e),V(r,`title`,T(o).label)},[()=>O(T(o))?`page`:void 0]),u(`click`,r,function(...e){n.onNavigate?.apply(this,e)}),S(e,r)};v(F,e=>{T(o)&&e(I)}),g(h);var z=L(h,2),H=e=>{var r=fr();a(r,21,()=>T(i).children,e=>e.href,(e,r)=>{var i=dr(),a=B(i),o=e=>{var i=ir(),a=B(i),o=e=>{var t=c(),i=A(t);p(i,()=>n.iconComponent,(e,t)=>{t(e,{get name(){return T(r).icon},size:16})}),S(e,t)},s=e=>{var n=d();D(()=>t(n,T(r).icon)),S(e,n)};v(a,e=>{n.iconComponent?e(o):e(s,-1)}),g(i),S(e,i)};v(a,e=>{T(r).icon&&e(o)});var l=L(a,2),f=M(l,!0),m=L(l,2),h=e=>{var n=sr(),i=M(n,!0);D(()=>t(i,T(r).badge)),S(e,n)};v(m,e=>{T(r).badge!==null&&T(r).badge!==void 0&&e(h)});var _=L(m,2);s(_,()=>T(r)),g(i),D(e=>{V(i,`href`,T(r).href),V(i,`aria-current`,e),t(f,T(r).label)},[()=>O(T(r))?`page`:void 0]),u(`click`,i,function(...e){n.onNavigate?.apply(this,e)}),S(e,i)}),g(r),S(e,r)};v(z,e=>{T(i).children?.length&&!x()&&e(H)}),g(f),D((e,t)=>{V(_,`href`,T(i).href),V(_,`aria-current`,e),V(_,`title`,x()?T(i).label:T(i).description),y=r(_,1,`svelte-klqdew`,null,y,{"smrt-tenant-nav__link--visible-active":t})},[()=>O(T(i))?`page`:void 0,()=>te(T(i))]),u(`click`,_,function(...e){n.onNavigate?.apply(this,e)}),S(e,f)}),S(e,f)},m=`settings`,h=E(n,`items`,19,()=>[]),_=E(n,`groups`,19,()=>[]),y=E(n,`currentHref`,3,``),x=E(n,`collapsed`,3,!1),C=E(n,`navMode`,3,`items`),{t:w}=re();function O(e){return e.href===y()||y().startsWith(`${e.href}/`)}function k(e){return O(e)||!!e.children?.some(e=>O(e))||!!e.action&&O(e.action)}function j(e){return e.items.some(k)}function N(e){return e.id??e.heading}function P(e){return e.href??n.sectionHref?.(N(e))??e.items[0]?.href}function F(e){let t=P(e);return!!t&&(t===y()||y().startsWith(`${t}/`))||j(e)}function ee(e,t){return x()||!e.action?!1:e.action.visibility!==`active`||t}function te(e){return O(e)?!0:x()&&k(e)}function I(e){return e.attention?typeof e.attention==`string`&&e.attention.trim()?e.attention.trim():w(X[`ui.tenant_nav.needs_attention`]):null}function R(e){return e.trim().charAt(0).toLocaleUpperCase()||`?`}var z=br();let H;var U=B(z);f(U,h);var ne=L(U,2);a(ne,17,_,l,(e,i)=>{var a=c(),o=A(a),s=e=>{let a=W(()=>P(T(i)));var o=c(),s=A(o),l=e=>{var o=hr(),s=B(o),c=B(s);let l;var d=B(c),f=B(d);{let e=W(()=>T(i).icon??`folder`);De(f,{get name(){return T(e)},size:18,get iconComponent(){return n.iconComponent}})}g(d);var p=L(d,2),m=e=>{var n=or(),r=M(n,!0);D(()=>t(r,T(i).heading)),S(e,n)},h=e=>{var n=mr(),r=M(n,!0);D(()=>t(r,T(i).heading)),S(e,n)};v(p,e=>{x()?e(m):e(h,-1)}),g(c),g(s),g(o),D((e,t,n)=>{V(o,`data-nav-section`,e),V(c,`href`,T(a)),l=r(c,1,`smrt-tenant-nav__section-link svelte-klqdew`,null,l,{"smrt-tenant-nav__link--visible-active":t}),V(c,`aria-current`,n),V(c,`title`,x()?T(i).heading:void 0)},[()=>N(T(i)),()=>F(T(i)),()=>T(a)===y()?`page`:F(T(i))?`true`:void 0]),u(`click`,c,function(...e){n.onNavigate?.apply(this,e)}),S(e,o)};v(s,e=>{T(a)&&e(l)}),S(e,o)},l=e=>{var t=gr(),n=B(t),r=B(n);{let e=W(()=>j(T(i)));f(r,()=>T(i).items,()=>T(e))}g(n),g(t),D(()=>V(t,`aria-label`,T(i).heading)),S(e,t)},d=e=>{var n=yr(),r=B(n),a=B(r),o=e=>{var n=_r(),r=A(n),a=M(r,!0),o=L(r,2),s=M(o,!0);D(e=>{t(a,e),t(s,T(i).heading)},[()=>R(T(i).heading)]),S(e,n)},s=e=>{var n=vr(),r=M(n,!0);D(()=>t(r,T(i).heading)),S(e,n)};v(a,e=>{x()?e(o):e(s,-1)}),g(r);var c=L(r,2),l=B(c);{let e=W(()=>j(T(i)));f(l,()=>T(i).items,()=>T(e))}g(c),g(n),D(()=>V(n,`aria-label`,T(i).heading)),S(e,n)};v(o,e=>{C()===`sections`?e(s):T(i).showTitle===!1?e(l,1):e(d,-1)}),S(e,a)}),g(z),D(e=>{H=r(z,1,`smrt-tenant-nav svelte-klqdew`,null,H,{"smrt-tenant-nav--collapsed":x()}),V(z,`data-density`,n.density),V(z,`aria-label`,e)},[()=>n[`aria-label`]||w(X[`ui.tenant_nav.tenant_navigation`])]),S(e,z),b()}R([`click`]);var Sr=x(`<!> <!>`,1),Cr=x(`<span class="smrt-shell-layout-editor__muted svelte-m9hdng"> </span>`),wr=x(`<div class="smrt-shell-layout-editor__row svelte-m9hdng"><!></div>`),Tr=x(`<strong> </strong>`),Er=x(`<!> <!> <!> <!>`,1),Dr=x(`<span> </span> <!>`,1),Or=x(`<div class="smrt-shell-layout-editor__preview"><h3 class="svelte-m9hdng"> </h3> <div class="smrt-shell-layout-editor__preview-frame svelte-m9hdng" role="group" inert=""><!></div></div>`),kr=x(`<section class="smrt-shell-layout-editor svelte-m9hdng"><header class="svelte-m9hdng"><div><h2 class="svelte-m9hdng"> </h2> <p class="svelte-m9hdng"> </p></div> <!></header> <fieldset class="smrt-shell-layout-editor__panels svelte-m9hdng"><legend class="svelte-m9hdng"> </legend> <!></fieldset> <div class="smrt-shell-layout-editor__body svelte-m9hdng"><div class="smrt-shell-layout-editor__nav"><div class="smrt-shell-layout-editor__nav-head svelte-m9hdng"><h3 class="svelte-m9hdng"> </h3> <!></div> <!></div> <!></div></section>`);function Ar(n,o){let l=s();i(o,!0);let u=E(o,`preview`,3,!0),{t:f}=re(),p=j(()=>o.controller??Te()),h=`${l}-heading`,_=W(()=>p.sections),y=W(()=>p.panels),x=W(()=>p.applied),C=W(()=>T(_).map(e=>({id:e.id,label:e.heading??f(X[`ui.shell_layout_editor.top_level`]),fixed:e.group===null,root:e.group===null,hidden:e.hidden,custom:e.custom,titleVisible:e.titleVisible,count:e.items.length}))),w=W(()=>T(_).flatMap(e=>e.items.map(t=>({id:t.id,containerId:e.id,label:t.label}))));function O(e,t){t?p.show(e):p.hide(e)}let P=H(void 0);function F(e,t){let n=t.currentTarget;p.renameSection(e,n.value),n.value=T(C).find(t=>t.id===e)?.label??``}async function ee(){let t=p.createSection(f(X[`ui.shell_layout_editor.new_section_label`]));if(!t)return;await e();let n=T(P)?.querySelector(`input[data-section-name="${CSS.escape(t)}"]`);n?.focus(),n?.select()}function te(e,t,n){n>0&&!globalThis.confirm?.(f(X[`ui.shell_layout_editor.delete_confirm`],{label:t}))||p.deleteSection(e)}function I(e){p.moveItem(e.item.id,e.target.containerId,e.target.index)}function R(e){p.moveSection(e.container.id,e.target)}var z=kr(),U=B(z),ne=B(U),ie=B(ne),se=M(ie,!0),ce=L(ie,2),le=M(ce,!0);g(ne);var ue=L(ne,2);{let e=W(()=>!p.customized);ae(ue,{variant:`secondary`,size:`sm`,get disabled(){return T(e)},onclick:()=>p.reset(),children:(e,n)=>{m();var r=d();D(e=>t(r,e),[()=>f(X[`ui.shell_layout_editor.reset`])]),S(e,r)},$$slots:{default:!0}})}g(U);var K=L(U,2),de=B(K),q=M(de,!0),J=L(de,2);a(J,17,()=>T(y),e=>e.edge,(e,n)=>{var r=wr(),i=B(r),a=e=>{var t=Sr(),r=A(t);{let e=W(()=>f(X[`ui.shell_layout_editor.show_panel`],{panel:T(n).label}));ke(r,{interaction:!1,get checked(){return T(n).visible},get label(){return T(e)},onchange:e=>p.setPanel(T(n).edge,{visible:e.currentTarget.checked})})}var i=L(r,2);{let e=W(()=>T(n).initial===`expanded`),t=W(()=>!T(n).visible),r=W(()=>f(X[`ui.shell_layout_editor.start_expanded`],{panel:T(n).label}));ke(i,{interaction:!1,get checked(){return T(e)},get disabled(){return T(t)},get label(){return T(r)},onchange:e=>p.setPanel(T(n).edge,{initial:e.currentTarget.checked?`expanded`:`collapsed`})})}S(e,t)},o=e=>{var r=Cr(),i=M(r,!0);D(e=>t(i,e),[()=>f(X[`ui.shell_layout_editor.panel_unavailable`],{panel:T(n).label})]),S(e,r)};v(i,e=>{T(n).available?e(a):e(o,-1)}),g(r),D(()=>V(r,`data-edge`,T(n).edge)),S(e,r)}),g(K);var fe=L(K,2),pe=B(fe),me=B(pe),he=B(me),ge=M(he,!0),_e=L(he,2);ae(_e,{variant:`secondary`,size:`sm`,onclick:ee,children:(e,n)=>{m();var r=d();D(e=>t(r,e),[()=>f(X[`ui.shell_layout_editor.new_section`])]),S(e,r)},$$slots:{default:!0}}),g(me);var ve=L(me,2);{let e=(e,n)=>{let r=()=>(n?.()).container,i=W(()=>T(C).find(e=>e.id===r().id));var a=c(),o=A(a),s=e=>{var n=Tr(),i=M(n,!0);D(()=>t(i,r().label)),S(e,n)},l=e=>{var t=Er(),n=A(t);{let e=W(()=>f(X[`ui.shell_layout_editor.section_name`],{label:r().label}));oe(n,{class:`smrt-shell-layout-editor__name`,interaction:!1,get"data-section-name"(){return r().id},get"aria-label"(){return T(e)},get value(){return r().label},onchange:e=>F(r().id,e)})}var a=L(n,2);{let e=W(()=>T(i)?.hidden?`eyeOff`:`eye`),t=W(()=>!T(i)?.hidden),n=W(()=>f(X[`ui.shell_layout_editor.show_entry`],{label:r().label}));G(a,{get icon(){return T(e)},get pressed(){return T(t)},get label(){return T(n)},onclick:()=>O(r().id,!!T(i)?.hidden)})}var o=L(a,2);{let e=W(()=>T(i)?.titleVisible===!1?`headingOff`:`heading`),t=W(()=>T(i)?.titleVisible??!0),n=W(()=>f(X[`ui.shell_layout_editor.show_title_for`],{label:r().label}));G(o,{get icon(){return T(e)},get pressed(){return T(t)},get label(){return T(n)},onclick:()=>p.setSectionTitleVisible(r().id,!(T(i)?.titleVisible??!0))})}var s=L(o,2),c=e=>{{let t=W(()=>f(X[`ui.shell_layout_editor.delete_section`],{label:r().label}));G(e,{icon:`trash`,get label(){return T(t)},onclick:()=>te(r().id,r().label,T(i).count)})}};v(s,e=>{T(i)?.custom&&e(c)}),S(e,t)};v(o,e=>{T(i)?.root?e(s):e(l,-1)}),S(e,a)},n=(e,n)=>{let i=()=>(n?.()).item,a=()=>(n?.()).container,o=W(()=>p.isHidden(i().id));var s=Dr(),c=A(s);let l;var u=M(c,!0),d=L(c,2);{let e=W(()=>T(o)?`eyeOff`:`eye`),t=W(()=>!T(o)),n=W(()=>f(X[`ui.shell_layout_editor.show_entry`],{label:i().label}));G(d,{get icon(){return T(e)},get pressed(){return T(t)},get label(){return T(n)},onclick:()=>O(i().id,T(o))})}D(e=>{l=r(c,1,`smrt-shell-layout-editor__label svelte-m9hdng`,null,l,{"smrt-shell-layout-editor__muted":e}),t(u,i().label)},[()=>T(o)||p.isHidden(a().id)]),S(e,s)},i=W(()=>f(X[`ui.shell_layout_editor.sortable_label`]));nr(ve,{get containers(){return T(C)},get items(){return T(w)},get label(){return T(i)},reorderContainers:!0,onmove:I,oncontainermove:R,containerHeader:e,item:n,$$slots:{containerHeader:!0,item:!0}})}g(pe);var ye=L(pe,2),be=e=>{var n=Or(),r=B(n),i=M(r,!0),a=L(r,2),s=B(a);{let e=W(()=>f(X[`ui.shell_layout_editor.preview_label`]));xr(s,{get items(){return T(x).nav},get groups(){return T(x).groups},get iconComponent(){return o.iconComponent},get"aria-label"(){return T(e)}})}g(a),g(n),D((e,n)=>{t(i,e),V(a,`aria-label`,n)},[()=>f(X[`ui.shell_layout_editor.preview`]),()=>f(X[`ui.shell_layout_editor.preview_label`])]),S(e,n)};v(ye,e=>{u()&&e(be)}),g(fe),g(z),k(z,e=>N(P,e),()=>T(P)),D((e,n,r,i)=>{V(z,`aria-labelledby`,h),V(ie,`id`,h),t(se,e),t(le,n),t(q,r),t(ge,i)},[()=>f(X[`ui.shell_layout_editor.heading`]),()=>f(X[`ui.shell_layout_editor.description`]),()=>f(X[`ui.shell_layout_editor.panels`]),()=>f(X[`ui.shell_layout_editor.navigation`])]),S(n,z),b()}var jr=x(`<!> <!>`,1),Mr=x(`<strong class="svelte-ro0vqt"> </strong>`),Nr=x(`<span class="smrt-nav-editor__top svelte-ro0vqt"> </span>`),Pr=x(`<span class="smrt-nav-editor__section-icon svelte-ro0vqt"><!></span>`),Fr=x(`<div class="smrt-nav-editor__icons svelte-ro0vqt" role="group"></div>`),Ir=x(`<div class="smrt-nav-editor__toolbar svelte-ro0vqt" role="group" data-testid="section-toolbar"><!> <!> <!> <!> <!> <!></div>`),Lr=x(`<div class="smrt-nav-editor__head svelte-ro0vqt"><button type="button" data-section-title="" aria-haspopup="true"><!> </button> <span class="smrt-nav-editor__overlay svelte-ro0vqt"><!> <!></span> <!></div>`),Rr=x(`<span class="smrt-nav-editor__icon svelte-ro0vqt" aria-hidden="true"><!></span>`),zr=x(`<span><!> <!></span> <!> <!> <!>`,1),Br=x(`<nav class="smrt-nav-editor svelte-ro0vqt" data-layout-editing=""><!> <!></nav>`);function Vr(n,s){i(s,!0);let l=(e,t=o)=>{var n=jr(),r=A(n);{let e=W(()=>t().hidden?`eyeOff`:`eye`),n=W(()=>!t().hidden),i=W(()=>y(X[`ui.shell_layout_editor.show_entry`],{label:t().label}));G(r,{get icon(){return T(e)},get pressed(){return T(n)},get label(){return T(i)},onclick:()=>ge(t().id,t().hidden)})}var i=L(r,2),a=e=>{{let n=W(()=>t().titleVisible?`heading`:`headingOff`),r=W(()=>y(X[`ui.shell_layout_editor.show_title_for`],{label:t().label}));G(e,{get icon(){return T(n)},get pressed(){return t().titleVisible},get label(){return T(r)},onclick:()=>x.setSectionTitleVisible(t().id,!t().titleVisible)})}};v(i,e=>{_()!==`sections`&&e(a)}),S(e,n)},f=(e,t=o)=>{var n=c(),r=A(n);h(r,()=>s.sectionActions??o,()=>({sectionId:t().id,label:t().label,custom:t().custom,editing:!0})),S(e,n)},_=E(s,`navMode`,3,`items`),{t:y}=re(),x=j(()=>s.controller??Te()),C=W(()=>x.sections),O=W(()=>T(C).map(e=>({id:e.id,label:e.heading??y(X[`ui.shell_layout_editor.top_level`]),fixed:e.group===null,root:e.group===null,hidden:e.hidden,custom:e.custom,titleVisible:e.titleVisible,count:e.items.length,icon:e.icon??`folder`}))),P=W(()=>(_()===`sections`?[]:T(C)).flatMap(e=>e.items.map(t=>({id:t.id,containerId:e.id,label:t.label})))),F=W(()=>new Map(T(C).flatMap(e=>e.items.map(e=>[e.id,e.defaultLabel])))),ee=W(()=>new Map(T(C).flatMap(e=>e.items.map(e=>[e.id,e.item.icon])))),te=H(void 0),R=H(null);function z(){return typeof window<`u`&&window.matchMedia?.(`(hover: hover) and (pointer: fine)`).matches===!0}function U(e){return T(te)?.querySelector(`[data-nav-section="${CSS.escape(e)}"]`)??null}function ne(e,t){t.pointerType!==`touch`&&z()&&(T(R)?.pinned||N(R,{id:e,pinned:!1},!0))}async function ie(t){if(T(R)?.id===t&&T(R).pinned){N(R,null);return}N(R,{id:t,pinned:!0},!0),await e();let n=U(t)?.querySelector(`input[data-section-name]`);n?.focus(),n?.select()}function se(e){T(R)?.id===e&&!T(R).pinned&&N(R,null)}function ce(e,t){if(t.key===`Escape`&&T(R)?.id===e){if(t.preventDefault(),t.stopPropagation(),T(K)===e){N(K,null),de(e)?.focus();return}N(R,null),U(e)?.querySelector(`button[data-section-title]`)?.focus()}}function le(e,t){if(T(R)?.id!==e||!T(R).pinned)return;let n=t.relatedTarget;n instanceof Node&&!U(e)?.contains(n)&&N(R,null)}I(()=>{let e=T(R);if(!e?.pinned||typeof document>`u`)return;let t=t=>{t.target instanceof Node&&!U(e.id)?.contains(t.target)&&N(R,null)};return document.addEventListener(`pointerdown`,t,!0),()=>document.removeEventListener(`pointerdown`,t,!0)});let K=H(null);function de(e){return U(e)?.querySelector(`button[data-section-icon]`)??null}function q(e,t){x.setSectionIcon(e,t),N(K,null),de(e)?.focus()}I(()=>{T(K)!==null&&T(R)?.id!==T(K)&&N(K,null)});function J(e){return e.replace(/([A-Z])/g,` $1`).toLowerCase()}let fe=H(null);async function pe(t){N(fe,t,!0),await e();let n=T(te)?.querySelector(`input[data-item-name="${CSS.escape(t)}"]`);n?.focus(),n?.select()}function me(e,t){T(fe)===e&&(N(fe,null),x.renameItem(e,t))}function he(e){N(fe,null),T(te)?.querySelector(`button[data-item-rename="${CSS.escape(e)}"]`)?.focus()}function ge(e,t){t?x.show(e):x.hide(e)}function _e(e,t){x.renameSection(e,t.value),t.value=T(O).find(t=>t.id===e)?.label??``}async function ve(){let t=x.createSection(y(X[`ui.shell_layout_editor.new_section_label`]));t&&(await e(),await ie(t))}function ye(e,t,n){n>0&&!globalThis.confirm?.(y(X[`ui.shell_layout_editor.delete_confirm`],{label:t}))||(N(R,null),x.deleteSection(e))}function be(e){x.moveItem(e.item.id,e.target.containerId,e.target.index)}function xe(e){x.moveSection(e.container.id,e.target)}var Se=Br(),Ce=B(Se);{let e=(e,n)=>{let i=()=>(n?.()).container,o=W(()=>T(O).find(e=>e.id===i().id));var d=c(),p=A(d),m=e=>{var n=Mr(),r=M(n,!0);D(()=>t(r,i().label)),S(e,n)},h=e=>{var n=Nr(),r=M(n,!0);D(()=>t(r,i().label)),S(e,n)},b=e=>{var n=Lr(),i=B(n);let c;var d=B(i),p=e=>{var t=Pr(),n=B(t);De(n,{get name(){return T(o).icon},get iconComponent(){return s.iconComponent}}),g(t),S(e,t)};v(d,e=>{_()===`sections`&&e(p)});var m=L(d,1,!0);g(i);var h=L(i,2),b=B(h);l(b,()=>T(o));var x=L(b,2);f(x,()=>T(o)),g(h);var C=L(h,2),E=e=>{var t=Ir(),n=B(t);{let e=W(()=>y(X[`ui.shell_layout_editor.section_name`],{label:T(o).label}));oe(n,{class:`smrt-nav-editor__name`,interaction:!1,get"data-section-name"(){return T(o).id},get"aria-label"(){return T(e)},get value(){return T(o).label},onchange:e=>_e(T(o).id,e.currentTarget),onkeydown:e=>{e.key===`Enter`&&(e.preventDefault(),_e(T(o).id,e.currentTarget))}})}var r=L(n,2);l(r,()=>T(o));var i=L(r,2),c=e=>{{let t=W(()=>T(K)===T(o).id),n=W(()=>y(X[`ui.shell_layout_editor.section_icon`],{label:T(o).label}));G(e,{get"data-section-icon"(){return T(o).id},"aria-haspopup":`true`,get"aria-expanded"(){return T(t)},get label(){return T(n)},onclick:()=>N(K,T(K)===T(o).id?null:T(o).id,!0),children:(e,t)=>{De(e,{get name(){return T(o).icon},get iconComponent(){return s.iconComponent}})},$$slots:{default:!0}})}};v(i,e=>{_()===`sections`&&e(c)});var u=L(i,2),d=e=>{{let t=W(()=>y(X[`ui.shell_layout_editor.delete_section`],{label:T(o).label}));G(e,{icon:`trash`,get label(){return T(t)},onclick:()=>ye(T(o).id,T(o).label,T(o).count)})}};v(u,e=>{T(o).custom&&e(d)});var p=L(u,2);f(p,()=>T(o));var m=L(p,2),h=e=>{var t=Fr();a(t,20,()=>ue,e=>e,(e,t)=>{{let n=W(()=>T(o).icon===t),r=W(()=>y(X[`ui.shell_layout_editor.icon_option`],{icon:J(t)}));G(e,{get"data-icon-option"(){return t},get pressed(){return T(n)},get label(){return T(r)},onclick:()=>q(T(o).id,t),children:(e,n)=>{De(e,{get name(){return t}})},$$slots:{default:!0}})}}),g(t),D(e=>V(t,`aria-label`,e),[()=>y(X[`ui.shell_layout_editor.section_icon`],{label:T(o).label})]),S(e,t)};v(m,e=>{_()===`sections`&&T(K)===T(o).id&&e(h)}),g(t),D(e=>V(t,`aria-label`,e),[()=>y(X[`ui.layout_edit.section_options`],{label:T(o).label})]),S(e,t)};v(C,e=>{T(R)?.id===T(o).id&&e(E)}),g(n),D(e=>{V(n,`data-nav-section`,T(o).id),V(n,`data-toolbar-open`,T(R)?.id===T(o).id?``:void 0),c=r(i,1,`smrt-nav-editor__title svelte-ro0vqt`,null,c,{"smrt-nav-editor__title--off":!T(o).titleVisible,"smrt-nav-editor__title--hidden":T(o).hidden}),V(i,`aria-expanded`,T(R)?.id===T(o).id),V(i,`aria-label`,e),t(m,T(o).label)},[()=>y(X[`ui.layout_edit.edit_section`],{label:T(o).label})]),w(`pointerleave`,n,()=>se(T(o).id)),u(`keydown`,n,e=>ce(T(o).id,e)),u(`focusout`,n,e=>le(T(o).id,e)),w(`pointerenter`,i,e=>ne(T(o).id,e)),u(`click`,i,()=>ie(T(o).id)),S(e,n)};v(p,e=>{T(o)?T(o).root?e(h,1):e(b,-1):e(m)}),S(e,d)},n=(e,n)=>{let i=()=>(n?.()).item,a=()=>(n?.()).container,o=W(()=>x.isHidden(i().id)),l=W(()=>T(ee).get(i().id)),u=W(()=>T(F).get(i().id));var f=zr(),m=A(f);let h;var _=B(m),b=e=>{var n=Rr(),r=B(n),i=e=>{var t=c(),n=A(t);p(n,()=>s.iconComponent,(e,t)=>{t(e,{get name(){return T(l)},size:18})}),S(e,t)},a=e=>{var n=d();D(()=>t(n,T(l))),S(e,n)};v(r,e=>{s.iconComponent?e(i):e(a,-1)}),g(n),S(e,n)};v(_,e=>{T(l)&&e(b)});var C=L(_,2),w=e=>{{let t=W(()=>y(X[`ui.shell_layout_editor.item_name`],{label:i().label}));oe(e,{class:`smrt-nav-editor__item-name`,interaction:!1,get"data-item-name"(){return i().id},get"aria-label"(){return T(t)},get value(){return i().label},onblur:e=>me(i().id,e.currentTarget.value),onkeydown:e=>{if(e.key===`Enter`){e.preventDefault(),e.stopPropagation();let t=e.currentTarget.value;me(i().id,t),he(i().id)}else e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),he(i().id))}})}},E=e=>{var n=Mr(),r=M(n,!0);D(()=>{V(n,`title`,T(u)===i().label?void 0:T(u)),t(r,i().label)}),S(e,n)};v(C,e=>{T(fe)===i().id?e(w):e(E,-1)}),g(m);var O=L(m,2);{let e=W(()=>y(X[`ui.shell_layout_editor.rename_item`],{label:i().label}));G(O,{icon:`edit`,get"data-item-rename"(){return i().id},get label(){return T(e)},onclick:()=>pe(i().id)})}var k=L(O,2),j=e=>{{let t=W(()=>y(X[`ui.shell_layout_editor.reset_item`],{label:i().label,original:T(u)}));G(e,{icon:`undo`,get label(){return T(t)},onclick:()=>x.renameItem(i().id,null)})}};v(k,e=>{T(u)!==void 0&&T(u)!==i().label&&e(j)});var N=L(k,2);{let e=W(()=>T(o)?`eyeOff`:`eye`),t=W(()=>!T(o)),n=W(()=>y(X[`ui.shell_layout_editor.show_entry`],{label:i().label}));G(N,{get icon(){return T(e)},get pressed(){return T(t)},get label(){return T(n)},onclick:()=>ge(i().id,T(o))})}D(e=>h=r(m,1,`smrt-nav-editor__row svelte-ro0vqt`,null,h,{"smrt-nav-editor__row--muted":e}),[()=>T(o)||x.isHidden(a().id)]),S(e,f)},i=W(()=>y(X[`ui.shell_layout_editor.sortable_label`]));nr(Ce,{get containers(){return T(O)},get items(){return T(P)},get label(){return T(i)},reorderContainers:!0,onmove:be,oncontainermove:xe,containerHeader:e,item:n,$$slots:{containerHeader:!0,item:!0}})}var we=L(Ce,2);ae(we,{variant:`secondary`,size:`sm`,class:`smrt-nav-editor__new`,onclick:ve,children:(e,n)=>{m();var r=d();D(e=>t(r,e),[()=>y(X[`ui.shell_layout_editor.new_section`])]),S(e,r)},$$slots:{default:!0}}),g(Se),k(Se,e=>N(te,e),()=>T(te)),D(e=>{V(Se,`data-nav-mode`,_()),V(Se,`aria-label`,e)},[()=>s[`aria-label`]||y(X[`ui.shell_layout_editor.sortable_label`])]),S(n,Se),b()}R([`keydown`,`focusout`,`click`]),R([`click`]);var Hr=x(`<strong class="svelte-qdly75"> </strong>`),Ur=x(`<span class="smrt-section-menu__desc svelte-qdly75"> </span>`),Wr=x(`<span><!> <!> <!> <!></span> <!> <!> <!>`,1),Gr=x(`<p class="smrt-section-menu__empty svelte-qdly75"> </p>`),Kr=x(`<span class="smrt-section-menu__meta svelte-qdly75"><!></span>`),qr=x(`<span class="smrt-section-menu__actions svelte-qdly75"><!></span>`),Jr=x(`<div class="smrt-section-menu__card-foot svelte-qdly75"><!> <!></div>`),Yr=x(`<li class="smrt-section-menu__card svelte-qdly75"><a class="smrt-section-menu__card-link svelte-qdly75"><span class="smrt-section-menu__card-icon svelte-qdly75"><!></span> <span class="smrt-section-menu__card-title svelte-qdly75"> </span> <!></a> <!></li>`),Xr=x(`<ul class="smrt-section-menu__cards svelte-qdly75"></ul>`),Zr=x(`<li class="smrt-section-menu__item svelte-qdly75"><a class="smrt-section-menu__link svelte-qdly75"><!> <span class="smrt-section-menu__label svelte-qdly75"> </span></a> <!> <!> <svg class="smrt-section-menu__chevron svelte-qdly75" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" focusable="false"><path></path></svg></li>`),Qr=x(`<ul class="smrt-section-menu__list svelte-qdly75"></ul>`),$r=x(`<div><!></div>`);function ei(n,s){i(s,!0);let l=E(s,`layout`,3,`list`),{t:d}=re(),f=j(()=>s.controller??Te()),p=W(()=>f.sections.find(e=>e.id===s.sectionId)),m=W(()=>f.editing),_=W(()=>T(p)?.heading??s.sectionId),y=W(()=>(T(p)?.items??[]).filter(e=>T(m)||!e.hidden).map(e=>({id:e.id,href:e.item.href,label:e.label,defaultLabel:e.defaultLabel,icon:e.item.icon,hidden:e.hidden,item:e.item}))),x=W(()=>s[`aria-label`]||d(X[`ui.section_menu.label`],{label:T(_)})),C=W(()=>[{id:s.sectionId,label:T(x)}]),w=W(()=>T(y).map(e=>({id:e.id,containerId:s.sectionId,label:e.label}))),O=W(()=>new Map(T(y).map(e=>[e.id,e]))),P=H(void 0),F=H(null);async function ee(t){N(F,t,!0),await e();let n=T(P)?.querySelector(`input[data-item-name="${CSS.escape(t)}"]`);n?.focus(),n?.select()}function te(e,t){T(F)===e&&(N(F,null),f.renameItem(e,t))}function I(e){N(F,null),T(P)?.querySelector(`button[data-item-rename="${CSS.escape(e)}"]`)?.focus()}function R(e,t){t?f.show(e):f.hide(e)}function z(e){f.moveItem(e.item.id,s.sectionId,e.target.index)}var U=$r();let ne;var ie=B(U),ae=e=>{nr(e,{get containers(){return T(C)},get items(){return T(w)},get label(){return T(x)},onmove:z,item:(e,n)=>{let i=()=>(n?.()).item,a=W(()=>T(O).get(i().id));var u=c(),p=A(u),m=e=>{var n=Wr(),i=A(n);let c;var u=B(i),p=e=>{De(e,{get name(){return T(a).icon},get iconComponent(){return s.iconComponent}})};v(u,e=>{T(a).icon&&e(p)});var m=L(u,2),_=e=>{{let t=W(()=>d(X[`ui.shell_layout_editor.item_name`],{label:T(a).label}));oe(e,{class:`smrt-section-menu__name`,interaction:!1,get"data-item-name"(){return T(a).id},get"aria-label"(){return T(t)},get value(){return T(a).label},onblur:e=>te(T(a).id,e.currentTarget.value),onkeydown:e=>{if(e.key===`Enter`){e.preventDefault(),e.stopPropagation();let t=e.currentTarget.value;te(T(a).id,t),I(T(a).id)}else e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),I(T(a).id))}})}},y=e=>{var n=Hr(),r=M(n,!0);D(()=>{V(n,`title`,T(a).defaultLabel===T(a).label?void 0:T(a).defaultLabel),t(r,T(a).label)}),S(e,n)};v(m,e=>{T(F)===T(a).id?e(_):e(y,-1)});var b=L(m,2);h(b,()=>s.meta??o,()=>T(a));var x=L(b,2),C=e=>{var n=Ur(),r=M(n,!0);D(()=>t(r,T(a).item.description)),S(e,n)};v(x,e=>{l()===`cards`&&T(a).item.description&&e(C)}),g(i);var w=L(i,2);{let e=W(()=>d(X[`ui.shell_layout_editor.rename_item`],{label:T(a).label}));G(w,{icon:`edit`,get"data-item-rename"(){return T(a).id},get label(){return T(e)},onclick:()=>ee(T(a).id)})}var E=L(w,2),O=e=>{{let t=W(()=>d(X[`ui.shell_layout_editor.reset_item`],{label:T(a).label,original:T(a).defaultLabel}));G(e,{icon:`undo`,get label(){return T(t)},onclick:()=>f.renameItem(T(a).id,null)})}};v(E,e=>{T(a).defaultLabel!==T(a).label&&e(O)});var k=L(E,2);{let e=W(()=>T(a).hidden?`eyeOff`:`eye`),t=W(()=>!T(a).hidden),n=W(()=>d(X[`ui.shell_layout_editor.show_entry`],{label:T(a).label}));G(k,{get icon(){return T(e)},get pressed(){return T(t)},get label(){return T(n)},onclick:()=>R(T(a).id,T(a).hidden)})}D(()=>c=r(i,1,`smrt-section-menu__row svelte-qdly75`,null,c,{"smrt-section-menu__row--muted":T(a).hidden})),S(e,n)};v(p,e=>{T(a)&&e(m)}),S(e,u)},$$slots:{item:!0}})},se=e=>{var n=Gr(),r=M(n,!0);D(e=>t(r,e),[()=>d(X[`ui.section_menu.empty`])]),S(e,n)},ce=e=>{var n=Xr();a(n,21,()=>T(y),e=>e.id,(e,n)=>{var r=Yr(),i=B(r),a=B(i),o=B(a);{let e=W(()=>T(n).icon??`folder`);De(o,{get name(){return T(e)},size:32,get iconComponent(){return s.iconComponent}})}g(a);var c=L(a,2),l=M(c,!0),d=L(c,2),f=e=>{var r=Ur(),i=M(r,!0);D(()=>t(i,T(n).item.description)),S(e,r)};v(d,e=>{T(n).item.description&&e(f)}),g(i);var p=L(i,2),m=e=>{var t=Jr(),r=B(t),i=e=>{var t=Kr(),r=B(t);h(r,()=>s.meta,()=>T(n)),g(t),S(e,t)};v(r,e=>{s.meta&&e(i)});var a=L(r,2),o=e=>{var t=qr(),r=B(t);h(r,()=>s.actions,()=>T(n)),g(t),S(e,t)};v(a,e=>{s.actions&&e(o)}),g(t),S(e,t)};v(p,e=>{(s.meta||s.actions)&&e(m)}),g(r),D(()=>{V(i,`href`,T(n).href),t(l,T(n).label)}),u(`click`,i,function(...e){s.onNavigate?.apply(this,e)}),S(e,r)}),g(n),D(()=>V(n,`aria-label`,T(x))),S(e,n)},le=e=>{var n=Qr();a(n,21,()=>T(y),e=>e.id,(e,n)=>{var r=Zr(),i=B(r),a=B(i),o=e=>{De(e,{get name(){return T(n).icon},get iconComponent(){return s.iconComponent}})};v(a,e=>{T(n).icon&&e(o)});var c=L(a,2),l=M(c,!0);g(i);var d=L(i,2),f=e=>{var t=Kr(),r=B(t);h(r,()=>s.meta,()=>T(n)),g(t),S(e,t)};v(d,e=>{s.meta&&e(f)});var p=L(d,2),m=e=>{var t=qr(),r=B(t);h(r,()=>s.actions,()=>T(n)),g(t),S(e,t)};v(p,e=>{s.actions&&e(m)});var _=L(p,2),y=M(_);g(r),D(()=>{V(i,`href`,T(n).href),t(l,T(n).label),V(y,`d`,ye.chevronRight)}),u(`click`,i,function(...e){s.onNavigate?.apply(this,e)}),S(e,r)}),g(n),D(()=>V(n,`aria-label`,T(x))),S(e,n)};v(ie,e=>{T(m)?e(ae):T(y).length===0?e(se,1):l()===`cards`?e(ce,2):e(le,-1)}),g(U),k(U,e=>N(P,e),()=>T(P)),D(()=>{ne=r(U,1,`smrt-section-menu svelte-qdly75`,null,ne,{"smrt-section-menu--cards":l()===`cards`}),V(U,`data-editing`,T(m)?``:void 0)}),S(n,U),b()}R([`click`]);export{X as _,Gn as a,Vn as c,Dn as d,vt as f,Ue as g,Z as h,xr as i,zn as l,Je as m,Vr as n,Wn as o,lt as p,Ar as r,Un as s,ei as t,Rn as u};
@@ -1 +0,0 @@
1
- import{$ as e,Q as t,Z as n,c as r,et as i,gt as a,r as o,t as s,vt as c}from"./Chyo8rdT.js";import{i as l,n as u,r as d,t as f}from"./Dt-HX3Vu.js";new URL(`sveltekit-internal://`);function p(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function ee(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function te(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function h(e,t,n,r=!1){let i=new URL(e);Object.defineProperty(i,"searchParams",{value:new Proxy(i.searchParams,{get(e,r){if(r===`get`||r===`getAll`||r===`has`)return(t,...i)=>(n(t),e[r](t,...i));t();let i=Reflect.get(e,r);return typeof i==`function`?i.bind(e):i}}),enumerable:!0,configurable:!0});let a=[`href`,`pathname`,`search`,`toString`,`toJSON`];r&&a.push(`hash`);for(let n of a)Object.defineProperty(i,n,{get(){return t(),e[n]},enumerable:!0,configurable:!0});return i}function g(){}function ne(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}var re=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&_.delete(v(e)),re(e,t));var _=new Map;function ie(e,t){let n=v(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent);r.getAttribute(`data-b64`)!==null&&(e=f(e));let i=r.getAttribute(`data-ttl`);return i&&_.set(n,{body:e,init:t,ttl:1e3*Number(i)}),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function ae(e,t,n){if(_.size>0){let t=v(e,n),r=_.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);_.delete(t)}}return window.fetch(t,n)}function v(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${ne(...e)}"]`}return n}var y=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,oe=/^\/\((?:[^)]+)\)$/;function se(e){let t=[];return{pattern:e===`/`||oe.test(e)?/^\/$/:RegExp(`^${le(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return de(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return de(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=y.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return de(e)}).join(``)}).join(``)}/?$`),params:t}}function ce(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function le(e){return e.slice(1).split(`/`).filter(ce)}function ue(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0){if(s.rest)c=``;else continue}if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function de(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}function fe({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=se(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return ue(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function pe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function me(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var b=globalThis.__sveltekit_n74eup?.base??``,he=globalThis.__sveltekit_n74eup?.assets??b??``,ge=`1791700921733`,_e=`sveltekit:snapshot`,ve=`sveltekit:scroll`,ye=`sveltekit:states`,be=`sveltekit:pageurl`,x=`sveltekit:history`,S=`sveltekit:navigation`,C={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},w=location.origin;function T(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function E(){return{x:pageXOffset,y:pageYOffset}}function D(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var xe={...C,"":C.hover};function Se(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ce(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=Se(e)}}function we(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||Oe(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===w&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function O(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=D(s,`preload-code`)),i===null&&(i=D(s,`preload-data`)),t===null&&(t=D(s,`keepfocus`)),n===null&&(n=D(s,`noscroll`)),a===null&&(a=D(s,`reload`)),o===null&&(o=D(s,`replacestate`)),s=Se(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:xe[r??`off`],preload_data:xe[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function Te(e){let t=r(e),n=!0;function i(){n=!0,t.update(e=>e)}function a(e){n=!1,t.set(e)}function o(e){let r;return t.subscribe(t=>{(r===void 0||n&&t!==r)&&e(r=t)})}return{notify:i,set:a,subscribe:o}}var Ee={v:g};function De(){let{set:e,subscribe:t}=r(!1),n;async function i(){clearTimeout(n);try{let t=await fetch(`${he}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let r=(await t.json()).version!==ge;return r&&(e(!0),Ee.v(),clearTimeout(n)),r}catch{return!1}}return{subscribe:t,check:i}}function Oe(e,t,n){return e.origin!==w||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function ke(e){}Uint8Array.fromBase64,typeof process==`object`&&process.versions?.node,Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,`byteLength`).get,typeof SharedArrayBuffer>`u`||Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,`byteLength`).get;var Ae=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);[...Ae],[...new Set([...Ae])];function je(e){return e.filter(e=>e!=null)}function Me(e,t){return e+`/`+t}function Ne(e){return e instanceof u||e instanceof l?e.status:500}function Pe(e){return e instanceof l?e.text:`Internal Error`}var k,A,Fe,Ie=o.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(o.toString()),Le=`a:`;Ie?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Le)},A={current:null},Fe={current:!1}):(k=new class{#e=c({});get data(){return n(this.#e)}set data(e){a(this.#e,e)}#t=c(null);get form(){return n(this.#t)}set form(e){a(this.#t,e)}#n=c(null);get error(){return n(this.#n)}set error(e){a(this.#n,e)}#r=c({});get params(){return n(this.#r)}set params(e){a(this.#r,e)}#i=c({id:null});get route(){return n(this.#i)}set route(e){a(this.#i,e)}#a=c({});get state(){return n(this.#a)}set state(e){a(this.#a,e)}#o=c(-1);get status(){return n(this.#o)}set status(e){a(this.#o,e)}#s=c(new URL(Le));get url(){return n(this.#s)}set url(e){a(this.#s,e)}},A=new class{#e=c(null);get current(){return n(this.#e)}set current(e){a(this.#e,e)}},Fe=new class{#e=c(!1);get current(){return n(this.#e)}set current(e){a(this.#e,e)}},Ee.v=()=>Fe.current=!0);function Re(e){Object.assign(k,e)}var ze={spanContext(){return Be},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Be={traceId:``,spanId:``,traceFlags:0},{onMount:Ve,tick:He}=s,Ue=i??(e=>e()),We=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),j=null,M=pe(`sveltekit:scroll`)??{},N=pe(`sveltekit:snapshot`)??{},P={url:Te({}),page:Te({}),navigating:r(null),updated:De()};function Ge(e){M[e]=E()}function Ke(e,t){let n=e+1;for(;M[n];)delete M[n],n+=1;for(n=t+1;N[n];)delete N[n],n+=1}function F(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(g)}async function qe(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(b||`/`);e&&await e.update()}}var Je,Ye,I,L,Xe,R,Ze={},Qe={},z=[],B=[],V=null;function H(){V?.fork?.then(e=>e?.discard()),V=null,Q={element:void 0,href:void 0}}var U=new Map,$e=new Set,et=new Set,W=new Set,G={branch:[],error:null,url:null,nav:null},tt=!1,nt=!1,rt=!0,K=!1,q=!1,it=!1,at=!1,ot,J,Y,X,st=new Set,ct=new Map,lt=new Map;async function ut(e,t,n){if(globalThis.__sveltekit_n74eup.data){let{q:e={},p:t={},l:n={},f:r={}}=globalThis.__sveltekit_n74eup.data;for(let t in e)Ze[t]=e[t];for(let e in n)Ze[e]=n[e];for(let e in r)Ze[e]=r[e];for(let e in t)Qe[e]=t[e]}document.URL!==location.href&&(location.href=location.href),R=e,await e.hooks.init?.(),Je=fe(e),L=document.documentElement,Xe=t,Ye=e.nodes[0],I=e.nodes[1],Ye(),I(),J=history.state?.[x],Y=history.state?.[S],J||(J=Y=Date.now(),history.replaceState({...history.state,[x]:J,[S]:Y},``));let r=M[J];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await Ht(Xe,n)):(await Z({type:`enter`,url:T(R.hash?Jt(new URL(location.href)):location.href),replace_state:!0}),i()),Vt()}function dt(){z.length=0,at=!1}function ft(e){B.some(e=>e?.snapshot)&&(N[e]=B.map(e=>e?.snapshot?.capture()))}function pt(e){N[e]?.forEach((e,t)=>{B[t]?.snapshot?.restore(e)})}function mt(){Ge(J),me(ve,M),ft(Y),me(_e,N)}async function ht(t,n,r,i){let a,o;n.invalidateAll&&H(),await Z({type:`goto`,url:T(t),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:r,nav_token:i,accept:()=>{if(n.invalidateAll){at=!0,a=new Set;for(let[e,t]of ct)for(let[n,r]of t)r.resource?.reset(),a.add(Me(e,n));o=new Set;for(let[e,t]of lt)for(let n of t.keys())o.add(Me(e,n))}n.invalidate&&n.invalidate.forEach(zt)}}),n.invalidateAll&&e().then(e).then(()=>{for(let[e,t]of ct)for(let[n,{resource:r}]of t)a?.has(Me(e,n))&&r.start();for(let[e,t]of lt)for(let[n,{resource:r}]of t)o?.has(Me(e,n))&&r.reconnect()})}async function gt(e){if(e.id!==V?.id){H();let t={};st.add(t),V={id:e.id,token:t,promise:Et({...e,preload:t}).then(e=>(st.delete(t),e.type===`loaded`&&e.state.error&&H(),e)),fork:null}}return V.promise}async function _t(e){let t=(await At(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function vt(e,t,n){let r={params:G.params,route:{id:G.route?.id??null},url:new URL(location.href)};if(G={...e.state,nav:r},Re(e.props.page),ot=new R.root({target:t,props:{...e.props,stores:P,components:B},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){let e={from:null,to:{...r,scroll:M[J]??E()},willUnload:!1,type:`enter`,complete:Promise.resolve()};W.forEach(t=>t(e))}pt(Y),nt=!0}async function yt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(b&&(e.pathname===b||e.pathname===b+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=p(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:je(n).map(e=>e.node.component),page:qt(k)}};s!==void 0&&(l.props.form=s);let u={},d=!k,f=0;for(let e=0;e<Math.max(n.length,G.branch.length);e+=1){let t=n[e],r=G.branch[e];t?.data!==r?.data&&(d=!0),t&&(u={...u,...t.data},d&&(l.props[`data_${f}`]=u),f+=1)}return(!G.url||e.href!==G.url.href||G.error!==a||s!==void 0&&s!==k.form||d)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:d?u:k.data}),l}async function bt({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o=null,s=!0,c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){function e(...e){for(let t of e){let{href:e}=new URL(t,n);c.dependencies.add(e)}}let u={tracing:{enabled:!1,root:ze,current:ze},route:new Proxy(i,{get:(e,t)=>(s&&(c.route=!0),e[t])}),params:new Proxy(r,{get:(e,t)=>(s&&c.params.add(t),e[t])}),data:a?.data??null,url:h(n,()=>{s&&(c.url=!0)},e=>{s&&c.search_params.add(e)},R.hash),async fetch(t,r){t instanceof Request&&(r={body:t.method===`GET`||t.method===`HEAD`?void 0:await t.blob(),cache:t.cache,credentials:t.credentials,headers:[...t.headers].length>0?t?.headers:void 0,integrity:t.integrity,keepalive:t.keepalive,method:t.method,mode:t.mode,redirect:t.redirect,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:t.signal,...r});let{resolved:i,promise:a}=xt(t,r,n);return s&&e(i.href),a},setHeaders:g,depends:e,parent(){return s&&(c.parent=!0),t()},untrack(e){s=!1;try{return e()}finally{s=!0}}};o=await l.universal.load.call(null,u)??null}return{node:l,loader:e,server:a,universal:l.universal?.load?{type:`data`,data:o,uses:c}:null,data:o??a?.data??null,slash:l.universal?.trailingSlash??a?.slash}}function xt(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:nt?ae(r,i.href,t):ie(r,t)}}function St(e,t,n,r,i,a){if(at)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==G.params[e])return!0;for(let e of i.dependencies)if(z.some(t=>t(new URL(e))))return!0;return!1}function Ct(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function wt(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function Tt({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:qt(k),constructors:[]}}}async function Et({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(V?.id===e)return st.delete(V.token),V.promise;let{errors:o,layouts:s,leaf:c}=i,l=[...s,c];o.forEach(e=>e?.().catch(g)),l.forEach(e=>e?.[1]().catch(g));let f=G.url?e!==Mt(G.url):!1,p=G.route?i.id!==G.route.id:!1,ee=wt(G.url,n),te=!1,m=l.map(async(e,t)=>{if(!e)return;let a=G.branch[t];return e[1]===a?.loader&&!St(te,p,f,ee,a.universal?.uses,r)?a:(te=!0,bt({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await m[n])?.data);return e},server_data_node:Ct(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of m)e.catch(g);let h=[];for(let e=0;e<l.length;e+=1)if(l[e])try{h.push(await m[e])}catch(t){if(t instanceof d)return{type:`redirect`,location:t.location};if(a&&st.has(a))return Tt({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=Ne(t),c;if(t instanceof u)c=t.body;else{if(await P.updated.check())return await qe(),await F(n);c=await $(t,{params:r,url:n,route:{id:i.id}})}let l=await Dt(e,h,o);return l?yt({url:n,params:r,branch:h.slice(0,l.idx).concat(l.node),errors:o,status:s,error:c,route:i}):await Pt(n,{id:i.id},c,s)}else h.push(void 0);return yt({url:n,params:r,branch:h,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function Dt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Ot({status:e,error:t,url:n,route:r}){let i={};try{return yt({url:n,params:i,branch:[await bt({loader:Ye,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:Ct(null)}),{node:await I(),loader:I,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(t){if(t instanceof d){await ht(new URL(t.location,location.href),{},0);return}let a=await R.get_error_template(),o=await $(t,{url:n,params:i,route:r}),s=a({status:e,message:String(o?.message??``).replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}),c=new DOMParser().parseFromString(s,`text/html`);throw document.documentElement.replaceChild(document.adoptNode(c.head),document.head),document.documentElement.replaceChild(document.adoptNode(c.body),document.body),t}}async function kt(e){let t=e.href;if(U.has(t))return U.get(t);let n;try{let r=(async()=>{let t=await R.hooks.reroute({url:new URL(e),fetch:async(t,n)=>xt(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);R.hash?n.hash=t:n.pathname=t,t=n}return t})();U.set(t,r),n=await r}catch{U.delete(t);return}return n}async function At(e,t){if(e&&!Oe(e,b,R.hash)){let n=await kt(e);if(!n)return;let r=jt(n);for(let n of Je){let i=n.exec(r);if(i)return{id:Mt(e),invalidating:t,route:n,params:te(i),url:e}}}}function jt(e){return ee(R.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(b.length))||`/`}function Mt(e){return(R.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Nt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Kt(G,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return K||$e.forEach(e=>e(c)),o?null:s}async function Z({type:n,url:r,popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c={},redirect_count:u=0,nav_token:d={},accept:f=g,block:p=g,event:ee}){let te=X;X=d;let m=await At(r,!1),h=n===`enter`?Kt(G,m,r,n):Nt({url:r,type:n,delta:i?.delta,intent:m,scroll:i?.scroll,event:ee});if(!h){p(),X===d&&(X=te);return}let ne=J,re=Y;f(),K=!0,nt&&h.navigation.type!==`enter`&&P.navigating.set(A.current=h.navigation);let _=m&&await Et(m);if(!_){if(Oe(r,b,R.hash))return await F(r,s);_=await Pt(r,{id:null},await $(new l(404,`Not Found`,`Not found: ${r.pathname}`),{url:r,params:{},route:{id:null}}),404,s)}if(r=m?.url||r,X!==d){h.reject(Error(`navigation aborted`));return}if(!_)return;if(_.type===`redirect`){if(u<20){await Z({type:n,url:new URL(_.location,r),popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c,redirect_count:u+1,nav_token:d}),h.fulfil(void 0);return}if(_=await Ot({status:500,error:await $(Error(`Redirect loop`),{url:r,params:{},route:{id:null}}),url:r,route:{id:null}}),!_)return}else if(_.props.page.status>=400&&await P.updated.check())return await qe(),await F(r,s);if(dt(),Ge(ne),ft(re),_.props.page.url.pathname!==r.pathname&&(r.pathname=_.props.page.url.pathname),c=i?i.state:c,!i){let e=+!s,t={[x]:J+=e,[S]:Y+=e,[ye]:c};(s?history.replaceState:history.pushState).call(history,t,``,r),s||Ke(J,Y)}let ie=m&&V?.id===m.id?V.fork:null;V?.fork&&!ie?H():(V=null,Q={element:void 0,href:void 0}),_.props.page.state=c;let ae;if(nt){let e=(await Promise.all(Array.from(et,e=>e(h.navigation)))).filter(e=>typeof e==`function`);if(e.length>0){function t(){e.forEach(e=>{W.delete(e)})}e.push(t),e.forEach(e=>{W.add(e)})}let n=h.navigation.to;G={..._.state,nav:{params:n.params,route:n.route,url:n.url}},_.props.page&&(_.props.page.url=r),!a&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();let i=ie&&await ie;i?ae=i.commit():(j=null,ot.$set(_.props),j&&Object.assign(_.props.page,j),Re(_.props.page),ae=t?.()),it=!0}else await vt(_,Xe,!1);let{activeElement:v}=document;if(await ae,await e(),await e(),X!==d){h.reject(Error(`navigation aborted`));return}_.props.page&&j&&Object.assign(_.props.page,j);let y=null;if(rt){let e=i?i.scroll:o?E():null;e?scrollTo(e.x,e.y):(y=r.hash&&document.getElementById(Yt(r)))?y.scrollIntoView():scrollTo(0,0)}let oe=document.activeElement!==v&&document.activeElement!==document.body;!a&&!oe&&Gt(r,!y),rt=!0,K=!1,h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=E()),W.forEach(e=>e(h.navigation)),n===`popstate`&&pt(Y),P.navigating.set(A.current=null)}async function Pt(e,t,n,r,i){return e.origin===w&&e.pathname===location.pathname&&!tt?await Ot({status:r,error:n,url:e,route:t}):await F(e,i)}var Q={element:void 0,href:void 0};function Ft(){let e,t;L.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{i(n,C.hover)},20)});function n(e){e.defaultPrevented||i(e.composedPath()[0],C.tap)}L.addEventListener(`mousedown`,n),L.addEventListener(`touchstart`,n,{passive:!0});let r=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(_t(new URL(t.target.href)),r.unobserve(t.target))},{threshold:0});async function i(e,n){let r=Ce(e,L),i=r===Q.element&&r?.href===Q.href&&n>=t;if(!r||i)return;let{url:a,external:o,download:s}=we(r,b,R.hash);if(o||s)return;let c=O(r),l=a&&Mt(G.url)===Mt(a);if(!(c.reload||l)){if(n<=c.preload_data){Q={element:r,href:r.href},t=C.tap;let e=await At(a,!1);if(!e)return;gt(e)}else n<=c.preload_code&&(Q={element:r,href:r.href},t=n,_t(a))}}function a(){r.disconnect();for(let e of L.querySelectorAll(`a`)){let{url:t,external:n,download:i}=we(e,b,R.hash);if(n||i)continue;let a=O(e);a.reload||(a.preload_code===C.viewport&&r.observe(e),a.preload_code===C.eager&&_t(t))}}W.add(a),a()}function $(e,t){if(e instanceof u)return e.body;let n=Ne(e),r=Pe(e);return R.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function It(e,t){Ve(()=>(e.add(t),()=>{e.delete(t)}))}function Lt(e){It(W,e)}function Rt(e,t={}){return e=new URL(T(e)),e.origin===w?ht(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function zt(e){if(typeof e==`function`)z.push(e);else{let{href:t}=new URL(e,location.href);z.push(e=>e.href===t)}}function Bt(e,t){let n={[x]:J,[S]:Y,[be]:k.url.href,[ye]:t};history.replaceState(n,``,T(e)),k.state=t,ot.$set({page:Ue(()=>qt(k))})}function Vt(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(mt(),!K){let e=Kt(G,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};$e.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&mt()}),navigator.connection?.saveData||Ft(),L.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=Ce(t.composedPath()[0],L);if(!n)return;let{url:r,external:i,target:a,download:o}=we(n,b,R.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=O(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&r.protocol!==`https:`&&r.protocol!==`http:`||o)return;let[c,l]=(R.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){Nt({url:r,type:`link`,event:t})?K=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=G.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(q=!0,Ge(J),e(r),!s.replace_state)return;q=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Z({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),L.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(Oe(r,b,!1))return;let i=e.target,a=O(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Z({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Wt){if(t.state?.[`sveltekit:history`]){let n=t.state[x];if(X={},n===J)return;let r=M[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[S],s=G.url?m(location)===m(G.url):!1;if(o===Y&&(it||s)){i!==k.state&&(k.state=i),e(a),M[J]=E(),r&&scrollTo(r.x,r.y),J=n;return}let c=n-J;await Z({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{J=n,Y=o},block:()=>{history.go(-c)},nav_token:X,event:t})}else q||(e(new URL(location.href)),R.hash&&location.reload())}}),addEventListener(`hashchange`,()=>{q&&(q=!1,history.replaceState({...history.state,[x]:++J,[S]:Y},``,location.href))});for(let e of document.querySelectorAll(`link`))We.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&P.navigating.set(A.current=null)});function e(e){G.url=k.url=e,P.page.set(qt(k)),P.page.notify()}}async function Ht(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){tt=!0;let l=new URL(location.href),u;({params:i={},route:a={id:null}}=await At(l,!1)||{}),u=Je.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Ut(r.uses)),bt({loader:R.nodes[t],url:l,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:Ct(r)})}),o=await Promise.all(e);if(u){let e=u.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await yt({url:l,params:i,branch:o,status:t,error:n,errors:u?.errors,form:c,route:u??null})}catch(t){if(t instanceof d)return await F(new URL(t.location,location.href));f=await Ot({status:Ne(t),error:await $(t,{url:l,params:i,route:a}),url:l,route:a}),e.textContent=``,p=!1}f&&(f.props.page&&(f.props.page.state={}),await vt(f,e,p))}function Ut(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}var Wt=!1;function Gt(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=Yt(e);if(n&&document.getElementById(n)){let{x:r,y:i}=E();setTimeout(()=>{let a=history.state;Wt=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Wt=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function Kt(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(g),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:E()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function qt(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Jt(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Yt(e){let t;if(R.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{A as a,b as c,ut as i,Rt as n,k as o,Bt as r,ke as s,Lt as t};
@@ -1 +0,0 @@
1
- import"./2jFBkS1C.js";