@qaecy/cue-ui 0.0.66 → 0.0.68

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/1153.js CHANGED
@@ -1 +1 @@
1
- (self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[1153,9695],{65661(O,F,a){"use strict";a.d(F,{pC:()=>w,pL:()=>ee,rx:()=>U});var _=a(17705),t=a(35547),u=a(85802),s=a(67598),m=a(13319),k=a(85971),y=a(35381),M=a(42245),D=a(77089),P=a(1096),x=a(49769),A=a(16642),c=a(59352);const i=p=>[p],e=(p,f)=>({$implicit:p,index:f});function o(p,f){if(1&p){const r=t.RV6();t.j41(0,"cue-table-column-settings-modal",9),t.bIt("updateColumn",function(l){const T=u.eBV(r),S=t.XpG();return u.Njj(S.updateColumnDef(T.index,l))})("close",function(){u.eBV(r);const l=t.XpG();return u.Njj(l.handleModalClose())}),t.k0s()}if(2&p){const r=f,d=t.XpG();t.Y8G("columnDef",r.col)("columnIndex",r.index)("settings",d.settings())}}function g(p,f){1&p&&t.eu8(0)}function h(p,f){if(1&p&&t.DNE(0,g,1,0,"ng-container",13),2&p){const r=t.XpG(),d=r.$implicit,l=r.$index;t.Y8G("ngTemplateOutlet",f.templateRef)("ngTemplateOutletContext",t.l_i(2,e,d,l))}}function E(p,f){if(1&p){const r=t.RV6();t.j41(0,"cue-button",14),t.nI1(1,"transloco"),t.bIt("click",function(){u.eBV(r);const l=t.XpG(),T=l.$implicit,S=l.$index,R=t.XpG();return u.Njj(R.showColumnSettings(T,S))}),t.nrm(2,"cue-button-icon",15),t.k0s()}2&p&&t.Y8G("cueTooltip",t.bMT(1,1,"components.agGridColumnSelect.tooltipSettings"))}function j(p,f){if(1&p&&(t.j41(0,"div",8)(1,"cue-flexcontainer",10)(2,"cue-typography"),t.EFF(3),t.k0s(),t.nrm(4,"span",11),t.nVh(5,h,1,5,"ng-container"),t.nVh(6,E,3,3,"cue-button",12),t.k0s()()),2&p){let r;const d=f.$implicit,l=t.XpG();t.R7$(3),t.JRh(l.getLabel(d)),t.R7$(2),t.vxM((r=l.columnItemTpl())?5:-1,r),t.R7$(),t.vxM(l.settings().allowEditing?6:-1)}}function I(p,f){1&p&&t.eu8(0)}function z(p,f){1&p&&t.DNE(0,I,1,0,"ng-container",16),2&p&&t.Y8G("ngTemplateOutlet",f.templateRef)}function Y(p,f){if(1&p&&(t.j41(0,"div",8)(1,"cue-typography"),t.EFF(2),t.k0s()()),2&p){const r=f.$implicit,d=t.XpG();t.R7$(2),t.JRh(d.getLabel(r))}}let w=(()=>{class p{templateRef=(0,u.WQX)(t.C4Q);static ngTemplateContextGuard(r,d){return!0}static \u0275fac=function(d){return new(d||p)};static \u0275dir=t.FsC({type:p,selectors:[["","cueColumnItem",""]]})}return p})(),U=(()=>{class p{templateRef=(0,u.WQX)(t.C4Q);static \u0275fac=function(d){return new(d||p)};static \u0275dir=t.FsC({type:p,selectors:[["","cueColumnListFooter",""]]})}return p})(),ee=(()=>{class p{columnDefs=_.geq.required();columnDefsGross=(0,_.geq)([]);settings=(0,_.hFB)(new P.e);shown=(0,_.CGW)();columnItemTpl=(0,_.sbv)(w);columnListFooterTpl=(0,_.sbv)(U);shownColumns=(0,u.vPA)([]);hiddenColumns=(0,u.vPA)([]);displayColumnSettings=(0,u.vPA)(void 0);onNoColumnDefsGross=(0,u.QZP)(()=>{(!this.columnDefsGross()||0===this.columnDefsGross().length)&&this.columnDefsGross.set(this.columnDefs())});onColumnDefs=(0,u.QZP)(()=>{const r=this.columnDefs().map(l=>l.field),d=this.columnDefsGross().filter(l=>!r.includes(l.field));this.shownColumns.update(()=>[...this.columnDefs()]),this.hiddenColumns.update(()=>[...d])});drop(r){r.previousContainer===r.container?(0,s.HD)(r.container.data,r.previousIndex,r.currentIndex):(0,s.eg)(r.previousContainer.data,r.container.data,r.previousIndex,r.currentIndex);const d=this.shownColumns();this.columnDefs.update(()=>[...d]),this.shown.emit(d)}showColumnSettings(r,d){this.displayColumnSettings.set({col:r,index:d})}updateColumnDef(r,d){const l=this.columnDefs().map((T,S)=>S===r?{...T,...d}:T);this.columnDefs.set(l),this.shown.emit(l),this.shownColumns.set(l)}getLabel(r){return r.headerName||(0,A.x)(r.field)||"Unknown"}handleModalClose(){this.displayColumnSettings.set(void 0)}static \u0275fac=function(d){return new(d||p)};static \u0275cmp=t.VBU({type:p,selectors:[["cue-ag-grid-column-select"]],contentQueries:function(d,l,T){1&d&&t.C6U(T,l.columnItemTpl,w,5)(T,l.columnListFooterTpl,U,5),2&d&&t.NyB(2)},inputs:{columnDefs:[1,"columnDefs"],columnDefsGross:[1,"columnDefsGross"],settings:[1,"settings"]},outputs:{columnDefs:"columnDefsChange",columnDefsGross:"columnDefsGrossChange",shown:"shown"},decls:22,vars:19,consts:[["todoList","cdkDropList"],["doneList","cdkDropList"],[3,"columnDef","columnIndex","settings"],["size","xs","color","muted",2,"display","block","margin-bottom","8px"],["direction","row",2,"align-items","stretch","gap","12px"],["direction","column",1,"panel"],["size","l"],["cdkDropList","",1,"list",3,"cdkDropListDropped","cdkDropListData","cdkDropListConnectedTo"],["cdkDrag","",1,"box","draggable"],[3,"updateColumn","close","columnDef","columnIndex","settings"],["front","","justify","space-between","align","center",2,"width","100%"],[2,"display","flex","flex","1"],["variant","tertiary","size","s",3,"cueTooltip"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["variant","tertiary","size","s",3,"click","cueTooltip"],["icon","settings"],[4,"ngTemplateOutlet"]],template:function(d,l){if(1&d&&(t.nVh(0,o,1,3,"cue-table-column-settings-modal",2),t.j41(1,"cue-typography",3),t.EFF(2),t.nI1(3,"transloco"),t.k0s(),t.j41(4,"cue-flexcontainer",4)(5,"cue-flexcontainer",5)(6,"cue-typography",6),t.EFF(7),t.nI1(8,"transloco"),t.k0s(),t.j41(9,"div",7,0),t.bIt("cdkDropListDropped",function(S){return l.drop(S)}),t.Z7z(11,j,7,3,"div",8,t.Vm6),t.nVh(13,z,1,1,"ng-container"),t.k0s()(),t.j41(14,"cue-flexcontainer",5)(15,"cue-typography",6),t.EFF(16),t.nI1(17,"transloco"),t.k0s(),t.j41(18,"div",7,1),t.bIt("cdkDropListDropped",function(S){return l.drop(S)}),t.Z7z(20,Y,3,1,"div",8,t.Vm6),t.k0s()()()),2&d){let T,S;const R=t.sdS(10),G=t.sdS(19);t.vxM((T=l.displayColumnSettings())?0:-1,T),t.R7$(2),t.JRh(t.bMT(3,9,"components.agGridColumnSelect.dragHint")),t.R7$(5),t.JRh(t.bMT(8,11,"components.agGridColumnSelect.titleShown"));const $=l.shownColumns();t.R7$(2),t.Y8G("cdkDropListData",$)("cdkDropListConnectedTo",t.eq3(15,i,G)),t.R7$(2),t.Dyx($),t.R7$(2),t.vxM((S=l.columnListFooterTpl())?13:-1,S),t.R7$(3),t.JRh(t.bMT(17,13,"components.agGridColumnSelect.titleHidden"));const N=l.hiddenColumns();t.R7$(2),t.Y8G("cdkDropListData",N)("cdkDropListConnectedTo",t.eq3(17,i,R)),t.R7$(2),t.Dyx(N)}},dependencies:[s.O7,s.T1,M.Typography,y.FlexContainer,k.Button,m.ButtonIcon,D.d,P.T,x.T3,c.Kj],styles:[".panel[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:column;gap:8px}.list[_ngcontent-%COMP%]{border:1px solid var(--cue-card-border-color);min-height:60px;flex:1;background:var(--cue-main-background);border-radius:var(--cue-card-border-radius);overflow:hidden;display:block}.list.cdk-drop-list-receiving[_ngcontent-%COMP%]{border-color:var(--cue-primary);border-style:dashed}.box[_ngcontent-%COMP%]{padding:calc(var(--cue-card-padding-y) * .6) var(--cue-card-padding-x);border-bottom:1px solid var(--cue-card-border-color);color:var(--cue-main-foreground);display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;background:var(--cue-main-background);font-size:14px;transition:background .15s ease}.box[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--cue-main-foreground) 5%,var(--cue-main-background))}.draggable[_ngcontent-%COMP%]{cursor:grab}.draggable[_ngcontent-%COMP%]:active{cursor:grabbing}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:var(--cue-card-border-radius);border:1px solid var(--cue-card-border-color);background:var(--cue-main-background);color:var(--cue-main-foreground);padding:calc(var(--cue-card-padding-y) * .6) var(--cue-card-padding-x);font-size:14px;box-shadow:var(--cue-card-box-shadow)}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--cue-primary) 10%,var(--cue-main-background));border-bottom:1px dashed var(--cue-primary);min-height:40px;opacity:1}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.box[_ngcontent-%COMP%]:last-child{border-bottom:none}.list.cdk-drop-list-dragging[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"],changeDetection:0})}return p})()},1096(O,F,a){"use strict";a.d(F,{e:()=>ue,T:()=>me});var _=a(17705),t=a(32271),u=a(59352),s=a(35381),m=a(42245),k=a(70063),y=a(59695),M=a(77089),D=a(58957),P=a(85971),x=a(13319),A=a(55745),c=a(25764),i=a(85802),e=a(35547);let o=(()=>{class v{_value=(0,i.vPA)("");_options=(0,i.vPA)([]);_disabled=(0,i.vPA)(!1);_disabledTooltip=(0,i.vPA)("");_canChange=(0,i.vPA)(void 0);_optionValues=(0,t.EW)(()=>this._options().map(n=>n.value));_labelMap=(0,t.EW)(()=>Object.fromEntries(this._options().map(n=>[n.value,n.label])));_params;agInit(n){this._apply(n)}refresh(n){return this._apply(n),!0}onValueChange(n){if(void 0===n)return;const b=String(n),C=this._canChange();C&&!C(b)||(this._value.set(b),this._params.setValue?.(b))}_apply(n){this._params=n,this._value.set(n.value??"");const b="function"==typeof n.colDef?.cellRendererParams?n.colDef.cellRendererParams(n):n.colDef?.cellRendererParams??{};this._options.set(b.options??[]),this._disabled.set(b.disabled??!1),this._disabledTooltip.set(b.disabledTooltip??""),this._canChange.set(b.canChange??void 0)}static \u0275fac=function(b){return new(b||v)};static \u0275cmp=e.VBU({type:v,selectors:[["cue-select-cell-renderer"]],decls:1,vars:7,consts:[[3,"valueChange","options","labelMap","value","underline","menuPosition","disabled","cueTooltip"]],template:function(b,C){1&b&&(e.j41(0,"cue-select",0),e.bIt("valueChange",function(_e){return C.onValueChange(_e)}),e.k0s()),2&b&&e.Y8G("options",C._optionValues())("labelMap",C._labelMap())("value",C._value())("underline",!1)("menuPosition","bottomleft")("disabled",C._disabled())("cueTooltip",C._disabled()?C._disabledTooltip():"")},dependencies:[k.Select,M.d],styles:["[_nghost-%COMP%]{display:block;width:100%;overflow:visible;--cue-input-value-color: currentColor}[_nghost-%COMP%] .select-trigger{font-size:var(--ag-font-size, inherit)}"],changeDetection:0})}return v})();var g=a(67374),h=a.n(g),E=a(24955),j=a.n(E),I=a(85164),z=a.n(I);a(69785),a(52269),a(51409),a(34230),a(72494),a(59531),h().extend(j()),h().extend(z());let r=(()=>{class v{_transloco=(0,i.WQX)(u.JO);transform(n,b="dateTime"){if(!n)return"";const C=this._transloco.getActiveLang(),L=h()(n).locale(C);return"timeAgo"===b?L.fromNow():L.format("date"===b?"LL":"shortDate"===b?"L":"LLL")}static \u0275fac=function(b){return new(b||v)};static \u0275pipe=e.EJ8({name:"cueLocalDate",type:v,pure:!0})}return v})(),d=(()=>{class v{_value=(0,i.vPA)("");_format=(0,i.vPA)("dateTime");agInit(n){this._apply(n)}refresh(n){return this._apply(n),!0}_apply(n){this._value.set(n.value??""),this._format.set(n.colDef?.cellRendererParams?.dateFormat??"dateTime")}static \u0275fac=function(b){return new(b||v)};static \u0275cmp=e.VBU({type:v,selectors:[["cue-date-cell-renderer"]],decls:2,vars:4,template:function(b,C){1&b&&(e.EFF(0),e.nI1(1,"cueLocalDate")),2&b&&e.JRh(e.i5U(1,1,C._value(),C._format()))},dependencies:[r],encapsulation:2,changeDetection:0})}return v})();const l=["*"];function T(v,B){1&v&&e.SdG(0)}let S=(()=>{class v{label=_.hFB.required();expanded=(0,_.geq)(!1);size=(0,_.hFB)("m");info=(0,_.hFB)("");expandToggled=(0,_.CGW)();toggle(){this.expanded.set(!this.expanded()),this.expandToggled.emit(this.expanded())}static \u0275fac=function(b){return new(b||v)};static \u0275cmp=e.VBU({type:v,selectors:[["cue-expansion-panel"]],inputs:{label:[1,"label"],expanded:[1,"expanded"],size:[1,"size"],info:[1,"info"]},outputs:{expanded:"expandedChange",expandToggled:"expandToggled"},ngContentSelectors:l,decls:8,vars:9,consts:[["direction","column","gap","xs",2,"width","100%"],["justify","space-between","align","center",1,"expansion-header",3,"click"],[3,"size","info"],["variant","ghost",3,"size"],["icon","arrow-dropdown"]],template:function(b,C){1&b&&(e.NAR(),e.j41(0,"cue-flexcontainer",0)(1,"cue-flexcontainer",1),e.bIt("click",function(){return C.toggle()}),e.j41(2,"cue-typography",2),e.EFF(3),e.k0s(),e.j41(4,"cue-button",3)(5,"span"),e.nrm(6,"cue-button-icon",4),e.k0s()()(),e.nVh(7,T,1,0),e.k0s()),2&b&&(e.R7$(2),e.Y8G("size",C.size())("info",C.info()),e.R7$(),e.JRh(C.label()),e.R7$(),e.Y8G("size",C.size()),e.R7$(),e.AVh("rotate",!0)("rotate-180",C.expanded()),e.R7$(2),e.vxM(C.expanded()?7:-1))},dependencies:[m.Typography,s.FlexContainer,P.Button,x.ButtonIcon],styles:[".expansion-header[_ngcontent-%COMP%]{cursor:pointer}.expansion-content[_ngcontent-%COMP%]{overflow:hidden;transition:max-height .3s cubic-bezier(.4,0,.2,1)}.rotate[_ngcontent-%COMP%]{transition:transform .3s cubic-bezier(.4,0,.2,1);display:inline-block}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}"],changeDetection:0})}return v})();var R=a(16642),G=a(3183),$=a(15902),N=a(67400);const W=["*",[["","cueDisplayContent",""]],[["","cueDataContent",""]],[["","cueBehaviorContent",""]],[["","cueExtraContent",""]]],J=["*","[cueDisplayContent]","[cueDataContent]","[cueBehaviorContent]","[cueExtraContent]"],H=(v,B)=>B.name;function Q(v,B){if(1&v){const n=e.RV6();e.j41(0,"cue-input",7),e.nI1(1,"transloco"),e.bIt("valueChange",function(C){i.eBV(n);const L=e.XpG(2);return i.Njj(L.setLabel(C))}),e.k0s()}if(2&v){const n=e.XpG(2);e.Y8G("label",e.bMT(1,2,"components.agGridColumnSelect.labelLabel"))("value",n.label())}}function K(v,B){if(1&v){const n=e.RV6();e.j41(0,"cue-button",11),e.bIt("click",function(){const C=i.eBV(n).$implicit,L=e.XpG(3);return i.Njj(L.setTextAlign(C))}),e.nrm(1,"cue-button-icon",12),e.k0s()}if(2&v){const n=B.$implicit,b=e.XpG(3);e.Y8G("selected",b.textAlign()===n),e.R7$(),e.Y8G("icon",b.ALIGN_ICON[n])}}function V(v,B){if(1&v&&(e.j41(0,"cue-typography",8),e.EFF(1),e.nI1(2,"transloco"),e.k0s(),e.j41(3,"cue-flexcontainer",9),e.Z7z(4,K,2,2,"cue-button",10,e.Vm6),e.k0s()),2&v){const n=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,1,"components.agGridColumnSelect.labelTextAlign")," "),e.R7$(3),e.Dyx(n.alignOptions)}}function X(v,B){if(1&v){const n=e.RV6();e.j41(0,"cue-flexcontainer",6)(1,"cue-typography",13),e.nI1(2,"transloco"),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.j41(5,"cue-input-switch",14),e.bIt("checkedChange",function(C){i.eBV(n);const L=e.XpG(2);return i.Njj(L.setMultiline(C))}),e.k0s()()}if(2&v){const n=e.XpG(2);e.R7$(),e.Y8G("cueTooltip",e.bMT(2,3,"components.agGridColumnSelect.tooltipMultiline")),e.R7$(2),e.JRh(e.bMT(4,5,"components.agGridColumnSelect.labelMultiline")),e.R7$(2),e.Y8G("checked",n.multiline())}}function Z(v,B){if(1&v&&(e.j41(0,"cue-expansion-panel",2),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4),e.nVh(3,Q,2,4,"cue-input",5),e.nVh(4,V,6,3),e.nVh(5,X,6,7,"cue-flexcontainer",6),e.SdG(6,1),e.k0s()()),2&v){const n=e.XpG();e.Y8G("label",e.bMT(1,5,"components.agGridColumnSelect.groupDisplay"))("expanded",!0),e.R7$(3),e.vxM(n.settings().allowSettingLabel?3:-1),e.R7$(),e.vxM(n.settings().allowSettingTextAlign?4:-1),e.R7$(),e.vxM(n.settings().allowSettingMultiline?5:-1)}}function q(v,B){if(1&v){const n=e.RV6();e.j41(0,"cue-select",16),e.nI1(1,"transloco"),e.bIt("valueChange",function(C){i.eBV(n);const L=e.XpG(2);return i.Njj(L.setFilterType(C))}),e.k0s()}if(2&v){const n=e.XpG(2);e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.labelFilterType"))("value",n.filterType())("options",n.filterTypeOptions)("labelMap",n.filterTypeLabelMap())}}function te(v,B){if(1&v){const n=e.RV6();e.j41(0,"cue-input",7),e.nI1(1,"transloco"),e.bIt("valueChange",function(C){i.eBV(n);const L=e.XpG(2);return i.Njj(L.setEnumValues(C))}),e.k0s()}if(2&v){const n=e.XpG(2);e.Y8G("label",e.bMT(1,2,"components.agGridColumnSelect.labelEnumValues"))("value",n.enumValuesText())}}function ne(v,B){if(1&v){const n=e.RV6();e.j41(0,"cue-select",16),e.bIt("valueChange",function(C){i.eBV(n);const L=e.XpG(3);return i.Njj(L.setDateFormat(C))}),e.k0s()}if(2&v){const n=e.XpG(3);e.Y8G("label",n._labelDateFormat())("value",n.dateFormat())("options",n.dateFormatOptions)("labelMap",n.dateFormatLabelMap())}}function ie(v,B){if(1&v){const n=e.RV6();e.j41(0,"cue-select",16),e.bIt("valueChange",function(C){i.eBV(n);const L=e.XpG(2);return i.Njj(L.setDataType(C))}),e.k0s(),e.nVh(1,ne,1,4,"cue-select",15)}if(2&v){const n=e.XpG(2);e.Y8G("label",n._labelDataType())("value",n.dataType())("options",n.dataTypeOptions)("labelMap",n.dataTypeLabelMap()),e.R7$(),e.vxM("date"===n.dataType()?1:-1)}}function oe(v,B){if(1&v&&(e.j41(0,"cue-expansion-panel",3),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4),e.nVh(3,q,2,6,"cue-select",15),e.nVh(4,te,2,4,"cue-input",5),e.nVh(5,ie,2,5),e.SdG(6,2),e.k0s()()),2&v){const n=e.XpG();e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.groupData")),e.R7$(3),e.vxM(n.settings().allowSettingFilterType?3:-1),e.R7$(),e.vxM(n.settings().allowSettingEnumValues?4:-1),e.R7$(),e.vxM(n.settings().allowSettingDataType?5:-1)}}function ae(v,B){if(1&v){const n=e.RV6();e.j41(0,"cue-expansion-panel",3),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4)(3,"cue-flexcontainer",6)(4,"cue-typography",13),e.nI1(5,"transloco"),e.EFF(6),e.nI1(7,"transloco"),e.k0s(),e.j41(8,"cue-input-switch",14),e.bIt("checkedChange",function(C){i.eBV(n);const L=e.XpG();return i.Njj(L.setEditable(C))}),e.k0s()(),e.SdG(9,3),e.k0s()()}if(2&v){const n=e.XpG();e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.groupBehavior")),e.R7$(4),e.Y8G("cueTooltip",e.bMT(5,6,"components.agGridColumnSelect.tooltipAllowEditing")),e.R7$(2),e.JRh(e.bMT(7,8,"components.agGridColumnSelect.labelEditable")),e.R7$(2),e.Y8G("checked",n.editable())}}function re(v,B){if(1&v&&(e.j41(0,"cue-expansion-panel",2)(1,"cue-flexcontainer",4),e.SdG(2,4),e.k0s()()),2&v){const n=e.XpG();e.Y8G("label",n.extraPanelLabel())("expanded",n.extraPanelExpanded())}}function se(v,B){if(1&v&&(e.j41(0,"cue-typography",19),e.EFF(1),e.nI1(2,"transloco"),e.j41(3,"strong"),e.EFF(4),e.k0s()()),2&v){const n=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,2,"components.agGridColumnSelect.labelPostProcessPreview"),": "),e.R7$(3),e.JRh(n.postProcessFormulaPreview())}}function le(v,B){if(1&v&&(e.j41(0,"cue-flexcontainer",21)(1,"cue-typography",22),e.EFF(2),e.k0s(),e.j41(3,"cue-typography",23),e.EFF(4),e.k0s()()),2&v){const n=B.$implicit;e.R7$(2),e.JRh(n.signature),e.R7$(2),e.JRh(n.description)}}function ce(v,B){if(1&v){const n=e.RV6();e.j41(0,"cue-expansion-panel",3),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",17)(3,"cue-input",18),e.nI1(4,"transloco"),e.nI1(5,"transloco"),e.nI1(6,"transloco"),e.bIt("valueChange",function(C){i.eBV(n);const L=e.XpG();return i.Njj(L.setPostProcessFormula(C))}),e.k0s(),e.nVh(7,se,5,4,"cue-typography",19),e.j41(8,"cue-expansion-panel",20),e.nI1(9,"transloco"),e.j41(10,"cue-flexcontainer",17),e.Z7z(11,le,5,2,"cue-flexcontainer",21,H),e.k0s()()()()}if(2&v){const n=e.XpG();e.Y8G("label",e.bMT(1,9,"components.agGridColumnSelect.groupPostProcess")),e.R7$(3),e.Y8G("label",e.bMT(4,11,"components.agGridColumnSelect.labelPostProcessFormula"))("info",e.bMT(5,13,"components.agGridColumnSelect.tooltipPostProcessFormula"))("placeholder",e.bMT(6,15,"components.agGridColumnSelect.placeholderPostProcessFormula"))("value",n.postProcessFormula())("error",n.postProcessFormulaError()??void 0),e.R7$(4),e.vxM(n.postProcessFormulaPreview()?7:-1),e.R7$(),e.Y8G("label",e.bMT(9,17,"components.agGridColumnSelect.labelPostProcessFunctions"))("expanded",!1),e.R7$(3),e.Dyx(n.formulaFunctions)}}class ue{allowEditing=!0;allowToggleEditable=!0;allowToggleHideOnHover=!0;allowSettingTextAlign=!0;allowSettingLabel=!0;allowSettingFilterType=!0;allowSettingMultiline=!0;allowSettingEnumValues=!0;allowSettingDataType=!1;allowSettingPostProcess=!0}const de={Text:$.U,Number:"agNumberColumnFilter",Date:"agDateColumnFilter",Select:G.A,None:!1,Auto:!0},pe={agTextColumnFilter:"Text",agNumberColumnFilter:"Number",agDateColumnFilter:"Date",false:"None",true:"Auto"};let me=(()=>{class v{columnDef=_.geq.required();columnIndex=(0,_.hFB)();updateColumn=(0,_.CGW)();close=(0,_.CGW)();settings=_.hFB.required();extraPanelLabel=(0,_.hFB)();extraPanelExpanded=(0,_.hFB)(!0);minWidth=(0,_.hFB)("600px");alignOptions=["left","center","right"];filterTypeOptions=["Text","Number","Date","Select","None","Auto"];dateFormatOptions=["dateTime","date","shortDate","timeAgo"];dataTypeOptions=["text","number","date","boolean"];_labelDataType=(0,u.Xx)("components.agGridColumnSelect.labelDataType");_labelDateFormat=(0,u.Xx)("components.agGridColumnSelect.labelDateFormat");_dtText=(0,u.Xx)("components.agGridColumnSelect.dataTypeText");_dtNumber=(0,u.Xx)("components.agGridColumnSelect.dataTypeNumber");_dtDate=(0,u.Xx)("components.agGridColumnSelect.dataTypeDate");_dtBoolean=(0,u.Xx)("components.agGridColumnSelect.dataTypeBoolean");_dfDateTime=(0,u.Xx)("components.agGridColumnSelect.dateFormatDateTime");_dfDate=(0,u.Xx)("components.agGridColumnSelect.dateFormatDate");_dfShortDate=(0,u.Xx)("components.agGridColumnSelect.dateFormatShortDate");_dfTimeAgo=(0,u.Xx)("components.agGridColumnSelect.dateFormatTimeAgo");dataTypeLabelMap=(0,t.EW)(()=>({text:this._dtText(),number:this._dtNumber(),date:this._dtDate(),boolean:this._dtBoolean()}));dateFormatLabelMap=(0,t.EW)(()=>({dateTime:this._dfDateTime(),date:this._dfDate(),shortDate:this._dfShortDate(),timeAgo:this._dfTimeAgo()}));_labelText=(0,u.Xx)("components.agGridColumnSelect.filterTypeText");_labelNumber=(0,u.Xx)("components.agGridColumnSelect.filterTypeNumber");_labelDate=(0,u.Xx)("components.agGridColumnSelect.filterTypeDate");_labelSelect=(0,u.Xx)("components.agGridColumnSelect.filterTypeSelect");_labelNone=(0,u.Xx)("components.agGridColumnSelect.filterTypeNone");_labelAuto=(0,u.Xx)("components.agGridColumnSelect.filterTypeAuto");filterTypeLabelMap=(0,t.EW)(()=>({Text:this._labelText(),Number:this._labelNumber(),Date:this._labelDate(),Select:this._labelSelect(),None:this._labelNone(),Auto:this._labelAuto()}));ALIGN_ICON={center:"text-align-center",left:"text-align-left",right:"text-align-right"};dataType=(0,t.EW)(()=>{const n=this.columnDef().cellRenderer;return n===d||"DateCellRenderer"===n?"date":"text"});dateFormat=(0,t.EW)(()=>{const n=this.columnDef().cellRenderer;return n===d||"DateCellRenderer"===n?this.columnDef().cellRendererParams?.dateFormat??"dateTime":"dateTime"});editable=(0,t.EW)(()=>!0===this.columnDef().editable);multiline=(0,t.EW)(()=>{const n=this.columnDef().cellRenderer;return n===c.l||"MultilineCellRenderer"===n});_ALIGN_TO_FLEX={left:"flex-start",right:"flex-end",center:"center"};_FLEX_TO_ALIGN={"flex-start":"left","flex-end":"right",center:"center",left:"left",right:"right"};textAlign=(0,t.uu)(()=>{const n=this.columnDef().cellStyle;return n?.textAlign||this._FLEX_TO_ALIGN[n?.justifyContent]||"left"});filterType=(0,t.EW)(()=>{const n=this.columnDef().filter;return n===G.A?"Select":n===$.U?"Text":pe[n]||"Auto"});enumValuesText=(0,t.EW)(()=>(this.columnDef().cellRendererParams?.options??[]).map(b=>b.value).join(", "));label=(0,t.EW)(()=>this.columnDef().headerName||(0,R.x)(this.columnDef().field)||"Unknown");setEditable(n){const b=this.columnDef().cellRendererParams;this.updateColumn.emit(b?.options?.length?{editable:n,cellRendererParams:{...b,disabled:!n}}:{editable:n})}setMultiline(n){this.updateColumn.emit({cellRenderer:n?c.l:void 0,cellRendererParams:{lineHeight:"1.8"},autoHeight:!0})}setLabel(n){this.updateColumn.emit({headerName:n})}setTextAlign(n){const b=this.columnDef().cellStyle||{};this.updateColumn.emit({cellStyle:{...b,display:"flex",justifyContent:this._ALIGN_TO_FLEX[n]??n,textAlign:n},headerClass:`header-align-${n}`}),this.textAlign.set(n)}setFilterType(n){this.updateColumn.emit({filter:de[n]??!0})}setEnumValues(n){const b=n.split(",").map(C=>C.trim()).filter(C=>C.length>0);if(0===b.length)this.updateColumn.emit({cellRenderer:void 0,cellRendererParams:void 0});else{const C=b.map(L=>({value:L,label:L}));this.updateColumn.emit({cellRenderer:o,cellRendererParams:{options:C,disabled:!this.editable()}})}}setDateFormat(n){n&&this.updateColumn.emit({cellRenderer:d,cellRendererParams:{dateFormat:n}})}setDataType(n){this.updateColumn.emit("date"===n?{cellRenderer:d,cellRendererParams:{dateFormat:"dateTime"}}:{cellRenderer:void 0,cellRendererParams:void 0})}formulaFunctions=N.Zv;postProcessFormula=(0,t.EW)(()=>(0,N.PH)(this.columnDef().postProcess));postProcessFormulaError=(0,t.EW)(()=>(0,N.NF)(this.postProcessFormula()));postProcessFormulaPreview=(0,t.EW)(()=>{const n=this.postProcessFormula();return!n||this.postProcessFormulaError()?"":(0,N.w9)(n,"42")});setPostProcessFormula(n){const b=n.trim();this.updateColumn.emit({postProcess:b?{type:"formula",expression:b}:void 0})}static \u0275fac=function(b){return new(b||v)};static \u0275cmp=e.VBU({type:v,selectors:[["cue-table-column-settings-modal"]],inputs:{columnDef:[1,"columnDef"],columnIndex:[1,"columnIndex"],settings:[1,"settings"],extraPanelLabel:[1,"extraPanelLabel"],extraPanelExpanded:[1,"extraPanelExpanded"],minWidth:[1,"minWidth"]},outputs:{columnDef:"columnDefChange",updateColumn:"updateColumn",close:"close"},ngContentSelectors:J,decls:9,vars:9,consts:[[3,"close","label","minWidth"],["direction","column","gap","s",2,"overflow-y","auto","max-height","70vh","min-height","0","width","100%"],[3,"label","expanded"],[3,"label"],["direction","column"],[3,"label","value"],["direction","row","gap","l","justify","space-between","align","center"],[3,"valueChange","label","value"],["size","s"],["direction","row"],["variant","tertiary","size","s",3,"selected"],["variant","tertiary","size","s",3,"click","selected"],[3,"icon"],["size","m",3,"cueTooltip"],["size","m",3,"checkedChange","checked"],[3,"label","value","options","labelMap"],[3,"valueChange","label","value","options","labelMap"],["direction","column","gap","xs"],[3,"valueChange","label","info","placeholder","value","error"],["size","xs",2,"opacity","0.65"],["size","s",3,"label","expanded"],["direction","row","gap","s","align","start"],["size","xs",2,"font-family","monospace","min-width","210px","flex-shrink","0"],["size","xs",2,"opacity","0.7"]],template:function(b,C){1&b&&(e.NAR(W),e.j41(0,"cue-modal",0),e.nI1(1,"transloco"),e.bIt("close",function(){return C.close.emit()}),e.j41(2,"cue-flexcontainer",1),e.nVh(3,Z,7,7,"cue-expansion-panel",2),e.nVh(4,oe,7,6,"cue-expansion-panel",3),e.nVh(5,ae,10,10,"cue-expansion-panel",3),e.nVh(6,re,3,2,"cue-expansion-panel",2),e.nVh(7,ce,13,19,"cue-expansion-panel",3),e.SdG(8),e.k0s()()),2&b&&(e.Y8G("label",e.bMT(1,7,"components.agGridColumnSelect.titleColumnSettings"))("minWidth",C.minWidth()),e.R7$(3),e.vxM(C.settings().allowSettingLabel||C.settings().allowSettingTextAlign||C.settings().allowSettingMultiline?3:-1),e.R7$(),e.vxM(C.settings().allowSettingFilterType||C.settings().allowSettingEnumValues||C.settings().allowSettingDataType?4:-1),e.R7$(),e.vxM(C.settings().allowToggleEditable?5:-1),e.R7$(),e.vxM(C.extraPanelLabel()?6:-1),e.R7$(),e.vxM(C.settings().allowSettingPostProcess?7:-1))},dependencies:[A.a,s.FlexContainer,m.Typography,k.Select,y.Switch,M.d,D.Input,P.Button,x.ButtonIcon,S,u.Kj],encapsulation:2,changeDetection:0})}return v})()},16642(O,F,a){"use strict";function _(t){if(t)return t.replace(/([A-Z])/g," $1").replace(/^./,u=>u.toUpperCase())}a.d(F,{x:()=>_})},3183(O,F,a){"use strict";a.d(F,{A:()=>c});var _=a(17705),t=a(85802),u=a(89417),s=a(21359),m=a(58957),k=a(35381),y=a(42245),M=a(35547);const D=(i,e)=>e.value;function P(i,e){if(1&i){const o=M.RV6();M.j41(0,"cue-input",6),M.bIt("valueChange",function(h){t.eBV(o);const E=M.XpG();return E.searchText=h,t.Njj(E.onSearchChange())}),M.k0s()}if(2&i){const o=M.XpG();M.Y8G("value",o.searchText)}}function x(i,e){if(1&i){const o=M.RV6();M.j41(0,"cue-checkbox",7),M.bIt("checkedChange",function(h){const E=t.eBV(o).$implicit,j=M.XpG();return E.selected=h,t.Njj(j.onSelectionChange())}),M.k0s()}if(2&i){const o=e.$implicit;M.Y8G("label",o.value||"(blank)")("checked",o.selected)}}function A(i,e){1&i&&(M.j41(0,"cue-typography",5),M.EFF(1,"No results"),M.k0s())}let c=(()=>{class i{_cdr=(0,t.WQX)(_.gRc);_params;options=[];filteredOptions=[];searchText="";agInit(o){this._params=o}afterGuiAttached(o){this._refreshOptions(),this._cdr.markForCheck()}onNewRowsLoaded(){this._refreshOptions(),this._cdr.markForCheck()}isFilterActive(){return this.options.some(o=>!o.selected)}doesFilterPass(o){const g=new Set(this.options.filter(I=>I.selected).map(I=>I.value)),h=this._params.getValue(o.node),E=null==h?"":String(h);return"..."===E||"Loading..."===E||(""===E?g.has(""):E.split(", ").map(I=>I.trim()).some(I=>g.has(I)))}getModel(){return this.isFilterActive()?{selectedValues:this.options.filter(o=>o.selected).map(o=>o.value)}:null}setModel(o){if(o){const g=new Set(o.selectedValues);this.options.forEach(h=>h.selected=g.has(h.value))}else this.options.forEach(g=>g.selected=!0);this._applySearch(),this._cdr.markForCheck()}onSelectionChange(){this._params.filterChangedCallback(),this._cdr.markForCheck()}onSearchChange(){this._applySearch(),this._cdr.markForCheck()}get allSelected(){return this.options.length>0&&this.options.every(o=>o.selected)}toggleAll(o){this.options.forEach(g=>g.selected=o),this._applySearch(),this._params.filterChangedCallback(),this._cdr.markForCheck()}_refreshOptions(){const o=new Set;this._params.api.forEachNode(h=>{const E=this._params.getValue(h);if(null==E||""===E)o.add("");else{const j=String(E);if("..."===j||"Loading..."===j)return;const I=j.split(", ").map(z=>z.trim());for(const z of I)o.add(z)}});const g=new Map(this.options.map(h=>[h.value,h.selected]));this.options=Array.from(o).sort((h,E)=>h.localeCompare(E)).map(h=>({value:h,selected:g.get(h)??!0})),this._applySearch()}_applySearch(){const o=this.searchText.toLowerCase().trim();this.filteredOptions=o?this.options.filter(g=>g.value.toLowerCase().includes(o)):this.options}static \u0275fac=function(g){return new(g||i)};static \u0275cmp=M.VBU({type:i,selectors:[["cue-multi-select-filter"]],decls:7,vars:3,consts:[["direction","column","gap","s"],["placeholder","Search...","size","s",3,"value"],["size","s","label","Select all",3,"checkedChange","checked"],[1,"msf-list"],["size","s",3,"label","checked"],["size","s"],["placeholder","Search...","size","s",3,"valueChange","value"],["size","s",3,"checkedChange","label","checked"]],template:function(g,h){1&g&&(M.j41(0,"cue-flexcontainer",0),M.nVh(1,P,1,1,"cue-input",1),M.j41(2,"cue-checkbox",2),M.bIt("checkedChange",function(j){return h.toggleAll(j)}),M.k0s(),M.j41(3,"div",3),M.Z7z(4,x,1,2,"cue-checkbox",4,D),M.nVh(6,A,2,0,"cue-typography",5),M.k0s()()),2&g&&(M.R7$(),M.vxM(h.options.length>10?1:-1),M.R7$(),M.Y8G("checked",h.allSelected),M.R7$(2),M.Dyx(h.filteredOptions),M.R7$(2),M.vxM(0===h.filteredOptions.length?6:-1))},dependencies:[u.YN,s.Checkbox,m.Input,y.Typography,k.FlexContainer],styles:["[_nghost-%COMP%]{display:block;padding:var(--cue-card-padding-y) var(--cue-card-padding-x);min-width:200px;max-width:300px;box-sizing:border-box}.msf-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;max-height:200px;overflow-y:auto}"],changeDetection:0})}return i})()},15902(O,F,a){"use strict";a.d(F,{U:()=>A});var _=a(17705),t=a(85802),u=a(32271),s=a(59352),m=a(58957),k=a(35381),y=a(70063),M=a(42245),D=a(35547);function P(c,i){if(1&c){const e=D.RV6();D.j41(0,"cue-input",4),D.bIt("valueChange",function(g){t.eBV(e);const h=D.XpG();return t.Njj(h.onValueChange(g))}),D.k0s()}if(2&c){const e=D.XpG();D.Y8G("value",e.filterText)}}function x(c,i){if(1&c){const e=D.RV6();D.j41(0,"cue-typography",5),D.bIt("click",function(){t.eBV(e);const g=D.XpG();return t.Njj(g.clear())}),D.EFF(1,"Clear"),D.k0s()}}let A=(()=>{class c{_cdr=(0,t.WQX)(_.gRc);_params;filterText="";filterType="contains";filterTypeOptions=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"];_labelContains=(0,s.Xx)("components.agGridColumnSelect.textFilterContains");_labelNotContains=(0,s.Xx)("components.agGridColumnSelect.textFilterNotContains");_labelEquals=(0,s.Xx)("components.agGridColumnSelect.textFilterEquals");_labelNotEqual=(0,s.Xx)("components.agGridColumnSelect.textFilterNotEqual");_labelStartsWith=(0,s.Xx)("components.agGridColumnSelect.textFilterStartsWith");_labelEndsWith=(0,s.Xx)("components.agGridColumnSelect.textFilterEndsWith");_labelBlank=(0,s.Xx)("components.agGridColumnSelect.textFilterBlank");_labelNotBlank=(0,s.Xx)("components.agGridColumnSelect.textFilterNotBlank");filterTypeLabelMap=(0,u.EW)(()=>({contains:this._labelContains(),notContains:this._labelNotContains(),equals:this._labelEquals(),notEqual:this._labelNotEqual(),startsWith:this._labelStartsWith(),endsWith:this._labelEndsWith(),blank:this._labelBlank(),notBlank:this._labelNotBlank()}));showTextInput=(0,u.EW)(()=>!["blank","notBlank"].includes(this.filterType));agInit(e){this._params=e}afterGuiAttached(e){this._cdr.markForCheck()}isFilterActive(){return!!["blank","notBlank"].includes(this.filterType)||this.filterText.trim().length>0}doesFilterPass(e){const o=this._params.getValue(e.node),g=null==o?"":String(o),h=this.filterText.toLowerCase().trim(),E=g.toLowerCase();switch(this.filterType){case"contains":default:return E.includes(h);case"notContains":return!E.includes(h);case"equals":return E===h;case"notEqual":return E!==h;case"startsWith":return E.startsWith(h);case"endsWith":return E.endsWith(h);case"blank":return""===g;case"notBlank":return""!==g}}getModel(){return this.isFilterActive()?{filterType:"text",type:this.filterType,filter:this.filterText}:null}setModel(e){this.filterText=e?.filter??"",this.filterType=e?.type??"contains",this._cdr.markForCheck()}onValueChange(e){this.filterText=e,this._params.filterChangedCallback(),this._cdr.markForCheck()}onFilterTypeChange(e){this.filterType=String(e||"contains"),["blank","notBlank"].includes(this.filterType)&&(this.filterText=""),this._params.filterChangedCallback(),this._cdr.markForCheck()}clear(){this.filterText="",this.filterType="contains",this._params.filterChangedCallback(),this._cdr.markForCheck()}static \u0275fac=function(o){return new(o||c)};static \u0275cmp=D.VBU({type:c,selectors:[["cue-text-filter"]],decls:4,vars:5,consts:[["direction","column","gap","s"],["size","s",3,"valueChange","value","options","labelMap"],["placeholder","Filter...","size","s",3,"value"],["size","s",2,"cursor","pointer","text-align","right"],["placeholder","Filter...","size","s",3,"valueChange","value"],["size","s",2,"cursor","pointer","text-align","right",3,"click"]],template:function(o,g){1&o&&(D.j41(0,"cue-flexcontainer",0)(1,"cue-select",1),D.bIt("valueChange",function(E){return g.onFilterTypeChange(E)}),D.k0s(),D.nVh(2,P,1,1,"cue-input",2),D.nVh(3,x,2,0,"cue-typography",3),D.k0s()),2&o&&(D.R7$(),D.Y8G("value",g.filterType)("options",g.filterTypeOptions)("labelMap",g.filterTypeLabelMap()),D.R7$(),D.vxM(g.showTextInput()?2:-1),D.R7$(),D.vxM(g.filterText||"contains"!==g.filterType?3:-1))},dependencies:[m.Input,y.Select,M.Typography,k.FlexContainer],styles:["[_nghost-%COMP%]{display:block;padding:var(--cue-card-padding-y) var(--cue-card-padding-x);min-width:180px;max-width:280px;box-sizing:border-box}"],changeDetection:0})}return c})()},25764(O,F,a){"use strict";a.d(F,{l:()=>t});var _=a(35547);let t=(()=>{class u{value="";lineHeight="1.5";agInit(m){this.value=m.value||"",this.lineHeight=m.colDef&&m.colDef.cellRendererParams&&m.colDef.cellRendererParams.lineHeight||m.context&&m.context.lineHeight||"1.5"}refresh(m){return this.value=m.value||"",!0}static \u0275fac=function(k){return new(k||u)};static \u0275cmp=_.VBU({type:u,selectors:[["cue-multiline-cell-renderer"]],decls:2,vars:3,consts:[[1,"multiline-cell"]],template:function(k,y){1&k&&(_.rj2(0,"div",0),_.EFF(1),_.eux()),2&k&&(_.xc7("line-height",y.lineHeight),_.R7$(),_.JRh(y.value))},styles:[".multiline-cell[_ngcontent-%COMP%]{white-space:pre-wrap;word-wrap:break-word;padding:4px 2px;text-align:left}"]})}return u})()},59695(O,F,a){"use strict";a.d(F,{Switch:()=>k});var _=a(17705),t=a(20029),u=a(35547);function s(y,M){if(1&y&&u.nrm(0,"cue-svg-icon",2),2&y){const D=u.XpG();u.Y8G("name",D.iconChecked())}}function m(y,M){if(1&y&&u.nrm(0,"cue-svg-icon",2),2&y){const D=u.XpG();u.Y8G("name",D.icon())}}let k=(()=>{class y{id=(0,_.hFB)("");size=(0,_.hFB)("m");icon=(0,_.hFB)(void 0);iconChecked=(0,_.hFB)(void 0);disabled=(0,_.hFB)(!1);checked=(0,_.geq)(!1);toggleChange=(0,_.CGW)();toggle(){this.checked.set(!this.checked()),this.toggleChange.emit(this.checked())}static \u0275fac=function(P){return new(P||y)};static \u0275cmp=u.VBU({type:y,selectors:[["cue-input-switch"]],hostVars:5,hostBindings:function(P,x){2&P&&(u.BMQ("size",x.size()),u.AVh("checked",x.checked())("disabled",x.disabled()))},inputs:{id:[1,"id"],size:[1,"size"],icon:[1,"icon"],iconChecked:[1,"iconChecked"],disabled:[1,"disabled"],checked:[1,"checked"]},outputs:{checked:"checkedChange",toggleChange:"toggleChange"},decls:4,vars:4,consts:[["type","checkbox",3,"click","checked","disabled"],[1,"indicator"],[3,"name"]],template:function(P,x){1&P&&(u.j41(0,"input",0),u.bIt("click",function(){return x.toggle()}),u.k0s(),u.j41(1,"div",1),u.nVh(2,s,1,1,"cue-svg-icon",2)(3,m,1,1,"cue-svg-icon",2),u.k0s()),2&P&&(u.Y8G("checked",x.checked())("disabled",x.disabled()),u.BMQ("id",x.id()||null),u.R7$(2),u.vxM(x.checked()&&x.iconChecked()?2:x.icon()?3:-1))},dependencies:[t.A],styles:["[_nghost-%COMP%]{--cue-input-switch-height: 18px;--cue-input-switch-width: calc(var(--cue-input-switch-height) * 1.7);--cue-input-switch-inset: 2px;--cue-input-switch-indicator-width: calc( var(--cue-input-switch-height) - (2 * var(--cue-input-switch-inset)) );--cue-input-switch-icon-width: calc( var(--cue-input-switch-indicator-width) - (2 * var(--cue-input-switch-inset)) );display:block;flex-shrink:0;position:relative;height:var(--cue-input-switch-height);width:var(--cue-input-switch-width);border-radius:var(--cue-input-switch-height);--cue-icon-width: var(--cue-input-switch-icon-width);background:var(--cue-input-switch-background);transition:background-color .4s ease}[size=xs][_nghost-%COMP%]{--cue-input-switch-height: 12px;--cue-input-switch-inset: 1px}[size=s][_nghost-%COMP%]{--cue-input-switch-height: 14px;--cue-input-switch-inset: 1px}[size=m][_nghost-%COMP%]{--cue-input-switch-height: 18px;--cue-input-switch-inset: 2px}[size=l][_nghost-%COMP%]{--cue-input-switch-height: 22px;--cue-input-switch-inset: 3px}[size=xl][_nghost-%COMP%]{--cue-input-switch-height: 28px;--cue-input-switch-inset: 3px}@container cue-container (width < 20em){[_nghost-%COMP%]{--cue-input-switch-height: 16px}[size=xs][_nghost-%COMP%]{--cue-input-switch-height: 10px}[size=s][_nghost-%COMP%]{--cue-input-switch-height: 12px}[size=m][_nghost-%COMP%]{--cue-input-switch-height: 16px}[size=l][_nghost-%COMP%]{--cue-input-switch-height: 18px}[size=xl][_nghost-%COMP%]{--cue-input-switch-height: 20px}}.checked[_nghost-%COMP%]{background:var(--cue-input-switch-checked-background)}.disabled[_nghost-%COMP%]{background:var(--cue-input-switch-disabled-background);cursor:default}[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{pointer-events:none;position:absolute;left:var(--cue-input-switch-inset);top:var(--cue-input-switch-inset);width:var(--cue-input-switch-indicator-width);aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center;background-color:var(--cue-input-switch-indicator-background);color:var(--cue-input-switch-indicator-foreground);transition:left .4s ease,background-color .4s ease,color .4s ease}.checked[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{left:calc(var(--cue-input-switch-width) - var(--cue-input-switch-inset) - var( --cue-input-switch-indicator-width ));background:var(--cue-input-switch-checked-indicator-background);color:var(--cue-input-switch-checked-indicator-foreground)}.disabled[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{background:var(--cue-input-switch-disabled-indicator-background);color:var(--cue-input-switch-disabled-indicator-foreground)}input[_ngcontent-%COMP%]{all:unset;position:absolute;inset:0;cursor:pointer;border-radius:var(--cue-input-switch-height)}input[_ngcontent-%COMP%]:focus-visible:not(:disabled) + .indicator[_ngcontent-%COMP%]{outline:1px solid var(--cue-input-switch-focus-color);outline-offset:2px}"]})}return y})()},55745(O,F,a){"use strict";a.d(F,{a:()=>c});var _=a(17705),t=a(85802),u=a(32271),s=a(35547);const m=["dialog"],k=["*",[["","modal-footer",""]]],y=["*","[modal-footer]"];function M(i,e){if(1&i&&(s.rj2(0,"h2",7),s.EFF(1),s.eux()),2&i){const o=s.XpG(3);s.R7$(),s.JRh(o.effectiveTitle())}}function D(i,e){if(1&i&&(s.rj2(0,"p",8),s.EFF(1),s.eux()),2&i){const o=s.XpG(3);s.R7$(),s.JRh(o.subtitle())}}function P(i,e){if(1&i){const o=s.RV6();s.rj2(0,"button",10),s.VwU("click",function(){t.eBV(o);const h=s.XpG(3);return t.Njj(h.onClose())}),t.qSk(),s.rj2(1,"svg",11),s.Hgh(2,"path",12),s.eux()()}}function x(i,e){if(1&i&&(s.rj2(0,"div",4)(1,"div",6),s.nVh(2,M,2,1,"h2",7),s.nVh(3,D,2,1,"p",8),s.eux(),s.nVh(4,P,3,0,"button",9),s.eux()),2&i){const o=s.XpG(2);s.R7$(2),s.vxM(o.effectiveTitle()?2:-1),s.R7$(),s.vxM(o.subtitle()?3:-1),s.R7$(),s.vxM(o.displayCloseBtn()?4:-1)}}function A(i,e){if(1&i&&(s.rj2(0,"div",3),s.VwU("click",function(g){return g.stopPropagation()}),s.nVh(1,x,5,3,"div",4),s.rj2(2,"div",5),s.SdG(3),s.eux(),s.SdG(4,1),s.eux()),2&i){const o=s.XpG();s.xc7("min-width",o.minWidth()),s.AVh("has-header",o.effectiveTitle()||o.displayCloseBtn())("fullscreen","fullscreen"===o.size()),s.R7$(),s.vxM(o.effectiveTitle()||o.displayCloseBtn()?1:-1),s.R7$(),s.AVh("fullscreen","fullscreen"===o.size())}}let c=(()=>{class i{visible=(0,_.geq)(!0);closeOnBackgroundClick=(0,_.hFB)(!0);displayCloseBtn=(0,_.hFB)(!0);label=(0,_.hFB)("");title=(0,_.hFB)("");subtitle=(0,_.hFB)("");minWidth=(0,_.hFB)();size=(0,_.hFB)("default");close=(0,_.CGW)();dialogRef=_.ebz.required("dialog");effectiveTitle=(0,u.EW)(()=>this.title()||this.label());constructor(){(0,t.QZP)(()=>{const o=this.dialogRef().nativeElement;this.visible()?o.open||o.showModal():o.open&&o.close()})}onBackdropClick(){this.closeOnBackgroundClick()&&this.onClose()}onClose(){this.visible.set(!1),this.close.emit()}static \u0275fac=function(g){return new(g||i)};static \u0275cmp=s.VBU({type:i,selectors:[["cue-modal"]],viewQuery:function(g,h){1&g&&s.wEZ(h.dialogRef,m,5),2&g&&s.NyB()},inputs:{visible:[1,"visible"],closeOnBackgroundClick:[1,"closeOnBackgroundClick"],displayCloseBtn:[1,"displayCloseBtn"],label:[1,"label"],title:[1,"title"],subtitle:[1,"subtitle"],minWidth:[1,"minWidth"],size:[1,"size"]},outputs:{visible:"visibleChange",close:"close"},ngContentSelectors:y,decls:3,vars:3,consts:[["dialog",""],[1,"modal-dialog",3,"cancel","click"],[1,"panel",3,"has-header","fullscreen","minWidth"],[1,"panel",3,"click"],[1,"header"],[1,"body"],[1,"header-text"],[1,"modal-title"],[1,"modal-subtitle"],["type","button","aria-label","Close",1,"close-btn"],["type","button","aria-label","Close",1,"close-btn",3,"click"],["viewBox","0 0 256 256","xmlns","http://www.w3.org/2000/svg"],["fill","currentColor","d","M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128L61.34 72.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z"]],template:function(g,h){1&g&&(s.NAR(k),s.rj2(0,"dialog",1,0),s.VwU("cancel",function(){return h.onClose()})("click",function(){return h.onBackdropClick()}),s.nVh(2,A,5,9,"div",2),s.eux()),2&g&&(s.AVh("fullscreen","fullscreen"===h.size()),s.R7$(2),s.vxM(h.visible()?2:-1))},styles:[".modal-dialog[_ngcontent-%COMP%]{padding:0;border:none;background:transparent;overflow:visible;margin:auto;outline:none;max-width:min(calc(100vw - 32px),80vw)}.modal-dialog[_ngcontent-%COMP%]::backdrop{background-color:var(--cue-modal-overlay-color, rgba(14, 24, 39, .55));-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.panel[_ngcontent-%COMP%]{background:var(--cue-default);color:var(--cue-defaultContrast);border-radius:24px;border:1px solid var(--cue-border-color);box-shadow:0 12px 48px #00000047;max-height:88vh;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;scrollbar-width:thin}.header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:12px;padding:26px 26px 0;margin-bottom:20px}.header-text[_ngcontent-%COMP%]{flex:1}.modal-title[_ngcontent-%COMP%]{margin:0;font-size:20px;font-weight:700;letter-spacing:-.01em;font-family:var(--cue-font-family);color:var(--cue-defaultContrast)}.modal-subtitle[_ngcontent-%COMP%]{margin:5px 0 0;font-size:13px;color:var(--cue-color-midgray);letter-spacing:.02em;line-height:1.5}.close-btn[_ngcontent-%COMP%]{flex:none;width:34px;height:34px;border-radius:50%;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--cue-color-midgray);padding:0;margin-top:-4px;transition:background .15s,color .15s}.close-btn[_ngcontent-%COMP%]:hover{background:var(--cue-main-background);color:var(--cue-main-foreground)}.close-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:18px;display:block}.body[_ngcontent-%COMP%]{padding:26px}.has-header[_ngcontent-%COMP%] .body[_ngcontent-%COMP%]{padding-top:0}.modal-dialog.fullscreen[_ngcontent-%COMP%]{max-width:100vw}.panel.fullscreen[_ngcontent-%COMP%]{width:100vw;height:100vh;max-width:100vw;max-height:100vh;border-radius:0;display:flex;flex-direction:column}.body.fullscreen[_ngcontent-%COMP%]{flex:1;min-height:0;display:flex;flex-direction:column}"]})}return i})()},97717(O,F,a){"use strict";a.d(F,{R:()=>u});var _=a(17705),t=a(35547);let u=(()=>{class s{cueFlip=(0,_.geq)(!1);get flipped(){return this.cueFlip()}static \u0275fac=function(y){return new(y||s)};static \u0275dir=t.FsC({type:s,selectors:[["","cueFlip",""]],hostVars:2,hostBindings:function(y,M){2&y&&t.AVh("flipped",M.flipped)},inputs:{cueFlip:[1,"cueFlip"]},outputs:{cueFlip:"cueFlipChange"}})}return s})()},67400(O,F,a){"use strict";function t(c){return c&&"none"!==c.type?"round"===c.type?`ROUND(?val, ${c.decimals})`:"prefix"===c.type?`PREFIX(?val, "${c.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`:"suffix"===c.type?`SUFFIX(?val, "${c.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`:"formula"===c.type?c.expression:"":""}function u(c,i){if(!i||"none"===i.type)return c;if("round"===i.type){const e=Number(c);return isNaN(e)?c:e.toFixed(i.decimals)}return"prefix"===i.type?c&&`${i.value}${c}`:"suffix"===i.type?c&&`${c}${i.value}`:"formula"===i.type?m(i.expression,c):c}a.d(F,{NF:()=>k,PH:()=>t,Zv:()=>s,g4:()=>u,w9:()=>m});const s=[{name:"ROUND",signature:"ROUND(?val, decimals)",description:"Round to N decimal places"},{name:"FLOOR",signature:"FLOOR(?val)",description:"Round down to nearest integer"},{name:"CEIL",signature:"CEIL(?val)",description:"Round up to nearest integer"},{name:"ABS",signature:"ABS(?val)",description:"Absolute value"},{name:"SQRT",signature:"SQRT(?val)",description:"Square root"},{name:"MIN",signature:"MIN(a, b)",description:"Smaller of two numbers"},{name:"MAX",signature:"MAX(a, b)",description:"Larger of two numbers"},{name:"CONCAT",signature:"CONCAT(a, b, ...)",description:"Concatenate strings"},{name:"PREFIX",signature:'PREFIX(?val, "text")',description:"Prepend text (skipped if value is empty)"},{name:"SUFFIX",signature:'SUFFIX(?val, "text")',description:"Append text (skipped if value is empty)"},{name:"TRIM",signature:"TRIM(?val)",description:"Remove leading/trailing whitespace"},{name:"UPPER",signature:"UPPER(?val)",description:"Convert to uppercase"},{name:"LOWER",signature:"LOWER(?val)",description:"Convert to lowercase"},{name:"LEN",signature:"LEN(?val)",description:"String length"},{name:"REPLACE",signature:'REPLACE(?val, "a", "b")',description:'Replace all occurrences of "a" with "b"'},{name:"REGEXP_REPLACE",signature:'REGEXP_REPLACE(?val, "pattern", "b")',description:'Replace all matches of a regular expression with "b"'},{name:"NUM",signature:"NUM(?val)",description:"Parse as number"},{name:"STR",signature:"STR(?val)",description:"Convert to string"},{name:"IF",signature:"IF(condition, then, else)",description:"Conditional expression"},{name:"AFTER_LAST",signature:'AFTER_LAST(?val, "sep")',description:"Substring after the last occurrence of sep"},{name:"AFTER_FIRST",signature:'AFTER_FIRST(?val, "sep")',description:"Substring after the first occurrence of sep"},{name:"BEFORE_LAST",signature:'BEFORE_LAST(?val, "sep")',description:"Substring before the last occurrence of sep"},{name:"BEFORE_FIRST",signature:'BEFORE_FIRST(?val, "sep")',description:"Substring before the first occurrence of sep"},{name:"SEGMENT",signature:'SEGMENT(?val, "sep", n)',description:"Get the Nth segment (0-based) when splitting ?val by sep"}];function m(c,i){if(!c||!c.trim())return i;try{const e=function M(c){const i=y.get(c);if(i)return i;const e=D(c);return y.set(c,e),e}(c),o=new P(e,{"?val":i}).parse();return null==o?"":String(o)}catch{return i}}function k(c){if(!c||!c.trim())return null;try{const i=D(c);return new P(i,{"?val":"42"}).parse(),null}catch(i){return i?.message??"Invalid formula"}}const y=new Map;function D(c){const i=[];let e=0;for(;e<c.length;){if(/\s/.test(c[e])){e++;continue}if('"'===c[e]||"'"===c[e]){const g=c[e++];let h="";for(;e<c.length&&c[e]!==g;)h+="\\"===c[e]?c[++e]:c[e],e++;if(c[e]!==g)throw new Error("Unterminated string literal");e++,i.push({kind:"str",val:h});continue}const o=c.slice(e).match(/^(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?/);if(o)i.push({kind:"num",val:o[0]}),e+=o[0].length;else{if("?"===c[e]){let g="?";for(e++;e<c.length&&/\w/.test(c[e]);)g+=c[e++];i.push({kind:"var",val:g});continue}if(/[A-Za-z_]/.test(c[e])){let g="";for(;e<c.length&&/\w/.test(c[e]);)g+=c[e++];i.push({kind:"ident",val:g.toUpperCase()});continue}if("**"!==c.slice(e,e+2)){if(!"+-*/%(),".includes(c[e]))throw new Error(`Unexpected character "${c[e]}" at position ${e}`);i.push({kind:"op",val:c[e++]})}else i.push({kind:"op",val:"**"}),e+=2}}return i.push({kind:"eof",val:""}),i}class P{tokens;vars;pos=0;constructor(i,e){this.tokens=i,this.vars=e}parse(){const i=this.expr();if("eof"!==this.tokens[this.pos].kind)throw new Error(`Unexpected token "${this.tokens[this.pos].val}" after expression`);return i}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}eat(i){if(this.peek().val!==i)throw new Error(`Expected "${i}", got "${this.peek().val||"end of input"}"`);this.pos++}expr(){return this.additive()}additive(){let i=this.multiplicative();for(;"op"===this.peek().kind&&("+"===this.peek().val||"-"===this.peek().val);){const e=this.next().val,o=this.multiplicative();i="+"===e?"string"==typeof i||"string"==typeof o?String(i)+String(o):i+o:x(i)-x(o)}return i}multiplicative(){let i=this.power();for(;"op"===this.peek().kind&&("*"===this.peek().val||"/"===this.peek().val||"%"===this.peek().val);){const e=this.next().val,o=this.power();if("*"===e)i=x(i)*x(o);else if("/"===e){const g=x(o);i=0!==g?x(i)/g:0}else i=x(i)%x(o)}return i}power(){const i=this.unary();return"op"===this.peek().kind&&"**"===this.peek().val?(this.next(),Math.pow(x(i),x(this.power()))):i}unary(){return"op"===this.peek().kind&&"-"===this.peek().val?(this.next(),-x(this.primary())):this.primary()}primary(){const i=this.peek();if("num"===i.kind)return this.next(),Number(i.val);if("str"===i.kind)return this.next(),i.val;if("var"===i.kind)return this.next(),this.vars[i.val]??"";if("ident"===i.kind)return this.funcCall();if("op"===i.kind&&"("===i.val){this.next();const e=this.expr();return this.eat(")"),e}throw new Error(`Unexpected token: "${i.val}"`)}funcCall(){const i=this.next().val;this.eat("(");const e=[];if(")"!==this.peek().val)for(e.push(this.expr());","===this.peek().val;)this.next(),e.push(this.expr());return this.eat(")"),function A(c,i){const e=o=>i[o]??"";switch(c){case"ROUND":return Number(x(e(0)).toFixed(Math.max(0,x(e(1)))));case"FLOOR":return Math.floor(x(e(0)));case"CEIL":return Math.ceil(x(e(0)));case"ABS":return Math.abs(x(e(0)));case"SQRT":return Math.sqrt(x(e(0)));case"MIN":return Math.min(...i.map(x));case"MAX":return Math.max(...i.map(x));case"CONCAT":return i.map(o=>String(o)).join("");case"TRIM":return String(e(0)).trim();case"UPPER":return String(e(0)).toUpperCase();case"LOWER":return String(e(0)).toLowerCase();case"LEN":return String(e(0)).length;case"REPLACE":return String(e(0)).replaceAll(String(e(1)),String(e(2)));case"REGEXP_REPLACE":return String(e(0)).replace(new RegExp(String(e(1)),"g"),String(e(2)));case"NUM":return x(e(0));case"STR":return String(e(0));case"PREFIX":return String(e(0))?String(e(1))+String(e(0)):String(e(0));case"SUFFIX":return String(e(0))?String(e(0))+String(e(1)):String(e(0));case"IF":return 0!==x(e(0))&&""!==e(0)&&"false"!==e(0)?e(1):e(2);case"AFTER_LAST":{const o=String(e(0)),g=String(e(1)),h=o.lastIndexOf(g);return-1===h?o:o.slice(h+g.length)}case"AFTER_FIRST":{const o=String(e(0)),g=String(e(1)),h=o.indexOf(g);return-1===h?o:o.slice(h+g.length)}case"BEFORE_LAST":{const o=String(e(0)),g=String(e(1)),h=o.lastIndexOf(g);return-1===h?o:o.slice(0,h)}case"BEFORE_FIRST":{const o=String(e(0)),g=String(e(1)),h=o.indexOf(g);return-1===h?o:o.slice(0,h)}case"SEGMENT":return String(e(0)).split(String(e(1)))[x(e(2))]??"";default:throw new Error(`Unknown function: "${c}"`)}}(i,e)}}function x(c){if("number"==typeof c)return c;const i=Number(c);return isNaN(i)?0:i}},67374(O){O.exports=function(){"use strict";var a=6e4,_=36e5,t="millisecond",u="second",s="minute",m="hour",k="day",y="week",M="month",D="quarter",P="year",x="date",A="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,i=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,e={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(p){var f=["th","st","nd","rd"],r=p%100;return"["+p+(f[(r-20)%10]||f[r]||f[0])+"]"}},o=function(p,f,r){var d=String(p);return!d||d.length>=f?p:""+Array(f+1-d.length).join(r)+p},g={s:o,z:function(p){var f=-p.utcOffset(),r=Math.abs(f),d=Math.floor(r/60),l=r%60;return(f<=0?"+":"-")+o(d,2,"0")+":"+o(l,2,"0")},m:function p(f,r){if(f.date()<r.date())return-p(r,f);var d=12*(r.year()-f.year())+(r.month()-f.month()),l=f.clone().add(d,M),T=r-l<0,S=f.clone().add(d+(T?-1:1),M);return+(-(d+(r-l)/(T?l-S:S-l))||0)},a:function(p){return p<0?Math.ceil(p)||0:Math.floor(p)},p:function(p){return{M,y:P,w:y,d:k,D:x,h:m,m:s,s:u,ms:t,Q:D}[p]||String(p||"").toLowerCase().replace(/s$/,"")},u:function(p){return void 0===p}},h="en",E={};E[h]=e;var j="$isDayjsObject",I=function(p){return p instanceof U||!(!p||!p[j])},z=function p(f,r,d){var l;if(!f)return h;if("string"==typeof f){var T=f.toLowerCase();E[T]&&(l=T),r&&(E[T]=r,l=T);var S=f.split("-");if(!l&&S.length>1)return p(S[0])}else{var R=f.name;E[R]=f,l=R}return!d&&l&&(h=l),l||!d&&h},Y=function(p,f){if(I(p))return p.clone();var r="object"==typeof f?f:{};return r.date=p,r.args=arguments,new U(r)},w=g;w.l=z,w.i=I,w.w=function(p,f){return Y(p,{locale:f.$L,utc:f.$u,x:f.$x,$offset:f.$offset})};var U=function(){function p(r){this.$L=z(r.locale,null,!0),this.parse(r),this.$x=this.$x||r.x||{},this[j]=!0}var f=p.prototype;return f.parse=function(r){this.$d=function(d){var l=d.date,T=d.utc;if(null===l)return new Date(NaN);if(w.u(l))return new Date;if(l instanceof Date)return new Date(l);if("string"==typeof l&&!/Z$/i.test(l)){var S=l.match(c);if(S){var R=S[2]-1||0,G=(S[7]||"0").substring(0,3);return T?new Date(Date.UTC(S[1],R,S[3]||1,S[4]||0,S[5]||0,S[6]||0,G)):new Date(S[1],R,S[3]||1,S[4]||0,S[5]||0,S[6]||0,G)}}return new Date(l)}(r),this.init()},f.init=function(){var r=this.$d;this.$y=r.getFullYear(),this.$M=r.getMonth(),this.$D=r.getDate(),this.$W=r.getDay(),this.$H=r.getHours(),this.$m=r.getMinutes(),this.$s=r.getSeconds(),this.$ms=r.getMilliseconds()},f.$utils=function(){return w},f.isValid=function(){return this.$d.toString()!==A},f.isSame=function(r,d){var l=Y(r);return this.startOf(d)<=l&&l<=this.endOf(d)},f.isAfter=function(r,d){return Y(r)<this.startOf(d)},f.isBefore=function(r,d){return this.endOf(d)<Y(r)},f.$g=function(r,d,l){return w.u(r)?this[d]:this.set(l,r)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(r,d){var l=this,T=!!w.u(d)||d,S=w.p(r),R=function(K,V){var X=w.w(l.$u?Date.UTC(l.$y,V,K):new Date(l.$y,V,K),l);return T?X:X.endOf(k)},G=function(K,V){return w.w(l.toDate()[K].apply(l.toDate("s"),(T?[0,0,0,0]:[23,59,59,999]).slice(V)),l)},$=this.$W,N=this.$M,W=this.$D,J="set"+(this.$u?"UTC":"");switch(S){case P:return T?R(1,0):R(31,11);case M:return T?R(1,N):R(0,N+1);case y:var H=this.$locale().weekStart||0,Q=($<H?$+7:$)-H;return R(T?W-Q:W+(6-Q),N);case k:case x:return G(J+"Hours",0);case m:return G(J+"Minutes",1);case s:return G(J+"Seconds",2);case u:return G(J+"Milliseconds",3);default:return this.clone()}},f.endOf=function(r){return this.startOf(r,!1)},f.$set=function(r,d){var l,T=w.p(r),S="set"+(this.$u?"UTC":""),R=(l={},l[k]=S+"Date",l[x]=S+"Date",l[M]=S+"Month",l[P]=S+"FullYear",l[m]=S+"Hours",l[s]=S+"Minutes",l[u]=S+"Seconds",l[t]=S+"Milliseconds",l)[T],G=T===k?this.$D+(d-this.$W):d;if(T===M||T===P){var $=this.clone().set(x,1);$.$d[R](G),$.init(),this.$d=$.set(x,Math.min(this.$D,$.daysInMonth())).$d}else R&&this.$d[R](G);return this.init(),this},f.set=function(r,d){return this.clone().$set(r,d)},f.get=function(r){return this[w.p(r)]()},f.add=function(r,d){var l,T=this;r=Number(r);var S=w.p(d),R=function(N){var W=Y(T);return w.w(W.date(W.date()+Math.round(N*r)),T)};if(S===M)return this.set(M,this.$M+r);if(S===P)return this.set(P,this.$y+r);if(S===k)return R(1);if(S===y)return R(7);var G=(l={},l[s]=a,l[m]=_,l[u]=1e3,l)[S]||1,$=this.$d.getTime()+r*G;return w.w($,this)},f.subtract=function(r,d){return this.add(-1*r,d)},f.format=function(r){var d=this,l=this.$locale();if(!this.isValid())return l.invalidDate||A;var T=r||"YYYY-MM-DDTHH:mm:ssZ",S=w.z(this),R=this.$H,G=this.$m,$=this.$M,N=l.weekdays,W=l.months,H=function(V,X,Z,q){return V&&(V[X]||V(d,T))||Z[X].slice(0,q)},Q=function(V){return w.s(R%12||12,V,"0")},K=l.meridiem||function(V,X,Z){var q=V<12?"AM":"PM";return Z?q.toLowerCase():q};return T.replace(i,function(V,X){return X||function(Z){switch(Z){case"YY":return String(d.$y).slice(-2);case"YYYY":return w.s(d.$y,4,"0");case"M":return $+1;case"MM":return w.s($+1,2,"0");case"MMM":return H(l.monthsShort,$,W,3);case"MMMM":return H(W,$);case"D":return d.$D;case"DD":return w.s(d.$D,2,"0");case"d":return String(d.$W);case"dd":return H(l.weekdaysMin,d.$W,N,2);case"ddd":return H(l.weekdaysShort,d.$W,N,3);case"dddd":return N[d.$W];case"H":return String(R);case"HH":return w.s(R,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return K(R,G,!0);case"A":return K(R,G,!1);case"m":return String(G);case"mm":return w.s(G,2,"0");case"s":return String(d.$s);case"ss":return w.s(d.$s,2,"0");case"SSS":return w.s(d.$ms,3,"0");case"Z":return S}return null}(V)||S.replace(":","")})},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(r,d,l){var T,S=this,R=w.p(d),G=Y(r),$=(G.utcOffset()-this.utcOffset())*a,N=this-G,W=function(){return w.m(S,G)};switch(R){case P:T=W()/12;break;case M:T=W();break;case D:T=W()/3;break;case y:T=(N-$)/6048e5;break;case k:T=(N-$)/864e5;break;case m:T=N/_;break;case s:T=N/a;break;case u:T=N/1e3;break;default:T=N}return l?T:w.a(T)},f.daysInMonth=function(){return this.endOf(M).$D},f.$locale=function(){return E[this.$L]},f.locale=function(r,d){if(!r)return this.$L;var l=this.clone(),T=z(r,d,!0);return T&&(l.$L=T),l},f.clone=function(){return w.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},p}(),ee=U.prototype;return Y.prototype=ee,[["$ms",t],["$s",u],["$m",s],["$H",m],["$W",k],["$M",M],["$y",P],["$D",x]].forEach(function(p){ee[p[1]]=function(f){return this.$g(f,p[0],p[1])}}),Y.extend=function(p,f){return p.$i||(p(f,U,Y),p.$i=!0),Y},Y.locale=z,Y.isDayjs=I,Y.unix=function(p){return Y(1e3*p)},Y.en=E[h],Y.Ls=E,Y.p={},Y}()},52269(O,F,a){O.exports=function(_){"use strict";var u=function t(m){return m&&"object"==typeof m&&"default"in m?m:{default:m}}(_),s={name:"da",weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n._man._tirs._ons._tors._fre._l\xf8r.".split("_"),weekdaysMin:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(m){return m+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"}};return u.default.locale(s,null,!0),s}(a(67374))},51409(O,F,a){O.exports=function(_){"use strict";var u=function t(y){return y&&"object"==typeof y&&"default"in y?y:{default:y}}(_),s={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function m(y,M,D){var P=s[D];return Array.isArray(P)&&(P=P[M?0:1]),P.replace("%d",y)}var k={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(y){return y+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:m,m,mm:m,h:m,hh:m,d:m,dd:m,M:m,MM:m,y:m,yy:m}};return u.default.locale(k,null,!0),k}(a(67374))},69785(O){O.exports=function(){"use strict";return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var a=["th","st","nd","rd"],_=F%100;return"["+F+(a[(_-20)%10]||a[_]||a[0])+"]"}}}()},72494(O,F,a){O.exports=function(_){"use strict";var u=function t(m){return m&&"object"==typeof m&&"default"in m?m:{default:m}}(_),s={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},ordinal:function(m){return m+"\xba"}};return u.default.locale(s,null,!0),s}(a(67374))},34230(O,F,a){O.exports=function(_){"use strict";var u=function t(m){return m&&"object"==typeof m&&"default"in m?m:{default:m}}(_),s={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(m){return m+(1===m?"er":"")}};return u.default.locale(s,null,!0),s}(a(67374))},59531(O,F,a){O.exports=function(_){"use strict";var u=function t(m){return m&&"object"==typeof m&&"default"in m?m:{default:m}}(_),s={name:"it",weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(m){return m+"\xba"}};return u.default.locale(s,null,!0),s}(a(67374))},24955(O){O.exports=function(){"use strict";var F={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(a,_,t){var u=_.prototype,s=u.format;t.en.formats=F,u.format=function(m){void 0===m&&(m="YYYY-MM-DDTHH:mm:ssZ");var D,k=this.$locale().formats,y=(D=void 0===k?{}:k,m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,x,A){var c=A&&A.toUpperCase();return x||D[A]||F[A]||D[c].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(i,e,o){return e||o.slice(1)})}));return s.call(this,y)}}}()},85164(O){O.exports=function(){"use strict";return function(F,a,_){F=F||{};var t=a.prototype,u={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(k,y,M,D){return t.fromToBase(k,y,M,D)}_.en.relativeTime=u,t.fromToBase=function(k,y,M,D,P){for(var x,A,c,i=M.$locale().relativeTime||u,e=F.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],o=e.length,g=0;g<o;g+=1){var h=e[g];h.d&&(x=D?_(k).diff(M,h.d,!0):M.diff(k,h.d,!0));var E=(F.rounding||Math.round)(Math.abs(x));if(c=x>0,E<=h.r||!h.r){E<=1&&g>0&&(h=e[g-1]);var j=i[h.l];P&&(E=P(""+E)),A="string"==typeof j?j.replace("%d",E):j(E,y,h.l,c);break}}if(y)return A;var I=c?i.future:i.past;return"function"==typeof I?I(A):I.replace("%s",A)},t.to=function(k,y){return s(k,y,this,!0)},t.from=function(k,y){return s(k,y,this)};var m=function(k){return k.$u?_.utc():_()};t.toNow=function(k){return this.to(m(this),k)},t.fromNow=function(k){return this.from(m(this),k)}}}()}}]);
1
+ (self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[1153],{65661(O,L,a){"use strict";a.d(L,{pC:()=>R,pL:()=>ee,rx:()=>z});var M=a(17705),t=a(35547),h=a(85802),T=a(80469),d=a(13319),D=a(85971),F=a(35381),f=a(42245),y=a(77089),P=a(1096),E=a(49769),N=a(16642),l=a(59352);const i=u=>[u],e=(u,m)=>({$implicit:u,index:m});function s(u,m){if(1&u){const o=t.RV6();t.j41(0,"cue-table-column-settings-modal",9),t.bIt("updateColumn",function(r){const b=h.eBV(o),x=t.XpG();return h.Njj(x.updateColumnDef(b.index,r))})("close",function(){h.eBV(o);const r=t.XpG();return h.Njj(r.handleModalClose())}),t.k0s()}if(2&u){const o=m,c=t.XpG();t.Y8G("columnDef",o.col)("columnIndex",o.index)("settings",c.settings())}}function g(u,m){1&u&&t.eu8(0)}function _(u,m){if(1&u&&t.DNE(0,g,1,0,"ng-container",13),2&u){const o=t.XpG(),c=o.$implicit,r=o.$index;t.Y8G("ngTemplateOutlet",m.templateRef)("ngTemplateOutletContext",t.l_i(2,e,c,r))}}function S(u,m){if(1&u){const o=t.RV6();t.j41(0,"cue-button",14),t.nI1(1,"transloco"),t.bIt("click",function(){h.eBV(o);const r=t.XpG(),b=r.$implicit,x=r.$index,k=t.XpG();return h.Njj(k.showColumnSettings(b,x))}),t.nrm(2,"cue-button-icon",15),t.k0s()}2&u&&t.Y8G("cueTooltip",t.bMT(1,1,"components.agGridColumnSelect.tooltipSettings"))}function j(u,m){if(1&u&&(t.j41(0,"div",8)(1,"cue-flexcontainer",10)(2,"cue-typography"),t.EFF(3),t.k0s(),t.nrm(4,"span",11),t.nVh(5,_,1,5,"ng-container"),t.nVh(6,S,3,3,"cue-button",12),t.k0s()()),2&u){let o;const c=m.$implicit,r=t.XpG();t.R7$(3),t.JRh(r.getLabel(c)),t.R7$(2),t.vxM((o=r.columnItemTpl())?5:-1,o),t.R7$(),t.vxM(r.settings().allowEditing?6:-1)}}function I(u,m){1&u&&t.eu8(0)}function X(u,m){1&u&&t.DNE(0,I,1,0,"ng-container",16),2&u&&t.Y8G("ngTemplateOutlet",m.templateRef)}function Y(u,m){if(1&u&&(t.j41(0,"div",8)(1,"cue-typography"),t.EFF(2),t.k0s()()),2&u){const o=m.$implicit,c=t.XpG();t.R7$(2),t.JRh(c.getLabel(o))}}let R=(()=>{class u{templateRef=(0,h.WQX)(t.C4Q);static ngTemplateContextGuard(o,c){return!0}static \u0275fac=function(c){return new(c||u)};static \u0275dir=t.FsC({type:u,selectors:[["","cueColumnItem",""]]})}return u})(),z=(()=>{class u{templateRef=(0,h.WQX)(t.C4Q);static \u0275fac=function(c){return new(c||u)};static \u0275dir=t.FsC({type:u,selectors:[["","cueColumnListFooter",""]]})}return u})(),ee=(()=>{class u{columnDefs=M.geq.required();columnDefsGross=(0,M.geq)([]);settings=(0,M.hFB)(new P.e);shown=(0,M.CGW)();columnItemTpl=(0,M.sbv)(R);columnListFooterTpl=(0,M.sbv)(z);shownColumns=(0,h.vPA)([]);hiddenColumns=(0,h.vPA)([]);displayColumnSettings=(0,h.vPA)(void 0);onNoColumnDefsGross=(0,h.QZP)(()=>{(!this.columnDefsGross()||0===this.columnDefsGross().length)&&this.columnDefsGross.set(this.columnDefs())});onColumnDefs=(0,h.QZP)(()=>{const o=this.columnDefs().map(r=>r.field),c=this.columnDefsGross().filter(r=>!o.includes(r.field));this.shownColumns.update(()=>[...this.columnDefs()]),this.hiddenColumns.update(()=>[...c])});drop(o){o.previousContainer===o.container?(0,T.HD)(o.container.data,o.previousIndex,o.currentIndex):(0,T.eg)(o.previousContainer.data,o.container.data,o.previousIndex,o.currentIndex);const c=this.shownColumns();this.columnDefs.update(()=>[...c]),this.shown.emit(c)}showColumnSettings(o,c){this.displayColumnSettings.set({col:o,index:c})}updateColumnDef(o,c){const r=this.columnDefs().map((b,x)=>x===o?{...b,...c}:b);this.columnDefs.set(r),this.shown.emit(r),this.shownColumns.set(r)}getLabel(o){return o.headerName||(0,N.x)(o.field)||"Unknown"}handleModalClose(){this.displayColumnSettings.set(void 0)}static \u0275fac=function(c){return new(c||u)};static \u0275cmp=t.VBU({type:u,selectors:[["cue-ag-grid-column-select"]],contentQueries:function(c,r,b){1&c&&t.C6U(b,r.columnItemTpl,R,5)(b,r.columnListFooterTpl,z,5),2&c&&t.NyB(2)},inputs:{columnDefs:[1,"columnDefs"],columnDefsGross:[1,"columnDefsGross"],settings:[1,"settings"]},outputs:{columnDefs:"columnDefsChange",columnDefsGross:"columnDefsGrossChange",shown:"shown"},decls:22,vars:19,consts:[["todoList","cdkDropList"],["doneList","cdkDropList"],[3,"columnDef","columnIndex","settings"],["size","xs","color","muted",2,"display","block","margin-bottom","8px"],["direction","row",2,"align-items","stretch","gap","12px"],["direction","column",1,"panel"],["size","l"],["cdkDropList","",1,"list",3,"cdkDropListDropped","cdkDropListData","cdkDropListConnectedTo"],["cdkDrag","",1,"box","draggable"],[3,"updateColumn","close","columnDef","columnIndex","settings"],["front","","justify","space-between","align","center",2,"width","100%"],[2,"display","flex","flex","1"],["variant","tertiary","size","s",3,"cueTooltip"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["variant","tertiary","size","s",3,"click","cueTooltip"],["icon","settings"],[4,"ngTemplateOutlet"]],template:function(c,r){if(1&c&&(t.nVh(0,s,1,3,"cue-table-column-settings-modal",2),t.j41(1,"cue-typography",3),t.EFF(2),t.nI1(3,"transloco"),t.k0s(),t.j41(4,"cue-flexcontainer",4)(5,"cue-flexcontainer",5)(6,"cue-typography",6),t.EFF(7),t.nI1(8,"transloco"),t.k0s(),t.j41(9,"div",7,0),t.bIt("cdkDropListDropped",function(x){return r.drop(x)}),t.Z7z(11,j,7,3,"div",8,t.Vm6),t.nVh(13,X,1,1,"ng-container"),t.k0s()(),t.j41(14,"cue-flexcontainer",5)(15,"cue-typography",6),t.EFF(16),t.nI1(17,"transloco"),t.k0s(),t.j41(18,"div",7,1),t.bIt("cdkDropListDropped",function(x){return r.drop(x)}),t.Z7z(20,Y,3,1,"div",8,t.Vm6),t.k0s()()()),2&c){let b,x;const k=t.sdS(10),A=t.sdS(19);t.vxM((b=r.displayColumnSettings())?0:-1,b),t.R7$(2),t.JRh(t.bMT(3,9,"components.agGridColumnSelect.dragHint")),t.R7$(5),t.JRh(t.bMT(8,11,"components.agGridColumnSelect.titleShown"));const $=r.shownColumns();t.R7$(2),t.Y8G("cdkDropListData",$)("cdkDropListConnectedTo",t.eq3(15,i,A)),t.R7$(2),t.Dyx($),t.R7$(2),t.vxM((x=r.columnListFooterTpl())?13:-1,x),t.R7$(3),t.JRh(t.bMT(17,13,"components.agGridColumnSelect.titleHidden"));const w=r.hiddenColumns();t.R7$(2),t.Y8G("cdkDropListData",w)("cdkDropListConnectedTo",t.eq3(17,i,k)),t.R7$(2),t.Dyx(w)}},dependencies:[T.O7,T.T1,f.Typography,F.FlexContainer,D.Button,d.ButtonIcon,y.d,P.T,E.T3,l.Kj],styles:[".panel[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:column;gap:8px}.list[_ngcontent-%COMP%]{border:1px solid var(--cue-card-border-color);min-height:60px;flex:1;background:var(--cue-main-background);border-radius:var(--cue-card-border-radius);overflow:hidden;display:block}.list.cdk-drop-list-receiving[_ngcontent-%COMP%]{border-color:var(--cue-primary);border-style:dashed}.box[_ngcontent-%COMP%]{padding:calc(var(--cue-card-padding-y) * .6) var(--cue-card-padding-x);border-bottom:1px solid var(--cue-card-border-color);color:var(--cue-main-foreground);display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;background:var(--cue-main-background);font-size:14px;transition:background .15s ease}.box[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--cue-main-foreground) 5%,var(--cue-main-background))}.draggable[_ngcontent-%COMP%]{cursor:grab}.draggable[_ngcontent-%COMP%]:active{cursor:grabbing}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:var(--cue-card-border-radius);border:1px solid var(--cue-card-border-color);background:var(--cue-main-background);color:var(--cue-main-foreground);padding:calc(var(--cue-card-padding-y) * .6) var(--cue-card-padding-x);font-size:14px;box-shadow:var(--cue-card-box-shadow)}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--cue-primary) 10%,var(--cue-main-background));border-bottom:1px dashed var(--cue-primary);min-height:40px;opacity:1}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.box[_ngcontent-%COMP%]:last-child{border-bottom:none}.list.cdk-drop-list-dragging[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"],changeDetection:0})}return u})()},1096(O,L,a){"use strict";a.d(L,{e:()=>ue,T:()=>pe});var M=a(17705),t=a(32271),h=a(59352),T=a(35381),d=a(42245),D=a(70063),F=a(59695),f=a(77089),y=a(58957),P=a(85971),E=a(13319),N=a(21331),l=a(25764),i=a(85802),e=a(35547);let s=(()=>{class p{_value=(0,i.vPA)("");_options=(0,i.vPA)([]);_disabled=(0,i.vPA)(!1);_disabledTooltip=(0,i.vPA)("");_canChange=(0,i.vPA)(void 0);_optionValues=(0,t.EW)(()=>this._options().map(n=>n.value));_labelMap=(0,t.EW)(()=>Object.fromEntries(this._options().map(n=>[n.value,n.label])));_params;agInit(n){this._apply(n)}refresh(n){return this._apply(n),!0}onValueChange(n){if(void 0===n)return;const C=String(n),v=this._canChange();v&&!v(C)||(this._value.set(C),this._params.setValue?.(C))}_apply(n){this._params=n,this._value.set(n.value??"");const C="function"==typeof n.colDef?.cellRendererParams?n.colDef.cellRendererParams(n):n.colDef?.cellRendererParams??{};this._options.set(C.options??[]),this._disabled.set(C.disabled??!1),this._disabledTooltip.set(C.disabledTooltip??""),this._canChange.set(C.canChange??void 0)}static \u0275fac=function(C){return new(C||p)};static \u0275cmp=e.VBU({type:p,selectors:[["cue-select-cell-renderer"]],decls:1,vars:7,consts:[[3,"valueChange","options","labelMap","value","underline","menuPosition","disabled","cueTooltip"]],template:function(C,v){1&C&&(e.j41(0,"cue-select",0),e.bIt("valueChange",function(_e){return v.onValueChange(_e)}),e.k0s()),2&C&&e.Y8G("options",v._optionValues())("labelMap",v._labelMap())("value",v._value())("underline",!1)("menuPosition","bottomleft")("disabled",v._disabled())("cueTooltip",v._disabled()?v._disabledTooltip():"")},dependencies:[D.Select,f.d],styles:["[_nghost-%COMP%]{display:block;width:100%;overflow:visible;--cue-input-value-color: currentColor}[_nghost-%COMP%] .select-trigger{font-size:var(--ag-font-size, inherit)}"],changeDetection:0})}return p})();var g=a(67374),_=a.n(g),S=a(24955),j=a.n(S),I=a(85164),X=a.n(I);a(69785),a(52269),a(51409),a(34230),a(72494),a(59531),_().extend(j()),_().extend(X());let o=(()=>{class p{_transloco=(0,i.WQX)(h.JO);transform(n,C="dateTime"){if(!n)return"";const v=this._transloco.getActiveLang(),G=_()(n).locale(v);return"timeAgo"===C?G.fromNow():G.format("date"===C?"LL":"shortDate"===C?"L":"LLL")}static \u0275fac=function(C){return new(C||p)};static \u0275pipe=e.EJ8({name:"cueLocalDate",type:p,pure:!0})}return p})(),c=(()=>{class p{_value=(0,i.vPA)("");_format=(0,i.vPA)("dateTime");agInit(n){this._apply(n)}refresh(n){return this._apply(n),!0}_apply(n){this._value.set(n.value??""),this._format.set(n.colDef?.cellRendererParams?.dateFormat??"dateTime")}static \u0275fac=function(C){return new(C||p)};static \u0275cmp=e.VBU({type:p,selectors:[["cue-date-cell-renderer"]],decls:2,vars:4,template:function(C,v){1&C&&(e.EFF(0),e.nI1(1,"cueLocalDate")),2&C&&e.JRh(e.i5U(1,1,v._value(),v._format()))},dependencies:[o],encapsulation:2,changeDetection:0})}return p})();const r=["*"];function b(p,B){1&p&&e.SdG(0)}let x=(()=>{class p{label=M.hFB.required();expanded=(0,M.geq)(!1);size=(0,M.hFB)("m");info=(0,M.hFB)("");expandToggled=(0,M.CGW)();toggle(){this.expanded.set(!this.expanded()),this.expandToggled.emit(this.expanded())}static \u0275fac=function(C){return new(C||p)};static \u0275cmp=e.VBU({type:p,selectors:[["cue-expansion-panel"]],inputs:{label:[1,"label"],expanded:[1,"expanded"],size:[1,"size"],info:[1,"info"]},outputs:{expanded:"expandedChange",expandToggled:"expandToggled"},ngContentSelectors:r,decls:8,vars:9,consts:[["direction","column","gap","xs",2,"width","100%"],["justify","space-between","align","center",1,"expansion-header",3,"click"],[3,"size","info"],["variant","ghost",3,"size"],["icon","arrow-dropdown"]],template:function(C,v){1&C&&(e.NAR(),e.j41(0,"cue-flexcontainer",0)(1,"cue-flexcontainer",1),e.bIt("click",function(){return v.toggle()}),e.j41(2,"cue-typography",2),e.EFF(3),e.k0s(),e.j41(4,"cue-button",3)(5,"span"),e.nrm(6,"cue-button-icon",4),e.k0s()()(),e.nVh(7,b,1,0),e.k0s()),2&C&&(e.R7$(2),e.Y8G("size",v.size())("info",v.info()),e.R7$(),e.JRh(v.label()),e.R7$(),e.Y8G("size",v.size()),e.R7$(),e.AVh("rotate",!0)("rotate-180",v.expanded()),e.R7$(2),e.vxM(v.expanded()?7:-1))},dependencies:[d.Typography,T.FlexContainer,P.Button,E.ButtonIcon],styles:[".expansion-header[_ngcontent-%COMP%]{cursor:pointer}.expansion-content[_ngcontent-%COMP%]{overflow:hidden;transition:max-height .3s cubic-bezier(.4,0,.2,1)}.rotate[_ngcontent-%COMP%]{transition:transform .3s cubic-bezier(.4,0,.2,1);display:inline-block}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}"],changeDetection:0})}return p})();var k=a(16642),A=a(3183),$=a(15902),w=a(67400);const W=["*",[["","cueDisplayContent",""]],[["","cueDataContent",""]],[["","cueBehaviorContent",""]],[["","cueExtraContent",""]]],J=["*","[cueDisplayContent]","[cueDataContent]","[cueBehaviorContent]","[cueExtraContent]"],H=(p,B)=>B.name;function Z(p,B){if(1&p){const n=e.RV6();e.j41(0,"cue-input",7),e.nI1(1,"transloco"),e.bIt("valueChange",function(v){i.eBV(n);const G=e.XpG(2);return i.Njj(G.setLabel(v))}),e.k0s()}if(2&p){const n=e.XpG(2);e.Y8G("label",e.bMT(1,2,"components.agGridColumnSelect.labelLabel"))("value",n.label())}}function K(p,B){if(1&p){const n=e.RV6();e.j41(0,"cue-button",11),e.bIt("click",function(){const v=i.eBV(n).$implicit,G=e.XpG(3);return i.Njj(G.setTextAlign(v))}),e.nrm(1,"cue-button-icon",12),e.k0s()}if(2&p){const n=B.$implicit,C=e.XpG(3);e.Y8G("selected",C.textAlign()===n),e.R7$(),e.Y8G("icon",C.ALIGN_ICON[n])}}function V(p,B){if(1&p&&(e.j41(0,"cue-typography",8),e.EFF(1),e.nI1(2,"transloco"),e.k0s(),e.j41(3,"cue-flexcontainer",9),e.Z7z(4,K,2,2,"cue-button",10,e.Vm6),e.k0s()),2&p){const n=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,1,"components.agGridColumnSelect.labelTextAlign")," "),e.R7$(3),e.Dyx(n.alignOptions)}}function U(p,B){if(1&p){const n=e.RV6();e.j41(0,"cue-flexcontainer",6)(1,"cue-typography",13),e.nI1(2,"transloco"),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.j41(5,"cue-input-switch",14),e.bIt("checkedChange",function(v){i.eBV(n);const G=e.XpG(2);return i.Njj(G.setMultiline(v))}),e.k0s()()}if(2&p){const n=e.XpG(2);e.R7$(),e.Y8G("cueTooltip",e.bMT(2,3,"components.agGridColumnSelect.tooltipMultiline")),e.R7$(2),e.JRh(e.bMT(4,5,"components.agGridColumnSelect.labelMultiline")),e.R7$(2),e.Y8G("checked",n.multiline())}}function Q(p,B){if(1&p&&(e.j41(0,"cue-expansion-panel",2),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4),e.nVh(3,Z,2,4,"cue-input",5),e.nVh(4,V,6,3),e.nVh(5,U,6,7,"cue-flexcontainer",6),e.SdG(6,1),e.k0s()()),2&p){const n=e.XpG();e.Y8G("label",e.bMT(1,5,"components.agGridColumnSelect.groupDisplay"))("expanded",!0),e.R7$(3),e.vxM(n.settings().allowSettingLabel?3:-1),e.R7$(),e.vxM(n.settings().allowSettingTextAlign?4:-1),e.R7$(),e.vxM(n.settings().allowSettingMultiline?5:-1)}}function q(p,B){if(1&p){const n=e.RV6();e.j41(0,"cue-select",16),e.nI1(1,"transloco"),e.bIt("valueChange",function(v){i.eBV(n);const G=e.XpG(2);return i.Njj(G.setFilterType(v))}),e.k0s()}if(2&p){const n=e.XpG(2);e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.labelFilterType"))("value",n.filterType())("options",n.filterTypeOptions)("labelMap",n.filterTypeLabelMap())}}function te(p,B){if(1&p){const n=e.RV6();e.j41(0,"cue-input",7),e.nI1(1,"transloco"),e.bIt("valueChange",function(v){i.eBV(n);const G=e.XpG(2);return i.Njj(G.setEnumValues(v))}),e.k0s()}if(2&p){const n=e.XpG(2);e.Y8G("label",e.bMT(1,2,"components.agGridColumnSelect.labelEnumValues"))("value",n.enumValuesText())}}function ne(p,B){if(1&p){const n=e.RV6();e.j41(0,"cue-select",16),e.bIt("valueChange",function(v){i.eBV(n);const G=e.XpG(3);return i.Njj(G.setDateFormat(v))}),e.k0s()}if(2&p){const n=e.XpG(3);e.Y8G("label",n._labelDateFormat())("value",n.dateFormat())("options",n.dateFormatOptions)("labelMap",n.dateFormatLabelMap())}}function ie(p,B){if(1&p){const n=e.RV6();e.j41(0,"cue-select",16),e.bIt("valueChange",function(v){i.eBV(n);const G=e.XpG(2);return i.Njj(G.setDataType(v))}),e.k0s(),e.nVh(1,ne,1,4,"cue-select",15)}if(2&p){const n=e.XpG(2);e.Y8G("label",n._labelDataType())("value",n.dataType())("options",n.dataTypeOptions)("labelMap",n.dataTypeLabelMap()),e.R7$(),e.vxM("date"===n.dataType()?1:-1)}}function oe(p,B){if(1&p&&(e.j41(0,"cue-expansion-panel",3),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4),e.nVh(3,q,2,6,"cue-select",15),e.nVh(4,te,2,4,"cue-input",5),e.nVh(5,ie,2,5),e.SdG(6,2),e.k0s()()),2&p){const n=e.XpG();e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.groupData")),e.R7$(3),e.vxM(n.settings().allowSettingFilterType?3:-1),e.R7$(),e.vxM(n.settings().allowSettingEnumValues?4:-1),e.R7$(),e.vxM(n.settings().allowSettingDataType?5:-1)}}function ae(p,B){if(1&p){const n=e.RV6();e.j41(0,"cue-expansion-panel",3),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4)(3,"cue-flexcontainer",6)(4,"cue-typography",13),e.nI1(5,"transloco"),e.EFF(6),e.nI1(7,"transloco"),e.k0s(),e.j41(8,"cue-input-switch",14),e.bIt("checkedChange",function(v){i.eBV(n);const G=e.XpG();return i.Njj(G.setEditable(v))}),e.k0s()(),e.SdG(9,3),e.k0s()()}if(2&p){const n=e.XpG();e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.groupBehavior")),e.R7$(4),e.Y8G("cueTooltip",e.bMT(5,6,"components.agGridColumnSelect.tooltipAllowEditing")),e.R7$(2),e.JRh(e.bMT(7,8,"components.agGridColumnSelect.labelEditable")),e.R7$(2),e.Y8G("checked",n.editable())}}function re(p,B){if(1&p&&(e.j41(0,"cue-expansion-panel",2)(1,"cue-flexcontainer",4),e.SdG(2,4),e.k0s()()),2&p){const n=e.XpG();e.Y8G("label",n.extraPanelLabel())("expanded",n.extraPanelExpanded())}}function se(p,B){if(1&p&&(e.j41(0,"cue-typography",19),e.EFF(1),e.nI1(2,"transloco"),e.j41(3,"strong"),e.EFF(4),e.k0s()()),2&p){const n=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,2,"components.agGridColumnSelect.labelPostProcessPreview"),": "),e.R7$(3),e.JRh(n.postProcessFormulaPreview())}}function le(p,B){if(1&p&&(e.j41(0,"cue-flexcontainer",21)(1,"cue-typography",22),e.EFF(2),e.k0s(),e.j41(3,"cue-typography",23),e.EFF(4),e.k0s()()),2&p){const n=B.$implicit;e.R7$(2),e.JRh(n.signature),e.R7$(2),e.JRh(n.description)}}function ce(p,B){if(1&p){const n=e.RV6();e.j41(0,"cue-expansion-panel",3),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",17)(3,"cue-input",18),e.nI1(4,"transloco"),e.nI1(5,"transloco"),e.nI1(6,"transloco"),e.bIt("valueChange",function(v){i.eBV(n);const G=e.XpG();return i.Njj(G.setPostProcessFormula(v))}),e.k0s(),e.nVh(7,se,5,4,"cue-typography",19),e.j41(8,"cue-expansion-panel",20),e.nI1(9,"transloco"),e.j41(10,"cue-flexcontainer",17),e.Z7z(11,le,5,2,"cue-flexcontainer",21,H),e.k0s()()()()}if(2&p){const n=e.XpG();e.Y8G("label",e.bMT(1,9,"components.agGridColumnSelect.groupPostProcess")),e.R7$(3),e.Y8G("label",e.bMT(4,11,"components.agGridColumnSelect.labelPostProcessFormula"))("info",e.bMT(5,13,"components.agGridColumnSelect.tooltipPostProcessFormula"))("placeholder",e.bMT(6,15,"components.agGridColumnSelect.placeholderPostProcessFormula"))("value",n.postProcessFormula())("error",n.postProcessFormulaError()??void 0),e.R7$(4),e.vxM(n.postProcessFormulaPreview()?7:-1),e.R7$(),e.Y8G("label",e.bMT(9,17,"components.agGridColumnSelect.labelPostProcessFunctions"))("expanded",!1),e.R7$(3),e.Dyx(n.formulaFunctions)}}class ue{allowEditing=!0;allowToggleEditable=!0;allowToggleHideOnHover=!0;allowSettingTextAlign=!0;allowSettingLabel=!0;allowSettingFilterType=!0;allowSettingMultiline=!0;allowSettingEnumValues=!0;allowSettingDataType=!1;allowSettingPostProcess=!0}const de={Text:$.U,Number:"agNumberColumnFilter",Date:"agDateColumnFilter",Select:A.A,None:!1,Auto:!0},me={agTextColumnFilter:"Text",agNumberColumnFilter:"Number",agDateColumnFilter:"Date",false:"None",true:"Auto"};let pe=(()=>{class p{columnDef=M.geq.required();columnIndex=(0,M.hFB)();updateColumn=(0,M.CGW)();close=(0,M.CGW)();settings=M.hFB.required();extraPanelLabel=(0,M.hFB)();extraPanelExpanded=(0,M.hFB)(!0);minWidth=(0,M.hFB)("600px");alignOptions=["left","center","right"];filterTypeOptions=["Text","Number","Date","Select","None","Auto"];dateFormatOptions=["dateTime","date","shortDate","timeAgo"];dataTypeOptions=["text","number","date","boolean"];_labelDataType=(0,h.Xx)("components.agGridColumnSelect.labelDataType");_labelDateFormat=(0,h.Xx)("components.agGridColumnSelect.labelDateFormat");_dtText=(0,h.Xx)("components.agGridColumnSelect.dataTypeText");_dtNumber=(0,h.Xx)("components.agGridColumnSelect.dataTypeNumber");_dtDate=(0,h.Xx)("components.agGridColumnSelect.dataTypeDate");_dtBoolean=(0,h.Xx)("components.agGridColumnSelect.dataTypeBoolean");_dfDateTime=(0,h.Xx)("components.agGridColumnSelect.dateFormatDateTime");_dfDate=(0,h.Xx)("components.agGridColumnSelect.dateFormatDate");_dfShortDate=(0,h.Xx)("components.agGridColumnSelect.dateFormatShortDate");_dfTimeAgo=(0,h.Xx)("components.agGridColumnSelect.dateFormatTimeAgo");dataTypeLabelMap=(0,t.EW)(()=>({text:this._dtText(),number:this._dtNumber(),date:this._dtDate(),boolean:this._dtBoolean()}));dateFormatLabelMap=(0,t.EW)(()=>({dateTime:this._dfDateTime(),date:this._dfDate(),shortDate:this._dfShortDate(),timeAgo:this._dfTimeAgo()}));_labelText=(0,h.Xx)("components.agGridColumnSelect.filterTypeText");_labelNumber=(0,h.Xx)("components.agGridColumnSelect.filterTypeNumber");_labelDate=(0,h.Xx)("components.agGridColumnSelect.filterTypeDate");_labelSelect=(0,h.Xx)("components.agGridColumnSelect.filterTypeSelect");_labelNone=(0,h.Xx)("components.agGridColumnSelect.filterTypeNone");_labelAuto=(0,h.Xx)("components.agGridColumnSelect.filterTypeAuto");filterTypeLabelMap=(0,t.EW)(()=>({Text:this._labelText(),Number:this._labelNumber(),Date:this._labelDate(),Select:this._labelSelect(),None:this._labelNone(),Auto:this._labelAuto()}));ALIGN_ICON={center:"text-align-center",left:"text-align-left",right:"text-align-right"};dataType=(0,t.EW)(()=>{const n=this.columnDef().cellRenderer;return n===c||"DateCellRenderer"===n?"date":"text"});dateFormat=(0,t.EW)(()=>{const n=this.columnDef().cellRenderer;return n===c||"DateCellRenderer"===n?this.columnDef().cellRendererParams?.dateFormat??"dateTime":"dateTime"});editable=(0,t.EW)(()=>!0===this.columnDef().editable);multiline=(0,t.EW)(()=>{const n=this.columnDef().cellRenderer;return n===l.l||"MultilineCellRenderer"===n});_ALIGN_TO_FLEX={left:"flex-start",right:"flex-end",center:"center"};_FLEX_TO_ALIGN={"flex-start":"left","flex-end":"right",center:"center",left:"left",right:"right"};textAlign=(0,t.uu)(()=>{const n=this.columnDef().cellStyle;return n?.textAlign||this._FLEX_TO_ALIGN[n?.justifyContent]||"left"});filterType=(0,t.EW)(()=>{const n=this.columnDef().filter;return n===A.A?"Select":n===$.U?"Text":me[n]||"Auto"});enumValuesText=(0,t.EW)(()=>(this.columnDef().cellRendererParams?.options??[]).map(C=>C.value).join(", "));label=(0,t.EW)(()=>this.columnDef().headerName||(0,k.x)(this.columnDef().field)||"Unknown");setEditable(n){const C=this.columnDef().cellRendererParams;this.updateColumn.emit(C?.options?.length?{editable:n,cellRendererParams:{...C,disabled:!n}}:{editable:n})}setMultiline(n){this.updateColumn.emit({cellRenderer:n?l.l:void 0,cellRendererParams:{lineHeight:"1.8"},autoHeight:!0})}setLabel(n){this.updateColumn.emit({headerName:n})}setTextAlign(n){const C=this.columnDef().cellStyle||{};this.updateColumn.emit({cellStyle:{...C,display:"flex",justifyContent:this._ALIGN_TO_FLEX[n]??n,textAlign:n},headerClass:`header-align-${n}`}),this.textAlign.set(n)}setFilterType(n){this.updateColumn.emit({filter:de[n]??!0})}setEnumValues(n){const C=n.split(",").map(v=>v.trim()).filter(v=>v.length>0);if(0===C.length)this.updateColumn.emit({cellRenderer:void 0,cellRendererParams:void 0});else{const v=C.map(G=>({value:G,label:G}));this.updateColumn.emit({cellRenderer:s,cellRendererParams:{options:v,disabled:!this.editable()}})}}setDateFormat(n){n&&this.updateColumn.emit({cellRenderer:c,cellRendererParams:{dateFormat:n}})}setDataType(n){this.updateColumn.emit("date"===n?{cellRenderer:c,cellRendererParams:{dateFormat:"dateTime"}}:{cellRenderer:void 0,cellRendererParams:void 0})}formulaFunctions=w.Zv;postProcessFormula=(0,t.EW)(()=>(0,w.PH)(this.columnDef().postProcess));postProcessFormulaError=(0,t.EW)(()=>(0,w.NF)(this.postProcessFormula()));postProcessFormulaPreview=(0,t.EW)(()=>{const n=this.postProcessFormula();return!n||this.postProcessFormulaError()?"":(0,w.w9)(n,"42")});setPostProcessFormula(n){const C=n.trim();this.updateColumn.emit({postProcess:C?{type:"formula",expression:C}:void 0})}static \u0275fac=function(C){return new(C||p)};static \u0275cmp=e.VBU({type:p,selectors:[["cue-table-column-settings-modal"]],inputs:{columnDef:[1,"columnDef"],columnIndex:[1,"columnIndex"],settings:[1,"settings"],extraPanelLabel:[1,"extraPanelLabel"],extraPanelExpanded:[1,"extraPanelExpanded"],minWidth:[1,"minWidth"]},outputs:{columnDef:"columnDefChange",updateColumn:"updateColumn",close:"close"},ngContentSelectors:J,decls:9,vars:9,consts:[[3,"close","label","minWidth"],["direction","column","gap","s",2,"overflow-y","auto","max-height","70vh","min-height","0","width","100%"],[3,"label","expanded"],[3,"label"],["direction","column"],[3,"label","value"],["direction","row","gap","l","justify","space-between","align","center"],[3,"valueChange","label","value"],["size","s"],["direction","row"],["variant","tertiary","size","s",3,"selected"],["variant","tertiary","size","s",3,"click","selected"],[3,"icon"],["size","m",3,"cueTooltip"],["size","m",3,"checkedChange","checked"],[3,"label","value","options","labelMap"],[3,"valueChange","label","value","options","labelMap"],["direction","column","gap","xs"],[3,"valueChange","label","info","placeholder","value","error"],["size","xs",2,"opacity","0.65"],["size","s",3,"label","expanded"],["direction","row","gap","s","align","start"],["size","xs",2,"font-family","monospace","min-width","210px","flex-shrink","0"],["size","xs",2,"opacity","0.7"]],template:function(C,v){1&C&&(e.NAR(W),e.j41(0,"cue-modal",0),e.nI1(1,"transloco"),e.bIt("close",function(){return v.close.emit()}),e.j41(2,"cue-flexcontainer",1),e.nVh(3,Q,7,7,"cue-expansion-panel",2),e.nVh(4,oe,7,6,"cue-expansion-panel",3),e.nVh(5,ae,10,10,"cue-expansion-panel",3),e.nVh(6,re,3,2,"cue-expansion-panel",2),e.nVh(7,ce,13,19,"cue-expansion-panel",3),e.SdG(8),e.k0s()()),2&C&&(e.Y8G("label",e.bMT(1,7,"components.agGridColumnSelect.titleColumnSettings"))("minWidth",v.minWidth()),e.R7$(3),e.vxM(v.settings().allowSettingLabel||v.settings().allowSettingTextAlign||v.settings().allowSettingMultiline?3:-1),e.R7$(),e.vxM(v.settings().allowSettingFilterType||v.settings().allowSettingEnumValues||v.settings().allowSettingDataType?4:-1),e.R7$(),e.vxM(v.settings().allowToggleEditable?5:-1),e.R7$(),e.vxM(v.extraPanelLabel()?6:-1),e.R7$(),e.vxM(v.settings().allowSettingPostProcess?7:-1))},dependencies:[N.a,T.FlexContainer,d.Typography,D.Select,F.Switch,f.d,y.Input,P.Button,E.ButtonIcon,x,h.Kj],encapsulation:2,changeDetection:0})}return p})()},16642(O,L,a){"use strict";function M(t){if(t)return t.replace(/([A-Z])/g," $1").replace(/^./,h=>h.toUpperCase())}a.d(L,{x:()=>M})},3183(O,L,a){"use strict";a.d(L,{A:()=>l});var M=a(17705),t=a(85802),h=a(89417),T=a(21359),d=a(58957),D=a(35381),F=a(42245),f=a(35547);const y=(i,e)=>e.value;function P(i,e){if(1&i){const s=f.RV6();f.j41(0,"cue-input",6),f.bIt("valueChange",function(_){t.eBV(s);const S=f.XpG();return S.searchText=_,t.Njj(S.onSearchChange())}),f.k0s()}if(2&i){const s=f.XpG();f.Y8G("value",s.searchText)}}function E(i,e){if(1&i){const s=f.RV6();f.j41(0,"cue-checkbox",7),f.bIt("checkedChange",function(_){const S=t.eBV(s).$implicit,j=f.XpG();return S.selected=_,t.Njj(j.onSelectionChange())}),f.k0s()}if(2&i){const s=e.$implicit;f.Y8G("label",s.value||"(blank)")("checked",s.selected)}}function N(i,e){1&i&&(f.j41(0,"cue-typography",5),f.EFF(1,"No results"),f.k0s())}let l=(()=>{class i{_cdr=(0,t.WQX)(M.gRc);_params;options=[];filteredOptions=[];searchText="";agInit(s){this._params=s}afterGuiAttached(s){this._refreshOptions(),this._cdr.markForCheck()}onNewRowsLoaded(){this._refreshOptions(),this._cdr.markForCheck()}isFilterActive(){return this.options.some(s=>!s.selected)}doesFilterPass(s){const g=new Set(this.options.filter(I=>I.selected).map(I=>I.value)),_=this._params.getValue(s.node),S=null==_?"":String(_);return"..."===S||"Loading..."===S||(""===S?g.has(""):S.split(", ").map(I=>I.trim()).some(I=>g.has(I)))}getModel(){return this.isFilterActive()?{selectedValues:this.options.filter(s=>s.selected).map(s=>s.value)}:null}setModel(s){if(s){const g=new Set(s.selectedValues);this.options.forEach(_=>_.selected=g.has(_.value))}else this.options.forEach(g=>g.selected=!0);this._applySearch(),this._cdr.markForCheck()}onSelectionChange(){this._params.filterChangedCallback(),this._cdr.markForCheck()}onSearchChange(){this._applySearch(),this._cdr.markForCheck()}get allSelected(){return this.options.length>0&&this.options.every(s=>s.selected)}toggleAll(s){this.options.forEach(g=>g.selected=s),this._applySearch(),this._params.filterChangedCallback(),this._cdr.markForCheck()}_refreshOptions(){const s=new Set;this._params.api.forEachNode(_=>{const S=this._params.getValue(_);if(null==S||""===S)s.add("");else{const j=String(S);if("..."===j||"Loading..."===j)return;const I=j.split(", ").map(X=>X.trim());for(const X of I)s.add(X)}});const g=new Map(this.options.map(_=>[_.value,_.selected]));this.options=Array.from(s).sort((_,S)=>_.localeCompare(S)).map(_=>({value:_,selected:g.get(_)??!0})),this._applySearch()}_applySearch(){const s=this.searchText.toLowerCase().trim();this.filteredOptions=s?this.options.filter(g=>g.value.toLowerCase().includes(s)):this.options}static \u0275fac=function(g){return new(g||i)};static \u0275cmp=f.VBU({type:i,selectors:[["cue-multi-select-filter"]],decls:7,vars:3,consts:[["direction","column","gap","s"],["placeholder","Search...","size","s",3,"value"],["size","s","label","Select all",3,"checkedChange","checked"],[1,"msf-list"],["size","s",3,"label","checked"],["size","s"],["placeholder","Search...","size","s",3,"valueChange","value"],["size","s",3,"checkedChange","label","checked"]],template:function(g,_){1&g&&(f.j41(0,"cue-flexcontainer",0),f.nVh(1,P,1,1,"cue-input",1),f.j41(2,"cue-checkbox",2),f.bIt("checkedChange",function(j){return _.toggleAll(j)}),f.k0s(),f.j41(3,"div",3),f.Z7z(4,E,1,2,"cue-checkbox",4,y),f.nVh(6,N,2,0,"cue-typography",5),f.k0s()()),2&g&&(f.R7$(),f.vxM(_.options.length>10?1:-1),f.R7$(),f.Y8G("checked",_.allSelected),f.R7$(2),f.Dyx(_.filteredOptions),f.R7$(2),f.vxM(0===_.filteredOptions.length?6:-1))},dependencies:[h.YN,T.Checkbox,d.Input,F.Typography,D.FlexContainer],styles:["[_nghost-%COMP%]{display:block;padding:var(--cue-card-padding-y) var(--cue-card-padding-x);min-width:200px;max-width:300px;box-sizing:border-box}.msf-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;max-height:200px;overflow-y:auto}"],changeDetection:0})}return i})()},15902(O,L,a){"use strict";a.d(L,{U:()=>N});var M=a(17705),t=a(85802),h=a(32271),T=a(59352),d=a(58957),D=a(35381),F=a(70063),f=a(42245),y=a(35547);function P(l,i){if(1&l){const e=y.RV6();y.j41(0,"cue-input",4),y.bIt("valueChange",function(g){t.eBV(e);const _=y.XpG();return t.Njj(_.onValueChange(g))}),y.k0s()}if(2&l){const e=y.XpG();y.Y8G("value",e.filterText)}}function E(l,i){if(1&l){const e=y.RV6();y.j41(0,"cue-typography",5),y.bIt("click",function(){t.eBV(e);const g=y.XpG();return t.Njj(g.clear())}),y.EFF(1,"Clear"),y.k0s()}}let N=(()=>{class l{_cdr=(0,t.WQX)(M.gRc);_params;filterText="";filterType="contains";filterTypeOptions=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"];_labelContains=(0,T.Xx)("components.agGridColumnSelect.textFilterContains");_labelNotContains=(0,T.Xx)("components.agGridColumnSelect.textFilterNotContains");_labelEquals=(0,T.Xx)("components.agGridColumnSelect.textFilterEquals");_labelNotEqual=(0,T.Xx)("components.agGridColumnSelect.textFilterNotEqual");_labelStartsWith=(0,T.Xx)("components.agGridColumnSelect.textFilterStartsWith");_labelEndsWith=(0,T.Xx)("components.agGridColumnSelect.textFilterEndsWith");_labelBlank=(0,T.Xx)("components.agGridColumnSelect.textFilterBlank");_labelNotBlank=(0,T.Xx)("components.agGridColumnSelect.textFilterNotBlank");filterTypeLabelMap=(0,h.EW)(()=>({contains:this._labelContains(),notContains:this._labelNotContains(),equals:this._labelEquals(),notEqual:this._labelNotEqual(),startsWith:this._labelStartsWith(),endsWith:this._labelEndsWith(),blank:this._labelBlank(),notBlank:this._labelNotBlank()}));showTextInput=(0,h.EW)(()=>!["blank","notBlank"].includes(this.filterType));agInit(e){this._params=e}afterGuiAttached(e){this._cdr.markForCheck()}isFilterActive(){return!!["blank","notBlank"].includes(this.filterType)||this.filterText.trim().length>0}doesFilterPass(e){const s=this._params.getValue(e.node),g=null==s?"":String(s),_=this.filterText.toLowerCase().trim(),S=g.toLowerCase();switch(this.filterType){case"contains":default:return S.includes(_);case"notContains":return!S.includes(_);case"equals":return S===_;case"notEqual":return S!==_;case"startsWith":return S.startsWith(_);case"endsWith":return S.endsWith(_);case"blank":return""===g;case"notBlank":return""!==g}}getModel(){return this.isFilterActive()?{filterType:"text",type:this.filterType,filter:this.filterText}:null}setModel(e){this.filterText=e?.filter??"",this.filterType=e?.type??"contains",this._cdr.markForCheck()}onValueChange(e){this.filterText=e,this._params.filterChangedCallback(),this._cdr.markForCheck()}onFilterTypeChange(e){this.filterType=String(e||"contains"),["blank","notBlank"].includes(this.filterType)&&(this.filterText=""),this._params.filterChangedCallback(),this._cdr.markForCheck()}clear(){this.filterText="",this.filterType="contains",this._params.filterChangedCallback(),this._cdr.markForCheck()}static \u0275fac=function(s){return new(s||l)};static \u0275cmp=y.VBU({type:l,selectors:[["cue-text-filter"]],decls:4,vars:5,consts:[["direction","column","gap","s"],["size","s",3,"valueChange","value","options","labelMap"],["placeholder","Filter...","size","s",3,"value"],["size","s",2,"cursor","pointer","text-align","right"],["placeholder","Filter...","size","s",3,"valueChange","value"],["size","s",2,"cursor","pointer","text-align","right",3,"click"]],template:function(s,g){1&s&&(y.j41(0,"cue-flexcontainer",0)(1,"cue-select",1),y.bIt("valueChange",function(S){return g.onFilterTypeChange(S)}),y.k0s(),y.nVh(2,P,1,1,"cue-input",2),y.nVh(3,E,2,0,"cue-typography",3),y.k0s()),2&s&&(y.R7$(),y.Y8G("value",g.filterType)("options",g.filterTypeOptions)("labelMap",g.filterTypeLabelMap()),y.R7$(),y.vxM(g.showTextInput()?2:-1),y.R7$(),y.vxM(g.filterText||"contains"!==g.filterType?3:-1))},dependencies:[d.Input,F.Select,f.Typography,D.FlexContainer],styles:["[_nghost-%COMP%]{display:block;padding:var(--cue-card-padding-y) var(--cue-card-padding-x);min-width:180px;max-width:280px;box-sizing:border-box}"],changeDetection:0})}return l})()},25764(O,L,a){"use strict";a.d(L,{l:()=>t});var M=a(35547);let t=(()=>{class h{value="";lineHeight="1.5";agInit(d){this.value=d.value||"",this.lineHeight=d.colDef&&d.colDef.cellRendererParams&&d.colDef.cellRendererParams.lineHeight||d.context&&d.context.lineHeight||"1.5"}refresh(d){return this.value=d.value||"",!0}static \u0275fac=function(D){return new(D||h)};static \u0275cmp=M.VBU({type:h,selectors:[["cue-multiline-cell-renderer"]],decls:2,vars:3,consts:[[1,"multiline-cell"]],template:function(D,F){1&D&&(M.rj2(0,"div",0),M.EFF(1),M.eux()),2&D&&(M.xc7("line-height",F.lineHeight),M.R7$(),M.JRh(F.value))},styles:[".multiline-cell[_ngcontent-%COMP%]{white-space:pre-wrap;word-wrap:break-word;padding:4px 2px;text-align:left}"]})}return h})()},97717(O,L,a){"use strict";a.d(L,{R:()=>h});var M=a(17705),t=a(35547);let h=(()=>{class T{cueFlip=(0,M.geq)(!1);get flipped(){return this.cueFlip()}static \u0275fac=function(F){return new(F||T)};static \u0275dir=t.FsC({type:T,selectors:[["","cueFlip",""]],hostVars:2,hostBindings:function(F,f){2&F&&t.AVh("flipped",f.flipped)},inputs:{cueFlip:[1,"cueFlip"]},outputs:{cueFlip:"cueFlipChange"}})}return T})()},67400(O,L,a){"use strict";function t(l){return l&&"none"!==l.type?"round"===l.type?`ROUND(?val, ${l.decimals})`:"prefix"===l.type?`PREFIX(?val, "${l.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`:"suffix"===l.type?`SUFFIX(?val, "${l.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`:"formula"===l.type?l.expression:"":""}function h(l,i){if(!i||"none"===i.type)return l;if("round"===i.type){const e=Number(l);return isNaN(e)?l:e.toFixed(i.decimals)}return"prefix"===i.type?l&&`${i.value}${l}`:"suffix"===i.type?l&&`${l}${i.value}`:"formula"===i.type?d(i.expression,l):l}a.d(L,{NF:()=>D,PH:()=>t,Zv:()=>T,g4:()=>h,w9:()=>d});const T=[{name:"ROUND",signature:"ROUND(?val, decimals)",description:"Round to N decimal places"},{name:"FLOOR",signature:"FLOOR(?val)",description:"Round down to nearest integer"},{name:"CEIL",signature:"CEIL(?val)",description:"Round up to nearest integer"},{name:"ABS",signature:"ABS(?val)",description:"Absolute value"},{name:"SQRT",signature:"SQRT(?val)",description:"Square root"},{name:"MIN",signature:"MIN(a, b)",description:"Smaller of two numbers"},{name:"MAX",signature:"MAX(a, b)",description:"Larger of two numbers"},{name:"CONCAT",signature:"CONCAT(a, b, ...)",description:"Concatenate strings"},{name:"PREFIX",signature:'PREFIX(?val, "text")',description:"Prepend text (skipped if value is empty)"},{name:"SUFFIX",signature:'SUFFIX(?val, "text")',description:"Append text (skipped if value is empty)"},{name:"TRIM",signature:"TRIM(?val)",description:"Remove leading/trailing whitespace"},{name:"UPPER",signature:"UPPER(?val)",description:"Convert to uppercase"},{name:"LOWER",signature:"LOWER(?val)",description:"Convert to lowercase"},{name:"LEN",signature:"LEN(?val)",description:"String length"},{name:"REPLACE",signature:'REPLACE(?val, "a", "b")',description:'Replace all occurrences of "a" with "b"'},{name:"REGEXP_REPLACE",signature:'REGEXP_REPLACE(?val, "pattern", "b")',description:'Replace all matches of a regular expression with "b"'},{name:"NUM",signature:"NUM(?val)",description:"Parse as number"},{name:"STR",signature:"STR(?val)",description:"Convert to string"},{name:"IF",signature:"IF(condition, then, else)",description:"Conditional expression"},{name:"AFTER_LAST",signature:'AFTER_LAST(?val, "sep")',description:"Substring after the last occurrence of sep"},{name:"AFTER_FIRST",signature:'AFTER_FIRST(?val, "sep")',description:"Substring after the first occurrence of sep"},{name:"BEFORE_LAST",signature:'BEFORE_LAST(?val, "sep")',description:"Substring before the last occurrence of sep"},{name:"BEFORE_FIRST",signature:'BEFORE_FIRST(?val, "sep")',description:"Substring before the first occurrence of sep"},{name:"SEGMENT",signature:'SEGMENT(?val, "sep", n)',description:"Get the Nth segment (0-based) when splitting ?val by sep"}];function d(l,i){if(!l||!l.trim())return i;try{const e=function f(l){const i=F.get(l);if(i)return i;const e=y(l);return F.set(l,e),e}(l),s=new P(e,{"?val":i}).parse();return null==s?"":String(s)}catch{return i}}function D(l){if(!l||!l.trim())return null;try{const i=y(l);return new P(i,{"?val":"42"}).parse(),null}catch(i){return i?.message??"Invalid formula"}}const F=new Map;function y(l){const i=[];let e=0;for(;e<l.length;){if(/\s/.test(l[e])){e++;continue}if('"'===l[e]||"'"===l[e]){const g=l[e++];let _="";for(;e<l.length&&l[e]!==g;)_+="\\"===l[e]?l[++e]:l[e],e++;if(l[e]!==g)throw new Error("Unterminated string literal");e++,i.push({kind:"str",val:_});continue}const s=l.slice(e).match(/^(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?/);if(s)i.push({kind:"num",val:s[0]}),e+=s[0].length;else{if("?"===l[e]){let g="?";for(e++;e<l.length&&/\w/.test(l[e]);)g+=l[e++];i.push({kind:"var",val:g});continue}if(/[A-Za-z_]/.test(l[e])){let g="";for(;e<l.length&&/\w/.test(l[e]);)g+=l[e++];i.push({kind:"ident",val:g.toUpperCase()});continue}if("**"!==l.slice(e,e+2)){if(!"+-*/%(),".includes(l[e]))throw new Error(`Unexpected character "${l[e]}" at position ${e}`);i.push({kind:"op",val:l[e++]})}else i.push({kind:"op",val:"**"}),e+=2}}return i.push({kind:"eof",val:""}),i}class P{tokens;vars;pos=0;constructor(i,e){this.tokens=i,this.vars=e}parse(){const i=this.expr();if("eof"!==this.tokens[this.pos].kind)throw new Error(`Unexpected token "${this.tokens[this.pos].val}" after expression`);return i}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}eat(i){if(this.peek().val!==i)throw new Error(`Expected "${i}", got "${this.peek().val||"end of input"}"`);this.pos++}expr(){return this.additive()}additive(){let i=this.multiplicative();for(;"op"===this.peek().kind&&("+"===this.peek().val||"-"===this.peek().val);){const e=this.next().val,s=this.multiplicative();i="+"===e?"string"==typeof i||"string"==typeof s?String(i)+String(s):i+s:E(i)-E(s)}return i}multiplicative(){let i=this.power();for(;"op"===this.peek().kind&&("*"===this.peek().val||"/"===this.peek().val||"%"===this.peek().val);){const e=this.next().val,s=this.power();if("*"===e)i=E(i)*E(s);else if("/"===e){const g=E(s);i=0!==g?E(i)/g:0}else i=E(i)%E(s)}return i}power(){const i=this.unary();return"op"===this.peek().kind&&"**"===this.peek().val?(this.next(),Math.pow(E(i),E(this.power()))):i}unary(){return"op"===this.peek().kind&&"-"===this.peek().val?(this.next(),-E(this.primary())):this.primary()}primary(){const i=this.peek();if("num"===i.kind)return this.next(),Number(i.val);if("str"===i.kind)return this.next(),i.val;if("var"===i.kind)return this.next(),this.vars[i.val]??"";if("ident"===i.kind)return this.funcCall();if("op"===i.kind&&"("===i.val){this.next();const e=this.expr();return this.eat(")"),e}throw new Error(`Unexpected token: "${i.val}"`)}funcCall(){const i=this.next().val;this.eat("(");const e=[];if(")"!==this.peek().val)for(e.push(this.expr());","===this.peek().val;)this.next(),e.push(this.expr());return this.eat(")"),function N(l,i){const e=s=>i[s]??"";switch(l){case"ROUND":return Number(E(e(0)).toFixed(Math.max(0,E(e(1)))));case"FLOOR":return Math.floor(E(e(0)));case"CEIL":return Math.ceil(E(e(0)));case"ABS":return Math.abs(E(e(0)));case"SQRT":return Math.sqrt(E(e(0)));case"MIN":return Math.min(...i.map(E));case"MAX":return Math.max(...i.map(E));case"CONCAT":return i.map(s=>String(s)).join("");case"TRIM":return String(e(0)).trim();case"UPPER":return String(e(0)).toUpperCase();case"LOWER":return String(e(0)).toLowerCase();case"LEN":return String(e(0)).length;case"REPLACE":return String(e(0)).replaceAll(String(e(1)),String(e(2)));case"REGEXP_REPLACE":return String(e(0)).replace(new RegExp(String(e(1)),"g"),String(e(2)));case"NUM":return E(e(0));case"STR":return String(e(0));case"PREFIX":return String(e(0))?String(e(1))+String(e(0)):String(e(0));case"SUFFIX":return String(e(0))?String(e(0))+String(e(1)):String(e(0));case"IF":return 0!==E(e(0))&&""!==e(0)&&"false"!==e(0)?e(1):e(2);case"AFTER_LAST":{const s=String(e(0)),g=String(e(1)),_=s.lastIndexOf(g);return-1===_?s:s.slice(_+g.length)}case"AFTER_FIRST":{const s=String(e(0)),g=String(e(1)),_=s.indexOf(g);return-1===_?s:s.slice(_+g.length)}case"BEFORE_LAST":{const s=String(e(0)),g=String(e(1)),_=s.lastIndexOf(g);return-1===_?s:s.slice(0,_)}case"BEFORE_FIRST":{const s=String(e(0)),g=String(e(1)),_=s.indexOf(g);return-1===_?s:s.slice(0,_)}case"SEGMENT":return String(e(0)).split(String(e(1)))[E(e(2))]??"";default:throw new Error(`Unknown function: "${l}"`)}}(i,e)}}function E(l){if("number"==typeof l)return l;const i=Number(l);return isNaN(i)?0:i}},67374(O){O.exports=function(){"use strict";var a=6e4,M=36e5,t="millisecond",h="second",T="minute",d="hour",D="day",F="week",f="month",y="quarter",P="year",E="date",N="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,i=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,e={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(u){var m=["th","st","nd","rd"],o=u%100;return"["+u+(m[(o-20)%10]||m[o]||m[0])+"]"}},s=function(u,m,o){var c=String(u);return!c||c.length>=m?u:""+Array(m+1-c.length).join(o)+u},g={s,z:function(u){var m=-u.utcOffset(),o=Math.abs(m),c=Math.floor(o/60),r=o%60;return(m<=0?"+":"-")+s(c,2,"0")+":"+s(r,2,"0")},m:function u(m,o){if(m.date()<o.date())return-u(o,m);var c=12*(o.year()-m.year())+(o.month()-m.month()),r=m.clone().add(c,f),b=o-r<0,x=m.clone().add(c+(b?-1:1),f);return+(-(c+(o-r)/(b?r-x:x-r))||0)},a:function(u){return u<0?Math.ceil(u)||0:Math.floor(u)},p:function(u){return{M:f,y:P,w:F,d:D,D:E,h:d,m:T,s:h,ms:t,Q:y}[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(u){return void 0===u}},_="en",S={};S[_]=e;var j="$isDayjsObject",I=function(u){return u instanceof z||!(!u||!u[j])},X=function u(m,o,c){var r;if(!m)return _;if("string"==typeof m){var b=m.toLowerCase();S[b]&&(r=b),o&&(S[b]=o,r=b);var x=m.split("-");if(!r&&x.length>1)return u(x[0])}else{var k=m.name;S[k]=m,r=k}return!c&&r&&(_=r),r||!c&&_},Y=function(u,m){if(I(u))return u.clone();var o="object"==typeof m?m:{};return o.date=u,o.args=arguments,new z(o)},R=g;R.l=X,R.i=I,R.w=function(u,m){return Y(u,{locale:m.$L,utc:m.$u,x:m.$x,$offset:m.$offset})};var z=function(){function u(o){this.$L=X(o.locale,null,!0),this.parse(o),this.$x=this.$x||o.x||{},this[j]=!0}var m=u.prototype;return m.parse=function(o){this.$d=function(c){var r=c.date,b=c.utc;if(null===r)return new Date(NaN);if(R.u(r))return new Date;if(r instanceof Date)return new Date(r);if("string"==typeof r&&!/Z$/i.test(r)){var x=r.match(l);if(x){var k=x[2]-1||0,A=(x[7]||"0").substring(0,3);return b?new Date(Date.UTC(x[1],k,x[3]||1,x[4]||0,x[5]||0,x[6]||0,A)):new Date(x[1],k,x[3]||1,x[4]||0,x[5]||0,x[6]||0,A)}}return new Date(r)}(o),this.init()},m.init=function(){var o=this.$d;this.$y=o.getFullYear(),this.$M=o.getMonth(),this.$D=o.getDate(),this.$W=o.getDay(),this.$H=o.getHours(),this.$m=o.getMinutes(),this.$s=o.getSeconds(),this.$ms=o.getMilliseconds()},m.$utils=function(){return R},m.isValid=function(){return this.$d.toString()!==N},m.isSame=function(o,c){var r=Y(o);return this.startOf(c)<=r&&r<=this.endOf(c)},m.isAfter=function(o,c){return Y(o)<this.startOf(c)},m.isBefore=function(o,c){return this.endOf(c)<Y(o)},m.$g=function(o,c,r){return R.u(o)?this[c]:this.set(r,o)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(o,c){var r=this,b=!!R.u(c)||c,x=R.p(o),k=function(K,V){var U=R.w(r.$u?Date.UTC(r.$y,V,K):new Date(r.$y,V,K),r);return b?U:U.endOf(D)},A=function(K,V){return R.w(r.toDate()[K].apply(r.toDate("s"),(b?[0,0,0,0]:[23,59,59,999]).slice(V)),r)},$=this.$W,w=this.$M,W=this.$D,J="set"+(this.$u?"UTC":"");switch(x){case P:return b?k(1,0):k(31,11);case f:return b?k(1,w):k(0,w+1);case F:var H=this.$locale().weekStart||0,Z=($<H?$+7:$)-H;return k(b?W-Z:W+(6-Z),w);case D:case E:return A(J+"Hours",0);case d:return A(J+"Minutes",1);case T:return A(J+"Seconds",2);case h:return A(J+"Milliseconds",3);default:return this.clone()}},m.endOf=function(o){return this.startOf(o,!1)},m.$set=function(o,c){var r,b=R.p(o),x="set"+(this.$u?"UTC":""),k=(r={},r[D]=x+"Date",r[E]=x+"Date",r[f]=x+"Month",r[P]=x+"FullYear",r[d]=x+"Hours",r[T]=x+"Minutes",r[h]=x+"Seconds",r[t]=x+"Milliseconds",r)[b],A=b===D?this.$D+(c-this.$W):c;if(b===f||b===P){var $=this.clone().set(E,1);$.$d[k](A),$.init(),this.$d=$.set(E,Math.min(this.$D,$.daysInMonth())).$d}else k&&this.$d[k](A);return this.init(),this},m.set=function(o,c){return this.clone().$set(o,c)},m.get=function(o){return this[R.p(o)]()},m.add=function(o,c){var r,b=this;o=Number(o);var x=R.p(c),k=function(w){var W=Y(b);return R.w(W.date(W.date()+Math.round(w*o)),b)};if(x===f)return this.set(f,this.$M+o);if(x===P)return this.set(P,this.$y+o);if(x===D)return k(1);if(x===F)return k(7);var A=(r={},r[T]=a,r[d]=M,r[h]=1e3,r)[x]||1,$=this.$d.getTime()+o*A;return R.w($,this)},m.subtract=function(o,c){return this.add(-1*o,c)},m.format=function(o){var c=this,r=this.$locale();if(!this.isValid())return r.invalidDate||N;var b=o||"YYYY-MM-DDTHH:mm:ssZ",x=R.z(this),k=this.$H,A=this.$m,$=this.$M,w=r.weekdays,W=r.months,H=function(V,U,Q,q){return V&&(V[U]||V(c,b))||Q[U].slice(0,q)},Z=function(V){return R.s(k%12||12,V,"0")},K=r.meridiem||function(V,U,Q){var q=V<12?"AM":"PM";return Q?q.toLowerCase():q};return b.replace(i,function(V,U){return U||function(Q){switch(Q){case"YY":return String(c.$y).slice(-2);case"YYYY":return R.s(c.$y,4,"0");case"M":return $+1;case"MM":return R.s($+1,2,"0");case"MMM":return H(r.monthsShort,$,W,3);case"MMMM":return H(W,$);case"D":return c.$D;case"DD":return R.s(c.$D,2,"0");case"d":return String(c.$W);case"dd":return H(r.weekdaysMin,c.$W,w,2);case"ddd":return H(r.weekdaysShort,c.$W,w,3);case"dddd":return w[c.$W];case"H":return String(k);case"HH":return R.s(k,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return K(k,A,!0);case"A":return K(k,A,!1);case"m":return String(A);case"mm":return R.s(A,2,"0");case"s":return String(c.$s);case"ss":return R.s(c.$s,2,"0");case"SSS":return R.s(c.$ms,3,"0");case"Z":return x}return null}(V)||x.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(o,c,r){var b,x=this,k=R.p(c),A=Y(o),$=(A.utcOffset()-this.utcOffset())*a,w=this-A,W=function(){return R.m(x,A)};switch(k){case P:b=W()/12;break;case f:b=W();break;case y:b=W()/3;break;case F:b=(w-$)/6048e5;break;case D:b=(w-$)/864e5;break;case d:b=w/M;break;case T:b=w/a;break;case h:b=w/1e3;break;default:b=w}return r?b:R.a(b)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return S[this.$L]},m.locale=function(o,c){if(!o)return this.$L;var r=this.clone(),b=X(o,c,!0);return b&&(r.$L=b),r},m.clone=function(){return R.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},u}(),ee=z.prototype;return Y.prototype=ee,[["$ms",t],["$s",h],["$m",T],["$H",d],["$W",D],["$M",f],["$y",P],["$D",E]].forEach(function(u){ee[u[1]]=function(m){return this.$g(m,u[0],u[1])}}),Y.extend=function(u,m){return u.$i||(u(m,z,Y),u.$i=!0),Y},Y.locale=X,Y.isDayjs=I,Y.unix=function(u){return Y(1e3*u)},Y.en=S[_],Y.Ls=S,Y.p={},Y}()},52269(O,L,a){O.exports=function(M){"use strict";var h=function t(d){return d&&"object"==typeof d&&"default"in d?d:{default:d}}(M),T={name:"da",weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n._man._tirs._ons._tors._fre._l\xf8r.".split("_"),weekdaysMin:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(d){return d+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"}};return h.default.locale(T,null,!0),T}(a(67374))},51409(O,L,a){O.exports=function(M){"use strict";var h=function t(F){return F&&"object"==typeof F&&"default"in F?F:{default:F}}(M),T={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function d(F,f,y){var P=T[y];return Array.isArray(P)&&(P=P[f?0:1]),P.replace("%d",F)}var D={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(F){return F+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:d,m:d,mm:d,h:d,hh:d,d,dd:d,M:d,MM:d,y:d,yy:d}};return h.default.locale(D,null,!0),D}(a(67374))},69785(O){O.exports=function(){"use strict";return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var a=["th","st","nd","rd"],M=L%100;return"["+L+(a[(M-20)%10]||a[M]||a[0])+"]"}}}()},72494(O,L,a){O.exports=function(M){"use strict";var h=function t(d){return d&&"object"==typeof d&&"default"in d?d:{default:d}}(M),T={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},ordinal:function(d){return d+"\xba"}};return h.default.locale(T,null,!0),T}(a(67374))},34230(O,L,a){O.exports=function(M){"use strict";var h=function t(d){return d&&"object"==typeof d&&"default"in d?d:{default:d}}(M),T={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(d){return d+(1===d?"er":"")}};return h.default.locale(T,null,!0),T}(a(67374))},59531(O,L,a){O.exports=function(M){"use strict";var h=function t(d){return d&&"object"==typeof d&&"default"in d?d:{default:d}}(M),T={name:"it",weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(d){return d+"\xba"}};return h.default.locale(T,null,!0),T}(a(67374))},24955(O){O.exports=function(){"use strict";var L={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(a,M,t){var h=M.prototype,T=h.format;t.en.formats=L,h.format=function(d){void 0===d&&(d="YYYY-MM-DDTHH:mm:ssZ");var y,D=this.$locale().formats,F=(y=void 0===D?{}:D,d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,E,N){var l=N&&N.toUpperCase();return E||y[N]||L[N]||y[l].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(i,e,s){return e||s.slice(1)})}));return T.call(this,F)}}}()},85164(O){O.exports=function(){"use strict";return function(L,a,M){L=L||{};var t=a.prototype,h={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function T(D,F,f,y){return t.fromToBase(D,F,f,y)}M.en.relativeTime=h,t.fromToBase=function(D,F,f,y,P){for(var E,N,l,i=f.$locale().relativeTime||h,e=L.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],s=e.length,g=0;g<s;g+=1){var _=e[g];_.d&&(E=y?M(D).diff(f,_.d,!0):f.diff(D,_.d,!0));var S=(L.rounding||Math.round)(Math.abs(E));if(l=E>0,S<=_.r||!_.r){S<=1&&g>0&&(_=e[g-1]);var j=i[_.l];P&&(S=P(""+S)),N="string"==typeof j?j.replace("%d",S):j(S,F,_.l,l);break}}if(F)return N;var I=l?i.future:i.past;return"function"==typeof I?I(N):I.replace("%s",N)},t.to=function(D,F){return T(D,F,this,!0)},t.from=function(D,F){return T(D,F,this)};var d=function(D){return D.$u?M.utc():M()};t.toNow=function(D){return this.to(d(this),D)},t.fromNow=function(D){return this.from(d(this),D)}}}()}}]);
package/1231.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[1231],{38527(B,z,A){function O(u){return u<0?0:u>1?1:u}function $(u,l,x=!1){if(!Number.isFinite(u))return 0;switch(l){case"float":case"float32":case"double":case"float64":return O(u/(x?255:1));case"ushort":case"uint16":return O(u/65535);case"short":case"int16":return O(u/32767);default:return O(u/255)}}function M(u,l){const x=u.some((o,P)=>function S(u){return"float"===u||"float32"===u||"double"===u||"float64"===u}(l[P%3])&&Number.isFinite(o)&&o>1);for(let o=0;o<u.length;o++)u[o]=$(u[o],l[o%3],x)}A.d(z,{X:()=>M})},16277(B,z,A){A.d(z,{S:()=>u,c:()=>M});var O=A(38527);const S={char:1,int8:1,uchar:1,uint8:1,short:2,int16:2,ushort:2,uint16:2,int:4,int32:4,uint:4,uint32:4,float:4,float32:4,double:8,float64:8},$=new TextDecoder;function M(t){const c=Math.min(65536,t.length),e=$.decode(t.subarray(0,c));if(!e.startsWith("ply"))throw new Error('PLY: missing magic \u2014 file does not start with "ply"');const n=e.indexOf("end_header");if(n<0)throw new Error("PLY: missing end_header line in first "+c+" bytes");const i=e.indexOf("\n",n);if(i<0)throw new Error("PLY: end_header line not terminated by newline");const s=i+1,p=e.slice(0,i+1).split("\n").map(a=>a.trim()).filter(a=>a.length>0);let _=null,w="1.0";const y=[];let I=null;for(const a of p)if("ply"!==a&&"end_header"!==a&&!a.startsWith("comment")&&!a.startsWith("obj_info")){if(a.startsWith("format ")){const b=a.split(/\s+/),h=b[1];if(w=b[2]??"1.0","ascii"!==h&&"binary_little_endian"!==h&&"binary_big_endian"!==h)throw new Error(`PLY: unsupported format "${h}"`);_=h;continue}if(a.startsWith("element ")){const b=a.split(/\s+/);if(!/^\d+$/.test(b[2]??""))throw new Error(`PLY: invalid element count "${b[2]}" for element "${b[1]}"`);I={name:b[1],count:parseInt(b[2],10),properties:[],recordSize:0,hasListProperty:!1},y.push(I);continue}if(a.startsWith("property ")){if(!I)throw new Error(`PLY: property declared before any element: "${a}"`);const b=a.split(/\s+/);if("list"===b[1]){I.hasListProperty=!0;continue}const h=b[1],Y=b[2],E=S[h];if(void 0===E)throw new Error(`PLY: unknown property type "${h}"`);I.properties.push({name:Y,type:h,size:E,offset:I.recordSize}),I.recordSize+=E;continue}}if(!_)throw new Error("PLY: missing `format` line in header");if(!y.some(a=>"vertex"===a.name))throw new Error("PLY: missing `vertex` element");return{format:_,version:w,elements:y,bodyOffset:s}}function u(t,c){const e=M(t),n=e.elements.find(r=>"vertex"===r.name);if(!n)throw new Error("PLY: no vertex element");if(e.elements[0]!==n)throw new Error(`PLY: vertex element must appear first; saw "${e.elements[0]?.name}" first`);if(n.hasListProperty)throw new Error("PLY: list-valued properties on the vertex element are not supported (variable-length records)");const i=n.properties.find(r=>"x"===r.name),d=n.properties.find(r=>"y"===r.name),s=n.properties.find(r=>"z"===r.name);if(!i||!d||!s)throw new Error("PLY: vertex element must define x, y, z properties");const p=n.properties.find(r=>"red"===r.name||"r"===r.name),_=n.properties.find(r=>"green"===r.name||"g"===r.name),w=n.properties.find(r=>"blue"===r.name||"b"===r.name),y=!!(p&&_&&w),I=n.properties.find(r=>"intensity"===r.name||"scalar_Intensity"===r.name),a=n.count;if(!Number.isFinite(a)||a<0)throw new Error(`PLY: invalid vertex count ${a}`);const b=t.length-e.bodyOffset,h="ascii"===e.format?Math.max(1,2*n.properties.length):n.recordSize,Y="ascii"===e.format&&a>0?a*h-1:a*h;if(h>0&&Y>b)throw new Error(`PLY: declared ${a} vertices need at least ${Y} body bytes but only ${b} are available`);const E=new Float32Array(3*a),C=y?new Float32Array(3*a):void 0,L=I?new Uint16Array(a):void 0;return"ascii"===e.format?function l(t,c,e,n,i,d,s){const p=$.decode(t.subarray(c.bodyOffset)),_=s?.[0]??0,w=s?.[1]??0,y=s?.[2]??0,I=e.properties.findIndex(m=>"x"===m.name),a=e.properties.findIndex(m=>"y"===m.name),b=e.properties.findIndex(m=>"z"===m.name),h=e.properties.findIndex(m=>"red"===m.name||"r"===m.name),Y=e.properties.findIndex(m=>"green"===m.name||"g"===m.name),E=e.properties.findIndex(m=>"blue"===m.name||"b"===m.name),C=e.properties.findIndex(m=>"intensity"===m.name||"scalar_Intensity"===m.name);let L=0,r=0;for(;r<e.count&&L<p.length;){let m=p.indexOf("\n",L);m<0&&(m=p.length);const f=p.slice(L,m).trim();if(L=m+1,!f)continue;const g=f.split(/\s+/);n[3*r]=Number(g[I])-_,n[3*r+1]=Number(g[a])-w,n[3*r+2]=Number(g[b])-y,i&&h>=0&&Y>=0&&E>=0&&(i[3*r]=Number(g[h]),i[3*r+1]=Number(g[Y]),i[3*r+2]=Number(g[E])),d&&C>=0&&(d[r]=Math.min(65535,Math.max(0,0|Number(g[C])))),r++}if(r!==e.count)throw new Error(`PLY ascii: expected ${e.count} vertex lines, got ${r}`)}(t,e,n,E,C,L,c):function x(t,c,e,n,i,d,s,p){const _=e.recordSize,w=e.count*_;if(t.length<c.bodyOffset+w)throw new Error(`PLY binary: expected ${w} body bytes, got ${t.length-c.bodyOffset}`);const y=new DataView(t.buffer,t.byteOffset+c.bodyOffset,w),I=p?.[0]??0,a=p?.[1]??0,b=p?.[2]??0,h=e.properties.find(f=>"x"===f.name),Y=e.properties.find(f=>"y"===f.name),E=e.properties.find(f=>"z"===f.name),C=i?e.properties.find(f=>"red"===f.name||"r"===f.name):void 0,L=i?e.properties.find(f=>"green"===f.name||"g"===f.name):void 0,r=i?e.properties.find(f=>"blue"===f.name||"b"===f.name):void 0,m=d?e.properties.find(f=>"intensity"===f.name||"scalar_Intensity"===f.name):void 0;for(let f=0;f<e.count;f++){const g=f*_;n[3*f]=o(y,g+h.offset,h,s)-I,n[3*f+1]=o(y,g+Y.offset,Y,s)-a,n[3*f+2]=o(y,g+E.offset,E,s)-b,i&&C&&L&&r&&(i[3*f]=o(y,g+C.offset,C,s),i[3*f+1]=o(y,g+L.offset,L,s),i[3*f+2]=o(y,g+r.offset,r,s)),d&&m&&(d[f]=Math.min(65535,Math.max(0,0|o(y,g+m.offset,m,s))))}}(t,e,n,E,C,L,"binary_little_endian"===e.format,c),C&&p&&_&&w&&(0,O.X)(C,[p.type,_.type,w.type]),{positions:E,colors:C,intensities:L,pointCount:a,bbox:P(E)}}function o(t,c,e,n){switch(e.type){case"char":case"int8":return t.getInt8(c);case"uchar":case"uint8":return t.getUint8(c);case"short":case"int16":return t.getInt16(c,n);case"ushort":case"uint16":return t.getUint16(c,n);case"int":case"int32":return t.getInt32(c,n);case"uint":case"uint32":return t.getUint32(c,n);case"float":case"float32":return t.getFloat32(c,n);case"double":case"float64":return t.getFloat64(c,n);default:throw new Error(`PLY: cannot read scalar of type "${e.type}"`)}}function P(t){let c=1/0,e=1/0,n=1/0,i=-1/0,d=-1/0,s=-1/0;for(let p=0;p<t.length;p+=3){const _=t[p],w=t[p+1],y=t[p+2];_<c&&(c=_),_>i&&(i=_),w<e&&(e=w),w>d&&(d=w),y<n&&(n=y),y>s&&(s=y)}return{min:[c,e,n],max:[i,d,s]}}},71231(B,z,A){A.r(z),A.d(z,{PlyStreamingSource:()=>$});var O=A(10467),S=A(16277);class ${blob;downsample;label;chunk=null;served=!1;originOffset;constructor(x,o={}){this.blob=x,this.downsample=o.downsample??{stride:1},this.label=o.label,this.originOffset=o.originOffset}open(x){var o=this;return(0,O.A)(function*(){u(x);const P=yield o.blob.arrayBuffer();u(x);const t=new Uint8Array(P),e=(0,S.c)(t).elements.find(s=>"vertex"===s.name);if(!e)throw new Error("PLY: no vertex element");const n=!!e.properties.find(s=>"red"===s.name||"r"===s.name)&&!!e.properties.find(s=>"green"===s.name||"g"===s.name)&&!!e.properties.find(s=>"blue"===s.name||"b"===s.name),i=!!e.properties.find(s=>"intensity"===s.name||"scalar_Intensity"===s.name),d=(0,S.S)(t,o.originOffset);return o.chunk=function M(l,x){const o=Math.max(1,0|x);if(1===o)return l;const P=Math.ceil(l.pointCount/o),t=new Float32Array(3*P),c=l.colors?new Float32Array(3*P):void 0,e=l.classifications?new Uint8Array(P):void 0,n=l.intensities?new Uint16Array(P):void 0;let i=0;for(let d=0;d<l.pointCount;d+=o)t[3*i]=l.positions[3*d],t[3*i+1]=l.positions[3*d+1],t[3*i+2]=l.positions[3*d+2],c&&l.colors&&(c[3*i]=l.colors[3*d],c[3*i+1]=l.colors[3*d+1],c[3*i+2]=l.colors[3*d+2]),e&&l.classifications&&(e[i]=l.classifications[d]),n&&l.intensities&&(n[i]=l.intensities[d]),i++;return{positions:t,colors:c,classifications:e,intensities:n,pointCount:P,bbox:l.bbox}}(d,o.downsample.stride),{totalPointCount:o.chunk.pointCount,bbox:o.chunk.bbox,hasColor:n,hasClassification:!1,hasIntensity:i,label:o.label}})()}next(x,o){var P=this;return(0,O.A)(function*(){return u(o),!P.chunk||P.served?null:(P.served=!0,P.chunk)})()}close(){this.chunk=null,this.served=!1}}function u(l){if(l?.aborted)throw new DOMException("Aborted","AbortError")}}}]);
package/1320.js ADDED
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var v,Me={61320(v,B,E){var ot=E(10467);class P{static __wrap(t){const r=Object.create(P.prototype);return r.__wbg_ptr=t,Te.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Te.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_clashintersectionsolidjs_free(t,0)}get degenerateReason(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.clashintersectionsolidjs_degenerateReason(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get indices(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashintersectionsolidjs_indices(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get isSolid(){return 0!==e.clashintersectionsolidjs_isSolid(this.__wbg_ptr)}get positions(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashintersectionsolidjs_positions(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=at(t,r).slice();return e.__wbindgen_export4(t,8*r,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get requiredM(){return e.clashintersectionsolidjs_requiredM(this.__wbg_ptr)}get thicknessM(){return e.clashintersectionsolidjs_thicknessM(this.__wbg_ptr)}get triangleCount(){return e.clashintersectionsolidjs_triangleCount(this.__wbg_ptr)>>>0}get volumeM3(){return e.clashintersectionsolidjs_volumeM3(this.__wbg_ptr)}}Symbol.dispose&&(P.prototype[Symbol.dispose]=P.prototype.free);class G{static __wrap(t){const r=Object.create(G.prototype);return r.__wbg_ptr=t,ze.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ze.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_clashrunresult_free(t,0)}get a(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_a(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get b(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_b(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get bounds(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_bounds(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=at(t,r).slice();return e.__wbindgen_export4(t,8*r,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get distance(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_distance(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=at(t,r).slice();return e.__wbindgen_export4(t,8*r,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get distanceKind(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_distanceKind(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=N(t,r).slice();return e.__wbindgen_export4(t,1*r,1),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get points(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_points(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=at(t,r).slice();return e.__wbindgen_export4(t,8*r,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get status(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_status(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=N(t,r).slice();return e.__wbindgen_export4(t,1*r,1),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(G.prototype[Symbol.dispose]=G.prototype.free);class dt{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ee.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_clashsession_free(t,0)}ingest(t,r,_,s,o){const c=et(t,e.__wbindgen_export),d=a,p=g(r,e.__wbindgen_export),l=a,u=g(_,e.__wbindgen_export),y=a,f=g(s,e.__wbindgen_export),w=a,h=et(o,e.__wbindgen_export);e.clashsession_ingest(this.__wbg_ptr,c,d,p,l,u,y,f,w,h,a)}constructor(){const t=e.clashsession_new();return this.__wbg_ptr=t,Ee.register(this,this.__wbg_ptr,this),this}runRule(t,r,_,s,o,c){const d=g(t,e.__wbindgen_export),p=a,l=g(r,e.__wbindgen_export),y=e.clashsession_runRule(this.__wbg_ptr,d,p,l,a,_,s,o,c);return G.__wrap(y)}}Symbol.dispose&&(dt.prototype[Symbol.dispose]=dt.prototype.free);class O{static __wrap(t){const r=Object.create(O.prototype);return r.__wbg_ptr=t,ce.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ce.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_contours2d_free(t,0)}bounds(){return b(e.contours2d_bounds(this.__wbg_ptr))}coords(){return b(e.contours2d_coords(this.__wbg_ptr))}static fromMeshOutline(t){!function wt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}(t,vt);const r=e.contours2d_fromMeshOutline(t.__wbg_ptr);return O.__wrap(r)}get isEmpty(){return 0!==e.contours2d_isEmpty(this.__wbg_ptr)}constructor(t,r){try{const c=e.__wbindgen_add_to_stack_pointer(-16),d=rt(t,e.__wbindgen_export),p=a,l=g(r,e.__wbindgen_export);e.contours2d_new(c,d,p,l,a);var _=i().getInt32(c+0,!0),s=i().getInt32(c+4,!0);if(i().getInt32(c+8,!0))throw b(s);return this.__wbg_ptr=_,ce.register(this,this.__wbg_ptr,this),this}finally{e.__wbindgen_add_to_stack_pointer(16)}}ring(t){return b(e.contours2d_ring(this.__wbg_ptr,t))}get ringCount(){return e.contours2d_ringCount(this.__wbg_ptr)>>>0}ringLengths(){return b(e.contours2d_ringLengths(this.__wbg_ptr))}get shapeCount(){return e.contours2d_shapeCount(this.__wbg_ptr)>>>0}shapeOffsets(){return b(e.contours2d_shapeOffsets(this.__wbg_ptr))}}Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);class st{static __wrap(t){const r=Object.create(st.prototype);return r.__wbg_ptr=t,Be.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Be.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gridaxiscollection_free(t,0)}getAxis(t){const r=e.gridaxiscollection_getAxis(this.__wbg_ptr,t);return 0===r?void 0:bt.__wrap(r)}get isEmpty(){return 0!==e.gridaxiscollection_isEmpty(this.__wbg_ptr)}get length(){return e.gridaxiscollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(st.prototype[Symbol.dispose]=st.prototype.free);class bt{static __wrap(t){const r=Object.create(bt.prototype);return r.__wbg_ptr=t,Oe.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Oe.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gridaxisjs_free(t,0)}get axisId(){return e.gridaxisjs_axisId(this.__wbg_ptr)>>>0}get end(){return b(e.gridaxisjs_end(this.__wbg_ptr))}get gridId(){return e.gridaxisjs_gridId(this.__wbg_ptr)>>>0}get start(){return b(e.gridaxisjs_start(this.__wbg_ptr))}get tag(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.gridaxisjs_tag(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}}Symbol.dispose&&(bt.prototype[Symbol.dispose]=bt.prototype.free);class re{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Pe.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_ifcapi_free(t,0)}buildPrePassOnce(t){const r=S(t,e.__wbindgen_export);return b(e.ifcapi_buildPrePassOnce(this.__wbg_ptr,r,a))}buildPrePassStreaming(t,r,_,s,o){try{const y=e.__wbindgen_add_to_stack_pointer(-16),f=S(t,e.__wbindgen_export),w=a;var c=x(s)?0:nr(s,e.__wbindgen_export),d=a;e.ifcapi_buildPrePassStreaming(y,this.__wbg_ptr,f,w,Qe(r),_,c,d,o);var p=i().getInt32(y+0,!0),l=i().getInt32(y+4,!0);if(i().getInt32(y+8,!0))throw b(l);return b(p)}finally{e.__wbindgen_add_to_stack_pointer(16),it[Xt++]=void 0}}buildPrePassStreamingSharded(t,r,_,s,o,c,d,p,l){try{const m=e.__wbindgen_add_to_stack_pointer(-16),I=S(t,e.__wbindgen_export),A=a;var u=x(s)?0:nr(s,e.__wbindgen_export),y=a;const M=g(c,e.__wbindgen_export),F=a,C=g(d,e.__wbindgen_export),j=a,H=g(p,e.__wbindgen_export),U=a,V=S(l,e.__wbindgen_export),J=a;e.ifcapi_buildPrePassStreamingSharded(m,this.__wbg_ptr,I,A,Qe(r),_,u,y,o,M,F,C,j,H,U,V,J);var f=i().getInt32(m+0,!0),w=i().getInt32(m+4,!0);if(i().getInt32(m+8,!0))throw b(w);return b(f)}finally{e.__wbindgen_add_to_stack_pointer(16),it[Xt++]=void 0}}clearPrePassCache(){e.ifcapi_clearPrePassCache(this.__wbg_ptr)}diagnoseGeometry(t){const r=S(t,e.__wbindgen_export);return b(e.ifcapi_diagnoseGeometry(this.__wbg_ptr,r,a))}exportCsv(t,r,_,s){try{const p=e.__wbindgen_add_to_stack_pointer(-16),l=S(t,e.__wbindgen_export),u=a,y=z(r,e.__wbindgen_export,e.__wbindgen_export2),f=a,w=z(_,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_exportCsv(p,this.__wbg_ptr,l,u,y,f,w,a,s);var o=i().getInt32(p+0,!0),c=i().getInt32(p+4,!0),d=N(o,c).slice();return e.__wbindgen_export4(o,1*c,1),d}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportDfjson(t,r){let _,s;try{const d=e.__wbindgen_add_to_stack_pointer(-16),p=S(t,e.__wbindgen_export),l=a,u=z(r,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_exportDfjson(d,this.__wbg_ptr,p,l,u,a);var o=i().getInt32(d+0,!0),c=i().getInt32(d+4,!0);return _=o,s=c,T(o,c)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(_,s,1)}}exportGlb(t,r,_,s,o,c,d){try{const w=e.__wbindgen_add_to_stack_pointer(-16),h=S(t,e.__wbindgen_export),m=a,I=g(_,e.__wbindgen_export),A=a,M=g(s,e.__wbindgen_export),F=a,C=z(o,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_exportGlb(w,this.__wbg_ptr,h,m,r,I,A,M,F,C,a,x(c)?16777215:c?1:0,x(d)?16777215:d?1:0);var p=i().getInt32(w+0,!0),l=i().getInt32(w+4,!0),u=i().getInt32(w+8,!0);if(i().getInt32(w+12,!0))throw b(u);var f=N(p,l).slice();return e.__wbindgen_export4(p,1*l,1),f}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportGlbFromMeshes(t,r,_,s,o,c,d,p,l,u,y){try{const A=e.__wbindgen_add_to_stack_pointer(-16),M=et(t,e.__wbindgen_export),F=a,C=et(r,e.__wbindgen_export),j=a,H=g(_,e.__wbindgen_export),U=a,V=g(s,e.__wbindgen_export),J=a,D=g(o,e.__wbindgen_export),Y=a,X=et(c,e.__wbindgen_export),K=a,Z=rt(d,e.__wbindgen_export),$=a,Q=g(p,e.__wbindgen_export);e.ifcapi_exportGlbFromMeshes(A,this.__wbg_ptr,M,F,C,j,H,U,V,J,D,Y,X,K,Z,$,Q,a,l,x(u)?16777215:u?1:0,x(y)?16777215:y?1:0);var f=i().getInt32(A+0,!0),w=i().getInt32(A+4,!0),h=i().getInt32(A+8,!0);if(i().getInt32(A+12,!0))throw b(h);var I=N(f,w).slice();return e.__wbindgen_export4(f,1*w,1),I}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportHbjson(t,r){try{const c=e.__wbindgen_add_to_stack_pointer(-16),d=S(t,e.__wbindgen_export),p=a,l=z(r,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_exportHbjson(c,this.__wbg_ptr,d,p,l,a);var _=i().getInt32(c+0,!0),s=i().getInt32(c+4,!0),o=N(_,s).slice();return e.__wbindgen_export4(_,1*s,1),o}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportHbjsonWithStats(t,r){const _=S(t,e.__wbindgen_export),s=a,o=z(r,e.__wbindgen_export,e.__wbindgen_export2);return b(e.ifcapi_exportHbjsonWithStats(this.__wbg_ptr,_,s,o,a))}exportIfcx(t,r,_){try{const d=e.__wbindgen_add_to_stack_pointer(-16),p=S(t,e.__wbindgen_export);e.ifcapi_exportIfcx(d,this.__wbg_ptr,p,a,r,_);var s=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0),c=N(s,o).slice();return e.__wbindgen_export4(s,1*o,1),c}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportJson(t,r,_,s){try{const p=e.__wbindgen_add_to_stack_pointer(-16),l=S(t,e.__wbindgen_export);e.ifcapi_exportJson(p,this.__wbg_ptr,l,a,r,_,s);var o=i().getInt32(p+0,!0),c=i().getInt32(p+4,!0),d=N(o,c).slice();return e.__wbindgen_export4(o,1*c,1),d}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportJsonld(t,r,_,s,o,c){try{const u=e.__wbindgen_add_to_stack_pointer(-16),y=S(t,e.__wbindgen_export),f=a,w=z(r,e.__wbindgen_export,e.__wbindgen_export2),h=a,m=g(c,e.__wbindgen_export);e.ifcapi_exportJsonld(u,this.__wbg_ptr,y,f,w,h,_,s,o,m,a);var d=i().getInt32(u+0,!0),p=i().getInt32(u+4,!0),l=N(d,p).slice();return e.__wbindgen_export4(d,1*p,1),l}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportKmz(t,r,_,s,o,c,d,p){try{const h=e.__wbindgen_add_to_stack_pointer(-16),m=S(t,e.__wbindgen_export),I=a,A=z(d,e.__wbindgen_export,e.__wbindgen_export2),M=a;var l=x(p)?0:z(p,e.__wbindgen_export,e.__wbindgen_export2),u=a;e.ifcapi_exportKmz(h,this.__wbg_ptr,m,I,r,_,s,!x(o),x(o)?0:o,!x(c),x(c)?0:c,A,M,l,u);var y=i().getInt32(h+0,!0),f=i().getInt32(h+4,!0),w=N(y,f).slice();return e.__wbindgen_export4(y,1*f,1),w}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportKmzFromMeshes(t,r,_,s,o,c,d,p,l,u,y,f,w,h){try{const C=e.__wbindgen_add_to_stack_pointer(-16),j=et(t,e.__wbindgen_export),H=a,U=et(r,e.__wbindgen_export),V=a,J=g(_,e.__wbindgen_export),D=a,Y=g(s,e.__wbindgen_export),X=a,K=g(o,e.__wbindgen_export),Z=a,$=et(c,e.__wbindgen_export),Q=a,q=rt(d,e.__wbindgen_export),_t=a,ct=z(w,e.__wbindgen_export,e.__wbindgen_export2),pt=a;var m=x(h)?0:z(h,e.__wbindgen_export,e.__wbindgen_export2),I=a;e.ifcapi_exportKmzFromMeshes(C,this.__wbg_ptr,j,H,U,V,J,D,Y,X,K,Z,$,Q,q,_t,p,l,u,!x(y),x(y)?0:y,!x(f),x(f)?0:f,ct,pt,m,I);var A=i().getInt32(C+0,!0),M=i().getInt32(C+4,!0),F=N(A,M).slice();return e.__wbindgen_export4(A,1*M,1),F}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportMerged(t,r,_){try{const d=e.__wbindgen_add_to_stack_pointer(-16),p=S(t,e.__wbindgen_export),l=a,u=g(r,e.__wbindgen_export),y=a,f=z(_,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_exportMerged(d,this.__wbg_ptr,p,l,u,y,f,a);var s=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0),c=N(s,o).slice();return e.__wbindgen_export4(s,1*o,1),c}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportObj(t,r,_,s){try{const p=e.__wbindgen_add_to_stack_pointer(-16),l=S(t,e.__wbindgen_export),u=a,y=g(_,e.__wbindgen_export),f=a,w=g(s,e.__wbindgen_export);e.ifcapi_exportObj(p,this.__wbg_ptr,l,u,r,y,f,w,a);var o=i().getInt32(p+0,!0),c=i().getInt32(p+4,!0),d=N(o,c).slice();return e.__wbindgen_export4(o,1*c,1),d}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportStep(t,r,_,s){try{const p=e.__wbindgen_add_to_stack_pointer(-16),l=S(t,e.__wbindgen_export),u=a,y=z(r,e.__wbindgen_export,e.__wbindgen_export2),f=a,w=g(_,e.__wbindgen_export),h=a,m=z(s,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_exportStep(p,this.__wbg_ptr,l,u,y,f,w,h,m,a);var o=i().getInt32(p+0,!0),c=i().getInt32(p+4,!0),d=N(o,c).slice();return e.__wbindgen_export4(o,1*c,1),d}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportUsd(t){try{const o=e.__wbindgen_add_to_stack_pointer(-16),c=S(t,e.__wbindgen_export);e.ifcapi_exportUsd(o,this.__wbg_ptr,c,a);var r=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0),s=N(r,_).slice();return e.__wbindgen_export4(r,1*_,1),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}extractProfiles(t,r){const _=z(t,e.__wbindgen_export,e.__wbindgen_export2),o=e.ifcapi_extractProfiles(this.__wbg_ptr,_,a,r);return Tt.__wrap(o)}finalizePrepassStyles(t,r,_,s,o,c,d,p,l,u,y,f){try{const I=e.__wbindgen_add_to_stack_pointer(-16),A=S(t,e.__wbindgen_export),M=a,F=g(r,e.__wbindgen_export),C=a,j=et(_,e.__wbindgen_export),H=a,U=g(s,e.__wbindgen_export),V=a,J=et(o,e.__wbindgen_export),D=a,Y=g(c,e.__wbindgen_export),X=a,K=g(d,e.__wbindgen_export),Z=a,$=g(p,e.__wbindgen_export),Q=a,q=g(l,e.__wbindgen_export),_t=a,ct=g(u,e.__wbindgen_export),pt=a,ut=g(y,e.__wbindgen_export);e.ifcapi_finalizePrepassStyles(I,this.__wbg_ptr,A,M,F,C,j,H,U,V,J,D,Y,X,K,Z,$,Q,q,_t,ct,pt,ut,a,f);var w=i().getInt32(I+0,!0),h=i().getInt32(I+4,!0);if(i().getInt32(I+8,!0))throw b(h);return b(w)}finally{e.__wbindgen_add_to_stack_pointer(16)}}getMemory(){return b(e.ifcapi_getMemory(this.__wbg_ptr))}getPipelineDiagnostics(){return b(e.ifcapi_getPipelineDiagnostics(this.__wbg_ptr))}get is_ready(){return 0!==e.ifcapi_is_ready(this.__wbg_ptr)}constructor(){const t=e.ifcapi_new();return this.__wbg_ptr=t,Pe.register(this,this.__wbg_ptr,this),this}parseAlignmentLines(t){const r=z(t,e.__wbindgen_export,e.__wbindgen_export2);return b(e.ifcapi_parseAlignmentLines(this.__wbg_ptr,r,a))}parseGridAxes(t){const r=z(t,e.__wbindgen_export,e.__wbindgen_export2),s=e.ifcapi_parseGridAxes(this.__wbg_ptr,r,a);return st.__wrap(s)}parseGridLines(t){const r=z(t,e.__wbindgen_export,e.__wbindgen_export2);return b(e.ifcapi_parseGridLines(this.__wbg_ptr,r,a))}parseSymbolicRepresentations(t){const r=z(t,e.__wbindgen_export,e.__wbindgen_export2),s=e.ifcapi_parseSymbolicRepresentations(this.__wbg_ptr,r,a);return Gt.__wrap(s)}processGeometryBatch(t,r,_,s,o,c,d,p,l,u,y,f,w,h,m,I){const A=S(t,e.__wbindgen_export),M=a,F=g(r,e.__wbindgen_export),C=a,j=g(p,e.__wbindgen_export),H=a,U=g(l,e.__wbindgen_export),V=a,J=g(u,e.__wbindgen_export),D=a,Y=g(y,e.__wbindgen_export),X=a,K=S(f,e.__wbindgen_export),Z=a;var $=x(h)?0:g(h,e.__wbindgen_export),Q=a,q=x(m)?0:g(m,e.__wbindgen_export),_t=a,ct=x(I)?0:S(I,e.__wbindgen_export),pt=a;const ut=e.ifcapi_processGeometryBatch(this.__wbg_ptr,A,M,F,C,_,s,o,c,d,j,H,U,V,J,D,Y,X,K,Z,!x(w),x(w)?0:w,$,Q,q,_t,ct,pt);return yt.__wrap(ut)}processGeometryBatchFromSource(t,r,_,s,o,c,d,p,l,u,y,f,w,h,m){const I=g(t,e.__wbindgen_export),A=a,M=g(d,e.__wbindgen_export),F=a,C=g(p,e.__wbindgen_export),j=a,H=g(l,e.__wbindgen_export),U=a,V=g(u,e.__wbindgen_export),J=a,D=S(y,e.__wbindgen_export),Y=a;var X=x(w)?0:g(w,e.__wbindgen_export),K=a,Z=x(h)?0:g(h,e.__wbindgen_export),$=a,Q=x(m)?0:S(m,e.__wbindgen_export),q=a;const _t=e.ifcapi_processGeometryBatchFromSource(this.__wbg_ptr,I,A,r,_,s,o,c,M,F,C,j,H,U,V,J,D,Y,!x(f),x(f)?0:f,X,K,Z,$,Q,q);return yt.__wrap(_t)}processGeometryBatchInstanced(t,r,_,s,o,c,d,p,l,u,y,f,w,h,m,I){try{const D=e.__wbindgen_add_to_stack_pointer(-16),Y=S(t,e.__wbindgen_export),X=a,K=g(r,e.__wbindgen_export),Z=a,$=g(p,e.__wbindgen_export),Q=a,q=g(l,e.__wbindgen_export),_t=a,ct=g(u,e.__wbindgen_export),pt=a,ut=g(y,e.__wbindgen_export),ee=a,Ce=S(f,e.__wbindgen_export),Zr=a;var A=x(h)?0:g(h,e.__wbindgen_export),M=a,F=x(m)?0:g(m,e.__wbindgen_export),C=a,j=x(I)?0:S(I,e.__wbindgen_export),H=a;e.ifcapi_processGeometryBatchInstanced(D,this.__wbg_ptr,Y,X,K,Z,_,s,o,c,d,$,Q,q,_t,ct,pt,ut,ee,Ce,Zr,!x(w),x(w)?0:w,A,M,F,C,j,H);var U=i().getInt32(D+0,!0),V=i().getInt32(D+4,!0),J=N(U,V).slice();return e.__wbindgen_export4(U,1*V,1),J}finally{e.__wbindgen_add_to_stack_pointer(16)}}processGeometryBatchPartitioned(t,r,_,s,o,c,d,p,l,u,y,f,w,h,m,I){const A=S(t,e.__wbindgen_export),M=a,F=g(r,e.__wbindgen_export),C=a,j=g(p,e.__wbindgen_export),H=a,U=g(l,e.__wbindgen_export),V=a,J=g(u,e.__wbindgen_export),D=a,Y=g(y,e.__wbindgen_export),X=a,K=S(f,e.__wbindgen_export),Z=a;var $=x(h)?0:g(h,e.__wbindgen_export),Q=a,q=x(m)?0:g(m,e.__wbindgen_export),_t=a,ct=x(I)?0:S(I,e.__wbindgen_export),pt=a;const ut=e.ifcapi_processGeometryBatchPartitioned(this.__wbg_ptr,A,M,F,C,_,s,o,c,d,j,H,U,V,J,D,Y,X,K,Z,!x(w),x(w)?0:w,$,Q,q,_t,ct,pt);return ft.__wrap(ut)}processGeometryBatchPartitionedFromSource(t,r,_,s,o,c,d,p,l,u,y,f,w,h,m){const I=g(t,e.__wbindgen_export),A=a,M=g(d,e.__wbindgen_export),F=a,C=g(p,e.__wbindgen_export),j=a,H=g(l,e.__wbindgen_export),U=a,V=g(u,e.__wbindgen_export),J=a,D=S(y,e.__wbindgen_export),Y=a;var X=x(w)?0:g(w,e.__wbindgen_export),K=a,Z=x(h)?0:g(h,e.__wbindgen_export),$=a,Q=x(m)?0:S(m,e.__wbindgen_export),q=a;const _t=e.ifcapi_processGeometryBatchPartitionedFromSource(this.__wbg_ptr,I,A,r,_,s,o,c,M,F,C,j,H,U,V,J,D,Y,!x(f),x(f)?0:f,X,K,Z,$,Q,q);return ft.__wrap(_t)}resolveStyledItemsShard(t,r){try{const c=e.__wbindgen_add_to_stack_pointer(-16),d=S(t,e.__wbindgen_export),p=a,l=g(r,e.__wbindgen_export);e.ifcapi_resolveStyledItemsShard(c,this.__wbg_ptr,d,p,l,a);var _=i().getInt32(c+0,!0),s=i().getInt32(c+4,!0);if(i().getInt32(c+8,!0))throw b(s);return b(_)}finally{e.__wbindgen_add_to_stack_pointer(16)}}scanEntitiesFast(t){const r=z(t,e.__wbindgen_export,e.__wbindgen_export2);return b(e.ifcapi_scanEntitiesFast(this.__wbg_ptr,r,a))}scanEntitiesFastBytes(t){const r=S(t,e.__wbindgen_export);return b(e.ifcapi_scanEntitiesFastBytes(this.__wbg_ptr,r,a))}scanEntityIndexShard(t,r,_){const s=S(t,e.__wbindgen_export);return b(e.ifcapi_scanEntityIndexShard(this.__wbg_ptr,s,a,r,_))}scanGeometryEntitiesFast(t){const r=z(t,e.__wbindgen_export,e.__wbindgen_export2);return b(e.ifcapi_scanGeometryEntitiesFast(this.__wbg_ptr,r,a))}setComputeGeometryHashes(t){e.ifcapi_setComputeGeometryHashes(this.__wbg_ptr,!x(t),x(t)?0:t)}setEntityIndex(t,r,_){const s=g(t,e.__wbindgen_export),o=a,c=g(r,e.__wbindgen_export),d=a,p=g(_,e.__wbindgen_export);e.ifcapi_setEntityIndex(this.__wbg_ptr,s,o,c,d,p,a)}setInstantiatedTypeIds(t){const r=g(t,e.__wbindgen_export);e.ifcapi_setInstantiatedTypeIds(this.__wbg_ptr,r,a)}setMappedInstancePlan(t){const r=g(t,e.__wbindgen_export);e.ifcapi_setMappedInstancePlan(this.__wbg_ptr,r,a)}setMaterialLayerIndex(t,r,_,s,o,c,d){const p=g(t,e.__wbindgen_export),l=a,u=g(r,e.__wbindgen_export),y=a,f=g(_,e.__wbindgen_export),w=a,h=rt(s,e.__wbindgen_export),m=a,I=rt(o,e.__wbindgen_export),A=a,M=g(c,e.__wbindgen_export),F=a,C=rt(d,e.__wbindgen_export);e.ifcapi_setMaterialLayerIndex(this.__wbg_ptr,p,l,u,y,f,w,h,m,I,A,M,F,C,a)}setMergeLayers(t){e.ifcapi_setMergeLayers(this.__wbg_ptr,t)}setRectParamFastPath(t){e.ifcapi_setRectParamFastPath(this.__wbg_ptr,t)}setReferencedRepmaps(t){const r=g(t,e.__wbindgen_export);e.ifcapi_setReferencedRepmaps(this.__wbg_ptr,r,a)}setSkipSmallCuts(t){e.ifcapi_setSkipSmallCuts(this.__wbg_ptr,t)}setSourceBytes(t){const r=S(t,e.__wbindgen_export);e.ifcapi_setSourceBytes(this.__wbg_ptr,r,a)}setTessellationQuality(t){try{const c=e.__wbindgen_add_to_stack_pointer(-16);var r=x(t)?0:z(t,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_setTessellationQuality(c,this.__wbg_ptr,r,a);var s=i().getInt32(c+0,!0);if(i().getInt32(c+4,!0))throw b(s)}finally{e.__wbindgen_add_to_stack_pointer(16)}}simplifyMeshes(t,r,_,s,o,c,d,p,l,u,y,f,w,h,m){try{const F=e.__wbindgen_add_to_stack_pointer(-16),C=g(t,e.__wbindgen_export),j=a,H=S(r,e.__wbindgen_export),U=a,V=et(_,e.__wbindgen_export),J=a,D=et(s,e.__wbindgen_export),Y=a,X=g(o,e.__wbindgen_export),K=a,Z=g(c,e.__wbindgen_export),$=a,Q=g(d,e.__wbindgen_export),q=a,_t=rt(p,e.__wbindgen_export),ct=a,pt=rt(l,e.__wbindgen_export),ut=a,ee=S(u,e.__wbindgen_export);e.ifcapi_simplifyMeshes(F,this.__wbg_ptr,C,j,H,U,V,J,D,Y,X,K,Z,$,Q,q,_t,ct,pt,ut,ee,a,y,f,w,h,m);var I=i().getInt32(F+0,!0),A=i().getInt32(F+4,!0);if(i().getInt32(F+8,!0))throw b(A);return Et.__wrap(I)}finally{e.__wbindgen_add_to_stack_pointer(16)}}get version(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.ifcapi_version(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}}Symbol.dispose&&(re.prototype[Symbol.dispose]=re.prototype.free);class yt{static __wrap(t){const r=Object.create(yt.prototype);return r.__wbg_ptr=t,Ge.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ge.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_meshcollection_free(t,0)}get buildingRotation(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.meshcollection_buildingRotation(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),r=i().getFloat64(_+8,!0);return 0===t?void 0:r}finally{e.__wbindgen_add_to_stack_pointer(16)}}get diagnostics(){return b(e.meshcollection_diagnostics(this.__wbg_ptr))}get geometryAabbValues(){return b(e.meshcollection_geometryAabbValues(this.__wbg_ptr))}get geometryClosureFlags(){return b(e.meshcollection_geometryClosureFlags(this.__wbg_ptr))}get geometryHashCount(){return e.meshcollection_geometryHashCount(this.__wbg_ptr)>>>0}get geometryHashIds(){return b(e.meshcollection_geometryHashIds(this.__wbg_ptr))}get geometryHashValues(){return b(e.meshcollection_geometryHashValues(this.__wbg_ptr))}get geometryVolumeValues(){return b(e.meshcollection_geometryVolumeValues(this.__wbg_ptr))}get(t){const r=e.meshcollection_get(this.__wbg_ptr,t);return 0===r?void 0:xt.__wrap(r)}hasRtcOffset(){return 0!==e.meshcollection_hasRtcOffset(this.__wbg_ptr)}get length(){return e.meshcollection_length(this.__wbg_ptr)>>>0}get rtcOffsetX(){return e.meshcollection_rtcOffsetX(this.__wbg_ptr)}get rtcOffsetY(){return e.meshcollection_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return e.meshcollection_rtcOffsetZ(this.__wbg_ptr)}takeMesh(t){const r=e.meshcollection_takeMesh(this.__wbg_ptr,t);return 0===r?void 0:xt.__wrap(r)}get totalTriangles(){return e.meshcollection_totalTriangles(this.__wbg_ptr)>>>0}get totalVertices(){return e.meshcollection_totalVertices(this.__wbg_ptr)>>>0}}Symbol.dispose&&(yt.prototype[Symbol.dispose]=yt.prototype.free);class xt{static __wrap(t){const r=Object.create(xt.prototype);return r.__wbg_ptr=t,Le.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Le.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_meshdatajs_free(t,0)}get color(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_color(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=kt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get expressId(){return e.meshdatajs_expressId(this.__wbg_ptr)>>>0}get geometryClass(){return e.meshdatajs_geometryClass(this.__wbg_ptr)}get geometryItemId(){const t=e.meshdatajs_geometryItemId(this.__wbg_ptr);return t===Number.MAX_SAFE_INTEGER?void 0:t}get hasTexture(){return 0!==e.meshdatajs_hasTexture(this.__wbg_ptr)}get ifcType(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_ifcType(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get indices(){return b(e.meshdatajs_indices(this.__wbg_ptr))}get localBounds(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_localBounds(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),r=i().getInt32(_+4,!0);let s;return 0!==t&&(s=kt(t,r).slice(),e.__wbindgen_export4(t,4*r,4)),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}get localToWorld(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_localToWorld(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),r=i().getInt32(_+4,!0);let s;return 0!==t&&(s=at(t,r).slice(),e.__wbindgen_export4(t,8*r,8)),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}get materialId(){const t=e.meshdatajs_materialId(this.__wbg_ptr);return t===Number.MAX_SAFE_INTEGER?void 0:t}get normals(){return b(e.meshdatajs_normals(this.__wbg_ptr))}get origin(){return b(e.meshdatajs_origin(this.__wbg_ptr))}get positions(){return b(e.meshdatajs_positions(this.__wbg_ptr))}get shadingColor(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_shadingColor(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),r=i().getInt32(_+4,!0);let s;return 0!==t&&(s=kt(t,r).slice(),e.__wbindgen_export4(t,4*r,4)),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}get textureHeight(){return e.meshdatajs_textureHeight(this.__wbg_ptr)>>>0}get textureId(){return e.meshdatajs_textureId(this.__wbg_ptr)>>>0}get textureRepeatS(){return 0!==e.meshdatajs_textureRepeatS(this.__wbg_ptr)}get textureRepeatT(){return 0!==e.meshdatajs_textureRepeatT(this.__wbg_ptr)}get textureRgba(){return b(e.meshdatajs_textureRgba(this.__wbg_ptr))}get textureUrl(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_textureUrl(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),r=i().getInt32(_+4,!0);let s;return 0!==t&&(s=T(t,r).slice(),e.__wbindgen_export4(t,1*r,1)),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}get textureWidth(){return e.meshdatajs_textureWidth(this.__wbg_ptr)>>>0}get triangleCount(){return e.meshdatajs_triangleCount(this.__wbg_ptr)>>>0}get uvs(){return b(e.meshdatajs_uvs(this.__wbg_ptr))}get vertexCount(){return e.meshdatajs_vertexCount(this.__wbg_ptr)>>>0}}Symbol.dispose&&(xt.prototype[Symbol.dispose]=xt.prototype.free);class vt{static __wrap(t){const r=Object.create(vt.prototype);return r.__wbg_ptr=t,We.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,We.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_meshoutlinejs_free(t,0)}get axisMax(){return e.meshoutlinejs_axisMax(this.__wbg_ptr)}get axisMin(){return e.meshoutlinejs_axisMin(this.__wbg_ptr)}contour(t){return b(e.meshoutlinejs_contour(this.__wbg_ptr,t))}get contourCount(){return e.meshoutlinejs_contourCount(this.__wbg_ptr)>>>0}}Symbol.dispose&&(vt.prototype[Symbol.dispose]=vt.prototype.free);class ft{static __wrap(t){const r=Object.create(ft.prototype);return r.__wbg_ptr=t,Ue.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ue.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_partitionedbatch_free(t,0)}get instancedOccurrences(){return e.partitionedbatch_instancedOccurrences(this.__wbg_ptr)>>>0}takeMeshes(){const t=e.partitionedbatch_takeMeshes(this.__wbg_ptr);return 0===t?void 0:yt.__wrap(t)}takeShard(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.partitionedbatch_takeShard(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=N(t,r).slice();return e.__wbindgen_export4(t,1*r,1),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(ft.prototype[Symbol.dispose]=ft.prototype.free);class Tt{static __wrap(t){const r=Object.create(Tt.prototype);return r.__wbg_ptr=t,Ve.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ve.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_profilecollection_free(t,0)}get(t){const r=e.profilecollection_get(this.__wbg_ptr,t);return 0===r?void 0:zt.__wrap(r)}get length(){return e.profilecollection_length(this.__wbg_ptr)>>>0}get skippedExpressIds(){return b(e.profilecollection_skippedExpressIds(this.__wbg_ptr))}}Symbol.dispose&&(Tt.prototype[Symbol.dispose]=Tt.prototype.free);class zt{static __wrap(t){const r=Object.create(zt.prototype);return r.__wbg_ptr=t,Ne.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ne.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_profileentryjs_free(t,0)}get expressId(){return e.profileentryjs_expressId(this.__wbg_ptr)>>>0}get extrusionDepth(){return e.profileentryjs_extrusionDepth(this.__wbg_ptr)}get extrusionDir(){return b(e.profileentryjs_extrusionDir(this.__wbg_ptr))}get holeCounts(){return b(e.profileentryjs_holeCounts(this.__wbg_ptr))}get holePoints(){return b(e.profileentryjs_holePoints(this.__wbg_ptr))}get ifcType(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.profileentryjs_ifcType(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get modelIndex(){return e.profileentryjs_modelIndex(this.__wbg_ptr)>>>0}get outerPoints(){return b(e.profileentryjs_outerPoints(this.__wbg_ptr))}get transform(){return b(e.profileentryjs_transform(this.__wbg_ptr))}}Symbol.dispose&&(zt.prototype[Symbol.dispose]=zt.prototype.free);class Et{static __wrap(t){const r=Object.create(Et.prototype);return r.__wbg_ptr=t,He.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,He.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_simplifiedmeshes_free(t,0)}get cavitiesDropped(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_cavitiesDropped(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get elementIds(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_elementIds(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get indexCounts(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_indexCounts(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get levels(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_levels(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=N(t,r).slice();return e.__wbindgen_export4(t,1*r,1),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get localIndices(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_localIndices(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get localPositions(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_localPositions(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=at(t,r).slice();return e.__wbindgen_export4(t,8*r,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get renderIndices(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_renderIndices(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get renderNormals(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_renderNormals(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=kt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get renderOrigins(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_renderOrigins(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=at(t,r).slice();return e.__wbindgen_export4(t,8*r,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get renderPositions(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_renderPositions(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=kt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get skippedIds(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_skippedIds(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get skippedReasons(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_skippedReasons(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=function xr(n,t){n>>>=0;const r=i(),_=[];for(let s=n;s<n+4*t;s+=4)_.push(b(r.getUint32(s,!0)));return _}(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get trisAfter(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_trisAfter(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get trisBefore(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_trisBefore(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get vertexCounts(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_vertexCounts(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(Et.prototype[Symbol.dispose]=Et.prototype.free);class It{static __wrap(t){const r=Object.create(It.prototype);return r.__wbg_ptr=t,pe.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,pe.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_spaceplatehandle_free(t,0)}addFace(t,r){try{const c=e.__wbindgen_add_to_stack_pointer(-16),d=rt(t,e.__wbindgen_export);e.spaceplatehandle_addFace(c,this.__wbg_ptr,d,a,r);var _=i().getInt32(c+0,!0),s=i().getInt32(c+4,!0);if(i().getInt32(c+8,!0))throw b(s);return b(_)}finally{e.__wbindgen_add_to_stack_pointer(16)}}boundingElements(t){try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_boundingElements(o,this.__wbg_ptr,t);var r=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);if(i().getInt32(o+8,!0))throw b(_);return b(r)}finally{e.__wbindgen_add_to_stack_pointer(16)}}dissolveVertex(t){try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_dissolveVertex(o,this.__wbg_ptr,t);var r=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);if(i().getInt32(o+8,!0))throw b(_);return b(r)}finally{e.__wbindgen_add_to_stack_pointer(16)}}dragVertex(t,r,_){try{const d=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_dragVertex(d,this.__wbg_ptr,t,r,_);var s=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0);if(i().getInt32(d+8,!0))throw b(o);return b(s)}finally{e.__wbindgen_add_to_stack_pointer(16)}}duplicate(){const t=e.spaceplatehandle_duplicate(this.__wbg_ptr);return It.__wrap(t)}faceArea(t){return e.spaceplatehandle_faceArea(this.__wbg_ptr,t)}faceOutline(t){try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_faceOutline(o,this.__wbg_ptr,t);var r=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0),s=at(r,_).slice();return e.__wbindgen_export4(r,8*_,8),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}findVertexNear(t,r,_){const s=e.spaceplatehandle_findVertexNear(this.__wbg_ptr,t,r,_);return s===Number.MAX_SAFE_INTEGER?void 0:s}static fromWallRects(t,r,_){try{const d=e.__wbindgen_add_to_stack_pointer(-16),p=rt(t,e.__wbindgen_export);e.spaceplatehandle_fromWallRects(d,p,a,r,_);var s=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0);if(i().getInt32(d+8,!0))throw b(o);return It.__wrap(s)}finally{e.__wbindgen_add_to_stack_pointer(16)}}gapBoundary(t,r){try{const c=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_gapBoundary(c,this.__wbg_ptr,t,r);var _=i().getInt32(c+0,!0),s=i().getInt32(c+4,!0),o=at(_,s).slice();return e.__wbindgen_export4(_,8*s,8),o}finally{e.__wbindgen_add_to_stack_pointer(16)}}mergeFaces(t){try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_mergeFaces(o,this.__wbg_ptr,t);var r=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);if(i().getInt32(o+8,!0))throw b(_);return b(r)}finally{e.__wbindgen_add_to_stack_pointer(16)}}neighborAcross(t){const r=e.spaceplatehandle_neighborAcross(this.__wbg_ptr,t);return r===Number.MAX_SAFE_INTEGER?void 0:r}netOutline(t,r){try{const c=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_netOutline(c,this.__wbg_ptr,t,r);var _=i().getInt32(c+0,!0),s=i().getInt32(c+4,!0),o=at(_,s).slice();return e.__wbindgen_export4(_,8*s,8),o}finally{e.__wbindgen_add_to_stack_pointer(16)}}constructor(t,r,_,s,o){try{const l=e.__wbindgen_add_to_stack_pointer(-16),u=rt(t,e.__wbindgen_export),y=a,f=g(r,e.__wbindgen_export),w=a,h=rt(_,e.__wbindgen_export);e.spaceplatehandle_new(l,u,y,f,w,h,a,s,o);var c=i().getInt32(l+0,!0),d=i().getInt32(l+4,!0);if(i().getInt32(l+8,!0))throw b(d);return this.__wbg_ptr=c,pe.register(this,this.__wbg_ptr,this),this}finally{e.__wbindgen_add_to_stack_pointer(16)}}prune(){return e.spaceplatehandle_prune(this.__wbg_ptr)>>>0}removeEdge(t){try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_removeEdge(o,this.__wbg_ptr,t);var r=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);if(i().getInt32(o+8,!0))throw b(_);return b(r)}finally{e.__wbindgen_add_to_stack_pointer(16)}}get roomCount(){return e.spaceplatehandle_roomCount(this.__wbg_ptr)>>>0}roomIds(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_roomIds(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}setFaceHeight(t,r,_,s){e.spaceplatehandle_setFaceHeight(this.__wbg_ptr,t,r,_,s)}snapshot(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_snapshot(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0);if(i().getInt32(s+8,!0))throw b(r);return b(t)}finally{e.__wbindgen_add_to_stack_pointer(16)}}splitEdge(t,r,_){try{const d=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_splitEdge(d,this.__wbg_ptr,t,r,_);var s=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0);if(i().getInt32(d+8,!0))throw b(o);return s>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}splitFace(t,r,_,s){try{const p=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_splitFace(p,this.__wbg_ptr,t,r,_,s);var o=i().getInt32(p+0,!0),c=i().getInt32(p+4,!0);if(i().getInt32(p+8,!0))throw b(c);return b(o)}finally{e.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(It.prototype[Symbol.dispose]=It.prototype.free);class Bt{static __wrap(t){const r=Object.create(Bt.prototype);return r.__wbg_ptr=t,Je.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Je.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symboliccircle_free(t,0)}get centerX(){return e.symboliccircle_centerX(this.__wbg_ptr)}get centerY(){return e.symboliccircle_centerY(this.__wbg_ptr)}get endAngle(){return e.symboliccircle_endAngle(this.__wbg_ptr)}get expressId(){return e.symboliccircle_expressId(this.__wbg_ptr)>>>0}get ifcType(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symboliccircle_ifcType(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get isFullCircle(){return 0!==e.symboliccircle_isFullCircle(this.__wbg_ptr)}get radius(){return e.symboliccircle_radius(this.__wbg_ptr)}get repIdentifier(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symboliccircle_repIdentifier(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get startAngle(){return e.symboliccircle_startAngle(this.__wbg_ptr)}get worldY(){return e.symboliccircle_worldY(this.__wbg_ptr)}}Symbol.dispose&&(Bt.prototype[Symbol.dispose]=Bt.prototype.free);class Ot{static __wrap(t){const r=Object.create(Ot.prototype);return r.__wbg_ptr=t,De.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,De.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symbolicfillarea_free(t,0)}get expressId(){return e.symbolicfillarea_expressId(this.__wbg_ptr)>>>0}get fillA(){return e.symbolicfillarea_fillA(this.__wbg_ptr)}get fillB(){return e.symbolicfillarea_fillB(this.__wbg_ptr)}get fillG(){return e.symbolicfillarea_fillG(this.__wbg_ptr)}get fillR(){return e.symbolicfillarea_fillR(this.__wbg_ptr)}get hasHatching(){return 0!==e.symbolicfillarea_hasHatching(this.__wbg_ptr)}get hatchAngle(){return e.symbolicfillarea_hatchAngle(this.__wbg_ptr)}get hatchAngleSecondary(){return e.symbolicfillarea_hatchAngleSecondary(this.__wbg_ptr)}get hatchLineWidth(){return e.symbolicfillarea_hatchLineWidth(this.__wbg_ptr)}get hatchSpacing(){return e.symbolicfillarea_hatchSpacing(this.__wbg_ptr)}get holeCount(){return e.symbolicfillarea_holeCount(this.__wbg_ptr)>>>0}get holesOffsets(){return b(e.symbolicfillarea_holesOffsets(this.__wbg_ptr))}get ifcType(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicfillarea_ifcType(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get pointCount(){return e.symbolicfillarea_pointCount(this.__wbg_ptr)>>>0}get points(){return b(e.symbolicfillarea_points(this.__wbg_ptr))}get repIdentifier(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicfillarea_repIdentifier(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get worldY(){return e.symbolicfillarea_worldY(this.__wbg_ptr)}}Symbol.dispose&&(Ot.prototype[Symbol.dispose]=Ot.prototype.free);class Pt{static __wrap(t){const r=Object.create(Pt.prototype);return r.__wbg_ptr=t,Ye.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ye.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symbolicpolyline_free(t,0)}get expressId(){return e.symbolicpolyline_expressId(this.__wbg_ptr)>>>0}get ifcType(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicpolyline_ifcType(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get isClosed(){return 0!==e.symbolicpolyline_isClosed(this.__wbg_ptr)}get pointCount(){return e.symbolicpolyline_pointCount(this.__wbg_ptr)>>>0}get points(){return b(e.symbolicpolyline_points(this.__wbg_ptr))}get repIdentifier(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicpolyline_repIdentifier(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get worldY(){return e.symbolicpolyline_worldY(this.__wbg_ptr)}}Symbol.dispose&&(Pt.prototype[Symbol.dispose]=Pt.prototype.free);class Gt{static __wrap(t){const r=Object.create(Gt.prototype);return r.__wbg_ptr=t,Xe.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Xe.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symbolicrepresentationcollection_free(t,0)}get circleCount(){return e.symbolicrepresentationcollection_circleCount(this.__wbg_ptr)>>>0}get fillCount(){return e.symbolicrepresentationcollection_fillCount(this.__wbg_ptr)>>>0}getCircle(t){const r=e.symbolicrepresentationcollection_getCircle(this.__wbg_ptr,t);return 0===r?void 0:Bt.__wrap(r)}getExpressIds(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicrepresentationcollection_getExpressIds(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}getFill(t){const r=e.symbolicrepresentationcollection_getFill(this.__wbg_ptr,t);return 0===r?void 0:Ot.__wrap(r)}getPolyline(t){const r=e.symbolicrepresentationcollection_getPolyline(this.__wbg_ptr,t);return 0===r?void 0:Pt.__wrap(r)}getText(t){const r=e.symbolicrepresentationcollection_getText(this.__wbg_ptr,t);return 0===r?void 0:Lt.__wrap(r)}get isEmpty(){return 0!==e.symbolicrepresentationcollection_isEmpty(this.__wbg_ptr)}get polylineCount(){return e.symbolicrepresentationcollection_polylineCount(this.__wbg_ptr)>>>0}get textCount(){return e.symbolicrepresentationcollection_textCount(this.__wbg_ptr)>>>0}get totalCount(){return e.symbolicrepresentationcollection_totalCount(this.__wbg_ptr)>>>0}get truncatedAt(){const t=e.symbolicrepresentationcollection_truncatedAt(this.__wbg_ptr);return t===Number.MAX_SAFE_INTEGER?void 0:t}get truncatedLimit(){const t=e.symbolicrepresentationcollection_truncatedLimit(this.__wbg_ptr);return t===Number.MAX_SAFE_INTEGER?void 0:t}get truncatedReason(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicrepresentationcollection_truncatedReason(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),r=i().getInt32(_+4,!0);let s;return 0!==t&&(s=T(t,r).slice(),e.__wbindgen_export4(t,1*r,1)),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(Gt.prototype[Symbol.dispose]=Gt.prototype.free);class Lt{static __wrap(t){const r=Object.create(Lt.prototype);return r.__wbg_ptr=t,Ke.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ke.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symbolictext_free(t,0)}get alignment(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolictext_alignment(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get colorA(){return e.symbolictext_colorA(this.__wbg_ptr)}get colorB(){return e.symbolictext_colorB(this.__wbg_ptr)}get colorG(){return e.symbolictext_colorG(this.__wbg_ptr)}get colorR(){return e.symbolictext_colorR(this.__wbg_ptr)}get content(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolictext_content(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get dirX(){return e.symbolictext_dirX(this.__wbg_ptr)}get dirY(){return e.symbolictext_dirY(this.__wbg_ptr)}get expressId(){return e.symbolictext_expressId(this.__wbg_ptr)>>>0}get height(){return e.symbolictext_height(this.__wbg_ptr)}get ifcType(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolictext_ifcType(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get repIdentifier(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolictext_repIdentifier(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get targetPx(){return e.symbolictext_targetPx(this.__wbg_ptr)}get worldY(){return e.symbolictext_worldY(this.__wbg_ptr)}get x(){return e.symbolictext_x(this.__wbg_ptr)}get y(){return e.symbolictext_y(this.__wbg_ptr)}}Symbol.dispose&&(Lt.prototype[Symbol.dispose]=Lt.prototype.free);class Wt{static __wrap(t){const r=Object.create(Wt.prototype);return r.__wbg_ptr=t,Ze.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ze.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_zonepiecejs_free(t,0)}get indices(){return b(e.zonepiecejs_indices(this.__wbg_ptr))}get positions(){return b(e.zonepiecejs_positions(this.__wbg_ptr))}get volume(){return e.zonepiecejs_volume(this.__wbg_ptr)}get zoneIndex(){return e.zonepiecejs_zoneIndex(this.__wbg_ptr)}}Symbol.dispose&&(Wt.prototype[Symbol.dispose]=Wt.prototype.free);class Ut{static __wrap(t){const r=Object.create(Ut.prototype);return r.__wbg_ptr=t,$e.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,$e.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_zonesplitjs_free(t,0)}piece(t){const r=e.zonesplitjs_piece(this.__wbg_ptr,t);return 0===r?void 0:Wt.__wrap(r)}get pieceCount(){return e.zonesplitjs_pieceCount(this.__wbg_ptr)>>>0}get remainderFailed(){return 0!==e.zonesplitjs_remainderFailed(this.__wbg_ptr)}get sumErrorRel(){return e.zonesplitjs_sumErrorRel(this.__wbg_ptr)}get wholeVolume(){return e.zonesplitjs_wholeVolume(this.__wbg_ptr)}}function Re(){return{__proto__:null,"./ifc-lite_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(t,r){return R(Error(T(t,r)))},__wbg_String_8564e559799eccda:function(t,r){const s=z(String(W(r)),e.__wbindgen_export,e.__wbindgen_export2),o=a;i().setInt32(t+4,o,!0),i().setInt32(t+0,s,!0)},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(t){return void 0===W(t)},__wbg___wbindgen_memory_de265df8aadd6273:function(){return R(e.memory)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(t,r){const _=W(r),s="string"==typeof _?_:void 0;var o=x(s)?0:z(s,e.__wbindgen_export,e.__wbindgen_export2),c=a;i().setInt32(t+4,c,!0),i().setInt32(t+0,o,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(t,r){throw new Error(T(t,r))},__wbg_call_a6e5c5dce5018821:function(){return rr(function(t,r,_){return R(W(t).call(W(r),W(_)))},arguments)},__wbg_error_a6fa202b58aa1cd3:function(t,r){let _,s;try{_=t,s=r,console.error(T(t,r))}finally{e.__wbindgen_export4(_,s,1)}},__wbg_info_eadbe775a8e2e9eb:function(t){console.info(W(t))},__wbg_new_227d7c05414eb861:function(){return R(new Error)},__wbg_new_32b398fb48b6d94a:function(){return R(new Array)},__wbg_new_b667d279fd5aa943:function(t,r){return R(new Error(T(t,r)))},__wbg_new_da52cf8fe3429cb2:function(){return R(new Object)},__wbg_new_from_slice_36bac521fad54bb4:function(t,r){const _=new BigUint64Array(function vr(n,t){return n>>>=0,function Ir(){return(null===Vt||0===Vt.byteLength)&&(Vt=new BigUint64Array(e.memory.buffer)),Vt}().subarray(n/8,n/8+t)}(t,r));return R(_)},__wbg_new_from_slice_7568ba55b4a7e81f:function(t,r){return R(new Uint32Array(tt(t,r)))},__wbg_new_from_slice_77cdfb7977362f3c:function(t,r){return R(new Uint8Array(N(t,r)))},__wbg_new_from_slice_7e254b47c77fb8cc:function(t,r){return R(new Float64Array(at(t,r)))},__wbg_new_from_slice_ddf8b82c4d6af38e:function(t,r){return R(new Float32Array(kt(t,r)))},__wbg_new_with_length_112583d83d0cb73c:function(t){return R(new Float64Array(t>>>0))},__wbg_new_with_length_e1d8c8061ed4e317:function(t){return R(new Float32Array(t>>>0))},__wbg_new_with_length_f048f86e32f1515e:function(t){return R(new Uint32Array(t>>>0))},__wbg_now_86c0d4ba3fa605b8:function(){return Date.now()},__wbg_set_6be42768c690e380:function(t,r,_){W(t)[b(r)]=b(_)},__wbg_set_8535240470bf2500:function(){return rr(function(t,r,_){return Reflect.set(W(t),W(r),W(_))},arguments)},__wbg_set_8a16b38e4805b298:function(t,r,_){W(t)[r>>>0]=b(_)},__wbg_set_index_1edd196294cd6dbf:function(t,r,_){W(t)[r>>>0]=_>>>0},__wbg_set_index_2eba9e8997f36eb4:function(t,r,_){W(t)[r>>>0]=_},__wbg_set_index_f15f4feb1d940b8c:function(t,r,_){W(t)[r>>>0]=_},__wbg_set_name_3bbc583faefa4193:function(t,r,_){W(t).name=T(r,_)},__wbg_stack_3b0d974bbf31e44f:function(t,r){const s=z(W(r).stack,e.__wbindgen_export,e.__wbindgen_export2),o=a;i().setInt32(t+4,o,!0),i().setInt32(t+0,s,!0)},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){const t=typeof global>"u"?null:global;return x(t)?0:R(t)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){const t=typeof globalThis>"u"?null:globalThis;return x(t)?0:R(t)},__wbg_static_accessor_SELF_146583524fe1469b:function(){const t=typeof self>"u"?null:self;return x(t)?0:R(t)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){const t=typeof window>"u"?null:window;return x(t)?0:R(t)},__wbg_warn_b1370d804fa3e259:function(t){console.warn(W(t))},__wbindgen_cast_0000000000000001:function(t){return R(t)},__wbindgen_cast_0000000000000002:function(t,r){return R(T(t,r))},__wbindgen_cast_0000000000000003:function(t){return R(BigInt.asUintN(64,t))},__wbindgen_object_clone_ref:function(t){return R(W(t))},__wbindgen_object_drop_ref:function(t){b(t)}}}}Symbol.dispose&&(Ut.prototype[Symbol.dispose]=Ut.prototype.free);const Te=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_clashintersectionsolidjs_free(n,1)),ze=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_clashrunresult_free(n,1)),Ee=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_clashsession_free(n,1)),ce=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_contours2d_free(n,1)),Be=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gridaxiscollection_free(n,1)),Oe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gridaxisjs_free(n,1)),Pe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_ifcapi_free(n,1)),Ge=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_meshcollection_free(n,1)),Le=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_meshdatajs_free(n,1)),We=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_meshoutlinejs_free(n,1)),Ue=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_partitionedbatch_free(n,1)),Ve=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_profilecollection_free(n,1)),Ne=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_profileentryjs_free(n,1)),He=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_simplifiedmeshes_free(n,1)),pe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_spaceplatehandle_free(n,1)),Je=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symboliccircle_free(n,1)),De=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symbolicfillarea_free(n,1)),Ye=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symbolicpolyline_free(n,1)),Xe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symbolicrepresentationcollection_free(n,1)),Ke=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symbolictext_free(n,1)),Ze=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_zonepiecejs_free(n,1)),$e=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_zonesplitjs_free(n,1));function R(n){Yt===it.length&&it.push(it.length+1);const t=Yt;return Yt=it[t],it[t]=n,t}function Qe(n){if(1==Xt)throw new Error("out of js stack");return it[--Xt]=n,Xt}function kt(n,t){return n>>>=0,qe().subarray(n/4,n/4+t)}function at(n,t){return n>>>=0,tr().subarray(n/8,n/8+t)}function tt(n,t){return n>>>=0,er().subarray(n/4,n/4+t)}function N(n,t){return n>>>=0,St().subarray(n/1,n/1+t)}let Vt=null,ht=null;function i(){return(null===ht||!0===ht.buffer.detached||void 0===ht.buffer.detached&&ht.buffer!==e.memory.buffer)&&(ht=new DataView(e.memory.buffer)),ht}let Nt=null;function qe(){return(null===Nt||0===Nt.byteLength)&&(Nt=new Float32Array(e.memory.buffer)),Nt}let Ht=null;function tr(){return(null===Ht||0===Ht.byteLength)&&(Ht=new Float64Array(e.memory.buffer)),Ht}function T(n,t){return function Sr(n,t){return de+=t,de>=kr&&(ne=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),ne.decode(),de=t),ne.decode(St().subarray(n,n+t))}(n>>>0,t)}let Jt=null;function er(){return(null===Jt||0===Jt.byteLength)&&(Jt=new Uint32Array(e.memory.buffer)),Jt}let Dt=null;function St(){return(null===Dt||0===Dt.byteLength)&&(Dt=new Uint8Array(e.memory.buffer)),Dt}function W(n){return it[n]}function rr(n,t){try{return n.apply(this,t)}catch(r){e.__wbindgen_export3(R(r))}}let it=new Array(1024).fill(void 0);it.push(void 0,null,!0,!1);let Yt=it.length;function x(n){return null==n}function g(n,t){const r=t(4*n.length,4)>>>0;return er().set(n,r/4),a=n.length,r}function S(n,t){const r=t(1*n.length,1)>>>0;return St().set(n,r/1),a=n.length,r}function et(n,t){const r=t(4*n.length,4)>>>0;return qe().set(n,r/4),a=n.length,r}function rt(n,t){const r=t(8*n.length,8)>>>0;return tr().set(n,r/8),a=n.length,r}function nr(n,t){const r=t(4*n.length,4)>>>0,_=i();for(let s=0;s<n.length;s++)_.setUint32(r+4*s,R(n[s]),!0);return a=n.length,r}function z(n,t,r){if(void 0===r){const d=Kt.encode(n),p=t(d.length,1)>>>0;return St().subarray(p,p+d.length).set(d),a=d.length,p}let _=n.length,s=t(_,1)>>>0;const o=St();let c=0;for(;c<_;c++){const d=n.charCodeAt(c);if(d>127)break;o[s+c]=d}if(c!==_){0!==c&&(n=n.slice(c)),s=r(s,_,_=c+3*n.length,1)>>>0;const d=St().subarray(s+c,s+_);c+=Kt.encodeInto(n,d).written,s=r(s,_,c,1)>>>0}return a=c,s}let Xt=1024;function b(n){const t=W(n);return function mr(n){n<1028||(it[n]=Yt,Yt=n)}(n),t}let ne=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});ne.decode();const kr=2146435072;let de=0;const Kt=new TextEncoder;"encodeInto"in Kt||(Kt.encodeInto=function(n,t){const r=Kt.encode(n);return t.set(r),{read:n.length,written:r.length}});let Fr,Ar,e,a=0;function _r(n,t){return Ar=n,e=n.exports,Fr=t,Vt=null,ht=null,Nt=null,Ht=null,Jt=null,Dt=null,e.__wbindgen_start(),e}function le(){return(le=(0,ot.A)(function*(n,t){if("function"==typeof Response&&n instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return yield WebAssembly.instantiateStreaming(n,t)}catch(s){if(!n.ok||!function r(_){switch(_){case"basic":case"cors":case"default":return!0}return!1}(n.type)||"application/wasm"===n.headers.get("Content-Type"))throw s;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",s)}const _=yield n.arrayBuffer();return yield WebAssembly.instantiate(_,t)}{const _=yield WebAssembly.instantiate(n,t);return _ instanceof WebAssembly.Instance?{instance:_,module:n}:_}})).apply(this,arguments)}function ge(){return ge=(0,ot.A)(function*(n){if(void 0!==e)return e;void 0!==n&&(Object.getPrototypeOf(n)===Object.prototype?({module_or_path:n}=n):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===n&&(n=new URL("ifc-lite_bg.wasm","file:///Users/mads/Dev/ui-components/node_modules/@ifc-lite/wasm/pkg/ifc-lite.js"));const t=Re();("string"==typeof n||"function"==typeof Request&&n instanceof Request||"function"==typeof URL&&n instanceof URL)&&(n=fetch(n));const{instance:r,module:_}=yield function Cr(n,t){return le.apply(this,arguments)}(yield n,t);return _r(r,_)}),ge.apply(this,arguments)}var Rr=E(16694);const zr=/unreachable|out of memory|memory access|RuntimeError|allocat|enlarge memory|grow memory|could not allocate/i;function sr(n,t){const r=t/1e9,_=n instanceof Error?n.message:String(n);return r>=2.5&&zr.test(_)?new Error(`This model is ${r.toFixed(1)} GB, which exceeds the browser's ~3 GB WebAssembly memory ceiling (32-bit address space). Open it in the ifc-lite desktop app, which has no such limit. (underlying wasm trap: ${_})`,{cause:n}):null}let or=!1;function ir(n){try{n?.free()}catch(t){if(or)return;or=!0,console.warn("[Worker] Freeing the failed engine instance threw, so its file-sized source copy stays in the wasm heap until GC (logged once per worker):",t)}}function ar(n,t){const r=new Map;for(const _ of[...n,...t])r.set(_.reason,(r.get(_.reason)??0)+_.count);return[...r.entries()].map(([_,s])=>({reason:_,count:s})).sort((_,s)=>s.count-_.count||_.reason.localeCompare(s.reason))}function Pr(n,t){if(!n)return;const r=6*t;for(let _=0;_<6;_++)if(!Number.isFinite(n[r+_]))return;return{min:[n[r],n[r+1],n[r+2]],max:[n[r+3],n[r+4],n[r+5]]}}function Gr(n,t,r){const _=6*t;n.set(r.min,_),n.set(r.max,_+3)}function Lr(n,t){if(!n)return;const r=n[t];return Number.isFinite(r)&&r>0?r:void 0}const Zt={targetMs:8e3,minJobs:64,maxJobs:512};function Vr(n,t,r,_=Zt){if(t<=0)return n;const s=r/t;if(!(s>0))return _.maxJobs;const o=Math.floor(_.targetMs/s);return Math.max(_.minJobs,Math.min(_.maxJobs,o))}const _e="__ifclite_wasm_panic";function pr(n){const r=n[_e];return delete n[_e],function cr(n){if("object"!=typeof n||null===n)return;const{location:t,at:r}=n;return"string"!=typeof t||""===t||"number"!=typeof r||!Number.isFinite(r)||r>Date.now()?void 0:{location:t,at:r}}(r)}let dr,L=null;function lt(){return be.apply(this,arguments)}function be(){return be=(0,ot.A)(function*(){return L||(yield(0,Rr.b)(()=>function jr(n){return ge.apply(this,arguments)}(dr),{label:"geometry.worker"}),L=new re,$t=!1,we(),Qt=!1,ye(),qt=!1,he(),te=!1,me(),At=!1,xe(),mt=!1,oe(),gt=!1,ve(),L)}),be.apply(this,arguments)}let lr=!1,$t=!1,fe=!0;function we(){L&&!$t&&("function"==typeof L.setMergeLayers&&L.setMergeLayers(lr),$t=!0)}let gr=null,Qt=!1;function ye(){L&&!Qt&&("function"==typeof L.setComputeGeometryHashes&&L.setComputeGeometryHashes(gr),Qt=!0)}let ur=null,qt=!1;function he(){L&&!qt&&("function"==typeof L.setTessellationQuality&&L.setTessellationQuality(ur),qt=!0)}let br=!1,te=!1;function me(){L&&!te&&("function"==typeof L.setSkipSmallCuts&&L.setSkipSmallCuts(br),te=!0)}let Ft=null,At=!1;function xe(){!L||At||!Ft||(L.setEntityIndex(Ft.ids,Ft.starts,Ft.lengths),At=!0)}let se=null,mt=!1;function oe(){const n=L;if(!n||mt||!se)return;const t=se;"function"==typeof n.setReferencedRepmaps&&n.setReferencedRepmaps(t.referencedRepmaps),"function"==typeof n.setInstantiatedTypeIds&&n.setInstantiatedTypeIds(t.instantiatedTypeIds),"function"==typeof n.setMappedInstancePlan&&t.mappedInstancePlan&&n.setMappedInstancePlan(t.mappedInstancePlan),"function"==typeof n.setMaterialLayerIndex&&n.setMaterialLayerIndex(t.mliElementIds,t.mliAxis,t.mliLayerCounts,t.mliDirectionSense,t.mliOffset,t.mliLayerMaterialIds,t.mliLayerThicknesses),mt=!0}let Ct=null,gt=!1;function ve(){!L||gt||!Ct||"function"==typeof L.setSourceBytes&&(L.setSourceBytes(Ct),gt=!0)}function Mt(n){return new Uint8Array(n)}function jt(n){const t=new Uint8Array(n.byteLength);return t.set(new Uint8Array(n)),t}let fr=!1;function Ie(n,t){fr||(fr=!0,console.warn(`[Worker] ${n} rejected the SAB view (${t instanceof Error?t.message:String(t)}); retrying with a materialised copy \u2014 each retry allocates a full copy of the file (further occurrences suppressed)`))}let nt=null,Rt=Zt,ie=Rt.maxJobs;function wr(n){const t=n.pendingInstancedShards;n.pendingInstancedShards=[];const r=n.pendingInstancedOccurrences;n.pendingInstancedOccurrences=0;const _=n.pendingInstancedGeometry;if(n.pendingInstancedGeometry=new Map,0===n.pendingMeshes.length&&0===t.length&&0===_.size)return;const s=n.pendingMeshes,o=n.pendingTransfers;let c,d,p,l;if(n.pendingMeshes=[],n.pendingTransfers=[],_.size>0){c=new Uint32Array(_.size),d=new BigUint64Array(_.size);let u=0;for(const[y,f]of _)c[u]=y,d[u]=f.hash,f.aabb&&(p||(p=new Float64Array(6*_.size).fill(NaN)),Gr(p,u,f.aabb)),void 0!==f.volume&&(l||(l=new Float64Array(_.size).fill(NaN)),l[u]=f.volume),u+=1;o.push(c.buffer,d.buffer),p&&o.push(p.buffer),l&&o.push(l.buffer)}n.totalMeshesEmitted+=s.length+r,self.postMessage({type:"batch",meshes:s,...t.length>0?{instancedShards:t}:{},...r>0?{instancedOccurrences:r}:{},...c?{instancedGeometryHashIds:c}:{},...d?{instancedGeometryHashValues:d}:{},...p?{instancedGeometryAabbValues:p}:{},...l?{instancedGeometryVolumeValues:l}:{}},[...o,...t])}function ke(n,t){try{const r=function Wr(n){const t=new Map;if(0===(n.geometryHashCount??0))return t;const r=n.geometryHashIds,_=n.geometryHashValues;if(!r||!_)return t;const s=n.geometryAabbValues,o=n.geometryVolumeValues,c=Math.min(r.length,_.length);for(let d=0;d<c;d++){const p={hash:_[d]},l=Pr(s,d);l&&(p.aabb=l);const u=Lr(o,d);void 0!==u&&(p.volume=u),t.set(r[d],p)}return t}(t),_=new Set;for(let s=0;s<t.length;s++){const o=t.takeMesh(s);if(o)try{const c=new Float32Array(o.positions),d=new Float32Array(o.normals),p=new Uint32Array(o.indices),l=o.color,u=o.shadingColor,y=u&&4===u.length?[u[0],u[1],u[2],u[3]]:void 0,f=r.get(o.expressId),w=o.origin,h=w&&3===w.length&&(w[0]||w[1]||w[2])?[w[0],w[1],w[2]]:void 0,m=o.localBounds,I=m&&6===m.length?{min:[m[0],m[1],m[2]],max:[m[3],m[4],m[5]]}:void 0,A=o.localToWorld,M=A&&16===A.length?Array.from(A):void 0,F={expressId:o.expressId,ifcType:o.ifcType,positions:c,normals:d,indices:p,color:[l[0],l[1],l[2],l[3]],...y?{shadingColor:y}:{},...h?{origin:h}:{},...I?{localBounds:I}:{},...M?{localToWorld:M}:{},geometryClass:o.geometryClass??0,...void 0!==o.geometryItemId?{geometryItemId:o.geometryItemId}:{},...void 0!==o.materialId?{materialId:o.materialId}:{}};if(n.pendingTransfers.push(c.buffer,d.buffer,p.buffer),n.cumulativeMeshBytes+=c.byteLength+d.byteLength+p.byteLength,o.hasTexture){const C=new Float32Array(o.uvs),j=new Uint8Array(o.textureRgba);F.uvs=C,F.texture={rgba:j,width:o.textureWidth,height:o.textureHeight,repeatS:o.textureRepeatS,repeatT:o.textureRepeatT},n.pendingTransfers.push(C.buffer,j.buffer),n.cumulativeMeshBytes+=C.byteLength+j.byteLength}else if(o.textureUrl){const C=new Float32Array(o.uvs);F.uvs=C,F.textureRef={textureId:o.textureId,url:o.textureUrl,repeatS:o.textureRepeatS,repeatT:o.textureRepeatT},n.pendingTransfers.push(C.buffer),n.cumulativeMeshBytes+=C.byteLength}f&&(F.geometryHash=f.hash,f.aabb&&(F.geometryAabb=f.aabb),void 0!==f.volume&&(F.geometryVolume=f.volume)),_.add(o.expressId),n.pendingMeshes.push(F)}finally{o.free()}}for(const[s,o]of r)_.has(s)||n.pendingInstancedGeometry.set(s,o);n.diagnostics=function Br(n,t){if(!n)return t??null;if(!t)return n;const r=Math.max(n.schemaVersion??0,t.schemaVersion??0),_=ar(n.failuresByReason,t.failuresByReason),s=new Map;for(const p of[...n.worstHosts,...t.worstHosts]){const l=s.get(p.productId);l?(l.csgFailures+=p.csgFailures,l.openings+=p.openings,l.firstFailureLabel=l.firstFailureLabel??p.firstFailureLabel,l.bbox=l.bbox??p.bbox,l.triangleCount=l.triangleCount??p.triangleCount):s.set(p.productId,{...p})}const o=[...s.values()].sort((p,l)=>l.csgFailures-p.csgFailures||p.productId-l.productId).slice(0,16),d=void 0!==n.totalUnsupportedItems||void 0!==t.totalUnsupportedItems||void 0!==n.unsupportedItemsByType||void 0!==t.unsupportedItemsByType?{totalUnsupportedItems:(n.totalUnsupportedItems??0)+(t.totalUnsupportedItems??0),unsupportedItemsByType:ar(n.unsupportedItemsByType??[],t.unsupportedItemsByType??[])}:{};return{schemaVersion:r,totalCsgFailures:n.totalCsgFailures+t.totalCsgFailures,productsWithFailures:n.productsWithFailures+t.productsWithFailures,hostsWithOpenings:n.hostsWithOpenings+t.hostsWithOpenings,classification:{rectangular:n.classification.rectangular+t.classification.rectangular,diagonal:n.classification.diagonal+t.classification.diagonal,nonRectangular:n.classification.nonRectangular+t.classification.nonRectangular,total:n.classification.total+t.classification.total},failuresByReason:_,silentNoOps:n.silentNoOps+t.silentNoOps,rectFast:{fired:n.rectFast.fired+t.rectFast.fired,openingsCut:n.rectFast.openingsCut+t.rectFast.openingsCut,deferHostNotBox:n.rectFast.deferHostNotBox+t.rectFast.deferHostNotBox,deferNotThrough:n.rectFast.deferNotThrough+t.rectFast.deferNotThrough,deferOffFace:n.rectFast.deferOffFace+t.rectFast.deferOffFace,deferNearEdge:n.rectFast.deferNearEdge+t.rectFast.deferNearEdge,deferNoOpenings:n.rectFast.deferNoOpenings+t.rectFast.deferNoOpenings,deferTooManyOpenings:(n.rectFast.deferTooManyOpenings??0)+(t.rectFast.deferTooManyOpenings??0)},oversizedRefDrops:(n.oversizedRefDrops??0)+(t.oversizedRefDrops??0),worstHosts:o,...d}}(n.diagnostics,t.diagnostics)}finally{t.free()}}function yr(n,t){try{const r=t.takeMeshes();r&&ke(n,r);const _=t.takeShard();if(_&&_.byteLength>0){const s=0===_.byteOffset&&_.byteLength===_.buffer.byteLength?_.buffer:_.slice().buffer;n.pendingInstancedShards.push(s)}n.pendingInstancedOccurrences+=t.instancedOccurrences??0}finally{t.free?.()}}function ae(n,t){return Se.apply(this,arguments)}function Se(){return(Se=(0,ot.A)(function*(n,t){const r=Math.floor(t.length/3);if(0!==r)try{const _=yield lt();Ct=n.localBytes,ve();const o=gt?_.processGeometryBatchPartitionedFromSource:void 0,c=gt?_.processGeometryBatchFromSource:void 0,d=_.processGeometryBatchPartitioned;"function"==typeof o&&fe?yr(n,o.call(_,t,n.unitScale,n.rtcX,n.rtcY,n.rtcZ,n.needsShift,n.voidKeys,n.voidCounts,n.voidValues,n.styleIds,n.styleColors,n.planeAngleToRadians,n.materialElementIds,n.materialColorCounts,n.materialColors)):"function"==typeof c?ke(n,c.call(_,t,n.unitScale,n.rtcX,n.rtcY,n.rtcZ,n.needsShift,n.voidKeys,n.voidCounts,n.voidValues,n.styleIds,n.styleColors,n.planeAngleToRadians,n.materialElementIds,n.materialColorCounts,n.materialColors)):"function"==typeof d&&fe?yr(n,d.call(_,n.localBytes,t,n.unitScale,n.rtcX,n.rtcY,n.rtcZ,n.needsShift,n.voidKeys,n.voidCounts,n.voidValues,n.styleIds,n.styleColors,n.planeAngleToRadians,n.materialElementIds,n.materialColorCounts,n.materialColors)):ke(n,_.processGeometryBatch(n.localBytes,t,n.unitScale,n.rtcX,n.rtcY,n.rtcZ,n.needsShift,n.voidKeys,n.voidCounts,n.voidValues,n.styleIds,n.styleColors,n.planeAngleToRadians,n.materialElementIds,n.materialColorCounts,n.materialColors))}catch(_){const s=_.message;if(function Jr(){self.postMessage({type:"progress",processedJobs:0,totalJobs:0})}(),!n.sabFallbackTaken&&n.localBytes.buffer instanceof SharedArrayBuffer)return n.sabFallbackTaken=!0,console.warn(`[Worker] processGeometryBatch rejected SAB view (${s}), falling back to copy`),n.localBytes=jt(n.sharedBuffer),Ct=n.localBytes,gt=!1,void(yield ae(n,t));if(1===r)return console.warn(`[Worker] Skipping entity #${t[0]}: ${s}`),ir(L),void(L=null);console.warn(`[Worker] Batch of ${r} entities failed (${s}), splitting\u2026`),ir(L),L=null;const o=3*Math.floor(r/2);yield ae(n,t.slice(0,o)),yield ae(n,t.slice(o))}})).apply(this,arguments)}function Fe(){return(Fe=(0,ot.A)(function*(n,t){const r=Math.floor(t.length/3);let _=0;for(;_<r;){const s=Math.max(Rt.minJobs,Math.min(Rt.maxJobs,ie));self.postMessage({type:"progress",processedJobs:_,totalJobs:r});const o=3*_,c=Math.min(o+3*s,t.length),d=(c-o)/3,p=performance.now();yield ae(n,t.subarray(o,c)),wr(n),ie=Vr(ie,d,performance.now()-p,Rt),_+=d}})).apply(this,arguments)}let hr=Promise.resolve();function Ae(){return Ae=(0,ot.A)(function*(n){try{if("resolve-styles-shard"===n.data.type){const t=yield lt(),{sharedBuffer:r,sliceIndex:_,spans:s}=n.data;try{const o=t;let c;try{c=o.resolveStyledItemsShard(Mt(r),s)}catch(d){Ie("resolve-styles-shard",d),c=o.resolveStyledItemsShard(jt(r),s)}self.postMessage({type:"styles-shard-result",sliceIndex:_,orphanIds:c.orphanIds,orphanColors:c.orphanColors,geomIds:c.geomIds,geomColors:c.geomColors},[c.orphanIds.buffer,c.orphanColors.buffer,c.geomIds.buffer,c.geomColors.buffer])}catch(o){self.postMessage({type:"styles-shard-result",sliceIndex:_,orphanIds:new Uint32Array(0),orphanColors:new Float32Array(0),geomIds:new Uint32Array(0),geomColors:new Float32Array(0),error:o instanceof Error?o.message:String(o)})}return}if("prepass-streaming-sharded"===n.data.type){const t=yield lt();self.postMessage({type:"prepass-progress",phase:"parsing"});const{sharedBuffer:r,indexIds:_,indexStarts:s,indexLengths:o,indexClasses:c}=n.data,d=n.data.chunkSize??5e4,p=n.data.disabledTypes??void 0,l=!0===n.data.skipTypeGeometry,u=f=>{self.postMessage({type:"prepass-stream",event:f})},y=(f,w,h,m,I)=>t.buildPrePassStreamingSharded(f,u,d,p,l,w,h,m,I);try{y(Mt(r),_,s,o,c)}catch(f){const w=f instanceof Error?f.message:String(f);console.warn(`[Worker] Sharded streaming prepass with SAB view failed (${w}), retrying with copy`);try{y(jt(r),_.slice(),s.slice(),o.slice(),c.slice())}catch(h){throw sr(h,r.byteLength)??h}}return}if("finalize-styles"===n.data.type){const t=yield lt(),r=n.data,_=t,s=c=>_.finalizePrepassStyles(c,r.orphanIds,r.orphanColors,r.geomIds,r.geomColors,r.colourMapSpans,r.materialDefSpans,r.relMaterialSpans,r.voidSpans,r.fillsSpans,r.aggregateSpans,r.planeAngleToRadians);let o;try{o=s(Mt(r.sharedBuffer))}catch(c){Ie("finalize-prepass-styles",c),o=s(jt(r.sharedBuffer))}return void self.postMessage({type:"styles-final",payload:o})}if("prepass-streaming"===n.data.type){const t=yield lt();self.postMessage({type:"prepass-progress",phase:"parsing"});const r=n.data.sharedBuffer,_=n.data.chunkSize??5e4,s=n.data.disabledTypes??void 0,o=!0===n.data.skipTypeGeometry,c=p=>{self.postMessage({type:"prepass-stream",event:p})},d=p=>t.buildPrePassStreaming(p,c,_,s,o);try{d(Mt(r))}catch(p){const l=p instanceof Error?p.message:String(p);console.warn(`[Worker] Streaming prepass with SAB view failed (${l}), retrying with copy`);try{d(jt(r))}catch(u){throw sr(u,r.byteLength)??u}}return}if("scan-shard"===n.data.type){const t=yield lt(),{sharedBuffer:r,shardIndex:_,rangeStart:s,rangeEnd:o}=n.data,c=Mt(r),d=t;let p;try{p=d.scanEntityIndexShard(c,s,o)}catch(l){Ie("scan-entity-index-shard",l),p=d.scanEntityIndexShard(jt(r),s,o)}return void self.postMessage({type:"shard-result",shardIndex:_,ids:p.ids,starts:p.starts,lengths:p.lengths,classes:p.classes,handoff:p.handoff,oversizedIdStarts:p.oversizedIdStarts,malformedStart:p.malformedStart},[p.ids.buffer,p.starts.buffer,p.lengths.buffer,p.classes.buffer,...p.oversizedIdStarts?[p.oversizedIdStarts.buffer]:[]])}if("init"===n.data.type)return n.data.wasmUrl&&(dr=n.data.wasmUrl),n.data.wasmModule?(function Mr(n){if(void 0!==e)return e;void 0!==n&&(Object.getPrototypeOf(n)===Object.prototype?({module:n}=n):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=Re();n instanceof WebAssembly.Module||(n=new WebAssembly.Module(n)),_r(new WebAssembly.Instance(n,t),n)}({module:n.data.wasmModule}),L=new re,$t=!1,we(),Qt=!1,ye(),qt=!1,he(),te=!1,me(),At=!1,xe(),mt=!1,oe(),gt=!1,ve()):yield lt(),void self.postMessage({type:"ready"});if("stream-start"===n.data.type)return yield lt(),Rt=function Ur(n){const t=(o,c)=>"number"==typeof o&&Number.isFinite(o)&&o>0?Math.floor(o):c,r=t(n?.targetMs,Zt.targetMs),_=t(n?.minJobs,Zt.minJobs);return{targetMs:r,minJobs:_,maxJobs:Math.max(_,t(n?.maxJobs,Zt.maxJobs))}}(n.data.batchSizing),ie=Rt.maxJobs,gt=!1,Ct=null,void(nt=function Dr(n){return{sharedBuffer:n.sharedBuffer,localBytes:Mt(n.sharedBuffer),sabFallbackTaken:!1,unitScale:n.unitScale,rtcX:n.rtcX,rtcY:n.rtcY,rtcZ:n.rtcZ,needsShift:n.needsShift,voidKeys:n.voidKeys,voidCounts:n.voidCounts,voidValues:n.voidValues,styleIds:n.styleIds,styleColors:n.styleColors,planeAngleToRadians:n.planeAngleToRadians,materialElementIds:n.materialElementIds,materialColorCounts:n.materialColorCounts,materialColors:n.materialColors,pendingMeshes:[],pendingTransfers:[],pendingInstancedShards:[],pendingInstancedOccurrences:0,pendingInstancedGeometry:new Map,totalMeshesEmitted:0,cumulativeMeshBytes:0,diagnostics:null}}({sharedBuffer:n.data.sharedBuffer,unitScale:n.data.unitScale,rtcX:n.data.rtcX,rtcY:n.data.rtcY,rtcZ:n.data.rtcZ,needsShift:n.data.needsShift,voidKeys:n.data.voidKeys,voidCounts:n.data.voidCounts,voidValues:n.data.voidValues,styleIds:n.data.styleIds,styleColors:n.data.styleColors,planeAngleToRadians:n.data.planeAngleToRadians,materialElementIds:n.data.materialElementIds,materialColorCounts:n.data.materialColorCounts,materialColors:n.data.materialColors}));if("stream-chunk"===n.data.type){if(!nt)throw new Error("stream-chunk received before stream-start");return void(yield function Yr(n,t){return Fe.apply(this,arguments)}(nt,n.data.jobsFlat))}if("set-styles"===n.data.type){if(!nt)return;return nt.styleIds=n.data.styleIds,nt.styleColors=n.data.styleColors,nt.voidKeys=n.data.voidKeys,nt.voidCounts=n.data.voidCounts,nt.voidValues=n.data.voidValues,nt.materialElementIds=n.data.materialElementIds,nt.materialColorCounts=n.data.materialColorCounts,void(nt.materialColors=n.data.materialColors)}if("set-entity-index"===n.data.type)return yield lt(),Ft={ids:n.data.ids,starts:n.data.starts,lengths:n.data.lengths},At=!1,xe(),mt=!1,void oe();if("set-prepass-columns"===n.data.type)return yield lt(),se=n.data,mt=!1,void oe();if("set-merge-layers"===n.data.type)return lr=!0===n.data.enabled,$t=!1,void we();if("set-instancing-enabled"===n.data.type)return void(fe=!0===n.data.enabled);if("set-compute-geometry-hashes"===n.data.type){const t=n.data.tolerance;return gr=null!=t&&t>0?t:null,Qt=!1,void ye()}if("set-tessellation-quality"===n.data.type)return ur=n.data.level??null,qt=!1,void he();if("set-skip-small-cuts"===n.data.type)return br=!0===n.data.enabled,te=!1,void me();if("stream-end"===n.data.type){if(!nt)throw new Error("stream-end received before stream-start");return function Xr(n){wr(n);let t=0;try{t=L?.getMemory()?.buffer?.byteLength??0}catch(r){console.warn("[Worker] wasm heap accounting unavailable; reporting 0 bytes:",r)}self.postMessage({type:"memory",meshBytes:n.cumulativeMeshBytes,wasmHeapBytes:t}),self.postMessage(function Or(n,t){return{type:"complete",totalMeshes:n,...t?{diagnostics:t}:{}}}(n.totalMeshesEmitted,n.diagnostics))}(nt),nt=null,Ft=null,At=!1,se=null,mt=!1,Ct=null,void(gt=!1)}}catch(t){const r=pr(self);self.postMessage({type:"error",message:t instanceof Error?t.message:String(t),...r?{wasmPanicLocation:r.location,wasmPanicAt:r.at}:{}})}}),Ae.apply(this,arguments)}self.onmessage=n=>{hr=hr.then(()=>function Kr(n){return Ae.apply(this,arguments)}(n)).catch(t=>{const r=pr(self);self.postMessage({type:"error",message:t instanceof Error?t.message:String(t),...r?{wasmPanicLocation:r.location,wasmPanicAt:r.at}:{}})})}}},je={};function k(v){var B=je[v];if(void 0!==B)return B.exports;var E=je[v]={exports:{}};return Me[v](E,E.exports,k),E.exports}k.m=Me,k.x=()=>{var v=k.O(void 0,[2076],()=>k(61320));return k.O(v)},v=[],k.O=(B,E,ot,P)=>{if(!E){var dt=1/0;for(G=0;G<v.length;G++){for(var[E,ot,P]=v[G],O=!0,st=0;st<E.length;st++)(!1&P||dt>=P)&&Object.keys(k.O).every(ft=>k.O[ft](E[st]))?E.splice(st--,1):(O=!1,P<dt&&(dt=P));if(O){v.splice(G--,1);var bt=ot();void 0!==bt&&(B=bt)}}return B}P=P||0;for(var G=v.length;G>0&&v[G-1][2]>P;G--)v[G]=v[G-1];v[G]=[E,ot,P]},k.n=v=>{var B=v&&v.__esModule?()=>v.default:()=>v;return k.d(B,{a:B}),B},k.d=(v,B)=>{for(var E in B)k.o(B,E)&&!k.o(v,E)&&Object.defineProperty(v,E,{enumerable:!0,get:B[E]})},k.f={},k.e=v=>Promise.all(Object.keys(k.f).reduce((B,E)=>(k.f[E](v,B),B),[])),k.u=v=>"common.js",k.miniCssF=v=>{},k.o=(v,B)=>Object.prototype.hasOwnProperty.call(v,B),k.r=v=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},k.j=1320,(()=>{var v;k.tt=()=>(void 0===v&&(v={createScriptURL:B=>B},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(v=trustedTypes.createPolicy("angular#bundler",v))),v)})(),k.tu=v=>k.tt().createScriptURL(v),k.p="",(()=>{var v={1320:1};k.f.i=(P,G)=>{v[P]||importScripts(k.tu(k.p+k.u(P)))};var E=self.webpackChunkcue_ui=self.webpackChunkcue_ui||[],ot=E.push.bind(E);E.push=P=>{var[G,dt,O]=P;for(var st in dt)k.o(dt,st)&&(k.m[st]=dt[st]);for(O&&O(k);G.length;)v[G.pop()]=1;ot(P)}})(),(()=>{var v=k.x;k.x=()=>k.e(2076).then(v)})(),k.x()})();