@nocobase/app 2.0.47 → 2.0.49

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.
@@ -1458,7 +1458,7 @@ ctx.render(<JsItem />);
1458
1458
  &:hover {
1459
1459
  background-color: `,`;
1460
1460
  }
1461
- `])),v.colorFillSecondary);return(0,h.jsxs)("div",{style:{maxHeight:300,overflowY:"auto"},children:[_e.map(function(oe){return(0,h.jsx)("div",{role:"option",onClick:function(){return Ce(oe.value)},className:me,children:E(oe.label)},oe.value)}),(0,h.jsx)(g.Z,{style:{margin:"4px 0"}}),re.map(function(oe){return(0,h.jsx)("div",{role:"option",className:me,onClick:function(){return Ce(oe.value)},title:E(oe.label),children:E(oe.label)},oe.value)})]})};return(0,h.jsxs)(i.Z.Compact,{style:W()(W()({},A.style),{},{width:"100%"}),children:[(0,h.jsx)(Z.default,W()(W()({options:X,open:te,onDropdownVisibleChange:ee},A),{},{allowClear:!1,style:{width:"100%",minWidth:100,maxWidth:["past","next","exact",void 0].includes(U==null?void 0:U.type)?100:null},value:(U==null?void 0:U.type)||"exact",onChange:Ce,dropdownRender:Se})),["past","next"].includes(U==null?void 0:U.type)&&[(0,h.jsx)(H.Z,{value:U==null?void 0:U.number,onChange:function(_e){var re=W()(W()({},U),{},{number:_e});K(re)}},"number"),(0,h.jsx)(Z.default,{value:U==null?void 0:U.unit,style:{minWidth:130,maxWidth:140},onChange:function(_e){var re=W()(W()({},U),{},{unit:_e});K(re)},options:[{value:"day",label:w("Day")},{value:"week",label:w("Calendar week")},{value:"month",label:w("Calendar Month")},{value:"year",label:w("Calendar Year")}],popupMatchSelectWidth:!0},"unit")],((U==null?void 0:U.type)==="exact"||!(U!=null&&U.type))&&(0,h.jsx)(y,W()({},A))]})}},20493:function(Ut,Re,e){"use strict";e.d(Re,{IW:function(){return R},LC:function(){return i},bt:function(){return ne},Fo:function(){return Z},TR:function(){return b},OR:function(){return H}});var de=e(97857),P=e.n(de),ve=e(13769),x=e.n(ve),h=e(10274),N=e(60887),J=e(97133),S=e(94350),I=e(96486),M=e.n(I),B=e(67294),O=e(46917),W=e(84577),f=e(85893),k=["component","overStyle","style","children","openMode"],T=["schema","id","eid","removeParentsIfNoChildren"],g=["component"],i=(0,B.createContext)(null);i.displayName="DraggableContext";var Z=(0,B.createContext)(null);Z.displayName="SortableContext";var H=function(z){var c=z.id,A=z.data,U=z.children,K=(0,N.useDraggable)({id:c,data:A}),E=(0,N.useDroppable)({id:c,data:A}),j=(0,B.useMemo)(function(){return{draggable:K,droppable:E}},[K,E]);return(0,f.jsx)(Z.Provider,{value:j,children:U})},Q=function(z){return new h.C(z).setAlpha(.15).toHex8String()},ne=function(z){var c,A,U=z.component,K=z.overStyle,E=z.style,j=z.children,w=z.openMode,D=x()(z,k),v=(0,O.dQ)(),G=v.token,Y=(0,B.useContext)(Z),te=Y.draggable,ee=Y.droppable,X=ee.isOver,Ce=ee.setNodeRef,Se=P()({},E),Ee=(0,S.useFieldSchema)(),_e=(Ee==null?void 0:Ee["x-component"])==="Action.Link"||U==="a";return X&&(te==null||(c=te.active)===null||c===void 0?void 0:c.id)!==(ee==null||(A=ee.over)===null||A===void 0?void 0:A.id)&&(Se[_e?"color":"background"]=Q(G.colorSettings),Object.assign(Se,K)),B.createElement(U||"div",P()(P()({role:"none"},D),{},{className:(0,J.cx)("nb-sortable-designer",z.className),ref:Ce,style:Se}),j)},ue=function(z){var c=V(z),A=(0,S.useFieldSchema)();return z.schema?P()(P()({},z),{},{id:c}):P()(P()({},z),{},{id:c,schema:A})},V=function(z){var c,A=(0,S.useField)();return z.id?z.id:(c=A.address)===null||c===void 0?void 0:c.toString()},p=(0,S.observer)(function(y){var z=ue(y),c=z.schema,A=z.id,U=z.eid,K=z.removeParentsIfNoChildren,E=x()(z,T),j=(0,B.useMemo)(function(){var w,D;return{insertAdjacent:"afterEnd",schema:((w=c.parent)===null||w===void 0||(w=w.parent)===null||w===void 0?void 0:w["x-component"])==="BlockTemplate"?(D=c.parent)===null||D===void 0?void 0:D.parent:c,removeParentsIfNoChildren:K??!0}},[c,K]);return(0,f.jsx)(H,{id:A,data:j,children:(0,f.jsx)(ne,P()(P()({id:U},E),{},{children:y.children}))})},{displayName:"InternalSortableItem"}),b=B.memo(function(y){var z=y.component,c=x()(y,g),A=(0,W.ng)(),U=A.designable;return U?(0,f.jsx)(p,P()({},y)):B.createElement(z||"div",M().omit(c,["children","schema","overStyle","openMode","id","eid","removeParentsIfNoChildren"]),y.children)});b.displayName="SortableItem";var R=function(z){var c=(0,B.useContext)(Z)||{},A=c.draggable;if(!A)return null;var U=A.attributes,K=A.listeners,E=A.setNodeRef;return(0,f.jsx)("div",{style:{display:"inline-block",width:14,height:14,lineHeight:"14px",textAlign:"left"},children:(0,f.jsx)("div",P()(P()(P()({ref:E,style:{position:"relative",zIndex:1,lineHeight:0,fontSize:0,display:"inline-block"}},K),U),{},{role:"none",children:(0,f.jsx)("span",{style:{cursor:"move",fontSize:14},children:z.children})}))})}},7840:function(Ut,Re,e){"use strict";e.d(Re,{I9:function(){return K},Rq:function(){return ue},e7:function(){return Q},jC:function(){return b},od:function(){return ne}});var de=e(97857),P=e.n(de),ve=e(9783),x=e.n(ve),h=e(15009),N=e.n(h),J=e(5574),S=e.n(J),I=e(99289),M=e.n(I),B=e(52677),O=e.n(B),W=e(10110),f=e(96486),k=e.n(f),T=e(10097),g=e(63179),i=e(76690),Z=e(65565),H=e(61341),Q=function(w,D){var v,G=/{{(.*?)}}/,Y=w==null||(v=w.match)===null||v===void 0?void 0:v.call(w,G);if(Y){var te=k().get(D,Y[1]);return k().isFunction(te)?te():te}else return w};function ne(j){if(O()(j)!=="object"||j===null)return null;for(var w in j)if(Object.prototype.hasOwnProperty.call(j,w))return Object.prototype.toString.call(j[w])==="[object Object]"&&j[w]!==null?ne(j[w]):{key:w,value:j[w]};return null}var ue=function(w){var D=V(w),v=(0,f.findIndex)(D,function(Y,te,ee){if(Y.includes("$")&&te>0)return!0}),G=D.slice(0,v);return G};function V(j){var w=[];function D(v){Object.keys(v).sort().forEach(function(G){w.push(G),v[G]&&O()(v[G])==="object"&&D(v[G])})}return D(j),w}var p=function(){var j=M()(N()().mark(function w(D,v,G){var Y,te,ee,X;return N()().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Y=(0,i.cG)(D)?[v.parseVariable(D,G).then(function(Ee){var _e=Ee.value;return _e})]:[D],Se.prev=1,Se.next=4,Promise.all(Y);case 4:return te=Se.sent,ee=S()(te,1),X=ee[0],Se.abrupt("return",X);case 10:throw Se.prev=10,Se.t0=Se.catch(1),console.error("Error in parseVariableValue:",Se.t0),Se.t0;case 14:case"end":return Se.stop()}},w,null,[[1,10]])}));return function(D,v,G){return j.apply(this,arguments)}}(),b=function(){var j=M()(N()().mark(function w(D,v){var G,Y,te,ee,X,Ce,Se,Ee;return N()().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return G=D.ruleGroup,Y=D.variables,te=D.localVariables,ee=D.variableNameOfLeftCondition,X=D.conditionType,Ce=Object.keys(G)[0]||"$and",Se=G[Ce]||[],re.next=5,Promise.all(Se.filter(Boolean).map(function(me){return R(me,Y,te,ee,X,v)}));case 5:if(Ee=re.sent,Ce!=="$and"){re.next=10;break}return re.abrupt("return",(0,f.every)(Ee,function(me){return me}));case 10:if(!Ee.length){re.next=12;break}return re.abrupt("return",(0,f.some)(Ee,function(me){return me}));case 12:return re.abrupt("return",!0);case 13:case"end":return re.stop()}},w)}));return function(D,v){return j.apply(this,arguments)}}(),R=function(){var j=M()(N()().mark(function w(D,v,G,Y,te,ee){return N()().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(!("$and"in D||"$or"in D)){Ce.next=4;break}return Ce.next=3,b({ruleGroup:D,variables:v,localVariables:G,conditionType:te},ee);case 3:return Ce.abrupt("return",Ce.sent);case 4:return Ce.abrupt("return",te==="advanced"?y(D,v,G,ee):z(D,v,G,Y,ee));case 5:case"end":return Ce.stop()}},w)}));return function(D,v,G,Y,te,ee){return j.apply(this,arguments)}}(),y=function(){var j=M()(N()().mark(function w(D,v,G,Y){var te,ee,X;return N()().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return te=D.op,Se.next=3,p(D.rightVar,v,G);case 3:return ee=Se.sent,Se.next=6,p(D.leftVar,v,G);case 6:if(X=Se.sent,!te){Se.next=9;break}return Se.abrupt("return",Y.apply(x()({},te,[X,ee])));case 9:return Se.abrupt("return",!0);case 10:case"end":return Se.stop()}},w)}));return function(D,v,G,Y){return j.apply(this,arguments)}}(),z=function(){var j=M()(N()().mark(function w(D,v,G,Y,te){var ee,X,Ce,Se,Ee,_e,re,me,oe,ie,Pe,De,ce,Ie;return N()().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(ee=ne(D),X=ee==null?void 0:ee.key,X){pe.next=4;break}return pe.abrupt("return",!0);case 4:return Ce=c(ue(D),Y),Se=v.parseVariable(Ce,G,{doNotRequest:!0}).then(function(ge){var fe=ge.value;return fe}),Ee=(0,i.cG)(ee==null?void 0:ee.value)?[v.parseVariable(ee==null?void 0:ee.value,G).then(function(ge){var fe=ge.value;return fe}),Se]:[ee==null?void 0:ee.value,Se],pe.prev=7,pe.next=10,Promise.all(Ee);case 10:return _e=pe.sent,re=S()(_e,2),me=re[0],oe=re[1],pe.next=16,v.getCollectionField(Ce,G);case 16:return ie=pe.sent,Pe=(0,Z.J)(oe,{targetCollectionField:ie}),De=(0,Z.J)(me,{targetCollectionField:ie}),ie!=null&&ie.type&&["datetime","date","datetimeNoTz","dateOnly","unixTimestamp"].includes(ie.type)&&Pe&&(ce=(0,H.CE)(De),Ie=(0,W.getPickerFormat)(ce),Pe=(0,W.dayjs)(Pe).format(Ie)),pe.abrupt("return",te.apply(x()({},X,[Pe,De])));case 23:throw pe.prev=23,pe.t0=pe.catch(7),pe.t0;case 26:case"end":return pe.stop()}},w,null,[[7,23]])}));return function(D,v,G,Y,te){return j.apply(this,arguments)}}();function c(j){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$nForm";return"{{ ".concat(w,".").concat(j.join(".")," }}")}var A=function(w){var D={};return w.map(function(v){D[v.name]=v.ctx}),D};function U(j){return j.replace(/{{\s*}}/g,'{{"{{}}"}}')}function K(j,w,D,v,G,Y){return E.apply(this,arguments)}function E(){return E=M()(N()().mark(function j(w,D,v,G,Y,te){var ee,X,Ce,Se,Ee,_e,re,me,oe,ie;return N()().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(!(D&&w==="handlebars")){De.next=23;break}return W.Handlebars.registerHelper("t",function(ce){if(typeof ce=="string")return te(ce,{ns:g.g})}),De.prev=2,Ce=U(D),Se=W.Handlebars.compile(Ce),Ee=A(G),_e=(v==null||(ee=v.ctxRef)===null||ee===void 0?void 0:ee.current)||{},re=_e.$nDate,me={},Object.keys(re||{}).map(function(ce){me[ce]=re[ce]()}),oe=Se(P()(P()(P()({},v==null||(X=v.ctxRef)===null||X===void 0?void 0:X.current),Ee),{},{$nDate:me})),console.log(oe),De.next=13,Y(oe);case 13:return De.abrupt("return",De.sent);case 16:return De.prev=16,De.t0=De.catch(2),/VariablesProvider: .* is not found/.test(De.t0.message)||console.log(De.t0),console.log(D),De.abrupt("return",D);case 21:De.next=36;break;case 23:return De.prev=23,De.next=26,(0,T.replaceVariableValue)(D,v,G);case 26:return ie=De.sent,De.next=29,Y(ie);case 29:return De.abrupt("return",De.sent);case 32:return De.prev=32,De.t1=De.catch(23),/VariablesProvider: .* is not found/.test(De.t1.message)||console.log(De.t1),De.abrupt("return",D);case 36:case"end":return De.stop()}},j,null,[[2,16],[23,32]])})),E.apply(this,arguments)}},25145:function(Ut,Re,e){"use strict";e.d(Re,{u:function(){return ne}});var de=e(5574),P=e.n(de),ve=e(97857),x=e.n(ve),h=e(13769),N=e.n(h),J=e(94350),S=e(96486),I=e(67294),M=e(96726),B=e(75585),O=e(22891),W={type:"void","x-component":"Action.Container","x-action":"view",title:'{{ t("View record") }}',"x-component-props":{className:"nb-action-popup"},properties:{tabs:{type:"void","x-component":"Tabs","x-component-props":{},"x-initializer":"popup:addTab",properties:{tab1:{type:"void",title:'{{t("Details")}}',"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"popup:common:addBlock",properties:{}}}}}}}},f=e(94804),k=e(57105),T=e(68304),g=e(85893),i=["WrappedComponent"],Z=function(){var V=(0,J.useFieldSchema)(),p=(0,M.ngQ)(),b=p.insertAfterBegin,R=(0,I.useCallback)(function(y){var z=V.reduceProperties(function(c,A){return A["x-component"]==="Action.Container"?A:c},null);z||b((0,S.cloneDeep)(y))},[V,b]);return R},H=function(V){return V["x-component"]==="Action.Container"},Q=function(V){var p=V.WrappedComponent,b=N()(V,i),R=(0,J.useFieldSchema)(),y=(0,O.ES)(),z=y.openPopup,c=(0,I.useRef)(!1),A=Z(),U=(0,I.useRef)(R);U.current=R;var K=(0,I.useRef)(A);K.current=A;var E=(0,I.useRef)(z);E.current=z;var j=(0,I.useCallback)(function(){return U.current},[]),w=(0,I.useCallback)(function(){U.current.properties||(K.current(W),c.current=!0),c.current?(setTimeout(function(){E.current({customActionSchema:j()})}),c.current=!1):U.current.properties&&E.current()},[j]),D=(0,I.useMemo)(function(){return(0,S.debounce)(w,600,{leading:!0,trailing:!1})},[w]);return(0,I.useEffect)(function(){return function(){D.cancel()}},[D]),(0,g.jsx)("a",{onClick:D,children:(0,g.jsx)(p,x()({},b))})};function ne(ue){return function(V){var p=(0,I.useState)(!1),b=P()(p,2),R=b[0],y=b[1],z=(0,I.useState)(!1),c=P()(z,2),A=c[0],U=c[1],K=(0,f.Kx)(),E=(0,M.XCj)(),j=(0,J.useField)(),w=(0,J.useFieldSchema)(),D=(w==null?void 0:w["x-component-props"])||{},v=D.enableLink,G=D.openMode,Y=D.openSize,te=(0,O.ES)(),ee=te.visibleWithURL,X=te.setVisibleWithURL,Ce=(0,I.useCallback)(function(_e){y==null||y(_e),X==null||X(_e)},[X]),Se=(0,I.useRef)(w);Se.current=w;var Ee=E.setSubmitted;return v?(0,g.jsx)(B.OA,{visible:!1,children:(0,g.jsxs)(M.EIK,{button:(0,g.jsx)(ue,x()({},V)),visible:R||ee,setVisible:Ce,formValueChanged:A,setFormValueChanged:U,openMode:G,openSize:Y,containerRefKey:"field-popup",fieldSchema:w,setSubmitted:Ee,children:[(0,g.jsx)(f.YQ,{name:K.name,children:(0,g.jsx)(M.G0E,{children:(0,g.jsx)(T.Rm,{children:(0,g.jsx)(k.sq,{onlyRenderProperties:!0,basePath:j==null?void 0:j.address,schema:w,filterProperties:H})})})}),(0,g.jsx)(Q,x()(x()({},V),{},{WrappedComponent:ue}))]})}):(0,g.jsx)(ue,x()({},V))}}},61736:function(Ut,Re,e){"use strict";e.d(Re,{D:function(){return P}});var de=e(67294),P=(0,de.createContext)({});P.displayName="SchemaComponentContext.Provider"},44245:function(Ut,Re,e){"use strict";e.d(Re,{R:function(){return f}});var de=e(97857),P=e.n(de),ve=e(13769),x=e.n(ve),h=e(86201),N=e(94350),J=e(67294),S=e(47844),I=e(85893),M=["children","form"],B=["children"],O=function(T){var g=T.children,i=T.form,Z=x()(T,M),H=(0,J.useContext)(N.SchemaOptionsContext),Q=(0,J.useContext)(N.SchemaExpressionScopeContext),ne=P()(P()({},H==null?void 0:H.scope),Q),ue=P()({},H==null?void 0:H.components);return(0,I.jsx)(N.FormProvider,P()(P()({},Z),{},{form:i,children:(0,I.jsx)(S.G,{components:ue,scope:ne,children:g})}))},W=function(T){var g=T.children,i=x()(T,B),Z=(0,J.useContext)(N.SchemaOptionsContext),H=(0,J.useContext)(N.SchemaExpressionScopeContext),Q=P()(P()({},Z==null?void 0:Z.scope),H),ne=P()({},Z==null?void 0:Z.components),ue=(0,J.useMemo)(function(){return(0,h.createForm)()},[]);return(0,I.jsx)(N.FormProvider,P()(P()({},i),{},{form:ue,children:(0,I.jsx)(S.G,{components:ne,scope:Q,children:g})}))},f=function(T){return T.form?(0,I.jsx)(O,P()({},T)):(0,I.jsx)(W,P()({},T))}},93587:function(Ut,Re,e){"use strict";e.d(Re,{m:function(){return g}});var de=e(97857),P=e.n(de),ve=e(86201),x=e(94350),h=e(74330),N=e(67294),J=e(54195),S=e(21044),I=e(84577),M=e(44245),B=e(93323),O=e(12174),W=function(Z){var H=Z.uid,Q=Z.type,ne=Q===void 0?"getJsonSchema":Q,ue=Z.onSuccess,V={url:"/uiSchemas:".concat(ne,"/").concat(H)},p=(0,O.QT)(V,{refreshDeps:[H],onSuccess:function(z){ue&&ue(z)}}),b=p.data,R=p.loading;return{schema:b==null?void 0:b.data,loading:R}},f=e(85893),k=function(Z){return Z},T=function(Z){var H=Z.noForm,Q=Z.onlyRenderProperties,ne=Z.hidden,ue=Z.scope,V=Z.uid,p=Z.components,b=Z.onSuccess,R=Z.NotFoundPage,y=Z.schemaTransform,z=y===void 0?k:y,c=Z.onPageNotFind,A=Q?"getProperties":"getJsonSchema",U=(0,N.useMemo)(function(){return(0,ve.createForm)()},[V]),K=W({uid:V,type:A,onSuccess:function(te){b&&b(te)}}),E=K.schema,j=K.loading,w=(0,I.Co)(R),D=(0,J.Kk)(),v=(0,x.useFieldSchema)(),G=(0,N.useMemo)(function(){return z(E||{})},[E,z]);return D||j||ne?(0,f.jsx)(h.Z,{style:{width:"100%",marginTop:20},delay:S.fw}):!E||Object.keys(E).length===0?(c&&c(),w?(0,f.jsx)(w,{}):null):H?(0,f.jsx)(B.n,{components:p,scope:ue,schema:G,parentSchema:v}):(0,f.jsx)(M.R,{form:U,children:(0,f.jsx)(B.n,{components:p,scope:ue,schema:G,parentSchema:v})})},g=(0,N.memo)(function(i){return i.uid?(0,f.jsx)(T,P()({},i)):null});g.displayName="RemoteSchemaComponent"},93323:function(Ut,Re,e){"use strict";e.d(Re,{A:function(){return H},n:function(){return ue}});var de=e(97857),P=e.n(de),ve=e(13769),x=e.n(ve),h=e(9783),N=e.n(h),J=e(94350),S=e(96486),I=e.n(S),M=e(67294),B=e(57105),O=e(61736),W=e(47844),f=e(85893),k=["components","scope","schema","distributed","onChange","parentSchema"],T=["schema","parentSchema"],g=["memoized"];function i(V){return J.Schema.isSchemaInstance(V)?V:V!=null&&V.name?new J.Schema({type:"object",properties:N()({},V.name,V),name:"p_".concat(V.name)}):new J.Schema(V)}var Z=function(p){return(0,M.useMemo)(function(){return i(p)},[])},H=(0,M.createContext)({onChange:I().noop}),Q=(0,M.memo)(function(V){var p=V.components,b=V.scope,R=V.schema,y=V.distributed,z=V.onChange,c=V.parentSchema,A=x()(V,k),U=(0,M.useContext)(O.D),K=(0,M.useMemo)(function(){return i(R)},[R]),E=(0,M.useMemo)(function(){return P()(P()({},U),{},{distributed:U.distributed==!1?!1:y,refresh:U.refresh||I().noop})},[U,y]),j=(0,M.useContext)(H),w=j.onChange,D=(0,M.useMemo)(function(){return{onChange:function(){z==null||z(K),w==null||w()}}},[z,w,K]);return(0,f.jsx)(H.Provider,{value:D,children:(0,f.jsx)(O.D.Provider,{value:E,children:(0,f.jsx)(W.G,{inherit:!0,components:p,scope:b,children:(0,f.jsx)(B.sq,P()(P()({},A),{},{schema:K,isUseFormilyField:!0,parentSchema:c}))})})})});Q.displayName="RecursionSchemaComponent";var ne=(0,M.memo)(function(V){var p=V.schema,b=V.parentSchema,R=x()(V,T),y=Z(p);return(0,f.jsx)(Q,P()(P()({},R),{},{schema:y,parentSchema:b}))});ne.displayName="MemoizedSchemaComponent";var ue=(0,M.memo)(function(V){var p=V.memoized,b=x()(V,g);return p?(0,f.jsx)(ne,P()({},b)):(0,f.jsx)(Q,P()({},b))});ue.displayName="SchemaComponent"},47844:function(Ut,Re,e){"use strict";e.d(Re,{B:function(){return N},G:function(){return J}});var de=e(97857),P=e.n(de),ve=e(94350),x=e(67294),h=e(85893),N=function(){var I=(0,x.useContext)(ve.SchemaOptionsContext);return I||{}},J=(0,x.memo)(function(S){var I=S.children,M=N(),B=(0,x.useMemo)(function(){return P()(P()({},M.components),S.components)},[M.components,S.components]),O=(0,x.useMemo)(function(){return P()(P()({},M.scope),S.scope)},[M.scope,S.scope]),W=(0,x.useMemo)(function(){return{scope:O,components:B}},[O,B]);return(0,h.jsx)(ve.SchemaOptionsContext.Provider,{value:W,children:(0,h.jsx)(ve.SchemaComponentsContext.Provider,{value:B,children:(0,h.jsx)(ve.ExpressionScope,{value:O,children:I})})})});J.displayName="SchemaComponentOptions"},70993:function(Ut,Re,e){"use strict";e.d(Re,{_b:function(){return R},RV:function(){return y.R},m1:function(){return z.m},n6:function(){return c.n},AT:function(){return c.A},G0:function(){return A.G},a$:function(){return Ee},Tz:function(){return Ce},Bs:function(){return A.B}});var de=e(15009),P=e.n(de),ve=e(99289),x=e.n(ve),h=e(12444),N=e.n(h),J=e(72004),S=e.n(J),I=e(31996),M=e.n(I),B=e(26037),O=e.n(B),W=e(97857),f=e.n(W),k=e(18205),T=e(83062),g=e(83622),i=e(67294),Z=e(49218),H=e(26793),Q=e(96726),ne=e(68230),ue=e(50322),V=e(85893),p={backgroundColor:"var(--colorSettings) !important"},b={backgroundColor:"transparent"},R=function(me){var oe=(0,Q.ngQ)(),ie=oe.designable,Pe=oe.setDesignable,De=(0,H.$)(),ce=De.t,Ie=(0,ne.d)(),ye=Ie.token,pe=ie?p:b,ge=(0,ue.wd)(),fe=ge.isMobileLayout;return(0,Z.y1)("Ctrl+Shift+U",function(){return Pe(!ie)},[ie]),fe?null:(0,V.jsx)(T.Z,{title:ce("UI Editor"),children:(0,V.jsx)(g.ZP,{"data-testid":"ui-editor-button",icon:(0,V.jsx)(k.Z,{style:{color:ye.colorTextHeaderMenu}}),title:ce("UI Editor"),style:f()(f()({},pe),me.style),onClick:function(){Pe(!ie)}})})},y=e(44245),z=e(93587),c=e(93323),A=e(47844),U=e(5574),K=e.n(U),E=e(86201),j=e(94350),w=e(84327),D=e(96486),v=e.n(D),G=e(61736),Y=e(2483),te=function(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return"".concat(me).concat((0,w.uid)())};j.Schema.silent(!0);var ee={},X={silent:!0,compile:function(me){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=function(){if(X.silent)try{return new Function("$root","with($root) { return (".concat(me,"); }"))(oe)}catch{return"{{".concat(me,"}}")}else return new Function("$root","with($root) { return (".concat(me,"); }"))(oe)};return ee[me]?ee[me]:me.trim().startsWith("t(")?(ee[me]=ie(),ee[me]):ie()}};j.Schema.registerCompiler(X.compile);var Ce=function(me){var oe=me.designable,ie=me.onDesignableChange,Pe=me.components,De=me.children,ce=(0,i.useContext)(G.D),Ie=(0,A.B)(),ye=(0,i.useState)(function(){return(0,w.uid)()}),pe=K()(ye,2),ge=pe[0],fe=pe[1],Oe=(0,i.useMemo)(function(){return me.form||(0,E.createForm)()},[ge]),Te=(0,H.$)(),Fe=Te.t,Ae=(0,Y.qD)(),$e=(0,i.useMemo)(function(){return f()(f()({},me.scope),{},{t:Fe,randomString:te})},[me.scope,Fe,Ie==null?void 0:Ie.scope]),Ne=(0,i.useState)(oe),nt=K()(Ne,2),He=nt[0],je=nt[1],Je=(0,i.useMemo)(function(){return typeof oe=="boolean"?oe:He},[oe,He,ce.designable]),ke=(0,i.useMemo)(function(){return function(le){typeof Je!="boolean"&&je(le),ie==null||ie(le)}},[Je,ie]);(0,i.useEffect)(function(){var le,xe;Je?(le=Ae.flowEngine)===null||le===void 0||(le=le.flowSettings)===null||le===void 0||le.enable():(xe=Ae.flowEngine)===null||xe===void 0||(xe=xe.flowSettings)===null||xe===void 0||xe.disable()},[Ae,Je]);var Be=(0,i.useCallback)(function(){fe((0,w.uid)())},[]),Ke=(0,i.useMemo)(function(){return{scope:$e,components:Pe,reset:Be,refresh:v().noop,designable:Je,setDesignable:ke}},[Pe,Je,Be,$e,ke]);return(0,V.jsx)(G.D.Provider,{value:Ke,children:(0,V.jsx)(j.FormProvider,{form:Oe,children:(0,V.jsx)(A.G,{inherit:!0,scope:$e,components:Pe,children:De})})})};Ce.displayName="SchemaComponentProvider";var Se=e(31601),Ee=function(re){M()(oe,re);var me=O()(oe);function oe(){return N()(this,oe),me.apply(this,arguments)}return S()(oe,[{key:"load",value:function(){var ie=x()(P()().mark(function De(){return P()().wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:this.addComponents();case 1:case"end":return Ie.stop()}},De,this)}));function Pe(){return ie.apply(this,arguments)}return Pe}()},{key:"addComponents",value:function(){this.app.addComponents({DesignableSwitch:R})}}]),oe}(Se.S),_e=null},84577:function(Ut,Re,e){"use strict";e.d(Re,{zz:function(){return J.zz},Pl:function(){return J.Pl},oB:function(){return J.oB},lI:function(){return P},hi:function(){return Q.hi},eJ:function(){return ve.e},Co:function(){return N},aZ:function(){return Q.aZ},ng:function(){return J.ng},et:function(){return S.e},cL:function(){return T},fd:function(){return ne},Cl:function(){return B},vH:function(){return Z},sR:function(){return J.sR},wN:function(){return H.w},Dm:function(){return W},fM:function(){return Q.fM}});var de=e(67294),P=function(V){var p=(0,de.useRef)(null);return(0,de.useEffect)(function(){return p.current&&V!==p.current&&p.current.onUnmount(),p.current=V,V.onMount(),function(){V.onUnmount()}},[V]),V},ve=e(96365),x=e(94350),h=e(96486),N=function(V,p){var b=(0,de.useContext)(x.SchemaOptionsContext),R=b.components;return V?typeof V!="string"?V:(0,h.get)(R,V)||p:p},J=e(94516),S=e(98146),I=e(97857),M=e.n(I),B=function(V){var p=(0,de.useContext)(x.SchemaOptionsContext),b=(0,de.useContext)(x.SchemaExpressionScopeContext),R=(0,de.useRef)();return R.current=b,V.toFieldProps(M()(M()({},p),{},{get scope(){return M()(M()({},p.scope),R.current)}}))},O=e(61736);function W(){return(0,de.useContext)(O.D)}var f=e(26793),k=e(6145),T=function(){var V,p=(0,k.useCollectionManager_deprecated)(),b=p.getCollectionJoinField,R=p.getCollection,y=(0,x.useFieldSchema)(),z=(0,k.useCollection_deprecated)(),c=z.getField,A=c(y.name)||b(y["x-collection-field"]),U=(0,f.$)(),K=U.t,E=((V=y["x-component-props"])===null||V===void 0?void 0:V.fieldNames)||{},j=E.label,w=(0,de.useMemo)(function(){if(!(!A||!(A!=null&&A.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m"].includes(A.interface)){var D=R(A.target);if((D==null?void 0:D.template)==="file")return[{label:K("Record picker"),value:"CollectionField"},{label:K("Select"),value:"AssociationSelect"}];switch(A.interface){case"o2m":return[{label:K("Record picker"),value:"CollectionField"},{label:K("Subtable"),value:"TableField"},{label:K("Select"),value:"AssociationSelect"}];case"m2o":case"m2m":case"linkTo":return[{label:K("Record picker"),value:"CollectionField"},{label:K("Select"),value:"AssociationSelect"}];default:return[{label:K("Record picker"),value:"CollectionField"},{label:K("Subform"),value:"FormField"},{label:K("Select"),value:"AssociationSelect"}]}}},[K,A==null?void 0:A.interface,j]);return w},g=e(35746),i=e(58837),Z=function(){var V,p=(0,x.useField)(),b=(0,x.useFieldSchema)(),R=(0,i.Kx)(),y=(0,g.d9)(),z=(R==null?void 0:R.getField(b.name))||(y==null?void 0:y.getCollectionField(b["x-collection-field"])),c=(0,ve.e)();(0,de.useEffect)(function(){if(!(p!=null&&p.title)){var A;p.title=c(z==null||(A=z.uiSchema)===null||A===void 0?void 0:A.title)}},[z==null||(V=z.uiSchema)===null||V===void 0?void 0:V.title])},H=e(9780),Q=e(18686),ne=function(V){var p,b=(0,f.$)(),R=b.t,y=(0,k.useCollectionManager_deprecated)(),z=y.getCollectionJoinField,c=y.getCollection,A=(0,x.useFieldSchema)(),U=(V==null?void 0:V.fieldSchema)||A,K=(0,x.useField)(),E=(0,x.useForm)(),j=(U==null?void 0:U["x-read-pretty"])||K.readPretty||E.readPretty,w=V==null?void 0:V.fieldSchema,D=(0,k.useCollection_deprecated)(),v=D.getField,G=(V==null?void 0:V.collectionField)||v(U.name)||z(U["x-collection-field"]),Y=((p=U["x-component-props"])===null||p===void 0?void 0:p.fieldNames)||{},te=Y.label,ee=(0,de.useMemo)(function(){if(!(!G||!(G!=null&&G.interface))&&["hasOne","hasMany","belongsTo","belongsToMany","belongsToArray"].includes(G.type)){var X=c(G.target);if((X==null?void 0:X.template)==="file")return j?[{label:R("Title"),value:"Select"},{label:R("File manager"),value:"FileManager"},{label:R("Tag"),value:"Tag"}]:[{label:R("Select"),value:"Select"},{label:R("Record picker"),value:"Picker"},{label:R("File manager"),value:"FileManager"}];if((X==null?void 0:X.template)==="tree"&&["m2m","o2m","m2o"].includes(G.interface))return j?[{label:R("Title"),value:"Select"},{label:R("Tag"),value:"Tag"},!w&&{label:R("Sub-details"),value:"Nester"},!w&&{label:R("Sub-table"),value:"SubTable"}]:[{label:R("Select"),value:"Select"},{label:R("Record picker"),value:"Picker"},!w&&["m2m","o2m"].includes(G.interface)&&{label:R("Sub-table"),value:"SubTable"},!w&&{label:R("Cascader Select"),value:"CascadeSelect"},!w&&{label:R("Sub-form"),value:"Nester"},{label:R("Sub-form(Popover)"),value:"PopoverNester"}];switch(G.interface){case"o2m":return j?[{label:R("Title"),value:"Select"},{label:R("Tag"),value:"Tag"},!w&&{label:R("Sub-table"),value:"SubTable"},!w&&{label:R("Sub-details"),value:"Nester"}]:[{label:R("Select"),value:"Select"},{label:R("Record picker"),value:"Picker"},!w&&{label:R("Sub-form"),value:"Nester"},{label:R("Sub-form(Popover)"),value:"PopoverNester"},!w&&{label:R("Sub-table"),value:"SubTable"}];case"m2m":case"mbm":return j?[{label:R("Title"),value:"Select"},{label:R("Tag"),value:"Tag"},!w&&{label:R("Sub-details"),value:"Nester"},!w&&{label:R("Sub-table"),value:"SubTable"}]:[{label:R("Select"),value:"Select"},{label:R("Record picker"),value:"Picker"},!w&&{label:R("Sub-table"),value:"SubTable"},!w&&{label:R("Sub-form"),value:"Nester"},{label:R("Sub-form(Popover)"),value:"PopoverNester"}];case"m2o":case"linkTo":return j?[{label:R("Title"),value:"Select"},{label:R("Tag"),value:"Tag"},!w&&{label:R("Sub-details"),value:"Nester"}]:[{label:R("Select"),value:"Select"},{label:R("Record picker"),value:"Picker"},!w&&{label:R("Sub-form"),value:"Nester"},{label:R("Sub-form(Popover)"),value:"PopoverNester"}];default:return j?[{label:R("Title"),value:"Select"},{label:R("Tag"),value:"Tag"},!w&&{label:R("Sub-details"),value:"Nester"}]:[{label:R("Select"),value:"Select"},{label:R("Record picker"),value:"Picker"},!w&&{label:R("Sub-form"),value:"Nester"},{label:R("Sub-form(Popover)"),value:"PopoverNester"}]}}},[R,G==null?void 0:G.interface,te,j,w]);return(ee||[]).filter(Boolean)}},18686:function(Ut,Re,e){"use strict";e.d(Re,{aZ:function(){return ue},fM:function(){return p},hi:function(){return V}});var de=e(5574),P=e.n(de),ve=e(97857),x=e.n(ve),h=e(94350),N=e(83204),J=e(9361),S=e(96486),I=e.n(S),M=e(67294),B=e(89250),O=e(96726),W=e(21143),f=e(10097),k=e(1892),T=e(28561),g=function(y,z,c,A,U){return U.includes("/popups/")?2*A.paddingContentVertical+22+A.paddingPageVertical:y?A.paddingContentHorizontalLG:c?z?A.controlPaddingHorizontal+3*A.controlPaddingHorizontalSM+22+A.paddingContentHorizontalLG:A.paddingContentHorizontalLG+12:z?A.paddingSM+A.controlHeight+A.marginXS+2*A.controlPaddingHorizontalSM+22+A.paddingContentHorizontalLG:A.controlHeight+A.marginXS+(A.paddingContentVertical+2)*2+A.paddingContentHorizontalLG},i=function(y){var z=J.Z.useToken(),c=z.token,A=(0,O.ngQ)(),U=A.designable,K=(0,f.useBlockHeightProps)(),E=K.heightProps,j=(0,B.useLocation)(),w=y||E||{},D=w.disablePageHeader,v=w.enablePageTabs,G=w.hidePageTitle,Y=c.sizeXXL-2,te=U?c.controlHeight+2*c.paddingContentHorizontalLG:1*c.paddingContentHorizontalLG,ee=g(D,v,G,c,j.pathname);return Y+ee+te},Z=function(){var y=J.Z.useToken(),z=y.token,c=(0,O.ngQ)(),A=c.designable,U=z.paddingContentVerticalLG+z.margin+2*z.paddingContentVertical+24,K=A?z.controlHeight+2*z.paddingContentHorizontalLG:1*z.paddingContentHorizontalLG;return U+K},H=function(y){var z=(0,h.useFieldSchema)(),c=b(z),A=i(y),U=Z();return c?U:A},Q=["workflowManualTasks","approvals","approvalRecords"],ne=function(){var y,z=J.Z.useToken(),c=z.token,A=(0,f.useBlockHeightProps)(),U=A.heightProps,K=(0,k.Si)(),E=K.heightProps,j=(0,O.ngQ)(),w=j.designable,D=(0,h.useFieldSchema)(),v=E||U,G=U.titleHeight,Y=H(v),te=(0,W.useCollection)(),ee=te.name,X=v.heightMode,Ce=v.height,Se=v.title;if(!(!(v!=null&&v.heightMode)||X===T.j.DEFAULT)){var Ee=Object.keys(((y=D.parent.properties.actions)===null||y===void 0?void 0:y.properties)||{}).length>0,_e=c.controlHeight+c.padding+c.marginLG,re=Ee||w?c.controlHeight+2*c.marginLG:c.marginLG,me=(w&&!Q.includes(ee)?c.controlHeight:22)+2*c.padding+1,oe=Se?G:0;return X===T.j.FULL_HEIGHT?window.innerHeight-Y-oe-me-re-_e:Ce-oe-re-me-_e}},ue=function(y){var z=(0,f.useBlockHeightProps)(),c=z.heightProps,A=H(),U=c||{},K=U.heightMode,E=U.height,j=U.title,w=U.titleHeight,D=j?w:0;if(!(!(c!=null&&c.heightMode)||K===T.j.DEFAULT)){if(K===T.j.FULL_HEIGHT){var v=window.innerHeight-A;return y!=null&&y.removeBlockHeaderHeight&&(v=v-D),y!=null&&y.innerExtraHeight&&(v=v-y.innerExtraHeight),v}return E}},V=function(){var y=(0,h.useFieldSchema)(),z=(0,M.useMemo)(function(){return(0,f.getPageSchema)(y)},[]),c=(z==null?void 0:z["x-component-props"])||{},A=c.disablePageHeader,U=c.enablePageTabs,K=c.hidePageTitle,E=x()(x()({},y==null?void 0:y["x-component-props"]),{},{disablePageHeader:A,enablePageTabs:U,hidePageTitle:K}),j=H(E),w=E||{},D=w.heightMode,v=w.height;if(!(!(E!=null&&E.heightMode)||D===T.j.DEFAULT))return D===T.j.FULL_HEIGHT?window.innerHeight-j:v},p=function(){var y=(0,M.useState)(),z=P()(y,2),c=z[0],A=z[1],U=(0,M.useRef)(null),K=ne(),E=(0,M.useCallback)((0,S.debounce)(function(){var w;if(U.current){var D=U.current.getBoundingClientRect(),v=(w=U.current.querySelector(".ant-table"))===null||w===void 0?void 0:w.getBoundingClientRect();v&&A(D.width)}},100),[K]),j=(0,M.useCallback)(function(w){U.current=w&&w.children?w.children[0]:null,E()},[E]);return(0,N.Z)("resize",E),{height:K,width:c,tableSizeRefCallback:j}},b=function R(y){if(!y)return null;if(y["x-component"]==="Action.Container"){var z;return(y==null||(z=y.parent)===null||z===void 0||(z=z["x-component-props"])===null||z===void 0?void 0:z.openMode)!=="page"}return R(y.parent)}},96365:function(Ut,Re,e){"use strict";e.d(Re,{e:function(){return I}});var de=e(97857),P=e.n(de),ve=e(52677),x=e.n(ve),h=e(94350),N=e(67294),J={},S=function(B){var O=/{{.*?}}/g;return O.test(B)},I=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{noCache:!1},O=B.noCache,W=(0,N.useContext)(h.SchemaOptionsContext),f=(0,N.useContext)(h.SchemaExpressionScopeContext);return function(k,T){var g=!1,i;if(typeof k=="string"&&k.startsWith("{{")&&(g=!0,i=k),k&&x()(k)==="object"&&!(0,N.isValidElement)(k)){try{i=JSON.stringify(k)}catch(H){return console.warn("Failed to stringify:",H),k}if(J[i])return J[i];g=S(i)}if(Array.isArray(k)){try{i=JSON.stringify(k)}catch(H){return console.warn("Failed to stringify:",H),k}if(J[i])return J[i];g=S(i)}if(g){var Z=P()(P()(P()({},W==null?void 0:W.scope),f),T);if(!i)return h.Schema.compile(k,Z);try{return O?h.Schema.compile(k,Z):(J[i]=J[i]||h.Schema.compile(k,Z),J[i])}catch(H){return console.log("useCompile error",k,H),h.Schema.compile(k,Z)}}return k}}},94516:function(Ut,Re,e){"use strict";e.d(Re,{zz:function(){return X},Pl:function(){return D},oB:function(){return te},ng:function(){return Se},sR:function(){return Ce}});var de=e(5574),P=e.n(de),ve=e(19632),x=e.n(ve),h=e(15009),N=e.n(h),J=e(99289),S=e.n(J),I=e(12444),M=e.n(I),B=e(72004),O=e.n(B),W=e(9783),f=e.n(W),k=e(97857),T=e.n(k),g=e(94350),i=e(84327),Z=e(90105),H=e(45360),Q=e(50361),ne=e.n(Q),ue=e(27361),V=e.n(ue),p=e(36968),b=e.n(p),R=e(67294),y=e(26793),z=e(12174),c=e(57105),A=e(98902),U=e(61736);function K(Ee,_e){if(Ee)return Ee["x-app-version"]||(Ee["x-app-version"]=_e),Object.keys(Ee.properties||{}).forEach(function(re){var me;K((me=Ee.properties)===null||me===void 0?void 0:me[re],_e)}),Ee}var E={i8:"2.0.47"},j=e(50322),w=e(85893);function D(Ee){return new X(Ee)}var v=function Ee(_e){_e&&(_e["x-uid"]||(_e["x-uid"]=(0,i.uid)()),Object.keys(_e.properties||{}).forEach(function(re){Ee(_e.properties[re])}))},G=function(_e){return _e},Y=function(_e,re){if(!(!_e||!re)){for(var me in re)if(Object.prototype.hasOwnProperty.call(re,me)){var oe=re[me];if(oe!==(_e==null?void 0:_e[me]))return!1}return!0}},te=function(_e,re){if(_e["x-uid"]&&_e["x-uid"]===re["x-uid"])return[null,_e.toJSON()];var me=_e.toJSON(),oe=T()(T()({},me),{},{properties:{}}),ie=null,Pe=function De(ce,Ie){Object.keys(ce||{}).forEach(function(ye){var pe=ce[ye];if(pe["x-uid"]===re["x-uid"]){ie=ce[ye];return}else Ie.properties[ye]=T()(T()({},pe),{},{properties:{}}),De(pe==null?void 0:pe.properties,Ie.properties[ye])})};return Pe(me.properties,oe),[oe,ie]},ee=function(_e){return _e},X=function(){function Ee(_e){M()(this,Ee),f()(this,"current",void 0),f()(this,"options",void 0),f()(this,"appVersion",void 0),f()(this,"events",{}),this.options=_e,this.current=_e.current,this.appVersion=_e.appVersion}return O()(Ee,[{key:"model",get:function(){return this.options.model}},{key:"query",get:function(){return this.options.query}},{key:"loadAPIClientEvents",value:function(){var re=this,me=this.options,oe=me.api,ie=me.t,Pe=ie===void 0?ee:ie;if(oe){var De=function(Ie){if(!Ie)return[];var ye=Object.values(Ie.properties).length,pe=[];return Ie.mapProperties(function(ge){ge["x-component-props"]=ge["x-component-props"]||{},ge["x-component-props"].width=100/ye,ge["x-uid"]&&pe.push({"x-uid":ge["x-uid"],"x-component-props":ge["x-component-props"]})}),Ie["x-uid"]&&pe.length?pe:[]};this.on("insertAdjacent",function(){var ce=S()(N()().mark(function Ie(ye){var pe,ge,fe,Oe,Te,Fe,Ae,$e,Ne,nt;return N()().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(ge=ye.onSuccess,fe=ye.current,Oe=ye.position,Te=ye.schema,Fe=ye.wrap,Ae=ye.wrapped,$e=ye.removed,Ne=[],(Ae==null?void 0:Ae["x-component"])==="Grid.Col"&&(Ne=Ne.concat(De(Ae.parent))),($e==null?void 0:$e["x-component"])==="Grid.Col"&&(Ne=Ne.concat(De($e.parent))),re.refresh(),fe["x-uid"]){je.next=7;break}return je.abrupt("return");case 7:return je.next=9,oe.request({url:"/uiSchemas:insertAdjacent/".concat(fe["x-uid"],"?position=").concat(Oe),method:"post",data:{schema:K(Te,re.appVersion),wrap:Fe}});case 9:if(nt=je.sent,!Ne.length){je.next=13;break}return je.next=13,oe.request({url:"/uiSchemas:batchPatch",method:"post",data:Ne});case 13:if(!($e!=null&&$e["x-uid"])){je.next=16;break}return je.next=16,oe.request({url:"/uiSchemas:remove/".concat($e["x-uid"]),method:"post"});case 16:ge==null||ge(nt==null||(pe=nt.data)===null||pe===void 0?void 0:pe.data),H.ZP.success(Pe("Saved successfully"),.2);case 18:case"end":return je.stop()}},Ie)}));return function(Ie){return ce.apply(this,arguments)}}()),this.on("patch",function(){var ce=S()(N()().mark(function Ie(ye){var pe;return N()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(pe=ye.schema,re.refresh(),pe!=null&&pe["x-uid"]){fe.next=4;break}return fe.abrupt("return");case 4:return fe.next=6,oe.request({url:"/uiSchemas:patch",method:"post",data:T()({},pe)});case 6:H.ZP.success(Pe("Saved successfully"),.2);case 7:case"end":return fe.stop()}},Ie)}));return function(Ie){return ce.apply(this,arguments)}}()),this.on("initializeActionContext",function(){var ce=S()(N()().mark(function Ie(ye){var pe;return N()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(pe=ye.schema,pe!=null&&pe["x-uid"]){fe.next=3;break}return fe.abrupt("return");case 3:return fe.next=5,oe.request({url:"/uiSchemas:initializeActionContext",method:"post",data:T()({},pe)});case 5:case"end":return fe.stop()}},Ie)}));return function(Ie){return ce.apply(this,arguments)}}()),this.on("batchPatch",function(){var ce=S()(N()().mark(function Ie(ye){var pe;return N()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return pe=ye.schemas,re.refresh(),fe.next=4,oe.request({url:"/uiSchemas:batchPatch",method:"post",data:pe});case 4:H.ZP.success(Pe("Saved successfully"),.2);case 5:case"end":return fe.stop()}},Ie)}));return function(Ie){return ce.apply(this,arguments)}}()),this.on("remove",function(){var ce=S()(N()().mark(function Ie(ye){var pe,ge;return N()().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(pe=ye.removed,ge=[],(pe==null?void 0:pe["x-component"])==="Grid.Col"&&(ge=De(pe.parent)),re.refresh(),pe!=null&&pe["x-uid"]){Oe.next=6;break}return Oe.abrupt("return");case 6:return Oe.next=8,oe.request({url:"/uiSchemas:remove/".concat(pe["x-uid"]),method:"post"});case 8:if(!ge.length){Oe.next=11;break}return Oe.next=11,oe.request({url:"/uiSchemas:batchPatch",method:"post",data:ge});case 11:H.ZP.success(Pe("Saved successfully"),.2);case 12:case"end":return Oe.stop()}},Ie)}));return function(Ie){return ce.apply(this,arguments)}}())}}},{key:"prepareProperty",value:function(re){re.type||(re.type="void"),re.name||(re.name=(0,i.uid)()),this.current["x-uid"]&&v(re)}},{key:"on",value:function(re,me){this.events[re]||(this.events[re]=[]),this.events[re].push(me)}},{key:"emit",value:function(){var _e=S()(N()().mark(function me(oe){var ie=this,Pe,De,ce,Ie,ye,pe=arguments;return N()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(this.events[oe]){fe.next=2;break}return fe.abrupt("return");case 2:for(Pe=pe.length,De=new Array(Pe>1?Pe-1:0),ce=1;ce<Pe;ce++)De[ce-1]=pe[ce];return Ie=De[0],ye=De.slice(1),fe.abrupt("return",Promise.all(this.events[oe].map(function(Oe){return Oe.bind(ie).apply(void 0,[T()({current:ie.current},Ie)].concat(x()(ye)))})));case 5:case"end":return fe.stop()}},me,this)}));function re(me){return _e.apply(this,arguments)}return re}()},{key:"parentsIn",value:function(re){if(!re||!g.Schema.isSchemaInstance(re))return!1;for(var me=this.current;(oe=me)!==null&&oe!==void 0&&oe.parent;){var oe;if(me.parent===re)return!0;me=me.parent}return!1}},{key:"refresh",value:function(re){var me=this.options.refresh;return me==null?void 0:me(re)}},{key:"deepMerge",value:function(re){var me=this,oe={title:"title",description:"description",default:"initialValue",readOnly:"readOnly",writeOnly:"editable",enum:"dataSource","x-pattern":"pattern","x-display":"display","x-validator":"validator","x-decorator":"decorator","x-component":"component","x-reactions":"reactions","x-content":"content","x-visible":"visible","x-hidden":"hidden","x-disabled":"disabled","x-editable":"editable","x-read-only":"readOnly"},ie={"x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(re).forEach(function(Pe){oe[Pe]?(me.current[Pe]=re[Pe],me.updateModel(oe[Pe],re[Pe])):ie[Pe]?Object.keys(re[Pe]).forEach(function(De){b()(me.current,[Pe,De],re[Pe][De]),me.updateModel([ie[Pe],De],re[Pe][De])}):me.current[Pe]=re[Pe]}),this.emit("patch",{schema:re})}},{key:"getSchemaAttribute",value:function(re,me){return V()(this.current,re,me)}},{key:"shallowMerge",value:function(re){var me=this,oe={title:"title",description:"description",default:"initialValue",readOnly:"readOnly",writeOnly:"editable",enum:"dataSource","x-pattern":"pattern","x-display":"display","x-validator":"validator","x-decorator":"decorator","x-component":"component","x-reactions":"reactions","x-content":"content","x-visible":"visible","x-hidden":"hidden","x-disabled":"disabled","x-editable":"editable","x-read-only":"readOnly","x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(re).forEach(function(ie){me.current[ie]=re[ie],oe[ie]&&me.updateModel(oe[ie],re[ie])}),this.emit("patch",{schema:re})}},{key:"updateModel",value:function(re,me){var oe=function(Pe){b()(Pe,re,me)};this.model&&oe(this.model),this.query&&this.query.take(oe)}},{key:"insertAdjacent",value:function(re,me){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};switch(re){case"beforeBegin":return this.insertBeforeBegin(me,oe);case"afterBegin":return this.insertAfterBegin(me,oe);case"beforeEnd":return this.insertBeforeEnd(me,oe);case"afterEnd":return this.insertAfterEnd(me,oe)}}},{key:"recursiveRemoveIfNoChildren",value:function(re,me){if(re){for(var oe=re,ie,Pe=me==null?void 0:me.breakRemoveOn;oe;){if(typeof Pe=="function"){if(Pe(oe))break}else if(Y(oe,Pe))break;var De=Object.keys(oe.properties||{}).length;if(De>0)break;oe.parent&&(ie=oe.parent.removeProperty(oe.name)),oe=oe.parent}return ie}}},{key:"remove",value:function(re){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe=me.breakRemoveOn,ie=me.removeParentsIfNoChildren,Pe=re||this.current,De=Pe.parent.removeProperty(Pe.name);if(ie){var ce=this.recursiveRemoveIfNoChildren(Pe.parent,{breakRemoveOn:oe});ce&&(De=ce)}return this.emit("remove",{removed:De})}},{key:"removeWithoutEmit",value:function(re){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe=me.breakRemoveOn,ie=me.removeParentsIfNoChildren,Pe=re||this.current,De=Pe.parent.removeProperty(Pe.name);if(ie){var ce=this.recursiveRemoveIfNoChildren(Pe.parent,{breakRemoveOn:oe});ce&&(De=ce)}return De}},{key:"insertBeforeBeginOrAfterEnd",value:function(re){var me=this,oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(g.Schema.isSchemaInstance(this.current)&&g.Schema.isSchemaInstance(re)&&this.current.parent===re.parent){var ie=0,Pe=0;return this.current.parent.mapProperties(function(De,ce,Ie){me.current.name===ce&&(Pe=Ie),re.name===ce&&(ie=Ie)}),ie>Pe?this.insertBeforeBegin(re,oe):this.insertAfterEnd(re,oe)}}},{key:"insertBeforeBegin",value:function(re){var me=this,oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(g.Schema.isSchemaInstance(this.current)){var ie={onSuccess:oe.onSuccess},Pe=oe.wrap,De=Pe===void 0?G:Pe,ce=oe.breakRemoveOn,Ie=oe.removeParentsIfNoChildren;if(g.Schema.isSchemaInstance(re)){if(this.parentsIn(re)){this.emit("error",{code:"parent_is_not_allowed",schema:re});return}re.parent.removeProperty(re.name),Ie&&(ie.removed=this.recursiveRemoveIfNoChildren(re.parent,{breakRemoveOn:ce}))}else re&&(re=ne()(re));var ye={},pe=!1,ge=0,fe=0;this.current.parent.mapProperties(function(nt,He){He===me.current.name&&(fe=ge,pe=!0,++ge),nt["x-index"]=ge,++ge,pe&&(ye[He]=nt,me.current.parent.removeProperty(He))}),this.prepareProperty(re);var Oe=De(re),Te=this.current.parent.addProperty(Oe.name||(0,i.uid)(),Oe);Te["x-index"]=fe,Te.parent=this.current.parent,this.current.parent.setProperties(ye);var Fe=te(Te,re),Ae=P()(Fe,2),$e=Ae[0],Ne=Ae[1];this.emit("insertAdjacent",T()({position:"beforeBegin",schema:Ne,wrapped:Oe,wrap:$e},ie))}}},{key:"insertAfterBegin",value:function(re){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(g.Schema.isSchemaInstance(this.current)){var oe={onSuccess:me.onSuccess},ie=me.wrap,Pe=ie===void 0?G:ie,De=me.breakRemoveOn,ce=me.removeParentsIfNoChildren;if(g.Schema.isSchemaInstance(re)){if(this.parentsIn(re)){this.emit("error",{code:"parent_is_not_allowed",schema:re});return}re.parent.removeProperty(re.name),ce&&(oe.removed=this.recursiveRemoveIfNoChildren(re.parent,{breakRemoveOn:De}))}else re&&(re=ne()(re));var Ie={},ye=1;this.current.mapProperties(function(Ae,$e){Ae["x-index"]=ye,++ye,Ie[$e]=Ae}),this.current.properties={},this.prepareProperty(re);var pe=Pe(re),ge=this.current.addProperty(pe.name||(0,i.uid)(),pe);ge["x-index"]=0,ge.parent=this.current,this.current.setProperties(Ie);var fe=te(ge,re),Oe=P()(fe,2),Te=Oe[0],Fe=Oe[1];this.emit("insertAdjacent",T()({position:"afterBegin",schema:Fe,wrap:Te,wrapped:pe},oe))}}},{key:"insertBeforeEnd",value:function(re){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(g.Schema.isSchemaInstance(this.current)){delete re["x-index"];var oe={onSuccess:me.onSuccess},ie=me.wrap,Pe=ie===void 0?G:ie,De=me.breakRemoveOn,ce=me.removeParentsIfNoChildren;if(g.Schema.isSchemaInstance(re)){if(this.parentsIn(re)){this.emit("error",{code:"parent_is_not_allowed",schema:re});return}re.parent.removeProperty(re.name),ce&&(oe.removed=this.recursiveRemoveIfNoChildren(re.parent,{breakRemoveOn:De}))}else re&&(re=ne()(re));this.prepareProperty(re);var Ie=Pe(re),ye=this.current.addProperty(Ie.name||(0,i.uid)(),Ie);ye.parent=this.current;var pe=te(ye,re),ge=P()(pe,2),fe=ge[0],Oe=ge[1];return this.emit("insertAdjacent",T()({position:"beforeEnd",schema:Oe,wrap:fe,wrapped:Ie},oe))}}},{key:"insertAfterEnd",value:function(re){var me=this,oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(g.Schema.isSchemaInstance(this.current)){var ie={onSuccess:oe==null?void 0:oe.onSuccess},Pe=oe.wrap,De=Pe===void 0?G:Pe,ce=oe.breakRemoveOn,Ie=oe.removeParentsIfNoChildren,ye=0,pe=0,ge=!1,fe={};if(this.current.parent.mapProperties(function(nt,He){nt["x-index"]=ye,He===me.current.name&&(++ye,pe=ye,ge=!0),++ye,ge&&He!==me.current.name&&(fe[He]=nt,me.current.parent.removeProperty(He))}),g.Schema.isSchemaInstance(re)){if(this.parentsIn(re)){this.emit("error",{code:"parent_is_not_allowed",schema:re});return}re.parent.removeProperty(re.name),Ie&&(ie.removed=this.recursiveRemoveIfNoChildren(re.parent,{breakRemoveOn:ce})),re.parent=null}else re&&(re=ne()(re));this.prepareProperty(re);var Oe=De(re),Te=this.current.parent.addProperty(Oe.name||(0,i.uid)(),Oe);Te.parent=this.current.parent,Te["x-index"]=pe,this.current.parent.setProperties(fe);var Fe=te(Te,re),Ae=P()(Fe,2),$e=Ae[0],Ne=Ae[1];this.emit("insertAdjacent",T()({position:"afterEnd",schema:Ne,wrap:$e,wrapped:Oe},ie))}}}]),Ee}();function Ce(){var Ee=(0,R.useContext)(g.SchemaOptionsContext),_e=(0,R.useMemo)(function(){return(Ee==null?void 0:Ee.components)||{}},[Ee]),re=function(oe){if(!oe)return null;if(typeof oe!="string")return oe;var ie=V()(_e,oe);return ie||console.error('[nocobase]: Component "'.concat(oe,'" not found')),ie};return re}function Se(){var Ee=(0,R.useContext)(U.D),_e=Ee.designable,re=Ee.setDesignable,me=Ee.refresh,oe=Ee.reset,ie=(0,R.useContext)(g.SchemaOptionsContext),Pe=(0,R.useMemo)(function(){return(ie==null?void 0:ie.components)||{}},[ie]),De=(0,R.useMemo)(function(){return function(){return(0,w.jsx)(w.Fragment,{})}},[]),ce=(0,Z.Z)(),Ie=(0,c.gR)(),ye=(0,c.QJ)(),pe=(0,R.useCallback)(function(nt){me==null||me(),ce(),Ie==null||Ie(nt),ye==null||ye()},[me,ce,Ie,ye]),ge=(0,g.useField)(),fe=(0,g.useFieldSchema)(),Oe=(0,z.LY)(),Te=(0,y.$)(),Fe=Te.t,Ae=(0,R.useMemo)(function(){return D({t:Fe,api:Oe,refresh:pe,current:fe,model:ge,appVersion:E.i8})},[Fe,Oe,pe,fe,ge]);(0,R.useEffect)(function(){Ae.loadAPIClientEvents()},[Ae]);var $e=(0,j.wd)(),Ne=$e.isMobileLayout;return{dn:Ae,designable:Ne?!1:_e,reset:oe,refresh:pe,setDesignable:re,DesignableBar:De,findComponent:(0,R.useCallback)(function(nt){var He;if(!nt)return null;if(typeof nt!="string")return nt;var je=V()(Pe,nt);return(He=je==null?void 0:je[A.XI])!==null&&He!==void 0?He:je},[V()]),on:Ae.on.bind(Ae),patch:(0,R.useCallback)(function(nt,He){var je=function(Be){Object.keys(Be).forEach(function(Ke){var le=Be[Ke];Ke==="title"&&(ge.title=le,fe.title=le),Ke==="x-decorator-props"&&(ge.decoratorProps||(ge.decoratorProps={}),fe["x-decorator-props"]||(fe["x-decorator-props"]={}),Object.keys(le).forEach(function(xe){ge.decoratorProps[xe]=le[xe],fe["x-decorator-props"][xe]=le[xe]})),Ke==="x-component-props"&&(ge.componentProps||(ge.componentProps={}),fe["x-component-props"]||(fe["x-component-props"]={}),Object.keys(le).forEach(function(xe){ge.componentProps[xe]=le[xe],fe["x-component-props"][xe]=le[xe]}))})};if(typeof nt=="string"){var Je={};return b()(Je,nt,He),je(Je)}je(nt),pe()},[Ae]),shallowMerge:(0,R.useCallback)(function(nt){Ae.shallowMerge(nt)},[Ae]),deepMerge:(0,R.useCallback)(function(nt){Ae.deepMerge(nt)},[Ae]),remove:(0,R.useCallback)(function(nt,He){Ae.remove(nt,He)},[Ae]),insertAdjacent:(0,R.useCallback)(function(nt,He,je){Ae.insertAdjacent(nt,He,je)},[Ae]),insertBeforeBegin:(0,R.useCallback)(function(nt){Ae.insertBeforeBegin(nt)},[Ae]),insertAfterBegin:(0,R.useCallback)(function(nt){Ae.insertAfterBegin(nt)},[Ae]),insertBeforeEnd:(0,R.useCallback)(function(nt){Ae.insertBeforeEnd(nt)},[Ae]),insertAfterEnd:(0,R.useCallback)(function(nt){Ae.insertAfterEnd(nt)},[Ae])}}},98146:function(Ut,Re,e){"use strict";e.d(Re,{e:function(){return N}});var de=e(94350),P=e(84577),ve=e(67294),x=e(97970),h=function(){return null};h.isNullComponent=!0;var N=function(){var S=(0,P.ng)(),I=S.designable,M=(0,de.useFieldSchema)(),B=(0,ve.useMemo)(function(){return M["x-designer"]||M["x-toolbar"]?M["x-designer"]||M["x-toolbar"]:M["x-settings"]?x.Mf:h},[M]),O=(0,P.Co)(B);return I&&O||h}},9780:function(Ut,Re,e){"use strict";e.d(Re,{w:function(){return J}});var de=e(97857),P=e.n(de),ve=e(13769),x=e.n(ve),h=["useProps"],N=function(){return{}},J=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=I.useProps,B=M===void 0?N:M,O=x()(I,h),W=B;typeof B!="function"&&(W=N);var f=W();return P()(P()({},O),f)}},96726:function(Ut,Re,e){"use strict";e.d(Re,{aUM:function(){return ve.aU},olz:function(){return ve.ol},N0i:function(){return ve.N0},fWn:function(){return ve.fW},mlL:function(){return ve.ml},EIK:function(){return ve.EI},$Lt:function(){return ve.$L},$b8:function(){return ve.$b},s8w:function(){return $l.s8},Nm$:function(){return $l.Nm},HTy:function(){return Qo},lkv:function(){return Xo},rDu:function(){return $i},eYL:function(){return ve.eY},Rat:function(){return rs},oAt:function(){return wi},E7E:function(){return mi},$SD:function(){return Qc},fUi:function(){return gu.fU},QcG:function(){return Xc},MLy:function(){return ho.M},gOu:function(){return vp},jYG:function(){return js.jY},PuU:function(){return js.Pu},smG:function(){return js.sm},mx3:function(){return ve.mx},C1I:function(){return ve.C1},Ssf:function(){return Nm},vTp:function(){return _f},XZJ:function(){return ra},Tt2:function(){return Ff},zH8:function(){return Af.z},Q5L:function(){return gv},Pok:function(){return Pv},Vm0:function(){return Hm},xI_:function(){return Qs},Lip:function(){return Mf},vLv:function(){return H.DateFilterDynamicComponent},WN4:function(){return _c.W},Mtg:function(){return au.Mt},iNu:function(){return au.iN},zzt:function(){return wt.zz},_bl:function(){return Q._b},POi:function(){return Gm},AOY:function(){return ce},izJ:function(){return Zm},LBT:function(){return H.DndContext},IWB:function(){return H.DragHandler},LCt:function(){return H.DraggableContext},FyH:function(){return ie.Fy},Nir:function(){return ie.Ni},q8U:function(){return ie.q8},HGA:function(){return ie.HG},QTe:function(){return ie.QT},JEX:function(){return ie.JE},fAH:function(){return jc},ORZ:function(){return kf},xKb:function(){return od},P8E:function(){return kd},$w$:function(){return ie.$w},nBj:function(){return ie.nB},Oct:function(){return ie.Oc},zdw:function(){return ie.zd},CXR:function(){return Kv},BQs:function(){return Nu.BQ},Hj5:function(){return fi.H},M0b:function(){return ld},Dnz:function(){return _c.D},DQE:function(){return Ti},pgx:function(){return Ov},wn$:function(){return no.wn},GzZ:function(){return no.Gz},tJZ:function(){return no.tJ},fox:function(){return no.fo},VTd:function(){return no.VT},XsZ:function(){return no.Xs},l09:function(){return re},D_t:function(){return ud.D},_80:function(){return hd},WiK:function(){return Vr},xJW:function(){return ie.xJ},RVL:function(){return Q.RV},Bc8:function(){return sn},hG9:function(){return Ec},DCh:function(){return qs},rjZ:function(){return fc.rj},Cqo:function(){return Nd},jg7:function(){return fc.jg},gsn:function(){return Nu.gs},z1L:function(){return Ba.z},$18:function(){return Kd.$},IIB:function(){return Nu.II},RnZ:function(){return Qf},mX2:function(){return Nu.mX},zDC:function(){return Ul.zD},Phs:function(){return Nu.Ph},hiD:function(){return a0},aVo:function(){return vd},UGj:function(){return Wd.U},yq5:function(){return Wd.y},v2r:function(){return Il},HIW:function(){return Tc},T3C:function(){return Fu},d97:function(){return vo.d9},hGv:function(){return $u},tlE:function(){return fd},irr:function(){return nl},rop:function(){return Vs.r},gGi:function(){return zs},DBW:function(){return Fo.D},MBS:function(){return Ip.M},pGO:function(){return tm},Y8K:function(){return Nr},iVT:function(){return Nu.iV},ODP:function(){return Ul.OD},lbb:function(){return Ul.lb},b7w:function(){return Ul.b7},sUk:function(){return Ul.sU},x1j:function(){return ve.x1},m1v:function(){return Q.m1},glM:function(){return rn},xZD:function(){return ve.xZ},IuH:function(){return no.Iu},MkN:function(){return ve.Mk},Hof:function(){return rm},n6:function(){return Q.n6},DDd:function(){return i0.D},ATq:function(){return Q.AT},G0E:function(){return Q.G0},a$w:function(){return Q.a$},TzZ:function(){return Q.Tz},y00:function(){return ve.y0},PhF:function(){return Mn},Cqv:function(){return H.ShowFormData},cof:function(){return ve.co},bts:function(){return H.Sortable},Fop:function(){return H.SortableContext},TRI:function(){return H.SortableItem},ORg:function(){return H.SortableProvider},TaI:function(){return Rp},qHe:function(){return Ba.q},iA_:function(){return Ou},gvM:function(){return Zv},SnY:function(){return Bc},ASv:function(){return Vp},bwk:function(){return Ds},mQc:function(){return pd},c__:function(){return zl.c},QZ3:function(){return qn},L39:function(){return js.L3},feF:function(){return qp},jII:function(){return wc},mPs:function(){return gc},tgM:function(){return Qp},gqx:function(){return gu.gq},Qm7:function(){return gu.Qm},_wD:function(){return Hs._w},rjl:function(){return Hs.rj},mfA:function(){return Yv.m},SLL:function(){return ve.SL},sBv:function(){return ve.sB},iTm:function(){return ie.iT},BDK:function(){return gu.BD},Pls:function(){return wt.Pl},Oxq:function(){return qo},WLi:function(){return pr},$9M:function(){return ie.$9},nCn:function(){return yn},iNG:function(){return tr},tD8:function(){return cn},pg9:function(){return to},Ofb:function(){return ie.Of},ibf:function(){return so},WyG:function(){return oe},l6$:function(){return P.l6},WGR:function(){return Ot},tl0:function(){return au.tl},C$H:function(){return Ul.C$},SET:function(){return au.SE},cNQ:function(){return Ul.cN},NCb:function(){return ir.NC},I9l:function(){return H.getRenderContent},XQ2:function(){return ir.XQ},Fxc:function(){return wu},KKi:function(){return ve.KK},MDU:function(){return au.MD},CEH:function(){return au.CE},vUN:function(){return ve.vU},ZZb:function(){return ie.ZZ},tqC:function(){return au.tq},elO:function(){return Ul.el},CfU:function(){return Wu},VPR:function(){return ve.VP},LPx:function(){return au.LP},fY6:function(){return au.fY},Vm:function(){return kc},tP3:function(){return gu.tP},w_o:function(){return au.w_},SJF:function(){return El},_Ko:function(){return gs},Mev:function(){return Wo},i2K:function(){return sa},WmO:function(){return no.Wm},YDI:function(){return au.YD},oBi:function(){return wt.oB},hKP:function(){return ir.hK},DU1:function(){return ve.DU},XCj:function(){return ve.XC},EM:function(){return ve.EM},kRO:function(){return $l.kR},KyD:function(){return _i.Ky},Vpg:function(){return bl},lIL:function(){return wt.lI},KxP:function(){return ho.K},hi9:function(){return wt.hi},p27:function(){return ve.p2},z9d:function(){return Gv.z9},x_5:function(){return Qu.x},eJW:function(){return wt.eJ},Cor:function(){return wt.Co},Zmk:function(){return vo.Zm},aZq:function(){return wt.aZ},P1D:function(){return au.P1},ngQ:function(){return wt.ng},ett:function(){return wt.et},ySm:function(){return fi.y},Zd$:function(){return ie.Zd},cLh:function(){return wt.cL},baz:function(){return ie.b},fde:function(){return wt.fd},Xdt:function(){return Ul.Xd},Cld:function(){return wt.Cl},vH8:function(){return wt.vH},PLH:function(){return no.PL},V8t:function(){return no.V8},tMk:function(){return no.tM},xQm:function(){return no.xQ},sRe:function(){return wt.sR},U1u:function(){return Vn},HS$:function(){return ve.HS},vBu:function(){return ve.vB},QYZ:function(){return ve.QY},t9d:function(){return ve.t9},Kgy:function(){return no.Kg},aJ2:function(){return no.aJ},n14:function(){return fc.n1},DiB:function(){return fc.Di},l1O:function(){return ie.l1},w5o:function(){return ie.w5},p3Q:function(){return ie.p3},G5e:function(){return ie.G5},xj2:function(){return ie.xj},rxY:function(){return ie.rx},Ils:function(){return Ul.Il},zCB:function(){return ve.zC},yrJ:function(){return Xf},CMh:function(){return ql},v$P:function(){return Ki.v},FMn:function(){return hl},T0O:function(){return fu},a4r:function(){return Fo.a},wNf:function(){return wt.wN},Dmu:function(){return wt.Dm},Bsl:function(){return Q.Bs},yKv:function(){return Xt.y},pkQ:function(){return Au.p},fMB:function(){return wt.fM},gCg:function(){return zl.g},eT6:function(){return ie.eT},$SN:function(){return gu.$S},q4O:function(){return ie.q4},ymE:function(){return Hs.ym},uqQ:function(){return ve.uq},Q3P:function(){return ir.Q3},K5K:function(){return ve.K5}});var de={};e.r(de),e.d(de,{Action:function(){return ve.aU},ActionBar:function(){return ve.ol},ActionBarProvider:function(){return ve.N0},ActionContext:function(){return ve.fW},ActionContextNoRerender:function(){return ve.ml},ActionContextProvider:function(){return ve.EI},ActionDesigner:function(){return ve.$L},AfterSuccess:function(){return ve.$b},AllDataBlocksContext:function(){return $l.s8},AllDataBlocksProvider:function(){return $l.Nm},AntdSchemaComponentPlugin:function(){return Qo},AntdSchemaComponentProvider:function(){return Xo},AppendsTreeSelect:function(){return $i},AssignedFieldValues:function(){return ve.eY},AssociationField:function(){return rs},AssociationFieldMode:function(){return wi},AssociationFieldModeProvider:function(){return mi},AssociationSelect:function(){return Qc},AttachmentList:function(){return gu.fU},AutoComplete:function(){return Xc},BackButtonUsedInSubPage:function(){return ho.M},Block:function(){return vp},BlockItem:function(){return js.jY},BlockItemCard:function(){return js.Pu},BlockItemCardContext:function(){return js.sm},BlocksSelector:function(){return ve.mx},ButtonEditor:function(){return ve.C1},CardItem:function(){return Nm},Cascader:function(){return _f},Checkbox:function(){return ra},CollectionSelect:function(){return Ff},ColorPicker:function(){return Af.z},ColorSelect:function(){return gv},Cron:function(){return Pv},CronSet:function(){return Hm},DataSourceCollectionCascader:function(){return Qs},DataSourceSelect:function(){return Mf},DateFormatCom:function(){return _c.W},DatePicker:function(){return au.Mt},DatePickerProvider:function(){return au.iN},Details:function(){return Gm},DetailsDesigner:function(){return ce},Divider:function(){return Zm},EditComponent:function(){return ie.Fy},EditDefaultValue:function(){return ie.Ni},EditDescription:function(){return ie.q8},EditOperator:function(){return ie.HG},EditPattern:function(){return ie.QT},EditRequired:function(){return ie.JE},EditSortField:function(){return jc},EditTable:function(){return kf},EditTableAction:function(){return od},EditTableActionContext:function(){return kd},EditTitle:function(){return ie.$w},EditTitleField:function(){return ie.nB},EditTooltip:function(){return ie.Oc},EditValidationRules:function(){return ie.zd},Editable:function(){return Kv},EllipsisWithTooltip:function(){return Nu.BQ},ErrorFallback:function(){return fi.H},Expand:function(){return ld},ExpiresRadio:function(){return _c.D},FieldsTreeSelect:function(){return Ti},Fieldset:function(){return Ov},Filter:function(){return no.wn},FilterAction:function(){return no.Gz},FilterActionContext:function(){return no.tJ},FilterContext:function(){return no.fo},FilterDynamicComponent:function(){return no.VT},FilterLogicContext:function(){return no.Xs},Form:function(){return re},FormDialog:function(){return ud.D},FormDrawer:function(){return hd},FormField:function(){return Vr},FormItem:function(){return ie.xJ},FormV2:function(){return sn},G2Plot:function(){return Ec},G2PlotRenderer:function(){return qs},Grid:function(){return fc.rj},GridCard:function(){return Nd},GridRowContext:function(){return fc.jg},HTMLEncode:function(){return Nu.gs},ICON_POPUP_Z_INDEX:function(){return Ba.z},IconPicker:function(){return Kd.$},Input:function(){return Nu.II},InputNumber:function(){return Qf},InputReadPretty:function(){return Nu.mX},InputRecordPicker:function(){return Ul.zD},Json:function(){return Nu.Ph},LinkageFilter:function(){return a0},List:function(){return vd},Markdown:function(){return Wd.U},MarkdownReadPretty:function(){return Wd.y},Menu:function(){return Il},NanoIDInput:function(){return Tc},Page:function(){return Fu},PagePopups:function(){return vo.d9},PageTabs:function(){return $u},Pagination:function(){return fd},ParentRouteContext:function(){return nl},Password:function(){return Vs.r},Percent:function(){return zs},PopupSettingsProvider:function(){return Fo.D},Preview:function(){return Ip.M},QuickEdit:function(){return tm},Radio:function(){return Nr},ReadPretty:function(){return Nu.iV},ReadPrettyRecordPicker:function(){return Ul.OD},RecordPicker:function(){return Ul.lb},RecordPickerContext:function(){return Ul.b7},RecordPickerProvider:function(){return Ul.sU},RefreshDataBlockRequest:function(){return ve.x1},RemoteSelect:function(){return rn},RemoveButton:function(){return ve.xZ},RemoveConditionContext:function(){return no.Iu},RequestSettings:function(){return ve.Mk},RichText:function(){return rm},SecondConFirm:function(){return ve.y0},Select:function(){return Mn},SkipValidation:function(){return ve.co},Space:function(){return Rp},StablePopover:function(){return Ba.q},Table:function(){return Ou},TableBlockDesigner:function(){return Zv},TableField:function(){return Bc},TableSelectorDesigner:function(){return Vp},TableV2:function(){return Ds},Tabs:function(){return pd},TabsContextProvider:function(){return zl.c},Templates:function(){return qn},TestDesigner:function(){return js.L3},TextAreaWithGlobalScope:function(){return qp},TimePicker:function(){return wc},TreeSelect:function(){return gc},UnixTimestamp:function(){return Qp},Upload:function(){return gu.gq},Uploader:function(){return gu.Qm},Variable:function(){return Hs._w},VariableScopeProvider:function(){return Hs.rj},VariableSelect:function(){return Yv.m},actionSettings:function(){return ve.SL},actionSettingsItems:function(){return ve.sB},allowAddNew:function(){return ie.iT},attachmentFileTypes:function(){return gu.BD},defaultFieldNames:function(){return qo},fetchTemplateData:function(){return pr},filterFormItemSettings:function(){return ie.$9},findByUid:function(){return yn},findKeysByUid:function(){return tr},findMenuItem:function(){return cn},formDetailsSettings:function(){return to},formItemSettings:function(){return ie.Of},formSettings:function(){return so},formV1Settings:function(){return oe},genStyleHook:function(){return P.l6},getCurrentOptions:function(){return Ot},getDateExact:function(){return au.tl},getDatePickerLabels:function(){return Ul.C$},getDateRanges:function(){return au.SE},getLabelFormatValue:function(){return Ul.cN},getPopupPathFromParams:function(){return ir.NC},getStoredPopupContext:function(){return ir.XQ},getTabSchema:function(){return wu},getZIndex:function(){return ve.KK},handleDateChangeOnForm:function(){return au.MD},inferPickerType:function(){return au.CE},isBulkEditAction:function(){return ve.vU},isFileCollection:function(){return ie.ZZ},isMobile:function(){return au.tq},isShowFilePicker:function(){return Ul.el},isTabPage:function(){return Wu},isWriteEmailAction:function(){return ve.VP},mapDatePicker:function(){return au.LP},mapRangePicker:function(){return au.fY},mapTimeFormat:function(){return kc},matchMimetype:function(){return gu.tP},moment2str:function(){return au.w_},navigateToTab:function(){return El},pageSettings:function(){return gs},pageTabSettings:function(){return Wo},readPrettyFormSettings:function(){return sa},removeNullCondition:function(){return no.Wm},resolveFilterPickerFormat:function(){return au.YD},storePopupContext:function(){return ir.hK},useActionBarContext:function(){return ve.DU},useActionContext:function(){return ve.XC},useAfterSuccessOptions:function(){return ve.EM},useAllDataBlocks:function(){return $l.kR},useAssociationFieldContext:function(){return _i.Ky},useAssociationFieldModeContext:function(){return bl},useBackButton:function(){return ho.K},useCloseAction:function(){return ve.p2},useColumnSchema:function(){return Gv.z9},useColumnSettings:function(){return Qu.x},useCurrentPopupContext:function(){return vo.Zm},useDatePickerContext:function(){return au.P1},useDownloadLogs:function(){return fi.y},useEnsureOperatorsValid:function(){return ie.Zd},useFieldMode:function(){return ie.b},useFieldNames:function(){return Ul.Xd},useFilterActionProps:function(){return no.PL},useFilterFieldOptions:function(){return no.V8},useFilterFieldProps:function(){return no.tM},useFilterOptions:function(){return no.xQ},useFormDataTemplates:function(){return Vn},useGetAriaLabelOfAction:function(){return ve.HS},useGetAriaLabelOfDrawer:function(){return ve.vB},useGetAriaLabelOfModal:function(){return ve.QY},useGetAriaLabelOfPopover:function(){return ve.t9},useGetFilterFieldOptions:function(){return no.Kg},useGetFilterOptions:function(){return no.aJ},useGridContext:function(){return fc.n1},useGridRowContext:function(){return fc.Di},useIsAddNewForm:function(){return ie.l1},useIsAssociationField:function(){return ie.w5},useIsFieldReadPretty:function(){return ie.p3},useIsFileField:function(){return ie.G5},useIsFormReadPretty:function(){return ie.xj},useIsSelectFieldMode:function(){return ie.rx},useLabelUiSchema:function(){return Ul.Il},useLinkageAction:function(){return ve.zC},useListBlockContext:function(){return Xf},useMenuDragEnd:function(){return ql},useMenuTranslation:function(){return Ki.v},useNocoBaseRoutes:function(){return hl},useParentRoute:function(){return fu},usePopupSettings:function(){return Fo.a},useStyles:function(){return Xt.y},useTableColumnIntegration:function(){return Au.p},useTabsContext:function(){return zl.g},useTitleFieldOptions:function(){return ie.eT},useUploadStyles:function(){return gu.$S},useValidateSchema:function(){return ie.q4},useVariableScope:function(){return Hs.ym},useZIndexContext:function(){return ve.uq},withSearchParams:function(){return ir.Q3},zIndexContext:function(){return ve.K5}});var P=e(46917),ve=e(76157),x=e(15009),h=e.n(x),N=e(99289),J=e.n(N),S=e(12444),I=e.n(S),M=e(72004),B=e.n(M),O=e(31996),W=e.n(O),f=e(26037),k=e.n(f),T=e(97857),g=e.n(T),i=e(67294),Z=e(31601),H=e(99687),Q=e(70993),ne=e(89127),ue=function(he){return J()(h()().mark(function ze(){var rt,ot;return h()().wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return ut.prev=0,ut.next=3,this.api.request(he);case 3:return ot=ut.sent,ut.abrupt("return",ot==null||(rt=ot.data)===null||rt===void 0?void 0:rt.data);case 7:return ut.prev=7,ut.t0=ut.catch(0),ut.abrupt("return",[]);case 10:case"end":return ut.stop()}},ze,this,[[0,7]])}))},V=e(13769),p=e.n(V),b=e(5552),R=e(86201),y=e(94350),z=e(31282),c=e(74330),A=e(12174),U=e(6145),K=e(57105),E=e(97970),j=e(64016),w=e(15195),D=e(23911),v=e(85893),G=["form","children"],Y=["form","children","disabled"],te=["request","effects","initialValue","useValues"],ee=function(he){var ze=he.form,rt=he.children,ot=p()(he,G),pt=(0,y.useField)(),ut=(0,y.useFieldSchema)(),Lt=(0,wt.lI)(ze.createVoidField(g()(g()({},pt.props),{},{basePath:""})));return(0,v.jsx)(y.FieldContext.Provider,{value:void 0,children:(0,v.jsx)(y.FormContext.Provider,{value:ze,children:(0,v.jsx)(b.FormLayout,g()(g()({layout:"vertical"},ot),{},{children:(0,v.jsx)(K.sq,{basePath:Lt.address,schema:ut,onlyRenderProperties:!0})}))})})},X=function(he){return he.children},Ce=function(he){var ze=he.form,rt=he.children,ot=he.disabled,pt=p()(he,Y),ut=(0,y.useField)(),Lt=(0,y.useFieldSchema)(),qt=(0,wt.lI)(ze.createVoidField(g()(g()({},ut.props),{},{basePath:""}))),nn=(0,wt.Co)(Lt["x-component"],X);return(0,i.useEffect)(function(){ze.disabled=ot||ut.disabled},[ot,ut.disabled]),(0,v.jsx)(z.ZP,{componentDisabled:ot,children:(0,v.jsx)(y.FieldContext.Provider,{value:void 0,children:(0,v.jsx)(y.FormContext.Provider,{value:ze,children:(0,v.jsx)(b.FormLayout,g()(g()({layout:"vertical"},pt),{},{children:(0,v.jsx)(y.FieldContext.Provider,{value:qt,children:(0,v.jsx)(nn,g()(g()({},ut.componentProps),{},{children:(0,v.jsx)(K.sq,{basePath:qt.address,schema:Lt,onlyRenderProperties:!0})}))})}))})})})},Se=function(he){var ze=he.request,rt=he.initialValue;return ze||function(){return Promise.resolve({data:rt})}},Ee=function(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,A.QT)(Se(ze),he)},_e=(0,i.createContext)(null);_e.displayName="FormBlockContext";var re=(0,y.observer)(function(Le){var he=Le.request,ze=Le.effects,rt=Le.initialValue,ot=Le.useValues,pt=ot===void 0?Ee:ot,ut=p()(Le,te),Lt=(0,y.useFieldSchema)(),qt=(0,y.useField)(),nn=(0,i.useMemo)(function(){return(0,R.createForm)({effects:ze})},[]),ln=pt({uid:Lt["x-uid"],onSuccess:function(dn){return J()(h()().mark(function Yn(){return h()().wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:return Xn.next=2,nn.reset();case 2:nn.setValues(dn==null?void 0:dn.data),nn.setInitialValues(dn==null?void 0:dn.data);case 4:case"end":return Xn.stop()}},Yn)}))()}},Le),Dn=(0,i.useContext)(_e);return(0,v.jsx)(_e.Provider,{value:{parent:Dn,form:nn,result:ln,field:qt,fieldSchema:Lt},children:(0,v.jsx)(c.Z,{spinning:(ln==null?void 0:ln.loading)||!1,children:Lt["x-decorator"]==="Form"?(0,v.jsx)(Ce,g()({form:nn},ut)):(0,v.jsx)(ee,g()({form:nn},ut))})})},{displayName:"Form"});re.Designer=function(){var he=(0,U.useCollection_deprecated)(),ze=he.name,rt=he.title,ot=(0,w.zy)(),pt=(0,D.rE)(),ut=pt.componentNamePrefix;return(0,v.jsxs)(E.aN,{template:ot,title:rt||ze,children:[(0,v.jsx)(j.G,{componentName:"".concat(ut,"Form"),collectionName:ze}),(0,v.jsx)(E.Z5,{}),(0,v.jsx)(E.qx,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}})]})};var me=e(5537),oe=new me.F5({name:"FormV1Settings",items:[{name:"template",Component:j.G,useComponentProps:function(){var he=(0,U.useCollection_deprecated)(),ze=he.name,rt=(0,D.rE)(),ot=rt.componentNamePrefix;return{componentName:"".concat(ot,"Form"),collectionName:ze}}},{name:"divider",type:"divider"},{name:"remove",type:"remove",componentProps:{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}}]}),ie=e(54801),Pe=function(){var he=(0,U.useCollection_deprecated)(),ze=he.name,rt=he.title,ot=(0,w.zy)();return(0,v.jsx)(E.aN,{schemaSettings:"FormSettings",template:ot,title:rt||ze})},De=function(){var he=(0,U.useCollection_deprecated)(),ze=he.name,rt=he.title,ot=(0,w.zy)();return(0,v.jsx)(E.aN,{schemaSettings:"ReadPrettyFormSettings",template:ot,title:rt||ze})},ce=function(){var he=(0,U.useCollection_deprecated)(),ze=he.name,rt=he.title,ot=(0,w.zy)();return(0,v.jsx)(E.aN,{schemaSettings:"FormDetailsSettings",template:ot,title:rt||ze})},Ie=function(){var he=(0,U.useCollection_deprecated)(),ze=he.name,rt=he.title,ot=(0,w.zy)();return(0,v.jsx)(E.aN,{schemaSettings:"blockSettings:filterForm",template:ot,title:rt||ze})},ye=e(7340),pe=e(15503),ge=e(83335),fe=e(68230),Oe=e(68400),Te=e.n(Oe),Fe=e(97133),Ae=e(84327),$e=e(9361),Ne=e(96486),nt=e.n(Ne),He=e(2483),je=e(415),Je=e(31019),ke=e(94804),Be=e(39742),Ke=e(7686),le=e(22229),xe=e(43321),Ge=e(3078),Ve=e(9780),lt=e(3192),ct=e(18686),Et=e(5574),Qe=e.n(Et),gt=e(10110),_t=e(42075),en=e(34041),hn=e(26793),gn=e(53285),bn=e(32268),Rt=e(9783),Ze=e.n(Rt),Ft=e(52677),Ct=e.n(Ft),bt=e(3407),St=e(66309),zt=e(96074),An=e(27484),xn=e.n(An),un=e(44990),Sn=e(8341),jn=e(87714),wt=e(84577),Nt=e(16646),yr=e(73475),vn=e(32983),hr=e(83062),Tr=e(85518),Kr=e(67668),Or=e(58812),Er=e(96695),Ir=e.n(Er),Br=e(19632),xo=e.n(Br),qo={label:"label",value:"value",color:"color",options:"children"};function uo(Le,he){var ze=[];if(!Array.isArray(Le))return ze;for(var rt=0;rt<Le.length;rt++){var ot=Le[rt][he.options];Array.isArray(ot)&&ze.push.apply(ze,xo()(uo(ot,he))),ze.push(g()({},Le[rt]))}return ze}function kn(Le,he,ze){if(!Le)return[];var rt=[],ot=Ir()(ze),pt;try{var ut=function(){var qt=pt.value,nn=Le.find(function(ln){return ln[he.value]==qt})||{value:qt,label:qt&&qt.toString()};rt.push(nn)};for(ot.s();!(pt=ot.n()).done;)ut()}catch(Lt){ot.e(Lt)}finally{ot.f()}return rt}function Ot(Le,he,ze){var rt=uo(he,ze),ot=(0,Ne.castArray)(Le).map(function(pt){return(0,gt.isPlainObject)(pt)?pt[ze.value]:pt});return kn(rt,ze,ot)}var Zt=e(25145),Mt=e(61933),at=(0,y.observer)(function(Le){var he=(0,i.useState)(!0),ze=Qe()(he,2),rt=ze[0],ot=ze[1],pt=(0,i.useState)([]),ut=Qe()(pt,2),Lt=ut[0],qt=ut[1],nn=(0,y.useField)(),ln=(0,Kr.Hy)();return(0,i.useEffect)(function(){var Dn,Qn=g()(g()({},qo),Le.fieldNames),dn=nn.dataSource||Le.options||(ln==null?void 0:ln.uiSchema.enum)||[],Yn=Ot(nn.value,dn,Qn);if(!(!(0,Ae.isValid)(Le.value)&&!Yn.length)&&!((0,R.isArrayField)(nn)&&(nn==null||(Dn=nn.value)===null||Dn===void 0?void 0:Dn.length)===0)){var Gn=nn.value!==null&&Yn.map(function(Xn,cr){return(0,v.jsx)(St.Z,{color:Xn[Qn.color],icon:typeof Xn.icon=="string"?(0,v.jsx)(Mt.JO,{type:Xn.icon}):Xn.icon,children:Xn[Qn.label]},cr)});qt(Gn),ot(!1)}},[ln==null?void 0:ln.uiSchema.enum,nn,nn.dataSource,nn.value,Le.fieldNames,Le.options,Le.value]),rt?null:(0,v.jsx)(Or.B,{ellipsis:Le.ellipsis,children:Lt})},{displayName:"SelectReadPretty"}),At=(0,Zt.u)(at),vt,$t=["value","options","onChange","fieldNames","mode","loading","rawOptions","defaultValue"],Kt=["objectValue","loading","value","rawOptions","defaultValue"],Yt=function(he){return!(0,Ae.isValid)(he)||Ct()(he)==="object"&&Object.keys(he).length===0},Gt=function(he){var ze=he.value,rt=he.options,ot=he.onChange,pt=he.fieldNames,ut=he.mode,Lt=he.loading,qt=he.rawOptions,nn=he.defaultValue,ln=p()(he,$t),Dn=Tr.nI?"":Wn,Qn=Tr.nI?void 0:"topLeft",dn=function(Gn){var Xn;if(!Yt(Gn)){var cr=(0,Ae.toArr)(Gn).filter(function(Xr){return Xr}).map(function(Xr){return(0,gt.isPlainObject)(Xr)?Xr[pt.value]:Xr}),xr=(Xn=Ot(cr,rt,pt))===null||Xn===void 0?void 0:Xn.map(function(Xr){return{label:Xr[pt.label],value:Xr[pt.value]}});return["tags","multiple"].includes(ut)||he.multiple?xr:xr.shift()}};return(0,v.jsx)(en.default,g()({rootClassName:Dn,placement:Qn,role:"button","data-testid":"select-object-".concat(ut||"single"),value:dn(ze),defaultValue:dn(nn),allowClear:{clearIcon:(0,v.jsx)(Nt.Z,{role:"button","aria-label":"icon-close-select"})},labelInValue:!0,notFoundContent:Lt?(0,v.jsx)(c.Z,{}):(0,v.jsx)(vn.Z,{image:vn.Z.PRESENTED_IMAGE_SIMPLE}),options:rt,fieldNames:pt,showSearch:!0,popupMatchSelectWidth:!1,filterOption:function(Gn,Xn){var cr;return((cr=Xn==null?void 0:Xn[pt.label||"label"])!==null&&cr!==void 0?cr:"").includes(Gn)},filterSort:function(Gn,Xn){var cr,xr;return((cr=Gn==null?void 0:Gn[pt.label||"label"])!==null&&cr!==void 0?cr:"").toLowerCase().localeCompare(((xr=Xn==null?void 0:Xn[pt.label||"label"])!==null&&xr!==void 0?xr:"").toLowerCase())},onChange:function(Gn){var Xn=Ot((0,Ae.toArr)(Gn).map(function(cr){return cr.value}),qt||rt,pt);["tags","multiple"].includes(ut)||he.multiple?ot==null||ot(Xn):ot==null||ot(Xn.shift()||null)},mode:ut,tagRender:function(Gn){return(0,v.jsx)(St.Z,g()(g()({role:"button","aria-label":Gn.label,closeIcon:(0,v.jsx)(yr.Z,{role:"button","aria-label":"icon-close-tag"})},Gn),{},{children:Gn.label}))},maxTagCount:"responsive",maxTagPlaceholder:function(Gn){return(0,v.jsxs)(hr.Z,{title:(0,v.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:6,maxWidth:"100%"},children:Gn.map(function(Xn){return(0,v.jsx)(St.Z,{style:{margin:0,background:"#fafafa",border:"1px solid #d9d9d9",whiteSpace:"normal",wordBreak:"break-word",maxWidth:"100%"},children:Xn.label},Xn.value)})}),overlayInnerStyle:{background:"#fff",color:"#000",padding:8,maxWidth:"100%"},color:"#fff",overlayStyle:{pointerEvents:"auto",maxWidth:300},children:["+",Gn.length,"..."]})}},ln))},In=function(he,ze){var rt;return((rt=ze==null?void 0:ze.label)!==null&&rt!==void 0?rt:"").toLowerCase().includes((he||"").toLowerCase())},Wn=(0,Fe.css)(vt||(vt=Te()([`
1461
+ `])),v.colorFillSecondary);return(0,h.jsxs)("div",{style:{maxHeight:300,overflowY:"auto"},children:[_e.map(function(oe){return(0,h.jsx)("div",{role:"option",onClick:function(){return Ce(oe.value)},className:me,children:E(oe.label)},oe.value)}),(0,h.jsx)(g.Z,{style:{margin:"4px 0"}}),re.map(function(oe){return(0,h.jsx)("div",{role:"option",className:me,onClick:function(){return Ce(oe.value)},title:E(oe.label),children:E(oe.label)},oe.value)})]})};return(0,h.jsxs)(i.Z.Compact,{style:W()(W()({},A.style),{},{width:"100%"}),children:[(0,h.jsx)(Z.default,W()(W()({options:X,open:te,onDropdownVisibleChange:ee},A),{},{allowClear:!1,style:{width:"100%",minWidth:100,maxWidth:["past","next","exact",void 0].includes(U==null?void 0:U.type)?100:null},value:(U==null?void 0:U.type)||"exact",onChange:Ce,dropdownRender:Se})),["past","next"].includes(U==null?void 0:U.type)&&[(0,h.jsx)(H.Z,{value:U==null?void 0:U.number,onChange:function(_e){var re=W()(W()({},U),{},{number:_e});K(re)}},"number"),(0,h.jsx)(Z.default,{value:U==null?void 0:U.unit,style:{minWidth:130,maxWidth:140},onChange:function(_e){var re=W()(W()({},U),{},{unit:_e});K(re)},options:[{value:"day",label:w("Day")},{value:"week",label:w("Calendar week")},{value:"month",label:w("Calendar Month")},{value:"year",label:w("Calendar Year")}],popupMatchSelectWidth:!0},"unit")],((U==null?void 0:U.type)==="exact"||!(U!=null&&U.type))&&(0,h.jsx)(y,W()({},A))]})}},20493:function(Ut,Re,e){"use strict";e.d(Re,{IW:function(){return R},LC:function(){return i},bt:function(){return ne},Fo:function(){return Z},TR:function(){return b},OR:function(){return H}});var de=e(97857),P=e.n(de),ve=e(13769),x=e.n(ve),h=e(10274),N=e(60887),J=e(97133),S=e(94350),I=e(96486),M=e.n(I),B=e(67294),O=e(46917),W=e(84577),f=e(85893),k=["component","overStyle","style","children","openMode"],T=["schema","id","eid","removeParentsIfNoChildren"],g=["component"],i=(0,B.createContext)(null);i.displayName="DraggableContext";var Z=(0,B.createContext)(null);Z.displayName="SortableContext";var H=function(z){var c=z.id,A=z.data,U=z.children,K=(0,N.useDraggable)({id:c,data:A}),E=(0,N.useDroppable)({id:c,data:A}),j=(0,B.useMemo)(function(){return{draggable:K,droppable:E}},[K,E]);return(0,f.jsx)(Z.Provider,{value:j,children:U})},Q=function(z){return new h.C(z).setAlpha(.15).toHex8String()},ne=function(z){var c,A,U=z.component,K=z.overStyle,E=z.style,j=z.children,w=z.openMode,D=x()(z,k),v=(0,O.dQ)(),G=v.token,Y=(0,B.useContext)(Z),te=Y.draggable,ee=Y.droppable,X=ee.isOver,Ce=ee.setNodeRef,Se=P()({},E),Ee=(0,S.useFieldSchema)(),_e=(Ee==null?void 0:Ee["x-component"])==="Action.Link"||U==="a";return X&&(te==null||(c=te.active)===null||c===void 0?void 0:c.id)!==(ee==null||(A=ee.over)===null||A===void 0?void 0:A.id)&&(Se[_e?"color":"background"]=Q(G.colorSettings),Object.assign(Se,K)),B.createElement(U||"div",P()(P()({role:"none"},D),{},{className:(0,J.cx)("nb-sortable-designer",z.className),ref:Ce,style:Se}),j)},ue=function(z){var c=V(z),A=(0,S.useFieldSchema)();return z.schema?P()(P()({},z),{},{id:c}):P()(P()({},z),{},{id:c,schema:A})},V=function(z){var c,A=(0,S.useField)();return z.id?z.id:(c=A.address)===null||c===void 0?void 0:c.toString()},p=(0,S.observer)(function(y){var z=ue(y),c=z.schema,A=z.id,U=z.eid,K=z.removeParentsIfNoChildren,E=x()(z,T),j=(0,B.useMemo)(function(){var w,D;return{insertAdjacent:"afterEnd",schema:((w=c.parent)===null||w===void 0||(w=w.parent)===null||w===void 0?void 0:w["x-component"])==="BlockTemplate"?(D=c.parent)===null||D===void 0?void 0:D.parent:c,removeParentsIfNoChildren:K??!0}},[c,K]);return(0,f.jsx)(H,{id:A,data:j,children:(0,f.jsx)(ne,P()(P()({id:U},E),{},{children:y.children}))})},{displayName:"InternalSortableItem"}),b=B.memo(function(y){var z=y.component,c=x()(y,g),A=(0,W.ng)(),U=A.designable;return U?(0,f.jsx)(p,P()({},y)):B.createElement(z||"div",M().omit(c,["children","schema","overStyle","openMode","id","eid","removeParentsIfNoChildren"]),y.children)});b.displayName="SortableItem";var R=function(z){var c=(0,B.useContext)(Z)||{},A=c.draggable;if(!A)return null;var U=A.attributes,K=A.listeners,E=A.setNodeRef;return(0,f.jsx)("div",{style:{display:"inline-block",width:14,height:14,lineHeight:"14px",textAlign:"left"},children:(0,f.jsx)("div",P()(P()(P()({ref:E,style:{position:"relative",zIndex:1,lineHeight:0,fontSize:0,display:"inline-block"}},K),U),{},{role:"none",children:(0,f.jsx)("span",{style:{cursor:"move",fontSize:14},children:z.children})}))})}},7840:function(Ut,Re,e){"use strict";e.d(Re,{I9:function(){return K},Rq:function(){return ue},e7:function(){return Q},jC:function(){return b},od:function(){return ne}});var de=e(97857),P=e.n(de),ve=e(9783),x=e.n(ve),h=e(15009),N=e.n(h),J=e(5574),S=e.n(J),I=e(99289),M=e.n(I),B=e(52677),O=e.n(B),W=e(10110),f=e(96486),k=e.n(f),T=e(10097),g=e(63179),i=e(76690),Z=e(65565),H=e(61341),Q=function(w,D){var v,G=/{{(.*?)}}/,Y=w==null||(v=w.match)===null||v===void 0?void 0:v.call(w,G);if(Y){var te=k().get(D,Y[1]);return k().isFunction(te)?te():te}else return w};function ne(j){if(O()(j)!=="object"||j===null)return null;for(var w in j)if(Object.prototype.hasOwnProperty.call(j,w))return Object.prototype.toString.call(j[w])==="[object Object]"&&j[w]!==null?ne(j[w]):{key:w,value:j[w]};return null}var ue=function(w){var D=V(w),v=(0,f.findIndex)(D,function(Y,te,ee){if(Y.includes("$")&&te>0)return!0}),G=D.slice(0,v);return G};function V(j){var w=[];function D(v){Object.keys(v).sort().forEach(function(G){w.push(G),v[G]&&O()(v[G])==="object"&&D(v[G])})}return D(j),w}var p=function(){var j=M()(N()().mark(function w(D,v,G){var Y,te,ee,X;return N()().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Y=(0,i.cG)(D)?[v.parseVariable(D,G).then(function(Ee){var _e=Ee.value;return _e})]:[D],Se.prev=1,Se.next=4,Promise.all(Y);case 4:return te=Se.sent,ee=S()(te,1),X=ee[0],Se.abrupt("return",X);case 10:throw Se.prev=10,Se.t0=Se.catch(1),console.error("Error in parseVariableValue:",Se.t0),Se.t0;case 14:case"end":return Se.stop()}},w,null,[[1,10]])}));return function(D,v,G){return j.apply(this,arguments)}}(),b=function(){var j=M()(N()().mark(function w(D,v){var G,Y,te,ee,X,Ce,Se,Ee;return N()().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return G=D.ruleGroup,Y=D.variables,te=D.localVariables,ee=D.variableNameOfLeftCondition,X=D.conditionType,Ce=Object.keys(G)[0]||"$and",Se=G[Ce]||[],re.next=5,Promise.all(Se.filter(Boolean).map(function(me){return R(me,Y,te,ee,X,v)}));case 5:if(Ee=re.sent,Ce!=="$and"){re.next=10;break}return re.abrupt("return",(0,f.every)(Ee,function(me){return me}));case 10:if(!Ee.length){re.next=12;break}return re.abrupt("return",(0,f.some)(Ee,function(me){return me}));case 12:return re.abrupt("return",!0);case 13:case"end":return re.stop()}},w)}));return function(D,v){return j.apply(this,arguments)}}(),R=function(){var j=M()(N()().mark(function w(D,v,G,Y,te,ee){return N()().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(!("$and"in D||"$or"in D)){Ce.next=4;break}return Ce.next=3,b({ruleGroup:D,variables:v,localVariables:G,conditionType:te},ee);case 3:return Ce.abrupt("return",Ce.sent);case 4:return Ce.abrupt("return",te==="advanced"?y(D,v,G,ee):z(D,v,G,Y,ee));case 5:case"end":return Ce.stop()}},w)}));return function(D,v,G,Y,te,ee){return j.apply(this,arguments)}}(),y=function(){var j=M()(N()().mark(function w(D,v,G,Y){var te,ee,X;return N()().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return te=D.op,Se.next=3,p(D.rightVar,v,G);case 3:return ee=Se.sent,Se.next=6,p(D.leftVar,v,G);case 6:if(X=Se.sent,!te){Se.next=9;break}return Se.abrupt("return",Y.apply(x()({},te,[X,ee])));case 9:return Se.abrupt("return",!0);case 10:case"end":return Se.stop()}},w)}));return function(D,v,G,Y){return j.apply(this,arguments)}}(),z=function(){var j=M()(N()().mark(function w(D,v,G,Y,te){var ee,X,Ce,Se,Ee,_e,re,me,oe,ie,Pe,De,ce,Ie;return N()().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(ee=ne(D),X=ee==null?void 0:ee.key,X){pe.next=4;break}return pe.abrupt("return",!0);case 4:return Ce=c(ue(D),Y),Se=v.parseVariable(Ce,G,{doNotRequest:!0}).then(function(ge){var fe=ge.value;return fe}),Ee=(0,i.cG)(ee==null?void 0:ee.value)?[v.parseVariable(ee==null?void 0:ee.value,G).then(function(ge){var fe=ge.value;return fe}),Se]:[ee==null?void 0:ee.value,Se],pe.prev=7,pe.next=10,Promise.all(Ee);case 10:return _e=pe.sent,re=S()(_e,2),me=re[0],oe=re[1],pe.next=16,v.getCollectionField(Ce,G);case 16:return ie=pe.sent,Pe=(0,Z.J)(oe,{targetCollectionField:ie}),De=(0,Z.J)(me,{targetCollectionField:ie}),ie!=null&&ie.type&&["datetime","date","datetimeNoTz","dateOnly","unixTimestamp"].includes(ie.type)&&Pe&&(ce=(0,H.CE)(De),Ie=(0,W.getPickerFormat)(ce),Pe=(0,W.dayjs)(Pe).format(Ie)),pe.abrupt("return",te.apply(x()({},X,[Pe,De])));case 23:throw pe.prev=23,pe.t0=pe.catch(7),pe.t0;case 26:case"end":return pe.stop()}},w,null,[[7,23]])}));return function(D,v,G,Y,te){return j.apply(this,arguments)}}();function c(j){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$nForm";return"{{ ".concat(w,".").concat(j.join(".")," }}")}var A=function(w){var D={};return w.map(function(v){D[v.name]=v.ctx}),D};function U(j){return j.replace(/{{\s*}}/g,'{{"{{}}"}}')}function K(j,w,D,v,G,Y){return E.apply(this,arguments)}function E(){return E=M()(N()().mark(function j(w,D,v,G,Y,te){var ee,X,Ce,Se,Ee,_e,re,me,oe,ie;return N()().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(!(D&&w==="handlebars")){De.next=23;break}return W.Handlebars.registerHelper("t",function(ce){if(typeof ce=="string")return te(ce,{ns:g.g})}),De.prev=2,Ce=U(D),Se=W.Handlebars.compile(Ce),Ee=A(G),_e=(v==null||(ee=v.ctxRef)===null||ee===void 0?void 0:ee.current)||{},re=_e.$nDate,me={},Object.keys(re||{}).map(function(ce){me[ce]=re[ce]()}),oe=Se(P()(P()(P()({},v==null||(X=v.ctxRef)===null||X===void 0?void 0:X.current),Ee),{},{$nDate:me})),console.log(oe),De.next=13,Y(oe);case 13:return De.abrupt("return",De.sent);case 16:return De.prev=16,De.t0=De.catch(2),/VariablesProvider: .* is not found/.test(De.t0.message)||console.log(De.t0),console.log(D),De.abrupt("return",D);case 21:De.next=36;break;case 23:return De.prev=23,De.next=26,(0,T.replaceVariableValue)(D,v,G);case 26:return ie=De.sent,De.next=29,Y(ie);case 29:return De.abrupt("return",De.sent);case 32:return De.prev=32,De.t1=De.catch(23),/VariablesProvider: .* is not found/.test(De.t1.message)||console.log(De.t1),De.abrupt("return",D);case 36:case"end":return De.stop()}},j,null,[[2,16],[23,32]])})),E.apply(this,arguments)}},25145:function(Ut,Re,e){"use strict";e.d(Re,{u:function(){return ne}});var de=e(5574),P=e.n(de),ve=e(97857),x=e.n(ve),h=e(13769),N=e.n(h),J=e(94350),S=e(96486),I=e(67294),M=e(96726),B=e(75585),O=e(22891),W={type:"void","x-component":"Action.Container","x-action":"view",title:'{{ t("View record") }}',"x-component-props":{className:"nb-action-popup"},properties:{tabs:{type:"void","x-component":"Tabs","x-component-props":{},"x-initializer":"popup:addTab",properties:{tab1:{type:"void",title:'{{t("Details")}}',"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"popup:common:addBlock",properties:{}}}}}}}},f=e(94804),k=e(57105),T=e(68304),g=e(85893),i=["WrappedComponent"],Z=function(){var V=(0,J.useFieldSchema)(),p=(0,M.ngQ)(),b=p.insertAfterBegin,R=(0,I.useCallback)(function(y){var z=V.reduceProperties(function(c,A){return A["x-component"]==="Action.Container"?A:c},null);z||b((0,S.cloneDeep)(y))},[V,b]);return R},H=function(V){return V["x-component"]==="Action.Container"},Q=function(V){var p=V.WrappedComponent,b=N()(V,i),R=(0,J.useFieldSchema)(),y=(0,O.ES)(),z=y.openPopup,c=(0,I.useRef)(!1),A=Z(),U=(0,I.useRef)(R);U.current=R;var K=(0,I.useRef)(A);K.current=A;var E=(0,I.useRef)(z);E.current=z;var j=(0,I.useCallback)(function(){return U.current},[]),w=(0,I.useCallback)(function(){U.current.properties||(K.current(W),c.current=!0),c.current?(setTimeout(function(){E.current({customActionSchema:j()})}),c.current=!1):U.current.properties&&E.current()},[j]),D=(0,I.useMemo)(function(){return(0,S.debounce)(w,600,{leading:!0,trailing:!1})},[w]);return(0,I.useEffect)(function(){return function(){D.cancel()}},[D]),(0,g.jsx)("a",{onClick:D,children:(0,g.jsx)(p,x()({},b))})};function ne(ue){return function(V){var p=(0,I.useState)(!1),b=P()(p,2),R=b[0],y=b[1],z=(0,I.useState)(!1),c=P()(z,2),A=c[0],U=c[1],K=(0,f.Kx)(),E=(0,M.XCj)(),j=(0,J.useField)(),w=(0,J.useFieldSchema)(),D=(w==null?void 0:w["x-component-props"])||{},v=D.enableLink,G=D.openMode,Y=D.openSize,te=(0,O.ES)(),ee=te.visibleWithURL,X=te.setVisibleWithURL,Ce=(0,I.useCallback)(function(_e){y==null||y(_e),X==null||X(_e)},[X]),Se=(0,I.useRef)(w);Se.current=w;var Ee=E.setSubmitted;return v?(0,g.jsx)(B.OA,{visible:!1,children:(0,g.jsxs)(M.EIK,{button:(0,g.jsx)(ue,x()({},V)),visible:R||ee,setVisible:Ce,formValueChanged:A,setFormValueChanged:U,openMode:G,openSize:Y,containerRefKey:"field-popup",fieldSchema:w,setSubmitted:Ee,children:[(0,g.jsx)(f.YQ,{name:K.name,children:(0,g.jsx)(M.G0E,{children:(0,g.jsx)(T.Rm,{children:(0,g.jsx)(k.sq,{onlyRenderProperties:!0,basePath:j==null?void 0:j.address,schema:w,filterProperties:H})})})}),(0,g.jsx)(Q,x()(x()({},V),{},{WrappedComponent:ue}))]})}):(0,g.jsx)(ue,x()({},V))}}},61736:function(Ut,Re,e){"use strict";e.d(Re,{D:function(){return P}});var de=e(67294),P=(0,de.createContext)({});P.displayName="SchemaComponentContext.Provider"},44245:function(Ut,Re,e){"use strict";e.d(Re,{R:function(){return f}});var de=e(97857),P=e.n(de),ve=e(13769),x=e.n(ve),h=e(86201),N=e(94350),J=e(67294),S=e(47844),I=e(85893),M=["children","form"],B=["children"],O=function(T){var g=T.children,i=T.form,Z=x()(T,M),H=(0,J.useContext)(N.SchemaOptionsContext),Q=(0,J.useContext)(N.SchemaExpressionScopeContext),ne=P()(P()({},H==null?void 0:H.scope),Q),ue=P()({},H==null?void 0:H.components);return(0,I.jsx)(N.FormProvider,P()(P()({},Z),{},{form:i,children:(0,I.jsx)(S.G,{components:ue,scope:ne,children:g})}))},W=function(T){var g=T.children,i=x()(T,B),Z=(0,J.useContext)(N.SchemaOptionsContext),H=(0,J.useContext)(N.SchemaExpressionScopeContext),Q=P()(P()({},Z==null?void 0:Z.scope),H),ne=P()({},Z==null?void 0:Z.components),ue=(0,J.useMemo)(function(){return(0,h.createForm)()},[]);return(0,I.jsx)(N.FormProvider,P()(P()({},i),{},{form:ue,children:(0,I.jsx)(S.G,{components:ne,scope:Q,children:g})}))},f=function(T){return T.form?(0,I.jsx)(O,P()({},T)):(0,I.jsx)(W,P()({},T))}},93587:function(Ut,Re,e){"use strict";e.d(Re,{m:function(){return g}});var de=e(97857),P=e.n(de),ve=e(86201),x=e(94350),h=e(74330),N=e(67294),J=e(54195),S=e(21044),I=e(84577),M=e(44245),B=e(93323),O=e(12174),W=function(Z){var H=Z.uid,Q=Z.type,ne=Q===void 0?"getJsonSchema":Q,ue=Z.onSuccess,V={url:"/uiSchemas:".concat(ne,"/").concat(H)},p=(0,O.QT)(V,{refreshDeps:[H],onSuccess:function(z){ue&&ue(z)}}),b=p.data,R=p.loading;return{schema:b==null?void 0:b.data,loading:R}},f=e(85893),k=function(Z){return Z},T=function(Z){var H=Z.noForm,Q=Z.onlyRenderProperties,ne=Z.hidden,ue=Z.scope,V=Z.uid,p=Z.components,b=Z.onSuccess,R=Z.NotFoundPage,y=Z.schemaTransform,z=y===void 0?k:y,c=Z.onPageNotFind,A=Q?"getProperties":"getJsonSchema",U=(0,N.useMemo)(function(){return(0,ve.createForm)()},[V]),K=W({uid:V,type:A,onSuccess:function(te){b&&b(te)}}),E=K.schema,j=K.loading,w=(0,I.Co)(R),D=(0,J.Kk)(),v=(0,x.useFieldSchema)(),G=(0,N.useMemo)(function(){return z(E||{})},[E,z]);return D||j||ne?(0,f.jsx)(h.Z,{style:{width:"100%",marginTop:20},delay:S.fw}):!E||Object.keys(E).length===0?(c&&c(),w?(0,f.jsx)(w,{}):null):H?(0,f.jsx)(B.n,{components:p,scope:ue,schema:G,parentSchema:v}):(0,f.jsx)(M.R,{form:U,children:(0,f.jsx)(B.n,{components:p,scope:ue,schema:G,parentSchema:v})})},g=(0,N.memo)(function(i){return i.uid?(0,f.jsx)(T,P()({},i)):null});g.displayName="RemoteSchemaComponent"},93323:function(Ut,Re,e){"use strict";e.d(Re,{A:function(){return H},n:function(){return ue}});var de=e(97857),P=e.n(de),ve=e(13769),x=e.n(ve),h=e(9783),N=e.n(h),J=e(94350),S=e(96486),I=e.n(S),M=e(67294),B=e(57105),O=e(61736),W=e(47844),f=e(85893),k=["components","scope","schema","distributed","onChange","parentSchema"],T=["schema","parentSchema"],g=["memoized"];function i(V){return J.Schema.isSchemaInstance(V)?V:V!=null&&V.name?new J.Schema({type:"object",properties:N()({},V.name,V),name:"p_".concat(V.name)}):new J.Schema(V)}var Z=function(p){return(0,M.useMemo)(function(){return i(p)},[])},H=(0,M.createContext)({onChange:I().noop}),Q=(0,M.memo)(function(V){var p=V.components,b=V.scope,R=V.schema,y=V.distributed,z=V.onChange,c=V.parentSchema,A=x()(V,k),U=(0,M.useContext)(O.D),K=(0,M.useMemo)(function(){return i(R)},[R]),E=(0,M.useMemo)(function(){return P()(P()({},U),{},{distributed:U.distributed==!1?!1:y,refresh:U.refresh||I().noop})},[U,y]),j=(0,M.useContext)(H),w=j.onChange,D=(0,M.useMemo)(function(){return{onChange:function(){z==null||z(K),w==null||w()}}},[z,w,K]);return(0,f.jsx)(H.Provider,{value:D,children:(0,f.jsx)(O.D.Provider,{value:E,children:(0,f.jsx)(W.G,{inherit:!0,components:p,scope:b,children:(0,f.jsx)(B.sq,P()(P()({},A),{},{schema:K,isUseFormilyField:!0,parentSchema:c}))})})})});Q.displayName="RecursionSchemaComponent";var ne=(0,M.memo)(function(V){var p=V.schema,b=V.parentSchema,R=x()(V,T),y=Z(p);return(0,f.jsx)(Q,P()(P()({},R),{},{schema:y,parentSchema:b}))});ne.displayName="MemoizedSchemaComponent";var ue=(0,M.memo)(function(V){var p=V.memoized,b=x()(V,g);return p?(0,f.jsx)(ne,P()({},b)):(0,f.jsx)(Q,P()({},b))});ue.displayName="SchemaComponent"},47844:function(Ut,Re,e){"use strict";e.d(Re,{B:function(){return N},G:function(){return J}});var de=e(97857),P=e.n(de),ve=e(94350),x=e(67294),h=e(85893),N=function(){var I=(0,x.useContext)(ve.SchemaOptionsContext);return I||{}},J=(0,x.memo)(function(S){var I=S.children,M=N(),B=(0,x.useMemo)(function(){return P()(P()({},M.components),S.components)},[M.components,S.components]),O=(0,x.useMemo)(function(){return P()(P()({},M.scope),S.scope)},[M.scope,S.scope]),W=(0,x.useMemo)(function(){return{scope:O,components:B}},[O,B]);return(0,h.jsx)(ve.SchemaOptionsContext.Provider,{value:W,children:(0,h.jsx)(ve.SchemaComponentsContext.Provider,{value:B,children:(0,h.jsx)(ve.ExpressionScope,{value:O,children:I})})})});J.displayName="SchemaComponentOptions"},70993:function(Ut,Re,e){"use strict";e.d(Re,{_b:function(){return R},RV:function(){return y.R},m1:function(){return z.m},n6:function(){return c.n},AT:function(){return c.A},G0:function(){return A.G},a$:function(){return Ee},Tz:function(){return Ce},Bs:function(){return A.B}});var de=e(15009),P=e.n(de),ve=e(99289),x=e.n(ve),h=e(12444),N=e.n(h),J=e(72004),S=e.n(J),I=e(31996),M=e.n(I),B=e(26037),O=e.n(B),W=e(97857),f=e.n(W),k=e(18205),T=e(83062),g=e(83622),i=e(67294),Z=e(49218),H=e(26793),Q=e(96726),ne=e(68230),ue=e(50322),V=e(85893),p={backgroundColor:"var(--colorSettings) !important"},b={backgroundColor:"transparent"},R=function(me){var oe=(0,Q.ngQ)(),ie=oe.designable,Pe=oe.setDesignable,De=(0,H.$)(),ce=De.t,Ie=(0,ne.d)(),ye=Ie.token,pe=ie?p:b,ge=(0,ue.wd)(),fe=ge.isMobileLayout;return(0,Z.y1)("Ctrl+Shift+U",function(){return Pe(!ie)},[ie]),fe?null:(0,V.jsx)(T.Z,{title:ce("UI Editor"),children:(0,V.jsx)(g.ZP,{"data-testid":"ui-editor-button",icon:(0,V.jsx)(k.Z,{style:{color:ye.colorTextHeaderMenu}}),title:ce("UI Editor"),style:f()(f()({},pe),me.style),onClick:function(){Pe(!ie)}})})},y=e(44245),z=e(93587),c=e(93323),A=e(47844),U=e(5574),K=e.n(U),E=e(86201),j=e(94350),w=e(84327),D=e(96486),v=e.n(D),G=e(61736),Y=e(2483),te=function(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return"".concat(me).concat((0,w.uid)())};j.Schema.silent(!0);var ee={},X={silent:!0,compile:function(me){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=function(){if(X.silent)try{return new Function("$root","with($root) { return (".concat(me,"); }"))(oe)}catch{return"{{".concat(me,"}}")}else return new Function("$root","with($root) { return (".concat(me,"); }"))(oe)};return ee[me]?ee[me]:me.trim().startsWith("t(")?(ee[me]=ie(),ee[me]):ie()}};j.Schema.registerCompiler(X.compile);var Ce=function(me){var oe=me.designable,ie=me.onDesignableChange,Pe=me.components,De=me.children,ce=(0,i.useContext)(G.D),Ie=(0,A.B)(),ye=(0,i.useState)(function(){return(0,w.uid)()}),pe=K()(ye,2),ge=pe[0],fe=pe[1],Oe=(0,i.useMemo)(function(){return me.form||(0,E.createForm)()},[ge]),Te=(0,H.$)(),Fe=Te.t,Ae=(0,Y.qD)(),$e=(0,i.useMemo)(function(){return f()(f()({},me.scope),{},{t:Fe,randomString:te})},[me.scope,Fe,Ie==null?void 0:Ie.scope]),Ne=(0,i.useState)(oe),nt=K()(Ne,2),He=nt[0],je=nt[1],Je=(0,i.useMemo)(function(){return typeof oe=="boolean"?oe:He},[oe,He,ce.designable]),ke=(0,i.useMemo)(function(){return function(le){typeof Je!="boolean"&&je(le),ie==null||ie(le)}},[Je,ie]);(0,i.useEffect)(function(){var le,xe;Je?(le=Ae.flowEngine)===null||le===void 0||(le=le.flowSettings)===null||le===void 0||le.enable():(xe=Ae.flowEngine)===null||xe===void 0||(xe=xe.flowSettings)===null||xe===void 0||xe.disable()},[Ae,Je]);var Be=(0,i.useCallback)(function(){fe((0,w.uid)())},[]),Ke=(0,i.useMemo)(function(){return{scope:$e,components:Pe,reset:Be,refresh:v().noop,designable:Je,setDesignable:ke}},[Pe,Je,Be,$e,ke]);return(0,V.jsx)(G.D.Provider,{value:Ke,children:(0,V.jsx)(j.FormProvider,{form:Oe,children:(0,V.jsx)(A.G,{inherit:!0,scope:$e,components:Pe,children:De})})})};Ce.displayName="SchemaComponentProvider";var Se=e(31601),Ee=function(re){M()(oe,re);var me=O()(oe);function oe(){return N()(this,oe),me.apply(this,arguments)}return S()(oe,[{key:"load",value:function(){var ie=x()(P()().mark(function De(){return P()().wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:this.addComponents();case 1:case"end":return Ie.stop()}},De,this)}));function Pe(){return ie.apply(this,arguments)}return Pe}()},{key:"addComponents",value:function(){this.app.addComponents({DesignableSwitch:R})}}]),oe}(Se.S),_e=null},84577:function(Ut,Re,e){"use strict";e.d(Re,{zz:function(){return J.zz},Pl:function(){return J.Pl},oB:function(){return J.oB},lI:function(){return P},hi:function(){return Q.hi},eJ:function(){return ve.e},Co:function(){return N},aZ:function(){return Q.aZ},ng:function(){return J.ng},et:function(){return S.e},cL:function(){return T},fd:function(){return ne},Cl:function(){return B},vH:function(){return Z},sR:function(){return J.sR},wN:function(){return H.w},Dm:function(){return W},fM:function(){return Q.fM}});var de=e(67294),P=function(V){var p=(0,de.useRef)(null);return(0,de.useEffect)(function(){return p.current&&V!==p.current&&p.current.onUnmount(),p.current=V,V.onMount(),function(){V.onUnmount()}},[V]),V},ve=e(96365),x=e(94350),h=e(96486),N=function(V,p){var b=(0,de.useContext)(x.SchemaOptionsContext),R=b.components;return V?typeof V!="string"?V:(0,h.get)(R,V)||p:p},J=e(94516),S=e(98146),I=e(97857),M=e.n(I),B=function(V){var p=(0,de.useContext)(x.SchemaOptionsContext),b=(0,de.useContext)(x.SchemaExpressionScopeContext),R=(0,de.useRef)();return R.current=b,V.toFieldProps(M()(M()({},p),{},{get scope(){return M()(M()({},p.scope),R.current)}}))},O=e(61736);function W(){return(0,de.useContext)(O.D)}var f=e(26793),k=e(6145),T=function(){var V,p=(0,k.useCollectionManager_deprecated)(),b=p.getCollectionJoinField,R=p.getCollection,y=(0,x.useFieldSchema)(),z=(0,k.useCollection_deprecated)(),c=z.getField,A=c(y.name)||b(y["x-collection-field"]),U=(0,f.$)(),K=U.t,E=((V=y["x-component-props"])===null||V===void 0?void 0:V.fieldNames)||{},j=E.label,w=(0,de.useMemo)(function(){if(!(!A||!(A!=null&&A.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m"].includes(A.interface)){var D=R(A.target);if((D==null?void 0:D.template)==="file")return[{label:K("Record picker"),value:"CollectionField"},{label:K("Select"),value:"AssociationSelect"}];switch(A.interface){case"o2m":return[{label:K("Record picker"),value:"CollectionField"},{label:K("Subtable"),value:"TableField"},{label:K("Select"),value:"AssociationSelect"}];case"m2o":case"m2m":case"linkTo":return[{label:K("Record picker"),value:"CollectionField"},{label:K("Select"),value:"AssociationSelect"}];default:return[{label:K("Record picker"),value:"CollectionField"},{label:K("Subform"),value:"FormField"},{label:K("Select"),value:"AssociationSelect"}]}}},[K,A==null?void 0:A.interface,j]);return w},g=e(35746),i=e(58837),Z=function(){var V,p=(0,x.useField)(),b=(0,x.useFieldSchema)(),R=(0,i.Kx)(),y=(0,g.d9)(),z=(R==null?void 0:R.getField(b.name))||(y==null?void 0:y.getCollectionField(b["x-collection-field"])),c=(0,ve.e)();(0,de.useEffect)(function(){if(!(p!=null&&p.title)){var A;p.title=c(z==null||(A=z.uiSchema)===null||A===void 0?void 0:A.title)}},[z==null||(V=z.uiSchema)===null||V===void 0?void 0:V.title])},H=e(9780),Q=e(18686),ne=function(V){var p,b=(0,f.$)(),R=b.t,y=(0,k.useCollectionManager_deprecated)(),z=y.getCollectionJoinField,c=y.getCollection,A=(0,x.useFieldSchema)(),U=(V==null?void 0:V.fieldSchema)||A,K=(0,x.useField)(),E=(0,x.useForm)(),j=(U==null?void 0:U["x-read-pretty"])||K.readPretty||E.readPretty,w=V==null?void 0:V.fieldSchema,D=(0,k.useCollection_deprecated)(),v=D.getField,G=(V==null?void 0:V.collectionField)||v(U.name)||z(U["x-collection-field"]),Y=((p=U["x-component-props"])===null||p===void 0?void 0:p.fieldNames)||{},te=Y.label,ee=(0,de.useMemo)(function(){if(!(!G||!(G!=null&&G.interface))&&["hasOne","hasMany","belongsTo","belongsToMany","belongsToArray"].includes(G.type)){var X=c(G.target);if((X==null?void 0:X.template)==="file")return j?[{label:R("Title"),value:"Select"},{label:R("File manager"),value:"FileManager"},{label:R("Tag"),value:"Tag"}]:[{label:R("Select"),value:"Select"},{label:R("Record picker"),value:"Picker"},{label:R("File manager"),value:"FileManager"}];if((X==null?void 0:X.template)==="tree"&&["m2m","o2m","m2o"].includes(G.interface))return j?[{label:R("Title"),value:"Select"},{label:R("Tag"),value:"Tag"},!w&&{label:R("Sub-details"),value:"Nester"},!w&&{label:R("Sub-table"),value:"SubTable"}]:[{label:R("Select"),value:"Select"},{label:R("Record picker"),value:"Picker"},!w&&["m2m","o2m"].includes(G.interface)&&{label:R("Sub-table"),value:"SubTable"},!w&&{label:R("Cascader Select"),value:"CascadeSelect"},!w&&{label:R("Sub-form"),value:"Nester"},{label:R("Sub-form(Popover)"),value:"PopoverNester"}];switch(G.interface){case"o2m":return j?[{label:R("Title"),value:"Select"},{label:R("Tag"),value:"Tag"},!w&&{label:R("Sub-table"),value:"SubTable"},!w&&{label:R("Sub-details"),value:"Nester"}]:[{label:R("Select"),value:"Select"},{label:R("Record picker"),value:"Picker"},!w&&{label:R("Sub-form"),value:"Nester"},{label:R("Sub-form(Popover)"),value:"PopoverNester"},!w&&{label:R("Sub-table"),value:"SubTable"}];case"m2m":case"mbm":return j?[{label:R("Title"),value:"Select"},{label:R("Tag"),value:"Tag"},!w&&{label:R("Sub-details"),value:"Nester"},!w&&{label:R("Sub-table"),value:"SubTable"}]:[{label:R("Select"),value:"Select"},{label:R("Record picker"),value:"Picker"},!w&&{label:R("Sub-table"),value:"SubTable"},!w&&{label:R("Sub-form"),value:"Nester"},{label:R("Sub-form(Popover)"),value:"PopoverNester"}];case"m2o":case"linkTo":return j?[{label:R("Title"),value:"Select"},{label:R("Tag"),value:"Tag"},!w&&{label:R("Sub-details"),value:"Nester"}]:[{label:R("Select"),value:"Select"},{label:R("Record picker"),value:"Picker"},!w&&{label:R("Sub-form"),value:"Nester"},{label:R("Sub-form(Popover)"),value:"PopoverNester"}];default:return j?[{label:R("Title"),value:"Select"},{label:R("Tag"),value:"Tag"},!w&&{label:R("Sub-details"),value:"Nester"}]:[{label:R("Select"),value:"Select"},{label:R("Record picker"),value:"Picker"},!w&&{label:R("Sub-form"),value:"Nester"},{label:R("Sub-form(Popover)"),value:"PopoverNester"}]}}},[R,G==null?void 0:G.interface,te,j,w]);return(ee||[]).filter(Boolean)}},18686:function(Ut,Re,e){"use strict";e.d(Re,{aZ:function(){return ue},fM:function(){return p},hi:function(){return V}});var de=e(5574),P=e.n(de),ve=e(97857),x=e.n(ve),h=e(94350),N=e(83204),J=e(9361),S=e(96486),I=e.n(S),M=e(67294),B=e(89250),O=e(96726),W=e(21143),f=e(10097),k=e(1892),T=e(28561),g=function(y,z,c,A,U){return U.includes("/popups/")?2*A.paddingContentVertical+22+A.paddingPageVertical:y?A.paddingContentHorizontalLG:c?z?A.controlPaddingHorizontal+3*A.controlPaddingHorizontalSM+22+A.paddingContentHorizontalLG:A.paddingContentHorizontalLG+12:z?A.paddingSM+A.controlHeight+A.marginXS+2*A.controlPaddingHorizontalSM+22+A.paddingContentHorizontalLG:A.controlHeight+A.marginXS+(A.paddingContentVertical+2)*2+A.paddingContentHorizontalLG},i=function(y){var z=J.Z.useToken(),c=z.token,A=(0,O.ngQ)(),U=A.designable,K=(0,f.useBlockHeightProps)(),E=K.heightProps,j=(0,B.useLocation)(),w=y||E||{},D=w.disablePageHeader,v=w.enablePageTabs,G=w.hidePageTitle,Y=c.sizeXXL-2,te=U?c.controlHeight+2*c.paddingContentHorizontalLG:1*c.paddingContentHorizontalLG,ee=g(D,v,G,c,j.pathname);return Y+ee+te},Z=function(){var y=J.Z.useToken(),z=y.token,c=(0,O.ngQ)(),A=c.designable,U=z.paddingContentVerticalLG+z.margin+2*z.paddingContentVertical+24,K=A?z.controlHeight+2*z.paddingContentHorizontalLG:1*z.paddingContentHorizontalLG;return U+K},H=function(y){var z=(0,h.useFieldSchema)(),c=b(z),A=i(y),U=Z();return c?U:A},Q=["workflowManualTasks","approvals","approvalRecords"],ne=function(){var y,z=J.Z.useToken(),c=z.token,A=(0,f.useBlockHeightProps)(),U=A.heightProps,K=(0,k.Si)(),E=K.heightProps,j=(0,O.ngQ)(),w=j.designable,D=(0,h.useFieldSchema)(),v=E||U,G=U.titleHeight,Y=H(v),te=(0,W.useCollection)(),ee=te.name,X=v.heightMode,Ce=v.height,Se=v.title;if(!(!(v!=null&&v.heightMode)||X===T.j.DEFAULT)){var Ee=Object.keys(((y=D.parent.properties.actions)===null||y===void 0?void 0:y.properties)||{}).length>0,_e=c.controlHeight+c.padding+c.marginLG,re=Ee||w?c.controlHeight+2*c.marginLG:c.marginLG,me=(w&&!Q.includes(ee)?c.controlHeight:22)+2*c.padding+1,oe=Se?G:0;return X===T.j.FULL_HEIGHT?window.innerHeight-Y-oe-me-re-_e:Ce-oe-re-me-_e}},ue=function(y){var z=(0,f.useBlockHeightProps)(),c=z.heightProps,A=H(),U=c||{},K=U.heightMode,E=U.height,j=U.title,w=U.titleHeight,D=j?w:0;if(!(!(c!=null&&c.heightMode)||K===T.j.DEFAULT)){if(K===T.j.FULL_HEIGHT){var v=window.innerHeight-A;return y!=null&&y.removeBlockHeaderHeight&&(v=v-D),y!=null&&y.innerExtraHeight&&(v=v-y.innerExtraHeight),v}return E}},V=function(){var y=(0,h.useFieldSchema)(),z=(0,M.useMemo)(function(){return(0,f.getPageSchema)(y)},[]),c=(z==null?void 0:z["x-component-props"])||{},A=c.disablePageHeader,U=c.enablePageTabs,K=c.hidePageTitle,E=x()(x()({},y==null?void 0:y["x-component-props"]),{},{disablePageHeader:A,enablePageTabs:U,hidePageTitle:K}),j=H(E),w=E||{},D=w.heightMode,v=w.height;if(!(!(E!=null&&E.heightMode)||D===T.j.DEFAULT))return D===T.j.FULL_HEIGHT?window.innerHeight-j:v},p=function(){var y=(0,M.useState)(),z=P()(y,2),c=z[0],A=z[1],U=(0,M.useRef)(null),K=ne(),E=(0,M.useCallback)((0,S.debounce)(function(){var w;if(U.current){var D=U.current.getBoundingClientRect(),v=(w=U.current.querySelector(".ant-table"))===null||w===void 0?void 0:w.getBoundingClientRect();v&&A(D.width)}},100),[K]),j=(0,M.useCallback)(function(w){U.current=w&&w.children?w.children[0]:null,E()},[E]);return(0,N.Z)("resize",E),{height:K,width:c,tableSizeRefCallback:j}},b=function R(y){if(!y)return null;if(y["x-component"]==="Action.Container"){var z;return(y==null||(z=y.parent)===null||z===void 0||(z=z["x-component-props"])===null||z===void 0?void 0:z.openMode)!=="page"}return R(y.parent)}},96365:function(Ut,Re,e){"use strict";e.d(Re,{e:function(){return I}});var de=e(97857),P=e.n(de),ve=e(52677),x=e.n(ve),h=e(94350),N=e(67294),J={},S=function(B){var O=/{{.*?}}/g;return O.test(B)},I=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{noCache:!1},O=B.noCache,W=(0,N.useContext)(h.SchemaOptionsContext),f=(0,N.useContext)(h.SchemaExpressionScopeContext);return function(k,T){var g=!1,i;if(typeof k=="string"&&k.startsWith("{{")&&(g=!0,i=k),k&&x()(k)==="object"&&!(0,N.isValidElement)(k)){try{i=JSON.stringify(k)}catch(H){return console.warn("Failed to stringify:",H),k}if(J[i])return J[i];g=S(i)}if(Array.isArray(k)){try{i=JSON.stringify(k)}catch(H){return console.warn("Failed to stringify:",H),k}if(J[i])return J[i];g=S(i)}if(g){var Z=P()(P()(P()({},W==null?void 0:W.scope),f),T);if(!i)return h.Schema.compile(k,Z);try{return O?h.Schema.compile(k,Z):(J[i]=J[i]||h.Schema.compile(k,Z),J[i])}catch(H){return console.log("useCompile error",k,H),h.Schema.compile(k,Z)}}return k}}},94516:function(Ut,Re,e){"use strict";e.d(Re,{zz:function(){return X},Pl:function(){return D},oB:function(){return te},ng:function(){return Se},sR:function(){return Ce}});var de=e(5574),P=e.n(de),ve=e(19632),x=e.n(ve),h=e(15009),N=e.n(h),J=e(99289),S=e.n(J),I=e(12444),M=e.n(I),B=e(72004),O=e.n(B),W=e(9783),f=e.n(W),k=e(97857),T=e.n(k),g=e(94350),i=e(84327),Z=e(90105),H=e(45360),Q=e(50361),ne=e.n(Q),ue=e(27361),V=e.n(ue),p=e(36968),b=e.n(p),R=e(67294),y=e(26793),z=e(12174),c=e(57105),A=e(98902),U=e(61736);function K(Ee,_e){if(Ee)return Ee["x-app-version"]||(Ee["x-app-version"]=_e),Object.keys(Ee.properties||{}).forEach(function(re){var me;K((me=Ee.properties)===null||me===void 0?void 0:me[re],_e)}),Ee}var E={i8:"2.0.49"},j=e(50322),w=e(85893);function D(Ee){return new X(Ee)}var v=function Ee(_e){_e&&(_e["x-uid"]||(_e["x-uid"]=(0,i.uid)()),Object.keys(_e.properties||{}).forEach(function(re){Ee(_e.properties[re])}))},G=function(_e){return _e},Y=function(_e,re){if(!(!_e||!re)){for(var me in re)if(Object.prototype.hasOwnProperty.call(re,me)){var oe=re[me];if(oe!==(_e==null?void 0:_e[me]))return!1}return!0}},te=function(_e,re){if(_e["x-uid"]&&_e["x-uid"]===re["x-uid"])return[null,_e.toJSON()];var me=_e.toJSON(),oe=T()(T()({},me),{},{properties:{}}),ie=null,Pe=function De(ce,Ie){Object.keys(ce||{}).forEach(function(ye){var pe=ce[ye];if(pe["x-uid"]===re["x-uid"]){ie=ce[ye];return}else Ie.properties[ye]=T()(T()({},pe),{},{properties:{}}),De(pe==null?void 0:pe.properties,Ie.properties[ye])})};return Pe(me.properties,oe),[oe,ie]},ee=function(_e){return _e},X=function(){function Ee(_e){M()(this,Ee),f()(this,"current",void 0),f()(this,"options",void 0),f()(this,"appVersion",void 0),f()(this,"events",{}),this.options=_e,this.current=_e.current,this.appVersion=_e.appVersion}return O()(Ee,[{key:"model",get:function(){return this.options.model}},{key:"query",get:function(){return this.options.query}},{key:"loadAPIClientEvents",value:function(){var re=this,me=this.options,oe=me.api,ie=me.t,Pe=ie===void 0?ee:ie;if(oe){var De=function(Ie){if(!Ie)return[];var ye=Object.values(Ie.properties).length,pe=[];return Ie.mapProperties(function(ge){ge["x-component-props"]=ge["x-component-props"]||{},ge["x-component-props"].width=100/ye,ge["x-uid"]&&pe.push({"x-uid":ge["x-uid"],"x-component-props":ge["x-component-props"]})}),Ie["x-uid"]&&pe.length?pe:[]};this.on("insertAdjacent",function(){var ce=S()(N()().mark(function Ie(ye){var pe,ge,fe,Oe,Te,Fe,Ae,$e,Ne,nt;return N()().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(ge=ye.onSuccess,fe=ye.current,Oe=ye.position,Te=ye.schema,Fe=ye.wrap,Ae=ye.wrapped,$e=ye.removed,Ne=[],(Ae==null?void 0:Ae["x-component"])==="Grid.Col"&&(Ne=Ne.concat(De(Ae.parent))),($e==null?void 0:$e["x-component"])==="Grid.Col"&&(Ne=Ne.concat(De($e.parent))),re.refresh(),fe["x-uid"]){je.next=7;break}return je.abrupt("return");case 7:return je.next=9,oe.request({url:"/uiSchemas:insertAdjacent/".concat(fe["x-uid"],"?position=").concat(Oe),method:"post",data:{schema:K(Te,re.appVersion),wrap:Fe}});case 9:if(nt=je.sent,!Ne.length){je.next=13;break}return je.next=13,oe.request({url:"/uiSchemas:batchPatch",method:"post",data:Ne});case 13:if(!($e!=null&&$e["x-uid"])){je.next=16;break}return je.next=16,oe.request({url:"/uiSchemas:remove/".concat($e["x-uid"]),method:"post"});case 16:ge==null||ge(nt==null||(pe=nt.data)===null||pe===void 0?void 0:pe.data),H.ZP.success(Pe("Saved successfully"),.2);case 18:case"end":return je.stop()}},Ie)}));return function(Ie){return ce.apply(this,arguments)}}()),this.on("patch",function(){var ce=S()(N()().mark(function Ie(ye){var pe;return N()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(pe=ye.schema,re.refresh(),pe!=null&&pe["x-uid"]){fe.next=4;break}return fe.abrupt("return");case 4:return fe.next=6,oe.request({url:"/uiSchemas:patch",method:"post",data:T()({},pe)});case 6:H.ZP.success(Pe("Saved successfully"),.2);case 7:case"end":return fe.stop()}},Ie)}));return function(Ie){return ce.apply(this,arguments)}}()),this.on("initializeActionContext",function(){var ce=S()(N()().mark(function Ie(ye){var pe;return N()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(pe=ye.schema,pe!=null&&pe["x-uid"]){fe.next=3;break}return fe.abrupt("return");case 3:return fe.next=5,oe.request({url:"/uiSchemas:initializeActionContext",method:"post",data:T()({},pe)});case 5:case"end":return fe.stop()}},Ie)}));return function(Ie){return ce.apply(this,arguments)}}()),this.on("batchPatch",function(){var ce=S()(N()().mark(function Ie(ye){var pe;return N()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return pe=ye.schemas,re.refresh(),fe.next=4,oe.request({url:"/uiSchemas:batchPatch",method:"post",data:pe});case 4:H.ZP.success(Pe("Saved successfully"),.2);case 5:case"end":return fe.stop()}},Ie)}));return function(Ie){return ce.apply(this,arguments)}}()),this.on("remove",function(){var ce=S()(N()().mark(function Ie(ye){var pe,ge;return N()().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(pe=ye.removed,ge=[],(pe==null?void 0:pe["x-component"])==="Grid.Col"&&(ge=De(pe.parent)),re.refresh(),pe!=null&&pe["x-uid"]){Oe.next=6;break}return Oe.abrupt("return");case 6:return Oe.next=8,oe.request({url:"/uiSchemas:remove/".concat(pe["x-uid"]),method:"post"});case 8:if(!ge.length){Oe.next=11;break}return Oe.next=11,oe.request({url:"/uiSchemas:batchPatch",method:"post",data:ge});case 11:H.ZP.success(Pe("Saved successfully"),.2);case 12:case"end":return Oe.stop()}},Ie)}));return function(Ie){return ce.apply(this,arguments)}}())}}},{key:"prepareProperty",value:function(re){re.type||(re.type="void"),re.name||(re.name=(0,i.uid)()),this.current["x-uid"]&&v(re)}},{key:"on",value:function(re,me){this.events[re]||(this.events[re]=[]),this.events[re].push(me)}},{key:"emit",value:function(){var _e=S()(N()().mark(function me(oe){var ie=this,Pe,De,ce,Ie,ye,pe=arguments;return N()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(this.events[oe]){fe.next=2;break}return fe.abrupt("return");case 2:for(Pe=pe.length,De=new Array(Pe>1?Pe-1:0),ce=1;ce<Pe;ce++)De[ce-1]=pe[ce];return Ie=De[0],ye=De.slice(1),fe.abrupt("return",Promise.all(this.events[oe].map(function(Oe){return Oe.bind(ie).apply(void 0,[T()({current:ie.current},Ie)].concat(x()(ye)))})));case 5:case"end":return fe.stop()}},me,this)}));function re(me){return _e.apply(this,arguments)}return re}()},{key:"parentsIn",value:function(re){if(!re||!g.Schema.isSchemaInstance(re))return!1;for(var me=this.current;(oe=me)!==null&&oe!==void 0&&oe.parent;){var oe;if(me.parent===re)return!0;me=me.parent}return!1}},{key:"refresh",value:function(re){var me=this.options.refresh;return me==null?void 0:me(re)}},{key:"deepMerge",value:function(re){var me=this,oe={title:"title",description:"description",default:"initialValue",readOnly:"readOnly",writeOnly:"editable",enum:"dataSource","x-pattern":"pattern","x-display":"display","x-validator":"validator","x-decorator":"decorator","x-component":"component","x-reactions":"reactions","x-content":"content","x-visible":"visible","x-hidden":"hidden","x-disabled":"disabled","x-editable":"editable","x-read-only":"readOnly"},ie={"x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(re).forEach(function(Pe){oe[Pe]?(me.current[Pe]=re[Pe],me.updateModel(oe[Pe],re[Pe])):ie[Pe]?Object.keys(re[Pe]).forEach(function(De){b()(me.current,[Pe,De],re[Pe][De]),me.updateModel([ie[Pe],De],re[Pe][De])}):me.current[Pe]=re[Pe]}),this.emit("patch",{schema:re})}},{key:"getSchemaAttribute",value:function(re,me){return V()(this.current,re,me)}},{key:"shallowMerge",value:function(re){var me=this,oe={title:"title",description:"description",default:"initialValue",readOnly:"readOnly",writeOnly:"editable",enum:"dataSource","x-pattern":"pattern","x-display":"display","x-validator":"validator","x-decorator":"decorator","x-component":"component","x-reactions":"reactions","x-content":"content","x-visible":"visible","x-hidden":"hidden","x-disabled":"disabled","x-editable":"editable","x-read-only":"readOnly","x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(re).forEach(function(ie){me.current[ie]=re[ie],oe[ie]&&me.updateModel(oe[ie],re[ie])}),this.emit("patch",{schema:re})}},{key:"updateModel",value:function(re,me){var oe=function(Pe){b()(Pe,re,me)};this.model&&oe(this.model),this.query&&this.query.take(oe)}},{key:"insertAdjacent",value:function(re,me){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};switch(re){case"beforeBegin":return this.insertBeforeBegin(me,oe);case"afterBegin":return this.insertAfterBegin(me,oe);case"beforeEnd":return this.insertBeforeEnd(me,oe);case"afterEnd":return this.insertAfterEnd(me,oe)}}},{key:"recursiveRemoveIfNoChildren",value:function(re,me){if(re){for(var oe=re,ie,Pe=me==null?void 0:me.breakRemoveOn;oe;){if(typeof Pe=="function"){if(Pe(oe))break}else if(Y(oe,Pe))break;var De=Object.keys(oe.properties||{}).length;if(De>0)break;oe.parent&&(ie=oe.parent.removeProperty(oe.name)),oe=oe.parent}return ie}}},{key:"remove",value:function(re){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe=me.breakRemoveOn,ie=me.removeParentsIfNoChildren,Pe=re||this.current,De=Pe.parent.removeProperty(Pe.name);if(ie){var ce=this.recursiveRemoveIfNoChildren(Pe.parent,{breakRemoveOn:oe});ce&&(De=ce)}return this.emit("remove",{removed:De})}},{key:"removeWithoutEmit",value:function(re){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe=me.breakRemoveOn,ie=me.removeParentsIfNoChildren,Pe=re||this.current,De=Pe.parent.removeProperty(Pe.name);if(ie){var ce=this.recursiveRemoveIfNoChildren(Pe.parent,{breakRemoveOn:oe});ce&&(De=ce)}return De}},{key:"insertBeforeBeginOrAfterEnd",value:function(re){var me=this,oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(g.Schema.isSchemaInstance(this.current)&&g.Schema.isSchemaInstance(re)&&this.current.parent===re.parent){var ie=0,Pe=0;return this.current.parent.mapProperties(function(De,ce,Ie){me.current.name===ce&&(Pe=Ie),re.name===ce&&(ie=Ie)}),ie>Pe?this.insertBeforeBegin(re,oe):this.insertAfterEnd(re,oe)}}},{key:"insertBeforeBegin",value:function(re){var me=this,oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(g.Schema.isSchemaInstance(this.current)){var ie={onSuccess:oe.onSuccess},Pe=oe.wrap,De=Pe===void 0?G:Pe,ce=oe.breakRemoveOn,Ie=oe.removeParentsIfNoChildren;if(g.Schema.isSchemaInstance(re)){if(this.parentsIn(re)){this.emit("error",{code:"parent_is_not_allowed",schema:re});return}re.parent.removeProperty(re.name),Ie&&(ie.removed=this.recursiveRemoveIfNoChildren(re.parent,{breakRemoveOn:ce}))}else re&&(re=ne()(re));var ye={},pe=!1,ge=0,fe=0;this.current.parent.mapProperties(function(nt,He){He===me.current.name&&(fe=ge,pe=!0,++ge),nt["x-index"]=ge,++ge,pe&&(ye[He]=nt,me.current.parent.removeProperty(He))}),this.prepareProperty(re);var Oe=De(re),Te=this.current.parent.addProperty(Oe.name||(0,i.uid)(),Oe);Te["x-index"]=fe,Te.parent=this.current.parent,this.current.parent.setProperties(ye);var Fe=te(Te,re),Ae=P()(Fe,2),$e=Ae[0],Ne=Ae[1];this.emit("insertAdjacent",T()({position:"beforeBegin",schema:Ne,wrapped:Oe,wrap:$e},ie))}}},{key:"insertAfterBegin",value:function(re){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(g.Schema.isSchemaInstance(this.current)){var oe={onSuccess:me.onSuccess},ie=me.wrap,Pe=ie===void 0?G:ie,De=me.breakRemoveOn,ce=me.removeParentsIfNoChildren;if(g.Schema.isSchemaInstance(re)){if(this.parentsIn(re)){this.emit("error",{code:"parent_is_not_allowed",schema:re});return}re.parent.removeProperty(re.name),ce&&(oe.removed=this.recursiveRemoveIfNoChildren(re.parent,{breakRemoveOn:De}))}else re&&(re=ne()(re));var Ie={},ye=1;this.current.mapProperties(function(Ae,$e){Ae["x-index"]=ye,++ye,Ie[$e]=Ae}),this.current.properties={},this.prepareProperty(re);var pe=Pe(re),ge=this.current.addProperty(pe.name||(0,i.uid)(),pe);ge["x-index"]=0,ge.parent=this.current,this.current.setProperties(Ie);var fe=te(ge,re),Oe=P()(fe,2),Te=Oe[0],Fe=Oe[1];this.emit("insertAdjacent",T()({position:"afterBegin",schema:Fe,wrap:Te,wrapped:pe},oe))}}},{key:"insertBeforeEnd",value:function(re){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(g.Schema.isSchemaInstance(this.current)){delete re["x-index"];var oe={onSuccess:me.onSuccess},ie=me.wrap,Pe=ie===void 0?G:ie,De=me.breakRemoveOn,ce=me.removeParentsIfNoChildren;if(g.Schema.isSchemaInstance(re)){if(this.parentsIn(re)){this.emit("error",{code:"parent_is_not_allowed",schema:re});return}re.parent.removeProperty(re.name),ce&&(oe.removed=this.recursiveRemoveIfNoChildren(re.parent,{breakRemoveOn:De}))}else re&&(re=ne()(re));this.prepareProperty(re);var Ie=Pe(re),ye=this.current.addProperty(Ie.name||(0,i.uid)(),Ie);ye.parent=this.current;var pe=te(ye,re),ge=P()(pe,2),fe=ge[0],Oe=ge[1];return this.emit("insertAdjacent",T()({position:"beforeEnd",schema:Oe,wrap:fe,wrapped:Ie},oe))}}},{key:"insertAfterEnd",value:function(re){var me=this,oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(g.Schema.isSchemaInstance(this.current)){var ie={onSuccess:oe==null?void 0:oe.onSuccess},Pe=oe.wrap,De=Pe===void 0?G:Pe,ce=oe.breakRemoveOn,Ie=oe.removeParentsIfNoChildren,ye=0,pe=0,ge=!1,fe={};if(this.current.parent.mapProperties(function(nt,He){nt["x-index"]=ye,He===me.current.name&&(++ye,pe=ye,ge=!0),++ye,ge&&He!==me.current.name&&(fe[He]=nt,me.current.parent.removeProperty(He))}),g.Schema.isSchemaInstance(re)){if(this.parentsIn(re)){this.emit("error",{code:"parent_is_not_allowed",schema:re});return}re.parent.removeProperty(re.name),Ie&&(ie.removed=this.recursiveRemoveIfNoChildren(re.parent,{breakRemoveOn:ce})),re.parent=null}else re&&(re=ne()(re));this.prepareProperty(re);var Oe=De(re),Te=this.current.parent.addProperty(Oe.name||(0,i.uid)(),Oe);Te.parent=this.current.parent,Te["x-index"]=pe,this.current.parent.setProperties(fe);var Fe=te(Te,re),Ae=P()(Fe,2),$e=Ae[0],Ne=Ae[1];this.emit("insertAdjacent",T()({position:"afterEnd",schema:Ne,wrap:$e,wrapped:Oe},ie))}}}]),Ee}();function Ce(){var Ee=(0,R.useContext)(g.SchemaOptionsContext),_e=(0,R.useMemo)(function(){return(Ee==null?void 0:Ee.components)||{}},[Ee]),re=function(oe){if(!oe)return null;if(typeof oe!="string")return oe;var ie=V()(_e,oe);return ie||console.error('[nocobase]: Component "'.concat(oe,'" not found')),ie};return re}function Se(){var Ee=(0,R.useContext)(U.D),_e=Ee.designable,re=Ee.setDesignable,me=Ee.refresh,oe=Ee.reset,ie=(0,R.useContext)(g.SchemaOptionsContext),Pe=(0,R.useMemo)(function(){return(ie==null?void 0:ie.components)||{}},[ie]),De=(0,R.useMemo)(function(){return function(){return(0,w.jsx)(w.Fragment,{})}},[]),ce=(0,Z.Z)(),Ie=(0,c.gR)(),ye=(0,c.QJ)(),pe=(0,R.useCallback)(function(nt){me==null||me(),ce(),Ie==null||Ie(nt),ye==null||ye()},[me,ce,Ie,ye]),ge=(0,g.useField)(),fe=(0,g.useFieldSchema)(),Oe=(0,z.LY)(),Te=(0,y.$)(),Fe=Te.t,Ae=(0,R.useMemo)(function(){return D({t:Fe,api:Oe,refresh:pe,current:fe,model:ge,appVersion:E.i8})},[Fe,Oe,pe,fe,ge]);(0,R.useEffect)(function(){Ae.loadAPIClientEvents()},[Ae]);var $e=(0,j.wd)(),Ne=$e.isMobileLayout;return{dn:Ae,designable:Ne?!1:_e,reset:oe,refresh:pe,setDesignable:re,DesignableBar:De,findComponent:(0,R.useCallback)(function(nt){var He;if(!nt)return null;if(typeof nt!="string")return nt;var je=V()(Pe,nt);return(He=je==null?void 0:je[A.XI])!==null&&He!==void 0?He:je},[V()]),on:Ae.on.bind(Ae),patch:(0,R.useCallback)(function(nt,He){var je=function(Be){Object.keys(Be).forEach(function(Ke){var le=Be[Ke];Ke==="title"&&(ge.title=le,fe.title=le),Ke==="x-decorator-props"&&(ge.decoratorProps||(ge.decoratorProps={}),fe["x-decorator-props"]||(fe["x-decorator-props"]={}),Object.keys(le).forEach(function(xe){ge.decoratorProps[xe]=le[xe],fe["x-decorator-props"][xe]=le[xe]})),Ke==="x-component-props"&&(ge.componentProps||(ge.componentProps={}),fe["x-component-props"]||(fe["x-component-props"]={}),Object.keys(le).forEach(function(xe){ge.componentProps[xe]=le[xe],fe["x-component-props"][xe]=le[xe]}))})};if(typeof nt=="string"){var Je={};return b()(Je,nt,He),je(Je)}je(nt),pe()},[Ae]),shallowMerge:(0,R.useCallback)(function(nt){Ae.shallowMerge(nt)},[Ae]),deepMerge:(0,R.useCallback)(function(nt){Ae.deepMerge(nt)},[Ae]),remove:(0,R.useCallback)(function(nt,He){Ae.remove(nt,He)},[Ae]),insertAdjacent:(0,R.useCallback)(function(nt,He,je){Ae.insertAdjacent(nt,He,je)},[Ae]),insertBeforeBegin:(0,R.useCallback)(function(nt){Ae.insertBeforeBegin(nt)},[Ae]),insertAfterBegin:(0,R.useCallback)(function(nt){Ae.insertAfterBegin(nt)},[Ae]),insertBeforeEnd:(0,R.useCallback)(function(nt){Ae.insertBeforeEnd(nt)},[Ae]),insertAfterEnd:(0,R.useCallback)(function(nt){Ae.insertAfterEnd(nt)},[Ae])}}},98146:function(Ut,Re,e){"use strict";e.d(Re,{e:function(){return N}});var de=e(94350),P=e(84577),ve=e(67294),x=e(97970),h=function(){return null};h.isNullComponent=!0;var N=function(){var S=(0,P.ng)(),I=S.designable,M=(0,de.useFieldSchema)(),B=(0,ve.useMemo)(function(){return M["x-designer"]||M["x-toolbar"]?M["x-designer"]||M["x-toolbar"]:M["x-settings"]?x.Mf:h},[M]),O=(0,P.Co)(B);return I&&O||h}},9780:function(Ut,Re,e){"use strict";e.d(Re,{w:function(){return J}});var de=e(97857),P=e.n(de),ve=e(13769),x=e.n(ve),h=["useProps"],N=function(){return{}},J=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=I.useProps,B=M===void 0?N:M,O=x()(I,h),W=B;typeof B!="function"&&(W=N);var f=W();return P()(P()({},O),f)}},96726:function(Ut,Re,e){"use strict";e.d(Re,{aUM:function(){return ve.aU},olz:function(){return ve.ol},N0i:function(){return ve.N0},fWn:function(){return ve.fW},mlL:function(){return ve.ml},EIK:function(){return ve.EI},$Lt:function(){return ve.$L},$b8:function(){return ve.$b},s8w:function(){return $l.s8},Nm$:function(){return $l.Nm},HTy:function(){return Qo},lkv:function(){return Xo},rDu:function(){return $i},eYL:function(){return ve.eY},Rat:function(){return rs},oAt:function(){return wi},E7E:function(){return mi},$SD:function(){return Qc},fUi:function(){return gu.fU},QcG:function(){return Xc},MLy:function(){return ho.M},gOu:function(){return vp},jYG:function(){return js.jY},PuU:function(){return js.Pu},smG:function(){return js.sm},mx3:function(){return ve.mx},C1I:function(){return ve.C1},Ssf:function(){return Nm},vTp:function(){return _f},XZJ:function(){return ra},Tt2:function(){return Ff},zH8:function(){return Af.z},Q5L:function(){return gv},Pok:function(){return Pv},Vm0:function(){return Hm},xI_:function(){return Qs},Lip:function(){return Mf},vLv:function(){return H.DateFilterDynamicComponent},WN4:function(){return _c.W},Mtg:function(){return au.Mt},iNu:function(){return au.iN},zzt:function(){return wt.zz},_bl:function(){return Q._b},POi:function(){return Gm},AOY:function(){return ce},izJ:function(){return Zm},LBT:function(){return H.DndContext},IWB:function(){return H.DragHandler},LCt:function(){return H.DraggableContext},FyH:function(){return ie.Fy},Nir:function(){return ie.Ni},q8U:function(){return ie.q8},HGA:function(){return ie.HG},QTe:function(){return ie.QT},JEX:function(){return ie.JE},fAH:function(){return jc},ORZ:function(){return kf},xKb:function(){return od},P8E:function(){return kd},$w$:function(){return ie.$w},nBj:function(){return ie.nB},Oct:function(){return ie.Oc},zdw:function(){return ie.zd},CXR:function(){return Kv},BQs:function(){return Nu.BQ},Hj5:function(){return fi.H},M0b:function(){return ld},Dnz:function(){return _c.D},DQE:function(){return Ti},pgx:function(){return Ov},wn$:function(){return no.wn},GzZ:function(){return no.Gz},tJZ:function(){return no.tJ},fox:function(){return no.fo},VTd:function(){return no.VT},XsZ:function(){return no.Xs},l09:function(){return re},D_t:function(){return ud.D},_80:function(){return hd},WiK:function(){return Vr},xJW:function(){return ie.xJ},RVL:function(){return Q.RV},Bc8:function(){return sn},hG9:function(){return Ec},DCh:function(){return qs},rjZ:function(){return fc.rj},Cqo:function(){return Nd},jg7:function(){return fc.jg},gsn:function(){return Nu.gs},z1L:function(){return Ba.z},$18:function(){return Kd.$},IIB:function(){return Nu.II},RnZ:function(){return Qf},mX2:function(){return Nu.mX},zDC:function(){return Ul.zD},Phs:function(){return Nu.Ph},hiD:function(){return a0},aVo:function(){return vd},UGj:function(){return Wd.U},yq5:function(){return Wd.y},v2r:function(){return Il},HIW:function(){return Tc},T3C:function(){return Fu},d97:function(){return vo.d9},hGv:function(){return $u},tlE:function(){return fd},irr:function(){return nl},rop:function(){return Vs.r},gGi:function(){return zs},DBW:function(){return Fo.D},MBS:function(){return Ip.M},pGO:function(){return tm},Y8K:function(){return Nr},iVT:function(){return Nu.iV},ODP:function(){return Ul.OD},lbb:function(){return Ul.lb},b7w:function(){return Ul.b7},sUk:function(){return Ul.sU},x1j:function(){return ve.x1},m1v:function(){return Q.m1},glM:function(){return rn},xZD:function(){return ve.xZ},IuH:function(){return no.Iu},MkN:function(){return ve.Mk},Hof:function(){return rm},n6:function(){return Q.n6},DDd:function(){return i0.D},ATq:function(){return Q.AT},G0E:function(){return Q.G0},a$w:function(){return Q.a$},TzZ:function(){return Q.Tz},y00:function(){return ve.y0},PhF:function(){return Mn},Cqv:function(){return H.ShowFormData},cof:function(){return ve.co},bts:function(){return H.Sortable},Fop:function(){return H.SortableContext},TRI:function(){return H.SortableItem},ORg:function(){return H.SortableProvider},TaI:function(){return Rp},qHe:function(){return Ba.q},iA_:function(){return Ou},gvM:function(){return Zv},SnY:function(){return Bc},ASv:function(){return Vp},bwk:function(){return Ds},mQc:function(){return pd},c__:function(){return zl.c},QZ3:function(){return qn},L39:function(){return js.L3},feF:function(){return qp},jII:function(){return wc},mPs:function(){return gc},tgM:function(){return Qp},gqx:function(){return gu.gq},Qm7:function(){return gu.Qm},_wD:function(){return Hs._w},rjl:function(){return Hs.rj},mfA:function(){return Yv.m},SLL:function(){return ve.SL},sBv:function(){return ve.sB},iTm:function(){return ie.iT},BDK:function(){return gu.BD},Pls:function(){return wt.Pl},Oxq:function(){return qo},WLi:function(){return pr},$9M:function(){return ie.$9},nCn:function(){return yn},iNG:function(){return tr},tD8:function(){return cn},pg9:function(){return to},Ofb:function(){return ie.Of},ibf:function(){return so},WyG:function(){return oe},l6$:function(){return P.l6},WGR:function(){return Ot},tl0:function(){return au.tl},C$H:function(){return Ul.C$},SET:function(){return au.SE},cNQ:function(){return Ul.cN},NCb:function(){return ir.NC},I9l:function(){return H.getRenderContent},XQ2:function(){return ir.XQ},Fxc:function(){return wu},KKi:function(){return ve.KK},MDU:function(){return au.MD},CEH:function(){return au.CE},vUN:function(){return ve.vU},ZZb:function(){return ie.ZZ},tqC:function(){return au.tq},elO:function(){return Ul.el},CfU:function(){return Wu},VPR:function(){return ve.VP},LPx:function(){return au.LP},fY6:function(){return au.fY},Vm:function(){return kc},tP3:function(){return gu.tP},w_o:function(){return au.w_},SJF:function(){return El},_Ko:function(){return gs},Mev:function(){return Wo},i2K:function(){return sa},WmO:function(){return no.Wm},YDI:function(){return au.YD},oBi:function(){return wt.oB},hKP:function(){return ir.hK},DU1:function(){return ve.DU},XCj:function(){return ve.XC},EM:function(){return ve.EM},kRO:function(){return $l.kR},KyD:function(){return _i.Ky},Vpg:function(){return bl},lIL:function(){return wt.lI},KxP:function(){return ho.K},hi9:function(){return wt.hi},p27:function(){return ve.p2},z9d:function(){return Gv.z9},x_5:function(){return Qu.x},eJW:function(){return wt.eJ},Cor:function(){return wt.Co},Zmk:function(){return vo.Zm},aZq:function(){return wt.aZ},P1D:function(){return au.P1},ngQ:function(){return wt.ng},ett:function(){return wt.et},ySm:function(){return fi.y},Zd$:function(){return ie.Zd},cLh:function(){return wt.cL},baz:function(){return ie.b},fde:function(){return wt.fd},Xdt:function(){return Ul.Xd},Cld:function(){return wt.Cl},vH8:function(){return wt.vH},PLH:function(){return no.PL},V8t:function(){return no.V8},tMk:function(){return no.tM},xQm:function(){return no.xQ},sRe:function(){return wt.sR},U1u:function(){return Vn},HS$:function(){return ve.HS},vBu:function(){return ve.vB},QYZ:function(){return ve.QY},t9d:function(){return ve.t9},Kgy:function(){return no.Kg},aJ2:function(){return no.aJ},n14:function(){return fc.n1},DiB:function(){return fc.Di},l1O:function(){return ie.l1},w5o:function(){return ie.w5},p3Q:function(){return ie.p3},G5e:function(){return ie.G5},xj2:function(){return ie.xj},rxY:function(){return ie.rx},Ils:function(){return Ul.Il},zCB:function(){return ve.zC},yrJ:function(){return Xf},CMh:function(){return ql},v$P:function(){return Ki.v},FMn:function(){return hl},T0O:function(){return fu},a4r:function(){return Fo.a},wNf:function(){return wt.wN},Dmu:function(){return wt.Dm},Bsl:function(){return Q.Bs},yKv:function(){return Xt.y},pkQ:function(){return Au.p},fMB:function(){return wt.fM},gCg:function(){return zl.g},eT6:function(){return ie.eT},$SN:function(){return gu.$S},q4O:function(){return ie.q4},ymE:function(){return Hs.ym},uqQ:function(){return ve.uq},Q3P:function(){return ir.Q3},K5K:function(){return ve.K5}});var de={};e.r(de),e.d(de,{Action:function(){return ve.aU},ActionBar:function(){return ve.ol},ActionBarProvider:function(){return ve.N0},ActionContext:function(){return ve.fW},ActionContextNoRerender:function(){return ve.ml},ActionContextProvider:function(){return ve.EI},ActionDesigner:function(){return ve.$L},AfterSuccess:function(){return ve.$b},AllDataBlocksContext:function(){return $l.s8},AllDataBlocksProvider:function(){return $l.Nm},AntdSchemaComponentPlugin:function(){return Qo},AntdSchemaComponentProvider:function(){return Xo},AppendsTreeSelect:function(){return $i},AssignedFieldValues:function(){return ve.eY},AssociationField:function(){return rs},AssociationFieldMode:function(){return wi},AssociationFieldModeProvider:function(){return mi},AssociationSelect:function(){return Qc},AttachmentList:function(){return gu.fU},AutoComplete:function(){return Xc},BackButtonUsedInSubPage:function(){return ho.M},Block:function(){return vp},BlockItem:function(){return js.jY},BlockItemCard:function(){return js.Pu},BlockItemCardContext:function(){return js.sm},BlocksSelector:function(){return ve.mx},ButtonEditor:function(){return ve.C1},CardItem:function(){return Nm},Cascader:function(){return _f},Checkbox:function(){return ra},CollectionSelect:function(){return Ff},ColorPicker:function(){return Af.z},ColorSelect:function(){return gv},Cron:function(){return Pv},CronSet:function(){return Hm},DataSourceCollectionCascader:function(){return Qs},DataSourceSelect:function(){return Mf},DateFormatCom:function(){return _c.W},DatePicker:function(){return au.Mt},DatePickerProvider:function(){return au.iN},Details:function(){return Gm},DetailsDesigner:function(){return ce},Divider:function(){return Zm},EditComponent:function(){return ie.Fy},EditDefaultValue:function(){return ie.Ni},EditDescription:function(){return ie.q8},EditOperator:function(){return ie.HG},EditPattern:function(){return ie.QT},EditRequired:function(){return ie.JE},EditSortField:function(){return jc},EditTable:function(){return kf},EditTableAction:function(){return od},EditTableActionContext:function(){return kd},EditTitle:function(){return ie.$w},EditTitleField:function(){return ie.nB},EditTooltip:function(){return ie.Oc},EditValidationRules:function(){return ie.zd},Editable:function(){return Kv},EllipsisWithTooltip:function(){return Nu.BQ},ErrorFallback:function(){return fi.H},Expand:function(){return ld},ExpiresRadio:function(){return _c.D},FieldsTreeSelect:function(){return Ti},Fieldset:function(){return Ov},Filter:function(){return no.wn},FilterAction:function(){return no.Gz},FilterActionContext:function(){return no.tJ},FilterContext:function(){return no.fo},FilterDynamicComponent:function(){return no.VT},FilterLogicContext:function(){return no.Xs},Form:function(){return re},FormDialog:function(){return ud.D},FormDrawer:function(){return hd},FormField:function(){return Vr},FormItem:function(){return ie.xJ},FormV2:function(){return sn},G2Plot:function(){return Ec},G2PlotRenderer:function(){return qs},Grid:function(){return fc.rj},GridCard:function(){return Nd},GridRowContext:function(){return fc.jg},HTMLEncode:function(){return Nu.gs},ICON_POPUP_Z_INDEX:function(){return Ba.z},IconPicker:function(){return Kd.$},Input:function(){return Nu.II},InputNumber:function(){return Qf},InputReadPretty:function(){return Nu.mX},InputRecordPicker:function(){return Ul.zD},Json:function(){return Nu.Ph},LinkageFilter:function(){return a0},List:function(){return vd},Markdown:function(){return Wd.U},MarkdownReadPretty:function(){return Wd.y},Menu:function(){return Il},NanoIDInput:function(){return Tc},Page:function(){return Fu},PagePopups:function(){return vo.d9},PageTabs:function(){return $u},Pagination:function(){return fd},ParentRouteContext:function(){return nl},Password:function(){return Vs.r},Percent:function(){return zs},PopupSettingsProvider:function(){return Fo.D},Preview:function(){return Ip.M},QuickEdit:function(){return tm},Radio:function(){return Nr},ReadPretty:function(){return Nu.iV},ReadPrettyRecordPicker:function(){return Ul.OD},RecordPicker:function(){return Ul.lb},RecordPickerContext:function(){return Ul.b7},RecordPickerProvider:function(){return Ul.sU},RefreshDataBlockRequest:function(){return ve.x1},RemoteSelect:function(){return rn},RemoveButton:function(){return ve.xZ},RemoveConditionContext:function(){return no.Iu},RequestSettings:function(){return ve.Mk},RichText:function(){return rm},SecondConFirm:function(){return ve.y0},Select:function(){return Mn},SkipValidation:function(){return ve.co},Space:function(){return Rp},StablePopover:function(){return Ba.q},Table:function(){return Ou},TableBlockDesigner:function(){return Zv},TableField:function(){return Bc},TableSelectorDesigner:function(){return Vp},TableV2:function(){return Ds},Tabs:function(){return pd},TabsContextProvider:function(){return zl.c},Templates:function(){return qn},TestDesigner:function(){return js.L3},TextAreaWithGlobalScope:function(){return qp},TimePicker:function(){return wc},TreeSelect:function(){return gc},UnixTimestamp:function(){return Qp},Upload:function(){return gu.gq},Uploader:function(){return gu.Qm},Variable:function(){return Hs._w},VariableScopeProvider:function(){return Hs.rj},VariableSelect:function(){return Yv.m},actionSettings:function(){return ve.SL},actionSettingsItems:function(){return ve.sB},allowAddNew:function(){return ie.iT},attachmentFileTypes:function(){return gu.BD},defaultFieldNames:function(){return qo},fetchTemplateData:function(){return pr},filterFormItemSettings:function(){return ie.$9},findByUid:function(){return yn},findKeysByUid:function(){return tr},findMenuItem:function(){return cn},formDetailsSettings:function(){return to},formItemSettings:function(){return ie.Of},formSettings:function(){return so},formV1Settings:function(){return oe},genStyleHook:function(){return P.l6},getCurrentOptions:function(){return Ot},getDateExact:function(){return au.tl},getDatePickerLabels:function(){return Ul.C$},getDateRanges:function(){return au.SE},getLabelFormatValue:function(){return Ul.cN},getPopupPathFromParams:function(){return ir.NC},getStoredPopupContext:function(){return ir.XQ},getTabSchema:function(){return wu},getZIndex:function(){return ve.KK},handleDateChangeOnForm:function(){return au.MD},inferPickerType:function(){return au.CE},isBulkEditAction:function(){return ve.vU},isFileCollection:function(){return ie.ZZ},isMobile:function(){return au.tq},isShowFilePicker:function(){return Ul.el},isTabPage:function(){return Wu},isWriteEmailAction:function(){return ve.VP},mapDatePicker:function(){return au.LP},mapRangePicker:function(){return au.fY},mapTimeFormat:function(){return kc},matchMimetype:function(){return gu.tP},moment2str:function(){return au.w_},navigateToTab:function(){return El},pageSettings:function(){return gs},pageTabSettings:function(){return Wo},readPrettyFormSettings:function(){return sa},removeNullCondition:function(){return no.Wm},resolveFilterPickerFormat:function(){return au.YD},storePopupContext:function(){return ir.hK},useActionBarContext:function(){return ve.DU},useActionContext:function(){return ve.XC},useAfterSuccessOptions:function(){return ve.EM},useAllDataBlocks:function(){return $l.kR},useAssociationFieldContext:function(){return _i.Ky},useAssociationFieldModeContext:function(){return bl},useBackButton:function(){return ho.K},useCloseAction:function(){return ve.p2},useColumnSchema:function(){return Gv.z9},useColumnSettings:function(){return Qu.x},useCurrentPopupContext:function(){return vo.Zm},useDatePickerContext:function(){return au.P1},useDownloadLogs:function(){return fi.y},useEnsureOperatorsValid:function(){return ie.Zd},useFieldMode:function(){return ie.b},useFieldNames:function(){return Ul.Xd},useFilterActionProps:function(){return no.PL},useFilterFieldOptions:function(){return no.V8},useFilterFieldProps:function(){return no.tM},useFilterOptions:function(){return no.xQ},useFormDataTemplates:function(){return Vn},useGetAriaLabelOfAction:function(){return ve.HS},useGetAriaLabelOfDrawer:function(){return ve.vB},useGetAriaLabelOfModal:function(){return ve.QY},useGetAriaLabelOfPopover:function(){return ve.t9},useGetFilterFieldOptions:function(){return no.Kg},useGetFilterOptions:function(){return no.aJ},useGridContext:function(){return fc.n1},useGridRowContext:function(){return fc.Di},useIsAddNewForm:function(){return ie.l1},useIsAssociationField:function(){return ie.w5},useIsFieldReadPretty:function(){return ie.p3},useIsFileField:function(){return ie.G5},useIsFormReadPretty:function(){return ie.xj},useIsSelectFieldMode:function(){return ie.rx},useLabelUiSchema:function(){return Ul.Il},useLinkageAction:function(){return ve.zC},useListBlockContext:function(){return Xf},useMenuDragEnd:function(){return ql},useMenuTranslation:function(){return Ki.v},useNocoBaseRoutes:function(){return hl},useParentRoute:function(){return fu},usePopupSettings:function(){return Fo.a},useStyles:function(){return Xt.y},useTableColumnIntegration:function(){return Au.p},useTabsContext:function(){return zl.g},useTitleFieldOptions:function(){return ie.eT},useUploadStyles:function(){return gu.$S},useValidateSchema:function(){return ie.q4},useVariableScope:function(){return Hs.ym},useZIndexContext:function(){return ve.uq},withSearchParams:function(){return ir.Q3},zIndexContext:function(){return ve.K5}});var P=e(46917),ve=e(76157),x=e(15009),h=e.n(x),N=e(99289),J=e.n(N),S=e(12444),I=e.n(S),M=e(72004),B=e.n(M),O=e(31996),W=e.n(O),f=e(26037),k=e.n(f),T=e(97857),g=e.n(T),i=e(67294),Z=e(31601),H=e(99687),Q=e(70993),ne=e(89127),ue=function(he){return J()(h()().mark(function ze(){var rt,ot;return h()().wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return ut.prev=0,ut.next=3,this.api.request(he);case 3:return ot=ut.sent,ut.abrupt("return",ot==null||(rt=ot.data)===null||rt===void 0?void 0:rt.data);case 7:return ut.prev=7,ut.t0=ut.catch(0),ut.abrupt("return",[]);case 10:case"end":return ut.stop()}},ze,this,[[0,7]])}))},V=e(13769),p=e.n(V),b=e(5552),R=e(86201),y=e(94350),z=e(31282),c=e(74330),A=e(12174),U=e(6145),K=e(57105),E=e(97970),j=e(64016),w=e(15195),D=e(23911),v=e(85893),G=["form","children"],Y=["form","children","disabled"],te=["request","effects","initialValue","useValues"],ee=function(he){var ze=he.form,rt=he.children,ot=p()(he,G),pt=(0,y.useField)(),ut=(0,y.useFieldSchema)(),Lt=(0,wt.lI)(ze.createVoidField(g()(g()({},pt.props),{},{basePath:""})));return(0,v.jsx)(y.FieldContext.Provider,{value:void 0,children:(0,v.jsx)(y.FormContext.Provider,{value:ze,children:(0,v.jsx)(b.FormLayout,g()(g()({layout:"vertical"},ot),{},{children:(0,v.jsx)(K.sq,{basePath:Lt.address,schema:ut,onlyRenderProperties:!0})}))})})},X=function(he){return he.children},Ce=function(he){var ze=he.form,rt=he.children,ot=he.disabled,pt=p()(he,Y),ut=(0,y.useField)(),Lt=(0,y.useFieldSchema)(),qt=(0,wt.lI)(ze.createVoidField(g()(g()({},ut.props),{},{basePath:""}))),nn=(0,wt.Co)(Lt["x-component"],X);return(0,i.useEffect)(function(){ze.disabled=ot||ut.disabled},[ot,ut.disabled]),(0,v.jsx)(z.ZP,{componentDisabled:ot,children:(0,v.jsx)(y.FieldContext.Provider,{value:void 0,children:(0,v.jsx)(y.FormContext.Provider,{value:ze,children:(0,v.jsx)(b.FormLayout,g()(g()({layout:"vertical"},pt),{},{children:(0,v.jsx)(y.FieldContext.Provider,{value:qt,children:(0,v.jsx)(nn,g()(g()({},ut.componentProps),{},{children:(0,v.jsx)(K.sq,{basePath:qt.address,schema:Lt,onlyRenderProperties:!0})}))})}))})})})},Se=function(he){var ze=he.request,rt=he.initialValue;return ze||function(){return Promise.resolve({data:rt})}},Ee=function(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,A.QT)(Se(ze),he)},_e=(0,i.createContext)(null);_e.displayName="FormBlockContext";var re=(0,y.observer)(function(Le){var he=Le.request,ze=Le.effects,rt=Le.initialValue,ot=Le.useValues,pt=ot===void 0?Ee:ot,ut=p()(Le,te),Lt=(0,y.useFieldSchema)(),qt=(0,y.useField)(),nn=(0,i.useMemo)(function(){return(0,R.createForm)({effects:ze})},[]),ln=pt({uid:Lt["x-uid"],onSuccess:function(dn){return J()(h()().mark(function Yn(){return h()().wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:return Xn.next=2,nn.reset();case 2:nn.setValues(dn==null?void 0:dn.data),nn.setInitialValues(dn==null?void 0:dn.data);case 4:case"end":return Xn.stop()}},Yn)}))()}},Le),Dn=(0,i.useContext)(_e);return(0,v.jsx)(_e.Provider,{value:{parent:Dn,form:nn,result:ln,field:qt,fieldSchema:Lt},children:(0,v.jsx)(c.Z,{spinning:(ln==null?void 0:ln.loading)||!1,children:Lt["x-decorator"]==="Form"?(0,v.jsx)(Ce,g()({form:nn},ut)):(0,v.jsx)(ee,g()({form:nn},ut))})})},{displayName:"Form"});re.Designer=function(){var he=(0,U.useCollection_deprecated)(),ze=he.name,rt=he.title,ot=(0,w.zy)(),pt=(0,D.rE)(),ut=pt.componentNamePrefix;return(0,v.jsxs)(E.aN,{template:ot,title:rt||ze,children:[(0,v.jsx)(j.G,{componentName:"".concat(ut,"Form"),collectionName:ze}),(0,v.jsx)(E.Z5,{}),(0,v.jsx)(E.qx,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}})]})};var me=e(5537),oe=new me.F5({name:"FormV1Settings",items:[{name:"template",Component:j.G,useComponentProps:function(){var he=(0,U.useCollection_deprecated)(),ze=he.name,rt=(0,D.rE)(),ot=rt.componentNamePrefix;return{componentName:"".concat(ot,"Form"),collectionName:ze}}},{name:"divider",type:"divider"},{name:"remove",type:"remove",componentProps:{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}}]}),ie=e(54801),Pe=function(){var he=(0,U.useCollection_deprecated)(),ze=he.name,rt=he.title,ot=(0,w.zy)();return(0,v.jsx)(E.aN,{schemaSettings:"FormSettings",template:ot,title:rt||ze})},De=function(){var he=(0,U.useCollection_deprecated)(),ze=he.name,rt=he.title,ot=(0,w.zy)();return(0,v.jsx)(E.aN,{schemaSettings:"ReadPrettyFormSettings",template:ot,title:rt||ze})},ce=function(){var he=(0,U.useCollection_deprecated)(),ze=he.name,rt=he.title,ot=(0,w.zy)();return(0,v.jsx)(E.aN,{schemaSettings:"FormDetailsSettings",template:ot,title:rt||ze})},Ie=function(){var he=(0,U.useCollection_deprecated)(),ze=he.name,rt=he.title,ot=(0,w.zy)();return(0,v.jsx)(E.aN,{schemaSettings:"blockSettings:filterForm",template:ot,title:rt||ze})},ye=e(7340),pe=e(15503),ge=e(83335),fe=e(68230),Oe=e(68400),Te=e.n(Oe),Fe=e(97133),Ae=e(84327),$e=e(9361),Ne=e(96486),nt=e.n(Ne),He=e(2483),je=e(415),Je=e(31019),ke=e(94804),Be=e(39742),Ke=e(7686),le=e(22229),xe=e(43321),Ge=e(3078),Ve=e(9780),lt=e(3192),ct=e(18686),Et=e(5574),Qe=e.n(Et),gt=e(10110),_t=e(42075),en=e(34041),hn=e(26793),gn=e(53285),bn=e(32268),Rt=e(9783),Ze=e.n(Rt),Ft=e(52677),Ct=e.n(Ft),bt=e(3407),St=e(66309),zt=e(96074),An=e(27484),xn=e.n(An),un=e(44990),Sn=e(8341),jn=e(87714),wt=e(84577),Nt=e(16646),yr=e(73475),vn=e(32983),hr=e(83062),Tr=e(85518),Kr=e(67668),Or=e(58812),Er=e(96695),Ir=e.n(Er),Br=e(19632),xo=e.n(Br),qo={label:"label",value:"value",color:"color",options:"children"};function uo(Le,he){var ze=[];if(!Array.isArray(Le))return ze;for(var rt=0;rt<Le.length;rt++){var ot=Le[rt][he.options];Array.isArray(ot)&&ze.push.apply(ze,xo()(uo(ot,he))),ze.push(g()({},Le[rt]))}return ze}function kn(Le,he,ze){if(!Le)return[];var rt=[],ot=Ir()(ze),pt;try{var ut=function(){var qt=pt.value,nn=Le.find(function(ln){return ln[he.value]==qt})||{value:qt,label:qt&&qt.toString()};rt.push(nn)};for(ot.s();!(pt=ot.n()).done;)ut()}catch(Lt){ot.e(Lt)}finally{ot.f()}return rt}function Ot(Le,he,ze){var rt=uo(he,ze),ot=(0,Ne.castArray)(Le).map(function(pt){return(0,gt.isPlainObject)(pt)?pt[ze.value]:pt});return kn(rt,ze,ot)}var Zt=e(25145),Mt=e(61933),at=(0,y.observer)(function(Le){var he=(0,i.useState)(!0),ze=Qe()(he,2),rt=ze[0],ot=ze[1],pt=(0,i.useState)([]),ut=Qe()(pt,2),Lt=ut[0],qt=ut[1],nn=(0,y.useField)(),ln=(0,Kr.Hy)();return(0,i.useEffect)(function(){var Dn,Qn=g()(g()({},qo),Le.fieldNames),dn=nn.dataSource||Le.options||(ln==null?void 0:ln.uiSchema.enum)||[],Yn=Ot(nn.value,dn,Qn);if(!(!(0,Ae.isValid)(Le.value)&&!Yn.length)&&!((0,R.isArrayField)(nn)&&(nn==null||(Dn=nn.value)===null||Dn===void 0?void 0:Dn.length)===0)){var Gn=nn.value!==null&&Yn.map(function(Xn,cr){return(0,v.jsx)(St.Z,{color:Xn[Qn.color],icon:typeof Xn.icon=="string"?(0,v.jsx)(Mt.JO,{type:Xn.icon}):Xn.icon,children:Xn[Qn.label]},cr)});qt(Gn),ot(!1)}},[ln==null?void 0:ln.uiSchema.enum,nn,nn.dataSource,nn.value,Le.fieldNames,Le.options,Le.value]),rt?null:(0,v.jsx)(Or.B,{ellipsis:Le.ellipsis,children:Lt})},{displayName:"SelectReadPretty"}),At=(0,Zt.u)(at),vt,$t=["value","options","onChange","fieldNames","mode","loading","rawOptions","defaultValue"],Kt=["objectValue","loading","value","rawOptions","defaultValue"],Yt=function(he){return!(0,Ae.isValid)(he)||Ct()(he)==="object"&&Object.keys(he).length===0},Gt=function(he){var ze=he.value,rt=he.options,ot=he.onChange,pt=he.fieldNames,ut=he.mode,Lt=he.loading,qt=he.rawOptions,nn=he.defaultValue,ln=p()(he,$t),Dn=Tr.nI?"":Wn,Qn=Tr.nI?void 0:"topLeft",dn=function(Gn){var Xn;if(!Yt(Gn)){var cr=(0,Ae.toArr)(Gn).filter(function(Xr){return Xr}).map(function(Xr){return(0,gt.isPlainObject)(Xr)?Xr[pt.value]:Xr}),xr=(Xn=Ot(cr,rt,pt))===null||Xn===void 0?void 0:Xn.map(function(Xr){return{label:Xr[pt.label],value:Xr[pt.value]}});return["tags","multiple"].includes(ut)||he.multiple?xr:xr.shift()}};return(0,v.jsx)(en.default,g()({rootClassName:Dn,placement:Qn,role:"button","data-testid":"select-object-".concat(ut||"single"),value:dn(ze),defaultValue:dn(nn),allowClear:{clearIcon:(0,v.jsx)(Nt.Z,{role:"button","aria-label":"icon-close-select"})},labelInValue:!0,notFoundContent:Lt?(0,v.jsx)(c.Z,{}):(0,v.jsx)(vn.Z,{image:vn.Z.PRESENTED_IMAGE_SIMPLE}),options:rt,fieldNames:pt,showSearch:!0,popupMatchSelectWidth:!1,filterOption:function(Gn,Xn){var cr;return((cr=Xn==null?void 0:Xn[pt.label||"label"])!==null&&cr!==void 0?cr:"").includes(Gn)},filterSort:function(Gn,Xn){var cr,xr;return((cr=Gn==null?void 0:Gn[pt.label||"label"])!==null&&cr!==void 0?cr:"").toLowerCase().localeCompare(((xr=Xn==null?void 0:Xn[pt.label||"label"])!==null&&xr!==void 0?xr:"").toLowerCase())},onChange:function(Gn){var Xn=Ot((0,Ae.toArr)(Gn).map(function(cr){return cr.value}),qt||rt,pt);["tags","multiple"].includes(ut)||he.multiple?ot==null||ot(Xn):ot==null||ot(Xn.shift()||null)},mode:ut,tagRender:function(Gn){return(0,v.jsx)(St.Z,g()(g()({role:"button","aria-label":Gn.label,closeIcon:(0,v.jsx)(yr.Z,{role:"button","aria-label":"icon-close-tag"})},Gn),{},{children:Gn.label}))},maxTagCount:"responsive",maxTagPlaceholder:function(Gn){return(0,v.jsxs)(hr.Z,{title:(0,v.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:6,maxWidth:"100%"},children:Gn.map(function(Xn){return(0,v.jsx)(St.Z,{style:{margin:0,background:"#fafafa",border:"1px solid #d9d9d9",whiteSpace:"normal",wordBreak:"break-word",maxWidth:"100%"},children:Xn.label},Xn.value)})}),overlayInnerStyle:{background:"#fff",color:"#000",padding:8,maxWidth:"100%"},color:"#fff",overlayStyle:{pointerEvents:"auto",maxWidth:300},children:["+",Gn.length,"..."]})}},ln))},In=function(he,ze){var rt;return((rt=ze==null?void 0:ze.label)!==null&&rt!==void 0?rt:"").toLowerCase().includes((he||"").toLowerCase())},Wn=(0,Fe.css)(vt||(vt=Te()([`
1462
1462
  & .ant-select-selection-search-input {
1463
1463
  opacity: 0.1 !important;
1464
1464
  }
@@ -2723,4 +2723,4 @@ Please run: await ctx.importAsync("`.concat(no,'") to ensure ctx.render uses a m
2723
2723
  await ctx.__ensureLibs(`.concat(JSON.stringify(Pt),`);
2724
2724
  `).concat(Tt):Tt}function Yt(Tt,Pt,Vt){var an=qo(Tt,Vt);if(Tt[an]!==":")return!1;var rn=uo(Tt,Pt-1),xt=rn>=0?Tt[rn]:"";return xt==="{"||xt===","}function Gt(Tt,Pt,Vt,an){var rn=Array.from(new Set(Pt));if(!rn.length)return Tt;for(var xt=Tt,Vn=0,qn=rn;Vn<qn.length;Vn++){var Jn=qn[Vn],pr=Vt(Jn);xt="(".concat(xt,").split(").concat(JSON.stringify(Jn),").join(").concat(an,"(").concat(pr,", ").concat(JSON.stringify(Jn),"))")}return xt}function In(Tt){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!St.test(Tt))return Tt;var Vt=Pt.processBarePlaceholders!==!1,an=Pt.processStringLiterals!==!1;if(Vt&&an&&Sn.test(Tt)||Vt&&!an&&xn.test(Tt)||!Vt&&an&&un.test(Tt))return Tt;for(var rn=new Map,xt=[],Vn=!1,qn=new Set,Jn=function($r){if(!Tt.includes($r)&&!qn.has($r))return qn.add($r),$r;for(var Zr=1;Tt.includes("".concat($r,"_").concat(Zr))||qn.has("".concat($r,"_").concat(Zr));)Zr+=1;var no="".concat($r,"_").concat(Zr);return qn.add(no),no},pr=Jn(An),fr=0,ur=function(){for(;;){var $r="__runjs_ctx_tpl_".concat(fr);if(fr+=1,!(Tt.includes($r)||qn.has($r)))return qn.add($r),$r}},Pn=function($r){var Zr=rn.get($r);if(Zr)return Zr;var no=ur();return rn.set($r,no),xt.push("const ".concat(no," = await ctx.resolveJsonTemplate(").concat(JSON.stringify($r),");")),no},Ln="",Fn=0,mt=!1,qe=0;Fn<Tt.length;){var se=Tt[Fn],et=Tt[Fn+1];if(se==="/"&&et==="/"){var Ue=Or(Tt,Fn);Ln+=Tt.slice(Fn,Ue),Fn=Ue;continue}if(se==="/"&&et==="*"){var We=Er(Tt,Fn);Ln+=Tt.slice(Fn,We),Fn=We;continue}if(se==="'"||se==='"'){var Ye=Ir(Tt,Fn,se),st=Tt.slice(Fn,Ye);if(an&&qe===0){var Dt=xo(st);if(Dt.length){Vn=!0;var on=Gt(st,Dt,Pn,pr);Ln+=Yt(Tt,Fn,Ye)?"[".concat(on,"]"):on}else Ln+=st}else Ln+=st;Fn=Ye;continue}if(se==="`"){var Kn=Br(Tt,Fn),sn=Tt.slice(Fn,Kn);if(an&&qe===0){var Zn=xo(sn);if(Zn.length){Vn=!0;var Pr=Gt(sn,Zn,Pn,pr);Ln+=Yt(Tt,Fn,Kn)?"[".concat(Pr,"]"):Pr}else Ln+=sn}else Ln+=sn;Fn=Kn;continue}if(qe===0&&!mt&&Kr(Tt,Fn)){Ln+=bt,Fn+=bt.length,mt=!0;continue}if(mt){if(/\s/.test(se)){Ln+=se,Fn+=1;continue}if(se==="("){Ln+=se,Fn+=1,mt=!1,qe=1;continue}mt=!1;continue}if(qe>0){se==="("?qe+=1:se===")"&&(qe-=1),Ln+=se,Fn+=1;continue}if(Vt&&se==="{"&&et==="{"){var eo=Tt.indexOf("}}",Fn+2);if(eo!==-1){var Gr=Tt.slice(Fn,eo+2);if(Tr(Gr)){Ln+=Pn(Gr),Fn=eo+2;continue}}}Ln+=se,Fn+=1}if(!xt.length)return Ln;var br=[];return Vn&&br.push("const ".concat(pr," = (value, placeholder) => {")," if (typeof value === 'undefined') return placeholder;"," if (typeof value === 'object' && value !== null) {"," try {"," return JSON.stringify(value);"," } catch (e) {"," return String(value);"," }"," }"," return String(value);","};"),br.push.apply(br,xt),"".concat(br.join(`
2725
2725
  `),`
2726
- `).concat(Ln)}function Wn(Tt){return fn.apply(this,arguments)}function fn(){return fn=ne()(T()().mark(function Tt(Pt){var Vt,an,rn,xt,Vn,qn,Jn=arguments;return T()().wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:if(Vt=Jn.length>1&&Jn[1]!==void 0?Jn[1]:{},an=typeof Pt=="string"?Pt:String(Pt??""),rn=!!Vt.preprocessTemplates,xt=rn?Nt.withTemplates:Nt.withoutTemplates,Vn=yr(xt,an),!Vn){fr.next=9;break}return fr.next=8,Vn;case 8:return fr.abrupt("return",fr.sent);case 9:return qn=ne()(T()().mark(function ur(){var Pn,Ln,Fn;return T()().wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:if(rn){qe.next=6;break}return qe.t0=Kt,qe.next=4,(0,Ct.n)(an);case 4:return qe.t1=qe.sent,qe.abrupt("return",(0,qe.t0)(qe.t1));case 6:return Pn=In(an,{processStringLiterals:!1}),qe.next=9,(0,Ct.n)(Pn);case 9:return Ln=qe.sent,Fn=In(Ln,{processBarePlaceholders:!1}),qe.abrupt("return",Kt(Fn));case 12:case"end":return qe.stop()}},ur)}))(),vn(xt,an,qn,wt),fr.prev=11,fr.next=14,qn;case 14:return fr.abrupt("return",fr.sent);case 17:throw fr.prev=17,fr.t0=fr.catch(11),xt.delete(an),fr.t0;case 21:case"end":return fr.stop()}},Tt,null,[[11,17]])})),fn.apply(this,arguments)}var Mn=e(65452);function gr(Tt){if(Array.isArray(Tt)){var Pt=Tt.map(function(an){return gr(an)}).filter(function(an){return an!==void 0});return Pt.length?Pt:void 0}if(Tt&&H()(Tt)==="object"){var Vt={};return Object.keys(Tt).forEach(function(an){var rn=gr(Tt[an]);rn!==void 0&&(Vt[an]=rn)}),Object.keys(Vt).length?Vt:void 0}return Tt==null||typeof Tt=="string"&&Tt===""?void 0:Tt}var On=function(Pt){return typeof Pt.on=="string"?Pt.on==="beforeRender":H()(Pt.on)==="object"?Pt.on.eventName==="beforeRender":!Pt.on&&Pt.manual!==!0},mr=e(42554)},47608:function(Ut,Re,e){"use strict";e.d(Re,{n:function(){return N}});var de=e(15009),P=e.n(de),ve=e(99289),x=e.n(ve),h=e(57930);function N(S){return J.apply(this,arguments)}function J(){return J=x()(P()().mark(function S(I){var M,B,O,W,f,k;return P()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(M=/<[A-Za-z]|<\//.test(I),M){g.next=3;break}return g.abrupt("return",I);case 3:return g.prev=3,g.next=6,h("imported_1q7hsm5_component",Promise.all([e.e(4326),e.e(8977),e.e(5505)]).then(e.bind(e,75572)));case 6:if(W=g.sent,f=(W==null?void 0:W.transform)||(W==null||(B=W.default)===null||B===void 0?void 0:B.transform),typeof f=="function"){g.next=10;break}return g.abrupt("return",I);case 10:return k=f(I,{transforms:["jsx"],jsxPragma:"ctx.React.createElement",jsxFragmentPragma:"ctx.React.Fragment",disableESTransforms:!0,production:!0}),g.abrupt("return",(O=k&&(k.code||(k==null?void 0:k.output)))!==null&&O!==void 0?O:I);case 14:return g.prev=14,g.t0=g.catch(3),g.abrupt("return",I);case 17:case"end":return g.stop()}},S,null,[[3,14]])})),J.apply(this,arguments)}},26233:function(Ut,Re,e){"use strict";e.d(Re,{HA:function(){return p},cO:function(){return i},nw:function(){return T},rz:function(){return V}});var de=e(19632),P=e.n(de),ve=e(52677),x=e.n(ve),h=e(15009),N=e.n(h),J=e(96695),S=e.n(J),I=e(5574),M=e.n(I),B=e(99289),O=e.n(B),W=e(80770),f=e(96486),k=e.n(f);function T(K,E){return g.apply(this,arguments)}function g(){return g=O()(N()().mark(function K(E,j){var w;return N()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(E){v.next=2;break}return v.abrupt("return",{});case 2:if(typeof E!="function"){v.next=14;break}return v.prev=3,v.next=6,E(j);case 6:return w=v.sent,v.abrupt("return",w||{});case 10:return v.prev=10,v.t0=v.catch(3),console.error("Error resolving defaultParams function:",v.t0),v.abrupt("return",{});case 14:return v.abrupt("return",E);case 15:case"end":return v.stop()}},K,null,[[3,10]])})),g.apply(this,arguments)}function i(K,E,j){return Z.apply(this,arguments)}function Z(){return Z=O()(N()().mark(function K(E,j,w){var D;return N()().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(E){G.next=2;break}return G.abrupt("return",{});case 2:if(typeof E!="function"){G.next=14;break}return G.prev=3,G.next=6,E(j,w);case 6:return D=G.sent,G.abrupt("return",D||{});case 10:return G.prev=10,G.t0=G.catch(3),console.error("Error resolving createModelOptions function:",G.t0),G.abrupt("return",{});case 14:return G.abrupt("return",E);case 15:case"end":return G.stop()}},K,null,[[3,10]])})),Z.apply(this,arguments)}var H={queue:[],timer:null,inflightByRun:new Map},Q=10;function ne(K){if(Array.isArray(K))return K.map(ne);if(k().isPlainObject(K)){var E=Object.entries(K).map(function(w){var D=M()(w,2),v=D[0],G=D[1];return[v,ne(G)]}),j=k().sortBy(E,function(w){var D=M()(w,1),v=D[0];return v});return Object.fromEntries(j)}return K}function ue(K){try{return JSON.stringify(ne(K))}catch{try{return JSON.stringify(K)}catch{return String(K)}}}function V(K,E){var j=H,w=K.runId||"GLOBAL",D=ue(E),v=j.inflightByRun.get(w);v||(v=new Map,j.inflightByRun.set(w,v));var G=v.get(D);if(G)return G;var Y,te,ee=new Promise(function(Ee,_e){Y=Ee,te=_e});v.set(D,ee);var X="".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2)),Ce={id:X,ctx:K,payload:E,resolve:Y,reject:te,runId:w,dedupKey:D};j.queue.push(Ce);var Se=function(){var Ee=O()(N()().mark(function _e(){var re,me,oe,ie,Pe,De,ce,Ie,ye,pe,ge,fe,Oe,Te,Fe,Ae,$e,Ne,nt,He,je,Je,ke,Be,Ke,le,xe,Ge,Ve,lt,ct,Et,Qe;return N()().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:if(me=j.queue.splice(0,j.queue.length),j.timer=null,me.length){_t.next=4;break}return _t.abrupt("return");case 4:if(oe=(re=me[0].ctx)===null||re===void 0?void 0:re.api,oe){_t.next=9;break}ie=S()(me);try{for(ie.s();!(Pe=ie.n()).done;){De=Pe.value;try{De.resolve(De.payload.template)}catch(en){De.reject(en)}finally{(ce=j.inflightByRun.get(De.runId))===null||ce===void 0||ce.delete(De.dedupKey)}}}catch(en){ie.e(en)}finally{ie.f()}return _t.abrupt("return");case 9:return _t.prev=9,pe=me.map(function(en){return{id:en.id,template:en.payload.template,contextParams:en.payload.contextParams||{}}}),_t.next=13,oe.request({method:"POST",url:"variables:resolve",data:{values:{batch:pe}}});case 13:ge=_t.sent,fe=(Ie=ge.data)!==null&&Ie!==void 0?Ie:ge,Oe=(ye=fe.data)!==null&&ye!==void 0?ye:fe,Te=Oe==null?void 0:Oe.results,Fe=Array.isArray(Te)?Te:Array.isArray(Oe)?Oe:[],Ae=new Map,$e=S()(Fe);try{for($e.s();!(Ne=$e.n()).done;)nt=Ne.value,He=(nt==null?void 0:nt.id)!=null?String(nt.id):"",He&&Ae.set(He,nt==null?void 0:nt.data)}catch(en){$e.e(en)}finally{$e.f()}je=S()(me);try{for(je.s();!(Je=je.n()).done;){ke=Je.value;try{Be=String(ke.id),Ke=Ae.has(Be)?Ae.get(Be):ke.payload.template,ke.resolve(Ke)}catch(en){ke.reject(en)}finally{(le=j.inflightByRun.get(ke.runId))===null||le===void 0||le.delete(ke.dedupKey)}}}catch(en){je.e(en)}finally{je.f()}_t.next=29;break;case 25:_t.prev=25,_t.t0=_t.catch(9),xe=S()(me);try{for(xe.s();!(Ge=xe.n()).done;){Ve=Ge.value;try{K==null||(lt=K.logger)===null||lt===void 0||(ct=(Et=lt).warn)===null||ct===void 0||ct.call(Et,{err:_t.t0},"variables:resolve(batch) failed, fallback"),Ve.resolve(Ve.payload.template)}catch(en){Ve.reject(en)}finally{(Qe=j.inflightByRun.get(Ve.runId))===null||Qe===void 0||Qe.delete(Ve.dedupKey)}}}catch(en){xe.e(en)}finally{xe.f()}case 29:case"end":return _t.stop()}},_e,null,[[9,25]])}));return function(){return Ee.apply(this,arguments)}}();return j.timer||(j.timer=setTimeout(Se,Q)),ee}function p(K,E){return b.apply(this,arguments)}function b(){return b=O()(N()().mark(function K(E,j){var w;return N()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return w=function(){var G=O()(N()().mark(function Y(te){var ee,X,Ce,Se,Ee,_e;return N()().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(!(typeof te=="string"&&/\{\{.*?\}\}/.test(te))){me.next=4;break}return me.next=3,A(te,j);case 3:return me.abrupt("return",me.sent);case 4:if(!Array.isArray(te)){me.next=6;break}return me.abrupt("return",Promise.all(te.map(w)));case 6:if(!(te&&x()(te)==="object")){me.next=18;break}ee={},X=0,Ce=Object.entries(te);case 9:if(!(X<Ce.length)){me.next=17;break}return Se=M()(Ce[X],2),Ee=Se[0],_e=Se[1],me.next=13,w(_e);case 13:ee[Ee]=me.sent;case 14:X++,me.next=9;break;case 17:return me.abrupt("return",ee);case 18:return me.abrupt("return",te);case 19:case"end":return me.stop()}},Y)}));return function(te){return G.apply(this,arguments)}}(),v.abrupt("return",w(E));case 2:case"end":return v.stop()}},K)})),b.apply(this,arguments)}function R(K,E){return y.apply(this,arguments)}function y(){return y=O()(N()().mark(function K(E,j){var w,D;return N()().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,z(E.trim(),j);case 2:return w=G.sent,G.next=5,j.runjs("return ".concat(w),{t:j.t});case 5:return D=G.sent,G.abrupt("return",D!=null&&D.success?D.value:void 0);case 7:case"end":return G.stop()}},K)})),y.apply(this,arguments)}function z(K,E){return c.apply(this,arguments)}function c(){return c=O()(N()().mark(function K(E,j){var w,D,v,G,Y,te,ee,X,Ce,Se,Ee,_e,re,me,oe,ie,Pe,De,ce,Ie,ye,pe,ge,fe,Oe,Te;return N()().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:for(w=/ctx\.([a-zA-Z_$][a-zA-Z0-9_$]*(?:(?:\.[a-zA-Z_$][a-zA-Z0-9_$]*)|(?:\[[^\]]+\]))*)(?!\s*\()/g,D=[],v=new Set;(G=w.exec(E))!==null;)Y=G[0],te=G[1],ee=te.match(/^([a-zA-Z_$][a-zA-Z0-9_$]*)/),ee&&(X=ee[1],Ce=te.substring(X.length),D.push({fullPath:Y,firstKey:X,restPath:Ce}),v.add(X));if(D.length!==0){Ae.next=6;break}return Ae.abrupt("return",E);case 6:Se=new Map,Ee=S()(v),Ae.prev=8,Ee.s();case 10:if((_e=Ee.n()).done){Ae.next=25;break}return re=_e.value,Ae.prev=12,Ae.next=15,j[re];case 15:me=Ae.sent,oe=me&&me.__isRecordProxy__===!0,Se.set(re,oe),Ae.next=23;break;case 20:Ae.prev=20,Ae.t0=Ae.catch(12),Se.set(re,!1);case 23:Ae.next=10;break;case 25:Ae.next=30;break;case 27:Ae.prev=27,Ae.t1=Ae.catch(8),Ee.e(Ae.t1);case 30:return Ae.prev=30,Ee.f(),Ae.finish(30);case 33:for(D.sort(function($e,Ne){return Ne.fullPath.length-$e.fullPath.length}),ie=E,Pe=0,De=D;Pe<De.length;Pe++)ce=De[Pe],Ie=ce.fullPath,ye=ce.firstKey,pe=ce.restPath,ge=Se.get(ye)||!1,fe=void 0,pe===""?fe="await ctx.".concat(ye):fe=ge?"await (await ctx.".concat(ye,")").concat(pe):"(await ctx.".concat(ye,")").concat(pe),Oe=Ie.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Te=new RegExp("\\b".concat(Oe,"\\b"),"g"),ie=ie.replace(Te,fe);return Ae.abrupt("return",ie);case 37:case"end":return Ae.stop()}},K,null,[[8,27,30,33],[12,20]])})),c.apply(this,arguments)}function A(K,E){return U.apply(this,arguments)}function U(){return U=O()(N()().mark(function K(E,j){var w,D,v,G,Y,te,ee,X,Ce,Se,Ee,_e,re,me;return N()().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(w=function(De){var ce=De.trim().match(/^ctx\.([a-zA-Z_$][a-zA-Z0-9_$]*)(?:\.([a-zA-Z_$][a-zA-Z0-9_$-]*(?:\.[a-zA-Z_$][a-zA-Z0-9_$-]*)*))?$/);return ce?ce[2]?"".concat(ce[1],".").concat(ce[2]):ce[1]:null},D=function(){var Pe=O()(N()().mark(function De(ce){var Ie,ye,pe;return N()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(Ie=ce.split("."),ye=Ie.shift(),ye){fe.next=4;break}return fe.abrupt("return",void 0);case 4:return fe.next=6,j[ye];case 6:if(pe=fe.sent,Ie.length!==0){fe.next=9;break}return fe.abrupt("return",pe);case 9:return fe.abrupt("return",(0,W.Bb)(pe,Ie.join(".")));case 10:case"end":return fe.stop()}},De)}));return function(ce){return Pe.apply(this,arguments)}}(),v=function(){var Pe=O()(N()().mark(function De(ce){var Ie,ye;return N()().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:if(Ie=w(ce),!Ie){ge.next=10;break}return ge.next=4,D(Ie);case 4:if(ye=ge.sent,!(ye===void 0&&Ie.includes("-"))){ge.next=9;break}return ge.next=8,R(ce,j);case 8:return ge.abrupt("return",ge.sent);case 9:return ge.abrupt("return",ye);case 10:return ge.next=12,R(ce,j);case 12:return ge.abrupt("return",ge.sent);case 13:case"end":return ge.stop()}},De)}));return function(ce){return Pe.apply(this,arguments)}}(),G=E.match(/^\s*\{\{\s*([^{}]+?)\s*\}\}\s*$/),!G){ie.next=9;break}return Y=G[1],ie.next=8,v(Y);case 8:return ie.abrupt("return",ie.sent);case 9:te=P()(E.matchAll(/\{\{\s*(.+?)\s*\}\}/g)),ee=E,X=S()(te),ie.prev=12,X.s();case 14:if((Ce=X.n()).done){ie.next=22;break}return Se=M()(Ce.value,2),Ee=Se[0],_e=Se[1],ie.next=18,v(_e);case 18:re=ie.sent,re!==void 0&&(me=x()(re)==="object"&&re!==null?JSON.stringify(re):String(re),ee=ee.replace(Ee,me));case 20:ie.next=14;break;case 22:ie.next=27;break;case 24:ie.prev=24,ie.t0=ie.catch(12),X.e(ie.t0);case 27:return ie.prev=27,X.f(),ie.finish(27);case 30:return ie.abrupt("return",ee);case 31:case"end":return ie.stop()}},K,null,[[12,24,27,30]])})),U.apply(this,arguments)}},42554:function(Ut,Re,e){"use strict";e.d(Re,{O:function(){return de},P:function(){return P}});function de(ve,x){if(!ve||typeof ve!="string")throw new Error("invalid url");var h=ve.trim();if(h.startsWith("http://")||h.startsWith("https://"))return h;var N=window.__esm_cdn_base_url__||"https://esm.sh",J=x!=null&&x.addSuffix&&window.__esm_cdn_suffix__||"",S=N.replace(/\/$/,""),I=h.replace(/^\//,"");if(x!=null&&x.raw){var M=I.includes("?")?"&":"?";return"".concat(S,"/").concat(I).concat(M,"raw")}return"".concat(S,"/").concat(I).concat(J)}function P(ve){if(!ve||typeof ve!="string")return!1;var x=ve.split("?")[0].split("#")[0];return x.endsWith(".css")}},24342:function(Ut,Re,e){"use strict";e.d(Re,{IA:function(){return Q},T:function(){return Z},YB:function(){return ue},cI:function(){return f},q3:function(){return k},sF:function(){return ne},uh:function(){return H}});var de=e(15009),P=e.n(de),ve=e(52677),x=e.n(ve),h=e(99289),N=e.n(h),J=e(19632),S=e.n(J),I=e(97857),M=e.n(I),B=e(96695),O=e.n(B);function W(){var p,b,R=globalThis;if((p=R.__nocobaseRunJSSafeGlobalsRegistry)!==null&&p!==void 0&&p.windowAllow&&(b=R.__nocobaseRunJSSafeGlobalsRegistry)!==null&&b!==void 0&&b.documentAllow)return R.__nocobaseRunJSSafeGlobalsRegistry;var y={windowAllow:new Set,documentAllow:new Set};return R.__nocobaseRunJSSafeGlobalsRegistry=y,y}function f(p){if(p){var b=W(),R=O()(p),y;try{for(R.s();!(y=R.n()).done;){var z=y.value;if(typeof z=="string"){var c=z.trim();c&&b.windowAllow.add(c)}}}catch(A){R.e(A)}finally{R.f()}}}function k(p){if(p){var b=W(),R=O()(p),y;try{for(R.s();!(y=R.n()).done;){var z=y.value;if(typeof z=="string"){var c=z.trim();c&&b.documentAllow.add(c)}}}catch(A){R.e(A)}finally{R.f()}}}function T(){var p=globalThis;if(p.__nocobaseRunJSSafeGlobalsRegistry)try{var b,R,y,z;(b=p.__nocobaseRunJSSafeGlobalsRegistry.windowAllow)===null||b===void 0||(R=b.clear)===null||R===void 0||R.call(b),(y=p.__nocobaseRunJSSafeGlobalsRegistry.documentAllow)===null||y===void 0||(z=y.clear)===null||z===void 0||z.call(y)}catch{}}function g(p){return W().windowAllow.has(p)}function i(p){return W().documentAllow.has(p)}function Z(p){var b=function(){return"".concat(window.location.origin).concat(window.location.pathname)},R=function(K,E,j){var w=function(ee){try{var X=new URL(ee,b()),Ce=X.protocol.toLowerCase();return Ce==="about:"?X.href==="about:blank":Ce==="http:"||Ce==="https:"}catch{return!1}};if(!w(K))throw new Error("Unsafe URL: window.open only allows http/https/about:blank.");var D="_blank",v=function(ee){var X=new Set;return ee&&ee.split(",").map(function(Ce){return Ce.trim()}).filter(Boolean).forEach(function(Ce){var Se=Ce.split("=")[0].trim().toLowerCase();Se!=="noopener"&&Se!=="noreferrer"&&X.add(Ce)}),X.add("noopener"),X.add("noreferrer"),Array.from(X).join(",")},G=v(j),Y=window.open.call(window,K,D,G);if(Y&&"opener"in Y)try{Y.opener=null}catch{}return Y},y=function(K,E){var j=new URL(K,b()),w=j.protocol.toLowerCase(),D=w==="about:"&&j.href==="about:blank",v=w==="http:"||w==="https:";if(!v&&!D)throw new Error("Unsafe URL: only http/https/about:blank are allowed.");if(D)return E!=null&&E.replace?window.location.replace("about:blank"):window.location.assign("about:blank");var G=j.protocol===window.location.protocol&&j.hostname===window.location.hostname&&j.port===window.location.port;if(G)return E!=null&&E.replace?window.location.replace(j.href):window.location.assign(j.href);var Y=R(j.href);if(!Y)throw new Error("Popup blocked: cross-origin navigation is opened in a new tab.")},z=new Proxy({},{get:function(K,E){switch(E){case"origin":return window.location.origin;case"protocol":return window.location.protocol;case"host":return window.location.host;case"hostname":return window.location.hostname;case"port":return window.location.port;case"pathname":return window.location.pathname;case"assign":return function(j){return y(j,{replace:!1})};case"replace":return function(j){return y(j,{replace:!0})};case"reload":return window.location.reload.bind(window.location);case"href":throw new Error("Reading location.href is not allowed.");default:throw new Error('Access to location property "'.concat(E,'" is not allowed.'))}},set:function(K,E,j){if(E==="href")return y(String(j),{replace:!1}),!0;throw new Error("Mutation on location is not allowed.")}}),c=M()(M()(M()({setTimeout:window.setTimeout.bind(window),clearTimeout:window.clearTimeout.bind(window),setInterval:window.setInterval.bind(window),clearInterval:window.clearInterval.bind(window),console,Math,Date,FormData},typeof Blob<"u"?{Blob}:{}),typeof URL<"u"?{URL}:{}),{},{addEventListener:addEventListener.bind(window),open:R,location:z},p||{}),A=Object.create(null);return new Proxy(A,{get:function(K,E){if(typeof E!="string")return Reflect.get(K,E);if(E in c)return c[E];if(Object.prototype.hasOwnProperty.call(K,E))return K[E];if(g(E)){var j=window[E];return typeof j=="function"?j.bind(window):j}throw new Error('Access to global property "'.concat(E,'" is not allowed.'))},set:function(K,E,j){if(typeof E!="string")return Reflect.set(K,E,j),!0;if(E in c)throw new Error('Mutation of global property "'.concat(E,'" is not allowed.'));return K[E]=j,!0},has:function(K,E){return typeof E!="string"?Reflect.has(K,E):!!(E in c||Object.prototype.hasOwnProperty.call(K,E)||g(E))}})}function H(p){var b=M()({createElement:document.createElement.bind(document),querySelector:document.querySelector.bind(document),querySelectorAll:document.querySelectorAll.bind(document)},p||{}),R=Object.create(null);return new Proxy(R,{get:function(z,c){if(typeof c!="string")return Reflect.get(z,c);if(c in b)return b[c];if(Object.prototype.hasOwnProperty.call(z,c))return z[c];if(i(c)){var A=document[c];return typeof A=="function"?A.bind(document):A}throw new Error('Access to document property "'.concat(c,'" is not allowed.'))},set:function(z,c,A){if(typeof c!="string")return Reflect.set(z,c,A),!0;if(c in b)throw new Error('Mutation of document property "'.concat(c,'" is not allowed.'));return z[c]=A,!0},has:function(z,c){return typeof c!="string"?Reflect.has(z,c):!!(c in b||Object.prototype.hasOwnProperty.call(z,c)||i(c))}})}function Q(p){var b,R=typeof window<"u"&&window.navigator||void 0,y={},z=R==null||(b=R.clipboard)===null||b===void 0?void 0:b.writeText;typeof z=="function"&&(y.writeText=z.bind(R.clipboard));var c={clipboard:y};return Object.defineProperty(c,"onLine",{get:function(){return!!(R!=null&&R.onLine)},enumerable:!0,configurable:!1}),Object.defineProperty(c,"language",{get:function(){return R==null?void 0:R.language},enumerable:!0,configurable:!1}),Object.defineProperty(c,"languages",{get:function(){return R!=null&&R.languages?S()(R.languages):void 0},enumerable:!0,configurable:!1}),Object.assign(c,p||{}),new Proxy({},{get:function(U,K){if(K in c)return c[K];throw new Error('Access to navigator property "'.concat(String(K),'" is not allowed.'))}})}function ne(p){var b={};try{var R=Q();b.navigator=R;try{b.window=Z({navigator:R})}catch{}}catch{}try{b.document=H()}catch{}return p?M()(M()({},b),p):b}function ue(p,b,R,y){return V.apply(this,arguments)}function V(){return V=N()(P()().mark(function p(b,R,y,z){var c;return P()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:if(!(!b||x()(b)!=="object"&&typeof b!="function")){U.next=2;break}return U.abrupt("return",void 0);case 2:if(c=b.runjs,typeof c=="function"){U.next=5;break}return U.abrupt("return",void 0);case 5:return U.abrupt("return",b.runjs(R,ne(z),y));case 6:case"end":return U.stop()}},p)})),V.apply(this,arguments)}},19433:function(Ut,Re,e){"use strict";e.d(Re,{A:function(){return M}});var de=e(19632),P=e.n(de),ve=e(52677),x=e.n(ve),h=e(5574),N=e.n(h);function J(B){var O={};return Object.entries(B||{}).forEach(function(W){var f=N()(W,2),k=f[0],T=f[1];typeof T<"u"&&T!==null&&(O[k]=T)}),O}function S(B,O,W){try{var f,k,T,g,i,Z=(f=B.dataSourceManager)===null||f===void 0||(k=f.getDataSource)===null||k===void 0?void 0:k.call(f,O||"main"),H=Z==null||(T=Z.collectionManager)===null||T===void 0||(g=T.getCollection)===null||g===void 0?void 0:g.call(T,W),Q=H==null||(i=H.getPrimaryKey)===null||i===void 0?void 0:i.call(H);return Q||"id"}catch{return"id"}}function I(B,O){var W,f;if(O){var k=O.dataSourceKey||"main",T=O.collection||((W=O.record)===null||W===void 0?void 0:W.__collectionName);if(T){var g=S(B,k,T)||"id",i=typeof O.filterByTk<"u"?O.filterByTk:typeof O.id<"u"?O.id:(f=O.record)===null||f===void 0?void 0:f[g];if(!(typeof i>"u"))return J({collection:T,filterByTk:i,dataSourceKey:k,associationName:O.associationName,sourceId:O.sourceId,fields:O.fields,appends:O.appends})}}}function M(B){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=function(g){return!g||x()(g)!=="object"?!1:typeof g.collection=="string"&&(typeof g.filterByTk<"u"||typeof g.id<"u"||g.record)},f={},k=function T(g,i){if(W(g)){var Z=I(B,g);if(Z){var H=i.join(".");f[H]=Z}return}if(Array.isArray(g)){for(var Q=0;Q<g.length;Q++)T(g[Q],[].concat(P()(i),[String(Q)]));return}if(g&&x()(g)==="object"){for(var ne=0,ue=Object.entries(g);ne<ue.length;ne++){var V=N()(ue[ne],2),p=V[0],b=V[1];T(b,[].concat(P()(i),[p]))}return}};return k(O,[]),Object.keys(f).length?f:void 0}},2991:function(Ut,Re,e){"use strict";e.d(Re,{Z:function(){return h}});var de=e(5574),P=e.n(de),ve=e(52677),x=e.n(ve);function h(N,J,S,I){var M={},B={},O=function(k){if(Object.prototype.hasOwnProperty.call(J,k)){var T=J[k],g={};if(T.uiSchema&&x()(T.uiSchema)==="object")for(var i=0,Z=Object.entries(T.uiSchema);i<Z.length;i++){var H=P()(Z[i],2),Q=H[0],ne=H[1];if(ne&&x()(ne)==="object"){var ue,V=ne;g[Q]={type:V.type||"any",title:V.title||((ue=V["x-decorator-props"])===null||ue===void 0?void 0:ue.label)||Q,interface:V["x-component"],uiSchema:V}}}var p=Object.keys(g).length>0;B[k]={type:"object",title:N.t(T.title)||k,display:p?"default":"none",properties:p?{params:{type:"object",title:"Parameters",display:"flatten",properties:g}}:void 0},M[k]={get params(){return S.getStepParams(I,k)||{}},get uiSchema(){return T.uiSchema},result:void 0}}};for(var W in J)O(W);N.defineProperty("steps",{get:function(){return M}})}},16184:function(Ut,Re,e){"use strict";e.d(Re,{D8:function(){return g},N3:function(){return p},RB:function(){return ne},Yp:function(){return Z},_6:function(){return ue},a9:function(){return Q},gn:function(){return V},lP:function(){return k},o3:function(){return T},p7:function(){return f},sg:function(){return W}});var de=e(97857),P=e.n(de),ve=e(15009),x=e.n(ve),h=e(99289),N=e.n(h),J=e(80770),S=e(19433),I=e(81886),M=e(54393),B=e(96486),O=e.n(B);function W(R){var y,z,c,A,U,K=R.resource,E=R.collection,j=R.record,w=(E==null?void 0:E.name)||(K==null||(y=K.getResourceName)===null||y===void 0?void 0:y.call(K)),D=(E==null?void 0:E.dataSourceKey)||(K==null||(z=K.getDataSourceKey)===null||z===void 0?void 0:z.call(K)),v=(c=K==null||(A=K.getFilterByTk)===null||A===void 0?void 0:A.call(K))!==null&&c!==void 0?c:E==null||(U=E.getFilterByTK)===null||U===void 0?void 0:U.call(E,j);if(!(!w||typeof v>"u"||v===null)){var G=String(w).split("."),Y=G[G.length-1];return{collection:Y,dataSourceKey:D,filterByTk:v}}}function f(R){var y,z,c,A=R.view;if(A){var U=(A==null?void 0:A.inputArgs)||{},K=(U==null?void 0:U.collectionName)||(A==null||(y=A.record)===null||y===void 0?void 0:y.collection),E=(U==null?void 0:U.dataSourceKey)||(A==null||(z=A.record)===null||z===void 0?void 0:z.dataSourceKey)||"main",j=(U==null?void 0:U.filterByTk)||(A==null||(c=A.record)===null||c===void 0?void 0:c.filterByTk),w=U==null?void 0:U.associationName,D=U==null?void 0:U.sourceId;if(!(!K||typeof j>"u"||j===null))return{collection:K,dataSourceKey:E,filterByTk:j,sourceId:D,associationName:w}}}function k(R,y){var z,c,A,U=(z=R.inputArgs)===null||z===void 0?void 0:z.record,K=(c=R.collection)===null||c===void 0?void 0:c.filterTargetKey;if(!(!U||!K)){var E=y.view,j=E==null||(A=E.inputArgs)===null||A===void 0?void 0:A.filterByTk,w=U[K];if(!(j==null||w==null)&&j===w)return O().cloneDeep(U)}}function T(R,y){return function(z){var c,A,U,K;if(!(z==="record"||z.startsWith("record.")))return!1;var E=y();if(!E)return!0;if(z==="record")return!1;var j=f(R),w=j==null?void 0:j.collection,D=(j==null?void 0:j.dataSourceKey)||"main";if(!w)return!0;var v=(c=R.dataSourceManager)===null||c===void 0||(A=c.getDataSource)===null||A===void 0?void 0:A.call(c,D),G=v==null||(U=v.collectionManager)===null||U===void 0||(K=U.getCollection)===null||K===void 0?void 0:K.call(U,w);if(!G)return!0;var Y=(0,M.V)(function(){return G},function(){return E}),te=z.startsWith("record.")?z.slice(7):"";return te?Y(te):!1}}function g(R,y){var z=(0,M.V)(R,function(){return y()});return function(c){var A=y();if(!A)return!0;if(!c)return!1;var U=R();if(!c.includes(".")){var K,E,j=c,w;if(U&&(typeof U.getField=="function"&&(w=U.getField(j)),!w&&typeof U.getFields=="function")){var D=U.getFields()||[];w=D.find(function(Y){return(Y==null?void 0:Y.name)===j})}var v=!!((K=w)!==null&&K!==void 0&&(E=K.isAssociationField)!==null&&E!==void 0&&E.call(K));if(!v)return!1;var G=A==null?void 0:A[j];return G==null}return z(c)}}function i(R){var y,z,c,A,U=R.resource,K=((y=R.collection)===null||y===void 0?void 0:y.dataSourceKey)||(U==null||(z=U.getDataSourceKey)===null||z===void 0?void 0:z.call(U)),E=U==null||(c=U.getResourceName)===null||c===void 0?void 0:c.call(U),j=U==null||(A=U.getSourceId)===null||A===void 0?void 0:A.call(U);if(!(!E||typeof j>"u"||j===null)){var w=String(E).split(".");if(!(w.length<2))return{collection:w[0],dataSourceKey:K,filterByTk:j}}}function Z(R,y,z){return H.apply(this,arguments)}function H(){return H=N()(x()().mark(function R(y,z,c){var A;return x()().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,(0,I.L)(y,z,!0)();case 2:if(A=K.sent,A){K.next=5;break}return K.abrupt("return",null);case 5:return K.abrupt("return",P()(P()({},A),{},{buildVariablesParams:function(j){return c?c(j):W(j)}}));case 6:case"end":return K.stop()}},R)})),H.apply(this,arguments)}function Q(R,y,z){var c=function(){var A=N()(x()().mark(function U(){return x()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",Z(R,y,z));case 1:case"end":return E.stop()}},U)}));return function(){return A.apply(this,arguments)}}();return c.title=y,c}function ne(R,y,z){var c,A,U=z!=null&&z.title?((c=R.t)===null||c===void 0?void 0:c.call(R,z.title))||z.title:((A=R.t)===null||A===void 0?void 0:A.call(R,"Current record"))||"Current record";return Q(y,U,function(K){return W(K)})}var ue=J._6,V=J.gn;function p(R,y){return b.apply(this,arguments)}function b(){return b=N()(x()().mark(function R(y,z){var c,A,U,K,E,j,w,D,v,G,Y,te;return x()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(c=(0,J.gn)(z)||{},A=Object.keys(c),A.length){X.next=4;break}return X.abrupt("return",void 0);case 4:U={},K=0,E=A;case 6:if(!(K<E.length)){X.next=37;break}if(w=E[K],D=(j=y.getPropertyOptions)===null||j===void 0?void 0:j.call(y,w),v=D==null?void 0:D.meta,v){X.next=12;break}return X.abrupt("continue",34);case 12:if(G=void 0,X.prev=13,typeof v!="function"){X.next=20;break}return X.next=17,v();case 17:X.t0=X.sent,X.next=21;break;case 20:X.t0=v;case 21:if(Y=X.t0,te=Y==null?void 0:Y.buildVariablesParams,typeof te!="function"){X.next=27;break}return X.next=26,te(y);case 26:G=X.sent;case 27:X.next=33;break;case 29:return X.prev=29,X.t1=X.catch(13),X.t1,X.abrupt("continue",34);case 33:G&&(U[w]=G);case 34:K++,X.next=6;break;case 37:return X.abrupt("return",(0,S.A)(y,U));case 38:case"end":return X.stop()}},R,null,[[13,29]])})),b.apply(this,arguments)}},43333:function(Ut,Re,e){"use strict";e.d(Re,{QO:function(){return De},K8:function(){return Pe},k9:function(){return Be},Rh:function(){return G},yT:function(){return Se},qt:function(){return Ie},Sv:function(){return Te}});var de=e(5574),P=e.n(de),ve=e(97857),x=e.n(ve),h=e(15009),N=e.n(h),J=e(99289),S=e.n(J),I=e(67294),M=e(22424),B=e(48890),O=e(67946),W=e(43992),f=e(52677),k=e.n(f),T=e(16184);function g(Ke){if(Ke===null||_typeof(Ke)!=="object")return!1;var le=Object.getPrototypeOf(Ke);return le===Object.prototype||le===null}function i(Ke,le,xe){var Ge=_typeof(Ke);return Ke==null?{type:"any",title:le}:Array.isArray(Ke)?{type:"array",title:le,properties:function(){var Ve=_asyncToGenerator(_regeneratorRuntime().mark(function ct(){var Et,Qe,gt,_t;return _regeneratorRuntime().wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:for(Et=Math.min(Ke.length||0,10),Qe={},gt=xe??new WeakSet,_t=0;_t<Et;_t++)Qe[String(_t)]=i(Ke[_t],"#".concat(_t),gt);return hn.abrupt("return",Qe);case 5:case"end":return hn.stop()}},ct)}));function lt(){return Ve.apply(this,arguments)}return lt}()}:Ge==="string"?{type:"string",title:le}:Ge==="number"?{type:"number",title:le}:Ge==="boolean"?{type:"boolean",title:le}:Ge==="object"&&g(Ke)?{type:"object",title:le,properties:function(){var Ve=_asyncToGenerator(_regeneratorRuntime().mark(function ct(){var Et,Qe;return _regeneratorRuntime().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:if(Et=xe??new WeakSet,!Et.has(Ke)){_t.next=3;break}return _t.abrupt("return",{});case 3:return Et.add(Ke),Qe={},Object.keys(Ke||{}).forEach(function(en){Qe[en]=i(Ke[en],en,Et)}),_t.abrupt("return",Qe);case 7:case"end":return _t.stop()}},ct)}));function lt(){return Ve.apply(this,arguments)}return lt}()}:{type:"any",title:le}}function Z(Ke,le){var xe=function(hn){return Ke.t(hn)},Ge=function(hn){var gn,bn;if(!hn)return!1;var Rt=Array.isArray((gn=hn.navigation)===null||gn===void 0?void 0:gn.viewStack)?hn.navigation.viewStack:[],Ze=hn==null||(bn=hn.inputArgs)===null||bn===void 0?void 0:bn.openerUids,Ft=Array.isArray(Ze)&&Ze.length>0;return Rt.length>=2||Ft},Ve=function(){return Ge(le??Ke.view)},lt=function(){var en=S()(N()().mark(function hn(gn){var bn,Rt,Ze;return N()().wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(bn=le??gn.view,!(!bn||!Ge(bn))){Ct.next=3;break}return Ct.abrupt("return",void 0);case 3:return Ct.next=5,H(gn,bn);case 5:if(Rt=Ct.sent,Ze=Rt==null?void 0:Rt.resource,!(Ze!=null&&Ze.collectionName&&Ze.filterByTk!=null)){Ct.next=9;break}return Ct.abrupt("return",{collection:Ze.collectionName,dataSourceKey:Ze.dataSourceKey||"main",filterByTk:Ze.filterByTk,associationName:Ze.associationName,sourceId:Ze.sourceId});case 9:return Ct.abrupt("return",(0,T.p7)(gn));case 10:case"end":return Ct.stop()}},hn)}));return function(gn){return en.apply(this,arguments)}}(),ct=function(){var en=S()(N()().mark(function hn(){var gn,bn,Rt,Ze,Ft,Ct;return N()().wrap(function(St){for(;;)switch(St.prev=St.next){case 0:return St.next=2,lt(Ke);case 2:if(Ft=St.sent,Ft!=null&&Ft.collection){St.next=5;break}return St.abrupt("return",null);case 5:return Ct=(gn=Ke.dataSourceManager)===null||gn===void 0||(bn=gn.getDataSource)===null||bn===void 0?void 0:bn.call(gn,Ft.dataSourceKey||"main"),St.abrupt("return",(Ct==null||(Rt=Ct.collectionManager)===null||Rt===void 0||(Ze=Rt.getCollection)===null||Ze===void 0?void 0:Ze.call(Rt,Ft.collection))||null);case 7:case"end":return St.stop()}},hn)}));return function(){return en.apply(this,arguments)}}(),Et=function(){var en=S()(N()().mark(function hn(gn,bn){var Rt,Ze,Ft,Ct,bt,St,zt,An,xn,un,Sn,jn,wt,Nt,yr,vn,hr,Tr,Kr,Or;return N()().wrap(function(Ir){for(;;)switch(Ir.prev=Ir.next){case 0:if(Ir.prev=0,St=bn||Ke,zt=(Rt=St.view)===null||Rt===void 0?void 0:Rt.navigation,An=Array.isArray(zt==null?void 0:zt.viewStack)?zt.viewStack:[],!(An.length<2||gn<1)){Ir.next=6;break}return Ir.abrupt("return",void 0);case 6:if(xn=An.length-1-gn,!(xn<0)){Ir.next=9;break}return Ir.abrupt("return",void 0);case 9:if(un=An[xn],un!=null&&un.viewUid){Ir.next=12;break}return Ir.abrupt("return",void 0);case 12:if(Sn=(Ze=St.engine)===null||Ze===void 0?void 0:Ze.getModel(un.viewUid,!0),Sn){Ir.next=23;break}return Ir.prev=14,Ir.next=17,St.engine.loadModel({uid:un.viewUid});case 17:Sn=Ir.sent,Ir.next=23;break;case 20:Ir.prev=20,Ir.t0=Ir.catch(14),(jn=St.logger||Ke.logger)===null||jn===void 0||(wt=jn.warn)===null||wt===void 0||wt.call(jn,{err:Ir.t0},"[FlowEngine] popup.getParentRecordRef loadModel failed");case 23:if(Nt=((Ft=Sn)===null||Ft===void 0||(Ct=Ft.getStepParams)===null||Ct===void 0?void 0:Ct.call(Ft,"popupSettings","openView"))||{},yr=Nt==null?void 0:Nt.collectionName,vn=(Nt==null?void 0:Nt.dataSourceKey)||"main",hr=(bt=un==null?void 0:un.filterByTk)!==null&&bt!==void 0?bt:un==null?void 0:un.sourceId,!(!yr||typeof hr>"u"||hr===null)){Ir.next=29;break}return Ir.abrupt("return",void 0);case 29:return Tr={collection:yr,dataSourceKey:vn,filterByTk:hr,sourceId:un==null?void 0:un.sourceId,associationName:Nt==null?void 0:Nt.associationName},Ir.abrupt("return",Tr);case 33:return Ir.prev=33,Ir.t1=Ir.catch(0),(Kr=(bn==null?void 0:bn.logger)||Ke.logger)===null||Kr===void 0||(Or=Kr.warn)===null||Or===void 0||Or.call(Kr,{err:Ir.t1},"[FlowEngine] popup.getParentRecordRef failed"),Ir.abrupt("return",void 0);case 37:case"end":return Ir.stop()}},hn,null,[[0,33],[14,20]])}));return function(gn,bn){return en.apply(this,arguments)}}(),Qe=function(hn){try{var gn,bn=(gn=le??Ke.view)===null||gn===void 0?void 0:gn.navigation,Rt=Array.isArray(bn==null?void 0:bn.viewStack)?bn.viewStack:[];return Rt.length>=hn+1}catch{return!1}},gt=function(hn){var gn=function(){var Rt={type:"object",title:xe("Parent popup"),disabled:function(){return!Qe(hn)},disabledReason:function(){return Qe(hn)?void 0:xe("No parent popup")},hidden:function(){return!Qe(hn)},properties:function(){var Ze=S()(N()().mark(function Ct(){var bt,St,zt,An,xn;return N()().wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return Sn.next=2,Et(hn);case 2:if(bt=Sn.sent,St={},St.uid={type:"string",title:xe("Popup uid")},!bt){Sn.next=13;break}return zt=function(){try{var jn,wt,Nt,yr,vn=(jn=Ke.dataSourceManager)===null||jn===void 0||(wt=jn.getDataSource)===null||wt===void 0?void 0:wt.call(jn,bt.dataSourceKey||"main");return(vn==null||(Nt=vn.collectionManager)===null||Nt===void 0||(yr=Nt.getCollection)===null||yr===void 0?void 0:yr.call(Nt,bt.collection||""))||null}catch{return null}}(),Sn.next=9,(0,T.Yp)(function(){return zt},xe("Popup record"),function(){return bt});case 9:An=Sn.sent,St.record=An||{type:"object",title:xe("Popup record")},Sn.next=14;break;case 13:St.record={type:"object",title:xe("Popup record")};case 14:return xn={type:"object",title:xe("Data source"),properties:function(){var jn=S()(N()().mark(function Nt(){return N()().wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:return vn.abrupt("return",{dataSourceKey:{type:"string",title:xe("Data source key")},collectionName:{type:"string",title:xe("Collection name")},associationName:{type:"string",title:xe("Association name")},filterByTk:{type:"string",title:xe("filterByTk")},sourceId:{type:"string",title:xe("sourceId")}});case 1:case"end":return vn.stop()}},Nt)}));function wt(){return jn.apply(this,arguments)}return wt}()},St.resource=xn,Sn.abrupt("return",St);case 17:case"end":return Sn.stop()}},Ct)}));function Ft(){return Ze.apply(this,arguments)}return Ft}()};return Rt};return gn.title=xe("Parent popup"),gn},_t=function(){var hn={type:"object",title:xe("Current popup"),disabled:function(){return!Ve()},hidden:function(){return!Ve()},buildVariablesParams:function(){var gn=S()(N()().mark(function Rt(Ze){var Ft,Ct,bt,St,zt,An,xn,un,Sn,jn,wt,Nt,yr,vn,hr,Tr,Kr,Or,Er;return N()().wrap(function(Br){for(;;)switch(Br.prev=Br.next){case 0:if(Ve()){Br.next=2;break}return Br.abrupt("return",void 0);case 2:return Br.next=4,lt(Ze);case 4:if(Ct=Br.sent,bt=(Ft=Ze.view)===null||Ft===void 0?void 0:Ft.inputArgs,St={},Ct&&(zt=x()({},Ct),!zt.associationName&&bt!==null&&bt!==void 0&&bt.associationName&&(zt.associationName=bt.associationName),typeof zt.sourceId>"u"&&typeof(bt==null?void 0:bt.sourceId)<"u"&&(zt.sourceId=bt==null?void 0:bt.sourceId),St.record=zt),Br.prev=8,xn=(An=Ze.view)===null||An===void 0?void 0:An.navigation,un=Array.isArray(xn==null?void 0:xn.viewStack)?xn.viewStack:[],!(un.length>=2)){Br.next=27;break}return Sn=St,jn=1,Br.next=16,Et(jn,Ze);case 16:wt=Br.sent;case 17:if(!wt){Br.next=27;break}return Sn.parent||(Sn.parent={}),Sn.parent.record=wt,Sn=Sn.parent,jn+=1,Br.next=24,Et(jn,Ze);case 24:wt=Br.sent,Br.next=17;break;case 27:Br.next=32;break;case 29:Br.prev=29,Br.t0=Br.catch(8),(Nt=Ze.logger)===null||Nt===void 0||(yr=Nt.debug)===null||yr===void 0||yr.call(Nt,{err:Br.t0},"[FlowEngine] buildVariablesParams: build parent-chain failed");case 32:try{vn=bt==null?void 0:bt.sourceId,hr=bt==null?void 0:bt.associationName,Tr=(bt==null?void 0:bt.dataSourceKey)||"main",vn!=null&&vn!==""&&hr&&typeof hr=="string"&&(Kr=String(hr).split(".")[0],Kr&&(St.sourceRecord={collection:Kr,dataSourceKey:Tr,filterByTk:vn}))}catch(xo){(Or=Ze.logger)===null||Or===void 0||(Er=Or.debug)===null||Er===void 0||Er.call(Or,{err:xo},"[FlowEngine] buildVariablesParams: infer sourceRecord failed")}return Br.abrupt("return",St);case 34:case"end":return Br.stop()}},Rt,null,[[8,29]])}));function bn(Rt){return gn.apply(this,arguments)}return bn}(),properties:function(){var gn=S()(N()().mark(function Rt(){var Ze,Ft,Ct,bt,St,zt,An,xn,un,Sn,jn,wt,Nt,yr,vn,hr,Tr,Kr,Or,Er,Ir,Br,xo,qo;return N()().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:return Ze={},Ze.uid={type:"string",title:xe("Popup uid")},kn.next=4,lt(Ke);case 4:if(Ft=kn.sent,Ft&&(Ct=function(){var Ot=S()(N()().mark(function Zt(){var Mt;return N()().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,ct();case 2:if(Mt=At.sent,Mt){At.next=5;break}return At.abrupt("return",null);case 5:return At.next=7,(0,T.Yp)(function(){return Mt},xe("Current popup record"),function(vt){return lt(vt)});case 7:return At.abrupt("return",At.sent);case 8:case"end":return At.stop()}},Zt)}));return function(){return Ot.apply(this,arguments)}}(),Ct.title=xe("Current popup record"),Ct.hasChildren=!0,Ze.record=Ct),kn.prev=6,St=(bt=Ke.view)===null||bt===void 0?void 0:bt.inputArgs,zt=St==null?void 0:St.sourceId,An=St==null?void 0:St.associationName,xn=(St==null?void 0:St.dataSourceKey)||"main",!(!An||typeof An!="string"||!An.includes("."))){kn.next=24;break}if(Sn=(un=Ke.view)===null||un===void 0?void 0:un.navigation,jn=Array.isArray(Sn==null?void 0:Sn.viewStack)?Sn.viewStack:[],wt=jn==null?void 0:jn[jn.length-1],!(wt!=null&&wt.viewUid)){kn.next=24;break}if(hr=Ke==null||(Nt=Ke.engine)===null||Nt===void 0?void 0:Nt.getModel(wt.viewUid,!0),hr){kn.next=21;break}return kn.next=20,Ke.engine.loadModel({uid:wt.viewUid});case 20:hr=kn.sent;case 21:Tr=((yr=hr)===null||yr===void 0||(vn=yr.getStepParams)===null||vn===void 0?void 0:vn.call(yr,"popupSettings","openView"))||{},An=(Tr==null?void 0:Tr.associationName)||An,xn=(Tr==null?void 0:Tr.dataSourceKey)||xn;case 24:if(!(zt!=null&&zt!==""&&An&&typeof An=="string")){kn.next=32;break}if(Kr=String(An).includes(".")?String(An).split(".")[0]:void 0,!Kr){kn.next=32;break}return Or=function(){try{var Zt,Mt,at,At,vt=(Zt=Ke.dataSourceManager)===null||Zt===void 0||(Mt=Zt.getDataSource)===null||Mt===void 0?void 0:Mt.call(Zt,xn);return(vt==null||(at=vt.collectionManager)===null||at===void 0||(At=at.getCollection)===null||At===void 0?void 0:At.call(at,Kr))||null}catch{return null}},kn.next=30,(0,T.Yp)(Or,xe("Current popup parent record"),function(){return{collection:Kr,dataSourceKey:xn,filterByTk:zt}});case 30:Er=kn.sent,Er&&(Ze.sourceRecord=Er);case 32:kn.next=37;break;case 34:kn.prev=34,kn.t0=kn.catch(6),(Ir=Ke.logger)===null||Ir===void 0||(Br=Ir.debug)===null||Br===void 0||Br.call(Ir,{err:kn.t0},"[FlowEngine] popup.properties: build sourceRecord failed");case 37:return xo={type:"object",title:xe("Data source"),properties:function(){var Ot=S()(N()().mark(function Mt(){return N()().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.abrupt("return",{dataSourceKey:{type:"string",title:xe("Data source key")},collectionName:{type:"string",title:xe("Collection name")},associationName:{type:"string",title:xe("Association name")},filterByTk:{type:"string",title:xe("filterByTk")},sourceId:{type:"string",title:xe("sourceId")}});case 1:case"end":return At.stop()}},Mt)}));function Zt(){return Ot.apply(this,arguments)}return Zt}()},Ze.resource=xo,kn.next=41,Et(1);case 41:return qo=kn.sent,qo&&(Ze.parent=gt(1)),kn.abrupt("return",Ze);case 44:case"end":return kn.stop()}},Rt,null,[[6,34]])}));function bn(){return gn.apply(this,arguments)}return bn}()};return hn};return _t.title=xe("Current popup"),_t.sort=975,_t}function H(Ke,le){return Q.apply(this,arguments)}function Q(){return Q=S()(N()().mark(function Ke(le,xe){var Ge,Ve,lt,ct,Et,Qe,gt,_t,en,hn,gn,bn;return N()().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:if(lt=xe==null?void 0:xe.navigation,ct=Array.isArray(lt==null?void 0:lt.viewStack)?lt.viewStack:[],Et=xe==null||(Ge=xe.inputArgs)===null||Ge===void 0?void 0:Ge.openerUids,Qe=Array.isArray(Et)&&Et.length>0,gt=ct.length>=2,_t=gt||Qe,_t){Ze.next=8;break}return Ze.abrupt("return",void 0);case 8:if(ct.length){Ze.next=14;break}if(en=(xe==null?void 0:xe.inputArgs)||{},hn=en.collectionName||en.filterByTk!=null||en.sourceId!=null||en.associationName||en.viewUid,hn){Ze.next=13;break}return Ze.abrupt("return",void 0);case 13:return Ze.abrupt("return",{uid:en.viewUid,resource:{dataSourceKey:en.dataSourceKey||"main",collectionName:en.collectionName,associationName:en.associationName,filterByTk:en.filterByTk,sourceId:en.sourceId}});case 14:return gn=function(){var Ft=S()(N()().mark(function Ct(bt){var St,zt,An,xn,un,Sn,jn,wt,Nt,yr,vn,hr,Tr,Kr;return N()().wrap(function(Er){for(;;)switch(Er.prev=Er.next){case 0:if(!(bt<0||!((St=ct[bt])!==null&&St!==void 0&&St.viewUid))){Er.next=2;break}return Er.abrupt("return",void 0);case 2:if(jn=ct[bt].viewUid,wt=(zt=le.engine)===null||zt===void 0?void 0:zt.getModel(jn,!0),wt){Er.next=8;break}return Er.next=7,(Nt=le.engine)===null||Nt===void 0?void 0:Nt.loadModel({uid:jn});case 7:wt=Er.sent;case 8:return yr=((An=wt)===null||An===void 0||(xn=An.getStepParams)===null||xn===void 0?void 0:xn.call(An,"popupSettings","openView"))||{},vn=yr==null?void 0:yr.collectionName,hr=(yr==null?void 0:yr.dataSourceKey)||"main",Tr={uid:jn,resource:{dataSourceKey:hr,collectionName:vn,associationName:yr==null?void 0:yr.associationName,filterByTk:(un=ct[bt])===null||un===void 0?void 0:un.filterByTk,sourceId:(Sn=ct[bt])===null||Sn===void 0?void 0:Sn.sourceId}},Er.next=14,gn(bt-1);case 14:return Kr=Er.sent,Kr&&(Tr.parent=Kr),Er.abrupt("return",Tr);case 17:case"end":return Er.stop()}},Ct)}));return function(bt){return Ft.apply(this,arguments)}}(),Ze.next=17,gn(((xe==null||(Ve=xe.navigation)===null||Ve===void 0||(Ve=Ve.viewStack)===null||Ve===void 0?void 0:Ve.length)||1)-1);case 17:return bn=Ze.sent,Ze.abrupt("return",bn);case 19:case"end":return Ze.stop()}},Ke)})),Q.apply(this,arguments)}function ne(Ke,le){var xe=/^(?:record|sourceRecord)(?:\.|$)|^parent(?:\.parent)*(?:\.(?:record|sourceRecord))(?:\.|$)/;Ke.defineProperty("popup",{get:function(){var Ge=S()(N()().mark(function lt(){return N()().wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return Et.abrupt("return",H(Ke,le));case 1:case"end":return Et.stop()}},lt)}));function Ve(){return Ge.apply(this,arguments)}return Ve}(),meta:Z(Ke,le),resolveOnServer:function(Ve){try{return!!Ve&&xe.test(Ve)}catch{return!1}}})}var ue=e(13769),V=e.n(ue),p=e(5914),b=e(85893),R=["afterClose","footer","header","hidden"],y=(0,I.forwardRef)(function(Ke,le){var xe,Ge=Ke.afterClose,Ve=Ke.footer,lt=Ke.header,ct=Ke.hidden,Et=V()(Ke,R),Qe=(0,I.useState)(!0),gt=P()(Qe,2),_t=gt[0],en=gt[1],hn=(0,I.useState)(Et),gn=P()(hn,2),bn=gn[0],Rt=gn[1],Ze=(0,I.useState)(function(){return Ve}),Ft=P()(Ze,2),Ct=Ft[0],bt=Ft[1],St=(0,I.useState)(lt),zt=P()(St,2),An=zt[0],xn=zt[1];(0,I.useImperativeHandle)(le,function(){return{destroy:function(){en(!1),Ge==null||Ge()},update:function(wt){return Rt(function(Nt){return x()(x()({},Nt),wt)})},setFooter:function(wt){bt(wt)},setHeader:function(wt){Object.values(wt||{}).length===0?xn(null):xn(wt)}}});var un=x()(x()({},bn),{},{title:(An==null?void 0:An.title)||bn.title,extra:An==null?void 0:An.extra,footer:Ct!==void 0?Ct:(xe=bn.footer)!==null&&xe!==void 0?xe:null}),Sn=I.useMemo(function(){return document.querySelector("#nocobase-app-container")},[]);return(0,b.jsx)(p.Z,x()(x()({closable:!1,rootClassName:ct?"nb-hidden":"",getContainer:Sn},un),{},{open:_t,onCancel:bn.onCancel,afterClose:function(){Ge==null||Ge()},children:bn.children}))}),z=y,c=e(19632),A=e.n(c);function U(){var Ke=I.useState([]),le=P()(Ke,2),xe=le[0],Ge=le[1],Ve=I.useCallback(function(lt){return Ge(function(ct){return[].concat(A()(ct),[lt])}),function(){Ge(function(ct){return ct.filter(function(Et){return Et!==lt})})}},[]);return[xe,Ve]}var K=e(84995),E=e(24084),j=e(67940);function w(Ke,le){return D.apply(this,arguments)}function D(){return D=S()(N()().mark(function Ke(le,xe){var Ge,Ve;return N()().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:if(!xe.force){ct.next=2;break}return ct.abrupt("return",!0);case 2:return ct.next=4,(Ge=le.beforeClose)===null||Ge===void 0?void 0:Ge.call(le,xe);case 4:return Ve=ct.sent,ct.abrupt("return",Ve!==!1);case 6:case"end":return ct.stop()}},Ke)})),D.apply(this,arguments)}var v=0;function G(){var Ke=I.useRef(null),le=function(lt,ct){var Et,Qe,gt,_t=ct==null?void 0:ct.engine;v+=1;var en=I.createRef(),hn,gn,bn=new Promise(function(wt){gn=wt}),Rt=null,Ze=null,Ft=function(Nt){var yr=Nt.children;return I.useEffect(function(){var vn;return Rt=yr,(vn=en.current)===null||vn===void 0||vn.setFooter(yr),function(){var hr;Rt=null,(hr=en.current)===null||hr===void 0||hr.setFooter(null)}},[yr]),null},Ct=function(Nt){return I.useEffect(function(){var yr;return Ze=Nt,(yr=en.current)===null||yr===void 0||yr.setHeader(Nt),function(){var vn;Ze=null,(vn=en.current)===null||vn===void 0||vn.setHeader(null)}},[Nt]),null},bt=new O.iT,St=(0,j.$)(ct.engine),zt=(0,K.GA)(_t,St);bt.defineProperty("engine",{value:St}),bt.addDelegate(St.context),lt.inheritContext!==!1?bt.addDelegate(ct):bt.addDelegate(ct.engine.context);var An=!1,xn={type:"dialog",inputArgs:lt.inputArgs||{},preventClose:!!lt.preventClose,beforeClose:void 0,destroy:function(Nt){var yr,vn,hr,Tr,Kr,Or;if(!An){An=!0,(yr=lt.onClose)===null||yr===void 0||yr.call(lt),(vn=en.current)===null||vn===void 0||vn.destroy(),(hr=hn)===null||hr===void 0||hr(),(Tr=gn)===null||Tr===void 0||Tr(Nt);var Er=zt==null?void 0:zt.emitter;(0,K.YB)(Er),Er==null||(Kr=Er.emit)===null||Kr===void 0||Kr.call(Er,K.cn,{type:"dialog",viewUid:xn==null||(Or=xn.inputArgs)===null||Or===void 0?void 0:Or.viewUid}),St.unlinkFromStack()}},update:function(Nt){var yr;return(yr=en.current)===null||yr===void 0?void 0:yr.update(Nt)},close:function(){var wt=S()(N()().mark(function yr(vn,hr){var Tr,Kr;return N()().wrap(function(Er){for(;;)switch(Er.prev=Er.next){case 0:if(!(lt.preventClose&&!hr)){Er.next=2;break}return Er.abrupt("return",!1);case 2:return Er.next=4,w(xn,{result:vn,force:hr});case 4:if(Kr=Er.sent,Kr){Er.next=7;break}return Er.abrupt("return",!1);case 7:if(!(lt.triggerByRouter&&(Tr=lt.inputArgs)!==null&&Tr!==void 0&&(Tr=Tr.navigation)!==null&&Tr!==void 0&&Tr.back)){Er.next=10;break}return lt.inputArgs.navigation.back(),Er.abrupt("return",!0);case 10:return xn.destroy(vn),Er.abrupt("return",!0);case 12:case"end":return Er.stop()}},yr)}));function Nt(yr,vn){return wt.apply(this,arguments)}return Nt}(),Footer:Ft,Header:Ct,setFooter:function(Nt){var yr;Rt=Nt,(yr=en.current)===null||yr===void 0||yr.setFooter(Nt)},setHeader:function(Nt){var yr;Ze=Nt,(yr=en.current)===null||yr===void 0||yr.setHeader(Nt)},navigation:(Et=lt.inputArgs)===null||Et===void 0?void 0:Et.navigation,get record(){return(0,T.lP)(ct,bt)}};bt.defineProperty("view",{get:function(){return xn},resolveOnServer:(0,T.o3)(bt,function(){return(0,T.lP)(ct,bt)})}),St.setDestroyView(function(){var wt;lt.triggerByRouter&&(wt=lt.inputArgs)!==null&&wt!==void 0&&(wt=wt.navigation)!==null&&wt!==void 0&&wt.back&&lt.inputArgs.navigation.back(),xn.destroy()}),ne(bt,xn);var un=(0,B.observer)(function(){var wt,Nt,yr=I.useRef(!1),vn=typeof lt.content=="function"?lt.content(xn,bt):lt.content,hr=typeof vn=="string"?(0,b.jsx)("div",{dangerouslySetInnerHTML:{__html:M.Z.sanitize(vn)}}):vn;return I.useEffect(function(){var Tr;(Tr=lt.onOpen)===null||Tr===void 0||Tr.call(lt,xn,bt)},[]),(wt=lt.inputArgs)!==null&&wt!==void 0&&(wt=wt.hidden)!==null&&wt!==void 0&&wt.value&&!yr.current?null:(yr.current=!0,(0,b.jsx)(z,x()(x()({className:"nb-dialog-overflow-hidden",ref:en,hidden:(Nt=lt.inputArgs)===null||Nt===void 0||(Nt=Nt.hidden)===null||Nt===void 0?void 0:Nt.value,footer:Rt,header:Ze},lt),{},{onCancel:function(){xn.close(lt.result)},children:hr})))},{displayName:"DialogWithContext"}),Sn=(lt==null||(Qe=lt.inputArgs)===null||Qe===void 0?void 0:Qe.viewUid)||"page-".concat(v),jn=(0,b.jsx)(E.r6,{engine:St,children:(0,b.jsx)(W.Y5,{context:bt,children:(0,b.jsx)(un,{})})},Sn);return hn=(gt=Ke.current)===null||gt===void 0?void 0:gt.patchElement(jn),Object.assign(bn,xn)},xe=I.useMemo(function(){return{open:le}},[]),Ge=I.memo(I.forwardRef(function(Ve,lt){var ct=U(),Et=P()(ct,2),Qe=Et[0],gt=Et[1];return I.useImperativeHandle(lt,function(){return{patchElement:gt}},[gt]),(0,b.jsx)(b.Fragment,{children:Qe})}));return[xe,(0,b.jsx)(Ge,{ref:Ke},"dialog-holder")]}var Y=e(95012),te=e(54182),ee=["children","footer","title","extra","hidden","isMobile"],X=I.forwardRef(function(Ke,le){var xe,Ge=Ke.children,Ve=Ke.footer,lt=Ke.title,ct=Ke.extra,Et=Ke.hidden,Qe=Ke.isMobile,gt=V()(Ke,ee),_t=I.useState(!0),en=P()(_t,2),hn=en[0],gn=en[1],bn=I.useState(function(){return Ve}),Rt=P()(bn,2),Ze=Rt[0],Ft=Rt[1],Ct=I.useState(x()({title:lt,extra:ct},gt.header)),bt=P()(Ct,2),St=bt[0],zt=bt[1];I.useImperativeHandle(le,function(){return{destroy:function(){gn(!1)},update:function(un){Object.assign(gt,un)},setFooter:function(un){Ft(un)},setHeader:function(un){Object.values(un||{}).length===0?zt(null):zt(un)}}},[]);var An=I.useMemo(function(){return document.querySelector("#nocobase-app-container")},[]);return Qe?(0,b.jsx)(te.E,x()(x()(x()({className:Et?"nb-hidden":"",visible:hn},gt),{},{footer:Ze},St),{},{onClose:gt.onClose,children:Ge})):(0,b.jsx)(Y.Z,x()(x()(x()({rootClassName:Et?"nb-hidden":"",closable:!1,getContainer:An},gt),{},{open:hn,footer:Ze,styles:x()(x()({},gt.styles),{},{footer:x()({display:"flex",justifyContent:"flex-end"},(xe=gt.styles)===null||xe===void 0?void 0:xe.footer)})},St),{},{onClose:gt.onClose,children:Ge}))}),Ce=X;function Se(){var Ke=I.useRef(null),le=I.useMemo(function(){return B.observable.shallow({value:[]})},[]),xe=I.memo(function(ct){var Et=ct.index,Qe=I.useState(null),gt=P()(Qe,2),_t=gt[0],en=gt[1];return I.useEffect(function(){(0,B.autorun)(function(){var hn=le.value;hn[Et]&&_t!==hn[Et]&&en(hn[Et]),hn[Et]||en(null)})},[_t,Et]),_t?(0,b.jsx)(_t,{children:(0,b.jsx)(xe,{index:Et+1})}):null});xe.displayName="RenderNestedDrawer";var Ge=function(Et,Qe){var gt,_t,en=Qe.engine,hn=I.createRef(),gn,bn,Rt=new Promise(function(wt){bn=wt}),Ze=null,Ft=null,Ct=function(Nt){var yr=Nt.children;return I.useEffect(function(){var vn;return Ze=yr,(vn=hn.current)===null||vn===void 0||vn.setFooter(yr),function(){var hr;Ze=null,(hr=hn.current)===null||hr===void 0||hr.setFooter(null)}},[yr]),null},bt=function(Nt){return I.useEffect(function(){var yr;return Ft=Nt,(yr=hn.current)===null||yr===void 0||yr.setHeader(Nt),function(){var vn;Ft=null,(vn=hn.current)===null||vn===void 0||vn.setHeader(null)}},[Nt]),null},St=new O.iT,zt=(0,j.$)(Qe.engine),An=(0,K.GA)(en,zt);St.defineProperty("engine",{value:zt}),St.addDelegate(zt.context),Et.inheritContext!==!1?St.addDelegate(Qe):St.addDelegate(Qe.engine.context);var xn=!1,un={type:"drawer",inputArgs:Et.inputArgs||{},preventClose:!!Et.preventClose,beforeClose:void 0,destroy:function(Nt){var yr,vn,hr,Tr,Kr,Or;if(!xn){xn=!0,(yr=Et.onClose)===null||yr===void 0||yr.call(Et),(vn=hn.current)===null||vn===void 0||vn.destroy(),(hr=gn)===null||hr===void 0||hr(),(Tr=bn)===null||Tr===void 0||Tr(Nt);var Er=An==null?void 0:An.emitter;(0,K.YB)(Er),Er==null||(Kr=Er.emit)===null||Kr===void 0||Kr.call(Er,K.cn,{type:"drawer",viewUid:un==null||(Or=un.inputArgs)===null||Or===void 0?void 0:Or.viewUid}),zt.unlinkFromStack()}},update:function(Nt){var yr;return(yr=hn.current)===null||yr===void 0?void 0:yr.update(Nt)},close:function(){var wt=S()(N()().mark(function yr(vn,hr){var Tr,Kr;return N()().wrap(function(Er){for(;;)switch(Er.prev=Er.next){case 0:if(!(Et.preventClose&&!hr)){Er.next=2;break}return Er.abrupt("return",!1);case 2:return Er.next=4,w(un,{result:vn,force:hr});case 4:if(Kr=Er.sent,Kr){Er.next=7;break}return Er.abrupt("return",!1);case 7:if(!(Et.triggerByRouter&&(Tr=Et.inputArgs)!==null&&Tr!==void 0&&(Tr=Tr.navigation)!==null&&Tr!==void 0&&Tr.back)){Er.next=10;break}return Et.inputArgs.navigation.back(),Er.abrupt("return",!0);case 10:return un.destroy(vn),Er.abrupt("return",!0);case 12:case"end":return Er.stop()}},yr)}));function Nt(yr,vn){return wt.apply(this,arguments)}return Nt}(),Footer:Ct,Header:bt,setFooter:function(Nt){var yr;Ze=Nt,(yr=hn.current)===null||yr===void 0||yr.setFooter(Nt)},setHeader:function(Nt){var yr;Ft=Nt,(yr=hn.current)===null||yr===void 0||yr.setHeader(Nt)},navigation:(gt=Et.inputArgs)===null||gt===void 0?void 0:gt.navigation,get record(){return(0,T.lP)(Qe,St)}};St.defineProperty("view",{get:function(){return un},resolveOnServer:(0,T.o3)(St,function(){return(0,T.lP)(Qe,St)})}),zt.setDestroyView(function(){var wt;Et.triggerByRouter&&(wt=Et.inputArgs)!==null&&wt!==void 0&&(wt=wt.navigation)!==null&&wt!==void 0&&wt.back&&Et.inputArgs.navigation.back(),un.destroy()}),ne(St,un);var Sn=I.memo((0,B.observer)(function(wt){var Nt,yr,vn=I.useRef(!1),hr=typeof Et.content=="function"?Et.content(un,St):Et.content,Tr=typeof hr=="string"?(0,b.jsx)("div",{dangerouslySetInnerHTML:{__html:M.Z.sanitize(hr)}}):hr;return I.useEffect(function(){var Kr;(Kr=Et.onOpen)===null||Kr===void 0||Kr.call(Et,un,St)},[]),(Nt=Et.inputArgs)!==null&&Nt!==void 0&&(Nt=Nt.hidden)!==null&&Nt!==void 0&&Nt.value&&!vn.current?(0,b.jsx)(b.Fragment,{children:wt.children}):(vn.current=!0,(0,b.jsxs)(Ce,x()(x()({ref:hn},Et),{},{footer:Ze,header:Et.header||Ft,hidden:(yr=Et.inputArgs)===null||yr===void 0||(yr=yr.hidden)===null||yr===void 0?void 0:yr.value,onClose:function(){un.close(Et.result)},isMobile:St.isMobileLayout,children:[Tr,wt.children]})))}));Sn.displayName="DrawerWithContext";var jn=I.memo(function(wt){var Nt=wt.children;return(0,b.jsx)(E.r6,{engine:zt,children:(0,b.jsx)(W.Y5,{context:St,children:(0,b.jsx)(Sn,{children:Nt})})})});return jn.displayName="RenderDrawer",gn=(_t=Ke.current)===null||_t===void 0?void 0:_t.patchElement(jn),Object.assign(Rt,un)},Ve=I.useMemo(function(){return{open:Ge}},[]),lt=I.memo(I.forwardRef(function(ct,Et){var Qe=U(),gt=P()(Qe,2),_t=gt[0],en=gt[1];return I.useImperativeHandle(Et,function(){return{patchElement:en}},[en]),I.useEffect(function(){le.value=_t},[_t]),(0,b.jsx)(xe,{index:0})}));return[Ve,(0,b.jsx)(lt,{ref:Ke},"drawer-holder")]}var Ee=e(73935),_e=e(73475),re=e(83622),me=(0,I.forwardRef)(function(Ke,le){var xe=I.useState({}),Ge=P()(xe,2),Ve=Ge[0],lt=Ge[1],ct=x()(x()({},Ke),Ve),Et=ct.visible,Qe=Et===void 0?!0:Et,gt=ct.footer,_t=gt===void 0?null:gt,en=ct.header,hn=en===void 0?null:en,gn=ct.children,bn=ct.hidden,Rt=ct.title,Ze=ct.styles,Ft=Ze===void 0?{}:Ze,Ct=ct.zIndex,bt=Ct===void 0?4:Ct,St=(0,I.useRef)(!1),zt=(0,E.Zr)(),An=(0,I.useState)(function(){return _t}),xn=P()(An,2),un=xn[0],Sn=xn[1],jn=(0,I.useState)(hn),wt=P()(jn,2),Nt=wt[0],yr=wt[1];(0,I.useImperativeHandle)(le,function(){return{destroy:function(){St.current||(St.current=!0)},update:function(Or){lt(Or)},setFooter:function(Or){Sn(Or)},setHeader:function(Or){Object.values(Or||{}).length===0?yr(null):yr(Or)}}});var vn=(0,I.useMemo)(function(){return{display:bn?"none":"flex",flexDirection:"column",height:"100%",zIndex:bt}},[bn,bt]),hr=(0,I.useMemo)(function(){if(!Nt&&!Rt)return null;var Kr=Nt||{},Or=Kr.title,Er=Or===void 0?Rt:Or,Ir=Kr.extra,Br=zt.context.themeToken;return(0,b.jsxs)("div",{style:x()({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"".concat(Br.paddingSM,"px ").concat(Br.padding,"px"),borderBottom:"1px solid ".concat(Br.colorSplit),backgroundColor:Br.colorBgContainer},Ft.header),children:[(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:Br.marginXS},children:[(0,b.jsx)(re.ZP,{type:"text",size:"small",icon:(0,b.jsx)(_e.Z,{}),onClick:function(){if(!St.current){var qo;St.current=!0,(qo=Ke.onClose)===null||qo===void 0||qo.call(Ke)}},style:{color:Br.colorTextTertiary}}),Er&&(0,b.jsx)("div",{style:{fontSize:Br.fontSizeLG,fontWeight:Br.fontWeightStrong,color:Br.colorText},children:Er})]}),Ir&&(0,b.jsx)("div",{children:Ir})]})},[Nt,Rt,zt.context.themeToken,Ft.header,Ke.onClose]),Tr=(0,I.useMemo)(function(){if(!un)return null;var Kr=zt.context.themeToken;return(0,b.jsx)("div",{style:x()({display:"flex",justifyContent:"flex-end",alignItems:"center",padding:"".concat(Kr.paddingXS,"px ").concat(Kr.padding,"px"),borderTop:"1px solid ".concat(Kr.colorSplit),backgroundColor:Kr.colorBgContainer},Ft.footer),children:un})},[un,zt.context.themeToken,Ft.footer]);return Qe?(0,b.jsxs)("div",{style:x()(x()({},vn),Ft.content),children:[hr,(0,b.jsx)("div",{style:x()({flex:1,overflowY:"auto"},Ft.body),children:gn}),Tr]}):null}),oe=["target","content","preventClose","inheritContext","inputArgs"],ie=0,Pe="nocobase-embed-container",De="nocobaseEmbedReplacing",ce=I.memo(I.forwardRef(function(Ke,le){var xe=U(),Ge=P()(xe,2),Ve=Ge[0],lt=Ge[1];return I.useImperativeHandle(le,function(){return{patchElement:lt}},[lt]),(0,b.jsx)(b.Fragment,{children:Ve})}));function Ie(){var Ke=I.useRef(null),le=I.useRef(null),xe=function(lt,ct){var Et,Qe=ct==null?void 0:ct.engine;ie+=1;var gt=I.createRef(),_t,en,hn=new Promise(function(Kr){en=Kr}),gn=function(Or){var Er=Or.children;return I.useEffect(function(){var Ir;return(Ir=gt.current)===null||Ir===void 0||Ir.setFooter(Er),function(){var Br;(Br=gt.current)===null||Br===void 0||Br.setFooter(null)}},[Er]),null},bn=function(Or){return I.useEffect(function(){var Er;return(Er=gt.current)===null||Er===void 0||Er.setHeader(Or),function(){var Ir;(Ir=gt.current)===null||Ir===void 0||Ir.setHeader(null)}},[Or]),null},Rt=lt.target,Ze=lt.content,Ft=lt.preventClose,Ct=lt.inheritContext,bt=Ct===void 0?!0:Ct,St=lt.inputArgs,zt=St===void 0?{}:St,An=V()(lt,oe),xn=Rt instanceof HTMLElement&&Rt.id===Pe;if(xn&&le.current)try{Rt.dataset[De]="1",le.current.destroy()}finally{delete Rt.dataset[De],le.current=null}var un=new O.iT,Sn=(0,j.$)(ct.engine),jn=(0,K.GA)(Qe,Sn);un.defineProperty("engine",{value:Sn}),un.addDelegate(Sn.context),bt?un.addDelegate(ct):un.addDelegate(ct.engine.context);var wt={type:"embed",inputArgs:zt,preventClose:!!lt.preventClose,beforeClose:void 0,destroy:function(Or){var Er,Ir,Br,xo,qo;(Er=lt.onClose)===null||Er===void 0||Er.call(lt),(Ir=en)===null||Ir===void 0||Ir(Or),(Br=gt.current)===null||Br===void 0||Br.destroy(),(xo=_t)===null||xo===void 0||xo(),xn&&(le.current=null);var uo=xn&&Rt instanceof HTMLElement&&((qo=Rt.dataset)===null||qo===void 0?void 0:qo[De])==="1";if(!uo){var kn,Ot,Zt=jn==null?void 0:jn.emitter;(0,K.YB)(Zt),Zt==null||(kn=Zt.emit)===null||kn===void 0||kn.call(Zt,K.cn,{type:"embed",viewUid:wt==null||(Ot=wt.inputArgs)===null||Ot===void 0?void 0:Ot.viewUid})}Sn.unlinkFromStack()},update:function(Or){var Er;return(Er=gt.current)===null||Er===void 0?void 0:Er.update(Or)},close:function(){var Kr=S()(N()().mark(function Er(Ir,Br){var xo,qo;return N()().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:if(!(Ft&&!Br)){kn.next=2;break}return kn.abrupt("return",!1);case 2:return kn.next=4,w(wt,{result:Ir,force:Br});case 4:if(qo=kn.sent,qo){kn.next=7;break}return kn.abrupt("return",!1);case 7:if(!(lt.triggerByRouter&&(xo=lt.inputArgs)!==null&&xo!==void 0&&(xo=xo.navigation)!==null&&xo!==void 0&&xo.back)){kn.next=10;break}return lt.inputArgs.navigation.back(),kn.abrupt("return",!0);case 10:return wt.destroy(Ir),kn.abrupt("return",!0);case 12:case"end":return kn.stop()}},Er)}));function Or(Er,Ir){return Kr.apply(this,arguments)}return Or}(),Header:bn,Footer:gn,setFooter:function(Or){var Er;(Er=gt.current)===null||Er===void 0||Er.setFooter(Or)},setHeader:function(Or){var Er;(Er=gt.current)===null||Er===void 0||Er.setHeader(Or)},navigation:(Et=lt.inputArgs)===null||Et===void 0?void 0:Et.navigation,get record(){return(0,T.lP)(ct,un)}};un.defineProperty("view",{get:function(){return wt},resolveOnServer:(0,T.o3)(un,function(){return(0,T.lP)(ct,un)})}),ne(un,wt);var Nt=(0,B.observer)(function(){var Kr,Or,Er=I.useRef(!1),Ir=I.useMemo(function(){return typeof Ze=="function"?Ze(wt,un):Ze},[]);return un.themeToken,I.useEffect(function(){var Br;(Br=lt.onOpen)===null||Br===void 0||Br.call(lt,wt,un)},[]),(Kr=lt.inputArgs)!==null&&Kr!==void 0&&(Kr=Kr.hidden)!==null&&Kr!==void 0&&Kr.value&&!Er.current?null:(Er.current=!0,(0,b.jsx)(me,x()(x()({ref:gt,hidden:(Or=lt.inputArgs)===null||Or===void 0||(Or=Or.hidden)===null||Or===void 0?void 0:Or.value},An),{},{onClose:function(){wt.close(lt.result)},children:Ir})))},{displayName:"PageWithContext"}),yr=(zt==null?void 0:zt.viewUid)||"page-".concat(ie),vn=(0,b.jsx)(E.r6,{engine:Sn,children:(0,b.jsx)(W.Y5,{context:un,children:(0,b.jsx)(Nt,{})})},yr);if(Rt&&Rt instanceof HTMLElement){var hr;_t=(hr=Ke.current)===null||hr===void 0?void 0:hr.patchElement(Ee.createPortal(vn,Rt,yr))}else{var Tr;_t=(Tr=Ke.current)===null||Tr===void 0?void 0:Tr.patchElement(vn)}return xn&&(le.current={destroy:wt.destroy}),Object.assign(hn,wt)},Ge=I.useMemo(function(){return{open:xe}},[]);return[Ge,(0,b.jsx)(ce,{ref:Ke},"page-holder")]}var ye=e(55241),pe=["afterClose","content","placement","rect"],ge=["target","placement","content"],fe=0,Oe=I.forwardRef(function(Ke,le){var xe,Ge,Ve,lt,ct=Ke.afterClose,Et=Ke.content,Qe=Ke.placement,gt=Ke.rect,_t=V()(Ke,pe),en=I.useState(!0),hn=P()(en,2),gn=hn[0],bn=hn[1],Rt=I.useState(x()({content:Et,placement:Qe,rect:gt},_t)),Ze=P()(Rt,2),Ft=Ze[0],Ct=Ze[1];return I.useImperativeHandle(le,function(){return{destroy:function(){return bn(!1)},update:function(St){return Ct(function(zt){return x()(x()({},zt),St)})},close:function(St,zt){return bn(!1)}}}),I.useEffect(function(){gn||ct==null||ct()},[gn,ct]),(0,b.jsx)(ye.Z,x()(x()({arrow:!1,open:gn,trigger:["click"],destroyTooltipOnHide:!0,content:Ft.content,placement:Ft.placement,getPopupContainer:function(){return document.querySelector("#nocobase-app-container")||document.body},onOpenChange:function(St){!St&&Ft.preventClose||(bn(St),St||ct==null||ct())}},Ft),{},{children:(0,b.jsx)("span",{style:{position:"absolute",top:((xe=(Ge=Ft.rect)===null||Ge===void 0?void 0:Ge.top)!==null&&xe!==void 0?xe:0)+window.scrollY,left:((Ve=(lt=Ft.rect)===null||lt===void 0?void 0:lt.left)!==null&&Ve!==void 0?Ve:0)+window.scrollX,width:0,height:0}})}))});function Te(){var Ke=I.useRef(null),le=function(lt){var ct,Et,Qe;fe+=1;var gt=lt.target,_t=lt.placement,en=_t===void 0?"rightTop":_t,hn=lt.content,gn=V()(lt,ge),bn=I.createRef(),Rt=(ct=gt==null||(Et=gt.getBoundingClientRect)===null||Et===void 0?void 0:Et.call(gt))!==null&&ct!==void 0?ct:{top:0,left:0},Ze,Ft,Ct=new Promise(function(xn){Ft=xn}),bt={type:"popover",destroy:function(){var un;return(un=bn.current)===null||un===void 0?void 0:un.destroy()},update:function(un){var Sn;return(Sn=bn.current)===null||Sn===void 0?void 0:Sn.update(un)},close:function(un){var Sn,jn;(Sn=Ft)===null||Sn===void 0||Sn(un),(jn=bn.current)===null||jn===void 0||jn.close(un)}},St=typeof hn=="function"?hn(bt):hn,zt=typeof St=="string"?(0,b.jsx)("div",{dangerouslySetInnerHTML:{__html:M.Z.sanitize(St)}}):St,An=(0,b.jsx)(Oe,x()({ref:bn,content:zt,placement:en,rect:Rt,afterClose:function(){var un,Sn,jn;(un=Ze)===null||un===void 0||un(),(Sn=lt.onClose)===null||Sn===void 0||Sn.call(lt),(jn=Ft)===null||jn===void 0||jn(lt.result)}},gn),"popover-".concat(fe));return Ze=(Qe=Ke.current)===null||Qe===void 0?void 0:Qe.patchElement(An),Object.assign(Ct,bt)},xe=I.useMemo(function(){return{open:le}},[]),Ge=I.memo(I.forwardRef(function(Ve,lt){var ct=U(),Et=P()(ct,2),Qe=Et[0],gt=Et[1];return I.useImperativeHandle(lt,function(){return{patchElement:gt}},[]),(0,b.jsx)(b.Fragment,{children:Qe})}));return[xe,(0,b.jsx)(Ge,{ref:Ke},"popover-holder")]}var Fe=e(12444),Ae=e.n(Fe),$e=e(72004),Ne=e.n($e),nt=e(9783),He=e.n(nt),je=e(90850);function Je(Ke){if(Ke==null)return"";if(Ke&&k()(Ke)==="object"&&!Array.isArray(Ke)){var le=Object.entries(Ke).map(function(xe){var Ge=P()(xe,2),Ve=Ge[0],lt=Ge[1];return"".concat(encodeURIComponent(String(Ve)),"=").concat(encodeURIComponent(String(lt)))});return encodeURIComponent(le.join("&"))}return encodeURIComponent(String(Ke))}function ke(Ke){if(!Ke||Ke.length===0)return"/admin";var le=["admin"];return Ke.forEach(function(xe,Ge){if(Ge>0&&le.push("view"),le.push(xe.viewUid),xe.tabUid&&le.push("tab",xe.tabUid),xe.filterByTk!=null){var Ve=Je(xe.filterByTk);Ve&&le.push("filterbytk",Ve)}xe.sourceId&&le.push("sourceid",xe.sourceId)}),"/"+le.join("/")}var Be=function(){function Ke(le,xe){Ae()(this,Ke),He()(this,"viewStack",void 0),He()(this,"ctx",void 0),He()(this,"viewParams",void 0),this.setViewStack(xe),this.ctx=le,(0,je.Ou)(this,{viewParams:je.LO})}return Ne()(Ke,[{key:"setViewStack",value:function(xe){this.viewStack=Object.freeze(A()(xe)),this.viewParams=this.viewStack[this.viewStack.length-1]||{}}},{key:"changeTo",value:function(xe){var Ge=this,Ve=this.viewStack.map(function(ct,Et){return Et===Ge.viewStack.length-1?x()(x()({},ct),xe):x()({},ct)}),lt=ke(Ve);this.ctx.router.navigate(lt,{replace:!0})}},{key:"navigateTo",value:function(xe,Ge){var Ve=ke([].concat(A()(this.viewStack),[xe])),lt=Ve;this.ctx.router.navigate(lt,Ge)}},{key:"back",value:function(){var xe=this.viewStack.slice(0,-1),Ge=ke(xe);this.ctx.router.navigate(Ge,{replace:!0})}}]),Ke}()},84995:function(Ut,Re,e){"use strict";e.d(Re,{Bq:function(){return x},GA:function(){return M},YB:function(){return J},_L:function(){return N},b$:function(){return ve},cn:function(){return P},tC:function(){return h},v6:function(){return de}});var de=Symbol.for("__NOCOBASE_VIEW_ACTIVATED_VERSION__"),P="view:activated",ve="dataSource:dirty",x="__NOCOBASE_ENGINE_SCOPE__",h="view";function N(B){var O=Reflect.get(B,de),W=typeof O=="number"?O:Number(O);return Number.isFinite(W)&&W>0?W:0}function J(B){var O=N(B);if(!Object.isExtensible(B))return O;var W=O+1;return Reflect.set(B,de,W),W}function S(B){return Reflect.get(B,x)===h}function I(B){for(var O=B,W=0;O&&W++<50;){if(S(O))return O;O=O.previousEngine}}function M(B,O){if(B){var W=I(B);if(W)return W;var f=O==null?void 0:O.previousEngine;return I(f)||B}}},44154:function(Ut,Re,e){"use strict";e.r(Re),e.d(Re,{APIClient:function(){return K},Auth:function(){return H},BaseStorage:function(){return R},LocalStorage:function(){return z},MemoryStorage:function(){return y},SessionStorage:function(){return c},getSubAppName:function(){return j},hasHeaderValue:function(){return Z}});var de=e(15009),P=e.n(de),ve=e(97857),x=e.n(ve),h=e(99289),N=e.n(h),J=e(13769),S=e.n(J),I=e(12444),M=e.n(I),B=e(72004),O=e.n(B),W=e(9783),f=e.n(W),k=e(87066),T=e(80129),g=e.n(T),i=function(D,v){if(D){var G=typeof D.toJSON=="function"?D.toJSON():D,Y=Object.keys(G||{}).find(function(te){return te.toLowerCase()===v.toLowerCase()});return Y?G[Y]:void 0}},Z=function(D,v){var G=i(D,v);return G!=null&&G!==""},H=function(){function w(D){M()(this,w),f()(this,"api",void 0),f()(this,"options",{locale:null,role:null,authenticator:null,token:null}),this.api=D,this.api.axios.interceptors.request.use(this.middleware.bind(this))}return O()(w,[{key:"storagePrefix",get:function(){return this.api.storagePrefix}},{key:"locale",get:function(){return this.getLocale()},set:function(v){this.setLocale(v)}},{key:"role",get:function(){return this.getRole()},set:function(v){this.setRole(v)}},{key:"token",get:function(){return this.getToken()},set:function(v){this.setToken(v)}},{key:"authenticator",get:function(){return this.getAuthenticator()},set:function(v){this.setAuthenticator(v)}},{key:"getOption",value:function(v){return this.api.storage.getItem(v)}},{key:"setOption",value:function(v,G){return this.options[v]=G,this.api.storage.setItem(v,G||"")}},{key:"getLocale",value:function(){return this.getOption("locale")}},{key:"setLocale",value:function(v){this.setOption("locale",v)}},{key:"getRole",value:function(){return this.getOption("role")}},{key:"setRole",value:function(v){this.setOption("role",v)}},{key:"getToken",value:function(){return this.getOption("token")}},{key:"setToken",value:function(v){this.setOption("token",v),this.api.app&&this.api.app.eventBus.dispatchEvent(new CustomEvent("auth:tokenChanged",{detail:{token:v,authenticator:this.authenticator}}))}},{key:"getAuthenticator",value:function(){return this.getOption("auth")}},{key:"setAuthenticator",value:function(v){this.setOption("auth",v)}},{key:"middleware",value:function(v){return this.locale&&(v.headers["X-Locale"]=this.locale),this.role&&(v.headers["X-Role"]=this.role),this.authenticator&&!Z(v.headers,"X-Authenticator")&&(v.headers["X-Authenticator"]=this.authenticator),this.token&&!Z(v.headers,"Authorization")&&(v.headers.Authorization="Bearer ".concat(this.token)),v}},{key:"signIn",value:function(){var D=N()(P()().mark(function G(Y,te){var ee,X,Ce;return P()().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ee.next=2,this.api.request({method:"post",url:"auth:signIn",data:Y,headers:{"X-Authenticator":te}});case 2:return X=Ee.sent,Ce=X==null||(ee=X.data)===null||ee===void 0?void 0:ee.data,this.setAuthenticator(te),this.setToken(Ce==null?void 0:Ce.token),Ee.abrupt("return",X);case 7:case"end":return Ee.stop()}},G,this)}));function v(G,Y){return D.apply(this,arguments)}return v}()},{key:"signUp",value:function(){var D=N()(P()().mark(function G(Y,te){return P()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.next=2,this.api.request({method:"post",url:"auth:signUp",data:Y,headers:{"X-Authenticator":te}});case 2:return X.abrupt("return",X.sent);case 3:case"end":return X.stop()}},G,this)}));function v(G,Y){return D.apply(this,arguments)}return v}()},{key:"signOut",value:function(){var D=N()(P()().mark(function G(){var Y;return P()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.next=2,this.api.request({method:"post",url:"auth:signOut"});case 2:return Y=ee.sent,this.setToken(null),this.setRole(null),this.setAuthenticator(null),ee.abrupt("return",Y);case 7:case"end":return ee.stop()}},G,this)}));function v(){return D.apply(this,arguments)}return v}()},{key:"lostPassword",value:function(){var D=N()(P()().mark(function G(Y){var te,ee,X;return P()().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return te=new URLSearchParams(window.location.search),ee=Object.fromEntries(te.entries()),Se.next=4,this.api.request({method:"post",url:"auth:lostPassword",data:x()(x()({},Y),{},{baseURL:window.location.href.split("/forgot-password")[0]}),headers:{"X-Authenticator":ee.name}});case 4:return X=Se.sent,Se.abrupt("return",X);case 6:case"end":return Se.stop()}},G,this)}));function v(G){return D.apply(this,arguments)}return v}()},{key:"resetPassword",value:function(){var D=N()(P()().mark(function G(Y){var te;return P()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.next=2,this.api.request({method:"post",url:"auth:resetPassword",data:Y});case 2:return te=X.sent,X.abrupt("return",te);case 4:case"end":return X.stop()}},G,this)}));function v(G){return D.apply(this,arguments)}return v}()},{key:"checkResetToken",value:function(){var D=N()(P()().mark(function G(Y){var te;return P()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.next=2,this.api.request({method:"post",url:"auth:checkResetToken",data:Y});case 2:return te=X.sent,X.abrupt("return",te);case 4:case"end":return X.stop()}},G,this)}));function v(G){return D.apply(this,arguments)}return v}()}]),w}(),Q=e(25098),ne=e.n(Q),ue=e(31996),V=e.n(ue),p=e(26037),b=e.n(p),R=function(){function w(){M()(this,w),f()(this,"storagePrefix",void 0)}return O()(w,[{key:"toUpperCase",value:function(){for(var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",G=arguments.length,Y=new Array(G>1?G-1:0),te=1;te<G;te++)Y[te-1]=arguments[te];return v.toUpperCase()+Y.map(function(ee){return ee.toUpperCase()}).join("_")}}]),w}(),y=function(w){V()(v,w);var D=b()(v);function v(){var G;M()(this,v);for(var Y=arguments.length,te=new Array(Y),ee=0;ee<Y;ee++)te[ee]=arguments[ee];return G=D.call.apply(D,[this].concat(te)),f()(ne()(G),"items",new Map),G}return O()(v,[{key:"clear",value:function(){this.items.clear()}},{key:"getItem",value:function(Y){return this.items.get(Y)}},{key:"setItem",value:function(Y,te){return this.items.set(Y,te)}},{key:"removeItem",value:function(Y){return this.items.delete(Y)}}]),v}(R),z=function(w){V()(v,w);var D=b()(v);function v(G){var Y,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return M()(this,v),Y=D.call(this),f()(ne()(Y),"items",void 0),Y.storagePrefix=G,Y.baseStoragePrefix=te,Y.shareToken=ee,Y.items=window.localStorage,Y}return O()(v,[{key:"clear",value:function(){return this.items.clear()}},{key:"getItem",value:function(Y){return this.shareToken&&Y==="token"&&this.baseStoragePrefix?this.items.getItem(this.toUpperCase(this.baseStoragePrefix,Y)):this.items.getItem(this.toUpperCase(this.storagePrefix,Y))}},{key:"setItem",value:function(Y,te){return this.shareToken&&Y==="token"&&this.baseStoragePrefix?this.items.setItem(this.toUpperCase(this.baseStoragePrefix,Y),te):this.items.setItem(this.toUpperCase(this.storagePrefix,Y),te)}},{key:"removeItem",value:function(Y){return this.shareToken&&Y==="token"&&this.baseStoragePrefix?this.items.removeItem(this.toUpperCase(this.baseStoragePrefix,Y)):this.items.removeItem(this.toUpperCase(this.storagePrefix,Y))}}]),v}(R),c=function(w){V()(v,w);var D=b()(v);function v(G){var Y,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return M()(this,v),Y=D.call(this,G,te,ee),Y.storagePrefix=G,Y.baseStoragePrefix=te,Y.shareToken=ee,Y.items=window.sessionStorage,Y}return O()(v)}(z),A=["appName","authClass","storageType","storageClass","storagePrefix","shareToken"],U=["values","filter"],K=function(){function w(D){if(M()(this,w),f()(this,"options",void 0),f()(this,"axios",void 0),f()(this,"auth",void 0),f()(this,"storage",void 0),f()(this,"storagePrefix","NOCOBASE_"),f()(this,"baseStoragePrefix","NOCOBASE_"),f()(this,"shareToken",!1),this.options=D,typeof D=="function")this.axios=D;else{var v=D||{},G=v.appName,Y=v.authClass,te=v.storageType,ee=v.storageClass,X=v.storagePrefix,Ce=X===void 0?"NOCOBASE_":X,Se=v.shareToken,Ee=Se===void 0?!1:Se,_e=S()(v,A);this.shareToken=Ee,this.baseStoragePrefix=Ce,this.storagePrefix=G?"".concat(Ce).concat(G.toUpperCase(),"_"):Ce,this.axios=k.Z.create(_e),this.initStorage(ee,te),Y&&(this.auth=new Y(this))}this.storage||this.initStorage(),this.auth||(this.auth=new H(this)),this.interceptors()}return O()(w,[{key:"toErrMessages",value:function(v){var G,Y,te,ee,X;if(typeof document<"u"&&typeof(v==null||(G=v.response)===null||G===void 0?void 0:G.data)=="string"){var Ce,Se=document.createElement("div");Se.innerHTML=v==null||(Ce=v.response)===null||Ce===void 0?void 0:Ce.data;var Ee=Se.textContent||Se.innerText;return Ee.includes("Error occurred while trying")?(Ee="The application may be starting up. Please try again later.",[{code:"APP_WARNING",message:Ee}]):Ee.includes("502 Bad Gateway")?(Ee="The application may be starting up. Please try again later.",[{code:"APP_WARNING",message:Ee}]):[{message:Ee}]}if(v!=null&&(Y=v.response)!==null&&Y!==void 0&&(Y=Y.data)!==null&&Y!==void 0&&Y.error){var _e;return[v==null||(_e=v.response)===null||_e===void 0||(_e=_e.data)===null||_e===void 0?void 0:_e.error]}return(v==null||(te=v.response)===null||te===void 0||(te=te.data)===null||te===void 0?void 0:te.errors)||(v==null||(ee=v.response)===null||ee===void 0||(ee=ee.data)===null||ee===void 0?void 0:ee.messages)||(v==null||(X=v.response)===null||X===void 0?void 0:X.error)||[{message:v.message||"Server error"}]}},{key:"getHeaders",value:function(){var v={};return this.auth.locale&&(v["X-Locale"]=this.auth.locale),this.auth.role&&(v["X-Role"]=this.auth.role),this.auth.authenticator&&(v["X-Authenticator"]=this.auth.authenticator),this.auth.token&&(v.Authorization="Bearer ".concat(this.auth.token)),v}},{key:"createStorage",value:function(v){return v==="localStorage"&&typeof localStorage<"u"?new z(this.storagePrefix,this.baseStoragePrefix,this.shareToken):v==="sessionStorage"&&typeof sessionStorage<"u"?new c(this.storagePrefix,this.baseStoragePrefix,this.shareToken):new y}},{key:"initStorage",value:function(v){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"localStorage";if(v){this.storage=new v(this);return}this.storage=this.createStorage(G)}},{key:"interceptors",value:function(){this.axios.interceptors.request.use(function(v){return v.paramsSerializer=function(G){return g().stringify(G,{strictNullHandling:!0,arrayFormat:"brackets"})},v})}},{key:"request",value:function(v){var G=v,Y=G.resource,te=G.resourceOf,ee=G.action,X=G.params,Ce=G.headers;return Y?this.resource(Y,te,Ce)[ee](X):this.axios.request(v)}},{key:"resource",value:function(v,G,Y,te){var ee=this,X={},Ce={get:function(Ee,_e){if(!te){var re=v.split(".").join("/".concat(encodeURIComponent(G)||"_","/"));re+=":".concat(_e.toString());var me={url:re};return["get","list"].includes(_e)?me.method="get":me.method="post",function(){var oe=N()(P()().mark(function ie(Pe,De){var ce,Ie,ye,pe;return P()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return ce=Pe||{},Ie=ce.values,ye=ce.filter,pe=S()(ce,U),me.params=pe,ye&&(typeof ye=="string"?me.params.filter=ye:(ye["*"]&&delete ye["*"],me.params.filter=JSON.stringify(ye))),me.method!=="get"&&(me.data=Ie||{}),fe.next=6,ee.request(x()(x()(x()({},me),De),{},{headers:Y}));case 6:return fe.abrupt("return",fe.sent);case 7:case"end":return fe.stop()}},ie)}));return function(ie,Pe){return oe.apply(this,arguments)}}()}}};return new Proxy(X,Ce)}}]),w}(),E=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"/";if(!(typeof window>"u")&&window.location.pathname){var v="".concat(D,"apps/");if(window.location.pathname.startsWith(v)){var G=window.location.pathname.substring(v.length),Y=G.split("/",1);return Y[0]||""}}},j=E},80770:function(Ut,Re,e){"use strict";e.d(Re,{_6:function(){return N},gn:function(){return J},Bb:function(){return ve}});var de=e(96695),P=e.n(de),ve=function S(I,M,B){if(!I)return B;for(var O=M.split("."),W=[],f=I,k=!1,T=0;T<O.length;T++){var g,i=O[T];if(Array.isArray(f)){k=!0;var Z=P()(f),H;try{for(Z.s();!(H=Z.n()).done;){var Q=H.value,ne=S(Q,O.slice(T).join("."),B);W=W.concat(ne)}}catch(ue){Z.e(ue)}finally{Z.f()}break}if(((g=f)===null||g===void 0?void 0:g[i])===void 0)break;f=f[i],T===O.length-1&&W.push(f)}return W=W.filter(function(ue){return ue!==void 0}),W.length===0?B:k?W.filter(function(ue){return ue!==null}):W[0]},x=e(52677),h=e.n(x);function N(S){var I=new Set,M=function B(O){if(typeof O=="string")for(var W=/\{\{\s*([^}]+?)\s*\}\}/g,f;(f=W.exec(O))!==null;){for(var k=f[1],T=/ctx\.([a-zA-Z_$][a-zA-Z0-9_$]*)/g,g=void 0;(g=T.exec(k))!==null;)I.add(g[1]);for(var i=/ctx\[\s*(["'])\s*([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\1\s*\]/g,Z=void 0;(Z=i.exec(k))!==null;)I.add(Z[2])}else Array.isArray(O)?O.forEach(B):O&&h()(O)==="object"&&Object.values(O).forEach(B)};return M(S),I}function J(S){var I={},M=function B(O){if(typeof O=="string")for(var W=/\{\{\s*([^}]+?)\s*\}\}/g,f;(f=W.exec(O))!==null;){for(var k=f[1],T=/ctx\.([a-zA-Z_$][a-zA-Z0-9_$]*)([^\s)]*)/g,g=void 0;(g=T.exec(k))!==null;){var i=g[1],Z=g[2]||"";if(I[i]=I[i]||[],Z.startsWith("."))I[i].push(Z.slice(1));else if(Z.startsWith("[")){var H=Z.match(/^\[\s*(["'])\s*([^'"\]]+)\s*\1\s*\](.*)$/);if(H){var Q=H[2],ne=H[3]||"";I[i].push("".concat(Q).concat(ne))}else{var ue=Z.match(/^\[(\d+)\](.*)$/);if(ue){var V=ue[1],p=ue[2]||"";I[i].push("[".concat(V,"]").concat(p))}}}else Z.startsWith("(")&&(I[i].length||I[i].push(""))}for(var b=/ctx\[\s*(["'])\s*([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\1\s*\]([^\s)]*)/g,R=void 0;(R=b.exec(k))!==null;){var y=R[2],z=R[3]||"";if(I[y]=I[y]||[],z.startsWith("."))I[y].push(z.slice(1));else if(z.startsWith("[")){var c=z.match(/^\[\s*(["'])\s*([^'"\]]+)\s*\1\s*\](.*)$/);if(c){var A=c[2],U=c[3]||"";I[y].push("".concat(A).concat(U))}else{var K=z.match(/^\[(\d+)\](.*)$/);if(K){var E=K[1],j=K[2]||"";I[y].push("[".concat(E,"]").concat(j))}}}else z.startsWith("(")&&(I[y].length||I[y].push(""))}}else Array.isArray(O)?O.forEach(B):O&&h()(O)==="object"&&Object.values(O).forEach(B)};return M(S),I}},10110:function(Ut,Re,e){"use strict";e.r(Re),e.d(Re,{BASE_BLOCKED_IDENTIFIERS:function(){return We},CollectionsGraph:function(){return re},Handlebars:function(){return jn()},Registry:function(){return mt},dayjs:function(){return x()},error:function(){return xo},evaluateConditions:function(){return He},extractUsedVariableNames:function(){return no},extractUsedVariablePaths:function(){return so},flatten:function(){return Tt},forEach:function(){return An},getDateTimeFormat:function(){return St},getDateVars:function(){return Ln},getDayRange:function(){return Jn},getDayRangeByParams:function(){return Y},getDefaultFormat:function(){return Et},getFormatFromDateStr:function(){return zt},getLiquidContext:function(){return ho},getOffsetRangeByParams:function(){return w},getPickerFormat:function(){return bt},getValuesByPath:function(){return xn},hasEmptyValue:function(){return Ke},isArray:function(){return Je},isEmpty:function(){return ke},isEmptyFilter:function(){return lt},isPlainObject:function(){return Be},isPortalInBody:function(){return Kn},isString:function(){return je},isURL:function(){return Gr},isValidFilter:function(){return vn},lockdownSes:function(){return Dt},lodash:function(){return P()},merge:function(){return Ot},moment2str:function(){return Rt},nextTick:function(){return le},offsetFromString:function(){return Ze},parse:function(){return Or},parseFilter:function(){return qn},parseHTML:function(){return sn},parseLiquidContext:function(){return Co},parseSQLBindParams:function(){return lo},removeInvalidFilterItems:function(){return $e},removeNullCondition:function(){return ct},showToast:function(){return Mt},sleep:function(){return Ve},sortTree:function(){return Ge},splitPathToTwoParts:function(){return Fn},str2moment:function(){return hn},toFixedByStep:function(){return vt},toGmt:function(){return Qe},toLocal:function(){return gt},toUnit:function(){return ur},transformFilter:function(){return Ae},transformLiquidContext:function(){return Vr},transformMultiColumnToSingleColumn:function(){return $r},transformSQL:function(){return ca},treeFind:function(){return xe},tval:function(){return on},uid:function(){return eo},unflatten:function(){return Pt},utc2unit:function(){return fr}});var de=e(96486),P=e.n(de),ve=e(27484),x=e.n(ve),h=e(28734),N=e.n(h),J=e(10285),S=e.n(J),I=e(1646),M=e.n(I),B=e(66607),O=e.n(B),W=e(79212),f=e.n(W),k=e(37412),T=e.n(k),g=e(59542),i=e.n(g),Z=e(96036),H=e.n(Z),Q=e(96671),ne=e.n(Q),ue=e(29387),V=e.n(ue),p=e(70178),b=e.n(p),R=e(55183),y=e.n(R),z=e(172),c=e.n(z),A=e(72540),U=e.n(A);x().extend(U()),x().extend(H()),x().extend(V()),x().extend(b()),x().extend(ne()),x().extend(i()),x().extend(O()),x().extend(f()),x().extend(T()),x().extend(y()),x().extend(c()),x().extend(S()),x().extend(N()),x().extend(M());var K=e(5574),E=e.n(K),j=function(ft){if(!ft)return x()();if(/^[+-]\d{2}:\d{2}$/.test(ft)){var lr=ft.match(/([+-])(\d{2}):(\d{2})/).slice(1),ar=E()(lr,3),Wr=ar[0],wo=ar[1],ko=ar[2],Jo=(parseInt(wo)*60+parseInt(ko))*(Wr==="+"?1:-1);return x()().utcOffset(Jo)}return x()().tz(ft)},w=function(ft){var lr=ft.type,ar=ft.unit,Wr=ar===void 0?"day":ar,wo=ft.number,ko=wo===void 0?1:wo,Jo=ft.timezone,Va=j(Jo),Go=Wr==="week"?"isoWeek":Wr,da,ba;if(lr==="past"){var ri=Va.startOf(Go);da=ri.subtract(ko,Wr).startOf(Go),ba=ri.subtract(1,Wr).endOf(Go)}else if(lr==="next"){var ci=Va.startOf(Go);da=ci.add(1,Wr).startOf(Go),ba=da.add(ko-1,Wr).endOf(Go)}else throw new Error("Unsupported type: ".concat(lr));return[da.format("YYYY-MM-DD HH:mm:ss"),ba.format("YYYY-MM-DD HH:mm:ss")]},D=function(ft,lr,ar){var Wr=lr==="isoWeek"?"week":lr;return j(ar).add(ft,Wr).startOf(lr)},v=function(ft,lr,ar){var Wr=lr==="isoWeek"?"week":lr;return j(ar).add(ft,Wr).endOf(lr)},G={today:function(ft){return[D(0,"day",ft==null?void 0:ft.timezone),v(0,"day",ft==null?void 0:ft.timezone)]},yesterday:function(ft){return[D(-1,"day",ft==null?void 0:ft.timezone),v(-1,"day",ft==null?void 0:ft.timezone)]},tomorrow:function(ft){return[D(1,"day",ft==null?void 0:ft.timezone),v(1,"day",ft==null?void 0:ft.timezone)]},thisWeek:function(ft){return[D(0,"isoWeek",ft==null?void 0:ft.timezone),v(0,"isoWeek",ft==null?void 0:ft.timezone)]},lastWeek:function(ft){return[D(-1,"isoWeek",ft==null?void 0:ft.timezone),v(-1,"isoWeek",ft==null?void 0:ft.timezone)]},nextWeek:function(ft){return[D(1,"isoWeek",ft==null?void 0:ft.timezone),v(1,"isoWeek",ft==null?void 0:ft.timezone)]},thisMonth:function(ft){return[D(0,"month",ft==null?void 0:ft.timezone),v(0,"month",ft==null?void 0:ft.timezone)]},lastMonth:function(ft){return[D(-1,"month",ft==null?void 0:ft.timezone),v(-1,"month",ft==null?void 0:ft.timezone)]},nextMonth:function(ft){return[D(1,"month",ft==null?void 0:ft.timezone),v(1,"month",ft==null?void 0:ft.timezone)]},thisQuarter:function(ft){return[D(0,"quarter",ft==null?void 0:ft.timezone),v(0,"quarter",ft==null?void 0:ft.timezone)]},lastQuarter:function(ft){return[D(-1,"quarter",ft==null?void 0:ft.timezone),v(-1,"quarter",ft==null?void 0:ft.timezone)]},nextQuarter:function(ft){return[D(1,"quarter",ft==null?void 0:ft.timezone),v(1,"quarter",ft==null?void 0:ft.timezone)]},thisYear:function(ft){return[D(0,"year",ft==null?void 0:ft.timezone),v(0,"year",ft==null?void 0:ft.timezone)]},lastYear:function(ft){return[D(-1,"year",ft==null?void 0:ft.timezone),v(-1,"year",ft==null?void 0:ft.timezone)]},nextYear:function(ft){return[D(1,"year",ft==null?void 0:ft.timezone),v(1,"year",ft==null?void 0:ft.timezone)]}},Y=function(ft){if(ft.type==="past"||ft.type==="next")return w(ft);var lr=G[ft.type];if(!lr)throw new Error("Unsupported type: ".concat(ft.type));var ar=lr(ft),Wr=E()(ar,2),wo=Wr[0],ko=Wr[1];return[wo.format("YYYY-MM-DD HH:mm:ss"),ko.format("YYYY-MM-DD HH:mm:ss")]},te=e(96695),ee=e.n(te),X=e(12444),Ce=e.n(X),Se=e(72004),Ee=e.n(Se),_e=e(28282),re=function(){function _n(){Ce()(this,_n)}return Ee()(_n,null,[{key:"graphlib",value:function(){return _e}},{key:"connectedNodes",value:function(lr){var ar=(0,de.castArray)(lr.nodes),Wr=(0,de.castArray)(lr.excludes||[]),wo=_n.build(lr),ko=new Set,Jo=ee()(ar),Va;try{for(Jo.s();!(Va=Jo.n()).done;){var Go=Va.value,da=_e.alg.preorder(wo,Go),ba=ee()(da),ri;try{for(ba.s();!(ri=ba.n()).done;){var ci=ri.value;Wr.includes(ci)||ko.add(ci)}}catch(gi){ba.e(gi)}finally{ba.f()}}}catch(gi){Jo.e(gi)}finally{Jo.f()}return Array.from(ko)}},{key:"preOrder",value:function(lr){return _n.graphlib().alg.preorder(_n.build(lr),lr.node)}},{key:"build",value:function(lr){var ar=lr.collections,Wr=(lr==null?void 0:lr.direction)||"forward",wo=Wr==="forward",ko=new _e.Graph,Jo=ee()(ar),Va;try{for(Jo.s();!(Va=Jo.n()).done;){var Go=Va.value;ko.setNode(Go.name)}}catch(zr){Jo.e(zr)}finally{Jo.f()}var da=ee()(ar),ba;try{for(da.s();!(ba=da.n()).done;){var ri=ba.value,ci=ri.inherits||[],gi=ee()(ci),fi;try{for(gi.s();!(fi=gi.n()).done;){var Li=fi.value;wo?ko.setEdge(ri.name,Li):ko.setEdge(Li,ri.name)}}catch(zr){gi.e(zr)}finally{gi.f()}var ll=ee()(ri.fields||[]),za;try{for(ll.s();!(za=ll.n()).done;){var Za=za.value;if((Za.type==="hasMany"||Za.type==="belongsTo"||Za.type==="hasOne")&&(wo?ko.setEdge(ri.name,Za.target):ko.setEdge(Za.target,ri.name)),Za.type==="belongsToMany"){var Ki=Za.through;wo?(ko.setEdge(ri.name,Ki),ko.setEdge(Ki,Za.target)):(ko.setEdge(Za.target,Ki),ko.setEdge(Ki,ri.name))}}}catch(zr){ll.e(zr)}finally{ll.f()}}}catch(zr){da.e(zr)}finally{da.f()}return ko}}]),_n}(),me=e(9783),oe=e.n(me),ie=e(97857),Pe=e.n(ie),De=e(19632),ce=e.n(De),Ie=e(34444),ye=e.n(Ie),pe=e(52677),ge=e.n(pe);function fe(_n){return"path"in _n&&"operator"in _n}function Oe(_n){return"logic"in _n&&"items"in _n}function Te(_n){var ft=_n.path,lr=_n.operator,ar=_n.value;return oe()({},ft,oe()({},lr,ar))}function Fe(_n){var ft=_n.logic,lr=_n.items,ar=lr.map(function(Wr){if(fe(Wr))return Te(Wr);if(Oe(Wr))return Fe(Wr);throw new Error("Invalid filter item type")});return oe()({},ft,ar)}function Ae(_n){if(!_n||ge()(_n)!=="object")throw new Error("Invalid filter: filter must be an object");if(!Oe(_n))throw new Error("Invalid filter: filter must have logic and items properties");if(!Array.isArray(_n.items))throw new Error("Invalid filter: items must be an array");return ct(Fe(_n))}function $e(_n){if(!_n||ge()(_n)!=="object")throw new Error("Invalid filter: filter must be an object");if(!Oe(_n))throw new Error("Invalid filter: filter must have logic and items properties");if(!Array.isArray(_n.items))throw new Error("Invalid filter: items must be an array");return _n.items=_n.items.filter(function(ft){return fe(ft)?!!ft.operator:Oe(ft)?$e(ft):!1}),Pe()({},_n)}function Ne(_n,ft){var lr=_n.path,ar=_n.operator,Wr=_n.value;return ft(lr,ar,Wr)}function nt(_n,ft){var lr=_n.logic,ar=_n.items;if(!ar||ar.length===0)return!0;var Wr=ar.map(function(wo){if(fe(wo))return Ne(wo,ft);if(Oe(wo))return nt(wo,ft);throw new Error("Invalid filter item type")});if(lr==="$and")return Wr.every(function(wo){return wo===!0});if(lr==="$or")return Wr.some(function(wo){return wo===!0});throw new Error("Unsupported logic operator: ".concat(lr))}function He(_n,ft){if(!_n||ge()(_n)!=="object")throw new Error("Invalid conditions: conditions must be an object");if(!Oe(_n))throw new Error("Invalid conditions: conditions must have logic and items properties");if(!Array.isArray(_n.items))throw new Error("Invalid conditions: items must be an array");if(typeof ft!="function")throw new Error("Invalid evaluator: evaluator must be a function");return nt(_n,ft)}var je=function(ft){return typeof ft=="string"},Je=function(ft){return Array.isArray(ft)},ke=function(ft){return Be(ft)?Object.keys(ft).length===0:Array.isArray(ft)?ft.length===0:!1},Be=function(ft){if(Object.prototype.toString.call(ft)!=="[object Object]")return!1;var lr=Object.getPrototypeOf(ft);return lr===null||lr===Object.prototype},Ke=function _n(ft){var lr=!0;for(var ar in ft){if(lr=!1,Je(ft[ar])&&ft[ar].length===0||!ft[ar])return!0;if(Be(ft[ar])||Je(ft[ar]))return _n(ft[ar])}return lr},le=function(ft){setTimeout(ft)};function xe(_n,ft){var lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(_n){var ar=lr.childrenKey,Wr=ar===void 0?"children":ar,wo=Array.isArray(_n)?ce()(_n):[_n],ko=ee()(wo),Jo;try{for(ko.s();!(Jo=ko.n()).done;){var Va=Jo.value;if(ft(Va))return Va;var Go=typeof Wr=="function"?Wr(Va):Va[Wr];if(Array.isArray(Go)&&Go.length>0){var da=xe(Go,ft,lr);if(da!==void 0)return da}}}catch(ba){ko.e(ba)}finally{ko.f()}}}function Ge(_n,ft){var lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",ar=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;if(!_n||!Array.isArray(_n)||_n.length===0)return _n;var Wr=P().orderBy(_n,ft,ar?"asc":"desc");return Wr.map(function(wo){return wo[lr]&&wo[lr].length>0?Pe()(Pe()({},wo),{},oe()({},lr,Ge(wo[lr],ft,lr,ar))):wo})}function Ve(_n){return new Promise(function(ft){setTimeout(ft,_n)})}function lt(_n){return!!(!_n||"$and"in _n&&P().isEmpty(_n.$and)||"$or"in _n&&P().isEmpty(_n.$or))}var ct=function(ft){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ye(),ar=lr(ft||{}),Wr={};for(var wo in ar){var ko=ar[wo];ko!=null&&!ke(ko)&&ko!==""&&(Wr[wo]=ko)}var Jo=lr.unflatten(Wr);for(var Va in Jo)Array.isArray(Jo[Va])&&(Jo[Va]=Jo[Va].filter(function(Go){return Go!=null}));return P().isEmpty(Jo)?void 0:Jo},Et=function(ft){return ft.format?ft.format:ft.dateFormat?ft.showTime?"".concat(ft.dateFormat," ").concat(ft.timeFormat||"HH:mm:ss"):ft.dateFormat:ft.picker==="month"?"YYYY-MM":ft.picker==="quarter"?"YYYY-\\QQ":ft.picker==="year"?"YYYY":ft.picker==="week"?"YYYY[W]W":ft.showTime?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"},Qe=function(ft){return!ft||!x().isDayjs(ft)?ft:"".concat(ft.format("YYYY-MM-DD"),"T").concat(ft.format("HH:mm:ss.SSS"),"Z")},gt=function(ft){if(!ft)return ft;if(Array.isArray(ft))return ft.map(function(lr){return lr.startOf("second").toISOString()});if(x().isDayjs(ft))return ft.startOf("second").toISOString()},_t=function(ft){try{var lr=parseInt(ft.slice(0,4)),ar=parseInt(ft.slice(-1));return x()().quarter(ar).year(lr)}catch{return null}},en=function(ft,lr){if(ft){var ar=lr.utcOffset,Wr=lr.gmt,wo=lr.picker,ko=lr.utc,Jo=ko===void 0?!0:ko,Va=lr.dateOnly;if(x()(ft).isValid()){if(Va){var Go=x()(ft);if(!Go.isValid())return ft;var da=Go.format("YYYY-MM-DD");return x().utc(da,"YYYY-MM-DD")}return Jo?x().isDayjs(ft)?ar?ft.utcOffset(Ze(ar)):ft:Wr?x()(ft).utcOffset(0):ar?x()(ft).utcOffset(Ze(ar)):x()(ft):x()(ft)}else return _t(ft)}},hn=function(ft){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Array.isArray(ft)?ft.map(function(ar){return en(ar,lr)}):ft&&en(ft,lr)},gn=function(ft,lr){return lr==="year"?ft.format("YYYY")+"-01-01T00:00:00.000Z":lr==="month"||lr==="quarter"?ft.format("YYYY-MM")+"-01T00:00:00.000Z":ft.format("YYYY-MM-DD")+"T00:00:00.000Z"},bn=function(ft,lr){if(!ft)return ft;if(Array.isArray(ft))return ft.map(function(ar){return gn(ar,lr)});if(x().isDayjs(ft))return gn(ft,lr)},Rt=function(ft){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ar=lr.showTime,Wr=lr.gmt,wo=lr.picker;return ft&&(ar?Wr?Qe(ft):gt(ft):bn(ft,wo))};function Ze(_n){if(!P().isString(_n))return _n;var ft=/([+-]|\d\d)/gi,lr=/Z|[+-]\d\d(?::?\d\d)?/gi,ar=/[+-]?\d+(\.\d{1,3})?/,Wr=(_n||"").match(lr);if(Wr===null&&(Wr=(_n||"").match(ar)),Wr===null)return null;var wo=Wr[Wr.length-1]||[],ko=(wo+"").match(ft)||["-",0,0],Jo=+(Number(ko[1])*60)+Ft(ko[2]);return Jo===0?0:ko[0]==="+"?Jo:-Jo}function Ft(_n){var ft=+_n,lr=0;return ft!==0&&isFinite(ft)&&(lr=Ct(ft)),lr}function Ct(_n){return _n<0?Math.ceil(_n)||0:Math.floor(_n)}var bt=function(ft){switch(ft){case"week":return"YYYY[W]W";case"month":return"YYYY-MM";case"quarter":return"YYYY[Q]Q";case"year":return"YYYY";default:return"YYYY-MM-DD"}},St=function(ft,lr,ar,Wr){return ft==="date"&&ar?"".concat(lr," ").concat(Wr||"HH:mm:ss"):lr};function zt(_n){return/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(_n)?"YYYY-MM-DD HH:mm:ss":/^\d{4}-\d{2}-\d{2}$/.test(_n)?"YYYY-MM-DD":/^\d{4}-\d{2}$/.test(_n)?"YYYY-MM":/^\d{4}$/.test(_n)?"YYYY":/^\d{4}Q[1-4]$/.test(_n)?"YYYY[Q]Q":/^\d{4}-\d{2}-\d{2}T/.test(_n)?"YYYY-MM-DDTHH:mm:ss.SSSZ":null}var An=function(ft,lr){Array.isArray(ft)?ft.forEach(lr):Object.keys(ft).forEach(function(ar){lr(ft[ar],ar)})},xn=function _n(ft,lr,ar){if(!ft)return ar;for(var Wr=lr.split("."),wo=[],ko=ft,Jo=!1,Va=0;Va<Wr.length;Va++){var Go,da=Wr[Va];if(Array.isArray(ko)){Jo=!0;var ba=ee()(ko),ri;try{for(ba.s();!(ri=ba.n()).done;){var ci=ri.value,gi=_n(ci,Wr.slice(Va).join("."),ar);wo=wo.concat(gi)}}catch(fi){ba.e(fi)}finally{ba.f()}break}if(((Go=ko)===null||Go===void 0?void 0:Go[da])===void 0)break;ko=ko[da],Va===Wr.length-1&&wo.push(ko)}return wo=wo.filter(function(fi){return fi!==void 0}),wo.length===0?ar:Jo?wo.filter(function(fi){return fi!==null}):wo[0]},un=e(8575),Sn=e(96750),jn=e.n(Sn),wt=e(11700),Nt=e.n(wt),yr=Nt()();Object.keys(yr).forEach(function(_n){jn().registerHelper(_n,yr[_n])}),jn().registerHelper("json",function(_n){return JSON.stringify(_n)}),jn().registerHelper("urlParse",function(_n){try{return JSON.stringify(un.parse(_n))}catch{return"Invalid URL: ".concat(_n)}}),jn().registerHelper("dateFormat",function(_n,ft,lr){return typeof lr=="string"?x()(_n).tz(lr).format(ft):x()(_n).format(ft)}),jn().registerHelper("isNull",function(_n){return P().isNull(_n)});function vn(_n){if(!_n)return!1;var ft=[_n.$and,_n.$or].filter(Boolean);return ft.length==0?Object.keys(_n).length>0:ft.some(function(lr){if(Array.isArray(lr))return lr.some(vn);if(lr.$and||lr.$or)return vn(lr);var ar=Object.keys(lr),Wr=E()(ar,1),wo=Wr[0];if(!wo||!lr[wo])return!1;var ko=Object.keys(lr[wo]),Jo=E()(ko,1),Va=Jo[0];return!(!Va||typeof lr[wo][Va]>"u")})}function hr(_n){var ft=ge()(_n);return Array.isArray(_n)?ft="array":_n instanceof Date?ft="date":_n===null&&(ft="null"),ft}function Tr(_n){var ft,lr=_n.substr(2,_n.length-4).trim(),ar=lr.indexOf(":");return ar!==-1?ft={key:lr.substr(0,ar),defaultValue:lr.substr(ar+1)}:ft={key:lr},ft}function Kr(_n,ft){return _n.parameters=Array.from(new Map(ft.map(function(lr){return[lr.key,lr]})).values()),_n}function Or(_n){switch(hr(_n)){case"string":return Er(_n);case"object":return Ir(_n);case"array":return Br(_n);default:return Kr(function(){return _n},[])}}var Er=function(){var _n=/{{(\w|:|[\s-+.,@/()?=*_$])+}}/g;return function(ft){var lr=[],ar=function(ko){return ft},Wr=ft.match(_n);return Wr&&(lr=Wr.map(Tr),ar=function(ko){return ko=ko||{},Wr.reduce(function(Jo,Va,Go){var da=lr[Go],ba=(0,de.get)(ko,da.key);return typeof ba>"u"&&(ba=da.defaultValue),typeof ba=="function"&&(ba=ba()),Wr.length===1&&ft.startsWith("{{")&&ft.endsWith("}}")?ba:(ba instanceof Date&&(ba=ba.toISOString()),Jo.replace(Va,ba??""))},ft)}),Kr(ar,lr)}}();function Ir(_n){var ft=Object.keys(_n).map(function(Wr){return{keyTemplate:Er(Wr),valueTemplate:Or(_n[Wr])}}),lr=ft.reduce(function(Wr,wo){return Wr.concat(wo.valueTemplate.parameters,wo.keyTemplate.parameters)},[]),ar=function(wo){return ft.reduce(function(ko,Jo){return ko[Jo.keyTemplate(wo)]=Jo.valueTemplate(wo),ko},{})};return Kr(ar,lr)}function Br(_n){var ft=_n.map(Or),lr=ft.reduce(function(Wr,wo){return Wr.concat(wo.parameters)},[]),ar=function(wo){return ft.map(function(ko){return ko(wo)})};return Kr(ar,lr)}var xo=function(ft){for(var lr,ar=arguments.length,Wr=new Array(ar>1?ar-1:0),wo=1;wo<ar;wo++)Wr[wo-1]=arguments[wo];(lr=console).error.apply(lr,[ft].concat(Wr))},qo=e(9996),uo=e.n(qo),kn=function(ft,lr,ar){return lr};function Ot(_n,ft,lr){return uo()(_n,ft,Pe()({arrayMerge:kn},lr))}var Zt=e(26855),Mt=function(ft){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"info",ar=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e3;Zt.ZP[lr]({message:ft,duration:ar})},at=e(55252),At=e(8150);function vt(_n,ft){if(typeof _n>"u"||_n===null||_n==="")return"";var lr=(0,at.NX)(ft);return(0,At.FH)(String(_n),".",lr)}var $t=e(15009),Kt=e.n($t),Yt=e(99289),Gt=e.n(Yt),In=e(36968),Wn=e.n(In),fn=e(30381),Mn=e.n(fn),gr=/^\s*\{\{([\s\S]*)\}\}\s*$/;function On(_n){return _n&&_n.constructor&&typeof _n.constructor.isBuffer=="function"&&_n.constructor.isBuffer(_n)}function mr(_n){return _n}function Tt(_n,ft){ft=ft||{};var lr=ft.delimiter||".",ar=ft.maxDepth,Wr=ft.transformKey||mr,wo=ft.transformValue||mr,ko={};function Jo(Va,Go,da){da=da||1,P().isObjectLike(Va)&&Object.keys(Va).forEach(function(ba){var ri,ci,gi=Va[ba],fi=ft.safe&&Array.isArray(gi),Li=Object.prototype.toString.call(gi),ll=On(gi),za=Li==="[object Object]"||Li==="[object Array]",Za=Go?Go+lr+Wr(ba):Wr(ba);if((ri=(ci=ft).breakOn)!==null&&ri!==void 0&&ri.call(ci,{key:ba,value:gi,path:Za})){ko[Za]=wo(gi,Za);return}if(!fi&&!ll&&za&&Object.keys(gi).length&&(!ft.maxDepth||da<ar))return Jo(gi,Za,da+1);ko[Za]=wo(gi,Za)})}return Jo(_n),ko}function Pt(_n){for(var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},lr={},ar=ft.transformValue||mr,Wr=0,wo=Object.keys(_n);Wr<wo.length;Wr++){var ko=wo[Wr];Wn()(lr,ko,ar(_n[ko],ko))}return lr}var Vt=function(ft){var lr=ft.split(".").pop()||"";return lr.startsWith("$")||(lr=""),{operator:lr}},an=function(ft){return["$dateOn","$dateNotOn","$dateBefore","$dateAfter","$dateNotBefore","$dateNotAfter","$dateBetween"].includes(ft)};function rn(_n){return _n instanceof Date||Object.prototype.toString.call(_n)==="[object Date]"}function xt(_n){return(_n==null?void 0:_n.type)==="dateOnly"||(_n==null?void 0:_n.type)==="datetimeNoTz"||(_n==null?void 0:_n.constructor.name)==="DateOnlyField"||(_n==null?void 0:_n.constructor.name)==="DatetimeNoTzField"}var Vn=function(ft,lr){if(!ft)return null;if(ft.type&&(ft=Y(Pe()(Pe()({},ft),{},{timezone:lr}))),Array.isArray(ft))return ft.length===2?ft.push("[]",lr):ft.length===3&&ft.push(lr),ft;if(typeof ft=="string")return!lr||/(\+|-)\d\d:\d\d$/.test(ft)?ft:ft+lr;if(rn(ft))return ft.toISOString()},qn=function(){var _n=Gt()(Kt()().mark(function ft(lr){var ar,Wr,wo,ko,Jo,Va,Go,da,ba=arguments;return Kt()().wrap(function(ci){for(;;)switch(ci.prev=ci.next){case 0:if(ar=ba.length>1&&ba[1]!==void 0?ba[1]:{},Wr=new Set,wo=ar.vars||{},ko=ar.timezone,Jo=ar.now,Va=ar.getField,Go=Tt(lr,{breakOn:function(fi){var Li=fi.key;return Li.startsWith("$")&&Li!=="$and"&&Li!=="$or"},transformValue:function(fi){if(typeof fi!="string")return fi;var Li=gr.exec(fi);if(Li){var ll=Li[1].trim();ll.startsWith("$user")&&Wr.add(ll.substring(6))}return fi}}),!(Wr.size>0)){ci.next=12;break}return ci.next=10,wo.$user({fields:ce()(Wr.values())});case 10:da=ci.sent,Object.assign(wo,{$user:da});case 12:return ci.abrupt("return",Pt(Go,{transformValue:function(fi,Li){var ll=Vt(Li),za=ll.operator;if(typeof fi=="string"){var Za=gr.exec(fi);if(Za){var Ki=Za[1].trim(),zr=xn(wo,Ki,null),Qt=Va==null?void 0:Va(Li);fi=typeof zr=="function"?zr==null?void 0:zr({field:Qt,operator:za,timezone:ko,now:Jo}):zr}}if(an(za)){var Xt=Va==null?void 0:Va(Li);return xt(Xt)?fi.type?Y(Pe()(Pe()({},fi),{},{timezone:(Xt==null?void 0:Xt.timezone)||ko})):fi:Vn(fi,(Xt==null?void 0:Xt.timezone)||ko)}return fi}}));case 13:case"end":return ci.stop()}},ft)}));return function(lr){return _n.apply(this,arguments)}}();function Jn(_n){var ft=_n.now,lr=_n.timezone,ar=lr===void 0?"+00:00":lr,Wr=_n.offset,wo=pr(ft).utcOffset(Ze(ar));return Wr>0?[(wo=wo.add(1,"day").startOf("day")).format("YYYY-MM-DD"),wo.clone().add(Wr,"day").startOf("day").format("YYYY-MM-DD"),"[)",ar]:[wo.clone().subtract(-1*Wr-1,"day").startOf("day").format("YYYY-MM-DD"),wo.clone().add(1,"day").startOf("day").format("YYYY-MM-DD"),"[)",ar]}function pr(_n){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _n?x().isDayjs(_n)?_n:ft?Mn()(_n):x()(_n):ft?Mn()():x()()}function fr(_n){var ft,lr=_n.now,ar=_n.unit,Wr=_n.timezone,wo=Wr===void 0?"+00:00":Wr,ko=_n.offset,Jo=pr(lr,ar==="isoWeek");Jo=Jo.utcOffset(Ze(wo)),Jo=Jo.startOf(ar),ko>0?Jo=Jo.add(ko,ar):ko<0&&(Jo=Jo.subtract(-1*ko,ar));var Va={year:function(){return Jo.format("YYYY")},quarter:function(){return Jo.format("YYYY[Q]Q")},month:function(){return Jo.format("YYYY-MM")},week:function(){return Jo.format("gggg[w]ww")},isoWeek:function(){return Jo.format("GGGG[W]WW")},day:function(){return Jo.format("YYYY-MM-DD")}},Go=(ft=Va[ar])===null||ft===void 0?void 0:ft.call(Va);return wo?Go+wo:Go}var ur=function(ft,lr){return function(ar){var Wr=ar.now,wo=ar.timezone,ko=ar.field;return ko!=null&&ko.timezone&&(wo=ko==null?void 0:ko.timezone),fr({now:Wr,timezone:wo,unit:ft,offset:lr})}},Pn=function(ft){return function(lr){var ar=lr.now,Wr=lr.timezone,wo=lr.field;return wo!=null&&wo.timezone&&(Wr=wo==null?void 0:wo.timezone),Jn({now:ar,timezone:Wr,offset:ft})}};function Ln(){return{now:new Date().toISOString(),today:ur("day"),yesterday:ur("day",-1),tomorrow:ur("day",1),thisWeek:ur("week"),lastWeek:ur("week",-1),nextWeek:ur("week",1),thisIsoWeek:ur("isoWeek"),lastIsoWeek:ur("isoWeek",-1),nextIsoWeek:ur("isoWeek",1),thisMonth:ur("month"),lastMonth:ur("month",-1),nextMonth:ur("month",1),thisQuarter:ur("quarter"),lastQuarter:ur("quarter",-1),nextQuarter:ur("quarter",1),thisYear:ur("year"),lastYear:ur("year",-1),nextYear:ur("year",1),last7Days:Pn(-7),next7Days:Pn(7),last30Days:Pn(-30),next30Days:Pn(30),last90Days:Pn(-90),next90Days:Pn(90)}}function Fn(_n){var ft=_n.split(".");return[ft.shift(),ft.join(".")]}var mt=function(){function _n(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{override:!1};Ce()(this,_n),oe()(this,"map",new Map),oe()(this,"options",void 0),this.options=ft}return Ee()(_n,[{key:"register",value:function(lr,ar){if(!this.options.override&&this.map.has(lr))throw new Error('this registry does not allow to override existing keys: "'.concat(lr,'"'));this.map.set(lr,ar)}},{key:"get",value:function(lr){return this.map.get(lr)}},{key:"getKeys",value:function(){return this.map.keys()}},{key:"getValues",value:function(){return this.map.values()}},{key:"getEntities",value:function(){return this.map.entries()}}]),_n}(),qe=null,se=e(28627),et=Symbol.for("nocobase.utils.sesLockdown"),Ue=Symbol.for("nocobase.utils.bufferOverrides"),We=["globalThis","global","self","Function","AsyncFunction","GeneratorFunction","eval","Compartment","lockdown","harden","assert"];function Ye(_n){if(!_n||ge()(_n)!=="object")return!1;var ft=_n.message||"";return ft.includes("(SES_ALREADY_LOCKED_DOWN)")}function st(){var _n=globalThis;if(!_n[Ue]){var ft=_n.Buffer;if(!(!ft||!ft.prototype)){var lr=ft.prototype,ar=ee()(Reflect.ownKeys(lr)),Wr;try{var wo=function(){var Jo=Wr.value,Va=Object.getOwnPropertyDescriptor(lr,Jo);if(!Va||typeof Va.value!="function"||!Va.configurable)return 1;var Go=Va.value,da=function(){return Go},ba=function(ci){if(this===lr)throw new TypeError("Cannot assign to read only property '".concat(String(Jo),"' of object 'Buffer.prototype'"));Object.defineProperty(this,Jo,{configurable:!0,enumerable:!0,writable:!0,value:ci})};Object.defineProperty(da,"originalValue",{configurable:!1,enumerable:!1,writable:!1,value:Go}),Object.defineProperty(lr,Jo,{configurable:Va.configurable,enumerable:Va.enumerable,get:da,set:ba})};for(ar.s();!(Wr=ar.n()).done;)wo()}catch(ko){ar.e(ko)}finally{ar.f()}_n[Ue]=!0}}}function Dt(_n){st();var ft=globalThis;if(!ft[et]){if(typeof lockdown!="function")throw new Error("SES lockdown is unavailable in the current runtime environment.");try{lockdown(_n)}catch(lr){if(!Ye(lr))throw lr}ft[et]=!0}}function on(_n,ft){return ft?"{{t(".concat(JSON.stringify(_n),", ").concat(JSON.stringify(ft),")}}"):"{{t(".concat(JSON.stringify(_n),")}}")}var Kn=function(ft){for(;ft;){var lr;if(ft.id==="root"||(lr=ft.classList)!==null&&lr!==void 0&&lr.contains("nb-action"))return!1;ft=ft.parentNode}return!{NODE_ENV:"production",PUBLIC_PATH:"auto"}.__TEST__};function sn(_n,ft){return _n.replace(/\{\{(\w+)\}\}/g,function(lr,ar){return typeof ft[ar]<"u"?ft[ar]:lr})}for(var Zn=36,Pr="";Zn--;)Pr+=Zn.toString(36);function eo(_n){for(var ft="",lr=_n||11;lr--;)ft+=Pr[Math.random()*36|0];return ft}function Gr(_n){var ft;try{ft=new URL(_n)}catch{return!1}return ft.protocol==="http:"||ft.protocol==="https:"}var br=e(33833),wr={i8:"2.0.47"},$r=function _n(ft,lr){if(!ft)return ft;if(ft["x-component"]!=="Grid")return Object.keys(ft.properties||{}).forEach(function(da){ft.properties[da]=_n(ft.properties[da],lr)}),ft;var ar=ft.parent;ft.toJSON?ft=ft.toJSON():ft=P().cloneDeep(ft);var Wr={},wo=ft,ko=wo.properties,Jo=ko===void 0?{}:ko,Va=0;if(Object.keys(Jo).forEach(function(da,ba){var ri=Jo[da];if(ri["x-component"]!=="Grid.Row"){ri["x-index"]=++Va,Wr[da]=ri;return}if(ri.properties){if(Object.keys(ri.properties).length===1){ri["x-index"]=++Va,Wr[da]=ri;return}Object.keys(ri.properties).forEach(function(ci,gi){var fi=ri.properties[ci];if(P().set(fi,"x-component-props.width",100),gi===0){ri["x-index"]=++Va,Wr[da]=ri;return}lr!=null&&lr(fi)||(delete ri.properties[ci],Wr["".concat(eo(),"_").concat(ci)]=Zr(fi,ci,++Va))})}}),ft.properties=Wr,ar){var Go=new br.Schema(ft,ar);return ar.properties&&Object.keys(ar.properties).forEach(function(da){da===ft.name&&(ar.properties[da]=Go)}),Go}return ft};function Zr(_n,ft,lr){return{type:"void",version:"2.0","x-component":"Grid.Row","x-app-version":wr.i8,"x-uid":eo(),"x-async":!1,"x-index":lr,_isJSONSchemaObject:!0,properties:oe()({},ft,_n)}}function no(_n){var ft=new Set,lr=function ar(Wr){if(typeof Wr=="string")for(var wo=/\{\{\s*([^}]+?)\s*\}\}/g,ko;(ko=wo.exec(Wr))!==null;){for(var Jo=ko[1],Va=/ctx\.([a-zA-Z_$][a-zA-Z0-9_$]*)/g,Go=void 0;(Go=Va.exec(Jo))!==null;)ft.add(Go[1]);for(var da=/ctx\[\s*(["'])\s*([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\1\s*\]/g,ba=void 0;(ba=da.exec(Jo))!==null;)ft.add(ba[2])}else Array.isArray(Wr)?Wr.forEach(ar):Wr&&ge()(Wr)==="object"&&Object.values(Wr).forEach(ar)};return lr(_n),ft}function so(_n){var ft={},lr=function ar(Wr){if(typeof Wr=="string")for(var wo=/\{\{\s*([^}]+?)\s*\}\}/g,ko;(ko=wo.exec(Wr))!==null;){for(var Jo=ko[1],Va=/ctx\.([a-zA-Z_$][a-zA-Z0-9_$]*)([^\s)]*)/g,Go=void 0;(Go=Va.exec(Jo))!==null;){var da=Go[1],ba=Go[2]||"";if(ft[da]=ft[da]||[],ba.startsWith("."))ft[da].push(ba.slice(1));else if(ba.startsWith("[")){var ri=ba.match(/^\[\s*(["'])\s*([^'"\]]+)\s*\1\s*\](.*)$/);if(ri){var ci=ri[2],gi=ri[3]||"";ft[da].push("".concat(ci).concat(gi))}else{var fi=ba.match(/^\[(\d+)\](.*)$/);if(fi){var Li=fi[1],ll=fi[2]||"";ft[da].push("[".concat(Li,"]").concat(ll))}}}else ba.startsWith("(")&&(ft[da].length||ft[da].push(""))}for(var za=/ctx\[\s*(["'])\s*([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\1\s*\]([^\s)]*)/g,Za=void 0;(Za=za.exec(Jo))!==null;){var Ki=Za[2],zr=Za[3]||"";if(ft[Ki]=ft[Ki]||[],zr.startsWith("."))ft[Ki].push(zr.slice(1));else if(zr.startsWith("[")){var Qt=zr.match(/^\[\s*(["'])\s*([^'"\]]+)\s*\1\s*\](.*)$/);if(Qt){var Xt=Qt[2],yn=Qt[3]||"";ft[Ki].push("".concat(Xt).concat(yn))}else{var cn=zr.match(/^\[(\d+)\](.*)$/);if(cn){var Nn=cn[1],tr=cn[2]||"";ft[Ki].push("[".concat(Nn,"]").concat(tr))}}}else zr.startsWith("(")&&(ft[Ki].length||ft[Ki].push(""))}}else Array.isArray(Wr)?Wr.forEach(ar):Wr&&ge()(Wr)==="object"&&Object.values(Wr).forEach(ar)};return lr(_n),ft}var sa=e(6829),to=new sa.Kj;function Vr(){var _n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ft={},lr=ee()(_n),ar;try{for(lr.s();!(ar=lr.n()).done;)for(var Wr=ar.value,wo=Wr.replace(/^ctx\./,""),ko=wo.split("."),Jo=ft,Va=0;Va<ko.length;Va++){var Go=ko[Va],da=Va===ko.length-1;da?Jo[Go]="{{".concat(Wr,"}}"):(Jo[Go]=Jo[Go]||{},Jo=Jo[Go])}}catch(ba){lr.e(ba)}finally{lr.f()}return ft}function ho(_n){return co.apply(this,arguments)}function co(){return co=Gt()(Kt()().mark(function _n(ft){var lr;return Kt()().wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:return Wr.next=2,to.fullVariables(ft);case 2:return lr=Wr.sent,Wr.abrupt("return",Vr(lr));case 4:case"end":return Wr.stop()}},_n)})),co.apply(this,arguments)}function Co(_n,ft){return No.apply(this,arguments)}function No(){return No=Gt()(Kt()().mark(function _n(ft,lr){return Kt()().wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:return Wr.next=2,to.parseAndRender(ft,{ctx:lr});case 2:return Wr.abrupt("return",Wr.sent);case 3:case"end":return Wr.stop()}},_n)})),No.apply(this,arguments)}function lo(_n){var ft=1,lr={},ar=_n.replace(/{{\s*([^}]+)\s*}}/g,function(Wr,wo){var ko="__var".concat(ft);return lr[ko]="{{".concat(wo.trim(),"}}"),ft++,"$".concat(ko)});return{sql:ar,bind:lr}}function ca(_n){return sr.apply(this,arguments)}function sr(){return sr=Gt()(Kt()().mark(function _n(ft){var lr,ar,Wr,wo;return Kt()().wrap(function(Jo){for(;;)switch(Jo.prev=Jo.next){case 0:return lr=lo(ft),ar=lr.sql,Wr=lr.bind,Jo.next=3,ho(ar);case 3:return wo=Jo.sent,Jo.abrupt("return",{sql:ar,bind:Wr,liquidContext:wo});case 5:case"end":return Jo.stop()}},_n)})),sr.apply(this,arguments)}},14994:function(){"use strict"},40408:function(Ut,Re,e){var de={"./af":[15903,4920],"./af.js":[15903,4920],"./am":[29911,4920],"./am.js":[29911,4920],"./ar":[63939,4920],"./ar-dz":[47200,4920],"./ar-dz.js":[47200,4920],"./ar-iq":[87719,4920],"./ar-iq.js":[87719,4920],"./ar-kw":[62376,4920],"./ar-kw.js":[62376,4920],"./ar-ly":[48540,4920],"./ar-ly.js":[48540,4920],"./ar-ma":[96817,4920],"./ar-ma.js":[96817,4920],"./ar-sa":[11573,4920],"./ar-sa.js":[11573,4920],"./ar-tn":[99339,4920],"./ar-tn.js":[99339,4920],"./ar.js":[63939,4920],"./az":[88092,4920],"./az.js":[88092,4920],"./be":[60504,4920],"./be.js":[60504,4920],"./bg":[19091,4920],"./bg.js":[19091,4920],"./bi":[19149,4920],"./bi.js":[19149,4920],"./bm":[15287,4920],"./bm.js":[15287,4920],"./bn":[35254,4920],"./bn-bd":[61177,4920],"./bn-bd.js":[61177,4920],"./bn.js":[35254,4920],"./bo":[52502,4920],"./bo.js":[52502,4920],"./br":[8864,4920],"./br.js":[8864,4920],"./bs":[4502,4920],"./bs.js":[4502,4920],"./ca":[33646,4920],"./ca.js":[33646,4920],"./cs":[98507,4920],"./cs.js":[98507,4920],"./cv":[16636,4920],"./cv.js":[16636,4920],"./cy":[28792,4920],"./cy.js":[28792,4920],"./da":[17427,4920],"./da.js":[17427,4920],"./de":[80790,4920],"./de-at":[73237,4920],"./de-at.js":[73237,4920],"./de-ch":[16148,4920],"./de-ch.js":[16148,4920],"./de.js":[80790,4920],"./dv":[11794,4920],"./dv.js":[11794,4920],"./el":[65423,4920],"./el.js":[65423,4920],"./en":[25054,4920],"./en-au":[85109,4920],"./en-au.js":[85109,4920],"./en-ca":[55105,4920],"./en-ca.js":[55105,4920],"./en-gb":[99517,4920],"./en-gb.js":[99517,4920],"./en-ie":[30758,4920],"./en-ie.js":[30758,4920],"./en-il":[95805,4920],"./en-il.js":[95805,4920],"./en-in":[88529,4920],"./en-in.js":[88529,4920],"./en-nz":[50302,4920],"./en-nz.js":[50302,4920],"./en-sg":[35941,4920],"./en-sg.js":[35941,4920],"./en-tt":[46183,4920],"./en-tt.js":[46183,4920],"./en.js":[25054,4920],"./eo":[74990,4920],"./eo.js":[74990,4920],"./es":[67763,4920],"./es-do":[3864,4920],"./es-do.js":[3864,4920],"./es-mx":[37118,4920],"./es-mx.js":[37118,4920],"./es-pr":[23521,4920],"./es-pr.js":[23521,4920],"./es-us":[36165,4920],"./es-us.js":[36165,4920],"./es.js":[67763,4920],"./et":[99670,4920],"./et.js":[99670,4920],"./eu":[20837,4920],"./eu.js":[20837,4920],"./fa":[81379,4920],"./fa.js":[81379,4920],"./fi":[47822,4920],"./fi.js":[47822,4920],"./fo":[69197,4920],"./fo.js":[69197,4920],"./fr":[96023,4920],"./fr-ca":[77989,4920],"./fr-ca.js":[77989,4920],"./fr-ch":[54254,4920],"./fr-ch.js":[54254,4920],"./fr.js":[96023,4920],"./fy":[93220,4920],"./fy.js":[93220,4920],"./ga":[47467,4920],"./ga.js":[47467,4920],"./gd":[54855,4920],"./gd.js":[54855,4920],"./gl":[90229,4920],"./gl.js":[90229,4920],"./gom-latn":[46312,4920],"./gom-latn.js":[46312,4920],"./gu":[87632,4920],"./gu.js":[87632,4920],"./he":[76875,4920],"./he.js":[76875,4920],"./hi":[77573,4920],"./hi.js":[77573,4920],"./hr":[96257,4920],"./hr.js":[96257,4920],"./ht":[98889,4920],"./ht.js":[98889,4920],"./hu":[68562,4920],"./hu.js":[68562,4920],"./hy-am":[38242,4920],"./hy-am.js":[38242,4920],"./id":[83783,4920],"./id.js":[83783,4920],"./index.d":[46990,4920],"./index.d.ts":[46990,4920],"./is":[98980,4920],"./is.js":[98980,4920],"./it":[15551,4920],"./it-ch":[83706,4920],"./it-ch.js":[83706,4920],"./it.js":[15551,4920],"./ja":[76831,4920],"./ja.js":[76831,4920],"./jv":[42641,4920],"./jv.js":[42641,4920],"./ka":[46622,4920],"./ka.js":[46622,4920],"./kk":[32921,4920],"./kk.js":[32921,4920],"./km":[45567,4920],"./km.js":[45567,4920],"./kn":[21113,4920],"./kn.js":[21113,4920],"./ko":[19132,4920],"./ko.js":[19132,4920],"./ku":[94888,4920],"./ku.js":[94888,4920],"./ky":[60466,4920],"./ky.js":[60466,4920],"./lb":[91796,4920],"./lb.js":[91796,4920],"./lo":[68894,4920],"./lo.js":[68894,4920],"./lt":[78768,4920],"./lt.js":[78768,4920],"./lv":[30953,4920],"./lv.js":[30953,4920],"./me":[18066,4920],"./me.js":[18066,4920],"./mi":[68602,4920],"./mi.js":[68602,4920],"./mk":[51560,4920],"./mk.js":[51560,4920],"./ml":[4017,4920],"./ml.js":[4017,4920],"./mn":[94717,4920],"./mn.js":[94717,4920],"./mr":[15473,4920],"./mr.js":[15473,4920],"./ms":[43986,4920],"./ms-my":[77387,4920],"./ms-my.js":[77387,4920],"./ms.js":[43986,4920],"./mt":[28477,4920],"./mt.js":[28477,4920],"./my":[62966,4920],"./my.js":[62966,4920],"./nb":[19682,4920],"./nb.js":[19682,4920],"./ne":[14149,4920],"./ne.js":[14149,4920],"./nl":[99182,4920],"./nl-be":[37496,4920],"./nl-be.js":[37496,4920],"./nl.js":[99182,4920],"./nn":[92722,4920],"./nn.js":[92722,4920],"./oc-lnc":[76159,4920],"./oc-lnc.js":[76159,4920],"./pa-in":[35914,4920],"./pa-in.js":[35914,4920],"./pl":[81987,4920],"./pl.js":[81987,4920],"./pt":[15001,4920],"./pt-br":[57548,4920],"./pt-br.js":[57548,4920],"./pt.js":[15001,4920],"./rn":[123,4920],"./rn.js":[123,4920],"./ro":[18146,4920],"./ro.js":[18146,4920],"./ru":[70600,4920],"./ru.js":[70600,4920],"./rw":[6509,4920],"./rw.js":[6509,4920],"./sd":[65437,4920],"./sd.js":[65437,4920],"./se":[772,4920],"./se.js":[772,4920],"./si":[77109,4920],"./si.js":[77109,4920],"./sk":[35627,4920],"./sk.js":[35627,4920],"./sl":[82544,4920],"./sl.js":[82544,4920],"./sq":[88341,4920],"./sq.js":[88341,4920],"./sr":[50617,4920],"./sr-cyrl":[37101,4920],"./sr-cyrl.js":[37101,4920],"./sr.js":[50617,4920],"./ss":[64127,4920],"./ss.js":[64127,4920],"./sv":[91876,4920],"./sv-fi":[19911,4920],"./sv-fi.js":[19911,4920],"./sv.js":[91876,4920],"./sw":[46148,4920],"./sw.js":[46148,4920],"./ta":[55596,4920],"./ta.js":[55596,4920],"./te":[45159,4920],"./te.js":[45159,4920],"./tet":[99157,4920],"./tet.js":[99157,4920],"./tg":[9928,4920],"./tg.js":[9928,4920],"./th":[62019,4920],"./th.js":[62019,4920],"./tk":[75817,4920],"./tk.js":[75817,4920],"./tl-ph":[46513,4920],"./tl-ph.js":[46513,4920],"./tlh":[97296,4920],"./tlh.js":[97296,4920],"./tr":[73035,4920],"./tr.js":[73035,4920],"./types.d":[63799,4920],"./types.d.ts":[63799,4920],"./tzl":[57797,4920],"./tzl.js":[57797,4920],"./tzm":[84722,4920],"./tzm-latn":[30261,4920],"./tzm-latn.js":[30261,4920],"./tzm.js":[84722,4920],"./ug-cn":[80313,4920],"./ug-cn.js":[80313,4920],"./uk":[64144,4920],"./uk.js":[64144,4920],"./ur":[92957,4920],"./ur.js":[92957,4920],"./uz":[7486,4920],"./uz-latn":[98727,4920],"./uz-latn.js":[98727,4920],"./uz.js":[7486,4920],"./vi":[37553,4920],"./vi.js":[37553,4920],"./x-pseudo":[55321,4920],"./x-pseudo.js":[55321,4920],"./yo":[14724,4920],"./yo.js":[14724,4920],"./zh":[32009,4920],"./zh-cn":[33852],"./zh-cn.js":[33852],"./zh-hk":[2390,4920],"./zh-hk.js":[2390,4920],"./zh-tw":[43901,4920],"./zh-tw.js":[43901,4920],"./zh.js":[32009,4920]};function P(ve){if(!e.o(de,ve))return Promise.resolve().then(function(){var N=new Error("Cannot find module '"+ve+"'");throw N.code="MODULE_NOT_FOUND",N});var x=de[ve],h=x[0];return Promise.all(x.slice(1).map(e.e)).then(function(){return e.t(h,23)})}P.keys=function(){return Object.keys(de)},P.id=40408,Ut.exports=P},95475:function(Ut){function Re(e){return Promise.resolve().then(function(){var de=new Error("Cannot find module '"+e+"'");throw de.code="MODULE_NOT_FOUND",de})}Re.keys=function(){return[]},Re.resolve=Re,Re.id=95475,Ut.exports=Re},59816:function(){},24654:function(){},95506:function(){},75347:function(){},31777:function(){},34017:function(){},59905:function(){},64604:function(){},75042:function(){}}]);
2726
+ `).concat(Ln)}function Wn(Tt){return fn.apply(this,arguments)}function fn(){return fn=ne()(T()().mark(function Tt(Pt){var Vt,an,rn,xt,Vn,qn,Jn=arguments;return T()().wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:if(Vt=Jn.length>1&&Jn[1]!==void 0?Jn[1]:{},an=typeof Pt=="string"?Pt:String(Pt??""),rn=!!Vt.preprocessTemplates,xt=rn?Nt.withTemplates:Nt.withoutTemplates,Vn=yr(xt,an),!Vn){fr.next=9;break}return fr.next=8,Vn;case 8:return fr.abrupt("return",fr.sent);case 9:return qn=ne()(T()().mark(function ur(){var Pn,Ln,Fn;return T()().wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:if(rn){qe.next=6;break}return qe.t0=Kt,qe.next=4,(0,Ct.n)(an);case 4:return qe.t1=qe.sent,qe.abrupt("return",(0,qe.t0)(qe.t1));case 6:return Pn=In(an,{processStringLiterals:!1}),qe.next=9,(0,Ct.n)(Pn);case 9:return Ln=qe.sent,Fn=In(Ln,{processBarePlaceholders:!1}),qe.abrupt("return",Kt(Fn));case 12:case"end":return qe.stop()}},ur)}))(),vn(xt,an,qn,wt),fr.prev=11,fr.next=14,qn;case 14:return fr.abrupt("return",fr.sent);case 17:throw fr.prev=17,fr.t0=fr.catch(11),xt.delete(an),fr.t0;case 21:case"end":return fr.stop()}},Tt,null,[[11,17]])})),fn.apply(this,arguments)}var Mn=e(65452);function gr(Tt){if(Array.isArray(Tt)){var Pt=Tt.map(function(an){return gr(an)}).filter(function(an){return an!==void 0});return Pt.length?Pt:void 0}if(Tt&&H()(Tt)==="object"){var Vt={};return Object.keys(Tt).forEach(function(an){var rn=gr(Tt[an]);rn!==void 0&&(Vt[an]=rn)}),Object.keys(Vt).length?Vt:void 0}return Tt==null||typeof Tt=="string"&&Tt===""?void 0:Tt}var On=function(Pt){return typeof Pt.on=="string"?Pt.on==="beforeRender":H()(Pt.on)==="object"?Pt.on.eventName==="beforeRender":!Pt.on&&Pt.manual!==!0},mr=e(42554)},47608:function(Ut,Re,e){"use strict";e.d(Re,{n:function(){return N}});var de=e(15009),P=e.n(de),ve=e(99289),x=e.n(ve),h=e(57930);function N(S){return J.apply(this,arguments)}function J(){return J=x()(P()().mark(function S(I){var M,B,O,W,f,k;return P()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(M=/<[A-Za-z]|<\//.test(I),M){g.next=3;break}return g.abrupt("return",I);case 3:return g.prev=3,g.next=6,h("imported_1q7hsm5_component",Promise.all([e.e(4326),e.e(8977),e.e(5505)]).then(e.bind(e,75572)));case 6:if(W=g.sent,f=(W==null?void 0:W.transform)||(W==null||(B=W.default)===null||B===void 0?void 0:B.transform),typeof f=="function"){g.next=10;break}return g.abrupt("return",I);case 10:return k=f(I,{transforms:["jsx"],jsxPragma:"ctx.React.createElement",jsxFragmentPragma:"ctx.React.Fragment",disableESTransforms:!0,production:!0}),g.abrupt("return",(O=k&&(k.code||(k==null?void 0:k.output)))!==null&&O!==void 0?O:I);case 14:return g.prev=14,g.t0=g.catch(3),g.abrupt("return",I);case 17:case"end":return g.stop()}},S,null,[[3,14]])})),J.apply(this,arguments)}},26233:function(Ut,Re,e){"use strict";e.d(Re,{HA:function(){return p},cO:function(){return i},nw:function(){return T},rz:function(){return V}});var de=e(19632),P=e.n(de),ve=e(52677),x=e.n(ve),h=e(15009),N=e.n(h),J=e(96695),S=e.n(J),I=e(5574),M=e.n(I),B=e(99289),O=e.n(B),W=e(80770),f=e(96486),k=e.n(f);function T(K,E){return g.apply(this,arguments)}function g(){return g=O()(N()().mark(function K(E,j){var w;return N()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(E){v.next=2;break}return v.abrupt("return",{});case 2:if(typeof E!="function"){v.next=14;break}return v.prev=3,v.next=6,E(j);case 6:return w=v.sent,v.abrupt("return",w||{});case 10:return v.prev=10,v.t0=v.catch(3),console.error("Error resolving defaultParams function:",v.t0),v.abrupt("return",{});case 14:return v.abrupt("return",E);case 15:case"end":return v.stop()}},K,null,[[3,10]])})),g.apply(this,arguments)}function i(K,E,j){return Z.apply(this,arguments)}function Z(){return Z=O()(N()().mark(function K(E,j,w){var D;return N()().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(E){G.next=2;break}return G.abrupt("return",{});case 2:if(typeof E!="function"){G.next=14;break}return G.prev=3,G.next=6,E(j,w);case 6:return D=G.sent,G.abrupt("return",D||{});case 10:return G.prev=10,G.t0=G.catch(3),console.error("Error resolving createModelOptions function:",G.t0),G.abrupt("return",{});case 14:return G.abrupt("return",E);case 15:case"end":return G.stop()}},K,null,[[3,10]])})),Z.apply(this,arguments)}var H={queue:[],timer:null,inflightByRun:new Map},Q=10;function ne(K){if(Array.isArray(K))return K.map(ne);if(k().isPlainObject(K)){var E=Object.entries(K).map(function(w){var D=M()(w,2),v=D[0],G=D[1];return[v,ne(G)]}),j=k().sortBy(E,function(w){var D=M()(w,1),v=D[0];return v});return Object.fromEntries(j)}return K}function ue(K){try{return JSON.stringify(ne(K))}catch{try{return JSON.stringify(K)}catch{return String(K)}}}function V(K,E){var j=H,w=K.runId||"GLOBAL",D=ue(E),v=j.inflightByRun.get(w);v||(v=new Map,j.inflightByRun.set(w,v));var G=v.get(D);if(G)return G;var Y,te,ee=new Promise(function(Ee,_e){Y=Ee,te=_e});v.set(D,ee);var X="".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2)),Ce={id:X,ctx:K,payload:E,resolve:Y,reject:te,runId:w,dedupKey:D};j.queue.push(Ce);var Se=function(){var Ee=O()(N()().mark(function _e(){var re,me,oe,ie,Pe,De,ce,Ie,ye,pe,ge,fe,Oe,Te,Fe,Ae,$e,Ne,nt,He,je,Je,ke,Be,Ke,le,xe,Ge,Ve,lt,ct,Et,Qe;return N()().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:if(me=j.queue.splice(0,j.queue.length),j.timer=null,me.length){_t.next=4;break}return _t.abrupt("return");case 4:if(oe=(re=me[0].ctx)===null||re===void 0?void 0:re.api,oe){_t.next=9;break}ie=S()(me);try{for(ie.s();!(Pe=ie.n()).done;){De=Pe.value;try{De.resolve(De.payload.template)}catch(en){De.reject(en)}finally{(ce=j.inflightByRun.get(De.runId))===null||ce===void 0||ce.delete(De.dedupKey)}}}catch(en){ie.e(en)}finally{ie.f()}return _t.abrupt("return");case 9:return _t.prev=9,pe=me.map(function(en){return{id:en.id,template:en.payload.template,contextParams:en.payload.contextParams||{}}}),_t.next=13,oe.request({method:"POST",url:"variables:resolve",data:{values:{batch:pe}}});case 13:ge=_t.sent,fe=(Ie=ge.data)!==null&&Ie!==void 0?Ie:ge,Oe=(ye=fe.data)!==null&&ye!==void 0?ye:fe,Te=Oe==null?void 0:Oe.results,Fe=Array.isArray(Te)?Te:Array.isArray(Oe)?Oe:[],Ae=new Map,$e=S()(Fe);try{for($e.s();!(Ne=$e.n()).done;)nt=Ne.value,He=(nt==null?void 0:nt.id)!=null?String(nt.id):"",He&&Ae.set(He,nt==null?void 0:nt.data)}catch(en){$e.e(en)}finally{$e.f()}je=S()(me);try{for(je.s();!(Je=je.n()).done;){ke=Je.value;try{Be=String(ke.id),Ke=Ae.has(Be)?Ae.get(Be):ke.payload.template,ke.resolve(Ke)}catch(en){ke.reject(en)}finally{(le=j.inflightByRun.get(ke.runId))===null||le===void 0||le.delete(ke.dedupKey)}}}catch(en){je.e(en)}finally{je.f()}_t.next=29;break;case 25:_t.prev=25,_t.t0=_t.catch(9),xe=S()(me);try{for(xe.s();!(Ge=xe.n()).done;){Ve=Ge.value;try{K==null||(lt=K.logger)===null||lt===void 0||(ct=(Et=lt).warn)===null||ct===void 0||ct.call(Et,{err:_t.t0},"variables:resolve(batch) failed, fallback"),Ve.resolve(Ve.payload.template)}catch(en){Ve.reject(en)}finally{(Qe=j.inflightByRun.get(Ve.runId))===null||Qe===void 0||Qe.delete(Ve.dedupKey)}}}catch(en){xe.e(en)}finally{xe.f()}case 29:case"end":return _t.stop()}},_e,null,[[9,25]])}));return function(){return Ee.apply(this,arguments)}}();return j.timer||(j.timer=setTimeout(Se,Q)),ee}function p(K,E){return b.apply(this,arguments)}function b(){return b=O()(N()().mark(function K(E,j){var w;return N()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return w=function(){var G=O()(N()().mark(function Y(te){var ee,X,Ce,Se,Ee,_e;return N()().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(!(typeof te=="string"&&/\{\{.*?\}\}/.test(te))){me.next=4;break}return me.next=3,A(te,j);case 3:return me.abrupt("return",me.sent);case 4:if(!Array.isArray(te)){me.next=6;break}return me.abrupt("return",Promise.all(te.map(w)));case 6:if(!(te&&x()(te)==="object")){me.next=18;break}ee={},X=0,Ce=Object.entries(te);case 9:if(!(X<Ce.length)){me.next=17;break}return Se=M()(Ce[X],2),Ee=Se[0],_e=Se[1],me.next=13,w(_e);case 13:ee[Ee]=me.sent;case 14:X++,me.next=9;break;case 17:return me.abrupt("return",ee);case 18:return me.abrupt("return",te);case 19:case"end":return me.stop()}},Y)}));return function(te){return G.apply(this,arguments)}}(),v.abrupt("return",w(E));case 2:case"end":return v.stop()}},K)})),b.apply(this,arguments)}function R(K,E){return y.apply(this,arguments)}function y(){return y=O()(N()().mark(function K(E,j){var w,D;return N()().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,z(E.trim(),j);case 2:return w=G.sent,G.next=5,j.runjs("return ".concat(w),{t:j.t});case 5:return D=G.sent,G.abrupt("return",D!=null&&D.success?D.value:void 0);case 7:case"end":return G.stop()}},K)})),y.apply(this,arguments)}function z(K,E){return c.apply(this,arguments)}function c(){return c=O()(N()().mark(function K(E,j){var w,D,v,G,Y,te,ee,X,Ce,Se,Ee,_e,re,me,oe,ie,Pe,De,ce,Ie,ye,pe,ge,fe,Oe,Te;return N()().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:for(w=/ctx\.([a-zA-Z_$][a-zA-Z0-9_$]*(?:(?:\.[a-zA-Z_$][a-zA-Z0-9_$]*)|(?:\[[^\]]+\]))*)(?!\s*\()/g,D=[],v=new Set;(G=w.exec(E))!==null;)Y=G[0],te=G[1],ee=te.match(/^([a-zA-Z_$][a-zA-Z0-9_$]*)/),ee&&(X=ee[1],Ce=te.substring(X.length),D.push({fullPath:Y,firstKey:X,restPath:Ce}),v.add(X));if(D.length!==0){Ae.next=6;break}return Ae.abrupt("return",E);case 6:Se=new Map,Ee=S()(v),Ae.prev=8,Ee.s();case 10:if((_e=Ee.n()).done){Ae.next=25;break}return re=_e.value,Ae.prev=12,Ae.next=15,j[re];case 15:me=Ae.sent,oe=me&&me.__isRecordProxy__===!0,Se.set(re,oe),Ae.next=23;break;case 20:Ae.prev=20,Ae.t0=Ae.catch(12),Se.set(re,!1);case 23:Ae.next=10;break;case 25:Ae.next=30;break;case 27:Ae.prev=27,Ae.t1=Ae.catch(8),Ee.e(Ae.t1);case 30:return Ae.prev=30,Ee.f(),Ae.finish(30);case 33:for(D.sort(function($e,Ne){return Ne.fullPath.length-$e.fullPath.length}),ie=E,Pe=0,De=D;Pe<De.length;Pe++)ce=De[Pe],Ie=ce.fullPath,ye=ce.firstKey,pe=ce.restPath,ge=Se.get(ye)||!1,fe=void 0,pe===""?fe="await ctx.".concat(ye):fe=ge?"await (await ctx.".concat(ye,")").concat(pe):"(await ctx.".concat(ye,")").concat(pe),Oe=Ie.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Te=new RegExp("\\b".concat(Oe,"\\b"),"g"),ie=ie.replace(Te,fe);return Ae.abrupt("return",ie);case 37:case"end":return Ae.stop()}},K,null,[[8,27,30,33],[12,20]])})),c.apply(this,arguments)}function A(K,E){return U.apply(this,arguments)}function U(){return U=O()(N()().mark(function K(E,j){var w,D,v,G,Y,te,ee,X,Ce,Se,Ee,_e,re,me;return N()().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(w=function(De){var ce=De.trim().match(/^ctx\.([a-zA-Z_$][a-zA-Z0-9_$]*)(?:\.([a-zA-Z_$][a-zA-Z0-9_$-]*(?:\.[a-zA-Z_$][a-zA-Z0-9_$-]*)*))?$/);return ce?ce[2]?"".concat(ce[1],".").concat(ce[2]):ce[1]:null},D=function(){var Pe=O()(N()().mark(function De(ce){var Ie,ye,pe;return N()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(Ie=ce.split("."),ye=Ie.shift(),ye){fe.next=4;break}return fe.abrupt("return",void 0);case 4:return fe.next=6,j[ye];case 6:if(pe=fe.sent,Ie.length!==0){fe.next=9;break}return fe.abrupt("return",pe);case 9:return fe.abrupt("return",(0,W.Bb)(pe,Ie.join(".")));case 10:case"end":return fe.stop()}},De)}));return function(ce){return Pe.apply(this,arguments)}}(),v=function(){var Pe=O()(N()().mark(function De(ce){var Ie,ye;return N()().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:if(Ie=w(ce),!Ie){ge.next=10;break}return ge.next=4,D(Ie);case 4:if(ye=ge.sent,!(ye===void 0&&Ie.includes("-"))){ge.next=9;break}return ge.next=8,R(ce,j);case 8:return ge.abrupt("return",ge.sent);case 9:return ge.abrupt("return",ye);case 10:return ge.next=12,R(ce,j);case 12:return ge.abrupt("return",ge.sent);case 13:case"end":return ge.stop()}},De)}));return function(ce){return Pe.apply(this,arguments)}}(),G=E.match(/^\s*\{\{\s*([^{}]+?)\s*\}\}\s*$/),!G){ie.next=9;break}return Y=G[1],ie.next=8,v(Y);case 8:return ie.abrupt("return",ie.sent);case 9:te=P()(E.matchAll(/\{\{\s*(.+?)\s*\}\}/g)),ee=E,X=S()(te),ie.prev=12,X.s();case 14:if((Ce=X.n()).done){ie.next=22;break}return Se=M()(Ce.value,2),Ee=Se[0],_e=Se[1],ie.next=18,v(_e);case 18:re=ie.sent,re!==void 0&&(me=x()(re)==="object"&&re!==null?JSON.stringify(re):String(re),ee=ee.replace(Ee,me));case 20:ie.next=14;break;case 22:ie.next=27;break;case 24:ie.prev=24,ie.t0=ie.catch(12),X.e(ie.t0);case 27:return ie.prev=27,X.f(),ie.finish(27);case 30:return ie.abrupt("return",ee);case 31:case"end":return ie.stop()}},K,null,[[12,24,27,30]])})),U.apply(this,arguments)}},42554:function(Ut,Re,e){"use strict";e.d(Re,{O:function(){return de},P:function(){return P}});function de(ve,x){if(!ve||typeof ve!="string")throw new Error("invalid url");var h=ve.trim();if(h.startsWith("http://")||h.startsWith("https://"))return h;var N=window.__esm_cdn_base_url__||"https://esm.sh",J=x!=null&&x.addSuffix&&window.__esm_cdn_suffix__||"",S=N.replace(/\/$/,""),I=h.replace(/^\//,"");if(x!=null&&x.raw){var M=I.includes("?")?"&":"?";return"".concat(S,"/").concat(I).concat(M,"raw")}return"".concat(S,"/").concat(I).concat(J)}function P(ve){if(!ve||typeof ve!="string")return!1;var x=ve.split("?")[0].split("#")[0];return x.endsWith(".css")}},24342:function(Ut,Re,e){"use strict";e.d(Re,{IA:function(){return Q},T:function(){return Z},YB:function(){return ue},cI:function(){return f},q3:function(){return k},sF:function(){return ne},uh:function(){return H}});var de=e(15009),P=e.n(de),ve=e(52677),x=e.n(ve),h=e(99289),N=e.n(h),J=e(19632),S=e.n(J),I=e(97857),M=e.n(I),B=e(96695),O=e.n(B);function W(){var p,b,R=globalThis;if((p=R.__nocobaseRunJSSafeGlobalsRegistry)!==null&&p!==void 0&&p.windowAllow&&(b=R.__nocobaseRunJSSafeGlobalsRegistry)!==null&&b!==void 0&&b.documentAllow)return R.__nocobaseRunJSSafeGlobalsRegistry;var y={windowAllow:new Set,documentAllow:new Set};return R.__nocobaseRunJSSafeGlobalsRegistry=y,y}function f(p){if(p){var b=W(),R=O()(p),y;try{for(R.s();!(y=R.n()).done;){var z=y.value;if(typeof z=="string"){var c=z.trim();c&&b.windowAllow.add(c)}}}catch(A){R.e(A)}finally{R.f()}}}function k(p){if(p){var b=W(),R=O()(p),y;try{for(R.s();!(y=R.n()).done;){var z=y.value;if(typeof z=="string"){var c=z.trim();c&&b.documentAllow.add(c)}}}catch(A){R.e(A)}finally{R.f()}}}function T(){var p=globalThis;if(p.__nocobaseRunJSSafeGlobalsRegistry)try{var b,R,y,z;(b=p.__nocobaseRunJSSafeGlobalsRegistry.windowAllow)===null||b===void 0||(R=b.clear)===null||R===void 0||R.call(b),(y=p.__nocobaseRunJSSafeGlobalsRegistry.documentAllow)===null||y===void 0||(z=y.clear)===null||z===void 0||z.call(y)}catch{}}function g(p){return W().windowAllow.has(p)}function i(p){return W().documentAllow.has(p)}function Z(p){var b=function(){return"".concat(window.location.origin).concat(window.location.pathname)},R=function(K,E,j){var w=function(ee){try{var X=new URL(ee,b()),Ce=X.protocol.toLowerCase();return Ce==="about:"?X.href==="about:blank":Ce==="http:"||Ce==="https:"}catch{return!1}};if(!w(K))throw new Error("Unsafe URL: window.open only allows http/https/about:blank.");var D="_blank",v=function(ee){var X=new Set;return ee&&ee.split(",").map(function(Ce){return Ce.trim()}).filter(Boolean).forEach(function(Ce){var Se=Ce.split("=")[0].trim().toLowerCase();Se!=="noopener"&&Se!=="noreferrer"&&X.add(Ce)}),X.add("noopener"),X.add("noreferrer"),Array.from(X).join(",")},G=v(j),Y=window.open.call(window,K,D,G);if(Y&&"opener"in Y)try{Y.opener=null}catch{}return Y},y=function(K,E){var j=new URL(K,b()),w=j.protocol.toLowerCase(),D=w==="about:"&&j.href==="about:blank",v=w==="http:"||w==="https:";if(!v&&!D)throw new Error("Unsafe URL: only http/https/about:blank are allowed.");if(D)return E!=null&&E.replace?window.location.replace("about:blank"):window.location.assign("about:blank");var G=j.protocol===window.location.protocol&&j.hostname===window.location.hostname&&j.port===window.location.port;if(G)return E!=null&&E.replace?window.location.replace(j.href):window.location.assign(j.href);var Y=R(j.href);if(!Y)throw new Error("Popup blocked: cross-origin navigation is opened in a new tab.")},z=new Proxy({},{get:function(K,E){switch(E){case"origin":return window.location.origin;case"protocol":return window.location.protocol;case"host":return window.location.host;case"hostname":return window.location.hostname;case"port":return window.location.port;case"pathname":return window.location.pathname;case"assign":return function(j){return y(j,{replace:!1})};case"replace":return function(j){return y(j,{replace:!0})};case"reload":return window.location.reload.bind(window.location);case"href":throw new Error("Reading location.href is not allowed.");default:throw new Error('Access to location property "'.concat(E,'" is not allowed.'))}},set:function(K,E,j){if(E==="href")return y(String(j),{replace:!1}),!0;throw new Error("Mutation on location is not allowed.")}}),c=M()(M()(M()({setTimeout:window.setTimeout.bind(window),clearTimeout:window.clearTimeout.bind(window),setInterval:window.setInterval.bind(window),clearInterval:window.clearInterval.bind(window),console,Math,Date,FormData},typeof Blob<"u"?{Blob}:{}),typeof URL<"u"?{URL}:{}),{},{addEventListener:addEventListener.bind(window),open:R,location:z},p||{}),A=Object.create(null);return new Proxy(A,{get:function(K,E){if(typeof E!="string")return Reflect.get(K,E);if(E in c)return c[E];if(Object.prototype.hasOwnProperty.call(K,E))return K[E];if(g(E)){var j=window[E];return typeof j=="function"?j.bind(window):j}throw new Error('Access to global property "'.concat(E,'" is not allowed.'))},set:function(K,E,j){if(typeof E!="string")return Reflect.set(K,E,j),!0;if(E in c)throw new Error('Mutation of global property "'.concat(E,'" is not allowed.'));return K[E]=j,!0},has:function(K,E){return typeof E!="string"?Reflect.has(K,E):!!(E in c||Object.prototype.hasOwnProperty.call(K,E)||g(E))}})}function H(p){var b=M()({createElement:document.createElement.bind(document),querySelector:document.querySelector.bind(document),querySelectorAll:document.querySelectorAll.bind(document)},p||{}),R=Object.create(null);return new Proxy(R,{get:function(z,c){if(typeof c!="string")return Reflect.get(z,c);if(c in b)return b[c];if(Object.prototype.hasOwnProperty.call(z,c))return z[c];if(i(c)){var A=document[c];return typeof A=="function"?A.bind(document):A}throw new Error('Access to document property "'.concat(c,'" is not allowed.'))},set:function(z,c,A){if(typeof c!="string")return Reflect.set(z,c,A),!0;if(c in b)throw new Error('Mutation of document property "'.concat(c,'" is not allowed.'));return z[c]=A,!0},has:function(z,c){return typeof c!="string"?Reflect.has(z,c):!!(c in b||Object.prototype.hasOwnProperty.call(z,c)||i(c))}})}function Q(p){var b,R=typeof window<"u"&&window.navigator||void 0,y={},z=R==null||(b=R.clipboard)===null||b===void 0?void 0:b.writeText;typeof z=="function"&&(y.writeText=z.bind(R.clipboard));var c={clipboard:y};return Object.defineProperty(c,"onLine",{get:function(){return!!(R!=null&&R.onLine)},enumerable:!0,configurable:!1}),Object.defineProperty(c,"language",{get:function(){return R==null?void 0:R.language},enumerable:!0,configurable:!1}),Object.defineProperty(c,"languages",{get:function(){return R!=null&&R.languages?S()(R.languages):void 0},enumerable:!0,configurable:!1}),Object.assign(c,p||{}),new Proxy({},{get:function(U,K){if(K in c)return c[K];throw new Error('Access to navigator property "'.concat(String(K),'" is not allowed.'))}})}function ne(p){var b={};try{var R=Q();b.navigator=R;try{b.window=Z({navigator:R})}catch{}}catch{}try{b.document=H()}catch{}return p?M()(M()({},b),p):b}function ue(p,b,R,y){return V.apply(this,arguments)}function V(){return V=N()(P()().mark(function p(b,R,y,z){var c;return P()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:if(!(!b||x()(b)!=="object"&&typeof b!="function")){U.next=2;break}return U.abrupt("return",void 0);case 2:if(c=b.runjs,typeof c=="function"){U.next=5;break}return U.abrupt("return",void 0);case 5:return U.abrupt("return",b.runjs(R,ne(z),y));case 6:case"end":return U.stop()}},p)})),V.apply(this,arguments)}},19433:function(Ut,Re,e){"use strict";e.d(Re,{A:function(){return M}});var de=e(19632),P=e.n(de),ve=e(52677),x=e.n(ve),h=e(5574),N=e.n(h);function J(B){var O={};return Object.entries(B||{}).forEach(function(W){var f=N()(W,2),k=f[0],T=f[1];typeof T<"u"&&T!==null&&(O[k]=T)}),O}function S(B,O,W){try{var f,k,T,g,i,Z=(f=B.dataSourceManager)===null||f===void 0||(k=f.getDataSource)===null||k===void 0?void 0:k.call(f,O||"main"),H=Z==null||(T=Z.collectionManager)===null||T===void 0||(g=T.getCollection)===null||g===void 0?void 0:g.call(T,W),Q=H==null||(i=H.getPrimaryKey)===null||i===void 0?void 0:i.call(H);return Q||"id"}catch{return"id"}}function I(B,O){var W,f;if(O){var k=O.dataSourceKey||"main",T=O.collection||((W=O.record)===null||W===void 0?void 0:W.__collectionName);if(T){var g=S(B,k,T)||"id",i=typeof O.filterByTk<"u"?O.filterByTk:typeof O.id<"u"?O.id:(f=O.record)===null||f===void 0?void 0:f[g];if(!(typeof i>"u"))return J({collection:T,filterByTk:i,dataSourceKey:k,associationName:O.associationName,sourceId:O.sourceId,fields:O.fields,appends:O.appends})}}}function M(B){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=function(g){return!g||x()(g)!=="object"?!1:typeof g.collection=="string"&&(typeof g.filterByTk<"u"||typeof g.id<"u"||g.record)},f={},k=function T(g,i){if(W(g)){var Z=I(B,g);if(Z){var H=i.join(".");f[H]=Z}return}if(Array.isArray(g)){for(var Q=0;Q<g.length;Q++)T(g[Q],[].concat(P()(i),[String(Q)]));return}if(g&&x()(g)==="object"){for(var ne=0,ue=Object.entries(g);ne<ue.length;ne++){var V=N()(ue[ne],2),p=V[0],b=V[1];T(b,[].concat(P()(i),[p]))}return}};return k(O,[]),Object.keys(f).length?f:void 0}},2991:function(Ut,Re,e){"use strict";e.d(Re,{Z:function(){return h}});var de=e(5574),P=e.n(de),ve=e(52677),x=e.n(ve);function h(N,J,S,I){var M={},B={},O=function(k){if(Object.prototype.hasOwnProperty.call(J,k)){var T=J[k],g={};if(T.uiSchema&&x()(T.uiSchema)==="object")for(var i=0,Z=Object.entries(T.uiSchema);i<Z.length;i++){var H=P()(Z[i],2),Q=H[0],ne=H[1];if(ne&&x()(ne)==="object"){var ue,V=ne;g[Q]={type:V.type||"any",title:V.title||((ue=V["x-decorator-props"])===null||ue===void 0?void 0:ue.label)||Q,interface:V["x-component"],uiSchema:V}}}var p=Object.keys(g).length>0;B[k]={type:"object",title:N.t(T.title)||k,display:p?"default":"none",properties:p?{params:{type:"object",title:"Parameters",display:"flatten",properties:g}}:void 0},M[k]={get params(){return S.getStepParams(I,k)||{}},get uiSchema(){return T.uiSchema},result:void 0}}};for(var W in J)O(W);N.defineProperty("steps",{get:function(){return M}})}},16184:function(Ut,Re,e){"use strict";e.d(Re,{D8:function(){return g},N3:function(){return p},RB:function(){return ne},Yp:function(){return Z},_6:function(){return ue},a9:function(){return Q},gn:function(){return V},lP:function(){return k},o3:function(){return T},p7:function(){return f},sg:function(){return W}});var de=e(97857),P=e.n(de),ve=e(15009),x=e.n(ve),h=e(99289),N=e.n(h),J=e(80770),S=e(19433),I=e(81886),M=e(54393),B=e(96486),O=e.n(B);function W(R){var y,z,c,A,U,K=R.resource,E=R.collection,j=R.record,w=(E==null?void 0:E.name)||(K==null||(y=K.getResourceName)===null||y===void 0?void 0:y.call(K)),D=(E==null?void 0:E.dataSourceKey)||(K==null||(z=K.getDataSourceKey)===null||z===void 0?void 0:z.call(K)),v=(c=K==null||(A=K.getFilterByTk)===null||A===void 0?void 0:A.call(K))!==null&&c!==void 0?c:E==null||(U=E.getFilterByTK)===null||U===void 0?void 0:U.call(E,j);if(!(!w||typeof v>"u"||v===null)){var G=String(w).split("."),Y=G[G.length-1];return{collection:Y,dataSourceKey:D,filterByTk:v}}}function f(R){var y,z,c,A=R.view;if(A){var U=(A==null?void 0:A.inputArgs)||{},K=(U==null?void 0:U.collectionName)||(A==null||(y=A.record)===null||y===void 0?void 0:y.collection),E=(U==null?void 0:U.dataSourceKey)||(A==null||(z=A.record)===null||z===void 0?void 0:z.dataSourceKey)||"main",j=(U==null?void 0:U.filterByTk)||(A==null||(c=A.record)===null||c===void 0?void 0:c.filterByTk),w=U==null?void 0:U.associationName,D=U==null?void 0:U.sourceId;if(!(!K||typeof j>"u"||j===null))return{collection:K,dataSourceKey:E,filterByTk:j,sourceId:D,associationName:w}}}function k(R,y){var z,c,A,U=(z=R.inputArgs)===null||z===void 0?void 0:z.record,K=(c=R.collection)===null||c===void 0?void 0:c.filterTargetKey;if(!(!U||!K)){var E=y.view,j=E==null||(A=E.inputArgs)===null||A===void 0?void 0:A.filterByTk,w=U[K];if(!(j==null||w==null)&&j===w)return O().cloneDeep(U)}}function T(R,y){return function(z){var c,A,U,K;if(!(z==="record"||z.startsWith("record.")))return!1;var E=y();if(!E)return!0;if(z==="record")return!1;var j=f(R),w=j==null?void 0:j.collection,D=(j==null?void 0:j.dataSourceKey)||"main";if(!w)return!0;var v=(c=R.dataSourceManager)===null||c===void 0||(A=c.getDataSource)===null||A===void 0?void 0:A.call(c,D),G=v==null||(U=v.collectionManager)===null||U===void 0||(K=U.getCollection)===null||K===void 0?void 0:K.call(U,w);if(!G)return!0;var Y=(0,M.V)(function(){return G},function(){return E}),te=z.startsWith("record.")?z.slice(7):"";return te?Y(te):!1}}function g(R,y){var z=(0,M.V)(R,function(){return y()});return function(c){var A=y();if(!A)return!0;if(!c)return!1;var U=R();if(!c.includes(".")){var K,E,j=c,w;if(U&&(typeof U.getField=="function"&&(w=U.getField(j)),!w&&typeof U.getFields=="function")){var D=U.getFields()||[];w=D.find(function(Y){return(Y==null?void 0:Y.name)===j})}var v=!!((K=w)!==null&&K!==void 0&&(E=K.isAssociationField)!==null&&E!==void 0&&E.call(K));if(!v)return!1;var G=A==null?void 0:A[j];return G==null}return z(c)}}function i(R){var y,z,c,A,U=R.resource,K=((y=R.collection)===null||y===void 0?void 0:y.dataSourceKey)||(U==null||(z=U.getDataSourceKey)===null||z===void 0?void 0:z.call(U)),E=U==null||(c=U.getResourceName)===null||c===void 0?void 0:c.call(U),j=U==null||(A=U.getSourceId)===null||A===void 0?void 0:A.call(U);if(!(!E||typeof j>"u"||j===null)){var w=String(E).split(".");if(!(w.length<2))return{collection:w[0],dataSourceKey:K,filterByTk:j}}}function Z(R,y,z){return H.apply(this,arguments)}function H(){return H=N()(x()().mark(function R(y,z,c){var A;return x()().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,(0,I.L)(y,z,!0)();case 2:if(A=K.sent,A){K.next=5;break}return K.abrupt("return",null);case 5:return K.abrupt("return",P()(P()({},A),{},{buildVariablesParams:function(j){return c?c(j):W(j)}}));case 6:case"end":return K.stop()}},R)})),H.apply(this,arguments)}function Q(R,y,z){var c=function(){var A=N()(x()().mark(function U(){return x()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",Z(R,y,z));case 1:case"end":return E.stop()}},U)}));return function(){return A.apply(this,arguments)}}();return c.title=y,c}function ne(R,y,z){var c,A,U=z!=null&&z.title?((c=R.t)===null||c===void 0?void 0:c.call(R,z.title))||z.title:((A=R.t)===null||A===void 0?void 0:A.call(R,"Current record"))||"Current record";return Q(y,U,function(K){return W(K)})}var ue=J._6,V=J.gn;function p(R,y){return b.apply(this,arguments)}function b(){return b=N()(x()().mark(function R(y,z){var c,A,U,K,E,j,w,D,v,G,Y,te;return x()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(c=(0,J.gn)(z)||{},A=Object.keys(c),A.length){X.next=4;break}return X.abrupt("return",void 0);case 4:U={},K=0,E=A;case 6:if(!(K<E.length)){X.next=37;break}if(w=E[K],D=(j=y.getPropertyOptions)===null||j===void 0?void 0:j.call(y,w),v=D==null?void 0:D.meta,v){X.next=12;break}return X.abrupt("continue",34);case 12:if(G=void 0,X.prev=13,typeof v!="function"){X.next=20;break}return X.next=17,v();case 17:X.t0=X.sent,X.next=21;break;case 20:X.t0=v;case 21:if(Y=X.t0,te=Y==null?void 0:Y.buildVariablesParams,typeof te!="function"){X.next=27;break}return X.next=26,te(y);case 26:G=X.sent;case 27:X.next=33;break;case 29:return X.prev=29,X.t1=X.catch(13),X.t1,X.abrupt("continue",34);case 33:G&&(U[w]=G);case 34:K++,X.next=6;break;case 37:return X.abrupt("return",(0,S.A)(y,U));case 38:case"end":return X.stop()}},R,null,[[13,29]])})),b.apply(this,arguments)}},43333:function(Ut,Re,e){"use strict";e.d(Re,{QO:function(){return De},K8:function(){return Pe},k9:function(){return Be},Rh:function(){return G},yT:function(){return Se},qt:function(){return Ie},Sv:function(){return Te}});var de=e(5574),P=e.n(de),ve=e(97857),x=e.n(ve),h=e(15009),N=e.n(h),J=e(99289),S=e.n(J),I=e(67294),M=e(22424),B=e(48890),O=e(67946),W=e(43992),f=e(52677),k=e.n(f),T=e(16184);function g(Ke){if(Ke===null||_typeof(Ke)!=="object")return!1;var le=Object.getPrototypeOf(Ke);return le===Object.prototype||le===null}function i(Ke,le,xe){var Ge=_typeof(Ke);return Ke==null?{type:"any",title:le}:Array.isArray(Ke)?{type:"array",title:le,properties:function(){var Ve=_asyncToGenerator(_regeneratorRuntime().mark(function ct(){var Et,Qe,gt,_t;return _regeneratorRuntime().wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:for(Et=Math.min(Ke.length||0,10),Qe={},gt=xe??new WeakSet,_t=0;_t<Et;_t++)Qe[String(_t)]=i(Ke[_t],"#".concat(_t),gt);return hn.abrupt("return",Qe);case 5:case"end":return hn.stop()}},ct)}));function lt(){return Ve.apply(this,arguments)}return lt}()}:Ge==="string"?{type:"string",title:le}:Ge==="number"?{type:"number",title:le}:Ge==="boolean"?{type:"boolean",title:le}:Ge==="object"&&g(Ke)?{type:"object",title:le,properties:function(){var Ve=_asyncToGenerator(_regeneratorRuntime().mark(function ct(){var Et,Qe;return _regeneratorRuntime().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:if(Et=xe??new WeakSet,!Et.has(Ke)){_t.next=3;break}return _t.abrupt("return",{});case 3:return Et.add(Ke),Qe={},Object.keys(Ke||{}).forEach(function(en){Qe[en]=i(Ke[en],en,Et)}),_t.abrupt("return",Qe);case 7:case"end":return _t.stop()}},ct)}));function lt(){return Ve.apply(this,arguments)}return lt}()}:{type:"any",title:le}}function Z(Ke,le){var xe=function(hn){return Ke.t(hn)},Ge=function(hn){var gn,bn;if(!hn)return!1;var Rt=Array.isArray((gn=hn.navigation)===null||gn===void 0?void 0:gn.viewStack)?hn.navigation.viewStack:[],Ze=hn==null||(bn=hn.inputArgs)===null||bn===void 0?void 0:bn.openerUids,Ft=Array.isArray(Ze)&&Ze.length>0;return Rt.length>=2||Ft},Ve=function(){return Ge(le??Ke.view)},lt=function(){var en=S()(N()().mark(function hn(gn){var bn,Rt,Ze;return N()().wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(bn=le??gn.view,!(!bn||!Ge(bn))){Ct.next=3;break}return Ct.abrupt("return",void 0);case 3:return Ct.next=5,H(gn,bn);case 5:if(Rt=Ct.sent,Ze=Rt==null?void 0:Rt.resource,!(Ze!=null&&Ze.collectionName&&Ze.filterByTk!=null)){Ct.next=9;break}return Ct.abrupt("return",{collection:Ze.collectionName,dataSourceKey:Ze.dataSourceKey||"main",filterByTk:Ze.filterByTk,associationName:Ze.associationName,sourceId:Ze.sourceId});case 9:return Ct.abrupt("return",(0,T.p7)(gn));case 10:case"end":return Ct.stop()}},hn)}));return function(gn){return en.apply(this,arguments)}}(),ct=function(){var en=S()(N()().mark(function hn(){var gn,bn,Rt,Ze,Ft,Ct;return N()().wrap(function(St){for(;;)switch(St.prev=St.next){case 0:return St.next=2,lt(Ke);case 2:if(Ft=St.sent,Ft!=null&&Ft.collection){St.next=5;break}return St.abrupt("return",null);case 5:return Ct=(gn=Ke.dataSourceManager)===null||gn===void 0||(bn=gn.getDataSource)===null||bn===void 0?void 0:bn.call(gn,Ft.dataSourceKey||"main"),St.abrupt("return",(Ct==null||(Rt=Ct.collectionManager)===null||Rt===void 0||(Ze=Rt.getCollection)===null||Ze===void 0?void 0:Ze.call(Rt,Ft.collection))||null);case 7:case"end":return St.stop()}},hn)}));return function(){return en.apply(this,arguments)}}(),Et=function(){var en=S()(N()().mark(function hn(gn,bn){var Rt,Ze,Ft,Ct,bt,St,zt,An,xn,un,Sn,jn,wt,Nt,yr,vn,hr,Tr,Kr,Or;return N()().wrap(function(Ir){for(;;)switch(Ir.prev=Ir.next){case 0:if(Ir.prev=0,St=bn||Ke,zt=(Rt=St.view)===null||Rt===void 0?void 0:Rt.navigation,An=Array.isArray(zt==null?void 0:zt.viewStack)?zt.viewStack:[],!(An.length<2||gn<1)){Ir.next=6;break}return Ir.abrupt("return",void 0);case 6:if(xn=An.length-1-gn,!(xn<0)){Ir.next=9;break}return Ir.abrupt("return",void 0);case 9:if(un=An[xn],un!=null&&un.viewUid){Ir.next=12;break}return Ir.abrupt("return",void 0);case 12:if(Sn=(Ze=St.engine)===null||Ze===void 0?void 0:Ze.getModel(un.viewUid,!0),Sn){Ir.next=23;break}return Ir.prev=14,Ir.next=17,St.engine.loadModel({uid:un.viewUid});case 17:Sn=Ir.sent,Ir.next=23;break;case 20:Ir.prev=20,Ir.t0=Ir.catch(14),(jn=St.logger||Ke.logger)===null||jn===void 0||(wt=jn.warn)===null||wt===void 0||wt.call(jn,{err:Ir.t0},"[FlowEngine] popup.getParentRecordRef loadModel failed");case 23:if(Nt=((Ft=Sn)===null||Ft===void 0||(Ct=Ft.getStepParams)===null||Ct===void 0?void 0:Ct.call(Ft,"popupSettings","openView"))||{},yr=Nt==null?void 0:Nt.collectionName,vn=(Nt==null?void 0:Nt.dataSourceKey)||"main",hr=(bt=un==null?void 0:un.filterByTk)!==null&&bt!==void 0?bt:un==null?void 0:un.sourceId,!(!yr||typeof hr>"u"||hr===null)){Ir.next=29;break}return Ir.abrupt("return",void 0);case 29:return Tr={collection:yr,dataSourceKey:vn,filterByTk:hr,sourceId:un==null?void 0:un.sourceId,associationName:Nt==null?void 0:Nt.associationName},Ir.abrupt("return",Tr);case 33:return Ir.prev=33,Ir.t1=Ir.catch(0),(Kr=(bn==null?void 0:bn.logger)||Ke.logger)===null||Kr===void 0||(Or=Kr.warn)===null||Or===void 0||Or.call(Kr,{err:Ir.t1},"[FlowEngine] popup.getParentRecordRef failed"),Ir.abrupt("return",void 0);case 37:case"end":return Ir.stop()}},hn,null,[[0,33],[14,20]])}));return function(gn,bn){return en.apply(this,arguments)}}(),Qe=function(hn){try{var gn,bn=(gn=le??Ke.view)===null||gn===void 0?void 0:gn.navigation,Rt=Array.isArray(bn==null?void 0:bn.viewStack)?bn.viewStack:[];return Rt.length>=hn+1}catch{return!1}},gt=function(hn){var gn=function(){var Rt={type:"object",title:xe("Parent popup"),disabled:function(){return!Qe(hn)},disabledReason:function(){return Qe(hn)?void 0:xe("No parent popup")},hidden:function(){return!Qe(hn)},properties:function(){var Ze=S()(N()().mark(function Ct(){var bt,St,zt,An,xn;return N()().wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return Sn.next=2,Et(hn);case 2:if(bt=Sn.sent,St={},St.uid={type:"string",title:xe("Popup uid")},!bt){Sn.next=13;break}return zt=function(){try{var jn,wt,Nt,yr,vn=(jn=Ke.dataSourceManager)===null||jn===void 0||(wt=jn.getDataSource)===null||wt===void 0?void 0:wt.call(jn,bt.dataSourceKey||"main");return(vn==null||(Nt=vn.collectionManager)===null||Nt===void 0||(yr=Nt.getCollection)===null||yr===void 0?void 0:yr.call(Nt,bt.collection||""))||null}catch{return null}}(),Sn.next=9,(0,T.Yp)(function(){return zt},xe("Popup record"),function(){return bt});case 9:An=Sn.sent,St.record=An||{type:"object",title:xe("Popup record")},Sn.next=14;break;case 13:St.record={type:"object",title:xe("Popup record")};case 14:return xn={type:"object",title:xe("Data source"),properties:function(){var jn=S()(N()().mark(function Nt(){return N()().wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:return vn.abrupt("return",{dataSourceKey:{type:"string",title:xe("Data source key")},collectionName:{type:"string",title:xe("Collection name")},associationName:{type:"string",title:xe("Association name")},filterByTk:{type:"string",title:xe("filterByTk")},sourceId:{type:"string",title:xe("sourceId")}});case 1:case"end":return vn.stop()}},Nt)}));function wt(){return jn.apply(this,arguments)}return wt}()},St.resource=xn,Sn.abrupt("return",St);case 17:case"end":return Sn.stop()}},Ct)}));function Ft(){return Ze.apply(this,arguments)}return Ft}()};return Rt};return gn.title=xe("Parent popup"),gn},_t=function(){var hn={type:"object",title:xe("Current popup"),disabled:function(){return!Ve()},hidden:function(){return!Ve()},buildVariablesParams:function(){var gn=S()(N()().mark(function Rt(Ze){var Ft,Ct,bt,St,zt,An,xn,un,Sn,jn,wt,Nt,yr,vn,hr,Tr,Kr,Or,Er;return N()().wrap(function(Br){for(;;)switch(Br.prev=Br.next){case 0:if(Ve()){Br.next=2;break}return Br.abrupt("return",void 0);case 2:return Br.next=4,lt(Ze);case 4:if(Ct=Br.sent,bt=(Ft=Ze.view)===null||Ft===void 0?void 0:Ft.inputArgs,St={},Ct&&(zt=x()({},Ct),!zt.associationName&&bt!==null&&bt!==void 0&&bt.associationName&&(zt.associationName=bt.associationName),typeof zt.sourceId>"u"&&typeof(bt==null?void 0:bt.sourceId)<"u"&&(zt.sourceId=bt==null?void 0:bt.sourceId),St.record=zt),Br.prev=8,xn=(An=Ze.view)===null||An===void 0?void 0:An.navigation,un=Array.isArray(xn==null?void 0:xn.viewStack)?xn.viewStack:[],!(un.length>=2)){Br.next=27;break}return Sn=St,jn=1,Br.next=16,Et(jn,Ze);case 16:wt=Br.sent;case 17:if(!wt){Br.next=27;break}return Sn.parent||(Sn.parent={}),Sn.parent.record=wt,Sn=Sn.parent,jn+=1,Br.next=24,Et(jn,Ze);case 24:wt=Br.sent,Br.next=17;break;case 27:Br.next=32;break;case 29:Br.prev=29,Br.t0=Br.catch(8),(Nt=Ze.logger)===null||Nt===void 0||(yr=Nt.debug)===null||yr===void 0||yr.call(Nt,{err:Br.t0},"[FlowEngine] buildVariablesParams: build parent-chain failed");case 32:try{vn=bt==null?void 0:bt.sourceId,hr=bt==null?void 0:bt.associationName,Tr=(bt==null?void 0:bt.dataSourceKey)||"main",vn!=null&&vn!==""&&hr&&typeof hr=="string"&&(Kr=String(hr).split(".")[0],Kr&&(St.sourceRecord={collection:Kr,dataSourceKey:Tr,filterByTk:vn}))}catch(xo){(Or=Ze.logger)===null||Or===void 0||(Er=Or.debug)===null||Er===void 0||Er.call(Or,{err:xo},"[FlowEngine] buildVariablesParams: infer sourceRecord failed")}return Br.abrupt("return",St);case 34:case"end":return Br.stop()}},Rt,null,[[8,29]])}));function bn(Rt){return gn.apply(this,arguments)}return bn}(),properties:function(){var gn=S()(N()().mark(function Rt(){var Ze,Ft,Ct,bt,St,zt,An,xn,un,Sn,jn,wt,Nt,yr,vn,hr,Tr,Kr,Or,Er,Ir,Br,xo,qo;return N()().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:return Ze={},Ze.uid={type:"string",title:xe("Popup uid")},kn.next=4,lt(Ke);case 4:if(Ft=kn.sent,Ft&&(Ct=function(){var Ot=S()(N()().mark(function Zt(){var Mt;return N()().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,ct();case 2:if(Mt=At.sent,Mt){At.next=5;break}return At.abrupt("return",null);case 5:return At.next=7,(0,T.Yp)(function(){return Mt},xe("Current popup record"),function(vt){return lt(vt)});case 7:return At.abrupt("return",At.sent);case 8:case"end":return At.stop()}},Zt)}));return function(){return Ot.apply(this,arguments)}}(),Ct.title=xe("Current popup record"),Ct.hasChildren=!0,Ze.record=Ct),kn.prev=6,St=(bt=Ke.view)===null||bt===void 0?void 0:bt.inputArgs,zt=St==null?void 0:St.sourceId,An=St==null?void 0:St.associationName,xn=(St==null?void 0:St.dataSourceKey)||"main",!(!An||typeof An!="string"||!An.includes("."))){kn.next=24;break}if(Sn=(un=Ke.view)===null||un===void 0?void 0:un.navigation,jn=Array.isArray(Sn==null?void 0:Sn.viewStack)?Sn.viewStack:[],wt=jn==null?void 0:jn[jn.length-1],!(wt!=null&&wt.viewUid)){kn.next=24;break}if(hr=Ke==null||(Nt=Ke.engine)===null||Nt===void 0?void 0:Nt.getModel(wt.viewUid,!0),hr){kn.next=21;break}return kn.next=20,Ke.engine.loadModel({uid:wt.viewUid});case 20:hr=kn.sent;case 21:Tr=((yr=hr)===null||yr===void 0||(vn=yr.getStepParams)===null||vn===void 0?void 0:vn.call(yr,"popupSettings","openView"))||{},An=(Tr==null?void 0:Tr.associationName)||An,xn=(Tr==null?void 0:Tr.dataSourceKey)||xn;case 24:if(!(zt!=null&&zt!==""&&An&&typeof An=="string")){kn.next=32;break}if(Kr=String(An).includes(".")?String(An).split(".")[0]:void 0,!Kr){kn.next=32;break}return Or=function(){try{var Zt,Mt,at,At,vt=(Zt=Ke.dataSourceManager)===null||Zt===void 0||(Mt=Zt.getDataSource)===null||Mt===void 0?void 0:Mt.call(Zt,xn);return(vt==null||(at=vt.collectionManager)===null||at===void 0||(At=at.getCollection)===null||At===void 0?void 0:At.call(at,Kr))||null}catch{return null}},kn.next=30,(0,T.Yp)(Or,xe("Current popup parent record"),function(){return{collection:Kr,dataSourceKey:xn,filterByTk:zt}});case 30:Er=kn.sent,Er&&(Ze.sourceRecord=Er);case 32:kn.next=37;break;case 34:kn.prev=34,kn.t0=kn.catch(6),(Ir=Ke.logger)===null||Ir===void 0||(Br=Ir.debug)===null||Br===void 0||Br.call(Ir,{err:kn.t0},"[FlowEngine] popup.properties: build sourceRecord failed");case 37:return xo={type:"object",title:xe("Data source"),properties:function(){var Ot=S()(N()().mark(function Mt(){return N()().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.abrupt("return",{dataSourceKey:{type:"string",title:xe("Data source key")},collectionName:{type:"string",title:xe("Collection name")},associationName:{type:"string",title:xe("Association name")},filterByTk:{type:"string",title:xe("filterByTk")},sourceId:{type:"string",title:xe("sourceId")}});case 1:case"end":return At.stop()}},Mt)}));function Zt(){return Ot.apply(this,arguments)}return Zt}()},Ze.resource=xo,kn.next=41,Et(1);case 41:return qo=kn.sent,qo&&(Ze.parent=gt(1)),kn.abrupt("return",Ze);case 44:case"end":return kn.stop()}},Rt,null,[[6,34]])}));function bn(){return gn.apply(this,arguments)}return bn}()};return hn};return _t.title=xe("Current popup"),_t.sort=975,_t}function H(Ke,le){return Q.apply(this,arguments)}function Q(){return Q=S()(N()().mark(function Ke(le,xe){var Ge,Ve,lt,ct,Et,Qe,gt,_t,en,hn,gn,bn;return N()().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:if(lt=xe==null?void 0:xe.navigation,ct=Array.isArray(lt==null?void 0:lt.viewStack)?lt.viewStack:[],Et=xe==null||(Ge=xe.inputArgs)===null||Ge===void 0?void 0:Ge.openerUids,Qe=Array.isArray(Et)&&Et.length>0,gt=ct.length>=2,_t=gt||Qe,_t){Ze.next=8;break}return Ze.abrupt("return",void 0);case 8:if(ct.length){Ze.next=14;break}if(en=(xe==null?void 0:xe.inputArgs)||{},hn=en.collectionName||en.filterByTk!=null||en.sourceId!=null||en.associationName||en.viewUid,hn){Ze.next=13;break}return Ze.abrupt("return",void 0);case 13:return Ze.abrupt("return",{uid:en.viewUid,resource:{dataSourceKey:en.dataSourceKey||"main",collectionName:en.collectionName,associationName:en.associationName,filterByTk:en.filterByTk,sourceId:en.sourceId}});case 14:return gn=function(){var Ft=S()(N()().mark(function Ct(bt){var St,zt,An,xn,un,Sn,jn,wt,Nt,yr,vn,hr,Tr,Kr;return N()().wrap(function(Er){for(;;)switch(Er.prev=Er.next){case 0:if(!(bt<0||!((St=ct[bt])!==null&&St!==void 0&&St.viewUid))){Er.next=2;break}return Er.abrupt("return",void 0);case 2:if(jn=ct[bt].viewUid,wt=(zt=le.engine)===null||zt===void 0?void 0:zt.getModel(jn,!0),wt){Er.next=8;break}return Er.next=7,(Nt=le.engine)===null||Nt===void 0?void 0:Nt.loadModel({uid:jn});case 7:wt=Er.sent;case 8:return yr=((An=wt)===null||An===void 0||(xn=An.getStepParams)===null||xn===void 0?void 0:xn.call(An,"popupSettings","openView"))||{},vn=yr==null?void 0:yr.collectionName,hr=(yr==null?void 0:yr.dataSourceKey)||"main",Tr={uid:jn,resource:{dataSourceKey:hr,collectionName:vn,associationName:yr==null?void 0:yr.associationName,filterByTk:(un=ct[bt])===null||un===void 0?void 0:un.filterByTk,sourceId:(Sn=ct[bt])===null||Sn===void 0?void 0:Sn.sourceId}},Er.next=14,gn(bt-1);case 14:return Kr=Er.sent,Kr&&(Tr.parent=Kr),Er.abrupt("return",Tr);case 17:case"end":return Er.stop()}},Ct)}));return function(bt){return Ft.apply(this,arguments)}}(),Ze.next=17,gn(((xe==null||(Ve=xe.navigation)===null||Ve===void 0||(Ve=Ve.viewStack)===null||Ve===void 0?void 0:Ve.length)||1)-1);case 17:return bn=Ze.sent,Ze.abrupt("return",bn);case 19:case"end":return Ze.stop()}},Ke)})),Q.apply(this,arguments)}function ne(Ke,le){var xe=/^(?:record|sourceRecord)(?:\.|$)|^parent(?:\.parent)*(?:\.(?:record|sourceRecord))(?:\.|$)/;Ke.defineProperty("popup",{get:function(){var Ge=S()(N()().mark(function lt(){return N()().wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return Et.abrupt("return",H(Ke,le));case 1:case"end":return Et.stop()}},lt)}));function Ve(){return Ge.apply(this,arguments)}return Ve}(),meta:Z(Ke,le),resolveOnServer:function(Ve){try{return!!Ve&&xe.test(Ve)}catch{return!1}}})}var ue=e(13769),V=e.n(ue),p=e(5914),b=e(85893),R=["afterClose","footer","header","hidden"],y=(0,I.forwardRef)(function(Ke,le){var xe,Ge=Ke.afterClose,Ve=Ke.footer,lt=Ke.header,ct=Ke.hidden,Et=V()(Ke,R),Qe=(0,I.useState)(!0),gt=P()(Qe,2),_t=gt[0],en=gt[1],hn=(0,I.useState)(Et),gn=P()(hn,2),bn=gn[0],Rt=gn[1],Ze=(0,I.useState)(function(){return Ve}),Ft=P()(Ze,2),Ct=Ft[0],bt=Ft[1],St=(0,I.useState)(lt),zt=P()(St,2),An=zt[0],xn=zt[1];(0,I.useImperativeHandle)(le,function(){return{destroy:function(){en(!1),Ge==null||Ge()},update:function(wt){return Rt(function(Nt){return x()(x()({},Nt),wt)})},setFooter:function(wt){bt(wt)},setHeader:function(wt){Object.values(wt||{}).length===0?xn(null):xn(wt)}}});var un=x()(x()({},bn),{},{title:(An==null?void 0:An.title)||bn.title,extra:An==null?void 0:An.extra,footer:Ct!==void 0?Ct:(xe=bn.footer)!==null&&xe!==void 0?xe:null}),Sn=I.useMemo(function(){return document.querySelector("#nocobase-app-container")},[]);return(0,b.jsx)(p.Z,x()(x()({closable:!1,rootClassName:ct?"nb-hidden":"",getContainer:Sn},un),{},{open:_t,onCancel:bn.onCancel,afterClose:function(){Ge==null||Ge()},children:bn.children}))}),z=y,c=e(19632),A=e.n(c);function U(){var Ke=I.useState([]),le=P()(Ke,2),xe=le[0],Ge=le[1],Ve=I.useCallback(function(lt){return Ge(function(ct){return[].concat(A()(ct),[lt])}),function(){Ge(function(ct){return ct.filter(function(Et){return Et!==lt})})}},[]);return[xe,Ve]}var K=e(84995),E=e(24084),j=e(67940);function w(Ke,le){return D.apply(this,arguments)}function D(){return D=S()(N()().mark(function Ke(le,xe){var Ge,Ve;return N()().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:if(!xe.force){ct.next=2;break}return ct.abrupt("return",!0);case 2:return ct.next=4,(Ge=le.beforeClose)===null||Ge===void 0?void 0:Ge.call(le,xe);case 4:return Ve=ct.sent,ct.abrupt("return",Ve!==!1);case 6:case"end":return ct.stop()}},Ke)})),D.apply(this,arguments)}var v=0;function G(){var Ke=I.useRef(null),le=function(lt,ct){var Et,Qe,gt,_t=ct==null?void 0:ct.engine;v+=1;var en=I.createRef(),hn,gn,bn=new Promise(function(wt){gn=wt}),Rt=null,Ze=null,Ft=function(Nt){var yr=Nt.children;return I.useEffect(function(){var vn;return Rt=yr,(vn=en.current)===null||vn===void 0||vn.setFooter(yr),function(){var hr;Rt=null,(hr=en.current)===null||hr===void 0||hr.setFooter(null)}},[yr]),null},Ct=function(Nt){return I.useEffect(function(){var yr;return Ze=Nt,(yr=en.current)===null||yr===void 0||yr.setHeader(Nt),function(){var vn;Ze=null,(vn=en.current)===null||vn===void 0||vn.setHeader(null)}},[Nt]),null},bt=new O.iT,St=(0,j.$)(ct.engine),zt=(0,K.GA)(_t,St);bt.defineProperty("engine",{value:St}),bt.addDelegate(St.context),lt.inheritContext!==!1?bt.addDelegate(ct):bt.addDelegate(ct.engine.context);var An=!1,xn={type:"dialog",inputArgs:lt.inputArgs||{},preventClose:!!lt.preventClose,beforeClose:void 0,destroy:function(Nt){var yr,vn,hr,Tr,Kr,Or;if(!An){An=!0,(yr=lt.onClose)===null||yr===void 0||yr.call(lt),(vn=en.current)===null||vn===void 0||vn.destroy(),(hr=hn)===null||hr===void 0||hr(),(Tr=gn)===null||Tr===void 0||Tr(Nt);var Er=zt==null?void 0:zt.emitter;(0,K.YB)(Er),Er==null||(Kr=Er.emit)===null||Kr===void 0||Kr.call(Er,K.cn,{type:"dialog",viewUid:xn==null||(Or=xn.inputArgs)===null||Or===void 0?void 0:Or.viewUid}),St.unlinkFromStack()}},update:function(Nt){var yr;return(yr=en.current)===null||yr===void 0?void 0:yr.update(Nt)},close:function(){var wt=S()(N()().mark(function yr(vn,hr){var Tr,Kr;return N()().wrap(function(Er){for(;;)switch(Er.prev=Er.next){case 0:if(!(lt.preventClose&&!hr)){Er.next=2;break}return Er.abrupt("return",!1);case 2:return Er.next=4,w(xn,{result:vn,force:hr});case 4:if(Kr=Er.sent,Kr){Er.next=7;break}return Er.abrupt("return",!1);case 7:if(!(lt.triggerByRouter&&(Tr=lt.inputArgs)!==null&&Tr!==void 0&&(Tr=Tr.navigation)!==null&&Tr!==void 0&&Tr.back)){Er.next=10;break}return lt.inputArgs.navigation.back(),Er.abrupt("return",!0);case 10:return xn.destroy(vn),Er.abrupt("return",!0);case 12:case"end":return Er.stop()}},yr)}));function Nt(yr,vn){return wt.apply(this,arguments)}return Nt}(),Footer:Ft,Header:Ct,setFooter:function(Nt){var yr;Rt=Nt,(yr=en.current)===null||yr===void 0||yr.setFooter(Nt)},setHeader:function(Nt){var yr;Ze=Nt,(yr=en.current)===null||yr===void 0||yr.setHeader(Nt)},navigation:(Et=lt.inputArgs)===null||Et===void 0?void 0:Et.navigation,get record(){return(0,T.lP)(ct,bt)}};bt.defineProperty("view",{get:function(){return xn},resolveOnServer:(0,T.o3)(bt,function(){return(0,T.lP)(ct,bt)})}),St.setDestroyView(function(){var wt;lt.triggerByRouter&&(wt=lt.inputArgs)!==null&&wt!==void 0&&(wt=wt.navigation)!==null&&wt!==void 0&&wt.back&&lt.inputArgs.navigation.back(),xn.destroy()}),ne(bt,xn);var un=(0,B.observer)(function(){var wt,Nt,yr=I.useRef(!1),vn=typeof lt.content=="function"?lt.content(xn,bt):lt.content,hr=typeof vn=="string"?(0,b.jsx)("div",{dangerouslySetInnerHTML:{__html:M.Z.sanitize(vn)}}):vn;return I.useEffect(function(){var Tr;(Tr=lt.onOpen)===null||Tr===void 0||Tr.call(lt,xn,bt)},[]),(wt=lt.inputArgs)!==null&&wt!==void 0&&(wt=wt.hidden)!==null&&wt!==void 0&&wt.value&&!yr.current?null:(yr.current=!0,(0,b.jsx)(z,x()(x()({className:"nb-dialog-overflow-hidden",ref:en,hidden:(Nt=lt.inputArgs)===null||Nt===void 0||(Nt=Nt.hidden)===null||Nt===void 0?void 0:Nt.value,footer:Rt,header:Ze},lt),{},{onCancel:function(){xn.close(lt.result)},children:hr})))},{displayName:"DialogWithContext"}),Sn=(lt==null||(Qe=lt.inputArgs)===null||Qe===void 0?void 0:Qe.viewUid)||"page-".concat(v),jn=(0,b.jsx)(E.r6,{engine:St,children:(0,b.jsx)(W.Y5,{context:bt,children:(0,b.jsx)(un,{})})},Sn);return hn=(gt=Ke.current)===null||gt===void 0?void 0:gt.patchElement(jn),Object.assign(bn,xn)},xe=I.useMemo(function(){return{open:le}},[]),Ge=I.memo(I.forwardRef(function(Ve,lt){var ct=U(),Et=P()(ct,2),Qe=Et[0],gt=Et[1];return I.useImperativeHandle(lt,function(){return{patchElement:gt}},[gt]),(0,b.jsx)(b.Fragment,{children:Qe})}));return[xe,(0,b.jsx)(Ge,{ref:Ke},"dialog-holder")]}var Y=e(95012),te=e(54182),ee=["children","footer","title","extra","hidden","isMobile"],X=I.forwardRef(function(Ke,le){var xe,Ge=Ke.children,Ve=Ke.footer,lt=Ke.title,ct=Ke.extra,Et=Ke.hidden,Qe=Ke.isMobile,gt=V()(Ke,ee),_t=I.useState(!0),en=P()(_t,2),hn=en[0],gn=en[1],bn=I.useState(function(){return Ve}),Rt=P()(bn,2),Ze=Rt[0],Ft=Rt[1],Ct=I.useState(x()({title:lt,extra:ct},gt.header)),bt=P()(Ct,2),St=bt[0],zt=bt[1];I.useImperativeHandle(le,function(){return{destroy:function(){gn(!1)},update:function(un){Object.assign(gt,un)},setFooter:function(un){Ft(un)},setHeader:function(un){Object.values(un||{}).length===0?zt(null):zt(un)}}},[]);var An=I.useMemo(function(){return document.querySelector("#nocobase-app-container")},[]);return Qe?(0,b.jsx)(te.E,x()(x()(x()({className:Et?"nb-hidden":"",visible:hn},gt),{},{footer:Ze},St),{},{onClose:gt.onClose,children:Ge})):(0,b.jsx)(Y.Z,x()(x()(x()({rootClassName:Et?"nb-hidden":"",closable:!1,getContainer:An},gt),{},{open:hn,footer:Ze,styles:x()(x()({},gt.styles),{},{footer:x()({display:"flex",justifyContent:"flex-end"},(xe=gt.styles)===null||xe===void 0?void 0:xe.footer)})},St),{},{onClose:gt.onClose,children:Ge}))}),Ce=X;function Se(){var Ke=I.useRef(null),le=I.useMemo(function(){return B.observable.shallow({value:[]})},[]),xe=I.memo(function(ct){var Et=ct.index,Qe=I.useState(null),gt=P()(Qe,2),_t=gt[0],en=gt[1];return I.useEffect(function(){(0,B.autorun)(function(){var hn=le.value;hn[Et]&&_t!==hn[Et]&&en(hn[Et]),hn[Et]||en(null)})},[_t,Et]),_t?(0,b.jsx)(_t,{children:(0,b.jsx)(xe,{index:Et+1})}):null});xe.displayName="RenderNestedDrawer";var Ge=function(Et,Qe){var gt,_t,en=Qe.engine,hn=I.createRef(),gn,bn,Rt=new Promise(function(wt){bn=wt}),Ze=null,Ft=null,Ct=function(Nt){var yr=Nt.children;return I.useEffect(function(){var vn;return Ze=yr,(vn=hn.current)===null||vn===void 0||vn.setFooter(yr),function(){var hr;Ze=null,(hr=hn.current)===null||hr===void 0||hr.setFooter(null)}},[yr]),null},bt=function(Nt){return I.useEffect(function(){var yr;return Ft=Nt,(yr=hn.current)===null||yr===void 0||yr.setHeader(Nt),function(){var vn;Ft=null,(vn=hn.current)===null||vn===void 0||vn.setHeader(null)}},[Nt]),null},St=new O.iT,zt=(0,j.$)(Qe.engine),An=(0,K.GA)(en,zt);St.defineProperty("engine",{value:zt}),St.addDelegate(zt.context),Et.inheritContext!==!1?St.addDelegate(Qe):St.addDelegate(Qe.engine.context);var xn=!1,un={type:"drawer",inputArgs:Et.inputArgs||{},preventClose:!!Et.preventClose,beforeClose:void 0,destroy:function(Nt){var yr,vn,hr,Tr,Kr,Or;if(!xn){xn=!0,(yr=Et.onClose)===null||yr===void 0||yr.call(Et),(vn=hn.current)===null||vn===void 0||vn.destroy(),(hr=gn)===null||hr===void 0||hr(),(Tr=bn)===null||Tr===void 0||Tr(Nt);var Er=An==null?void 0:An.emitter;(0,K.YB)(Er),Er==null||(Kr=Er.emit)===null||Kr===void 0||Kr.call(Er,K.cn,{type:"drawer",viewUid:un==null||(Or=un.inputArgs)===null||Or===void 0?void 0:Or.viewUid}),zt.unlinkFromStack()}},update:function(Nt){var yr;return(yr=hn.current)===null||yr===void 0?void 0:yr.update(Nt)},close:function(){var wt=S()(N()().mark(function yr(vn,hr){var Tr,Kr;return N()().wrap(function(Er){for(;;)switch(Er.prev=Er.next){case 0:if(!(Et.preventClose&&!hr)){Er.next=2;break}return Er.abrupt("return",!1);case 2:return Er.next=4,w(un,{result:vn,force:hr});case 4:if(Kr=Er.sent,Kr){Er.next=7;break}return Er.abrupt("return",!1);case 7:if(!(Et.triggerByRouter&&(Tr=Et.inputArgs)!==null&&Tr!==void 0&&(Tr=Tr.navigation)!==null&&Tr!==void 0&&Tr.back)){Er.next=10;break}return Et.inputArgs.navigation.back(),Er.abrupt("return",!0);case 10:return un.destroy(vn),Er.abrupt("return",!0);case 12:case"end":return Er.stop()}},yr)}));function Nt(yr,vn){return wt.apply(this,arguments)}return Nt}(),Footer:Ct,Header:bt,setFooter:function(Nt){var yr;Ze=Nt,(yr=hn.current)===null||yr===void 0||yr.setFooter(Nt)},setHeader:function(Nt){var yr;Ft=Nt,(yr=hn.current)===null||yr===void 0||yr.setHeader(Nt)},navigation:(gt=Et.inputArgs)===null||gt===void 0?void 0:gt.navigation,get record(){return(0,T.lP)(Qe,St)}};St.defineProperty("view",{get:function(){return un},resolveOnServer:(0,T.o3)(St,function(){return(0,T.lP)(Qe,St)})}),zt.setDestroyView(function(){var wt;Et.triggerByRouter&&(wt=Et.inputArgs)!==null&&wt!==void 0&&(wt=wt.navigation)!==null&&wt!==void 0&&wt.back&&Et.inputArgs.navigation.back(),un.destroy()}),ne(St,un);var Sn=I.memo((0,B.observer)(function(wt){var Nt,yr,vn=I.useRef(!1),hr=typeof Et.content=="function"?Et.content(un,St):Et.content,Tr=typeof hr=="string"?(0,b.jsx)("div",{dangerouslySetInnerHTML:{__html:M.Z.sanitize(hr)}}):hr;return I.useEffect(function(){var Kr;(Kr=Et.onOpen)===null||Kr===void 0||Kr.call(Et,un,St)},[]),(Nt=Et.inputArgs)!==null&&Nt!==void 0&&(Nt=Nt.hidden)!==null&&Nt!==void 0&&Nt.value&&!vn.current?(0,b.jsx)(b.Fragment,{children:wt.children}):(vn.current=!0,(0,b.jsxs)(Ce,x()(x()({ref:hn},Et),{},{footer:Ze,header:Et.header||Ft,hidden:(yr=Et.inputArgs)===null||yr===void 0||(yr=yr.hidden)===null||yr===void 0?void 0:yr.value,onClose:function(){un.close(Et.result)},isMobile:St.isMobileLayout,children:[Tr,wt.children]})))}));Sn.displayName="DrawerWithContext";var jn=I.memo(function(wt){var Nt=wt.children;return(0,b.jsx)(E.r6,{engine:zt,children:(0,b.jsx)(W.Y5,{context:St,children:(0,b.jsx)(Sn,{children:Nt})})})});return jn.displayName="RenderDrawer",gn=(_t=Ke.current)===null||_t===void 0?void 0:_t.patchElement(jn),Object.assign(Rt,un)},Ve=I.useMemo(function(){return{open:Ge}},[]),lt=I.memo(I.forwardRef(function(ct,Et){var Qe=U(),gt=P()(Qe,2),_t=gt[0],en=gt[1];return I.useImperativeHandle(Et,function(){return{patchElement:en}},[en]),I.useEffect(function(){le.value=_t},[_t]),(0,b.jsx)(xe,{index:0})}));return[Ve,(0,b.jsx)(lt,{ref:Ke},"drawer-holder")]}var Ee=e(73935),_e=e(73475),re=e(83622),me=(0,I.forwardRef)(function(Ke,le){var xe=I.useState({}),Ge=P()(xe,2),Ve=Ge[0],lt=Ge[1],ct=x()(x()({},Ke),Ve),Et=ct.visible,Qe=Et===void 0?!0:Et,gt=ct.footer,_t=gt===void 0?null:gt,en=ct.header,hn=en===void 0?null:en,gn=ct.children,bn=ct.hidden,Rt=ct.title,Ze=ct.styles,Ft=Ze===void 0?{}:Ze,Ct=ct.zIndex,bt=Ct===void 0?4:Ct,St=(0,I.useRef)(!1),zt=(0,E.Zr)(),An=(0,I.useState)(function(){return _t}),xn=P()(An,2),un=xn[0],Sn=xn[1],jn=(0,I.useState)(hn),wt=P()(jn,2),Nt=wt[0],yr=wt[1];(0,I.useImperativeHandle)(le,function(){return{destroy:function(){St.current||(St.current=!0)},update:function(Or){lt(Or)},setFooter:function(Or){Sn(Or)},setHeader:function(Or){Object.values(Or||{}).length===0?yr(null):yr(Or)}}});var vn=(0,I.useMemo)(function(){return{display:bn?"none":"flex",flexDirection:"column",height:"100%",zIndex:bt}},[bn,bt]),hr=(0,I.useMemo)(function(){if(!Nt&&!Rt)return null;var Kr=Nt||{},Or=Kr.title,Er=Or===void 0?Rt:Or,Ir=Kr.extra,Br=zt.context.themeToken;return(0,b.jsxs)("div",{style:x()({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"".concat(Br.paddingSM,"px ").concat(Br.padding,"px"),borderBottom:"1px solid ".concat(Br.colorSplit),backgroundColor:Br.colorBgContainer},Ft.header),children:[(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:Br.marginXS},children:[(0,b.jsx)(re.ZP,{type:"text",size:"small",icon:(0,b.jsx)(_e.Z,{}),onClick:function(){if(!St.current){var qo;St.current=!0,(qo=Ke.onClose)===null||qo===void 0||qo.call(Ke)}},style:{color:Br.colorTextTertiary}}),Er&&(0,b.jsx)("div",{style:{fontSize:Br.fontSizeLG,fontWeight:Br.fontWeightStrong,color:Br.colorText},children:Er})]}),Ir&&(0,b.jsx)("div",{children:Ir})]})},[Nt,Rt,zt.context.themeToken,Ft.header,Ke.onClose]),Tr=(0,I.useMemo)(function(){if(!un)return null;var Kr=zt.context.themeToken;return(0,b.jsx)("div",{style:x()({display:"flex",justifyContent:"flex-end",alignItems:"center",padding:"".concat(Kr.paddingXS,"px ").concat(Kr.padding,"px"),borderTop:"1px solid ".concat(Kr.colorSplit),backgroundColor:Kr.colorBgContainer},Ft.footer),children:un})},[un,zt.context.themeToken,Ft.footer]);return Qe?(0,b.jsxs)("div",{style:x()(x()({},vn),Ft.content),children:[hr,(0,b.jsx)("div",{style:x()({flex:1,overflowY:"auto"},Ft.body),children:gn}),Tr]}):null}),oe=["target","content","preventClose","inheritContext","inputArgs"],ie=0,Pe="nocobase-embed-container",De="nocobaseEmbedReplacing",ce=I.memo(I.forwardRef(function(Ke,le){var xe=U(),Ge=P()(xe,2),Ve=Ge[0],lt=Ge[1];return I.useImperativeHandle(le,function(){return{patchElement:lt}},[lt]),(0,b.jsx)(b.Fragment,{children:Ve})}));function Ie(){var Ke=I.useRef(null),le=I.useRef(null),xe=function(lt,ct){var Et,Qe=ct==null?void 0:ct.engine;ie+=1;var gt=I.createRef(),_t,en,hn=new Promise(function(Kr){en=Kr}),gn=function(Or){var Er=Or.children;return I.useEffect(function(){var Ir;return(Ir=gt.current)===null||Ir===void 0||Ir.setFooter(Er),function(){var Br;(Br=gt.current)===null||Br===void 0||Br.setFooter(null)}},[Er]),null},bn=function(Or){return I.useEffect(function(){var Er;return(Er=gt.current)===null||Er===void 0||Er.setHeader(Or),function(){var Ir;(Ir=gt.current)===null||Ir===void 0||Ir.setHeader(null)}},[Or]),null},Rt=lt.target,Ze=lt.content,Ft=lt.preventClose,Ct=lt.inheritContext,bt=Ct===void 0?!0:Ct,St=lt.inputArgs,zt=St===void 0?{}:St,An=V()(lt,oe),xn=Rt instanceof HTMLElement&&Rt.id===Pe;if(xn&&le.current)try{Rt.dataset[De]="1",le.current.destroy()}finally{delete Rt.dataset[De],le.current=null}var un=new O.iT,Sn=(0,j.$)(ct.engine),jn=(0,K.GA)(Qe,Sn);un.defineProperty("engine",{value:Sn}),un.addDelegate(Sn.context),bt?un.addDelegate(ct):un.addDelegate(ct.engine.context);var wt={type:"embed",inputArgs:zt,preventClose:!!lt.preventClose,beforeClose:void 0,destroy:function(Or){var Er,Ir,Br,xo,qo;(Er=lt.onClose)===null||Er===void 0||Er.call(lt),(Ir=en)===null||Ir===void 0||Ir(Or),(Br=gt.current)===null||Br===void 0||Br.destroy(),(xo=_t)===null||xo===void 0||xo(),xn&&(le.current=null);var uo=xn&&Rt instanceof HTMLElement&&((qo=Rt.dataset)===null||qo===void 0?void 0:qo[De])==="1";if(!uo){var kn,Ot,Zt=jn==null?void 0:jn.emitter;(0,K.YB)(Zt),Zt==null||(kn=Zt.emit)===null||kn===void 0||kn.call(Zt,K.cn,{type:"embed",viewUid:wt==null||(Ot=wt.inputArgs)===null||Ot===void 0?void 0:Ot.viewUid})}Sn.unlinkFromStack()},update:function(Or){var Er;return(Er=gt.current)===null||Er===void 0?void 0:Er.update(Or)},close:function(){var Kr=S()(N()().mark(function Er(Ir,Br){var xo,qo;return N()().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:if(!(Ft&&!Br)){kn.next=2;break}return kn.abrupt("return",!1);case 2:return kn.next=4,w(wt,{result:Ir,force:Br});case 4:if(qo=kn.sent,qo){kn.next=7;break}return kn.abrupt("return",!1);case 7:if(!(lt.triggerByRouter&&(xo=lt.inputArgs)!==null&&xo!==void 0&&(xo=xo.navigation)!==null&&xo!==void 0&&xo.back)){kn.next=10;break}return lt.inputArgs.navigation.back(),kn.abrupt("return",!0);case 10:return wt.destroy(Ir),kn.abrupt("return",!0);case 12:case"end":return kn.stop()}},Er)}));function Or(Er,Ir){return Kr.apply(this,arguments)}return Or}(),Header:bn,Footer:gn,setFooter:function(Or){var Er;(Er=gt.current)===null||Er===void 0||Er.setFooter(Or)},setHeader:function(Or){var Er;(Er=gt.current)===null||Er===void 0||Er.setHeader(Or)},navigation:(Et=lt.inputArgs)===null||Et===void 0?void 0:Et.navigation,get record(){return(0,T.lP)(ct,un)}};un.defineProperty("view",{get:function(){return wt},resolveOnServer:(0,T.o3)(un,function(){return(0,T.lP)(ct,un)})}),ne(un,wt);var Nt=(0,B.observer)(function(){var Kr,Or,Er=I.useRef(!1),Ir=I.useMemo(function(){return typeof Ze=="function"?Ze(wt,un):Ze},[]);return un.themeToken,I.useEffect(function(){var Br;(Br=lt.onOpen)===null||Br===void 0||Br.call(lt,wt,un)},[]),(Kr=lt.inputArgs)!==null&&Kr!==void 0&&(Kr=Kr.hidden)!==null&&Kr!==void 0&&Kr.value&&!Er.current?null:(Er.current=!0,(0,b.jsx)(me,x()(x()({ref:gt,hidden:(Or=lt.inputArgs)===null||Or===void 0||(Or=Or.hidden)===null||Or===void 0?void 0:Or.value},An),{},{onClose:function(){wt.close(lt.result)},children:Ir})))},{displayName:"PageWithContext"}),yr=(zt==null?void 0:zt.viewUid)||"page-".concat(ie),vn=(0,b.jsx)(E.r6,{engine:Sn,children:(0,b.jsx)(W.Y5,{context:un,children:(0,b.jsx)(Nt,{})})},yr);if(Rt&&Rt instanceof HTMLElement){var hr;_t=(hr=Ke.current)===null||hr===void 0?void 0:hr.patchElement(Ee.createPortal(vn,Rt,yr))}else{var Tr;_t=(Tr=Ke.current)===null||Tr===void 0?void 0:Tr.patchElement(vn)}return xn&&(le.current={destroy:wt.destroy}),Object.assign(hn,wt)},Ge=I.useMemo(function(){return{open:xe}},[]);return[Ge,(0,b.jsx)(ce,{ref:Ke},"page-holder")]}var ye=e(55241),pe=["afterClose","content","placement","rect"],ge=["target","placement","content"],fe=0,Oe=I.forwardRef(function(Ke,le){var xe,Ge,Ve,lt,ct=Ke.afterClose,Et=Ke.content,Qe=Ke.placement,gt=Ke.rect,_t=V()(Ke,pe),en=I.useState(!0),hn=P()(en,2),gn=hn[0],bn=hn[1],Rt=I.useState(x()({content:Et,placement:Qe,rect:gt},_t)),Ze=P()(Rt,2),Ft=Ze[0],Ct=Ze[1];return I.useImperativeHandle(le,function(){return{destroy:function(){return bn(!1)},update:function(St){return Ct(function(zt){return x()(x()({},zt),St)})},close:function(St,zt){return bn(!1)}}}),I.useEffect(function(){gn||ct==null||ct()},[gn,ct]),(0,b.jsx)(ye.Z,x()(x()({arrow:!1,open:gn,trigger:["click"],destroyTooltipOnHide:!0,content:Ft.content,placement:Ft.placement,getPopupContainer:function(){return document.querySelector("#nocobase-app-container")||document.body},onOpenChange:function(St){!St&&Ft.preventClose||(bn(St),St||ct==null||ct())}},Ft),{},{children:(0,b.jsx)("span",{style:{position:"absolute",top:((xe=(Ge=Ft.rect)===null||Ge===void 0?void 0:Ge.top)!==null&&xe!==void 0?xe:0)+window.scrollY,left:((Ve=(lt=Ft.rect)===null||lt===void 0?void 0:lt.left)!==null&&Ve!==void 0?Ve:0)+window.scrollX,width:0,height:0}})}))});function Te(){var Ke=I.useRef(null),le=function(lt){var ct,Et,Qe;fe+=1;var gt=lt.target,_t=lt.placement,en=_t===void 0?"rightTop":_t,hn=lt.content,gn=V()(lt,ge),bn=I.createRef(),Rt=(ct=gt==null||(Et=gt.getBoundingClientRect)===null||Et===void 0?void 0:Et.call(gt))!==null&&ct!==void 0?ct:{top:0,left:0},Ze,Ft,Ct=new Promise(function(xn){Ft=xn}),bt={type:"popover",destroy:function(){var un;return(un=bn.current)===null||un===void 0?void 0:un.destroy()},update:function(un){var Sn;return(Sn=bn.current)===null||Sn===void 0?void 0:Sn.update(un)},close:function(un){var Sn,jn;(Sn=Ft)===null||Sn===void 0||Sn(un),(jn=bn.current)===null||jn===void 0||jn.close(un)}},St=typeof hn=="function"?hn(bt):hn,zt=typeof St=="string"?(0,b.jsx)("div",{dangerouslySetInnerHTML:{__html:M.Z.sanitize(St)}}):St,An=(0,b.jsx)(Oe,x()({ref:bn,content:zt,placement:en,rect:Rt,afterClose:function(){var un,Sn,jn;(un=Ze)===null||un===void 0||un(),(Sn=lt.onClose)===null||Sn===void 0||Sn.call(lt),(jn=Ft)===null||jn===void 0||jn(lt.result)}},gn),"popover-".concat(fe));return Ze=(Qe=Ke.current)===null||Qe===void 0?void 0:Qe.patchElement(An),Object.assign(Ct,bt)},xe=I.useMemo(function(){return{open:le}},[]),Ge=I.memo(I.forwardRef(function(Ve,lt){var ct=U(),Et=P()(ct,2),Qe=Et[0],gt=Et[1];return I.useImperativeHandle(lt,function(){return{patchElement:gt}},[]),(0,b.jsx)(b.Fragment,{children:Qe})}));return[xe,(0,b.jsx)(Ge,{ref:Ke},"popover-holder")]}var Fe=e(12444),Ae=e.n(Fe),$e=e(72004),Ne=e.n($e),nt=e(9783),He=e.n(nt),je=e(90850);function Je(Ke){if(Ke==null)return"";if(Ke&&k()(Ke)==="object"&&!Array.isArray(Ke)){var le=Object.entries(Ke).map(function(xe){var Ge=P()(xe,2),Ve=Ge[0],lt=Ge[1];return"".concat(encodeURIComponent(String(Ve)),"=").concat(encodeURIComponent(String(lt)))});return encodeURIComponent(le.join("&"))}return encodeURIComponent(String(Ke))}function ke(Ke){if(!Ke||Ke.length===0)return"/admin";var le=["admin"];return Ke.forEach(function(xe,Ge){if(Ge>0&&le.push("view"),le.push(xe.viewUid),xe.tabUid&&le.push("tab",xe.tabUid),xe.filterByTk!=null){var Ve=Je(xe.filterByTk);Ve&&le.push("filterbytk",Ve)}xe.sourceId&&le.push("sourceid",xe.sourceId)}),"/"+le.join("/")}var Be=function(){function Ke(le,xe){Ae()(this,Ke),He()(this,"viewStack",void 0),He()(this,"ctx",void 0),He()(this,"viewParams",void 0),this.setViewStack(xe),this.ctx=le,(0,je.Ou)(this,{viewParams:je.LO})}return Ne()(Ke,[{key:"setViewStack",value:function(xe){this.viewStack=Object.freeze(A()(xe)),this.viewParams=this.viewStack[this.viewStack.length-1]||{}}},{key:"changeTo",value:function(xe){var Ge=this,Ve=this.viewStack.map(function(ct,Et){return Et===Ge.viewStack.length-1?x()(x()({},ct),xe):x()({},ct)}),lt=ke(Ve);this.ctx.router.navigate(lt,{replace:!0})}},{key:"navigateTo",value:function(xe,Ge){var Ve=ke([].concat(A()(this.viewStack),[xe])),lt=Ve;this.ctx.router.navigate(lt,Ge)}},{key:"back",value:function(){var xe=this.viewStack.slice(0,-1),Ge=ke(xe);this.ctx.router.navigate(Ge,{replace:!0})}}]),Ke}()},84995:function(Ut,Re,e){"use strict";e.d(Re,{Bq:function(){return x},GA:function(){return M},YB:function(){return J},_L:function(){return N},b$:function(){return ve},cn:function(){return P},tC:function(){return h},v6:function(){return de}});var de=Symbol.for("__NOCOBASE_VIEW_ACTIVATED_VERSION__"),P="view:activated",ve="dataSource:dirty",x="__NOCOBASE_ENGINE_SCOPE__",h="view";function N(B){var O=Reflect.get(B,de),W=typeof O=="number"?O:Number(O);return Number.isFinite(W)&&W>0?W:0}function J(B){var O=N(B);if(!Object.isExtensible(B))return O;var W=O+1;return Reflect.set(B,de,W),W}function S(B){return Reflect.get(B,x)===h}function I(B){for(var O=B,W=0;O&&W++<50;){if(S(O))return O;O=O.previousEngine}}function M(B,O){if(B){var W=I(B);if(W)return W;var f=O==null?void 0:O.previousEngine;return I(f)||B}}},44154:function(Ut,Re,e){"use strict";e.r(Re),e.d(Re,{APIClient:function(){return K},Auth:function(){return H},BaseStorage:function(){return R},LocalStorage:function(){return z},MemoryStorage:function(){return y},SessionStorage:function(){return c},getSubAppName:function(){return j},hasHeaderValue:function(){return Z}});var de=e(15009),P=e.n(de),ve=e(97857),x=e.n(ve),h=e(99289),N=e.n(h),J=e(13769),S=e.n(J),I=e(12444),M=e.n(I),B=e(72004),O=e.n(B),W=e(9783),f=e.n(W),k=e(87066),T=e(80129),g=e.n(T),i=function(D,v){if(D){var G=typeof D.toJSON=="function"?D.toJSON():D,Y=Object.keys(G||{}).find(function(te){return te.toLowerCase()===v.toLowerCase()});return Y?G[Y]:void 0}},Z=function(D,v){var G=i(D,v);return G!=null&&G!==""},H=function(){function w(D){M()(this,w),f()(this,"api",void 0),f()(this,"options",{locale:null,role:null,authenticator:null,token:null}),this.api=D,this.api.axios.interceptors.request.use(this.middleware.bind(this))}return O()(w,[{key:"storagePrefix",get:function(){return this.api.storagePrefix}},{key:"locale",get:function(){return this.getLocale()},set:function(v){this.setLocale(v)}},{key:"role",get:function(){return this.getRole()},set:function(v){this.setRole(v)}},{key:"token",get:function(){return this.getToken()},set:function(v){this.setToken(v)}},{key:"authenticator",get:function(){return this.getAuthenticator()},set:function(v){this.setAuthenticator(v)}},{key:"getOption",value:function(v){return this.api.storage.getItem(v)}},{key:"setOption",value:function(v,G){return this.options[v]=G,this.api.storage.setItem(v,G||"")}},{key:"getLocale",value:function(){return this.getOption("locale")}},{key:"setLocale",value:function(v){this.setOption("locale",v)}},{key:"getRole",value:function(){return this.getOption("role")}},{key:"setRole",value:function(v){this.setOption("role",v)}},{key:"getToken",value:function(){return this.getOption("token")}},{key:"setToken",value:function(v){this.setOption("token",v),this.api.app&&this.api.app.eventBus.dispatchEvent(new CustomEvent("auth:tokenChanged",{detail:{token:v,authenticator:this.authenticator}}))}},{key:"getAuthenticator",value:function(){return this.getOption("auth")}},{key:"setAuthenticator",value:function(v){this.setOption("auth",v)}},{key:"middleware",value:function(v){return this.locale&&(v.headers["X-Locale"]=this.locale),this.role&&(v.headers["X-Role"]=this.role),this.authenticator&&!Z(v.headers,"X-Authenticator")&&(v.headers["X-Authenticator"]=this.authenticator),this.token&&!Z(v.headers,"Authorization")&&(v.headers.Authorization="Bearer ".concat(this.token)),v}},{key:"signIn",value:function(){var D=N()(P()().mark(function G(Y,te){var ee,X,Ce;return P()().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ee.next=2,this.api.request({method:"post",url:"auth:signIn",data:Y,headers:{"X-Authenticator":te}});case 2:return X=Ee.sent,Ce=X==null||(ee=X.data)===null||ee===void 0?void 0:ee.data,this.setAuthenticator(te),this.setToken(Ce==null?void 0:Ce.token),Ee.abrupt("return",X);case 7:case"end":return Ee.stop()}},G,this)}));function v(G,Y){return D.apply(this,arguments)}return v}()},{key:"signUp",value:function(){var D=N()(P()().mark(function G(Y,te){return P()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.next=2,this.api.request({method:"post",url:"auth:signUp",data:Y,headers:{"X-Authenticator":te}});case 2:return X.abrupt("return",X.sent);case 3:case"end":return X.stop()}},G,this)}));function v(G,Y){return D.apply(this,arguments)}return v}()},{key:"signOut",value:function(){var D=N()(P()().mark(function G(){var Y;return P()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.next=2,this.api.request({method:"post",url:"auth:signOut"});case 2:return Y=ee.sent,this.setToken(null),this.setRole(null),this.setAuthenticator(null),ee.abrupt("return",Y);case 7:case"end":return ee.stop()}},G,this)}));function v(){return D.apply(this,arguments)}return v}()},{key:"lostPassword",value:function(){var D=N()(P()().mark(function G(Y){var te,ee,X;return P()().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return te=new URLSearchParams(window.location.search),ee=Object.fromEntries(te.entries()),Se.next=4,this.api.request({method:"post",url:"auth:lostPassword",data:x()(x()({},Y),{},{baseURL:window.location.href.split("/forgot-password")[0]}),headers:{"X-Authenticator":ee.name}});case 4:return X=Se.sent,Se.abrupt("return",X);case 6:case"end":return Se.stop()}},G,this)}));function v(G){return D.apply(this,arguments)}return v}()},{key:"resetPassword",value:function(){var D=N()(P()().mark(function G(Y){var te;return P()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.next=2,this.api.request({method:"post",url:"auth:resetPassword",data:Y});case 2:return te=X.sent,X.abrupt("return",te);case 4:case"end":return X.stop()}},G,this)}));function v(G){return D.apply(this,arguments)}return v}()},{key:"checkResetToken",value:function(){var D=N()(P()().mark(function G(Y){var te;return P()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.next=2,this.api.request({method:"post",url:"auth:checkResetToken",data:Y});case 2:return te=X.sent,X.abrupt("return",te);case 4:case"end":return X.stop()}},G,this)}));function v(G){return D.apply(this,arguments)}return v}()}]),w}(),Q=e(25098),ne=e.n(Q),ue=e(31996),V=e.n(ue),p=e(26037),b=e.n(p),R=function(){function w(){M()(this,w),f()(this,"storagePrefix",void 0)}return O()(w,[{key:"toUpperCase",value:function(){for(var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",G=arguments.length,Y=new Array(G>1?G-1:0),te=1;te<G;te++)Y[te-1]=arguments[te];return v.toUpperCase()+Y.map(function(ee){return ee.toUpperCase()}).join("_")}}]),w}(),y=function(w){V()(v,w);var D=b()(v);function v(){var G;M()(this,v);for(var Y=arguments.length,te=new Array(Y),ee=0;ee<Y;ee++)te[ee]=arguments[ee];return G=D.call.apply(D,[this].concat(te)),f()(ne()(G),"items",new Map),G}return O()(v,[{key:"clear",value:function(){this.items.clear()}},{key:"getItem",value:function(Y){return this.items.get(Y)}},{key:"setItem",value:function(Y,te){return this.items.set(Y,te)}},{key:"removeItem",value:function(Y){return this.items.delete(Y)}}]),v}(R),z=function(w){V()(v,w);var D=b()(v);function v(G){var Y,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return M()(this,v),Y=D.call(this),f()(ne()(Y),"items",void 0),Y.storagePrefix=G,Y.baseStoragePrefix=te,Y.shareToken=ee,Y.items=window.localStorage,Y}return O()(v,[{key:"clear",value:function(){return this.items.clear()}},{key:"getItem",value:function(Y){return this.shareToken&&Y==="token"&&this.baseStoragePrefix?this.items.getItem(this.toUpperCase(this.baseStoragePrefix,Y)):this.items.getItem(this.toUpperCase(this.storagePrefix,Y))}},{key:"setItem",value:function(Y,te){return this.shareToken&&Y==="token"&&this.baseStoragePrefix?this.items.setItem(this.toUpperCase(this.baseStoragePrefix,Y),te):this.items.setItem(this.toUpperCase(this.storagePrefix,Y),te)}},{key:"removeItem",value:function(Y){return this.shareToken&&Y==="token"&&this.baseStoragePrefix?this.items.removeItem(this.toUpperCase(this.baseStoragePrefix,Y)):this.items.removeItem(this.toUpperCase(this.storagePrefix,Y))}}]),v}(R),c=function(w){V()(v,w);var D=b()(v);function v(G){var Y,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return M()(this,v),Y=D.call(this,G,te,ee),Y.storagePrefix=G,Y.baseStoragePrefix=te,Y.shareToken=ee,Y.items=window.sessionStorage,Y}return O()(v)}(z),A=["appName","authClass","storageType","storageClass","storagePrefix","shareToken"],U=["values","filter"],K=function(){function w(D){if(M()(this,w),f()(this,"options",void 0),f()(this,"axios",void 0),f()(this,"auth",void 0),f()(this,"storage",void 0),f()(this,"storagePrefix","NOCOBASE_"),f()(this,"baseStoragePrefix","NOCOBASE_"),f()(this,"shareToken",!1),this.options=D,typeof D=="function")this.axios=D;else{var v=D||{},G=v.appName,Y=v.authClass,te=v.storageType,ee=v.storageClass,X=v.storagePrefix,Ce=X===void 0?"NOCOBASE_":X,Se=v.shareToken,Ee=Se===void 0?!1:Se,_e=S()(v,A);this.shareToken=Ee,this.baseStoragePrefix=Ce,this.storagePrefix=G?"".concat(Ce).concat(G.toUpperCase(),"_"):Ce,this.axios=k.Z.create(_e),this.initStorage(ee,te),Y&&(this.auth=new Y(this))}this.storage||this.initStorage(),this.auth||(this.auth=new H(this)),this.interceptors()}return O()(w,[{key:"toErrMessages",value:function(v){var G,Y,te,ee,X;if(typeof document<"u"&&typeof(v==null||(G=v.response)===null||G===void 0?void 0:G.data)=="string"){var Ce,Se=document.createElement("div");Se.innerHTML=v==null||(Ce=v.response)===null||Ce===void 0?void 0:Ce.data;var Ee=Se.textContent||Se.innerText;return Ee.includes("Error occurred while trying")?(Ee="The application may be starting up. Please try again later.",[{code:"APP_WARNING",message:Ee}]):Ee.includes("502 Bad Gateway")?(Ee="The application may be starting up. Please try again later.",[{code:"APP_WARNING",message:Ee}]):[{message:Ee}]}if(v!=null&&(Y=v.response)!==null&&Y!==void 0&&(Y=Y.data)!==null&&Y!==void 0&&Y.error){var _e;return[v==null||(_e=v.response)===null||_e===void 0||(_e=_e.data)===null||_e===void 0?void 0:_e.error]}return(v==null||(te=v.response)===null||te===void 0||(te=te.data)===null||te===void 0?void 0:te.errors)||(v==null||(ee=v.response)===null||ee===void 0||(ee=ee.data)===null||ee===void 0?void 0:ee.messages)||(v==null||(X=v.response)===null||X===void 0?void 0:X.error)||[{message:v.message||"Server error"}]}},{key:"getHeaders",value:function(){var v={};return this.auth.locale&&(v["X-Locale"]=this.auth.locale),this.auth.role&&(v["X-Role"]=this.auth.role),this.auth.authenticator&&(v["X-Authenticator"]=this.auth.authenticator),this.auth.token&&(v.Authorization="Bearer ".concat(this.auth.token)),v}},{key:"createStorage",value:function(v){return v==="localStorage"&&typeof localStorage<"u"?new z(this.storagePrefix,this.baseStoragePrefix,this.shareToken):v==="sessionStorage"&&typeof sessionStorage<"u"?new c(this.storagePrefix,this.baseStoragePrefix,this.shareToken):new y}},{key:"initStorage",value:function(v){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"localStorage";if(v){this.storage=new v(this);return}this.storage=this.createStorage(G)}},{key:"interceptors",value:function(){this.axios.interceptors.request.use(function(v){return v.paramsSerializer=function(G){return g().stringify(G,{strictNullHandling:!0,arrayFormat:"brackets"})},v})}},{key:"request",value:function(v){var G=v,Y=G.resource,te=G.resourceOf,ee=G.action,X=G.params,Ce=G.headers;return Y?this.resource(Y,te,Ce)[ee](X):this.axios.request(v)}},{key:"resource",value:function(v,G,Y,te){var ee=this,X={},Ce={get:function(Ee,_e){if(!te){var re=v.split(".").join("/".concat(encodeURIComponent(G)||"_","/"));re+=":".concat(_e.toString());var me={url:re};return["get","list"].includes(_e)?me.method="get":me.method="post",function(){var oe=N()(P()().mark(function ie(Pe,De){var ce,Ie,ye,pe;return P()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return ce=Pe||{},Ie=ce.values,ye=ce.filter,pe=S()(ce,U),me.params=pe,ye&&(typeof ye=="string"?me.params.filter=ye:(ye["*"]&&delete ye["*"],me.params.filter=JSON.stringify(ye))),me.method!=="get"&&(me.data=Ie||{}),fe.next=6,ee.request(x()(x()(x()({},me),De),{},{headers:Y}));case 6:return fe.abrupt("return",fe.sent);case 7:case"end":return fe.stop()}},ie)}));return function(ie,Pe){return oe.apply(this,arguments)}}()}}};return new Proxy(X,Ce)}}]),w}(),E=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"/";if(!(typeof window>"u")&&window.location.pathname){var v="".concat(D,"apps/");if(window.location.pathname.startsWith(v)){var G=window.location.pathname.substring(v.length),Y=G.split("/",1);return Y[0]||""}}},j=E},80770:function(Ut,Re,e){"use strict";e.d(Re,{_6:function(){return N},gn:function(){return J},Bb:function(){return ve}});var de=e(96695),P=e.n(de),ve=function S(I,M,B){if(!I)return B;for(var O=M.split("."),W=[],f=I,k=!1,T=0;T<O.length;T++){var g,i=O[T];if(Array.isArray(f)){k=!0;var Z=P()(f),H;try{for(Z.s();!(H=Z.n()).done;){var Q=H.value,ne=S(Q,O.slice(T).join("."),B);W=W.concat(ne)}}catch(ue){Z.e(ue)}finally{Z.f()}break}if(((g=f)===null||g===void 0?void 0:g[i])===void 0)break;f=f[i],T===O.length-1&&W.push(f)}return W=W.filter(function(ue){return ue!==void 0}),W.length===0?B:k?W.filter(function(ue){return ue!==null}):W[0]},x=e(52677),h=e.n(x);function N(S){var I=new Set,M=function B(O){if(typeof O=="string")for(var W=/\{\{\s*([^}]+?)\s*\}\}/g,f;(f=W.exec(O))!==null;){for(var k=f[1],T=/ctx\.([a-zA-Z_$][a-zA-Z0-9_$]*)/g,g=void 0;(g=T.exec(k))!==null;)I.add(g[1]);for(var i=/ctx\[\s*(["'])\s*([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\1\s*\]/g,Z=void 0;(Z=i.exec(k))!==null;)I.add(Z[2])}else Array.isArray(O)?O.forEach(B):O&&h()(O)==="object"&&Object.values(O).forEach(B)};return M(S),I}function J(S){var I={},M=function B(O){if(typeof O=="string")for(var W=/\{\{\s*([^}]+?)\s*\}\}/g,f;(f=W.exec(O))!==null;){for(var k=f[1],T=/ctx\.([a-zA-Z_$][a-zA-Z0-9_$]*)([^\s)]*)/g,g=void 0;(g=T.exec(k))!==null;){var i=g[1],Z=g[2]||"";if(I[i]=I[i]||[],Z.startsWith("."))I[i].push(Z.slice(1));else if(Z.startsWith("[")){var H=Z.match(/^\[\s*(["'])\s*([^'"\]]+)\s*\1\s*\](.*)$/);if(H){var Q=H[2],ne=H[3]||"";I[i].push("".concat(Q).concat(ne))}else{var ue=Z.match(/^\[(\d+)\](.*)$/);if(ue){var V=ue[1],p=ue[2]||"";I[i].push("[".concat(V,"]").concat(p))}}}else Z.startsWith("(")&&(I[i].length||I[i].push(""))}for(var b=/ctx\[\s*(["'])\s*([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\1\s*\]([^\s)]*)/g,R=void 0;(R=b.exec(k))!==null;){var y=R[2],z=R[3]||"";if(I[y]=I[y]||[],z.startsWith("."))I[y].push(z.slice(1));else if(z.startsWith("[")){var c=z.match(/^\[\s*(["'])\s*([^'"\]]+)\s*\1\s*\](.*)$/);if(c){var A=c[2],U=c[3]||"";I[y].push("".concat(A).concat(U))}else{var K=z.match(/^\[(\d+)\](.*)$/);if(K){var E=K[1],j=K[2]||"";I[y].push("[".concat(E,"]").concat(j))}}}else z.startsWith("(")&&(I[y].length||I[y].push(""))}}else Array.isArray(O)?O.forEach(B):O&&h()(O)==="object"&&Object.values(O).forEach(B)};return M(S),I}},10110:function(Ut,Re,e){"use strict";e.r(Re),e.d(Re,{BASE_BLOCKED_IDENTIFIERS:function(){return We},CollectionsGraph:function(){return re},Handlebars:function(){return jn()},Registry:function(){return mt},dayjs:function(){return x()},error:function(){return xo},evaluateConditions:function(){return He},extractUsedVariableNames:function(){return no},extractUsedVariablePaths:function(){return so},flatten:function(){return Tt},forEach:function(){return An},getDateTimeFormat:function(){return St},getDateVars:function(){return Ln},getDayRange:function(){return Jn},getDayRangeByParams:function(){return Y},getDefaultFormat:function(){return Et},getFormatFromDateStr:function(){return zt},getLiquidContext:function(){return ho},getOffsetRangeByParams:function(){return w},getPickerFormat:function(){return bt},getValuesByPath:function(){return xn},hasEmptyValue:function(){return Ke},isArray:function(){return Je},isEmpty:function(){return ke},isEmptyFilter:function(){return lt},isPlainObject:function(){return Be},isPortalInBody:function(){return Kn},isString:function(){return je},isURL:function(){return Gr},isValidFilter:function(){return vn},lockdownSes:function(){return Dt},lodash:function(){return P()},merge:function(){return Ot},moment2str:function(){return Rt},nextTick:function(){return le},offsetFromString:function(){return Ze},parse:function(){return Or},parseFilter:function(){return qn},parseHTML:function(){return sn},parseLiquidContext:function(){return Co},parseSQLBindParams:function(){return lo},removeInvalidFilterItems:function(){return $e},removeNullCondition:function(){return ct},showToast:function(){return Mt},sleep:function(){return Ve},sortTree:function(){return Ge},splitPathToTwoParts:function(){return Fn},str2moment:function(){return hn},toFixedByStep:function(){return vt},toGmt:function(){return Qe},toLocal:function(){return gt},toUnit:function(){return ur},transformFilter:function(){return Ae},transformLiquidContext:function(){return Vr},transformMultiColumnToSingleColumn:function(){return $r},transformSQL:function(){return ca},treeFind:function(){return xe},tval:function(){return on},uid:function(){return eo},unflatten:function(){return Pt},utc2unit:function(){return fr}});var de=e(96486),P=e.n(de),ve=e(27484),x=e.n(ve),h=e(28734),N=e.n(h),J=e(10285),S=e.n(J),I=e(1646),M=e.n(I),B=e(66607),O=e.n(B),W=e(79212),f=e.n(W),k=e(37412),T=e.n(k),g=e(59542),i=e.n(g),Z=e(96036),H=e.n(Z),Q=e(96671),ne=e.n(Q),ue=e(29387),V=e.n(ue),p=e(70178),b=e.n(p),R=e(55183),y=e.n(R),z=e(172),c=e.n(z),A=e(72540),U=e.n(A);x().extend(U()),x().extend(H()),x().extend(V()),x().extend(b()),x().extend(ne()),x().extend(i()),x().extend(O()),x().extend(f()),x().extend(T()),x().extend(y()),x().extend(c()),x().extend(S()),x().extend(N()),x().extend(M());var K=e(5574),E=e.n(K),j=function(ft){if(!ft)return x()();if(/^[+-]\d{2}:\d{2}$/.test(ft)){var lr=ft.match(/([+-])(\d{2}):(\d{2})/).slice(1),ar=E()(lr,3),Wr=ar[0],wo=ar[1],ko=ar[2],Jo=(parseInt(wo)*60+parseInt(ko))*(Wr==="+"?1:-1);return x()().utcOffset(Jo)}return x()().tz(ft)},w=function(ft){var lr=ft.type,ar=ft.unit,Wr=ar===void 0?"day":ar,wo=ft.number,ko=wo===void 0?1:wo,Jo=ft.timezone,Va=j(Jo),Go=Wr==="week"?"isoWeek":Wr,da,ba;if(lr==="past"){var ri=Va.startOf(Go);da=ri.subtract(ko,Wr).startOf(Go),ba=ri.subtract(1,Wr).endOf(Go)}else if(lr==="next"){var ci=Va.startOf(Go);da=ci.add(1,Wr).startOf(Go),ba=da.add(ko-1,Wr).endOf(Go)}else throw new Error("Unsupported type: ".concat(lr));return[da.format("YYYY-MM-DD HH:mm:ss"),ba.format("YYYY-MM-DD HH:mm:ss")]},D=function(ft,lr,ar){var Wr=lr==="isoWeek"?"week":lr;return j(ar).add(ft,Wr).startOf(lr)},v=function(ft,lr,ar){var Wr=lr==="isoWeek"?"week":lr;return j(ar).add(ft,Wr).endOf(lr)},G={today:function(ft){return[D(0,"day",ft==null?void 0:ft.timezone),v(0,"day",ft==null?void 0:ft.timezone)]},yesterday:function(ft){return[D(-1,"day",ft==null?void 0:ft.timezone),v(-1,"day",ft==null?void 0:ft.timezone)]},tomorrow:function(ft){return[D(1,"day",ft==null?void 0:ft.timezone),v(1,"day",ft==null?void 0:ft.timezone)]},thisWeek:function(ft){return[D(0,"isoWeek",ft==null?void 0:ft.timezone),v(0,"isoWeek",ft==null?void 0:ft.timezone)]},lastWeek:function(ft){return[D(-1,"isoWeek",ft==null?void 0:ft.timezone),v(-1,"isoWeek",ft==null?void 0:ft.timezone)]},nextWeek:function(ft){return[D(1,"isoWeek",ft==null?void 0:ft.timezone),v(1,"isoWeek",ft==null?void 0:ft.timezone)]},thisMonth:function(ft){return[D(0,"month",ft==null?void 0:ft.timezone),v(0,"month",ft==null?void 0:ft.timezone)]},lastMonth:function(ft){return[D(-1,"month",ft==null?void 0:ft.timezone),v(-1,"month",ft==null?void 0:ft.timezone)]},nextMonth:function(ft){return[D(1,"month",ft==null?void 0:ft.timezone),v(1,"month",ft==null?void 0:ft.timezone)]},thisQuarter:function(ft){return[D(0,"quarter",ft==null?void 0:ft.timezone),v(0,"quarter",ft==null?void 0:ft.timezone)]},lastQuarter:function(ft){return[D(-1,"quarter",ft==null?void 0:ft.timezone),v(-1,"quarter",ft==null?void 0:ft.timezone)]},nextQuarter:function(ft){return[D(1,"quarter",ft==null?void 0:ft.timezone),v(1,"quarter",ft==null?void 0:ft.timezone)]},thisYear:function(ft){return[D(0,"year",ft==null?void 0:ft.timezone),v(0,"year",ft==null?void 0:ft.timezone)]},lastYear:function(ft){return[D(-1,"year",ft==null?void 0:ft.timezone),v(-1,"year",ft==null?void 0:ft.timezone)]},nextYear:function(ft){return[D(1,"year",ft==null?void 0:ft.timezone),v(1,"year",ft==null?void 0:ft.timezone)]}},Y=function(ft){if(ft.type==="past"||ft.type==="next")return w(ft);var lr=G[ft.type];if(!lr)throw new Error("Unsupported type: ".concat(ft.type));var ar=lr(ft),Wr=E()(ar,2),wo=Wr[0],ko=Wr[1];return[wo.format("YYYY-MM-DD HH:mm:ss"),ko.format("YYYY-MM-DD HH:mm:ss")]},te=e(96695),ee=e.n(te),X=e(12444),Ce=e.n(X),Se=e(72004),Ee=e.n(Se),_e=e(28282),re=function(){function _n(){Ce()(this,_n)}return Ee()(_n,null,[{key:"graphlib",value:function(){return _e}},{key:"connectedNodes",value:function(lr){var ar=(0,de.castArray)(lr.nodes),Wr=(0,de.castArray)(lr.excludes||[]),wo=_n.build(lr),ko=new Set,Jo=ee()(ar),Va;try{for(Jo.s();!(Va=Jo.n()).done;){var Go=Va.value,da=_e.alg.preorder(wo,Go),ba=ee()(da),ri;try{for(ba.s();!(ri=ba.n()).done;){var ci=ri.value;Wr.includes(ci)||ko.add(ci)}}catch(gi){ba.e(gi)}finally{ba.f()}}}catch(gi){Jo.e(gi)}finally{Jo.f()}return Array.from(ko)}},{key:"preOrder",value:function(lr){return _n.graphlib().alg.preorder(_n.build(lr),lr.node)}},{key:"build",value:function(lr){var ar=lr.collections,Wr=(lr==null?void 0:lr.direction)||"forward",wo=Wr==="forward",ko=new _e.Graph,Jo=ee()(ar),Va;try{for(Jo.s();!(Va=Jo.n()).done;){var Go=Va.value;ko.setNode(Go.name)}}catch(zr){Jo.e(zr)}finally{Jo.f()}var da=ee()(ar),ba;try{for(da.s();!(ba=da.n()).done;){var ri=ba.value,ci=ri.inherits||[],gi=ee()(ci),fi;try{for(gi.s();!(fi=gi.n()).done;){var Li=fi.value;wo?ko.setEdge(ri.name,Li):ko.setEdge(Li,ri.name)}}catch(zr){gi.e(zr)}finally{gi.f()}var ll=ee()(ri.fields||[]),za;try{for(ll.s();!(za=ll.n()).done;){var Za=za.value;if((Za.type==="hasMany"||Za.type==="belongsTo"||Za.type==="hasOne")&&(wo?ko.setEdge(ri.name,Za.target):ko.setEdge(Za.target,ri.name)),Za.type==="belongsToMany"){var Ki=Za.through;wo?(ko.setEdge(ri.name,Ki),ko.setEdge(Ki,Za.target)):(ko.setEdge(Za.target,Ki),ko.setEdge(Ki,ri.name))}}}catch(zr){ll.e(zr)}finally{ll.f()}}}catch(zr){da.e(zr)}finally{da.f()}return ko}}]),_n}(),me=e(9783),oe=e.n(me),ie=e(97857),Pe=e.n(ie),De=e(19632),ce=e.n(De),Ie=e(34444),ye=e.n(Ie),pe=e(52677),ge=e.n(pe);function fe(_n){return"path"in _n&&"operator"in _n}function Oe(_n){return"logic"in _n&&"items"in _n}function Te(_n){var ft=_n.path,lr=_n.operator,ar=_n.value;return oe()({},ft,oe()({},lr,ar))}function Fe(_n){var ft=_n.logic,lr=_n.items,ar=lr.map(function(Wr){if(fe(Wr))return Te(Wr);if(Oe(Wr))return Fe(Wr);throw new Error("Invalid filter item type")});return oe()({},ft,ar)}function Ae(_n){if(!_n||ge()(_n)!=="object")throw new Error("Invalid filter: filter must be an object");if(!Oe(_n))throw new Error("Invalid filter: filter must have logic and items properties");if(!Array.isArray(_n.items))throw new Error("Invalid filter: items must be an array");return ct(Fe(_n))}function $e(_n){if(!_n||ge()(_n)!=="object")throw new Error("Invalid filter: filter must be an object");if(!Oe(_n))throw new Error("Invalid filter: filter must have logic and items properties");if(!Array.isArray(_n.items))throw new Error("Invalid filter: items must be an array");return _n.items=_n.items.filter(function(ft){return fe(ft)?!!ft.operator:Oe(ft)?$e(ft):!1}),Pe()({},_n)}function Ne(_n,ft){var lr=_n.path,ar=_n.operator,Wr=_n.value;return ft(lr,ar,Wr)}function nt(_n,ft){var lr=_n.logic,ar=_n.items;if(!ar||ar.length===0)return!0;var Wr=ar.map(function(wo){if(fe(wo))return Ne(wo,ft);if(Oe(wo))return nt(wo,ft);throw new Error("Invalid filter item type")});if(lr==="$and")return Wr.every(function(wo){return wo===!0});if(lr==="$or")return Wr.some(function(wo){return wo===!0});throw new Error("Unsupported logic operator: ".concat(lr))}function He(_n,ft){if(!_n||ge()(_n)!=="object")throw new Error("Invalid conditions: conditions must be an object");if(!Oe(_n))throw new Error("Invalid conditions: conditions must have logic and items properties");if(!Array.isArray(_n.items))throw new Error("Invalid conditions: items must be an array");if(typeof ft!="function")throw new Error("Invalid evaluator: evaluator must be a function");return nt(_n,ft)}var je=function(ft){return typeof ft=="string"},Je=function(ft){return Array.isArray(ft)},ke=function(ft){return Be(ft)?Object.keys(ft).length===0:Array.isArray(ft)?ft.length===0:!1},Be=function(ft){if(Object.prototype.toString.call(ft)!=="[object Object]")return!1;var lr=Object.getPrototypeOf(ft);return lr===null||lr===Object.prototype},Ke=function _n(ft){var lr=!0;for(var ar in ft){if(lr=!1,Je(ft[ar])&&ft[ar].length===0||!ft[ar])return!0;if(Be(ft[ar])||Je(ft[ar]))return _n(ft[ar])}return lr},le=function(ft){setTimeout(ft)};function xe(_n,ft){var lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(_n){var ar=lr.childrenKey,Wr=ar===void 0?"children":ar,wo=Array.isArray(_n)?ce()(_n):[_n],ko=ee()(wo),Jo;try{for(ko.s();!(Jo=ko.n()).done;){var Va=Jo.value;if(ft(Va))return Va;var Go=typeof Wr=="function"?Wr(Va):Va[Wr];if(Array.isArray(Go)&&Go.length>0){var da=xe(Go,ft,lr);if(da!==void 0)return da}}}catch(ba){ko.e(ba)}finally{ko.f()}}}function Ge(_n,ft){var lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",ar=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;if(!_n||!Array.isArray(_n)||_n.length===0)return _n;var Wr=P().orderBy(_n,ft,ar?"asc":"desc");return Wr.map(function(wo){return wo[lr]&&wo[lr].length>0?Pe()(Pe()({},wo),{},oe()({},lr,Ge(wo[lr],ft,lr,ar))):wo})}function Ve(_n){return new Promise(function(ft){setTimeout(ft,_n)})}function lt(_n){return!!(!_n||"$and"in _n&&P().isEmpty(_n.$and)||"$or"in _n&&P().isEmpty(_n.$or))}var ct=function(ft){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ye(),ar=lr(ft||{}),Wr={};for(var wo in ar){var ko=ar[wo];ko!=null&&!ke(ko)&&ko!==""&&(Wr[wo]=ko)}var Jo=lr.unflatten(Wr);for(var Va in Jo)Array.isArray(Jo[Va])&&(Jo[Va]=Jo[Va].filter(function(Go){return Go!=null}));return P().isEmpty(Jo)?void 0:Jo},Et=function(ft){return ft.format?ft.format:ft.dateFormat?ft.showTime?"".concat(ft.dateFormat," ").concat(ft.timeFormat||"HH:mm:ss"):ft.dateFormat:ft.picker==="month"?"YYYY-MM":ft.picker==="quarter"?"YYYY-\\QQ":ft.picker==="year"?"YYYY":ft.picker==="week"?"YYYY[W]W":ft.showTime?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"},Qe=function(ft){return!ft||!x().isDayjs(ft)?ft:"".concat(ft.format("YYYY-MM-DD"),"T").concat(ft.format("HH:mm:ss.SSS"),"Z")},gt=function(ft){if(!ft)return ft;if(Array.isArray(ft))return ft.map(function(lr){return lr.startOf("second").toISOString()});if(x().isDayjs(ft))return ft.startOf("second").toISOString()},_t=function(ft){try{var lr=parseInt(ft.slice(0,4)),ar=parseInt(ft.slice(-1));return x()().quarter(ar).year(lr)}catch{return null}},en=function(ft,lr){if(ft){var ar=lr.utcOffset,Wr=lr.gmt,wo=lr.picker,ko=lr.utc,Jo=ko===void 0?!0:ko,Va=lr.dateOnly;if(x()(ft).isValid()){if(Va){var Go=x()(ft);if(!Go.isValid())return ft;var da=Go.format("YYYY-MM-DD");return x().utc(da,"YYYY-MM-DD")}return Jo?x().isDayjs(ft)?ar?ft.utcOffset(Ze(ar)):ft:Wr?x()(ft).utcOffset(0):ar?x()(ft).utcOffset(Ze(ar)):x()(ft):x()(ft)}else return _t(ft)}},hn=function(ft){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Array.isArray(ft)?ft.map(function(ar){return en(ar,lr)}):ft&&en(ft,lr)},gn=function(ft,lr){return lr==="year"?ft.format("YYYY")+"-01-01T00:00:00.000Z":lr==="month"||lr==="quarter"?ft.format("YYYY-MM")+"-01T00:00:00.000Z":ft.format("YYYY-MM-DD")+"T00:00:00.000Z"},bn=function(ft,lr){if(!ft)return ft;if(Array.isArray(ft))return ft.map(function(ar){return gn(ar,lr)});if(x().isDayjs(ft))return gn(ft,lr)},Rt=function(ft){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ar=lr.showTime,Wr=lr.gmt,wo=lr.picker;return ft&&(ar?Wr?Qe(ft):gt(ft):bn(ft,wo))};function Ze(_n){if(!P().isString(_n))return _n;var ft=/([+-]|\d\d)/gi,lr=/Z|[+-]\d\d(?::?\d\d)?/gi,ar=/[+-]?\d+(\.\d{1,3})?/,Wr=(_n||"").match(lr);if(Wr===null&&(Wr=(_n||"").match(ar)),Wr===null)return null;var wo=Wr[Wr.length-1]||[],ko=(wo+"").match(ft)||["-",0,0],Jo=+(Number(ko[1])*60)+Ft(ko[2]);return Jo===0?0:ko[0]==="+"?Jo:-Jo}function Ft(_n){var ft=+_n,lr=0;return ft!==0&&isFinite(ft)&&(lr=Ct(ft)),lr}function Ct(_n){return _n<0?Math.ceil(_n)||0:Math.floor(_n)}var bt=function(ft){switch(ft){case"week":return"YYYY[W]W";case"month":return"YYYY-MM";case"quarter":return"YYYY[Q]Q";case"year":return"YYYY";default:return"YYYY-MM-DD"}},St=function(ft,lr,ar,Wr){return ft==="date"&&ar?"".concat(lr," ").concat(Wr||"HH:mm:ss"):lr};function zt(_n){return/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(_n)?"YYYY-MM-DD HH:mm:ss":/^\d{4}-\d{2}-\d{2}$/.test(_n)?"YYYY-MM-DD":/^\d{4}-\d{2}$/.test(_n)?"YYYY-MM":/^\d{4}$/.test(_n)?"YYYY":/^\d{4}Q[1-4]$/.test(_n)?"YYYY[Q]Q":/^\d{4}-\d{2}-\d{2}T/.test(_n)?"YYYY-MM-DDTHH:mm:ss.SSSZ":null}var An=function(ft,lr){Array.isArray(ft)?ft.forEach(lr):Object.keys(ft).forEach(function(ar){lr(ft[ar],ar)})},xn=function _n(ft,lr,ar){if(!ft)return ar;for(var Wr=lr.split("."),wo=[],ko=ft,Jo=!1,Va=0;Va<Wr.length;Va++){var Go,da=Wr[Va];if(Array.isArray(ko)){Jo=!0;var ba=ee()(ko),ri;try{for(ba.s();!(ri=ba.n()).done;){var ci=ri.value,gi=_n(ci,Wr.slice(Va).join("."),ar);wo=wo.concat(gi)}}catch(fi){ba.e(fi)}finally{ba.f()}break}if(((Go=ko)===null||Go===void 0?void 0:Go[da])===void 0)break;ko=ko[da],Va===Wr.length-1&&wo.push(ko)}return wo=wo.filter(function(fi){return fi!==void 0}),wo.length===0?ar:Jo?wo.filter(function(fi){return fi!==null}):wo[0]},un=e(8575),Sn=e(96750),jn=e.n(Sn),wt=e(11700),Nt=e.n(wt),yr=Nt()();Object.keys(yr).forEach(function(_n){jn().registerHelper(_n,yr[_n])}),jn().registerHelper("json",function(_n){return JSON.stringify(_n)}),jn().registerHelper("urlParse",function(_n){try{return JSON.stringify(un.parse(_n))}catch{return"Invalid URL: ".concat(_n)}}),jn().registerHelper("dateFormat",function(_n,ft,lr){return typeof lr=="string"?x()(_n).tz(lr).format(ft):x()(_n).format(ft)}),jn().registerHelper("isNull",function(_n){return P().isNull(_n)});function vn(_n){if(!_n)return!1;var ft=[_n.$and,_n.$or].filter(Boolean);return ft.length==0?Object.keys(_n).length>0:ft.some(function(lr){if(Array.isArray(lr))return lr.some(vn);if(lr.$and||lr.$or)return vn(lr);var ar=Object.keys(lr),Wr=E()(ar,1),wo=Wr[0];if(!wo||!lr[wo])return!1;var ko=Object.keys(lr[wo]),Jo=E()(ko,1),Va=Jo[0];return!(!Va||typeof lr[wo][Va]>"u")})}function hr(_n){var ft=ge()(_n);return Array.isArray(_n)?ft="array":_n instanceof Date?ft="date":_n===null&&(ft="null"),ft}function Tr(_n){var ft,lr=_n.substr(2,_n.length-4).trim(),ar=lr.indexOf(":");return ar!==-1?ft={key:lr.substr(0,ar),defaultValue:lr.substr(ar+1)}:ft={key:lr},ft}function Kr(_n,ft){return _n.parameters=Array.from(new Map(ft.map(function(lr){return[lr.key,lr]})).values()),_n}function Or(_n){switch(hr(_n)){case"string":return Er(_n);case"object":return Ir(_n);case"array":return Br(_n);default:return Kr(function(){return _n},[])}}var Er=function(){var _n=/{{(\w|:|[\s-+.,@/()?=*_$])+}}/g;return function(ft){var lr=[],ar=function(ko){return ft},Wr=ft.match(_n);return Wr&&(lr=Wr.map(Tr),ar=function(ko){return ko=ko||{},Wr.reduce(function(Jo,Va,Go){var da=lr[Go],ba=(0,de.get)(ko,da.key);return typeof ba>"u"&&(ba=da.defaultValue),typeof ba=="function"&&(ba=ba()),Wr.length===1&&ft.startsWith("{{")&&ft.endsWith("}}")?ba:(ba instanceof Date&&(ba=ba.toISOString()),Jo.replace(Va,ba??""))},ft)}),Kr(ar,lr)}}();function Ir(_n){var ft=Object.keys(_n).map(function(Wr){return{keyTemplate:Er(Wr),valueTemplate:Or(_n[Wr])}}),lr=ft.reduce(function(Wr,wo){return Wr.concat(wo.valueTemplate.parameters,wo.keyTemplate.parameters)},[]),ar=function(wo){return ft.reduce(function(ko,Jo){return ko[Jo.keyTemplate(wo)]=Jo.valueTemplate(wo),ko},{})};return Kr(ar,lr)}function Br(_n){var ft=_n.map(Or),lr=ft.reduce(function(Wr,wo){return Wr.concat(wo.parameters)},[]),ar=function(wo){return ft.map(function(ko){return ko(wo)})};return Kr(ar,lr)}var xo=function(ft){for(var lr,ar=arguments.length,Wr=new Array(ar>1?ar-1:0),wo=1;wo<ar;wo++)Wr[wo-1]=arguments[wo];(lr=console).error.apply(lr,[ft].concat(Wr))},qo=e(9996),uo=e.n(qo),kn=function(ft,lr,ar){return lr};function Ot(_n,ft,lr){return uo()(_n,ft,Pe()({arrayMerge:kn},lr))}var Zt=e(26855),Mt=function(ft){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"info",ar=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e3;Zt.ZP[lr]({message:ft,duration:ar})},at=e(55252),At=e(8150);function vt(_n,ft){if(typeof _n>"u"||_n===null||_n==="")return"";var lr=(0,at.NX)(ft);return(0,At.FH)(String(_n),".",lr)}var $t=e(15009),Kt=e.n($t),Yt=e(99289),Gt=e.n(Yt),In=e(36968),Wn=e.n(In),fn=e(30381),Mn=e.n(fn),gr=/^\s*\{\{([\s\S]*)\}\}\s*$/;function On(_n){return _n&&_n.constructor&&typeof _n.constructor.isBuffer=="function"&&_n.constructor.isBuffer(_n)}function mr(_n){return _n}function Tt(_n,ft){ft=ft||{};var lr=ft.delimiter||".",ar=ft.maxDepth,Wr=ft.transformKey||mr,wo=ft.transformValue||mr,ko={};function Jo(Va,Go,da){da=da||1,P().isObjectLike(Va)&&Object.keys(Va).forEach(function(ba){var ri,ci,gi=Va[ba],fi=ft.safe&&Array.isArray(gi),Li=Object.prototype.toString.call(gi),ll=On(gi),za=Li==="[object Object]"||Li==="[object Array]",Za=Go?Go+lr+Wr(ba):Wr(ba);if((ri=(ci=ft).breakOn)!==null&&ri!==void 0&&ri.call(ci,{key:ba,value:gi,path:Za})){ko[Za]=wo(gi,Za);return}if(!fi&&!ll&&za&&Object.keys(gi).length&&(!ft.maxDepth||da<ar))return Jo(gi,Za,da+1);ko[Za]=wo(gi,Za)})}return Jo(_n),ko}function Pt(_n){for(var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},lr={},ar=ft.transformValue||mr,Wr=0,wo=Object.keys(_n);Wr<wo.length;Wr++){var ko=wo[Wr];Wn()(lr,ko,ar(_n[ko],ko))}return lr}var Vt=function(ft){var lr=ft.split(".").pop()||"";return lr.startsWith("$")||(lr=""),{operator:lr}},an=function(ft){return["$dateOn","$dateNotOn","$dateBefore","$dateAfter","$dateNotBefore","$dateNotAfter","$dateBetween"].includes(ft)};function rn(_n){return _n instanceof Date||Object.prototype.toString.call(_n)==="[object Date]"}function xt(_n){return(_n==null?void 0:_n.type)==="dateOnly"||(_n==null?void 0:_n.type)==="datetimeNoTz"||(_n==null?void 0:_n.constructor.name)==="DateOnlyField"||(_n==null?void 0:_n.constructor.name)==="DatetimeNoTzField"}var Vn=function(ft,lr){if(!ft)return null;if(ft.type&&(ft=Y(Pe()(Pe()({},ft),{},{timezone:lr}))),Array.isArray(ft))return ft.length===2?ft.push("[]",lr):ft.length===3&&ft.push(lr),ft;if(typeof ft=="string")return!lr||/(\+|-)\d\d:\d\d$/.test(ft)?ft:ft+lr;if(rn(ft))return ft.toISOString()},qn=function(){var _n=Gt()(Kt()().mark(function ft(lr){var ar,Wr,wo,ko,Jo,Va,Go,da,ba=arguments;return Kt()().wrap(function(ci){for(;;)switch(ci.prev=ci.next){case 0:if(ar=ba.length>1&&ba[1]!==void 0?ba[1]:{},Wr=new Set,wo=ar.vars||{},ko=ar.timezone,Jo=ar.now,Va=ar.getField,Go=Tt(lr,{breakOn:function(fi){var Li=fi.key;return Li.startsWith("$")&&Li!=="$and"&&Li!=="$or"},transformValue:function(fi){if(typeof fi!="string")return fi;var Li=gr.exec(fi);if(Li){var ll=Li[1].trim();ll.startsWith("$user")&&Wr.add(ll.substring(6))}return fi}}),!(Wr.size>0)){ci.next=12;break}return ci.next=10,wo.$user({fields:ce()(Wr.values())});case 10:da=ci.sent,Object.assign(wo,{$user:da});case 12:return ci.abrupt("return",Pt(Go,{transformValue:function(fi,Li){var ll=Vt(Li),za=ll.operator;if(typeof fi=="string"){var Za=gr.exec(fi);if(Za){var Ki=Za[1].trim(),zr=xn(wo,Ki,null),Qt=Va==null?void 0:Va(Li);fi=typeof zr=="function"?zr==null?void 0:zr({field:Qt,operator:za,timezone:ko,now:Jo}):zr}}if(an(za)){var Xt=Va==null?void 0:Va(Li);return xt(Xt)?fi.type?Y(Pe()(Pe()({},fi),{},{timezone:(Xt==null?void 0:Xt.timezone)||ko})):fi:Vn(fi,(Xt==null?void 0:Xt.timezone)||ko)}return fi}}));case 13:case"end":return ci.stop()}},ft)}));return function(lr){return _n.apply(this,arguments)}}();function Jn(_n){var ft=_n.now,lr=_n.timezone,ar=lr===void 0?"+00:00":lr,Wr=_n.offset,wo=pr(ft).utcOffset(Ze(ar));return Wr>0?[(wo=wo.add(1,"day").startOf("day")).format("YYYY-MM-DD"),wo.clone().add(Wr,"day").startOf("day").format("YYYY-MM-DD"),"[)",ar]:[wo.clone().subtract(-1*Wr-1,"day").startOf("day").format("YYYY-MM-DD"),wo.clone().add(1,"day").startOf("day").format("YYYY-MM-DD"),"[)",ar]}function pr(_n){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _n?x().isDayjs(_n)?_n:ft?Mn()(_n):x()(_n):ft?Mn()():x()()}function fr(_n){var ft,lr=_n.now,ar=_n.unit,Wr=_n.timezone,wo=Wr===void 0?"+00:00":Wr,ko=_n.offset,Jo=pr(lr,ar==="isoWeek");Jo=Jo.utcOffset(Ze(wo)),Jo=Jo.startOf(ar),ko>0?Jo=Jo.add(ko,ar):ko<0&&(Jo=Jo.subtract(-1*ko,ar));var Va={year:function(){return Jo.format("YYYY")},quarter:function(){return Jo.format("YYYY[Q]Q")},month:function(){return Jo.format("YYYY-MM")},week:function(){return Jo.format("gggg[w]ww")},isoWeek:function(){return Jo.format("GGGG[W]WW")},day:function(){return Jo.format("YYYY-MM-DD")}},Go=(ft=Va[ar])===null||ft===void 0?void 0:ft.call(Va);return wo?Go+wo:Go}var ur=function(ft,lr){return function(ar){var Wr=ar.now,wo=ar.timezone,ko=ar.field;return ko!=null&&ko.timezone&&(wo=ko==null?void 0:ko.timezone),fr({now:Wr,timezone:wo,unit:ft,offset:lr})}},Pn=function(ft){return function(lr){var ar=lr.now,Wr=lr.timezone,wo=lr.field;return wo!=null&&wo.timezone&&(Wr=wo==null?void 0:wo.timezone),Jn({now:ar,timezone:Wr,offset:ft})}};function Ln(){return{now:new Date().toISOString(),today:ur("day"),yesterday:ur("day",-1),tomorrow:ur("day",1),thisWeek:ur("week"),lastWeek:ur("week",-1),nextWeek:ur("week",1),thisIsoWeek:ur("isoWeek"),lastIsoWeek:ur("isoWeek",-1),nextIsoWeek:ur("isoWeek",1),thisMonth:ur("month"),lastMonth:ur("month",-1),nextMonth:ur("month",1),thisQuarter:ur("quarter"),lastQuarter:ur("quarter",-1),nextQuarter:ur("quarter",1),thisYear:ur("year"),lastYear:ur("year",-1),nextYear:ur("year",1),last7Days:Pn(-7),next7Days:Pn(7),last30Days:Pn(-30),next30Days:Pn(30),last90Days:Pn(-90),next90Days:Pn(90)}}function Fn(_n){var ft=_n.split(".");return[ft.shift(),ft.join(".")]}var mt=function(){function _n(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{override:!1};Ce()(this,_n),oe()(this,"map",new Map),oe()(this,"options",void 0),this.options=ft}return Ee()(_n,[{key:"register",value:function(lr,ar){if(!this.options.override&&this.map.has(lr))throw new Error('this registry does not allow to override existing keys: "'.concat(lr,'"'));this.map.set(lr,ar)}},{key:"get",value:function(lr){return this.map.get(lr)}},{key:"getKeys",value:function(){return this.map.keys()}},{key:"getValues",value:function(){return this.map.values()}},{key:"getEntities",value:function(){return this.map.entries()}}]),_n}(),qe=null,se=e(28627),et=Symbol.for("nocobase.utils.sesLockdown"),Ue=Symbol.for("nocobase.utils.bufferOverrides"),We=["globalThis","global","self","Function","AsyncFunction","GeneratorFunction","eval","Compartment","lockdown","harden","assert"];function Ye(_n){if(!_n||ge()(_n)!=="object")return!1;var ft=_n.message||"";return ft.includes("(SES_ALREADY_LOCKED_DOWN)")}function st(){var _n=globalThis;if(!_n[Ue]){var ft=_n.Buffer;if(!(!ft||!ft.prototype)){var lr=ft.prototype,ar=ee()(Reflect.ownKeys(lr)),Wr;try{var wo=function(){var Jo=Wr.value,Va=Object.getOwnPropertyDescriptor(lr,Jo);if(!Va||typeof Va.value!="function"||!Va.configurable)return 1;var Go=Va.value,da=function(){return Go},ba=function(ci){if(this===lr)throw new TypeError("Cannot assign to read only property '".concat(String(Jo),"' of object 'Buffer.prototype'"));Object.defineProperty(this,Jo,{configurable:!0,enumerable:!0,writable:!0,value:ci})};Object.defineProperty(da,"originalValue",{configurable:!1,enumerable:!1,writable:!1,value:Go}),Object.defineProperty(lr,Jo,{configurable:Va.configurable,enumerable:Va.enumerable,get:da,set:ba})};for(ar.s();!(Wr=ar.n()).done;)wo()}catch(ko){ar.e(ko)}finally{ar.f()}_n[Ue]=!0}}}function Dt(_n){st();var ft=globalThis;if(!ft[et]){if(typeof lockdown!="function")throw new Error("SES lockdown is unavailable in the current runtime environment.");try{lockdown(_n)}catch(lr){if(!Ye(lr))throw lr}ft[et]=!0}}function on(_n,ft){return ft?"{{t(".concat(JSON.stringify(_n),", ").concat(JSON.stringify(ft),")}}"):"{{t(".concat(JSON.stringify(_n),")}}")}var Kn=function(ft){for(;ft;){var lr;if(ft.id==="root"||(lr=ft.classList)!==null&&lr!==void 0&&lr.contains("nb-action"))return!1;ft=ft.parentNode}return!{NODE_ENV:"production",PUBLIC_PATH:"auto"}.__TEST__};function sn(_n,ft){return _n.replace(/\{\{(\w+)\}\}/g,function(lr,ar){return typeof ft[ar]<"u"?ft[ar]:lr})}for(var Zn=36,Pr="";Zn--;)Pr+=Zn.toString(36);function eo(_n){for(var ft="",lr=_n||11;lr--;)ft+=Pr[Math.random()*36|0];return ft}function Gr(_n){var ft;try{ft=new URL(_n)}catch{return!1}return ft.protocol==="http:"||ft.protocol==="https:"}var br=e(33833),wr={i8:"2.0.49"},$r=function _n(ft,lr){if(!ft)return ft;if(ft["x-component"]!=="Grid")return Object.keys(ft.properties||{}).forEach(function(da){ft.properties[da]=_n(ft.properties[da],lr)}),ft;var ar=ft.parent;ft.toJSON?ft=ft.toJSON():ft=P().cloneDeep(ft);var Wr={},wo=ft,ko=wo.properties,Jo=ko===void 0?{}:ko,Va=0;if(Object.keys(Jo).forEach(function(da,ba){var ri=Jo[da];if(ri["x-component"]!=="Grid.Row"){ri["x-index"]=++Va,Wr[da]=ri;return}if(ri.properties){if(Object.keys(ri.properties).length===1){ri["x-index"]=++Va,Wr[da]=ri;return}Object.keys(ri.properties).forEach(function(ci,gi){var fi=ri.properties[ci];if(P().set(fi,"x-component-props.width",100),gi===0){ri["x-index"]=++Va,Wr[da]=ri;return}lr!=null&&lr(fi)||(delete ri.properties[ci],Wr["".concat(eo(),"_").concat(ci)]=Zr(fi,ci,++Va))})}}),ft.properties=Wr,ar){var Go=new br.Schema(ft,ar);return ar.properties&&Object.keys(ar.properties).forEach(function(da){da===ft.name&&(ar.properties[da]=Go)}),Go}return ft};function Zr(_n,ft,lr){return{type:"void",version:"2.0","x-component":"Grid.Row","x-app-version":wr.i8,"x-uid":eo(),"x-async":!1,"x-index":lr,_isJSONSchemaObject:!0,properties:oe()({},ft,_n)}}function no(_n){var ft=new Set,lr=function ar(Wr){if(typeof Wr=="string")for(var wo=/\{\{\s*([^}]+?)\s*\}\}/g,ko;(ko=wo.exec(Wr))!==null;){for(var Jo=ko[1],Va=/ctx\.([a-zA-Z_$][a-zA-Z0-9_$]*)/g,Go=void 0;(Go=Va.exec(Jo))!==null;)ft.add(Go[1]);for(var da=/ctx\[\s*(["'])\s*([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\1\s*\]/g,ba=void 0;(ba=da.exec(Jo))!==null;)ft.add(ba[2])}else Array.isArray(Wr)?Wr.forEach(ar):Wr&&ge()(Wr)==="object"&&Object.values(Wr).forEach(ar)};return lr(_n),ft}function so(_n){var ft={},lr=function ar(Wr){if(typeof Wr=="string")for(var wo=/\{\{\s*([^}]+?)\s*\}\}/g,ko;(ko=wo.exec(Wr))!==null;){for(var Jo=ko[1],Va=/ctx\.([a-zA-Z_$][a-zA-Z0-9_$]*)([^\s)]*)/g,Go=void 0;(Go=Va.exec(Jo))!==null;){var da=Go[1],ba=Go[2]||"";if(ft[da]=ft[da]||[],ba.startsWith("."))ft[da].push(ba.slice(1));else if(ba.startsWith("[")){var ri=ba.match(/^\[\s*(["'])\s*([^'"\]]+)\s*\1\s*\](.*)$/);if(ri){var ci=ri[2],gi=ri[3]||"";ft[da].push("".concat(ci).concat(gi))}else{var fi=ba.match(/^\[(\d+)\](.*)$/);if(fi){var Li=fi[1],ll=fi[2]||"";ft[da].push("[".concat(Li,"]").concat(ll))}}}else ba.startsWith("(")&&(ft[da].length||ft[da].push(""))}for(var za=/ctx\[\s*(["'])\s*([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\1\s*\]([^\s)]*)/g,Za=void 0;(Za=za.exec(Jo))!==null;){var Ki=Za[2],zr=Za[3]||"";if(ft[Ki]=ft[Ki]||[],zr.startsWith("."))ft[Ki].push(zr.slice(1));else if(zr.startsWith("[")){var Qt=zr.match(/^\[\s*(["'])\s*([^'"\]]+)\s*\1\s*\](.*)$/);if(Qt){var Xt=Qt[2],yn=Qt[3]||"";ft[Ki].push("".concat(Xt).concat(yn))}else{var cn=zr.match(/^\[(\d+)\](.*)$/);if(cn){var Nn=cn[1],tr=cn[2]||"";ft[Ki].push("[".concat(Nn,"]").concat(tr))}}}else zr.startsWith("(")&&(ft[Ki].length||ft[Ki].push(""))}}else Array.isArray(Wr)?Wr.forEach(ar):Wr&&ge()(Wr)==="object"&&Object.values(Wr).forEach(ar)};return lr(_n),ft}var sa=e(6829),to=new sa.Kj;function Vr(){var _n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ft={},lr=ee()(_n),ar;try{for(lr.s();!(ar=lr.n()).done;)for(var Wr=ar.value,wo=Wr.replace(/^ctx\./,""),ko=wo.split("."),Jo=ft,Va=0;Va<ko.length;Va++){var Go=ko[Va],da=Va===ko.length-1;da?Jo[Go]="{{".concat(Wr,"}}"):(Jo[Go]=Jo[Go]||{},Jo=Jo[Go])}}catch(ba){lr.e(ba)}finally{lr.f()}return ft}function ho(_n){return co.apply(this,arguments)}function co(){return co=Gt()(Kt()().mark(function _n(ft){var lr;return Kt()().wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:return Wr.next=2,to.fullVariables(ft);case 2:return lr=Wr.sent,Wr.abrupt("return",Vr(lr));case 4:case"end":return Wr.stop()}},_n)})),co.apply(this,arguments)}function Co(_n,ft){return No.apply(this,arguments)}function No(){return No=Gt()(Kt()().mark(function _n(ft,lr){return Kt()().wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:return Wr.next=2,to.parseAndRender(ft,{ctx:lr});case 2:return Wr.abrupt("return",Wr.sent);case 3:case"end":return Wr.stop()}},_n)})),No.apply(this,arguments)}function lo(_n){var ft=1,lr={},ar=_n.replace(/{{\s*([^}]+)\s*}}/g,function(Wr,wo){var ko="__var".concat(ft);return lr[ko]="{{".concat(wo.trim(),"}}"),ft++,"$".concat(ko)});return{sql:ar,bind:lr}}function ca(_n){return sr.apply(this,arguments)}function sr(){return sr=Gt()(Kt()().mark(function _n(ft){var lr,ar,Wr,wo;return Kt()().wrap(function(Jo){for(;;)switch(Jo.prev=Jo.next){case 0:return lr=lo(ft),ar=lr.sql,Wr=lr.bind,Jo.next=3,ho(ar);case 3:return wo=Jo.sent,Jo.abrupt("return",{sql:ar,bind:Wr,liquidContext:wo});case 5:case"end":return Jo.stop()}},_n)})),sr.apply(this,arguments)}},14994:function(){"use strict"},40408:function(Ut,Re,e){var de={"./af":[15903,4920],"./af.js":[15903,4920],"./am":[29911,4920],"./am.js":[29911,4920],"./ar":[63939,4920],"./ar-dz":[47200,4920],"./ar-dz.js":[47200,4920],"./ar-iq":[87719,4920],"./ar-iq.js":[87719,4920],"./ar-kw":[62376,4920],"./ar-kw.js":[62376,4920],"./ar-ly":[48540,4920],"./ar-ly.js":[48540,4920],"./ar-ma":[96817,4920],"./ar-ma.js":[96817,4920],"./ar-sa":[11573,4920],"./ar-sa.js":[11573,4920],"./ar-tn":[99339,4920],"./ar-tn.js":[99339,4920],"./ar.js":[63939,4920],"./az":[88092,4920],"./az.js":[88092,4920],"./be":[60504,4920],"./be.js":[60504,4920],"./bg":[19091,4920],"./bg.js":[19091,4920],"./bi":[19149,4920],"./bi.js":[19149,4920],"./bm":[15287,4920],"./bm.js":[15287,4920],"./bn":[35254,4920],"./bn-bd":[61177,4920],"./bn-bd.js":[61177,4920],"./bn.js":[35254,4920],"./bo":[52502,4920],"./bo.js":[52502,4920],"./br":[8864,4920],"./br.js":[8864,4920],"./bs":[4502,4920],"./bs.js":[4502,4920],"./ca":[33646,4920],"./ca.js":[33646,4920],"./cs":[98507,4920],"./cs.js":[98507,4920],"./cv":[16636,4920],"./cv.js":[16636,4920],"./cy":[28792,4920],"./cy.js":[28792,4920],"./da":[17427,4920],"./da.js":[17427,4920],"./de":[80790,4920],"./de-at":[73237,4920],"./de-at.js":[73237,4920],"./de-ch":[16148,4920],"./de-ch.js":[16148,4920],"./de.js":[80790,4920],"./dv":[11794,4920],"./dv.js":[11794,4920],"./el":[65423,4920],"./el.js":[65423,4920],"./en":[25054,4920],"./en-au":[85109,4920],"./en-au.js":[85109,4920],"./en-ca":[55105,4920],"./en-ca.js":[55105,4920],"./en-gb":[99517,4920],"./en-gb.js":[99517,4920],"./en-ie":[30758,4920],"./en-ie.js":[30758,4920],"./en-il":[95805,4920],"./en-il.js":[95805,4920],"./en-in":[88529,4920],"./en-in.js":[88529,4920],"./en-nz":[50302,4920],"./en-nz.js":[50302,4920],"./en-sg":[35941,4920],"./en-sg.js":[35941,4920],"./en-tt":[46183,4920],"./en-tt.js":[46183,4920],"./en.js":[25054,4920],"./eo":[74990,4920],"./eo.js":[74990,4920],"./es":[67763,4920],"./es-do":[3864,4920],"./es-do.js":[3864,4920],"./es-mx":[37118,4920],"./es-mx.js":[37118,4920],"./es-pr":[23521,4920],"./es-pr.js":[23521,4920],"./es-us":[36165,4920],"./es-us.js":[36165,4920],"./es.js":[67763,4920],"./et":[99670,4920],"./et.js":[99670,4920],"./eu":[20837,4920],"./eu.js":[20837,4920],"./fa":[81379,4920],"./fa.js":[81379,4920],"./fi":[47822,4920],"./fi.js":[47822,4920],"./fo":[69197,4920],"./fo.js":[69197,4920],"./fr":[96023,4920],"./fr-ca":[77989,4920],"./fr-ca.js":[77989,4920],"./fr-ch":[54254,4920],"./fr-ch.js":[54254,4920],"./fr.js":[96023,4920],"./fy":[93220,4920],"./fy.js":[93220,4920],"./ga":[47467,4920],"./ga.js":[47467,4920],"./gd":[54855,4920],"./gd.js":[54855,4920],"./gl":[90229,4920],"./gl.js":[90229,4920],"./gom-latn":[46312,4920],"./gom-latn.js":[46312,4920],"./gu":[87632,4920],"./gu.js":[87632,4920],"./he":[76875,4920],"./he.js":[76875,4920],"./hi":[77573,4920],"./hi.js":[77573,4920],"./hr":[96257,4920],"./hr.js":[96257,4920],"./ht":[98889,4920],"./ht.js":[98889,4920],"./hu":[68562,4920],"./hu.js":[68562,4920],"./hy-am":[38242,4920],"./hy-am.js":[38242,4920],"./id":[83783,4920],"./id.js":[83783,4920],"./index.d":[46990,4920],"./index.d.ts":[46990,4920],"./is":[98980,4920],"./is.js":[98980,4920],"./it":[15551,4920],"./it-ch":[83706,4920],"./it-ch.js":[83706,4920],"./it.js":[15551,4920],"./ja":[76831,4920],"./ja.js":[76831,4920],"./jv":[42641,4920],"./jv.js":[42641,4920],"./ka":[46622,4920],"./ka.js":[46622,4920],"./kk":[32921,4920],"./kk.js":[32921,4920],"./km":[45567,4920],"./km.js":[45567,4920],"./kn":[21113,4920],"./kn.js":[21113,4920],"./ko":[19132,4920],"./ko.js":[19132,4920],"./ku":[94888,4920],"./ku.js":[94888,4920],"./ky":[60466,4920],"./ky.js":[60466,4920],"./lb":[91796,4920],"./lb.js":[91796,4920],"./lo":[68894,4920],"./lo.js":[68894,4920],"./lt":[78768,4920],"./lt.js":[78768,4920],"./lv":[30953,4920],"./lv.js":[30953,4920],"./me":[18066,4920],"./me.js":[18066,4920],"./mi":[68602,4920],"./mi.js":[68602,4920],"./mk":[51560,4920],"./mk.js":[51560,4920],"./ml":[4017,4920],"./ml.js":[4017,4920],"./mn":[94717,4920],"./mn.js":[94717,4920],"./mr":[15473,4920],"./mr.js":[15473,4920],"./ms":[43986,4920],"./ms-my":[77387,4920],"./ms-my.js":[77387,4920],"./ms.js":[43986,4920],"./mt":[28477,4920],"./mt.js":[28477,4920],"./my":[62966,4920],"./my.js":[62966,4920],"./nb":[19682,4920],"./nb.js":[19682,4920],"./ne":[14149,4920],"./ne.js":[14149,4920],"./nl":[99182,4920],"./nl-be":[37496,4920],"./nl-be.js":[37496,4920],"./nl.js":[99182,4920],"./nn":[92722,4920],"./nn.js":[92722,4920],"./oc-lnc":[76159,4920],"./oc-lnc.js":[76159,4920],"./pa-in":[35914,4920],"./pa-in.js":[35914,4920],"./pl":[81987,4920],"./pl.js":[81987,4920],"./pt":[15001,4920],"./pt-br":[57548,4920],"./pt-br.js":[57548,4920],"./pt.js":[15001,4920],"./rn":[123,4920],"./rn.js":[123,4920],"./ro":[18146,4920],"./ro.js":[18146,4920],"./ru":[70600,4920],"./ru.js":[70600,4920],"./rw":[6509,4920],"./rw.js":[6509,4920],"./sd":[65437,4920],"./sd.js":[65437,4920],"./se":[772,4920],"./se.js":[772,4920],"./si":[77109,4920],"./si.js":[77109,4920],"./sk":[35627,4920],"./sk.js":[35627,4920],"./sl":[82544,4920],"./sl.js":[82544,4920],"./sq":[88341,4920],"./sq.js":[88341,4920],"./sr":[50617,4920],"./sr-cyrl":[37101,4920],"./sr-cyrl.js":[37101,4920],"./sr.js":[50617,4920],"./ss":[64127,4920],"./ss.js":[64127,4920],"./sv":[91876,4920],"./sv-fi":[19911,4920],"./sv-fi.js":[19911,4920],"./sv.js":[91876,4920],"./sw":[46148,4920],"./sw.js":[46148,4920],"./ta":[55596,4920],"./ta.js":[55596,4920],"./te":[45159,4920],"./te.js":[45159,4920],"./tet":[99157,4920],"./tet.js":[99157,4920],"./tg":[9928,4920],"./tg.js":[9928,4920],"./th":[62019,4920],"./th.js":[62019,4920],"./tk":[75817,4920],"./tk.js":[75817,4920],"./tl-ph":[46513,4920],"./tl-ph.js":[46513,4920],"./tlh":[97296,4920],"./tlh.js":[97296,4920],"./tr":[73035,4920],"./tr.js":[73035,4920],"./types.d":[63799,4920],"./types.d.ts":[63799,4920],"./tzl":[57797,4920],"./tzl.js":[57797,4920],"./tzm":[84722,4920],"./tzm-latn":[30261,4920],"./tzm-latn.js":[30261,4920],"./tzm.js":[84722,4920],"./ug-cn":[80313,4920],"./ug-cn.js":[80313,4920],"./uk":[64144,4920],"./uk.js":[64144,4920],"./ur":[92957,4920],"./ur.js":[92957,4920],"./uz":[7486,4920],"./uz-latn":[98727,4920],"./uz-latn.js":[98727,4920],"./uz.js":[7486,4920],"./vi":[37553,4920],"./vi.js":[37553,4920],"./x-pseudo":[55321,4920],"./x-pseudo.js":[55321,4920],"./yo":[14724,4920],"./yo.js":[14724,4920],"./zh":[32009,4920],"./zh-cn":[33852],"./zh-cn.js":[33852],"./zh-hk":[2390,4920],"./zh-hk.js":[2390,4920],"./zh-tw":[43901,4920],"./zh-tw.js":[43901,4920],"./zh.js":[32009,4920]};function P(ve){if(!e.o(de,ve))return Promise.resolve().then(function(){var N=new Error("Cannot find module '"+ve+"'");throw N.code="MODULE_NOT_FOUND",N});var x=de[ve],h=x[0];return Promise.all(x.slice(1).map(e.e)).then(function(){return e.t(h,23)})}P.keys=function(){return Object.keys(de)},P.id=40408,Ut.exports=P},95475:function(Ut){function Re(e){return Promise.resolve().then(function(){var de=new Error("Cannot find module '"+e+"'");throw de.code="MODULE_NOT_FOUND",de})}Re.keys=function(){return[]},Re.resolve=Re,Re.id=95475,Ut.exports=Re},59816:function(){},24654:function(){},95506:function(){},75347:function(){},31777:function(){},34017:function(){},59905:function(){},64604:function(){},75042:function(){}}]);