@vmscloud/moz-ui-components-core 0.1.68 → 0.1.69

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 (38) hide show
  1. package/LICENSE-lucide.txt +43 -0
  2. package/dist/components/code-block/code-block.core.d.ts +39 -0
  3. package/dist/components/code-block/code-syntax.d.ts +24 -0
  4. package/dist/components/code-block/index.d.ts +13 -0
  5. package/dist/components/disclosure/disclosure.core.d.ts +37 -0
  6. package/dist/components/disclosure/index.d.ts +12 -0
  7. package/dist/components/gauge-display/gauge-display.core.d.ts +73 -0
  8. package/dist/components/gauge-display/index.d.ts +12 -0
  9. package/dist/components/icon/icon.core.d.ts +62 -0
  10. package/dist/components/icon/index.d.ts +10 -0
  11. package/dist/components/icon/lucide.generated.d.ts +869 -0
  12. package/dist/components/icon-button/icon-button.core.d.ts +50 -0
  13. package/dist/components/icon-button/index.d.ts +11 -0
  14. package/dist/components/link/index.d.ts +11 -0
  15. package/dist/components/link/link.core.d.ts +31 -0
  16. package/dist/components/metric-card/index.d.ts +11 -0
  17. package/dist/components/metric-card/metric-card.core.d.ts +36 -0
  18. package/dist/components/popup/index.d.ts +1 -0
  19. package/dist/components/popup/popup.core.d.ts +14 -0
  20. package/dist/components/spinner/index.d.ts +10 -0
  21. package/dist/components/spinner/spinner.core.d.ts +33 -0
  22. package/dist/index.cjs +1002 -928
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.ts +8 -0
  25. package/dist/index.js +4546 -3758
  26. package/dist/index.js.map +1 -1
  27. package/dist/locale/types.d.ts +18 -0
  28. package/dist/styles/default/codeblock.css +402 -0
  29. package/dist/styles/default/disclosure.css +360 -0
  30. package/dist/styles/default/gaugedisplay.css +370 -0
  31. package/dist/styles/default/iconbutton.css +371 -0
  32. package/dist/styles/default/index.css +376 -2
  33. package/dist/styles/default/link.css +332 -0
  34. package/dist/styles/default/metriccard.css +356 -0
  35. package/dist/styles/default/numberinput.css +1 -1
  36. package/dist/styles/default/popup.css +1 -1
  37. package/dist/styles/default/spinner.css +348 -0
  38. package/package.json +5 -2
package/dist/index.cjs CHANGED
@@ -1,23 +1,23 @@
1
- "use strict";var wn=Object.defineProperty;var Cn=(e,t,o)=>t in e?wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Ve=(e,t,o)=>Cn(e,typeof t!="symbol"?t+"":t,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("lit-html"),so=require("lit-html/directive.js"),te=require("lit-html/directives/style-map.js"),bn=require("clsx"),Ee=require("lit-html/directives/if-defined.js"),Go=require("lit-html/directives/unsafe-html.js"),uo=require("lit-html/directives/live.js"),Y=require("lit-html/directives/ref.js"),ft=require("dayjs"),yn=require("dayjs/plugin/duration.js"),$n=require("dayjs/plugin/minMax.js"),Sn=require("dayjs/plugin/timezone.js"),kn=require("dayjs/plugin/utc.js"),En=require("dayjs/plugin/isSameOrBefore.js"),Ln=require("dayjs/plugin/isSameOrAfter.js");require("dayjs/locale/ko.js");require("dayjs/locale/en.js");require("dayjs/locale/zh.js");require("dayjs/locale/ja.js");const st=require("@tanstack/virtual-core");var Se=typeof document<"u"?document.currentScript:null;class Yo{constructor(t){Ve(this,"container");Ve(this,"updateScheduled",!1);Ve(this,"mounted",!1);Ve(this,"cleanups",[]);Ve(this,"endMarker",null);this.container=t}mount(){return this.mounted?this:(this.mounted=!0,this.onMount(),this.renderNow(),this)}requestUpdate(){!this.mounted||this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>{this.updateScheduled=!1,this.mounted&&this.renderNow()}))}renderNow(){s.render(this.template(),this.container,this.rootOptions())}rootOptions(){return this.endMarker||(this.endMarker=this.container.appendChild(document.createComment(""))),{renderBefore:this.endMarker}}addCleanup(t){this.cleanups.push(t)}onMount(){}onDestroy(){}destroy(){if(this.mounted){this.mounted=!1,this.onDestroy();for(const t of this.cleanups.splice(0))try{t()}catch{}this.endMarker&&(s.render(s.nothing,this.container,{renderBefore:this.endMarker}),this.endMarker.remove(),this.endMarker=null)}}get isMounted(){return this.mounted}}class Pn{constructor(){Ve(this,"listeners",new Set)}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}emit(){for(const t of this.listeners)t()}clearListeners(){this.listeners.clear()}}class jo{constructor(){Ve(this,"renderers",new Map);Ve(this,"resolver",null);Ve(this,"mounted",new Map)}setResolver(t){this.resolver=t}lookup(t){var o;return this.renderers.get(t)??((o=this.resolver)==null?void 0:o.call(this,t))}register(t,o){this.renderers.set(t,o)}unregister(t){for(const o of Array.from(this.mounted.keys()))(o===t||o.startsWith(`${t}#`))&&this.clear(o);this.renderers.delete(t)}has(t){return this.lookup(t)!==void 0}fill(t,o,n,l){var d,b;const c=this.lookup(o);if(!c)return!1;const r=this.mounted.get(t);if(r){if(r.el===n)return(b=(d=r.handle).update)==null||b.call(d,l),!0;r.handle.dispose(),this.mounted.delete(t)}for(const[a,m]of this.mounted)m.el===n&&(m.handle.dispose(),this.mounted.delete(a));const h=c(n,l);return this.mounted.set(t,{el:n,handle:h}),!0}clear(t){const o=this.mounted.get(t);o&&(o.handle.dispose(),this.mounted.delete(t))}clearAll(){for(const t of Array.from(this.mounted.keys()))this.clear(t)}destroy(){this.clearAll(),this.renderers.clear(),this.resolver=null}get mountedCount(){return this.mounted.size}}class Nt{constructor(){Ve(this,"el",null)}open(t="",o=document.body){return this.el?this.el:(this.el=document.createElement("div"),t&&(this.el.className=t),o.appendChild(this.el),this.el)}close(){this.el&&(this.el.remove(),this.el=null)}get element(){return this.el}get isOpen(){return this.el!==null}}function Mt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function De(e,t=16){return e/t}let To=0;function ot(e=""){return To+=1,`${e}${To}`}const bt=(e,t)=>{const o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(const l of o)if(e[l]!==t[l])return!1;return!0};function ye(e,t){const o={};for(const n of Object.keys(e))t.has(n)||(o[n]=e[n]);return o}function Wt(e){const t={},o={};for(const n of Object.keys(e))n.startsWith("aria-")?t[n]=e[n]:o[n]=e[n];return{aria:t,dom:o}}const Mn=["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth"],xn=new Set(Mn.flatMap(e=>[e,...["Webkit","ms","Moz","O"].map(t=>t+e.charAt(0).toUpperCase()+e.slice(1))]));function zn(e){return e.includes("-")?e.replace(/^-ms-/,"ms-").replace(/-([a-z])/g,(t,o)=>o.toUpperCase()):e}function Ce(e){if(!e)return{};if(typeof e=="object"){const t={};for(const[o,n]of Object.entries(e))t[o]=typeof n=="number"&&n!==0&&!o.startsWith("--")&&!xn.has(zn(o))?`${n}px`:n;return t}if(typeof e=="string"){const t={};for(const o of e.split(";")){const n=o.indexOf(":");n>0&&(t[o.slice(0,n).trim()]=o.slice(n+1).trim())}return t}return{}}function po(e,t,o,n){return e.length>0||t===0||!n||n.getBoundingClientRect().height>0?e:Array.from({length:t},(l,c)=>({index:c,size:o,start:c*o}))}const no={Toast:{close:"닫기"},Chip:{remove:"삭제"},Callout:{dismiss:"닫기"},Notification:{close:"닫기",unread:"읽지 않음"},Popup:{title:"팝업",save:"저장",cancel:"취소",ok:"확인",close:"닫기"},Select:{searchPlaceholder:"검색",emptyText:"데이터가 없습니다",requiredMessage:"{label} 은(는) 필수입니다"},MultiSelect:{search:"검색",selectAll:"전체 선택",selectFiltered:"필터 결과 선택",specificResults:"결과만",specificSelect:"선택만",noData:"데이터가 없습니다",required:"{label} 은(는) 필수입니다",headerFormat:"항목 ({count})"},TreeSelect:{search:"검색",selectAll:"전체 선택",selectFiltered:"필터 결과 선택",specificResults:"결과만",noData:"데이터가 없습니다",showSelectedOnly:"선택한 항목만 표시",expandAll:"모두 펼치기",collapseAll:"모두 접기",required:"{label} 은(는) 필수입니다",headerFormat:"항목 ({count})",expand:"펼치기",collapse:"접기"},Controller:{filterLabel:"조회 조건"},TagInput:{add:"추가",editTag:"{label} 수정",removeTag:"{label} 삭제"},TimePicker:{hour:"시",minute:"분",currentTime:"현재 시간으로 설정"},EmptyState:{customEmptyHeader:"데이터 없음",customEmptyContent:"표시할 데이터가 없습니다.",dataEmptyHeader:"데이터가 없습니다.",dataEmptyContent:"필요한 데이터를 추가해 주세요.",resultEmptyHeader:"설정한 조건에 해당되는 데이터가 없습니다.",resultEmptyContent:`조회 조건이 적절하게 설정되었는지 확인해주세요.
2
- 조회 조건을 변경하였다면, 조회 버튼을 다시 눌러주세요.`,searchEmptyHeader:"검색 결과 없음",searchEmptyContent:"필터 값을 확인하고 다시 시도해 주세요."},TableSelect:{searchPlaceholder:"검색",emptyText:"데이터가 없습니다",requiredMessage:"{label} 은(는) 필수입니다",footerSelect:"선택",footerNavigate:"이동",footerClose:"닫기"},Common:{requiredMessage:"{label} 은(는) 필수입니다"},Grid:{layoutSetting:"보기 설정",filter:"필터",sort:"정렬",customCellStyle:"조건부 서식 설정",reset:"초기화",searchFilter:"검색",newView:"새 뷰",selectAll:"전체 선택",columnPicker:"열 표시/숨김 설정",viewToolbar:"Tool Bar 보기",viewFooter:"Footer 보기",viewGroupPanel:"그룹 패널 보기",resetFilterAndSort:"필터 및 정렬 초기화",defaultView:"기본 뷰",filterPopup:"필터 설정",resetFilter:"필터 초기화",addFilter:"필터 추가",sortingPopup:"정렬 설정",ascending:"오름차순",descending:"내림차순",resetSort:"정렬 초기화",addSort:"정렬 추가",symbolEqual:"같음",symbolNotEqual:"같지 않음",symbolContains:"포함",symbolNotContains:"포함하지 않음",symbolLessThan:"보다 작음",symbolGreaterThan:"보다 큼",symbolLessOrEqual:"이하",symbolGreaterOrEqual:"이상",symbolEmpty:"비어 있음",symbolNotEmpty:"비어 있지 않음",customCellRuleNamePlaceholder:"규칙 이름을 입력하세요",addFormulaCondition:"조건 추가",applicationColumn:"적용 열",backgroundColor:"배경색",fontColor:"글꼴 색",resetCustomCell:"초기화",addFormulaConditionSet:"규칙 추가",customColor:"사용자 지정 색상",formulaConditionSet:"새 규칙",contextFilterAndSort:"필터 및 정렬",contextAddFilter:"필터 추가",contextSelectFilter:"선택 값으로 필터",contextResetColumnFilter:"열 필터 초기화",contextResetColumnSort:"열 정렬 초기화",contextResetColumnAll:"열 필터/정렬 초기화",contextDataCopy:"선택한 데이터 복사",contextDataExcelCopy:"Excel 복사",contextDataWithHeaderCopy:"선택한 데이터 복사 (헤더 포함)",contextPin:"열 고정 / 해제",contextColumnPicker:"열 표시/숨김 설정",contextMoveColumnFirst:"첫 번째 열로 보내기",contextAutoSizeColumns:"열 너비 자동 조정",contextGroupPanel:"그룹 패널",contextGroupToggle:"그룹 접기/펼치기",contextGroupCollapseAll:"모든 그룹 접기",contextGroupExpandAll:"모든 그룹 펼치기",groupPanelPlaceholder:"열을 드래그 앤 드롭하여 그룹을 만듭니다.",contextBulkEdit:"데이터 일괄변경 [{name}]",contextImport:"가져오기",contextImportExcel:"Excel 가져오기 (덮어쓰기)",contextImportExcelAppend:"Excel 가져오기 (추가)",contextExport:"내보내기",contextExportXlsx:"엑셀 내보내기 (xlsx)",contextExportCsv:"CSV 내보내기 (csv)",contextSum:"합계",check:"확인",cancel:"취소",save:"저장",remove:"삭제",close:"닫기",pause:"일시 중지",add:"추가",immediateApply:"바로 적용",warning:"경고",mozWarning:"경고",confirmCancel:"취소하시겠습니까?",alreadyExcelProgress:"Excel 작업이 이미 진행 중입니다.",downloadFail:"다운로드에 실패했습니다.",addDataWithFilterSort:"필터/정렬이 적용된 상태에서 데이터를 추가하시겠습니까?",resetAndAdd:"초기화 후 추가",confirmDeleteGeneral:"{name}을(를) 삭제하시겠습니까?",toastCopySuccess:"복사되었습니다.",toastSaveSuccess:"저장되었습니다.",toastSaveError:"저장에 실패했습니다.",toastResetSuccess:"초기화되었습니다.",toastRequiredVal:"필수 값을 입력하세요.",excelInvalidExcel:"유효하지 않은 Excel 파일입니다.",excelInvalidUpload:"유효하지 않은 업로드 데이터입니다.",downloadFormat:"서식 내려받기",click:"클릭",drag:"드래그",overwriteSelected:"선택한 항목을 덮어쓰시겠습니까?",fileOverwrite:"파일을 덮어쓰시겠습니까?",dropHere:"이 곳을 클릭 또는 파일을 드래그 하세요.",dropHerePrefix:"이 곳을 ",dropHereMiddle:" 또는 파일을 ",dropHereSuffix:" 하세요.",withFormatting:"서식 포함",requestTimedOut:"요청 시간이 초과되었습니다.",serverError:"서버 오류가 발생했습니다.",total:"전체",correct:"정상",error:"오류",success:"성공",fail:"실패",excelExportConfirmLargeData:"대용량 데이터를 내보내시겠습니까?",footerTotalRowCount:"총 개수: {totalRowCount}개",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"평균",aggregateCount:"개수",aggregateMin:"최소",aggregateMax:"최대",aggregateSum:"합계",settings:"설정",collapseToolbar:"툴바 접기",expandToolbar:"툴바 펼치기",searchPrev:"이전 검색 결과",searchNext:"다음 검색 결과",searchGoTo:"결과 번호로 이동",searching:"검색 중...",deleteCondition:"조건 삭제",deleteSort:"정렬 삭제",selectPlaceholder:"선택",byValueLabel:"레이블",decrease:"감소",increase:"증가",selectColor:"색상 선택",noColor:"색상 없음",customColorInput:"직접 입력",alignLeft:"왼쪽 정렬",alignCenter:"가운데 정렬",alignRight:"오른쪽 정렬",alignLabel:"정렬",fontStyleLabel:"글자 스타일",bold:"굵게",italic:"기울임",underline:"밑줄",columnOptions:"컬럼 옵션",showAllColumns:"전체 표시",commonSection:"공통",headerLabelField:"헤더 라벨",pinColumn:"고정",pinLeft:"왼쪽",pinNone:"없음",pinRight:"오른쪽",columnWidthPx:"너비(px)",headerSection:"헤더",cellSection:"셀",fontLabel:"글자",sizeLabel:"크기",displayMask:"표시 형식(마스크)",resetThisColumn:"이 컬럼 초기화",selectColumnHint:"컬럼을 선택하세요",showColumnNamed:"{column} 표시",columnTextColor:"글자색",cellStyleTitle:"셀 스타일",formulaHelp:"수식 도움말",validFormula:"유효한 수식",formulaHint:"컬럼을 선택하거나 값을 입력해 수식을 작성하세요.",ruleName:"규칙 이름",targetColumns:"적용 컬럼",allColumns:"전체 컬럼",colorLabel:"색상",cellBgColor:"배경 색상",cellTextColor:"텍스트 색상",moveUp:"위로",moveDown:"아래로",formulaPlaceholder:"예: [수요수량] > [재고수량] AND [우선순위] < 3",helpColumnRef:"컬럼 참조",helpCompare:"비교",helpArithmetic:"산술",helpLogic:"논리",helpString:"문자열",helpNull:"NULL 체크",helpValue:"값",groupColon:"그룹:",groupEmptyHint:"여기에 컬럼을 추가해 그룹화",addGroupBtn:"+ 그룹 추가",ungroup:"해제",removeGroup:"그룹 제거",excelImportTitle:"Excel 가져오기",processing:"처리 중…",excelPreview:"미리보기 {shown}행 / 총 {total}행+",clientImportFile:"파일에서 가져오기 (클라이언트)",clientExportXlsx:"XLSX (클라이언트)",groupExpand:"그룹 펼치기",groupCollapse:"그룹 접기",fontSizeDefault:"기본",maskGroupNone:"없음",maskGroupNumber:"숫자",maskGroupDate:"날짜",maskGroupString:"문자열",maskNoneText:"마스크 없음",maskNoneDesc:"원본 값 그대로 표시",maskThousandsText:"천 단위 구분 (1,234)",maskThousandsDesc:"예: 1234 → 1,234",maskDecimal2Text:"소수 2자리 (#,##0.00)",maskDecimal2Desc:"예: 1234.5 → 1,234.50",maskKrwText:"원화 (₩1,234)",maskKrwDesc:"예: 1234 → ₩1,234",maskUsdText:"달러 ($1,234.00)",maskUsdDesc:"예: 1234.5 → $1,234.50",maskPercentText:"퍼센트 (12%)",maskPercentDesc:"예: 12 → 12%",maskDateIsoDesc:"예: 2026-05-26",maskDateKoDesc:"예: 2026년 05월 26일",maskDatetimeDesc:"예: 2026-05-26 14:30",maskDateUsDesc:"예: 05/26/2026",maskPhoneText:"전화번호 (010-1234-5678)",maskPhoneDesc:"예: 01012345678 → 010-1234-5678",maskRrnText:"주민등록번호 (000000-0000000)",maskRrnDesc:"예: 9501011234567 → 950101-1234567",maskBizText:"사업자등록번호 (000-00-00000)",maskBizDesc:"예: 1234567890 → 123-45-67890"},GridPivot:{setting:"피봇 설정",gridSetting:"그리드 설정",fieldSetting:"값 필드 설정",showRowTotals:"행 합계 표시",showColumnTotals:"열 합계 표시",subtotalCriteria:"소계 기준",subtotalAggregateField:"소계 집계 필드",totalsBeforeData:"합계 먼저 보기",showZeros:"빈 값 채우기",showOutlineMode:"개요 모드",collapsibleSubtotal:"소계 접기",fieldName:"필드 이름",fieldAggregate:"집계",fieldShowAs:"표시 방식",fieldFormat:"형식",openChart:"차트 열기",selectValueField:"값 필드 선택",none:"없음",sum:"합계",count:"개수",average:"평균",max:"최대값",min:"최소값",range:"범위",std:"표준 편차",var:"분산",stdPop:"모표준 편차",varPop:"모분산",cntAll:"전체 개수",cntNumbers:"숫자 개수",showFirstValue:"첫 번째 값",showLastValue:"마지막 값",noCalculation:"계산 없음",diffRow:"이전 행과의 차이",diffRowPct:"이전 행과의 차이 (%)",diffCol:"이전 열과의 차이",diffColPct:"이전 열과의 차이 (%)",grandtotalPct:"전체 합계 대비 (%)",rowTotalPct:"행 합계 대비 (%)",colTotalPct:"열 합계 대비 (%)",prevRowPct:"이전 행 대비 (%)",prevColPct:"이전 열 대비 (%)",runTot:"누적 합계",runTotPct:"누적 합계 (%)",generalFormat:"일반",int:"정수",float:"실수",currency:"통화",percentage:"백분율 (정수)",percentageDot2:"백분율 (실수)",thousands:"천 단위",millions:"백만 단위",billions:"십억 단위",subtotal:"소계",grandtotal:"전체 합계",grandtotalValue:"총합계",category:"범주",chartType:"차트 유형",chartXAxis:"X축 범주",chartYAxis:"Y축 범주",categoryName:"카테고리",barChart:"막대 차트",lineChart:"꺾은선 차트",lineSymbolChart:"기호 꺾은선 차트",areaChart:"영역 차트",chartRenderingErrorHeader:"차트 렌더링 오류",chartRenderingErrorContent:"차트를 표시할 수 없습니다.",contextPivotExportXlsx:"화면 내보내기 (xlsx)",contextPivotExportOriginXlsx:"원본 데이터 내보내기 (xlsx)",contextPivotExportOriginCsv:"원본 데이터 내보내기 (csv)",row:"행",column:"열",value:"값",filter:"필터",searchFieldPlaceholder:"필드 검색...",dropZoneRowPlaceholder:"행 축 필드를 드래그하세요",dropZoneColumnPlaceholder:"열 축 필드를 드래그하세요",dropZoneValuePlaceholder:"값 필드를 드래그하세요",dropZoneFilterPlaceholder:"필터 필드를 드래그하세요",update:"업데이트",selectFieldForReport:"보고서에 추가할 필드 선택:",dragFieldsBetweenAreas:"아래 영역 사이에 필드를 끌어 놓으십시오:",valueSummaryCriteria:"값 요약 기준",roundRound:"반올림",roundFloor:"내림",roundCeil:"올림",roundTrunc:"절삭",roundingMode:"반올림 모드",decimalPlaces:"소수점 자리수",decimalUnlimited:"제한 없음",showOriginalValue:"원본값 병기",back:"뒤로",parentRowPct:"상위 행 그룹(%)",parentColPct:"상위 열 그룹(%)",rankAsc:"오름차순 순위",rankDesc:"내림차순 순위",index:"인덱스",showTotalsGrand:"합계",showTotalsSub:"부분합",fieldPanelSetting:"필드 설정",colSubtotalCriteria:"열 소계 기준",allowRowToggle:"행 확장/축소 허용",allowColToggle:"열 확장/축소 허용",outlineMode:"요약 모드"},Gantt:{searchPlaceholder:"검색",columnSize:"컬럼 크기",rowSize:"행 크기"},Chart:{filterPopup:"필터",resetFilter:"필터 초기화",addFilter:"필터 추가",symbolEqual:"같음",symbolNotEqual:"같지 않음",symbolContains:"포함",symbolNotContains:"포함하지 않음",symbolLessThan:"보다 작음",symbolGreaterThan:"보다 큼",symbolLessOrEqual:"작거나 같음",symbolGreaterOrEqual:"크거나 같음",symbolEmpty:"비어있음",symbolNotEmpty:"비어있지 않음",chartSetting:"차트 설정",chartCategory:"차트 카테고리",chartType:"차트 타입",chartUseZoom:"줌 사용",multiYAxisSetting:"Y축 다중 설정",notUsed:"(사용안함)",chartPopup:"차트 팝업",errorMessage:"데이터를 불러오는 중 오류가 발생했습니다.",valueFieldSetting:"값 필드 설정",valueSummaryCriteria:"값 요약 기준",selectFieldForReport:"보고서에 추가할 필드 선택:",column:"열",row:"행",value:"값",sumValue:"∑ 값",count:"개수",sum:"합계",average:"평균",min:"최소값",max:"최대값",seriesCategory:"일반",pieCategory:"파이",scatterCategory:"산점도",treemapCategory:"트리맵",boxplotCategory:"박스플롯",candlestickCategory:"캔들스틱",barChart:"바 차트",stackBarChart:"스택 바 차트",horizontalStackBarChart:"가로 스택 바 차트",lineChart:"선 차트",lineSymbolChart:"선 차트(심볼)",areaChart:"면적 차트",general:"일반",custom:"사용자 지정",axisCategoryLabel:"축 (범주)",legendSeriesLabel:"범례 (계열)",legendSingleLabel:"범례 (단일 선택)",legendMultiLabel:"범례 (다중 선택 가능)",valueSingleLabel:"값 (단일 선택)",xAxisSingleLabel:"X축 (단일 선택)",yAxisMultiLabel:"Y축 (다중 선택 가능)",notSet:"미지정",legendLimitExceededTitle:"차트 범례 개수가 최대 {limit}개를 초과했습니다.",legendLimitExceededContent:"범례를 {limit}개 이하로 재설정하여 주십시오."},NumberInput:{increase:"값 증가",decrease:"값 감소"},DateInput:{prevDate:"이전 날짜",nextDate:"다음 날짜"},PasswordInput:{showPassword:"비밀번호 표시",hidePassword:"비밀번호 숨기기"},Tab:{closeTab:"{label} 닫기"},SplitPane:{resizeHandle:"영역 크기 조절"},BreadCrumb:{navigation:"탐색 경로"}},Tn={Toast:{close:"Close"},Chip:{remove:"Remove"},Callout:{dismiss:"Dismiss"},Notification:{close:"Close",unread:"Unread"},Popup:{title:"Popup",save:"Save",cancel:"Cancel",ok:"OK",close:"Close"},Select:{searchPlaceholder:"Search",emptyText:"No data",requiredMessage:"{label} is required"},MultiSelect:{search:"Search",selectAll:"Select All",selectFiltered:"Select Filtered",specificResults:"Only Results",specificSelect:"Only",noData:"No data",required:"{label} is required",headerFormat:"ITEMS ({count})"},TreeSelect:{search:"Search",selectAll:"Select All",selectFiltered:"Select Filtered",specificResults:"Only Results",noData:"No data",showSelectedOnly:"Show selected only",expandAll:"Expand All",collapseAll:"Collapse All",required:"{label} is required",headerFormat:"ITEMS ({count})",expand:"Expand",collapse:"Collapse"},Controller:{filterLabel:"Search criteria"},TagInput:{add:"Add",editTag:"Edit {label}",removeTag:"Remove {label}"},TimePicker:{hour:"Hour",minute:"Minute",currentTime:"Current Time"},EmptyState:{customEmptyHeader:"No data",customEmptyContent:"There is no data to display.",dataEmptyHeader:"No data to display",dataEmptyContent:"Please enter the required data.",resultEmptyHeader:"No results",resultEmptyContent:"Check the search conditions and try again.",searchEmptyHeader:"No search results",searchEmptyContent:"Please check the filter value and try again."},TableSelect:{searchPlaceholder:"Search",emptyText:"No data",requiredMessage:"{label} is required",footerSelect:"Select",footerNavigate:"Navigate",footerClose:"Close"},Common:{requiredMessage:"{label} is required"},Grid:{layoutSetting:"Layout Settings",filter:"Filter",sort:"Sort",customCellStyle:"Conditional Formatting",reset:"Reset",searchFilter:"Search",newView:"New View",selectAll:"Select All",columnPicker:"Show/Hide Columns",viewToolbar:"Show Toolbar",viewFooter:"Show Footer",viewGroupPanel:"Show Group Panel",resetFilterAndSort:"Reset Filter & Sort",defaultView:"Default View",filterPopup:"Filter Settings",resetFilter:"Reset Filter",addFilter:"Add Filter",sortingPopup:"Sort Settings",ascending:"Ascending",descending:"Descending",resetSort:"Reset Sort",addSort:"Add Sort",symbolEqual:"Equal",symbolNotEqual:"Not Equal",symbolContains:"Contains",symbolNotContains:"Does Not Contain",symbolLessThan:"Less Than",symbolGreaterThan:"Greater Than",symbolLessOrEqual:"Less Or Equal",symbolGreaterOrEqual:"Greater Or Equal",symbolEmpty:"Empty",symbolNotEmpty:"Not Empty",customCellRuleNamePlaceholder:"Enter rule name",addFormulaCondition:"Add Condition",applicationColumn:"Application Column",backgroundColor:"Background Color",fontColor:"Font Color",resetCustomCell:"Reset",addFormulaConditionSet:"Add Rule",customColor:"Custom Color",formulaConditionSet:"New Rule",contextFilterAndSort:"Filter & Sort",contextAddFilter:"Add Filter",contextSelectFilter:"Filter by Selection",contextResetColumnFilter:"Reset Column Filter",contextResetColumnSort:"Reset Column Sort",contextResetColumnAll:"Reset Column Filter/Sort",contextDataCopy:"Copy",contextDataExcelCopy:"Copy for Excel",contextDataWithHeaderCopy:"Copy with Header",contextPin:"Pin Column",contextColumnPicker:"Column Picker",contextMoveColumnFirst:"Move to First Column",contextAutoSizeColumns:"Auto Size Columns",contextGroupPanel:"Group Panel",contextGroupToggle:"Toggle Collapse",contextGroupCollapseAll:"Collapse All Groups",contextGroupExpandAll:"Expand All Groups",groupPanelPlaceholder:"Drag and drop columns here to create groups.",contextBulkEdit:"Bulk Edit {name}",contextImport:"Import",contextImportExcel:"Import Excel (Overwrite)",contextImportExcelAppend:"Import Excel (Append)",contextExport:"Export",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"Sum",check:"OK",cancel:"Cancel",save:"Save",remove:"Delete",close:"Close",pause:"Pause",add:"Add",immediateApply:"Apply Immediately",warning:"Warning",mozWarning:"Warning",confirmCancel:"Are you sure you want to cancel?",alreadyExcelProgress:"Excel operation is already in progress.",downloadFail:"Download failed.",addDataWithFilterSort:"Add data while filter/sort is applied?",resetAndAdd:"Reset and Add",confirmDeleteGeneral:"Are you sure you want to delete {name}?",toastCopySuccess:"Copied.",toastSaveSuccess:"Saved.",toastSaveError:"Save failed.",toastResetSuccess:"Reset.",toastRequiredVal:"Please enter the required values.",excelInvalidExcel:"Invalid Excel file.",excelInvalidUpload:"Invalid upload data.",downloadFormat:"Download Format",click:"Click",drag:"Drag",overwriteSelected:"Overwrite selected items?",fileOverwrite:"Overwrite the file?",dropHere:"Drop here",dropHerePrefix:"",dropHereMiddle:" here or ",dropHereSuffix:" a file.",withFormatting:"With Formatting",requestTimedOut:"Request timed out.",serverError:"A server error occurred.",total:"Total",correct:"Correct",error:"Error",success:"Success",fail:"Fail",excelExportConfirmLargeData:"Export large data?",footerTotalRowCount:"Total: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"Average",aggregateCount:"Count",aggregateMin:"Min",aggregateMax:"Max",aggregateSum:"Sum",settings:"Settings",collapseToolbar:"Collapse toolbar",expandToolbar:"Expand toolbar",searchPrev:"Previous result",searchNext:"Next result",searchGoTo:"Go to result",searching:"Searching...",deleteCondition:"Delete condition",deleteSort:"Delete sort",selectPlaceholder:"Select",byValueLabel:"Label",decrease:"Decrease",increase:"Increase",selectColor:"Select color",noColor:"No color",customColorInput:"Custom",alignLeft:"Align left",alignCenter:"Align center",alignRight:"Align right",alignLabel:"Align",fontStyleLabel:"Font style",bold:"Bold",italic:"Italic",underline:"Underline",columnOptions:"Column Options",showAllColumns:"Show all",commonSection:"Common",headerLabelField:"Header label",pinColumn:"Pin",pinLeft:"Left",pinNone:"None",pinRight:"Right",columnWidthPx:"Width (px)",headerSection:"Header",cellSection:"Cell",fontLabel:"Font",sizeLabel:"Size",displayMask:"Display format (mask)",resetThisColumn:"Reset this column",selectColumnHint:"Select a column",showColumnNamed:"Show {column}",columnTextColor:"Text color",cellStyleTitle:"Cell Style",formulaHelp:"Formula help",validFormula:"Valid formula",formulaHint:"Select a column or enter a value to build a formula.",ruleName:"Rule name",targetColumns:"Target columns",allColumns:"All columns",colorLabel:"Color",cellBgColor:"Background color",cellTextColor:"Text color",moveUp:"Move up",moveDown:"Move down",formulaPlaceholder:"e.g. [Demand] > [Stock] AND [Priority] < 3",helpColumnRef:"Column ref",helpCompare:"Compare",helpArithmetic:"Arithmetic",helpLogic:"Logic",helpString:"String",helpNull:"NULL check",helpValue:"Value",groupColon:"Group:",groupEmptyHint:"Drag columns here to group",addGroupBtn:"+ Add group",ungroup:"Clear",removeGroup:"Remove group",excelImportTitle:"Excel Import",processing:"Processing…",excelPreview:"Preview {shown} rows / {total} total+",clientImportFile:"Import from file (client)",clientExportXlsx:"XLSX (client)",groupExpand:"Expand group",groupCollapse:"Collapse group",fontSizeDefault:"Default",maskGroupNone:"None",maskGroupNumber:"Number",maskGroupDate:"Date",maskGroupString:"String",maskNoneText:"No mask",maskNoneDesc:"Show raw value",maskThousandsText:"Thousands (1,234)",maskThousandsDesc:"e.g. 1234 → 1,234",maskDecimal2Text:"2 decimals (#,##0.00)",maskDecimal2Desc:"e.g. 1234.5 → 1,234.50",maskKrwText:"KRW (₩1,234)",maskKrwDesc:"e.g. 1234 → ₩1,234",maskUsdText:"USD ($1,234.00)",maskUsdDesc:"e.g. 1234.5 → $1,234.50",maskPercentText:"Percent (12%)",maskPercentDesc:"e.g. 12 → 12%",maskDateIsoDesc:"e.g. 2026-05-26",maskDateKoDesc:"e.g. 2026-05-26",maskDatetimeDesc:"e.g. 2026-05-26 14:30",maskDateUsDesc:"e.g. 05/26/2026",maskPhoneText:"Phone (010-1234-5678)",maskPhoneDesc:"e.g. 01012345678 → 010-1234-5678",maskRrnText:"RRN (000000-0000000)",maskRrnDesc:"e.g. 9501011234567 → 950101-1234567",maskBizText:"Business No. (000-00-00000)",maskBizDesc:"e.g. 1234567890 → 123-45-67890"},GridPivot:{setting:"Pivot Settings",gridSetting:"Grid Settings",fieldSetting:"Field Settings",showRowTotals:"Show Row Totals",showColumnTotals:"Show Column Totals",subtotalCriteria:"Subtotal Criteria",subtotalAggregateField:"Subtotal Aggregate Field",totalsBeforeData:"Show Totals Before Data",showZeros:"Show Zeros",showOutlineMode:"Outline Mode",collapsibleSubtotal:"Collapsible Subtotal",fieldName:"Field Name",fieldAggregate:"Aggregate",fieldShowAs:"Show As",fieldFormat:"Format",openChart:"Open Chart",selectValueField:"Select Value Field",none:"None",sum:"Sum",count:"Count",average:"Average",max:"Max",min:"Min",range:"Range",std:"Std Dev",var:"Variance",stdPop:"Pop Std Dev",varPop:"Pop Variance",cntAll:"Count All",cntNumbers:"Count Numbers",showFirstValue:"First Value",showLastValue:"Last Value",noCalculation:"No Calculation",diffRow:"Diff from Previous Row",diffRowPct:"Diff from Previous Row (%)",diffCol:"Diff from Previous Column",diffColPct:"Diff from Previous Column (%)",grandtotalPct:"% of Grand Total",rowTotalPct:"% of Row Total",colTotalPct:"% of Column Total",prevRowPct:"% of Previous Row",prevColPct:"% of Previous Column",runTot:"Running Total",runTotPct:"Running Total (%)",generalFormat:"General",int:"Integer",float:"Decimal",currency:"Currency",percentage:"Percentage (Integer)",percentageDot2:"Percentage (Decimal)",thousands:"Thousands",millions:"Millions",billions:"Billions",subtotal:"Subtotal",grandtotal:"Grand Total",grandtotalValue:"Grand Total",category:"Category",chartType:"Chart Type",chartXAxis:"X Axis",chartYAxis:"Y Axis",categoryName:"Category Name",barChart:"Bar Chart",lineChart:"Line Chart",lineSymbolChart:"Symbol Line Chart",areaChart:"Area Chart",chartRenderingErrorHeader:"Chart Rendering Error",chartRenderingErrorContent:"Unable to display the chart.",contextPivotExportXlsx:"View Export (xlsx)",contextPivotExportOriginXlsx:"Source Data Export (xlsx)",contextPivotExportOriginCsv:"Source Data Export (csv)",row:"Rows",column:"Columns",value:"Values",filter:"Filters",searchFieldPlaceholder:"Search fields...",dropZoneRowPlaceholder:"Drag row axis fields here",dropZoneColumnPlaceholder:"Drag column axis fields here",dropZoneValuePlaceholder:"Drag value fields here",dropZoneFilterPlaceholder:"Drag filter fields here",update:"Update",selectFieldForReport:"Choose fields to add to report:",dragFieldsBetweenAreas:"Drag fields between areas below:",valueSummaryCriteria:"Summarize Values By",roundRound:"Round",roundFloor:"Floor",roundCeil:"Ceil",roundTrunc:"Truncate",roundingMode:"Rounding mode",decimalPlaces:"Decimal places",decimalUnlimited:"No limit",showOriginalValue:"Show original value",back:"Back",parentRowPct:"% of Parent Row Group",parentColPct:"% of Parent Column Group",rankAsc:"Rank Ascending",rankDesc:"Rank Descending",index:"Index",showTotalsGrand:"Grand Totals",showTotalsSub:"Subtotals",fieldPanelSetting:"Field Settings",colSubtotalCriteria:"Column Subtotal Criteria",allowRowToggle:"Allow Row Expand/Collapse",allowColToggle:"Allow Column Expand/Collapse",outlineMode:"Outline Mode"},Gantt:{searchPlaceholder:"Search",columnSize:"Column Size",rowSize:"Row Size"},Chart:{filterPopup:"Filter",resetFilter:"Reset Filter",addFilter:"Add Filter",symbolEqual:"Equal",symbolNotEqual:"Not Equal",symbolContains:"Contains",symbolNotContains:"Not Contains",symbolLessThan:"Less Than",symbolGreaterThan:"Greater Than",symbolLessOrEqual:"Less or Equal",symbolGreaterOrEqual:"Greater or Equal",symbolEmpty:"Empty",symbolNotEmpty:"Not Empty",chartSetting:"Chart Setting",chartCategory:"Chart Category",chartType:"Chart Type",chartUseZoom:"Use Zoom",multiYAxisSetting:"Multi Y-Axis Setting",notUsed:"(Not Used)",chartPopup:"Chart Popup",errorMessage:"An error occurred while loading data.",valueFieldSetting:"Value Field Setting",valueSummaryCriteria:"Value Summary Criteria",selectFieldForReport:"Select fields to add to the report:",column:"Column",row:"Row",value:"Value",sumValue:"∑ Value",count:"Count",sum:"Sum",average:"Average",min:"Min",max:"Max",seriesCategory:"General",pieCategory:"Pie",scatterCategory:"Scatter",treemapCategory:"Treemap",boxplotCategory:"Boxplot",candlestickCategory:"Candlestick",barChart:"Bar Chart",stackBarChart:"Stack Bar Chart",horizontalStackBarChart:"Horizontal Stack Bar Chart",lineChart:"Line Chart",lineSymbolChart:"Line Chart (Symbol)",areaChart:"Area Chart",general:"General",custom:"Custom",axisCategoryLabel:"Axis (Category)",legendSeriesLabel:"Legend (Series)",legendSingleLabel:"Legend (Single)",legendMultiLabel:"Legend (Multiple)",valueSingleLabel:"Value (Single)",xAxisSingleLabel:"X-Axis (Single)",yAxisMultiLabel:"Y-Axis (Multiple)",notSet:"Not Set",legendLimitExceededTitle:"The number of chart legends has exceeded the maximum of {limit}.",legendLimitExceededContent:"Please reconfigure the legend to {limit} or fewer."},NumberInput:{increase:"Increase value",decrease:"Decrease value"},DateInput:{prevDate:"Previous date",nextDate:"Next date"},PasswordInput:{showPassword:"Show password",hidePassword:"Hide password"},Tab:{closeTab:"Close {label}"},SplitPane:{resizeHandle:"Resize panes"},BreadCrumb:{navigation:"Breadcrumb"}},An={Toast:{close:"关闭"},Chip:{remove:"删除"},Callout:{dismiss:"关闭"},Notification:{close:"关闭",unread:"未读"},Popup:{title:"弹窗",save:"保存",cancel:"取消",ok:"确认",close:"关闭"},Select:{searchPlaceholder:"搜索",emptyText:"暂无数据",requiredMessage:"{label} 为必填项"},MultiSelect:{search:"搜索",selectAll:"全选",selectFiltered:"选择筛选结果",specificResults:"仅结果",specificSelect:"仅选择",noData:"暂无数据",required:"{label} 为必填项",headerFormat:"项目 ({count})"},TreeSelect:{search:"搜索",selectAll:"全选",selectFiltered:"选择筛选结果",specificResults:"仅结果",noData:"暂无数据",showSelectedOnly:"仅显示已选项",expandAll:"全部展开",collapseAll:"全部收起",required:"{label} 为必填项",headerFormat:"项目 ({count})",expand:"展开",collapse:"折叠"},Controller:{filterLabel:"查询条件"},TagInput:{add:"添加",editTag:"编辑 {label}",removeTag:"删除 {label}"},TimePicker:{hour:"时",minute:"分",currentTime:"当前时间"},EmptyState:{customEmptyHeader:"暂无数据",customEmptyContent:"没有可显示的数据。",dataEmptyHeader:"暂无数据",dataEmptyContent:"请输入所需数据。",resultEmptyHeader:"无结果",resultEmptyContent:"请检查搜索条件后重试。",searchEmptyHeader:"无搜索结果",searchEmptyContent:"请检查筛选条件后重试。"},TableSelect:{searchPlaceholder:"搜索",emptyText:"暂无数据",requiredMessage:"{label} 为必填项",footerSelect:"选择",footerNavigate:"移动",footerClose:"关闭"},Common:{requiredMessage:"{label} 为必填项"},Grid:{layoutSetting:"布局设置",filter:"筛选",sort:"排序",customCellStyle:"条件格式设置",reset:"重置",searchFilter:"搜索",newView:"新建视图",selectAll:"全选",columnPicker:"列显示/隐藏设置",viewToolbar:"显示工具栏",viewFooter:"显示页脚",viewGroupPanel:"显示分组面板",resetFilterAndSort:"重置筛选和排序",defaultView:"默认视图",filterPopup:"筛选设置",resetFilter:"重置筛选",addFilter:"添加筛选",sortingPopup:"排序设置",ascending:"升序",descending:"降序",resetSort:"重置排序",addSort:"添加排序",symbolEqual:"等于",symbolNotEqual:"不等于",symbolContains:"包含",symbolNotContains:"不包含",symbolLessThan:"小于",symbolGreaterThan:"大于",symbolLessOrEqual:"小于或等于",symbolGreaterOrEqual:"大于或等于",symbolEmpty:"为空",symbolNotEmpty:"不为空",customCellRuleNamePlaceholder:"请输入规则名称",addFormulaCondition:"添加条件",applicationColumn:"应用列",backgroundColor:"背景色",fontColor:"字体颜色",resetCustomCell:"重置",addFormulaConditionSet:"添加规则",customColor:"自定义颜色",formulaConditionSet:"新建规则",contextFilterAndSort:"筛选和排序",contextAddFilter:"添加筛选",contextSelectFilter:"按选定值筛选",contextResetColumnFilter:"重置列筛选",contextResetColumnSort:"重置列排序",contextResetColumnAll:"重置列筛选/排序",contextDataCopy:"复制",contextDataExcelCopy:"Excel 复制",contextDataWithHeaderCopy:"含表头复制",contextPin:"固定列",contextColumnPicker:"列选择",contextMoveColumnFirst:"移至第一列",contextAutoSizeColumns:"自动调整列宽",contextGroupPanel:"分组面板",contextGroupToggle:"折叠/展开组",contextGroupCollapseAll:"折叠所有组",contextGroupExpandAll:"展开所有组",groupPanelPlaceholder:"将列拖放到此处以创建分组。",contextBulkEdit:"批量编辑 {name}",contextImport:"导入",contextImportExcel:"Excel 导入(覆盖)",contextImportExcelAppend:"Excel 导入(追加)",contextExport:"导出",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"合计",check:"确认",cancel:"取消",save:"保存",remove:"删除",close:"关闭",pause:"暂停",add:"添加",immediateApply:"立即应用",warning:"警告",mozWarning:"警告",confirmCancel:"确定要取消吗?",alreadyExcelProgress:"Excel 操作正在进行中。",downloadFail:"下载失败。",addDataWithFilterSort:"在筛选/排序状态下添加数据?",resetAndAdd:"重置后添加",confirmDeleteGeneral:"确定要删除 {name} 吗?",toastCopySuccess:"已复制。",toastSaveSuccess:"已保存。",toastSaveError:"保存失败。",toastResetSuccess:"已重置。",toastRequiredVal:"请输入必填值。",excelInvalidExcel:"无效的 Excel 文件。",excelInvalidUpload:"无效的上传数据。",downloadFormat:"下载格式",click:"点击",drag:"拖拽",overwriteSelected:"覆盖选定项?",fileOverwrite:"覆盖文件?",dropHere:"拖放到此处",dropHerePrefix:"",dropHereMiddle:"此处或",dropHereSuffix:"文件。",withFormatting:"包含格式",requestTimedOut:"请求超时。",serverError:"服务器发生错误。",total:"总计",correct:"正常",error:"错误",success:"成功",fail:"失败",excelExportConfirmLargeData:"确定导出大量数据?",footerTotalRowCount:"总计: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"平均",aggregateCount:"计数",aggregateMin:"最小值",aggregateMax:"最大值",aggregateSum:"合计",settings:"设置",collapseToolbar:"折叠工具栏",expandToolbar:"展开工具栏",searchPrev:"上一个结果",searchNext:"下一个结果",searchGoTo:"跳转到结果",searching:"搜索中...",deleteCondition:"删除条件",deleteSort:"删除排序",selectPlaceholder:"选择",byValueLabel:"标签",decrease:"减少",increase:"增加",selectColor:"选择颜色",noColor:"无颜色",customColorInput:"自定义输入",alignLeft:"左对齐",alignCenter:"居中对齐",alignRight:"右对齐",alignLabel:"对齐",fontStyleLabel:"字体样式",bold:"加粗",italic:"斜体",underline:"下划线",columnOptions:"列选项",showAllColumns:"全部显示",commonSection:"通用",headerLabelField:"表头标签",pinColumn:"固定",pinLeft:"左",pinNone:"无",pinRight:"右",columnWidthPx:"宽度(px)",headerSection:"表头",cellSection:"单元格",fontLabel:"文字",sizeLabel:"大小",displayMask:"显示格式(掩码)",resetThisColumn:"重置此列",selectColumnHint:"请选择列",showColumnNamed:"显示 {column}",columnTextColor:"文字颜色",cellStyleTitle:"单元格样式",formulaHelp:"公式帮助",validFormula:"有效公式",formulaHint:"选择列或输入值以创建公式。",ruleName:"规则名称",targetColumns:"应用列",allColumns:"全部列",colorLabel:"颜色",cellBgColor:"背景色",cellTextColor:"文字色",moveUp:"上移",moveDown:"下移",formulaPlaceholder:"例: [需求量] > [库存量] AND [优先级] < 3",helpColumnRef:"列引用",helpCompare:"比较",helpArithmetic:"算术",helpLogic:"逻辑",helpString:"字符串",helpNull:"NULL 检查",helpValue:"值",groupColon:"分组:",groupEmptyHint:"将列拖到此处进行分组",addGroupBtn:"+ 添加分组",ungroup:"解除",removeGroup:"移除分组",excelImportTitle:"Excel 导入",processing:"处理中…",excelPreview:"预览 {shown} 行 / 共 {total} 行+",clientImportFile:"从文件导入 (客户端)",clientExportXlsx:"XLSX (客户端)",groupExpand:"展开分组",groupCollapse:"折叠分组",fontSizeDefault:"默认",maskGroupNone:"无",maskGroupNumber:"数字",maskGroupDate:"日期",maskGroupString:"字符串",maskNoneText:"无掩码",maskNoneDesc:"按原值显示",maskThousandsText:"千位分隔 (1,234)",maskThousandsDesc:"例: 1234 → 1,234",maskDecimal2Text:"两位小数 (#,##0.00)",maskDecimal2Desc:"例: 1234.5 → 1,234.50",maskKrwText:"韩元 (₩1,234)",maskKrwDesc:"例: 1234 → ₩1,234",maskUsdText:"美元 ($1,234.00)",maskUsdDesc:"例: 1234.5 → $1,234.50",maskPercentText:"百分比 (12%)",maskPercentDesc:"例: 12 → 12%",maskDateIsoDesc:"例: 2026-05-26",maskDateKoDesc:"例: 2026-05-26",maskDatetimeDesc:"例: 2026-05-26 14:30",maskDateUsDesc:"例: 05/26/2026",maskPhoneText:"电话号码 (010-1234-5678)",maskPhoneDesc:"例: 01012345678 → 010-1234-5678",maskRrnText:"身份证号 (000000-0000000)",maskRrnDesc:"例: 9501011234567 → 950101-1234567",maskBizText:"营业执照号 (000-00-00000)",maskBizDesc:"例: 1234567890 → 123-45-67890"},GridPivot:{setting:"数据透视设置",gridSetting:"网格设置",fieldSetting:"字段设置",showRowTotals:"显示行合计",showColumnTotals:"显示列合计",subtotalCriteria:"小计基准",subtotalAggregateField:"小计汇总字段",totalsBeforeData:"在数据前显示合计",showZeros:"显示零值",showOutlineMode:"大纲模式",collapsibleSubtotal:"可折叠小计",fieldName:"字段名称",fieldAggregate:"汇总",fieldShowAs:"显示方式",fieldFormat:"格式",openChart:"打开图表",selectValueField:"选择值字段",none:"无",sum:"求和",count:"计数",average:"平均值",max:"最大值",min:"最小值",range:"范围",std:"标准差",var:"方差",stdPop:"总体标准差",varPop:"总体方差",cntAll:"全部计数",cntNumbers:"数字计数",showFirstValue:"第一个值",showLastValue:"最后一个值",noCalculation:"无计算",diffRow:"与前一行的差",diffRowPct:"与前一行的差 (%)",diffCol:"与前一列的差",diffColPct:"与前一列的差 (%)",grandtotalPct:"占总计百分比",rowTotalPct:"占行合计百分比",colTotalPct:"占列合计百分比",prevRowPct:"占前一行百分比",prevColPct:"占前一列百分比",runTot:"累计",runTotPct:"累计百分比",generalFormat:"常规",int:"整数",float:"小数",currency:"货币",percentage:"百分比 (整数)",percentageDot2:"百分比 (小数)",thousands:"千位",millions:"百万位",billions:"十亿位",subtotal:"小计",grandtotal:"总计",grandtotalValue:"总合计",category:"类别",chartType:"图表类型",chartXAxis:"X轴",chartYAxis:"Y轴",categoryName:"类别名称",barChart:"柱状图",lineChart:"折线图",lineSymbolChart:"符号折线图",areaChart:"面积图",chartRenderingErrorHeader:"图表渲染错误",chartRenderingErrorContent:"无法显示图表。",contextPivotExportXlsx:"视图导出 (xlsx)",contextPivotExportOriginXlsx:"原始数据导出 (xlsx)",contextPivotExportOriginCsv:"原始数据导出 (csv)",row:"行",column:"列",value:"值",filter:"筛选",searchFieldPlaceholder:"搜索字段...",dropZoneRowPlaceholder:"拖动行轴字段到这里",dropZoneColumnPlaceholder:"拖动列轴字段到这里",dropZoneValuePlaceholder:"拖动值字段到这里",dropZoneFilterPlaceholder:"拖动筛选字段到这里",update:"更新",selectFieldForReport:"选择要添加到报表的字段:",dragFieldsBetweenAreas:"在下面的区域之间拖动字段:",valueSummaryCriteria:"值汇总依据",roundRound:"四舍五入",roundFloor:"向下取整",roundCeil:"向上取整",roundTrunc:"截断",roundingMode:"舍入模式",decimalPlaces:"小数位数",decimalUnlimited:"无限制",showOriginalValue:"并列原始值",back:"返回",parentRowPct:"占上级行组百分比",parentColPct:"占上级列组百分比",rankAsc:"升序排名",rankDesc:"降序排名",index:"索引",showTotalsGrand:"总计",showTotalsSub:"小计",fieldPanelSetting:"字段设置",colSubtotalCriteria:"列小计基准",allowRowToggle:"允许行展开/折叠",allowColToggle:"允许列展开/折叠",outlineMode:"大纲模式"},Gantt:{searchPlaceholder:"搜索",columnSize:"列大小",rowSize:"行大小"},Chart:{filterPopup:"筛选",resetFilter:"重置筛选",addFilter:"添加筛选",symbolEqual:"等于",symbolNotEqual:"不等于",symbolContains:"包含",symbolNotContains:"不包含",symbolLessThan:"小于",symbolGreaterThan:"大于",symbolLessOrEqual:"小于等于",symbolGreaterOrEqual:"大于等于",symbolEmpty:"为空",symbolNotEmpty:"不为空",chartSetting:"图表设置",chartCategory:"图表类别",chartType:"图表类型",chartUseZoom:"使用缩放",multiYAxisSetting:"Y轴多轴设置",notUsed:"(未使用)",chartPopup:"图表弹窗",errorMessage:"加载数据时发生错误。",valueFieldSetting:"值字段设置",valueSummaryCriteria:"值汇总基准",selectFieldForReport:"选择要添加到报表的字段:",column:"列",row:"行",value:"值",sumValue:"∑ 值",count:"计数",sum:"合计",average:"平均",min:"最小值",max:"最大值",seriesCategory:"常规",pieCategory:"饼图",scatterCategory:"散点图",treemapCategory:"树状图",boxplotCategory:"箱线图",candlestickCategory:"K线图",barChart:"柱状图",stackBarChart:"堆叠柱状图",horizontalStackBarChart:"水平堆叠柱状图",lineChart:"折线图",lineSymbolChart:"折线图(符号)",areaChart:"面积图",general:"常规",custom:"自定义",axisCategoryLabel:"轴 (类别)",legendSeriesLabel:"图例 (系列)",legendSingleLabel:"图例 (单选)",legendMultiLabel:"图例 (多选)",valueSingleLabel:"值 (单选)",xAxisSingleLabel:"X轴 (单选)",yAxisMultiLabel:"Y轴 (多选)",notSet:"未指定",legendLimitExceededTitle:"图表图例数量已超过最大值 {limit} 个。",legendLimitExceededContent:"请将图例重新设置为 {limit} 个以内。"},NumberInput:{increase:"增加数值",decrease:"减少数值"},DateInput:{prevDate:"上一个日期",nextDate:"下一个日期"},PasswordInput:{showPassword:"显示密码",hidePassword:"隐藏密码"},Tab:{closeTab:"关闭 {label}"},SplitPane:{resizeHandle:"调整区域大小"},BreadCrumb:{navigation:"面包屑导航"}},Rn={Toast:{close:"閉じる"},Chip:{remove:"削除"},Callout:{dismiss:"閉じる"},Notification:{close:"閉じる",unread:"未読"},Popup:{title:"ポップアップ",save:"保存",cancel:"キャンセル",ok:"OK",close:"閉じる"},Select:{searchPlaceholder:"検索",emptyText:"データがありません",requiredMessage:"{label} は必須です"},MultiSelect:{search:"検索",selectAll:"すべて選択",selectFiltered:"フィルター結果を選択",specificResults:"結果のみ",specificSelect:"選択のみ",noData:"データがありません",required:"{label} は必須です",headerFormat:"項目 ({count})"},TreeSelect:{search:"検索",selectAll:"すべて選択",selectFiltered:"フィルター結果を選択",specificResults:"結果のみ",noData:"データがありません",showSelectedOnly:"選択項目のみ表示",expandAll:"すべて展開",collapseAll:"すべて折りたたむ",required:"{label} は必須です",headerFormat:"項目 ({count})",expand:"展開",collapse:"折りたたむ"},Controller:{filterLabel:"検索条件"},TagInput:{add:"追加",editTag:"{label} を編集",removeTag:"{label} を削除"},TimePicker:{hour:"時",minute:"分",currentTime:"現在時刻"},EmptyState:{customEmptyHeader:"データなし",customEmptyContent:"表示するデータがありません。",dataEmptyHeader:"表示するデータがありません",dataEmptyContent:"必要なデータを入力してください。",resultEmptyHeader:"結果なし",resultEmptyContent:"検索条件を確認して再度お試しください。",searchEmptyHeader:"検索結果なし",searchEmptyContent:"フィルター値を確認して再度お試しください。"},TableSelect:{searchPlaceholder:"検索",emptyText:"データがありません",requiredMessage:"{label} は必須です",footerSelect:"選択",footerNavigate:"移動",footerClose:"閉じる"},Common:{requiredMessage:"{label} は必須です"},Grid:{layoutSetting:"レイアウト設定",filter:"フィルター",sort:"ソート",customCellStyle:"条件付き書式設定",reset:"リセット",searchFilter:"検索",newView:"新しいビュー",selectAll:"すべて選択",columnPicker:"列の表示/非表示設定",viewToolbar:"ツールバー表示",viewFooter:"フッター表示",viewGroupPanel:"グループパネル表示",resetFilterAndSort:"フィルター・ソートリセット",defaultView:"デフォルトビュー",filterPopup:"フィルター設定",resetFilter:"フィルターリセット",addFilter:"フィルター追加",sortingPopup:"ソート設定",ascending:"昇順",descending:"降順",resetSort:"ソートリセット",addSort:"ソート追加",symbolEqual:"等しい",symbolNotEqual:"等しくない",symbolContains:"含む",symbolNotContains:"含まない",symbolLessThan:"より小さい",symbolGreaterThan:"より大きい",symbolLessOrEqual:"以下",symbolGreaterOrEqual:"以上",symbolEmpty:"空",symbolNotEmpty:"空でない",customCellRuleNamePlaceholder:"ルール名を入力してください",addFormulaCondition:"条件追加",applicationColumn:"適用列",backgroundColor:"背景色",fontColor:"フォント色",resetCustomCell:"リセット",addFormulaConditionSet:"ルールを追加",customColor:"カスタム色",formulaConditionSet:"新しいルール",contextFilterAndSort:"フィルター・ソート",contextAddFilter:"フィルター追加",contextSelectFilter:"選択値でフィルター",contextResetColumnFilter:"列フィルターリセット",contextResetColumnSort:"列ソートリセット",contextResetColumnAll:"列フィルター/ソートリセット",contextDataCopy:"コピー",contextDataExcelCopy:"Excelコピー",contextDataWithHeaderCopy:"ヘッダー付きコピー",contextPin:"列固定",contextColumnPicker:"列選択",contextMoveColumnFirst:"最初の列に移動",contextAutoSizeColumns:"列幅自動調整",contextGroupPanel:"グループパネル",contextGroupToggle:"グループ折りたたみ/展開",contextGroupCollapseAll:"すべてのグループを折りたたむ",contextGroupExpandAll:"すべてのグループを展開",groupPanelPlaceholder:"列をドラッグ&ドロップしてグループを作成します。",contextBulkEdit:"{name} 一括編集",contextImport:"インポート",contextImportExcel:"Excelインポート(上書き)",contextImportExcelAppend:"Excelインポート(追加)",contextExport:"エクスポート",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"合計",check:"確認",cancel:"キャンセル",save:"保存",remove:"削除",close:"閉じる",pause:"一時停止",add:"追加",immediateApply:"すぐに適用",warning:"警告",mozWarning:"警告",confirmCancel:"キャンセルしますか?",alreadyExcelProgress:"Excel操作が進行中です。",downloadFail:"ダウンロードに失敗しました。",addDataWithFilterSort:"フィルター/ソート適用中にデータを追加しますか?",resetAndAdd:"リセットして追加",confirmDeleteGeneral:"{name}を削除しますか?",toastCopySuccess:"コピーしました。",toastSaveSuccess:"保存しました。",toastSaveError:"保存に失敗しました。",toastResetSuccess:"リセットしました。",toastRequiredVal:"必須値を入力してください。",excelInvalidExcel:"無効なExcelファイルです。",excelInvalidUpload:"無効なアップロードデータです。",downloadFormat:"フォーマットダウンロード",click:"クリック",drag:"ドラッグ",overwriteSelected:"選択項目を上書きしますか?",fileOverwrite:"ファイルを上書きしますか?",dropHere:"ここにドロップ",dropHerePrefix:"ここを",dropHereMiddle:"またはファイルを",dropHereSuffix:"してください。",withFormatting:"書式付き",requestTimedOut:"リクエストがタイムアウトしました。",serverError:"サーバーエラーが発生しました。",total:"合計",correct:"正常",error:"エラー",success:"成功",fail:"失敗",excelExportConfirmLargeData:"大量データをエクスポートしますか?",footerTotalRowCount:"合計: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"平均",aggregateCount:"件数",aggregateMin:"最小値",aggregateMax:"最大値",aggregateSum:"合計",settings:"設定",collapseToolbar:"ツールバーを折りたたむ",expandToolbar:"ツールバーを展開",searchPrev:"前の検索結果",searchNext:"次の検索結果",searchGoTo:"結果番号へ移動",searching:"検索中...",deleteCondition:"条件を削除",deleteSort:"ソートを削除",selectPlaceholder:"選択",byValueLabel:"ラベル",decrease:"減少",increase:"増加",selectColor:"色を選択",noColor:"色なし",customColorInput:"直接入力",alignLeft:"左揃え",alignCenter:"中央揃え",alignRight:"右揃え",alignLabel:"配置",fontStyleLabel:"文字スタイル",bold:"太字",italic:"斜体",underline:"下線",columnOptions:"列オプション",showAllColumns:"すべて表示",commonSection:"共通",headerLabelField:"ヘッダーラベル",pinColumn:"固定",pinLeft:"左",pinNone:"なし",pinRight:"右",columnWidthPx:"幅(px)",headerSection:"ヘッダー",cellSection:"セル",fontLabel:"文字",sizeLabel:"サイズ",displayMask:"表示形式(マスク)",resetThisColumn:"この列をリセット",selectColumnHint:"列を選択してください",showColumnNamed:"{column} を表示",columnTextColor:"文字色",cellStyleTitle:"セルスタイル",formulaHelp:"数式ヘルプ",validFormula:"有効な数式",formulaHint:"列を選択するか値を入力して数式を作成してください。",ruleName:"ルール名",targetColumns:"適用列",allColumns:"全列",colorLabel:"色",cellBgColor:"背景色",cellTextColor:"文字色",moveUp:"上へ",moveDown:"下へ",formulaPlaceholder:"例: [需要数] > [在庫数] AND [優先度] < 3",helpColumnRef:"列参照",helpCompare:"比較",helpArithmetic:"算術",helpLogic:"論理",helpString:"文字列",helpNull:"NULL チェック",helpValue:"値",groupColon:"グループ:",groupEmptyHint:"ここに列をドラッグしてグループ化",addGroupBtn:"+ グループ追加",ungroup:"解除",removeGroup:"グループ削除",excelImportTitle:"Excel 取り込み",processing:"処理中…",excelPreview:"プレビュー {shown}行 / 全 {total}行+",clientImportFile:"ファイルから取り込み (クライアント)",clientExportXlsx:"XLSX (クライアント)",groupExpand:"グループを展開",groupCollapse:"グループを折りたたむ",fontSizeDefault:"既定",maskGroupNone:"なし",maskGroupNumber:"数値",maskGroupDate:"日付",maskGroupString:"文字列",maskNoneText:"マスクなし",maskNoneDesc:"元の値をそのまま表示",maskThousandsText:"桁区切り (1,234)",maskThousandsDesc:"例: 1234 → 1,234",maskDecimal2Text:"小数2桁 (#,##0.00)",maskDecimal2Desc:"例: 1234.5 → 1,234.50",maskKrwText:"ウォン (₩1,234)",maskKrwDesc:"例: 1234 → ₩1,234",maskUsdText:"ドル ($1,234.00)",maskUsdDesc:"例: 1234.5 → $1,234.50",maskPercentText:"パーセント (12%)",maskPercentDesc:"例: 12 → 12%",maskDateIsoDesc:"例: 2026-05-26",maskDateKoDesc:"例: 2026-05-26",maskDatetimeDesc:"例: 2026-05-26 14:30",maskDateUsDesc:"例: 05/26/2026",maskPhoneText:"電話番号 (010-1234-5678)",maskPhoneDesc:"例: 01012345678 → 010-1234-5678",maskRrnText:"住民登録番号 (000000-0000000)",maskRrnDesc:"例: 9501011234567 → 950101-1234567",maskBizText:"事業者登録番号 (000-00-00000)",maskBizDesc:"例: 1234567890 → 123-45-67890"},GridPivot:{setting:"ピボット設定",gridSetting:"グリッド設定",fieldSetting:"フィールド設定",showRowTotals:"行合計表示",showColumnTotals:"列合計表示",subtotalCriteria:"小計基準",subtotalAggregateField:"小計集計フィールド",totalsBeforeData:"データ前に合計表示",showZeros:"ゼロ表示",showOutlineMode:"アウトラインモード",collapsibleSubtotal:"小計折りたたみ",fieldName:"フィールド名",fieldAggregate:"集計",fieldShowAs:"表示方式",fieldFormat:"形式",openChart:"チャートを開く",selectValueField:"値フィールド選択",none:"なし",sum:"合計",count:"個数",average:"平均",max:"最大値",min:"最小値",range:"範囲",std:"標準偏差",var:"分散",stdPop:"母標準偏差",varPop:"母分散",cntAll:"全個数",cntNumbers:"数値の個数",showFirstValue:"最初の値",showLastValue:"最後の値",noCalculation:"計算なし",diffRow:"前の行との差",diffRowPct:"前の行との差 (%)",diffCol:"前の列との差",diffColPct:"前の列との差 (%)",grandtotalPct:"総計に対する割合",rowTotalPct:"行合計に対する割合",colTotalPct:"列合計に対する割合",prevRowPct:"前の行に対する割合",prevColPct:"前の列に対する割合",runTot:"累計",runTotPct:"累計割合",generalFormat:"一般",int:"整数",float:"小数",currency:"通貨",percentage:"パーセント (整数)",percentageDot2:"パーセント (小数)",thousands:"千単位",millions:"百万単位",billions:"十億単位",subtotal:"小計",grandtotal:"総計",grandtotalValue:"総合計",category:"カテゴリ",chartType:"チャートタイプ",chartXAxis:"X軸",chartYAxis:"Y軸",categoryName:"カテゴリ名",barChart:"棒グラフ",lineChart:"折れ線グラフ",lineSymbolChart:"シンボル折れ線グラフ",areaChart:"エリアチャート",chartRenderingErrorHeader:"チャートレンダリングエラー",chartRenderingErrorContent:"チャートを表示できません。",contextPivotExportXlsx:"ビューエクスポート (xlsx)",contextPivotExportOriginXlsx:"元データエクスポート (xlsx)",contextPivotExportOriginCsv:"元データエクスポート (csv)",row:"行",column:"列",value:"値",filter:"フィルター",searchFieldPlaceholder:"フィールド検索...",dropZoneRowPlaceholder:"行軸フィールドをドラッグしてください",dropZoneColumnPlaceholder:"列軸フィールドをドラッグしてください",dropZoneValuePlaceholder:"値フィールドをドラッグしてください",dropZoneFilterPlaceholder:"フィルターフィールドをドラッグしてください",update:"更新",selectFieldForReport:"レポートに追加するフィールドを選択:",dragFieldsBetweenAreas:"下の領域間にフィールドをドラッグしてください:",valueSummaryCriteria:"値の集計方法",roundRound:"四捨五入",roundFloor:"切り捨て",roundCeil:"切り上げ",roundTrunc:"切り捨て(0方向)",roundingMode:"丸めモード",decimalPlaces:"小数点桁数",decimalUnlimited:"制限なし",showOriginalValue:"元の値を併記",back:"戻る",parentRowPct:"上位行グループ比 (%)",parentColPct:"上位列グループ比 (%)",rankAsc:"昇順ランク",rankDesc:"降順ランク",index:"インデックス",showTotalsGrand:"合計",showTotalsSub:"小計",fieldPanelSetting:"フィールド設定",colSubtotalCriteria:"列小計基準",allowRowToggle:"行の展開/折りたたみ許可",allowColToggle:"列の展開/折りたたみ許可",outlineMode:"アウトラインモード"},Gantt:{searchPlaceholder:"検索",columnSize:"列サイズ",rowSize:"行サイズ"},Chart:{filterPopup:"フィルター",resetFilter:"フィルターリセット",addFilter:"フィルター追加",symbolEqual:"等しい",symbolNotEqual:"等しくない",symbolContains:"含む",symbolNotContains:"含まない",symbolLessThan:"より小さい",symbolGreaterThan:"より大きい",symbolLessOrEqual:"以下",symbolGreaterOrEqual:"以上",symbolEmpty:"空",symbolNotEmpty:"空でない",chartSetting:"チャート設定",chartCategory:"チャートカテゴリ",chartType:"チャートタイプ",chartUseZoom:"ズーム使用",multiYAxisSetting:"Y軸マルチ設定",notUsed:"(使用しない)",chartPopup:"チャートポップアップ",errorMessage:"データの読み込み中にエラーが発生しました。",valueFieldSetting:"値フィールド設定",valueSummaryCriteria:"値集計基準",selectFieldForReport:"レポートに追加するフィールドを選択:",column:"列",row:"行",value:"値",sumValue:"∑ 値",count:"件数",sum:"合計",average:"平均",min:"最小値",max:"最大値",seriesCategory:"一般",pieCategory:"パイ",scatterCategory:"散布図",treemapCategory:"ツリーマップ",boxplotCategory:"ボックスプロット",candlestickCategory:"ローソク足",barChart:"棒グラフ",stackBarChart:"スタック棒グラフ",horizontalStackBarChart:"横スタック棒グラフ",lineChart:"折れ線グラフ",lineSymbolChart:"折れ線グラフ(シンボル)",areaChart:"エリアチャート",general:"一般",custom:"カスタム",axisCategoryLabel:"軸 (カテゴリ)",legendSeriesLabel:"凡例 (シリーズ)",legendSingleLabel:"凡例 (単一選択)",legendMultiLabel:"凡例 (複数選択可)",valueSingleLabel:"値 (単一選択)",xAxisSingleLabel:"X軸 (単一選択)",yAxisMultiLabel:"Y軸 (複数選択可)",notSet:"未指定",legendLimitExceededTitle:"チャートの凡例数が最大 {limit} 件を超えました。",legendLimitExceededContent:"凡例を {limit} 件以下に再設定してください。"},NumberInput:{increase:"値を増やす",decrease:"値を減らす"},DateInput:{prevDate:"前の日付",nextDate:"次の日付"},PasswordInput:{showPassword:"パスワードを表示",hidePassword:"パスワードを非表示"},Tab:{closeTab:"{label} を閉じる"},SplitPane:{resizeHandle:"領域サイズの調整"},BreadCrumb:{navigation:"パンくずリスト"}};let Dn=0;function $e(e){return(t,o,n,l)=>{const c=e.portal?new Nt:null,r=c?c.open():t,h=`h${++Dn}:`,d=new jo;if(l!=null&&l.slots)for(const[j,k]of Object.entries(l.slots))d.register(j,k);l!=null&&l.slotResolver&&d.setResolver(l.slotResolver);const b=new Set(Object.keys(o)),a=l!=null&&l.providedKeys?new Set(l.providedKeys):null,m=j=>{const k=e.defaults;if(!k)return j;const R={...j};for(const X of Object.keys(k))R[X]===void 0&&(R[X]=k[X]);return R};let u=m({...o}),E=(l==null?void 0:l.locale)??no;const x=(l==null?void 0:l.validator)??null,$=[];let P=new Map,L=new Set,g=new Map,i=null;const p={get props(){return u},emit:n,slots:d,requestUpdate:()=>I.requestUpdate(),onCleanup:j=>$.push(j),px:j=>De(j),get locale(){return E},validator:x,controlled:j=>a?a.has(j):b.has(j),slot(j,k){if(!d.has(j))return s.nothing;const R=g.get(j)??0;g.set(j,R+1);const X=`${j}#${R}`;return P.set(X,{name:j,scope:k}),s.html`<span data-moz-slot=${j} data-moz-slot-id=${h+X}></span>`}},y=e.setup(p);class F extends Yo{template(){return P=new Map,g=new Map,y.render()}renderNow(){super.renderNow();let k=null;if(y.renderPortal){const R=y.renderPortal(),X=y.getPortalContainer?y.getPortalContainer():document.body;R===s.nothing||R==null||X==null?i&&i.isOpen&&(s.render(s.nothing,i.element),i.close()):(i||(i=new Nt),k=i.isOpen?i.element:i.open("moz-overlay-portal",X),s.render(R,k))}for(const[R,{name:X,scope:se}]of P){const N=`[data-moz-slot-id="${h+R}"]`;let ne=this.container.querySelector(N);!ne&&k&&(ne=k.querySelector(N)),ne&&d.fill(R,X,ne,se)}for(const R of L)P.has(R)||d.clear(R);L=new Set(P.keys())}flush(){this.isMounted&&this.renderNow()}onDestroy(){for(const k of $.splice(0))try{k()}catch{}d.destroy()}}const I=new F(r);I.mount();let K=!1;const oe=()=>{var j;K||!I.isMounted||(K=!0,(j=y.onMounted)==null||j.call(y,r.firstElementChild))};return l!=null&&l.deferMounted||oe(),{get el(){return r.firstElementChild},update(j,k){k!=null&&k.replace?(u=m({...j}),b.clear()):u=m({...u,...j});for(const R of Object.keys(j))b.add(R);k!=null&&k.sync?I.flush():I.requestUpdate()},destroy(){I.destroy(),c==null||c.close(),i==null||i.close()},setLocale(j){j!==E&&(E=j??no,I.requestUpdate())},api:y.api??{},notifyMounted:oe}}}const In={MozBadge:["dot"],MozBreadCrumb:["showFavorite"],MozButton:["disabled","loading","pressed"],MozCallout:["compact","dismissible","hideIcon","live"],MozCheckBox:["checked","disabled","indeterminate","modelValue","readonly"],MozChip:["disabled","labelInteractive","removable","selected"],MozCollapsible:["disabled","forceMount","open"],MozContextMenu:["disableCloseOnClickBackdrop","noPadding","toBottomCenter","toTopCenter"],MozController:["customQueryParamsPanel","showFavorite","showFilterButton","showPreset"],MozDateInput:["disabled","readonly","required","showSpin"],MozEmptyState:["composed","isCustomState","isReadOnly","useImg"],MozInput:["disabled","isReadOnly","required","useInvalidV2"],MozLabel:["disabled","isReadOnly","required"],MozMultiSelect:["autoSelectNewItems","disabled","inline","loading","preserveMissingValues","readonly","required","selectAllWhenEmpty","useFilter","useSelectAll","useSpecificSelect"],MozNotificationCard:["dismissible","inline","pauseOnHover"],MozNotificationItem:["unread"],MozNumberInput:["disabled","isReadOnly","nullable","required","shortMode","useInvalidV2"],MozPopover:["matchTriggerWidth","open","trapFocus"],MozPopup:["autoPosition","closeOnOutsideClick","disabledConfirmButton","draggable","focusTrap","hideOthers","keepAspectRatio","loading","lockScroll","resizeable","showBackdrop","showCloseButton","showFooterBorder","showHeader","useVShow","visible"],MozRadio:["disabled","iconOnly","required"],MozSelect:["disabled","readonly","required","useFilter","useObjBinding"],MozSlider:["disabled"],MozSplitPane:["horizontal"],MozTab:["closeAble","vertical"],MozTableSelect:["disabled","readonly","required","useFilter","useObjKeyProp"],MozTagInput:["disableDelete","disableUpdate","dynamicSearch","isExpandTop","pushOnBlur","required","simplify"],MozTextArea:["disabled","immediatelyFocus","required"],MozTimePicker:["disabled","required"],MozToast:["composed","dismissible","inline","pauseOnHover","queue","showProgress"],MozToggle:["disabled","readonly","required","visible"],MozTooltip:["arrow","open"],MozTreeSelect:["disabled","readonly","required","useFilter","useMultiSelect","useSelectAll","useSpecificSelect"]};class Vn extends so.Directive{constructor(o){super(o);Ve(this,"prevKeys",[]);Ve(this,"listeners",new Map);if(o.type!==so.PartType.ELEMENT)throw new Error("spread() 는 element 바인딩(`<el ${spread(obj)}>`)에서만 사용할 수 있습니다.")}render(o){return s.nothing}update(o,[n]){const l=o.element,c=n??{};for(const r of this.prevKeys)if(!(r in c))if(this.isEventKey(r)){const h=this.listeners.get(r);h&&l.removeEventListener(this.eventName(r),h),this.listeners.delete(r)}else l.removeAttribute(r);for(const[r,h]of Object.entries(c))if(!(r==="class"||r==="style"||r==="key"||r==="ref"))if(this.isEventKey(r)&&typeof h=="function"){const d=this.eventName(r),b=this.listeners.get(r);b&&l.removeEventListener(d,b),l.addEventListener(d,h),this.listeners.set(r,h)}else h==null?l.removeAttribute(r):r.startsWith("aria-")?l.setAttribute(r,String(h)):h===!1?l.removeAttribute(r):h===!0?l.setAttribute(r,""):l.setAttribute(r,String(h));return this.prevKeys=Object.keys(c),s.noChange}isEventKey(o){return o.length>2&&o.startsWith("on")&&o[2]===o[2].toUpperCase()}eventName(o){return o.slice(2).toLowerCase()}}const fe=so.directive(Vn);function V(...e){return bn.clsx(e)}function On(){return ft.extend(kn),ft.extend(Sn),ft.extend(yn),ft.extend($n),ft.extend(En),ft.extend(Ln),ft.tz.setDefault("Asia/Seoul"),ft}const Me=On();function qn(){const e=[];return{addValidator:c=>{e.push(c)},removeValidator:c=>{const r=e.findIndex(h=>h.validate===c.validate);r>=0&&e.splice(r,1)},validate:async(c="save")=>(await Promise.all(e.map(h=>h.validate(c).then(d=>d===void 0?!0:d)))).every(h=>h),initValidator:()=>{var c;for(const r of e)(c=r==null?void 0:r.initValidator)==null||c.call(r)}}}const Bn=16;function Fn(e,t){let o=0;return(...n)=>{const l=Date.now();l-o>=t&&(o=l,e(...n))}}class Kt{constructor(t){Ve(this,"opened",!1);Ve(this,"scrollHandler");Ve(this,"clickHandler");this.opts=t,this.scrollHandler=Fn(o=>this.onScroll(o),Bn),this.clickHandler=o=>this.onOutsideClick(o)}open(){this.opened||(this.opened=!0,document.addEventListener("scroll",this.scrollHandler,{capture:!0}),this.opts.closeOnOutsideClick!==!1&&setTimeout(()=>{this.opened&&document.addEventListener("click",this.clickHandler,{capture:!0})},0),queueMicrotask(()=>this.calcPosition()))}close(){this.opened&&(this.opened=!1,document.removeEventListener("scroll",this.scrollHandler,{capture:!0}),document.removeEventListener("click",this.clickHandler,{capture:!0}))}destroy(){this.close()}calcPosition(){const t=this.opts.anchor(),o=this.opts.panel();if(!t||!o)return;const n=t.getBoundingClientRect(),l=this.opts.maxHeight?this.opts.maxHeight():250,c=window.innerHeight-n.bottom,r=n.top,h=c<l&&r>=l;let d=n.left;const b=o.clientWidth;n.left+b>document.body.clientWidth&&(d-=b-n.width);let a=`${n.width}px`,m=!1;if(this.opts.listWidth){const u=this.opts.listWidth();u&&(typeof u!="number"||u>0)&&(a=typeof u=="number"?`${u}px`:u,m=!0)}o.style.position="fixed",o.style.left=`${d}px`,this.opts.useMinWidth?(o.style.minWidth=`${n.width}px`,m&&(o.style.width=String(a))):m?o.style.width=String(a):o.style.width=`${n.width}px`,h?(o.style.bottom=`${window.innerHeight-n.top}px`,o.style.top="auto"):(o.style.top=`${n.bottom}px`,o.style.bottom="auto")}onScroll(t){const o=t.target;if(this.opts.ignoreScrollTargets&&o&&this.opts.ignoreScrollTargets(o))return;const n=this.opts.anchor();if(n){const l=n.getBoundingClientRect();if(l.bottom<0||l.top>window.innerHeight){this.opts.requestClose();return}}this.calcPosition()}onOutsideClick(t){var n,l,c,r,h;if(this.opts.closeOnOutsideClick===!1)return;const o=t.target;(c=(l=(n=this.opts).container)==null?void 0:l.call(n))!=null&&c.contains(o)||(r=this.opts.panel())!=null&&r.contains(o)||(h=this.opts.anchor())!=null&&h.contains(o)||this.opts.requestClose()}}const pt=[];let _t=!1;function Xo(e){var o;if(e.key!=="Escape")return;const t=pt[pt.length-1];t&&t.kind==="moz"&&((o=t.onEscape)==null||o.call(t,e),e.stopPropagation())}function Nn(){_t||typeof window>"u"||(window.addEventListener("keydown",Xo,{capture:!0}),_t=!0)}function _n(){!_t||typeof window>"u"||(window.removeEventListener("keydown",Xo,!0),_t=!1)}function ho(e){pt.push(e),Nn();let t=!1;return{release(){if(t)return;t=!0;const o=pt.indexOf(e);o>=0&&pt.splice(o,1),pt.length===0&&_n()},isTopmost(){return pt[pt.length-1]===e}}}function mo(e){return ho({kind:"moz",onEscape:e})}function Hn(){return ho({kind:"foreign"})}function Zt(){return ho({kind:"self"})}function Un(){return pt.length}function Ao(){return s.html`<svg aria-hidden="true" role="status" class="moz-circle-loader"
1
+ "use strict";var al=Object.defineProperty;var rl=(e,t,o)=>t in e?al(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Ve=(e,t,o)=>rl(e,typeof t!="symbol"?t+"":t,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("lit-html"),mo=require("lit-html/directive.js"),j=require("lit-html/directives/style-map.js"),cl=require("clsx"),$e=require("lit-html/directives/if-defined.js"),gn=require("lit-html/directives/unsafe-html.js"),So=require("lit-html/directives/live.js"),Y=require("lit-html/directives/ref.js"),gt=require("dayjs"),dl=require("dayjs/plugin/duration.js"),ul=require("dayjs/plugin/minMax.js"),pl=require("dayjs/plugin/timezone.js"),hl=require("dayjs/plugin/utc.js"),ml=require("dayjs/plugin/isSameOrBefore.js"),fl=require("dayjs/plugin/isSameOrAfter.js");require("dayjs/locale/ko.js");require("dayjs/locale/en.js");require("dayjs/locale/zh.js");require("dayjs/locale/ja.js");const st=require("@tanstack/virtual-core");var Se=typeof document<"u"?document.currentScript:null;class vn{constructor(t){Ve(this,"container");Ve(this,"updateScheduled",!1);Ve(this,"mounted",!1);Ve(this,"cleanups",[]);Ve(this,"endMarker",null);this.container=t}mount(){return this.mounted?this:(this.mounted=!0,this.onMount(),this.renderNow(),this)}requestUpdate(){!this.mounted||this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>{this.updateScheduled=!1,this.mounted&&this.renderNow()}))}renderNow(){n.render(this.template(),this.container,this.rootOptions())}rootOptions(){return this.endMarker||(this.endMarker=this.container.appendChild(document.createComment(""))),{renderBefore:this.endMarker}}addCleanup(t){this.cleanups.push(t)}onMount(){}onDestroy(){}destroy(){if(this.mounted){this.mounted=!1,this.onDestroy();for(const t of this.cleanups.splice(0))try{t()}catch{}this.endMarker&&(n.render(n.nothing,this.container,{renderBefore:this.endMarker}),this.endMarker.remove(),this.endMarker=null)}}get isMounted(){return this.mounted}}class gl{constructor(){Ve(this,"listeners",new Set)}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}emit(){for(const t of this.listeners)t()}clearListeners(){this.listeners.clear()}}class wn{constructor(){Ve(this,"renderers",new Map);Ve(this,"resolver",null);Ve(this,"mounted",new Map)}setResolver(t){this.resolver=t}lookup(t){var o;return this.renderers.get(t)??((o=this.resolver)==null?void 0:o.call(this,t))}register(t,o){this.renderers.set(t,o)}unregister(t){for(const o of Array.from(this.mounted.keys()))(o===t||o.startsWith(`${t}#`))&&this.clear(o);this.renderers.delete(t)}has(t){return this.lookup(t)!==void 0}fill(t,o,s,l){var d,b;const i=this.lookup(o);if(!i)return!1;const r=this.mounted.get(t);if(r){if(r.el===s)return(b=(d=r.handle).update)==null||b.call(d,l),!0;r.handle.dispose(),this.mounted.delete(t)}for(const[c,m]of this.mounted)m.el===s&&(m.handle.dispose(),this.mounted.delete(c));const p=i(s,l);return this.mounted.set(t,{el:s,handle:p}),!0}clear(t){const o=this.mounted.get(t);o&&(o.handle.dispose(),this.mounted.delete(t))}clearAll(){for(const t of Array.from(this.mounted.keys()))this.clear(t)}destroy(){this.clearAll(),this.renderers.clear(),this.resolver=null}get mountedCount(){return this.mounted.size}}class Yt{constructor(){Ve(this,"el",null)}open(t="",o=document.body){return this.el?this.el:(this.el=document.createElement("div"),t&&(this.el.className=t),o.appendChild(this.el),this.el)}close(){this.el&&(this.el.remove(),this.el=null)}get element(){return this.el}get isOpen(){return this.el!==null}}function Rt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function Ae(e,t=16){return e/t}let Yo=0;function Qe(e=""){return Yo+=1,`${e}${Yo}`}const Mt=(e,t)=>{const o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(const l of o)if(e[l]!==t[l])return!1;return!0};function ge(e,t){const o={};for(const s of Object.keys(e))t.has(s)||(o[s]=e[s]);return o}function eo(e){const t={},o={};for(const s of Object.keys(e))s.startsWith("aria-")?t[s]=e[s]:o[s]=e[s];return{aria:t,dom:o}}const vl=["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth"],wl=new Set(vl.flatMap(e=>[e,...["Webkit","ms","Moz","O"].map(t=>t+e.charAt(0).toUpperCase()+e.slice(1))]));function yl(e){return e.includes("-")?e.replace(/^-ms-/,"ms-").replace(/-([a-z])/g,(t,o)=>o.toUpperCase()):e}function he(e){if(!e)return{};if(typeof e=="object"){const t={};for(const[o,s]of Object.entries(e))t[o]=typeof s=="number"&&s!==0&&!o.startsWith("--")&&!wl.has(yl(o))?`${s}px`:s;return t}if(typeof e=="string"){const t={};for(const o of e.split(";")){const s=o.indexOf(":");s>0&&(t[o.slice(0,s).trim()]=o.slice(s+1).trim())}return t}return{}}function ko(e,t,o,s){return e.length>0||t===0||!s||s.getBoundingClientRect().height>0?e:Array.from({length:t},(l,i)=>({index:i,size:o,start:i*o}))}const It={Toast:{close:"닫기"},Chip:{remove:"삭제"},Callout:{dismiss:"닫기"},Notification:{close:"닫기",unread:"읽지 않음"},Spinner:{label:"불러오는 중"},CodeBlock:{label:"코드",copy:"{label} 복사",copied:"복사했습니다.",copyFailed:"복사하지 못했습니다. 코드를 선택해 복사해 주세요."},Popup:{title:"팝업",save:"저장",cancel:"취소",ok:"확인",close:"닫기"},Select:{searchPlaceholder:"검색",emptyText:"데이터가 없습니다",requiredMessage:"{label} 은(는) 필수입니다"},MultiSelect:{search:"검색",selectAll:"전체 선택",selectFiltered:"필터 결과 선택",specificResults:"결과만",specificSelect:"선택만",noData:"데이터가 없습니다",required:"{label} 은(는) 필수입니다",headerFormat:"항목 ({count})"},TreeSelect:{search:"검색",selectAll:"전체 선택",selectFiltered:"필터 결과 선택",specificResults:"결과만",noData:"데이터가 없습니다",showSelectedOnly:"선택한 항목만 표시",expandAll:"모두 펼치기",collapseAll:"모두 접기",required:"{label} 은(는) 필수입니다",headerFormat:"항목 ({count})",expand:"펼치기",collapse:"접기"},Controller:{filterLabel:"조회 조건"},TagInput:{add:"추가",editTag:"{label} 수정",removeTag:"{label} 삭제"},TimePicker:{hour:"시",minute:"분",currentTime:"현재 시간으로 설정"},EmptyState:{customEmptyHeader:"데이터 없음",customEmptyContent:"표시할 데이터가 없습니다.",dataEmptyHeader:"데이터가 없습니다.",dataEmptyContent:"필요한 데이터를 추가해 주세요.",resultEmptyHeader:"설정한 조건에 해당되는 데이터가 없습니다.",resultEmptyContent:`조회 조건이 적절하게 설정되었는지 확인해주세요.
2
+ 조회 조건을 변경하였다면, 조회 버튼을 다시 눌러주세요.`,searchEmptyHeader:"검색 결과 없음",searchEmptyContent:"필터 값을 확인하고 다시 시도해 주세요."},TableSelect:{searchPlaceholder:"검색",emptyText:"데이터가 없습니다",requiredMessage:"{label} 은(는) 필수입니다",footerSelect:"선택",footerNavigate:"이동",footerClose:"닫기"},Common:{requiredMessage:"{label} 은(는) 필수입니다"},Grid:{layoutSetting:"보기 설정",filter:"필터",sort:"정렬",customCellStyle:"조건부 서식 설정",reset:"초기화",searchFilter:"검색",newView:"새 뷰",selectAll:"전체 선택",columnPicker:"열 표시/숨김 설정",viewToolbar:"Tool Bar 보기",viewFooter:"Footer 보기",viewGroupPanel:"그룹 패널 보기",resetFilterAndSort:"필터 및 정렬 초기화",defaultView:"기본 뷰",filterPopup:"필터 설정",resetFilter:"필터 초기화",addFilter:"필터 추가",sortingPopup:"정렬 설정",ascending:"오름차순",descending:"내림차순",resetSort:"정렬 초기화",addSort:"정렬 추가",symbolEqual:"같음",symbolNotEqual:"같지 않음",symbolContains:"포함",symbolNotContains:"포함하지 않음",symbolLessThan:"보다 작음",symbolGreaterThan:"보다 큼",symbolLessOrEqual:"이하",symbolGreaterOrEqual:"이상",symbolEmpty:"비어 있음",symbolNotEmpty:"비어 있지 않음",customCellRuleNamePlaceholder:"규칙 이름을 입력하세요",addFormulaCondition:"조건 추가",applicationColumn:"적용 열",backgroundColor:"배경색",fontColor:"글꼴 색",resetCustomCell:"초기화",addFormulaConditionSet:"규칙 추가",customColor:"사용자 지정 색상",formulaConditionSet:"새 규칙",contextFilterAndSort:"필터 및 정렬",contextAddFilter:"필터 추가",contextSelectFilter:"선택 값으로 필터",contextResetColumnFilter:"열 필터 초기화",contextResetColumnSort:"열 정렬 초기화",contextResetColumnAll:"열 필터/정렬 초기화",contextDataCopy:"선택한 데이터 복사",contextDataExcelCopy:"Excel 복사",contextDataWithHeaderCopy:"선택한 데이터 복사 (헤더 포함)",contextPin:"열 고정 / 해제",contextColumnPicker:"열 표시/숨김 설정",contextMoveColumnFirst:"첫 번째 열로 보내기",contextAutoSizeColumns:"열 너비 자동 조정",contextGroupPanel:"그룹 패널",contextGroupToggle:"그룹 접기/펼치기",contextGroupCollapseAll:"모든 그룹 접기",contextGroupExpandAll:"모든 그룹 펼치기",groupPanelPlaceholder:"열을 드래그 앤 드롭하여 그룹을 만듭니다.",contextBulkEdit:"데이터 일괄변경 [{name}]",contextImport:"가져오기",contextImportExcel:"Excel 가져오기 (덮어쓰기)",contextImportExcelAppend:"Excel 가져오기 (추가)",contextExport:"내보내기",contextExportXlsx:"엑셀 내보내기 (xlsx)",contextExportCsv:"CSV 내보내기 (csv)",contextSum:"합계",check:"확인",cancel:"취소",save:"저장",remove:"삭제",close:"닫기",pause:"일시 중지",add:"추가",immediateApply:"바로 적용",warning:"경고",mozWarning:"경고",confirmCancel:"취소하시겠습니까?",alreadyExcelProgress:"Excel 작업이 이미 진행 중입니다.",downloadFail:"다운로드에 실패했습니다.",addDataWithFilterSort:"필터/정렬이 적용된 상태에서 데이터를 추가하시겠습니까?",resetAndAdd:"초기화 후 추가",confirmDeleteGeneral:"{name}을(를) 삭제하시겠습니까?",toastCopySuccess:"복사되었습니다.",toastSaveSuccess:"저장되었습니다.",toastSaveError:"저장에 실패했습니다.",toastResetSuccess:"초기화되었습니다.",toastRequiredVal:"필수 값을 입력하세요.",excelInvalidExcel:"유효하지 않은 Excel 파일입니다.",excelInvalidUpload:"유효하지 않은 업로드 데이터입니다.",downloadFormat:"서식 내려받기",click:"클릭",drag:"드래그",overwriteSelected:"선택한 항목을 덮어쓰시겠습니까?",fileOverwrite:"파일을 덮어쓰시겠습니까?",dropHere:"이 곳을 클릭 또는 파일을 드래그 하세요.",dropHerePrefix:"이 곳을 ",dropHereMiddle:" 또는 파일을 ",dropHereSuffix:" 하세요.",withFormatting:"서식 포함",requestTimedOut:"요청 시간이 초과되었습니다.",serverError:"서버 오류가 발생했습니다.",total:"전체",correct:"정상",error:"오류",success:"성공",fail:"실패",excelExportConfirmLargeData:"대용량 데이터를 내보내시겠습니까?",footerTotalRowCount:"총 개수: {totalRowCount}개",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"평균",aggregateCount:"개수",aggregateMin:"최소",aggregateMax:"최대",aggregateSum:"합계",settings:"설정",collapseToolbar:"툴바 접기",expandToolbar:"툴바 펼치기",searchPrev:"이전 검색 결과",searchNext:"다음 검색 결과",searchGoTo:"결과 번호로 이동",searching:"검색 중...",deleteCondition:"조건 삭제",deleteSort:"정렬 삭제",selectPlaceholder:"선택",byValueLabel:"레이블",decrease:"감소",increase:"증가",selectColor:"색상 선택",noColor:"색상 없음",customColorInput:"직접 입력",alignLeft:"왼쪽 정렬",alignCenter:"가운데 정렬",alignRight:"오른쪽 정렬",alignLabel:"정렬",fontStyleLabel:"글자 스타일",bold:"굵게",italic:"기울임",underline:"밑줄",columnOptions:"컬럼 옵션",showAllColumns:"전체 표시",commonSection:"공통",headerLabelField:"헤더 라벨",pinColumn:"고정",pinLeft:"왼쪽",pinNone:"없음",pinRight:"오른쪽",columnWidthPx:"너비(px)",headerSection:"헤더",cellSection:"셀",fontLabel:"글자",sizeLabel:"크기",displayMask:"표시 형식(마스크)",resetThisColumn:"이 컬럼 초기화",selectColumnHint:"컬럼을 선택하세요",showColumnNamed:"{column} 표시",columnTextColor:"글자색",cellStyleTitle:"셀 스타일",formulaHelp:"수식 도움말",validFormula:"유효한 수식",formulaHint:"컬럼을 선택하거나 값을 입력해 수식을 작성하세요.",ruleName:"규칙 이름",targetColumns:"적용 컬럼",allColumns:"전체 컬럼",colorLabel:"색상",cellBgColor:"배경 색상",cellTextColor:"텍스트 색상",moveUp:"위로",moveDown:"아래로",formulaPlaceholder:"예: [수요수량] > [재고수량] AND [우선순위] < 3",helpColumnRef:"컬럼 참조",helpCompare:"비교",helpArithmetic:"산술",helpLogic:"논리",helpString:"문자열",helpNull:"NULL 체크",helpValue:"값",groupColon:"그룹:",groupEmptyHint:"여기에 컬럼을 추가해 그룹화",addGroupBtn:"+ 그룹 추가",ungroup:"해제",removeGroup:"그룹 제거",excelImportTitle:"Excel 가져오기",processing:"처리 중…",excelPreview:"미리보기 {shown}행 / 총 {total}행+",clientImportFile:"파일에서 가져오기 (클라이언트)",clientExportXlsx:"XLSX (클라이언트)",groupExpand:"그룹 펼치기",groupCollapse:"그룹 접기",fontSizeDefault:"기본",maskGroupNone:"없음",maskGroupNumber:"숫자",maskGroupDate:"날짜",maskGroupString:"문자열",maskNoneText:"마스크 없음",maskNoneDesc:"원본 값 그대로 표시",maskThousandsText:"천 단위 구분 (1,234)",maskThousandsDesc:"예: 1234 → 1,234",maskDecimal2Text:"소수 2자리 (#,##0.00)",maskDecimal2Desc:"예: 1234.5 → 1,234.50",maskKrwText:"원화 (₩1,234)",maskKrwDesc:"예: 1234 → ₩1,234",maskUsdText:"달러 ($1,234.00)",maskUsdDesc:"예: 1234.5 → $1,234.50",maskPercentText:"퍼센트 (12%)",maskPercentDesc:"예: 12 → 12%",maskDateIsoDesc:"예: 2026-05-26",maskDateKoDesc:"예: 2026년 05월 26일",maskDatetimeDesc:"예: 2026-05-26 14:30",maskDateUsDesc:"예: 05/26/2026",maskPhoneText:"전화번호 (010-1234-5678)",maskPhoneDesc:"예: 01012345678 → 010-1234-5678",maskRrnText:"주민등록번호 (000000-0000000)",maskRrnDesc:"예: 9501011234567 → 950101-1234567",maskBizText:"사업자등록번호 (000-00-00000)",maskBizDesc:"예: 1234567890 → 123-45-67890"},GridPivot:{setting:"피봇 설정",gridSetting:"그리드 설정",fieldSetting:"값 필드 설정",showRowTotals:"행 합계 표시",showColumnTotals:"열 합계 표시",subtotalCriteria:"소계 기준",subtotalAggregateField:"소계 집계 필드",totalsBeforeData:"합계 먼저 보기",showZeros:"빈 값 채우기",showOutlineMode:"개요 모드",collapsibleSubtotal:"소계 접기",fieldName:"필드 이름",fieldAggregate:"집계",fieldShowAs:"표시 방식",fieldFormat:"형식",openChart:"차트 열기",selectValueField:"값 필드 선택",none:"없음",sum:"합계",count:"개수",average:"평균",max:"최대값",min:"최소값",range:"범위",std:"표준 편차",var:"분산",stdPop:"모표준 편차",varPop:"모분산",cntAll:"전체 개수",cntNumbers:"숫자 개수",showFirstValue:"첫 번째 값",showLastValue:"마지막 값",noCalculation:"계산 없음",diffRow:"이전 행과의 차이",diffRowPct:"이전 행과의 차이 (%)",diffCol:"이전 열과의 차이",diffColPct:"이전 열과의 차이 (%)",grandtotalPct:"전체 합계 대비 (%)",rowTotalPct:"행 합계 대비 (%)",colTotalPct:"열 합계 대비 (%)",prevRowPct:"이전 행 대비 (%)",prevColPct:"이전 열 대비 (%)",runTot:"누적 합계",runTotPct:"누적 합계 (%)",generalFormat:"일반",int:"정수",float:"실수",currency:"통화",percentage:"백분율 (정수)",percentageDot2:"백분율 (실수)",thousands:"천 단위",millions:"백만 단위",billions:"십억 단위",subtotal:"소계",grandtotal:"전체 합계",grandtotalValue:"총합계",category:"범주",chartType:"차트 유형",chartXAxis:"X축 범주",chartYAxis:"Y축 범주",categoryName:"카테고리",barChart:"막대 차트",lineChart:"꺾은선 차트",lineSymbolChart:"기호 꺾은선 차트",areaChart:"영역 차트",chartRenderingErrorHeader:"차트 렌더링 오류",chartRenderingErrorContent:"차트를 표시할 수 없습니다.",contextPivotExportXlsx:"화면 내보내기 (xlsx)",contextPivotExportOriginXlsx:"원본 데이터 내보내기 (xlsx)",contextPivotExportOriginCsv:"원본 데이터 내보내기 (csv)",row:"행",column:"열",value:"값",filter:"필터",searchFieldPlaceholder:"필드 검색...",dropZoneRowPlaceholder:"행 축 필드를 드래그하세요",dropZoneColumnPlaceholder:"열 축 필드를 드래그하세요",dropZoneValuePlaceholder:"값 필드를 드래그하세요",dropZoneFilterPlaceholder:"필터 필드를 드래그하세요",update:"업데이트",selectFieldForReport:"보고서에 추가할 필드 선택:",dragFieldsBetweenAreas:"아래 영역 사이에 필드를 끌어 놓으십시오:",valueSummaryCriteria:"값 요약 기준",roundRound:"반올림",roundFloor:"내림",roundCeil:"올림",roundTrunc:"절삭",roundingMode:"반올림 모드",decimalPlaces:"소수점 자리수",decimalUnlimited:"제한 없음",showOriginalValue:"원본값 병기",back:"뒤로",parentRowPct:"상위 행 그룹(%)",parentColPct:"상위 열 그룹(%)",rankAsc:"오름차순 순위",rankDesc:"내림차순 순위",index:"인덱스",showTotalsGrand:"합계",showTotalsSub:"부분합",fieldPanelSetting:"필드 설정",colSubtotalCriteria:"열 소계 기준",allowRowToggle:"행 확장/축소 허용",allowColToggle:"열 확장/축소 허용",outlineMode:"요약 모드"},Gantt:{searchPlaceholder:"검색",columnSize:"컬럼 크기",rowSize:"행 크기"},Chart:{filterPopup:"필터",resetFilter:"필터 초기화",addFilter:"필터 추가",symbolEqual:"같음",symbolNotEqual:"같지 않음",symbolContains:"포함",symbolNotContains:"포함하지 않음",symbolLessThan:"보다 작음",symbolGreaterThan:"보다 큼",symbolLessOrEqual:"작거나 같음",symbolGreaterOrEqual:"크거나 같음",symbolEmpty:"비어있음",symbolNotEmpty:"비어있지 않음",chartSetting:"차트 설정",chartCategory:"차트 카테고리",chartType:"차트 타입",chartUseZoom:"줌 사용",multiYAxisSetting:"Y축 다중 설정",notUsed:"(사용안함)",chartPopup:"차트 팝업",errorMessage:"데이터를 불러오는 중 오류가 발생했습니다.",valueFieldSetting:"값 필드 설정",valueSummaryCriteria:"값 요약 기준",selectFieldForReport:"보고서에 추가할 필드 선택:",column:"열",row:"행",value:"값",sumValue:"∑ 값",count:"개수",sum:"합계",average:"평균",min:"최소값",max:"최대값",seriesCategory:"일반",pieCategory:"파이",scatterCategory:"산점도",treemapCategory:"트리맵",boxplotCategory:"박스플롯",candlestickCategory:"캔들스틱",barChart:"바 차트",stackBarChart:"스택 바 차트",horizontalStackBarChart:"가로 스택 바 차트",lineChart:"선 차트",lineSymbolChart:"선 차트(심볼)",areaChart:"면적 차트",general:"일반",custom:"사용자 지정",axisCategoryLabel:"축 (범주)",legendSeriesLabel:"범례 (계열)",legendSingleLabel:"범례 (단일 선택)",legendMultiLabel:"범례 (다중 선택 가능)",valueSingleLabel:"값 (단일 선택)",xAxisSingleLabel:"X축 (단일 선택)",yAxisMultiLabel:"Y축 (다중 선택 가능)",notSet:"미지정",legendLimitExceededTitle:"차트 범례 개수가 최대 {limit}개를 초과했습니다.",legendLimitExceededContent:"범례를 {limit}개 이하로 재설정하여 주십시오."},NumberInput:{increase:"값 증가",decrease:"값 감소"},DateInput:{prevDate:"이전 날짜",nextDate:"다음 날짜"},PasswordInput:{showPassword:"비밀번호 표시",hidePassword:"비밀번호 숨기기"},Tab:{closeTab:"{label} 닫기"},SplitPane:{resizeHandle:"영역 크기 조절"},BreadCrumb:{navigation:"탐색 경로"}},bl={Toast:{close:"Close"},Chip:{remove:"Remove"},Callout:{dismiss:"Dismiss"},Notification:{close:"Close",unread:"Unread"},Spinner:{label:"Loading"},CodeBlock:{label:"Code",copy:"Copy {label}",copied:"Copied.",copyFailed:"Could not copy. Select the code and copy it manually."},Popup:{title:"Popup",save:"Save",cancel:"Cancel",ok:"OK",close:"Close"},Select:{searchPlaceholder:"Search",emptyText:"No data",requiredMessage:"{label} is required"},MultiSelect:{search:"Search",selectAll:"Select All",selectFiltered:"Select Filtered",specificResults:"Only Results",specificSelect:"Only",noData:"No data",required:"{label} is required",headerFormat:"ITEMS ({count})"},TreeSelect:{search:"Search",selectAll:"Select All",selectFiltered:"Select Filtered",specificResults:"Only Results",noData:"No data",showSelectedOnly:"Show selected only",expandAll:"Expand All",collapseAll:"Collapse All",required:"{label} is required",headerFormat:"ITEMS ({count})",expand:"Expand",collapse:"Collapse"},Controller:{filterLabel:"Search criteria"},TagInput:{add:"Add",editTag:"Edit {label}",removeTag:"Remove {label}"},TimePicker:{hour:"Hour",minute:"Minute",currentTime:"Current Time"},EmptyState:{customEmptyHeader:"No data",customEmptyContent:"There is no data to display.",dataEmptyHeader:"No data to display",dataEmptyContent:"Please enter the required data.",resultEmptyHeader:"No results",resultEmptyContent:"Check the search conditions and try again.",searchEmptyHeader:"No search results",searchEmptyContent:"Please check the filter value and try again."},TableSelect:{searchPlaceholder:"Search",emptyText:"No data",requiredMessage:"{label} is required",footerSelect:"Select",footerNavigate:"Navigate",footerClose:"Close"},Common:{requiredMessage:"{label} is required"},Grid:{layoutSetting:"Layout Settings",filter:"Filter",sort:"Sort",customCellStyle:"Conditional Formatting",reset:"Reset",searchFilter:"Search",newView:"New View",selectAll:"Select All",columnPicker:"Show/Hide Columns",viewToolbar:"Show Toolbar",viewFooter:"Show Footer",viewGroupPanel:"Show Group Panel",resetFilterAndSort:"Reset Filter & Sort",defaultView:"Default View",filterPopup:"Filter Settings",resetFilter:"Reset Filter",addFilter:"Add Filter",sortingPopup:"Sort Settings",ascending:"Ascending",descending:"Descending",resetSort:"Reset Sort",addSort:"Add Sort",symbolEqual:"Equal",symbolNotEqual:"Not Equal",symbolContains:"Contains",symbolNotContains:"Does Not Contain",symbolLessThan:"Less Than",symbolGreaterThan:"Greater Than",symbolLessOrEqual:"Less Or Equal",symbolGreaterOrEqual:"Greater Or Equal",symbolEmpty:"Empty",symbolNotEmpty:"Not Empty",customCellRuleNamePlaceholder:"Enter rule name",addFormulaCondition:"Add Condition",applicationColumn:"Application Column",backgroundColor:"Background Color",fontColor:"Font Color",resetCustomCell:"Reset",addFormulaConditionSet:"Add Rule",customColor:"Custom Color",formulaConditionSet:"New Rule",contextFilterAndSort:"Filter & Sort",contextAddFilter:"Add Filter",contextSelectFilter:"Filter by Selection",contextResetColumnFilter:"Reset Column Filter",contextResetColumnSort:"Reset Column Sort",contextResetColumnAll:"Reset Column Filter/Sort",contextDataCopy:"Copy",contextDataExcelCopy:"Copy for Excel",contextDataWithHeaderCopy:"Copy with Header",contextPin:"Pin Column",contextColumnPicker:"Column Picker",contextMoveColumnFirst:"Move to First Column",contextAutoSizeColumns:"Auto Size Columns",contextGroupPanel:"Group Panel",contextGroupToggle:"Toggle Collapse",contextGroupCollapseAll:"Collapse All Groups",contextGroupExpandAll:"Expand All Groups",groupPanelPlaceholder:"Drag and drop columns here to create groups.",contextBulkEdit:"Bulk Edit {name}",contextImport:"Import",contextImportExcel:"Import Excel (Overwrite)",contextImportExcelAppend:"Import Excel (Append)",contextExport:"Export",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"Sum",check:"OK",cancel:"Cancel",save:"Save",remove:"Delete",close:"Close",pause:"Pause",add:"Add",immediateApply:"Apply Immediately",warning:"Warning",mozWarning:"Warning",confirmCancel:"Are you sure you want to cancel?",alreadyExcelProgress:"Excel operation is already in progress.",downloadFail:"Download failed.",addDataWithFilterSort:"Add data while filter/sort is applied?",resetAndAdd:"Reset and Add",confirmDeleteGeneral:"Are you sure you want to delete {name}?",toastCopySuccess:"Copied.",toastSaveSuccess:"Saved.",toastSaveError:"Save failed.",toastResetSuccess:"Reset.",toastRequiredVal:"Please enter the required values.",excelInvalidExcel:"Invalid Excel file.",excelInvalidUpload:"Invalid upload data.",downloadFormat:"Download Format",click:"Click",drag:"Drag",overwriteSelected:"Overwrite selected items?",fileOverwrite:"Overwrite the file?",dropHere:"Drop here",dropHerePrefix:"",dropHereMiddle:" here or ",dropHereSuffix:" a file.",withFormatting:"With Formatting",requestTimedOut:"Request timed out.",serverError:"A server error occurred.",total:"Total",correct:"Correct",error:"Error",success:"Success",fail:"Fail",excelExportConfirmLargeData:"Export large data?",footerTotalRowCount:"Total: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"Average",aggregateCount:"Count",aggregateMin:"Min",aggregateMax:"Max",aggregateSum:"Sum",settings:"Settings",collapseToolbar:"Collapse toolbar",expandToolbar:"Expand toolbar",searchPrev:"Previous result",searchNext:"Next result",searchGoTo:"Go to result",searching:"Searching...",deleteCondition:"Delete condition",deleteSort:"Delete sort",selectPlaceholder:"Select",byValueLabel:"Label",decrease:"Decrease",increase:"Increase",selectColor:"Select color",noColor:"No color",customColorInput:"Custom",alignLeft:"Align left",alignCenter:"Align center",alignRight:"Align right",alignLabel:"Align",fontStyleLabel:"Font style",bold:"Bold",italic:"Italic",underline:"Underline",columnOptions:"Column Options",showAllColumns:"Show all",commonSection:"Common",headerLabelField:"Header label",pinColumn:"Pin",pinLeft:"Left",pinNone:"None",pinRight:"Right",columnWidthPx:"Width (px)",headerSection:"Header",cellSection:"Cell",fontLabel:"Font",sizeLabel:"Size",displayMask:"Display format (mask)",resetThisColumn:"Reset this column",selectColumnHint:"Select a column",showColumnNamed:"Show {column}",columnTextColor:"Text color",cellStyleTitle:"Cell Style",formulaHelp:"Formula help",validFormula:"Valid formula",formulaHint:"Select a column or enter a value to build a formula.",ruleName:"Rule name",targetColumns:"Target columns",allColumns:"All columns",colorLabel:"Color",cellBgColor:"Background color",cellTextColor:"Text color",moveUp:"Move up",moveDown:"Move down",formulaPlaceholder:"e.g. [Demand] > [Stock] AND [Priority] < 3",helpColumnRef:"Column ref",helpCompare:"Compare",helpArithmetic:"Arithmetic",helpLogic:"Logic",helpString:"String",helpNull:"NULL check",helpValue:"Value",groupColon:"Group:",groupEmptyHint:"Drag columns here to group",addGroupBtn:"+ Add group",ungroup:"Clear",removeGroup:"Remove group",excelImportTitle:"Excel Import",processing:"Processing…",excelPreview:"Preview {shown} rows / {total} total+",clientImportFile:"Import from file (client)",clientExportXlsx:"XLSX (client)",groupExpand:"Expand group",groupCollapse:"Collapse group",fontSizeDefault:"Default",maskGroupNone:"None",maskGroupNumber:"Number",maskGroupDate:"Date",maskGroupString:"String",maskNoneText:"No mask",maskNoneDesc:"Show raw value",maskThousandsText:"Thousands (1,234)",maskThousandsDesc:"e.g. 1234 → 1,234",maskDecimal2Text:"2 decimals (#,##0.00)",maskDecimal2Desc:"e.g. 1234.5 → 1,234.50",maskKrwText:"KRW (₩1,234)",maskKrwDesc:"e.g. 1234 → ₩1,234",maskUsdText:"USD ($1,234.00)",maskUsdDesc:"e.g. 1234.5 → $1,234.50",maskPercentText:"Percent (12%)",maskPercentDesc:"e.g. 12 → 12%",maskDateIsoDesc:"e.g. 2026-05-26",maskDateKoDesc:"e.g. 2026-05-26",maskDatetimeDesc:"e.g. 2026-05-26 14:30",maskDateUsDesc:"e.g. 05/26/2026",maskPhoneText:"Phone (010-1234-5678)",maskPhoneDesc:"e.g. 01012345678 → 010-1234-5678",maskRrnText:"RRN (000000-0000000)",maskRrnDesc:"e.g. 9501011234567 → 950101-1234567",maskBizText:"Business No. (000-00-00000)",maskBizDesc:"e.g. 1234567890 → 123-45-67890"},GridPivot:{setting:"Pivot Settings",gridSetting:"Grid Settings",fieldSetting:"Field Settings",showRowTotals:"Show Row Totals",showColumnTotals:"Show Column Totals",subtotalCriteria:"Subtotal Criteria",subtotalAggregateField:"Subtotal Aggregate Field",totalsBeforeData:"Show Totals Before Data",showZeros:"Show Zeros",showOutlineMode:"Outline Mode",collapsibleSubtotal:"Collapsible Subtotal",fieldName:"Field Name",fieldAggregate:"Aggregate",fieldShowAs:"Show As",fieldFormat:"Format",openChart:"Open Chart",selectValueField:"Select Value Field",none:"None",sum:"Sum",count:"Count",average:"Average",max:"Max",min:"Min",range:"Range",std:"Std Dev",var:"Variance",stdPop:"Pop Std Dev",varPop:"Pop Variance",cntAll:"Count All",cntNumbers:"Count Numbers",showFirstValue:"First Value",showLastValue:"Last Value",noCalculation:"No Calculation",diffRow:"Diff from Previous Row",diffRowPct:"Diff from Previous Row (%)",diffCol:"Diff from Previous Column",diffColPct:"Diff from Previous Column (%)",grandtotalPct:"% of Grand Total",rowTotalPct:"% of Row Total",colTotalPct:"% of Column Total",prevRowPct:"% of Previous Row",prevColPct:"% of Previous Column",runTot:"Running Total",runTotPct:"Running Total (%)",generalFormat:"General",int:"Integer",float:"Decimal",currency:"Currency",percentage:"Percentage (Integer)",percentageDot2:"Percentage (Decimal)",thousands:"Thousands",millions:"Millions",billions:"Billions",subtotal:"Subtotal",grandtotal:"Grand Total",grandtotalValue:"Grand Total",category:"Category",chartType:"Chart Type",chartXAxis:"X Axis",chartYAxis:"Y Axis",categoryName:"Category Name",barChart:"Bar Chart",lineChart:"Line Chart",lineSymbolChart:"Symbol Line Chart",areaChart:"Area Chart",chartRenderingErrorHeader:"Chart Rendering Error",chartRenderingErrorContent:"Unable to display the chart.",contextPivotExportXlsx:"View Export (xlsx)",contextPivotExportOriginXlsx:"Source Data Export (xlsx)",contextPivotExportOriginCsv:"Source Data Export (csv)",row:"Rows",column:"Columns",value:"Values",filter:"Filters",searchFieldPlaceholder:"Search fields...",dropZoneRowPlaceholder:"Drag row axis fields here",dropZoneColumnPlaceholder:"Drag column axis fields here",dropZoneValuePlaceholder:"Drag value fields here",dropZoneFilterPlaceholder:"Drag filter fields here",update:"Update",selectFieldForReport:"Choose fields to add to report:",dragFieldsBetweenAreas:"Drag fields between areas below:",valueSummaryCriteria:"Summarize Values By",roundRound:"Round",roundFloor:"Floor",roundCeil:"Ceil",roundTrunc:"Truncate",roundingMode:"Rounding mode",decimalPlaces:"Decimal places",decimalUnlimited:"No limit",showOriginalValue:"Show original value",back:"Back",parentRowPct:"% of Parent Row Group",parentColPct:"% of Parent Column Group",rankAsc:"Rank Ascending",rankDesc:"Rank Descending",index:"Index",showTotalsGrand:"Grand Totals",showTotalsSub:"Subtotals",fieldPanelSetting:"Field Settings",colSubtotalCriteria:"Column Subtotal Criteria",allowRowToggle:"Allow Row Expand/Collapse",allowColToggle:"Allow Column Expand/Collapse",outlineMode:"Outline Mode"},Gantt:{searchPlaceholder:"Search",columnSize:"Column Size",rowSize:"Row Size"},Chart:{filterPopup:"Filter",resetFilter:"Reset Filter",addFilter:"Add Filter",symbolEqual:"Equal",symbolNotEqual:"Not Equal",symbolContains:"Contains",symbolNotContains:"Not Contains",symbolLessThan:"Less Than",symbolGreaterThan:"Greater Than",symbolLessOrEqual:"Less or Equal",symbolGreaterOrEqual:"Greater or Equal",symbolEmpty:"Empty",symbolNotEmpty:"Not Empty",chartSetting:"Chart Setting",chartCategory:"Chart Category",chartType:"Chart Type",chartUseZoom:"Use Zoom",multiYAxisSetting:"Multi Y-Axis Setting",notUsed:"(Not Used)",chartPopup:"Chart Popup",errorMessage:"An error occurred while loading data.",valueFieldSetting:"Value Field Setting",valueSummaryCriteria:"Value Summary Criteria",selectFieldForReport:"Select fields to add to the report:",column:"Column",row:"Row",value:"Value",sumValue:"∑ Value",count:"Count",sum:"Sum",average:"Average",min:"Min",max:"Max",seriesCategory:"General",pieCategory:"Pie",scatterCategory:"Scatter",treemapCategory:"Treemap",boxplotCategory:"Boxplot",candlestickCategory:"Candlestick",barChart:"Bar Chart",stackBarChart:"Stack Bar Chart",horizontalStackBarChart:"Horizontal Stack Bar Chart",lineChart:"Line Chart",lineSymbolChart:"Line Chart (Symbol)",areaChart:"Area Chart",general:"General",custom:"Custom",axisCategoryLabel:"Axis (Category)",legendSeriesLabel:"Legend (Series)",legendSingleLabel:"Legend (Single)",legendMultiLabel:"Legend (Multiple)",valueSingleLabel:"Value (Single)",xAxisSingleLabel:"X-Axis (Single)",yAxisMultiLabel:"Y-Axis (Multiple)",notSet:"Not Set",legendLimitExceededTitle:"The number of chart legends has exceeded the maximum of {limit}.",legendLimitExceededContent:"Please reconfigure the legend to {limit} or fewer."},NumberInput:{increase:"Increase value",decrease:"Decrease value"},DateInput:{prevDate:"Previous date",nextDate:"Next date"},PasswordInput:{showPassword:"Show password",hidePassword:"Hide password"},Tab:{closeTab:"Close {label}"},SplitPane:{resizeHandle:"Resize panes"},BreadCrumb:{navigation:"Breadcrumb"}},Cl={Toast:{close:"关闭"},Chip:{remove:"删除"},Callout:{dismiss:"关闭"},Notification:{close:"关闭",unread:"未读"},Spinner:{label:"加载中"},CodeBlock:{label:"代码",copy:"复制{label}",copied:"已复制。",copyFailed:"无法复制。请选中代码后手动复制。"},Popup:{title:"弹窗",save:"保存",cancel:"取消",ok:"确认",close:"关闭"},Select:{searchPlaceholder:"搜索",emptyText:"暂无数据",requiredMessage:"{label} 为必填项"},MultiSelect:{search:"搜索",selectAll:"全选",selectFiltered:"选择筛选结果",specificResults:"仅结果",specificSelect:"仅选择",noData:"暂无数据",required:"{label} 为必填项",headerFormat:"项目 ({count})"},TreeSelect:{search:"搜索",selectAll:"全选",selectFiltered:"选择筛选结果",specificResults:"仅结果",noData:"暂无数据",showSelectedOnly:"仅显示已选项",expandAll:"全部展开",collapseAll:"全部收起",required:"{label} 为必填项",headerFormat:"项目 ({count})",expand:"展开",collapse:"折叠"},Controller:{filterLabel:"查询条件"},TagInput:{add:"添加",editTag:"编辑 {label}",removeTag:"删除 {label}"},TimePicker:{hour:"时",minute:"分",currentTime:"当前时间"},EmptyState:{customEmptyHeader:"暂无数据",customEmptyContent:"没有可显示的数据。",dataEmptyHeader:"暂无数据",dataEmptyContent:"请输入所需数据。",resultEmptyHeader:"无结果",resultEmptyContent:"请检查搜索条件后重试。",searchEmptyHeader:"无搜索结果",searchEmptyContent:"请检查筛选条件后重试。"},TableSelect:{searchPlaceholder:"搜索",emptyText:"暂无数据",requiredMessage:"{label} 为必填项",footerSelect:"选择",footerNavigate:"移动",footerClose:"关闭"},Common:{requiredMessage:"{label} 为必填项"},Grid:{layoutSetting:"布局设置",filter:"筛选",sort:"排序",customCellStyle:"条件格式设置",reset:"重置",searchFilter:"搜索",newView:"新建视图",selectAll:"全选",columnPicker:"列显示/隐藏设置",viewToolbar:"显示工具栏",viewFooter:"显示页脚",viewGroupPanel:"显示分组面板",resetFilterAndSort:"重置筛选和排序",defaultView:"默认视图",filterPopup:"筛选设置",resetFilter:"重置筛选",addFilter:"添加筛选",sortingPopup:"排序设置",ascending:"升序",descending:"降序",resetSort:"重置排序",addSort:"添加排序",symbolEqual:"等于",symbolNotEqual:"不等于",symbolContains:"包含",symbolNotContains:"不包含",symbolLessThan:"小于",symbolGreaterThan:"大于",symbolLessOrEqual:"小于或等于",symbolGreaterOrEqual:"大于或等于",symbolEmpty:"为空",symbolNotEmpty:"不为空",customCellRuleNamePlaceholder:"请输入规则名称",addFormulaCondition:"添加条件",applicationColumn:"应用列",backgroundColor:"背景色",fontColor:"字体颜色",resetCustomCell:"重置",addFormulaConditionSet:"添加规则",customColor:"自定义颜色",formulaConditionSet:"新建规则",contextFilterAndSort:"筛选和排序",contextAddFilter:"添加筛选",contextSelectFilter:"按选定值筛选",contextResetColumnFilter:"重置列筛选",contextResetColumnSort:"重置列排序",contextResetColumnAll:"重置列筛选/排序",contextDataCopy:"复制",contextDataExcelCopy:"Excel 复制",contextDataWithHeaderCopy:"含表头复制",contextPin:"固定列",contextColumnPicker:"列选择",contextMoveColumnFirst:"移至第一列",contextAutoSizeColumns:"自动调整列宽",contextGroupPanel:"分组面板",contextGroupToggle:"折叠/展开组",contextGroupCollapseAll:"折叠所有组",contextGroupExpandAll:"展开所有组",groupPanelPlaceholder:"将列拖放到此处以创建分组。",contextBulkEdit:"批量编辑 {name}",contextImport:"导入",contextImportExcel:"Excel 导入(覆盖)",contextImportExcelAppend:"Excel 导入(追加)",contextExport:"导出",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"合计",check:"确认",cancel:"取消",save:"保存",remove:"删除",close:"关闭",pause:"暂停",add:"添加",immediateApply:"立即应用",warning:"警告",mozWarning:"警告",confirmCancel:"确定要取消吗?",alreadyExcelProgress:"Excel 操作正在进行中。",downloadFail:"下载失败。",addDataWithFilterSort:"在筛选/排序状态下添加数据?",resetAndAdd:"重置后添加",confirmDeleteGeneral:"确定要删除 {name} 吗?",toastCopySuccess:"已复制。",toastSaveSuccess:"已保存。",toastSaveError:"保存失败。",toastResetSuccess:"已重置。",toastRequiredVal:"请输入必填值。",excelInvalidExcel:"无效的 Excel 文件。",excelInvalidUpload:"无效的上传数据。",downloadFormat:"下载格式",click:"点击",drag:"拖拽",overwriteSelected:"覆盖选定项?",fileOverwrite:"覆盖文件?",dropHere:"拖放到此处",dropHerePrefix:"",dropHereMiddle:"此处或",dropHereSuffix:"文件。",withFormatting:"包含格式",requestTimedOut:"请求超时。",serverError:"服务器发生错误。",total:"总计",correct:"正常",error:"错误",success:"成功",fail:"失败",excelExportConfirmLargeData:"确定导出大量数据?",footerTotalRowCount:"总计: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"平均",aggregateCount:"计数",aggregateMin:"最小值",aggregateMax:"最大值",aggregateSum:"合计",settings:"设置",collapseToolbar:"折叠工具栏",expandToolbar:"展开工具栏",searchPrev:"上一个结果",searchNext:"下一个结果",searchGoTo:"跳转到结果",searching:"搜索中...",deleteCondition:"删除条件",deleteSort:"删除排序",selectPlaceholder:"选择",byValueLabel:"标签",decrease:"减少",increase:"增加",selectColor:"选择颜色",noColor:"无颜色",customColorInput:"自定义输入",alignLeft:"左对齐",alignCenter:"居中对齐",alignRight:"右对齐",alignLabel:"对齐",fontStyleLabel:"字体样式",bold:"加粗",italic:"斜体",underline:"下划线",columnOptions:"列选项",showAllColumns:"全部显示",commonSection:"通用",headerLabelField:"表头标签",pinColumn:"固定",pinLeft:"左",pinNone:"无",pinRight:"右",columnWidthPx:"宽度(px)",headerSection:"表头",cellSection:"单元格",fontLabel:"文字",sizeLabel:"大小",displayMask:"显示格式(掩码)",resetThisColumn:"重置此列",selectColumnHint:"请选择列",showColumnNamed:"显示 {column}",columnTextColor:"文字颜色",cellStyleTitle:"单元格样式",formulaHelp:"公式帮助",validFormula:"有效公式",formulaHint:"选择列或输入值以创建公式。",ruleName:"规则名称",targetColumns:"应用列",allColumns:"全部列",colorLabel:"颜色",cellBgColor:"背景色",cellTextColor:"文字色",moveUp:"上移",moveDown:"下移",formulaPlaceholder:"例: [需求量] > [库存量] AND [优先级] < 3",helpColumnRef:"列引用",helpCompare:"比较",helpArithmetic:"算术",helpLogic:"逻辑",helpString:"字符串",helpNull:"NULL 检查",helpValue:"值",groupColon:"分组:",groupEmptyHint:"将列拖到此处进行分组",addGroupBtn:"+ 添加分组",ungroup:"解除",removeGroup:"移除分组",excelImportTitle:"Excel 导入",processing:"处理中…",excelPreview:"预览 {shown} 行 / 共 {total} 行+",clientImportFile:"从文件导入 (客户端)",clientExportXlsx:"XLSX (客户端)",groupExpand:"展开分组",groupCollapse:"折叠分组",fontSizeDefault:"默认",maskGroupNone:"无",maskGroupNumber:"数字",maskGroupDate:"日期",maskGroupString:"字符串",maskNoneText:"无掩码",maskNoneDesc:"按原值显示",maskThousandsText:"千位分隔 (1,234)",maskThousandsDesc:"例: 1234 → 1,234",maskDecimal2Text:"两位小数 (#,##0.00)",maskDecimal2Desc:"例: 1234.5 → 1,234.50",maskKrwText:"韩元 (₩1,234)",maskKrwDesc:"例: 1234 → ₩1,234",maskUsdText:"美元 ($1,234.00)",maskUsdDesc:"例: 1234.5 → $1,234.50",maskPercentText:"百分比 (12%)",maskPercentDesc:"例: 12 → 12%",maskDateIsoDesc:"例: 2026-05-26",maskDateKoDesc:"例: 2026-05-26",maskDatetimeDesc:"例: 2026-05-26 14:30",maskDateUsDesc:"例: 05/26/2026",maskPhoneText:"电话号码 (010-1234-5678)",maskPhoneDesc:"例: 01012345678 → 010-1234-5678",maskRrnText:"身份证号 (000000-0000000)",maskRrnDesc:"例: 9501011234567 → 950101-1234567",maskBizText:"营业执照号 (000-00-00000)",maskBizDesc:"例: 1234567890 → 123-45-67890"},GridPivot:{setting:"数据透视设置",gridSetting:"网格设置",fieldSetting:"字段设置",showRowTotals:"显示行合计",showColumnTotals:"显示列合计",subtotalCriteria:"小计基准",subtotalAggregateField:"小计汇总字段",totalsBeforeData:"在数据前显示合计",showZeros:"显示零值",showOutlineMode:"大纲模式",collapsibleSubtotal:"可折叠小计",fieldName:"字段名称",fieldAggregate:"汇总",fieldShowAs:"显示方式",fieldFormat:"格式",openChart:"打开图表",selectValueField:"选择值字段",none:"无",sum:"求和",count:"计数",average:"平均值",max:"最大值",min:"最小值",range:"范围",std:"标准差",var:"方差",stdPop:"总体标准差",varPop:"总体方差",cntAll:"全部计数",cntNumbers:"数字计数",showFirstValue:"第一个值",showLastValue:"最后一个值",noCalculation:"无计算",diffRow:"与前一行的差",diffRowPct:"与前一行的差 (%)",diffCol:"与前一列的差",diffColPct:"与前一列的差 (%)",grandtotalPct:"占总计百分比",rowTotalPct:"占行合计百分比",colTotalPct:"占列合计百分比",prevRowPct:"占前一行百分比",prevColPct:"占前一列百分比",runTot:"累计",runTotPct:"累计百分比",generalFormat:"常规",int:"整数",float:"小数",currency:"货币",percentage:"百分比 (整数)",percentageDot2:"百分比 (小数)",thousands:"千位",millions:"百万位",billions:"十亿位",subtotal:"小计",grandtotal:"总计",grandtotalValue:"总合计",category:"类别",chartType:"图表类型",chartXAxis:"X轴",chartYAxis:"Y轴",categoryName:"类别名称",barChart:"柱状图",lineChart:"折线图",lineSymbolChart:"符号折线图",areaChart:"面积图",chartRenderingErrorHeader:"图表渲染错误",chartRenderingErrorContent:"无法显示图表。",contextPivotExportXlsx:"视图导出 (xlsx)",contextPivotExportOriginXlsx:"原始数据导出 (xlsx)",contextPivotExportOriginCsv:"原始数据导出 (csv)",row:"行",column:"列",value:"值",filter:"筛选",searchFieldPlaceholder:"搜索字段...",dropZoneRowPlaceholder:"拖动行轴字段到这里",dropZoneColumnPlaceholder:"拖动列轴字段到这里",dropZoneValuePlaceholder:"拖动值字段到这里",dropZoneFilterPlaceholder:"拖动筛选字段到这里",update:"更新",selectFieldForReport:"选择要添加到报表的字段:",dragFieldsBetweenAreas:"在下面的区域之间拖动字段:",valueSummaryCriteria:"值汇总依据",roundRound:"四舍五入",roundFloor:"向下取整",roundCeil:"向上取整",roundTrunc:"截断",roundingMode:"舍入模式",decimalPlaces:"小数位数",decimalUnlimited:"无限制",showOriginalValue:"并列原始值",back:"返回",parentRowPct:"占上级行组百分比",parentColPct:"占上级列组百分比",rankAsc:"升序排名",rankDesc:"降序排名",index:"索引",showTotalsGrand:"总计",showTotalsSub:"小计",fieldPanelSetting:"字段设置",colSubtotalCriteria:"列小计基准",allowRowToggle:"允许行展开/折叠",allowColToggle:"允许列展开/折叠",outlineMode:"大纲模式"},Gantt:{searchPlaceholder:"搜索",columnSize:"列大小",rowSize:"行大小"},Chart:{filterPopup:"筛选",resetFilter:"重置筛选",addFilter:"添加筛选",symbolEqual:"等于",symbolNotEqual:"不等于",symbolContains:"包含",symbolNotContains:"不包含",symbolLessThan:"小于",symbolGreaterThan:"大于",symbolLessOrEqual:"小于等于",symbolGreaterOrEqual:"大于等于",symbolEmpty:"为空",symbolNotEmpty:"不为空",chartSetting:"图表设置",chartCategory:"图表类别",chartType:"图表类型",chartUseZoom:"使用缩放",multiYAxisSetting:"Y轴多轴设置",notUsed:"(未使用)",chartPopup:"图表弹窗",errorMessage:"加载数据时发生错误。",valueFieldSetting:"值字段设置",valueSummaryCriteria:"值汇总基准",selectFieldForReport:"选择要添加到报表的字段:",column:"列",row:"行",value:"值",sumValue:"∑ 值",count:"计数",sum:"合计",average:"平均",min:"最小值",max:"最大值",seriesCategory:"常规",pieCategory:"饼图",scatterCategory:"散点图",treemapCategory:"树状图",boxplotCategory:"箱线图",candlestickCategory:"K线图",barChart:"柱状图",stackBarChart:"堆叠柱状图",horizontalStackBarChart:"水平堆叠柱状图",lineChart:"折线图",lineSymbolChart:"折线图(符号)",areaChart:"面积图",general:"常规",custom:"自定义",axisCategoryLabel:"轴 (类别)",legendSeriesLabel:"图例 (系列)",legendSingleLabel:"图例 (单选)",legendMultiLabel:"图例 (多选)",valueSingleLabel:"值 (单选)",xAxisSingleLabel:"X轴 (单选)",yAxisMultiLabel:"Y轴 (多选)",notSet:"未指定",legendLimitExceededTitle:"图表图例数量已超过最大值 {limit} 个。",legendLimitExceededContent:"请将图例重新设置为 {limit} 个以内。"},NumberInput:{increase:"增加数值",decrease:"减少数值"},DateInput:{prevDate:"上一个日期",nextDate:"下一个日期"},PasswordInput:{showPassword:"显示密码",hidePassword:"隐藏密码"},Tab:{closeTab:"关闭 {label}"},SplitPane:{resizeHandle:"调整区域大小"},BreadCrumb:{navigation:"面包屑导航"}},$l={Toast:{close:"閉じる"},Chip:{remove:"削除"},Callout:{dismiss:"閉じる"},Notification:{close:"閉じる",unread:"未読"},Spinner:{label:"読み込み中"},CodeBlock:{label:"コード",copy:"{label}をコピー",copied:"コピーしました。",copyFailed:"コピーできませんでした。コードを選択してコピーしてください。"},Popup:{title:"ポップアップ",save:"保存",cancel:"キャンセル",ok:"OK",close:"閉じる"},Select:{searchPlaceholder:"検索",emptyText:"データがありません",requiredMessage:"{label} は必須です"},MultiSelect:{search:"検索",selectAll:"すべて選択",selectFiltered:"フィルター結果を選択",specificResults:"結果のみ",specificSelect:"選択のみ",noData:"データがありません",required:"{label} は必須です",headerFormat:"項目 ({count})"},TreeSelect:{search:"検索",selectAll:"すべて選択",selectFiltered:"フィルター結果を選択",specificResults:"結果のみ",noData:"データがありません",showSelectedOnly:"選択項目のみ表示",expandAll:"すべて展開",collapseAll:"すべて折りたたむ",required:"{label} は必須です",headerFormat:"項目 ({count})",expand:"展開",collapse:"折りたたむ"},Controller:{filterLabel:"検索条件"},TagInput:{add:"追加",editTag:"{label} を編集",removeTag:"{label} を削除"},TimePicker:{hour:"時",minute:"分",currentTime:"現在時刻"},EmptyState:{customEmptyHeader:"データなし",customEmptyContent:"表示するデータがありません。",dataEmptyHeader:"表示するデータがありません",dataEmptyContent:"必要なデータを入力してください。",resultEmptyHeader:"結果なし",resultEmptyContent:"検索条件を確認して再度お試しください。",searchEmptyHeader:"検索結果なし",searchEmptyContent:"フィルター値を確認して再度お試しください。"},TableSelect:{searchPlaceholder:"検索",emptyText:"データがありません",requiredMessage:"{label} は必須です",footerSelect:"選択",footerNavigate:"移動",footerClose:"閉じる"},Common:{requiredMessage:"{label} は必須です"},Grid:{layoutSetting:"レイアウト設定",filter:"フィルター",sort:"ソート",customCellStyle:"条件付き書式設定",reset:"リセット",searchFilter:"検索",newView:"新しいビュー",selectAll:"すべて選択",columnPicker:"列の表示/非表示設定",viewToolbar:"ツールバー表示",viewFooter:"フッター表示",viewGroupPanel:"グループパネル表示",resetFilterAndSort:"フィルター・ソートリセット",defaultView:"デフォルトビュー",filterPopup:"フィルター設定",resetFilter:"フィルターリセット",addFilter:"フィルター追加",sortingPopup:"ソート設定",ascending:"昇順",descending:"降順",resetSort:"ソートリセット",addSort:"ソート追加",symbolEqual:"等しい",symbolNotEqual:"等しくない",symbolContains:"含む",symbolNotContains:"含まない",symbolLessThan:"より小さい",symbolGreaterThan:"より大きい",symbolLessOrEqual:"以下",symbolGreaterOrEqual:"以上",symbolEmpty:"空",symbolNotEmpty:"空でない",customCellRuleNamePlaceholder:"ルール名を入力してください",addFormulaCondition:"条件追加",applicationColumn:"適用列",backgroundColor:"背景色",fontColor:"フォント色",resetCustomCell:"リセット",addFormulaConditionSet:"ルールを追加",customColor:"カスタム色",formulaConditionSet:"新しいルール",contextFilterAndSort:"フィルター・ソート",contextAddFilter:"フィルター追加",contextSelectFilter:"選択値でフィルター",contextResetColumnFilter:"列フィルターリセット",contextResetColumnSort:"列ソートリセット",contextResetColumnAll:"列フィルター/ソートリセット",contextDataCopy:"コピー",contextDataExcelCopy:"Excelコピー",contextDataWithHeaderCopy:"ヘッダー付きコピー",contextPin:"列固定",contextColumnPicker:"列選択",contextMoveColumnFirst:"最初の列に移動",contextAutoSizeColumns:"列幅自動調整",contextGroupPanel:"グループパネル",contextGroupToggle:"グループ折りたたみ/展開",contextGroupCollapseAll:"すべてのグループを折りたたむ",contextGroupExpandAll:"すべてのグループを展開",groupPanelPlaceholder:"列をドラッグ&ドロップしてグループを作成します。",contextBulkEdit:"{name} 一括編集",contextImport:"インポート",contextImportExcel:"Excelインポート(上書き)",contextImportExcelAppend:"Excelインポート(追加)",contextExport:"エクスポート",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"合計",check:"確認",cancel:"キャンセル",save:"保存",remove:"削除",close:"閉じる",pause:"一時停止",add:"追加",immediateApply:"すぐに適用",warning:"警告",mozWarning:"警告",confirmCancel:"キャンセルしますか?",alreadyExcelProgress:"Excel操作が進行中です。",downloadFail:"ダウンロードに失敗しました。",addDataWithFilterSort:"フィルター/ソート適用中にデータを追加しますか?",resetAndAdd:"リセットして追加",confirmDeleteGeneral:"{name}を削除しますか?",toastCopySuccess:"コピーしました。",toastSaveSuccess:"保存しました。",toastSaveError:"保存に失敗しました。",toastResetSuccess:"リセットしました。",toastRequiredVal:"必須値を入力してください。",excelInvalidExcel:"無効なExcelファイルです。",excelInvalidUpload:"無効なアップロードデータです。",downloadFormat:"フォーマットダウンロード",click:"クリック",drag:"ドラッグ",overwriteSelected:"選択項目を上書きしますか?",fileOverwrite:"ファイルを上書きしますか?",dropHere:"ここにドロップ",dropHerePrefix:"ここを",dropHereMiddle:"またはファイルを",dropHereSuffix:"してください。",withFormatting:"書式付き",requestTimedOut:"リクエストがタイムアウトしました。",serverError:"サーバーエラーが発生しました。",total:"合計",correct:"正常",error:"エラー",success:"成功",fail:"失敗",excelExportConfirmLargeData:"大量データをエクスポートしますか?",footerTotalRowCount:"合計: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"平均",aggregateCount:"件数",aggregateMin:"最小値",aggregateMax:"最大値",aggregateSum:"合計",settings:"設定",collapseToolbar:"ツールバーを折りたたむ",expandToolbar:"ツールバーを展開",searchPrev:"前の検索結果",searchNext:"次の検索結果",searchGoTo:"結果番号へ移動",searching:"検索中...",deleteCondition:"条件を削除",deleteSort:"ソートを削除",selectPlaceholder:"選択",byValueLabel:"ラベル",decrease:"減少",increase:"増加",selectColor:"色を選択",noColor:"色なし",customColorInput:"直接入力",alignLeft:"左揃え",alignCenter:"中央揃え",alignRight:"右揃え",alignLabel:"配置",fontStyleLabel:"文字スタイル",bold:"太字",italic:"斜体",underline:"下線",columnOptions:"列オプション",showAllColumns:"すべて表示",commonSection:"共通",headerLabelField:"ヘッダーラベル",pinColumn:"固定",pinLeft:"左",pinNone:"なし",pinRight:"右",columnWidthPx:"幅(px)",headerSection:"ヘッダー",cellSection:"セル",fontLabel:"文字",sizeLabel:"サイズ",displayMask:"表示形式(マスク)",resetThisColumn:"この列をリセット",selectColumnHint:"列を選択してください",showColumnNamed:"{column} を表示",columnTextColor:"文字色",cellStyleTitle:"セルスタイル",formulaHelp:"数式ヘルプ",validFormula:"有効な数式",formulaHint:"列を選択するか値を入力して数式を作成してください。",ruleName:"ルール名",targetColumns:"適用列",allColumns:"全列",colorLabel:"色",cellBgColor:"背景色",cellTextColor:"文字色",moveUp:"上へ",moveDown:"下へ",formulaPlaceholder:"例: [需要数] > [在庫数] AND [優先度] < 3",helpColumnRef:"列参照",helpCompare:"比較",helpArithmetic:"算術",helpLogic:"論理",helpString:"文字列",helpNull:"NULL チェック",helpValue:"値",groupColon:"グループ:",groupEmptyHint:"ここに列をドラッグしてグループ化",addGroupBtn:"+ グループ追加",ungroup:"解除",removeGroup:"グループ削除",excelImportTitle:"Excel 取り込み",processing:"処理中…",excelPreview:"プレビュー {shown}行 / 全 {total}行+",clientImportFile:"ファイルから取り込み (クライアント)",clientExportXlsx:"XLSX (クライアント)",groupExpand:"グループを展開",groupCollapse:"グループを折りたたむ",fontSizeDefault:"既定",maskGroupNone:"なし",maskGroupNumber:"数値",maskGroupDate:"日付",maskGroupString:"文字列",maskNoneText:"マスクなし",maskNoneDesc:"元の値をそのまま表示",maskThousandsText:"桁区切り (1,234)",maskThousandsDesc:"例: 1234 → 1,234",maskDecimal2Text:"小数2桁 (#,##0.00)",maskDecimal2Desc:"例: 1234.5 → 1,234.50",maskKrwText:"ウォン (₩1,234)",maskKrwDesc:"例: 1234 → ₩1,234",maskUsdText:"ドル ($1,234.00)",maskUsdDesc:"例: 1234.5 → $1,234.50",maskPercentText:"パーセント (12%)",maskPercentDesc:"例: 12 → 12%",maskDateIsoDesc:"例: 2026-05-26",maskDateKoDesc:"例: 2026-05-26",maskDatetimeDesc:"例: 2026-05-26 14:30",maskDateUsDesc:"例: 05/26/2026",maskPhoneText:"電話番号 (010-1234-5678)",maskPhoneDesc:"例: 01012345678 → 010-1234-5678",maskRrnText:"住民登録番号 (000000-0000000)",maskRrnDesc:"例: 9501011234567 → 950101-1234567",maskBizText:"事業者登録番号 (000-00-00000)",maskBizDesc:"例: 1234567890 → 123-45-67890"},GridPivot:{setting:"ピボット設定",gridSetting:"グリッド設定",fieldSetting:"フィールド設定",showRowTotals:"行合計表示",showColumnTotals:"列合計表示",subtotalCriteria:"小計基準",subtotalAggregateField:"小計集計フィールド",totalsBeforeData:"データ前に合計表示",showZeros:"ゼロ表示",showOutlineMode:"アウトラインモード",collapsibleSubtotal:"小計折りたたみ",fieldName:"フィールド名",fieldAggregate:"集計",fieldShowAs:"表示方式",fieldFormat:"形式",openChart:"チャートを開く",selectValueField:"値フィールド選択",none:"なし",sum:"合計",count:"個数",average:"平均",max:"最大値",min:"最小値",range:"範囲",std:"標準偏差",var:"分散",stdPop:"母標準偏差",varPop:"母分散",cntAll:"全個数",cntNumbers:"数値の個数",showFirstValue:"最初の値",showLastValue:"最後の値",noCalculation:"計算なし",diffRow:"前の行との差",diffRowPct:"前の行との差 (%)",diffCol:"前の列との差",diffColPct:"前の列との差 (%)",grandtotalPct:"総計に対する割合",rowTotalPct:"行合計に対する割合",colTotalPct:"列合計に対する割合",prevRowPct:"前の行に対する割合",prevColPct:"前の列に対する割合",runTot:"累計",runTotPct:"累計割合",generalFormat:"一般",int:"整数",float:"小数",currency:"通貨",percentage:"パーセント (整数)",percentageDot2:"パーセント (小数)",thousands:"千単位",millions:"百万単位",billions:"十億単位",subtotal:"小計",grandtotal:"総計",grandtotalValue:"総合計",category:"カテゴリ",chartType:"チャートタイプ",chartXAxis:"X軸",chartYAxis:"Y軸",categoryName:"カテゴリ名",barChart:"棒グラフ",lineChart:"折れ線グラフ",lineSymbolChart:"シンボル折れ線グラフ",areaChart:"エリアチャート",chartRenderingErrorHeader:"チャートレンダリングエラー",chartRenderingErrorContent:"チャートを表示できません。",contextPivotExportXlsx:"ビューエクスポート (xlsx)",contextPivotExportOriginXlsx:"元データエクスポート (xlsx)",contextPivotExportOriginCsv:"元データエクスポート (csv)",row:"行",column:"列",value:"値",filter:"フィルター",searchFieldPlaceholder:"フィールド検索...",dropZoneRowPlaceholder:"行軸フィールドをドラッグしてください",dropZoneColumnPlaceholder:"列軸フィールドをドラッグしてください",dropZoneValuePlaceholder:"値フィールドをドラッグしてください",dropZoneFilterPlaceholder:"フィルターフィールドをドラッグしてください",update:"更新",selectFieldForReport:"レポートに追加するフィールドを選択:",dragFieldsBetweenAreas:"下の領域間にフィールドをドラッグしてください:",valueSummaryCriteria:"値の集計方法",roundRound:"四捨五入",roundFloor:"切り捨て",roundCeil:"切り上げ",roundTrunc:"切り捨て(0方向)",roundingMode:"丸めモード",decimalPlaces:"小数点桁数",decimalUnlimited:"制限なし",showOriginalValue:"元の値を併記",back:"戻る",parentRowPct:"上位行グループ比 (%)",parentColPct:"上位列グループ比 (%)",rankAsc:"昇順ランク",rankDesc:"降順ランク",index:"インデックス",showTotalsGrand:"合計",showTotalsSub:"小計",fieldPanelSetting:"フィールド設定",colSubtotalCriteria:"列小計基準",allowRowToggle:"行の展開/折りたたみ許可",allowColToggle:"列の展開/折りたたみ許可",outlineMode:"アウトラインモード"},Gantt:{searchPlaceholder:"検索",columnSize:"列サイズ",rowSize:"行サイズ"},Chart:{filterPopup:"フィルター",resetFilter:"フィルターリセット",addFilter:"フィルター追加",symbolEqual:"等しい",symbolNotEqual:"等しくない",symbolContains:"含む",symbolNotContains:"含まない",symbolLessThan:"より小さい",symbolGreaterThan:"より大きい",symbolLessOrEqual:"以下",symbolGreaterOrEqual:"以上",symbolEmpty:"空",symbolNotEmpty:"空でない",chartSetting:"チャート設定",chartCategory:"チャートカテゴリ",chartType:"チャートタイプ",chartUseZoom:"ズーム使用",multiYAxisSetting:"Y軸マルチ設定",notUsed:"(使用しない)",chartPopup:"チャートポップアップ",errorMessage:"データの読み込み中にエラーが発生しました。",valueFieldSetting:"値フィールド設定",valueSummaryCriteria:"値集計基準",selectFieldForReport:"レポートに追加するフィールドを選択:",column:"列",row:"行",value:"値",sumValue:"∑ 値",count:"件数",sum:"合計",average:"平均",min:"最小値",max:"最大値",seriesCategory:"一般",pieCategory:"パイ",scatterCategory:"散布図",treemapCategory:"ツリーマップ",boxplotCategory:"ボックスプロット",candlestickCategory:"ローソク足",barChart:"棒グラフ",stackBarChart:"スタック棒グラフ",horizontalStackBarChart:"横スタック棒グラフ",lineChart:"折れ線グラフ",lineSymbolChart:"折れ線グラフ(シンボル)",areaChart:"エリアチャート",general:"一般",custom:"カスタム",axisCategoryLabel:"軸 (カテゴリ)",legendSeriesLabel:"凡例 (シリーズ)",legendSingleLabel:"凡例 (単一選択)",legendMultiLabel:"凡例 (複数選択可)",valueSingleLabel:"値 (単一選択)",xAxisSingleLabel:"X軸 (単一選択)",yAxisMultiLabel:"Y軸 (複数選択可)",notSet:"未指定",legendLimitExceededTitle:"チャートの凡例数が最大 {limit} 件を超えました。",legendLimitExceededContent:"凡例を {limit} 件以下に再設定してください。"},NumberInput:{increase:"値を増やす",decrease:"値を減らす"},DateInput:{prevDate:"前の日付",nextDate:"次の日付"},PasswordInput:{showPassword:"パスワードを表示",hidePassword:"パスワードを非表示"},Tab:{closeTab:"{label} を閉じる"},SplitPane:{resizeHandle:"領域サイズの調整"},BreadCrumb:{navigation:"パンくずリスト"}};let Sl=0;function ye(e){return(t,o,s,l)=>{const i=e.portal?new Yt:null,r=i?i.open():t,p=`h${++Sl}:`,d=new wn;if(l!=null&&l.slots)for(const[X,E]of Object.entries(l.slots))d.register(X,E);l!=null&&l.slotResolver&&d.setResolver(l.slotResolver);const b=new Set(Object.keys(o)),c=l!=null&&l.providedKeys?new Set(l.providedKeys):null,m=X=>{const E=e.defaults;if(!E)return X;const V={...X};for(const J of Object.keys(E))V[J]===void 0&&(V[J]=E[J]);return V};let u=m({...o}),k=(l==null?void 0:l.locale)??It;const x=(l==null?void 0:l.validator)??null,S=[];let L=new Map,M=new Set,f=new Map,a=null;const h={get props(){return u},emit:s,slots:d,requestUpdate:()=>O.requestUpdate(),onCleanup:X=>S.push(X),px:X=>Ae(X),get locale(){return k},validator:x,controlled:X=>c?c.has(X):b.has(X),slot(X,E){if(!d.has(X))return n.nothing;const V=f.get(X)??0;f.set(X,V+1);const J=`${X}#${V}`;return L.set(J,{name:X,scope:E}),n.html`<span data-moz-slot=${X} data-moz-slot-id=${p+J}></span>`}},$=e.setup(h);class _ extends vn{template(){return L=new Map,f=new Map,$.render()}renderNow(){super.renderNow();let E=null;if($.renderPortal){const V=$.renderPortal(),J=$.getPortalContainer?$.getPortalContainer():document.body;V===n.nothing||V==null||J==null?a&&a.isOpen&&(n.render(n.nothing,a.element),a.close()):(a||(a=new Yt),E=a.isOpen?a.element:a.open("moz-overlay-portal",J),n.render(V,E))}for(const[V,{name:J,scope:le}]of L){const N=`[data-moz-slot-id="${p+V}"]`;let ie=this.container.querySelector(N);!ie&&E&&(ie=E.querySelector(N)),ie&&d.fill(V,J,ie,le)}for(const V of M)L.has(V)||d.clear(V);M=new Set(L.keys())}flush(){this.isMounted&&this.renderNow()}onDestroy(){for(const E of S.splice(0))try{E()}catch{}d.destroy()}}const O=new _(r);O.mount();let U=!1;const Q=()=>{var X;U||!O.isMounted||(U=!0,(X=$.onMounted)==null||X.call($,r.firstElementChild))};return l!=null&&l.deferMounted||Q(),{get el(){return r.firstElementChild},update(X,E){E!=null&&E.replace?(u=m({...X}),b.clear()):u=m({...u,...X});for(const V of Object.keys(X))b.add(V);E!=null&&E.sync?O.flush():O.requestUpdate()},destroy(){O.destroy(),i==null||i.close(),a==null||a.close()},setLocale(X){X!==k&&(k=X??It,O.requestUpdate())},api:$.api??{},notifyMounted:Q}}}const kl={MozBadge:["dot"],MozBreadCrumb:["showFavorite"],MozButton:["disabled","loading","pressed"],MozCallout:["compact","dismissible","hideIcon","live"],MozCheckBox:["checked","disabled","indeterminate","modelValue","readonly"],MozChip:["disabled","labelInteractive","removable","selected"],MozCodeBlock:["copy","plain"],MozCollapsible:["disabled","forceMount","open"],MozContextMenu:["disableCloseOnClickBackdrop","noPadding","toBottomCenter","toTopCenter"],MozController:["customQueryParamsPanel","showFavorite","showFilterButton","showPreset"],MozDateInput:["disabled","readonly","required","showSpin"],MozDisclosure:["defaultOpen","disabled","marker","open"],MozEmptyState:["composed","isCustomState","isReadOnly","useImg"],MozIconButton:["disabled","loading","pressed"],MozInput:["disabled","isReadOnly","required","useInvalidV2"],MozLabel:["disabled","isReadOnly","required"],MozLink:["download"],MozMultiSelect:["autoSelectNewItems","disabled","inline","loading","preserveMissingValues","readonly","required","selectAllWhenEmpty","useFilter","useSelectAll","useSpecificSelect"],MozNotificationCard:["dismissible","inline","pauseOnHover"],MozNotificationItem:["unread"],MozNumberInput:["disabled","isReadOnly","nullable","required","shortMode","useInvalidV2"],MozPopover:["matchTriggerWidth","open","trapFocus"],MozPopup:["autoPosition","closeOnOutsideClick","disabledConfirmButton","draggable","fitViewport","focusTrap","hideOthers","keepAspectRatio","loading","lockScroll","resizeable","showBackdrop","showCloseButton","showFooterBorder","showHeader","useVShow","visible"],MozRadio:["disabled","iconOnly","required"],MozSelect:["disabled","readonly","required","useFilter","useObjBinding"],MozSlider:["disabled"],MozSplitPane:["horizontal"],MozTab:["closeAble","vertical"],MozTableSelect:["disabled","readonly","required","useFilter","useObjKeyProp"],MozTagInput:["disableDelete","disableUpdate","dynamicSearch","isExpandTop","pushOnBlur","required","simplify"],MozTextArea:["disabled","immediatelyFocus","required"],MozTimePicker:["disabled","required"],MozToast:["composed","dismissible","inline","pauseOnHover","queue","showProgress"],MozToggle:["disabled","readonly","required","visible"],MozTooltip:["arrow","open"],MozTreeSelect:["disabled","readonly","required","useFilter","useMultiSelect","useSelectAll","useSpecificSelect"]};class Ml extends mo.Directive{constructor(o){super(o);Ve(this,"prevKeys",[]);Ve(this,"listeners",new Map);if(o.type!==mo.PartType.ELEMENT)throw new Error("spread() 는 element 바인딩(`<el ${spread(obj)}>`)에서만 사용할 수 있습니다.")}render(o){return n.nothing}update(o,[s]){const l=o.element,i=s??{};for(const r of this.prevKeys)if(!(r in i))if(this.isEventKey(r)){const p=this.listeners.get(r);p&&l.removeEventListener(this.eventName(r),p),this.listeners.delete(r)}else l.removeAttribute(r);for(const[r,p]of Object.entries(i))if(!(r==="class"||r==="style"||r==="key"||r==="ref"))if(this.isEventKey(r)&&typeof p=="function"){const d=this.eventName(r),b=this.listeners.get(r);b&&l.removeEventListener(d,b),l.addEventListener(d,p),this.listeners.set(r,p)}else p==null?l.removeAttribute(r):r.startsWith("aria-")?l.setAttribute(r,String(p)):p===!1?l.removeAttribute(r):p===!0?l.setAttribute(r,""):l.setAttribute(r,String(p));return this.prevKeys=Object.keys(i),n.noChange}isEventKey(o){return o.length>2&&o.startsWith("on")&&o[2]===o[2].toUpperCase()}eventName(o){return o.slice(2).toLowerCase()}}const ce=mo.directive(Ml);function A(...e){return cl.clsx(e)}function El(){return gt.extend(hl),gt.extend(pl),gt.extend(dl),gt.extend(ul),gt.extend(ml),gt.extend(fl),gt.tz.setDefault("Asia/Seoul"),gt}const xe=El();function xl(){const e=[];return{addValidator:i=>{e.push(i)},removeValidator:i=>{const r=e.findIndex(p=>p.validate===i.validate);r>=0&&e.splice(r,1)},validate:async(i="save")=>(await Promise.all(e.map(p=>p.validate(i).then(d=>d===void 0?!0:d)))).every(p=>p),initValidator:()=>{var i;for(const r of e)(i=r==null?void 0:r.initValidator)==null||i.call(r)}}}const Ll=16;function zl(e,t){let o=0;return(...s)=>{const l=Date.now();l-o>=t&&(o=l,e(...s))}}class to{constructor(t){Ve(this,"opened",!1);Ve(this,"scrollHandler");Ve(this,"clickHandler");this.opts=t,this.scrollHandler=zl(o=>this.onScroll(o),Ll),this.clickHandler=o=>this.onOutsideClick(o)}open(){this.opened||(this.opened=!0,document.addEventListener("scroll",this.scrollHandler,{capture:!0}),this.opts.closeOnOutsideClick!==!1&&setTimeout(()=>{this.opened&&document.addEventListener("click",this.clickHandler,{capture:!0})},0),queueMicrotask(()=>this.calcPosition()))}close(){this.opened&&(this.opened=!1,document.removeEventListener("scroll",this.scrollHandler,{capture:!0}),document.removeEventListener("click",this.clickHandler,{capture:!0}))}destroy(){this.close()}calcPosition(){const t=this.opts.anchor(),o=this.opts.panel();if(!t||!o)return;const s=t.getBoundingClientRect(),l=this.opts.maxHeight?this.opts.maxHeight():250,i=window.innerHeight-s.bottom,r=s.top,p=i<l&&r>=l;let d=s.left;const b=o.clientWidth;s.left+b>document.body.clientWidth&&(d-=b-s.width);let c=`${s.width}px`,m=!1;if(this.opts.listWidth){const u=this.opts.listWidth();u&&(typeof u!="number"||u>0)&&(c=typeof u=="number"?`${u}px`:u,m=!0)}o.style.position="fixed",o.style.left=`${d}px`,this.opts.useMinWidth?(o.style.minWidth=`${s.width}px`,m&&(o.style.width=String(c))):m?o.style.width=String(c):o.style.width=`${s.width}px`,p?(o.style.bottom=`${window.innerHeight-s.top}px`,o.style.top="auto"):(o.style.top=`${s.bottom}px`,o.style.bottom="auto")}onScroll(t){const o=t.target;if(this.opts.ignoreScrollTargets&&o&&this.opts.ignoreScrollTargets(o))return;const s=this.opts.anchor();if(s){const l=s.getBoundingClientRect();if(l.bottom<0||l.top>window.innerHeight){this.opts.requestClose();return}}this.calcPosition()}onOutsideClick(t){var s,l,i,r,p;if(this.opts.closeOnOutsideClick===!1)return;const o=t.target;(i=(l=(s=this.opts).container)==null?void 0:l.call(s))!=null&&i.contains(o)||(r=this.opts.panel())!=null&&r.contains(o)||(p=this.opts.anchor())!=null&&p.contains(o)||this.opts.requestClose()}}const ht=[];let jt=!1;function yn(e){var o;if(e.key!=="Escape")return;const t=ht[ht.length-1];t&&t.kind==="moz"&&((o=t.onEscape)==null||o.call(t,e),e.stopPropagation())}function Pl(){jt||typeof window>"u"||(window.addEventListener("keydown",yn,{capture:!0}),jt=!0)}function Tl(){!jt||typeof window>"u"||(window.removeEventListener("keydown",yn,!0),jt=!1)}function Mo(e){ht.push(e),Pl();let t=!1;return{release(){if(t)return;t=!0;const o=ht.indexOf(e);o>=0&&ht.splice(o,1),ht.length===0&&Tl()},isTopmost(){return ht[ht.length-1]===e}}}function Eo(e){return Mo({kind:"moz",onEscape:e})}function Al(){return Mo({kind:"foreign"})}function oo(){return Mo({kind:"self"})}function Il(){return ht.length}function jo(){return n.html`<svg aria-hidden="true" role="status" class="moz-circle-loader"
3
3
  width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
4
4
  <path d="M7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0ZM7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12C9.76142 12 12 9.76142 12 7C12 4.23858 9.76142 2 7 2Z"
5
5
  fill="var(--moz-color-on-accent)" fill-opacity="0.180392"></path>
6
6
  <path d="M0 7C0 3.13401 3.13401 0 7 0C7.55228 0 8 0.447715 8 1C8 1.55228 7.55228 2 7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12C9.76142 12 12 9.76142 12 7C12 6.44772 12.4477 6 13 6C13.5523 6 14 6.44772 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7Z"
7
7
  fill="var(--moz-color-on-accent)" fill-opacity="0.956863"></path>
8
- </svg>`}function Ro(e){return s.html`<svg aria-hidden="true" role="status" class="moz-circle-loader"
8
+ </svg>`}function Xo(e){return n.html`<svg aria-hidden="true" role="status" class="moz-circle-loader"
9
9
  width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
10
10
  <path d="M7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0ZM7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12C9.76142 12 12 9.76142 12 7C12 4.23858 9.76142 2 7 2Z"
11
11
  fill=${e} fill-opacity="0.180392"></path>
12
12
  <path d="M0 7C0 3.13401 3.13401 0 7 0C7.55228 0 8 0.447715 8 1C8 1.55228 7.55228 2 7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12C9.76142 12 12 9.76142 12 7C12 6.44772 12.4477 6 13 6C13.5523 6 14 6.44772 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7Z"
13
13
  fill=${e} fill-opacity="0.956863"></path>
14
- </svg>`}function Wn(){return s.html`<svg aria-hidden="true" role="status" class="moz-circle-loader"
14
+ </svg>`}function Rl(){return n.html`<svg aria-hidden="true" role="status" class="moz-circle-loader"
15
15
  width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
16
16
  <path d="M7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0ZM7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12C9.76142 12 12 9.76142 12 7C12 4.23858 9.76142 2 7 2Z"
17
17
  fill="#fde7e7"></path>
18
18
  <path d="M0 7C0 3.13401 3.13401 0 7 0C7.55228 0 8 0.447715 8 1C8 1.55228 7.55228 2 7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12C9.76142 12 12 9.76142 12 7C12 6.44772 12.4477 6 13 6C13.5523 6 14 6.44772 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7Z"
19
19
  fill="var(--moz-color-danger)"></path>
20
- </svg>`}function Qo(e={}){const{circleClass:t="",progressClass:o=""}=e;return s.html`<svg
20
+ </svg>`}function bn(e={}){const{circleClass:t="",progressClass:o=""}=e;return n.html`<svg
21
21
  aria-hidden="true"
22
22
  role="status"
23
23
  class="moz-circle-loader"
@@ -38,87 +38,87 @@
38
38
  fill="var(--moz-color-accent)"
39
39
  class=${o}
40
40
  ></path>
41
- </svg>`}const Jo=["large","medium","small"];function Rt(e="default"){switch(e){case"contained-critical":return"moz-critical-button";case"contained-critical-weak":return"moz-critical-weak-button";case"contained-large":return"moz-default-button moz-action-button-large";case"contained-small":return"moz-default-button moz-action-button-small";case"text":return"moz-text-button";case"outline":return"moz-outline-button";case"outline-icon":return"moz-outline-icon-button";case"icon":return"moz-icon-button";case"icon-accent":return"moz-icon-button moz-icon-accent-button";case"no-interaction":return"moz-icon-button moz-no-interaction-button";case"rail":return"moz-rail-button";case"rail-home":return"moz-rail-button moz-rail-home-button";case"rail-profile":return"moz-rail-button moz-rail-profile-button";case"default":default:return"moz-default-button"}}function Kn(e){return Jo.includes(e)?e:void 0}function es(e,t){const o=Kn(t);switch(e??"default"){case"contained-large":return o??"large";case"contained-small":return o??"small";case"default":case"contained":return o;case"text":return o==="large"?void 0:o;case"outline":case"contained-critical":case"contained-critical-weak":return o==="medium"?o:void 0;default:return}}function ts(e,t){return e==="text"&&t==="neutral"}function os(e,t){const o=e??"default";return Rt(o==="contained-large"||o==="contained-small"||o==="default"||o==="contained"?t==="large"?"contained-large":t==="small"?"contained-small":"default":o)}function ss(e="default"){return e==="contained-critical-weak"?Wn():e==="contained-critical"||e==="default"||e==="contained"||e==="contained-large"||e==="contained-small"?Ao():e==="rail"||e==="rail-home"?Ro("var(--moz-color-rail-button-foreground)"):e==="rail-profile"?Ro("var(--moz-color-rail-profile-foreground)"):Qo({circleClass:"fill-accent-50",progressClass:"fill-accent-400"})}function ns(e,t){return typeof t!="boolean"?e:{...e,"aria-pressed":t?"true":"false"}}const Zn=new Set(["action","text","type","nativeType","width","size","tone","loading","disabled","pressed","class","style"]);function kt(e,t={}){const o=!!e.disabled||!!e.loading,n=t.icon!=null&&t.icon!==s.nothing,l=es(e.type,e.size),c=e.width==null?void 0:typeof e.width=="number"?`${De(e.width)}rem`:e.width,r=e.width==null?void 0:typeof e.width=="number"?`${e.width}px`:e.width,h={width:c,minWidth:c,"--moz-btn-loading-width":r,...Ce(e.style)},d=b=>{var a;o||(a=t.onClick)==null||a.call(t,b)};return s.html`
41
+ </svg>`}const Cn=["large","medium","small"];function Ot(e="default"){switch(e){case"contained-critical":return"moz-critical-button";case"contained-critical-weak":return"moz-critical-weak-button";case"contained-large":return"moz-default-button moz-action-button-large";case"contained-small":return"moz-default-button moz-action-button-small";case"text":return"moz-text-button";case"outline":return"moz-outline-button";case"outline-icon":return"moz-outline-icon-button";case"icon":return"moz-icon-button";case"icon-accent":return"moz-icon-button moz-icon-accent-button";case"no-interaction":return"moz-icon-button moz-no-interaction-button";case"rail":return"moz-rail-button";case"rail-home":return"moz-rail-button moz-rail-home-button";case"rail-profile":return"moz-rail-button moz-rail-profile-button";case"default":default:return"moz-default-button"}}function Dl(e){return Cn.includes(e)?e:void 0}function $n(e,t){const o=Dl(t);switch(e??"default"){case"contained-large":return o??"large";case"contained-small":return o??"small";case"default":case"contained":return o;case"text":return o==="large"?void 0:o;case"outline":case"contained-critical":case"contained-critical-weak":return o==="medium"?o:void 0;default:return}}function Sn(e,t){return e==="text"&&t==="neutral"}function kn(e,t){const o=e??"default";return Ot(o==="contained-large"||o==="contained-small"||o==="default"||o==="contained"?t==="large"?"contained-large":t==="small"?"contained-small":"default":o)}function Mn(e="default"){return e==="contained-critical-weak"?Rl():e==="contained-critical"||e==="default"||e==="contained"||e==="contained-large"||e==="contained-small"?jo():e==="rail"||e==="rail-home"?Xo("var(--moz-color-rail-button-foreground)"):e==="rail-profile"?Xo("var(--moz-color-rail-profile-foreground)"):bn({circleClass:"fill-accent-50",progressClass:"fill-accent-400"})}function En(e,t){return typeof t!="boolean"?e:{...e,"aria-pressed":t?"true":"false"}}const Vl=new Set(["action","text","type","nativeType","width","size","tone","loading","disabled","pressed","class","style"]);function Ct(e,t={}){const o=!!e.disabled||!!e.loading,s=t.icon!=null&&t.icon!==n.nothing,l=$n(e.type,e.size),i=e.width==null?void 0:typeof e.width=="number"?`${Ae(e.width)}rem`:e.width,r=e.width==null?void 0:typeof e.width=="number"?`${e.width}px`:e.width,p={width:i,minWidth:i,"--moz-btn-loading-width":r,...he(e.style)},d=b=>{var c;o||(c=t.onClick)==null||c.call(t,b)};return n.html`
42
42
  <button
43
43
  type=${e.nativeType??"button"}
44
- class=${V("moz-button",os(e.type,l),{loading:!!e.loading,disabled:o,"moz-icon-text-button":n,"moz-text-neutral-button":ts(e.type,e.tone)},e.class)}
45
- style=${te.styleMap(h)}
44
+ class=${A("moz-button",kn(e.type,l),{loading:!!e.loading,disabled:o,"moz-icon-text-button":s,"moz-text-neutral-button":Sn(e.type,e.tone)},e.class)}
45
+ style=${j.styleMap(p)}
46
46
  ?disabled=${o}
47
47
  @click=${d}
48
- ${fe(ns(t.rest??{},e.pressed))}
49
- data-size=${l??s.nothing}
48
+ ${ce(En(t.rest??{},e.pressed))}
49
+ data-size=${l??n.nothing}
50
50
  aria-busy=${e.loading?"true":"false"}
51
51
  >
52
- ${e.loading?s.html`<span class="spinner" data-part="spinner" aria-hidden="true"
53
- >${ss(e.type)}</span
54
- >`:s.nothing}
55
- ${t.icon??s.nothing}
56
- ${e.text||t.content!=null?s.html`<span class=${V("text",{"has-icon-text":n})} data-part="label"
57
- >${e.text??""}${t.content??s.nothing}</span
58
- >`:s.nothing}
52
+ ${e.loading?n.html`<span class="spinner" data-part="spinner" aria-hidden="true"
53
+ >${Mn(e.type)}</span
54
+ >`:n.nothing}
55
+ ${t.icon??n.nothing}
56
+ ${e.text||t.content!=null?n.html`<span class=${A("text",{"has-icon-text":s})} data-part="label"
57
+ >${e.text??""}${t.content??n.nothing}</span
58
+ >`:n.nothing}
59
59
  </button>
60
- `}const ls=$e({name:"moz-button",defaults:{type:"default",loading:!1,disabled:!1},setup(e){let t=!!e.props.loading,o=e.props.loading;const n=l=>{const c=e.props;c.disabled||t||(e.emit("click",l),c.action==="Search"&&(t=!0,c.loading||(t=!1),e.requestUpdate()))};return{api:{setLoading(l){t=l,e.requestUpdate()}},render(){const l=e.props;l.loading!==o&&(o=l.loading,t=!!l.loading);const c=e.slots.has("icon"),r=!!l.disabled||t,h=es(l.type,l.size),d=l.width==null?void 0:typeof l.width=="number"?`${e.px(l.width)}rem`:l.width,b=l.width==null?void 0:typeof l.width=="number"?`${l.width}px`:l.width,a={};for(const u of Object.keys(l))Zn.has(u)||(a[u]=l[u]);const m={width:d,minWidth:d,"--moz-btn-loading-width":b,...Ce(l.style)};return s.html`
60
+ `}const xn=ye({name:"moz-button",defaults:{type:"default",loading:!1,disabled:!1},setup(e){let t=!!e.props.loading,o=e.props.loading;const s=l=>{const i=e.props;i.disabled||t||(e.emit("click",l),i.action==="Search"&&(t=!0,i.loading||(t=!1),e.requestUpdate()))};return{api:{setLoading(l){t=l,e.requestUpdate()}},render(){const l=e.props;l.loading!==o&&(o=l.loading,t=!!l.loading);const i=e.slots.has("icon"),r=!!l.disabled||t,p=$n(l.type,l.size),d=l.width==null?void 0:typeof l.width=="number"?`${e.px(l.width)}rem`:l.width,b=l.width==null?void 0:typeof l.width=="number"?`${l.width}px`:l.width,c={};for(const u of Object.keys(l))Vl.has(u)||(c[u]=l[u]);const m={width:d,minWidth:d,"--moz-btn-loading-width":b,...he(l.style)};return n.html`
61
61
  <button
62
62
  type=${l.nativeType??"button"}
63
- class=${V("moz-button",os(l.type,h),{loading:t,disabled:r,"moz-icon-text-button":c,"moz-text-neutral-button":ts(l.type,l.tone)},l.class)}
64
- style=${te.styleMap(m)}
63
+ class=${A("moz-button",kn(l.type,p),{loading:t,disabled:r,"moz-icon-text-button":i,"moz-text-neutral-button":Sn(l.type,l.tone)},l.class)}
64
+ style=${j.styleMap(m)}
65
65
  ?disabled=${r}
66
- @click=${n}
67
- ${fe(ns(a,l.pressed))}
68
- data-size=${h??s.nothing}
66
+ @click=${s}
67
+ ${ce(En(c,l.pressed))}
68
+ data-size=${p??n.nothing}
69
69
  aria-busy=${t?"true":"false"}
70
70
  >
71
- ${t?s.html`<span class="spinner" data-part="spinner" aria-hidden="true"
72
- >${ss(l.type)}</span
73
- >`:s.nothing}
71
+ ${t?n.html`<span class="spinner" data-part="spinner" aria-hidden="true"
72
+ >${Mn(l.type)}</span
73
+ >`:n.nothing}
74
74
  ${e.slot("icon",{disabled:r})}
75
- ${l.text||e.slots.has("default")?s.html`<span class=${V("text",{"has-icon-text":c})} data-part="label"
75
+ ${l.text||e.slots.has("default")?n.html`<span class=${A("text",{"has-icon-text":i})} data-part="label"
76
76
  >${l.text??""}${e.slot("default",{disabled:r})}</span
77
- >`:s.nothing}
77
+ >`:n.nothing}
78
78
  </button>
79
- `}}}}),Gn={name:"MozButton",core:ls,booleanProps:["disabled","loading","pressed"],props:["action","text","type","nativeType","width","size","tone","loading","disabled","pressed"],emits:["click"],slots:["icon","default"],expose:!0},Yn=new Set(["for","disabled","required","isReadOnly","class","style"]);function fo(e,t){return V("moz-label",{disabled:!!e.disabled,"read-only":!!e.isReadOnly},t,e.class)}function Xe(e,t,o){return s.html`<label class=${fo(e,o)} for=${Ee.ifDefined(e.for)}
80
- >${t}${e.required?s.html`<span class="require-mark">*</span>`:s.nothing}</label
81
- >`}const is=$e({name:"moz-label",setup(e){return{render(){const t=e.props,o=ye(t,Yn);return s.html`<label
82
- class=${fo(t)}
83
- for=${Ee.ifDefined(t.for)}
84
- style=${te.styleMap(Ce(t.style))}
85
- ${fe(o)}
86
- >${e.slot("default")}${t.required?s.html`<span class="require-mark">*</span>`:s.nothing}</label
87
- >`}}}}),jn={name:"MozLabel",core:is,booleanProps:["disabled","isReadOnly","required"],props:["for","disabled","required","isReadOnly"],emits:[],slots:["default"],expose:!1},Xn=new Set(["modelValue","label","labelPosition","required","readonly","disabled","visible","class","style"]);function Ht(e){const t=!!e.model;return s.html`
79
+ `}}}}),Ol={name:"MozButton",core:xn,booleanProps:["disabled","loading","pressed"],props:["action","text","type","nativeType","width","size","tone","loading","disabled","pressed"],emits:["click"],slots:["icon","default"],expose:!0},_l=new Set(["for","disabled","required","isReadOnly","class","style"]);function xo(e,t){return A("moz-label",{disabled:!!e.disabled,"read-only":!!e.isReadOnly},t,e.class)}function Je(e,t,o){return n.html`<label class=${xo(e,o)} for=${$e.ifDefined(e.for)}
80
+ >${t}${e.required?n.html`<span class="require-mark">*</span>`:n.nothing}</label
81
+ >`}const Ln=ye({name:"moz-label",setup(e){return{render(){const t=e.props,o=ge(t,_l);return n.html`<label
82
+ class=${xo(t)}
83
+ for=${$e.ifDefined(t.for)}
84
+ style=${j.styleMap(he(t.style))}
85
+ ${ce(o)}
86
+ >${e.slot("default")}${t.required?n.html`<span class="require-mark">*</span>`:n.nothing}</label
87
+ >`}}}}),Bl={name:"MozLabel",core:Ln,booleanProps:["disabled","isReadOnly","required"],props:["for","disabled","required","isReadOnly"],emits:[],slots:["default"],expose:!1},ql=new Set(["modelValue","label","labelPosition","required","readonly","disabled","visible","class","style"]);function Xt(e){const t=!!e.model;return n.html`
88
88
  <div
89
89
  data-part="root"
90
- class=${V(e.class)}
91
- style=${te.styleMap({...Ce(e.style),...e.visible===!1?{display:"none"}:{}})}
92
- ${fe(e.rest??{})}
90
+ class=${A(e.class)}
91
+ style=${j.styleMap({...he(e.style),...e.visible===!1?{display:"none"}:{}})}
92
+ ${ce(e.rest??{})}
93
93
  >
94
94
  <div class="moz-switch">
95
- ${e.labelPosition!=="right"?Xe({for:e.id,disabled:e.disabled,required:e.required},e.label??"","label-left"):s.nothing}
96
- <div class=${V("moz-switch-box",{active:t,disabled:!!e.disabled})}>
95
+ ${e.labelPosition!=="right"?Je({for:e.id,disabled:e.disabled,required:e.required},e.label??"","label-left"):n.nothing}
96
+ <div class=${A("moz-switch-box",{active:t,disabled:!!e.disabled})}>
97
97
  <input
98
98
  id=${e.id}
99
99
  class="moz-switch-input"
100
100
  type="checkbox"
101
101
  role="switch"
102
- ${fe(e.inputRest??{})}
102
+ ${ce(e.inputRest??{})}
103
103
  aria-checked=${t?"true":"false"}
104
104
  ?disabled=${!!e.disabled}
105
105
  .checked=${t}
106
106
  @change=${e.onChange}
107
107
  @click=${e.onClick}
108
108
  />
109
- <div class=${V("moz-switch-handler",{active:t,disabled:!!e.disabled})}></div>
109
+ <div class=${A("moz-switch-handler",{active:t,disabled:!!e.disabled})}></div>
110
110
  </div>
111
- ${e.labelPosition==="right"?Xe({for:e.id,disabled:e.disabled},e.label??"","label-right"):s.nothing}
111
+ ${e.labelPosition==="right"?Je({for:e.id,disabled:e.disabled},e.label??"","label-right"):n.nothing}
112
112
  </div>
113
113
  </div>
114
- `}const rs=$e({name:"moz-toggle",defaults:{labelPosition:"left",required:!1,readonly:!1,disabled:!1,visible:!0},setup(e){const t=ot("switch_"),o=l=>{const c=e.props;(c.disabled||c.readonly)&&(l.preventDefault(),l.stopPropagation())},n=l=>{const c=e.props;if(c.disabled||c.readonly)return;const r=l.target.checked;e.emit("change",!!r)};return{render(){const l=e.props,{aria:c,dom:r}=Wt(ye(l,Xn));return Ht({id:t,class:l.class,style:l.style,rest:r,inputRest:c,model:!!l.modelValue,label:l.label,labelPosition:l.labelPosition,required:l.required,disabled:l.disabled,visible:l.visible,onChange:n,onClick:o})}}}}),Qn={name:"MozToggle",core:rs,booleanProps:["disabled","modelValue","readonly","required","visible"],props:["label","labelPosition","required","readonly","disabled","visible"],emits:["change"],models:{modelValue:{prop:"modelValue",event:"change"}},slots:[],expose:!1};function Jn(e=""){return s.html`<svg class=${e} xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10" fill="none">
114
+ `}const zn=ye({name:"moz-toggle",defaults:{labelPosition:"left",required:!1,readonly:!1,disabled:!1,visible:!0},setup(e){const t=Qe("switch_"),o=l=>{const i=e.props;(i.disabled||i.readonly)&&(l.preventDefault(),l.stopPropagation())},s=l=>{const i=e.props;if(i.disabled||i.readonly)return;const r=l.target.checked;e.emit("change",!!r)};return{render(){const l=e.props,{aria:i,dom:r}=eo(ge(l,ql));return Xt({id:t,class:l.class,style:l.style,rest:r,inputRest:i,model:!!l.modelValue,label:l.label,labelPosition:l.labelPosition,required:l.required,disabled:l.disabled,visible:l.visible,onChange:s,onClick:o})}}}}),Fl={name:"MozToggle",core:zn,booleanProps:["disabled","modelValue","readonly","required","visible"],props:["label","labelPosition","required","readonly","disabled","visible"],emits:["change"],models:{modelValue:{prop:"modelValue",event:"change"}},slots:[],expose:!1};function Nl(e=""){return n.html`<svg class=${e} xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10" fill="none">
115
115
  <path
116
116
  fill-rule="evenodd"
117
117
  clip-rule="evenodd"
118
118
  d="M3.72661 8.48896C3.41073 8.18004 3.40509 7.67354 3.71401 7.35766L6.04911 4.96997L3.72108 2.64854C3.40822 2.33656 3.4075 1.83003 3.71948 1.51717C4.03145 1.2043 4.53798 1.20359 4.85085 1.51556L7.73988 4.39642C8.0506 4.70626 8.05375 5.20855 7.74695 5.52226L4.85791 8.47636C4.54899 8.79224 4.04249 8.79788 3.72661 8.48896Z"
119
119
  fill="var(--moz-color-text-subtle)"
120
120
  ></path>
121
- </svg>`}function as(e=""){return s.html`<svg class=${e} xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none">
121
+ </svg>`}function Pn(e=""){return n.html`<svg class=${e} xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none">
122
122
  <path
123
123
  d="M3 5.5L7.05021 9.5L11 5.5"
124
124
  stroke="var(--moz-color-breadcrumb-separator)"
@@ -126,7 +126,7 @@
126
126
  stroke-linecap="round"
127
127
  stroke-linejoin="round"
128
128
  ></path>
129
- </svg>`}function go(e="var(--moz-color-text-subtle)",t=""){return s.html`<svg class=${t} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
129
+ </svg>`}function Lo(e="var(--moz-color-text-subtle)",t=""){return n.html`<svg class=${t} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
130
130
  <path
131
131
  d="M8 1.5L10.163 5.875L15 6.575L11.5 9.975L12.326 14.775L8 12.5L3.674 14.775L4.5 9.975L1 6.575L5.837 5.875L8 1.5Z"
132
132
  stroke=${e}
@@ -134,7 +134,7 @@
134
134
  stroke-linecap="round"
135
135
  stroke-linejoin="round"
136
136
  ></path>
137
- </svg>`}function vo(e="var(--moz-color-accent)",t=""){return s.html`<svg class=${t} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
137
+ </svg>`}function zo(e="var(--moz-color-accent)",t=""){return n.html`<svg class=${t} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
138
138
  <path
139
139
  d="M8 1.5L10.163 5.875L15 6.575L11.5 9.975L12.326 14.775L8 12.5L3.674 14.775L4.5 9.975L1 6.575L5.837 5.875L8 1.5Z"
140
140
  fill=${e}
@@ -143,63 +143,63 @@
143
143
  stroke-linecap="round"
144
144
  stroke-linejoin="round"
145
145
  ></path>
146
- </svg>`}const Do=new Set(["itemSource","items","listClass","showFavorite","modelValue","class","style"]);function wo(e){const t=e.itemSource??[],o=!!e.favorite,n=e.showFavorite?e.favoriteSlot!=null?e.favoriteSlot:s.html`<button type="button" class="favorite-icon" @click=${e.onFavClick}>
147
- ${o?vo(void 0,"favorite-filled"):go(void 0,"empty")}
148
- </button>`:s.nothing;return s.html`
146
+ </svg>`}const Qo=new Set(["itemSource","items","listClass","showFavorite","modelValue","class","style"]);function Po(e){const t=e.itemSource??[],o=!!e.favorite,s=e.showFavorite?e.favoriteSlot!=null?e.favoriteSlot:n.html`<button type="button" class="favorite-icon" @click=${e.onFavClick}>
147
+ ${o?zo(void 0,"favorite-filled"):Lo(void 0,"empty")}
148
+ </button>`:n.nothing;return n.html`
149
149
  <div
150
150
  role="navigation"
151
151
  aria-label=${e.ariaLabel??"breadcrumb"}
152
- class=${V("moz-bread-crumb",e.class)}
153
- style=${te.styleMap(Ce(e.style))}
154
- ${fe(e.rest??{})}
152
+ class=${A("moz-bread-crumb",e.class)}
153
+ style=${j.styleMap(he(e.style))}
154
+ ${ce(e.rest??{})}
155
155
  >
156
156
  <div class="menu-item">
157
- ${t.map((l,c)=>t.length-1===c?s.html`<div class="current-item" aria-current="page">${l}</div>`:s.html`<div>${l}</div>${as("separator")}`)}
157
+ ${t.map((l,i)=>t.length-1===i?n.html`<div class="current-item" aria-current="page">${l}</div>`:n.html`<div>${l}</div>${Pn("separator")}`)}
158
158
  </div>
159
- ${n}${e.titleSlot??s.nothing}
159
+ ${s}${e.titleSlot??n.nothing}
160
160
  </div>
161
- `}const cs=$e({name:"moz-bread-crumb",defaults:{showFavorite:!0,modelValue:!0,itemSource:[]},setup(e){const t=()=>e.emit("click",!!e.props.modelValue),o=n=>{const l=e.props,c=!!l.modelValue,r=l.showFavorite?e.slots.has("favorite")?e.slot("favorite"):s.html`<button type="button" class="favorite-icon" @click=${t}>
162
- ${c?vo(void 0,"favorite-filled"):go(void 0,"empty")}
163
- </button>`:s.nothing,h=()=>s.html`<li role="presentation" aria-hidden="true" class="moz-bread-crumb-separator">
164
- ${e.slots.has("separator")?e.slot("separator"):as("moz-bread-crumb-separator-icon")}
165
- </li>`;return s.html`
161
+ `}const Tn=ye({name:"moz-bread-crumb",defaults:{showFavorite:!0,modelValue:!0,itemSource:[]},setup(e){const t=()=>e.emit("click",!!e.props.modelValue),o=s=>{const l=e.props,i=!!l.modelValue,r=l.showFavorite?e.slots.has("favorite")?e.slot("favorite"):n.html`<button type="button" class="favorite-icon" @click=${t}>
162
+ ${i?zo(void 0,"favorite-filled"):Lo(void 0,"empty")}
163
+ </button>`:n.nothing,p=()=>n.html`<li role="presentation" aria-hidden="true" class="moz-bread-crumb-separator">
164
+ ${e.slots.has("separator")?e.slot("separator"):Pn("moz-bread-crumb-separator-icon")}
165
+ </li>`;return n.html`
166
166
  <nav
167
167
  aria-label=${e.locale.BreadCrumb.navigation}
168
- class=${V("moz-bread-crumb","moz-bread-crumb-items",l.class)}
169
- style=${te.styleMap(Ce(l.style))}
170
- ${fe(ye(l,Do))}
168
+ class=${A("moz-bread-crumb","moz-bread-crumb-items",l.class)}
169
+ style=${j.styleMap(he(l.style))}
170
+ ${ce(ge(l,Qo))}
171
171
  >
172
- <ol class=${V("moz-bread-crumb-list",l.listClass)}>
173
- ${n.map((d,b)=>s.html`
174
- <li class="moz-bread-crumb-item" aria-current=${d.current?"page":s.nothing}>
172
+ <ol class=${A("moz-bread-crumb-list",l.listClass)}>
173
+ ${s.map((d,b)=>n.html`
174
+ <li class="moz-bread-crumb-item" aria-current=${d.current?"page":n.nothing}>
175
175
  ${e.slot(`item-${d.key}`)}
176
176
  </li>
177
- ${b<n.length-1?h():s.nothing}
177
+ ${b<s.length-1?p():n.nothing}
178
178
  `)}
179
179
  </ol>
180
180
  ${r}${e.slot("title")}
181
181
  </nav>
182
- `};return{render(){const n=e.props;return n.items&&n.items.length>0?o(n.items):wo({itemSource:n.itemSource,showFavorite:n.showFavorite,favorite:!!n.modelValue,onFavClick:t,ariaLabel:e.locale.BreadCrumb.navigation,favoriteSlot:e.slots.has("favorite")?e.slot("favorite"):void 0,titleSlot:e.slot("title"),class:n.class,style:n.style,rest:ye(n,Do)})}}}}),el={name:"MozBreadCrumb",core:cs,booleanProps:["modelValue","showFavorite"],props:["itemSource","items","listClass","showFavorite"],emits:["click"],models:{modelValue:{prop:"modelValue",event:"update:modelValue"}},slots:["favorite","title","separator"],expose:!1,syncUpdate:!0},ds={customEmptyHeader:"No data",customEmptyContent:"There is no data to display.",dataEmptyHeader:"No data to display",dataEmptyContent:"Please enter the required data.",resultEmptyHeader:"No results",resultEmptyContent:"Check the search conditions and try again.",searchEmptyHeader:"No search results",searchEmptyContent:"Please check the filter value and try again."},us=new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3crect%20x='106.5'%20y='49.5'%20width='51'%20height='28'%20rx='7.5'%20fill='%23F6F8FA'%20stroke='%238B919C'/%3e%3cellipse%20cx='90'%20cy='136'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M34.5%2066C34.5%2061.8579%2037.8579%2058.5%2042%2058.5H143C147.142%2058.5%20150.5%2061.8579%20150.5%2066V115C150.5%20119.694%20146.694%20123.5%20142%20123.5H42C37.8579%20123.5%2034.5%20120.142%2034.5%20116V66Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2328_1616)'%3e%3crect%20x='32'%20y='56'%20width='116'%20height='65'%20rx='8'%20fill='white'/%3e%3crect%20x='32.5'%20y='56.5'%20width='115'%20height='64'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='126'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='132'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='138'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='40'%20y='74'%20width='100'%20height='26'%20rx='2'%20fill='%23E4E6EB'/%3e%3crect%20x='44'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='44'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='116'%20y='104'%20width='24'%20height='9'%20rx='2'%20fill='%23868C98'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M147%2070H33V69H147V70Z'%20fill='%23D6DAE2'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2328_1616'%20x='32'%20y='56'%20width='118'%20height='67'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2328_1616'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2328_1616'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,tl=new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3cellipse%20cx='88'%20cy='141'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M32.5%2059C32.5%2054.8579%2035.8579%2051.5%2040%2051.5H141C145.142%2051.5%20148.5%2054.8579%20148.5%2059V120C148.5%20124.694%20144.694%20128.5%20140%20128.5H40C35.8579%20128.5%2032.5%20125.142%2032.5%20121V59Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2357_2211)'%3e%3crect%20x='30'%20y='49'%20width='116'%20height='77'%20rx='8'%20fill='white'/%3e%3crect%20x='30.5'%20y='49.5'%20width='115'%20height='76'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='124'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='130'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='136'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='38.5'%20y='90.5'%20width='99'%20height='27'%20rx='1.5'%20stroke='%238B919C'%20stroke-dasharray='2%202'/%3e%3crect%20x='59'%20y='71'%20width='49'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='59'%20y='77'%20width='79'%20height='6'%20fill='%23CBCFD7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M145%2063H31V62H145V63Z'%20fill='%23D6DAE2'/%3e%3cg%20clip-path='url(%23clip0_2357_2211)'%3e%3cg%20clip-path='url(%23clip1_2357_2211)'%3e%3cpath%20d='M88%2098.2857V109.714'%20stroke='%238B919C'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3cpath%20d='M82.2856%20104H93.7142'%20stroke='%238B919C'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3c/g%3e%3c/g%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M46%2084C49.866%2084%2053%2080.866%2053%2077C53%2073.134%2049.866%2070%2046%2070C42.134%2070%2039%2073.134%2039%2077C39%2080.866%2042.134%2084%2046%2084ZM45.5333%2073.8667C45.5333%2073.5353%2045.802%2073.2667%2046.1333%2073.2667H46.3333C46.6647%2073.2667%2046.9333%2073.5353%2046.9333%2073.8667V77.8C46.9333%2078.1314%2046.6647%2078.4%2046.3333%2078.4H46.1333C45.802%2078.4%2045.5333%2078.1314%2045.5333%2077.8V73.8667ZM45.5333%2079.9333C45.5333%2079.602%2045.802%2079.3333%2046.1333%2079.3333H46.3333C46.6647%2079.3333%2046.9333%2079.602%2046.9333%2079.9333V80.1333C46.9333%2080.4647%2046.6647%2080.7333%2046.3333%2080.7333H46.1333C45.802%2080.7333%2045.5333%2080.4647%2045.5333%2080.1333V79.9333Z'%20fill='%23868C98'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2357_2211'%20x='30'%20y='49'%20width='118'%20height='79'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2357_2211'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2357_2211'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_2357_2211'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(80%2096)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_2357_2211'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(80%2096)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,ol=new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3crect%20x='106.5'%20y='49.5'%20width='51'%20height='28'%20rx='7.5'%20fill='%23F6F8FA'%20stroke='%238B919C'/%3e%3cellipse%20cx='90'%20cy='136'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M34.5%2066C34.5%2061.8579%2037.8579%2058.5%2042%2058.5H143C147.142%2058.5%20150.5%2061.8579%20150.5%2066V115C150.5%20119.694%20146.694%20123.5%20142%20123.5H42C37.8579%20123.5%2034.5%20120.142%2034.5%20116V66Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2328_1616)'%3e%3crect%20x='32'%20y='56'%20width='116'%20height='65'%20rx='8'%20fill='white'/%3e%3crect%20x='32.5'%20y='56.5'%20width='115'%20height='64'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='126'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='132'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='138'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='40'%20y='74'%20width='100'%20height='26'%20rx='2'%20fill='%23E4E6EB'/%3e%3crect%20x='44'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='44'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='116'%20y='104'%20width='24'%20height='9'%20rx='2'%20fill='%23868C98'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M147%2070H33V69H147V70Z'%20fill='%23D6DAE2'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2328_1616'%20x='32'%20y='56'%20width='118'%20height='67'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2328_1616'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2328_1616'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,sl=new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3cellipse%20cx='88'%20cy='141'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M32.5%2059C32.5%2054.8579%2035.8579%2051.5%2040%2051.5H141C145.142%2051.5%20148.5%2054.8579%20148.5%2059V120C148.5%20124.694%20144.694%20128.5%20140%20128.5H40C35.8579%20128.5%2032.5%20125.142%2032.5%20121V59Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2357_2190)'%3e%3crect%20x='30'%20y='49'%20width='116'%20height='77'%20rx='8'%20fill='white'/%3e%3crect%20x='30.5'%20y='49.5'%20width='115'%20height='76'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='124'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='130'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='136'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='38.5'%20y='70.5'%20width='99'%20height='47'%20rx='1.5'%20stroke='%238B919C'%20stroke-dasharray='2%202'/%3e%3crect%20x='50'%20y='81'%20width='27.54'%20height='4'%20rx='2'%20fill='%23A6ABB3'/%3e%3crect%20x='50'%20y='97'%20width='27.54'%20height='4'%20rx='2'%20fill='%23A6ABB3'/%3e%3crect%20x='50'%20y='87'%20width='51'%20height='4'%20rx='2'%20fill='%23CBCFD7'/%3e%3crect%20x='50'%20y='103'%20width='51'%20height='4'%20rx='2'%20fill='%23CBCFD7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M145%2063H31V62H145V63Z'%20fill='%23D6DAE2'/%3e%3cpath%20d='M123.553%20101.582L119.095%2097.1196C117.866%2097.9205%20116.394%2098.3781%20114.808%2098.2923C111.421%2098.135%20108.521%2095.4892%20108.064%2092.1283C107.435%2087.3372%20111.564%2083.2899%20116.394%2084.1051C119.18%2084.577%20121.495%2086.7509%20122.11%2089.5111C122.581%2091.5991%20122.124%2093.5441%20121.11%2095.0887L125.582%2099.5651C126.139%20100.123%20126.139%20101.024%20125.582%20101.582C125.025%20102.139%20124.11%20102.139%20123.553%20101.582ZM119.438%2091.1558C119.438%2088.796%20117.509%2086.8653%20115.151%2086.8653C112.793%2086.8653%20110.864%2088.796%20110.864%2091.1558C110.864%2093.5155%20112.793%2095.4463%20115.151%2095.4463C117.509%2095.4463%20119.438%2093.5155%20119.438%2091.1558Z'%20fill='%23868C98'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2357_2190'%20x='30'%20y='49'%20width='118'%20height='79'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2357_2190'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2357_2190'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,nl=new Set(["isReadOnly","isCustomState","headerMsg","contentMsg","filterdRowCount","totalRowCount","useImg","selectImg","messages","composed","class","style"]),ll={custom_empty:us,data_empty:tl,result_empty:ol,search_empty:sl},il={custom_empty:"customEmptyHeader",data_empty:"dataEmptyHeader",result_empty:"resultEmptyHeader",search_empty:"searchEmptyHeader"},rl={custom_empty:"customEmptyContent",data_empty:"dataEmptyContent",result_empty:"resultEmptyContent",search_empty:"searchEmptyContent"},ps=$e({name:"moz-empty-state",defaults:{isReadOnly:!0,isCustomState:!1,filterdRowCount:0,totalRowCount:0,useImg:!0,composed:!1},setup(e){const t=n=>{var c;return((c=e.props.messages)==null?void 0:c[n])||e.locale.EmptyState[n]||ds[n]||""},o=()=>{const n=e.props,l=n.totalRowCount??0,c=n.filterdRowCount??0;if(n.selectImg&&(l===0||c===0))switch(n.selectImg){case"Custom":return"custom_empty";case"Result":return"result_empty";case"Data":return"data_empty";case"Search":return"search_empty"}return n.isCustomState?"custom_empty":l===0?n.isReadOnly?"result_empty":"data_empty":c===0?"search_empty":""};return{render(){const n=e.props,l=ye(n,nl);if(n.composed)return s.html`
182
+ `};return{render(){const s=e.props;return s.items&&s.items.length>0?o(s.items):Po({itemSource:s.itemSource,showFavorite:s.showFavorite,favorite:!!s.modelValue,onFavClick:t,ariaLabel:e.locale.BreadCrumb.navigation,favoriteSlot:e.slots.has("favorite")?e.slot("favorite"):void 0,titleSlot:e.slot("title"),class:s.class,style:s.style,rest:ge(s,Qo)})}}}}),Hl={name:"MozBreadCrumb",core:Tn,booleanProps:["modelValue","showFavorite"],props:["itemSource","items","listClass","showFavorite"],emits:["click"],models:{modelValue:{prop:"modelValue",event:"update:modelValue"}},slots:["favorite","title","separator"],expose:!1,syncUpdate:!0},An={customEmptyHeader:"No data",customEmptyContent:"There is no data to display.",dataEmptyHeader:"No data to display",dataEmptyContent:"Please enter the required data.",resultEmptyHeader:"No results",resultEmptyContent:"Check the search conditions and try again.",searchEmptyHeader:"No search results",searchEmptyContent:"Please check the filter value and try again."},In=new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3crect%20x='106.5'%20y='49.5'%20width='51'%20height='28'%20rx='7.5'%20fill='%23F6F8FA'%20stroke='%238B919C'/%3e%3cellipse%20cx='90'%20cy='136'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M34.5%2066C34.5%2061.8579%2037.8579%2058.5%2042%2058.5H143C147.142%2058.5%20150.5%2061.8579%20150.5%2066V115C150.5%20119.694%20146.694%20123.5%20142%20123.5H42C37.8579%20123.5%2034.5%20120.142%2034.5%20116V66Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2328_1616)'%3e%3crect%20x='32'%20y='56'%20width='116'%20height='65'%20rx='8'%20fill='white'/%3e%3crect%20x='32.5'%20y='56.5'%20width='115'%20height='64'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='126'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='132'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='138'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='40'%20y='74'%20width='100'%20height='26'%20rx='2'%20fill='%23E4E6EB'/%3e%3crect%20x='44'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='44'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='116'%20y='104'%20width='24'%20height='9'%20rx='2'%20fill='%23868C98'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M147%2070H33V69H147V70Z'%20fill='%23D6DAE2'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2328_1616'%20x='32'%20y='56'%20width='118'%20height='67'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2328_1616'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2328_1616'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,Ul=new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3cellipse%20cx='88'%20cy='141'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M32.5%2059C32.5%2054.8579%2035.8579%2051.5%2040%2051.5H141C145.142%2051.5%20148.5%2054.8579%20148.5%2059V120C148.5%20124.694%20144.694%20128.5%20140%20128.5H40C35.8579%20128.5%2032.5%20125.142%2032.5%20121V59Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2357_2211)'%3e%3crect%20x='30'%20y='49'%20width='116'%20height='77'%20rx='8'%20fill='white'/%3e%3crect%20x='30.5'%20y='49.5'%20width='115'%20height='76'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='124'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='130'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='136'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='38.5'%20y='90.5'%20width='99'%20height='27'%20rx='1.5'%20stroke='%238B919C'%20stroke-dasharray='2%202'/%3e%3crect%20x='59'%20y='71'%20width='49'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='59'%20y='77'%20width='79'%20height='6'%20fill='%23CBCFD7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M145%2063H31V62H145V63Z'%20fill='%23D6DAE2'/%3e%3cg%20clip-path='url(%23clip0_2357_2211)'%3e%3cg%20clip-path='url(%23clip1_2357_2211)'%3e%3cpath%20d='M88%2098.2857V109.714'%20stroke='%238B919C'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3cpath%20d='M82.2856%20104H93.7142'%20stroke='%238B919C'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3c/g%3e%3c/g%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M46%2084C49.866%2084%2053%2080.866%2053%2077C53%2073.134%2049.866%2070%2046%2070C42.134%2070%2039%2073.134%2039%2077C39%2080.866%2042.134%2084%2046%2084ZM45.5333%2073.8667C45.5333%2073.5353%2045.802%2073.2667%2046.1333%2073.2667H46.3333C46.6647%2073.2667%2046.9333%2073.5353%2046.9333%2073.8667V77.8C46.9333%2078.1314%2046.6647%2078.4%2046.3333%2078.4H46.1333C45.802%2078.4%2045.5333%2078.1314%2045.5333%2077.8V73.8667ZM45.5333%2079.9333C45.5333%2079.602%2045.802%2079.3333%2046.1333%2079.3333H46.3333C46.6647%2079.3333%2046.9333%2079.602%2046.9333%2079.9333V80.1333C46.9333%2080.4647%2046.6647%2080.7333%2046.3333%2080.7333H46.1333C45.802%2080.7333%2045.5333%2080.4647%2045.5333%2080.1333V79.9333Z'%20fill='%23868C98'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2357_2211'%20x='30'%20y='49'%20width='118'%20height='79'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2357_2211'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2357_2211'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_2357_2211'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(80%2096)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_2357_2211'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(80%2096)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,Wl=new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3crect%20x='106.5'%20y='49.5'%20width='51'%20height='28'%20rx='7.5'%20fill='%23F6F8FA'%20stroke='%238B919C'/%3e%3cellipse%20cx='90'%20cy='136'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M34.5%2066C34.5%2061.8579%2037.8579%2058.5%2042%2058.5H143C147.142%2058.5%20150.5%2061.8579%20150.5%2066V115C150.5%20119.694%20146.694%20123.5%20142%20123.5H42C37.8579%20123.5%2034.5%20120.142%2034.5%20116V66Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2328_1616)'%3e%3crect%20x='32'%20y='56'%20width='116'%20height='65'%20rx='8'%20fill='white'/%3e%3crect%20x='32.5'%20y='56.5'%20width='115'%20height='64'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='126'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='132'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='138'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='40'%20y='74'%20width='100'%20height='26'%20rx='2'%20fill='%23E4E6EB'/%3e%3crect%20x='44'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='44'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='116'%20y='104'%20width='24'%20height='9'%20rx='2'%20fill='%23868C98'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M147%2070H33V69H147V70Z'%20fill='%23D6DAE2'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2328_1616'%20x='32'%20y='56'%20width='118'%20height='67'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2328_1616'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2328_1616'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,Kl=new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3cellipse%20cx='88'%20cy='141'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M32.5%2059C32.5%2054.8579%2035.8579%2051.5%2040%2051.5H141C145.142%2051.5%20148.5%2054.8579%20148.5%2059V120C148.5%20124.694%20144.694%20128.5%20140%20128.5H40C35.8579%20128.5%2032.5%20125.142%2032.5%20121V59Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2357_2190)'%3e%3crect%20x='30'%20y='49'%20width='116'%20height='77'%20rx='8'%20fill='white'/%3e%3crect%20x='30.5'%20y='49.5'%20width='115'%20height='76'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='124'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='130'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='136'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='38.5'%20y='70.5'%20width='99'%20height='47'%20rx='1.5'%20stroke='%238B919C'%20stroke-dasharray='2%202'/%3e%3crect%20x='50'%20y='81'%20width='27.54'%20height='4'%20rx='2'%20fill='%23A6ABB3'/%3e%3crect%20x='50'%20y='97'%20width='27.54'%20height='4'%20rx='2'%20fill='%23A6ABB3'/%3e%3crect%20x='50'%20y='87'%20width='51'%20height='4'%20rx='2'%20fill='%23CBCFD7'/%3e%3crect%20x='50'%20y='103'%20width='51'%20height='4'%20rx='2'%20fill='%23CBCFD7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M145%2063H31V62H145V63Z'%20fill='%23D6DAE2'/%3e%3cpath%20d='M123.553%20101.582L119.095%2097.1196C117.866%2097.9205%20116.394%2098.3781%20114.808%2098.2923C111.421%2098.135%20108.521%2095.4892%20108.064%2092.1283C107.435%2087.3372%20111.564%2083.2899%20116.394%2084.1051C119.18%2084.577%20121.495%2086.7509%20122.11%2089.5111C122.581%2091.5991%20122.124%2093.5441%20121.11%2095.0887L125.582%2099.5651C126.139%20100.123%20126.139%20101.024%20125.582%20101.582C125.025%20102.139%20124.11%20102.139%20123.553%20101.582ZM119.438%2091.1558C119.438%2088.796%20117.509%2086.8653%20115.151%2086.8653C112.793%2086.8653%20110.864%2088.796%20110.864%2091.1558C110.864%2093.5155%20112.793%2095.4463%20115.151%2095.4463C117.509%2095.4463%20119.438%2093.5155%20119.438%2091.1558Z'%20fill='%23868C98'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2357_2190'%20x='30'%20y='49'%20width='118'%20height='79'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2357_2190'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2357_2190'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,Zl=new Set(["isReadOnly","isCustomState","headerMsg","contentMsg","filterdRowCount","totalRowCount","useImg","selectImg","messages","composed","class","style"]),Gl={custom_empty:In,data_empty:Ul,result_empty:Wl,search_empty:Kl},Yl={custom_empty:"customEmptyHeader",data_empty:"dataEmptyHeader",result_empty:"resultEmptyHeader",search_empty:"searchEmptyHeader"},jl={custom_empty:"customEmptyContent",data_empty:"dataEmptyContent",result_empty:"resultEmptyContent",search_empty:"searchEmptyContent"},Rn=ye({name:"moz-empty-state",defaults:{isReadOnly:!0,isCustomState:!1,filterdRowCount:0,totalRowCount:0,useImg:!0,composed:!1},setup(e){const t=s=>{var i;return((i=e.props.messages)==null?void 0:i[s])||e.locale.EmptyState[s]||An[s]||""},o=()=>{const s=e.props,l=s.totalRowCount??0,i=s.filterdRowCount??0;if(s.selectImg&&(l===0||i===0))switch(s.selectImg){case"Custom":return"custom_empty";case"Result":return"result_empty";case"Data":return"data_empty";case"Search":return"search_empty"}return s.isCustomState?"custom_empty":l===0?s.isReadOnly?"result_empty":"data_empty":i===0?"search_empty":""};return{render(){const s=e.props,l=ge(s,Zl);if(s.composed)return n.html`
183
183
  <div
184
- class=${V("empty-container","empty-composed","moz-empty-state",n.class)}
185
- style=${te.styleMap(Ce(n.style))}
186
- ${fe(l)}
184
+ class=${A("empty-container","empty-composed","moz-empty-state",s.class)}
185
+ style=${j.styleMap(he(s.style))}
186
+ ${ce(l)}
187
187
  >
188
- ${e.slots.has("icon")?s.html`<div class="empty-icon">${e.slot("icon")}</div>`:s.nothing}
189
- ${e.slots.has("heading")?s.html`<div class="empty-heading-slot">${e.slot("heading")}</div>`:s.nothing}
190
- ${e.slots.has("description")?s.html`<div class="empty-description">${e.slot("description")}</div>`:s.nothing}
191
- ${e.slots.has("actions")?s.html`<div class="empty-actions">${e.slot("actions")}</div>`:s.nothing}
192
- ${e.slots.has("customState")?s.html`<div class="empty-content">${e.slot("customState")}</div>`:s.nothing}
188
+ ${e.slots.has("icon")?n.html`<div class="empty-icon">${e.slot("icon")}</div>`:n.nothing}
189
+ ${e.slots.has("heading")?n.html`<div class="empty-heading-slot">${e.slot("heading")}</div>`:n.nothing}
190
+ ${e.slots.has("description")?n.html`<div class="empty-description">${e.slot("description")}</div>`:n.nothing}
191
+ ${e.slots.has("actions")?n.html`<div class="empty-actions">${e.slot("actions")}</div>`:n.nothing}
192
+ ${e.slots.has("customState")?n.html`<div class="empty-content">${e.slot("customState")}</div>`:n.nothing}
193
193
  </div>
194
- `;const c=o();if(!c)return s.nothing;const r=ll[c]||us,h=typeof n.headerMsg=="string"?n.headerMsg:t(il[c]||"customEmptyHeader"),d=typeof n.contentMsg=="string"?n.contentMsg:t(rl[c]||"customEmptyContent"),b=e.slots.has("icon")?s.html`<div class="empty-icon">${e.slot("icon")}</div>`:n.useImg?s.html`<img src=${r} alt="Empty state" class="empty-img" />`:s.nothing;return s.html`
195
- <div class=${V("empty-container","moz-empty-state",n.class)} style=${te.styleMap(Ce(n.style))} ${fe(l)}>
194
+ `;const i=o();if(!i)return n.nothing;const r=Gl[i]||In,p=typeof s.headerMsg=="string"?s.headerMsg:t(Yl[i]||"customEmptyHeader"),d=typeof s.contentMsg=="string"?s.contentMsg:t(jl[i]||"customEmptyContent"),b=e.slots.has("icon")?n.html`<div class="empty-icon">${e.slot("icon")}</div>`:s.useImg?n.html`<img src=${r} alt="Empty state" class="empty-img" />`:n.nothing;return n.html`
195
+ <div class=${A("empty-container","moz-empty-state",s.class)} style=${j.styleMap(he(s.style))} ${ce(l)}>
196
196
  ${b}
197
- <div class="empty-heading">${h}</div>
198
- <div class="empty-content"><span>${Go.unsafeHTML(d)}</span></div>
197
+ <div class="empty-heading">${p}</div>
198
+ <div class="empty-content"><span>${gn.unsafeHTML(d)}</span></div>
199
199
  <div class="empty-content">${e.slot("customState")}</div>
200
- ${e.slots.has("actions")?s.html`<div class="empty-actions">${e.slot("actions")}</div>`:s.nothing}
200
+ ${e.slots.has("actions")?n.html`<div class="empty-actions">${e.slot("actions")}</div>`:n.nothing}
201
201
  </div>
202
- `}}}}),al={name:"MozEmptyState",core:ps,booleanProps:["composed","isCustomState","isReadOnly","useImg"],props:["isReadOnly","isCustomState","headerMsg","contentMsg","filterdRowCount","totalRowCount","useImg","selectImg","messages","composed"],emits:[],slots:["customState","icon","heading","description","actions"],expose:!1};function Co(e="var(--moz-color-border-marker)",t=!1,o=""){return s.html`<svg class=${o} data-icon="unchecked" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
202
+ `}}}}),Xl={name:"MozEmptyState",core:Rn,booleanProps:["composed","isCustomState","isReadOnly","useImg"],props:["isReadOnly","isCustomState","headerMsg","contentMsg","filterdRowCount","totalRowCount","useImg","selectImg","messages","composed"],emits:[],slots:["customState","icon","heading","description","actions"],expose:!1};function To(e="var(--moz-color-border-marker)",t=!1,o=""){return n.html`<svg class=${o} data-icon="unchecked" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
203
203
  <path data-part="marker-surface"
204
204
  d="M4 0H10A4 4 0 0 1 14 4V10A4 4 0 0 1 10 14H4A4 4 0 0 1 0 10V4A4 4 0 0 1 4 0Z"
205
205
  fill=${t?"var(--moz-color-disabled)":"var(--moz-color-surface)"}
@@ -208,7 +208,7 @@
208
208
  d="M4 .5H10A3.5 3.5 0 0 1 13.5 4V10A3.5 3.5 0 0 1 10 13.5H4A3.5 3.5 0 0 1 .5 10V4A3.5 3.5 0 0 1 4 .5Z"
209
209
  stroke=${t?"var(--moz-color-text-muted)":e}
210
210
  ></path>
211
- </svg>`}function bo(e="var(--moz-color-accent)",t=!1,o=""){return s.html`<svg class=${o} data-icon="checked" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
211
+ </svg>`}function Ao(e="var(--moz-color-accent)",t=!1,o=""){return n.html`<svg class=${o} data-icon="checked" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
212
212
  <path data-part="marker-surface"
213
213
  d="M4 0H10A4 4 0 0 1 14 4V10A4 4 0 0 1 10 14H4A4 4 0 0 1 0 10V4A4 4 0 0 1 4 0Z"
214
214
  fill=${t?"var(--moz-color-text-muted)":e}
@@ -217,156 +217,156 @@
217
217
  <path data-part="marker-glyph" d="M2.5 6L4.74733 8.14031C4.95328 8.33646 5.28115 8.32154 5.46844 8.10749L9.5 3.5"
218
218
  stroke="var(--moz-color-on-accent)" stroke-width="1.4" stroke-linecap="round"></path>
219
219
  </svg>
220
- </svg>`}function yo(e="var(--moz-color-accent)",t=!1,o=""){return s.html`<svg class=${o} data-icon="indeterminate" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
220
+ </svg>`}function Io(e="var(--moz-color-accent)",t=!1,o=""){return n.html`<svg class=${o} data-icon="indeterminate" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
221
221
  <rect data-part="marker-surface" width="14" height="14" rx="4" fill=${t?"var(--moz-color-text-muted)":e}></rect>
222
222
  <path data-part="marker-glyph" d="M3.5 7H10.5" stroke="var(--moz-color-on-accent)" stroke-width="1.4" stroke-linecap="round"></path>
223
- </svg>`}const cl=new Set(["label","fieldId","disabled","readonly","checked","indeterminate","modelValue","class","style"]);function qt(e={}){const t=!!e.checked,o=!!e.disabled,n=!!e.indeterminate,l=()=>{var c;o||(c=e.onChange)==null||c.call(e,!t)};return s.html`
223
+ </svg>`}const Ql=new Set(["label","fieldId","disabled","readonly","checked","indeterminate","modelValue","class","style"]);function Wt(e={}){const t=!!e.checked,o=!!e.disabled,s=!!e.indeterminate,l=()=>{var i;o||(i=e.onChange)==null||i.call(e,!t)};return n.html`
224
224
  <div
225
- class=${V("moz-checkbox",{"cursor-pointer":!o,"cursor-not-allowed":o,disabled:o},e.class)}
226
- @click=${c=>{o||(c.preventDefault(),c.stopPropagation(),l())}}
225
+ class=${A("moz-checkbox",{"cursor-pointer":!o,"cursor-not-allowed":o,disabled:o},e.class)}
226
+ @click=${i=>{o||(i.preventDefault(),i.stopPropagation(),l())}}
227
227
  >
228
228
  <div class="checkbox-icon-wrapper">
229
229
  <input
230
230
  type="checkbox"
231
- class=${V("checkbox-input",{"cursor-pointer":!o,"cursor-not-allowed":o})}
231
+ class=${A("checkbox-input",{"cursor-pointer":!o,"cursor-not-allowed":o})}
232
232
  .checked=${t}
233
- .indeterminate=${n}
233
+ .indeterminate=${s}
234
234
  ?disabled=${o}
235
235
  tabindex=${o?-1:0}
236
- @click=${c=>c.stopPropagation()}
237
- @change=${c=>{c.target.checked=t,c.target.indeterminate=n,l()}}
236
+ @click=${i=>i.stopPropagation()}
237
+ @change=${i=>{i.target.checked=t,i.target.indeterminate=s,l()}}
238
238
  />
239
239
  <div class="checkbox-visual">
240
- ${n?yo(void 0,o,"checked-icon"):t?bo(void 0,o,"checked-icon"):Co(void 0,o,"check-icon")}
240
+ ${s?Io(void 0,o,"checked-icon"):t?Ao(void 0,o,"checked-icon"):To(void 0,o,"check-icon")}
241
241
  </div>
242
242
  </div>
243
243
  </div>
244
- `}const hs=$e({name:"moz-checkbox",defaults:{disabled:!1,readonly:!1,indeterminate:!1,modelValue:!1},setup(e){const t=Mt();let o=!1;const n=()=>{const m=e.props;return e.controlled("checked")?m.checked??!1:m.modelValue??!1},l=()=>{const m=!n();e.controlled("checked")||e.emit("update:modelValue",m),e.emit("change",m)},c=m=>{var E;const u=e.props;u.disabled||u.readonly||(m.preventDefault(),m.stopPropagation(),l(),(E=m.currentTarget.querySelector("input"))==null||E.focus())},r=m=>m.stopPropagation(),h=m=>{const u=e.props,E=m.target;if(E.indeterminate=!!u.indeterminate,u.readonly){E.checked=n();return}const x=E.checked;e.controlled("checked")?(E.checked=n(),e.emit("change",x)):(e.emit("update:modelValue",x),e.emit("change",x))},d=m=>{const u=e.props;u.disabled||u.readonly||(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),l())},b=()=>{o=!0,e.requestUpdate()},a=()=>{o=!1,e.requestUpdate()};return{render(){const m=e.props,u=m.fieldId||t,E=n(),x=ye(m,cl);return s.html`
244
+ `}const Dn=ye({name:"moz-checkbox",defaults:{disabled:!1,readonly:!1,indeterminate:!1,modelValue:!1},setup(e){const t=Rt();let o=!1;const s=()=>{const m=e.props;return e.controlled("checked")?m.checked??!1:m.modelValue??!1},l=()=>{const m=!s();e.controlled("checked")||e.emit("update:modelValue",m),e.emit("change",m)},i=m=>{var k;const u=e.props;u.disabled||u.readonly||(m.preventDefault(),m.stopPropagation(),l(),(k=m.currentTarget.querySelector("input"))==null||k.focus())},r=m=>m.stopPropagation(),p=m=>{const u=e.props,k=m.target;if(k.indeterminate=!!u.indeterminate,u.readonly){k.checked=s();return}const x=k.checked;e.controlled("checked")?(k.checked=s(),e.emit("change",x)):(e.emit("update:modelValue",x),e.emit("change",x))},d=m=>{const u=e.props;u.disabled||u.readonly||(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),l())},b=()=>{o=!0,e.requestUpdate()},c=()=>{o=!1,e.requestUpdate()};return{render(){const m=e.props,u=m.fieldId||t,k=s(),x=ge(m,Ql);return n.html`
245
245
  <div
246
- class=${V("moz-checkbox moz-checkbox-control",{"cursor-pointer":!m.disabled&&!m.readonly,"cursor-not-allowed":m.disabled,disabled:m.disabled,"cursor-default":m.readonly&&!m.disabled},m.class)}
247
- style=${te.styleMap(Ce(m.style))}
248
- @click=${c}
246
+ class=${A("moz-checkbox moz-checkbox-control",{"cursor-pointer":!m.disabled&&!m.readonly,"cursor-not-allowed":m.disabled,disabled:m.disabled,"cursor-default":m.readonly&&!m.disabled},m.class)}
247
+ style=${j.styleMap(he(m.style))}
248
+ @click=${i}
249
249
  >
250
250
  <div class="checkbox-icon-wrapper">
251
251
  <input
252
252
  id=${u}
253
253
  type="checkbox"
254
- class=${V("checkbox-input",{"cursor-pointer":!m.disabled&&!m.readonly,"cursor-not-allowed":m.disabled,"cursor-default":m.readonly&&!m.disabled})}
255
- ${fe(x)}
256
- .checked=${E}
254
+ class=${A("checkbox-input",{"cursor-pointer":!m.disabled&&!m.readonly,"cursor-not-allowed":m.disabled,"cursor-default":m.readonly&&!m.disabled})}
255
+ ${ce(x)}
256
+ .checked=${k}
257
257
  .indeterminate=${!!m.indeterminate}
258
258
  ?disabled=${!!m.disabled}
259
259
  tabindex=${m.disabled?-1:0}
260
260
  @click=${r}
261
- @change=${h}
261
+ @change=${p}
262
262
  @focus=${b}
263
- @blur=${a}
263
+ @blur=${c}
264
264
  @keydown=${d}
265
265
  />
266
- <div class=${V("checkbox-visual",{focused:o})}>
267
- ${m.indeterminate?yo(void 0,!!m.disabled,"checked-icon"):E?bo(void 0,!!m.disabled,"checked-icon"):Co(void 0,!!m.disabled,"check-icon")}
266
+ <div class=${A("checkbox-visual",{focused:o})}>
267
+ ${m.indeterminate?Io(void 0,!!m.disabled,"checked-icon"):k?Ao(void 0,!!m.disabled,"checked-icon"):To(void 0,!!m.disabled,"check-icon")}
268
268
  </div>
269
269
  </div>
270
- ${m.label?Xe({for:u,disabled:m.disabled},m.label,"moz-checkbox-label"):s.nothing}
270
+ ${m.label?Je({for:u,disabled:m.disabled},m.label,"moz-checkbox-label"):n.nothing}
271
271
  </div>
272
- `}}}}),dl={name:"MozCheckBox",core:hs,booleanProps:["checked","disabled","indeterminate","modelValue","readonly"],props:["label","fieldId","disabled","readonly","checked","indeterminate","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1},ms=["accent","neutral","info","success","warning","danger"],ul=new Set(["label","text","disabled","required","displayExpr","valueExpr","tooltipExpr","disabledExpr","toneExpr","itemsSource","value","name","direction","variant","size","widthMode","iconOnly","labelPosition","modelValue","class","style"]),fs=$e({name:"moz-radio",defaults:{label:"",text:"",disabled:!1,required:!1,displayExpr:"label",valueExpr:"value",tooltipExpr:"tooltip",disabledExpr:"disabled",toneExpr:"tone",itemsSource:[],direction:"horizontal",variant:"boxed",size:"md",widthMode:"hug",iconOnly:!1,labelPosition:"top"},setup(e){const t=ot("radio_"),o=d=>d.key===" "||d.key==="Enter"||d.key==="Spacebar"||d.key==="Space"||d.code==="Space"||d.code==="Enter"||d.keyCode===32||d.keyCode===13,n=d=>typeof requestAnimationFrame=="function"?requestAnimationFrame(d):setTimeout(d,16),l=d=>{const b=d[e.props.toneExpr??"tone"];return typeof b=="string"&&ms.includes(b)?b:void 0},c=d=>{const b=e.props;return!!b.disabled||d[b.disabledExpr??"disabled"]===!0},r=(d,b)=>{const a=e.props,m=a.itemsSource??[];return V("label-container",{boxed:a.variant==="boxed","first-h":a.variant==="boxed"&&a.direction==="horizontal"&&d===0,"last-h":a.variant==="boxed"&&a.direction==="horizontal"&&d===m.length-1,"first-v":a.variant==="boxed"&&a.direction==="vertical"&&d===0,"last-v":a.variant==="boxed"&&a.direction==="vertical"&&d===m.length-1,disabled:b})},h=d=>{const b=e.props;return b.variant!=="boxed"||d===0?{}:b.direction==="horizontal"?{marginInlineStart:"-1px"}:{marginBlockStart:"-1px"}};return{render(){const d=e.props,b=d.itemsSource??[],a=d.valueExpr??"value",m=d.displayExpr??"label",u=!!d.disabled,E=d.modelValue,x=d.value!==void 0&&b.length===0,$=!x&&d.variant==="segment",P=ye(d,ul),L=()=>s.html`
272
+ `}}}}),Jl={name:"MozCheckBox",core:Dn,booleanProps:["checked","disabled","indeterminate","modelValue","readonly"],props:["label","fieldId","disabled","readonly","checked","indeterminate","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1},Vn=["accent","neutral","info","success","warning","danger"],ei=new Set(["label","text","disabled","required","displayExpr","valueExpr","tooltipExpr","disabledExpr","toneExpr","itemsSource","value","name","direction","variant","size","widthMode","iconOnly","labelPosition","modelValue","class","style"]),On=ye({name:"moz-radio",defaults:{label:"",text:"",disabled:!1,required:!1,displayExpr:"label",valueExpr:"value",tooltipExpr:"tooltip",disabledExpr:"disabled",toneExpr:"tone",itemsSource:[],direction:"horizontal",variant:"boxed",size:"md",widthMode:"hug",iconOnly:!1,labelPosition:"top"},setup(e){const t=Qe("radio_"),o=d=>d.key===" "||d.key==="Enter"||d.key==="Spacebar"||d.key==="Space"||d.code==="Space"||d.code==="Enter"||d.keyCode===32||d.keyCode===13,s=d=>typeof requestAnimationFrame=="function"?requestAnimationFrame(d):setTimeout(d,16),l=d=>{const b=d[e.props.toneExpr??"tone"];return typeof b=="string"&&Vn.includes(b)?b:void 0},i=d=>{const b=e.props;return!!b.disabled||d[b.disabledExpr??"disabled"]===!0},r=(d,b)=>{const c=e.props,m=c.itemsSource??[];return A("label-container",{boxed:c.variant==="boxed","first-h":c.variant==="boxed"&&c.direction==="horizontal"&&d===0,"last-h":c.variant==="boxed"&&c.direction==="horizontal"&&d===m.length-1,"first-v":c.variant==="boxed"&&c.direction==="vertical"&&d===0,"last-v":c.variant==="boxed"&&c.direction==="vertical"&&d===m.length-1,disabled:b})},p=d=>{const b=e.props;return b.variant!=="boxed"||d===0?{}:b.direction==="horizontal"?{marginInlineStart:"-1px"}:{marginBlockStart:"-1px"}};return{render(){const d=e.props,b=d.itemsSource??[],c=d.valueExpr??"value",m=d.displayExpr??"label",u=!!d.disabled,k=d.modelValue,x=d.value!==void 0&&b.length===0,S=!x&&d.variant==="segment",L=ge(d,ei),M=()=>n.html`
273
273
  <div class="radio-container">
274
274
  <div class="radio">
275
- <label for=${t} class=${V("label-container",{disabled:u})}>
275
+ <label for=${t} class=${A("label-container",{disabled:u})}>
276
276
  <div class="radio-icon-wrapper">
277
277
  <input
278
278
  type="radio"
279
279
  name=${d.name||t}
280
280
  id=${t}
281
- .checked=${String(E)===String(d.value)}
281
+ .checked=${String(k)===String(d.value)}
282
282
  ?disabled=${u}
283
283
  class="radio-input"
284
- @keydown=${F=>{o(F)&&!u&&e.emit("update:modelValue",String(d.value))}}
284
+ @keydown=${_=>{o(_)&&!u&&e.emit("update:modelValue",String(d.value))}}
285
285
  @change=${()=>{u||e.emit("update:modelValue",String(d.value))}}
286
286
  />
287
287
  <span
288
- class=${V("dot",{active:String(E)===String(d.value),disabled:u,"borderless-focus":!u})}
288
+ class=${A("dot",{active:String(k)===String(d.value),disabled:u,"borderless-focus":!u})}
289
289
  ></span>
290
290
  </div>
291
- ${d.text?s.html`<span class="radio-label-text">${d.text}</span>`:s.nothing}
291
+ ${d.text?n.html`<span class="radio-label-text">${d.text}</span>`:n.nothing}
292
292
  </label>
293
293
  </div>
294
294
  </div>
295
- `,g=()=>{const F=_=>String(E)===String(_[a]??""),I=b.length,K=b.findIndex(F),oe=(_,J)=>{for(let z=1;z<=I;z+=1){const W=(_+J*z+I*I)%I;if(!c(b[W]))return W}return-1},re=_=>{for(let J=0;J<I;J+=1){const z=_===1?J:I-1-J;if(!c(b[z]))return z}return-1},j=K>=0&&!c(b[K])?K:re(1),k=_=>Array.from(_.querySelectorAll('[role="radio"]')),R=(_,J)=>{if(J<0)return;_.preventDefault(),_.stopPropagation();const z=_.currentTarget,W=k(z)[J];W==null||W.focus(),e.emit("update:modelValue",b[J][a]??"");let Z=0;const G=()=>{const Q=k(z)[J];if(Q&&Q.getAttribute("aria-checked")==="true"){document.activeElement!==Q&&Q.focus();return}++Z<20&&n(G)};n(G)},X=_=>{var G,Q;if(u||I===0)return;const J=_.currentTarget,z=(Q=(G=_.target)==null?void 0:G.closest)==null?void 0:Q.call(G,'[role="radio"]'),W=z?k(J).indexOf(z):-1,Z=W>=0?W:K>=0?K:0;switch(_.key){case"ArrowRight":case"ArrowDown":R(_,oe(Z,1));break;case"ArrowLeft":case"ArrowUp":R(_,oe(Z,-1));break;case"Home":R(_,re(1));break;case"End":R(_,re(-1));break}},se=!!d.iconOnly,N=e.slots.has("item-icon"),ne=!se&&e.slots.has("item-badge");return s.html`
295
+ `,f=()=>{const _=F=>String(k)===String(F[c]??""),O=b.length,U=b.findIndex(_),Q=(F,oe)=>{for(let T=1;T<=O;T+=1){const W=(F+oe*T+O*O)%O;if(!i(b[W]))return W}return-1},re=F=>{for(let oe=0;oe<O;oe+=1){const T=F===1?oe:O-1-oe;if(!i(b[T]))return T}return-1},X=U>=0&&!i(b[U])?U:re(1),E=F=>Array.from(F.querySelectorAll('[role="radio"]')),V=(F,oe)=>{if(oe<0)return;F.preventDefault(),F.stopPropagation();const T=F.currentTarget,W=E(T)[oe];W==null||W.focus(),e.emit("update:modelValue",b[oe][c]??"");let K=0;const ee=()=>{const te=E(T)[oe];if(te&&te.getAttribute("aria-checked")==="true"){document.activeElement!==te&&te.focus();return}++K<20&&s(ee)};s(ee)},J=F=>{var ee,te;if(u||O===0)return;const oe=F.currentTarget,T=(te=(ee=F.target)==null?void 0:ee.closest)==null?void 0:te.call(ee,'[role="radio"]'),W=T?E(oe).indexOf(T):-1,K=W>=0?W:U>=0?U:0;switch(F.key){case"ArrowRight":case"ArrowDown":V(F,Q(K,1));break;case"ArrowLeft":case"ArrowUp":V(F,Q(K,-1));break;case"Home":V(F,re(1));break;case"End":V(F,re(-1));break}},le=!!d.iconOnly,N=e.slots.has("item-icon"),ie=!le&&e.slots.has("item-badge");return n.html`
296
296
  <div
297
- class=${V("radio-container",{segment:!0,"disabled-container":u,"size-sm":d.size==="sm","size-md":d.size!=="sm","icon-only":se})}
298
- @keydown=${X}
299
- @click=${_=>_.stopPropagation()}
297
+ class=${A("radio-container",{segment:!0,"disabled-container":u,"size-sm":d.size==="sm","size-md":d.size!=="sm","icon-only":le})}
298
+ @keydown=${J}
299
+ @click=${F=>F.stopPropagation()}
300
300
  >
301
- ${b.map((_,J)=>{const z=F(_),W=c(_),Z=String(_[m]??""),G=Z||String(_[a]??""),Q={item:_,index:J,active:z,disabled:W};return s.html`
301
+ ${b.map((F,oe)=>{const T=_(F),W=i(F),K=String(F[m]??""),ee=K||String(F[c]??""),te={item:F,index:oe,active:T,disabled:W};return n.html`
302
302
  <button
303
303
  type="button"
304
304
  role="radio"
305
- aria-checked=${z?"true":"false"}
306
- aria-label=${se?G:s.nothing}
307
- data-value=${String(_[a]??"")}
308
- data-tone=${l(_)??s.nothing}
309
- tabindex=${J===j?"0":"-1"}
305
+ aria-checked=${T?"true":"false"}
306
+ aria-label=${le?ee:n.nothing}
307
+ data-value=${String(F[c]??"")}
308
+ data-tone=${l(F)??n.nothing}
309
+ tabindex=${oe===X?"0":"-1"}
310
310
  ?disabled=${W}
311
- class=${V("segment-button",{"is-active":z,disabled:W})}
312
- @click=${()=>{W||e.emit("update:modelValue",_[a]??"")}}
311
+ class=${A("segment-button",{"is-active":T,disabled:W})}
312
+ @click=${()=>{W||e.emit("update:modelValue",F[c]??"")}}
313
313
  >
314
- ${N?s.html`<span class="segment-icon">${e.slot("item-icon",Q)}</span>`:s.nothing}
315
- ${se?s.nothing:Z}
316
- ${ne?s.html`<span class="segment-badge">${e.slot("item-badge",Q)}</span>`:s.nothing}
314
+ ${N?n.html`<span class="segment-icon">${e.slot("item-icon",te)}</span>`:n.nothing}
315
+ ${le?n.nothing:K}
316
+ ${ie?n.html`<span class="segment-badge">${e.slot("item-badge",te)}</span>`:n.nothing}
317
317
  </button>
318
318
  `})}
319
319
  </div>
320
- `},i=()=>s.html`
320
+ `},a=()=>n.html`
321
321
  <div
322
- class=${V("radio-container",{"disabled-container":u,borderless:d.variant==="borderless",vertical:d.direction==="vertical"})}
322
+ class=${A("radio-container",{"disabled-container":u,borderless:d.variant==="borderless",vertical:d.direction==="vertical"})}
323
323
  >
324
- ${b.map((F,I)=>{const K=c(F);return s.html`
324
+ ${b.map((_,O)=>{const U=i(_);return n.html`
325
325
  <div class="radio">
326
326
  <label
327
- for=${`${t}_${I}`}
328
- class=${r(I,K)}
329
- style=${te.styleMap(h(I))}
327
+ for=${`${t}_${O}`}
328
+ class=${r(O,U)}
329
+ style=${j.styleMap(p(O))}
330
330
  >
331
331
  <div class="radio-icon-wrapper">
332
332
  <input
333
333
  type="radio"
334
334
  name=${d.name||t}
335
- id=${`${t}_${I}`}
336
- .checked=${E===String(F[a]??"")}
337
- ?disabled=${K}
335
+ id=${`${t}_${O}`}
336
+ .checked=${k===String(_[c]??"")}
337
+ ?disabled=${U}
338
338
  class="radio-input"
339
- @keydown=${oe=>{o(oe)&&e.emit("update:modelValue",String(F[a]??""))}}
340
- @change=${()=>e.emit("update:modelValue",String(F[a]??""))}
339
+ @keydown=${Q=>{o(Q)&&e.emit("update:modelValue",String(_[c]??""))}}
340
+ @change=${()=>e.emit("update:modelValue",String(_[c]??""))}
341
341
  />
342
342
  <span
343
- class=${V("dot",{active:E===String(F[a]??""),disabled:K,"borderless-focus":d.variant!=="boxed"&&!K})}
343
+ class=${A("dot",{active:k===String(_[c]??""),disabled:U,"borderless-focus":d.variant!=="boxed"&&!U})}
344
344
  ></span>
345
345
  </div>
346
- <span class="radio-label-text">${String(F[m]??"")}</span>
346
+ <span class="radio-label-text">${String(_[m]??"")}</span>
347
347
  </label>
348
348
  </div>
349
349
  `})}
350
350
  </div>
351
- `,p="aria-label"in P||"aria-labelledby"in P,y=$&&!p&&d.label?d.label:s.nothing;return s.html`
351
+ `,h="aria-label"in L||"aria-labelledby"in L,$=S&&!h&&d.label?d.label:n.nothing;return n.html`
352
352
  <div
353
- class=${V("moz-radio-buttons",{"label-position-left":d.labelPosition==="left","segment-width-fixed":$&&d.widthMode==="fixed","segment-width-full":$&&d.widthMode==="full"},d.class)}
354
- style=${te.styleMap(Ce(d.style))}
355
- role=${$?"radiogroup":s.nothing}
356
- aria-label=${y}
357
- ${fe(P)}
353
+ class=${A("moz-radio-buttons",{"label-position-left":d.labelPosition==="left","segment-width-fixed":S&&d.widthMode==="fixed","segment-width-full":S&&d.widthMode==="full"},d.class)}
354
+ style=${j.styleMap(he(d.style))}
355
+ role=${S?"radiogroup":n.nothing}
356
+ aria-label=${$}
357
+ ${ce(L)}
358
358
  >
359
- ${d.label?Xe({disabled:u,required:d.required},d.label):s.nothing}
360
- ${x?L():$?g():i()}
359
+ ${d.label?Je({disabled:u,required:d.required},d.label):n.nothing}
360
+ ${x?M():S?f():a()}
361
361
  </div>
362
- `}}}}),pl={name:"MozRadio",core:fs,booleanProps:["disabled","iconOnly","required"],props:["label","text","disabled","required","displayExpr","valueExpr","tooltipExpr","disabledExpr","toneExpr","itemsSource","value","name","direction","variant","size","widthMode","iconOnly","labelPosition","modelValue"],emits:["update:modelValue"],slots:[],expose:!1};function $o(e="var(--moz-color-text-subtle)"){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
362
+ `}}}}),ti={name:"MozRadio",core:On,booleanProps:["disabled","iconOnly","required"],props:["label","text","disabled","required","displayExpr","valueExpr","tooltipExpr","disabledExpr","toneExpr","itemsSource","value","name","direction","variant","size","widthMode","iconOnly","labelPosition","modelValue"],emits:["update:modelValue"],slots:[],expose:!1};function Ro(e="var(--moz-color-text-subtle)"){return n.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
363
363
  <g>
364
364
  <path
365
365
  d="M0 6C0 4.81331 0.351894 3.65328 1.01118 2.66658C1.67047 1.67989 2.60754 0.910851 3.7039 0.456726C4.80026 0.00259972 6.00666 -0.11622 7.17054 0.115291C8.33443 0.346802 9.40353 0.918247 10.2426 1.75736C11.0818 2.59648 11.6532 3.66558 11.8847 4.82946C12.1162 5.99335 11.9974 7.19975 11.5433 8.2961C11.0892 9.39246 10.3201 10.3295 9.33342 10.9888C8.34673 11.6481 7.18669 12 6 12C4.40927 11.9981 2.88422 11.3654 1.75941 10.2406C0.634589 9.11578 0.00185261 7.59073 0 6ZM1.26 6C1.26 6.93773 1.53808 7.85439 2.05907 8.63407C2.58006 9.41374 3.32057 10.0214 4.18693 10.3802C5.05329 10.739 6.0066 10.8328 6.92629 10.6498C7.84598 10.4668 8.69075 10.0152 9.35375 9.35204C10.0167 8.6889 10.4682 7.84404 10.651 6.92431C10.8338 6.00458 10.7398 5.05129 10.3808 4.18501C10.0218 3.31872 9.41402 2.57835 8.63423 2.05752C7.85445 1.53669 6.93772 1.2588 6 1.259C4.74319 1.26059 3.53832 1.76063 2.64971 2.64942C1.76111 3.53822 1.26132 4.74319 1.26 6ZM5.743 9.7C5.5867 9.7 5.43678 9.63798 5.32616 9.52755C5.21554 9.41712 5.15326 9.26731 5.153 9.111V5.569C5.153 5.41243 5.21513 5.26226 5.32575 5.15146C5.43636 5.04065 5.58643 4.97827 5.743 4.978H6.163C6.31949 4.97853 6.4694 5.041 6.57996 5.15175C6.69052 5.2625 6.75274 5.41251 6.753 5.569V9.11C6.75247 9.26623 6.69011 9.41588 6.57955 9.52626C6.46899 9.63663 6.31922 9.69874 6.163 9.699L5.743 9.7ZM5.743 4.366C5.58652 4.366 5.43645 4.30384 5.32581 4.1932C5.21516 4.08255 5.153 3.93248 5.153 3.776V3.356C5.153 3.19943 5.21513 3.04926 5.32575 2.93846C5.43636 2.82765 5.58643 2.76527 5.743 2.765H6.163C6.31949 2.76553 6.4694 2.828 6.57996 2.93875C6.69052 3.04949 6.75274 3.19951 6.753 3.356V3.776C6.75274 3.9324 6.69049 4.08231 6.5799 4.1929C6.46931 4.30349 6.3194 4.36574 6.163 4.366H5.743Z"
366
366
  fill=${e}
367
367
  ></path>
368
368
  </g>
369
- </svg>`}function hl(){return s.html`<svg data-icon="password-hidden" width="18" height="18" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg">
369
+ </svg>`}function oi(){return n.html`<svg data-icon="password-hidden" width="18" height="18" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg">
370
370
  <path d="M1.5 1.5L16.5 14.5" stroke="var(--moz-color-text-secondary)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
371
371
  <path
372
372
  d="M7.5 8C7.5 7.17157 8.17157 6.5 9 6.5C9.82843 6.5 10.5 7.17157 10.5 8C10.5 8.82843 9.82843 9.5 9 9.5C8.17157 9.5 7.5 8.82843 7.5 8Z"
@@ -380,7 +380,7 @@
380
380
  stroke-linecap="round"
381
381
  stroke-linejoin="round"
382
382
  ></path>
383
- </svg>`}function ml(){return s.html`<svg data-icon="password-visible" width="18" height="18" viewBox="0 0 18 12" fill="none" xmlns="http://www.w3.org/2000/svg">
383
+ </svg>`}function ni(){return n.html`<svg data-icon="password-visible" width="18" height="18" viewBox="0 0 18 12" fill="none" xmlns="http://www.w3.org/2000/svg">
384
384
  <path
385
385
  d="M7.5 6C7.5 5.17157 8.17157 4.5 9 4.5C9.82843 4.5 10.5 5.17157 10.5 6C10.5 6.82843 9.82843 7.5 9 7.5C8.17157 7.5 7.5 6.82843 7.5 6Z"
386
386
  stroke="var(--moz-color-text-secondary)"
@@ -393,251 +393,251 @@
393
393
  stroke-linecap="round"
394
394
  stroke-linejoin="round"
395
395
  ></path>
396
- </svg>`}const fl=new Set(["id","label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),gl={type:"text",required:!1,disabled:!1,isReadOnly:!1,rules:[],messagePosition:"outside",width:"100%",useInvalidV2:!1},vl=typeof navigator<"u"&&/Edg/.test(navigator.userAgent);function wl(e,t={}){const o=!!t.legacyPassword;let n=!1;const l=Mt(),c={change:"",blur:"",save:""},r={change:0,blur:0,save:0};let h=0,d=!1,b,a;const m=()=>{const i=e.props,p=[String(i.modelValue??""),i.disabled,i.isReadOnly,i.required,i.requiredMessage,i.label,i.name,i.rules,...(i.rules??[]).flatMap(y=>[y.type,y.message,y.validator])];if(b){const y=!Object.is(p[0],b[0]),F=y&&p[0]===a;(p.length!==b.length||p.some((I,K)=>!Object.is(I,b[K])&&!(K===0&&F)))&&h++,y&&(a=void 0)}b=p};e.onCleanup(()=>{d=!0,h++});const u=()=>{const i=e.props,p=[];return i.required&&p.push({message:i.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",i.label||i.name||""),type:"save",validator:y=>!!y}),[...p,...i.rules??[]]},E=async(i,p)=>{m();const y=++r[p],F=h,I=()=>!d&&h===F&&r[p]===y,K=e.props,oe=u();if(oe.length<=0||K.disabled||K.isReadOnly)return!0;c[p]="";const re=oe.filter(j=>j.type===p);for(const j of re){let k;try{k=await j.validator(i)}finally{m()}if(!k)return I()&&(c[p]=j.message,e.requestUpdate()),!1}return I()&&(c[p]="",e.requestUpdate()),!0},x=i=>{const p=i.target.value;m(),a=p,r.save++,r.blur++,c.save="",c.blur="",e.emit("update:modelValue",p),E(p,"change")},$=i=>{const p=i.target.value;E(p,"blur"),e.requestUpdate()},P=i=>{i.key==="Enter"&&e.emit("enter",i)},L=()=>{e.props.disabled||(n=!n,e.requestUpdate())},g={validate:(i="save")=>E(String(e.props.modelValue??""),i),initValidator:()=>{h++,c.change="",c.blur="",c.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(g),e.onCleanup(()=>{var i;return(i=e.validator)==null?void 0:i.removeValidator(g)})),{onMounted:i=>{e.emit("mounted",(i==null?void 0:i.querySelector("input"))??null)},render(){m();const i=e.props,p=String(i.modelValue??""),y=c.save||c.blur||c.change,F=!!i.useInvalidV2,I=i.width?typeof i.width=="number"?`${i.width}px`:i.width:"100%",K=ye(i,fl),oe=i.id==null||i.id===""?l:String(i.id),re=o||i.type==="password";(!re||i.disabled)&&(n=!1);const j=re?n?"text":"password":i.type??"text";o&&K.autocomplete==null&&(K.autocomplete="new-password");const k=F&&y!=="",R=!F&&y!=="",X=e.slots.has("prefixIcon"),se=s.html`<input
397
- class=${V("moz-input",{disabled:i.disabled,"read-only":i.isReadOnly,"is-filled":p!=="","has-prefix-icon":X,"has-inside-message":!F&&i.messagePosition==="inside"&&y!=="","has-invalid-icon":k,"has-password-toggle":re,"edge-password":re&&vl})}
398
- id=${oe}
399
- name=${Ee.ifDefined(i.name)}
400
- type=${j}
401
- placeholder=${Ee.ifDefined(i.placeholder)}
402
- ?disabled=${!!i.disabled}
403
- ?readonly=${!!i.isReadOnly}
404
- .value=${uo.live(p)}
405
- ${fe(K)}
396
+ </svg>`}const si=new Set(["id","label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),li={type:"text",required:!1,disabled:!1,isReadOnly:!1,rules:[],messagePosition:"outside",width:"100%",useInvalidV2:!1},ii=typeof navigator<"u"&&/Edg/.test(navigator.userAgent);function ai(e,t={}){const o=!!t.legacyPassword;let s=!1;const l=Rt(),i={change:"",blur:"",save:""},r={change:0,blur:0,save:0};let p=0,d=!1,b,c;const m=()=>{const a=e.props,h=[String(a.modelValue??""),a.disabled,a.isReadOnly,a.required,a.requiredMessage,a.label,a.name,a.rules,...(a.rules??[]).flatMap($=>[$.type,$.message,$.validator])];if(b){const $=!Object.is(h[0],b[0]),_=$&&h[0]===c;(h.length!==b.length||h.some((O,U)=>!Object.is(O,b[U])&&!(U===0&&_)))&&p++,$&&(c=void 0)}b=h};e.onCleanup(()=>{d=!0,p++});const u=()=>{const a=e.props,h=[];return a.required&&h.push({message:a.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",a.label||a.name||""),type:"save",validator:$=>!!$}),[...h,...a.rules??[]]},k=async(a,h)=>{m();const $=++r[h],_=p,O=()=>!d&&p===_&&r[h]===$,U=e.props,Q=u();if(Q.length<=0||U.disabled||U.isReadOnly)return!0;i[h]="";const re=Q.filter(X=>X.type===h);for(const X of re){let E;try{E=await X.validator(a)}finally{m()}if(!E)return O()&&(i[h]=X.message,e.requestUpdate()),!1}return O()&&(i[h]="",e.requestUpdate()),!0},x=a=>{const h=a.target.value;m(),c=h,r.save++,r.blur++,i.save="",i.blur="",e.emit("update:modelValue",h),k(h,"change")},S=a=>{const h=a.target.value;k(h,"blur"),e.requestUpdate()},L=a=>{a.key==="Enter"&&e.emit("enter",a)},M=()=>{e.props.disabled||(s=!s,e.requestUpdate())},f={validate:(a="save")=>k(String(e.props.modelValue??""),a),initValidator:()=>{p++,i.change="",i.blur="",i.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(f),e.onCleanup(()=>{var a;return(a=e.validator)==null?void 0:a.removeValidator(f)})),{onMounted:a=>{e.emit("mounted",(a==null?void 0:a.querySelector("input"))??null)},render(){m();const a=e.props,h=String(a.modelValue??""),$=i.save||i.blur||i.change,_=!!a.useInvalidV2,O=a.width?typeof a.width=="number"?`${a.width}px`:a.width:"100%",U=ge(a,si),Q=a.id==null||a.id===""?l:String(a.id),re=o||a.type==="password";(!re||a.disabled)&&(s=!1);const X=re?s?"text":"password":a.type??"text";o&&U.autocomplete==null&&(U.autocomplete="new-password");const E=_&&$!=="",V=!_&&$!=="",J=e.slots.has("prefixIcon"),le=n.html`<input
397
+ class=${A("moz-input",{disabled:a.disabled,"read-only":a.isReadOnly,"is-filled":h!=="","has-prefix-icon":J,"has-inside-message":!_&&a.messagePosition==="inside"&&$!=="","has-invalid-icon":E,"has-password-toggle":re,"edge-password":re&&ii})}
398
+ id=${Q}
399
+ name=${$e.ifDefined(a.name)}
400
+ type=${X}
401
+ placeholder=${$e.ifDefined(a.placeholder)}
402
+ ?disabled=${!!a.disabled}
403
+ ?readonly=${!!a.isReadOnly}
404
+ .value=${So.live(h)}
405
+ ${ce(U)}
406
406
  @input=${x}
407
- @keypress=${P}
408
- @blur=${$}
409
- />`,N={disabled:!!i.disabled,isReadOnly:!!i.isReadOnly,invalid:y!==""},ne=X?s.html`<span class=${V("moz-input-prefix-icon",{disabled:i.disabled})} aria-hidden="true" inert
407
+ @keypress=${L}
408
+ @blur=${S}
409
+ />`,N={disabled:!!a.disabled,isReadOnly:!!a.isReadOnly,invalid:$!==""},ie=J?n.html`<span class=${A("moz-input-prefix-icon",{disabled:a.disabled})} aria-hidden="true" inert
410
410
  >${e.slot("prefixIcon",N)}</span
411
- >`:s.nothing,_=k?s.html`<div class="moz-input-invalid-icon-v2">
412
- ${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:y}):s.html`<div title=${y}>${$o("var(--moz-color-danger)")}</div>`}
413
- </div>`:s.nothing,J=R?s.html`<span class=${V("moz-input-invalid-message",`position-${i.messagePosition}`)}
414
- >${y}</span
415
- >`:s.nothing,z=i.label?Xe({for:oe,isReadOnly:i.isReadOnly,required:i.required},i.label,V("input-label",{"moz-input-label":o,"input-label-disabled":i.disabled&&!i.isReadOnly,"input-label-read-only":i.isReadOnly&&!i.disabled})):s.nothing,W=V("moz-input-wrapper",{"is-invalid":y!=="","is-password":re,"moz-password-input-container":o,disabled:o&&i.disabled},i.class),Z=te.styleMap({width:I,...Ce(i.style)});return re?s.html`
416
- <div class=${W} style=${Z}>
411
+ >`:n.nothing,F=E?n.html`<div class="moz-input-invalid-icon-v2">
412
+ ${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:$}):n.html`<div title=${$}>${Ro("var(--moz-color-danger)")}</div>`}
413
+ </div>`:n.nothing,oe=V?n.html`<span class=${A("moz-input-invalid-message",`position-${a.messagePosition}`)}
414
+ >${$}</span
415
+ >`:n.nothing,T=a.label?Je({for:Q,isReadOnly:a.isReadOnly,required:a.required},a.label,A("input-label",{"moz-input-label":o,"input-label-disabled":a.disabled&&!a.isReadOnly,"input-label-read-only":a.isReadOnly&&!a.disabled})):n.nothing,W=A("moz-input-wrapper",{"is-invalid":$!=="","is-password":re,"moz-password-input-container":o,disabled:o&&a.disabled},a.class),K=j.styleMap({width:O,...he(a.style)});return re?n.html`
416
+ <div class=${W} style=${K}>
417
417
  <div class="input-wrapper">
418
- ${z}
418
+ ${T}
419
419
  <div class="moz-password-input-wrapper">
420
- ${ne}${se}
420
+ ${ie}${le}
421
421
  <button
422
422
  type="button"
423
- aria-label=${n?e.locale.PasswordInput.hidePassword:e.locale.PasswordInput.showPassword}
424
- aria-pressed=${n?"true":"false"}
425
- aria-controls=${oe}
426
- class=${V("icon-container password-icon",{"cursor-pointer":!i.disabled,"cursor-not-allowed":i.disabled})}
427
- ?disabled=${!!i.disabled}
428
- @click=${L}
423
+ aria-label=${s?e.locale.PasswordInput.hidePassword:e.locale.PasswordInput.showPassword}
424
+ aria-pressed=${s?"true":"false"}
425
+ aria-controls=${Q}
426
+ class=${A("icon-container password-icon",{"cursor-pointer":!a.disabled,"cursor-not-allowed":a.disabled})}
427
+ ?disabled=${!!a.disabled}
428
+ @click=${M}
429
429
  >
430
- ${n?hl():ml()}
430
+ ${s?oi():ni()}
431
431
  </button>
432
- ${_} ${J}
432
+ ${F} ${oe}
433
433
  </div>
434
434
  </div>
435
435
  </div>
436
- `:s.html`
437
- <div class=${W} style=${Z}>
436
+ `:n.html`
437
+ <div class=${W} style=${K}>
438
438
  <div class="input-wrapper">
439
- ${z} ${ne}${se} ${_} ${J}
439
+ ${T} ${ie}${le} ${F} ${oe}
440
440
  </div>
441
441
  </div>
442
- `}}}const gs=$e({name:"moz-input",defaults:gl,setup:e=>wl(e)}),Cl={name:"MozInput",core:gs,booleanProps:["required","disabled","isReadOnly","useInvalidV2"],props:["id","label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue"],emits:["enter","mounted","update:modelValue"],slots:["invalidTooltip","prefixIcon"],expose:!1},bl=new Set(["id","label","width","height","required","disabled","rules","maxLength","resize","variant","immediatelyFocus","requiredMessage","modelValue","class","style"]),vs=$e({name:"moz-textarea",defaults:{height:80,required:!1,disabled:!1,rules:[],maxLength:null,resize:"none",variant:"default",immediatelyFocus:!1,modelValue:""},setup(e){const t=Mt(),o={change:"",blur:"",save:""},n=()=>{const a=e.props,m=[];return a.required&&m.push({message:a.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",a.label||""),type:"save",validator:u=>!!u}),[...m,...a.rules??[]]},l=async(a,m)=>{const u=e.props,E=n();if(E.length<=0||u.disabled)return!0;o[m]="";for(const x of E.filter($=>$.type===m))if(!await x.validator(a))return o[m]=x.message,e.requestUpdate(),!1;return e.requestUpdate(),!0},c=a=>{const m=a.target,u=e.props;m.value&&u.maxLength&&m.value.length>u.maxLength&&(m.value=m.value.slice(0,u.maxLength)),e.emit("update:modelValue",m.value),l(m.value,"change")},r=a=>{l(a.target.value,"blur")},h=()=>{o.save="",e.requestUpdate()},d={handleEvent(a){e.props.disabled&&(a.preventDefault(),a.stopPropagation())},capture:!0},b={validate:(a="save")=>l(String(e.props.modelValue??""),a),initValidator:()=>{o.change=o.blur=o.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(b),e.onCleanup(()=>{var a;return(a=e.validator)==null?void 0:a.removeValidator(b)})),{onMounted:a=>{var m;e.props.immediatelyFocus&&((m=a==null?void 0:a.querySelector("textarea"))==null||m.focus())},render(){const a=e.props,m=String(a.modelValue??""),u=o.save||o.blur||o.change,E=a.width?typeof a.width=="number"?`${De(a.width)}rem`:a.width:"100%",x=`${De(a.height??80)}rem`,$=a.resize??"none",P=$==="none"?{height:x}:{minHeight:x},L=m.length,g=ye(a,bl),i=a.id==null||a.id===""?t:String(a.id),p=a.variant==="pill"||a.variant==="borderless"?a.variant:"default",y=!!a.disabled,F=e.slots.has("suffix"),I={disabled:y};return s.html`
442
+ `}}}const _n=ye({name:"moz-input",defaults:li,setup:e=>ai(e)}),ri={name:"MozInput",core:_n,booleanProps:["required","disabled","isReadOnly","useInvalidV2"],props:["id","label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue"],emits:["enter","mounted","update:modelValue"],slots:["invalidTooltip","prefixIcon"],expose:!1},ci=new Set(["id","label","width","height","required","disabled","rules","maxLength","resize","variant","immediatelyFocus","requiredMessage","modelValue","class","style"]),Bn=ye({name:"moz-textarea",defaults:{height:80,required:!1,disabled:!1,rules:[],maxLength:null,resize:"none",variant:"default",immediatelyFocus:!1,modelValue:""},setup(e){const t=Rt(),o={change:"",blur:"",save:""},s=()=>{const c=e.props,m=[];return c.required&&m.push({message:c.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",c.label||""),type:"save",validator:u=>!!u}),[...m,...c.rules??[]]},l=async(c,m)=>{const u=e.props,k=s();if(k.length<=0||u.disabled)return!0;o[m]="";for(const x of k.filter(S=>S.type===m))if(!await x.validator(c))return o[m]=x.message,e.requestUpdate(),!1;return e.requestUpdate(),!0},i=c=>{const m=c.target,u=e.props;m.value&&u.maxLength&&m.value.length>u.maxLength&&(m.value=m.value.slice(0,u.maxLength)),e.emit("update:modelValue",m.value),l(m.value,"change")},r=c=>{l(c.target.value,"blur")},p=()=>{o.save="",e.requestUpdate()},d={handleEvent(c){e.props.disabled&&(c.preventDefault(),c.stopPropagation())},capture:!0},b={validate:(c="save")=>l(String(e.props.modelValue??""),c),initValidator:()=>{o.change=o.blur=o.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(b),e.onCleanup(()=>{var c;return(c=e.validator)==null?void 0:c.removeValidator(b)})),{onMounted:c=>{var m;e.props.immediatelyFocus&&((m=c==null?void 0:c.querySelector("textarea"))==null||m.focus())},render(){const c=e.props,m=String(c.modelValue??""),u=o.save||o.blur||o.change,k=c.width?typeof c.width=="number"?`${Ae(c.width)}rem`:c.width:"100%",x=`${Ae(c.height??80)}rem`,S=c.resize??"none",L=S==="none"?{height:x}:{minHeight:x},M=m.length,f=ge(c,ci),a=c.id==null||c.id===""?t:String(c.id),h=c.variant==="pill"||c.variant==="borderless"?c.variant:"default",$=!!c.disabled,_=e.slots.has("suffix"),O={disabled:$};return n.html`
443
443
  <div
444
- class=${V("moz-textarea-wrapper",{disabled:a.disabled},a.class)}
445
- data-variant=${Ee.ifDefined(p==="default"?void 0:p)}
446
- style=${te.styleMap({width:E,...P,...Ce(a.style)})}
444
+ class=${A("moz-textarea-wrapper",{disabled:c.disabled},c.class)}
445
+ data-variant=${$e.ifDefined(h==="default"?void 0:h)}
446
+ style=${j.styleMap({width:k,...L,...he(c.style)})}
447
447
  >
448
448
  <div class="textarea-inner">
449
- ${a.label?Xe({for:i,disabled:a.disabled,required:a.required},a.label):s.nothing}
449
+ ${c.label?Je({for:a,disabled:c.disabled,required:c.required},c.label):n.nothing}
450
450
  <div
451
- class=${V("moz-textarea-box",{disabled:a.disabled,invalid:u!=="","has-suffix":F})}
451
+ class=${A("moz-textarea-box",{disabled:c.disabled,invalid:u!=="","has-suffix":_})}
452
452
  >
453
453
  <textarea
454
- id=${i}
455
- ${fe(g)}
456
- .value=${uo.live(m)}
457
- ?disabled=${!!a.disabled}
458
- maxlength=${Ee.ifDefined(a.maxLength??void 0)}
459
- class=${V("moz-textarea",{disabled:a.disabled})}
460
- style=${te.styleMap({resize:$==="none"?void 0:$,height:$==="none"?void 0:"auto"})}
461
- @input=${c}
454
+ id=${a}
455
+ ${ce(f)}
456
+ .value=${So.live(m)}
457
+ ?disabled=${!!c.disabled}
458
+ maxlength=${$e.ifDefined(c.maxLength??void 0)}
459
+ class=${A("moz-textarea",{disabled:c.disabled})}
460
+ style=${j.styleMap({resize:S==="none"?void 0:S,height:S==="none"?void 0:"auto"})}
461
+ @input=${i}
462
462
  @blur=${r}
463
- @focus=${h}
463
+ @focus=${p}
464
464
  ></textarea>
465
- ${a.maxLength?s.html`<div class="char-counter"><span>${L}</span><span>/</span><span>${a.maxLength}</span></div>`:s.nothing}
466
- ${F?s.html`<div class="moz-textarea-suffix" ?inert=${y} @click=${d}>
467
- ${e.slot("suffix",I)}
468
- </div>`:s.nothing}
465
+ ${c.maxLength?n.html`<div class="char-counter"><span>${M}</span><span>/</span><span>${c.maxLength}</span></div>`:n.nothing}
466
+ ${_?n.html`<div class="moz-textarea-suffix" ?inert=${$} @click=${d}>
467
+ ${e.slot("suffix",O)}
468
+ </div>`:n.nothing}
469
469
  </div>
470
470
  </div>
471
- ${u!==""?s.html`<span class="moz-textarea-invalid-message">${u}</span>`:s.nothing}
471
+ ${u!==""?n.html`<span class="moz-textarea-invalid-message">${u}</span>`:n.nothing}
472
472
  </div>
473
- `}}}}),yl={name:"MozTextArea",core:vs,booleanProps:["disabled","immediatelyFocus","required"],props:["id","label","width","height","required","disabled","rules","maxLength","resize","variant","immediatelyFocus","requiredMessage","modelValue"],emits:["update:modelValue"],slots:["suffix"],expose:!1};function $l(e="var(--moz-color-on-accent)",t=!1){return s.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
473
+ `}}}}),di={name:"MozTextArea",core:Bn,booleanProps:["disabled","immediatelyFocus","required"],props:["id","label","width","height","required","disabled","rules","maxLength","resize","variant","immediatelyFocus","requiredMessage","modelValue"],emits:["update:modelValue"],slots:["suffix"],expose:!1};function ui(e="var(--moz-color-on-accent)",t=!1){return n.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
474
474
  <path d="M7 2V12M2 7H12" stroke=${t?"var(--moz-color-text-muted)":e} stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path>
475
- </svg>`}function Sl(e="var(--moz-color-on-accent)",t=!1){return s.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
475
+ </svg>`}function pi(e="var(--moz-color-on-accent)",t=!1){return n.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
476
476
  <path d="M2 7H12" stroke=${t?"var(--moz-color-text-muted)":e} stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path>
477
- </svg>`}function kl(e=!1){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
477
+ </svg>`}function hi(e=!1){return n.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
478
478
  <path d="M9.50097 7.73588L5.95565 4.27686L2.49904 7.73588" stroke=${e?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)"} stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"></path>
479
- </svg>`}function El(e=!1){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
479
+ </svg>`}function mi(e=!1){return n.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
480
480
  <path d="M2.49901 4.27686L6.04435 7.73588L9.50099 4.27686" stroke=${e?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)"} stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"></path>
481
- </svg>`}const Ll=new Set(["id","label","name","width","required","requiredMessage","rules","messagePosition","useInvalidV2","isReadOnly","step","min","max","disabled","shortMode","nullable","modelValue","class","style"]),ws=$e({name:"moz-number-input",defaults:{label:"",width:100,required:!1,rules:[],messagePosition:"outside",useInvalidV2:!1,isReadOnly:!1,step:1,min:-Number.MAX_VALUE,max:Number.MAX_VALUE,disabled:!1,shortMode:!1,nullable:!1},setup(e){const t=Mt(),o={change:"",blur:"",save:""},n={change:0,blur:0,save:0};let l=0,c=!1,r,h;const d=()=>{const i=e.props,p=[String(i.modelValue??""),i.disabled,i.isReadOnly,i.required,i.requiredMessage,i.label,i.name,i.rules,...(i.rules??[]).flatMap(y=>[y.type,y.message,y.validator])];if(r){const y=!Object.is(p[0],r[0]),F=y&&p[0]===h;(p.length!==r.length||p.some((I,K)=>!Object.is(I,r[K])&&!(K===0&&F)))&&l++,y&&(h=void 0)}r=p};e.onCleanup(()=>{c=!0,l++});const b=()=>{const i=e.props;return[...i.required?[{message:i.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",i.label||i.name||""),type:"save",validator:y=>!!y}]:[],...i.rules??[]]},a=async(i,p)=>{d();const y=++n[p],F=l,I=()=>!c&&l===F&&n[p]===y,K=b();if(!K.length||e.props.disabled||e.props.isReadOnly)return!0;o[p]="";for(const oe of K.filter(re=>re.type===p)){let re;try{re=await oe.validator(i)}finally{d()}if(!re)return I()&&(o[p]=oe.message,e.requestUpdate()),!1}return I()&&(o[p]="",e.requestUpdate()),!0},m={validate:(i="save")=>a(String(e.props.modelValue??""),i),initValidator:()=>{l++,o.change=o.blur=o.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(m),e.onCleanup(()=>{var i;return(i=e.validator)==null?void 0:i.removeValidator(m)}));const u=i=>{d(),h=String(i),n.save++,n.blur++;const p=!!(o.save||o.blur);o.save=o.blur="",e.emit("update:modelValue",i),e.emit("change",i),a(String(i),"change"),p&&e.requestUpdate()},E=()=>{const i=e.props;if(i.disabled||i.isReadOnly||i.modelValue===void 0)return;const p=i.modelValue+i.step;i.max!==void 0&&i.max!==null&&p>i.max||u(p)},x=()=>{const i=e.props;if(i.disabled||i.isReadOnly||i.modelValue===void 0)return;const p=i.modelValue-i.step;i.min!==void 0&&i.min!==null&&p<i.min||u(p)},$=i=>{const p=e.props;if(p.disabled||p.isReadOnly||p.nullable||i.key!=="Backspace"&&i.key!=="Delete"||p.min===-Number.MAX_VALUE||Number(p.modelValue)!==Number(p.min))return;const y=i.target,F=y.selectionStart??0,I=y.selectionEnd??0,K=y.value,oe=F!==I;(oe&&F===0&&I===K.length||!oe&&K.length===1)&&i.preventDefault()},P=i=>{const p=e.props;if(p.disabled||p.isReadOnly)return;const y=i.target;if(!p.nullable&&y.value===""){const F=p.min!==-Number.MAX_VALUE?p.min:0;u(F),y.value=String(F)}a(y.value,"blur")},L=i=>{const p=e.props;if(p.disabled||p.isReadOnly)return;const y=i.target;if(!y&&!p.nullable){u(0);return}if(!y)return;Number(y.value)<p.min&&(y.value=String(p.min)),Number(y.value)>p.max&&(y.value=String(p.max));const F=+y.value.replace(/,/g,"");u(F)},g=i=>{i.key==="Enter"&&e.emit("enter",i)};return{onMounted:i=>e.emit("mounted",(i==null?void 0:i.querySelector("input"))??null),render(){d();const i=e.props,p=o.save||o.blur||o.change,y=!!i.useInvalidV2,F=i.modelValue,I=!!i.disabled,K=i.min,oe=i.max,re=typeof i.width=="number"?`${De(i.width)}rem`:i.width,j=ye(i,Ll),k=i.id==null||i.id===""?t:String(i.id),R=se=>V("num-change-btn",se),X=s.html`
482
- <div class=${V("moz-number-input",{"input-border":i.shortMode})}>
481
+ </svg>`}const fi=new Set(["id","label","name","width","required","requiredMessage","rules","messagePosition","useInvalidV2","isReadOnly","step","min","max","disabled","shortMode","nullable","modelValue","class","style"]),qn=ye({name:"moz-number-input",defaults:{label:"",width:100,required:!1,rules:[],messagePosition:"outside",useInvalidV2:!1,isReadOnly:!1,step:1,min:-Number.MAX_VALUE,max:Number.MAX_VALUE,disabled:!1,shortMode:!1,nullable:!1},setup(e){const t=Rt(),o={change:"",blur:"",save:""},s={change:0,blur:0,save:0};let l=0,i=!1,r,p;const d=()=>{const a=e.props,h=[String(a.modelValue??""),a.disabled,a.isReadOnly,a.required,a.requiredMessage,a.label,a.name,a.rules,...(a.rules??[]).flatMap($=>[$.type,$.message,$.validator])];if(r){const $=!Object.is(h[0],r[0]),_=$&&h[0]===p;(h.length!==r.length||h.some((O,U)=>!Object.is(O,r[U])&&!(U===0&&_)))&&l++,$&&(p=void 0)}r=h};e.onCleanup(()=>{i=!0,l++});const b=()=>{const a=e.props;return[...a.required?[{message:a.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",a.label||a.name||""),type:"save",validator:$=>!!$}]:[],...a.rules??[]]},c=async(a,h)=>{d();const $=++s[h],_=l,O=()=>!i&&l===_&&s[h]===$,U=b();if(!U.length||e.props.disabled||e.props.isReadOnly)return!0;o[h]="";for(const Q of U.filter(re=>re.type===h)){let re;try{re=await Q.validator(a)}finally{d()}if(!re)return O()&&(o[h]=Q.message,e.requestUpdate()),!1}return O()&&(o[h]="",e.requestUpdate()),!0},m={validate:(a="save")=>c(String(e.props.modelValue??""),a),initValidator:()=>{l++,o.change=o.blur=o.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(m),e.onCleanup(()=>{var a;return(a=e.validator)==null?void 0:a.removeValidator(m)}));const u=a=>{d(),p=String(a),s.save++,s.blur++;const h=!!(o.save||o.blur);o.save=o.blur="",e.emit("update:modelValue",a),e.emit("change",a),c(String(a),"change"),h&&e.requestUpdate()},k=()=>{const a=e.props;if(a.disabled||a.isReadOnly||a.modelValue===void 0)return;const h=a.modelValue+a.step;a.max!==void 0&&a.max!==null&&h>a.max||u(h)},x=()=>{const a=e.props;if(a.disabled||a.isReadOnly||a.modelValue===void 0)return;const h=a.modelValue-a.step;a.min!==void 0&&a.min!==null&&h<a.min||u(h)},S=a=>{const h=e.props;if(h.disabled||h.isReadOnly||h.nullable||a.key!=="Backspace"&&a.key!=="Delete"||h.min===-Number.MAX_VALUE||Number(h.modelValue)!==Number(h.min))return;const $=a.target,_=$.selectionStart??0,O=$.selectionEnd??0,U=$.value,Q=_!==O;(Q&&_===0&&O===U.length||!Q&&U.length===1)&&a.preventDefault()},L=a=>{const h=e.props;if(h.disabled||h.isReadOnly)return;const $=a.target;if(!h.nullable&&$.value===""){const _=h.min!==-Number.MAX_VALUE?h.min:0;u(_),$.value=String(_)}c($.value,"blur")},M=a=>{const h=e.props;if(h.disabled||h.isReadOnly)return;const $=a.target;if(!$&&!h.nullable){u(0);return}if(!$)return;Number($.value)<h.min&&($.value=String(h.min)),Number($.value)>h.max&&($.value=String(h.max));const _=+$.value.replace(/,/g,"");u(_)},f=a=>{a.key==="Enter"&&e.emit("enter",a)};return{onMounted:a=>e.emit("mounted",(a==null?void 0:a.querySelector("input"))??null),render(){d();const a=e.props,h=o.save||o.blur||o.change,$=!!a.useInvalidV2,_=a.modelValue,O=!!a.disabled,U=a.min,Q=a.max,re=typeof a.width=="number"?`${Ae(a.width)}rem`:a.width,X=ge(a,fi),E=a.id==null||a.id===""?t:String(a.id),V=le=>A("num-change-btn",le),J=n.html`
482
+ <div class=${A("moz-number-input",{"input-border":a.shortMode})}>
483
483
  <input
484
- id=${k}
485
- name=${Ee.ifDefined(i.name)}
486
- ?disabled=${I}
487
- ?readonly=${!!i.isReadOnly}
488
- .value=${uo.live(String(F??""))}
489
- ${fe(j)}
490
- @input=${L}
491
- @change=${L}
492
- @blur=${P}
493
- @keydown=${$}
494
- @keypress=${g}
484
+ id=${E}
485
+ name=${$e.ifDefined(a.name)}
486
+ ?disabled=${O}
487
+ ?readonly=${!!a.isReadOnly}
488
+ .value=${So.live(String(_??""))}
489
+ ${ce(X)}
490
+ @input=${M}
491
+ @change=${M}
492
+ @blur=${L}
493
+ @keydown=${S}
494
+ @keypress=${f}
495
495
  type="number"
496
496
  />
497
497
  <div class="moz-number-input-btn">
498
- ${i.shortMode?s.html`
499
- <button type="button" aria-label=${e.locale.NumberInput.increase} class="moz-number-input-btn-icon" ?disabled=${I||!!i.isReadOnly} @click=${E}>${kl(I)}</button>
500
- <button type="button" aria-label=${e.locale.NumberInput.decrease} class="moz-number-input-btn-icon" ?disabled=${I||!!i.isReadOnly} @click=${x}>${El(I)}</button>
501
- `:s.nothing}
498
+ ${a.shortMode?n.html`
499
+ <button type="button" aria-label=${e.locale.NumberInput.increase} class="moz-number-input-btn-icon" ?disabled=${O||!!a.isReadOnly} @click=${k}>${hi(O)}</button>
500
+ <button type="button" aria-label=${e.locale.NumberInput.decrease} class="moz-number-input-btn-icon" ?disabled=${O||!!a.isReadOnly} @click=${x}>${mi(O)}</button>
501
+ `:n.nothing}
502
502
  </div>
503
- ${y&&p?s.html`<div class="moz-number-input-invalid-icon-v2">
504
- ${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:p}):s.html`<div title=${p}>${$o("var(--moz-color-danger)")}</div>`}
505
- </div>`:s.nothing}
506
- ${!y&&p&&i.messagePosition==="inside"?s.html`<span class=${V("moz-number-input-invalid-message",`position-${i.messagePosition}`)}>${p}</span>`:s.nothing}
503
+ ${$&&h?n.html`<div class="moz-number-input-invalid-icon-v2">
504
+ ${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:h}):n.html`<div title=${h}>${Ro("var(--moz-color-danger)")}</div>`}
505
+ </div>`:n.nothing}
506
+ ${!$&&h&&a.messagePosition==="inside"?n.html`<span class=${A("moz-number-input-invalid-message",`position-${a.messagePosition}`)}>${h}</span>`:n.nothing}
507
507
  </div>
508
- `;return s.html`
509
- <div class=${V("moz-number-input-container",{disabled:I,"is-invalid":!!p,"read-only":!!i.isReadOnly},i.class)} style=${te.styleMap(Ce(i.style))}>
510
- ${i.label?Xe({for:k,disabled:I},s.html`${i.label}${i.required?s.html`<span class="require-mark">*</span>`:s.nothing}`):s.nothing}
511
- <div class=${V("moz-number-input-wrapper",{"moz-number-input-quantity":!i.shortMode})} style="width:${re}">
512
- ${i.shortMode?s.nothing:s.html`<button
508
+ `;return n.html`
509
+ <div class=${A("moz-number-input-container",{disabled:O,"is-invalid":!!h,"read-only":!!a.isReadOnly},a.class)} style=${j.styleMap(he(a.style))}>
510
+ ${a.label?Je({for:E,disabled:O},n.html`${a.label}${a.required?n.html`<span class="require-mark">*</span>`:n.nothing}`):n.nothing}
511
+ <div class=${A("moz-number-input-wrapper",{"moz-number-input-quantity":!a.shortMode})} style="width:${re}">
512
+ ${a.shortMode?n.nothing:n.html`<button
513
513
  type="button"
514
514
  aria-label=${e.locale.NumberInput.decrease}
515
- class=${R({disabled:I||K>=F,"min-disabled":K>=F})}
516
- ?disabled=${I||!!i.isReadOnly}
515
+ class=${V({disabled:O||U>=_,"min-disabled":U>=_})}
516
+ ?disabled=${O||!!a.isReadOnly}
517
517
  @click=${x}
518
518
  >
519
- ${Sl("currentColor",I||K>=F)}
519
+ ${pi("currentColor",O||U>=_)}
520
520
  </button>`}
521
- ${X}
522
- ${i.shortMode?s.nothing:s.html`<button
521
+ ${J}
522
+ ${a.shortMode?n.nothing:n.html`<button
523
523
  type="button"
524
524
  aria-label=${e.locale.NumberInput.increase}
525
- class=${R({disabled:I||oe<=F,"max-disabled":oe<=F})}
526
- ?disabled=${I||!!i.isReadOnly}
527
- @click=${E}
525
+ class=${V({disabled:O||Q<=_,"max-disabled":Q<=_})}
526
+ ?disabled=${O||!!a.isReadOnly}
527
+ @click=${k}
528
528
  >
529
- ${$l("currentColor",I||oe<=F)}
529
+ ${ui("currentColor",O||Q<=_)}
530
530
  </button>`}
531
531
  </div>
532
- ${!y&&p&&i.messagePosition==="outside"?s.html`<span class="moz-number-input-invalid-message position-outside">${p}</span>`:s.nothing}
532
+ ${!$&&h&&a.messagePosition==="outside"?n.html`<span class="moz-number-input-invalid-message position-outside">${h}</span>`:n.nothing}
533
533
  </div>
534
- `}}}}),Pl={name:"MozNumberInput",core:ws,booleanProps:["disabled","nullable","required","shortMode","isReadOnly","useInvalidV2"],props:["id","label","name","width","required","step","min","max","disabled","shortMode","nullable","modelValue","isReadOnly","rules","requiredMessage","messagePosition","useInvalidV2"],emits:["change","mounted","enter","update:modelValue"],slots:["invalidTooltip"],expose:!1};function Cs(e="var(--moz-color-text-subtle)"){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
534
+ `}}}}),gi={name:"MozNumberInput",core:qn,booleanProps:["disabled","nullable","required","shortMode","isReadOnly","useInvalidV2"],props:["id","label","name","width","required","step","min","max","disabled","shortMode","nullable","modelValue","isReadOnly","rules","requiredMessage","messagePosition","useInvalidV2"],emits:["change","mounted","enter","update:modelValue"],slots:["invalidTooltip"],expose:!1};function Fn(e="var(--moz-color-text-subtle)"){return n.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
535
535
  <path d="M9 3L3 9M3 3L9 9" stroke=${e} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
536
- </svg>`}function Ml(e="var(--moz-color-tab-close)"){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
536
+ </svg>`}function vi(e="var(--moz-color-tab-close)"){return n.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
537
537
  <path d="M9.99426 3.19027C10.3067 2.87785 10.3067 2.37131 9.99426 2.05889C9.68184 1.74647 9.17531 1.74647 8.86289 2.05889L9.42857 2.62458L9.99426 3.19027ZM2.05894 8.86288C1.74652 9.1753 1.74652 9.68183 2.05894 9.99426C2.37136 10.3067 2.87789 10.3067 3.1903 9.99425L2.62462 9.42857L2.05894 8.86288ZM9.42857 2.62458L8.86289 2.05889L2.05894 8.86288L2.62462 9.42857L3.1903 9.99425L9.99426 3.19027L9.42857 2.62458Z" fill=${e}></path>
538
538
  <path d="M3.13711 2.00574C2.82469 1.69332 2.31816 1.69332 2.00574 2.00574C1.69333 2.31816 1.69333 2.8247 2.00574 3.13712L2.57143 2.57143L3.13711 2.00574ZM8.8097 9.9411C9.12211 10.2535 9.62864 10.2535 9.94106 9.9411C10.2535 9.62868 10.2535 9.12215 9.94106 8.80973L9.37538 9.37542L8.8097 9.9411ZM2.57143 2.57143L2.00574 3.13712L8.8097 9.9411L9.37538 9.37542L9.94106 8.80973L3.13711 2.00574L2.57143 2.57143Z" fill=${e}></path>
539
- </svg>`}const xl=new Set(["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue","class","style"]),bs=$e({name:"moz-tab",defaults:{vertical:!1,tabWidth:100,closeAble:!1,itemSource:[]},setup(e){const t=ot("tab_"),o=new WeakSet,n=a=>{a&&o.add(a)},l=a=>`${t}-tab-${a}`,c=a=>`${t}-panel-${a}`,r=a=>typeof requestAnimationFrame=="function"?requestAnimationFrame(a):setTimeout(a,16),h=a=>{e.props.modelValue!==a&&(e.emit("update:modelValue",a),e.emit("change",a))},d=(a,m)=>{const u=e.props,E=(u.itemSource??[]).map(y=>y.id);if(E.length===0)return;const x=u.vertical?"ArrowDown":"ArrowRight",$=u.vertical?"ArrowUp":"ArrowLeft";let P;if(a.key===x?P=E[(E.indexOf(m)+1)%E.length]:a.key===$?P=E[(E.indexOf(m)-1+E.length)%E.length]:a.key==="Home"?P=E[0]:a.key==="End"?P=E[E.length-1]:(a.key==="Enter"||a.key===" ")&&(P=m),P===void 0)return;a.preventDefault(),a.stopPropagation(),h(P);const L=a.currentTarget.closest('[role="tablist"]'),g=l(P);let i=0;const p=()=>{const y=Array.from((L==null?void 0:L.querySelectorAll('[role="tab"]'))??[]).find(F=>F.id===g);if(y&&y.getAttribute("aria-selected")==="true"){y.focus();return}++i<20&&r(p)};r(p)},b=a=>{const m=e.props;if(m.modelValue===a){const u=(m.itemSource??[]).filter(E=>E.id!==a);u.length>0&&h(u[u.length-1].id)}e.emit("close",a)};return{onMounted:()=>{const a=e.props;!a.modelValue&&(a.itemSource??[]).length>0&&queueMicrotask(()=>{!e.props.modelValue&&(e.props.itemSource??[]).length>0&&h(e.props.itemSource[0].id)})},render(){const a=e.props,m=a.itemSource??[],u=a.modelValue,E=ye(a,xl),x=te.styleMap({width:a.closeAble?`${a.tabWidth}px`:"",maxWidth:a.maxTabWidth?`${a.maxTabWidth}px`:void 0,display:"flex",justifyContent:a.closeAble||a.vertical?"space-between":"center",alignItems:"center"});return s.html`
539
+ </svg>`}const wi=new Set(["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue","class","style"]),Nn=ye({name:"moz-tab",defaults:{vertical:!1,tabWidth:100,closeAble:!1,itemSource:[]},setup(e){const t=Qe("tab_"),o=new WeakSet,s=c=>{c&&o.add(c)},l=c=>`${t}-tab-${c}`,i=c=>`${t}-panel-${c}`,r=c=>typeof requestAnimationFrame=="function"?requestAnimationFrame(c):setTimeout(c,16),p=c=>{e.props.modelValue!==c&&(e.emit("update:modelValue",c),e.emit("change",c))},d=(c,m)=>{const u=e.props,k=(u.itemSource??[]).map($=>$.id);if(k.length===0)return;const x=u.vertical?"ArrowDown":"ArrowRight",S=u.vertical?"ArrowUp":"ArrowLeft";let L;if(c.key===x?L=k[(k.indexOf(m)+1)%k.length]:c.key===S?L=k[(k.indexOf(m)-1+k.length)%k.length]:c.key==="Home"?L=k[0]:c.key==="End"?L=k[k.length-1]:(c.key==="Enter"||c.key===" ")&&(L=m),L===void 0)return;c.preventDefault(),c.stopPropagation(),p(L);const M=c.currentTarget.closest('[role="tablist"]'),f=l(L);let a=0;const h=()=>{const $=Array.from((M==null?void 0:M.querySelectorAll('[role="tab"]'))??[]).find(_=>_.id===f);if($&&$.getAttribute("aria-selected")==="true"){$.focus();return}++a<20&&r(h)};r(h)},b=c=>{const m=e.props;if(m.modelValue===c){const u=(m.itemSource??[]).filter(k=>k.id!==c);u.length>0&&p(u[u.length-1].id)}e.emit("close",c)};return{onMounted:()=>{const c=e.props;!c.modelValue&&(c.itemSource??[]).length>0&&queueMicrotask(()=>{!e.props.modelValue&&(e.props.itemSource??[]).length>0&&p(e.props.itemSource[0].id)})},render(){const c=e.props,m=c.itemSource??[],u=c.modelValue,k=ge(c,wi),x=j.styleMap({width:c.closeAble?`${c.tabWidth}px`:"",maxWidth:c.maxTabWidth?`${c.maxTabWidth}px`:void 0,display:"flex",justifyContent:c.closeAble||c.vertical?"space-between":"center",alignItems:"center"});return n.html`
540
540
  <div
541
- class=${V("moz-tabs-container",{vertical:a.vertical},a.class)}
542
- style=${te.styleMap(Ce(a.style))}
543
- ${fe(E)}
541
+ class=${A("moz-tabs-container",{vertical:c.vertical},c.class)}
542
+ style=${j.styleMap(he(c.style))}
543
+ ${ce(k)}
544
544
  >
545
545
  <div
546
- class=${V("moz-tabs",{vertical:a.vertical})}
546
+ class=${A("moz-tabs",{vertical:c.vertical})}
547
547
  role="tablist"
548
- aria-orientation=${a.vertical?"vertical":"horizontal"}
548
+ aria-orientation=${c.vertical?"vertical":"horizontal"}
549
549
  >
550
- ${m.map($=>{const P=u===$.id,L=a.closeAble&&!a.vertical&&!a.maxTabWidth&&!e.slots.has(`${$.id}-tab`);return s.html`
550
+ ${m.map(S=>{const L=u===S.id,M=c.closeAble&&!c.vertical&&!c.maxTabWidth&&!e.slots.has(`${S.id}-tab`);return n.html`
551
551
  <div
552
- class=${V("moz-tab",{"current-tab":P,vertical:a.vertical,closeable:a.closeAble,"horizontal-close-default":L})}
552
+ class=${A("moz-tab",{"current-tab":L,vertical:c.vertical,closeable:c.closeAble,"horizontal-close-default":M})}
553
553
  style=${x}
554
- id=${l($.id)}
554
+ id=${l(S.id)}
555
555
  role="tab"
556
- aria-selected=${P?"true":"false"}
557
- aria-controls=${c($.id)}
558
- tabindex=${P?"0":"-1"}
559
- @click=${()=>h($.id)}
560
- @mousedown=${g=>{if(g.button!==0)return;const i=g.target instanceof Element?g.target.closest("button"):null;i&&o.has(i)&&i.parentElement===g.currentTarget||h($.id)}}
561
- @keydown=${g=>d(g,$.id)}
556
+ aria-selected=${L?"true":"false"}
557
+ aria-controls=${i(S.id)}
558
+ tabindex=${L?"0":"-1"}
559
+ @click=${()=>p(S.id)}
560
+ @mousedown=${f=>{if(f.button!==0)return;const a=f.target instanceof Element?f.target.closest("button"):null;a&&o.has(a)&&a.parentElement===f.currentTarget||p(S.id)}}
561
+ @keydown=${f=>d(f,S.id)}
562
562
  >
563
- ${e.slots.has(`${$.id}-tab`)?e.slot(`${$.id}-tab`,{text:$.text,active:P}):s.html`<p class=${V("tab-label",{active:P})}>${$.text}</p>`}
564
- ${a.closeAble?s.html`<button type="button"
565
- ${Y.ref(n)}
563
+ ${e.slots.has(`${S.id}-tab`)?e.slot(`${S.id}-tab`,{text:S.text,active:L}):n.html`<p class=${A("tab-label",{active:L})}>${S.text}</p>`}
564
+ ${c.closeAble?n.html`<button type="button"
565
+ ${Y.ref(s)}
566
566
  class="tab-close-btn"
567
- aria-label=${e.locale.Tab.closeTab.replace("{label}",$.text??"")}
568
- @click=${g=>{g.stopPropagation(),b($.id)}}
567
+ aria-label=${e.locale.Tab.closeTab.replace("{label}",S.text??"")}
568
+ @click=${f=>{f.stopPropagation(),b(S.id)}}
569
569
  >
570
- ${L?Ml():Cs()}
571
- </button>`:s.nothing}
570
+ ${M?vi():Fn()}
571
+ </button>`:n.nothing}
572
572
  </div>
573
573
  `})}
574
574
  </div>
575
575
  <div class="moz-tab-body">
576
- ${m.map($=>s.html`
576
+ ${m.map(S=>n.html`
577
577
  <div
578
- class=${V("tab-panel",{active:u===$.id})}
579
- id=${c($.id)}
578
+ class=${A("tab-panel",{active:u===S.id})}
579
+ id=${i(S.id)}
580
580
  role="tabpanel"
581
- aria-labelledby=${l($.id)}
582
- tabindex=${u===$.id?"0":"-1"}
583
- ?hidden=${u!==$.id}
581
+ aria-labelledby=${l(S.id)}
582
+ tabindex=${u===S.id?"0":"-1"}
583
+ ?hidden=${u!==S.id}
584
584
  >
585
- ${e.slot($.id,{active:u===$.id})}
585
+ ${e.slot(S.id,{active:u===S.id})}
586
586
  </div>
587
587
  `)}
588
588
  </div>
589
589
  </div>
590
- `}}}}),zl={name:"MozTab",core:bs,booleanProps:["closeAble","vertical"],props:["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue"],emits:["change","close","update:modelValue"],slots:[],expose:!1},Io={top:"bottom",bottom:"top",left:"right",right:"left"};function Vo(e,t,o,n,l,c){const r=(e==="top"||e==="bottom"?o.height:o.width)+l+c;return{top:t.top,bottom:n.height-(t.top+t.height),left:t.left,right:n.width-(t.left+t.width)}[e]>=r}function Dt(e,t,o,n){return e==="start"?t:e==="end"?t+o-n:t+o/2-n/2}function jt(e,t,o){return o<t?t:Math.min(Math.max(e,t),o)}function ys(e,t,o,n){const{align:l,sideOffset:c,collisionPadding:r}=n,h=n.arrowSize??0;let d=n.side;!Vo(d,e,t,o,c,r)&&Vo(Io[d],e,t,o,c,r)&&(d=Io[d]);const b=d==="top"||d==="bottom";let a,m;d==="top"?(m=e.top-t.height-c,a=Dt(l,e.left,e.width,t.width)):d==="bottom"?(m=e.top+e.height+c,a=Dt(l,e.left,e.width,t.width)):d==="left"?(a=e.left-t.width-c,m=Dt(l,e.top,e.height,t.height)):(a=e.left+e.width+c,m=Dt(l,e.top,e.height,t.height)),b?a=jt(a,r,o.width-t.width-r):m=jt(m,r,o.height-t.height-r);const u=b?e.left+e.width/2:e.top+e.height/2,E=b?a:m,x=b?t.width:t.height,$=jt(u-E,h*2,x-h*2),P={top:e.top-c-r,bottom:o.height-(e.top+e.height)-c-r,left:o.height-r*2,right:o.height-r*2},L=Math.max(0,P[d]);return{side:d,x:a,y:m,arrowOffset:$,availableHeight:L}}const $s=ys,Tl=new Set(["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","appearance","sideAnchor","tooltipId","class","style"]),Al=5;function Rl(e){const{top:t,left:o,right:n,bottom:l,width:c,height:r}=e;return![t,o,n,l,c,r].every(Number.isFinite)||c<0||r<0?!1:c>0||r>0}function Dl(e,t,o){if(!t||!t.isConnected)return e;const n=t.getBoundingClientRect();return Rl(n)?o==="left"||o==="right"?{top:e.top,height:e.height,left:n.left,width:n.right-n.left}:{top:n.top,height:n.bottom-n.top,left:e.left,width:e.width}:e}const Il=typeof requestAnimationFrame=="function"?e=>{requestAnimationFrame(e)}:e=>{setTimeout(e,0)},So=$e({name:"moz-tooltip",defaults:{open:!1,side:"top",align:"center",sideOffset:8,collisionPadding:8,arrow:!0,appearance:"default"},setup(e){const t=Y.createRef();let o=null,n=null,l=!1;const c=()=>!!e.props.open&&!!e.props.anchor,r=()=>{const m=e.props.anchor,u=t.value;if(!m||!u||!e.props.open)return;const E=e.props.side??"top",x=$s(Dl(m.getBoundingClientRect(),e.props.sideAnchor,E),{width:u.offsetWidth,height:u.offsetHeight},{width:window.innerWidth,height:window.innerHeight},{side:E,align:e.props.align??"center",sideOffset:e.props.sideOffset??8,collisionPadding:e.props.collisionPadding??8,arrowSize:Al});o!==null&&l&&o.side===x.side&&o.x===x.x&&o.y===x.y&&o.arrowOffset===x.arrowOffset||(o=x,l=!0,e.requestUpdate(),n!==x.side&&(n=x.side,e.emit("placed",x.side)))},h=()=>{c()&&r()};typeof window<"u"&&(window.addEventListener("scroll",h,{capture:!0,passive:!0}),window.addEventListener("resize",h,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h)}));let d=null,b=null;const a=()=>{const m=c()?e.props.sideAnchor??null:null;m!==b&&(b&&(d==null||d.unobserve(b)),b=null,!(!m||typeof ResizeObserver>"u")&&(d??(d=new ResizeObserver(()=>{c()&&r()})),d.observe(m),b=m))};return e.onCleanup(()=>{d==null||d.disconnect(),d=null,b=null}),{render(){return s.nothing},renderPortal(){const m=e.props;if(a(),!c())return o=null,n=null,l=!1,s.nothing;Il(r);const u=(o==null?void 0:o.side)??m.side??"top",E=ye(m,Tl),x=u==="top"||u==="bottom"?"left":"top";return s.html`
590
+ `}}}}),yi={name:"MozTab",core:Nn,booleanProps:["closeAble","vertical"],props:["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue"],emits:["change","close","update:modelValue"],slots:[],expose:!1},Jo={top:"bottom",bottom:"top",left:"right",right:"left"};function en(e,t,o,s,l,i){const r=(e==="top"||e==="bottom"?o.height:o.width)+l+i;return{top:t.top,bottom:s.height-(t.top+t.height),left:t.left,right:s.width-(t.left+t.width)}[e]>=r}function _t(e,t,o,s){return e==="start"?t:e==="end"?t+o-s:t+o/2-s/2}function lo(e,t,o){return o<t?t:Math.min(Math.max(e,t),o)}function Hn(e,t,o,s){const{align:l,sideOffset:i,collisionPadding:r}=s,p=s.arrowSize??0;let d=s.side;!en(d,e,t,o,i,r)&&en(Jo[d],e,t,o,i,r)&&(d=Jo[d]);const b=d==="top"||d==="bottom";let c,m;d==="top"?(m=e.top-t.height-i,c=_t(l,e.left,e.width,t.width)):d==="bottom"?(m=e.top+e.height+i,c=_t(l,e.left,e.width,t.width)):d==="left"?(c=e.left-t.width-i,m=_t(l,e.top,e.height,t.height)):(c=e.left+e.width+i,m=_t(l,e.top,e.height,t.height)),b?c=lo(c,r,o.width-t.width-r):m=lo(m,r,o.height-t.height-r);const u=b?e.left+e.width/2:e.top+e.height/2,k=b?c:m,x=b?t.width:t.height,S=lo(u-k,p*2,x-p*2),L={top:e.top-i-r,bottom:o.height-(e.top+e.height)-i-r,left:o.height-r*2,right:o.height-r*2},M=Math.max(0,L[d]);return{side:d,x:c,y:m,arrowOffset:S,availableHeight:M}}const Un=Hn,bi=new Set(["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","appearance","sideAnchor","tooltipId","class","style"]),Ci=5;function $i(e){const{top:t,left:o,right:s,bottom:l,width:i,height:r}=e;return![t,o,s,l,i,r].every(Number.isFinite)||i<0||r<0?!1:i>0||r>0}function Si(e,t,o){if(!t||!t.isConnected)return e;const s=t.getBoundingClientRect();return $i(s)?o==="left"||o==="right"?{top:e.top,height:e.height,left:s.left,width:s.right-s.left}:{top:s.top,height:s.bottom-s.top,left:e.left,width:e.width}:e}const ki=typeof requestAnimationFrame=="function"?e=>{requestAnimationFrame(e)}:e=>{setTimeout(e,0)},no=ye({name:"moz-tooltip",defaults:{open:!1,side:"top",align:"center",sideOffset:8,collisionPadding:8,arrow:!0,appearance:"default"},setup(e){const t=Y.createRef();let o=null,s=null,l=!1;const i=()=>!!e.props.open&&!!e.props.anchor,r=()=>{const m=e.props.anchor,u=t.value;if(!m||!u||!e.props.open)return;const k=e.props.side??"top",x=Un(Si(m.getBoundingClientRect(),e.props.sideAnchor,k),{width:u.offsetWidth,height:u.offsetHeight},{width:window.innerWidth,height:window.innerHeight},{side:k,align:e.props.align??"center",sideOffset:e.props.sideOffset??8,collisionPadding:e.props.collisionPadding??8,arrowSize:Ci});o!==null&&l&&o.side===x.side&&o.x===x.x&&o.y===x.y&&o.arrowOffset===x.arrowOffset||(o=x,l=!0,e.requestUpdate(),s!==x.side&&(s=x.side,e.emit("placed",x.side)))},p=()=>{i()&&r()};typeof window<"u"&&(window.addEventListener("scroll",p,{capture:!0,passive:!0}),window.addEventListener("resize",p,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",p,!0),window.removeEventListener("resize",p)}));let d=null,b=null;const c=()=>{const m=i()?e.props.sideAnchor??null:null;m!==b&&(b&&(d==null||d.unobserve(b)),b=null,!(!m||typeof ResizeObserver>"u")&&(d??(d=new ResizeObserver(()=>{i()&&r()})),d.observe(m),b=m))};return e.onCleanup(()=>{d==null||d.disconnect(),d=null,b=null}),{render(){return n.nothing},renderPortal(){const m=e.props;if(c(),!i())return o=null,s=null,l=!1,n.nothing;ki(r);const u=(o==null?void 0:o.side)??m.side??"top",k=ge(m,bi),x=u==="top"||u==="bottom"?"left":"top";return n.html`
591
591
  <div
592
592
  ${Y.ref(t)}
593
- class=${V("moz-tooltip",m.class)}
593
+ class=${A("moz-tooltip",m.class)}
594
594
  role="tooltip"
595
- id=${m.tooltipId??s.nothing}
595
+ id=${m.tooltipId??n.nothing}
596
596
  data-side=${u}
597
597
  data-align=${m.align??"center"}
598
- data-appearance=${m.appearance==="rail"?"rail":s.nothing}
599
- style=${te.styleMap({...Ce(m.style),position:"fixed",left:`${(o==null?void 0:o.x)??0}px`,top:`${(o==null?void 0:o.y)??0}px`,opacity:l?"1":"0"})}
600
- ${fe(E)}
598
+ data-appearance=${m.appearance==="rail"?"rail":n.nothing}
599
+ style=${j.styleMap({...he(m.style),position:"fixed",left:`${(o==null?void 0:o.x)??0}px`,top:`${(o==null?void 0:o.y)??0}px`,opacity:l?"1":"0"})}
600
+ ${ce(k)}
601
601
  >
602
- ${m.arrow?s.html`<span
602
+ ${m.arrow?n.html`<span
603
603
  class="moz-tooltip-arrow"
604
604
  data-side=${u}
605
- style=${te.styleMap({[x]:`${(o==null?void 0:o.arrowOffset)??0}px`})}
606
- ></span>`:s.nothing}
605
+ style=${j.styleMap({[x]:`${(o==null?void 0:o.arrowOffset)??0}px`})}
606
+ ></span>`:n.nothing}
607
607
  <div class="moz-tooltip-content">
608
- ${e.slots.has("content")?e.slot("content"):m.text??s.nothing}
608
+ ${e.slots.has("content")?e.slot("content"):m.text??n.nothing}
609
609
  </div>
610
610
  </div>
611
- `},api:{reposition:()=>r()}}}}),Vl=new Set(["id","width","label","min","max","step","disabled","modelValue","class","style"]),Ss=$e({name:"moz-slider",defaults:{id:"moz-slider-id",width:150,min:0,max:100,step:1,disabled:!1,modelValue:0},setup(e){let t=!1,o=null,n=null,l=null;const c=()=>{l==null||l.destroy(),l=null},r=()=>{c(),window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",b)},h=()=>{if(e.props.disabled){r();return}l==null||l.update({text:String(e.props.modelValue??0)},{sync:!0}),l==null||l.api.reposition()},d=$=>{const P=e.props;if(!o)return;const L=o.getBoundingClientRect(),i=($.clientX-L.left)/o.offsetWidth;let p=Math.round(P.min+(P.max-P.min)*i);p<P.min?p=P.min:p>P.max&&(p=P.max);const y=Math.round(p/P.step)*P.step;e.emit("update:modelValue",y),e.emit("change")},b=()=>{r(),n==null||n.focus()},a=$=>{e.props.disabled||($.preventDefault(),n=$.currentTarget,o=n.querySelector(".moz-slider"),c(),l=So(document.createElement("div"),{open:!0,anchor:n.querySelector(".moz-slider-handle"),text:String(e.props.modelValue??0),side:"top"},()=>{}),$.target instanceof Element&&$.target.closest(".moz-slider-handle")||d($),window.addEventListener("mousemove",d),window.addEventListener("mouseup",b))},m=$=>{const P=e.props;let L=P.modelValue??0;$==="-"?L-=P.step:L+=P.step,L>P.max?L=P.max:L<P.min&&(L=P.min),e.emit("update:modelValue",L),e.emit("change")},u=$=>{$.key==="ArrowLeft"||$.keyCode===37?m("-"):($.key==="ArrowRight"||$.keyCode===39)&&m("+")},E=()=>{t=!0,e.requestUpdate()},x=()=>{t=!1,e.requestUpdate()};return e.onCleanup(r),{render(){const $=e.props;$.disabled?r():l&&queueMicrotask(h);const P=$.modelValue??0,L=!!$.disabled,g=$.min,i=$.max,p=typeof $.width=="number"?`${De($.width)}rem`:$.width,y=typeof $.width=="number"?$.width:Number.isNaN(parseFloat(String($.width)))?150:parseFloat(String($.width)),I=(P-g)/(i-g)*(y-16),K=I<0?0:I,oe=ye($,Vl);return s.html`
612
- <div class=${V("moz-slider-wrapper",$.class)} style=${te.styleMap(Ce($.style))} ${fe(oe)}>
613
- ${$.label?Xe({for:$.id},$.label):s.nothing}
611
+ `},api:{reposition:()=>r()}}}}),Mi=new Set(["id","width","label","min","max","step","disabled","modelValue","class","style"]),Wn=ye({name:"moz-slider",defaults:{id:"moz-slider-id",width:150,min:0,max:100,step:1,disabled:!1,modelValue:0},setup(e){let t=!1,o=null,s=null,l=null;const i=()=>{l==null||l.destroy(),l=null},r=()=>{i(),window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",b)},p=()=>{if(e.props.disabled){r();return}l==null||l.update({text:String(e.props.modelValue??0)},{sync:!0}),l==null||l.api.reposition()},d=S=>{const L=e.props;if(!o)return;const M=o.getBoundingClientRect(),a=(S.clientX-M.left)/o.offsetWidth;let h=Math.round(L.min+(L.max-L.min)*a);h<L.min?h=L.min:h>L.max&&(h=L.max);const $=Math.round(h/L.step)*L.step;e.emit("update:modelValue",$),e.emit("change")},b=()=>{r(),s==null||s.focus()},c=S=>{e.props.disabled||(S.preventDefault(),s=S.currentTarget,o=s.querySelector(".moz-slider"),i(),l=no(document.createElement("div"),{open:!0,anchor:s.querySelector(".moz-slider-handle"),text:String(e.props.modelValue??0),side:"top"},()=>{}),S.target instanceof Element&&S.target.closest(".moz-slider-handle")||d(S),window.addEventListener("mousemove",d),window.addEventListener("mouseup",b))},m=S=>{const L=e.props;let M=L.modelValue??0;S==="-"?M-=L.step:M+=L.step,M>L.max?M=L.max:M<L.min&&(M=L.min),e.emit("update:modelValue",M),e.emit("change")},u=S=>{S.key==="ArrowLeft"||S.keyCode===37?m("-"):(S.key==="ArrowRight"||S.keyCode===39)&&m("+")},k=()=>{t=!0,e.requestUpdate()},x=()=>{t=!1,e.requestUpdate()};return e.onCleanup(r),{render(){const S=e.props;S.disabled?r():l&&queueMicrotask(p);const L=S.modelValue??0,M=!!S.disabled,f=S.min,a=S.max,h=typeof S.width=="number"?`${Ae(S.width)}rem`:S.width,$=typeof S.width=="number"?S.width:Number.isNaN(parseFloat(String(S.width)))?150:parseFloat(String(S.width)),O=(L-f)/(a-f)*($-16),U=O<0?0:O,Q=ge(S,Mi);return n.html`
612
+ <div class=${A("moz-slider-wrapper",S.class)} style=${j.styleMap(he(S.style))} ${ce(Q)}>
613
+ ${S.label?Je({for:S.id},S.label):n.nothing}
614
614
  <div
615
- class=${V("moz-slider-container",{disabled:L,label:!!$.label})}
615
+ class=${A("moz-slider-container",{disabled:M,label:!!S.label})}
616
616
  role="slider"
617
- aria-valuenow=${String(P??0)}
618
- aria-valuemin=${String($.min??0)}
619
- aria-valuemax=${String($.max??100)}
617
+ aria-valuenow=${String(L??0)}
618
+ aria-valuemin=${String(S.min??0)}
619
+ aria-valuemax=${String(S.max??100)}
620
620
  aria-orientation="horizontal"
621
- aria-disabled=${L?"true":"false"}
622
- aria-label=${Ee.ifDefined($.label)}
623
- tabindex=${L?"-1":"0"}
624
- @mousedown=${a}
625
- @focus=${E}
621
+ aria-disabled=${M?"true":"false"}
622
+ aria-label=${$e.ifDefined(S.label)}
623
+ tabindex=${M?"-1":"0"}
624
+ @mousedown=${c}
625
+ @focus=${k}
626
626
  @blur=${x}
627
627
  @keydown=${u}
628
628
  >
629
- <div class="moz-slider" style="width:${p}">
630
- <div class="moz-slider-track" style="width:${De(K+8)}rem"></div>
629
+ <div class="moz-slider" style="width:${h}">
630
+ <div class="moz-slider-track" style="width:${Ae(U+8)}rem"></div>
631
631
  </div>
632
632
  <div
633
- class=${V("moz-slider-handle",{focused:t&&!L})}
634
- style="left:${De(K)}rem"
633
+ class=${A("moz-slider-handle",{focused:t&&!M})}
634
+ style="left:${Ae(U)}rem"
635
635
  ></div>
636
636
  </div>
637
637
  </div>
638
- `}}}}),Ol={name:"MozSlider",core:Ss,booleanProps:["disabled"],props:["id","width","label","min","max","step","disabled","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1};function ql(e="var(--moz-color-text-subtle)"){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
638
+ `}}}}),Ei={name:"MozSlider",core:Wn,booleanProps:["disabled"],props:["id","width","label","min","max","step","disabled","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1};function xi(e="var(--moz-color-text-subtle)"){return n.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
639
639
  <path d="M3 4.5L6 7.5L9 4.5" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
640
- </svg>`}const ko="var(--moz-color-calendar-nav-icon)";function Bl(e=ko){return s.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
640
+ </svg>`}const Do="var(--moz-color-calendar-nav-icon)";function Li(e=Do){return n.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
641
641
  <path
642
642
  d="M3 8.5L7.05021 4.5L11 8.5"
643
643
  transform="rotate(-90 7 7)"
@@ -646,7 +646,7 @@
646
646
  stroke-linecap="round"
647
647
  stroke-linejoin="round"
648
648
  ></path>
649
- </svg>`}function Fl(e=ko){return s.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
649
+ </svg>`}function zi(e=Do){return n.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
650
650
  <path
651
651
  d="M3 5.5L7.05021 9.5L11 5.5"
652
652
  transform="rotate(-90 7 7)"
@@ -655,7 +655,7 @@
655
655
  stroke-linecap="round"
656
656
  stroke-linejoin="round"
657
657
  ></path>
658
- </svg>`}function Nl(e=ko){return s.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
658
+ </svg>`}function Pi(e=Do){return n.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
659
659
  <path
660
660
  d="M11.5 2.7H2.50001C1.78204 2.7 1.20001 3.28203 1.20001 4V12C1.20001 12.718 1.78204 13.3 2.50001 13.3H11.5C12.218 13.3 12.8 12.718 12.8 12V4C12.8 3.28203 12.218 2.7 11.5 2.7Z"
661
661
  stroke=${e}
@@ -668,80 +668,80 @@
668
668
  fill=${e}
669
669
  ></path>
670
670
  <rect x="3.34009" y="7.41504" width="2.93262" height="2.93262" rx="0.5" fill=${e}></rect>
671
- </svg>`}const _l=new Set(["rowHeight","exceptWeeks","min","max","modelValue","class","style"]),Hl=(e,...t)=>e.filter(o=>!t.includes(o)),yt=12,Ul=2024,Oo=e=>e-((e-Ul)%yt+yt)%yt,Eo=$e({name:"moz-calendar",defaults:{rowHeight:36,exceptWeeks:[],min:null,max:null},setup(e){let t=e.props.modelValue?Me(e.props.modelValue):Me(),o=e.props.modelValue,n=!0,l=!1,c=!1,r=-1,h=Oo(t.year());const d=p=>{const y=e.props;return!!y.min&&p.isBefore(y.min,"day")||!!y.max&&p.isAfter(y.max,"day")},b=p=>{const y=e.props;return!!y.min&&p.endOf("year").isBefore(y.min,"day")||!!y.max&&p.startOf("year").isAfter(y.max,"day")},a=p=>{const y=e.props;return!!y.min&&p.endOf("month").isBefore(y.min,"day")||!!y.max&&p.startOf("month").isAfter(y.max,"day")},m=()=>{l?h-=yt:t=t.subtract(1,"M"),e.requestUpdate()},u=()=>{l?h+=yt:t=t.add(1,"M"),e.requestUpdate()},E=()=>{n=!0,l=!1,c=!1,e.requestUpdate()},x=()=>{h=Oo(t.year()),n=!1,l=!0,c=!1,e.requestUpdate()},$=()=>{n=!1,l=!1,c=!0,e.requestUpdate()},P=p=>{b(p)||(t=t.set("year",p.year()),n=!0,l=!1,c=!1,e.requestUpdate())},L=p=>{a(p)||(t=t.set("month",p.month()),n=!0,l=!1,c=!1,e.requestUpdate())},g=p=>{d(p)||e.emit("update:modelValue",Me(p))},i=()=>g(Me());return{render(){const p=e.props;p.modelValue!==o&&(o=p.modelValue,t=p.modelValue?Me(p.modelValue):Me());const y=p.rowHeight??36,F=["ko","zh","zh-cn"].includes(Me().locale()),I=t.hour(),K=t.minute(),oe=t.second(),re=Z=>Z.set("hour",I||0).set("minute",K||0).set("second",oe||0),j=Hl([0,1,2,3,4,5,6],...p.exceptWeeks??[]),k=[];{const Z=re(t.endOf("M"));let G=re(t.startOf("M")).startOf("w");do k.push(G),G=G.add(7,"d");while(G.diff(Z)<=0)}const R=y*k.length+126;R!==r&&(r=R,queueMicrotask(()=>e.emit("setMaxHeight",R)));const X=(Z,G)=>{const Q=Z.add(G,"d");return t.format("YYYYMMDD")!==Q.format("YYYYMMDD")?t.format("MM")===Q.format("MM")?"":"moz-calendar-column-otherMonth":""},se=p.modelValue?Me(p.modelValue).format("YYYYMMDD"):"",N=(Z,G,Q)=>s.html`<button
671
+ </svg>`}const Ti=new Set(["rowHeight","exceptWeeks","min","max","modelValue","class","style"]),Ai=(e,...t)=>e.filter(o=>!t.includes(o)),Et=12,Ii=2024,tn=e=>e-((e-Ii)%Et+Et)%Et,Vo=ye({name:"moz-calendar",defaults:{rowHeight:36,exceptWeeks:[],min:null,max:null},setup(e){let t=e.props.modelValue?xe(e.props.modelValue):xe(),o=e.props.modelValue,s=!0,l=!1,i=!1,r=-1,p=tn(t.year());const d=h=>{const $=e.props;return!!$.min&&h.isBefore($.min,"day")||!!$.max&&h.isAfter($.max,"day")},b=h=>{const $=e.props;return!!$.min&&h.endOf("year").isBefore($.min,"day")||!!$.max&&h.startOf("year").isAfter($.max,"day")},c=h=>{const $=e.props;return!!$.min&&h.endOf("month").isBefore($.min,"day")||!!$.max&&h.startOf("month").isAfter($.max,"day")},m=()=>{l?p-=Et:t=t.subtract(1,"M"),e.requestUpdate()},u=()=>{l?p+=Et:t=t.add(1,"M"),e.requestUpdate()},k=()=>{s=!0,l=!1,i=!1,e.requestUpdate()},x=()=>{p=tn(t.year()),s=!1,l=!0,i=!1,e.requestUpdate()},S=()=>{s=!1,l=!1,i=!0,e.requestUpdate()},L=h=>{b(h)||(t=t.set("year",h.year()),s=!0,l=!1,i=!1,e.requestUpdate())},M=h=>{c(h)||(t=t.set("month",h.month()),s=!0,l=!1,i=!1,e.requestUpdate())},f=h=>{d(h)||e.emit("update:modelValue",xe(h))},a=()=>f(xe());return{render(){const h=e.props;h.modelValue!==o&&(o=h.modelValue,t=h.modelValue?xe(h.modelValue):xe());const $=h.rowHeight??36,_=["ko","zh","zh-cn"].includes(xe().locale()),O=t.hour(),U=t.minute(),Q=t.second(),re=K=>K.set("hour",O||0).set("minute",U||0).set("second",Q||0),X=Ai([0,1,2,3,4,5,6],...h.exceptWeeks??[]),E=[];{const K=re(t.endOf("M"));let ee=re(t.startOf("M")).startOf("w");do E.push(ee),ee=ee.add(7,"d");while(ee.diff(K)<=0)}const V=$*E.length+126;V!==r&&(r=V,queueMicrotask(()=>e.emit("setMaxHeight",V)));const J=(K,ee)=>{const te=K.add(ee,"d");return t.format("YYYYMMDD")!==te.format("YYYYMMDD")?t.format("MM")===te.format("MM")?"":"moz-calendar-column-otherMonth":""},le=h.modelValue?xe(h.modelValue).format("YYYYMMDD"):"",N=(K,ee,te)=>n.html`<button
672
672
  type="button"
673
- aria-label=${Q}
673
+ aria-label=${te}
674
674
  class="moz-button moz-icon-button"
675
675
  style="width:22px;height:22px;min-width:22px;min-height:22px"
676
- @click=${G}
676
+ @click=${ee}
677
677
  >
678
- ${Z}
679
- </button>`,ne=s.html`
678
+ ${K}
679
+ </button>`,ie=n.html`
680
680
  <div class="moz-calendar-header">
681
681
  <div class="moz-calendar-select">
682
- ${F?s.html`
682
+ ${_?n.html`
683
683
  <div class="moz-calendar-select__text" @click=${x}>
684
- ${new Intl.DateTimeFormat(Me().locale(),{year:"numeric"}).format(t.toDate())}
684
+ ${new Intl.DateTimeFormat(xe().locale(),{year:"numeric"}).format(t.toDate())}
685
685
  </div>
686
- <div class="moz-calendar-select__text" @click=${$}>${t.format("MMMM")}</div>
687
- `:s.html`
688
- <div class="moz-calendar-select__text" @click=${$}>${t.format("MMMM")}</div>
686
+ <div class="moz-calendar-select__text" @click=${S}>${t.format("MMMM")}</div>
687
+ `:n.html`
688
+ <div class="moz-calendar-select__text" @click=${S}>${t.format("MMMM")}</div>
689
689
  <div class="moz-calendar-select__text" @click=${x}>${t.format("YYYY")}</div>
690
690
  `}
691
- <div class="moz-calendar-select-btn" @click=${E}>${ql("currentColor")}</div>
691
+ <div class="moz-calendar-select-btn" @click=${k}>${xi("currentColor")}</div>
692
692
  </div>
693
693
  <div class="moz-calendar-header__spacer"></div>
694
694
  <div class="moz-calendar-select-btn-group">
695
- ${N(Bl(),m,l?"이전 연도":"이전 달")}${N(Nl(),i,"오늘")}${N(Fl(),u,l?"다음 연도":"다음 달")}
695
+ ${N(Li(),m,l?"이전 연도":"이전 달")}${N(Pi(),a,"오늘")}${N(zi(),u,l?"다음 연도":"다음 달")}
696
696
  </div>
697
697
  </div>
698
- `,_=s.html`
698
+ `,F=n.html`
699
699
  <div class="moz-calendar-row">
700
- ${j.map(Z=>s.html`<div
700
+ ${X.map(K=>n.html`<div
701
701
  class="moz-calendar-column moz-calendar-column-day"
702
- style="width: ${100/j.length}%; height: ${De(y)}rem;"
702
+ style="width: ${100/X.length}%; height: ${Ae($)}rem;"
703
703
  >
704
- ${Me().day(Z).format("ddd")}
704
+ ${xe().day(K).format("ddd")}
705
705
  </div>`)}
706
706
  </div>
707
- ${k.map(Z=>s.html`<div class="moz-calendar-row">
708
- ${j.map(G=>{const Q=Z.add(G,"d");return s.html`<div
709
- class=${V("moz-calendar-column",X(Z,G),se===Q.format("YYYYMMDD")?"moz-calendar-selected":"",d(Q)?"date-disable":"moz-calendar-column--hoverable")}
710
- style="width: ${100/j.length}%; height: ${De(y)}rem"
711
- @click=${()=>g(Q)}
707
+ ${E.map(K=>n.html`<div class="moz-calendar-row">
708
+ ${X.map(ee=>{const te=K.add(ee,"d");return n.html`<div
709
+ class=${A("moz-calendar-column",J(K,ee),le===te.format("YYYYMMDD")?"moz-calendar-selected":"",d(te)?"date-disable":"moz-calendar-column--hoverable")}
710
+ style="width: ${100/X.length}%; height: ${Ae($)}rem"
711
+ @click=${()=>f(te)}
712
712
  >
713
- ${Q.format("DD")}
713
+ ${te.format("DD")}
714
714
  </div>`})}
715
715
  </div>`)}
716
- `;let J=s.nothing;if(l){const Z=Array.from({length:yt},(G,Q)=>Me().year(h+Q).startOf("y"));J=s.html`<div class="moz-calendar-row moz-calendar-row--wrap moz-calendar-row--years">
717
- ${Z.map(G=>s.html`<div
718
- class=${V("moz-calendar-column",t.format("YYYY")===G.format("YYYY")?"moz-calendar-selected":"",b(G)?"date-disable":"moz-calendar-column--hoverable")}
719
- style="width: ${100/3}%; height: ${De(y)}rem"
720
- @click=${()=>P(G)}
716
+ `;let oe=n.nothing;if(l){const K=Array.from({length:Et},(ee,te)=>xe().year(p+te).startOf("y"));oe=n.html`<div class="moz-calendar-row moz-calendar-row--wrap moz-calendar-row--years">
717
+ ${K.map(ee=>n.html`<div
718
+ class=${A("moz-calendar-column",t.format("YYYY")===ee.format("YYYY")?"moz-calendar-selected":"",b(ee)?"date-disable":"moz-calendar-column--hoverable")}
719
+ style="width: ${100/3}%; height: ${Ae($)}rem"
720
+ @click=${()=>L(ee)}
721
721
  >
722
- ${G.format("YYYY")}
722
+ ${ee.format("YYYY")}
723
723
  </div>`)}
724
- </div>`}let z=s.nothing;if(c){const Z=[],G=t.endOf("y");let Q=t.startOf("y");do Z.push(Q),Q=Q.add(1,"M");while(Q.diff(G)<=0);z=s.html`<div class="moz-calendar-row moz-calendar-row--wrap">
725
- ${Z.map(T=>s.html`<div
726
- class=${V("moz-calendar-column",t.format("YYYYMM")===T.format("YYYYMM")?"moz-calendar-selected":"",a(T)?"date-disable":"moz-calendar-column--hoverable")}
727
- style="width: ${100/3}%; height: ${De(y)}rem"
728
- @click=${()=>L(T)}
724
+ </div>`}let T=n.nothing;if(i){const K=[],ee=t.endOf("y");let te=t.startOf("y");do K.push(te),te=te.add(1,"M");while(te.diff(ee)<=0);T=n.html`<div class="moz-calendar-row moz-calendar-row--wrap">
725
+ ${K.map(P=>n.html`<div
726
+ class=${A("moz-calendar-column",t.format("YYYYMM")===P.format("YYYYMM")?"moz-calendar-selected":"",c(P)?"date-disable":"moz-calendar-column--hoverable")}
727
+ style="width: ${100/3}%; height: ${Ae($)}rem"
728
+ @click=${()=>M(P)}
729
729
  >
730
- ${T.format("MMM")}
730
+ ${P.format("MMM")}
731
731
  </div>`)}
732
- </div>`}const W=ye(p,_l);return s.html`
732
+ </div>`}const W=ge(h,Ti);return n.html`
733
733
  <div
734
- class=${V("moz-calendar-container",c&&"moz-calendar-container--months",l&&"moz-calendar-container--years",p.class)}
735
- style=${te.styleMap(Ce(p.style))}
736
- ${fe(W)}
734
+ class=${A("moz-calendar-container",i&&"moz-calendar-container--months",l&&"moz-calendar-container--years",h.class)}
735
+ style=${j.styleMap(he(h.style))}
736
+ ${ce(W)}
737
737
  >
738
- ${ne}${n?_:s.nothing}${J}${z}
738
+ ${ie}${s?F:n.nothing}${oe}${T}
739
739
  </div>
740
- `}}}}),Wl={name:"MozCalendar",core:Eo,props:["rowHeight","exceptWeeks","min","max","modelValue"],emits:["changed","setMaxHeight","update:modelValue"],slots:[],expose:!1};function Kl(e="var(--moz-color-on-accent)",t="14",o=!1){return s.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
740
+ `}}}}),Ri={name:"MozCalendar",core:Vo,props:["rowHeight","exceptWeeks","min","max","modelValue"],emits:["changed","setMaxHeight","update:modelValue"],slots:[],expose:!1};function Di(e="var(--moz-color-on-accent)",t="14",o=!1){return n.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
741
741
  <path d="M8.5 3.5L5.5 7L8.5 10.5" stroke=${o?"var(--moz-color-text-muted)":e} stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"></path>
742
- </svg>`}function Zl(e="var(--moz-color-on-accent)",t="14",o=!1){return s.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
742
+ </svg>`}function Vi(e="var(--moz-color-on-accent)",t="14",o=!1){return n.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
743
743
  <path d="M5.5 3.5L8.5 7L5.5 10.5" stroke=${o?"var(--moz-color-text-muted)":e} stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"></path>
744
- </svg>`}function Gl(e="var(--moz-color-text-subtle)",t=""){return s.html`<svg class=${t} width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
744
+ </svg>`}function Oi(e="var(--moz-color-text-subtle)",t=""){return n.html`<svg class=${t} width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
745
745
  <path
746
746
  d="M2.84618 2.94885H11.1539C11.8166 2.94885 12.3539 3.48201 12.3539 4.13969V11.4679C12.3539 12.1256 11.8166 12.6588 11.1539 12.6588H2.84618C2.18344 12.6588 1.64618 12.1256 1.64618 11.4679V4.13969C1.64618 3.48201 2.18344 2.94885 2.84618 2.94885Z"
747
747
  stroke=${e}
@@ -753,54 +753,54 @@
753
753
  d="M2.84615 2.30764H11.1538C11.6435 2.30764 12.1131 2.50066 12.4593 2.84424C12.8055 3.18781 13 3.65381 13 4.1397V5.97176H1V4.1397C1 3.65381 1.1945 3.18781 1.54073 2.84424C1.88695 2.50066 2.35652 2.30764 2.84615 2.30764Z"
754
754
  fill=${e}
755
755
  ></path>
756
- </svg>`}const Yl="YYYY-MM-DD",jl=new Set(["label","name","width","required","disabled","readonly","format","showSpin","min","max","modelValue","class","style"]),ks=$e({name:"moz-date-input",defaults:{label:"",width:200,required:!1,disabled:!1,readonly:!1,showSpin:!1,min:null,max:null},setup(e){let t=!1,o=270,n=e.props.modelValue,l=null,c=null;const r=new Nt,h=ot("moz-date-input-"),d=g=>{const i=e.props.modelValue;let p;g&&i instanceof Date?p=Me(g).toDate():g&&Me.isDayjs(i)||!i&&g?p=Me(g):p=void 0,e.emit("update:modelValue",p)},b=((g,...i)=>{g==="update:modelValue"?d(i[0]):g==="setMaxHeight"&&(o=i[0],a.calcPosition())}),a=new Kt({anchor:()=>l==null?void 0:l.querySelector(".moz-date-input-wrapper"),panel:()=>r.element,maxHeight:()=>o,ignoreScrollTargets:g=>(g&&typeof g.className=="string"?g.className:"").split(" ").includes("moz-calendar-row"),container:()=>l,requestClose:()=>{t&&(t=!1,E(),e.requestUpdate())}}),m=g=>{var i;g.key!=="Escape"||!t||(g.preventDefault(),g.stopPropagation(),t=!1,E(),(i=l==null?void 0:l.querySelector("input"))==null||i.focus(),e.requestUpdate())},u=()=>{const g=r.open("calendar-container moz-date-input-calendar");g.addEventListener("keydown",m),c=Eo(g,{modelValue:e.props.modelValue,min:e.props.min,max:e.props.max},b),a.open()},E=()=>{var g;(g=r.element)==null||g.removeEventListener("keydown",m),a.close(),c==null||c.destroy(),c=null,r.close(),e.emit("close")},x=()=>{var i;const g=e.props;g.disabled||g.readonly||(t=!t,t?((i=l==null?void 0:l.querySelector("input"))==null||i.focus(),u()):E(),e.requestUpdate())},$=()=>{e.props.disabled||e.props.readonly||e.props.modelValue&&d(Me(e.props.modelValue).subtract(1,"d"))},P=()=>{e.props.disabled||e.props.readonly||e.props.modelValue&&d(Me(e.props.modelValue).add(1,"d"))},L=g=>{const i=g.target,p=e.props.modelValue;p?Me.isDayjs(p)&&Me(i.value).isValid()?d(Me(i.value)):p instanceof Date&&!Number.isNaN(Date.parse(i.value))?d(new Date(i.value)):d(void 0):d(Me(i.value))};return e.onCleanup(()=>{var g;a.destroy(),t=!1,(g=r.element)==null||g.removeEventListener("keydown",m),c==null||c.destroy(),r.close()}),{onMounted:g=>{l=g},render(){const g=e.props;if(g.modelValue!==n){n=g.modelValue;const j=g.modelValue;queueMicrotask(()=>e.emit("change",j)),c&&c.update({modelValue:g.modelValue})}const i=g.format||Yl,p=typeof g.width=="number"?`${De(g.width)}rem`:g.width,y=g.modelValue?Me(g.modelValue).format(i):"",F=!!g.min&&Me(y).isSameOrBefore(Me(g.min),"day"),I=!!g.max&&Me(y).isSameOrAfter(Me(g.max),"day"),K=ye(g,jl),oe=g.id==null||g.id===""?h:String(g.id),re=(j,k,R,X)=>s.html`<button
756
+ </svg>`}const _i="YYYY-MM-DD",Bi=new Set(["label","name","width","required","disabled","readonly","format","showSpin","min","max","modelValue","class","style"]),Kn=ye({name:"moz-date-input",defaults:{label:"",width:200,required:!1,disabled:!1,readonly:!1,showSpin:!1,min:null,max:null},setup(e){let t=!1,o=270,s=e.props.modelValue,l=null,i=null;const r=new Yt,p=Qe("moz-date-input-"),d=f=>{const a=e.props.modelValue;let h;f&&a instanceof Date?h=xe(f).toDate():f&&xe.isDayjs(a)||!a&&f?h=xe(f):h=void 0,e.emit("update:modelValue",h)},b=((f,...a)=>{f==="update:modelValue"?d(a[0]):f==="setMaxHeight"&&(o=a[0],c.calcPosition())}),c=new to({anchor:()=>l==null?void 0:l.querySelector(".moz-date-input-wrapper"),panel:()=>r.element,maxHeight:()=>o,ignoreScrollTargets:f=>(f&&typeof f.className=="string"?f.className:"").split(" ").includes("moz-calendar-row"),container:()=>l,requestClose:()=>{t&&(t=!1,k(),e.requestUpdate())}}),m=f=>{var a;f.key!=="Escape"||!t||(f.preventDefault(),f.stopPropagation(),t=!1,k(),(a=l==null?void 0:l.querySelector("input"))==null||a.focus(),e.requestUpdate())},u=()=>{const f=r.open("calendar-container moz-date-input-calendar");f.addEventListener("keydown",m),i=Vo(f,{modelValue:e.props.modelValue,min:e.props.min,max:e.props.max},b),c.open()},k=()=>{var f;(f=r.element)==null||f.removeEventListener("keydown",m),c.close(),i==null||i.destroy(),i=null,r.close(),e.emit("close")},x=()=>{var a;const f=e.props;f.disabled||f.readonly||(t=!t,t?((a=l==null?void 0:l.querySelector("input"))==null||a.focus(),u()):k(),e.requestUpdate())},S=()=>{e.props.disabled||e.props.readonly||e.props.modelValue&&d(xe(e.props.modelValue).subtract(1,"d"))},L=()=>{e.props.disabled||e.props.readonly||e.props.modelValue&&d(xe(e.props.modelValue).add(1,"d"))},M=f=>{const a=f.target,h=e.props.modelValue;h?xe.isDayjs(h)&&xe(a.value).isValid()?d(xe(a.value)):h instanceof Date&&!Number.isNaN(Date.parse(a.value))?d(new Date(a.value)):d(void 0):d(xe(a.value))};return e.onCleanup(()=>{var f;c.destroy(),t=!1,(f=r.element)==null||f.removeEventListener("keydown",m),i==null||i.destroy(),r.close()}),{onMounted:f=>{l=f},render(){const f=e.props;if(f.modelValue!==s){s=f.modelValue;const X=f.modelValue;queueMicrotask(()=>e.emit("change",X)),i&&i.update({modelValue:f.modelValue})}const a=f.format||_i,h=typeof f.width=="number"?`${Ae(f.width)}rem`:f.width,$=f.modelValue?xe(f.modelValue).format(a):"",_=!!f.min&&xe($).isSameOrBefore(xe(f.min),"day"),O=!!f.max&&xe($).isSameOrAfter(xe(f.max),"day"),U=ge(f,Bi),Q=f.id==null||f.id===""?p:String(f.id),re=(X,E,V,J)=>n.html`<button
757
757
  type="button"
758
- aria-label=${k==="left"?e.locale.DateInput.prevDate:e.locale.DateInput.nextDate}
759
- class=${V("moz-button","moz-icon-button","moz-icon-accent-button","moz-icon-text-button","date-move-btn",`date-move-btn--${k}`,{"date-move-btn--disabled":R})}
760
- ?disabled=${R}
761
- @click=${X}
758
+ aria-label=${E==="left"?e.locale.DateInput.prevDate:e.locale.DateInput.nextDate}
759
+ class=${A("moz-button","moz-icon-button","moz-icon-accent-button","moz-icon-text-button","date-move-btn",`date-move-btn--${E}`,{"date-move-btn--disabled":V})}
760
+ ?disabled=${V}
761
+ @click=${J}
762
762
  >
763
- ${j}
764
- </button>`;return s.html`
763
+ ${X}
764
+ </button>`;return n.html`
765
765
  <div
766
- class=${V("moz-date-input-container",{disabled:g.disabled},g.class)}
767
- style=${te.styleMap({...Ce(g.style),width:p})}
766
+ class=${A("moz-date-input-container",{disabled:f.disabled},f.class)}
767
+ style=${j.styleMap({...he(f.style),width:h})}
768
768
  >
769
- ${g.label?Xe({for:oe,disabled:g.disabled},s.html`${g.label}${g.required?s.html`<span class="require-mark">*</span>`:s.nothing}`):s.nothing}
770
- <div class="moz-date-input-wrapper" style="width:${p}">
771
- ${g.showSpin?re(Kl("var(--moz-color-on-accent)","14",g.disabled||F),"left",!!g.disabled||!!g.readonly||F,$):s.nothing}
769
+ ${f.label?Je({for:Q,disabled:f.disabled},n.html`${f.label}${f.required?n.html`<span class="require-mark">*</span>`:n.nothing}`):n.nothing}
770
+ <div class="moz-date-input-wrapper" style="width:${h}">
771
+ ${f.showSpin?re(Di("var(--moz-color-on-accent)","14",f.disabled||_),"left",!!f.disabled||!!f.readonly||_,S):n.nothing}
772
772
  <div
773
- class=${V("moz-date-input",{"moz-date-input--no-lr-border":g.showSpin,"moz-date-input--radius":!g.showSpin,"moz-date-input--disabled":g.disabled,"moz-date-input--open":t&&!g.disabled})}
773
+ class=${A("moz-date-input",{"moz-date-input--no-lr-border":f.showSpin,"moz-date-input--radius":!f.showSpin,"moz-date-input--disabled":f.disabled,"moz-date-input--open":t&&!f.disabled})}
774
774
  @click=${x}
775
775
  @keydown=${m}
776
776
  >
777
777
  <input
778
- id=${oe}
779
- .value=${y}
780
- name=${Ee.ifDefined(g.name)}
781
- ?disabled=${!!g.disabled}
782
- ?readonly=${!!g.readonly}
783
- class=${V("moz-date-input__field",{"moz-date-input__field--disabled":g.disabled})}
784
- ${fe(K)}
785
- @change=${L}
778
+ id=${Q}
779
+ .value=${$}
780
+ name=${$e.ifDefined(f.name)}
781
+ ?disabled=${!!f.disabled}
782
+ ?readonly=${!!f.readonly}
783
+ class=${A("moz-date-input__field",{"moz-date-input__field--disabled":f.disabled})}
784
+ ${ce(U)}
785
+ @change=${M}
786
786
  />
787
- ${g.readonly?s.nothing:s.html`<div class="moz-date-input__icon-container">
788
- ${Gl("currentColor",V("moz-date-input__icon",{"moz-date-input__icon--disabled":g.disabled}))}
787
+ ${f.readonly?n.nothing:n.html`<div class="moz-date-input__icon-container">
788
+ ${Oi("currentColor",A("moz-date-input__icon",{"moz-date-input__icon--disabled":f.disabled}))}
789
789
  </div>`}
790
790
  </div>
791
- ${g.showSpin?re(Zl("var(--moz-color-on-accent)","14",g.disabled||I),"right",!!g.disabled||!!g.readonly||I,P):s.nothing}
791
+ ${f.showSpin?re(Vi("var(--moz-color-on-accent)","14",f.disabled||O),"right",!!f.disabled||!!f.readonly||O,L):n.nothing}
792
792
  </div>
793
793
  </div>
794
- `}}}}),Xl={name:"MozDateInput",core:ks,booleanProps:["disabled","readonly","required","showSpin"],props:["label","name","width","required","disabled","readonly","format","showSpin","min","max","modelValue"],emits:["change","focus","focusOut","close","update:modelValue"],slots:[],expose:!1};function xt(e){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:12,height:12}}function Ql(e="10",t="var(--moz-color-text-muted)",o=!1,n=!1,l=""){const c=xt(e),r=l||s.nothing;return c.width<=10?s.html`<svg class=${r} width=${c.width} height=${c.height} viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
794
+ `}}}}),qi={name:"MozDateInput",core:Kn,booleanProps:["disabled","readonly","required","showSpin"],props:["label","name","width","required","disabled","readonly","format","showSpin","min","max","modelValue"],emits:["change","focus","focusOut","close","update:modelValue"],slots:[],expose:!1};function Dt(e){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:12,height:12}}function Fi(e="10",t="var(--moz-color-text-muted)",o=!1,s=!1,l=""){const i=Dt(e),r=l||n.nothing;return i.width<=10?n.html`<svg class=${r} width=${i.width} height=${i.height} viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
795
795
  <path d="M8.5 1.5L1.49999 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
796
796
  <path d="M1.5 1.5L8.50001 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
797
- </svg>`:c.width<=13&&c.width>=11&&!n?s.html`<svg class=${r} width=${c.width} height=${c.height} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
797
+ </svg>`:i.width<=13&&i.width>=11&&!s?n.html`<svg class=${r} width=${i.width} height=${i.height} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
798
798
  <path d="M1.71436 1.71428L10.8069 10.7926" stroke=${t} stroke-width="2" stroke-linecap="round"></path>
799
799
  <path d="M10.8069 1.71428L1.71436 10.7926" stroke=${t} stroke-width="2" stroke-linecap="round"></path>
800
- </svg>`:c.width<=13&&c.width>=11&&n?s.html`<svg class=${r} width=${c.width} height=${c.height} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
800
+ </svg>`:i.width<=13&&i.width>=11&&s?n.html`<svg class=${r} width=${i.width} height=${i.height} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
801
801
  <path d="M10.2 1.7998L1.79994 10.1998" stroke=${t} stroke-width="1.6" stroke-linecap="round"></path>
802
802
  <path d="M1.79993 1.7998L10.1999 10.1998" stroke=${t} stroke-width="1.6" stroke-linecap="round"></path>
803
- </svg>`:s.html`<svg class=${r} width=${c.width} height=${c.height} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
803
+ </svg>`:n.html`<svg class=${r} width=${i.width} height=${i.height} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
804
804
  <g>
805
805
  <g>
806
806
  <path
@@ -817,7 +817,7 @@
817
817
  ></path>
818
818
  </g>
819
819
  </g>
820
- </svg>`}function Jl(e="30",t="var(--moz-color-danger)",o=""){const n=xt(e);return s.html`<svg class=${o||s.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
820
+ </svg>`}function Ni(e="30",t="var(--moz-color-danger)",o=""){const s=Dt(e);return n.html`<svg class=${o||n.nothing} width=${s.width} height=${s.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
821
821
  <mask id="mask0_6027_4458" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
822
822
  <g><path d="M30 0H0V30H30V0Z" fill="#FFF"></path></g>
823
823
  </mask>
@@ -829,7 +829,7 @@
829
829
  ></path>
830
830
  </g>
831
831
  </g>
832
- </svg>`}function qo(e="30",t="var(--moz-color-accent)",o=""){const n=xt(e);return s.html`<svg class=${o||s.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
832
+ </svg>`}function on(e="30",t="var(--moz-color-accent)",o=""){const s=Dt(e);return n.html`<svg class=${o||n.nothing} width=${s.width} height=${s.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
833
833
  <g>
834
834
  <path
835
835
  fill-rule="evenodd"
@@ -838,7 +838,7 @@
838
838
  fill=${t}
839
839
  ></path>
840
840
  </g>
841
- </svg>`}function ei(e="30",t="var(--moz-color-success)",o=""){const n=xt(e);return s.html`<svg class=${o||s.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
841
+ </svg>`}function Hi(e="30",t="var(--moz-color-success)",o=""){const s=Dt(e);return n.html`<svg class=${o||n.nothing} width=${s.width} height=${s.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
842
842
  <g>
843
843
  <path
844
844
  fill-rule="evenodd"
@@ -847,7 +847,7 @@
847
847
  fill=${t}
848
848
  ></path>
849
849
  </g>
850
- </svg>`}function ti(e="30",t="var(--moz-color-warning)",o=""){const n=xt(e);return s.html`<svg class=${o||s.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
850
+ </svg>`}function Ui(e="30",t="var(--moz-color-warning)",o=""){const s=Dt(e);return n.html`<svg class=${o||n.nothing} width=${s.width} height=${s.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
851
851
  <mask id="mask0_6027_4463" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
852
852
  <g><path d="M30 0H0V30H30V0Z" fill="#FFF"></path></g>
853
853
  </mask>
@@ -859,47 +859,47 @@
859
859
  ></path>
860
860
  </g>
861
861
  </g>
862
- </svg>`}const oi=new Set(["title","minWidth","minHeight","maxWidth","maxHeight","draggable","resizeable","keepAspectRatio","disabledConfirmButton","showCloseButton","dialogClass","showHeader","closeOnOutsideClick","preset","dialogIcon","dialogMessage","onCancel","onBeforeClose","onBeforeUnload","onConfirm","onBeforeConfirm","loading","contentsPadding","class","style","useVShow","top","left","showFooterBorder","action","saveText","cancelText","okText","closeText","visible","width","height","focusTrap","lockScroll","side","showBackdrop","autoPosition","hideOthers"]);let Et=0,Es="";const si=()=>{Et===0&&(Es=document.body.style.overflow,document.body.style.overflow="hidden"),Et+=1},ni=()=>{Et!==0&&(Et-=1,Et===0&&(document.body.style.overflow=Es))},li='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Ls=$e({name:"moz-popup",portal:!0,defaults:{title:"Popup",minWidth:300,minHeight:100,maxWidth:800,maxHeight:600,draggable:!0,resizeable:!1,keepAspectRatio:!1,disabledConfirmButton:!1,showCloseButton:!0,showHeader:!0,closeOnOutsideClick:!0,preset:"close",dialogIcon:"info",loading:!1,contentsPadding:"24px 16px",useVShow:!1,top:null,left:null,showFooterBorder:!0,focusTrap:!1,lockScroll:!1,showBackdrop:!0,autoPosition:!0,hideOthers:!1},setup(e){const t=Y.createRef(),o=Y.createRef(),n=()=>{const S=o.value,de=t.value;!S||!de||(de.classList.toggle("moz-popup-scrolled",S.scrollTop>0),de.classList.toggle("moz-popup-scroll-more",S.scrollTop+S.clientHeight<S.scrollHeight-1))},l=ot("moz-popup-title-"),c=ot("moz-popup-desc-");let r=null,h=e.props.visible??!1,d=e.props.width,b=e.props.height;const a=()=>e.controlled("visible")?!!e.props.visible:h,m=S=>{e.controlled("visible")||(h=S),e.emit("update:visible",S),e.requestUpdate()},u=()=>e.controlled("width")?e.props.width:d,E=S=>{e.controlled("width")||(d=S),e.emit("update:width",S),e.requestUpdate()},x=()=>e.controlled("height")?e.props.height:b,$=S=>{e.controlled("height")||(b=S),e.emit("update:height",S),e.requestUpdate()};let P=0,L=0,g=!1;const i=!0;let p=null;const y={mouseDown:!1,dragging:!1,offset:{x:0,y:0}};let F=a(),I=!1,K=!1,oe=null,re=[];const j=()=>{const S=t.value;if(S)for(const de of Array.from(document.body.children))de instanceof HTMLElement&&(de.contains(S)||de.getAttribute("aria-hidden")!=="true"&&(de.setAttribute("aria-hidden","true"),re.push(de)))},k=()=>{for(const S of re)S.removeAttribute("aria-hidden");re=[]},R=()=>{const S=t.value;return S?Array.from(S.querySelectorAll(li)).filter(de=>de.getAttribute("aria-hidden")!=="true"):[]},X=()=>{const S=document.querySelectorAll(".moz-popup");return S.length>0&&S[S.length-1]===t.value},se=()=>{r||(r=mo(()=>A()))},N=()=>{r==null||r.release(),r=null},ne=()=>{I||(I=!0,se(),e.props.lockScroll&&(si(),K=!0),e.props.focusTrap&&(oe=document.activeElement instanceof HTMLElement?document.activeElement:null,queueMicrotask(()=>{const S=t.value;!S||!a()||(R()[0]??S).focus()})),e.props.hideOthers&&queueMicrotask(()=>{a()&&j()}))},_=()=>{if(N(),!I)return;I=!1,K&&(ni(),K=!1),k();const S=oe;oe=null,S&&S.isConnected&&S.focus()},J=()=>{const S=t.value;if(!S)return;const de=e.props,w=de.top!=null?de.top:window.innerHeight/2-S.offsetHeight/2,U=de.left!=null?de.left:window.innerWidth/2-S.offsetWidth/2;w===L&&U===P||(L=w,P=U,e.requestUpdate())};let z=null,W=null;const Z=()=>{if(typeof ResizeObserver>"u")return;const S=t.value;!S||S===W||(z??(z=new ResizeObserver(()=>{!a()||e.props.side||e.props.autoPosition===!1||g||(J(),n())})),W&&z.unobserve(W),z.observe(S),W=S)},G=()=>{e.props.side||e.props.autoPosition===!1||queueMicrotask(()=>{J(),Z()})},Q=()=>{!a()||e.props.side||e.props.autoPosition===!1||g||G()},T=()=>{a()||m(!0),e.emit("open"),G(),ne()},f=async()=>{let S=!0;return e.props.onBeforeClose?S=await e.props.onBeforeClose()??!0:e.emit("close:before",S),S},D=async S=>{await f()&&(S||!a()||(m(!1),e.props.onCancel?e.props.onCancel():e.emit("close"),e.emit("hidden")))},A=()=>D(!1),H=async()=>{let S=!0;return e.props.onBeforeConfirm?S=await e.props.onBeforeConfirm()??!0:e.emit("confirm:before",S),S},pe=async()=>{await H()&&a()&&(m(!1),e.props.onConfirm?e.props.onConfirm():e.emit("confirm"),e.emit("hidden"))},ke=()=>{e.props.onBeforeUnload&&e.props.onBeforeUnload()},Ae=()=>{e.props.closeOnOutsideClick&&A()},Ue=S=>{S?T():(_(),ke(),D(!0))},We=(S,de)=>{document.addEventListener("mouseup",S),document.addEventListener("mousemove",de)},Qe=(S,de)=>{document.removeEventListener("mouseup",S),document.removeEventListener("mousemove",de)},Je=S=>{const de=P-S.clientX,w=L-S.clientY;y.mouseDown=!0,y.offset.x=de,y.offset.y=w,e.emit("drag-start")},nt=S=>{e.props.draggable&&(S.clientX===0&&p&&(S=p),S&&S.clientX&&S.clientY&&(P=S.clientX+y.offset.x,L=S.clientY+y.offset.y,g=!0,e.requestUpdate()))},qe=S=>{S.clientX!==0&&S.clientY!==0&&(p=S),y.mouseDown&&i&&(y.dragging=!0,nt(S))},Be=()=>{y.dragging&&e.emit("drag-end"),y.mouseDown=!1,setTimeout(()=>{y.dragging=!1,Qe(Be,qe)},100)},xe=S=>{e.props.side||e.props.autoPosition===!1||(S.preventDefault(),We(Be,qe),Je(S))},Ge=S=>{S.preventDefault();const de=t.value;if(!de)return;const w=de.getBoundingClientRect(),U=u()??w.width,ae=x()??w.height;if(!U||!ae)return;const he=U/ae,me={x:S.clientX,y:S.clientY},Te=e.props,be=et=>{let Ne=et.clientX-me.x,Le=et.clientY-me.y;if(Te.keepAspectRatio){const rt=Ne/he;Math.abs(Le)>Math.abs(rt)?Le=rt:Ne=Le*he}const Oe=Math.max(Te.minWidth,Math.min(U+Ne,Te.maxWidth));let ct=Math.max(Te.minHeight,Math.min(ae+Le,Te.maxHeight));Te.keepAspectRatio&&Oe/ct!==he&&(ct=Oe/he),E(Oe),$(ct)},Pe=()=>{document.removeEventListener("mousemove",be),document.removeEventListener("mouseup",Pe)};document.addEventListener("mousemove",be),document.addEventListener("mouseup",Pe)},Fe=S=>{if(S.key==="Tab"&&e.props.focusTrap&&a()&&X()){if(r&&!r.isTopmost())return;const de=t.value;if(!de)return;const w=R();if(w.length===0){S.preventDefault(),de.focus();return}const U=w[0],ae=w[w.length-1],he=document.activeElement,me=he instanceof Node&&de.contains(he);S.shiftKey?(!me||he===U||he===de)&&(S.preventDefault(),ae.focus()):(!me||he===ae)&&(S.preventDefault(),U.focus());return}};e.onCleanup(()=>{z==null||z.disconnect(),z=null,W=null,_(),window.removeEventListener("keydown",Fe),window.removeEventListener("resize",Q),ke(),window.removeEventListener("unload",ke),Qe(Be,qe)});const it=()=>{const S=e.props;if(S.action)return S.action;const de=e.locale.Popup;switch(S.preset){case"save":return{positive:S.saveText??de.save,negative:S.cancelText??de.cancel};case"check":return{positive:S.okText??de.ok};case"close":return{negative:S.closeText??de.close};case"confirm":default:return{positive:S.okText??de.ok,negative:S.cancelText??de.cancel}}},gt=S=>{switch(S){case"error":return Jl("30","var(--moz-color-danger)","dialog-icon");case"info":return qo("30","var(--moz-color-accent)","dialog-icon");case"success":return ei("30","var(--moz-color-success)","dialog-icon");case"warning":return ti("30","var(--moz-color-warning)","dialog-icon");default:return s.nothing}};return{api:{resetPosition:G},onMounted:()=>{window.addEventListener("keydown",Fe),window.addEventListener("resize",Q),window.addEventListener("unload",ke),queueMicrotask(()=>e.emit("init",o.value??null)),a()&&(G(),ne())},render(){const S=e.props,de=a();if(de!==F){const at=de;F=de,at?se():N(),queueMicrotask(()=>Ue(at))}const w=S.useVShow?!0:de;if(queueMicrotask(n),!w)return s.nothing;const U=S.useVShow?!de:!1,ae=u(),he=x(),me=S.side,Te=!!me||S.autoPosition===!1,be={...Ce(S.style),...ae?{width:`${De(ae)}rem`}:{},...he?{height:`${De(he)}rem`}:{},...Te?{}:{left:`${De(P)}rem`,top:`${De(L)}rem`}},Pe=!!S.draggable&&!Te,et=!!S.resizeable&&!me,Ne=typeof S.contentsPadding=="number"?`${De(S.contentsPadding)}rem`:S.contentsPadding,Le=it(),Oe=e.slots.has("default"),ct=e.slots.has("footer"),rt=!!Le.positive&&!Le.negative,ht=!me&&S.showBackdrop===!1&&S.autoPosition===!1&&Oe&&(S.preset==="no-footer"||!!S.action&&rt),vt=!me&&S.showBackdrop!==!1&&S.preset!=="save"&&S.preset!=="no-footer"&&(Oe?rt:!!S.dialogMessage),v=me?void 0:S.showBackdrop===!1?ht?"panel":void 0:vt?"alert":"dialog",O=vt&&!Oe&&S.dialogIcon==="info",B=!!v&&!ct,ee=ye(S,oi),le=e.slots.has("title")?e.slot("title"):s.html`<span class="truncate">${S.title}</span>`,ce=e.slots.has("description"),ge=e.slots.has("default")?e.slot("default"):s.html`<div class="moz-dialog-body">
863
- ${O?s.html`<span class="dialog-icon-disc" aria-hidden="true">${qo("20","var(--moz-color-accent)","dialog-icon")}</span>`:gt(S.dialogIcon)}
864
- <div class="dialog-message">${S.dialogMessage!=null?Go.unsafeHTML(S.dialogMessage):s.nothing}</div>
865
- </div>`,_e=Le.positive?kt({class:"preset-btn",type:ht?"text":O&&rt?"outline":void 0,loading:S.loading,disabled:S.disabledConfirmButton,style:"min-width: 80px"},{onClick:pe,content:Le.positive}):s.nothing,mt=Le.negative?kt({class:"preset-btn",type:"outline",disabled:S.loading,style:"min-width: 80px"},{onClick:A,content:Le.negative}):s.nothing,ze=e.slots.has("footer")?e.slot("footer",{onConfirm:pe,onCancel:A}):me||S.showBackdrop===!1?s.html`${_e}${mt}`:s.html`${mt}${_e}`;return s.html`
862
+ </svg>`}const Wi=new Set(["title","minWidth","minHeight","maxWidth","maxHeight","draggable","resizeable","keepAspectRatio","disabledConfirmButton","showCloseButton","dialogClass","showHeader","closeOnOutsideClick","preset","dialogIcon","dialogMessage","onCancel","onBeforeClose","onBeforeUnload","onConfirm","onBeforeConfirm","loading","contentsPadding","class","style","useVShow","top","left","showFooterBorder","action","saveText","cancelText","okText","closeText","visible","width","height","focusTrap","lockScroll","side","showBackdrop","autoPosition","hideOthers","fitViewport","returnFocusTo"]);let Pt=0,Zn="";const Ki=()=>{Pt===0&&(Zn=document.body.style.overflow,document.body.style.overflow="hidden"),Pt+=1},Zi=()=>{Pt!==0&&(Pt-=1,Pt===0&&(document.body.style.overflow=Zn))},fo='a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Gn=e=>e.getAttribute("aria-hidden")!=="true";function nn(e){const t=e.querySelector("[data-autofocus]");if(!t)return[];const o=t.matches(fo)?[t]:[];return o.push(...Array.from(t.querySelectorAll(fo))),o.filter(Gn)}function io(e){for(const t of e)if(t.focus(),document.activeElement===t)return t;return null}const Yn=ye({name:"moz-popup",portal:!0,defaults:{title:"Popup",minWidth:300,minHeight:100,maxWidth:800,maxHeight:600,draggable:!0,resizeable:!1,keepAspectRatio:!1,disabledConfirmButton:!1,showCloseButton:!0,showHeader:!0,closeOnOutsideClick:!0,preset:"close",dialogIcon:"info",loading:!1,contentsPadding:"24px 16px",useVShow:!1,top:null,left:null,showFooterBorder:!0,focusTrap:!1,lockScroll:!1,showBackdrop:!0,autoPosition:!0,hideOthers:!1,fitViewport:!1},setup(e){const t=Y.createRef(),o=Y.createRef(),s=()=>{const w=o.value,G=t.value;!w||!G||(G.classList.toggle("moz-popup-scrolled",w.scrollTop>0),G.classList.toggle("moz-popup-scroll-more",w.scrollTop+w.clientHeight<w.scrollHeight-1))},l=Qe("moz-popup-title-"),i=()=>!!e.props.side||e.props.autoPosition===!1||!!e.props.fitViewport,r=Qe("moz-popup-desc-");let p=null,d=e.props.visible??!1,b=e.props.width,c=e.props.height;const m=()=>e.controlled("visible")?!!e.props.visible:d,u=w=>{e.controlled("visible")||(d=w),e.emit("update:visible",w),e.requestUpdate()},k=()=>e.controlled("width")?e.props.width:b,x=w=>{e.controlled("width")||(b=w),e.emit("update:width",w),e.requestUpdate()},S=()=>e.controlled("height")?e.props.height:c,L=w=>{e.controlled("height")||(c=w),e.emit("update:height",w),e.requestUpdate()};let M=0,f=0,a=!1;const h=!0;let $=null;const _={mouseDown:!1,dragging:!1,offset:{x:0,y:0}};let O=m(),U=!1,Q=!1,re=null,X=[];const E=()=>{const w=t.value;if(w)for(const G of Array.from(document.body.children))G instanceof HTMLElement&&(G.contains(w)||G.getAttribute("aria-hidden")!=="true"&&(G.setAttribute("aria-hidden","true"),X.push(G)))},V=()=>{for(const w of X)w.removeAttribute("aria-hidden");X=[]},J=()=>{const w=t.value;return w?Array.from(w.querySelectorAll(fo)).filter(Gn):[]},le=()=>{const w=document.querySelectorAll(".moz-popup");return w.length>0&&w[w.length-1]===t.value},N=()=>{p||(p=Eo(()=>Me()))},ie=()=>{p==null||p.release(),p=null};let F=null;const oe=()=>{F==null||F.disconnect(),F=null},T=(w,G)=>{typeof MutationObserver>"u"||(oe(),F=new MutationObserver(()=>{if(!m()||t.value!==w||document.activeElement!==G){oe();return}io(nn(w))&&oe()}),F.observe(w,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-autofocus"]}))},W=()=>{U||(U=!0,N(),e.props.lockScroll&&(Ki(),Q=!0),e.props.focusTrap&&(re=document.activeElement instanceof HTMLElement?document.activeElement:null,queueMicrotask(()=>{const w=t.value;!w||!m()||io(nn(w))||(io(J())||w.focus(),T(w,document.activeElement))})),e.props.hideOthers&&queueMicrotask(()=>{m()&&E()}))},K=()=>{if(ie(),oe(),!U)return;U=!1,Q&&(Zi(),Q=!1),V();const w=e.props.focusTrap?e.props.returnFocusTo:null,G=w instanceof HTMLElement&&w.isConnected?w:re;re=null,G&&G.isConnected&&G.focus()},ee=()=>{const w=t.value;if(!w)return;const G=e.props,me=G.top!=null?G.top:window.innerHeight/2-w.offsetHeight/2,Ee=G.left!=null?G.left:window.innerWidth/2-w.offsetWidth/2;me===f&&Ee===M||(f=me,M=Ee,e.requestUpdate())};let te=null,P=null;const g=()=>{if(typeof ResizeObserver>"u")return;const w=t.value;!w||w===P||(te??(te=new ResizeObserver(()=>{!m()||i()||a||(ee(),s())})),P&&te.unobserve(P),te.observe(w),P=w)},R=()=>{i()||queueMicrotask(()=>{ee(),g()})},I=()=>{!m()||i()||a||R()},H=()=>{m()||u(!0),e.emit("open"),R(),W()},pe=async()=>{let w=!0;return e.props.onBeforeClose?w=await e.props.onBeforeClose()??!0:e.emit("close:before",w),w},ke=async w=>{await pe()&&(w||!m()||(u(!1),e.props.onCancel?e.props.onCancel():e.emit("close"),e.emit("hidden")))},Me=()=>ke(!1),He=async()=>{let w=!0;return e.props.onBeforeConfirm?w=await e.props.onBeforeConfirm()??!0:e.emit("confirm:before",w),w},Fe=async()=>{await He()&&m()&&(u(!1),e.props.onConfirm?e.props.onConfirm():e.emit("confirm"),e.emit("hidden"))},Ge=()=>{e.props.onBeforeUnload&&e.props.onBeforeUnload()},et=()=>{e.props.closeOnOutsideClick&&Me()},lt=w=>{w?H():(K(),Ge(),ke(!0))},Ke=(w,G)=>{document.addEventListener("mouseup",w),document.addEventListener("mousemove",G)},Ue=(w,G)=>{document.removeEventListener("mouseup",w),document.removeEventListener("mousemove",G)},ze=w=>{const G=M-w.clientX,me=f-w.clientY;_.mouseDown=!0,_.offset.x=G,_.offset.y=me,e.emit("drag-start")},Ze=w=>{e.props.draggable&&(w.clientX===0&&$&&(w=$),w&&w.clientX&&w.clientY&&(M=w.clientX+_.offset.x,f=w.clientY+_.offset.y,a=!0,e.requestUpdate()))},Be=w=>{w.clientX!==0&&w.clientY!==0&&($=w),_.mouseDown&&h&&(_.dragging=!0,Ze(w))},ot=()=>{_.dragging&&e.emit("drag-end"),_.mouseDown=!1,setTimeout(()=>{_.dragging=!1,Ue(ot,Be)},100)},mt=w=>{i()||(w.preventDefault(),Ke(ot,Be),ze(w))},Ye=w=>{w.preventDefault();const G=t.value;if(!G)return;const me=G.getBoundingClientRect(),Ee=k()??me.width,ve=S()??me.height;if(!Ee||!ve)return;const Ce=Ee/ve,Ie={x:w.clientX,y:w.clientY},Re=e.props,Pe=ft=>{let ct=ft.clientX-Ie.x,nt=ft.clientY-Ie.y;if(Re.keepAspectRatio){const D=ct/Ce;Math.abs(nt)>Math.abs(D)?nt=D:ct=nt*Ce}const rt=Math.max(Re.minWidth,Math.min(Ee+ct,Re.maxWidth));let v=Math.max(Re.minHeight,Math.min(ve+nt,Re.maxHeight));Re.keepAspectRatio&&rt/v!==Ce&&(v=rt/Ce),x(rt),L(v)},qe=()=>{document.removeEventListener("mousemove",Pe),document.removeEventListener("mouseup",qe)};document.addEventListener("mousemove",Pe),document.addEventListener("mouseup",qe)},at=w=>{if(w.key==="Tab"&&e.props.focusTrap&&m()&&le()){if(p&&!p.isTopmost())return;const G=t.value;if(!G)return;const me=J();if(me.length===0){w.preventDefault(),G.focus();return}const Ee=me[0],ve=me[me.length-1],Ce=document.activeElement,Ie=Ce instanceof Node&&G.contains(Ce);w.shiftKey?(!Ie||Ce===Ee||Ce===G)&&(w.preventDefault(),ve.focus()):(!Ie||Ce===ve)&&(w.preventDefault(),Ee.focus());return}};e.onCleanup(()=>{te==null||te.disconnect(),te=null,P=null,K(),window.removeEventListener("keydown",at),window.removeEventListener("resize",I),Ge(),window.removeEventListener("unload",Ge),Ue(ot,Be)});const y=()=>{const w=e.props;if(w.action)return w.action;const G=e.locale.Popup;switch(w.preset){case"save":return{positive:w.saveText??G.save,negative:w.cancelText??G.cancel};case"check":return{positive:w.okText??G.ok};case"close":return{negative:w.closeText??G.close};case"confirm":default:return{positive:w.okText??G.ok,negative:w.cancelText??G.cancel}}},Z=w=>{switch(w){case"error":return Ni("30","var(--moz-color-danger)","dialog-icon");case"info":return on("30","var(--moz-color-accent)","dialog-icon");case"success":return Hi("30","var(--moz-color-success)","dialog-icon");case"warning":return Ui("30","var(--moz-color-warning)","dialog-icon");default:return n.nothing}};return{api:{resetPosition:R},onMounted:()=>{window.addEventListener("keydown",at),window.addEventListener("resize",I),window.addEventListener("unload",Ge),queueMicrotask(()=>e.emit("init",o.value??null)),m()&&(R(),W())},render(){const w=e.props,G=m();if(G!==O){const C=G;O=G,C?N():ie(),queueMicrotask(()=>lt(C))}const me=w.useVShow?!0:G;if(queueMicrotask(s),!me)return n.nothing;const Ee=w.useVShow?!G:!1,ve=k(),Ce=S(),Ie=w.side,Re=!!Ie||w.autoPosition===!1,Pe=!!w.fitViewport&&!Re,qe=(C,z,B)=>`min(${Ae(typeof C=="number"?C:z)}rem, calc(100${B} - 32px))`,ft={...he(w.style),...ve?{width:`${Ae(ve)}rem`}:{},...Ce?{height:`${Ae(Ce)}rem`}:{},...Re?{}:Pe?{left:"50%",top:"50%",transform:"translate(-50%, -50%)",minWidth:qe(w.minWidth,300,"dvw"),maxWidth:qe(w.maxWidth,800,"dvw"),minHeight:qe(w.minHeight,100,"dvh"),maxHeight:qe(w.maxHeight,600,"dvh")}:{left:`${Ae(M)}rem`,top:`${Ae(f)}rem`}},ct=!!w.draggable&&!Re&&!Pe,nt=!!w.resizeable&&!Ie&&!Pe,rt=typeof w.contentsPadding=="number"?`${Ae(w.contentsPadding)}rem`:w.contentsPadding,v=y(),D=e.slots.has("default"),q=e.slots.has("footer"),ne=!!v.positive&&!v.negative,se=!Ie&&w.showBackdrop===!1&&w.autoPosition===!1&&D&&(w.preset==="no-footer"||!!w.action&&ne),de=!Ie&&w.showBackdrop!==!1&&w.preset!=="save"&&w.preset!=="no-footer"&&(D?ne:!!w.dialogMessage),fe=Ie?void 0:w.showBackdrop===!1?se?"panel":void 0:de?"alert":"dialog",Ne=de&&!D&&w.dialogIcon==="info",vt=!!fe&&!q,Le=ge(w,Wi),dt=e.slots.has("title")?e.slot("title"):n.html`<span class="truncate">${w.title}</span>`,wt=e.slots.has("description"),Oe=e.slots.has("default")?e.slot("default"):n.html`<div class="moz-dialog-body">
863
+ ${Ne?n.html`<span class="dialog-icon-disc" aria-hidden="true">${on("20","var(--moz-color-accent)","dialog-icon")}</span>`:Z(w.dialogIcon)}
864
+ <div class="dialog-message">${w.dialogMessage!=null?gn.unsafeHTML(w.dialogMessage):n.nothing}</div>
865
+ </div>`,_e=v.positive?Ct({class:"preset-btn",type:se?"text":Ne&&ne?"outline":void 0,loading:w.loading,disabled:w.disabledConfirmButton,style:"min-width: 80px"},{onClick:Fe,content:v.positive}):n.nothing,yt=v.negative?Ct({class:"preset-btn",type:"outline",disabled:w.loading,style:"min-width: 80px"},{onClick:Me,content:v.negative}):n.nothing,xt=e.slots.has("footer")?e.slot("footer",{onConfirm:Fe,onCancel:Me}):Ie||w.showBackdrop===!1?n.html`${_e}${yt}`:n.html`${yt}${_e}`;return n.html`
866
866
  <div
867
- class=${V("moz-popup-container",S.class,me?`moz-popup-side moz-popup-side-${me}`:null,S.showBackdrop===!1?"moz-popup-no-backdrop":null)}
868
- style=${Ee.ifDefined(U?"display: none;":void 0)}
867
+ class=${A("moz-popup-container",w.class,Ie?`moz-popup-side moz-popup-side-${Ie}`:null,w.showBackdrop===!1?"moz-popup-no-backdrop":null)}
868
+ style=${$e.ifDefined(Ee?"display: none;":void 0)}
869
869
  >
870
- ${S.showBackdrop===!1?s.nothing:s.html`<div class="moz-popup-backdrop" aria-hidden="true" @click=${Ae}></div>`}
870
+ ${w.showBackdrop===!1?n.nothing:n.html`<div class="moz-popup-backdrop" aria-hidden="true" @click=${et}></div>`}
871
871
  <div
872
- class=${V("moz-popup",S.dialogClass)}
873
- data-popup-surface=${Ee.ifDefined(v)}
874
- data-popup-footer=${Ee.ifDefined(B?"preset":void 0)}
872
+ class=${A("moz-popup",w.dialogClass)}
873
+ data-popup-surface=${$e.ifDefined(fe)}
874
+ data-popup-footer=${$e.ifDefined(vt?"preset":void 0)}
875
875
  role="dialog"
876
876
  aria-modal="true"
877
- aria-labelledby=${Ee.ifDefined(S.showHeader===!1?void 0:l)}
878
- aria-describedby=${Ee.ifDefined(ce?c:void 0)}
879
- tabindex=${Ee.ifDefined(S.focusTrap?"-1":void 0)}
880
- style=${te.styleMap(be)}
877
+ aria-labelledby=${$e.ifDefined(w.showHeader===!1?void 0:l)}
878
+ aria-describedby=${$e.ifDefined(wt?r:void 0)}
879
+ tabindex=${$e.ifDefined(w.focusTrap?"-1":void 0)}
880
+ style=${j.styleMap(ft)}
881
881
  ${Y.ref(t)}
882
- ${fe(ee)}
882
+ ${ce(Le)}
883
883
  >
884
- ${S.showHeader===!1?s.nothing:s.html`<div
884
+ ${w.showHeader===!1?n.nothing:n.html`<div
885
885
  id=${l}
886
- class=${V("moz-popup-title",{draggable:Pe})}
887
- @mousedown=${xe}
888
- @touchstart=${xe}
886
+ class=${A("moz-popup-title",{draggable:ct})}
887
+ @mousedown=${mt}
888
+ @touchstart=${mt}
889
889
  >
890
- ${le}
891
- ${S.showCloseButton?kt({type:"icon",class:"close-button","aria-label":e.locale.Popup.close},{onClick:A,icon:Ql("14","var(--moz-color-text-subtle)")}):s.nothing}
890
+ ${dt}
891
+ ${w.showCloseButton?Ct({type:"icon",class:"close-button"},{onClick:Me,icon:Fi("14","var(--moz-color-text-subtle)"),rest:{"aria-label":e.locale.Popup.close}}):n.nothing}
892
892
  </div>`}
893
- ${ce?s.html`<div id=${c} class="moz-popup-description">${e.slot("description")}</div>`:s.nothing}
894
- <div class="moz-popup-body" @scroll=${n} style=${te.styleMap({padding:Ne})} ${Y.ref(o)}>${ge}</div>
895
- ${S.preset!=="no-footer"?s.html`<div class=${V("moz-popup-footer",{"with-border":S.showFooterBorder})}>
896
- ${ze}
897
- </div>`:s.nothing}
898
- ${et?s.html`<div class="resize-handler" @mousedown=${Ge}></div>`:s.nothing}
893
+ ${wt?n.html`<div id=${r} class="moz-popup-description">${e.slot("description")}</div>`:n.nothing}
894
+ <div class="moz-popup-body" @scroll=${s} style=${j.styleMap({padding:rt})} ${Y.ref(o)}>${Oe}</div>
895
+ ${w.preset!=="no-footer"?n.html`<div class=${A("moz-popup-footer",{"with-border":w.showFooterBorder})}>
896
+ ${xt}
897
+ </div>`:n.nothing}
898
+ ${nt?n.html`<div class="resize-handler" @mousedown=${Ye}></div>`:n.nothing}
899
899
  </div>
900
900
  </div>
901
- `}}}}),ii={name:"MozPopup",core:Ls,booleanProps:["autoPosition","closeOnOutsideClick","disabledConfirmButton","draggable","focusTrap","hideOthers","keepAspectRatio","loading","lockScroll","resizeable","showBackdrop","showCloseButton","showFooterBorder","showHeader","useVShow","visible"],props:["title","minWidth","minHeight","maxWidth","maxHeight","draggable","resizeable","keepAspectRatio","disabledConfirmButton","showCloseButton","closeOnOutsideClick","preset","dialogIcon","dialogMessage","onCancel","onBeforeClose","onBeforeUnload","onConfirm","onBeforeConfirm","loading","contentsPadding","useVShow","top","left","showFooterBorder","action","saveText","cancelText","okText","closeText","visible","width","height","focusTrap","lockScroll","side","showBackdrop","autoPosition","hideOthers","dialogClass","showHeader"],emits:["open","close","close:before","confirm","confirm:before","drag-start","drag-end","hidden","init","update:visible","update:width","update:height"],slots:["title","default","footer","description"],expose:!0,syncUpdate:!0};function Gt(e,t=12){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function Ps(e="12",t="var(--moz-color-text-subtle)",o=!1,n=""){const l=Gt(e),c=o?"var(--moz-color-text-muted)":t;return s.html`<svg class=${n||s.nothing} xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 16 16">
902
- <g style=${`fill: ${c}`}>
901
+ `}}}}),Gi={name:"MozPopup",core:Yn,booleanProps:["autoPosition","closeOnOutsideClick","disabledConfirmButton","draggable","fitViewport","focusTrap","hideOthers","keepAspectRatio","loading","lockScroll","resizeable","showBackdrop","showCloseButton","showFooterBorder","showHeader","useVShow","visible"],props:["title","minWidth","minHeight","maxWidth","maxHeight","draggable","resizeable","keepAspectRatio","disabledConfirmButton","showCloseButton","closeOnOutsideClick","preset","dialogIcon","dialogMessage","onCancel","onBeforeClose","onBeforeUnload","onConfirm","onBeforeConfirm","loading","contentsPadding","useVShow","top","left","showFooterBorder","action","saveText","cancelText","okText","closeText","visible","width","height","focusTrap","lockScroll","side","showBackdrop","autoPosition","hideOthers","fitViewport","returnFocusTo","dialogClass","showHeader"],emits:["open","close","close:before","confirm","confirm:before","drag-start","drag-end","hidden","init","update:visible","update:width","update:height"],slots:["title","default","footer","description"],expose:!0,syncUpdate:!0};function so(e,t=12){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function jn(e="12",t="var(--moz-color-text-subtle)",o=!1,s=""){const l=so(e),i=o?"var(--moz-color-text-muted)":t;return n.html`<svg class=${s||n.nothing} xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 16 16">
902
+ <g style=${`fill: ${i}`}>
903
903
  <path
904
904
  d="M836.533 699.734h-.022a.928.928 0 0 1-.716-.336l-3.779-4.535a.926.926 0 0 1-.212-.68.93.93 0 0 1 1.643-.512l3.026 3.63 6.096-8.128a.922.922 0 0 1 .745-.373c.202 0 .396.064.559.186.199.15.328.367.363.614a.925.925 0 0 1-.177.69l-6.803 9.071a.928.928 0 0 1-.721.373h-.002z"
905
905
  style="stroke: none"
@@ -907,229 +907,229 @@
907
907
  ></path>
908
908
  <path
909
909
  d="M836.532 699.634a.833.833 0 0 0 .644-.333l6.803-9.07a.831.831 0 1 0-1.33-.998l-6.172 8.23-3.107-3.728a.83.83 0 1 0-1.277 1.064l3.78 4.535c.157.19.391.3.638.3h.021m.003.2h-.024c-.307 0-.596-.136-.793-.372l-3.779-4.535a1.025 1.025 0 0 1-.235-.754 1.03 1.03 0 0 1 1.82-.567l2.945 3.534 6.02-8.027a1.034 1.034 0 0 1 1.444-.207c.22.165.363.407.402.68.04.273-.03.544-.196.765l-6.803 9.07c-.19.254-.481.404-.799.412h-.002z"
910
- style=${`fill: ${c}; stroke: none`}
910
+ style=${`fill: ${i}; stroke: none`}
911
911
  transform="translate(-829.971 -686.318)"
912
912
  ></path>
913
913
  </g>
914
- </svg>`}function Ms(e="14",t="var(--moz-color-text-subtle)",o=!1){const n=Gt(e,14);return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
914
+ </svg>`}function Xn(e="14",t="var(--moz-color-text-subtle)",o=!1){const s=so(e,14);return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${s.width} height=${s.height} viewBox="0 0 14 14" fill="none">
915
915
  <path
916
916
  fill-rule="evenodd"
917
917
  clip-rule="evenodd"
918
918
  d="M4.28543 4.37082C4.63291 4.01541 5.20272 4.00898 5.55814 4.35646L9.05717 7.77743L12.4606 4.36449C12.8116 4.01253 13.3815 4.01174 13.7334 4.36272C14.0854 4.7137 14.0862 5.28355 13.7352 5.63551L9.70247 9.67945C9.35394 10.029 8.78895 10.0325 8.43602 9.68748L4.29979 5.64353C3.94437 5.29605 3.93794 4.72624 4.28543 4.37082Z"
919
919
  fill=${o?"var(--moz-color-text-muted)":t}
920
920
  ></path>
921
- </svg>`}function xs(e="14",t="var(--moz-color-text-subtle)",o=!1){const n=Gt(e,14);return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
921
+ </svg>`}function Qn(e="14",t="var(--moz-color-text-subtle)",o=!1){const s=so(e,14);return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${s.width} height=${s.height} viewBox="0 0 14 14" fill="none">
922
922
  <path
923
923
  fill-rule="evenodd"
924
924
  clip-rule="evenodd"
925
925
  d="M13.7433 9.67312C13.3958 10.0285 12.826 10.035 12.4705 9.68748L8.97152 6.26652L5.56806 9.67946C5.21708 10.0314 4.64723 10.0322 4.29527 9.68123C3.94331 9.33024 3.94252 8.7604 4.2935 8.40844L8.32621 4.36449C8.67474 4.01499 9.23974 4.01141 9.59267 4.35647L13.7289 8.40041C14.0843 8.7479 14.0907 9.31771 13.7433 9.67312Z"
926
926
  fill=${o?"var(--moz-color-text-muted)":t}
927
927
  ></path>
928
- </svg>`}function lo(e="12",t="var(--moz-color-text-subtle)",o=!1){const n=Gt(e),l=o?"var(--moz-color-text-muted)":t;return n.width<=13?s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 12 12" fill="none">
928
+ </svg>`}function go(e="12",t="var(--moz-color-text-subtle)",o=!1){const s=so(e),l=o?"var(--moz-color-text-muted)":t;return s.width<=13?n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${s.width} height=${s.height} viewBox="0 0 12 12" fill="none">
929
929
  <path
930
930
  d="M10.293 11.375L7.71099 8.79103C6.76581 9.4655 5.60162 9.76002 4.44941 9.61616C3.29719 9.4723 2.24116 8.90058 1.49082 8.01442C0.740489 7.12825 0.350682 5.99242 0.398745 4.83225C0.446808 3.67209 0.929227 2.57239 1.75029 1.75133C2.57135 0.930264 3.67106 0.447845 4.83122 0.399783C5.99138 0.35172 7.12722 0.741526 8.01338 1.49186C8.89954 2.2422 9.47126 3.29823 9.61512 4.45044C9.75898 5.60265 9.46446 6.76684 8.78999 7.71203L11.373 10.294C11.5163 10.4374 11.5969 10.6318 11.5969 10.8345C11.5969 11.0373 11.5163 11.2317 11.373 11.375C11.2296 11.5184 11.0352 11.5989 10.8325 11.5989C10.6298 11.5989 10.4363 11.5184 10.293 11.375ZM1.92899 5.02703C1.92899 5.64015 2.1108 6.2395 2.45144 6.7493C2.79207 7.25909 3.27622 7.65642 3.84267 7.89106C4.40912 8.12569 5.03243 8.18708 5.63377 8.06746C6.23511 7.94785 6.78748 7.6526 7.22102 7.21906C7.65457 6.78552 7.94981 6.23315 8.06943 5.63181C8.18904 5.03047 8.12765 4.40716 7.89302 3.84071C7.65839 3.27426 7.26105 2.79011 6.75126 2.44947C6.24147 2.10884 5.64211 1.92703 5.02899 1.92703C4.20682 1.92703 3.41832 2.25364 2.83696 2.835C2.2556 3.41636 1.92899 4.20486 1.92899 5.02703Z"
931
931
  fill=${l}
932
932
  ></path>
933
- </svg>`:s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
933
+ </svg>`:n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${s.width} height=${s.height} viewBox="0 0 14 14" fill="none">
934
934
  <path
935
935
  d="M5.84944 0.402344C2.83893 0.402344 0.398438 2.84284 0.398438 5.85334C0.398438 8.86385 2.83893 11.3043 5.84944 11.3043C7.0308 11.3043 8.12438 10.9285 9.01716 10.29L12.0619 13.3347C12.4134 13.6862 12.9832 13.6862 13.3347 13.3347C13.6862 12.9832 13.6862 12.4134 13.3347 12.0619L10.2893 9.01651C10.9259 8.12457 11.3004 7.03269 11.3004 5.85334C11.3004 2.84284 8.85994 0.402344 5.84944 0.402344ZM2.19844 5.85334C2.19844 3.83695 3.83305 2.20234 5.84944 2.20234C7.86583 2.20234 9.50044 3.83695 9.50044 5.85334C9.50044 7.86974 7.86583 9.50434 5.84944 9.50434C3.83305 9.50434 2.19844 7.86974 2.19844 5.85334Z"
936
936
  fill=${l}
937
937
  ></path>
938
- </svg>`}const ri=250,ai=28,ci=new Set(["itemsSource","label","width","variant","size","required","readonly","disabled","keyProp","displayProp","separator","rules","useObjBinding","useFilter","listWidth","placeholder","searchPlaceholder","emptyText","requiredMessage","modelValue","class","style"]);function di(e,t){let o;return(...n)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...n),t)}}function ui(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const zs=(e=!1)=>$e({name:"moz-select",defaults:{label:null,width:200,variant:"default",size:"medium",required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProp:"text",separator:" / ",rules:[],useObjBinding:!1,useFilter:!0,listWidth:100,modelValue:null},setup(t){const o=Y.createRef(),n=Y.createRef(),l=Y.createRef(),c=Y.createRef(),r=Y.createRef(),h=Y.createRef();let d=null,b=t.props.modelValue??null;const a=()=>t.controlled("modelValue")?t.props.modelValue??null:b,m=w=>{t.controlled("modelValue")||(b=w),t.emit("update:modelValue",w),t.requestUpdate()};let u=!1,E=!1,x=0,$=null,P=null,L="",g=-1;const i=ot("moz-select-listbox-"),p={change:"",blur:"",save:""};let y=a();const F=()=>t.props.keyProp||"id",I=()=>Array.isArray(t.props.displayProp)?t.props.displayProp:null,K=()=>I()?32:ai,oe=()=>I()?300:ri,re=()=>{var w;return!!((w=I())!=null&&w.some(U=>U.header!==void 0))},j=()=>e?t.locale.TableSelect:t.locale.Select,k=w=>t.props.useObjBinding&&w&&typeof w=="object"?w[F()]:w,R=w=>a()!=null&&w[F()]===k(a()),X=w=>{const U=typeof w.width=="number"?`${w.width}px`:w.width;return{width:U,minWidth:U,maxWidth:U,flex:U==null?"1 1 0":"0 0 auto"}},se=new st.Virtualizer({count:0,getScrollElement:()=>d,estimateSize:K,measureElement:w=>{const U=w.getBoundingClientRect().height;return U>0?U:K()},overscan:5,observeElementRect:st.observeElementRect,observeElementOffset:st.observeElementOffset,scrollToFn:st.elementScroll,onChange:()=>t.requestUpdate()});t.onCleanup(()=>{E=!0,x+=1,$=null,P=null,window.removeEventListener("keydown",A),pe==null||pe.release(),pe=null}),t.onCleanup(se._didMount());const N=w=>{d=w??null,w&&(se._willUpdate(),t.requestUpdate())},ne=w=>t.props.itemsSource?t.props.itemsSource.find(ae=>ae[F()]===w)??null:null,_=w=>{if(!w)return"";const U=I();return U?U.map(ae=>String(w[ae.key]??"")).join(t.props.separator??" / "):typeof t.props.displayProp=="function"?t.props.displayProp(w):String(typeof w=="object"?w[t.props.displayProp]??"":w)},J=()=>{const w=a();if(!w&&isNaN(Number(w)))return null;const U=t.props.useObjBinding?w:ne(w);return U?_(U):null},z=()=>{if(!L)return t.props.itemsSource??[];const w=L.toLowerCase();return(t.props.itemsSource??[]).filter(U=>I()?I().some(ae=>String(U[ae.key]??"").toLowerCase().includes(w)):_(U).toLowerCase().includes(w))},W=w=>{if(!L)return[{part:w,highlight:!1}];const U=ui(L),ae=new RegExp(`(${U})`,"gi");return w.split(ae).map(he=>({part:he,highlight:L.toLowerCase()===he.toLowerCase()}))},Z=()=>p.save||p.blur||p.change,G=()=>{const w=[];return t.props.required&&w.push({message:t.props.requiredMessage??j().requiredMessage.replace("{label}",t.props.label||""),type:"save",validator:U=>!!U}),[...w,...t.props.rules??[]]},Q=async(w,U)=>{const ae=G();if(ae.length<=0||t.props.disabled)return!0;p[U]="",t.requestUpdate();const he=ae.filter(me=>me.type===U);for(const me of he){const Te=e&&t.props.useObjBinding?w==null?"":String(w):w;if(!await me.validator(Te))return p[U]=me.message,t.requestUpdate(),!1}return!0},T=async(w="save")=>Z()!==""?!1:await Q(a(),w),f={validate:T,initValidator:()=>{p.change="",p.blur="",p.save="",t.requestUpdate()}};t.validator&&(t.validator.addValidator(f),t.onCleanup(()=>{var w;return(w=t.validator)==null?void 0:w.removeValidator(f)}));const D=new Kt({anchor:()=>n.value??null,panel:()=>l.value??null,maxHeight:oe,container:()=>o.value??null,useMinWidth:!0,listWidth:()=>t.props.listWidth,ignoreScrollTargets:w=>w===d,requestClose:()=>{u&&ke(!1)}});t.onCleanup(()=>D.destroy());const A=w=>{`${w.ctrlKey?"ctrl+":""}${w.altKey?"alt+":""}${w.key.toLowerCase()}`==="escape"&&ke(!1)},H=w=>{const U=oe()-(I()&&t.props.useFilter?29:0)-(re()?32:0),ae=K()*w;return Math.max(0,ae-U/2+K())};let pe=null;const ke=(w,U,ae=!0)=>{if(E||u===w)return;u=w;const he=++x;$=w&&U!==void 0?{generation:he,step:U}:null,P=null,t.requestUpdate(),w?(pe=Zt(),D.open(),p.save="",window.addEventListener("keydown",A),queueMicrotask(()=>{var Te;if(E||!u||he!==x)return;if(a()!=null){const be=z().findIndex(R);be>=0&&(e&&(g=be,t.requestUpdate()),d&&(d.scrollTop=H(be)))}ae&&U===void 0&&(h.value?h.value.focus():(Te=r.value)==null||Te.focus())})):(pe==null||pe.release(),pe=null,D.close(),t.emit("close"),Q(a(),"blur"),window.removeEventListener("keydown",A),L="",g=-1,t.emit("close"),queueMicrotask(()=>{var me;E||u||he!==x||(me=r.value)==null||me.focus()}))},Ae=()=>{var w;t.props.disabled||(ke(!u),(w=r.value)==null||w.focus())},Ue=w=>{var U;m(w),ke(!1),(U=r.value)==null||U.focus()},We=di(w=>{L=w.target.value,e&&(g=z().length?0:-1),t.requestUpdate(),queueMicrotask(()=>{const U=z().length;se.setOptions({...se.options,count:U}),se.measure(),d&&(d.scrollTop=0,se.scrollToIndex(0),se.measure())})},300),Qe=w=>{var U;if(u){w.stopPropagation(),w.preventDefault();const ae=h.value??((U=c.value)==null?void 0:U.querySelector("div:first-child"));ae==null||ae.focus()}},Je=w=>{var Te,be,Pe;const U=((Te=l.value)==null?void 0:Te.querySelectorAll('[tabindex="0"]'))??[],ae=[...Array.from(U)];h.value&&ae.unshift(h.value);const he=ae[0],me=ae[ae.length-1];(w.target===he||w.target===me)&&r.value&&(w.target===he&&w.shiftKey?(w.stopPropagation(),w.preventDefault(),(be=r.value)==null||be.focus()):w.target===me&&!w.shiftKey&&(w.stopPropagation(),w.preventDefault(),(Pe=r.value)==null||Pe.focus()))},nt=w=>{d&&(w.shiftKey?d.scrollTop-=24:d.scrollTop+=24)},qe=()=>{var U;const w=Array.from(((U=l.value)==null?void 0:U.querySelectorAll('[tabindex="0"]'))??[]);return h.value&&!w.includes(h.value)&&w.unshift(h.value),w},Be=w=>{var me;const U=qe();if(U.length===0)return;const ae=U.indexOf(document.activeElement),he=ae<0?w>0?0:U.length-1:Math.min(U.length-1,Math.max(0,ae+w));(me=U[he])==null||me.focus()},xe=w=>w.find(U=>U.getAttribute("aria-selected")==="true")??null,Ge=w=>{ke(!0,w)},Fe=()=>{const w=$;!w||P===w||(P=w,queueMicrotask(()=>{var he;if(P===w&&(P=null),E||!u||w.generation!==x||$!==w||!((he=l.value)!=null&&he.isConnected))return;const U=qe(),ae=h.value??xe(U)??U[w.step<0?U.length-1:0];ae!=null&&ae.isConnected&&($=null,ae.focus())}))},it=()=>{var w;ke(!1),(w=r.value)==null||w.focus()},gt=w=>{if(w.key==="Tab"){Qe(w);return}if(w.key==="Enter"||w.key===" "){u||(w.preventDefault(),w.stopPropagation(),Ge(1));return}if(w.key==="ArrowDown"||w.key==="ArrowUp"){w.preventDefault(),w.stopPropagation();const U=w.key==="ArrowDown"?1:-1;u?Be(U):Ge(U);return}w.key==="Escape"&&u&&(w.preventDefault(),it())},S=w=>{if(e){const U=z();if(w.key==="ArrowDown"||w.key==="ArrowUp"){if(w.preventDefault(),!U.length)return;g=w.key==="ArrowDown"?g>=U.length-1?0:g+1:g<=0?U.length-1:g-1,t.requestUpdate();const ae=x;queueMicrotask(()=>{!E&&u&&ae===x&&se.scrollToIndex(g,{align:"auto"})})}else if(w.key==="Enter"){w.preventDefault();const ae=U[g];ae&&Ue(t.props.useObjBinding?ae:ae[F()])}return}if(w.key==="Tab"){Je(w);return}if(w.key==="ArrowDown"||w.key==="ArrowUp"){w.preventDefault(),Be(w.key==="ArrowDown"?1:-1);return}w.key==="Escape"&&(w.preventDefault(),it())},de=(w,U)=>{if(!e){if(w.key==="Tab"){nt(w);return}if(w.key==="ArrowDown"||w.key==="ArrowUp"){w.preventDefault(),w.stopPropagation(),Be(w.key==="ArrowDown"?1:-1);return}if(w.key==="Escape"){w.preventDefault(),w.stopPropagation(),it();return}(w.key==="Enter"||w.key===" ")&&(w.key==="Enter"&&w.preventDefault(),Ue(U))}};return{api:{validate:T,setOpen:w=>{E||w&&t.props.disabled||ke(w,void 0,!1)},isOpen:()=>!E&&u},render(){const w=t.props,U=a();if(U!==y){y=U;const Oe=U;queueMicrotask(()=>{Q(Oe,"change"),t.emit("change",Oe,ne(k(Oe)))})}const ae=typeof w.width=="number"?`${De(w.width)}rem`:w.width,he=ye(w,ci),{aria:me,dom:Te}=Wt(he),be=!e&&w.variant==="text",Pe=!e&&w.size==="small",et=t.slots.has("icon")?t.slot("icon",{isOpen:u}):u?xs("14",be?"currentColor":"var(--moz-color-accent)"):Ms("14",be?"currentColor":"var(--moz-color-text-subtle)",w.disabled),Ne=s.html`<button
938
+ </svg>`}const Yi=250,ji=28,Xi=new Set(["itemsSource","label","width","variant","size","required","readonly","disabled","keyProp","displayProp","separator","rules","useObjBinding","useFilter","listWidth","placeholder","searchPlaceholder","emptyText","requiredMessage","modelValue","class","style"]);function Qi(e,t){let o;return(...s)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...s),t)}}function Ji(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Jn=(e=!1)=>ye({name:"moz-select",defaults:{label:null,width:200,variant:"default",size:"medium",required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProp:"text",separator:" / ",rules:[],useObjBinding:!1,useFilter:!0,listWidth:100,modelValue:null},setup(t){const o=Y.createRef(),s=Y.createRef(),l=Y.createRef(),i=Y.createRef(),r=Y.createRef(),p=Y.createRef();let d=null,b=t.props.modelValue??null;const c=()=>t.controlled("modelValue")?t.props.modelValue??null:b,m=y=>{t.controlled("modelValue")||(b=y),t.emit("update:modelValue",y),t.requestUpdate()};let u=!1,k=!1,x=0,S=null,L=null,M="",f=-1;const a=Qe("moz-select-listbox-"),h={change:"",blur:"",save:""};let $=c();const _=()=>t.props.keyProp||"id",O=()=>Array.isArray(t.props.displayProp)?t.props.displayProp:null,U=()=>O()?32:ji,Q=()=>O()?300:Yi,re=()=>{var y;return!!((y=O())!=null&&y.some(Z=>Z.header!==void 0))},X=()=>e?t.locale.TableSelect:t.locale.Select,E=y=>t.props.useObjBinding&&y&&typeof y=="object"?y[_()]:y,V=y=>c()!=null&&y[_()]===E(c()),J=y=>{const Z=typeof y.width=="number"?`${y.width}px`:y.width;return{width:Z,minWidth:Z,maxWidth:Z,flex:Z==null?"1 1 0":"0 0 auto"}},le=new st.Virtualizer({count:0,getScrollElement:()=>d,estimateSize:U,measureElement:y=>{const Z=y.getBoundingClientRect().height;return Z>0?Z:U()},overscan:5,observeElementRect:st.observeElementRect,observeElementOffset:st.observeElementOffset,scrollToFn:st.elementScroll,onChange:()=>t.requestUpdate()});t.onCleanup(()=>{k=!0,x+=1,S=null,L=null,window.removeEventListener("keydown",I),pe==null||pe.release(),pe=null}),t.onCleanup(le._didMount());const N=y=>{d=y??null,y&&(le._willUpdate(),t.requestUpdate())},ie=y=>t.props.itemsSource?t.props.itemsSource.find(w=>w[_()]===y)??null:null,F=y=>{if(!y)return"";const Z=O();return Z?Z.map(w=>String(y[w.key]??"")).join(t.props.separator??" / "):typeof t.props.displayProp=="function"?t.props.displayProp(y):String(typeof y=="object"?y[t.props.displayProp]??"":y)},oe=()=>{const y=c();if(!y&&isNaN(Number(y)))return null;const Z=t.props.useObjBinding?y:ie(y);return Z?F(Z):null},T=()=>{if(!M)return t.props.itemsSource??[];const y=M.toLowerCase();return(t.props.itemsSource??[]).filter(Z=>O()?O().some(w=>String(Z[w.key]??"").toLowerCase().includes(y)):F(Z).toLowerCase().includes(y))},W=y=>{if(!M)return[{part:y,highlight:!1}];const Z=Ji(M),w=new RegExp(`(${Z})`,"gi");return y.split(w).map(G=>({part:G,highlight:M.toLowerCase()===G.toLowerCase()}))},K=()=>h.save||h.blur||h.change,ee=()=>{const y=[];return t.props.required&&y.push({message:t.props.requiredMessage??X().requiredMessage.replace("{label}",t.props.label||""),type:"save",validator:Z=>!!Z}),[...y,...t.props.rules??[]]},te=async(y,Z)=>{const w=ee();if(w.length<=0||t.props.disabled)return!0;h[Z]="",t.requestUpdate();const G=w.filter(me=>me.type===Z);for(const me of G){const Ee=e&&t.props.useObjBinding?y==null?"":String(y):y;if(!await me.validator(Ee))return h[Z]=me.message,t.requestUpdate(),!1}return!0},P=async(y="save")=>K()!==""?!1:await te(c(),y),g={validate:P,initValidator:()=>{h.change="",h.blur="",h.save="",t.requestUpdate()}};t.validator&&(t.validator.addValidator(g),t.onCleanup(()=>{var y;return(y=t.validator)==null?void 0:y.removeValidator(g)}));const R=new to({anchor:()=>s.value??null,panel:()=>l.value??null,maxHeight:Q,container:()=>o.value??null,useMinWidth:!0,listWidth:()=>t.props.listWidth,ignoreScrollTargets:y=>y===d,requestClose:()=>{u&&ke(!1)}});t.onCleanup(()=>R.destroy());const I=y=>{`${y.ctrlKey?"ctrl+":""}${y.altKey?"alt+":""}${y.key.toLowerCase()}`==="escape"&&ke(!1)},H=y=>{const Z=Q()-(O()&&t.props.useFilter?29:0)-(re()?32:0),w=U()*y;return Math.max(0,w-Z/2+U())};let pe=null;const ke=(y,Z,w=!0)=>{if(k||u===y)return;u=y;const G=++x;S=y&&Z!==void 0?{generation:G,step:Z}:null,L=null,t.requestUpdate(),y?(pe=oo(),R.open(),h.save="",window.addEventListener("keydown",I),queueMicrotask(()=>{var Ee;if(k||!u||G!==x)return;if(c()!=null){const ve=T().findIndex(V);ve>=0&&(e&&(f=ve,t.requestUpdate()),d&&(d.scrollTop=H(ve)))}w&&Z===void 0&&(p.value?p.value.focus():(Ee=r.value)==null||Ee.focus())})):(pe==null||pe.release(),pe=null,R.close(),t.emit("close"),te(c(),"blur"),window.removeEventListener("keydown",I),M="",f=-1,t.emit("close"),queueMicrotask(()=>{var me;k||u||G!==x||(me=r.value)==null||me.focus()}))},Me=()=>{var y;t.props.disabled||(ke(!u),(y=r.value)==null||y.focus())},He=y=>{var Z;m(y),ke(!1),(Z=r.value)==null||Z.focus()},Fe=Qi(y=>{M=y.target.value,e&&(f=T().length?0:-1),t.requestUpdate(),queueMicrotask(()=>{const Z=T().length;le.setOptions({...le.options,count:Z}),le.measure(),d&&(d.scrollTop=0,le.scrollToIndex(0),le.measure())})},300),Ge=y=>{var Z;if(u){y.stopPropagation(),y.preventDefault();const w=p.value??((Z=i.value)==null?void 0:Z.querySelector("div:first-child"));w==null||w.focus()}},et=y=>{var Ee,ve,Ce;const Z=((Ee=l.value)==null?void 0:Ee.querySelectorAll('[tabindex="0"]'))??[],w=[...Array.from(Z)];p.value&&w.unshift(p.value);const G=w[0],me=w[w.length-1];(y.target===G||y.target===me)&&r.value&&(y.target===G&&y.shiftKey?(y.stopPropagation(),y.preventDefault(),(ve=r.value)==null||ve.focus()):y.target===me&&!y.shiftKey&&(y.stopPropagation(),y.preventDefault(),(Ce=r.value)==null||Ce.focus()))},lt=y=>{d&&(y.shiftKey?d.scrollTop-=24:d.scrollTop+=24)},Ke=()=>{var Z;const y=Array.from(((Z=l.value)==null?void 0:Z.querySelectorAll('[tabindex="0"]'))??[]);return p.value&&!y.includes(p.value)&&y.unshift(p.value),y},Ue=y=>{var me;const Z=Ke();if(Z.length===0)return;const w=Z.indexOf(document.activeElement),G=w<0?y>0?0:Z.length-1:Math.min(Z.length-1,Math.max(0,w+y));(me=Z[G])==null||me.focus()},ze=y=>y.find(Z=>Z.getAttribute("aria-selected")==="true")??null,Ze=y=>{ke(!0,y)},Be=()=>{const y=S;!y||L===y||(L=y,queueMicrotask(()=>{var G;if(L===y&&(L=null),k||!u||y.generation!==x||S!==y||!((G=l.value)!=null&&G.isConnected))return;const Z=Ke(),w=p.value??ze(Z)??Z[y.step<0?Z.length-1:0];w!=null&&w.isConnected&&(S=null,w.focus())}))},ot=()=>{var y;ke(!1),(y=r.value)==null||y.focus()},mt=y=>{if(y.key==="Tab"){Ge(y);return}if(y.key==="Enter"||y.key===" "){u||(y.preventDefault(),y.stopPropagation(),Ze(1));return}if(y.key==="ArrowDown"||y.key==="ArrowUp"){y.preventDefault(),y.stopPropagation();const Z=y.key==="ArrowDown"?1:-1;u?Ue(Z):Ze(Z);return}y.key==="Escape"&&u&&(y.preventDefault(),ot())},Ye=y=>{if(e){const Z=T();if(y.key==="ArrowDown"||y.key==="ArrowUp"){if(y.preventDefault(),!Z.length)return;f=y.key==="ArrowDown"?f>=Z.length-1?0:f+1:f<=0?Z.length-1:f-1,t.requestUpdate();const w=x;queueMicrotask(()=>{!k&&u&&w===x&&le.scrollToIndex(f,{align:"auto"})})}else if(y.key==="Enter"){y.preventDefault();const w=Z[f];w&&He(t.props.useObjBinding?w:w[_()])}return}if(y.key==="Tab"){et(y);return}if(y.key==="ArrowDown"||y.key==="ArrowUp"){y.preventDefault(),Ue(y.key==="ArrowDown"?1:-1);return}y.key==="Escape"&&(y.preventDefault(),ot())},at=(y,Z)=>{if(!e){if(y.key==="Tab"){lt(y);return}if(y.key==="ArrowDown"||y.key==="ArrowUp"){y.preventDefault(),y.stopPropagation(),Ue(y.key==="ArrowDown"?1:-1);return}if(y.key==="Escape"){y.preventDefault(),y.stopPropagation(),ot();return}(y.key==="Enter"||y.key===" ")&&(y.key==="Enter"&&y.preventDefault(),He(Z))}};return{api:{validate:P,setOpen:y=>{k||y&&t.props.disabled||ke(y,void 0,!1)},isOpen:()=>!k&&u},render(){const y=t.props,Z=c();if(Z!==$){$=Z;const qe=Z;queueMicrotask(()=>{te(qe,"change"),t.emit("change",qe,ie(E(qe)))})}const w=typeof y.width=="number"?`${Ae(y.width)}rem`:y.width,G=ge(y,Xi),{aria:me,dom:Ee}=eo(G),ve=!e&&y.variant==="text",Ce=!e&&y.size==="small",Ie=t.slots.has("icon")?t.slot("icon",{isOpen:u}):u?Qn("14",ve?"currentColor":"var(--moz-color-accent)"):Xn("14",ve?"currentColor":"var(--moz-color-text-subtle)",y.disabled),Re=n.html`<button
939
939
  type="button"
940
940
  class="icon-container"
941
- ${fe(me)}
941
+ ${ce(me)}
942
942
  role="combobox"
943
943
  aria-haspopup="listbox"
944
944
  aria-expanded=${u?"true":"false"}
945
- aria-controls=${i}
946
- aria-label=${Ee.ifDefined(me["aria-label"]??w.label??void 0)}
947
- @keydown=${gt}
945
+ aria-controls=${a}
946
+ aria-label=${$e.ifDefined(me["aria-label"]??y.label??void 0)}
947
+ @keydown=${mt}
948
948
  ${Y.ref(r)}
949
- ?disabled=${!!w.disabled}
949
+ ?disabled=${!!y.disabled}
950
950
  >
951
- ${et}
952
- </button>`,Le=t.slots.has("input-container")?s.html`<div
951
+ ${Ie}
952
+ </button>`,Pe=t.slots.has("input-container")?n.html`<div
953
953
  class="moz-input-container select-input-container"
954
- style=${te.styleMap({width:ae})}
955
- @click=${Ae}
956
- ${Y.ref(n)}
954
+ style=${j.styleMap({width:w})}
955
+ @click=${Me}
956
+ ${Y.ref(s)}
957
957
  >
958
958
  <div
959
- class=${V("input-container-wrapper",{"input-container-wrapper--disabled":w.disabled})}
959
+ class=${A("input-container-wrapper",{"input-container-wrapper--disabled":y.disabled})}
960
960
  >
961
- ${t.slot("input-container",{text:J(),item:U})}
961
+ ${t.slot("input-container",{text:oe(),item:Z})}
962
962
  </div>
963
- ${Ne}
964
- </div>`:s.html`<div
963
+ ${Re}
964
+ </div>`:n.html`<div
965
965
  class="moz-input-container select-input-container"
966
- style=${te.styleMap({width:ae})}
967
- @click=${Ae}
968
- ${Y.ref(n)}
966
+ style=${j.styleMap({width:w})}
967
+ @click=${Me}
968
+ ${Y.ref(s)}
969
969
  >
970
970
  <input
971
- ${fe(Te)}
972
- .value=${J()??""}
973
- placeholder=${Ee.ifDefined(w.placeholder??void 0)}
971
+ ${ce(Ee)}
972
+ .value=${oe()??""}
973
+ placeholder=${$e.ifDefined(y.placeholder??void 0)}
974
974
  autocomplete="off"
975
- ?disabled=${!!w.disabled}
975
+ ?disabled=${!!y.disabled}
976
976
  readonly
977
977
  tabindex="-1"
978
- class=${V("select-display-input",{"select-display-input--disabled":w.disabled})}
978
+ class=${A("select-display-input",{"select-display-input--disabled":y.disabled})}
979
979
  />
980
980
  ${t.slot("input")}
981
- ${Ne}
982
- </div>`;return s.html`
981
+ ${Re}
982
+ </div>`;return n.html`
983
983
  <div
984
- class=${V(e?"moz-table-select":"moz-select",{"is-invalid":Z()!=="","is-open":u,disabled:!!w.disabled,"moz-select--text":be,"moz-select--small":Pe},!e&&w.class)}
985
- style=${te.styleMap(Ce(w.style))}
984
+ class=${A(e?"moz-table-select":"moz-select",{"is-invalid":K()!=="","is-open":u,disabled:!!y.disabled,"moz-select--text":ve,"moz-select--small":Ce},!e&&y.class)}
985
+ style=${j.styleMap(he(y.style))}
986
986
  ${Y.ref(o)}
987
987
  >
988
988
  <div class="input-wrapper">
989
- ${w.label?Xe({disabled:w.disabled,required:w.required},w.label):s.nothing}
990
- ${Le}
989
+ ${y.label?Je({disabled:y.disabled,required:y.required},y.label):n.nothing}
990
+ ${Pe}
991
991
  </div>
992
992
 
993
- ${Z()!==""?s.html`<span class="moz-input-invalid-message">${Z()}</span>`:s.nothing}
993
+ ${K()!==""?n.html`<span class="moz-input-invalid-message">${K()}</span>`:n.nothing}
994
994
  </div>
995
- `},renderPortal(){if(!u)return s.nothing;Fe();const w=t.props;a();const U=F(),ae=z();se.options.count!==ae.length&&se.setOptions({...se.options,count:ae.length}),se._willUpdate();const he=po(d?se.getVirtualItems():[],ae.length,K(),d),me=se.getTotalSize(),Te=he.map(be=>{if(be.index>=ae.length)return null;const Pe=ae[be.index];return Pe?{index:be.index,value:Pe,size:be.size,start:be.start}:null}).filter(be=>be!==null);return s.html`<div
996
- class=${V(I()?"table-list-box moz-table-select-list":"list-box moz-select-list",{"no-label":!w.label},e&&w.class)}
997
- @keydown=${S}
995
+ `},renderPortal(){if(!u)return n.nothing;Be();const y=t.props;c();const Z=_(),w=T();le.options.count!==w.length&&le.setOptions({...le.options,count:w.length}),le._willUpdate();const G=ko(d?le.getVirtualItems():[],w.length,U(),d),me=le.getTotalSize(),Ee=G.map(ve=>{if(ve.index>=w.length)return null;const Ce=w[ve.index];return Ce?{index:ve.index,value:Ce,size:ve.size,start:ve.start}:null}).filter(ve=>ve!==null);return n.html`<div
996
+ class=${A(O()?"table-list-box moz-table-select-list":"list-box moz-select-list",{"no-label":!y.label},e&&y.class)}
997
+ @keydown=${Ye}
998
998
  ${Y.ref(l)}
999
999
  >
1000
- ${w.useFilter?s.html`<div class="filter-input">
1001
- ${e?s.html`<div class="search-icon">${lo("12","var(--moz-color-text-subtle)")}</div>`:s.nothing}
1000
+ ${y.useFilter?n.html`<div class="filter-input">
1001
+ ${e?n.html`<div class="search-icon">${go("12","var(--moz-color-text-subtle)")}</div>`:n.nothing}
1002
1002
  <input
1003
- ${Y.ref(h)}
1004
- @mousedown=${be=>be.stopPropagation()}
1005
- placeholder=${w.searchPlaceholder??j().searchPlaceholder}
1006
- @input=${We}
1003
+ ${Y.ref(p)}
1004
+ @mousedown=${ve=>ve.stopPropagation()}
1005
+ placeholder=${y.searchPlaceholder??X().searchPlaceholder}
1006
+ @input=${Fe}
1007
1007
  class="filter-input__field"
1008
1008
  />
1009
- ${e?s.nothing:s.html`<div class="search-icon">${lo(I()?"12":"14","var(--moz-color-text-subtle)")}</div>`}
1010
- </div>`:s.nothing}
1011
- ${re()?s.html`<div class="table-header">${I().map(be=>s.html`<div class="table-header-cell" style=${te.styleMap(X(be))}>${be.header??""}</div>`)}</div>`:s.nothing}
1009
+ ${e?n.nothing:n.html`<div class="search-icon">${go(O()?"12":"14","var(--moz-color-text-subtle)")}</div>`}
1010
+ </div>`:n.nothing}
1011
+ ${re()?n.html`<div class="table-header">${O().map(ve=>n.html`<div class="table-header-cell" style=${j.styleMap(J(ve))}>${ve.header??""}</div>`)}</div>`:n.nothing}
1012
1012
  <div
1013
- id=${i}
1013
+ id=${a}
1014
1014
  role="listbox"
1015
- class=${V("list-box-container",{"list-box-container--with-filter":w.useFilter,"list-box-container--with-header":re(),"list-box-container--with-filter-header":w.useFilter&&re()})}
1015
+ class=${A("list-box-container",{"list-box-container--with-filter":y.useFilter,"list-box-container--with-header":re(),"list-box-container--with-filter-header":y.useFilter&&re()})}
1016
1016
  ${Y.ref(N)}
1017
1017
  >
1018
- <div class="inner-container" style=${te.styleMap({height:`${me}px`})} ${Y.ref(c)}>
1019
- ${Te.map(({index:be,value:Pe,start:et})=>{const Ne=R(Pe);return s.html`<div
1020
- data-index=${be}
1018
+ <div class="inner-container" style=${j.styleMap({height:`${me}px`})} ${Y.ref(i)}>
1019
+ ${Ee.map(({index:ve,value:Ce,start:Ie})=>{const Re=V(Ce);return n.html`<div
1020
+ data-index=${ve}
1021
1021
  role="option"
1022
- aria-selected=${Ne?"true":"false"}
1023
- ${Y.ref(Le=>{Le&&se.measureElement(Le)})}
1024
- style=${te.styleMap({transform:`translateY(${et}px)`})}
1025
- class=${V(I()?"table-row virtual-row":"list-box-item virtual-row",{"list-selected":Ne,"row-selected":!!I()&&Ne,"row-focused":e&&be===g})}
1026
- @mouseenter=${()=>{e&&(g=be,t.requestUpdate())}}
1027
- @click=${()=>Ue(w.useObjBinding?Pe:Pe[U])}
1022
+ aria-selected=${Re?"true":"false"}
1023
+ ${Y.ref(Pe=>{Pe&&le.measureElement(Pe)})}
1024
+ style=${j.styleMap({transform:`translateY(${Ie}px)`})}
1025
+ class=${A(O()?"table-row virtual-row":"list-box-item virtual-row",{"list-selected":Re,"row-selected":!!O()&&Re,"row-focused":e&&ve===f})}
1026
+ @mouseenter=${()=>{e&&(f=ve,t.requestUpdate())}}
1027
+ @click=${()=>He(y.useObjBinding?Ce:Ce[Z])}
1028
1028
  tabindex="0"
1029
- @keydown=${Le=>de(Le,w.useObjBinding?Pe:Pe[U])}
1029
+ @keydown=${Pe=>at(Pe,y.useObjBinding?Ce:Ce[Z])}
1030
1030
  >
1031
- ${t.slots.has("list-item")?t.slot("list-item",{text:_(Pe),item:Pe,index:be,highlightText:W(_(Pe))}):I()?I().map(Le=>s.html`<div class="table-cell" style=${te.styleMap(X(Le))} title=${String(Pe[Le.key]??"")}>${W(String(Pe[Le.key]??"")).map(Oe=>s.html`<span class=${V({highlight:Oe.highlight})}>${Oe.part}</span>`)}</div>`):s.html`<div class="highlight-container" title=${_(Pe)}>
1032
- ${W(_(Pe)).map(Le=>s.html`<span class=${V({highlight:Le.highlight})}>${Le.part}</span>`)}
1031
+ ${t.slots.has("list-item")?t.slot("list-item",{text:F(Ce),item:Ce,index:ve,highlightText:W(F(Ce))}):O()?O().map(Pe=>n.html`<div class="table-cell" style=${j.styleMap(J(Pe))} title=${String(Ce[Pe.key]??"")}>${W(String(Ce[Pe.key]??"")).map(qe=>n.html`<span class=${A({highlight:qe.highlight})}>${qe.part}</span>`)}</div>`):n.html`<div class="highlight-container" title=${F(Ce)}>
1032
+ ${W(F(Ce)).map(Pe=>n.html`<span class=${A({highlight:Pe.highlight})}>${Pe.part}</span>`)}
1033
1033
  </div>`}
1034
- ${Ne?Ps(I()?"12":"14","var(--moz-color-accent)",!1,"icon-check"):s.nothing}
1034
+ ${Re?jn(O()?"12":"14","var(--moz-color-accent)",!1,"icon-check"):n.nothing}
1035
1035
  </div>`})}
1036
1036
  </div>
1037
1037
 
1038
- ${!ae||ae.length<=0?s.html`<div class=${I()?"empty-row table-row":"list-box-item loading not-hover"}>
1039
- ${t.slots.has("empty")?t.slot("empty"):w.emptyText??j().emptyText}
1040
- </div>`:s.nothing}
1038
+ ${!w||w.length<=0?n.html`<div class=${O()?"empty-row table-row":"list-box-item loading not-hover"}>
1039
+ ${t.slots.has("empty")?t.slot("empty"):y.emptyText??X().emptyText}
1040
+ </div>`:n.nothing}
1041
1041
  </div>
1042
- </div>`}}}}),Ts=zs(),pi={name:"MozSelect",core:Ts,booleanProps:["disabled","readonly","required","useFilter","useObjBinding"],props:["itemsSource","label","width","variant","size","required","readonly","disabled","keyProp","displayProp","separator","rules","useObjBinding","useFilter","listWidth","placeholder","searchPlaceholder","emptyText","requiredMessage","modelValue"],emits:["change","close","update:modelValue"],slots:["input-container","input","icon","list-item","empty"],expose:!0};function Lo(e,t=12){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function hi(e="14",t="var(--moz-color-text-subtle)",o=!1){const n=Lo(e,14);return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
1042
+ </div>`}}}}),es=Jn(),ea={name:"MozSelect",core:es,booleanProps:["disabled","readonly","required","useFilter","useObjBinding"],props:["itemsSource","label","width","variant","size","required","readonly","disabled","keyProp","displayProp","separator","rules","useObjBinding","useFilter","listWidth","placeholder","searchPlaceholder","emptyText","requiredMessage","modelValue"],emits:["change","close","update:modelValue"],slots:["input-container","input","icon","list-item","empty"],expose:!0};function Oo(e,t=12){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function ta(e="14",t="var(--moz-color-text-subtle)",o=!1){const s=Oo(e,14);return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${s.width} height=${s.height} viewBox="0 0 14 14" fill="none">
1043
1043
  <path
1044
1044
  fill-rule="evenodd"
1045
1045
  clip-rule="evenodd"
1046
1046
  d="M4.28543 4.37082C4.63291 4.01541 5.20272 4.00898 5.55814 4.35646L9.05717 7.77743L12.4606 4.36449C12.8116 4.01253 13.3815 4.01174 13.7334 4.36272C14.0854 4.7137 14.0862 5.28355 13.7352 5.63551L9.70247 9.67945C9.35394 10.029 8.78895 10.0325 8.43602 9.68748L4.29979 5.64353C3.94437 5.29605 3.93794 4.72624 4.28543 4.37082Z"
1047
1047
  fill=${o?"var(--moz-color-text-muted)":t}
1048
1048
  ></path>
1049
- </svg>`}function mi(e="14",t="var(--moz-color-text-subtle)",o=!1){const n=Lo(e,14);return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
1049
+ </svg>`}function oa(e="14",t="var(--moz-color-text-subtle)",o=!1){const s=Oo(e,14);return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${s.width} height=${s.height} viewBox="0 0 14 14" fill="none">
1050
1050
  <path
1051
1051
  fill-rule="evenodd"
1052
1052
  clip-rule="evenodd"
1053
1053
  d="M13.7433 9.67312C13.3958 10.0285 12.826 10.035 12.4705 9.68748L8.97152 6.26652L5.56806 9.67946C5.21708 10.0314 4.64723 10.0322 4.29527 9.68123C3.94331 9.33024 3.94252 8.7604 4.2935 8.40844L8.32621 4.36449C8.67474 4.01499 9.23974 4.01141 9.59267 4.35647L13.7289 8.40041C14.0843 8.7479 14.0907 9.31771 13.7433 9.67312Z"
1054
1054
  fill=${o?"var(--moz-color-text-muted)":t}
1055
1055
  ></path>
1056
- </svg>`}function fi(e="12",t="var(--moz-color-text-subtle)",o=!1){const n=Lo(e),l=o?"var(--moz-color-text-muted)":t;return n.width<=13?s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 12 12" fill="none">
1056
+ </svg>`}function na(e="12",t="var(--moz-color-text-subtle)",o=!1){const s=Oo(e),l=o?"var(--moz-color-text-muted)":t;return s.width<=13?n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${s.width} height=${s.height} viewBox="0 0 12 12" fill="none">
1057
1057
  <path
1058
1058
  d="M10.293 11.375L7.71099 8.79103C6.76581 9.4655 5.60162 9.76002 4.44941 9.61616C3.29719 9.4723 2.24116 8.90058 1.49082 8.01442C0.740489 7.12825 0.350682 5.99242 0.398745 4.83225C0.446808 3.67209 0.929227 2.57239 1.75029 1.75133C2.57135 0.930264 3.67106 0.447845 4.83122 0.399783C5.99138 0.35172 7.12722 0.741526 8.01338 1.49186C8.89954 2.2422 9.47126 3.29823 9.61512 4.45044C9.75898 5.60265 9.46446 6.76684 8.78999 7.71203L11.373 10.294C11.5163 10.4374 11.5969 10.6318 11.5969 10.8345C11.5969 11.0373 11.5163 11.2317 11.373 11.375C11.2296 11.5184 11.0352 11.5989 10.8325 11.5989C10.6298 11.5989 10.4363 11.5184 10.293 11.375ZM1.92899 5.02703C1.92899 5.64015 2.1108 6.2395 2.45144 6.7493C2.79207 7.25909 3.27622 7.65642 3.84267 7.89106C4.40912 8.12569 5.03243 8.18708 5.63377 8.06746C6.23511 7.94785 6.78748 7.6526 7.22102 7.21906C7.65457 6.78552 7.94981 6.23315 8.06943 5.63181C8.18904 5.03047 8.12765 4.40716 7.89302 3.84071C7.65839 3.27426 7.26105 2.79011 6.75126 2.44947C6.24147 2.10884 5.64211 1.92703 5.02899 1.92703C4.20682 1.92703 3.41832 2.25364 2.83696 2.835C2.2556 3.41636 1.92899 4.20486 1.92899 5.02703Z"
1059
1059
  fill=${l}
1060
1060
  ></path>
1061
- </svg>`:s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
1061
+ </svg>`:n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${s.width} height=${s.height} viewBox="0 0 14 14" fill="none">
1062
1062
  <path
1063
1063
  d="M5.84944 0.402344C2.83893 0.402344 0.398438 2.84284 0.398438 5.85334C0.398438 8.86385 2.83893 11.3043 5.84944 11.3043C7.0308 11.3043 8.12438 10.9285 9.01716 10.29L12.0619 13.3347C12.4134 13.6862 12.9832 13.6862 13.3347 13.3347C13.6862 12.9832 13.6862 12.4134 13.3347 12.0619L10.2893 9.01651C10.9259 8.12457 11.3004 7.03269 11.3004 5.85334C11.3004 2.84284 8.85994 0.402344 5.84944 0.402344ZM2.19844 5.85334C2.19844 3.83695 3.83305 2.20234 5.84944 2.20234C7.86583 2.20234 9.50044 3.83695 9.50044 5.85334C9.50044 7.86974 7.86583 9.50434 5.84944 9.50434C3.83305 9.50434 2.19844 7.86974 2.19844 5.85334Z"
1064
1064
  fill=${l}
1065
1065
  ></path>
1066
- </svg>`}const gi=new Set(["itemsSource","inline","filterMode","filterValue","searchPlaceholder","preserveMissingValues","loading","loadingText","listBoxHeight","label","width","required","readonly","disabled","keyProp","displayProp","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","autoSelectNewItems","selectAllWhenEmpty","modelValue","class","style","dropdown-item-height"]);function vi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const As=$e({name:"moz-multi-select",defaults:{inline:!1,filterMode:"local",preserveMissingValues:!1,loading:!1,listBoxHeight:224,label:null,width:200,required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProp:"text",disabledProp:"disabled",rules:[],useSelectAll:!0,useFilter:!1,headerFormat:"ITEMS ({count})",listBoxWidth:0,useSpecificSelect:!0,autoSelectNewItems:!1,selectAllWhenEmpty:!1,modelValue:null},setup(e){const t=Y.createRef(),o=Y.createRef(),n=Y.createRef(),l=Y.createRef(),c=Y.createRef();let r=null;const h=()=>e.props.keyProp||"id",d=()=>e.props.disabledProp||"disabled";let b=e.props.modelValue??null;const a=()=>{const v=e.controlled("modelValue")?e.props.modelValue:b;return Array.isArray(v)?v:[]},m=v=>{e.controlled("modelValue")||(b=v),e.emit("update:modelValue",v),e.requestUpdate()};let u=!1,E=!1,x=0;e.onCleanup(()=>{E=!0,x+=1});const $=ot("moz-multiselect-listbox-");let P=e.props.filterValue??"",L=!1,g=!1,i={},p=[];const y={change:"",blur:"",save:""};let F=e.props.itemsSource;const I=(()=>{const v=e.props["dropdown-item-height"];if(v!=null)return+v;try{return+getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height").trim().replace("px","")||void 0}catch{return}})();let K=I??(e.props.inline?24:28),oe=!!e.props.inline,re="",j=0,k=!1,R=null;const X=()=>{R=null,j++},se=()=>{!k&&R===null&&(r!=null&&r.isConnected)&&(R=r.scrollTop)},N=()=>{const v=j,O=r;R===null||!O||queueMicrotask(()=>{if(v!==j||O!==r||!O.isConnected||k||R===null||O.clientHeight<=0)return;const B=Math.min(Math.max(0,R),Math.max(0,O.scrollHeight-O.clientHeight));R=null,O.scrollTop!==B&&ne.scrollToOffset(B,{behavior:"auto"})})},ne=new st.Virtualizer({count:0,getScrollElement:()=>r,estimateSize:()=>K,overscan:5,observeElementRect:st.observeElementRect,observeElementOffset:st.observeElementOffset,scrollToFn:st.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{X(),he==null||he.release(),he=null}),e.onCleanup(ne._didMount());const _=v=>{se(),j++,r=v??null,v&&(ne._willUpdate(),N(),e.requestUpdate())},J=v=>typeof e.props.displayProp=="function"?e.props.displayProp(v):typeof v=="object"?v[e.props.displayProp]??"":v,z=()=>{const v=new Map;return(e.props.itemsSource??[]).forEach(O=>v.set(O[h()],O)),v},W=()=>{if(e.props.filterMode==="remote"||!P)return e.props.itemsSource??[];const v=P.toLowerCase();return(e.props.itemsSource??[]).filter(O=>J(O).toLowerCase().indexOf(v)>-1)},Z=v=>{if(!P)return[{part:v,highlight:!1}];const O=vi(P),B=new RegExp(`(${O})`,"gi");return v.split(B).map(ee=>({part:ee,highlight:P.toLowerCase()===ee.toLowerCase()}))},G=v=>new Set(a()).has(v[h()]),Q=v=>p.some(O=>bt(O.item,v)),T=()=>{const v=a(),O=W();if(v.length<O.length||v.length===0||O.length===0)return!1;const B=new Set(v);return O.every(ee=>B.has(ee[h()]))},f=()=>new Set(W().map(v=>v[h()])),D=()=>new Set(a()),A=()=>{const v=f(),O=D();return!v.size||!O.size||O.size<v.size?!1:Array.from(v).every(B=>O.has(B))},H=()=>y.save||y.blur||y.change,pe=()=>{const v=[];return e.props.required&&v.push({message:e.locale.MultiSelect.required.replace("{label}",e.props.label||""),type:"save",validator:O=>!!O.length}),[...v,...e.props.rules??[]]},ke=async(v,O)=>{const B=pe();if(B.length<=0)return;if(e.props.disabled)return!0;y[O]="",e.requestUpdate();const ee=B.filter(le=>le.type===O);for(const le of ee)if(!await le.validator(v))return y[O]=le.message,e.requestUpdate(),!1;return!0},Ae=async(v="save")=>H()!==""?!1:await ke(a(),v)??!0,Ue={validate:Ae,initValidator:()=>{y.change="",y.blur="",y.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(Ue),e.onCleanup(()=>{var v;return(v=e.validator)==null?void 0:v.removeValidator(Ue)}));const We=v=>{if(e.props.disabled||e.props.readonly||e.props.loading)return;const O=z(),B=new Set;a().forEach(le=>{const ce=O.get(le);(ce==null?void 0:ce[d()])===!0&&B.add(le)}),v.forEach(le=>{const ce=O.get(le);(ce&&ce[d()]!==!0||!ce&&e.props.preserveMissingValues)&&B.add(le)});const ee=Array.from(B);bt(a(),ee)||(m(ee),e.emit("change",ee,ee.map(le=>O.get(le)).filter(Boolean)),ke(ee,"change"))},Qe=(v,O)=>v.filter(B=>G(B)!==O).map(B=>B[h()]),Je=(v,O,B)=>{if(B.shiftKey&&p.length>0){const ee=p[0],le=Math.min(ee.index,O),ce=Math.max(ee.index,O);p=W().slice(le,ce+1).map((ge,_e)=>({item:ge,index:le+_e}))}else B.ctrlKey?p.push({item:v,index:O}):p=[{item:v,index:O}];return p.length},nt=(v=!0)=>{const O=p.map(le=>le.item),B=Qe(O,v);let ee=a();v?ee=[...ee,...B]:ee=ee.filter(le=>!B.some(ce=>le===ce)),We(ee)},qe=(v,O,B)=>{if(v[d()]===!0)return;const ee=p.some(ce=>ce.item[h()]===v[h()]);(p.length<=1||!ee)&&Je(v,O,{shiftKey:!1,ctrlKey:!1});const le=a().some(ce=>ce===v[h()]);nt(!le),B.stopPropagation()},Be=(v,O,B)=>{v[d()]!==!0&&(!B.ctrlKey&&!B.shiftKey&&p.length<=1&&qe(v,O,B),Je(v,O,B),e.requestUpdate())},xe=(v,O,B)=>{if(v[d()]===!0)return;const ee=a(),le=D().size!==0&&ee.every(ce=>ce===v[h()]);We(le?[]:[v[h()]]),Je(v,O,B),B.stopPropagation()},Ge=v=>{v.stopPropagation();const O=f().size===D().size&&[...f()].every(B=>D().has(B));if(T()&&O){const B=new Set((e.props.itemsSource??[]).filter(ee=>ee[d()]===!0).map(ee=>ee[h()]));We(Array.from(B))}else{const B=new Set(W().filter(ee=>ee[d()]!==!0).map(ee=>ee[h()]));We(Array.from(B))}},Fe=v=>{if(v.stopPropagation(),A()){const O=f();We(a().filter(B=>!O.has(B)))}else{const O=new Set([...a(),...f()]);We(Array.from(O))}},it=v=>{const O=v.target;O===r&&(X(),L=O.scrollTop>0,e.requestUpdate())},gt=()=>{const v=a();if(!(v!=null&&v.length))return"";const O=z(),B=v.map(le=>O.get(le)).filter(Boolean).map(le=>typeof e.props.displayProp=="function"?e.props.displayProp(le):le[e.props.displayProp]||""),ee=e.props.itemsSource??[];return B.length===ee.length&&B.length>2?`${e.props.headerFormat.replace(/\{count(:.*?)?}/g,"ALL")}`:B.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${B.length.toLocaleString()}`):B.join(", ")||""},S=(v,O,B=10)=>{const ee=window.innerHeight||document.documentElement.clientHeight,le=window.innerWidth||document.documentElement.clientWidth,ce=v.getBoundingClientRect(),ge=O.getBoundingClientRect(),_e=ce.bottom+ge.height+B>ee;if(!_e)return!1;const mt=ce.top-ge.height-B<0,ze=ce.right+ge.width+B>le,at=ce.left-ge.width-B<0;return _e&&!mt||ze&&!at},de=()=>{const v=o.value;if(!v)return;const O=v.getBoundingClientRect();let B=`${O.width}px`;e.props.listBoxWidth&&(B=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),i={width:String(B),left:`${O.left}px`,top:`${O.top+(g?0:O.height)}px`},e.requestUpdate()},w=v=>{var O;(O=n.value)!=null&&O.contains(v.target)||me(!1)},U=v=>{var O,B;!((O=t.value)!=null&&O.contains(v.target))&&!((B=n.value)!=null&&B.contains(v.target))&&(me(!1),document.removeEventListener("click",U,{capture:!0}))},ae=v=>{var B;`${v.ctrlKey?"ctrl+":""}${v.altKey?"alt+":""}${v.key.toLowerCase()}`==="escape"&&(me(!1),(B=l.value)==null||B.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",w,{capture:!0}),document.removeEventListener("click",U,{capture:!0}),window.removeEventListener("keydown",ae)});let he=null;const me=(v,O=!0)=>{if(E||u===v)return;const B=++x;X(),k=v;const ee=u;if(u=v,e.requestUpdate(),v)he=Zt(),document.body.addEventListener("scroll",w,{capture:!0}),document.addEventListener("click",U,{capture:!0}),y.save="",window.addEventListener("keydown",ae),de(),queueMicrotask(()=>{var le,ce;E||!u||B!==x||(!e.props.inline&&u&&o.value&&((le=n.value)!=null&&le.isConnected)&&(g=S(o.value,n.value)),de(),ne.measure(),X(),r&&(r.scrollTop=0),k=!1,O&&(c.value?c.value.focus():(ce=l.value)==null||ce.focus()))});else if(he==null||he.release(),he=null,P="",c.value&&(c.value.value=""),document.body.removeEventListener("scroll",w,{capture:!0}),document.removeEventListener("click",U,{capture:!0}),ke(a(),"blur"),window.removeEventListener("keydown",ae),ee&&!v){const le=a();if(e.props.selectAllWhenEmpty&&(!le||le.length===0)){const ce=(e.props.itemsSource??[]).filter(ge=>ge[d()]!==!0).map(ge=>ge[h()]);ce.length>0&&(m(ce),e.emit("change",ce,(e.props.itemsSource??[]).filter(ge=>ce.includes(ge[h()]))))}e.emit("close")}},Te=v=>{var O;if(u){v.stopPropagation(),v.preventDefault();const B=(O=n.value)==null?void 0:O.querySelector("input:first-child, button:first-child");B==null||B.focus()}},be=v=>{var le,ce,ge;const O=((le=n.value)==null?void 0:le.querySelectorAll("input, button"))??[],B=O[0],ee=O[O.length-1];(v.target===B||v.target===ee)&&l.value&&(v.target===B&&v.shiftKey?(v.stopPropagation(),v.preventDefault(),(ce=l.value)==null||ce.focus()):v.target===ee&&!v.shiftKey&&(v.stopPropagation(),v.preventDefault(),(ge=l.value)==null||ge.focus()))},Pe=v=>{v.key==="Tab"&&Te(v)},et=v=>{!e.props.inline&&v.key==="Tab"&&be(v)},Ne=v=>{!u&&!e.props.inline||(X(),k=!0,P=v.target.value,p=[],e.emit("update:filterValue",P),e.requestUpdate(),queueMicrotask(()=>{ht(e.props.loading?[]:W()),ne.measure(),X(),r&&(r.scrollTop=0),k=!1}))},Le=()=>{var v;e.props.disabled||(me(!u),(v=l.value)==null||v.focus())},Oe=(v,O)=>{var B,ee;if(v.key==="Enter"||v.key===" "){v.preventDefault(),v.stopPropagation(),O();return}if(v.key==="ArrowDown"||v.key==="ArrowUp"){v.preventDefault(),v.stopPropagation();const le=Array.from(((B=n.value)==null?void 0:B.querySelectorAll('[tabindex="0"]'))??[]),ce=le.indexOf(v.currentTarget),ge=le[ce+(v.key==="ArrowDown"?1:-1)];ge==null||ge.focus();return}v.key==="Escape"&&!e.props.inline&&(v.preventDefault(),v.stopPropagation(),me(!1),(ee=l.value)==null||ee.focus())},ct=(v,O)=>{Be(v,O,{ctrlKey:!1,shiftKey:!1,stopPropagation(){}})},rt=(v,O)=>{if(p=[],e.props.preserveMissingValues||JSON.stringify(v)===JSON.stringify(O))return;const B=new Set(v.map(le=>le[h()])),ee=a();if(e.props.autoSelectNewItems&&O){const le=new Set(O.map(ge=>ge[h()])),ce=v.filter(ge=>!le.has(ge[h()])).map(ge=>ge[h()]);if(ce.length>0){const ge=ee.filter(_e=>B.has(_e));m([...new Set([...ge,...ce])])}else m(ee.filter(ge=>B.has(ge)))}else{const le=ee.filter(ce=>B.has(ce));if(bt(ee,le))return;m(le)}},ht=v=>{const O=e.props,B=I??(O.inline?24:28),ee=!!O.useSelectAll&&(O.itemsSource??[]).length>0&&v.length>0,le=O.inline||ee?0:8,ce=O.inline?0:8,ge=`${!!O.inline}/${B}/${le}/${ce}/${v.length}`;if(ge!==re){se(),j++;const _e=!Object.is(B,K);re=ge,K=B,ne.setOptions({...ne.options,count:v.length,paddingStart:le,paddingEnd:ce}),_e&&ne.measure()}return N(),{hasSelectAll:ee,paddingStart:le,paddingEnd:ce}},vt=()=>{const v=e.props,O=h(),B=v.loading?[]:W(),{hasSelectAll:ee,paddingStart:le,paddingEnd:ce}=ht(B);ne._willUpdate();const ge=new Set(a()),_e=ne.getVirtualItems(),mt=po(_e,B.length,K,r).map(He=>{if(He.index>=B.length)return null;const Ke=B[He.index];return Ke?{index:He.index,value:Ke,size:He.size,start:He.start+(_e.length===0?le:0),isSelected:ge.has(Ke[O]),isDisabled:!!v.disabled||!!v.readonly||Ke[d()]===!0,isFocused:Q(Ke)}:null}).filter(He=>He!==null),ze=ne.getTotalSize(),at=P?e.locale.MultiSelect.selectFiltered:e.locale.MultiSelect.selectAll,zt=B.length===0?s.html`<div class="list-box-item loading not-hover">
1066
+ </svg>`}const sa=new Set(["itemsSource","inline","filterMode","filterValue","searchPlaceholder","preserveMissingValues","loading","loadingText","listBoxHeight","label","width","required","readonly","disabled","keyProp","displayProp","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","autoSelectNewItems","selectAllWhenEmpty","modelValue","class","style","dropdown-item-height"]);function la(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const ts=ye({name:"moz-multi-select",defaults:{inline:!1,filterMode:"local",preserveMissingValues:!1,loading:!1,listBoxHeight:224,label:null,width:200,required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProp:"text",disabledProp:"disabled",rules:[],useSelectAll:!0,useFilter:!1,headerFormat:"ITEMS ({count})",listBoxWidth:0,useSpecificSelect:!0,autoSelectNewItems:!1,selectAllWhenEmpty:!1,modelValue:null},setup(e){const t=Y.createRef(),o=Y.createRef(),s=Y.createRef(),l=Y.createRef(),i=Y.createRef();let r=null;const p=()=>e.props.keyProp||"id",d=()=>e.props.disabledProp||"disabled";let b=e.props.modelValue??null;const c=()=>{const v=e.controlled("modelValue")?e.props.modelValue:b;return Array.isArray(v)?v:[]},m=v=>{e.controlled("modelValue")||(b=v),e.emit("update:modelValue",v),e.requestUpdate()};let u=!1,k=!1,x=0;e.onCleanup(()=>{k=!0,x+=1});const S=Qe("moz-multiselect-listbox-");let L=e.props.filterValue??"",M=!1,f=!1,a={},h=[];const $={change:"",blur:"",save:""};let _=e.props.itemsSource;const O=(()=>{const v=e.props["dropdown-item-height"];if(v!=null)return+v;try{return+getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height").trim().replace("px","")||void 0}catch{return}})();let U=O??(e.props.inline?24:28),Q=!!e.props.inline,re="",X=0,E=!1,V=null;const J=()=>{V=null,X++},le=()=>{!E&&V===null&&(r!=null&&r.isConnected)&&(V=r.scrollTop)},N=()=>{const v=X,D=r;V===null||!D||queueMicrotask(()=>{if(v!==X||D!==r||!D.isConnected||E||V===null||D.clientHeight<=0)return;const q=Math.min(Math.max(0,V),Math.max(0,D.scrollHeight-D.clientHeight));V=null,D.scrollTop!==q&&ie.scrollToOffset(q,{behavior:"auto"})})},ie=new st.Virtualizer({count:0,getScrollElement:()=>r,estimateSize:()=>U,overscan:5,observeElementRect:st.observeElementRect,observeElementOffset:st.observeElementOffset,scrollToFn:st.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{J(),G==null||G.release(),G=null}),e.onCleanup(ie._didMount());const F=v=>{le(),X++,r=v??null,v&&(ie._willUpdate(),N(),e.requestUpdate())},oe=v=>typeof e.props.displayProp=="function"?e.props.displayProp(v):typeof v=="object"?v[e.props.displayProp]??"":v,T=()=>{const v=new Map;return(e.props.itemsSource??[]).forEach(D=>v.set(D[p()],D)),v},W=()=>{if(e.props.filterMode==="remote"||!L)return e.props.itemsSource??[];const v=L.toLowerCase();return(e.props.itemsSource??[]).filter(D=>oe(D).toLowerCase().indexOf(v)>-1)},K=v=>{if(!L)return[{part:v,highlight:!1}];const D=la(L),q=new RegExp(`(${D})`,"gi");return v.split(q).map(ne=>({part:ne,highlight:L.toLowerCase()===ne.toLowerCase()}))},ee=v=>new Set(c()).has(v[p()]),te=v=>h.some(D=>Mt(D.item,v)),P=()=>{const v=c(),D=W();if(v.length<D.length||v.length===0||D.length===0)return!1;const q=new Set(v);return D.every(ne=>q.has(ne[p()]))},g=()=>new Set(W().map(v=>v[p()])),R=()=>new Set(c()),I=()=>{const v=g(),D=R();return!v.size||!D.size||D.size<v.size?!1:Array.from(v).every(q=>D.has(q))},H=()=>$.save||$.blur||$.change,pe=()=>{const v=[];return e.props.required&&v.push({message:e.locale.MultiSelect.required.replace("{label}",e.props.label||""),type:"save",validator:D=>!!D.length}),[...v,...e.props.rules??[]]},ke=async(v,D)=>{const q=pe();if(q.length<=0)return;if(e.props.disabled)return!0;$[D]="",e.requestUpdate();const ne=q.filter(se=>se.type===D);for(const se of ne)if(!await se.validator(v))return $[D]=se.message,e.requestUpdate(),!1;return!0},Me=async(v="save")=>H()!==""?!1:await ke(c(),v)??!0,He={validate:Me,initValidator:()=>{$.change="",$.blur="",$.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(He),e.onCleanup(()=>{var v;return(v=e.validator)==null?void 0:v.removeValidator(He)}));const Fe=v=>{if(e.props.disabled||e.props.readonly||e.props.loading)return;const D=T(),q=new Set;c().forEach(se=>{const de=D.get(se);(de==null?void 0:de[d()])===!0&&q.add(se)}),v.forEach(se=>{const de=D.get(se);(de&&de[d()]!==!0||!de&&e.props.preserveMissingValues)&&q.add(se)});const ne=Array.from(q);Mt(c(),ne)||(m(ne),e.emit("change",ne,ne.map(se=>D.get(se)).filter(Boolean)),ke(ne,"change"))},Ge=(v,D)=>v.filter(q=>ee(q)!==D).map(q=>q[p()]),et=(v,D,q)=>{if(q.shiftKey&&h.length>0){const ne=h[0],se=Math.min(ne.index,D),de=Math.max(ne.index,D);h=W().slice(se,de+1).map((fe,Ne)=>({item:fe,index:se+Ne}))}else q.ctrlKey?h.push({item:v,index:D}):h=[{item:v,index:D}];return h.length},lt=(v=!0)=>{const D=h.map(se=>se.item),q=Ge(D,v);let ne=c();v?ne=[...ne,...q]:ne=ne.filter(se=>!q.some(de=>se===de)),Fe(ne)},Ke=(v,D,q)=>{if(v[d()]===!0)return;const ne=h.some(de=>de.item[p()]===v[p()]);(h.length<=1||!ne)&&et(v,D,{shiftKey:!1,ctrlKey:!1});const se=c().some(de=>de===v[p()]);lt(!se),q.stopPropagation()},Ue=(v,D,q)=>{v[d()]!==!0&&(!q.ctrlKey&&!q.shiftKey&&h.length<=1&&Ke(v,D,q),et(v,D,q),e.requestUpdate())},ze=(v,D,q)=>{if(v[d()]===!0)return;const ne=c(),se=R().size!==0&&ne.every(de=>de===v[p()]);Fe(se?[]:[v[p()]]),et(v,D,q),q.stopPropagation()},Ze=v=>{v.stopPropagation();const D=g().size===R().size&&[...g()].every(q=>R().has(q));if(P()&&D){const q=new Set((e.props.itemsSource??[]).filter(ne=>ne[d()]===!0).map(ne=>ne[p()]));Fe(Array.from(q))}else{const q=new Set(W().filter(ne=>ne[d()]!==!0).map(ne=>ne[p()]));Fe(Array.from(q))}},Be=v=>{if(v.stopPropagation(),I()){const D=g();Fe(c().filter(q=>!D.has(q)))}else{const D=new Set([...c(),...g()]);Fe(Array.from(D))}},ot=v=>{const D=v.target;D===r&&(J(),M=D.scrollTop>0,e.requestUpdate())},mt=()=>{const v=c();if(!(v!=null&&v.length))return"";const D=T(),q=v.map(se=>D.get(se)).filter(Boolean).map(se=>typeof e.props.displayProp=="function"?e.props.displayProp(se):se[e.props.displayProp]||""),ne=e.props.itemsSource??[];return q.length===ne.length&&q.length>2?`${e.props.headerFormat.replace(/\{count(:.*?)?}/g,"ALL")}`:q.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${q.length.toLocaleString()}`):q.join(", ")||""},Ye=(v,D,q=10)=>{const ne=window.innerHeight||document.documentElement.clientHeight,se=window.innerWidth||document.documentElement.clientWidth,de=v.getBoundingClientRect(),fe=D.getBoundingClientRect(),Ne=de.bottom+fe.height+q>ne;if(!Ne)return!1;const vt=de.top-fe.height-q<0,Le=de.right+fe.width+q>se,dt=de.left-fe.width-q<0;return Ne&&!vt||Le&&!dt},at=()=>{const v=o.value;if(!v)return;const D=v.getBoundingClientRect();let q=`${D.width}px`;e.props.listBoxWidth&&(q=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),a={width:String(q),left:`${D.left}px`,top:`${D.top+(f?0:D.height)}px`},e.requestUpdate()},y=v=>{var D;(D=s.value)!=null&&D.contains(v.target)||me(!1)},Z=v=>{var D,q;!((D=t.value)!=null&&D.contains(v.target))&&!((q=s.value)!=null&&q.contains(v.target))&&(me(!1),document.removeEventListener("click",Z,{capture:!0}))},w=v=>{var q;`${v.ctrlKey?"ctrl+":""}${v.altKey?"alt+":""}${v.key.toLowerCase()}`==="escape"&&(me(!1),(q=l.value)==null||q.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",y,{capture:!0}),document.removeEventListener("click",Z,{capture:!0}),window.removeEventListener("keydown",w)});let G=null;const me=(v,D=!0)=>{if(k||u===v)return;const q=++x;J(),E=v;const ne=u;if(u=v,e.requestUpdate(),v)G=oo(),document.body.addEventListener("scroll",y,{capture:!0}),document.addEventListener("click",Z,{capture:!0}),$.save="",window.addEventListener("keydown",w),at(),queueMicrotask(()=>{var se,de;k||!u||q!==x||(!e.props.inline&&u&&o.value&&((se=s.value)!=null&&se.isConnected)&&(f=Ye(o.value,s.value)),at(),ie.measure(),J(),r&&(r.scrollTop=0),E=!1,D&&(i.value?i.value.focus():(de=l.value)==null||de.focus()))});else if(G==null||G.release(),G=null,L="",i.value&&(i.value.value=""),document.body.removeEventListener("scroll",y,{capture:!0}),document.removeEventListener("click",Z,{capture:!0}),ke(c(),"blur"),window.removeEventListener("keydown",w),ne&&!v){const se=c();if(e.props.selectAllWhenEmpty&&(!se||se.length===0)){const de=(e.props.itemsSource??[]).filter(fe=>fe[d()]!==!0).map(fe=>fe[p()]);de.length>0&&(m(de),e.emit("change",de,(e.props.itemsSource??[]).filter(fe=>de.includes(fe[p()]))))}e.emit("close")}},Ee=v=>{var D;if(u){v.stopPropagation(),v.preventDefault();const q=(D=s.value)==null?void 0:D.querySelector("input:first-child, button:first-child");q==null||q.focus()}},ve=v=>{var se,de,fe;const D=((se=s.value)==null?void 0:se.querySelectorAll("input, button"))??[],q=D[0],ne=D[D.length-1];(v.target===q||v.target===ne)&&l.value&&(v.target===q&&v.shiftKey?(v.stopPropagation(),v.preventDefault(),(de=l.value)==null||de.focus()):v.target===ne&&!v.shiftKey&&(v.stopPropagation(),v.preventDefault(),(fe=l.value)==null||fe.focus()))},Ce=v=>{v.key==="Tab"&&Ee(v)},Ie=v=>{!e.props.inline&&v.key==="Tab"&&ve(v)},Re=v=>{!u&&!e.props.inline||(J(),E=!0,L=v.target.value,h=[],e.emit("update:filterValue",L),e.requestUpdate(),queueMicrotask(()=>{nt(e.props.loading?[]:W()),ie.measure(),J(),r&&(r.scrollTop=0),E=!1}))},Pe=()=>{var v;e.props.disabled||(me(!u),(v=l.value)==null||v.focus())},qe=(v,D)=>{var q,ne;if(v.key==="Enter"||v.key===" "){v.preventDefault(),v.stopPropagation(),D();return}if(v.key==="ArrowDown"||v.key==="ArrowUp"){v.preventDefault(),v.stopPropagation();const se=Array.from(((q=s.value)==null?void 0:q.querySelectorAll('[tabindex="0"]'))??[]),de=se.indexOf(v.currentTarget),fe=se[de+(v.key==="ArrowDown"?1:-1)];fe==null||fe.focus();return}v.key==="Escape"&&!e.props.inline&&(v.preventDefault(),v.stopPropagation(),me(!1),(ne=l.value)==null||ne.focus())},ft=(v,D)=>{Ue(v,D,{ctrlKey:!1,shiftKey:!1,stopPropagation(){}})},ct=(v,D)=>{if(h=[],e.props.preserveMissingValues||JSON.stringify(v)===JSON.stringify(D))return;const q=new Set(v.map(se=>se[p()])),ne=c();if(e.props.autoSelectNewItems&&D){const se=new Set(D.map(fe=>fe[p()])),de=v.filter(fe=>!se.has(fe[p()])).map(fe=>fe[p()]);if(de.length>0){const fe=ne.filter(Ne=>q.has(Ne));m([...new Set([...fe,...de])])}else m(ne.filter(fe=>q.has(fe)))}else{const se=ne.filter(de=>q.has(de));if(Mt(ne,se))return;m(se)}},nt=v=>{const D=e.props,q=O??(D.inline?24:28),ne=!!D.useSelectAll&&(D.itemsSource??[]).length>0&&v.length>0,se=D.inline||ne?0:8,de=D.inline?0:8,fe=`${!!D.inline}/${q}/${se}/${de}/${v.length}`;if(fe!==re){le(),X++;const Ne=!Object.is(q,U);re=fe,U=q,ie.setOptions({...ie.options,count:v.length,paddingStart:se,paddingEnd:de}),Ne&&ie.measure()}return N(),{hasSelectAll:ne,paddingStart:se,paddingEnd:de}},rt=()=>{const v=e.props,D=p(),q=v.loading?[]:W(),{hasSelectAll:ne,paddingStart:se,paddingEnd:de}=nt(q);ie._willUpdate();const fe=new Set(c()),Ne=ie.getVirtualItems(),vt=ko(Ne,q.length,U,r).map(Oe=>{if(Oe.index>=q.length)return null;const _e=q[Oe.index];return _e?{index:Oe.index,value:_e,size:Oe.size,start:Oe.start+(Ne.length===0?se:0),isSelected:fe.has(_e[D]),isDisabled:!!v.disabled||!!v.readonly||_e[d()]===!0,isFocused:te(_e)}:null}).filter(Oe=>Oe!==null),Le=ie.getTotalSize(),dt=L?e.locale.MultiSelect.selectFiltered:e.locale.MultiSelect.selectAll,wt=q.length===0?n.html`<div class="list-box-item loading not-hover">
1067
1067
  ${v.loading?v.loadingText??"Loading…":e.slots.has("empty")?e.slot("empty"):e.locale.MultiSelect.noData}
1068
- </div>`:s.nothing;return s.html`<div
1069
- class=${V("list-box moz-multi-select-list",{"no-label":!v.label,"show-top":g,"moz-multiselect-inline-list":!!v.inline},v.class)}
1070
- style=${te.styleMap(v.inline?{"--moz-multiselect-list-height":`${v.listBoxHeight??224}px`}:{...i,"--moz-multiselect-row-height":`${K}px`})}
1071
- @keydown=${et}
1072
- ${Y.ref(n)}
1068
+ </div>`:n.nothing;return n.html`<div
1069
+ class=${A("list-box moz-multi-select-list",{"no-label":!v.label,"show-top":f,"moz-multiselect-inline-list":!!v.inline},v.class)}
1070
+ style=${j.styleMap(v.inline?{"--moz-multiselect-list-height":`${v.listBoxHeight??224}px`}:{...a,"--moz-multiselect-row-height":`${U}px`})}
1071
+ @keydown=${Ie}
1072
+ ${Y.ref(s)}
1073
1073
  >
1074
- ${v.useFilter?s.html`<div class="filter-input">
1074
+ ${v.useFilter?n.html`<div class="filter-input">
1075
1075
  <input
1076
1076
  placeholder=${v.searchPlaceholder??e.locale.MultiSelect.search}
1077
1077
  aria-label=${v.searchPlaceholder??e.locale.MultiSelect.search}
1078
- .value=${P}
1078
+ .value=${L}
1079
1079
  ?disabled=${!!v.disabled||!!v.readonly}
1080
- @input=${Ne}
1081
- ${Y.ref(c)}
1080
+ @input=${Re}
1081
+ ${Y.ref(i)}
1082
1082
  />
1083
- <div class="search-icon">${fi("12","var(--moz-color-text-subtle)")}</div>
1084
- </div>`:s.nothing}
1085
- ${ee?s.html`<div
1086
- class=${V("list-box-item multi-select-item multi-select-all",{"is-scrolled":L})}
1083
+ <div class="search-icon">${na("12","var(--moz-color-text-subtle)")}</div>
1084
+ </div>`:n.nothing}
1085
+ ${ne?n.html`<div
1086
+ class=${A("list-box-item multi-select-item multi-select-all",{"is-scrolled":M})}
1087
1087
  role="button"
1088
1088
  tabindex=${v.disabled||v.readonly||v.loading?"-1":"0"}
1089
1089
  aria-disabled=${v.disabled||v.readonly||v.loading?"true":"false"}
1090
- aria-pressed=${A()?"true":"false"}
1091
- aria-label=${at}
1092
- @click=${Fe}
1093
- @keydown=${He=>Oe(He,()=>Fe({stopPropagation(){}}))}
1090
+ aria-pressed=${I()?"true":"false"}
1091
+ aria-label=${dt}
1092
+ @click=${Be}
1093
+ @keydown=${Oe=>qe(Oe,()=>Be({stopPropagation(){}}))}
1094
1094
  >
1095
1095
  <input
1096
1096
  type="checkbox"
1097
1097
  aria-hidden="true"
1098
1098
  tabindex="-1"
1099
- class=${V("moz-checkbox",{"is-indeterminate":B.some(He=>ge.has(He[O]))&&!T()})}
1100
- .checked=${A()}
1099
+ class=${A("moz-checkbox",{"is-indeterminate":q.some(Oe=>fe.has(Oe[D]))&&!P()})}
1100
+ .checked=${I()}
1101
1101
  />
1102
1102
  <div class="highlight-container">
1103
- <span title=${at}>${at}</span>
1103
+ <span title=${dt}>${dt}</span>
1104
1104
  </div>
1105
- ${v.useSpecificSelect&&P&&B.length>0?s.html`<button type="button" class="item-only" @click=${Ge}>
1105
+ ${v.useSpecificSelect&&L&&q.length>0?n.html`<button type="button" class="item-only" @click=${Ze}>
1106
1106
  ${e.locale.MultiSelect.specificResults}
1107
- </button>`:s.nothing}
1108
- </div>`:s.nothing}
1107
+ </button>`:n.nothing}
1108
+ </div>`:n.nothing}
1109
1109
 
1110
1110
  <div
1111
- id=${$}
1111
+ id=${S}
1112
1112
  role="listbox"
1113
1113
  aria-multiselectable="true"
1114
- aria-label=${Ee.ifDefined(v["aria-label"]??v.label??void 0)}
1114
+ aria-label=${$e.ifDefined(v["aria-label"]??v.label??void 0)}
1115
1115
  aria-busy=${v.loading?"true":"false"}
1116
1116
  class="list-box-container"
1117
- @scroll=${it}
1118
- @wheel=${X}
1119
- @pointerdown=${X}
1120
- @keydown=${X}
1121
- ${Y.ref(_)}
1117
+ @scroll=${ot}
1118
+ @wheel=${J}
1119
+ @pointerdown=${J}
1120
+ @keydown=${J}
1121
+ ${Y.ref(F)}
1122
1122
  >
1123
- ${!v.inline&&B.length===0?s.nothing:s.html`<div class="inner-container" style=${te.styleMap({height:`${ze}px`})}>
1124
- ${mt.map(({index:He,value:Ke,start:Tt,size:Yt,isSelected:C,isDisabled:M,isFocused:q})=>s.html`<div
1125
- class=${V("list-box-item multi-select-item virtual-row",{"list-selected":C,"moz-multi-focus":q})}
1126
- style=${te.styleMap({height:`${Yt}px`,transform:`translateY(${Tt}px)`})}
1123
+ ${!v.inline&&q.length===0?n.nothing:n.html`<div class="inner-container" style=${j.styleMap({height:`${Le}px`})}>
1124
+ ${vt.map(({index:Oe,value:_e,start:yt,size:xt,isSelected:C,isDisabled:z,isFocused:B})=>n.html`<div
1125
+ class=${A("list-box-item multi-select-item virtual-row",{"list-selected":C,"moz-multi-focus":B})}
1126
+ style=${j.styleMap({height:`${xt}px`,transform:`translateY(${yt}px)`})}
1127
1127
  role="option"
1128
1128
  aria-selected=${C?"true":"false"}
1129
- aria-disabled=${M?"true":"false"}
1130
- tabindex=${M?"-1":"0"}
1131
- @click=${ie=>Be(Ke,He,ie)}
1132
- @keydown=${ie=>Oe(ie,()=>ct(Ke,He))}
1129
+ aria-disabled=${z?"true":"false"}
1130
+ tabindex=${z?"-1":"0"}
1131
+ @click=${ae=>Ue(_e,Oe,ae)}
1132
+ @keydown=${ae=>qe(ae,()=>ft(_e,Oe))}
1133
1133
  >
1134
1134
  <input
1135
1135
  type="checkbox"
@@ -1137,35 +1137,35 @@
1137
1137
  tabindex="-1"
1138
1138
  class="moz-checkbox"
1139
1139
  .checked=${C}
1140
- ?disabled=${M}
1141
- @click=${ie=>qe(Ke,He,ie)}
1140
+ ?disabled=${z}
1141
+ @click=${ae=>Ke(_e,Oe,ae)}
1142
1142
  />
1143
- ${e.slots.has("list-item")?e.slot("list-item",{text:J(Ke),item:Ke}):s.html`<div class="highlight-container" title=${J(Ke)}>
1144
- ${Z(J(Ke)).map(ie=>s.html`<span class=${V("text-part",{highlight:ie.highlight})}>${ie.part}</span>`)}
1143
+ ${e.slots.has("list-item")?e.slot("list-item",{text:oe(_e),item:_e}):n.html`<div class="highlight-container" title=${oe(_e)}>
1144
+ ${K(oe(_e)).map(ae=>n.html`<span class=${A("text-part",{highlight:ae.highlight})}>${ae.part}</span>`)}
1145
1145
  </div>`}
1146
- ${v.useSpecificSelect&&!M?s.html`<button type="button" class="item-only" @click=${ie=>xe(Ke,He,ie)}>
1146
+ ${v.useSpecificSelect&&!z?n.html`<button type="button" class="item-only" @click=${ae=>ze(_e,Oe,ae)}>
1147
1147
  ${e.locale.MultiSelect.specificSelect}
1148
- </button>`:s.nothing}
1148
+ </button>`:n.nothing}
1149
1149
  </div>`)}
1150
1150
  </div>`}
1151
- ${B.length<=0?v.inline?zt:s.html`<div style=${te.styleMap({paddingTop:`${le}px`,paddingBottom:`${ce}px`})}>
1152
- ${zt}
1153
- </div>`:s.nothing}
1151
+ ${q.length<=0?v.inline?wt:n.html`<div style=${j.styleMap({paddingTop:`${se}px`,paddingBottom:`${de}px`})}>
1152
+ ${wt}
1153
+ </div>`:n.nothing}
1154
1154
  </div>
1155
- </div>`};return{api:{validate:Ae,setOpen:v=>{E||e.props.inline||v&&e.props.disabled||me(v,!1)},isOpen:()=>!E&&!e.props.inline&&u},render(){const v=e.props;if(e.controlled("filterValue")&&(P=v.filterValue??""),oe!==!!v.inline&&(se(),oe=!!v.inline),v.itemsSource!==F){const ge=F,_e=v.itemsSource;F=v.itemsSource,queueMicrotask(()=>rt(_e??[],ge??[]))}const O=typeof v.width=="number"?`${De(v.width)}rem`:v.width,B=ye(v,gi),{aria:ee,dom:le}=Wt(B);if(v.inline)return s.html`<div class="moz-multi-select moz-multi-select-inline"
1156
- style=${te.styleMap({width:O,...Ce(v.style)})}
1157
- ${Y.ref(t)}>${vt()}</div>`;const ce=e.slots.has("icon")?e.slot("icon",{isOpen:u}):u?mi("14","var(--moz-color-accent)"):hi("14",v.disabled?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)");return s.html`
1155
+ </div>`};return{api:{validate:Me,setOpen:v=>{k||e.props.inline||v&&e.props.disabled||me(v,!1)},isOpen:()=>!k&&!e.props.inline&&u},render(){const v=e.props;if(e.controlled("filterValue")&&(L=v.filterValue??""),Q!==!!v.inline&&(le(),Q=!!v.inline),v.itemsSource!==_){const fe=_,Ne=v.itemsSource;_=v.itemsSource,queueMicrotask(()=>ct(Ne??[],fe??[]))}const D=typeof v.width=="number"?`${Ae(v.width)}rem`:v.width,q=ge(v,sa),{aria:ne,dom:se}=eo(q);if(v.inline)return n.html`<div class="moz-multi-select moz-multi-select-inline"
1156
+ style=${j.styleMap({width:D,...he(v.style)})}
1157
+ ${Y.ref(t)}>${rt()}</div>`;const de=e.slots.has("icon")?e.slot("icon",{isOpen:u}):u?oa("14","var(--moz-color-accent)"):ta("14",v.disabled?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)");return n.html`
1158
1158
  <div
1159
- class=${V("moz-multi-select",{"is-invalid":H()!=="","is-open":u,disabled:!!v.disabled})}
1160
- style=${te.styleMap({width:O,...Ce(v.style)})}
1159
+ class=${A("moz-multi-select",{"is-invalid":H()!=="","is-open":u,disabled:!!v.disabled})}
1160
+ style=${j.styleMap({width:D,...he(v.style)})}
1161
1161
  ${Y.ref(t)}
1162
1162
  >
1163
1163
  <div class="input-wrapper">
1164
- ${v.label?Xe({},s.html`${v.label}${v.required?s.html`<span class="require-mark">*</span>`:s.nothing}`):s.nothing}
1165
- <div class="moz-input-container" @click=${Le} ${Y.ref(o)}>
1164
+ ${v.label?Je({},n.html`${v.label}${v.required?n.html`<span class="require-mark">*</span>`:n.nothing}`):n.nothing}
1165
+ <div class="moz-input-container" @click=${Pe} ${Y.ref(o)}>
1166
1166
  <input
1167
- ${fe(le)}
1168
- .value=${gt()}
1167
+ ${ce(se)}
1168
+ .value=${mt()}
1169
1169
  autocomplete="off"
1170
1170
  readonly
1171
1171
  tabindex="-1"
@@ -1173,24 +1173,24 @@
1173
1173
  <button
1174
1174
  type="button"
1175
1175
  class="icon-container"
1176
- ${fe(ee)}
1176
+ ${ce(ne)}
1177
1177
  role="combobox"
1178
1178
  aria-haspopup="listbox"
1179
1179
  aria-expanded=${u?"true":"false"}
1180
- aria-controls=${$}
1181
- aria-label=${Ee.ifDefined(ee["aria-label"]??v.label??void 0)}
1180
+ aria-controls=${S}
1181
+ aria-label=${$e.ifDefined(ne["aria-label"]??v.label??void 0)}
1182
1182
  ?disabled=${!!v.disabled}
1183
- @keydown=${Pe}
1183
+ @keydown=${Ce}
1184
1184
  ${Y.ref(l)}
1185
1185
  >
1186
- ${ce}
1186
+ ${de}
1187
1187
  </button>
1188
1188
  </div>
1189
1189
  </div>
1190
1190
 
1191
- ${H()!==""?s.html`<span class="moz-input-invalid-message">${H()}</span>`:s.nothing}
1191
+ ${H()!==""?n.html`<span class="moz-input-invalid-message">${H()}</span>`:n.nothing}
1192
1192
  </div>
1193
- `},renderPortal(){return e.props.inline||!u?s.nothing:vt()}}}}),wi={name:"MozMultiSelect",core:As,booleanProps:["autoSelectNewItems","disabled","inline","loading","preserveMissingValues","readonly","required","selectAllWhenEmpty","useFilter","useSelectAll","useSpecificSelect"],props:["itemsSource","inline","filterMode","filterValue","searchPlaceholder","preserveMissingValues","loading","loadingText","listBoxHeight","label","width","required","readonly","disabled","keyProp","displayProp","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","autoSelectNewItems","selectAllWhenEmpty","modelValue"],emits:["change","close","update:modelValue","update:filterValue"],slots:["icon","list-item","empty"],expose:!0};function Rs(e,t=14){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function Ci(e="14",t="var(--moz-color-text-subtle)"){const o=Rs(e,14);return s.html`<svg width=${o.width} height=${o.height} viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
1193
+ `},renderPortal(){return e.props.inline||!u?n.nothing:rt()}}}}),ia={name:"MozMultiSelect",core:ts,booleanProps:["autoSelectNewItems","disabled","inline","loading","preserveMissingValues","readonly","required","selectAllWhenEmpty","useFilter","useSelectAll","useSpecificSelect"],props:["itemsSource","inline","filterMode","filterValue","searchPlaceholder","preserveMissingValues","loading","loadingText","listBoxHeight","label","width","required","readonly","disabled","keyProp","displayProp","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","autoSelectNewItems","selectAllWhenEmpty","modelValue"],emits:["change","close","update:modelValue","update:filterValue"],slots:["icon","list-item","empty"],expose:!0};function os(e,t=14){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function aa(e="14",t="var(--moz-color-text-subtle)"){const o=os(e,14);return n.html`<svg width=${o.width} height=${o.height} viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
1194
1194
  <g clip-path="url(#clip0_4513_575)">
1195
1195
  <path
1196
1196
  fill-rule="evenodd"
@@ -1204,8 +1204,8 @@
1204
1204
  <rect width=${o.width} height=${o.height} fill="white" transform="translate(0 0.704163)"></rect>
1205
1205
  </clipPath>
1206
1206
  </defs>
1207
- </svg>`}function Bo(e="12",t="var(--moz-color-text-subtle)",o=!1,n=""){const l=Rs(e,12),c=o?"var(--moz-color-text-muted)":t;return s.html`<svg class=${n||s.nothing} xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 16 16">
1208
- <g style=${`fill: ${c}`}>
1207
+ </svg>`}function sn(e="12",t="var(--moz-color-text-subtle)",o=!1,s=""){const l=os(e,12),i=o?"var(--moz-color-text-muted)":t;return n.html`<svg class=${s||n.nothing} xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 16 16">
1208
+ <g style=${`fill: ${i}`}>
1209
1209
  <path
1210
1210
  d="M836.533 699.734h-.022a.928.928 0 0 1-.716-.336l-3.779-4.535a.926.926 0 0 1-.212-.68.93.93 0 0 1 1.643-.512l3.026 3.63 6.096-8.128a.922.922 0 0 1 .745-.373c.202 0 .396.064.559.186.199.15.328.367.363.614a.925.925 0 0 1-.177.69l-6.803 9.071a.928.928 0 0 1-.721.373h-.002z"
1211
1211
  style="stroke: none"
@@ -1213,189 +1213,189 @@
1213
1213
  ></path>
1214
1214
  <path
1215
1215
  d="M836.532 699.634a.833.833 0 0 0 .644-.333l6.803-9.07a.831.831 0 1 0-1.33-.998l-6.172 8.23-3.107-3.728a.83.83 0 1 0-1.277 1.064l3.78 4.535c.157.19.391.3.638.3h.021m.003.2h-.024c-.307 0-.596-.136-.793-.372l-3.779-4.535a1.025 1.025 0 0 1-.235-.754 1.03 1.03 0 0 1 1.82-.567l2.945 3.534 6.02-8.027a1.034 1.034 0 0 1 1.444-.207c.22.165.363.407.402.68.04.273-.03.544-.196.765l-6.803 9.07c-.19.254-.481.404-.799.412h-.002z"
1216
- style=${`fill: ${c}; stroke: none`}
1216
+ style=${`fill: ${i}; stroke: none`}
1217
1217
  transform="translate(-829.971 -686.318)"
1218
1218
  ></path>
1219
1219
  </g>
1220
- </svg>`}const bi=new Set(["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required","class","style"]),yi=Array.from({length:24},(e,t)=>t),$i=Array.from({length:60},(e,t)=>t),Ds=$e({name:"moz-time-picker",defaults:{width:"160px",modelValue:"09:00",label:"",disabled:!1,required:!1},setup(e){const t=Y.createRef(),o=Y.createRef(),n=Y.createRef(),l=Y.createRef(),c=Y.createRef(),r=Y.createRef(),h=ot("moz-time-picker-input-");let d=!1,b=9,a=0,m="",u="";const E=k=>{if(k&&k.includes(":")){const[R,X]=k.split(":").map(Number);!isNaN(R)&&!isNaN(X)&&(b=R,a=X,m=k,u=k)}};E(e.props.modelValue);let x=e.props.modelValue,$=m;const P=new Kt({anchor:()=>o.value??null,panel:()=>l.value??null,maxHeight:()=>210,container:()=>t.value??null,listWidth:()=>"180px",requestClose:()=>{d&&g(!1)}});e.onCleanup(()=>P.destroy());const L=()=>{if(!d)return;const k=(R,X)=>{const se=R==null?void 0:R.children[X];if(!(R!=null&&R.isConnected)||!se||R.clientHeight<=0)return;const N=se.getBoundingClientRect(),ne=R.getBoundingClientRect(),_=N.top+N.height/2-(ne.top+R.clientTop+R.clientHeight/2),J=Math.max(0,R.scrollHeight-R.clientHeight);R.scrollTop=Math.max(0,Math.min(R.scrollTop+_,J))};k(c.value,b),k(r.value,a)},g=k=>{k&&e.props.disabled||d!==k&&(d=k,e.requestUpdate(),k?(P.open(),queueMicrotask(L)):P.close())},i=()=>{const k=`${b.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`;m=k,u=k,e.emit("update:modelValue",k),e.requestUpdate()},p=k=>{b=k,i()},y=k=>{a=k,g(!1),i()},F=()=>{b=new Date().getHours(),a=new Date().getMinutes(),i(),g(!1)},I=k=>{let R=k.replace(/[^\d:]/g,"");return R.length>5&&(R=R.slice(0,5)),R},K=k=>{g(!1);const R=k.target,X=k.key;if(!/^\d$/.test(X))return;const se=R.selectionStart||0,N=m;if(R.selectionStart!==R.selectionEnd||se>=N.length)return;k.preventDefault();const ne=N.replace(/:/g,""),_=(N.slice(0,se).match(/:/g)||[]).length,J=se-_;let z=ne.substring(0,J)+X;J+1<ne.length&&(z+=ne.substring(J+1)),z.length>4&&(z=z.slice(0,4));let W=z,Z=J+1;if(z.length>=2){const G=z.slice(0,2),Q=z.slice(2);W=`${G}:${Q}`,Z>2&&(Z=Z+1)}m=W,u=W,e.requestUpdate(),queueMicrotask(()=>R.setSelectionRange(Z,Z))},oe=k=>{const R=k.target,X=R.selectionStart||0,se=u;let N=R.value;const ne=N.length<se.length;N=I(N);const _=N.replace(/:/g,"");if(!ne&&_.length>=2){const J=(N.slice(0,X).match(/:/g)||[]).length,z=X-J,W=_.slice(0,2),Z=_.slice(2);N=W+(Z?`:${Z}`:":");let G=z;z>2&&(G=z+1),m=N,u=N,e.requestUpdate(),setTimeout(()=>R.setSelectionRange(G,G),0);return}m=N,u=N,e.requestUpdate()},re=()=>g(!0),j=()=>{if(!m){i();return}let k=m;!k.includes(":")&&k.length>=2&&(k=`${k.slice(0,2)}:${k.slice(2)}`);const R=k.split(":");let X=b,se=a;if(R[0]){const N=parseInt(R[0],10);isNaN(N)||(N>=0&&N<=23?X=N:N>23?X=23:X=0)}if(R[1]){const N=parseInt(R[1],10);isNaN(N)||(N>=0&&N<=59?se=N:N>59?se=59:se=0)}b=X,a=se,i()};return{render(){const k=e.props;if(k.modelValue!==x&&(x=k.modelValue,E(k.modelValue)),m!==$){$=m;const _=m;if(/^\d{2}:\d{2}$/.test(_)){const[J,z]=_.split(":").map(Number);!isNaN(J)&&!isNaN(z)&&J>=0&&J<=23&&z>=0&&z<=59&&_!==k.modelValue&&(b=J,a=z,queueMicrotask(()=>{_!==e.props.modelValue&&e.emit("update:modelValue",_)}))}}const R=k.disabled?"var(--moz-color-text-muted)":d?"var(--moz-color-accent)":"var(--moz-color-text-subtle)",X=ye(k,bi),se=typeof k.width=="number"?`${De(k.width)}rem`:k.width,N="__:__",ne=[];for(let _=0;_<N.length;_++)_<m.length?ne.push({char:m[_],isInput:!0}):ne.push({char:N[_],isInput:!1});return s.html`
1220
+ </svg>`}const ra=new Set(["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required","class","style"]),ca=Array.from({length:24},(e,t)=>t),da=Array.from({length:60},(e,t)=>t),ns=ye({name:"moz-time-picker",defaults:{width:"160px",modelValue:"09:00",label:"",disabled:!1,required:!1},setup(e){const t=Y.createRef(),o=Y.createRef(),s=Y.createRef(),l=Y.createRef(),i=Y.createRef(),r=Y.createRef(),p=Qe("moz-time-picker-input-");let d=!1,b=9,c=0,m="",u="";const k=E=>{if(E&&E.includes(":")){const[V,J]=E.split(":").map(Number);!isNaN(V)&&!isNaN(J)&&(b=V,c=J,m=E,u=E)}};k(e.props.modelValue);let x=e.props.modelValue,S=m;const L=new to({anchor:()=>o.value??null,panel:()=>l.value??null,maxHeight:()=>210,container:()=>t.value??null,listWidth:()=>"180px",requestClose:()=>{d&&f(!1)}});e.onCleanup(()=>L.destroy());const M=()=>{if(!d)return;const E=(V,J)=>{const le=V==null?void 0:V.children[J];if(!(V!=null&&V.isConnected)||!le||V.clientHeight<=0)return;const N=le.getBoundingClientRect(),ie=V.getBoundingClientRect(),F=N.top+N.height/2-(ie.top+V.clientTop+V.clientHeight/2),oe=Math.max(0,V.scrollHeight-V.clientHeight);V.scrollTop=Math.max(0,Math.min(V.scrollTop+F,oe))};E(i.value,b),E(r.value,c)},f=E=>{E&&e.props.disabled||d!==E&&(d=E,e.requestUpdate(),E?(L.open(),queueMicrotask(M)):L.close())},a=()=>{const E=`${b.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}`;m=E,u=E,e.emit("update:modelValue",E),e.requestUpdate()},h=E=>{b=E,a()},$=E=>{c=E,f(!1),a()},_=()=>{b=new Date().getHours(),c=new Date().getMinutes(),a(),f(!1)},O=E=>{let V=E.replace(/[^\d:]/g,"");return V.length>5&&(V=V.slice(0,5)),V},U=E=>{f(!1);const V=E.target,J=E.key;if(!/^\d$/.test(J))return;const le=V.selectionStart||0,N=m;if(V.selectionStart!==V.selectionEnd||le>=N.length)return;E.preventDefault();const ie=N.replace(/:/g,""),F=(N.slice(0,le).match(/:/g)||[]).length,oe=le-F;let T=ie.substring(0,oe)+J;oe+1<ie.length&&(T+=ie.substring(oe+1)),T.length>4&&(T=T.slice(0,4));let W=T,K=oe+1;if(T.length>=2){const ee=T.slice(0,2),te=T.slice(2);W=`${ee}:${te}`,K>2&&(K=K+1)}m=W,u=W,e.requestUpdate(),queueMicrotask(()=>V.setSelectionRange(K,K))},Q=E=>{const V=E.target,J=V.selectionStart||0,le=u;let N=V.value;const ie=N.length<le.length;N=O(N);const F=N.replace(/:/g,"");if(!ie&&F.length>=2){const oe=(N.slice(0,J).match(/:/g)||[]).length,T=J-oe,W=F.slice(0,2),K=F.slice(2);N=W+(K?`:${K}`:":");let ee=T;T>2&&(ee=T+1),m=N,u=N,e.requestUpdate(),setTimeout(()=>V.setSelectionRange(ee,ee),0);return}m=N,u=N,e.requestUpdate()},re=()=>f(!0),X=()=>{if(!m){a();return}let E=m;!E.includes(":")&&E.length>=2&&(E=`${E.slice(0,2)}:${E.slice(2)}`);const V=E.split(":");let J=b,le=c;if(V[0]){const N=parseInt(V[0],10);isNaN(N)||(N>=0&&N<=23?J=N:N>23?J=23:J=0)}if(V[1]){const N=parseInt(V[1],10);isNaN(N)||(N>=0&&N<=59?le=N:N>59?le=59:le=0)}b=J,c=le,a()};return{render(){const E=e.props;if(E.modelValue!==x&&(x=E.modelValue,k(E.modelValue)),m!==S){S=m;const F=m;if(/^\d{2}:\d{2}$/.test(F)){const[oe,T]=F.split(":").map(Number);!isNaN(oe)&&!isNaN(T)&&oe>=0&&oe<=23&&T>=0&&T<=59&&F!==E.modelValue&&(b=oe,c=T,queueMicrotask(()=>{F!==e.props.modelValue&&e.emit("update:modelValue",F)}))}}const V=E.disabled?"var(--moz-color-text-muted)":d?"var(--moz-color-accent)":"var(--moz-color-text-subtle)",J=ge(E,ra),le=typeof E.width=="number"?`${Ae(E.width)}rem`:E.width,N="__:__",ie=[];for(let F=0;F<N.length;F++)F<m.length?ie.push({char:m[F],isInput:!0}):ie.push({char:N[F],isInput:!1});return n.html`
1221
1221
  <div
1222
- class=${V("custom-time-picker",k.class,{"custom-time-picker--has-class":!!k.class})}
1223
- style=${te.styleMap({width:se,...Ce(k.style)})}
1224
- ${fe(X)}
1222
+ class=${A("custom-time-picker",E.class,{"custom-time-picker--has-class":!!E.class})}
1223
+ style=${j.styleMap({width:le,...he(E.style)})}
1224
+ ${ce(J)}
1225
1225
  ${Y.ref(t)}
1226
1226
  >
1227
- ${k.label?Xe({for:h,disabled:k.disabled,required:k.required},k.label):s.nothing}
1227
+ ${E.label?Je({for:p,disabled:E.disabled,required:E.required},E.label):n.nothing}
1228
1228
  <div
1229
- class=${V("time-input-wrapper",{"time-input-wrapper--disabled":k.disabled,"time-input-wrapper--open":d&&!k.disabled})}
1229
+ class=${A("time-input-wrapper",{"time-input-wrapper--disabled":E.disabled,"time-input-wrapper--open":d&&!E.disabled})}
1230
1230
  ${Y.ref(o)}
1231
1231
  >
1232
1232
  <div class="input-with-mask">
1233
1233
  <input
1234
1234
  type="text"
1235
- id=${h}
1235
+ id=${p}
1236
1236
  .value=${m}
1237
- @keydown=${K}
1238
- @input=${oe}
1239
- @blur=${j}
1237
+ @keydown=${U}
1238
+ @input=${Q}
1239
+ @blur=${X}
1240
1240
  @focus=${re}
1241
- @click=${()=>g(!0)}
1242
- class=${V("time-input",{"time-input--disabled":k.disabled,"time-input--open":d})}
1243
- ?disabled=${!!k.disabled}
1241
+ @click=${()=>f(!0)}
1242
+ class=${A("time-input",{"time-input--disabled":E.disabled,"time-input--open":d})}
1243
+ ?disabled=${!!E.disabled}
1244
1244
  maxlength="5"
1245
- ${Y.ref(n)}
1245
+ ${Y.ref(s)}
1246
1246
  />
1247
1247
  <div class="time-mask">
1248
- ${ne.map(_=>s.html`<span
1249
- class=${V({"mask-input":_.isInput&&!k.disabled,"mask-placeholder":!_.isInput,"mask-input--disabled":_.isInput&&!!k.disabled})}
1250
- >${_.char}</span
1248
+ ${ie.map(F=>n.html`<span
1249
+ class=${A({"mask-input":F.isInput&&!E.disabled,"mask-placeholder":!F.isInput,"mask-input--disabled":F.isInput&&!!E.disabled})}
1250
+ >${F.char}</span
1251
1251
  >`)}
1252
1252
  </div>
1253
1253
  </div>
1254
1254
  <div class="icon-container">
1255
- <span @click=${()=>g(!0)}>${Ci("14",R)}</span>
1255
+ <span @click=${()=>f(!0)}>${aa("14",V)}</span>
1256
1256
  </div>
1257
1257
  </div>
1258
1258
  </div>
1259
- `},renderPortal(){if(!d)return s.nothing;const k=e.props;return s.html`<div class="time-picker-dropdown" ${Y.ref(l)}>
1259
+ `},renderPortal(){if(!d)return n.nothing;const E=e.props;return n.html`<div class="time-picker-dropdown" ${Y.ref(l)}>
1260
1260
  <div class="time-picker-content">
1261
1261
  <div class="time-column">
1262
- <div class="time-label" ?hidden=${k.hourLabel==null}>${k.hourLabel??e.locale.TimePicker.hour}</div>
1262
+ <div class="time-label" ?hidden=${E.hourLabel==null}>${E.hourLabel??e.locale.TimePicker.hour}</div>
1263
1263
  <div class="time-list">
1264
- <div class="time-option-wrapper" ${Y.ref(c)}>
1265
- ${yi.map(R=>s.html`<div @click=${()=>p(R)} class="time-option">
1266
- <div class="time-option-text">${R.toString().padStart(2,"0")}</div>
1267
- ${b===R?Bo("14","var(--moz-color-accent)",!1,"check-icon"):s.nothing}
1264
+ <div class="time-option-wrapper" ${Y.ref(i)}>
1265
+ ${ca.map(V=>n.html`<div @click=${()=>h(V)} class="time-option">
1266
+ <div class="time-option-text">${V.toString().padStart(2,"0")}</div>
1267
+ ${b===V?sn("14","var(--moz-color-accent)",!1,"check-icon"):n.nothing}
1268
1268
  </div>`)}
1269
1269
  </div>
1270
1270
  </div>
1271
1271
  </div>
1272
1272
  <div class="time-column">
1273
- <div class="time-label" ?hidden=${k.minuteLabel==null}>${k.minuteLabel??e.locale.TimePicker.minute}</div>
1273
+ <div class="time-label" ?hidden=${E.minuteLabel==null}>${E.minuteLabel??e.locale.TimePicker.minute}</div>
1274
1274
  <div class="time-list">
1275
1275
  <div class="time-option-wrapper" ${Y.ref(r)}>
1276
- ${$i.map(R=>s.html`<div @click=${()=>y(R)} class="time-option">
1277
- <div class="time-option-text">${R.toString().padStart(2,"0")}</div>
1278
- ${a===R?Bo("14","var(--moz-color-accent)",!1,"check-icon"):s.nothing}
1276
+ ${da.map(V=>n.html`<div @click=${()=>$(V)} class="time-option">
1277
+ <div class="time-option-text">${V.toString().padStart(2,"0")}</div>
1278
+ ${c===V?sn("14","var(--moz-color-accent)",!1,"check-icon"):n.nothing}
1279
1279
  </div>`)}
1280
1280
  </div>
1281
1281
  </div>
1282
1282
  </div>
1283
1283
  </div>
1284
- <div class="time-picker-footer" @click=${F}>
1285
- <span class="time-picker-footer-label">${k.currentTimeLabel??e.locale.TimePicker.currentTime}</span>
1284
+ <div class="time-picker-footer" @click=${_}>
1285
+ <span class="time-picker-footer-label">${E.currentTimeLabel??e.locale.TimePicker.currentTime}</span>
1286
1286
  </div>
1287
- </div>`}}}}),Si={name:"MozTimePicker",core:Ds,booleanProps:["disabled","required"],props:["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required"],emits:["update:modelValue"],slots:[],expose:!1};function ki(e,t=12){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function io(e="var(--moz-color-text-subtle)",t=""){return s.html`<svg class=${t} width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
1287
+ </div>`}}}}),ua={name:"MozTimePicker",core:ns,booleanProps:["disabled","required"],props:["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required"],emits:["update:modelValue"],slots:[],expose:!1};function pa(e,t=12){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function vo(e="var(--moz-color-text-subtle)",t=""){return n.html`<svg class=${t} width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
1288
1288
  <path d="M9 3L3 9M3 3L9 9" stroke=${e} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
1289
- </svg>`}function Fo(e="12",t="var(--moz-color-text-subtle)",o=!1,n=""){const l=ki(e,12),c=o?"var(--moz-color-text-muted)":t;return s.html`<svg class=${n} xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 12 12">
1289
+ </svg>`}function ln(e="12",t="var(--moz-color-text-subtle)",o=!1,s=""){const l=pa(e,12),i=o?"var(--moz-color-text-muted)":t;return n.html`<svg class=${s} xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 12 12">
1290
1290
  <g transform="translate(-0.005)">
1291
1291
  <path
1292
1292
  d="M2.311,12.843a1.028,1.028,0,0,1-.291-.933L2.53,9.262a1.029,1.029,0,0,1,.279-.528L9.241,2.186a1.036,1.036,0,0,1,1.45-.021l2.151,2.071A1.03,1.03,0,0,1,12.861,5.7L6.432,12.246a1.024,1.024,0,0,1-.518.283l-2.665.58a.957.957,0,0,1-.22.024,1.027,1.027,0,0,1-.718-.291M3.652,9.515,3.183,11.95l2.456-.535L10.132,6.84,8.147,4.934Zm7.285-3.494,1.021-1.036L9.979,3.079,8.957,4.114Z"
1293
1293
  transform="translate(-1.577 -1.504)"
1294
- fill=${c}
1295
- stroke=${c}
1294
+ fill=${i}
1295
+ stroke=${i}
1296
1296
  stroke-width="0.6"
1297
1297
  ></path>
1298
1298
  </g>
1299
- </svg>`}const Ei=new Set(["id","modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","class","style"]);function Li(e,t){let o;return(...n)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...n),t)}}const Is=$e({name:"moz-tag-input",defaults:{modelValue:[],required:!1,label:"",addButtonLabel:"",itemsSource:[],displayKey:"",pattern:"",dynamicSearch:!1,simplify:!1,limitItemLength:0,limitTextLength:0,disableUpdate:!1,disableDelete:!1,pushOnBlur:!1,isExpandTop:!1},setup(e){const t=Y.createRef(),o=Y.createRef();let n=null;const l=ot("moz-tag-input-"),c=()=>e.props.id||l;let r=[],h=!1,d=!1,b="",a=!1,m={};const u=()=>e.props,E=f=>u().pattern?new RegExp(`${u().pattern}`).test(f):!0,x=()=>r.map((f,D)=>({...f,idx:D})).filter(f=>f.isSelected!==-1).sort((f,D)=>f.isSelected-D.isSelected),$=()=>x().map(f=>f.value),P=()=>!x().some(f=>!f.isValid),L=(f,D)=>{const A=u().limitItemLength;(!D||D&&A&&x().length<A||D&&!A)&&(D&&r[f].isSelected===-1||!D)&&(r[f].isSelected=D?Date.now():-1)},g=(f,D)=>{const A=r.findIndex(ke=>ke.value===f);if(A!==-1)return $().includes(f)?!1:(L(A,!0),!0);const H={key:Date.now(),isSelected:D?Date.now():-1,isValid:E(f),isEditing:!1,beforeValue:f,value:f};H.isValid&&u().requestCreate&&u().requestCreate(f);const pe=u().limitItemLength;return!D||!pe||D&&pe&&x().length<pe?(r.push(H),!0):!1},i=f=>{r.splice(f,1)},p=f=>{r[f].isValid=E(r[f].value),r[f].isValid&&u().requestUpdate&&u().requestUpdate({before:r[f].beforeValue,after:r[f].value}),r[f].beforeValue=r[f].value},y=()=>{r=r.filter(f=>f.isSelected!==-1),(u().itemsSource??[]).forEach(f=>{g(u().displayKey?f[u().displayKey]:f,!1)})};y();const F=()=>{const f=u().modelValue;if(f&&f.toString()!==$().toString()){const D=[...f];r.forEach((A,H)=>{const pe=D.indexOf(A.value);pe!==-1?(A.isSelected===-1&&L(H,!0),D.splice(pe,1)):L(H,!1)}),D.forEach(A=>g(A,!0))}};F();let I=u().modelValue,K=u().itemsSource,oe=$().toString();const re=()=>{if(!t.value||!o.value)return;const f=t.value.getBoundingClientRect();let D=f.left;f.left+o.value.clientWidth>document.body.clientWidth&&(D-=o.value.clientWidth-f.width),m={minWidth:`${f.width}px`,width:`${f.width}px`,left:`${D}px`,top:`${f.top}px`},e.requestUpdate()},j=f=>{const D=f.target,A=()=>{b&&u().pushOnBlur&&g(b,!0)&&e.emit("modelChange",$()),b="",d=!1,h=!1};D.className&&Array.from(String(D.className).split(" ")).includes("tag-input-not-close")||A(),_(""),window.removeEventListener("mousedown",j),e.requestUpdate()},k=()=>{h=!0,window.addEventListener("mousedown",j),e.requestUpdate(),queueMicrotask(re)};e.onCleanup(()=>window.removeEventListener("mousedown",j));const R=f=>{setTimeout(()=>{const D=o.value,A=D==null?void 0:D.querySelector(`[data-edit-idx="${f}"] .moz-auto-input`);A==null||A.focus()},0)},X=f=>{r[f].isEditing=!0,e.requestUpdate(),R(f)},se=()=>{d=!0,k(),setTimeout(()=>n==null?void 0:n.focus(),0)},N=f=>{if(f.key==="Enter"&&b===""&&e.emit("onEnterEmpty",$()),(f.key==="Enter"||f.key==="Tab"&&u().pushOnBlur)&&b!==""&&(g(b,!0)&&(e.emit("modelChange",$()),b=""),e.requestUpdate()),f.key==="Tab"&&(h=!1,d=!1,e.requestUpdate()),f.key==="Backspace"){const D=f.target,A=x();D.selectionStart===0&&A.length>0&&(L(A[A.length-1].idx,!1),e.requestUpdate())}},ne=f=>{u().dynamicSearch&&u().requestRead&&(a=!0,e.requestUpdate(),_(f.target.value))},_=Li(f=>{u().requestRead&&u().requestRead(f).then(()=>{a=!1,e.requestUpdate()})},300),J=(f,D)=>{f.key==="Backspace"&&r[D].value===""&&r.length>1&&(i(D),e.requestUpdate())},z=f=>{f.key==="Enter"&&(d=!0,e.requestUpdate(),setTimeout(()=>n==null?void 0:n.focus(),0))},W=f=>{r[f].value===""&&i(f),(r.length>1||r[f]&&r[f].value!=="")&&r[f]&&(r[f].isEditing=!1),r[f]&&p(f),e.requestUpdate()},Z=f=>{L(f,!0),e.requestUpdate(),n==null||n.focus()},G=f=>{f.style.width="1px",f.style.width=`${f.scrollWidth}px`},Q=f=>{const D=u().limitTextLength;return s.html`<input
1300
- id=${f.id??s.nothing}
1299
+ </svg>`}const ha=new Set(["id","modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","class","style"]);function ma(e,t){let o;return(...s)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...s),t)}}const ss=ye({name:"moz-tag-input",defaults:{modelValue:[],required:!1,label:"",addButtonLabel:"",itemsSource:[],displayKey:"",pattern:"",dynamicSearch:!1,simplify:!1,limitItemLength:0,limitTextLength:0,disableUpdate:!1,disableDelete:!1,pushOnBlur:!1,isExpandTop:!1},setup(e){const t=Y.createRef(),o=Y.createRef();let s=null;const l=Qe("moz-tag-input-"),i=()=>e.props.id||l;let r=[],p=!1,d=!1,b="",c=!1,m={};const u=()=>e.props,k=g=>u().pattern?new RegExp(`${u().pattern}`).test(g):!0,x=()=>r.map((g,R)=>({...g,idx:R})).filter(g=>g.isSelected!==-1).sort((g,R)=>g.isSelected-R.isSelected),S=()=>x().map(g=>g.value),L=()=>!x().some(g=>!g.isValid),M=(g,R)=>{const I=u().limitItemLength;(!R||R&&I&&x().length<I||R&&!I)&&(R&&r[g].isSelected===-1||!R)&&(r[g].isSelected=R?Date.now():-1)},f=(g,R)=>{const I=r.findIndex(ke=>ke.value===g);if(I!==-1)return S().includes(g)?!1:(M(I,!0),!0);const H={key:Date.now(),isSelected:R?Date.now():-1,isValid:k(g),isEditing:!1,beforeValue:g,value:g};H.isValid&&u().requestCreate&&u().requestCreate(g);const pe=u().limitItemLength;return!R||!pe||R&&pe&&x().length<pe?(r.push(H),!0):!1},a=g=>{r.splice(g,1)},h=g=>{r[g].isValid=k(r[g].value),r[g].isValid&&u().requestUpdate&&u().requestUpdate({before:r[g].beforeValue,after:r[g].value}),r[g].beforeValue=r[g].value},$=()=>{r=r.filter(g=>g.isSelected!==-1),(u().itemsSource??[]).forEach(g=>{f(u().displayKey?g[u().displayKey]:g,!1)})};$();const _=()=>{const g=u().modelValue;if(g&&g.toString()!==S().toString()){const R=[...g];r.forEach((I,H)=>{const pe=R.indexOf(I.value);pe!==-1?(I.isSelected===-1&&M(H,!0),R.splice(pe,1)):M(H,!1)}),R.forEach(I=>f(I,!0))}};_();let O=u().modelValue,U=u().itemsSource,Q=S().toString();const re=()=>{if(!t.value||!o.value)return;const g=t.value.getBoundingClientRect();let R=g.left;g.left+o.value.clientWidth>document.body.clientWidth&&(R-=o.value.clientWidth-g.width),m={minWidth:`${g.width}px`,width:`${g.width}px`,left:`${R}px`,top:`${g.top}px`},e.requestUpdate()},X=g=>{const R=g.target,I=()=>{b&&u().pushOnBlur&&f(b,!0)&&e.emit("modelChange",S()),b="",d=!1,p=!1};R.className&&Array.from(String(R.className).split(" ")).includes("tag-input-not-close")||I(),F(""),window.removeEventListener("mousedown",X),e.requestUpdate()},E=()=>{p=!0,window.addEventListener("mousedown",X),e.requestUpdate(),queueMicrotask(re)};e.onCleanup(()=>window.removeEventListener("mousedown",X));const V=g=>{setTimeout(()=>{const R=o.value,I=R==null?void 0:R.querySelector(`[data-edit-idx="${g}"] .moz-auto-input`);I==null||I.focus()},0)},J=g=>{r[g].isEditing=!0,e.requestUpdate(),V(g)},le=()=>{d=!0,E(),setTimeout(()=>s==null?void 0:s.focus(),0)},N=g=>{if(g.key==="Enter"&&b===""&&e.emit("onEnterEmpty",S()),(g.key==="Enter"||g.key==="Tab"&&u().pushOnBlur)&&b!==""&&(f(b,!0)&&(e.emit("modelChange",S()),b=""),e.requestUpdate()),g.key==="Tab"&&(p=!1,d=!1,e.requestUpdate()),g.key==="Backspace"){const R=g.target,I=x();R.selectionStart===0&&I.length>0&&(M(I[I.length-1].idx,!1),e.requestUpdate())}},ie=g=>{u().dynamicSearch&&u().requestRead&&(c=!0,e.requestUpdate(),F(g.target.value))},F=ma(g=>{u().requestRead&&u().requestRead(g).then(()=>{c=!1,e.requestUpdate()})},300),oe=(g,R)=>{g.key==="Backspace"&&r[R].value===""&&r.length>1&&(a(R),e.requestUpdate())},T=g=>{g.key==="Enter"&&(d=!0,e.requestUpdate(),setTimeout(()=>s==null?void 0:s.focus(),0))},W=g=>{r[g].value===""&&a(g),(r.length>1||r[g]&&r[g].value!=="")&&r[g]&&(r[g].isEditing=!1),r[g]&&h(g),e.requestUpdate()},K=g=>{M(g,!0),e.requestUpdate(),s==null||s.focus()},ee=g=>{g.style.width="1px",g.style.width=`${g.scrollWidth}px`},te=g=>{const R=u().limitTextLength;return n.html`<input
1300
+ id=${g.id??n.nothing}
1301
1301
  class="moz-auto-input tag-input-common tag-input-add"
1302
- .value=${f.value}
1302
+ .value=${g.value}
1303
1303
  style="width:1px"
1304
- ${Y.ref(A=>{var pe;const H=A??null;H&&G(H),(pe=f.captureEl)==null||pe.call(f,H)})}
1305
- @input=${A=>{var pe;const H=A.target;D&&H.value.length<=D||!D||D===-1?f.setValue(H.value):H.value=f.value,G(H),(pe=f.onInputExtra)==null||pe.call(f,A)}}
1306
- @keydown=${A=>{var H;return(H=f.onKeydown)==null?void 0:H.call(f,A)}}
1307
- @keyup=${A=>{var H;return(H=f.onKeyup)==null?void 0:H.call(f,A)}}
1308
- @blur=${()=>{var A;return(A=f.onBlur)==null?void 0:A.call(f)}}
1309
- />`},T=(f,D,A)=>s.html`<div class="tag-input-controller" style=${te.styleMap({display:f.isSelected!==-1?"":"none"})}>
1304
+ ${Y.ref(I=>{var pe;const H=I??null;H&&ee(H),(pe=g.captureEl)==null||pe.call(g,H)})}
1305
+ @input=${I=>{var pe;const H=I.target;R&&H.value.length<=R||!R||R===-1?g.setValue(H.value):H.value=g.value,ee(H),(pe=g.onInputExtra)==null||pe.call(g,I)}}
1306
+ @keydown=${I=>{var H;return(H=g.onKeydown)==null?void 0:H.call(g,I)}}
1307
+ @keyup=${I=>{var H;return(H=g.onKeyup)==null?void 0:H.call(g,I)}}
1308
+ @blur=${()=>{var I;return(I=g.onBlur)==null?void 0:I.call(g)}}
1309
+ />`},P=(g,R,I)=>n.html`<div class="tag-input-controller" style=${j.styleMap({display:g.isSelected!==-1?"":"none"})}>
1310
1310
  <div
1311
- class=${V("tag-input-item",{invalid:!f.isValid})}
1312
- data-isValid=${String(f.isValid)}
1313
- data-edit-idx=${f.idx}
1311
+ class=${A("tag-input-item",{invalid:!g.isValid})}
1312
+ data-isValid=${String(g.isValid)}
1313
+ data-edit-idx=${g.idx}
1314
1314
  @mousedown=${H=>H.stopPropagation()}
1315
1315
  >
1316
- ${A&&u().simplify&&f.isEditing?Q({value:f.value,setValue:H=>{r[f.idx].value=H,e.requestUpdate()},onKeydown:H=>J(H,f.idx),onKeyup:H=>z(H),onBlur:()=>W(f.idx)}):s.html`<span class="tag-input-preview tag-input-common">${f.value}</span>`}
1316
+ ${I&&u().simplify&&g.isEditing?te({value:g.value,setValue:H=>{r[g.idx].value=H,e.requestUpdate()},onKeydown:H=>oe(H,g.idx),onKeyup:H=>T(H),onBlur:()=>W(g.idx)}):n.html`<span class="tag-input-preview tag-input-common">${g.value}</span>`}
1317
1317
  <div class="tag-input-btn-wrapper">
1318
- ${u().simplify&&!f.isEditing&&!u().disableUpdate?s.html`<span
1318
+ ${u().simplify&&!g.isEditing&&!u().disableUpdate?n.html`<span
1319
1319
  class="tag-input-button cursor-pointer"
1320
1320
  role="button"
1321
1321
  tabindex="0"
1322
- aria-label=${e.locale.TagInput.editTag.replace("{label}",f.value??"")}
1323
- @click=${()=>X(f.idx)}
1324
- @keydown=${H=>{H.key!=="Enter"&&H.key!==" "||(H.preventDefault(),X(f.idx))}}
1325
- >${Fo("10")}</span
1326
- >`:s.nothing}
1322
+ aria-label=${e.locale.TagInput.editTag.replace("{label}",g.value??"")}
1323
+ @click=${()=>J(g.idx)}
1324
+ @keydown=${H=>{H.key!=="Enter"&&H.key!==" "||(H.preventDefault(),J(g.idx))}}
1325
+ >${ln("10")}</span
1326
+ >`:n.nothing}
1327
1327
  <span
1328
1328
  class="tag-input-button cursor-pointer"
1329
1329
  role="button"
1330
1330
  tabindex="0"
1331
- aria-label=${e.locale.TagInput.removeTag.replace("{label}",f.value??"")}
1332
- @click=${()=>{L(f.idx,!1),e.requestUpdate()}}
1333
- @keydown=${H=>{H.key!=="Enter"&&H.key!==" "||(H.preventDefault(),L(f.idx,!1),e.requestUpdate())}}
1334
- >${io()}</span
1331
+ aria-label=${e.locale.TagInput.removeTag.replace("{label}",g.value??"")}
1332
+ @click=${()=>{M(g.idx,!1),e.requestUpdate()}}
1333
+ @keydown=${H=>{H.key!=="Enter"&&H.key!==" "||(H.preventDefault(),M(g.idx,!1),e.requestUpdate())}}
1334
+ >${vo()}</span
1335
1335
  >
1336
1336
  </div>
1337
1337
  </div>
1338
- </div>`;return{api:{isValid:P},render(){const f=e.props;f.modelValue!==I&&(I=f.modelValue,F()),f.itemsSource!==K&&(K=f.itemsSource,y());const D=$().toString();if(D!==oe){oe=D;const H=$();queueMicrotask(()=>e.emit("update:modelValue",H))}const A=ye(f,Ei);return s.html`
1339
- <div class=${V("moz-tag-input-wrapper",f.class)} style=${te.styleMap(Ce(f.style))} ${fe(A)}>
1340
- ${f.label?s.html`<label for=${c()} class=${V("tag-input-label",{required:f.required})} @click=${se}>${f.label}</label>`:s.nothing}
1338
+ </div>`;return{api:{isValid:L},render(){const g=e.props;g.modelValue!==O&&(O=g.modelValue,_()),g.itemsSource!==U&&(U=g.itemsSource,$());const R=S().toString();if(R!==Q){Q=R;const H=S();queueMicrotask(()=>e.emit("update:modelValue",H))}const I=ge(g,ha);return n.html`
1339
+ <div class=${A("moz-tag-input-wrapper",g.class)} style=${j.styleMap(he(g.style))} ${ce(I)}>
1340
+ ${g.label?n.html`<label for=${i()} class=${A("tag-input-label",{required:g.required})} @click=${le}>${g.label}</label>`:n.nothing}
1341
1341
  <div class="tag-input-grid">
1342
1342
  <div
1343
1343
  class="tag-input-not-close tag-input-row scrollbar-none"
1344
- @mousedown=${H=>{H.stopPropagation(),se()}}
1345
- @click=${k}
1344
+ @mousedown=${H=>{H.stopPropagation(),le()}}
1345
+ @click=${E}
1346
1346
  ${Y.ref(t)}
1347
1347
  >
1348
1348
  ${e.slot("left")}
1349
- ${x().map((H,pe)=>T(H,pe,!1))}
1350
- ${d?s.html`<span class="tag-input-preview tag-input-common" @click=${se}>${b}</span>`:s.nothing}
1351
- ${f.limitItemLength&&d?s.html`<div class="tag-input-counter">${x().length} / ${f.limitItemLength}</div>`:s.nothing}
1352
- ${d?s.nothing:s.html`<span class="tag-input-add-to">${f.addButtonLabel?f.addButtonLabel:e.locale.TagInput.add} </span>`}
1349
+ ${x().map((H,pe)=>P(H,pe,!1))}
1350
+ ${d?n.html`<span class="tag-input-preview tag-input-common" @click=${le}>${b}</span>`:n.nothing}
1351
+ ${g.limitItemLength&&d?n.html`<div class="tag-input-counter">${x().length} / ${g.limitItemLength}</div>`:n.nothing}
1352
+ ${d?n.nothing:n.html`<span class="tag-input-add-to">${g.addButtonLabel?g.addButtonLabel:e.locale.TagInput.add} </span>`}
1353
1353
  <div class="flex-1"></div>
1354
1354
  ${e.slot("right")}
1355
1355
  </div>
1356
1356
  </div>
1357
1357
  </div>
1358
- `},renderPortal(){if(!h)return s.nothing;const f=e.props;return s.html`<div class="absolute z-1501 moz-tag-input-float" style=${te.styleMap(m)}>
1358
+ `},renderPortal(){if(!p)return n.nothing;const g=e.props;return n.html`<div class="absolute z-1501 moz-tag-input-float" style=${j.styleMap(m)}>
1359
1359
  <div
1360
1360
  class="tag-input-placeholder-float tag-input-not-close scrollbar-none shown"
1361
- @mousedown=${D=>{D.stopPropagation(),se()}}
1361
+ @mousedown=${R=>{R.stopPropagation(),le()}}
1362
1362
  ${Y.ref(o)}
1363
1363
  >
1364
- ${x().map((D,A)=>T(D,A,!0))}
1365
- ${d?Q({id:c(),value:b,setValue:D=>{b=D,e.requestUpdate()},onKeydown:N,onKeyup:()=>{},onBlur:()=>{},onInputExtra:ne,captureEl:D=>{n=D}}):s.nothing}
1366
- ${a?s.html`<div class="tag-input-loading">
1364
+ ${x().map((R,I)=>P(R,I,!0))}
1365
+ ${d?te({id:i(),value:b,setValue:R=>{b=R,e.requestUpdate()},onKeydown:N,onKeyup:()=>{},onBlur:()=>{},onInputExtra:ie,captureEl:R=>{s=R}}):n.nothing}
1366
+ ${c?n.html`<div class="tag-input-loading">
1367
1367
  <div class="tag-input-loading-ball-1"></div>
1368
1368
  <div class="tag-input-loading-ball-2"></div>
1369
1369
  <div class="tag-input-loading-ball-3"></div>
1370
- </div>`:s.nothing}
1371
- ${f.limitItemLength&&d?s.html`<div class="tag-input-counter" @click=${se}>
1372
- ${x().length} / ${f.limitItemLength}
1373
- </div>`:s.nothing}
1374
- ${d?s.nothing:s.html`<span class="tag-input-add-to flex-1">${f.addButtonLabel?f.addButtonLabel:""} </span>`}
1370
+ </div>`:n.nothing}
1371
+ ${g.limitItemLength&&d?n.html`<div class="tag-input-counter" @click=${le}>
1372
+ ${x().length} / ${g.limitItemLength}
1373
+ </div>`:n.nothing}
1374
+ ${d?n.nothing:n.html`<span class="tag-input-add-to flex-1">${g.addButtonLabel?g.addButtonLabel:""} </span>`}
1375
1375
  </div>
1376
- ${f.simplify?s.nothing:s.html`<div class="tag-input-dropdown-outer-wrapper" @mousedown=${D=>D.stopPropagation()}>
1377
- <div class=${V("tag-input-dropdown-wrapper",{"expand-top":f.isExpandTop})}>
1376
+ ${g.simplify?n.nothing:n.html`<div class="tag-input-dropdown-outer-wrapper" @mousedown=${R=>R.stopPropagation()}>
1377
+ <div class=${A("tag-input-dropdown-wrapper",{"expand-top":g.isExpandTop})}>
1378
1378
  <div class="tag-input-dropdown-inner-wrapper">
1379
1379
  <div class="tag-input-dropdown-title"></div>
1380
- ${r.map((D,A)=>s.html`<div class="dropdown-tag-input-item-wrapper tag-input-controller">
1380
+ ${r.map((R,I)=>n.html`<div class="dropdown-tag-input-item-wrapper tag-input-controller">
1381
1381
  <div
1382
- class=${V("tag-input-item tag-item-limit-width",{invalid:!D.isValid})}
1383
- data-isValid=${String(D.isValid)}
1384
- data-edit-idx=${A}
1385
- @click=${()=>Z(A)}
1382
+ class=${A("tag-input-item tag-item-limit-width",{invalid:!R.isValid})}
1383
+ data-isValid=${String(R.isValid)}
1384
+ data-edit-idx=${I}
1385
+ @click=${()=>K(I)}
1386
1386
  >
1387
- ${D.isEditing?Q({value:D.value,setValue:H=>{r[A].value=H,e.requestUpdate()},onKeydown:H=>J(H,A),onKeyup:H=>z(H),onBlur:()=>W(A)}):s.html`<span class="tag-input-preview tag-input-common">
1388
- <span>${D.value}</span>
1387
+ ${R.isEditing?te({value:R.value,setValue:H=>{r[I].value=H,e.requestUpdate()},onKeydown:H=>oe(H,I),onKeyup:H=>T(H),onBlur:()=>W(I)}):n.html`<span class="tag-input-preview tag-input-common">
1388
+ <span>${R.value}</span>
1389
1389
  <div class="tag-input-btn-wrapper">
1390
- ${!D.isEditing&&!f.disableUpdate?s.html`<span
1390
+ ${!R.isEditing&&!g.disableUpdate?n.html`<span
1391
1391
  class="tag-input-button cursor-pointer"
1392
- @click=${H=>{H.stopPropagation(),X(A)}}
1393
- >${Fo("10")}</span
1394
- >`:s.nothing}
1395
- ${f.disableDelete?s.nothing:s.html`<span
1392
+ @click=${H=>{H.stopPropagation(),J(I)}}
1393
+ >${ln("10")}</span
1394
+ >`:n.nothing}
1395
+ ${g.disableDelete?n.nothing:n.html`<span
1396
1396
  class="tag-input-button cursor-pointer"
1397
- @click=${H=>{H.stopPropagation(),i(A),e.requestUpdate()}}
1398
- >${io()}</span
1397
+ @click=${H=>{H.stopPropagation(),a(I),e.requestUpdate()}}
1398
+ >${vo()}</span
1399
1399
  >`}
1400
1400
  </div>
1401
1401
  </span>`}
@@ -1404,64 +1404,64 @@
1404
1404
  </div>
1405
1405
  </div>
1406
1406
  </div>`}
1407
- </div>`}}}}),Pi={name:"MozTagInput",core:Is,booleanProps:["disableDelete","disableUpdate","dynamicSearch","isExpandTop","pushOnBlur","required","simplify"],props:["modelValue","required","label","addButtonLabel","itemsSource","displayKey","pattern","dynamicSearch","requestCreate","requestRead","requestUpdate","simplify","limitItemLength","limitTextLength","disableUpdate","disableDelete","pushOnBlur","isExpandTop"],emits:["update:modelValue","modelChange","onEnterEmpty"],slots:["left","right"],expose:!0},Mi=new Set(["itemSource","fixPosition","noPadding","minWidth","class","style"]);function xi(e,t){let o;return(...n)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...n),t)}}const zi=500,Vs=$e({name:"moz-context-menu",defaults:{transition:"fade",minWidth:"160px",direction:"rb"},setup(e){let t=null,o=null;const n=Y.createRef();let l=!1,c=!1,r=!1,h=!1,d=null,b=!1,a=!1,m=!1,u=!1,E=0,x=!1,$=null,P=null;const L=T=>{$=e.props.fixPosition?T:null},g=new Map,i=new Map,p=new Map,y=new Map,F=()=>{l&&c&&(d||e.props.itemSource)&&o&&!u&&(u=!0,e.emit("open",{target:o}))},I=T=>{const f=r!==T;r=T,e.requestUpdate(),f&&!T&&setTimeout(()=>{l=!1,h=!1,u=!1,e.emit("close",{target:o}),e.requestUpdate()},50)},K=T=>{const f=l!==T;l=T,e.requestUpdate(),f&&(setTimeout(()=>{c=l,e.requestUpdate(),F()},0),I(l),F())},oe=T=>{if(e.props.fixPosition&&T===P||e.props.disableCloseOnClickBackdrop)return;const f=["list-box-container"],D=T.composedPath();D.includes(o)||f.forEach(A=>{(!A||A&&!D.some(H=>{var pe;return(pe=H.classList)==null?void 0:pe.contains(A)}))&&re()})},re=()=>{(e.props.beforeClose??(()=>{}))&&(P=null,$=null,x=!1,++E,I(!1),window.removeEventListener("mousedown",oe),window.removeEventListener("resize",re))},j=(T,f)=>{T instanceof Function&&(d=T(f));const D=!!e.props.fixPosition;P=D&&$&&$.eventPhase!==0?$:null;const A=++E;x=D,K(!0),setTimeout(()=>{D&&(!x||A!==E)||K(!0)},60)},k=()=>{l?re():j()},R=()=>{const T=e.props.fixPosition;if(!T)return;const f=T.selector&&document.querySelector(T.selector)||t;if(!f||!o||!n.value)return;const D=f.getBoundingClientRect(),A=n.value.getBoundingClientRect();b=D.left+f.clientWidth<A.left+o.clientWidth,a=D.left+f.clientWidth<A.left+o.clientWidth*2,m=D.top+f.clientHeight<A.top+o.clientHeight,T.useTeleport?(o.style.left=`${A.left}px`,o.style.top=`${A.top}px`):(o.style.left=`${n.value.offsetLeft}px`,o.style.top=`${n.value.offsetTop}px`),e.requestUpdate()},X=()=>{if(!e.props.fixPosition||!x||h)return;const T=E;queueMicrotask(()=>{T!==E||!x||!e.props.fixPosition||!l||h||!t||!o||!n.value||(R(),t.style.pointerEvents="none",window.addEventListener("mousedown",oe),window.addEventListener("resize",re),h=!0)})},se=T=>{h||(o&&t&&(e.props.fixPosition?R():(b=t.clientWidth<T.clientX+o.clientWidth,a=t.clientWidth<T.clientX+o.clientWidth*2,m=t.clientHeight<T.clientY+o.clientHeight,o.style.left=`${T.clientX}px`,o.style.top=`${T.clientY}px`)),t&&(t.style.pointerEvents="none"),window.addEventListener("mousedown",oe),window.addEventListener("resize",re),h=!0,e.requestUpdate())};e.onCleanup(()=>{window.removeEventListener("mousedown",L,!0),$=null,P=null,x=!1,++E,window.removeEventListener("mousedown",oe),window.removeEventListener("resize",re)});const N=T=>{let f=y.get(T);return f||(f=xi((D,A,H)=>{A.children&&(ne(H,A),g.set(H,D),e.requestUpdate())},400),y.set(T,f)),f},ne=(T,f)=>{if(!f.children||i.get(T))return;const D=p.get(T);if(!D)return;const A=D.getBoundingClientRect();i.set(T,D.clientHeight+A.top>document.body.offsetHeight)},_=(T,f)=>{T.function?(T.function(),re()):T.children&&(ne(f,T),g.set(f,!0),e.requestUpdate())},J=T=>typeof T.disabled=="function"?T.disabled():!!T.disabled,z=(T,f,D,A)=>{const H=g.get(A)??!1,pe=i.get(A)??!1,ke=N(A);return s.html`<div
1408
- class=${V({"context-menu-item-enable-hover":!("hover"in T)||T.hover,"context-menu-item-wrapper":!0,"context-menu-item-wrapper-selected":H,"context-menu-item-wrapper-disabled":J(T)})}
1409
- @mouseenter=${()=>ke(!0,T,A)}
1410
- @mouseleave=${()=>ke(!1,T,A)}
1407
+ </div>`}}}}),fa={name:"MozTagInput",core:ss,booleanProps:["disableDelete","disableUpdate","dynamicSearch","isExpandTop","pushOnBlur","required","simplify"],props:["modelValue","required","label","addButtonLabel","itemsSource","displayKey","pattern","dynamicSearch","requestCreate","requestRead","requestUpdate","simplify","limitItemLength","limitTextLength","disableUpdate","disableDelete","pushOnBlur","isExpandTop"],emits:["update:modelValue","modelChange","onEnterEmpty"],slots:["left","right"],expose:!0},ga=new Set(["itemSource","fixPosition","noPadding","minWidth","class","style"]);function va(e,t){let o;return(...s)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...s),t)}}const wa=500,ls=ye({name:"moz-context-menu",defaults:{transition:"fade",minWidth:"160px",direction:"rb"},setup(e){let t=null,o=null;const s=Y.createRef();let l=!1,i=!1,r=!1,p=!1,d=null,b=!1,c=!1,m=!1,u=!1,k=0,x=!1,S=null,L=null;const M=P=>{S=e.props.fixPosition?P:null},f=new Map,a=new Map,h=new Map,$=new Map,_=()=>{l&&i&&(d||e.props.itemSource)&&o&&!u&&(u=!0,e.emit("open",{target:o}))},O=P=>{const g=r!==P;r=P,e.requestUpdate(),g&&!P&&setTimeout(()=>{l=!1,p=!1,u=!1,e.emit("close",{target:o}),e.requestUpdate()},50)},U=P=>{const g=l!==P;l=P,e.requestUpdate(),g&&(setTimeout(()=>{i=l,e.requestUpdate(),_()},0),O(l),_())},Q=P=>{if(e.props.fixPosition&&P===L||e.props.disableCloseOnClickBackdrop)return;const g=["list-box-container"],R=P.composedPath();R.includes(o)||g.forEach(I=>{(!I||I&&!R.some(H=>{var pe;return(pe=H.classList)==null?void 0:pe.contains(I)}))&&re()})},re=()=>{(e.props.beforeClose??(()=>{}))&&(L=null,S=null,x=!1,++k,O(!1),window.removeEventListener("mousedown",Q),window.removeEventListener("resize",re))},X=(P,g)=>{P instanceof Function&&(d=P(g));const R=!!e.props.fixPosition;L=R&&S&&S.eventPhase!==0?S:null;const I=++k;x=R,U(!0),setTimeout(()=>{R&&(!x||I!==k)||U(!0)},60)},E=()=>{l?re():X()},V=()=>{const P=e.props.fixPosition;if(!P)return;const g=P.selector&&document.querySelector(P.selector)||t;if(!g||!o||!s.value)return;const R=g.getBoundingClientRect(),I=s.value.getBoundingClientRect();b=R.left+g.clientWidth<I.left+o.clientWidth,c=R.left+g.clientWidth<I.left+o.clientWidth*2,m=R.top+g.clientHeight<I.top+o.clientHeight,P.useTeleport?(o.style.left=`${I.left}px`,o.style.top=`${I.top}px`):(o.style.left=`${s.value.offsetLeft}px`,o.style.top=`${s.value.offsetTop}px`),e.requestUpdate()},J=()=>{if(!e.props.fixPosition||!x||p)return;const P=k;queueMicrotask(()=>{P!==k||!x||!e.props.fixPosition||!l||p||!t||!o||!s.value||(V(),t.style.pointerEvents="none",window.addEventListener("mousedown",Q),window.addEventListener("resize",re),p=!0)})},le=P=>{p||(o&&t&&(e.props.fixPosition?V():(b=t.clientWidth<P.clientX+o.clientWidth,c=t.clientWidth<P.clientX+o.clientWidth*2,m=t.clientHeight<P.clientY+o.clientHeight,o.style.left=`${P.clientX}px`,o.style.top=`${P.clientY}px`)),t&&(t.style.pointerEvents="none"),window.addEventListener("mousedown",Q),window.addEventListener("resize",re),p=!0,e.requestUpdate())};e.onCleanup(()=>{window.removeEventListener("mousedown",M,!0),S=null,L=null,x=!1,++k,window.removeEventListener("mousedown",Q),window.removeEventListener("resize",re)});const N=P=>{let g=$.get(P);return g||(g=va((R,I,H)=>{I.children&&(ie(H,I),f.set(H,R),e.requestUpdate())},400),$.set(P,g)),g},ie=(P,g)=>{if(!g.children||a.get(P))return;const R=h.get(P);if(!R)return;const I=R.getBoundingClientRect();a.set(P,R.clientHeight+I.top>document.body.offsetHeight)},F=(P,g)=>{P.function?(P.function(),re()):P.children&&(ie(g,P),f.set(g,!0),e.requestUpdate())},oe=P=>typeof P.disabled=="function"?P.disabled():!!P.disabled,T=(P,g,R,I)=>{const H=f.get(I)??!1,pe=a.get(I)??!1,ke=N(I);return n.html`<div
1408
+ class=${A({"context-menu-item-enable-hover":!("hover"in P)||P.hover,"context-menu-item-wrapper":!0,"context-menu-item-wrapper-selected":H,"context-menu-item-wrapper-disabled":oe(P)})}
1409
+ @mouseenter=${()=>ke(!0,P,I)}
1410
+ @mouseleave=${()=>ke(!1,P,I)}
1411
1411
  >
1412
1412
  <div
1413
- class=${V({"context-menu-sub-items-wrapper-right":D&&!pe,"context-menu-sub-items-wrapper-bottom":pe&&!D,"context-menu-sub-items-wrapper-bottom-right":pe&&D,"context-menu-sub-items-wrapper-hide":!T.children||!H,"context-menu-sub-items-wrapper":!pe&&!D})}
1414
- ${Y.ref(Ae=>{Ae&&p.set(A,Ae)})}
1413
+ class=${A({"context-menu-sub-items-wrapper-right":R&&!pe,"context-menu-sub-items-wrapper-bottom":pe&&!R,"context-menu-sub-items-wrapper-bottom-right":pe&&R,"context-menu-sub-items-wrapper-hide":!P.children||!H,"context-menu-sub-items-wrapper":!pe&&!R})}
1414
+ ${Y.ref(Me=>{Me&&h.set(I,Me)})}
1415
1415
  >
1416
- ${T.children?Z(T.children,f+1,D,A):s.nothing}
1416
+ ${P.children?K(P.children,g+1,R,I):n.nothing}
1417
1417
  </div>
1418
- ${T.template?s.html`<div
1419
- class=${`context-menu-item-${T.template}`}
1420
- @mouseup=${()=>{var Ae;(!("hover"in T)||T.hover)&&((Ae=T.function)==null||Ae.call(T),re())}}
1418
+ ${P.template?n.html`<div
1419
+ class=${`context-menu-item-${P.template}`}
1420
+ @mouseup=${()=>{var Me;(!("hover"in P)||P.hover)&&((Me=P.function)==null||Me.call(P),re())}}
1421
1421
  >
1422
- ${W(T)}
1423
- </div>`:s.html`<div
1422
+ ${W(P)}
1423
+ </div>`:n.html`<div
1424
1424
  class="context-menu-item"
1425
1425
  role="menuitem"
1426
1426
  tabindex="-1"
1427
- aria-disabled=${J(T)?"true":"false"}
1428
- aria-haspopup=${T.children?"menu":"false"}
1429
- @click=${()=>_(T,A)}
1427
+ aria-disabled=${oe(P)?"true":"false"}
1428
+ aria-haspopup=${P.children?"menu":"false"}
1429
+ @click=${()=>F(P,I)}
1430
1430
  >
1431
- <div class="context-menu-item-left">${T.text}</div>
1432
- ${T.children?s.html`<div class="context-menu-item-right"></div>`:s.nothing}
1431
+ <div class="context-menu-item-left">${P.text}</div>
1432
+ ${P.children?n.html`<div class="context-menu-item-right"></div>`:n.nothing}
1433
1433
  </div>`}
1434
- </div>`},W=T=>{const f=T.template,D=f.includes("[col-padding]")?"col-padding":f.includes("[row-padding]")?"row-padding":f.includes("[padding]")?"padding":null,A=e.slots.has(f)?e.slot(f,{props:{...T,close:re}}):s.nothing;return D?s.html`<div class="context-menu-item-template" data-layout=${D}>${A}</div>`:s.html`${A}`},Z=(T,f,D,A)=>{const H=f===0;return s.html`<div
1434
+ </div>`},W=P=>{const g=P.template,R=g.includes("[col-padding]")?"col-padding":g.includes("[row-padding]")?"row-padding":g.includes("[padding]")?"padding":null,I=e.slots.has(g)?e.slot(g,{props:{...P,close:re}}):n.nothing;return R?n.html`<div class="context-menu-item-template" data-layout=${R}>${I}</div>`:n.html`${I}`},K=(P,g,R,I)=>{const H=g===0;return n.html`<div
1435
1435
  role=${H?"menu":"group"}
1436
- class=${V("context-menu-content-wrapper",H?e.props.class:void 0)}
1436
+ class=${A("context-menu-content-wrapper",H?e.props.class:void 0)}
1437
1437
  data-noPadding=${String(!!e.props.noPadding)}
1438
- style=${te.styleMap({minWidth:e.props.minWidth,...H?Ce(e.props.style):{}})}
1439
- ${fe(H?ye(e.props,Mi):{})}
1438
+ style=${j.styleMap({minWidth:e.props.minWidth,...H?he(e.props.style):{}})}
1439
+ ${ce(H?ge(e.props,ga):{})}
1440
1440
  >
1441
- ${T.map((pe,ke)=>{const Ae=`${A}/${f}-${ke}`;return s.html`<div class="context-menu-item-outer-wrapper" style=${te.styleMap({display:pe!=null&&pe.hidden?"none":""})}>
1442
- ${pe.separator?s.html`<div class="context-menu-separator"></div>`:z(pe,f,D,Ae)}
1441
+ ${P.map((pe,ke)=>{const Me=`${I}/${g}-${ke}`;return n.html`<div class="context-menu-item-outer-wrapper" style=${j.styleMap({display:pe!=null&&pe.hidden?"none":""})}>
1442
+ ${pe.separator?n.html`<div class="context-menu-separator"></div>`:T(pe,g,R,Me)}
1443
1443
  </div>`})}
1444
- </div>`},G=()=>{const T=e.props.fixPosition;return T?(typeof T.left=="string"||typeof T.left=="number"||typeof T.top=="string"||typeof T.top=="number")&&T.useTeleport!==!0:!1},Q=()=>{const T=e.props,f=d||T.itemSource;if(!l||!f)return s.nothing;const D=T.transition,A=T.direction;return s.html`<div
1445
- class=${V({[`before-${D}`]:!0,[`after-${D}`]:c&&r,"context-menu-content-hide":!l,"context-menu-content-init":!0,"context-menu-content-init-right":b&&!m||A==="lb"||A.startsWith("l")&&!m||A.endsWith("b")&&b,"context-menu-content-init-bottom":m&&!b||A==="rt"||A.startsWith("r")&&m||A.endsWith("t")&&!b,"context-menu-content-init-bottom-right":m&&b||A==="lt"||A.startsWith("l")&&m||A.endsWith("t")&&b})}
1446
- style=${te.styleMap({transitionDuration:`${zi}ms`,...T.toTopCenter?{transform:"translate(-50%, -100%)"}:{},...T.toBottomCenter?{transform:"translate(-50%, 0)"}:{}})}
1444
+ </div>`},ee=()=>{const P=e.props.fixPosition;return P?(typeof P.left=="string"||typeof P.left=="number"||typeof P.top=="string"||typeof P.top=="number")&&P.useTeleport!==!0:!1},te=()=>{const P=e.props,g=d||P.itemSource;if(!l||!g)return n.nothing;const R=P.transition,I=P.direction;return n.html`<div
1445
+ class=${A({[`before-${R}`]:!0,[`after-${R}`]:i&&r,"context-menu-content-hide":!l,"context-menu-content-init":!0,"context-menu-content-init-right":b&&!m||I==="lb"||I.startsWith("l")&&!m||I.endsWith("b")&&b,"context-menu-content-init-bottom":m&&!b||I==="rt"||I.startsWith("r")&&m||I.endsWith("t")&&!b,"context-menu-content-init-bottom-right":m&&b||I==="lt"||I.startsWith("l")&&m||I.endsWith("t")&&b})}
1446
+ style=${j.styleMap({transitionDuration:`${wa}ms`,...P.toTopCenter?{transform:"translate(-50%, -100%)"}:{},...P.toBottomCenter?{transform:"translate(-50%, 0)"}:{}})}
1447
1447
  @contextmenu=${H=>H.preventDefault()}
1448
- ${Y.ref(H=>{o=H||null,H&&(X(),F())})}
1448
+ ${Y.ref(H=>{o=H||null,H&&(J(),_())})}
1449
1449
  >
1450
- ${Z(f,0,a,"root")}
1451
- </div>`};return{onMounted:()=>{window.addEventListener("mousedown",L,{capture:!0,passive:!0})},api:{state:()=>l,open:j,close:re,toggle:k},render(){const T=e.props;return T.fixPosition?s.html`<div
1450
+ ${K(g,0,c,"root")}
1451
+ </div>`};return{onMounted:()=>{window.addEventListener("mousedown",M,{capture:!0,passive:!0})},api:{state:()=>l,open:X,close:re,toggle:E},render(){const P=e.props;return P.fixPosition?n.html`<div
1452
1452
  class="context-menu-fixed-position-space"
1453
- style=${te.styleMap({left:typeof T.fixPosition.left=="string"?T.fixPosition.left:`${T.fixPosition.left}px`,top:typeof T.fixPosition.top=="string"?T.fixPosition.top:`${T.fixPosition.top}px`})}
1454
- ${Y.ref(n)}
1453
+ style=${j.styleMap({left:typeof P.fixPosition.left=="string"?P.fixPosition.left:`${P.fixPosition.left}px`,top:typeof P.fixPosition.top=="string"?P.fixPosition.top:`${P.fixPosition.top}px`})}
1454
+ ${Y.ref(s)}
1455
1455
  ></div>
1456
- ${G()?Q():s.nothing}`:s.nothing},renderPortal(){const T=d||e.props.itemSource;return!l||!T?s.nothing:s.html`
1456
+ ${ee()?te():n.nothing}`:n.nothing},renderPortal(){const P=d||e.props.itemSource;return!l||!P?n.nothing:n.html`
1457
1457
  <div
1458
1458
  class="context-menu-wrapper"
1459
- @mouseenter=${se}
1460
- @contextmenu=${f=>f.preventDefault()}
1461
- ${Y.ref(f=>{t=f||null,f&&X()})}
1459
+ @mouseenter=${le}
1460
+ @contextmenu=${g=>g.preventDefault()}
1461
+ ${Y.ref(g=>{t=g||null,g&&J()})}
1462
1462
  ></div>
1463
- ${G()?s.nothing:Q()}
1464
- `}}}}),Ti={name:"MozContextMenu",core:Vs,booleanProps:["disableCloseOnClickBackdrop","noPadding","toBottomCenter","toTopCenter"],props:["itemSource","beforeClose","transition","minWidth","direction","fixPosition","toTopCenter","toBottomCenter","noPadding","disableCloseOnClickBackdrop"],emits:["open","close"],slots:[],expose:!0};function No(e){const{displayProps:t=["text"],columnHeaders:o,columnWidths:n=[],useObjKeyProp:l=!1,...c}=e,r=t.reduce((h,d,b)=>h+(n[b]??120),0)+Math.max(0,t.length-1)*12+34+30;return{...c,width:e.width??`${r}px`,listWidth:e.listWidth??"auto",useObjBinding:l,displayProp:t.map((h,d)=>({key:h,header:o!=null&&o.length?o[d]??"":void 0,width:(n[d]??120)+(d===t.length-1?30:0)}))}}const Ai=zs(!0),Os=(e,t,o,n)=>{let l={...t};const c=Ai(e,No(l),o,n);return{get el(){return c.el},api:c.api,destroy:()=>c.destroy(),notifyMounted:()=>{var r;return(r=c.notifyMounted)==null?void 0:r.call(c)},setLocale:r=>{var h;return(h=c.setLocale)==null?void 0:h.call(c,r)},update(r,h){l=h!=null&&h.replace?{...r}:{...l,...r},c.update(No(l),h)}}},Ri={name:"MozTableSelect",core:Os,booleanProps:["disabled","readonly","required","useFilter","useObjKeyProp"],props:["itemsSource","label","width","required","readonly","disabled","keyProp","displayProps","columnWidths","separator","rules","useFilter","listWidth","searchPlaceholder","emptyText","requiredMessage","useObjKeyProp","columnHeaders","modelValue"],emits:["change","close","update:modelValue"],slots:["empty"],expose:!0};function Di(e="var(--moz-color-text-subtle)",t=12){return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 12 12" fill="none">
1463
+ ${ee()?n.nothing:te()}
1464
+ `}}}}),ya={name:"MozContextMenu",core:ls,booleanProps:["disableCloseOnClickBackdrop","noPadding","toBottomCenter","toTopCenter"],props:["itemSource","beforeClose","transition","minWidth","direction","fixPosition","toTopCenter","toBottomCenter","noPadding","disableCloseOnClickBackdrop"],emits:["open","close"],slots:[],expose:!0};function an(e){const{displayProps:t=["text"],columnHeaders:o,columnWidths:s=[],useObjKeyProp:l=!1,...i}=e,r=t.reduce((p,d,b)=>p+(s[b]??120),0)+Math.max(0,t.length-1)*12+34+30;return{...i,width:e.width??`${r}px`,listWidth:e.listWidth??"auto",useObjBinding:l,displayProp:t.map((p,d)=>({key:p,header:o!=null&&o.length?o[d]??"":void 0,width:(s[d]??120)+(d===t.length-1?30:0)}))}}const ba=Jn(!0),is=(e,t,o,s)=>{let l={...t};const i=ba(e,an(l),o,s);return{get el(){return i.el},api:i.api,destroy:()=>i.destroy(),notifyMounted:()=>{var r;return(r=i.notifyMounted)==null?void 0:r.call(i)},setLocale:r=>{var p;return(p=i.setLocale)==null?void 0:p.call(i,r)},update(r,p){l=p!=null&&p.replace?{...r}:{...l,...r},i.update(an(l),p)}}},Ca={name:"MozTableSelect",core:is,booleanProps:["disabled","readonly","required","useFilter","useObjKeyProp"],props:["itemsSource","label","width","required","readonly","disabled","keyProp","displayProps","columnWidths","separator","rules","useFilter","listWidth","searchPlaceholder","emptyText","requiredMessage","useObjKeyProp","columnHeaders","modelValue"],emits:["change","close","update:modelValue"],slots:["empty"],expose:!0};function $a(e="var(--moz-color-text-subtle)",t=12){return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 12 12" fill="none">
1465
1465
  <path
1466
1466
  d="M2.49902 4.27679L6.04436 7.73581L9.501 4.27679"
1467
1467
  stroke=${e}
@@ -1469,7 +1469,7 @@
1469
1469
  stroke-linecap="round"
1470
1470
  stroke-linejoin="round"
1471
1471
  ></path>
1472
- </svg>`}function Ii(e="var(--moz-color-text-subtle)",t=12){return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 12 12" fill="none">
1472
+ </svg>`}function Sa(e="var(--moz-color-text-subtle)",t=12){return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 12 12" fill="none">
1473
1473
  <path
1474
1474
  d="M9.50095 7.73636L5.95563 4.27734L2.49902 7.73636"
1475
1475
  stroke=${e}
@@ -1477,13 +1477,13 @@
1477
1477
  stroke-linecap="round"
1478
1478
  stroke-linejoin="round"
1479
1479
  ></path>
1480
- </svg>`}function Vi(e="var(--moz-color-text-subtle)",t=12,o=""){return s.html`<svg class=${o} width=${t} height=${t} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
1480
+ </svg>`}function ka(e="var(--moz-color-text-subtle)",t=12,o=""){return n.html`<svg class=${o} width=${t} height=${t} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
1481
1481
  <path d="M1.71436 7.07145L3.00007 6.00002L1.71436 4.92859" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
1482
1482
  <path d="M5.14307 4.71423H10.2859" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1483
1483
  <path d="M1.71436 2.14282L10.2858 2.14282" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1484
1484
  <path d="M5.14307 7.28577H10.2859" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1485
1485
  <path d="M1.71436 9.85718L10.2858 9.85718" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1486
- </svg>`}function Oi(e="var(--moz-color-text-subtle)",t=12,o=""){return s.html`<svg class=${o} width=${t} height=${t} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
1486
+ </svg>`}function Ma(e="var(--moz-color-text-subtle)",t=12,o=""){return n.html`<svg class=${o} width=${t} height=${t} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
1487
1487
  <path d="M0.856934 4.92852L2.14265 4.07138L0.856934 3.21423" fill=${e}></path>
1488
1488
  <path d="M0.856934 4.92852L2.14265 4.07138L0.856934 3.21423V4.92852Z" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
1489
1489
  <path d="M0.856934 8.7857L2.14265 7.92855L0.856934 7.07141" fill=${e}></path>
@@ -1491,49 +1491,49 @@
1491
1491
  <path d="M3.8501 2.35718H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1492
1492
  <path d="M3.8501 6H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1493
1493
  <path d="M3.8501 9.64282H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1494
- </svg>`}const ro={keyProp:"code",displayProp:"name",categoryLv1ID:"categoryLv1ID",categoryLv1Label:"categoryLv1Label",categoryLv2ID:"categoryLv2ID",categoryLv2Label:"categoryLv2Label",description:"description"},Lt=new WeakMap;function Xt(e){return Lt.get(e)===!0}function Qt(e,t){return Lt.has(e)&&Lt.set(t,Lt.get(e)),t}function qi(e,t,o="disabled"){const n=r=>t.displayProp&&r[t.displayProp]?r[t.displayProp]:r[t.keyProp],l=r=>t.categoryLv1Label&&r[t.categoryLv1Label]?r[t.categoryLv1Label]:t.categoryLv1ID?r[t.categoryLv1ID]:"",c=r=>t.categoryLv2Label&&r[t.categoryLv2Label]?r[t.categoryLv2Label]:t.categoryLv2ID?r[t.categoryLv2ID]:"";return e.map(r=>{const h={code:r[t.keyProp],name:n(r),categoryLv1ID:t.categoryLv1ID&&r[t.categoryLv1ID]||"",categoryLv1Label:l(r),categoryLv2ID:t.categoryLv2ID&&r[t.categoryLv2ID]||"",categoryLv2Label:c(r),description:t.description&&r[t.description]||""};return Lt.set(h,r[o]===!0),h})}function It(e,t){let o=e.get(t);return o||(o=[],e.set(t,o)),o}function Bi(e){const t=new Map([["depth0",[]],["depth1",[]],["depth2",[]]]),o=new Map,n=new Map;e.forEach(r=>{const h=r.categoryLv1ID;if(!o.get(h)){const d={code:h,name:r.categoryLv1Label??h};o.set(h,d),It(t,"depth0").push(d)}if(!r.categoryLv2ID||r.categoryLv2ID.trim()==="")It(t,"depth1").push(Qt(r,{...r,parent:r.categoryLv1ID}));else{const d=`${r.categoryLv1ID}-${r.categoryLv2ID}`;if(!n.get(d)){const b={code:r.categoryLv2ID,name:r.categoryLv2Label??r.categoryLv2ID,parent:r.categoryLv1ID,isSubCategory:!0};n.set(d,b),It(t,"depth1").push(b)}It(t,"depth2").push(Qt(r,{...r,parent:r.categoryLv2ID}))}});function l(r,h,d,b){const a=`depth${h}`,m=`depth${h+1}`,u=d.get(m),E=Qt(r,{...r,depth:h});if(h!==0&&(E.isHidden=!1),u&&u.length>0){const x=b[a],$=b[m],P=u.filter(g=>g[$]===(r.isSubCategory?r.code:r[x]));E.isExpanded=!0;const L=[E];return P.forEach(g=>{L.push(...l(g,h+1,d,b))}),L}return[E]}const c={depth0:"code",depth1:"parent",depth2:"parent"};return(t.get("depth0")??[]).flatMap(r=>l(r,0,t,c))}function Fi(e){return new Set(e.map(t=>t.code))}function je(e,t){return t===e}function Bt(e,t){return e.filter(o=>o.categoryLv1ID===t.code||o.categoryLv2ID===t.code)}function Vt(e){return new Set(e.map(t=>t.code))}function Ot(e,t){return{childDepthList:Bt(e,t)}}function _o(e,t){for(const o of e)if(!t.has(o))return!1;return!0}function Ut(e,t,o){t===0&&e.categoryLv1Set.delete(o),t===1&&e.categoryLv2Set.delete(o)}function Pt(e,t,o){t===0&&e.categoryLv1Set.add(o),t===1&&e.categoryLv2Set.add(o)}function Ni(e,t,o){t.length&&e.categoryLv1Set.add(t),o.length&&e.categoryLv2Set.add(o)}function $t(e){e.categoryLv1Set.clear(),e.categoryLv2Set.clear()}function qs(e,t,o,n){if(Pt(e,o.depth,o.code),o.parent){const l=t.find(c=>c.code===o.parent);l&&qs(e,t,l)}}function Bs(e,t,o,n){if(Pt(e,o.depth,o.code),je(n,o.depth))return;t.filter(c=>c.parent===o.code).forEach(c=>{je(n,c.depth)||Bs(e,t,c,n)})}function Jt(e,t,o,n){qs(e,t,o),Bs(e,t,o,n)}function Fs(e,t,o,n){if(Ut(e,o.depth,o.code),o.parent){const l=t.find(c=>c.code===o.parent);l&&Fs(e,t,l)}}function Ns(e,t,o,n){if(Ut(e,o.depth,o.code),je(n,o.depth))return;t.filter(c=>c.parent===o.code).forEach(c=>{je(n,c.depth)||Ns(e,t,c,n)})}function eo(e,t,o,n){Fs(e,t,o),Ns(e,t,o,n)}const _i=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","useFilter","useSelectAll","class","style"]),_s=$e({name:"moz-tree-select",defaults:{label:null,width:200,required:!1,readonly:!1,disabled:!1,disabledProp:"disabled",rules:[],useSelectAll:!0,useFilter:!0,headerFormat:"ITEMS ({count})",listBoxWidth:0,useSpecificSelect:!0,treeLevels:1,useMultiSelect:!1,treeProps:ro,modelValue:[]},setup(e){const t=Y.createRef(),o=Y.createRef(),n=Y.createRef(),l=Y.createRef(),c=Y.createRef();let r=null;const h=(e.props.treeLevels??1)-1,d=h,b=()=>!!e.props.useMultiSelect,a=()=>e.props.disabledProp||"disabled",m=()=>e.props.treeProps??ro;let u=e.props.modelValue??(b()?[]:"");const E=()=>e.controlled("modelValue")?e.props.modelValue??[]:u,x=()=>{const C=E();return Array.isArray(C)?C:C?[C]:[]},$=C=>{e.controlled("modelValue")||(u=C),e.emit("update:modelValue",C),e.requestUpdate()};let P=!1,L=!1,g=0;e.onCleanup(()=>{L=!0,g+=1});let i="",p=!1,y=!1,F=!1,I={},K=[];const oe={change:"",blur:"",save:""},re=new Set,j=new Set,k={categoryLv1Set:re,categoryLv2Set:j},R=(()=>{try{const C=getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height");return C?+C.trim().replace("px",""):28}catch{return 28}})(),X=8,se=Number.isFinite(R)&&R>0?{"--moz-tree-select-row-height":`${R}px`}:{};let N=R;const ne=()=>e.slots.has("list-item");let _=[],J=[],z=e.props.itemsSource,W=a();const Z=()=>{_=qi(e.props.itemsSource??[],m(),a()),J=Bi(_)};Z();const G=()=>{const C=new Map;return _.forEach(M=>C.set(M.code,M)),C},Q=C=>C.name??"",T=C=>new Set(x()).has(C.code),f=C=>K.some(M=>bt(M.item,C)),D=()=>new Set(x()),A=()=>{let C=[];if(!i)C=J;else{const M=[],q=new Set,ie=ue=>`depth${ue.depth}_${ue.code}`;for(const ue of J)if(ue.depth!==d){for(;M.length&&M[M.length-1].depth>=ue.depth;)M.pop();M.push(ue)}else if(Q(ue).toLowerCase().indexOf(i.toLowerCase())>-1){for(const we of M){const Re=ie(we);q.has(Re)||(C.push(we),q.add(Re))}const ve=ie(ue);q.has(ve)||(C.push(ue),q.add(ve))}}if(F){const M=new Set,q=G(),ie=D();C.filter(ve=>{if(Ue(ve,ie))return!0;if(b()&&!je(h,ve.depth)){const we=Bt(J,ve);if(we.length>0&&we.some(Re=>ie.has(Re.code)))return!0}return!1}).forEach(ve=>{let we=ve;for(;we&&(M.add(we.code),!!we.parent);)we=q.get(we.parent)}),C=C.filter(ve=>M.has(ve.code))}return C},H=()=>A().filter(C=>!(C.categoryLv1ID||C.categoryLv2ID)),pe=()=>{const C=H();return A().filter(M=>!C.includes(M))},ke=()=>new Set(pe().map(C=>C.code)),Ae=()=>Fi(pe()),Ue=(C,M)=>b()?je(d,C.depth)?M.has(C.code):re.has(C.code)||j.has(C.code):E()===C.code,We=C=>{if(je(h,C.depth))return!0;const M=Bt(A(),C);return M.length===0?!0:_o(Vt(M),D())},Qe=()=>{const C=x().length,M=H().length;if(C<M||C===0||M===0)return!1;for(const q of Ae())if(!D().has(q))return!1;return!0},Je=()=>{const C=Ae(),M=D();return!C.size||!M.size||M.size<C.size?!1:Array.from(C).every(q=>M.has(q))},nt=()=>b()?!!e.props.useSelectAll:!1,qe=()=>{const C=E(),M=G();if(typeof C=="string")return M.has(C)?M.get(C).name:C;const q=Array.isArray(C)?C:[],ie=q.filter(ue=>M.has(ue)).map(ue=>M.get(ue).name);return q.length?b()&&ie.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${ie.length.toLocaleString()}`):ie.join(", ")||"":""},Be=()=>oe.save||oe.blur||oe.change,xe=()=>{const C=[];return e.props.required&&C.push({message:e.locale.TreeSelect.required.replace("{label}",e.props.label||""),type:"save",validator:M=>!!M.length}),[...C,...e.props.rules??[]]},Ge=async(C,M)=>{const q=xe();if(q.length<=0)return;if(e.props.disabled)return!0;oe[M]="",e.requestUpdate();const ie=q.filter(ue=>ue.type===M);for(const ue of ie)if(!await ue.validator(C))return oe[M]=ue.message,e.requestUpdate(),!1;return!0},Fe=async(C="save")=>Be()!==""?!1:await Ge(x(),C)??!0,it={validate:Fe,initValidator:()=>{oe.change="",oe.blur="",oe.save="",e.requestUpdate()}};e.onCleanup(()=>{ee==null||ee.release(),ee=null}),e.validator&&(e.validator.addValidator(it),e.onCleanup(()=>{var C;return(C=e.validator)==null?void 0:C.removeValidator(it)}));const gt=(C,M)=>C.filter(q=>T(q)!==M).map(q=>q.code),S=C=>{const M=Array.from(new Set(C));bt(x(),M)||($(M),e.emit("change",M,M.filter(Boolean)),Ge(M,"change"),de(M))},de=C=>{C.length===_.length?H().forEach(M=>Pt(k,M.depth,M.code)):C.forEach(M=>{const q=pe().find(ie=>ie.code===M);q&&Ni(k,q.categoryLv1ID??"",q.categoryLv2ID??"")})},w=(C,M,q)=>{if(q.shiftKey&&K.length>0){const ie=K[0],ue=Math.min(ie.index,M),ve=Math.max(ie.index,M);K=A().slice(ue,ve+1).map((we,Re)=>({item:we,index:ue+Re}))}else q.ctrlKey?K.push({item:C,index:M}):K=[{item:C,index:M}]},U=(C,M)=>{if(!je(h,C.depth)){const{childDepthList:q}=Ot(A(),C);if(M){const ie=Vt(q);$(x().filter(ue=>!ie.has(ue))),eo(k,A(),C,d)}else{const ie=q.map(ue=>ue.code);$([...x(),...ie])}}},ae=(C,M)=>{const ie=K.map(we=>we.item).filter(we=>we.depth===d),ue=gt(ie,C);let ve=[];if(M.depth!==h){const{childDepthList:we}=Ot(A(),M),Re=Vt(we);ve=x().filter(tt=>!Re.has(tt))}else ve=x();C?M.depth===h?ve=[...ve,...ue]:Jt(k,A(),M,d):($t(k),ve=ve.filter(we=>!ue.some(Re=>we===Re))),S(ve)},he=(C,M,q,ie)=>{const ue=K.some(ve=>ve.item.code===C.code);if((K.length<=1||!ue)&&w(C,M,{shiftKey:!1,ctrlKey:!1}),je(h,C.depth))ae(!ie,C);else{const ve=x(),we=A(),{childDepthList:Re}=Ot(we,C),tt=Re.map(Ze=>Ze.code),Ye=new Set(tt);ie?($t(k),eo(k,we,C,d),S(ve.filter(Ze=>!Ye.has(Ze)))):(Jt(k,we,C,d),S([...ve,...tt]))}e.requestUpdate()},me=new WeakSet,Te=(C,M,q,ie)=>{me.delete(q)||Xt(C)||(!q.ctrlKey&&!q.shiftKey&&K.length<=1&&he(C,M,q,ie),w(C,M,q),e.requestUpdate())},be=(C,M,q)=>{if(Xt(C))return;let ie=[],ue=!1;const ve=C.code;if(je(h,C.depth))me.add(q),ue=x().length===1&&x()[0]===ve,ue||(ie=[ve]),$t(k);else{const{childDepthList:we}=Ot(A(),C),Re=Vt(we),tt=D();ue=_o(Re,tt)&&Re.size===tt.size,me.add(q),ue?eo(k,A(),C,d):(ie=Array.from(Re),$t(k),Jt(k,A(),C,d)),S(ie),w(C,M,q),e.requestUpdate();return}S(ie),U(C,ue),w(C,M,q),e.requestUpdate()},Pe=C=>{$(C),le(!1)},et=(C,M)=>{A().filter(ie=>ie.parent===C).forEach(ie=>{if(ie.isHidden=M,ie.depth===d)return;const ve=!M&&!ie.isExpanded?!0:M;et(ie.code,ve)})},Ne=(C,M)=>{M.stopPropagation(),C.isExpanded=!C.isExpanded,et(C.code,!C.isExpanded),queueMicrotask(()=>ze.measure()),e.requestUpdate()},Le=C=>{J.forEach(M=>{M.isExpanded=C,M.depth>0?M.isHidden=!C:M.isHidden=!1}),queueMicrotask(()=>ze.measure()),e.requestUpdate()},Oe=C=>{C.stopPropagation(),ke().size===D().size&&[...ke()].every(q=>D().has(q))?(H().forEach(q=>Ut(k,q.depth,q.code)),S([])):($t(k),H().forEach(q=>Pt(k,q.depth,q.code)),S([...ke()]))},ct=C=>{if(C.stopPropagation(),Je()){const M=Ae();S(x().filter(q=>!M.has(q))),H().forEach(q=>Ut(k,q.depth,q.code))}else{const M=new Set([...x(),...ke()]);S(Array.from(M)),H().forEach(q=>Pt(k,q.depth,q.code))}},rt=C=>{p=C.target.scrollTop>0,e.requestUpdate()},ht=()=>{const C=o.value;if(!C)return;const M=C.getBoundingClientRect();let q=`${M.width}px`;e.props.listBoxWidth&&(q=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),I={width:String(q),left:`${M.left}px`,top:`${M.top+(y?0:M.height)}px`},e.requestUpdate()},vt=(C,M,q=10)=>{const ie=window.innerHeight||document.documentElement.clientHeight,ue=window.innerWidth||document.documentElement.clientWidth,ve=C.getBoundingClientRect(),we=M.getBoundingClientRect(),Re=ve.bottom+we.height+q>ie;if(!Re)return!1;const tt=ve.top-we.height-q<0,Ye=ve.right+we.width+q>ue,Ze=ve.left-we.width-q<0;return Re&&!tt||Ye&&!Ze},v=C=>{C.target!==r&&le(!1)},O=C=>{var M,q;!((M=t.value)!=null&&M.contains(C.target))&&!((q=n.value)!=null&&q.contains(C.target))&&(le(!1),document.removeEventListener("click",O,{capture:!0}))},B=C=>{var q;`${C.ctrlKey?"ctrl+":""}${C.altKey?"alt+":""}${C.key.toLowerCase()}`==="escape"&&(le(!1),(q=l.value)==null||q.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",v,{capture:!0}),document.removeEventListener("click",O,{capture:!0}),window.removeEventListener("keydown",B)});let ee=null;const le=(C,M=!0)=>{if(L||P===C)return;const q=++g;P=C,e.requestUpdate(),C?(ee=Zt(),document.body.addEventListener("scroll",v,{capture:!0}),document.addEventListener("click",O,{capture:!0}),oe.save="",window.addEventListener("keydown",B),ht(),queueMicrotask(()=>{var ie;L||!P||q!==g||(o.value&&r&&(y=vt(o.value,r)),ht(),M&&(c.value?c.value.focus():(ie=l.value)==null||ie.focus()))})):(ee==null||ee.release(),ee=null,document.body.removeEventListener("scroll",v,{capture:!0}),document.removeEventListener("click",O,{capture:!0}),Ge(x(),"blur"),window.removeEventListener("keydown",B),i="",e.emit("close"))},ce=()=>{e.props.disabled||le(!P)};let ge;const _e=C=>{const M=C.target.value;ge&&clearTimeout(ge),ge=setTimeout(()=>{i=M,e.requestUpdate(),queueMicrotask(()=>{ze.setOptions({...ze.options,count:A().length}),ze.measure()})},300)},mt=C=>{F=C,e.requestUpdate(),queueMicrotask(()=>{ze.setOptions({...ze.options,count:A().length}),ze.measure()})},ze=new st.Virtualizer({count:0,getScrollElement:()=>r,estimateSize:C=>{const M=A()[C];return M!=null&&M.isHidden?0:ne()&&M&&je(h,M.depth)?N:R},measureElement:C=>{const M=C.getBoundingClientRect().height;return M>0?M:ze.options.estimateSize(Number(C.dataset.index))},overscan:3,observeElementRect:st.observeElementRect,observeElementOffset:st.observeElementOffset,scrollToFn:st.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(ze._didMount());const at=C=>{r=C??null,C&&(ze._willUpdate(),e.requestUpdate())},zt=(C,M)=>{if(!C||M!==h)return;const q=C.getBoundingClientRect().height;q>0&&(N=q)},He=C=>C.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Ke=(C,M)=>{if(!i||!je(h,M))return[{part:C,highlight:!1}];const q=new RegExp(`(${He(i)})`,"gi");return C.split(q).map(ie=>({part:ie,highlight:i.toLowerCase()===ie.toLowerCase()}))};let Tt=E();const Yt=C=>{const{index:M,item:q,start:ie,isSelected:ue,isIndeterminate:ve,isDisabled:we,isFocused:Re}=C;if(q.isHidden)return s.nothing;const tt=e.props,Ye=q.depth,Ze=je(h,Ye),dt=b(),lt=Ie=>{Ye!==h?Ne(q,Ie):Pe(q.code)},ut=Ie=>{dt?Te(q,M,Ie,ue&&We(q)):lt(Ie)},Ct=()=>{he(q,M,{},ue&&We(q))},At=Ze?"하나만":"그룹만";return s.html`<div
1495
- data-index=${M}
1496
- ${Y.ref(Ie=>{Ie&&(ze.measureElement(Ie),zt(Ie,Ye))})}
1497
- style=${te.styleMap({transform:`translateY(${ie}px)`})}
1498
- class=${V("list-box-item virtual-row tree-item",{"list-selected":ue,"moz-multi-focus":Re,"is-selected":ue,"single-select-item":!dt&&Ze,"multi-select-item":dt})}
1494
+ </svg>`}const wo={keyProp:"code",displayProp:"name",categoryLv1ID:"categoryLv1ID",categoryLv1Label:"categoryLv1Label",categoryLv2ID:"categoryLv2ID",categoryLv2Label:"categoryLv2Label",description:"description"},Tt=new WeakMap;function ao(e){return Tt.get(e)===!0}function ro(e,t){return Tt.has(e)&&Tt.set(t,Tt.get(e)),t}function Ea(e,t,o="disabled"){const s=r=>t.displayProp&&r[t.displayProp]?r[t.displayProp]:r[t.keyProp],l=r=>t.categoryLv1Label&&r[t.categoryLv1Label]?r[t.categoryLv1Label]:t.categoryLv1ID?r[t.categoryLv1ID]:"",i=r=>t.categoryLv2Label&&r[t.categoryLv2Label]?r[t.categoryLv2Label]:t.categoryLv2ID?r[t.categoryLv2ID]:"";return e.map(r=>{const p={code:r[t.keyProp],name:s(r),categoryLv1ID:t.categoryLv1ID&&r[t.categoryLv1ID]||"",categoryLv1Label:l(r),categoryLv2ID:t.categoryLv2ID&&r[t.categoryLv2ID]||"",categoryLv2Label:i(r),description:t.description&&r[t.description]||""};return Tt.set(p,r[o]===!0),p})}function Bt(e,t){let o=e.get(t);return o||(o=[],e.set(t,o)),o}function xa(e){const t=new Map([["depth0",[]],["depth1",[]],["depth2",[]]]),o=new Map,s=new Map;e.forEach(r=>{const p=r.categoryLv1ID;if(!o.get(p)){const d={code:p,name:r.categoryLv1Label??p};o.set(p,d),Bt(t,"depth0").push(d)}if(!r.categoryLv2ID||r.categoryLv2ID.trim()==="")Bt(t,"depth1").push(ro(r,{...r,parent:r.categoryLv1ID}));else{const d=`${r.categoryLv1ID}-${r.categoryLv2ID}`;if(!s.get(d)){const b={code:r.categoryLv2ID,name:r.categoryLv2Label??r.categoryLv2ID,parent:r.categoryLv1ID,isSubCategory:!0};s.set(d,b),Bt(t,"depth1").push(b)}Bt(t,"depth2").push(ro(r,{...r,parent:r.categoryLv2ID}))}});function l(r,p,d,b){const c=`depth${p}`,m=`depth${p+1}`,u=d.get(m),k=ro(r,{...r,depth:p});if(p!==0&&(k.isHidden=!1),u&&u.length>0){const x=b[c],S=b[m],L=u.filter(f=>f[S]===(r.isSubCategory?r.code:r[x]));k.isExpanded=!0;const M=[k];return L.forEach(f=>{M.push(...l(f,p+1,d,b))}),M}return[k]}const i={depth0:"code",depth1:"parent",depth2:"parent"};return(t.get("depth0")??[]).flatMap(r=>l(r,0,t,i))}function La(e){return new Set(e.map(t=>t.code))}function Xe(e,t){return t===e}function Kt(e,t){return e.filter(o=>o.categoryLv1ID===t.code||o.categoryLv2ID===t.code)}function qt(e){return new Set(e.map(t=>t.code))}function Ft(e,t){return{childDepthList:Kt(e,t)}}function rn(e,t){for(const o of e)if(!t.has(o))return!1;return!0}function Qt(e,t,o){t===0&&e.categoryLv1Set.delete(o),t===1&&e.categoryLv2Set.delete(o)}function At(e,t,o){t===0&&e.categoryLv1Set.add(o),t===1&&e.categoryLv2Set.add(o)}function za(e,t,o){t.length&&e.categoryLv1Set.add(t),o.length&&e.categoryLv2Set.add(o)}function Lt(e){e.categoryLv1Set.clear(),e.categoryLv2Set.clear()}function as(e,t,o,s){if(At(e,o.depth,o.code),o.parent){const l=t.find(i=>i.code===o.parent);l&&as(e,t,l)}}function rs(e,t,o,s){if(At(e,o.depth,o.code),Xe(s,o.depth))return;t.filter(i=>i.parent===o.code).forEach(i=>{Xe(s,i.depth)||rs(e,t,i,s)})}function co(e,t,o,s){as(e,t,o),rs(e,t,o,s)}function cs(e,t,o,s){if(Qt(e,o.depth,o.code),o.parent){const l=t.find(i=>i.code===o.parent);l&&cs(e,t,l)}}function ds(e,t,o,s){if(Qt(e,o.depth,o.code),Xe(s,o.depth))return;t.filter(i=>i.parent===o.code).forEach(i=>{Xe(s,i.depth)||ds(e,t,i,s)})}function uo(e,t,o,s){cs(e,t,o),ds(e,t,o,s)}const Pa=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","useFilter","useSelectAll","class","style"]),us=ye({name:"moz-tree-select",defaults:{label:null,width:200,required:!1,readonly:!1,disabled:!1,disabledProp:"disabled",rules:[],useSelectAll:!0,useFilter:!0,headerFormat:"ITEMS ({count})",listBoxWidth:0,useSpecificSelect:!0,treeLevels:1,useMultiSelect:!1,treeProps:wo,modelValue:[]},setup(e){const t=Y.createRef(),o=Y.createRef(),s=Y.createRef(),l=Y.createRef(),i=Y.createRef();let r=null;const p=(e.props.treeLevels??1)-1,d=p,b=()=>!!e.props.useMultiSelect,c=()=>e.props.disabledProp||"disabled",m=()=>e.props.treeProps??wo;let u=e.props.modelValue??(b()?[]:"");const k=()=>e.controlled("modelValue")?e.props.modelValue??[]:u,x=()=>{const C=k();return Array.isArray(C)?C:C?[C]:[]},S=C=>{e.controlled("modelValue")||(u=C),e.emit("update:modelValue",C),e.requestUpdate()};let L=!1,M=!1,f=0;e.onCleanup(()=>{M=!0,f+=1});let a="",h=!1,$=!1,_=!1,O={},U=[];const Q={change:"",blur:"",save:""},re=new Set,X=new Set,E={categoryLv1Set:re,categoryLv2Set:X},V=(()=>{try{const C=getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height");return C?+C.trim().replace("px",""):28}catch{return 28}})(),J=8,le=Number.isFinite(V)&&V>0?{"--moz-tree-select-row-height":`${V}px`}:{};let N=V;const ie=()=>e.slots.has("list-item");let F=[],oe=[],T=e.props.itemsSource,W=c();const K=()=>{F=Ea(e.props.itemsSource??[],m(),c()),oe=xa(F)};K();const ee=()=>{const C=new Map;return F.forEach(z=>C.set(z.code,z)),C},te=C=>C.name??"",P=C=>new Set(x()).has(C.code),g=C=>U.some(z=>Mt(z.item,C)),R=()=>new Set(x()),I=()=>{let C=[];if(!a)C=oe;else{const z=[],B=new Set,ae=ue=>`depth${ue.depth}_${ue.code}`;for(const ue of oe)if(ue.depth!==d){for(;z.length&&z[z.length-1].depth>=ue.depth;)z.pop();z.push(ue)}else if(te(ue).toLowerCase().indexOf(a.toLowerCase())>-1){for(const be of z){const Te=ae(be);B.has(Te)||(C.push(be),B.add(Te))}const we=ae(ue);B.has(we)||(C.push(ue),B.add(we))}}if(_){const z=new Set,B=ee(),ae=R();C.filter(we=>{if(He(we,ae))return!0;if(b()&&!Xe(p,we.depth)){const be=Kt(oe,we);if(be.length>0&&be.some(Te=>ae.has(Te.code)))return!0}return!1}).forEach(we=>{let be=we;for(;be&&(z.add(be.code),!!be.parent);)be=B.get(be.parent)}),C=C.filter(we=>z.has(we.code))}return C},H=()=>I().filter(C=>!(C.categoryLv1ID||C.categoryLv2ID)),pe=()=>{const C=H();return I().filter(z=>!C.includes(z))},ke=()=>new Set(pe().map(C=>C.code)),Me=()=>La(pe()),He=(C,z)=>b()?Xe(d,C.depth)?z.has(C.code):re.has(C.code)||X.has(C.code):k()===C.code,Fe=C=>{if(Xe(p,C.depth))return!0;const z=Kt(I(),C);return z.length===0?!0:rn(qt(z),R())},Ge=()=>{const C=x().length,z=H().length;if(C<z||C===0||z===0)return!1;for(const B of Me())if(!R().has(B))return!1;return!0},et=()=>{const C=Me(),z=R();return!C.size||!z.size||z.size<C.size?!1:Array.from(C).every(B=>z.has(B))},lt=()=>b()?!!e.props.useSelectAll:!1,Ke=()=>{const C=k(),z=ee();if(typeof C=="string")return z.has(C)?z.get(C).name:C;const B=Array.isArray(C)?C:[],ae=B.filter(ue=>z.has(ue)).map(ue=>z.get(ue).name);return B.length?b()&&ae.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${ae.length.toLocaleString()}`):ae.join(", ")||"":""},Ue=()=>Q.save||Q.blur||Q.change,ze=()=>{const C=[];return e.props.required&&C.push({message:e.locale.TreeSelect.required.replace("{label}",e.props.label||""),type:"save",validator:z=>!!z.length}),[...C,...e.props.rules??[]]},Ze=async(C,z)=>{const B=ze();if(B.length<=0)return;if(e.props.disabled)return!0;Q[z]="",e.requestUpdate();const ae=B.filter(ue=>ue.type===z);for(const ue of ae)if(!await ue.validator(C))return Q[z]=ue.message,e.requestUpdate(),!1;return!0},Be=async(C="save")=>Ue()!==""?!1:await Ze(x(),C)??!0,ot={validate:Be,initValidator:()=>{Q.change="",Q.blur="",Q.save="",e.requestUpdate()}};e.onCleanup(()=>{ne==null||ne.release(),ne=null}),e.validator&&(e.validator.addValidator(ot),e.onCleanup(()=>{var C;return(C=e.validator)==null?void 0:C.removeValidator(ot)}));const mt=(C,z)=>C.filter(B=>P(B)!==z).map(B=>B.code),Ye=C=>{const z=Array.from(new Set(C));Mt(x(),z)||(S(z),e.emit("change",z,z.filter(Boolean)),Ze(z,"change"),at(z))},at=C=>{C.length===F.length?H().forEach(z=>At(E,z.depth,z.code)):C.forEach(z=>{const B=pe().find(ae=>ae.code===z);B&&za(E,B.categoryLv1ID??"",B.categoryLv2ID??"")})},y=(C,z,B)=>{if(B.shiftKey&&U.length>0){const ae=U[0],ue=Math.min(ae.index,z),we=Math.max(ae.index,z);U=I().slice(ue,we+1).map((be,Te)=>({item:be,index:ue+Te}))}else B.ctrlKey?U.push({item:C,index:z}):U=[{item:C,index:z}]},Z=(C,z)=>{if(!Xe(p,C.depth)){const{childDepthList:B}=Ft(I(),C);if(z){const ae=qt(B);S(x().filter(ue=>!ae.has(ue))),uo(E,I(),C,d)}else{const ae=B.map(ue=>ue.code);S([...x(),...ae])}}},w=(C,z)=>{const ae=U.map(be=>be.item).filter(be=>be.depth===d),ue=mt(ae,C);let we=[];if(z.depth!==p){const{childDepthList:be}=Ft(I(),z),Te=qt(be);we=x().filter(tt=>!Te.has(tt))}else we=x();C?z.depth===p?we=[...we,...ue]:co(E,I(),z,d):(Lt(E),we=we.filter(be=>!ue.some(Te=>be===Te))),Ye(we)},G=(C,z,B,ae)=>{const ue=U.some(we=>we.item.code===C.code);if((U.length<=1||!ue)&&y(C,z,{shiftKey:!1,ctrlKey:!1}),Xe(p,C.depth))w(!ae,C);else{const we=x(),be=I(),{childDepthList:Te}=Ft(be,C),tt=Te.map(We=>We.code),je=new Set(tt);ae?(Lt(E),uo(E,be,C,d),Ye(we.filter(We=>!je.has(We)))):(co(E,be,C,d),Ye([...we,...tt]))}e.requestUpdate()},me=new WeakSet,Ee=(C,z,B,ae)=>{me.delete(B)||ao(C)||(!B.ctrlKey&&!B.shiftKey&&U.length<=1&&G(C,z,B,ae),y(C,z,B),e.requestUpdate())},ve=(C,z,B)=>{if(ao(C))return;let ae=[],ue=!1;const we=C.code;if(Xe(p,C.depth))me.add(B),ue=x().length===1&&x()[0]===we,ue||(ae=[we]),Lt(E);else{const{childDepthList:be}=Ft(I(),C),Te=qt(be),tt=R();ue=rn(Te,tt)&&Te.size===tt.size,me.add(B),ue?uo(E,I(),C,d):(ae=Array.from(Te),Lt(E),co(E,I(),C,d)),Ye(ae),y(C,z,B),e.requestUpdate();return}Ye(ae),Z(C,ue),y(C,z,B),e.requestUpdate()},Ce=C=>{S(C),se(!1)},Ie=(C,z)=>{I().filter(ae=>ae.parent===C).forEach(ae=>{if(ae.isHidden=z,ae.depth===d)return;const we=!z&&!ae.isExpanded?!0:z;Ie(ae.code,we)})},Re=(C,z)=>{z.stopPropagation(),C.isExpanded=!C.isExpanded,Ie(C.code,!C.isExpanded),queueMicrotask(()=>Le.measure()),e.requestUpdate()},Pe=C=>{oe.forEach(z=>{z.isExpanded=C,z.depth>0?z.isHidden=!C:z.isHidden=!1}),queueMicrotask(()=>Le.measure()),e.requestUpdate()},qe=C=>{C.stopPropagation(),ke().size===R().size&&[...ke()].every(B=>R().has(B))?(H().forEach(B=>Qt(E,B.depth,B.code)),Ye([])):(Lt(E),H().forEach(B=>At(E,B.depth,B.code)),Ye([...ke()]))},ft=C=>{if(C.stopPropagation(),et()){const z=Me();Ye(x().filter(B=>!z.has(B))),H().forEach(B=>Qt(E,B.depth,B.code))}else{const z=new Set([...x(),...ke()]);Ye(Array.from(z)),H().forEach(B=>At(E,B.depth,B.code))}},ct=C=>{h=C.target.scrollTop>0,e.requestUpdate()},nt=()=>{const C=o.value;if(!C)return;const z=C.getBoundingClientRect();let B=`${z.width}px`;e.props.listBoxWidth&&(B=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),O={width:String(B),left:`${z.left}px`,top:`${z.top+($?0:z.height)}px`},e.requestUpdate()},rt=(C,z,B=10)=>{const ae=window.innerHeight||document.documentElement.clientHeight,ue=window.innerWidth||document.documentElement.clientWidth,we=C.getBoundingClientRect(),be=z.getBoundingClientRect(),Te=we.bottom+be.height+B>ae;if(!Te)return!1;const tt=we.top-be.height-B<0,je=we.right+be.width+B>ue,We=we.left-be.width-B<0;return Te&&!tt||je&&!We},v=C=>{C.target!==r&&se(!1)},D=C=>{var z,B;!((z=t.value)!=null&&z.contains(C.target))&&!((B=s.value)!=null&&B.contains(C.target))&&(se(!1),document.removeEventListener("click",D,{capture:!0}))},q=C=>{var B;`${C.ctrlKey?"ctrl+":""}${C.altKey?"alt+":""}${C.key.toLowerCase()}`==="escape"&&(se(!1),(B=l.value)==null||B.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",v,{capture:!0}),document.removeEventListener("click",D,{capture:!0}),window.removeEventListener("keydown",q)});let ne=null;const se=(C,z=!0)=>{if(M||L===C)return;const B=++f;L=C,e.requestUpdate(),C?(ne=oo(),document.body.addEventListener("scroll",v,{capture:!0}),document.addEventListener("click",D,{capture:!0}),Q.save="",window.addEventListener("keydown",q),nt(),queueMicrotask(()=>{var ae;M||!L||B!==f||(o.value&&r&&($=rt(o.value,r)),nt(),z&&(i.value?i.value.focus():(ae=l.value)==null||ae.focus()))})):(ne==null||ne.release(),ne=null,document.body.removeEventListener("scroll",v,{capture:!0}),document.removeEventListener("click",D,{capture:!0}),Ze(x(),"blur"),window.removeEventListener("keydown",q),a="",e.emit("close"))},de=()=>{e.props.disabled||se(!L)};let fe;const Ne=C=>{const z=C.target.value;fe&&clearTimeout(fe),fe=setTimeout(()=>{a=z,e.requestUpdate(),queueMicrotask(()=>{Le.setOptions({...Le.options,count:I().length}),Le.measure()})},300)},vt=C=>{_=C,e.requestUpdate(),queueMicrotask(()=>{Le.setOptions({...Le.options,count:I().length}),Le.measure()})},Le=new st.Virtualizer({count:0,getScrollElement:()=>r,estimateSize:C=>{const z=I()[C];return z!=null&&z.isHidden?0:ie()&&z&&Xe(p,z.depth)?N:V},measureElement:C=>{const z=C.getBoundingClientRect().height;return z>0?z:Le.options.estimateSize(Number(C.dataset.index))},overscan:3,observeElementRect:st.observeElementRect,observeElementOffset:st.observeElementOffset,scrollToFn:st.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(Le._didMount());const dt=C=>{r=C??null,C&&(Le._willUpdate(),e.requestUpdate())},wt=(C,z)=>{if(!C||z!==p)return;const B=C.getBoundingClientRect().height;B>0&&(N=B)},Oe=C=>C.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),_e=(C,z)=>{if(!a||!Xe(p,z))return[{part:C,highlight:!1}];const B=new RegExp(`(${Oe(a)})`,"gi");return C.split(B).map(ae=>({part:ae,highlight:a.toLowerCase()===ae.toLowerCase()}))};let yt=k();const xt=C=>{const{index:z,item:B,start:ae,isSelected:ue,isIndeterminate:we,isDisabled:be,isFocused:Te}=C;if(B.isHidden)return n.nothing;const tt=e.props,je=B.depth,We=Xe(p,je),ut=b(),it=De=>{je!==p?Re(B,De):Ce(B.code)},pt=De=>{ut?Ee(B,z,De,ue&&Fe(B)):it(De)},$t=()=>{G(B,z,{},ue&&Fe(B))},Vt=We?"하나만":"그룹만";return n.html`<div
1495
+ data-index=${z}
1496
+ ${Y.ref(De=>{De&&(Le.measureElement(De),wt(De,je))})}
1497
+ style=${j.styleMap({transform:`translateY(${ae}px)`})}
1498
+ class=${A("list-box-item virtual-row tree-item",{"list-selected":ue,"moz-multi-focus":Te,"is-selected":ue,"single-select-item":!ut&&We,"multi-select-item":ut})}
1499
1499
  >
1500
1500
  <div
1501
- class=${V("depth-indicator",{"depth-indicator--parent":!Ze,"depth-indicator--last-depth":Ze,"depth-indicator--custom-item":ne()})}
1502
- style=${te.styleMap({"--depth":String(Ye),"--last-depth-item-height":String(N)})}
1503
- @click=${Ie=>{dt||lt(Ie)}}
1501
+ class=${A("depth-indicator",{"depth-indicator--parent":!We,"depth-indicator--last-depth":We,"depth-indicator--custom-item":ie()})}
1502
+ style=${j.styleMap({"--depth":String(je),"--last-depth-item-height":String(N)})}
1503
+ @click=${De=>{ut||it(De)}}
1504
1504
  ></div>
1505
- <div class="item-content" @click=${ut}>
1506
- ${Ze?s.nothing:s.html`<button
1505
+ <div class="item-content" @click=${pt}>
1506
+ ${We?n.nothing:n.html`<button
1507
1507
  type="button"
1508
1508
  class="icon-container"
1509
- aria-expanded=${q.isExpanded?"true":"false"}
1510
- aria-label=${q.isExpanded?e.locale.TreeSelect.collapse:e.locale.TreeSelect.expand}
1511
- @click=${Ie=>Ne(q,Ie)}
1509
+ aria-expanded=${B.isExpanded?"true":"false"}
1510
+ aria-label=${B.isExpanded?e.locale.TreeSelect.collapse:e.locale.TreeSelect.expand}
1511
+ @click=${De=>Re(B,De)}
1512
1512
  >
1513
- ${e.slots.has("icon")?e.slot("icon"):q.isExpanded?Ii("var(--moz-color-accent)",14):Di("var(--moz-color-text-subtle)",14)}
1513
+ ${e.slots.has("icon")?e.slot("icon"):B.isExpanded?Sa("var(--moz-color-accent)",14):$a("var(--moz-color-text-subtle)",14)}
1514
1514
  </button>`}
1515
- ${dt?qt({checked:ue,disabled:we,indeterminate:ve,onChange:Ct}):s.nothing}
1515
+ ${ut?Wt({checked:ue,disabled:be,indeterminate:we,onChange:$t}):n.nothing}
1516
1516
  <div class="highlight-container">
1517
- ${ne()&&Ze?e.slot("list-item",{text:{text:Q(q),depth:Ye},item:q,highlightText:Ke(Q(q),Ye)}):s.html`${Ke(Q(q),Ye).map(Ie=>s.html`<span class=${V({highlight:Ie.highlight})}>${Ie.part}</span>`)}`}
1517
+ ${ie()&&We?e.slot("list-item",{text:{text:te(B),depth:je},item:B,highlightText:_e(te(B),je)}):n.html`${_e(te(B),je).map(De=>n.html`<span class=${A({highlight:De.highlight})}>${De.part}</span>`)}`}
1518
1518
  </div>
1519
- ${!dt&&ue&&Ze?Ps("14","var(--moz-color-accent)",!1,"icon-check"):s.nothing}
1520
- ${dt&&tt.useSpecificSelect&&!we?s.html`<button type="button" class="item-only item-only-btn" @click=${Ie=>be(q,M,Ie)}>
1521
- ${At}
1522
- </button>`:s.nothing}
1519
+ ${!ut&&ue&&We?jn("14","var(--moz-color-accent)",!1,"icon-check"):n.nothing}
1520
+ ${ut&&tt.useSpecificSelect&&!be?n.html`<button type="button" class="item-only item-only-btn" @click=${De=>ve(B,z,De)}>
1521
+ ${Vt}
1522
+ </button>`:n.nothing}
1523
1523
  </div>
1524
- </div>`};return{api:{validate:Fe,setOpen:C=>{L||C&&e.props.disabled||le(C,!1)},isOpen:()=>!L&&P},render(){const C=e.props;(C.itemsSource!==z||a()!==W)&&(z=C.itemsSource,W=a(),Z());const M=E();M!==Tt&&(Tt=M,typeof M!="string"&&de(x()));const q=typeof C.width=="number"?`${De(C.width)}rem`:C.width,ie=e.slots.has("icon")?e.slot("icon",{isOpen:P}):P?xs("14","var(--moz-color-accent)"):Ms("14","var(--moz-color-text-subtle)",C.disabled),ue=ye(C,_i),{aria:ve,dom:we}=Wt(ue);return s.html`
1524
+ </div>`};return{api:{validate:Be,setOpen:C=>{M||C&&e.props.disabled||se(C,!1)},isOpen:()=>!M&&L},render(){const C=e.props;(C.itemsSource!==T||c()!==W)&&(T=C.itemsSource,W=c(),K());const z=k();z!==yt&&(yt=z,typeof z!="string"&&at(x()));const B=typeof C.width=="number"?`${Ae(C.width)}rem`:C.width,ae=e.slots.has("icon")?e.slot("icon",{isOpen:L}):L?Qn("14","var(--moz-color-accent)"):Xn("14","var(--moz-color-text-subtle)",C.disabled),ue=ge(C,Pa),{aria:we,dom:be}=eo(ue);return n.html`
1525
1525
  <div
1526
- ${fe(we)}
1527
- class=${V("moz-multi-select moz-tree-select",C.class,{"is-invalid":Be()!=="","is-open":P,disabled:!!C.disabled})}
1528
- style=${te.styleMap({width:q,...Ce(C.style)})}
1526
+ ${ce(be)}
1527
+ class=${A("moz-multi-select moz-tree-select",C.class,{"is-invalid":Ue()!=="","is-open":L,disabled:!!C.disabled})}
1528
+ style=${j.styleMap({width:B,...he(C.style)})}
1529
1529
  ${Y.ref(t)}
1530
1530
  >
1531
1531
  <div class="input-wrapper">
1532
- ${C.label?Xe({},s.html`${C.label}${C.required?s.html`<span class="require-mark">*</span>`:s.nothing}`):s.nothing}
1533
- <div class="moz-input-container" @click=${ce} ${Y.ref(o)}>
1532
+ ${C.label?Je({},n.html`${C.label}${C.required?n.html`<span class="require-mark">*</span>`:n.nothing}`):n.nothing}
1533
+ <div class="moz-input-container" @click=${de} ${Y.ref(o)}>
1534
1534
  <input
1535
- .value=${qe()}
1536
- placeholder=${Ee.ifDefined(C.placeholder??void 0)}
1535
+ .value=${Ke()}
1536
+ placeholder=${$e.ifDefined(C.placeholder??void 0)}
1537
1537
  autocomplete="off"
1538
1538
  readonly
1539
1539
  tabindex="-1"
@@ -1541,101 +1541,101 @@
1541
1541
  <button
1542
1542
  type="button"
1543
1543
  class="icon-container"
1544
- ${fe(ve)}
1544
+ ${ce(we)}
1545
1545
  role="combobox"
1546
1546
  aria-haspopup="tree"
1547
- aria-expanded=${P?"true":"false"}
1548
- aria-label=${Ee.ifDefined(ve["aria-label"]??C.label)}
1547
+ aria-expanded=${L?"true":"false"}
1548
+ aria-label=${$e.ifDefined(we["aria-label"]??C.label)}
1549
1549
  ?disabled=${!!C.disabled}
1550
1550
  ${Y.ref(l)}
1551
1551
  >
1552
- ${ie}
1552
+ ${ae}
1553
1553
  </button>
1554
1554
  </div>
1555
1555
  </div>
1556
- ${Be()!==""?s.html`<span class="moz-input-invalid-message">${Be()}</span>`:s.nothing}
1556
+ ${Ue()!==""?n.html`<span class="moz-input-invalid-message">${Ue()}</span>`:n.nothing}
1557
1557
  </div>
1558
- `},renderPortal(){if(!P)return s.nothing;const C=e.props,M=A(),q=nt()&&_.length>0&&M.length>0,ie=M.length===0||q?0:X,ue=M.length===0?0:X;(ze.options.count!==M.length||ze.options.paddingStart!==ie||ze.options.paddingEnd!==ue)&&ze.setOptions({...ze.options,count:M.length,paddingStart:ie,paddingEnd:ue}),ze._willUpdate();const ve=ze.getTotalSize(),we=D(),Re=ze.getVirtualItems(),tt=po(Re,M.length,R,r).map(lt=>{if(lt.index>=M.length)return null;const ut=M[lt.index];if(!ut)return null;let Ct=Ue(ut,we),At=!1;if(b()&&!je(h,ut.depth)){const Ie=Bt(J,ut);if(Ie.length>0){const zo=Ie.reduce((gn,vn)=>gn+(we.has(vn.code)?1:0),0);zo===0?Ct=!1:zo<Ie.length?(Ct=!0,At=!0):Ct=!0}}return{index:lt.index,item:ut,start:lt.start+(Re.length===0?ie:0),isSelected:Ct,isIndeterminate:At,isDisabled:Xt(ut),isFocused:f(ut)}}).filter(lt=>lt!==null),Ye=i?e.locale.TreeSelect.selectFiltered:e.locale.TreeSelect.selectAll,Ze=E(),dt=Array.isArray(Ze)?Ze.length:Ze?1:0;return s.html`<div
1559
- class=${V("list-box moz-tree-select-list",{"no-label":!C.label,"show-top":y},C.class)}
1560
- style=${te.styleMap({...I,...se})}
1561
- ${Y.ref(n)}
1558
+ `},renderPortal(){if(!L)return n.nothing;const C=e.props,z=I(),B=lt()&&F.length>0&&z.length>0,ae=z.length===0||B?0:J,ue=z.length===0?0:J;(Le.options.count!==z.length||Le.options.paddingStart!==ae||Le.options.paddingEnd!==ue)&&Le.setOptions({...Le.options,count:z.length,paddingStart:ae,paddingEnd:ue}),Le._willUpdate();const we=Le.getTotalSize(),be=R(),Te=Le.getVirtualItems(),tt=ko(Te,z.length,V,r).map(it=>{if(it.index>=z.length)return null;const pt=z[it.index];if(!pt)return null;let $t=He(pt,be),Vt=!1;if(b()&&!Xe(p,pt.depth)){const De=Kt(oe,pt);if(De.length>0){const Go=De.reduce((ll,il)=>ll+(be.has(il.code)?1:0),0);Go===0?$t=!1:Go<De.length?($t=!0,Vt=!0):$t=!0}}return{index:it.index,item:pt,start:it.start+(Te.length===0?ae:0),isSelected:$t,isIndeterminate:Vt,isDisabled:ao(pt),isFocused:g(pt)}}).filter(it=>it!==null),je=a?e.locale.TreeSelect.selectFiltered:e.locale.TreeSelect.selectAll,We=k(),ut=Array.isArray(We)?We.length:We?1:0;return n.html`<div
1559
+ class=${A("list-box moz-tree-select-list",{"no-label":!C.label,"show-top":$},C.class)}
1560
+ style=${j.styleMap({...O,...le})}
1561
+ ${Y.ref(s)}
1562
1562
  >
1563
1563
  <div class="filter-input-wrapper">
1564
- ${C.useFilter?s.html`<div class="filter-input">
1565
- <div class="search-icon">${lo("12","var(--moz-color-text-subtle)")}</div>
1566
- <input placeholder=${e.locale.TreeSelect.search} @input=${_e} ${Y.ref(c)} />
1567
- </div>`:s.nothing}
1564
+ ${C.useFilter?n.html`<div class="filter-input">
1565
+ <div class="search-icon">${go("12","var(--moz-color-text-subtle)")}</div>
1566
+ <input placeholder=${e.locale.TreeSelect.search} @input=${Ne} ${Y.ref(i)} />
1567
+ </div>`:n.nothing}
1568
1568
  <div class="tree-controls">
1569
- <span class="control-btn" @click=${()=>Le(!0)}>${Vi("currentColor")}</span>
1570
- <span class="control-btn" @click=${()=>Le(!1)}>${Oi("currentColor")}</span>
1569
+ <span class="control-btn" @click=${()=>Pe(!0)}>${ka("currentColor")}</span>
1570
+ <span class="control-btn" @click=${()=>Pe(!1)}>${Ma("currentColor")}</span>
1571
1571
  </div>
1572
1572
  </div>
1573
1573
 
1574
- ${nt()&&_.length>0&&M.length>0?s.html`<div class=${V("list-box-item multi-select-item multi-select-all",{"is-scrolled":p})} @click=${ct}>
1574
+ ${lt()&&F.length>0&&z.length>0?n.html`<div class=${A("list-box-item multi-select-item multi-select-all",{"is-scrolled":h})} @click=${ft}>
1575
1575
  <div class="select-all-content">
1576
- ${qt({indeterminate:dt>0&&Qe()===!1,checked:Je()})}
1577
- <div><span title=${Ye}>${Ye}</span></div>
1576
+ ${Wt({indeterminate:ut>0&&Ge()===!1,checked:et()})}
1577
+ <div><span title=${je}>${je}</span></div>
1578
1578
  </div>
1579
- ${i&&M.length>0?s.html`<button type="button" class="item-only" @click=${Oe}>${e.locale.TreeSelect.specificResults}</button>`:s.nothing}
1580
- </div>`:s.nothing}
1579
+ ${a&&z.length>0?n.html`<button type="button" class="item-only" @click=${qe}>${e.locale.TreeSelect.specificResults}</button>`:n.nothing}
1580
+ </div>`:n.nothing}
1581
1581
 
1582
- <div class="list-box-container" @scroll=${rt} ${Y.ref(at)}>
1583
- <div class="inner-container" style=${te.styleMap({height:`${ve}px`})}>
1584
- ${tt.map(lt=>Yt(lt))}
1582
+ <div class="list-box-container" @scroll=${ct} ${Y.ref(dt)}>
1583
+ <div class="inner-container" style=${j.styleMap({height:`${we}px`})}>
1584
+ ${tt.map(it=>xt(it))}
1585
1585
  </div>
1586
- ${M.length<=0?s.html`<div style=${te.styleMap({paddingTop:`${X}px`,paddingBottom:`${X}px`})}>
1586
+ ${z.length<=0?n.html`<div style=${j.styleMap({paddingTop:`${J}px`,paddingBottom:`${J}px`})}>
1587
1587
  <div class="list-box-item loading not-hover">
1588
1588
  ${e.slots.has("empty")?e.slot("empty"):e.locale.TreeSelect.noData}
1589
1589
  </div>
1590
- </div>`:s.nothing}
1590
+ </div>`:n.nothing}
1591
1591
  </div>
1592
1592
 
1593
- ${b()?s.html`<div class="list-footer">
1593
+ ${b()?n.html`<div class="list-footer">
1594
1594
  <label class="footer-checkbox">
1595
- ${qt({checked:F,onChange:mt,class:"moz-checkbox"})}
1595
+ ${Wt({checked:_,onChange:vt,class:"moz-checkbox"})}
1596
1596
  <span>${e.locale.TreeSelect.showSelectedOnly}</span>
1597
1597
  </label>
1598
- </div>`:s.nothing}
1599
- </div>`}}}}),Hi={name:"MozTreeSelect",core:_s,booleanProps:["disabled","readonly","required","useFilter","useMultiSelect","useSelectAll","useSpecificSelect"],props:["itemsSource","label","width","required","readonly","disabled","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","treeLevels","useMultiSelect","treeProps","modelValue"],emits:["change","close","update:modelValue"],slots:["icon","list-item","empty"],expose:!0},Ui=new Set(["panes","direction","resizable","minSize","class","style"]),Ho=(e,t)=>e===void 0?t:typeof e=="number"?`${e}px`:e,Hs=$e({name:"moz-split-pane",defaults:{horizontal:!1,panes:[]},setup(e){let t=null,o=null;const n=[],l=[],c=[],r=[];let h=[],d=!1,b=0,a=0,m=-1,u=-1,E=-1,x=null,$=null,P=0;const L=()=>!!e.props.horizontal,g=()=>e.props.panes??[],i=()=>{h=g().map(N=>N.hidden?"0":N.size!=null?String(N.size):"1fr")};i();const p=N=>L()?N.clientHeight:N.clientWidth,y=()=>p(c[u]),F=()=>p(r[u]),I=()=>p(c[E]),K=()=>p(r[E]),oe=N=>{if(!d)return;let ne=L()?N.movementY:N.movementX;x=+(ne>0),x!==$&&$!==null&&(u=m,E=m+1),$=x;const _=l[m].getBoundingClientRect(),J=L()?N.clientY-_.top+window.scrollY:N.clientX-_.left+window.scrollX;(x===0&&J>10||x===1&&J<-10)&&(ne=ne/(Math.abs(J)/10)),(x===0&&L()?N.clientY<_.top:N.clientX<_.left)&&(P=0),(x===1&&L()?N.clientY>_.top:N.clientX>_.left)&&(P=0);const z=G=>n[G][L()?"clientHeight":"clientWidth"];if(b=z(u)+ne,a=z(E)+z(u)-b,!(b>y()&&b<F()||b<y()&&x===1||b>y()&&x===0)){if(b<y()){if(u-1<0&&x===0){P+=L()?N.movementY:N.movementX;return}u=u-1>=0?u-1:0}else if(b>F()){if(u-1<0){P+=L()?N.movementY:N.movementX;return}u=u-1>=0?u-1:0}}if(!(a>I()&&a<K()||a<I()&&x===0||a>I()&&x===1)){if(a<I()){if(E+1>=h.length){P+=L()?N.movementY:N.movementX;return}E=E+1<h.length?E+1:h.length-1}else if(a>K()){if(E+1>=h.length){P+=L()?N.movementY:N.movementX;return}E=E+1<h.length?E+1:h.length-1}}if(x===0&&P>0||x===1&&P<0||x===0&&a>K()||x===1&&a<I()||x===0&&b<y()||x===1&&b>F())return;const W=t[L()?"clientHeight":"clientWidth"],Z=z(u)+ne;h[u]=`clamp(${y()}px, ${Z/W*100}%, ${F()}px)`,h[E]="1fr",e.requestUpdate(),queueMicrotask(()=>{const G=z(E);h[E]=`clamp(${I()}px, ${G/W*100}%, ${K()}px)`,e.requestUpdate()})},re=()=>{m=-1,u=-1,E=-1,d=!1,P=0,document.removeEventListener("mousemove",oe),document.removeEventListener("mouseup",re),e.requestUpdate()},j=N=>{N.preventDefault(),d=!0,L()?N.clientY:N.clientX,document.addEventListener("mousemove",oe),document.addEventListener("mouseup",re),e.requestUpdate()},k=(N,ne)=>{m=ne,u=ne,E=ne+1,P=0,j(N)};let R=null;const X=()=>{t&&o&&(o.style.width=`${t.clientWidth}px`,o.style.height=`${t.clientHeight}px`)};e.onCleanup(()=>{document.removeEventListener("mouseup",re),document.removeEventListener("mousemove",oe),R==null||R.disconnect()});let se=e.props.panes;return{onMounted:()=>{i(),e.requestUpdate()},render(){const N=g();e.props.panes!==se&&(se=e.props.panes,queueMicrotask(()=>{i(),e.requestUpdate()}));const ne=L()?"gridTemplateRows":"gridTemplateColumns",_=N.length-1,J=ye(e.props,Ui);return s.html`
1598
+ </div>`:n.nothing}
1599
+ </div>`}}}}),Ta={name:"MozTreeSelect",core:us,booleanProps:["disabled","readonly","required","useFilter","useMultiSelect","useSelectAll","useSpecificSelect"],props:["itemsSource","label","width","required","readonly","disabled","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","treeLevels","useMultiSelect","treeProps","modelValue"],emits:["change","close","update:modelValue"],slots:["icon","list-item","empty"],expose:!0},Aa=new Set(["panes","direction","resizable","minSize","class","style"]),cn=(e,t)=>e===void 0?t:typeof e=="number"?`${e}px`:e,ps=ye({name:"moz-split-pane",defaults:{horizontal:!1,panes:[]},setup(e){let t=null,o=null;const s=[],l=[],i=[],r=[];let p=[],d=!1,b=0,c=0,m=-1,u=-1,k=-1,x=null,S=null,L=0;const M=()=>!!e.props.horizontal,f=()=>e.props.panes??[],a=()=>{p=f().map(N=>N.hidden?"0":N.size!=null?String(N.size):"1fr")};a();const h=N=>M()?N.clientHeight:N.clientWidth,$=()=>h(i[u]),_=()=>h(r[u]),O=()=>h(i[k]),U=()=>h(r[k]),Q=N=>{if(!d)return;let ie=M()?N.movementY:N.movementX;x=+(ie>0),x!==S&&S!==null&&(u=m,k=m+1),S=x;const F=l[m].getBoundingClientRect(),oe=M()?N.clientY-F.top+window.scrollY:N.clientX-F.left+window.scrollX;(x===0&&oe>10||x===1&&oe<-10)&&(ie=ie/(Math.abs(oe)/10)),(x===0&&M()?N.clientY<F.top:N.clientX<F.left)&&(L=0),(x===1&&M()?N.clientY>F.top:N.clientX>F.left)&&(L=0);const T=ee=>s[ee][M()?"clientHeight":"clientWidth"];if(b=T(u)+ie,c=T(k)+T(u)-b,!(b>$()&&b<_()||b<$()&&x===1||b>$()&&x===0)){if(b<$()){if(u-1<0&&x===0){L+=M()?N.movementY:N.movementX;return}u=u-1>=0?u-1:0}else if(b>_()){if(u-1<0){L+=M()?N.movementY:N.movementX;return}u=u-1>=0?u-1:0}}if(!(c>O()&&c<U()||c<O()&&x===0||c>O()&&x===1)){if(c<O()){if(k+1>=p.length){L+=M()?N.movementY:N.movementX;return}k=k+1<p.length?k+1:p.length-1}else if(c>U()){if(k+1>=p.length){L+=M()?N.movementY:N.movementX;return}k=k+1<p.length?k+1:p.length-1}}if(x===0&&L>0||x===1&&L<0||x===0&&c>U()||x===1&&c<O()||x===0&&b<$()||x===1&&b>_())return;const W=t[M()?"clientHeight":"clientWidth"],K=T(u)+ie;p[u]=`clamp(${$()}px, ${K/W*100}%, ${_()}px)`,p[k]="1fr",e.requestUpdate(),queueMicrotask(()=>{const ee=T(k);p[k]=`clamp(${O()}px, ${ee/W*100}%, ${U()}px)`,e.requestUpdate()})},re=()=>{m=-1,u=-1,k=-1,d=!1,L=0,document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",re),e.requestUpdate()},X=N=>{N.preventDefault(),d=!0,M()?N.clientY:N.clientX,document.addEventListener("mousemove",Q),document.addEventListener("mouseup",re),e.requestUpdate()},E=(N,ie)=>{m=ie,u=ie,k=ie+1,L=0,X(N)};let V=null;const J=()=>{t&&o&&(o.style.width=`${t.clientWidth}px`,o.style.height=`${t.clientHeight}px`)};e.onCleanup(()=>{document.removeEventListener("mouseup",re),document.removeEventListener("mousemove",Q),V==null||V.disconnect()});let le=e.props.panes;return{onMounted:()=>{a(),e.requestUpdate()},render(){const N=f();e.props.panes!==le&&(le=e.props.panes,queueMicrotask(()=>{a(),e.requestUpdate()}));const ie=M()?"gridTemplateRows":"gridTemplateColumns",F=N.length-1,oe=ge(e.props,Aa);return n.html`
1600
1600
  <div
1601
- ${fe(J)}
1602
- class=${V("splitter",e.props.class)}
1603
- style=${te.styleMap({display:"grid",[ne]:h.join(" "),width:"100%",height:"100%",overflow:"hidden",cursor:d?L()?"row-resize":"col-resize":"unset"})}
1604
- ${Y.ref(z=>{t=z??null,t&&o&&(X(),!R&&typeof ResizeObserver<"u"&&(R=new ResizeObserver(()=>X()),R.observe(t)))})}
1601
+ ${ce(oe)}
1602
+ class=${A("splitter",e.props.class)}
1603
+ style=${j.styleMap({display:"grid",[ie]:p.join(" "),width:"100%",height:"100%",overflow:"hidden",cursor:d?M()?"row-resize":"col-resize":"unset"})}
1604
+ ${Y.ref(T=>{t=T??null,t&&o&&(J(),!V&&typeof ResizeObserver<"u"&&(V=new ResizeObserver(()=>J()),V.observe(t)))})}
1605
1605
  >
1606
- ${N.map((z,W)=>{const Z=W===_?"100%":h[W+1]!=="0"?"calc(100% - 10px) 10px":"100%";return s.html`<div
1607
- style=${te.styleMap({display:"grid",[ne]:Z,overflow:"hidden"})}
1608
- ${Y.ref(G=>{n[W]=G??null})}
1606
+ ${N.map((T,W)=>{const K=W===F?"100%":p[W+1]!=="0"?"calc(100% - 10px) 10px":"100%";return n.html`<div
1607
+ style=${j.styleMap({display:"grid",[ie]:K,overflow:"hidden"})}
1608
+ ${Y.ref(ee=>{s[W]=ee??null})}
1609
1609
  >
1610
1610
  <div style="width: 100%; height: 100%; overflow: hidden">${e.slot(`pane-${W}`)}</div>
1611
- ${W!==_&&h[W+1]!=="0"?s.html`<div
1612
- class=${L()?"resizer resizer-horizontal":"resizer resizer-vertical"}
1611
+ ${W!==F&&p[W+1]!=="0"?n.html`<div
1612
+ class=${M()?"resizer resizer-horizontal":"resizer resizer-vertical"}
1613
1613
  role="separator"
1614
- aria-orientation=${L()?"horizontal":"vertical"}
1614
+ aria-orientation=${M()?"horizontal":"vertical"}
1615
1615
  aria-label=${e.locale.SplitPane.resizeHandle}
1616
1616
  tabindex="0"
1617
- @mousedown=${G=>k(G,W)}
1618
- ${Y.ref(G=>{l[W]=G??null})}
1619
- ></div>`:s.nothing}
1617
+ @mousedown=${ee=>E(ee,W)}
1618
+ ${Y.ref(ee=>{l[W]=ee??null})}
1619
+ ></div>`:n.nothing}
1620
1620
  </div>`})}
1621
1621
 
1622
1622
  <div
1623
1623
  style="pointer-events: none; position: fixed"
1624
- ${Y.ref(z=>{o=z??null,t&&o&&X()})}
1624
+ ${Y.ref(T=>{o=T??null,t&&o&&J()})}
1625
1625
  >
1626
- ${N.map((z,W)=>{const Z=Ho(z.minSize,"10px"),G=Ho(z.maxSize,"100%");return s.html`<div
1626
+ ${N.map((T,W)=>{const K=cn(T.minSize,"10px"),ee=cn(T.maxSize,"100%");return n.html`<div
1627
1627
  class="size-calculator min-size"
1628
- style=${te.styleMap({width:Z,height:Z})}
1629
- ${Y.ref(Q=>{c[W]=Q??null})}
1628
+ style=${j.styleMap({width:K,height:K})}
1629
+ ${Y.ref(te=>{i[W]=te??null})}
1630
1630
  ></div>
1631
1631
  <div
1632
1632
  class="size-calculator max-size"
1633
- style=${te.styleMap({width:G,height:G})}
1634
- ${Y.ref(Q=>{r[W]=Q??null})}
1633
+ style=${j.styleMap({width:ee,height:ee})}
1634
+ ${Y.ref(te=>{r[W]=te??null})}
1635
1635
  ></div>`})}
1636
1636
  </div>
1637
1637
  </div>
1638
- `}}}}),Wi={name:"MozSplitPane",core:Hs,booleanProps:["horizontal"],props:["horizontal","panes"],emits:[],slots:["pane-0","pane-1","pane-2","pane-3","pane-4","pane-5","pane-6","pane-7"],expose:!1};function Ki(e="currentColor",t=14){return s.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
1638
+ `}}}}),Ia={name:"MozSplitPane",core:ps,booleanProps:["horizontal"],props:["horizontal","panes"],emits:[],slots:["pane-0","pane-1","pane-2","pane-3","pane-4","pane-5","pane-6","pane-7"],expose:!1};function Ra(e="currentColor",t=14){return n.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
1639
1639
  <path
1640
1640
  d="M12.25 12.25V3.8436L10.163 1.75H1.75V12.25H12.25ZM12.4448 14H1.55615C0.7002 14 0 13.3001 0 12.4446V1.55617C0 0.70013 0.69238 0 1.55615 0H10.2432C10.6558 0 11.0522 0.16353 11.3481 0.46009L13.5415 2.66039C13.8364 2.94828 14 3.34501 14 3.75673V12.4446C14 13.3001 13.3003 14 12.4448 14Z"
1641
1641
  fill=${e}
@@ -1650,7 +1650,7 @@
1650
1650
  d="M4.75 9.75V12.25H9.25V9.75H4.75ZM3.29289 8.29289C3.48043 8.10536 3.73478 8 4 8H10C10.2652 8 10.5196 8.10536 10.7071 8.29289C10.8946 8.48043 11 8.73479 11 9V14H3V9C3 8.73478 3.10536 8.48043 3.29289 8.29289Z"
1651
1651
  fill=${e}
1652
1652
  ></path>
1653
- </svg>`}function Zi(e="currentColor",t=14){return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
1653
+ </svg>`}function Da(e="currentColor",t=14){return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
1654
1654
  <g clip-path="url(#clip0_16945_2363)">
1655
1655
  <path
1656
1656
  d="M10.8 5.2998H3.2C2.8134 5.2998 2.5 5.61321 2.5 5.9998V12.3998C2.5 12.7864 2.8134 13.0998 3.2 13.0998H10.8C11.1866 13.0998 11.5 12.7864 11.5 12.3998V5.9998C11.5 5.61321 11.1866 5.2998 10.8 5.2998Z"
@@ -1666,7 +1666,7 @@
1666
1666
  <defs>
1667
1667
  <clipPath id="clip0_16945_2363"><rect width="14" height="14" fill=${e}></rect></clipPath>
1668
1668
  </defs>
1669
- </svg>`}function Gi(e="currentColor",t=14){return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14">
1669
+ </svg>`}function Va(e="currentColor",t=14){return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14">
1670
1670
  <path d="M0,0H14V14H0Z" fill="none"></path>
1671
1671
  <line
1672
1672
  y2="10"
@@ -1684,54 +1684,54 @@
1684
1684
  stroke-linecap="round"
1685
1685
  stroke-width="1.8"
1686
1686
  ></line>
1687
- </svg>`}function Yi(e="currentColor",t=14){return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
1687
+ </svg>`}function Oa(e="currentColor",t=14){return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
1688
1688
  <path
1689
1689
  d="M5.84944 0.402344C2.83893 0.402344 0.398438 2.84284 0.398438 5.85334C0.398438 8.86385 2.83893 11.3043 5.84944 11.3043C7.0308 11.3043 8.12438 10.9285 9.01716 10.29L12.0619 13.3347C12.4134 13.6862 12.9832 13.6862 13.3347 13.3347C13.6862 12.9832 13.6862 12.4134 13.3347 12.0619L10.2893 9.01651C10.9259 8.12457 11.3004 7.03269 11.3004 5.85334C11.3004 2.84284 8.85994 0.402344 5.84944 0.402344ZM2.19844 5.85334C2.19844 3.83695 3.83305 2.20234 5.84944 2.20234C7.86583 2.20234 9.50044 3.83695 9.50044 5.85334C9.50044 7.86974 7.86583 9.50434 5.84944 9.50434C3.83305 9.50434 2.19844 7.86974 2.19844 5.85334Z"
1690
1690
  fill=${e}
1691
1691
  ></path>
1692
- </svg>`}function ji(e="currentColor",t=14){return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
1692
+ </svg>`}function _a(e="currentColor",t=14){return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
1693
1693
  <path
1694
1694
  d="M12.7988 6.23621C12.6596 5.99307 12.4571 5.79178 12.2126 5.65358L4.31964 1.20161C4.08323 1.06797 3.81572 0.998459 3.54385 1.00003C3.27199 1.00159 3.00531 1.07419 2.77047 1.21055C2.53563 1.3469 2.34088 1.54224 2.20567 1.77703C2.07046 2.01181 1.99953 2.27781 2 2.54843V11.4524C1.99975 11.7229 2.07082 11.9888 2.20609 12.2234C2.34136 12.4581 2.53611 12.6533 2.77089 12.7895C3.00567 12.9258 3.27225 12.9984 3.54402 13C3.81579 13.0016 4.08324 12.9322 4.31964 12.7987L12.2117 8.3472C12.5703 8.14432 12.8334 7.80821 12.9435 7.4125C13.0536 7.0168 13.0015 6.59379 12.7988 6.23621Z"
1695
1695
  fill=${e}
1696
1696
  ></path>
1697
- </svg>`}const Xi=new Set(["navigations","containerStyle","headerStyle","class","style"]);function Qi(e){switch(e.action){case"Add":return"IconPlus";case"Remove":return"IconTrash";case"Save":return"IconSave";case"Search":return"IconSearch";case"Run":return"IconPlay";default:return e.icon??null}}function Ji(e){switch(e){case"IconSave":return Ki();case"IconTrash":return Zi();case"IconPlus":return Gi();case"IconSearch":return Yi();case"IconPlay":return ji();default:return s.html``}}const Us=$e({name:"moz-controller",defaults:{height:66,showFilterButton:!1,showFavorite:!0,showPreset:!0},setup(e){var a,m;(m=(a=e.props).setControlHeight)==null||m.call(a,e.props.height??66);let t=!!e.props.showFilterButton,o=!1;const n=()=>e.controlled("customQueryParamsPanel")?!!e.props.customQueryParamsPanel:o;let l=null,c=!1;const r=ot("switch_"),h=ot("switch_"),d=u=>{t=u.target.checked,e.requestUpdate()},b=u=>{const E=u.target.checked;o=E,e.emit("update:customQueryParamsPanel",E),e.requestUpdate()};return{onMounted(){l=document.querySelector(".moz-contents-container"),c=!!l,c&&e.requestUpdate()},getPortalContainer:()=>l,renderPortal(){return!c||!e.slots.has("custom-filter")?s.nothing:s.html`<div style=${te.styleMap({display:n()?void 0:"none"})}>
1697
+ </svg>`}const Ba=new Set(["navigations","containerStyle","headerStyle","class","style"]);function qa(e){switch(e.action){case"Add":return"IconPlus";case"Remove":return"IconTrash";case"Save":return"IconSave";case"Search":return"IconSearch";case"Run":return"IconPlay";default:return e.icon??null}}function Fa(e){switch(e){case"IconSave":return Ra();case"IconTrash":return Da();case"IconPlus":return Va();case"IconSearch":return Oa();case"IconPlay":return _a();default:return n.html``}}const hs=ye({name:"moz-controller",defaults:{height:66,showFilterButton:!1,showFavorite:!0,showPreset:!0},setup(e){var c,m;(m=(c=e.props).setControlHeight)==null||m.call(c,e.props.height??66);let t=!!e.props.showFilterButton,o=!1;const s=()=>e.controlled("customQueryParamsPanel")?!!e.props.customQueryParamsPanel:o;let l=null,i=!1;const r=Qe("switch_"),p=Qe("switch_"),d=u=>{t=u.target.checked,e.requestUpdate()},b=u=>{const k=u.target.checked;o=k,e.emit("update:customQueryParamsPanel",k),e.requestUpdate()};return{onMounted(){l=document.querySelector(".moz-contents-container"),i=!!l,i&&e.requestUpdate()},getPortalContainer:()=>l,renderPortal(){return!i||!e.slots.has("custom-filter")?n.nothing:n.html`<div style=${j.styleMap({display:s()?void 0:"none"})}>
1698
1698
  ${e.slot("custom-filter")}
1699
- </div>`},render(){const u=e.props,E=e.slots.has("custom-filter"),x=e.slots.has("action"),$=u.actions??[],P=$.find(i=>i.loading===!0),L=$.map(i=>{const p=Qi(i),y=!!P&&i.action!==P.action||!!i.disabled;return{...i,icon:p,disabled:y}}),g=ye(u,Xi);return s.html`
1699
+ </div>`},render(){const u=e.props,k=e.slots.has("custom-filter"),x=e.slots.has("action"),S=u.actions??[],L=S.find(a=>a.loading===!0),M=S.map(a=>{const h=qa(a),$=!!L&&a.action!==L.action||!!a.disabled;return{...a,icon:h,disabled:$}}),f=ge(u,Ba);return n.html`
1700
1700
  <div
1701
- class=${V("moz-controller-root",u.class)}
1702
- style=${te.styleMap(Ce(u.containerStyle))}
1703
- ${fe(g)}
1701
+ class=${A("moz-controller-root",u.class)}
1702
+ style=${j.styleMap(he(u.containerStyle))}
1703
+ ${ce(f)}
1704
1704
  >
1705
- <div class="moz-controller" style=${te.styleMap(Ce(u.headerStyle))}>
1706
- ${u.navigations?wo({itemSource:u.navigations,showFavorite:!1,ariaLabel:e.locale.BreadCrumb.navigation}):s.nothing}
1705
+ <div class="moz-controller" style=${j.styleMap(he(u.headerStyle))}>
1706
+ ${u.navigations?Po({itemSource:u.navigations,showFavorite:!1,ariaLabel:e.locale.BreadCrumb.navigation}):n.nothing}
1707
1707
  <div class="spacer"></div>
1708
1708
 
1709
1709
  <div class="moz-controller-actions">
1710
1710
  ${e.slot("beforeFilter")}
1711
- ${u.showFilterButton&&!E?Ht({id:r,model:t,label:e.locale.Controller.filterLabel,onChange:d}):s.nothing}
1712
- ${u.showFilterButton&&E?Ht({id:h,model:n(),label:e.locale.Controller.filterLabel,onChange:b}):s.nothing}
1713
- ${u.showFilterButton?s.html`<div class="spacer between-buttons" style="margin: 0 6px"></div>`:s.nothing}
1711
+ ${u.showFilterButton&&!k?Xt({id:r,model:t,label:e.locale.Controller.filterLabel,onChange:d}):n.nothing}
1712
+ ${u.showFilterButton&&k?Xt({id:p,model:s(),label:e.locale.Controller.filterLabel,onChange:b}):n.nothing}
1713
+ ${u.showFilterButton?n.html`<div class="spacer between-buttons" style="margin: 0 6px"></div>`:n.nothing}
1714
1714
  ${e.slot("action")}
1715
- ${x&&L.length>0?s.html`<div class="spacer between-buttons"></div>`:s.nothing}
1716
- ${L.map(i=>kt({action:i.action,text:i.text,disabled:i.disabled,loading:i.loading,width:i.text?void 0:30,style:{padding:i.text?void 0:"0"}},{icon:Ji(i.icon),onClick:()=>{i.click&&i.click()},rest:{title:i.action}}))}
1715
+ ${x&&M.length>0?n.html`<div class="spacer between-buttons"></div>`:n.nothing}
1716
+ ${M.map(a=>Ct({action:a.action,text:a.text,disabled:a.disabled,loading:a.loading,width:a.text?void 0:30,style:{padding:a.text?void 0:"0"}},{icon:Fa(a.icon),onClick:()=>{a.click&&a.click()},rest:{title:a.action}}))}
1717
1717
  </div>
1718
1718
  </div>
1719
1719
 
1720
- ${t&&!E?s.html`<div
1720
+ ${t&&!k?n.html`<div
1721
1721
  class="moz-horizontal-filter moz-controller-filter"
1722
- style=${te.styleMap(Ce(u.filterStyle))}
1722
+ style=${j.styleMap(he(u.filterStyle))}
1723
1723
  >
1724
1724
  ${e.slot("filter")}
1725
- </div>`:s.nothing}
1725
+ </div>`:n.nothing}
1726
1726
  </div>
1727
- `}}}}),er={name:"MozController",core:Us,booleanProps:["customQueryParamsPanel","showFavorite","showFilterButton","showPreset"],props:["height","setControlHeight","showFilterButton","actions","containerStyle","headerStyle","filterStyle","showFavorite","showPreset","navigations","customQueryParamsPanel"],emits:["update:customQueryParamsPanel"],slots:["beforeFilter","action","filter","custom-filter"],expose:!1};class Po{constructor(t,o){Ve(this,"startedAt");Ve(this,"callback");Ve(this,"delay");Ve(this,"timer");Ve(this,"paused",!1);this.startedAt=Date.now(),this.callback=t,this.delay=o,this.timer=setTimeout(t,o)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt,this.paused=!0}resume(){this.stop(),this.startedAt=Date.now(),this.paused=!1,this.timer=setTimeout(this.callback,this.delay)}remaining(){return this.paused?Math.max(0,this.delay):Math.max(0,this.delay-(Date.now()-this.startedAt))}stop(){clearTimeout(this.timer)}}function tr(e="var(--moz-color-on-accent)"){return s.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
1727
+ `}}}}),Na={name:"MozController",core:hs,booleanProps:["customQueryParamsPanel","showFavorite","showFilterButton","showPreset"],props:["height","setControlHeight","showFilterButton","actions","containerStyle","headerStyle","filterStyle","showFavorite","showPreset","navigations","customQueryParamsPanel"],emits:["update:customQueryParamsPanel"],slots:["beforeFilter","action","filter","custom-filter"],expose:!1};class _o{constructor(t,o){Ve(this,"startedAt");Ve(this,"callback");Ve(this,"delay");Ve(this,"timer");Ve(this,"paused",!1);this.startedAt=Date.now(),this.callback=t,this.delay=o,this.timer=setTimeout(t,o)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt,this.paused=!0}resume(){this.stop(),this.startedAt=Date.now(),this.paused=!1,this.timer=setTimeout(this.callback,this.delay)}remaining(){return this.paused?Math.max(0,this.delay):Math.max(0,this.delay-(Date.now()-this.startedAt))}stop(){clearTimeout(this.timer)}}function Ha(e="var(--moz-color-on-accent)"){return n.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
1728
1728
  <path
1729
1729
  fill-rule="evenodd"
1730
1730
  clip-rule="evenodd"
1731
1731
  d="M15 30C23.2843 30 30 23.2843 30 15C30 6.71573 23.2843 0 15 0C6.71573 0 0 6.71573 0 15C0 23.2843 6.71573 30 15 30ZM12.8944 17.9373L10.6229 15.6658C10.1352 15.1781 9.35358 15.1781 8.86582 15.6658C8.37806 16.1536 8.37806 16.9352 8.86582 17.4229L12.0083 20.5654C12.496 21.0531 13.285 21.0532 13.7728 20.5656L21.7228 12.6231C22.2105 12.1353 22.2107 11.3536 21.7229 10.8658C21.2352 10.3781 20.4536 10.3781 19.9658 10.8658L12.8944 17.9373Z"
1732
1732
  fill=${e}
1733
1733
  ></path>
1734
- </svg>`}function or(e="var(--moz-color-on-accent)"){return s.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
1734
+ </svg>`}function Ua(e="var(--moz-color-on-accent)"){return n.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
1735
1735
  <mask id="mask0_6027_4458" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
1736
1736
  <path d="M30 0H0V30H30V0Z" fill="#FFF"></path>
1737
1737
  </mask>
@@ -1741,14 +1741,14 @@
1741
1741
  fill=${e}
1742
1742
  ></path>
1743
1743
  </g>
1744
- </svg>`}function sr(e="var(--moz-color-on-accent)"){return s.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
1744
+ </svg>`}function Wa(e="var(--moz-color-on-accent)"){return n.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
1745
1745
  <path
1746
1746
  fill-rule="evenodd"
1747
1747
  clip-rule="evenodd"
1748
1748
  d="M30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0C23.2843 0 30 6.71573 30 15ZM14 7.6C14 7.26863 14.2686 7 14.6 7H16.4C16.7314 7 17 7.26863 17 7.6V17.4C17 17.7314 16.7314 18 16.4 18H14.6C14.2686 18 14 17.7314 14 17.4V7.6ZM14.6 20C14.2686 20 14 20.2686 14 20.6V22.4C14 22.7314 14.2686 23 14.6 23H16.4C16.7314 23 17 22.7314 17 22.4V20.6C17 20.2686 16.7314 20 16.4 20H14.6Z"
1749
1749
  fill=${e}
1750
1750
  ></path>
1751
- </svg>`}function nr(e="var(--moz-color-on-accent)"){return s.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
1751
+ </svg>`}function Ka(e="var(--moz-color-on-accent)"){return n.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
1752
1752
  <mask id="mask0_6027_4463" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
1753
1753
  <path d="M30 0H0V30H30V0Z" fill="#FFF"></path>
1754
1754
  </mask>
@@ -1758,153 +1758,153 @@
1758
1758
  fill=${e}
1759
1759
  ></path>
1760
1760
  </g>
1761
- </svg>`}const lr=()=>s.html`
1761
+ </svg>`}const Za=()=>n.html`
1762
1762
  <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
1763
1763
  <path d="M18 6 6 18M6 6l12 12" />
1764
1764
  </svg>
1765
- `,Uo=new Set(["message","type","position","duration","dismissible","queue","pauseOnHover","onDismiss","class","style","inline","composed","showProgress","progressClass","exitDuration"]);function Wo(e){switch(e){case"success":return"bg-success";case"error":return"bg-error";case"info":return"bg-info";default:return"bg-warning"}}function ir(e){switch(e){case"top":case"bottom":return"position-center";case"top-right":case"bottom-right":return"position-end";case"top-left":case"bottom-left":default:return"position-start"}}function rr(e){switch(e){case"top":case"top-right":case"top-left":return".toast--top";case"bottom":case"bottom-right":case"bottom-left":default:return".toast--bottom"}}function ar(e){return e==="error"?or("var(--moz-color-on-accent)"):e==="info"?sr("var(--moz-color-on-accent)"):e==="success"?tr("var(--moz-color-on-accent)"):nr("var(--moz-color-on-accent)")}const Mo=$e({name:"moz-toast",defaults:{type:"warning",position:"bottom",duration:3e3,dismissible:!0,queue:!1,pauseOnHover:!0,inline:!1,composed:!1,showProgress:!1,exitDuration:150},setup(e){let t=!1,o=!1,n=null,l=null,c=null,r=100;const h=()=>{let L=document.querySelector(".toast--top"),g=document.querySelector(".toast--bottom");L&&g||(L||(L=document.createElement("div"),L.className="toast--top moz-toast-body moz-toast-body--top",document.body.appendChild(L)),g||(g=document.createElement("div"),g.className="toast--bottom moz-toast-body moz-toast-body--bottom",document.body.appendChild(g)))},d=()=>{if(!e.props.queue)return!1;const L=document.querySelector(".toast--top"),g=document.querySelector(".toast--bottom");return!L||!g?!1:L.childElementCount>0||g.childElementCount>0},b=()=>{c&&clearInterval(c),c=null},a=()=>{n&&n.stop(),l&&clearTimeout(l),b(),t=!1,e.requestUpdate(),setTimeout(()=>{var L,g;(g=(L=e.props).onDismiss)==null||g.call(L),o=!0,e.requestUpdate()},e.props.exitDuration??150)},m=()=>{if(!e.props.inline&&d()){l=setTimeout(m,250);return}t=!0,e.requestUpdate();const L=e.props.duration;L&&(n=new Po(a,L),e.props.showProgress&&(c=setInterval(()=>{r=n?Math.max(0,Math.min(100,n.remaining()/L*100)):0,e.requestUpdate()},50)))},u=L=>{!e.props.pauseOnHover||!n||(L?n.pause():n.resume())},E=()=>{e.props.dismissible&&a()};e.props.inline||h(),e.onCleanup(()=>{n&&n.stop(),l&&clearTimeout(l),b()});const x=()=>{const L=e.props,g=L.duration??0;return s.html`
1765
+ `,dn=new Set(["message","type","position","duration","dismissible","queue","pauseOnHover","onDismiss","class","style","inline","composed","showProgress","progressClass","exitDuration"]);function un(e){switch(e){case"success":return"bg-success";case"error":return"bg-error";case"info":return"bg-info";default:return"bg-warning"}}function Ga(e){switch(e){case"top":case"bottom":return"position-center";case"top-right":case"bottom-right":return"position-end";case"top-left":case"bottom-left":default:return"position-start"}}function Ya(e){switch(e){case"top":case"top-right":case"top-left":return".toast--top";case"bottom":case"bottom-right":case"bottom-left":default:return".toast--bottom"}}function ja(e){return e==="error"?Ua("var(--moz-color-on-accent)"):e==="info"?Wa("var(--moz-color-on-accent)"):e==="success"?Ha("var(--moz-color-on-accent)"):Ka("var(--moz-color-on-accent)")}const Bo=ye({name:"moz-toast",defaults:{type:"warning",position:"bottom",duration:3e3,dismissible:!0,queue:!1,pauseOnHover:!0,inline:!1,composed:!1,showProgress:!1,exitDuration:150},setup(e){let t=!1,o=!1,s=null,l=null,i=null,r=100;const p=()=>{let M=document.querySelector(".toast--top"),f=document.querySelector(".toast--bottom");M&&f||(M||(M=document.createElement("div"),M.className="toast--top moz-toast-body moz-toast-body--top",document.body.appendChild(M)),f||(f=document.createElement("div"),f.className="toast--bottom moz-toast-body moz-toast-body--bottom",document.body.appendChild(f)))},d=()=>{if(!e.props.queue)return!1;const M=document.querySelector(".toast--top"),f=document.querySelector(".toast--bottom");return!M||!f?!1:M.childElementCount>0||f.childElementCount>0},b=()=>{i&&clearInterval(i),i=null},c=()=>{s&&s.stop(),l&&clearTimeout(l),b(),t=!1,e.requestUpdate(),setTimeout(()=>{var M,f;(f=(M=e.props).onDismiss)==null||f.call(M),o=!0,e.requestUpdate()},e.props.exitDuration??150)},m=()=>{if(!e.props.inline&&d()){l=setTimeout(m,250);return}t=!0,e.requestUpdate();const M=e.props.duration;M&&(s=new _o(c,M),e.props.showProgress&&(i=setInterval(()=>{r=s?Math.max(0,Math.min(100,s.remaining()/M*100)):0,e.requestUpdate()},50)))},u=M=>{!e.props.pauseOnHover||!s||(M?s.pause():s.resume())},k=()=>{e.props.dismissible&&c()};e.props.inline||p(),e.onCleanup(()=>{s&&s.stop(),l&&clearTimeout(l),b()});const x=()=>{const M=e.props,f=M.duration??0;return n.html`
1766
1766
  <div
1767
1767
  data-testid="toast-container"
1768
- ${fe(ye(L,Uo))}
1769
- role=${L.type==="error"?"alert":"status"}
1770
- aria-live=${L.type==="error"?"assertive":"polite"}
1768
+ ${ce(ge(M,dn))}
1769
+ role=${M.type==="error"?"alert":"status"}
1770
+ aria-live=${M.type==="error"?"assertive":"polite"}
1771
1771
  aria-atomic="true"
1772
- class=${V("moz-toast","moz-toast-composed",Wo(L.type),L.class)}
1773
- style=${t?s.nothing:"display: none;"}
1772
+ class=${A("moz-toast","moz-toast-composed",un(M.type),M.class)}
1773
+ style=${t?n.nothing:"display: none;"}
1774
1774
  @mouseenter=${()=>u(!0)}
1775
1775
  @mouseleave=${()=>u(!1)}
1776
1776
  >
1777
- ${L.showProgress&&g>0?s.html`<div class="moz-toast-progress" aria-hidden="true">
1778
- <div class=${V("moz-toast-progress-bar",L.progressClass)} style=${`width: ${r}%`}></div>
1779
- </div>`:s.nothing}
1780
- ${e.slots.has("icon")?s.html`<div class="moz-toast-icon">${e.slot("icon")}</div>`:s.nothing}
1777
+ ${M.showProgress&&f>0?n.html`<div class="moz-toast-progress" aria-hidden="true">
1778
+ <div class=${A("moz-toast-progress-bar",M.progressClass)} style=${`width: ${r}%`}></div>
1779
+ </div>`:n.nothing}
1780
+ ${e.slots.has("icon")?n.html`<div class="moz-toast-icon">${e.slot("icon")}</div>`:n.nothing}
1781
1781
  <div class="moz-toast-content">
1782
- ${e.slots.has("heading")?s.html`<div class="moz-toast-heading">${e.slot("heading")}</div>`:s.nothing}
1783
- ${e.slots.has("description")?s.html`<div class="moz-toast-description">${e.slot("description")}</div>`:s.nothing}
1784
- ${e.slots.has("actions")?s.html`<div class="moz-toast-actions">${e.slot("actions")}</div>`:s.nothing}
1782
+ ${e.slots.has("heading")?n.html`<div class="moz-toast-heading">${e.slot("heading")}</div>`:n.nothing}
1783
+ ${e.slots.has("description")?n.html`<div class="moz-toast-description">${e.slot("description")}</div>`:n.nothing}
1784
+ ${e.slots.has("actions")?n.html`<div class="moz-toast-actions">${e.slot("actions")}</div>`:n.nothing}
1785
1785
  </div>
1786
- ${L.dismissible?s.html`<button type="button" class="moz-toast-close" aria-label=${e.locale.Toast.close} @click=${a}>
1787
- ${lr()}
1788
- </button>`:s.nothing}
1786
+ ${M.dismissible?n.html`<button type="button" class="moz-toast-close" aria-label=${e.locale.Toast.close} @click=${c}>
1787
+ ${Za()}
1788
+ </button>`:n.nothing}
1789
1789
  </div>
1790
- `},$=()=>{const L=e.props;return s.html`
1790
+ `},S=()=>{const M=e.props;return n.html`
1791
1791
  <div
1792
1792
  data-testid="toast-container"
1793
- ${fe(ye(L,Uo))}
1794
- role=${L.type==="error"?"alert":"status"}
1795
- aria-live=${L.type==="error"?"assertive":"polite"}
1793
+ ${ce(ge(M,dn))}
1794
+ role=${M.type==="error"?"alert":"status"}
1795
+ aria-live=${M.type==="error"?"assertive":"polite"}
1796
1796
  aria-atomic="true"
1797
- class=${V("moz-toast",Wo(L.type),ir(L.position),L.class)}
1798
- style=${t?s.nothing:"display: none;"}
1797
+ class=${A("moz-toast",un(M.type),Ga(M.position),M.class)}
1798
+ style=${t?n.nothing:"display: none;"}
1799
1799
  @mouseenter=${()=>u(!0)}
1800
1800
  @mouseleave=${()=>u(!1)}
1801
- @click=${E}
1801
+ @click=${k}
1802
1802
  >
1803
- ${L.showProgress&&(L.duration??0)>0?s.html`<div class="moz-toast-progress" aria-hidden="true">
1804
- <div class=${V("moz-toast-progress-bar",L.progressClass)} style=${`width: ${r}%`}></div>
1805
- </div>`:s.nothing}
1806
- ${ar(L.type)}
1807
- <span class="toast-message">${L.message}</span>
1803
+ ${M.showProgress&&(M.duration??0)>0?n.html`<div class="moz-toast-progress" aria-hidden="true">
1804
+ <div class=${A("moz-toast-progress-bar",M.progressClass)} style=${`width: ${r}%`}></div>
1805
+ </div>`:n.nothing}
1806
+ ${ja(M.type)}
1807
+ <span class="toast-message">${M.message}</span>
1808
1808
  </div>
1809
- `},P=()=>o?s.nothing:e.props.composed?x():$();return{onMounted(){m()},getPortalContainer:()=>e.props.inline?null:document.querySelector(rr(e.props.position)),renderPortal(){return e.props.inline?s.nothing:P()},render(){return e.props.inline?P():s.nothing}}}}),cr=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)},dr=(e={})=>{const t=o=>{let n;typeof o=="string"&&(n=o);const l=document.createElement("div");l.style.display="contents";const c={message:n||o.message||"",onDismiss:()=>{cr(l)}},r=Object.assign({},c,e,typeof o=="string"?{}:o);document.body.appendChild(l),Mo(l,r,(()=>{}))};return{open:t,success(o,n={}){return t({message:o,type:"success",...n})},error(o,n={}){return t({message:o,type:"error",...n})},info(o,n={}){return t({message:o,type:"info",...n})},warning(o,n={}){return t({message:o,type:"warning",...n})}}},ur={name:"MozToast",core:Mo,booleanProps:["composed","dismissible","inline","pauseOnHover","queue","showProgress"],props:["message","type","position","duration","dismissible","queue","pauseOnHover","onDismiss","inline","composed","showProgress","progressClass","exitDuration"],emits:[],slots:["icon","heading","description","actions"],expose:!1,syncUpdate:!0},pr={name:"MozTooltip",core:So,booleanProps:["arrow","open"],props:["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","appearance","sideAnchor","tooltipId"],emits:["placed"],slots:["content"],expose:!0},hr=new Set(["open","anchor","side","align","sideOffset","collisionPadding","matchTriggerWidth","trapFocus","popoverId","class","style"]),mr='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Ko=typeof requestAnimationFrame=="function"?e=>{requestAnimationFrame(e)}:e=>{setTimeout(e,0)},Ws=$e({name:"moz-popover",defaults:{open:!1,side:"bottom",align:"start",sideOffset:4,collisionPadding:8,trapFocus:!0,matchTriggerWidth:!1},setup(e){const t=Y.createRef();let o=null,n=null,l=!1,c=!1,r=null,h=null;const d=()=>!!e.props.open&&!!e.props.anchor,b=()=>{const i=t.value;return i?Array.from(i.querySelectorAll(mr)).filter(p=>p.getAttribute("aria-hidden")!=="true"):[]},a=()=>{const i=e.props.anchor,p=t.value;if(!i||!p||!e.props.open)return;const y=ys(i.getBoundingClientRect(),{width:p.offsetWidth,height:p.offsetHeight},{width:window.innerWidth,height:window.innerHeight},{side:e.props.side??"bottom",align:e.props.align??"start",sideOffset:e.props.sideOffset??4,collisionPadding:e.props.collisionPadding??8});o!==null&&l&&o.side===y.side&&o.x===y.x&&o.y===y.y&&o.availableHeight===y.availableHeight||(o=y,l=!0,e.requestUpdate(),n!==y.side&&(n=y.side,e.emit("placed",y.side)))},m=(i,p)=>new CustomEvent(i,{cancelable:!0,detail:p}),u=i=>{e.emit("requestClose",i)},E=i=>{e.emit("escapeKeyDown",i),i.defaultPrevented||u("escape")},x=i=>{if(!d()||!(r!=null&&r.isTopmost()))return;const p=t.value,y=i.target;if(!p||!y||p.contains(y))return;const F=m("moz.interactOutside",{originalEvent:i});e.emit("interactOutside",F),F.defaultPrevented||u("interactOutside")},$=i=>{if(i.key!=="Tab"||!e.props.trapFocus)return;const p=b();if(p.length===0){i.preventDefault();return}const y=p[0],F=p[p.length-1],I=document.activeElement;i.shiftKey&&(I===y||I===t.value)?(i.preventDefault(),F.focus()):!i.shiftKey&&I===F&&(i.preventDefault(),y.focus())},P=()=>{h=document.activeElement??null,r=mo(E),document.addEventListener("pointerdown",x,!0),Ko(()=>{var p;if(!d())return;const i=m("moz.openAutoFocus");e.emit("openAutoFocus",i),!i.defaultPrevented&&((p=b()[0]??t.value)==null||p.focus())})},L=()=>{var y;r==null||r.release(),r=null,document.removeEventListener("pointerdown",x,!0),o=null,n=null,l=!1;const i=m("moz.closeAutoFocus");e.emit("closeAutoFocus",i);const p=h??e.props.anchor;h=null,i.defaultPrevented||(y=p==null?void 0:p.focus)==null||y.call(p)},g=()=>{d()&&a()};return typeof window<"u"&&(window.addEventListener("scroll",g,{capture:!0,passive:!0}),window.addEventListener("resize",g,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",g,!0),window.removeEventListener("resize",g),r==null||r.release(),r=null,document.removeEventListener("pointerdown",x,!0)})),{render(){return s.nothing},renderPortal(){var K;const i=e.props,p=d();if(p!==c&&(c=p,p?P():L()),!p)return s.nothing;Ko(a);const y=(o==null?void 0:o.side)??i.side??"bottom",F=ye(i,hr),I=((K=i.anchor)==null?void 0:K.offsetWidth)??0;return s.html`
1809
+ `},L=()=>o?n.nothing:e.props.composed?x():S();return{onMounted(){m()},getPortalContainer:()=>e.props.inline?null:document.querySelector(Ya(e.props.position)),renderPortal(){return e.props.inline?n.nothing:L()},render(){return e.props.inline?L():n.nothing}}}}),Xa=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)},Qa=(e={})=>{const t=o=>{let s;typeof o=="string"&&(s=o);const l=document.createElement("div");l.style.display="contents";const i={message:s||o.message||"",onDismiss:()=>{Xa(l)}},r=Object.assign({},i,e,typeof o=="string"?{}:o);document.body.appendChild(l),Bo(l,r,(()=>{}))};return{open:t,success(o,s={}){return t({message:o,type:"success",...s})},error(o,s={}){return t({message:o,type:"error",...s})},info(o,s={}){return t({message:o,type:"info",...s})},warning(o,s={}){return t({message:o,type:"warning",...s})}}},Ja={name:"MozToast",core:Bo,booleanProps:["composed","dismissible","inline","pauseOnHover","queue","showProgress"],props:["message","type","position","duration","dismissible","queue","pauseOnHover","onDismiss","inline","composed","showProgress","progressClass","exitDuration"],emits:[],slots:["icon","heading","description","actions"],expose:!1,syncUpdate:!0},er={name:"MozTooltip",core:no,booleanProps:["arrow","open"],props:["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","appearance","sideAnchor","tooltipId"],emits:["placed"],slots:["content"],expose:!0},tr=new Set(["open","anchor","side","align","sideOffset","collisionPadding","matchTriggerWidth","trapFocus","popoverId","class","style"]),or='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',pn=typeof requestAnimationFrame=="function"?e=>{requestAnimationFrame(e)}:e=>{setTimeout(e,0)},ms=ye({name:"moz-popover",defaults:{open:!1,side:"bottom",align:"start",sideOffset:4,collisionPadding:8,trapFocus:!0,matchTriggerWidth:!1},setup(e){const t=Y.createRef();let o=null,s=null,l=!1,i=!1,r=null,p=null;const d=()=>!!e.props.open&&!!e.props.anchor,b=()=>{const a=t.value;return a?Array.from(a.querySelectorAll(or)).filter(h=>h.getAttribute("aria-hidden")!=="true"):[]},c=()=>{const a=e.props.anchor,h=t.value;if(!a||!h||!e.props.open)return;const $=Hn(a.getBoundingClientRect(),{width:h.offsetWidth,height:h.offsetHeight},{width:window.innerWidth,height:window.innerHeight},{side:e.props.side??"bottom",align:e.props.align??"start",sideOffset:e.props.sideOffset??4,collisionPadding:e.props.collisionPadding??8});o!==null&&l&&o.side===$.side&&o.x===$.x&&o.y===$.y&&o.availableHeight===$.availableHeight||(o=$,l=!0,e.requestUpdate(),s!==$.side&&(s=$.side,e.emit("placed",$.side)))},m=(a,h)=>new CustomEvent(a,{cancelable:!0,detail:h}),u=a=>{e.emit("requestClose",a)},k=a=>{e.emit("escapeKeyDown",a),a.defaultPrevented||u("escape")},x=a=>{if(!d()||!(r!=null&&r.isTopmost()))return;const h=t.value,$=a.target;if(!h||!$||h.contains($))return;const _=m("moz.interactOutside",{originalEvent:a});e.emit("interactOutside",_),_.defaultPrevented||u("interactOutside")},S=a=>{if(a.key!=="Tab"||!e.props.trapFocus)return;const h=b();if(h.length===0){a.preventDefault();return}const $=h[0],_=h[h.length-1],O=document.activeElement;a.shiftKey&&(O===$||O===t.value)?(a.preventDefault(),_.focus()):!a.shiftKey&&O===_&&(a.preventDefault(),$.focus())},L=()=>{p=document.activeElement??null,r=Eo(k),document.addEventListener("pointerdown",x,!0),pn(()=>{var h;if(!d())return;const a=m("moz.openAutoFocus");e.emit("openAutoFocus",a),!a.defaultPrevented&&((h=b()[0]??t.value)==null||h.focus())})},M=()=>{var $;r==null||r.release(),r=null,document.removeEventListener("pointerdown",x,!0),o=null,s=null,l=!1;const a=m("moz.closeAutoFocus");e.emit("closeAutoFocus",a);const h=p??e.props.anchor;p=null,a.defaultPrevented||($=h==null?void 0:h.focus)==null||$.call(h)},f=()=>{d()&&c()};return typeof window<"u"&&(window.addEventListener("scroll",f,{capture:!0,passive:!0}),window.addEventListener("resize",f,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",f,!0),window.removeEventListener("resize",f),r==null||r.release(),r=null,document.removeEventListener("pointerdown",x,!0)})),{render(){return n.nothing},renderPortal(){var U;const a=e.props,h=d();if(h!==i&&(i=h,h?L():M()),!h)return n.nothing;pn(c);const $=(o==null?void 0:o.side)??a.side??"bottom",_=ge(a,tr),O=((U=a.anchor)==null?void 0:U.offsetWidth)??0;return n.html`
1810
1810
  <div
1811
1811
  ${Y.ref(t)}
1812
- class=${V("moz-popover",i.class)}
1812
+ class=${A("moz-popover",a.class)}
1813
1813
  role="dialog"
1814
- id=${i.popoverId??s.nothing}
1814
+ id=${a.popoverId??n.nothing}
1815
1815
  tabindex="-1"
1816
- data-side=${y}
1817
- data-align=${i.align??"start"}
1818
- @keydown=${$}
1819
- style=${te.styleMap({...Ce(i.style),position:"fixed",left:`${(o==null?void 0:o.x)??0}px`,top:`${(o==null?void 0:o.y)??0}px`,opacity:l?"1":"0",pointerEvents:"auto","--moz-popover-trigger-width":`${I}px`,"--moz-popover-available-height":`${(o==null?void 0:o.availableHeight)??0}px`,...i.matchTriggerWidth?{width:`${I}px`}:{}})}
1820
- ${fe(F)}
1816
+ data-side=${$}
1817
+ data-align=${a.align??"start"}
1818
+ @keydown=${S}
1819
+ style=${j.styleMap({...he(a.style),position:"fixed",left:`${(o==null?void 0:o.x)??0}px`,top:`${(o==null?void 0:o.y)??0}px`,opacity:l?"1":"0",pointerEvents:"auto","--moz-popover-trigger-width":`${O}px`,"--moz-popover-available-height":`${(o==null?void 0:o.availableHeight)??0}px`,...a.matchTriggerWidth?{width:`${O}px`}:{}})}
1820
+ ${ce(_)}
1821
1821
  >
1822
1822
  ${e.slot("content")}
1823
1823
  </div>
1824
- `},api:{reposition:()=>a(),panel:()=>t.value??null}}}}),fr={name:"MozPopover",core:Ws,booleanProps:["matchTriggerWidth","open","trapFocus"],props:["open","anchor","side","align","sideOffset","collisionPadding","matchTriggerWidth","trapFocus","popoverId"],emits:["placed","escapeKeyDown","interactOutside","openAutoFocus","closeAutoFocus","requestClose"],slots:["content"],expose:!0,syncUpdate:!0},gr=new Set(["open","contentId","disabled","forceMount","class","style"]),Ks="--moz-collapsible-content-height",Zs=$e({name:"moz-collapsible",defaults:{open:!1,disabled:!1,forceMount:!1},setup(e){let t=null,o=null,n=-1;const l=()=>{const h=t;if(!h)return;const d=h.scrollHeight;h.style.setProperty(Ks,`${d}px`),d!==n&&(n=d,e.emit("heightChange",d))},c=()=>{o==null||o.disconnect(),o=null},r=h=>{if(t=h??null,!t){c(),n=-1;return}l(),!(typeof ResizeObserver>"u")&&(c(),o=new ResizeObserver(()=>l()),o.observe(t))};return e.onCleanup(c),{render(){const h=e.props,d=!!h.open;if(!d&&!h.forceMount)return s.nothing;const b=ye(h,gr);return s.html`<div
1824
+ `},api:{reposition:()=>c(),panel:()=>t.value??null}}}}),nr={name:"MozPopover",core:ms,booleanProps:["matchTriggerWidth","open","trapFocus"],props:["open","anchor","side","align","sideOffset","collisionPadding","matchTriggerWidth","trapFocus","popoverId"],emits:["placed","escapeKeyDown","interactOutside","openAutoFocus","closeAutoFocus","requestClose"],slots:["content"],expose:!0,syncUpdate:!0},sr=new Set(["open","contentId","disabled","forceMount","class","style"]),fs="--moz-collapsible-content-height",gs=ye({name:"moz-collapsible",defaults:{open:!1,disabled:!1,forceMount:!1},setup(e){let t=null,o=null,s=-1;const l=()=>{const p=t;if(!p)return;const d=p.scrollHeight;p.style.setProperty(fs,`${d}px`),d!==s&&(s=d,e.emit("heightChange",d))},i=()=>{o==null||o.disconnect(),o=null},r=p=>{if(t=p??null,!t){i(),s=-1;return}l(),!(typeof ResizeObserver>"u")&&(i(),o=new ResizeObserver(()=>l()),o.observe(t))};return e.onCleanup(i),{render(){const p=e.props,d=!!p.open;if(!d&&!p.forceMount)return n.nothing;const b=ge(p,sr);return n.html`<div
1825
1825
  ${Y.ref(r)}
1826
- class=${V("moz-collapsible-content",h.class)}
1827
- id=${Ee.ifDefined(h.contentId)}
1826
+ class=${A("moz-collapsible-content",p.class)}
1827
+ id=${$e.ifDefined(p.contentId)}
1828
1828
  data-state=${d?"open":"closed"}
1829
- data-disabled=${h.disabled?"":s.nothing}
1829
+ data-disabled=${p.disabled?"":n.nothing}
1830
1830
  ?hidden=${!d}
1831
- style=${te.styleMap(Ce(h.style))}
1832
- ${fe(b)}
1831
+ style=${j.styleMap(he(p.style))}
1832
+ ${ce(b)}
1833
1833
  >
1834
1834
  ${e.slot("content")}
1835
- </div>`}}}}),vr={name:"MozCollapsible",core:Zs,booleanProps:["disabled","forceMount","open"],props:["open","contentId","disabled","forceMount"],emits:["heightChange"],slots:["content"],expose:!1,syncUpdate:!0},wr=new Set(["src","alt","delayMs","imageClass","fallbackClass","class","style"]),Gs=$e({name:"moz-avatar",setup(e){let t="idle",o,n=!0,l,c;const r=a=>{t!==a&&(t=a,e.emit("loadingStatusChange",a),e.requestUpdate())},h=()=>{c&&(c.onload=null,c.onerror=null,c=void 0)},d=a=>{if(l!==void 0&&clearTimeout(l),l=void 0,!a||a<=0){n=!0;return}n=!1,l=setTimeout(()=>{n=!0,l=void 0,e.requestUpdate()},a)},b=()=>{const a=e.props.src;if(a===o)return;if(o=a,h(),d(e.props.delayMs),!a){r("idle");return}r("loading");const m=new Image;c=m,m.onload=()=>{c!==m||o!==a||r("loaded")},m.onerror=()=>{c!==m||o!==a||r("error")},m.src=a};return e.onCleanup(()=>{h(),l!==void 0&&clearTimeout(l)}),{render(){b();const a=e.props,m=ye(a,wr),u=t==="loaded",E=!u&&n;return s.html`<span
1836
- class=${V("moz-avatar",a.class)}
1835
+ </div>`}}}}),lr={name:"MozCollapsible",core:gs,booleanProps:["disabled","forceMount","open"],props:["open","contentId","disabled","forceMount"],emits:["heightChange"],slots:["content"],expose:!1,syncUpdate:!0},ir=new Set(["src","alt","delayMs","imageClass","fallbackClass","class","style"]),vs=ye({name:"moz-avatar",setup(e){let t="idle",o,s=!0,l,i;const r=c=>{t!==c&&(t=c,e.emit("loadingStatusChange",c),e.requestUpdate())},p=()=>{i&&(i.onload=null,i.onerror=null,i=void 0)},d=c=>{if(l!==void 0&&clearTimeout(l),l=void 0,!c||c<=0){s=!0;return}s=!1,l=setTimeout(()=>{s=!0,l=void 0,e.requestUpdate()},c)},b=()=>{const c=e.props.src;if(c===o)return;if(o=c,p(),d(e.props.delayMs),!c){r("idle");return}r("loading");const m=new Image;i=m,m.onload=()=>{i!==m||o!==c||r("loaded")},m.onerror=()=>{i!==m||o!==c||r("error")},m.src=c};return e.onCleanup(()=>{p(),l!==void 0&&clearTimeout(l)}),{render(){b();const c=e.props,m=ge(c,ir),u=t==="loaded",k=!u&&s;return n.html`<span
1836
+ class=${A("moz-avatar",c.class)}
1837
1837
  data-status=${t}
1838
- style=${te.styleMap(Ce(a.style))}
1839
- ${fe(m)}
1838
+ style=${j.styleMap(he(c.style))}
1839
+ ${ce(m)}
1840
1840
  >
1841
- ${u?s.html`<img
1842
- class=${V("moz-avatar-image",a.imageClass)}
1843
- src=${Ee.ifDefined(a.src)}
1844
- alt=${Ee.ifDefined(a.alt)}
1845
- />`:s.nothing}
1846
- ${E?s.html`<span class=${V("moz-avatar-fallback",a.fallbackClass)}>${e.slot("fallback")}</span>`:s.nothing}
1847
- </span>`},api:{get status(){return t}}}}}),Cr={name:"MozAvatar",core:Gs,props:["src","alt","delayMs","imageClass","fallbackClass"],emits:["loadingStatusChange"],slots:["fallback"],expose:!0},br=new Set(["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass","class","style"]),yr=20,Ys=$e({name:"moz-scroll-area",defaults:{orientation:"vertical",scrollbarVisibility:"always"},setup(e){let t=null,o=null,n=null,l=null,c=null,r=!1,h=!1,d=null,b=null,a=null,m=null,u=null,E=!1,x=!1,$=null,P=null;const L=z=>!!z&&"nodeType"in z&&(!!(a!=null&&a.contains(z))||!!(m!=null&&m.contains(z))),g=()=>L((a==null?void 0:a.ownerDocument.activeElement)??null),i=()=>{const z=g();z!==x&&(x=z,e.requestUpdate())},p=z=>{m=z??null},y=z=>{z.pointerType!=="touch"&&(E=!0,e.requestUpdate())},F=z=>{z.pointerType!=="touch"&&(E=L(z.relatedTarget),e.requestUpdate())},I=()=>{i()},K=()=>{e.requestUpdate()},oe=()=>{$==null||$(),u==null||u.disconnect(),u=null,a==null||a.removeEventListener("pointerenter",y),a==null||a.removeEventListener("pointerleave",F),a==null||a.removeEventListener("focusin",I),a==null||a.removeEventListener("focusout",K),a=null,E=x=!1},re=()=>{(P==null?void 0:P.getAttribute("tabindex"))==="0"&&P.removeAttribute("tabindex"),P=null},j=()=>{var Z;const z=e.props.interactionRoot??t;z!==a&&(oe(),a=z,z&&(z.addEventListener("pointerenter",y),z.addEventListener("pointerleave",F),z.addEventListener("focusin",I),z.addEventListener("focusout",K)));const W=(Z=z==null?void 0:z.ownerDocument.defaultView)==null?void 0:Z.MutationObserver;e.props.scrollbarVisibility==="hover"&&z&&!u&&W?(u=new W(i),u.observe(z,{childList:!0,subtree:!0})):e.props.scrollbarVisibility!=="hover"&&(u==null||u.disconnect(),u=null),x=g(),e.props.scrollbarVisibility!=="hover"?re():t&&!t.hasAttribute("tabindex")&&(t.tabIndex=0,P=t)},k=z=>{const W=e.props.orientation??"vertical";return W==="both"||W===z},R=z=>{const W=t;if(!W||!k(z))return!1;const Z=z==="vertical",G=Z?W.scrollHeight:W.scrollWidth,Q=Z?W.clientHeight:W.clientWidth;if(G<=Q+1||Q<=0)return!1;const T=Z?l:c,f=Z?o:n;if(!T||!f)return!0;const D=Z?T.clientHeight:T.clientWidth;if(D<=0)return!0;const A=Q/G,H=Math.max(D*A,yr),pe=D-H,ke=Z?W.scrollTop:W.scrollLeft,Ae=G-Q,Ue=Ae>0?ke/Ae*pe:0;return Z?(f.style.height=`${H}px`,f.style.transform=`translateY(${Ue}px)`):(f.style.width=`${H}px`,f.style.transform=`translateX(${Ue}px)`),!0},X=()=>{const z=R("vertical"),W=R("horizontal");z===r&&W===h||(r=z,h=W,e.requestUpdate())},se=()=>{const z=t;z&&(X(),e.emit("scroll",{scrollTop:z.scrollTop,scrollLeft:z.scrollLeft}))},N=()=>{oe(),re(),t&&t.removeEventListener("scroll",se),d==null||d.disconnect(),d=null,b==null||b.disconnect(),b=null,t=null},ne=()=>{const z=e.props.viewport??null;if(z!==t&&(N(),t=z,!!t)){if(t.addEventListener("scroll",se,{passive:!0}),typeof ResizeObserver<"u"){d=new ResizeObserver(()=>X()),d.observe(t);const W=t.firstElementChild;W&&(b=new ResizeObserver(()=>X()),b.observe(W))}X()}},_=(z,W)=>{var Be;const Z=t,G=Z==null?void 0:Z.ownerDocument.defaultView;if(!Z||!G||$||W.button!==0)return;const Q=z==="vertical",T=Q?l:c,f=Q?o:n;if(!T||!f)return;W.preventDefault();const D=Q?W.clientY:W.clientX,A=Q?Z.scrollTop:Z.scrollLeft,H=Q?T.clientHeight:T.clientWidth,pe=Q?f.offsetHeight:f.offsetWidth,ke=Q?Z.scrollHeight:Z.scrollWidth,Ae=Q?Z.clientHeight:Z.clientWidth,Ue=H-pe,We=ke-Ae;if(Ue<=0||We<=0)return;const Qe=W.pointerId,Je=xe=>{E=xe.pointerType!=="touch"&&[a,l,c].some(Ge=>{if(!Ge||Ge.hidden)return!1;const Fe=Ge.getBoundingClientRect();return xe.clientX>=Fe.left&&xe.clientX<Fe.right&&xe.clientY>=Fe.top&&xe.clientY<Fe.bottom})},nt=xe=>{if(xe.pointerId!==Qe)return;Je(xe);const Ge=(Q?xe.clientY:xe.clientX)-D,Fe=A+Ge/Ue*We;Q?Z.scrollTop=Fe:Z.scrollLeft=Fe},qe=xe=>{xe.pointerId===Qe&&(Je(xe),xe.type!=="pointerup"&&(E=!1),$==null||$(),e.requestUpdate())};$=()=>{var xe;$=null,G.removeEventListener("pointermove",nt),G.removeEventListener("pointerup",qe),G.removeEventListener("pointercancel",qe),f.removeEventListener("lostpointercapture",qe);try{(xe=f.releasePointerCapture)==null||xe.call(f,Qe)}catch{}},G.addEventListener("pointermove",nt),G.addEventListener("pointerup",qe),G.addEventListener("pointercancel",qe),f.addEventListener("lostpointercapture",qe);try{(Be=f.setPointerCapture)==null||Be.call(f,Qe)}catch{}e.requestUpdate()};e.onCleanup(N);const J=(z,W)=>{const Z=z==="vertical",G=T=>{Z?l=T??null:c=T??null},Q=T=>{Z?o=T??null:n=T??null,T&&X()};return s.html`<div
1848
- class=${V("moz-scroll-area-scrollbar",e.props.scrollbarClass)}
1849
- data-orientation=${z}
1841
+ ${u?n.html`<img
1842
+ class=${A("moz-avatar-image",c.imageClass)}
1843
+ src=${$e.ifDefined(c.src)}
1844
+ alt=${$e.ifDefined(c.alt)}
1845
+ />`:n.nothing}
1846
+ ${k?n.html`<span class=${A("moz-avatar-fallback",c.fallbackClass)}>${e.slot("fallback")}</span>`:n.nothing}
1847
+ </span>`},api:{get status(){return t}}}}}),ar={name:"MozAvatar",core:vs,props:["src","alt","delayMs","imageClass","fallbackClass"],emits:["loadingStatusChange"],slots:["fallback"],expose:!0},rr=new Set(["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass","class","style"]),cr=20,ws=ye({name:"moz-scroll-area",defaults:{orientation:"vertical",scrollbarVisibility:"always"},setup(e){let t=null,o=null,s=null,l=null,i=null,r=!1,p=!1,d=null,b=null,c=null,m=null,u=null,k=!1,x=!1,S=null,L=null;const M=T=>!!T&&"nodeType"in T&&(!!(c!=null&&c.contains(T))||!!(m!=null&&m.contains(T))),f=()=>M((c==null?void 0:c.ownerDocument.activeElement)??null),a=()=>{const T=f();T!==x&&(x=T,e.requestUpdate())},h=T=>{m=T??null},$=T=>{T.pointerType!=="touch"&&(k=!0,e.requestUpdate())},_=T=>{T.pointerType!=="touch"&&(k=M(T.relatedTarget),e.requestUpdate())},O=()=>{a()},U=()=>{e.requestUpdate()},Q=()=>{S==null||S(),u==null||u.disconnect(),u=null,c==null||c.removeEventListener("pointerenter",$),c==null||c.removeEventListener("pointerleave",_),c==null||c.removeEventListener("focusin",O),c==null||c.removeEventListener("focusout",U),c=null,k=x=!1},re=()=>{(L==null?void 0:L.getAttribute("tabindex"))==="0"&&L.removeAttribute("tabindex"),L=null},X=()=>{var K;const T=e.props.interactionRoot??t;T!==c&&(Q(),c=T,T&&(T.addEventListener("pointerenter",$),T.addEventListener("pointerleave",_),T.addEventListener("focusin",O),T.addEventListener("focusout",U)));const W=(K=T==null?void 0:T.ownerDocument.defaultView)==null?void 0:K.MutationObserver;e.props.scrollbarVisibility==="hover"&&T&&!u&&W?(u=new W(a),u.observe(T,{childList:!0,subtree:!0})):e.props.scrollbarVisibility!=="hover"&&(u==null||u.disconnect(),u=null),x=f(),e.props.scrollbarVisibility!=="hover"?re():t&&!t.hasAttribute("tabindex")&&(t.tabIndex=0,L=t)},E=T=>{const W=e.props.orientation??"vertical";return W==="both"||W===T},V=T=>{const W=t;if(!W||!E(T))return!1;const K=T==="vertical",ee=K?W.scrollHeight:W.scrollWidth,te=K?W.clientHeight:W.clientWidth;if(ee<=te+1||te<=0)return!1;const P=K?l:i,g=K?o:s;if(!P||!g)return!0;const R=K?P.clientHeight:P.clientWidth;if(R<=0)return!0;const I=te/ee,H=Math.max(R*I,cr),pe=R-H,ke=K?W.scrollTop:W.scrollLeft,Me=ee-te,He=Me>0?ke/Me*pe:0;return K?(g.style.height=`${H}px`,g.style.transform=`translateY(${He}px)`):(g.style.width=`${H}px`,g.style.transform=`translateX(${He}px)`),!0},J=()=>{const T=V("vertical"),W=V("horizontal");T===r&&W===p||(r=T,p=W,e.requestUpdate())},le=()=>{const T=t;T&&(J(),e.emit("scroll",{scrollTop:T.scrollTop,scrollLeft:T.scrollLeft}))},N=()=>{Q(),re(),t&&t.removeEventListener("scroll",le),d==null||d.disconnect(),d=null,b==null||b.disconnect(),b=null,t=null},ie=()=>{const T=e.props.viewport??null;if(T!==t&&(N(),t=T,!!t)){if(t.addEventListener("scroll",le,{passive:!0}),typeof ResizeObserver<"u"){d=new ResizeObserver(()=>J()),d.observe(t);const W=t.firstElementChild;W&&(b=new ResizeObserver(()=>J()),b.observe(W))}J()}},F=(T,W)=>{var Ue;const K=t,ee=K==null?void 0:K.ownerDocument.defaultView;if(!K||!ee||S||W.button!==0)return;const te=T==="vertical",P=te?l:i,g=te?o:s;if(!P||!g)return;W.preventDefault();const R=te?W.clientY:W.clientX,I=te?K.scrollTop:K.scrollLeft,H=te?P.clientHeight:P.clientWidth,pe=te?g.offsetHeight:g.offsetWidth,ke=te?K.scrollHeight:K.scrollWidth,Me=te?K.clientHeight:K.clientWidth,He=H-pe,Fe=ke-Me;if(He<=0||Fe<=0)return;const Ge=W.pointerId,et=ze=>{k=ze.pointerType!=="touch"&&[c,l,i].some(Ze=>{if(!Ze||Ze.hidden)return!1;const Be=Ze.getBoundingClientRect();return ze.clientX>=Be.left&&ze.clientX<Be.right&&ze.clientY>=Be.top&&ze.clientY<Be.bottom})},lt=ze=>{if(ze.pointerId!==Ge)return;et(ze);const Ze=(te?ze.clientY:ze.clientX)-R,Be=I+Ze/He*Fe;te?K.scrollTop=Be:K.scrollLeft=Be},Ke=ze=>{ze.pointerId===Ge&&(et(ze),ze.type!=="pointerup"&&(k=!1),S==null||S(),e.requestUpdate())};S=()=>{var ze;S=null,ee.removeEventListener("pointermove",lt),ee.removeEventListener("pointerup",Ke),ee.removeEventListener("pointercancel",Ke),g.removeEventListener("lostpointercapture",Ke);try{(ze=g.releasePointerCapture)==null||ze.call(g,Ge)}catch{}},ee.addEventListener("pointermove",lt),ee.addEventListener("pointerup",Ke),ee.addEventListener("pointercancel",Ke),g.addEventListener("lostpointercapture",Ke);try{(Ue=g.setPointerCapture)==null||Ue.call(g,Ge)}catch{}e.requestUpdate()};e.onCleanup(N);const oe=(T,W)=>{const K=T==="vertical",ee=P=>{K?l=P??null:i=P??null},te=P=>{K?o=P??null:s=P??null,P&&J()};return n.html`<div
1848
+ class=${A("moz-scroll-area-scrollbar",e.props.scrollbarClass)}
1849
+ data-orientation=${T}
1850
1850
  ?hidden=${!W}
1851
- ${Y.ref(G)}
1851
+ ${Y.ref(ee)}
1852
1852
  >
1853
1853
  <div
1854
- class=${V("moz-scroll-area-thumb",e.props.thumbClass)}
1855
- @pointerdown=${T=>_(z,T)}
1856
- ${Y.ref(Q)}
1854
+ class=${A("moz-scroll-area-thumb",e.props.thumbClass)}
1855
+ @pointerdown=${P=>F(T,P)}
1856
+ ${Y.ref(te)}
1857
1857
  ></div>
1858
- </div>`};return{render(){ne(),j();const z=e.props,W=ye(z,br),Z=k("vertical")&&k("horizontal");return s.html`<div
1859
- class=${V("moz-scroll-area-bars",z.class)}
1860
- data-orientation=${z.orientation??"vertical"}
1861
- data-state=${z.scrollbarVisibility!=="hover"||E||x||$?"visible":"hidden"}
1862
- style=${te.styleMap(Ce(z.style))}
1863
- @pointerenter=${y}
1864
- @pointerleave=${F}
1865
- @focusin=${I}
1866
- @focusout=${K}
1867
- ${Y.ref(p)}
1868
- ${fe(W)}
1858
+ </div>`};return{render(){ie(),X();const T=e.props,W=ge(T,rr),K=E("vertical")&&E("horizontal");return n.html`<div
1859
+ class=${A("moz-scroll-area-bars",T.class)}
1860
+ data-orientation=${T.orientation??"vertical"}
1861
+ data-state=${T.scrollbarVisibility!=="hover"||k||x||S?"visible":"hidden"}
1862
+ style=${j.styleMap(he(T.style))}
1863
+ @pointerenter=${$}
1864
+ @pointerleave=${_}
1865
+ @focusin=${O}
1866
+ @focusout=${U}
1867
+ ${Y.ref(h)}
1868
+ ${ce(W)}
1869
1869
  >
1870
- ${k("vertical")?J("vertical",r):s.nothing}
1871
- ${k("horizontal")?J("horizontal",h):s.nothing}
1872
- ${Z&&r&&h?s.html`<div class="moz-scroll-area-corner"></div>`:s.nothing}
1873
- </div>`}}}}),$r={name:"MozScrollAreaBars",core:Ys,props:["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass"],emits:["scroll"],expose:!1,syncUpdate:!0},js=["accent","neutral","info","success","warning","danger"],Xs=["soft","outline","solid"],Qs=["sm","md","lg"],Sr=new Set(["tone","appearance","size","dot","text","class","style"]);function to(e,t,o){return typeof t=="string"&&e.includes(t)?t:o}const Js=$e({name:"moz-badge",defaults:{tone:"neutral",appearance:"soft",size:"md",dot:!1},setup(e){return{render(){const t=e.props,o=ye(t,Sr),n=to(js,t.tone,"neutral"),l=to(Xs,t.appearance,"soft"),c=to(Qs,t.size,"md"),r=e.slots.has("default")?e.slot("default"):t.text??s.nothing;return s.html`<span
1874
- class=${V("moz-badge",`size-${c}`,t.class)}
1875
- data-tone=${n}
1870
+ ${E("vertical")?oe("vertical",r):n.nothing}
1871
+ ${E("horizontal")?oe("horizontal",p):n.nothing}
1872
+ ${K&&r&&p?n.html`<div class="moz-scroll-area-corner"></div>`:n.nothing}
1873
+ </div>`}}}}),dr={name:"MozScrollAreaBars",core:ws,props:["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass"],emits:["scroll"],expose:!1,syncUpdate:!0},ys=["accent","neutral","info","success","warning","danger"],bs=["soft","outline","solid"],Cs=["sm","md","lg"],ur=new Set(["tone","appearance","size","dot","text","class","style"]);function po(e,t,o){return typeof t=="string"&&e.includes(t)?t:o}const $s=ye({name:"moz-badge",defaults:{tone:"neutral",appearance:"soft",size:"md",dot:!1},setup(e){return{render(){const t=e.props,o=ge(t,ur),s=po(ys,t.tone,"neutral"),l=po(bs,t.appearance,"soft"),i=po(Cs,t.size,"md"),r=e.slots.has("default")?e.slot("default"):t.text??n.nothing;return n.html`<span
1874
+ class=${A("moz-badge",`size-${i}`,t.class)}
1875
+ data-tone=${s}
1876
1876
  data-appearance=${l}
1877
- style=${te.styleMap(Ce(t.style))}
1878
- ${fe(o)}
1879
- >${t.dot?s.html`<span class="moz-badge-dot"></span>`:s.nothing}${r}</span
1880
- >`}}}}),kr={name:"MozBadge",core:Js,booleanProps:["dot"],props:["tone","appearance","size","dot","text"],emits:[],slots:["default"],expose:!1,syncUpdate:!0},Er=new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_icon_serchbox_clolse_12x12'%3e%3cg%20id='&%23237;&%23140;&%23168;&%23236;&%23138;&%23164;%203250'%3e%3c/g%3e%3cg%20id='Group%201670'%3e%3cpath%20id='&%23236;&%23132;&%23160;%20117'%20d='M11.5657%203.6277C11.8781%203.31528%2011.8781%202.80875%2011.5657%202.49632C11.2533%202.1839%2010.7467%202.1839%2010.4343%202.49632L11%203.06201L11.5657%203.6277ZM2.49637%2010.4343C2.18395%2010.7467%202.18395%2011.2533%202.49637%2011.5657C2.80879%2011.8781%203.31532%2011.8781%203.62774%2011.5657L3.06206%2011L2.49637%2010.4343ZM11%203.06201L10.4343%202.49632L2.49637%2010.4343L3.06206%2011L3.62774%2011.5657L11.5657%203.6277L11%203.06201Z'%20fill='%23949EB8'/%3e%3cpath%20id='&%23236;&%23132;&%23160;%20118'%20d='M3.56568%202.43431C3.25327%202.12189%202.74673%202.12189%202.43432%202.43431C2.1219%202.74673%202.1219%203.25327%202.43432%203.56569L3%203L3.56568%202.43431ZM10.3723%2011.5037C10.6847%2011.8161%2011.1912%2011.8161%2011.5036%2011.5037C11.816%2011.1913%2011.816%2010.6847%2011.5036%2010.3723L10.9379%2010.938L10.3723%2011.5037ZM3%203L2.43432%203.56569L10.3723%2011.5037L10.9379%2010.938L11.5036%2010.3723L3.56568%202.43431L3%203Z'%20fill='%23949EB8'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,en=["accent","neutral","info","success","warning","danger"],tn=["outline","soft"],on=["sm","md","lg"],Lr=new Set(["tone","appearance","size","selected","disabled","removable","labelInteractive","removeLabel","text","class","style"]);function oo(e,t,o){return typeof t=="string"&&e.includes(t)?t:o}const sn=$e({name:"moz-chip",defaults:{tone:"accent",appearance:"outline",size:"md",selected:!1,disabled:!1,removable:!1,labelInteractive:!0},setup(e){const t=n=>{e.props.disabled||e.emit("click",n)},o=n=>{e.props.disabled||e.emit("remove",n)};return{render(){const n=e.props,l=ye(n,Lr),c=oo(en,n.tone,"accent"),r=oo(tn,n.appearance,"outline"),h=oo(on,n.size,"md"),d=!!n.disabled,b=e.slots.has("icon")?s.html`<span class="moz-chip-icon">${e.slot("icon")}</span>`:s.nothing,a=e.slots.has("default")?e.slot("default"):n.text??s.nothing;if(n.removable){const E=n.labelInteractive!==!1?s.html`<button type="button" class="moz-chip-label" ?disabled=${d} @click=${t}
1881
- >${b}${a}</button
1882
- >`:s.html`<span class="moz-chip-label">${b}${a}</span>`;return s.html`<span
1883
- class=${V("moz-chip","removable",`size-${h}`,{disabled:d},n.class)}
1884
- data-tone=${c}
1877
+ style=${j.styleMap(he(t.style))}
1878
+ ${ce(o)}
1879
+ >${t.dot?n.html`<span class="moz-badge-dot"></span>`:n.nothing}${r}</span
1880
+ >`}}}}),pr={name:"MozBadge",core:$s,booleanProps:["dot"],props:["tone","appearance","size","dot","text"],emits:[],slots:["default"],expose:!1,syncUpdate:!0},hr=new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_icon_serchbox_clolse_12x12'%3e%3cg%20id='&%23237;&%23140;&%23168;&%23236;&%23138;&%23164;%203250'%3e%3c/g%3e%3cg%20id='Group%201670'%3e%3cpath%20id='&%23236;&%23132;&%23160;%20117'%20d='M11.5657%203.6277C11.8781%203.31528%2011.8781%202.80875%2011.5657%202.49632C11.2533%202.1839%2010.7467%202.1839%2010.4343%202.49632L11%203.06201L11.5657%203.6277ZM2.49637%2010.4343C2.18395%2010.7467%202.18395%2011.2533%202.49637%2011.5657C2.80879%2011.8781%203.31532%2011.8781%203.62774%2011.5657L3.06206%2011L2.49637%2010.4343ZM11%203.06201L10.4343%202.49632L2.49637%2010.4343L3.06206%2011L3.62774%2011.5657L11.5657%203.6277L11%203.06201Z'%20fill='%23949EB8'/%3e%3cpath%20id='&%23236;&%23132;&%23160;%20118'%20d='M3.56568%202.43431C3.25327%202.12189%202.74673%202.12189%202.43432%202.43431C2.1219%202.74673%202.1219%203.25327%202.43432%203.56569L3%203L3.56568%202.43431ZM10.3723%2011.5037C10.6847%2011.8161%2011.1912%2011.8161%2011.5036%2011.5037C11.816%2011.1913%2011.816%2010.6847%2011.5036%2010.3723L10.9379%2010.938L10.3723%2011.5037ZM3%203L2.43432%203.56569L10.3723%2011.5037L10.9379%2010.938L11.5036%2010.3723L3.56568%202.43431L3%203Z'%20fill='%23949EB8'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,Ss=["accent","neutral","info","success","warning","danger"],ks=["outline","soft"],Ms=["sm","md","lg"],mr=new Set(["tone","appearance","size","selected","disabled","removable","labelInteractive","removeLabel","text","class","style"]);function ho(e,t,o){return typeof t=="string"&&e.includes(t)?t:o}const Es=ye({name:"moz-chip",defaults:{tone:"accent",appearance:"outline",size:"md",selected:!1,disabled:!1,removable:!1,labelInteractive:!0},setup(e){const t=s=>{e.props.disabled||e.emit("click",s)},o=s=>{e.props.disabled||e.emit("remove",s)};return{render(){const s=e.props,l=ge(s,mr),i=ho(Ss,s.tone,"accent"),r=ho(ks,s.appearance,"outline"),p=ho(Ms,s.size,"md"),d=!!s.disabled,b=e.slots.has("icon")?n.html`<span class="moz-chip-icon">${e.slot("icon")}</span>`:n.nothing,c=e.slots.has("default")?e.slot("default"):s.text??n.nothing;if(s.removable){const k=s.labelInteractive!==!1?n.html`<button type="button" class="moz-chip-label" ?disabled=${d} @click=${t}
1881
+ >${b}${c}</button
1882
+ >`:n.html`<span class="moz-chip-label">${b}${c}</span>`;return n.html`<span
1883
+ class=${A("moz-chip","removable",`size-${p}`,{disabled:d},s.class)}
1884
+ data-tone=${i}
1885
1885
  data-appearance=${r}
1886
- style=${te.styleMap(Ce(n.style))}
1887
- ${fe(l)}
1888
- >${E}<button
1886
+ style=${j.styleMap(he(s.style))}
1887
+ ${ce(l)}
1888
+ >${k}<button
1889
1889
  type="button"
1890
1890
  class="moz-chip-remove"
1891
- aria-label=${n.removeLabel||e.locale.Chip.remove}
1891
+ aria-label=${s.removeLabel||e.locale.Chip.remove}
1892
1892
  ?disabled=${d}
1893
1893
  @click=${o}
1894
- >${h!=="sm"?s.html`<span class="moz-chip-close-glyph" aria-hidden="true" style=${te.styleMap({maskImage:`url("${Er}")`})}></span>`:io("currentColor")}</button
1894
+ >${p!=="sm"?n.html`<span class="moz-chip-close-glyph" aria-hidden="true" style=${j.styleMap({maskImage:`url("${hr}")`})}></span>`:vo("currentColor")}</button
1895
1895
  ></span
1896
- >`}const m=!!n.selected;return s.html`<button
1896
+ >`}const m=!!s.selected;return n.html`<button
1897
1897
  type="button"
1898
- class=${V("moz-chip",`size-${h}`,{"is-selected":m,disabled:d},n.class)}
1899
- data-tone=${c}
1898
+ class=${A("moz-chip",`size-${p}`,{"is-selected":m,disabled:d},s.class)}
1899
+ data-tone=${i}
1900
1900
  data-appearance=${r}
1901
1901
  aria-pressed=${m?"true":"false"}
1902
1902
  ?disabled=${d}
1903
- style=${te.styleMap(Ce(n.style))}
1904
- ${fe(l)}
1903
+ style=${j.styleMap(he(s.style))}
1904
+ ${ce(l)}
1905
1905
  @click=${t}
1906
- >${b}${a}</button
1907
- >`}}}}),Pr={name:"MozChip",core:sn,booleanProps:["disabled","labelInteractive","removable","selected"],props:["tone","appearance","size","selected","disabled","removable","labelInteractive","removeLabel","text"],emits:["click","remove"],slots:["icon","default"],expose:!1,syncUpdate:!0},ao=()=>s.html`<svg
1906
+ >${b}${c}</button
1907
+ >`}}}}),fr={name:"MozChip",core:Es,booleanProps:["disabled","labelInteractive","removable","selected"],props:["tone","appearance","size","selected","disabled","removable","labelInteractive","removeLabel","text"],emits:["click","remove"],slots:["icon","default"],expose:!1,syncUpdate:!0},yo=()=>n.html`<svg
1908
1908
  width="20"
1909
1909
  height="20"
1910
1910
  viewBox="0 0 20 20"
@@ -1917,7 +1917,7 @@
1917
1917
  clip-rule="evenodd"
1918
1918
  d="M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 11-2 0 1 1 0 012 0zm-2 3a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"
1919
1919
  ></path>
1920
- </svg>`,nn=()=>s.html`<svg
1920
+ </svg>`,xs=()=>n.html`<svg
1921
1921
  width="20"
1922
1922
  height="20"
1923
1923
  viewBox="0 0 20 20"
@@ -1930,7 +1930,7 @@
1930
1930
  clip-rule="evenodd"
1931
1931
  d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
1932
1932
  ></path>
1933
- </svg>`,ln=()=>s.html`<svg
1933
+ </svg>`,Ls=()=>n.html`<svg
1934
1934
  width="20"
1935
1935
  height="20"
1936
1936
  viewBox="0 0 20 20"
@@ -1943,7 +1943,7 @@
1943
1943
  clip-rule="evenodd"
1944
1944
  d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z"
1945
1945
  ></path>
1946
- </svg>`,rn=()=>s.html`<svg
1946
+ </svg>`,zs=()=>n.html`<svg
1947
1947
  width="20"
1948
1948
  height="20"
1949
1949
  viewBox="0 0 20 20"
@@ -1956,7 +1956,7 @@
1956
1956
  clip-rule="evenodd"
1957
1957
  d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z"
1958
1958
  ></path>
1959
- </svg>`,an=()=>s.html`<svg
1959
+ </svg>`,Ps=()=>n.html`<svg
1960
1960
  width="20"
1961
1961
  height="20"
1962
1962
  viewBox="0 0 20 20"
@@ -1969,7 +1969,7 @@
1969
1969
  clip-rule="evenodd"
1970
1970
  d="M10 18a8 8 0 100-16 8 8 0 000 16zm0-12a1 1 0 00-1 1v4a1 1 0 102 0V7a1 1 0 00-1-1zm0 8a1 1 0 100-2 1 1 0 000 2z"
1971
1971
  ></path>
1972
- </svg>`,cn=()=>s.html`<svg
1972
+ </svg>`,Ts=()=>n.html`<svg
1973
1973
  width="14"
1974
1974
  height="14"
1975
1975
  viewBox="0 0 24 24"
@@ -1981,97 +1981,171 @@
1981
1981
  aria-hidden="true"
1982
1982
  >
1983
1983
  <path d="M18 6 6 18M6 6l12 12"></path>
1984
- </svg>`,dn=["info","success","warning","danger","neutral","accent"],un=["block","inline","banner"],Mr=new Set(["mode","tone","title","text","dismissible","dismissLabel","hideIcon","compact","live","class","style"]),xr={info:ao,success:nn,warning:ln,danger:rn,neutral:an,accent:ao},zr={info:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_22)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%232A5DBB'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_22'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,neutral:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_28)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%232D3752'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_28'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,danger:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_10)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%23B6373B'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_10'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,success:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_4)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%23106F40'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_4'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,warning:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_16)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%23785C0D'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_16'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href},Tr=new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_icon_serchbox_clolse_12x12'%3e%3cg%20id='&%23237;&%23140;&%23168;&%23236;&%23138;&%23164;%203250'%3e%3c/g%3e%3cg%20id='Group%201670'%3e%3cpath%20id='&%23236;&%23132;&%23160;%20117'%20d='M9.99426%203.19027C10.3067%202.87785%2010.3067%202.37131%209.99426%202.05889C9.68184%201.74647%209.17531%201.74647%208.86289%202.05889L9.42857%202.62458L9.99426%203.19027ZM2.05894%208.86288C1.74652%209.1753%201.74652%209.68183%202.05894%209.99426C2.37136%2010.3067%202.87789%2010.3067%203.1903%209.99425L2.62462%209.42857L2.05894%208.86288ZM9.42857%202.62458L8.86289%202.05889L2.05894%208.86288L2.62462%209.42857L3.1903%209.99425L9.99426%203.19027L9.42857%202.62458Z'%20fill='%23949EB8'/%3e%3cpath%20id='&%23236;&%23132;&%23160;%20118'%20d='M3.13711%202.00574C2.82469%201.69332%202.31816%201.69332%202.00574%202.00574C1.69333%202.31816%201.69333%202.8247%202.00574%203.13712L2.57143%202.57143L3.13711%202.00574ZM8.8097%209.9411C9.12211%2010.2535%209.62864%2010.2535%209.94106%209.9411C10.2535%209.62868%2010.2535%209.12215%209.94106%208.80973L9.37538%209.37542L8.8097%209.9411ZM2.57143%202.57143L2.00574%203.13712L8.8097%209.9411L9.37538%209.37542L9.94106%208.80973L3.13711%202.00574L2.57143%202.57143Z'%20fill='%23949EB8'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href;function Ar(e){return typeof e=="string"&&dn.includes(e)?e:"info"}const pn=$e({name:"moz-callout",defaults:{mode:"block",tone:"info",dismissible:!1,hideIcon:!1,compact:!1,live:!1},setup(e){const t=o=>e.emit("dismiss",o);return{render(){const o=e.props,n=ye(o,Mr),l=Ar(o.tone),c=un.includes(o.mode)?o.mode:"block",r=c!=="block"&&l!=="accent"?s.html`<img src=${zr[l]} alt="" width="12" height="12" />`:xr[l](),h=l==="danger"||l==="warning",d=!!o.live,a=e.slots.has("heading")?e.slot("heading"):o.title?o.title:void 0,m=e.slots.has("default")?e.slot("default"):o.text??s.nothing;return s.html`<div
1985
- class=${V("moz-callout",{compact:!!o.compact},o.class)}
1984
+ </svg>`,As=["info","success","warning","danger","neutral","accent"],Is=["block","inline","banner"],gr=new Set(["mode","tone","title","text","dismissible","dismissLabel","hideIcon","compact","live","class","style"]),vr={info:yo,success:xs,warning:Ls,danger:zs,neutral:Ps,accent:yo},wr={info:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_22)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%232A5DBB'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_22'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,neutral:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_28)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%232D3752'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_28'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,danger:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_10)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%23B6373B'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_10'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,success:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_4)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%23106F40'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_4'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,warning:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_16)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%23785C0D'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_16'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href},yr=new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_icon_serchbox_clolse_12x12'%3e%3cg%20id='&%23237;&%23140;&%23168;&%23236;&%23138;&%23164;%203250'%3e%3c/g%3e%3cg%20id='Group%201670'%3e%3cpath%20id='&%23236;&%23132;&%23160;%20117'%20d='M9.99426%203.19027C10.3067%202.87785%2010.3067%202.37131%209.99426%202.05889C9.68184%201.74647%209.17531%201.74647%208.86289%202.05889L9.42857%202.62458L9.99426%203.19027ZM2.05894%208.86288C1.74652%209.1753%201.74652%209.68183%202.05894%209.99426C2.37136%2010.3067%202.87789%2010.3067%203.1903%209.99425L2.62462%209.42857L2.05894%208.86288ZM9.42857%202.62458L8.86289%202.05889L2.05894%208.86288L2.62462%209.42857L3.1903%209.99425L9.99426%203.19027L9.42857%202.62458Z'%20fill='%23949EB8'/%3e%3cpath%20id='&%23236;&%23132;&%23160;%20118'%20d='M3.13711%202.00574C2.82469%201.69332%202.31816%201.69332%202.00574%202.00574C1.69333%202.31816%201.69333%202.8247%202.00574%203.13712L2.57143%202.57143L3.13711%202.00574ZM8.8097%209.9411C9.12211%2010.2535%209.62864%2010.2535%209.94106%209.9411C10.2535%209.62868%2010.2535%209.12215%209.94106%208.80973L9.37538%209.37542L8.8097%209.9411ZM2.57143%202.57143L2.00574%203.13712L8.8097%209.9411L9.37538%209.37542L9.94106%208.80973L3.13711%202.00574L2.57143%202.57143Z'%20fill='%23949EB8'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href;function br(e){return typeof e=="string"&&As.includes(e)?e:"info"}const Rs=ye({name:"moz-callout",defaults:{mode:"block",tone:"info",dismissible:!1,hideIcon:!1,compact:!1,live:!1},setup(e){const t=o=>e.emit("dismiss",o);return{render(){const o=e.props,s=ge(o,gr),l=br(o.tone),i=Is.includes(o.mode)?o.mode:"block",r=i!=="block"&&l!=="accent"?n.html`<img src=${wr[l]} alt="" width="12" height="12" />`:vr[l](),p=l==="danger"||l==="warning",d=!!o.live,c=e.slots.has("heading")?e.slot("heading"):o.title?o.title:void 0,m=e.slots.has("default")?e.slot("default"):o.text??n.nothing;return n.html`<div
1985
+ class=${A("moz-callout",{compact:!!o.compact},o.class)}
1986
1986
  data-tone=${l}
1987
- data-mode=${c}
1988
- role=${Ee.ifDefined(d?h?"alert":"status":void 0)}
1989
- aria-live=${Ee.ifDefined(d?h?"assertive":"polite":void 0)}
1990
- aria-atomic=${Ee.ifDefined(d?"true":void 0)}
1991
- style=${te.styleMap(Ce(o.style))}
1992
- ${fe(n)}
1987
+ data-mode=${i}
1988
+ role=${$e.ifDefined(d?p?"alert":"status":void 0)}
1989
+ aria-live=${$e.ifDefined(d?p?"assertive":"polite":void 0)}
1990
+ aria-atomic=${$e.ifDefined(d?"true":void 0)}
1991
+ style=${j.styleMap(he(o.style))}
1992
+ ${ce(s)}
1993
1993
  >
1994
- ${o.hideIcon?s.nothing:s.html`<span class="moz-callout-icon"
1994
+ ${o.hideIcon?n.nothing:n.html`<span class="moz-callout-icon"
1995
1995
  >${e.slots.has("icon")?e.slot("icon"):r}</span
1996
1996
  >`}
1997
1997
  <div class="moz-callout-body">
1998
- ${a!==void 0?s.html`<div class="moz-callout-title">${a}</div>`:s.nothing}
1998
+ ${c!==void 0?n.html`<div class="moz-callout-title">${c}</div>`:n.nothing}
1999
1999
  <div class="moz-callout-content">${m}</div>
2000
2000
  </div>
2001
- ${o.dismissible?s.html`<button
2001
+ ${o.dismissible?n.html`<button
2002
2002
  type="button"
2003
2003
  class="moz-callout-close"
2004
2004
  aria-label=${o.dismissLabel||e.locale.Callout.dismiss}
2005
2005
  @click=${t}
2006
2006
  >
2007
- ${c==="block"?cn():s.html`<img src=${Tr} alt="" width="12" height="12" />`}
2008
- </button>`:s.nothing}
2009
- </div>`}}}}),Rr={name:"MozCallout",core:pn,booleanProps:["compact","dismissible","hideIcon","live"],props:["tone","title","text","dismissible","dismissLabel","hideIcon","compact","live","mode"],emits:["dismiss"],slots:["icon","heading","default"],expose:!1,syncUpdate:!0},hn=["info","success","warning","danger","neutral"],mn=["top","top-right","top-left","bottom","bottom-right","bottom-left"],Dr=new Set(["tone","title","body","time","datetime","dismissible","closeLabel","duration","pauseOnHover","exitDuration","position","inline","onSelect","onDismiss","class","style"]),Ir={info:ao,success:nn,warning:ln,danger:rn,neutral:an};function Vr(e){return typeof e=="string"&&hn.includes(e)?e:"info"}function co(e){return typeof e=="string"&&mn.includes(e)?e:"bottom-right"}function Zo(e){const t=document.querySelector(`.moz-notification-stack[data-position="${e}"]`);if(t)return t;const o=document.createElement("div");return o.className=`moz-notification-stack moz-notification-stack--${e}`,o.setAttribute("data-position",e),document.body.appendChild(o),o}const xo=$e({name:"moz-notification-card",defaults:{tone:"info",dismissible:!0,duration:5e3,pauseOnHover:!0,exitDuration:150,position:"bottom-right",inline:!1},setup(e){let t=!1,o=!1,n=!1,l=null,c=null;const r=()=>{o||(o=!0,l&&l.stop(),t=!1,e.requestUpdate(),c=setTimeout(()=>{var g,i;c=null,(i=(g=e.props).onDismiss)==null||i.call(g),n=!0,e.requestUpdate()},e.props.exitDuration??150))},h=()=>{t=!0,e.requestUpdate();const g=e.props.duration;g&&g>0&&(l=new Po(r,g))};let d=!1,b=!1,a=!1;const m=()=>{if(!e.props.pauseOnHover||!l||o)return;const g=d||b;g!==a&&(a=g,g?l.pause():l.resume())},u=g=>{d=g,m()},E=()=>{b=!0,m()},x=g=>{const i=g.relatedTarget;i&&g.currentTarget.contains(i)||(b=!1,m())},$=()=>{const g=e.props.onSelect;typeof g=="function"&&(g(),e.props.dismissible&&r())},P=g=>{g.key!=="Enter"&&g.key!==" "||(g.preventDefault(),$())};e.props.inline||Zo(co(e.props.position)),e.onCleanup(()=>{l&&l.stop(),c&&clearTimeout(c)});const L=()=>{if(n)return s.nothing;const g=e.props,i=Vr(g.tone),p=i==="danger",y=typeof g.onSelect=="function",F=e.slots.has("heading")?e.slot("heading"):g.title?g.title:void 0,I=e.slots.has("description")?e.slot("description"):g.body?g.body:void 0;return s.html`<div
2007
+ ${i==="block"?Ts():n.html`<img src=${yr} alt="" width="12" height="12" />`}
2008
+ </button>`:n.nothing}
2009
+ </div>`}}}}),Cr={name:"MozCallout",core:Rs,booleanProps:["compact","dismissible","hideIcon","live"],props:["tone","title","text","dismissible","dismissLabel","hideIcon","compact","live","mode"],emits:["dismiss"],slots:["icon","heading","default"],expose:!1,syncUpdate:!0},Ds=["info","success","warning","danger","neutral"],Vs=["top","top-right","top-left","bottom","bottom-right","bottom-left"],$r=new Set(["tone","title","body","time","datetime","dismissible","closeLabel","duration","pauseOnHover","exitDuration","position","inline","onSelect","onDismiss","class","style"]),Sr={info:yo,success:xs,warning:Ls,danger:zs,neutral:Ps};function kr(e){return typeof e=="string"&&Ds.includes(e)?e:"info"}function bo(e){return typeof e=="string"&&Vs.includes(e)?e:"bottom-right"}function hn(e){const t=document.querySelector(`.moz-notification-stack[data-position="${e}"]`);if(t)return t;const o=document.createElement("div");return o.className=`moz-notification-stack moz-notification-stack--${e}`,o.setAttribute("data-position",e),document.body.appendChild(o),o}const qo=ye({name:"moz-notification-card",defaults:{tone:"info",dismissible:!0,duration:5e3,pauseOnHover:!0,exitDuration:150,position:"bottom-right",inline:!1},setup(e){let t=!1,o=!1,s=!1,l=null,i=null;const r=()=>{o||(o=!0,l&&l.stop(),t=!1,e.requestUpdate(),i=setTimeout(()=>{var f,a;i=null,(a=(f=e.props).onDismiss)==null||a.call(f),s=!0,e.requestUpdate()},e.props.exitDuration??150))},p=()=>{t=!0,e.requestUpdate();const f=e.props.duration;f&&f>0&&(l=new _o(r,f))};let d=!1,b=!1,c=!1;const m=()=>{if(!e.props.pauseOnHover||!l||o)return;const f=d||b;f!==c&&(c=f,f?l.pause():l.resume())},u=f=>{d=f,m()},k=()=>{b=!0,m()},x=f=>{const a=f.relatedTarget;a&&f.currentTarget.contains(a)||(b=!1,m())},S=()=>{const f=e.props.onSelect;typeof f=="function"&&(f(),e.props.dismissible&&r())},L=f=>{f.key!=="Enter"&&f.key!==" "||(f.preventDefault(),S())};e.props.inline||hn(bo(e.props.position)),e.onCleanup(()=>{l&&l.stop(),i&&clearTimeout(i)});const M=()=>{if(s)return n.nothing;const f=e.props,a=kr(f.tone),h=a==="danger",$=typeof f.onSelect=="function",_=e.slots.has("heading")?e.slot("heading"):f.title?f.title:void 0,O=e.slots.has("description")?e.slot("description"):f.body?f.body:void 0;return n.html`<div
2010
2010
  data-testid="notification-card"
2011
- ${fe(ye(g,Dr))}
2012
- class=${V("moz-notification-card",{"is-selectable":y},g.class)}
2013
- data-tone=${i}
2014
- role=${p?"alert":"status"}
2015
- aria-live=${p?"assertive":"polite"}
2011
+ ${ce(ge(f,$r))}
2012
+ class=${A("moz-notification-card",{"is-selectable":$},f.class)}
2013
+ data-tone=${a}
2014
+ role=${h?"alert":"status"}
2015
+ aria-live=${h?"assertive":"polite"}
2016
2016
  aria-atomic="true"
2017
- style=${te.styleMap({...Ce(g.style),...t?{}:{display:"none"}})}
2017
+ style=${j.styleMap({...he(f.style),...t?{}:{display:"none"}})}
2018
2018
  @mouseenter=${()=>u(!0)}
2019
2019
  @mouseleave=${()=>u(!1)}
2020
- @focusin=${E}
2020
+ @focusin=${k}
2021
2021
  @focusout=${x}
2022
2022
  >
2023
2023
  <span class="moz-notification-card-icon"
2024
- >${e.slots.has("avatar")?e.slot("avatar"):Ir[i]()}</span
2024
+ >${e.slots.has("avatar")?e.slot("avatar"):Sr[a]()}</span
2025
2025
  >
2026
2026
  <div class="moz-notification-card-main">
2027
2027
  <div
2028
2028
  class="moz-notification-card-content"
2029
- role=${Ee.ifDefined(y?"button":void 0)}
2030
- tabindex=${Ee.ifDefined(y?"0":void 0)}
2031
- @click=${$}
2032
- @keydown=${y?P:s.nothing}
2029
+ role=${$e.ifDefined($?"button":void 0)}
2030
+ tabindex=${$e.ifDefined($?"0":void 0)}
2031
+ @click=${S}
2032
+ @keydown=${$?L:n.nothing}
2033
2033
  >
2034
- ${F!==void 0?s.html`<div class="moz-notification-card-heading">${F}</div>`:s.nothing}
2035
- ${I!==void 0?s.html`<div class="moz-notification-card-description">${I}</div>`:s.nothing}
2036
- ${g.time?s.html`<time class="moz-notification-card-time" datetime=${Ee.ifDefined(g.datetime||void 0)}
2037
- >${g.time}</time
2038
- >`:s.nothing}
2034
+ ${_!==void 0?n.html`<div class="moz-notification-card-heading">${_}</div>`:n.nothing}
2035
+ ${O!==void 0?n.html`<div class="moz-notification-card-description">${O}</div>`:n.nothing}
2036
+ ${f.time?n.html`<time class="moz-notification-card-time" datetime=${$e.ifDefined(f.datetime||void 0)}
2037
+ >${f.time}</time
2038
+ >`:n.nothing}
2039
2039
  </div>
2040
- ${e.slots.has("actions")?s.html`<div class="moz-notification-card-actions">${e.slot("actions")}</div>`:s.nothing}
2040
+ ${e.slots.has("actions")?n.html`<div class="moz-notification-card-actions">${e.slot("actions")}</div>`:n.nothing}
2041
2041
  </div>
2042
- ${g.dismissible?s.html`<button
2042
+ ${f.dismissible?n.html`<button
2043
2043
  type="button"
2044
2044
  class="moz-notification-card-close"
2045
- aria-label=${g.closeLabel||e.locale.Notification.close}
2045
+ aria-label=${f.closeLabel||e.locale.Notification.close}
2046
2046
  @click=${r}
2047
2047
  >
2048
- ${cn()}
2049
- </button>`:s.nothing}
2050
- </div>`};return{api:{dismiss:r,isClosing:()=>o},onMounted(){h()},getPortalContainer:()=>e.props.inline?null:Zo(co(e.props.position)),renderPortal(){return e.props.inline?s.nothing:L()},render(){return e.props.inline?L():s.nothing}}}}),Or=new Set(["title","body","time","datetime","unread","onSelect","class","style"]),fn=$e({name:"moz-notification-item",defaults:{unread:!1},setup(e){const t=()=>{const o=e.props.onSelect;typeof o=="function"&&o()};return{render(){const o=e.props,n=ye(o,Or),l=!!o.unread,c=e.slots.has("heading")?e.slot("heading"):o.title?o.title:void 0,r=e.slots.has("description")?e.slot("description"):o.body?o.body:void 0,h=V("moz-notification-item",{"is-unread":l},o.class),d=te.styleMap(Ce(o.style)),b=s.html`
2048
+ ${Ts()}
2049
+ </button>`:n.nothing}
2050
+ </div>`};return{api:{dismiss:r,isClosing:()=>o},onMounted(){p()},getPortalContainer:()=>e.props.inline?null:hn(bo(e.props.position)),renderPortal(){return e.props.inline?n.nothing:M()},render(){return e.props.inline?M():n.nothing}}}}),Mr=new Set(["title","body","time","datetime","unread","onSelect","class","style"]),Os=ye({name:"moz-notification-item",defaults:{unread:!1},setup(e){const t=()=>{const o=e.props.onSelect;typeof o=="function"&&o()};return{render(){const o=e.props,s=ge(o,Mr),l=!!o.unread,i=e.slots.has("heading")?e.slot("heading"):o.title?o.title:void 0,r=e.slots.has("description")?e.slot("description"):o.body?o.body:void 0,p=A("moz-notification-item",{"is-unread":l},o.class),d=j.styleMap(he(o.style)),b=n.html`
2051
2051
  <span class="moz-notification-item-header">
2052
- ${c!==void 0?s.html`<span class="moz-notification-item-heading">${c}</span>`:s.nothing}
2053
- ${l?s.html`<span class="moz-notification-item-unread"
2052
+ ${i!==void 0?n.html`<span class="moz-notification-item-heading">${i}</span>`:n.nothing}
2053
+ ${l?n.html`<span class="moz-notification-item-unread"
2054
2054
  ><span class="moz-notification-item-dot" aria-hidden="true"></span
2055
2055
  ><span class="moz-notification-item-sr">${e.locale.Notification.unread}</span></span
2056
- >`:s.nothing}
2057
- ${e.slots.has("meta")?s.html`<span class="moz-notification-item-meta">${e.slot("meta")}</span>`:s.nothing}
2056
+ >`:n.nothing}
2057
+ ${e.slots.has("meta")?n.html`<span class="moz-notification-item-meta">${e.slot("meta")}</span>`:n.nothing}
2058
2058
  </span>
2059
- ${r!==void 0||o.time?s.html`<span class="moz-notification-item-content">
2060
- ${r!==void 0?s.html`<span class="moz-notification-item-description">${r}</span>`:s.nothing}
2061
- ${o.time?s.html`<time class="moz-notification-item-time" datetime=${Ee.ifDefined(o.datetime||void 0)}
2059
+ ${r!==void 0||o.time?n.html`<span class="moz-notification-item-content">
2060
+ ${r!==void 0?n.html`<span class="moz-notification-item-description">${r}</span>`:n.nothing}
2061
+ ${o.time?n.html`<time class="moz-notification-item-time" datetime=${$e.ifDefined(o.datetime||void 0)}
2062
2062
  >${o.time}</time
2063
- >`:s.nothing}
2064
- </span>`:s.nothing}
2065
- `;return typeof o.onSelect=="function"?s.html`<button
2063
+ >`:n.nothing}
2064
+ </span>`:n.nothing}
2065
+ `;return typeof o.onSelect=="function"?n.html`<button
2066
2066
  type="button"
2067
- class=${h}
2067
+ class=${p}
2068
2068
  data-unread=${l?"true":"false"}
2069
2069
  style=${d}
2070
- ${fe(n)}
2070
+ ${ce(s)}
2071
2071
  @click=${t}
2072
2072
  >
2073
2073
  ${b}
2074
- </button>`:s.html`<div class=${h} data-unread=${l?"true":"false"} style=${d} ${fe(n)}>
2074
+ </button>`:n.html`<div class=${p} data-unread=${l?"true":"false"} style=${d} ${ce(s)}>
2075
2075
  ${b}
2076
- </div>`}}}}),qr=3,wt=[];let Br=0;const Fr=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)},Ft=e=>e.closing||e.instance.api.isClosing(),St=e=>{Ft(e)||(e.closing=!0,e.instance.api.dismiss())},Nr=(e={})=>({open:(l={},c={})=>{const r={...e,...l},{id:h,max:d,onDismiss:b,...a}=r;if(h){const p=wt.find(y=>y.id===h&&!Ft(y));if(p)return{id:p.id,close:()=>St(p)}}const m=h||`moz-notification-${++Br}`,u=co(a.position),E=typeof d=="number"&&d>0?Math.floor(d):qr,x=wt.filter(p=>p.position===u&&!Ft(p));for(let p=0;p<=x.length-E;p++)St(x[p]);const $=document.createElement("div");$.style.display="contents",document.body.appendChild($);let P;const L={...a,position:u,inline:!1,onDismiss:()=>{const p=P?wt.indexOf(P):-1;p!==-1&&wt.splice(p,1),b==null||b(),queueMicrotask(()=>{var y;P==null||P.instance.destroy(),Fr($),(y=c.onRemoved)==null||y.call(c)})}},g=xo($,L,(()=>{}),{slots:c.slots,locale:c.locale});P={id:m,position:u,instance:g,closing:!1},wt.push(P);const i=P;return{id:m,close:()=>St(i)}},close:l=>{const c=wt.find(r=>r.id===l&&!Ft(r));c&&St(c)},closeAll:()=>{for(const l of wt.slice())St(l)}}),_r={name:"MozNotificationCard",core:xo,booleanProps:["dismissible","inline","pauseOnHover"],props:["tone","title","body","time","datetime","dismissible","closeLabel","duration","pauseOnHover","exitDuration","position","inline","onSelect","onDismiss"],emits:[],slots:["avatar","heading","description","actions"],expose:!1,syncUpdate:!0},Hr={name:"MozNotificationItem",core:fn,booleanProps:["unread"],props:["title","body","time","datetime","unread","onSelect"],emits:[],slots:["heading","description","meta"],expose:!1,syncUpdate:!0};exports.AVATAR_SPEC=Cr;exports.BADGE_APPEARANCES=Xs;exports.BADGE_SIZES=Qs;exports.BADGE_SPEC=kr;exports.BADGE_TONES=js;exports.BREADCRUMB_SPEC=el;exports.BUTTON_SIZES=Jo;exports.BUTTON_SPEC=Gn;exports.CALENDAR_SPEC=Wl;exports.CALLOUT_MODES=un;exports.CALLOUT_SPEC=Rr;exports.CALLOUT_TONES=dn;exports.CHECKBOX_SPEC=dl;exports.CHIP_APPEARANCES=tn;exports.CHIP_SIZES=on;exports.CHIP_SPEC=Pr;exports.CHIP_TONES=en;exports.COLLAPSIBLE_HEIGHT_VAR=Ks;exports.COLLAPSIBLE_SPEC=vr;exports.CONTEXTMENU_SPEC=Ti;exports.CONTROLLER_SPEC=er;exports.ChromeComponent=Yo;exports.DATEINPUT_SPEC=Xl;exports.DEFAULT_TREE_PROPS=ro;exports.EMPTYSTATE_SPEC=al;exports.INPUT_SPEC=Cl;exports.LABEL_SPEC=jn;exports.MOZ_BOOLEAN_PROPS=In;exports.MULTISELECT_SPEC=wi;exports.NOTIFICATION_CARD_SPEC=_r;exports.NOTIFICATION_ITEM_SPEC=Hr;exports.NOTIFICATION_POSITIONS=mn;exports.NOTIFICATION_TONES=hn;exports.NUMBERINPUT_SPEC=Pl;exports.Observable=Pn;exports.Overlay=Kt;exports.POPOVER_SPEC=fr;exports.POPUP_SPEC=ii;exports.PortalHost=Nt;exports.RADIO_SPEC=pl;exports.SCROLLAREA_SPEC=$r;exports.SEGMENT_TONES=ms;exports.SELECT_SPEC=pi;exports.SLIDER_SPEC=Ol;exports.SPLITPANE_SPEC=Wi;exports.SlotHost=jo;exports.TABLESELECT_SPEC=Ri;exports.TAB_SPEC=zl;exports.TAGINPUT_SPEC=Pi;exports.TEXTAREA_SPEC=yl;exports.TIMEPICKER_SPEC=Si;exports.TOAST_SPEC=ur;exports.TOGGLE_SPEC=Qn;exports.TOOLTIP_SPEC=pr;exports.TREESELECT_SPEC=Hi;exports.Timer=Po;exports.breadcrumbTemplate=wo;exports.buttonTemplate=kt;exports.checkboxTemplate=qt;exports.circleLoader=Qo;exports.cn=V;exports.computeTooltipPlacement=$s;exports.createAvatar=Gs;exports.createBadge=Js;exports.createBreadCrumb=cs;exports.createButton=ls;exports.createCalendar=Eo;exports.createCallout=pn;exports.createCheckBox=hs;exports.createChip=sn;exports.createCollapsible=Zs;exports.createContextMenu=Vs;exports.createController=Us;exports.createDateInput=ks;exports.createEmptyState=ps;exports.createInput=gs;exports.createLabel=is;exports.createMultiSelect=As;exports.createNotificationCard=xo;exports.createNotificationItem=fn;exports.createNumberInput=ws;exports.createPopover=Ws;exports.createPopup=Ls;exports.createRadio=fs;exports.createScrollArea=Ys;exports.createSelect=Ts;exports.createSlider=Ss;exports.createSplitPane=Hs;exports.createTab=bs;exports.createTableSelect=Os;exports.createTagInput=Is;exports.createTextArea=vs;exports.createTimePicker=Ds;exports.createToast=Mo;exports.createToggle=rs;exports.createTooltip=So;exports.createTreeSelect=_s;exports.createValidator=qn;exports.dayjs=Me;exports.defaultEmptyStateMessages=ds;exports.defineHeadless=$e;exports.dismissLayerCount=Un;exports.enUS=Tn;exports.generateUUID=Mt;exports.iconArrowRight=Jn;exports.iconCheckBox=Co;exports.iconCheckBoxChecked=bo;exports.iconCheckboxIndeterminate=yo;exports.iconClose=Cs;exports.iconFavorite=go;exports.iconFavoriteFilled=vo;exports.iconInfo=$o;exports.jaJP=Rn;exports.koKR=no;exports.labelClass=fo;exports.labelTemplate=Xe;exports.normalizeStyle=Ce;exports.pickRest=ye;exports.pxToRem=De;exports.registerDismissLayer=mo;exports.registerForeignLayer=Hn;exports.registerSelfHandledLayer=Zt;exports.shallowEqual=bt;exports.spread=fe;exports.toggleTemplate=Ht;exports.uniqueId=ot;exports.useNotification=Nr;exports.useToast=dr;exports.zhCN=An;
2076
+ </div>`}}}}),Er=3,bt=[];let xr=0;const Lr=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)},Zt=e=>e.closing||e.instance.api.isClosing(),zt=e=>{Zt(e)||(e.closing=!0,e.instance.api.dismiss())},zr=(e={})=>({open:(l={},i={})=>{const r={...e,...l},{id:p,max:d,onDismiss:b,...c}=r;if(p){const h=bt.find($=>$.id===p&&!Zt($));if(h)return{id:h.id,close:()=>zt(h)}}const m=p||`moz-notification-${++xr}`,u=bo(c.position),k=typeof d=="number"&&d>0?Math.floor(d):Er,x=bt.filter(h=>h.position===u&&!Zt(h));for(let h=0;h<=x.length-k;h++)zt(x[h]);const S=document.createElement("div");S.style.display="contents",document.body.appendChild(S);let L;const M={...c,position:u,inline:!1,onDismiss:()=>{const h=L?bt.indexOf(L):-1;h!==-1&&bt.splice(h,1),b==null||b(),queueMicrotask(()=>{var $;L==null||L.instance.destroy(),Lr(S),($=i.onRemoved)==null||$.call(i)})}},f=qo(S,M,(()=>{}),{slots:i.slots,locale:i.locale});L={id:m,position:u,instance:f,closing:!1},bt.push(L);const a=L;return{id:m,close:()=>zt(a)}},close:l=>{const i=bt.find(r=>r.id===l&&!Zt(r));i&&zt(i)},closeAll:()=>{for(const l of bt.slice())zt(l)}}),Pr={name:"MozNotificationCard",core:qo,booleanProps:["dismissible","inline","pauseOnHover"],props:["tone","title","body","time","datetime","dismissible","closeLabel","duration","pauseOnHover","exitDuration","position","inline","onSelect","onDismiss"],emits:[],slots:["avatar","heading","description","actions"],expose:!1,syncUpdate:!0},Tr={name:"MozNotificationItem",core:Os,booleanProps:["unread"],props:["title","body","time","datetime","unread","onSelect"],emits:[],slots:["heading","description","meta"],expose:!1,syncUpdate:!0},Ar="1.61.0",Fo={"arrow-down":[["path",{d:"M12 5v14"}],["path",{d:"m19 12-7 7-7-7"}]],"arrow-up":[["path",{d:"m5 12 7-7 7 7"}],["path",{d:"M12 19V5"}]],"book-open":[["path",{d:"M12 5v16"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z"}]],bot:[["path",{d:"M12 8V4H8"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}],["path",{d:"M2 14h2"}],["path",{d:"M20 14h2"}],["path",{d:"M15 13v2"}],["path",{d:"M9 13v2"}]],brain:[["path",{d:"M12 18V5"}],["path",{d:"M15 13a4.17 4.17 0 01-3-4 4.17 4.17 0 01-3 4"}],["path",{d:"M17.707 6.294A3 3 0 1012 5a3 3 0 10-5.707 1.294"}],["path",{d:"M17.996 5.125a4 4 0 012.526 5.77"}],["path",{d:"M18 18a4 4 0 002-7.465"}],["path",{d:"M19.967 17.482a4 4 0 11-7.967.517 4 4 0 11-7.967-.517"}],["path",{d:"M6 18a4 4 0 01-2-7.465"}],["path",{d:"M6.004 5.125a4 4 0 00-2.526 5.77"}]],calendar:[["path",{d:"M8 2v3"}],["path",{d:"M16 2v3"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}],["path",{d:"M3 9h18"}]],"calendar-clock":[["path",{d:"M16 14v2.2l1.6 1"}],["path",{d:"M16 2v3"}],["path",{d:"M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338"}],["path",{d:"M3 9h5.859"}],["path",{d:"M8 2v3"}],["circle",{cx:"16",cy:"16",r:"6"}]],"chart-column":[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16"}],["path",{d:"M18 17V9"}],["path",{d:"M13 17V5"}],["path",{d:"M8 17v-3"}]],"chart-network":[["path",{d:"m13.11 7.664 1.78 2.672"}],["path",{d:"m14.162 12.788-3.324 1.424"}],["path",{d:"m20 4-6.06 1.515"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16"}],["circle",{cx:"12",cy:"6",r:"2"}],["circle",{cx:"16",cy:"12",r:"2"}],["circle",{cx:"9",cy:"15",r:"2"}]],check:[["path",{d:"M20 6 9 17l-5-5"}]],"chevron-down":[["path",{d:"m6 9 6 6 6-6"}]],"chevron-left":[["path",{d:"m15 18-6-6 6-6"}]],"chevron-right":[["path",{d:"m9 18 6-6-6-6"}]],"circle-alert":[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16"}]],"circle-check":[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16 9-5.5 5.5L8 12"}]],code:[["path",{d:"m16 18 6-6-6-6"}],["path",{d:"m8 6-6 6 6 6"}]],copy:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]],database:[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}],["path",{d:"M3 12A9 3 0 0 0 21 12"}]],download:[["path",{d:"M12 15V3"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}],["path",{d:"m7 10 5 5 5-5"}]],ellipsis:[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]],file:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}]],"file-code":[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 12.5 8 15l2 2.5"}],["path",{d:"m14 12.5 2 2.5-2 2.5"}]],"file-image":[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["circle",{cx:"10",cy:"12",r:"2"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22"}]],"file-pen-line":[["path",{d:"M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z"}],["path",{d:"M14.487 7.858A1 1 0 0 1 14 7V2"}],["path",{d:"M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516"}],["path",{d:"M8 18h1"}]],"file-plus":[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M9 15h6"}],["path",{d:"M12 18v-6"}]],"file-spreadsheet":[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M8 13h2"}],["path",{d:"M14 13h2"}],["path",{d:"M8 17h2"}],["path",{d:"M14 17h2"}]],"file-text":[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 9H8"}],["path",{d:"M16 13H8"}],["path",{d:"M16 17H8"}]],folder:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"}]],"folder-git-2":[["path",{d:"M18 19a5 5 0 0 1-5-5v8"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5"}],["circle",{cx:"13",cy:"12",r:"2"}],["circle",{cx:"20",cy:"19",r:"2"}]],"folder-open":[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"}]],"folder-plus":[["path",{d:"M12 10v6"}],["path",{d:"M9 13h6"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"}]],"folder-tree":[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3"}]],"gallery-vertical-end":[["path",{d:"M7 2h10"}],["path",{d:"M5 6h14"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2"}]],"git-branch":[["path",{d:"M15 6a9 9 0 0 0-9 9V3"}],["circle",{cx:"18",cy:"6",r:"3"}],["circle",{cx:"6",cy:"18",r:"3"}]],"git-fork":[["circle",{cx:"12",cy:"18",r:"3"}],["circle",{cx:"6",cy:"6",r:"3"}],["circle",{cx:"18",cy:"6",r:"3"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9"}],["path",{d:"M12 12v3"}]],"git-graph":[["circle",{cx:"5",cy:"6",r:"3"}],["path",{d:"M5 9v6"}],["circle",{cx:"5",cy:"18",r:"3"}],["path",{d:"M12 3v18"}],["circle",{cx:"19",cy:"6",r:"3"}],["path",{d:"M16 15.7A9 9 0 0 0 19 9"}]],"git-pull-request":[["circle",{cx:"18",cy:"18",r:"3"}],["circle",{cx:"6",cy:"6",r:"3"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21"}]],"grid-2x2":[["path",{d:"M12 3v18"}],["path",{d:"M3 12h18"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}]],history:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}],["path",{d:"M3 3v5h5"}],["path",{d:"M12 7v5l4 2"}]],house:[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}]],image:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}],["circle",{cx:"9",cy:"9",r:"2"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"}]],images:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2"}]],info:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 16v-4"}],["path",{d:"M12 8h.01"}]],layers:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"}]],"layout-grid":[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"}]],"layout-list":[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"}],["path",{d:"M14 4h7"}],["path",{d:"M14 9h7"}],["path",{d:"M14 15h7"}],["path",{d:"M14 20h7"}]],link:[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}]],list:[["path",{d:"M3 5h.01"}],["path",{d:"M3 12h.01"}],["path",{d:"M3 19h.01"}],["path",{d:"M8 5h13"}],["path",{d:"M8 12h13"}],["path",{d:"M8 19h13"}]],lock:[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4"}]],menu:[["path",{d:"M4 5h16"}],["path",{d:"M4 12h16"}],["path",{d:"M4 19h16"}]],"message-square":[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"}]],monitor:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21"}]],moon:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]],network:[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}],["path",{d:"M12 12V8"}]],"notebook-pen":[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4"}],["path",{d:"M2 6h4"}],["path",{d:"M2 10h4"}],["path",{d:"M2 14h4"}],["path",{d:"M2 18h4"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z"}]],"panel-left-close":[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}],["path",{d:"m16 15-3-3 3-3"}]],"panel-left-open":[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}],["path",{d:"m14 9 3 3-3 3"}]],"panel-right-close":[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M15 3v18"}],["path",{d:"m8 9 3 3-3 3"}]],"panel-right-open":[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M15 3v18"}],["path",{d:"m10 15-3-3 3-3"}]],"panels-top-left":[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M3 9h18"}],["path",{d:"M9 21V9"}]],paperclip:[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"}]],pencil:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]],pin:[["path",{d:"M12 17v5"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"}]],"pin-off":[["path",{d:"M12 17v5"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89"}],["path",{d:"m2 2 20 20"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11"}]],plus:[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]],"redo-2":[["path",{d:"m15 14 5-5-5-5"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"}]],"refresh-cw":[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}],["path",{d:"M8 16H3v5"}]],"rotate-ccw":[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}],["path",{d:"M3 3v5h5"}]],search:[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]],server:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18"}]],settings:[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"}],["circle",{cx:"12",cy:"12",r:"3"}]],sparkles:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"}],["path",{d:"M20 2v4"}],["path",{d:"M22 4h-4"}],["circle",{cx:"4",cy:"20",r:"2"}]],square:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]],"square-pen":[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z"}]],"sticky-note":[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5"}]],sun:[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]],table:[["path",{d:"M12 3v18"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M3 9h18"}],["path",{d:"M3 15h18"}]],tag:[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor"}]],terminal:[["path",{d:"M12 19h8"}],["path",{d:"m4 17 6-6-6-6"}]],"trash-2":[["path",{d:"M10 11v6"}],["path",{d:"M14 11v6"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]],"triangle-alert":[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}],["path",{d:"M12 9v4"}],["path",{d:"M12 17h.01"}]],"undo-2":[["path",{d:"M9 14 4 9l5-5"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11"}]],upload:[["path",{d:"M12 3v12"}],["path",{d:"m17 8-5-5-5 5"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}]],waypoints:[["path",{d:"m10.586 5.414-5.172 5.172"}],["path",{d:"m18.586 13.414-5.172 5.172"}],["path",{d:"M6 12h12"}],["circle",{cx:"12",cy:"20",r:"2"}],["circle",{cx:"12",cy:"4",r:"2"}],["circle",{cx:"20",cy:"12",r:"2"}],["circle",{cx:"4",cy:"12",r:"2"}]],workflow:[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2"}]],wrench:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z"}]],x:[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]],zap:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z"}]]},_s=Fo,Ir=Object.freeze(Object.keys(Fo).sort()),Jt=16,No=1.5;function Ho(e){return typeof e=="string"&&Object.prototype.hasOwnProperty.call(Fo,e)}function Uo(e){return typeof e=="string"&&e.trim()?e:void 0}function Bs({size:e,strokeWidth:t,title:o}={}){const s=Uo(o);return{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:String(e??Jt),height:String(e??Jt),fill:"none",stroke:"currentColor","stroke-width":String(t??No),"stroke-linecap":"round","stroke-linejoin":"round",...s?{role:"img","aria-label":s}:{"aria-hidden":"true",focusable:"false"}}}function Rr(e,t){switch(e){case"path":return n.svg`<path ${ce(t)}></path>`;case"circle":return n.svg`<circle ${ce(t)}></circle>`;case"rect":return n.svg`<rect ${ce(t)}></rect>`;case"line":return n.svg`<line ${ce(t)}></line>`;case"ellipse":return n.svg`<ellipse ${ce(t)}></ellipse>`;case"polyline":return n.svg`<polyline ${ce(t)}></polyline>`;case"polygon":return n.svg`<polygon ${ce(t)}></polygon>`;default:return n.nothing}}function Wo(e,t={},o={}){if(!Ho(e))return n.nothing;const s=Uo(t.title);return n.svg`<svg ${ce({...Bs(t),...o})} class=${t.class||n.nothing} style=${t.style?j.styleMap(he(t.style)):n.nothing}>${s?n.svg`<title>${s}</title>`:n.nothing}${_s[e].map(([l,i])=>Rr(l,i))}</svg>`}const Dr=new Set(["name","size","strokeWidth","title","class","style"]),qs=ye({name:"moz-icon",defaults:{size:Jt,strokeWidth:No},setup(e){return{render(){const t=e.props;return Wo(t.name,{size:t.size,strokeWidth:t.strokeWidth,title:t.title,class:A(t.class),style:t.style},ge(t,Dr))}}}}),Vr={name:"MozIcon",core:qs,props:["name","size","strokeWidth","title"],emits:[]},Or=["md","sm"],_r=new Set(["icon","label","size","shortcut","tooltipPlacement","tooltipClassName","nativeType","loading","disabled","pressed","class","style"]),Nt=new Set;let Br=0;const qr=["top","bottom","left","right"],Fr=(()=>{});function St(e,t){return o=>{typeof e=="function"&&e(o),t(o)}}function Ht(e){return typeof e=="string"?e:""}const Ko=ye({name:"moz-icon-button",defaults:{size:"md",loading:!1,disabled:!1},setup(e){const t=`moz-icon-btn-tip-${++Br}`;let o=null,s=!1,l=null,i=!1,r=!1,p=!1;const d=()=>Ht(e.props.label),b=()=>d().trim().length>0,c=()=>{const a=Ht(e.props.shortcut);return n.html`${d()}${a?n.html`<kbd class="moz-tooltip-kbd">${a}</kbd>`:n.nothing}`},m=a=>{const h=()=>n.render(c(),a);return h(),{update:h,dispose:()=>n.render(n.nothing,a)}},u=()=>{const a=e.props.tooltipPlacement;return{open:s,anchor:l,side:qr.includes(a)?a:"top",tooltipId:t,class:A("moz-icon-btn-tooltip",Ht(e.props.tooltipClassName)||void 0)}},k=a=>{if(!o){if(!s)return;o=no(document.createElement("div"),u(),Fr,{slots:{content:m}});return}o.update(u(),{replace:!0,sync:a})},x=a=>{a.key==="Escape"&&M()},S=()=>{s&&(s=!1,Nt.delete(S),document.removeEventListener("keydown",x),k(!0),e.requestUpdate())},L=a=>{if(a instanceof HTMLElement&&(l=a),!(s||p||!l||!b())){for(const h of Array.from(Nt))h();s=!0,Nt.add(S),document.addEventListener("keydown",x),k(!0),e.requestUpdate()}},M=()=>{p=i||r,S()},f=()=>{!i&&!r&&(p=!1)};return e.onCleanup(()=>{Nt.delete(S),document.removeEventListener("keydown",x),o==null||o.destroy(),o=null,l=null}),{render(){const a=e.props,h=ge(a,_r),$=d();s&&!b()?queueMicrotask(S):s&&k(!1);const _=[Ht(h["aria-describedby"]),s?t:""].filter(Boolean).join(" "),O={...h,"aria-label":$.trim()?$:h["aria-label"],"aria-describedby":_||void 0,"data-state":s?"open":"closed",onMouseEnter:St(h.onMouseEnter,Q=>{i=!0,L(Q.currentTarget)}),onMouseLeave:St(h.onMouseLeave,()=>{i=!1,f(),S()}),onFocus:St(h.onFocus,Q=>{r=!0,L(Q.currentTarget)}),onBlur:St(h.onBlur,()=>{r=!1,f(),S()}),onPointerDown:St(h.onPointerDown,M),onKeyDown:St(h.onKeyDown,Q=>{(Q.key==="Escape"||Q.key==="Enter"||Q.key===" ")&&M()})},U=a.size==="sm"?"sm":"md";return Ct({type:"icon",nativeType:a.nativeType,loading:a.loading,disabled:a.disabled,pressed:a.pressed,class:A("moz-icon-btn",{"moz-icon-btn--sm":U==="sm"},a.class),style:a.style},{onClick:Q=>e.emit("click",Q),icon:Ho(a.icon)?Wo(a.icon,{class:"moz-icon-btn-glyph"}):n.nothing,rest:O})}}}}),Nr={name:"MozIconButton",core:Ko,booleanProps:["disabled","loading","pressed"],props:["icon","label","size","shortcut","tooltipPlacement","tooltipClassName","nativeType","loading","disabled","pressed"],emits:["click"]},Zo=20;function Fs(e){return typeof e=="number"&&Number.isFinite(e)&&e>0?e:Zo}function Ns(e,t){var o;return typeof e=="string"&&e.trim()?e:((o=t==null?void 0:t.Spinner)==null?void 0:o.label)??It.Spinner.label}const Hr=new Set(["size","label","class","style"]),Ur=()=>n.svg`<svg class="moz-spinner__svg" viewBox="0 0 24 24" fill="none" aria-hidden="true" focusable="false">
2077
+ <circle class="moz-spinner__track" cx="12" cy="12" r="9" stroke="currentColor" stroke-width="2.5"></circle>
2078
+ <path class="moz-spinner__arc" d="M12 3a9 9 0 0 1 9 9" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"></path>
2079
+ </svg>`,Hs=ye({name:"moz-spinner",defaults:{size:Zo},setup(e){return{render(){const t=e.props;return n.html`<span
2080
+ class=${A("moz-spinner",t.class)}
2081
+ role="status"
2082
+ aria-live="polite"
2083
+ aria-atomic="true"
2084
+ aria-label=${Ns(t.label,e.locale)}
2085
+ style=${j.styleMap({"--moz-spinner-size":`${Fs(t.size)}px`,...he(t.style)})}
2086
+ ${ce(ge(t,Hr))}
2087
+ >${Ur()}</span>`}}}}),Wr={name:"MozSpinner",core:Hs,props:["size","label"],emits:[],slots:[],expose:!1},Kr=new Set(["open","defaultOpen","title","meta","marker","disabled","class","style"]),Us=ye({name:"moz-disclosure",defaults:{defaultOpen:!1,marker:!0,disabled:!1},setup(e){const t=Qe("moz-disclosure-body-");let o=!!e.props.defaultOpen;const s=()=>e.controlled("open")&&e.props.open!==void 0?!!e.props.open:o,l=()=>{if(e.props.disabled)return;const i=!s();e.controlled("open")&&e.props.open!==void 0||(o=i,e.requestUpdate()),e.emit("update:open",i)};return{render(){const i=e.props,r=s(),p=r?"open":"closed",d=e.slots.has("title")?e.slot("title"):i.title??"",b=e.slots.has("meta")||i.meta!=null&&i.meta!=="",c=e.slots.has("meta")?e.slot("meta"):i.meta,m=n.html`${i.marker!==!1?n.html`<span class="moz-disclosure__marker" data-open=${r?"true":n.nothing} aria-hidden="true"></span>`:n.nothing}<span class="moz-disclosure__title">${d}</span>${b?n.html`<span class="moz-disclosure__meta">${c}</span>`:n.nothing}`;return n.html`<section
2088
+ class=${A("moz-disclosure",i.class)}
2089
+ data-state=${p}
2090
+ data-disabled=${i.disabled?"":n.nothing}
2091
+ style=${j.styleMap(he(i.style))}
2092
+ ${ce(ge(i,Kr))}
2093
+ >
2094
+ ${Ct({type:"text",class:"moz-disclosure__summary",disabled:i.disabled},{onClick:l,content:m,rest:{"aria-expanded":r?"true":"false","aria-controls":t,"data-state":p}})}
2095
+ <div class="moz-disclosure__body" id=${t} data-state=${p} ?hidden=${!r}>${e.slot("default")}</div>
2096
+ </section>`}}}}),Zr={name:"MozDisclosure",core:Us,booleanProps:["defaultOpen","disabled","marker","open"],props:["open","defaultOpen","title","meta","marker","disabled"],emits:["update:open"],slots:["title","meta","default"],models:{open:{prop:"open",event:"update:open"}},expose:!1},Ws="moz-button moz-default-button moz-link",Gr=new Set(["href","target","rel","download","text","class","style"]);function Yr(e){return e===!0?"":typeof e=="string"?e:void 0}const Ks=ye({name:"moz-link",setup(e){return{render(){const t=e.props,o=e.slots.has("default")?e.slot("default"):t.text??n.nothing;return n.html`<a
2097
+ class=${A(Ws,t.class)}
2098
+ href=${$e.ifDefined(t.href)}
2099
+ target=${$e.ifDefined(t.target)}
2100
+ rel=${$e.ifDefined(t.rel)}
2101
+ download=${$e.ifDefined(Yr(t.download))}
2102
+ style=${j.styleMap(he(t.style))}
2103
+ ${ce(ge(t,Gr))}
2104
+ >${o}</a>`}}}}),jr={name:"MozLink",core:Ks,props:["href","target","rel","download","text"],emits:[],slots:["default"],expose:!1},Xr=new Set(["title","value","unit","footer","valueClass","valueAlign","titleAlign","class","style"]);function Gt(e){return e!=null&&e!==""&&e!==!1}const Zs=ye({name:"moz-metric-card",defaults:{valueAlign:"left",titleAlign:"left"},setup(e){const t=(o,s)=>e.slots.has(o)?e.slot(o):Gt(s)?String(s):n.nothing;return{render(){const o=e.props,s=e.slots.has("unit")||Gt(o.unit);return n.html`<div
2105
+ class=${A("moz-metric-card",o.class)}
2106
+ style=${j.styleMap(he(o.style))}
2107
+ ${ce(ge(o,Xr))}
2108
+ >
2109
+ <label class="moz-metric-card__title" style=${j.styleMap({textAlign:o.titleAlign??"left"})}>${t("title",o.title)}</label>
2110
+ <strong class=${A("moz-metric-card__value",o.valueClass)} style=${j.styleMap({textAlign:o.valueAlign??"left"})}
2111
+ >${t("value",o.value)}${s?n.html`<small class="moz-metric-card__unit">${t("unit",o.unit)}</small>`:n.nothing}</strong
2112
+ >
2113
+ ${e.slots.has("footer")?e.slot("footer"):Gt(o.footer)?n.html`<small class="moz-metric-card__footer">${o.footer}</small>`:n.nothing}
2114
+ </div>`}}}}),Qr={name:"MozMetricCard",core:Zs,props:["title","value","unit","footer","valueClass","valueAlign","titleAlign"],emits:[],slots:["title","value","unit","footer"],expose:!1},Gs=["linear","semicircle","circle"],Jr=new Set(["title","value","unit","range","minLabel","maxLabel","footer","status","shape","level","color","ratio","trackPath","fillPath","trackColor","class","style"]);function Ys(e){const t=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.min(1,Math.max(0,t))}function Co(e){return Gs.includes(e)?e:"semicircle"}function js(e){const t=e==="circle";return{viewBox:t?"0 0 200 200":"0 0 200 128",valueY:t?110:88,minX:t?40:22,maxX:t?160:178,labelY:t?180:124,strokeWidth:16}}function Xs(e,t){const o=typeof t=="string"?t.length*.5:0;return Math.max(12,Math.min(30,140/Math.max(1,e.length+o)/.6))}function Qs(e,t,o){return`${typeof e=="string"&&e?`${e}: `:""}${t}${typeof o=="string"?o:""}`}const Js=ye({name:"moz-gauge-display",defaults:{shape:"semicircle",ratio:0,trackColor:"var(--moz-color-border)"},setup(e){const t=(i,r)=>e.slots.has(i)?e.slot(i):typeof r=="string"&&r?r:n.nothing,o=(i,r)=>e.slots.has(i)||typeof r=="string"&&r!=="",s=(i,r,p,d)=>{const b=js(r);return n.svg`<svg class="moz-gauge-display__svg" viewBox=${b.viewBox} role="img" aria-label=${Qs(i.title,p,i.unit)}>
2115
+ <path d=${i.trackPath??""} fill="none" stroke=${i.trackColor??"var(--moz-color-border)"} stroke-width=${b.strokeWidth} stroke-linecap="round"></path>
2116
+ ${d>0?n.svg`<path class="moz-gauge-display__fill" d=${i.fillPath??""} fill="none" stroke=${i.color??"currentColor"} stroke-width=${b.strokeWidth} stroke-linecap="round"></path>`:n.nothing}
2117
+ <text class="moz-gauge-display__value" x="100" y=${b.valueY} text-anchor="middle" fill="currentColor" font-weight="600" style=${`font-size: ${Xs(p,i.unit)}px`}>${p}<tspan style="font-size: .5em">${i.unit??""}</tspan></text>
2118
+ ${i.minLabel!==void 0?n.svg`<text class="moz-gauge-display__min" x=${b.minX} y=${b.labelY} text-anchor="middle" fill="currentColor" font-size="12">${i.minLabel}</text>`:n.nothing}
2119
+ ${i.maxLabel!==void 0?n.svg`<text class="moz-gauge-display__max" x=${b.maxX} y=${b.labelY} text-anchor="middle" fill="currentColor" font-size="12">${i.maxLabel}</text>`:n.nothing}
2120
+ </svg>`},l=i=>{if(o("status",i.status))return n.html`<span class="moz-gauge-display__status" role="status">${t("status",i.status)}</span>`;const r=Co(i.shape),p=i.value??"",d=Ys(i.ratio),b=o("range",i.range)?n.html`<small class="moz-gauge-display__range">${t("range",i.range)}</small>`:n.nothing;return r==="linear"?n.html`<strong class="moz-gauge-display__linear-value">${p}${i.unit??""}</strong><progress
2121
+ class="moz-gauge-display__bar"
2122
+ aria-label=${p}
2123
+ style=${j.styleMap(i.color?{accentColor:i.color}:{})}
2124
+ max="1"
2125
+ .value=${d}
2126
+ ></progress>${b}`:n.html`${s(i,r,p,d)}${i.minLabel===void 0?b:n.nothing}`};return{render(){const i=e.props;return n.html`<div
2127
+ class=${A("moz-gauge-display",i.class)}
2128
+ data-gauge-shape=${Co(i.shape)}
2129
+ data-gauge-level=${i.level??n.nothing}
2130
+ style=${j.styleMap(he(i.style))}
2131
+ ${ce(ge(i,Jr))}
2132
+ >
2133
+ <label class="moz-gauge-display__title">${t("title",i.title)}</label>
2134
+ <div class="moz-gauge-display__body" data-gauge-body="">${l(i)}</div>
2135
+ ${e.slots.has("footer")?e.slot("footer"):o("footer",i.footer)?n.html`<small class="moz-gauge-display__footer">${i.footer}</small>`:n.nothing}
2136
+ </div>`}}}}),ec={name:"MozGaugeDisplay",core:Js,props:["title","value","unit","range","minLabel","maxLabel","footer","status","shape","level","color","ratio","trackPath","fillPath","trackColor"],emits:[],slots:["title","range","status","footer"],expose:!1},tc=String.raw`\b\d+(?:\.\d+)?\b`,el=String.raw`"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'`,oc={comment:String.raw`--[^\n]*|/\*[\s\S]*?(?:\*/|$)`,string:String.raw`'(?:[^']|'')*(?:'|$)`,ignoreCase:!0,keywords:"select|from|where|group|by|order|having|limit|offset|join|left|right|inner|outer|full|cross|on|as|and|or|not|in|is|null|like|between|exists|case|when|then|else|end|distinct|union|all|insert|into|values|update|set|delete|create|table|view|index|drop|alter|with|over|partition|asc|desc|count|sum|avg|min|max"},mn={comment:"#[^\\n]*",string:String.raw`[rbfRBF]{0,2}(?:"""[\s\S]*?(?:"""|$)|'''[\s\S]*?(?:'''|$)|"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*')`,keywords:"def|class|return|if|elif|else|for|while|in|not|and|or|is|import|from|as|with|try|except|finally|raise|lambda|None|True|False|pass|break|continue|yield|async|await|global|nonlocal"},kt={comment:String.raw`//[^\n]*|/\*[\s\S]*?(?:\*/|$)`,string:String.raw`\`(?:[^\`\\]|\\.)*(?:\`|$)|${el}`,keywords:"const|let|var|function|return|if|else|for|while|do|switch|case|break|continue|new|class|extends|import|export|from|default|async|await|try|catch|finally|throw|typeof|instanceof|in|of|null|undefined|true|false|this|interface|type|enum|implements|public|private|readonly"},nc={comment:"(?!)",string:String.raw`"(?:[^"\\\n]|\\.)*"`,keywords:"true|false|null"},Ut={comment:String.raw`(?<!\S)#[^\n]*`,string:el,keywords:"if|then|else|elif|fi|for|while|until|do|done|case|esac|function|in|return|exit|export|local|echo|cd|set|unset"},tl={sql:oc,python:mn,py:mn,javascript:kt,js:kt,jsx:kt,typescript:kt,ts:kt,tsx:kt,json:nc,bash:Ut,sh:Ut,shell:Ut,zsh:Ut},sc=Object.freeze(Object.keys(tl)),fn=new Map;function lc(e){let t=fn.get(e);return t||(t=new RegExp(`(${e.comment})|(${e.string})|(${tc})|\\b(${e.keywords})\\b`,`g${e.ignoreCase?"i":""}`),fn.set(e,t)),t}const $o={chars:2e4,lines:500};function ic(e){if(e.length>$o.chars)return!0;let t=1;for(let o=e.indexOf(`
2137
+ `);o>=0;o=e.indexOf(`
2138
+ `,o+1))if(++t>$o.lines)return!0;return!1}function ol(e,t=""){if(!e||ic(e))return[{text:e}];const o=[];if(/^(diff|patch)$/i.test(t.trim())){for(const i of e.match(/[^\n]*\n|[^\n]+$/g)??[]){const r=/^@@/.test(i)?"hunk":/^\+(?!\+\+ )/.test(i)?"add":/^-(?!-- )/.test(i)?"del":void 0;o.push(r?{text:i,kind:r}:{text:i})}return o.length?o:[{text:e}]}const s=tl[t.trim().toLowerCase()];if(!s)return[{text:e}];let l=0;for(const i of e.matchAll(lc(s))){const r=i[1]!==void 0?"com":i[2]!==void 0?"str":i[3]!==void 0?"num":"kw",p=i.index??0;p>l&&o.push({text:e.slice(l,p)}),o.push({text:i[0],kind:r}),l=p+i[0].length}return l<e.length&&o.push({text:e.slice(l)}),o}const ac=new Set(["code","language","label","plain","copy","class","style"]),rc=300;function nl(e){return(e==null?void 0:e.CodeBlock)??It.CodeBlock}const sl=ye({name:"moz-code-block",defaults:{code:"",plain:!1,copy:!0},setup(e){let t="",o=!!e.props.plain,s,l=null,i=0;const r=()=>nl(e.locale),p=()=>{const u=e.props.label;return typeof u=="string"&&u.trim()?u:r().label},d=()=>r().copy.replace("{label}",p()),b=async()=>{const u=++i,k=String(e.props.code??"");let x=!1;try{const S=typeof navigator<"u"?navigator.clipboard:void 0;if(!(S!=null&&S.writeText))throw new Error("clipboard unavailable");await S.writeText(k),x=!0}catch{x=!1}u===i&&(t=x?r().copied:r().copyFailed,e.requestUpdate(),e.emit("copy",x))},c=()=>({icon:"copy",label:d(),size:"sm",class:"moz-code-block__copy"}),m=u=>{if(!u){l==null||l.destroy(),l=null;return}l||(l=Ko(u,c(),(k=>{k==="click"&&b()})))};return e.onCleanup(()=>{s&&clearTimeout(s),l==null||l.destroy(),l=null}),{render(){const u=e.props,k=String(u.code??""),x=!!u.plain;x?(o=!0,s&&clearTimeout(s),s=void 0):o&&!s&&(s=setTimeout(()=>{s=void 0,o=!1,e.requestUpdate()},rc));const S=x?null:ol(k,u.language??""),L=u.copy!==!1;L&&l&&l.update(c(),{replace:!0});const M=typeof u.language=="string"?u.language.trim():"";return n.html`<div
2139
+ class=${A("moz-code-block",u.class)}
2140
+ data-plain=${x?"":n.nothing}
2141
+ style=${j.styleMap(he(u.style))}
2142
+ ${ce(ge(u,ac))}
2143
+ >
2144
+ <div class="moz-code-block__head">
2145
+ <span class="moz-code-block__label">${M||p()}</span>
2146
+ ${L?n.html`<span class="moz-code-block__actions" ${Y.ref(m)}></span>`:n.nothing}
2147
+ </div>
2148
+ <pre class="moz-code-block__pre" tabindex="0"><code>${S?S.map(f=>f.kind?n.html`<span class=${A("moz-code-tok",`moz-code-tok--${f.kind}`,{"is-tinting":o})}>${f.text}</span>`:f.text):k}</code></pre>
2149
+ <small class="moz-code-block__status" role="status">${t}</small>
2150
+ </div>`}}}}),cc={name:"MozCodeBlock",core:sl,booleanProps:["copy","plain"],props:["code","language","label","plain","copy"],emits:["copy"],slots:[],expose:!1};exports.AVATAR_SPEC=ar;exports.BADGE_APPEARANCES=bs;exports.BADGE_SIZES=Cs;exports.BADGE_SPEC=pr;exports.BADGE_TONES=ys;exports.BREADCRUMB_SPEC=Hl;exports.BUTTON_SIZES=Cn;exports.BUTTON_SPEC=Ol;exports.CALENDAR_SPEC=Ri;exports.CALLOUT_MODES=Is;exports.CALLOUT_SPEC=Cr;exports.CALLOUT_TONES=As;exports.CHECKBOX_SPEC=Jl;exports.CHIP_APPEARANCES=ks;exports.CHIP_SIZES=Ms;exports.CHIP_SPEC=fr;exports.CHIP_TONES=Ss;exports.CODE_BLOCK_SPEC=cc;exports.CODE_LANGUAGES=sc;exports.CODE_SYNTAX_LIMIT=$o;exports.COLLAPSIBLE_HEIGHT_VAR=fs;exports.COLLAPSIBLE_SPEC=lr;exports.CONTEXTMENU_SPEC=ya;exports.CONTROLLER_SPEC=Na;exports.ChromeComponent=vn;exports.DATEINPUT_SPEC=qi;exports.DEFAULT_TREE_PROPS=wo;exports.DISCLOSURE_SPEC=Zr;exports.EMPTYSTATE_SPEC=Xl;exports.GAUGE_DISPLAY_SPEC=ec;exports.GAUGE_SHAPES=Gs;exports.ICONS=_s;exports.ICON_BUTTON_SIZES=Or;exports.ICON_BUTTON_SPEC=Nr;exports.ICON_DEFAULT_SIZE=Jt;exports.ICON_DEFAULT_STROKE_WIDTH=No;exports.ICON_NAMES=Ir;exports.ICON_SPEC=Vr;exports.INPUT_SPEC=ri;exports.LABEL_SPEC=Bl;exports.LINK_CLASS=Ws;exports.LINK_SPEC=jr;exports.LUCIDE_VERSION=Ar;exports.METRIC_CARD_SPEC=Qr;exports.MOZ_BOOLEAN_PROPS=kl;exports.MULTISELECT_SPEC=ia;exports.NOTIFICATION_CARD_SPEC=Pr;exports.NOTIFICATION_ITEM_SPEC=Tr;exports.NOTIFICATION_POSITIONS=Vs;exports.NOTIFICATION_TONES=Ds;exports.NUMBERINPUT_SPEC=gi;exports.Observable=gl;exports.Overlay=to;exports.POPOVER_SPEC=nr;exports.POPUP_SPEC=Gi;exports.PortalHost=Yt;exports.RADIO_SPEC=ti;exports.SCROLLAREA_SPEC=dr;exports.SEGMENT_TONES=Vn;exports.SELECT_SPEC=ea;exports.SLIDER_SPEC=Ei;exports.SPINNER_DEFAULT_SIZE=Zo;exports.SPINNER_SPEC=Wr;exports.SPLITPANE_SPEC=Ia;exports.SlotHost=wn;exports.TABLESELECT_SPEC=Ca;exports.TAB_SPEC=yi;exports.TAGINPUT_SPEC=fa;exports.TEXTAREA_SPEC=di;exports.TIMEPICKER_SPEC=ua;exports.TOAST_SPEC=Ja;exports.TOGGLE_SPEC=Fl;exports.TOOLTIP_SPEC=er;exports.TREESELECT_SPEC=Ta;exports.Timer=_o;exports.breadcrumbTemplate=Po;exports.buttonTemplate=Ct;exports.checkboxTemplate=Wt;exports.circleLoader=bn;exports.cn=A;exports.codeBlockMessages=nl;exports.computeTooltipPlacement=Un;exports.createAvatar=vs;exports.createBadge=$s;exports.createBreadCrumb=Tn;exports.createButton=xn;exports.createCalendar=Vo;exports.createCallout=Rs;exports.createCheckBox=Dn;exports.createChip=Es;exports.createCodeBlock=sl;exports.createCollapsible=gs;exports.createContextMenu=ls;exports.createController=hs;exports.createDateInput=Kn;exports.createDisclosure=Us;exports.createEmptyState=Rn;exports.createGaugeDisplay=Js;exports.createIcon=qs;exports.createIconButton=Ko;exports.createInput=_n;exports.createLabel=Ln;exports.createLink=Ks;exports.createMetricCard=Zs;exports.createMultiSelect=ts;exports.createNotificationCard=qo;exports.createNotificationItem=Os;exports.createNumberInput=qn;exports.createPopover=ms;exports.createPopup=Yn;exports.createRadio=On;exports.createScrollArea=ws;exports.createSelect=es;exports.createSlider=Wn;exports.createSpinner=Hs;exports.createSplitPane=ps;exports.createTab=Nn;exports.createTableSelect=is;exports.createTagInput=ss;exports.createTextArea=Bn;exports.createTimePicker=ns;exports.createToast=Bo;exports.createToggle=zn;exports.createTooltip=no;exports.createTreeSelect=us;exports.createValidator=xl;exports.dayjs=xe;exports.defaultEmptyStateMessages=An;exports.defineHeadless=ye;exports.dismissLayerCount=Il;exports.enUS=bl;exports.gaugeGeometry=js;exports.gaugeLabel=Qs;exports.gaugeRatio=Ys;exports.gaugeShape=Co;exports.gaugeValueFontSize=Xs;exports.generateUUID=Rt;exports.hasIcon=Ho;exports.hasMetricContent=Gt;exports.iconArrowRight=Nl;exports.iconCheckBox=To;exports.iconCheckBoxChecked=Ao;exports.iconCheckboxIndeterminate=Io;exports.iconClose=Fn;exports.iconFavorite=Lo;exports.iconFavoriteFilled=zo;exports.iconInfo=Ro;exports.iconRootAttributes=Bs;exports.iconSvg=Wo;exports.iconTitle=Uo;exports.jaJP=$l;exports.koKR=It;exports.labelClass=xo;exports.labelTemplate=Je;exports.normalizeStyle=he;exports.pickRest=ge;exports.pxToRem=Ae;exports.registerDismissLayer=Eo;exports.registerForeignLayer=Al;exports.registerSelfHandledLayer=oo;exports.shallowEqual=Mt;exports.spinnerLabel=Ns;exports.spinnerSize=Fs;exports.spread=ce;exports.toggleTemplate=Xt;exports.tokenizeCode=ol;exports.uniqueId=Qe;exports.useNotification=zr;exports.useToast=Qa;exports.zhCN=Cl;
2077
2151
  //# sourceMappingURL=index.cjs.map