zignal-stencil-library 1.1.137 → 1.1.139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/autocomplete-address_44.cjs.entry.js +154 -127
- package/dist/cjs/{dayjs-BsVUcQHz.js → dayjs-DK5xTloK.js} +2 -2
- package/dist/cjs/{index-DxPCrFMw.js → index-BcqF7VoK.js} +34 -4
- package/dist/cjs/{index-Dg8AGaqt.js → index-DPhBM48K.js} +6 -56
- package/dist/cjs/index.cjs.js +1 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/quick-message-app.cjs.entry.js +4 -4
- package/dist/cjs/zignal-stencil-library.cjs.js +2 -2
- package/dist/collection/components/autocomplete-address/autocomplete-address.css +1 -1
- package/dist/collection/components/autocomplete-multiple-select/autocomplete-multiple-select.css +1 -1
- package/dist/collection/components/autocomplete-select/autocomplete-select.css +1 -1
- package/dist/collection/components/autocomplete-select/autocomplete-select.js +6 -3
- package/dist/collection/components/channel-box/channel-box.css +1 -1
- package/dist/collection/components/chat-app/chat-app.css +1 -1
- package/dist/collection/components/chat-header/chat-header.css +1 -1
- package/dist/collection/components/chat-header/chat-header.js +17 -13
- package/dist/collection/components/chat-input/chat-input.css +1 -1
- package/dist/collection/components/checkbox-list/checkbox-list.css +1 -1
- package/dist/collection/components/dialog-bill-editor/dialog-bill-editor.css +1 -1
- package/dist/collection/components/dialog-custom-filter/dialog-custom-filter.css +1 -1
- package/dist/collection/components/dialog-editor/dialog-editor.css +1 -1
- package/dist/collection/components/dialog-preview-media/dialog-preview-media.css +1 -1
- package/dist/collection/components/dialog-preview-media/dialog-preview-media.js +1 -1
- package/dist/collection/components/dialog-search/dialog-search.css +1 -1
- package/dist/collection/components/dialog-search/dialog-search.js +6 -7
- package/dist/collection/components/internal-component/about-section.js +2 -2
- package/dist/collection/components/internal-component/associated-users-section.js +2 -2
- package/dist/collection/components/internal-component/chat-item.js +3 -20
- package/dist/collection/components/menu-chat-channel/menu-chat-channel.css +1 -1
- package/dist/collection/components/menu-chat-type/menu-chat-type.css +1 -1
- package/dist/collection/components/menu-list/menu-list.css +1 -1
- package/dist/collection/components/message-box/message-box.css +1 -1
- package/dist/collection/components/message-box/message-box.js +2 -2
- package/dist/collection/components/message-content/message-content.css +1 -1
- package/dist/collection/components/message-content/message-content.js +1 -2
- package/dist/collection/components/message-item/message-item.css +1 -1
- package/dist/collection/components/message-media/message-media.css +1 -1
- package/dist/collection/components/message-media/message-media.js +47 -11
- package/dist/collection/components/profile-history/profile-history.css +1 -1
- package/dist/collection/components/profile-info/profile-info.css +1 -1
- package/dist/collection/components/profile-info/profile-info.js +1 -1
- package/dist/collection/components/profile-info/user-info-section.js +11 -4
- package/dist/collection/components/profile-media/profile-media.css +1 -1
- package/dist/collection/components/profile-tabs/profile-tabs.css +1 -1
- package/dist/collection/components/quick-message-add-template/quick-message-add-template.css +1 -1
- package/dist/collection/components/quick-message-app/quick-message-app.css +1 -1
- package/dist/collection/components/quick-message-file/quick-message-file.css +1 -1
- package/dist/collection/components/quick-message-image/quick-message-image.css +1 -1
- package/dist/collection/components/quick-message-modal/quick-message-modal.css +1 -1
- package/dist/collection/components/quick-message-template/quick-message-template.css +1 -1
- package/dist/collection/components/search-box/search-box.css +1 -1
- package/dist/collection/components/status-badge/status-badge.css +1 -1
- package/dist/collection/components/tag-list/tag-list.css +1 -1
- package/dist/collection/components/tag-or-status-item/tag-or-status-item.css +1 -1
- package/dist/collection/components/tag-popper/tag-popper.css +1 -1
- package/dist/collection/components/typography-clamp/typography-clamp.css +1 -1
- package/dist/collection/components/z-avatar/z-avatar.css +1 -1
- package/dist/collection/components/z-dialog/z-dialog.css +1 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/store/chat.js +18 -19
- package/dist/components/autocomplete-address.js +1 -1
- package/dist/components/autocomplete-multiple-select.js +1 -1
- package/dist/components/autocomplete-select.js +1 -1
- package/dist/components/channel-box.js +1 -1
- package/dist/components/chat-app.js +50 -50
- package/dist/components/chat-header.js +1 -1
- package/dist/components/chat-input.js +1 -1
- package/dist/components/checkbox-list.js +1 -1
- package/dist/components/dialog-bill-editor.js +1 -1
- package/dist/components/dialog-custom-filter.js +1 -1
- package/dist/components/dialog-editor.js +1 -1
- package/dist/components/dialog-preview-media.js +1 -1
- package/dist/components/dialog-search.js +1 -1
- package/dist/components/index.js +35 -3
- package/dist/components/menu-chat-channel.js +1 -1
- package/dist/components/menu-chat-type.js +1 -1
- package/dist/components/menu-list.js +1 -1
- package/dist/components/message-box.js +1 -1
- package/dist/components/message-content.js +1 -1
- package/dist/components/message-item.js +1 -1
- package/dist/components/message-media.js +1 -1
- package/dist/components/{p-DWTlCCDm.js → p-0Xb5ihNY.js} +4 -4
- package/dist/components/{p-yKfywTRY.js → p-4aszW5Ay.js} +1 -1
- package/dist/components/{p-D6rFR2l6.js → p-B0JsyP26.js} +6 -6
- package/dist/components/{p-BNAd9VOs.js → p-B1r1nt1g.js} +1 -1
- package/dist/components/{p-_wpm0vm8.js → p-B4uYH-g2.js} +4 -4
- package/dist/components/{p-B47YNDih.js → p-BDeyoiwX.js} +2 -2
- package/dist/components/{p-MYIad1aV.js → p-BIwcuKdl.js} +4 -4
- package/dist/components/{p-CMDuo7hT.js → p-BNoO0BWu.js} +2 -2
- package/dist/components/{p-CSjwRjNB.js → p-BP4eL5qI.js} +3 -3
- package/dist/components/{p-CEAtdSzT.js → p-BS0KM57o.js} +53 -17
- package/dist/components/{p-B4Cfocp9.js → p-BT1WMyju.js} +3 -3
- package/dist/components/{p-Csgam-iG.js → p-BXVqz3VS.js} +6 -6
- package/dist/components/{p-uu2jgClH.js → p-Bmu9Tdoy.js} +6 -6
- package/dist/components/{p-D1V_i5ov.js → p-BoCqNSIm.js} +3 -3
- package/dist/components/{p-Co7Z7DtC.js → p-BtTlxeNr.js} +2 -2
- package/dist/components/{p-CX1AXPa3.js → p-BuRuZLsC.js} +6 -6
- package/dist/components/{p-DN7l1VC-.js → p-Bxw0uWO-.js} +17 -17
- package/dist/components/{p-inmrc0Ir.js → p-C64Oh8a9.js} +3 -3
- package/dist/components/{p-BaSiFugP.js → p-C8a7kKln.js} +12 -12
- package/dist/components/{p-Ciltq84L.js → p-CC4P_9rg.js} +4 -4
- package/dist/components/{p-C_HIyC-c.js → p-CJeKSkV0.js} +2 -2
- package/dist/components/{p-CiPDc0we.js → p-CVIL-mnD.js} +4 -4
- package/dist/components/{p-BC2m4Sfa.js → p-CYbkVc8t.js} +5 -5
- package/dist/components/{p-N5pXVpaw.js → p-CdEHyho-.js} +16 -17
- package/dist/components/{p-DdLGPB91.js → p-ChyAAjNg.js} +9 -9
- package/dist/components/{p-D4nQ8VKb.js → p-Cr-eqOYX.js} +8 -9
- package/dist/components/{p-B27cLPO0.js → p-CsmIB2yf.js} +6 -6
- package/dist/components/{p-BsVBC0QF.js → p-CspQEuuq.js} +7 -48
- package/dist/components/{p-B21KTEyo.js → p-Cw10sw4B.js} +20 -24
- package/dist/components/{p-CJnP3YID.js → p-D27qPaaL.js} +20 -20
- package/dist/components/{p-4KrFVGHM.js → p-D3EwzF10.js} +2 -2
- package/dist/components/{p-CN5IupF7.js → p-DFPf3Ryo.js} +3 -3
- package/dist/components/{p-BdvA9NEC.js → p-DHNMU_Bn.js} +2 -2
- package/dist/components/{p-BjPg6jY2.js → p-DNm4ugi9.js} +2 -2
- package/dist/components/{p-CNHOm1zC.js → p-DOsmWMDq.js} +2 -2
- package/dist/components/{p-DiVsGXmV.js → p-DSY7QFvg.js} +12 -12
- package/dist/components/{p-DWeecZPp.js → p-DZ3g_tnQ.js} +4 -4
- package/dist/components/{p-DESKSZ8u.js → p-D_CO8E6E.js} +5 -5
- package/dist/components/{p-aFiY6M4w.js → p-DgmRR9Np.js} +13 -13
- package/dist/components/{p-DyFFnt-x.js → p-DhX2jMai.js} +1 -1
- package/dist/components/{p-COnNbooL.js → p-DprxFJWa.js} +3 -3
- package/dist/components/{p-9n5YcyXZ.js → p-DscXYxRO.js} +6 -6
- package/dist/components/{p-yQ0PNIKA.js → p-DxM1t7xa.js} +4 -4
- package/dist/components/{p-BrOdZv7V.js → p-F02wW9ft.js} +2 -2
- package/dist/components/{p-nNElmqGm.js → p-G6PEMNeY.js} +6 -6
- package/dist/components/{p-C5KDQSrx.js → p-GKt994YM.js} +25 -18
- package/dist/components/{p-Ck7Zzb_A.js → p-GWtK87gp.js} +3 -3
- package/dist/components/{p-BT_WpMsl.js → p-J-_6-MHE.js} +3 -3
- package/dist/components/{p-CNe_ZsVx.js → p-NNSyQ3Gk.js} +4 -4
- package/dist/components/{p-BqOIOKFi.js → p-Pm7T3Vt0.js} +1 -1
- package/dist/components/{p-B45LUjNB.js → p-UBTXRBSA.js} +5 -5
- package/dist/components/{p-CxDY_ezS.js → p-VFIOXEsS.js} +14 -31
- package/dist/components/{p-BowUD-Ct.js → p-XV1ZuHf2.js} +32 -32
- package/dist/components/{p-DgdZ-NpM.js → p-b51uUXv6.js} +2 -2
- package/dist/components/{p-DygBeHqo.js → p-eQKIBoii.js} +3 -3
- package/dist/components/{p-CXxNtcxg.js → p-g5ZX6XGs.js} +2 -2
- package/dist/components/{p-kQOgMGSo.js → p-gSqyPuBJ.js} +9 -9
- package/dist/components/{p-uR-hhUnR.js → p-ldIzAQeW.js} +29 -25
- package/dist/components/{p-CDq8Z6d3.js → p-lwr11cdb.js} +26 -27
- package/dist/components/{p-DPYM-k-u.js → p-nbVleuJR.js} +14 -14
- package/dist/components/{p-BJjpsoJA.js → p-pjwU0Pcu.js} +10 -7
- package/dist/components/profile-history.js +1 -1
- package/dist/components/profile-info.js +1 -1
- package/dist/components/profile-media.js +1 -1
- package/dist/components/profile-tabs.js +1 -1
- package/dist/components/quick-message-add-template.js +1 -1
- package/dist/components/quick-message-app.js +13 -13
- package/dist/components/quick-message-button-content.js +1 -1
- package/dist/components/quick-message-file.js +1 -1
- package/dist/components/quick-message-image-content.js +1 -1
- package/dist/components/quick-message-image.js +1 -1
- package/dist/components/quick-message-menu-list-content.js +1 -1
- package/dist/components/quick-message-modal.js +1 -1
- package/dist/components/quick-message-template.js +1 -1
- package/dist/components/quick-message-text-content.js +1 -1
- package/dist/components/quick-message-video-content.js +1 -1
- package/dist/components/search-box.js +1 -1
- package/dist/components/status-badge.js +1 -1
- package/dist/components/summarize-message-section.js +1 -1
- package/dist/components/tag-list.js +1 -1
- package/dist/components/tag-or-status-item.js +1 -1
- package/dist/components/tag-popper.js +1 -1
- package/dist/components/typography-clamp.js +1 -1
- package/dist/components/user-info-section.js +1 -1
- package/dist/components/z-avatar.js +1 -1
- package/dist/components/z-dialog.js +1 -1
- package/dist/esm/autocomplete-address_44.entry.js +154 -127
- package/dist/esm/{dayjs-D8fZOX7r.js → dayjs-C4gGYZhy.js} +3 -3
- package/dist/esm/{index-C5RZctCa.js → index-B3nb31xy.js} +34 -4
- package/dist/esm/{index-CGOCoMW2.js → index-NR-FjQmT.js} +7 -55
- package/dist/esm/index.js +1 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/quick-message-app.entry.js +4 -4
- package/dist/esm/zignal-stencil-library.js +3 -3
- package/dist/types/components/chat-header/chat-header.d.ts +4 -3
- package/dist/types/components/internal-component/about-section.d.ts +2 -1
- package/dist/types/components/message-media/message-media.d.ts +1 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/store/chat.d.ts +16 -5
- package/dist/zignal-stencil-library/index.esm.js +1 -1
- package/dist/zignal-stencil-library/p-44490fe3.entry.js +1 -0
- package/dist/zignal-stencil-library/p-B3nb31xy.js +1 -0
- package/dist/zignal-stencil-library/{p-Cz8-lt7U.js → p-DbmRVSWY.js} +1 -1
- package/dist/zignal-stencil-library/p-NR-FjQmT.js +2 -0
- package/dist/zignal-stencil-library/p-fe4748d4.entry.js +2 -0
- package/dist/zignal-stencil-library/zignal-stencil-library.esm.js +1 -1
- package/package.json +1 -1
- package/dist/zignal-stencil-library/build/assets/images/logo/zerva.png +0 -0
- package/dist/zignal-stencil-library/build/assets/images/logo/zrmz.png +0 -0
- package/dist/zignal-stencil-library/build/assets/thai-addresses.json +0 -66926
- package/dist/zignal-stencil-library/p-542cf9fa.entry.js +0 -1
- package/dist/zignal-stencil-library/p-CGOCoMW2.js +0 -2
- package/dist/zignal-stencil-library/p-CsXdWHK4.js +0 -1
- package/dist/zignal-stencil-library/p-dfbe2dd5.entry.js +0 -2
- /package/dist/{collection/build → zignal-stencil-library}/assets/images/logo/zerva.png +0 -0
- /package/dist/{collection/build → zignal-stencil-library}/assets/images/logo/zrmz.png +0 -0
- /package/dist/{collection/build → zignal-stencil-library}/assets/thai-addresses.json +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChatFilter, GetChatsParams } from '../api/type';
|
|
2
|
-
import { TChatItem } from './type';
|
|
2
|
+
import { ChannelType, ChatGroup, ChatUser, SenderType, TChatItem } from './type';
|
|
3
3
|
export declare function handleGetChats(params: GetChatsParams): Promise<void>;
|
|
4
4
|
export declare function handleGetChat(sessionId: string): Promise<TChatItem>;
|
|
5
5
|
export declare function handleGetUserStatuses(): Promise<import("./type").TTagOrStatusItem[]>;
|
|
@@ -28,9 +28,20 @@ export declare function handleUpdateChatFilter(params: {
|
|
|
28
28
|
}): Promise<ChatFilter>;
|
|
29
29
|
export declare function handleDeleteChatFilter(id: string): Promise<ChatFilter[]>;
|
|
30
30
|
export declare function handleSelectChatFilter(filter: ChatFilter | null): void;
|
|
31
|
-
export declare function isUnread(): boolean;
|
|
32
|
-
export declare function getChatName(
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
export declare function isUnread(chat: TChatItem): boolean;
|
|
32
|
+
export declare function getChatName({ user, group, type }: {
|
|
33
|
+
user?: ChatUser;
|
|
34
|
+
group?: ChatGroup;
|
|
35
|
+
type: SenderType;
|
|
36
|
+
}): string;
|
|
37
|
+
export declare function getChatPicture({ user, group, type }: {
|
|
38
|
+
user?: ChatUser;
|
|
39
|
+
group?: ChatGroup;
|
|
40
|
+
type: SenderType;
|
|
41
|
+
}): string;
|
|
42
|
+
export declare function getChatChannelPictureUrl({ channel, type }: {
|
|
43
|
+
channel: ChannelType;
|
|
44
|
+
type: SenderType;
|
|
45
|
+
}): string;
|
|
35
46
|
export declare function haveConnectionFromZwiz(): boolean;
|
|
36
47
|
export declare function resetChatFilter(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./p-
|
|
1
|
+
import"./p-B3nb31xy.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as a,H as r}from"./p-NR-FjQmT.js";import{i}from"./p-B3nb31xy.js";import{c as o,s as n,a as s,u as l}from"./p-DbmRVSWY.js";const c=class{constructor(a){t(this,a),this.templatesChange=e(this,"templatesChange"),this.imagesChange=e(this,"imagesChange"),this.filesChange=e(this,"filesChange")}languagePref="en";themeMode="light";templateData;imageLibrary;fileLibrary;businessId;shopId;accessToken;isProduction;timeZone;activeTab="template";templates=[];images=[];files=[];templatesChange;imagesChange;filesChange;connectedCallback(){this.applyLanguage(this.languagePref),this.applyTheme(this.themeMode),this.setBusinessId(this.businessId),this.setShopId(this.shopId),this.setAccessToken(this.accessToken),this.setIsProduction(this.toBoolean(this.isProduction)),this.setTimeZone(this.timeZone)}componentWillLoad(){this.templates=this.parseTemplates(this.templateData),this.images=this.parseLibrary(this.imageLibrary),this.files=this.parseLibrary(this.fileLibrary),this.setBusinessId(this.businessId),this.setShopId(this.shopId),this.setAccessToken(this.accessToken),this.setIsProduction(this.toBoolean(this.isProduction)),this.setTimeZone(this.timeZone)}handleLanguageChange(t){this.applyLanguage(t)}handleThemeChange(t){this.applyTheme(t)}handleTemplateDataChange(t){this.templates=this.parseTemplates(t)}handleImageLibraryChange(t){this.images=this.parseLibrary(t)}handleFileLibraryChange(t){this.files=this.parseLibrary(t)}handleBusinessIdChange(t){this.setBusinessId(t)}handleShopIdChange(t){this.setShopId(t)}handleAccessTokenChange(t){this.setAccessToken(t)}handleIsProductionChange(t){this.setIsProduction(this.toBoolean(t))}handleTimeZoneChange(t){this.setTimeZone(t)}applyLanguage(t){i.language!==t&&i.changeLanguage(t),o.set("language",t),n(t)}applyTheme(t){o.set("theme",t)}setBusinessId(t){o.set("businessId",t||null)}setShopId(t){o.set("shopId",t||null)}setAccessToken(t){o.set("accessToken",t||null)}setIsProduction(t){o.set("isProduction",t)}setTimeZone(t){if(!t||"null"===t){const t=Intl.DateTimeFormat().resolvedOptions().timeZone;return o.set("timeZone",t),void s(t)}o.set("timeZone",t),s(t)}toBoolean(t){return"boolean"==typeof t?t:"string"==typeof t&&"true"===t.toLowerCase()}parseTemplates(t){if(!t)return[];if("string"==typeof t)try{const e=JSON.parse(t);return this.cloneTemplates(e)}catch(t){return console.warn("[quick-message-app] Failed to parse template data",t),[]}return this.cloneTemplates(t)}parseLibrary(t){if(!t)return[];if("string"==typeof t)try{const e=JSON.parse(t);return this.cloneLibrary(e)}catch(t){return console.warn("[quick-message-app] Failed to parse library data",t),[]}return this.cloneLibrary(t)}cloneTemplates(t){return(t||[]).map((t=>{const e=(t.contents||[]).map((t=>{const e=(t.menu_list||[]).map((t=>({...t,buttons:(t.buttons||[]).map((t=>({...t})))})));return{...t,buttons:(t.buttons||[]).map((t=>({...t}))),menu_list:e,menuList:e}}));return{...t,content:e}}))}cloneLibrary(t){return(t||[]).map((t=>({...t,isSelected:t.isSelected??!1})))}handleTemplatesChange(t){const e=this.cloneTemplates(t.detail||[]);this.templates=e,this.templatesChange.emit(e)}handleImagesChange(t){const e=this.cloneLibrary(t.detail||[]);this.images=e,this.imagesChange.emit(e)}handleFilesChange(t){const e=this.cloneLibrary(t.detail||[]);this.files=e,this.filesChange.emit(e)}setActiveTab(t){this.activeTab=t}render(){const t=l(),e=o.get("theme");return a(r,{key:"a6b46361ab2c8a80fc94a38c1e467ce31e8e54c5",class:"quick-message-app__host bg-background text-surface","data-theme":e},a("div",{key:"b7c84843600017bcb2f0acef9156d86a9e1c1e19",class:"quick-message-app__shell px-4"},a("header",{key:"c06a762322a7925af1e08eee614a799e9a5aa3b4",class:"quick-message-app__header"},a("div",{key:"5a021411d5037aa1ef47abb2cecc4548795eb314",class:"quick-message-app__header-text"},a("h1",{key:"0e381080a1e1d4199a4fc5baba6e4f9aa3299fcf"},t("quick_message.title")))),a("nav",{key:"6c6f6c1f6cb55caecdbe2a0932e8f9cc1f7cfb6b",class:"quick-message-app__tabs text-sm"},a("button",{key:"968a151436fddb5ad6be4e68d0ebe8b97adead45",type:"button",class:"template"===this.activeTab?"active":"",onClick:()=>this.setActiveTab("template")},t("quick_message.tab_template")),a("button",{key:"0797aad787ad292d5039fe36fc151a25ee5ddbe5",type:"button",class:"image"===this.activeTab?"active":"",onClick:()=>this.setActiveTab("image")},t("image")),a("button",{key:"0e523f3550f32ed78446c772c335de46febedb18",type:"button",class:"file"===this.activeTab?"active":"",onClick:()=>this.setActiveTab("file")},t("file"))),a("section",{key:"3595df869f41fb1f3552dd7150c43dfcb532568c",class:"quick-message-app__content"},"template"===this.activeTab&&a("quick-message-template",{key:"f68548f4f84fd3369dcf8c3590ef3754ed48c4b3",value:this.templates,onTemplatesChange:t=>this.handleTemplatesChange(t),isMaster:!0}),"image"===this.activeTab&&a("quick-message-image",{key:"e1c45231090cd8399b69b9be2a4f05599eb8efc6",value:this.images,onImagesChange:t=>this.handleImagesChange(t),isMaster:!0}),"file"===this.activeTab&&a("quick-message-file",{key:"b96fd21f32766950fea3b0269ac820efb0cc31a2",value:this.files,onFilesChange:t=>this.handleFilesChange(t),isMaster:!0}))),a("z-dialog",{key:"6f63dc8a7845b1a68a769775dcaf5959558ff772"}))}static get watchers(){return{languagePref:["handleLanguageChange"],themeMode:["handleThemeChange"],templateData:["handleTemplateDataChange"],imageLibrary:["handleImageLibraryChange"],fileLibrary:["handleFileLibraryChange"],businessId:["handleBusinessIdChange"],shopId:["handleShopIdChange"],accessToken:["handleAccessTokenChange"],isProduction:["handleIsProductionChange"],timeZone:["handleTimeZoneChange"]}}};c.style='@layer base{*,::backdrop,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-x-reverse:0;--tw-shadow:0 0 #0000;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-alpha:100%;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-drop-shadow-alpha:100%;--tw-border-style:solid;border:0 solid;box-sizing:border-box;margin:0;padding:0}}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-space-x-reverse:0;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-font-weight:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-border-style:solid;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-leading:initial}}}@layer theme{:host,:root{--color-red-50:oklch(97.1% .013 17.38);--color-red-200:oklch(88.5% .062 18.334);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-900:oklch(20.8% .042 265.755);--container-md:28rem;--text-2xl:1.5rem;--text-2xl--line-height:1.33333;--color-gray-400:oklch(70.7% .022 261.325);--color-slate-500:oklch(55.4% .046 257.417);--font-weight-semibold:600;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--animate-spin:spin 1s linear infinite;--color-yellow-500:oklch(79.5% .184 86.047);--color-green-500:oklch(72.3% .219 149.579);--container-xs:20rem;--container-sm:24rem;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:1.33333;--text-sm:.875rem;--text-sm--line-height:1.42857;--text-base:1rem;--text-base--line-height:1.5;--text-lg:1.125rem;--text-lg--line-height:1.55556;--font-weight-medium:500;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:"Kanit",var(--default-font);--default-mono-font-family:var(--font-mono);--default-font:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--color-primary:#e02848;--color-secondary:#023761;--color-background:#fff;--color-surface:#000;--color-paper:#f3f4f6;--color-divider:#e5e7eb;--color-theme-gray:#6b7280;--color-overlay:#0000004d}}@layer base{::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);tab-size:4;-webkit-tap-highlight-color:transparent;line-height:1.5}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-meridiem-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-color:oklch(55.1% .027 264.364);border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}:is([type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);border-color:oklch(54.6% .245 262.881);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}input::placeholder,textarea::placeholder{color:oklch(55.1% .027 264.364);opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' fill=\'none\' viewBox=\'0 0 20 20\'%3E%3Cpath stroke=\'oklch(55.1%25 0.027 264.364)\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'1.5\' d=\'m6 8 4 4 4-4\'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;print-color-adjust:unset}[type=checkbox],[type=radio]{appearance:none;color:oklch(54.6% .245 262.881);print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-color:oklch(55.1% .027 264.364);border-width:1px;display:inline-block;flex-shrink:0;height:1rem;padding:0;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' fill=\'%23fff\' viewBox=\'0 0 16 16\'%3E%3Cpath d=\'M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0\'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' fill=\'%23fff\' viewBox=\'0 0 16 16\'%3E%3Ccircle cx=\'8\' cy=\'8\' r=\'3\'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' fill=\'none\' viewBox=\'0 0 16 16\'%3E%3Cpath stroke=\'%23fff\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M4 8h8\'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components{.dialog-backdrop{align-items:center;background-color:#0006;display:flex;inset:calc(var(--spacing)*0);justify-content:center;position:fixed;z-index:50}@supports (color:color-mix(in lab,red,red)){.dialog-backdrop{background-color:color-mix(in oklab,var(--color-black)40%,transparent);background-color:color-mix(in srgb,#00040%,transparent)}}.chat-item{border-radius:var(--radius-xl);cursor:pointer;margin-block:calc(var(--spacing)*1);margin-inline:calc(var(--spacing)*2);padding-block:calc(var(--spacing)*3);padding-inline:calc(var(--spacing)*4);--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);align-items:flex-start;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);display:flex;position:relative}:where(.chat-item>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*4*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*4*var(--tw-space-x-reverse))}.chat-item .chat-item-pin{position:absolute;right:calc(var(--spacing)*-3);top:calc(var(--spacing)*1)}.chat-item .chat-item-pin-icon{fill:currentColor;height:calc(var(--spacing)*3);rotate:45deg;width:calc(var(--spacing)*3)}.chat-item .chat-item-content-container{display:flex;flex-direction:row;width:100%}:where(.chat-item .chat-item-content-container>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*4*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*4*var(--tw-space-x-reverse))}.chat-item .chat-item-avatar-wrapper{align-self:center;flex-shrink:0;position:relative}.chat-item .chat-item-avatar-badge{bottom:calc(var(--spacing)*-.5);position:absolute;right:calc(var(--spacing)*-.5)}.chat-item .chat-item-content-wrapper{min-height:calc(var(--spacing)*18);width:100%}.chat-item .chat-item-content-main{align-items:center;display:flex}:where(.chat-item .chat-item-content-main>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*1*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*1*var(--tw-space-x-reverse))}.chat-item .chat-item-content-main-image{border-radius:3.40282e+38px;height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.chat-item .chat-item-content-main-name{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.chat-item .chat-item-content-main-name,.chat-item .chat-item-content-main-time{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-item .chat-item-content-main-time{color:var(--color-gray-500);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-left:auto}.chat-item .chat-item-content-secondary{align-items:flex-start;display:flex;flex-direction:row;width:100%}.chat-item .chat-item-content-secondary-nickname{font-size:var(--text-base);-webkit-line-clamp:1;line-height:var(--tw-leading,var(--text-base--line-height));-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-item .chat-item-content-secondary-message{color:var(--color-gray-600);font-size:var(--text-sm);-webkit-line-clamp:1;line-height:var(--tw-leading,var(--text-sm--line-height));-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-item .chat-item-content-unread{background-color:var(--color-primary);border-radius:3.40282e+38px;color:var(--color-white);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-left:auto}.chat-item .chat-item-content-unread-mark{display:inline-block;height:calc(var(--spacing)*2.5);width:calc(var(--spacing)*2.5)}.chat-item .chat-item-content-unread-count{padding-block:calc(var(--spacing)*.5);padding-inline:calc(var(--spacing)*2)}.z-icon-button{cursor:pointer;font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));--tw-font-weight:var(--font-weight-medium);align-items:center;border-radius:3.40282e+38px;display:inline-flex;font-weight:var(--font-weight-medium);justify-content:center;transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.z-icon-button:focus{--tw-outline-style:none;outline-style:none}.z-icon-button-primary{background-color:var(--color-primary);color:var(--color-white)}.z-icon-button-outlined{border-color:var(--color-primary);border-style:var(--tw-border-style);border-width:1px}.z-icon-button-outlined,.z-icon-button-text{color:var(--color-primary)}.z-icon-button-disabled{cursor:not-allowed;opacity:.5}.z-button{cursor:pointer;--tw-font-weight:var(--font-weight-medium);align-items:center;border-radius:3.40282e+38px;display:inline-flex;font-weight:var(--font-weight-medium);justify-content:center;transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.z-button:focus{--tw-outline-style:none;outline-style:none}.z-button-small{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));padding-block:calc(var(--spacing)*1.5);padding-inline:calc(var(--spacing)*2)}.z-button-medium{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*3)}.z-button-large{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height));padding-block:calc(var(--spacing)*3);padding-inline:calc(var(--spacing)*4)}.z-button-primary{background-color:var(--color-primary);color:var(--color-white)}.z-button-outlined{border-color:var(--color-primary);border-style:var(--tw-border-style);border-width:1px;color:var(--color-primary)}.z-button-disabled{cursor:not-allowed;opacity:.5}.z-button-text{margin-inline:calc(var(--spacing)*2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.z-input-area-label{margin-bottom:calc(var(--spacing)*1);--tw-font-weight:var(--font-weight-medium);display:block;font-weight:var(--font-weight-medium)}.z-input-area-input,.z-input-area-label{color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.z-input-area-input{background-color:var(--color-paper);border-color:var(--color-surface);border-radius:var(--radius-lg);border-style:var(--tw-border-style);padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);--tw-ring-color:var(--color-primary);border-width:1px;width:100%}.z-input-area-input:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-input-area-error{color:var(--color-red-500);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-top:calc(var(--spacing)*1)}.z-input-label{margin-bottom:calc(var(--spacing)*1);--tw-font-weight:var(--font-weight-medium);display:block;font-weight:var(--font-weight-medium)}.z-input,.z-input-label{color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.z-input{background-color:var(--color-background);border-color:var(--color-divider);border-radius:var(--radius-md);border-style:var(--tw-border-style);padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);--tw-ring-color:var(--color-primary);border-width:1px;width:100%}.z-input:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-input-error{color:var(--color-red-500);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-top:calc(var(--spacing)*1)}.z-select-input-label{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));margin-bottom:calc(var(--spacing)*1);--tw-font-weight:var(--font-weight-medium);display:block;font-weight:var(--font-weight-medium)}.z-tag-or-status-item{align-items:center;border-radius:var(--radius-2xl);gap:calc(var(--spacing)*2);padding-block:calc(var(--spacing)*1.5);padding-inline:calc(var(--spacing)*3);--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);display:inline-flex}.z-tag-or-status-item .z-tag-or-status-item-name{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));max-width:calc(var(--spacing)*20)}.z-tag-or-status-item .z-tag-or-status-item-icon{border-radius:3.40282e+38px;height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.z-context-input{align-items:stretch;display:flex;flex-direction:row;margin-block:calc(var(--spacing)*1)}.z-context-input-key{background-color:var(--color-background);border-bottom-left-radius:var(--radius-3xl);border-color:var(--color-divider);border-style:var(--tw-border-style);border-top-left-radius:var(--radius-3xl);border-width:1px;color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));max-height:6.4rem;min-height:2.4rem;padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);resize:none;width:100%;--tw-ring-color:var(--color-primary);flex:1}.z-context-input-key:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-context-input-value{background-color:var(--color-background);border-bottom-right-radius:var(--radius-3xl);border-color:var(--color-primary);border-style:var(--tw-border-style);border-top-right-radius:var(--radius-3xl);border-width:1px;color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));max-height:6.4rem;min-height:2.4rem;padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);resize:none;width:100%;--tw-ring-color:var(--color-primary);flex:1}.z-context-input-value:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-text-with-link{color:var(--color-blue-600);text-decoration-line:underline}.z-button-group{display:inline-flex}.z-button-group-tab{border-radius:var(--radius-md);display:flex;gap:calc(var(--spacing)*1);padding:calc(var(--spacing)*.5)!important}.z-button-group-tab-overlay{background-color:var(--color-overlay)}.z-button-group-item{border-style:var(--tw-border-style);cursor:pointer;--tw-font-weight:var(--font-weight-medium);align-items:center;border-width:1px;display:inline-flex;font-weight:var(--font-weight-medium);justify-content:center;transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.z-button-group-item:focus{--tw-outline-style:none;outline-style:none}.z-button-group-item-tab{align-items:center;border-radius:var(--radius-sm);border-style:var(--tw-border-style)!important;border-width:0!important;display:flex;flex:1;flex-direction:column;gap:calc(var(--spacing)*2);justify-content:center;padding:calc(var(--spacing)*1)!important}.z-button-group-item-tab-selected{background-color:var(--color-white);--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.z-button-group-item-tab-selected,.z-button-group-item-tab-unselected{border-style:var(--tw-border-style)!important;border-width:0!important}.z-button-group-small{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));padding-block:calc(var(--spacing)*1.5);padding-inline:calc(var(--spacing)*2)}.z-button-group-medium{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*3)}.z-button-group-large{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height));padding-block:calc(var(--spacing)*3);padding-inline:calc(var(--spacing)*4)}.z-button-group-item-first{border-bottom-left-radius:3.40282e+38px;border-top-left-radius:3.40282e+38px}.z-button-group-item-last{border-bottom-right-radius:3.40282e+38px;border-top-right-radius:3.40282e+38px}.z-button-group-item-middle{border-radius:0}.z-button-group-item-primary-selected{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--color-white)}.z-button-group-item-primary-unselected{background-color:var(--color-white);border-color:var(--color-primary);color:var(--color-primary)}.z-button-group-item-outlined-selected{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--color-white)}.z-button-group-item-outlined-unselected{background-color:#0000;border-color:var(--color-primary);color:var(--color-primary)}.z-button-group-item-disabled{cursor:not-allowed;opacity:.5}.z-button-group-item:not(:first-child){margin-left:-1px}.z-avatar-error{align-items:center;display:flex;justify-content:center}.z-avatar-2x-small{height:calc(var(--spacing)*3);min-height:calc(var(--spacing)*3);min-width:calc(var(--spacing)*3);width:calc(var(--spacing)*3)}.z-avatar-x-small{height:calc(var(--spacing)*4);min-height:calc(var(--spacing)*4);min-width:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.z-avatar-small{height:calc(var(--spacing)*8);min-height:calc(var(--spacing)*8);min-width:calc(var(--spacing)*8);width:calc(var(--spacing)*8)}.z-avatar-medium{height:calc(var(--spacing)*16);min-height:calc(var(--spacing)*16);min-width:calc(var(--spacing)*16);width:calc(var(--spacing)*16)}.z-avatar-large{height:calc(var(--spacing)*32);min-height:calc(var(--spacing)*32);min-width:calc(var(--spacing)*32);width:calc(var(--spacing)*32)}.z-avatar-full{height:100%;width:100%}.z-avatar-group{background-color:#023761;border-radius:3.40282e+38px}}@layer utilities{.contents{display:contents}.bg-background{background-color:var(--color-background)}.px-4{padding-inline:calc(var(--spacing)*4)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-surface{color:var(--color-surface)}}[data-theme=light]{--color-primary:#e02848;--color-secondary:#023761;--color-background:#fff;--color-surface:#000;--color-paper:#f3f4f6;--color-divider:#e5e7eb;--color-theme-gray:#6b7280;--color-overlay:#0000004d}[data-theme=dark]{--color-primary:#b50f30;--color-secondary:#fff;--color-background:#23292d;--color-surface:#fff;--color-paper:#374151;--color-divider:#4b5563;--color-theme-gray:#d1d5db;--color-overlay:#ffffff4d}.scroll-container::-webkit-scrollbar{background:#0000001a;height:8px;width:8px}.scroll-container:active::-webkit-scrollbar,.scroll-container:hover::-webkit-scrollbar{background:#0003}.scroll-container:active::-webkit-scrollbar-thumb,.scroll-container:hover::-webkit-scrollbar-thumb{background:#0006;border-radius:4px}.bg-time-badge{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-time-badge{background-color:color-mix(in srgb,var(--color-surface)30%,transparent);background-color:color-mix(in srgb,#00030%,transparent)}}.placeholder-surface::placeholder{color:var(--color-text-gray)}.z-width-100{width:100%}.z-width-90{width:90%}.z-width-75{width:75%}.z-width-50{width:50%}.z-width-25{width:25%}.z-width-0{width:0}.z-animate-width{transition-duration:.5s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.z-animate-grid-template-cols{transition:grid-template-rows .5s}[type=checkbox]{background-color:var(--color-gray-300);border-color:var(--color-gray-300);border-radius:4px;cursor:pointer}[type=checkbox]:checked,[type=checkbox]:indeterminate{background-color:var(--color-primary);border-color:var(--color-primary);border-radius:4px;cursor:pointer}[type=checkbox]:focus{offset:0;outline-offset:0;--tw-ring-color:var(--color-primary);outline:none}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.grid-cols-1{grid-template-columns:1fr}.grid-cols-1_3{grid-template-columns:1fr 3fr}.grid-cols-1_2_1{grid-template-columns:1fr 2fr 1fr}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-3{top:calc(var(--spacing)*3)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.bottom-3{bottom:calc(var(--spacing)*3)}.left-3{left:calc(var(--spacing)*3)}.z-10{z-index:10}.z-80{z-index:80}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.aspect-square{aspect-ratio:1}.size-4{height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.size-6{height:calc(var(--spacing)*6);width:calc(var(--spacing)*6)}.size-8{height:calc(var(--spacing)*8);width:calc(var(--spacing)*8)}.size-12{height:calc(var(--spacing)*12);width:calc(var(--spacing)*12)}.size-14{height:calc(var(--spacing)*14);width:calc(var(--spacing)*14)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-\\[180px\\]{height:180px}.h-\\[220px\\]{height:220px}.h-\\[280px\\]{height:280px}.h-full{height:100%}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-\\[200px\\]{width:200px}.w-\\[250px\\]{width:250px}.w-full{width:100%}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.max-w-xs{max-width:var(--container-xs)}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\\[18px\\]{border-radius:18px}.rounded-full{border-radius:3.40282e+38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\\[1\\.5px\\]{border-style:var(--tw-border-style);border-width:1.5px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-b-\\[1\\.5px\\]{border-bottom-style:var(--tw-border-style);border-bottom-width:1.5px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-current{border-color:currentColor}.border-primary{border-color:var(--color-primary)}.border-red-500{border-color:var(--color-red-500)}.bg-slate-900\\/40{background-color:#0f172b66}@supports (color:color-mix(in lab,red,red)){.bg-slate-900\\/40{background-color:color-mix(in oklab,var(--color-slate-900)40%,transparent)}}.bg-slate-900\\/60{background-color:#0f172b99}@supports (color:color-mix(in lab,red,red)){.bg-slate-900\\/60{background-color:color-mix(in oklab,var(--color-slate-900)60%,transparent)}}.bg-surface{background-color:var(--color-surface)}.bg-transparent{background-color:#0000}.bg-white\\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.bg-white\\/90{background-color:color-mix(in srgb,#fff90%,transparent);background-color:color-mix(in oklab,var(--color-white)90%,transparent)}}.object-cover{object-fit:cover}.p-1{padding:calc(var(--spacing)*1)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-12{padding-block:calc(var(--spacing)*12)}.pr-16{padding-right:calc(var(--spacing)*16)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-8{padding-bottom:calc(var(--spacing)*8)}.pl-2{padding-left:calc(var(--spacing)*2)}.text-center{text-align:center}.text-right{text-align:right}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[13px\\]{font-size:13px}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-primary{color:var(--color-primary)}.text-red-500{color:var(--color-red-500)}.text-slate-700{color:var(--color-slate-700)}.text-theme-gray{color:var(--color-theme-gray)}.text-white{color:var(--color-white)}.placeholder-surface::placeholder{color:var(--color-surface)}.opacity-0{opacity:0}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.shadow,.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)}.shadow,.shadow-sm,.shadow-xl{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a)}.ring-primary{--tw-ring-color:var(--color-primary)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-all,.transition-colors{transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-opacity{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.focus\\:border-red-500:focus{border-color:var(--color-red-500)}.focus\\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor)}.focus\\:ring-0:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor)}.focus\\:ring-red-200:focus{--tw-ring-color:var(--color-red-200)}.focus\\:ring-red-500:focus{--tw-ring-color:var(--color-red-500)}.focus\\:ring-slate-200:focus{--tw-ring-color:var(--color-slate-200)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}}@keyframes spin{to{transform:rotate(1turn)}}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{.top-1\\/2{top:50%}.right-2{right:calc(var(--spacing)*2)}.mt-auto{margin-top:auto}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.h-10{height:calc(var(--spacing)*10)}.min-h-0{min-height:calc(var(--spacing)*0)}.w-10{width:calc(var(--spacing)*10)}.min-w-0{min-width:calc(var(--spacing)*0)}.-translate-y-1\\/2{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.gap-2\\.5{gap:calc(var(--spacing)*2.5)}.overflow-y-auto{overflow-y:auto}.border-divider{border-color:var(--color-divider)}.bg-primary{background-color:var(--color-primary)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.pt-2{padding-top:calc(var(--spacing)*2)}.pr-9{padding-right:calc(var(--spacing)*9)}.break-words{overflow-wrap:break-word}.text-gray-400{color:var(--color-gray-400)}.focus\\:border-primary:focus{border-color:var(--color-primary)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}.col-span-full{grid-column:1/-1}.size-3{height:calc(var(--spacing)*3);width:calc(var(--spacing)*3)}.h-16{height:calc(var(--spacing)*16)}.w-16{width:calc(var(--spacing)*16)}.auto-rows-auto{grid-auto-rows:auto}.content-start{align-content:flex-start}.border-transparent{border-color:#0000}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.container{width:100%}.mb-2{margin-bottom:calc(var(--spacing)*2)}.size-5{height:calc(var(--spacing)*5);width:calc(var(--spacing)*5)}.size-10{height:calc(var(--spacing)*10);width:calc(var(--spacing)*10)}.h-40{height:calc(var(--spacing)*40)}.h-\\[200px\\]{height:200px}.w-60{width:calc(var(--spacing)*60)}.shrink-0{flex-shrink:0}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.self-end{align-self:flex-end}.border-surface{border-color:var(--color-surface)}.py-1{padding-block:calc(var(--spacing)*1)}.py-10{padding-block:calc(var(--spacing)*10)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.whitespace-pre-line{white-space:pre-line}.text-slate-500{color:var(--color-slate-500)}.opacity-70{opacity:.7}.shadow-\\[0_8px_24px_rgba\\(15\\,23\\,42\\,0\\.08\\)\\]{--tw-shadow:0 8px 24px var(--tw-shadow-color,#0f172a14)}.shadow-\\[0_8px_24px_rgba\\(15\\,23\\,42\\,0\\.08\\)\\],.shadow-sm{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)}.max-w-sm{max-width:var(--container-sm)}.text-green-500{color:var(--color-green-500)}.text-yellow-500{color:var(--color-yellow-500)}}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components{.chat-item .chat-item-content-main-name,.chat-item .chat-item-content-main-time{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.z-icon-button-outlined,.z-icon-button-text{color:var(--color-primary)}.z-input,.z-input-area-input,.z-input-area-label,.z-input-label{color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.z-button-group-item-tab,.z-button-group-item-tab-selected{border-style:var(--tw-border-style)!important;border-width:0!important}}@layer utilities{.focus\\:ring-0:focus,.focus\\:ring-2:focus,.shadow,.shadow-\\[0_8px_24px_rgba\\(15\\,23\\,42\\,0\\.08\\)\\],.shadow-sm,.shadow-xl{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-leading{syntax:"*";inherits:false}.quick-message-app__host,:host{display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr;max-height:var(--quick-message-app-max-height,calc(100vh - 120px));min-height:var(--quick-message-app-min-height,calc(100vh - 120px));overflow:hidden;width:100%}.quick-message-app__shell{box-sizing:border-box;height:100%;max-height:var(--quick-message-app-max-height,calc(100vh - 120px));min-height:var(--quick-message-app-min-height,calc(100vh - 120px));--quick-app-primary:var(--color-primary);--quick-modal-surface:var(--color-background);--quick-modal-primary:var(--quick-app-primary);--quick-modal-primary-soft:var(--quick-modal-primary);--quick-modal-primary-border:var(--quick-modal-primary);--quick-modal-primary-shadow:var(--quick-modal-primary);--quick-modal-primary-ghost:var(--quick-modal-primary);display:flex;flex:1;flex-direction:column;gap:8px;overflow:hidden}@supports (color:color-mix(in lab,red,red)){.quick-message-app__shell{--quick-modal-primary-soft:var(--quick-modal-primary);--quick-modal-primary-soft:color-mix(in srgb,var(--quick-modal-primary)14%,transparent);--quick-modal-primary-border:var(--quick-modal-primary);--quick-modal-primary-border:color-mix(in srgb,var(--quick-modal-primary)55%,transparent);--quick-modal-primary-shadow:var(--quick-modal-primary);--quick-modal-primary-shadow:color-mix(in srgb,var(--quick-modal-primary)22%,transparent);--quick-modal-primary-ghost:var(--quick-modal-primary);--quick-modal-primary-ghost:color-mix(in srgb,var(--quick-modal-primary)18%,var(--quick-modal-surface))}}.quick-message-app__host.z-background-dark .quick-message-app__shell{--quick-app-primary:var(--color-primary-dark);--quick-modal-surface:var(--color-background-dark)}.quick-message-app__header{display:flex;flex-direction:column;gap:12px}.quick-message-app__header-text h1{font-size:20px;font-weight:600;margin:0}.quick-message-app__header-text p{font-size:14px;margin:4px 0 0;opacity:.7}.quick-message-app__stats{display:flex;flex-wrap:wrap;font-size:12px;gap:12px;opacity:.8}.quick-message-app__tabs{border-bottom:1px solid #94a3b859;display:flex;gap:12px;padding-bottom:8px}.quick-message-app__tabs button{background:0 0;border:none;border-radius:9999px;color:inherit;cursor:pointer;font-weight:600;opacity:.7;padding:8px 20px;transition:background .2s,opacity .2s}.quick-message-app__tabs button.active{background:var(--quick-app-primary);color:var(--quick-app-primary);opacity:1}@supports (color:color-mix(in lab,red,red)){.quick-message-app__tabs button.active{background:var(--quick-app-primary);background:color-mix(in srgb,var(--quick-app-primary)14%,transparent)}}.quick-message-app__content{display:flex;flex-direction:column;overflow:hidden}.quick-message-app__content,.quick-message-app__content quick-message-file,.quick-message-app__content quick-message-image,.quick-message-app__content quick-message-template{flex:1;min-height:0;min-width:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@media (forced-colors:active){[type=checkbox]:checked,[type=radio]:checked{appearance:auto}[type=checkbox]:indeterminate{appearance:auto}[type=checkbox]:checked,[type=checkbox]:indeterminate,[type=radio]:checked{appearance:auto}}@media (hover:hover){.z-button-outlined:hover,.z-button-primary:hover,.z-icon-button-outlined:hover,.z-icon-button-primary:hover,.z-icon-button-text:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.z-button-group-item-tab:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.z-button-group-item-tab-unselected:hover{background-color:var(--color-white)}.z-button-group-item-primary-unselected:hover{--tw-brightness:brightness(95%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.z-button-group-item-outlined-unselected:hover{background-color:#e028481a}@supports (color:color-mix(in lab,red,red)){.z-button-group-item-outlined-unselected:hover{background-color:color-mix(in oklab,var(--color-primary)10%,transparent);background-color:color-mix(in srgb,#e0284810%,transparent)}}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}.hover\\:bg-background:hover{background-color:var(--color-background)}.hover\\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:bg-white:hover{background-color:var(--color-white)}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:opacity-100:hover{opacity:1}.z-button-outlined:hover,.z-button-primary:hover,.z-icon-button-outlined:hover,.z-icon-button-primary:hover,.z-icon-button-text:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}@media screen and (min-width:0){.z-max-height{height:calc(100vh - 56px)}}@media screen and (min-width:600px){.z-max-height{height:calc(100vh - 64px)}}@media not all and (min-width:40rem){.max-sm\\:hidden{display:none}}@media (min-width:40rem){.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.container{max-width:40rem}.sm\\:min-w-0{min-width:calc(var(--spacing)*0)}.sm\\:flex-row{flex-direction:row}}@media (min-width:48rem){.md\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.container{max-width:48rem}}@media (min-width:64rem){.lg\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:768px){.quick-message-app__header{align-items:flex-start;flex-direction:row;justify-content:space-between}.quick-message-app__header-text{max-width:480px}}@media (max-width:640px){.quick-message-app__shell{padding:16px}}';export{c as quick_message_app}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=t=>"string"==typeof t,e=()=>{let t,e;const i=new Promise(((i,s)=>{t=i,e=s}));return i.resolve=t,i.reject=e,i},i=t=>null==t?"":""+t,s=/###/g,n=t=>t&&t.indexOf("###")>-1?t.replace(s,"."):t,a=e=>!e||t(e),o=(e,i,s)=>{const o=t(i)?i.split("."):i;let r=0;for(;r<o.length-1;){if(a(e))return{};const t=n(o[r]);!e[t]&&s&&(e[t]=new s),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++r}return a(e)?{}:{obj:e,k:n(o[r])}},r=(t,e,i)=>{const{obj:s,k:n}=o(t,e,Object);if(void 0!==s||1===e.length)return void(s[n]=i);let a=e[e.length-1],r=e.slice(0,e.length-1),h=o(t,r,Object);for(;void 0===h.obj&&r.length;)a=`${r[r.length-1]}.${a}`,r=r.slice(0,r.length-1),h=o(t,r,Object),h?.obj&&void 0!==h.obj[`${h.k}.${a}`]&&(h.obj=void 0);h.obj[`${h.k}.${a}`]=i},h=(t,e)=>{const{obj:i,k:s}=o(t,e);if(i&&Object.prototype.hasOwnProperty.call(i,s))return i[s]},l=(e,i,s)=>{for(const n in i)"__proto__"!==n&&"constructor"!==n&&(n in e?t(e[n])||e[n]instanceof String||t(i[n])||i[n]instanceof String?s&&(e[n]=i[n]):l(e[n],i[n],s):e[n]=i[n]);return e},c=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var d={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const u=e=>t(e)?e.replace(/[&<>"'\/]/g,(t=>d[t])):e,_=[" ",",","?","!",";"],p=new class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const e=this.regExpMap.get(t);if(void 0!==e)return e;const i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}}(20),f=(t,e,i=".")=>{if(!t)return;if(t[e]){if(!Object.prototype.hasOwnProperty.call(t,e))return;return t[e]}const s=e.split(i);let n=t;for(let t=0;t<s.length;){if(!n||"object"!=typeof n)return;let e,a="";for(let o=t;o<s.length;++o)if(o!==t&&(a+=i),a+=s[o],e=n[a],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&o<s.length-1)continue;t+=o-t+1;break}n=e}return n},m=t=>t?.replace("_","-"),g={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class y{constructor(t,e={}){this.init(t,e)}init(t,e={}){this.prefix=e.prefix||"i18next:",this.logger=t||g,this.options=e,this.debug=e.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,i,s,n){return n&&!this.debug?null:(t(e[0])&&(e[0]=`${s}${this.prefix} ${e[0]}`),this.logger[i](e))}create(t){return new y(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new y(this.logger,t)}}var v=new y;class b{constructor(){this.observers={}}on(t,e){return t.split(" ").forEach((t=>{this.observers[t]||(this.observers[t]=new Map);const i=this.observers[t].get(e)||0;this.observers[t].set(e,i+1)})),this}off(t,e){this.observers[t]&&(e?this.observers[t].delete(e):delete this.observers[t])}emit(t,...e){this.observers[t]&&Array.from(this.observers[t].entries()).forEach((([t,i])=>{for(let s=0;s<i;s++)t(...e)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((([i,s])=>{for(let n=0;n<s;n++)i.apply(i,[t,...e])}))}}class $ extends b{constructor(t,e={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}getResource(e,i,s,n={}){const a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let r;e.indexOf(".")>-1?r=e.split("."):(r=[e,i],s&&(Array.isArray(s)?r.push(...s):t(s)&&a?r.push(...s.split(a)):r.push(s)));const l=h(this.data,r);return!l&&!i&&!s&&e.indexOf(".")>-1&&(e=r[0],i=r[1],s=r.slice(2).join(".")),!l&&o&&t(s)?f(this.data?.[e]?.[i],s,a):l}addResource(t,e,i,s,n={silent:!1}){const a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator;let o=[t,e];i&&(o=o.concat(a?i.split(a):i)),t.indexOf(".")>-1&&(o=t.split("."),s=e,e=o[1]),this.addNamespaces(e),r(this.data,o,s),n.silent||this.emit("added",t,e,i,s)}addResources(e,i,s,n={silent:!1}){for(const n in s)(t(s[n])||Array.isArray(s[n]))&&this.addResource(e,i,n,s[n],{silent:!0});n.silent||this.emit("added",e,i,s)}addResourceBundle(t,e,i,s,n,a={silent:!1,skipCopy:!1}){let o=[t,e];t.indexOf(".")>-1&&(o=t.split("."),s=i,i=e,e=o[1]),this.addNamespaces(e);let c=h(this.data,o)||{};a.skipCopy||(i=JSON.parse(JSON.stringify(i))),s?l(c,i,n):c={...c,...i},r(this.data,o,c),a.silent||this.emit("added",t,e,i)}removeResourceBundle(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}hasResourceBundle(t,e){return void 0!==this.getResource(t,e)}getResourceBundle(t,e){return e||(e=this.options.defaultNS),this.getResource(t,e)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find((t=>e[t]&&Object.keys(e[t]).length>0))}toJSON(){return this.data}}var w={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,i,s,n){return t.forEach((t=>{e=this.processors[t]?.process(e,i,s,n)??e})),e}};const x=Symbol("i18next/PATH_KEY");function k(t,e){const{[x]:i}=t(function(){const t=[],e=Object.create(null);let i;return e.get=(s,n)=>(i?.revoke?.(),n===x?t:(t.push(n),i=Proxy.revocable(s,e),i.proxy)),Proxy.revocable(Object.create(null),e).proxy}());return i.join(e?.keySeparator??".")}const S={},j=e=>!t(e)&&"boolean"!=typeof e&&"number"!=typeof e;class O extends b{constructor(t,e={}){super(),((t,e,i)=>{["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((t=>{e[t]&&(i[t]=e[t])}))})(0,t,this),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=v.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,e={interpolation:{}}){const i={...e};if(null==t)return!1;const s=this.resolve(t,i);if(void 0===s?.res)return!1;const n=j(s.res);return!1!==i.returnObjects||!n}extractFromKey(e,i){let s=void 0!==i.nsSeparator?i.nsSeparator:this.options.nsSeparator;void 0===s&&(s=":");const n=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=i.ns||this.options.defaultNS||[];const o=s&&e.indexOf(s)>-1,r=!(this.options.userDefinedKeySeparator||i.keySeparator||this.options.userDefinedNsSeparator||i.nsSeparator||((t,e,i)=>{e=e||"",i=i||"";const s=_.filter((t=>e.indexOf(t)<0&&i.indexOf(t)<0));if(0===s.length)return!0;const n=p.getRegExp(`(${s.map((t=>"?"===t?"\\?":t)).join("|")})`);let a=!n.test(t);if(!a){const e=t.indexOf(i);e>0&&!n.test(t.substring(0,e))&&(a=!0)}return a})(e,s,n));if(o&&!r){const i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:t(a)?[a]:a};const o=e.split(s);(s!==n||s===n&&this.options.ns.indexOf(o[0])>-1)&&(a=o.shift()),e=o.join(n)}return{key:e,namespaces:t(a)?[a]:a}}translate(e,i,s){let n="object"==typeof i?{...i}:i;if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==e)return"";"function"==typeof e&&(e=k(e,{...this.options,...n})),Array.isArray(e)||(e=[String(e)]);const a=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:r,namespaces:h}=this.extractFromKey(e[e.length-1],n),l=h[h.length-1];let c=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const d=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===d?.toLowerCase())return u?a?{res:`${l}${c}${r}`,usedKey:r,exactUsedKey:r,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${c}${r}`:a?{res:r,usedKey:r,exactUsedKey:r,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:r;const _=this.resolve(e,n);let p=_?.res;const f=_?.usedKey||r,m=_?.exactUsedKey||r,g=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==n.count&&!t(n.count),b=O.hasDefaultValue(n),$=v?this.pluralResolver.getSuffix(d,n.count,n):"",w=n.ordinal&&v?this.pluralResolver.getSuffix(d,n.count,{ordinal:!1}):"",x=v&&!n.ordinal&&0===n.count,S=x&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${$}`]||n[`defaultValue${w}`]||n.defaultValue;let N=p;y&&!p&&b&&(N=S);const R=j(N),A=Object.prototype.toString.apply(N);if(!(y&&N&&R&&["[object Number]","[object Function]","[object RegExp]"].indexOf(A)<0)||t(g)&&Array.isArray(N))if(y&&t(g)&&Array.isArray(p))p=p.join(g),p&&(p=this.extendTranslation(p,e,n,s));else{let t=!1,i=!1;!this.isValidLookup(p)&&b&&(t=!0,p=S),this.isValidLookup(p)||(i=!0,p=r);const a=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:p,h=b&&S!==p&&this.options.updateMissing;if(i||t||h){if(this.logger.log(h?"updateKey":"missingKey",d,l,r,h?S:p),o){const t=this.resolve(r,{...n,keySeparator:!1});t&&t.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let t=[];const e=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&e&&e[0])for(let i=0;i<e.length;i++)t.push(e[i]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(n.lng||this.language):t.push(n.lng||this.language);const i=(t,e,i)=>{const s=b&&i!==p?i:a;this.options.missingKeyHandler?this.options.missingKeyHandler(t,l,e,s,h,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(t,l,e,s,h,n),this.emit("missingKey",t,l,e,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?t.forEach((t=>{const e=this.pluralResolver.getSuffixes(t,n);x&&n[`defaultValue${this.options.pluralSeparator}zero`]&&e.indexOf(`${this.options.pluralSeparator}zero`)<0&&e.push(`${this.options.pluralSeparator}zero`),e.forEach((e=>{i([t],r+e,n[`defaultValue${e}`]||S)}))})):i(t,r,S))}p=this.extendTranslation(p,e,n,_,s),i&&p===r&&this.options.appendNamespaceToMissingKey&&(p=`${l}${c}${r}`),(i||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${c}${r}`:r,t?p:void 0,n))}else{if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,N,{...n,ns:h}):`key '${r} (${this.language})' returned an object instead of string.`;return a?(_.res=t,_.usedParams=this.getUsedParamsDetails(n),_):t}if(o){const t=Array.isArray(N),e=t?[]:{},i=t?m:f;for(const t in N)if(Object.prototype.hasOwnProperty.call(N,t)){const s=`${i}${o}${t}`;e[t]=this.translate(s,b&&!p?{...n,defaultValue:j(S)?S[t]:void 0,joinArrays:!1,ns:h}:{...n,joinArrays:!1,ns:h}),e[t]===s&&(e[t]=N[t])}p=e}}return a?(_.res=p,_.usedParams=this.getUsedParamsDetails(n),_):p}extendTranslation(e,i,s,n,a){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const o=t(e)&&(void 0!==s?.interpolation?.skipOnVariables?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let r;if(o){const t=e.match(this.interpolator.nestingRegexp);r=t&&t.length}let h=s.replace&&!t(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),e=this.interpolator.interpolate(e,h,s.lng||this.language||n.usedLng,s),o){const t=e.match(this.interpolator.nestingRegexp);r<(t&&t.length)&&(s.nest=!1)}!s.lng&&n&&n.res&&(s.lng=this.language||n.usedLng),!1!==s.nest&&(e=this.interpolator.nest(e,((...t)=>a?.[0]!==t[0]||s.context?this.translate(...t,i):(this.logger.warn(`It seems you are nesting recursively key: ${t[0]} in key: ${i[0]}`),null)),s)),s.interpolation&&this.interpolator.reset()}const o=s.postProcess||this.options.postProcess,r=t(o)?[o]:o;return null!=e&&r?.length&&!1!==s.applyPostProcessor&&(e=w.handle(r,e,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),e}resolve(e,i={}){let s,n,a,o,r;return t(e)&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(s))return;const h=this.extractFromKey(e,i),l=h.key;n=l;let c=h.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const d=void 0!==i.count&&!t(i.count),u=d&&!i.ordinal&&0===i.count,_=void 0!==i.context&&(t(i.context)||"number"==typeof i.context)&&""!==i.context,p=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);c.forEach((t=>{this.isValidLookup(s)||(r=t,S[`${p[0]}-${t}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(r)||(S[`${p[0]}-${t}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((e=>{if(this.isValidLookup(s))return;o=e;const n=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(n,l,e,t,i);else{let t;d&&(t=this.pluralResolver.getSuffix(e,i.count,i));const s=`${this.options.pluralSeparator}zero`,a=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(i.ordinal&&0===t.indexOf(a)&&n.push(l+t.replace(a,this.options.pluralSeparator)),n.push(l+t),u&&n.push(l+s)),_){const e=`${l}${this.options.contextSeparator||"_"}${i.context}`;n.push(e),d&&(i.ordinal&&0===t.indexOf(a)&&n.push(e+t.replace(a,this.options.pluralSeparator)),n.push(e+t),u&&n.push(e+s))}}let r;for(;r=n.pop();)this.isValidLookup(s)||(a=r,s=this.getResource(e,t,r,i))})))}))})),{res:s,usedKey:n,exactUsedKey:a,usedLng:o,usedNS:r}}isValidLookup(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}getResource(t,e,i,s={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,e,i,s):this.resourceStore.getResource(t,e,i,s)}getUsedParamsDetails(e={}){const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=e.replace&&!t(e.replace);let n=s?e.replace:e;if(s&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!s){n={...n};for(const t of i)delete n[t]}return n}static hasDefaultValue(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&"defaultValue"===e.substring(0,12)&&void 0!==t[e])return!0;return!1}}class N{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=v.create("languageUtils")}getScriptPartFromCode(t){if(!(t=m(t))||t.indexOf("-")<0)return null;const e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}getLanguagePartFromCode(t){if(!(t=m(t))||t.indexOf("-")<0)return t;const e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(e){if(t(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(t){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let e;return t.forEach((t=>{if(e)return;const i=this.formatLanguageCode(t);this.options.supportedLngs&&!this.isSupportedCode(i)||(e=i)})),!e&&this.options.supportedLngs&&t.forEach((t=>{if(e)return;const i=this.getScriptPartFromCode(t);if(this.isSupportedCode(i))return e=i;const s=this.getLanguagePartFromCode(t);if(this.isSupportedCode(s))return e=s;e=this.options.supportedLngs.find((t=>t===s?t:t.indexOf("-")<0&&s.indexOf("-")<0?void 0:t.indexOf("-")>0&&s.indexOf("-")<0&&t.substring(0,t.indexOf("-"))===s||0===t.indexOf(s)&&s.length>1?t:void 0))})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(e,i){if(!e)return[];if("function"==typeof e&&(e=e(i)),t(e)&&(e=[e]),Array.isArray(e))return e;if(!i)return e.default||[];let s=e[i];return s||(s=e[this.getScriptPartFromCode(i)]),s||(s=e[this.formatLanguageCode(i)]),s||(s=e[this.getLanguagePartFromCode(i)]),s||(s=e.default),s||[]}toResolveHierarchy(e,i){const s=this.getFallbackCodes((!1===i?[]:i)||this.options.fallbackLng||[],e),n=[],a=t=>{t&&(this.isSupportedCode(t)?n.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return t(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):t(e)&&a(this.formatLanguageCode(e)),s.forEach((t=>{n.indexOf(t)<0&&a(this.formatLanguageCode(t))})),n}}const R={zero:0,one:1,two:2,few:3,many:4,other:5},A={select:t=>1===t?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class P{constructor(t,e={}){this.languageUtils=t,this.options=e,this.logger=v.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,e){this.rules[t]=e}clearCache(){this.pluralRulesCache={}}getRule(t,e={}){const i=m("dev"===t?"en":t),s=e.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:i,type:s});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];let a;try{a=new Intl.PluralRules(i,{type:s})}catch(i){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),A;if(!t.match(/-|_/))return A;const s=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(s,e)}return this.pluralRulesCache[n]=a,a}needsPlural(t,e={}){let i=this.getRule(t,e);return i||(i=this.getRule("dev",e)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,e,i={}){return this.getSuffixes(t,i).map((t=>`${e}${t}`))}getSuffixes(t,e={}){let i=this.getRule(t,e);return i||(i=this.getRule("dev",e)),i?i.resolvedOptions().pluralCategories.sort(((t,e)=>R[t]-R[e])).map((t=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${t}`)):[]}getSuffix(t,e,i={}){const s=this.getRule(t,i);return s?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s.select(e)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",e,i))}}const L=(e,i,s,n=".",a=!0)=>{let o=((t,e,i)=>{const s=h(t,i);return void 0!==s?s:h(e,i)})(e,i,s);return!o&&a&&t(s)&&(o=f(e,s,n),void 0===o&&(o=f(i,s,n))),o},C=t=>t.replace(/\$/g,"$$$$");class E{constructor(t={}){this.logger=v.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(t=>t),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:e,escapeValue:i,useRawValueToEscape:s,prefix:n,prefixEscaped:a,suffix:o,suffixEscaped:r,formatSeparator:h,unescapeSuffix:l,unescapePrefix:d,nestingPrefix:_,nestingPrefixEscaped:p,nestingSuffix:f,nestingSuffixEscaped:m,nestingOptionsSeparator:g,maxReplaces:y,alwaysFormat:v}=t.interpolation;this.escape=void 0!==e?e:u,this.escapeValue=void 0===i||i,this.useRawValueToEscape=void 0!==s&&s,this.prefix=n?c(n):a||"{{",this.suffix=o?c(o):r||"}}",this.formatSeparator=h||",",this.unescapePrefix=l?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=_?c(_):p||c("$t("),this.nestingSuffix=f?c(f):m||c(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(t,e)=>t?.source===e?(t.lastIndex=0,t):new RegExp(e,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,s,n,a){let o,r,h;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=t=>{if(t.indexOf(this.formatSeparator)<0){const e=L(s,l,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(e,void 0,n,{...a,...s,interpolationkey:t}):e}const e=t.split(this.formatSeparator),i=e.shift().trim(),o=e.join(this.formatSeparator).trim();return this.format(L(s,l,i,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...a,...s,interpolationkey:i})};this.resetRegExp();const d=a?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=void 0!==a?.interpolation?.skipOnVariables?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t=>C(t)},{regex:this.regexp,safeValue:t=>C(this.escapeValue?this.escape(t):t)}].forEach((s=>{for(h=0;o=s.regex.exec(e);){const n=o[1].trim();if(r=c(n),void 0===r)if("function"==typeof d){const i=d(e,o,a);r=t(i)?i:""}else if(a&&Object.prototype.hasOwnProperty.call(a,n))r="";else{if(u){r=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),r=""}else t(r)||this.useRawValueToEscape||(r=i(r));const l=s.safeValue(r);if(e=e.replace(o[0],l),u?(s.regex.lastIndex+=r.length,s.regex.lastIndex-=o[0].length):s.regex.lastIndex=0,h++,h>=this.maxReplaces)break}})),e}nest(e,s,n={}){let a,o,r;const h=(t,e)=>{const i=this.nestingOptionsSeparator;if(t.indexOf(i)<0)return t;const s=t.split(new RegExp(`${i}[ ]*{`));let n=`{${s[1]}`;t=s[0],n=this.interpolate(n,r);const a=n.match(/'/g),o=n.match(/"/g);((a?.length??0)%2==0&&!o||o.length%2!=0)&&(n=n.replace(/'/g,'"'));try{r=JSON.parse(n),e&&(r={...e,...r})}catch(e){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,e),`${t}${i}${n}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,t};for(;a=this.nestingRegexp.exec(e);){let l=[];r={...n},r=r.replace&&!t(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;const c=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(-1!==c&&(l=a[1].slice(c).split(this.formatSeparator).map((t=>t.trim())).filter(Boolean),a[1]=a[1].slice(0,c)),o=s(h.call(this,a[1].trim(),r),r),o&&a[0]===e&&!t(o))return o;t(o)||(o=i(o)),o||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`),o=""),l.length&&(o=l.reduce(((t,e)=>this.format(t,e,n.lng,{...n,interpolationkey:a[1].trim()})),o.trim())),e=e.replace(a[0],o),this.regexp.lastIndex=0}return e}}const I=t=>{const e={};return(i,s,n)=>{let a=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(a={...a,[n.interpolationkey]:void 0});const o=s+JSON.stringify(a);let r=e[o];return r||(r=t(m(s),n),e[o]=r),r(i)}},T=t=>(e,i,s)=>t(m(i),s)(e);class M{constructor(t={}){this.logger=v.create("formatter"),this.options=t,this.init(t)}init(t,e={interpolation:{}}){this.formatSeparator=e.interpolation.formatSeparator||",";const i=e.cacheInBuiltFormats?I:T;this.formats={number:i(((t,e)=>{const i=new Intl.NumberFormat(t,{...e});return t=>i.format(t)})),currency:i(((t,e)=>{const i=new Intl.NumberFormat(t,{...e,style:"currency"});return t=>i.format(t)})),datetime:i(((t,e)=>{const i=new Intl.DateTimeFormat(t,{...e});return t=>i.format(t)})),relativetime:i(((t,e)=>{const i=new Intl.RelativeTimeFormat(t,{...e});return t=>i.format(t,e.range||"day")})),list:i(((t,e)=>{const i=new Intl.ListFormat(t,{...e});return t=>i.format(t)}))}}add(t,e){this.formats[t.toLowerCase().trim()]=e}addCached(t,e){this.formats[t.toLowerCase().trim()]=I(e)}format(t,e,i,s={}){const n=e.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&n[0].indexOf(")")<0&&n.find((t=>t.indexOf(")")>-1))){const t=n.findIndex((t=>t.indexOf(")")>-1));n[0]=[n[0],...n.splice(1,t)].join(this.formatSeparator)}return n.reduce(((t,e)=>{const{formatName:n,formatOptions:a}=(t=>{let e=t.toLowerCase().trim();const i={};if(t.indexOf("(")>-1){const s=t.split("(");e=s[0].toLowerCase().trim();const n=s[1].substring(0,s[1].length-1);"currency"===e&&n.indexOf(":")<0?i.currency||(i.currency=n.trim()):"relativetime"===e&&n.indexOf(":")<0?i.range||(i.range=n.trim()):n.split(";").forEach((t=>{if(t){const[e,...s]=t.split(":"),n=s.join(":").trim().replace(/^'+|'+$/g,""),a=e.trim();i[a]||(i[a]=n),"false"===n&&(i[a]=!1),"true"===n&&(i[a]=!0),isNaN(n)||(i[a]=parseInt(n,10))}}))}return{formatName:e,formatOptions:i}})(e);if(this.formats[n]){let e=t;try{const o=s?.formatParams?.[s.interpolationkey]||{};e=this.formats[n](t,o.locale||o.lng||s.locale||s.lng||i,{...a,...s,...o})}catch(t){this.logger.warn(t)}return e}return this.logger.warn(`there was no format function for ${n}`),t}),t)}}class z extends b{constructor(t,e,i,s={}){super(),this.backend=t,this.store=e,this.services=i,this.languageUtils=i.languageUtils,this.options=s,this.logger=v.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(i,s.backend,s)}queueLoad(t,e,i,s){const n={},a={},o={},r={};return t.forEach((t=>{let s=!0;e.forEach((e=>{const o=`${t}|${e}`;!i.reload&&this.store.hasResourceBundle(t,e)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===a[o]&&(a[o]=!0):(this.state[o]=1,s=!1,void 0===a[o]&&(a[o]=!0),void 0===n[o]&&(n[o]=!0),void 0===r[e]&&(r[e]=!0)))})),s||(o[t]=!0)})),(Object.keys(n).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(n),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(r)}}loaded(t,e,i){const s=t.split("|"),n=s[0],a=s[1];e&&this.emit("failedLoading",n,a,e),!e&&i&&this.store.addResourceBundle(n,a,i,void 0,void 0,{skipCopy:!0}),this.state[t]=e?-1:2,e&&i&&(this.state[t]=0);const r={};this.queue.forEach((i=>{((t,e,i)=>{const{obj:s,k:n}=o(t,e,Object);s[n]=s[n]||[],s[n].push(i)})(i.loaded,[n],a),((t,e)=>{void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)})(i,t),e&&i.errors.push(e),0!==i.pendingCount||i.done||(Object.keys(i.loaded).forEach((t=>{r[t]||(r[t]={});const e=i.loaded[t];e.length&&e.forEach((e=>{void 0===r[t][e]&&(r[t][e]=!0)}))})),i.done=!0,i.errors.length?i.callback(i.errors):i.callback())})),this.emit("loaded",r),this.queue=this.queue.filter((t=>!t.done))}read(t,e,i,s=0,n=this.retryTimeout,a){if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:e,fcName:i,tried:s,wait:n,callback:a});this.readingCalls++;const o=(o,r)=>{if(this.readingCalls--,this.waitingReads.length>0){const t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}o&&r&&s<this.maxRetries?setTimeout((()=>{this.read.call(this,t,e,i,s+1,2*n,a)}),n):a(o,r)},r=this.backend[i].bind(this.backend);if(2!==r.length)return r(t,e,o);try{const i=r(t,e);i&&"function"==typeof i.then?i.then((t=>o(null,t))).catch(o):o(null,i)}catch(t){o(t)}}prepareLoading(e,i,s={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();t(e)&&(e=this.languageUtils.toResolveHierarchy(e)),t(i)&&(i=[i]);const a=this.queueLoad(e,i,s,n);if(!a.toLoad.length)return a.pending.length||n(),null;a.toLoad.forEach((t=>{this.loadOne(t)}))}load(t,e,i){this.prepareLoading(t,e,{},i)}reload(t,e,i){this.prepareLoading(t,e,{reload:!0},i)}loadOne(t,e=""){const i=t.split("|"),s=i[0],n=i[1];this.read(s,n,"read",void 0,void 0,((i,a)=>{i&&this.logger.warn(`${e}loading namespace ${n} for language ${s} failed`,i),!i&&a&&this.logger.log(`${e}loaded namespace ${n} for language ${s}`,a),this.loaded(t,i,a)}))}saveMissing(t,e,i,s,n,a={},o=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(e)){if(null!=i&&""!==i){if(this.backend?.create){const r={...a,isUpdate:n},h=this.backend.create.bind(this.backend);if(h.length<6)try{let n;n=5===h.length?h(t,e,i,s,r):h(t,e,i,s),n&&"function"==typeof n.then?n.then((t=>o(null,t))).catch(o):o(null,n)}catch(t){o(t)}else h(t,e,i,s,o,r)}t&&t[0]&&this.store.addResource(t[0],e,i,s)}}else this.logger.warn(`did not save key "${i}" as the namespace "${e}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const V=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let i={};if("object"==typeof e[1]&&(i=e[1]),t(e[1])&&(i.defaultValue=e[1]),t(e[2])&&(i.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const t=e[3]||e[2];Object.keys(t).forEach((e=>{i[e]=t[e]}))}return i},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),B=e=>(t(e.ns)&&(e.ns=[e.ns]),t(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),t(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),F=()=>{};class q extends b{constructor(t={},e){var i;if(super(),this.options=B(t),this.services={},this.logger=v,this.modules={external:[]},i=this,Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t=>{"function"==typeof i[t]&&(i[t]=i[t].bind(i))})),e&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,e),this;setTimeout((()=>{this.init(t,e)}),0)}}init(i={},s){this.isInitializing=!0,"function"==typeof i&&(s=i,i={}),null==i.defaultNS&&i.ns&&(t(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const n=V();this.options={...n,...this.options,...B(i)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==i.keySeparator&&(this.options.userDefinedKeySeparator=i.keySeparator),void 0!==i.nsSeparator&&(this.options.userDefinedNsSeparator=i.nsSeparator);const a=t=>t?"function"==typeof t?new t:t:null;if(!this.options.isClone){let t;v.init(this.modules.logger?a(this.modules.logger):null,this.options),t=this.modules.formatter?this.modules.formatter:M;const e=new N(this.options);this.store=new $(this.options.resources,this.options);const i=this.services;i.logger=v,i.resourceStore=this.store,i.languageUtils=e,i.pluralResolver=new P(e,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!t||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(i.formatter=a(t),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new E(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new z(a(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",((t,...e)=>{this.emit(t,...e)})),this.modules.languageDetector&&(i.languageDetector=a(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=a(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new O(this.services,this.options),this.translator.on("*",((t,...e)=>{this.emit(t,...e)})),this.modules.external.forEach((t=>{t.init&&t.init(this)}))}if(this.format=this.options.interpolation.format,s||(s=F),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=(...e)=>this.store[t](...e)})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=(...e)=>(this.store[t](...e),this)}));const o=e(),r=()=>{const t=(t,e)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(e),s(t,e)};if(this.languages&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initAsync?r():setTimeout(r,0),o}loadResources(e,i=F){let s=i;const n=t(e)?e:this.language;if("function"==typeof e&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===n?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return s();const t=[],e=e=>{e&&"cimode"!==e&&this.services.languageUtils.toResolveHierarchy(e).forEach((e=>{"cimode"!==e&&t.indexOf(e)<0&&t.push(e)}))};n?e(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((t=>e(t))),this.options.preload?.forEach?.((t=>e(t))),this.services.backendConnector.load(t,this.options.ns,(t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),s(t)}))}else s(null)}reloadResources(t,i,s){const n=e();return"function"==typeof t&&(s=t,t=void 0),"function"==typeof i&&(s=i,i=void 0),t||(t=this.languages),i||(i=this.options.ns),s||(s=F),this.services.backendConnector.reload(t,i,(t=>{n.resolve(),s(t)})),n}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&w.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1)){for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(i,s){this.isLanguageChangingTo=i;const n=e();this.emit("languageChanging",i);const a=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},o=(t,e)=>{e?this.isLanguageChangingTo===i&&(a(e),this.translator.changeLanguage(e),this.isLanguageChangingTo=void 0,this.emit("languageChanged",e),this.logger.log("languageChanged",e)):this.isLanguageChangingTo=void 0,n.resolve(((...t)=>this.t(...t))),s&&s(t,((...t)=>this.t(...t)))},r=e=>{i||e||!this.services.languageDetector||(e=[]);const s=t(e)?e:e&&e[0],n=this.store.hasLanguageSomeTranslations(s)?s:this.services.languageUtils.getBestMatchFromCodes(t(e)?[e]:e);n&&(this.language||a(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector?.cacheUserLanguage?.(n)),this.loadResources(n,(t=>{o(t,n)}))};return i||!this.services.languageDetector||this.services.languageDetector.async?!i&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(r):this.services.languageDetector.detect(r):r(i):r(this.services.languageDetector.detect()),n}getFixedT(e,i,s){const n=(t,e,...i)=>{let a;a="object"!=typeof e?this.options.overloadTranslationOptionHandler([t,e].concat(i)):{...e},a.lng=a.lng||n.lng,a.lngs=a.lngs||n.lngs,a.ns=a.ns||n.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||s||n.keyPrefix);const o=this.options.keySeparator||".";let r;return a.keyPrefix&&Array.isArray(t)?r=t.map((t=>("function"==typeof t&&(t=k(t,{...this.options,...e})),`${a.keyPrefix}${o}${t}`))):("function"==typeof t&&(t=k(t,{...this.options,...e})),r=a.keyPrefix?`${a.keyPrefix}${o}${t}`:t),this.t(r,a)};return t(e)?n.lng=e:n.lngs=e,n.ns=i,n.keyPrefix=s,n}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,e={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=e.lng||this.resolvedLanguage||this.languages[0],s=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;const a=(t,e)=>{const i=this.services.backendConnector.state[`${t}|${e}`];return-1===i||0===i||2===i};if(e.precheck){const t=e.precheck(this,a);if(void 0!==t)return t}return!(!this.hasResourceBundle(i,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(i,t)||s&&!a(n,t)))}loadNamespaces(i,s){const n=e();return this.options.ns?(t(i)&&(i=[i]),i.forEach((t=>{this.options.ns.indexOf(t)<0&&this.options.ns.push(t)})),this.loadResources((t=>{n.resolve(),s&&s(t)})),n):(s&&s(),Promise.resolve())}loadLanguages(i,s){const n=e();t(i)&&(i=[i]);const a=this.options.preload||[],o=i.filter((t=>a.indexOf(t)<0&&this.services.languageUtils.isSupportedCode(t)));return o.length?(this.options.preload=a.concat(o),this.loadResources((t=>{n.resolve(),s&&s(t)})),n):(s&&s(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const e=new Intl.Locale(t);if(e&&e.getTextInfo){const t=e.getTextInfo();if(t&&t.direction)return t.direction}}catch(t){}const e=this.services?.languageUtils||new N(V());return t.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(e.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},e){const i=new q(t,e);return i.createInstance=q.createInstance,i}cloneInstance(t={},e=F){const i=t.forkResourceStore;i&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},n=new q(s);if(void 0===t.debug&&void 0===t.prefix||(n.logger=n.logger.clone(t)),["store","services","language"].forEach((t=>{n[t]=this[t]})),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},i){const t=Object.keys(this.store.data).reduce(((t,e)=>(t[e]={...this.store.data[e]},t[e]=Object.keys(t[e]).reduce(((i,s)=>(i[s]={...t[e][s]},i)),t[e]),t)),{});n.store=new $(t,s),n.services.resourceStore=n.store}return n.translator=new O(n.services,s),n.translator.on("*",((t,...e)=>{n.emit(t,...e)})),n.init(s,e),n.translator.options=s,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const K=q.createInstance(),D=K.t;K.init({resources:{en:{translation:{chat_tab:{chat:"Chat",chats_are_not_connected:"Chats are not connected",choose_page_you_want_to_connect:"Choose page you want to connect",add_channel_connection:"Add channel connection",add_connection:"Add connection",integrated_account:"Integrated accounts.",integrated_account_desc:"Manage your account.",search_chat:"Search chat",custom_filter:"Custom filter.",create_custom_filter:"Create custom filter.",advance_search:"Advanced search.",please_choose_chat_to_reply:"Please choose chat to reply.",no_user_found:"User cannot be found",all_chat:"All chat",already_read:"Read",unread:"Unread",filter_search_fields:"Name, nickname, email, phone number or message",read_status:"Reading status",last_reply:"Last reply",you_not_connect_chat:"You have not yet connected the chat.",see_original:"See original",see_translated:"See translated",see_send_text:"See sent",hide:"Hide",see_all_text:"See all",reply:"Reply",replied_to:"replied to",yourself:"Yourself",summary:"AI Summary",reply_token_info:"You have a free message quota of {total} messages within {remaining} minutes.",syncing_tag:"Retrieving the tag please wait a moment.",syncing_message:"Retrieving the chat please wait a moment.",advanced_search:"Advanced Search",add_custom_filter:"Add a custom filter",edit_custom_filter:"Edit custom filter"},quick_message:{title:"Quick message",app_title:"Quick message library",app_description:"Manage templates, images, and files for your team in one place.",tab_template:"Template",search_template:"Search message",add_template:"Add new template",template_name:"Template name",template_name_required:"Template name is required",template_name_warning:"Please specify a template name",template_counter:"Quick replies {count}/{max}",template_empty:"No templates available",updated_at:"{date} edit by {by}",edit_before_send:"Edit before send",send_now:"Send now",search_image:"Search image",image_empty:"No images available",display_list:"Switch to list view",display_grid:"Switch to grid view",send_images:"Send images",search_file:"Search file",file_empty:"No files available",send_files:"Send files",add_file:"Add file",created_at:"Created {date}",message:"Message",button:"Button",menu_list:"Menu list",add_button:"Add button",add_image:"Add image",change_image:"Change image",add_video:"Add video",change_video_link:"Change video link",link_video:"Video link",type_description_here:"Type description here",type_title_here:"Type title here",button_label:"Button text",button_action:"Action",button_label_placeholder:"Type button name",button_action_text:"Text",button_action_url:"Link",button_action_tel:"Phone number",button_action_url_placeholder:"https://www.example.com",button_action_tel_placeholder:"Ex. +66812345678",button_action_required:"Please fill out this field",button_action_url_invalid:"Link is invalid",button_action_tel_invalid:"Phone number is invalid",image_size_hint:"Supports files up to 10MB",image_too_large:"File is larger than 10MB",video_link_required:"Please provide a video link",video_link_invalid:"Video link is invalid",type_video_link_here:"Paste the video link here",count_template_content:"Reply",edit_button:"Edit button",move_up:"Move up",move_down:"Move down",move_left:"Move left",move_right:"Move right",delete_template_title:"Are you sure you want to delete this template?",delete_selected_items_confirmation:"Are you sure you want to delete the selected items?",delete_item_confirmation:"Are you sure you want to delete this item?",uploading:"Uploading...",rename_item:"Rename",name:"Name",edit_template:"Edit the template"},selected:"Selected",new:"new",enter_create:"Enter to create",used:"Used",select_all:"Select all",edit:"Edit",cancel:"Cancel",save:"Save",reset:"Reset",search:"Search",channel:"Channel",status:"Status",search_data:"Search",you:"You",image:"Image",video:"Video",file:"File",sent:"sent",today:"Today",translate:"Translate",profile_tab:{profile_this_chat:"Profile this chat",merged_profile:"Merged profile",add_tag:"Add tag",tag_empty:"No tag",compare_user:"Analyze user profiles.",compare_user_info:"Upon initial user merge, the system creates a Zignal Profile for this user.",ai_summary:"AI Summary",prob:"possibility",same_user:"to be the same person.",merge_user:"Merge user",compare_table:"Comparison table",match_user:"This user could be the same person.",view_data:"View",related_user:"Related users",history_info:"History for the last 30 days",no_activity_log:"No activities",go_to_message:"Go to the message",activity_action:"{action} {type}",last_update:"Last update"},tag:"Tag",no:"No",email:"Email",phone_no:"Phone No.",address:"Address",gender:"Gender",unread:"Unread",more:"More",inbox:"Inbox",spam:"Spam",info:"Info",file_and_image:"Files and Images",history:"History",about:"About",locale:"Locale",register_date:"Register Date",last_active_date:"Last Active",note:"Note",name:"Name",remove:"Remove",change:"Change",add:"Add",ok:"OK",error:"Error",send:"Send",confirm:"Confirm",delete:"delete",close:"Close",clear:"Clear",please_input:"Please input",not_found:"Not found",province:"Province",district:"District",sub_district:"Sub District",zip_code:"Zip Code",create:"Create",event:"Event",amount:"Amount",currency:"Currency",chat_filter:{admin:"Admin",chat_bot:"Chatbot",group:"Group",reset:"Reset",all:"All",friend:"Friend",type:"Type",type_for_line_oa:"For Line OA channel",search_result:"Search results",add_custom_filter:"Add a filter",filter_name:"Filter name",confirm_delete_filter:"Are you sure you want to delete this filter?",custom_filter:"Custom filter",select_filter_to_search:"Select a filter to search.",no_filter:"No filter",verify_slip:"Verify slip",verify_slip_more_than:"Verify slip more than",only_customer_zrmz:"Select only ZRMZ customers",shop_name:"Shop name",name:"Name",total_point:"Total points",remaining_point:"Remaining points",only_customer_zerva:"Select only Zerva customers",booking_no:"Booking number",service_date:"Date of service",end_date:"End date",start_date:"Start date",booking_status:"Booking status",payment_status:"Payment status",quantity:"quantity",times:"times"},sticker:"Sticker",audio:"Audio",location:"Location",text:"Text",template:"Template",ig_reel:"Reel",story_mention:"Story mention",share:"Share"}},th:{translation:{chat_tab:{chat:"แชท",chats_are_not_connected:"คุณยังไม่ได้เชื่อมต่อรวมแขท",choose_page_you_want_to_connect:"เลือกเพจที่ต้องการเชื่อมต่อ",add_channel_connection:"เพิ่มช่องทางเชื่อมต่อ",add_connection:"เพิ่มการเชื่อมต่อ",integrated_account:"บัญชีรวมแชทที่เชื่อมต่อ",integrated_account_desc:"จัดการบัญชีที่เชื่อมต่อของคุณ",search_chat:"ค้นหาแชท",custom_filter:"กรองข้อมูลแบบกำหนดเอง",create_custom_filter:"สร้างตัวกรองข้อมูลแบบกำหนดเอง",advance_search:"ค้นหาขั้นสูง",please_choose_chat_to_reply:"กรุณาเลือกผู้ใช้ที่ต้องการตอบกลับ",no_user_found:"ไม่พบผู้ใช้",all_chat:"แชททั้งหมด",already_read:"อ่านแล้ว",unread:"ยังไม่ได้อ่าน",filter_search_fields:"ชื่อ, ชื่อเล่น, อีเมล, เบอร์โทร หรือ ข้อความ",read_status:"สถานะการอ่าน",last_reply:"ตอบกลับล่าสุด",you_not_connect_chat:"คุณยังไม่ได้เชื่อมรวมแชท",see_original:"ดูข้อความต้นฉบับ",see_translated:"ดูข้อความที่แปลแล้ว",see_send_text:"ดูข้อความที่ส่งไป",hide:"ย่อ",see_all_text:"ดูข้อความทั้งหมด",reply:"ตอบกลับ",replied_to:"ได้ตอบกลับ",yourself:"ตัวคุณเอง",summary:"AI สรุปข้อความ",reply_token_info:"คุณมีโควต้าส่งข้อความฟรี {total} ข้อความ ภายใน {remaining} นาที",syncing_message:"กำลังดึงประวัติแชท กรุณารอสักครู่",syncing_tag:"กำลังดึงป้ายกำกับ กรุณารอสักครู่",advanced_search:"ค้นหาขั้นสูง",add_custom_filter:"เพิ่มตัวกรองกำหนดเอง",edit_custom_filter:"แก้ไขตัวกรองกำหนดเอง"},quick_message:{title:"เทมเพลตคำตอบ",app_title:"คลังเทมเพลต",app_description:"จัดการเทมเพลต รูปภาพ และไฟล์สำหรับทีมของคุณในที่เดียว",tab_template:"เทมเพลตคำตอบ",search_template:"ค้นหาข้อความ",add_template:"เพิ่มข้อความตอบกลับ",template_name:"ชื่อเทมเพลตข้อความ",template_name_required:"กรุณาระบุชื่อเทมเพลตข้อความ",template_name_warning:"โปรดระบุชื่อเทมเพลต",template_counter:"ข้อความตอบกลับ {count}/{max}",template_empty:"ยังไม่มีเทมเพลตคำตอบ",updated_at:"{date} แก้ไขโดย {by}",edit_before_send:"แก้ไขก่อนส่ง",send_now:"ส่งเลย",search_image:"ค้นหารูปภาพ",image_empty:"ยังไม่มีรูปภาพ",display_list:"เปลี่ยนเป็นแบบรายการ",display_grid:"เปลี่ยนเป็นแบบกริด",send_images:"ส่งรูปภาพ",search_file:"ค้นหาไฟล์",file_empty:"ยังไม่มีไฟล์",send_files:"ส่งไฟล์",add_file:"เพิ่มไฟล์",created_at:"สร้างเมื่อ {date}",message:"ข้อความ",button:"ปุ่มกด",menu_list:"เมนูลิสต์",add_button:"เพิ่มปุ่มกด",add_image:"เพิ่มรูปภาพ",change_image:"เปลี่ยนรูปภาพ",add_video:"เพิ่มวิดิโอ",change_video_link:"เปลี่ยนลิงก์วิดีโอ",link_video:"ลิงก์วิดิโอ",type_video_link_here:"วางลิงก์วิดีโอที่นี่",type_description_here:"พิมพ์รายละเอียดที่นี่",type_title_here:"พิมพ์หัวข้อที่นี่",button_label:"ข้อความปุ่ม",button_action:"การทำงาน",button_label_placeholder:"พิมพ์ชื่อปุ่ม",button_action_text:"ข้อความ",button_action_url:"ลิงก์",button_action_tel:"เบอร์โทรศัพท์",button_action_url_placeholder:"https://www.example.com",button_action_tel_placeholder:"ตัวอย่าง +66812345678",button_action_required:"กรุณากรอกข้อมูลนี้",button_action_url_invalid:"ลิงก์ไม่ถูกต้อง",button_action_tel_invalid:"เบอร์โทรศัพท์ไม่ถูกต้อง",image_size_hint:"รองรับไฟล์สูงสุด : 10MB",image_too_large:"ไฟล์มีขนาดเกิน 10MB",video_link_required:"กรุณาระบุลิงก์วิดีโอ",video_link_invalid:"ลิงก์วิดีโอไม่ถูกต้อง",count_template_content:"ข้อความตอบกลับ",edit_button:"แก้ไขปุ่มกด",move_up:"ย้ายขึ้น",move_down:"ย้ายลง",move_left:"ย้ายซ้าย",move_right:"ย้ายขวา",delete_template_title:"คุณต้องการลบข้อความตอบกลับนี้หรือไม่?",delete_selected_items_confirmation:"คุณต้องการลบรายการที่เลือกหรือไม่?",delete_item_confirmation:"คุณต้องการลบรายการนี้หรือไม่?",uploading:"กำลังอัปโหลด...",rename_item:"เปลี่ยนชื่อ",name:"ชื่อ",edit_template:"แก้ไขข้อความตอบกลับ"},selected:"เลือกแล้ว",new:"ใหม่",enter_create:"Enter เพื่อสร้าง",used:"มีแล้ว",select_all:"เลือกทั้งหมด",edit:"แก้ไข",cancel:"ยกเลิก",save:"บันทึก",reset:"ตั้งค่าใหม่",search:"ค้นหา",channel:"ช่องทาง",status:"สถานะ",search_data:"ค้นหาข้อมูล",you:"คุณ",image:"รูปภาพ",video:"วิดีโอ",file:"ไฟล์",sent:"ส่ง",today:"วันนี้",translate:"แปลภาษา",profile_tab:{profile_this_chat:"ข้อมูลโปรไฟล์แชทนี้",merged_profile:"ข้อมูลโปรไฟล์รวม",add_tag:"เพิ่มป้ายกำกับ",tag_empty:"ไม่มีป้ายกำกับ",compare_user:"เปรียบเทียบข้อมูลผู้ใช้",compare_user_info:"กรณีรวม user ในครั้งแรก ระบบสร้าง Profile Zignal ให้กับลูกค้าท่านนี้",ai_summary:"สรุปจาก AI",prob:"มีความเป็นไปได้",same_user:"ที่จะเป็นคนเดียวกัน",merge_user:"รวม User",compare_table:"ตารางเปรียบเทียบ",match_user:"ผู้ใช้รายนี้อาจเป็นคนเดียวกัน",view_data:"ดูข้อมูล",related_user:"ผู้ใช้ที่เกี่ยวข้องกัน",history_info:"ประวัติย้อนหลังสูงสุด 30 วัน",no_activity_log:"ไม่พบกิจกรรม",go_to_message:"ไปที่ข้อความ",activity_action:"{action}{type}",last_update:"อัปเดทล่าสุด"},tag:"ป้ายกำกับ",no:"ไม่ใช่",email:"อีเมล",phone_no:"เบอร์โทร",address:"ที่อยู่",gender:"เพศ",file_and_image:"ไฟล์&รูปภาพ",history:"ประวัติ",unread:"ยังไม่อ่าน",more:"ดูเพิ่ม",inbox:"อินบ็อกซ์",spam:"สแปม",info:"ข้อมูล",about:"เกี่ยวกับ",locale:"ภาษา",register_date:"วันที่สมัคร",last_active_date:"ตอบกลับล่าสุด",note:"หมายเหตุ",name:"ชื่อ",remove:"ลบ",change:"แก้ไข",add:"เพิ่ม",ok:"ตกลง",error:"เกิดข้อผิดพลาด",send:"ส่ง",confirm:"ยืนยัน",delete:"ลบ",close:"ปิด",clear:"ล้าง",please_input:"กรุณาระบุ",not_found:"ไม่พบ",province:"จังหวัด",district:"เขต/อำเภอ",sub_district:"แขวง/ตำบล",zip_code:"รหัสไปรษณีย์",create:"สร้าง",event:"อีเวนท์",amount:"จำนวนเงิน",currency:"หน่วยเงิน",chat_filter:{admin:"แอดมิน",chat_bot:"แชทบอท",group:"กลุ่ม",reset:"ล้าง",all:"ทั้งหมด",friend:"เพื่อน",type:"รูปแบบ",type_for_line_oa:"สำหรับช่องทาง Line OA",search_result:"ผลลัพธ์การค้นหา",add_custom_filter:"เพิ่มตัวกรอง",filter_name:"ชื่อตัวกรอง",confirm_delete_filter:"คุณแน่ใจว่าต้องการลบตัวกรองนี้หรือไม่?",custom_filter:"ตัวกรองกำหนดเอง",select_filter_to_search:"เลือกตัวกรองเพื่อค้นหา",no_filter:"ไม่มีตัวกรอง",verify_slip:"ตรวจสลิป",verify_slip_more_than:"ตรวจสลิปมากกว่า",only_customer_zrmz:"เลือกเฉพาะลูกค้า ZRMZ",shop_name:"ชื่อร้านค้า",name:"ชื่อ - นามสกุล",total_point:"คะแนนทั้งหมด",remaining_point:"คะแนนคงเหลือ",only_customer_zerva:"เลือกเฉพาะลูกค้า Zerva",booking_no:"เลขที่การจอง",service_date:"วันที่เข้ารับบริการ",end_date:"วันที่สิ้นสุด",start_date:"วันที่เริ่มต้น",booking_status:"สถานะการจอง",payment_status:"สถานะการชำระเงิน",quantity:"จำนวน",times:"ครั้ง"},sticker:"สติ๊กเกอร์",audio:"เสียง",location:"สถานที่",text:"ข้อความ",template:"เทมเพลต",ig_reel:"รีล",story_mention:"การกล่าวถึง",share:"แบ่งปัน"}}},fallbackLng:"en",interpolation:{escapeValue:!1}});export{K as i,D as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as t}from"./p-CsXdWHK4.js";import{g as n,f as r}from"./p-CGOCoMW2.js";function e(){return t.t}const i=(t,n=!1)=>{let r="#000";const e=t.includes("rgb")?"rgb":"hex";"hex"===e?r=t:"rgb"===e&&(r="#"+(t.match(/\d+/g)||[]).map((t=>{const n=parseInt(t,10).toString(16);return 1===n.length?"0"+n:n})).join(""));const i=(t=>.299*parseInt(t.substring(1,3),16)+.587*parseInt(t.substring(3,5),16)+.114*parseInt(t.substring(5,7),16))(r);return n?i>128?"#fff":"#000":i>128?"#000":"#fff"};function s(){return`#${Math.floor(16777215*Math.random()).toString(16).padStart(6,"0")}`}function u(t){const n=new DataTransfer;return t.forEach(((t,r)=>{const e=t.split(","),i=e[0].match(/:(.*?);/),s=i?i[1]:"image/png",u=atob(e[1]);let a=u.length;const o=new Uint8Array(a);for(;a--;)o[a]=u.charCodeAt(a);const h=new File([o],`image${r}.png`,{type:s});n.items.add(h)})),n.files}const a=t=>(["e","E","+","-","ArrowDown"].includes(t.key)||"ArrowDown"===t.key&&(0===parseInt(t.target.value)||""===t.target.value))&&t.preventDefault(),o=t=>!("isConnected"in t)||t.isConnected,h=(()=>{let t;return(...n)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let n of t.keys())t.set(n,t.get(n).filter(o))})(...n)}),2e3)}})(),c=t=>"function"==typeof t?t():t,f=(t,n)=>{const r=t.indexOf(n);r>=0&&(t[r]=t[t.length-1],t.length--)},d=(t,e)=>{const i=((t,n=(t,n)=>t!==n)=>{const r=c(t);let e=new Map(Object.entries(r??{}));const i={dispose:[],get:[],set:[],reset:[]},s=new Map,u=()=>{e=new Map(Object.entries(c(t)??{})),i.reset.forEach((t=>t()))},a=t=>(i.get.forEach((n=>n(t))),e.get(t)),o=(t,r)=>{const s=e.get(t);n(r,s,t)&&(e.set(t,r),i.set.forEach((n=>n(t,r,s))))},h="undefined"==typeof Proxy?{}:new Proxy(r,{get:(t,n)=>a(n),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,n)=>e.has(n),set:(t,n,r)=>(o(n,r),!0)}),d=(t,n)=>(i[t].push(n),()=>{f(i[t],n)});return{state:h,get:a,set:o,on:d,onChange:(n,r)=>{const e=(t,e)=>{t===n&&r(e)},i=()=>r(c(t)[n]),u=d("set",e),a=d("reset",i);return s.set(r,{setHandler:e,resetHandler:i,propName:n}),()=>{u(),a(),s.delete(r)}},use:(...t)=>{const n=t.reduce(((t,n)=>(n.set&&t.push(d("set",n.set)),n.get&&t.push(d("get",n.get)),n.reset&&t.push(d("reset",n.reset)),n.dispose&&t.push(d("dispose",n.dispose)),t)),[]);return()=>n.forEach((t=>t()))},dispose:()=>{i.dispose.forEach((t=>t())),u()},reset:u,forceUpdate:t=>{const n=e.get(t);i.set.forEach((r=>r(t,n,n)))},removeListener:(t,n)=>{const r=s.get(n);r&&r.propName===t&&(f(i.set,r.setHandler),f(i.reset,r.resetHandler),s.delete(n))}}})(t,e);return i.use((()=>{if("function"!=typeof n)return{};const t=new Map;return{dispose:()=>t.clear(),get:r=>{const e=n();e&&((t,n,r)=>{const e=t.get(n);e?e.includes(r)||e.push(r):t.set(n,[r])})(t,r,e)},set:n=>{const e=t.get(n);e&&t.set(n,e.filter(r)),h(t)},reset:()=>{t.forEach((t=>t.forEach(r))),h(t)}}})()),i},l=d({language:"en",theme:"light",businessId:null,shopId:null,accessToken:null,isProduction:!1,timeZone:null,translationSettings:{is_auto:!1,target_language:null,exclude_languages:[]},isNotConnected:!1,connectionList:[],memberList:[]}),m=d({messages:[],reads:[],loadedKeys:new Set,readsMap:{}}),M=d({filterType:"quick"}),v=d({statuses:[]}),Y=d({tags:[]}),_=d({chats:[],loadedKeys:new Set}),g=d({user:null}),y=d({userAddress:null}),D=d({selectedChat:null,isSyncingTag:!1,isSyncingMessage:!1}),p=d({selectedMessageToReply:null}),w=d({isMobile:!1}),S=d({isShow:!1}),b=d({filters:[],selectedFilter:null,loading:!1});var H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function T(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var k,$={exports:{}};function L(){return k||(k=1,$.exports=function(){var t=6e4,n=36e5,r="millisecond",e="second",i="minute",s="hour",u="day",a="week",o="month",h="quarter",c="year",f="date",d="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var n=["th","st","nd","rd"],r=t%100;return"["+t+(n[(r-20)%10]||n[r]||n[0])+"]"}},v=function(t,n,r){var e=String(t);return!e||e.length>=n?t:""+Array(n+1-e.length).join(r)+t},Y={s:v,z:function(t){var n=-t.utcOffset(),r=Math.abs(n),e=Math.floor(r/60),i=r%60;return(n<=0?"+":"-")+v(e,2,"0")+":"+v(i,2,"0")},m:function t(n,r){if(n.date()<r.date())return-t(r,n);var e=12*(r.year()-n.year())+(r.month()-n.month()),i=n.clone().add(e,o),s=r-i<0,u=n.clone().add(e+(s?-1:1),o);return+(-(e+(r-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:o,y:c,w:a,d:u,D:f,h:s,m:i,s:e,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},_="en",g={};g[_]=M;var y="$isDayjsObject",D=function(t){return t instanceof b||!(!t||!t[y])},p=function t(n,r,e){var i;if(!n)return _;if("string"==typeof n){var s=n.toLowerCase();g[s]&&(i=s),r&&(g[s]=r,i=s);var u=n.split("-");if(!i&&u.length>1)return t(u[0])}else{var a=n.name;g[a]=n,i=a}return!e&&i&&(_=i),i||!e&&_},w=function(t,n){if(D(t))return t.clone();var r="object"==typeof n?n:{};return r.date=t,r.args=arguments,new b(r)},S=Y;S.l=p,S.i=D,S.w=function(t,n){return w(t,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var b=function(){function M(t){this.$L=p(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[y]=!0}var v=M.prototype;return v.parse=function(t){this.$d=function(t){var n=t.date,r=t.utc;if(null===n)return new Date(NaN);if(S.u(n))return new Date;if(n instanceof Date)return new Date(n);if("string"==typeof n&&!/Z$/i.test(n)){var e=n.match(l);if(e){var i=e[2]-1||0,s=(e[7]||"0").substring(0,3);return r?new Date(Date.UTC(e[1],i,e[3]||1,e[4]||0,e[5]||0,e[6]||0,s)):new Date(e[1],i,e[3]||1,e[4]||0,e[5]||0,e[6]||0,s)}}return new Date(n)}(t),this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return!(this.$d.toString()===d)},v.isSame=function(t,n){var r=w(t);return this.startOf(n)<=r&&r<=this.endOf(n)},v.isAfter=function(t,n){return w(t)<this.startOf(n)},v.isBefore=function(t,n){return this.endOf(n)<w(t)},v.$g=function(t,n,r){return S.u(t)?this[n]:this.set(r,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,n){var r=this,h=!!S.u(n)||n,d=S.p(t),l=function(t,n){var e=S.w(r.$u?Date.UTC(r.$y,n,t):new Date(r.$y,n,t),r);return h?e:e.endOf(u)},m=function(t,n){return S.w(r.toDate()[t].apply(r.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(n)),r)},M=this.$W,v=this.$M,Y=this.$D,_="set"+(this.$u?"UTC":"");switch(d){case c:return h?l(1,0):l(31,11);case o:return h?l(1,v):l(0,v+1);case a:var g=this.$locale().weekStart||0,y=(M<g?M+7:M)-g;return l(h?Y-y:Y+(6-y),v);case u:case f:return m(_+"Hours",0);case s:return m(_+"Minutes",1);case i:return m(_+"Seconds",2);case e:return m(_+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,n){var a,h=S.p(t),d="set"+(this.$u?"UTC":""),l=(a={},a[u]=d+"Date",a[f]=d+"Date",a[o]=d+"Month",a[c]=d+"FullYear",a[s]=d+"Hours",a[i]=d+"Minutes",a[e]=d+"Seconds",a[r]=d+"Milliseconds",a)[h],m=h===u?this.$D+(n-this.$W):n;if(h===o||h===c){var M=this.clone().set(f,1);M.$d[l](m),M.init(),this.$d=M.set(f,Math.min(this.$D,M.daysInMonth())).$d}else l&&this.$d[l](m);return this.init(),this},v.set=function(t,n){return this.clone().$set(t,n)},v.get=function(t){return this[S.p(t)]()},v.add=function(r,h){var f,d=this;r=Number(r);var l=S.p(h),m=function(t){var n=w(d);return S.w(n.date(n.date()+Math.round(t*r)),d)};if(l===o)return this.set(o,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===u)return m(1);if(l===a)return m(7);var M=(f={},f[i]=t,f[s]=n,f[e]=1e3,f)[l]||1,v=this.$d.getTime()+r*M;return S.w(v,this)},v.subtract=function(t,n){return this.add(-1*t,n)},v.format=function(t){var n=this,r=this.$locale();if(!this.isValid())return r.invalidDate||d;var e=t||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),s=this.$H,u=this.$m,a=this.$M,o=r.weekdays,h=r.months,c=function(t,r,i,s){return t&&(t[r]||t(n,e))||i[r].slice(0,s)},f=function(t){return S.s(s%12||12,t,"0")},l=r.meridiem||function(t,n,r){var e=t<12?"AM":"PM";return r?e.toLowerCase():e};return e.replace(m,(function(t,e){return e||function(t){switch(t){case"YY":return String(n.$y).slice(-2);case"YYYY":return S.s(n.$y,4,"0");case"M":return a+1;case"MM":return S.s(a+1,2,"0");case"MMM":return c(r.monthsShort,a,h,3);case"MMMM":return c(h,a);case"D":return n.$D;case"DD":return S.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return c(r.weekdaysMin,n.$W,o,2);case"ddd":return c(r.weekdaysShort,n.$W,o,3);case"dddd":return o[n.$W];case"H":return String(s);case"HH":return S.s(s,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return l(s,u,!0);case"A":return l(s,u,!1);case"m":return String(u);case"mm":return S.s(u,2,"0");case"s":return String(n.$s);case"ss":return S.s(n.$s,2,"0");case"SSS":return S.s(n.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,d){var l,m=this,M=S.p(f),v=w(r),Y=(v.utcOffset()-this.utcOffset())*t,_=this-v,g=function(){return S.m(m,v)};switch(M){case c:l=g()/12;break;case o:l=g();break;case h:l=g()/3;break;case a:l=(_-Y)/6048e5;break;case u:l=(_-Y)/864e5;break;case s:l=_/n;break;case i:l=_/t;break;case e:l=_/1e3;break;default:l=_}return d?l:S.a(l)},v.daysInMonth=function(){return this.endOf(o).$D},v.$locale=function(){return g[this.$L]},v.locale=function(t,n){if(!t)return this.$L;var r=this.clone(),e=p(t,n,!0);return e&&(r.$L=e),r},v.clone=function(){return S.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},M}(),H=b.prototype;return w.prototype=H,[["$ms",r],["$s",e],["$m",i],["$H",s],["$W",u],["$M",o],["$y",c],["$D",f]].forEach((function(t){H[t[1]]=function(n){return this.$g(n,t[0],t[1])}})),w.extend=function(t,n){return t.$i||(t(n,b,w),t.$i=!0),w},w.locale=p,w.isDayjs=D,w.unix=function(t){return w(1e3*t)},w.en=g[_],w.Ls=g,w.p={},w}()),$.exports}var j,x,A,I,Z,C,N,P,O=T(L()),U={exports:{}},F=T((j||(j=1,U.exports=(x="minute",A=/[+-]\d\d(?::?\d\d)?/g,I=/([+-]|\d\d)/g,function(t,n,r){var e=n.prototype;r.utc=function(t){return new n({date:t,utc:!0,args:arguments})},e.utc=function(t){var n=r(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),x):n},e.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var i=e.parse;e.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),i.call(this,t)};var s=e.init;e.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else s.call(this)};var u=e.utcOffset;e.utcOffset=function(t,n){var r=this.$utils().u;if(r(t))return this.$u?0:r(this.$offset)?u.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var n=t.match(A);if(!n)return null;var r=(""+n[0]).match(I)||["-",0,0],e=60*+r[1]+ +r[2];return 0===e?0:"+"===r[0]?e:-e}(t),null===t))return this;var e=Math.abs(t)<=16?60*t:t;if(0===e)return this.utc(n);var i=this.clone();if(n)return i.$offset=e,i.$u=!1,i;var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(i=this.local().add(e+s,x)).$offset=e,i.$x.$localOffset=s,i};var a=e.format;e.format=function(t){return a.call(this,t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},e.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},e.isUTC=function(){return!!this.$u},e.toISOString=function(){return this.toDate().toISOString()},e.toString=function(){return this.toDate().toUTCString()};var o=e.toDate;e.toDate=function(t){return"s"===t&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():o.call(this)};var h=e.diff;e.diff=function(t,n,e){if(t&&this.$u===t.$u)return h.call(this,t,n,e);var i=this.local(),s=r(t).local();return h.call(i,s,n,e)}})),U.exports)),W={exports:{}},K=(Z||(Z=1,W.exports=function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(r,e,i){var s,u=function(t,r,e){void 0===e&&(e={});var i=new Date(t),s=function(t,r){void 0===r&&(r={});var e=r.timeZoneName||"short",i=t+"|"+e,s=n[i];return s||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:e}),n[i]=s),s}(r,e);return s.formatToParts(i)},a=function(n,r){for(var e=u(n,r),s=[],a=0;a<e.length;a+=1){var o=e[a],h=t[o.type];h>=0&&(s[h]=parseInt(o.value,10))}var c=s[3],f=+n;return(i.utc(s[0]+"-"+s[1]+"-"+s[2]+" "+(24===c?0:c)+":"+s[4]+":"+s[5]+":000").valueOf()-(f-=f%1e3))/6e4},o=e.prototype;o.tz=function(t,n){void 0===t&&(t=s);var r,e=this.utcOffset(),u=this.toDate(),a=u.toLocaleString("en-US",{timeZone:t}),o=Math.round((u-new Date(a))/1e3/60),h=15*-Math.round(u.getTimezoneOffset()/15)-o;if(Number(h)){if(r=i(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(h,!0),n){var c=r.utcOffset();r=r.add(e-c,"minute")}}else r=this.utcOffset(0,n);return r.$x.$timezone=t,r},o.offsetName=function(t){var n=this.$x.$timezone||i.tz.guess(),r=u(this.valueOf(),n,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return r&&r.value};var h=o.startOf;o.startOf=function(t,n){if(!this.$x||!this.$x.$timezone)return h.call(this,t,n);var r=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return h.call(r,t,n).tz(this.$x.$timezone,!0)},i.tz=function(t,n,r){var e=r&&n,u=r||n||s,o=a(+i(),u);if("string"!=typeof t)return i(t).tz(u);var h=function(t,n,r){var e=t-60*n*1e3,i=a(e,r);if(n===i)return[e,n];var s=a(e-=60*(i-n)*1e3,r);return i===s?[e,i]:[t-60*Math.min(i,s)*1e3,Math.max(i,s)]}(i.utc(t,e).valueOf(),o,u),c=h[1],f=i(h[0]).utcOffset(c);return f.$x.$timezone=u,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){s=t}}}()),W.exports),q=T(K),z={exports:{}},J=(C||(C=1,z.exports=function(){var t,n,r=1e3,e=6e4,i=36e5,s=864e5,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,a=31536e6,o=2628e6,h=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,c={years:a,months:o,days:s,hours:i,minutes:e,seconds:r,milliseconds:1,weeks:6048e5},f=function(t){return t instanceof _},d=function(t,n,r){return new _(t,r,n.$l)},l=function(t){return n.p(t)+"s"},m=function(t){return t<0},M=function(t){return m(t)?Math.ceil(t):Math.floor(t)},v=function(t){return Math.abs(t)},Y=function(t,n){return t?m(t)?{negative:!0,format:""+v(t)+n}:{negative:!1,format:""+t+n}:{negative:!1,format:""}},_=function(){function m(t,n,r){var e=this;if(this.$d={},this.$l=r,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),n)return d(t*c[l(n)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach((function(n){e.$d[l(n)]=t[n]})),this.calMilliseconds(),this;if("string"==typeof t){var i=t.match(h);if(i){var s=i.slice(2).map((function(t){return null!=t?Number(t):0}));return this.$d.years=s[0],this.$d.months=s[1],this.$d.weeks=s[2],this.$d.days=s[3],this.$d.hours=s[4],this.$d.minutes=s[5],this.$d.seconds=s[6],this.calMilliseconds(),this}}return this}var v=m.prototype;return v.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(n,r){return n+(t.$d[r]||0)*c[r]}),0)},v.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=M(t/a),this.$d.months=M((t%=a)/o),this.$d.days=M((t%=o)/s),this.$d.hours=M((t%=s)/i),this.$d.minutes=M((t%=i)/e),this.$d.seconds=M((t%=e)/r),this.$d.milliseconds=t%=r},v.toISOString=function(){var t=Y(this.$d.years,"Y"),n=Y(this.$d.months,"M"),r=+this.$d.days||0;this.$d.weeks&&(r+=7*this.$d.weeks);var e=Y(r,"D"),i=Y(this.$d.hours,"H"),s=Y(this.$d.minutes,"M"),u=this.$d.seconds||0;this.$d.milliseconds&&(u+=this.$d.milliseconds/1e3,u=Math.round(1e3*u)/1e3);var a=Y(u,"S"),o=(t.negative||n.negative||e.negative||i.negative||s.negative||a.negative?"-":"")+"P"+t.format+n.format+e.format+(i.format||s.format||a.format?"T":"")+i.format+s.format+a.format;return"P"===o||"-P"===o?"P0D":o},v.toJSON=function(){return this.toISOString()},v.format=function(t){var r=t||"YYYY-MM-DDTHH:mm:ss",e={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return r.replace(u,(function(t,n){return n||String(e[t])}))},v.as=function(t){return this.$ms/c[l(t)]},v.get=function(t){var n=this.$ms,r=l(t);return"milliseconds"===r?n%=1e3:n="weeks"===r?M(n/c[r]):this.$d[r],n||0},v.add=function(t,n,r){var e;return e=n?t*c[l(n)]:f(t)?t.$ms:d(t,this).$ms,d(this.$ms+e*(r?-1:1),this)},v.subtract=function(t,n){return this.add(t,n,!0)},v.locale=function(t){var n=this.clone();return n.$l=t,n},v.clone=function(){return d(this.$ms,this)},v.humanize=function(n){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!n)},v.valueOf=function(){return this.asMilliseconds()},v.milliseconds=function(){return this.get("milliseconds")},v.asMilliseconds=function(){return this.as("milliseconds")},v.seconds=function(){return this.get("seconds")},v.asSeconds=function(){return this.as("seconds")},v.minutes=function(){return this.get("minutes")},v.asMinutes=function(){return this.as("minutes")},v.hours=function(){return this.get("hours")},v.asHours=function(){return this.as("hours")},v.days=function(){return this.get("days")},v.asDays=function(){return this.as("days")},v.weeks=function(){return this.get("weeks")},v.asWeeks=function(){return this.as("weeks")},v.months=function(){return this.get("months")},v.asMonths=function(){return this.as("months")},v.years=function(){return this.get("years")},v.asYears=function(){return this.as("years")},m}(),g=function(t,n,r){return t.add(n.years()*r,"y").add(n.months()*r,"M").add(n.days()*r,"d").add(n.hours()*r,"h").add(n.minutes()*r,"m").add(n.seconds()*r,"s").add(n.milliseconds()*r,"ms")};return function(r,e,i){t=i,n=i().$utils(),i.duration=function(t,n){var r=i.locale();return d(t,{$l:r},n)},i.isDuration=f;var s=e.prototype.add,u=e.prototype.subtract;e.prototype.add=function(t,n){return f(t)?g(this,t,1):s.bind(this)(t,n)},e.prototype.subtract=function(t,n){return f(t)?g(this,t,-1):u.bind(this)(t,n)}}}()),z.exports),B=T(J),E={exports:{}},G=(N||(N=1,E.exports=function(t,n,r){n.prototype.isBetween=function(t,n,e,i){var s=r(t),u=r(n),a="("===(i=i||"()")[0],o=")"===i[1];return(a?this.isAfter(s,e):!this.isBefore(s,e))&&(o?this.isBefore(u,e):!this.isAfter(u,e))||(a?this.isBefore(s,e):!this.isAfter(s,e))&&(o?this.isAfter(u,e):!this.isBefore(u,e))}}),E.exports),Q=T(G);P||(P=1,function(){var t=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(L()),n={name:"th",weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"},ordinal:function(t){return t+"."}};t.default.locale(n,null,!0)}()),O.extend(F),O.extend(q),O.extend(B),O.extend(Q);const R=t=>O(t).isValid()?O(t).tz().format("HH:mm"):"",X=t=>O(t).isValid()?O(t).tz().format("DD/MM/YYYY"):"",V=t=>O().tz().format("DD MMM YYYY")===O(t).tz().format("DD MMM YYYY"),tt=t=>O(t).isValid()?O(t).tz().format("DD MMM YYYY"):"",nt=t=>O(t).isValid()?O(t).tz().format("DD MMM YYYY HH:mm"):"",rt=t=>{O.locale(t)},et=t=>{O.tz.setDefault(t)};export{tt as A,X as B,s as C,et as a,y as b,l as c,H as d,T as e,d as f,i as g,M as h,_ as i,D as j,b as k,v as l,V as m,R as n,nt as o,S as p,m as q,w as r,rt as s,Y as t,e as u,O as v,g as w,p as x,u as y,a as z}
|
|
1
|
+
import{i as t}from"./p-B3nb31xy.js";import{g as n,f as r}from"./p-NR-FjQmT.js";function e(){return t.t}const i=(t,n=!1)=>{let r="#000";const e=t.includes("rgb")?"rgb":"hex";"hex"===e?r=t:"rgb"===e&&(r="#"+(t.match(/\d+/g)||[]).map((t=>{const n=parseInt(t,10).toString(16);return 1===n.length?"0"+n:n})).join(""));const i=(t=>.299*parseInt(t.substring(1,3),16)+.587*parseInt(t.substring(3,5),16)+.114*parseInt(t.substring(5,7),16))(r);return n?i>128?"#fff":"#000":i>128?"#000":"#fff"};function s(){return`#${Math.floor(16777215*Math.random()).toString(16).padStart(6,"0")}`}function u(t){const n=new DataTransfer;return t.forEach(((t,r)=>{const e=t.split(","),i=e[0].match(/:(.*?);/),s=i?i[1]:"image/png",u=atob(e[1]);let a=u.length;const o=new Uint8Array(a);for(;a--;)o[a]=u.charCodeAt(a);const h=new File([o],`image${r}.png`,{type:s});n.items.add(h)})),n.files}const a=t=>(["e","E","+","-","ArrowDown"].includes(t.key)||"ArrowDown"===t.key&&(0===parseInt(t.target.value)||""===t.target.value))&&t.preventDefault(),o=t=>!("isConnected"in t)||t.isConnected,h=(()=>{let t;return(...n)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let n of t.keys())t.set(n,t.get(n).filter(o))})(...n)}),2e3)}})(),c=t=>"function"==typeof t?t():t,f=(t,n)=>{const r=t.indexOf(n);r>=0&&(t[r]=t[t.length-1],t.length--)},d=(t,e)=>{const i=((t,n=(t,n)=>t!==n)=>{const r=c(t);let e=new Map(Object.entries(r??{}));const i={dispose:[],get:[],set:[],reset:[]},s=new Map,u=()=>{e=new Map(Object.entries(c(t)??{})),i.reset.forEach((t=>t()))},a=t=>(i.get.forEach((n=>n(t))),e.get(t)),o=(t,r)=>{const s=e.get(t);n(r,s,t)&&(e.set(t,r),i.set.forEach((n=>n(t,r,s))))},h="undefined"==typeof Proxy?{}:new Proxy(r,{get:(t,n)=>a(n),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,n)=>e.has(n),set:(t,n,r)=>(o(n,r),!0)}),d=(t,n)=>(i[t].push(n),()=>{f(i[t],n)});return{state:h,get:a,set:o,on:d,onChange:(n,r)=>{const e=(t,e)=>{t===n&&r(e)},i=()=>r(c(t)[n]),u=d("set",e),a=d("reset",i);return s.set(r,{setHandler:e,resetHandler:i,propName:n}),()=>{u(),a(),s.delete(r)}},use:(...t)=>{const n=t.reduce(((t,n)=>(n.set&&t.push(d("set",n.set)),n.get&&t.push(d("get",n.get)),n.reset&&t.push(d("reset",n.reset)),n.dispose&&t.push(d("dispose",n.dispose)),t)),[]);return()=>n.forEach((t=>t()))},dispose:()=>{i.dispose.forEach((t=>t())),u()},reset:u,forceUpdate:t=>{const n=e.get(t);i.set.forEach((r=>r(t,n,n)))},removeListener:(t,n)=>{const r=s.get(n);r&&r.propName===t&&(f(i.set,r.setHandler),f(i.reset,r.resetHandler),s.delete(n))}}})(t,e);return i.use((()=>{if("function"!=typeof n)return{};const t=new Map;return{dispose:()=>t.clear(),get:r=>{const e=n();e&&((t,n,r)=>{const e=t.get(n);e?e.includes(r)||e.push(r):t.set(n,[r])})(t,r,e)},set:n=>{const e=t.get(n);e&&t.set(n,e.filter(r)),h(t)},reset:()=>{t.forEach((t=>t.forEach(r))),h(t)}}})()),i},l=d({language:"en",theme:"light",businessId:null,shopId:null,accessToken:null,isProduction:!1,timeZone:null,translationSettings:{is_auto:!1,target_language:null,exclude_languages:[]},isNotConnected:!1,connectionList:[],memberList:[]}),m=d({messages:[],reads:[],loadedKeys:new Set,readsMap:{}}),M=d({filterType:"quick"}),v=d({statuses:[]}),Y=d({tags:[]}),_=d({chats:[],loadedKeys:new Set}),g=d({user:null}),y=d({userAddress:null}),D=d({selectedChat:null,isSyncingTag:!1,isSyncingMessage:!1}),p=d({selectedMessageToReply:null}),w=d({isMobile:!1}),S=d({isShow:!1}),b=d({filters:[],selectedFilter:null,loading:!1});var H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function T(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var k,$={exports:{}};function L(){return k||(k=1,$.exports=function(){var t=6e4,n=36e5,r="millisecond",e="second",i="minute",s="hour",u="day",a="week",o="month",h="quarter",c="year",f="date",d="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var n=["th","st","nd","rd"],r=t%100;return"["+t+(n[(r-20)%10]||n[r]||n[0])+"]"}},v=function(t,n,r){var e=String(t);return!e||e.length>=n?t:""+Array(n+1-e.length).join(r)+t},Y={s:v,z:function(t){var n=-t.utcOffset(),r=Math.abs(n),e=Math.floor(r/60),i=r%60;return(n<=0?"+":"-")+v(e,2,"0")+":"+v(i,2,"0")},m:function t(n,r){if(n.date()<r.date())return-t(r,n);var e=12*(r.year()-n.year())+(r.month()-n.month()),i=n.clone().add(e,o),s=r-i<0,u=n.clone().add(e+(s?-1:1),o);return+(-(e+(r-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:o,y:c,w:a,d:u,D:f,h:s,m:i,s:e,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},_="en",g={};g[_]=M;var y="$isDayjsObject",D=function(t){return t instanceof b||!(!t||!t[y])},p=function t(n,r,e){var i;if(!n)return _;if("string"==typeof n){var s=n.toLowerCase();g[s]&&(i=s),r&&(g[s]=r,i=s);var u=n.split("-");if(!i&&u.length>1)return t(u[0])}else{var a=n.name;g[a]=n,i=a}return!e&&i&&(_=i),i||!e&&_},w=function(t,n){if(D(t))return t.clone();var r="object"==typeof n?n:{};return r.date=t,r.args=arguments,new b(r)},S=Y;S.l=p,S.i=D,S.w=function(t,n){return w(t,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var b=function(){function M(t){this.$L=p(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[y]=!0}var v=M.prototype;return v.parse=function(t){this.$d=function(t){var n=t.date,r=t.utc;if(null===n)return new Date(NaN);if(S.u(n))return new Date;if(n instanceof Date)return new Date(n);if("string"==typeof n&&!/Z$/i.test(n)){var e=n.match(l);if(e){var i=e[2]-1||0,s=(e[7]||"0").substring(0,3);return r?new Date(Date.UTC(e[1],i,e[3]||1,e[4]||0,e[5]||0,e[6]||0,s)):new Date(e[1],i,e[3]||1,e[4]||0,e[5]||0,e[6]||0,s)}}return new Date(n)}(t),this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return!(this.$d.toString()===d)},v.isSame=function(t,n){var r=w(t);return this.startOf(n)<=r&&r<=this.endOf(n)},v.isAfter=function(t,n){return w(t)<this.startOf(n)},v.isBefore=function(t,n){return this.endOf(n)<w(t)},v.$g=function(t,n,r){return S.u(t)?this[n]:this.set(r,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,n){var r=this,h=!!S.u(n)||n,d=S.p(t),l=function(t,n){var e=S.w(r.$u?Date.UTC(r.$y,n,t):new Date(r.$y,n,t),r);return h?e:e.endOf(u)},m=function(t,n){return S.w(r.toDate()[t].apply(r.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(n)),r)},M=this.$W,v=this.$M,Y=this.$D,_="set"+(this.$u?"UTC":"");switch(d){case c:return h?l(1,0):l(31,11);case o:return h?l(1,v):l(0,v+1);case a:var g=this.$locale().weekStart||0,y=(M<g?M+7:M)-g;return l(h?Y-y:Y+(6-y),v);case u:case f:return m(_+"Hours",0);case s:return m(_+"Minutes",1);case i:return m(_+"Seconds",2);case e:return m(_+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,n){var a,h=S.p(t),d="set"+(this.$u?"UTC":""),l=(a={},a[u]=d+"Date",a[f]=d+"Date",a[o]=d+"Month",a[c]=d+"FullYear",a[s]=d+"Hours",a[i]=d+"Minutes",a[e]=d+"Seconds",a[r]=d+"Milliseconds",a)[h],m=h===u?this.$D+(n-this.$W):n;if(h===o||h===c){var M=this.clone().set(f,1);M.$d[l](m),M.init(),this.$d=M.set(f,Math.min(this.$D,M.daysInMonth())).$d}else l&&this.$d[l](m);return this.init(),this},v.set=function(t,n){return this.clone().$set(t,n)},v.get=function(t){return this[S.p(t)]()},v.add=function(r,h){var f,d=this;r=Number(r);var l=S.p(h),m=function(t){var n=w(d);return S.w(n.date(n.date()+Math.round(t*r)),d)};if(l===o)return this.set(o,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===u)return m(1);if(l===a)return m(7);var M=(f={},f[i]=t,f[s]=n,f[e]=1e3,f)[l]||1,v=this.$d.getTime()+r*M;return S.w(v,this)},v.subtract=function(t,n){return this.add(-1*t,n)},v.format=function(t){var n=this,r=this.$locale();if(!this.isValid())return r.invalidDate||d;var e=t||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),s=this.$H,u=this.$m,a=this.$M,o=r.weekdays,h=r.months,c=function(t,r,i,s){return t&&(t[r]||t(n,e))||i[r].slice(0,s)},f=function(t){return S.s(s%12||12,t,"0")},l=r.meridiem||function(t,n,r){var e=t<12?"AM":"PM";return r?e.toLowerCase():e};return e.replace(m,(function(t,e){return e||function(t){switch(t){case"YY":return String(n.$y).slice(-2);case"YYYY":return S.s(n.$y,4,"0");case"M":return a+1;case"MM":return S.s(a+1,2,"0");case"MMM":return c(r.monthsShort,a,h,3);case"MMMM":return c(h,a);case"D":return n.$D;case"DD":return S.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return c(r.weekdaysMin,n.$W,o,2);case"ddd":return c(r.weekdaysShort,n.$W,o,3);case"dddd":return o[n.$W];case"H":return String(s);case"HH":return S.s(s,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return l(s,u,!0);case"A":return l(s,u,!1);case"m":return String(u);case"mm":return S.s(u,2,"0");case"s":return String(n.$s);case"ss":return S.s(n.$s,2,"0");case"SSS":return S.s(n.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,d){var l,m=this,M=S.p(f),v=w(r),Y=(v.utcOffset()-this.utcOffset())*t,_=this-v,g=function(){return S.m(m,v)};switch(M){case c:l=g()/12;break;case o:l=g();break;case h:l=g()/3;break;case a:l=(_-Y)/6048e5;break;case u:l=(_-Y)/864e5;break;case s:l=_/n;break;case i:l=_/t;break;case e:l=_/1e3;break;default:l=_}return d?l:S.a(l)},v.daysInMonth=function(){return this.endOf(o).$D},v.$locale=function(){return g[this.$L]},v.locale=function(t,n){if(!t)return this.$L;var r=this.clone(),e=p(t,n,!0);return e&&(r.$L=e),r},v.clone=function(){return S.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},M}(),H=b.prototype;return w.prototype=H,[["$ms",r],["$s",e],["$m",i],["$H",s],["$W",u],["$M",o],["$y",c],["$D",f]].forEach((function(t){H[t[1]]=function(n){return this.$g(n,t[0],t[1])}})),w.extend=function(t,n){return t.$i||(t(n,b,w),t.$i=!0),w},w.locale=p,w.isDayjs=D,w.unix=function(t){return w(1e3*t)},w.en=g[_],w.Ls=g,w.p={},w}()),$.exports}var j,x,A,I,N,Z,P,O,C=T(L()),F={exports:{}},U=T((j||(j=1,F.exports=(x="minute",A=/[+-]\d\d(?::?\d\d)?/g,I=/([+-]|\d\d)/g,function(t,n,r){var e=n.prototype;r.utc=function(t){return new n({date:t,utc:!0,args:arguments})},e.utc=function(t){var n=r(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),x):n},e.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var i=e.parse;e.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),i.call(this,t)};var s=e.init;e.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else s.call(this)};var u=e.utcOffset;e.utcOffset=function(t,n){var r=this.$utils().u;if(r(t))return this.$u?0:r(this.$offset)?u.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var n=t.match(A);if(!n)return null;var r=(""+n[0]).match(I)||["-",0,0],e=60*+r[1]+ +r[2];return 0===e?0:"+"===r[0]?e:-e}(t),null===t))return this;var e=Math.abs(t)<=16?60*t:t;if(0===e)return this.utc(n);var i=this.clone();if(n)return i.$offset=e,i.$u=!1,i;var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(i=this.local().add(e+s,x)).$offset=e,i.$x.$localOffset=s,i};var a=e.format;e.format=function(t){return a.call(this,t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},e.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},e.isUTC=function(){return!!this.$u},e.toISOString=function(){return this.toDate().toISOString()},e.toString=function(){return this.toDate().toUTCString()};var o=e.toDate;e.toDate=function(t){return"s"===t&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():o.call(this)};var h=e.diff;e.diff=function(t,n,e){if(t&&this.$u===t.$u)return h.call(this,t,n,e);var i=this.local(),s=r(t).local();return h.call(i,s,n,e)}})),F.exports)),q={exports:{}},z=(N||(N=1,q.exports=function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(r,e,i){var s,u=function(t,r,e){void 0===e&&(e={});var i=new Date(t),s=function(t,r){void 0===r&&(r={});var e=r.timeZoneName||"short",i=t+"|"+e,s=n[i];return s||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:e}),n[i]=s),s}(r,e);return s.formatToParts(i)},a=function(n,r){for(var e=u(n,r),s=[],a=0;a<e.length;a+=1){var o=e[a],h=t[o.type];h>=0&&(s[h]=parseInt(o.value,10))}var c=s[3],f=+n;return(i.utc(s[0]+"-"+s[1]+"-"+s[2]+" "+(24===c?0:c)+":"+s[4]+":"+s[5]+":000").valueOf()-(f-=f%1e3))/6e4},o=e.prototype;o.tz=function(t,n){void 0===t&&(t=s);var r,e=this.utcOffset(),u=this.toDate(),a=u.toLocaleString("en-US",{timeZone:t}),o=Math.round((u-new Date(a))/1e3/60),h=15*-Math.round(u.getTimezoneOffset()/15)-o;if(Number(h)){if(r=i(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(h,!0),n){var c=r.utcOffset();r=r.add(e-c,"minute")}}else r=this.utcOffset(0,n);return r.$x.$timezone=t,r},o.offsetName=function(t){var n=this.$x.$timezone||i.tz.guess(),r=u(this.valueOf(),n,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return r&&r.value};var h=o.startOf;o.startOf=function(t,n){if(!this.$x||!this.$x.$timezone)return h.call(this,t,n);var r=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return h.call(r,t,n).tz(this.$x.$timezone,!0)},i.tz=function(t,n,r){var e=r&&n,u=r||n||s,o=a(+i(),u);if("string"!=typeof t)return i(t).tz(u);var h=function(t,n,r){var e=t-60*n*1e3,i=a(e,r);if(n===i)return[e,n];var s=a(e-=60*(i-n)*1e3,r);return i===s?[e,i]:[t-60*Math.min(i,s)*1e3,Math.max(i,s)]}(i.utc(t,e).valueOf(),o,u),c=h[1],f=i(h[0]).utcOffset(c);return f.$x.$timezone=u,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){s=t}}}()),q.exports),J=T(z),K={exports:{}},W=(Z||(Z=1,K.exports=function(){var t,n,r=1e3,e=6e4,i=36e5,s=864e5,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,a=31536e6,o=2628e6,h=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,c={years:a,months:o,days:s,hours:i,minutes:e,seconds:r,milliseconds:1,weeks:6048e5},f=function(t){return t instanceof _},d=function(t,n,r){return new _(t,r,n.$l)},l=function(t){return n.p(t)+"s"},m=function(t){return t<0},M=function(t){return m(t)?Math.ceil(t):Math.floor(t)},v=function(t){return Math.abs(t)},Y=function(t,n){return t?m(t)?{negative:!0,format:""+v(t)+n}:{negative:!1,format:""+t+n}:{negative:!1,format:""}},_=function(){function m(t,n,r){var e=this;if(this.$d={},this.$l=r,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),n)return d(t*c[l(n)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach((function(n){e.$d[l(n)]=t[n]})),this.calMilliseconds(),this;if("string"==typeof t){var i=t.match(h);if(i){var s=i.slice(2).map((function(t){return null!=t?Number(t):0}));return this.$d.years=s[0],this.$d.months=s[1],this.$d.weeks=s[2],this.$d.days=s[3],this.$d.hours=s[4],this.$d.minutes=s[5],this.$d.seconds=s[6],this.calMilliseconds(),this}}return this}var v=m.prototype;return v.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(n,r){return n+(t.$d[r]||0)*c[r]}),0)},v.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=M(t/a),this.$d.months=M((t%=a)/o),this.$d.days=M((t%=o)/s),this.$d.hours=M((t%=s)/i),this.$d.minutes=M((t%=i)/e),this.$d.seconds=M((t%=e)/r),this.$d.milliseconds=t%=r},v.toISOString=function(){var t=Y(this.$d.years,"Y"),n=Y(this.$d.months,"M"),r=+this.$d.days||0;this.$d.weeks&&(r+=7*this.$d.weeks);var e=Y(r,"D"),i=Y(this.$d.hours,"H"),s=Y(this.$d.minutes,"M"),u=this.$d.seconds||0;this.$d.milliseconds&&(u+=this.$d.milliseconds/1e3,u=Math.round(1e3*u)/1e3);var a=Y(u,"S"),o=(t.negative||n.negative||e.negative||i.negative||s.negative||a.negative?"-":"")+"P"+t.format+n.format+e.format+(i.format||s.format||a.format?"T":"")+i.format+s.format+a.format;return"P"===o||"-P"===o?"P0D":o},v.toJSON=function(){return this.toISOString()},v.format=function(t){var r=t||"YYYY-MM-DDTHH:mm:ss",e={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return r.replace(u,(function(t,n){return n||String(e[t])}))},v.as=function(t){return this.$ms/c[l(t)]},v.get=function(t){var n=this.$ms,r=l(t);return"milliseconds"===r?n%=1e3:n="weeks"===r?M(n/c[r]):this.$d[r],n||0},v.add=function(t,n,r){var e;return e=n?t*c[l(n)]:f(t)?t.$ms:d(t,this).$ms,d(this.$ms+e*(r?-1:1),this)},v.subtract=function(t,n){return this.add(t,n,!0)},v.locale=function(t){var n=this.clone();return n.$l=t,n},v.clone=function(){return d(this.$ms,this)},v.humanize=function(n){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!n)},v.valueOf=function(){return this.asMilliseconds()},v.milliseconds=function(){return this.get("milliseconds")},v.asMilliseconds=function(){return this.as("milliseconds")},v.seconds=function(){return this.get("seconds")},v.asSeconds=function(){return this.as("seconds")},v.minutes=function(){return this.get("minutes")},v.asMinutes=function(){return this.as("minutes")},v.hours=function(){return this.get("hours")},v.asHours=function(){return this.as("hours")},v.days=function(){return this.get("days")},v.asDays=function(){return this.as("days")},v.weeks=function(){return this.get("weeks")},v.asWeeks=function(){return this.as("weeks")},v.months=function(){return this.get("months")},v.asMonths=function(){return this.as("months")},v.years=function(){return this.get("years")},v.asYears=function(){return this.as("years")},m}(),g=function(t,n,r){return t.add(n.years()*r,"y").add(n.months()*r,"M").add(n.days()*r,"d").add(n.hours()*r,"h").add(n.minutes()*r,"m").add(n.seconds()*r,"s").add(n.milliseconds()*r,"ms")};return function(r,e,i){t=i,n=i().$utils(),i.duration=function(t,n){var r=i.locale();return d(t,{$l:r},n)},i.isDuration=f;var s=e.prototype.add,u=e.prototype.subtract;e.prototype.add=function(t,n){return f(t)?g(this,t,1):s.bind(this)(t,n)},e.prototype.subtract=function(t,n){return f(t)?g(this,t,-1):u.bind(this)(t,n)}}}()),K.exports),B=T(W),Q={exports:{}},R=(P||(P=1,Q.exports=function(t,n,r){n.prototype.isBetween=function(t,n,e,i){var s=r(t),u=r(n),a="("===(i=i||"()")[0],o=")"===i[1];return(a?this.isAfter(s,e):!this.isBefore(s,e))&&(o?this.isBefore(u,e):!this.isAfter(u,e))||(a?this.isBefore(s,e):!this.isAfter(s,e))&&(o?this.isAfter(u,e):!this.isBefore(u,e))}}),Q.exports),E=T(R);O||(O=1,function(){var t=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(L()),n={name:"th",weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"},ordinal:function(t){return t+"."}};t.default.locale(n,null,!0)}()),C.extend(U),C.extend(J),C.extend(B),C.extend(E);const G=t=>C(t).isValid()?C(t).tz().format("HH:mm"):"",V=t=>C(t).isValid()?C(t).tz().format("DD/MM/YYYY"):"",X=t=>C().tz().format("DD MMM YYYY")===C(t).tz().format("DD MMM YYYY"),tt=t=>C(t).isValid()?C(t).tz().format("DD MMM YYYY"):"",nt=t=>C(t).isValid()?C(t).tz().format("DD MMM YYYY HH:mm"):"",rt=t=>{C.locale(t)},et=t=>{C.tz.setDefault(t)};export{tt as A,V as B,s as C,et as a,y as b,l as c,H as d,T as e,d as f,i as g,M as h,_ as i,b as j,v as k,D as l,X as m,G as n,nt as o,S as p,m as q,w as r,rt as s,Y as t,e as u,C as v,g as w,p as x,u as y,a as z}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const t={CLOUDFRONT_S3_SSO_KEY:"8338404e73b209b87dc9dfb55a0d42b8ad5f593a348a3ad731a78e4ec13a4e91"};var n=Object.defineProperty,e=(t,n)=>{var e;Object.entries(null!=(e=n.o.t)?e:{}).map((([e,[o]])=>{if(31&o||32&o){const o=t[e],l=function(t,n){for(;t;){const e=Object.getOwnPropertyDescriptor(t,n);if(null==e?void 0:e.get)return e;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),e)||Object.getOwnPropertyDescriptor(t,e);l&&Object.defineProperty(t,e,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),t[e]=n.l.has(e)?n.l.get(e):o}}))},o=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},l=(t,n)=>{n&&(t.__stencil__getHostRef=()=>n,n.i=t,512&n.o.u&&e(t,n))},s=(t,n)=>n in t,i=(t,n)=>(0,console.error)(t,n),r=new Map,c=new Map,u="slot-fb{display:contents}slot-fb[hidden]{display:none}",f="http://www.w3.org/1999/xlink",a="undefined"!=typeof window?window:{},d={u:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},h=t=>Promise.resolve(t),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),v=!!p&&(()=>!!a.document&&Object.getOwnPropertyDescriptor(a.document.adoptedStyleSheets,"length").writable)(),m=!1,b=[],y=[],w=(t,n)=>e=>{t.push(e),m||(m=!0,n&&4&d.u?S(g):d.raf(g))},$=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){i(t)}t.length=0},g=()=>{$(b),$(y),(m=b.length>0)&&d.raf(g)},S=t=>h().then(t),O=w(y,!0),j=t=>"object"==(t=typeof t)||"function"===t;function k(t){var n,e,o;return null!=(o=null==(e=null==(n=t.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?o:void 0}((t,e)=>{for(var o in e)n(t,o,{get:e[o],enumerable:!0})})({},{err:()=>C,map:()=>x,ok:()=>E,unwrap:()=>M,unwrapErr:()=>N});var E=t=>({isOk:!0,isErr:!1,value:t}),C=t=>({isOk:!1,isErr:!0,value:t});function x(t,n){if(t.isOk){const e=n(t.value);return e instanceof Promise?e.then((t=>E(t))):E(e)}if(t.isErr)return C(t.value);throw"should never get here"}var M=t=>{if(t.isOk)return t.value;throw t.value},N=t=>{if(t.isErr)return t.value;throw t.value},R=t=>{const n=_(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&T(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!F(t,P(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&_(t,"childNodes").length&&R(t)}};function T(t,n,e){let o,l=0,s=[];for(;l<t.length;l++)o=t[l],!o["s-sr"]||n&&o["s-hn"]!==n||void 0!==e||s.push(o),s=[...s,...T(o.childNodes,n,e)];return s}var F=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)P(l)!==n||!e&&l["s-sr"]||o.push(l);return o},L=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,P=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function _(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}var D=new WeakMap,A=t=>"sc-"+t.p,U=(t,n,...e)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)o=n[e],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!j(o))&&(o+=""),i&&r?c[c.length-1].v+=o:c.push(i?W(null,o):o),r=i)};if(u(e),n){n.key&&(l=n.key),n.name&&(s=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}if("function"==typeof t)return t(null===n?{}:n,c,H);const f=W(t,null);return f.m=n,c.length>0&&(f.$=c),f.S=l,f.O=s,f},W=(t,n)=>({u:0,j:t,v:n,k:null,$:null,m:null,S:null,O:null}),z={},H={forEach:(t,n)=>t.map(B).forEach(n),map:(t,n)=>t.map(B).map(n).map(V)},B=t=>({vattrs:t.m,vchildren:t.$,vkey:t.S,vname:t.O,vtag:t.j,vtext:t.v}),V=t=>{if("function"==typeof t.vtag){const n={...t.vattrs};return t.vkey&&(n.key=t.vkey),t.vname&&(n.name=t.vname),U(t.vtag,n,...t.vchildren||[])}const n=W(t.vtag,t.vtext);return n.m=t.vattrs,n.$=t.vchildren,n.S=t.vkey,n.O=t.vname,n},Y=t=>{const n=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${n}))(${n}\\b)`,"g")};Y("::slotted"),Y(":host"),Y(":host-context");var q,I,G=(t,n)=>null==t||j(t)?t:4&n?"false"!==t&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?t+"":t,K=t=>{var n;return null==(n=o(t))?void 0:n.$hostElement$},J=(t,n)=>{const e=K(t);return{emit:t=>Q(e,n,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},Q=(t,n,e)=>{const o=d.ce(n,e);return t.dispatchEvent(o),o},X=(t,n,e,o,l,i)=>{if(e===o)return;let r=s(t,n),c=n.toLowerCase();if("class"===n){const n=t.classList,l=tt(e);let s=tt(o);n.remove(...l.filter((t=>t&&!s.includes(t)))),n.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===n){for(const n in e)o&&null!=o[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in o)e&&o[n]===e[n]||(n.includes("-")?t.style.setProperty(n,o[n]):t.style[n]=o[n])}else if("key"===n);else if("ref"===n)o&&o(t);else if(r||"o"!==n[0]||"n"!==n[1]){const s=j(o);if((r||s&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[n]!==o&&(t[n]=o);else{const l=null==o?"":o;"list"===n?r=!1:null!=e&&t[n]==l||("function"==typeof t.__lookupSetter__(n)?t[n]=l:t.setAttribute(n,l))}}catch(t){}let u=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(n=c,u=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(n)||(u?t.removeAttributeNS(f,n):t.removeAttribute(n)):(!r||4&i||l)&&!s&&1===t.nodeType&&(o=!0===o?"":o,u?t.setAttributeNS(f,n,o):t.setAttribute(n,o))}else if(n="-"===n[2]?n.slice(3):s(a,c)?c.slice(2):c[2]+n.slice(3),e||o){const l=n.endsWith(nt);n=n.replace(et,""),e&&d.rel(t,n,e,l),o&&d.ael(t,n,o,l)}},Z=/\s/,tt=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Z):[]),nt="Capture",et=RegExp(nt+"$"),ot=(t,n,e)=>{const o=11===n.k.nodeType&&n.k.host?n.k.host:n.k,l=t&&t.m||{},s=n.m||{};for(const t of lt(Object.keys(l)))t in s||X(o,t,l[t],void 0,e,n.u);for(const t of lt(Object.keys(s)))X(o,t,l[t],s[t],e,n.u)};function lt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var st=!1,it=!1,rt=!1,ct=!1,ut=(t,n,e)=>{var o;const l=n.$[e];let s,i,r,c=0;if(st||(rt=!0,"slot"===l.j&&(l.u|=l.$?2:1)),null!==l.v)s=l.k=a.document.createTextNode(l.v);else if(1&l.u)s=l.k=a.document.createTextNode(""),ot(null,l,ct);else{if(ct||(ct="svg"===l.j),!a.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(s=l.k=a.document.createElementNS(ct?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!st&&2&l.u?"slot-fb":l.j),ct&&"foreignObject"===l.j&&(ct=!1),ot(null,l,ct),l.$)for(c=0;c<l.$.length;++c)i=ut(t,l,c),i&&s.appendChild(i);"svg"===l.j?ct=!1:"foreignObject"===s.tagName&&(ct=!0)}return s["s-hn"]=I,3&l.u&&(s["s-sr"]=!0,s["s-cr"]=q,s["s-sn"]=l.O||"",s["s-rf"]=null==(o=l.m)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===P(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}(s),r=t&&t.$&&t.$[e],r&&r.j===l.j&&t.k&&ft(t.k,!1)),s},ft=(t,n)=>{d.u|=1;const e=Array.from(t.__childNodes||t.childNodes);for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==I&&o["s-ol"]&&(wt(pt(o).parentNode,o,pt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,rt=!0),n&&ft(o,n)}d.u&=-2},at=(t,n,e,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(;l<=s;++l)o[l]&&(i=ut(null,e,l),i&&(o[l].k=i,wt(r,i,pt(n))))},dt=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.k;yt(n),t&&(it=!0,t["s-ol"]?t["s-ol"].remove():ft(t,!0),t.remove())}}},ht=(t,n,e=!1)=>t.j===n.j&&("slot"===t.j?t.O===n.O:e?(e&&!t.S&&n.S&&(t.S=n.S),!0):t.S===n.S),pt=t=>t&&t["s-ol"]||t,vt=(t,n,e=!1)=>{const o=n.k=t.k,l=t.$,s=n.$,i=n.j,r=n.v;let c;null===r?(ot(t,n,ct="svg"===i||"foreignObject"!==i&&ct),null!==l&&null!==s?((t,n,e,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=n.length-1,d=n[0],h=n[a],p=o.length-1,v=o[0],m=o[p];for(;r<=a&&c<=p;)if(null==d)d=n[++r];else if(null==h)h=n[--a];else if(null==v)v=o[++c];else if(null==m)m=o[--p];else if(ht(d,v,l))vt(d,v,l),d=n[++r],v=o[++c];else if(ht(h,m,l))vt(h,m,l),h=n[--a],m=o[--p];else if(ht(d,m,l))"slot"!==d.j&&"slot"!==m.j||ft(d.k.parentNode,!1),vt(d,m,l),wt(t,d.k,h.k.nextSibling),d=n[++r],m=o[--p];else if(ht(h,v,l))"slot"!==d.j&&"slot"!==m.j||ft(h.k.parentNode,!1),vt(h,v,l),wt(t,h.k,d.k),h=n[--a],v=o[++c];else{for(u=-1,f=r;f<=a;++f)if(n[f]&&null!==n[f].S&&n[f].S===v.S){u=f;break}u>=0?(i=n[u],i.j!==v.j?s=ut(n&&n[c],e,u):(vt(i,v,l),n[u]=void 0,s=i.k),v=o[++c]):(s=ut(n&&n[c],e,c),v=o[++c]),s&&wt(pt(d.k).parentNode,s,pt(d.k))}r>a?at(t,null==o[p+1]?null:o[p+1].k,e,o,c,p):c>p&&dt(n,r,a)})(o,l,n,s,e):null!==s?(null!==t.v&&(o.textContent=""),at(o,null,n,s,0,s.length-1)):!e&&null!==l&&dt(l,0,l.length-1),ct&&"svg"===i&&(ct=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.v!==r&&(o.data=r)},mt=[],bt=t=>{let n,e,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const l=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"])if(L(n,l)){let e=mt.find((t=>t.C===n));it=!0,n["s-sn"]=n["s-sn"]||l,e?(e.C["s-sh"]=t["s-hn"],e.M=t):(n["s-sh"]=t["s-hn"],mt.push({M:t,C:n})),n["s-sr"]&&mt.map((t=>{L(t.C,n["s-sn"])&&(e=mt.find((t=>t.C===n)),e&&!t.M&&(t.M=e.M))}))}else mt.some((t=>t.C===n))||mt.push({C:n})}1===t.nodeType&&bt(t)}},yt=t=>{t.m&&t.m.ref&&t.m.ref(null),t.$&&t.$.map(yt)},wt=(t,n,e)=>null==t?void 0:t.insertBefore(n,e),$t=(t,n)=>{if(n&&!t.N&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.N=()=>{n["s-p"].splice(e-1,1),o()})))}},gt=(t,n)=>{if(t.u|=16,4&t.u)return void(t.u|=512);$t(t,t.R);const e=()=>St(t,n);if(!n)return O(e);queueMicrotask((()=>{e()}))},St=(t,n)=>{const e=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return n?(t.u|=256,t.T&&(t.T.map((([t,n])=>Tt(o,t,n,e))),t.T=void 0),t.F.length&&t.F.forEach((t=>t(e))),l=Tt(o,"componentWillLoad",void 0,e)):l=Tt(o,"componentWillUpdate",void 0,e),l=Ot(l,(()=>Tt(o,"componentWillRender",void 0,e))),Ot(l,(()=>kt(t,o,n)))},Ot=(t,n)=>jt(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),jt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,kt=async(t,n,e)=>{var o;const l=t.$hostElement$,s=l["s-rc"];e&&(t=>{const n=t.o;((t,n)=>{var e;const o=A(n),l=c.get(o);if(!a.document)return o;if(t=11===t.nodeType?t:a.document,l)if("string"==typeof l){let s,i=D.get(t=t.head||t);if(i||D.set(t,i=new Set),!i.has(o)){{s=a.document.createElement("style"),s.innerHTML=l;const o=null!=(e=d.L)?e:k(a.document);if(null!=o&&s.setAttribute("nonce",o),!(1&n.u))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==e?void 0:e.parentNode)===t?e:null)}else if("host"in t)if(p){const n=new CSSStyleSheet;n.replaceSync(l),v?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.innerHTML=l+n.innerHTML:t.prepend(s)}else t.append(s);1&n.u&&t.insertBefore(s,null)}4&n.u&&(s.innerHTML+=u),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(v?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l])})(t.$hostElement$.getRootNode(),n)})(t);Ct(t,n,l,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>Mt(t);0===n.length?e():(Promise.all(n).then(e),t.u|=4,n.length=0)}},Et=null,Ct=(t,n,e,o)=>{try{Et=n,n=n.render(),t.u&=-17,t.u|=2,((t,n,e=!1)=>{var o,l,s,i;const r=t.$hostElement$,c=t.P||W(null,null),u=(t=>t&&t.j===z)(n)?n:U(null,null,n);if(I=r.tagName,e&&u.m)for(const t of Object.keys(u.m))r.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(u.m[t]=r[t]);if(u.j=null,u.u|=4,t.P=u,u.k=c.k=r,st=!1,q=r["s-cr"],it=!1,vt(c,u,e),d.u|=1,rt){bt(u.k);for(const t of mt){const n=t.C;if(!n["s-ol"]&&a.document){const t=a.document.createTextNode("");t["s-nr"]=n,wt(n.parentNode,n["s-ol"]=t,n)}}for(const t of mt){const n=t.C,r=t.M;if(r){const t=r.parentNode;let e=r.nextSibling;{let s=null==(o=n["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===n["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===n||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){e=o;break}}s=s.previousSibling}}(!e&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==e)&&n!==e&&(!n["s-hn"]&&n["s-ol"]&&(n["s-hn"]=n["s-ol"].parentNode.nodeName),wt(t,n,e),1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(s=n["s-ih"])&&s)),n&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===n.nodeType&&(e&&(n["s-ih"]=null!=(i=n.hidden)&&i),n.hidden=!0)}}it&&R(u.k),d.u&=-2,mt.length=0,q=void 0})(t,n,o)}catch(n){i(n,t.$hostElement$)}return Et=null,null},xt=()=>Et,Mt=t=>{const n=t.$hostElement$,e=t.i,o=t.R;Tt(e,"componentDidRender",void 0,n),64&t.u?Tt(e,"componentDidUpdate",void 0,n):(t.u|=64,Ft(n),Tt(e,"componentDidLoad",void 0,n),t._(n),o||Rt()),t.N&&(t.N(),t.N=void 0),512&t.u&&S((()=>gt(t,!1))),t.u&=-517},Nt=t=>{var n;{const e=o(t),l=null==(n=null==e?void 0:e.$hostElement$)?void 0:n.isConnected;return l&&2==(18&e.u)&>(e,!1),l}},Rt=()=>{S((()=>Q(a,"appload",{detail:{namespace:"zignal-stencil-library"}})))},Tt=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){i(t,o)}},Ft=t=>t.classList.add("hydrated"),Lt=(t,n,e,l)=>{const s=o(t);if(!s)return;if(!s)throw Error(`Couldn't find host element for "${l.p}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=s.$hostElement$,c=s.l.get(n),u=s.u,f=s.i;if(e=G(e,l.t[n][0]),(!(8&u)||void 0===c)&&e!==c&&(!Number.isNaN(c)||!Number.isNaN(e))&&(s.l.set(n,e),f)){if(l.D&&128&u){const t=l.D[n];t&&t.map((t=>{try{f[t](e,c,n)}catch(t){i(t,r)}}))}if(2==(18&u)){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(e,c,n))return;gt(s,!1)}}},Pt=(t,n,e)=>{var l,s;const i=t.prototype;{t.watchers&&!n.D&&(n.D=t.watchers),t.deserializers&&!n.A&&(n.A=t.deserializers),t.serializers&&!n.U&&(n.U=t.serializers);const r=Object.entries(null!=(l=n.t)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&e&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(n.t[t][0]|=2048),r&&(n.t[t][0]|=4096),(1&e||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&n.t[t][0]))return((t,n)=>o(this).l.get(n))(0,t);const e=o(this),l=e?e.i:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=o(this);if(i){if(r)return void 0===(32&l?this[t]:i.$hostElement$[t])&&i.l.get(t)&&(s=i.l.get(t)),r.call(this,G(s,l)),void Lt(this,t,s=32&l?this[t]:i.$hostElement$[t],n);{if(!(1&e&&4096&n.t[t][0]))return Lt(this,t,s,n),void(1&e&&!i.i&&i.F.push((()=>{4096&n.t[t][0]&&i.i[t]!==i.l.get(t)&&(i.i[t]=s)})));const o=()=>{const e=i.i[t];!i.l.get(t)&&e&&i.l.set(t,e),i.i[t]=G(s,l),Lt(this,t,i.i[t],n)};i.i?o():i.F.push((()=>{o()}))}}}})}})),1&e){const e=new Map;i.attributeChangedCallback=function(t,l,s){d.jmp((()=>{var c;const u=e.get(t),f=o(this);if(this.hasOwnProperty(u)&&(s=this[u],delete this[u]),n.A&&n.A[u]){const t=(t,n)=>{const e=null==n?void 0:n[t](s,u);e!==this[u]&&(this[u]=e)};for(const e of n.A[u])f.i?t(e,f.i):f.F.push((()=>{t(e,f.i)}));return}if(i.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==s)return;if(null==u){const e=null==f?void 0:f.u;if(f&&e&&!(8&e)&&128&e&&s!==l){const e=f.i,o=null==(c=n.D)?void 0:c[t];null==o||o.forEach((n=>{null!=e[n]&&e[n].call(e,s,l,t)}))}return}const a=r.find((([t])=>t===u));a&&4&a[1][0]&&(s=null!==s&&"false"!==s);const d=Object.getOwnPropertyDescriptor(i,u);s==this[u]||d.get&&!d.set||(this[u]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.D)?s:{}),...r.filter((([t,n])=>31&n[0])).map((([t,n])=>{const o=n[1]||t;return e.set(o,t),o}))]))}}return t},_t=(t,n)=>{Tt(t,"connectedCallback",void 0,n)},Dt=(t,n)=>{Tt(t,"disconnectedCallback",void 0,n||t)},At=(t,n={})=>{var e;if(!a.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const l=[],s=n.exclude||[],f=a.customElements,h=a.document.head,v=h.querySelector("meta[charset]"),m=a.document.createElement("style"),b=[];let y,w=!0;Object.assign(d,n),d.h=new URL(n.resourcesUrl||"./",a.document.baseURI).href;let $=!1;if(t.map((t=>{t[1].map((n=>{var e,u,h;const v={u:n[0],p:n[1],t:n[2],W:n[3]};4&v.u&&($=!0),v.t=n[2],v.W=n[3],v.D=null!=(e=n[4])?e:{},v.U=null!=(u=n[5])?u:{},v.A=null!=(h=n[6])?h:{};const m=v.p,g=class extends HTMLElement{constructor(t){super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const e={u:0,$hostElement$:t,o:n,l:new Map,H:new Map};e.B=new Promise((t=>e._=t)),t["s-p"]=[],t["s-rc"]=[],e.F=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,v)}connectedCallback(){const t=o(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Wt(this,t,v.W)),y&&(clearTimeout(y),y=null),w?b.push(this):d.jmp((()=>(t=>{if(!(1&d.u)){const n=o(t);if(!n)return;const e=n.o,l=()=>{};if(1&n.u)Wt(t,n,e.W),(null==n?void 0:n.i)?_t(n.i,t):(null==n?void 0:n.B)&&n.B.then((()=>_t(n.i,t)));else{n.u|=1,12&e.u&&(t=>{if(!a.document)return;const n=t["s-cr"]=a.document.createComment("");n["s-cn"]=!0,wt(t,n,t.firstChild)})(t);{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){$t(n,n.R=e);break}}e.t&&Object.entries(e.t).map((([n,[e]])=>{if(31&e&&n in t&&t[n]!==Object.prototype[n]){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let o;if(!(32&n.u)){if(n.u|=32,e.V){const l=((t,n)=>{const e=t.p.replace(/-/g,"_"),o=t.V;if(!o)return;const l=r.get(o);return l?l[e]:import(`./${o}.entry.js`).then((t=>(r.set(o,t),t[e])),(t=>{i(t,n.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(e,n);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${e.p}#${n.Y}" was not found`);o.isProxied||(e.D=o.watchers,e.U=o.serializers,e.A=o.deserializers,Pt(o,e,2),o.isProxied=!0);const s=()=>{};n.u|=8;try{new o(n)}catch(n){i(n,t)}n.u&=-9,n.u|=128,s(),_t(n.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>n.u|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const n=A(e);if(!c.has(n)){const o=()=>{};((t,n,e)=>{let o=c.get(t);p&&e?(o=o||new CSSStyleSheet,"string"==typeof o?o=n:o.replaceSync(n)):o=n,c.set(t,o)})(n,t,!!(1&e.u)),o()}}}const l=n.R,s=()=>gt(n,!0);l&&l["s-rc"]?l["s-rc"].push(s):s()})(t,n,e)}l()}})(this))))}disconnectedCallback(){d.jmp((()=>(async t=>{if(!(1&d.u)){const n=o(t);(null==n?void 0:n.q)&&(n.q.map((t=>t())),n.q=void 0),(null==n?void 0:n.i)?Dt(n.i,t):(null==n?void 0:n.B)&&n.B.then((()=>Dt(n.i,t)))}D.has(t)&&D.delete(t),t.shadowRoot&&D.has(t.shadowRoot)&&D.delete(t.shadowRoot)})(this))),d.raf((()=>{var t;const n=o(this);if(!n)return;const e=b.findIndex((t=>t===this));e>-1&&b.splice(e,1),(null==(t=null==n?void 0:n.P)?void 0:t.k)instanceof Node&&!n.P.k.isConnected&&delete n.P.k}))}componentOnReady(){var t;return null==(t=o(this))?void 0:t.B}};v.V=t[0],s.includes(m)||f.get(m)||(l.push(m),f.define(m,Pt(g,v,1)))}))})),l.length>0&&($&&(m.textContent+=u),m.textContent+=l.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",m.innerHTML.length)){m.setAttribute("data-styles","");const t=null!=(e=d.L)?e:k(a.document);null!=t&&m.setAttribute("nonce",t),h.insertBefore(m,v?v.nextSibling:h.firstChild)}w=!1,b.length?b.map((t=>t.connectedCallback())):d.jmp((()=>y=setTimeout(Rt,30)))},Ut=(t,n)=>n,Wt=(t,n,e)=>{e&&a.document&&e.map((([e,o,l])=>{const s=Ht(a.document,t,e),i=zt(n,l),r=Bt(e);d.ael(s,o,i,r),(n.q=n.q||[]).push((()=>d.rel(s,o,i,r)))}))},zt=(t,n)=>e=>{var o;try{256&t.u?null==(o=t.i)||o[n](e):(t.T=t.T||[]).push([n,e])}catch(n){i(n,t.$hostElement$)}},Ht=(t,n,e)=>4&e?t:16&e?t.body:n,Bt=t=>({passive:!!(1&t),capture:!!(2&t)}),Vt=t=>d.L=t;export{t as E,Ut as F,z as H,K as a,At as b,J as c,Nt as f,xt as g,U as h,h as p,l as r,Vt as s}
|