@tempots/beatui 0.61.2 → 0.61.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/{ar-CZ-UB9pc.cjs → ar-CefikVG3.cjs} +1 -1
  2. package/dist/{ar-TEVFGyor.js → ar-aMLQTGVh.js} +1 -1
  3. package/dist/auth/index.cjs.js +1 -1
  4. package/dist/auth/index.es.js +4 -4
  5. package/dist/{de-DAzM31i4.js → de-DBFOC44R.js} +1 -1
  6. package/dist/{de-IZSle3Nd.cjs → de-ZRnkggf5.cjs} +1 -1
  7. package/dist/{es-C7Gx9dqG.js → es-C4xOThaT.js} +1 -1
  8. package/dist/{es-DYe8rpsj.cjs → es-IkNtVSp2.cjs} +1 -1
  9. package/dist/{fa-CEbnfFly.cjs → fa-B-byOhgU.cjs} +1 -1
  10. package/dist/{fa-DKX_zJDi.js → fa-B7X_xydY.js} +1 -1
  11. package/dist/{fr-BRfNV0Yj.js → fr-AmjzbxN_.js} +1 -1
  12. package/dist/{fr-CrG0l5HN.cjs → fr-F0ZegdR2.cjs} +1 -1
  13. package/dist/{he-D6hsIiTH.cjs → he-BcEFNuYz.cjs} +1 -1
  14. package/dist/{he-DRAV97MO.js → he-DY-9yiOC.js} +1 -1
  15. package/dist/{hi-DyS6BNlk.cjs → hi-CarXvOJD.cjs} +1 -1
  16. package/dist/{hi-BaZyjzct.js → hi-Clkyp5Fu.js} +1 -1
  17. package/dist/{index-nqoZcPdT.js → index-CGoK9M1f.js} +3 -3
  18. package/dist/{index-Bu4A7nbp.js → index-D4U7cDIP.js} +1 -1
  19. package/dist/{index-BJxozmss.cjs → index-DJ6AuTd_.cjs} +2 -2
  20. package/dist/{index-Ch-e3nx4.cjs → index-J7CsYy0-.cjs} +1 -1
  21. package/dist/index.cjs.js +2 -2
  22. package/dist/index.es.js +10 -10
  23. package/dist/{it-TCCyUGRc.js → it-BC32WmGF.js} +1 -1
  24. package/dist/{it-5c_IK4cL.cjs → it-ops3Czzi.cjs} +1 -1
  25. package/dist/{ja-VrfuPGN3.cjs → ja-2dzONSkh.cjs} +1 -1
  26. package/dist/{ja-Bpc6MfYs.js → ja-JNSZS_Hv.js} +1 -1
  27. package/dist/json-schema/index.cjs.js +1 -1
  28. package/dist/json-schema/index.es.js +3 -3
  29. package/dist/{ko-BBN3tai6.js → ko-B8l0TJp0.js} +1 -1
  30. package/dist/{ko-BKSVpY_x.cjs → ko-uVJEhtyQ.cjs} +1 -1
  31. package/dist/{modal-DA0OKusk.cjs → modal-BdeAM_B7.cjs} +1 -1
  32. package/dist/{modal-DJDeFIxV.js → modal-DX4x-JE5.js} +2 -2
  33. package/dist/{nl-CwXW1x3G.js → nl-BpYESHP8.js} +1 -1
  34. package/dist/{nl-Bry6kgvp.cjs → nl-DXnbYulJ.cjs} +1 -1
  35. package/dist/{notice-Cpso9PgQ.js → notice-BCio7XSW.js} +1 -1
  36. package/dist/{notice-BIcHmVnn.cjs → notice-CkABNiTZ.cjs} +1 -1
  37. package/dist/{pl-CI2JMYK3.cjs → pl-RbiIBA3C.cjs} +1 -1
  38. package/dist/{pl-utONv5st.js → pl-_sWhGdrs.js} +1 -1
  39. package/dist/prosemirror/index.cjs.js +1 -1
  40. package/dist/prosemirror/index.es.js +1 -1
  41. package/dist/{pt-pg3nMUQB.cjs → pt-BAecyAv-.cjs} +1 -1
  42. package/dist/{pt-BKZlur2O.js → pt-BmiQvHUz.js} +1 -1
  43. package/dist/{ru-DcagJ4uT.cjs → ru-DZ4gJ6yr.cjs} +1 -1
  44. package/dist/{ru-B6HTgTqQ.js → ru-DacnqexG.js} +1 -1
  45. package/dist/{toolbar-_yJ-dm-Z.js → toolbar-Bk5-22ln.js} +1 -1
  46. package/dist/{toolbar-CC22Z53U.cjs → toolbar-wEm8iNet.cjs} +1 -1
  47. package/dist/{tr-BabBuwqd.cjs → tr-7jGF_acJ.cjs} +1 -1
  48. package/dist/{tr-DhELxnEm.js → tr-BSS5b_v6.js} +1 -1
  49. package/dist/{translations-g3qGTkzw.js → translations-BUTBIDsS.js} +36 -36
  50. package/dist/{translations-BRRDPpLp.cjs → translations-C7HVMcOQ.cjs} +1 -1
  51. package/dist/translations-hMQlZmD4.cjs +1 -0
  52. package/dist/{translations-ConAsIH1.js → translations-zGwuSQWQ.js} +1 -1
  53. package/dist/{ur-CT09S1x5.js → ur-C6Ky6OCl.js} +1 -1
  54. package/dist/{ur-BVE5ZRyR.cjs → ur-ZT6fZFId.cjs} +1 -1
  55. package/dist/{utils-B25pniId.cjs → utils-BjJCDm_6.cjs} +1 -1
  56. package/dist/{utils-BRzdi3Gx.js → utils-jsPYqpvC.js} +2 -2
  57. package/dist/{vi-BsZzI9Fa.js → vi-Bx2gx2S0.js} +1 -1
  58. package/dist/{vi-DvU7fKay.cjs → vi-tNs62pgs.cjs} +1 -1
  59. package/dist/{zh-CijYgDFA.cjs → zh-CBnP8_Lf.cjs} +1 -1
  60. package/dist/{zh-BeCkrv4q.js → zh-eixtg-Ce.js} +1 -1
  61. package/package.json +1 -1
  62. package/dist/translations-DM5R5VZ0.cjs +0 -1
package/dist/index.es.js CHANGED
@@ -1,22 +1,22 @@
1
1
  import { prop as Z, html as d, attr as o, computedOf as I, Fragment as R, OnDispose as oe, style as S, on as A, WithElement as ne, When as Q, Value as v, Use as ae, Empty as W, input as pe, emitValue as te, aria as M, OneOfValue as bn, Unless as gn, coalesce as Le, ForEach as Pe, Ensure as Ue, OneOfType as Mt, dataAttr as st, NotEmpty as mn, emitValueAsDate as hn, Portal as lt, makeProviderMark as Ot, WithBrowserCtx as vn, renderWithContext as yn, WithProvider as wn, Task as xn, Provide as Nt, MapSignal as Rt, svg as mt, svgAttr as ht, delaySignal as kn } from "@tempots/dom";
2
2
  import { Use as Lo } from "@tempots/dom";
3
3
  import { PopOver as Sn, ElementRect as Be, WindowSize as Cn, Query as Ut, Location as Ne, NavigationService as Tn, Anchor as it } from "@tempots/ui";
4
- import { i as se, t as Se, h as vt, e as ue, a as ie, I as ee, b as ce, C as fe, B as yt, c as Ye, L as ct, j as wt, k as xt } from "./translations-g3qGTkzw.js";
5
- import { x as Do, T as Ao, l as Vo, d as Bo, f as Eo, g as Mo, u as Oo, q as No, o as Ro, w as Uo, y as Fo, n as jo, v as Ho, m as Wo, p as zo, r as Yo, s as Go } from "./translations-g3qGTkzw.js";
4
+ import { i as se, t as Se, h as vt, e as ue, a as ie, I as ee, b as ce, C as fe, B as yt, c as Ye, L as ct, j as wt, k as xt } from "./translations-BUTBIDsS.js";
5
+ import { x as Do, T as Ao, l as Vo, d as Bo, f as Eo, g as Mo, u as Oo, q as No, o as Ro, w as Uo, y as Fo, n as jo, v as Ho, m as Wo, p as zo, r as Yo, s as Go } from "./translations-BUTBIDsS.js";
6
6
  import { g as ut } from "./colors-pQZlNrwM.js";
7
7
  import { b as qo, e as Jo, i as Ko, a as Qo, c as Xo, o as es, l as ts, m as ns, k as as, j as rs, n as os, r as ss, s as ls, d as is, h as cs, t as us } from "./colors-pQZlNrwM.js";
8
8
  import { b as In } from "./index-CpZh_Snx.js";
9
9
  import { t as ps, am as fs, h as bs, J as gs, c as ms, N as hs, I as vs, K as ys, e as ws, l as xs, d as ks, a as Ss, ab as Cs, o as Ts, a0 as Is, ae as $s, q as _s, H as Ls, A as Ps, al as Ds, g as As, E as Vs, x as Bs, aj as Es, $ as Ms, a4 as Os, k as Ns, j as Rs, i as Us, Y as Fs, X as js, Q as Hs, P as Ws, S as zs, R as Ys, W as Gs, V as Zs, U as qs, T as Js, a8 as Ks, a7 as Qs, aa as Xs, a9 as el, n as tl, m as nl, _ as al, Z as rl, ad as ol, p as sl, G as ll, z as il, ak as cl, D as ul, C as dl, w as pl, v as fl, ai as bl, ah as gl, f as ml, a3 as hl, a2 as vl, M as yl, L as wl, a5 as xl, a6 as kl, r as Sl, O as Cl, ac as Tl, s as Il, F as $l, y as _l, ag as Ll, B as Pl, u as Dl, af as Al, a1 as Vl } from "./index-CpZh_Snx.js";
10
- import { C as Fe, s as he, m as Ft, d as jt, I as dt, B as Ht, c as Wt, S as pt, e as $n } from "./notice-Cpso9PgQ.js";
11
- import { A as El, g as Ml, b as Ol, D as Nl, E as Rl, v as Ul, L as Fl, M as jl, x as Hl, N as Wl, i as zl, P as Yl, R as Gl, n as Zl, q as ql, o as Jl, k as Kl, j as Ql, f as Xl, p as ei, h as ti, r as ni, t as ai, l as ri, u as oi, w as si } from "./notice-Cpso9PgQ.js";
12
- import { u as Re, A as ot, a as _n, O as zt, F as Ln } from "./modal-DJDeFIxV.js";
13
- import { B as ii, C as ci, M as ui, c as di, S as pi, b as fi, d as bi, o as gi, s as mi, f as hi, e as vi, g as yi } from "./modal-DJDeFIxV.js";
10
+ import { C as Fe, s as he, m as Ft, d as jt, I as dt, B as Ht, c as Wt, S as pt, e as $n } from "./notice-BCio7XSW.js";
11
+ import { A as El, g as Ml, b as Ol, D as Nl, E as Rl, v as Ul, L as Fl, M as jl, x as Hl, N as Wl, i as zl, P as Yl, R as Gl, n as Zl, q as ql, o as Jl, k as Kl, j as Ql, f as Xl, p as ei, h as ti, r as ni, t as ai, l as ri, u as oi, w as si } from "./notice-BCio7XSW.js";
12
+ import { u as Re, A as ot, a as _n, O as zt, F as Ln } from "./modal-DX4x-JE5.js";
13
+ import { B as ii, C as ci, M as ui, c as di, S as pi, b as fi, d as bi, o as gi, s as mi, f as hi, e as vi, g as yi } from "./modal-DX4x-JE5.js";
14
14
  import { T as Yt, a as Pn } from "./theme-B5pmbvQ_.js";
15
- import { S as Dn, G as Gt, E as An, F as Vn, N as Zt, a as Ee, M as Me, e as kt, n as Bn, W as ve, d as En, i as Mn, b as St, c as Ve } from "./utils-BRzdi3Gx.js";
16
- import { j as xi, l as ki, B as Si, p as Ci, V as Ti, C as Ii, m as $i, L as _i, o as Li, q as Pi, r as Di, s as Ai, O as Vi, u as Bi, z as Ei, v as Mi, I as Oi, K as Ni, w as Ri, x as Ui, H as Fi, Q as ji, y as Hi, R as Wi, J as zi, A as Yi, T as Gi, D as Zi, f as qi, U as Ji, P as Ki, X as Qi, Y as Xi, ag as ec, k as tc, ae as nc, a2 as ac, a1 as rc, a6 as oc, a7 as sc, $ as lc, Z as ic, _ as cc, ab as uc, a5 as dc, ac as pc, a3 as fc, af as bc, a0 as gc, a8 as mc, a9 as hc, ad as vc, aa as yc, a4 as wc, g as xc, t as kc, h as Sc } from "./utils-BRzdi3Gx.js";
15
+ import { S as Dn, G as Gt, E as An, F as Vn, N as Zt, a as Ee, M as Me, e as kt, n as Bn, W as ve, d as En, i as Mn, b as St, c as Ve } from "./utils-jsPYqpvC.js";
16
+ import { j as xi, l as ki, B as Si, p as Ci, V as Ti, C as Ii, m as $i, L as _i, o as Li, q as Pi, r as Di, s as Ai, O as Vi, u as Bi, z as Ei, v as Mi, I as Oi, K as Ni, w as Ri, x as Ui, H as Fi, Q as ji, y as Hi, R as Wi, J as zi, A as Yi, T as Gi, D as Zi, f as qi, U as Ji, P as Ki, X as Qi, Y as Xi, ag as ec, k as tc, ae as nc, a2 as ac, a1 as rc, a6 as oc, a7 as sc, $ as lc, Z as ic, _ as cc, ab as uc, a5 as dc, ac as pc, a3 as fc, af as bc, a0 as gc, a8 as mc, a9 as hc, ad as vc, aa as yc, a4 as wc, g as xc, t as kc, h as Sc } from "./utils-jsPYqpvC.js";
17
17
  import { g as Ge, x as Ct } from "./timer-DzWb416P.js";
18
18
  import { L as Tc } from "./link-portal-Cr2l9f3k.js";
19
- import { T as $c, a as _c, c as Lc, b as Pc, d as Dc } from "./toolbar-_yJ-dm-Z.js";
19
+ import { T as $c, a as _c, c as Lc, b as Pc, d as Dc } from "./toolbar-Bk5-22ln.js";
20
20
  function cr(e, t = 0, n = () => !0) {
21
21
  let a = null, r;
22
22
  const s = Z(e.value);
@@ -3503,7 +3503,7 @@ function io({
3503
3503
  ...i
3504
3504
  );
3505
3505
  return e ? xn(
3506
- () => import("./translations-ConAsIH1.js"),
3506
+ () => import("./translations-zGwuSQWQ.js"),
3507
3507
  ({ AuthI18n: f }) => Nt(f, {}, () => l)
3508
3508
  ) : l;
3509
3509
  });
@@ -1,4 +1,4 @@
1
- import { f as t } from "./translations-g3qGTkzw.js";
1
+ import { f as t } from "./translations-BUTBIDsS.js";
2
2
  const c = {
3
3
  loadingExtended: "Caricamento, attendere prego...",
4
4
  loadingShort: "Caricamento...",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./translations-DM5R5VZ0.cjs"),r={loadingExtended:"Caricamento, attendere prego...",loadingShort:"Caricamento...",locale:"Lingua",iconDescription:"Icona",loadingIcon:"Icona di caricamento",failedToLoadIcon:"Impossibile caricare l'icona",editLabel:"Modifica",selectOne:"Seleziona uno",selectMany:"Seleziona più elementi",noResults:"Nessun risultato",passwordPlaceholderText:"Password Segreta",togglePasswordVisibility:"Attiva/disattiva visibilità password",toggleMenu:"Attiva/disattiva menu",toggleAside:"Attiva/disattiva pannello laterale",mainNavigation:"Navigazione principale",sidebar:"Barra laterale",closeDrawer:"Chiudi cassetto",closeModal:"Chiudi modale",confirm:"Conferma",cancel:"Annulla",addLabel:"Aggiungi",removeItem:"Rimuovi elemento",currentLocale:"Italiano",ar:"Arabo",de:"Tedesco",en:"Inglese",es:"Spagnolo",fr:"Francese",hi:"Hindi",it:"Italiano",ja:"Giapponese",ko:"Coreano",nl:"Olandese",pl:"Polacco",pt:"Portoghese",ru:"Russo",tr:"Turco",vi:"Vietnamita",zh:"Cinese",he:"Ebraico",fa:"Persiano",ur:"Urdu",emailPlaceholderText:"Inserisci la tua email",incrementValue:"Incrementa valore",decrementValue:"Decrementa valore",dropZoneInstructions:e=>e?"Clicca per scegliere o trascina i file qui, o premi Invio o Spazio per aprire il selettore file":"Trascina i file qui",fileSizeUnits:["Byte","KB","MB","GB","TB"],removeFile:"Rimuovi file",clearAllFiles:"Cancella tutti i file",clearValue:"Cancella valore",unknownType:"Tipo sconosciuto",filesInputInstructions:(e,i,o)=>{let l=e==null||e>1?"Clicca per scegliere o trascina i file qui":"Clicca per scegliere o trascina un file qui";if(e||i){const a=[];if(e!=null&&e>1&&a.push(`fino a ${e} file`),i&&o){const n=t.formatFileSize(i,{units:o});a.push(`max ${n} ciascuno`)}a.length>0&&(l+=` (${a.join(", ")})`)}return l},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Caricamento PDF...",loadFailed:"Impossibile caricare il PDF",invalidPdf:"File PDF non valido",pageOutOfRange:(e,i)=>`La pagina ${e} è fuori intervallo (1-${i})`,renderFailed:"Impossibile renderizzare la pagina PDF"}};exports.default=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./translations-hMQlZmD4.cjs"),r={loadingExtended:"Caricamento, attendere prego...",loadingShort:"Caricamento...",locale:"Lingua",iconDescription:"Icona",loadingIcon:"Icona di caricamento",failedToLoadIcon:"Impossibile caricare l'icona",editLabel:"Modifica",selectOne:"Seleziona uno",selectMany:"Seleziona più elementi",noResults:"Nessun risultato",passwordPlaceholderText:"Password Segreta",togglePasswordVisibility:"Attiva/disattiva visibilità password",toggleMenu:"Attiva/disattiva menu",toggleAside:"Attiva/disattiva pannello laterale",mainNavigation:"Navigazione principale",sidebar:"Barra laterale",closeDrawer:"Chiudi cassetto",closeModal:"Chiudi modale",confirm:"Conferma",cancel:"Annulla",addLabel:"Aggiungi",removeItem:"Rimuovi elemento",currentLocale:"Italiano",ar:"Arabo",de:"Tedesco",en:"Inglese",es:"Spagnolo",fr:"Francese",hi:"Hindi",it:"Italiano",ja:"Giapponese",ko:"Coreano",nl:"Olandese",pl:"Polacco",pt:"Portoghese",ru:"Russo",tr:"Turco",vi:"Vietnamita",zh:"Cinese",he:"Ebraico",fa:"Persiano",ur:"Urdu",emailPlaceholderText:"Inserisci la tua email",incrementValue:"Incrementa valore",decrementValue:"Decrementa valore",dropZoneInstructions:e=>e?"Clicca per scegliere o trascina i file qui, o premi Invio o Spazio per aprire il selettore file":"Trascina i file qui",fileSizeUnits:["Byte","KB","MB","GB","TB"],removeFile:"Rimuovi file",clearAllFiles:"Cancella tutti i file",clearValue:"Cancella valore",unknownType:"Tipo sconosciuto",filesInputInstructions:(e,i,o)=>{let l=e==null||e>1?"Clicca per scegliere o trascina i file qui":"Clicca per scegliere o trascina un file qui";if(e||i){const a=[];if(e!=null&&e>1&&a.push(`fino a ${e} file`),i&&o){const n=t.formatFileSize(i,{units:o});a.push(`max ${n} ciascuno`)}a.length>0&&(l+=` (${a.join(", ")})`)}return l},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Caricamento PDF...",loadFailed:"Impossibile caricare il PDF",invalidPdf:"File PDF non valido",pageOutOfRange:(e,i)=>`La pagina ${e} è fuori intervallo (1-${i})`,renderFailed:"Impossibile renderizzare la pagina PDF"}};exports.default=r;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./translations-DM5R5VZ0.cjs"),r={loadingExtended:"読み込み中です、お待ちください",loadingShort:"読み込み中...",locale:"ロケール",iconDescription:"アイコン",loadingIcon:"読み込みアイコン",failedToLoadIcon:"アイコンの読み込みに失敗しました",editLabel:"編集",selectOne:"一つ選択",selectMany:"複数選択",noResults:"結果なし",passwordPlaceholderText:"パスワード",togglePasswordVisibility:"パスワードの表示を切り替え",toggleMenu:"メニューを切り替え",toggleAside:"サイドパネルを切り替え",mainNavigation:"メインナビゲーション",sidebar:"サイドバー",closeDrawer:"ドロワーを閉じる",closeModal:"モーダルを閉じる",confirm:"確認",cancel:"キャンセル",addLabel:"追加",removeItem:"項目を削除",currentLocale:"日本語",ar:"アラビア語",de:"ドイツ語",en:"英語",es:"スペイン語",fr:"フランス語",hi:"ヒンディー語",it:"イタリア語",ja:"日本語",ko:"韓国語",nl:"オランダ語",pl:"ポーランド語",pt:"ポルトガル語",ru:"ロシア語",tr:"トルコ語",vi:"ベトナム語",zh:"中国語",he:"ヘブライ語",fa:"ペルシア語",ur:"ウルドゥー語",emailPlaceholderText:"メールアドレスを入力",incrementValue:"値を増加",decrementValue:"値を減少",dropZoneInstructions:e=>e?"クリックして選択するか、ファイルをここにドラッグ、またはEnterキーまたはSpaceキーを押してファイル選択を開く":"ファイルをここにドラッグ",fileSizeUnits:["バイト","KB","MB","GB","TB"],removeFile:"ファイルを削除",clearAllFiles:"すべてのファイルを削除",clearValue:"リセット",unknownType:"不明なタイプ",filesInputInstructions:(e,o,t)=>{let n=(e==null||e>1,"クリックして選択するか、ファイルをここにドラッグ");if(e||o){const l=[];if(e!=null&&e>1&&l.push(`最大${e}ファイル`),o&&t){const i=a.formatFileSize(o,{units:t});l.push(`各${i}以下`)}l.length>0&&(n+=` (${l.join("、")})`)}return n},prosemirror:{bold:"太字",italic:"斜体",code:"インラインコード",link:"リンクを挿入",removeLink:"リンクを削除",heading:e=>`見出し ${e}`,bulletList:"箇条書き",orderedList:"番号付きリスト",blockquote:"引用",codeBlock:"コードブロック",horizontalRule:"水平線",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"PDFを読み込み中...",loadFailed:"PDFの読み込みに失敗しました",invalidPdf:"無効なPDFファイル",pageOutOfRange:(e,o)=>`ページ ${e} は範囲外です (1-${o})`,renderFailed:"PDFページのレンダリングに失敗しました"}};exports.default=r;exports.ja=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./translations-hMQlZmD4.cjs"),r={loadingExtended:"読み込み中です、お待ちください",loadingShort:"読み込み中...",locale:"ロケール",iconDescription:"アイコン",loadingIcon:"読み込みアイコン",failedToLoadIcon:"アイコンの読み込みに失敗しました",editLabel:"編集",selectOne:"一つ選択",selectMany:"複数選択",noResults:"結果なし",passwordPlaceholderText:"パスワード",togglePasswordVisibility:"パスワードの表示を切り替え",toggleMenu:"メニューを切り替え",toggleAside:"サイドパネルを切り替え",mainNavigation:"メインナビゲーション",sidebar:"サイドバー",closeDrawer:"ドロワーを閉じる",closeModal:"モーダルを閉じる",confirm:"確認",cancel:"キャンセル",addLabel:"追加",removeItem:"項目を削除",currentLocale:"日本語",ar:"アラビア語",de:"ドイツ語",en:"英語",es:"スペイン語",fr:"フランス語",hi:"ヒンディー語",it:"イタリア語",ja:"日本語",ko:"韓国語",nl:"オランダ語",pl:"ポーランド語",pt:"ポルトガル語",ru:"ロシア語",tr:"トルコ語",vi:"ベトナム語",zh:"中国語",he:"ヘブライ語",fa:"ペルシア語",ur:"ウルドゥー語",emailPlaceholderText:"メールアドレスを入力",incrementValue:"値を増加",decrementValue:"値を減少",dropZoneInstructions:e=>e?"クリックして選択するか、ファイルをここにドラッグ、またはEnterキーまたはSpaceキーを押してファイル選択を開く":"ファイルをここにドラッグ",fileSizeUnits:["バイト","KB","MB","GB","TB"],removeFile:"ファイルを削除",clearAllFiles:"すべてのファイルを削除",clearValue:"リセット",unknownType:"不明なタイプ",filesInputInstructions:(e,o,t)=>{let n=(e==null||e>1,"クリックして選択するか、ファイルをここにドラッグ");if(e||o){const l=[];if(e!=null&&e>1&&l.push(`最大${e}ファイル`),o&&t){const i=a.formatFileSize(o,{units:t});l.push(`各${i}以下`)}l.length>0&&(n+=` (${l.join("、")})`)}return n},prosemirror:{bold:"太字",italic:"斜体",code:"インラインコード",link:"リンクを挿入",removeLink:"リンクを削除",heading:e=>`見出し ${e}`,bulletList:"箇条書き",orderedList:"番号付きリスト",blockquote:"引用",codeBlock:"コードブロック",horizontalRule:"水平線",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"PDFを読み込み中...",loadFailed:"PDFの読み込みに失敗しました",invalidPdf:"無効なPDFファイル",pageOutOfRange:(e,o)=>`ページ ${e} は範囲外です (1-${o})`,renderFailed:"PDFページのレンダリングに失敗しました"}};exports.default=r;exports.ja=r;
@@ -1,4 +1,4 @@
1
- import { f as i } from "./translations-g3qGTkzw.js";
1
+ import { f as i } from "./translations-BUTBIDsS.js";
2
2
  const d = {
3
3
  loadingExtended: "読み込み中です、お待ちください",
4
4
  loadingShort: "読み込み中...",
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Yt=require("../_commonjsHelpers-DwGv2jUC.cjs"),D=require("../notice-BIcHmVnn.cjs"),J=require("../utils-B25pniId.cjs"),E=require("@tempots/dom"),ke=require("../translations-DM5R5VZ0.cjs"),Os=require("../colors-B9fcMxa_.cjs");var Be={exports:{}},lr={},be={},Ee={},dr={},fr={},mr={},Jr;function Bt(){return Jr||(Jr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(o){if(super(),!e.IDENTIFIER.test(o))throw new Error("CodeGen: name must be a valid identifier");this.str=o}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(o){super(),this._items=typeof o=="string"?[o]:o}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const o=this._items[0];return o===""||o==='""'}get str(){var o;return(o=this._str)!==null&&o!==void 0?o:this._str=this._items.reduce((d,v)=>`${d}${v}`,"")}get names(){var o;return(o=this._names)!==null&&o!==void 0?o:this._names=this._items.reduce((d,v)=>(v instanceof r&&(d[v.str]=(d[v.str]||0)+1),d),{})}}e._Code=n,e.nil=new n("");function s(m,...o){const d=[m[0]];let v=0;for(;v<o.length;)c(d,o[v]),d.push(m[++v]);return new n(d)}e._=s;const a=new n("+");function i(m,...o){const d=[b(m[0])];let v=0;for(;v<o.length;)d.push(a),c(d,o[v]),d.push(a,b(m[++v]));return f(d),new n(d)}e.str=i;function c(m,o){o instanceof n?m.push(...o._items):o instanceof r?m.push(o):m.push(y(o))}e.addCodeArg=c;function f(m){let o=1;for(;o<m.length-1;){if(m[o]===a){const d=p(m[o-1],m[o+1]);if(d!==void 0){m.splice(o-1,3,d);continue}m[o++]="+"}o++}}function p(m,o){if(o==='""')return m;if(m==='""')return o;if(typeof m=="string")return o instanceof r||m[m.length-1]!=='"'?void 0:typeof o!="string"?`${m.slice(0,-1)}${o}"`:o[0]==='"'?m.slice(0,-1)+o.slice(1):void 0;if(typeof o=="string"&&o[0]==='"'&&!(m instanceof r))return`"${m}${o.slice(1)}`}function l(m,o){return o.emptyStr()?m:m.emptyStr()?o:i`${m}${o}`}e.strConcat=l;function y(m){return typeof m=="number"||typeof m=="boolean"||m===null?m:b(Array.isArray(m)?m.join(","):m)}function $(m){return new n(b(m))}e.stringify=$;function b(m){return JSON.stringify(m).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=b;function S(m){return typeof m=="string"&&e.IDENTIFIER.test(m)?new n(`.${m}`):s`[${m}]`}e.getProperty=S;function g(m){if(typeof m=="string"&&e.IDENTIFIER.test(m))return new n(`${m}`);throw new Error(`CodeGen: invalid export name: ${m}, use explicit $id name mapping`)}e.getEsmExportName=g;function u(m){return new n(m.toString())}e.regexpCode=u}(mr)),mr}var pr={},Wr;function Br(){return Wr||(Wr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Bt();class r extends Error{constructor(p){super(`CodeGen: "code" for ${p} not defined`),this.value=p.value}}var n;(function(f){f[f.Started=0]="Started",f[f.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class s{constructor({prefixes:p,parent:l}={}){this._names={},this._prefixes=p,this._parent=l}toName(p){return p instanceof t.Name?p:this.name(p)}name(p){return new t.Name(this._newName(p))}_newName(p){const l=this._names[p]||this._nameGroup(p);return`${p}${l.index++}`}_nameGroup(p){var l,y;if(!((y=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||y===void 0)&&y.has(p)||this._prefixes&&!this._prefixes.has(p))throw new Error(`CodeGen: prefix "${p}" is not allowed in this scope`);return this._names[p]={prefix:p,index:0}}}e.Scope=s;class a extends t.Name{constructor(p,l){super(l),this.prefix=p}setValue(p,{property:l,itemIndex:y}){this.value=p,this.scopePath=(0,t._)`.${new t.Name(l)}[${y}]`}}e.ValueScopeName=a;const i=(0,t._)`\n`;class c extends s{constructor(p){super(p),this._values={},this._scope=p.scope,this.opts={...p,_n:p.lines?i:t.nil}}get(){return this._scope}name(p){return new a(p,this._newName(p))}value(p,l){var y;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const $=this.toName(p),{prefix:b}=$,S=(y=l.key)!==null&&y!==void 0?y:l.ref;let g=this._values[b];if(g){const o=g.get(S);if(o)return o}else g=this._values[b]=new Map;g.set(S,$);const u=this._scope[b]||(this._scope[b]=[]),m=u.length;return u[m]=l.ref,$.setValue(l,{property:b,itemIndex:m}),$}getValue(p,l){const y=this._values[p];if(y)return y.get(l)}scopeRefs(p,l=this._values){return this._reduceValues(l,y=>{if(y.scopePath===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return(0,t._)`${p}${y.scopePath}`})}scopeCode(p=this._values,l,y){return this._reduceValues(p,$=>{if($.value===void 0)throw new Error(`CodeGen: name "${$}" has no value`);return $.value.code},l,y)}_reduceValues(p,l,y={},$){let b=t.nil;for(const S in p){const g=p[S];if(!g)continue;const u=y[S]=y[S]||new Map;g.forEach(m=>{if(u.has(m))return;u.set(m,n.Started);let o=l(m);if(o){const d=this.opts.es5?e.varKinds.var:e.varKinds.const;b=(0,t._)`${b}${d} ${m} = ${o};${this.opts._n}`}else if(o=$?.(m))b=(0,t._)`${b}${o}${this.opts._n}`;else throw new r(m);u.set(m,n.Completed)})}return b}}e.ValueScope=c}(pr)),pr}var Hr;function x(){return Hr||(Hr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Bt(),r=Br();var n=Bt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var s=Br();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(h,j){return this}}class i extends a{constructor(h,j,N){super(),this.varKind=h,this.name=j,this.rhs=N}render({es5:h,_n:j}){const N=h?r.varKinds.var:this.varKind,K=this.rhs===void 0?"":` = ${this.rhs}`;return`${N} ${this.name}${K};`+j}optimizeNames(h,j){if(h[this.name.str])return this.rhs&&(this.rhs=B(this.rhs,h,j)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends a{constructor(h,j,N){super(),this.lhs=h,this.rhs=j,this.sideEffects=N}render({_n:h}){return`${this.lhs} = ${this.rhs};`+h}optimizeNames(h,j){if(!(this.lhs instanceof t.Name&&!h[this.lhs.str]&&!this.sideEffects))return this.rhs=B(this.rhs,h,j),this}get names(){const h=this.lhs instanceof t.Name?{}:{...this.lhs.names};return U(h,this.rhs)}}class f extends c{constructor(h,j,N,K){super(h,N,K),this.op=j}render({_n:h}){return`${this.lhs} ${this.op}= ${this.rhs};`+h}}class p extends a{constructor(h){super(),this.label=h,this.names={}}render({_n:h}){return`${this.label}:`+h}}class l extends a{constructor(h){super(),this.label=h,this.names={}}render({_n:h}){return`break${this.label?` ${this.label}`:""};`+h}}class y extends a{constructor(h){super(),this.error=h}render({_n:h}){return`throw ${this.error};`+h}get names(){return this.error.names}}class $ extends a{constructor(h){super(),this.code=h}render({_n:h}){return`${this.code};`+h}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(h,j){return this.code=B(this.code,h,j),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class b extends a{constructor(h=[]){super(),this.nodes=h}render(h){return this.nodes.reduce((j,N)=>j+N.render(h),"")}optimizeNodes(){const{nodes:h}=this;let j=h.length;for(;j--;){const N=h[j].optimizeNodes();Array.isArray(N)?h.splice(j,1,...N):N?h[j]=N:h.splice(j,1)}return h.length>0?this:void 0}optimizeNames(h,j){const{nodes:N}=this;let K=N.length;for(;K--;){const W=N[K];W.optimizeNames(h,j)||(ee(h,W.names),N.splice(K,1))}return N.length>0?this:void 0}get names(){return this.nodes.reduce((h,j)=>z(h,j.names),{})}}class S extends b{render(h){return"{"+h._n+super.render(h)+"}"+h._n}}class g extends b{}class u extends S{}u.kind="else";class m extends S{constructor(h,j){super(j),this.condition=h}render(h){let j=`if(${this.condition})`+super.render(h);return this.else&&(j+="else "+this.else.render(h)),j}optimizeNodes(){super.optimizeNodes();const h=this.condition;if(h===!0)return this.nodes;let j=this.else;if(j){const N=j.optimizeNodes();j=this.else=Array.isArray(N)?new u(N):N}if(j)return h===!1?j instanceof m?j:j.nodes:this.nodes.length?this:new m(se(h),j instanceof m?[j]:j.nodes);if(!(h===!1||!this.nodes.length))return this}optimizeNames(h,j){var N;if(this.else=(N=this.else)===null||N===void 0?void 0:N.optimizeNames(h,j),!!(super.optimizeNames(h,j)||this.else))return this.condition=B(this.condition,h,j),this}get names(){const h=super.names;return U(h,this.condition),this.else&&z(h,this.else.names),h}}m.kind="if";class o extends S{}o.kind="for";class d extends o{constructor(h){super(),this.iteration=h}render(h){return`for(${this.iteration})`+super.render(h)}optimizeNames(h,j){if(super.optimizeNames(h,j))return this.iteration=B(this.iteration,h,j),this}get names(){return z(super.names,this.iteration.names)}}class v extends o{constructor(h,j,N,K){super(),this.varKind=h,this.name=j,this.from=N,this.to=K}render(h){const j=h.es5?r.varKinds.var:this.varKind,{name:N,from:K,to:W}=this;return`for(${j} ${N}=${K}; ${N}<${W}; ${N}++)`+super.render(h)}get names(){const h=U(super.names,this.from);return U(h,this.to)}}class _ extends o{constructor(h,j,N,K){super(),this.loop=h,this.varKind=j,this.name=N,this.iterable=K}render(h){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(h)}optimizeNames(h,j){if(super.optimizeNames(h,j))return this.iterable=B(this.iterable,h,j),this}get names(){return z(super.names,this.iterable.names)}}class w extends S{constructor(h,j,N){super(),this.name=h,this.args=j,this.async=N}render(h){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(h)}}w.kind="func";class P extends b{render(h){return"return "+super.render(h)}}P.kind="return";class I extends S{render(h){let j="try"+super.render(h);return this.catch&&(j+=this.catch.render(h)),this.finally&&(j+=this.finally.render(h)),j}optimizeNodes(){var h,j;return super.optimizeNodes(),(h=this.catch)===null||h===void 0||h.optimizeNodes(),(j=this.finally)===null||j===void 0||j.optimizeNodes(),this}optimizeNames(h,j){var N,K;return super.optimizeNames(h,j),(N=this.catch)===null||N===void 0||N.optimizeNames(h,j),(K=this.finally)===null||K===void 0||K.optimizeNames(h,j),this}get names(){const h=super.names;return this.catch&&z(h,this.catch.names),this.finally&&z(h,this.finally.names),h}}class M extends S{constructor(h){super(),this.error=h}render(h){return`catch(${this.error})`+super.render(h)}}M.kind="catch";class F extends S{render(h){return"finally"+super.render(h)}}F.kind="finally";class C{constructor(h,j={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...j,_n:j.lines?`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Yt=require("../_commonjsHelpers-DwGv2jUC.cjs"),D=require("../notice-CkABNiTZ.cjs"),J=require("../utils-BjJCDm_6.cjs"),E=require("@tempots/dom"),ke=require("../translations-hMQlZmD4.cjs"),Os=require("../colors-B9fcMxa_.cjs");var Be={exports:{}},lr={},be={},Ee={},dr={},fr={},mr={},Jr;function Bt(){return Jr||(Jr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(o){if(super(),!e.IDENTIFIER.test(o))throw new Error("CodeGen: name must be a valid identifier");this.str=o}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(o){super(),this._items=typeof o=="string"?[o]:o}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const o=this._items[0];return o===""||o==='""'}get str(){var o;return(o=this._str)!==null&&o!==void 0?o:this._str=this._items.reduce((d,v)=>`${d}${v}`,"")}get names(){var o;return(o=this._names)!==null&&o!==void 0?o:this._names=this._items.reduce((d,v)=>(v instanceof r&&(d[v.str]=(d[v.str]||0)+1),d),{})}}e._Code=n,e.nil=new n("");function s(m,...o){const d=[m[0]];let v=0;for(;v<o.length;)c(d,o[v]),d.push(m[++v]);return new n(d)}e._=s;const a=new n("+");function i(m,...o){const d=[b(m[0])];let v=0;for(;v<o.length;)d.push(a),c(d,o[v]),d.push(a,b(m[++v]));return f(d),new n(d)}e.str=i;function c(m,o){o instanceof n?m.push(...o._items):o instanceof r?m.push(o):m.push(y(o))}e.addCodeArg=c;function f(m){let o=1;for(;o<m.length-1;){if(m[o]===a){const d=p(m[o-1],m[o+1]);if(d!==void 0){m.splice(o-1,3,d);continue}m[o++]="+"}o++}}function p(m,o){if(o==='""')return m;if(m==='""')return o;if(typeof m=="string")return o instanceof r||m[m.length-1]!=='"'?void 0:typeof o!="string"?`${m.slice(0,-1)}${o}"`:o[0]==='"'?m.slice(0,-1)+o.slice(1):void 0;if(typeof o=="string"&&o[0]==='"'&&!(m instanceof r))return`"${m}${o.slice(1)}`}function l(m,o){return o.emptyStr()?m:m.emptyStr()?o:i`${m}${o}`}e.strConcat=l;function y(m){return typeof m=="number"||typeof m=="boolean"||m===null?m:b(Array.isArray(m)?m.join(","):m)}function $(m){return new n(b(m))}e.stringify=$;function b(m){return JSON.stringify(m).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=b;function S(m){return typeof m=="string"&&e.IDENTIFIER.test(m)?new n(`.${m}`):s`[${m}]`}e.getProperty=S;function g(m){if(typeof m=="string"&&e.IDENTIFIER.test(m))return new n(`${m}`);throw new Error(`CodeGen: invalid export name: ${m}, use explicit $id name mapping`)}e.getEsmExportName=g;function u(m){return new n(m.toString())}e.regexpCode=u}(mr)),mr}var pr={},Wr;function Br(){return Wr||(Wr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Bt();class r extends Error{constructor(p){super(`CodeGen: "code" for ${p} not defined`),this.value=p.value}}var n;(function(f){f[f.Started=0]="Started",f[f.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class s{constructor({prefixes:p,parent:l}={}){this._names={},this._prefixes=p,this._parent=l}toName(p){return p instanceof t.Name?p:this.name(p)}name(p){return new t.Name(this._newName(p))}_newName(p){const l=this._names[p]||this._nameGroup(p);return`${p}${l.index++}`}_nameGroup(p){var l,y;if(!((y=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||y===void 0)&&y.has(p)||this._prefixes&&!this._prefixes.has(p))throw new Error(`CodeGen: prefix "${p}" is not allowed in this scope`);return this._names[p]={prefix:p,index:0}}}e.Scope=s;class a extends t.Name{constructor(p,l){super(l),this.prefix=p}setValue(p,{property:l,itemIndex:y}){this.value=p,this.scopePath=(0,t._)`.${new t.Name(l)}[${y}]`}}e.ValueScopeName=a;const i=(0,t._)`\n`;class c extends s{constructor(p){super(p),this._values={},this._scope=p.scope,this.opts={...p,_n:p.lines?i:t.nil}}get(){return this._scope}name(p){return new a(p,this._newName(p))}value(p,l){var y;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const $=this.toName(p),{prefix:b}=$,S=(y=l.key)!==null&&y!==void 0?y:l.ref;let g=this._values[b];if(g){const o=g.get(S);if(o)return o}else g=this._values[b]=new Map;g.set(S,$);const u=this._scope[b]||(this._scope[b]=[]),m=u.length;return u[m]=l.ref,$.setValue(l,{property:b,itemIndex:m}),$}getValue(p,l){const y=this._values[p];if(y)return y.get(l)}scopeRefs(p,l=this._values){return this._reduceValues(l,y=>{if(y.scopePath===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return(0,t._)`${p}${y.scopePath}`})}scopeCode(p=this._values,l,y){return this._reduceValues(p,$=>{if($.value===void 0)throw new Error(`CodeGen: name "${$}" has no value`);return $.value.code},l,y)}_reduceValues(p,l,y={},$){let b=t.nil;for(const S in p){const g=p[S];if(!g)continue;const u=y[S]=y[S]||new Map;g.forEach(m=>{if(u.has(m))return;u.set(m,n.Started);let o=l(m);if(o){const d=this.opts.es5?e.varKinds.var:e.varKinds.const;b=(0,t._)`${b}${d} ${m} = ${o};${this.opts._n}`}else if(o=$?.(m))b=(0,t._)`${b}${o}${this.opts._n}`;else throw new r(m);u.set(m,n.Completed)})}return b}}e.ValueScope=c}(pr)),pr}var Hr;function x(){return Hr||(Hr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Bt(),r=Br();var n=Bt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var s=Br();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(h,j){return this}}class i extends a{constructor(h,j,N){super(),this.varKind=h,this.name=j,this.rhs=N}render({es5:h,_n:j}){const N=h?r.varKinds.var:this.varKind,K=this.rhs===void 0?"":` = ${this.rhs}`;return`${N} ${this.name}${K};`+j}optimizeNames(h,j){if(h[this.name.str])return this.rhs&&(this.rhs=B(this.rhs,h,j)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends a{constructor(h,j,N){super(),this.lhs=h,this.rhs=j,this.sideEffects=N}render({_n:h}){return`${this.lhs} = ${this.rhs};`+h}optimizeNames(h,j){if(!(this.lhs instanceof t.Name&&!h[this.lhs.str]&&!this.sideEffects))return this.rhs=B(this.rhs,h,j),this}get names(){const h=this.lhs instanceof t.Name?{}:{...this.lhs.names};return U(h,this.rhs)}}class f extends c{constructor(h,j,N,K){super(h,N,K),this.op=j}render({_n:h}){return`${this.lhs} ${this.op}= ${this.rhs};`+h}}class p extends a{constructor(h){super(),this.label=h,this.names={}}render({_n:h}){return`${this.label}:`+h}}class l extends a{constructor(h){super(),this.label=h,this.names={}}render({_n:h}){return`break${this.label?` ${this.label}`:""};`+h}}class y extends a{constructor(h){super(),this.error=h}render({_n:h}){return`throw ${this.error};`+h}get names(){return this.error.names}}class $ extends a{constructor(h){super(),this.code=h}render({_n:h}){return`${this.code};`+h}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(h,j){return this.code=B(this.code,h,j),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class b extends a{constructor(h=[]){super(),this.nodes=h}render(h){return this.nodes.reduce((j,N)=>j+N.render(h),"")}optimizeNodes(){const{nodes:h}=this;let j=h.length;for(;j--;){const N=h[j].optimizeNodes();Array.isArray(N)?h.splice(j,1,...N):N?h[j]=N:h.splice(j,1)}return h.length>0?this:void 0}optimizeNames(h,j){const{nodes:N}=this;let K=N.length;for(;K--;){const W=N[K];W.optimizeNames(h,j)||(ee(h,W.names),N.splice(K,1))}return N.length>0?this:void 0}get names(){return this.nodes.reduce((h,j)=>z(h,j.names),{})}}class S extends b{render(h){return"{"+h._n+super.render(h)+"}"+h._n}}class g extends b{}class u extends S{}u.kind="else";class m extends S{constructor(h,j){super(j),this.condition=h}render(h){let j=`if(${this.condition})`+super.render(h);return this.else&&(j+="else "+this.else.render(h)),j}optimizeNodes(){super.optimizeNodes();const h=this.condition;if(h===!0)return this.nodes;let j=this.else;if(j){const N=j.optimizeNodes();j=this.else=Array.isArray(N)?new u(N):N}if(j)return h===!1?j instanceof m?j:j.nodes:this.nodes.length?this:new m(se(h),j instanceof m?[j]:j.nodes);if(!(h===!1||!this.nodes.length))return this}optimizeNames(h,j){var N;if(this.else=(N=this.else)===null||N===void 0?void 0:N.optimizeNames(h,j),!!(super.optimizeNames(h,j)||this.else))return this.condition=B(this.condition,h,j),this}get names(){const h=super.names;return U(h,this.condition),this.else&&z(h,this.else.names),h}}m.kind="if";class o extends S{}o.kind="for";class d extends o{constructor(h){super(),this.iteration=h}render(h){return`for(${this.iteration})`+super.render(h)}optimizeNames(h,j){if(super.optimizeNames(h,j))return this.iteration=B(this.iteration,h,j),this}get names(){return z(super.names,this.iteration.names)}}class v extends o{constructor(h,j,N,K){super(),this.varKind=h,this.name=j,this.from=N,this.to=K}render(h){const j=h.es5?r.varKinds.var:this.varKind,{name:N,from:K,to:W}=this;return`for(${j} ${N}=${K}; ${N}<${W}; ${N}++)`+super.render(h)}get names(){const h=U(super.names,this.from);return U(h,this.to)}}class _ extends o{constructor(h,j,N,K){super(),this.loop=h,this.varKind=j,this.name=N,this.iterable=K}render(h){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(h)}optimizeNames(h,j){if(super.optimizeNames(h,j))return this.iterable=B(this.iterable,h,j),this}get names(){return z(super.names,this.iterable.names)}}class w extends S{constructor(h,j,N){super(),this.name=h,this.args=j,this.async=N}render(h){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(h)}}w.kind="func";class P extends b{render(h){return"return "+super.render(h)}}P.kind="return";class I extends S{render(h){let j="try"+super.render(h);return this.catch&&(j+=this.catch.render(h)),this.finally&&(j+=this.finally.render(h)),j}optimizeNodes(){var h,j;return super.optimizeNodes(),(h=this.catch)===null||h===void 0||h.optimizeNodes(),(j=this.finally)===null||j===void 0||j.optimizeNodes(),this}optimizeNames(h,j){var N,K;return super.optimizeNames(h,j),(N=this.catch)===null||N===void 0||N.optimizeNames(h,j),(K=this.finally)===null||K===void 0||K.optimizeNames(h,j),this}get names(){const h=super.names;return this.catch&&z(h,this.catch.names),this.finally&&z(h,this.finally.names),h}}class M extends S{constructor(h){super(),this.error=h}render(h){return`catch(${this.error})`+super.render(h)}}M.kind="catch";class F extends S{render(h){return"finally"+super.render(h)}}F.kind="finally";class C{constructor(h,j={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...j,_n:j.lines?`
2
2
  `:""},this._extScope=h,this._scope=new r.Scope({parent:h}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(h){return this._scope.name(h)}scopeName(h){return this._extScope.name(h)}scopeValue(h,j){const N=this._extScope.value(h,j);return(this._values[N.prefix]||(this._values[N.prefix]=new Set)).add(N),N}getScopeValue(h,j){return this._extScope.getValue(h,j)}scopeRefs(h){return this._extScope.scopeRefs(h,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(h,j,N,K){const W=this._scope.toName(j);return N!==void 0&&K&&(this._constants[W.str]=N),this._leafNode(new i(h,W,N)),W}const(h,j,N){return this._def(r.varKinds.const,h,j,N)}let(h,j,N){return this._def(r.varKinds.let,h,j,N)}var(h,j,N){return this._def(r.varKinds.var,h,j,N)}assign(h,j,N){return this._leafNode(new c(h,j,N))}add(h,j){return this._leafNode(new f(h,e.operators.ADD,j))}code(h){return typeof h=="function"?h():h!==t.nil&&this._leafNode(new $(h)),this}object(...h){const j=["{"];for(const[N,K]of h)j.length>1&&j.push(","),j.push(N),(N!==K||this.opts.es5)&&(j.push(":"),(0,t.addCodeArg)(j,K));return j.push("}"),new t._Code(j)}if(h,j,N){if(this._blockNode(new m(h)),j&&N)this.code(j).else().code(N).endIf();else if(j)this.code(j).endIf();else if(N)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(h){return this._elseNode(new m(h))}else(){return this._elseNode(new u)}endIf(){return this._endBlockNode(m,u)}_for(h,j){return this._blockNode(h),j&&this.code(j).endFor(),this}for(h,j){return this._for(new d(h),j)}forRange(h,j,N,K,W=this.opts.es5?r.varKinds.var:r.varKinds.let){const Y=this._scope.toName(h);return this._for(new v(W,Y,j,N),()=>K(Y))}forOf(h,j,N,K=r.varKinds.const){const W=this._scope.toName(h);if(this.opts.es5){const Y=j instanceof t.Name?j:this.var("_arr",j);return this.forRange("_i",0,(0,t._)`${Y}.length`,X=>{this.var(W,(0,t._)`${Y}[${X}]`),N(W)})}return this._for(new _("of",K,W,j),()=>N(W))}forIn(h,j,N,K=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(h,(0,t._)`Object.keys(${j})`,N);const W=this._scope.toName(h);return this._for(new _("in",K,W,j),()=>N(W))}endFor(){return this._endBlockNode(o)}label(h){return this._leafNode(new p(h))}break(h){return this._leafNode(new l(h))}return(h){const j=new P;if(this._blockNode(j),this.code(h),j.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(P)}try(h,j,N){if(!j&&!N)throw new Error('CodeGen: "try" without "catch" and "finally"');const K=new I;if(this._blockNode(K),this.code(h),j){const W=this.name("e");this._currNode=K.catch=new M(W),j(W)}return N&&(this._currNode=K.finally=new F,this.code(N)),this._endBlockNode(M,F)}throw(h){return this._leafNode(new y(h))}block(h,j){return this._blockStarts.push(this._nodes.length),h&&this.code(h).endBlock(j),this}endBlock(h){const j=this._blockStarts.pop();if(j===void 0)throw new Error("CodeGen: not in self-balancing block");const N=this._nodes.length-j;if(N<0||h!==void 0&&N!==h)throw new Error(`CodeGen: wrong number of nodes: ${N} vs ${h} expected`);return this._nodes.length=j,this}func(h,j=t.nil,N,K){return this._blockNode(new w(h,j,N)),K&&this.code(K).endFunc(),this}endFunc(){return this._endBlockNode(w)}optimize(h=1){for(;h-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(h){return this._currNode.nodes.push(h),this}_blockNode(h){this._currNode.nodes.push(h),this._nodes.push(h)}_endBlockNode(h,j){const N=this._currNode;if(N instanceof h||j&&N instanceof j)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${j?`${h.kind}/${j.kind}`:h.kind}"`)}_elseNode(h){const j=this._currNode;if(!(j instanceof m))throw new Error('CodeGen: "else" without "if"');return this._currNode=j.else=h,this}get _root(){return this._nodes[0]}get _currNode(){const h=this._nodes;return h[h.length-1]}set _currNode(h){const j=this._nodes;j[j.length-1]=h}}e.CodeGen=C;function z(A,h){for(const j in h)A[j]=(A[j]||0)+(h[j]||0);return A}function U(A,h){return h instanceof t._CodeOrName?z(A,h.names):A}function B(A,h,j){if(A instanceof t.Name)return N(A);if(!K(A))return A;return new t._Code(A._items.reduce((W,Y)=>(Y instanceof t.Name&&(Y=N(Y)),Y instanceof t._Code?W.push(...Y._items):W.push(Y),W),[]));function N(W){const Y=j[W.str];return Y===void 0||h[W.str]!==1?W:(delete h[W.str],Y)}function K(W){return W instanceof t._Code&&W._items.some(Y=>Y instanceof t.Name&&h[Y.str]===1&&j[Y.str]!==void 0)}}function ee(A,h){for(const j in h)A[j]=(A[j]||0)-(h[j]||0)}function se(A){return typeof A=="boolean"||typeof A=="number"||A===null?!A:(0,t._)`!${T(A)}`}e.not=se;const ae=R(e.operators.AND);function te(...A){return A.reduce(ae)}e.and=te;const pe=R(e.operators.OR);function V(...A){return A.reduce(pe)}e.or=V;function R(A){return(h,j)=>h===t.nil?j:j===t.nil?h:(0,t._)`${T(h)} ${A} ${T(j)}`}function T(A){return A instanceof t.Name?A:(0,t._)`(${A})`}}(fr)),fr}var G={},xr;function Q(){if(xr)return G;xr=1,Object.defineProperty(G,"__esModule",{value:!0}),G.checkStrictMode=G.getErrorPath=G.Type=G.useFunc=G.setEvaluated=G.evaluatedPropsToName=G.mergeEvaluated=G.eachItem=G.unescapeJsonPointer=G.escapeJsonPointer=G.escapeFragment=G.unescapeFragment=G.schemaRefOrVal=G.schemaHasRulesButRef=G.schemaHasRules=G.checkUnknownRules=G.alwaysValidSchema=G.toHash=void 0;const e=x(),t=Bt();function r(_){const w={};for(const P of _)w[P]=!0;return w}G.toHash=r;function n(_,w){return typeof w=="boolean"?w:Object.keys(w).length===0?!0:(s(_,w),!a(w,_.self.RULES.all))}G.alwaysValidSchema=n;function s(_,w=_.schema){const{opts:P,self:I}=_;if(!P.strictSchema||typeof w=="boolean")return;const M=I.RULES.keywords;for(const F in w)M[F]||v(_,`unknown keyword: "${F}"`)}G.checkUnknownRules=s;function a(_,w){if(typeof _=="boolean")return!_;for(const P in _)if(w[P])return!0;return!1}G.schemaHasRules=a;function i(_,w){if(typeof _=="boolean")return!_;for(const P in _)if(P!=="$ref"&&w.all[P])return!0;return!1}G.schemaHasRulesButRef=i;function c({topSchemaRef:_,schemaPath:w},P,I,M){if(!M){if(typeof P=="number"||typeof P=="boolean")return P;if(typeof P=="string")return(0,e._)`${P}`}return(0,e._)`${_}${w}${(0,e.getProperty)(I)}`}G.schemaRefOrVal=c;function f(_){return y(decodeURIComponent(_))}G.unescapeFragment=f;function p(_){return encodeURIComponent(l(_))}G.escapeFragment=p;function l(_){return typeof _=="number"?`${_}`:_.replace(/~/g,"~0").replace(/\//g,"~1")}G.escapeJsonPointer=l;function y(_){return _.replace(/~1/g,"/").replace(/~0/g,"~")}G.unescapeJsonPointer=y;function $(_,w){if(Array.isArray(_))for(const P of _)w(P);else w(_)}G.eachItem=$;function b({mergeNames:_,mergeToName:w,mergeValues:P,resultToName:I}){return(M,F,C,z)=>{const U=C===void 0?F:C instanceof e.Name?(F instanceof e.Name?_(M,F,C):w(M,F,C),C):F instanceof e.Name?(w(M,C,F),F):P(F,C);return z===e.Name&&!(U instanceof e.Name)?I(M,U):U}}G.mergeEvaluated={props:b({mergeNames:(_,w,P)=>_.if((0,e._)`${P} !== true && ${w} !== undefined`,()=>{_.if((0,e._)`${w} === true`,()=>_.assign(P,!0),()=>_.assign(P,(0,e._)`${P} || {}`).code((0,e._)`Object.assign(${P}, ${w})`))}),mergeToName:(_,w,P)=>_.if((0,e._)`${P} !== true`,()=>{w===!0?_.assign(P,!0):(_.assign(P,(0,e._)`${P} || {}`),g(_,P,w))}),mergeValues:(_,w)=>_===!0?!0:{..._,...w},resultToName:S}),items:b({mergeNames:(_,w,P)=>_.if((0,e._)`${P} !== true && ${w} !== undefined`,()=>_.assign(P,(0,e._)`${w} === true ? true : ${P} > ${w} ? ${P} : ${w}`)),mergeToName:(_,w,P)=>_.if((0,e._)`${P} !== true`,()=>_.assign(P,w===!0?!0:(0,e._)`${P} > ${w} ? ${P} : ${w}`)),mergeValues:(_,w)=>_===!0?!0:Math.max(_,w),resultToName:(_,w)=>_.var("items",w)})};function S(_,w){if(w===!0)return _.var("props",!0);const P=_.var("props",(0,e._)`{}`);return w!==void 0&&g(_,P,w),P}G.evaluatedPropsToName=S;function g(_,w,P){Object.keys(P).forEach(I=>_.assign((0,e._)`${w}${(0,e.getProperty)(I)}`,!0))}G.setEvaluated=g;const u={};function m(_,w){return _.scopeValue("func",{ref:w,code:u[w.code]||(u[w.code]=new t._Code(w.code))})}G.useFunc=m;var o;(function(_){_[_.Num=0]="Num",_[_.Str=1]="Str"})(o||(G.Type=o={}));function d(_,w,P){if(_ instanceof e.Name){const I=w===o.Num;return P?I?(0,e._)`"[" + ${_} + "]"`:(0,e._)`"['" + ${_} + "']"`:I?(0,e._)`"/" + ${_}`:(0,e._)`"/" + ${_}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return P?(0,e.getProperty)(_).toString():"/"+l(_)}G.getErrorPath=d;function v(_,w,P=_.opts.strictSchema){if(P){if(w=`strict mode: ${w}`,P===!0)throw new Error(w);_.self.logger.warn(w)}}return G.checkStrictMode=v,G}var He={},Gr;function ve(){if(Gr)return He;Gr=1,Object.defineProperty(He,"__esModule",{value:!0});const e=x(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return He.default=t,He}var Zr;function Qt(){return Zr||(Zr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=x(),r=Q(),n=ve();e.keywordError={message:({keyword:u})=>(0,t.str)`must pass "${u}" keyword validation`},e.keyword$DataError={message:({keyword:u,schemaType:m})=>m?(0,t.str)`"${u}" keyword must be ${m} ($data)`:(0,t.str)`"${u}" keyword is invalid ($data)`};function s(u,m=e.keywordError,o,d){const{it:v}=u,{gen:_,compositeRule:w,allErrors:P}=v,I=y(u,m,o);d??(w||P)?f(_,I):p(v,(0,t._)`[${I}]`)}e.reportError=s;function a(u,m=e.keywordError,o){const{it:d}=u,{gen:v,compositeRule:_,allErrors:w}=d,P=y(u,m,o);f(v,P),_||w||p(d,n.default.vErrors)}e.reportExtraError=a;function i(u,m){u.assign(n.default.errors,m),u.if((0,t._)`${n.default.vErrors} !== null`,()=>u.if(m,()=>u.assign((0,t._)`${n.default.vErrors}.length`,m),()=>u.assign(n.default.vErrors,null)))}e.resetErrorsCount=i;function c({gen:u,keyword:m,schemaValue:o,data:d,errsCount:v,it:_}){if(v===void 0)throw new Error("ajv implementation error");const w=u.name("err");u.forRange("i",v,n.default.errors,P=>{u.const(w,(0,t._)`${n.default.vErrors}[${P}]`),u.if((0,t._)`${w}.instancePath === undefined`,()=>u.assign((0,t._)`${w}.instancePath`,(0,t.strConcat)(n.default.instancePath,_.errorPath))),u.assign((0,t._)`${w}.schemaPath`,(0,t.str)`${_.errSchemaPath}/${m}`),_.opts.verbose&&(u.assign((0,t._)`${w}.schema`,o),u.assign((0,t._)`${w}.data`,d))})}e.extendErrors=c;function f(u,m){const o=u.const("err",m);u.if((0,t._)`${n.default.vErrors} === null`,()=>u.assign(n.default.vErrors,(0,t._)`[${o}]`),(0,t._)`${n.default.vErrors}.push(${o})`),u.code((0,t._)`${n.default.errors}++`)}function p(u,m){const{gen:o,validateName:d,schemaEnv:v}=u;v.$async?o.throw((0,t._)`new ${u.ValidationError}(${m})`):(o.assign((0,t._)`${d}.errors`,m),o.return(!1))}const l={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function y(u,m,o){const{createErrors:d}=u.it;return d===!1?(0,t._)`{}`:$(u,m,o)}function $(u,m,o={}){const{gen:d,it:v}=u,_=[b(v,o),S(u,o)];return g(u,m,_),d.object(..._)}function b({errorPath:u},{instancePath:m}){const o=m?(0,t.str)`${u}${(0,r.getErrorPath)(m,r.Type.Str)}`:u;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,o)]}function S({keyword:u,it:{errSchemaPath:m}},{schemaPath:o,parentSchema:d}){let v=d?m:(0,t.str)`${m}/${u}`;return o&&(v=(0,t.str)`${v}${(0,r.getErrorPath)(o,r.Type.Str)}`),[l.schemaPath,v]}function g(u,{params:m,message:o},d){const{keyword:v,data:_,schemaValue:w,it:P}=u,{opts:I,propertyName:M,topSchemaRef:F,schemaPath:C}=P;d.push([l.keyword,v],[l.params,typeof m=="function"?m(u):m||(0,t._)`{}`]),I.messages&&d.push([l.message,typeof o=="function"?o(u):o]),I.verbose&&d.push([l.schema,w],[l.parentSchema,(0,t._)`${F}${C}`],[n.default.data,_]),M&&d.push([l.propertyName,M])}}(dr)),dr}var Xr;function Rs(){if(Xr)return Ee;Xr=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.boolOrEmptySchema=Ee.topBoolOrEmptySchema=void 0;const e=Qt(),t=x(),r=ve(),n={message:"boolean schema is false"};function s(c){const{gen:f,schema:p,validateName:l}=c;p===!1?i(c,!1):typeof p=="object"&&p.$async===!0?f.return(r.default.data):(f.assign((0,t._)`${l}.errors`,null),f.return(!0))}Ee.topBoolOrEmptySchema=s;function a(c,f){const{gen:p,schema:l}=c;l===!1?(p.var(f,!1),i(c)):p.var(f,!0)}Ee.boolOrEmptySchema=a;function i(c,f){const{gen:p,data:l}=c,y={gen:p,keyword:"false schema",data:l,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(y,n,void 0,f)}return Ee}var ce={},Oe={},Yr;function Da(){if(Yr)return Oe;Yr=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.getRules=Oe.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(s){return typeof s=="string"&&t.has(s)}Oe.isJSONType=r;function n(){const s={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...s,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},s.number,s.string,s.array,s.object],post:{rules:[]},all:{},keywords:{}}}return Oe.getRules=n,Oe}var _e={},Qr;function za(){if(Qr)return _e;Qr=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.shouldUseRule=_e.shouldUseGroup=_e.schemaHasRulesForType=void 0;function e({schema:n,self:s},a){const i=s.RULES.types[a];return i&&i!==!0&&t(n,i)}_e.schemaHasRulesForType=e;function t(n,s){return s.rules.some(a=>r(n,a))}_e.shouldUseGroup=t;function r(n,s){var a;return n[s.keyword]!==void 0||((a=s.definition.implements)===null||a===void 0?void 0:a.some(i=>n[i]!==void 0))}return _e.shouldUseRule=r,_e}var en;function Ht(){if(en)return ce;en=1,Object.defineProperty(ce,"__esModule",{value:!0}),ce.reportTypeError=ce.checkDataTypes=ce.checkDataType=ce.coerceAndCheckDataType=ce.getJSONTypes=ce.getSchemaTypes=ce.DataType=void 0;const e=Da(),t=za(),r=Qt(),n=x(),s=Q();var a;(function(o){o[o.Correct=0]="Correct",o[o.Wrong=1]="Wrong"})(a||(ce.DataType=a={}));function i(o){const d=c(o.type);if(d.includes("null")){if(o.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!d.length&&o.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');o.nullable===!0&&d.push("null")}return d}ce.getSchemaTypes=i;function c(o){const d=Array.isArray(o)?o:o?[o]:[];if(d.every(e.isJSONType))return d;throw new Error("type must be JSONType or JSONType[]: "+d.join(","))}ce.getJSONTypes=c;function f(o,d){const{gen:v,data:_,opts:w}=o,P=l(d,w.coerceTypes),I=d.length>0&&!(P.length===0&&d.length===1&&(0,t.schemaHasRulesForType)(o,d[0]));if(I){const M=S(d,_,w.strictNumbers,a.Wrong);v.if(M,()=>{P.length?y(o,d,P):u(o)})}return I}ce.coerceAndCheckDataType=f;const p=new Set(["string","number","integer","boolean","null"]);function l(o,d){return d?o.filter(v=>p.has(v)||d==="array"&&v==="array"):[]}function y(o,d,v){const{gen:_,data:w,opts:P}=o,I=_.let("dataType",(0,n._)`typeof ${w}`),M=_.let("coerced",(0,n._)`undefined`);P.coerceTypes==="array"&&_.if((0,n._)`${I} == 'object' && Array.isArray(${w}) && ${w}.length == 1`,()=>_.assign(w,(0,n._)`${w}[0]`).assign(I,(0,n._)`typeof ${w}`).if(S(d,w,P.strictNumbers),()=>_.assign(M,w))),_.if((0,n._)`${M} !== undefined`);for(const C of v)(p.has(C)||C==="array"&&P.coerceTypes==="array")&&F(C);_.else(),u(o),_.endIf(),_.if((0,n._)`${M} !== undefined`,()=>{_.assign(w,M),$(o,M)});function F(C){switch(C){case"string":_.elseIf((0,n._)`${I} == "number" || ${I} == "boolean"`).assign(M,(0,n._)`"" + ${w}`).elseIf((0,n._)`${w} === null`).assign(M,(0,n._)`""`);return;case"number":_.elseIf((0,n._)`${I} == "boolean" || ${w} === null
3
3
  || (${I} == "string" && ${w} && ${w} == +${w})`).assign(M,(0,n._)`+${w}`);return;case"integer":_.elseIf((0,n._)`${I} === "boolean" || ${w} === null
4
4
  || (${I} === "string" && ${w} && ${w} == +${w} && !(${w} % 1))`).assign(M,(0,n._)`+${w}`);return;case"boolean":_.elseIf((0,n._)`${w} === "false" || ${w} === 0 || ${w} === null`).assign(M,!1).elseIf((0,n._)`${w} === "true" || ${w} === 1`).assign(M,!0);return;case"null":_.elseIf((0,n._)`${w} === "" || ${w} === 0 || ${w} === false`),_.assign(M,null);return;case"array":_.elseIf((0,n._)`${I} === "string" || ${I} === "number"
@@ -1,8 +1,8 @@
1
1
  import { g as cr } from "../_commonjsHelpers-C6fGbg64.js";
2
- import { a as Pe, S as fe, I as et, c as Q, M as gr, P as Hs, E as Ws, b as an, N as Qa, L as Ue, x as Gs, C as es, i as xs, A as Zs, l as Xs } from "../notice-Cpso9PgQ.js";
3
- import { ah as Fr, ai as Ys, S as Qs, N as ei, a as ts, j as ti, t as le, x as Ve, w as vr, H as ri, C as ni, W as ai, O as si, Q as ii, v as oi, s as ci, r as ui, u as li, g as He, T as di, D as fi, z as Tr, y as mi, M as rt, K as pi, J as hi, I as yi, R as gi, A as vi, q as $i, G as bi, m as rs, V as _i, L as wi, f as Si } from "../utils-BRzdi3Gx.js";
2
+ import { a as Pe, S as fe, I as et, c as Q, M as gr, P as Hs, E as Ws, b as an, N as Qa, L as Ue, x as Gs, C as es, i as xs, A as Zs, l as Xs } from "../notice-BCio7XSW.js";
3
+ import { ah as Fr, ai as Ys, S as Qs, N as ei, a as ts, j as ti, t as le, x as Ve, w as vr, H as ri, C as ni, W as ai, O as si, Q as ii, v as oi, s as ci, r as ui, u as li, g as He, T as di, D as fi, z as Tr, y as mi, M as rt, K as pi, J as hi, I as yi, R as gi, A as vi, q as $i, G as bi, m as rs, V as _i, L as wi, f as Si } from "../utils-jsPYqpvC.js";
4
4
  import { attr as F, Value as ne, Fragment as Re, WithElement as ns, Empty as as, html as H, When as Xe, computedOf as ie, prop as ke, Use as Ur, style as ss, Ensure as is, aria as Pi, on as Ye, MapSignal as ur, Async as ji, OnDispose as Ei } from "@tempots/dom";
5
- import { T as Oi, a as Kr, I as os, B as Ri } from "../translations-g3qGTkzw.js";
5
+ import { T as Oi, a as Kr, I as os, B as Ri } from "../translations-BUTBIDsS.js";
6
6
  import { f as ki } from "../colors-pQZlNrwM.js";
7
7
  var nt = { exports: {} }, $r = {}, je = {}, Ie = {}, br = {}, _r = {}, wr = {}, sn;
8
8
  function nr() {
@@ -1,4 +1,4 @@
1
- import { f as r } from "./translations-g3qGTkzw.js";
1
+ import { f as r } from "./translations-BUTBIDsS.js";
2
2
  const d = {
3
3
  loadingExtended: "로딩 중입니다. 잠시만 기다려 주세요",
4
4
  loadingShort: "로딩 중...",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-DM5R5VZ0.cjs"),a={loadingExtended:"로딩 중입니다. 잠시만 기다려 주세요",loadingShort:"로딩 중...",locale:"지역",iconDescription:"아이콘",loadingIcon:"로딩 아이콘",failedToLoadIcon:"아이콘 로드 실패",editLabel:"편집",selectOne:"하나 선택",selectMany:"여러 개 선택",noResults:"결과 없음",passwordPlaceholderText:"비밀번호",togglePasswordVisibility:"비밀번호 표시 전환",toggleMenu:"메뉴 전환",toggleAside:"사이드 패널 전환",mainNavigation:"메인 네비게이션",sidebar:"사이드바",closeDrawer:"드로어 닫기",closeModal:"모달 닫기",confirm:"확인",cancel:"취소",addLabel:"추가",removeItem:"항목 제거",currentLocale:"한국어",ar:"아랍어",de:"독일어",en:"영어",es:"스페인어",fr:"프랑스어",hi:"힌디어",it:"이탈리아어",ja:"일본어",ko:"한국어",nl:"네덜란드어",pl:"폴란드어",pt:"포르투갈어",ru:"러시아어",tr:"터키어",vi:"베트남어",zh:"중국어",he:"히브리어",fa:"페르시아어",ur:"우르두어",emailPlaceholderText:"이메일을 입력하세요",incrementValue:"값 증가",decrementValue:"값 감소",dropZoneInstructions:e=>e?"클릭하여 선택하거나 파일을 여기로 드래그하세요, 또는 Enter 또는 Space 키를 눌러 파일 선택기를 여세요":"파일을 여기로 드래그하세요",fileSizeUnits:["바이트","KB","MB","GB","TB"],removeFile:"파일 제거",clearAllFiles:"모든 파일 지우기",clearValue:"값 지우기",unknownType:"알 수 없는 형식",filesInputInstructions:(e,o,t)=>{let n=(e==null||e>1,"클릭하여 선택하거나 파일을 여기로 드래그하세요");if(e||o){const l=[];if(e!=null&&e>1&&l.push(`최대 ${e}개 파일`),o&&t){const i=r.formatFileSize(o,{units:t});l.push(`각각 최대 ${i}`)}l.length>0&&(n+=` (${l.join(", ")})`)}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"PDF 로딩 중...",loadFailed:"PDF 로드 실패",invalidPdf:"유효하지 않은 PDF 파일",pageOutOfRange:(e,o)=>`페이지 ${e}이(가) 범위를 벗어났습니다 (1-${o})`,renderFailed:"PDF 페이지 렌더링 실패"}};exports.default=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-hMQlZmD4.cjs"),a={loadingExtended:"로딩 중입니다. 잠시만 기다려 주세요",loadingShort:"로딩 중...",locale:"지역",iconDescription:"아이콘",loadingIcon:"로딩 아이콘",failedToLoadIcon:"아이콘 로드 실패",editLabel:"편집",selectOne:"하나 선택",selectMany:"여러 개 선택",noResults:"결과 없음",passwordPlaceholderText:"비밀번호",togglePasswordVisibility:"비밀번호 표시 전환",toggleMenu:"메뉴 전환",toggleAside:"사이드 패널 전환",mainNavigation:"메인 네비게이션",sidebar:"사이드바",closeDrawer:"드로어 닫기",closeModal:"모달 닫기",confirm:"확인",cancel:"취소",addLabel:"추가",removeItem:"항목 제거",currentLocale:"한국어",ar:"아랍어",de:"독일어",en:"영어",es:"스페인어",fr:"프랑스어",hi:"힌디어",it:"이탈리아어",ja:"일본어",ko:"한국어",nl:"네덜란드어",pl:"폴란드어",pt:"포르투갈어",ru:"러시아어",tr:"터키어",vi:"베트남어",zh:"중국어",he:"히브리어",fa:"페르시아어",ur:"우르두어",emailPlaceholderText:"이메일을 입력하세요",incrementValue:"값 증가",decrementValue:"값 감소",dropZoneInstructions:e=>e?"클릭하여 선택하거나 파일을 여기로 드래그하세요, 또는 Enter 또는 Space 키를 눌러 파일 선택기를 여세요":"파일을 여기로 드래그하세요",fileSizeUnits:["바이트","KB","MB","GB","TB"],removeFile:"파일 제거",clearAllFiles:"모든 파일 지우기",clearValue:"값 지우기",unknownType:"알 수 없는 형식",filesInputInstructions:(e,o,t)=>{let n=(e==null||e>1,"클릭하여 선택하거나 파일을 여기로 드래그하세요");if(e||o){const l=[];if(e!=null&&e>1&&l.push(`최대 ${e}개 파일`),o&&t){const i=r.formatFileSize(o,{units:t});l.push(`각각 최대 ${i}`)}l.length>0&&(n+=` (${l.join(", ")})`)}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"PDF 로딩 중...",loadFailed:"PDF 로드 실패",invalidPdf:"유효하지 않은 PDF 파일",pageOutOfRange:(e,o)=>`페이지 ${e}이(가) 범위를 벗어났습니다 (1-${o})`,renderFailed:"PDF 페이지 렌더링 실패"}};exports.default=a;
@@ -1 +1 @@
1
- "use strict";const r=require("@tempots/dom"),w=require("./timer-DK_yKNwE.cjs"),q=require("./notice-BIcHmVnn.cjs"),O=require("./translations-DM5R5VZ0.cjs"),_=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]',"audio[controls]","video[controls]","details > summary:first-of-type","details[open]"].join(", ");function P(o){return Array.from(o.querySelectorAll(_)).filter(t=>{const s=t;return s.offsetWidth>0&&s.offsetHeight>0&&!s.hasAttribute("inert")&&window.getComputedStyle(s).visibility!=="hidden"})}function V(o={}){const{active:t=!0,escapeDeactivates:s=!0,onEscape:e,initialFocus:n,returnFocus:a,clickOutsideDeactivates:i=!1,onClickOutside:d}=o;return r.WithElement(p=>{let f=t,h=null,c=[];typeof document<"u"&&(h=document.activeElement);const v=()=>{c=P(p)},b=u=>{if(f){if(s&&u.key==="Escape"){u.preventDefault(),e?.();return}if(u.key==="Tab"){if(v(),c.length===0){u.preventDefault();return}const l=c.indexOf(document.activeElement);u.shiftKey?l<=0&&(u.preventDefault(),c[c.length-1]?.focus()):l>=c.length-1&&(u.preventDefault(),c[0]?.focus())}}},g=u=>{if(!f||!i)return;const l=u.target;p.contains(l)||d?.()},y=()=>{if(!f)return;v();let u=null;typeof n=="function"?u=n():n?u=n:c.length>0&&(u=c[0]),u&&setTimeout(()=>{u?.focus()},50),document.addEventListener("keydown",b,!0),i&&document.addEventListener("click",g,!0)},A=()=>{f=!1,document.removeEventListener("keydown",b,!0),document.removeEventListener("click",g,!0);let u=null;typeof a=="function"?u=a():a?u=a:h&&(u=h),u&&document.body.contains(u)&&setTimeout(()=>{u?.focus()},0)};return setTimeout(()=>y(),0),r.OnDispose(()=>{A()})})}function U(o={}){return{activate:()=>V({...o,active:!0}),deactivate:()=>V({...o,active:!1})}}function B({initialStatus:o="closed",openedAfter:t,closedAfter:s}){const e=r.prop(o),n=()=>{e.set("start-opening")},a=()=>{e.set("start-closing")},i=e.map(l=>l!=="closed"&&l!=="start-closing"&&l!=="closing"),d=l=>{l?n():a()},p=()=>{d(!i.value)},f=[],h=l=>{f.push(e.on(x=>{x==="closed"&&l()}))};let c=()=>{};e.on(l=>{switch(c(),l){case"start-opening":c=w.g(()=>e.set("opening"));break;case"opening":c=t(()=>e.set("opened"));break;case"start-closing":c=w.g(()=>e.set("closing"));break;case"closing":c=s(()=>e.set("closed"));break;case"closed":c=()=>{};break}}),e.onDispose(()=>{f.forEach(l=>l()),c()});const v=e.map(l=>l==="closed"),b=e.map(l=>l==="start-opening"),g=e.map(l=>l==="opening"),y=e.map(l=>l==="opened"),A=e.map(l=>l==="closing"),u=e.map(l=>l==="start-closing");return{status:e,open:n,close:a,toggle:p,setOpen:d,display:i,isClosed:v,isStartOpening:b,isOpening:g,isOpened:y,isClosing:A,isStartClosing:u,dispose:()=>e.dispose(),listenOnClosed:h}}function z({initialStatus:o="closed",duration:t,openDuration:s=t??500,closeDuration:e=t??500}={}){return B({initialStatus:o,openedAfter:n=>w.T(n,s),closedAfter:n=>w.T(n,e)})}function M(o,t){let s=!1,e=null;function n(){s||(s=!0,o.removeEventListener("transitionend",a),o.removeEventListener("animationend",i),e&&(clearTimeout(e),e=null),t())}function a(f){f.target===o&&n()}function i(f){f.target===o&&n()}const d=()=>{if(typeof o.getAnimations>"u"){e=setTimeout(n,16);return}o.addEventListener("transitionend",a),o.addEventListener("animationend",i),o.getAnimations().length===0&&(e=setTimeout(n,1e3))},p=w.g(d);return()=>{s=!0,p(),e&&(clearTimeout(e),e=null),o.removeEventListener("transitionend",a),o.removeEventListener("animationend",i)}}function F({initialStatus:o="closed",element:t}={}){let s=t;return{setElement:e=>{s=e},...B({initialStatus:o,openedAfter:e=>s==null?(e(),()=>{}):M(s,e),closedAfter:e=>s==null?(e(),()=>{}):M(s,e)})}}function R(o){if(o==null)return"";const t=[];return o.fade&&t.push("fade"),o.slide&&t.push(`slide-${o.slide}`),o.scale!=null&&t.push("scale"),t.length>0?t.join(" "):"none"}function H(o){if(o==null)return"";const t=[];return o.scale!=null&&typeof o.scale=="number"&&t.push(`--scale-factor: ${o.scale}`),o.transformOrigin!=null&&t.push(`--transform-origin: ${o.transformOrigin}`),o.duration!=null&&t.push(`--animation-duration: ${o.duration}ms`),o.easing!=null&&t.push(`--animation-easing: ${o.easing}`),t.join("; ")}function D({animation:o,status:t}){const s=r.computedOf(o,t)((n,a)=>{if(n==null)return`bc-animated-toggle bc-animated-toggle--${a}`;const i=a==="start-opening"||a==="opening"||a==="opened";let d;return"enter"in n||"exit"in n?d=i?n.enter:n.exit:d=n,`bc-animated-toggle bc-animated-toggle--${R(d)} bc-animated-toggle--${a}`}),e=r.computedOf(o,t)((n,a)=>{if(n==null)return"";const i=a==="start-opening"||a==="opening"||a==="opened";let d;return"enter"in n||"exit"in n?d=i?n.enter:n.exit:d=n,H(d)});return r.Fragment(r.attr.class(s),r.attr.style(e))}function K({initialStatus:o="closed",animation:t},s){return r.WithElement(e=>{const{setElement:n,dispose:a,...i}=F({initialStatus:o,element:e});return n(e),r.Fragment(D({status:i.status,animation:t}),r.OnDispose(a),s(i))})}function j(o){return{"~standard":{version:1,vendor:"beatui-custom",validate:s=>{const e=o.validate(s);return e.success?{value:e.data}:{issues:e.errors.map(n=>({message:n.message,path:n.path}))}},types:void 0},safeParse:s=>{const e=o.validate(s);return e.success?{success:!0,data:e.data}:{success:!1,error:{errors:e.errors.map(n=>({message:n.message,path:n.path?.map(a=>typeof a=="object"&&"key"in a?a.key.toString():a.toString())||[]}))}}}}}class k{optional(){return new N(this)}default(t){return new G(this,t)}schema(){return j(this)}}class T extends k{minLength;maxLength;pattern;customValidations=[];validate(t){if(typeof t!="string")return{success:!1,errors:[{message:"Expected string"}]};const s=[];this.minLength!==void 0&&t.length<this.minLength&&s.push({message:`Must be at least ${this.minLength} characters`}),this.maxLength!==void 0&&t.length>this.maxLength&&s.push({message:`Must be at most ${this.maxLength} characters`}),this.pattern&&!this.pattern.test(t)&&s.push({message:"Invalid format"});for(const e of this.customValidations){const n=e(t);n&&s.push({message:n})}return s.length>0?{success:!1,errors:s}:{success:!0,data:t}}min(t,s){const e=new T;return e.minLength=t,e.maxLength=this.maxLength,e.pattern=this.pattern,e.customValidations=[...this.customValidations],s&&e.customValidations.push(n=>n.length<t?s:null),e}max(t,s){const e=new T;return e.minLength=this.minLength,e.maxLength=t,e.pattern=this.pattern,e.customValidations=[...this.customValidations],s&&e.customValidations.push(n=>n.length>t?s:null),e}regex(t,s){const e=new T;return e.minLength=this.minLength,e.maxLength=this.maxLength,e.pattern=t,e.customValidations=[...this.customValidations],s&&e.customValidations.push(n=>t.test(n)?null:s),e}email(t="Please enter a valid email address"){const s=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,e=new T;return e.minLength=this.minLength,e.maxLength=this.maxLength,e.pattern=this.pattern,e.customValidations=[...this.customValidations,n=>s.test(n)?null:t],e}refine(t){const s=new T;return s.minLength=this.minLength,s.maxLength=this.maxLength,s.pattern=this.pattern,s.customValidations=[...this.customValidations,t],s}}class C extends k{mustBeTrue=!1;trueMessage;validate(t){return typeof t!="boolean"?{success:!1,errors:[{message:"Expected boolean"}]}:this.mustBeTrue&&t!==!0?{success:!1,errors:[{message:this.trueMessage||"Must be true"}]}:{success:!0,data:t}}refine(t,s){const e=new C;e.mustBeTrue=this.mustBeTrue,e.trueMessage=this.trueMessage;const n=e.validate.bind(e);return e.validate=a=>{const i=n(a);return i.success?t(i.data)?i:{success:!1,errors:[{message:s}]}:i},e}literal(t,s){const e=new C;return e.mustBeTrue=!0,e.trueMessage=s,e}}class N extends k{constructor(t){super(),this.inner=t}validate(t){if(t===void 0)return{success:!0,data:void 0};const s=this.inner.validate(t);return s.success?{success:!0,data:s.data}:{success:!1,errors:s.errors}}}class G extends k{constructor(t,s){super(),this.inner=t,this.defaultValue=s}validate(t){return t===void 0?{success:!0,data:this.defaultValue}:this.inner.validate(t)}}class $ extends k{constructor(t){super(),this.shape=t}validate(t){if(typeof t!="object"||t===null||Array.isArray(t))return{success:!1,errors:[{message:"Expected object"}]};const s=t,e={},n=[];for(const[a,i]of Object.entries(this.shape)){const d=i.validate(s[a]);if(d.success)e[a]=d.data;else for(const p of d.errors)n.push({message:p.message,path:[a,...p.path||[]]})}return n.length>0?{success:!1,errors:n}:{success:!0,data:e}}refine(t,s){const e=new $(this.shape),n=e.validate.bind(e);return e.validate=a=>{const i=n(a);if(!i.success)return i;const d=t(i.data);return d?{success:!1,errors:[{message:d,path:s?.path}]}:{success:!0,data:i.data}},e}}const J=()=>new T,Q=()=>new C,X=o=>new $(o);function I(o){return r.WithBrowserCtx(t=>{const s=[],e=()=>s.forEach(a=>a());return o(({effect:a="opaque",mode:i="capturing",onClickOutside:d,onEscape:p,content:f,container:h="body"})=>{h==="body"&&(t=t.makePortal("body"));const c=F();c.listenOnClosed(e);let v=()=>{},b=()=>{};const g=E=>{E.key==="Escape"&&(p?.(),c.close())},y=()=>{d?.(),c.close()},A=E=>{v(),b(),E==="capturing"?(document.addEventListener("keydown",g),v=()=>document.removeEventListener("keydown",g),t.element.addEventListener("mousedown",y),b=()=>t.element.removeEventListener("mousedown",y)):(v=()=>{},b=()=>{})},u=r.Value.on(i,A);s.push(u),s.push(()=>{c.dispose(),v(),b()});const l=()=>{const E=new Set;for(const m of t.element.querySelectorAll(":scope > :not([data-overlay])"))m.hasAttribute("inert")?E.add(m):m.setAttribute("inert","");return s.push(()=>{for(const m of t.element.querySelectorAll(":scope > :not([data-overlay])"))E.has(m)||m.removeAttribute("inert");E.clear()}),document.activeElement?.blur?.(),r.html.div(r.WithElement(m=>c.setElement(m)),r.dataAttr.status(c.status.map(String)),r.dataAttr.overlay("true"),r.attr.class(r.computedOf(a??"opaque",i)((m,L)=>`bc-overlay bc-overlay--effect-${m} bc-overlay--mode-${L}`)),f)},x=r.render(l(),t.element,{disposeWithParent:!0,clear:!1,providers:t.providers});s.push(x),w.g(()=>c.open())},e)})}function W(o,t){const{size:s="md",dismissable:e=!0,showCloseButton:n=!0,onClose:a,overlayEffect:i="opaque",container:d="body",position:p="center"}=o;return I((f,h)=>{let c=()=>{};return t(g=>{c=h;const y=r.prop("capturing");r.Value.on(e,m=>{y.set(m?"capturing":"non-capturing")});const A=r.computedOf(g.header!=null,n)((m,L)=>m||L),u=q.sessionId("modal"),l=`${u}-header`,x=`${u}-body`,E=r.html.div(r.attr.class(r.computedOf(s,p)((m,L)=>`bc-modal bc-modal--size-${m} bc-modal--container-${d} bc-modal--position-${L}`)),r.attr.role("dialog"),r.aria.modal(!0),...g.header?[r.aria.labelledby(l)]:[],r.aria.describedby(x),r.attr.tabindex(-1),r.attr.id(u),r.dataAttr.focusTrap("true"),r.on.mousedown(m=>m.stopPropagation()),V({escapeDeactivates:!1,initialFocus:()=>{const m=document.getElementById(u);if(!m)return null;const L=m.querySelector('[aria-label="Close modal"]');if(L)return L;const S=m.querySelector('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');return S||m}}),r.html.div(r.attr.class("bc-modal__content"),r.When(A,()=>r.html.div(r.attr.class("bc-modal__header"),r.html.div(r.attr.class("bc-modal__title"),...g.header?[r.attr.id(l)]:[],g.header),r.When(n,()=>r.Use(O.BeatUII18n,m=>q.CloseButton({size:"sm",label:m.$.closeModal,onClick:()=>{c(),h()}}))))),r.html.div(r.attr.class("bc-modal__body"),r.attr.id(x),g.body),g.footer&&r.html.div(r.attr.class("bc-modal__footer"),g.footer)));f({mode:y,effect:i??"opaque",container:d,content:E,onClickOutside:()=>{a?.(),h()},onEscape:()=>{a?.(),h()}})},()=>{c(),h()})})}function Y(o,t){const{confirmText:s,cancelText:e,onConfirm:n,onCancel:a,...i}=o;return r.Use(O.BeatUII18n,d=>W({showCloseButton:!1,...i},(p,f)=>{const h=()=>{n?.(),f()},c=()=>{a?.(),f()};return t(b=>{p({body:b,footer:r.Fragment(r.attr.class("bc-modal__actions"),O.Button({variant:"outline",onClick:c},r.coalesce(e,d.$.cancel)),O.Button({color:"primary",variant:"filled",onClick:h},r.coalesce(s,d.$.confirm)))})},f)}))}exports.AnimatedToggle=K;exports.AnimatedToggleClass=D;exports.BooleanValidator=C;exports.ConfirmModal=Y;exports.FocusTrap=V;exports.Modal=W;exports.ObjectValidator=$;exports.Overlay=I;exports.StringValidator=T;exports.boolean=Q;exports.createStandardSchema=j;exports.object=X;exports.string=J;exports.useAnimatedElementToggle=F;exports.useAnimatedToggle=B;exports.useFocusTrap=U;exports.useTimedToggle=z;
1
+ "use strict";const r=require("@tempots/dom"),w=require("./timer-DK_yKNwE.cjs"),q=require("./notice-CkABNiTZ.cjs"),O=require("./translations-hMQlZmD4.cjs"),_=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]',"audio[controls]","video[controls]","details > summary:first-of-type","details[open]"].join(", ");function P(o){return Array.from(o.querySelectorAll(_)).filter(t=>{const s=t;return s.offsetWidth>0&&s.offsetHeight>0&&!s.hasAttribute("inert")&&window.getComputedStyle(s).visibility!=="hidden"})}function V(o={}){const{active:t=!0,escapeDeactivates:s=!0,onEscape:e,initialFocus:n,returnFocus:a,clickOutsideDeactivates:i=!1,onClickOutside:d}=o;return r.WithElement(p=>{let f=t,h=null,c=[];typeof document<"u"&&(h=document.activeElement);const v=()=>{c=P(p)},b=u=>{if(f){if(s&&u.key==="Escape"){u.preventDefault(),e?.();return}if(u.key==="Tab"){if(v(),c.length===0){u.preventDefault();return}const l=c.indexOf(document.activeElement);u.shiftKey?l<=0&&(u.preventDefault(),c[c.length-1]?.focus()):l>=c.length-1&&(u.preventDefault(),c[0]?.focus())}}},g=u=>{if(!f||!i)return;const l=u.target;p.contains(l)||d?.()},y=()=>{if(!f)return;v();let u=null;typeof n=="function"?u=n():n?u=n:c.length>0&&(u=c[0]),u&&setTimeout(()=>{u?.focus()},50),document.addEventListener("keydown",b,!0),i&&document.addEventListener("click",g,!0)},A=()=>{f=!1,document.removeEventListener("keydown",b,!0),document.removeEventListener("click",g,!0);let u=null;typeof a=="function"?u=a():a?u=a:h&&(u=h),u&&document.body.contains(u)&&setTimeout(()=>{u?.focus()},0)};return setTimeout(()=>y(),0),r.OnDispose(()=>{A()})})}function U(o={}){return{activate:()=>V({...o,active:!0}),deactivate:()=>V({...o,active:!1})}}function B({initialStatus:o="closed",openedAfter:t,closedAfter:s}){const e=r.prop(o),n=()=>{e.set("start-opening")},a=()=>{e.set("start-closing")},i=e.map(l=>l!=="closed"&&l!=="start-closing"&&l!=="closing"),d=l=>{l?n():a()},p=()=>{d(!i.value)},f=[],h=l=>{f.push(e.on(x=>{x==="closed"&&l()}))};let c=()=>{};e.on(l=>{switch(c(),l){case"start-opening":c=w.g(()=>e.set("opening"));break;case"opening":c=t(()=>e.set("opened"));break;case"start-closing":c=w.g(()=>e.set("closing"));break;case"closing":c=s(()=>e.set("closed"));break;case"closed":c=()=>{};break}}),e.onDispose(()=>{f.forEach(l=>l()),c()});const v=e.map(l=>l==="closed"),b=e.map(l=>l==="start-opening"),g=e.map(l=>l==="opening"),y=e.map(l=>l==="opened"),A=e.map(l=>l==="closing"),u=e.map(l=>l==="start-closing");return{status:e,open:n,close:a,toggle:p,setOpen:d,display:i,isClosed:v,isStartOpening:b,isOpening:g,isOpened:y,isClosing:A,isStartClosing:u,dispose:()=>e.dispose(),listenOnClosed:h}}function z({initialStatus:o="closed",duration:t,openDuration:s=t??500,closeDuration:e=t??500}={}){return B({initialStatus:o,openedAfter:n=>w.T(n,s),closedAfter:n=>w.T(n,e)})}function M(o,t){let s=!1,e=null;function n(){s||(s=!0,o.removeEventListener("transitionend",a),o.removeEventListener("animationend",i),e&&(clearTimeout(e),e=null),t())}function a(f){f.target===o&&n()}function i(f){f.target===o&&n()}const d=()=>{if(typeof o.getAnimations>"u"){e=setTimeout(n,16);return}o.addEventListener("transitionend",a),o.addEventListener("animationend",i),o.getAnimations().length===0&&(e=setTimeout(n,1e3))},p=w.g(d);return()=>{s=!0,p(),e&&(clearTimeout(e),e=null),o.removeEventListener("transitionend",a),o.removeEventListener("animationend",i)}}function F({initialStatus:o="closed",element:t}={}){let s=t;return{setElement:e=>{s=e},...B({initialStatus:o,openedAfter:e=>s==null?(e(),()=>{}):M(s,e),closedAfter:e=>s==null?(e(),()=>{}):M(s,e)})}}function R(o){if(o==null)return"";const t=[];return o.fade&&t.push("fade"),o.slide&&t.push(`slide-${o.slide}`),o.scale!=null&&t.push("scale"),t.length>0?t.join(" "):"none"}function H(o){if(o==null)return"";const t=[];return o.scale!=null&&typeof o.scale=="number"&&t.push(`--scale-factor: ${o.scale}`),o.transformOrigin!=null&&t.push(`--transform-origin: ${o.transformOrigin}`),o.duration!=null&&t.push(`--animation-duration: ${o.duration}ms`),o.easing!=null&&t.push(`--animation-easing: ${o.easing}`),t.join("; ")}function D({animation:o,status:t}){const s=r.computedOf(o,t)((n,a)=>{if(n==null)return`bc-animated-toggle bc-animated-toggle--${a}`;const i=a==="start-opening"||a==="opening"||a==="opened";let d;return"enter"in n||"exit"in n?d=i?n.enter:n.exit:d=n,`bc-animated-toggle bc-animated-toggle--${R(d)} bc-animated-toggle--${a}`}),e=r.computedOf(o,t)((n,a)=>{if(n==null)return"";const i=a==="start-opening"||a==="opening"||a==="opened";let d;return"enter"in n||"exit"in n?d=i?n.enter:n.exit:d=n,H(d)});return r.Fragment(r.attr.class(s),r.attr.style(e))}function K({initialStatus:o="closed",animation:t},s){return r.WithElement(e=>{const{setElement:n,dispose:a,...i}=F({initialStatus:o,element:e});return n(e),r.Fragment(D({status:i.status,animation:t}),r.OnDispose(a),s(i))})}function j(o){return{"~standard":{version:1,vendor:"beatui-custom",validate:s=>{const e=o.validate(s);return e.success?{value:e.data}:{issues:e.errors.map(n=>({message:n.message,path:n.path}))}},types:void 0},safeParse:s=>{const e=o.validate(s);return e.success?{success:!0,data:e.data}:{success:!1,error:{errors:e.errors.map(n=>({message:n.message,path:n.path?.map(a=>typeof a=="object"&&"key"in a?a.key.toString():a.toString())||[]}))}}}}}class k{optional(){return new N(this)}default(t){return new G(this,t)}schema(){return j(this)}}class T extends k{minLength;maxLength;pattern;customValidations=[];validate(t){if(typeof t!="string")return{success:!1,errors:[{message:"Expected string"}]};const s=[];this.minLength!==void 0&&t.length<this.minLength&&s.push({message:`Must be at least ${this.minLength} characters`}),this.maxLength!==void 0&&t.length>this.maxLength&&s.push({message:`Must be at most ${this.maxLength} characters`}),this.pattern&&!this.pattern.test(t)&&s.push({message:"Invalid format"});for(const e of this.customValidations){const n=e(t);n&&s.push({message:n})}return s.length>0?{success:!1,errors:s}:{success:!0,data:t}}min(t,s){const e=new T;return e.minLength=t,e.maxLength=this.maxLength,e.pattern=this.pattern,e.customValidations=[...this.customValidations],s&&e.customValidations.push(n=>n.length<t?s:null),e}max(t,s){const e=new T;return e.minLength=this.minLength,e.maxLength=t,e.pattern=this.pattern,e.customValidations=[...this.customValidations],s&&e.customValidations.push(n=>n.length>t?s:null),e}regex(t,s){const e=new T;return e.minLength=this.minLength,e.maxLength=this.maxLength,e.pattern=t,e.customValidations=[...this.customValidations],s&&e.customValidations.push(n=>t.test(n)?null:s),e}email(t="Please enter a valid email address"){const s=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,e=new T;return e.minLength=this.minLength,e.maxLength=this.maxLength,e.pattern=this.pattern,e.customValidations=[...this.customValidations,n=>s.test(n)?null:t],e}refine(t){const s=new T;return s.minLength=this.minLength,s.maxLength=this.maxLength,s.pattern=this.pattern,s.customValidations=[...this.customValidations,t],s}}class C extends k{mustBeTrue=!1;trueMessage;validate(t){return typeof t!="boolean"?{success:!1,errors:[{message:"Expected boolean"}]}:this.mustBeTrue&&t!==!0?{success:!1,errors:[{message:this.trueMessage||"Must be true"}]}:{success:!0,data:t}}refine(t,s){const e=new C;e.mustBeTrue=this.mustBeTrue,e.trueMessage=this.trueMessage;const n=e.validate.bind(e);return e.validate=a=>{const i=n(a);return i.success?t(i.data)?i:{success:!1,errors:[{message:s}]}:i},e}literal(t,s){const e=new C;return e.mustBeTrue=!0,e.trueMessage=s,e}}class N extends k{constructor(t){super(),this.inner=t}validate(t){if(t===void 0)return{success:!0,data:void 0};const s=this.inner.validate(t);return s.success?{success:!0,data:s.data}:{success:!1,errors:s.errors}}}class G extends k{constructor(t,s){super(),this.inner=t,this.defaultValue=s}validate(t){return t===void 0?{success:!0,data:this.defaultValue}:this.inner.validate(t)}}class $ extends k{constructor(t){super(),this.shape=t}validate(t){if(typeof t!="object"||t===null||Array.isArray(t))return{success:!1,errors:[{message:"Expected object"}]};const s=t,e={},n=[];for(const[a,i]of Object.entries(this.shape)){const d=i.validate(s[a]);if(d.success)e[a]=d.data;else for(const p of d.errors)n.push({message:p.message,path:[a,...p.path||[]]})}return n.length>0?{success:!1,errors:n}:{success:!0,data:e}}refine(t,s){const e=new $(this.shape),n=e.validate.bind(e);return e.validate=a=>{const i=n(a);if(!i.success)return i;const d=t(i.data);return d?{success:!1,errors:[{message:d,path:s?.path}]}:{success:!0,data:i.data}},e}}const J=()=>new T,Q=()=>new C,X=o=>new $(o);function I(o){return r.WithBrowserCtx(t=>{const s=[],e=()=>s.forEach(a=>a());return o(({effect:a="opaque",mode:i="capturing",onClickOutside:d,onEscape:p,content:f,container:h="body"})=>{h==="body"&&(t=t.makePortal("body"));const c=F();c.listenOnClosed(e);let v=()=>{},b=()=>{};const g=E=>{E.key==="Escape"&&(p?.(),c.close())},y=()=>{d?.(),c.close()},A=E=>{v(),b(),E==="capturing"?(document.addEventListener("keydown",g),v=()=>document.removeEventListener("keydown",g),t.element.addEventListener("mousedown",y),b=()=>t.element.removeEventListener("mousedown",y)):(v=()=>{},b=()=>{})},u=r.Value.on(i,A);s.push(u),s.push(()=>{c.dispose(),v(),b()});const l=()=>{const E=new Set;for(const m of t.element.querySelectorAll(":scope > :not([data-overlay])"))m.hasAttribute("inert")?E.add(m):m.setAttribute("inert","");return s.push(()=>{for(const m of t.element.querySelectorAll(":scope > :not([data-overlay])"))E.has(m)||m.removeAttribute("inert");E.clear()}),document.activeElement?.blur?.(),r.html.div(r.WithElement(m=>c.setElement(m)),r.dataAttr.status(c.status.map(String)),r.dataAttr.overlay("true"),r.attr.class(r.computedOf(a??"opaque",i)((m,L)=>`bc-overlay bc-overlay--effect-${m} bc-overlay--mode-${L}`)),f)},x=r.render(l(),t.element,{disposeWithParent:!0,clear:!1,providers:t.providers});s.push(x),w.g(()=>c.open())},e)})}function W(o,t){const{size:s="md",dismissable:e=!0,showCloseButton:n=!0,onClose:a,overlayEffect:i="opaque",container:d="body",position:p="center"}=o;return I((f,h)=>{let c=()=>{};return t(g=>{c=h;const y=r.prop("capturing");r.Value.on(e,m=>{y.set(m?"capturing":"non-capturing")});const A=r.computedOf(g.header!=null,n)((m,L)=>m||L),u=q.sessionId("modal"),l=`${u}-header`,x=`${u}-body`,E=r.html.div(r.attr.class(r.computedOf(s,p)((m,L)=>`bc-modal bc-modal--size-${m} bc-modal--container-${d} bc-modal--position-${L}`)),r.attr.role("dialog"),r.aria.modal(!0),...g.header?[r.aria.labelledby(l)]:[],r.aria.describedby(x),r.attr.tabindex(-1),r.attr.id(u),r.dataAttr.focusTrap("true"),r.on.mousedown(m=>m.stopPropagation()),V({escapeDeactivates:!1,initialFocus:()=>{const m=document.getElementById(u);if(!m)return null;const L=m.querySelector('[aria-label="Close modal"]');if(L)return L;const S=m.querySelector('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');return S||m}}),r.html.div(r.attr.class("bc-modal__content"),r.When(A,()=>r.html.div(r.attr.class("bc-modal__header"),r.html.div(r.attr.class("bc-modal__title"),...g.header?[r.attr.id(l)]:[],g.header),r.When(n,()=>r.Use(O.BeatUII18n,m=>q.CloseButton({size:"sm",label:m.$.closeModal,onClick:()=>{c(),h()}}))))),r.html.div(r.attr.class("bc-modal__body"),r.attr.id(x),g.body),g.footer&&r.html.div(r.attr.class("bc-modal__footer"),g.footer)));f({mode:y,effect:i??"opaque",container:d,content:E,onClickOutside:()=>{a?.(),h()},onEscape:()=>{a?.(),h()}})},()=>{c(),h()})})}function Y(o,t){const{confirmText:s,cancelText:e,onConfirm:n,onCancel:a,...i}=o;return r.Use(O.BeatUII18n,d=>W({showCloseButton:!1,...i},(p,f)=>{const h=()=>{n?.(),f()},c=()=>{a?.(),f()};return t(b=>{p({body:b,footer:r.Fragment(r.attr.class("bc-modal__actions"),O.Button({variant:"outline",onClick:c},r.coalesce(e,d.$.cancel)),O.Button({color:"primary",variant:"filled",onClick:h},r.coalesce(s,d.$.confirm)))})},f)}))}exports.AnimatedToggle=K;exports.AnimatedToggleClass=D;exports.BooleanValidator=C;exports.ConfirmModal=Y;exports.FocusTrap=V;exports.Modal=W;exports.ObjectValidator=$;exports.Overlay=I;exports.StringValidator=T;exports.boolean=Q;exports.createStandardSchema=j;exports.object=X;exports.string=J;exports.useAnimatedElementToggle=F;exports.useAnimatedToggle=B;exports.useFocusTrap=U;exports.useTimedToggle=z;
@@ -1,7 +1,7 @@
1
1
  import { WithElement as S, OnDispose as z, prop as R, computedOf as w, Fragment as M, attr as g, WithBrowserCtx as J, Value as U, render as Q, html as k, dataAttr as B, aria as V, on as X, When as q, Use as H, coalesce as I } from "@tempots/dom";
2
2
  import { g as $, T as _ } from "./timer-DzWb416P.js";
3
- import { s as Y, C as Z } from "./notice-Cpso9PgQ.js";
4
- import { a as K, B as P } from "./translations-g3qGTkzw.js";
3
+ import { s as Y, C as Z } from "./notice-BCio7XSW.js";
4
+ import { a as K, B as P } from "./translations-BUTBIDsS.js";
5
5
  const ee = [
6
6
  "a[href]",
7
7
  "button:not([disabled])",
@@ -1,4 +1,4 @@
1
- import { f as o } from "./translations-g3qGTkzw.js";
1
+ import { f as o } from "./translations-BUTBIDsS.js";
2
2
  const s = {
3
3
  loadingExtended: "Laden, even geduld",
4
4
  loadingShort: "Laden...",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-DM5R5VZ0.cjs"),t={loadingExtended:"Laden, even geduld",loadingShort:"Laden...",locale:"Landinstelling",iconDescription:"Pictogram",loadingIcon:"Laadpictogram",failedToLoadIcon:"Pictogram laden mislukt",editLabel:"Bewerken",selectOne:"Selecteer een",selectMany:"Selecteer meerdere",noResults:"Geen resultaten",passwordPlaceholderText:"Geheim wachtwoord",togglePasswordVisibility:"Wachtwoord zichtbaarheid wisselen",toggleMenu:"Menu wisselen",toggleAside:"Zijpaneel wisselen",mainNavigation:"Hoofdnavigatie",sidebar:"Zijbalk",closeDrawer:"Lade sluiten",closeModal:"Modaal sluiten",confirm:"Bevestigen",cancel:"Annuleren",addLabel:"Toevoegen",removeItem:"Item verwijderen",currentLocale:"Nederlands",ar:"Arabisch",de:"Duits",en:"Engels",es:"Spaans",fr:"Frans",hi:"Hindi",it:"Italiaans",ja:"Japans",ko:"Koreaans",nl:"Nederlands",pl:"Pools",pt:"Portugees",ru:"Russisch",tr:"Turks",vi:"Vietnamees",zh:"Chinees",he:"Hebreeuws",fa:"Perzisch",ur:"Urdu",emailPlaceholderText:"Voer je e-mail in",incrementValue:"Waarde verhogen",decrementValue:"Waarde verlagen",dropZoneInstructions:e=>e?"Klik om te kiezen of sleep bestanden hierheen, of druk op Enter of Spatie om bestandskiezer te openen":"Sleep bestanden hierheen",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Bestand verwijderen",clearAllFiles:"Alle bestanden wissen",clearValue:"Waarde wissen",unknownType:"Onbekend type",filesInputInstructions:(e,n,l)=>{let a=e==null||e>1?"Klik om te kiezen of sleep bestanden hierheen":"Klik om te kiezen of sleep een bestand hierheen";if(e||n){const i=[];if(e!=null&&e>1&&i.push(`tot ${e} bestanden`),n&&l){const o=r.formatFileSize(n,{units:l});i.push(`max ${o} elk`)}i.length>0&&(a+=` (${i.join(", ")})`)}return a},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"PDF laden...",loadFailed:"PDF laden mislukt",invalidPdf:"Ongeldig PDF-bestand",pageOutOfRange:(e,n)=>`Pagina ${e} valt buiten bereik (1-${n})`,renderFailed:"PDF-pagina weergeven mislukt"}};exports.default=t;exports.nl=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-hMQlZmD4.cjs"),t={loadingExtended:"Laden, even geduld",loadingShort:"Laden...",locale:"Landinstelling",iconDescription:"Pictogram",loadingIcon:"Laadpictogram",failedToLoadIcon:"Pictogram laden mislukt",editLabel:"Bewerken",selectOne:"Selecteer een",selectMany:"Selecteer meerdere",noResults:"Geen resultaten",passwordPlaceholderText:"Geheim wachtwoord",togglePasswordVisibility:"Wachtwoord zichtbaarheid wisselen",toggleMenu:"Menu wisselen",toggleAside:"Zijpaneel wisselen",mainNavigation:"Hoofdnavigatie",sidebar:"Zijbalk",closeDrawer:"Lade sluiten",closeModal:"Modaal sluiten",confirm:"Bevestigen",cancel:"Annuleren",addLabel:"Toevoegen",removeItem:"Item verwijderen",currentLocale:"Nederlands",ar:"Arabisch",de:"Duits",en:"Engels",es:"Spaans",fr:"Frans",hi:"Hindi",it:"Italiaans",ja:"Japans",ko:"Koreaans",nl:"Nederlands",pl:"Pools",pt:"Portugees",ru:"Russisch",tr:"Turks",vi:"Vietnamees",zh:"Chinees",he:"Hebreeuws",fa:"Perzisch",ur:"Urdu",emailPlaceholderText:"Voer je e-mail in",incrementValue:"Waarde verhogen",decrementValue:"Waarde verlagen",dropZoneInstructions:e=>e?"Klik om te kiezen of sleep bestanden hierheen, of druk op Enter of Spatie om bestandskiezer te openen":"Sleep bestanden hierheen",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Bestand verwijderen",clearAllFiles:"Alle bestanden wissen",clearValue:"Waarde wissen",unknownType:"Onbekend type",filesInputInstructions:(e,n,l)=>{let a=e==null||e>1?"Klik om te kiezen of sleep bestanden hierheen":"Klik om te kiezen of sleep een bestand hierheen";if(e||n){const i=[];if(e!=null&&e>1&&i.push(`tot ${e} bestanden`),n&&l){const o=r.formatFileSize(n,{units:l});i.push(`max ${o} elk`)}i.length>0&&(a+=` (${i.join(", ")})`)}return a},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"PDF laden...",loadFailed:"PDF laden mislukt",invalidPdf:"Ongeldig PDF-bestand",pageOutOfRange:(e,n)=>`Pagina ${e} valt buiten bereik (1-${n})`,renderFailed:"PDF-pagina weergeven mislukt"}};exports.default=t;exports.nl=t;
@@ -1,5 +1,5 @@
1
1
  import { Use as q, coalesce as Q, aria as x, attr as o, html as f, on as E, Value as C, Empty as _, computedOf as k, When as O, dataAttr as R, input as te, emitValue as F, prop as I, Fragment as P, emitValueAsNumber as ne, Unless as ie, Ensure as re } from "@tempots/dom";
2
- import { a as z, B as ae, I as N, b as W, c as le, C as X } from "./translations-g3qGTkzw.js";
2
+ import { a as z, B as ae, I as N, b as W, c as le, C as X } from "./translations-BUTBIDsS.js";
3
3
  const K = /* @__PURE__ */ new Map();
4
4
  function H(e) {
5
5
  const s = K.get(e) ?? 0;
@@ -1,2 +1,2 @@
1
- "use strict";const s=require("@tempots/dom"),w=require("./translations-DM5R5VZ0.cjs"),L=new Map;function T(e){const t=L.get(e)??0;return L.set(e,t+1),`${e}-${t}`}const v={notAsked:{type:"NotAsked"},loading(e=void 0){return{type:"Loading",previousValue:e}},success(e){return{type:"AsyncSuccess",value:e}},failure(e){return{type:"AsyncFailure",error:e}},isSuccess(e){return e.type==="AsyncSuccess"},isFailure(e){return e.type==="AsyncFailure"},isNotAsked(e){return e.type==="NotAsked"},isLoading(e){return e.type==="Loading"},getOrElse(e,t){return v.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return v.isSuccess(e)?e.value:t()},getOrNull(e){return v.isSuccess(e)?e.value:null},getOrUndefined(e){return v.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(v.isSuccess(e))return e.value;throw v.isFailure(e)?e.error:new Error("Cannot get value from a not-asked or loading result")},match:(e,{success:t,failure:n,loading:r,notAsked:a=r})=>v.isSuccess(e)?t(e.value):v.isFailure(e)?n(e.error):v.isNotAsked(e)?a():r(e.previousValue),whenSuccess:(e,t)=>(v.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(v.isFailure(e)&&t(e.error),e),equals:(e,t,n={valueEquals:(r,a)=>r===a,errorEquals:(r,a)=>r===a})=>e.type==="AsyncSuccess"&&t.type==="AsyncSuccess"?n.valueEquals(e.value,t.value):e.type==="AsyncFailure"&&t.type==="AsyncFailure"?n.errorEquals(e.error,t.error):e.type==="Loading"&&t.type==="Loading"?n.valueEquals(e.previousValue,t.previousValue):e.type==="NotAsked"&&t.type==="NotAsked",all:e=>{const t=[];for(const n of e)if(v.isSuccess(n))t.push(n.value);else return n;return v.success(t)},ofPromise:async e=>{try{const t=await e;return v.success(t)}catch(t){return v.failure(t instanceof Error?t:new Error(String(t)))}}},O=(e,t)=>e===t||e!==e&&t!==t,S={valid:{type:"valid"},invalid(e){return{type:"invalid",error:e}},isValid(e){return e.type==="valid"},isInvalid(e){return e.type==="invalid"},match:(e,t,n)=>S.isValid(e)?t():n(e.error),toResult:(e,t)=>S.match(e,()=>f.success(t),n=>f.failure(n)),whenValid:(e,t)=>(S.isValid(e)&&t(),e),whenInvalid:(e,t)=>(S.isInvalid(e)&&t(e.error),e)},f={success(e){return{type:"Success",value:e}},failure(e){return{type:"Failure",error:e}},map:(e,t)=>e.type==="Success"?f.success(t(e.value)):e,flatMap:(e,t)=>e.type==="Success"?t(e.value):e,toAsync(e){return f.match(e,t=>v.success(t),t=>v.failure(t))},toValidation(e){return f.match(e,()=>S.valid,t=>S.invalid(t))},isSuccess(e){return e.type==="Success"},isFailure(e){return e.type==="Failure"},getOrElse(e,t){return f.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return f.isSuccess(e)?e.value:t()},getOrNull(e){return f.isSuccess(e)?e.value:null},getOrUndefined(e){return f.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(f.isSuccess(e))return e.value;throw e.error},match:(e,t,n)=>f.isSuccess(e)?t(e.value):n(e.error),whenSuccess:(e,t)=>(f.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(f.isFailure(e)&&t(e.error),e),combine:(e,t,n,r)=>f.match(e,a=>f.match(t,i=>f.success(n(a,i)),i=>f.failure(i)),a=>f.match(t,i=>f.failure(a),i=>f.failure(r(a,i)))),equals:(e,t,n={valueEquals:(r,a)=>r===a,errorEquals:(r,a)=>r===a})=>e.type==="Success"&&t.type==="Success"?n.valueEquals(e.value,t.value):e.type==="Failure"&&t.type==="Failure"?n.errorEquals(e.error,t.error):!1,all:e=>{const t=[];for(const n of e)if(f.isSuccess(n))t.push(n.value);else return n;return f.success(t)}};function N({size:e="sm",icon:t="line-md:close",disabled:n,roundedness:r="full",color:a="base",onClick:i,label:o},...l){return s.Use(w.BeatUII18n,c=>{const p=s.coalesce(o,c.$.closeModal);return w.Button({variant:"text",size:e,roundedness:r,disabled:n,color:a,onClick:i},s.attr.title(p),s.aria.label(p),...l,w.Icon({icon:t,size:e??"sm"}))})}function F(e){return`bc-label bc-label--${e}`}const ee=(...e)=>s.html.span(s.attr.class(F("emphasis")),...e),j=(...e)=>s.html.span(s.attr.class(F("default")),...e),q=(...e)=>s.html.span(s.attr.class(F("muted")),...e),te=(...e)=>s.html.span(s.attr.class(F("danger")),...e),se=e=>{const{value:t,onBlur:n,onChange:r,placeholder:a,disabled:i,id:o,checkedIcon:l,uncheckedIcon:c,iconSize:p="lg"}=e,h=o??T("checkbox"),m=`${h}-label`,k=()=>{if(s.Value.get(i??!1))return;const u=s.Value.get(t);r?.(!u)},g=u=>{s.Value.get(i??!1)||(u.key===" "||u.key==="Enter")&&(u.preventDefault(),k())};return w.InputContainer({baseContainer:!0,growInput:!1,...e,input:s.html.span(s.attr.class("bc-checkbox-input"),s.html.span(s.attr.class("bc-checkbox-input__checkbox"),s.attr.class(s.Value.map(t,u=>u?"bc-checkbox-input__checkbox--checked":"bc-checkbox-input__checkbox--unchecked")),s.attr.class(s.Value.map(i??!1,u=>u?"bc-checkbox-input__checkbox--disabled":"")),s.attr.id(h),s.attr.role("checkbox"),s.attr.tabindex(s.Value.map(i??!1,u=>u?-1:0)),s.aria.checked(t),s.aria.disabled(i),a!=null?s.aria.labelledby(m):s.Empty,s.on.keydown(g),n!=null?s.on.blur(n):s.Empty,w.Icon({icon:s.computedOf(t,l,c)((u,d,b)=>u?d??"akar-icons/check-box-fill":b??"akar-icons/box"),accessibility:"decorative",size:p})),a!=null?s.html.label(s.attr.class("bc-checkbox-input__label"),s.attr.id(m),s.attr.for(h),q(a)):s.Empty)},s.on.click(k))},U=s.html.span(s.attr.class("bc-input-wrapper__required")," *");function ne(e){const t=["bc-input-wrapper"];return e!=="vertical"&&t.push(`bc-input-wrapper--${e}`),t.join(" ")}function re(e,t){const n=["bc-input-wrapper__label-text"];return e?n.push("bc-input-wrapper__label-text--error"):t?n.push("bc-input-wrapper__label-text--disabled"):n.push("bc-input-wrapper__label-text--default"),n.join(" ")}function x(e,t){if(e==="horizontal-fixed"&&t!=null)return`--input-wrapper-label-width: ${t}`}const B=({fullWidth:e=!1,required:t,label:n,labelChildren:r,context:a,description:i,content:o,error:l,labelFor:c,hasError:p,disabled:h,layout:m,labelWidth:k},...g)=>{const u=p??l!=null,d=h??!1,b=m??"vertical",C=T("input-wrapper"),I=i?`${C}-description`:void 0,_=l!=null?`${C}-error`:void 0,A=s.computedOf(b)(y=>y!=="vertical");return s.html.div(s.attr.class(s.Value.map(b,y=>ne(y))),s.attr.class(s.Value.map(e,y=>y?"bc-input-wrapper--full-width":"")),s.When(s.computedOf(b,k??void 0)((y,E)=>x(y,E)!=null),()=>s.attr.style(s.Value.map(s.computedOf(b,k??void 0)((y,E)=>x(y,E)),y=>y))),n!=null||a!=null?s.html.div(s.attr.class("bc-input-wrapper__header"),s.html.div(s.attr.class("bc-input-wrapper__label-section"),s.html.label(s.attr.class("bc-input-wrapper__label"),c!=null?s.attr.for(c):s.Empty,s.html.span(s.attr.class(s.computedOf(u,d)((y,E)=>re(y??!1,E??!1))),n),n!=null&&t?U:s.Empty),s.When(s.computedOf(A,i)((y,E)=>y&&E!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description bc-input-wrapper__description--under-label"),s.attr.id(I),i))),a!=null?j(a):s.Empty,r):s.Empty,s.html.div(s.attr.class("bc-input-wrapper__content"),[I,_].filter(Boolean).length>0?s.dataAttr.describedby([I,_].filter(Boolean).join(" ")):s.Empty,t?s.dataAttr.required("true"):s.Empty,s.When(u,()=>s.dataAttr.invalid("true")),o),s.When(s.computedOf(A,i)((y,E)=>!y&&E!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description"),s.attr.id(I),i)),l!=null?s.When(u,()=>s.html.div(s.attr.class("bc-input-wrapper__error"),s.attr.id(_),s.aria.live("polite"),s.attr.role("alert"),l)):null,...g)};function ae(...e){return s.html.div(s.attr.class("bc-stack"),...e)}const ie=e=>{const t={name:"email",autocomplete:"email",...e},{value:n,before:r,onBlur:a,onChange:i,onInput:o,placeholder:l}=t,c=r??w.InputIcon({icon:"line-md:email",size:e.size,color:"neutral"});return s.Use(w.BeatUII18n,p=>w.InputContainer({...e,before:c,input:s.input.email(w.CommonInputAttributes(t),s.attr.placeholder(s.coalesce(l,p.$.emailPlaceholderText)),s.attr.value(n),s.attr.class("bc-input"),a!=null?s.on.blur(s.emitValue(a)):s.Empty,i!=null?s.on.change(s.emitValue(i)):s.Empty,o!=null?s.on.input(s.emitValue(o)):s.Empty)}))},le=e=>{const{value:t,onBlur:n,onChange:r,onInput:a,before:i,after:o,hasError:l,disabled:c,autocomplete:p,placeholder:h,...m}=e,k={name:"password",disabled:c,...m},g=s.prop(!0),u=s.computedOf(g,p)((d,b)=>d?b??"current-password":"off");return s.Use(w.BeatUII18n,d=>{const b=s.computedOf(d.$.passwordPlaceholderText,g,h)((I,_,A)=>_?"•••••••••••••••":A??I),C=s.html.button(s.attr.type("button"),s.attr.class("bc-input-container__password-toggle"),s.aria.label(d.$.togglePasswordVisibility),s.on.click(()=>g.update(I=>!I)),s.When(g,()=>w.Icon({icon:"line-md:watch"}),()=>w.Icon({icon:"line-md:watch-off"})));return w.InputContainer({before:i,disabled:c,hasError:l,input:s.html.input(w.CommonInputAttributes({...k,autocomplete:u,placeholder:b}),s.When(g,()=>s.Fragment(s.attr.type("password")),()=>s.Fragment(s.attr.type("text"))),s.attr.class("bc-input"),s.attr.value(t),n!=null?s.on.blur(s.emitValue(n)):s.Empty,r!=null?s.on.change(s.emitValue(r)):s.Empty,a!=null?s.on.input(s.emitValue(a)):s.Empty),after:o!=null?s.Fragment(C,o):C})})},W=(e,t)=>()=>{e.markTouched(),t?.()},z=(e,t)=>n=>{e.change(n),t?.(n)};function P(e,t){const{controller:n,onBlur:r,onChange:a,id:i,...o}=t;return e({id:i??n.name,disabled:n.disabled,value:n.signal,hasError:n.errorVisible,name:n.name,...o,onChange:z(n,a),onBlur:W(n,r)})}function oe(e,{id:t,labelFor:n,...r},...a){const i=t??r.controller.name??T("control");return B({...r,labelFor:n??i,content:P(l=>e({...l,id:i}),r)},...a)}function H(e,t){const{toInput:n,fromInput:r,controller:a,...i}=t,o=a.transform(n,r);return P(e,{...i,controller:o})}function ce(e,{id:t,labelFor:n,...r},...a){const i=t??r.controller.name??T("control");return B({...r,labelFor:n??i,content:H(e,{...r,id:i})},...a)}function ue(e){return e.split(".").map(n=>{const r=n.match(/^\[(\d+)\]$/);return r?Number(r[1]):n})}function R(e){return typeof e=="number"?`[${e}]`:`.${e}`}function K(e){if(e.length===0)return"";const[t,...n]=e;return[typeof t=="number"?`[${t}]`:t,...n.map(R)].join("")}function D(e){return function(n){if(n.type==="valid")return n;let r=n.error;for(const a of e)if(r=r?.dependencies?.[a],r==null)return S.valid;return S.invalid(r)}}class V{path;change;signal;status;error;hasError;touched;errorVisible;dirty;dependencyErrors;#e={disabled:s.prop(!1),touched:s.prop(!1)};#s;#t=s.prop(void 0);parent;disabled;#n=[];disabledOrHasErrors;constructor(t,n,r,a,i,o=O){this.path=t,this.change=n,this.signal=r,this.status=a,this.#s=o,this.#t.set(r.value),this.error=a.map(l=>l?.type==="invalid"?l.error?.message:void 0),this.hasError=this.error.map(l=>l!=null),this.touched=this.#e.touched,i.validationMode?this.errorVisible=s.computedOf(this.hasError,this.touched,i.validationMode)((l,c,p)=>p==="continuous"?!!l:!!l&&!!c):this.errorVisible=s.computedOf(this.hasError,this.touched)((l,c)=>!!l&&!!c),this.dirty=s.computedOf(this.signal,this.#t)((l,c)=>!this.#s(l,c)),this.dependencyErrors=a.map(l=>l?.type==="invalid"?l.error?.dependencies:void 0),this.parent=i,this.disabled=s.computedOf(this.#e.disabled,i.disabled)((l,c)=>l||c),this.disabledOrHasErrors=s.computedOf(this.disabled,this.hasError)((l,c)=>l||c),this.onDispose(()=>{this.#e.disabled.dispose(),this.#e.touched.dispose(),this.disabled.dispose(),this.error.dispose(),this.errorVisible.dispose(),this.dirty.dispose(),this.#t.dispose(),this.dependencyErrors.dispose(),this.disabledOrHasErrors.dispose()})}get name(){return K(this.path)}onDispose=t=>{this.#n.push(t)};dispose=()=>{for(const t of this.#n)try{t()}catch(n){console.error("Error in dispose callback:",n)}this.#n.length=0};setDisabled=t=>{this.#e.disabled.set(t)};disable=()=>this.setDisabled(!0);enable=()=>this.setDisabled(!1);markTouched=()=>{this.#e.touched.set(!0)};resetTouched=()=>{this.#e.touched.set(!1)};markPristine=()=>{this.#t.set(this.signal.value)};reset=()=>{this.change(this.#t.value)};array=(t=O)=>new J(this.path,this.change,this.signal,this.status,this.parent,t);object=(t=O)=>new G(this.path,this.change,this.signal,this.status,this.parent,t);transform=(t,n,r=[],a=O)=>new V([...this.path,...r],i=>this.change(n(i)),this.signal.map(t,a),this.status.map(D(r)),this.parent,a);asyncTransform=(t,n,r,a=[],i=O)=>new V([...this.path,...a],o=>{n(o).then(l=>this.change(l))},this.signal.mapAsync(t,r,void 0,i),this.status.map(D(a)),this.parent,i)}class G extends V{#e=new Map;#s=new Map;#t=new Map;#n=s.prop(!1);touchedDeep=this.#n;#a=new Map;#r=new Map;#l=s.prop(!1);dirtyDeep=this.#l;#c;#u;#o=()=>{let t=!1;for(const n of this.#s.values())if(n){t=!0;break}this.#n.set(this.touched.value||t)};constructor(t,n,r,a,i,o){super(t,n,r.map(c=>c??{},o),a,i,o),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const l=this.signal.on(()=>this.#i());this.onDispose(()=>{for(const c of this.#e.values())c.dispose();this.#e.clear();for(const c of this.#t.values())c();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const c of this.#r.values())c();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),l()})}field=t=>{if(this.#e.has(t))return this.#e.get(t);const n=async o=>{this.change({...this.signal.value,[t]:o})},r=new V([...this.path,t],n,this.signal.map(o=>o[t]),this.status.map(D([t])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e.set(t,r);const a=r.touched.on(o=>{this.#s.set(t,o),this.#o()});this.#t.set(t,a);const i=r.dirty.on(o=>{this.#a.set(t,o),this.#i()});return this.#r.set(t,i),r};markAllTouched=()=>{this.markTouched();const t=this.signal.value;for(const n of Object.keys(t))this.field(n).markTouched();for(const n of this.#e.values())n.markTouched()};markAllPristine=()=>{this.markPristine();const t=this.signal.value;for(const n of Object.keys(t))this.field(n).markPristine?.();for(const n of this.#e.values())n.markPristine?.()};#i=()=>{let t=!1;for(const n of this.#a.values())if(n){t=!0;break}this.#l.set(this.dirty.value||t)}}class J extends V{#e=new Array;length;#s=new Map;#t=new Map;#n=s.prop(!1);touchedDeep=this.#n;#a=new Map;#r=new Map;#l=s.prop(!1);dirtyDeep=this.#l;#c;#u;#o=()=>{let t=!1;for(const n of this.#s.values())if(n){t=!0;break}this.#n.set(this.touched.value||t)};constructor(t,n,r,a,i,o){const l=r.map(h=>h??[],o);super(t,n,l,a,i,o);const c=l.on(h=>{const m=this.#e.length-h.length;m>0&&(this.#e.splice(h.length,m).forEach((k,g)=>{const u=h.length+g;k.dispose(),this.#t.get(u)?.(),this.#t.delete(u),this.#s.delete(u),this.#r.get(u)?.(),this.#r.delete(u),this.#a.delete(u)}),this.#o(),this.#i())});this.length=l.map(h=>h.length),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const p=this.signal.on(()=>this.#i());this.onDispose(()=>{for(const h of this.#e)h.dispose();this.length.dispose(),this.#e.length=0,c(),l.dispose();for(const h of this.#t.values())h();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const h of this.#r.values())h();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),p()})}item=t=>{if(this.#e[t])return this.#e[t];const n=async o=>{const l=this.signal.value.slice();l[t]=o,this.change(l)},r=new V([...this.path,t],n,this.signal.map(o=>o[t]),this.status.map(D([t])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e[t]=r;const a=r.touched.on(o=>{this.#s.set(t,o),this.#o()});this.#t.set(t,a);const i=r.dirty.on(o=>{this.#a.set(t,o),this.#i()});return this.#r.set(t,i),r};push=(...t)=>{this.change([...this.signal.value,...t])};pop=()=>{this.splice(this.signal.value.length-1,1)};shift=()=>{this.splice(0,1)};unshift=(...t)=>{this.change([...t,...this.signal.value])};removeAt=t=>{this.splice(t,1)};splice=(t,n)=>{const r=this.signal.value.slice();r.splice(t,n),this.change(r)};move=(t,n,r=1)=>{if(r<1||t===n)return;const a=this.signal.value.slice(),i=a.splice(t,r);a.splice(n,0,...i),this.change(a)};markAllTouched=()=>{this.markTouched();const t=this.signal.value.length;for(let n=0;n<t;n++)this.item(n).markTouched()};markAllPristine=()=>{this.markPristine();const t=this.signal.value.length;for(let n=0;n<t;n++)this.item(n).markPristine?.()};#i=()=>{let t=!1;for(const n of this.#a.values())if(n){t=!0;break}this.#l.set(this.dirty.value||t)}}function Q(e){function t(n){return typeof n=="number"?n:n.toString()}return e.map(n=>typeof n=="object"&&n.key!=null?t(n.key):t(n))}function X(e){const t=e.filter(a=>a.path==null||a.path.length===0).map(a=>a.message),n=e.filter(a=>a.path!=null&&a.path.length>0).reduce((a,i)=>{const o=Q(i.path),l=o.pop();let c=a;for(const p of o)c.dependencies==null&&(c.dependencies={}),c.dependencies[p]==null&&(c.dependencies[p]={}),c=c.dependencies[p];return c.dependencies==null&&(c.dependencies={}),c.dependencies[l]={message:i.message},a},{}),r=t.join(`
1
+ "use strict";const s=require("@tempots/dom"),w=require("./translations-hMQlZmD4.cjs"),L=new Map;function T(e){const t=L.get(e)??0;return L.set(e,t+1),`${e}-${t}`}const v={notAsked:{type:"NotAsked"},loading(e=void 0){return{type:"Loading",previousValue:e}},success(e){return{type:"AsyncSuccess",value:e}},failure(e){return{type:"AsyncFailure",error:e}},isSuccess(e){return e.type==="AsyncSuccess"},isFailure(e){return e.type==="AsyncFailure"},isNotAsked(e){return e.type==="NotAsked"},isLoading(e){return e.type==="Loading"},getOrElse(e,t){return v.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return v.isSuccess(e)?e.value:t()},getOrNull(e){return v.isSuccess(e)?e.value:null},getOrUndefined(e){return v.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(v.isSuccess(e))return e.value;throw v.isFailure(e)?e.error:new Error("Cannot get value from a not-asked or loading result")},match:(e,{success:t,failure:n,loading:r,notAsked:a=r})=>v.isSuccess(e)?t(e.value):v.isFailure(e)?n(e.error):v.isNotAsked(e)?a():r(e.previousValue),whenSuccess:(e,t)=>(v.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(v.isFailure(e)&&t(e.error),e),equals:(e,t,n={valueEquals:(r,a)=>r===a,errorEquals:(r,a)=>r===a})=>e.type==="AsyncSuccess"&&t.type==="AsyncSuccess"?n.valueEquals(e.value,t.value):e.type==="AsyncFailure"&&t.type==="AsyncFailure"?n.errorEquals(e.error,t.error):e.type==="Loading"&&t.type==="Loading"?n.valueEquals(e.previousValue,t.previousValue):e.type==="NotAsked"&&t.type==="NotAsked",all:e=>{const t=[];for(const n of e)if(v.isSuccess(n))t.push(n.value);else return n;return v.success(t)},ofPromise:async e=>{try{const t=await e;return v.success(t)}catch(t){return v.failure(t instanceof Error?t:new Error(String(t)))}}},O=(e,t)=>e===t||e!==e&&t!==t,S={valid:{type:"valid"},invalid(e){return{type:"invalid",error:e}},isValid(e){return e.type==="valid"},isInvalid(e){return e.type==="invalid"},match:(e,t,n)=>S.isValid(e)?t():n(e.error),toResult:(e,t)=>S.match(e,()=>f.success(t),n=>f.failure(n)),whenValid:(e,t)=>(S.isValid(e)&&t(),e),whenInvalid:(e,t)=>(S.isInvalid(e)&&t(e.error),e)},f={success(e){return{type:"Success",value:e}},failure(e){return{type:"Failure",error:e}},map:(e,t)=>e.type==="Success"?f.success(t(e.value)):e,flatMap:(e,t)=>e.type==="Success"?t(e.value):e,toAsync(e){return f.match(e,t=>v.success(t),t=>v.failure(t))},toValidation(e){return f.match(e,()=>S.valid,t=>S.invalid(t))},isSuccess(e){return e.type==="Success"},isFailure(e){return e.type==="Failure"},getOrElse(e,t){return f.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return f.isSuccess(e)?e.value:t()},getOrNull(e){return f.isSuccess(e)?e.value:null},getOrUndefined(e){return f.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(f.isSuccess(e))return e.value;throw e.error},match:(e,t,n)=>f.isSuccess(e)?t(e.value):n(e.error),whenSuccess:(e,t)=>(f.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(f.isFailure(e)&&t(e.error),e),combine:(e,t,n,r)=>f.match(e,a=>f.match(t,i=>f.success(n(a,i)),i=>f.failure(i)),a=>f.match(t,i=>f.failure(a),i=>f.failure(r(a,i)))),equals:(e,t,n={valueEquals:(r,a)=>r===a,errorEquals:(r,a)=>r===a})=>e.type==="Success"&&t.type==="Success"?n.valueEquals(e.value,t.value):e.type==="Failure"&&t.type==="Failure"?n.errorEquals(e.error,t.error):!1,all:e=>{const t=[];for(const n of e)if(f.isSuccess(n))t.push(n.value);else return n;return f.success(t)}};function N({size:e="sm",icon:t="line-md:close",disabled:n,roundedness:r="full",color:a="base",onClick:i,label:o},...l){return s.Use(w.BeatUII18n,c=>{const p=s.coalesce(o,c.$.closeModal);return w.Button({variant:"text",size:e,roundedness:r,disabled:n,color:a,onClick:i},s.attr.title(p),s.aria.label(p),...l,w.Icon({icon:t,size:e??"sm"}))})}function F(e){return`bc-label bc-label--${e}`}const ee=(...e)=>s.html.span(s.attr.class(F("emphasis")),...e),j=(...e)=>s.html.span(s.attr.class(F("default")),...e),q=(...e)=>s.html.span(s.attr.class(F("muted")),...e),te=(...e)=>s.html.span(s.attr.class(F("danger")),...e),se=e=>{const{value:t,onBlur:n,onChange:r,placeholder:a,disabled:i,id:o,checkedIcon:l,uncheckedIcon:c,iconSize:p="lg"}=e,h=o??T("checkbox"),m=`${h}-label`,k=()=>{if(s.Value.get(i??!1))return;const u=s.Value.get(t);r?.(!u)},g=u=>{s.Value.get(i??!1)||(u.key===" "||u.key==="Enter")&&(u.preventDefault(),k())};return w.InputContainer({baseContainer:!0,growInput:!1,...e,input:s.html.span(s.attr.class("bc-checkbox-input"),s.html.span(s.attr.class("bc-checkbox-input__checkbox"),s.attr.class(s.Value.map(t,u=>u?"bc-checkbox-input__checkbox--checked":"bc-checkbox-input__checkbox--unchecked")),s.attr.class(s.Value.map(i??!1,u=>u?"bc-checkbox-input__checkbox--disabled":"")),s.attr.id(h),s.attr.role("checkbox"),s.attr.tabindex(s.Value.map(i??!1,u=>u?-1:0)),s.aria.checked(t),s.aria.disabled(i),a!=null?s.aria.labelledby(m):s.Empty,s.on.keydown(g),n!=null?s.on.blur(n):s.Empty,w.Icon({icon:s.computedOf(t,l,c)((u,d,b)=>u?d??"akar-icons/check-box-fill":b??"akar-icons/box"),accessibility:"decorative",size:p})),a!=null?s.html.label(s.attr.class("bc-checkbox-input__label"),s.attr.id(m),s.attr.for(h),q(a)):s.Empty)},s.on.click(k))},U=s.html.span(s.attr.class("bc-input-wrapper__required")," *");function ne(e){const t=["bc-input-wrapper"];return e!=="vertical"&&t.push(`bc-input-wrapper--${e}`),t.join(" ")}function re(e,t){const n=["bc-input-wrapper__label-text"];return e?n.push("bc-input-wrapper__label-text--error"):t?n.push("bc-input-wrapper__label-text--disabled"):n.push("bc-input-wrapper__label-text--default"),n.join(" ")}function x(e,t){if(e==="horizontal-fixed"&&t!=null)return`--input-wrapper-label-width: ${t}`}const B=({fullWidth:e=!1,required:t,label:n,labelChildren:r,context:a,description:i,content:o,error:l,labelFor:c,hasError:p,disabled:h,layout:m,labelWidth:k},...g)=>{const u=p??l!=null,d=h??!1,b=m??"vertical",C=T("input-wrapper"),I=i?`${C}-description`:void 0,_=l!=null?`${C}-error`:void 0,A=s.computedOf(b)(y=>y!=="vertical");return s.html.div(s.attr.class(s.Value.map(b,y=>ne(y))),s.attr.class(s.Value.map(e,y=>y?"bc-input-wrapper--full-width":"")),s.When(s.computedOf(b,k??void 0)((y,E)=>x(y,E)!=null),()=>s.attr.style(s.Value.map(s.computedOf(b,k??void 0)((y,E)=>x(y,E)),y=>y))),n!=null||a!=null?s.html.div(s.attr.class("bc-input-wrapper__header"),s.html.div(s.attr.class("bc-input-wrapper__label-section"),s.html.label(s.attr.class("bc-input-wrapper__label"),c!=null?s.attr.for(c):s.Empty,s.html.span(s.attr.class(s.computedOf(u,d)((y,E)=>re(y??!1,E??!1))),n),n!=null&&t?U:s.Empty),s.When(s.computedOf(A,i)((y,E)=>y&&E!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description bc-input-wrapper__description--under-label"),s.attr.id(I),i))),a!=null?j(a):s.Empty,r):s.Empty,s.html.div(s.attr.class("bc-input-wrapper__content"),[I,_].filter(Boolean).length>0?s.dataAttr.describedby([I,_].filter(Boolean).join(" ")):s.Empty,t?s.dataAttr.required("true"):s.Empty,s.When(u,()=>s.dataAttr.invalid("true")),o),s.When(s.computedOf(A,i)((y,E)=>!y&&E!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description"),s.attr.id(I),i)),l!=null?s.When(u,()=>s.html.div(s.attr.class("bc-input-wrapper__error"),s.attr.id(_),s.aria.live("polite"),s.attr.role("alert"),l)):null,...g)};function ae(...e){return s.html.div(s.attr.class("bc-stack"),...e)}const ie=e=>{const t={name:"email",autocomplete:"email",...e},{value:n,before:r,onBlur:a,onChange:i,onInput:o,placeholder:l}=t,c=r??w.InputIcon({icon:"line-md:email",size:e.size,color:"neutral"});return s.Use(w.BeatUII18n,p=>w.InputContainer({...e,before:c,input:s.input.email(w.CommonInputAttributes(t),s.attr.placeholder(s.coalesce(l,p.$.emailPlaceholderText)),s.attr.value(n),s.attr.class("bc-input"),a!=null?s.on.blur(s.emitValue(a)):s.Empty,i!=null?s.on.change(s.emitValue(i)):s.Empty,o!=null?s.on.input(s.emitValue(o)):s.Empty)}))},le=e=>{const{value:t,onBlur:n,onChange:r,onInput:a,before:i,after:o,hasError:l,disabled:c,autocomplete:p,placeholder:h,...m}=e,k={name:"password",disabled:c,...m},g=s.prop(!0),u=s.computedOf(g,p)((d,b)=>d?b??"current-password":"off");return s.Use(w.BeatUII18n,d=>{const b=s.computedOf(d.$.passwordPlaceholderText,g,h)((I,_,A)=>_?"•••••••••••••••":A??I),C=s.html.button(s.attr.type("button"),s.attr.class("bc-input-container__password-toggle"),s.aria.label(d.$.togglePasswordVisibility),s.on.click(()=>g.update(I=>!I)),s.When(g,()=>w.Icon({icon:"line-md:watch"}),()=>w.Icon({icon:"line-md:watch-off"})));return w.InputContainer({before:i,disabled:c,hasError:l,input:s.html.input(w.CommonInputAttributes({...k,autocomplete:u,placeholder:b}),s.When(g,()=>s.Fragment(s.attr.type("password")),()=>s.Fragment(s.attr.type("text"))),s.attr.class("bc-input"),s.attr.value(t),n!=null?s.on.blur(s.emitValue(n)):s.Empty,r!=null?s.on.change(s.emitValue(r)):s.Empty,a!=null?s.on.input(s.emitValue(a)):s.Empty),after:o!=null?s.Fragment(C,o):C})})},W=(e,t)=>()=>{e.markTouched(),t?.()},z=(e,t)=>n=>{e.change(n),t?.(n)};function P(e,t){const{controller:n,onBlur:r,onChange:a,id:i,...o}=t;return e({id:i??n.name,disabled:n.disabled,value:n.signal,hasError:n.errorVisible,name:n.name,...o,onChange:z(n,a),onBlur:W(n,r)})}function oe(e,{id:t,labelFor:n,...r},...a){const i=t??r.controller.name??T("control");return B({...r,labelFor:n??i,content:P(l=>e({...l,id:i}),r)},...a)}function H(e,t){const{toInput:n,fromInput:r,controller:a,...i}=t,o=a.transform(n,r);return P(e,{...i,controller:o})}function ce(e,{id:t,labelFor:n,...r},...a){const i=t??r.controller.name??T("control");return B({...r,labelFor:n??i,content:H(e,{...r,id:i})},...a)}function ue(e){return e.split(".").map(n=>{const r=n.match(/^\[(\d+)\]$/);return r?Number(r[1]):n})}function R(e){return typeof e=="number"?`[${e}]`:`.${e}`}function K(e){if(e.length===0)return"";const[t,...n]=e;return[typeof t=="number"?`[${t}]`:t,...n.map(R)].join("")}function D(e){return function(n){if(n.type==="valid")return n;let r=n.error;for(const a of e)if(r=r?.dependencies?.[a],r==null)return S.valid;return S.invalid(r)}}class V{path;change;signal;status;error;hasError;touched;errorVisible;dirty;dependencyErrors;#e={disabled:s.prop(!1),touched:s.prop(!1)};#s;#t=s.prop(void 0);parent;disabled;#n=[];disabledOrHasErrors;constructor(t,n,r,a,i,o=O){this.path=t,this.change=n,this.signal=r,this.status=a,this.#s=o,this.#t.set(r.value),this.error=a.map(l=>l?.type==="invalid"?l.error?.message:void 0),this.hasError=this.error.map(l=>l!=null),this.touched=this.#e.touched,i.validationMode?this.errorVisible=s.computedOf(this.hasError,this.touched,i.validationMode)((l,c,p)=>p==="continuous"?!!l:!!l&&!!c):this.errorVisible=s.computedOf(this.hasError,this.touched)((l,c)=>!!l&&!!c),this.dirty=s.computedOf(this.signal,this.#t)((l,c)=>!this.#s(l,c)),this.dependencyErrors=a.map(l=>l?.type==="invalid"?l.error?.dependencies:void 0),this.parent=i,this.disabled=s.computedOf(this.#e.disabled,i.disabled)((l,c)=>l||c),this.disabledOrHasErrors=s.computedOf(this.disabled,this.hasError)((l,c)=>l||c),this.onDispose(()=>{this.#e.disabled.dispose(),this.#e.touched.dispose(),this.disabled.dispose(),this.error.dispose(),this.errorVisible.dispose(),this.dirty.dispose(),this.#t.dispose(),this.dependencyErrors.dispose(),this.disabledOrHasErrors.dispose()})}get name(){return K(this.path)}onDispose=t=>{this.#n.push(t)};dispose=()=>{for(const t of this.#n)try{t()}catch(n){console.error("Error in dispose callback:",n)}this.#n.length=0};setDisabled=t=>{this.#e.disabled.set(t)};disable=()=>this.setDisabled(!0);enable=()=>this.setDisabled(!1);markTouched=()=>{this.#e.touched.set(!0)};resetTouched=()=>{this.#e.touched.set(!1)};markPristine=()=>{this.#t.set(this.signal.value)};reset=()=>{this.change(this.#t.value)};array=(t=O)=>new J(this.path,this.change,this.signal,this.status,this.parent,t);object=(t=O)=>new G(this.path,this.change,this.signal,this.status,this.parent,t);transform=(t,n,r=[],a=O)=>new V([...this.path,...r],i=>this.change(n(i)),this.signal.map(t,a),this.status.map(D(r)),this.parent,a);asyncTransform=(t,n,r,a=[],i=O)=>new V([...this.path,...a],o=>{n(o).then(l=>this.change(l))},this.signal.mapAsync(t,r,void 0,i),this.status.map(D(a)),this.parent,i)}class G extends V{#e=new Map;#s=new Map;#t=new Map;#n=s.prop(!1);touchedDeep=this.#n;#a=new Map;#r=new Map;#l=s.prop(!1);dirtyDeep=this.#l;#c;#u;#o=()=>{let t=!1;for(const n of this.#s.values())if(n){t=!0;break}this.#n.set(this.touched.value||t)};constructor(t,n,r,a,i,o){super(t,n,r.map(c=>c??{},o),a,i,o),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const l=this.signal.on(()=>this.#i());this.onDispose(()=>{for(const c of this.#e.values())c.dispose();this.#e.clear();for(const c of this.#t.values())c();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const c of this.#r.values())c();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),l()})}field=t=>{if(this.#e.has(t))return this.#e.get(t);const n=async o=>{this.change({...this.signal.value,[t]:o})},r=new V([...this.path,t],n,this.signal.map(o=>o[t]),this.status.map(D([t])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e.set(t,r);const a=r.touched.on(o=>{this.#s.set(t,o),this.#o()});this.#t.set(t,a);const i=r.dirty.on(o=>{this.#a.set(t,o),this.#i()});return this.#r.set(t,i),r};markAllTouched=()=>{this.markTouched();const t=this.signal.value;for(const n of Object.keys(t))this.field(n).markTouched();for(const n of this.#e.values())n.markTouched()};markAllPristine=()=>{this.markPristine();const t=this.signal.value;for(const n of Object.keys(t))this.field(n).markPristine?.();for(const n of this.#e.values())n.markPristine?.()};#i=()=>{let t=!1;for(const n of this.#a.values())if(n){t=!0;break}this.#l.set(this.dirty.value||t)}}class J extends V{#e=new Array;length;#s=new Map;#t=new Map;#n=s.prop(!1);touchedDeep=this.#n;#a=new Map;#r=new Map;#l=s.prop(!1);dirtyDeep=this.#l;#c;#u;#o=()=>{let t=!1;for(const n of this.#s.values())if(n){t=!0;break}this.#n.set(this.touched.value||t)};constructor(t,n,r,a,i,o){const l=r.map(h=>h??[],o);super(t,n,l,a,i,o);const c=l.on(h=>{const m=this.#e.length-h.length;m>0&&(this.#e.splice(h.length,m).forEach((k,g)=>{const u=h.length+g;k.dispose(),this.#t.get(u)?.(),this.#t.delete(u),this.#s.delete(u),this.#r.get(u)?.(),this.#r.delete(u),this.#a.delete(u)}),this.#o(),this.#i())});this.length=l.map(h=>h.length),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const p=this.signal.on(()=>this.#i());this.onDispose(()=>{for(const h of this.#e)h.dispose();this.length.dispose(),this.#e.length=0,c(),l.dispose();for(const h of this.#t.values())h();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const h of this.#r.values())h();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),p()})}item=t=>{if(this.#e[t])return this.#e[t];const n=async o=>{const l=this.signal.value.slice();l[t]=o,this.change(l)},r=new V([...this.path,t],n,this.signal.map(o=>o[t]),this.status.map(D([t])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e[t]=r;const a=r.touched.on(o=>{this.#s.set(t,o),this.#o()});this.#t.set(t,a);const i=r.dirty.on(o=>{this.#a.set(t,o),this.#i()});return this.#r.set(t,i),r};push=(...t)=>{this.change([...this.signal.value,...t])};pop=()=>{this.splice(this.signal.value.length-1,1)};shift=()=>{this.splice(0,1)};unshift=(...t)=>{this.change([...t,...this.signal.value])};removeAt=t=>{this.splice(t,1)};splice=(t,n)=>{const r=this.signal.value.slice();r.splice(t,n),this.change(r)};move=(t,n,r=1)=>{if(r<1||t===n)return;const a=this.signal.value.slice(),i=a.splice(t,r);a.splice(n,0,...i),this.change(a)};markAllTouched=()=>{this.markTouched();const t=this.signal.value.length;for(let n=0;n<t;n++)this.item(n).markTouched()};markAllPristine=()=>{this.markPristine();const t=this.signal.value.length;for(let n=0;n<t;n++)this.item(n).markPristine?.()};#i=()=>{let t=!1;for(const n of this.#a.values())if(n){t=!0;break}this.#l.set(this.dirty.value||t)}}function Q(e){function t(n){return typeof n=="number"?n:n.toString()}return e.map(n=>typeof n=="object"&&n.key!=null?t(n.key):t(n))}function X(e){const t=e.filter(a=>a.path==null||a.path.length===0).map(a=>a.message),n=e.filter(a=>a.path!=null&&a.path.length>0).reduce((a,i)=>{const o=Q(i.path),l=o.pop();let c=a;for(const p of o)c.dependencies==null&&(c.dependencies={}),c.dependencies[p]==null&&(c.dependencies[p]={}),c=c.dependencies[p];return c.dependencies==null&&(c.dependencies={}),c.dependencies[l]={message:i.message},a},{}),r=t.join(`
2
2
  `);return{...n,message:r!=""?r:void 0}}function Y({initialValue:e,onChange:t,validate:n,equals:r,validationMode:a,validateDebounceMs:i}){const o=s.Value.deriveProp(e),l=s.prop(S.valid),c=s.prop(!1),p=s.prop(a??"touchedOrSubmit"),h=d=>{l.set(d)};let m;const k=async d=>{if(n!=null){const b=await n(d);h(b)}},g=async d=>{o.set(d),t?.(d);const b=p.value;if(n!=null){if(b==="onSubmit")return;const C=i??0;C>0?(m&&clearTimeout(m),m=setTimeout(()=>{k(d)},C)):await k(d)}},u=new V([],g,o,l,{disabled:c,validationMode:p},r??O);return u.onDispose(()=>{c.dispose(),o.dispose(),l.dispose(),p.dispose(),m&&clearTimeout(m)}),{controller:u,setStatus:h}}function $(e){return s.Fragment(s.attr.disabled(e.disabled),s.attr.name(e.name))}function he(e,{triggerOn:t="change"}={}){return s.Fragment($(e),s.attr.value(e.signal),(t==="input"?s.on.input:s.on.change)(s.emitValue(e.change)))}function de(e,{triggerOn:t="change"}={}){return s.Fragment($(e),s.attr.valueAsNumber(e.signal),(t==="input"?s.on.input:s.on.change)(s.emitValueAsNumber(e.change)))}function M(e){return e.issues!=null?S.invalid(X(e.issues)):S.valid}async function pe({task:e,errorMessage:t,errorPath:n=["root"],validation:r}){try{const a=await e();return r!=null?r(a):S.valid}catch(a){const i=t??(a instanceof Error?a.message:"Operation failed");return n.length===1&&n[0]==="root"?S.invalid({message:i}):S.invalid({dependencies:Z(n,i)})}}function Z(e,t){if(e.length===1)return{[e[0]]:{message:t}};const[n,...r]=e;return{[n]:{dependencies:Z(r,t)}}}function me({initialValue:e={},schema:t,onSubmit:n=async()=>S.valid,validationMode:r,validateDebounceMs:a}){const{controller:i,setStatus:o}=Y({initialValue:e,validationMode:r??"touchedOrSubmit",validateDebounceMs:a,validate:(r??"touchedOrSubmit")==="onSubmit"||t==null?void 0:async h=>M(await t["~standard"].validate(h))}),l=s.prop(!1),c=i.object();return c.onDispose(l.dispose),{controller:c,setStatus:o,submit:async h=>{if(l.set(!0),h?.preventDefault(),c.markAllTouched(),(r??"touchedOrSubmit")==="onSubmit"){const k=c.signal.value,g=t?.["~standard"].validate;if(g==null){l.set(!1);return}const u=M(await g(k));if(o(u),u.type==="invalid"){l.set(!1);return}}const m=await n(c.signal.value);l.set(!1),m.type==="invalid"&&o(m)},submitting:l}}function fe(e){switch(e){case"success":return"material-symbols:check-circle-outline";case"warning":return"material-symbols:warning-outline";case"danger":return"material-symbols:error-outline";case"info":default:return"material-symbols:info-outline"}}function be(e){switch(e){case"success":return"success";case"warning":return"warning";case"danger":return"danger";case"info":default:return"info"}}function ge(e,t,n,r){const a=["bc-notice",`bc-notice--${e}`,`bc-notice--tone-${t}`];return n&&a.push("bc-notice--dismissible"),r&&r.length>0&&a.push(r),a.join(" ")}function ye({variant:e="info",tone:t="subtle",role:n,title:r,icon:a,closable:i=!1,onDismiss:o,class:l},...c){const p=s.prop(!0);return s.When(p,()=>{const h=s.Value.map(i,u=>!!u||o!=null),m=s.Value.map(e,u=>u??"info"),k=s.Value.map(t,u=>u??"subtle"),g=s.computedOf(n,m)((u,d)=>u??(d==="danger"?"alert":"status"));return s.Use(w.BeatUII18n,u=>s.html.div(s.attr.class(s.computedOf(m,k,h,l)((d,b,C,I)=>ge(d,b,C,I))),s.attr.role(s.Value.map(g,d=>d)),s.Unless(s.Value.map(a,d=>d===!1),()=>s.html.div(s.attr.class("bc-notice__icon"),w.Icon({icon:s.computedOf(a,m)((d,b)=>d===void 0?fe(b):String(d)),size:"md",color:s.Value.map(m,be)}))),s.html.div(s.attr.class("bc-notice__body"),s.Ensure(r,d=>s.html.div(s.attr.class("bc-notice__title"),d)),s.html.div(s.attr.class("bc-notice__content"),...c)),s.When(h,()=>N({size:"xs",label:u.$.closeModal,onClick:()=>{p.set(!1),o?.()}}))))})}exports.ArrayController=J;exports.BaseControl=P;exports.BaseMappedControl=H;exports.CheckboxInput=se;exports.CloseButton=N;exports.Control=oe;exports.Controller=V;exports.DangerLabel=te;exports.EmailInput=ie;exports.EmphasisLabel=ee;exports.InputWrapper=B;exports.Label=j;exports.MappedControl=ce;exports.MutedLabel=q;exports.Notice=ye;exports.O=O;exports.ObjectController=G;exports.PasswordInput=le;exports.RequiredSymbol=U;exports.Stack=ae;exports.a=S;exports.connectCommonAttributes=$;exports.connectNumberInput=de;exports.connectStringInput=he;exports.convertStandardSchemaIssues=X;exports.convertStandardSchemaPathToPath=Q;exports.makeMapValidation=D;exports.makeOnBlurHandler=W;exports.makeOnChangeHandler=z;exports.parsePath=ue;exports.pathToString=K;exports.sessionId=T;exports.standardSchemaResultToValidation=M;exports.taskToValidation=pe;exports.useController=Y;exports.useForm=me;exports.wrapSegment=R;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./translations-DM5R5VZ0.cjs"),l={loadingExtended:"Ładowanie, proszę czekać",loadingShort:"Ładowanie...",locale:"Język",iconDescription:"Ikona",loadingIcon:"Ikona ładowania",failedToLoadIcon:"Nie udało się załadować ikony",editLabel:"Edytuj",selectOne:"Wybierz jeden",selectMany:"Wybierz wiele",noResults:"Brak wyników",passwordPlaceholderText:"Tajne hasło",togglePasswordVisibility:"Przełącz widoczność hasła",toggleMenu:"Przełącz menu",toggleAside:"Przełącz panel boczny",mainNavigation:"Główna nawigacja",sidebar:"Pasek boczny",closeDrawer:"Zamknij szufladę",closeModal:"Zamknij modal",confirm:"Potwierdź",cancel:"Anuluj",addLabel:"Dodaj",removeItem:"Usuń element",currentLocale:"Polski",ar:"Arabski",de:"Niemiecki",en:"Angielski",es:"Hiszpański",fr:"Francuski",hi:"Hindi",it:"Włoski",ja:"Japoński",ko:"Koreański",nl:"Holenderski",pl:"Polski",pt:"Portugalski",ru:"Rosyjski",tr:"Turecki",vi:"Wietnamski",zh:"Chiński",he:"Hebrajski",fa:"Perski",ur:"Urdu",emailPlaceholderText:"Wprowadź adres e-mail",incrementValue:"Zwiększ wartość",decrementValue:"Zmniejsz wartość",dropZoneInstructions:e=>e?"Kliknij aby wybrać lub przeciągnij pliki tutaj, lub naciśnij Enter lub Spację, aby otworzyć selektor plików":"Przeciągnij pliki tutaj",fileSizeUnits:["Bajty","KB","MB","GB","TB"],removeFile:"Usuń plik",clearAllFiles:"Usuń wszystkie pliki",clearValue:"Wyczyść wartość",unknownType:"Nieznany typ",filesInputInstructions:(e,i,o)=>{let n=e==null||e>1?"Kliknij aby wybrać lub przeciągnij pliki tutaj":"Kliknij aby wybrać lub przeciągnij plik tutaj";if(e||i){const a=[];if(e!=null&&e>1&&a.push(`do ${e} plików`),i&&o){const r=t.formatFileSize(i,{units:o});a.push(`maks ${r} każdy`)}a.length>0&&(n+=` (${a.join(", ")})`)}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Ładowanie PDF...",loadFailed:"Nie udało się załadować PDF",invalidPdf:"Nieprawidłowy plik PDF",pageOutOfRange:(e,i)=>`Strona ${e} jest poza zakresem (1-${i})`,renderFailed:"Nie udało się wyrenderować strony PDF"}};exports.default=l;exports.pl=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./translations-hMQlZmD4.cjs"),l={loadingExtended:"Ładowanie, proszę czekać",loadingShort:"Ładowanie...",locale:"Język",iconDescription:"Ikona",loadingIcon:"Ikona ładowania",failedToLoadIcon:"Nie udało się załadować ikony",editLabel:"Edytuj",selectOne:"Wybierz jeden",selectMany:"Wybierz wiele",noResults:"Brak wyników",passwordPlaceholderText:"Tajne hasło",togglePasswordVisibility:"Przełącz widoczność hasła",toggleMenu:"Przełącz menu",toggleAside:"Przełącz panel boczny",mainNavigation:"Główna nawigacja",sidebar:"Pasek boczny",closeDrawer:"Zamknij szufladę",closeModal:"Zamknij modal",confirm:"Potwierdź",cancel:"Anuluj",addLabel:"Dodaj",removeItem:"Usuń element",currentLocale:"Polski",ar:"Arabski",de:"Niemiecki",en:"Angielski",es:"Hiszpański",fr:"Francuski",hi:"Hindi",it:"Włoski",ja:"Japoński",ko:"Koreański",nl:"Holenderski",pl:"Polski",pt:"Portugalski",ru:"Rosyjski",tr:"Turecki",vi:"Wietnamski",zh:"Chiński",he:"Hebrajski",fa:"Perski",ur:"Urdu",emailPlaceholderText:"Wprowadź adres e-mail",incrementValue:"Zwiększ wartość",decrementValue:"Zmniejsz wartość",dropZoneInstructions:e=>e?"Kliknij aby wybrać lub przeciągnij pliki tutaj, lub naciśnij Enter lub Spację, aby otworzyć selektor plików":"Przeciągnij pliki tutaj",fileSizeUnits:["Bajty","KB","MB","GB","TB"],removeFile:"Usuń plik",clearAllFiles:"Usuń wszystkie pliki",clearValue:"Wyczyść wartość",unknownType:"Nieznany typ",filesInputInstructions:(e,i,o)=>{let n=e==null||e>1?"Kliknij aby wybrać lub przeciągnij pliki tutaj":"Kliknij aby wybrać lub przeciągnij plik tutaj";if(e||i){const a=[];if(e!=null&&e>1&&a.push(`do ${e} plików`),i&&o){const r=t.formatFileSize(i,{units:o});a.push(`maks ${r} każdy`)}a.length>0&&(n+=` (${a.join(", ")})`)}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Ładowanie PDF...",loadFailed:"Nie udało się załadować PDF",invalidPdf:"Nieprawidłowy plik PDF",pageOutOfRange:(e,i)=>`Strona ${e} jest poza zakresem (1-${i})`,renderFailed:"Nie udało się wyrenderować strony PDF"}};exports.default=l;exports.pl=l;
@@ -1,4 +1,4 @@
1
- import { f as r } from "./translations-g3qGTkzw.js";
1
+ import { f as r } from "./translations-BUTBIDsS.js";
2
2
  const s = {
3
3
  loadingExtended: "Ładowanie, proszę czekać",
4
4
  loadingShort: "Ładowanie...",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index-BJxozmss.cjs");exports.DEFAULT_FEATURES=r.DEFAULT_FEATURES;exports.ProseMirrorMarkdownInput=r.ProseMirrorMarkdownInput;exports.ProseMirrorToolbar=r.ProseMirrorToolbar;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index-DJ6AuTd_.cjs");exports.DEFAULT_FEATURES=r.DEFAULT_FEATURES;exports.ProseMirrorMarkdownInput=r.ProseMirrorMarkdownInput;exports.ProseMirrorToolbar=r.ProseMirrorToolbar;
@@ -1,4 +1,4 @@
1
- import { D as a, P as s, b as e } from "../index-nqoZcPdT.js";
1
+ import { D as a, P as s, b as e } from "../index-CGoK9M1f.js";
2
2
  export {
3
3
  a as DEFAULT_FEATURES,
4
4
  s as ProseMirrorMarkdownInput,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./translations-DM5R5VZ0.cjs"),t={loadingExtended:"Carregando, por favor aguarde",loadingShort:"Carregando...",locale:"Idioma",iconDescription:"Ícone",loadingIcon:"Ícone de carregamento",failedToLoadIcon:"Falha ao carregar ícone",editLabel:"Editar",selectOne:"Selecionar um",selectMany:"Selecionar vários",noResults:"Sem resultados",passwordPlaceholderText:"Senha Secreta",togglePasswordVisibility:"Alternar visibilidade da senha",toggleMenu:"Alternar menu",toggleAside:"Alternar painel lateral",mainNavigation:"Navegação principal",sidebar:"Barra lateral",closeDrawer:"Fechar gaveta",closeModal:"Fechar modal",confirm:"Confirmar",cancel:"Cancelar",addLabel:"Adicionar",removeItem:"Remover item",currentLocale:"Português",ar:"Árabe",de:"Alemão",en:"Inglês",es:"Espanhol",fr:"Francês",hi:"Hindi",it:"Italiano",ja:"Japonês",ko:"Coreano",nl:"Holandês",pl:"Polonês",pt:"Português",ru:"Russo",tr:"Turco",vi:"Vietnamita",zh:"Chinês",he:"Hebraico",fa:"Persa",ur:"Urdu",emailPlaceholderText:"Digite seu e-mail",incrementValue:"Incrementar valor",decrementValue:"Decrementar valor",dropZoneInstructions:e=>e?"Clique para escolher ou arraste arquivos aqui, ou pressione Enter ou Espaço para abrir o seletor de arquivos":"Arraste arquivos aqui",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Remover arquivo",clearAllFiles:"Limpar todos os arquivos",clearValue:"Limpar valor",unknownType:"Tipo desconhecido",filesInputInstructions:(e,a,o)=>{let i=e==null||e>1?"Clique para escolher ou arraste arquivos aqui":"Clique para escolher ou arraste um arquivo aqui";if(e||a){const r=[];if(e!=null&&e>1&&r.push(`até ${e} arquivos`),a&&o){const l=n.formatFileSize(a,{units:o});r.push(`máx ${l} cada`)}r.length>0&&(i+=` (${r.join(", ")})`)}return i},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Carregando PDF...",loadFailed:"Falha ao carregar PDF",invalidPdf:"Arquivo PDF inválido",pageOutOfRange:(e,a)=>`A página ${e} está fora do intervalo (1-${a})`,renderFailed:"Falha ao renderizar página do PDF"}};exports.default=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./translations-hMQlZmD4.cjs"),t={loadingExtended:"Carregando, por favor aguarde",loadingShort:"Carregando...",locale:"Idioma",iconDescription:"Ícone",loadingIcon:"Ícone de carregamento",failedToLoadIcon:"Falha ao carregar ícone",editLabel:"Editar",selectOne:"Selecionar um",selectMany:"Selecionar vários",noResults:"Sem resultados",passwordPlaceholderText:"Senha Secreta",togglePasswordVisibility:"Alternar visibilidade da senha",toggleMenu:"Alternar menu",toggleAside:"Alternar painel lateral",mainNavigation:"Navegação principal",sidebar:"Barra lateral",closeDrawer:"Fechar gaveta",closeModal:"Fechar modal",confirm:"Confirmar",cancel:"Cancelar",addLabel:"Adicionar",removeItem:"Remover item",currentLocale:"Português",ar:"Árabe",de:"Alemão",en:"Inglês",es:"Espanhol",fr:"Francês",hi:"Hindi",it:"Italiano",ja:"Japonês",ko:"Coreano",nl:"Holandês",pl:"Polonês",pt:"Português",ru:"Russo",tr:"Turco",vi:"Vietnamita",zh:"Chinês",he:"Hebraico",fa:"Persa",ur:"Urdu",emailPlaceholderText:"Digite seu e-mail",incrementValue:"Incrementar valor",decrementValue:"Decrementar valor",dropZoneInstructions:e=>e?"Clique para escolher ou arraste arquivos aqui, ou pressione Enter ou Espaço para abrir o seletor de arquivos":"Arraste arquivos aqui",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Remover arquivo",clearAllFiles:"Limpar todos os arquivos",clearValue:"Limpar valor",unknownType:"Tipo desconhecido",filesInputInstructions:(e,a,o)=>{let i=e==null||e>1?"Clique para escolher ou arraste arquivos aqui":"Clique para escolher ou arraste um arquivo aqui";if(e||a){const r=[];if(e!=null&&e>1&&r.push(`até ${e} arquivos`),a&&o){const l=n.formatFileSize(a,{units:o});r.push(`máx ${l} cada`)}r.length>0&&(i+=` (${r.join(", ")})`)}return i},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Carregando PDF...",loadFailed:"Falha ao carregar PDF",invalidPdf:"Arquivo PDF inválido",pageOutOfRange:(e,a)=>`A página ${e} está fora do intervalo (1-${a})`,renderFailed:"Falha ao renderizar página do PDF"}};exports.default=t;
@@ -1,4 +1,4 @@
1
- import { f as n } from "./translations-g3qGTkzw.js";
1
+ import { f as n } from "./translations-BUTBIDsS.js";
2
2
  const s = {
3
3
  loadingExtended: "Carregando, por favor aguarde",
4
4
  loadingShort: "Carregando...",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./translations-DM5R5VZ0.cjs"),r={loadingExtended:"Загрузка, пожалуйста подождите",loadingShort:"Загрузка...",locale:"Локаль",iconDescription:"Иконка",loadingIcon:"Иконка загрузки",failedToLoadIcon:"Не удалось загрузить иконку",editLabel:"Редактировать",selectOne:"Выберите один",selectMany:"Выберите несколько",noResults:"Нет результатов",passwordPlaceholderText:"Секретный пароль",togglePasswordVisibility:"Переключить видимость пароля",toggleMenu:"Переключить меню",toggleAside:"Переключить боковую панель",mainNavigation:"Основная навигация",sidebar:"Боковая панель",closeDrawer:"Закрыть выдвижную панель",closeModal:"Закрыть модальное окно",confirm:"Подтвердить",cancel:"Отменить",addLabel:"Добавить",removeItem:"Удалить элемент",currentLocale:"Русский",ar:"Арабский",de:"Немецкий",en:"Английский",es:"Испанский",fr:"Французский",hi:"Хинди",it:"Итальянский",ja:"Японский",ko:"Корейский",nl:"Нидерландский",pl:"Польский",pt:"Португальский",ru:"Русский",tr:"Турецкий",vi:"Вьетнамский",zh:"Китайский",he:"Иврит",fa:"Персидский",ur:"Урду",emailPlaceholderText:"Введите электронную почту",incrementValue:"Увеличить значение",decrementValue:"Уменьшить значение",dropZoneInstructions:e=>e?"Нажмите для выбора или перетащите файлы сюда, или нажмите Enter или Пробел, чтобы открыть выбор файлов":"Перетащите файлы сюда",fileSizeUnits:["Байт","КБ","МБ","ГБ","ТБ"],removeFile:"Удалить файл",clearAllFiles:"Очистить все файлы",clearValue:"Очистить значение",unknownType:"Неизвестный тип",filesInputInstructions:(e,o,n)=>{let i=e==null||e>1?"Нажмите для выбора или перетащите файлы сюда":"Нажмите для выбора или перетащите файл сюда";if(e||o){const l=[];if(e!=null&&e>1){let t="файлов";e<=4&&(t="файла"),l.push(`до ${e} ${t}`)}if(o&&n){const t=a.formatFileSize(o,{units:n});l.push(`макс ${t} каждый`)}l.length>0&&(i+=` (${l.join(", ")})`)}return i},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Загрузка PDF...",loadFailed:"Не удалось загрузить PDF",invalidPdf:"Недействительный файл PDF",pageOutOfRange:(e,o)=>`Страница ${e} вне диапазона (1-${o})`,renderFailed:"Не удалось отобразить страницу PDF"}};exports.default=r;exports.ru=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./translations-hMQlZmD4.cjs"),r={loadingExtended:"Загрузка, пожалуйста подождите",loadingShort:"Загрузка...",locale:"Локаль",iconDescription:"Иконка",loadingIcon:"Иконка загрузки",failedToLoadIcon:"Не удалось загрузить иконку",editLabel:"Редактировать",selectOne:"Выберите один",selectMany:"Выберите несколько",noResults:"Нет результатов",passwordPlaceholderText:"Секретный пароль",togglePasswordVisibility:"Переключить видимость пароля",toggleMenu:"Переключить меню",toggleAside:"Переключить боковую панель",mainNavigation:"Основная навигация",sidebar:"Боковая панель",closeDrawer:"Закрыть выдвижную панель",closeModal:"Закрыть модальное окно",confirm:"Подтвердить",cancel:"Отменить",addLabel:"Добавить",removeItem:"Удалить элемент",currentLocale:"Русский",ar:"Арабский",de:"Немецкий",en:"Английский",es:"Испанский",fr:"Французский",hi:"Хинди",it:"Итальянский",ja:"Японский",ko:"Корейский",nl:"Нидерландский",pl:"Польский",pt:"Португальский",ru:"Русский",tr:"Турецкий",vi:"Вьетнамский",zh:"Китайский",he:"Иврит",fa:"Персидский",ur:"Урду",emailPlaceholderText:"Введите электронную почту",incrementValue:"Увеличить значение",decrementValue:"Уменьшить значение",dropZoneInstructions:e=>e?"Нажмите для выбора или перетащите файлы сюда, или нажмите Enter или Пробел, чтобы открыть выбор файлов":"Перетащите файлы сюда",fileSizeUnits:["Байт","КБ","МБ","ГБ","ТБ"],removeFile:"Удалить файл",clearAllFiles:"Очистить все файлы",clearValue:"Очистить значение",unknownType:"Неизвестный тип",filesInputInstructions:(e,o,n)=>{let i=e==null||e>1?"Нажмите для выбора или перетащите файлы сюда":"Нажмите для выбора или перетащите файл сюда";if(e||o){const l=[];if(e!=null&&e>1){let t="файлов";e<=4&&(t="файла"),l.push(`до ${e} ${t}`)}if(o&&n){const t=a.formatFileSize(o,{units:n});l.push(`макс ${t} каждый`)}l.length>0&&(i+=` (${l.join(", ")})`)}return i},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Загрузка PDF...",loadFailed:"Не удалось загрузить PDF",invalidPdf:"Недействительный файл PDF",pageOutOfRange:(e,o)=>`Страница ${e} вне диапазона (1-${o})`,renderFailed:"Не удалось отобразить страницу PDF"}};exports.default=r;exports.ru=r;
@@ -1,4 +1,4 @@
1
- import { f as r } from "./translations-g3qGTkzw.js";
1
+ import { f as r } from "./translations-BUTBIDsS.js";
2
2
  const d = {
3
3
  loadingExtended: "Загрузка, пожалуйста подождите",
4
4
  loadingShort: "Загрузка...",
@@ -1,5 +1,5 @@
1
1
  import { html as c, attr as n, aria as m, WithElement as v, OnDispose as A } from "@tempots/dom";
2
- import { B as x } from "./translations-g3qGTkzw.js";
2
+ import { B as x } from "./translations-BUTBIDsS.js";
3
3
  const l = [
4
4
  "button:not([disabled])",
5
5
  '[role="button"]:not([aria-disabled="true"])',
@@ -1 +1 @@
1
- "use strict";const e=require("@tempots/dom"),h=require("./translations-DM5R5VZ0.cjs"),l=["button:not([disabled])",'[role="button"]:not([aria-disabled="true"])',"a[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", ");function m(...a){return e.html.div(e.attr.class("bc-toolbar"),e.attr.role("toolbar"),e.aria.orientation("horizontal"),e.WithElement(n=>{const f=()=>{const r=Array.from(n.querySelectorAll(l));r.length!==0&&r.forEach((t,o)=>t.setAttribute("tabindex",o===0?"0":"-1"))},c=r=>{const t=Array.from(n.querySelectorAll(l));if(t.length===0)return;const o=t.findIndex(u=>u===document.activeElement);let i=(o===-1?0:o)+r;i<0&&(i=t.length-1),i>=t.length&&(i=0),t.forEach(u=>u.setAttribute("tabindex","-1"));const d=t[i];d.setAttribute("tabindex","0"),d.focus()};setTimeout(f,0);const b=r=>{switch(r.key){case"ArrowRight":r.preventDefault(),c(1);break;case"ArrowLeft":r.preventDefault(),c(-1);break;case"Home":r.preventDefault(),c(-1);{const t=Array.from(n.querySelectorAll(l));if(t.length){t.forEach(s=>s.setAttribute("tabindex","-1"));const o=t[0];o.setAttribute("tabindex","0"),o.focus()}}break;case"End":r.preventDefault();{const t=Array.from(n.querySelectorAll(l));if(t.length){t.forEach(s=>s.setAttribute("tabindex","-1"));const o=t[t.length-1];o.setAttribute("tabindex","0"),o.focus()}}break}};return n.addEventListener("keydown",b),e.OnDispose(()=>{n.removeEventListener("keydown",b)})}),...a)}function v(a,...n){return h.Button({color:"neutral",roundedness:"md",variant:"light",...a},e.attr.class("bc-toolbar__button"),...n)}function A(...a){return e.html.div(e.attr.class("bc-toolbar__group"),e.attr.role("group"),...a)}function x(){return e.html.div(e.attr.class("bc-toolbar__divider"),e.attr.role("separator"),e.aria.orientation("vertical"))}function p(){return e.html.div(e.attr.class("bc-toolbar__spacer"))}exports.Toolbar=m;exports.ToolbarButton=v;exports.ToolbarDivider=x;exports.ToolbarGroup=A;exports.ToolbarSpacer=p;
1
+ "use strict";const e=require("@tempots/dom"),h=require("./translations-hMQlZmD4.cjs"),l=["button:not([disabled])",'[role="button"]:not([aria-disabled="true"])',"a[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", ");function m(...a){return e.html.div(e.attr.class("bc-toolbar"),e.attr.role("toolbar"),e.aria.orientation("horizontal"),e.WithElement(n=>{const f=()=>{const r=Array.from(n.querySelectorAll(l));r.length!==0&&r.forEach((t,o)=>t.setAttribute("tabindex",o===0?"0":"-1"))},c=r=>{const t=Array.from(n.querySelectorAll(l));if(t.length===0)return;const o=t.findIndex(u=>u===document.activeElement);let i=(o===-1?0:o)+r;i<0&&(i=t.length-1),i>=t.length&&(i=0),t.forEach(u=>u.setAttribute("tabindex","-1"));const d=t[i];d.setAttribute("tabindex","0"),d.focus()};setTimeout(f,0);const b=r=>{switch(r.key){case"ArrowRight":r.preventDefault(),c(1);break;case"ArrowLeft":r.preventDefault(),c(-1);break;case"Home":r.preventDefault(),c(-1);{const t=Array.from(n.querySelectorAll(l));if(t.length){t.forEach(s=>s.setAttribute("tabindex","-1"));const o=t[0];o.setAttribute("tabindex","0"),o.focus()}}break;case"End":r.preventDefault();{const t=Array.from(n.querySelectorAll(l));if(t.length){t.forEach(s=>s.setAttribute("tabindex","-1"));const o=t[t.length-1];o.setAttribute("tabindex","0"),o.focus()}}break}};return n.addEventListener("keydown",b),e.OnDispose(()=>{n.removeEventListener("keydown",b)})}),...a)}function v(a,...n){return h.Button({color:"neutral",roundedness:"md",variant:"light",...a},e.attr.class("bc-toolbar__button"),...n)}function A(...a){return e.html.div(e.attr.class("bc-toolbar__group"),e.attr.role("group"),...a)}function x(){return e.html.div(e.attr.class("bc-toolbar__divider"),e.attr.role("separator"),e.aria.orientation("vertical"))}function p(){return e.html.div(e.attr.class("bc-toolbar__spacer"))}exports.Toolbar=m;exports.ToolbarButton=v;exports.ToolbarDivider=x;exports.ToolbarGroup=A;exports.ToolbarSpacer=p;