@5minds/node-red-dashboard-2-processcube-dynamic-table 2.1.2 → 2.1.3-develop-9b02da-mgkyrxou
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode("h1{margin-bottom:10px}h2{margin-top:1.5rem;margin-bottom:.75rem}h3{margin-top:1rem}p{margin-bottom:5px}ul li{list-style-type:circle;list-style-position:inside;margin-left:15px}pre{padding:12px;margin:12px;background-color:#eee}code{font-size:.825rem;color:#ae0000}input{margin:6px;background-color:#eee}.v-field--prepended{padding-inline-start:4px}.task-div{padding:8px;margin:16px;border:solid;border-radius:4px;border-color:#303030}.action-button-container{width:100%;display:flex;justify-content:center}.full-width-table{--v-table-header-height: 40px !important;background-color:#fff;border-radius:0 0 8px 8px}.full-width-table .v-toolbar,.full-width-table .v-table__wrapper .v-alert--variant-flat{background:unset!important;color:unset!important}.full-width-table :deep(thead th){border-bottom:4px solid rgb(var(--v-theme-primary))!important;font-weight:700!important;font-size:16px!important}.full-width-table :deep(tbody){background-color:unset!important;--widget-row-height: 40px !important;font-size:16px}.search-input :deep(.v-field__outline__end){border:none!important}.search-input :deep(.v-field__outline__start){border:none!important}.search-input :deep(.v-field__outline){display:none!important}.search-input :deep(.v-label){font-size:14px!important}.search-input :deep(.v-field){border-radius:0 0 0 8px;border-bottom:2px solid rgb(var(--v-theme-primary))!important;border-left:2px solid rgb(var(--v-theme-primary))!important;border-right:none!important;border-top:none!important;transition:border-width .1s ease-in-out;margin-bottom:8px}.search-input :deep(.v-field__input){font-size:18px;font-weight:400;font-style:normal;padding:0 8px}.search-input:focus-within :deep(.v-field){border-bottom:4px solid rgb(var(--v-theme-primary))!important;border-left:4px solid rgb(var(--v-theme-primary))!important}.search-input:focus-within :deep(.v-field__input){background-color:#f6f5fa;border-radius:0 8px 0 5px}.action-button{border-radius:8px;background-color:transparent!important;border-color:rgb(var(--v-theme-primary));border:2px solid;color:rgb(var(--v-theme-primary));padding:4px 8px}.ui-dynamic-table-container{border-radius:8px;border-bottom:4px solid rgb(var(--v-theme-primary));box-shadow:0 4px 16px -3px #00000080}.ui-dynamic-table-title-default{background:linear-gradient(131deg,#18181a 26.76%,#242326 100.16%);padding:32px;color:#fff;font-size:36px;font-weight:700;border-radius:8px 8px 0 0;margin-top:0;border:2px solid #f6f5fa;border-bottom:none;text-shadow:2px 2px 4px rgba(0,0,0,.3)}.ui-dynamic-table-title-default hr{border:4px solid rgb(var(--v-theme-primary));border-radius:2px}.ui-dynamic-table-title-minimal{padding:16px;margin-top:0;border:2px solid #f6f5fa;border-bottom:none}.ui-dynamic-table-title-outside{padding-bottom:24px;padding-top:24px;font-size:24px;font-weight:700}.reload-button{border-radius:8px!important;background-color:transparent!important;border-color:rgb(var(--v-theme-primary))!important;border:2px solid!important;color:rgb(var(--v-theme-primary))!important;padding:8px!important;min-height:36px!important;font-weight:500!important;margin-bottom:8px!important}.reload-button:hover{background-color:rgba(var(--v-theme-primary),.08)!important}.reload-button:disabled{opacity:.6!important}.reload-spin{animation:spin 1s linear infinite}.v-container{padding:12px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}h1[data-v-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode("h1{margin-bottom:10px}h2{margin-top:1.5rem;margin-bottom:.75rem}h3{margin-top:1rem}p{margin-bottom:5px}ul li{list-style-type:circle;list-style-position:inside;margin-left:15px}pre{padding:12px;margin:12px;background-color:#eee}code{font-size:.825rem;color:#ae0000}input{margin:6px;background-color:#eee}.v-field--prepended{padding-inline-start:4px}.task-div{padding:8px;margin:16px;border:solid;border-radius:4px;border-color:#303030}.action-button-container{width:100%;display:flex;justify-content:center}.full-width-table{--v-table-header-height: 40px !important;background-color:#fff;border-radius:0 0 8px 8px}.full-width-table .v-toolbar,.full-width-table .v-table__wrapper .v-alert--variant-flat{background:unset!important;color:unset!important}.full-width-table :deep(thead th){border-bottom:4px solid rgb(var(--v-theme-primary))!important;font-weight:700!important;font-size:16px!important}.full-width-table :deep(tbody){background-color:unset!important;--widget-row-height: 40px !important;font-size:16px}.search-input :deep(.v-field__outline__end){border:none!important}.search-input :deep(.v-field__outline__start){border:none!important}.search-input :deep(.v-field__outline){display:none!important}.search-input :deep(.v-label){font-size:14px!important}.search-input :deep(.v-field){border-radius:0 0 0 8px;border-bottom:2px solid rgb(var(--v-theme-primary))!important;border-left:2px solid rgb(var(--v-theme-primary))!important;border-right:none!important;border-top:none!important;transition:border-width .1s ease-in-out;margin-bottom:8px}.search-input :deep(.v-field__input){font-size:18px;font-weight:400;font-style:normal;padding:0 8px}.search-input:focus-within :deep(.v-field){border-bottom:4px solid rgb(var(--v-theme-primary))!important;border-left:4px solid rgb(var(--v-theme-primary))!important}.search-input:focus-within :deep(.v-field__input){background-color:#f6f5fa;border-radius:0 8px 0 5px}.action-button{border-radius:8px;background-color:transparent!important;border-color:rgb(var(--v-theme-primary));border:2px solid;color:rgb(var(--v-theme-primary));padding:4px 8px}.ui-dynamic-table-container{border-radius:8px;border-bottom:4px solid rgb(var(--v-theme-primary));box-shadow:0 4px 16px -3px #00000080}.ui-dynamic-table-title-default{background:linear-gradient(131deg,#18181a 26.76%,#242326 100.16%);padding:32px;color:#fff;font-size:36px;font-weight:700;border-radius:8px 8px 0 0;margin-top:0;border:2px solid #f6f5fa;border-bottom:none;text-shadow:2px 2px 4px rgba(0,0,0,.3)}.ui-dynamic-table-title-default hr{border:4px solid rgb(var(--v-theme-primary));border-radius:2px}.ui-dynamic-table-title-minimal{padding:16px;margin-top:0;border:2px solid #f6f5fa;border-bottom:none}.ui-dynamic-table-title-outside{padding-bottom:24px;padding-top:24px;font-size:24px;font-weight:700}.reload-button{border-radius:8px!important;background-color:transparent!important;border-color:rgb(var(--v-theme-primary))!important;border:2px solid!important;color:rgb(var(--v-theme-primary))!important;padding:8px!important;min-height:36px!important;font-weight:500!important;margin-bottom:8px!important}.reload-button:hover{background-color:rgba(var(--v-theme-primary),.08)!important}.reload-button:disabled{opacity:.6!important}.reload-spin{animation:spin 1s linear infinite}.v-container{padding:12px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}h1[data-v-c078cf2e]{margin-bottom:10px}h2[data-v-c078cf2e]{margin-top:1.5rem;margin-bottom:.75rem}h3[data-v-c078cf2e]{margin-top:1rem}p[data-v-c078cf2e]{margin-bottom:5px}ul li[data-v-c078cf2e]{list-style-type:circle;list-style-position:inside;margin-left:15px}pre[data-v-c078cf2e]{padding:12px;margin:12px;background-color:#eee}code[data-v-c078cf2e]{font-size:.825rem;color:#ae0000}input[data-v-c078cf2e]{margin:6px;background-color:#eee}.v-field--prepended[data-v-c078cf2e]{padding-inline-start:4px}.task-div[data-v-c078cf2e]{padding:8px;margin:16px;border:solid;border-radius:4px;border-color:#303030}.action-button-container[data-v-c078cf2e]{width:100%;display:flex;justify-content:center}.full-width-table[data-v-c078cf2e]{--v-table-header-height: 40px !important;background-color:#fff;border-radius:0 0 8px 8px}.full-width-table .v-toolbar[data-v-c078cf2e],.full-width-table .v-table__wrapper .v-alert--variant-flat[data-v-c078cf2e]{background:unset!important;color:unset!important}.full-width-table[data-v-c078cf2e] thead th{border-bottom:4px solid rgb(var(--v-theme-primary))!important;font-weight:700!important;font-size:16px!important}.full-width-table[data-v-c078cf2e] tbody{background-color:unset!important;--widget-row-height: 40px !important;font-size:16px}.search-input[data-v-c078cf2e] .v-field__outline__end,.search-input[data-v-c078cf2e] .v-field__outline__start{border:none!important}.search-input[data-v-c078cf2e] .v-field__outline{display:none!important}.search-input[data-v-c078cf2e] .v-label{font-size:14px!important}.search-input[data-v-c078cf2e] .v-field{border-radius:0 0 0 8px;border-bottom:2px solid rgb(var(--v-theme-primary))!important;border-left:2px solid rgb(var(--v-theme-primary))!important;border-right:none!important;border-top:none!important;transition:border-width .1s ease-in-out;margin-bottom:8px}.search-input[data-v-c078cf2e] .v-field__input{font-size:18px;font-weight:400;font-style:normal;padding:0 8px}.search-input[data-v-c078cf2e]:focus-within .v-field{border-bottom:4px solid rgb(var(--v-theme-primary))!important;border-left:4px solid rgb(var(--v-theme-primary))!important}.search-input[data-v-c078cf2e]:focus-within .v-field__input{background-color:#f6f5fa;border-radius:0 8px 0 5px}.action-button[data-v-c078cf2e]{border-radius:8px;background-color:transparent!important;border-color:rgb(var(--v-theme-primary));border:2px solid;color:rgb(var(--v-theme-primary));padding:4px 8px}.ui-dynamic-table-container[data-v-c078cf2e]{border-radius:8px;border-bottom:4px solid rgb(var(--v-theme-primary));box-shadow:0 4px 16px -3px #00000080}.ui-dynamic-table-title-default[data-v-c078cf2e]{background:linear-gradient(131deg,#18181a 26.76%,#242326 100.16%);padding:32px;color:#fff;font-size:36px;font-weight:700;border-radius:8px 8px 0 0;margin-top:0;border:2px solid #f6f5fa;border-bottom:none;text-shadow:2px 2px 4px rgba(0,0,0,.3)}.ui-dynamic-table-title-default hr[data-v-c078cf2e]{border:4px solid rgb(var(--v-theme-primary));border-radius:2px}.ui-dynamic-table-title-minimal[data-v-c078cf2e]{padding:16px;margin-top:0;border:2px solid #f6f5fa;border-bottom:none}.ui-dynamic-table-title-outside[data-v-c078cf2e]{padding-bottom:24px;padding-top:24px;font-size:24px;font-weight:700}.reload-button[data-v-c078cf2e]{border-radius:8px!important;background-color:transparent!important;border-color:rgb(var(--v-theme-primary))!important;border:2px solid!important;color:rgb(var(--v-theme-primary))!important;padding:8px!important;min-height:36px!important;font-weight:500!important;margin-bottom:8px!important}.reload-button[data-v-c078cf2e]:hover{background-color:rgba(var(--v-theme-primary),.08)!important}.reload-button[data-v-c078cf2e]:disabled{opacity:.6!important}.reload-spin[data-v-c078cf2e]{animation:spin-c078cf2e 1s linear infinite}.v-container[data-v-c078cf2e]{padding:12px}@keyframes spin-c078cf2e{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.search-input[data-v-c078cf2e]{margin-left:12px;margin-right:50%}.mobile-search[data-v-c078cf2e]{margin-right:12px!important;flex:1}.mobile-cards-container[data-v-c078cf2e]{padding:8px}.mobile-card[data-v-c078cf2e]{margin-bottom:12px!important;border-radius:8px}.mobile-card-row[data-v-c078cf2e]{display:flex;justify-content:space-between;align-items:center;padding:4px 0;border-bottom:1px solid rgba(0,0,0,.05)}.mobile-card-row[data-v-c078cf2e]:last-child{border-bottom:none}.mobile-card-label[data-v-c078cf2e]{font-weight:600;color:#000000b3;flex:0 0 40%;font-size:.875rem}.mobile-card-value[data-v-c078cf2e]{flex:1;text-align:right;word-break:break-word;font-size:.875rem}@media (max-width: 600px){.mobile-cards-container[data-v-c078cf2e]{padding:4px}.mobile-card[data-v-c078cf2e]{margin-bottom:8px!important}.mobile-card-label[data-v-c078cf2e]{flex:0 0 45%;font-size:.8rem}.mobile-card-value[data-v-c078cf2e]{font-size:.8rem}.search-input[data-v-c078cf2e]{margin-left:8px;margin-right:8px}}")),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
2
|
(function(Nt,Pr){typeof exports=="object"&&typeof module<"u"?Pr(exports,require("vuex"),require("vue")):typeof define=="function"&&define.amd?define(["exports","vuex","vue"],Pr):(Nt=typeof globalThis<"u"?globalThis:Nt||self,Pr(Nt["ui-dynamic-table"]={},Nt.vuex,Nt.Vue))})(this,function(Nt,Pr,L){"use strict";const Ka=(R,Q)=>{const l=R.__vccOpts||R;for(const[me,oe]of Q)l[me]=oe;return l},cu={name:"UIDynamicTableTitleText",props:{style:{type:String,default(){return"default"}},title:{type:String,default(){return""}},customStyles:{type:String,default(){return""}},titleIcon:{type:String,default(){return""}}},computed:{typeSpecificStyling(){return`ui-dynamic-table-title-${this.style}`}}},hu={key:0},du=["src"],pu={key:1};function gu(R,Q,l,me,oe,le){return l.title.length>0?(L.openBlock(),L.createElementBlock("div",hu,[L.createElementVNode("h3",{class:L.normalizeClass(le.typeSpecificStyling),style:{display:"flex",gap:"25px","align-items":"center"}},[L.createElementVNode("div",{style:L.normalizeStyle({width:"fit-content",display:l.style==="default"?"":"flex"})},[l.titleIcon.length>0?(L.openBlock(),L.createElementBlock("img",{key:0,src:l.titleIcon,style:{"padding-right":"16px"}},null,8,du)):L.createCommentVNode("",!0),L.createElementVNode("span",{style:L.normalizeStyle(l.customStyles)},L.toDisplayString(l.title),5),l.style==="default"?(L.openBlock(),L.createElementBlock("hr",pu)):L.createCommentVNode("",!0)],4)],2)])):L.createCommentVNode("",!0)}const vu=Ka(cu,[["render",gu]]);var tr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yu(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}var Yr={exports:{}};/**
|
|
3
3
|
* @license
|
|
4
4
|
* Lodash <https://lodash.com/>
|
|
@@ -28,4 +28,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
28
28
|
}`;var Oe=uu(function(){return Xe(u,ie+"return "+N).apply(l,h)});if(Oe.source=N,Ma(Oe))throw Oe;return Oe}function Rp(e){return je(e).toLowerCase()}function Fp(e){return je(e).toUpperCase()}function Lp(e,n,t){if(e=je(e),e&&(t||n===l))return yo(e);if(!e||!(n=nt(n)))return e;var r=vt(e),a=vt(n),u=mo(r,a),h=wo(r,a)+1;return er(r,u,h).join("")}function Mp(e,n,t){if(e=je(e),e&&(t||n===l))return e.slice(0,_o(e)+1);if(!e||!(n=nt(n)))return e;var r=vt(e),a=wo(r,vt(n))+1;return er(r,0,a).join("")}function Up(e,n,t){if(e=je(e),e&&(t||n===l))return e.replace(Qe,"");if(!e||!(n=nt(n)))return e;var r=vt(e),a=mo(r,vt(n));return er(r,a).join("")}function Np(e,n){var t=We,r=$e;if(pn(n)){var a="separator"in n?n.separator:a;t="length"in n?Ee(n.length):t,r="omission"in n?nt(n.omission):r}e=je(e);var u=e.length;if(mr(e)){var h=vt(e);u=h.length}if(t>=u)return e;var g=t-wr(r);if(g<1)return r;var _=h?er(h,0,g).join(""):e.slice(0,g);if(a===l)return _+r;if(h&&(g+=_.length-g),Ua(a)){if(e.slice(g).search(a)){var D,I=_;for(a.global||(a=ji(a.source,je(qt.exec(a))+"g")),a.lastIndex=0;D=a.exec(I);)var N=D.index;_=_.slice(0,N===l?g:N)}}else if(e.indexOf(nt(a),g)!=g){var K=_.lastIndexOf(a);K>-1&&(_=_.slice(0,K))}return _+r}function Bp(e){return e=je(e),e&&o.test(e)?e.replace(y,pf):e}var Wp=Er(function(e,n,t){return e+(t?" ":"")+n.toUpperCase()}),Wa=fs("toUpperCase");function su(e,n,t){return e=je(e),n=t?l:n,n===l?ff(e)?yf(e):ju(e):e.match(n)||[]}var uu=Ie(function(e,n){try{return jn(e,l,n)}catch(t){return Ma(t)?t:new xe(t)}}),zp=Rt(function(e,n){return ft(n,function(t){t=Et(t),Dt(e,t,Fa(e[t],e))}),e});function qp(e){var n=e==null?0:e.length,t=de();return e=n?ln(e,function(r){if(typeof r[1]!="function")throw new lt(F);return[t(r[0]),r[1]]}):[],Ie(function(r){for(var a=-1;++a<n;){var u=e[a];if(jn(u[0],this,r))return jn(u[1],this,r)}})}function Gp(e){return pl(ht(e,G))}function za(e){return function(){return e}}function Hp(e,n){return e==null||e!==e?n:e}var $p=cs(),Yp=cs(!0);function Qn(e){return e}function qa(e){return zo(typeof e=="function"?e:ht(e,G))}function Kp(e){return Go(ht(e,G))}function Zp(e,n){return Ho(e,ht(n,G))}var Jp=Ie(function(e,n){return function(t){return Br(t,e,n)}}),Vp=Ie(function(e,n){return function(t){return Br(e,t,n)}});function Ga(e,n,t){var r=Pn(n),a=gi(n,r);t==null&&!(pn(n)&&(a.length||!r.length))&&(t=n,n=e,e=this,a=gi(n,Pn(n)));var u=!(pn(t)&&"chain"in t)||!!t.chain,h=Lt(e);return ft(a,function(g){var _=n[g];e[g]=_,h&&(e.prototype[g]=function(){var D=this.__chain__;if(u||D){var I=e(this.__wrapped__),N=I.__actions__=Jn(this.__actions__);return N.push({func:_,args:arguments,thisArg:e}),I.__chain__=D,I}return _.apply(e,Zt([this.value()],arguments))})}),e}function Xp(){return In._===this&&(In._=xf),this}function Ha(){}function Qp(e){return e=Ee(e),Ie(function(n){return $o(n,e)})}var jp=_a(ln),eg=_a(co),ng=_a(Yi);function fu(e){return Ca(e)?Ki(Et(e)):Dl(e)}function tg(e){return function(n){return e==null?l:lr(e,n)}}var rg=ds(),ig=ds(!0);function $a(){return[]}function Ya(){return!1}function ag(){return{}}function og(){return""}function sg(){return!0}function ug(e,n){if(e=Ee(e),e<1||e>gn)return[];var t=cn,r=Nn(e,cn);n=de(n),e-=cn;for(var a=Vi(r,n);++t<e;)n(t);return a}function fg(e){return ke(e)?ln(e,Et):tt(e)?[e]:Jn(Os(je(e)))}function lg(e){var n=++_f;return je(e)+n}var cg=_i(function(e,n){return e+n},0),hg=Aa("ceil"),dg=_i(function(e,n){return e/n},1),pg=Aa("floor");function gg(e){return e&&e.length?pi(e,Qn,sa):l}function vg(e,n){return e&&e.length?pi(e,de(n,2),sa):l}function yg(e){return go(e,Qn)}function mg(e,n){return go(e,de(n,2))}function wg(e){return e&&e.length?pi(e,Qn,ca):l}function bg(e,n){return e&&e.length?pi(e,de(n,2),ca):l}var _g=_i(function(e,n){return e*n},1),Ag=Aa("round"),xg=_i(function(e,n){return e-n},0);function kg(e){return e&&e.length?Ji(e,Qn):0}function Sg(e,n){return e&&e.length?Ji(e,de(n,2)):0}return s.after=Kh,s.ary=Ws,s.assign=Fd,s.assignIn=eu,s.assignInWith=Fi,s.assignWith=Ld,s.at=Md,s.before=zs,s.bind=Fa,s.bindAll=zp,s.bindKey=qs,s.castArray=ad,s.chain=Us,s.chunk=pc,s.compact=gc,s.concat=vc,s.cond=qp,s.conforms=Gp,s.constant=za,s.countBy=kh,s.create=Ud,s.curry=Gs,s.curryRight=Hs,s.debounce=$s,s.defaults=Nd,s.defaultsDeep=Bd,s.defer=Zh,s.delay=Jh,s.difference=yc,s.differenceBy=mc,s.differenceWith=wc,s.drop=bc,s.dropRight=_c,s.dropRightWhile=Ac,s.dropWhile=xc,s.fill=kc,s.filter=Eh,s.flatMap=Oh,s.flatMapDeep=Ph,s.flatMapDepth=Dh,s.flatten=Rs,s.flattenDeep=Sc,s.flattenDepth=Ec,s.flip=Vh,s.flow=$p,s.flowRight=Yp,s.fromPairs=Tc,s.functions=Yd,s.functionsIn=Kd,s.groupBy=Ih,s.initial=Oc,s.intersection=Pc,s.intersectionBy=Dc,s.intersectionWith=Ic,s.invert=Jd,s.invertBy=Vd,s.invokeMap=Fh,s.iteratee=qa,s.keyBy=Lh,s.keys=Pn,s.keysIn=Xn,s.map=Ci,s.mapKeys=Qd,s.mapValues=jd,s.matches=Kp,s.matchesProperty=Zp,s.memoize=Pi,s.merge=ep,s.mergeWith=nu,s.method=Jp,s.methodOf=Vp,s.mixin=Ga,s.negate=Di,s.nthArg=Qp,s.omit=np,s.omitBy=tp,s.once=Xh,s.orderBy=Mh,s.over=jp,s.overArgs=Qh,s.overEvery=eg,s.overSome=ng,s.partial=La,s.partialRight=Ys,s.partition=Uh,s.pick=rp,s.pickBy=tu,s.property=fu,s.propertyOf=tg,s.pull=Mc,s.pullAll=Ls,s.pullAllBy=Uc,s.pullAllWith=Nc,s.pullAt=Bc,s.range=rg,s.rangeRight=ig,s.rearg=jh,s.reject=Wh,s.remove=Wc,s.rest=ed,s.reverse=Ia,s.sampleSize=qh,s.set=ap,s.setWith=op,s.shuffle=Gh,s.slice=zc,s.sortBy=Yh,s.sortedUniq=Zc,s.sortedUniqBy=Jc,s.split=Op,s.spread=nd,s.tail=Vc,s.take=Xc,s.takeRight=Qc,s.takeRightWhile=jc,s.takeWhile=eh,s.tap=gh,s.throttle=td,s.thru=Ti,s.toArray=Xs,s.toPairs=ru,s.toPairsIn=iu,s.toPath=fg,s.toPlainObject=js,s.transform=sp,s.unary=rd,s.union=nh,s.unionBy=th,s.unionWith=rh,s.uniq=ih,s.uniqBy=ah,s.uniqWith=oh,s.unset=up,s.unzip=Ra,s.unzipWith=Ms,s.update=fp,s.updateWith=lp,s.values=Or,s.valuesIn=cp,s.without=sh,s.words=su,s.wrap=id,s.xor=uh,s.xorBy=fh,s.xorWith=lh,s.zip=ch,s.zipObject=hh,s.zipObjectDeep=dh,s.zipWith=ph,s.entries=ru,s.entriesIn=iu,s.extend=eu,s.extendWith=Fi,Ga(s,s),s.add=cg,s.attempt=uu,s.camelCase=gp,s.capitalize=au,s.ceil=hg,s.clamp=hp,s.clone=od,s.cloneDeep=ud,s.cloneDeepWith=fd,s.cloneWith=sd,s.conformsTo=ld,s.deburr=ou,s.defaultTo=Hp,s.divide=dg,s.endsWith=vp,s.eq=mt,s.escape=yp,s.escapeRegExp=mp,s.every=Sh,s.find=Th,s.findIndex=Ds,s.findKey=Wd,s.findLast=Ch,s.findLastIndex=Is,s.findLastKey=zd,s.floor=pg,s.forEach=Ns,s.forEachRight=Bs,s.forIn=qd,s.forInRight=Gd,s.forOwn=Hd,s.forOwnRight=$d,s.get=Na,s.gt=cd,s.gte=hd,s.has=Zd,s.hasIn=Ba,s.head=Fs,s.identity=Qn,s.includes=Rh,s.indexOf=Cc,s.inRange=dp,s.invoke=Xd,s.isArguments=dr,s.isArray=ke,s.isArrayBuffer=dd,s.isArrayLike=Vn,s.isArrayLikeObject=_n,s.isBoolean=pd,s.isBuffer=nr,s.isDate=gd,s.isElement=vd,s.isEmpty=yd,s.isEqual=md,s.isEqualWith=wd,s.isError=Ma,s.isFinite=bd,s.isFunction=Lt,s.isInteger=Ks,s.isLength=Ii,s.isMap=Zs,s.isMatch=_d,s.isMatchWith=Ad,s.isNaN=xd,s.isNative=kd,s.isNil=Ed,s.isNull=Sd,s.isNumber=Js,s.isObject=pn,s.isObjectLike=mn,s.isPlainObject=$r,s.isRegExp=Ua,s.isSafeInteger=Td,s.isSet=Vs,s.isString=Ri,s.isSymbol=tt,s.isTypedArray=Cr,s.isUndefined=Cd,s.isWeakMap=Od,s.isWeakSet=Pd,s.join=Rc,s.kebabCase=wp,s.last=pt,s.lastIndexOf=Fc,s.lowerCase=bp,s.lowerFirst=_p,s.lt=Dd,s.lte=Id,s.max=gg,s.maxBy=vg,s.mean=yg,s.meanBy=mg,s.min=wg,s.minBy=bg,s.stubArray=$a,s.stubFalse=Ya,s.stubObject=ag,s.stubString=og,s.stubTrue=sg,s.multiply=_g,s.nth=Lc,s.noConflict=Xp,s.noop=Ha,s.now=Oi,s.pad=Ap,s.padEnd=xp,s.padStart=kp,s.parseInt=Sp,s.random=pp,s.reduce=Nh,s.reduceRight=Bh,s.repeat=Ep,s.replace=Tp,s.result=ip,s.round=Ag,s.runInContext=b,s.sample=zh,s.size=Hh,s.snakeCase=Cp,s.some=$h,s.sortedIndex=qc,s.sortedIndexBy=Gc,s.sortedIndexOf=Hc,s.sortedLastIndex=$c,s.sortedLastIndexBy=Yc,s.sortedLastIndexOf=Kc,s.startCase=Pp,s.startsWith=Dp,s.subtract=xg,s.sum=kg,s.sumBy=Sg,s.template=Ip,s.times=ug,s.toFinite=Mt,s.toInteger=Ee,s.toLength=Qs,s.toLower=Rp,s.toNumber=gt,s.toSafeInteger=Rd,s.toString=je,s.toUpper=Fp,s.trim=Lp,s.trimEnd=Mp,s.trimStart=Up,s.truncate=Np,s.unescape=Bp,s.uniqueId=lg,s.upperCase=Wp,s.upperFirst=Wa,s.each=Ns,s.eachRight=Bs,s.first=Fs,Ga(s,function(){var e={};return kt(s,function(n,t){en.call(s.prototype,t)||(e[t]=n)}),e}(),{chain:!1}),s.VERSION=me,ft(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){s[e].placeholder=s}),ft(["drop","take"],function(e,n){Ue.prototype[e]=function(t){t=t===l?1:Tn(Ee(t),0);var r=this.__filtered__&&!n?new Ue(this):this.clone();return r.__filtered__?r.__takeCount__=Nn(t,r.__takeCount__):r.__views__.push({size:Nn(t,cn),type:e+(r.__dir__<0?"Right":"")}),r},Ue.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),ft(["filter","map","takeWhile"],function(e,n){var t=n+1,r=t==nn||t==ze;Ue.prototype[e]=function(a){var u=this.clone();return u.__iteratees__.push({iteratee:de(a,3),type:t}),u.__filtered__=u.__filtered__||r,u}}),ft(["head","last"],function(e,n){var t="take"+(n?"Right":"");Ue.prototype[e]=function(){return this[t](1).value()[0]}}),ft(["initial","tail"],function(e,n){var t="drop"+(n?"":"Right");Ue.prototype[e]=function(){return this.__filtered__?new Ue(this):this[t](1)}}),Ue.prototype.compact=function(){return this.filter(Qn)},Ue.prototype.find=function(e){return this.filter(e).head()},Ue.prototype.findLast=function(e){return this.reverse().find(e)},Ue.prototype.invokeMap=Ie(function(e,n){return typeof e=="function"?new Ue(this):this.map(function(t){return Br(t,e,n)})}),Ue.prototype.reject=function(e){return this.filter(Di(de(e)))},Ue.prototype.slice=function(e,n){e=Ee(e);var t=this;return t.__filtered__&&(e>0||n<0)?new Ue(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==l&&(n=Ee(n),t=n<0?t.dropRight(-n):t.take(n-e)),t)},Ue.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ue.prototype.toArray=function(){return this.take(cn)},kt(Ue.prototype,function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),a=s[r?"take"+(n=="last"?"Right":""):n],u=r||/^find/.test(n);a&&(s.prototype[n]=function(){var h=this.__wrapped__,g=r?[1]:arguments,_=h instanceof Ue,D=g[0],I=_||ke(h),N=function(Re){var Be=a.apply(s,Zt([Re],g));return r&&K?Be[0]:Be};I&&t&&typeof D=="function"&&D.length!=1&&(_=I=!1);var K=this.__chain__,ie=!!this.__actions__.length,pe=u&&!K,Oe=_&&!ie;if(!u&&I){h=Oe?h:new Ue(this);var ge=e.apply(h,g);return ge.__actions__.push({func:Ti,args:[N],thisArg:l}),new ct(ge,K)}return pe&&Oe?e.apply(this,g):(ge=this.thru(N),pe?r?ge.value()[0]:ge.value():ge)})}),ft(["pop","push","shift","sort","splice","unshift"],function(e){var n=jr[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var a=arguments;if(r&&!this.__chain__){var u=this.value();return n.apply(ke(u)?u:[],a)}return this[t](function(h){return n.apply(ke(h)?h:[],a)})}}),kt(Ue.prototype,function(e,n){var t=s[n];if(t){var r=t.name+"";en.call(xr,r)||(xr[r]=[]),xr[r].push({name:n,func:t})}}),xr[bi(l,Fe).name]=[{name:"wrapper",func:l}],Ue.prototype.clone=Bf,Ue.prototype.reverse=Wf,Ue.prototype.value=zf,s.prototype.at=vh,s.prototype.chain=yh,s.prototype.commit=mh,s.prototype.next=wh,s.prototype.plant=_h,s.prototype.reverse=Ah,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=xh,s.prototype.first=s.prototype.head,Ir&&(s.prototype[Ir]=bh),s},br=mf();ar?((ar.exports=br)._=br,qi._=br):In._=br}).call(tr)}(Yr,Yr.exports);var mu=Yr.exports;function Kr(R){throw new Error('Could not dynamically require "'+R+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Za={exports:{}};(function(R,Q){(function(l){R.exports=l()})(function(){return function(){function l(me,oe,le){function F(Te,He){if(!oe[Te]){if(!me[Te]){var G=typeof Kr=="function"&&Kr;if(!He&&G)return G(Te,!0);if(ce)return ce(Te,!0);var P=new Error("Cannot find module '"+Te+"'");throw P.code="MODULE_NOT_FOUND",P}var M=oe[Te]={exports:{}};me[Te][0].call(M.exports,function(J){var Pe=me[Te][1][J];return F(Pe||J)},M,M.exports,l,me,oe,le)}return oe[Te].exports}for(var ce=typeof Kr=="function"&&Kr,Ge=0;Ge<le.length;Ge++)F(le[Ge]);return F}return l}()({1:[function(l,me,oe){const le=l("./utils"),F=function(){const ce=le.stringToArray,Ge=["Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen"],Te=["Zeroth","First","Second","Third","Fourth","Fifth","Sixth","Seventh","Eighth","Ninth","Tenth","Eleventh","Twelfth","Thirteenth","Fourteenth","Fifteenth","Sixteenth","Seventeenth","Eighteenth","Nineteenth"],He=["Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety","Hundred"],G=["Thousand","Million","Billion","Trillion"];function P(A,T){var x=function(H,q,C){var z="";if(H<=19)z=(q?" and ":"")+(C?Te[H]:Ge[H]);else if(H<100){const _e=Math.floor(H/10),Me=H%10;z=(q?" and ":"")+He[_e-2],Me>0?z+="-"+x(Me,!1,C):C&&(z=z.substring(0,z.length-1)+"ieth")}else if(H<1e3){const _e=Math.floor(H/100),Me=H%100;z=(q?", ":"")+Ge[_e]+" Hundred",Me>0?z+=x(Me,!0,C):C&&(z+="th")}else{var se=Math.floor(Math.log10(H)/3);se>G.length&&(se=G.length);const _e=Math.pow(10,se*3),Me=Math.floor(H/_e),ae=H-Me*_e;z=(q?", ":"")+x(Me,!1,!1)+" "+G[se-1],ae>0?z+=x(ae,!0,C):C&&(z+="th")}return z},B=x(A,!1,T);return B}const M={};Ge.forEach(function(A,T){M[A.toLowerCase()]=T}),Te.forEach(function(A,T){M[A.toLowerCase()]=T}),He.forEach(function(A,T){const x=A.toLowerCase();M[x]=(T+2)*10,M[x.substring(0,A.length-1)+"ieth"]=M[x]}),M.hundredth=100,G.forEach(function(A,T){const x=A.toLowerCase(),B=Math.pow(10,(T+1)*3);M[x]=B,M[x+"th"]=B});function J(A){const x=A.split(/,\s|\sand\s|[\s\\-]/).map(q=>M[q]);let B=[0];return x.forEach(q=>{if(q<100){let C=B.pop();C>=1e3&&(B.push(C),C=0),B.push(C+q)}else B.push(B.pop()*q)}),B.reduce((q,C)=>q+C,0)}const Pe=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],Ce={M:1e3,D:500,C:100,L:50,X:10,V:5,I:1};function Fe(A){for(var T=0;T<Pe.length;T++){const x=Pe[T];if(A>=x[0])return x[1]+Fe(A-x[0])}return""}function V(A){for(var T=0,x=1,B=A.length-1;B>=0;B--){const H=A[B],q=Ce[H];q<x?T-=q:(x=q,T+=q)}return T}function U(A,T){for(var x=[],B=T.charCodeAt(0);A>0;)x.unshift(String.fromCharCode((A-1)%26+B)),A=Math.floor((A-1)/26);return x.join("")}function re(A,T){for(var x=T.charCodeAt(0),B=0,H=0;H<A.length;H++)B+=(A.charCodeAt(A.length-H-1)-x+1)*Math.pow(26,H);return B}function Y(A,T){if(typeof A>"u")return;A=Math.floor(A);const x=We(T);return X(A,x)}const k={DECIMAL:"decimal",LETTERS:"letters",ROMAN:"roman",WORDS:"words",SEQUENCE:"sequence"},$={UPPER:"upper",LOWER:"lower",TITLE:"title"};function X(A,T){let x;const B=A<0;switch(A=Math.abs(A),T.primary){case k.LETTERS:x=U(A,T.case===$.UPPER?"A":"a");break;case k.ROMAN:x=Fe(A),T.case===$.UPPER&&(x=x.toUpperCase());break;case k.WORDS:x=P(A,T.ordinal),T.case===$.UPPER?x=x.toUpperCase():T.case===$.LOWER&&(x=x.toLowerCase());break;case k.DECIMAL:x=""+A;var H=T.mandatoryDigits-x.length;if(H>0){var q=new Array(H+1).join("0");x=q+x}if(T.zeroCode!==48&&(x=ce(x).map(_e=>String.fromCodePoint(_e.codePointAt(0)+T.zeroCode-48)).join("")),T.regular){const _e=Math.floor((x.length-1)/T.groupingSeparators.position);for(let Me=_e;Me>0;Me--){const ae=x.length-Me*T.groupingSeparators.position;x=x.substr(0,ae)+T.groupingSeparators.character+x.substr(ae)}}else T.groupingSeparators.reverse().forEach(_e=>{const Me=x.length-_e.position;x=x.substr(0,Me)+_e.character+x.substr(Me)});if(T.ordinal){var C={1:"st",2:"nd",3:"rd"},z=x[x.length-1],se=C[z];(!se||x.length>1&&x[x.length-2]==="1")&&(se="th"),x=x+se}break;case k.SEQUENCE:throw{code:"D3130",value:T.token}}return B&&(x="-"+x),x}const Se=[48,1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,42528,43216,43264,43472,43504,43600,44016,65296];function We(A){const T={type:"integer",primary:k.DECIMAL,case:$.LOWER,ordinal:!1};let x,B;const H=A.lastIndexOf(";");switch(H===-1?x=A:(x=A.substring(0,H),B=A.substring(H+1),B[0]==="o"&&(T.ordinal=!0)),x){case"A":T.case=$.UPPER;case"a":T.primary=k.LETTERS;break;case"I":T.case=$.UPPER;case"i":T.primary=k.ROMAN;break;case"W":T.case=$.UPPER,T.primary=k.WORDS;break;case"Ww":T.case=$.TITLE,T.primary=k.WORDS;break;case"w":T.primary=k.WORDS;break;default:{let q=null,C=0,z=0,se=[],_e=0;if(ce(x).map(ae=>ae.codePointAt(0)).reverse().forEach(ae=>{let ue=!1;for(let ye=0;ye<Se.length;ye++){const ne=Se[ye];if(ae>=ne&&ae<=ne+9){if(ue=!0,C++,_e++,q===null)q=ne;else if(ne!==q)throw{code:"D3131"};break}}ue||(ae===35?(_e++,z++):se.push({position:_e,character:String.fromCodePoint(ae)}))}),C>0){T.primary=k.DECIMAL,T.zeroCode=q,T.mandatoryDigits=C,T.optionalDigits=z;const ue=function(ye){if(ye.length===0)return 0;const ne=ye[0].character;for(let wn=1;wn<ye.length;wn++)if(ye[wn].character!==ne)return 0;const hn=ye.map(wn=>wn.position),Yn=function(wn,yn){return yn===0?wn:Yn(yn,wn%yn)},vn=hn.reduce(Yn);for(let wn=1;wn<=hn.length;wn++)if(hn.indexOf(wn*vn)===-1)return 0;return vn}(se);ue>0?(T.regular=!0,T.groupingSeparators={position:ue,character:se[0].character}):(T.regular=!1,T.groupingSeparators=se)}else T.primary=k.SEQUENCE,T.token=x}}return T}const $e={Y:"1",M:"1",D:"1",d:"1",F:"n",W:"1",w:"1",X:"1",x:"1",H:"1",h:"1",P:"n",m:"01",s:"01",f:"1",Z:"01:01",z:"01:01",C:"n",E:"n"};function Ke(A){var T=[];const x={type:"datetime",parts:T},B=function(ue,ye){if(ye>ue){let ne=A.substring(ue,ye);ne=ne.split("]]").join("]"),T.push({type:"literal",value:ne})}};for(var H=0,q=0;q<A.length;){if(A.charAt(q)==="["){if(A.charAt(q+1)==="["){B(H,q),T.push({type:"literal",value:"["}),q+=2,H=q;continue}if(B(H,q),H=q,q=A.indexOf("]",H),q===-1)throw{code:"D3135"};let ue=A.substring(H+1,q);ue=ue.split(/\s+/).join("");var C={type:"marker",component:ue.charAt(0)},z=ue.lastIndexOf(","),se;if(z!==-1){const ye=ue.substring(z+1),ne=ye.indexOf("-");let hn,Yn;const vn=function(yn){if(!(typeof yn>"u"||yn==="*"))return parseInt(yn)};ne===-1?hn=ye:(hn=ye.substring(0,ne),Yn=ye.substring(ne+1));const wn={min:vn(hn),max:vn(Yn)};C.width=wn,se=ue.substring(1,z)}else se=ue.substring(1);if(se.length===1)C.presentation1=se;else if(se.length>1){var _e=se.charAt(se.length-1);"atco".indexOf(_e)!==-1?(C.presentation2=_e,_e==="o"&&(C.ordinal=!0),C.presentation1=se.substring(0,se.length-1)):C.presentation1=se}else C.presentation1=$e[C.component];if(typeof C.presentation1>"u")throw{code:"D3132",value:C.component};if(C.presentation1[0]==="n")C.names=$.LOWER;else if(C.presentation1[0]==="N")C.presentation1[1]==="n"?C.names=$.TITLE:C.names=$.UPPER;else if("YMDdFWwXxHhmsf".indexOf(C.component)!==-1){var Me=C.presentation1;if(C.presentation2&&(Me+=";"+C.presentation2),C.integerFormat=We(Me),C.width&&C.width.min!==void 0&&C.integerFormat.mandatoryDigits<C.width.min&&(C.integerFormat.mandatoryDigits=C.width.min),C.component==="Y")if(C.n=-1,C.width&&C.width.max!==void 0)C.n=C.width.max,C.integerFormat.mandatoryDigits=C.n;else{var ae=C.integerFormat.mandatoryDigits+C.integerFormat.optionalDigits;ae>=2&&(C.n=ae)}const ye=T[T.length-1];ye&&ye.integerFormat&&(ye.integerFormat.parseWidth=ye.integerFormat.mandatoryDigits)}(C.component==="Z"||C.component==="z")&&(C.integerFormat=We(C.presentation1)),T.push(C),H=q+1}q++}return B(H,q),x}const Le=["","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],nn=["January","February","March","April","May","June","July","August","September","October","November","December"],Wn=1e3*60*60*24,ze=function(A){const T=Date.UTC(A.year,A.month);var x=new Date(T).getUTCDay();return x===0&&(x=7),x>4?T+(8-x)*Wn:T-(x-1)*Wn},we=function(A,T){return{year:A,month:T,nextMonth:function(){return T===11?we(A+1,0):we(A,T+1)},previousMonth:function(){return T===0?we(A-1,11):we(A,T-1)},nextYear:function(){return we(A+1,T)},previousYear:function(){return we(A-1,T)}}},gn=function(A,T){return(T-A)/(Wn*7)+1},ve=(A,T)=>{let x;switch(T){case"Y":x=A.getUTCFullYear();break;case"M":x=A.getUTCMonth()+1;break;case"D":x=A.getUTCDate();break;case"d":{const B=Date.UTC(A.getUTCFullYear(),A.getUTCMonth(),A.getUTCDate()),H=Date.UTC(A.getUTCFullYear(),0);x=(B-H)/Wn+1;break}case"F":x=A.getUTCDay(),x===0&&(x=7);break;case"W":{const B=we(A.getUTCFullYear(),0),H=ze(B),q=Date.UTC(B.year,A.getUTCMonth(),A.getUTCDate());let C=gn(H,q);if(C>52){const z=ze(B.nextYear());q>=z&&(C=1)}else if(C<1){const z=ze(B.previousYear());C=gn(z,q)}x=Math.floor(C);break}case"w":{const B=we(A.getUTCFullYear(),A.getUTCMonth()),H=ze(B),q=Date.UTC(B.year,B.month,A.getUTCDate());let C=gn(H,q);if(C>4){const z=ze(B.nextMonth());q>=z&&(C=1)}else if(C<1){const z=ze(B.previousMonth());C=gn(z,q)}x=Math.floor(C);break}case"X":{const B=we(A.getUTCFullYear(),0),H=ze(B),q=ze(B.nextYear()),C=A.getTime();C<H?x=B.year-1:C>=q?x=B.year+1:x=B.year;break}case"x":{const B=we(A.getUTCFullYear(),A.getUTCMonth()),H=ze(B),q=B.nextMonth(),C=ze(q),z=A.getTime();z<H?x=B.previousMonth().month+1:z>=C?x=q.month+1:x=B.month+1;break}case"H":x=A.getUTCHours();break;case"h":x=A.getUTCHours(),x=x%12,x===0&&(x=12);break;case"P":x=A.getUTCHours()>=12?"pm":"am";break;case"m":x=A.getUTCMinutes();break;case"s":x=A.getUTCSeconds();break;case"f":x=A.getUTCMilliseconds();break;case"Z":case"z":break;case"C":x="ISO";break;case"E":x="ISO";break}return x};let on=null;function cn(A,T,x){var B=0,H=0;if(typeof x<"u"){const Me=parseInt(x);B=Math.floor(Me/100),H=Me%100}var q=function(Me,ae){var ue=ve(Me,ae.component);if("YMDdFWwXxHhms".indexOf(ae.component)!==-1)if(ae.component==="Y"&&ae.n!==-1&&(ue=ue%Math.pow(10,ae.n)),ae.names){if(ae.component==="M"||ae.component==="x")ue=nn[ue-1];else if(ae.component==="F")ue=Le[ue];else throw{code:"D3133",value:ae.component};ae.names===$.UPPER?ue=ue.toUpperCase():ae.names===$.LOWER&&(ue=ue.toLowerCase()),ae.width&&ue.length>ae.width.max&&(ue=ue.substring(0,ae.width.max))}else ue=X(ue,ae.integerFormat);else if(ae.component==="f")ue=X(ue,ae.integerFormat);else if(ae.component==="Z"||ae.component==="z"){const ye=B*100+H;if(ae.integerFormat.regular)ue=X(ye,ae.integerFormat);else{const ne=ae.integerFormat.mandatoryDigits;if(ne===1||ne===2)ue=X(B,ae.integerFormat),H!==0&&(ue+=":"+Y(H,"00"));else if(ne===3||ne===4)ue=X(ye,ae.integerFormat);else throw{code:"D3134",value:ne}}ye>=0&&(ue="+"+ue),ae.component==="z"&&(ue="GMT"+ue),ye===0&&ae.presentation2==="t"&&(ue="Z")}else ae.component==="P"&&ae.names===$.UPPER&&(ue=ue.toUpperCase());return ue};let C;typeof T>"u"?(on===null&&(on=Ke("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001][Z01:01t]")),C=on):C=Ke(T);const z=(60*B+H)*60*1e3,se=new Date(A+z);let _e="";return C.parts.forEach(function(Me){Me.type==="literal"?_e+=Me.value:_e+=q(se,Me)}),_e}function d(A){var T={};if(A.type==="datetime")T.type="datetime",T.parts=A.parts.map(function(x){var B={};if(x.type==="literal")B.regex=x.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");else if(x.component==="Z"||x.component==="z"){let q;Array.isArray(x.integerFormat.groupingSeparators)||(q=x.integerFormat.groupingSeparators),B.regex="",x.component==="z"&&(B.regex="GMT"),B.regex+="[-+][0-9]+",q&&(B.regex+=q.character+"[0-9]+"),B.parse=function(C){x.component==="z"&&(C=C.substring(3));let z=0,se=0;return q?(z=Number.parseInt(C.substring(0,C.indexOf(q.character))),se=Number.parseInt(C.substring(C.indexOf(q.character)+1))):C.length-1<=2?z=Number.parseInt(C):(z=Number.parseInt(C.substring(0,3)),se=Number.parseInt(C.substring(3))),z*60+se}}else if(x.integerFormat)B=d(x.integerFormat);else{B.regex="[a-zA-Z]+";var H={};if(x.component==="M"||x.component==="x")nn.forEach(function(q,C){x.width&&x.width.max?H[q.substring(0,x.width.max)]=C+1:H[q]=C+1});else if(x.component==="F")Le.forEach(function(q,C){C>0&&(x.width&&x.width.max?H[q.substring(0,x.width.max)]=C:H[q]=C)});else if(x.component==="P")H={am:0,AM:0,pm:1,PM:1};else throw{code:"D3133",value:x.component};B.parse=function(q){return H[q]}}return B.component=x.component,B});else{T.type="integer";const x=A.case===$.UPPER;switch(A.primary){case k.LETTERS:T.regex=x?"[A-Z]+":"[a-z]+",T.parse=function(B){return re(B,x?"A":"a")};break;case k.ROMAN:T.regex=x?"[MDCLXVI]+":"[mdclxvi]+",T.parse=function(B){return V(x?B:B.toUpperCase())};break;case k.WORDS:T.regex="(?:"+Object.keys(M).concat("and","[\\-, ]").join("|")+")+",T.parse=function(B){return J(B.toLowerCase())};break;case k.DECIMAL:T.regex="[0-9]",A.parseWidth?T.regex+=`{${A.parseWidth}}`:T.regex+="+",A.ordinal&&(T.regex+="(?:th|st|nd|rd)"),T.parse=function(B){let H=B;return A.ordinal&&(H=B.substring(0,B.length-2)),A.regular?H=H.split(",").join(""):A.groupingSeparators.forEach(q=>{H=H.split(q.character).join("")}),A.zeroCode!==48&&(H=H.split("").map(q=>String.fromCodePoint(q.codePointAt(0)-A.zeroCode+48)).join("")),parseInt(H)};break;case k.SEQUENCE:throw{code:"D3130",value:A.token}}}return T}function m(A,T){if(typeof A>"u")return;const x=We(T);return d(x).parse(A)}function j(A,T){const x=Ke(T),B=d(x),H="^"+B.parts.map(se=>"("+se.regex+")").join("")+"$";var C=new RegExp(H,"i").exec(A);if(C!==null){const ne={};for(let Ve=1;Ve<C.length;Ve++){const f=B.parts[Ve-1];f.parse&&(ne[f.component]=f.parse(C[Ve]))}if(Object.getOwnPropertyNames(ne).length===0)return;let hn=0;const Yn=Ve=>{hn<<=1,hn+=Ve?1:0},vn=Ve=>!(~Ve&hn)&&!!(Ve&hn);"YXMxWwdD".split("").forEach(Ve=>Yn(ne[Ve]));const yn=!vn(161)&&vn(130),Fn=vn(84),at=!Fn&&vn(72);hn=0,"PHhmsf".split("").forEach(Ve=>Yn(ne[Ve]));const ot=!vn(23)&&vn(47),Tt=(yn?"YD":Fn?"XxwF":at?"XWF":"YMD")+(ot?"Phmsf":"Hmsf"),zn=this.environment.timestamp;let bt=!1,Kn=!1;if(Tt.split("").forEach(Ve=>{if(typeof ne[Ve]>"u")bt?(ne[Ve]="MDd".indexOf(Ve)!==-1?1:0,Kn=!0):ne[Ve]=ve(zn,Ve);else if(bt=!0,Kn)throw{code:"D3136"}}),ne.M>0?ne.M-=1:ne.M=0,yn){const Ve=Date.UTC(ne.Y,0),f=(ne.d-1)*1e3*60*60*24,p=new Date(Ve+f);ne.M=p.getUTCMonth(),ne.D=p.getUTCDate()}if(Fn)throw{code:"D3136"};if(at)throw{code:"D3136"};ot&&(ne.H=ne.h===12?0:ne.h,ne.P===1&&(ne.H+=12));var z=Date.UTC(ne.Y,ne.M,ne.D,ne.H,ne.m,ne.s,ne.f);return(ne.Z||ne.z)&&(z-=(ne.Z||ne.z)*60*1e3),z}}var be=new RegExp("^\\d{4}(-[01]\\d)*(-[0-3]\\d)*(T[0-2]\\d:[0-5]\\d:[0-5]\\d)*(\\.\\d+)?([+-][0-2]\\d:?[0-5]\\d|Z)?$");function Ze(A,T){if(!(typeof A>"u"))if(typeof T>"u"){if(!be.test(A))throw{stack:new Error().stack,code:"D3110",value:A};return Date.parse(A)}else return j.call(this,A,T)}function qe(A,T,x){if(!(typeof A>"u"))return cn.call(this,A,T,x)}return{formatInteger:Y,parseInteger:m,fromMillis:qe,toMillis:Ze}}();me.exports=F},{"./utils":6}],2:[function(l,me,oe){(function(le){(function(){var F=l("./utils");const ce=(()=>{var Ge=F.isNumeric,Te=F.isArrayOfStrings,He=F.isArrayOfNumbers,G=F.createSequence,P=F.isSequence,M=F.isFunction,J=F.isLambda,Pe=F.isPromise,Ce=F.getFunctionArity,Fe=F.isDeepEqual,V=F.stringToArray;function U(i){if(!(typeof i>"u")){var o=0;return i.forEach(function(c){o+=c}),o}}function re(i){return typeof i>"u"?0:i.length}function Y(i){if(!(typeof i>"u"||i.length===0))return Math.max.apply(Math,i)}function k(i){if(!(typeof i>"u"||i.length===0))return Math.min.apply(Math,i)}function $(i){if(!(typeof i>"u"||i.length===0)){var o=0;return i.forEach(function(c){o+=c}),o/i.length}}function X(i,o=!1){if(!(typeof i>"u")){var c;if(typeof i=="string")c=i;else if(M(i))c="";else{if(typeof i=="number"&&!isFinite(i))throw{code:"D3001",value:i,stack:new Error().stack};var w=o?2:0;Array.isArray(i)&&i.outerWrapper&&(i=i[0]),c=JSON.stringify(i,function(v,S){return typeof S<"u"&&S!==null&&S.toPrecision&&Ge(S)?Number(S.toPrecision(15)):S&&M(S)?"":S},w)}return c}}function Se(i,o,c){if(!(typeof i>"u")){var w=V(i),v=w.length;if(v+o<0&&(o=0),typeof c<"u"){if(c<=0)return"";var S=o>=0?o+c:v+o+c;return w.slice(o,S).join("")}return w.slice(o).join("")}}function We(i,o){if(!(typeof i>"u")){var c=i.indexOf(o);return c>-1?i.substr(0,c):i}}function $e(i,o){if(!(typeof i>"u")){var c=i.indexOf(o);return c>-1?i.substr(c+o.length):i}}function Ke(i){if(!(typeof i>"u"))return i.toLowerCase()}function Le(i){if(!(typeof i>"u"))return i.toUpperCase()}function nn(i){if(!(typeof i>"u"))return V(i).length}function Wn(i){if(!(typeof i>"u")){var o=i.replace(/[ \t\n\r]+/gm," ");return o.charAt(0)===" "&&(o=o.substring(1)),o.charAt(o.length-1)===" "&&(o=o.substring(0,o.length-1)),o}}function ze(i,o,c){if(!(typeof i>"u")){(typeof c>"u"||c.length===0)&&(c=" ");var w;o=Math.trunc(o);var v=Math.abs(o)-nn(i);if(v>0){var S=new Array(v+1).join(c);c.length>1&&(S=Se(S,0,v)),o>0?w=i+S:w=S+i}else w=i;return w}}async function we(i,o){var c=i.apply(this,[o]);if(Pe(c)&&(c=await c),c&&!(typeof c.start=="number"||c.end==="number"||Array.isArray(c.groups)||M(c.next)))throw{code:"T1010",stack:new Error().stack};return c}async function gn(i,o){if(!(typeof i>"u")){var c;if(typeof o=="string")c=i.indexOf(o)!==-1;else{var w=await we(o,i);c=typeof w<"u"}return c}}async function ve(i,o,c){if(!(typeof i>"u")){if(c<0)throw{stack:new Error().stack,value:c,code:"D3040",index:3};var w=G();if(typeof c>"u"||c>0){var v=0,S=await we(o,i);if(typeof S<"u")for(;typeof S<"u"&&(typeof c>"u"||v<c);)w.push({match:S.match,index:S.start,groups:S.groups}),S=await we(S.next),v++}return w}}async function on(i,o,c,w){if(!(typeof i>"u")){var v=this;if(o==="")throw{code:"D3010",stack:new Error().stack,value:o,index:2};if(w<0)throw{code:"D3011",stack:new Error().stack,value:w,index:4};var S;typeof c=="string"?S=function(Je){for(var xn="",Ne=0,fn=c.indexOf("$",Ne);fn!==-1&&Ne<c.length;){xn+=c.substring(Ne,fn),Ne=fn+1;var Zn=c.charAt(Ne);if(Zn==="$")xn+="$",Ne++;else if(Zn==="0")xn+=Je.match,Ne++;else{var Sn;if(Je.groups.length===0?Sn=1:Sn=Math.floor(Math.log(Je.groups.length)*Math.LOG10E)+1,fn=parseInt(c.substring(Ne,Ne+Sn),10),Sn>1&&fn>Je.groups.length&&(fn=parseInt(c.substring(Ne,Ne+Sn-1),10)),isNaN(fn))xn+="$";else{if(Je.groups.length>0){var zt=Je.groups[fn-1];typeof zt<"u"&&(xn+=zt)}Ne+=fn.toString().length}}fn=c.indexOf("$",Ne)}return xn+=c.substring(Ne),xn}:S=c;var W="",te=0;if(typeof w>"u"||w>0){var fe=0;if(typeof o=="string"){for(var Ye=i.indexOf(o,te);Ye!==-1&&(typeof w>"u"||fe<w);)W+=i.substring(te,Ye),W+=c,te=Ye+o.length,fe++,Ye=i.indexOf(o,te);W+=i.substring(te)}else{var De=await we(o,i);if(typeof De<"u"){for(;typeof De<"u"&&(typeof w>"u"||fe<w);){W+=i.substring(te,De.start);var Qe=S.apply(v,[De]);if(Pe(Qe)&&(Qe=await Qe),typeof Qe=="string")W+=Qe;else throw{code:"D3012",stack:new Error().stack,value:Qe};te=De.start+De.match.length,fe++,De=await we(De.next)}W+=i.substring(te)}else W=i}}else W=i;return W}}function cn(i){if(!(typeof i>"u")){var o=typeof window<"u"?window.btoa:function(c){return new le.Buffer.from(c,"binary").toString("base64")};return o(i)}}function d(i){if(!(typeof i>"u")){var o=typeof window<"u"?window.atob:function(c){return new le.Buffer.from(c,"base64").toString("binary")};return o(i)}}function m(i){if(!(typeof i>"u")){var o;try{o=encodeURIComponent(i)}catch{throw{code:"D3140",stack:new Error().stack,value:i,functionName:"encodeUrlComponent"}}return o}}function j(i){if(!(typeof i>"u")){var o;try{o=encodeURI(i)}catch{throw{code:"D3140",stack:new Error().stack,value:i,functionName:"encodeUrl"}}return o}}function be(i){if(!(typeof i>"u")){var o;try{o=decodeURIComponent(i)}catch{throw{code:"D3140",stack:new Error().stack,value:i,functionName:"decodeUrlComponent"}}return o}}function Ze(i){if(!(typeof i>"u")){var o;try{o=decodeURI(i)}catch{throw{code:"D3140",stack:new Error().stack,value:i,functionName:"decodeUrl"}}return o}}async function qe(i,o,c){if(!(typeof i>"u")){if(c<0)throw{code:"D3020",stack:new Error().stack,value:c,index:3};var w=[];if(typeof c>"u"||c>0)if(typeof o=="string")w=i.split(o,c);else{var v=0,S=await we(o,i);if(typeof S<"u"){for(var W=0;typeof S<"u"&&(typeof c>"u"||v<c);)w.push(i.substring(W,S.start)),W=S.end,S=await we(S.next),v++;(typeof c>"u"||v<c)&&w.push(i.substring(W))}else w.push(i)}return w}}function A(i,o){if(!(typeof i>"u"))return typeof o>"u"&&(o=""),i.join(o)}function T(i,o,c){if(!(typeof i>"u")){var w={"decimal-separator":".","grouping-separator":",","exponent-separator":"e",infinity:"Infinity","minus-sign":"-",NaN:"NaN",percent:"%","per-mille":"‰","zero-digit":"0",digit:"#","pattern-separator":";"},v=w;typeof c<"u"&&Object.keys(c).forEach(function(he){v[he]=c[he]});for(var S=[],W=v["zero-digit"].charCodeAt(0),te=W;te<W+10;te++)S.push(String.fromCharCode(te));var fe=S.concat([v["decimal-separator"],v["exponent-separator"],v["grouping-separator"],v.digit,v["pattern-separator"]]),Ye=o.split(v["pattern-separator"]);if(Ye.length>2)throw{code:"D3080",stack:new Error().stack};var De=function(he){var tn=function(){for(var bn,Un=0;Un<he.length;Un++)if(bn=he.charAt(Un),fe.indexOf(bn)!==-1&&bn!==v["exponent-separator"])return he.substring(0,Un)}(),On=function(){for(var bn,Un=he.length-1;Un>=0;Un--)if(bn=he.charAt(Un),fe.indexOf(bn)!==-1&&bn!==v["exponent-separator"])return he.substring(Un+1)}(),rn=he.substring(tn.length,he.length-On.length),Ln,At,Dn,xt,Mn=he.indexOf(v["exponent-separator"],tn.length);Mn===-1||Mn>he.length-On.length?(Ln=rn,At=void 0):(Ln=rn.substring(0,Mn),At=rn.substring(Mn+1));var qn=Ln.indexOf(v["decimal-separator"]);return qn===-1?(Dn=Ln,xt=On):(Dn=Ln.substring(0,qn),xt=Ln.substring(qn+1)),{prefix:tn,suffix:On,activePart:rn,mantissaPart:Ln,exponentPart:At,integerPart:Dn,fractionalPart:xt,subpicture:he}},Qe=function(he){var tn,On,rn=he.subpicture,Ln=rn.indexOf(v["decimal-separator"]);Ln!==rn.lastIndexOf(v["decimal-separator"])&&(tn="D3081"),rn.indexOf(v.percent)!==rn.lastIndexOf(v.percent)&&(tn="D3082"),rn.indexOf(v["per-mille"])!==rn.lastIndexOf(v["per-mille"])&&(tn="D3083"),rn.indexOf(v.percent)!==-1&&rn.indexOf(v["per-mille"])!==-1&&(tn="D3084");var At=!1;for(On=0;On<he.mantissaPart.length;On++){var Dn=he.mantissaPart.charAt(On);if(S.indexOf(Dn)!==-1||Dn===v.digit){At=!0;break}}At||(tn="D3085");var xt=he.activePart.split("").map(function(bn){return fe.indexOf(bn)===-1?"p":"a"}).join("");xt.indexOf("p")!==-1&&(tn="D3086"),Ln!==-1?(rn.charAt(Ln-1)===v["grouping-separator"]||rn.charAt(Ln+1)===v["grouping-separator"])&&(tn="D3087"):he.integerPart.charAt(he.integerPart.length-1)===v["grouping-separator"]&&(tn="D3088"),rn.indexOf(v["grouping-separator"]+v["grouping-separator"])!==-1&&(tn="D3089");var Mn=he.integerPart.indexOf(v.digit);Mn!==-1&&he.integerPart.substring(0,Mn).split("").filter(function(bn){return S.indexOf(bn)>-1}).length>0&&(tn="D3090"),Mn=he.fractionalPart.lastIndexOf(v.digit),Mn!==-1&&he.fractionalPart.substring(Mn).split("").filter(function(bn){return S.indexOf(bn)>-1}).length>0&&(tn="D3091");var qn=typeof he.exponentPart=="string";if(qn&&he.exponentPart.length>0&&(rn.indexOf(v.percent)!==-1||rn.indexOf(v["per-mille"])!==-1)&&(tn="D3092"),qn&&(he.exponentPart.length===0||he.exponentPart.split("").filter(function(bn){return S.indexOf(bn)===-1}).length>0)&&(tn="D3093"),tn)throw{code:tn,stack:new Error().stack}},Je=function(he){var tn=function(kn,gr){for(var Ht=[],st=kn.indexOf(v["grouping-separator"]);st!==-1;){var $t=(gr?kn.substring(0,st):kn.substring(st)).split("").filter(function(Yt){return S.indexOf(Yt)!==-1||Yt===v.digit}).length;Ht.push($t),st=he.integerPart.indexOf(v["grouping-separator"],st+1)}return Ht},On=tn(he.integerPart),rn=function(kn){if(kn.length===0)return 0;for(var gr=function($t,Yt){return Yt===0?$t:gr(Yt,$t%Yt)},Ht=kn.reduce(gr),st=1;st<=kn.length;st++)if(kn.indexOf(st*Ht)===-1)return 0;return Ht},Ln=rn(On),At=tn(he.fractionalPart,!0),Dn=he.integerPart.split("").filter(function(kn){return S.indexOf(kn)!==-1}).length,xt=Dn,Mn=he.fractionalPart.split(""),qn=Mn.filter(function(kn){return S.indexOf(kn)!==-1}).length,bn=Mn.filter(function(kn){return S.indexOf(kn)!==-1||kn===v.digit}).length,Un=typeof he.exponentPart=="string";Dn===0&&bn===0&&(Un?(qn=1,bn=1):Dn=1),Un&&Dn===0&&he.integerPart.indexOf(v.digit)!==-1&&(Dn=1),Dn===0&&qn===0&&(qn=1);var ir=0;return Un&&(ir=he.exponentPart.split("").filter(function(kn){return S.indexOf(kn)!==-1}).length),{integerPartGroupingPositions:On,regularGrouping:Ln,minimumIntegerPartSize:Dn,scalingFactor:xt,prefix:he.prefix,fractionalPartGroupingPositions:At,minimumFactionalPartSize:qn,maximumFactionalPartSize:bn,minimumExponentSize:ir,suffix:he.suffix,picture:he.subpicture}},xn=Ye.map(De);xn.forEach(Qe);var Ne=xn.map(Je),fn=v["minus-sign"],Zn=v["zero-digit"],Sn=v["decimal-separator"],zt=v["grouping-separator"];Ne.length===1&&(Ne.push(JSON.parse(JSON.stringify(Ne[0]))),Ne[1].prefix=fn+Ne[1].prefix);var dn;i>=0?dn=Ne[0]:dn=Ne[1];var qt;dn.picture.indexOf(v.percent)!==-1?qt=i*100:dn.picture.indexOf(v["per-mille"])!==-1?qt=i*1e3:qt=i;var Ct,Gt;if(dn.minimumExponentSize===0)Ct=qt;else{var Li=Math.pow(10,dn.scalingFactor),Mi=Math.pow(10,dn.scalingFactor-1);for(Ct=qt,Gt=0;Ct<Mi;)Ct*=10,Gt-=1;for(;Ct>Li;)Ct/=10,Gt+=1}var Ui=z(Ct,dn.maximumFactionalPartSize),Zr=function(he,tn){var On=Math.abs(he).toFixed(tn);return Zn!=="0"&&(On=On.split("").map(function(rn){return rn>="0"&&rn<="9"?S[rn.charCodeAt(0)-48]:rn}).join("")),On},Ae=Zr(Ui,dn.maximumFactionalPartSize),Cn=Ae.indexOf(".");for(Cn===-1?Ae=Ae+Sn:Ae=Ae.replace(".",Sn);Ae.charAt(0)===Zn;)Ae=Ae.substring(1);for(;Ae.charAt(Ae.length-1)===Zn;)Ae=Ae.substring(0,Ae.length-1);Cn=Ae.indexOf(Sn);var _t=dn.minimumIntegerPartSize-Cn,Jr=dn.minimumFactionalPartSize-(Ae.length-Cn-1);if(Ae=(_t>0?new Array(_t+1).join(Zn):"")+Ae,Ae=Ae+(Jr>0?new Array(Jr+1).join(Zn):""),Cn=Ae.indexOf(Sn),dn.regularGrouping>0)for(var Ni=Math.floor((Cn-1)/dn.regularGrouping),pr=1;pr<=Ni;pr++)Ae=[Ae.slice(0,Cn-pr*dn.regularGrouping),zt,Ae.slice(Cn-pr*dn.regularGrouping)].join("");else dn.integerPartGroupingPositions.forEach(function(he){Ae=[Ae.slice(0,Cn-he),zt,Ae.slice(Cn-he)].join(""),Cn++});if(Cn=Ae.indexOf(Sn),dn.fractionalPartGroupingPositions.forEach(function(he){Ae=[Ae.slice(0,he+Cn+1),zt,Ae.slice(he+Cn+1)].join("")}),Cn=Ae.indexOf(Sn),(dn.picture.indexOf(Sn)===-1||Cn===Ae.length-1)&&(Ae=Ae.substring(0,Ae.length-1)),typeof Gt<"u"){var rr=Zr(Gt,0);_t=dn.minimumExponentSize-rr.length,_t>0&&(rr=new Array(_t+1).join(Zn)+rr),Ae=Ae+v["exponent-separator"]+(Gt<0?fn:"")+rr}return Ae=dn.prefix+Ae+dn.suffix,Ae}}function x(i,o){if(!(typeof i>"u")){if(i=z(i),typeof o>"u"?o=10:o=z(o),o<2||o>36)throw{code:"D3100",stack:new Error().stack,value:o};var c=i.toString(o);return c}}function B(i){var o;if(!(typeof i>"u")){if(typeof i=="number")o=i;else if(typeof i=="string"&&/^-?[0-9]+(\.[0-9]+)?([Ee][-+]?[0-9]+)?$/.test(i)&&!isNaN(parseFloat(i))&&isFinite(i))o=parseFloat(i);else if(typeof i=="string"&&/^(0[xX][0-9A-Fa-f]+)|(0[oO][0-7]+)|(0[bB][0-1]+)$/.test(i))o=Number(i);else if(i===!0)o=1;else if(i===!1)o=0;else throw{code:"D3030",value:i,stack:new Error().stack,index:1};return o}}function H(i){var o;if(!(typeof i>"u"))return o=Math.abs(i),o}function q(i){var o;if(!(typeof i>"u"))return o=Math.floor(i),o}function C(i){var o;if(!(typeof i>"u"))return o=Math.ceil(i),o}function z(i,o){var c;if(!(typeof i>"u")){if(o){var w=i.toString().split("e");i=+(w[0]+"e"+(w[1]?+w[1]+o:o))}c=Math.round(i);var v=c-i;return Math.abs(v)===.5&&Math.abs(c%2)===1&&(c=c-1),o&&(w=c.toString().split("e"),c=+(w[0]+"e"+(w[1]?+w[1]-o:-o))),Object.is(c,-0)&&(c=0),c}}function se(i){var o;if(!(typeof i>"u")){if(i<0)throw{stack:new Error().stack,code:"D3060",index:1,value:i};return o=Math.sqrt(i),o}}function _e(i,o){var c;if(!(typeof i>"u")){if(c=Math.pow(i,o),!isFinite(c))throw{stack:new Error().stack,code:"D3061",index:1,value:i,exp:o};return c}}function Me(){return Math.random()}function ae(i){if(!(typeof i>"u")){var o=!1;if(Array.isArray(i)){if(i.length===1)o=ae(i[0]);else if(i.length>1){var c=i.filter(function(w){return ae(w)});o=c.length>0}}else typeof i=="string"?i.length>0&&(o=!0):Ge(i)?i!==0&&(o=!0):i!==null&&typeof i=="object"&&!M(i)?Object.keys(i).length>0&&(o=!0):typeof i=="boolean"&&i===!0&&(o=!0);return o}}function ue(i){if(!(typeof i>"u"))return!ae(i)}function ye(i,o,c,w){var v=[o],S=Ce(i);return S>=2&&v.push(c),S>=3&&v.push(w),v}async function ne(i,o){if(!(typeof i>"u")){for(var c=G(),w=0;w<i.length;w++){var v=ye(o,i[w],w,i),S=await o.apply(this,v);typeof S<"u"&&c.push(S)}return c}}async function hn(i,o){if(!(typeof i>"u")){for(var c=G(),w=0;w<i.length;w++){var v=i[w],S=ye(o,v,w,i),W=await o.apply(this,S);ae(W)&&c.push(v)}return c}}async function Yn(i,o){if(!(typeof i>"u")){for(var c=!1,w,v=0;v<i.length;v++){var S=i[v],W=!0;if(typeof o<"u"){var te=ye(o,S,v,i),fe=await o.apply(this,te);W=ae(fe)}if(W)if(!c)w=S,c=!0;else throw{stack:new Error().stack,code:"D3138",index:v}}if(!c)throw{stack:new Error().stack,code:"D3139"};return w}}function vn(){for(var i=[],o=Array.prototype.slice.call(arguments),c=Math.min.apply(Math,o.map(function(S){return Array.isArray(S)?S.length:0})),w=0;w<c;w++){var v=o.map(S=>S[w]);i.push(v)}return i}async function wn(i,o,c){if(!(typeof i>"u")){var w,v=Ce(o);if(v<2)throw{stack:new Error().stack,code:"D3050",index:1};var S;for(typeof c>"u"&&i.length>0?(w=i[0],S=1):(w=c,S=0);S<i.length;){var W=[w,i[S]];v>=3&&W.push(S),v>=4&&W.push(i),w=await o.apply(this,W),S++}return w}}function yn(i){var o=G();if(Array.isArray(i)){var c={};i.forEach(function(w){var v=yn(w);v.forEach(function(S){c[S]=!0})}),o=yn(c)}else i!==null&&typeof i=="object"&&!M(i)&&Object.keys(i).forEach(w=>o.push(w));return o}function Fn(i,o){var c;if(Array.isArray(i)){c=G();for(var w=0;w<i.length;w++){var v=Fn(i[w],o);typeof v<"u"&&(Array.isArray(v)?v.forEach(S=>c.push(S)):c.push(v))}}else i!==null&&typeof i=="object"&&!M(i)&&(c=i[o]);return c}function at(i,o){return typeof i>"u"?o:typeof o>"u"?i:(Array.isArray(i)||(i=G(i)),Array.isArray(o)||(o=[o]),i.concat(o))}function Bt(i){return!(typeof i>"u")}function ot(i){var o=G();if(Array.isArray(i))i.forEach(function(v){o=at(o,ot(v))});else if(i!==null&&typeof i=="object"&&!J(i))for(var c in i){var w={};w[c]=i[c],o.push(w)}else o=i;return o}function Z(i){if(!(typeof i>"u")){var o={};return i.forEach(function(c){for(var w in c)o[w]=c[w]}),o}}function Wt(i){if(!(typeof i>"u")){if(i.length<=1)return i;for(var o=i.length,c=new Array(o),w=0;w<o;w++)c[o-w-1]=i[w];return c}}async function Tt(i,o){var c=G();for(var w in i){var v=ye(o,i[w],w,i),S=await o.apply(this,v);typeof S<"u"&&c.push(S)}return c}function zn(i){throw{code:"D3137",stack:new Error().stack,message:i||"$error() function evaluated"}}function bt(i,o){if(!i)throw{code:"D3141",stack:new Error().stack,message:o||"$assert() statement failed"}}function Kn(i){if(i!==void 0)return i===null?"null":Ge(i)?"number":typeof i=="string"?"string":typeof i=="boolean"?"boolean":Array.isArray(i)?"array":M(i)?"function":"object"}async function Ve(i,o){if(!(typeof i>"u")){if(i.length<=1)return i;var c;if(typeof o>"u"){if(!He(i)&&!Te(i))throw{stack:new Error().stack,code:"D3070",index:1};c=async function(W,te){return W>te}}else c=o;var w=async function(W,te){var fe=async function(De,Qe,Je){Qe.length===0?Array.prototype.push.apply(De,Je):Je.length===0?Array.prototype.push.apply(De,Qe):await c(Qe[0],Je[0])?(De.push(Je[0]),await fe(De,Qe,Je.slice(1))):(De.push(Qe[0]),await fe(De,Qe.slice(1),Je))},Ye=[];return await fe(Ye,W,te),Ye},v=async function(W){if(!Array.isArray(W)||W.length<=1)return W;var te=Math.floor(W.length/2),fe=W.slice(0,te),Ye=W.slice(te);return fe=await v(fe),Ye=await v(Ye),await w(fe,Ye)},S=await v(i);return S}}function f(i){if(!(typeof i>"u")){if(i.length<=1)return i;for(var o=new Array(i.length),c=0;c<i.length;c++){var w=Math.floor(Math.random()*(c+1));c!==w&&(o[c]=o[w]),o[w]=i[c]}return o}}function p(i){if(!(typeof i>"u")){if(!Array.isArray(i)||i.length<=1)return i;for(var o=P(i)?G():[],c=0;c<i.length;c++){for(var w=i[c],v=!1,S=0;S<o.length;S++)if(Fe(w,o[S])){v=!0;break}v||o.push(w)}return o}}async function y(i,o){var c={};for(var w in i){var v=i[w],S=ye(o,v,w,i),W=await o.apply(this,S);ae(W)&&(c[w]=v)}return Object.keys(c).length===0&&(c=void 0),c}return{sum:U,count:re,max:Y,min:k,average:$,string:X,substring:Se,substringBefore:We,substringAfter:$e,lowercase:Ke,uppercase:Le,length:nn,trim:Wn,pad:ze,match:ve,contains:gn,replace:on,split:qe,join:A,formatNumber:T,formatBase:x,number:B,floor:q,ceil:C,round:z,abs:H,sqrt:se,power:_e,random:Me,boolean:ae,not:ue,map:ne,zip:vn,filter:hn,single:Yn,foldLeft:wn,sift:y,keys:yn,lookup:Fn,append:at,exists:Bt,spread:ot,merge:Z,reverse:Wt,each:Tt,error:zn,assert:bt,type:Kn,sort:Ve,shuffle:f,distinct:p,base64encode:cn,base64decode:d,encodeUrlComponent:m,encodeUrl:j,decodeUrlComponent:be,decodeUrl:Ze}})();me.exports=ce}).call(this)}).call(this,typeof tr<"u"?tr:typeof self<"u"?self:typeof window<"u"?window:{})},{"./utils":6}],3:[function(l,me,oe){var le=l("./datetime"),F=l("./functions"),ce=l("./utils"),Ge=l("./parser"),Te=l("./signature"),He=function(){var G=ce.isNumeric,P=ce.isArrayOfStrings,M=ce.isArrayOfNumbers,J=ce.createSequence,Pe=ce.isSequence,Ce=ce.isFunction,Fe=ce.isLambda,V=ce.isIterable,U=ce.isPromise,re=ce.getFunctionArity,Y=ce.isDeepEqual,k=zn(null);async function $(f,p,y){var i,o=y.lookup(Symbol.for("jsonata.__evaluate_entry"));switch(o&&await o(f,p,y),f.type){case"path":i=await X(f,p,y);break;case"binary":i=await nn(f,p,y);break;case"unary":i=await Wn(f,p,y);break;case"name":i=ze(f,p);break;case"string":case"number":case"value":i=we(f);break;case"wildcard":i=gn(f,p);break;case"descendant":i=on(f,p);break;case"parent":i=y.lookup(f.slot.label);break;case"condition":i=await q(f,p,y);break;case"block":i=await C(f,p,y);break;case"bind":i=await H(f,p,y);break;case"regex":i=z(f);break;case"function":i=await ye(f,p,y);break;case"variable":i=se(f,p,y);break;case"lambda":i=Yn(f,p,y);break;case"partial":i=await vn(f,p,y);break;case"apply":i=await ue(f,p,y);break;case"transform":i=Me(f,p,y);break}if(Object.prototype.hasOwnProperty.call(f,"predicate"))for(var c=0;c<f.predicate.length;c++)i=await Le(f.predicate[c].expr,i,y);f.type!=="path"&&Object.prototype.hasOwnProperty.call(f,"group")&&(i=await T(f.group,i,y));var w=y.lookup(Symbol.for("jsonata.__evaluate_exit"));return w&&await w(f,p,y,i),i&&Pe(i)&&!i.tupleStream&&(f.keepArray&&(i.keepSingleton=!0),i.length===0?i=void 0:i.length===1&&(i=i.keepSingleton?i:i[0])),i}async function X(f,p,y){var i;Array.isArray(p)&&f.steps[0].type!=="variable"?i=p:i=J(p);for(var o,c=!1,w=void 0,v=0;v<f.steps.length;v++){var S=f.steps[v];if(S.tuple&&(c=!0),v===0&&S.consarray?o=await $(S,i,y):c?w=await Ke(S,i,w,y):o=await We(S,i,y,v===f.steps.length-1),!c&&(typeof o>"u"||o.length===0))break;typeof S.focus>"u"&&(i=o)}if(c)if(f.tuple)o=w;else for(o=J(),v=0;v<w.length;v++)o.push(w[v]["@"]);return f.keepSingletonArray&&(Array.isArray(o)&&o.cons&&!o.sequence&&(o=J(o)),o.keepSingleton=!0),f.hasOwnProperty("group")&&(o=await T(f.group,c?w:o,y)),o}function Se(f,p){var y=zn(f);for(const i in p)y.bind(i,p[i]);return y}async function We(f,p,y,i){var o;if(f.type==="sort")return o=await _e(f,p,y),f.stages&&(o=await $e(f.stages,o,y)),o;o=J();for(var c=0;c<p.length;c++){var w=await $(f,p[c],y);if(f.stages)for(var v=0;v<f.stages.length;v++)w=await Le(f.stages[v].expr,w,y);typeof w<"u"&&o.push(w)}var S=J();return i&&o.length===1&&Array.isArray(o[0])&&!Pe(o[0])?S=o[0]:o.forEach(function(W){!Array.isArray(W)||W.cons?S.push(W):W.forEach(te=>S.push(te))}),S}async function $e(f,p,y){for(var i=p,o=0;o<f.length;o++){var c=f[o];switch(c.type){case"filter":i=await Le(c.expr,i,y);break;case"index":for(var w=0;w<i.length;w++){var v=i[w];v[c.value]=w}break}}return i}async function Ke(f,p,y,i){var o;if(f.type==="sort"){if(y)o=await _e(f,y,i);else{var c=await _e(f,p,i);o=J(),o.tupleStream=!0;for(var w=0;w<c.length;w++){var v={"@":c[w]};v[f.index]=w,o.push(v)}}return f.stages&&(o=await $e(f.stages,o,i)),o}o=J(),o.tupleStream=!0;var S=i;y===void 0&&(y=p.map(Ye=>({"@":Ye})));for(var W=0;W<y.length;W++){S=Se(i,y[W]);var te=await $(f,y[W]["@"],S);if(typeof te<"u"){Array.isArray(te)||(te=[te]);for(var fe=0;fe<te.length;fe++)v={},Object.assign(v,y[W]),te.tupleStream?Object.assign(v,te[fe]):(f.focus?(v[f.focus]=te[fe],v["@"]=y[W]["@"]):v["@"]=te[fe],f.index&&(v[f.index]=fe),f.ancestor&&(v[f.ancestor.label]=y[W]["@"])),o.push(v)}}return f.stages&&(o=await $e(f.stages,o,i)),o}async function Le(f,p,y){var i=J();if(p&&p.tupleStream&&(i.tupleStream=!0),Array.isArray(p)||(p=J(p)),f.type==="number"){var o=Math.floor(f.value);o<0&&(o=p.length+o);var c=await p[o];typeof c<"u"&&(Array.isArray(c)?i=c:i.push(c))}else for(o=0;o<p.length;o++){var c=p[o],w=c,v=y;p.tupleStream&&(w=c["@"],v=Se(y,c));var S=await $(f,w,v);G(S)&&(S=[S]),M(S)?S.forEach(function(te){var fe=Math.floor(te);fe<0&&(fe=p.length+fe),fe===o&&i.push(c)}):F.boolean(S)&&i.push(c)}return i}async function nn(f,p,y){var i,o=await $(f.lhs,p,y),c=f.value,w=async()=>await $(f.rhs,p,y);if(c==="and"||c==="or")try{return await Ze(o,w,c)}catch(S){throw S.position=f.position,S.token=c,S}var v=await w();try{switch(c){case"+":case"-":case"*":case"/":case"%":i=d(o,v,c);break;case"=":case"!=":i=m(o,v,c);break;case"<":case"<=":case">":case">=":i=j(o,v,c);break;case"&":i=A(o,v);break;case"..":i=B(o,v);break;case"in":i=be(o,v);break}}catch(S){throw S.position=f.position,S.token=c,S}return i}async function Wn(f,p,y){var i;switch(f.value){case"-":if(i=await $(f.expression,p,y),typeof i>"u")i=void 0;else if(G(i))i=-i;else throw{code:"D1002",stack:new Error().stack,position:f.position,token:f.value,value:i};break;case"[":i=[];let w=await Promise.all(f.expressions.map(async(v,S)=>(y.isParallelCall=S>0,[v,await $(v,p,y)])));for(let v of w){var[o,c]=v;typeof c<"u"&&(o.value==="["?i.push(c):i=F.append(i,c))}f.consarray&&Object.defineProperty(i,"cons",{enumerable:!1,configurable:!1,value:!0});break;case"{":i=await T(f,p,y);break}return i}function ze(f,p,y){return F.lookup(p,f.value)}function we(f){return f.value}function gn(f,p){var y=J();return Array.isArray(p)&&p.outerWrapper&&p.length>0&&(p=p[0]),p!==null&&typeof p=="object"&&Object.keys(p).forEach(function(i){var o=p[i];Array.isArray(o)?(o=ve(o),y=F.append(y,o)):y.push(o)}),y}function ve(f,p){return typeof p>"u"&&(p=[]),Array.isArray(f)?f.forEach(function(y){ve(y,p)}):p.push(f),p}function on(f,p){var y,i=J();return typeof p<"u"&&(cn(p,i),i.length===1?y=i[0]:y=i),y}function cn(f,p){Array.isArray(f)||p.push(f),Array.isArray(f)?f.forEach(function(y){cn(y,p)}):f!==null&&typeof f=="object"&&Object.keys(f).forEach(function(y){cn(f[y],p)})}function d(f,p,y){var i;if(typeof f<"u"&&!G(f))throw{code:"T2001",stack:new Error().stack,value:f};if(typeof p<"u"&&!G(p))throw{code:"T2002",stack:new Error().stack,value:p};if(typeof f>"u"||typeof p>"u")return i;switch(y){case"+":i=f+p;break;case"-":i=f-p;break;case"*":i=f*p;break;case"/":i=f/p;break;case"%":i=f%p;break}return i}function m(f,p,y){var i,o=typeof f,c=typeof p;if(o==="undefined"||c==="undefined")return!1;switch(y){case"=":i=Y(f,p);break;case"!=":i=!Y(f,p);break}return i}function j(f,p,y){var i,o=typeof f,c=typeof p,w=o==="undefined"||o==="string"||o==="number",v=c==="undefined"||c==="string"||c==="number";if(!w||!v)throw{code:"T2010",stack:new Error().stack,value:o==="string"||o==="number"?p:f};if(!(o==="undefined"||c==="undefined")){if(o!==c)throw{code:"T2009",stack:new Error().stack,value:f,value2:p};switch(y){case"<":i=f<p;break;case"<=":i=f<=p;break;case">":i=f>p;break;case">=":i=f>=p;break}return i}}function be(f,p){var y=!1;if(typeof f>"u"||typeof p>"u")return!1;Array.isArray(p)||(p=[p]);for(var i=0;i<p.length;i++)if(p[i]===f){y=!0;break}return y}async function Ze(f,p,y){var i,o=qe(f);switch(y){case"and":i=o&&qe(await p());break;case"or":i=o||qe(await p());break}return i}function qe(f){var p=F.boolean(f);return typeof p>"u"?!1:p}function A(f,p){var y,i="",o="";return typeof f<"u"&&(i=F.string(f)),typeof p<"u"&&(o=F.string(p)),y=i.concat(o),y}async function T(f,p,y){var i={},o={},c=!!(p&&p.tupleStream);Array.isArray(p)||(p=J(p)),p.length===0&&p.push(void 0);for(var w=0;w<p.length;w++)for(var v=p[w],S=c?Se(y,v):y,W=0;W<f.lhs.length;W++){var te=f.lhs[W],fe=await $(te[0],c?v["@"]:v,S);if(typeof fe!="string"&&fe!==void 0)throw{code:"T1003",stack:new Error().stack,position:f.position,value:fe};if(fe!==void 0){var Ye={data:v,exprIndex:W};if(o.hasOwnProperty(fe)){if(o[fe].exprIndex!==W)throw{code:"D1009",stack:new Error().stack,position:f.position,value:fe};o[fe].data=F.append(o[fe].data,v)}else o[fe]=Ye}}let De=await Promise.all(Object.keys(o).map(async(Je,xn)=>{let Ne=o[Je];var fn=Ne.data,Zn=y;if(c){var Sn=x(Ne.data);fn=Sn["@"],delete Sn["@"],Zn=Se(y,Sn)}return y.isParallelCall=xn>0,[Je,await $(f.lhs[Ne.exprIndex][1],fn,Zn)]}));for(let Je of De){var[fe,Qe]=await Je;typeof Qe<"u"&&(i[fe]=Qe)}return i}function x(f){if(!Array.isArray(f))return f;var p={};Object.assign(p,f[0]);for(var y=1;y<f.length;y++)for(const i in f[y])p[i]=F.append(p[i],f[y][i]);return p}function B(f,p){var y;if(typeof f<"u"&&!Number.isInteger(f))throw{code:"T2003",stack:new Error().stack,value:f};if(typeof p<"u"&&!Number.isInteger(p))throw{code:"T2004",stack:new Error().stack,value:p};if(typeof f>"u"||typeof p>"u"||f>p)return y;var i=p-f+1;if(i>1e7)throw{code:"D2014",stack:new Error().stack,value:i};y=new Array(i);for(var o=f,c=0;o<=p;o++,c++)y[c]=o;return y.sequence=!0,y}async function H(f,p,y){var i=await $(f.rhs,p,y);return y.bind(f.lhs.value,i),i}async function q(f,p,y){var i,o=await $(f.condition,p,y);return F.boolean(o)?i=await $(f.then,p,y):typeof f.else<"u"&&(i=await $(f.else,p,y)),i}async function C(f,p,y){for(var i,o=zn(y),c=0;c<f.expressions.length;c++)i=await $(f.expressions[c],p,o);return i}function z(f){var p=new Ve.RegexEngine(f.value),y=function(i,o){var c;p.lastIndex=o||0;var w=p.exec(i);if(w!==null){if(c={match:w[0],start:w.index,end:w.index+w[0].length,groups:[]},w.length>1)for(var v=1;v<w.length;v++)c.groups.push(w[v]);c.next=function(){if(!(p.lastIndex>=i.length)){var S=y(i,p.lastIndex);if(S&&S.match==="")throw{code:"D1004",stack:new Error().stack,position:f.position,value:f.value.source};return S}}}return c};return y}function se(f,p,y){var i;return f.value===""?i=p&&p.outerWrapper?p[0]:p:i=y.lookup(f.value),i}async function _e(f,p,y){var i,o=p,c=!!p.tupleStream,w=async function(S,W){for(var te=0,fe=0;te===0&&fe<f.terms.length;fe++){var Ye=f.terms[fe],De=S,Qe=y;c&&(De=S["@"],Qe=Se(y,S));var Je=await $(Ye.expression,De,Qe);De=W,Qe=y,c&&(De=W["@"],Qe=Se(y,W));var xn=await $(Ye.expression,De,Qe),Ne=typeof Je,fn=typeof xn;if(Ne==="undefined"){te=fn==="undefined"?0:1;continue}if(fn==="undefined"){te=-1;continue}if(!(Ne==="string"||Ne==="number")||!(fn==="string"||fn==="number"))throw{code:"T2008",stack:new Error().stack,position:f.position,value:Ne==="string"||Ne==="number"?xn:Je};if(Ne!==fn)throw{code:"T2007",stack:new Error().stack,position:f.position,value:Je,value2:xn};Je!==xn&&(Je<xn?te=-1:te=1,Ye.descending===!0&&(te=-te))}return te===1},v={environment:y,input:p};return i=await F.sort.apply(v,[o,w]),i}function Me(f,p,y){var i=async function(o){if(!(typeof o>"u")){var c=y.lookup("clone");if(!Ce(c))throw{code:"T2013",stack:new Error().stack,position:f.position};var w=await ne(c,[o],null,y),v=await $(f.pattern,w,y);if(typeof v<"u"){Array.isArray(v)||(v=[v]);for(var S=0;S<v.length;S++){var W=v[S];if(W&&(W.isPrototypeOf(w)||W instanceof Object.constructor))throw{code:"D1010",stack:new Error().stack,position:f.position};var te=await $(f.update,W,y),fe=typeof te;if(fe!=="undefined"){if(fe!=="object"||te===null||Array.isArray(te))throw{code:"T2011",stack:new Error().stack,position:f.update.position,value:te};for(var Ye in te)W[Ye]=te[Ye]}if(typeof f.delete<"u"){var De=await $(f.delete,W,y);if(typeof De<"u"){var Qe=De;if(Array.isArray(De)||(De=[De]),!P(De))throw{code:"T2012",stack:new Error().stack,position:f.delete.position,value:Qe};for(var Je=0;Je<De.length;Je++)typeof W=="object"&&W!==null&&delete W[De[Je]]}}}}return w}};return Z(i,"<(oa):o>")}var ae=Ge("function($f, $g) { function($x){ $g($f($x)) } }");async function ue(f,p,y){var i,o=await $(f.lhs,p,y);if(f.rhs.type==="function")i=await ye(f.rhs,p,y,{context:o});else{var c=await $(f.rhs,p,y);if(!Ce(c))throw{code:"T2006",stack:new Error().stack,position:f.position,value:c};if(Ce(o)){var w=await $(ae,null,y);i=await ne(w,[o,c],null,y)}else i=await ne(c,[o],null,y)}return i}async function ye(f,p,y,i){var o,c=await $(f.procedure,p,y);if(typeof c>"u"&&f.procedure.type==="path"&&y.lookup(f.procedure.steps[0].value))throw{code:"T1005",stack:new Error().stack,position:f.position,token:f.procedure.steps[0].value};var w=[];typeof i<"u"&&w.push(i.context);for(var v=0;v<f.arguments.length;v++){const W=await $(f.arguments[v],p,y);if(Ce(W)){const te=async function(...fe){return await ne(W,fe,null,y)};te.arity=re(W),w.push(te)}else w.push(W)}var S=f.procedure.type==="path"?f.procedure.steps[0].value:f.procedure.value;try{typeof c=="object"&&(c.token=S,c.position=f.position),o=await ne(c,w,p,y)}catch(W){throw W.position||(W.position=f.position),W.token||(W.token=S),W}return o}async function ne(f,p,y,i){var o;for(o=await hn(f,p,y,i);Fe(o)&&o.thunk===!0;){var c=await $(o.body.procedure,o.input,o.environment);o.body.procedure.type==="variable"&&(c.token=o.body.procedure.value),c.position=o.body.procedure.position;for(var w=[],v=0;v<o.body.arguments.length;v++)w.push(await $(o.body.arguments[v],o.input,o.environment));o=await hn(c,w,y,i)}return o}async function hn(f,p,y,i){var o;try{var c=p;if(f&&(c=wn(f.signature,p,y)),Fe(f))o=await yn(f,c);else if(f&&f._jsonata_function===!0){var w={environment:i,input:y};o=f.implementation.apply(w,c),V(o)&&(o=o.next().value),U(o)&&(o=await o)}else if(typeof f=="function")o=f.apply(y,c),U(o)&&(o=await o);else throw{code:"T1006",stack:new Error().stack}}catch(v){throw f&&(typeof v.token>"u"&&typeof f.token<"u"&&(v.token=f.token),v.position=f.position||v.position),v}return o}function Yn(f,p,y){var i={_jsonata_lambda:!0,input:p,environment:y,arguments:f.arguments,signature:f.signature,body:f.body};return f.thunk===!0&&(i.thunk=!0),i.apply=async function(o,c){return await ne(i,c,p,o?o.environment:y)},i}async function vn(f,p,y){for(var i,o=[],c=0;c<f.arguments.length;c++){var w=f.arguments[c];w.type==="operator"&&w.value==="?"?o.push(w):o.push(await $(w,p,y))}var v=await $(f.procedure,p,y);if(typeof v>"u"&&f.procedure.type==="path"&&y.lookup(f.procedure.steps[0].value))throw{code:"T1007",stack:new Error().stack,position:f.position,token:f.procedure.steps[0].value};if(Fe(v))i=Fn(v,o);else if(v&&v._jsonata_function===!0)i=at(v.implementation,o);else if(typeof v=="function")i=at(v,o);else throw{code:"T1008",stack:new Error().stack,position:f.position,token:f.procedure.type==="path"?f.procedure.steps[0].value:f.procedure.value};return i}function wn(f,p,y){if(typeof f>"u")return p;var i=f.validate(p,y);return i}async function yn(f,p){var y,i=zn(f.environment);return f.arguments.forEach(function(o,c){i.bind(o.value,p[c])}),typeof f.body=="function"?y=await Bt(f.body,i):y=await $(f.body,f.input,i),y}function Fn(f,p){var y=zn(f.environment),i=[];f.arguments.forEach(function(c,w){var v=p[w];v&&v.type==="operator"&&v.value==="?"?i.push(c):y.bind(c.value,v)});var o={_jsonata_lambda:!0,input:f.input,environment:y,arguments:i,body:f.body};return o}function at(f,p){var y=ot(f);y=y.map(function(w){return"$"+w.trim()});var i="function("+y.join(", ")+"){ _ }",o=Ge(i);o.body=f;var c=Fn(o,p);return c}async function Bt(f,p){var y=ot(f),i=y.map(function(w){return p.lookup(w.trim())}),o={environment:p},c=f.apply(o,i);return U(c)&&(c=await c),c}function ot(f){var p=f.toString(),y=/\(([^)]*)\)/.exec(p)[1],i=y.split(",");return i}function Z(f,p){var y={_jsonata_function:!0,implementation:f};return typeof p<"u"&&(y.signature=Te(p)),y}async function Wt(f,p){if(!(typeof f>"u")){var y=this.input;typeof p<"u"&&(y=p,Array.isArray(y)&&!Pe(y)&&(y=J(y),y.outerWrapper=!0));try{var i=Ge(f,!1)}catch(c){throw Kn(c),{stack:new Error().stack,code:"D3120",value:c.message,error:c}}try{var o=await $(i,y,this.environment)}catch(c){throw Kn(c),{stack:new Error().stack,code:"D3121",value:c.message,error:c}}return o}}function Tt(f){if(!(typeof f>"u"))return JSON.parse(F.string(f))}function zn(f){var p={};const y={bind:function(o,c){p[o]=c},lookup:function(o){var c;return p.hasOwnProperty(o)?c=p[o]:f&&(c=f.lookup(o)),c},timestamp:f?f.timestamp:null,async:f?f.async:!1,isParallelCall:f?f.isParallelCall:!1,global:f?f.global:{ancestry:[null]}};if(f){var i=f.lookup(Symbol.for("jsonata.__createFrame_push"));i&&i(f,y)}return y}k.bind("sum",Z(F.sum,"<a<n>:n>")),k.bind("count",Z(F.count,"<a:n>")),k.bind("max",Z(F.max,"<a<n>:n>")),k.bind("min",Z(F.min,"<a<n>:n>")),k.bind("average",Z(F.average,"<a<n>:n>")),k.bind("string",Z(F.string,"<x-b?:s>")),k.bind("substring",Z(F.substring,"<s-nn?:s>")),k.bind("substringBefore",Z(F.substringBefore,"<s-s:s>")),k.bind("substringAfter",Z(F.substringAfter,"<s-s:s>")),k.bind("lowercase",Z(F.lowercase,"<s-:s>")),k.bind("uppercase",Z(F.uppercase,"<s-:s>")),k.bind("length",Z(F.length,"<s-:n>")),k.bind("trim",Z(F.trim,"<s-:s>")),k.bind("pad",Z(F.pad,"<s-ns?:s>")),k.bind("match",Z(F.match,"<s-f<s:o>n?:a<o>>")),k.bind("contains",Z(F.contains,"<s-(sf):b>")),k.bind("replace",Z(F.replace,"<s-(sf)(sf)n?:s>")),k.bind("split",Z(F.split,"<s-(sf)n?:a<s>>")),k.bind("join",Z(F.join,"<a<s>s?:s>")),k.bind("formatNumber",Z(F.formatNumber,"<n-so?:s>")),k.bind("formatBase",Z(F.formatBase,"<n-n?:s>")),k.bind("formatInteger",Z(le.formatInteger,"<n-s:s>")),k.bind("parseInteger",Z(le.parseInteger,"<s-s:n>")),k.bind("number",Z(F.number,"<(nsb)-:n>")),k.bind("floor",Z(F.floor,"<n-:n>")),k.bind("ceil",Z(F.ceil,"<n-:n>")),k.bind("round",Z(F.round,"<n-n?:n>")),k.bind("abs",Z(F.abs,"<n-:n>")),k.bind("sqrt",Z(F.sqrt,"<n-:n>")),k.bind("power",Z(F.power,"<n-n:n>")),k.bind("random",Z(F.random,"<:n>")),k.bind("boolean",Z(F.boolean,"<x-:b>")),k.bind("not",Z(F.not,"<x-:b>")),k.bind("map",Z(F.map,"<af>")),k.bind("zip",Z(F.zip,"<a+>")),k.bind("filter",Z(F.filter,"<af>")),k.bind("single",Z(F.single,"<af?>")),k.bind("reduce",Z(F.foldLeft,"<afj?:j>")),k.bind("sift",Z(F.sift,"<o-f?:o>")),k.bind("keys",Z(F.keys,"<x-:a<s>>")),k.bind("lookup",Z(F.lookup,"<x-s:x>")),k.bind("append",Z(F.append,"<xx:a>")),k.bind("exists",Z(F.exists,"<x:b>")),k.bind("spread",Z(F.spread,"<x-:a<o>>")),k.bind("merge",Z(F.merge,"<a<o>:o>")),k.bind("reverse",Z(F.reverse,"<a:a>")),k.bind("each",Z(F.each,"<o-f:a>")),k.bind("error",Z(F.error,"<s?:x>")),k.bind("assert",Z(F.assert,"<bs?:x>")),k.bind("type",Z(F.type,"<x:s>")),k.bind("sort",Z(F.sort,"<af?:a>")),k.bind("shuffle",Z(F.shuffle,"<a:a>")),k.bind("distinct",Z(F.distinct,"<x:x>")),k.bind("base64encode",Z(F.base64encode,"<s-:s>")),k.bind("base64decode",Z(F.base64decode,"<s-:s>")),k.bind("encodeUrlComponent",Z(F.encodeUrlComponent,"<s-:s>")),k.bind("encodeUrl",Z(F.encodeUrl,"<s-:s>")),k.bind("decodeUrlComponent",Z(F.decodeUrlComponent,"<s-:s>")),k.bind("decodeUrl",Z(F.decodeUrl,"<s-:s>")),k.bind("eval",Z(Wt,"<sx?:x>")),k.bind("toMillis",Z(le.toMillis,"<s-s?:n>")),k.bind("fromMillis",Z(le.fromMillis,"<n-s?s?:s>")),k.bind("clone",Z(Tt,"<(oa)-:o>"));var bt={S0101:"String literal must be terminated by a matching quote",S0102:"Number out of range: {{token}}",S0103:"Unsupported escape sequence: \\{{token}}",S0104:"The escape sequence \\u must be followed by 4 hex digits",S0105:"Quoted property name must be terminated with a backquote (`)",S0106:"Comment has no closing tag",S0201:"Syntax error: {{token}}",S0202:"Expected {{value}}, got {{token}}",S0203:"Expected {{value}} before end of expression",S0204:"Unknown operator: {{token}}",S0205:"Unexpected token: {{token}}",S0206:"Unknown expression type: {{token}}",S0207:"Unexpected end of expression",S0208:"Parameter {{value}} of function definition must be a variable name (start with $)",S0209:"A predicate cannot follow a grouping expression in a step",S0210:"Each step can only have one grouping expression",S0211:"The symbol {{token}} cannot be used as a unary operator",S0212:"The left side of := must be a variable name (start with $)",S0213:"The literal value {{value}} cannot be used as a step within a path expression",S0214:"The right side of {{token}} must be a variable name (start with $)",S0215:"A context variable binding must precede any predicates on a step",S0216:"A context variable binding must precede the 'order-by' clause on a step",S0217:"The object representing the 'parent' cannot be derived from this expression",S0301:"Empty regular expressions are not allowed",S0302:"No terminating / in regular expression",S0402:"Choice groups containing parameterized types are not supported",S0401:"Type parameters can only be applied to functions and arrays",S0500:"Attempted to evaluate an expression containing syntax error(s)",T0410:"Argument {{index}} of function {{token}} does not match function signature",T0411:"Context value is not a compatible type with argument {{index}} of function {{token}}",T0412:"Argument {{index}} of function {{token}} must be an array of {{type}}",D1001:"Number out of range: {{value}}",D1002:"Cannot negate a non-numeric value: {{value}}",T1003:"Key in object structure must evaluate to a string; got: {{value}}",D1004:"Regular expression matches zero length string",T1005:"Attempted to invoke a non-function. Did you mean ${{{token}}}?",T1006:"Attempted to invoke a non-function",T1007:"Attempted to partially apply a non-function. Did you mean ${{{token}}}?",T1008:"Attempted to partially apply a non-function",D1009:"Multiple key definitions evaluate to same key: {{value}}",D1010:"Attempted to access the Javascript object prototype",T1010:"The matcher function argument passed to function {{token}} does not return the correct object structure",T2001:"The left side of the {{token}} operator must evaluate to a number",T2002:"The right side of the {{token}} operator must evaluate to a number",T2003:"The left side of the range operator (..) must evaluate to an integer",T2004:"The right side of the range operator (..) must evaluate to an integer",D2005:"The left side of := must be a variable name (start with $)",T2006:"The right side of the function application operator ~> must be a function",T2007:"Type mismatch when comparing values {{value}} and {{value2}} in order-by clause",T2008:"The expressions within an order-by clause must evaluate to numeric or string values",T2009:"The values {{value}} and {{value2}} either side of operator {{token}} must be of the same data type",T2010:"The expressions either side of operator {{token}} must evaluate to numeric or string values",T2011:"The insert/update clause of the transform expression must evaluate to an object: {{value}}",T2012:"The delete clause of the transform expression must evaluate to a string or array of strings: {{value}}",T2013:"The transform expression clones the input object using the $clone() function. This has been overridden in the current scope by a non-function.",D2014:"The size of the sequence allocated by the range operator (..) must not exceed 1e6. Attempted to allocate {{value}}.",D3001:"Attempting to invoke string function on Infinity or NaN",D3010:"Second argument of replace function cannot be an empty string",D3011:"Fourth argument of replace function must evaluate to a positive number",D3012:"Attempted to replace a matched string with a non-string value",D3020:"Third argument of split function must evaluate to a positive number",D3030:"Unable to cast value to a number: {{value}}",D3040:"Third argument of match function must evaluate to a positive number",D3050:"The second argument of reduce function must be a function with at least two arguments",D3060:"The sqrt function cannot be applied to a negative number: {{value}}",D3061:"The power function has resulted in a value that cannot be represented as a JSON number: base={{value}}, exponent={{exp}}",D3070:"The single argument form of the sort function can only be applied to an array of strings or an array of numbers. Use the second argument to specify a comparison function",D3080:"The picture string must only contain a maximum of two sub-pictures",D3081:"The sub-picture must not contain more than one instance of the 'decimal-separator' character",D3082:"The sub-picture must not contain more than one instance of the 'percent' character",D3083:"The sub-picture must not contain more than one instance of the 'per-mille' character",D3084:"The sub-picture must not contain both a 'percent' and a 'per-mille' character",D3085:"The mantissa part of a sub-picture must contain at least one character that is either an 'optional digit character' or a member of the 'decimal digit family'",D3086:"The sub-picture must not contain a passive character that is preceded by an active character and that is followed by another active character",D3087:"The sub-picture must not contain a 'grouping-separator' character that appears adjacent to a 'decimal-separator' character",D3088:"The sub-picture must not contain a 'grouping-separator' at the end of the integer part",D3089:"The sub-picture must not contain two adjacent instances of the 'grouping-separator' character",D3090:"The integer part of the sub-picture must not contain a member of the 'decimal digit family' that is followed by an instance of the 'optional digit character'",D3091:"The fractional part of the sub-picture must not contain an instance of the 'optional digit character' that is followed by a member of the 'decimal digit family'",D3092:"A sub-picture that contains a 'percent' or 'per-mille' character must not contain a character treated as an 'exponent-separator'",D3093:"The exponent part of the sub-picture must comprise only of one or more characters that are members of the 'decimal digit family'",D3100:"The radix of the formatBase function must be between 2 and 36. It was given {{value}}",D3110:"The argument of the toMillis function must be an ISO 8601 formatted timestamp. Given {{value}}",D3120:"Syntax error in expression passed to function eval: {{value}}",D3121:"Dynamic error evaluating the expression passed to function eval: {{value}}",D3130:"Formatting or parsing an integer as a sequence starting with {{value}} is not supported by this implementation",D3131:"In a decimal digit pattern, all digits must be from the same decimal group",D3132:"Unknown component specifier {{value}} in date/time picture string",D3133:"The 'name' modifier can only be applied to months and days in the date/time picture string, not {{value}}",D3134:"The timezone integer format specifier cannot have more than four digits",D3135:"No matching closing bracket ']' in date/time picture string",D3136:"The date/time picture string is missing specifiers required to parse the timestamp",D3137:"{{{message}}}",D3138:"The $single() function expected exactly 1 matching result. Instead it matched more.",D3139:"The $single() function expected exactly 1 matching result. Instead it matched 0.",D3140:"Malformed URL passed to ${{{functionName}}}(): {{value}}",D3141:"{{{message}}}"};function Kn(f){var p=bt[f.code];if(typeof p<"u"){var y=p.replace(/\{\{\{([^}]+)}}}/g,function(){return f[arguments[1]]});y=y.replace(/\{\{([^}]+)}}/g,function(){return JSON.stringify(f[arguments[1]])}),f.message=y}}function Ve(f,p){var y,i;try{y=Ge(f,p&&p.recover),i=y.errors,delete y.errors}catch(w){throw Kn(w),w}var o=zn(k),c=new Date;return o.bind("now",Z(function(w,v){return le.fromMillis(c.getTime(),w,v)},"<s?s?:s>")),o.bind("millis",Z(function(){return c.getTime()},"<:n>")),p&&p.RegexEngine?Ve.RegexEngine=p.RegexEngine:Ve.RegexEngine=RegExp,{evaluate:async function(w,v,S){if(typeof i<"u"){var W={code:"S0500",position:0};throw Kn(W),W}if(typeof v<"u"){var te;te=zn(o);for(var fe in v)te.bind(fe,v[fe])}else te=o;te.bind("$",w),c=new Date,te.timestamp=c,Array.isArray(w)&&!Pe(w)&&(w=J(w),w.outerWrapper=!0);var Ye;try{return Ye=await $(y,w,te),typeof S=="function"&&S(null,Ye),Ye}catch(De){throw Kn(De),De}},assign:function(w,v){o.bind(w,v)},registerFunction:function(w,v,S){var W=Z(v,S);o.bind(w,W)},ast:function(){return y},errors:function(){return i}}}return Ve.parser=Ge,Ve}();me.exports=He},{"./datetime":1,"./functions":2,"./parser":4,"./signature":5,"./utils":6}],4:[function(l,me,oe){var le=l("./signature");const F=(()=>{var ce={".":75,"[":80,"]":0,"{":70,"}":0,"(":80,")":0,",":0,"@":80,"#":80,";":80,":":80,"?":20,"+":50,"-":50,"*":60,"/":60,"%":60,"|":20,"=":40,"<":40,">":40,"^":40,"**":60,"..":20,":=":10,"!=":40,"<=":40,">=":40,"~>":40,"?:":40,"??":40,and:30,or:25,in:40,"&":50,"!":0,"~":0},Ge={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
29
29
|
`,r:"\r",t:" "},Te=function(G){var P=0,M=G.length,J=function(Fe,V){var U={type:Fe,value:V,position:P};return U},Pe=function(){for(var Fe=P,V=0,U,re,Y=function($){if(G.charAt($)==="/"&&V===0){for(var X=0;G.charAt($-(X+1))==="\\";)X++;if(X%2===0)return!0}return!1};P<M;){var k=G.charAt(P);if(Y(P)){if(U=G.substring(Fe,P),U==="")throw{code:"S0301",stack:new Error().stack,position:P};for(P++,k=G.charAt(P),Fe=P;k==="i"||k==="m";)P++,k=G.charAt(P);return re=G.substring(Fe,P)+"g",new RegExp(U,re)}(k==="("||k==="["||k==="{")&&G.charAt(P-1)!=="\\"&&V++,(k===")"||k==="]"||k==="}")&&G.charAt(P-1)!=="\\"&&V--,P++}throw{code:"S0302",stack:new Error().stack,position:P}},Ce=function(Fe){if(P>=M)return null;for(var V=G.charAt(P);P<M&&`
|
|
30
30
|
\r\v`.indexOf(V)>-1;)P++,V=G.charAt(P);if(V==="/"&&G.charAt(P+1)==="*"){var U=P;for(P+=2,V=G.charAt(P);!(V==="*"&&G.charAt(P+1)==="/");)if(V=G.charAt(++P),P>=M)throw{code:"S0106",stack:new Error().stack,position:U};return P+=2,V=G.charAt(P),Ce(Fe)}if(Fe!==!0&&V==="/")return P++,J("regex",Pe());if(V==="."&&G.charAt(P+1)===".")return P+=2,J("operator","..");if(V===":"&&G.charAt(P+1)==="=")return P+=2,J("operator",":=");if(V==="!"&&G.charAt(P+1)==="=")return P+=2,J("operator","!=");if(V===">"&&G.charAt(P+1)==="=")return P+=2,J("operator",">=");if(V==="<"&&G.charAt(P+1)==="=")return P+=2,J("operator","<=");if(V==="*"&&G.charAt(P+1)==="*")return P+=2,J("operator","**");if(V==="~"&&G.charAt(P+1)===">")return P+=2,J("operator","~>");if(V==="?"&&G.charAt(P+1)===":")return P+=2,J("operator","?:");if(V==="?"&&G.charAt(P+1)==="?")return P+=2,J("operator","??");if(Object.prototype.hasOwnProperty.call(ce,V))return P++,J("operator",V);if(V==='"'||V==="'"){var re=V;P++;for(var Y="";P<M;){if(V=G.charAt(P),V==="\\")if(P++,V=G.charAt(P),Object.prototype.hasOwnProperty.call(Ge,V))Y+=Ge[V];else if(V==="u"){var k=G.substr(P+1,4);if(/^[0-9a-fA-F]+$/.test(k)){var $=parseInt(k,16);Y+=String.fromCharCode($),P+=4}else throw{code:"S0104",stack:new Error().stack,position:P}}else throw{code:"S0103",stack:new Error().stack,position:P,token:V};else{if(V===re)return P++,J("string",Y);Y+=V}P++}throw{code:"S0101",stack:new Error().stack,position:P}}var X=/^-?(0|([1-9][0-9]*))(\.[0-9]+)?([Ee][-+]?[0-9]+)?/,Se=X.exec(G.substring(P));if(Se!==null){var We=parseFloat(Se[0]);if(!isNaN(We)&&isFinite(We))return P+=Se[0].length,J("number",We);throw{code:"S0102",stack:new Error().stack,position:P,token:Se[0]}}var $e;if(V==="`"){P++;var Ke=G.indexOf("`",P);if(Ke!==-1)return $e=G.substring(P,Ke),P=Ke+1,J("name",$e);throw P=M,{code:"S0105",stack:new Error().stack,position:P}}for(var Le=P,nn;;)if(nn=G.charAt(Le),Le===M||`
|
|
31
|
-
\r\v`.indexOf(nn)>-1||Object.prototype.hasOwnProperty.call(ce,nn)){if(G.charAt(P)==="$")return $e=G.substring(P+1,Le),P=Le,J("variable",$e);switch($e=G.substring(P,Le),P=Le,$e){case"or":case"in":case"and":return J("operator",$e);case"true":return J("value",!0);case"false":return J("value",!1);case"null":return J("value",null);default:return P===M&&$e===""?null:J("name",$e)}}else Le++};return Ce},He=function(G,P){var M,J,Pe={},Ce=[],Fe=function(){var d=[];M.id!=="(end)"&&d.push({type:M.type,value:M.value,position:M.position});for(var m=J();m!==null;)d.push(m),m=J();return d},V={nud:function(){var d={code:"S0211",token:this.value,position:this.position};if(P)return d.remaining=Fe(),d.type="error",Ce.push(d),d;throw d.stack=new Error().stack,d}},U=function(d,m){var j=Pe[d];return m=m||0,j?m>=j.lbp&&(j.lbp=m):(j=Object.create(V),j.id=j.value=d,j.lbp=m,Pe[d]=j),j},re=function(d){if(P){d.remaining=Fe(),Ce.push(d);var m=Pe["(error)"];return M=Object.create(m),M.error=d,M.type="(error)",M}else throw d.stack=new Error().stack,d},Y=function(d,m){if(d&&M.id!==d){var j;M.id==="(end)"?j="S0203":j="S0202";var be={code:j,position:M.position,token:M.value,value:d};return re(be)}var Ze=J(m);if(Ze===null)return M=Pe["(end)"],M.position=G.length,M;var qe=Ze.value,A=Ze.type,T;switch(A){case"name":case"variable":T=Pe["(name)"];break;case"operator":if(T=Pe[qe],!T)return re({code:"S0204",stack:new Error().stack,position:Ze.position,token:qe});break;case"string":case"number":case"value":T=Pe["(literal)"];break;case"regex":A="regex",T=Pe["(regex)"];break;default:return re({code:"S0205",stack:new Error().stack,position:Ze.position,token:qe})}return M=Object.create(T),M.value=qe,M.type=A,M.position=Ze.position,M},k=function(d){var m,j=M;for(Y(null,!0),m=j.nud();d<M.lbp;)j=M,Y(),m=j.led(m);return m},$=function(d){var m=U(d,0);m.nud=function(){return this}},X=function(d,m,j){var be=m||ce[d],Ze=U(d,be);return Ze.led=j||function(qe){return this.lhs=qe,this.rhs=k(be),this.type="binary",this},Ze},Se=function(d,m,j){var be=U(d,m);return be.led=j,be},We=function(d,m){var j=U(d);return j.nud=m||function(){return this.expression=k(70),this.type="unary",this},j};$("(end)"),$("(name)"),$("(literal)"),$("(regex)"),U(":"),U(";"),U(","),U(")"),U("]"),U("}"),U(".."),X("."),X("+"),X("-"),X("*"),X("/"),X("%"),X("="),X("<"),X(">"),X("!="),X("<="),X(">="),X("&"),X("and"),X("or"),X("in"),$("and"),$("or"),$("in"),We("-"),X("~>"),X("??",ce["??"],function(d){return this.type="condition",this.condition={type:"function",value:"(",procedure:{type:"variable",value:"exists"},arguments:[d]},this.then=d,this.else=k(0),this}),Se("(error)",10,function(d){return this.lhs=d,this.error=M.error,this.remaining=Fe(),this.type="error",this}),We("*",function(){return this.type="wildcard",this}),We("**",function(){return this.type="descendant",this}),We("%",function(){return this.type="parent",this}),X("(",ce["("],function(d){if(this.procedure=d,this.type="function",this.arguments=[],M.id!==")")for(;M.type==="operator"&&M.id==="?"?(this.type="partial",this.arguments.push(M),Y("?")):this.arguments.push(k(0)),M.id===",";)Y(",");if(Y(")",!0),d.type==="name"&&(d.value==="function"||d.value==="λ")){if(this.arguments.forEach(function(qe,A){if(qe.type!=="variable")return re({code:"S0208",stack:new Error().stack,position:qe.position,token:qe.value,value:A+1})}),this.type="lambda",M.id==="<"){for(var m=M.position,j=1,be="<";j>0&&M.id!=="{"&&M.id!=="(end)";){var Ze=Y();Ze.id===">"?j--:Ze.id==="<"&&j++,be+=Ze.value}Y(">");try{this.signature=le(be)}catch(qe){return qe.position=m+qe.offset,re(qe)}}Y("{"),this.body=k(0),Y("}")}return this}),We("(",function(){for(var d=[];M.id!==")"&&(d.push(k(0)),M.id===";");)Y(";");return Y(")",!0),this.type="block",this.expressions=d,this}),We("[",function(){var d=[];if(M.id!=="]")for(;;){var m=k(0);if(M.id===".."){var j={type:"binary",value:"..",position:M.position,lhs:m};Y(".."),j.rhs=k(0),m=j}if(d.push(m),M.id!==",")break;Y(",")}return Y("]",!0),this.expressions=d,this.type="unary",this}),X("[",ce["["],function(d){if(M.id==="]"){for(var m=d;m&&m.type==="binary"&&m.value==="[";)m=m.lhs;return m.keepArray=!0,Y("]"),d}else return this.lhs=d,this.rhs=k(ce["]"]),this.type="binary",Y("]",!0),this}),X("^",ce["^"],function(d){Y("(");for(var m=[];;){var j={descending:!1};if(M.id==="<"?Y("<"):M.id===">"&&(j.descending=!0,Y(">")),j.expression=k(0),m.push(j),M.id!==",")break;Y(",")}return Y(")"),this.lhs=d,this.rhs=m,this.type="binary",this});var $e=function(d){var m=[];if(M.id!=="}")for(;;){var j=k(0);Y(":");var be=k(0);if(m.push([j,be]),M.id!==",")break;Y(",")}return Y("}",!0),typeof d>"u"?(this.lhs=m,this.type="unary"):(this.lhs=d,this.rhs=m,this.type="binary"),this};We("{",$e),X("{",ce["{"],$e),Se(":=",ce[":="],function(d){return d.type!=="variable"?re({code:"S0212",stack:new Error().stack,position:d.position,token:d.value}):(this.lhs=d,this.rhs=k(ce[":="]-1),this.type="binary",this)}),X("@",ce["@"],function(d){return this.lhs=d,this.rhs=k(ce["@"]),this.rhs.type!=="variable"?re({code:"S0214",stack:new Error().stack,position:this.rhs.position,token:"@"}):(this.type="binary",this)}),X("#",ce["#"],function(d){return this.lhs=d,this.rhs=k(ce["#"]),this.rhs.type!=="variable"?re({code:"S0214",stack:new Error().stack,position:this.rhs.position,token:"#"}):(this.type="binary",this)}),X("?",ce["?"],function(d){return this.type="condition",this.condition=d,this.then=k(0),M.id===":"&&(Y(":"),this.else=k(0)),this}),X("?:",ce["?:"],function(d){return this.type="condition",this.condition=d,this.then=d,this.else=k(0),this}),We("|",function(){return this.type="transform",this.pattern=k(0),Y("|"),this.update=k(0),M.id===","&&(Y(","),this.delete=k(0)),Y("|"),this});var Ke=function(d){var m;if(d.type==="function"&&!d.predicate){var j={type:"lambda",thunk:!0,arguments:[],position:d.position};j.body=d,m=j}else if(d.type==="condition")d.then=Ke(d.then),typeof d.else<"u"&&(d.else=Ke(d.else)),m=d;else if(d.type==="block"){var be=d.expressions.length;be>0&&(d.expressions[be-1]=Ke(d.expressions[be-1])),m=d}else m=d;return m},Le=0,nn=0,Wn=[],ze=function(d,m){switch(d.type){case"name":case"wildcard":m.level--,m.level===0&&(typeof d.ancestor>"u"||(Wn[m.index].slot.label=d.ancestor.label),d.ancestor=m,d.tuple=!0);break;case"parent":m.level++;break;case"block":d.expressions.length>0&&(d.tuple=!0,m=ze(d.expressions[d.expressions.length-1],m));break;case"path":d.tuple=!0;var j=d.steps.length-1;for(m=ze(d.steps[j--],m);m.level>0&&j>=0;)m=ze(d.steps[j--],m);break;default:throw{code:"S0217",token:d.type,position:d.position}}return m},we=function(d,m){if(typeof m.seekingParent<"u"||m.type==="parent"){var j=typeof m.seekingParent<"u"?m.seekingParent:[];m.type==="parent"&&j.push(m.slot),typeof d.seekingParent>"u"?d.seekingParent=j:Array.prototype.push.apply(d.seekingParent,j)}},gn=function(d){var m=d.steps.length-1,j=d.steps[m],be=typeof j.seekingParent<"u"?j.seekingParent:[];j.type==="parent"&&be.push(j.slot);for(var Ze=0;Ze<be.length;Ze++){var qe=be[Ze];for(m=d.steps.length-2;qe.level>0;){if(m<0){typeof d.seekingParent>"u"?d.seekingParent=[qe]:d.seekingParent.push(qe);break}for(var A=d.steps[m--];m>=0&&A.focus&&d.steps[m].focus;)A=d.steps[m--];qe=ze(A,qe)}}},ve=function(d){var m;switch(d.type){case"binary":switch(d.value){case".":var j=ve(d.lhs);j.type==="path"?m=j:m={type:"path",steps:[j]},j.type==="parent"&&(m.seekingParent=[j.slot]);var be=ve(d.rhs);be.type==="function"&&be.procedure.type==="path"&&be.procedure.steps.length===1&&be.procedure.steps[0].type==="name"&&m.steps[m.steps.length-1].type==="function"&&(m.steps[m.steps.length-1].nextFunction=be.procedure.steps[0].value),be.type==="path"?Array.prototype.push.apply(m.steps,be.steps):(typeof be.predicate<"u"&&(be.stages=be.predicate,delete be.predicate),m.steps.push(be)),m.steps.filter(function(z){if(z.type==="number"||z.type==="value")throw{code:"S0213",stack:new Error().stack,position:z.position,value:z.value};return z.type==="string"}).forEach(function(z){z.type="name"}),m.steps.filter(function(z){return z.keepArray===!0}).length>0&&(m.keepSingletonArray=!0);var Ze=m.steps[0];Ze.type==="unary"&&Ze.value==="["&&(Ze.consarray=!0);var qe=m.steps[m.steps.length-1];qe.type==="unary"&&qe.value==="["&&(qe.consarray=!0),gn(m);break;case"[":m=ve(d.lhs);var A=m,T="predicate";if(m.type==="path"&&(A=m.steps[m.steps.length-1],T="stages"),typeof A.group<"u")throw{code:"S0209",stack:new Error().stack,position:d.position};typeof A[T]>"u"&&(A[T]=[]);var x=ve(d.rhs);typeof x.seekingParent<"u"&&(x.seekingParent.forEach(z=>{z.level===1?ze(A,z):z.level--}),we(A,x)),A[T].push({type:"filter",expr:x,position:d.position});break;case"{":if(m=ve(d.lhs),typeof m.group<"u")throw{code:"S0210",stack:new Error().stack,position:d.position};m.group={lhs:d.rhs.map(function(z){return[ve(z[0]),ve(z[1])]}),position:d.position};break;case"^":m=ve(d.lhs),m.type!=="path"&&(m={type:"path",steps:[m]});var B={type:"sort",position:d.position};B.terms=d.rhs.map(function(z){var se=ve(z.expression);return we(B,se),{descending:z.descending,expression:se}}),m.steps.push(B),gn(m);break;case":=":m={type:"bind",value:d.value,position:d.position},m.lhs=ve(d.lhs),m.rhs=ve(d.rhs),we(m,m.rhs);break;case"@":if(m=ve(d.lhs),A=m,m.type==="path"&&(A=m.steps[m.steps.length-1]),typeof A.stages<"u"||typeof A.predicate<"u")throw{code:"S0215",stack:new Error().stack,position:d.position};if(A.type==="sort")throw{code:"S0216",stack:new Error().stack,position:d.position};d.keepArray&&(A.keepArray=!0),A.focus=d.rhs.value,A.tuple=!0;break;case"#":m=ve(d.lhs),A=m,m.type==="path"?A=m.steps[m.steps.length-1]:(m={type:"path",steps:[m]},typeof A.predicate<"u"&&(A.stages=A.predicate,delete A.predicate)),typeof A.stages>"u"?A.index=d.rhs.value:A.stages.push({type:"index",value:d.rhs.value,position:d.position}),A.tuple=!0;break;case"~>":m={type:"apply",value:d.value,position:d.position},m.lhs=ve(d.lhs),m.rhs=ve(d.rhs),m.keepArray=m.lhs.keepArray||m.rhs.keepArray;break;default:m={type:d.type,value:d.value,position:d.position},m.lhs=ve(d.lhs),m.rhs=ve(d.rhs),we(m,m.lhs),we(m,m.rhs)}break;case"unary":m={type:d.type,value:d.value,position:d.position},d.value==="["?m.expressions=d.expressions.map(function(z){var se=ve(z);return we(m,se),se}):d.value==="{"?m.lhs=d.lhs.map(function(z){var se=ve(z[0]);we(m,se);var _e=ve(z[1]);return we(m,_e),[se,_e]}):(m.expression=ve(d.expression),d.value==="-"&&m.expression.type==="number"?(m=m.expression,m.value=-m.value):we(m,m.expression));break;case"function":case"partial":m={type:d.type,name:d.name,value:d.value,position:d.position},m.arguments=d.arguments.map(function(z){var se=ve(z);return we(m,se),se}),m.procedure=ve(d.procedure);break;case"lambda":m={type:d.type,arguments:d.arguments,signature:d.signature,position:d.position};var H=ve(d.body);m.body=Ke(H);break;case"condition":m={type:d.type,position:d.position},m.condition=ve(d.condition),we(m,m.condition),m.then=ve(d.then),we(m,m.then),typeof d.else<"u"&&(m.else=ve(d.else),we(m,m.else));break;case"transform":m={type:d.type,position:d.position},m.pattern=ve(d.pattern),m.update=ve(d.update),typeof d.delete<"u"&&(m.delete=ve(d.delete));break;case"block":m={type:d.type,position:d.position},m.expressions=d.expressions.map(function(z){var se=ve(z);return we(m,se),(se.consarray||se.type==="path"&&se.steps[0].consarray)&&(m.consarray=!0),se});break;case"name":m={type:"path",steps:[d]},d.keepArray&&(m.keepSingletonArray=!0);break;case"parent":m={type:"parent",slot:{label:"!"+Le++,level:1,index:nn++}},Wn.push(m);break;case"string":case"number":case"value":case"wildcard":case"descendant":case"variable":case"regex":m=d;break;case"operator":if(d.value==="and"||d.value==="or"||d.value==="in")d.type="name",m=ve(d);else if(d.value==="?")m=d;else throw{code:"S0201",stack:new Error().stack,position:d.position,token:d.value};break;case"error":m=d,d.lhs&&(m=ve(d.lhs));break;default:var q="S0206";d.id==="(end)"&&(q="S0207");var C={code:q,position:d.position,token:d.value};if(P)return Ce.push(C),{type:"error",error:C};throw C.stack=new Error().stack,C}return d.keepArray&&(m.keepArray=!0),m};J=Te(G),Y();var on=k(0);if(M.id!=="(end)"){var cn={code:"S0201",position:M.position,token:M.value};re(cn)}if(on=ve(on),on.type==="parent"||typeof on.seekingParent<"u")throw{code:"S0217",token:on.type,position:on.position};return Ce.length>0&&(on.errors=Ce),on};return He})();me.exports=F},{"./signature":5}],5:[function(l,me,oe){var le=l("./utils");const F=(()=>{var ce={a:"arrays",b:"booleans",f:"functions",n:"numbers",o:"objects",s:"strings"};function Ge(Te){for(var He=1,G=[],P={},M=P;He<Te.length;){var J=Te.charAt(He);if(J===":")break;var Pe=function(){G.push(P),M=P,P={}},Ce=function(X,Se,We,$e){for(var Ke=1,Le=Se;Le<X.length;)if(Le++,J=X.charAt(Le),J===$e){if(Ke--,Ke===0)break}else J===We&&Ke++;return Le};switch(J){case"s":case"n":case"b":case"l":case"o":P.regex="["+J+"m]",P.type=J,Pe();break;case"a":P.regex="[asnblfom]",P.type=J,P.array=!0,Pe();break;case"f":P.regex="f",P.type=J,Pe();break;case"j":P.regex="[asnblom]",P.type=J,Pe();break;case"x":P.regex="[asnblfom]",P.type=J,Pe();break;case"-":M.context=!0,M.contextRegex=new RegExp(M.regex),M.regex+="?";break;case"?":case"+":M.regex+=J;break;case"(":var Fe=Ce(Te,He,"(",")"),V=Te.substring(He+1,Fe);if(V.indexOf("<")===-1)P.regex="["+V+"m]";else throw{code:"S0402",stack:new Error().stack,value:V,offset:He};P.type="("+V+")",He=Fe,Pe();break;case"<":if(M.type==="a"||M.type==="f"){var U=Ce(Te,He,"<",">");M.subtype=Te.substring(He+1,U),He=U}else throw{code:"S0401",stack:new Error().stack,value:M.type,offset:He};break}He++}var re="^"+G.map(function(X){return"("+X.regex+")"}).join("")+"$",Y=new RegExp(re),k=function(X){var Se;if(le.isFunction(X))Se="f";else{var We=typeof X;switch(We){case"string":Se="s";break;case"number":Se="n";break;case"boolean":Se="b";break;case"object":X===null?Se="l":Array.isArray(X)?Se="a":Se="o";break;case"undefined":default:Se="m"}}return Se},$=function(X,Se){for(var We="^",$e=0,Ke=0;Ke<G.length;Ke++){We+=G[Ke].regex;var Le=Se.match(We);if(Le===null)throw{code:"T0410",stack:new Error().stack,value:X[$e],index:$e+1};$e=Le[0].length}throw{code:"T0410",stack:new Error().stack,value:X[$e],index:$e+1}};return{definition:Te,validate:function(X,Se){var We="";X.forEach(function(nn){We+=k(nn)});var $e=Y.exec(We);if($e){var Ke=[],Le=0;return G.forEach(function(nn,Wn){var ze=X[Le],we=$e[Wn+1];if(we==="")if(nn.context&&nn.contextRegex){var gn=k(Se);if(nn.contextRegex.test(gn))Ke.push(Se);else throw{code:"T0411",stack:new Error().stack,value:Se,index:Le+1}}else Ke.push(ze),Le++;else we.split("").forEach(function(ve){if(nn.type==="a"){if(ve==="m")ze=void 0;else{ze=X[Le];var on=!0;if(typeof nn.subtype<"u"){if(ve!=="a"&&we!==nn.subtype)on=!1;else if(ve==="a"&&ze.length>0){var cn=k(ze[0]);if(cn!==nn.subtype.charAt(0))on=!1;else{var d=ze.filter(function(m){return k(m)!==cn});on=d.length===0}}}if(!on)throw{code:"T0412",stack:new Error().stack,value:ze,index:Le+1,type:ce[nn.subtype]};ve!=="a"&&(ze=[ze])}Ke.push(ze),Le++}else Ke.push(ze),Le++})}),Ke}$(X,We)}}}return Ge})();me.exports=F},{"./utils":6}],6:[function(l,me,oe){const le=(()=>{function F(U){var re=!1;if(typeof U=="number"&&(re=!isNaN(U),re&&!isFinite(U)))throw{code:"D1001",value:U,stack:new Error().stack};return re}function ce(U){var re=!1;return Array.isArray(U)&&(re=U.filter(function(Y){return typeof Y!="string"}).length===0),re}function Ge(U){var re=!1;return Array.isArray(U)&&(re=U.filter(function(Y){return!F(Y)}).length===0),re}function Te(){var U=[];return U.sequence=!0,arguments.length===1&&U.push(arguments[0]),U}function He(U){return U.sequence===!0&&Array.isArray(U)}function G(U){return U&&(U._jsonata_function===!0||U._jsonata_lambda===!0)||typeof U=="function"}function P(U){var re=typeof U.arity=="number"?U.arity:typeof U.implementation=="function"?U.implementation.length:typeof U.length=="number"?U.length:U.arguments.length;return re}function M(U){return U&&U._jsonata_lambda===!0}var J=(typeof Symbol=="function"?Symbol:{}).iterator||"@@iterator";function Pe(U){return typeof U=="object"&&U!==null&&J in U&&"next"in U&&typeof U.next=="function"}function Ce(U,re){if(U===re)return!0;if(typeof U=="object"&&typeof re=="object"&&U!==null&&re!==null){if(Array.isArray(U)&&Array.isArray(re)){if(U.length!==re.length)return!1;for(var Y=0;Y<U.length;Y++)if(!Ce(U[Y],re[Y]))return!1;return!0}var k=Object.getOwnPropertyNames(U),$=Object.getOwnPropertyNames(re);if(k.length!==$.length)return!1;for(k=k.sort(),$=$.sort(),Y=0;Y<k.length;Y++)if(k[Y]!==$[Y])return!1;for(Y=0;Y<k.length;Y++){var X=k[Y];if(!Ce(U[X],re[X]))return!1}return!0}return!1}function Fe(U){return typeof U=="object"&&U!==null&&"then"in U&&typeof U.then=="function"}function V(U){var re=[];for(let Y of U)re.push(Y);return re}return{isNumeric:F,isArrayOfStrings:ce,isArrayOfNumbers:Ge,createSequence:Te,isSequence:He,isFunction:G,isLambda:M,isIterable:Pe,getFunctionArity:P,isDeepEqual:Ce,stringToArray:V,isPromise:Fe}})();me.exports=le},{}]},{},[3])(3)})})(Za);var wu=Za.exports;const bu=yu(wu),_u={name:"UIDynamicTable",components:{UIDynamicTableTitleText:vu},inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})},state:{type:Object,default:()=>({enabled:!0,visible:!0})}},computed:{...Pr.mapState("data",["messages"]),searchParamKey(){return`search_${this.id}`},sortByStorageKey(){return`table_sort_${this.id}`},itemsPerPageStorageKey(){return`table_items_per_page_${this.id}`},isMobile(){return this.$vuetify.display.mobile},dataHeaders(){return this.headers.filter(R=>R.key!=="actions")},filteredTasks(){let R=this.tasks;if(this.search&&this.search.trim()!==""){const Q=this.search.toLowerCase();R=R.filter(l=>this.dataHeaders.some(me=>{const oe=l[me.key];return oe&&oe.toString().toLowerCase().includes(Q)}))}return R},paginatedTasksForMobile(){if(!this.isMobile)return this.filteredTasks;const R=(this.currentPage-1)*this.itemsPerPage,Q=R+this.itemsPerPage;return this.filteredTasks.slice(R,Q)},currentMessage(){return this.messages[this.id]||{}}},data(){return{search:"",actions:[],tasks:[],headers:[],isReloading:!1,isInitialized:!1,sortBy:[],itemsPerPage:10,currentPage:1,itemsPerPageOptions:[{value:5,title:"5"},{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"All"}],jsonataResults:new Map}},mounted(){this.loadFromLocalStorage(),this.loadSearchFromUrl(),this.isInitialized=!0,this.$socket.on("widget-load:"+this.id,R=>{this.initialize(R),this.$store.commit("data/bind",{widgetId:this.id,msg:R})}),this.$socket.on("msg-input:"+this.id,R=>{Array.isArray(R)&&(R=R.filter(Q=>Q._client.socketId==this.$socket.id)[0]),this.initialize(R),this.messages[this.id]=R,this.$store.commit("data/bind",{widgetId:this.id,msg:R})}),this.$socket.emit("widget-load",this.id)},unmounted(){var R,Q;(R=this.$socket)==null||R.off("widget-load"+this.id),(Q=this.$socket)==null||Q.off("msg-input:"+this.id)},methods:{send(R,Q){const l=[];l[Q]=R,this.$socket.emit("widget-action",this.id,l)},visibleActionsForMobile(R){return this.actions.filter(Q=>Q?!Q.condition||Q.condition===""?!0:this.conditionCheck(Q.condition,R):!1)},actionFn(R,Q){if(R.condition&&R.condition!==""&&!this.conditionCheck(R.condition,Q)){console.log("Action condition not met:",R.condition);return}const l=this.messages[this.id]||{};l.payload=Q,this.send(l,this.actions.findIndex(me=>me.label===R.label))},initialize(R){if(!R){this.tasks=[],this.actions=(this.props.options||[]).filter(Q=>Q!=null),this.headers=(this.props.columns||[]).map(Q=>({title:Q.label,key:Q.value})),this.headers.push({title:"",align:"center",key:"actions",sortable:!1}),this.jsonataResults.clear();return}this.tasks=R.payload||[],this.actions=(this.props.options||[]).filter(Q=>Q!=null),this.headers=(this.props.columns||[]).map(Q=>({title:Q.label,key:Q.value})),this.headers.push({title:"",align:"center",key:"actions",sortable:!1}),this.jsonataResults.clear()},getActionLabel(R,Q){if(R.label_type)switch(R.label_type){case"str":return R.label||"";case"msg":if(R.label){const le=this.messages[this.id]||{};return this.getNestedProperty(le,R.label)||""}return"";case"row":return R.label&&this.getNestedProperty(Q,R.label)||"";case"jsonata":const me=this.messages[this.id]||{},oe=this.actions.indexOf(R);return me._jsonataLabels&&me._jsonataLabels[oe]?this.evaluateJsonata(me._jsonataLabels[oe],me,Q)||"":R.label||"";default:return R.label||""}return this.evaluateLegacyLabel(R,Q)||R.label||""},getNestedProperty(R,Q){if(!Q)return"";const l=Q.split(".");let me=R;for(const oe of l)if(me&&typeof me=="object"&&oe in me)me=me[oe];else return Q;return me!=null?String(me):Q},evaluateJsonata(R,Q,l){try{const me=JSON.stringify(l).slice(0,50),oe=`${R}_${me}`;if(this.jsonataResults.has(oe))return this.jsonataResults.get(oe);const le={...Q,$:l,payload:Q.payload,msg:Q},ce=bu(R).evaluate(le);if(ce&&typeof ce.then=="function")return this.jsonataResults.set(oe,R),ce.then(Te=>{const He=Te!=null?String(Te):"";this.jsonataResults.set(oe,He),this.$forceUpdate()}).catch(Te=>{console.warn("JSONata Promise evaluation error:",Te.message),this.jsonataResults.set(oe,R),this.$forceUpdate()}),R;const Ge=ce!=null?String(ce):"";return this.jsonataResults.set(oe,Ge),Ge}catch(me){return console.warn("JSONata evaluation error:",me.message),R}},evaluateLegacyLabel(R,Q){if(R.label&&(R.label.startsWith("msg.")||R.label.startsWith("row."))){let l,me;R.label.startsWith("msg.")?(l=this.messages[this.id]||{},me=R.label.substring(4).split(".")):R.label.startsWith("row.")&&(l=Q,me=R.label.substring(4).split("."));let oe=l;for(const le of me)if(oe&&typeof oe=="object"&&le in oe)oe=oe[le];else return R.label;return oe!=null?String(oe):R.label}return R.label||""},conditionCheck(R,Q){if(!R||R==="")return!0;try{return new Function("row",`return ${R}`)(Q)}catch(l){return console.error("Error evaluating condition:",l),!1}},reloadData(){this.isReloading=!0,this.send({_client:{socketId:this.$socket.id,widgetId:this.id},payload:{action:"reload"}},0),setTimeout(()=>{this.isReloading=!1},1e3)},updateSearchParam:mu.debounce(function(R){const Q={...this.$route.query};R&&R.trim()!==""?Q[this.searchParamKey]=R:delete Q[this.searchParamKey],this.$router.replace({path:this.$route.path,query:Q}).catch(l=>{l.name!=="NavigationDuplicated"&&console.error("Router navigation error:",l)})},500),loadSearchFromUrl(){const R=this.$route.query[this.searchParamKey];R&&typeof R=="string"?this.search=R:this.search=""},loadFromLocalStorage(){try{const R=localStorage.getItem(this.sortByStorageKey);R&&(this.sortBy=JSON.parse(R));const Q=localStorage.getItem(this.itemsPerPageStorageKey);Q&&(this.itemsPerPage=parseInt(Q,10))}catch(R){console.error("Error loading table settings from localStorage:",R)}},saveToLocalStorage(){try{localStorage.setItem(this.sortByStorageKey,JSON.stringify(this.sortBy)),localStorage.setItem(this.itemsPerPageStorageKey,this.itemsPerPage.toString())}catch(R){console.error("Error saving table settings to localStorage:",R)}},updateSortBy(R){this.sortBy=R,this.saveToLocalStorage()},updateItemsPerPage(R){this.itemsPerPage=R,this.saveToLocalStorage()}},watch:{search(R,Q){this.isInitialized&&this.updateSearchParam(R)},"$route.query":{handler(R){this.isInitialized&&this.loadSearchFromUrl()},deep:!0}}},Au={class:"ui-dynamic-table-container"},xu={class:"mobile-cards-container"},ku={class:"mobile-card-label"},Su={class:"mobile-card-value"};function Eu(R,Q,l,me,oe,le){const F=L.resolveComponent("UIDynamicTableTitleText"),ce=L.resolveComponent("v-text-field"),Ge=L.resolveComponent("v-icon"),Te=L.resolveComponent("v-btn"),He=L.resolveComponent("v-toolbar"),G=L.resolveComponent("v-container"),P=L.resolveComponent("v-alert"),M=L.resolveComponent("v-data-table"),J=L.resolveComponent("v-card-text"),Pe=L.resolveComponent("v-card-actions"),Ce=L.resolveComponent("v-card"),Fe=L.resolveComponent("v-pagination");return L.openBlock(),L.createElementBlock("div",Au,[l.props.title_text&&l.props.title_text.length>0?(L.openBlock(),L.createBlock(F,{key:0,title:l.props.title_text,style:L.normalizeStyle(l.props.title_style||"default"),customStyles:l.props.title_custom_text_styling||"",titleIcon:l.props.title_icon||""},null,8,["title","style","customStyles","titleIcon"])):L.createCommentVNode("",!0),L.createVNode(He,{flat:"",class:"pb-4 pt-8"},{default:L.withCtx(()=>[L.createVNode(ce,{class:L.normalizeClass(["search-input",{"mobile-search":le.isMobile}]),modelValue:oe.search,"onUpdate:modelValue":Q[0]||(Q[0]=V=>oe.search=V),label:"Suchen","prepend-inner-icon":"mdi-magnify",variant:"outlined","hide-details":"","single-line":""},null,8,["class","modelValue"]),L.createVNode(Te,{class:"reload-button ml-4",onClick:le.reloadData,disabled:oe.isReloading,size:"small",variant:"outlined"},{default:L.withCtx(()=>[L.createVNode(Ge,{left:"",class:L.normalizeClass({"reload-spin":oe.isReloading})},{default:L.withCtx(()=>[...Q[2]||(Q[2]=[L.createTextVNode("mdi-refresh",-1)])]),_:1},8,["class"])]),_:1},8,["onClick","disabled"])]),_:1}),L.withDirectives(L.createVNode(M,{headers:oe.headers,items:le.filteredTasks,"sort-by":oe.sortBy,"items-per-page":oe.itemsPerPage,"items-per-page-options":oe.itemsPerPageOptions,"onUpdate:sortBy":le.updateSortBy,"onUpdate:itemsPerPage":le.updateItemsPerPage,class:"full-width-table"},{"item.actions":L.withCtx(({item:V})=>[L.createVNode(G,{class:"action-button-container"},{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(oe.actions,(U,re)=>(L.openBlock(),L.createBlock(G,{style:{padding:"0px",display:"inline",width:"fit-content",margin:"0px"},key:re},{default:L.withCtx(()=>[U&&le.conditionCheck(U.condition,V)?(L.openBlock(),L.createBlock(Te,{key:0,style:{margin:"0px 2px"},class:"action-button",size:"small",onClick:Y=>le.actionFn(U,V)},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(le.getActionLabel(U,V)),1)]),_:2},1032,["onClick"])):L.createCommentVNode("",!0)]),_:2},1024))),128))]),_:2},1024)]),"no-data":L.withCtx(()=>[L.createVNode(P,{text:"Keine Daten",style:{margin:"12px"}})]),_:1},8,["headers","items","sort-by","items-per-page","items-per-page-options","onUpdate:sortBy","onUpdate:itemsPerPage"]),[[L.vShow,!le.isMobile]]),L.withDirectives(L.createElementVNode("div",xu,[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(le.paginatedTasksForMobile,(V,U)=>(L.openBlock(),L.createBlock(Ce,{key:U,class:"mobile-card ma-2",variant:"outlined",elevation:"2"},{default:L.withCtx(()=>[L.createVNode(J,{class:"pb-2"},{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(le.dataHeaders,re=>(L.openBlock(),L.createElementBlock("div",{key:re.key,class:"mobile-card-row"},[L.createElementVNode("span",ku,L.toDisplayString(re.title)+":",1),L.createElementVNode("span",Su,L.toDisplayString(V[re.key]),1)]))),128))]),_:2},1024),oe.actions&&oe.actions.length>0?(L.openBlock(),L.createBlock(Pe,{key:0,class:"pt-0 px-2 pb-2 d-flex"},{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(le.visibleActionsForMobile(V),(re,Y)=>(L.openBlock(),L.createBlock(Te,{key:Y,size:"x-small",color:"primary",variant:"flat",class:"flex-grow-1 mx-1",style:{"min-height":"28px",height:"28px","font-size":"0.75rem"},onClick:k=>le.actionFn(re,V)},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(le.getActionLabel(re,V)),1)]),_:2},1032,["onClick"]))),128))]),_:2},1024)):L.createCommentVNode("",!0)]),_:2},1024))),128)),le.paginatedTasksForMobile.length===0?(L.openBlock(),L.createBlock(P,{key:0,text:"Keine Daten",class:"ma-2"})):L.createCommentVNode("",!0)],512),[[L.vShow,le.isMobile]]),le.isMobile&&le.filteredTasks.length>oe.itemsPerPage?(L.openBlock(),L.createBlock(Fe,{key:1,modelValue:oe.currentPage,"onUpdate:modelValue":Q[1]||(Q[1]=V=>oe.currentPage=V),length:Math.ceil(le.filteredTasks.length/oe.itemsPerPage),class:"mt-4"},null,8,["modelValue","length"])):L.createCommentVNode("",!0)])}const Tu=Ka(_u,[["render",Eu],["__scopeId","data-v-545a65d0"]]);Nt.UIDynamicTable=Tu,Object.defineProperty(Nt,Symbol.toStringTag,{value:"Module"})});
|
|
31
|
+
\r\v`.indexOf(nn)>-1||Object.prototype.hasOwnProperty.call(ce,nn)){if(G.charAt(P)==="$")return $e=G.substring(P+1,Le),P=Le,J("variable",$e);switch($e=G.substring(P,Le),P=Le,$e){case"or":case"in":case"and":return J("operator",$e);case"true":return J("value",!0);case"false":return J("value",!1);case"null":return J("value",null);default:return P===M&&$e===""?null:J("name",$e)}}else Le++};return Ce},He=function(G,P){var M,J,Pe={},Ce=[],Fe=function(){var d=[];M.id!=="(end)"&&d.push({type:M.type,value:M.value,position:M.position});for(var m=J();m!==null;)d.push(m),m=J();return d},V={nud:function(){var d={code:"S0211",token:this.value,position:this.position};if(P)return d.remaining=Fe(),d.type="error",Ce.push(d),d;throw d.stack=new Error().stack,d}},U=function(d,m){var j=Pe[d];return m=m||0,j?m>=j.lbp&&(j.lbp=m):(j=Object.create(V),j.id=j.value=d,j.lbp=m,Pe[d]=j),j},re=function(d){if(P){d.remaining=Fe(),Ce.push(d);var m=Pe["(error)"];return M=Object.create(m),M.error=d,M.type="(error)",M}else throw d.stack=new Error().stack,d},Y=function(d,m){if(d&&M.id!==d){var j;M.id==="(end)"?j="S0203":j="S0202";var be={code:j,position:M.position,token:M.value,value:d};return re(be)}var Ze=J(m);if(Ze===null)return M=Pe["(end)"],M.position=G.length,M;var qe=Ze.value,A=Ze.type,T;switch(A){case"name":case"variable":T=Pe["(name)"];break;case"operator":if(T=Pe[qe],!T)return re({code:"S0204",stack:new Error().stack,position:Ze.position,token:qe});break;case"string":case"number":case"value":T=Pe["(literal)"];break;case"regex":A="regex",T=Pe["(regex)"];break;default:return re({code:"S0205",stack:new Error().stack,position:Ze.position,token:qe})}return M=Object.create(T),M.value=qe,M.type=A,M.position=Ze.position,M},k=function(d){var m,j=M;for(Y(null,!0),m=j.nud();d<M.lbp;)j=M,Y(),m=j.led(m);return m},$=function(d){var m=U(d,0);m.nud=function(){return this}},X=function(d,m,j){var be=m||ce[d],Ze=U(d,be);return Ze.led=j||function(qe){return this.lhs=qe,this.rhs=k(be),this.type="binary",this},Ze},Se=function(d,m,j){var be=U(d,m);return be.led=j,be},We=function(d,m){var j=U(d);return j.nud=m||function(){return this.expression=k(70),this.type="unary",this},j};$("(end)"),$("(name)"),$("(literal)"),$("(regex)"),U(":"),U(";"),U(","),U(")"),U("]"),U("}"),U(".."),X("."),X("+"),X("-"),X("*"),X("/"),X("%"),X("="),X("<"),X(">"),X("!="),X("<="),X(">="),X("&"),X("and"),X("or"),X("in"),$("and"),$("or"),$("in"),We("-"),X("~>"),X("??",ce["??"],function(d){return this.type="condition",this.condition={type:"function",value:"(",procedure:{type:"variable",value:"exists"},arguments:[d]},this.then=d,this.else=k(0),this}),Se("(error)",10,function(d){return this.lhs=d,this.error=M.error,this.remaining=Fe(),this.type="error",this}),We("*",function(){return this.type="wildcard",this}),We("**",function(){return this.type="descendant",this}),We("%",function(){return this.type="parent",this}),X("(",ce["("],function(d){if(this.procedure=d,this.type="function",this.arguments=[],M.id!==")")for(;M.type==="operator"&&M.id==="?"?(this.type="partial",this.arguments.push(M),Y("?")):this.arguments.push(k(0)),M.id===",";)Y(",");if(Y(")",!0),d.type==="name"&&(d.value==="function"||d.value==="λ")){if(this.arguments.forEach(function(qe,A){if(qe.type!=="variable")return re({code:"S0208",stack:new Error().stack,position:qe.position,token:qe.value,value:A+1})}),this.type="lambda",M.id==="<"){for(var m=M.position,j=1,be="<";j>0&&M.id!=="{"&&M.id!=="(end)";){var Ze=Y();Ze.id===">"?j--:Ze.id==="<"&&j++,be+=Ze.value}Y(">");try{this.signature=le(be)}catch(qe){return qe.position=m+qe.offset,re(qe)}}Y("{"),this.body=k(0),Y("}")}return this}),We("(",function(){for(var d=[];M.id!==")"&&(d.push(k(0)),M.id===";");)Y(";");return Y(")",!0),this.type="block",this.expressions=d,this}),We("[",function(){var d=[];if(M.id!=="]")for(;;){var m=k(0);if(M.id===".."){var j={type:"binary",value:"..",position:M.position,lhs:m};Y(".."),j.rhs=k(0),m=j}if(d.push(m),M.id!==",")break;Y(",")}return Y("]",!0),this.expressions=d,this.type="unary",this}),X("[",ce["["],function(d){if(M.id==="]"){for(var m=d;m&&m.type==="binary"&&m.value==="[";)m=m.lhs;return m.keepArray=!0,Y("]"),d}else return this.lhs=d,this.rhs=k(ce["]"]),this.type="binary",Y("]",!0),this}),X("^",ce["^"],function(d){Y("(");for(var m=[];;){var j={descending:!1};if(M.id==="<"?Y("<"):M.id===">"&&(j.descending=!0,Y(">")),j.expression=k(0),m.push(j),M.id!==",")break;Y(",")}return Y(")"),this.lhs=d,this.rhs=m,this.type="binary",this});var $e=function(d){var m=[];if(M.id!=="}")for(;;){var j=k(0);Y(":");var be=k(0);if(m.push([j,be]),M.id!==",")break;Y(",")}return Y("}",!0),typeof d>"u"?(this.lhs=m,this.type="unary"):(this.lhs=d,this.rhs=m,this.type="binary"),this};We("{",$e),X("{",ce["{"],$e),Se(":=",ce[":="],function(d){return d.type!=="variable"?re({code:"S0212",stack:new Error().stack,position:d.position,token:d.value}):(this.lhs=d,this.rhs=k(ce[":="]-1),this.type="binary",this)}),X("@",ce["@"],function(d){return this.lhs=d,this.rhs=k(ce["@"]),this.rhs.type!=="variable"?re({code:"S0214",stack:new Error().stack,position:this.rhs.position,token:"@"}):(this.type="binary",this)}),X("#",ce["#"],function(d){return this.lhs=d,this.rhs=k(ce["#"]),this.rhs.type!=="variable"?re({code:"S0214",stack:new Error().stack,position:this.rhs.position,token:"#"}):(this.type="binary",this)}),X("?",ce["?"],function(d){return this.type="condition",this.condition=d,this.then=k(0),M.id===":"&&(Y(":"),this.else=k(0)),this}),X("?:",ce["?:"],function(d){return this.type="condition",this.condition=d,this.then=d,this.else=k(0),this}),We("|",function(){return this.type="transform",this.pattern=k(0),Y("|"),this.update=k(0),M.id===","&&(Y(","),this.delete=k(0)),Y("|"),this});var Ke=function(d){var m;if(d.type==="function"&&!d.predicate){var j={type:"lambda",thunk:!0,arguments:[],position:d.position};j.body=d,m=j}else if(d.type==="condition")d.then=Ke(d.then),typeof d.else<"u"&&(d.else=Ke(d.else)),m=d;else if(d.type==="block"){var be=d.expressions.length;be>0&&(d.expressions[be-1]=Ke(d.expressions[be-1])),m=d}else m=d;return m},Le=0,nn=0,Wn=[],ze=function(d,m){switch(d.type){case"name":case"wildcard":m.level--,m.level===0&&(typeof d.ancestor>"u"||(Wn[m.index].slot.label=d.ancestor.label),d.ancestor=m,d.tuple=!0);break;case"parent":m.level++;break;case"block":d.expressions.length>0&&(d.tuple=!0,m=ze(d.expressions[d.expressions.length-1],m));break;case"path":d.tuple=!0;var j=d.steps.length-1;for(m=ze(d.steps[j--],m);m.level>0&&j>=0;)m=ze(d.steps[j--],m);break;default:throw{code:"S0217",token:d.type,position:d.position}}return m},we=function(d,m){if(typeof m.seekingParent<"u"||m.type==="parent"){var j=typeof m.seekingParent<"u"?m.seekingParent:[];m.type==="parent"&&j.push(m.slot),typeof d.seekingParent>"u"?d.seekingParent=j:Array.prototype.push.apply(d.seekingParent,j)}},gn=function(d){var m=d.steps.length-1,j=d.steps[m],be=typeof j.seekingParent<"u"?j.seekingParent:[];j.type==="parent"&&be.push(j.slot);for(var Ze=0;Ze<be.length;Ze++){var qe=be[Ze];for(m=d.steps.length-2;qe.level>0;){if(m<0){typeof d.seekingParent>"u"?d.seekingParent=[qe]:d.seekingParent.push(qe);break}for(var A=d.steps[m--];m>=0&&A.focus&&d.steps[m].focus;)A=d.steps[m--];qe=ze(A,qe)}}},ve=function(d){var m;switch(d.type){case"binary":switch(d.value){case".":var j=ve(d.lhs);j.type==="path"?m=j:m={type:"path",steps:[j]},j.type==="parent"&&(m.seekingParent=[j.slot]);var be=ve(d.rhs);be.type==="function"&&be.procedure.type==="path"&&be.procedure.steps.length===1&&be.procedure.steps[0].type==="name"&&m.steps[m.steps.length-1].type==="function"&&(m.steps[m.steps.length-1].nextFunction=be.procedure.steps[0].value),be.type==="path"?Array.prototype.push.apply(m.steps,be.steps):(typeof be.predicate<"u"&&(be.stages=be.predicate,delete be.predicate),m.steps.push(be)),m.steps.filter(function(z){if(z.type==="number"||z.type==="value")throw{code:"S0213",stack:new Error().stack,position:z.position,value:z.value};return z.type==="string"}).forEach(function(z){z.type="name"}),m.steps.filter(function(z){return z.keepArray===!0}).length>0&&(m.keepSingletonArray=!0);var Ze=m.steps[0];Ze.type==="unary"&&Ze.value==="["&&(Ze.consarray=!0);var qe=m.steps[m.steps.length-1];qe.type==="unary"&&qe.value==="["&&(qe.consarray=!0),gn(m);break;case"[":m=ve(d.lhs);var A=m,T="predicate";if(m.type==="path"&&(A=m.steps[m.steps.length-1],T="stages"),typeof A.group<"u")throw{code:"S0209",stack:new Error().stack,position:d.position};typeof A[T]>"u"&&(A[T]=[]);var x=ve(d.rhs);typeof x.seekingParent<"u"&&(x.seekingParent.forEach(z=>{z.level===1?ze(A,z):z.level--}),we(A,x)),A[T].push({type:"filter",expr:x,position:d.position});break;case"{":if(m=ve(d.lhs),typeof m.group<"u")throw{code:"S0210",stack:new Error().stack,position:d.position};m.group={lhs:d.rhs.map(function(z){return[ve(z[0]),ve(z[1])]}),position:d.position};break;case"^":m=ve(d.lhs),m.type!=="path"&&(m={type:"path",steps:[m]});var B={type:"sort",position:d.position};B.terms=d.rhs.map(function(z){var se=ve(z.expression);return we(B,se),{descending:z.descending,expression:se}}),m.steps.push(B),gn(m);break;case":=":m={type:"bind",value:d.value,position:d.position},m.lhs=ve(d.lhs),m.rhs=ve(d.rhs),we(m,m.rhs);break;case"@":if(m=ve(d.lhs),A=m,m.type==="path"&&(A=m.steps[m.steps.length-1]),typeof A.stages<"u"||typeof A.predicate<"u")throw{code:"S0215",stack:new Error().stack,position:d.position};if(A.type==="sort")throw{code:"S0216",stack:new Error().stack,position:d.position};d.keepArray&&(A.keepArray=!0),A.focus=d.rhs.value,A.tuple=!0;break;case"#":m=ve(d.lhs),A=m,m.type==="path"?A=m.steps[m.steps.length-1]:(m={type:"path",steps:[m]},typeof A.predicate<"u"&&(A.stages=A.predicate,delete A.predicate)),typeof A.stages>"u"?A.index=d.rhs.value:A.stages.push({type:"index",value:d.rhs.value,position:d.position}),A.tuple=!0;break;case"~>":m={type:"apply",value:d.value,position:d.position},m.lhs=ve(d.lhs),m.rhs=ve(d.rhs),m.keepArray=m.lhs.keepArray||m.rhs.keepArray;break;default:m={type:d.type,value:d.value,position:d.position},m.lhs=ve(d.lhs),m.rhs=ve(d.rhs),we(m,m.lhs),we(m,m.rhs)}break;case"unary":m={type:d.type,value:d.value,position:d.position},d.value==="["?m.expressions=d.expressions.map(function(z){var se=ve(z);return we(m,se),se}):d.value==="{"?m.lhs=d.lhs.map(function(z){var se=ve(z[0]);we(m,se);var _e=ve(z[1]);return we(m,_e),[se,_e]}):(m.expression=ve(d.expression),d.value==="-"&&m.expression.type==="number"?(m=m.expression,m.value=-m.value):we(m,m.expression));break;case"function":case"partial":m={type:d.type,name:d.name,value:d.value,position:d.position},m.arguments=d.arguments.map(function(z){var se=ve(z);return we(m,se),se}),m.procedure=ve(d.procedure);break;case"lambda":m={type:d.type,arguments:d.arguments,signature:d.signature,position:d.position};var H=ve(d.body);m.body=Ke(H);break;case"condition":m={type:d.type,position:d.position},m.condition=ve(d.condition),we(m,m.condition),m.then=ve(d.then),we(m,m.then),typeof d.else<"u"&&(m.else=ve(d.else),we(m,m.else));break;case"transform":m={type:d.type,position:d.position},m.pattern=ve(d.pattern),m.update=ve(d.update),typeof d.delete<"u"&&(m.delete=ve(d.delete));break;case"block":m={type:d.type,position:d.position},m.expressions=d.expressions.map(function(z){var se=ve(z);return we(m,se),(se.consarray||se.type==="path"&&se.steps[0].consarray)&&(m.consarray=!0),se});break;case"name":m={type:"path",steps:[d]},d.keepArray&&(m.keepSingletonArray=!0);break;case"parent":m={type:"parent",slot:{label:"!"+Le++,level:1,index:nn++}},Wn.push(m);break;case"string":case"number":case"value":case"wildcard":case"descendant":case"variable":case"regex":m=d;break;case"operator":if(d.value==="and"||d.value==="or"||d.value==="in")d.type="name",m=ve(d);else if(d.value==="?")m=d;else throw{code:"S0201",stack:new Error().stack,position:d.position,token:d.value};break;case"error":m=d,d.lhs&&(m=ve(d.lhs));break;default:var q="S0206";d.id==="(end)"&&(q="S0207");var C={code:q,position:d.position,token:d.value};if(P)return Ce.push(C),{type:"error",error:C};throw C.stack=new Error().stack,C}return d.keepArray&&(m.keepArray=!0),m};J=Te(G),Y();var on=k(0);if(M.id!=="(end)"){var cn={code:"S0201",position:M.position,token:M.value};re(cn)}if(on=ve(on),on.type==="parent"||typeof on.seekingParent<"u")throw{code:"S0217",token:on.type,position:on.position};return Ce.length>0&&(on.errors=Ce),on};return He})();me.exports=F},{"./signature":5}],5:[function(l,me,oe){var le=l("./utils");const F=(()=>{var ce={a:"arrays",b:"booleans",f:"functions",n:"numbers",o:"objects",s:"strings"};function Ge(Te){for(var He=1,G=[],P={},M=P;He<Te.length;){var J=Te.charAt(He);if(J===":")break;var Pe=function(){G.push(P),M=P,P={}},Ce=function(X,Se,We,$e){for(var Ke=1,Le=Se;Le<X.length;)if(Le++,J=X.charAt(Le),J===$e){if(Ke--,Ke===0)break}else J===We&&Ke++;return Le};switch(J){case"s":case"n":case"b":case"l":case"o":P.regex="["+J+"m]",P.type=J,Pe();break;case"a":P.regex="[asnblfom]",P.type=J,P.array=!0,Pe();break;case"f":P.regex="f",P.type=J,Pe();break;case"j":P.regex="[asnblom]",P.type=J,Pe();break;case"x":P.regex="[asnblfom]",P.type=J,Pe();break;case"-":M.context=!0,M.contextRegex=new RegExp(M.regex),M.regex+="?";break;case"?":case"+":M.regex+=J;break;case"(":var Fe=Ce(Te,He,"(",")"),V=Te.substring(He+1,Fe);if(V.indexOf("<")===-1)P.regex="["+V+"m]";else throw{code:"S0402",stack:new Error().stack,value:V,offset:He};P.type="("+V+")",He=Fe,Pe();break;case"<":if(M.type==="a"||M.type==="f"){var U=Ce(Te,He,"<",">");M.subtype=Te.substring(He+1,U),He=U}else throw{code:"S0401",stack:new Error().stack,value:M.type,offset:He};break}He++}var re="^"+G.map(function(X){return"("+X.regex+")"}).join("")+"$",Y=new RegExp(re),k=function(X){var Se;if(le.isFunction(X))Se="f";else{var We=typeof X;switch(We){case"string":Se="s";break;case"number":Se="n";break;case"boolean":Se="b";break;case"object":X===null?Se="l":Array.isArray(X)?Se="a":Se="o";break;case"undefined":default:Se="m"}}return Se},$=function(X,Se){for(var We="^",$e=0,Ke=0;Ke<G.length;Ke++){We+=G[Ke].regex;var Le=Se.match(We);if(Le===null)throw{code:"T0410",stack:new Error().stack,value:X[$e],index:$e+1};$e=Le[0].length}throw{code:"T0410",stack:new Error().stack,value:X[$e],index:$e+1}};return{definition:Te,validate:function(X,Se){var We="";X.forEach(function(nn){We+=k(nn)});var $e=Y.exec(We);if($e){var Ke=[],Le=0;return G.forEach(function(nn,Wn){var ze=X[Le],we=$e[Wn+1];if(we==="")if(nn.context&&nn.contextRegex){var gn=k(Se);if(nn.contextRegex.test(gn))Ke.push(Se);else throw{code:"T0411",stack:new Error().stack,value:Se,index:Le+1}}else Ke.push(ze),Le++;else we.split("").forEach(function(ve){if(nn.type==="a"){if(ve==="m")ze=void 0;else{ze=X[Le];var on=!0;if(typeof nn.subtype<"u"){if(ve!=="a"&&we!==nn.subtype)on=!1;else if(ve==="a"&&ze.length>0){var cn=k(ze[0]);if(cn!==nn.subtype.charAt(0))on=!1;else{var d=ze.filter(function(m){return k(m)!==cn});on=d.length===0}}}if(!on)throw{code:"T0412",stack:new Error().stack,value:ze,index:Le+1,type:ce[nn.subtype]};ve!=="a"&&(ze=[ze])}Ke.push(ze),Le++}else Ke.push(ze),Le++})}),Ke}$(X,We)}}}return Ge})();me.exports=F},{"./utils":6}],6:[function(l,me,oe){const le=(()=>{function F(U){var re=!1;if(typeof U=="number"&&(re=!isNaN(U),re&&!isFinite(U)))throw{code:"D1001",value:U,stack:new Error().stack};return re}function ce(U){var re=!1;return Array.isArray(U)&&(re=U.filter(function(Y){return typeof Y!="string"}).length===0),re}function Ge(U){var re=!1;return Array.isArray(U)&&(re=U.filter(function(Y){return!F(Y)}).length===0),re}function Te(){var U=[];return U.sequence=!0,arguments.length===1&&U.push(arguments[0]),U}function He(U){return U.sequence===!0&&Array.isArray(U)}function G(U){return U&&(U._jsonata_function===!0||U._jsonata_lambda===!0)||typeof U=="function"}function P(U){var re=typeof U.arity=="number"?U.arity:typeof U.implementation=="function"?U.implementation.length:typeof U.length=="number"?U.length:U.arguments.length;return re}function M(U){return U&&U._jsonata_lambda===!0}var J=(typeof Symbol=="function"?Symbol:{}).iterator||"@@iterator";function Pe(U){return typeof U=="object"&&U!==null&&J in U&&"next"in U&&typeof U.next=="function"}function Ce(U,re){if(U===re)return!0;if(typeof U=="object"&&typeof re=="object"&&U!==null&&re!==null){if(Array.isArray(U)&&Array.isArray(re)){if(U.length!==re.length)return!1;for(var Y=0;Y<U.length;Y++)if(!Ce(U[Y],re[Y]))return!1;return!0}var k=Object.getOwnPropertyNames(U),$=Object.getOwnPropertyNames(re);if(k.length!==$.length)return!1;for(k=k.sort(),$=$.sort(),Y=0;Y<k.length;Y++)if(k[Y]!==$[Y])return!1;for(Y=0;Y<k.length;Y++){var X=k[Y];if(!Ce(U[X],re[X]))return!1}return!0}return!1}function Fe(U){return typeof U=="object"&&U!==null&&"then"in U&&typeof U.then=="function"}function V(U){var re=[];for(let Y of U)re.push(Y);return re}return{isNumeric:F,isArrayOfStrings:ce,isArrayOfNumbers:Ge,createSequence:Te,isSequence:He,isFunction:G,isLambda:M,isIterable:Pe,getFunctionArity:P,isDeepEqual:Ce,stringToArray:V,isPromise:Fe}})();me.exports=le},{}]},{},[3])(3)})})(Za);var wu=Za.exports;const bu=yu(wu),_u={name:"UIDynamicTable",components:{UIDynamicTableTitleText:vu},inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})},state:{type:Object,default:()=>({enabled:!0,visible:!0})}},computed:{...Pr.mapState("data",["messages"]),searchParamKey(){return`search_${this.id}`},sortByStorageKey(){return`table_sort_${this.id}`},itemsPerPageStorageKey(){return`table_items_per_page_${this.id}`},isMobile(){return this.$vuetify.display.mobile},dataHeaders(){return this.headers.filter(R=>R.key!=="actions")},filteredTasks(){let R=this.tasks;if(this.search&&this.search.trim()!==""){const Q=this.search.toLowerCase();R=R.filter(l=>this.dataHeaders.some(me=>{const oe=l[me.key];return oe&&oe.toString().toLowerCase().includes(Q)}))}return R},paginatedTasksForMobile(){if(!this.isMobile)return this.filteredTasks;const R=(this.currentPage-1)*this.itemsPerPage,Q=R+this.itemsPerPage;return this.filteredTasks.slice(R,Q)},currentMessage(){return this.messages[this.id]||{}}},data(){return{search:"",actions:[],tasks:[],headers:[],isReloading:!1,isInitialized:!1,sortBy:[],itemsPerPage:10,currentPage:1,itemsPerPageOptions:[{value:5,title:"5"},{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"All"}],jsonataResults:new Map}},mounted(){this.loadFromLocalStorage(),this.loadSearchFromUrl(),this.isInitialized=!0,this.$socket.on("widget-load:"+this.id,R=>{this.initialize(R),this.$store.commit("data/bind",{widgetId:this.id,msg:R})}),this.$socket.on("msg-input:"+this.id,R=>{Array.isArray(R)&&(R=R.filter(Q=>Q._client.socketId==this.$socket.id)[0]),this.initialize(R),this.messages[this.id]=R,this.$store.commit("data/bind",{widgetId:this.id,msg:R})}),this.$socket.emit("widget-load",this.id)},unmounted(){var R,Q;(R=this.$socket)==null||R.off("widget-load"+this.id),(Q=this.$socket)==null||Q.off("msg-input:"+this.id)},methods:{send(R,Q){const l=[];l[Q]=R,this.$socket.emit("widget-action",this.id,l)},visibleActionsForMobile(R){return this.actions.filter(Q=>Q?!Q.condition||Q.condition===""?!0:this.conditionCheck(Q.condition,R):!1)},actionFn(R,Q){if(R.condition&&R.condition!==""&&!this.conditionCheck(R.condition,Q)){console.log("Action condition not met:",R.condition);return}const l=this.messages[this.id]||{};l.payload=Q,this.send(l,this.actions.findIndex(me=>me.label===R.label))},initialize(R){if(!R){this.tasks=[],this.actions=(this.props.options||[]).filter(Q=>Q!=null),this.headers=(this.props.columns||[]).map(Q=>({title:Q.label,key:Q.value})),this.headers.push({title:"",align:"center",key:"actions",sortable:!1}),this.jsonataResults.clear();return}this.tasks=R.payload||[],this.actions=(this.props.options||[]).filter(Q=>Q!=null),this.headers=(this.props.columns||[]).map(Q=>({title:Q.label,key:Q.value})),this.headers.push({title:"",align:"center",key:"actions",sortable:!1}),this.jsonataResults.clear()},getActionLabel(R,Q){if(R.label_type)switch(R.label_type){case"str":return R.label||"";case"msg":if(R.label){const le=this.messages[this.id]||{};return this.getNestedProperty(le,R.label)||""}return"";case"row":return R.label&&this.getNestedProperty(Q,R.label)||"";case"jsonata":const me=this.messages[this.id]||{},oe=this.actions.indexOf(R);return me._jsonataLabels&&me._jsonataLabels[oe]?this.evaluateJsonata(me._jsonataLabels[oe],me,Q)||"":R.label||"";default:return R.label||""}return this.evaluateLegacyLabel(R,Q)||R.label||""},getNestedProperty(R,Q){if(!Q)return"";const l=Q.split(".");let me=R;for(const oe of l)if(me&&typeof me=="object"&&oe in me)me=me[oe];else return Q;return me!=null?String(me):Q},evaluateJsonata(R,Q,l){try{const me=JSON.stringify(l).slice(0,50),oe=`${R}_${me}`;if(this.jsonataResults.has(oe))return this.jsonataResults.get(oe);const le={...Q,$:l,payload:Q.payload,msg:Q},ce=bu(R).evaluate(le);if(ce&&typeof ce.then=="function")return this.jsonataResults.set(oe,R),ce.then(Te=>{const He=Te!=null?String(Te):"";this.jsonataResults.set(oe,He),this.$forceUpdate()}).catch(Te=>{console.warn("JSONata Promise evaluation error:",Te.message),this.jsonataResults.set(oe,R),this.$forceUpdate()}),R;const Ge=ce!=null?String(ce):"";return this.jsonataResults.set(oe,Ge),Ge}catch(me){return console.warn("JSONata evaluation error:",me.message),R}},evaluateLegacyLabel(R,Q){if(R.label&&(R.label.startsWith("msg.")||R.label.startsWith("row."))){let l,me;R.label.startsWith("msg.")?(l=this.messages[this.id]||{},me=R.label.substring(4).split(".")):R.label.startsWith("row.")&&(l=Q,me=R.label.substring(4).split("."));let oe=l;for(const le of me)if(oe&&typeof oe=="object"&&le in oe)oe=oe[le];else return R.label;return oe!=null?String(oe):R.label}return R.label||""},conditionCheck(R,Q){if(!R||R==="")return!0;try{return new Function("row",`return ${R}`)(Q)}catch(l){return console.error("Error evaluating condition:",l),!1}},reloadData(){this.isReloading=!0,this.send({_client:{socketId:this.$socket.id,widgetId:this.id},payload:{action:"reload"}},0),setTimeout(()=>{this.isReloading=!1},1e3)},updateSearchParam:mu.debounce(function(R){const Q={...this.$route.query};R&&R.trim()!==""?Q[this.searchParamKey]=R:delete Q[this.searchParamKey],this.$router.replace({path:this.$route.path,query:Q}).catch(l=>{l.name!=="NavigationDuplicated"&&console.error("Router navigation error:",l)})},500),loadSearchFromUrl(){const R=this.$route.query[this.searchParamKey];R&&typeof R=="string"?this.search=R:this.search=""},loadFromLocalStorage(){try{const R=localStorage.getItem(this.sortByStorageKey);R&&(this.sortBy=JSON.parse(R));const Q=localStorage.getItem(this.itemsPerPageStorageKey);Q&&(this.itemsPerPage=parseInt(Q,10))}catch(R){console.error("Error loading table settings from localStorage:",R)}},saveToLocalStorage(){try{localStorage.setItem(this.sortByStorageKey,JSON.stringify(this.sortBy)),localStorage.setItem(this.itemsPerPageStorageKey,this.itemsPerPage.toString())}catch(R){console.error("Error saving table settings to localStorage:",R)}},updateSortBy(R){this.sortBy=R,this.saveToLocalStorage()},updateItemsPerPage(R){this.itemsPerPage=R,this.saveToLocalStorage()}},watch:{search(R,Q){this.isInitialized&&this.updateSearchParam(R)},"$route.query":{handler(R){this.isInitialized&&this.loadSearchFromUrl()},deep:!0}}},Au={class:"ui-dynamic-table-container"},xu={class:"mobile-cards-container"},ku={class:"mobile-card-label"},Su={class:"mobile-card-value"};function Eu(R,Q,l,me,oe,le){const F=L.resolveComponent("UIDynamicTableTitleText"),ce=L.resolveComponent("v-text-field"),Ge=L.resolveComponent("v-icon"),Te=L.resolveComponent("v-btn"),He=L.resolveComponent("v-toolbar"),G=L.resolveComponent("v-container"),P=L.resolveComponent("v-alert"),M=L.resolveComponent("v-data-table"),J=L.resolveComponent("v-card-text"),Pe=L.resolveComponent("v-card-actions"),Ce=L.resolveComponent("v-card"),Fe=L.resolveComponent("v-pagination");return L.openBlock(),L.createElementBlock("div",Au,[l.props.title_text&&l.props.title_text.length>0?(L.openBlock(),L.createBlock(F,{key:0,title:l.props.title_text,style:L.normalizeStyle(l.props.title_style||"default"),customStyles:l.props.title_custom_text_styling||"",titleIcon:l.props.title_icon||""},null,8,["title","style","customStyles","titleIcon"])):L.createCommentVNode("",!0),L.createVNode(He,{flat:"",class:"pb-4 pt-8"},{default:L.withCtx(()=>[L.createVNode(ce,{class:L.normalizeClass(["search-input",{"mobile-search":le.isMobile}]),modelValue:oe.search,"onUpdate:modelValue":Q[0]||(Q[0]=V=>oe.search=V),label:"Suchen","prepend-inner-icon":"mdi-magnify",variant:"outlined","hide-details":"","single-line":""},null,8,["class","modelValue"]),L.createVNode(Te,{class:"reload-button ml-4",onClick:le.reloadData,disabled:oe.isReloading,size:"small",variant:"outlined"},{default:L.withCtx(()=>[L.createVNode(Ge,{left:"",class:L.normalizeClass({"reload-spin":oe.isReloading})},{default:L.withCtx(()=>[...Q[2]||(Q[2]=[L.createTextVNode("mdi-refresh",-1)])]),_:1},8,["class"])]),_:1},8,["onClick","disabled"])]),_:1}),L.withDirectives(L.createVNode(M,{headers:oe.headers,items:le.filteredTasks,"sort-by":oe.sortBy,"items-per-page":oe.itemsPerPage,"items-per-page-options":oe.itemsPerPageOptions,"onUpdate:sortBy":le.updateSortBy,"onUpdate:itemsPerPage":le.updateItemsPerPage,class:"full-width-table"},{"item.actions":L.withCtx(({item:V})=>[L.createVNode(G,{class:"action-button-container"},{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(oe.actions,(U,re)=>(L.openBlock(),L.createBlock(G,{style:{padding:"0px",display:"inline",width:"fit-content",margin:"0px"},key:re},{default:L.withCtx(()=>[U&&le.conditionCheck(U.condition,V)?(L.openBlock(),L.createBlock(Te,{key:0,style:{margin:"0px 2px"},class:"action-button",size:"small",onClick:Y=>le.actionFn(U,V)},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(le.getActionLabel(U,V)),1)]),_:2},1032,["onClick"])):L.createCommentVNode("",!0)]),_:2},1024))),128))]),_:2},1024)]),"no-data":L.withCtx(()=>[L.createVNode(P,{text:"Keine Daten",style:{margin:"12px"}})]),_:1},8,["headers","items","sort-by","items-per-page","items-per-page-options","onUpdate:sortBy","onUpdate:itemsPerPage"]),[[L.vShow,!le.isMobile]]),L.withDirectives(L.createElementVNode("div",xu,[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(le.paginatedTasksForMobile,(V,U)=>(L.openBlock(),L.createBlock(Ce,{key:U,class:"mobile-card ma-2",variant:"outlined",elevation:"2"},{default:L.withCtx(()=>[L.createVNode(J,{class:"pb-2"},{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(le.dataHeaders,re=>(L.openBlock(),L.createElementBlock("div",{key:re.key,class:"mobile-card-row"},[L.createElementVNode("span",ku,L.toDisplayString(re.title)+":",1),L.createElementVNode("span",Su,L.toDisplayString(le.getNestedProperty(V,re.key)),1)]))),128))]),_:2},1024),oe.actions&&oe.actions.length>0?(L.openBlock(),L.createBlock(Pe,{key:0,class:"pt-0 px-2 pb-2 d-flex"},{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(le.visibleActionsForMobile(V),(re,Y)=>(L.openBlock(),L.createBlock(Te,{key:Y,size:"x-small",color:"primary",variant:"flat",class:"flex-grow-1 mx-1",style:{"min-height":"28px",height:"28px","font-size":"0.75rem"},onClick:k=>le.actionFn(re,V)},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(le.getActionLabel(re,V)),1)]),_:2},1032,["onClick"]))),128))]),_:2},1024)):L.createCommentVNode("",!0)]),_:2},1024))),128)),le.paginatedTasksForMobile.length===0?(L.openBlock(),L.createBlock(P,{key:0,text:"Keine Daten",class:"ma-2"})):L.createCommentVNode("",!0)],512),[[L.vShow,le.isMobile]]),le.isMobile&&le.filteredTasks.length>oe.itemsPerPage?(L.openBlock(),L.createBlock(Fe,{key:1,modelValue:oe.currentPage,"onUpdate:modelValue":Q[1]||(Q[1]=V=>oe.currentPage=V),length:Math.ceil(le.filteredTasks.length/oe.itemsPerPage),class:"mt-4"},null,8,["modelValue","length"])):L.createCommentVNode("",!0)])}const Tu=Ka(_u,[["render",Eu],["__scopeId","data-v-c078cf2e"]]);Nt.UIDynamicTable=Tu,Object.defineProperty(Nt,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
<v-card-text class="pb-2">
|
|
81
81
|
<div v-for="header in dataHeaders" :key="header.key" class="mobile-card-row">
|
|
82
82
|
<span class="mobile-card-label">{{ header.title }}:</span>
|
|
83
|
-
<span class="mobile-card-value">{{ item
|
|
83
|
+
<span class="mobile-card-value">{{ getNestedProperty(item, header.key) }}</span>
|
|
84
84
|
</div>
|
|
85
85
|
</v-card-text>
|
|
86
86
|
<v-card-actions v-if="actions && actions.length > 0" class="pt-0 px-2 pb-2 d-flex">
|