@zeniai/web-components 4.4.1-beta1ND → 4.4.1-beta2ND
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{SessionTimeoutPopup-zQ_wYZRq.cjs → SessionTimeoutPopup-BUzgbeku.cjs} +41 -72
- package/dist/SessionTimeoutPopup-BUzgbeku.cjs.map +4 -0
- package/dist/{SessionTimeoutPopup-COad7ShI.js → SessionTimeoutPopup-CLAl4t6i.js} +46 -77
- package/dist/SessionTimeoutPopup-CLAl4t6i.js.map +4 -0
- package/dist/cockpit.cjs.js +1 -1
- package/dist/cockpit.esm.js +1 -1
- package/dist/components/expenseAutomation/sections/jeSchedules/list/JEScheduleGroupList.d.ts +2 -2
- package/dist/components/expenseAutomation/sections/jeSchedules/list/jeScheduleListItems.d.ts +14 -36
- package/dist/{index-BzH8xElT.js → index-Ce_4qRLf.js} +2 -2
- package/dist/{index-BzH8xElT.js.map → index-Ce_4qRLf.js.map} +1 -1
- package/dist/{index-D8c5YCtS.cjs → index-DgHyKeTU.cjs} +2 -2
- package/dist/{index-D8c5YCtS.cjs.map → index-DgHyKeTU.cjs.map} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
- package/dist/SessionTimeoutPopup-COad7ShI.js.map +0 -4
- package/dist/SessionTimeoutPopup-zQ_wYZRq.cjs.map +0 -4
|
@@ -8676,7 +8676,7 @@
|
|
|
8676
8676
|
flex-direction: row;
|
|
8677
8677
|
align-items: center;
|
|
8678
8678
|
gap: ${Space.sp1};
|
|
8679
|
-
`,{common:common$3f,expenseAutomation:{accountRecon:accountRecon$2}}=appLocale.getLocalizedStrings(),TEST_ID$i="excluded-account-recon-details-drawer";function ExcludedAccountReconDetailsDrawerPage({excludedAccountReconciliation:e,includeAccountFetch:t,isReconV3Enabled:n,onDismissClick:o,onIncludeIntoReconciliation:i}){const[r,a]=React.useState(!1),s=!0===n&&null!=o;return jsxRuntimeExports.jsxs(PageContainer$q,{$isV3:!0===n,"data-testid":generateDataTestId(TEST_ID$i,"container"),children:[s?jsxRuntimeExports.jsx(DrawerHeaderBar$1,{"data-testid":generateDataTestId(TEST_ID$i,"header"),children:jsxRuntimeExports.jsx(HeaderActions$5,{children:jsxRuntimeExports.jsx(HeaderCloseButton$2,{type:"button","aria-label":"Close","data-testid":generateDataTestId(TEST_ID$i,"close-button"),onClick:o,children:jsxRuntimeExports.jsx(HeaderCloseIcon$1,{})})})}):null,jsxRuntimeExports.jsxs(PageContent$t,{children:[jsxRuntimeExports.jsx(AccountNameTitle$2,{children:e.accountReconEntity.account.accountName}),jsxRuntimeExports.jsx(ExcludedAccountDetailsContent,{excludedAccountReconciliation:e})]}),jsxRuntimeExports.jsx(Footer$4,{"data-testid":generateDataTestId(TEST_ID$i,"footer"),children:jsxRuntimeExports.jsx(Button$4,{variant:"ghost",prefixIcon:jsxRuntimeExports.jsx(TickRoundIconStyled,{}),label:accountRecon$2.reconciliation.drawer.includeForReconciliation,onClick:()=>{a(!0)}})}),r?jsxRuntimeExports.jsx(ConfirmationPopup,{titleComponent:jsxRuntimeExports.jsx(ConfirmationPopUpTitle$3,{children:accountRecon$2.reconciliation.drawer.includeConfirmation.heading(e.accountReconEntity.account.accountName)}),descriptionComponent:jsxRuntimeExports.jsx(ConfirmationPopUpDescription$2,{children:accountRecon$2.reconciliation.drawer.includeConfirmation.description}),primaryButtonText:common$3f.confirm,secondaryButtonText:common$3f.cancel,isLoading:"In-Progress"===t.fetchState,showLine:!1,action:{onOkClick:()=>{i()},onCancelClick:()=>{a(!1)}}}):null]})}const ExcludedAccountDetailsContent=({excludedAccountReconciliation:e})=>{const t="credit_card"===e.accountReconEntity.account.accountType?"bank_statement":"plaid";return jsxRuntimeExports.jsxs(AccountDetailContainer$2,{children:[jsxRuntimeExports.jsxs(BalancesContainer$f,{children:[jsxRuntimeExports.jsxs(BalanceColumn$2,{children:[jsxRuntimeExports.jsx(BalanceLabel$3,{children:accountRecon$2.reconciliation.headers.bankBalance}),jsxRuntimeExports.jsx(BalanceValue$1,{children:null!=e.accountReconEntity.balance?amountToString("0,0",e.accountReconEntity.balance):common$3f.strings.hyphen})]}),jsxRuntimeExports.jsxs(BalanceColumn$2,{children:[jsxRuntimeExports.jsx(BalanceLabel$3,{children:accountRecon$2.reconciliation.headers.clearedBalance}),jsxRuntimeExports.jsx(BalanceValue$1,{children:null!=e.accountReconEntity.clearedBalance?amountToString("0,0",e.accountReconEntity.clearedBalance):common$3f.strings.hyphen})]}),jsxRuntimeExports.jsxs(BalanceColumn$2,{children:[jsxRuntimeExports.jsx(BalanceLabel$3,{children:common$3f.texts.variance}),jsxRuntimeExports.jsx(ShowVariance$3,{variance:e.accountReconEntity.variance,variancePercentage:calculateVariancePercentage(e.accountReconEntity.variance,e.accountReconEntity.balance)})]})]}),jsxRuntimeExports.jsxs(SourceCard$2,{children:[jsxRuntimeExports.jsx(SourceHeading$2,{children:common$3f.texts.source}),jsxRuntimeExports.jsxs(SourceRows$1,{children:[jsxRuntimeExports.jsxs(SourceRow$1,{children:[jsxRuntimeExports.jsx(RowLabel$5,{children:common$3f.labels.type}),jsxRuntimeExports.jsx(RowValue$3,{children:"plaid"===t?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(BankIconStyled$4,{}),common$3f.texts.bankConnection]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(DocumentsIconStyled$4,{}),accountRecon$2.reconciliation.menu.statement]})})]}),jsxRuntimeExports.jsxs(SourceRow$1,{children:[jsxRuntimeExports.jsx(RowLabel$5,{children:common$3f.labels.status}),jsxRuntimeExports.jsxs(StatusContainer$m,{children:[jsxRuntimeExports.jsx(WarningIconStyled$2,{}),jsxRuntimeExports.jsx(ExcludedStatusText$2,{children:common$3f.texts.excluded})]})]}),jsxRuntimeExports.jsxs(SourceRow$1,{children:[jsxRuntimeExports.jsx(RowLabel$5,{children:common$3f.labels.accountType}),jsxRuntimeExports.jsx(RowValueContent$2,{children:formatToSentenceCase(e.accountReconEntity.account.accountSubType?.replace("_"," ")??common$3f.strings.hyphen)})]}),jsxRuntimeExports.jsxs(SourceRow$1,{children:[jsxRuntimeExports.jsx(RowLabel$5,{children:accountRecon$2.reconciliation.drawer.labels.lastUpdated}),jsxRuntimeExports.jsx(RowValueContent$2,{children:common$3f.strings.hyphen})]})]})]})]})},ShowVariance$3=({variance:e,variancePercentage:t})=>jsxRuntimeExports.jsxs(VarianceInnerContainer$1,{children:[jsxRuntimeExports.jsx(VarianceNumber$5,{children:amountToString("0,0",e)??common$3f.strings.hyphen}),null!=t?jsxRuntimeExports.jsxs(VariancePercentage$4,{children:[0===t?"0":t.toFixed(2),common$3f.strings.percentage]}):null]});function calculateVariancePercentage(e,t){if(null!=e&&null!=t&&0!==t.amount)return e.amount/t.amount*100}const METADATA_ROW_COUNT=4,FORM_FIELD_COUNT=4,TABLE_ROW_COUNT$1=3,TABLE_HEADER_COLUMNS=[{width:"30%",loaderWidth:90},{width:"22%",loaderWidth:60},{width:"24%",loaderWidth:140},{width:"24%",loaderWidth:55}],TABLE_ROW_COLUMN_LOADER_WIDTHS=[140,90,110,70],metadataKeys=["date","category","class","memo"],formKeys=["field-0","field-1","field-2","field-3"],tableKeys=["row-0","row-1","row-2"],ScheduleDetailSkeleton=()=>jsxRuntimeExports.jsxs(Container$7l,{children:[jsxRuntimeExports.jsxs(HeaderBlock$1,{children:[jsxRuntimeExports.jsxs(TitleRow$6,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:180,height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:sp[8],height:sp[3]}),jsxRuntimeExports.jsx(Spacer,{}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:96,height:sp[3]})]}),jsxRuntimeExports.jsx(MetadataRows,{children:metadataKeys.slice(0,METADATA_ROW_COUNT).map(e=>jsxRuntimeExports.jsxs(MetadataRow,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:96,height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:200,height:sp[3]})]},e))})]}),jsxRuntimeExports.jsxs(FormSection$5,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:140,height:sp[3]}),jsxRuntimeExports.jsx(FormCard$4,{children:formKeys.slice(0,FORM_FIELD_COUNT).map(e=>jsxRuntimeExports.jsxs(FormRow$3,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:120,height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:220,height:sp[3]})]},e))})]}),jsxRuntimeExports.jsxs(TableSection$
|
|
8679
|
+
`,{common:common$3f,expenseAutomation:{accountRecon:accountRecon$2}}=appLocale.getLocalizedStrings(),TEST_ID$i="excluded-account-recon-details-drawer";function ExcludedAccountReconDetailsDrawerPage({excludedAccountReconciliation:e,includeAccountFetch:t,isReconV3Enabled:n,onDismissClick:o,onIncludeIntoReconciliation:i}){const[r,a]=React.useState(!1),s=!0===n&&null!=o;return jsxRuntimeExports.jsxs(PageContainer$q,{$isV3:!0===n,"data-testid":generateDataTestId(TEST_ID$i,"container"),children:[s?jsxRuntimeExports.jsx(DrawerHeaderBar$1,{"data-testid":generateDataTestId(TEST_ID$i,"header"),children:jsxRuntimeExports.jsx(HeaderActions$5,{children:jsxRuntimeExports.jsx(HeaderCloseButton$2,{type:"button","aria-label":"Close","data-testid":generateDataTestId(TEST_ID$i,"close-button"),onClick:o,children:jsxRuntimeExports.jsx(HeaderCloseIcon$1,{})})})}):null,jsxRuntimeExports.jsxs(PageContent$t,{children:[jsxRuntimeExports.jsx(AccountNameTitle$2,{children:e.accountReconEntity.account.accountName}),jsxRuntimeExports.jsx(ExcludedAccountDetailsContent,{excludedAccountReconciliation:e})]}),jsxRuntimeExports.jsx(Footer$4,{"data-testid":generateDataTestId(TEST_ID$i,"footer"),children:jsxRuntimeExports.jsx(Button$4,{variant:"ghost",prefixIcon:jsxRuntimeExports.jsx(TickRoundIconStyled,{}),label:accountRecon$2.reconciliation.drawer.includeForReconciliation,onClick:()=>{a(!0)}})}),r?jsxRuntimeExports.jsx(ConfirmationPopup,{titleComponent:jsxRuntimeExports.jsx(ConfirmationPopUpTitle$3,{children:accountRecon$2.reconciliation.drawer.includeConfirmation.heading(e.accountReconEntity.account.accountName)}),descriptionComponent:jsxRuntimeExports.jsx(ConfirmationPopUpDescription$2,{children:accountRecon$2.reconciliation.drawer.includeConfirmation.description}),primaryButtonText:common$3f.confirm,secondaryButtonText:common$3f.cancel,isLoading:"In-Progress"===t.fetchState,showLine:!1,action:{onOkClick:()=>{i()},onCancelClick:()=>{a(!1)}}}):null]})}const ExcludedAccountDetailsContent=({excludedAccountReconciliation:e})=>{const t="credit_card"===e.accountReconEntity.account.accountType?"bank_statement":"plaid";return jsxRuntimeExports.jsxs(AccountDetailContainer$2,{children:[jsxRuntimeExports.jsxs(BalancesContainer$f,{children:[jsxRuntimeExports.jsxs(BalanceColumn$2,{children:[jsxRuntimeExports.jsx(BalanceLabel$3,{children:accountRecon$2.reconciliation.headers.bankBalance}),jsxRuntimeExports.jsx(BalanceValue$1,{children:null!=e.accountReconEntity.balance?amountToString("0,0",e.accountReconEntity.balance):common$3f.strings.hyphen})]}),jsxRuntimeExports.jsxs(BalanceColumn$2,{children:[jsxRuntimeExports.jsx(BalanceLabel$3,{children:accountRecon$2.reconciliation.headers.clearedBalance}),jsxRuntimeExports.jsx(BalanceValue$1,{children:null!=e.accountReconEntity.clearedBalance?amountToString("0,0",e.accountReconEntity.clearedBalance):common$3f.strings.hyphen})]}),jsxRuntimeExports.jsxs(BalanceColumn$2,{children:[jsxRuntimeExports.jsx(BalanceLabel$3,{children:common$3f.texts.variance}),jsxRuntimeExports.jsx(ShowVariance$3,{variance:e.accountReconEntity.variance,variancePercentage:calculateVariancePercentage(e.accountReconEntity.variance,e.accountReconEntity.balance)})]})]}),jsxRuntimeExports.jsxs(SourceCard$2,{children:[jsxRuntimeExports.jsx(SourceHeading$2,{children:common$3f.texts.source}),jsxRuntimeExports.jsxs(SourceRows$1,{children:[jsxRuntimeExports.jsxs(SourceRow$1,{children:[jsxRuntimeExports.jsx(RowLabel$5,{children:common$3f.labels.type}),jsxRuntimeExports.jsx(RowValue$3,{children:"plaid"===t?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(BankIconStyled$4,{}),common$3f.texts.bankConnection]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(DocumentsIconStyled$4,{}),accountRecon$2.reconciliation.menu.statement]})})]}),jsxRuntimeExports.jsxs(SourceRow$1,{children:[jsxRuntimeExports.jsx(RowLabel$5,{children:common$3f.labels.status}),jsxRuntimeExports.jsxs(StatusContainer$m,{children:[jsxRuntimeExports.jsx(WarningIconStyled$2,{}),jsxRuntimeExports.jsx(ExcludedStatusText$2,{children:common$3f.texts.excluded})]})]}),jsxRuntimeExports.jsxs(SourceRow$1,{children:[jsxRuntimeExports.jsx(RowLabel$5,{children:common$3f.labels.accountType}),jsxRuntimeExports.jsx(RowValueContent$2,{children:formatToSentenceCase(e.accountReconEntity.account.accountSubType?.replace("_"," ")??common$3f.strings.hyphen)})]}),jsxRuntimeExports.jsxs(SourceRow$1,{children:[jsxRuntimeExports.jsx(RowLabel$5,{children:accountRecon$2.reconciliation.drawer.labels.lastUpdated}),jsxRuntimeExports.jsx(RowValueContent$2,{children:common$3f.strings.hyphen})]})]})]})]})},ShowVariance$3=({variance:e,variancePercentage:t})=>jsxRuntimeExports.jsxs(VarianceInnerContainer$1,{children:[jsxRuntimeExports.jsx(VarianceNumber$5,{children:amountToString("0,0",e)??common$3f.strings.hyphen}),null!=t?jsxRuntimeExports.jsxs(VariancePercentage$4,{children:[0===t?"0":t.toFixed(2),common$3f.strings.percentage]}):null]});function calculateVariancePercentage(e,t){if(null!=e&&null!=t&&0!==t.amount)return e.amount/t.amount*100}const METADATA_ROW_COUNT=4,FORM_FIELD_COUNT=4,TABLE_ROW_COUNT$1=3,TABLE_HEADER_COLUMNS=[{width:"30%",loaderWidth:90},{width:"22%",loaderWidth:60},{width:"24%",loaderWidth:140},{width:"24%",loaderWidth:55}],TABLE_ROW_COLUMN_LOADER_WIDTHS=[140,90,110,70],metadataKeys=["date","category","class","memo"],formKeys=["field-0","field-1","field-2","field-3"],tableKeys=["row-0","row-1","row-2"],ScheduleDetailSkeleton=()=>jsxRuntimeExports.jsxs(Container$7l,{children:[jsxRuntimeExports.jsxs(HeaderBlock$1,{children:[jsxRuntimeExports.jsxs(TitleRow$6,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:180,height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:sp[8],height:sp[3]}),jsxRuntimeExports.jsx(Spacer,{}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:96,height:sp[3]})]}),jsxRuntimeExports.jsx(MetadataRows,{children:metadataKeys.slice(0,METADATA_ROW_COUNT).map(e=>jsxRuntimeExports.jsxs(MetadataRow,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:96,height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:200,height:sp[3]})]},e))})]}),jsxRuntimeExports.jsxs(FormSection$5,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:140,height:sp[3]}),jsxRuntimeExports.jsx(FormCard$4,{children:formKeys.slice(0,FORM_FIELD_COUNT).map(e=>jsxRuntimeExports.jsxs(FormRow$3,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:120,height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:220,height:sp[3]})]},e))})]}),jsxRuntimeExports.jsxs(TableSection$8,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:160,height:sp[3]}),jsxRuntimeExports.jsxs(TableCard$1,{children:[jsxRuntimeExports.jsx(HeaderRow$q,{children:TABLE_HEADER_COLUMNS.map((e,t)=>jsxRuntimeExports.jsx(HeaderCell$e,{style:{width:e.width},children:jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:e.loaderWidth,height:sp[2]})},`hdr-${t}`))}),tableKeys.slice(0,TABLE_ROW_COUNT$1).map(e=>jsxRuntimeExports.jsx(RowCard$4,{children:TABLE_HEADER_COLUMNS.map((t,n)=>jsxRuntimeExports.jsx(DataCell$6,{style:{width:t.width},children:jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:TABLE_ROW_COLUMN_LOADER_WIDTHS[n],height:sp[3]})},`${e}-col-${n}`))},e))]})]})]}),Container$7l=styled$2.div`
|
|
8680
8680
|
display: flex;
|
|
8681
8681
|
flex-direction: column;
|
|
8682
8682
|
padding: ${Space.sp3} ${Space.sp8} ${Space.sp4} ${Space.sp8};
|
|
@@ -8724,7 +8724,7 @@
|
|
|
8724
8724
|
&:not(:first-of-type) {
|
|
8725
8725
|
border-top: 1px solid ${e=>e.theme.colors.grey2};
|
|
8726
8726
|
}
|
|
8727
|
-
`,TableSection$
|
|
8727
|
+
`,TableSection$8=styled$2.div`
|
|
8728
8728
|
display: flex;
|
|
8729
8729
|
flex-direction: column;
|
|
8730
8730
|
gap: ${Space.sp2};
|
|
@@ -10221,7 +10221,7 @@
|
|
|
10221
10221
|
padding-top: ${e=>D$4S.ButtonContainerPaddingTop.valuePx(e.windowSize)};
|
|
10222
10222
|
`,StyledDiv$X=styled$2.div``,StyledSSNCardTemplate=styled$2(SvgSsnCardFront)`
|
|
10223
10223
|
transform: scale(1, 0.9);
|
|
10224
|
-
`,BottomHeader=styled$2(H6Medium)``;function _mergeNamespaces$1(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function copyExifWithoutOrientation(e,t){return new Promise(function(n,o){let i;return getApp1Segment(e).then(function(e){try{return i=e,n(new Blob([t.slice(0,2),i,t.slice(2)],{type:"image/jpeg"}))}catch(r){return o(r)}},o)})}const getApp1Segment=e=>new Promise((t,n)=>{const o=new FileReader;o.addEventListener("load",({target:{result:e}})=>{const o=new DataView(e);let i=0;if(65496!==o.getUint16(i))return n("not a valid JPEG");for(i+=2;;){const r=o.getUint16(i);if(65498===r)break;const a=o.getUint16(i+2);if(65505===r&&1165519206===o.getUint32(i+4)){const r=i+10;let s;switch(o.getUint16(r)){case 18761:s=!0;break;case 19789:s=!1;break;default:return n("TIFF header contains invalid endian")}if(42!==o.getUint16(r+2,s))return n("TIFF header contains invalid version");const l=o.getUint32(r+4,s),c=r+l+2+12*o.getUint16(r+l,s);for(let e=r+l+2;e<c;e+=12)if(274==o.getUint16(e,s)){if(3!==o.getUint16(e+2,s))return n("Orientation data type is invalid");if(1!==o.getUint32(e+4,s))return n("Orientation data count is invalid");o.setUint16(e+8,1,s);break}return t(e.slice(i,i+2+a))}i+=2+a}return t(new Blob)}),o.readAsArrayBuffer(e)});var e={},t={get exports(){return e},set exports(t){e=t}},r2,i3,UZIP2;UZIP2={},t.exports=UZIP2,UZIP2.parse=function(e,t){for(var n=UZIP2.bin.readUshort,o=UZIP2.bin.readUint,i=0,r={},a=new Uint8Array(e),s=a.length-4;101010256!=o(a,s);)s--;i=s,i+=4;var l=n(a,i+=4);n(a,i+=2);var c=o(a,i+=2),d=o(a,i+=4);i+=4,i=d;for(var p=0;p<l;p++){o(a,i),i+=4,i+=4,i+=4,o(a,i+=4),c=o(a,i+=4);var u=o(a,i+=4),m=n(a,i+=4),h=n(a,i+2),g=n(a,i+4);i+=6;var x=o(a,i+=8);i+=4,i+=m+h+g,UZIP2._readLocal(a,x,r,c,u,t)}return r},UZIP2._readLocal=function(e,t,n,o,i,r){var a=UZIP2.bin.readUshort,s=UZIP2.bin.readUint;s(e,t),a(e,t+=4),a(e,t+=2);var l=a(e,t+=2);s(e,t+=2),s(e,t+=4),t+=4;var c=a(e,t+=8),d=a(e,t+=2);t+=2;var p=UZIP2.bin.readUTF8(e,t,c);if(t+=c,t+=d,r)n[p]={size:i,csize:o};else{var u=new Uint8Array(e.buffer,t);if(0==l)n[p]=new Uint8Array(u.buffer.slice(t,t+o));else{if(8!=l)throw"unknown compression method: "+l;var m=new Uint8Array(i);UZIP2.inflateRaw(u,m),n[p]=m}}},UZIP2.inflateRaw=function(e,t){return UZIP2.F.inflate(e,t)},UZIP2.inflate=function(e,t){return e[0],e[1],UZIP2.inflateRaw(new Uint8Array(e.buffer,e.byteOffset+2,e.length-6),t)},UZIP2.deflate=function(e,t){null==t&&(t={level:6});var n=0,o=new Uint8Array(50+Math.floor(1.1*e.length));o[n]=120,o[n+1]=156,n+=2,n=UZIP2.F.deflateRaw(e,o,n,t.level);var i=UZIP2.adler(e,0,e.length);return o[n+0]=i>>>24&255,o[n+1]=i>>>16&255,o[n+2]=i>>>8&255,o[n+3]=i>>>0&255,new Uint8Array(o.buffer,0,n+4)},UZIP2.deflateRaw=function(e,t){null==t&&(t={level:6});var n=new Uint8Array(50+Math.floor(1.1*e.length)),o=UZIP2.F.deflateRaw(e,n,o,t.level);return new Uint8Array(n.buffer,0,o)},UZIP2.encode=function(e,t){null==t&&(t=!1);var n=0,o=UZIP2.bin.writeUint,i=UZIP2.bin.writeUshort,r={};for(var a in e){var s=!UZIP2._noNeed(a)&&!t,l=e[a],c=UZIP2.crc.crc(l,0,l.length);r[a]={cpr:s,usize:l.length,crc:c,file:s?UZIP2.deflateRaw(l):l}}for(var a in r)n+=r[a].file.length+30+46+2*UZIP2.bin.sizeUTF8(a);n+=22;var d=new Uint8Array(n),p=0,u=[];for(var a in r){var m=r[a];u.push(p),p=UZIP2._writeHeader(d,p,a,m,0)}var h=0,g=p;for(var a in r)m=r[a],u.push(p),p=UZIP2._writeHeader(d,p,a,m,1,u[h++]);var x=p-g;return o(d,p,101010256),p+=4,i(d,p+=4,h),i(d,p+=2,h),o(d,p+=2,x),o(d,p+=4,g),p+=4,p+=2,d.buffer},UZIP2._noNeed=function(e){var t=e.split(".").pop().toLowerCase();return-1!="png,jpg,jpeg,zip".indexOf(t)},UZIP2._writeHeader=function(e,t,n,o,i,r){var a=UZIP2.bin.writeUint,s=UZIP2.bin.writeUshort,l=o.file;return a(e,t,0==i?67324752:33639248),t+=4,1==i&&(t+=2),s(e,t,20),s(e,t+=2,0),s(e,t+=2,o.cpr?8:0),a(e,t+=2,0),a(e,t+=4,o.crc),a(e,t+=4,l.length),a(e,t+=4,o.usize),s(e,t+=4,UZIP2.bin.sizeUTF8(n)),s(e,t+=2,0),t+=2,1==i&&(t+=2,t+=2,a(e,t+=6,r),t+=4),t+=UZIP2.bin.writeUTF8(e,t,n),0==i&&(e.set(l,t),t+=l.length),t},UZIP2.crc={table:function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var n=t,o=0;o<8;o++)1&n?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e}(),update:function(e,t,n,o){for(var i=0;i<o;i++)e=UZIP2.crc.table[255&(e^t[n+i])]^e>>>8;return e},crc:function(e,t,n){return 4294967295^UZIP2.crc.update(4294967295,e,t,n)}},UZIP2.adler=function(e,t,n){for(var o=1,i=0,r=t,a=t+n;r<a;){for(var s=Math.min(r+5552,a);r<s;)i+=o+=e[r++];o%=65521,i%=65521}return i<<16|o},UZIP2.bin={readUshort:function(e,t){return e[t]|e[t+1]<<8},writeUshort:function(e,t,n){e[t]=255&n,e[t+1]=n>>8&255},readUint:function(e,t){return 16777216*e[t+3]+(e[t+2]<<16|e[t+1]<<8|e[t])},writeUint:function(e,t,n){e[t]=255&n,e[t+1]=n>>8&255,e[t+2]=n>>16&255,e[t+3]=n>>24&255},readASCII:function(e,t,n){for(var o="",i=0;i<n;i++)o+=String.fromCharCode(e[t+i]);return o},writeASCII:function(e,t,n){for(var o=0;o<n.length;o++)e[t+o]=n.charCodeAt(o)},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,n){for(var o,i="",r=0;r<n;r++)i+="%"+UZIP2.bin.pad(e[t+r].toString(16));try{o=decodeURIComponent(i)}catch(a){return UZIP2.bin.readASCII(e,t,n)}return o},writeUTF8:function(e,t,n){for(var o=n.length,i=0,r=0;r<o;r++){var a=n.charCodeAt(r);if(4294967168&a)if(4294965248&a)if(4294901760&a){if(4292870144&a)throw"e";e[t+i]=240|a>>18,e[t+i+1]=128|a>>12&63,e[t+i+2]=128|a>>6&63,e[t+i+3]=128|63&a,i+=4}else e[t+i]=224|a>>12,e[t+i+1]=128|a>>6&63,e[t+i+2]=128|63&a,i+=3;else e[t+i]=192|a>>6,e[t+i+1]=128|63&a,i+=2;else e[t+i]=a,i++}return i},sizeUTF8:function(e){for(var t=e.length,n=0,o=0;o<t;o++){var i=e.charCodeAt(o);if(4294967168&i)if(4294965248&i)if(4294901760&i){if(4292870144&i)throw"e";n+=4}else n+=3;else n+=2;else n++}return n}},UZIP2.F={},UZIP2.F.deflateRaw=function(e,t,n,o){var i=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][o],r=UZIP2.F.U,a=UZIP2.F._goodIndex;UZIP2.F._hash;var s=UZIP2.F._putsE,l=0,c=n<<3,d=0,p=e.length;if(0==o){for(;l<p;)s(t,c,l+(v=Math.min(65535,p-l))==p?1:0),c=UZIP2.F._copyExact(e,l,v,t,c+8),l+=v;return c>>>3}var u=r.lits,m=r.strt,h=r.prev,g=0,x=0,f=0,y=0,S=0,C=0;for(p>2&&(m[C=UZIP2.F._hash(e,0)]=0),l=0;l<p;l++){if(S=C,l+1<p-2){C=UZIP2.F._hash(e,l+1);var b=l+1&32767;h[b]=m[C],m[C]=b}if(d<=l){(g>14e3||x>26697)&&p-l>100&&(d<l&&(u[g]=l-d,g+=2,d=l),c=UZIP2.F._writeBlock(l==p-1||d==p?1:0,u,g,y,e,f,l-f,t,c),g=x=y=0,f=l);var $=0;l<p-2&&($=UZIP2.F._bestMatch(e,l,h,S,Math.min(i[2],p-l),i[3]));var v=$>>>16,E=65535&$;if(0!=$){E=65535&$;var w=a(v=$>>>16,r.of0);r.lhst[257+w]++;var R=a(E,r.df0);r.dhst[R]++,y+=r.exb[w]+r.dxb[R],u[g]=v<<23|l-d,u[g+1]=E<<16|w<<8|R,g+=2,d=l+v}else r.lhst[e[l]]++;x++}}for(f==l&&0!=e.length||(d<l&&(u[g]=l-d,g+=2,d=l),c=UZIP2.F._writeBlock(1,u,g,y,e,f,l-f,t,c),g=0,x=0,g=x=y=0,f=l);7&c;)c++;return c>>>3},UZIP2.F._bestMatch=function(e,t,n,o,i,r){var a=32767&t,s=n[a],l=a-s+32768&32767;if(s==a||o!=UZIP2.F._hash(e,t-l))return 0;for(var c=0,d=0,p=Math.min(32767,t);l<=p&&0!=--r&&s!=a;){if(0==c||e[t+c]==e[t+c-l]){var u=UZIP2.F._howLong(e,t,l);if(u>c){if(d=l,(c=u)>=i)break;l+2<u&&(u=l+2);for(var m=0,h=0;h<u-2;h++){var g=t-l+h+32768&32767,x=g-n[g]+32768&32767;x>m&&(m=x,s=g)}}}l+=(a=s)-(s=n[a])+32768&32767}return c<<16|d},UZIP2.F._howLong=function(e,t,n){if(e[t]!=e[t-n]||e[t+1]!=e[t+1-n]||e[t+2]!=e[t+2-n])return 0;var o=t,i=Math.min(e.length,t+258);for(t+=3;t<i&&e[t]==e[t-n];)t++;return t-o},UZIP2.F._hash=function(e,t){return(e[t]<<8|e[t+1])+(e[t+2]<<4)&65535},UZIP2.saved=0,UZIP2.F._writeBlock=function(e,t,n,o,i,r,a,s,l){var c,d,p,u,m,h,g,x,f,y=UZIP2.F.U,S=UZIP2.F._putsF,C=UZIP2.F._putsE;y.lhst[256]++,d=(c=UZIP2.F.getTrees())[0],p=c[1],u=c[2],m=c[3],h=c[4],g=c[5],x=c[6],f=c[7];var b=32+(l+3&7?8-(l+3&7):0)+(a<<3),$=o+UZIP2.F.contSize(y.fltree,y.lhst)+UZIP2.F.contSize(y.fdtree,y.dhst),v=o+UZIP2.F.contSize(y.ltree,y.lhst)+UZIP2.F.contSize(y.dtree,y.dhst);v+=14+3*g+UZIP2.F.contSize(y.itree,y.ihst)+(2*y.ihst[16]+3*y.ihst[17]+7*y.ihst[18]);for(var E=0;E<286;E++)y.lhst[E]=0;for(E=0;E<30;E++)y.dhst[E]=0;for(E=0;E<19;E++)y.ihst[E]=0;var w=b<$&&b<v?0:$<v?1:2;if(S(s,l,e),S(s,l+1,w),l+=3,0==w){for(;7&l;)l++;l=UZIP2.F._copyExact(i,r,a,s,l)}else{var R,A;if(1==w&&(R=y.fltree,A=y.fdtree),2==w){UZIP2.F.makeCodes(y.ltree,d),UZIP2.F.revCodes(y.ltree,d),UZIP2.F.makeCodes(y.dtree,p),UZIP2.F.revCodes(y.dtree,p),UZIP2.F.makeCodes(y.itree,u),UZIP2.F.revCodes(y.itree,u),R=y.ltree,A=y.dtree,C(s,l,m-257),C(s,l+=5,h-1),C(s,l+=5,g-4),l+=4;for(var j=0;j<g;j++)C(s,l+3*j,y.itree[1+(y.ordr[j]<<1)]);l+=3*g,l=UZIP2.F._codeTiny(x,y.itree,s,l),l=UZIP2.F._codeTiny(f,y.itree,s,l)}for(var T=r,I=0;I<n;I+=2){for(var k=t[I],L=k>>>23,D=T+(8388607&k);T<D;)l=UZIP2.F._writeLit(i[T++],R,s,l);if(0!=L){var _=t[I+1],P=_>>16,B=_>>8&255,M=255&_;C(s,l=UZIP2.F._writeLit(257+B,R,s,l),L-y.of0[B]),l+=y.exb[B],S(s,l=UZIP2.F._writeLit(M,A,s,l),P-y.df0[M]),l+=y.dxb[M],T+=L}}l=UZIP2.F._writeLit(256,R,s,l)}return l},UZIP2.F._copyExact=function(e,t,n,o,i){var r=i>>>3;return o[r]=n,o[r+1]=n>>>8,o[r+2]=255-o[r],o[r+3]=255-o[r+1],r+=4,o.set(new Uint8Array(e.buffer,t,n),r),i+(n+4<<3)},UZIP2.F.getTrees=function(){for(var e=UZIP2.F.U,t=UZIP2.F._hufTree(e.lhst,e.ltree,15),n=UZIP2.F._hufTree(e.dhst,e.dtree,15),o=[],i=UZIP2.F._lenCodes(e.ltree,o),r=[],a=UZIP2.F._lenCodes(e.dtree,r),s=0;s<o.length;s+=2)e.ihst[o[s]]++;for(s=0;s<r.length;s+=2)e.ihst[r[s]]++;for(var l=UZIP2.F._hufTree(e.ihst,e.itree,7),c=19;c>4&&0==e.itree[1+(e.ordr[c-1]<<1)];)c--;return[t,n,l,i,a,c,o,r]},UZIP2.F.getSecond=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(e[n+1]);return t},UZIP2.F.nonZero=function(e){for(var t="",n=0;n<e.length;n+=2)0!=e[n+1]&&(t+=(n>>1)+",");return t},UZIP2.F.contSize=function(e,t){for(var n=0,o=0;o<t.length;o++)n+=t[o]*e[1+(o<<1)];return n},UZIP2.F._codeTiny=function(e,t,n,o){for(var i=0;i<e.length;i+=2){var r=e[i],a=e[i+1];o=UZIP2.F._writeLit(r,t,n,o);var s=16==r?2:17==r?3:7;r>15&&(UZIP2.F._putsE(n,o,a,s),o+=s)}return o},UZIP2.F._lenCodes=function(e,t){for(var n=e.length;2!=n&&0==e[n-1];)n-=2;for(var o=0;o<n;o+=2){var i=e[o+1],r=o+3<n?e[o+3]:-1,a=o+5<n?e[o+5]:-1,s=0==o?-1:e[o-1];if(0==i&&r==i&&a==i){for(var l=o+5;l+2<n&&e[l+2]==i;)l+=2;(c=Math.min(l+1-o>>>1,138))<11?t.push(17,c-3):t.push(18,c-11),o+=2*c-2}else if(i==s&&r==i&&a==i){for(l=o+5;l+2<n&&e[l+2]==i;)l+=2;var c=Math.min(l+1-o>>>1,6);t.push(16,c-3),o+=2*c-2}else t.push(i,0)}return n>>>1},UZIP2.F._hufTree=function(e,t,n){var o=[],i=e.length,r=t.length,a=0;for(a=0;a<r;a+=2)t[a]=0,t[a+1]=0;for(a=0;a<i;a++)0!=e[a]&&o.push({lit:a,f:e[a]});var s=o.length,l=o.slice(0);if(0==s)return 0;if(1==s){var c=o[0].lit;return l=0==c?1:0,t[1+(c<<1)]=1,t[1+(l<<1)]=1,1}o.sort(function(e,t){return e.f-t.f});var d=o[0],p=o[1],u=0,m=1,h=2;for(o[0]={lit:-1,f:d.f+p.f,l:d,r:p,d:0};m!=s-1;)d=u!=m&&(h==s||o[u].f<o[h].f)?o[u++]:o[h++],p=u!=m&&(h==s||o[u].f<o[h].f)?o[u++]:o[h++],o[m++]={lit:-1,f:d.f+p.f,l:d,r:p};var g=UZIP2.F.setDepth(o[m-1],0);for(g>n&&(UZIP2.F.restrictDepth(l,n,g),g=n),a=0;a<s;a++)t[1+(l[a].lit<<1)]=l[a].d;return g},UZIP2.F.setDepth=function(e,t){return-1!=e.lit?(e.d=t,t):Math.max(UZIP2.F.setDepth(e.l,t+1),UZIP2.F.setDepth(e.r,t+1))},UZIP2.F.restrictDepth=function(e,t,n){var o=0,i=1<<n-t,r=0;for(e.sort(function(e,t){return t.d==e.d?e.f-t.f:t.d-e.d}),o=0;o<e.length&&e[o].d>t;o++){var a=e[o].d;e[o].d=t,r+=i-(1<<n-a)}for(r>>>=n-t;r>0;)(a=e[o].d)<t?(e[o].d++,r-=1<<t-a-1):o++;for(;o>=0;o--)e[o].d==t&&r<0&&(e[o].d--,r++);0!=r&&console.log("debt left")},UZIP2.F._goodIndex=function(e,t){var n=0;return t[16|n]<=e&&(n|=16),t[8|n]<=e&&(n|=8),t[4|n]<=e&&(n|=4),t[2|n]<=e&&(n|=2),t[1|n]<=e&&(n|=1),n},UZIP2.F._writeLit=function(e,t,n,o){return UZIP2.F._putsF(n,o,t[e<<1]),o+t[1+(e<<1)]},UZIP2.F.inflate=function(e,t){var n=Uint8Array;if(3==e[0]&&0==e[1])return t||new n(0);var o=UZIP2.F,i=o._bitsF,r=o._bitsE,a=o._decodeTiny,s=o.makeCodes,l=o.codes2map,c=o._get17,d=o.U,p=null==t;p&&(t=new n(e.length>>>2<<3));for(var u,m,h=0,g=0,x=0,f=0,y=0,S=0,C=0,b=0,$=0;0==h;)if(h=i(e,$,1),g=i(e,$+1,2),$+=3,0!=g){if(p&&(t=UZIP2.F._check(t,b+(1<<17))),1==g&&(u=d.flmap,m=d.fdmap,S=511,C=31),2==g){x=r(e,$,5)+257,f=r(e,$+5,5)+1,y=r(e,$+10,4)+4,$+=14;for(var v=0;v<38;v+=2)d.itree[v]=0,d.itree[v+1]=0;var E=1;for(v=0;v<y;v++){var w=r(e,$+3*v,3);d.itree[1+(d.ordr[v]<<1)]=w,w>E&&(E=w)}$+=3*y,s(d.itree,E),l(d.itree,E,d.imap),u=d.lmap,m=d.dmap,$=a(d.imap,(1<<E)-1,x+f,e,$,d.ttree);var R=o._copyOut(d.ttree,0,x,d.ltree);S=(1<<R)-1;var A=o._copyOut(d.ttree,x,f,d.dtree);C=(1<<A)-1,s(d.ltree,R),l(d.ltree,R,u),s(d.dtree,A),l(d.dtree,A,m)}for(;;){var j=u[c(e,$)&S];$+=15&j;var T=j>>>4;if(T>>>8==0)t[b++]=T;else{if(256==T)break;var I=b+T-254;if(T>264){var k=d.ldef[T-257];I=b+(k>>>3)+r(e,$,7&k),$+=7&k}var L=m[c(e,$)&C];$+=15&L;var D=L>>>4,_=d.ddef[D],P=(_>>>4)+i(e,$,15&_);for($+=15&_,p&&(t=UZIP2.F._check(t,b+(1<<17)));b<I;)t[b]=t[b++-P],t[b]=t[b++-P],t[b]=t[b++-P],t[b]=t[b++-P];b=I}}}else{7&$&&($+=8-(7&$));var B=4+($>>>3),M=e[B-4]|e[B-3]<<8;p&&(t=UZIP2.F._check(t,b+M)),t.set(new n(e.buffer,e.byteOffset+B,M),b),$=B+M<<3,b+=M}return t.length==b?t:t.slice(0,b)},UZIP2.F._check=function(e,t){var n=e.length;if(t<=n)return e;var o=new Uint8Array(Math.max(n<<1,t));return o.set(e,0),o},UZIP2.F._decodeTiny=function(e,t,n,o,i,r){for(var a=UZIP2.F._bitsE,s=UZIP2.F._get17,l=0;l<n;){var c=e[s(o,i)&t];i+=15&c;var d=c>>>4;if(d<=15)r[l]=d,l++;else{var p=0,u=0;16==d?(u=3+a(o,i,2),i+=2,p=r[l-1]):17==d?(u=3+a(o,i,3),i+=3):18==d&&(u=11+a(o,i,7),i+=7);for(var m=l+u;l<m;)r[l]=p,l++}}return i},UZIP2.F._copyOut=function(e,t,n,o){for(var i=0,r=0,a=o.length>>>1;r<n;){var s=e[r+t];o[r<<1]=0,o[1+(r<<1)]=s,s>i&&(i=s),r++}for(;r<a;)o[r<<1]=0,o[1+(r<<1)]=0,r++;return i},UZIP2.F.makeCodes=function(e,t){for(var n,o,i,r,a=UZIP2.F.U,s=e.length,l=a.bl_count,c=0;c<=t;c++)l[c]=0;for(c=1;c<s;c+=2)l[e[c]]++;var d=a.next_code;for(n=0,l[0]=0,o=1;o<=t;o++)n=n+l[o-1]<<1,d[o]=n;for(i=0;i<s;i+=2)0!=(r=e[i+1])&&(e[i]=d[r],d[r]++)},UZIP2.F.codes2map=function(e,t,n){for(var o=e.length,i=UZIP2.F.U.rev15,r=0;r<o;r+=2)if(0!=e[r+1])for(var a=r>>1,s=e[r+1],l=a<<4|s,c=t-s,d=e[r]<<c,p=d+(1<<c);d!=p;)n[i[d]>>>15-t]=l,d++},UZIP2.F.revCodes=function(e,t){for(var n=UZIP2.F.U.rev15,o=15-t,i=0;i<e.length;i+=2){var r=e[i]<<t-e[i+1];e[i]=n[r]>>>o}},UZIP2.F._putsE=function(e,t,n){n<<=7&t;var o=t>>>3;e[o]|=n,e[o+1]|=n>>>8},UZIP2.F._putsF=function(e,t,n){n<<=7&t;var o=t>>>3;e[o]|=n,e[o+1]|=n>>>8,e[o+2]|=n>>>16},UZIP2.F._bitsE=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<n)-1},UZIP2.F._bitsF=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<n)-1},UZIP2.F._get17=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},UZIP2.F._get25=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},UZIP2.F.U=(r2=Uint16Array,i3=Uint32Array,{next_code:new r2(16),bl_count:new r2(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new r2(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new i3(32),flmap:new r2(512),fltree:[],fdmap:new r2(32),fdtree:[],lmap:new r2(32768),ltree:[],ttree:[],dmap:new r2(32768),dtree:[],imap:new r2(512),itree:[],rev15:new r2(32768),lhst:new i3(286),dhst:new i3(30),ihst:new i3(19),lits:new i3(15e3),strt:new r2(65536),prev:new r2(32768)}),function(){for(var e=UZIP2.F.U,t=0;t<32768;t++){var n=t;n=(4278255360&(n=(4042322160&(n=(3435973836&(n=(2863311530&n)>>>1|(1431655765&n)<<1))>>>2|(858993459&n)<<2))>>>4|(252645135&n)<<4))>>>8|(16711935&n)<<8,e.rev15[t]=(n>>>16|n<<16)>>>17}function o(e,t,n){for(;0!=t--;)e.push(0,n)}for(t=0;t<32;t++)e.ldef[t]=e.of0[t]<<3|e.exb[t],e.ddef[t]=e.df0[t]<<4|e.dxb[t];o(e.fltree,144,8),o(e.fltree,112,9),o(e.fltree,24,7),o(e.fltree,8,8),UZIP2.F.makeCodes(e.fltree,9),UZIP2.F.codes2map(e.fltree,9,e.flmap),UZIP2.F.revCodes(e.fltree,9),o(e.fdtree,32,5),UZIP2.F.makeCodes(e.fdtree,5),UZIP2.F.codes2map(e.fdtree,5,e.fdmap),UZIP2.F.revCodes(e.fdtree,5),o(e.itree,19,0),o(e.ltree,286,0),o(e.dtree,30,0),o(e.ttree,320,0)}();var UZIP=_mergeNamespaces$1({__proto__:null,default:e},[e]);const UPNG=function(){var e={nextZero(e,t){for(;0!=e[t];)t++;return t},readUshort:(e,t)=>e[t]<<8|e[t+1],writeUshort(e,t,n){e[t]=n>>8&255,e[t+1]=255&n},readUint:(e,t)=>16777216*e[t]+(e[t+1]<<16|e[t+2]<<8|e[t+3]),writeUint(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n},readASCII(e,t,n){let o="";for(let i=0;i<n;i++)o+=String.fromCharCode(e[t+i]);return o},writeASCII(e,t,n){for(let o=0;o<n.length;o++)e[t+o]=n.charCodeAt(o)},readBytes(e,t,n){const o=[];for(let i=0;i<n;i++)o.push(e[t+i]);return o},pad:e=>e.length<2?`0${e}`:e,readUTF8(t,n,o){let i,r="";for(let s=0;s<o;s++)r+=`%${e.pad(t[n+s].toString(16))}`;try{i=decodeURIComponent(r)}catch(a){return e.readASCII(t,n,o)}return i}};function t(t,n,o,i){const a=n*o,s=r(i),l=Math.ceil(n*s/8),c=new Uint8Array(4*a),d=new Uint32Array(c.buffer),{ctype:p}=i,{depth:u}=i,m=e.readUshort;if(6==p){const e=a<<2;if(8==u)for(var h=0;h<e;h+=4)c[h]=t[h],c[h+1]=t[h+1],c[h+2]=t[h+2],c[h+3]=t[h+3];if(16==u)for(h=0;h<e;h++)c[h]=t[h<<1]}else if(2==p){const e=i.tabs.tRNS;if(null==e){if(8==u)for(h=0;h<a;h++){var g=3*h;d[h]=255<<24|t[g+2]<<16|t[g+1]<<8|t[g]}if(16==u)for(h=0;h<a;h++)g=6*h,d[h]=255<<24|t[g+4]<<16|t[g+2]<<8|t[g]}else{var x=e[0];const n=e[1],o=e[2];if(8==u)for(h=0;h<a;h++){var f=h<<2;g=3*h,d[h]=255<<24|t[g+2]<<16|t[g+1]<<8|t[g],t[g]==x&&t[g+1]==n&&t[g+2]==o&&(c[f+3]=0)}if(16==u)for(h=0;h<a;h++)f=h<<2,g=6*h,d[h]=255<<24|t[g+4]<<16|t[g+2]<<8|t[g],m(t,g)==x&&m(t,g+2)==n&&m(t,g+4)==o&&(c[f+3]=0)}}else if(3==p){const e=i.tabs.PLTE,r=i.tabs.tRNS,s=r?r.length:0;if(1==u)for(var y=0;y<o;y++){var S=y*l,C=y*n;for(h=0;h<n;h++){f=C+h<<2;var b=3*($=t[S+(h>>3)]>>7-(7&h)&1);c[f]=e[b],c[f+1]=e[b+1],c[f+2]=e[b+2],c[f+3]=$<s?r[$]:255}}if(2==u)for(y=0;y<o;y++)for(S=y*l,C=y*n,h=0;h<n;h++)f=C+h<<2,b=3*($=t[S+(h>>2)]>>6-((3&h)<<1)&3),c[f]=e[b],c[f+1]=e[b+1],c[f+2]=e[b+2],c[f+3]=$<s?r[$]:255;if(4==u)for(y=0;y<o;y++)for(S=y*l,C=y*n,h=0;h<n;h++)f=C+h<<2,b=3*($=t[S+(h>>1)]>>4-((1&h)<<2)&15),c[f]=e[b],c[f+1]=e[b+1],c[f+2]=e[b+2],c[f+3]=$<s?r[$]:255;if(8==u)for(h=0;h<a;h++){var $;f=h<<2,b=3*($=t[h]),c[f]=e[b],c[f+1]=e[b+1],c[f+2]=e[b+2],c[f+3]=$<s?r[$]:255}}else if(4==p){if(8==u)for(h=0;h<a;h++){f=h<<2;var v=t[E=h<<1];c[f]=v,c[f+1]=v,c[f+2]=v,c[f+3]=t[E+1]}if(16==u)for(h=0;h<a;h++){var E;f=h<<2,v=t[E=h<<2],c[f]=v,c[f+1]=v,c[f+2]=v,c[f+3]=t[E+2]}}else if(0==p)for(x=i.tabs.tRNS?i.tabs.tRNS:-1,y=0;y<o;y++){const e=y*l,o=y*n;if(1==u)for(var w=0;w<n;w++){var R=(v=255*(t[e+(w>>>3)]>>>7-(7&w)&1))==255*x?0:255;d[o+w]=R<<24|v<<16|v<<8|v}else if(2==u)for(w=0;w<n;w++)R=(v=85*(t[e+(w>>>2)]>>>6-((3&w)<<1)&3))==85*x?0:255,d[o+w]=R<<24|v<<16|v<<8|v;else if(4==u)for(w=0;w<n;w++)R=(v=17*(t[e+(w>>>1)]>>>4-((1&w)<<2)&15))==17*x?0:255,d[o+w]=R<<24|v<<16|v<<8|v;else if(8==u)for(w=0;w<n;w++)R=(v=t[e+w])==x?0:255,d[o+w]=R<<24|v<<16|v<<8|v;else if(16==u)for(w=0;w<n;w++)v=t[e+(w<<1)],R=m(t,e+(w<<1))==x?0:255,d[o+w]=R<<24|v<<16|v<<8|v}return c}function n(e,t,n,s){const l=r(e),c=Math.ceil(n*l/8),d=new Uint8Array((c+1+e.interlace)*s);return t=e.tabs.CgBI?i(t,d):o(t,d),0==e.interlace?t=a(t,e,0,n,s):1==e.interlace&&(t=function(e,t){const n=t.width,o=t.height,i=r(t),s=i>>3,l=Math.ceil(n*i/8),c=new Uint8Array(o*l);let d=0;const p=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],m=[8,8,8,4,4,2,2],h=[8,8,4,4,2,2,1];let g=0;for(;g<7;){const r=m[g],f=h[g];let y=0,S=0,C=p[g];for(;C<o;)C+=r,S++;let b=u[g];for(;b<n;)b+=f,y++;const $=Math.ceil(y*i/8);a(e,t,d,y,S);let v=0,E=p[g];for(;E<o;){let t=u[g],o=d+v*$<<3;for(;t<n;){var x;if(1==i&&(x=(x=e[o>>3])>>7-(7&o)&1,c[E*l+(t>>3)]|=x<<7-(7&t)),2==i&&(x=(x=e[o>>3])>>6-(7&o)&3,c[E*l+(t>>2)]|=x<<6-((3&t)<<1)),4==i&&(x=(x=e[o>>3])>>4-(7&o)&15,c[E*l+(t>>1)]|=x<<4-((1&t)<<2)),i>=8){const n=E*l+t*s;for(let t=0;t<s;t++)c[n+t]=e[(o>>3)+t]}o+=i,t+=f}v++,E+=r}y*S!=0&&(d+=S*(1+$)),g+=1}return c}(t,e)),t}function o(e,t){return i(new Uint8Array(e.buffer,2,e.length-6),t)}var i=function(){const e={H:{}};return e.H.N=function(t,n){const o=Uint8Array;let i,r,a=0,s=0,l=0,c=0,d=0,p=0,u=0,m=0,h=0;if(3==t[0]&&0==t[1])return n||new o(0);const g=e.H,x=g.b,f=g.e,y=g.R,S=g.n,C=g.A,b=g.Z,$=g.m,v=null==n;for(v&&(n=new o(t.length>>>2<<5));0==a;)if(a=x(t,h,1),s=x(t,h+1,2),h+=3,0!=s){if(v&&(n=e.H.W(n,m+(1<<17))),1==s&&(i=$.J,r=$.h,p=511,u=31),2==s){l=f(t,h,5)+257,c=f(t,h+5,5)+1,d=f(t,h+10,4)+4,h+=14;let e=1;for(var E=0;E<38;E+=2)$.Q[E]=0,$.Q[E+1]=0;for(E=0;E<d;E++){const n=f(t,h+3*E,3);$.Q[1+($.X[E]<<1)]=n,n>e&&(e=n)}h+=3*d,S($.Q,e),C($.Q,e,$.u),i=$.w,r=$.d,h=y($.u,(1<<e)-1,l+c,t,h,$.v);const n=g.V($.v,0,l,$.C);p=(1<<n)-1;const o=g.V($.v,l,c,$.D);u=(1<<o)-1,S($.C,n),C($.C,n,i),S($.D,o),C($.D,o,r)}for(;;){const e=i[b(t,h)&p];h+=15&e;const o=e>>>4;if(o>>>8==0)n[m++]=o;else{if(256==o)break;{let e=m+o-254;if(o>264){const n=$.q[o-257];e=m+(n>>>3)+f(t,h,7&n),h+=7&n}const i=r[b(t,h)&u];h+=15&i;const a=i>>>4,s=$.c[a],l=(s>>>4)+x(t,h,15&s);for(h+=15&s;m<e;)n[m]=n[m++-l],n[m]=n[m++-l],n[m]=n[m++-l],n[m]=n[m++-l];m=e}}}}else{7&h&&(h+=8-(7&h));const i=4+(h>>>3),r=t[i-4]|t[i-3]<<8;v&&(n=e.H.W(n,m+r)),n.set(new o(t.buffer,t.byteOffset+i,r),m),h=i+r<<3,m+=r}return n.length==m?n:n.slice(0,m)},e.H.W=function(e,t){const n=e.length;if(t<=n)return e;const o=new Uint8Array(n<<1);return o.set(e,0),o},e.H.R=function(t,n,o,i,r,a){const s=e.H.e,l=e.H.Z;let c=0;for(;c<o;){const e=t[l(i,r)&n];r+=15&e;const o=e>>>4;if(o<=15)a[c]=o,c++;else{let e=0,t=0;16==o?(t=3+s(i,r,2),r+=2,e=a[c-1]):17==o?(t=3+s(i,r,3),r+=3):18==o&&(t=11+s(i,r,7),r+=7);const n=c+t;for(;c<n;)a[c]=e,c++}}return r},e.H.V=function(e,t,n,o){let i=0,r=0;const a=o.length>>>1;for(;r<n;){const n=e[r+t];o[r<<1]=0,o[1+(r<<1)]=n,n>i&&(i=n),r++}for(;r<a;)o[r<<1]=0,o[1+(r<<1)]=0,r++;return i},e.H.n=function(t,n){const o=e.H.m,i=t.length;let r,a,s,l;const c=o.j;for(var d=0;d<=n;d++)c[d]=0;for(d=1;d<i;d+=2)c[t[d]]++;const p=o.K;for(r=0,c[0]=0,a=1;a<=n;a++)r=r+c[a-1]<<1,p[a]=r;for(s=0;s<i;s+=2)l=t[s+1],0!=l&&(t[s]=p[l],p[l]++)},e.H.A=function(t,n,o){const i=t.length,r=e.H.m.r;for(let e=0;e<i;e+=2)if(0!=t[e+1]){const i=e>>1,a=t[e+1],s=i<<4|a,l=n-a;let c=t[e]<<l;const d=c+(1<<l);for(;c!=d;)o[r[c]>>>15-n]=s,c++}},e.H.l=function(t,n){const o=e.H.m.r,i=15-n;for(let e=0;e<t.length;e+=2){const r=t[e]<<n-t[e+1];t[e]=o[r]>>>i}},e.H.M=function(e,t,n){n<<=7&t;const o=t>>>3;e[o]|=n,e[o+1]|=n>>>8},e.H.I=function(e,t,n){n<<=7&t;const o=t>>>3;e[o]|=n,e[o+1]|=n>>>8,e[o+2]|=n>>>16},e.H.e=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<n)-1},e.H.b=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<n)-1},e.H.Z=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},e.H.i=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},e.H.m=function(){const e=Uint16Array,t=Uint32Array;return{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new e(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new t(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new e(65536),g:new e(32768)}}(),function(){const t=e.H.m;for(var n=0;n<32768;n++){let e=n;e=(2863311530&e)>>>1|(1431655765&e)<<1,e=(3435973836&e)>>>2|(858993459&e)<<2,e=(4042322160&e)>>>4|(252645135&e)<<4,e=(4278255360&e)>>>8|(16711935&e)<<8,t.r[n]=(e>>>16|e<<16)>>>17}function o(e,t,n){for(;0!=t--;)e.push(0,n)}for(n=0;n<32;n++)t.q[n]=t.S[n]<<3|t.T[n],t.c[n]=t.p[n]<<4|t.z[n];o(t._,144,8),o(t._,112,9),o(t._,24,7),o(t._,8,8),e.H.n(t._,9),e.H.A(t._,9,t.J),e.H.l(t._,9),o(t.$,32,5),e.H.n(t.$,5),e.H.A(t.$,5,t.h),e.H.l(t.$,5),o(t.Q,19,0),o(t.C,286,0),o(t.D,30,0),o(t.v,320,0)}(),e.H.N}();function r(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth}function a(e,t,n,o,i){let a=r(t);const l=Math.ceil(o*a/8);let c,d;a=Math.ceil(a/8);let p=e[n],u=0;if(p>1&&(e[n]=[0,0,1][p-2]),3==p)for(u=a;u<l;u++)e[u+1]=e[u+1]+(e[u+1-a]>>>1)&255;for(let r=0;r<i;r++)if(c=n+r*l,d=c+r+1,p=e[d-1],u=0,0==p)for(;u<l;u++)e[c+u]=e[d+u];else if(1==p){for(;u<a;u++)e[c+u]=e[d+u];for(;u<l;u++)e[c+u]=e[d+u]+e[c+u-a]}else if(2==p)for(;u<l;u++)e[c+u]=e[d+u]+e[c+u-l];else if(3==p){for(;u<a;u++)e[c+u]=e[d+u]+(e[c+u-l]>>>1);for(;u<l;u++)e[c+u]=e[d+u]+(e[c+u-l]+e[c+u-a]>>>1)}else{for(;u<a;u++)e[c+u]=e[d+u]+s(0,e[c+u-l],0);for(;u<l;u++)e[c+u]=e[d+u]+s(e[c+u-a],e[c+u-l],e[c+u-a-l])}return e}function s(e,t,n){const o=e+t-n,i=o-e,r=o-t,a=o-n;return i*i<=r*r&&i*i<=a*a?e:r*r<=a*a?t:n}function l(t,n,o){o.width=e.readUint(t,n),n+=4,o.height=e.readUint(t,n),n+=4,o.depth=t[n],n++,o.ctype=t[n],n++,o.compress=t[n],n++,o.filter=t[n],n++,o.interlace=t[n],n++}function c(e,t,n,o,i,r,a,s,l){const c=Math.min(t,i),d=Math.min(n,r);let p=0,u=0;for(let b=0;b<d;b++)for(let n=0;n<c;n++)if(a>=0&&s>=0?(p=b*t+n<<2,u=(s+b)*i+a+n<<2):(p=(-s+b)*t-a+n<<2,u=b*i+n<<2),0==l)o[u]=e[p],o[u+1]=e[p+1],o[u+2]=e[p+2],o[u+3]=e[p+3];else if(1==l){var m=e[p+3]*(1/255),h=e[p]*m,g=e[p+1]*m,x=e[p+2]*m,f=o[u+3]*(1/255),y=o[u]*f,S=o[u+1]*f,C=o[u+2]*f;const t=1-m,n=m+f*t,i=0==n?0:1/n;o[u+3]=255*n,o[u+0]=(h+y*t)*i,o[u+1]=(g+S*t)*i,o[u+2]=(x+C*t)*i}else if(2==l)m=e[p+3],h=e[p],g=e[p+1],x=e[p+2],f=o[u+3],y=o[u],S=o[u+1],C=o[u+2],m==f&&h==y&&g==S&&x==C?(o[u]=0,o[u+1]=0,o[u+2]=0,o[u+3]=0):(o[u]=h,o[u+1]=g,o[u+2]=x,o[u+3]=m);else if(3==l){if(m=e[p+3],h=e[p],g=e[p+1],x=e[p+2],f=o[u+3],y=o[u],S=o[u+1],C=o[u+2],m==f&&h==y&&g==S&&x==C)continue;if(m<220&&f>20)return!1}return!0}return{decode:function(t){const r=new Uint8Array(t);let a=8;const s=e,c=s.readUshort,d=s.readUint,p={tabs:{},frames:[]},u=new Uint8Array(r.length);let m,h=0,g=0;const x=[137,80,78,71,13,10,26,10];for(var f=0;f<8;f++)if(r[f]!=x[f])throw"The input is not a PNG file!";for(;a<r.length;){const e=s.readUint(r,a);a+=4;const t=s.readASCII(r,a,4);if(a+=4,"IHDR"==t)l(r,a,p);else if("iCCP"==t){for(var y=a;0!=r[y];)y++;s.readASCII(r,a,y-a),r[y+1];const n=r.slice(y+2,a+e);let l=null;try{l=o(n)}catch(w){l=i(n)}p.tabs[t]=l}else if("CgBI"==t)p.tabs[t]=r.slice(a,a+4);else if("IDAT"==t){for(f=0;f<e;f++)u[h+f]=r[a+f];h+=e}else if("acTL"==t)p.tabs[t]={num_frames:d(r,a),num_plays:d(r,a+4)},m=new Uint8Array(r.length);else if("fcTL"==t){0!=g&&((E=p.frames[p.frames.length-1]).data=n(p,m.slice(0,g),E.rect.width,E.rect.height),g=0);const e={x:d(r,a+12),y:d(r,a+16),width:d(r,a+4),height:d(r,a+8)};let t=c(r,a+22);t=c(r,a+20)/(0==t?100:t);const o={rect:e,delay:Math.round(1e3*t),dispose:r[a+24],blend:r[a+25]};p.frames.push(o)}else if("fdAT"==t){for(f=0;f<e-4;f++)m[g+f]=r[a+f+4];g+=e-4}else if("pHYs"==t)p.tabs[t]=[s.readUint(r,a),s.readUint(r,a+4),r[a+8]];else if("cHRM"==t)for(p.tabs[t]=[],f=0;f<8;f++)p.tabs[t].push(s.readUint(r,a+4*f));else if("tEXt"==t||"zTXt"==t){null==p.tabs[t]&&(p.tabs[t]={});var S=s.nextZero(r,a),C=s.readASCII(r,a,S-a),b=a+e-S-1;if("tEXt"==t)v=s.readASCII(r,S+1,b);else{var $=o(r.slice(S+2,S+2+b));v=s.readUTF8($,0,$.length)}p.tabs[t][C]=v}else if("iTXt"==t){null==p.tabs[t]&&(p.tabs[t]={}),S=0,y=a,S=s.nextZero(r,y),C=s.readASCII(r,y,S-y);const n=r[y=S+1];var v;r[y+1],y+=2,S=s.nextZero(r,y),s.readASCII(r,y,S-y),y=S+1,S=s.nextZero(r,y),s.readUTF8(r,y,S-y),b=e-((y=S+1)-a),0==n?v=s.readUTF8(r,y,b):($=o(r.slice(y,y+b)),v=s.readUTF8($,0,$.length)),p.tabs[t][C]=v}else if("PLTE"==t)p.tabs[t]=s.readBytes(r,a,e);else if("hIST"==t){const e=p.tabs.PLTE.length/3;for(p.tabs[t]=[],f=0;f<e;f++)p.tabs[t].push(c(r,a+2*f))}else if("tRNS"==t)3==p.ctype?p.tabs[t]=s.readBytes(r,a,e):0==p.ctype?p.tabs[t]=c(r,a):2==p.ctype&&(p.tabs[t]=[c(r,a),c(r,a+2),c(r,a+4)]);else if("gAMA"==t)p.tabs[t]=s.readUint(r,a)/1e5;else if("sRGB"==t)p.tabs[t]=r[a];else if("bKGD"==t)0==p.ctype||4==p.ctype?p.tabs[t]=[c(r,a)]:2==p.ctype||6==p.ctype?p.tabs[t]=[c(r,a),c(r,a+2),c(r,a+4)]:3==p.ctype&&(p.tabs[t]=r[a]);else if("IEND"==t)break;a+=e,s.readUint(r,a),a+=4}var E;return 0!=g&&((E=p.frames[p.frames.length-1]).data=n(p,m.slice(0,g),E.rect.width,E.rect.height)),p.data=n(p,u,p.width,p.height),delete p.compress,delete p.interlace,delete p.filter,p},toRGBA8:function(e){const n=e.width,o=e.height;if(null==e.tabs.acTL)return[t(e.data,n,o,e).buffer];const i=[];null==e.frames[0].data&&(e.frames[0].data=e.data);const r=n*o*4,a=new Uint8Array(r),s=new Uint8Array(r),l=new Uint8Array(r);for(let p=0;p<e.frames.length;p++){const u=e.frames[p],m=u.rect.x,h=u.rect.y,g=u.rect.width,x=u.rect.height,f=t(u.data,g,x,e);if(0!=p)for(var d=0;d<r;d++)l[d]=a[d];if(0==u.blend?c(f,g,x,a,n,o,m,h,0):1==u.blend&&c(f,g,x,a,n,o,m,h,1),i.push(a.buffer.slice(0)),0==u.dispose);else if(1==u.dispose)c(s,g,x,a,n,o,m,h,0);else if(2==u.dispose)for(d=0;d<r;d++)a[d]=l[d]}return i},_paeth:s,_copyTile:c,_bin:e}}();!function(){const{_copyTile:e}=UPNG,{_bin:t}=UPNG,n=UPNG._paeth;var o={table:function(){const e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)1&n?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e}(),update(e,t,n,i){for(let r=0;r<i;r++)e=o.table[255&(e^t[n+r])]^e>>>8;return e},crc:(e,t,n)=>4294967295^o.update(4294967295,e,t,n)};function i(e,t,n,o){t[n]+=e[0]*o>>4,t[n+1]+=e[1]*o>>4,t[n+2]+=e[2]*o>>4,t[n+3]+=e[3]*o>>4}function r(e){return Math.max(0,Math.min(255,e))}function a(e,t){const n=e[0]-t[0],o=e[1]-t[1],i=e[2]-t[2],r=e[3]-t[3];return n*n+o*o+i*i+r*r}function s(e,t,n,o,s,l,c){null==c&&(c=1);const d=o.length,p=[];for(var u=0;u<d;u++){const e=o[u];p.push([e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255])}for(u=0;u<d;u++){let e=4294967295;for(var m=0,h=0;h<d;h++){var g=a(p[u],p[h]);h!=u&&g<e&&(e=g,m=h)}}const x=new Uint32Array(s.buffer),f=new Int16Array(t*n*4),y=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(u=0;u<y.length;u++)y[u]=255*((y[u]+.5)/16-.5);for(let C=0;C<n;C++)for(let s=0;s<t;s++){var S;u=4*(C*t+s),2!=c?S=[r(e[u]+f[u]),r(e[u+1]+f[u+1]),r(e[u+2]+f[u+2]),r(e[u+3]+f[u+3])]:(g=y[4*(3&C)+(3&s)],S=[r(e[u]+g),r(e[u+1]+g),r(e[u+2]+g),r(e[u+3]+g)]),m=0;let b=16777215;for(h=0;h<d;h++){const e=a(S,p[h]);e<b&&(b=e,m=h)}const $=p[m],v=[S[0]-$[0],S[1]-$[1],S[2]-$[2],S[3]-$[3]];1==c&&(s!=t-1&&i(v,f,u+4,7),C!=n-1&&(0!=s&&i(v,f,u+4*t-4,3),i(v,f,u+4*t,5),s!=t-1&&i(v,f,u+4*t+4,1))),l[u>>2]=m,x[u>>2]=o[m]}}function l(e,n,i,r,a){null==a&&(a={});const{crc:s}=o,l=t.writeUint,c=t.writeUshort,d=t.writeASCII;let p=8;const u=e.frames.length>1;let m,h=!1,g=33+(u?20:0);if(null!=a.sRGB&&(g+=13),null!=a.pHYs&&(g+=21),null!=a.iCCP&&(m=pako.deflate(a.iCCP),g+=21+m.length+4),3==e.ctype){for(var x=e.plte.length,f=0;f<x;f++)e.plte[f]>>>24!=255&&(h=!0);g+=8+3*x+4+(h?8+1*x+4:0)}for(var y=0;y<e.frames.length;y++)u&&(g+=38),g+=($=e.frames[y]).cimg.length+12,0!=y&&(g+=4);g+=12;const S=new Uint8Array(g),C=[137,80,78,71,13,10,26,10];for(f=0;f<8;f++)S[f]=C[f];if(l(S,p,13),p+=4,d(S,p,"IHDR"),p+=4,l(S,p,n),p+=4,l(S,p,i),p+=4,S[p]=e.depth,p++,S[p]=e.ctype,p++,S[p]=0,p++,S[p]=0,p++,S[p]=0,p++,l(S,p,s(S,p-17,17)),p+=4,null!=a.sRGB&&(l(S,p,1),p+=4,d(S,p,"sRGB"),p+=4,S[p]=a.sRGB,p++,l(S,p,s(S,p-5,5)),p+=4),null!=a.iCCP){const e=13+m.length;l(S,p,e),p+=4,d(S,p,"iCCP"),p+=4,d(S,p,"ICC profile"),p+=11,p+=2,S.set(m,p),p+=m.length,l(S,p,s(S,p-(e+4),e+4)),p+=4}if(null!=a.pHYs&&(l(S,p,9),p+=4,d(S,p,"pHYs"),p+=4,l(S,p,a.pHYs[0]),p+=4,l(S,p,a.pHYs[1]),p+=4,S[p]=a.pHYs[2],p++,l(S,p,s(S,p-13,13)),p+=4),u&&(l(S,p,8),p+=4,d(S,p,"acTL"),p+=4,l(S,p,e.frames.length),p+=4,l(S,p,null!=a.loop?a.loop:0),p+=4,l(S,p,s(S,p-12,12)),p+=4),3==e.ctype){for(l(S,p,3*(x=e.plte.length)),p+=4,d(S,p,"PLTE"),p+=4,f=0;f<x;f++){const t=3*f,n=e.plte[f],o=255&n,i=n>>>8&255,r=n>>>16&255;S[p+t+0]=o,S[p+t+1]=i,S[p+t+2]=r}if(p+=3*x,l(S,p,s(S,p-3*x-4,3*x+4)),p+=4,h){for(l(S,p,x),p+=4,d(S,p,"tRNS"),p+=4,f=0;f<x;f++)S[p+f]=e.plte[f]>>>24&255;p+=x,l(S,p,s(S,p-x-4,x+4)),p+=4}}let b=0;for(y=0;y<e.frames.length;y++){var $=e.frames[y];u&&(l(S,p,26),p+=4,d(S,p,"fcTL"),p+=4,l(S,p,b++),p+=4,l(S,p,$.rect.width),p+=4,l(S,p,$.rect.height),p+=4,l(S,p,$.rect.x),p+=4,l(S,p,$.rect.y),p+=4,c(S,p,r[y]),p+=2,c(S,p,1e3),p+=2,S[p]=$.dispose,p++,S[p]=$.blend,p++,l(S,p,s(S,p-30,30)),p+=4);const t=$.cimg;l(S,p,(x=t.length)+(0==y?0:4)),p+=4;const n=p;d(S,p,0==y?"IDAT":"fdAT"),p+=4,0!=y&&(l(S,p,b++),p+=4),S.set(t,p),p+=x,l(S,p,s(S,n,p-n)),p+=4}return l(S,p,0),p+=4,d(S,p,"IEND"),p+=4,l(S,p,s(S,p-4,4)),p+=4,S.buffer}function c(e,t,n){for(let o=0;o<e.frames.length;o++){const i=e.frames[o];i.rect.width;const r=i.rect.height,a=new Uint8Array(r*i.bpl+r);i.cimg=m(i.img,r,i.bpp,i.bpl,a,t,n)}}function d(t,n,o,i,r){const a=r[0],l=r[1],c=r[2],d=r[3],m=r[4],h=r[5];let x=6,f=8,y=255;for(var S=0;S<t.length;S++){const e=new Uint8Array(t[S]);for(var C=e.length,b=0;b<C;b+=4)y&=e[b+3]}const $=255!=y,v=function(t,n,o,i,r,a){const s=[];for(var l=0;l<t.length;l++){const p=new Uint8Array(t[l]),m=new Uint32Array(p.buffer);var c;let g=0,x=0,f=n,y=o,S=i?1:0;if(0!=l){const C=a||i||1==l||0!=s[l-2].dispose?1:2;let b=0,$=1e9;for(let e=0;e<C;e++){var d=new Uint8Array(t[l-1-e]);const i=new Uint32Array(t[l-1-e]);let a=n,s=o,c=-1,p=-1;for(let e=0;e<o;e++)for(let t=0;t<n;t++)m[h=e*n+t]!=i[h]&&(t<a&&(a=t),t>c&&(c=t),e<s&&(s=e),e>p&&(p=e));-1==c&&(a=s=c=p=0),r&&(!(1&~a)&&a--,!(1&~s)&&s--);const u=(c-a+1)*(p-s+1);u<$&&($=u,b=e,g=a,x=s,f=c-a+1,y=p-s+1)}d=new Uint8Array(t[l-1-b]),1==b&&(s[l-1].dispose=2),c=new Uint8Array(f*y*4),e(d,n,o,c,f,y,-g,-x,0),S=e(p,n,o,c,f,y,-g,-x,3)?1:0,1==S?u(p,n,o,c,{x:g,y:x,width:f,height:y}):e(p,n,o,c,f,y,-g,-x,0)}else c=p.slice(0);s.push({rect:{x:g,y:x,width:f,height:y},img:c,blend:S,dispose:0})}if(i)for(l=0;l<s.length;l++){if(1==(g=s[l]).blend)continue;const e=g.rect,i=s[l-1].rect,a=Math.min(e.x,i.x),c=Math.min(e.y,i.y),d={x:a,y:c,width:Math.max(e.x+e.width,i.x+i.width)-a,height:Math.max(e.y+e.height,i.y+i.height)-c};s[l-1].dispose=1,l-1!=0&&p(t,n,o,s,l-1,d,r),p(t,n,o,s,l,d,r)}let m=0;if(1!=t.length)for(var h=0;h<s.length;h++){var g;m+=(g=s[h]).rect.width*g.rect.height}return s}(t,n,o,a,l,c),E={},w=[],R=[];if(0!=i){const e=[];for(b=0;b<v.length;b++)e.push(v[b].img.buffer);const t=g(function(e){let t=0;for(var n=0;n<e.length;n++)t+=e[n].byteLength;const o=new Uint8Array(t);let i=0;for(n=0;n<e.length;n++){const t=new Uint8Array(e[n]),r=t.length;for(let e=0;e<r;e+=4){let n=t[e],r=t[e+1],a=t[e+2];const s=t[e+3];0==s&&(n=r=a=0),o[i+e]=n,o[i+e+1]=r,o[i+e+2]=a,o[i+e+3]=s}i+=r}return o.buffer}(e),i);for(b=0;b<t.plte.length;b++)w.push(t.plte[b].est.rgba);let n=0;for(b=0;b<v.length;b++){const e=(j=v[b]).img.length;var A=new Uint8Array(t.inds.buffer,n>>2,e>>2);R.push(A);const o=new Uint8Array(t.abuf,n,e);h&&s(j.img,j.rect.width,j.rect.height,w,o,A),j.img.set(o),n+=e}}else for(S=0;S<v.length;S++){var j=v[S];const e=new Uint32Array(j.img.buffer);var T=j.rect.width;for(C=e.length,A=new Uint8Array(C),R.push(A),b=0;b<C;b++){const t=e[b];if(0!=b&&t==e[b-1])A[b]=A[b-1];else if(b>T&&t==e[b-T])A[b]=A[b-T];else{let e=E[t];if(null==e&&(E[t]=e=w.length,w.push(t),w.length>=300))break;A[b]=e}}}const I=w.length;for(I<=256&&0==m&&(f=I<=2?1:I<=4?2:I<=16?4:8,f=Math.max(f,d)),S=0;S<v.length;S++){(j=v[S]).rect.x,j.rect.y,T=j.rect.width;const e=j.rect.height;let t=j.img;new Uint32Array(t.buffer);let n=4*T,o=4;if(I<=256&&0==m){n=Math.ceil(f*T/8);var k=new Uint8Array(n*e);const i=R[S];for(let t=0;t<e;t++){b=t*n;const e=t*T;if(8==f)for(var L=0;L<T;L++)k[b+L]=i[e+L];else if(4==f)for(L=0;L<T;L++)k[b+(L>>1)]|=i[e+L]<<4-4*(1&L);else if(2==f)for(L=0;L<T;L++)k[b+(L>>2)]|=i[e+L]<<6-2*(3&L);else if(1==f)for(L=0;L<T;L++)k[b+(L>>3)]|=i[e+L]<<7-1*(7&L)}t=k,x=3,o=1}else if(0==$&&1==v.length){k=new Uint8Array(T*e*3);const i=T*e;for(b=0;b<i;b++){const e=3*b,n=4*b;k[e]=t[n],k[e+1]=t[n+1],k[e+2]=t[n+2]}t=k,x=2,o=3,n=3*T}j.img=t,j.bpl=n,j.bpp=o}return{ctype:x,depth:f,plte:w,frames:v}}function p(t,n,o,i,r,a,s){const l=Uint8Array,c=Uint32Array,d=new l(t[r-1]),p=new c(t[r-1]),m=r+1<t.length?new l(t[r+1]):null,h=new l(t[r]),g=new c(h.buffer);let x=n,f=o,y=-1,S=-1;for(let e=0;e<a.height;e++)for(let t=0;t<a.width;t++){const o=a.x+t,s=a.y+e,l=s*n+o,c=g[l];0==c||0==i[r-1].dispose&&p[l]==c&&(null==m||0!=m[4*l+3])||(o<x&&(x=o),o>y&&(y=o),s<f&&(f=s),s>S&&(S=s))}-1==y&&(x=f=y=S=0),s&&(!(1&~x)&&x--,!(1&~f)&&f--),a={x:x,y:f,width:y-x+1,height:S-f+1};const C=i[r];C.rect=a,C.blend=1,C.img=new Uint8Array(a.width*a.height*4),0==i[r-1].dispose?(e(d,n,o,C.img,a.width,a.height,-a.x,-a.y,0),u(h,n,o,C.img,a)):e(h,n,o,C.img,a.width,a.height,-a.x,-a.y,0)}function u(t,n,o,i,r){e(t,n,o,i,r.width,r.height,-r.x,-r.y,2)}function m(e,t,n,o,i,r,a){const s=[];let l,c=[0,1,2,3,4];-1!=r?c=[r]:(t*o>5e5||1==n)&&(c=[0]),a&&(l={level:0});const d=UZIP;for(var p=0;p<c.length;p++){for(let r=0;r<t;r++)h(i,e,r,o,n,c[p]);s.push(d.deflate(i,l))}let u,m=1e9;for(p=0;p<s.length;p++)s[p].length<m&&(u=p,m=s[p].length);return s[u]}function h(e,t,o,i,r,a){const s=o*i;let l=s+o;if(e[l]=a,l++,0==a)if(i<500)for(var c=0;c<i;c++)e[l+c]=t[s+c];else e.set(new Uint8Array(t.buffer,s,i),l);else if(1==a){for(c=0;c<r;c++)e[l+c]=t[s+c];for(c=r;c<i;c++)e[l+c]=t[s+c]-t[s+c-r]+256&255}else if(0==o){for(c=0;c<r;c++)e[l+c]=t[s+c];if(2==a)for(c=r;c<i;c++)e[l+c]=t[s+c];if(3==a)for(c=r;c<i;c++)e[l+c]=t[s+c]-(t[s+c-r]>>1)+256&255;if(4==a)for(c=r;c<i;c++)e[l+c]=t[s+c]-n(t[s+c-r],0,0)+256&255}else{if(2==a)for(c=0;c<i;c++)e[l+c]=t[s+c]+256-t[s+c-i]&255;if(3==a){for(c=0;c<r;c++)e[l+c]=t[s+c]+256-(t[s+c-i]>>1)&255;for(c=r;c<i;c++)e[l+c]=t[s+c]+256-(t[s+c-i]+t[s+c-r]>>1)&255}if(4==a){for(c=0;c<r;c++)e[l+c]=t[s+c]+256-n(0,t[s+c-i],0)&255;for(c=r;c<i;c++)e[l+c]=t[s+c]+256-n(t[s+c-r],t[s+c-i],t[s+c-r-i])&255}}}function g(e,t){const n=new Uint8Array(e),o=n.slice(0),i=new Uint32Array(o.buffer),r=x(o,t),a=r[0],s=r[1],l=n.length,c=new Uint8Array(l>>2);let d;if(n.length<2e7)for(var p=0;p<l;p+=4)d=f(a,u=n[p]*(1/255),m=n[p+1]*(1/255),h=n[p+2]*(1/255),g=n[p+3]*(1/255)),c[p>>2]=d.ind,i[p>>2]=d.est.rgba;else for(p=0;p<l;p+=4){var u=n[p]*(1/255),m=n[p+1]*(1/255),h=n[p+2]*(1/255),g=n[p+3]*(1/255);for(d=a;d.left;)d=y(d.est,u,m,h,g)<=0?d.left:d.right;c[p>>2]=d.ind,i[p>>2]=d.est.rgba}return{abuf:o.buffer,inds:c,plte:s}}function x(e,t,n){null==n&&(n=1e-4);const o=new Uint32Array(e.buffer),i={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};i.bst=b(e,i.i0,i.i1),i.est=$(i.bst);const r=[i];for(;r.length<t;){let t=0,i=0;for(var a=0;a<r.length;a++)r[a].est.L>t&&(t=r[a].est.L,i=a);if(t<n)break;const s=r[i],l=S(e,o,s.i0,s.i1,s.est.e,s.est.eMq255);if(s.i0>=l||s.i1<=l){s.est.L=0;continue}const c={i0:s.i0,i1:l,bst:null,est:null,tdst:0,left:null,right:null};c.bst=b(e,c.i0,c.i1),c.est=$(c.bst);const d={i0:l,i1:s.i1,bst:null,est:null,tdst:0,left:null,right:null};for(d.bst={R:[],m:[],N:s.bst.N-c.bst.N},a=0;a<16;a++)d.bst.R[a]=s.bst.R[a]-c.bst.R[a];for(a=0;a<4;a++)d.bst.m[a]=s.bst.m[a]-c.bst.m[a];d.est=$(d.bst),s.left=c,s.right=d,r[i]=c,r.push(d)}for(r.sort((e,t)=>t.bst.N-e.bst.N),a=0;a<r.length;a++)r[a].ind=a;return[i,r]}function f(e,t,n,o,i){if(null==e.left)return e.tdst=function(e,t,n,o,i){const r=t-e[0],a=n-e[1],s=o-e[2],l=i-e[3];return r*r+a*a+s*s+l*l}(e.est.q,t,n,o,i),e;const r=y(e.est,t,n,o,i);let a=e.left,s=e.right;r>0&&(a=e.right,s=e.left);const l=f(a,t,n,o,i);if(l.tdst<=r*r)return l;const c=f(s,t,n,o,i);return c.tdst<l.tdst?c:l}function y(e,t,n,o,i){const{e:r}=e;return r[0]*t+r[1]*n+r[2]*o+r[3]*i-e.eMq}function S(e,t,n,o,i,r){for(o-=4;n<o;){for(;C(e,n,i)<=r;)n+=4;for(;C(e,o,i)>r;)o-=4;if(n>=o)break;const a=t[n>>2];t[n>>2]=t[o>>2],t[o>>2]=a,n+=4,o-=4}for(;C(e,n,i)>r;)n-=4;return n+4}function C(e,t,n){return e[t]*n[0]+e[t+1]*n[1]+e[t+2]*n[2]+e[t+3]*n[3]}function b(e,t,n){const o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=[0,0,0,0],r=n-t>>2;for(let a=t;a<n;a+=4){const t=e[a]*(1/255),n=e[a+1]*(1/255),r=e[a+2]*(1/255),s=e[a+3]*(1/255);i[0]+=t,i[1]+=n,i[2]+=r,i[3]+=s,o[0]+=t*t,o[1]+=t*n,o[2]+=t*r,o[3]+=t*s,o[5]+=n*n,o[6]+=n*r,o[7]+=n*s,o[10]+=r*r,o[11]+=r*s,o[15]+=s*s}return o[4]=o[1],o[8]=o[2],o[9]=o[6],o[12]=o[3],o[13]=o[7],o[14]=o[11],{R:o,m:i,N:r}}function $(e){const{R:t}=e,{m:n}=e,{N:o}=e,i=n[0],r=n[1],a=n[2],s=n[3],l=0==o?0:1/o,c=[t[0]-i*i*l,t[1]-i*r*l,t[2]-i*a*l,t[3]-i*s*l,t[4]-r*i*l,t[5]-r*r*l,t[6]-r*a*l,t[7]-r*s*l,t[8]-a*i*l,t[9]-a*r*l,t[10]-a*a*l,t[11]-a*s*l,t[12]-s*i*l,t[13]-s*r*l,t[14]-s*a*l,t[15]-s*s*l],d=c,p=v;let u=[Math.random(),Math.random(),Math.random(),Math.random()],m=0,h=0;if(0!=o)for(let x=0;x<16&&(u=p.multVec(d,u),h=Math.sqrt(p.dot(u,u)),u=p.sml(1/h,u),!(0!=x&&Math.abs(h-m)<1e-9));x++)m=h;const g=[i*l,r*l,a*l,s*l];return{Cov:c,q:g,e:u,L:m,eMq255:p.dot(p.sml(255,g),u),eMq:p.dot(u,g),rgba:(Math.round(255*g[3])<<24|Math.round(255*g[2])<<16|Math.round(255*g[1])<<8|Math.round(255*g[0]))>>>0}}var v={multVec:(e,t)=>[e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],e[4]*t[0]+e[5]*t[1]+e[6]*t[2]+e[7]*t[3],e[8]*t[0]+e[9]*t[1]+e[10]*t[2]+e[11]*t[3],e[12]*t[0]+e[13]*t[1]+e[14]*t[2]+e[15]*t[3]],dot:(e,t)=>e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],sml:(e,t)=>[e*t[0],e*t[1],e*t[2],e*t[3]]};UPNG.encode=function(e,t,n,o,i,r,a){null==o&&(o=0),null==a&&(a=!1);const s=d(e,t,n,o,[!1,!1,!1,0,a,!1]);return c(s,-1),l(s,t,n,i,r)},UPNG.encodeLL=function(e,t,n,o,i,r,a,s){const d={ctype:0+(1==o?0:2)+(0==i?0:4),depth:r,frames:[]},p=(o+i)*r,u=p*t;for(let l=0;l<e.length;l++)d.frames.push({rect:{x:0,y:0,width:t,height:n},img:new Uint8Array(e[l]),blend:0,dispose:1,bpp:Math.ceil(p/8),bpl:Math.ceil(u/8)});return c(d,0,!0),l(d,t,n,a,s)},UPNG.encode.compress=d,UPNG.encode.dither=s,UPNG.quantize=g,UPNG.quantize.getKDtree=x,UPNG.quantize.getNearest=f}();const r={toArrayBuffer(e,t){const n=e.width,o=e.height,i=n<<2,a=e.getContext("2d").getImageData(0,0,n,o),s=new Uint32Array(a.data.buffer),l=(32*n+31)/32<<2,c=l*o,d=122+c,p=new ArrayBuffer(d),u=new DataView(p),m=1<<20;let h,g,x,f,y=m,S=0,C=0,b=0;function $(e){u.setUint16(C,e,!0),C+=2}function v(e){u.setUint32(C,e,!0),C+=4}function E(e){C+=e}$(19778),v(d),E(4),v(122),v(108),v(n),v(-o>>>0),$(1),$(32),v(3),v(c),v(2835),v(2835),E(8),v(16711680),v(65280),v(255),v(4278190080),v(1466527264),function e(){for(;S<o&&y>0;){for(f=122+S*l,h=0;h<i;)y--,g=s[b++],x=g>>>24,u.setUint32(f+h,g<<8|x),h+=4;S++}b<s.length?(y=m,setTimeout(e,r._dly)):t(p)}()},toBlob(e,t){this.toArrayBuffer(e,e=>{t(new Blob([e],{type:"image/bmp"}))})},_dly:9};var i={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},o={[i.CHROME]:16384,[i.FIREFOX]:11180,[i.DESKTOP_SAFARI]:16384,[i.IE]:8192,[i.IOS]:4096,[i.ETC]:8192};const a="undefined"!=typeof window,s="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,f=a&&window.cordova&&window.cordova.require&&window.cordova.require("cordova/modulemapper"),CustomFile=(a||s)&&(f&&f.getOriginalSymbol(window,"File")||"undefined"!=typeof File&&File),CustomFileReader=(a||s)&&(f&&f.getOriginalSymbol(window,"FileReader")||"undefined"!=typeof FileReader&&FileReader);function getFilefromDataUrl(e,t,n=Date.now()){return new Promise(o=>{const i=e.split(","),r=i[0].match(/:(.*?);/)[1],a=globalThis.atob(i[1]);let s=a.length;const l=new Uint8Array(s);for(;s--;)l[s]=a.charCodeAt(s);const c=new Blob([l],{type:r});c.name=t,c.lastModified=n,o(c)})}function getDataUrlFromFile(e){return new Promise((t,n)=>{const o=new CustomFileReader;o.onload=()=>t(o.result),o.onerror=e=>n(e),o.readAsDataURL(e)})}function loadImage(e){return new Promise((t,n)=>{const o=new Image;o.onload=()=>t(o),o.onerror=e=>n(e),o.src=e})}function getBrowserName(){if(void 0!==getBrowserName.cachedResult)return getBrowserName.cachedResult;let e=i.ETC;const{userAgent:t}=navigator;return/Chrom(e|ium)/i.test(t)?e=i.CHROME:/iP(ad|od|hone)/i.test(t)&&/WebKit/i.test(t)?e=i.IOS:/Safari/i.test(t)?e=i.DESKTOP_SAFARI:/Firefox/i.test(t)?e=i.FIREFOX:(/MSIE/i.test(t)||1==!!document.documentMode)&&(e=i.IE),getBrowserName.cachedResult=e,getBrowserName.cachedResult}function approximateBelowMaximumCanvasSizeOfBrowser(e,t){const n=getBrowserName(),i=o[n];let r=e,a=t,s=r*a;const l=r>a?a/r:r/a;for(;s>i*i;){const e=(i+r)/2,t=(i+a)/2;e<t?(a=t,r=t*l):(a=e*l,r=e),s=r*a}return{width:r,height:a}}function getNewCanvasAndCtx(e,t){let n,o;try{if(n=new OffscreenCanvas(e,t),o=n.getContext("2d"),null===o)throw new Error("getContext of OffscreenCanvas returns null")}catch(i){n=document.createElement("canvas"),o=n.getContext("2d")}return n.width=e,n.height=t,[n,o]}function drawImageInCanvas(e,t){const{width:n,height:o}=approximateBelowMaximumCanvasSizeOfBrowser(e.width,e.height),[i,r]=getNewCanvasAndCtx(n,o);return t&&/jpe?g/.test(t)&&(r.fillStyle="white",r.fillRect(0,0,i.width,i.height)),r.drawImage(e,0,0,i.width,i.height),i}function isIOS(){return void 0!==isIOS.cachedResult||(isIOS.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"undefined"!=typeof document&&"ontouchend"in document),isIOS.cachedResult}function drawFileInCanvas(e,t={}){return new Promise(function(n,o){let r,a;var s=function(){try{return a=drawImageInCanvas(r,t.fileType||e.type),n([r,a])}catch(i){return o(i)}},l=function(t){try{var n=function(e){try{throw e}catch(t){return o(t)}};try{let t;return getDataUrlFromFile(e).then(function(e){try{return t=e,loadImage(t).then(function(e){try{return r=e,function(){try{return s()}catch(e){return o(e)}}()}catch(t){return n(t)}},n)}catch(i){return n(i)}},n)}catch(i){n(i)}}catch(i){return o(i)}};try{if(isIOS()||[i.DESKTOP_SAFARI,i.MOBILE_SAFARI].includes(getBrowserName()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(e).then(function(e){try{return r=e,s()}catch(t){return l()}},l)}catch(c){l()}})}function canvasToFile(e,t,n,o,i=1){return new Promise(function(a,s){let l;if("image/png"===t){let r,a,s;return r=e.getContext("2d"),({data:a}=r.getImageData(0,0,e.width,e.height)),s=UPNG.encode([a.buffer],e.width,e.height,4096*i),l=new Blob([s],{type:t}),l.name=n,l.lastModified=o,c.call(this)}{let a=function(){return c.call(this)};if("image/bmp"===t)return new Promise(t=>r.toBlob(e,t)).then(function(e){try{return l=e,l.name=n,l.lastModified=o,a.call(this)}catch(t){return s(t)}}.bind(this),s);{let r=function(){return a.call(this)};if("function"==typeof OffscreenCanvas&&e instanceof OffscreenCanvas)return e.convertToBlob({type:t,quality:i}).then(function(e){try{return l=e,l.name=n,l.lastModified=o,r.call(this)}catch(t){return s(t)}}.bind(this),s);{let a;return a=e.toDataURL(t,i),getFilefromDataUrl(a,n,o).then(function(e){try{return l=e,r.call(this)}catch(t){return s(t)}}.bind(this),s)}}}function c(){return a(l)}})}function cleanupCanvasMemory(e){e.width=0,e.height=0}function isAutoOrientationInBrowser(){return new Promise(function(e,t){let n,o,i,r;return void 0!==isAutoOrientationInBrowser.cachedResult?e(isAutoOrientationInBrowser.cachedResult):getFilefromDataUrl("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(a){try{return n=a,drawFileInCanvas(n).then(function(a){try{return o=a[1],canvasToFile(o,n.type,n.name,n.lastModified).then(function(n){try{return i=n,cleanupCanvasMemory(o),drawFileInCanvas(i).then(function(n){try{return r=n[0],isAutoOrientationInBrowser.cachedResult=1===r.width&&2===r.height,e(isAutoOrientationInBrowser.cachedResult)}catch(o){return t(o)}},t)}catch(a){return t(a)}},t)}catch(s){return t(s)}},t)}catch(s){return t(s)}},t)})}function getExifOrientation(e){return new Promise((t,n)=>{const o=new CustomFileReader;o.onload=e=>{const n=new DataView(e.target.result);if(65496!=n.getUint16(0,!1))return t(-2);const o=n.byteLength;let i=2;for(;i<o;){if(n.getUint16(i+2,!1)<=8)return t(-1);const e=n.getUint16(i,!1);if(i+=2,65505==e){if(1165519206!=n.getUint32(i+=2,!1))return t(-1);const e=18761==n.getUint16(i+=6,!1);i+=n.getUint32(i+4,e);const o=n.getUint16(i,e);i+=2;for(let r=0;r<o;r++)if(274==n.getUint16(i+12*r,e))return t(n.getUint16(i+12*r+8,e))}else{if(65280&~e)break;i+=n.getUint16(i,!1)}}return t(-1)},o.onerror=e=>n(e),o.readAsArrayBuffer(e)})}function handleMaxWidthOrHeight(e,t){const{width:n}=e,{height:o}=e,{maxWidthOrHeight:i}=t;let r,a=e;return isFinite(i)&&(n>i||o>i)&&([a,r]=getNewCanvasAndCtx(n,o),n>o?(a.width=i,a.height=o/n*i):(a.width=n/o*i,a.height=i),r.drawImage(e,0,0,a.width,a.height),cleanupCanvasMemory(e)),a}function followExifOrientation(e,t){const{width:n}=e,{height:o}=e,[i,r]=getNewCanvasAndCtx(n,o);switch(t>4&&t<9?(i.width=o,i.height=n):(i.width=n,i.height=o),t){case 2:r.transform(-1,0,0,1,n,0);break;case 3:r.transform(-1,0,0,-1,n,o);break;case 4:r.transform(1,0,0,-1,0,o);break;case 5:r.transform(0,1,1,0,0,0);break;case 6:r.transform(0,1,-1,0,o,0);break;case 7:r.transform(0,-1,-1,0,o,n);break;case 8:r.transform(0,-1,1,0,0,n)}return r.drawImage(e,0,0,n,o),cleanupCanvasMemory(e),i}function compress(e,t,n=0){return new Promise(function(o,i){let r,a,s,l,c,d,p,u,m,h,g,x,f,y,S,C,b,$,v,E;function w(e=5){if(t.signal&&t.signal.aborted)throw t.signal.reason;r+=e,t.onProgress(Math.min(r,100))}function R(e){if(t.signal&&t.signal.aborted)throw t.signal.reason;r=Math.min(Math.max(e,r),100),t.onProgress(r)}return r=n,a=t.maxIteration||10,s=1024*t.maxSizeMB*1024,w(),drawFileInCanvas(e,t).then(function(n){try{return[,l]=n,w(),c=handleMaxWidthOrHeight(l,t),w(),new Promise(function(n,o){var i;if(!(i=t.exifOrientation))return getExifOrientation(e).then(function(e){try{return i=e,r.call(this)}catch(t){return o(t)}}.bind(this),o);function r(){return n(i)}return r.call(this)}).then(function(n){try{return d=n,w(),isAutoOrientationInBrowser().then(function(n){try{return p=n?c:followExifOrientation(c,d),w(),u=t.initialQuality||1,m=t.fileType||e.type,canvasToFile(p,m,e.name,e.lastModified,u).then(function(n){try{{let d=function(){if(a--&&(S>s||S>f)){let t,n;return t=E?.95*v.width:v.width,n=E?.95*v.height:v.height,[b,$]=getNewCanvasAndCtx(t,n),$.drawImage(v,0,0,t,n),u*="image/png"===m?.85:.95,canvasToFile(b,m,e.name,e.lastModified,u).then(function(e){try{return C=e,cleanupCanvasMemory(v),v=b,S=C.size,R(Math.min(99,Math.floor((y-S)/(y-s)*100))),d}catch(t){return i(t)}},i)}return[1]},A=function(){return cleanupCanvasMemory(v),cleanupCanvasMemory(b),cleanupCanvasMemory(c),cleanupCanvasMemory(p),cleanupCanvasMemory(l),R(100),o(C)};return h=n,w(),g=h.size>s,x=h.size>e.size,g||x?(f=e.size,y=h.size,S=y,v=p,E=!t.alwaysKeepResolution&&g,(r=function(e){for(;e;){if(e.then)return void e.then(r,i);try{if(e.pop){if(e.length)return e.pop()?A.call(this):e;e=d}else e=e.call(this)}catch(t){return i(t)}}}.bind(this))(d)):(R(100),o(h));var r}}catch(d){return i(d)}}.bind(this),i)}catch(r){return i(r)}}.bind(this),i)}catch(r){return i(r)}}.bind(this),i)}catch(r){return i(r)}}.bind(this),i)})}const l="\nlet scriptImported = false\nself.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker] importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\n' + e.stack, id })\n }\n})\n";let c;function compressOnWebWorker(e,t){return new Promise((n,o)=>{c||(c=function(e){const t=[];return t.push(e),URL.createObjectURL(new Blob(t))}(l));const i=new Worker(c);i.addEventListener("message",function(e){if(t.signal&&t.signal.aborted)i.terminate();else if(void 0===e.data.progress){if(e.data.error)return o(new Error(e.data.error)),void i.terminate();n(e.data.file),i.terminate()}else t.onProgress(e.data.progress)}),i.addEventListener("error",o),t.signal&&t.signal.addEventListener("abort",()=>{o(t.signal.reason),i.terminate()}),i.postMessage({file:e,imageCompressionLibUrl:t.libURL,options:{...t,onProgress:void 0,signal:void 0}})})}function imageCompression(e,t){return new Promise(function(n,o){let i,r,a,s,l,c;if(i={...t},a=0,({onProgress:s}=i),i.maxSizeMB=i.maxSizeMB||Number.POSITIVE_INFINITY,l="boolean"!=typeof i.useWebWorker||i.useWebWorker,delete i.useWebWorker,i.onProgress=e=>{a=e,"function"==typeof s&&s(a)},!(e instanceof Blob||e instanceof CustomFile))return o(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(e.type))return o(new Error("The file given is not an image"));if(c="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,!l||"function"!=typeof Worker||c)return compress(e,i).then(function(e){try{return r=e,u.call(this)}catch(t){return o(t)}}.bind(this),o);var d=function(){try{return u.call(this)}catch(e){return o(e)}}.bind(this),p=function(t){try{return compress(e,i).then(function(e){try{return r=e,d()}catch(t){return o(t)}},o)}catch(n){return o(n)}};try{return i.libURL=i.libURL||"https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js",compressOnWebWorker(e,i).then(function(e){try{return r=e,d()}catch(t){return p()}},p)}catch(m){p()}function u(){try{r.name=e.name,r.lastModified=e.lastModified}catch(m){}try{i.preserveExif&&"image/jpeg"===e.type&&(!i.fileType||i.fileType&&i.fileType===e.type)&&(r=copyExifWithoutOrientation(e,r))}catch(m){}return n(r)}})}imageCompression.getDataUrlFromFile=getDataUrlFromFile,imageCompression.getFilefromDataUrl=getFilefromDataUrl,imageCompression.loadImage=loadImage,imageCompression.drawImageInCanvas=drawImageInCanvas,imageCompression.drawFileInCanvas=drawFileInCanvas,imageCompression.canvasToFile=canvasToFile,imageCompression.getExifOrientation=getExifOrientation,imageCompression.handleMaxWidthOrHeight=handleMaxWidthOrHeight,imageCompression.followExifOrientation=followExifOrientation,imageCompression.cleanupCanvasMemory=cleanupCanvasMemory,imageCompression.isAutoOrientationInBrowser=isAutoOrientationInBrowser,imageCompression.approximateBelowMaximumCanvasSizeOfBrowser=approximateBelowMaximumCanvasSizeOfBrowser,imageCompression.copyExifWithoutOrientation=copyExifWithoutOrientation,imageCompression.getBrowserName=getBrowserName,imageCompression.version="2.0.2";const PDF_MIME_TYPE$1="application/pdf",imageCompressionAcceptableFileTypes=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],RECEIPT_IMAGE_COMPRESSION_OPTIONS={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2},handleImageCompression=async(e,t)=>{if(!1===imageCompressionAcceptableFileTypes.includes(e.type))return e;const n=await imageCompression(e,{useWebWorker:!0,maxWidthOrHeight:900,initialQuality:1,maxSizeMB:1.4}),o=n.lastModified,i=n.type.split("/")[1];let r=`image_${o}.${i}`;null!=t&&(r=`${t}.${i}`);return new File([n],r,{lastModified:o,type:n.type})},compressImageForReceipt=async(e,t)=>{if(!1===imageCompressionAcceptableFileTypes.includes(e.type))return e;const n=await imageCompression(e,RECEIPT_IMAGE_COMPRESSION_OPTIONS),o=n.type.split("/")[1],i=t.replace(/\.[^.]+$/,"")||"image";return new File([n],`${i}.${o}`,{lastModified:e.lastModified,type:n.type})},PDF_RENDER_SCALE=1.5,PDF_JPEG_QUALITY=.7;function canvasToJpegBlob(e,t){return new Promise((n,o)=>{e.toBlob(e=>{null!=e?n(e):o(new Error("canvas.toBlob returned null"))},"image/jpeg",t)})}async function renderPageToJpeg(e,t,n){const o=e.getViewport({scale:t}),i=document.createElement("canvas");i.width=Math.floor(o.width),i.height=Math.floor(o.height);const r=i.getContext("2d");if(null==r)throw new Error("Could not get canvas 2d context");await e.render({canvasContext:r,viewport:o}).promise;return(await canvasToJpegBlob(i,n)).arrayBuffer()}async function compressPdfForReceipt(e,t){const[{PDFDocument:n},o]=await Promise.all([Promise.resolve().then(()=>require("./index-D8c5YCtS.cjs")),Promise.resolve().then(()=>index$2).then(e=>e.pdfjs)]),i=await e.arrayBuffer(),r=await o.getDocument({data:new Uint8Array(i)}).promise,a=r.numPages,s=await n.create();for(let d=1;d<=a;d++){const e=await r.getPage(d),t=await renderPageToJpeg(e,PDF_RENDER_SCALE,PDF_JPEG_QUALITY),n=await s.embedJpg(new Uint8Array(t)),o=n.scale(1);s.addPage([o.width,o.height]).drawImage(n,{x:0,y:0,width:o.width,height:o.height})}const l=await s.save(),c=t.toLowerCase().endsWith(".pdf")?t:`${t}.pdf`;return new File([l],c,{type:PDF_MIME_TYPE$1,lastModified:e.lastModified})}async function compressSingleFile(e,t){const n=e instanceof File?e:new File([e],t,{type:e.type});if(e.type===PDF_MIME_TYPE$1){const o=await compressPdfForReceipt(n,t);return o.size<n.size?{blob:o,name:o.name}:{blob:e,name:t}}const o=await compressImageForReceipt(n,t);return{blob:o,name:o.name}}async function compressReceiptFiles(e,t){const n=await Promise.all(e.map((e,n)=>{const o=t[n]??`file_${n}`;return compressSingleFile(e,o).catch(t=>(console.warn("[compressReceiptFiles] compression failed, using original:",t instanceof Error?t.message:t),{blob:e,name:o}))}));return{blobs:n.map(e=>e.blob),names:n.map(e=>e.name)}}const InputElementMobileCamera=({fileType:e="file",fileRef:t,name:n,value:o="",multiple:i=!1,acceptableTypes:r,onFileSizeError:a,onImageChange:s})=>jsxRuntimeExports.jsx("input",{type:e,ref:t,name:n,value:o,size:1e3,"data-testid":generateDataTestId("input-file-element-mobile",n),onChange:async e=>{const t=e.target.files?.[0],n=t?.size;null!=t&&null!=n?(a?.(!1),s(t),e.target.value=""):(a?.(!0),e.target.value="")},style:{display:"none"},accept:`${(r??"image/jpg, image/jpeg").toString()}`,multiple:i,capture:!0}),MoneyTransferSuccessAnimation=({shouldDisplay:e,width:t=30,height:n=30,styles:o,animationInLoop:i=!1})=>{const[,r]=useMusic(SUCCESS_SOUND_SOURCE),[a]=useAnimation("MoneyTransferSuccess");return React.useEffect(()=>{e&&r(!0)},[e,r]),e&&null!=a?jsxRuntimeExports.jsx(Lottie,{style:{width:t,height:n,...o},play:!0,animationData:a,loop:i,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null};var browserPonyfill={exports:{}},hasRequiredBrowserPonyfill;function requireBrowserPonyfill(){return hasRequiredBrowserPonyfill||(hasRequiredBrowserPonyfill=1,function(e,t){var n,o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==commonjsGlobal$1&&commonjsGlobal$1,i=function(){function e(){this.fetch=!1,this.DOMException=o.DOMException}return e.prototype=o,new e}();n=i,function(e){var t=void 0!==n&&n||"undefined"!=typeof self&&self||void 0!==commonjsGlobal$1&&commonjsGlobal$1||{},o="URLSearchParams"in t,i="Symbol"in t&&"iterator"in Symbol,r="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in t,s="ArrayBuffer"in t;if(s)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function h(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function x(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&r&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=h(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(r)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,o,i,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=g(t),o=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=o?o[1]:"utf-8",t.readAsText(e,i),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),o=0;o<t.length;o++)n[o]=String.fromCharCode(t[o]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},m.prototype.delete=function(e){delete this.map[d(e)]},m.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},m.prototype.set=function(e,t){this.map[d(e)]=p(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),u(e)},m.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},m.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),u(e)},i&&(m.prototype[Symbol.iterator]=m.prototype.entries);var S=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function C(e,n){if(!(this instanceof C))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var o,i,r=(n=n||{}).body;if(e instanceof C){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new m(n.headers)),this.method=(o=n.method||this.method||"GET",i=o.toUpperCase(),S.indexOf(i)>-1?i:o),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal||function(){if("AbortController"in t)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function b(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),o=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function $(e,t){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})},y.call(C.prototype),y.call($.prototype),$.prototype.clone=function(){return new $(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},$.error=function(){var e=new $(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var v=[301,302,303,307,308];$.redirect=function(e,t){if(-1===v.indexOf(t))throw new RangeError("Invalid status code");return new $(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(w){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function E(n,o){return new Promise(function(i,a){var l=new C(n,o);if(l.signal&&l.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function u(){c.abort()}if(c.onload=function(){var e,t,n={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),o=n.shift().trim();if(o){var i=n.join(":").trim();try{t.append(o,i)}catch(r){console.warn("Response "+r.message)}}}),t)};0===l.url.indexOf("file://")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;setTimeout(function(){i(new $(o,n))},0)},c.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){a(new e.DOMException("Aborted","AbortError"))},0)},c.open(l.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(n){return e}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(r?c.responseType="blob":s&&(c.responseType="arraybuffer")),o&&"object"==typeof o.headers&&!(o.headers instanceof m||t.Headers&&o.headers instanceof t.Headers)){var h=[];Object.getOwnPropertyNames(o.headers).forEach(function(e){h.push(d(e)),c.setRequestHeader(e,p(o.headers[e]))}),l.headers.forEach(function(e,t){-1===h.indexOf(t)&&c.setRequestHeader(t,e)})}else l.headers.forEach(function(e,t){c.setRequestHeader(t,e)});l.signal&&(l.signal.addEventListener("abort",u),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",u)}),c.send(void 0===l._bodyInit?null:l._bodyInit)})}E.polyfill=!0,t.fetch||(t.fetch=E,t.Headers=m,t.Request=C,t.Response=$),e.Headers=m,e.Request=C,e.Response=$,e.fetch=E,Object.defineProperty(e,"__esModule",{value:!0})}({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var r=o.fetch?o:i;(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t}(browserPonyfill,browserPonyfill.exports)),browserPonyfill.exports}var browserPonyfillExports=requireBrowserPonyfill();const fetch$1=getDefaultExportFromCjs(browserPonyfillExports),SvgNewVendor=e=>React__namespace.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},React__namespace.createElement("path",{d:"M7.5055 4L1.5 9.54354L22.5 9.5435",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M16.4945 19.7067L22.5 14.1632H1.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));__webpack_exports__GlobalWorkerOptions.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${__webpack_exports__version}/pdf.worker.mjs`;const{common:common$3b}=appLocale.getLocalizedStrings(),FileInputElementName$1="invoice",getEffectiveCitationVariant=(e,t,n)=>{if("deleted"===e.variant)return"deleted";if("excluded"===e.variant)return"excluded";return null!=t&&e.statementTransactionId===t||null!=n&&e.statementTransactionId===n?"hovered":e.variant??"default"},findCitationTransactionIdAtPoint=(e,t,n)=>{const o=Array.from(e.querySelectorAll("[data-statement-transaction-id]"));for(const i of o){if("excluded"===i.dataset.citationVariant)continue;const e=i.getBoundingClientRect();if(t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom)return i.dataset.statementTransactionId}},getScrollTargetPageNumber=(e,t)=>{if(null==t)return;const n=e.find(e=>e.statementTransactionId===t);return n?.page},isElementVisibleInContainer=(e,t)=>{const n=e.getBoundingClientRect(),o=null!=t?t.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return n.bottom>o.top&&n.top<o.bottom&&n.right>o.left&&n.left<o.right},getScrollableParent=e=>{let t=e.parentElement;for(;null!=t;){const{overflowY:e}=window.getComputedStyle(t);if(("auto"===e||"scroll"===e)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return null},scrollPageElementIntoView=(e,t,n="smooth")=>{const o=t??getScrollableParent(e);if(null==o)return void e.scrollIntoView({behavior:n,block:"center"});const i=e.getBoundingClientRect(),r=o.getBoundingClientRect(),a=o.scrollTop+(i.top-r.top)-(o.clientHeight-i.height)/2;o.scrollTo({top:Math.max(0,a),behavior:n})};function getPolygonBounds(e){const t=e.map(e=>e.x),n=e.map(e=>e.y);return{maxX:Math.max(...t),maxY:Math.max(...n),minX:Math.min(...t),minY:Math.min(...n)}}function convertPolygonToPercent(e,t,n){const{minX:o,maxX:i,minY:r,maxY:a}=getPolygonBounds(e);return{height:(a-r)/n*100,left:o/t*100,top:r/n*100,width:(i-o)/t*100}}function RenderPdf(e){const[t,n]=React.useState(0),[o,i]=React.useState(void 0),[r,a]=React.useState(null),[s,l]=React.useState(void 0),c=useWindowSizeContext(),d=React.useRef(null),p=React.useRef(null),u=React.useRef(void 0),m=null!=e.highlightedCitations&&e.highlightedCitations.length>0;React.useLayoutEffect(()=>{if(e.isFullScreen)return void i(void 0);const t=p.current;if(null==t)return;const n=()=>{const e=Math.floor(t.clientWidth);e>0&&i(t=>t===e?t:e)};n();const o=new ResizeObserver(n);return o.observe(t),()=>{o.disconnect()}},[e.isFullScreen,e.fileUrl]);const h=t=>{u.current!==t&&(u.current=t,l(t),e.onCitationHover?.(t))},g=e=>{!0===m&&h(findCitationTransactionIdAtPoint(e.currentTarget,e.clientX,e.clientY))},x=()=>{!0===m&&h(void 0)},f=t=>{null!=e.onCitationClick&&e.onCitationClick(findCitationTransactionIdAtPoint(t.currentTarget,t.clientX,t.clientY))},y=React.useCallback(()=>{if(null==e.highlightedCitations||0===e.highlightedCitations.length)return;const t=getScrollTargetPageNumber(e.highlightedCitations,e.selectedStatementTransactionId);if(null==t)return;const n=p.current?.querySelector(`[data-testid="pdf-page-${t}"]`);if(null!=n){const t=p.current,o=null!=t&&t.scrollHeight>t.clientHeight?t:null,i=(null!=e.selectedStatementTransactionId?n.querySelector(`[data-statement-transaction-id="${CSS.escape(String(e.selectedStatementTransactionId))}"]`):null)??n;if(isElementVisibleInContainer(i,o))return;scrollPageElementIntoView(i,o)}},[e.highlightedCitations,e.selectedStatementTransactionId]);React.useEffect(()=>{if(null==e.highlightedCitations||0===e.highlightedCitations.length||null==e.selectedStatementTransactionId)return;y();const t=requestAnimationFrame(y),n=window.setTimeout(y,150);return()=>{cancelAnimationFrame(t),window.clearTimeout(n)}},[e.highlightedCitations,e.selectedStatementTransactionId,t,y]),React.useEffect(()=>{a(null),n(0)},[e.fileUrl]);const S=t=>{if(!e.highlightedCitations)return null;const n=e.highlightedCitations.filter(e=>e.page===t);return 0===n.length?null:jsxRuntimeExports.jsx(HighlightsOverlay,{children:n.flatMap((t,n)=>{const o=convertPolygonToPercent(t.polygon,t.pageWidth,t.pageHeight),i=getEffectiveCitationVariant(t,e.selectedStatementTransactionId,s);return jsxRuntimeExports.jsx(HighlightBox,{"data-citation-variant":i,"data-statement-transaction-id":t.statementTransactionId,$variant:i,style:{height:`${o.height}%`,left:`${o.left}%`,top:`${o.top}%`,width:`${o.width}%`}},`${n}`)})})},C=()=>{e.setShowFullScreenView(!0)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FileInputElement,{fileRef:d,name:FileInputElementName$1,onFileChange:t=>{if(null!=t.target.files){const n=t.target.files[0];e.onUploadAttachment?.([n],[n.name])}},multiple:e.allowMultiFiles,sizeLimit:SizeLimit32MB,onFileSizeError:t=>e.openSizeLimitPopup?.(t)}),jsxRuntimeExports.jsx(AttachmentContainer$2,{maxHeight:e.maxHeight??!1,$allowTextSelection:m,"data-statement-pdf-surface":"",onClick:()=>{m||C()},onDoubleClick:()=>{m&&C()},windowSize:c,"data-testid":generateDataTestId("attachment-container",e.pdfTitle),children:jsxRuntimeExports.jsxs(PdfRender,{isFullScreen:e.isFullScreen,ref:p,children:[!0===e.showTitlebar?jsxRuntimeExports.jsxs(Titlebar$2,{children:[jsxRuntimeExports.jsx(PdfTitle$2,{children:e.pdfTitle}),!0===e.showTitlebarIcon?jsxRuntimeExports.jsxs(ActionIcons$1,{className:"actionIcons",children:[!1!==e.showReplaceIcon?jsxRuntimeExports.jsx(Tooltip$6,{enterDelay:600,display:"flex",title:common$3b.texts.replace,placement:"top-end",children:jsxRuntimeExports.jsx(ReplaceIconWrapper$1,{"data-testid":generateDataTestId("replace-attachment",e.pdfTitle),onClick:e=>{e.stopPropagation(),d.current?.click()}})}):null,"small"===c?jsxRuntimeExports.jsx(DeleteIconWrapperMobile$1,{"data-testid":null!=e.deleteAttachmentDataTestId?`${e.deleteAttachmentDataTestId}-mobile`:generateDataTestId("delete-attachment-mobile",e.pdfTitle),onClick:t=>{t.stopPropagation(),e.onDeleteClick?.()}}):jsxRuntimeExports.jsx(Tooltip$6,{enterDelay:600,display:"flex",title:common$3b.delete,placement:"top",children:jsxRuntimeExports.jsx(DeleteIconWrapper$c,{onClick:t=>{t.stopPropagation(),e.onDeleteClick?.()},"data-testid":e.deleteAttachmentDataTestId??generateDataTestId("delete-attachment",e.pdfTitle)})})]}):null]}):null,(()=>{const t=e.fileUrl.toLowerCase();return[".jpg",".jpeg",".png",".gif",".webp",".bmp"].some(e=>t.includes(e))})()?jsxRuntimeExports.jsx(ImageContainer$1,{children:jsxRuntimeExports.jsxs(ImageWrapper$2,{onMouseMove:g,onMouseLeave:x,onClick:f,children:[jsxRuntimeExports.jsx(StyledImage$g,{src:e.fileUrl,alt:e.pdfTitle,onLoad:e=>{const t=e.currentTarget;a({width:t.naturalWidth,height:t.naturalHeight})}},e.fileUrl),(()=>{if(!e.highlightedCitations||null==r)return null;const t=e.highlightedCitations.filter(e=>1===e.page);return 0===t.length?null:jsxRuntimeExports.jsx(HighlightsOverlay,{children:t.flatMap((t,n)=>{const o=convertPolygonToPercent(t.polygon,t.pageWidth,t.pageHeight),i=getEffectiveCitationVariant(t,e.selectedStatementTransactionId,s);return jsxRuntimeExports.jsx(HighlightBox,{"data-citation-variant":i,"data-statement-transaction-id":t.statementTransactionId,$variant:i,style:{height:`${o.height}%`,left:`${o.left}%`,top:`${o.top}%`,width:`${o.width}%`}},`${n}`)})})})()]})}):jsxRuntimeExports.jsxs(Document,{file:e.fileUrl,onLoadSuccess:({numPages:e})=>n(e),onLoadError:()=>n(0),loading:jsxRuntimeExports.jsx(BusyContainer$e,{children:jsxRuntimeExports.jsx(ActivityIndicator,{size:"ExtraLarge",start:!0})}),className:"pdfDoc",children:[Array.from(new Array(t),(n,i)=>jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:()=>e.onCrossClick?.(),children:jsxRuntimeExports.jsxs(PageWrapper$1,{windowSize:c,isFullScreen:e.isFullScreen,children:[jsxRuntimeExports.jsxs(PageContainer$p,{"data-testid":`pdf-page-${i+1}`,isFullScreen:e.isFullScreen,onMouseMove:g,onMouseLeave:x,onClick:f,children:[jsxRuntimeExports.jsx(Page$7,{pageNumber:i+1,className:"reactPdfPage",...e.isFullScreen?{scale:1.5}:null!=o?{width:o}:{scale:1},error:jsxRuntimeExports.jsx("div",{}),onRenderSuccess:()=>{(null!=e.highlightedCitations?getScrollTargetPageNumber(e.highlightedCitations,e.selectedStatementTransactionId):void 0)===i+1&&y()}},`page_${i+1}`),S(i+1)]}),t!=i+1?jsxRuntimeExports.jsx(Divider$c,{}):null]})},`page_${i+1}`)),jsxRuntimeExports.jsx("div",{})]},e.fileUrl)]})})]})}const AttachmentContainer$2=styled$2.div`
|
|
10224
|
+
`,BottomHeader=styled$2(H6Medium)``;function _mergeNamespaces$1(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function copyExifWithoutOrientation(e,t){return new Promise(function(n,o){let i;return getApp1Segment(e).then(function(e){try{return i=e,n(new Blob([t.slice(0,2),i,t.slice(2)],{type:"image/jpeg"}))}catch(r){return o(r)}},o)})}const getApp1Segment=e=>new Promise((t,n)=>{const o=new FileReader;o.addEventListener("load",({target:{result:e}})=>{const o=new DataView(e);let i=0;if(65496!==o.getUint16(i))return n("not a valid JPEG");for(i+=2;;){const r=o.getUint16(i);if(65498===r)break;const a=o.getUint16(i+2);if(65505===r&&1165519206===o.getUint32(i+4)){const r=i+10;let s;switch(o.getUint16(r)){case 18761:s=!0;break;case 19789:s=!1;break;default:return n("TIFF header contains invalid endian")}if(42!==o.getUint16(r+2,s))return n("TIFF header contains invalid version");const l=o.getUint32(r+4,s),c=r+l+2+12*o.getUint16(r+l,s);for(let e=r+l+2;e<c;e+=12)if(274==o.getUint16(e,s)){if(3!==o.getUint16(e+2,s))return n("Orientation data type is invalid");if(1!==o.getUint32(e+4,s))return n("Orientation data count is invalid");o.setUint16(e+8,1,s);break}return t(e.slice(i,i+2+a))}i+=2+a}return t(new Blob)}),o.readAsArrayBuffer(e)});var e={},t={get exports(){return e},set exports(t){e=t}},r2,i3,UZIP2;UZIP2={},t.exports=UZIP2,UZIP2.parse=function(e,t){for(var n=UZIP2.bin.readUshort,o=UZIP2.bin.readUint,i=0,r={},a=new Uint8Array(e),s=a.length-4;101010256!=o(a,s);)s--;i=s,i+=4;var l=n(a,i+=4);n(a,i+=2);var c=o(a,i+=2),d=o(a,i+=4);i+=4,i=d;for(var p=0;p<l;p++){o(a,i),i+=4,i+=4,i+=4,o(a,i+=4),c=o(a,i+=4);var u=o(a,i+=4),m=n(a,i+=4),h=n(a,i+2),g=n(a,i+4);i+=6;var x=o(a,i+=8);i+=4,i+=m+h+g,UZIP2._readLocal(a,x,r,c,u,t)}return r},UZIP2._readLocal=function(e,t,n,o,i,r){var a=UZIP2.bin.readUshort,s=UZIP2.bin.readUint;s(e,t),a(e,t+=4),a(e,t+=2);var l=a(e,t+=2);s(e,t+=2),s(e,t+=4),t+=4;var c=a(e,t+=8),d=a(e,t+=2);t+=2;var p=UZIP2.bin.readUTF8(e,t,c);if(t+=c,t+=d,r)n[p]={size:i,csize:o};else{var u=new Uint8Array(e.buffer,t);if(0==l)n[p]=new Uint8Array(u.buffer.slice(t,t+o));else{if(8!=l)throw"unknown compression method: "+l;var m=new Uint8Array(i);UZIP2.inflateRaw(u,m),n[p]=m}}},UZIP2.inflateRaw=function(e,t){return UZIP2.F.inflate(e,t)},UZIP2.inflate=function(e,t){return e[0],e[1],UZIP2.inflateRaw(new Uint8Array(e.buffer,e.byteOffset+2,e.length-6),t)},UZIP2.deflate=function(e,t){null==t&&(t={level:6});var n=0,o=new Uint8Array(50+Math.floor(1.1*e.length));o[n]=120,o[n+1]=156,n+=2,n=UZIP2.F.deflateRaw(e,o,n,t.level);var i=UZIP2.adler(e,0,e.length);return o[n+0]=i>>>24&255,o[n+1]=i>>>16&255,o[n+2]=i>>>8&255,o[n+3]=i>>>0&255,new Uint8Array(o.buffer,0,n+4)},UZIP2.deflateRaw=function(e,t){null==t&&(t={level:6});var n=new Uint8Array(50+Math.floor(1.1*e.length)),o=UZIP2.F.deflateRaw(e,n,o,t.level);return new Uint8Array(n.buffer,0,o)},UZIP2.encode=function(e,t){null==t&&(t=!1);var n=0,o=UZIP2.bin.writeUint,i=UZIP2.bin.writeUshort,r={};for(var a in e){var s=!UZIP2._noNeed(a)&&!t,l=e[a],c=UZIP2.crc.crc(l,0,l.length);r[a]={cpr:s,usize:l.length,crc:c,file:s?UZIP2.deflateRaw(l):l}}for(var a in r)n+=r[a].file.length+30+46+2*UZIP2.bin.sizeUTF8(a);n+=22;var d=new Uint8Array(n),p=0,u=[];for(var a in r){var m=r[a];u.push(p),p=UZIP2._writeHeader(d,p,a,m,0)}var h=0,g=p;for(var a in r)m=r[a],u.push(p),p=UZIP2._writeHeader(d,p,a,m,1,u[h++]);var x=p-g;return o(d,p,101010256),p+=4,i(d,p+=4,h),i(d,p+=2,h),o(d,p+=2,x),o(d,p+=4,g),p+=4,p+=2,d.buffer},UZIP2._noNeed=function(e){var t=e.split(".").pop().toLowerCase();return-1!="png,jpg,jpeg,zip".indexOf(t)},UZIP2._writeHeader=function(e,t,n,o,i,r){var a=UZIP2.bin.writeUint,s=UZIP2.bin.writeUshort,l=o.file;return a(e,t,0==i?67324752:33639248),t+=4,1==i&&(t+=2),s(e,t,20),s(e,t+=2,0),s(e,t+=2,o.cpr?8:0),a(e,t+=2,0),a(e,t+=4,o.crc),a(e,t+=4,l.length),a(e,t+=4,o.usize),s(e,t+=4,UZIP2.bin.sizeUTF8(n)),s(e,t+=2,0),t+=2,1==i&&(t+=2,t+=2,a(e,t+=6,r),t+=4),t+=UZIP2.bin.writeUTF8(e,t,n),0==i&&(e.set(l,t),t+=l.length),t},UZIP2.crc={table:function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var n=t,o=0;o<8;o++)1&n?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e}(),update:function(e,t,n,o){for(var i=0;i<o;i++)e=UZIP2.crc.table[255&(e^t[n+i])]^e>>>8;return e},crc:function(e,t,n){return 4294967295^UZIP2.crc.update(4294967295,e,t,n)}},UZIP2.adler=function(e,t,n){for(var o=1,i=0,r=t,a=t+n;r<a;){for(var s=Math.min(r+5552,a);r<s;)i+=o+=e[r++];o%=65521,i%=65521}return i<<16|o},UZIP2.bin={readUshort:function(e,t){return e[t]|e[t+1]<<8},writeUshort:function(e,t,n){e[t]=255&n,e[t+1]=n>>8&255},readUint:function(e,t){return 16777216*e[t+3]+(e[t+2]<<16|e[t+1]<<8|e[t])},writeUint:function(e,t,n){e[t]=255&n,e[t+1]=n>>8&255,e[t+2]=n>>16&255,e[t+3]=n>>24&255},readASCII:function(e,t,n){for(var o="",i=0;i<n;i++)o+=String.fromCharCode(e[t+i]);return o},writeASCII:function(e,t,n){for(var o=0;o<n.length;o++)e[t+o]=n.charCodeAt(o)},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,n){for(var o,i="",r=0;r<n;r++)i+="%"+UZIP2.bin.pad(e[t+r].toString(16));try{o=decodeURIComponent(i)}catch(a){return UZIP2.bin.readASCII(e,t,n)}return o},writeUTF8:function(e,t,n){for(var o=n.length,i=0,r=0;r<o;r++){var a=n.charCodeAt(r);if(4294967168&a)if(4294965248&a)if(4294901760&a){if(4292870144&a)throw"e";e[t+i]=240|a>>18,e[t+i+1]=128|a>>12&63,e[t+i+2]=128|a>>6&63,e[t+i+3]=128|63&a,i+=4}else e[t+i]=224|a>>12,e[t+i+1]=128|a>>6&63,e[t+i+2]=128|63&a,i+=3;else e[t+i]=192|a>>6,e[t+i+1]=128|63&a,i+=2;else e[t+i]=a,i++}return i},sizeUTF8:function(e){for(var t=e.length,n=0,o=0;o<t;o++){var i=e.charCodeAt(o);if(4294967168&i)if(4294965248&i)if(4294901760&i){if(4292870144&i)throw"e";n+=4}else n+=3;else n+=2;else n++}return n}},UZIP2.F={},UZIP2.F.deflateRaw=function(e,t,n,o){var i=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][o],r=UZIP2.F.U,a=UZIP2.F._goodIndex;UZIP2.F._hash;var s=UZIP2.F._putsE,l=0,c=n<<3,d=0,p=e.length;if(0==o){for(;l<p;)s(t,c,l+(v=Math.min(65535,p-l))==p?1:0),c=UZIP2.F._copyExact(e,l,v,t,c+8),l+=v;return c>>>3}var u=r.lits,m=r.strt,h=r.prev,g=0,x=0,f=0,y=0,S=0,C=0;for(p>2&&(m[C=UZIP2.F._hash(e,0)]=0),l=0;l<p;l++){if(S=C,l+1<p-2){C=UZIP2.F._hash(e,l+1);var b=l+1&32767;h[b]=m[C],m[C]=b}if(d<=l){(g>14e3||x>26697)&&p-l>100&&(d<l&&(u[g]=l-d,g+=2,d=l),c=UZIP2.F._writeBlock(l==p-1||d==p?1:0,u,g,y,e,f,l-f,t,c),g=x=y=0,f=l);var $=0;l<p-2&&($=UZIP2.F._bestMatch(e,l,h,S,Math.min(i[2],p-l),i[3]));var v=$>>>16,E=65535&$;if(0!=$){E=65535&$;var w=a(v=$>>>16,r.of0);r.lhst[257+w]++;var R=a(E,r.df0);r.dhst[R]++,y+=r.exb[w]+r.dxb[R],u[g]=v<<23|l-d,u[g+1]=E<<16|w<<8|R,g+=2,d=l+v}else r.lhst[e[l]]++;x++}}for(f==l&&0!=e.length||(d<l&&(u[g]=l-d,g+=2,d=l),c=UZIP2.F._writeBlock(1,u,g,y,e,f,l-f,t,c),g=0,x=0,g=x=y=0,f=l);7&c;)c++;return c>>>3},UZIP2.F._bestMatch=function(e,t,n,o,i,r){var a=32767&t,s=n[a],l=a-s+32768&32767;if(s==a||o!=UZIP2.F._hash(e,t-l))return 0;for(var c=0,d=0,p=Math.min(32767,t);l<=p&&0!=--r&&s!=a;){if(0==c||e[t+c]==e[t+c-l]){var u=UZIP2.F._howLong(e,t,l);if(u>c){if(d=l,(c=u)>=i)break;l+2<u&&(u=l+2);for(var m=0,h=0;h<u-2;h++){var g=t-l+h+32768&32767,x=g-n[g]+32768&32767;x>m&&(m=x,s=g)}}}l+=(a=s)-(s=n[a])+32768&32767}return c<<16|d},UZIP2.F._howLong=function(e,t,n){if(e[t]!=e[t-n]||e[t+1]!=e[t+1-n]||e[t+2]!=e[t+2-n])return 0;var o=t,i=Math.min(e.length,t+258);for(t+=3;t<i&&e[t]==e[t-n];)t++;return t-o},UZIP2.F._hash=function(e,t){return(e[t]<<8|e[t+1])+(e[t+2]<<4)&65535},UZIP2.saved=0,UZIP2.F._writeBlock=function(e,t,n,o,i,r,a,s,l){var c,d,p,u,m,h,g,x,f,y=UZIP2.F.U,S=UZIP2.F._putsF,C=UZIP2.F._putsE;y.lhst[256]++,d=(c=UZIP2.F.getTrees())[0],p=c[1],u=c[2],m=c[3],h=c[4],g=c[5],x=c[6],f=c[7];var b=32+(l+3&7?8-(l+3&7):0)+(a<<3),$=o+UZIP2.F.contSize(y.fltree,y.lhst)+UZIP2.F.contSize(y.fdtree,y.dhst),v=o+UZIP2.F.contSize(y.ltree,y.lhst)+UZIP2.F.contSize(y.dtree,y.dhst);v+=14+3*g+UZIP2.F.contSize(y.itree,y.ihst)+(2*y.ihst[16]+3*y.ihst[17]+7*y.ihst[18]);for(var E=0;E<286;E++)y.lhst[E]=0;for(E=0;E<30;E++)y.dhst[E]=0;for(E=0;E<19;E++)y.ihst[E]=0;var w=b<$&&b<v?0:$<v?1:2;if(S(s,l,e),S(s,l+1,w),l+=3,0==w){for(;7&l;)l++;l=UZIP2.F._copyExact(i,r,a,s,l)}else{var R,A;if(1==w&&(R=y.fltree,A=y.fdtree),2==w){UZIP2.F.makeCodes(y.ltree,d),UZIP2.F.revCodes(y.ltree,d),UZIP2.F.makeCodes(y.dtree,p),UZIP2.F.revCodes(y.dtree,p),UZIP2.F.makeCodes(y.itree,u),UZIP2.F.revCodes(y.itree,u),R=y.ltree,A=y.dtree,C(s,l,m-257),C(s,l+=5,h-1),C(s,l+=5,g-4),l+=4;for(var j=0;j<g;j++)C(s,l+3*j,y.itree[1+(y.ordr[j]<<1)]);l+=3*g,l=UZIP2.F._codeTiny(x,y.itree,s,l),l=UZIP2.F._codeTiny(f,y.itree,s,l)}for(var T=r,I=0;I<n;I+=2){for(var k=t[I],L=k>>>23,D=T+(8388607&k);T<D;)l=UZIP2.F._writeLit(i[T++],R,s,l);if(0!=L){var _=t[I+1],P=_>>16,B=_>>8&255,M=255&_;C(s,l=UZIP2.F._writeLit(257+B,R,s,l),L-y.of0[B]),l+=y.exb[B],S(s,l=UZIP2.F._writeLit(M,A,s,l),P-y.df0[M]),l+=y.dxb[M],T+=L}}l=UZIP2.F._writeLit(256,R,s,l)}return l},UZIP2.F._copyExact=function(e,t,n,o,i){var r=i>>>3;return o[r]=n,o[r+1]=n>>>8,o[r+2]=255-o[r],o[r+3]=255-o[r+1],r+=4,o.set(new Uint8Array(e.buffer,t,n),r),i+(n+4<<3)},UZIP2.F.getTrees=function(){for(var e=UZIP2.F.U,t=UZIP2.F._hufTree(e.lhst,e.ltree,15),n=UZIP2.F._hufTree(e.dhst,e.dtree,15),o=[],i=UZIP2.F._lenCodes(e.ltree,o),r=[],a=UZIP2.F._lenCodes(e.dtree,r),s=0;s<o.length;s+=2)e.ihst[o[s]]++;for(s=0;s<r.length;s+=2)e.ihst[r[s]]++;for(var l=UZIP2.F._hufTree(e.ihst,e.itree,7),c=19;c>4&&0==e.itree[1+(e.ordr[c-1]<<1)];)c--;return[t,n,l,i,a,c,o,r]},UZIP2.F.getSecond=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(e[n+1]);return t},UZIP2.F.nonZero=function(e){for(var t="",n=0;n<e.length;n+=2)0!=e[n+1]&&(t+=(n>>1)+",");return t},UZIP2.F.contSize=function(e,t){for(var n=0,o=0;o<t.length;o++)n+=t[o]*e[1+(o<<1)];return n},UZIP2.F._codeTiny=function(e,t,n,o){for(var i=0;i<e.length;i+=2){var r=e[i],a=e[i+1];o=UZIP2.F._writeLit(r,t,n,o);var s=16==r?2:17==r?3:7;r>15&&(UZIP2.F._putsE(n,o,a,s),o+=s)}return o},UZIP2.F._lenCodes=function(e,t){for(var n=e.length;2!=n&&0==e[n-1];)n-=2;for(var o=0;o<n;o+=2){var i=e[o+1],r=o+3<n?e[o+3]:-1,a=o+5<n?e[o+5]:-1,s=0==o?-1:e[o-1];if(0==i&&r==i&&a==i){for(var l=o+5;l+2<n&&e[l+2]==i;)l+=2;(c=Math.min(l+1-o>>>1,138))<11?t.push(17,c-3):t.push(18,c-11),o+=2*c-2}else if(i==s&&r==i&&a==i){for(l=o+5;l+2<n&&e[l+2]==i;)l+=2;var c=Math.min(l+1-o>>>1,6);t.push(16,c-3),o+=2*c-2}else t.push(i,0)}return n>>>1},UZIP2.F._hufTree=function(e,t,n){var o=[],i=e.length,r=t.length,a=0;for(a=0;a<r;a+=2)t[a]=0,t[a+1]=0;for(a=0;a<i;a++)0!=e[a]&&o.push({lit:a,f:e[a]});var s=o.length,l=o.slice(0);if(0==s)return 0;if(1==s){var c=o[0].lit;return l=0==c?1:0,t[1+(c<<1)]=1,t[1+(l<<1)]=1,1}o.sort(function(e,t){return e.f-t.f});var d=o[0],p=o[1],u=0,m=1,h=2;for(o[0]={lit:-1,f:d.f+p.f,l:d,r:p,d:0};m!=s-1;)d=u!=m&&(h==s||o[u].f<o[h].f)?o[u++]:o[h++],p=u!=m&&(h==s||o[u].f<o[h].f)?o[u++]:o[h++],o[m++]={lit:-1,f:d.f+p.f,l:d,r:p};var g=UZIP2.F.setDepth(o[m-1],0);for(g>n&&(UZIP2.F.restrictDepth(l,n,g),g=n),a=0;a<s;a++)t[1+(l[a].lit<<1)]=l[a].d;return g},UZIP2.F.setDepth=function(e,t){return-1!=e.lit?(e.d=t,t):Math.max(UZIP2.F.setDepth(e.l,t+1),UZIP2.F.setDepth(e.r,t+1))},UZIP2.F.restrictDepth=function(e,t,n){var o=0,i=1<<n-t,r=0;for(e.sort(function(e,t){return t.d==e.d?e.f-t.f:t.d-e.d}),o=0;o<e.length&&e[o].d>t;o++){var a=e[o].d;e[o].d=t,r+=i-(1<<n-a)}for(r>>>=n-t;r>0;)(a=e[o].d)<t?(e[o].d++,r-=1<<t-a-1):o++;for(;o>=0;o--)e[o].d==t&&r<0&&(e[o].d--,r++);0!=r&&console.log("debt left")},UZIP2.F._goodIndex=function(e,t){var n=0;return t[16|n]<=e&&(n|=16),t[8|n]<=e&&(n|=8),t[4|n]<=e&&(n|=4),t[2|n]<=e&&(n|=2),t[1|n]<=e&&(n|=1),n},UZIP2.F._writeLit=function(e,t,n,o){return UZIP2.F._putsF(n,o,t[e<<1]),o+t[1+(e<<1)]},UZIP2.F.inflate=function(e,t){var n=Uint8Array;if(3==e[0]&&0==e[1])return t||new n(0);var o=UZIP2.F,i=o._bitsF,r=o._bitsE,a=o._decodeTiny,s=o.makeCodes,l=o.codes2map,c=o._get17,d=o.U,p=null==t;p&&(t=new n(e.length>>>2<<3));for(var u,m,h=0,g=0,x=0,f=0,y=0,S=0,C=0,b=0,$=0;0==h;)if(h=i(e,$,1),g=i(e,$+1,2),$+=3,0!=g){if(p&&(t=UZIP2.F._check(t,b+(1<<17))),1==g&&(u=d.flmap,m=d.fdmap,S=511,C=31),2==g){x=r(e,$,5)+257,f=r(e,$+5,5)+1,y=r(e,$+10,4)+4,$+=14;for(var v=0;v<38;v+=2)d.itree[v]=0,d.itree[v+1]=0;var E=1;for(v=0;v<y;v++){var w=r(e,$+3*v,3);d.itree[1+(d.ordr[v]<<1)]=w,w>E&&(E=w)}$+=3*y,s(d.itree,E),l(d.itree,E,d.imap),u=d.lmap,m=d.dmap,$=a(d.imap,(1<<E)-1,x+f,e,$,d.ttree);var R=o._copyOut(d.ttree,0,x,d.ltree);S=(1<<R)-1;var A=o._copyOut(d.ttree,x,f,d.dtree);C=(1<<A)-1,s(d.ltree,R),l(d.ltree,R,u),s(d.dtree,A),l(d.dtree,A,m)}for(;;){var j=u[c(e,$)&S];$+=15&j;var T=j>>>4;if(T>>>8==0)t[b++]=T;else{if(256==T)break;var I=b+T-254;if(T>264){var k=d.ldef[T-257];I=b+(k>>>3)+r(e,$,7&k),$+=7&k}var L=m[c(e,$)&C];$+=15&L;var D=L>>>4,_=d.ddef[D],P=(_>>>4)+i(e,$,15&_);for($+=15&_,p&&(t=UZIP2.F._check(t,b+(1<<17)));b<I;)t[b]=t[b++-P],t[b]=t[b++-P],t[b]=t[b++-P],t[b]=t[b++-P];b=I}}}else{7&$&&($+=8-(7&$));var B=4+($>>>3),M=e[B-4]|e[B-3]<<8;p&&(t=UZIP2.F._check(t,b+M)),t.set(new n(e.buffer,e.byteOffset+B,M),b),$=B+M<<3,b+=M}return t.length==b?t:t.slice(0,b)},UZIP2.F._check=function(e,t){var n=e.length;if(t<=n)return e;var o=new Uint8Array(Math.max(n<<1,t));return o.set(e,0),o},UZIP2.F._decodeTiny=function(e,t,n,o,i,r){for(var a=UZIP2.F._bitsE,s=UZIP2.F._get17,l=0;l<n;){var c=e[s(o,i)&t];i+=15&c;var d=c>>>4;if(d<=15)r[l]=d,l++;else{var p=0,u=0;16==d?(u=3+a(o,i,2),i+=2,p=r[l-1]):17==d?(u=3+a(o,i,3),i+=3):18==d&&(u=11+a(o,i,7),i+=7);for(var m=l+u;l<m;)r[l]=p,l++}}return i},UZIP2.F._copyOut=function(e,t,n,o){for(var i=0,r=0,a=o.length>>>1;r<n;){var s=e[r+t];o[r<<1]=0,o[1+(r<<1)]=s,s>i&&(i=s),r++}for(;r<a;)o[r<<1]=0,o[1+(r<<1)]=0,r++;return i},UZIP2.F.makeCodes=function(e,t){for(var n,o,i,r,a=UZIP2.F.U,s=e.length,l=a.bl_count,c=0;c<=t;c++)l[c]=0;for(c=1;c<s;c+=2)l[e[c]]++;var d=a.next_code;for(n=0,l[0]=0,o=1;o<=t;o++)n=n+l[o-1]<<1,d[o]=n;for(i=0;i<s;i+=2)0!=(r=e[i+1])&&(e[i]=d[r],d[r]++)},UZIP2.F.codes2map=function(e,t,n){for(var o=e.length,i=UZIP2.F.U.rev15,r=0;r<o;r+=2)if(0!=e[r+1])for(var a=r>>1,s=e[r+1],l=a<<4|s,c=t-s,d=e[r]<<c,p=d+(1<<c);d!=p;)n[i[d]>>>15-t]=l,d++},UZIP2.F.revCodes=function(e,t){for(var n=UZIP2.F.U.rev15,o=15-t,i=0;i<e.length;i+=2){var r=e[i]<<t-e[i+1];e[i]=n[r]>>>o}},UZIP2.F._putsE=function(e,t,n){n<<=7&t;var o=t>>>3;e[o]|=n,e[o+1]|=n>>>8},UZIP2.F._putsF=function(e,t,n){n<<=7&t;var o=t>>>3;e[o]|=n,e[o+1]|=n>>>8,e[o+2]|=n>>>16},UZIP2.F._bitsE=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<n)-1},UZIP2.F._bitsF=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<n)-1},UZIP2.F._get17=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},UZIP2.F._get25=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},UZIP2.F.U=(r2=Uint16Array,i3=Uint32Array,{next_code:new r2(16),bl_count:new r2(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new r2(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new i3(32),flmap:new r2(512),fltree:[],fdmap:new r2(32),fdtree:[],lmap:new r2(32768),ltree:[],ttree:[],dmap:new r2(32768),dtree:[],imap:new r2(512),itree:[],rev15:new r2(32768),lhst:new i3(286),dhst:new i3(30),ihst:new i3(19),lits:new i3(15e3),strt:new r2(65536),prev:new r2(32768)}),function(){for(var e=UZIP2.F.U,t=0;t<32768;t++){var n=t;n=(4278255360&(n=(4042322160&(n=(3435973836&(n=(2863311530&n)>>>1|(1431655765&n)<<1))>>>2|(858993459&n)<<2))>>>4|(252645135&n)<<4))>>>8|(16711935&n)<<8,e.rev15[t]=(n>>>16|n<<16)>>>17}function o(e,t,n){for(;0!=t--;)e.push(0,n)}for(t=0;t<32;t++)e.ldef[t]=e.of0[t]<<3|e.exb[t],e.ddef[t]=e.df0[t]<<4|e.dxb[t];o(e.fltree,144,8),o(e.fltree,112,9),o(e.fltree,24,7),o(e.fltree,8,8),UZIP2.F.makeCodes(e.fltree,9),UZIP2.F.codes2map(e.fltree,9,e.flmap),UZIP2.F.revCodes(e.fltree,9),o(e.fdtree,32,5),UZIP2.F.makeCodes(e.fdtree,5),UZIP2.F.codes2map(e.fdtree,5,e.fdmap),UZIP2.F.revCodes(e.fdtree,5),o(e.itree,19,0),o(e.ltree,286,0),o(e.dtree,30,0),o(e.ttree,320,0)}();var UZIP=_mergeNamespaces$1({__proto__:null,default:e},[e]);const UPNG=function(){var e={nextZero(e,t){for(;0!=e[t];)t++;return t},readUshort:(e,t)=>e[t]<<8|e[t+1],writeUshort(e,t,n){e[t]=n>>8&255,e[t+1]=255&n},readUint:(e,t)=>16777216*e[t]+(e[t+1]<<16|e[t+2]<<8|e[t+3]),writeUint(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n},readASCII(e,t,n){let o="";for(let i=0;i<n;i++)o+=String.fromCharCode(e[t+i]);return o},writeASCII(e,t,n){for(let o=0;o<n.length;o++)e[t+o]=n.charCodeAt(o)},readBytes(e,t,n){const o=[];for(let i=0;i<n;i++)o.push(e[t+i]);return o},pad:e=>e.length<2?`0${e}`:e,readUTF8(t,n,o){let i,r="";for(let s=0;s<o;s++)r+=`%${e.pad(t[n+s].toString(16))}`;try{i=decodeURIComponent(r)}catch(a){return e.readASCII(t,n,o)}return i}};function t(t,n,o,i){const a=n*o,s=r(i),l=Math.ceil(n*s/8),c=new Uint8Array(4*a),d=new Uint32Array(c.buffer),{ctype:p}=i,{depth:u}=i,m=e.readUshort;if(6==p){const e=a<<2;if(8==u)for(var h=0;h<e;h+=4)c[h]=t[h],c[h+1]=t[h+1],c[h+2]=t[h+2],c[h+3]=t[h+3];if(16==u)for(h=0;h<e;h++)c[h]=t[h<<1]}else if(2==p){const e=i.tabs.tRNS;if(null==e){if(8==u)for(h=0;h<a;h++){var g=3*h;d[h]=255<<24|t[g+2]<<16|t[g+1]<<8|t[g]}if(16==u)for(h=0;h<a;h++)g=6*h,d[h]=255<<24|t[g+4]<<16|t[g+2]<<8|t[g]}else{var x=e[0];const n=e[1],o=e[2];if(8==u)for(h=0;h<a;h++){var f=h<<2;g=3*h,d[h]=255<<24|t[g+2]<<16|t[g+1]<<8|t[g],t[g]==x&&t[g+1]==n&&t[g+2]==o&&(c[f+3]=0)}if(16==u)for(h=0;h<a;h++)f=h<<2,g=6*h,d[h]=255<<24|t[g+4]<<16|t[g+2]<<8|t[g],m(t,g)==x&&m(t,g+2)==n&&m(t,g+4)==o&&(c[f+3]=0)}}else if(3==p){const e=i.tabs.PLTE,r=i.tabs.tRNS,s=r?r.length:0;if(1==u)for(var y=0;y<o;y++){var S=y*l,C=y*n;for(h=0;h<n;h++){f=C+h<<2;var b=3*($=t[S+(h>>3)]>>7-(7&h)&1);c[f]=e[b],c[f+1]=e[b+1],c[f+2]=e[b+2],c[f+3]=$<s?r[$]:255}}if(2==u)for(y=0;y<o;y++)for(S=y*l,C=y*n,h=0;h<n;h++)f=C+h<<2,b=3*($=t[S+(h>>2)]>>6-((3&h)<<1)&3),c[f]=e[b],c[f+1]=e[b+1],c[f+2]=e[b+2],c[f+3]=$<s?r[$]:255;if(4==u)for(y=0;y<o;y++)for(S=y*l,C=y*n,h=0;h<n;h++)f=C+h<<2,b=3*($=t[S+(h>>1)]>>4-((1&h)<<2)&15),c[f]=e[b],c[f+1]=e[b+1],c[f+2]=e[b+2],c[f+3]=$<s?r[$]:255;if(8==u)for(h=0;h<a;h++){var $;f=h<<2,b=3*($=t[h]),c[f]=e[b],c[f+1]=e[b+1],c[f+2]=e[b+2],c[f+3]=$<s?r[$]:255}}else if(4==p){if(8==u)for(h=0;h<a;h++){f=h<<2;var v=t[E=h<<1];c[f]=v,c[f+1]=v,c[f+2]=v,c[f+3]=t[E+1]}if(16==u)for(h=0;h<a;h++){var E;f=h<<2,v=t[E=h<<2],c[f]=v,c[f+1]=v,c[f+2]=v,c[f+3]=t[E+2]}}else if(0==p)for(x=i.tabs.tRNS?i.tabs.tRNS:-1,y=0;y<o;y++){const e=y*l,o=y*n;if(1==u)for(var w=0;w<n;w++){var R=(v=255*(t[e+(w>>>3)]>>>7-(7&w)&1))==255*x?0:255;d[o+w]=R<<24|v<<16|v<<8|v}else if(2==u)for(w=0;w<n;w++)R=(v=85*(t[e+(w>>>2)]>>>6-((3&w)<<1)&3))==85*x?0:255,d[o+w]=R<<24|v<<16|v<<8|v;else if(4==u)for(w=0;w<n;w++)R=(v=17*(t[e+(w>>>1)]>>>4-((1&w)<<2)&15))==17*x?0:255,d[o+w]=R<<24|v<<16|v<<8|v;else if(8==u)for(w=0;w<n;w++)R=(v=t[e+w])==x?0:255,d[o+w]=R<<24|v<<16|v<<8|v;else if(16==u)for(w=0;w<n;w++)v=t[e+(w<<1)],R=m(t,e+(w<<1))==x?0:255,d[o+w]=R<<24|v<<16|v<<8|v}return c}function n(e,t,n,s){const l=r(e),c=Math.ceil(n*l/8),d=new Uint8Array((c+1+e.interlace)*s);return t=e.tabs.CgBI?i(t,d):o(t,d),0==e.interlace?t=a(t,e,0,n,s):1==e.interlace&&(t=function(e,t){const n=t.width,o=t.height,i=r(t),s=i>>3,l=Math.ceil(n*i/8),c=new Uint8Array(o*l);let d=0;const p=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],m=[8,8,8,4,4,2,2],h=[8,8,4,4,2,2,1];let g=0;for(;g<7;){const r=m[g],f=h[g];let y=0,S=0,C=p[g];for(;C<o;)C+=r,S++;let b=u[g];for(;b<n;)b+=f,y++;const $=Math.ceil(y*i/8);a(e,t,d,y,S);let v=0,E=p[g];for(;E<o;){let t=u[g],o=d+v*$<<3;for(;t<n;){var x;if(1==i&&(x=(x=e[o>>3])>>7-(7&o)&1,c[E*l+(t>>3)]|=x<<7-(7&t)),2==i&&(x=(x=e[o>>3])>>6-(7&o)&3,c[E*l+(t>>2)]|=x<<6-((3&t)<<1)),4==i&&(x=(x=e[o>>3])>>4-(7&o)&15,c[E*l+(t>>1)]|=x<<4-((1&t)<<2)),i>=8){const n=E*l+t*s;for(let t=0;t<s;t++)c[n+t]=e[(o>>3)+t]}o+=i,t+=f}v++,E+=r}y*S!=0&&(d+=S*(1+$)),g+=1}return c}(t,e)),t}function o(e,t){return i(new Uint8Array(e.buffer,2,e.length-6),t)}var i=function(){const e={H:{}};return e.H.N=function(t,n){const o=Uint8Array;let i,r,a=0,s=0,l=0,c=0,d=0,p=0,u=0,m=0,h=0;if(3==t[0]&&0==t[1])return n||new o(0);const g=e.H,x=g.b,f=g.e,y=g.R,S=g.n,C=g.A,b=g.Z,$=g.m,v=null==n;for(v&&(n=new o(t.length>>>2<<5));0==a;)if(a=x(t,h,1),s=x(t,h+1,2),h+=3,0!=s){if(v&&(n=e.H.W(n,m+(1<<17))),1==s&&(i=$.J,r=$.h,p=511,u=31),2==s){l=f(t,h,5)+257,c=f(t,h+5,5)+1,d=f(t,h+10,4)+4,h+=14;let e=1;for(var E=0;E<38;E+=2)$.Q[E]=0,$.Q[E+1]=0;for(E=0;E<d;E++){const n=f(t,h+3*E,3);$.Q[1+($.X[E]<<1)]=n,n>e&&(e=n)}h+=3*d,S($.Q,e),C($.Q,e,$.u),i=$.w,r=$.d,h=y($.u,(1<<e)-1,l+c,t,h,$.v);const n=g.V($.v,0,l,$.C);p=(1<<n)-1;const o=g.V($.v,l,c,$.D);u=(1<<o)-1,S($.C,n),C($.C,n,i),S($.D,o),C($.D,o,r)}for(;;){const e=i[b(t,h)&p];h+=15&e;const o=e>>>4;if(o>>>8==0)n[m++]=o;else{if(256==o)break;{let e=m+o-254;if(o>264){const n=$.q[o-257];e=m+(n>>>3)+f(t,h,7&n),h+=7&n}const i=r[b(t,h)&u];h+=15&i;const a=i>>>4,s=$.c[a],l=(s>>>4)+x(t,h,15&s);for(h+=15&s;m<e;)n[m]=n[m++-l],n[m]=n[m++-l],n[m]=n[m++-l],n[m]=n[m++-l];m=e}}}}else{7&h&&(h+=8-(7&h));const i=4+(h>>>3),r=t[i-4]|t[i-3]<<8;v&&(n=e.H.W(n,m+r)),n.set(new o(t.buffer,t.byteOffset+i,r),m),h=i+r<<3,m+=r}return n.length==m?n:n.slice(0,m)},e.H.W=function(e,t){const n=e.length;if(t<=n)return e;const o=new Uint8Array(n<<1);return o.set(e,0),o},e.H.R=function(t,n,o,i,r,a){const s=e.H.e,l=e.H.Z;let c=0;for(;c<o;){const e=t[l(i,r)&n];r+=15&e;const o=e>>>4;if(o<=15)a[c]=o,c++;else{let e=0,t=0;16==o?(t=3+s(i,r,2),r+=2,e=a[c-1]):17==o?(t=3+s(i,r,3),r+=3):18==o&&(t=11+s(i,r,7),r+=7);const n=c+t;for(;c<n;)a[c]=e,c++}}return r},e.H.V=function(e,t,n,o){let i=0,r=0;const a=o.length>>>1;for(;r<n;){const n=e[r+t];o[r<<1]=0,o[1+(r<<1)]=n,n>i&&(i=n),r++}for(;r<a;)o[r<<1]=0,o[1+(r<<1)]=0,r++;return i},e.H.n=function(t,n){const o=e.H.m,i=t.length;let r,a,s,l;const c=o.j;for(var d=0;d<=n;d++)c[d]=0;for(d=1;d<i;d+=2)c[t[d]]++;const p=o.K;for(r=0,c[0]=0,a=1;a<=n;a++)r=r+c[a-1]<<1,p[a]=r;for(s=0;s<i;s+=2)l=t[s+1],0!=l&&(t[s]=p[l],p[l]++)},e.H.A=function(t,n,o){const i=t.length,r=e.H.m.r;for(let e=0;e<i;e+=2)if(0!=t[e+1]){const i=e>>1,a=t[e+1],s=i<<4|a,l=n-a;let c=t[e]<<l;const d=c+(1<<l);for(;c!=d;)o[r[c]>>>15-n]=s,c++}},e.H.l=function(t,n){const o=e.H.m.r,i=15-n;for(let e=0;e<t.length;e+=2){const r=t[e]<<n-t[e+1];t[e]=o[r]>>>i}},e.H.M=function(e,t,n){n<<=7&t;const o=t>>>3;e[o]|=n,e[o+1]|=n>>>8},e.H.I=function(e,t,n){n<<=7&t;const o=t>>>3;e[o]|=n,e[o+1]|=n>>>8,e[o+2]|=n>>>16},e.H.e=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<n)-1},e.H.b=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<n)-1},e.H.Z=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},e.H.i=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},e.H.m=function(){const e=Uint16Array,t=Uint32Array;return{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new e(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new t(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new e(65536),g:new e(32768)}}(),function(){const t=e.H.m;for(var n=0;n<32768;n++){let e=n;e=(2863311530&e)>>>1|(1431655765&e)<<1,e=(3435973836&e)>>>2|(858993459&e)<<2,e=(4042322160&e)>>>4|(252645135&e)<<4,e=(4278255360&e)>>>8|(16711935&e)<<8,t.r[n]=(e>>>16|e<<16)>>>17}function o(e,t,n){for(;0!=t--;)e.push(0,n)}for(n=0;n<32;n++)t.q[n]=t.S[n]<<3|t.T[n],t.c[n]=t.p[n]<<4|t.z[n];o(t._,144,8),o(t._,112,9),o(t._,24,7),o(t._,8,8),e.H.n(t._,9),e.H.A(t._,9,t.J),e.H.l(t._,9),o(t.$,32,5),e.H.n(t.$,5),e.H.A(t.$,5,t.h),e.H.l(t.$,5),o(t.Q,19,0),o(t.C,286,0),o(t.D,30,0),o(t.v,320,0)}(),e.H.N}();function r(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth}function a(e,t,n,o,i){let a=r(t);const l=Math.ceil(o*a/8);let c,d;a=Math.ceil(a/8);let p=e[n],u=0;if(p>1&&(e[n]=[0,0,1][p-2]),3==p)for(u=a;u<l;u++)e[u+1]=e[u+1]+(e[u+1-a]>>>1)&255;for(let r=0;r<i;r++)if(c=n+r*l,d=c+r+1,p=e[d-1],u=0,0==p)for(;u<l;u++)e[c+u]=e[d+u];else if(1==p){for(;u<a;u++)e[c+u]=e[d+u];for(;u<l;u++)e[c+u]=e[d+u]+e[c+u-a]}else if(2==p)for(;u<l;u++)e[c+u]=e[d+u]+e[c+u-l];else if(3==p){for(;u<a;u++)e[c+u]=e[d+u]+(e[c+u-l]>>>1);for(;u<l;u++)e[c+u]=e[d+u]+(e[c+u-l]+e[c+u-a]>>>1)}else{for(;u<a;u++)e[c+u]=e[d+u]+s(0,e[c+u-l],0);for(;u<l;u++)e[c+u]=e[d+u]+s(e[c+u-a],e[c+u-l],e[c+u-a-l])}return e}function s(e,t,n){const o=e+t-n,i=o-e,r=o-t,a=o-n;return i*i<=r*r&&i*i<=a*a?e:r*r<=a*a?t:n}function l(t,n,o){o.width=e.readUint(t,n),n+=4,o.height=e.readUint(t,n),n+=4,o.depth=t[n],n++,o.ctype=t[n],n++,o.compress=t[n],n++,o.filter=t[n],n++,o.interlace=t[n],n++}function c(e,t,n,o,i,r,a,s,l){const c=Math.min(t,i),d=Math.min(n,r);let p=0,u=0;for(let b=0;b<d;b++)for(let n=0;n<c;n++)if(a>=0&&s>=0?(p=b*t+n<<2,u=(s+b)*i+a+n<<2):(p=(-s+b)*t-a+n<<2,u=b*i+n<<2),0==l)o[u]=e[p],o[u+1]=e[p+1],o[u+2]=e[p+2],o[u+3]=e[p+3];else if(1==l){var m=e[p+3]*(1/255),h=e[p]*m,g=e[p+1]*m,x=e[p+2]*m,f=o[u+3]*(1/255),y=o[u]*f,S=o[u+1]*f,C=o[u+2]*f;const t=1-m,n=m+f*t,i=0==n?0:1/n;o[u+3]=255*n,o[u+0]=(h+y*t)*i,o[u+1]=(g+S*t)*i,o[u+2]=(x+C*t)*i}else if(2==l)m=e[p+3],h=e[p],g=e[p+1],x=e[p+2],f=o[u+3],y=o[u],S=o[u+1],C=o[u+2],m==f&&h==y&&g==S&&x==C?(o[u]=0,o[u+1]=0,o[u+2]=0,o[u+3]=0):(o[u]=h,o[u+1]=g,o[u+2]=x,o[u+3]=m);else if(3==l){if(m=e[p+3],h=e[p],g=e[p+1],x=e[p+2],f=o[u+3],y=o[u],S=o[u+1],C=o[u+2],m==f&&h==y&&g==S&&x==C)continue;if(m<220&&f>20)return!1}return!0}return{decode:function(t){const r=new Uint8Array(t);let a=8;const s=e,c=s.readUshort,d=s.readUint,p={tabs:{},frames:[]},u=new Uint8Array(r.length);let m,h=0,g=0;const x=[137,80,78,71,13,10,26,10];for(var f=0;f<8;f++)if(r[f]!=x[f])throw"The input is not a PNG file!";for(;a<r.length;){const e=s.readUint(r,a);a+=4;const t=s.readASCII(r,a,4);if(a+=4,"IHDR"==t)l(r,a,p);else if("iCCP"==t){for(var y=a;0!=r[y];)y++;s.readASCII(r,a,y-a),r[y+1];const n=r.slice(y+2,a+e);let l=null;try{l=o(n)}catch(w){l=i(n)}p.tabs[t]=l}else if("CgBI"==t)p.tabs[t]=r.slice(a,a+4);else if("IDAT"==t){for(f=0;f<e;f++)u[h+f]=r[a+f];h+=e}else if("acTL"==t)p.tabs[t]={num_frames:d(r,a),num_plays:d(r,a+4)},m=new Uint8Array(r.length);else if("fcTL"==t){0!=g&&((E=p.frames[p.frames.length-1]).data=n(p,m.slice(0,g),E.rect.width,E.rect.height),g=0);const e={x:d(r,a+12),y:d(r,a+16),width:d(r,a+4),height:d(r,a+8)};let t=c(r,a+22);t=c(r,a+20)/(0==t?100:t);const o={rect:e,delay:Math.round(1e3*t),dispose:r[a+24],blend:r[a+25]};p.frames.push(o)}else if("fdAT"==t){for(f=0;f<e-4;f++)m[g+f]=r[a+f+4];g+=e-4}else if("pHYs"==t)p.tabs[t]=[s.readUint(r,a),s.readUint(r,a+4),r[a+8]];else if("cHRM"==t)for(p.tabs[t]=[],f=0;f<8;f++)p.tabs[t].push(s.readUint(r,a+4*f));else if("tEXt"==t||"zTXt"==t){null==p.tabs[t]&&(p.tabs[t]={});var S=s.nextZero(r,a),C=s.readASCII(r,a,S-a),b=a+e-S-1;if("tEXt"==t)v=s.readASCII(r,S+1,b);else{var $=o(r.slice(S+2,S+2+b));v=s.readUTF8($,0,$.length)}p.tabs[t][C]=v}else if("iTXt"==t){null==p.tabs[t]&&(p.tabs[t]={}),S=0,y=a,S=s.nextZero(r,y),C=s.readASCII(r,y,S-y);const n=r[y=S+1];var v;r[y+1],y+=2,S=s.nextZero(r,y),s.readASCII(r,y,S-y),y=S+1,S=s.nextZero(r,y),s.readUTF8(r,y,S-y),b=e-((y=S+1)-a),0==n?v=s.readUTF8(r,y,b):($=o(r.slice(y,y+b)),v=s.readUTF8($,0,$.length)),p.tabs[t][C]=v}else if("PLTE"==t)p.tabs[t]=s.readBytes(r,a,e);else if("hIST"==t){const e=p.tabs.PLTE.length/3;for(p.tabs[t]=[],f=0;f<e;f++)p.tabs[t].push(c(r,a+2*f))}else if("tRNS"==t)3==p.ctype?p.tabs[t]=s.readBytes(r,a,e):0==p.ctype?p.tabs[t]=c(r,a):2==p.ctype&&(p.tabs[t]=[c(r,a),c(r,a+2),c(r,a+4)]);else if("gAMA"==t)p.tabs[t]=s.readUint(r,a)/1e5;else if("sRGB"==t)p.tabs[t]=r[a];else if("bKGD"==t)0==p.ctype||4==p.ctype?p.tabs[t]=[c(r,a)]:2==p.ctype||6==p.ctype?p.tabs[t]=[c(r,a),c(r,a+2),c(r,a+4)]:3==p.ctype&&(p.tabs[t]=r[a]);else if("IEND"==t)break;a+=e,s.readUint(r,a),a+=4}var E;return 0!=g&&((E=p.frames[p.frames.length-1]).data=n(p,m.slice(0,g),E.rect.width,E.rect.height)),p.data=n(p,u,p.width,p.height),delete p.compress,delete p.interlace,delete p.filter,p},toRGBA8:function(e){const n=e.width,o=e.height;if(null==e.tabs.acTL)return[t(e.data,n,o,e).buffer];const i=[];null==e.frames[0].data&&(e.frames[0].data=e.data);const r=n*o*4,a=new Uint8Array(r),s=new Uint8Array(r),l=new Uint8Array(r);for(let p=0;p<e.frames.length;p++){const u=e.frames[p],m=u.rect.x,h=u.rect.y,g=u.rect.width,x=u.rect.height,f=t(u.data,g,x,e);if(0!=p)for(var d=0;d<r;d++)l[d]=a[d];if(0==u.blend?c(f,g,x,a,n,o,m,h,0):1==u.blend&&c(f,g,x,a,n,o,m,h,1),i.push(a.buffer.slice(0)),0==u.dispose);else if(1==u.dispose)c(s,g,x,a,n,o,m,h,0);else if(2==u.dispose)for(d=0;d<r;d++)a[d]=l[d]}return i},_paeth:s,_copyTile:c,_bin:e}}();!function(){const{_copyTile:e}=UPNG,{_bin:t}=UPNG,n=UPNG._paeth;var o={table:function(){const e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)1&n?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e}(),update(e,t,n,i){for(let r=0;r<i;r++)e=o.table[255&(e^t[n+r])]^e>>>8;return e},crc:(e,t,n)=>4294967295^o.update(4294967295,e,t,n)};function i(e,t,n,o){t[n]+=e[0]*o>>4,t[n+1]+=e[1]*o>>4,t[n+2]+=e[2]*o>>4,t[n+3]+=e[3]*o>>4}function r(e){return Math.max(0,Math.min(255,e))}function a(e,t){const n=e[0]-t[0],o=e[1]-t[1],i=e[2]-t[2],r=e[3]-t[3];return n*n+o*o+i*i+r*r}function s(e,t,n,o,s,l,c){null==c&&(c=1);const d=o.length,p=[];for(var u=0;u<d;u++){const e=o[u];p.push([e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255])}for(u=0;u<d;u++){let e=4294967295;for(var m=0,h=0;h<d;h++){var g=a(p[u],p[h]);h!=u&&g<e&&(e=g,m=h)}}const x=new Uint32Array(s.buffer),f=new Int16Array(t*n*4),y=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(u=0;u<y.length;u++)y[u]=255*((y[u]+.5)/16-.5);for(let C=0;C<n;C++)for(let s=0;s<t;s++){var S;u=4*(C*t+s),2!=c?S=[r(e[u]+f[u]),r(e[u+1]+f[u+1]),r(e[u+2]+f[u+2]),r(e[u+3]+f[u+3])]:(g=y[4*(3&C)+(3&s)],S=[r(e[u]+g),r(e[u+1]+g),r(e[u+2]+g),r(e[u+3]+g)]),m=0;let b=16777215;for(h=0;h<d;h++){const e=a(S,p[h]);e<b&&(b=e,m=h)}const $=p[m],v=[S[0]-$[0],S[1]-$[1],S[2]-$[2],S[3]-$[3]];1==c&&(s!=t-1&&i(v,f,u+4,7),C!=n-1&&(0!=s&&i(v,f,u+4*t-4,3),i(v,f,u+4*t,5),s!=t-1&&i(v,f,u+4*t+4,1))),l[u>>2]=m,x[u>>2]=o[m]}}function l(e,n,i,r,a){null==a&&(a={});const{crc:s}=o,l=t.writeUint,c=t.writeUshort,d=t.writeASCII;let p=8;const u=e.frames.length>1;let m,h=!1,g=33+(u?20:0);if(null!=a.sRGB&&(g+=13),null!=a.pHYs&&(g+=21),null!=a.iCCP&&(m=pako.deflate(a.iCCP),g+=21+m.length+4),3==e.ctype){for(var x=e.plte.length,f=0;f<x;f++)e.plte[f]>>>24!=255&&(h=!0);g+=8+3*x+4+(h?8+1*x+4:0)}for(var y=0;y<e.frames.length;y++)u&&(g+=38),g+=($=e.frames[y]).cimg.length+12,0!=y&&(g+=4);g+=12;const S=new Uint8Array(g),C=[137,80,78,71,13,10,26,10];for(f=0;f<8;f++)S[f]=C[f];if(l(S,p,13),p+=4,d(S,p,"IHDR"),p+=4,l(S,p,n),p+=4,l(S,p,i),p+=4,S[p]=e.depth,p++,S[p]=e.ctype,p++,S[p]=0,p++,S[p]=0,p++,S[p]=0,p++,l(S,p,s(S,p-17,17)),p+=4,null!=a.sRGB&&(l(S,p,1),p+=4,d(S,p,"sRGB"),p+=4,S[p]=a.sRGB,p++,l(S,p,s(S,p-5,5)),p+=4),null!=a.iCCP){const e=13+m.length;l(S,p,e),p+=4,d(S,p,"iCCP"),p+=4,d(S,p,"ICC profile"),p+=11,p+=2,S.set(m,p),p+=m.length,l(S,p,s(S,p-(e+4),e+4)),p+=4}if(null!=a.pHYs&&(l(S,p,9),p+=4,d(S,p,"pHYs"),p+=4,l(S,p,a.pHYs[0]),p+=4,l(S,p,a.pHYs[1]),p+=4,S[p]=a.pHYs[2],p++,l(S,p,s(S,p-13,13)),p+=4),u&&(l(S,p,8),p+=4,d(S,p,"acTL"),p+=4,l(S,p,e.frames.length),p+=4,l(S,p,null!=a.loop?a.loop:0),p+=4,l(S,p,s(S,p-12,12)),p+=4),3==e.ctype){for(l(S,p,3*(x=e.plte.length)),p+=4,d(S,p,"PLTE"),p+=4,f=0;f<x;f++){const t=3*f,n=e.plte[f],o=255&n,i=n>>>8&255,r=n>>>16&255;S[p+t+0]=o,S[p+t+1]=i,S[p+t+2]=r}if(p+=3*x,l(S,p,s(S,p-3*x-4,3*x+4)),p+=4,h){for(l(S,p,x),p+=4,d(S,p,"tRNS"),p+=4,f=0;f<x;f++)S[p+f]=e.plte[f]>>>24&255;p+=x,l(S,p,s(S,p-x-4,x+4)),p+=4}}let b=0;for(y=0;y<e.frames.length;y++){var $=e.frames[y];u&&(l(S,p,26),p+=4,d(S,p,"fcTL"),p+=4,l(S,p,b++),p+=4,l(S,p,$.rect.width),p+=4,l(S,p,$.rect.height),p+=4,l(S,p,$.rect.x),p+=4,l(S,p,$.rect.y),p+=4,c(S,p,r[y]),p+=2,c(S,p,1e3),p+=2,S[p]=$.dispose,p++,S[p]=$.blend,p++,l(S,p,s(S,p-30,30)),p+=4);const t=$.cimg;l(S,p,(x=t.length)+(0==y?0:4)),p+=4;const n=p;d(S,p,0==y?"IDAT":"fdAT"),p+=4,0!=y&&(l(S,p,b++),p+=4),S.set(t,p),p+=x,l(S,p,s(S,n,p-n)),p+=4}return l(S,p,0),p+=4,d(S,p,"IEND"),p+=4,l(S,p,s(S,p-4,4)),p+=4,S.buffer}function c(e,t,n){for(let o=0;o<e.frames.length;o++){const i=e.frames[o];i.rect.width;const r=i.rect.height,a=new Uint8Array(r*i.bpl+r);i.cimg=m(i.img,r,i.bpp,i.bpl,a,t,n)}}function d(t,n,o,i,r){const a=r[0],l=r[1],c=r[2],d=r[3],m=r[4],h=r[5];let x=6,f=8,y=255;for(var S=0;S<t.length;S++){const e=new Uint8Array(t[S]);for(var C=e.length,b=0;b<C;b+=4)y&=e[b+3]}const $=255!=y,v=function(t,n,o,i,r,a){const s=[];for(var l=0;l<t.length;l++){const p=new Uint8Array(t[l]),m=new Uint32Array(p.buffer);var c;let g=0,x=0,f=n,y=o,S=i?1:0;if(0!=l){const C=a||i||1==l||0!=s[l-2].dispose?1:2;let b=0,$=1e9;for(let e=0;e<C;e++){var d=new Uint8Array(t[l-1-e]);const i=new Uint32Array(t[l-1-e]);let a=n,s=o,c=-1,p=-1;for(let e=0;e<o;e++)for(let t=0;t<n;t++)m[h=e*n+t]!=i[h]&&(t<a&&(a=t),t>c&&(c=t),e<s&&(s=e),e>p&&(p=e));-1==c&&(a=s=c=p=0),r&&(!(1&~a)&&a--,!(1&~s)&&s--);const u=(c-a+1)*(p-s+1);u<$&&($=u,b=e,g=a,x=s,f=c-a+1,y=p-s+1)}d=new Uint8Array(t[l-1-b]),1==b&&(s[l-1].dispose=2),c=new Uint8Array(f*y*4),e(d,n,o,c,f,y,-g,-x,0),S=e(p,n,o,c,f,y,-g,-x,3)?1:0,1==S?u(p,n,o,c,{x:g,y:x,width:f,height:y}):e(p,n,o,c,f,y,-g,-x,0)}else c=p.slice(0);s.push({rect:{x:g,y:x,width:f,height:y},img:c,blend:S,dispose:0})}if(i)for(l=0;l<s.length;l++){if(1==(g=s[l]).blend)continue;const e=g.rect,i=s[l-1].rect,a=Math.min(e.x,i.x),c=Math.min(e.y,i.y),d={x:a,y:c,width:Math.max(e.x+e.width,i.x+i.width)-a,height:Math.max(e.y+e.height,i.y+i.height)-c};s[l-1].dispose=1,l-1!=0&&p(t,n,o,s,l-1,d,r),p(t,n,o,s,l,d,r)}let m=0;if(1!=t.length)for(var h=0;h<s.length;h++){var g;m+=(g=s[h]).rect.width*g.rect.height}return s}(t,n,o,a,l,c),E={},w=[],R=[];if(0!=i){const e=[];for(b=0;b<v.length;b++)e.push(v[b].img.buffer);const t=g(function(e){let t=0;for(var n=0;n<e.length;n++)t+=e[n].byteLength;const o=new Uint8Array(t);let i=0;for(n=0;n<e.length;n++){const t=new Uint8Array(e[n]),r=t.length;for(let e=0;e<r;e+=4){let n=t[e],r=t[e+1],a=t[e+2];const s=t[e+3];0==s&&(n=r=a=0),o[i+e]=n,o[i+e+1]=r,o[i+e+2]=a,o[i+e+3]=s}i+=r}return o.buffer}(e),i);for(b=0;b<t.plte.length;b++)w.push(t.plte[b].est.rgba);let n=0;for(b=0;b<v.length;b++){const e=(j=v[b]).img.length;var A=new Uint8Array(t.inds.buffer,n>>2,e>>2);R.push(A);const o=new Uint8Array(t.abuf,n,e);h&&s(j.img,j.rect.width,j.rect.height,w,o,A),j.img.set(o),n+=e}}else for(S=0;S<v.length;S++){var j=v[S];const e=new Uint32Array(j.img.buffer);var T=j.rect.width;for(C=e.length,A=new Uint8Array(C),R.push(A),b=0;b<C;b++){const t=e[b];if(0!=b&&t==e[b-1])A[b]=A[b-1];else if(b>T&&t==e[b-T])A[b]=A[b-T];else{let e=E[t];if(null==e&&(E[t]=e=w.length,w.push(t),w.length>=300))break;A[b]=e}}}const I=w.length;for(I<=256&&0==m&&(f=I<=2?1:I<=4?2:I<=16?4:8,f=Math.max(f,d)),S=0;S<v.length;S++){(j=v[S]).rect.x,j.rect.y,T=j.rect.width;const e=j.rect.height;let t=j.img;new Uint32Array(t.buffer);let n=4*T,o=4;if(I<=256&&0==m){n=Math.ceil(f*T/8);var k=new Uint8Array(n*e);const i=R[S];for(let t=0;t<e;t++){b=t*n;const e=t*T;if(8==f)for(var L=0;L<T;L++)k[b+L]=i[e+L];else if(4==f)for(L=0;L<T;L++)k[b+(L>>1)]|=i[e+L]<<4-4*(1&L);else if(2==f)for(L=0;L<T;L++)k[b+(L>>2)]|=i[e+L]<<6-2*(3&L);else if(1==f)for(L=0;L<T;L++)k[b+(L>>3)]|=i[e+L]<<7-1*(7&L)}t=k,x=3,o=1}else if(0==$&&1==v.length){k=new Uint8Array(T*e*3);const i=T*e;for(b=0;b<i;b++){const e=3*b,n=4*b;k[e]=t[n],k[e+1]=t[n+1],k[e+2]=t[n+2]}t=k,x=2,o=3,n=3*T}j.img=t,j.bpl=n,j.bpp=o}return{ctype:x,depth:f,plte:w,frames:v}}function p(t,n,o,i,r,a,s){const l=Uint8Array,c=Uint32Array,d=new l(t[r-1]),p=new c(t[r-1]),m=r+1<t.length?new l(t[r+1]):null,h=new l(t[r]),g=new c(h.buffer);let x=n,f=o,y=-1,S=-1;for(let e=0;e<a.height;e++)for(let t=0;t<a.width;t++){const o=a.x+t,s=a.y+e,l=s*n+o,c=g[l];0==c||0==i[r-1].dispose&&p[l]==c&&(null==m||0!=m[4*l+3])||(o<x&&(x=o),o>y&&(y=o),s<f&&(f=s),s>S&&(S=s))}-1==y&&(x=f=y=S=0),s&&(!(1&~x)&&x--,!(1&~f)&&f--),a={x:x,y:f,width:y-x+1,height:S-f+1};const C=i[r];C.rect=a,C.blend=1,C.img=new Uint8Array(a.width*a.height*4),0==i[r-1].dispose?(e(d,n,o,C.img,a.width,a.height,-a.x,-a.y,0),u(h,n,o,C.img,a)):e(h,n,o,C.img,a.width,a.height,-a.x,-a.y,0)}function u(t,n,o,i,r){e(t,n,o,i,r.width,r.height,-r.x,-r.y,2)}function m(e,t,n,o,i,r,a){const s=[];let l,c=[0,1,2,3,4];-1!=r?c=[r]:(t*o>5e5||1==n)&&(c=[0]),a&&(l={level:0});const d=UZIP;for(var p=0;p<c.length;p++){for(let r=0;r<t;r++)h(i,e,r,o,n,c[p]);s.push(d.deflate(i,l))}let u,m=1e9;for(p=0;p<s.length;p++)s[p].length<m&&(u=p,m=s[p].length);return s[u]}function h(e,t,o,i,r,a){const s=o*i;let l=s+o;if(e[l]=a,l++,0==a)if(i<500)for(var c=0;c<i;c++)e[l+c]=t[s+c];else e.set(new Uint8Array(t.buffer,s,i),l);else if(1==a){for(c=0;c<r;c++)e[l+c]=t[s+c];for(c=r;c<i;c++)e[l+c]=t[s+c]-t[s+c-r]+256&255}else if(0==o){for(c=0;c<r;c++)e[l+c]=t[s+c];if(2==a)for(c=r;c<i;c++)e[l+c]=t[s+c];if(3==a)for(c=r;c<i;c++)e[l+c]=t[s+c]-(t[s+c-r]>>1)+256&255;if(4==a)for(c=r;c<i;c++)e[l+c]=t[s+c]-n(t[s+c-r],0,0)+256&255}else{if(2==a)for(c=0;c<i;c++)e[l+c]=t[s+c]+256-t[s+c-i]&255;if(3==a){for(c=0;c<r;c++)e[l+c]=t[s+c]+256-(t[s+c-i]>>1)&255;for(c=r;c<i;c++)e[l+c]=t[s+c]+256-(t[s+c-i]+t[s+c-r]>>1)&255}if(4==a){for(c=0;c<r;c++)e[l+c]=t[s+c]+256-n(0,t[s+c-i],0)&255;for(c=r;c<i;c++)e[l+c]=t[s+c]+256-n(t[s+c-r],t[s+c-i],t[s+c-r-i])&255}}}function g(e,t){const n=new Uint8Array(e),o=n.slice(0),i=new Uint32Array(o.buffer),r=x(o,t),a=r[0],s=r[1],l=n.length,c=new Uint8Array(l>>2);let d;if(n.length<2e7)for(var p=0;p<l;p+=4)d=f(a,u=n[p]*(1/255),m=n[p+1]*(1/255),h=n[p+2]*(1/255),g=n[p+3]*(1/255)),c[p>>2]=d.ind,i[p>>2]=d.est.rgba;else for(p=0;p<l;p+=4){var u=n[p]*(1/255),m=n[p+1]*(1/255),h=n[p+2]*(1/255),g=n[p+3]*(1/255);for(d=a;d.left;)d=y(d.est,u,m,h,g)<=0?d.left:d.right;c[p>>2]=d.ind,i[p>>2]=d.est.rgba}return{abuf:o.buffer,inds:c,plte:s}}function x(e,t,n){null==n&&(n=1e-4);const o=new Uint32Array(e.buffer),i={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};i.bst=b(e,i.i0,i.i1),i.est=$(i.bst);const r=[i];for(;r.length<t;){let t=0,i=0;for(var a=0;a<r.length;a++)r[a].est.L>t&&(t=r[a].est.L,i=a);if(t<n)break;const s=r[i],l=S(e,o,s.i0,s.i1,s.est.e,s.est.eMq255);if(s.i0>=l||s.i1<=l){s.est.L=0;continue}const c={i0:s.i0,i1:l,bst:null,est:null,tdst:0,left:null,right:null};c.bst=b(e,c.i0,c.i1),c.est=$(c.bst);const d={i0:l,i1:s.i1,bst:null,est:null,tdst:0,left:null,right:null};for(d.bst={R:[],m:[],N:s.bst.N-c.bst.N},a=0;a<16;a++)d.bst.R[a]=s.bst.R[a]-c.bst.R[a];for(a=0;a<4;a++)d.bst.m[a]=s.bst.m[a]-c.bst.m[a];d.est=$(d.bst),s.left=c,s.right=d,r[i]=c,r.push(d)}for(r.sort((e,t)=>t.bst.N-e.bst.N),a=0;a<r.length;a++)r[a].ind=a;return[i,r]}function f(e,t,n,o,i){if(null==e.left)return e.tdst=function(e,t,n,o,i){const r=t-e[0],a=n-e[1],s=o-e[2],l=i-e[3];return r*r+a*a+s*s+l*l}(e.est.q,t,n,o,i),e;const r=y(e.est,t,n,o,i);let a=e.left,s=e.right;r>0&&(a=e.right,s=e.left);const l=f(a,t,n,o,i);if(l.tdst<=r*r)return l;const c=f(s,t,n,o,i);return c.tdst<l.tdst?c:l}function y(e,t,n,o,i){const{e:r}=e;return r[0]*t+r[1]*n+r[2]*o+r[3]*i-e.eMq}function S(e,t,n,o,i,r){for(o-=4;n<o;){for(;C(e,n,i)<=r;)n+=4;for(;C(e,o,i)>r;)o-=4;if(n>=o)break;const a=t[n>>2];t[n>>2]=t[o>>2],t[o>>2]=a,n+=4,o-=4}for(;C(e,n,i)>r;)n-=4;return n+4}function C(e,t,n){return e[t]*n[0]+e[t+1]*n[1]+e[t+2]*n[2]+e[t+3]*n[3]}function b(e,t,n){const o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=[0,0,0,0],r=n-t>>2;for(let a=t;a<n;a+=4){const t=e[a]*(1/255),n=e[a+1]*(1/255),r=e[a+2]*(1/255),s=e[a+3]*(1/255);i[0]+=t,i[1]+=n,i[2]+=r,i[3]+=s,o[0]+=t*t,o[1]+=t*n,o[2]+=t*r,o[3]+=t*s,o[5]+=n*n,o[6]+=n*r,o[7]+=n*s,o[10]+=r*r,o[11]+=r*s,o[15]+=s*s}return o[4]=o[1],o[8]=o[2],o[9]=o[6],o[12]=o[3],o[13]=o[7],o[14]=o[11],{R:o,m:i,N:r}}function $(e){const{R:t}=e,{m:n}=e,{N:o}=e,i=n[0],r=n[1],a=n[2],s=n[3],l=0==o?0:1/o,c=[t[0]-i*i*l,t[1]-i*r*l,t[2]-i*a*l,t[3]-i*s*l,t[4]-r*i*l,t[5]-r*r*l,t[6]-r*a*l,t[7]-r*s*l,t[8]-a*i*l,t[9]-a*r*l,t[10]-a*a*l,t[11]-a*s*l,t[12]-s*i*l,t[13]-s*r*l,t[14]-s*a*l,t[15]-s*s*l],d=c,p=v;let u=[Math.random(),Math.random(),Math.random(),Math.random()],m=0,h=0;if(0!=o)for(let x=0;x<16&&(u=p.multVec(d,u),h=Math.sqrt(p.dot(u,u)),u=p.sml(1/h,u),!(0!=x&&Math.abs(h-m)<1e-9));x++)m=h;const g=[i*l,r*l,a*l,s*l];return{Cov:c,q:g,e:u,L:m,eMq255:p.dot(p.sml(255,g),u),eMq:p.dot(u,g),rgba:(Math.round(255*g[3])<<24|Math.round(255*g[2])<<16|Math.round(255*g[1])<<8|Math.round(255*g[0]))>>>0}}var v={multVec:(e,t)=>[e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],e[4]*t[0]+e[5]*t[1]+e[6]*t[2]+e[7]*t[3],e[8]*t[0]+e[9]*t[1]+e[10]*t[2]+e[11]*t[3],e[12]*t[0]+e[13]*t[1]+e[14]*t[2]+e[15]*t[3]],dot:(e,t)=>e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],sml:(e,t)=>[e*t[0],e*t[1],e*t[2],e*t[3]]};UPNG.encode=function(e,t,n,o,i,r,a){null==o&&(o=0),null==a&&(a=!1);const s=d(e,t,n,o,[!1,!1,!1,0,a,!1]);return c(s,-1),l(s,t,n,i,r)},UPNG.encodeLL=function(e,t,n,o,i,r,a,s){const d={ctype:0+(1==o?0:2)+(0==i?0:4),depth:r,frames:[]},p=(o+i)*r,u=p*t;for(let l=0;l<e.length;l++)d.frames.push({rect:{x:0,y:0,width:t,height:n},img:new Uint8Array(e[l]),blend:0,dispose:1,bpp:Math.ceil(p/8),bpl:Math.ceil(u/8)});return c(d,0,!0),l(d,t,n,a,s)},UPNG.encode.compress=d,UPNG.encode.dither=s,UPNG.quantize=g,UPNG.quantize.getKDtree=x,UPNG.quantize.getNearest=f}();const r={toArrayBuffer(e,t){const n=e.width,o=e.height,i=n<<2,a=e.getContext("2d").getImageData(0,0,n,o),s=new Uint32Array(a.data.buffer),l=(32*n+31)/32<<2,c=l*o,d=122+c,p=new ArrayBuffer(d),u=new DataView(p),m=1<<20;let h,g,x,f,y=m,S=0,C=0,b=0;function $(e){u.setUint16(C,e,!0),C+=2}function v(e){u.setUint32(C,e,!0),C+=4}function E(e){C+=e}$(19778),v(d),E(4),v(122),v(108),v(n),v(-o>>>0),$(1),$(32),v(3),v(c),v(2835),v(2835),E(8),v(16711680),v(65280),v(255),v(4278190080),v(1466527264),function e(){for(;S<o&&y>0;){for(f=122+S*l,h=0;h<i;)y--,g=s[b++],x=g>>>24,u.setUint32(f+h,g<<8|x),h+=4;S++}b<s.length?(y=m,setTimeout(e,r._dly)):t(p)}()},toBlob(e,t){this.toArrayBuffer(e,e=>{t(new Blob([e],{type:"image/bmp"}))})},_dly:9};var i={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},o={[i.CHROME]:16384,[i.FIREFOX]:11180,[i.DESKTOP_SAFARI]:16384,[i.IE]:8192,[i.IOS]:4096,[i.ETC]:8192};const a="undefined"!=typeof window,s="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,f=a&&window.cordova&&window.cordova.require&&window.cordova.require("cordova/modulemapper"),CustomFile=(a||s)&&(f&&f.getOriginalSymbol(window,"File")||"undefined"!=typeof File&&File),CustomFileReader=(a||s)&&(f&&f.getOriginalSymbol(window,"FileReader")||"undefined"!=typeof FileReader&&FileReader);function getFilefromDataUrl(e,t,n=Date.now()){return new Promise(o=>{const i=e.split(","),r=i[0].match(/:(.*?);/)[1],a=globalThis.atob(i[1]);let s=a.length;const l=new Uint8Array(s);for(;s--;)l[s]=a.charCodeAt(s);const c=new Blob([l],{type:r});c.name=t,c.lastModified=n,o(c)})}function getDataUrlFromFile(e){return new Promise((t,n)=>{const o=new CustomFileReader;o.onload=()=>t(o.result),o.onerror=e=>n(e),o.readAsDataURL(e)})}function loadImage(e){return new Promise((t,n)=>{const o=new Image;o.onload=()=>t(o),o.onerror=e=>n(e),o.src=e})}function getBrowserName(){if(void 0!==getBrowserName.cachedResult)return getBrowserName.cachedResult;let e=i.ETC;const{userAgent:t}=navigator;return/Chrom(e|ium)/i.test(t)?e=i.CHROME:/iP(ad|od|hone)/i.test(t)&&/WebKit/i.test(t)?e=i.IOS:/Safari/i.test(t)?e=i.DESKTOP_SAFARI:/Firefox/i.test(t)?e=i.FIREFOX:(/MSIE/i.test(t)||1==!!document.documentMode)&&(e=i.IE),getBrowserName.cachedResult=e,getBrowserName.cachedResult}function approximateBelowMaximumCanvasSizeOfBrowser(e,t){const n=getBrowserName(),i=o[n];let r=e,a=t,s=r*a;const l=r>a?a/r:r/a;for(;s>i*i;){const e=(i+r)/2,t=(i+a)/2;e<t?(a=t,r=t*l):(a=e*l,r=e),s=r*a}return{width:r,height:a}}function getNewCanvasAndCtx(e,t){let n,o;try{if(n=new OffscreenCanvas(e,t),o=n.getContext("2d"),null===o)throw new Error("getContext of OffscreenCanvas returns null")}catch(i){n=document.createElement("canvas"),o=n.getContext("2d")}return n.width=e,n.height=t,[n,o]}function drawImageInCanvas(e,t){const{width:n,height:o}=approximateBelowMaximumCanvasSizeOfBrowser(e.width,e.height),[i,r]=getNewCanvasAndCtx(n,o);return t&&/jpe?g/.test(t)&&(r.fillStyle="white",r.fillRect(0,0,i.width,i.height)),r.drawImage(e,0,0,i.width,i.height),i}function isIOS(){return void 0!==isIOS.cachedResult||(isIOS.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"undefined"!=typeof document&&"ontouchend"in document),isIOS.cachedResult}function drawFileInCanvas(e,t={}){return new Promise(function(n,o){let r,a;var s=function(){try{return a=drawImageInCanvas(r,t.fileType||e.type),n([r,a])}catch(i){return o(i)}},l=function(t){try{var n=function(e){try{throw e}catch(t){return o(t)}};try{let t;return getDataUrlFromFile(e).then(function(e){try{return t=e,loadImage(t).then(function(e){try{return r=e,function(){try{return s()}catch(e){return o(e)}}()}catch(t){return n(t)}},n)}catch(i){return n(i)}},n)}catch(i){n(i)}}catch(i){return o(i)}};try{if(isIOS()||[i.DESKTOP_SAFARI,i.MOBILE_SAFARI].includes(getBrowserName()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(e).then(function(e){try{return r=e,s()}catch(t){return l()}},l)}catch(c){l()}})}function canvasToFile(e,t,n,o,i=1){return new Promise(function(a,s){let l;if("image/png"===t){let r,a,s;return r=e.getContext("2d"),({data:a}=r.getImageData(0,0,e.width,e.height)),s=UPNG.encode([a.buffer],e.width,e.height,4096*i),l=new Blob([s],{type:t}),l.name=n,l.lastModified=o,c.call(this)}{let a=function(){return c.call(this)};if("image/bmp"===t)return new Promise(t=>r.toBlob(e,t)).then(function(e){try{return l=e,l.name=n,l.lastModified=o,a.call(this)}catch(t){return s(t)}}.bind(this),s);{let r=function(){return a.call(this)};if("function"==typeof OffscreenCanvas&&e instanceof OffscreenCanvas)return e.convertToBlob({type:t,quality:i}).then(function(e){try{return l=e,l.name=n,l.lastModified=o,r.call(this)}catch(t){return s(t)}}.bind(this),s);{let a;return a=e.toDataURL(t,i),getFilefromDataUrl(a,n,o).then(function(e){try{return l=e,r.call(this)}catch(t){return s(t)}}.bind(this),s)}}}function c(){return a(l)}})}function cleanupCanvasMemory(e){e.width=0,e.height=0}function isAutoOrientationInBrowser(){return new Promise(function(e,t){let n,o,i,r;return void 0!==isAutoOrientationInBrowser.cachedResult?e(isAutoOrientationInBrowser.cachedResult):getFilefromDataUrl("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(a){try{return n=a,drawFileInCanvas(n).then(function(a){try{return o=a[1],canvasToFile(o,n.type,n.name,n.lastModified).then(function(n){try{return i=n,cleanupCanvasMemory(o),drawFileInCanvas(i).then(function(n){try{return r=n[0],isAutoOrientationInBrowser.cachedResult=1===r.width&&2===r.height,e(isAutoOrientationInBrowser.cachedResult)}catch(o){return t(o)}},t)}catch(a){return t(a)}},t)}catch(s){return t(s)}},t)}catch(s){return t(s)}},t)})}function getExifOrientation(e){return new Promise((t,n)=>{const o=new CustomFileReader;o.onload=e=>{const n=new DataView(e.target.result);if(65496!=n.getUint16(0,!1))return t(-2);const o=n.byteLength;let i=2;for(;i<o;){if(n.getUint16(i+2,!1)<=8)return t(-1);const e=n.getUint16(i,!1);if(i+=2,65505==e){if(1165519206!=n.getUint32(i+=2,!1))return t(-1);const e=18761==n.getUint16(i+=6,!1);i+=n.getUint32(i+4,e);const o=n.getUint16(i,e);i+=2;for(let r=0;r<o;r++)if(274==n.getUint16(i+12*r,e))return t(n.getUint16(i+12*r+8,e))}else{if(65280&~e)break;i+=n.getUint16(i,!1)}}return t(-1)},o.onerror=e=>n(e),o.readAsArrayBuffer(e)})}function handleMaxWidthOrHeight(e,t){const{width:n}=e,{height:o}=e,{maxWidthOrHeight:i}=t;let r,a=e;return isFinite(i)&&(n>i||o>i)&&([a,r]=getNewCanvasAndCtx(n,o),n>o?(a.width=i,a.height=o/n*i):(a.width=n/o*i,a.height=i),r.drawImage(e,0,0,a.width,a.height),cleanupCanvasMemory(e)),a}function followExifOrientation(e,t){const{width:n}=e,{height:o}=e,[i,r]=getNewCanvasAndCtx(n,o);switch(t>4&&t<9?(i.width=o,i.height=n):(i.width=n,i.height=o),t){case 2:r.transform(-1,0,0,1,n,0);break;case 3:r.transform(-1,0,0,-1,n,o);break;case 4:r.transform(1,0,0,-1,0,o);break;case 5:r.transform(0,1,1,0,0,0);break;case 6:r.transform(0,1,-1,0,o,0);break;case 7:r.transform(0,-1,-1,0,o,n);break;case 8:r.transform(0,-1,1,0,0,n)}return r.drawImage(e,0,0,n,o),cleanupCanvasMemory(e),i}function compress(e,t,n=0){return new Promise(function(o,i){let r,a,s,l,c,d,p,u,m,h,g,x,f,y,S,C,b,$,v,E;function w(e=5){if(t.signal&&t.signal.aborted)throw t.signal.reason;r+=e,t.onProgress(Math.min(r,100))}function R(e){if(t.signal&&t.signal.aborted)throw t.signal.reason;r=Math.min(Math.max(e,r),100),t.onProgress(r)}return r=n,a=t.maxIteration||10,s=1024*t.maxSizeMB*1024,w(),drawFileInCanvas(e,t).then(function(n){try{return[,l]=n,w(),c=handleMaxWidthOrHeight(l,t),w(),new Promise(function(n,o){var i;if(!(i=t.exifOrientation))return getExifOrientation(e).then(function(e){try{return i=e,r.call(this)}catch(t){return o(t)}}.bind(this),o);function r(){return n(i)}return r.call(this)}).then(function(n){try{return d=n,w(),isAutoOrientationInBrowser().then(function(n){try{return p=n?c:followExifOrientation(c,d),w(),u=t.initialQuality||1,m=t.fileType||e.type,canvasToFile(p,m,e.name,e.lastModified,u).then(function(n){try{{let d=function(){if(a--&&(S>s||S>f)){let t,n;return t=E?.95*v.width:v.width,n=E?.95*v.height:v.height,[b,$]=getNewCanvasAndCtx(t,n),$.drawImage(v,0,0,t,n),u*="image/png"===m?.85:.95,canvasToFile(b,m,e.name,e.lastModified,u).then(function(e){try{return C=e,cleanupCanvasMemory(v),v=b,S=C.size,R(Math.min(99,Math.floor((y-S)/(y-s)*100))),d}catch(t){return i(t)}},i)}return[1]},A=function(){return cleanupCanvasMemory(v),cleanupCanvasMemory(b),cleanupCanvasMemory(c),cleanupCanvasMemory(p),cleanupCanvasMemory(l),R(100),o(C)};return h=n,w(),g=h.size>s,x=h.size>e.size,g||x?(f=e.size,y=h.size,S=y,v=p,E=!t.alwaysKeepResolution&&g,(r=function(e){for(;e;){if(e.then)return void e.then(r,i);try{if(e.pop){if(e.length)return e.pop()?A.call(this):e;e=d}else e=e.call(this)}catch(t){return i(t)}}}.bind(this))(d)):(R(100),o(h));var r}}catch(d){return i(d)}}.bind(this),i)}catch(r){return i(r)}}.bind(this),i)}catch(r){return i(r)}}.bind(this),i)}catch(r){return i(r)}}.bind(this),i)})}const l="\nlet scriptImported = false\nself.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker] importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\n' + e.stack, id })\n }\n})\n";let c;function compressOnWebWorker(e,t){return new Promise((n,o)=>{c||(c=function(e){const t=[];return t.push(e),URL.createObjectURL(new Blob(t))}(l));const i=new Worker(c);i.addEventListener("message",function(e){if(t.signal&&t.signal.aborted)i.terminate();else if(void 0===e.data.progress){if(e.data.error)return o(new Error(e.data.error)),void i.terminate();n(e.data.file),i.terminate()}else t.onProgress(e.data.progress)}),i.addEventListener("error",o),t.signal&&t.signal.addEventListener("abort",()=>{o(t.signal.reason),i.terminate()}),i.postMessage({file:e,imageCompressionLibUrl:t.libURL,options:{...t,onProgress:void 0,signal:void 0}})})}function imageCompression(e,t){return new Promise(function(n,o){let i,r,a,s,l,c;if(i={...t},a=0,({onProgress:s}=i),i.maxSizeMB=i.maxSizeMB||Number.POSITIVE_INFINITY,l="boolean"!=typeof i.useWebWorker||i.useWebWorker,delete i.useWebWorker,i.onProgress=e=>{a=e,"function"==typeof s&&s(a)},!(e instanceof Blob||e instanceof CustomFile))return o(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(e.type))return o(new Error("The file given is not an image"));if(c="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,!l||"function"!=typeof Worker||c)return compress(e,i).then(function(e){try{return r=e,u.call(this)}catch(t){return o(t)}}.bind(this),o);var d=function(){try{return u.call(this)}catch(e){return o(e)}}.bind(this),p=function(t){try{return compress(e,i).then(function(e){try{return r=e,d()}catch(t){return o(t)}},o)}catch(n){return o(n)}};try{return i.libURL=i.libURL||"https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js",compressOnWebWorker(e,i).then(function(e){try{return r=e,d()}catch(t){return p()}},p)}catch(m){p()}function u(){try{r.name=e.name,r.lastModified=e.lastModified}catch(m){}try{i.preserveExif&&"image/jpeg"===e.type&&(!i.fileType||i.fileType&&i.fileType===e.type)&&(r=copyExifWithoutOrientation(e,r))}catch(m){}return n(r)}})}imageCompression.getDataUrlFromFile=getDataUrlFromFile,imageCompression.getFilefromDataUrl=getFilefromDataUrl,imageCompression.loadImage=loadImage,imageCompression.drawImageInCanvas=drawImageInCanvas,imageCompression.drawFileInCanvas=drawFileInCanvas,imageCompression.canvasToFile=canvasToFile,imageCompression.getExifOrientation=getExifOrientation,imageCompression.handleMaxWidthOrHeight=handleMaxWidthOrHeight,imageCompression.followExifOrientation=followExifOrientation,imageCompression.cleanupCanvasMemory=cleanupCanvasMemory,imageCompression.isAutoOrientationInBrowser=isAutoOrientationInBrowser,imageCompression.approximateBelowMaximumCanvasSizeOfBrowser=approximateBelowMaximumCanvasSizeOfBrowser,imageCompression.copyExifWithoutOrientation=copyExifWithoutOrientation,imageCompression.getBrowserName=getBrowserName,imageCompression.version="2.0.2";const PDF_MIME_TYPE$1="application/pdf",imageCompressionAcceptableFileTypes=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],RECEIPT_IMAGE_COMPRESSION_OPTIONS={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2},handleImageCompression=async(e,t)=>{if(!1===imageCompressionAcceptableFileTypes.includes(e.type))return e;const n=await imageCompression(e,{useWebWorker:!0,maxWidthOrHeight:900,initialQuality:1,maxSizeMB:1.4}),o=n.lastModified,i=n.type.split("/")[1];let r=`image_${o}.${i}`;null!=t&&(r=`${t}.${i}`);return new File([n],r,{lastModified:o,type:n.type})},compressImageForReceipt=async(e,t)=>{if(!1===imageCompressionAcceptableFileTypes.includes(e.type))return e;const n=await imageCompression(e,RECEIPT_IMAGE_COMPRESSION_OPTIONS),o=n.type.split("/")[1],i=t.replace(/\.[^.]+$/,"")||"image";return new File([n],`${i}.${o}`,{lastModified:e.lastModified,type:n.type})},PDF_RENDER_SCALE=1.5,PDF_JPEG_QUALITY=.7;function canvasToJpegBlob(e,t){return new Promise((n,o)=>{e.toBlob(e=>{null!=e?n(e):o(new Error("canvas.toBlob returned null"))},"image/jpeg",t)})}async function renderPageToJpeg(e,t,n){const o=e.getViewport({scale:t}),i=document.createElement("canvas");i.width=Math.floor(o.width),i.height=Math.floor(o.height);const r=i.getContext("2d");if(null==r)throw new Error("Could not get canvas 2d context");await e.render({canvasContext:r,viewport:o}).promise;return(await canvasToJpegBlob(i,n)).arrayBuffer()}async function compressPdfForReceipt(e,t){const[{PDFDocument:n},o]=await Promise.all([Promise.resolve().then(()=>require("./index-DgHyKeTU.cjs")),Promise.resolve().then(()=>index$2).then(e=>e.pdfjs)]),i=await e.arrayBuffer(),r=await o.getDocument({data:new Uint8Array(i)}).promise,a=r.numPages,s=await n.create();for(let d=1;d<=a;d++){const e=await r.getPage(d),t=await renderPageToJpeg(e,PDF_RENDER_SCALE,PDF_JPEG_QUALITY),n=await s.embedJpg(new Uint8Array(t)),o=n.scale(1);s.addPage([o.width,o.height]).drawImage(n,{x:0,y:0,width:o.width,height:o.height})}const l=await s.save(),c=t.toLowerCase().endsWith(".pdf")?t:`${t}.pdf`;return new File([l],c,{type:PDF_MIME_TYPE$1,lastModified:e.lastModified})}async function compressSingleFile(e,t){const n=e instanceof File?e:new File([e],t,{type:e.type});if(e.type===PDF_MIME_TYPE$1){const o=await compressPdfForReceipt(n,t);return o.size<n.size?{blob:o,name:o.name}:{blob:e,name:t}}const o=await compressImageForReceipt(n,t);return{blob:o,name:o.name}}async function compressReceiptFiles(e,t){const n=await Promise.all(e.map((e,n)=>{const o=t[n]??`file_${n}`;return compressSingleFile(e,o).catch(t=>(console.warn("[compressReceiptFiles] compression failed, using original:",t instanceof Error?t.message:t),{blob:e,name:o}))}));return{blobs:n.map(e=>e.blob),names:n.map(e=>e.name)}}const InputElementMobileCamera=({fileType:e="file",fileRef:t,name:n,value:o="",multiple:i=!1,acceptableTypes:r,onFileSizeError:a,onImageChange:s})=>jsxRuntimeExports.jsx("input",{type:e,ref:t,name:n,value:o,size:1e3,"data-testid":generateDataTestId("input-file-element-mobile",n),onChange:async e=>{const t=e.target.files?.[0],n=t?.size;null!=t&&null!=n?(a?.(!1),s(t),e.target.value=""):(a?.(!0),e.target.value="")},style:{display:"none"},accept:`${(r??"image/jpg, image/jpeg").toString()}`,multiple:i,capture:!0}),MoneyTransferSuccessAnimation=({shouldDisplay:e,width:t=30,height:n=30,styles:o,animationInLoop:i=!1})=>{const[,r]=useMusic(SUCCESS_SOUND_SOURCE),[a]=useAnimation("MoneyTransferSuccess");return React.useEffect(()=>{e&&r(!0)},[e,r]),e&&null!=a?jsxRuntimeExports.jsx(Lottie,{style:{width:t,height:n,...o},play:!0,animationData:a,loop:i,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null};var browserPonyfill={exports:{}},hasRequiredBrowserPonyfill;function requireBrowserPonyfill(){return hasRequiredBrowserPonyfill||(hasRequiredBrowserPonyfill=1,function(e,t){var n,o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==commonjsGlobal$1&&commonjsGlobal$1,i=function(){function e(){this.fetch=!1,this.DOMException=o.DOMException}return e.prototype=o,new e}();n=i,function(e){var t=void 0!==n&&n||"undefined"!=typeof self&&self||void 0!==commonjsGlobal$1&&commonjsGlobal$1||{},o="URLSearchParams"in t,i="Symbol"in t&&"iterator"in Symbol,r="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in t,s="ArrayBuffer"in t;if(s)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function h(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function x(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&r&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=h(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(r)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,o,i,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=g(t),o=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=o?o[1]:"utf-8",t.readAsText(e,i),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),o=0;o<t.length;o++)n[o]=String.fromCharCode(t[o]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},m.prototype.delete=function(e){delete this.map[d(e)]},m.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},m.prototype.set=function(e,t){this.map[d(e)]=p(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),u(e)},m.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},m.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),u(e)},i&&(m.prototype[Symbol.iterator]=m.prototype.entries);var S=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function C(e,n){if(!(this instanceof C))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var o,i,r=(n=n||{}).body;if(e instanceof C){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new m(n.headers)),this.method=(o=n.method||this.method||"GET",i=o.toUpperCase(),S.indexOf(i)>-1?i:o),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal||function(){if("AbortController"in t)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function b(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),o=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function $(e,t){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})},y.call(C.prototype),y.call($.prototype),$.prototype.clone=function(){return new $(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},$.error=function(){var e=new $(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var v=[301,302,303,307,308];$.redirect=function(e,t){if(-1===v.indexOf(t))throw new RangeError("Invalid status code");return new $(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(w){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function E(n,o){return new Promise(function(i,a){var l=new C(n,o);if(l.signal&&l.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function u(){c.abort()}if(c.onload=function(){var e,t,n={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),o=n.shift().trim();if(o){var i=n.join(":").trim();try{t.append(o,i)}catch(r){console.warn("Response "+r.message)}}}),t)};0===l.url.indexOf("file://")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;setTimeout(function(){i(new $(o,n))},0)},c.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){a(new e.DOMException("Aborted","AbortError"))},0)},c.open(l.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(n){return e}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(r?c.responseType="blob":s&&(c.responseType="arraybuffer")),o&&"object"==typeof o.headers&&!(o.headers instanceof m||t.Headers&&o.headers instanceof t.Headers)){var h=[];Object.getOwnPropertyNames(o.headers).forEach(function(e){h.push(d(e)),c.setRequestHeader(e,p(o.headers[e]))}),l.headers.forEach(function(e,t){-1===h.indexOf(t)&&c.setRequestHeader(t,e)})}else l.headers.forEach(function(e,t){c.setRequestHeader(t,e)});l.signal&&(l.signal.addEventListener("abort",u),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",u)}),c.send(void 0===l._bodyInit?null:l._bodyInit)})}E.polyfill=!0,t.fetch||(t.fetch=E,t.Headers=m,t.Request=C,t.Response=$),e.Headers=m,e.Request=C,e.Response=$,e.fetch=E,Object.defineProperty(e,"__esModule",{value:!0})}({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var r=o.fetch?o:i;(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t}(browserPonyfill,browserPonyfill.exports)),browserPonyfill.exports}var browserPonyfillExports=requireBrowserPonyfill();const fetch$1=getDefaultExportFromCjs(browserPonyfillExports),SvgNewVendor=e=>React__namespace.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},React__namespace.createElement("path",{d:"M7.5055 4L1.5 9.54354L22.5 9.5435",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M16.4945 19.7067L22.5 14.1632H1.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));__webpack_exports__GlobalWorkerOptions.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${__webpack_exports__version}/pdf.worker.mjs`;const{common:common$3b}=appLocale.getLocalizedStrings(),FileInputElementName$1="invoice",getEffectiveCitationVariant=(e,t,n)=>{if("deleted"===e.variant)return"deleted";if("excluded"===e.variant)return"excluded";return null!=t&&e.statementTransactionId===t||null!=n&&e.statementTransactionId===n?"hovered":e.variant??"default"},findCitationTransactionIdAtPoint=(e,t,n)=>{const o=Array.from(e.querySelectorAll("[data-statement-transaction-id]"));for(const i of o){if("excluded"===i.dataset.citationVariant)continue;const e=i.getBoundingClientRect();if(t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom)return i.dataset.statementTransactionId}},getScrollTargetPageNumber=(e,t)=>{if(null==t)return;const n=e.find(e=>e.statementTransactionId===t);return n?.page},isElementVisibleInContainer=(e,t)=>{const n=e.getBoundingClientRect(),o=null!=t?t.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return n.bottom>o.top&&n.top<o.bottom&&n.right>o.left&&n.left<o.right},getScrollableParent=e=>{let t=e.parentElement;for(;null!=t;){const{overflowY:e}=window.getComputedStyle(t);if(("auto"===e||"scroll"===e)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return null},scrollPageElementIntoView=(e,t,n="smooth")=>{const o=t??getScrollableParent(e);if(null==o)return void e.scrollIntoView({behavior:n,block:"center"});const i=e.getBoundingClientRect(),r=o.getBoundingClientRect(),a=o.scrollTop+(i.top-r.top)-(o.clientHeight-i.height)/2;o.scrollTo({top:Math.max(0,a),behavior:n})};function getPolygonBounds(e){const t=e.map(e=>e.x),n=e.map(e=>e.y);return{maxX:Math.max(...t),maxY:Math.max(...n),minX:Math.min(...t),minY:Math.min(...n)}}function convertPolygonToPercent(e,t,n){const{minX:o,maxX:i,minY:r,maxY:a}=getPolygonBounds(e);return{height:(a-r)/n*100,left:o/t*100,top:r/n*100,width:(i-o)/t*100}}function RenderPdf(e){const[t,n]=React.useState(0),[o,i]=React.useState(void 0),[r,a]=React.useState(null),[s,l]=React.useState(void 0),c=useWindowSizeContext(),d=React.useRef(null),p=React.useRef(null),u=React.useRef(void 0),m=null!=e.highlightedCitations&&e.highlightedCitations.length>0;React.useLayoutEffect(()=>{if(e.isFullScreen)return void i(void 0);const t=p.current;if(null==t)return;const n=()=>{const e=Math.floor(t.clientWidth);e>0&&i(t=>t===e?t:e)};n();const o=new ResizeObserver(n);return o.observe(t),()=>{o.disconnect()}},[e.isFullScreen,e.fileUrl]);const h=t=>{u.current!==t&&(u.current=t,l(t),e.onCitationHover?.(t))},g=e=>{!0===m&&h(findCitationTransactionIdAtPoint(e.currentTarget,e.clientX,e.clientY))},x=()=>{!0===m&&h(void 0)},f=t=>{null!=e.onCitationClick&&e.onCitationClick(findCitationTransactionIdAtPoint(t.currentTarget,t.clientX,t.clientY))},y=React.useCallback(()=>{if(null==e.highlightedCitations||0===e.highlightedCitations.length)return;const t=getScrollTargetPageNumber(e.highlightedCitations,e.selectedStatementTransactionId);if(null==t)return;const n=p.current?.querySelector(`[data-testid="pdf-page-${t}"]`);if(null!=n){const t=p.current,o=null!=t&&t.scrollHeight>t.clientHeight?t:null,i=(null!=e.selectedStatementTransactionId?n.querySelector(`[data-statement-transaction-id="${CSS.escape(String(e.selectedStatementTransactionId))}"]`):null)??n;if(isElementVisibleInContainer(i,o))return;scrollPageElementIntoView(i,o)}},[e.highlightedCitations,e.selectedStatementTransactionId]);React.useEffect(()=>{if(null==e.highlightedCitations||0===e.highlightedCitations.length||null==e.selectedStatementTransactionId)return;y();const t=requestAnimationFrame(y),n=window.setTimeout(y,150);return()=>{cancelAnimationFrame(t),window.clearTimeout(n)}},[e.highlightedCitations,e.selectedStatementTransactionId,t,y]),React.useEffect(()=>{a(null),n(0)},[e.fileUrl]);const S=t=>{if(!e.highlightedCitations)return null;const n=e.highlightedCitations.filter(e=>e.page===t);return 0===n.length?null:jsxRuntimeExports.jsx(HighlightsOverlay,{children:n.flatMap((t,n)=>{const o=convertPolygonToPercent(t.polygon,t.pageWidth,t.pageHeight),i=getEffectiveCitationVariant(t,e.selectedStatementTransactionId,s);return jsxRuntimeExports.jsx(HighlightBox,{"data-citation-variant":i,"data-statement-transaction-id":t.statementTransactionId,$variant:i,style:{height:`${o.height}%`,left:`${o.left}%`,top:`${o.top}%`,width:`${o.width}%`}},`${n}`)})})},C=()=>{e.setShowFullScreenView(!0)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FileInputElement,{fileRef:d,name:FileInputElementName$1,onFileChange:t=>{if(null!=t.target.files){const n=t.target.files[0];e.onUploadAttachment?.([n],[n.name])}},multiple:e.allowMultiFiles,sizeLimit:SizeLimit32MB,onFileSizeError:t=>e.openSizeLimitPopup?.(t)}),jsxRuntimeExports.jsx(AttachmentContainer$2,{maxHeight:e.maxHeight??!1,$allowTextSelection:m,"data-statement-pdf-surface":"",onClick:()=>{m||C()},onDoubleClick:()=>{m&&C()},windowSize:c,"data-testid":generateDataTestId("attachment-container",e.pdfTitle),children:jsxRuntimeExports.jsxs(PdfRender,{isFullScreen:e.isFullScreen,ref:p,children:[!0===e.showTitlebar?jsxRuntimeExports.jsxs(Titlebar$2,{children:[jsxRuntimeExports.jsx(PdfTitle$2,{children:e.pdfTitle}),!0===e.showTitlebarIcon?jsxRuntimeExports.jsxs(ActionIcons$1,{className:"actionIcons",children:[!1!==e.showReplaceIcon?jsxRuntimeExports.jsx(Tooltip$6,{enterDelay:600,display:"flex",title:common$3b.texts.replace,placement:"top-end",children:jsxRuntimeExports.jsx(ReplaceIconWrapper$1,{"data-testid":generateDataTestId("replace-attachment",e.pdfTitle),onClick:e=>{e.stopPropagation(),d.current?.click()}})}):null,"small"===c?jsxRuntimeExports.jsx(DeleteIconWrapperMobile$1,{"data-testid":null!=e.deleteAttachmentDataTestId?`${e.deleteAttachmentDataTestId}-mobile`:generateDataTestId("delete-attachment-mobile",e.pdfTitle),onClick:t=>{t.stopPropagation(),e.onDeleteClick?.()}}):jsxRuntimeExports.jsx(Tooltip$6,{enterDelay:600,display:"flex",title:common$3b.delete,placement:"top",children:jsxRuntimeExports.jsx(DeleteIconWrapper$c,{onClick:t=>{t.stopPropagation(),e.onDeleteClick?.()},"data-testid":e.deleteAttachmentDataTestId??generateDataTestId("delete-attachment",e.pdfTitle)})})]}):null]}):null,(()=>{const t=e.fileUrl.toLowerCase();return[".jpg",".jpeg",".png",".gif",".webp",".bmp"].some(e=>t.includes(e))})()?jsxRuntimeExports.jsx(ImageContainer$1,{children:jsxRuntimeExports.jsxs(ImageWrapper$2,{onMouseMove:g,onMouseLeave:x,onClick:f,children:[jsxRuntimeExports.jsx(StyledImage$g,{src:e.fileUrl,alt:e.pdfTitle,onLoad:e=>{const t=e.currentTarget;a({width:t.naturalWidth,height:t.naturalHeight})}},e.fileUrl),(()=>{if(!e.highlightedCitations||null==r)return null;const t=e.highlightedCitations.filter(e=>1===e.page);return 0===t.length?null:jsxRuntimeExports.jsx(HighlightsOverlay,{children:t.flatMap((t,n)=>{const o=convertPolygonToPercent(t.polygon,t.pageWidth,t.pageHeight),i=getEffectiveCitationVariant(t,e.selectedStatementTransactionId,s);return jsxRuntimeExports.jsx(HighlightBox,{"data-citation-variant":i,"data-statement-transaction-id":t.statementTransactionId,$variant:i,style:{height:`${o.height}%`,left:`${o.left}%`,top:`${o.top}%`,width:`${o.width}%`}},`${n}`)})})})()]})}):jsxRuntimeExports.jsxs(Document,{file:e.fileUrl,onLoadSuccess:({numPages:e})=>n(e),onLoadError:()=>n(0),loading:jsxRuntimeExports.jsx(BusyContainer$e,{children:jsxRuntimeExports.jsx(ActivityIndicator,{size:"ExtraLarge",start:!0})}),className:"pdfDoc",children:[Array.from(new Array(t),(n,i)=>jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:()=>e.onCrossClick?.(),children:jsxRuntimeExports.jsxs(PageWrapper$1,{windowSize:c,isFullScreen:e.isFullScreen,children:[jsxRuntimeExports.jsxs(PageContainer$p,{"data-testid":`pdf-page-${i+1}`,isFullScreen:e.isFullScreen,onMouseMove:g,onMouseLeave:x,onClick:f,children:[jsxRuntimeExports.jsx(Page$7,{pageNumber:i+1,className:"reactPdfPage",...e.isFullScreen?{scale:1.5}:null!=o?{width:o}:{scale:1},error:jsxRuntimeExports.jsx("div",{}),onRenderSuccess:()=>{(null!=e.highlightedCitations?getScrollTargetPageNumber(e.highlightedCitations,e.selectedStatementTransactionId):void 0)===i+1&&y()}},`page_${i+1}`),S(i+1)]}),t!=i+1?jsxRuntimeExports.jsx(Divider$c,{}):null]})},`page_${i+1}`)),jsxRuntimeExports.jsx("div",{})]},e.fileUrl)]})})]})}const AttachmentContainer$2=styled$2.div`
|
|
10225
10225
|
max-height: ${e=>!0===e.maxHeight?"650px":"auto"};
|
|
10226
10226
|
display: flex;
|
|
10227
10227
|
flex-direction: column;
|
|
@@ -31959,7 +31959,7 @@ to {
|
|
|
31959
31959
|
gap: ${Space.sp2};
|
|
31960
31960
|
`,BarWrapper$1=styled$2.div`
|
|
31961
31961
|
flex: 1;
|
|
31962
|
-
`,TableSection$
|
|
31962
|
+
`,TableSection$7=styled$2.div`
|
|
31963
31963
|
padding: ${Space.sp4} ${Space.sp5};
|
|
31964
31964
|
background-color: ${e=>e.theme.colors.grey4};
|
|
31965
31965
|
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
@@ -31981,7 +31981,7 @@ to {
|
|
|
31981
31981
|
display: flex;
|
|
31982
31982
|
align-items: center;
|
|
31983
31983
|
gap: ${Space.sp3};
|
|
31984
|
-
`,TopExDetailPageSkeleton=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FilterWrapper,{children:jsxRuntimeExports.jsxs(FilterColumn$2,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.filter.label.width,height:dimensions$22.filter.label.height}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.filter.dropdown.width,height:dimensions$22.filter.dropdown.height})]})}),jsxRuntimeExports.jsxs(ChartSection,{children:[jsxRuntimeExports.jsxs(BalanceInsightWrapper,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.balanceInsight.amount.width,height:dimensions$22.balanceInsight.amount.height}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.balanceInsight.label.width,height:dimensions$22.balanceInsight.label.height})]}),jsxRuntimeExports.jsx(ChartList,{children:chartRows.map(e=>jsxRuntimeExports.jsxs(ChartRow,{children:[jsxRuntimeExports.jsxs(ChartRowLeft,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.chart.icon.size,height:dimensions$22.chart.icon.size}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.chart.name.widths[e],height:dimensions$22.chart.name.height}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.chart.arrow.width,height:dimensions$22.chart.arrow.height}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.chart.amount.widths[e],height:dimensions$22.chart.amount.height})]}),jsxRuntimeExports.jsx(ChartRowRight,{children:jsxRuntimeExports.jsx(BarWrapper$1,{children:jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.chart.bar.widths[e],height:dimensions$22.chart.bar.height})})})]},`chart-${e}`))})]}),jsxRuntimeExports.jsx(TableSection$
|
|
31984
|
+
`,TopExDetailPageSkeleton=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FilterWrapper,{children:jsxRuntimeExports.jsxs(FilterColumn$2,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.filter.label.width,height:dimensions$22.filter.label.height}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.filter.dropdown.width,height:dimensions$22.filter.dropdown.height})]})}),jsxRuntimeExports.jsxs(ChartSection,{children:[jsxRuntimeExports.jsxs(BalanceInsightWrapper,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.balanceInsight.amount.width,height:dimensions$22.balanceInsight.amount.height}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.balanceInsight.label.width,height:dimensions$22.balanceInsight.label.height})]}),jsxRuntimeExports.jsx(ChartList,{children:chartRows.map(e=>jsxRuntimeExports.jsxs(ChartRow,{children:[jsxRuntimeExports.jsxs(ChartRowLeft,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.chart.icon.size,height:dimensions$22.chart.icon.size}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.chart.name.widths[e],height:dimensions$22.chart.name.height}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.chart.arrow.width,height:dimensions$22.chart.arrow.height}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.chart.amount.widths[e],height:dimensions$22.chart.amount.height})]}),jsxRuntimeExports.jsx(ChartRowRight,{children:jsxRuntimeExports.jsx(BarWrapper$1,{children:jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.chart.bar.widths[e],height:dimensions$22.chart.bar.height})})})]},`chart-${e}`))})]}),jsxRuntimeExports.jsx(TableSection$7,{children:tableRows$3.map(e=>jsxRuntimeExports.jsxs(TableRow$3,{children:[jsxRuntimeExports.jsxs(TableRowName,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:sp[3],height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.table.row.name.widths[e],height:dimensions$22.table.row.name.height})]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:dimensions$22.table.row.value.width,height:dimensions$22.table.row.value.height})]},`tbl-${e}`))})]}),balanceWidth="141px";Space.sp4,sp[4];const nameMinWidth="123px",{strings:{empty:empty$D}}=appLocale.getLocalizedStrings().common,ChevronClosedStyled=styled$2(SvgArrowRight)`
|
|
31985
31985
|
color: inherit;
|
|
31986
31986
|
width: ${Space.sp3};
|
|
31987
31987
|
height: ${Space.sp3};
|
|
@@ -49300,7 +49300,7 @@ to {
|
|
|
49300
49300
|
border: ${e=>`1px solid ${e.borderColor}`};
|
|
49301
49301
|
border-radius: ${Space.sp1};
|
|
49302
49302
|
margin-left: auto;
|
|
49303
|
-
`,BILL_COL_WIDTH_PCTS=[28,15,14,14,15,14],REMI_COL_WIDTH_PCTS=[30,15,13,13,16,13],SMALL_COL_WIDTH_PCTS=[40,30,30];function SpendManagementListLoading({entity:e="bill_pay"}){const t=useWindowSizeContext(),n="bill_pay"===e?BILL_COL_WIDTH_PCTS:REMI_COL_WIDTH_PCTS;return jsxRuntimeExports.jsx(TableSection$
|
|
49303
|
+
`,BILL_COL_WIDTH_PCTS=[28,15,14,14,15,14],REMI_COL_WIDTH_PCTS=[30,15,13,13,16,13],SMALL_COL_WIDTH_PCTS=[40,30,30];function SpendManagementListLoading({entity:e="bill_pay"}){const t=useWindowSizeContext(),n="bill_pay"===e?BILL_COL_WIDTH_PCTS:REMI_COL_WIDTH_PCTS;return jsxRuntimeExports.jsx(TableSection$6,{windowSize:t,children:jsxRuntimeExports.jsx(ListTableSkeleton,{colPcts:n,smallColPcts:SMALL_COL_WIDTH_PCTS})})}const TableSection$6=styled$2.div`
|
|
49304
49304
|
margin-left: ${e=>navBarContentContainerMargin.valuePx(e.windowSize)};
|
|
49305
49305
|
box-sizing: border-box;
|
|
49306
49306
|
`,dimensions$1t={lastListItemHeight:new ResponsiveSized(200,158),checkBoxTop:new ResponsiveSized(44,sp[4]),checkBoxLeft:new ResponsiveSized(sp[2],sp[4])},strings$32=appLocale.getLocalizedStrings(),{common:{texts:{maxLimit:maxLimit}},spendManagement:{billPay:billPayStrings,reimbursement:reimbursementStrings}}=strings$32,bulkActionStrings$2=billPayStrings.bulkActions,remiBulkActionStrings=reimbursementStrings.bulkActions,emptyString$1=strings$32.common.strings.empty,bulkSelectIds="bulkSelectIds",SpendManagementFilteredPage=({transactionList:e,botEmail:t,selectedTab:n,selectedSubTab:o,isShowDeletedBillsEnabled:i,isShowDeletedReimbursementEnabled:r,billPayApprovalRulesAffectedEntityIds:a,remiApprovalRulesAffectedEntityIds:s,searchText:l,isAdmin:c,entity:d,uiState:p,bulkSubmissionLimit:u,isBulkActionAllowed:m,transactionsSelectedForBulkAction:h,isDetectInsufficientFundsEnabled:g,fetchState:x,analytics:f,onTransactionRowClick:y,onReloadTransactions:S,onColumnSortConfigChanged:C})=>{const b=useWindowSizeContext(),$=t=>{const n="bill_pay"===d?e[t].vendor?.name??e[t].candidateVendorName??emptyString$1:e[t].reportTitle??emptyString$1;return getSpendManagementListItemSize(n,b)},v=React.useRef(null);React.useEffect(()=>{v.current?.resetAfterIndex(0)},[b,v,n,o]);const E=React.forwardRef((e,t)=>{const{children:n,style:o,...i}=e;return jsxRuntimeExports.jsx(StyledDiv$r,{ref:t,style:{...o,width:"auto"},...i,children:jsxRuntimeExports.jsx(ChildElementWrapper$5,{children:n})})});return E.displayName=strings$32.common.texts.spendManagementListViewInnerElementType,useSentryPerformanceTracking({componentName:`${entityToTitle(d)}.${tabIdToTitle(n,d)}`,enabled:"Completed"===x}),jsxRuntimeExports.jsx(Container$3a,{children:"Error"===x?jsxRuntimeExports.jsxs(ReloadPage$o,{children:[jsxRuntimeExports.jsx(ReloadIconContainer$n,{onClick:S,children:jsxRuntimeExports.jsx(StyledReloadIcon$b,{})}),jsxRuntimeExports.jsx(ReloadLabel$m,{children:strings$32.common.reloadPage.label})]}):"Completed"===x&&0===e.length&&l!=emptyString$1?jsxRuntimeExports.jsx(NoListDataPage,{message:"bill_pay"===d?strings$32.spendManagement.billPay.billsByTabs.noDataWithFilterText:strings$32.spendManagement.reimbursement.reimbursementByTabs.noDataWithFilterText}):"Completed"===x&&0===e.length?jsxRuntimeExports.jsx(NoListDataPage,{message:"bill_pay"===d?strings$32.spendManagement.billPay.billsByTabs.noDataText:strings$32.spendManagement.reimbursement.reimbursementByTabs.noDataText,orMessage:"bill_pay"===d?strings$32.spendManagement.billPay.billsByTabs.noDataTextViaMail:strings$32.spendManagement.reimbursement.reimbursementByTabs.noDataTextViaMail,emailTextPrefix:"bill_pay"===d?void 0:strings$32.common.texts.receiptsTo,botEmail:t}):"Not-Started"===x||"In-Progress"===x?jsxRuntimeExports.jsx(SpendManagementListLoading,{entity:"bill_pay"===d||"reimbursement"===d?d:void 0}):jsxRuntimeExports.jsx(ListViewContainer$i,{windowSize:b,children:jsxRuntimeExports.jsx(AutoSizer,{children:({height:t,width:o})=>jsxRuntimeExports.jsx(VariableSizeList,{ref:v,height:t,itemCount:"bill_pay"===d||"reimbursement"===d?1:e.length,innerElementType:E,itemSize:$,estimatedItemSize:DEFAULT_LIST_ITEM_HEIGHT_COMPACT$2,itemKey:t=>e[t].id,width:o,style:{paddingRight:"8px",boxSizing:"content-box"},overscanCount:OVERSCAN_COUNT$6,itemData:{entity:d,isBulkActionAllowed:m,isShowDeletedBillsEnabled:i,isShowDeletedReimbursementEnabled:r,billPayApprovalRulesAffectedEntityIds:a,remiApprovalRulesAffectedEntityIds:s,transactionList:e,isAdmin:c,selectedTab:n,transactionsSelectedForBulkAction:h,bulkSubmissionLimit:u,uiState:p,analytics:f,isDetectInsufficientFundsEnabled:g,onTransactionRowClick:y,onColumnSortConfigChanged:C},initialScrollOffset:0,children:ListItem$e})})})})},SpendManagementPerTabPage=({transactionList:e,botEmail:t,isAdmin:n,selectedTab:o,isShowDeletedBillsEnabled:i,isShowDeletedReimbursementEnabled:r,billPayApprovalRulesAffectedEntityIds:a,remiApprovalRulesAffectedEntityIds:s,selectedSubTab:l,searchText:c,entity:d,uiState:p,bulkSubmissionLimit:u,isBulkActionAllowed:m,isRecurringBillInBulkActionList:h,transactionsSelectedForBulkAction:g,allowedBulkActions:x,bulkSubmissionFetchState:f,isDetectInsufficientFundsEnabled:y,onTransactionRowClick:S,fetchState:C,onReloadTransactions:b,onColumnSortConfigChanged:$,analytics:v,updateBulkActionList:E,removeAllTransactionsFromBulkActionList:w,onProceedForBulkActionClick:R})=>{const A=useForm({defaultValues:{bulkSelectIds:g},values:{bulkSelectIds:g}});React.useEffect(()=>{const e=A.watch((e,{name:t})=>{null!=t&&null!=e&&defer(()=>j(t,e))});return()=>{e.unsubscribe()}});const j=async(t,n)=>{if(t===bulkSelectIds){let t=[];if(n[bulkSelectIds].includes(strings$32.common.all.toLowerCase())){if("scheduled"===o&&0===g.length){t=[];for(const n of e)if(!0===Boolean(n.bulkSelectInfo?.isSelectableForBulkActionSelectAll)&&t.push(n.id),t.length===u)break}else t=n[bulkSelectIds].filter(e=>e!==strings$32.common.all.toLowerCase());if("bill_pay"===d){const n=e.filter(e=>t.includes(e.id)),i=clientEpicState.getBillListUniqueType(n);v?.trackBillPayBulkSelectAll(o,l,i)}else{const n=e.filter(e=>t.includes(e.id)),i=clientEpicState.getRemiListUniqueType(n.map(e=>e.reimbursementTypesIncluded));v?.trackReimbursementBulkSelectAll(o,l,i)}}else t=n[bulkSelectIds];E?.(t)}},T=useWindowSizeContext(),[I,k]=React.useState(!1),[L,D]=React.useState({type:emptyString$1,title:emptyString$1,description:emptyString$1,primaryButtonText:emptyString$1,secondaryButtonText:emptyString$1});React.useEffect(()=>{const e=getEventForTab(o,l,d);"Completed"===C&&null!=e&&v?.trackPageLoaded(e,"bill_pay"===d?"Bills":"Reimbursements")},[v,o,l,d,C]);const _=React.useCallback(()=>{const{title:t,description:n}=getDeletePopupStrings(d,g.length,o,h);if(D({type:"delete",title:t,description:n,primaryButtonText:strings$32.common.confirm,secondaryButtonText:strings$32.common.close}),"bill_pay"===d){const t=e.filter(e=>g.includes(e.id)),n=clientEpicState.getBillListUniqueType(t);v?.trackBillPayBulkDeleted(g.length,o,l,n)}else{const t=e.filter(e=>g.includes(e.id)),n=clientEpicState.getRemiListUniqueType(t.map(e=>e.reimbursementTypesIncluded));v?.trackReimbursementBulkDeleted(g.length,o,l,n)}k(!0)},[d,v,h,l,o,e,g]),P=React.useCallback(()=>{const{title:e,description:t}=getCancelPopupStrings(d,g.length);D({type:"cancel",title:e,description:t,primaryButtonText:strings$32.common.confirm,secondaryButtonText:strings$32.common.close}),k(!0)},[d,g.length]),B={onOkClick:t=>{if(k(!1),"bill_pay"===d){const t=e.filter(e=>g.includes(e.id)),n=clientEpicState.getBillListUniqueType(t);v?.trackBillPayBulkPopupConfirm(L.type,o,l,n)}else{const t=e.filter(e=>g.includes(e.id)),n=clientEpicState.getRemiListUniqueType(t.map(e=>e.reimbursementTypesIncluded));v?.trackReimbursementBulkPopupConfirm(L.type,o,l,n)}"delete"===L.type?R?.("delete",t):R?.("cancel",t)},onCancelClick:()=>{w?.(),k(!1),D({type:emptyString$1,title:emptyString$1,description:emptyString$1,primaryButtonText:emptyString$1,secondaryButtonText:emptyString$1})}},M=React.useCallback(()=>{if("bill_pay"===d){const t=e.filter(e=>g.includes(e.id)),n=clientEpicState.getBillListUniqueType(t);v?.trackBillPayBulkSelection(g.length,o,l,n)}else{const t=e.filter(e=>g.includes(e.id)),n=clientEpicState.getRemiListUniqueType(t.map(e=>e.reimbursementTypesIncluded));v?.trackReimbursementBulkSelection(g.length,o,l,n)}x.includes("send_for_approval")?R?.("send_for_approval"):R?.(y?"approve":"review")},[d,x,e,v,g,o,l,R,y]),O=x.filter(e=>"delete"!==e).length>0,F=React.useMemo(()=>{if(0===g.length)return;const t=e.reduce((e,t)=>{if(!g.includes(t.id))return e;const n="bill_pay"===d?t.totalAmountInUSD:t.amount;return null==n?e:{referenceAmount:e.referenceAmount??n,totalAmountValue:e.totalAmountValue+n.amount}},{referenceAmount:void 0,totalAmountValue:0});return null==t.referenceAmount?void 0:{...t.referenceAmount,amount:t.totalAmountValue}},[d,e,g]);return jsxRuntimeExports.jsx(SpendManagementByStatusWrapperContainer$1,{children:jsxRuntimeExports.jsx(FormProvider,{...A,children:jsxRuntimeExports.jsxs(StyledForm$8,{onSubmit:A.handleSubmit(()=>{x.includes("cancel")?P():M()}),children:[jsxRuntimeExports.jsx(SpendManagementFilteredPage,{botEmail:t,selectedTab:o,selectedSubTab:l,searchText:c,transactionList:e,fetchState:C,onReloadTransactions:b,onTransactionRowClick:S,entity:d,uiState:p,isAdmin:n,onColumnSortConfigChanged:$,analytics:v,isShowDeletedBillsEnabled:i,isShowDeletedReimbursementEnabled:r,billPayApprovalRulesAffectedEntityIds:a,remiApprovalRulesAffectedEntityIds:s,bulkSubmissionLimit:u,isBulkActionAllowed:m,transactionsSelectedForBulkAction:g,isDetectInsufficientFundsEnabled:y}),I?jsxRuntimeExports.jsx(ConfirmationPopup,{titleComponent:jsxRuntimeExports.jsx(ConfirmationPopUpTitle$3,{children:L.title}),descriptionComponent:jsxRuntimeExports.jsx(ConfirmationPopUpDescription$2,{children:L.description}),primaryButtonText:L.primaryButtonText,proceedButtonVariant:"delete"===L.type?"destructive":"primary",secondaryButtonText:L.secondaryButtonText,action:B,isNotesIncluded:"draft"!==o,useLegacyStyles:!0,isEditPopup:!0}):null,g.length>0?jsxRuntimeExports.jsx(Footer$7,{style:{marginRight:`-${navBarContentContainerMargin.valuePx(T)}`,paddingRight:navBarContentContainerMargin.valuePx(T),paddingLeft:Space.sp5},helperContainerStyle:"small"===T?{margin:`${Space.sp5} ${x.includes("delete")&&O?Space.sp7:Space.sp0} ${Space.sp2} ${Space.sp0}`}:{},showPrimaryButton:O,primaryBtn:{label:getFooterPrimaryButtonLabel$1(d,x,g.length),isLoading:"delete"!==L.type&&"In-Progress"===f,isDisabled:"delete"===L.type&&"In-Progress"===f,type:"submit",style:getFooterPrimaryButtonStyle(x)},cancelBtn:{label:strings$32.common.texts.goBack,isDisabled:"In-Progress"===f,onClick:w,style:getFooterCancelButtonStyle(x,T)},leftSideComponent:getLeftSideFooterComponent$2(g.length,u,d,T,F),rightSideComponent:x.includes("delete")?getRightSideFooterComponent(g.length,"delete"===L.type&&"In-Progress"===f,_,T):null}):null]})})})},ListItem$e=({style:e,data:t})=>{const{entity:n,transactionList:o,transactionsSelectedForBulkAction:i,isAdmin:r,isBulkActionAllowed:a,isShowDeletedBillsEnabled:s,isShowDeletedReimbursementEnabled:l,billPayApprovalRulesAffectedEntityIds:c,remiApprovalRulesAffectedEntityIds:d,bulkSubmissionLimit:p,selectedTab:u,uiState:m,analytics:h,isDetectInsufficientFundsEnabled:g,onTransactionRowClick:x,onColumnSortConfigChanged:f}=t,y=useWindowSizeContext(),S=useTheme(),C=a?i.length>0?"always_on":"checked_or_hover":"off";return jsxRuntimeExports.jsx(ListItemDiv$e,{style:{...e,width:"100%"},hasBulkSelection:i.length>0,className:"spend-management-list-item",children:jsxRuntimeExports.jsx(LabeledGroupedCheckBoxField,{style:{width:"100%"},checkBoxContainerStyle:{gap:Space.sp0,width:"auto",marginLeft:Space.sp0},labelStyle:{width:"100%"},checkBoxStyle:getCheckBoxStyle$1(y),labelCheckBoxStyle:{marginLeft:"small"===y?Space.sp2:Space.sp0,..."small"!==y?{width:navBarContentContainerMargin.valuePx(y),display:"flex",justifyContent:"center"}:{}},checkBoxIconStyle:{backgroundColor:S.colors.grey4},infoIconContainerStyle:getInfoIconStyle$1(y),name:bulkSelectIds,mode:C,selectionLimit:p,checkBoxes:"bill_pay"===n?[{label:jsxRuntimeExports.jsx(BillPayListHeaderRowMemo,{companyNameSticky:!1,currentTab:u,onColumnSortConfigChanged:f,sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder}}),defaultChecked:!1,groupLabel:!0,value:strings$32.common.all.toLowerCase(),isException:!1},...o.map((e,t)=>{const r=c?.includes(e.id)??!1,a=t===o.length-1;return{label:jsxRuntimeExports.jsx(BillPayRowWrapper,{transactionDetail:e,selectedTab:u,isShowDeletedBillsEnabled:s,onTransactionRowClick:x,billsSelectedForBulkAction:i,bulkSelectFormId:bulkSelectIds,bulkSelectLimit:p,isSelectionMode:"always_on"===C,isDetectInsufficientFundsEnabled:g,billPayApprovalRulesAffectedEntityIds:c,isLastRow:a}),value:e.id,groupLabel:!1,defaultChecked:!1,isException:!1===e.bulkSelectInfo?.isSelectableForBulkAction||r,exceptionMode:getShowExceptionMode(e,i),exceptionInfo:r?strings$32.commonSetUp.approval.updatingWithApprovalRulesTooltip.replace("__entity__",strings$32.common.texts.bill2):getToolTipMessage(n,e),exceptionType:r?"info":getExceptionType(e)}})]:[{label:jsxRuntimeExports.jsx(ReimbursementListHeaderRowMemo,{companyNameSticky:!1,currentTab:u,onColumnSortConfigChanged:f,analytics:h,sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder}}),defaultChecked:!1,groupLabel:!0,value:strings$32.common.all.toLowerCase(),isException:!1},...o.map((e,t)=>{const a=d?.includes(e.id)??!1,s=t===o.length-1;return{label:jsxRuntimeExports.jsx(ReimbursementRowWrapper,{transactionDetail:e,isLastRow:s,isShowDeletedReimbursementEnabled:l,selectedTab:u,isAdmin:r,onTransactionRowClick:x,remisSelectedForBulkAction:i,bulkSelectFormId:bulkSelectIds,bulkSelectLimit:p,isSelectionMode:"always_on"===C,isAffectedByApprovalRuleUpdate:a}),value:e.id,groupLabel:!1,defaultChecked:!1,isException:!1===e.bulkSelectInfo?.isSelectableForBulkAction||a,exceptionMode:"checked_or_hover",exceptionInfo:a?strings$32.commonSetUp.approval.updatingWithApprovalRulesTooltip.replace("__entity__",strings$32.common.texts.reimbursement):getToolTipMessage(n,e),exceptionType:a?"info":getExceptionType(e)}})]})})},BillPayRowWrapper=({transactionDetail:e,selectedTab:t,isShowDeletedBillsEnabled:n,billsSelectedForBulkAction:o,bulkSelectFormId:i,bulkSelectLimit:r,isSelectionMode:a,isDetectInsufficientFundsEnabled:s,isLastRow:l,onTransactionRowClick:c,billPayApprovalRulesAffectedEntityIds:d})=>{const p="small"===useWindowSizeContext()?BillPayRowSmall:BillPayRow,u=useTheme().colors,m=getBillPayAdditionalInfo(e,t),{bulkProcessingDetail:h}=e,g=clientEpicState.isBulkProcessing(h?.type),x=d?.includes(e.id)??!1,f=s&&"scheduled"===e.billPayInfo.stage.code&&!e.isDeleted&&null!=e.totalAmountWithFeesInUSD?getLowBalanceAdditionalInfo(e.totalAmountWithFeesInUSD,e.withdrawFrom,e.billPayInfo.paymentDate):void 0,y=getBillPayTagStatus(e.billPayInfo,t,n,e.isDeleted,u,e.dueDate),S=null!=f&&"failed"!==y?.code&&"processing"!==y?.code&&"cancelled"!==y?.code&&"returned"!==y?.code&&"rejected"!==y?.code&&"paid"!==y?.code;return jsxRuntimeExports.jsx(RowWrapper$1,{children:jsxRuntimeExports.jsx(p,{reportTitleAdditionalInfo:m,transactionDetail:e,isSelected:o.includes(e.id),isProcessing:g,isAffectedByApprovalRuleUpdate:x,isBulkSelectionLimitReached:o.length===r,isSelectionMode:a,bulkSelectFormId:i,isLastRow:l,tagStatus:y,approvers:!0===e.isDeleted?void 0:getSpendManagementApprovers(e,t),deletionAdditionalInfo:!0===e.isDeleted&&"draft"!==t?getSpendManagementDeletionInfo(e,t):void 0,onTransactionRowClick:g||x?()=>null:c,paidAdditionalInfo:"paid"!==t||e.isDeleted?void 0:(()=>{const t=e.billPayInfo.outsideZeniTransactionPaymentMode;if(null==t||"other"===t)return;const n=billPayStrings.billDetails.paymentOutsideZeni.paymentModeOptions.find(e=>e.value===t)?.label;return`${strings$32.common.via} ${n}`})(),lowBalanceAlert:f,showLowBalanceTooltip:S})})},ReimbursementRowWrapper=({transactionDetail:e,selectedTab:t,isAdmin:n,isLastRow:o,isShowDeletedReimbursementEnabled:i,remisSelectedForBulkAction:r,bulkSelectFormId:a,bulkSelectLimit:s,isSelectionMode:l,onTransactionRowClick:c,isAffectedByApprovalRuleUpdate:d=!1})=>{const p="small"===useWindowSizeContext()?ReimbursementRowSmall:ReimbursementRow,u=useTheme().colors,m=useGlobalInfoContext(),h=isZeniFinopsRoles(m),g=getReportTitleAdditionalInfo(n,e.submittedBy,h),{bulkProcessingDetail:x}=e,f=clientEpicState.isBulkProcessing(x?.type)||d;return jsxRuntimeExports.jsx(RowWrapper$1,{children:jsxRuntimeExports.jsx(p,{reportTitleAdditionalInfo:g,reimbursementDetail:e,isLastRow:o,isSelected:r.includes(e.id),isProcessing:f,isBulkSelectionLimitReached:r.length===s,isSelectionMode:l,bulkSelectFormId:a,currentTab:t,date:getRowDate(e,t),approvers:!0===e.isDeleted?void 0:getSpendManagementApprovers(e,t),tagStatus:getRemiTagStatus(e,t,i,u),deletionAdditionalInfo:!0===e.isDeleted&&"draft"!==t?getSpendManagementDeletionInfo(e,t):void 0,onTransactionRowClick:f?()=>null:c})})},getCheckBoxStyle$1=e=>"small"===e?{zIndex:1,backgroundColor:"inherit",position:"absolute",left:Space.sp1,width:Space.sp4,height:Space.sp4}:{zIndex:1,backgroundColor:"inherit",width:navBarContentContainerMargin.valuePx(e),display:"flex",justifyContent:"center"},getInfoIconStyle$1=e=>{let t={zIndex:1,marginBottom:Space.sp2};return t="small"===e?{...t,position:"absolute",left:Space.sp2,marginBottom:Space.sp1,width:Space.sp4,height:Space.sp4}:{...t,width:navBarContentContainerMargin.valuePx(e),display:"flex",justifyContent:"center"},t},getLeftSideFooterComponent$2=(e,t,n,o,i)=>{const r="bill_pay"===n?strings$32.common.texts.bill2:remiBulkActionStrings.report,a=(e>1?r+"s":r)+strings$32.common.texts.selected;return e>0?jsxRuntimeExports.jsxs(LeftSideComponentContainer$2,{"data-testid":"bill_pay"===n?"selected-bills-total":"selected-reports-total",style:"small"===o?{position:"absolute",top:Space.sp2,left:`-${Space.sp5}`}:{},children:[jsxRuntimeExports.jsxs(RowContainer$4,{children:[jsxRuntimeExports.jsx(BillCountContainer$1,{children:e}),jsxRuntimeExports.jsx(BillCountText$1,{children:a}),e===t?jsxRuntimeExports.jsx(MaxLimitText$3,{children:maxLimit}):null]}),jsxRuntimeExports.jsx(RowContainer$4,{children:jsxRuntimeExports.jsxs(TotalAmountText,{children:[bulkActionStrings$2.totalAmount,strings$32.common.strings.colon,strings$32.common.strings.space,amountToString("0,0.00",i)]})})]}):null},getRightSideFooterComponent=(e,t,n,o)=>e>0?jsxRuntimeExports.jsx(RightSideComponentContainer$2,{style:"small"===o?{position:"absolute",top:Space.sp7,right:`-${Space.sp5}`}:{},children:jsxRuntimeExports.jsx(DeleteIconWrapper$4,{isLoading:t,windowSize:o,className:"delete-icon-wrapper",onClick:t?()=>null:n,children:t?jsxRuntimeExports.jsx(ActivityIndicator,{size:"Small",start:!0}):jsxRuntimeExports.jsx(Tooltip$6,{enterDelay:600,title:strings$32.common.delete,placement:"top",children:jsxRuntimeExports.jsx(DeleteIconContainer,{children:jsxRuntimeExports.jsx(StyledDeleteIcon$a,{})})})})}):null,getToolTipMessage=(e,t)=>{const{bulkProcessingDetail:n,bulkSelectInfo:o}=t,i=clientEpicState.isBulkProcessing(n?.type),r="error"===n?.type;let a;if(i)a=n?.inProgressMessage;else if(r)a=n.error?.message;else if(null!=o?.bulkSelectExceptionInfo)if("bill_pay"===e){const{exceptions:e}=strings$32.spendManagement.billPay.bulkActions;a=e[o.bulkSelectExceptionInfo]}else{const{exceptions:e}=strings$32.spendManagement.reimbursement.bulkActions;a=e[o.bulkSelectExceptionInfo]}return a},getFooterPrimaryButtonLabel$1=(e,t,n)=>{const{billPay:o}=strings$32.spendManagement;return t.includes("cancel")?"reimbursement"===e?remiBulkActionStrings.popUps.cancel.title.replace("__report__",n>1?strings$32.common.texts.reports2:remiBulkActionStrings.report):o.bulkActions.popUps.cancel.title.replace("<_bill_>",n>1?strings$32.common.headers.bills:strings$32.common.texts.bill2):t.includes("send_for_approval")?o.billDetails.sendForApproval:strings$32.common.review},getFooterPrimaryButtonStyle=e=>{let t;return!1===e.includes("cancel")&&!1===e.includes("send_for_approval")&&(t={minWidth:"92px"}),t},getFooterCancelButtonStyle=(e,t)=>{let n;return"small"!==t&&(e.includes("cancel")?n={minWidth:"116px"}:e.includes("send_for_approval")&&(n={minWidth:"160px"})),n},getCancelPopupStrings=(e,t)=>{const{this_:n,these:o,payment:i,payments:r,bills:a,bill:s,reports:l,report:c,they:d,it:p}=strings$32.common.texts;return t>1?"bill_pay"===e?{title:bulkActionStrings$2.popUps.cancel.title.replace("<_bill_>",strings$32.common.headers.bills),description:bulkActionStrings$2.popUps.cancel.description.replace("<_this_>",o).replace("<_bill_>",a).replace("<_it_>",d).replace("<_payment_>",r)}:{title:remiBulkActionStrings.popUps.cancel.title.replace("__report__",strings$32.common.texts.reports2),description:remiBulkActionStrings.popUps.cancel.description.replace("<_this_>",o).replace("__report__",l).replace("<_it_>",d).replace("<_payment_>",r)}:"reimbursement"===e?{title:remiBulkActionStrings.popUps.cancel.title.replace("__report__",remiBulkActionStrings.report),description:remiBulkActionStrings.popUps.cancel.description.replace("<_this_>",n).replace("__report__",c).replace("<_it_>",p).replace("<_payment_>",i)}:{title:bulkActionStrings$2.popUps.cancel.title.replace("<_bill_>",strings$32.common.texts.bill2),description:bulkActionStrings$2.popUps.cancel.description.replace("<_this_>",n).replace("<_bill_>",s).replace("<_it_>",p).replace("<_payment_>",i)}},getDeletePopupStrings=(e,t,n,o)=>{const{this_:i,these:r,payment:a,payments:s,bills:l,bill:c,report:d,reports:p,they:u,it:m}=strings$32.common.texts,h=t>1;let g=emptyString$1;g="bill_pay"===e?bulkActionStrings$2.popUps.delete.title.replace("<_bill_>",h?strings$32.common.headers.bills:strings$32.common.texts.bill2):remiBulkActionStrings.popUps.delete.title.replace("__report__",h?strings$32.common.texts.reports2:remiBulkActionStrings.report);let x=emptyString$1;return x="draft"===n?"bill_pay"===e?bulkActionStrings$2.popUps.delete.descriptionDraft.replace("<_this_>",h?r:i).replace("<_bill_>",h?l:c):remiBulkActionStrings.popUps.delete.descriptionDraft.replace("<_this_>",h?r:i).replace("__report__",h?p:d):o?bulkActionStrings$2.popUps.delete.descriptionRecurring.replace("<_payment_>",h?a:s):"bill_pay"===e?bulkActionStrings$2.popUps.delete.descriptionOther.replace("<_this_>",h?r:i).replace("<_bill_>",h?l:c).replace("<_it_>",h?u:m).replace("<_payment_>",h?s:a):remiBulkActionStrings.popUps.delete.descriptionOther.replace("<_this_>",h?r:i).replace("__report__",h?p:d).replace("<_it_>",h?u:m).replace("<_payment_>",h?s:a),{title:g,description:x}},getShowExceptionMode=(e,t)=>{const n=e.bulkSelectInfo?.bulkSelectExceptionInfo;return 0===t.length?null==n||"bookCloseDateProcessing"!==n&&"noActionRecurring"!==n?"checked_or_hover":"hover_only":"checked_or_hover"},getExceptionType=e=>clientEpicState.isBulkProcessing(e.bulkProcessingDetail?.type)?"info":"alert",Container$3a=styled$2.div`
|
|
@@ -56824,7 +56824,7 @@ to {
|
|
|
56824
56824
|
`,CountContainer=styled$2.div`
|
|
56825
56825
|
display: flex;
|
|
56826
56826
|
flex-direction: column;
|
|
56827
|
-
`,Count$
|
|
56827
|
+
`,Count$2=styled$2(LargeMedium)`
|
|
56828
56828
|
text-align: right;
|
|
56829
56829
|
color: ${e=>e.theme.colors.primary};
|
|
56830
56830
|
`,CountHeading=styled$2(StandardRegular)`
|
|
@@ -56833,7 +56833,7 @@ to {
|
|
|
56833
56833
|
width: fit-content;
|
|
56834
56834
|
`,EntityName=styled$2(H5Regular)`
|
|
56835
56835
|
color: ${e=>e.theme.colors.primary};
|
|
56836
|
-
`;function EntitySummarySection({totalBalances:e,entityName:t,reportId:n,reportDate:o,entityLogo:i}){const r=useWindowSizeContext(),a="large"===r||"extra-large"===r,s=React.useMemo(()=>calculateTotalBalance(e),[e]);return jsxRuntimeExports.jsxs(Container$2p,{isLargeScreen:a,windowSize:r,children:[jsxRuntimeExports.jsxs(EntityNameContainer,{windowSize:r,children:[null!=i?jsxRuntimeExports.jsx(EntityLogoAvatar,{photoUrl:i.toString(),styles:{width:D$1u.nameLogoWidth.valuePx(r),height:D$1u.nameLogoHeight.valuePx(r),marginTop:D$1u.nameLogoMarginTop.valuePx(r)}}):jsxRuntimeExports.jsx(AvatarContainer,{windowSize:r,children:jsxRuntimeExports.jsx(EntityAvatar,{name:t})}),jsxRuntimeExports.jsxs(TitleContainer$d,{children:[jsxRuntimeExports.jsx(EntityName,{children:t}),jsxRuntimeExports.jsx(ControlledComponent,{controller:"accounts_payable_aging"===n,children:jsxRuntimeExports.jsx(Duration,{children:`${apAgingDetail.dateLabel} ${o.format(dateFormat$U.visual.MMMDCommaYYYYformat)}`})}),jsxRuntimeExports.jsx(ControlledComponent,{controller:"accounts_receivable_aging"===n,children:jsxRuntimeExports.jsx(Duration,{children:`${arAgingDetail.dateLabel} ${o.format(dateFormat$U.visual.MMMDCommaYYYYformat)}`})})]})]}),jsxRuntimeExports.jsxs(SummaryContainer,{isLargeScreen:a,windowSize:r,children:[e.map(e=>jsxRuntimeExports.jsxs(CountContainer,{children:[jsxRuntimeExports.jsx(CountHeading,{children:{...duration,current_due:current}[e.period]}),jsxRuntimeExports.jsx(Count$
|
|
56836
|
+
`;function EntitySummarySection({totalBalances:e,entityName:t,reportId:n,reportDate:o,entityLogo:i}){const r=useWindowSizeContext(),a="large"===r||"extra-large"===r,s=React.useMemo(()=>calculateTotalBalance(e),[e]);return jsxRuntimeExports.jsxs(Container$2p,{isLargeScreen:a,windowSize:r,children:[jsxRuntimeExports.jsxs(EntityNameContainer,{windowSize:r,children:[null!=i?jsxRuntimeExports.jsx(EntityLogoAvatar,{photoUrl:i.toString(),styles:{width:D$1u.nameLogoWidth.valuePx(r),height:D$1u.nameLogoHeight.valuePx(r),marginTop:D$1u.nameLogoMarginTop.valuePx(r)}}):jsxRuntimeExports.jsx(AvatarContainer,{windowSize:r,children:jsxRuntimeExports.jsx(EntityAvatar,{name:t})}),jsxRuntimeExports.jsxs(TitleContainer$d,{children:[jsxRuntimeExports.jsx(EntityName,{children:t}),jsxRuntimeExports.jsx(ControlledComponent,{controller:"accounts_payable_aging"===n,children:jsxRuntimeExports.jsx(Duration,{children:`${apAgingDetail.dateLabel} ${o.format(dateFormat$U.visual.MMMDCommaYYYYformat)}`})}),jsxRuntimeExports.jsx(ControlledComponent,{controller:"accounts_receivable_aging"===n,children:jsxRuntimeExports.jsx(Duration,{children:`${arAgingDetail.dateLabel} ${o.format(dateFormat$U.visual.MMMDCommaYYYYformat)}`})})]})]}),jsxRuntimeExports.jsxs(SummaryContainer,{isLargeScreen:a,windowSize:r,children:[e.map(e=>jsxRuntimeExports.jsxs(CountContainer,{children:[jsxRuntimeExports.jsx(CountHeading,{children:{...duration,current_due:current}[e.period]}),jsxRuntimeExports.jsx(Count$2,{children:amountToString("0,0",e?.balance)})]},e.period)),jsxRuntimeExports.jsxs(CountContainer,{children:[jsxRuntimeExports.jsx(ControlledComponent,{controller:"accounts_payable_aging"===n,children:jsxRuntimeExports.jsx(CountHeading,{children:totalPayable})}),jsxRuntimeExports.jsx(ControlledComponent,{controller:"accounts_receivable_aging"===n,children:jsxRuntimeExports.jsx(CountHeading,{children:arAging$1.totalReceivable})}),jsxRuntimeExports.jsx(Count$2,{children:amountToString("0,0",s?.balance)})]})]})]})}const strings$2q=appLocale.getLocalizedStrings(),{common:commonStrings$d}=strings$2q,dimensions$14={wrapperContainerMarginTop:new ResponsiveSized(sp[4],sp[0]),wrapperContaineHorizontalPadding:new ResponsiveSized(sp[0],sp[5])},ListViewContainer$f=styled$2.div`
|
|
56837
56837
|
display: flex;
|
|
56838
56838
|
flex-direction: column;
|
|
56839
56839
|
width: 100%;
|
|
@@ -60562,7 +60562,7 @@ to {
|
|
|
60562
60562
|
display: flex;
|
|
60563
60563
|
align-items: center;
|
|
60564
60564
|
gap: ${Space.sp1};
|
|
60565
|
-
`,SUMMARY_CARD_HEIGHT_PX=188,cardsMinWidth=new ResponsiveSized(343,353),CHARGE_CARD_COL_WIDTH_PCTS_ADMIN=[16,18,15,14,13,12,12],CHARGE_CARD_COL_WIDTH_PCTS_CARD_USER=[18,18,16,16,16,16],CHARGE_CARD_TABLE_SMALL_COL_PCTS=[40,30,30];function clampTopSummaryCardCount(e){const t=Math.floor(Number.isFinite(e)?e:3);return Math.min(3,Math.max(1,t))}function ChargeCardListLoading({isCardUser:e=!1,showTopSummaryCards:t=!0,topSummaryCardCount:n=3}){const o=useWindowSizeContext(),i=e?CHARGE_CARD_COL_WIDTH_PCTS_CARD_USER:CHARGE_CARD_COL_WIDTH_PCTS_ADMIN,r=clampTopSummaryCardCount(n);return jsxRuntimeExports.jsxs(Root$4,{children:[t?jsxRuntimeExports.jsx(TopCardsRow,{windowSize:o,children:Array.from({length:r},(e,t)=>jsxRuntimeExports.jsx(SummaryCardSkeleton$1,{windowSize:o,children:jsxRuntimeExports.jsxs(SummaryCardLines,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"125px",height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"109px",height:sp[3]})]})},`charge-card-summary-skeleton-${t}`))}):null,jsxRuntimeExports.jsx(TableSection$
|
|
60565
|
+
`,SUMMARY_CARD_HEIGHT_PX=188,cardsMinWidth=new ResponsiveSized(343,353),CHARGE_CARD_COL_WIDTH_PCTS_ADMIN=[16,18,15,14,13,12,12],CHARGE_CARD_COL_WIDTH_PCTS_CARD_USER=[18,18,16,16,16,16],CHARGE_CARD_TABLE_SMALL_COL_PCTS=[40,30,30];function clampTopSummaryCardCount(e){const t=Math.floor(Number.isFinite(e)?e:3);return Math.min(3,Math.max(1,t))}function ChargeCardListLoading({isCardUser:e=!1,showTopSummaryCards:t=!0,topSummaryCardCount:n=3}){const o=useWindowSizeContext(),i=e?CHARGE_CARD_COL_WIDTH_PCTS_CARD_USER:CHARGE_CARD_COL_WIDTH_PCTS_ADMIN,r=clampTopSummaryCardCount(n);return jsxRuntimeExports.jsxs(Root$4,{children:[t?jsxRuntimeExports.jsx(TopCardsRow,{windowSize:o,children:Array.from({length:r},(e,t)=>jsxRuntimeExports.jsx(SummaryCardSkeleton$1,{windowSize:o,children:jsxRuntimeExports.jsxs(SummaryCardLines,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"125px",height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"109px",height:sp[3]})]})},`charge-card-summary-skeleton-${t}`))}):null,jsxRuntimeExports.jsx(TableSection$5,{windowSize:o,children:jsxRuntimeExports.jsx(ListTableSkeleton,{colPcts:i,smallColPcts:CHARGE_CARD_TABLE_SMALL_COL_PCTS})})]})}const Root$4=styled$2.div`
|
|
60566
60566
|
display: flex;
|
|
60567
60567
|
flex-direction: column;
|
|
60568
60568
|
gap: ${Space.sp3};
|
|
@@ -60603,7 +60603,7 @@ to {
|
|
|
60603
60603
|
flex-direction: column;
|
|
60604
60604
|
align-items: flex-start;
|
|
60605
60605
|
gap: ${Space.sp1};
|
|
60606
|
-
`,TableSection$
|
|
60606
|
+
`,TableSection$5=styled$2.div`
|
|
60607
60607
|
margin-left: ${e=>navBarContentContainerMargin.valuePx(e.windowSize)};
|
|
60608
60608
|
margin-right: ${e=>navBarContentContainerMargin.valuePx(e.windowSize)};
|
|
60609
60609
|
box-sizing: border-box;
|
|
@@ -62471,7 +62471,7 @@ to {
|
|
|
62471
62471
|
color: ${Colors.brandColorOnyx};
|
|
62472
62472
|
`,BannerDescription=styled$2(StandardMediumSp)`
|
|
62473
62473
|
color: ${Colors.championLight};
|
|
62474
|
-
`,TRANSACTION_TABLE_GUTTER=new ResponsiveSized(sp[3],sp[5]),dimensions$H={contentContainerPadding:new ResponsiveSized(sp[3],sp[4],sp[5],sp[5]),leftRightSectionGap:new ResponsiveSized(sp[0],54,54,57),rightSectionWidth:new ResponsiveSized(343,343,343,384),rightSectionHeight:new ResponsiveSized(214,214,214,240),bottomContentContainerPadding:TRANSACTION_TABLE_GUTTER},TRANSACTION_COL_WIDTH_PCTS=[38,14,16,21,11],TABLE_SMALL_COL_PCTS$1=[40,30,30];function ChargeCardDetailLoading(){const e=useWindowSizeContext();return jsxRuntimeExports.jsxs(Root$3,{children:[jsxRuntimeExports.jsxs(TopSection$4,{windowSize:e,children:[jsxRuntimeExports.jsx(LeftSection$5,{windowSize:e,children:jsxRuntimeExports.jsxs(CardAndOwnerContainer$1,{children:[jsxRuntimeExports.jsxs(CardBalanceSection$1,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:60,height:14}),jsxRuntimeExports.jsxs(SpentAmountRow,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:140,height:28}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:sp[12],height:14})]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"100%",height:sp[1]}),jsxRuntimeExports.jsxs(LimitRow$1,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:160,height:14}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:sp[12],height:14})]})]}),jsxRuntimeExports.jsxs(OwnerAddressSection$1,{windowSize:e,children:[jsxRuntimeExports.jsxs(OwnerHalf,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:sp[3],height:sp[3]}),jsxRuntimeExports.jsxs(OwnerLines,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:120,height:12}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:sp[12],height:12})]})]}),jsxRuntimeExports.jsxs(AddressHalf$1,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:sp[3],height:sp[3]}),jsxRuntimeExports.jsxs(OwnerLines,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:60,height:12}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:180,height:12})]})]})]})]})}),jsxRuntimeExports.jsx(RightSection$6,{windowSize:e,children:jsxRuntimeExports.jsx(CardImageSkeleton,{windowSize:e})})]}),jsxRuntimeExports.jsx(TableSection$
|
|
62474
|
+
`,TRANSACTION_TABLE_GUTTER=new ResponsiveSized(sp[3],sp[5]),dimensions$H={contentContainerPadding:new ResponsiveSized(sp[3],sp[4],sp[5],sp[5]),leftRightSectionGap:new ResponsiveSized(sp[0],54,54,57),rightSectionWidth:new ResponsiveSized(343,343,343,384),rightSectionHeight:new ResponsiveSized(214,214,214,240),bottomContentContainerPadding:TRANSACTION_TABLE_GUTTER},TRANSACTION_COL_WIDTH_PCTS=[38,14,16,21,11],TABLE_SMALL_COL_PCTS$1=[40,30,30];function ChargeCardDetailLoading(){const e=useWindowSizeContext();return jsxRuntimeExports.jsxs(Root$3,{children:[jsxRuntimeExports.jsxs(TopSection$4,{windowSize:e,children:[jsxRuntimeExports.jsx(LeftSection$5,{windowSize:e,children:jsxRuntimeExports.jsxs(CardAndOwnerContainer$1,{children:[jsxRuntimeExports.jsxs(CardBalanceSection$1,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:60,height:14}),jsxRuntimeExports.jsxs(SpentAmountRow,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:140,height:28}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:sp[12],height:14})]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"100%",height:sp[1]}),jsxRuntimeExports.jsxs(LimitRow$1,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:160,height:14}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:sp[12],height:14})]})]}),jsxRuntimeExports.jsxs(OwnerAddressSection$1,{windowSize:e,children:[jsxRuntimeExports.jsxs(OwnerHalf,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:sp[3],height:sp[3]}),jsxRuntimeExports.jsxs(OwnerLines,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:120,height:12}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:sp[12],height:12})]})]}),jsxRuntimeExports.jsxs(AddressHalf$1,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:sp[3],height:sp[3]}),jsxRuntimeExports.jsxs(OwnerLines,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:60,height:12}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:180,height:12})]})]})]})]})}),jsxRuntimeExports.jsx(RightSection$6,{windowSize:e,children:jsxRuntimeExports.jsx(CardImageSkeleton,{windowSize:e})})]}),jsxRuntimeExports.jsx(TableSection$4,{windowSize:e,children:jsxRuntimeExports.jsx(ListTableSkeleton,{colPcts:TRANSACTION_COL_WIDTH_PCTS,smallColPcts:TABLE_SMALL_COL_PCTS$1})})]})}const Root$3=styled$2.div`
|
|
62475
62475
|
display: flex;
|
|
62476
62476
|
flex-direction: column;
|
|
62477
62477
|
width: 100%;
|
|
@@ -62550,7 +62550,7 @@ to {
|
|
|
62550
62550
|
height: ${e=>dimensions$H.rightSectionHeight.valuePx(e.windowSize)};
|
|
62551
62551
|
border-radius: ${Space.sp2};
|
|
62552
62552
|
background-color: ${e=>e.theme.colors.grey3};
|
|
62553
|
-
`,TableSection$
|
|
62553
|
+
`,TableSection$4=styled$2.div`
|
|
62554
62554
|
padding-top: ${Space.sp4};
|
|
62555
62555
|
padding-left: ${e=>dimensions$H.bottomContentContainerPadding.valuePx(e.windowSize)};
|
|
62556
62556
|
padding-right: ${e=>dimensions$H.bottomContentContainerPadding.valuePx(e.windowSize)};
|
|
@@ -68740,7 +68740,7 @@ to {
|
|
|
68740
68740
|
color: ${e=>e.theme.colors.hero};
|
|
68741
68741
|
`,CreateSubtaskText=styled$2(SmallMedium)`
|
|
68742
68742
|
color: ${e=>e.theme.colors.hero};
|
|
68743
|
-
`,{common:common$19,dateFormat:dateFormat$x,taskManagement:taskManagement$3}=appLocale.getLocalizedStrings(),D$T={containerPaddingLeft:new ResponsiveSized(sp[3],sp[4]),containerPaddingRight:new ResponsiveSized(sp[3],sp[4],sp[4],sp[8]),containerPaddingTop:new ResponsiveSized(sp[2],12),containerPaddingBottom:new ResponsiveSized(sp[2],12),containerMarginLeft:new ResponsiveSized(sp[4],sp[8]),containerMarginRight:new ResponsiveSized(sp[4],sp[8]),taskNameMaxWidth:new ResponsiveSized(125,170,170,250,300)},RowContent=({taskDetail:e,tagList:t,sectionId:n,onRowClick:o,onTimeSpentUpdate:i,onShowToast:r,isZeniUser:a})=>{const s=useWindowSizeContext(),l=useTheme(),c=e.assigneeUsers.length,d=e.assigneeUsers[0]?.user,p=Boolean(d?.firstName)||Boolean(d?.lastName)?`${d.firstName} ${d.lastName}`:d?.email??common$19.strings.empty,{getValues:u,resetField:m,getFieldState:h}=useFormContext();return jsxRuntimeExports.jsxs(RowData$2,{children:[jsxRuntimeExports.jsxs(TaskNameContainer,{windowSize:s,onClick:o,responsiveWidth:taskManagementHeaderItemsData[0].width,children:[jsxRuntimeExports.jsxs(TaskName$1,{windowSize:s,children:[jsxRuntimeExports.jsx(StyledTaskName,{isIconPresent:"recurring"===e.type.code,windowSize:s,className:"taskNameText",children:e.name}),"recurring"===e.type.code?jsxRuntimeExports.jsx(Tooltip$6,{style:{padding:`12px ${Space.sp3}`},title:e.type.name,placement:"bottom",children:jsxRuntimeExports.jsx(StyledRecurringIcon,{height:Space.sp3,width:Space.sp3})}):null]}),jsxRuntimeExports.jsx(Tooltip$6,{style:{padding:`12px ${Space.sp3}`},title:e.description?.replace(EMPTY_HTML_CHECKER,"")??"",placement:"bottom-start",children:jsxRuntimeExports.jsx(TaskDescription,{windowSize:s,responsiveWidth:taskManagementHeaderItemsData[0].width,children:jsxRuntimeExports.jsx(StyledTaskDescription,{windowSize:s,className:"taskDescriptionText",children:e.description?.replace(EMPTY_HTML_CHECKER,"")??""})})})]}),jsxRuntimeExports.jsx(StatusContainer$2,{windowSize:s,responsiveWidth:taskManagementHeaderItemsData[1].width,children:getRichLabel(e.status.code,l)}),jsxRuntimeExports.jsx(StatusContainer$2,{windowSize:s,responsiveWidth:taskManagementHeaderItemsData[2].width,children:c>0?jsxRuntimeExports.jsxs(Assignee,{children:[jsxRuntimeExports.jsx(ZeniAvatar,{personBasic:d,styles:{width:Space.sp4,height:Space.sp4}}),jsxRuntimeExports.jsx(AssineeNameContainer,{children:jsxRuntimeExports.jsx(StyledAssigneeName,{children:p})}),c>1?jsxRuntimeExports.jsx(Count,{children:`${common$19.strings.plus}${c-1}`}):null]}):null}),jsxRuntimeExports.jsx(TagContainer,{windowSize:s,responsiveWidth:taskManagementHeaderItemsData[3].width,children:e.tagIds.length>0?jsxRuntimeExports.jsx(TagColumn,{children:getTagLabel(e.tagIds,t)}):null}),jsxRuntimeExports.jsx(PriorityContainer,{windowSize:s,responsiveWidth:taskManagementHeaderItemsData[4].width,children:getRichLabel(e.priority.code,l)}),jsxRuntimeExports.jsx(DateContainer,{windowSize:s,responsiveWidth:taskManagementHeaderItemsData[5].width,children:null!=e.dueDate?e.dueDate.format(dateFormat$x.visual.MMMDCommaYYYYformat):jsxRuntimeExports.jsx(HyphenText$2,{children:common$19.strings.hyphen})}),!0===a?jsxRuntimeExports.jsx(TimeSpentContainer,{windowSize:s,responsiveWidth:taskManagementHeaderItemsData[6].width,isLastColumn:!0,isDisabled:!1,children:jsxRuntimeExports.jsx(StyledTimeSpentField,{className:"timeSpentField",children:jsxRuntimeExports.jsx(TimeSpentField,{name:getTaskFieldName(n,e.id,timeSpentKey),placeholder:taskManagement$3.common.timeSpentPlaceholder,timeSpentFormat:taskManagement$3.common.timeSpentFormat,registerOptions:{validate:e=>!(clientEpicState.convertHHMMStrToMinutes(e)>MAX_MINS_ALLOWED_FOR_A_TASK)||(r({messageSection:"task_time_spent_validation",messageText:"failed",type:"error",showStatusIcon:!0}),"Error")},style:{padding:`${Space.sp0} ${Space.sp1}`,background:"unset"},onInputBlur:()=>{((t,n)=>{const o=getTaskFieldName(t,n,timeSpentKey);h(o).invalid?m(o):i(e,{timeSpent:u(o)})})(n,e.id)},inputStyle:{textAlign:"right",padding:`${Space.sp0} ${Space.sp2}`}})})}):null]})},TaskListRowSmall=({taskGroup:e,tagList:t,sectionId:n,showGroupName:o,showRenameTextField:i,isSelectionAllowed:r,isCollapsed:a,existingTaskGroupNamesByGroupId:s,onDeleteTaskGroup:l,onExpandAll:c,onCollapseAll:d,onAddNewTaskToTaskGroup:p,onCollapseToggle:u,onTaskManagementRowClick:m,onDragStart:h,onTimeSpentUpdate:g,onShowToast:x,isZeniUser:f})=>{const[y,S]=React.useState(null),C=useWindowSizeContext(),{setFocus:b}=useFormContext(),$=React.useCallback(()=>{u(e.id)},[u,e.id]),v=React.useCallback(e=>{S(e.currentTarget)},[]),E=React.useCallback(()=>{S(null)},[]),w=React.useCallback(()=>{p(e.id)},[p,e.id]),R=React.useCallback(()=>{S(null),l(e.id)},[l,e.id]),A=React.useCallback(()=>{b(`${n}.groupName`),E()},[E,n,b]);return jsxRuntimeExports.jsxs(Container$1c,{windowSize:C,children:[jsxRuntimeExports.jsx(ControlledComponent,{controller:o,children:jsxRuntimeExports.jsxs(TitleContainer$7,{children:[jsxRuntimeExports.jsxs(TitleSection$1,{children:[jsxRuntimeExports.jsx(ArrowContainer,{isOpen:!1===a,onClick:$,children:jsxRuntimeExports.jsx(StyledArrowBottom$1,{})}),jsxRuntimeExports.jsx(TextField$1,{style:{textAlign:"start",width:"100%",background:"unset",...textStyles.extraLargeMedium.cssObject},type:"text",name:`${n}.groupName`,placeholder:taskManagement$3.taskList.taskGroup.groupNamePlaceholder,registerOptions:{required:!0,validate:t=>!1===isDuplicateGroupName(t,e.id,s)},isDisabled:i&&"new_group"!==e.id||e.isDefault?"disabled":void 0})]}),jsxRuntimeExports.jsx(MoreIconContainer,{onClick:v,children:jsxRuntimeExports.jsx(StyledMoreIcon,{})}),jsxRuntimeExports.jsx(TaskGroupOptionsPopover,{onClose:E,onAddTask:w,onCollapseAll:d,onDelete:R,onExpandAll:c,onRename:A,isDefault:e.isDefault,anchorEl:y})]})}),jsxRuntimeExports.jsx(ControlledComponent,{controller:!1===a,children:jsxRuntimeExports.jsx(LabeledGroupedCheckBoxField,{mode:"checked_or_hover",isDisabled:!1===r?"disabled":void 0,checkBoxes:[...e.tasks.map(e=>({label:jsxRuntimeExports.jsx(RowContent,{taskDetail:e,onRowClick:()=>{m(e.id)},tagList:t,onTimeSpentUpdate:g,onShowToast:x,sectionId:n,isZeniUser:f}),prefix:"small"===C?null:jsxRuntimeExports.jsx(DragNDropIconContainer,{children:jsxRuntimeExports.jsx(StyledHoverIcon,{})}),value:e.id,defaultChecked:!1,groupLabel:!1}))],name:`${n}.selectedIds`,style:{width:"100%",rowGap:Space.sp3},checkBoxStyle:{padding:Space.sp3},labelCheckBoxStyle:{padding:Space.sp3},onDragStart:h,draggable:!0})})]})},Container$1c=styled$2.div`
|
|
68743
|
+
`,{common:common$19,dateFormat:dateFormat$x,taskManagement:taskManagement$3}=appLocale.getLocalizedStrings(),D$T={containerPaddingLeft:new ResponsiveSized(sp[3],sp[4]),containerPaddingRight:new ResponsiveSized(sp[3],sp[4],sp[4],sp[8]),containerPaddingTop:new ResponsiveSized(sp[2],12),containerPaddingBottom:new ResponsiveSized(sp[2],12),containerMarginLeft:new ResponsiveSized(sp[4],sp[8]),containerMarginRight:new ResponsiveSized(sp[4],sp[8]),taskNameMaxWidth:new ResponsiveSized(125,170,170,250,300)},RowContent=({taskDetail:e,tagList:t,sectionId:n,onRowClick:o,onTimeSpentUpdate:i,onShowToast:r,isZeniUser:a})=>{const s=useWindowSizeContext(),l=useTheme(),c=e.assigneeUsers.length,d=e.assigneeUsers[0]?.user,p=Boolean(d?.firstName)||Boolean(d?.lastName)?`${d.firstName} ${d.lastName}`:d?.email??common$19.strings.empty,{getValues:u,resetField:m,getFieldState:h}=useFormContext();return jsxRuntimeExports.jsxs(RowData$2,{children:[jsxRuntimeExports.jsxs(TaskNameContainer,{windowSize:s,onClick:o,responsiveWidth:taskManagementHeaderItemsData[0].width,children:[jsxRuntimeExports.jsxs(TaskName$1,{windowSize:s,children:[jsxRuntimeExports.jsx(StyledTaskName,{isIconPresent:"recurring"===e.type.code,windowSize:s,className:"taskNameText",children:e.name}),"recurring"===e.type.code?jsxRuntimeExports.jsx(Tooltip$6,{style:{padding:`12px ${Space.sp3}`},title:e.type.name,placement:"bottom",children:jsxRuntimeExports.jsx(StyledRecurringIcon,{height:Space.sp3,width:Space.sp3})}):null]}),jsxRuntimeExports.jsx(Tooltip$6,{style:{padding:`12px ${Space.sp3}`},title:e.description?.replace(EMPTY_HTML_CHECKER,"")??"",placement:"bottom-start",children:jsxRuntimeExports.jsx(TaskDescription,{windowSize:s,responsiveWidth:taskManagementHeaderItemsData[0].width,children:jsxRuntimeExports.jsx(StyledTaskDescription,{windowSize:s,className:"taskDescriptionText",children:e.description?.replace(EMPTY_HTML_CHECKER,"")??""})})})]}),jsxRuntimeExports.jsx(StatusContainer$2,{windowSize:s,responsiveWidth:taskManagementHeaderItemsData[1].width,children:getRichLabel(e.status.code,l)}),jsxRuntimeExports.jsx(StatusContainer$2,{windowSize:s,responsiveWidth:taskManagementHeaderItemsData[2].width,children:c>0?jsxRuntimeExports.jsxs(Assignee,{children:[jsxRuntimeExports.jsx(ZeniAvatar,{personBasic:d,styles:{width:Space.sp4,height:Space.sp4}}),jsxRuntimeExports.jsx(AssineeNameContainer,{children:jsxRuntimeExports.jsx(StyledAssigneeName,{children:p})}),c>1?jsxRuntimeExports.jsx(Count$1,{children:`${common$19.strings.plus}${c-1}`}):null]}):null}),jsxRuntimeExports.jsx(TagContainer,{windowSize:s,responsiveWidth:taskManagementHeaderItemsData[3].width,children:e.tagIds.length>0?jsxRuntimeExports.jsx(TagColumn,{children:getTagLabel(e.tagIds,t)}):null}),jsxRuntimeExports.jsx(PriorityContainer,{windowSize:s,responsiveWidth:taskManagementHeaderItemsData[4].width,children:getRichLabel(e.priority.code,l)}),jsxRuntimeExports.jsx(DateContainer,{windowSize:s,responsiveWidth:taskManagementHeaderItemsData[5].width,children:null!=e.dueDate?e.dueDate.format(dateFormat$x.visual.MMMDCommaYYYYformat):jsxRuntimeExports.jsx(HyphenText$2,{children:common$19.strings.hyphen})}),!0===a?jsxRuntimeExports.jsx(TimeSpentContainer,{windowSize:s,responsiveWidth:taskManagementHeaderItemsData[6].width,isLastColumn:!0,isDisabled:!1,children:jsxRuntimeExports.jsx(StyledTimeSpentField,{className:"timeSpentField",children:jsxRuntimeExports.jsx(TimeSpentField,{name:getTaskFieldName(n,e.id,timeSpentKey),placeholder:taskManagement$3.common.timeSpentPlaceholder,timeSpentFormat:taskManagement$3.common.timeSpentFormat,registerOptions:{validate:e=>!(clientEpicState.convertHHMMStrToMinutes(e)>MAX_MINS_ALLOWED_FOR_A_TASK)||(r({messageSection:"task_time_spent_validation",messageText:"failed",type:"error",showStatusIcon:!0}),"Error")},style:{padding:`${Space.sp0} ${Space.sp1}`,background:"unset"},onInputBlur:()=>{((t,n)=>{const o=getTaskFieldName(t,n,timeSpentKey);h(o).invalid?m(o):i(e,{timeSpent:u(o)})})(n,e.id)},inputStyle:{textAlign:"right",padding:`${Space.sp0} ${Space.sp2}`}})})}):null]})},TaskListRowSmall=({taskGroup:e,tagList:t,sectionId:n,showGroupName:o,showRenameTextField:i,isSelectionAllowed:r,isCollapsed:a,existingTaskGroupNamesByGroupId:s,onDeleteTaskGroup:l,onExpandAll:c,onCollapseAll:d,onAddNewTaskToTaskGroup:p,onCollapseToggle:u,onTaskManagementRowClick:m,onDragStart:h,onTimeSpentUpdate:g,onShowToast:x,isZeniUser:f})=>{const[y,S]=React.useState(null),C=useWindowSizeContext(),{setFocus:b}=useFormContext(),$=React.useCallback(()=>{u(e.id)},[u,e.id]),v=React.useCallback(e=>{S(e.currentTarget)},[]),E=React.useCallback(()=>{S(null)},[]),w=React.useCallback(()=>{p(e.id)},[p,e.id]),R=React.useCallback(()=>{S(null),l(e.id)},[l,e.id]),A=React.useCallback(()=>{b(`${n}.groupName`),E()},[E,n,b]);return jsxRuntimeExports.jsxs(Container$1c,{windowSize:C,children:[jsxRuntimeExports.jsx(ControlledComponent,{controller:o,children:jsxRuntimeExports.jsxs(TitleContainer$7,{children:[jsxRuntimeExports.jsxs(TitleSection$1,{children:[jsxRuntimeExports.jsx(ArrowContainer,{isOpen:!1===a,onClick:$,children:jsxRuntimeExports.jsx(StyledArrowBottom$1,{})}),jsxRuntimeExports.jsx(TextField$1,{style:{textAlign:"start",width:"100%",background:"unset",...textStyles.extraLargeMedium.cssObject},type:"text",name:`${n}.groupName`,placeholder:taskManagement$3.taskList.taskGroup.groupNamePlaceholder,registerOptions:{required:!0,validate:t=>!1===isDuplicateGroupName(t,e.id,s)},isDisabled:i&&"new_group"!==e.id||e.isDefault?"disabled":void 0})]}),jsxRuntimeExports.jsx(MoreIconContainer,{onClick:v,children:jsxRuntimeExports.jsx(StyledMoreIcon,{})}),jsxRuntimeExports.jsx(TaskGroupOptionsPopover,{onClose:E,onAddTask:w,onCollapseAll:d,onDelete:R,onExpandAll:c,onRename:A,isDefault:e.isDefault,anchorEl:y})]})}),jsxRuntimeExports.jsx(ControlledComponent,{controller:!1===a,children:jsxRuntimeExports.jsx(LabeledGroupedCheckBoxField,{mode:"checked_or_hover",isDisabled:!1===r?"disabled":void 0,checkBoxes:[...e.tasks.map(e=>({label:jsxRuntimeExports.jsx(RowContent,{taskDetail:e,onRowClick:()=>{m(e.id)},tagList:t,onTimeSpentUpdate:g,onShowToast:x,sectionId:n,isZeniUser:f}),prefix:"small"===C?null:jsxRuntimeExports.jsx(DragNDropIconContainer,{children:jsxRuntimeExports.jsx(StyledHoverIcon,{})}),value:e.id,defaultChecked:!1,groupLabel:!1}))],name:`${n}.selectedIds`,style:{width:"100%",rowGap:Space.sp3},checkBoxStyle:{padding:Space.sp3},labelCheckBoxStyle:{padding:Space.sp3},onDragStart:h,draggable:!0})})]})},Container$1c=styled$2.div`
|
|
68744
68744
|
box-sizing: border-box;
|
|
68745
68745
|
display: flex;
|
|
68746
68746
|
flex-direction: column;
|
|
@@ -68768,7 +68768,7 @@ to {
|
|
|
68768
68768
|
flex-direction: row;
|
|
68769
68769
|
align-items: center;
|
|
68770
68770
|
color: ${e=>e.theme.colors.hero};
|
|
68771
|
-
`,Count=styled$2(ExtraSmallRegular)`
|
|
68771
|
+
`,Count$1=styled$2(ExtraSmallRegular)`
|
|
68772
68772
|
border: 1px solid ${e=>e.theme.colors.hero};
|
|
68773
68773
|
width: calc(${Space.sp3} + ${Space.sp1});
|
|
68774
68774
|
height: calc(${Space.sp3} + ${Space.sp1});
|
|
@@ -71207,7 +71207,7 @@ to {
|
|
|
71207
71207
|
color: ${e=>e.theme.colors.champion};
|
|
71208
71208
|
width: ${Space.sp3};
|
|
71209
71209
|
height: ${Space.sp3};
|
|
71210
|
-
`,INVITE_COL_PCTS=[40,30,30],INVITE_SMALL_COL_PCTS=[50,50],ROW_COUNT$1=3;function InvitePageListLoading(){const e="small"===useWindowSizeContext();return jsxRuntimeExports.jsxs(Root$1,{children:[e?jsxRuntimeExports.jsxs(MobileCardsContainer,{children:[jsxRuntimeExports.jsxs(SummaryCardSkeleton,{children:[jsxRuntimeExports.jsxs(SkeletonLines,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"60%",height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"40%",height:sp[5]})]}),jsxRuntimeExports.jsxs(SkeletonLines,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"60%",height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"40%",height:sp[5]})]})]}),jsxRuntimeExports.jsx(ButtonSkeleton,{children:jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"100%",height:sp[7]})})]}):jsxRuntimeExports.jsxs(DesktopCardsRow,{children:[jsxRuntimeExports.jsxs(SummaryCardSkeletonDesktop,{children:[jsxRuntimeExports.jsxs(SkeletonLines,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"125px",height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"109px",height:sp[3]})]}),jsxRuntimeExports.jsxs(SkeletonLines,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"180px",height:sp[5]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"140px",height:sp[5]})]})]}),jsxRuntimeExports.jsx(SummaryCardSkeletonDesktop,{children:jsxRuntimeExports.jsxs(SkeletonLines,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"160px",height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:Space.sp12,height:sp[3]})]})})]}),jsxRuntimeExports.jsxs(TableSection$
|
|
71210
|
+
`,INVITE_COL_PCTS=[40,30,30],INVITE_SMALL_COL_PCTS=[50,50],ROW_COUNT$1=3;function InvitePageListLoading(){const e="small"===useWindowSizeContext();return jsxRuntimeExports.jsxs(Root$1,{children:[e?jsxRuntimeExports.jsxs(MobileCardsContainer,{children:[jsxRuntimeExports.jsxs(SummaryCardSkeleton,{children:[jsxRuntimeExports.jsxs(SkeletonLines,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"60%",height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"40%",height:sp[5]})]}),jsxRuntimeExports.jsxs(SkeletonLines,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"60%",height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"40%",height:sp[5]})]})]}),jsxRuntimeExports.jsx(ButtonSkeleton,{children:jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"100%",height:sp[7]})})]}):jsxRuntimeExports.jsxs(DesktopCardsRow,{children:[jsxRuntimeExports.jsxs(SummaryCardSkeletonDesktop,{children:[jsxRuntimeExports.jsxs(SkeletonLines,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"125px",height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"109px",height:sp[3]})]}),jsxRuntimeExports.jsxs(SkeletonLines,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"180px",height:sp[5]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"140px",height:sp[5]})]})]}),jsxRuntimeExports.jsx(SummaryCardSkeletonDesktop,{children:jsxRuntimeExports.jsxs(SkeletonLines,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"160px",height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:Space.sp12,height:sp[3]})]})})]}),jsxRuntimeExports.jsxs(TableSection$3,{isSmall:e,children:[jsxRuntimeExports.jsx(TitleSkeleton,{children:jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"140px",height:sp[4]})}),jsxRuntimeExports.jsx(ListTableSkeleton,{colPcts:INVITE_COL_PCTS,smallColPcts:INVITE_SMALL_COL_PCTS,rowCount:ROW_COUNT$1})]})]})}const Root$1=styled$2.div`
|
|
71211
71211
|
display: flex;
|
|
71212
71212
|
flex-direction: column;
|
|
71213
71213
|
width: 100%;
|
|
@@ -71251,7 +71251,7 @@ to {
|
|
|
71251
71251
|
flex-direction: column;
|
|
71252
71252
|
align-items: flex-start;
|
|
71253
71253
|
gap: ${Space.sp2};
|
|
71254
|
-
`,TableSection$
|
|
71254
|
+
`,TableSection$3=styled$2.div`
|
|
71255
71255
|
padding-left: ${e=>e.isSmall?Space.sp3:Space.sp5};
|
|
71256
71256
|
padding-right: ${e=>e.isSmall?Space.sp3:Space.sp5};
|
|
71257
71257
|
box-sizing: border-box;
|
|
@@ -73359,7 +73359,7 @@ to {
|
|
|
73359
73359
|
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
73360
73360
|
`,TileSubtitle$3=styled$2(SmallMedium)`
|
|
73361
73361
|
color: ${e=>e.theme.colors.champion};
|
|
73362
|
-
`;function TableSection$
|
|
73362
|
+
`;function TableSection$2({icon:e,title:t,data:n,currency:o}){return jsxRuntimeExports.jsxs(TableContainer$5,{children:[jsxRuntimeExports.jsxs(HeaderSection,{children:[jsxRuntimeExports.jsx(IconCircle,{children:e}),jsxRuntimeExports.jsx(TitleRow$4,{children:jsxRuntimeExports.jsx(StyledTitle,{children:t})})]}),jsxRuntimeExports.jsx(AIPerformanceTableHeaderRow,{}),n.map(e=>jsxRuntimeExports.jsx(AIPerformanceRow,{taskName:e.eventName,taskCount:e.eventsCount,timeSavedMinutes:e.timeSavedInMinutes,costSaved:e.totalCostSaved,currency:o},e.eventName))]})}const getPersonaIcon=e=>{switch(e){case aiPerformanceDashboard$4.personas.personaTypes.aiBookkeeper:return jsxRuntimeExports.jsx(StyledAccountantAgentIcon,{});case aiPerformanceDashboard$4.personas.personaTypes.aiCardsAgent:return jsxRuntimeExports.jsx(StyledCardsIcon$2,{});case aiPerformanceDashboard$4.personas.personaTypes.aiBillsAgent:return jsxRuntimeExports.jsx(StyledBillsIcon,{});case aiPerformanceDashboard$4.personas.personaTypes.aiExpensesAgent:return jsxRuntimeExports.jsx(StyledExpenseAgentIcon,{});case aiPerformanceDashboard$4.personas.personaTypes.aiBankingAgent:return jsxRuntimeExports.jsx(StyledBankingIcon,{});case aiPerformanceDashboard$4.personas.personaTypes.accountant:return jsxRuntimeExports.jsx(StyledAccountantAgentIcon,{});case aiPerformanceDashboard$4.personas.personaTypes.aiCfo:return jsxRuntimeExports.jsx(StyledCFOIcon,{});default:return jsxRuntimeExports.jsx(StyledAccountantAgentIcon,{})}};function AIAgentPerformanceTile({personas:e,currency:t}){return jsxRuntimeExports.jsxs(TileContainer$2,{children:[jsxRuntimeExports.jsxs(TileHeader$1,{children:[jsxRuntimeExports.jsx(TileTitle$3,{children:aiPerformanceDashboard$4.tileTitle}),jsxRuntimeExports.jsx(TileSubtitle$3,{children:aiPerformanceDashboard$4.tileSubtitle})]}),e.map(e=>jsxRuntimeExports.jsx(TableSection$2,{icon:getPersonaIcon(e.personaType),title:e.personaName,data:e.eventGroups,currency:t},e.personaName))]})}const{common:common$U,aiPerformanceDashboard:{aiCostSavedTile:aiCostSavedTile,aiTimeSavedTile:aiTimeSavedTile}}=appLocale.getLocalizedStrings(),TileContainer$1=styled$2.div`
|
|
73363
73363
|
display: flex;
|
|
73364
73364
|
flex-direction: column;
|
|
73365
73365
|
justify-content: space-between;
|
|
@@ -77809,12 +77809,12 @@ to {
|
|
|
77809
77809
|
align-items: center;
|
|
77810
77810
|
gap: ${Space.sp3};
|
|
77811
77811
|
justify-content: flex-start;
|
|
77812
|
-
`,RECONCILE_TABLE_ROW_HEIGHT=sp[7],RECONCILE_TABLE_HEADER_HEIGHT_PX=sp[5],CHECKBOX_AREA_WIDTH=sp[5],strings$w=appLocale.getLocalizedStrings(),{common:{strings:{empty:empty$7}}}=strings$w,expenseAutomationBankReconReconcilePage="expenseAutomationBankReconReconcilePage",uniqueFormName$4=e=>`${e}_form`,HeaderContext$1=React.createContext(null);function renderTableHeader$1(e){const{columns:t,sortState:n,onHeaderClick:o,isAllSelected:i,isIndeterminate:r,onToggleAll:a}=e;return jsxRuntimeExports.jsxs(HeaderRowOuter,{children:[jsxRuntimeExports.jsx(CheckboxArea,{children:jsxRuntimeExports.jsx(StyledCheckBox$1,{name:"reconcileSelectAll",checkBoxValue:"selectAll",value:i||r,onChange:a})}),jsxRuntimeExports.jsx(TableHeader$3,{children:t.map(e=>{const t=n.columnKey===e.sortKey;return jsxRuntimeExports.jsx(HeaderCell$6,{$flex:e.width,children:jsxRuntimeExports.jsx(HeaderCellBody$2,{children:jsxRuntimeExports.jsxs(SortButton$2,{type:"button",$active:t,onClick:()=>o(e),children:[e.value,jsxRuntimeExports.jsx(SortIndicatorIcon$3,{$direction:t?n.direction:"asc",children:jsxRuntimeExports.jsx(SvgArrowTailTop,{width:8,height:8})})]})})},e.key)})})]})}const InnerElement$1=React.forwardRef(({children:e,style:t,...n},o)=>{const i=React.useContext(HeaderContext$1);if(null==i)return null;const r={...t,overflow:"visible",height:`${Number.parseFloat(String(t?.height??0))+RECONCILE_TABLE_HEADER_HEIGHT_PX}px`};return jsxRuntimeExports.jsxs(ListInner$1,{ref:o,style:r,...n,children:[renderTableHeader$1(i),jsxRuntimeExports.jsx(ChildWrapper$1,{children:e})]})});InnerElement$1.displayName="InnerElement";const RowRenderer$1=({index:e,style:t,data:n})=>{const o=n.data[e],{columns:i,reconciliationAccountId:r,selectedIds:a,totalCount:s,onToggleRow:l}=n,c=a.has(o.id),d=e===s-1,{width:p,...u}=t,m=useExpenseAutomationRowCommenting({transactionId:o.id,rowEntityType:"expense_automation.transaction.row",groupId:r}),{isCommentingActive:h,rowRef:g,totalThreadCount:x,isThreadsLoading:f,handleActiveThreadClick:y,handleAddRowCommentClick:S}=m;return jsxRuntimeExports.jsxs(DataRowOuter$1,{ref:g,style:u,children:[h&&x>0?jsxRuntimeExports.jsx(RowCommentSlot,{flushRight:!0,children:jsxRuntimeExports.jsx(ActiveThreadCount,{isLoading:f,count:x,style:{cursor:"pointer"},openThread:y})}):null,h&&!1===f&&0===x?jsxRuntimeExports.jsx(RowCommentSlot,{flushRight:!0,innerClassName:"comment-add-icon",children:jsxRuntimeExports.jsx(StyledAddThreadsIcon$1,{"data-testid":`account-reconciliation-reconcile-row-add-comment-${o.id}`,onClick:S})}):null,jsxRuntimeExports.jsx(ExpenseAutomationRowThreadPortals,{state:m}),jsxRuntimeExports.jsx(CheckboxArea,{children:jsxRuntimeExports.jsx(StyledCheckBox$1,{name:`reconcileRow.${o.id}`,checkBoxValue:String(o.id),value:c,onChange:()=>l(o.id)})}),jsxRuntimeExports.jsx(DataRow$4,{$isChecked:c,$isLast:d,children:i.map(e=>jsxRuntimeExports.jsx(DataCell$3,{$flex:e.width,children:jsxRuntimeExports.jsx(ReconcileTabTransactionRow,{columnKey:e.key,transaction:o})},e.key))})]},o.id)};function ReconcileTab({currentFooterFormId:e,localData:t,matchedTransactions:n,sortConfig:o,onSaveReconciliation:i,selectedAccountId:r,onReconTabColumnSortConfigChanged:a,onUpdateReconcileTabLocalData:s,setCurrentFooterFormId:l}){const c=useForm({mode:"all",defaultValues:{selectedTransactionIds:t.selectedTransactionIds},values:{selectedTransactionIds:t.selectedTransactionIds}}),d=React.useMemo(()=>new Set(t.selectedTransactionIds),[t.selectedTransactionIds]),p=React.useMemo(()=>n.map(e=>getStableTransactionId(e.id)),[n]);useExpenseAutomationTabEntityIdRegistration("reconciliation.reconcile",p);const u=n.length>0&&t.selectedTransactionIds.length===n.length,m=t.selectedTransactionIds.length>0&&t.selectedTransactionIds.length<n.length,h=React.useMemo(()=>({columnKey:o.sortKey,direction:"ascending"===o.sortOrder?"asc":"desc"}),[o.sortKey,o.sortOrder]),g=React.useCallback(e=>{if(!e.sortable)return;const t=o.sortKey===e.sortKey&&"ascending"===o.sortOrder?"descending":"ascending";a(e.sortKey,t)},[o,a]),x=React.useCallback(e=>{const n=t.selectedTransactionIds,o=n.includes(e)?n.filter(t=>t!==e):[...n,e];s(o)},[t.selectedTransactionIds,s]),f=React.useCallback(()=>{s(u?[]:n.map(e=>e.id))},[u,n,s]);React.useEffect(()=>("expenseAutomationBankReconReconcilePage"!==e&&l("expenseAutomationBankReconReconcilePage"),()=>{l("expenseAutomationPage")}),[]);const y=React.useCallback(()=>{i({reconcileAction:"reconcile"})},[i]),S=reconcileTabColumns,C=React.useMemo(()=>({columns:S,data:n,reconciliationAccountId:r,selectedIds:d,totalCount:n.length,onToggleRow:x}),[S,n,r,d,x]),b=React.useMemo(()=>({columns:S,sortState:h,onHeaderClick:g,isAllSelected:u,isIndeterminate:m,onToggleAll:f}),[S,h,g,u,m,f]);if(0===n.length){const e=getNavBarHeaderData("reconciliation",void 0,r).tabs.find(e=>"reconcile"===e.id)?.allDoneText;return jsxRuntimeExports.jsx(EmptyContainer,{children:jsxRuntimeExports.jsx(EmptyTableSection,{tab:"missing_receipts",title:e?.title??empty$7,subTitle:e?.subTitle??empty$7})})}return jsxRuntimeExports.jsx(ListPageWrapper,{children:jsxRuntimeExports.jsx(FormProvider,{...c,children:jsxRuntimeExports.jsx(FormStyled,{onSubmit:c.handleSubmit(y),id:uniqueFormName$4(expenseAutomationBankReconReconcilePage),children:jsxRuntimeExports.jsx(TableSection$
|
|
77812
|
+
`,RECONCILE_TABLE_ROW_HEIGHT=sp[7],RECONCILE_TABLE_HEADER_HEIGHT_PX=sp[5],CHECKBOX_AREA_WIDTH=sp[5],strings$w=appLocale.getLocalizedStrings(),{common:{strings:{empty:empty$7}}}=strings$w,expenseAutomationBankReconReconcilePage="expenseAutomationBankReconReconcilePage",uniqueFormName$4=e=>`${e}_form`,HeaderContext$1=React.createContext(null);function renderTableHeader$1(e){const{columns:t,sortState:n,onHeaderClick:o,isAllSelected:i,isIndeterminate:r,onToggleAll:a}=e;return jsxRuntimeExports.jsxs(HeaderRowOuter,{children:[jsxRuntimeExports.jsx(CheckboxArea,{children:jsxRuntimeExports.jsx(StyledCheckBox$1,{name:"reconcileSelectAll",checkBoxValue:"selectAll",value:i||r,onChange:a})}),jsxRuntimeExports.jsx(TableHeader$3,{children:t.map(e=>{const t=n.columnKey===e.sortKey;return jsxRuntimeExports.jsx(HeaderCell$6,{$flex:e.width,children:jsxRuntimeExports.jsx(HeaderCellBody$2,{children:jsxRuntimeExports.jsxs(SortButton$2,{type:"button",$active:t,onClick:()=>o(e),children:[e.value,jsxRuntimeExports.jsx(SortIndicatorIcon$3,{$direction:t?n.direction:"asc",children:jsxRuntimeExports.jsx(SvgArrowTailTop,{width:8,height:8})})]})})},e.key)})})]})}const InnerElement$1=React.forwardRef(({children:e,style:t,...n},o)=>{const i=React.useContext(HeaderContext$1);if(null==i)return null;const r={...t,overflow:"visible",height:`${Number.parseFloat(String(t?.height??0))+RECONCILE_TABLE_HEADER_HEIGHT_PX}px`};return jsxRuntimeExports.jsxs(ListInner$1,{ref:o,style:r,...n,children:[renderTableHeader$1(i),jsxRuntimeExports.jsx(ChildWrapper$1,{children:e})]})});InnerElement$1.displayName="InnerElement";const RowRenderer$1=({index:e,style:t,data:n})=>{const o=n.data[e],{columns:i,reconciliationAccountId:r,selectedIds:a,totalCount:s,onToggleRow:l}=n,c=a.has(o.id),d=e===s-1,{width:p,...u}=t,m=useExpenseAutomationRowCommenting({transactionId:o.id,rowEntityType:"expense_automation.transaction.row",groupId:r}),{isCommentingActive:h,rowRef:g,totalThreadCount:x,isThreadsLoading:f,handleActiveThreadClick:y,handleAddRowCommentClick:S}=m;return jsxRuntimeExports.jsxs(DataRowOuter$1,{ref:g,style:u,children:[h&&x>0?jsxRuntimeExports.jsx(RowCommentSlot,{flushRight:!0,children:jsxRuntimeExports.jsx(ActiveThreadCount,{isLoading:f,count:x,style:{cursor:"pointer"},openThread:y})}):null,h&&!1===f&&0===x?jsxRuntimeExports.jsx(RowCommentSlot,{flushRight:!0,innerClassName:"comment-add-icon",children:jsxRuntimeExports.jsx(StyledAddThreadsIcon$1,{"data-testid":`account-reconciliation-reconcile-row-add-comment-${o.id}`,onClick:S})}):null,jsxRuntimeExports.jsx(ExpenseAutomationRowThreadPortals,{state:m}),jsxRuntimeExports.jsx(CheckboxArea,{children:jsxRuntimeExports.jsx(StyledCheckBox$1,{name:`reconcileRow.${o.id}`,checkBoxValue:String(o.id),value:c,onChange:()=>l(o.id)})}),jsxRuntimeExports.jsx(DataRow$4,{$isChecked:c,$isLast:d,children:i.map(e=>jsxRuntimeExports.jsx(DataCell$3,{$flex:e.width,children:jsxRuntimeExports.jsx(ReconcileTabTransactionRow,{columnKey:e.key,transaction:o})},e.key))})]},o.id)};function ReconcileTab({currentFooterFormId:e,localData:t,matchedTransactions:n,sortConfig:o,onSaveReconciliation:i,selectedAccountId:r,onReconTabColumnSortConfigChanged:a,onUpdateReconcileTabLocalData:s,setCurrentFooterFormId:l}){const c=useForm({mode:"all",defaultValues:{selectedTransactionIds:t.selectedTransactionIds},values:{selectedTransactionIds:t.selectedTransactionIds}}),d=React.useMemo(()=>new Set(t.selectedTransactionIds),[t.selectedTransactionIds]),p=React.useMemo(()=>n.map(e=>getStableTransactionId(e.id)),[n]);useExpenseAutomationTabEntityIdRegistration("reconciliation.reconcile",p);const u=n.length>0&&t.selectedTransactionIds.length===n.length,m=t.selectedTransactionIds.length>0&&t.selectedTransactionIds.length<n.length,h=React.useMemo(()=>({columnKey:o.sortKey,direction:"ascending"===o.sortOrder?"asc":"desc"}),[o.sortKey,o.sortOrder]),g=React.useCallback(e=>{if(!e.sortable)return;const t=o.sortKey===e.sortKey&&"ascending"===o.sortOrder?"descending":"ascending";a(e.sortKey,t)},[o,a]),x=React.useCallback(e=>{const n=t.selectedTransactionIds,o=n.includes(e)?n.filter(t=>t!==e):[...n,e];s(o)},[t.selectedTransactionIds,s]),f=React.useCallback(()=>{s(u?[]:n.map(e=>e.id))},[u,n,s]);React.useEffect(()=>("expenseAutomationBankReconReconcilePage"!==e&&l("expenseAutomationBankReconReconcilePage"),()=>{l("expenseAutomationPage")}),[]);const y=React.useCallback(()=>{i({reconcileAction:"reconcile"})},[i]),S=reconcileTabColumns,C=React.useMemo(()=>({columns:S,data:n,reconciliationAccountId:r,selectedIds:d,totalCount:n.length,onToggleRow:x}),[S,n,r,d,x]),b=React.useMemo(()=>({columns:S,sortState:h,onHeaderClick:g,isAllSelected:u,isIndeterminate:m,onToggleAll:f}),[S,h,g,u,m,f]);if(0===n.length){const e=getNavBarHeaderData("reconciliation",void 0,r).tabs.find(e=>"reconcile"===e.id)?.allDoneText;return jsxRuntimeExports.jsx(EmptyContainer,{children:jsxRuntimeExports.jsx(EmptyTableSection,{tab:"missing_receipts",title:e?.title??empty$7,subTitle:e?.subTitle??empty$7})})}return jsxRuntimeExports.jsx(ListPageWrapper,{children:jsxRuntimeExports.jsx(FormProvider,{...c,children:jsxRuntimeExports.jsx(FormStyled,{onSubmit:c.handleSubmit(y),id:uniqueFormName$4(expenseAutomationBankReconReconcilePage),children:jsxRuntimeExports.jsx(TableSection$1,{children:jsxRuntimeExports.jsx(HeaderContext$1.Provider,{value:b,children:jsxRuntimeExports.jsx(AutoSizer,{children:({height:e,width:t})=>jsxRuntimeExports.jsx(FixedSizeList,{height:e,width:t,itemCount:n.length,itemSize:RECONCILE_TABLE_ROW_HEIGHT,itemKey:e=>n[e].id,innerElementType:InnerElement$1,itemData:C,overscanCount:5,style:{willChange:"auto"},children:RowRenderer$1})})})})})})})}const ListPageWrapper=styled$2.div`
|
|
77813
77813
|
width: 100%;
|
|
77814
77814
|
height: 100%;
|
|
77815
77815
|
`,FormStyled=styled$2.form`
|
|
77816
77816
|
height: 100%;
|
|
77817
|
-
`,TableSection$
|
|
77817
|
+
`,TableSection$1=styled$2.div`
|
|
77818
77818
|
height: 100%;
|
|
77819
77819
|
|
|
77820
77820
|
& > div,
|
|
@@ -78716,14 +78716,15 @@ to {
|
|
|
78716
78716
|
min-width: 0;
|
|
78717
78717
|
min-height: 16px;
|
|
78718
78718
|
overflow-wrap: anywhere;
|
|
78719
|
-
`;function JEGroupSectionHeader({title:e,count:t,isCollapsed:n,onToggle:o,subtitle:i}){return jsxRuntimeExports.jsxs(Header$5,{type:"button",onClick:o,children:[jsxRuntimeExports.jsxs(TitleGroup,{children:[jsxRuntimeExports.jsx(ChevronIcon,{$collapsed:n,width:sp[3],height:sp[3]}),jsxRuntimeExports.jsx(StandardSemiBold,{children:e}),jsxRuntimeExports.jsx(
|
|
78720
|
-
height:
|
|
78719
|
+
`;function JEGroupSectionHeader({title:e,count:t,isCollapsed:n,onToggle:o,subtitle:i}){return jsxRuntimeExports.jsxs(Header$5,{type:"button",onClick:o,children:[jsxRuntimeExports.jsxs(TitleGroup,{children:[jsxRuntimeExports.jsx(ChevronIcon,{$collapsed:n,width:sp[3],height:sp[3]}),jsxRuntimeExports.jsx(StandardSemiBold,{children:e}),jsxRuntimeExports.jsx(Count,{children:t})]}),null!=i&&""!==i&&jsxRuntimeExports.jsx(Subtitle$1,{children:i})]})}const Header$5=styled$2.button`
|
|
78720
|
+
height: ${Space.sp6};
|
|
78721
|
+
flex-shrink: 0;
|
|
78721
78722
|
box-sizing: border-box;
|
|
78722
78723
|
display: flex;
|
|
78723
78724
|
flex-direction: row;
|
|
78724
78725
|
justify-content: space-between;
|
|
78725
78726
|
align-items: center;
|
|
78726
|
-
padding: ${Space.
|
|
78727
|
+
padding: ${Space.sp0} ${Space.sp4};
|
|
78727
78728
|
background: none;
|
|
78728
78729
|
border: none;
|
|
78729
78730
|
border-bottom: 1px solid ${e=>e.theme.colors.grey2};
|
|
@@ -78749,18 +78750,8 @@ to {
|
|
|
78749
78750
|
transform: rotate(${e=>e.$collapsed?"-90deg":"0deg"});
|
|
78750
78751
|
transition: transform 150ms ease;
|
|
78751
78752
|
color: ${e=>e.theme.colors.hero};
|
|
78752
|
-
`,
|
|
78753
|
-
|
|
78754
|
-
align-items: center;
|
|
78755
|
-
justify-content: center;
|
|
78756
|
-
/* A circle, not the opal pill: equal sides and a neutral border, per the design. */
|
|
78757
|
-
box-sizing: border-box;
|
|
78758
|
-
width: ${Space.sp4};
|
|
78759
|
-
height: ${Space.sp4};
|
|
78760
|
-
border-radius: 50%;
|
|
78761
|
-
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
78762
|
-
background: ${e=>e.theme.colors.grey5};
|
|
78763
|
-
color: ${e=>e.theme.colors.champion};
|
|
78753
|
+
`,Count=styled$2(StandardMedium)`
|
|
78754
|
+
color: ${e=>e.theme.colors.hero};
|
|
78764
78755
|
`,{common:{strings:{hyphen:hyphen$j},settings:{integrations:{connectorTooltips:{accountantSectionLabel:accountantSectionLabel$3}}}}}=appLocale.getLocalizedStrings(),JEScheduleCreatedBy=({cotData:e,displayName:t,isAiAccountant:n,photoUrl:o})=>{if(n)return jsxRuntimeExports.jsxs(CreatedByCell,{children:[null!=e?jsxRuntimeExports.jsx(Tooltip$6,{variant:"chain-of-thought",data:e,placement:"bottom-start",display:"flex",leaveDelay:200,children:jsxRuntimeExports.jsx(StyledAiIcon$4,{"data-testid":generateDataTestId("je-schedule-created-by-cot")})}):jsxRuntimeExports.jsx(StyledAiIcon$4,{}),jsxRuntimeExports.jsx(TruncatedText$5,{children:accountantSectionLabel$3})]});const i=null!=t&&""!==t;return jsxRuntimeExports.jsxs(CreatedByCell,{children:[i&&(null!=o&&""!==o?jsxRuntimeExports.jsx(EntityLogoAvatar,{photoUrl:o,styles:{width:sp[3],height:sp[3]}}):jsxRuntimeExports.jsx(EntityAvatar,{name:t})),jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:i?t:"",children:jsxRuntimeExports.jsx(TruncatedText$5,{children:i?t:hyphen$j})})]})},CreatedByCell=styled$2.div`
|
|
78765
78756
|
display: flex;
|
|
78766
78757
|
align-items: center;
|
|
@@ -79664,63 +79655,41 @@ to {
|
|
|
79664
79655
|
display: flex;
|
|
79665
79656
|
padding: ${e=>e.$padding};
|
|
79666
79657
|
box-sizing: border-box;
|
|
79667
|
-
`;function buildJEScheduleListItems(e){
|
|
79668
|
-
display: grid;
|
|
79669
|
-
grid-template-columns: ${e=>e.$gridTemplateColumns};
|
|
79670
|
-
align-items: stretch;
|
|
79671
|
-
min-height: ${ESTIMATED_ROW_HEIGHT}px;
|
|
79672
|
-
width: 100%;
|
|
79673
|
-
box-sizing: border-box;
|
|
79674
|
-
`,GroupRowContent=styled$2.div`
|
|
79675
|
-
grid-column: 1 / -1;
|
|
79676
|
-
display: flex;
|
|
79677
|
-
align-items: stretch;
|
|
79678
|
-
min-width: 0;
|
|
79679
|
-
`,GroupSection=styled$2.div`
|
|
79658
|
+
`;function buildJEScheduleListItems(e){return!0===e.groupRow?.isCollapsed?[]:e.data.map(t=>({groupKey:e.groupKey,isPendingReview:e.isPendingReview,row:t}))}function getJEScheduleListItemKey(e){return`${e.groupKey}-${getJEScheduleRowInstanceKey(e.row)}`}const{common:{texts:{highFive:highFive$1,allSchedulesReviewed:allSchedulesReviewed$1}}}=appLocale.getLocalizedStrings(),HEADER_HEIGHT_PX=sp[5];function alignToJustify(e){return"end"===e?"flex-end":"center"===e?"center":"flex-start"}function buildGridTemplateColumns(e){return e.map(e=>!0===e.stickyRight||!0===e.fixedWidth?`${e.width}px`:`minmax(${e.width}px, 1fr)`).join(" ")}function renderTableHeader(e,t,n,o){return jsxRuntimeExports.jsx(TableHeader$1,{$gridTemplateColumns:o,children:e.map(e=>{const o=t.columnKey===e.key;return jsxRuntimeExports.jsx(HeaderCell$3,{$width:e.width,$padding:e.headerPadding,$justify:alignToJustify(e.align),$hasLeftBorder:"action"===e.key,$stickyRight:!0===e.stickyRight,children:jsxRuntimeExports.jsx(HeaderCellBody,{$justify:alignToJustify(e.align),children:e.sortable?jsxRuntimeExports.jsxs(SortButton,{type:"button",$active:o,onClick:()=>n(e),children:[e.value,jsxRuntimeExports.jsx(SortIndicatorIcon,{$direction:o?t.direction:"asc",children:jsxRuntimeExports.jsx(SvgArrowTailTop,{width:8,height:8})})]}):e.value})},e.key)})})}const HeaderContext=React.createContext(null),InnerElement=React.forwardRef(({children:e,style:t,...n},o)=>{const i=React.useContext(HeaderContext);if(null==i)return null;const{activeHeaderItems:r,sortState:a,onHeaderClick:s,gridTemplateColumns:l}=i,c={...t,overflow:"visible",height:`${parseFloat(String(t?.height??0))+HEADER_HEIGHT_PX}px`};return jsxRuntimeExports.jsxs(ListInner,{ref:o,style:c,...n,children:[renderTableHeader(r,a,s,l),jsxRuntimeExports.jsx(ChildWrapper,{children:e})]})});InnerElement.displayName="InnerElement";const ScheduleRowItem=({data:e,item:t,style:n})=>{const o=t.row,{selectedItemId:i}=useSidePanelContext(),r=getJEScheduleRowPanelId(o),a=null!=i&&i===r,s=t.isPendingReview,{accountListNestedAccountHierarchy:l,activeHeaderItems:c,forcePostedLabel:d,gridTemplateColumns:p,jeScheduleClickHandler:u,onOneTimeAccrualClick:m,onIgnoreOneTimeAccrual:h,onRevertOneTimeAccrual:g,allAccountList:x,allDepreciationAccountList:f,allDepreciationAccountListNestedAccountHierarchy:y,classListNestedAccountHierarchy:S,ignoreStatusById:C,oneTimeAccrualActionStatusById:b,revertStatusById:$,localDataByID:v,postStatusById:E,uncategorizedAccounts:w,vendorSearchAutoCompleteActions:R,vendorSearchAutoCompleteData:A,ignoreRecommendedJeSchedule:j,onJESchedulesFormDataChange:T,onPostJESchedule:I,onRevertJeSchedule:k,onReviewClickHandler:L}=e,{width:D,..._}=n,P=useExpenseAutomationRowCommenting({transactionId:getJEScheduleRowKey(o),rowEntityType:"expense_automation.je_schedule.row"}),{isCommentingActive:B,rowRef:M,totalThreadCount:O,isThreadsLoading:F,handleActiveThreadClick:N,handleAddRowCommentClick:z}=P,H=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[B&&O>0?jsxRuntimeExports.jsx(RowCommentSlot,{flushRight:!0,children:jsxRuntimeExports.jsx(ActiveThreadCount,{isLoading:F,count:O,style:{cursor:"pointer"},openThread:N})}):null,B&&!1===F&&0===O?jsxRuntimeExports.jsx(RowCommentSlot,{flushRight:!0,innerClassName:"comment-add-icon",children:jsxRuntimeExports.jsx(StyledAddThreadsIcon$1,{"data-testid":generateDataTestId("expense-automation-je-schedule-row-add-comment",getJEScheduleRowKey(o)),onClick:z})}):null,B?jsxRuntimeExports.jsx(ExpenseAutomationRowThreadPortals,{state:P}):null]});return s?jsxRuntimeExports.jsxs(DataRow,{ref:M,style:_,$gridTemplateColumns:p,$isSelected:a,"data-testid":generateDataTestId("je-schedule-row",getJEScheduleRowKey(o)),children:[c.map(e=>jsxRuntimeExports.jsx(DataCell,{$width:e.width,$justify:alignToJustify(e.align),$hasLeftBorder:"action"===e.key,$stickyRight:!0===e.stickyRight,"data-sticky-right":!0===e.stickyRight?"true":void 0,children:jsxRuntimeExports.jsx(JEScheduleListWrapperRow,{accountListNestedAccountHierarchy:l,align:e.align,cellPadding:e.cellPadding??DEFAULT_CELL_PADDING,allAccountList:x,allDepAccountList:f,allDepreciationAccountListNestedAccountHierarchy:y,classListNestedAccountHierarchy:S,dataListColumnKey:e.key,forcePostedLabel:d,ignoreStatusById:C,oneTimeAccrualActionStatusById:b,revertStatusById:$,localDataByID:v,postStatusById:E,row:o,uncategorizedAccounts:w,vendorSearchAutoCompleteActions:R,vendorSearchAutoCompleteData:A,ignoreRecommendedJeSchedule:j,jeScheduleClickHandler:u,onOneTimeAccrualClick:m,onIgnoreOneTimeAccrual:h,onRevertOneTimeAccrual:g,onFormDataChange:T,onPostJESchedule:I,onRevertJeSchedule:k,onReviewClickHandler:L})},e.key)),H]},getJEScheduleRowKey(o)):jsxRuntimeExports.jsxs(DataRow,{ref:M,style:{..._,cursor:"pointer"},$gridTemplateColumns:p,$isSelected:a,"data-testid":generateDataTestId("je-schedule-row",getJEScheduleRowKey(o)),children:[c.map(e=>jsxRuntimeExports.jsx(DataCell,{$width:e.width,$justify:alignToJustify(e.align),$hasLeftBorder:"action"===e.key,$stickyRight:!0===e.stickyRight,"data-sticky-right":!0===e.stickyRight?"true":void 0,children:jsxRuntimeExports.jsx(JEScheduleListWrapperRow,{accountListNestedAccountHierarchy:l,align:e.align,cellPadding:e.cellPadding??DEFAULT_CELL_PADDING,allAccountList:x,allDepAccountList:f,allDepreciationAccountListNestedAccountHierarchy:y,classListNestedAccountHierarchy:S,dataListColumnKey:e.key,forcePostedLabel:d,ignoreStatusById:C,oneTimeAccrualActionStatusById:b,revertStatusById:$,isReadOnly:!0,localDataByID:v,postStatusById:E,row:o,uncategorizedAccounts:w,vendorSearchAutoCompleteActions:R,vendorSearchAutoCompleteData:A,ignoreRecommendedJeSchedule:j,jeScheduleClickHandler:u,onOneTimeAccrualClick:m,onIgnoreOneTimeAccrual:h,onRevertOneTimeAccrual:g,onFormDataChange:T,onPostJESchedule:I,onRevertJeSchedule:k,onReviewClickHandler:L})},e.key)),H]},getJEScheduleRowKey(o))},RowRenderer=({index:e,style:t,data:n})=>jsxRuntimeExports.jsx(ScheduleRowItem,{data:n,item:n.items[e],style:t});function GroupTable({activeHeaderItems:e,gridTemplateColumns:t,group:n,headerCtx:o,listItemData:i}){const r=React.useMemo(()=>buildJEScheduleListItems(n),[n]),a=React.useMemo(()=>({...i,activeHeaderItems:e,gridTemplateColumns:t,items:r}),[i,e,t,r]),{groupRow:s}=n,l=null==s||!s.isCollapsed,c=r.length*ESTIMATED_ROW_HEIGHT+HEADER_HEIGHT_PX;return jsxRuntimeExports.jsxs(Card$4,{"data-testid":generateDataTestId("je-schedule-group",n.groupKey),children:[null!=s?jsxRuntimeExports.jsx(GroupTitleBar,{$isExpanded:l,"data-testid":generateDataTestId("je-schedule-group-row",n.groupKey),children:jsxRuntimeExports.jsx(JEGroupSectionHeader,{title:s.title,count:n.data.length,isCollapsed:s.isCollapsed,onToggle:s.onToggle})}):null,l?jsxRuntimeExports.jsx(TableContainer$1,{style:{height:c},children:jsxRuntimeExports.jsx(HeaderContext.Provider,{value:o,children:jsxRuntimeExports.jsx(AutoSizer,{disableHeight:!0,children:({width:e})=>jsxRuntimeExports.jsx(FixedSizeList,{height:c,width:e,itemCount:r.length,itemSize:ESTIMATED_ROW_HEIGHT,itemKey:e=>getJEScheduleListItemKey(r[e]),innerElementType:InnerElement,itemData:a,overscanCount:5,style:{willChange:"auto"},children:RowRenderer})})})}):null]})}function JEScheduleGroupList({activeHeaderItems:e,groups:t,listItemData:n,sortState:o,testIdSuffix:i,onHeaderClick:r}){const a=useQuickViewMode(),s=React.useMemo(()=>t.filter(e=>e.data.length>0),[t]),l=React.useMemo(()=>buildGridTemplateColumns(e),[e]),c=React.useMemo(()=>({activeHeaderItems:e,sortState:o,onHeaderClick:r,gridTemplateColumns:l}),[e,o,r,l]);return jsxRuntimeExports.jsx(GroupSection,{$isQuickViewMode:a,"data-testid":generateDataTestId("expense-automation",i),children:0===s.length?jsxRuntimeExports.jsx(EmptyTableSection,{tab:"je_schedules",title:highFive$1,subTitle:allSchedulesReviewed$1}):s.map(t=>jsxRuntimeExports.jsx(GroupTable,{activeHeaderItems:e,gridTemplateColumns:l,group:t,headerCtx:c,listItemData:n},t.groupKey))})}const GroupSection=styled$2.div`
|
|
79680
79659
|
display: flex;
|
|
79681
79660
|
flex-direction: column;
|
|
79682
|
-
|
|
79683
|
-
card has a visible bottom edge instead of running off past the panel. Unbounded otherwise:
|
|
79684
|
-
the closed list is sized to its full content and the page scrolls. */
|
|
79661
|
+
gap: ${Space.sp3};
|
|
79685
79662
|
margin-bottom: ${Space.sp3};
|
|
79686
79663
|
${e=>e.$isQuickViewMode?react$1.css`
|
|
79687
79664
|
/* The layout leaves this column full width and overlays the panel absolutely, so the
|
|
79688
|
-
|
|
79665
|
+
cards have to be capped here or their borders enclose the panel too. Bounded, so the
|
|
79666
|
+
stacked tables scroll inside the column instead of running off past the panel. */
|
|
79689
79667
|
max-width: var(--side-panel-list-width, 100%);
|
|
79690
79668
|
flex: 1;
|
|
79691
79669
|
min-height: 0;
|
|
79670
|
+
overflow-y: auto;
|
|
79692
79671
|
`:react$1.css`
|
|
79693
79672
|
flex-shrink: 0;
|
|
79694
79673
|
`}
|
|
79695
79674
|
`,Card$4=styled$2.div`
|
|
79696
79675
|
display: flex;
|
|
79697
79676
|
flex-direction: column;
|
|
79698
|
-
|
|
79699
|
-
|
|
79700
|
-
|
|
79701
|
-
|
|
79702
|
-
${e=>e
|
|
79703
|
-
|
|
79704
|
-
border: 1px solid ${e.theme.colors.grey2};
|
|
79705
|
-
border-radius: ${Space.sp2};
|
|
79706
|
-
background: ${e.theme.colors.grey4};
|
|
79707
|
-
`}
|
|
79708
|
-
`,TableSection$1=styled$2.div`
|
|
79677
|
+
flex-shrink: 0;
|
|
79678
|
+
overflow: hidden;
|
|
79679
|
+
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
79680
|
+
border-radius: ${Space.sp2};
|
|
79681
|
+
background: ${e=>e.theme.colors.grey4};
|
|
79682
|
+
`,GroupTitleBar=styled$2.div`
|
|
79709
79683
|
display: flex;
|
|
79710
|
-
|
|
79711
|
-
|
|
79712
|
-
|
|
79713
|
-
|
|
79684
|
+
${e=>!e.$isExpanded&&react$1.css`
|
|
79685
|
+
& > button {
|
|
79686
|
+
border-bottom: none;
|
|
79687
|
+
}
|
|
79714
79688
|
`}
|
|
79715
79689
|
`,TableContainer$1=styled$2.div`
|
|
79716
79690
|
position: relative;
|
|
79717
79691
|
min-width: 0;
|
|
79718
79692
|
width: 100%;
|
|
79719
|
-
${e=>e.$isQuickViewMode&&react$1.css`
|
|
79720
|
-
flex: 1;
|
|
79721
|
-
min-height: 0;
|
|
79722
|
-
`}
|
|
79723
|
-
align-self: flex-start;
|
|
79724
79693
|
display: flex;
|
|
79725
79694
|
flex-direction: column;
|
|
79726
79695
|
box-sizing: border-box;
|
|
@@ -90046,4 +90015,4 @@ to {
|
|
|
90046
90015
|
`,StyledButton=styled$2(Button$4)`
|
|
90047
90016
|
min-width: 140px;
|
|
90048
90017
|
`;exports.AIAgentsActivatingPage=AIAgentsActivatingPage,exports.AIIconButton=AIIconButton,exports.AIPerformancePage=AIPerformancePage,exports.ALL_AI_CFO_MENU_OPTIONS=ALL_AI_CFO_MENU_OPTIONS,exports.ALL_INVOICING_MENU_GROUPS=ALL_INVOICING_MENU_GROUPS,exports.ALL_INVOICING_MENU_OPTIONS=ALL_INVOICING_MENU_OPTIONS,exports.ALL_SETTINGS_MENU_OPTIONS=ALL_SETTINGS_MENU_OPTIONS,exports.ALPHA_NUMERIC_PATTERN=ALPHA_NUMERIC_PATTERN,exports.APP_DRAWER_CONTENT_WIDTH_PX=APP_DRAWER_CONTENT_WIDTH_PX,exports.AccountInfoPage=AccountInfoPage,exports.AccountLockedInfoModal=AccountLockedInfoModal,exports.AccountReconDetailsDrawerPage=AccountReconDetailsDrawerPage$1,exports.AccountReconDetailsDrawerPage$1=AccountReconDetailsDrawerPage,exports.ActivityIndicator=ActivityIndicator,exports.ActualMatchingMatchDetailPage=ActualMatchingMatchDetailPage,exports.AddAddressForCardDrawer=AddAddressForCardDrawer,exports.AddThreadFloating=AddThreadFloating,exports.AddThreadsComponent=AddThreadsComponent,exports.AddToWalletPage=AddToWalletPage,exports.AddressFormPage=AddressFormPage,exports.AgentInsightsEditor=AgentInsightsEditor,exports.AgingReportsPage=AgingReportsPage,exports.AiCfoChatHeader=AiCfoChatHeader,exports.AiCfoMenuContent=AiCfoMenuContent,exports.AiCfoOnboardingPage=AiCfoOnboardingPage,exports.AiCfoPage=AiCfoPage,exports.AiCfoScopeModal=AiCfoScopeModal,exports.AiCfoScopeModalScrollBody=AiCfoScopeModalScrollBody,exports.AiCfoSidePanel=AiCfoSidePanel,exports.AiCfoSkillsBrowser=AiCfoSkillsBrowser,exports.AiFinanceTeamReadyPage=AiFinanceTeamReadyPage,exports.AllThreadsDrawer=AllThreadsDrawer,exports.AllThreadsSection=AllThreadsSection,exports.AllowBlockChipPicker=AllowBlockChipPicker,exports.AnalyticsOnLoad=AnalyticsOnLoad,exports.ApAgingDetailPage=ApAgingDetailPage,exports.AppBasePage=AppBasePage,exports.AppDrawerContent=AppDrawerContent,exports.AppDrawerHeightMobile=AppDrawerHeightMobile,exports.ApprovalRulesSettingsPage=ApprovalRulesSettingsPage,exports.ArAgingDetailPage=ArAgingDetailPage,exports.AskAiCfoNavButton=AskAiCfoNavButton,exports.AskAiCfoNavButtonWhenEnabled=AskAiCfoNavButtonWhenEnabled,exports.AttachmentView=AttachmentView,exports.AutoSizer=AutoSizer,exports.AutoTransferRulePage=AutoTransferRulePage,exports.AvatarSVG=AvatarSVG$1,exports.BORDER_RADIUS_SELECT_FIELD=BORDER_RADIUS_SELECT_FIELD,exports.BackNavigationProvider=BackNavigationProvider,exports.BankConnectionsSettingsPage=BankConnectionsSettingsPage,exports.BillDetailPage=BillDetailPage,exports.BillDetailPageSkeleton=BillDetailPageSkeleton,exports.BillPayApprovalRuleDetailPage=BillPayApprovalRuleDetailPage$1,exports.BillPayApprovalRuleDetailPage$1=BillPayApprovalRuleDetailPage,exports.BillPayApprovalRulesPage=BillPayApprovalRulesPage$1,exports.BillPayApprovalRulesPage$1=BillPayApprovalRulesPage,exports.BillPayPromoPage=BillPayPromoPage,exports.BillPaySetUpPage=BillPaySetUpPage,exports.BillingSettingsPage=BillingSettingsPage,exports.BillsBulkReviewDrawerPage=BillsBulkReviewDrawerPage,exports.BusinessVerificationPage=BusinessVerificationPage,exports.BusyIndication=BusyIndication,exports.Button=Button$4,exports.ButtonBase=ButtonBase,exports.CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT=CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT,exports.CARD_POLICY_LIMIT_ROW_ID_TRANSACTION=CARD_POLICY_LIMIT_ROW_ID_TRANSACTION,exports.COMMAND_CENTER_SUBMENU_TYPES=COMMAND_CENTER_SUBMENU_TYPES,exports.COMMENTS_DRAWER_MAXIMUM_WIDTH=COMMENTS_DRAWER_MAXIMUM_WIDTH,exports.COMMENTS_SECTION_MINIMUM_WIDTH=COMMENTS_SECTION_MINIMUM_WIDTH,exports.COMMENT_NOTIFICATION_KINDS=COMMENT_NOTIFICATION_KINDS,exports.CapitalizationOnboardingPopup=CapitalizationOnboardingPopup,exports.CapitalizationSettingsSection=CapitalizationSettingsSection,exports.CardPolicyCreatePage=CardPolicyCreatePage,exports.CardPolicyEditPage=CardPolicyEditPage,exports.CardPolicyFormPageSkeleton=CardPolicyFormPageSkeleton,exports.CardPolicyFormSections=CardPolicyFormSections,exports.CardPolicyListPage=CardPolicyListPage,exports.CardPolicyListPageSkeleton=CardPolicyListPageSkeleton,exports.CardPolicyListRow=CardPolicyListRow,exports.CardPolicyListSkeletonRow=CardPolicyListSkeletonRow,exports.CardPolicyManualEmptyState=CardPolicyManualEmptyState,exports.CardsAiCfoHero=CardsAiCfoHero,exports.CardsShutdownBanner=CardsShutdownBanner,exports.CashbackDetailLoading=CashbackDetailLoading,exports.CashbackDetailPage=CashbackDetailPage,exports.ChargeCardCVVActivate=ChargeCardCVVActivate,exports.ChargeCardDetailLoading=ChargeCardDetailLoading,exports.ChargeCardDetailPage=ChargeCardDetailPage,exports.ChargeCardListLoading=ChargeCardListLoading,exports.ChargeCardListPage=ChargeCardListPage,exports.ChargeCardListSkeletonRow=ChargeCardListSkeletonRow,exports.ChargeCardPaymentHistoryPage=ChargeCardPaymentHistoryPage,exports.ChargeCardPromoPage=ChargeCardPromoPage,exports.ChargeCardPromoPageSkeleton=ChargeCardPromoPageSkeleton,exports.ChargeCardSetUpPage=ChargeCardSetUpPage,exports.ChargeCardStatementsLoading=ChargeCardStatementsLoading,exports.ChargeCardStatementsPage=ChargeCardStatementsPage,exports.ChargeCardUserOnboardingPromoPage=ChargeCardUserOnboardingPromoPage,exports.ChargeCardUserOnboardingPromoPageSkeleton=ChargeCardUserOnboardingPromoPageSkeleton,exports.CheckDepositDrawerPage=CheckDepositDrawerPage,exports.Checkbox=Checkbox,exports.CircleWithAttachmentSuccessIcon=CircleWithAttachmentSuccessIcon,exports.CircularProgress=CircularProgress,exports.ClickAwayListener=ClickAwayListener,exports.ClickableRow=ClickableRow,exports.CollaborationGlobalStyles=CollaborationGlobalStyles,exports.CollaborationProvider=CollaborationProvider,exports.CollaborationRoomProvider=CollaborationRoomProvider,exports.Color=Color$1,exports.Colors=Colors,exports.CombinationOperatorButton=CombinationOperatorButton,exports.CommentsAndNotesCount=CommentsAndNotesCount,exports.CommentsDrawerProvider=CommentsDrawerProvider,exports.CommonDot=CommonDot,exports.CompanyOfficerOnboardingDetailsSection=CompanyOfficerOnboardingDetailsSection,exports.CompanyOnboardingDetailsSection=CompanyOnboardingDetailsSection,exports.CompanyPassportCard=CompanyPassportCard,exports.CompanyPassportPage=CompanyPassportPage,exports.CompleteProfile=CompleteProfile,exports.ConfettiBurst=ConfettiBurst,exports.ConfirmationPopUpDescription=ConfirmationPopUpDescription$2,exports.ConfirmationPopUpTitle=ConfirmationPopUpTitle$3,exports.ConfirmationPopup=ConfirmationPopup,exports.ConnectDataSourcesPage=ConnectDataSourcesPage,exports.ContentLoaderSkeleton=ContentLoaderSkeleton,exports.ControlledComponent=ControlledComponent,exports.Controller=Controller,exports.CreateOrEditVendorPage=CreateOrEditVendorPage,exports.CreateOrEditVendorPageSkeleton=CreateOrEditVendorPageSkeleton,exports.CreatedEntitiesAnswer=CreatedEntitiesAnswer,exports.CreatingEntitiesAnswerLoading=CreatingEntitiesAnswerLoading,exports.CreditCardPaymentDrawerPage=CreditCardPaymentDrawerPage,exports.CustomerOnboardingContainerPage=CustomerOnboardingContainerPage,exports.CustomerOnboardingNoStepsPage=CustomerOnboardingNoStepsPage,exports.CustomerOnboardingPage=CustomerOnboardingPage,exports.CustomerOnboardingProductSuitePage=CustomerOnboardingProductSuitePage,exports.DIGITS_PATTERN=DIGITS_PATTERN,exports.DOMAIN_PATTERN=DOMAIN_PATTERN,exports.Dashboard=Dashboard,exports.DashboardReportPage=DashboardReportPage,exports.DashboardSidebarLogoAnimation=DashboardSidebarLogoAnimation,exports.DataListTable=DataListTable,exports.DataListTableHeader=DataListTableHeader,exports.DataListTableRow=DataListTableRow,exports.DataListTableSortIndicator=DataListTableSortIndicator,exports.DateRangeFilterField=DateRangeFilterField,exports.DebitCardSetPin=DebitCardSetPin,exports.Drawer=Drawer,exports.DrawerPage=DrawerPage,exports.DropdownOption=DropdownOption$1,exports.DropdownPortalContext=DropdownPortalContext,exports.DynamicConfigNames=DynamicConfigNames,exports.EMPTY_HTML_CHECKER=EMPTY_HTML_CHECKER,exports.EditPeoplePage=EditPeoplePage,exports.EditReimbursementDetailPage=EditReimbursementDetailPage,exports.EditableBillDetailPage=EditableBillDetailPage,exports.Editor=Editor,exports.EmptySearchResults=EmptySearchResults,exports.EntityAvatar=EntityAvatar,exports.EntityAvatarWithInitials=EntityAvatarWithInitials,exports.EntityDetailPage=EntityDetailPage,exports.ErrorBoundaryWrapper=ErrorBoundaryWrapper,exports.ExcludedAccountReconDetailsDrawerPage=ExcludedAccountReconDetailsDrawerPage,exports.ExpenseAutomationOverviewPage=ExpenseAutomationOverviewPage,exports.ExpenseAutomationOverviewPageSkeleton=ExpenseAutomationOverviewPageSkeleton,exports.ExpenseAutomationPage=ExpenseAutomationPage,exports.ExpressPayPage=ExpressPayPage,exports.ExtraLargeMedium=ExtraLargeMedium,exports.ExtraLargeRegular=ExtraLargeRegular,exports.ExtraLargeSemiBold=ExtraLargeSemiBold,exports.ExtraSmallBoldSp=ExtraSmallBoldSp,exports.ExtraSmallRegular=ExtraSmallRegular,exports.ExtraSmallRegularSp=ExtraSmallRegularSp,exports.ExtraSmallSemiBold=ExtraSmallSemiBold,exports.ExtraSmallSemiBoldSp=ExtraSmallSemiBoldSp,exports.EyebrowSmallSemiBoldSp=EyebrowSmallSemiBoldSp,exports.FORM_MINIMUM_WIDTH=FORM_MINIMUM_WIDTH,exports.FeatureGatesNames=FeatureGatesNames,exports.FeaturePreviewPage=FeaturePreviewPage,exports.FeatureProvider=FeatureProvider,exports.FieldHelpIcon=FieldHelpIcon,exports.FieldHelpProvider=FieldHelpProvider,exports.FileAttachment=FileAttachment,exports.FileInputElement=FileInputElement,exports.FiltersPopover=FiltersPopover,exports.FirstReviewVendorDetailPage=FirstReviewVendorDetailPage,exports.FixedSizeList=FixedSizeList,exports.FloatingThreads=FloatingThreads,exports.FontWeight=FontWeight,exports.Footer=Footer$7,exports.FormProvider=FormProvider,exports.GlobalInfoProvider=GlobalInfoProvider,exports.GlobalReviewListPage=GlobalReviewListPage,exports.H5Regular=H5Regular,exports.H6Regular=H6Regular,exports.INPUT_BG_COLOR=INPUT_BG_COLOR,exports.INPUT_BORDER_COLOR_SELECT_FIELD=INPUT_BORDER_COLOR_SELECT_FIELD,exports.INPUT_COLOR=INPUT_COLOR,exports.INPUT_ERROR_BG_COLOR=INPUT_ERROR_BG_COLOR,exports.INPUT_HOVER_FOCUS_COLOR=INPUT_HOVER_FOCUS_COLOR,exports.INPUT_PLACEHOLDER_COLOR=INPUT_PLACEHOLDER_COLOR,exports.INVOICING_SETTINGS_NAV_SECTIONS=INVOICING_SETTINGS_NAV_SECTIONS,exports.INVOICING_SETTINGS_TABS=INVOICING_SETTINGS_TABS,exports.InfiniteLoader=InfiniteLoader,exports.InformationCardStack=InformationCardStack,exports.InitialCollaborationProvider=InitialCollaborationProvider,exports.InsightCardStack=InsightCardStack,exports.IntegrationCardView=IntegrationCardView,exports.IntegrationsCardGrid=IntegrationsCardGrid,exports.IntegrationsSection=IntegrationsSection,exports.IntegrationsSettingsPage=IntegrationsSettingsPage,exports.InternationalWireVerificationPage=InternationalWireVerificationPage,exports.InviteFormPage=InviteFormPage,exports.InvitePageListView=InvitePageListView,exports.InvitePeoplePage=InvitePeoplePage,exports.InvoiceUploadSection=InvoiceUploadSection,exports.InvoiceUploadSectionSkeleton=InvoiceUploadSectionSkeleton,exports.InvoicingAddPaymentMethodDialog=InvoicingAddPaymentMethodDialog,exports.InvoicingAuditLogPage=InvoicingAuditLogPage,exports.InvoicingBrandingSettingsPage=InvoicingBrandingSettingsPage,exports.InvoicingCatalogItemDetailPage=InvoicingCatalogItemDetailPage,exports.InvoicingCatalogItemFormPage=InvoicingCatalogItemFormPage,exports.InvoicingCatalogPage=InvoicingCatalogPage,exports.InvoicingCouponFormPage=InvoicingCouponFormPage,exports.InvoicingCreateInvoicePage=InvoicingCreateInvoicePage,exports.InvoicingCreateInvoiceSkeleton=InvoicingCreateInvoiceSkeleton,exports.InvoicingCreatePromotionalCreditsDialog=InvoicingCreatePromotionalCreditsDialog,exports.InvoicingCreditDetailPage=InvoicingCreditDetailPage,exports.InvoicingCreditListPage=InvoicingCreditListPage,exports.InvoicingCustomerDetailPage=InvoicingCustomerDetailPage,exports.InvoicingCustomerFormPage=InvoicingCustomerFormPage,exports.InvoicingCustomerListPage=InvoicingCustomerListPage,exports.InvoicingDashboardSkeleton=InvoicingDashboardSkeleton,exports.InvoicingDataImportDetailPage=InvoicingDataImportDetailPage,exports.InvoicingDataImportHubPage=InvoicingDataImportHubPage,exports.InvoicingDataImportMigratePage=InvoicingDataImportMigratePage,exports.InvoicingDetailScaffold=InvoicingDetailScaffold,exports.InvoicingDiscountDetailPage=InvoicingDiscountDetailPage,exports.InvoicingDiscountListPage=InvoicingDiscountListPage,exports.InvoicingDunningDetailPage=InvoicingDunningDetailPage,exports.InvoicingDunningEmailComposerDialog=InvoicingDunningEmailComposerDialog,exports.InvoicingDunningListPage=InvoicingDunningListPage,exports.InvoicingDunningSettingsPage=InvoicingDunningSettingsPage,exports.InvoicingEmptyState=InvoicingEmptyState,exports.InvoicingIntegrationsSettingsPage=InvoicingIntegrationsSettingsPage,exports.InvoicingInvoiceDetailPage=InvoicingInvoiceDetailPage,exports.InvoicingInvoiceListPage=InvoicingInvoiceListPage,exports.InvoicingIssueCreditNotePage=InvoicingIssueCreditNotePage,exports.InvoicingOverviewPage=InvoicingOverviewPage,exports.InvoicingPaymentDestinationSettingsPage=InvoicingPaymentDestinationSettingsPage,exports.InvoicingPaymentLinkEmailComposerDialog=InvoicingPaymentLinkEmailComposerDialog,exports.InvoicingPaymentLinkPage=InvoicingPaymentLinkPage,exports.InvoicingPaymentListPage=InvoicingPaymentListPage,exports.InvoicingPromoPage=InvoicingPromoPage,exports.InvoicingQBOSettingsPage=InvoicingQBOSettingsPage,exports.InvoicingRecordPaymentPage=InvoicingRecordPaymentPage,exports.InvoicingSettingsHubPage=InvoicingSettingsHubPage,exports.InvoicingSubscriptionDetailPage=InvoicingSubscriptionDetailPage,exports.InvoicingSubscriptionFormPage=InvoicingSubscriptionFormPage,exports.InvoicingSubscriptionListPage=InvoicingSubscriptionListPage,exports.InvoicingTransactionDetailPage=InvoicingTransactionDetailPage,exports.InvoicingVoidInvoiceDialog=InvoicingVoidInvoiceDialog,exports.IssueChargeCardPage=IssueChargeCardPage,exports.IssueChargeCardPageSkeleton=IssueChargeCardPageSkeleton,exports.ItemWithButton=ItemWithButton,exports.JEOneTimeAccrualDetailPage=JEOneTimeAccrualDetailPage,exports.Label=Label$f,exports.LabeledDatePickerField=LabeledDatePickerField,exports.LabeledGroupedMultiSelectField=LabeledGroupedMultiSelectField,exports.LabeledItemWithButton=LabeledItemWithButton,exports.LabeledNameField=LabeledNameField,exports.LabeledRadioField=LabeledRadioField,exports.LabeledReadOnlyTextField=LabeledReadOnlyTextField,exports.LabeledSingleSelectNumericField=LabeledSingleSelectNumericField,exports.LabeledSingleSelectPickerField=LabeledSingleSelectPickerField,exports.LabeledSingleSelectWithoutClearableField=LabeledSingleSelectWithoutClearableField,exports.LabeledTextField=LabeledTextField,exports.LabeledUnSafeCheckBoxField=LabeledUnSafeCheckBoxField,exports.LargeBoldSp=LargeBoldSp,exports.LargeMedium=LargeMedium,exports.LargeMediumSp=LargeMediumSp,exports.LargeRegular=LargeRegular,exports.LargeRegularA=LargeRegularA,exports.LargeRegularLabel=LargeRegularLabel,exports.LargeRegularSp=LargeRegularSp,exports.LargeRegularTA=LargeRegularTA,exports.LargeSemiBold=LargeSemiBold,exports.LinkBillExpensePage=LinkBillExpensePage,exports.LinkJETransactionPage=LinkJETransactionPage,exports.ListTableSkeleton=ListTableSkeleton,exports.Loader=Loader,exports.LogoutButton=LogoutButton,exports.Lottie=Lottie,exports.MCC_CHIP_ID_PREFIX=MCC_CHIP_ID_PREFIX,exports.MEETING_LINK_DEFAULTS=MEETING_LINK_DEFAULTS,exports.MENU_BG_COLOR=MENU_BG_COLOR,exports.MONTH_END_EDITOR_PLACEHOLDER=MONTH_END_EDITOR_PLACEHOLDER,exports.MONTH_END_EMAIL_BODY_SECTION=MONTH_END_EMAIL_BODY_SECTION,exports.MONTH_END_EMAIL_EDITOR_SECTION=MONTH_END_EMAIL_EDITOR_SECTION,exports.MONTH_END_EMAIL_HEADER_SECTION=MONTH_END_EMAIL_HEADER_SECTION,exports.MONTH_END_REPORT_CANVAS=MONTH_END_REPORT_CANVAS,exports.MagicLinkDomesticWireDetailsPage=MagicLinkDomesticWireDetailsPage,exports.MagicLinkInternationalWireDetailsPage=MagicLinkInternationalWireDetailsPage,exports.MagicLinkSuccessPage=MagicLinkSuccessPage,exports.MagicLinkVendorACHDetailsPage=MagicLinkVendorACHDetailsPage,exports.MatchingOperatorDropdown=MatchingOperatorDropdown,exports.Modal=Modal,exports.Modal$1=Modal$1,exports.MonthCalendar=MonthCalendar,exports.MonthEndEmailDrawerCustomerRequestPage=MonthEndEmailDrawerCustomerRequestPage,exports.MonthEndReportCustomerRequestSection=MonthEndReportCustomerRequestSection,exports.MonthEndReportSection=MonthEndReportSection,exports.MoreMenuButton=MoreMenuButton$1,exports.MyBankConnectionsSettingsPage=MyBankConnectionsSettingsPage,exports.MyPendingActivationChargeCardListPage=MyPendingActivationChargeCardListPage,exports.MyProfileSettingsPage=MyProfileSettingsPage,exports.NEW_CATEGORY_BODY=NEW_CATEGORY_BODY$2,exports.NEW_THREAD_SUFFIX=NEW_THREAD_SUFFIX,exports.NavBar=NavBar,exports.NavBarRightRowStyled=NavBarRightRowStyled,exports.NavBarWithClose=NavBarWithClose,exports.NewGlobalMerchantPage=NewGlobalMerchantPage,exports.NewUpdateAvailablePage=NewUpdateAvailablePage,exports.NotFoundPage=NotFoundPage,exports.NotificationSettingsPage=NotificationSettingsPage,exports.NotificationsPage=NotificationsPage,exports.OAuthConsentPage=OAuthConsentPage,exports.OPTION_BG_COLOR=OPTION_BG_COLOR,exports.OPTION_DISABLED_BG_COLOR=OPTION_DISABLED_BG_COLOR,exports.OPTION_HOVER_FOCUS_BG_COLOR=OPTION_HOVER_FOCUS_BG_COLOR,exports.OPTION_LABEL_COLOR=OPTION_LABEL_COLOR,exports.OPTION_LABEL_DISABLED_COLOR=OPTION_LABEL_DISABLED_COLOR,exports.OPTION_LABEL_HOVER_FOCUS_COLOR=OPTION_LABEL_HOVER_FOCUS_COLOR,exports.OnboardingInitialLoader=OnboardingInitialLoader,exports.OnboardingSidebar=OnboardingSidebar,exports.OnboardingStepFrame=OnboardingStepFrame,exports.OpExByVendorPage=OpExByVendorPage,exports.OverlayContainerPage=OverlayContainerPage,exports.PandLWithForecastPage=PandLWithForecastPage,exports.PanelDirtyGuardContext=PanelDirtyGuardContext,exports.PanelInternalContext=PanelInternalContext,exports.PaymentAccountSetupBillingAddressSection=PaymentAccountSetupBillingAddressSection,exports.PeoplePage=PeoplePage,exports.Picker=Picker,exports.PolicyLimitsRowList=PolicyLimitsRowList,exports.PolicyModeSelector=PolicyModeSelector,exports.Popover=Popover,exports.PortfolioAllocationFormPage=PortfolioAllocationFormPage,exports.PropTypes=PropTypes,exports.QBOConnectionDialog=QBOConnectionDialog,exports.QBOSetupSectionWithForm=QBOSetupSectionWithForm,exports.QuickResponsesPage=QuickResponsesPage,exports.QuickViewModeContext=QuickViewModeContext,exports.REALM_ID=REALM_ID,exports.RIGHT_SIDE_PANEL_WIDTH_PX=RIGHT_SIDE_PANEL_WIDTH_PX,exports.RecommendationFeedbackPopup=RecommendationFeedbackPopup,exports.ReimbursementApprovalRuleDetailPage=ReimbursementApprovalRuleDetailPage$1,exports.ReimbursementApprovalRuleDetailPage$1=ReimbursementApprovalRuleDetailPage,exports.ReimbursementApprovalRulesPage=ReimbursementApprovalRulesPage$1,exports.ReimbursementApprovalRulesPage$1=ReimbursementApprovalRulesPage,exports.ReimbursementDetailPage=ReimbursementDetailPage,exports.ReimbursementDetailPageSkeleton=ReimbursementDetailPageSkeleton,exports.ReimbursementPromoPage=ReimbursementPromoPage,exports.ReimbursementsBulkReviewDrawerPage=ReimbursementsBulkReviewDrawerPage,exports.ReloadContainer=ReloadContainer,exports.RemiSetupPage=RemiSetupPage,exports.ReportsPage=ReportsPage,exports.ResponsiveSized=ResponsiveSized,exports.ResponsiveSizedStyle=ResponsiveSizedStyle,exports.ReviewBillDetailsPage=ReviewBillDetailsPage,exports.ReviewConfirmTransferPanel=ReviewConfirmTransferPanel,exports.ReviewDetailsPageSkeleton=ReviewDetailsPageSkeleton,exports.ScheduleDetailSkeleton=ScheduleDetailSkeleton,exports.ScheduleDetailsAccruedExpensesPage=ScheduleDetailsAccruedExpensesPage,exports.ScheduleDetailsFixedAssetsPage=ScheduleDetailsFixedAssetsPage,exports.ScheduleDetailsPage=ScheduleDetailsPage,exports.SearchBoxWithFilterButton=SearchBoxWithFilterButton,exports.SearchableCheckboxCardList=SearchableCheckboxCardList,exports.SessionTimeoutPopup=SessionTimeoutPopup,exports.SidePanelContext=SidePanelContext,exports.SidePanelLayout=SidePanelLayout,exports.SidePanelProvider=SidePanelProvider,exports.SignIn=SignIn,exports.SimpleDownloadMenuButton=SimpleDownloadMenuButton,exports.SingleSelectNumeric=SingleSelectNumeric,exports.SingleSelectPickerField=SingleSelectPickerField,exports.SingleSelectWithoutClearableField=SingleSelectWithoutClearableField,exports.SmallMedium=SmallMedium,exports.SmallMediumBtn=SmallMediumBtn,exports.SmallMediumSp=SmallMediumSp,exports.SmallRegular=SmallRegular,exports.SmallRegularA=SmallRegularA,exports.SmallRegularBtn=SmallRegularBtn,exports.SmallRegularInput=SmallRegularInput,exports.SmallRegularP=SmallRegularP,exports.SmallRegularSp=SmallRegularSp,exports.SmallRegularUl=SmallRegularUl,exports.SmallSemiBoldSp=SmallSemiBoldSp,exports.SomethingWrongPage=SomethingWrongPage,exports.Space=Space,exports.SpendManagementListLoading=SpendManagementListLoading,exports.SpendManagementListViewPage=SpendManagementListViewPage,exports.SpendManagementSetUpLoading=SpendManagementSetUpLoading,exports.StandardBold=StandardBold,exports.StandardMedium=StandardMedium,exports.StandardMediumA=StandardMediumA,exports.StandardMediumSp=StandardMediumSp,exports.StandardMediumTA=StandardMediumTA,exports.StandardRegular=StandardRegular,exports.StandardRegularLabel=StandardRegularLabel,exports.StandardRegularLi=StandardRegularLi,exports.StandardRegularSp=StandardRegularSp,exports.StandardSemiBold=StandardSemiBold,exports.StandardSemiBoldSp=StandardSemiBoldSp,exports.StateManagedSelect$1=StateManagedSelect$1,exports.StatementParseInfoEntry=StatementParseInfoEntry,exports.StatementProcessingPage=StatementProcessingPage,exports.StatementsPage=StatementsPage,exports.StickyThread=StickyThread,exports.StyledCapsule=StyledCapsule,exports.StyledCheckBox=StyledCheckBox$1,exports.StyledText=StyledText$c,exports.SubscriptionDetailPage=SubscriptionDetailPage,exports.SubscriptionSnackBar=SubscriptionSnackBar,exports.SubscriptionSummaryPage=SubscriptionSummaryPage,exports.SvgAddRound=SvgAddRound,exports.SvgAiIcon=SvgAiIcon,exports.SvgAlert=SvgAlert,exports.SvgArrowBottom=SvgArrowBottom,exports.SvgArrowCircleBottom=SvgArrowCircleBottom,exports.SvgArrowFilledBottom=SvgArrowFilledBottom,exports.SvgArrowLeft=SvgArrowLeft,exports.SvgArrowRight=SvgArrowRight,exports.SvgArrowTailRight=SvgArrowTailRight,exports.SvgArrowTailTop=SvgArrowTailTop,exports.SvgAvatar=SvgAvatar,exports.SvgClock=SvgClock,exports.SvgClose=SvgClose,exports.SvgCloseRound=SvgCloseRound,exports.SvgComment=SvgComment,exports.SvgCompanyDetails=SvgCompanyDetails,exports.SvgDelete=SvgDelete,exports.SvgDoubleTick=SvgDoubleTick,exports.SvgEdit=SvgEdit,exports.SvgEmail=SvgEmail,exports.SvgFlag=SvgFlag,exports.SvgHighImportance=SvgHighImportance,exports.SvgHighImportanceFill=SvgHighImportanceFill,exports.SvgHighImportanceFilled=SvgHighImportanceFilled,exports.SvgInfinite=SvgInfinite,exports.SvgInfo=SvgInfo,exports.SvgIntuitQuickBooksLogo=SvgIntuitQuickBooksLogo,exports.SvgLoader=SvgLoader,exports.SvgMore=SvgMore,exports.SvgNotification=SvgNotification,exports.SvgOpenLink=SvgOpenLink,exports.SvgPlayButtonSmall=SvgPlayButtonSmall,exports.SvgQueryRound=SvgQueryRound,exports.SvgRefresh=SvgRefresh,exports.SvgReload=SvgReload,exports.SvgSearch=SvgSearch,exports.SvgTick=SvgTick,exports.SvgTickRound=SvgTickRound,exports.SvgTickRoundFill=SvgTickRoundFill,exports.SvgWarning=SvgWarning,exports.SvgZeniLogoFull=SvgZeniLogoFull,exports.SyntheticAiCfoAnswerView=SyntheticAiCfoAnswerView,exports.THREAD_RESOLVED_NOTIFICATION_KIND=THREAD_RESOLVED_NOTIFICATION_KIND,exports.THREAD_UNRESOLVED_NOTIFICATION_KIND=THREAD_UNRESOLVED_NOTIFICATION_KIND,exports.TaskDetailPage=TaskDetailPage,exports.TaskManagementPage=TaskManagementPage,exports.TenantsDropDown=TenantsDropDown,exports.TextHighlightSection=TextHighlightSection,exports.TextStyle=TextStyle,exports.ThreadComponent=ThreadComponent,exports.ThreadDotComponent=ThreadDotComponent,exports.ThreadsContext=ThreadsContext,exports.ToolkitProvider=ToolkitProvider,exports.Tooltip=Tooltip$6,exports.TopExDetailPage=TopExDetailPage,exports.TransactionActivityLogPage=TransactionActivityLogPage,exports.TransactionActivityLogPanel=TransactionActivityLogPanel,exports.TransactionDetailPage=TransactionDetailPage,exports.TransactionDetailSkeleton=TransactionDetailSkeleton,exports.TransactionListBig=TransactionListBig,exports.TransactionListComments=TransactionListComments,exports.TransactionListPage=TransactionListPage,exports.TransactionVendorDetailPage=TransactionVendorDetailPage,exports.TransferDrawerPage=TransferDrawerPage,exports.TreasuryOverviewPage=TreasuryOverviewPage,exports.TreasuryPromoPage=TreasuryPromoPage,exports.TreasurySetUpPage=TreasurySetUpPage,exports.TreasuryStatementsPage=TreasuryStatementsPage,exports.TreasuryTaxLetterPage=TreasuryTaxLetterPage,exports.TreasuryTransferOrReviewPage=TreasuryTransferOrReviewPage,exports.TrendChart=TrendChart,exports.UncategorizedAccountsMappingPage=UncategorizedAccountsMappingPage,exports.UnitIntegrationPage=UnitIntegrationPage,exports.UserMultiSelectField=UserMultiSelectField,exports.UserWithTimestamp=UserWithTimestamp,exports.VENDOR_CHIP_ID_PREFIX=VENDOR_CHIP_ID_PREFIX,exports.VariableSizeList=VariableSizeList,exports.Vendor2FAPopup=Vendor2FAPopup,exports.VendorACHDetailsPage=VendorACHDetailsPage,exports.VendorAccruedSchedulesPage=VendorAccruedSchedulesPage,exports.VendorDetailPage=VendorDetailPage,exports.VendorDomesticWireDetailsPage=VendorDomesticWireDetailsPage,exports.VendorFiling1099DetailsEditablePage=VendorFiling1099DetailsEditablePage,exports.VendorFiling1099EditableFormSkeleton=VendorFiling1099EditableFormSkeleton,exports.VendorFiling1099ListPage=VendorFiling1099ListPage,exports.VendorFirstReviewPage=VendorFirstReviewPage,exports.VendorInternationalSwiftBasedDetailsPage=VendorInternationalSwiftBasedDetailsPage,exports.VendorInternationalWireDetailsPage=VendorInternationalWireDetailsPage,exports.VendorListPage=VendorListPage,exports.VendorSchedulesPage=VendorSchedulesPage,exports.VerificationFrame=VerificationFrame,exports.VerifyDevice=VerifyDevice,exports.VerifyUnlockFinancialStackPage=VerifyUnlockFinancialStackPage,exports.WebV2MicroService=WebV2MicroService,exports.WebV2MicroServiceProvider=WebV2MicroServiceProvider,exports.WelcomeAnimation=WelcomeAnimation,exports.WindowSizeProvider=WindowSizeProvider,exports.ZeniAccountDetailLoading=ZeniAccountDetailLoading,exports.ZeniAccountDetailNavBarTitleShimmer=ZeniAccountDetailNavBarTitleShimmer,exports.ZeniAccountDetailPage=ZeniAccountDetailPage,exports.ZeniAccountListLoading=ZeniAccountListLoading,exports.ZeniAccountListViewPage=ZeniAccountListViewPage,exports.ZeniAccountPromoPage=ZeniAccountPromoPage,exports.ZeniAccountSetUpPage=ZeniAccountSetUpPage,exports.ZeniAvatar=ZeniAvatar,exports.ZeniDatePickerField=ZeniDatePickerField,exports.ZeniText=ZeniText,exports.ZeniThemeProvider=ZeniThemeProvider,exports.activeElement=activeElement,exports.alignToJustify=alignToJustify$1,exports.amountToString=amountToString,exports.amountValueToString=amountValueToString,exports.appLocale=appLocale,exports.applyExtractedPolicyRulesToFormValues=applyExtractedPolicyRulesToFormValues,exports.base64FileSize=base64FileSize,exports.buildBulkCreateCardPolicyTemplateRequestsFromInteractiveForm=buildBulkCreateCardPolicyTemplateRequestsFromInteractiveForm,exports.buildCardPolicyFormValuesFromRequest=buildCardPolicyFormValuesFromRequest,exports.buildCreateCardPolicyTemplateRequest=buildCreateCardPolicyTemplateRequest,exports.buildCreateCardPolicyTemplateRequestFromInteractiveForm=buildCreateCardPolicyTemplateRequestFromInteractiveForm,exports.buildMccCategoryChipId=buildMccCategoryChipId,exports.buildStickyKeySet=buildStickyKeySet,exports.buildVendorChipId=buildVendorChipId,exports.capitaliseWords=capitaliseWords,exports.capitalize=capitalize,exports.cellVerticalAlignToFlexAlign=cellVerticalAlignToFlexAlign,exports.clearAutoLogoutContext=clearAutoLogoutContext,exports.clickableRowStyles=clickableRowStyles,exports.cloneDeep=cloneDeep,exports.clsx=clsx$1,exports.components=components,exports.composeClasses=composeClasses,exports.computeRecommendationSelectionFeedback=computeRecommendationSelectionFeedback,exports.computeStatementProcessingStepsFromElapsedTime=computeStatementProcessingStepsFromElapsedTime,exports.computeStickyLeftOffsets=computeStickyLeftOffsets,exports.createSvgIcon=createSvgIcon,exports.currencyAmountCompactFormatter=currencyAmountCompactFormatter,exports.darkColors=darkColors,exports.darkTheme=darkTheme,exports.debounce=debounce$1,exports.debounce$1=debounce,exports.defaultCardPolicyFormValues=defaultCardPolicyFormValues,exports.defer=defer,exports.describeSchedule=describeSchedule,exports.designDimension=designDimension,exports.fetchRequest=fetchRequest,exports.fileDownload=fileDownload,exports.formHasDirtyFields=formHasDirtyFields,exports.formatReconAccountDisplayName=formatReconAccountDisplayName,exports.generateDataTestId=generateDataTestId,exports.generateUtilityClass=generateUtilityClass,exports.generateUtilityClasses=generateUtilityClasses,exports.getAlpha2=getAlpha2,exports.getAlpha3=getAlpha3,exports.getCockpitColor=getCockpitColor,exports.getColorForALabel=getColorForALabel,exports.getCountries=getCountries$1,exports.getCustomerDataFromAutoComplete=getCustomerDataFromAutoComplete,exports.getDefaultExportFromCjs=getDefaultExportFromCjs,exports.getDropdownStyles=getDropdownStyles$1,exports.getFileNameFromResponseHeaders=getFileNameFromResponseHeaders,exports.getFilteredThreads=getFilteredThreads,exports.getFullName=getFullName$1,exports.getHTMLWithCommentingSections=getHTMLWithCommentingSections,exports.getHistoricMonthsList=getHistoricMonthsList,exports.getInitialOpenThreadRequestFromSearch=getInitialOpenThreadRequestFromSearch,exports.getLabelColor=getLabelColor,exports.getMonthIndex=getMonthIndex,exports.getMultiSelectDropdownStyles=getMultiSelectDropdownStyles,exports.getRecipientTotalAmount=getRecipientTotalAmount,exports.getReconAccountDisplayName=getReconAccountDisplayName,exports.getReviewVendorTagColor=getReviewVendorTagColor,exports.getRichLabel=getRichLabel,exports.getSelectionData=getSelectionData,exports.getShowNegativeAmountInParenthesisDefaultValue=getShowNegativeAmountInParenthesisDefaultValue,exports.getShowNegativeAmountInParenthesisForPercentDefaultValue=getShowNegativeAmountInParenthesisForPercentDefaultValue,exports.getStableTransactionId=getStableTransactionId,exports.getStatementParseTransactionCount=getStatementParseTransactionCount,exports.getTagLabel=getTagLabel,exports.getTemplatesFromTemplatedData=getTemplatesFromTemplatedData,exports.getTransactionAppliedFiltersCount=getTransactionAppliedFiltersCount,exports.getTransactionTagColor=getTransactionTagColor$1,exports.getUpdatedFiltersOnCategoryChange=getUpdatedFiltersOnCategoryChange$1,exports.getUpdatedFiltersOnMatchingOperatorChange=getUpdatedFiltersOnMatchingOperatorChange$1,exports.getUpdatedFiltersOnValueChange=getUpdatedFiltersOnValueChange$1,exports.has=has,exports.hasAgentInsights=hasAgentInsights,exports.invoicingMenuList=invoicingMenuList,exports.isActualMatchingEnabledInAgentJeConfig=isActualMatchingEnabledInAgentJeConfig,exports.isCloseManagementMenu=isCloseManagementMenu,exports.isClosedCardStatus=isClosedCardStatus,exports.isCollaborationEntityType=isCollaborationEntityType,exports.isCommentNotificationKind=isCommentNotificationKind,exports.isEqual=isEqual$5,exports.isLayoutSupported=isLayoutSupported,exports.isMobileOrTabletView=isMobileOrTabletView,exports.isMobilePhoneScreen=isMobilePhoneScreen,exports.isRecommendationFeedbackDimension=isRecommendationFeedbackDimension,exports.isZeniAIUser=isZeniAIUser,exports.jsxRuntimeExports=jsxRuntimeExports,exports.lightColors=lightColors,exports.lightTheme=lightTheme,exports.memoTheme=memoTheme,exports.menuList=menuList,exports.mergeColumnDeclarativeWithRenderers=mergeColumnDeclarativeWithRenderers,exports.mergeLayoutDefaults=mergeLayoutDefaults,exports.nanoid=nanoid,exports.ownerDocument=ownerDocument,exports.ownerWindow=ownerWindow,exports.percentValueToString=percentValueToString,exports.reactIsExports=reactIsExports$1,exports.refType=refType,exports.requireToInteger=requireToInteger,exports.requireToString=requireToString,exports.require_baseProperty=require_baseProperty,exports.require_baseToString=require_baseToString,exports.require_castSlice=require_castSlice,exports.require_hasUnicode=require_hasUnicode,exports.require_stringToArray=require_stringToArray,exports.resolveBackgroundStatementProcessingCompletedSteps=resolveBackgroundStatementProcessingCompletedSteps,exports.resolveColumnWidth=resolveColumnWidth,exports.roundAmountIfNeeded=roundAmountIfNeeded,exports.roundOffNumberToTwoDecimal=roundOffNumberToTwoDecimal,exports.routineIdFromSession=routineIdFromSession,exports.scrollContainerToTargetAdjusted=scrollContainerToTargetAdjusted,exports.setAutoLogoutContext=setAutoLogoutContext,exports.setShowNegativeAmountInParenthesisDefaultValue=setShowNegativeAmountInParenthesisDefaultValue,exports.setShowNegativeAmountInParenthesisForPercentDefaultValue=setShowNegativeAmountInParenthesisForPercentDefaultValue,exports.settingMenuList=settingMenuList,exports.shortCadence=shortCadence,exports.sp=sp,exports.styled=styled,exports.textAlignForCell=textAlignForCell,exports.textStyles=textStyles,exports.toCollaborationEntityType=toCollaborationEntityType,exports.toGroupedAccountingClassOptions=toGroupedAccountingClassOptions,exports.toGroupedQboAccountOptions=toGroupedQboAccountOptions,exports.toInstitutionLogoDataUri=toInstitutionLogoDataUri,exports.toInvoicingMenuOptionType=toInvoicingMenuOptionType,exports.toInvoicingMenuOptionTypeStrict=toInvoicingMenuOptionTypeStrict,exports.toMccCategoryChipFieldValue=toMccCategoryChipFieldValue,exports.toMenuOptionType=toMenuOptionType,exports.toSettingsMenuOptionTypeStrict=toSettingsMenuOptionTypeStrict,exports.toSupportedLocaleStrict=toSupportedLocaleStrict,exports.toVendorChipFieldValue=toVendorChipFieldValue,exports.trackTreasuryTransferAnalytics=trackTreasuryTransferAnalytics,exports.uploadAttachmentReceipts=uploadAttachmentReceipts,exports.useActualMatchingEnabled=useActualMatchingEnabled,exports.useAgentInsightEdits=useAgentInsightEdits,exports.useAnimation=useAnimation,exports.useApprovalRulesV3Config=useApprovalRulesV3Config,exports.useBackNavigation=useBackNavigation,exports.useCollaborationInfoContext=useCollaborationInfoContext,exports.useCommentsDrawer=useCommentsDrawer,exports.useDefaultProps=useDefaultProps,exports.useDelayUnmount=useDelayUnmount,exports.useDropdownPortal=useDropdownPortal,exports.useEnhancedEffect=useEnhancedEffect,exports.useEventCallback=useEventCallback,exports.useExpenseAutomationEnabledForUser=useExpenseAutomationEnabledForUser,exports.useFieldArray=useFieldArray,exports.useFieldHelp=useFieldHelp,exports.useFilteredThreads=useFilteredThreads,exports.useFloatingThreads=useFloatingThreads,exports.useForm=useForm,exports.useFormContext=useFormContext,exports.useGlobalInfoContext=useGlobalInfoContext,exports.useHandleSelection=useHandleSelection,exports.useLockBodyScroll=useLockBodyScroll,exports.useMeetingLinks=useMeetingLinks,exports.usePanelDirtyGuardRegistry=usePanelDirtyGuardRegistry,exports.usePanelInternal=usePanelInternal,exports.usePrevious=usePrevious$1,exports.useQuickViewMode=useQuickViewMode,exports.useRegisterBackHandler=useRegisterBackHandler,exports.useRegisterPanelDirtyGuard=useRegisterPanelDirtyGuard,exports.useRequestCloseAllCommentDrawers=useRequestCloseAllCommentDrawers,exports.useRtl=useRtl,exports.useSessionAutoLogoutConfig=useSessionAutoLogoutConfig,exports.useSidePanelContext=useSidePanelContext,exports.useSlot=useSlot,exports.useSlotProps=useSlotProps,exports.useTheme=useTheme,exports.useToolkitContext=useToolkitContext,exports.useWindowSizeContext=useWindowSizeContext,exports.useZeniCardsVisibilityConfig=useZeniCardsVisibilityConfig,exports.useZeniFeatureContext=useZeniFeatureContext,exports.useZeniThemeContext=useZeniThemeContext,exports.waitFor=waitFor;
|
|
90049
|
-
//# sourceMappingURL=SessionTimeoutPopup-
|
|
90018
|
+
//# sourceMappingURL=SessionTimeoutPopup-BUzgbeku.cjs.map
|