@hievilmath/browser-formidavim 1.2.4 → 1.2.5
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/index.js +276 -199
- package/index.mjs +3079 -2928
- package/lib/components/inputs/TitrationSelect.d.ts +10 -0
- package/lib/hooks/useFlowStore.d.ts +4 -0
- package/lib/state/slices/flow.slice.d.ts +21 -1
- package/lib/styled-components/uiComponents.d.ts +12 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ve=require("react"),Ir=require("react-router-dom"),E=require("styled-components"),Rt=require("react-redux"),Wn=require("react-datepicker"),Z=require("axios");function Yn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const vr=Yn(Wn);var Hr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nr={exports:{}},Ht={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Wr;function Xn(){if(Wr)return Ht;Wr=1;var e=Ve,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,u,h){var b,m={},x=null,P=null;h!==void 0&&(x=""+h),u.key!==void 0&&(x=""+u.key),u.ref!==void 0&&(P=u.ref);for(b in u)n.call(u,b)&&!a.hasOwnProperty(b)&&(m[b]=u[b]);if(l&&l.defaultProps)for(b in u=l.defaultProps,u)m[b]===void 0&&(m[b]=u[b]);return{$$typeof:t,type:l,key:x,ref:P,props:m,_owner:o.current}}return Ht.Fragment=r,Ht.jsx=i,Ht.jsxs=i,Ht}var Wt={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,20 +14,20 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),nt=
|
|
20
|
-
`),He
|
|
21
|
-
|
|
17
|
+
*/var Yr;function Kn(){return Yr||(Yr=1,process.env.NODE_ENV!=="production"&&function(){var e=Ve,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),D=Symbol.iterator,N="@@iterator";function _(p){if(p===null||typeof p!="object")return null;var I=D&&p[D]||p[N];return typeof I=="function"?I:null}var W=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(p){{for(var I=arguments.length,q=new Array(I>1?I-1:0),he=1;he<I;he++)q[he-1]=arguments[he];k("error",p,q)}}function k(p,I,q){{var he=W.ReactDebugCurrentFrame,pe=he.getStackAddendum();pe!==""&&(I+="%s",q=q.concat([pe]));var _e=q.map(function(Pe){return String(Pe)});_e.unshift("Warning: "+I),Function.prototype.apply.call(console[p],console,_e)}}var M=!1,z=!1,A=!1,L=!1,B=!1,ue;ue=Symbol.for("react.module.reference");function me(p){return!!(typeof p=="string"||typeof p=="function"||p===n||p===a||B||p===o||p===h||p===b||L||p===P||M||z||A||typeof p=="object"&&p!==null&&(p.$$typeof===x||p.$$typeof===m||p.$$typeof===i||p.$$typeof===l||p.$$typeof===u||p.$$typeof===ue||p.getModuleId!==void 0))}function be(p,I,q){var he=p.displayName;if(he)return he;var pe=I.displayName||I.name||"";return pe!==""?q+"("+pe+")":q}function ve(p){return p.displayName||"Context"}function we(p){if(p==null)return null;if(typeof p.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case h:return"Suspense";case b:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case l:var I=p;return ve(I)+".Consumer";case i:var q=p;return ve(q._context)+".Provider";case u:return be(p,p.render,"ForwardRef");case m:var he=p.displayName||null;return he!==null?he:we(p.type)||"Memo";case x:{var pe=p,_e=pe._payload,Pe=pe._init;try{return we(Pe(_e))}catch{return null}}}return null}var Fe=Object.assign,Ze=0,De,Ce,it,ge,Be,lt,g;function v(){}v.__reactDisabledLog=!0;function X(){{if(Ze===0){De=console.log,Ce=console.info,it=console.warn,ge=console.error,Be=console.group,lt=console.groupCollapsed,g=console.groupEnd;var p={configurable:!0,enumerable:!0,value:v,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}Ze++}}function ke(){{if(Ze--,Ze===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Fe({},p,{value:De}),info:Fe({},p,{value:Ce}),warn:Fe({},p,{value:it}),error:Fe({},p,{value:ge}),group:Fe({},p,{value:Be}),groupCollapsed:Fe({},p,{value:lt}),groupEnd:Fe({},p,{value:g})})}Ze<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ue=W.ReactCurrentDispatcher,Ae;function S(p,I,q){{if(Ae===void 0)try{throw Error()}catch(pe){var he=pe.stack.trim().match(/\n( *(at )?)/);Ae=he&&he[1]||""}return`
|
|
18
|
+
`+Ae+p}}var j=!1,V;{var U=typeof WeakMap=="function"?WeakMap:Map;V=new U}function Y(p,I){if(!p||j)return"";{var q=V.get(p);if(q!==void 0)return q}var he;j=!0;var pe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _e;_e=Ue.current,Ue.current=null,X();try{if(I){var Pe=function(){throw Error()};if(Object.defineProperty(Pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Pe,[])}catch(Ke){he=Ke}Reflect.construct(p,[],Pe)}else{try{Pe.call()}catch(Ke){he=Ke}p.call(Pe.prototype)}}else{try{throw Error()}catch(Ke){he=Ke}p()}}catch(Ke){if(Ke&&he&&typeof Ke.stack=="string"){for(var $e=Ke.stack.split(`
|
|
19
|
+
`),nt=he.stack.split(`
|
|
20
|
+
`),He=$e.length-1,Ye=nt.length-1;He>=1&&Ye>=0&&$e[He]!==nt[Ye];)Ye--;for(;He>=1&&Ye>=0;He--,Ye--)if($e[He]!==nt[Ye]){if(He!==1||Ye!==1)do if(He--,Ye--,Ye<0||$e[He]!==nt[Ye]){var ct=`
|
|
21
|
+
`+$e[He].replace(" at new "," at ");return p.displayName&&ct.includes("<anonymous>")&&(ct=ct.replace("<anonymous>",p.displayName)),typeof p=="function"&&V.set(p,ct),ct}while(He>=1&&Ye>=0);break}}}finally{j=!1,Ue.current=_e,ke(),Error.prepareStackTrace=pe}var xe=p?p.displayName||p.name:"",qe=xe?S(xe):"";return typeof p=="function"&&V.set(p,qe),qe}function H(p,I,q){return Y(p,!1)}function F(p){var I=p.prototype;return!!(I&&I.isReactComponent)}function Q(p,I,q){if(p==null)return"";if(typeof p=="function")return Y(p,F(p));if(typeof p=="string")return S(p);switch(p){case h:return S("Suspense");case b:return S("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case u:return H(p.render);case m:return Q(p.type,I,q);case x:{var he=p,pe=he._payload,_e=he._init;try{return Q(_e(pe),I,q)}catch{}}}return""}var ce=Object.prototype.hasOwnProperty,Oe={},Te=W.ReactDebugCurrentFrame;function le(p){if(p){var I=p._owner,q=Q(p.type,p._source,I?I.type:null);Te.setExtraStackFrame(q)}else Te.setExtraStackFrame(null)}function fe(p,I,q,he,pe){{var _e=Function.call.bind(ce);for(var Pe in p)if(_e(p,Pe)){var $e=void 0;try{if(typeof p[Pe]!="function"){var nt=Error((he||"React class")+": "+q+" type `"+Pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[Pe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw nt.name="Invariant Violation",nt}$e=p[Pe](I,Pe,he,q,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(He){$e=He}$e&&!($e instanceof Error)&&(le(pe),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",he||"React class",q,Pe,typeof $e),le(null)),$e instanceof Error&&!($e.message in Oe)&&(Oe[$e.message]=!0,le(pe),R("Failed %s type: %s",q,$e.message),le(null))}}}var Ee=Array.isArray;function re(p){return Ee(p)}function Je(p){{var I=typeof Symbol=="function"&&Symbol.toStringTag,q=I&&p[Symbol.toStringTag]||p.constructor.name||"Object";return q}}function ut(p){try{return et(p),!1}catch{return!0}}function et(p){return""+p}function We(p){if(ut(p))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(p)),et(p)}var tt=W.ReactCurrentOwner,$t={key:!0,ref:!0,__self:!0,__source:!0},vt,Tt;function kt(p){if(ce.call(p,"ref")){var I=Object.getOwnPropertyDescriptor(p,"ref").get;if(I&&I.isReactWarning)return!1}return p.ref!==void 0}function J(p){if(ce.call(p,"key")){var I=Object.getOwnPropertyDescriptor(p,"key").get;if(I&&I.isReactWarning)return!1}return p.key!==void 0}function Ut(p,I){typeof p.ref=="string"&&tt.current}function Dt(p,I){{var q=function(){vt||(vt=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",I))};q.isReactWarning=!0,Object.defineProperty(p,"key",{get:q,configurable:!0})}}function mt(p,I){{var q=function(){Tt||(Tt=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",I))};q.isReactWarning=!0,Object.defineProperty(p,"ref",{get:q,configurable:!0})}}var Et=function(p,I,q,he,pe,_e,Pe){var $e={$$typeof:t,type:p,key:I,ref:q,props:Pe,_owner:_e};return $e._store={},Object.defineProperty($e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:he}),Object.defineProperty($e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:pe}),Object.freeze&&(Object.freeze($e.props),Object.freeze($e)),$e};function wt(p,I,q,he,pe){{var _e,Pe={},$e=null,nt=null;q!==void 0&&(We(q),$e=""+q),J(I)&&(We(I.key),$e=""+I.key),kt(I)&&(nt=I.ref,Ut(I,pe));for(_e in I)ce.call(I,_e)&&!$t.hasOwnProperty(_e)&&(Pe[_e]=I[_e]);if(p&&p.defaultProps){var He=p.defaultProps;for(_e in He)Pe[_e]===void 0&&(Pe[_e]=He[_e])}if($e||nt){var Ye=typeof p=="function"?p.displayName||p.name||"Unknown":p;$e&&Dt(Pe,Ye),nt&&mt(Pe,Ye)}return Et(p,$e,nt,pe,he,tt.current,Pe)}}var Re=W.ReactCurrentOwner,d=W.ReactDebugCurrentFrame;function y(p){if(p){var I=p._owner,q=Q(p.type,p._source,I?I.type:null);d.setExtraStackFrame(q)}else d.setExtraStackFrame(null)}var $;$=!1;function s(p){return typeof p=="object"&&p!==null&&p.$$typeof===t}function c(){{if(Re.current){var p=we(Re.current.type);if(p)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+p+"`."}return""}}function f(p){return""}var
|
|
23
|
+
Check the render method of \``+p+"`."}return""}}function f(p){return""}var C={};function w(p){{var I=c();if(!I){var q=typeof p=="string"?p:p.displayName||p.name;q&&(I=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+q+">.")}return I}}function T(p,I){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var q=w(I);if(C[q])return;C[q]=!0;var he="";p&&p._owner&&p._owner!==Re.current&&(he=" It was passed a child from "+we(p._owner.type)+"."),y(p),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',q,he),y(null)}}function G(p,I){{if(typeof p!="object")return;if(re(p))for(var q=0;q<p.length;q++){var he=p[q];s(he)&&T(he,I)}else if(s(p))p._store&&(p._store.validated=!0);else if(p){var pe=_(p);if(typeof pe=="function"&&pe!==p.entries)for(var _e=pe.call(p),Pe;!(Pe=_e.next()).done;)s(Pe.value)&&T(Pe.value,I)}}}function ee(p){{var I=p.type;if(I==null||typeof I=="string")return;var q;if(typeof I=="function")q=I.propTypes;else if(typeof I=="object"&&(I.$$typeof===u||I.$$typeof===m))q=I.propTypes;else return;if(q){var he=we(I);fe(q,p.props,"prop",he,p)}else if(I.PropTypes!==void 0&&!$){$=!0;var pe=we(I);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",pe||"Unknown")}typeof I.getDefaultProps=="function"&&!I.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function de(p){{for(var I=Object.keys(p.props),q=0;q<I.length;q++){var he=I[q];if(he!=="children"&&he!=="key"){y(p),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",he),y(null);break}}p.ref!==null&&(y(p),R("Invalid attribute `ref` supplied to `React.Fragment`."),y(null))}}var Ie={};function Se(p,I,q,he,pe,_e){{var Pe=me(p);if(!Pe){var $e="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&($e+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var nt=f();nt?$e+=nt:$e+=c();var He;p===null?He="null":re(p)?He="array":p!==void 0&&p.$$typeof===t?(He="<"+(we(p.type)||"Unknown")+" />",$e=" Did you accidentally export a JSX literal instead of a component?"):He=typeof p,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",He,$e)}var Ye=wt(p,I,q,pe,_e);if(Ye==null)return Ye;if(Pe){var ct=I.children;if(ct!==void 0)if(he)if(re(ct)){for(var xe=0;xe<ct.length;xe++)G(ct[xe],p);Object.freeze&&Object.freeze(ct)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else G(ct,p)}if(ce.call(I,"key")){var qe=we(p),Ke=Object.keys(I).filter(function(zt){return zt!=="key"}),Mt=Ke.length>0?"{key: someKey, "+Ke.join(": ..., ")+": ...}":"{key: someKey}";if(!Ie[qe+Mt]){var $r=Ke.length>0?"{"+Ke.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,Mt,qe,$r,qe),Ie[qe+Mt]=!0}}return p===n?de(Ye):ee(Ye),Ye}}function ze(p,I,q){return Se(p,I,q,!0)}function Ne(p,I,q){return Se(p,I,q,!1)}var Xe=Ne,je=ze;Wt.Fragment=n,Wt.jsx=Xe,Wt.jsxs=je}()),Wt}var Jr;function Zn(){return Jr||(Jr=1,process.env.NODE_ENV==="production"?nr.exports=Xn():nr.exports=Kn()),nr.exports}var O=Zn();const eo=E.h2`
|
|
31
31
|
&&{
|
|
32
32
|
font-family: ${e=>e.theme.fonts.poppins};
|
|
33
33
|
font-weight: 600; //semibold
|
|
@@ -41,7 +41,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
41
41
|
color: ${e=>e.$color?e.theme.colors[e.$color]:e.theme.colors.primary};
|
|
42
42
|
text-align: ${e=>e.$align?e.$align:"left"};
|
|
43
43
|
}
|
|
44
|
-
`,
|
|
44
|
+
`,to=E.span`
|
|
45
45
|
&&{
|
|
46
46
|
text-transform:uppercase;
|
|
47
47
|
font-family: ${e=>e.theme.fonts.poppins};
|
|
@@ -51,7 +51,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
51
51
|
font-size: 14px;
|
|
52
52
|
display:block;
|
|
53
53
|
}
|
|
54
|
-
`,
|
|
54
|
+
`,mn=E.p`
|
|
55
55
|
&&{
|
|
56
56
|
font-family: ${e=>e.theme.fonts.poppins};
|
|
57
57
|
font-weight: ${e=>e.$weight?e.$weight:"500"}; // medium
|
|
@@ -89,7 +89,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
}
|
|
92
|
-
`,
|
|
92
|
+
`,ro=E.span`
|
|
93
93
|
&&{
|
|
94
94
|
font-family: ${e=>e.theme.fonts.poppins};
|
|
95
95
|
color: ${e=>e.$color?e.theme.colors[e.$color]:e.theme.colors.gray60};
|
|
@@ -98,7 +98,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
98
98
|
line-height:16px;
|
|
99
99
|
display:block;
|
|
100
100
|
}
|
|
101
|
-
`,
|
|
101
|
+
`,no=E.p`
|
|
102
102
|
&&{
|
|
103
103
|
font-family: ${e=>e.theme.fonts.poppins};
|
|
104
104
|
font-weight: ${e=>e.$weight?e.$weight:"500"}; // medium
|
|
@@ -112,10 +112,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
112
112
|
z-index: ${e=>e.$visible=="false"?-1:1}; // needed this input overlays the next button if the input is made to appear and disappear
|
|
113
113
|
max-height: ${e=>e.$visible=="false"?"0":"500px"};
|
|
114
114
|
height: ${e=>e.$visible=="false"?"0":"auto"};
|
|
115
|
-
${e=>e.$balance&&
|
|
115
|
+
${e=>e.$balance&&E.css`
|
|
116
116
|
text-wrap: balance;
|
|
117
117
|
`};
|
|
118
|
-
${e=>e.$nowrap&&
|
|
118
|
+
${e=>e.$nowrap&&E.css`
|
|
119
119
|
white-space: nowrap;
|
|
120
120
|
`};
|
|
121
121
|
text-decoration: ${e=>e.$underline?"underline":"none"};
|
|
@@ -146,7 +146,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
}
|
|
149
|
-
`,
|
|
149
|
+
`,qt=E.p`
|
|
150
150
|
&&{
|
|
151
151
|
font-family: ${e=>e.theme.fonts.poppins};
|
|
152
152
|
color: ${e=>e.theme.colors.pine120};
|
|
@@ -155,9 +155,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
155
155
|
line-height: 16px;
|
|
156
156
|
margin: ${e=>e.$margin?e.$margin:"0"};
|
|
157
157
|
text-align: ${e=>e.$align?e.$align:"left"};
|
|
158
|
+
margin-bottom:2px;
|
|
158
159
|
}
|
|
159
160
|
|
|
160
|
-
`,
|
|
161
|
+
`,Nr=E.label`
|
|
161
162
|
&&{
|
|
162
163
|
font-family: ${e=>e.theme.fonts.poppins};
|
|
163
164
|
color: ${e=>e.theme.colors.brandDarkGray};
|
|
@@ -172,7 +173,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
172
173
|
left: 12px;
|
|
173
174
|
}
|
|
174
175
|
|
|
175
|
-
`;
|
|
176
|
+
`;E.h3`
|
|
176
177
|
&&{
|
|
177
178
|
font-family: ${e=>e.theme.fonts.poppins};
|
|
178
179
|
font-weight: 600;
|
|
@@ -185,7 +186,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
185
186
|
font-size: 26px;
|
|
186
187
|
}
|
|
187
188
|
}
|
|
188
|
-
`;const
|
|
189
|
+
`;const oo=E.h4`
|
|
189
190
|
&&{
|
|
190
191
|
font-family: ${e=>e.theme.fonts.poppins};
|
|
191
192
|
font-weight: ${e=>e.$weight?e.$weight:"400"} ;
|
|
@@ -196,11 +197,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
196
197
|
letter-spacing: -0.4px;
|
|
197
198
|
margin: ${e=>e.$margin?e.$margin:"0"};
|
|
198
199
|
text-align: ${e=>e.$align?e.$align:"left"};
|
|
199
|
-
${e=>e.$balance&&
|
|
200
|
+
${e=>e.$balance&&E.css`
|
|
200
201
|
text-wrap: balance;
|
|
201
202
|
`};
|
|
202
203
|
}
|
|
203
|
-
`;
|
|
204
|
+
`;E.p`
|
|
204
205
|
&&{
|
|
205
206
|
font-size: 14px;
|
|
206
207
|
font-family: ${e=>e.theme.fonts.poppins};
|
|
@@ -209,14 +210,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
209
210
|
font-weight: ${e=>e.$weight?e.$weight:"400"};
|
|
210
211
|
text-transform: ${e=>e.$caps=="true"?"uppercase":"none"};
|
|
211
212
|
line-height: 16px;
|
|
212
|
-
${e=>e.$margin&&
|
|
213
|
+
${e=>e.$margin&&E.css`
|
|
213
214
|
margin: ${t=>t.$margin};
|
|
214
215
|
`};
|
|
215
216
|
@media ${e=>e.theme.mediaQuery.lg}{
|
|
216
217
|
font-size: 16px;
|
|
217
218
|
}
|
|
218
219
|
}
|
|
219
|
-
`;
|
|
220
|
+
`;E.p`
|
|
220
221
|
&&{
|
|
221
222
|
font-size: 12px;
|
|
222
223
|
font-family: ${e=>e.theme.fonts.poppins};
|
|
@@ -224,14 +225,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
224
225
|
text-align: ${e=>e.$align?e.$align:"left"};
|
|
225
226
|
color: ${e=>e.$color?e.theme.colors[e.$color]:e.theme.colors.gray};
|
|
226
227
|
text-transform: ${e=>e.$caps=="true"?"uppercase":"none"};
|
|
227
|
-
${e=>e.$margin&&
|
|
228
|
+
${e=>e.$margin&&E.css`
|
|
228
229
|
margin: ${t=>t.$margin};
|
|
229
230
|
`};
|
|
230
231
|
@media ${e=>e.theme.mediaQuery.lg}{
|
|
231
232
|
font-size: 14px;
|
|
232
233
|
}
|
|
233
234
|
}
|
|
234
|
-
`;const
|
|
235
|
+
`;const ao=E.p`
|
|
235
236
|
&& {
|
|
236
237
|
font-size: 12px;
|
|
237
238
|
font-family: ${e=>e.theme.fonts.poppins};
|
|
@@ -239,12 +240,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
239
240
|
text-align: ${e=>e.$align?e.$align:"left"};
|
|
240
241
|
color: ${e=>e.$color?e.theme.colors[e.$color]:e.theme.colors.gray};
|
|
241
242
|
text-transform: ${e=>e.$caps=="true"?"uppercase":"none"};
|
|
242
|
-
${e=>e.$margin&&
|
|
243
|
+
${e=>e.$margin&&E.css`
|
|
243
244
|
margin: ${t=>t.$margin};
|
|
244
245
|
`};
|
|
245
246
|
}
|
|
246
247
|
|
|
247
|
-
`;
|
|
248
|
+
`;E.button`
|
|
248
249
|
&&{
|
|
249
250
|
font-size: 14px;
|
|
250
251
|
font-family: ${e=>e.theme.fonts.poppins};
|
|
@@ -264,7 +265,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
264
265
|
font-size: 16px
|
|
265
266
|
}
|
|
266
267
|
}
|
|
267
|
-
`;
|
|
268
|
+
`;E(Ir.Link)`
|
|
268
269
|
&&{
|
|
269
270
|
font-size: 14px;
|
|
270
271
|
font-family: ${e=>e.theme.fonts.poppins};
|
|
@@ -282,7 +283,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
282
283
|
font-size: 16px
|
|
283
284
|
}
|
|
284
285
|
}
|
|
285
|
-
`;
|
|
286
|
+
`;E.a`
|
|
286
287
|
&&{
|
|
287
288
|
font-size: inherit;
|
|
288
289
|
font-family: ${e=>e.theme.fonts.poppins};
|
|
@@ -300,7 +301,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
300
301
|
font-size: 16px
|
|
301
302
|
}
|
|
302
303
|
}
|
|
303
|
-
`;const
|
|
304
|
+
`;const Pt=E.p`
|
|
304
305
|
&&{
|
|
305
306
|
margin: ${e=>e.$margin?e.$margin:"0px"};
|
|
306
307
|
border-radius: 5px;
|
|
@@ -317,7 +318,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
317
318
|
// right: ${e=>e.$right?e.$right:"0px"};
|
|
318
319
|
text-align:right;
|
|
319
320
|
}
|
|
320
|
-
`;
|
|
321
|
+
`;E.p`
|
|
321
322
|
&&{
|
|
322
323
|
margin: 0 0 15px;
|
|
323
324
|
font-size: 12px;
|
|
@@ -337,7 +338,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
337
338
|
font-size: 14px;
|
|
338
339
|
}
|
|
339
340
|
}
|
|
340
|
-
`;
|
|
341
|
+
`;E(ao)`
|
|
341
342
|
&&{
|
|
342
343
|
display: ${e=>e.$visible?"inline":"none"};
|
|
343
344
|
position: absolute;
|
|
@@ -346,7 +347,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
346
347
|
margin: 0;
|
|
347
348
|
transition: all .2s;
|
|
348
349
|
}
|
|
349
|
-
`;const
|
|
350
|
+
`;const io="../assets/images/hideEyeIcon.png",so="../assets/images/showEyeIcon.png",lo="../assets/images/rightArrowGray.png",co="../assets/images/ivimLogoSm.png",uo="../assets/images/backArrowIcon.png",Lt=E.div`
|
|
350
351
|
&&{
|
|
351
352
|
width: calc(100vw - 20px);
|
|
352
353
|
/* min-width: 392px; */
|
|
@@ -358,13 +359,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
358
359
|
margin-bottom: ${e=>e.$marginBottom?e.$marginBottom:"0"};
|
|
359
360
|
position: ${e=>e.$position?e.$position:"relative"};
|
|
360
361
|
background-color: ${e=>e.$bgColor?e.theme.colors[e.$bgColor]:e.theme.colors.transparent};
|
|
361
|
-
border-radius:
|
|
362
|
+
border-radius: 10px;
|
|
362
363
|
overflow: ${e=>e.$overflow?e.$overflow:"visible"};
|
|
363
364
|
@media ${e=>e.theme.mediaQuery.sm}{
|
|
364
365
|
max-width: ${e=>e.$fluid?"100%":"500px"};
|
|
365
366
|
}
|
|
366
367
|
@media ${e=>e.theme.mediaQuery.md}{
|
|
367
368
|
max-width: ${e=>e.$fluid?"100%":e.$xSmall?"500px":"720px"};
|
|
369
|
+
border-radius: ${e=>e.$bRad?e.$bRad:"0px"};
|
|
368
370
|
padding-right: 20px;
|
|
369
371
|
padding-left: 20px;
|
|
370
372
|
margin-bottom: ${e=>e.$marginBottomMd?e.$marginBottomMd:e.$marginBottom?e.$marginBottom:"0"};
|
|
@@ -376,14 +378,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
376
378
|
max-width: ${e=>e.$fluid?"100%":e.$xSmall?"500px":e.$small?"720px":"1140px"} ;
|
|
377
379
|
}
|
|
378
380
|
|
|
379
|
-
//RESET STYLES FOR FORMIDAVIM
|
|
380
|
-
|
|
381
|
-
& p{
|
|
382
|
-
// margin: 0 0 1em;
|
|
383
|
-
}
|
|
384
381
|
}
|
|
385
382
|
|
|
386
|
-
`,mr=
|
|
383
|
+
`,mr=E.div`
|
|
387
384
|
&&{
|
|
388
385
|
display: -ms-flexbox;
|
|
389
386
|
display: flex;
|
|
@@ -397,7 +394,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
397
394
|
padding: ${e=>e.$padding?e.$padding:"0"};
|
|
398
395
|
justify-content: ${e=>e.$justify?e.$justify:"flex-start"};
|
|
399
396
|
align-items: ${e=>e.$align?e.$align:"flex-start"};
|
|
400
|
-
${e=>e.$borderTopColor&&
|
|
397
|
+
${e=>e.$borderTopColor&&E.css`
|
|
401
398
|
border-top: 2px solid ${e.theme.colors[e.$borderTopColor]};
|
|
402
399
|
`};
|
|
403
400
|
@media ${e=>e.theme.mediaQuery.md}{
|
|
@@ -406,7 +403,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
406
403
|
margin-left: ${e=>e.$noGutter?"-21px":"-10px"};;
|
|
407
404
|
}
|
|
408
405
|
}
|
|
409
|
-
`,
|
|
406
|
+
`,Kt=E.div`
|
|
410
407
|
&&{
|
|
411
408
|
margin: ${e=>e.$margin?e.$margin:"0"};
|
|
412
409
|
display: ${e=>e.$span==="0"?"none":"flex"};
|
|
@@ -419,7 +416,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
419
416
|
padding-right: 10px;
|
|
420
417
|
padding-left: 10px;
|
|
421
418
|
min-width: ${e=>e.$minWidth?e.$minWidth:"10px"};
|
|
422
|
-
${e=>e.$minHeight&&
|
|
419
|
+
${e=>e.$minHeight&&E.css`
|
|
423
420
|
min-height: ${e.$minHeight};
|
|
424
421
|
`};
|
|
425
422
|
/* The span prop determines the column width at each breakpoint with mobile first. */
|
|
@@ -460,24 +457,24 @@ React keys must be passed directly to JSX without using spread:
|
|
|
460
457
|
${e=>e.$inputBoundary==="last"&&"margin-bottom: 0px"};
|
|
461
458
|
}
|
|
462
459
|
}
|
|
463
|
-
`,
|
|
460
|
+
`,fo=E.div`
|
|
464
461
|
&&{
|
|
465
462
|
width: 100%;
|
|
466
463
|
position: relative;
|
|
467
464
|
margin: ${e=>e.$margin?e.$margin:"20px 0px 0px"};
|
|
468
465
|
}
|
|
469
|
-
`;
|
|
466
|
+
`;E.div`
|
|
470
467
|
&&{
|
|
471
468
|
width: 100%;
|
|
472
469
|
height: 100%;
|
|
473
470
|
padding: ${e=>e.$padding?e.$padding:"30px 0px"};
|
|
474
471
|
position: relative;
|
|
475
472
|
background-color: ${e=>e.$color?e.theme.colors[e.$color]:e.theme.colors.lightGreen};
|
|
476
|
-
${e=>e.$minHeight&&
|
|
473
|
+
${e=>e.$minHeight&&E.css`
|
|
477
474
|
min-height: ${e.$minHeight};
|
|
478
475
|
`};
|
|
479
476
|
}
|
|
480
|
-
`;
|
|
477
|
+
`;E.div`
|
|
481
478
|
&&{
|
|
482
479
|
overflow: hidden;
|
|
483
480
|
position: relative;
|
|
@@ -498,16 +495,16 @@ React keys must be passed directly to JSX without using spread:
|
|
|
498
495
|
min-width: ${e=>e.$width?`calc(${e.$width}*2)`:"500px"};
|
|
499
496
|
}
|
|
500
497
|
}
|
|
501
|
-
`;const
|
|
498
|
+
`;const ho=E.div`
|
|
502
499
|
&&{
|
|
503
500
|
position: ${e=>e.$position?e.$position:"static"};
|
|
504
|
-
${e=>e.$top&&
|
|
501
|
+
${e=>e.$top&&E.css`
|
|
505
502
|
top: ${e.$top};
|
|
506
503
|
`};
|
|
507
|
-
${e=>e.$bottom&&
|
|
504
|
+
${e=>e.$bottom&&E.css`
|
|
508
505
|
bottom: ${e.$bottom};
|
|
509
506
|
`};
|
|
510
|
-
${e=>e.$zIndex&&
|
|
507
|
+
${e=>e.$zIndex&&E.css`
|
|
511
508
|
z-index: ${e.$zIndex};
|
|
512
509
|
`};
|
|
513
510
|
display: flex;
|
|
@@ -520,20 +517,20 @@ React keys must be passed directly to JSX without using spread:
|
|
|
520
517
|
padding: ${e=>e.$padding?e.$padding:"0"};
|
|
521
518
|
background-color: ${e=>e.$bgColor?e.theme.colors[e.$bgColor]:"transparent"};
|
|
522
519
|
border-radius: ${e=>e.$bRadius?e.$bRadius:"0"};
|
|
523
|
-
${e=>e.$minWidth&&
|
|
520
|
+
${e=>e.$minWidth&&E.css`
|
|
524
521
|
min-width: ${e.$minWidth};
|
|
525
522
|
`};
|
|
526
|
-
${e=>e.$minHeight&&
|
|
523
|
+
${e=>e.$minHeight&&E.css`
|
|
527
524
|
min-height: ${e.$minHeight};
|
|
528
525
|
`};
|
|
529
|
-
${e=>e.$maxWidth&&
|
|
526
|
+
${e=>e.$maxWidth&&E.css`
|
|
530
527
|
max-width: ${e.$maxWidth};
|
|
531
528
|
`};
|
|
532
|
-
${e=>e.$maxHeight&&
|
|
529
|
+
${e=>e.$maxHeight&&E.css`
|
|
533
530
|
max-height: ${e.$maxHeight};
|
|
534
531
|
`};
|
|
535
532
|
}
|
|
536
|
-
`,gr=
|
|
533
|
+
`,gr=E.div`
|
|
537
534
|
&&{
|
|
538
535
|
display: flex;
|
|
539
536
|
// flex-grow: 1;
|
|
@@ -594,7 +591,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
594
591
|
-moz-box-shadow: 0px -2px 0px 0px rgba(245,244,242,0.75) inset;
|
|
595
592
|
}
|
|
596
593
|
|
|
597
|
-
${e=>e.$isPass=="true"&&
|
|
594
|
+
${e=>e.$isPass=="true"&&E.css`
|
|
598
595
|
& button {
|
|
599
596
|
position: absolute;
|
|
600
597
|
right: 15px;
|
|
@@ -602,7 +599,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
602
599
|
transform: translateY(-50%);
|
|
603
600
|
z-index: 3;
|
|
604
601
|
/* transform: translateY(-50%); */
|
|
605
|
-
background-image: ${e.$show=="true"?`url(${
|
|
602
|
+
background-image: ${e.$show=="true"?`url(${io})`:`url(${so})`};
|
|
606
603
|
background-repeat: no-repeat;
|
|
607
604
|
background-position: center;
|
|
608
605
|
background-size: 21px 15px;
|
|
@@ -620,7 +617,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
620
617
|
}
|
|
621
618
|
`};
|
|
622
619
|
}
|
|
623
|
-
`;
|
|
620
|
+
`;E.div`
|
|
624
621
|
&&{
|
|
625
622
|
display: flex;
|
|
626
623
|
flex-direction: column;
|
|
@@ -673,11 +670,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
673
670
|
background-color: transparent;
|
|
674
671
|
}
|
|
675
672
|
|
|
676
|
-
${
|
|
673
|
+
${Pt} {
|
|
677
674
|
bottom: 73px;
|
|
678
675
|
}
|
|
679
676
|
}
|
|
680
|
-
`;const
|
|
677
|
+
`;const Ur=E.div`
|
|
681
678
|
&&{
|
|
682
679
|
// max-height: ${e=>e.$visible===!0?"10000px":"0"};
|
|
683
680
|
// z-index: ${e=>e.$visible===!0?1:-1}; // needed this input overlays the next button if the input is made to appear and disappear
|
|
@@ -690,7 +687,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
690
687
|
|
|
691
688
|
|
|
692
689
|
|
|
693
|
-
${e=>e.$style=="btn"&&
|
|
690
|
+
${e=>e.$style=="btn"&&E.css`
|
|
694
691
|
margin-bottom: 28px;
|
|
695
692
|
& span {
|
|
696
693
|
width: 100%;
|
|
@@ -739,7 +736,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
739
736
|
}
|
|
740
737
|
`};
|
|
741
738
|
|
|
742
|
-
${e=>(e.$style=="input"||e.$style=="product"||!e.$style)&&
|
|
739
|
+
${e=>(e.$style=="input"||e.$style=="product"||!e.$style)&&E.css`
|
|
743
740
|
& label{
|
|
744
741
|
display: block;
|
|
745
742
|
position: relative;
|
|
@@ -821,7 +818,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
821
818
|
}
|
|
822
819
|
`};
|
|
823
820
|
|
|
824
|
-
${e=>e.$style=="product"&&
|
|
821
|
+
${e=>e.$style=="product"&&E.css`
|
|
825
822
|
background-color: ${t=>t.theme.colors.white};
|
|
826
823
|
/* border: 2px solid ${t=>t.theme.colors.neutral40}; */
|
|
827
824
|
border-radius: 10px;
|
|
@@ -867,9 +864,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
867
864
|
|
|
868
865
|
`};
|
|
869
866
|
|
|
870
|
-
${e=>(e.$style=="productTableAccordion"||e.$style=="productTable"||e.$style=="productTableWithSelectAccordion"||e.$style=="productTableWithSelectCard")&&
|
|
867
|
+
${e=>(e.$style=="productTableAccordion"||e.$style=="productTable"||e.$style=="productTableWithSelectAccordion"||e.$style=="productTableWithSelectCard")&&E.css`
|
|
871
868
|
|
|
872
|
-
& > div > ${
|
|
869
|
+
& > div > ${Kt} > div{
|
|
873
870
|
/* border: 2px solid orange; */
|
|
874
871
|
margin: 0 0 30px;
|
|
875
872
|
background-color: ${t=>t.theme.colors.white};
|
|
@@ -993,7 +990,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
993
990
|
} */
|
|
994
991
|
`};
|
|
995
992
|
}
|
|
996
|
-
`;
|
|
993
|
+
`;E.div`
|
|
997
994
|
&&{
|
|
998
995
|
height: 55px;
|
|
999
996
|
width: 100%;
|
|
@@ -1001,12 +998,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1001
998
|
display: flex;
|
|
1002
999
|
justify-content: flex-end;
|
|
1003
1000
|
padding-right: 5px;
|
|
1004
|
-
& ${
|
|
1001
|
+
& ${oo}{
|
|
1005
1002
|
font-weight: 600;
|
|
1006
1003
|
text-transform: capitalize;
|
|
1007
1004
|
}
|
|
1008
1005
|
}
|
|
1009
|
-
`;
|
|
1006
|
+
`;E.button`
|
|
1010
1007
|
&&{
|
|
1011
1008
|
position: relative;
|
|
1012
1009
|
width: 35px;
|
|
@@ -1016,11 +1013,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1016
1013
|
background-color: transparent;
|
|
1017
1014
|
padding: 0px 10px 10px;
|
|
1018
1015
|
transition: all .2s;
|
|
1019
|
-
background-image: url(${
|
|
1016
|
+
background-image: url(${lo});
|
|
1020
1017
|
background-position: center;
|
|
1021
1018
|
background-repeat: no-repeat;
|
|
1022
1019
|
cursor: pointer;
|
|
1023
|
-
${e=>e.$open==="true"&&
|
|
1020
|
+
${e=>e.$open==="true"&&E.css`
|
|
1024
1021
|
transform: rotate(90deg);
|
|
1025
1022
|
transition: all .2s;
|
|
1026
1023
|
`}
|
|
@@ -1029,7 +1026,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1029
1026
|
height: 45px;
|
|
1030
1027
|
}
|
|
1031
1028
|
}
|
|
1032
|
-
`;
|
|
1029
|
+
`;E.div`
|
|
1033
1030
|
&&{
|
|
1034
1031
|
display: none;
|
|
1035
1032
|
margin: auto 10px auto 0px;
|
|
@@ -1037,7 +1034,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1037
1034
|
background-position: center;
|
|
1038
1035
|
background-size: contain;
|
|
1039
1036
|
background-repeat: no-repeat;
|
|
1040
|
-
background-image: ${e=>e.$bgImg=="default"||!e.$bgImg?`url(${
|
|
1037
|
+
background-image: ${e=>e.$bgImg=="default"||!e.$bgImg?`url(${co})`:`url(${e.$bgImg})`} ;
|
|
1041
1038
|
@media ${e=>e.theme.mediaQuery.xs}{
|
|
1042
1039
|
display: block;
|
|
1043
1040
|
min-width: 40px;
|
|
@@ -1058,7 +1055,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1058
1055
|
min-height:60px;
|
|
1059
1056
|
}
|
|
1060
1057
|
}
|
|
1061
|
-
`;
|
|
1058
|
+
`;E.span`
|
|
1062
1059
|
margin: 0 20px 0 auto;
|
|
1063
1060
|
background-color: ${e=>e.theme.colors.ivimGreen};
|
|
1064
1061
|
color: ${e=>e.theme.colors.white};
|
|
@@ -1078,7 +1075,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1078
1075
|
@media ${e=>e.theme.mediaQuery.sm}{
|
|
1079
1076
|
font-size: 12px;
|
|
1080
1077
|
}
|
|
1081
|
-
`;
|
|
1078
|
+
`;E.div`
|
|
1082
1079
|
&&{
|
|
1083
1080
|
height: ${e=>e.$open=="true"?"auto":"0px"};
|
|
1084
1081
|
padding: ${e=>e.$open=="true"?"15px 0px":"0"};
|
|
@@ -1094,7 +1091,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1094
1091
|
margin: 0 28px;
|
|
1095
1092
|
}
|
|
1096
1093
|
}
|
|
1097
|
-
`;
|
|
1094
|
+
`;E.button`
|
|
1098
1095
|
&&{
|
|
1099
1096
|
display: flex;
|
|
1100
1097
|
justify-content: center;
|
|
@@ -1108,7 +1105,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1108
1105
|
border-radius: 0;
|
|
1109
1106
|
margin-bottom: -17px;
|
|
1110
1107
|
padding: 5px 0px;
|
|
1111
|
-
& ${
|
|
1108
|
+
& ${no}{
|
|
1112
1109
|
margin-bottom: 0px;
|
|
1113
1110
|
}
|
|
1114
1111
|
@media ${e=>e.theme.mediaQuery.md}{
|
|
@@ -1116,7 +1113,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1116
1113
|
margin-right: -28px;
|
|
1117
1114
|
}
|
|
1118
1115
|
}
|
|
1119
|
-
`;const
|
|
1116
|
+
`;const gn=E.div`
|
|
1120
1117
|
&& {
|
|
1121
1118
|
display: flex;
|
|
1122
1119
|
flex-direction: column;
|
|
@@ -1146,7 +1143,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1146
1143
|
content: '';
|
|
1147
1144
|
width: 10px;
|
|
1148
1145
|
height: 10px;
|
|
1149
|
-
background-image: url(${
|
|
1146
|
+
background-image: url(${uo});
|
|
1150
1147
|
background-position: center;
|
|
1151
1148
|
background-repeat: no-repeat;
|
|
1152
1149
|
background-size: contain;
|
|
@@ -1160,7 +1157,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1160
1157
|
border-radius: 10px;
|
|
1161
1158
|
font-size: 14px;
|
|
1162
1159
|
font-weight: 500;
|
|
1163
|
-
padding-top: 14px!important;
|
|
1160
|
+
// padding-top: 14px!important;
|
|
1164
1161
|
padding-left: 12px;
|
|
1165
1162
|
padding-right: 17px;
|
|
1166
1163
|
display: block;
|
|
@@ -1179,7 +1176,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1179
1176
|
background-color: transparent;
|
|
1180
1177
|
}
|
|
1181
1178
|
}
|
|
1182
|
-
`;
|
|
1179
|
+
`;E.div`
|
|
1183
1180
|
&& {
|
|
1184
1181
|
display: flex;
|
|
1185
1182
|
flex-direction: column;
|
|
@@ -1287,7 +1284,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1287
1284
|
margin-top: 5px;
|
|
1288
1285
|
}
|
|
1289
1286
|
}
|
|
1290
|
-
`;const
|
|
1287
|
+
`;const po=E.div`
|
|
1291
1288
|
&&{
|
|
1292
1289
|
display: flex;
|
|
1293
1290
|
flex-direction: column;
|
|
@@ -1366,16 +1363,16 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1366
1363
|
}
|
|
1367
1364
|
|
|
1368
1365
|
}
|
|
1369
|
-
`,
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1366
|
+
`,mo=E.div`
|
|
1367
|
+
// max-width: 900px;
|
|
1368
|
+
// margin: 0 auto;
|
|
1369
|
+
// padding: 16px;
|
|
1373
1370
|
position: relative;
|
|
1374
1371
|
|
|
1375
1372
|
@media (min-width: 768px) {
|
|
1376
|
-
padding: 32px;
|
|
1373
|
+
// padding: 32px;
|
|
1377
1374
|
}
|
|
1378
|
-
`,
|
|
1375
|
+
`,Xr=E.button`
|
|
1379
1376
|
&&{
|
|
1380
1377
|
border-radius: ${e=>e.$radius?e.$radius:"5px"};
|
|
1381
1378
|
padding: 10px 20px;
|
|
@@ -1394,7 +1391,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1394
1391
|
min-width: ${e=>e.$minWidth?e.$minWidth:"110px"};
|
|
1395
1392
|
width: 100%;
|
|
1396
1393
|
margin: ${e=>e.$margin?e.$margin:"0 20px 15px 0"};
|
|
1397
|
-
${e=>e.$disable?
|
|
1394
|
+
${e=>e.$disable?E.css`
|
|
1398
1395
|
/* allows the button to be clicked in the instance there is a function that the use case wants the button to be clickable i.e. triggering error states */
|
|
1399
1396
|
pointer-events: ${t=>t.$allowDisableClick?"auto":"none"};
|
|
1400
1397
|
opacity: .4;
|
|
@@ -1402,7 +1399,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1402
1399
|
cursor: not-allowed;
|
|
1403
1400
|
background-color: ${e.theme.colors.primary};
|
|
1404
1401
|
}
|
|
1405
|
-
`:
|
|
1402
|
+
`:E.css`
|
|
1406
1403
|
&:hover{
|
|
1407
1404
|
transition: all .2s;
|
|
1408
1405
|
cursor: pointer;
|
|
@@ -1416,7 +1413,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1416
1413
|
}
|
|
1417
1414
|
|
|
1418
1415
|
|
|
1419
|
-
${e=>e.$includeIcon&&
|
|
1416
|
+
${e=>e.$includeIcon&&E.css`
|
|
1420
1417
|
& >div {
|
|
1421
1418
|
background-image: ${t=>`url('/assets/images/${t.$icon}Icon.png')`};
|
|
1422
1419
|
width: 24px;
|
|
@@ -1427,7 +1424,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1427
1424
|
|
|
1428
1425
|
`}
|
|
1429
1426
|
}
|
|
1430
|
-
`;
|
|
1427
|
+
`;E.button`
|
|
1431
1428
|
&&{
|
|
1432
1429
|
border-radius: 4px;
|
|
1433
1430
|
padding: 10px 15px;
|
|
@@ -1443,7 +1440,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1443
1440
|
border: 2px solid ${e=>e.theme.colors.pine120};
|
|
1444
1441
|
color: ${e=>e.$color?e.theme.colors[e.$color]:e.theme.colors.white};
|
|
1445
1442
|
margin: ${e=>e.$margin?e.$margin:"0 0 15px 0"};
|
|
1446
|
-
${e=>e.$icon=="true"&&
|
|
1443
|
+
${e=>e.$icon=="true"&&E.css`
|
|
1447
1444
|
&::before {
|
|
1448
1445
|
content: "";
|
|
1449
1446
|
display: block;
|
|
@@ -1474,7 +1471,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1474
1471
|
}
|
|
1475
1472
|
}
|
|
1476
1473
|
}
|
|
1477
|
-
`;
|
|
1474
|
+
`;E.a`
|
|
1478
1475
|
&&{
|
|
1479
1476
|
border-radius: ${e=>e.$radius?e.$radius:"5px"};
|
|
1480
1477
|
padding: 10px 20px;
|
|
@@ -1493,13 +1490,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1493
1490
|
min-width: ${e=>e.$minWidth?e.$minWidth:"110px"};
|
|
1494
1491
|
width: 100%;
|
|
1495
1492
|
margin: ${e=>e.$margin?e.$margin:"0 20px 15px 0"};
|
|
1496
|
-
${e=>e.$disable?
|
|
1493
|
+
${e=>e.$disable?E.css`
|
|
1497
1494
|
pointer-events: none;
|
|
1498
1495
|
opacity: .4;
|
|
1499
1496
|
&:hover {
|
|
1500
1497
|
cursor: not-allowed;
|
|
1501
1498
|
}
|
|
1502
|
-
`:
|
|
1499
|
+
`:E.css`
|
|
1503
1500
|
&:hover{
|
|
1504
1501
|
transition: all .2s;
|
|
1505
1502
|
cursor: pointer;
|
|
@@ -1512,7 +1509,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1512
1509
|
max-width: ${e=>e.$minWidth==="100%"?e.$minWidth:"364px"};
|
|
1513
1510
|
}
|
|
1514
1511
|
|
|
1515
|
-
${e=>e.$includeIcon&&
|
|
1512
|
+
${e=>e.$includeIcon&&E.css`
|
|
1516
1513
|
& >div {
|
|
1517
1514
|
background-image: ${t=>`url('/assets/images/${t.$icon}Icon.png')`};
|
|
1518
1515
|
width: 24px;
|
|
@@ -1523,7 +1520,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1523
1520
|
|
|
1524
1521
|
`}
|
|
1525
1522
|
}
|
|
1526
|
-
`;
|
|
1523
|
+
`;E.a`
|
|
1527
1524
|
&&{
|
|
1528
1525
|
border-radius: 4px;
|
|
1529
1526
|
padding: 5px;
|
|
@@ -1539,7 +1536,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1539
1536
|
border: 2px solid ${e=>e.theme.colors.pine120};
|
|
1540
1537
|
color: ${e=>e.$color?e.theme.colors[e.$color]:e.theme.colors.white};
|
|
1541
1538
|
margin: ${e=>e.$margin?e.$margin:"0 0 15px 0"};
|
|
1542
|
-
${e=>e.$icon=="true"&&
|
|
1539
|
+
${e=>e.$icon=="true"&&E.css`
|
|
1543
1540
|
&::before {
|
|
1544
1541
|
content: "";
|
|
1545
1542
|
display: block;
|
|
@@ -1577,7 +1574,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1577
1574
|
|
|
1578
1575
|
|
|
1579
1576
|
}
|
|
1580
|
-
`;
|
|
1577
|
+
`;E.button`
|
|
1581
1578
|
&&{
|
|
1582
1579
|
border: none;
|
|
1583
1580
|
background-color: transparent;
|
|
@@ -1597,7 +1594,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1597
1594
|
}
|
|
1598
1595
|
}
|
|
1599
1596
|
|
|
1600
|
-
`;
|
|
1597
|
+
`;E.button`
|
|
1601
1598
|
&&{
|
|
1602
1599
|
border: none;
|
|
1603
1600
|
background-color: transparent;
|
|
@@ -1617,7 +1614,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1617
1614
|
}
|
|
1618
1615
|
}
|
|
1619
1616
|
|
|
1620
|
-
`;
|
|
1617
|
+
`;E.button`
|
|
1621
1618
|
&&{
|
|
1622
1619
|
border-radius: 40px;
|
|
1623
1620
|
padding: 10px 20px;
|
|
@@ -1637,14 +1634,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1637
1634
|
min-width: ${e=>e.$minWidth?e.$minWidth:"110px"};
|
|
1638
1635
|
margin: ${e=>e.$margin?e.$margin:"0 20px 15px 0"};
|
|
1639
1636
|
|
|
1640
|
-
${e=>e.$disabled?
|
|
1637
|
+
${e=>e.$disabled?E.css`
|
|
1641
1638
|
opacity: .4;
|
|
1642
1639
|
color: ${t=>t.$btnStyle==="alt"?t.theme.colors.gray:t.theme.colors.lightGray};
|
|
1643
1640
|
background-color: ${t=>t.$btnStyle==="alt"?t.theme.colors.white:t.theme.colors.gray};
|
|
1644
1641
|
&:hover {
|
|
1645
1642
|
cursor: not-allowed;
|
|
1646
1643
|
}
|
|
1647
|
-
`:
|
|
1644
|
+
`:E.css`
|
|
1648
1645
|
&:hover{
|
|
1649
1646
|
transition: all .2s;
|
|
1650
1647
|
cursor: pointer;
|
|
@@ -1656,7 +1653,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1656
1653
|
min-width: ${e=>e.$minWidth==="100%"?e.$minWidth:"245px"};
|
|
1657
1654
|
}
|
|
1658
1655
|
}
|
|
1659
|
-
`;
|
|
1656
|
+
`;E.button`
|
|
1660
1657
|
&&{
|
|
1661
1658
|
border-radius: 40px;
|
|
1662
1659
|
padding: 10px 20px;
|
|
@@ -1677,7 +1674,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1677
1674
|
min-width: ${e=>e.$minWidth?e.$minWidth:"110px"};
|
|
1678
1675
|
margin: ${e=>e.$margin?e.$margin:"0 20px 15px 0"};
|
|
1679
1676
|
|
|
1680
|
-
${e=>e.$disabled?
|
|
1677
|
+
${e=>e.$disabled?E.css`
|
|
1681
1678
|
opacity: .4;
|
|
1682
1679
|
color: ${t=>t.theme.colors.lightGray};
|
|
1683
1680
|
background-color: ${t=>t.$btnStyle==="alt"?t.theme.colors.transparent:t.theme.colors.white};
|
|
@@ -1686,7 +1683,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1686
1683
|
&:hover {
|
|
1687
1684
|
cursor: not-allowed;
|
|
1688
1685
|
}
|
|
1689
|
-
`:
|
|
1686
|
+
`:E.css`
|
|
1690
1687
|
&:hover{
|
|
1691
1688
|
transition: all .2s;
|
|
1692
1689
|
cursor: pointer;
|
|
@@ -1697,7 +1694,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1697
1694
|
`}
|
|
1698
1695
|
|
|
1699
1696
|
// to use the icon styling you must add an icon name in the assets folder to the prop ie. $icon='plus'
|
|
1700
|
-
${e=>e.$icon&&
|
|
1697
|
+
${e=>e.$icon&&E.css`
|
|
1701
1698
|
& span {
|
|
1702
1699
|
background: url('/assets/images/' + props.$icon + '.png') no-repeat;
|
|
1703
1700
|
width: 20px;
|
|
@@ -1709,7 +1706,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1709
1706
|
min-width: ${e=>e.$minWidth==="100%"?e.$minWidth:"245px"};
|
|
1710
1707
|
}
|
|
1711
1708
|
}
|
|
1712
|
-
`;
|
|
1709
|
+
`;E(Ir.Link)`
|
|
1713
1710
|
&&{
|
|
1714
1711
|
background-color: ${e=>e.theme.colors.white};
|
|
1715
1712
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -1737,7 +1734,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1737
1734
|
margin: 0px 0px 30px;
|
|
1738
1735
|
}
|
|
1739
1736
|
}
|
|
1740
|
-
`;
|
|
1737
|
+
`;E.a`
|
|
1741
1738
|
&&{
|
|
1742
1739
|
border-radius: 40px;
|
|
1743
1740
|
padding: 10px 20px;
|
|
@@ -1758,7 +1755,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1758
1755
|
min-width: ${e=>e.$minWidth?e.$minWidth:"110px"};
|
|
1759
1756
|
margin: ${e=>e.$margin?e.$margin:"0 20px 15px 0"};
|
|
1760
1757
|
|
|
1761
|
-
${e=>e.$disabled?
|
|
1758
|
+
${e=>e.$disabled?E.css`
|
|
1762
1759
|
opacity: .4;
|
|
1763
1760
|
color: ${t=>t.theme.colors.lightGray};
|
|
1764
1761
|
background-color: ${t=>t.$btnStyle==="alt"?t.theme.colors.transparent:t.theme.colors.white};
|
|
@@ -1767,7 +1764,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1767
1764
|
&:hover {
|
|
1768
1765
|
cursor: not-allowed;
|
|
1769
1766
|
}
|
|
1770
|
-
`:
|
|
1767
|
+
`:E.css`
|
|
1771
1768
|
&:hover{
|
|
1772
1769
|
transition: all .2s;
|
|
1773
1770
|
cursor: pointer;
|
|
@@ -1778,7 +1775,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1778
1775
|
`}
|
|
1779
1776
|
|
|
1780
1777
|
// to use the icon styling you must add an icon name in the assets folder to the prop ie. $icon='plus'
|
|
1781
|
-
${e=>e.$icon&&
|
|
1778
|
+
${e=>e.$icon&&E.css`
|
|
1782
1779
|
& span {
|
|
1783
1780
|
background: url('/assets/images/' + props.$icon + '.png') no-repeat;
|
|
1784
1781
|
width: 20px;
|
|
@@ -1790,7 +1787,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1790
1787
|
min-width: ${e=>e.$minWidth==="100%"?e.$minWidth:"245px"};
|
|
1791
1788
|
}
|
|
1792
1789
|
}
|
|
1793
|
-
`;
|
|
1790
|
+
`;E(Ir.Link)`
|
|
1794
1791
|
&&{
|
|
1795
1792
|
background: url('/assets/images/backArrowIcon.png') no-repeat;
|
|
1796
1793
|
border: none;
|
|
@@ -1809,11 +1806,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1809
1806
|
transition: all .2s;
|
|
1810
1807
|
}
|
|
1811
1808
|
opacity: ${e=>e.$fadeout?"1":"0"};
|
|
1812
|
-
${e=>e.$fadeout&&
|
|
1809
|
+
${e=>e.$fadeout&&E.css`
|
|
1813
1810
|
transition: opacity .2s ease-in;
|
|
1814
1811
|
`};
|
|
1815
1812
|
}
|
|
1816
|
-
`;
|
|
1813
|
+
`;E.a`
|
|
1817
1814
|
&&{
|
|
1818
1815
|
border-radius: 40px;
|
|
1819
1816
|
padding: 10px 20px;
|
|
@@ -1836,9 +1833,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1836
1833
|
min-width: ${e=>e.$minWidth==="100%"?e.$minWidth:"245px"};
|
|
1837
1834
|
}
|
|
1838
1835
|
}
|
|
1839
|
-
`;
|
|
1836
|
+
`;E.button`
|
|
1840
1837
|
&&{
|
|
1841
|
-
${e=>e.$icon==="greenInfo"?
|
|
1838
|
+
${e=>e.$icon==="greenInfo"?E.css`
|
|
1842
1839
|
background-color: ${t=>t.theme.colors.transparent};
|
|
1843
1840
|
background-image: url('/assets/images/greenInfoIcon.png');
|
|
1844
1841
|
background-size: contain;
|
|
@@ -1855,7 +1852,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1855
1852
|
input:checked ~ & {
|
|
1856
1853
|
background-image: url('/assets/images/whiteInfoIcon.png');
|
|
1857
1854
|
}
|
|
1858
|
-
`:
|
|
1855
|
+
`:E.css`
|
|
1859
1856
|
border-radius: 5px;
|
|
1860
1857
|
min-width: 18px;
|
|
1861
1858
|
min-height: 18px;
|
|
@@ -1877,7 +1874,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1877
1874
|
}
|
|
1878
1875
|
`}
|
|
1879
1876
|
}
|
|
1880
|
-
`;
|
|
1877
|
+
`;E.div`
|
|
1881
1878
|
&&{
|
|
1882
1879
|
border-radius: 50%;
|
|
1883
1880
|
width: 40px;
|
|
@@ -1895,7 +1892,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1895
1892
|
height: 60px;
|
|
1896
1893
|
}
|
|
1897
1894
|
}
|
|
1898
|
-
`;
|
|
1895
|
+
`;E.div`
|
|
1899
1896
|
&&{
|
|
1900
1897
|
background: url('/assets/images/headerBg.png') no-repeat;
|
|
1901
1898
|
background-position: right;
|
|
@@ -1904,7 +1901,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1904
1901
|
background-color: ${e=>e.$headerText==="Orders"?e.theme.colors.ltBlue:e.$headerText==="Account Details"?e.theme.colors.ltPurple:e.$headerText==="Dosing"?e.theme.colors.xltGray:e.$headerText==="Appointments"?e.theme.colors.ltGray:e.theme.colors.lightGreen};
|
|
1905
1902
|
height: 84px;
|
|
1906
1903
|
}
|
|
1907
|
-
`;
|
|
1904
|
+
`;E.div`
|
|
1908
1905
|
/* adding header="true" will style the first div in the card container with a bottom border, the text inside that div should be an h6 and will be styled by this component as the card header text */
|
|
1909
1906
|
/* the second div is considered the card content and the text will need to be styled seperately */
|
|
1910
1907
|
/* adding collapsible true and a button in the first div with the h6 will create the arrow and and a collapsible card content area, but you must set the onclick events to handle state for the accordions */
|
|
@@ -1931,19 +1928,19 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1931
1928
|
margin: 0px 0px 5px;
|
|
1932
1929
|
font-weight: 400;
|
|
1933
1930
|
}
|
|
1934
|
-
${e=>e.$header=="true"&&
|
|
1931
|
+
${e=>e.$header=="true"&&E.css`
|
|
1935
1932
|
display: flex;
|
|
1936
1933
|
justify-content: space-between;
|
|
1937
1934
|
align-items: center;
|
|
1938
1935
|
`};
|
|
1939
|
-
${e=>e.$collapsible==="true"&&!e.$show&&
|
|
1936
|
+
${e=>e.$collapsible==="true"&&!e.$show&&E.css`
|
|
1940
1937
|
border-width: 0px;
|
|
1941
1938
|
transition: border-width .2s;
|
|
1942
1939
|
`};
|
|
1943
|
-
${e=>e.$collapsible=="true"&&
|
|
1940
|
+
${e=>e.$collapsible=="true"&&E.css`
|
|
1944
1941
|
cursor: pointer;
|
|
1945
1942
|
`};
|
|
1946
|
-
${e=>e.$collapsible&&
|
|
1943
|
+
${e=>e.$collapsible&&E.css`
|
|
1947
1944
|
& > div {
|
|
1948
1945
|
width: 20px;
|
|
1949
1946
|
height: 20px;
|
|
@@ -1951,7 +1948,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1951
1948
|
background-size: 30px;
|
|
1952
1949
|
background-position: center;
|
|
1953
1950
|
transition: all .2s;
|
|
1954
|
-
${t=>t.$collapsible=="true"&&t.$show&&
|
|
1951
|
+
${t=>t.$collapsible=="true"&&t.$show&&E.css`
|
|
1955
1952
|
rotate: -180deg;
|
|
1956
1953
|
transition: all .2s;
|
|
1957
1954
|
`};
|
|
@@ -1962,15 +1959,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1962
1959
|
height: 100%;
|
|
1963
1960
|
flex: 1 1 auto;
|
|
1964
1961
|
position: relative;
|
|
1965
|
-
${e=>!e.$collapsible&&
|
|
1962
|
+
${e=>!e.$collapsible&&E.css`
|
|
1966
1963
|
padding: ${t=>t.$header=="true"?"20px":"0px"};
|
|
1967
1964
|
`};
|
|
1968
|
-
${e=>e.$collapsible=="true"&&e.$show&&
|
|
1965
|
+
${e=>e.$collapsible=="true"&&e.$show&&E.css`
|
|
1969
1966
|
padding: 20px;
|
|
1970
1967
|
transition: max-height .35s, padding .01s;
|
|
1971
1968
|
max-height: ${t=>t.$collapsible=="true"&&t.$show?"1000000px":"0"} ;
|
|
1972
1969
|
`};
|
|
1973
|
-
${e=>e.$collapsible=="true"&&!e.$show&&
|
|
1970
|
+
${e=>e.$collapsible=="true"&&!e.$show&&E.css`
|
|
1974
1971
|
padding: 0;
|
|
1975
1972
|
max-height: 0;
|
|
1976
1973
|
transition: max-height .25s, padding .1s ease .2s;
|
|
@@ -1981,7 +1978,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1981
1978
|
margin: 0 0 30px
|
|
1982
1979
|
}
|
|
1983
1980
|
}
|
|
1984
|
-
`;
|
|
1981
|
+
`;E.div`
|
|
1985
1982
|
&&{
|
|
1986
1983
|
display: ${e=>e.$show=="true"?"block":"none"};
|
|
1987
1984
|
width: 100%;
|
|
@@ -1997,7 +1994,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1997
1994
|
outline: 0;
|
|
1998
1995
|
background-color: rgba(55,57,70,.8);
|
|
1999
1996
|
|
|
2000
|
-
${
|
|
1997
|
+
${Lt} {
|
|
2001
1998
|
position: absolute;
|
|
2002
1999
|
top: 30px;
|
|
2003
2000
|
left: 50%;
|
|
@@ -2005,7 +2002,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2005
2002
|
max-height: ${e=>e.$maxHeight?e.$maxHeight:"auto"}
|
|
2006
2003
|
}
|
|
2007
2004
|
}
|
|
2008
|
-
`;
|
|
2005
|
+
`;E.div`
|
|
2009
2006
|
&&{
|
|
2010
2007
|
display: block;
|
|
2011
2008
|
width: 100%;
|
|
@@ -2026,7 +2023,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2026
2023
|
} */
|
|
2027
2024
|
|
|
2028
2025
|
|
|
2029
|
-
${
|
|
2026
|
+
${Lt} {
|
|
2030
2027
|
position: absolute;
|
|
2031
2028
|
left: 50%;
|
|
2032
2029
|
bottom: 0;
|
|
@@ -2044,7 +2041,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2044
2041
|
}
|
|
2045
2042
|
|
|
2046
2043
|
}
|
|
2047
|
-
`;
|
|
2044
|
+
`;E.form`
|
|
2048
2045
|
&&{
|
|
2049
2046
|
width: 100%;
|
|
2050
2047
|
position: relative;
|
|
@@ -2057,7 +2054,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2057
2054
|
background-color: ${e=>e.theme.colors.neutral30};
|
|
2058
2055
|
}
|
|
2059
2056
|
}
|
|
2060
|
-
`;const
|
|
2057
|
+
`;const Kr=E.img`
|
|
2061
2058
|
&&{
|
|
2062
2059
|
height: auto;
|
|
2063
2060
|
width: 100px;
|
|
@@ -2070,7 +2067,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2070
2067
|
width: 145px;
|
|
2071
2068
|
}
|
|
2072
2069
|
}
|
|
2073
|
-
`,
|
|
2070
|
+
`,yn=E.button`
|
|
2074
2071
|
&&{
|
|
2075
2072
|
height: 25px;
|
|
2076
2073
|
width: 25px;
|
|
@@ -2085,11 +2082,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2085
2082
|
color:white;
|
|
2086
2083
|
border:0px;
|
|
2087
2084
|
}
|
|
2088
|
-
|
|
2085
|
+
`,go=E(yn)`
|
|
2089
2086
|
&&{
|
|
2090
|
-
position: fixed;
|
|
2087
|
+
// position: fixed;
|
|
2088
|
+
position: absolute;
|
|
2091
2089
|
z-index: 20;
|
|
2092
|
-
top:
|
|
2090
|
+
top: 18px;
|
|
2093
2091
|
left: 18px;
|
|
2094
2092
|
@media ${e=>e.theme.mediaQuery.sm}{
|
|
2095
2093
|
left: 16%;
|
|
@@ -2098,7 +2096,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2098
2096
|
display: none;
|
|
2099
2097
|
}
|
|
2100
2098
|
}
|
|
2101
|
-
`;
|
|
2099
|
+
`;E.hr`
|
|
2102
2100
|
|
|
2103
2101
|
&&{
|
|
2104
2102
|
height: 2px;
|
|
@@ -2108,7 +2106,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2108
2106
|
background-color: ${e=>e.theme.colors.purple};
|
|
2109
2107
|
}
|
|
2110
2108
|
|
|
2111
|
-
`;
|
|
2109
|
+
`;E.div`
|
|
2112
2110
|
&&{
|
|
2113
2111
|
background-image: ${e=>"url('/assets/images/ivimLogoSm.png')"};
|
|
2114
2112
|
background-size: contain;
|
|
@@ -2118,7 +2116,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2118
2116
|
height: ${e=>e.$height?e.$height:"100%"};;
|
|
2119
2117
|
margin: ${e=>e.$margin?e.$margin:"0"};
|
|
2120
2118
|
background-color: ${e=>e.$bgColor?e.theme.colors[e.$bgColor]:"transparent"};
|
|
2121
|
-
${e=>e.$rotate&&
|
|
2119
|
+
${e=>e.$rotate&&E.css`
|
|
2122
2120
|
animation: pulse 2s infinite;
|
|
2123
2121
|
`};
|
|
2124
2122
|
@keyframes pulse {
|
|
@@ -2133,7 +2131,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2133
2131
|
}
|
|
2134
2132
|
}
|
|
2135
2133
|
}
|
|
2136
|
-
`;
|
|
2134
|
+
`;E.div`
|
|
2137
2135
|
&&{
|
|
2138
2136
|
z-index: 1000;
|
|
2139
2137
|
font-size: 11px;
|
|
@@ -2150,19 +2148,19 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2150
2148
|
width: ${e=>e.$width?e.$width:"20px"};
|
|
2151
2149
|
height: ${e=>e.$height?e.$height:"20px"};
|
|
2152
2150
|
margin: ${e=>e.$margin?e.$margin:"0"};
|
|
2153
|
-
${e=>e.$top&&
|
|
2151
|
+
${e=>e.$top&&E.css`
|
|
2154
2152
|
top: ${t=>t.$top};
|
|
2155
2153
|
`};
|
|
2156
|
-
${e=>e.$right&&
|
|
2154
|
+
${e=>e.$right&&E.css`
|
|
2157
2155
|
right: ${t=>t.$right};
|
|
2158
2156
|
`};
|
|
2159
|
-
${e=>e.$bottom&&
|
|
2157
|
+
${e=>e.$bottom&&E.css`
|
|
2160
2158
|
bottom: ${t=>t.$bottom};
|
|
2161
2159
|
`};
|
|
2162
|
-
${e=>e.$left&&
|
|
2160
|
+
${e=>e.$left&&E.css`
|
|
2163
2161
|
left: ${t=>t.$left};
|
|
2164
2162
|
`};
|
|
2165
|
-
${e=>e.$transform&&
|
|
2163
|
+
${e=>e.$transform&&E.css`
|
|
2166
2164
|
transform: ${t=>t.$transform};
|
|
2167
2165
|
`};
|
|
2168
2166
|
@media ${e=>e.theme.mediaQuery.md}{
|
|
@@ -2171,7 +2169,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2171
2169
|
width: ${e=>e.$width?`calc(${e.$width} + 5px)`:"25px"};
|
|
2172
2170
|
}
|
|
2173
2171
|
}
|
|
2174
|
-
`;
|
|
2172
|
+
`;E.div`
|
|
2175
2173
|
&&{
|
|
2176
2174
|
display: none;
|
|
2177
2175
|
@media ${e=>e.theme.mediaQuery.md}{
|
|
@@ -2186,7 +2184,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2186
2184
|
border-bottom: ${e=>e.$borderOff?"none":`2px solid ${e.theme.colors.neutral30}`};
|
|
2187
2185
|
}
|
|
2188
2186
|
}
|
|
2189
|
-
|
|
2187
|
+
`;const yo=E.div`
|
|
2190
2188
|
&&{
|
|
2191
2189
|
display: none;
|
|
2192
2190
|
@media ${e=>e.theme.mediaQuery.md}{
|
|
@@ -2205,7 +2203,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2205
2203
|
}
|
|
2206
2204
|
|
|
2207
2205
|
}
|
|
2208
|
-
`,bo=
|
|
2206
|
+
`,bo=E.img`
|
|
2209
2207
|
&& {
|
|
2210
2208
|
display: block; // needed for centering using auto left and right margin
|
|
2211
2209
|
border-radius: 20px;
|
|
@@ -2214,12 +2212,91 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2214
2212
|
max-width: 100%;
|
|
2215
2213
|
height: auto;
|
|
2216
2214
|
}
|
|
2217
|
-
`,
|
|
2215
|
+
`,Mr=E.p`
|
|
2218
2216
|
&& {
|
|
2219
2217
|
// margin: 0 0 1em;
|
|
2220
2218
|
margin: 0 0 0em;
|
|
2221
2219
|
}
|
|
2222
|
-
`,
|
|
2220
|
+
`,xo=E.div`
|
|
2221
|
+
&&{
|
|
2222
|
+
display: none;
|
|
2223
|
+
@media ${e=>e.theme.mediaQuery.md}{
|
|
2224
|
+
display: flex;
|
|
2225
|
+
justify-content: space-between;
|
|
2226
|
+
align-items: center;
|
|
2227
|
+
position: relative;
|
|
2228
|
+
background-color: ${e=>e.theme.colors.white};
|
|
2229
|
+
top: 0;
|
|
2230
|
+
height: 100px;
|
|
2231
|
+
z-index: 2;
|
|
2232
|
+
border-bottom: 2px solid ${e=>e.theme.colors.neutral30};
|
|
2233
|
+
|
|
2234
|
+
}
|
|
2235
|
+
}
|
|
2236
|
+
`,wo=E.div`
|
|
2237
|
+
&& {
|
|
2238
|
+
display: block;
|
|
2239
|
+
position: absolute;
|
|
2240
|
+
bottom: 0;
|
|
2241
|
+
width: 100%;
|
|
2242
|
+
background-color: ${e=>e.theme.colors.neutral40};
|
|
2243
|
+
height: 5px;
|
|
2244
|
+
margin: 0;
|
|
2245
|
+
/* margin-bottom: 20px; */
|
|
2246
|
+
@media ${e=>e.theme.mediaQuery.md}{
|
|
2247
|
+
display: none;
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
`,$o=E.div`
|
|
2252
|
+
&&{
|
|
2253
|
+
display: flex;
|
|
2254
|
+
justify-content: flex-end;
|
|
2255
|
+
align-items: center;
|
|
2256
|
+
background-color: ${e=>e.theme.colors.white};
|
|
2257
|
+
position: sticky;
|
|
2258
|
+
top: 0;
|
|
2259
|
+
height: ${e=>e.$tracker?"64px":"60px"};
|
|
2260
|
+
z-index: 10;
|
|
2261
|
+
margin-bottom: 28px;
|
|
2262
|
+
|
|
2263
|
+
@media ${e=>e.theme.mediaQuery.md}{
|
|
2264
|
+
display: none;
|
|
2265
|
+
border: none;
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
`;E.div`
|
|
2269
|
+
&&{
|
|
2270
|
+
width:${e=>`calc(( ${e.$currentStep} / ${e.$totalSteps} ) *100%)`};
|
|
2271
|
+
background-color: ${e=>e.theme.colors.ivimGreen};
|
|
2272
|
+
height: 100%;
|
|
2273
|
+
transition: width 0.3s ease-in-out;
|
|
2274
|
+
}
|
|
2275
|
+
`;const vo=E.div`
|
|
2276
|
+
&&{
|
|
2277
|
+
position: fixed;
|
|
2278
|
+
bottom: 0;
|
|
2279
|
+
transform: translateY(0);
|
|
2280
|
+
z-index: 10;
|
|
2281
|
+
display: flex;
|
|
2282
|
+
flex: 1 1 auto;
|
|
2283
|
+
flex-wrap: 'nowrap';
|
|
2284
|
+
flex-direction: 'row';
|
|
2285
|
+
justify-content: center;
|
|
2286
|
+
align-items: 'center';
|
|
2287
|
+
margin: 0 ;
|
|
2288
|
+
padding: 18px 18px 3px;
|
|
2289
|
+
background-color: ${e=>e.theme.colors.white};
|
|
2290
|
+
border-radius: 0;
|
|
2291
|
+
width: 100vw;
|
|
2292
|
+
border-top: 2px solid ${e=>e.theme.colors.neutral30};
|
|
2293
|
+
|
|
2294
|
+
@media ${e=>e.theme.mediaQuery.md}{
|
|
2295
|
+
display: none;
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
}
|
|
2299
|
+
`,bn=({currentStep:e,totalSteps:t,showOnMobile:r=!0,showOnDesktop:n=!0})=>{if(t<=1)return null;const o=O.jsx(ko,{children:O.jsx(So,{$currentStep:e,$totalSteps:t})});return O.jsxs(O.Fragment,{children:[n&&O.jsx(Co,{children:o}),r&&O.jsx(Po,{children:o})]})},Co=E.div`
|
|
2223
2300
|
display: none;
|
|
2224
2301
|
|
|
2225
2302
|
@media (min-width: 768px) {
|
|
@@ -2227,7 +2304,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2227
2304
|
width: 500px;
|
|
2228
2305
|
margin: 0 auto 25px;
|
|
2229
2306
|
}
|
|
2230
|
-
`,
|
|
2307
|
+
`,Po=E.div`
|
|
2231
2308
|
display: block;
|
|
2232
2309
|
position: absolute;
|
|
2233
2310
|
bottom: 0;
|
|
@@ -2237,42 +2314,42 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2237
2314
|
@media (min-width: 768px) {
|
|
2238
2315
|
display: none;
|
|
2239
2316
|
}
|
|
2240
|
-
|
|
2317
|
+
`,ko=E.div`
|
|
2241
2318
|
width: 100%;
|
|
2242
2319
|
height: 5px;
|
|
2243
2320
|
background-color: ${e=>{var t,r;return((r=(t=e.theme)==null?void 0:t.colors)==null?void 0:r.neutral40)||"#E5E5E5"}};
|
|
2244
2321
|
border-radius: 0;
|
|
2245
2322
|
overflow: hidden;
|
|
2246
|
-
`,
|
|
2323
|
+
`,So=E.div`
|
|
2247
2324
|
width: ${e=>`calc((${e.$currentStep} / ${e.$totalSteps}) * 100%)`};
|
|
2248
2325
|
height: 100%;
|
|
2249
2326
|
background-color: ${e=>{var t,r;return((r=(t=e.theme)==null?void 0:t.colors)==null?void 0:r.ivimGreen)||"#85AF61"}};
|
|
2250
2327
|
transition: width 0.3s ease-in-out;
|
|
2251
|
-
`;function at(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Co=typeof Symbol=="function"&&Symbol.observable||"@@observable",Jr=Co,vr=()=>Math.random().toString(36).substring(7).split("").join("."),Po={INIT:`@@redux/INIT${vr()}`,REPLACE:`@@redux/REPLACE${vr()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${vr()}`},jt=Po;function Kt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function ko(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Eo(e))return"date";if(Oo(e))return"error";const r=So(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function So(e){return typeof e.constructor=="function"?e.constructor.name:null}function Oo(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Eo(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Vt(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=ko(e)),t}function mn(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?at(2):`Expected the root reducer to be a function. Instead, received: '${Vt(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?at(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?at(1):`Expected the enhancer to be a function. Instead, received: '${Vt(r)}'`);return r(mn)(e,t)}let n=e,o=t,a=new Map,i=a,l=0,u=!1;function h(){i===a&&(i=new Map,a.forEach((M,J)=>{i.set(J,M)}))}function b(){if(u)throw new Error(process.env.NODE_ENV==="production"?at(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function g(M){if(typeof M!="function")throw new Error(process.env.NODE_ENV==="production"?at(4):`Expected the listener to be a function. Instead, received: '${Vt(M)}'`);if(u)throw new Error(process.env.NODE_ENV==="production"?at(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let J=!0;h();const _=l++;return i.set(_,M),function(){if(J){if(u)throw new Error(process.env.NODE_ENV==="production"?at(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");J=!1,h(),i.delete(_),a=null}}}function x(M){if(!Kt(M))throw new Error(process.env.NODE_ENV==="production"?at(7):`Actions must be plain objects. Instead, the actual type was: '${Vt(M)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof M.type>"u")throw new Error(process.env.NODE_ENV==="production"?at(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof M.type!="string")throw new Error(process.env.NODE_ENV==="production"?at(17):`Action "type" property must be a string. Instead, the actual type was: '${Vt(M.type)}'. Value was: '${M.type}' (stringified)`);if(u)throw new Error(process.env.NODE_ENV==="production"?at(9):"Reducers may not dispatch actions.");try{u=!0,o=n(o,M)}finally{u=!1}return(a=i).forEach(_=>{_()}),M}function w(M){if(typeof M!="function")throw new Error(process.env.NODE_ENV==="production"?at(10):`Expected the nextReducer to be a function. Instead, received: '${Vt(M)}`);n=M,x({type:jt.REPLACE})}function S(){const M=g;return{subscribe(J){if(typeof J!="object"||J===null)throw new Error(process.env.NODE_ENV==="production"?at(11):`Expected the observer to be an object. Instead, received: '${Vt(J)}'`);function _(){const W=J;W.next&&W.next(b())}return _(),{unsubscribe:M(_)}},[Jr](){return this}}}return x({type:jt.INIT}),{dispatch:x,subscribe:g,getState:b,replaceReducer:w,[Jr]:S}}function Xr(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Vo(e,t,r,n){const o=Object.keys(t),a=r&&r.type===jt.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Kt(e))return`The ${a} has unexpected type of "${Vt(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const i=Object.keys(e).filter(l=>!t.hasOwnProperty(l)&&!n[l]);if(i.forEach(l=>{n[l]=!0}),!(r&&r.type===jt.REPLACE)&&i.length>0)return`Unexpected ${i.length>1?"keys":"key"} "${i.join('", "')}" found in ${a}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function Ao(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:jt.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?at(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:jt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?at(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${jt.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function To(e){const t=Object.keys(e),r={};for(let i=0;i<t.length;i++){const l=t[i];process.env.NODE_ENV!=="production"&&typeof e[l]>"u"&&Xr(`No reducer provided for key "${l}"`),typeof e[l]=="function"&&(r[l]=e[l])}const n=Object.keys(r);let o;process.env.NODE_ENV!=="production"&&(o={});let a;try{Ao(r)}catch(i){a=i}return function(l={},u){if(a)throw a;if(process.env.NODE_ENV!=="production"){const g=Vo(l,r,u,o);g&&Xr(g)}let h=!1;const b={};for(let g=0;g<n.length;g++){const x=n[g],w=r[x],S=l[x],I=w(S,u);if(typeof I>"u"){const M=u&&u.type;throw new Error(process.env.NODE_ENV==="production"?at(14):`When called with an action of type ${M?`"${String(M)}"`:"(unknown type)"}, the slice reducer for key "${x}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}b[x]=I,h=h||I!==S}return h=h||n.length!==Object.keys(l).length,h?b:l}}function sr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Do(...e){return t=>(r,n)=>{const o=t(r,n);let a=()=>{throw new Error(process.env.NODE_ENV==="production"?at(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const i={getState:o.getState,dispatch:(u,...h)=>a(u,...h)},l=e.map(u=>u(i));return a=sr(...l)(o.dispatch),{...o,dispatch:a}}}function gn(e){return Kt(e)&&"type"in e&&typeof e.type=="string"}var yn=Symbol.for("immer-nothing"),Kr=Symbol.for("immer-draftable"),yt=Symbol.for("immer-state"),Ro=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function ht(e,...t){if(process.env.NODE_ENV!=="production"){const r=Ro[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Gt=Object.getPrototypeOf;function Ft(e){return!!e&&!!e[yt]}function St(e){var t;return e?bn(e)||Array.isArray(e)||!!e[Kr]||!!((t=e.constructor)!=null&&t[Kr])||br(e)||xr(e):!1}var jo=Object.prototype.constructor.toString();function bn(e){if(!e||typeof e!="object")return!1;const t=Gt(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===jo}function lr(e,t){yr(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function yr(e){const t=e[yt];return t?t.type_:Array.isArray(e)?1:br(e)?2:xr(e)?3:0}function Or(e,t){return yr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function xn(e,t,r){const n=yr(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Fo(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function br(e){return e instanceof Map}function xr(e){return e instanceof Set}function Rt(e){return e.copy_||e.base_}function Er(e,t){if(br(e))return new Map(e);if(xr(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=bn(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[yt];let o=Reflect.ownKeys(n);for(let a=0;a<o.length;a++){const i=o[a],l=n[i];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(n[i]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[i]})}return Object.create(Gt(e),n)}else{const n=Gt(e);if(n!==null&&r)return{...e};const o=Object.create(n);return Object.assign(o,e)}}function Mr(e,t=!1){return wr(e)||Ft(e)||!St(e)||(yr(e)>1&&(e.set=e.add=e.clear=e.delete=_o),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>Mr(n,!0))),e}function _o(){ht(2)}function wr(e){return Object.isFrozen(e)}var Io={};function _t(e){const t=Io[e];return t||ht(0,e),t}var Wt;function wn(){return Wt}function No(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Zr(e,t){t&&(_t("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Vr(e){Ar(e),e.drafts_.forEach(Uo),e.drafts_=null}function Ar(e){e===Wt&&(Wt=e.parent_)}function en(e){return Wt=No(Wt,e)}function Uo(e){const t=e[yt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function tn(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[yt].modified_&&(Vr(t),ht(4)),St(e)&&(e=cr(t,e),t.parent_||ur(t,e)),t.patches_&&_t("Patches").generateReplacementPatches_(r[yt].base_,e,t.patches_,t.inversePatches_)):e=cr(t,r,[]),Vr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==yn?e:void 0}function cr(e,t,r){if(wr(t))return t;const n=t[yt];if(!n)return lr(t,(o,a)=>rn(e,n,t,o,a,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return ur(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const o=n.copy_;let a=o,i=!1;n.type_===3&&(a=new Set(o),o.clear(),i=!0),lr(a,(l,u)=>rn(e,n,o,l,u,r,i)),ur(e,o,!1),r&&e.patches_&&_t("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function rn(e,t,r,n,o,a,i){if(process.env.NODE_ENV!=="production"&&o===r&&ht(5),Ft(o)){const l=a&&t&&t.type_!==3&&!Or(t.assigned_,n)?a.concat(n):void 0,u=cr(e,o,l);if(xn(r,n,u),Ft(u))e.canAutoFreeze_=!1;else return}else i&&r.add(o);if(St(o)&&!wr(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;cr(e,o),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&ur(e,o)}}function ur(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Mr(t,r)}function Mo(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:wn(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,a=zr;r&&(o=[n],a=Yt);const{revoke:i,proxy:l}=Proxy.revocable(o,a);return n.draft_=l,n.revoke_=i,l}var zr={get(e,t){if(t===yt)return e;const r=Rt(e);if(!Or(r,t))return zo(e,r,t);const n=r[t];return e.finalized_||!St(n)?n:n===Cr(e.base_,t)?(Pr(e),e.copy_[t]=Dr(n,e)):n},has(e,t){return t in Rt(e)},ownKeys(e){return Reflect.ownKeys(Rt(e))},set(e,t,r){const n=$n(Rt(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=Cr(Rt(e),t),a=o==null?void 0:o[yt];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(Fo(r,o)&&(r!==void 0||Or(e.base_,t)))return!0;Pr(e),Tr(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Cr(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Pr(e),Tr(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Rt(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){ht(11)},getPrototypeOf(e){return Gt(e.base_)},setPrototypeOf(){ht(12)}},Yt={};lr(zr,(e,t)=>{Yt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Yt.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ht(13),Yt.set.call(this,e,t,void 0)};Yt.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ht(14),zr.set.call(this,e[0],t,r,e[0])};function Cr(e,t){const r=e[yt];return(r?Rt(r):e)[t]}function zo(e,t,r){var o;const n=$n(t,r);return n?"value"in n?n.value:(o=n.get)==null?void 0:o.call(e.draft_):void 0}function $n(e,t){if(!(t in e))return;let r=Gt(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Gt(r)}}function Tr(e){e.modified_||(e.modified_=!0,e.parent_&&Tr(e.parent_))}function Pr(e){e.copy_||(e.copy_=Er(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Go=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const i=this;return function(u=a,...h){return i.produce(u,b=>r.call(this,b,...h))}}typeof r!="function"&&ht(6),n!==void 0&&typeof n!="function"&&ht(7);let o;if(St(t)){const a=en(this),i=Dr(t,void 0);let l=!0;try{o=r(i),l=!1}finally{l?Vr(a):Ar(a)}return Zr(a,n),tn(o,a)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===yn&&(o=void 0),this.autoFreeze_&&Mr(o,!0),n){const a=[],i=[];_t("Patches").generateReplacementPatches_(t,o,a,i),n(a,i)}return o}else ht(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(i,...l)=>this.produceWithPatches(i,u=>t(u,...l));let n,o;return[this.produce(t,r,(i,l)=>{n=i,o=l}),n,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){St(e)||ht(8),Ft(e)&&(e=Lo(e));const t=en(this),r=Dr(e,void 0);return r[yt].isManual_=!0,Ar(t),r}finishDraft(e,t){const r=e&&e[yt];(!r||!r.isManual_)&&ht(9);const{scope_:n}=r;return Zr(n,t),tn(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=_t("Patches").applyPatches_;return Ft(e)?n(e,t):this.produce(e,o=>n(o,t))}};function Dr(e,t){const r=br(e)?_t("MapSet").proxyMap_(e,t):xr(e)?_t("MapSet").proxySet_(e,t):Mo(e,t);return(t?t.scope_:wn()).drafts_.push(r),r}function Lo(e){return Ft(e)||ht(10,e),vn(e)}function vn(e){if(!St(e)||wr(e))return e;const t=e[yt];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Er(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Er(e,!0);return lr(r,(n,o)=>{xn(r,n,vn(o))}),t&&(t.finalized_=!1),r}var bt=new Go,Cn=bt.produce;bt.produceWithPatches.bind(bt);bt.setAutoFreeze.bind(bt);bt.setUseStrictShallowCopy.bind(bt);bt.applyPatches.bind(bt);bt.createDraft.bind(bt);bt.finishDraft.bind(bt);function Pn(e){return({dispatch:r,getState:n})=>o=>a=>typeof a=="function"?a(r,n,e):o(a)}var Bo=Pn(),Qo=Pn,qo=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?sr:sr.apply(null,arguments)},Ho=e=>e&&typeof e.match=="function";function nn(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(process.env.NODE_ENV==="production"?Ge(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>gn(n)&&n.type===e,r}function Wo(e){return typeof e=="function"&&"type"in e&&Ho(e)}function Yo(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
|
|
2252
|
-
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function
|
|
2328
|
+
`;function at(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Oo=typeof Symbol=="function"&&Symbol.observable||"@@observable",Zr=Oo,Cr=()=>Math.random().toString(36).substring(7).split("").join("."),Eo={INIT:`@@redux/INIT${Cr()}`,REPLACE:`@@redux/REPLACE${Cr()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Cr()}`},_t=Eo;function Zt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Vo(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Do(e))return"date";if(To(e))return"error";const r=Ao(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function Ao(e){return typeof e.constructor=="function"?e.constructor.name:null}function To(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Do(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function At(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=Vo(e)),t}function xn(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?at(2):`Expected the root reducer to be a function. Instead, received: '${At(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?at(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?at(1):`Expected the enhancer to be a function. Instead, received: '${At(r)}'`);return r(xn)(e,t)}let n=e,o=t,a=new Map,i=a,l=0,u=!1;function h(){i===a&&(i=new Map,a.forEach((_,W)=>{i.set(W,_)}))}function b(){if(u)throw new Error(process.env.NODE_ENV==="production"?at(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function m(_){if(typeof _!="function")throw new Error(process.env.NODE_ENV==="production"?at(4):`Expected the listener to be a function. Instead, received: '${At(_)}'`);if(u)throw new Error(process.env.NODE_ENV==="production"?at(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let W=!0;h();const R=l++;return i.set(R,_),function(){if(W){if(u)throw new Error(process.env.NODE_ENV==="production"?at(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");W=!1,h(),i.delete(R),a=null}}}function x(_){if(!Zt(_))throw new Error(process.env.NODE_ENV==="production"?at(7):`Actions must be plain objects. Instead, the actual type was: '${At(_)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof _.type>"u")throw new Error(process.env.NODE_ENV==="production"?at(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof _.type!="string")throw new Error(process.env.NODE_ENV==="production"?at(17):`Action "type" property must be a string. Instead, the actual type was: '${At(_.type)}'. Value was: '${_.type}' (stringified)`);if(u)throw new Error(process.env.NODE_ENV==="production"?at(9):"Reducers may not dispatch actions.");try{u=!0,o=n(o,_)}finally{u=!1}return(a=i).forEach(R=>{R()}),_}function P(_){if(typeof _!="function")throw new Error(process.env.NODE_ENV==="production"?at(10):`Expected the nextReducer to be a function. Instead, received: '${At(_)}`);n=_,x({type:_t.REPLACE})}function D(){const _=m;return{subscribe(W){if(typeof W!="object"||W===null)throw new Error(process.env.NODE_ENV==="production"?at(11):`Expected the observer to be an object. Instead, received: '${At(W)}'`);function R(){const M=W;M.next&&M.next(b())}return R(),{unsubscribe:_(R)}},[Zr](){return this}}}return x({type:_t.INIT}),{dispatch:x,subscribe:m,getState:b,replaceReducer:P,[Zr]:D}}function en(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function jo(e,t,r,n){const o=Object.keys(t),a=r&&r.type===_t.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Zt(e))return`The ${a} has unexpected type of "${At(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const i=Object.keys(e).filter(l=>!t.hasOwnProperty(l)&&!n[l]);if(i.forEach(l=>{n[l]=!0}),!(r&&r.type===_t.REPLACE)&&i.length>0)return`Unexpected ${i.length>1?"keys":"key"} "${i.join('", "')}" found in ${a}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function Fo(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:_t.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?at(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:_t.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?at(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${_t.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Ro(e){const t=Object.keys(e),r={};for(let i=0;i<t.length;i++){const l=t[i];process.env.NODE_ENV!=="production"&&typeof e[l]>"u"&&en(`No reducer provided for key "${l}"`),typeof e[l]=="function"&&(r[l]=e[l])}const n=Object.keys(r);let o;process.env.NODE_ENV!=="production"&&(o={});let a;try{Fo(r)}catch(i){a=i}return function(l={},u){if(a)throw a;if(process.env.NODE_ENV!=="production"){const m=jo(l,r,u,o);m&&en(m)}let h=!1;const b={};for(let m=0;m<n.length;m++){const x=n[m],P=r[x],D=l[x],N=P(D,u);if(typeof N>"u"){const _=u&&u.type;throw new Error(process.env.NODE_ENV==="production"?at(14):`When called with an action of type ${_?`"${String(_)}"`:"(unknown type)"}, the slice reducer for key "${x}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}b[x]=N,h=h||N!==D}return h=h||n.length!==Object.keys(l).length,h?b:l}}function sr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function _o(...e){return t=>(r,n)=>{const o=t(r,n);let a=()=>{throw new Error(process.env.NODE_ENV==="production"?at(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const i={getState:o.getState,dispatch:(u,...h)=>a(u,...h)},l=e.map(u=>u(i));return a=sr(...l)(o.dispatch),{...o,dispatch:a}}}function wn(e){return Zt(e)&&"type"in e&&typeof e.type=="string"}var $n=Symbol.for("immer-nothing"),tn=Symbol.for("immer-draftable"),bt=Symbol.for("immer-state"),Io=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function ht(e,...t){if(process.env.NODE_ENV!=="production"){const r=Io[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Bt=Object.getPrototypeOf;function It(e){return!!e&&!!e[bt]}function Ot(e){var t;return e?vn(e)||Array.isArray(e)||!!e[tn]||!!((t=e.constructor)!=null&&t[tn])||br(e)||xr(e):!1}var No=Object.prototype.constructor.toString();function vn(e){if(!e||typeof e!="object")return!1;const t=Bt(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===No}function lr(e,t){yr(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function yr(e){const t=e[bt];return t?t.type_:Array.isArray(e)?1:br(e)?2:xr(e)?3:0}function Er(e,t){return yr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Cn(e,t,r){const n=yr(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Uo(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function br(e){return e instanceof Map}function xr(e){return e instanceof Set}function Ft(e){return e.copy_||e.base_}function Vr(e,t){if(br(e))return new Map(e);if(xr(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=vn(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[bt];let o=Reflect.ownKeys(n);for(let a=0;a<o.length;a++){const i=o[a],l=n[i];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(n[i]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[i]})}return Object.create(Bt(e),n)}else{const n=Bt(e);if(n!==null&&r)return{...e};const o=Object.create(n);return Object.assign(o,e)}}function zr(e,t=!1){return wr(e)||It(e)||!Ot(e)||(yr(e)>1&&(e.set=e.add=e.clear=e.delete=Mo),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>zr(n,!0))),e}function Mo(){ht(2)}function wr(e){return Object.isFrozen(e)}var zo={};function Nt(e){const t=zo[e];return t||ht(0,e),t}var Jt;function Pn(){return Jt}function Go(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function rn(e,t){t&&(Nt("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ar(e){Tr(e),e.drafts_.forEach(Lo),e.drafts_=null}function Tr(e){e===Jt&&(Jt=e.parent_)}function nn(e){return Jt=Go(Jt,e)}function Lo(e){const t=e[bt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function on(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[bt].modified_&&(Ar(t),ht(4)),Ot(e)&&(e=cr(t,e),t.parent_||ur(t,e)),t.patches_&&Nt("Patches").generateReplacementPatches_(r[bt].base_,e,t.patches_,t.inversePatches_)):e=cr(t,r,[]),Ar(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==$n?e:void 0}function cr(e,t,r){if(wr(t))return t;const n=t[bt];if(!n)return lr(t,(o,a)=>an(e,n,t,o,a,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return ur(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const o=n.copy_;let a=o,i=!1;n.type_===3&&(a=new Set(o),o.clear(),i=!0),lr(a,(l,u)=>an(e,n,o,l,u,r,i)),ur(e,o,!1),r&&e.patches_&&Nt("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function an(e,t,r,n,o,a,i){if(process.env.NODE_ENV!=="production"&&o===r&&ht(5),It(o)){const l=a&&t&&t.type_!==3&&!Er(t.assigned_,n)?a.concat(n):void 0,u=cr(e,o,l);if(Cn(r,n,u),It(u))e.canAutoFreeze_=!1;else return}else i&&r.add(o);if(Ot(o)&&!wr(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;cr(e,o),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&ur(e,o)}}function ur(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&zr(t,r)}function Bo(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Pn(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,a=Gr;r&&(o=[n],a=Xt);const{revoke:i,proxy:l}=Proxy.revocable(o,a);return n.draft_=l,n.revoke_=i,l}var Gr={get(e,t){if(t===bt)return e;const r=Ft(e);if(!Er(r,t))return qo(e,r,t);const n=r[t];return e.finalized_||!Ot(n)?n:n===Pr(e.base_,t)?(kr(e),e.copy_[t]=jr(n,e)):n},has(e,t){return t in Ft(e)},ownKeys(e){return Reflect.ownKeys(Ft(e))},set(e,t,r){const n=kn(Ft(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=Pr(Ft(e),t),a=o==null?void 0:o[bt];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(Uo(r,o)&&(r!==void 0||Er(e.base_,t)))return!0;kr(e),Dr(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Pr(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,kr(e),Dr(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Ft(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){ht(11)},getPrototypeOf(e){return Bt(e.base_)},setPrototypeOf(){ht(12)}},Xt={};lr(Gr,(e,t)=>{Xt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Xt.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ht(13),Xt.set.call(this,e,t,void 0)};Xt.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ht(14),Gr.set.call(this,e[0],t,r,e[0])};function Pr(e,t){const r=e[bt];return(r?Ft(r):e)[t]}function qo(e,t,r){var o;const n=kn(t,r);return n?"value"in n?n.value:(o=n.get)==null?void 0:o.call(e.draft_):void 0}function kn(e,t){if(!(t in e))return;let r=Bt(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Bt(r)}}function Dr(e){e.modified_||(e.modified_=!0,e.parent_&&Dr(e.parent_))}function kr(e){e.copy_||(e.copy_=Vr(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Qo=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const i=this;return function(u=a,...h){return i.produce(u,b=>r.call(this,b,...h))}}typeof r!="function"&&ht(6),n!==void 0&&typeof n!="function"&&ht(7);let o;if(Ot(t)){const a=nn(this),i=jr(t,void 0);let l=!0;try{o=r(i),l=!1}finally{l?Ar(a):Tr(a)}return rn(a,n),on(o,a)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===$n&&(o=void 0),this.autoFreeze_&&zr(o,!0),n){const a=[],i=[];Nt("Patches").generateReplacementPatches_(t,o,a,i),n(a,i)}return o}else ht(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(i,...l)=>this.produceWithPatches(i,u=>t(u,...l));let n,o;return[this.produce(t,r,(i,l)=>{n=i,o=l}),n,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ot(e)||ht(8),It(e)&&(e=Ho(e));const t=nn(this),r=jr(e,void 0);return r[bt].isManual_=!0,Tr(t),r}finishDraft(e,t){const r=e&&e[bt];(!r||!r.isManual_)&&ht(9);const{scope_:n}=r;return rn(n,t),on(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=Nt("Patches").applyPatches_;return It(e)?n(e,t):this.produce(e,o=>n(o,t))}};function jr(e,t){const r=br(e)?Nt("MapSet").proxyMap_(e,t):xr(e)?Nt("MapSet").proxySet_(e,t):Bo(e,t);return(t?t.scope_:Pn()).drafts_.push(r),r}function Ho(e){return It(e)||ht(10,e),Sn(e)}function Sn(e){if(!Ot(e)||wr(e))return e;const t=e[bt];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Vr(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Vr(e,!0);return lr(r,(n,o)=>{Cn(r,n,Sn(o))}),t&&(t.finalized_=!1),r}var xt=new Qo,On=xt.produce;xt.produceWithPatches.bind(xt);xt.setAutoFreeze.bind(xt);xt.setUseStrictShallowCopy.bind(xt);xt.applyPatches.bind(xt);xt.createDraft.bind(xt);xt.finishDraft.bind(xt);function En(e){return({dispatch:r,getState:n})=>o=>a=>typeof a=="function"?a(r,n,e):o(a)}var Wo=En(),Yo=En,Jo=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?sr:sr.apply(null,arguments)},Xo=e=>e&&typeof e.match=="function";function sn(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(process.env.NODE_ENV==="production"?Ge(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>wn(n)&&n.type===e,r}function Ko(e){return typeof e=="function"&&"type"in e&&Xo(e)}function Zo(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
|
|
2329
|
+
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function ea(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=Ko}=e;return()=>r=>n=>(t(n)&&console.warn(Zo(n.type)),r(n))}function Vn(e,t){let r=0;return{measureTime(n){const o=Date.now();try{return n()}finally{const a=Date.now();r+=a-o}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms.
|
|
2253
2330
|
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
2254
|
-
It is disabled in production builds, so you don't need to worry about that.`)}}}var
|
|
2255
|
-
Take a look at the logic that dispatched this action: `,
|
|
2331
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var An=class Yt extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Yt.prototype)}static get[Symbol.species](){return Yt}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Yt(...t[0].concat(this)):new Yt(...t.concat(this))}};function ln(e){return Ot(e)?On(e,()=>{}):e}function cn(e,t,r){if(e.has(t)){let o=e.get(t);return r.update&&(o=r.update(o,t,e),e.set(t,o)),o}if(!r.insert)throw new Error(process.env.NODE_ENV==="production"?Ge(10):"No insert provided for key not already in map");const n=r.insert(t,e);return e.set(t,n),n}function ta(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function ra(e,t,r){const n=Tn(e,t,r);return{detectMutations(){return Dn(e,t,n,r)}}}function Tn(e,t=[],r,n="",o=new Set){const a={value:r};if(!e(r)&&!o.has(r)){o.add(r),a.children={};for(const i in r){const l=n?n+"."+i:i;t.length&&t.indexOf(l)!==-1||(a.children[i]=Tn(e,t,r[i],l))}}return a}function Dn(e,t=[],r,n,o=!1,a=""){const i=r?r.value:void 0,l=i===n;if(o&&!l&&!Number.isNaN(n))return{wasMutated:!0,path:a};if(e(i)||e(n))return{wasMutated:!1};const u={};for(let b in r.children)u[b]=!0;for(let b in n)u[b]=!0;const h=t.length>0;for(let b in u){const m=a?a+"."+b:b;if(h&&t.some(D=>D instanceof RegExp?D.test(m):m===D))continue;const x=Dn(e,t,r.children[b],n[b],l,m);if(x.wasMutated)return x}return{wasMutated:!1}}function na(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(l,u,h,b){return JSON.stringify(l,r(u,b),h)},r=function(l,u){let h=[],b=[];return u||(u=function(m,x){return h[0]===x?"[Circular ~]":"[Circular ~."+b.slice(0,h.indexOf(x)).join(".")+"]"}),function(m,x){if(h.length>0){var P=h.indexOf(this);~P?h.splice(P+1):h.push(this),~P?b.splice(P,1/0,m):b.push(m),~h.indexOf(x)&&(x=u.call(this,m,x))}else h.push(x);return l==null?x:l.call(this,m,x)}},{isImmutable:n=ta,ignoredPaths:o,warnAfter:a=32}=e;const i=ra.bind(null,n,o);return({getState:l})=>{let u=l(),h=i(u),b;return m=>x=>{const P=Vn(a,"ImmutableStateInvariantMiddleware");P.measureTime(()=>{if(u=l(),b=h.detectMutations(),h=i(u),b.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Ge(19):`A state mutation was detected between dispatches, in the path '${b.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const D=m(x);return P.measureTime(()=>{if(u=l(),b=h.detectMutations(),h=i(u),b.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Ge(20):`A state mutation was detected inside a dispatch, in the path: ${b.path||""}. Take a look at the reducer(s) handling the action ${t(x)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),P.warnIfExceeded(),D}}}}function jn(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Zt(e)}function Fr(e,t="",r=jn,n,o=[],a){let i;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||a!=null&&a.has(e))return!1;const l=n!=null?n(e):Object.entries(e),u=o.length>0;for(const[h,b]of l){const m=t?t+"."+h:h;if(!(u&&o.some(P=>P instanceof RegExp?P.test(m):m===P))){if(!r(b))return{keyPath:m,value:b};if(typeof b=="object"&&(i=Fr(b,m,r,n,o,a),i))return i}}return a&&Fn(e)&&a.add(e),!1}function Fn(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!Fn(t))return!1;return!0}function oa(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=jn,getEntries:r,ignoredActions:n=[],ignoredActionPaths:o=["meta.arg","meta.baseQueryMeta"],ignoredPaths:a=[],warnAfter:i=32,ignoreState:l=!1,ignoreActions:u=!1,disableCache:h=!1}=e,b=!h&&WeakSet?new WeakSet:void 0;return m=>x=>P=>{if(!wn(P))return x(P);const D=x(P),N=Vn(i,"SerializableStateInvariantMiddleware");return!u&&!(n.length&&n.indexOf(P.type)!==-1)&&N.measureTime(()=>{const _=Fr(P,"",t,r,o,b);if(_){const{keyPath:W,value:R}=_;console.error(`A non-serializable value was detected in an action, in the path: \`${W}\`. Value:`,R,`
|
|
2332
|
+
Take a look at the logic that dispatched this action: `,P,`
|
|
2256
2333
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
2257
|
-
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),l||(
|
|
2258
|
-
Take a look at the reducer(s) handling this action type: ${
|
|
2259
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),I.warnIfExceeded()),S}}}function nr(e){return typeof e=="boolean"}var ta=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:a=!0}=t??{};let i=new Sn;if(r&&(nr(r)?i.push(Bo):i.push(Qo(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let l={};nr(n)||(l=n),i.unshift(Zo(l))}if(o){let l={};nr(o)||(l=o),i.push(ea(l))}if(a){let l={};nr(a)||(l=a),i.unshift(Jo(l))}}return i},ra="RTK_autoBatch",Tn=e=>t=>{setTimeout(t,e)},na=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Tn(10),oa=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let o=!0,a=!1,i=!1;const l=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?na:e.type==="callback"?e.queueNotification:Tn(e.timeout),h=()=>{i=!1,a&&(a=!1,l.forEach(b=>b()))};return Object.assign({},n,{subscribe(b){const g=()=>o&&b(),x=n.subscribe(g);return l.add(b),()=>{x(),l.delete(b)}},dispatch(b){var g;try{return o=!((g=b==null?void 0:b.meta)!=null&&g[ra]),a=!o,a&&(i||(i=!0,u(h))),n.dispatch(b)}finally{o=!0}}})},aa=e=>function(r){const{autoBatch:n=!0}=r??{};let o=new Sn(e);return n&&o.push(oa(typeof n=="object"?n:void 0)),o};function ia(e){const t=ta(),{reducer:r=void 0,middleware:n,devTools:o=!0,preloadedState:a=void 0,enhancers:i=void 0}=e||{};let l;if(typeof r=="function")l=r;else if(Kt(r))l=To(r);else throw new Error(process.env.NODE_ENV==="production"?Ge(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Ge(2):"`middleware` field must be a callback");let u;if(typeof n=="function"){if(u=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(u))throw new Error(process.env.NODE_ENV==="production"?Ge(3):"when using a middleware builder function, an array of middleware must be returned")}else u=t();if(process.env.NODE_ENV!=="production"&&u.some(S=>typeof S!="function"))throw new Error(process.env.NODE_ENV==="production"?Ge(4):"each middleware provided to configureStore must be a function");let h=sr;o&&(h=qo({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const b=Do(...u),g=aa(b);if(process.env.NODE_ENV!=="production"&&i&&typeof i!="function")throw new Error(process.env.NODE_ENV==="production"?Ge(5):"`enhancers` field must be a callback");let x=typeof i=="function"?i(g):g();if(process.env.NODE_ENV!=="production"&&!Array.isArray(x))throw new Error(process.env.NODE_ENV==="production"?Ge(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&x.some(S=>typeof S!="function"))throw new Error(process.env.NODE_ENV==="production"?Ge(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&u.length&&!x.includes(b)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const w=h(...x);return mn(l,a,w)}function Dn(e){const t={},r=[];let n;const o={addCase(a,i){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?Ge(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?Ge(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof a=="string"?a:a.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?Ge(28):"`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error(process.env.NODE_ENV==="production"?Ge(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return t[l]=i,o},addMatcher(a,i){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Ge(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:a,reducer:i}),o},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Ge(31):"`builder.addDefaultCase` can only be called once");return n=a,o}};return e(o),[t,r,n]}function sa(e){return typeof e=="function"}function la(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Ge(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,o]=Dn(t),a;if(sa(e))a=()=>on(e());else{const l=on(e);a=()=>l}function i(l=a(),u){let h=[r[u.type],...n.filter(({matcher:b})=>b(u)).map(({reducer:b})=>b)];return h.filter(b=>!!b).length===0&&(h=[o]),h.reduce((b,g)=>{if(g)if(Ft(b)){const w=g(b,u);return w===void 0?b:w}else{if(St(b))return Cn(b,x=>g(x,u));{const x=g(b,u);if(x===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}}return b},l)}return i.getInitialState=a,i}var ca=Symbol.for("rtk-slice-createasyncthunk");function ua(e,t){return`${e}/${t}`}function da({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[ca];return function(o){const{name:a,reducerPath:i=a}=o;if(!a)throw new Error(process.env.NODE_ENV==="production"?Ge(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&o.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const l=(typeof o.reducers=="function"?o.reducers(ha()):o.reducers)||{},u=Object.keys(l),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},b={addCase(T,W){const N=typeof T=="string"?T:T.type;if(!N)throw new Error(process.env.NODE_ENV==="production"?Ge(12):"`context.addCase` cannot be called with an empty action type");if(N in h.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Ge(13):"`context.addCase` cannot be called with two reducers for the same action type: "+N);return h.sliceCaseReducersByType[N]=W,b},addMatcher(T,W){return h.sliceMatchers.push({matcher:T,reducer:W}),b},exposeAction(T,W){return h.actionCreators[T]=W,b},exposeCaseReducer(T,W){return h.sliceCaseReducersByName[T]=W,b}};u.forEach(T=>{const W=l[T],N={reducerName:T,type:ua(a,T),createNotation:typeof o.reducers=="function"};ma(W)?ya(N,W,b,t):pa(N,W,b)});function g(){if(process.env.NODE_ENV!=="production"&&typeof o.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Ge(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[T={},W=[],N=void 0]=typeof o.extraReducers=="function"?Dn(o.extraReducers):[o.extraReducers],E={...T,...h.sliceCaseReducersByType};return la(o.initialState,z=>{for(let G in E)z.addCase(G,E[G]);for(let G of h.sliceMatchers)z.addMatcher(G.matcher,G.reducer);for(let G of W)z.addMatcher(G.matcher,G.reducer);N&&z.addDefaultCase(N)})}const x=T=>T,w=new Map;let S;function I(T,W){return S||(S=g()),S(T,W)}function M(){return S||(S=g()),S.getInitialState()}function J(T,W=!1){function N(z){let G=z[T];if(typeof G>"u"){if(W)G=M();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ge(15):"selectSlice returned undefined for an uninjected slice reducer")}return G}function E(z=x){const G=an(w,W,{insert:()=>new WeakMap});return an(G,z,{insert:()=>{const ge={};for(const[Se,Ve]of Object.entries(o.selectors??{}))ge[Se]=fa(Ve,z,M,W);return ge}})}return{reducerPath:T,getSelectors:E,get selectors(){return E(N)},selectSlice:N}}const _={name:a,reducer:I,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:M,...J(i),injectInto(T,{reducerPath:W,...N}={}){const E=W??i;return T.inject({reducerPath:E,reducer:I},N),{..._,...J(E,!0)}}};return _}}function fa(e,t,r,n){function o(a,...i){let l=t(a);if(typeof l>"u"){if(n)l=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ge(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...i)}return o.unwrapped=e,o}var Rn=da();function ha(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function pa({type:e,reducerName:t,createNotation:r},n,o){let a,i;if("reducer"in n){if(r&&!ga(n))throw new Error(process.env.NODE_ENV==="production"?Ge(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=n.reducer,i=n.prepare}else a=n;o.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,i?nn(e,i):nn(e))}function ma(e){return e._reducerDefinitionType==="asyncThunk"}function ga(e){return e._reducerDefinitionType==="reducerWithPrepare"}function ya({type:e,reducerName:t},r,n,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?Ge(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:i,pending:l,rejected:u,settled:h,options:b}=r,g=o(e,a,b);n.exposeAction(t,g),i&&n.addCase(g.fulfilled,i),l&&n.addCase(g.pending,l),u&&n.addCase(g.rejected,u),h&&n.addMatcher(g.settled,h),n.exposeCaseReducer(t,{fulfilled:i||or,pending:l||or,rejected:u||or,settled:h||or})}function or(){}function Ge(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const ba={inputValues:{}},dr=Rn({name:"flow",initialState:ba,reducers:{setInputValue:(e,t)=>{const{field:r,value:n}=t.payload;e.inputValues[r]=n},setInputValues:(e,t)=>{e.inputValues={...e.inputValues,...t.payload}}},selectors:{selectInputValues:e=>e.inputValues}}),{setInputValue:xa,setInputValues:sn}=dr.actions,{selectInputValues:wa}=dr.selectors,$a={patient:{id:null,profile:{}}},fr=Rn({name:"patient",initialState:$a,reducers:{setPatient:(e,t)=>{e.patient=t.payload},updatePatient:(e,t)=>{e.patient&&(e.patient.profile={...e.patient.profile,...t.payload})}},selectors:{selectPatient:e=>{var t;return((t=e.patient)==null?void 0:t.profile)||null}}}),{setPatient:va,updatePatient:Ca}=fr.actions,{selectPatient:Pa}=fr.selectors,ka=e=>e==null?"":String(e),Sa=e=>e===""?null:e,Oa=e=>e?"true":"false",jn=e=>e==="true",Ea=e=>e==="true"||e==="false"?jn(e):e,ln=e=>typeof e=="boolean"?Oa(e):e,Va=e=>e==null?"":String(e),Aa=e=>{if(e===""||e===null||e===void 0)return null;const t=Number(e);return isNaN(t)?null:t},Ta=({formComponent:e})=>{const t=e.props,{propertyId:r,label:n="Input Label",min:o,max:a,allowLeadingZero:i}=t||{},{getFlowValue:l,setFlowAndPatientValue:u}=Ct(),h=Va(l(r)),b=1,g=x=>{let{value:w}=x.target;i||(w=w.replace(/^0+/,""));const S=Aa(w);u(r,S)};return D.jsxs(gr,{$visible:!0,children:[D.jsx(Ir,{children:n}),D.jsx("input",{type:"number",value:h,onChange:g,min:o,max:a,step:b,inputMode:"numeric",pattern:"\\[0-9\\]\\*"})]})},hr=({errors:e})=>D.jsx(Da,{children:e.map((t,r)=>D.jsx(Ra,{children:t},r))}),Da=V.div`
|
|
2334
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),l||(N.measureTime(()=>{const _=m.getState(),W=Fr(_,"",t,r,a,b);if(W){const{keyPath:R,value:k}=W;console.error(`A non-serializable value was detected in the state, in the path: \`${R}\`. Value:`,k,`
|
|
2335
|
+
Take a look at the reducer(s) handling this action type: ${P.type}.
|
|
2336
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),N.warnIfExceeded()),D}}}function or(e){return typeof e=="boolean"}var aa=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:a=!0}=t??{};let i=new An;if(r&&(or(r)?i.push(Wo):i.push(Yo(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let l={};or(n)||(l=n),i.unshift(na(l))}if(o){let l={};or(o)||(l=o),i.push(oa(l))}if(a){let l={};or(a)||(l=a),i.unshift(ea(l))}}return i},ia="RTK_autoBatch",Rn=e=>t=>{setTimeout(t,e)},sa=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Rn(10),la=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let o=!0,a=!1,i=!1;const l=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?sa:e.type==="callback"?e.queueNotification:Rn(e.timeout),h=()=>{i=!1,a&&(a=!1,l.forEach(b=>b()))};return Object.assign({},n,{subscribe(b){const m=()=>o&&b(),x=n.subscribe(m);return l.add(b),()=>{x(),l.delete(b)}},dispatch(b){var m;try{return o=!((m=b==null?void 0:b.meta)!=null&&m[ia]),a=!o,a&&(i||(i=!0,u(h))),n.dispatch(b)}finally{o=!0}}})},ca=e=>function(r){const{autoBatch:n=!0}=r??{};let o=new An(e);return n&&o.push(la(typeof n=="object"?n:void 0)),o};function ua(e){const t=aa(),{reducer:r=void 0,middleware:n,devTools:o=!0,preloadedState:a=void 0,enhancers:i=void 0}=e||{};let l;if(typeof r=="function")l=r;else if(Zt(r))l=Ro(r);else throw new Error(process.env.NODE_ENV==="production"?Ge(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Ge(2):"`middleware` field must be a callback");let u;if(typeof n=="function"){if(u=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(u))throw new Error(process.env.NODE_ENV==="production"?Ge(3):"when using a middleware builder function, an array of middleware must be returned")}else u=t();if(process.env.NODE_ENV!=="production"&&u.some(D=>typeof D!="function"))throw new Error(process.env.NODE_ENV==="production"?Ge(4):"each middleware provided to configureStore must be a function");let h=sr;o&&(h=Jo({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const b=_o(...u),m=ca(b);if(process.env.NODE_ENV!=="production"&&i&&typeof i!="function")throw new Error(process.env.NODE_ENV==="production"?Ge(5):"`enhancers` field must be a callback");let x=typeof i=="function"?i(m):m();if(process.env.NODE_ENV!=="production"&&!Array.isArray(x))throw new Error(process.env.NODE_ENV==="production"?Ge(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&x.some(D=>typeof D!="function"))throw new Error(process.env.NODE_ENV==="production"?Ge(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&u.length&&!x.includes(b)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const P=h(...x);return xn(l,a,P)}function _n(e){const t={},r=[];let n;const o={addCase(a,i){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?Ge(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?Ge(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof a=="string"?a:a.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?Ge(28):"`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error(process.env.NODE_ENV==="production"?Ge(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return t[l]=i,o},addMatcher(a,i){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Ge(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:a,reducer:i}),o},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Ge(31):"`builder.addDefaultCase` can only be called once");return n=a,o}};return e(o),[t,r,n]}function da(e){return typeof e=="function"}function fa(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Ge(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,o]=_n(t),a;if(da(e))a=()=>ln(e());else{const l=ln(e);a=()=>l}function i(l=a(),u){let h=[r[u.type],...n.filter(({matcher:b})=>b(u)).map(({reducer:b})=>b)];return h.filter(b=>!!b).length===0&&(h=[o]),h.reduce((b,m)=>{if(m)if(It(b)){const P=m(b,u);return P===void 0?b:P}else{if(Ot(b))return On(b,x=>m(x,u));{const x=m(b,u);if(x===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}}return b},l)}return i.getInitialState=a,i}var ha=Symbol.for("rtk-slice-createasyncthunk");function pa(e,t){return`${e}/${t}`}function ma({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[ha];return function(o){const{name:a,reducerPath:i=a}=o;if(!a)throw new Error(process.env.NODE_ENV==="production"?Ge(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&o.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const l=(typeof o.reducers=="function"?o.reducers(ya()):o.reducers)||{},u=Object.keys(l),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},b={addCase(k,M){const z=typeof k=="string"?k:k.type;if(!z)throw new Error(process.env.NODE_ENV==="production"?Ge(12):"`context.addCase` cannot be called with an empty action type");if(z in h.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Ge(13):"`context.addCase` cannot be called with two reducers for the same action type: "+z);return h.sliceCaseReducersByType[z]=M,b},addMatcher(k,M){return h.sliceMatchers.push({matcher:k,reducer:M}),b},exposeAction(k,M){return h.actionCreators[k]=M,b},exposeCaseReducer(k,M){return h.sliceCaseReducersByName[k]=M,b}};u.forEach(k=>{const M=l[k],z={reducerName:k,type:pa(a,k),createNotation:typeof o.reducers=="function"};xa(M)?$a(z,M,b,t):ba(z,M,b)});function m(){if(process.env.NODE_ENV!=="production"&&typeof o.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Ge(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[k={},M=[],z=void 0]=typeof o.extraReducers=="function"?_n(o.extraReducers):[o.extraReducers],A={...k,...h.sliceCaseReducersByType};return fa(o.initialState,L=>{for(let B in A)L.addCase(B,A[B]);for(let B of h.sliceMatchers)L.addMatcher(B.matcher,B.reducer);for(let B of M)L.addMatcher(B.matcher,B.reducer);z&&L.addDefaultCase(z)})}const x=k=>k,P=new Map;let D;function N(k,M){return D||(D=m()),D(k,M)}function _(){return D||(D=m()),D.getInitialState()}function W(k,M=!1){function z(L){let B=L[k];if(typeof B>"u"){if(M)B=_();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ge(15):"selectSlice returned undefined for an uninjected slice reducer")}return B}function A(L=x){const B=cn(P,M,{insert:()=>new WeakMap});return cn(B,L,{insert:()=>{const ue={};for(const[me,be]of Object.entries(o.selectors??{}))ue[me]=ga(be,L,_,M);return ue}})}return{reducerPath:k,getSelectors:A,get selectors(){return A(z)},selectSlice:z}}const R={name:a,reducer:N,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:_,...W(i),injectInto(k,{reducerPath:M,...z}={}){const A=M??i;return k.inject({reducerPath:A,reducer:N},z),{...R,...W(A,!0)}}};return R}}function ga(e,t,r,n){function o(a,...i){let l=t(a);if(typeof l>"u"){if(n)l=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ge(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...i)}return o.unwrapped=e,o}var In=ma();function ya(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function ba({type:e,reducerName:t,createNotation:r},n,o){let a,i;if("reducer"in n){if(r&&!wa(n))throw new Error(process.env.NODE_ENV==="production"?Ge(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=n.reducer,i=n.prepare}else a=n;o.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,i?sn(e,i):sn(e))}function xa(e){return e._reducerDefinitionType==="asyncThunk"}function wa(e){return e._reducerDefinitionType==="reducerWithPrepare"}function $a({type:e,reducerName:t},r,n,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?Ge(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:i,pending:l,rejected:u,settled:h,options:b}=r,m=o(e,a,b);n.exposeAction(t,m),i&&n.addCase(m.fulfilled,i),l&&n.addCase(m.pending,l),u&&n.addCase(m.rejected,u),h&&n.addMatcher(m.settled,h),n.exposeCaseReducer(t,{fulfilled:i||ar,pending:l||ar,rejected:u||ar,settled:h||ar})}function ar(){}function Ge(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const va={inputValues:{},inputErrors:{},disableSubmit:!1},dr=In({name:"flow",initialState:va,reducers:{setInputValue:(e,t)=>{const{field:r,value:n}=t.payload;e.inputValues[r]=n},setInputValues:(e,t)=>{e.inputValues={...e.inputValues,...t.payload}},setInputError:(e,t)=>{const{field:r,error:n}=t.payload;n===null?delete e.inputErrors[r]:e.inputErrors[r]=n},setDisableSubmit:(e,t)=>{e.disableSubmit=t.payload}},selectors:{selectInputValues:e=>e.inputValues,selectInputErrors:e=>e.inputErrors,selectDisableSubmit:e=>e.disableSubmit}}),{setInputValue:Ca,setInputValues:un,setInputError:Pa,setDisableSubmit:ka}=dr.actions,{selectInputValues:Sa,selectInputErrors:Oa,selectDisableSubmit:Ea}=dr.selectors,Va={patient:{id:null,profile:{}}},fr=In({name:"patient",initialState:Va,reducers:{setPatient:(e,t)=>{e.patient=t.payload},updatePatient:(e,t)=>{e.patient&&(e.patient.profile={...e.patient.profile,...t.payload})}},selectors:{selectPatient:e=>{var t;return((t=e.patient)==null?void 0:t.profile)||null}}}),{setPatient:Aa,updatePatient:Ta}=fr.actions,{selectPatient:Da}=fr.selectors,ja=e=>e==null?"":String(e),Fa=e=>e===""?null:e,Ra=e=>e?"true":"false",Nn=e=>e==="true",_a=e=>e==="true"||e==="false"?Nn(e):e,dn=e=>typeof e=="boolean"?Ra(e):e,Ia=e=>e==null?"":String(e),Na=e=>{if(e===""||e===null||e===void 0)return null;const t=Number(e);return isNaN(t)?null:t},Ua=({formComponent:e})=>{const t=e.props,{propertyId:r,label:n="Input Label",min:o,max:a,allowLeadingZero:i}=t||{},{getFlowValue:l,setFlowAndPatientValue:u,getFlowError:h}=pt(),b=Ia(l(r)),m=1,x=P=>{let{value:D}=P.target;i||(D=D.replace(/^0+/,""));const N=Na(D);u(r,N)};return O.jsxs(gr,{$visible:!0,children:[O.jsx(Nr,{children:n}),O.jsx("input",{type:"number",value:b,onChange:x,min:o,max:a,step:m,inputMode:"numeric",pattern:"\\[0-9\\]\\*"}),O.jsx(Pt,{$bottom:"-30px",$visible:!0,children:h(r)||(t!=null&&t.required?"Required":"")})]})},hr=({errors:e})=>O.jsx(Ma,{children:e.map((t,r)=>O.jsx(za,{children:t},r))}),Ma=E.div`
|
|
2260
2337
|
padding: 16px;
|
|
2261
2338
|
background-color: #f5f5f5;
|
|
2262
2339
|
border-radius: 8px;
|
|
2263
2340
|
border: 1px solid #e0e0e0;
|
|
2264
2341
|
margin: 8px 0;
|
|
2265
|
-
`,
|
|
2342
|
+
`,za=E.div`
|
|
2266
2343
|
font-family: 'Poppins', sans-serif;
|
|
2267
2344
|
font-size: 14px;
|
|
2268
2345
|
color: #666;
|
|
2269
2346
|
margin-bottom: 4px;
|
|
2270
|
-
`,
|
|
2347
|
+
`,fn=({formComponent:e})=>{var P;const{getFlowValue:t,setFlowAndPatientValue:r,getFlowError:n}=pt(),[o,a]=Ve.useState({}),i=e.props,l=(i==null?void 0:i.options)||[],u=[],h=t(i.propertyId);i.propertyId||u.push("Error"),Ve.useEffect(()=>{},[h]);const b=D=>{const{value:N}=D.target;let _=h,W={...o};if(e.componentId==="radio"||e.componentId==="radio-group")dn(h)===N?_=null:_=_a(N);else if(Array.isArray(_)||(_=[]),_.indexOf(N)!==-1){let R=_.indexOf(N);_.splice(R,1)}else _.push(N);r(i.propertyId,_),a(W),i==null||i.required},m=D=>{var N;if(e.componentId==="radio"||e.componentId==="radio-group"){const _=(N=l[D])==null?void 0:N.value;return dn(h)===_}},x=(l==null?void 0:l.length)||0;return u.length>0?O.jsx(hr,{errors:u}):O.jsxs(Ur,{id:e.id,$style:"input",children:[O.jsxs(mr,{children:[O.jsx(qt,{$margin:"0px 0px 5px 10px",children:(P=e.props)==null?void 0:P.label}),l&&l.map((D,N)=>{const _=N===0&&N+1!=x?"first":x===N+1?"last":null,W=e.id+"_"+N,R=e.componentId==="radio-group"?i.propertyId:e.id;return O.jsx(Kt,{$justify:"flex-start",$inputBoundary:_,children:O.jsxs("label",{htmlFor:W,children:[O.jsx(Mr,{dangerouslySetInnerHTML:{__html:D.labelText}}),O.jsx("input",{type:"checkbox",id:W,name:R,value:D.value,onChange:k=>b(k),checked:m(N)}),O.jsx("span",{})]})},W)})]}),O.jsx(Pt,{$bottom:"-30px",$visible:!0,children:n(i.propertyId)||(i!=null&&i.required?"Required":"")})]},e.id)},Ga=({formComponent:e})=>{const t=e.props,{required:r,maxLength:n,propertyId:o,label:a="Text Area Input"}=t||{},[i,l]=Ve.useState(""),{getFlowError:u}=pt(),h=b=>{const{value:m}=b.target;l(m)};return O.jsxs(gr,{children:[O.jsx(qt,{children:a}),O.jsx("textarea",{id:o,name:o,value:i,onChange:h,rows:3,maxLength:n||600}),O.jsx(Pt,{$bottom:"-30px",$visible:!0,children:u(o)||(t!=null&&t.required?"Required":"")})]})},La=({formComponent:e})=>{var x;const t=e.props,{required:r,propertyId:n,label:o,inlineLabelText:a="Yes"}=t||{},{getFlowValue:i,setFlowAndPatientValue:l,getFlowError:u}=pt(),h=i(n),b=!!h,m=P=>{const{checked:D}=P.target;l(t.propertyId,!!D)};return O.jsxs(Ur,{children:[O.jsxs(mr,{children:[O.jsx(qt,{$margin:"0px 0px 5px 10px",children:(x=e.props)==null?void 0:x.label}),O.jsx(Kt,{$justify:"flex-start",children:O.jsxs("label",{children:[O.jsx(Mr,{dangerouslySetInnerHTML:{__html:a}}),O.jsx("input",{type:"checkbox",name:n,value:h,onChange:P=>m(P),checked:b}),O.jsx("span",{})]})})]}),O.jsx(Pt,{$bottom:"-30px",$visible:!0,children:u(n)||(t!=null&&t.required?"Required":"")})]})},Ba=({formComponent:e})=>{var P;const t=e.props,{required:r,propertyId:n,label:o="Label"}=t||{},a=(t==null?void 0:t.options)||[],{getFlowValue:i,setFlowAndPatientValue:l,getFlowError:u}=pt(),h=i(n),b=D=>{const{value:N}=D.target;let _=Array.isArray(h)?[...h]:[];if(_.indexOf(N)!==-1){let W=_.indexOf(N);_.splice(W,1)}else _.push(N);console.log(_),l(t.propertyId,_),t==null||t.required},m=D=>{var _;const N=(_=a[D])==null?void 0:_.value;return Array.isArray(h)&&h.includes(N)},x=(a==null?void 0:a.length)||0;return O.jsxs(Ur,{id:e.id,$style:"input",children:[O.jsxs(mr,{children:[O.jsx(qt,{$margin:"0px 0px 5px 10px",children:(P=e.props)==null?void 0:P.label}),a&&a.map((D,N)=>{const _=N===0&&N+1!=x?"first":x===N+1?"last":null,W=e.id+"_"+N,R=e.componentId==="radio-group"?t.propertyId:e.id;return O.jsx(Kt,{$justify:"flex-start",$inputBoundary:_,children:O.jsxs("label",{htmlFor:W,children:[O.jsx(Mr,{dangerouslySetInnerHTML:{__html:D.labelText}}),O.jsx("input",{type:"checkbox",id:W,name:R,value:D.value,onChange:k=>b(k),checked:m(N)}),O.jsx("span",{})]})},W)})]}),O.jsx(Pt,{$bottom:"-30px",$visible:!0,children:u(t.propertyId)||(t!=null&&t.required?"Required":"")})]},e.id)},qa=({formComponent:e})=>{const{getFlowValue:t,setFlowAndPatientValue:r,getFlowError:n}=pt(),o=e.props,{labelText:a,leftText:i,middleText:l,rightText:u,propertyId:h,required:b}=o||{},m=t(h),x=N=>{r(h,N)},P=N=>({1:"#9AB777",2:"#949455",3:"#A07D4B",4:"#AC6741",5:"#BD5E46"})[N]||"#9AB777",D=N=>m===N;return O.jsxs(gr,{$type:"symptomSurvey",children:[O.jsxs(Qa,{children:[a&&O.jsx(mn,{$color:"primary",$margin:"0px 0px 10px 0px",children:a}),O.jsxs(Ha,{children:[O.jsxs(Wa,{children:[i&&O.jsx(Sr,{children:i}),l&&O.jsx(Sr,{children:l}),u&&O.jsx(Sr,{children:u})]}),O.jsx(Ya,{children:[1,2,3,4,5].map(N=>O.jsx(Ja,{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:O.jsx(Xa,{$severity:N,$color:P(N),$isSelected:D(N),onClick:()=>x(N),type:"button",children:N})},N))})]})]}),O.jsx(Pt,{$bottom:"-30px",$visible:!0,children:n(o.propertyId)||(o!=null&&o.required?"Required":"")})]},e.id)};E.div`
|
|
2271
2348
|
&&{
|
|
2272
2349
|
display: flex;
|
|
2273
2350
|
align-items: center;
|
|
2274
2351
|
}
|
|
2275
|
-
`;
|
|
2352
|
+
`;E.h3`
|
|
2276
2353
|
&&{
|
|
2277
2354
|
font-family: ${e=>e.theme.fonts.poppins};
|
|
2278
2355
|
font-weight: 600;
|
|
@@ -2280,11 +2357,11 @@ Take a look at the reducer(s) handling this action type: ${w.type}.
|
|
|
2280
2357
|
color: ${e=>e.theme.colors.primary};
|
|
2281
2358
|
margin: 0;
|
|
2282
2359
|
}
|
|
2283
|
-
`;const
|
|
2360
|
+
`;const Qa=E.div`
|
|
2284
2361
|
&&{
|
|
2285
2362
|
margin-top: 15px;
|
|
2286
2363
|
}
|
|
2287
|
-
`,
|
|
2364
|
+
`,Ha=E.div`
|
|
2288
2365
|
&&{
|
|
2289
2366
|
background-color: ${e=>e.theme.colors.neutral20};
|
|
2290
2367
|
border-radius: 8px;
|
|
@@ -2293,7 +2370,7 @@ Take a look at the reducer(s) handling this action type: ${w.type}.
|
|
|
2293
2370
|
flex-direction: column;
|
|
2294
2371
|
gap: 8px;
|
|
2295
2372
|
}
|
|
2296
|
-
`,
|
|
2373
|
+
`,Wa=E.div`
|
|
2297
2374
|
&&{
|
|
2298
2375
|
display: flex;
|
|
2299
2376
|
justify-content: space-between;
|
|
@@ -2301,7 +2378,7 @@ Take a look at the reducer(s) handling this action type: ${w.type}.
|
|
|
2301
2378
|
// padding: 0 8px;
|
|
2302
2379
|
padding: 3px 0px;
|
|
2303
2380
|
}
|
|
2304
|
-
`,
|
|
2381
|
+
`,Sr=E.span`
|
|
2305
2382
|
&&{
|
|
2306
2383
|
font-family: ${e=>e.theme.fonts.poppins};
|
|
2307
2384
|
font-weight: 600;
|
|
@@ -2321,20 +2398,20 @@ Take a look at the reducer(s) handling this action type: ${w.type}.
|
|
|
2321
2398
|
text-align: right;
|
|
2322
2399
|
}
|
|
2323
2400
|
}
|
|
2324
|
-
`,
|
|
2401
|
+
`,Ya=E.div`
|
|
2325
2402
|
&&{
|
|
2326
2403
|
display: flex;
|
|
2327
2404
|
justify-content: space-between;
|
|
2328
2405
|
gap: 8px;
|
|
2329
2406
|
}
|
|
2330
|
-
`,
|
|
2407
|
+
`,Ja=E.div`
|
|
2331
2408
|
display: 'flex';
|
|
2332
2409
|
flex-direction: 'column';
|
|
2333
2410
|
align-items: 'center';
|
|
2334
2411
|
width: 44px;
|
|
2335
2412
|
max-width: 17%;
|
|
2336
2413
|
|
|
2337
|
-
`,
|
|
2414
|
+
`,Xa=E.button`
|
|
2338
2415
|
&&{
|
|
2339
2416
|
width: 100%;
|
|
2340
2417
|
height: 44px;
|
|
@@ -2362,7 +2439,7 @@ Take a look at the reducer(s) handling this action type: ${w.type}.
|
|
|
2362
2439
|
box-shadow: 0 0 0 2px ${e=>e.theme.colors.primary}40;
|
|
2363
2440
|
}
|
|
2364
2441
|
}
|
|
2365
|
-
`,
|
|
2442
|
+
`,Ka=e=>e instanceof Date&&!isNaN(e.getTime()),Za=({formComponent:e})=>{const t=e.props,{propertyId:r,label:n="Label"}=t||{},{getFlowValue:o,setFlowAndPatientValue:a,getFlowError:i}=pt(),l=o(t.propertyId),[u,h]=Ve.useState(!1),b=P=>(a(r,m(P)),null),m=P=>{if(!Ka(P))return"";const D=new Date(P),N=String(D.getDate()).padStart(2,"0"),_=String(D.getMonth()+1).padStart(2,"0"),W=D.getFullYear();return`${_}/${N}/${W}`},x=vr.default.default||vr.default||vr;return O.jsx(ho,{$justify:"start",$margin:"",id:`datepicker_${r}`,children:O.jsxs(po,{$visible:!0,$margin:"0px auto 40px 0px",children:[O.jsx(Nr,{children:n}),O.jsx(x,{selected:l,onChange:P=>b(P),allowSameDay:!0,dateFormat:"MM/dd/yyyy",showYearDropdown:!0,scrollableYearDropdown:!0,showMonthDropdown:!0,yearDropdownItemNumber:100,popperClassName:"DPCalendar",popperPlacement:"top-end",minDate:null,maxDate:null}),O.jsx(Pt,{$bottom:"-30px",$visible:!0,children:i(t.propertyId)||(t!=null&&t.required?"Required":"")})]})})},ei=({formComponent:e})=>{const t=e.props,{propertyId:r,label:n="Text Area Input"}=t||{},{getFlowValue:o,setFlowAndPatientValue:a,getFlowError:i}=pt(),l=o(t.propertyId),u=(t==null?void 0:t.options)||[],[h,b]=Ve.useState(!1),m=()=>{h||b(!0)},x=P=>{const{value:D}=P.target;a(t.propertyId,D)};return O.jsxs(gn,{$visible:!0,children:[O.jsx(qt,{children:n}),O.jsxs("select",{id:r,name:r,onChange:P=>x(P),onBlur:m,value:l||"",children:[O.jsx("option",{value:"",disabled:!0,children:"Make a selection"}),u&&u.map((P,D)=>O.jsx("option",{value:P.value,children:P.labelText},D))]}),O.jsx(Pt,{$bottom:"-30px",$visible:!0,children:i(r)||(t!=null&&t.required?"Required":"")})]})},ti=({formComponent:e})=>{const t=e.props,{required:r,maxLength:n,propertyId:o,label:a="Text Input",type:i="text"}=t||{},{getFlowValue:l,setFlowAndPatientValue:u,getFlowError:h}=pt(),b=ja(l(o)),m=x=>{const{value:P}=x.target;u(o,Fa(P))};return O.jsxs(gr,{$visible:!0,children:[O.jsx(Nr,{children:a}),O.jsx("input",{id:o,name:o,type:i,value:b,onChange:m,maxLength:n||255}),O.jsx(Pt,{$bottom:"-30px",$visible:!0,children:h(o)||(t!=null&&t.required?"Required":"")})]})},ri=({formComponent:e})=>{const t=e.props,{propertyId:r,label:n="Input Label"}=t||{},{getFlowValue:o,setFlowAndPatientValue:a,getPatientValue:i,getFlowError:l}=pt(),u=o(r),h=i("dosing"),[b,m]=Ve.useState(!1);if(!h)return O.jsx("p",{children:"Titration options not available for preview"});const x=Object.values(h)[0],P=typeof x=="object"&&x!==null&&"titrations"in x?x.titrations:[],D=()=>{b||m(!0)},N=_=>{const{value:W}=_.target;a(t.propertyId,W)};return O.jsxs(gn,{$visible:!0,children:[O.jsx(qt,{children:n}),O.jsxs("select",{id:r,name:r,onChange:_=>N(_),onBlur:D,value:u||"",children:[O.jsx("option",{value:"",disabled:!0,children:"Make a selection"}),P&&P.map((_,W)=>O.jsxs("option",{value:_,children:[_," mg"]},W))]}),O.jsx(Pt,{$bottom:"-30px",$visible:!0,children:l(t.propertyId)||(t!=null&&t.required?"Required":"")})]})},ni=({formComponent:e})=>{const t=e.props;return t!=null&&t.text?O.jsx(eo,{$margin:"0px",$color:t.color,$align:t["text-align"],dangerouslySetInnerHTML:{__html:t.text}}):null},oi=({formComponent:e})=>{const t=e.props;return t!=null&&t.src?O.jsx(bo,{src:t.src}):O.jsx(hr,{errors:["Image form component is missing valid image src"]})},ai=({formComponent:e})=>O.jsx(ii,{children:O.jsx(si,{children:O.jsx(li,{children:O.jsxs("svg",{width:"352",height:"243",viewBox:"0 0 352 243",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsxs("g",{"clip-path":"url(#clip0_356_13948)",children:[O.jsxs("g",{"clip-path":"url(#clip1_356_13948)",children:[O.jsx("path",{d:"M351 195C151.369 195 32.4675 102 0 22V230H351V195Z",fill:"url(#paint0_linear_356_13948)"}),O.jsx("path",{d:"M0 22C32.4675 102 151.369 195 351 195",stroke:"#86AF61","stroke-width":"2","stroke-linecap":"round"})]}),O.jsx("circle",{cx:"294.5",cy:"191.5",r:"22.5",fill:"#6F9351","fill-opacity":"0.16"}),O.jsx("circle",{cx:"294.5",cy:"191.5",r:"6.5",fill:"white",stroke:"#6F9351","stroke-width":"4"}),O.jsx("path",{d:"M0 22C32.56 75.1792 151.8 137 352 137",stroke:"#D9D8D8","stroke-width":"2","stroke-linecap":"round"})]}),O.jsxs("defs",{children:[O.jsxs("linearGradient",{id:"paint0_linear_356_13948",x1:"58.654",y1:"230",x2:"58.654",y2:"22",gradientUnits:"userSpaceOnUse",children:[O.jsx("stop",{"stop-color":"#86AF61","stop-opacity":"0"}),O.jsx("stop",{offset:"1","stop-color":"#86AF61"})]}),O.jsx("clipPath",{id:"clip0_356_13948",children:O.jsx("rect",{width:"352",height:"242",fill:"white",transform:"translate(0 0.5)"})}),O.jsx("clipPath",{id:"clip1_356_13948",children:O.jsx("rect",{width:"351",height:"220",fill:"white",transform:"translate(0 22)"})})]})]})})})}),ii=E.div`
|
|
2366
2443
|
&& {
|
|
2367
2444
|
display: flex;
|
|
2368
2445
|
flex-direction: column;
|
|
@@ -2377,14 +2454,14 @@ Take a look at the reducer(s) handling this action type: ${w.type}.
|
|
|
2377
2454
|
padding: 0 5px;
|
|
2378
2455
|
}
|
|
2379
2456
|
}
|
|
2380
|
-
`,
|
|
2457
|
+
`,si=E.div`
|
|
2381
2458
|
&& {
|
|
2382
2459
|
position: relative;
|
|
2383
2460
|
width: 100%;
|
|
2384
2461
|
// height: 188px;
|
|
2385
2462
|
// margin-bottom: 54px;
|
|
2386
2463
|
}
|
|
2387
|
-
`,
|
|
2464
|
+
`,li=E.div`
|
|
2388
2465
|
&& {
|
|
2389
2466
|
position: relative;
|
|
2390
2467
|
width: 100%;
|
|
@@ -2393,7 +2470,7 @@ Take a look at the reducer(s) handling this action type: ${w.type}.
|
|
|
2393
2470
|
animation-delay: 0.25s;
|
|
2394
2471
|
clip-path: inset(0 100% 0 0);
|
|
2395
2472
|
}
|
|
2396
|
-
`,
|
|
2473
|
+
`,Un=document.createElement("style");Un.textContent=`
|
|
2397
2474
|
@keyframes revealGraph {
|
|
2398
2475
|
from {
|
|
2399
2476
|
clip-path: inset(0 100% 0 0);
|
|
@@ -2411,10 +2488,10 @@ Take a look at the reducer(s) handling this action type: ${w.type}.
|
|
|
2411
2488
|
opacity: 1;
|
|
2412
2489
|
}
|
|
2413
2490
|
}
|
|
2414
|
-
`;document.head.appendChild(
|
|
2491
|
+
`;document.head.appendChild(Un);const ci=({formComponent:e})=>O.jsx("hr",{style:{height:"1px",border:"1px solid #D9D8D8",opacity:1,margin:"20px 0"}}),ui=({formComponent:e})=>{var t;return(t=e.props)!=null&&t.text?O.jsx(to,{$margin:"0px",dangerouslySetInnerHTML:{__html:e.props.text}}):null},di=({formComponent:e})=>{const t=e.props;return t!=null&&t.text?O.jsx(ro,{$margin:"0px",$color:t.color,$align:t["text-align"],dangerouslySetInnerHTML:{__html:t.text}}):null},fi=({formComponent:e})=>{const t=e.props;return t!=null&&t.text?O.jsx(mn,{$margin:"0px",$color:t.color,$align:t["text-align"],dangerouslySetInnerHTML:{__html:t.text}}):null},hi=({formComponent:e})=>{const t=e.props,{medication:r="Compounded Semaglutide"}=t||{};return O.jsx(pi,{children:O.jsxs(mi,{children:[O.jsx(gi,{children:"IN REVIEW"}),O.jsx(yi,{children:"Refill Request"}),O.jsx(bi,{children:O.jsxs(xi,{children:[O.jsx(wi,{children:O.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{d:"M20 11C19.7554 9.24017 18.9391 7.60961 17.6766 6.35945C16.4142 5.10928 14.7758 4.30887 13.0137 4.0815C11.2516 3.85414 9.46362 4.21243 7.9252 5.1012C6.38678 5.98996 5.18325 7.35989 4.5 8.99995M4 4.99995V8.99995H8M4 13C4.24456 14.7598 5.06093 16.3903 6.32336 17.6405C7.58579 18.8907 9.22424 19.6911 10.9863 19.9184C12.7484 20.1458 14.5364 19.7875 16.0748 18.8988C17.6132 18.01 18.8168 16.6401 19.5 15M20 19V15H16",stroke:"currentColor",strokeOpacity:"0.7",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),O.jsx($i,{children:r})]})})]})})},pi=E.div`
|
|
2415
2492
|
position: relative;
|
|
2416
2493
|
padding-top: 34px;
|
|
2417
|
-
`,
|
|
2494
|
+
`,mi=E.div`
|
|
2418
2495
|
background: #F5F4F2;
|
|
2419
2496
|
border-radius: 10px;
|
|
2420
2497
|
padding: 10px 20px 20px 20px;
|
|
@@ -2425,7 +2502,7 @@ Take a look at the reducer(s) handling this action type: ${w.type}.
|
|
|
2425
2502
|
max-height: 'auto';
|
|
2426
2503
|
max-width: 100%;
|
|
2427
2504
|
height: auto;
|
|
2428
|
-
`,
|
|
2505
|
+
`,gi=E.div`
|
|
2429
2506
|
position: absolute;
|
|
2430
2507
|
top: 0px;
|
|
2431
2508
|
right: 16px;
|
|
@@ -2437,19 +2514,19 @@ Take a look at the reducer(s) handling this action type: ${w.type}.
|
|
|
2437
2514
|
font-weight: 600;
|
|
2438
2515
|
letter-spacing: 0.05em;
|
|
2439
2516
|
height: 34px;
|
|
2440
|
-
`,
|
|
2517
|
+
`,yi=E.h2`
|
|
2441
2518
|
font-size: 14px;
|
|
2442
2519
|
line-height: 28px;
|
|
2443
2520
|
font-weight: 600;
|
|
2444
2521
|
color: #32312D;
|
|
2445
2522
|
margin: 4px 0 10px 0;
|
|
2446
2523
|
font-family: ${e=>e.theme.fonts.poppins};
|
|
2447
|
-
`,
|
|
2524
|
+
`,bi=E.div`
|
|
2448
2525
|
display: flex;
|
|
2449
2526
|
align-items: center;
|
|
2450
2527
|
min-height: 35px;
|
|
2451
2528
|
// gap: 16px;
|
|
2452
|
-
`;
|
|
2529
|
+
`;E.div`
|
|
2453
2530
|
width: 80px;
|
|
2454
2531
|
height: 80px;
|
|
2455
2532
|
background: white;
|
|
@@ -2458,44 +2535,44 @@ Take a look at the reducer(s) handling this action type: ${w.type}.
|
|
|
2458
2535
|
align-items: center;
|
|
2459
2536
|
justify-content: center;
|
|
2460
2537
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
2461
|
-
`;const
|
|
2538
|
+
`;const xi=E.div`
|
|
2462
2539
|
display:flex;
|
|
2463
|
-
`,
|
|
2540
|
+
`,wi=E.div`
|
|
2464
2541
|
color: #6b7280;
|
|
2465
2542
|
// margin-bottom: 8px;
|
|
2466
2543
|
margin-left: 20px;
|
|
2467
|
-
|
|
2544
|
+
`,$i=E.p`
|
|
2468
2545
|
font-size: 18px;
|
|
2469
2546
|
font-weight: 500;
|
|
2470
2547
|
color: #1f2937;
|
|
2471
2548
|
margin: 0;
|
|
2472
2549
|
margin-left:14px;
|
|
2473
|
-
`,fi={number:"number","number-input":"number",radio:"string","radio-group":"string","checkbox-single":"boolean","checkbox-multi":"any[]",scale:"number",dropdown:"string",datepicker:"string","text-input":"string"},hi={header:Ha,image:Wa,"weight-loss-chart":Ya,"horizontal-rule":Za,"text-tip":ei,"small-text":ti,paragraph:ri,"refill-request":ni,"checkbox-single":Fa,"checkbox-multi":_a,radio:cn,"radio-group":cn,number:Ta,dropdown:Qa,datepicker:Ba,scale:Ia,"text-input":qa,textarea:ja},Ct=()=>{const e=Ht.useDispatch(),t=Ht.useSelector(w=>wa(w)),r=Ht.useSelector(w=>Pa(w)),n=Ne.useCallback((w,S)=>{e(xa({field:w,value:S}))},[e]),o=Ne.useCallback(w=>t[w],[t]),a=Ne.useCallback(()=>t,[t]),i=Ne.useCallback(w=>{e(sn(w)),e(sn(w))},[e]),l=Ne.useCallback((w,S)=>{e(Ca({[w]:S}))},[e]),u=Ne.useCallback(w=>{const S={id:w.customerId??1,profile:w.data};e(va(S))},[e]),h=Ne.useCallback(w=>r==null?void 0:r[w],[r]),b=Ne.useCallback(()=>r,[r]),g=Ne.useCallback((w,S)=>{n(w,S),l(w,S)},[n,l]),x=Ne.useCallback(w=>{const S={};return w.flowForms&&w.flowForms.forEach(I=>{var M;(M=I.form)!=null&&M.formComponents&&I.form.formComponents.forEach(J=>{const _=J.componentId||"";if(fi[_]){const W=J.props,N=W==null?void 0:W.propertyId;N&&(S[N]=null)}})}),S},[]);return{setFlowValue:n,setFlowValues:i,getFlowValue:o,getAllFlowData:a,setPatientValue:l,setPatientValues:u,getPatientValue:h,getFullPatient:b,setFlowAndPatientValue:g,generateFormDataFromFlow:x}};function ir(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Sr={exports:{}},un;function pi(){return un||(un=1,function(e,t){(function(r){e.exports=r()})(function(){return function(){function r(n,o,a){function i(h,b){if(!o[h]){if(!n[h]){var g=typeof ir=="function"&&ir;if(!b&&g)return g(h,!0);if(l)return l(h,!0);var x=new Error("Cannot find module '"+h+"'");throw x.code="MODULE_NOT_FOUND",x}var w=o[h]={exports:{}};n[h][0].call(w.exports,function(S){var I=n[h][1][S];return i(I||S)},w,w.exports,r,n,o,a)}return o[h].exports}for(var l=typeof ir=="function"&&ir,u=0;u<a.length;u++)i(a[u]);return i}return r}()({1:[function(r,n,o){const a=r("./utils"),i=function(){const l=a.stringToArray,u=["Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen"],h=["Zeroth","First","Second","Third","Fourth","Fifth","Sixth","Seventh","Eighth","Ninth","Tenth","Eleventh","Twelfth","Thirteenth","Fourteenth","Fifteenth","Sixteenth","Seventeenth","Eighteenth","Nineteenth"],b=["Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety","Hundred"],g=["Thousand","Million","Billion","Trillion"];function x(k,R){var O=function(H,q,j){var Q="";if(H<=19)Q=(q?" and ":"")+(j?h[H]:u[H]);else if(H<100){const Pe=Math.floor(H/10),Ee=H%10;Q=(q?" and ":"")+b[Pe-2],Ee>0?Q+="-"+O(Ee,!1,j):j&&(Q=Q.substring(0,Q.length-1)+"ieth")}else if(H<1e3){const Pe=Math.floor(H/100),Ee=H%100;Q=(q?", ":"")+u[Pe]+" Hundred",Ee>0?Q+=O(Ee,!0,j):j&&(Q+="th")}else{var ce=Math.floor(Math.log10(H)/3);ce>g.length&&(ce=g.length);const Pe=Math.pow(10,ce*3),Ee=Math.floor(H/Pe),le=H-Ee*Pe;Q=(q?", ":"")+O(Ee,!1,!1)+" "+g[ce-1],le>0?Q+=O(le,!0,j):j&&(Q+="th")}return Q},U=O(k,!1,R);return U}const w={};u.forEach(function(k,R){w[k.toLowerCase()]=R}),h.forEach(function(k,R){w[k.toLowerCase()]=R}),b.forEach(function(k,R){const O=k.toLowerCase();w[O]=(R+2)*10,w[O.substring(0,k.length-1)+"ieth"]=w[O]}),w.hundredth=100,g.forEach(function(k,R){const O=k.toLowerCase(),U=Math.pow(10,(R+1)*3);w[O]=U,w[O+"th"]=U});function S(k){const O=k.split(/,\s|\sand\s|[\s\\-]/).map(q=>w[q]);let U=[0];return O.forEach(q=>{if(q<100){let j=U.pop();j>=1e3&&(U.push(j),j=0),U.push(j+q)}else U.push(U.pop()*q)}),U.reduce((q,j)=>q+j,0)}const I=[[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"]],M={M:1e3,D:500,C:100,L:50,X:10,V:5,I:1};function J(k){for(var R=0;R<I.length;R++){const O=I[R];if(k>=O[0])return O[1]+J(k-O[0])}return""}function _(k){for(var R=0,O=1,U=k.length-1;U>=0;U--){const H=k[U],q=M[H];q<O?R-=q:(O=q,R+=q)}return R}function T(k,R){for(var O=[],U=R.charCodeAt(0);k>0;)O.unshift(String.fromCharCode((k-1)%26+U)),k=Math.floor((k-1)/26);return O.join("")}function W(k,R){for(var O=R.charCodeAt(0),U=0,H=0;H<k.length;H++)U+=(k.charCodeAt(k.length-H-1)-O+1)*Math.pow(26,H);return U}function N(k,R){if(typeof k>"u")return;k=Math.floor(k);const O=Se(R);return G(k,O)}const E={DECIMAL:"decimal",LETTERS:"letters",ROMAN:"roman",WORDS:"words",SEQUENCE:"sequence"},z={UPPER:"upper",LOWER:"lower",TITLE:"title"};function G(k,R){let O;const U=k<0;switch(k=Math.abs(k),R.primary){case E.LETTERS:O=T(k,R.case===z.UPPER?"A":"a");break;case E.ROMAN:O=J(k),R.case===z.UPPER&&(O=O.toUpperCase());break;case E.WORDS:O=x(k,R.ordinal),R.case===z.UPPER?O=O.toUpperCase():R.case===z.LOWER&&(O=O.toLowerCase());break;case E.DECIMAL:O=""+k;var H=R.mandatoryDigits-O.length;if(H>0){var q=new Array(H+1).join("0");O=q+O}if(R.zeroCode!==48&&(O=l(O).map(Pe=>String.fromCodePoint(Pe.codePointAt(0)+R.zeroCode-48)).join("")),R.regular){const Pe=Math.floor((O.length-1)/R.groupingSeparators.position);for(let Ee=Pe;Ee>0;Ee--){const le=O.length-Ee*R.groupingSeparators.position;O=O.substr(0,le)+R.groupingSeparators.character+O.substr(le)}}else R.groupingSeparators.reverse().forEach(Pe=>{const Ee=O.length-Pe.position;O=O.substr(0,Ee)+Pe.character+O.substr(Ee)});if(R.ordinal){var j={1:"st",2:"nd",3:"rd"},Q=O[O.length-1],ce=j[Q];(!ce||O.length>1&&O[O.length-2]==="1")&&(ce="th"),O=O+ce}break;case E.SEQUENCE:throw{code:"D3130",value:R.token}}return U&&(O="-"+O),O}const ge=[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 Se(k){const R={type:"integer",primary:E.DECIMAL,case:z.LOWER,ordinal:!1};let O,U;const H=k.lastIndexOf(";");switch(H===-1?O=k:(O=k.substring(0,H),U=k.substring(H+1),U[0]==="o"&&(R.ordinal=!0)),O){case"A":R.case=z.UPPER;case"a":R.primary=E.LETTERS;break;case"I":R.case=z.UPPER;case"i":R.primary=E.ROMAN;break;case"W":R.case=z.UPPER,R.primary=E.WORDS;break;case"Ww":R.case=z.TITLE,R.primary=E.WORDS;break;case"w":R.primary=E.WORDS;break;default:{let q=null,j=0,Q=0,ce=[],Pe=0;if(l(O).map(le=>le.codePointAt(0)).reverse().forEach(le=>{let de=!1;for(let ke=0;ke<ge.length;ke++){const re=ge[ke];if(le>=re&&le<=re+9){if(de=!0,j++,Pe++,q===null)q=re;else if(re!==q)throw{code:"D3131"};break}}de||(le===35?(Pe++,Q++):ce.push({position:Pe,character:String.fromCodePoint(le)}))}),j>0){R.primary=E.DECIMAL,R.zeroCode=q,R.mandatoryDigits=j,R.optionalDigits=Q;const de=function(ke){if(ke.length===0)return 0;const re=ke[0].character;for(let We=1;We<ke.length;We++)if(ke[We].character!==re)return 0;const Je=ke.map(We=>We.position),ut=function(We,tt){return tt===0?We:ut(tt,We%tt)},et=Je.reduce(ut);for(let We=1;We<=Je.length;We++)if(Je.indexOf(We*et)===-1)return 0;return et}(ce);de>0?(R.regular=!0,R.groupingSeparators={position:de,character:ce[0].character}):(R.regular=!1,R.groupingSeparators=ce)}else R.primary=E.SEQUENCE,R.token=O}}return R}const Ve={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 De(k){var R=[];const O={type:"datetime",parts:R},U=function(de,ke){if(ke>de){let re=k.substring(de,ke);re=re.split("]]").join("]"),R.push({type:"literal",value:re})}};for(var H=0,q=0;q<k.length;){if(k.charAt(q)==="["){if(k.charAt(q+1)==="["){U(H,q),R.push({type:"literal",value:"["}),q+=2,H=q;continue}if(U(H,q),H=q,q=k.indexOf("]",H),q===-1)throw{code:"D3135"};let de=k.substring(H+1,q);de=de.split(/\s+/).join("");var j={type:"marker",component:de.charAt(0)},Q=de.lastIndexOf(","),ce;if(Q!==-1){const ke=de.substring(Q+1),re=ke.indexOf("-");let Je,ut;const et=function(tt){if(!(typeof tt>"u"||tt==="*"))return parseInt(tt)};re===-1?Je=ke:(Je=ke.substring(0,re),ut=ke.substring(re+1));const We={min:et(Je),max:et(ut)};j.width=We,ce=de.substring(1,Q)}else ce=de.substring(1);if(ce.length===1)j.presentation1=ce;else if(ce.length>1){var Pe=ce.charAt(ce.length-1);"atco".indexOf(Pe)!==-1?(j.presentation2=Pe,Pe==="o"&&(j.ordinal=!0),j.presentation1=ce.substring(0,ce.length-1)):j.presentation1=ce}else j.presentation1=Ve[j.component];if(typeof j.presentation1>"u")throw{code:"D3132",value:j.component};if(j.presentation1[0]==="n")j.names=z.LOWER;else if(j.presentation1[0]==="N")j.presentation1[1]==="n"?j.names=z.TITLE:j.names=z.UPPER;else if("YMDdFWwXxHhmsf".indexOf(j.component)!==-1){var Ee=j.presentation1;if(j.presentation2&&(Ee+=";"+j.presentation2),j.integerFormat=Se(Ee),j.width&&j.width.min!==void 0&&j.integerFormat.mandatoryDigits<j.width.min&&(j.integerFormat.mandatoryDigits=j.width.min),j.component==="Y")if(j.n=-1,j.width&&j.width.max!==void 0)j.n=j.width.max,j.integerFormat.mandatoryDigits=j.n;else{var le=j.integerFormat.mandatoryDigits+j.integerFormat.optionalDigits;le>=2&&(j.n=le)}const ke=R[R.length-1];ke&&ke.integerFormat&&(ke.integerFormat.parseWidth=ke.integerFormat.mandatoryDigits)}(j.component==="Z"||j.component==="z")&&(j.integerFormat=Se(j.presentation1)),R.push(j),H=q+1}q++}return U(H,q),O}const be=["","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Fe=["January","February","March","April","May","June","July","August","September","October","November","December"],Ze=1e3*60*60*24,Ae=function(k){const R=Date.UTC(k.year,k.month);var O=new Date(R).getUTCDay();return O===0&&(O=7),O>4?R+(8-O)*Ze:R-(O-1)*Ze},we=function(k,R){return{year:k,month:R,nextMonth:function(){return R===11?we(k+1,0):we(k,R+1)},previousMonth:function(){return R===0?we(k-1,11):we(k,R-1)},nextYear:function(){return we(k+1,R)},previousYear:function(){return we(k-1,R)}}},it=function(k,R){return(R-k)/(Ze*7)+1},pe=(k,R)=>{let O;switch(R){case"Y":O=k.getUTCFullYear();break;case"M":O=k.getUTCMonth()+1;break;case"D":O=k.getUTCDate();break;case"d":{const U=Date.UTC(k.getUTCFullYear(),k.getUTCMonth(),k.getUTCDate()),H=Date.UTC(k.getUTCFullYear(),0);O=(U-H)/Ze+1;break}case"F":O=k.getUTCDay(),O===0&&(O=7);break;case"W":{const U=we(k.getUTCFullYear(),0),H=Ae(U),q=Date.UTC(U.year,k.getUTCMonth(),k.getUTCDate());let j=it(H,q);if(j>52){const Q=Ae(U.nextYear());q>=Q&&(j=1)}else if(j<1){const Q=Ae(U.previousYear());j=it(Q,q)}O=Math.floor(j);break}case"w":{const U=we(k.getUTCFullYear(),k.getUTCMonth()),H=Ae(U),q=Date.UTC(U.year,U.month,k.getUTCDate());let j=it(H,q);if(j>4){const Q=Ae(U.nextMonth());q>=Q&&(j=1)}else if(j<1){const Q=Ae(U.previousMonth());j=it(Q,q)}O=Math.floor(j);break}case"X":{const U=we(k.getUTCFullYear(),0),H=Ae(U),q=Ae(U.nextYear()),j=k.getTime();j<H?O=U.year-1:j>=q?O=U.year+1:O=U.year;break}case"x":{const U=we(k.getUTCFullYear(),k.getUTCMonth()),H=Ae(U),q=U.nextMonth(),j=Ae(q),Q=k.getTime();Q<H?O=U.previousMonth().month+1:Q>=j?O=q.month+1:O=U.month+1;break}case"H":O=k.getUTCHours();break;case"h":O=k.getUTCHours(),O=O%12,O===0&&(O=12);break;case"P":O=k.getUTCHours()>=12?"pm":"am";break;case"m":O=k.getUTCMinutes();break;case"s":O=k.getUTCSeconds();break;case"f":O=k.getUTCMilliseconds();break;case"Z":case"z":break;case"C":O="ISO";break;case"E":O="ISO";break}return O};let Be=null;function lt(k,R,O){var U=0,H=0;if(typeof O<"u"){const Ee=parseInt(O);U=Math.floor(Ee/100),H=Ee%100}var q=function(Ee,le){var de=pe(Ee,le.component);if("YMDdFWwXxHhms".indexOf(le.component)!==-1)if(le.component==="Y"&&le.n!==-1&&(de=de%Math.pow(10,le.n)),le.names){if(le.component==="M"||le.component==="x")de=Fe[de-1];else if(le.component==="F")de=be[de];else throw{code:"D3133",value:le.component};le.names===z.UPPER?de=de.toUpperCase():le.names===z.LOWER&&(de=de.toLowerCase()),le.width&&de.length>le.width.max&&(de=de.substring(0,le.width.max))}else de=G(de,le.integerFormat);else if(le.component==="f")de=G(de,le.integerFormat);else if(le.component==="Z"||le.component==="z"){const ke=U*100+H;if(le.integerFormat.regular)de=G(ke,le.integerFormat);else{const re=le.integerFormat.mandatoryDigits;if(re===1||re===2)de=G(U,le.integerFormat),H!==0&&(de+=":"+N(H,"00"));else if(re===3||re===4)de=G(ke,le.integerFormat);else throw{code:"D3134",value:re}}ke>=0&&(de="+"+de),le.component==="z"&&(de="GMT"+de),ke===0&&le.presentation2==="t"&&(de="Z")}else le.component==="P"&&le.names===z.UPPER&&(de=de.toUpperCase());return de};let j;typeof R>"u"?(Be===null&&(Be=De("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001][Z01:01t]")),j=Be):j=De(R);const Q=(60*U+H)*60*1e3,ce=new Date(k+Q);let Pe="";return j.parts.forEach(function(Ee){Ee.type==="literal"?Pe+=Ee.value:Pe+=q(ce,Ee)}),Pe}function m(k){var R={};if(k.type==="datetime")R.type="datetime",R.parts=k.parts.map(function(O){var U={};if(O.type==="literal")U.regex=O.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");else if(O.component==="Z"||O.component==="z"){let q;Array.isArray(O.integerFormat.groupingSeparators)||(q=O.integerFormat.groupingSeparators),U.regex="",O.component==="z"&&(U.regex="GMT"),U.regex+="[-+][0-9]+",q&&(U.regex+=q.character+"[0-9]+"),U.parse=function(j){O.component==="z"&&(j=j.substring(3));let Q=0,ce=0;return q?(Q=Number.parseInt(j.substring(0,j.indexOf(q.character))),ce=Number.parseInt(j.substring(j.indexOf(q.character)+1))):j.length-1<=2?Q=Number.parseInt(j):(Q=Number.parseInt(j.substring(0,3)),ce=Number.parseInt(j.substring(3))),Q*60+ce}}else if(O.integerFormat)U=m(O.integerFormat);else{U.regex="[a-zA-Z]+";var H={};if(O.component==="M"||O.component==="x")Fe.forEach(function(q,j){O.width&&O.width.max?H[q.substring(0,O.width.max)]=j+1:H[q]=j+1});else if(O.component==="F")be.forEach(function(q,j){j>0&&(O.width&&O.width.max?H[q.substring(0,O.width.max)]=j:H[q]=j)});else if(O.component==="P")H={am:0,AM:0,pm:1,PM:1};else throw{code:"D3133",value:O.component};U.parse=function(q){return H[q]}}return U.component=O.component,U});else{R.type="integer";const O=k.case===z.UPPER;switch(k.primary){case E.LETTERS:R.regex=O?"[A-Z]+":"[a-z]+",R.parse=function(U){return W(U,O?"A":"a")};break;case E.ROMAN:R.regex=O?"[MDCLXVI]+":"[mdclxvi]+",R.parse=function(U){return _(O?U:U.toUpperCase())};break;case E.WORDS:R.regex="(?:"+Object.keys(w).concat("and","[\\-, ]").join("|")+")+",R.parse=function(U){return S(U.toLowerCase())};break;case E.DECIMAL:R.regex="[0-9]",k.parseWidth?R.regex+=`{${k.parseWidth}}`:R.regex+="+",k.ordinal&&(R.regex+="(?:th|st|nd|rd)"),R.parse=function(U){let H=U;return k.ordinal&&(H=U.substring(0,U.length-2)),k.regular?H=H.split(",").join(""):k.groupingSeparators.forEach(q=>{H=H.split(q.character).join("")}),k.zeroCode!==48&&(H=H.split("").map(q=>String.fromCodePoint(q.codePointAt(0)-k.zeroCode+48)).join("")),parseInt(H)};break;case E.SEQUENCE:throw{code:"D3130",value:k.token}}}return R}function C(k,R){if(typeof k>"u")return;const O=Se(R);return m(O).parse(k)}function X(k,R){const O=De(R),U=m(O),H="^"+U.parts.map(ce=>"("+ce.regex+")").join("")+"$";var j=new RegExp(H,"i").exec(k);if(j!==null){const re={};for(let Re=1;Re<j.length;Re++){const d=U.parts[Re-1];d.parse&&(re[d.component]=d.parse(j[Re]))}if(Object.getOwnPropertyNames(re).length===0)return;let Je=0;const ut=Re=>{Je<<=1,Je+=Re?1:0},et=Re=>!(~Re&Je)&&!!(Re&Je);"YXMxWwdD".split("").forEach(Re=>ut(re[Re]));const tt=!et(161)&&et(130),wt=et(84),$t=!wt&&et(72);Je=0,"PHhmsf".split("").forEach(Re=>ut(re[Re]));const Pt=!et(23)&&et(47),Tt=(tt?"YD":wt?"XxwF":$t?"XWF":"YMD")+(Pt?"Phmsf":"Hmsf"),pt=this.environment.timestamp;let Ot=!1,xt=!1;if(Tt.split("").forEach(Re=>{if(typeof re[Re]>"u")Ot?(re[Re]="MDd".indexOf(Re)!==-1?1:0,xt=!0):re[Re]=pe(pt,Re);else if(Ot=!0,xt)throw{code:"D3136"}}),re.M>0?re.M-=1:re.M=0,tt){const Re=Date.UTC(re.Y,0),d=(re.d-1)*1e3*60*60*24,y=new Date(Re+d);re.M=y.getUTCMonth(),re.D=y.getUTCDate()}if(wt)throw{code:"D3136"};if($t)throw{code:"D3136"};Pt&&(re.H=re.h===12?0:re.h,re.P===1&&(re.H+=12));var Q=Date.UTC(re.Y,re.M,re.D,re.H,re.m,re.s,re.f);return(re.Z||re.z)&&(Q-=(re.Z||re.z)*60*1e3),Q}}var ve=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 Ue(k,R){if(!(typeof k>"u"))if(typeof R>"u"){if(!ve.test(k))throw{stack:new Error().stack,code:"D3110",value:k};return Date.parse(k)}else return X.call(this,k,R)}function Oe(k,R,O){if(!(typeof k>"u"))return lt.call(this,k,R,O)}return{formatInteger:N,parseInteger:C,fromMillis:Oe,toMillis:Ue}}();n.exports=i},{"./utils":6}],2:[function(r,n,o){(function(a){(function(){var i=r("./utils");const l=(()=>{var u=i.isNumeric,h=i.isArrayOfStrings,b=i.isArrayOfNumbers,g=i.createSequence,x=i.isSequence,w=i.isFunction,S=i.isLambda,I=i.isPromise,M=i.getFunctionArity,J=i.isDeepEqual,_=i.stringToArray;function T(s){if(!(typeof s>"u")){var c=0;return s.forEach(function(f){c+=f}),c}}function W(s){return typeof s>"u"?0:s.length}function N(s){if(!(typeof s>"u"||s.length===0))return Math.max.apply(Math,s)}function E(s){if(!(typeof s>"u"||s.length===0))return Math.min.apply(Math,s)}function z(s){if(!(typeof s>"u"||s.length===0)){var c=0;return s.forEach(function(f){c+=f}),c/s.length}}function G(s,c=!1){if(!(typeof s>"u")){var f;if(typeof s=="string")f=s;else if(w(s))f="";else{if(typeof s=="number"&&!isFinite(s))throw{code:"D3001",value:s,stack:new Error().stack};var P=c?2:0;Array.isArray(s)&&s.outerWrapper&&(s=s[0]),f=JSON.stringify(s,function($,A){return typeof A<"u"&&A!==null&&A.toPrecision&&u(A)?Number(A.toPrecision(15)):A&&w(A)?"":A},P)}return f}}function ge(s,c,f){if(!(typeof s>"u")){var P=_(s),$=P.length;if($+c<0&&(c=0),typeof f<"u"){if(f<=0)return"";var A=c>=0?c+f:$+c+f;return P.slice(c,A).join("")}return P.slice(c).join("")}}function Se(s,c){if(!(typeof s>"u")){var f=s.indexOf(c);return f>-1?s.substr(0,f):s}}function Ve(s,c){if(!(typeof s>"u")){var f=s.indexOf(c);return f>-1?s.substr(f+c.length):s}}function De(s){if(!(typeof s>"u"))return s.toLowerCase()}function be(s){if(!(typeof s>"u"))return s.toUpperCase()}function Fe(s){if(!(typeof s>"u"))return _(s).length}function Ze(s){if(!(typeof s>"u")){var c=s.replace(/[ \t\n\r]+/gm," ");return c.charAt(0)===" "&&(c=c.substring(1)),c.charAt(c.length-1)===" "&&(c=c.substring(0,c.length-1)),c}}function Ae(s,c,f){if(!(typeof s>"u")){(typeof f>"u"||f.length===0)&&(f=" ");var P;c=Math.trunc(c);var $=Math.abs(c)-Fe(s);if($>0){var A=new Array($+1).join(f);f.length>1&&(A=ge(A,0,$)),c>0?P=s+A:P=A+s}else P=s;return P}}async function we(s,c){var f=s.apply(this,[c]);if(I(f)&&(f=await f),f&&!(typeof f.start=="number"||f.end==="number"||Array.isArray(f.groups)||w(f.next)))throw{code:"T1010",stack:new Error().stack};return f}async function it(s,c){if(!(typeof s>"u")){var f;if(typeof c=="string")f=s.indexOf(c)!==-1;else{var P=await we(c,s);f=typeof P<"u"}return f}}async function pe(s,c,f){if(!(typeof s>"u")){if(f<0)throw{stack:new Error().stack,value:f,code:"D3040",index:3};var P=g();if(typeof f>"u"||f>0){var $=0,A=await we(c,s);if(typeof A<"u")for(;typeof A<"u"&&(typeof f>"u"||$<f);)P.push({match:A.match,index:A.start,groups:A.groups}),A=await we(A.next),$++}return P}}async function Be(s,c,f,P){if(!(typeof s>"u")){var $=this;if(c==="")throw{code:"D3010",stack:new Error().stack,value:c,index:2};if(P<0)throw{code:"D3011",stack:new Error().stack,value:P,index:4};var A;typeof f=="string"?A=function(Ie){for(var Xe="",Te=0,p=f.indexOf("$",Te);p!==-1&&Te<f.length;){Xe+=f.substring(Te,p),Te=p+1;var F=f.charAt(Te);if(F==="$")Xe+="$",Te++;else if(F==="0")Xe+=Ie.match,Te++;else{var B;if(Ie.groups.length===0?B=1:B=Math.floor(Math.log(Ie.groups.length)*Math.LOG10E)+1,p=parseInt(f.substring(Te,Te+B),10),B>1&&p>Ie.groups.length&&(p=parseInt(f.substring(Te,Te+B-1),10)),isNaN(p))Xe+="$";else{if(Ie.groups.length>0){var fe=Ie.groups[p-1];typeof fe<"u"&&(Xe+=fe)}Te+=p.toString().length}}p=f.indexOf("$",Te)}return Xe+=f.substring(Te),Xe}:A=f;var L="",ee=0;if(typeof P>"u"||P>0){var ue=0;if(typeof c=="string"){for(var _e=s.indexOf(c,ee);_e!==-1&&(typeof P>"u"||ue<P);)L+=s.substring(ee,_e),L+=f,ee=_e+c.length,ue++,_e=s.indexOf(c,ee);L+=s.substring(ee)}else{var Ce=await we(c,s);if(typeof Ce<"u"){for(;typeof Ce<"u"&&(typeof P>"u"||ue<P);){L+=s.substring(ee,Ce.start);var ze=A.apply($,[Ce]);if(I(ze)&&(ze=await ze),typeof ze=="string")L+=ze;else throw{code:"D3012",stack:new Error().stack,value:ze};ee=Ce.start+Ce.match.length,ue++,Ce=await we(Ce.next)}L+=s.substring(ee)}else L=s}}else L=s;return L}}function lt(s){if(!(typeof s>"u")){var c=typeof window<"u"?window.btoa:function(f){return new a.Buffer.from(f,"binary").toString("base64")};return c(s)}}function m(s){if(!(typeof s>"u")){var c=typeof window<"u"?window.atob:function(f){return new a.Buffer.from(f,"base64").toString("binary")};return c(s)}}function C(s){if(!(typeof s>"u")){var c;try{c=encodeURIComponent(s)}catch{throw{code:"D3140",stack:new Error().stack,value:s,functionName:"encodeUrlComponent"}}return c}}function X(s){if(!(typeof s>"u")){var c;try{c=encodeURI(s)}catch{throw{code:"D3140",stack:new Error().stack,value:s,functionName:"encodeUrl"}}return c}}function ve(s){if(!(typeof s>"u")){var c;try{c=decodeURIComponent(s)}catch{throw{code:"D3140",stack:new Error().stack,value:s,functionName:"decodeUrlComponent"}}return c}}function Ue(s){if(!(typeof s>"u")){var c;try{c=decodeURI(s)}catch{throw{code:"D3140",stack:new Error().stack,value:s,functionName:"decodeUrl"}}return c}}async function Oe(s,c,f){if(!(typeof s>"u")){if(f<0)throw{code:"D3020",stack:new Error().stack,value:f,index:3};var P=[];if(typeof f>"u"||f>0)if(typeof c=="string")P=s.split(c,f);else{var $=0,A=await we(c,s);if(typeof A<"u"){for(var L=0;typeof A<"u"&&(typeof f>"u"||$<f);)P.push(s.substring(L,A.start)),L=A.end,A=await we(A.next),$++;(typeof f>"u"||$<f)&&P.push(s.substring(L))}else P.push(s)}return P}}function k(s,c){if(!(typeof s>"u"))return typeof c>"u"&&(c=""),s.join(c)}function R(s,c,f){if(!(typeof s>"u")){var P={"decimal-separator":".","grouping-separator":",","exponent-separator":"e",infinity:"Infinity","minus-sign":"-",NaN:"NaN",percent:"%","per-mille":"‰","zero-digit":"0",digit:"#","pattern-separator":";"},$=P;typeof f<"u"&&Object.keys(f).forEach(function(me){$[me]=f[me]});for(var A=[],L=$["zero-digit"].charCodeAt(0),ee=L;ee<L+10;ee++)A.push(String.fromCharCode(ee));var ue=A.concat([$["decimal-separator"],$["exponent-separator"],$["grouping-separator"],$.digit,$["pattern-separator"]]),_e=c.split($["pattern-separator"]);if(_e.length>2)throw{code:"D3080",stack:new Error().stack};var Ce=function(me){var qe=function(){for(var rt,gt=0;gt<me.length;gt++)if(rt=me.charAt(gt),ue.indexOf(rt)!==-1&&rt!==$["exponent-separator"])return me.substring(0,gt)}(),st=function(){for(var rt,gt=me.length-1;gt>=0;gt--)if(rt=me.charAt(gt),ue.indexOf(rt)!==-1&&rt!==$["exponent-separator"])return me.substring(gt+1)}(),Le=me.substring(qe.length,me.length-st.length),dt,Et,ft,Dt,mt=me.indexOf($["exponent-separator"],qe.length);mt===-1||mt>me.length-st.length?(dt=Le,Et=void 0):(dt=Le.substring(0,mt),Et=Le.substring(mt+1));var vt=dt.indexOf($["decimal-separator"]);return vt===-1?(ft=dt,Dt=st):(ft=dt.substring(0,vt),Dt=dt.substring(vt+1)),{prefix:qe,suffix:st,activePart:Le,mantissaPart:dt,exponentPart:Et,integerPart:ft,fractionalPart:Dt,subpicture:me}},ze=function(me){var qe,st,Le=me.subpicture,dt=Le.indexOf($["decimal-separator"]);dt!==Le.lastIndexOf($["decimal-separator"])&&(qe="D3081"),Le.indexOf($.percent)!==Le.lastIndexOf($.percent)&&(qe="D3082"),Le.indexOf($["per-mille"])!==Le.lastIndexOf($["per-mille"])&&(qe="D3083"),Le.indexOf($.percent)!==-1&&Le.indexOf($["per-mille"])!==-1&&(qe="D3084");var Et=!1;for(st=0;st<me.mantissaPart.length;st++){var ft=me.mantissaPart.charAt(st);if(A.indexOf(ft)!==-1||ft===$.digit){Et=!0;break}}Et||(qe="D3085");var Dt=me.activePart.split("").map(function(rt){return ue.indexOf(rt)===-1?"p":"a"}).join("");Dt.indexOf("p")!==-1&&(qe="D3086"),dt!==-1?(Le.charAt(dt-1)===$["grouping-separator"]||Le.charAt(dt+1)===$["grouping-separator"])&&(qe="D3087"):me.integerPart.charAt(me.integerPart.length-1)===$["grouping-separator"]&&(qe="D3088"),Le.indexOf($["grouping-separator"]+$["grouping-separator"])!==-1&&(qe="D3089");var mt=me.integerPart.indexOf($.digit);mt!==-1&&me.integerPart.substring(0,mt).split("").filter(function(rt){return A.indexOf(rt)>-1}).length>0&&(qe="D3090"),mt=me.fractionalPart.lastIndexOf($.digit),mt!==-1&&me.fractionalPart.substring(mt).split("").filter(function(rt){return A.indexOf(rt)>-1}).length>0&&(qe="D3091");var vt=typeof me.exponentPart=="string";if(vt&&me.exponentPart.length>0&&(Le.indexOf($.percent)!==-1||Le.indexOf($["per-mille"])!==-1)&&(qe="D3092"),vt&&(me.exponentPart.length===0||me.exponentPart.split("").filter(function(rt){return A.indexOf(rt)===-1}).length>0)&&(qe="D3093"),qe)throw{code:qe,stack:new Error().stack}},Ie=function(me){var qe=function(ot,er){for(var Lt=[],kt=ot.indexOf($["grouping-separator"]);kt!==-1;){var tr=(er?ot.substring(0,kt):ot.substring(kt)).split("").filter(function(Mt){return A.indexOf(Mt)!==-1||Mt===$.digit}).length;Lt.push(tr),kt=me.integerPart.indexOf($["grouping-separator"],kt+1)}return Lt},st=qe(me.integerPart),Le=function(ot){if(ot.length===0)return 0;for(var er=function(tr,Mt){return Mt===0?tr:er(Mt,tr%Mt)},Lt=ot.reduce(er),kt=1;kt<=ot.length;kt++)if(ot.indexOf(kt*Lt)===-1)return 0;return Lt},dt=Le(st),Et=qe(me.fractionalPart,!0),ft=me.integerPart.split("").filter(function(ot){return A.indexOf(ot)!==-1}).length,Dt=ft,mt=me.fractionalPart.split(""),vt=mt.filter(function(ot){return A.indexOf(ot)!==-1}).length,rt=mt.filter(function(ot){return A.indexOf(ot)!==-1||ot===$.digit}).length,gt=typeof me.exponentPart=="string";ft===0&&rt===0&&(gt?(vt=1,rt=1):ft=1),gt&&ft===0&&me.integerPart.indexOf($.digit)!==-1&&(ft=1),ft===0&&vt===0&&(vt=1);var Qr=0;return gt&&(Qr=me.exponentPart.split("").filter(function(ot){return A.indexOf(ot)!==-1}).length),{integerPartGroupingPositions:st,regularGrouping:dt,minimumIntegerPartSize:ft,scalingFactor:Dt,prefix:me.prefix,fractionalPartGroupingPositions:Et,minimumFactionalPartSize:vt,maximumFactionalPartSize:rt,minimumExponentSize:Qr,suffix:me.suffix,picture:me.subpicture}},Xe=_e.map(Ce);Xe.forEach(ze);var Te=Xe.map(Ie),p=$["minus-sign"],F=$["zero-digit"],B=$["decimal-separator"],fe=$["grouping-separator"];Te.length===1&&(Te.push(JSON.parse(JSON.stringify(Te[0]))),Te[1].prefix=p+Te[1].prefix);var he;s>=0?he=Te[0]:he=Te[1];var je;he.picture.indexOf($.percent)!==-1?je=s*100:he.picture.indexOf($["per-mille"])!==-1?je=s*1e3:je=s;var $e,xe;if(he.minimumExponentSize===0)$e=je;else{var nt=Math.pow(10,he.scalingFactor),He=Math.pow(10,he.scalingFactor-1);for($e=je,xe=0;$e<He;)$e*=10,xe-=1;for(;$e>nt;)$e/=10,xe+=1}var Ye=Q($e,he.maximumFactionalPartSize),ct=function(me,qe){var st=Math.abs(me).toFixed(qe);return F!=="0"&&(st=st.split("").map(function(Le){return Le>="0"&&Le<="9"?A[Le.charCodeAt(0)-48]:Le}).join("")),st},ye=ct(Ye,he.maximumFactionalPartSize),Qe=ye.indexOf(".");for(Qe===-1?ye=ye+B:ye=ye.replace(".",B);ye.charAt(0)===F;)ye=ye.substring(1);for(;ye.charAt(ye.length-1)===F;)ye=ye.substring(0,ye.length-1);Qe=ye.indexOf(B);var Ke=he.minimumIntegerPartSize-Qe,Nt=he.minimumFactionalPartSize-(ye.length-Qe-1);if(ye=(Ke>0?new Array(Ke+1).join(F):"")+ye,ye=ye+(Nt>0?new Array(Nt+1).join(F):""),Qe=ye.indexOf(B),he.regularGrouping>0)for(var $r=Math.floor((Qe-1)/he.regularGrouping),Ut=1;Ut<=$r;Ut++)ye=[ye.slice(0,Qe-Ut*he.regularGrouping),fe,ye.slice(Qe-Ut*he.regularGrouping)].join("");else he.integerPartGroupingPositions.forEach(function(me){ye=[ye.slice(0,Qe-me),fe,ye.slice(Qe-me)].join(""),Qe++});if(Qe=ye.indexOf(B),he.fractionalPartGroupingPositions.forEach(function(me){ye=[ye.slice(0,me+Qe+1),fe,ye.slice(me+Qe+1)].join("")}),Qe=ye.indexOf(B),(he.picture.indexOf(B)===-1||Qe===ye.length-1)&&(ye=ye.substring(0,ye.length-1)),typeof xe<"u"){var Zt=ct(xe,0);Ke=he.minimumExponentSize-Zt.length,Ke>0&&(Zt=new Array(Ke+1).join(F)+Zt),ye=ye+$["exponent-separator"]+(xe<0?p:"")+Zt}return ye=he.prefix+ye+he.suffix,ye}}function O(s,c){if(!(typeof s>"u")){if(s=Q(s),typeof c>"u"?c=10:c=Q(c),c<2||c>36)throw{code:"D3100",stack:new Error().stack,value:c};var f=s.toString(c);return f}}function U(s){var c;if(!(typeof s>"u")){if(typeof s=="number")c=s;else if(typeof s=="string"&&/^-?[0-9]+(\.[0-9]+)?([Ee][-+]?[0-9]+)?$/.test(s)&&!isNaN(parseFloat(s))&&isFinite(s))c=parseFloat(s);else if(typeof s=="string"&&/^(0[xX][0-9A-Fa-f]+)|(0[oO][0-7]+)|(0[bB][0-1]+)$/.test(s))c=Number(s);else if(s===!0)c=1;else if(s===!1)c=0;else throw{code:"D3030",value:s,stack:new Error().stack,index:1};return c}}function H(s){var c;if(!(typeof s>"u"))return c=Math.abs(s),c}function q(s){var c;if(!(typeof s>"u"))return c=Math.floor(s),c}function j(s){var c;if(!(typeof s>"u"))return c=Math.ceil(s),c}function Q(s,c){var f;if(!(typeof s>"u")){if(c){var P=s.toString().split("e");s=+(P[0]+"e"+(P[1]?+P[1]+c:c))}f=Math.round(s);var $=f-s;return Math.abs($)===.5&&Math.abs(f%2)===1&&(f=f-1),c&&(P=f.toString().split("e"),f=+(P[0]+"e"+(P[1]?+P[1]-c:-c))),Object.is(f,-0)&&(f=0),f}}function ce(s){var c;if(!(typeof s>"u")){if(s<0)throw{stack:new Error().stack,code:"D3060",index:1,value:s};return c=Math.sqrt(s),c}}function Pe(s,c){var f;if(!(typeof s>"u")){if(f=Math.pow(s,c),!isFinite(f))throw{stack:new Error().stack,code:"D3061",index:1,value:s,exp:c};return f}}function Ee(){return Math.random()}function le(s){if(!(typeof s>"u")){var c=!1;if(Array.isArray(s)){if(s.length===1)c=le(s[0]);else if(s.length>1){var f=s.filter(function(P){return le(P)});c=f.length>0}}else typeof s=="string"?s.length>0&&(c=!0):u(s)?s!==0&&(c=!0):s!==null&&typeof s=="object"&&!w(s)?Object.keys(s).length>0&&(c=!0):typeof s=="boolean"&&s===!0&&(c=!0);return c}}function de(s){if(!(typeof s>"u"))return!le(s)}function ke(s,c,f,P){var $=[c],A=M(s);return A>=2&&$.push(f),A>=3&&$.push(P),$}async function re(s,c){if(!(typeof s>"u")){for(var f=g(),P=0;P<s.length;P++){var $=ke(c,s[P],P,s),A=await c.apply(this,$);typeof A<"u"&&f.push(A)}return f}}async function Je(s,c){if(!(typeof s>"u")){for(var f=g(),P=0;P<s.length;P++){var $=s[P],A=ke(c,$,P,s),L=await c.apply(this,A);le(L)&&f.push($)}return f}}async function ut(s,c){if(!(typeof s>"u")){for(var f=!1,P,$=0;$<s.length;$++){var A=s[$],L=!0;if(typeof c<"u"){var ee=ke(c,A,$,s),ue=await c.apply(this,ee);L=le(ue)}if(L)if(!f)P=A,f=!0;else throw{stack:new Error().stack,code:"D3138",index:$}}if(!f)throw{stack:new Error().stack,code:"D3139"};return P}}function et(){for(var s=[],c=Array.prototype.slice.call(arguments),f=Math.min.apply(Math,c.map(function(A){return Array.isArray(A)?A.length:0})),P=0;P<f;P++){var $=c.map(A=>A[P]);s.push($)}return s}async function We(s,c,f){if(!(typeof s>"u")){var P,$=M(c);if($<2)throw{stack:new Error().stack,code:"D3050",index:1};var A;for(typeof f>"u"&&s.length>0?(P=s[0],A=1):(P=f,A=0);A<s.length;){var L=[P,s[A]];$>=3&&L.push(A),$>=4&&L.push(s),P=await c.apply(this,L),A++}return P}}function tt(s){var c=g();if(Array.isArray(s)){var f={};s.forEach(function(P){var $=tt(P);$.forEach(function(A){f[A]=!0})}),c=tt(f)}else s!==null&&typeof s=="object"&&!w(s)&&Object.keys(s).forEach(P=>c.push(P));return c}function wt(s,c){var f;if(Array.isArray(s)){f=g();for(var P=0;P<s.length;P++){var $=wt(s[P],c);typeof $<"u"&&(Array.isArray($)?$.forEach(A=>f.push(A)):f.push($))}}else s!==null&&typeof s=="object"&&!w(s)&&(f=s[c]);return f}function $t(s,c){return typeof s>"u"?c:typeof c>"u"?s:(Array.isArray(s)||(s=g(s)),Array.isArray(c)||(c=[c]),s.concat(c))}function At(s){return!(typeof s>"u")}function Pt(s){var c=g();if(Array.isArray(s))s.forEach(function($){c=$t(c,Pt($))});else if(s!==null&&typeof s=="object"&&!S(s))for(var f in s){var P={};P[f]=s[f],c.push(P)}else c=s;return c}function Y(s){if(!(typeof s>"u")){var c={};return s.forEach(function(f){for(var P in f)c[P]=f[P]}),c}}function It(s){if(!(typeof s>"u")){if(s.length<=1)return s;for(var c=s.length,f=new Array(c),P=0;P<c;P++)f[c-P-1]=s[P];return f}}async function Tt(s,c){var f=g();for(var P in s){var $=ke(c,s[P],P,s),A=await c.apply(this,$);typeof A<"u"&&f.push(A)}return f}function pt(s){throw{code:"D3137",stack:new Error().stack,message:s||"$error() function evaluated"}}function Ot(s,c){if(!s)throw{code:"D3141",stack:new Error().stack,message:c||"$assert() statement failed"}}function xt(s){if(s!==void 0)return s===null?"null":u(s)?"number":typeof s=="string"?"string":typeof s=="boolean"?"boolean":Array.isArray(s)?"array":w(s)?"function":"object"}async function Re(s,c){if(!(typeof s>"u")){if(s.length<=1)return s;var f;if(typeof c>"u"){if(!b(s)&&!h(s))throw{stack:new Error().stack,code:"D3070",index:1};f=async function(L,ee){return L>ee}}else f=c;var P=async function(L,ee){var ue=async function(Ce,ze,Ie){ze.length===0?Array.prototype.push.apply(Ce,Ie):Ie.length===0?Array.prototype.push.apply(Ce,ze):await f(ze[0],Ie[0])?(Ce.push(Ie[0]),await ue(Ce,ze,Ie.slice(1))):(Ce.push(ze[0]),await ue(Ce,ze.slice(1),Ie))},_e=[];return await ue(_e,L,ee),_e},$=async function(L){if(!Array.isArray(L)||L.length<=1)return L;var ee=Math.floor(L.length/2),ue=L.slice(0,ee),_e=L.slice(ee);return ue=await $(ue),_e=await $(_e),await P(ue,_e)},A=await $(s);return A}}function d(s){if(!(typeof s>"u")){if(s.length<=1)return s;for(var c=new Array(s.length),f=0;f<s.length;f++){var P=Math.floor(Math.random()*(f+1));f!==P&&(c[f]=c[P]),c[P]=s[f]}return c}}function y(s){if(!(typeof s>"u")){if(!Array.isArray(s)||s.length<=1)return s;for(var c=x(s)?g():[],f=0;f<s.length;f++){for(var P=s[f],$=!1,A=0;A<c.length;A++)if(J(P,c[A])){$=!0;break}$||c.push(P)}return c}}async function v(s,c){var f={};for(var P in s){var $=s[P],A=ke(c,$,P,s),L=await c.apply(this,A);le(L)&&(f[P]=$)}return Object.keys(f).length===0&&(f=void 0),f}return{sum:T,count:W,max:N,min:E,average:z,string:G,substring:ge,substringBefore:Se,substringAfter:Ve,lowercase:De,uppercase:be,length:Fe,trim:Ze,pad:Ae,match:pe,contains:it,replace:Be,split:Oe,join:k,formatNumber:R,formatBase:O,number:U,floor:q,ceil:j,round:Q,abs:H,sqrt:ce,power:Pe,random:Ee,boolean:le,not:de,map:re,zip:et,filter:Je,single:ut,foldLeft:We,sift:v,keys:tt,lookup:wt,append:$t,exists:At,spread:Pt,merge:Y,reverse:It,each:Tt,error:pt,assert:Ot,type:xt,sort:Re,shuffle:d,distinct:y,base64encode:lt,base64decode:m,encodeUrlComponent:C,encodeUrl:X,decodeUrlComponent:ve,decodeUrl:Ue}})();n.exports=l}).call(this)}).call(this,typeof qr<"u"?qr:typeof self<"u"?self:typeof window<"u"?window:{})},{"./utils":6}],3:[function(r,n,o){var a=r("./datetime"),i=r("./functions"),l=r("./utils"),u=r("./parser"),h=r("./signature"),b=function(){var g=l.isNumeric,x=l.isArrayOfStrings,w=l.isArrayOfNumbers,S=l.createSequence,I=l.isSequence,M=l.isFunction,J=l.isLambda,_=l.isIterable,T=l.isPromise,W=l.getFunctionArity,N=l.isDeepEqual,E=pt(null);async function z(d,y,v){var s,c=v.lookup(Symbol.for("jsonata.__evaluate_entry"));switch(c&&await c(d,y,v),d.type){case"path":s=await G(d,y,v);break;case"binary":s=await Fe(d,y,v);break;case"unary":s=await Ze(d,y,v);break;case"name":s=Ae(d,y);break;case"string":case"number":case"value":s=we(d);break;case"wildcard":s=it(d,y);break;case"descendant":s=Be(d,y);break;case"parent":s=v.lookup(d.slot.label);break;case"condition":s=await q(d,y,v);break;case"block":s=await j(d,y,v);break;case"bind":s=await H(d,y,v);break;case"regex":s=Q(d);break;case"function":s=await ke(d,y,v);break;case"variable":s=ce(d,y,v);break;case"lambda":s=ut(d,y,v);break;case"partial":s=await et(d,y,v);break;case"apply":s=await de(d,y,v);break;case"transform":s=Ee(d,y,v);break}if(Object.prototype.hasOwnProperty.call(d,"predicate"))for(var f=0;f<d.predicate.length;f++)s=await be(d.predicate[f].expr,s,v);d.type!=="path"&&Object.prototype.hasOwnProperty.call(d,"group")&&(s=await R(d.group,s,v));var P=v.lookup(Symbol.for("jsonata.__evaluate_exit"));return P&&await P(d,y,v,s),s&&I(s)&&!s.tupleStream&&(d.keepArray&&(s.keepSingleton=!0),s.length===0?s=void 0:s.length===1&&(s=s.keepSingleton?s:s[0])),s}async function G(d,y,v){var s;Array.isArray(y)&&d.steps[0].type!=="variable"?s=y:s=S(y);for(var c,f=!1,P=void 0,$=0;$<d.steps.length;$++){var A=d.steps[$];if(A.tuple&&(f=!0),$===0&&A.consarray?c=await z(A,s,v):f?P=await De(A,s,P,v):c=await Se(A,s,v,$===d.steps.length-1),!f&&(typeof c>"u"||c.length===0))break;typeof A.focus>"u"&&(s=c)}if(f)if(d.tuple)c=P;else for(c=S(),$=0;$<P.length;$++)c.push(P[$]["@"]);return d.keepSingletonArray&&(Array.isArray(c)&&c.cons&&!c.sequence&&(c=S(c)),c.keepSingleton=!0),d.hasOwnProperty("group")&&(c=await R(d.group,f?P:c,v)),c}function ge(d,y){var v=pt(d);for(const s in y)v.bind(s,y[s]);return v}async function Se(d,y,v,s){var c;if(d.type==="sort")return c=await Pe(d,y,v),d.stages&&(c=await Ve(d.stages,c,v)),c;c=S();for(var f=0;f<y.length;f++){var P=await z(d,y[f],v);if(d.stages)for(var $=0;$<d.stages.length;$++)P=await be(d.stages[$].expr,P,v);typeof P<"u"&&c.push(P)}var A=S();return s&&c.length===1&&Array.isArray(c[0])&&!I(c[0])?A=c[0]:c.forEach(function(L){!Array.isArray(L)||L.cons?A.push(L):L.forEach(ee=>A.push(ee))}),A}async function Ve(d,y,v){for(var s=y,c=0;c<d.length;c++){var f=d[c];switch(f.type){case"filter":s=await be(f.expr,s,v);break;case"index":for(var P=0;P<s.length;P++){var $=s[P];$[f.value]=P}break}}return s}async function De(d,y,v,s){var c;if(d.type==="sort"){if(v)c=await Pe(d,v,s);else{var f=await Pe(d,y,s);c=S(),c.tupleStream=!0;for(var P=0;P<f.length;P++){var $={"@":f[P]};$[d.index]=P,c.push($)}}return d.stages&&(c=await Ve(d.stages,c,s)),c}c=S(),c.tupleStream=!0;var A=s;v===void 0&&(v=y.map(_e=>({"@":_e})));for(var L=0;L<v.length;L++){A=ge(s,v[L]);var ee=await z(d,v[L]["@"],A);if(typeof ee<"u"){Array.isArray(ee)||(ee=[ee]);for(var ue=0;ue<ee.length;ue++)$={},Object.assign($,v[L]),ee.tupleStream?Object.assign($,ee[ue]):(d.focus?($[d.focus]=ee[ue],$["@"]=v[L]["@"]):$["@"]=ee[ue],d.index&&($[d.index]=ue),d.ancestor&&($[d.ancestor.label]=v[L]["@"])),c.push($)}}return d.stages&&(c=await Ve(d.stages,c,s)),c}async function be(d,y,v){var s=S();if(y&&y.tupleStream&&(s.tupleStream=!0),Array.isArray(y)||(y=S(y)),d.type==="number"){var c=Math.floor(d.value);c<0&&(c=y.length+c);var f=await y[c];typeof f<"u"&&(Array.isArray(f)?s=f:s.push(f))}else for(c=0;c<y.length;c++){var f=y[c],P=f,$=v;y.tupleStream&&(P=f["@"],$=ge(v,f));var A=await z(d,P,$);g(A)&&(A=[A]),w(A)?A.forEach(function(ee){var ue=Math.floor(ee);ue<0&&(ue=y.length+ue),ue===c&&s.push(f)}):i.boolean(A)&&s.push(f)}return s}async function Fe(d,y,v){var s,c=await z(d.lhs,y,v),f=d.value,P=async()=>await z(d.rhs,y,v);if(f==="and"||f==="or")try{return await Ue(c,P,f)}catch(A){throw A.position=d.position,A.token=f,A}var $=await P();try{switch(f){case"+":case"-":case"*":case"/":case"%":s=m(c,$,f);break;case"=":case"!=":s=C(c,$,f);break;case"<":case"<=":case">":case">=":s=X(c,$,f);break;case"&":s=k(c,$);break;case"..":s=U(c,$);break;case"in":s=ve(c,$);break}}catch(A){throw A.position=d.position,A.token=f,A}return s}async function Ze(d,y,v){var s;switch(d.value){case"-":if(s=await z(d.expression,y,v),typeof s>"u")s=void 0;else if(g(s))s=-s;else throw{code:"D1002",stack:new Error().stack,position:d.position,token:d.value,value:s};break;case"[":s=[];let P=await Promise.all(d.expressions.map(async($,A)=>(v.isParallelCall=A>0,[$,await z($,y,v)])));for(let $ of P){var[c,f]=$;typeof f<"u"&&(c.value==="["?s.push(f):s=i.append(s,f))}d.consarray&&Object.defineProperty(s,"cons",{enumerable:!1,configurable:!1,value:!0});break;case"{":s=await R(d,y,v);break}return s}function Ae(d,y,v){return i.lookup(y,d.value)}function we(d){return d.value}function it(d,y){var v=S();return Array.isArray(y)&&y.outerWrapper&&y.length>0&&(y=y[0]),y!==null&&typeof y=="object"&&Object.keys(y).forEach(function(s){var c=y[s];Array.isArray(c)?(c=pe(c),v=i.append(v,c)):v.push(c)}),v}function pe(d,y){return typeof y>"u"&&(y=[]),Array.isArray(d)?d.forEach(function(v){pe(v,y)}):y.push(d),y}function Be(d,y){var v,s=S();return typeof y<"u"&&(lt(y,s),s.length===1?v=s[0]:v=s),v}function lt(d,y){Array.isArray(d)||y.push(d),Array.isArray(d)?d.forEach(function(v){lt(v,y)}):d!==null&&typeof d=="object"&&Object.keys(d).forEach(function(v){lt(d[v],y)})}function m(d,y,v){var s;if(typeof d<"u"&&!g(d))throw{code:"T2001",stack:new Error().stack,value:d};if(typeof y<"u"&&!g(y))throw{code:"T2002",stack:new Error().stack,value:y};if(typeof d>"u"||typeof y>"u")return s;switch(v){case"+":s=d+y;break;case"-":s=d-y;break;case"*":s=d*y;break;case"/":s=d/y;break;case"%":s=d%y;break}return s}function C(d,y,v){var s,c=typeof d,f=typeof y;if(c==="undefined"||f==="undefined")return!1;switch(v){case"=":s=N(d,y);break;case"!=":s=!N(d,y);break}return s}function X(d,y,v){var s,c=typeof d,f=typeof y,P=c==="undefined"||c==="string"||c==="number",$=f==="undefined"||f==="string"||f==="number";if(!P||!$)throw{code:"T2010",stack:new Error().stack,value:c==="string"||c==="number"?y:d};if(!(c==="undefined"||f==="undefined")){if(c!==f)throw{code:"T2009",stack:new Error().stack,value:d,value2:y};switch(v){case"<":s=d<y;break;case"<=":s=d<=y;break;case">":s=d>y;break;case">=":s=d>=y;break}return s}}function ve(d,y){var v=!1;if(typeof d>"u"||typeof y>"u")return!1;Array.isArray(y)||(y=[y]);for(var s=0;s<y.length;s++)if(y[s]===d){v=!0;break}return v}async function Ue(d,y,v){var s,c=Oe(d);switch(v){case"and":s=c&&Oe(await y());break;case"or":s=c||Oe(await y());break}return s}function Oe(d){var y=i.boolean(d);return typeof y>"u"?!1:y}function k(d,y){var v,s="",c="";return typeof d<"u"&&(s=i.string(d)),typeof y<"u"&&(c=i.string(y)),v=s.concat(c),v}async function R(d,y,v){var s={},c={},f=!!(y&&y.tupleStream);Array.isArray(y)||(y=S(y)),y.length===0&&y.push(void 0);for(var P=0;P<y.length;P++)for(var $=y[P],A=f?ge(v,$):v,L=0;L<d.lhs.length;L++){var ee=d.lhs[L],ue=await z(ee[0],f?$["@"]:$,A);if(typeof ue!="string"&&ue!==void 0)throw{code:"T1003",stack:new Error().stack,position:d.position,value:ue};if(ue!==void 0){var _e={data:$,exprIndex:L};if(c.hasOwnProperty(ue)){if(c[ue].exprIndex!==L)throw{code:"D1009",stack:new Error().stack,position:d.position,value:ue};c[ue].data=i.append(c[ue].data,$)}else c[ue]=_e}}let Ce=await Promise.all(Object.keys(c).map(async(Ie,Xe)=>{let Te=c[Ie];var p=Te.data,F=v;if(f){var B=O(Te.data);p=B["@"],delete B["@"],F=ge(v,B)}return v.isParallelCall=Xe>0,[Ie,await z(d.lhs[Te.exprIndex][1],p,F)]}));for(let Ie of Ce){var[ue,ze]=await Ie;typeof ze<"u"&&(s[ue]=ze)}return s}function O(d){if(!Array.isArray(d))return d;var y={};Object.assign(y,d[0]);for(var v=1;v<d.length;v++)for(const s in d[v])y[s]=i.append(y[s],d[v][s]);return y}function U(d,y){var v;if(typeof d<"u"&&!Number.isInteger(d))throw{code:"T2003",stack:new Error().stack,value:d};if(typeof y<"u"&&!Number.isInteger(y))throw{code:"T2004",stack:new Error().stack,value:y};if(typeof d>"u"||typeof y>"u"||d>y)return v;var s=y-d+1;if(s>1e7)throw{code:"D2014",stack:new Error().stack,value:s};v=new Array(s);for(var c=d,f=0;c<=y;c++,f++)v[f]=c;return v.sequence=!0,v}async function H(d,y,v){var s=await z(d.rhs,y,v);return v.bind(d.lhs.value,s),s}async function q(d,y,v){var s,c=await z(d.condition,y,v);return i.boolean(c)?s=await z(d.then,y,v):typeof d.else<"u"&&(s=await z(d.else,y,v)),s}async function j(d,y,v){for(var s,c=pt(v),f=0;f<d.expressions.length;f++)s=await z(d.expressions[f],y,c);return s}function Q(d){var y=new Re.RegexEngine(d.value),v=function(s,c){var f;y.lastIndex=c||0;var P=y.exec(s);if(P!==null){if(f={match:P[0],start:P.index,end:P.index+P[0].length,groups:[]},P.length>1)for(var $=1;$<P.length;$++)f.groups.push(P[$]);f.next=function(){if(!(y.lastIndex>=s.length)){var A=v(s,y.lastIndex);if(A&&A.match==="")throw{code:"D1004",stack:new Error().stack,position:d.position,value:d.value.source};return A}}}return f};return v}function ce(d,y,v){var s;return d.value===""?s=y&&y.outerWrapper?y[0]:y:s=v.lookup(d.value),s}async function Pe(d,y,v){var s,c=y,f=!!y.tupleStream,P=async function(A,L){for(var ee=0,ue=0;ee===0&&ue<d.terms.length;ue++){var _e=d.terms[ue],Ce=A,ze=v;f&&(Ce=A["@"],ze=ge(v,A));var Ie=await z(_e.expression,Ce,ze);Ce=L,ze=v,f&&(Ce=L["@"],ze=ge(v,L));var Xe=await z(_e.expression,Ce,ze),Te=typeof Ie,p=typeof Xe;if(Te==="undefined"){ee=p==="undefined"?0:1;continue}if(p==="undefined"){ee=-1;continue}if(!(Te==="string"||Te==="number")||!(p==="string"||p==="number"))throw{code:"T2008",stack:new Error().stack,position:d.position,value:Te==="string"||Te==="number"?Xe:Ie};if(Te!==p)throw{code:"T2007",stack:new Error().stack,position:d.position,value:Ie,value2:Xe};Ie!==Xe&&(Ie<Xe?ee=-1:ee=1,_e.descending===!0&&(ee=-ee))}return ee===1},$={environment:v,input:y};return s=await i.sort.apply($,[c,P]),s}function Ee(d,y,v){var s=async function(c){if(!(typeof c>"u")){var f=v.lookup("clone");if(!M(f))throw{code:"T2013",stack:new Error().stack,position:d.position};var P=await re(f,[c],null,v),$=await z(d.pattern,P,v);if(typeof $<"u"){Array.isArray($)||($=[$]);for(var A=0;A<$.length;A++){var L=$[A];if(L&&(L.isPrototypeOf(P)||L instanceof Object.constructor))throw{code:"D1010",stack:new Error().stack,position:d.position};var ee=await z(d.update,L,v),ue=typeof ee;if(ue!=="undefined"){if(ue!=="object"||ee===null||Array.isArray(ee))throw{code:"T2011",stack:new Error().stack,position:d.update.position,value:ee};for(var _e in ee)L[_e]=ee[_e]}if(typeof d.delete<"u"){var Ce=await z(d.delete,L,v);if(typeof Ce<"u"){var ze=Ce;if(Array.isArray(Ce)||(Ce=[Ce]),!x(Ce))throw{code:"T2012",stack:new Error().stack,position:d.delete.position,value:ze};for(var Ie=0;Ie<Ce.length;Ie++)typeof L=="object"&&L!==null&&delete L[Ce[Ie]]}}}}return P}};return Y(s,"<(oa):o>")}var le=u("function($f, $g) { function($x){ $g($f($x)) } }");async function de(d,y,v){var s,c=await z(d.lhs,y,v);if(d.rhs.type==="function")s=await ke(d.rhs,y,v,{context:c});else{var f=await z(d.rhs,y,v);if(!M(f))throw{code:"T2006",stack:new Error().stack,position:d.position,value:f};if(M(c)){var P=await z(le,null,v);s=await re(P,[c,f],null,v)}else s=await re(f,[c],null,v)}return s}async function ke(d,y,v,s){var c,f=await z(d.procedure,y,v);if(typeof f>"u"&&d.procedure.type==="path"&&v.lookup(d.procedure.steps[0].value))throw{code:"T1005",stack:new Error().stack,position:d.position,token:d.procedure.steps[0].value};var P=[];typeof s<"u"&&P.push(s.context);for(var $=0;$<d.arguments.length;$++){const L=await z(d.arguments[$],y,v);if(M(L)){const ee=async function(...ue){return await re(L,ue,null,v)};ee.arity=W(L),P.push(ee)}else P.push(L)}var A=d.procedure.type==="path"?d.procedure.steps[0].value:d.procedure.value;try{typeof f=="object"&&(f.token=A,f.position=d.position),c=await re(f,P,y,v)}catch(L){throw L.position||(L.position=d.position),L.token||(L.token=A),L}return c}async function re(d,y,v,s){var c;for(c=await Je(d,y,v,s);J(c)&&c.thunk===!0;){var f=await z(c.body.procedure,c.input,c.environment);c.body.procedure.type==="variable"&&(f.token=c.body.procedure.value),f.position=c.body.procedure.position;for(var P=[],$=0;$<c.body.arguments.length;$++)P.push(await z(c.body.arguments[$],c.input,c.environment));c=await Je(f,P,v,s)}return c}async function Je(d,y,v,s){var c;try{var f=y;if(d&&(f=We(d.signature,y,v)),J(d))c=await tt(d,f);else if(d&&d._jsonata_function===!0){var P={environment:s,input:v};c=d.implementation.apply(P,f),_(c)&&(c=c.next().value),T(c)&&(c=await c)}else if(typeof d=="function")c=d.apply(v,f),T(c)&&(c=await c);else throw{code:"T1006",stack:new Error().stack}}catch($){throw d&&(typeof $.token>"u"&&typeof d.token<"u"&&($.token=d.token),$.position=d.position||$.position),$}return c}function ut(d,y,v){var s={_jsonata_lambda:!0,input:y,environment:v,arguments:d.arguments,signature:d.signature,body:d.body};return d.thunk===!0&&(s.thunk=!0),s.apply=async function(c,f){return await re(s,f,y,c?c.environment:v)},s}async function et(d,y,v){for(var s,c=[],f=0;f<d.arguments.length;f++){var P=d.arguments[f];P.type==="operator"&&P.value==="?"?c.push(P):c.push(await z(P,y,v))}var $=await z(d.procedure,y,v);if(typeof $>"u"&&d.procedure.type==="path"&&v.lookup(d.procedure.steps[0].value))throw{code:"T1007",stack:new Error().stack,position:d.position,token:d.procedure.steps[0].value};if(J($))s=wt($,c);else if($&&$._jsonata_function===!0)s=$t($.implementation,c);else if(typeof $=="function")s=$t($,c);else throw{code:"T1008",stack:new Error().stack,position:d.position,token:d.procedure.type==="path"?d.procedure.steps[0].value:d.procedure.value};return s}function We(d,y,v){if(typeof d>"u")return y;var s=d.validate(y,v);return s}async function tt(d,y){var v,s=pt(d.environment);return d.arguments.forEach(function(c,f){s.bind(c.value,y[f])}),typeof d.body=="function"?v=await At(d.body,s):v=await z(d.body,d.input,s),v}function wt(d,y){var v=pt(d.environment),s=[];d.arguments.forEach(function(f,P){var $=y[P];$&&$.type==="operator"&&$.value==="?"?s.push(f):v.bind(f.value,$)});var c={_jsonata_lambda:!0,input:d.input,environment:v,arguments:s,body:d.body};return c}function $t(d,y){var v=Pt(d);v=v.map(function(P){return"$"+P.trim()});var s="function("+v.join(", ")+"){ _ }",c=u(s);c.body=d;var f=wt(c,y);return f}async function At(d,y){var v=Pt(d),s=v.map(function(P){return y.lookup(P.trim())}),c={environment:y},f=d.apply(c,s);return T(f)&&(f=await f),f}function Pt(d){var y=d.toString(),v=/\(([^)]*)\)/.exec(y)[1],s=v.split(",");return s}function Y(d,y){var v={_jsonata_function:!0,implementation:d};return typeof y<"u"&&(v.signature=h(y)),v}async function It(d,y){if(!(typeof d>"u")){var v=this.input;typeof y<"u"&&(v=y,Array.isArray(v)&&!I(v)&&(v=S(v),v.outerWrapper=!0));try{var s=u(d,!1)}catch(f){throw xt(f),{stack:new Error().stack,code:"D3120",value:f.message,error:f}}try{var c=await z(s,v,this.environment)}catch(f){throw xt(f),{stack:new Error().stack,code:"D3121",value:f.message,error:f}}return c}}function Tt(d){if(!(typeof d>"u"))return JSON.parse(i.string(d))}function pt(d){var y={};const v={bind:function(c,f){y[c]=f},lookup:function(c){var f;return y.hasOwnProperty(c)?f=y[c]:d&&(f=d.lookup(c)),f},timestamp:d?d.timestamp:null,async:d?d.async:!1,isParallelCall:d?d.isParallelCall:!1,global:d?d.global:{ancestry:[null]}};if(d){var s=d.lookup(Symbol.for("jsonata.__createFrame_push"));s&&s(d,v)}return v}E.bind("sum",Y(i.sum,"<a<n>:n>")),E.bind("count",Y(i.count,"<a:n>")),E.bind("max",Y(i.max,"<a<n>:n>")),E.bind("min",Y(i.min,"<a<n>:n>")),E.bind("average",Y(i.average,"<a<n>:n>")),E.bind("string",Y(i.string,"<x-b?:s>")),E.bind("substring",Y(i.substring,"<s-nn?:s>")),E.bind("substringBefore",Y(i.substringBefore,"<s-s:s>")),E.bind("substringAfter",Y(i.substringAfter,"<s-s:s>")),E.bind("lowercase",Y(i.lowercase,"<s-:s>")),E.bind("uppercase",Y(i.uppercase,"<s-:s>")),E.bind("length",Y(i.length,"<s-:n>")),E.bind("trim",Y(i.trim,"<s-:s>")),E.bind("pad",Y(i.pad,"<s-ns?:s>")),E.bind("match",Y(i.match,"<s-f<s:o>n?:a<o>>")),E.bind("contains",Y(i.contains,"<s-(sf):b>")),E.bind("replace",Y(i.replace,"<s-(sf)(sf)n?:s>")),E.bind("split",Y(i.split,"<s-(sf)n?:a<s>>")),E.bind("join",Y(i.join,"<a<s>s?:s>")),E.bind("formatNumber",Y(i.formatNumber,"<n-so?:s>")),E.bind("formatBase",Y(i.formatBase,"<n-n?:s>")),E.bind("formatInteger",Y(a.formatInteger,"<n-s:s>")),E.bind("parseInteger",Y(a.parseInteger,"<s-s:n>")),E.bind("number",Y(i.number,"<(nsb)-:n>")),E.bind("floor",Y(i.floor,"<n-:n>")),E.bind("ceil",Y(i.ceil,"<n-:n>")),E.bind("round",Y(i.round,"<n-n?:n>")),E.bind("abs",Y(i.abs,"<n-:n>")),E.bind("sqrt",Y(i.sqrt,"<n-:n>")),E.bind("power",Y(i.power,"<n-n:n>")),E.bind("random",Y(i.random,"<:n>")),E.bind("boolean",Y(i.boolean,"<x-:b>")),E.bind("not",Y(i.not,"<x-:b>")),E.bind("map",Y(i.map,"<af>")),E.bind("zip",Y(i.zip,"<a+>")),E.bind("filter",Y(i.filter,"<af>")),E.bind("single",Y(i.single,"<af?>")),E.bind("reduce",Y(i.foldLeft,"<afj?:j>")),E.bind("sift",Y(i.sift,"<o-f?:o>")),E.bind("keys",Y(i.keys,"<x-:a<s>>")),E.bind("lookup",Y(i.lookup,"<x-s:x>")),E.bind("append",Y(i.append,"<xx:a>")),E.bind("exists",Y(i.exists,"<x:b>")),E.bind("spread",Y(i.spread,"<x-:a<o>>")),E.bind("merge",Y(i.merge,"<a<o>:o>")),E.bind("reverse",Y(i.reverse,"<a:a>")),E.bind("each",Y(i.each,"<o-f:a>")),E.bind("error",Y(i.error,"<s?:x>")),E.bind("assert",Y(i.assert,"<bs?:x>")),E.bind("type",Y(i.type,"<x:s>")),E.bind("sort",Y(i.sort,"<af?:a>")),E.bind("shuffle",Y(i.shuffle,"<a:a>")),E.bind("distinct",Y(i.distinct,"<x:x>")),E.bind("base64encode",Y(i.base64encode,"<s-:s>")),E.bind("base64decode",Y(i.base64decode,"<s-:s>")),E.bind("encodeUrlComponent",Y(i.encodeUrlComponent,"<s-:s>")),E.bind("encodeUrl",Y(i.encodeUrl,"<s-:s>")),E.bind("decodeUrlComponent",Y(i.decodeUrlComponent,"<s-:s>")),E.bind("decodeUrl",Y(i.decodeUrl,"<s-:s>")),E.bind("eval",Y(It,"<sx?:x>")),E.bind("toMillis",Y(a.toMillis,"<s-s?:n>")),E.bind("fromMillis",Y(a.fromMillis,"<n-s?s?:s>")),E.bind("clone",Y(Tt,"<(oa)-:o>"));var Ot={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 xt(d){var y=Ot[d.code];if(typeof y<"u"){var v=y.replace(/\{\{\{([^}]+)}}}/g,function(){return d[arguments[1]]});v=v.replace(/\{\{([^}]+)}}/g,function(){return JSON.stringify(d[arguments[1]])}),d.message=v}}function Re(d,y){var v,s;try{v=u(d,y&&y.recover),s=v.errors,delete v.errors}catch(P){throw xt(P),P}var c=pt(E),f=new Date;return c.bind("now",Y(function(P,$){return a.fromMillis(f.getTime(),P,$)},"<s?s?:s>")),c.bind("millis",Y(function(){return f.getTime()},"<:n>")),y&&y.RegexEngine?Re.RegexEngine=y.RegexEngine:Re.RegexEngine=RegExp,{evaluate:async function(P,$,A){if(typeof s<"u"){var L={code:"S0500",position:0};throw xt(L),L}if(typeof $<"u"){var ee;ee=pt(c);for(var ue in $)ee.bind(ue,$[ue])}else ee=c;ee.bind("$",P),f=new Date,ee.timestamp=f,Array.isArray(P)&&!I(P)&&(P=S(P),P.outerWrapper=!0);var _e;try{return _e=await z(v,P,ee),typeof A=="function"&&A(null,_e),_e}catch(Ce){throw xt(Ce),Ce}},assign:function(P,$){c.bind(P,$)},registerFunction:function(P,$,A){var L=Y($,A);c.bind(P,L)},ast:function(){return v},errors:function(){return s}}}return Re.parser=u,Re}();n.exports=b},{"./datetime":1,"./functions":2,"./parser":4,"./signature":5,"./utils":6}],4:[function(r,n,o){var a=r("./signature");const i=(()=>{var l={".":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},u={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
2474
|
-
`,r:"\r",t:" "},h=function(
|
|
2475
|
-
\r\v`.indexOf(
|
|
2476
|
-
\r\v`.indexOf(Fe)>-1||Object.prototype.hasOwnProperty.call(l,Fe)){if(g.charAt(x)==="$")return Ve=g.substring(x+1,be),x=be,S("variable",Ve);switch(Ve=g.substring(x,be),x=be,Ve){case"or":case"in":case"and":return S("operator",Ve);case"true":return S("value",!0);case"false":return S("value",!1);case"null":return S("value",null);default:return x===w&&Ve===""?null:S("name",Ve)}}else be++};return M},b=function(g,x){var w,S,I={},M=[],J=function(){var m=[];w.id!=="(end)"&&m.push({type:w.type,value:w.value,position:w.position});for(var C=S();C!==null;)m.push(C),C=S();return m},_={nud:function(){var m={code:"S0211",token:this.value,position:this.position};if(x)return m.remaining=J(),m.type="error",M.push(m),m;throw m.stack=new Error().stack,m}},T=function(m,C){var X=I[m];return C=C||0,X?C>=X.lbp&&(X.lbp=C):(X=Object.create(_),X.id=X.value=m,X.lbp=C,I[m]=X),X},W=function(m){if(x){m.remaining=J(),M.push(m);var C=I["(error)"];return w=Object.create(C),w.error=m,w.type="(error)",w}else throw m.stack=new Error().stack,m},N=function(m,C){if(m&&w.id!==m){var X;w.id==="(end)"?X="S0203":X="S0202";var ve={code:X,position:w.position,token:w.value,value:m};return W(ve)}var Ue=S(C);if(Ue===null)return w=I["(end)"],w.position=g.length,w;var Oe=Ue.value,k=Ue.type,R;switch(k){case"name":case"variable":R=I["(name)"];break;case"operator":if(R=I[Oe],!R)return W({code:"S0204",stack:new Error().stack,position:Ue.position,token:Oe});break;case"string":case"number":case"value":R=I["(literal)"];break;case"regex":k="regex",R=I["(regex)"];break;default:return W({code:"S0205",stack:new Error().stack,position:Ue.position,token:Oe})}return w=Object.create(R),w.value=Oe,w.type=k,w.position=Ue.position,w},E=function(m){var C,X=w;for(N(null,!0),C=X.nud();m<w.lbp;)X=w,N(),C=X.led(C);return C},z=function(m){var C=T(m,0);C.nud=function(){return this}},G=function(m,C,X){var ve=C||l[m],Ue=T(m,ve);return Ue.led=X||function(Oe){return this.lhs=Oe,this.rhs=E(ve),this.type="binary",this},Ue},ge=function(m,C,X){var ve=T(m,C);return ve.led=X,ve},Se=function(m,C){var X=T(m);return X.nud=C||function(){return this.expression=E(70),this.type="unary",this},X};z("(end)"),z("(name)"),z("(literal)"),z("(regex)"),T(":"),T(";"),T(","),T(")"),T("]"),T("}"),T(".."),G("."),G("+"),G("-"),G("*"),G("/"),G("%"),G("="),G("<"),G(">"),G("!="),G("<="),G(">="),G("&"),G("and"),G("or"),G("in"),z("and"),z("or"),z("in"),Se("-"),G("~>"),G("??",l["??"],function(m){return this.type="condition",this.condition={type:"function",value:"(",procedure:{type:"variable",value:"exists"},arguments:[m]},this.then=m,this.else=E(0),this}),ge("(error)",10,function(m){return this.lhs=m,this.error=w.error,this.remaining=J(),this.type="error",this}),Se("*",function(){return this.type="wildcard",this}),Se("**",function(){return this.type="descendant",this}),Se("%",function(){return this.type="parent",this}),G("(",l["("],function(m){if(this.procedure=m,this.type="function",this.arguments=[],w.id!==")")for(;w.type==="operator"&&w.id==="?"?(this.type="partial",this.arguments.push(w),N("?")):this.arguments.push(E(0)),w.id===",";)N(",");if(N(")",!0),m.type==="name"&&(m.value==="function"||m.value==="λ")){if(this.arguments.forEach(function(Oe,k){if(Oe.type!=="variable")return W({code:"S0208",stack:new Error().stack,position:Oe.position,token:Oe.value,value:k+1})}),this.type="lambda",w.id==="<"){for(var C=w.position,X=1,ve="<";X>0&&w.id!=="{"&&w.id!=="(end)";){var Ue=N();Ue.id===">"?X--:Ue.id==="<"&&X++,ve+=Ue.value}N(">");try{this.signature=a(ve)}catch(Oe){return Oe.position=C+Oe.offset,W(Oe)}}N("{"),this.body=E(0),N("}")}return this}),Se("(",function(){for(var m=[];w.id!==")"&&(m.push(E(0)),w.id===";");)N(";");return N(")",!0),this.type="block",this.expressions=m,this}),Se("[",function(){var m=[];if(w.id!=="]")for(;;){var C=E(0);if(w.id===".."){var X={type:"binary",value:"..",position:w.position,lhs:C};N(".."),X.rhs=E(0),C=X}if(m.push(C),w.id!==",")break;N(",")}return N("]",!0),this.expressions=m,this.type="unary",this}),G("[",l["["],function(m){if(w.id==="]"){for(var C=m;C&&C.type==="binary"&&C.value==="[";)C=C.lhs;return C.keepArray=!0,N("]"),m}else return this.lhs=m,this.rhs=E(l["]"]),this.type="binary",N("]",!0),this}),G("^",l["^"],function(m){N("(");for(var C=[];;){var X={descending:!1};if(w.id==="<"?N("<"):w.id===">"&&(X.descending=!0,N(">")),X.expression=E(0),C.push(X),w.id!==",")break;N(",")}return N(")"),this.lhs=m,this.rhs=C,this.type="binary",this});var Ve=function(m){var C=[];if(w.id!=="}")for(;;){var X=E(0);N(":");var ve=E(0);if(C.push([X,ve]),w.id!==",")break;N(",")}return N("}",!0),typeof m>"u"?(this.lhs=C,this.type="unary"):(this.lhs=m,this.rhs=C,this.type="binary"),this};Se("{",Ve),G("{",l["{"],Ve),ge(":=",l[":="],function(m){return m.type!=="variable"?W({code:"S0212",stack:new Error().stack,position:m.position,token:m.value}):(this.lhs=m,this.rhs=E(l[":="]-1),this.type="binary",this)}),G("@",l["@"],function(m){return this.lhs=m,this.rhs=E(l["@"]),this.rhs.type!=="variable"?W({code:"S0214",stack:new Error().stack,position:this.rhs.position,token:"@"}):(this.type="binary",this)}),G("#",l["#"],function(m){return this.lhs=m,this.rhs=E(l["#"]),this.rhs.type!=="variable"?W({code:"S0214",stack:new Error().stack,position:this.rhs.position,token:"#"}):(this.type="binary",this)}),G("?",l["?"],function(m){return this.type="condition",this.condition=m,this.then=E(0),w.id===":"&&(N(":"),this.else=E(0)),this}),G("?:",l["?:"],function(m){return this.type="condition",this.condition=m,this.then=m,this.else=E(0),this}),Se("|",function(){return this.type="transform",this.pattern=E(0),N("|"),this.update=E(0),w.id===","&&(N(","),this.delete=E(0)),N("|"),this});var De=function(m){var C;if(m.type==="function"&&!m.predicate){var X={type:"lambda",thunk:!0,arguments:[],position:m.position};X.body=m,C=X}else if(m.type==="condition")m.then=De(m.then),typeof m.else<"u"&&(m.else=De(m.else)),C=m;else if(m.type==="block"){var ve=m.expressions.length;ve>0&&(m.expressions[ve-1]=De(m.expressions[ve-1])),C=m}else C=m;return C},be=0,Fe=0,Ze=[],Ae=function(m,C){switch(m.type){case"name":case"wildcard":C.level--,C.level===0&&(typeof m.ancestor>"u"||(Ze[C.index].slot.label=m.ancestor.label),m.ancestor=C,m.tuple=!0);break;case"parent":C.level++;break;case"block":m.expressions.length>0&&(m.tuple=!0,C=Ae(m.expressions[m.expressions.length-1],C));break;case"path":m.tuple=!0;var X=m.steps.length-1;for(C=Ae(m.steps[X--],C);C.level>0&&X>=0;)C=Ae(m.steps[X--],C);break;default:throw{code:"S0217",token:m.type,position:m.position}}return C},we=function(m,C){if(typeof C.seekingParent<"u"||C.type==="parent"){var X=typeof C.seekingParent<"u"?C.seekingParent:[];C.type==="parent"&&X.push(C.slot),typeof m.seekingParent>"u"?m.seekingParent=X:Array.prototype.push.apply(m.seekingParent,X)}},it=function(m){var C=m.steps.length-1,X=m.steps[C],ve=typeof X.seekingParent<"u"?X.seekingParent:[];X.type==="parent"&&ve.push(X.slot);for(var Ue=0;Ue<ve.length;Ue++){var Oe=ve[Ue];for(C=m.steps.length-2;Oe.level>0;){if(C<0){typeof m.seekingParent>"u"?m.seekingParent=[Oe]:m.seekingParent.push(Oe);break}for(var k=m.steps[C--];C>=0&&k.focus&&m.steps[C].focus;)k=m.steps[C--];Oe=Ae(k,Oe)}}},pe=function(m){var C;switch(m.type){case"binary":switch(m.value){case".":var X=pe(m.lhs);X.type==="path"?C=X:C={type:"path",steps:[X]},X.type==="parent"&&(C.seekingParent=[X.slot]);var ve=pe(m.rhs);ve.type==="function"&&ve.procedure.type==="path"&&ve.procedure.steps.length===1&&ve.procedure.steps[0].type==="name"&&C.steps[C.steps.length-1].type==="function"&&(C.steps[C.steps.length-1].nextFunction=ve.procedure.steps[0].value),ve.type==="path"?Array.prototype.push.apply(C.steps,ve.steps):(typeof ve.predicate<"u"&&(ve.stages=ve.predicate,delete ve.predicate),C.steps.push(ve)),C.steps.filter(function(Q){if(Q.type==="number"||Q.type==="value")throw{code:"S0213",stack:new Error().stack,position:Q.position,value:Q.value};return Q.type==="string"}).forEach(function(Q){Q.type="name"}),C.steps.filter(function(Q){return Q.keepArray===!0}).length>0&&(C.keepSingletonArray=!0);var Ue=C.steps[0];Ue.type==="unary"&&Ue.value==="["&&(Ue.consarray=!0);var Oe=C.steps[C.steps.length-1];Oe.type==="unary"&&Oe.value==="["&&(Oe.consarray=!0),it(C);break;case"[":C=pe(m.lhs);var k=C,R="predicate";if(C.type==="path"&&(k=C.steps[C.steps.length-1],R="stages"),typeof k.group<"u")throw{code:"S0209",stack:new Error().stack,position:m.position};typeof k[R]>"u"&&(k[R]=[]);var O=pe(m.rhs);typeof O.seekingParent<"u"&&(O.seekingParent.forEach(Q=>{Q.level===1?Ae(k,Q):Q.level--}),we(k,O)),k[R].push({type:"filter",expr:O,position:m.position});break;case"{":if(C=pe(m.lhs),typeof C.group<"u")throw{code:"S0210",stack:new Error().stack,position:m.position};C.group={lhs:m.rhs.map(function(Q){return[pe(Q[0]),pe(Q[1])]}),position:m.position};break;case"^":C=pe(m.lhs),C.type!=="path"&&(C={type:"path",steps:[C]});var U={type:"sort",position:m.position};U.terms=m.rhs.map(function(Q){var ce=pe(Q.expression);return we(U,ce),{descending:Q.descending,expression:ce}}),C.steps.push(U),it(C);break;case":=":C={type:"bind",value:m.value,position:m.position},C.lhs=pe(m.lhs),C.rhs=pe(m.rhs),we(C,C.rhs);break;case"@":if(C=pe(m.lhs),k=C,C.type==="path"&&(k=C.steps[C.steps.length-1]),typeof k.stages<"u"||typeof k.predicate<"u")throw{code:"S0215",stack:new Error().stack,position:m.position};if(k.type==="sort")throw{code:"S0216",stack:new Error().stack,position:m.position};m.keepArray&&(k.keepArray=!0),k.focus=m.rhs.value,k.tuple=!0;break;case"#":C=pe(m.lhs),k=C,C.type==="path"?k=C.steps[C.steps.length-1]:(C={type:"path",steps:[C]},typeof k.predicate<"u"&&(k.stages=k.predicate,delete k.predicate)),typeof k.stages>"u"?k.index=m.rhs.value:k.stages.push({type:"index",value:m.rhs.value,position:m.position}),k.tuple=!0;break;case"~>":C={type:"apply",value:m.value,position:m.position},C.lhs=pe(m.lhs),C.rhs=pe(m.rhs),C.keepArray=C.lhs.keepArray||C.rhs.keepArray;break;default:C={type:m.type,value:m.value,position:m.position},C.lhs=pe(m.lhs),C.rhs=pe(m.rhs),we(C,C.lhs),we(C,C.rhs)}break;case"unary":C={type:m.type,value:m.value,position:m.position},m.value==="["?C.expressions=m.expressions.map(function(Q){var ce=pe(Q);return we(C,ce),ce}):m.value==="{"?C.lhs=m.lhs.map(function(Q){var ce=pe(Q[0]);we(C,ce);var Pe=pe(Q[1]);return we(C,Pe),[ce,Pe]}):(C.expression=pe(m.expression),m.value==="-"&&C.expression.type==="number"?(C=C.expression,C.value=-C.value):we(C,C.expression));break;case"function":case"partial":C={type:m.type,name:m.name,value:m.value,position:m.position},C.arguments=m.arguments.map(function(Q){var ce=pe(Q);return we(C,ce),ce}),C.procedure=pe(m.procedure);break;case"lambda":C={type:m.type,arguments:m.arguments,signature:m.signature,position:m.position};var H=pe(m.body);C.body=De(H);break;case"condition":C={type:m.type,position:m.position},C.condition=pe(m.condition),we(C,C.condition),C.then=pe(m.then),we(C,C.then),typeof m.else<"u"&&(C.else=pe(m.else),we(C,C.else));break;case"transform":C={type:m.type,position:m.position},C.pattern=pe(m.pattern),C.update=pe(m.update),typeof m.delete<"u"&&(C.delete=pe(m.delete));break;case"block":C={type:m.type,position:m.position},C.expressions=m.expressions.map(function(Q){var ce=pe(Q);return we(C,ce),(ce.consarray||ce.type==="path"&&ce.steps[0].consarray)&&(C.consarray=!0),ce});break;case"name":C={type:"path",steps:[m]},m.keepArray&&(C.keepSingletonArray=!0);break;case"parent":C={type:"parent",slot:{label:"!"+be++,level:1,index:Fe++}},Ze.push(C);break;case"string":case"number":case"value":case"wildcard":case"descendant":case"variable":case"regex":C=m;break;case"operator":if(m.value==="and"||m.value==="or"||m.value==="in")m.type="name",C=pe(m);else if(m.value==="?")C=m;else throw{code:"S0201",stack:new Error().stack,position:m.position,token:m.value};break;case"error":C=m,m.lhs&&(C=pe(m.lhs));break;default:var q="S0206";m.id==="(end)"&&(q="S0207");var j={code:q,position:m.position,token:m.value};if(x)return M.push(j),{type:"error",error:j};throw j.stack=new Error().stack,j}return m.keepArray&&(C.keepArray=!0),C};S=h(g),N();var Be=E(0);if(w.id!=="(end)"){var lt={code:"S0201",position:w.position,token:w.value};W(lt)}if(Be=pe(Be),Be.type==="parent"||typeof Be.seekingParent<"u")throw{code:"S0217",token:Be.type,position:Be.position};return M.length>0&&(Be.errors=M),Be};return b})();n.exports=i},{"./signature":5}],5:[function(r,n,o){var a=r("./utils");const i=(()=>{var l={a:"arrays",b:"booleans",f:"functions",n:"numbers",o:"objects",s:"strings"};function u(h){for(var b=1,g=[],x={},w=x;b<h.length;){var S=h.charAt(b);if(S===":")break;var I=function(){g.push(x),w=x,x={}},M=function(G,ge,Se,Ve){for(var De=1,be=ge;be<G.length;)if(be++,S=G.charAt(be),S===Ve){if(De--,De===0)break}else S===Se&&De++;return be};switch(S){case"s":case"n":case"b":case"l":case"o":x.regex="["+S+"m]",x.type=S,I();break;case"a":x.regex="[asnblfom]",x.type=S,x.array=!0,I();break;case"f":x.regex="f",x.type=S,I();break;case"j":x.regex="[asnblom]",x.type=S,I();break;case"x":x.regex="[asnblfom]",x.type=S,I();break;case"-":w.context=!0,w.contextRegex=new RegExp(w.regex),w.regex+="?";break;case"?":case"+":w.regex+=S;break;case"(":var J=M(h,b,"(",")"),_=h.substring(b+1,J);if(_.indexOf("<")===-1)x.regex="["+_+"m]";else throw{code:"S0402",stack:new Error().stack,value:_,offset:b};x.type="("+_+")",b=J,I();break;case"<":if(w.type==="a"||w.type==="f"){var T=M(h,b,"<",">");w.subtype=h.substring(b+1,T),b=T}else throw{code:"S0401",stack:new Error().stack,value:w.type,offset:b};break}b++}var W="^"+g.map(function(G){return"("+G.regex+")"}).join("")+"$",N=new RegExp(W),E=function(G){var ge;if(a.isFunction(G))ge="f";else{var Se=typeof G;switch(Se){case"string":ge="s";break;case"number":ge="n";break;case"boolean":ge="b";break;case"object":G===null?ge="l":Array.isArray(G)?ge="a":ge="o";break;case"undefined":default:ge="m"}}return ge},z=function(G,ge){for(var Se="^",Ve=0,De=0;De<g.length;De++){Se+=g[De].regex;var be=ge.match(Se);if(be===null)throw{code:"T0410",stack:new Error().stack,value:G[Ve],index:Ve+1};Ve=be[0].length}throw{code:"T0410",stack:new Error().stack,value:G[Ve],index:Ve+1}};return{definition:h,validate:function(G,ge){var Se="";G.forEach(function(Fe){Se+=E(Fe)});var Ve=N.exec(Se);if(Ve){var De=[],be=0;return g.forEach(function(Fe,Ze){var Ae=G[be],we=Ve[Ze+1];if(we==="")if(Fe.context&&Fe.contextRegex){var it=E(ge);if(Fe.contextRegex.test(it))De.push(ge);else throw{code:"T0411",stack:new Error().stack,value:ge,index:be+1}}else De.push(Ae),be++;else we.split("").forEach(function(pe){if(Fe.type==="a"){if(pe==="m")Ae=void 0;else{Ae=G[be];var Be=!0;if(typeof Fe.subtype<"u"){if(pe!=="a"&&we!==Fe.subtype)Be=!1;else if(pe==="a"&&Ae.length>0){var lt=E(Ae[0]);if(lt!==Fe.subtype.charAt(0))Be=!1;else{var m=Ae.filter(function(C){return E(C)!==lt});Be=m.length===0}}}if(!Be)throw{code:"T0412",stack:new Error().stack,value:Ae,index:be+1,type:l[Fe.subtype]};pe!=="a"&&(Ae=[Ae])}De.push(Ae),be++}else De.push(Ae),be++})}),De}z(G,Se)}}}return u})();n.exports=i},{"./utils":6}],6:[function(r,n,o){const a=(()=>{function i(T){var W=!1;if(typeof T=="number"&&(W=!isNaN(T),W&&!isFinite(T)))throw{code:"D1001",value:T,stack:new Error().stack};return W}function l(T){var W=!1;return Array.isArray(T)&&(W=T.filter(function(N){return typeof N!="string"}).length===0),W}function u(T){var W=!1;return Array.isArray(T)&&(W=T.filter(function(N){return!i(N)}).length===0),W}function h(){var T=[];return T.sequence=!0,arguments.length===1&&T.push(arguments[0]),T}function b(T){return T.sequence===!0&&Array.isArray(T)}function g(T){return T&&(T._jsonata_function===!0||T._jsonata_lambda===!0)||typeof T=="function"}function x(T){var W=typeof T.arity=="number"?T.arity:typeof T.implementation=="function"?T.implementation.length:typeof T.length=="number"?T.length:T.arguments.length;return W}function w(T){return T&&T._jsonata_lambda===!0}var S=(typeof Symbol=="function"?Symbol:{}).iterator||"@@iterator";function I(T){return typeof T=="object"&&T!==null&&S in T&&"next"in T&&typeof T.next=="function"}function M(T,W){if(T===W)return!0;if(typeof T=="object"&&typeof W=="object"&&T!==null&&W!==null){if(Array.isArray(T)&&Array.isArray(W)){if(T.length!==W.length)return!1;for(var N=0;N<T.length;N++)if(!M(T[N],W[N]))return!1;return!0}var E=Object.getOwnPropertyNames(T),z=Object.getOwnPropertyNames(W);if(E.length!==z.length)return!1;for(E=E.sort(),z=z.sort(),N=0;N<E.length;N++)if(E[N]!==z[N])return!1;for(N=0;N<E.length;N++){var G=E[N];if(!M(T[G],W[G]))return!1}return!0}return!1}function J(T){return typeof T=="object"&&T!==null&&"then"in T&&typeof T.then=="function"}function _(T){var W=[];for(let N of T)W.push(N);return W}return{isNumeric:i,isArrayOfStrings:l,isArrayOfNumbers:u,createSequence:h,isSequence:b,isFunction:g,isLambda:w,isIterable:I,getFunctionArity:x,isDeepEqual:M,stringToArray:_,isPromise:J}})();n.exports=a},{}]},{},[3])(3)})}(Sr)),Sr.exports}var mi=pi();const _n=Hn(mi),gi=async(e,t,r)=>{const{operand:n,operator:o,value:a}=e;if(o==="jsonata")try{const h=a.toString(),b=r();return await _n(h).evaluate(b)}catch(h){return console.log("JSONata evaluation error:",h),!1}const i=t(n),l=String(i||"").toLowerCase().trim(),u=String(a||"").toLowerCase().trim();switch(o){case"==":case"===":return l===u;case"!=":case"!==":return l!==u;case">":const h=parseFloat(l),b=parseFloat(u);return!isNaN(h)&&!isNaN(b)&&h>b;case">=":const g=parseFloat(l),x=parseFloat(u);return!isNaN(g)&&!isNaN(x)&&g>=x;case"<":const w=parseFloat(l),S=parseFloat(u);return!isNaN(w)&&!isNaN(S)&&w<S;case"<=":const I=parseFloat(l),M=parseFloat(u);return!isNaN(I)&&!isNaN(M)&&I<=M;case"contains":case"includes":return l.includes(u);case"not_contains":case"not_includes":return!l.includes(u);case"starts_with":return l.startsWith(u);case"ends_with":return l.endsWith(u);case"exists":case"is_not_empty":return i!=null&&l!=="";case"not_exists":case"is_empty":return i==null||l==="";case"in":return Array.isArray(a)?a.some(T=>String(T).toLowerCase().trim()===l):String(a).split(",").map(T=>T.toLowerCase().trim()).includes(l);case"not_in":return Array.isArray(a)?!a.some(T=>String(T).toLowerCase().trim()===l):!String(a).split(",").map(T=>T.toLowerCase().trim()).includes(l);case"regex":case"matches":try{return new RegExp(String(a),"i").test(l)}catch{return console.warn("Invalid regex pattern:",a),!1}default:return console.warn("Unknown operator:",o),!1}},yi=async(e,t,r)=>{if(!e||!e.conditions||e.conditions.length===0)return!0;for(const n of e.conditions){let o=!0;for(const a of n)if(!await gi(a,t,r)){o=!1;break}if(o)return!0}return!1},bi=()=>{const{getPatientValue:e,getFullPatient:t}=Ct();return{evaluateCondition:Ne.useMemo(()=>async n=>await yi(n,e,t),[e,t])}},In=e=>{var r;const t=(r=e.props)==null?void 0:r.required;return typeof t=="boolean"?t:typeof t=="string"?jn(t):!1},xi=(e,t)=>{var n;const r=e.filter(o=>o.shouldRender);for(const o of r)if(In(o)&&!Nn(o,t))return console.warn(`Required field is missing: ${o.name||((n=o.props)==null?void 0:n.propertyId)||o.id}`),!1;return!0},Nn=(e,t)=>{var o;const r=(o=e.props)==null?void 0:o.propertyId;if(!r)return!0;const n=t(r);return!(n==null||typeof n=="string"&&n.trim()===""||Array.isArray(n)&&n.length===0)},wi=(e,t)=>{const r=e.filter(a=>a.shouldRender),n=r.filter(a=>In(a)),o=n.filter(a=>!Nn(a,t));return{totalComponents:e.length,visibleComponents:r.length,requiredComponents:n.length,missingRequired:o.length,missingFields:o.map(a=>{var i,l;return{id:a.id,name:a.name,propertyId:(i=a.props)==null?void 0:i.propertyId,value:(l=a.props)!=null&&l.propertyId?t(a.props.propertyId):"N/A"}}),isValid:o.length===0}},Un=({flow:e,isPreview:t,$bgColor:r,onSubmit:n})=>{const[o,a]=Ne.useState(0),[i,l]=Ne.useState([]),[u,h]=Ne.useState(!0),{evaluateCondition:b}=bi(),{getFlowValue:g,getAllFlowData:x}=Ct(),w=async N=>{if(!N)return[];const E=[];for(const z of N){const G=!z.condition||await b(z.condition),ge=G;E.push({...z,isVisible:G,shouldRender:ge,hasCondition:!!z.condition})}return E};Ne.useEffect(()=>{const N=async()=>{var z;if(!e.flowForms){l([]),h(!1);return}const E=[];for(const G of e.flowForms)if(!G.condition||await b(G.condition)){const Se=(z=G.form)!=null&&z.formComponents?await w(G.form.formComponents):[];E.push({...G,evaluatedFormComponents:Se})}console.log("evaluateCondition and form components"),l(E),h(!1)};h(!0),N()},[e.flowForms,b]);const S=i.length,I=i[o];if(u)return D.jsx("div",{children:"Loading..."});if(!I)return null;const M=o===0,J=o===S-1,_=(I==null?void 0:I.evaluatedFormComponents)||[],T=()=>{if(wi(_,g),!!xi(_,g)){if(console.log("Form validation passed - proceeding to next step"),I.submit){n(x());return}o<S-1&&a(E=>E+1)}},W=()=>{o>0&&a(N=>N-1)};return D.jsxs(ho,{children:[D.jsx(pn,{currentStep:o+1,totalSteps:S,showOnDesktop:!0,showOnMobile:!1}),D.jsx(zt,{$xSmall:!0,$bgColor:"white",$bRad:"10px 10px 0px 0px",children:D.jsxs(go,{$banner:!1,$borderOff:!!I.bgColor,children:[D.jsx(hn,{onClick:W,disabled:M}),D.jsx(mo,{src:"https://media-s3-cdn.ivimhealth.com/assets/images/logos/ivim-black.svg"})]})}),D.jsx(Bn,{$bgColor:I.bgColor,children:D.jsx(zn,{flowForm:I,isPreview:t,evaluatedFormComponents:_})}),D.jsx(zt,{$xSmall:!0,$bgColor:"white",$bRad:"0px 0px 10px 10px",children:D.jsx(yo,{$borderOff:!!I.bgColor,children:D.jsx(po,{type:"submit",onClick:T,$isLastStep:J,$radius:"41px",$margin:"0 0 15px 0",$btnStyle:"black",children:J?"Submit":"Next"})})})]})},$i=async(e,t)=>{if(!e||typeof e!="string"||!t)return e;const r=/\{\{\s*([^}]+)\s*\}\}/g;let n=e,o;for(;(o=r.exec(e))!==null;){const a=o[0],i=o[1].trim();try{const l=await _n(i).evaluate(t),u=l!=null?String(l):"";n=n.replace(a,u)}catch(l){console.warn(`Failed to process template expression: "${i}"`,l)}}return n},jr=async(e,t)=>{if(!e||!t)return e;if(typeof e=="string")return await $i(e,t);if(Array.isArray(e))return Promise.all(e.map(r=>jr(r,t)));if(typeof e=="object"){const r={};for(const[n,o]of Object.entries(e))r[n]=await jr(o,t);return r}return e},vi=async(e,t)=>{var r;if(!e||!t)return e;try{const n=JSON.parse(JSON.stringify(e));if(n.flowForms){for(const o of n.flowForms)if((r=o.form)!=null&&r.formComponents)for(const a of o.form.formComponents)a.props&&(a.props=await jr(a.props,t))}return n}catch(n){return console.error("Error processing flow config templates:",n),e}},Gr=({data:e,config:t,isPreview:r,onSubmit:n})=>{const{setFlowValues:o,generateFormDataFromFlow:a,setPatientValues:i,getFullPatient:l}=Ct(),[u,h]=Ne.useState(null),[b,g]=Ne.useState(!0),[x,w]=Ne.useState(!1),S=async(M,J=!1)=>{try{const _=await vi(t,M);if(h(_),J){const T=a(_);o(T)}}catch(_){if(console.error("Error processing config:",_),h(t),J){const T=a(t);o(T)}}};Ne.useEffect(()=>{(async()=>{g(!0),e&&i(e),await S(e,!0),w(!0),g(!1)})()},[e,t]);const I=l();return Ne.useEffect(()=>{x&&I&&S(I)},[I,t,x]),b||!u?D.jsx("div",{children:"Processing form..."}):D.jsx(Un,{flow:u,isPreview:r,onSubmit:n})},Ci={lightPalettePine120:"#5A6859",darkGreenTint:"#7B867A",lightGreen:"#D9E7CE",lightGreenTint:"#ECF3E7",paleLeaf:"#C5D5B9",brandDarkGray:"#32312D",mediumGray:"#474642",gray:"#706F6C",lightGray:"#ADADAB",ltGray:"#D2D2D2",lightGrayTint:"#F5F5F5",brandTan:"#C2925B",neutral50:"#CAC8BE",neutralTint1:"#E5E3D7",neutralTint2:"#EAE9DF",neutralTint3:"#FAF9F7",transparent:"transparent",errorRed:"#DD1818",purple:"#8A61AF",ltPurple:"#E3D9EC",blue:"#6186AF",ltBlue:"#C8E2FE",focus:"#b17bb2",xltGray:"#E1E2E7",white:"#FFFFFF",transp:"transparent",primary:"#32312D",ivimGreen:"#85AF61",success:"#6F9351",pine120:"#5A6859",pine100:"#7B867A",pine60:"#ACB3AC",neutral0:"#FFFFFF",neutral20:"#F5F4F2",neutral30:"#F1EFED",neutral40:"#D8D6CA",gray60:"#ADADAB",danger:"#B94E36"},Pi={playfair:'"Playfair Display", serif',poppins:"Poppins, sans-serif",karmina:"Karmina, serif"},ki={xs:"only screen and (min-width: 400px)",sm:"only screen and (min-width: 576px)",md:"only screen and (min-width: 766px)",lg:"only screen and (min-width: 992px)",xl:"only screen and (min-width: 1200px)"},Si={colors:Ci,fonts:Pi,mediaQuery:ki},Mn=ia({reducer:{[fr.name]:fr.reducer,[dr.name]:dr.reducer}}),Oi=V.div`
|
|
2550
|
+
`,vi={number:"number","number-input":"number",radio:"string","radio-group":"string","checkbox-single":"boolean","checkbox-multi":"any[]",scale:"number",dropdown:"string","titration-select":"string",datepicker:"string","text-input":"string"},Ci={header:ni,image:oi,"weight-loss-chart":ai,"horizontal-rule":ci,"text-tip":ui,"small-text":di,paragraph:fi,"refill-request":hi,"checkbox-single":La,"checkbox-multi":Ba,radio:fn,"radio-group":fn,number:Ua,dropdown:ei,datepicker:Za,scale:qa,"text-input":ti,textarea:Ga,"titration-select":ri},pt=()=>{const e=Rt.useDispatch(),t=Rt.useSelector(k=>Sa(k)),r=Rt.useSelector(k=>Oa(k)),n=Rt.useSelector(k=>Ea(k)),o=Rt.useSelector(k=>Da(k)),a=Ve.useCallback((k,M)=>{e(Ca({field:k,value:M}))},[e]),i=Ve.useCallback(k=>t[k],[t]),l=Ve.useCallback(()=>t,[t]),u=Ve.useCallback(k=>{e(un(k)),e(un(k))},[e]),h=Ve.useCallback((k,M)=>{e(Pa({field:k,error:M}))},[e]),b=Ve.useCallback(k=>r[k],[r]),m=Ve.useCallback(k=>{e(ka(k))},[e]),x=Ve.useCallback(()=>n,[n]),P=Ve.useCallback((k,M)=>{e(Ta({[k]:M}))},[e]),D=Ve.useCallback(k=>{const M={id:k.customerId??1,profile:k.data};e(Aa(M))},[e]),N=Ve.useCallback(k=>o==null?void 0:o[k],[o]),_=Ve.useCallback(()=>o,[o]),W=Ve.useCallback((k,M)=>{a(k,M),P(k,M)},[a,P]),R=Ve.useCallback(k=>{const M={};return k.flowForms&&k.flowForms.forEach(z=>{var A;(A=z.form)!=null&&A.formComponents&&z.form.formComponents.forEach(L=>{const B=L.componentId||"";if(vi[B]){const me=L.props,be=me==null?void 0:me.propertyId;be&&(M[be]=null)}})}),M},[]);return{setFlowValue:a,setFlowValues:u,getFlowValue:i,getAllFlowData:l,setFlowError:h,getFlowError:b,setDisableSubmitValue:m,getDisableSubmitValue:x,setPatientValue:P,setPatientValues:D,getPatientValue:N,getFullPatient:_,setFlowAndPatientValue:W,generateFormDataFromFlow:R}};function ir(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Or={exports:{}},hn;function Pi(){return hn||(hn=1,function(e,t){(function(r){e.exports=r()})(function(){return function(){function r(n,o,a){function i(h,b){if(!o[h]){if(!n[h]){var m=typeof ir=="function"&&ir;if(!b&&m)return m(h,!0);if(l)return l(h,!0);var x=new Error("Cannot find module '"+h+"'");throw x.code="MODULE_NOT_FOUND",x}var P=o[h]={exports:{}};n[h][0].call(P.exports,function(D){var N=n[h][1][D];return i(N||D)},P,P.exports,r,n,o,a)}return o[h].exports}for(var l=typeof ir=="function"&&ir,u=0;u<a.length;u++)i(a[u]);return i}return r}()({1:[function(r,n,o){const a=r("./utils"),i=function(){const l=a.stringToArray,u=["Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen"],h=["Zeroth","First","Second","Third","Fourth","Fifth","Sixth","Seventh","Eighth","Ninth","Tenth","Eleventh","Twelfth","Thirteenth","Fourteenth","Fifteenth","Sixteenth","Seventeenth","Eighteenth","Nineteenth"],b=["Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety","Hundred"],m=["Thousand","Million","Billion","Trillion"];function x(S,j){var V=function(Y,H,F){var Q="";if(Y<=19)Q=(H?" and ":"")+(F?h[Y]:u[Y]);else if(Y<100){const Oe=Math.floor(Y/10),Te=Y%10;Q=(H?" and ":"")+b[Oe-2],Te>0?Q+="-"+V(Te,!1,F):F&&(Q=Q.substring(0,Q.length-1)+"ieth")}else if(Y<1e3){const Oe=Math.floor(Y/100),Te=Y%100;Q=(H?", ":"")+u[Oe]+" Hundred",Te>0?Q+=V(Te,!0,F):F&&(Q+="th")}else{var ce=Math.floor(Math.log10(Y)/3);ce>m.length&&(ce=m.length);const Oe=Math.pow(10,ce*3),Te=Math.floor(Y/Oe),le=Y-Te*Oe;Q=(H?", ":"")+V(Te,!1,!1)+" "+m[ce-1],le>0?Q+=V(le,!0,F):F&&(Q+="th")}return Q},U=V(S,!1,j);return U}const P={};u.forEach(function(S,j){P[S.toLowerCase()]=j}),h.forEach(function(S,j){P[S.toLowerCase()]=j}),b.forEach(function(S,j){const V=S.toLowerCase();P[V]=(j+2)*10,P[V.substring(0,S.length-1)+"ieth"]=P[V]}),P.hundredth=100,m.forEach(function(S,j){const V=S.toLowerCase(),U=Math.pow(10,(j+1)*3);P[V]=U,P[V+"th"]=U});function D(S){const V=S.split(/,\s|\sand\s|[\s\\-]/).map(H=>P[H]);let U=[0];return V.forEach(H=>{if(H<100){let F=U.pop();F>=1e3&&(U.push(F),F=0),U.push(F+H)}else U.push(U.pop()*H)}),U.reduce((H,F)=>H+F,0)}const N=[[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"]],_={M:1e3,D:500,C:100,L:50,X:10,V:5,I:1};function W(S){for(var j=0;j<N.length;j++){const V=N[j];if(S>=V[0])return V[1]+W(S-V[0])}return""}function R(S){for(var j=0,V=1,U=S.length-1;U>=0;U--){const Y=S[U],H=_[Y];H<V?j-=H:(V=H,j+=H)}return j}function k(S,j){for(var V=[],U=j.charCodeAt(0);S>0;)V.unshift(String.fromCharCode((S-1)%26+U)),S=Math.floor((S-1)/26);return V.join("")}function M(S,j){for(var V=j.charCodeAt(0),U=0,Y=0;Y<S.length;Y++)U+=(S.charCodeAt(S.length-Y-1)-V+1)*Math.pow(26,Y);return U}function z(S,j){if(typeof S>"u")return;S=Math.floor(S);const V=me(j);return B(S,V)}const A={DECIMAL:"decimal",LETTERS:"letters",ROMAN:"roman",WORDS:"words",SEQUENCE:"sequence"},L={UPPER:"upper",LOWER:"lower",TITLE:"title"};function B(S,j){let V;const U=S<0;switch(S=Math.abs(S),j.primary){case A.LETTERS:V=k(S,j.case===L.UPPER?"A":"a");break;case A.ROMAN:V=W(S),j.case===L.UPPER&&(V=V.toUpperCase());break;case A.WORDS:V=x(S,j.ordinal),j.case===L.UPPER?V=V.toUpperCase():j.case===L.LOWER&&(V=V.toLowerCase());break;case A.DECIMAL:V=""+S;var Y=j.mandatoryDigits-V.length;if(Y>0){var H=new Array(Y+1).join("0");V=H+V}if(j.zeroCode!==48&&(V=l(V).map(Oe=>String.fromCodePoint(Oe.codePointAt(0)+j.zeroCode-48)).join("")),j.regular){const Oe=Math.floor((V.length-1)/j.groupingSeparators.position);for(let Te=Oe;Te>0;Te--){const le=V.length-Te*j.groupingSeparators.position;V=V.substr(0,le)+j.groupingSeparators.character+V.substr(le)}}else j.groupingSeparators.reverse().forEach(Oe=>{const Te=V.length-Oe.position;V=V.substr(0,Te)+Oe.character+V.substr(Te)});if(j.ordinal){var F={1:"st",2:"nd",3:"rd"},Q=V[V.length-1],ce=F[Q];(!ce||V.length>1&&V[V.length-2]==="1")&&(ce="th"),V=V+ce}break;case A.SEQUENCE:throw{code:"D3130",value:j.token}}return U&&(V="-"+V),V}const ue=[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 me(S){const j={type:"integer",primary:A.DECIMAL,case:L.LOWER,ordinal:!1};let V,U;const Y=S.lastIndexOf(";");switch(Y===-1?V=S:(V=S.substring(0,Y),U=S.substring(Y+1),U[0]==="o"&&(j.ordinal=!0)),V){case"A":j.case=L.UPPER;case"a":j.primary=A.LETTERS;break;case"I":j.case=L.UPPER;case"i":j.primary=A.ROMAN;break;case"W":j.case=L.UPPER,j.primary=A.WORDS;break;case"Ww":j.case=L.TITLE,j.primary=A.WORDS;break;case"w":j.primary=A.WORDS;break;default:{let H=null,F=0,Q=0,ce=[],Oe=0;if(l(V).map(le=>le.codePointAt(0)).reverse().forEach(le=>{let fe=!1;for(let Ee=0;Ee<ue.length;Ee++){const re=ue[Ee];if(le>=re&&le<=re+9){if(fe=!0,F++,Oe++,H===null)H=re;else if(re!==H)throw{code:"D3131"};break}}fe||(le===35?(Oe++,Q++):ce.push({position:Oe,character:String.fromCodePoint(le)}))}),F>0){j.primary=A.DECIMAL,j.zeroCode=H,j.mandatoryDigits=F,j.optionalDigits=Q;const fe=function(Ee){if(Ee.length===0)return 0;const re=Ee[0].character;for(let We=1;We<Ee.length;We++)if(Ee[We].character!==re)return 0;const Je=Ee.map(We=>We.position),ut=function(We,tt){return tt===0?We:ut(tt,We%tt)},et=Je.reduce(ut);for(let We=1;We<=Je.length;We++)if(Je.indexOf(We*et)===-1)return 0;return et}(ce);fe>0?(j.regular=!0,j.groupingSeparators={position:fe,character:ce[0].character}):(j.regular=!1,j.groupingSeparators=ce)}else j.primary=A.SEQUENCE,j.token=V}}return j}const be={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 ve(S){var j=[];const V={type:"datetime",parts:j},U=function(fe,Ee){if(Ee>fe){let re=S.substring(fe,Ee);re=re.split("]]").join("]"),j.push({type:"literal",value:re})}};for(var Y=0,H=0;H<S.length;){if(S.charAt(H)==="["){if(S.charAt(H+1)==="["){U(Y,H),j.push({type:"literal",value:"["}),H+=2,Y=H;continue}if(U(Y,H),Y=H,H=S.indexOf("]",Y),H===-1)throw{code:"D3135"};let fe=S.substring(Y+1,H);fe=fe.split(/\s+/).join("");var F={type:"marker",component:fe.charAt(0)},Q=fe.lastIndexOf(","),ce;if(Q!==-1){const Ee=fe.substring(Q+1),re=Ee.indexOf("-");let Je,ut;const et=function(tt){if(!(typeof tt>"u"||tt==="*"))return parseInt(tt)};re===-1?Je=Ee:(Je=Ee.substring(0,re),ut=Ee.substring(re+1));const We={min:et(Je),max:et(ut)};F.width=We,ce=fe.substring(1,Q)}else ce=fe.substring(1);if(ce.length===1)F.presentation1=ce;else if(ce.length>1){var Oe=ce.charAt(ce.length-1);"atco".indexOf(Oe)!==-1?(F.presentation2=Oe,Oe==="o"&&(F.ordinal=!0),F.presentation1=ce.substring(0,ce.length-1)):F.presentation1=ce}else F.presentation1=be[F.component];if(typeof F.presentation1>"u")throw{code:"D3132",value:F.component};if(F.presentation1[0]==="n")F.names=L.LOWER;else if(F.presentation1[0]==="N")F.presentation1[1]==="n"?F.names=L.TITLE:F.names=L.UPPER;else if("YMDdFWwXxHhmsf".indexOf(F.component)!==-1){var Te=F.presentation1;if(F.presentation2&&(Te+=";"+F.presentation2),F.integerFormat=me(Te),F.width&&F.width.min!==void 0&&F.integerFormat.mandatoryDigits<F.width.min&&(F.integerFormat.mandatoryDigits=F.width.min),F.component==="Y")if(F.n=-1,F.width&&F.width.max!==void 0)F.n=F.width.max,F.integerFormat.mandatoryDigits=F.n;else{var le=F.integerFormat.mandatoryDigits+F.integerFormat.optionalDigits;le>=2&&(F.n=le)}const Ee=j[j.length-1];Ee&&Ee.integerFormat&&(Ee.integerFormat.parseWidth=Ee.integerFormat.mandatoryDigits)}(F.component==="Z"||F.component==="z")&&(F.integerFormat=me(F.presentation1)),j.push(F),Y=H+1}H++}return U(Y,H),V}const we=["","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Fe=["January","February","March","April","May","June","July","August","September","October","November","December"],Ze=1e3*60*60*24,De=function(S){const j=Date.UTC(S.year,S.month);var V=new Date(j).getUTCDay();return V===0&&(V=7),V>4?j+(8-V)*Ze:j-(V-1)*Ze},Ce=function(S,j){return{year:S,month:j,nextMonth:function(){return j===11?Ce(S+1,0):Ce(S,j+1)},previousMonth:function(){return j===0?Ce(S-1,11):Ce(S,j-1)},nextYear:function(){return Ce(S+1,j)},previousYear:function(){return Ce(S-1,j)}}},it=function(S,j){return(j-S)/(Ze*7)+1},ge=(S,j)=>{let V;switch(j){case"Y":V=S.getUTCFullYear();break;case"M":V=S.getUTCMonth()+1;break;case"D":V=S.getUTCDate();break;case"d":{const U=Date.UTC(S.getUTCFullYear(),S.getUTCMonth(),S.getUTCDate()),Y=Date.UTC(S.getUTCFullYear(),0);V=(U-Y)/Ze+1;break}case"F":V=S.getUTCDay(),V===0&&(V=7);break;case"W":{const U=Ce(S.getUTCFullYear(),0),Y=De(U),H=Date.UTC(U.year,S.getUTCMonth(),S.getUTCDate());let F=it(Y,H);if(F>52){const Q=De(U.nextYear());H>=Q&&(F=1)}else if(F<1){const Q=De(U.previousYear());F=it(Q,H)}V=Math.floor(F);break}case"w":{const U=Ce(S.getUTCFullYear(),S.getUTCMonth()),Y=De(U),H=Date.UTC(U.year,U.month,S.getUTCDate());let F=it(Y,H);if(F>4){const Q=De(U.nextMonth());H>=Q&&(F=1)}else if(F<1){const Q=De(U.previousMonth());F=it(Q,H)}V=Math.floor(F);break}case"X":{const U=Ce(S.getUTCFullYear(),0),Y=De(U),H=De(U.nextYear()),F=S.getTime();F<Y?V=U.year-1:F>=H?V=U.year+1:V=U.year;break}case"x":{const U=Ce(S.getUTCFullYear(),S.getUTCMonth()),Y=De(U),H=U.nextMonth(),F=De(H),Q=S.getTime();Q<Y?V=U.previousMonth().month+1:Q>=F?V=H.month+1:V=U.month+1;break}case"H":V=S.getUTCHours();break;case"h":V=S.getUTCHours(),V=V%12,V===0&&(V=12);break;case"P":V=S.getUTCHours()>=12?"pm":"am";break;case"m":V=S.getUTCMinutes();break;case"s":V=S.getUTCSeconds();break;case"f":V=S.getUTCMilliseconds();break;case"Z":case"z":break;case"C":V="ISO";break;case"E":V="ISO";break}return V};let Be=null;function lt(S,j,V){var U=0,Y=0;if(typeof V<"u"){const Te=parseInt(V);U=Math.floor(Te/100),Y=Te%100}var H=function(Te,le){var fe=ge(Te,le.component);if("YMDdFWwXxHhms".indexOf(le.component)!==-1)if(le.component==="Y"&&le.n!==-1&&(fe=fe%Math.pow(10,le.n)),le.names){if(le.component==="M"||le.component==="x")fe=Fe[fe-1];else if(le.component==="F")fe=we[fe];else throw{code:"D3133",value:le.component};le.names===L.UPPER?fe=fe.toUpperCase():le.names===L.LOWER&&(fe=fe.toLowerCase()),le.width&&fe.length>le.width.max&&(fe=fe.substring(0,le.width.max))}else fe=B(fe,le.integerFormat);else if(le.component==="f")fe=B(fe,le.integerFormat);else if(le.component==="Z"||le.component==="z"){const Ee=U*100+Y;if(le.integerFormat.regular)fe=B(Ee,le.integerFormat);else{const re=le.integerFormat.mandatoryDigits;if(re===1||re===2)fe=B(U,le.integerFormat),Y!==0&&(fe+=":"+z(Y,"00"));else if(re===3||re===4)fe=B(Ee,le.integerFormat);else throw{code:"D3134",value:re}}Ee>=0&&(fe="+"+fe),le.component==="z"&&(fe="GMT"+fe),Ee===0&&le.presentation2==="t"&&(fe="Z")}else le.component==="P"&&le.names===L.UPPER&&(fe=fe.toUpperCase());return fe};let F;typeof j>"u"?(Be===null&&(Be=ve("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001][Z01:01t]")),F=Be):F=ve(j);const Q=(60*U+Y)*60*1e3,ce=new Date(S+Q);let Oe="";return F.parts.forEach(function(Te){Te.type==="literal"?Oe+=Te.value:Oe+=H(ce,Te)}),Oe}function g(S){var j={};if(S.type==="datetime")j.type="datetime",j.parts=S.parts.map(function(V){var U={};if(V.type==="literal")U.regex=V.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");else if(V.component==="Z"||V.component==="z"){let H;Array.isArray(V.integerFormat.groupingSeparators)||(H=V.integerFormat.groupingSeparators),U.regex="",V.component==="z"&&(U.regex="GMT"),U.regex+="[-+][0-9]+",H&&(U.regex+=H.character+"[0-9]+"),U.parse=function(F){V.component==="z"&&(F=F.substring(3));let Q=0,ce=0;return H?(Q=Number.parseInt(F.substring(0,F.indexOf(H.character))),ce=Number.parseInt(F.substring(F.indexOf(H.character)+1))):F.length-1<=2?Q=Number.parseInt(F):(Q=Number.parseInt(F.substring(0,3)),ce=Number.parseInt(F.substring(3))),Q*60+ce}}else if(V.integerFormat)U=g(V.integerFormat);else{U.regex="[a-zA-Z]+";var Y={};if(V.component==="M"||V.component==="x")Fe.forEach(function(H,F){V.width&&V.width.max?Y[H.substring(0,V.width.max)]=F+1:Y[H]=F+1});else if(V.component==="F")we.forEach(function(H,F){F>0&&(V.width&&V.width.max?Y[H.substring(0,V.width.max)]=F:Y[H]=F)});else if(V.component==="P")Y={am:0,AM:0,pm:1,PM:1};else throw{code:"D3133",value:V.component};U.parse=function(H){return Y[H]}}return U.component=V.component,U});else{j.type="integer";const V=S.case===L.UPPER;switch(S.primary){case A.LETTERS:j.regex=V?"[A-Z]+":"[a-z]+",j.parse=function(U){return M(U,V?"A":"a")};break;case A.ROMAN:j.regex=V?"[MDCLXVI]+":"[mdclxvi]+",j.parse=function(U){return R(V?U:U.toUpperCase())};break;case A.WORDS:j.regex="(?:"+Object.keys(P).concat("and","[\\-, ]").join("|")+")+",j.parse=function(U){return D(U.toLowerCase())};break;case A.DECIMAL:j.regex="[0-9]",S.parseWidth?j.regex+=`{${S.parseWidth}}`:j.regex+="+",S.ordinal&&(j.regex+="(?:th|st|nd|rd)"),j.parse=function(U){let Y=U;return S.ordinal&&(Y=U.substring(0,U.length-2)),S.regular?Y=Y.split(",").join(""):S.groupingSeparators.forEach(H=>{Y=Y.split(H.character).join("")}),S.zeroCode!==48&&(Y=Y.split("").map(H=>String.fromCodePoint(H.codePointAt(0)-S.zeroCode+48)).join("")),parseInt(Y)};break;case A.SEQUENCE:throw{code:"D3130",value:S.token}}}return j}function v(S,j){if(typeof S>"u")return;const V=me(j);return g(V).parse(S)}function X(S,j){const V=ve(j),U=g(V),Y="^"+U.parts.map(ce=>"("+ce.regex+")").join("")+"$";var F=new RegExp(Y,"i").exec(S);if(F!==null){const re={};for(let Re=1;Re<F.length;Re++){const d=U.parts[Re-1];d.parse&&(re[d.component]=d.parse(F[Re]))}if(Object.getOwnPropertyNames(re).length===0)return;let Je=0;const ut=Re=>{Je<<=1,Je+=Re?1:0},et=Re=>!(~Re&Je)&&!!(Re&Je);"YXMxWwdD".split("").forEach(Re=>ut(re[Re]));const tt=!et(161)&&et(130),$t=et(84),vt=!$t&&et(72);Je=0,"PHhmsf".split("").forEach(Re=>ut(re[Re]));const kt=!et(23)&&et(47),Dt=(tt?"YD":$t?"XxwF":vt?"XWF":"YMD")+(kt?"Phmsf":"Hmsf"),mt=this.environment.timestamp;let Et=!1,wt=!1;if(Dt.split("").forEach(Re=>{if(typeof re[Re]>"u")Et?(re[Re]="MDd".indexOf(Re)!==-1?1:0,wt=!0):re[Re]=ge(mt,Re);else if(Et=!0,wt)throw{code:"D3136"}}),re.M>0?re.M-=1:re.M=0,tt){const Re=Date.UTC(re.Y,0),d=(re.d-1)*1e3*60*60*24,y=new Date(Re+d);re.M=y.getUTCMonth(),re.D=y.getUTCDate()}if($t)throw{code:"D3136"};if(vt)throw{code:"D3136"};kt&&(re.H=re.h===12?0:re.h,re.P===1&&(re.H+=12));var Q=Date.UTC(re.Y,re.M,re.D,re.H,re.m,re.s,re.f);return(re.Z||re.z)&&(Q-=(re.Z||re.z)*60*1e3),Q}}var ke=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 Ue(S,j){if(!(typeof S>"u"))if(typeof j>"u"){if(!ke.test(S))throw{stack:new Error().stack,code:"D3110",value:S};return Date.parse(S)}else return X.call(this,S,j)}function Ae(S,j,V){if(!(typeof S>"u"))return lt.call(this,S,j,V)}return{formatInteger:z,parseInteger:v,fromMillis:Ae,toMillis:Ue}}();n.exports=i},{"./utils":6}],2:[function(r,n,o){(function(a){(function(){var i=r("./utils");const l=(()=>{var u=i.isNumeric,h=i.isArrayOfStrings,b=i.isArrayOfNumbers,m=i.createSequence,x=i.isSequence,P=i.isFunction,D=i.isLambda,N=i.isPromise,_=i.getFunctionArity,W=i.isDeepEqual,R=i.stringToArray;function k(s){if(!(typeof s>"u")){var c=0;return s.forEach(function(f){c+=f}),c}}function M(s){return typeof s>"u"?0:s.length}function z(s){if(!(typeof s>"u"||s.length===0))return Math.max.apply(Math,s)}function A(s){if(!(typeof s>"u"||s.length===0))return Math.min.apply(Math,s)}function L(s){if(!(typeof s>"u"||s.length===0)){var c=0;return s.forEach(function(f){c+=f}),c/s.length}}function B(s,c=!1){if(!(typeof s>"u")){var f;if(typeof s=="string")f=s;else if(P(s))f="";else{if(typeof s=="number"&&!isFinite(s))throw{code:"D3001",value:s,stack:new Error().stack};var C=c?2:0;Array.isArray(s)&&s.outerWrapper&&(s=s[0]),f=JSON.stringify(s,function(w,T){return typeof T<"u"&&T!==null&&T.toPrecision&&u(T)?Number(T.toPrecision(15)):T&&P(T)?"":T},C)}return f}}function ue(s,c,f){if(!(typeof s>"u")){var C=R(s),w=C.length;if(w+c<0&&(c=0),typeof f<"u"){if(f<=0)return"";var T=c>=0?c+f:w+c+f;return C.slice(c,T).join("")}return C.slice(c).join("")}}function me(s,c){if(!(typeof s>"u")){var f=s.indexOf(c);return f>-1?s.substr(0,f):s}}function be(s,c){if(!(typeof s>"u")){var f=s.indexOf(c);return f>-1?s.substr(f+c.length):s}}function ve(s){if(!(typeof s>"u"))return s.toLowerCase()}function we(s){if(!(typeof s>"u"))return s.toUpperCase()}function Fe(s){if(!(typeof s>"u"))return R(s).length}function Ze(s){if(!(typeof s>"u")){var c=s.replace(/[ \t\n\r]+/gm," ");return c.charAt(0)===" "&&(c=c.substring(1)),c.charAt(c.length-1)===" "&&(c=c.substring(0,c.length-1)),c}}function De(s,c,f){if(!(typeof s>"u")){(typeof f>"u"||f.length===0)&&(f=" ");var C;c=Math.trunc(c);var w=Math.abs(c)-Fe(s);if(w>0){var T=new Array(w+1).join(f);f.length>1&&(T=ue(T,0,w)),c>0?C=s+T:C=T+s}else C=s;return C}}async function Ce(s,c){var f=s.apply(this,[c]);if(N(f)&&(f=await f),f&&!(typeof f.start=="number"||f.end==="number"||Array.isArray(f.groups)||P(f.next)))throw{code:"T1010",stack:new Error().stack};return f}async function it(s,c){if(!(typeof s>"u")){var f;if(typeof c=="string")f=s.indexOf(c)!==-1;else{var C=await Ce(c,s);f=typeof C<"u"}return f}}async function ge(s,c,f){if(!(typeof s>"u")){if(f<0)throw{stack:new Error().stack,value:f,code:"D3040",index:3};var C=m();if(typeof f>"u"||f>0){var w=0,T=await Ce(c,s);if(typeof T<"u")for(;typeof T<"u"&&(typeof f>"u"||w<f);)C.push({match:T.match,index:T.start,groups:T.groups}),T=await Ce(T.next),w++}return C}}async function Be(s,c,f,C){if(!(typeof s>"u")){var w=this;if(c==="")throw{code:"D3010",stack:new Error().stack,value:c,index:2};if(C<0)throw{code:"D3011",stack:new Error().stack,value:C,index:4};var T;typeof f=="string"?T=function(Ne){for(var Xe="",je=0,p=f.indexOf("$",je);p!==-1&&je<f.length;){Xe+=f.substring(je,p),je=p+1;var I=f.charAt(je);if(I==="$")Xe+="$",je++;else if(I==="0")Xe+=Ne.match,je++;else{var q;if(Ne.groups.length===0?q=1:q=Math.floor(Math.log(Ne.groups.length)*Math.LOG10E)+1,p=parseInt(f.substring(je,je+q),10),q>1&&p>Ne.groups.length&&(p=parseInt(f.substring(je,je+q-1),10)),isNaN(p))Xe+="$";else{if(Ne.groups.length>0){var he=Ne.groups[p-1];typeof he<"u"&&(Xe+=he)}je+=p.toString().length}}p=f.indexOf("$",je)}return Xe+=f.substring(je),Xe}:T=f;var G="",ee=0;if(typeof C>"u"||C>0){var de=0;if(typeof c=="string"){for(var Ie=s.indexOf(c,ee);Ie!==-1&&(typeof C>"u"||de<C);)G+=s.substring(ee,Ie),G+=f,ee=Ie+c.length,de++,Ie=s.indexOf(c,ee);G+=s.substring(ee)}else{var Se=await Ce(c,s);if(typeof Se<"u"){for(;typeof Se<"u"&&(typeof C>"u"||de<C);){G+=s.substring(ee,Se.start);var ze=T.apply(w,[Se]);if(N(ze)&&(ze=await ze),typeof ze=="string")G+=ze;else throw{code:"D3012",stack:new Error().stack,value:ze};ee=Se.start+Se.match.length,de++,Se=await Ce(Se.next)}G+=s.substring(ee)}else G=s}}else G=s;return G}}function lt(s){if(!(typeof s>"u")){var c=typeof window<"u"?window.btoa:function(f){return new a.Buffer.from(f,"binary").toString("base64")};return c(s)}}function g(s){if(!(typeof s>"u")){var c=typeof window<"u"?window.atob:function(f){return new a.Buffer.from(f,"base64").toString("binary")};return c(s)}}function v(s){if(!(typeof s>"u")){var c;try{c=encodeURIComponent(s)}catch{throw{code:"D3140",stack:new Error().stack,value:s,functionName:"encodeUrlComponent"}}return c}}function X(s){if(!(typeof s>"u")){var c;try{c=encodeURI(s)}catch{throw{code:"D3140",stack:new Error().stack,value:s,functionName:"encodeUrl"}}return c}}function ke(s){if(!(typeof s>"u")){var c;try{c=decodeURIComponent(s)}catch{throw{code:"D3140",stack:new Error().stack,value:s,functionName:"decodeUrlComponent"}}return c}}function Ue(s){if(!(typeof s>"u")){var c;try{c=decodeURI(s)}catch{throw{code:"D3140",stack:new Error().stack,value:s,functionName:"decodeUrl"}}return c}}async function Ae(s,c,f){if(!(typeof s>"u")){if(f<0)throw{code:"D3020",stack:new Error().stack,value:f,index:3};var C=[];if(typeof f>"u"||f>0)if(typeof c=="string")C=s.split(c,f);else{var w=0,T=await Ce(c,s);if(typeof T<"u"){for(var G=0;typeof T<"u"&&(typeof f>"u"||w<f);)C.push(s.substring(G,T.start)),G=T.end,T=await Ce(T.next),w++;(typeof f>"u"||w<f)&&C.push(s.substring(G))}else C.push(s)}return C}}function S(s,c){if(!(typeof s>"u"))return typeof c>"u"&&(c=""),s.join(c)}function j(s,c,f){if(!(typeof s>"u")){var C={"decimal-separator":".","grouping-separator":",","exponent-separator":"e",infinity:"Infinity","minus-sign":"-",NaN:"NaN",percent:"%","per-mille":"‰","zero-digit":"0",digit:"#","pattern-separator":";"},w=C;typeof f<"u"&&Object.keys(f).forEach(function(ye){w[ye]=f[ye]});for(var T=[],G=w["zero-digit"].charCodeAt(0),ee=G;ee<G+10;ee++)T.push(String.fromCharCode(ee));var de=T.concat([w["decimal-separator"],w["exponent-separator"],w["grouping-separator"],w.digit,w["pattern-separator"]]),Ie=c.split(w["pattern-separator"]);if(Ie.length>2)throw{code:"D3080",stack:new Error().stack};var Se=function(ye){var Qe=function(){for(var rt,yt=0;yt<ye.length;yt++)if(rt=ye.charAt(yt),de.indexOf(rt)!==-1&&rt!==w["exponent-separator"])return ye.substring(0,yt)}(),st=function(){for(var rt,yt=ye.length-1;yt>=0;yt--)if(rt=ye.charAt(yt),de.indexOf(rt)!==-1&&rt!==w["exponent-separator"])return ye.substring(yt+1)}(),Le=ye.substring(Qe.length,ye.length-st.length),dt,Vt,ft,jt,gt=ye.indexOf(w["exponent-separator"],Qe.length);gt===-1||gt>ye.length-st.length?(dt=Le,Vt=void 0):(dt=Le.substring(0,gt),Vt=Le.substring(gt+1));var Ct=dt.indexOf(w["decimal-separator"]);return Ct===-1?(ft=dt,jt=st):(ft=dt.substring(0,Ct),jt=dt.substring(Ct+1)),{prefix:Qe,suffix:st,activePart:Le,mantissaPart:dt,exponentPart:Vt,integerPart:ft,fractionalPart:jt,subpicture:ye}},ze=function(ye){var Qe,st,Le=ye.subpicture,dt=Le.indexOf(w["decimal-separator"]);dt!==Le.lastIndexOf(w["decimal-separator"])&&(Qe="D3081"),Le.indexOf(w.percent)!==Le.lastIndexOf(w.percent)&&(Qe="D3082"),Le.indexOf(w["per-mille"])!==Le.lastIndexOf(w["per-mille"])&&(Qe="D3083"),Le.indexOf(w.percent)!==-1&&Le.indexOf(w["per-mille"])!==-1&&(Qe="D3084");var Vt=!1;for(st=0;st<ye.mantissaPart.length;st++){var ft=ye.mantissaPart.charAt(st);if(T.indexOf(ft)!==-1||ft===w.digit){Vt=!0;break}}Vt||(Qe="D3085");var jt=ye.activePart.split("").map(function(rt){return de.indexOf(rt)===-1?"p":"a"}).join("");jt.indexOf("p")!==-1&&(Qe="D3086"),dt!==-1?(Le.charAt(dt-1)===w["grouping-separator"]||Le.charAt(dt+1)===w["grouping-separator"])&&(Qe="D3087"):ye.integerPart.charAt(ye.integerPart.length-1)===w["grouping-separator"]&&(Qe="D3088"),Le.indexOf(w["grouping-separator"]+w["grouping-separator"])!==-1&&(Qe="D3089");var gt=ye.integerPart.indexOf(w.digit);gt!==-1&&ye.integerPart.substring(0,gt).split("").filter(function(rt){return T.indexOf(rt)>-1}).length>0&&(Qe="D3090"),gt=ye.fractionalPart.lastIndexOf(w.digit),gt!==-1&&ye.fractionalPart.substring(gt).split("").filter(function(rt){return T.indexOf(rt)>-1}).length>0&&(Qe="D3091");var Ct=typeof ye.exponentPart=="string";if(Ct&&ye.exponentPart.length>0&&(Le.indexOf(w.percent)!==-1||Le.indexOf(w["per-mille"])!==-1)&&(Qe="D3092"),Ct&&(ye.exponentPart.length===0||ye.exponentPart.split("").filter(function(rt){return T.indexOf(rt)===-1}).length>0)&&(Qe="D3093"),Qe)throw{code:Qe,stack:new Error().stack}},Ne=function(ye){var Qe=function(ot,tr){for(var Qt=[],St=ot.indexOf(w["grouping-separator"]);St!==-1;){var rr=(tr?ot.substring(0,St):ot.substring(St)).split("").filter(function(Gt){return T.indexOf(Gt)!==-1||Gt===w.digit}).length;Qt.push(rr),St=ye.integerPart.indexOf(w["grouping-separator"],St+1)}return Qt},st=Qe(ye.integerPart),Le=function(ot){if(ot.length===0)return 0;for(var tr=function(rr,Gt){return Gt===0?rr:tr(Gt,rr%Gt)},Qt=ot.reduce(tr),St=1;St<=ot.length;St++)if(ot.indexOf(St*Qt)===-1)return 0;return Qt},dt=Le(st),Vt=Qe(ye.fractionalPart,!0),ft=ye.integerPart.split("").filter(function(ot){return T.indexOf(ot)!==-1}).length,jt=ft,gt=ye.fractionalPart.split(""),Ct=gt.filter(function(ot){return T.indexOf(ot)!==-1}).length,rt=gt.filter(function(ot){return T.indexOf(ot)!==-1||ot===w.digit}).length,yt=typeof ye.exponentPart=="string";ft===0&&rt===0&&(yt?(Ct=1,rt=1):ft=1),yt&&ft===0&&ye.integerPart.indexOf(w.digit)!==-1&&(ft=1),ft===0&&Ct===0&&(Ct=1);var Qr=0;return yt&&(Qr=ye.exponentPart.split("").filter(function(ot){return T.indexOf(ot)!==-1}).length),{integerPartGroupingPositions:st,regularGrouping:dt,minimumIntegerPartSize:ft,scalingFactor:jt,prefix:ye.prefix,fractionalPartGroupingPositions:Vt,minimumFactionalPartSize:Ct,maximumFactionalPartSize:rt,minimumExponentSize:Qr,suffix:ye.suffix,picture:ye.subpicture}},Xe=Ie.map(Se);Xe.forEach(ze);var je=Xe.map(Ne),p=w["minus-sign"],I=w["zero-digit"],q=w["decimal-separator"],he=w["grouping-separator"];je.length===1&&(je.push(JSON.parse(JSON.stringify(je[0]))),je[1].prefix=p+je[1].prefix);var pe;s>=0?pe=je[0]:pe=je[1];var _e;pe.picture.indexOf(w.percent)!==-1?_e=s*100:pe.picture.indexOf(w["per-mille"])!==-1?_e=s*1e3:_e=s;var Pe,$e;if(pe.minimumExponentSize===0)Pe=_e;else{var nt=Math.pow(10,pe.scalingFactor),He=Math.pow(10,pe.scalingFactor-1);for(Pe=_e,$e=0;Pe<He;)Pe*=10,$e-=1;for(;Pe>nt;)Pe/=10,$e+=1}var Ye=Q(Pe,pe.maximumFactionalPartSize),ct=function(ye,Qe){var st=Math.abs(ye).toFixed(Qe);return I!=="0"&&(st=st.split("").map(function(Le){return Le>="0"&&Le<="9"?T[Le.charCodeAt(0)-48]:Le}).join("")),st},xe=ct(Ye,pe.maximumFactionalPartSize),qe=xe.indexOf(".");for(qe===-1?xe=xe+q:xe=xe.replace(".",q);xe.charAt(0)===I;)xe=xe.substring(1);for(;xe.charAt(xe.length-1)===I;)xe=xe.substring(0,xe.length-1);qe=xe.indexOf(q);var Ke=pe.minimumIntegerPartSize-qe,Mt=pe.minimumFactionalPartSize-(xe.length-qe-1);if(xe=(Ke>0?new Array(Ke+1).join(I):"")+xe,xe=xe+(Mt>0?new Array(Mt+1).join(I):""),qe=xe.indexOf(q),pe.regularGrouping>0)for(var $r=Math.floor((qe-1)/pe.regularGrouping),zt=1;zt<=$r;zt++)xe=[xe.slice(0,qe-zt*pe.regularGrouping),he,xe.slice(qe-zt*pe.regularGrouping)].join("");else pe.integerPartGroupingPositions.forEach(function(ye){xe=[xe.slice(0,qe-ye),he,xe.slice(qe-ye)].join(""),qe++});if(qe=xe.indexOf(q),pe.fractionalPartGroupingPositions.forEach(function(ye){xe=[xe.slice(0,ye+qe+1),he,xe.slice(ye+qe+1)].join("")}),qe=xe.indexOf(q),(pe.picture.indexOf(q)===-1||qe===xe.length-1)&&(xe=xe.substring(0,xe.length-1)),typeof $e<"u"){var er=ct($e,0);Ke=pe.minimumExponentSize-er.length,Ke>0&&(er=new Array(Ke+1).join(I)+er),xe=xe+w["exponent-separator"]+($e<0?p:"")+er}return xe=pe.prefix+xe+pe.suffix,xe}}function V(s,c){if(!(typeof s>"u")){if(s=Q(s),typeof c>"u"?c=10:c=Q(c),c<2||c>36)throw{code:"D3100",stack:new Error().stack,value:c};var f=s.toString(c);return f}}function U(s){var c;if(!(typeof s>"u")){if(typeof s=="number")c=s;else if(typeof s=="string"&&/^-?[0-9]+(\.[0-9]+)?([Ee][-+]?[0-9]+)?$/.test(s)&&!isNaN(parseFloat(s))&&isFinite(s))c=parseFloat(s);else if(typeof s=="string"&&/^(0[xX][0-9A-Fa-f]+)|(0[oO][0-7]+)|(0[bB][0-1]+)$/.test(s))c=Number(s);else if(s===!0)c=1;else if(s===!1)c=0;else throw{code:"D3030",value:s,stack:new Error().stack,index:1};return c}}function Y(s){var c;if(!(typeof s>"u"))return c=Math.abs(s),c}function H(s){var c;if(!(typeof s>"u"))return c=Math.floor(s),c}function F(s){var c;if(!(typeof s>"u"))return c=Math.ceil(s),c}function Q(s,c){var f;if(!(typeof s>"u")){if(c){var C=s.toString().split("e");s=+(C[0]+"e"+(C[1]?+C[1]+c:c))}f=Math.round(s);var w=f-s;return Math.abs(w)===.5&&Math.abs(f%2)===1&&(f=f-1),c&&(C=f.toString().split("e"),f=+(C[0]+"e"+(C[1]?+C[1]-c:-c))),Object.is(f,-0)&&(f=0),f}}function ce(s){var c;if(!(typeof s>"u")){if(s<0)throw{stack:new Error().stack,code:"D3060",index:1,value:s};return c=Math.sqrt(s),c}}function Oe(s,c){var f;if(!(typeof s>"u")){if(f=Math.pow(s,c),!isFinite(f))throw{stack:new Error().stack,code:"D3061",index:1,value:s,exp:c};return f}}function Te(){return Math.random()}function le(s){if(!(typeof s>"u")){var c=!1;if(Array.isArray(s)){if(s.length===1)c=le(s[0]);else if(s.length>1){var f=s.filter(function(C){return le(C)});c=f.length>0}}else typeof s=="string"?s.length>0&&(c=!0):u(s)?s!==0&&(c=!0):s!==null&&typeof s=="object"&&!P(s)?Object.keys(s).length>0&&(c=!0):typeof s=="boolean"&&s===!0&&(c=!0);return c}}function fe(s){if(!(typeof s>"u"))return!le(s)}function Ee(s,c,f,C){var w=[c],T=_(s);return T>=2&&w.push(f),T>=3&&w.push(C),w}async function re(s,c){if(!(typeof s>"u")){for(var f=m(),C=0;C<s.length;C++){var w=Ee(c,s[C],C,s),T=await c.apply(this,w);typeof T<"u"&&f.push(T)}return f}}async function Je(s,c){if(!(typeof s>"u")){for(var f=m(),C=0;C<s.length;C++){var w=s[C],T=Ee(c,w,C,s),G=await c.apply(this,T);le(G)&&f.push(w)}return f}}async function ut(s,c){if(!(typeof s>"u")){for(var f=!1,C,w=0;w<s.length;w++){var T=s[w],G=!0;if(typeof c<"u"){var ee=Ee(c,T,w,s),de=await c.apply(this,ee);G=le(de)}if(G)if(!f)C=T,f=!0;else throw{stack:new Error().stack,code:"D3138",index:w}}if(!f)throw{stack:new Error().stack,code:"D3139"};return C}}function et(){for(var s=[],c=Array.prototype.slice.call(arguments),f=Math.min.apply(Math,c.map(function(T){return Array.isArray(T)?T.length:0})),C=0;C<f;C++){var w=c.map(T=>T[C]);s.push(w)}return s}async function We(s,c,f){if(!(typeof s>"u")){var C,w=_(c);if(w<2)throw{stack:new Error().stack,code:"D3050",index:1};var T;for(typeof f>"u"&&s.length>0?(C=s[0],T=1):(C=f,T=0);T<s.length;){var G=[C,s[T]];w>=3&&G.push(T),w>=4&&G.push(s),C=await c.apply(this,G),T++}return C}}function tt(s){var c=m();if(Array.isArray(s)){var f={};s.forEach(function(C){var w=tt(C);w.forEach(function(T){f[T]=!0})}),c=tt(f)}else s!==null&&typeof s=="object"&&!P(s)&&Object.keys(s).forEach(C=>c.push(C));return c}function $t(s,c){var f;if(Array.isArray(s)){f=m();for(var C=0;C<s.length;C++){var w=$t(s[C],c);typeof w<"u"&&(Array.isArray(w)?w.forEach(T=>f.push(T)):f.push(w))}}else s!==null&&typeof s=="object"&&!P(s)&&(f=s[c]);return f}function vt(s,c){return typeof s>"u"?c:typeof c>"u"?s:(Array.isArray(s)||(s=m(s)),Array.isArray(c)||(c=[c]),s.concat(c))}function Tt(s){return!(typeof s>"u")}function kt(s){var c=m();if(Array.isArray(s))s.forEach(function(w){c=vt(c,kt(w))});else if(s!==null&&typeof s=="object"&&!D(s))for(var f in s){var C={};C[f]=s[f],c.push(C)}else c=s;return c}function J(s){if(!(typeof s>"u")){var c={};return s.forEach(function(f){for(var C in f)c[C]=f[C]}),c}}function Ut(s){if(!(typeof s>"u")){if(s.length<=1)return s;for(var c=s.length,f=new Array(c),C=0;C<c;C++)f[c-C-1]=s[C];return f}}async function Dt(s,c){var f=m();for(var C in s){var w=Ee(c,s[C],C,s),T=await c.apply(this,w);typeof T<"u"&&f.push(T)}return f}function mt(s){throw{code:"D3137",stack:new Error().stack,message:s||"$error() function evaluated"}}function Et(s,c){if(!s)throw{code:"D3141",stack:new Error().stack,message:c||"$assert() statement failed"}}function wt(s){if(s!==void 0)return s===null?"null":u(s)?"number":typeof s=="string"?"string":typeof s=="boolean"?"boolean":Array.isArray(s)?"array":P(s)?"function":"object"}async function Re(s,c){if(!(typeof s>"u")){if(s.length<=1)return s;var f;if(typeof c>"u"){if(!b(s)&&!h(s))throw{stack:new Error().stack,code:"D3070",index:1};f=async function(G,ee){return G>ee}}else f=c;var C=async function(G,ee){var de=async function(Se,ze,Ne){ze.length===0?Array.prototype.push.apply(Se,Ne):Ne.length===0?Array.prototype.push.apply(Se,ze):await f(ze[0],Ne[0])?(Se.push(Ne[0]),await de(Se,ze,Ne.slice(1))):(Se.push(ze[0]),await de(Se,ze.slice(1),Ne))},Ie=[];return await de(Ie,G,ee),Ie},w=async function(G){if(!Array.isArray(G)||G.length<=1)return G;var ee=Math.floor(G.length/2),de=G.slice(0,ee),Ie=G.slice(ee);return de=await w(de),Ie=await w(Ie),await C(de,Ie)},T=await w(s);return T}}function d(s){if(!(typeof s>"u")){if(s.length<=1)return s;for(var c=new Array(s.length),f=0;f<s.length;f++){var C=Math.floor(Math.random()*(f+1));f!==C&&(c[f]=c[C]),c[C]=s[f]}return c}}function y(s){if(!(typeof s>"u")){if(!Array.isArray(s)||s.length<=1)return s;for(var c=x(s)?m():[],f=0;f<s.length;f++){for(var C=s[f],w=!1,T=0;T<c.length;T++)if(W(C,c[T])){w=!0;break}w||c.push(C)}return c}}async function $(s,c){var f={};for(var C in s){var w=s[C],T=Ee(c,w,C,s),G=await c.apply(this,T);le(G)&&(f[C]=w)}return Object.keys(f).length===0&&(f=void 0),f}return{sum:k,count:M,max:z,min:A,average:L,string:B,substring:ue,substringBefore:me,substringAfter:be,lowercase:ve,uppercase:we,length:Fe,trim:Ze,pad:De,match:ge,contains:it,replace:Be,split:Ae,join:S,formatNumber:j,formatBase:V,number:U,floor:H,ceil:F,round:Q,abs:Y,sqrt:ce,power:Oe,random:Te,boolean:le,not:fe,map:re,zip:et,filter:Je,single:ut,foldLeft:We,sift:$,keys:tt,lookup:$t,append:vt,exists:Tt,spread:kt,merge:J,reverse:Ut,each:Dt,error:mt,assert:Et,type:wt,sort:Re,shuffle:d,distinct:y,base64encode:lt,base64decode:g,encodeUrlComponent:v,encodeUrl:X,decodeUrlComponent:ke,decodeUrl:Ue}})();n.exports=l}).call(this)}).call(this,typeof Hr<"u"?Hr:typeof self<"u"?self:typeof window<"u"?window:{})},{"./utils":6}],3:[function(r,n,o){var a=r("./datetime"),i=r("./functions"),l=r("./utils"),u=r("./parser"),h=r("./signature"),b=function(){var m=l.isNumeric,x=l.isArrayOfStrings,P=l.isArrayOfNumbers,D=l.createSequence,N=l.isSequence,_=l.isFunction,W=l.isLambda,R=l.isIterable,k=l.isPromise,M=l.getFunctionArity,z=l.isDeepEqual,A=mt(null);async function L(d,y,$){var s,c=$.lookup(Symbol.for("jsonata.__evaluate_entry"));switch(c&&await c(d,y,$),d.type){case"path":s=await B(d,y,$);break;case"binary":s=await Fe(d,y,$);break;case"unary":s=await Ze(d,y,$);break;case"name":s=De(d,y);break;case"string":case"number":case"value":s=Ce(d);break;case"wildcard":s=it(d,y);break;case"descendant":s=Be(d,y);break;case"parent":s=$.lookup(d.slot.label);break;case"condition":s=await H(d,y,$);break;case"block":s=await F(d,y,$);break;case"bind":s=await Y(d,y,$);break;case"regex":s=Q(d);break;case"function":s=await Ee(d,y,$);break;case"variable":s=ce(d,y,$);break;case"lambda":s=ut(d,y,$);break;case"partial":s=await et(d,y,$);break;case"apply":s=await fe(d,y,$);break;case"transform":s=Te(d,y,$);break}if(Object.prototype.hasOwnProperty.call(d,"predicate"))for(var f=0;f<d.predicate.length;f++)s=await we(d.predicate[f].expr,s,$);d.type!=="path"&&Object.prototype.hasOwnProperty.call(d,"group")&&(s=await j(d.group,s,$));var C=$.lookup(Symbol.for("jsonata.__evaluate_exit"));return C&&await C(d,y,$,s),s&&N(s)&&!s.tupleStream&&(d.keepArray&&(s.keepSingleton=!0),s.length===0?s=void 0:s.length===1&&(s=s.keepSingleton?s:s[0])),s}async function B(d,y,$){var s;Array.isArray(y)&&d.steps[0].type!=="variable"?s=y:s=D(y);for(var c,f=!1,C=void 0,w=0;w<d.steps.length;w++){var T=d.steps[w];if(T.tuple&&(f=!0),w===0&&T.consarray?c=await L(T,s,$):f?C=await ve(T,s,C,$):c=await me(T,s,$,w===d.steps.length-1),!f&&(typeof c>"u"||c.length===0))break;typeof T.focus>"u"&&(s=c)}if(f)if(d.tuple)c=C;else for(c=D(),w=0;w<C.length;w++)c.push(C[w]["@"]);return d.keepSingletonArray&&(Array.isArray(c)&&c.cons&&!c.sequence&&(c=D(c)),c.keepSingleton=!0),d.hasOwnProperty("group")&&(c=await j(d.group,f?C:c,$)),c}function ue(d,y){var $=mt(d);for(const s in y)$.bind(s,y[s]);return $}async function me(d,y,$,s){var c;if(d.type==="sort")return c=await Oe(d,y,$),d.stages&&(c=await be(d.stages,c,$)),c;c=D();for(var f=0;f<y.length;f++){var C=await L(d,y[f],$);if(d.stages)for(var w=0;w<d.stages.length;w++)C=await we(d.stages[w].expr,C,$);typeof C<"u"&&c.push(C)}var T=D();return s&&c.length===1&&Array.isArray(c[0])&&!N(c[0])?T=c[0]:c.forEach(function(G){!Array.isArray(G)||G.cons?T.push(G):G.forEach(ee=>T.push(ee))}),T}async function be(d,y,$){for(var s=y,c=0;c<d.length;c++){var f=d[c];switch(f.type){case"filter":s=await we(f.expr,s,$);break;case"index":for(var C=0;C<s.length;C++){var w=s[C];w[f.value]=C}break}}return s}async function ve(d,y,$,s){var c;if(d.type==="sort"){if($)c=await Oe(d,$,s);else{var f=await Oe(d,y,s);c=D(),c.tupleStream=!0;for(var C=0;C<f.length;C++){var w={"@":f[C]};w[d.index]=C,c.push(w)}}return d.stages&&(c=await be(d.stages,c,s)),c}c=D(),c.tupleStream=!0;var T=s;$===void 0&&($=y.map(Ie=>({"@":Ie})));for(var G=0;G<$.length;G++){T=ue(s,$[G]);var ee=await L(d,$[G]["@"],T);if(typeof ee<"u"){Array.isArray(ee)||(ee=[ee]);for(var de=0;de<ee.length;de++)w={},Object.assign(w,$[G]),ee.tupleStream?Object.assign(w,ee[de]):(d.focus?(w[d.focus]=ee[de],w["@"]=$[G]["@"]):w["@"]=ee[de],d.index&&(w[d.index]=de),d.ancestor&&(w[d.ancestor.label]=$[G]["@"])),c.push(w)}}return d.stages&&(c=await be(d.stages,c,s)),c}async function we(d,y,$){var s=D();if(y&&y.tupleStream&&(s.tupleStream=!0),Array.isArray(y)||(y=D(y)),d.type==="number"){var c=Math.floor(d.value);c<0&&(c=y.length+c);var f=await y[c];typeof f<"u"&&(Array.isArray(f)?s=f:s.push(f))}else for(c=0;c<y.length;c++){var f=y[c],C=f,w=$;y.tupleStream&&(C=f["@"],w=ue($,f));var T=await L(d,C,w);m(T)&&(T=[T]),P(T)?T.forEach(function(ee){var de=Math.floor(ee);de<0&&(de=y.length+de),de===c&&s.push(f)}):i.boolean(T)&&s.push(f)}return s}async function Fe(d,y,$){var s,c=await L(d.lhs,y,$),f=d.value,C=async()=>await L(d.rhs,y,$);if(f==="and"||f==="or")try{return await Ue(c,C,f)}catch(T){throw T.position=d.position,T.token=f,T}var w=await C();try{switch(f){case"+":case"-":case"*":case"/":case"%":s=g(c,w,f);break;case"=":case"!=":s=v(c,w,f);break;case"<":case"<=":case">":case">=":s=X(c,w,f);break;case"&":s=S(c,w);break;case"..":s=U(c,w);break;case"in":s=ke(c,w);break}}catch(T){throw T.position=d.position,T.token=f,T}return s}async function Ze(d,y,$){var s;switch(d.value){case"-":if(s=await L(d.expression,y,$),typeof s>"u")s=void 0;else if(m(s))s=-s;else throw{code:"D1002",stack:new Error().stack,position:d.position,token:d.value,value:s};break;case"[":s=[];let C=await Promise.all(d.expressions.map(async(w,T)=>($.isParallelCall=T>0,[w,await L(w,y,$)])));for(let w of C){var[c,f]=w;typeof f<"u"&&(c.value==="["?s.push(f):s=i.append(s,f))}d.consarray&&Object.defineProperty(s,"cons",{enumerable:!1,configurable:!1,value:!0});break;case"{":s=await j(d,y,$);break}return s}function De(d,y,$){return i.lookup(y,d.value)}function Ce(d){return d.value}function it(d,y){var $=D();return Array.isArray(y)&&y.outerWrapper&&y.length>0&&(y=y[0]),y!==null&&typeof y=="object"&&Object.keys(y).forEach(function(s){var c=y[s];Array.isArray(c)?(c=ge(c),$=i.append($,c)):$.push(c)}),$}function ge(d,y){return typeof y>"u"&&(y=[]),Array.isArray(d)?d.forEach(function($){ge($,y)}):y.push(d),y}function Be(d,y){var $,s=D();return typeof y<"u"&&(lt(y,s),s.length===1?$=s[0]:$=s),$}function lt(d,y){Array.isArray(d)||y.push(d),Array.isArray(d)?d.forEach(function($){lt($,y)}):d!==null&&typeof d=="object"&&Object.keys(d).forEach(function($){lt(d[$],y)})}function g(d,y,$){var s;if(typeof d<"u"&&!m(d))throw{code:"T2001",stack:new Error().stack,value:d};if(typeof y<"u"&&!m(y))throw{code:"T2002",stack:new Error().stack,value:y};if(typeof d>"u"||typeof y>"u")return s;switch($){case"+":s=d+y;break;case"-":s=d-y;break;case"*":s=d*y;break;case"/":s=d/y;break;case"%":s=d%y;break}return s}function v(d,y,$){var s,c=typeof d,f=typeof y;if(c==="undefined"||f==="undefined")return!1;switch($){case"=":s=z(d,y);break;case"!=":s=!z(d,y);break}return s}function X(d,y,$){var s,c=typeof d,f=typeof y,C=c==="undefined"||c==="string"||c==="number",w=f==="undefined"||f==="string"||f==="number";if(!C||!w)throw{code:"T2010",stack:new Error().stack,value:c==="string"||c==="number"?y:d};if(!(c==="undefined"||f==="undefined")){if(c!==f)throw{code:"T2009",stack:new Error().stack,value:d,value2:y};switch($){case"<":s=d<y;break;case"<=":s=d<=y;break;case">":s=d>y;break;case">=":s=d>=y;break}return s}}function ke(d,y){var $=!1;if(typeof d>"u"||typeof y>"u")return!1;Array.isArray(y)||(y=[y]);for(var s=0;s<y.length;s++)if(y[s]===d){$=!0;break}return $}async function Ue(d,y,$){var s,c=Ae(d);switch($){case"and":s=c&&Ae(await y());break;case"or":s=c||Ae(await y());break}return s}function Ae(d){var y=i.boolean(d);return typeof y>"u"?!1:y}function S(d,y){var $,s="",c="";return typeof d<"u"&&(s=i.string(d)),typeof y<"u"&&(c=i.string(y)),$=s.concat(c),$}async function j(d,y,$){var s={},c={},f=!!(y&&y.tupleStream);Array.isArray(y)||(y=D(y)),y.length===0&&y.push(void 0);for(var C=0;C<y.length;C++)for(var w=y[C],T=f?ue($,w):$,G=0;G<d.lhs.length;G++){var ee=d.lhs[G],de=await L(ee[0],f?w["@"]:w,T);if(typeof de!="string"&&de!==void 0)throw{code:"T1003",stack:new Error().stack,position:d.position,value:de};if(de!==void 0){var Ie={data:w,exprIndex:G};if(c.hasOwnProperty(de)){if(c[de].exprIndex!==G)throw{code:"D1009",stack:new Error().stack,position:d.position,value:de};c[de].data=i.append(c[de].data,w)}else c[de]=Ie}}let Se=await Promise.all(Object.keys(c).map(async(Ne,Xe)=>{let je=c[Ne];var p=je.data,I=$;if(f){var q=V(je.data);p=q["@"],delete q["@"],I=ue($,q)}return $.isParallelCall=Xe>0,[Ne,await L(d.lhs[je.exprIndex][1],p,I)]}));for(let Ne of Se){var[de,ze]=await Ne;typeof ze<"u"&&(s[de]=ze)}return s}function V(d){if(!Array.isArray(d))return d;var y={};Object.assign(y,d[0]);for(var $=1;$<d.length;$++)for(const s in d[$])y[s]=i.append(y[s],d[$][s]);return y}function U(d,y){var $;if(typeof d<"u"&&!Number.isInteger(d))throw{code:"T2003",stack:new Error().stack,value:d};if(typeof y<"u"&&!Number.isInteger(y))throw{code:"T2004",stack:new Error().stack,value:y};if(typeof d>"u"||typeof y>"u"||d>y)return $;var s=y-d+1;if(s>1e7)throw{code:"D2014",stack:new Error().stack,value:s};$=new Array(s);for(var c=d,f=0;c<=y;c++,f++)$[f]=c;return $.sequence=!0,$}async function Y(d,y,$){var s=await L(d.rhs,y,$);return $.bind(d.lhs.value,s),s}async function H(d,y,$){var s,c=await L(d.condition,y,$);return i.boolean(c)?s=await L(d.then,y,$):typeof d.else<"u"&&(s=await L(d.else,y,$)),s}async function F(d,y,$){for(var s,c=mt($),f=0;f<d.expressions.length;f++)s=await L(d.expressions[f],y,c);return s}function Q(d){var y=new Re.RegexEngine(d.value),$=function(s,c){var f;y.lastIndex=c||0;var C=y.exec(s);if(C!==null){if(f={match:C[0],start:C.index,end:C.index+C[0].length,groups:[]},C.length>1)for(var w=1;w<C.length;w++)f.groups.push(C[w]);f.next=function(){if(!(y.lastIndex>=s.length)){var T=$(s,y.lastIndex);if(T&&T.match==="")throw{code:"D1004",stack:new Error().stack,position:d.position,value:d.value.source};return T}}}return f};return $}function ce(d,y,$){var s;return d.value===""?s=y&&y.outerWrapper?y[0]:y:s=$.lookup(d.value),s}async function Oe(d,y,$){var s,c=y,f=!!y.tupleStream,C=async function(T,G){for(var ee=0,de=0;ee===0&&de<d.terms.length;de++){var Ie=d.terms[de],Se=T,ze=$;f&&(Se=T["@"],ze=ue($,T));var Ne=await L(Ie.expression,Se,ze);Se=G,ze=$,f&&(Se=G["@"],ze=ue($,G));var Xe=await L(Ie.expression,Se,ze),je=typeof Ne,p=typeof Xe;if(je==="undefined"){ee=p==="undefined"?0:1;continue}if(p==="undefined"){ee=-1;continue}if(!(je==="string"||je==="number")||!(p==="string"||p==="number"))throw{code:"T2008",stack:new Error().stack,position:d.position,value:je==="string"||je==="number"?Xe:Ne};if(je!==p)throw{code:"T2007",stack:new Error().stack,position:d.position,value:Ne,value2:Xe};Ne!==Xe&&(Ne<Xe?ee=-1:ee=1,Ie.descending===!0&&(ee=-ee))}return ee===1},w={environment:$,input:y};return s=await i.sort.apply(w,[c,C]),s}function Te(d,y,$){var s=async function(c){if(!(typeof c>"u")){var f=$.lookup("clone");if(!_(f))throw{code:"T2013",stack:new Error().stack,position:d.position};var C=await re(f,[c],null,$),w=await L(d.pattern,C,$);if(typeof w<"u"){Array.isArray(w)||(w=[w]);for(var T=0;T<w.length;T++){var G=w[T];if(G&&(G.isPrototypeOf(C)||G instanceof Object.constructor))throw{code:"D1010",stack:new Error().stack,position:d.position};var ee=await L(d.update,G,$),de=typeof ee;if(de!=="undefined"){if(de!=="object"||ee===null||Array.isArray(ee))throw{code:"T2011",stack:new Error().stack,position:d.update.position,value:ee};for(var Ie in ee)G[Ie]=ee[Ie]}if(typeof d.delete<"u"){var Se=await L(d.delete,G,$);if(typeof Se<"u"){var ze=Se;if(Array.isArray(Se)||(Se=[Se]),!x(Se))throw{code:"T2012",stack:new Error().stack,position:d.delete.position,value:ze};for(var Ne=0;Ne<Se.length;Ne++)typeof G=="object"&&G!==null&&delete G[Se[Ne]]}}}}return C}};return J(s,"<(oa):o>")}var le=u("function($f, $g) { function($x){ $g($f($x)) } }");async function fe(d,y,$){var s,c=await L(d.lhs,y,$);if(d.rhs.type==="function")s=await Ee(d.rhs,y,$,{context:c});else{var f=await L(d.rhs,y,$);if(!_(f))throw{code:"T2006",stack:new Error().stack,position:d.position,value:f};if(_(c)){var C=await L(le,null,$);s=await re(C,[c,f],null,$)}else s=await re(f,[c],null,$)}return s}async function Ee(d,y,$,s){var c,f=await L(d.procedure,y,$);if(typeof f>"u"&&d.procedure.type==="path"&&$.lookup(d.procedure.steps[0].value))throw{code:"T1005",stack:new Error().stack,position:d.position,token:d.procedure.steps[0].value};var C=[];typeof s<"u"&&C.push(s.context);for(var w=0;w<d.arguments.length;w++){const G=await L(d.arguments[w],y,$);if(_(G)){const ee=async function(...de){return await re(G,de,null,$)};ee.arity=M(G),C.push(ee)}else C.push(G)}var T=d.procedure.type==="path"?d.procedure.steps[0].value:d.procedure.value;try{typeof f=="object"&&(f.token=T,f.position=d.position),c=await re(f,C,y,$)}catch(G){throw G.position||(G.position=d.position),G.token||(G.token=T),G}return c}async function re(d,y,$,s){var c;for(c=await Je(d,y,$,s);W(c)&&c.thunk===!0;){var f=await L(c.body.procedure,c.input,c.environment);c.body.procedure.type==="variable"&&(f.token=c.body.procedure.value),f.position=c.body.procedure.position;for(var C=[],w=0;w<c.body.arguments.length;w++)C.push(await L(c.body.arguments[w],c.input,c.environment));c=await Je(f,C,$,s)}return c}async function Je(d,y,$,s){var c;try{var f=y;if(d&&(f=We(d.signature,y,$)),W(d))c=await tt(d,f);else if(d&&d._jsonata_function===!0){var C={environment:s,input:$};c=d.implementation.apply(C,f),R(c)&&(c=c.next().value),k(c)&&(c=await c)}else if(typeof d=="function")c=d.apply($,f),k(c)&&(c=await c);else throw{code:"T1006",stack:new Error().stack}}catch(w){throw d&&(typeof w.token>"u"&&typeof d.token<"u"&&(w.token=d.token),w.position=d.position||w.position),w}return c}function ut(d,y,$){var s={_jsonata_lambda:!0,input:y,environment:$,arguments:d.arguments,signature:d.signature,body:d.body};return d.thunk===!0&&(s.thunk=!0),s.apply=async function(c,f){return await re(s,f,y,c?c.environment:$)},s}async function et(d,y,$){for(var s,c=[],f=0;f<d.arguments.length;f++){var C=d.arguments[f];C.type==="operator"&&C.value==="?"?c.push(C):c.push(await L(C,y,$))}var w=await L(d.procedure,y,$);if(typeof w>"u"&&d.procedure.type==="path"&&$.lookup(d.procedure.steps[0].value))throw{code:"T1007",stack:new Error().stack,position:d.position,token:d.procedure.steps[0].value};if(W(w))s=$t(w,c);else if(w&&w._jsonata_function===!0)s=vt(w.implementation,c);else if(typeof w=="function")s=vt(w,c);else throw{code:"T1008",stack:new Error().stack,position:d.position,token:d.procedure.type==="path"?d.procedure.steps[0].value:d.procedure.value};return s}function We(d,y,$){if(typeof d>"u")return y;var s=d.validate(y,$);return s}async function tt(d,y){var $,s=mt(d.environment);return d.arguments.forEach(function(c,f){s.bind(c.value,y[f])}),typeof d.body=="function"?$=await Tt(d.body,s):$=await L(d.body,d.input,s),$}function $t(d,y){var $=mt(d.environment),s=[];d.arguments.forEach(function(f,C){var w=y[C];w&&w.type==="operator"&&w.value==="?"?s.push(f):$.bind(f.value,w)});var c={_jsonata_lambda:!0,input:d.input,environment:$,arguments:s,body:d.body};return c}function vt(d,y){var $=kt(d);$=$.map(function(C){return"$"+C.trim()});var s="function("+$.join(", ")+"){ _ }",c=u(s);c.body=d;var f=$t(c,y);return f}async function Tt(d,y){var $=kt(d),s=$.map(function(C){return y.lookup(C.trim())}),c={environment:y},f=d.apply(c,s);return k(f)&&(f=await f),f}function kt(d){var y=d.toString(),$=/\(([^)]*)\)/.exec(y)[1],s=$.split(",");return s}function J(d,y){var $={_jsonata_function:!0,implementation:d};return typeof y<"u"&&($.signature=h(y)),$}async function Ut(d,y){if(!(typeof d>"u")){var $=this.input;typeof y<"u"&&($=y,Array.isArray($)&&!N($)&&($=D($),$.outerWrapper=!0));try{var s=u(d,!1)}catch(f){throw wt(f),{stack:new Error().stack,code:"D3120",value:f.message,error:f}}try{var c=await L(s,$,this.environment)}catch(f){throw wt(f),{stack:new Error().stack,code:"D3121",value:f.message,error:f}}return c}}function Dt(d){if(!(typeof d>"u"))return JSON.parse(i.string(d))}function mt(d){var y={};const $={bind:function(c,f){y[c]=f},lookup:function(c){var f;return y.hasOwnProperty(c)?f=y[c]:d&&(f=d.lookup(c)),f},timestamp:d?d.timestamp:null,async:d?d.async:!1,isParallelCall:d?d.isParallelCall:!1,global:d?d.global:{ancestry:[null]}};if(d){var s=d.lookup(Symbol.for("jsonata.__createFrame_push"));s&&s(d,$)}return $}A.bind("sum",J(i.sum,"<a<n>:n>")),A.bind("count",J(i.count,"<a:n>")),A.bind("max",J(i.max,"<a<n>:n>")),A.bind("min",J(i.min,"<a<n>:n>")),A.bind("average",J(i.average,"<a<n>:n>")),A.bind("string",J(i.string,"<x-b?:s>")),A.bind("substring",J(i.substring,"<s-nn?:s>")),A.bind("substringBefore",J(i.substringBefore,"<s-s:s>")),A.bind("substringAfter",J(i.substringAfter,"<s-s:s>")),A.bind("lowercase",J(i.lowercase,"<s-:s>")),A.bind("uppercase",J(i.uppercase,"<s-:s>")),A.bind("length",J(i.length,"<s-:n>")),A.bind("trim",J(i.trim,"<s-:s>")),A.bind("pad",J(i.pad,"<s-ns?:s>")),A.bind("match",J(i.match,"<s-f<s:o>n?:a<o>>")),A.bind("contains",J(i.contains,"<s-(sf):b>")),A.bind("replace",J(i.replace,"<s-(sf)(sf)n?:s>")),A.bind("split",J(i.split,"<s-(sf)n?:a<s>>")),A.bind("join",J(i.join,"<a<s>s?:s>")),A.bind("formatNumber",J(i.formatNumber,"<n-so?:s>")),A.bind("formatBase",J(i.formatBase,"<n-n?:s>")),A.bind("formatInteger",J(a.formatInteger,"<n-s:s>")),A.bind("parseInteger",J(a.parseInteger,"<s-s:n>")),A.bind("number",J(i.number,"<(nsb)-:n>")),A.bind("floor",J(i.floor,"<n-:n>")),A.bind("ceil",J(i.ceil,"<n-:n>")),A.bind("round",J(i.round,"<n-n?:n>")),A.bind("abs",J(i.abs,"<n-:n>")),A.bind("sqrt",J(i.sqrt,"<n-:n>")),A.bind("power",J(i.power,"<n-n:n>")),A.bind("random",J(i.random,"<:n>")),A.bind("boolean",J(i.boolean,"<x-:b>")),A.bind("not",J(i.not,"<x-:b>")),A.bind("map",J(i.map,"<af>")),A.bind("zip",J(i.zip,"<a+>")),A.bind("filter",J(i.filter,"<af>")),A.bind("single",J(i.single,"<af?>")),A.bind("reduce",J(i.foldLeft,"<afj?:j>")),A.bind("sift",J(i.sift,"<o-f?:o>")),A.bind("keys",J(i.keys,"<x-:a<s>>")),A.bind("lookup",J(i.lookup,"<x-s:x>")),A.bind("append",J(i.append,"<xx:a>")),A.bind("exists",J(i.exists,"<x:b>")),A.bind("spread",J(i.spread,"<x-:a<o>>")),A.bind("merge",J(i.merge,"<a<o>:o>")),A.bind("reverse",J(i.reverse,"<a:a>")),A.bind("each",J(i.each,"<o-f:a>")),A.bind("error",J(i.error,"<s?:x>")),A.bind("assert",J(i.assert,"<bs?:x>")),A.bind("type",J(i.type,"<x:s>")),A.bind("sort",J(i.sort,"<af?:a>")),A.bind("shuffle",J(i.shuffle,"<a:a>")),A.bind("distinct",J(i.distinct,"<x:x>")),A.bind("base64encode",J(i.base64encode,"<s-:s>")),A.bind("base64decode",J(i.base64decode,"<s-:s>")),A.bind("encodeUrlComponent",J(i.encodeUrlComponent,"<s-:s>")),A.bind("encodeUrl",J(i.encodeUrl,"<s-:s>")),A.bind("decodeUrlComponent",J(i.decodeUrlComponent,"<s-:s>")),A.bind("decodeUrl",J(i.decodeUrl,"<s-:s>")),A.bind("eval",J(Ut,"<sx?:x>")),A.bind("toMillis",J(a.toMillis,"<s-s?:n>")),A.bind("fromMillis",J(a.fromMillis,"<n-s?s?:s>")),A.bind("clone",J(Dt,"<(oa)-:o>"));var Et={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 wt(d){var y=Et[d.code];if(typeof y<"u"){var $=y.replace(/\{\{\{([^}]+)}}}/g,function(){return d[arguments[1]]});$=$.replace(/\{\{([^}]+)}}/g,function(){return JSON.stringify(d[arguments[1]])}),d.message=$}}function Re(d,y){var $,s;try{$=u(d,y&&y.recover),s=$.errors,delete $.errors}catch(C){throw wt(C),C}var c=mt(A),f=new Date;return c.bind("now",J(function(C,w){return a.fromMillis(f.getTime(),C,w)},"<s?s?:s>")),c.bind("millis",J(function(){return f.getTime()},"<:n>")),y&&y.RegexEngine?Re.RegexEngine=y.RegexEngine:Re.RegexEngine=RegExp,{evaluate:async function(C,w,T){if(typeof s<"u"){var G={code:"S0500",position:0};throw wt(G),G}if(typeof w<"u"){var ee;ee=mt(c);for(var de in w)ee.bind(de,w[de])}else ee=c;ee.bind("$",C),f=new Date,ee.timestamp=f,Array.isArray(C)&&!N(C)&&(C=D(C),C.outerWrapper=!0);var Ie;try{return Ie=await L($,C,ee),typeof T=="function"&&T(null,Ie),Ie}catch(Se){throw wt(Se),Se}},assign:function(C,w){c.bind(C,w)},registerFunction:function(C,w,T){var G=J(w,T);c.bind(C,G)},ast:function(){return $},errors:function(){return s}}}return Re.parser=u,Re}();n.exports=b},{"./datetime":1,"./functions":2,"./parser":4,"./signature":5,"./utils":6}],4:[function(r,n,o){var a=r("./signature");const i=(()=>{var l={".":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},u={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
2551
|
+
`,r:"\r",t:" "},h=function(m){var x=0,P=m.length,D=function(W,R){var k={type:W,value:R,position:x};return k},N=function(){for(var W=x,R=0,k,M,z=function(L){if(m.charAt(L)==="/"&&R===0){for(var B=0;m.charAt(L-(B+1))==="\\";)B++;if(B%2===0)return!0}return!1};x<P;){var A=m.charAt(x);if(z(x)){if(k=m.substring(W,x),k==="")throw{code:"S0301",stack:new Error().stack,position:x};for(x++,A=m.charAt(x),W=x;A==="i"||A==="m";)x++,A=m.charAt(x);return M=m.substring(W,x)+"g",new RegExp(k,M)}(A==="("||A==="["||A==="{")&&m.charAt(x-1)!=="\\"&&R++,(A===")"||A==="]"||A==="}")&&m.charAt(x-1)!=="\\"&&R--,x++}throw{code:"S0302",stack:new Error().stack,position:x}},_=function(W){if(x>=P)return null;for(var R=m.charAt(x);x<P&&`
|
|
2552
|
+
\r\v`.indexOf(R)>-1;)x++,R=m.charAt(x);if(R==="/"&&m.charAt(x+1)==="*"){var k=x;for(x+=2,R=m.charAt(x);!(R==="*"&&m.charAt(x+1)==="/");)if(R=m.charAt(++x),x>=P)throw{code:"S0106",stack:new Error().stack,position:k};return x+=2,R=m.charAt(x),_(W)}if(W!==!0&&R==="/")return x++,D("regex",N());if(R==="."&&m.charAt(x+1)===".")return x+=2,D("operator","..");if(R===":"&&m.charAt(x+1)==="=")return x+=2,D("operator",":=");if(R==="!"&&m.charAt(x+1)==="=")return x+=2,D("operator","!=");if(R===">"&&m.charAt(x+1)==="=")return x+=2,D("operator",">=");if(R==="<"&&m.charAt(x+1)==="=")return x+=2,D("operator","<=");if(R==="*"&&m.charAt(x+1)==="*")return x+=2,D("operator","**");if(R==="~"&&m.charAt(x+1)===">")return x+=2,D("operator","~>");if(R==="?"&&m.charAt(x+1)===":")return x+=2,D("operator","?:");if(R==="?"&&m.charAt(x+1)==="?")return x+=2,D("operator","??");if(Object.prototype.hasOwnProperty.call(l,R))return x++,D("operator",R);if(R==='"'||R==="'"){var M=R;x++;for(var z="";x<P;){if(R=m.charAt(x),R==="\\")if(x++,R=m.charAt(x),Object.prototype.hasOwnProperty.call(u,R))z+=u[R];else if(R==="u"){var A=m.substr(x+1,4);if(/^[0-9a-fA-F]+$/.test(A)){var L=parseInt(A,16);z+=String.fromCharCode(L),x+=4}else throw{code:"S0104",stack:new Error().stack,position:x}}else throw{code:"S0103",stack:new Error().stack,position:x,token:R};else{if(R===M)return x++,D("string",z);z+=R}x++}throw{code:"S0101",stack:new Error().stack,position:x}}var B=/^-?(0|([1-9][0-9]*))(\.[0-9]+)?([Ee][-+]?[0-9]+)?/,ue=B.exec(m.substring(x));if(ue!==null){var me=parseFloat(ue[0]);if(!isNaN(me)&&isFinite(me))return x+=ue[0].length,D("number",me);throw{code:"S0102",stack:new Error().stack,position:x,token:ue[0]}}var be;if(R==="`"){x++;var ve=m.indexOf("`",x);if(ve!==-1)return be=m.substring(x,ve),x=ve+1,D("name",be);throw x=P,{code:"S0105",stack:new Error().stack,position:x}}for(var we=x,Fe;;)if(Fe=m.charAt(we),we===P||`
|
|
2553
|
+
\r\v`.indexOf(Fe)>-1||Object.prototype.hasOwnProperty.call(l,Fe)){if(m.charAt(x)==="$")return be=m.substring(x+1,we),x=we,D("variable",be);switch(be=m.substring(x,we),x=we,be){case"or":case"in":case"and":return D("operator",be);case"true":return D("value",!0);case"false":return D("value",!1);case"null":return D("value",null);default:return x===P&&be===""?null:D("name",be)}}else we++};return _},b=function(m,x){var P,D,N={},_=[],W=function(){var g=[];P.id!=="(end)"&&g.push({type:P.type,value:P.value,position:P.position});for(var v=D();v!==null;)g.push(v),v=D();return g},R={nud:function(){var g={code:"S0211",token:this.value,position:this.position};if(x)return g.remaining=W(),g.type="error",_.push(g),g;throw g.stack=new Error().stack,g}},k=function(g,v){var X=N[g];return v=v||0,X?v>=X.lbp&&(X.lbp=v):(X=Object.create(R),X.id=X.value=g,X.lbp=v,N[g]=X),X},M=function(g){if(x){g.remaining=W(),_.push(g);var v=N["(error)"];return P=Object.create(v),P.error=g,P.type="(error)",P}else throw g.stack=new Error().stack,g},z=function(g,v){if(g&&P.id!==g){var X;P.id==="(end)"?X="S0203":X="S0202";var ke={code:X,position:P.position,token:P.value,value:g};return M(ke)}var Ue=D(v);if(Ue===null)return P=N["(end)"],P.position=m.length,P;var Ae=Ue.value,S=Ue.type,j;switch(S){case"name":case"variable":j=N["(name)"];break;case"operator":if(j=N[Ae],!j)return M({code:"S0204",stack:new Error().stack,position:Ue.position,token:Ae});break;case"string":case"number":case"value":j=N["(literal)"];break;case"regex":S="regex",j=N["(regex)"];break;default:return M({code:"S0205",stack:new Error().stack,position:Ue.position,token:Ae})}return P=Object.create(j),P.value=Ae,P.type=S,P.position=Ue.position,P},A=function(g){var v,X=P;for(z(null,!0),v=X.nud();g<P.lbp;)X=P,z(),v=X.led(v);return v},L=function(g){var v=k(g,0);v.nud=function(){return this}},B=function(g,v,X){var ke=v||l[g],Ue=k(g,ke);return Ue.led=X||function(Ae){return this.lhs=Ae,this.rhs=A(ke),this.type="binary",this},Ue},ue=function(g,v,X){var ke=k(g,v);return ke.led=X,ke},me=function(g,v){var X=k(g);return X.nud=v||function(){return this.expression=A(70),this.type="unary",this},X};L("(end)"),L("(name)"),L("(literal)"),L("(regex)"),k(":"),k(";"),k(","),k(")"),k("]"),k("}"),k(".."),B("."),B("+"),B("-"),B("*"),B("/"),B("%"),B("="),B("<"),B(">"),B("!="),B("<="),B(">="),B("&"),B("and"),B("or"),B("in"),L("and"),L("or"),L("in"),me("-"),B("~>"),B("??",l["??"],function(g){return this.type="condition",this.condition={type:"function",value:"(",procedure:{type:"variable",value:"exists"},arguments:[g]},this.then=g,this.else=A(0),this}),ue("(error)",10,function(g){return this.lhs=g,this.error=P.error,this.remaining=W(),this.type="error",this}),me("*",function(){return this.type="wildcard",this}),me("**",function(){return this.type="descendant",this}),me("%",function(){return this.type="parent",this}),B("(",l["("],function(g){if(this.procedure=g,this.type="function",this.arguments=[],P.id!==")")for(;P.type==="operator"&&P.id==="?"?(this.type="partial",this.arguments.push(P),z("?")):this.arguments.push(A(0)),P.id===",";)z(",");if(z(")",!0),g.type==="name"&&(g.value==="function"||g.value==="λ")){if(this.arguments.forEach(function(Ae,S){if(Ae.type!=="variable")return M({code:"S0208",stack:new Error().stack,position:Ae.position,token:Ae.value,value:S+1})}),this.type="lambda",P.id==="<"){for(var v=P.position,X=1,ke="<";X>0&&P.id!=="{"&&P.id!=="(end)";){var Ue=z();Ue.id===">"?X--:Ue.id==="<"&&X++,ke+=Ue.value}z(">");try{this.signature=a(ke)}catch(Ae){return Ae.position=v+Ae.offset,M(Ae)}}z("{"),this.body=A(0),z("}")}return this}),me("(",function(){for(var g=[];P.id!==")"&&(g.push(A(0)),P.id===";");)z(";");return z(")",!0),this.type="block",this.expressions=g,this}),me("[",function(){var g=[];if(P.id!=="]")for(;;){var v=A(0);if(P.id===".."){var X={type:"binary",value:"..",position:P.position,lhs:v};z(".."),X.rhs=A(0),v=X}if(g.push(v),P.id!==",")break;z(",")}return z("]",!0),this.expressions=g,this.type="unary",this}),B("[",l["["],function(g){if(P.id==="]"){for(var v=g;v&&v.type==="binary"&&v.value==="[";)v=v.lhs;return v.keepArray=!0,z("]"),g}else return this.lhs=g,this.rhs=A(l["]"]),this.type="binary",z("]",!0),this}),B("^",l["^"],function(g){z("(");for(var v=[];;){var X={descending:!1};if(P.id==="<"?z("<"):P.id===">"&&(X.descending=!0,z(">")),X.expression=A(0),v.push(X),P.id!==",")break;z(",")}return z(")"),this.lhs=g,this.rhs=v,this.type="binary",this});var be=function(g){var v=[];if(P.id!=="}")for(;;){var X=A(0);z(":");var ke=A(0);if(v.push([X,ke]),P.id!==",")break;z(",")}return z("}",!0),typeof g>"u"?(this.lhs=v,this.type="unary"):(this.lhs=g,this.rhs=v,this.type="binary"),this};me("{",be),B("{",l["{"],be),ue(":=",l[":="],function(g){return g.type!=="variable"?M({code:"S0212",stack:new Error().stack,position:g.position,token:g.value}):(this.lhs=g,this.rhs=A(l[":="]-1),this.type="binary",this)}),B("@",l["@"],function(g){return this.lhs=g,this.rhs=A(l["@"]),this.rhs.type!=="variable"?M({code:"S0214",stack:new Error().stack,position:this.rhs.position,token:"@"}):(this.type="binary",this)}),B("#",l["#"],function(g){return this.lhs=g,this.rhs=A(l["#"]),this.rhs.type!=="variable"?M({code:"S0214",stack:new Error().stack,position:this.rhs.position,token:"#"}):(this.type="binary",this)}),B("?",l["?"],function(g){return this.type="condition",this.condition=g,this.then=A(0),P.id===":"&&(z(":"),this.else=A(0)),this}),B("?:",l["?:"],function(g){return this.type="condition",this.condition=g,this.then=g,this.else=A(0),this}),me("|",function(){return this.type="transform",this.pattern=A(0),z("|"),this.update=A(0),P.id===","&&(z(","),this.delete=A(0)),z("|"),this});var ve=function(g){var v;if(g.type==="function"&&!g.predicate){var X={type:"lambda",thunk:!0,arguments:[],position:g.position};X.body=g,v=X}else if(g.type==="condition")g.then=ve(g.then),typeof g.else<"u"&&(g.else=ve(g.else)),v=g;else if(g.type==="block"){var ke=g.expressions.length;ke>0&&(g.expressions[ke-1]=ve(g.expressions[ke-1])),v=g}else v=g;return v},we=0,Fe=0,Ze=[],De=function(g,v){switch(g.type){case"name":case"wildcard":v.level--,v.level===0&&(typeof g.ancestor>"u"||(Ze[v.index].slot.label=g.ancestor.label),g.ancestor=v,g.tuple=!0);break;case"parent":v.level++;break;case"block":g.expressions.length>0&&(g.tuple=!0,v=De(g.expressions[g.expressions.length-1],v));break;case"path":g.tuple=!0;var X=g.steps.length-1;for(v=De(g.steps[X--],v);v.level>0&&X>=0;)v=De(g.steps[X--],v);break;default:throw{code:"S0217",token:g.type,position:g.position}}return v},Ce=function(g,v){if(typeof v.seekingParent<"u"||v.type==="parent"){var X=typeof v.seekingParent<"u"?v.seekingParent:[];v.type==="parent"&&X.push(v.slot),typeof g.seekingParent>"u"?g.seekingParent=X:Array.prototype.push.apply(g.seekingParent,X)}},it=function(g){var v=g.steps.length-1,X=g.steps[v],ke=typeof X.seekingParent<"u"?X.seekingParent:[];X.type==="parent"&&ke.push(X.slot);for(var Ue=0;Ue<ke.length;Ue++){var Ae=ke[Ue];for(v=g.steps.length-2;Ae.level>0;){if(v<0){typeof g.seekingParent>"u"?g.seekingParent=[Ae]:g.seekingParent.push(Ae);break}for(var S=g.steps[v--];v>=0&&S.focus&&g.steps[v].focus;)S=g.steps[v--];Ae=De(S,Ae)}}},ge=function(g){var v;switch(g.type){case"binary":switch(g.value){case".":var X=ge(g.lhs);X.type==="path"?v=X:v={type:"path",steps:[X]},X.type==="parent"&&(v.seekingParent=[X.slot]);var ke=ge(g.rhs);ke.type==="function"&&ke.procedure.type==="path"&&ke.procedure.steps.length===1&&ke.procedure.steps[0].type==="name"&&v.steps[v.steps.length-1].type==="function"&&(v.steps[v.steps.length-1].nextFunction=ke.procedure.steps[0].value),ke.type==="path"?Array.prototype.push.apply(v.steps,ke.steps):(typeof ke.predicate<"u"&&(ke.stages=ke.predicate,delete ke.predicate),v.steps.push(ke)),v.steps.filter(function(Q){if(Q.type==="number"||Q.type==="value")throw{code:"S0213",stack:new Error().stack,position:Q.position,value:Q.value};return Q.type==="string"}).forEach(function(Q){Q.type="name"}),v.steps.filter(function(Q){return Q.keepArray===!0}).length>0&&(v.keepSingletonArray=!0);var Ue=v.steps[0];Ue.type==="unary"&&Ue.value==="["&&(Ue.consarray=!0);var Ae=v.steps[v.steps.length-1];Ae.type==="unary"&&Ae.value==="["&&(Ae.consarray=!0),it(v);break;case"[":v=ge(g.lhs);var S=v,j="predicate";if(v.type==="path"&&(S=v.steps[v.steps.length-1],j="stages"),typeof S.group<"u")throw{code:"S0209",stack:new Error().stack,position:g.position};typeof S[j]>"u"&&(S[j]=[]);var V=ge(g.rhs);typeof V.seekingParent<"u"&&(V.seekingParent.forEach(Q=>{Q.level===1?De(S,Q):Q.level--}),Ce(S,V)),S[j].push({type:"filter",expr:V,position:g.position});break;case"{":if(v=ge(g.lhs),typeof v.group<"u")throw{code:"S0210",stack:new Error().stack,position:g.position};v.group={lhs:g.rhs.map(function(Q){return[ge(Q[0]),ge(Q[1])]}),position:g.position};break;case"^":v=ge(g.lhs),v.type!=="path"&&(v={type:"path",steps:[v]});var U={type:"sort",position:g.position};U.terms=g.rhs.map(function(Q){var ce=ge(Q.expression);return Ce(U,ce),{descending:Q.descending,expression:ce}}),v.steps.push(U),it(v);break;case":=":v={type:"bind",value:g.value,position:g.position},v.lhs=ge(g.lhs),v.rhs=ge(g.rhs),Ce(v,v.rhs);break;case"@":if(v=ge(g.lhs),S=v,v.type==="path"&&(S=v.steps[v.steps.length-1]),typeof S.stages<"u"||typeof S.predicate<"u")throw{code:"S0215",stack:new Error().stack,position:g.position};if(S.type==="sort")throw{code:"S0216",stack:new Error().stack,position:g.position};g.keepArray&&(S.keepArray=!0),S.focus=g.rhs.value,S.tuple=!0;break;case"#":v=ge(g.lhs),S=v,v.type==="path"?S=v.steps[v.steps.length-1]:(v={type:"path",steps:[v]},typeof S.predicate<"u"&&(S.stages=S.predicate,delete S.predicate)),typeof S.stages>"u"?S.index=g.rhs.value:S.stages.push({type:"index",value:g.rhs.value,position:g.position}),S.tuple=!0;break;case"~>":v={type:"apply",value:g.value,position:g.position},v.lhs=ge(g.lhs),v.rhs=ge(g.rhs),v.keepArray=v.lhs.keepArray||v.rhs.keepArray;break;default:v={type:g.type,value:g.value,position:g.position},v.lhs=ge(g.lhs),v.rhs=ge(g.rhs),Ce(v,v.lhs),Ce(v,v.rhs)}break;case"unary":v={type:g.type,value:g.value,position:g.position},g.value==="["?v.expressions=g.expressions.map(function(Q){var ce=ge(Q);return Ce(v,ce),ce}):g.value==="{"?v.lhs=g.lhs.map(function(Q){var ce=ge(Q[0]);Ce(v,ce);var Oe=ge(Q[1]);return Ce(v,Oe),[ce,Oe]}):(v.expression=ge(g.expression),g.value==="-"&&v.expression.type==="number"?(v=v.expression,v.value=-v.value):Ce(v,v.expression));break;case"function":case"partial":v={type:g.type,name:g.name,value:g.value,position:g.position},v.arguments=g.arguments.map(function(Q){var ce=ge(Q);return Ce(v,ce),ce}),v.procedure=ge(g.procedure);break;case"lambda":v={type:g.type,arguments:g.arguments,signature:g.signature,position:g.position};var Y=ge(g.body);v.body=ve(Y);break;case"condition":v={type:g.type,position:g.position},v.condition=ge(g.condition),Ce(v,v.condition),v.then=ge(g.then),Ce(v,v.then),typeof g.else<"u"&&(v.else=ge(g.else),Ce(v,v.else));break;case"transform":v={type:g.type,position:g.position},v.pattern=ge(g.pattern),v.update=ge(g.update),typeof g.delete<"u"&&(v.delete=ge(g.delete));break;case"block":v={type:g.type,position:g.position},v.expressions=g.expressions.map(function(Q){var ce=ge(Q);return Ce(v,ce),(ce.consarray||ce.type==="path"&&ce.steps[0].consarray)&&(v.consarray=!0),ce});break;case"name":v={type:"path",steps:[g]},g.keepArray&&(v.keepSingletonArray=!0);break;case"parent":v={type:"parent",slot:{label:"!"+we++,level:1,index:Fe++}},Ze.push(v);break;case"string":case"number":case"value":case"wildcard":case"descendant":case"variable":case"regex":v=g;break;case"operator":if(g.value==="and"||g.value==="or"||g.value==="in")g.type="name",v=ge(g);else if(g.value==="?")v=g;else throw{code:"S0201",stack:new Error().stack,position:g.position,token:g.value};break;case"error":v=g,g.lhs&&(v=ge(g.lhs));break;default:var H="S0206";g.id==="(end)"&&(H="S0207");var F={code:H,position:g.position,token:g.value};if(x)return _.push(F),{type:"error",error:F};throw F.stack=new Error().stack,F}return g.keepArray&&(v.keepArray=!0),v};D=h(m),z();var Be=A(0);if(P.id!=="(end)"){var lt={code:"S0201",position:P.position,token:P.value};M(lt)}if(Be=ge(Be),Be.type==="parent"||typeof Be.seekingParent<"u")throw{code:"S0217",token:Be.type,position:Be.position};return _.length>0&&(Be.errors=_),Be};return b})();n.exports=i},{"./signature":5}],5:[function(r,n,o){var a=r("./utils");const i=(()=>{var l={a:"arrays",b:"booleans",f:"functions",n:"numbers",o:"objects",s:"strings"};function u(h){for(var b=1,m=[],x={},P=x;b<h.length;){var D=h.charAt(b);if(D===":")break;var N=function(){m.push(x),P=x,x={}},_=function(B,ue,me,be){for(var ve=1,we=ue;we<B.length;)if(we++,D=B.charAt(we),D===be){if(ve--,ve===0)break}else D===me&&ve++;return we};switch(D){case"s":case"n":case"b":case"l":case"o":x.regex="["+D+"m]",x.type=D,N();break;case"a":x.regex="[asnblfom]",x.type=D,x.array=!0,N();break;case"f":x.regex="f",x.type=D,N();break;case"j":x.regex="[asnblom]",x.type=D,N();break;case"x":x.regex="[asnblfom]",x.type=D,N();break;case"-":P.context=!0,P.contextRegex=new RegExp(P.regex),P.regex+="?";break;case"?":case"+":P.regex+=D;break;case"(":var W=_(h,b,"(",")"),R=h.substring(b+1,W);if(R.indexOf("<")===-1)x.regex="["+R+"m]";else throw{code:"S0402",stack:new Error().stack,value:R,offset:b};x.type="("+R+")",b=W,N();break;case"<":if(P.type==="a"||P.type==="f"){var k=_(h,b,"<",">");P.subtype=h.substring(b+1,k),b=k}else throw{code:"S0401",stack:new Error().stack,value:P.type,offset:b};break}b++}var M="^"+m.map(function(B){return"("+B.regex+")"}).join("")+"$",z=new RegExp(M),A=function(B){var ue;if(a.isFunction(B))ue="f";else{var me=typeof B;switch(me){case"string":ue="s";break;case"number":ue="n";break;case"boolean":ue="b";break;case"object":B===null?ue="l":Array.isArray(B)?ue="a":ue="o";break;case"undefined":default:ue="m"}}return ue},L=function(B,ue){for(var me="^",be=0,ve=0;ve<m.length;ve++){me+=m[ve].regex;var we=ue.match(me);if(we===null)throw{code:"T0410",stack:new Error().stack,value:B[be],index:be+1};be=we[0].length}throw{code:"T0410",stack:new Error().stack,value:B[be],index:be+1}};return{definition:h,validate:function(B,ue){var me="";B.forEach(function(Fe){me+=A(Fe)});var be=z.exec(me);if(be){var ve=[],we=0;return m.forEach(function(Fe,Ze){var De=B[we],Ce=be[Ze+1];if(Ce==="")if(Fe.context&&Fe.contextRegex){var it=A(ue);if(Fe.contextRegex.test(it))ve.push(ue);else throw{code:"T0411",stack:new Error().stack,value:ue,index:we+1}}else ve.push(De),we++;else Ce.split("").forEach(function(ge){if(Fe.type==="a"){if(ge==="m")De=void 0;else{De=B[we];var Be=!0;if(typeof Fe.subtype<"u"){if(ge!=="a"&&Ce!==Fe.subtype)Be=!1;else if(ge==="a"&&De.length>0){var lt=A(De[0]);if(lt!==Fe.subtype.charAt(0))Be=!1;else{var g=De.filter(function(v){return A(v)!==lt});Be=g.length===0}}}if(!Be)throw{code:"T0412",stack:new Error().stack,value:De,index:we+1,type:l[Fe.subtype]};ge!=="a"&&(De=[De])}ve.push(De),we++}else ve.push(De),we++})}),ve}L(B,me)}}}return u})();n.exports=i},{"./utils":6}],6:[function(r,n,o){const a=(()=>{function i(k){var M=!1;if(typeof k=="number"&&(M=!isNaN(k),M&&!isFinite(k)))throw{code:"D1001",value:k,stack:new Error().stack};return M}function l(k){var M=!1;return Array.isArray(k)&&(M=k.filter(function(z){return typeof z!="string"}).length===0),M}function u(k){var M=!1;return Array.isArray(k)&&(M=k.filter(function(z){return!i(z)}).length===0),M}function h(){var k=[];return k.sequence=!0,arguments.length===1&&k.push(arguments[0]),k}function b(k){return k.sequence===!0&&Array.isArray(k)}function m(k){return k&&(k._jsonata_function===!0||k._jsonata_lambda===!0)||typeof k=="function"}function x(k){var M=typeof k.arity=="number"?k.arity:typeof k.implementation=="function"?k.implementation.length:typeof k.length=="number"?k.length:k.arguments.length;return M}function P(k){return k&&k._jsonata_lambda===!0}var D=(typeof Symbol=="function"?Symbol:{}).iterator||"@@iterator";function N(k){return typeof k=="object"&&k!==null&&D in k&&"next"in k&&typeof k.next=="function"}function _(k,M){if(k===M)return!0;if(typeof k=="object"&&typeof M=="object"&&k!==null&&M!==null){if(Array.isArray(k)&&Array.isArray(M)){if(k.length!==M.length)return!1;for(var z=0;z<k.length;z++)if(!_(k[z],M[z]))return!1;return!0}var A=Object.getOwnPropertyNames(k),L=Object.getOwnPropertyNames(M);if(A.length!==L.length)return!1;for(A=A.sort(),L=L.sort(),z=0;z<A.length;z++)if(A[z]!==L[z])return!1;for(z=0;z<A.length;z++){var B=A[z];if(!_(k[B],M[B]))return!1}return!0}return!1}function W(k){return typeof k=="object"&&k!==null&&"then"in k&&typeof k.then=="function"}function R(k){var M=[];for(let z of k)M.push(z);return M}return{isNumeric:i,isArrayOfStrings:l,isArrayOfNumbers:u,createSequence:h,isSequence:b,isFunction:m,isLambda:P,isIterable:N,getFunctionArity:x,isDeepEqual:_,stringToArray:R,isPromise:W}})();n.exports=a},{}]},{},[3])(3)})}(Or)),Or.exports}var ki=Pi();const Mn=Jn(ki),Si=async(e,t,r)=>{const{operand:n,operator:o,value:a}=e;if(o==="jsonata")try{const h=a.toString(),b=r();return await Mn(h).evaluate(b)}catch(h){return console.log("JSONata evaluation error:",h),!1}const i=t(n),l=String(i||"").toLowerCase().trim(),u=String(a||"").toLowerCase().trim();switch(o){case"==":case"===":return l===u;case"!=":case"!==":return l!==u;case">":const h=parseFloat(l),b=parseFloat(u);return!isNaN(h)&&!isNaN(b)&&h>b;case">=":const m=parseFloat(l),x=parseFloat(u);return!isNaN(m)&&!isNaN(x)&&m>=x;case"<":const P=parseFloat(l),D=parseFloat(u);return!isNaN(P)&&!isNaN(D)&&P<D;case"<=":const N=parseFloat(l),_=parseFloat(u);return!isNaN(N)&&!isNaN(_)&&N<=_;case"contains":case"includes":return l.includes(u);case"not_contains":case"not_includes":return!l.includes(u);case"starts_with":return l.startsWith(u);case"ends_with":return l.endsWith(u);case"exists":case"is_not_empty":return i!=null&&l!=="";case"not_exists":case"is_empty":return i==null||l==="";case"in":return Array.isArray(a)?a.some(k=>String(k).toLowerCase().trim()===l):String(a).split(",").map(k=>k.toLowerCase().trim()).includes(l);case"not_in":return Array.isArray(a)?!a.some(k=>String(k).toLowerCase().trim()===l):!String(a).split(",").map(k=>k.toLowerCase().trim()).includes(l);case"regex":case"matches":try{return new RegExp(String(a),"i").test(l)}catch{return console.warn("Invalid regex pattern:",a),!1}default:return console.warn("Unknown operator:",o),!1}},Oi=async(e,t,r)=>{if(!e||!e.conditions||e.conditions.length===0)return!0;for(const n of e.conditions){let o=!0;for(const a of n)if(!await Si(a,t,r)){o=!1;break}if(o)return!0}return!1},Ei=()=>{const{getPatientValue:e,getFullPatient:t}=pt();return{evaluateCondition:Ve.useMemo(()=>async n=>await Oi(n,e,t),[e,t])}},Vi=e=>{var r;const t=(r=e.props)==null?void 0:r.required;return typeof t=="boolean"?t:typeof t=="string"?Nn(t):!1},pn=(e,t)=>{var n;const r=e.filter(o=>o.shouldRender);for(const o of r)if(Vi(o)&&!Ai(o,t))return console.warn(`Required field is missing: ${o.name||((n=o.props)==null?void 0:n.propertyId)||o.id}`),!1;return!0},Ai=(e,t)=>{var o;const r=(o=e.props)==null?void 0:o.propertyId;if(!r)return!0;const n=t(r);return!(n==null||typeof n=="string"&&n.trim()===""||Array.isArray(n)&&n.length===0)},zn=({flow:e,isPreview:t,$bgColor:r,onSubmit:n})=>{const[o,a]=Ve.useState(0),[i,l]=Ve.useState([]),[u,h]=Ve.useState(!0),{evaluateCondition:b}=Ei(),{getFlowValue:m,getAllFlowData:x,setDisableSubmitValue:P,getDisableSubmitValue:D}=pt(),N=pt().getAllFlowData(),_=async ue=>{if(!ue)return[];const me=[];for(const be of ue){const ve=!be.condition||await b(be.condition),we=ve;me.push({...be,isVisible:ve,shouldRender:we,hasCondition:!!be.condition})}return me};Ve.useEffect(()=>{const ue=async()=>{var be;if(!e.flowForms){l([]),h(!1);return}const me=[];for(const ve of e.flowForms)if(!ve.condition||await b(ve.condition)){const Fe=(be=ve.form)!=null&&be.formComponents?await _(ve.form.formComponents):[];me.push({...ve,evaluatedFormComponents:Fe})}console.log("evaluateCondition and form components"),l(me),h(!1)};h(!0),ue()},[e.flowForms,b]),Ve.useEffect(()=>{if(!u&&i.length>0&&o<i.length){const ue=i[o],me=(ue==null?void 0:ue.evaluatedFormComponents)||[],be=pn(me,m);P(!be)}},[i,o,u,N,m,P]);const W=i.length,R=i[o],k=D();if(u)return O.jsx("div",{children:"Loading..."});if(!R)return null;const M=i[0]===R,z=o===W-1,A=(R==null?void 0:R.evaluatedFormComponents)||[],L=()=>{if(pn(A,m)){if(console.log("Form validation passed - proceeding to next step"),R.submit){n(x());return}o<W-1&&a(me=>me+1)}},B=()=>{o>0&&a(ue=>ue-1)};return O.jsxs(mo,{children:[O.jsxs($o,{$tracker:!0,id:"FormHeaderMobile",children:[O.jsx(Kr,{src:"https://media-s3-cdn.ivimhealth.com/assets/images/logos/ivim-black.svg"}),O.jsx(wo,{id:"FlowStepTrackerContainerMobile"}),!M&&O.jsx(go,{onClick:B})]}),O.jsx(bn,{currentStep:o+1,totalSteps:W,showOnDesktop:!0,showOnMobile:!1}),O.jsx(Lt,{$xSmall:!0,$bgColor:"white",$bRad:"10px 10px 0px 0px",children:O.jsxs(xo,{id:"FormHeaderDesktop",children:[!M&&O.jsx(yn,{onClick:B}),O.jsx(Kr,{src:"https://media-s3-cdn.ivimhealth.com/assets/images/logos/ivim-black.svg"})]})}),O.jsx(Qn,{$bgColor:R.bgColor,children:O.jsx(Ln,{flowForm:R,isPreview:t,evaluatedFormComponents:A})}),O.jsx(Lt,{$xSmall:!0,$bgColor:"white",$bRad:"0px 0px 10px 10px",children:O.jsx(yo,{$borderOff:!!R.bgColor,children:O.jsx(Xr,{type:"submit",onClick:L,$isLastStep:z,$radius:"41px",$margin:"0 0 15px 0",$btnStyle:"black",$disable:k,children:R.navButtonText?R.navButtonText:"Next"})})}),O.jsx(vo,{id:"BtnFlowBtnWrapperMobile",children:O.jsx(Xr,{type:"submit",onClick:L,$isLastStep:z,$radius:"41px",$margin:"0 0 15px 0",$btnStyle:"black",$disable:k,$allowDisableClick:!0,children:R.navButtonText?R.navButtonText:"Next"})})]})},Ti=async(e,t)=>{if(!e||typeof e!="string"||!t)return e;const r=/\{\{\s*([^}]+)\s*\}\}/g;let n=e,o;for(;(o=r.exec(e))!==null;){const a=o[0],i=o[1].trim();try{const l=await Mn(i).evaluate(t),u=l!=null?String(l):"";n=n.replace(a,u)}catch(l){console.warn(`Failed to process template expression: "${i}"`,l)}}return n},Rr=async(e,t)=>{if(!e||!t)return e;if(typeof e=="string")return await Ti(e,t);if(Array.isArray(e))return Promise.all(e.map(r=>Rr(r,t)));if(typeof e=="object"){const r={};for(const[n,o]of Object.entries(e))r[n]=await Rr(o,t);return r}return e},Di=async(e,t)=>{var r;if(!e||!t)return e;try{const n=JSON.parse(JSON.stringify(e));if(n.flowForms){for(const o of n.flowForms)if((r=o.form)!=null&&r.formComponents)for(const a of o.form.formComponents)a.props&&(a.props=await Rr(a.props,t))}return n}catch(n){return console.error("Error processing flow config templates:",n),e}},Lr=({data:e,config:t,isPreview:r,onSubmit:n})=>{const{setFlowValues:o,generateFormDataFromFlow:a,setPatientValues:i,getFullPatient:l}=pt(),[u,h]=Ve.useState(null),[b,m]=Ve.useState(!0),[x,P]=Ve.useState(!1),D=async(_,W=!1)=>{try{const R=await Di(t,_);if(h(R),W){const k=a(R);o(k)}}catch(R){if(console.error("Error processing config:",R),h(t),W){const k=a(t);o(k)}}};Ve.useEffect(()=>{(async()=>{m(!0),e&&i(e),await D(e,!0),P(!0),m(!1)})()},[e,t]);const N=l();return Ve.useEffect(()=>{x&&N&&D(N)},[N,t,x]),b||!u?O.jsx("div",{children:"Processing form..."}):O.jsx(zn,{flow:u,isPreview:r,onSubmit:n})},ji={lightPalettePine120:"#5A6859",darkGreenTint:"#7B867A",lightGreen:"#D9E7CE",lightGreenTint:"#ECF3E7",paleLeaf:"#C5D5B9",brandDarkGray:"#32312D",mediumGray:"#474642",gray:"#706F6C",lightGray:"#ADADAB",ltGray:"#D2D2D2",lightGrayTint:"#F5F5F5",brandTan:"#C2925B",neutral50:"#CAC8BE",neutralTint1:"#E5E3D7",neutralTint2:"#EAE9DF",neutralTint3:"#FAF9F7",transparent:"transparent",errorRed:"#DD1818",purple:"#8A61AF",ltPurple:"#E3D9EC",blue:"#6186AF",ltBlue:"#C8E2FE",focus:"#b17bb2",xltGray:"#E1E2E7",white:"#FFFFFF",transp:"transparent",primary:"#32312D",ivimGreen:"#85AF61",success:"#6F9351",pine120:"#5A6859",pine100:"#7B867A",pine60:"#ACB3AC",neutral0:"#FFFFFF",neutral20:"#F5F4F2",neutral30:"#F1EFED",neutral40:"#D8D6CA",gray60:"#ADADAB",danger:"#B94E36"},Fi={playfair:'"Playfair Display", serif',poppins:"Poppins, sans-serif",karmina:"Karmina, serif"},Ri={xs:"only screen and (min-width: 400px)",sm:"only screen and (min-width: 576px)",md:"only screen and (min-width: 766px)",lg:"only screen and (min-width: 992px)",xl:"only screen and (min-width: 1200px)"},_i={colors:ji,fonts:Fi,mediaQuery:Ri},Gn=ua({reducer:{[fr.name]:fr.reducer,[dr.name]:dr.reducer}}),Ii=E.div`
|
|
2477
2554
|
&&{
|
|
2478
2555
|
width: 100%;
|
|
2479
2556
|
min-height: calc(100vh - 100px);
|
|
2480
|
-
padding: 28px 0px 100px;
|
|
2481
2557
|
position: relative;
|
|
2482
2558
|
background-color: ${e=>e.theme.colors.neutral30};
|
|
2483
2559
|
${e=>e.$isPreview&&`
|
|
2484
2560
|
// max-width: 600px;
|
|
2485
2561
|
`}
|
|
2486
2562
|
@media ${e=>e.theme.mediaQuery.md}{
|
|
2487
|
-
padding: 45px 0px 28px;
|
|
2563
|
+
// padding: 45px 0px 28px;
|
|
2488
2564
|
min-height: 100vh;
|
|
2489
|
-
|
|
2565
|
+
padding: 28px 0px 100px;
|
|
2566
|
+
& ${Lt} {
|
|
2490
2567
|
padding-top: 0px;
|
|
2491
2568
|
}
|
|
2492
2569
|
}
|
|
2493
2570
|
}
|
|
2494
|
-
`,
|
|
2571
|
+
`,Ni=E.div`
|
|
2495
2572
|
width: 100%;
|
|
2496
|
-
max-width: 600px;
|
|
2573
|
+
// max-width: 600px;
|
|
2497
2574
|
margin: 0 auto;
|
|
2498
2575
|
position: relative;
|
|
2499
|
-
`,
|
|
2576
|
+
`,Br=({$isPreview:e,children:t})=>O.jsx(Rt.Provider,{store:Gn,children:O.jsx(E.ThemeProvider,{theme:_i,children:O.jsx(Ii,{$isPreview:e,children:O.jsx(Ni,{children:t})})})}),Ln=({flowForm:e,isPreview:t,evaluatedFormComponents:r})=>!e||!e.form?null:O.jsx(qn,{form:e.form,isPreview:t,evaluatedFormComponents:r}),qr=class qr{static register(t,r){this.registry[t]=r}static getComponent(t){return this.registry[t]||null}static hasComponent(t){return t in this.registry}static getRegisteredComponents(){return Object.keys(this.registry)}};qr.registry={...Ci};let pr=qr;const Bn=({formComponent:e,isPreview:t,boundary:r,isVisible:n=!0})=>{var a;const o=i=>{const l=i.componentId;if(!l)return O.jsx(hr,{errors:["Missing componentId"]});const u=pr.getComponent(l);return u?O.jsx(u,{formComponent:i}):O.jsx(hr,{errors:[`Unknown component type: ${l}`]})};return O.jsx(mr,{children:O.jsx(Kt,{$span:"12",children:O.jsx(fo,{$margin:(a=e.props)!=null&&a.margin?e.props.margin:r!=="first"?"25px 0px 0px":"0px",children:o(e)})})})},qn=({form:e,isPreview:t,evaluatedFormComponents:r})=>{const n=t?r:r.filter(a=>a.shouldRender),o=n.length;return O.jsx(O.Fragment,{children:n.map((a,i)=>{const l=i===0?"first":o===i+1?"last":null,u=a.isVisible;return O.jsx(Bn,{formComponent:a,isPreview:t,boundary:l,isVisible:u},a.id)})})},Ui=E.form`
|
|
2500
2577
|
padding: 20px 0px 20px;
|
|
2501
|
-
`,Bn=({children:e,$bgColor:t})=>D.jsx(zt,{$overflow:"hidden",$position:"static",$xSmall:!0,id:"MainFlowContainer",$bgColor:t||"white",$bRad:"0px",$marginBottom:"0px",$marginBottomMd:"0px",children:D.jsx(Vi,{children:e})});function Ai(e){const{onError:t,on401:r,on403:n,on400:o,on500:a,addHeaders:i,onRequest:l,onResponse:u,modifyRequest:h}=e,b=Z.create();return b.interceptors.request.use(g=>(g.headers||(g.headers={}),typeof i=="function"&&Object.entries(i(g)||{}).forEach(([x,w])=>g.headers[x]=w),typeof l=="function"&&l(g),typeof h=="function"?h(g):g)),b.interceptors.response.use(g=>(typeof u=="function"&&u(g),g),g=>{var w,S,I,M;const x={config:{}};if(typeof t=="function"&&t((g==null?void 0:g.response)||x),((w=g==null?void 0:g.response)==null?void 0:w.status)===400)typeof o=="function"&&o((g==null?void 0:g.response)||x);else if(((S=g==null?void 0:g.response)==null?void 0:S.status)===401)typeof r=="function"&&r((g==null?void 0:g.response)||x);else if(((I=g==null?void 0:g.response)==null?void 0:I.status)===403)typeof n=="function"&&n((g==null?void 0:g.response)||x);else if(((M=g==null?void 0:g.response)==null?void 0:M.status)===500)typeof a=="function"&&a((g==null?void 0:g.response)||x);else throw g}),b}function Ti(e,t){const{apiUrl:r}=t;return new e({basePath:r},r,Ai(t))}const te="http://localhost".replace(/\/+$/,"");class Di{constructor(t,r=te,n=Z){this.basePath=r,this.axios=n,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}}class Ri extends Error{constructor(t,r){super(r),this.field=t,this.name="RequiredError"}}const ne="https://example.com",K=function(e,t,r){if(r==null)throw new Ri(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function Fr(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(n=>Fr(e,n,r)):Object.keys(t).forEach(n=>Fr(e,t[n],`${r}${r!==""?".":""}${n}`)):e.has(r)?e.append(r,t):e.set(r,t))}const oe=function(e,...t){const r=new URLSearchParams(e.search);Fr(r,t),e.search=r.toString()},Me=function(e,t,r){const n=typeof e!="string";return(n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n)?JSON.stringify(e!==void 0?e:{}):e||""},ae=function(e){return e.pathname+e.search+e.hash},ie=function(e,t,r,n){return(o=t,a=r)=>{const i={...e.options,url:((n==null?void 0:n.basePath)||a)+e.url};return o.request(i)}},ji=function(e){return{abTestControllerDelete:async(t,r={})=>{K("abTestControllerDelete","id",t);const n="/api/ab-test/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},abTestControllerGet:async(t,r={})=>{K("abTestControllerGet","id",t);const n="/api/ab-test/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},abTestControllerGetBySlug:async(t,r={})=>{K("abTestControllerGetBySlug","slug",t);const n="/api/ab-test/slug/{slug}".replace("{slug}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},abTestControllerIndex:async(t={})=>{const r="/api/ab-test",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},abTestControllerPatch:async(t,r,n={})=>{K("abTestControllerPatch","id",t),K("abTestControllerPatch","abTest",r);const o="/api/ab-test/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},abTestControllerPost:async(t,r={})=>{K("abTestControllerPost","abTest",t);const n="/api/ab-test",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},abTestSearchControllerPost:async(t,r,n,o={})=>{K("abTestSearchControllerPost","abTest",t);const a="/api/ab-test-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let g=l&&l.headers?l.headers:{};return u.headers={...h,...g,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},componentControllerDelete:async(t,r={})=>{K("componentControllerDelete","id",t);const n="/api/component/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},componentControllerGet:async(t,r={})=>{K("componentControllerGet","id",t);const n="/api/component/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},componentControllerIndex:async(t={})=>{const r="/api/component",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},componentControllerPatch:async(t,r,n={})=>{K("componentControllerPatch","id",t),K("componentControllerPatch","component",r);const o="/api/component/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},componentControllerPost:async(t,r={})=>{K("componentControllerPost","component",t);const n="/api/component",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},componentSearchControllerPost:async(t,r,n,o={})=>{K("componentSearchControllerPost","component",t);const a="/api/component-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let g=l&&l.headers?l.headers:{};return u.headers={...h,...g,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},conditionControllerDelete:async(t,r={})=>{K("conditionControllerDelete","id",t);const n="/api/condition/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},conditionControllerGet:async(t,r={})=>{K("conditionControllerGet","id",t);const n="/api/condition/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},conditionControllerIndex:async(t={})=>{const r="/api/condition",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},conditionControllerPatch:async(t,r,n={})=>{K("conditionControllerPatch","id",t),K("conditionControllerPatch","condition",r);const o="/api/condition/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},conditionControllerPost:async(t,r={})=>{K("conditionControllerPost","condition",t);const n="/api/condition",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},conditionSearchControllerPost:async(t,r,n,o={})=>{K("conditionSearchControllerPost","condition",t);const a="/api/condition-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let g=l&&l.headers?l.headers:{};return u.headers={...h,...g,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},flowControllerCopy:async(t,r={})=>{K("flowControllerCopy","flowCopyDto",t);const n="/api/flow/copy",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},flowControllerDelete:async(t,r={})=>{K("flowControllerDelete","id",t);const n="/api/flow/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},flowControllerGet:async(t,r={})=>{K("flowControllerGet","id",t);const n="/api/flow/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},flowControllerGetBySlug:async(t,r,n={})=>{K("flowControllerGetBySlug","slug",t),K("flowControllerGetBySlug","version",r);const o="/api/flow/slug/{slug}".replace("{slug}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},u={},h={};r!==void 0&&(h.version=r),oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},{url:ae(a),options:l}},flowControllerGetFull:async(t,r={})=>{K("flowControllerGetFull","id",t);const n="/api/flow/{id}/full".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},flowControllerIndex:async(t={})=>{const r="/api/flow",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},flowControllerPatch:async(t,r,n={})=>{K("flowControllerPatch","id",t),K("flowControllerPatch","flow",r);const o="/api/flow/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},flowControllerPost:async(t,r={})=>{K("flowControllerPost","flow",t);const n="/api/flow",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},flowFormControllerDelete:async(t,r,n={})=>{K("flowFormControllerDelete","flowId",t),K("flowFormControllerDelete","formId",r);const o="/api/flow-form/{flowId}/{formId}".replace("{flowId}",encodeURIComponent(String(t))).replace("{formId}",encodeURIComponent(String(r))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"DELETE",...i,...n},u={};oe(a,{});let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},{url:ae(a),options:l}},flowFormControllerGet:async(t,r,n={})=>{K("flowFormControllerGet","flowId",t),K("flowFormControllerGet","formId",r);const o="/api/flow-form/{flowId}/{formId}".replace("{flowId}",encodeURIComponent(String(t))).replace("{formId}",encodeURIComponent(String(r))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},u={};oe(a,{});let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},{url:ae(a),options:l}},flowFormControllerIndex:async(t={})=>{const r="/api/flow-form",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},flowFormControllerPatch:async(t,r,n,o={})=>{K("flowFormControllerPatch","flowId",t),K("flowFormControllerPatch","formId",r),K("flowFormControllerPatch","flowForm",n);const a="/api/flow-form/{flowId}/{formId}".replace("{flowId}",encodeURIComponent(String(t))).replace("{formId}",encodeURIComponent(String(r))),i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"PATCH",...l,...o},h={},b={};h["Content-Type"]="application/json",oe(i,b);let g=l&&l.headers?l.headers:{};return u.headers={...h,...g,...o.headers},u.data=Me(n,u,e),{url:ae(i),options:u}},flowFormControllerPost:async(t,r={})=>{K("flowFormControllerPost","flowForm",t);const n="/api/flow-form",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},flowFormSearchControllerPost:async(t,r,n,o={})=>{K("flowFormSearchControllerPost","flowForm",t);const a="/api/flow-form-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let g=l&&l.headers?l.headers:{};return u.headers={...h,...g,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},flowSearchControllerPost:async(t,r,n,o={})=>{K("flowSearchControllerPost","flow",t);const a="/api/flow-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let g=l&&l.headers?l.headers:{};return u.headers={...h,...g,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},formComponentControllerDelete:async(t,r={})=>{K("formComponentControllerDelete","id",t);const n="/api/form-component/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},formComponentControllerGetById:async(t,r={})=>{K("formComponentControllerGetById","id",t);const n="/api/form-component/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},formComponentControllerIndex:async(t={})=>{const r="/api/form-component",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},formComponentControllerPatch:async(t,r,n={})=>{K("formComponentControllerPatch","id",t),K("formComponentControllerPatch","formComponent",r);const o="/api/form-component/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},formComponentControllerPost:async(t,r={})=>{K("formComponentControllerPost","formComponent",t);const n="/api/form-component",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},formComponentSearchControllerPost:async(t,r,n,o={})=>{K("formComponentSearchControllerPost","formComponent",t);const a="/api/form-component-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let g=l&&l.headers?l.headers:{};return u.headers={...h,...g,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},formControllerCopy:async(t,r={})=>{K("formControllerCopy","formCopyDto",t);const n="/api/form/copy",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},formControllerDelete:async(t,r={})=>{K("formControllerDelete","id",t);const n="/api/form/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},formControllerGet:async(t,r={})=>{K("formControllerGet","id",t);const n="/api/form/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},formControllerIndex:async(t={})=>{const r="/api/form",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},formControllerPatch:async(t,r,n={})=>{K("formControllerPatch","id",t),K("formControllerPatch","form",r);const o="/api/form/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},formControllerPost:async(t,r={})=>{K("formControllerPost","form",t);const n="/api/form",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},formSearchControllerPost:async(t,r,n,o={})=>{K("formSearchControllerPost","form",t);const a="/api/form-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let g=l&&l.headers?l.headers:{};return u.headers={...h,...g,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},healthControllerGet:async(t={})=>{const r="/api/health",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},oidcConfigControllerGetClient:async(t,r={})=>{K("oidcConfigControllerGetClient","redirectUri",t);const n="/api/oidc-config/client/{redirectUri}".replace("{redirectUri}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},oidcConfigControllerGetEntra:async(t={})=>{const r="/api/oidc-config/entra",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},oidcCookieControllerPost:async(t,r,n={})=>{K("oidcCookieControllerPost","origin",t),K("oidcCookieControllerPost","tokensDto",r);const o="/api/oidc-cookie/{origin}".replace("{origin}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},patientControllerDelete:async(t,r={})=>{K("patientControllerDelete","id",t);const n="/api/patient/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},patientControllerGet:async(t,r={})=>{K("patientControllerGet","id",t);const n="/api/patient/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},patientControllerIndex:async(t={})=>{const r="/api/patient",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},patientControllerPatch:async(t,r,n={})=>{K("patientControllerPatch","id",t),K("patientControllerPatch","patient",r);const o="/api/patient/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},patientControllerPost:async(t,r={})=>{K("patientControllerPost","patient",t);const n="/api/patient",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},patientSearchControllerPost:async(t,r,n,o={})=>{K("patientSearchControllerPost","patient",t);const a="/api/patient-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let g=l&&l.headers?l.headers:{};return u.headers={...h,...g,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},propertyControllerDelete:async(t,r={})=>{K("propertyControllerDelete","id",t);const n="/api/property/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},propertyControllerGet:async(t,r={})=>{K("propertyControllerGet","id",t);const n="/api/property/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},propertyControllerIndex:async(t={})=>{const r="/api/property",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},propertyControllerPatch:async(t,r,n={})=>{K("propertyControllerPatch","id",t),K("propertyControllerPatch","property",r);const o="/api/property/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},propertyControllerPost:async(t,r={})=>{K("propertyControllerPost","property",t);const n="/api/property",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},propertySearchControllerPost:async(t,r,n,o={})=>{K("propertySearchControllerPost","property",t);const a="/api/property-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let g=l&&l.headers?l.headers:{};return u.headers={...h,...g,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},tokenValidationControllerPost:async(t,r={})=>{K("tokenValidationControllerPost","valueDto",t);const n="/api/token-validation",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}}}},se=function(e){const t=ji(e);return{async abTestControllerDelete(r,n){const o=await t.abTestControllerDelete(r,n);return ie(o,Z,te,e)},async abTestControllerGet(r,n){const o=await t.abTestControllerGet(r,n);return ie(o,Z,te,e)},async abTestControllerGetBySlug(r,n){const o=await t.abTestControllerGetBySlug(r,n);return ie(o,Z,te,e)},async abTestControllerIndex(r){const n=await t.abTestControllerIndex(r);return ie(n,Z,te,e)},async abTestControllerPatch(r,n,o){const a=await t.abTestControllerPatch(r,n,o);return ie(a,Z,te,e)},async abTestControllerPost(r,n){const o=await t.abTestControllerPost(r,n);return ie(o,Z,te,e)},async abTestSearchControllerPost(r,n,o,a){const i=await t.abTestSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async componentControllerDelete(r,n){const o=await t.componentControllerDelete(r,n);return ie(o,Z,te,e)},async componentControllerGet(r,n){const o=await t.componentControllerGet(r,n);return ie(o,Z,te,e)},async componentControllerIndex(r){const n=await t.componentControllerIndex(r);return ie(n,Z,te,e)},async componentControllerPatch(r,n,o){const a=await t.componentControllerPatch(r,n,o);return ie(a,Z,te,e)},async componentControllerPost(r,n){const o=await t.componentControllerPost(r,n);return ie(o,Z,te,e)},async componentSearchControllerPost(r,n,o,a){const i=await t.componentSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async conditionControllerDelete(r,n){const o=await t.conditionControllerDelete(r,n);return ie(o,Z,te,e)},async conditionControllerGet(r,n){const o=await t.conditionControllerGet(r,n);return ie(o,Z,te,e)},async conditionControllerIndex(r){const n=await t.conditionControllerIndex(r);return ie(n,Z,te,e)},async conditionControllerPatch(r,n,o){const a=await t.conditionControllerPatch(r,n,o);return ie(a,Z,te,e)},async conditionControllerPost(r,n){const o=await t.conditionControllerPost(r,n);return ie(o,Z,te,e)},async conditionSearchControllerPost(r,n,o,a){const i=await t.conditionSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async flowControllerCopy(r,n){const o=await t.flowControllerCopy(r,n);return ie(o,Z,te,e)},async flowControllerDelete(r,n){const o=await t.flowControllerDelete(r,n);return ie(o,Z,te,e)},async flowControllerGet(r,n){const o=await t.flowControllerGet(r,n);return ie(o,Z,te,e)},async flowControllerGetBySlug(r,n,o){const a=await t.flowControllerGetBySlug(r,n,o);return ie(a,Z,te,e)},async flowControllerGetFull(r,n){const o=await t.flowControllerGetFull(r,n);return ie(o,Z,te,e)},async flowControllerIndex(r){const n=await t.flowControllerIndex(r);return ie(n,Z,te,e)},async flowControllerPatch(r,n,o){const a=await t.flowControllerPatch(r,n,o);return ie(a,Z,te,e)},async flowControllerPost(r,n){const o=await t.flowControllerPost(r,n);return ie(o,Z,te,e)},async flowFormControllerDelete(r,n,o){const a=await t.flowFormControllerDelete(r,n,o);return ie(a,Z,te,e)},async flowFormControllerGet(r,n,o){const a=await t.flowFormControllerGet(r,n,o);return ie(a,Z,te,e)},async flowFormControllerIndex(r){const n=await t.flowFormControllerIndex(r);return ie(n,Z,te,e)},async flowFormControllerPatch(r,n,o,a){const i=await t.flowFormControllerPatch(r,n,o,a);return ie(i,Z,te,e)},async flowFormControllerPost(r,n){const o=await t.flowFormControllerPost(r,n);return ie(o,Z,te,e)},async flowFormSearchControllerPost(r,n,o,a){const i=await t.flowFormSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async flowSearchControllerPost(r,n,o,a){const i=await t.flowSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async formComponentControllerDelete(r,n){const o=await t.formComponentControllerDelete(r,n);return ie(o,Z,te,e)},async formComponentControllerGetById(r,n){const o=await t.formComponentControllerGetById(r,n);return ie(o,Z,te,e)},async formComponentControllerIndex(r){const n=await t.formComponentControllerIndex(r);return ie(n,Z,te,e)},async formComponentControllerPatch(r,n,o){const a=await t.formComponentControllerPatch(r,n,o);return ie(a,Z,te,e)},async formComponentControllerPost(r,n){const o=await t.formComponentControllerPost(r,n);return ie(o,Z,te,e)},async formComponentSearchControllerPost(r,n,o,a){const i=await t.formComponentSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async formControllerCopy(r,n){const o=await t.formControllerCopy(r,n);return ie(o,Z,te,e)},async formControllerDelete(r,n){const o=await t.formControllerDelete(r,n);return ie(o,Z,te,e)},async formControllerGet(r,n){const o=await t.formControllerGet(r,n);return ie(o,Z,te,e)},async formControllerIndex(r){const n=await t.formControllerIndex(r);return ie(n,Z,te,e)},async formControllerPatch(r,n,o){const a=await t.formControllerPatch(r,n,o);return ie(a,Z,te,e)},async formControllerPost(r,n){const o=await t.formControllerPost(r,n);return ie(o,Z,te,e)},async formSearchControllerPost(r,n,o,a){const i=await t.formSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async healthControllerGet(r){const n=await t.healthControllerGet(r);return ie(n,Z,te,e)},async oidcConfigControllerGetClient(r,n){const o=await t.oidcConfigControllerGetClient(r,n);return ie(o,Z,te,e)},async oidcConfigControllerGetEntra(r){const n=await t.oidcConfigControllerGetEntra(r);return ie(n,Z,te,e)},async oidcCookieControllerPost(r,n,o){const a=await t.oidcCookieControllerPost(r,n,o);return ie(a,Z,te,e)},async patientControllerDelete(r,n){const o=await t.patientControllerDelete(r,n);return ie(o,Z,te,e)},async patientControllerGet(r,n){const o=await t.patientControllerGet(r,n);return ie(o,Z,te,e)},async patientControllerIndex(r){const n=await t.patientControllerIndex(r);return ie(n,Z,te,e)},async patientControllerPatch(r,n,o){const a=await t.patientControllerPatch(r,n,o);return ie(a,Z,te,e)},async patientControllerPost(r,n){const o=await t.patientControllerPost(r,n);return ie(o,Z,te,e)},async patientSearchControllerPost(r,n,o,a){const i=await t.patientSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async propertyControllerDelete(r,n){const o=await t.propertyControllerDelete(r,n);return ie(o,Z,te,e)},async propertyControllerGet(r,n){const o=await t.propertyControllerGet(r,n);return ie(o,Z,te,e)},async propertyControllerIndex(r){const n=await t.propertyControllerIndex(r);return ie(n,Z,te,e)},async propertyControllerPatch(r,n,o){const a=await t.propertyControllerPatch(r,n,o);return ie(a,Z,te,e)},async propertyControllerPost(r,n){const o=await t.propertyControllerPost(r,n);return ie(o,Z,te,e)},async propertySearchControllerPost(r,n,o,a){const i=await t.propertySearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async tokenValidationControllerPost(r,n){const o=await t.tokenValidationControllerPost(r,n);return ie(o,Z,te,e)}}};class Fi extends Di{abTestControllerDelete(t,r){return se(this.configuration).abTestControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}abTestControllerGet(t,r){return se(this.configuration).abTestControllerGet(t,r).then(n=>n(this.axios,this.basePath))}abTestControllerGetBySlug(t,r){return se(this.configuration).abTestControllerGetBySlug(t,r).then(n=>n(this.axios,this.basePath))}abTestControllerIndex(t){return se(this.configuration).abTestControllerIndex(t).then(r=>r(this.axios,this.basePath))}abTestControllerPatch(t,r,n){return se(this.configuration).abTestControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}abTestControllerPost(t,r){return se(this.configuration).abTestControllerPost(t,r).then(n=>n(this.axios,this.basePath))}abTestSearchControllerPost(t,r,n,o){return se(this.configuration).abTestSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}componentControllerDelete(t,r){return se(this.configuration).componentControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}componentControllerGet(t,r){return se(this.configuration).componentControllerGet(t,r).then(n=>n(this.axios,this.basePath))}componentControllerIndex(t){return se(this.configuration).componentControllerIndex(t).then(r=>r(this.axios,this.basePath))}componentControllerPatch(t,r,n){return se(this.configuration).componentControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}componentControllerPost(t,r){return se(this.configuration).componentControllerPost(t,r).then(n=>n(this.axios,this.basePath))}componentSearchControllerPost(t,r,n,o){return se(this.configuration).componentSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}conditionControllerDelete(t,r){return se(this.configuration).conditionControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}conditionControllerGet(t,r){return se(this.configuration).conditionControllerGet(t,r).then(n=>n(this.axios,this.basePath))}conditionControllerIndex(t){return se(this.configuration).conditionControllerIndex(t).then(r=>r(this.axios,this.basePath))}conditionControllerPatch(t,r,n){return se(this.configuration).conditionControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}conditionControllerPost(t,r){return se(this.configuration).conditionControllerPost(t,r).then(n=>n(this.axios,this.basePath))}conditionSearchControllerPost(t,r,n,o){return se(this.configuration).conditionSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}flowControllerCopy(t,r){return se(this.configuration).flowControllerCopy(t,r).then(n=>n(this.axios,this.basePath))}flowControllerDelete(t,r){return se(this.configuration).flowControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}flowControllerGet(t,r){return se(this.configuration).flowControllerGet(t,r).then(n=>n(this.axios,this.basePath))}flowControllerGetBySlug(t,r,n){return se(this.configuration).flowControllerGetBySlug(t,r,n).then(o=>o(this.axios,this.basePath))}flowControllerGetFull(t,r){return se(this.configuration).flowControllerGetFull(t,r).then(n=>n(this.axios,this.basePath))}flowControllerIndex(t){return se(this.configuration).flowControllerIndex(t).then(r=>r(this.axios,this.basePath))}flowControllerPatch(t,r,n){return se(this.configuration).flowControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}flowControllerPost(t,r){return se(this.configuration).flowControllerPost(t,r).then(n=>n(this.axios,this.basePath))}flowFormControllerDelete(t,r,n){return se(this.configuration).flowFormControllerDelete(t,r,n).then(o=>o(this.axios,this.basePath))}flowFormControllerGet(t,r,n){return se(this.configuration).flowFormControllerGet(t,r,n).then(o=>o(this.axios,this.basePath))}flowFormControllerIndex(t){return se(this.configuration).flowFormControllerIndex(t).then(r=>r(this.axios,this.basePath))}flowFormControllerPatch(t,r,n,o){return se(this.configuration).flowFormControllerPatch(t,r,n,o).then(a=>a(this.axios,this.basePath))}flowFormControllerPost(t,r){return se(this.configuration).flowFormControllerPost(t,r).then(n=>n(this.axios,this.basePath))}flowFormSearchControllerPost(t,r,n,o){return se(this.configuration).flowFormSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}flowSearchControllerPost(t,r,n,o){return se(this.configuration).flowSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}formComponentControllerDelete(t,r){return se(this.configuration).formComponentControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}formComponentControllerGetById(t,r){return se(this.configuration).formComponentControllerGetById(t,r).then(n=>n(this.axios,this.basePath))}formComponentControllerIndex(t){return se(this.configuration).formComponentControllerIndex(t).then(r=>r(this.axios,this.basePath))}formComponentControllerPatch(t,r,n){return se(this.configuration).formComponentControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}formComponentControllerPost(t,r){return se(this.configuration).formComponentControllerPost(t,r).then(n=>n(this.axios,this.basePath))}formComponentSearchControllerPost(t,r,n,o){return se(this.configuration).formComponentSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}formControllerCopy(t,r){return se(this.configuration).formControllerCopy(t,r).then(n=>n(this.axios,this.basePath))}formControllerDelete(t,r){return se(this.configuration).formControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}formControllerGet(t,r){return se(this.configuration).formControllerGet(t,r).then(n=>n(this.axios,this.basePath))}formControllerIndex(t){return se(this.configuration).formControllerIndex(t).then(r=>r(this.axios,this.basePath))}formControllerPatch(t,r,n){return se(this.configuration).formControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}formControllerPost(t,r){return se(this.configuration).formControllerPost(t,r).then(n=>n(this.axios,this.basePath))}formSearchControllerPost(t,r,n,o){return se(this.configuration).formSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}healthControllerGet(t){return se(this.configuration).healthControllerGet(t).then(r=>r(this.axios,this.basePath))}oidcConfigControllerGetClient(t,r){return se(this.configuration).oidcConfigControllerGetClient(t,r).then(n=>n(this.axios,this.basePath))}oidcConfigControllerGetEntra(t){return se(this.configuration).oidcConfigControllerGetEntra(t).then(r=>r(this.axios,this.basePath))}oidcCookieControllerPost(t,r,n){return se(this.configuration).oidcCookieControllerPost(t,r,n).then(o=>o(this.axios,this.basePath))}patientControllerDelete(t,r){return se(this.configuration).patientControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}patientControllerGet(t,r){return se(this.configuration).patientControllerGet(t,r).then(n=>n(this.axios,this.basePath))}patientControllerIndex(t){return se(this.configuration).patientControllerIndex(t).then(r=>r(this.axios,this.basePath))}patientControllerPatch(t,r,n){return se(this.configuration).patientControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}patientControllerPost(t,r){return se(this.configuration).patientControllerPost(t,r).then(n=>n(this.axios,this.basePath))}patientSearchControllerPost(t,r,n,o){return se(this.configuration).patientSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}propertyControllerDelete(t,r){return se(this.configuration).propertyControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}propertyControllerGet(t,r){return se(this.configuration).propertyControllerGet(t,r).then(n=>n(this.axios,this.basePath))}propertyControllerIndex(t){return se(this.configuration).propertyControllerIndex(t).then(r=>r(this.axios,this.basePath))}propertyControllerPatch(t,r,n){return se(this.configuration).propertyControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}propertyControllerPost(t,r){return se(this.configuration).propertyControllerPost(t,r).then(n=>n(this.axios,this.basePath))}propertySearchControllerPost(t,r,n,o){return se(this.configuration).propertySearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}tokenValidationControllerPost(t,r){return se(this.configuration).tokenValidationControllerPost(t,r).then(n=>n(this.axios,this.basePath))}}function _i(e,t=""){return{api:t||(!location.port||location.port==="80"?"":e),ui:location.origin}}const Qn=e=>{const t=_i("http://localhost:3129",e);return Ti(Fi,{apiUrl:t.api})},Ii=({dataFetcher:e=()=>{},children:t,configFetcher:r,isPreview:n=!1,onSubmit:o=()=>Promise.resolve(),formidavimHost:a,version:i="1.0",flowName:l=""})=>{const u=Qn(a),[h,b]=Ne.useState({config:null,data:null}),[g,x]=Ne.useState(!0);return Ne.useEffect(()=>{Promise.all([r?r():u.flowControllerGetBySlug(l,i).then(({data:w})=>w).catch(w=>console.warn("DemoConsumer configFetcher failed",w)),e?e():null]).then(([w,S])=>{b({config:w,data:S}),x(!1)}).catch(w=>{x(!1)})},[l,i]),g?null:h.config?D.jsx(Lr,{children:D.jsx(Gr,{data:h.data,isPreview:n,config:h.config,onSubmit:o})}):D.jsx(D.Fragment,{children:t})},Ni=({flowName:e,dataFetcher:t,children:r,onSubmit:n,configFetcher:o,formidavimHost:a,version:i})=>{const[l,u]=Ne.useState({}),h=Qn(a);return Ne.useEffect(()=>{Promise.all([o?o():h.flowControllerGetBySlug(e,i).then(({data:b})=>b).catch(b=>console.warn("DemoConsumer configFetcher failed",b)),t().catch(b=>console.warn("DemoConsumer dataFetcher failed",b))]).then(([b,g])=>{console.warn({config:b,data:g,detail:"DemoConsumer"}),u({config:b,data:g})})},[]),l.config?D.jsx(Ht.Provider,{store:Mn,children:D.jsx(Lr,{children:D.jsx(Gr,{onSubmit:n,data:l.data,isPreview:!1,config:l.config})})}):D.jsx(D.Fragment,{children:r})};exports.ComponentFactory=pr;exports.DataRenderer=Ii;exports.DemoConsumer=Ni;exports.FlowFormRenderer=zn;exports.FlowProgressTracker=pn;exports.FlowRenderer=Un;exports.FormComponentRenderer=Gn;exports.FormRenderer=Ln;exports.FormWrapper=Bn;exports.Renderer=Gr;exports.RendererWrapper=Lr;
|
|
2578
|
+
`,Qn=({children:e,$bgColor:t})=>O.jsx(Lt,{$overflow:"hidden",$position:"static",$xSmall:!0,id:"MainFlowContainer",$bgColor:t||"white",$bRad:"0px",$marginBottom:"0px",$marginBottomMd:"0px",children:O.jsx(Ui,{children:e})});function Mi(e){const{onError:t,on401:r,on403:n,on400:o,on500:a,addHeaders:i,onRequest:l,onResponse:u,modifyRequest:h}=e,b=Z.create();return b.interceptors.request.use(m=>(m.headers||(m.headers={}),typeof i=="function"&&Object.entries(i(m)||{}).forEach(([x,P])=>m.headers[x]=P),typeof l=="function"&&l(m),typeof h=="function"?h(m):m)),b.interceptors.response.use(m=>(typeof u=="function"&&u(m),m),m=>{var P,D,N,_;const x={config:{}};if(typeof t=="function"&&t((m==null?void 0:m.response)||x),((P=m==null?void 0:m.response)==null?void 0:P.status)===400)typeof o=="function"&&o((m==null?void 0:m.response)||x);else if(((D=m==null?void 0:m.response)==null?void 0:D.status)===401)typeof r=="function"&&r((m==null?void 0:m.response)||x);else if(((N=m==null?void 0:m.response)==null?void 0:N.status)===403)typeof n=="function"&&n((m==null?void 0:m.response)||x);else if(((_=m==null?void 0:m.response)==null?void 0:_.status)===500)typeof a=="function"&&a((m==null?void 0:m.response)||x);else throw m}),b}function zi(e,t){const{apiUrl:r}=t;return new e({basePath:r},r,Mi(t))}const te="http://localhost".replace(/\/+$/,"");class Gi{constructor(t,r=te,n=Z){this.basePath=r,this.axios=n,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}}class Li extends Error{constructor(t,r){super(r),this.field=t,this.name="RequiredError"}}const ne="https://example.com",K=function(e,t,r){if(r==null)throw new Li(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function _r(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(n=>_r(e,n,r)):Object.keys(t).forEach(n=>_r(e,t[n],`${r}${r!==""?".":""}${n}`)):e.has(r)?e.append(r,t):e.set(r,t))}const oe=function(e,...t){const r=new URLSearchParams(e.search);_r(r,t),e.search=r.toString()},Me=function(e,t,r){const n=typeof e!="string";return(n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n)?JSON.stringify(e!==void 0?e:{}):e||""},ae=function(e){return e.pathname+e.search+e.hash},ie=function(e,t,r,n){return(o=t,a=r)=>{const i={...e.options,url:((n==null?void 0:n.basePath)||a)+e.url};return o.request(i)}},Bi=function(e){return{abTestControllerDelete:async(t,r={})=>{K("abTestControllerDelete","id",t);const n="/api/ab-test/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},abTestControllerGet:async(t,r={})=>{K("abTestControllerGet","id",t);const n="/api/ab-test/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},abTestControllerGetBySlug:async(t,r={})=>{K("abTestControllerGetBySlug","slug",t);const n="/api/ab-test/slug/{slug}".replace("{slug}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},abTestControllerIndex:async(t={})=>{const r="/api/ab-test",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},abTestControllerPatch:async(t,r,n={})=>{K("abTestControllerPatch","id",t),K("abTestControllerPatch","abTest",r);const o="/api/ab-test/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},abTestControllerPost:async(t,r={})=>{K("abTestControllerPost","abTest",t);const n="/api/ab-test",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},abTestSearchControllerPost:async(t,r,n,o={})=>{K("abTestSearchControllerPost","abTest",t);const a="/api/ab-test-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},componentControllerDelete:async(t,r={})=>{K("componentControllerDelete","id",t);const n="/api/component/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},componentControllerGet:async(t,r={})=>{K("componentControllerGet","id",t);const n="/api/component/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},componentControllerIndex:async(t={})=>{const r="/api/component",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},componentControllerPatch:async(t,r,n={})=>{K("componentControllerPatch","id",t),K("componentControllerPatch","component",r);const o="/api/component/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},componentControllerPost:async(t,r={})=>{K("componentControllerPost","component",t);const n="/api/component",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},componentSearchControllerPost:async(t,r,n,o={})=>{K("componentSearchControllerPost","component",t);const a="/api/component-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},conditionControllerDelete:async(t,r={})=>{K("conditionControllerDelete","id",t);const n="/api/condition/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},conditionControllerGet:async(t,r={})=>{K("conditionControllerGet","id",t);const n="/api/condition/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},conditionControllerIndex:async(t={})=>{const r="/api/condition",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},conditionControllerPatch:async(t,r,n={})=>{K("conditionControllerPatch","id",t),K("conditionControllerPatch","condition",r);const o="/api/condition/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},conditionControllerPost:async(t,r={})=>{K("conditionControllerPost","condition",t);const n="/api/condition",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},conditionSearchControllerPost:async(t,r,n,o={})=>{K("conditionSearchControllerPost","condition",t);const a="/api/condition-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},flowControllerCopy:async(t,r={})=>{K("flowControllerCopy","flowCopyDto",t);const n="/api/flow/copy",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},flowControllerDelete:async(t,r={})=>{K("flowControllerDelete","id",t);const n="/api/flow/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},flowControllerGet:async(t,r={})=>{K("flowControllerGet","id",t);const n="/api/flow/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},flowControllerGetBySlug:async(t,r,n={})=>{K("flowControllerGetBySlug","slug",t),K("flowControllerGetBySlug","version",r);const o="/api/flow/slug/{slug}".replace("{slug}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},u={},h={};r!==void 0&&(h.version=r),oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},{url:ae(a),options:l}},flowControllerGetFull:async(t,r={})=>{K("flowControllerGetFull","id",t);const n="/api/flow/{id}/full".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},flowControllerIndex:async(t={})=>{const r="/api/flow",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},flowControllerPatch:async(t,r,n={})=>{K("flowControllerPatch","id",t),K("flowControllerPatch","flow",r);const o="/api/flow/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},flowControllerPost:async(t,r={})=>{K("flowControllerPost","flow",t);const n="/api/flow",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},flowFormControllerDelete:async(t,r,n={})=>{K("flowFormControllerDelete","flowId",t),K("flowFormControllerDelete","formId",r);const o="/api/flow-form/{flowId}/{formId}".replace("{flowId}",encodeURIComponent(String(t))).replace("{formId}",encodeURIComponent(String(r))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"DELETE",...i,...n},u={};oe(a,{});let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},{url:ae(a),options:l}},flowFormControllerGet:async(t,r,n={})=>{K("flowFormControllerGet","flowId",t),K("flowFormControllerGet","formId",r);const o="/api/flow-form/{flowId}/{formId}".replace("{flowId}",encodeURIComponent(String(t))).replace("{formId}",encodeURIComponent(String(r))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},u={};oe(a,{});let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},{url:ae(a),options:l}},flowFormControllerIndex:async(t={})=>{const r="/api/flow-form",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},flowFormControllerPatch:async(t,r,n,o={})=>{K("flowFormControllerPatch","flowId",t),K("flowFormControllerPatch","formId",r),K("flowFormControllerPatch","flowForm",n);const a="/api/flow-form/{flowId}/{formId}".replace("{flowId}",encodeURIComponent(String(t))).replace("{formId}",encodeURIComponent(String(r))),i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"PATCH",...l,...o},h={},b={};h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(n,u,e),{url:ae(i),options:u}},flowFormControllerPost:async(t,r={})=>{K("flowFormControllerPost","flowForm",t);const n="/api/flow-form",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},flowFormSearchControllerPost:async(t,r,n,o={})=>{K("flowFormSearchControllerPost","flowForm",t);const a="/api/flow-form-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},flowSearchControllerPost:async(t,r,n,o={})=>{K("flowSearchControllerPost","flow",t);const a="/api/flow-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},formComponentControllerDelete:async(t,r={})=>{K("formComponentControllerDelete","id",t);const n="/api/form-component/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},formComponentControllerGetById:async(t,r={})=>{K("formComponentControllerGetById","id",t);const n="/api/form-component/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},formComponentControllerIndex:async(t={})=>{const r="/api/form-component",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},formComponentControllerPatch:async(t,r,n={})=>{K("formComponentControllerPatch","id",t),K("formComponentControllerPatch","formComponent",r);const o="/api/form-component/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},formComponentControllerPost:async(t,r={})=>{K("formComponentControllerPost","formComponent",t);const n="/api/form-component",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},formComponentSearchControllerPost:async(t,r,n,o={})=>{K("formComponentSearchControllerPost","formComponent",t);const a="/api/form-component-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},formControllerCopy:async(t,r={})=>{K("formControllerCopy","formCopyDto",t);const n="/api/form/copy",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},formControllerDelete:async(t,r={})=>{K("formControllerDelete","id",t);const n="/api/form/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},formControllerGet:async(t,r={})=>{K("formControllerGet","id",t);const n="/api/form/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},formControllerIndex:async(t={})=>{const r="/api/form",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},formControllerPatch:async(t,r,n={})=>{K("formControllerPatch","id",t),K("formControllerPatch","form",r);const o="/api/form/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},formControllerPost:async(t,r={})=>{K("formControllerPost","form",t);const n="/api/form",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},formSearchControllerPost:async(t,r,n,o={})=>{K("formSearchControllerPost","form",t);const a="/api/form-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},healthControllerGet:async(t={})=>{const r="/api/health",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},oidcConfigControllerGetClient:async(t,r={})=>{K("oidcConfigControllerGetClient","redirectUri",t);const n="/api/oidc-config/client/{redirectUri}".replace("{redirectUri}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},oidcConfigControllerGetEntra:async(t={})=>{const r="/api/oidc-config/entra",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},oidcCookieControllerPost:async(t,r,n={})=>{K("oidcCookieControllerPost","origin",t),K("oidcCookieControllerPost","tokensDto",r);const o="/api/oidc-cookie/{origin}".replace("{origin}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},patientControllerDelete:async(t,r={})=>{K("patientControllerDelete","id",t);const n="/api/patient/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},patientControllerGet:async(t,r={})=>{K("patientControllerGet","id",t);const n="/api/patient/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},patientControllerIndex:async(t={})=>{const r="/api/patient",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},patientControllerPatch:async(t,r,n={})=>{K("patientControllerPatch","id",t),K("patientControllerPatch","patient",r);const o="/api/patient/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},patientControllerPost:async(t,r={})=>{K("patientControllerPost","patient",t);const n="/api/patient",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},patientSearchControllerPost:async(t,r,n,o={})=>{K("patientSearchControllerPost","patient",t);const a="/api/patient-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},propertyControllerDelete:async(t,r={})=>{K("propertyControllerDelete","id",t);const n="/api/property/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},propertyControllerGet:async(t,r={})=>{K("propertyControllerGet","id",t);const n="/api/property/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},propertyControllerIndex:async(t={})=>{const r="/api/property",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},propertyControllerPatch:async(t,r,n={})=>{K("propertyControllerPatch","id",t),K("propertyControllerPatch","property",r);const o="/api/property/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},propertyControllerPost:async(t,r={})=>{K("propertyControllerPost","property",t);const n="/api/property",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},propertySearchControllerPost:async(t,r,n,o={})=>{K("propertySearchControllerPost","property",t);const a="/api/property-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},tokenValidationControllerPost:async(t,r={})=>{K("tokenValidationControllerPost","valueDto",t);const n="/api/token-validation",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}}}},se=function(e){const t=Bi(e);return{async abTestControllerDelete(r,n){const o=await t.abTestControllerDelete(r,n);return ie(o,Z,te,e)},async abTestControllerGet(r,n){const o=await t.abTestControllerGet(r,n);return ie(o,Z,te,e)},async abTestControllerGetBySlug(r,n){const o=await t.abTestControllerGetBySlug(r,n);return ie(o,Z,te,e)},async abTestControllerIndex(r){const n=await t.abTestControllerIndex(r);return ie(n,Z,te,e)},async abTestControllerPatch(r,n,o){const a=await t.abTestControllerPatch(r,n,o);return ie(a,Z,te,e)},async abTestControllerPost(r,n){const o=await t.abTestControllerPost(r,n);return ie(o,Z,te,e)},async abTestSearchControllerPost(r,n,o,a){const i=await t.abTestSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async componentControllerDelete(r,n){const o=await t.componentControllerDelete(r,n);return ie(o,Z,te,e)},async componentControllerGet(r,n){const o=await t.componentControllerGet(r,n);return ie(o,Z,te,e)},async componentControllerIndex(r){const n=await t.componentControllerIndex(r);return ie(n,Z,te,e)},async componentControllerPatch(r,n,o){const a=await t.componentControllerPatch(r,n,o);return ie(a,Z,te,e)},async componentControllerPost(r,n){const o=await t.componentControllerPost(r,n);return ie(o,Z,te,e)},async componentSearchControllerPost(r,n,o,a){const i=await t.componentSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async conditionControllerDelete(r,n){const o=await t.conditionControllerDelete(r,n);return ie(o,Z,te,e)},async conditionControllerGet(r,n){const o=await t.conditionControllerGet(r,n);return ie(o,Z,te,e)},async conditionControllerIndex(r){const n=await t.conditionControllerIndex(r);return ie(n,Z,te,e)},async conditionControllerPatch(r,n,o){const a=await t.conditionControllerPatch(r,n,o);return ie(a,Z,te,e)},async conditionControllerPost(r,n){const o=await t.conditionControllerPost(r,n);return ie(o,Z,te,e)},async conditionSearchControllerPost(r,n,o,a){const i=await t.conditionSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async flowControllerCopy(r,n){const o=await t.flowControllerCopy(r,n);return ie(o,Z,te,e)},async flowControllerDelete(r,n){const o=await t.flowControllerDelete(r,n);return ie(o,Z,te,e)},async flowControllerGet(r,n){const o=await t.flowControllerGet(r,n);return ie(o,Z,te,e)},async flowControllerGetBySlug(r,n,o){const a=await t.flowControllerGetBySlug(r,n,o);return ie(a,Z,te,e)},async flowControllerGetFull(r,n){const o=await t.flowControllerGetFull(r,n);return ie(o,Z,te,e)},async flowControllerIndex(r){const n=await t.flowControllerIndex(r);return ie(n,Z,te,e)},async flowControllerPatch(r,n,o){const a=await t.flowControllerPatch(r,n,o);return ie(a,Z,te,e)},async flowControllerPost(r,n){const o=await t.flowControllerPost(r,n);return ie(o,Z,te,e)},async flowFormControllerDelete(r,n,o){const a=await t.flowFormControllerDelete(r,n,o);return ie(a,Z,te,e)},async flowFormControllerGet(r,n,o){const a=await t.flowFormControllerGet(r,n,o);return ie(a,Z,te,e)},async flowFormControllerIndex(r){const n=await t.flowFormControllerIndex(r);return ie(n,Z,te,e)},async flowFormControllerPatch(r,n,o,a){const i=await t.flowFormControllerPatch(r,n,o,a);return ie(i,Z,te,e)},async flowFormControllerPost(r,n){const o=await t.flowFormControllerPost(r,n);return ie(o,Z,te,e)},async flowFormSearchControllerPost(r,n,o,a){const i=await t.flowFormSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async flowSearchControllerPost(r,n,o,a){const i=await t.flowSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async formComponentControllerDelete(r,n){const o=await t.formComponentControllerDelete(r,n);return ie(o,Z,te,e)},async formComponentControllerGetById(r,n){const o=await t.formComponentControllerGetById(r,n);return ie(o,Z,te,e)},async formComponentControllerIndex(r){const n=await t.formComponentControllerIndex(r);return ie(n,Z,te,e)},async formComponentControllerPatch(r,n,o){const a=await t.formComponentControllerPatch(r,n,o);return ie(a,Z,te,e)},async formComponentControllerPost(r,n){const o=await t.formComponentControllerPost(r,n);return ie(o,Z,te,e)},async formComponentSearchControllerPost(r,n,o,a){const i=await t.formComponentSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async formControllerCopy(r,n){const o=await t.formControllerCopy(r,n);return ie(o,Z,te,e)},async formControllerDelete(r,n){const o=await t.formControllerDelete(r,n);return ie(o,Z,te,e)},async formControllerGet(r,n){const o=await t.formControllerGet(r,n);return ie(o,Z,te,e)},async formControllerIndex(r){const n=await t.formControllerIndex(r);return ie(n,Z,te,e)},async formControllerPatch(r,n,o){const a=await t.formControllerPatch(r,n,o);return ie(a,Z,te,e)},async formControllerPost(r,n){const o=await t.formControllerPost(r,n);return ie(o,Z,te,e)},async formSearchControllerPost(r,n,o,a){const i=await t.formSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async healthControllerGet(r){const n=await t.healthControllerGet(r);return ie(n,Z,te,e)},async oidcConfigControllerGetClient(r,n){const o=await t.oidcConfigControllerGetClient(r,n);return ie(o,Z,te,e)},async oidcConfigControllerGetEntra(r){const n=await t.oidcConfigControllerGetEntra(r);return ie(n,Z,te,e)},async oidcCookieControllerPost(r,n,o){const a=await t.oidcCookieControllerPost(r,n,o);return ie(a,Z,te,e)},async patientControllerDelete(r,n){const o=await t.patientControllerDelete(r,n);return ie(o,Z,te,e)},async patientControllerGet(r,n){const o=await t.patientControllerGet(r,n);return ie(o,Z,te,e)},async patientControllerIndex(r){const n=await t.patientControllerIndex(r);return ie(n,Z,te,e)},async patientControllerPatch(r,n,o){const a=await t.patientControllerPatch(r,n,o);return ie(a,Z,te,e)},async patientControllerPost(r,n){const o=await t.patientControllerPost(r,n);return ie(o,Z,te,e)},async patientSearchControllerPost(r,n,o,a){const i=await t.patientSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async propertyControllerDelete(r,n){const o=await t.propertyControllerDelete(r,n);return ie(o,Z,te,e)},async propertyControllerGet(r,n){const o=await t.propertyControllerGet(r,n);return ie(o,Z,te,e)},async propertyControllerIndex(r){const n=await t.propertyControllerIndex(r);return ie(n,Z,te,e)},async propertyControllerPatch(r,n,o){const a=await t.propertyControllerPatch(r,n,o);return ie(a,Z,te,e)},async propertyControllerPost(r,n){const o=await t.propertyControllerPost(r,n);return ie(o,Z,te,e)},async propertySearchControllerPost(r,n,o,a){const i=await t.propertySearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async tokenValidationControllerPost(r,n){const o=await t.tokenValidationControllerPost(r,n);return ie(o,Z,te,e)}}};class qi extends Gi{abTestControllerDelete(t,r){return se(this.configuration).abTestControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}abTestControllerGet(t,r){return se(this.configuration).abTestControllerGet(t,r).then(n=>n(this.axios,this.basePath))}abTestControllerGetBySlug(t,r){return se(this.configuration).abTestControllerGetBySlug(t,r).then(n=>n(this.axios,this.basePath))}abTestControllerIndex(t){return se(this.configuration).abTestControllerIndex(t).then(r=>r(this.axios,this.basePath))}abTestControllerPatch(t,r,n){return se(this.configuration).abTestControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}abTestControllerPost(t,r){return se(this.configuration).abTestControllerPost(t,r).then(n=>n(this.axios,this.basePath))}abTestSearchControllerPost(t,r,n,o){return se(this.configuration).abTestSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}componentControllerDelete(t,r){return se(this.configuration).componentControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}componentControllerGet(t,r){return se(this.configuration).componentControllerGet(t,r).then(n=>n(this.axios,this.basePath))}componentControllerIndex(t){return se(this.configuration).componentControllerIndex(t).then(r=>r(this.axios,this.basePath))}componentControllerPatch(t,r,n){return se(this.configuration).componentControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}componentControllerPost(t,r){return se(this.configuration).componentControllerPost(t,r).then(n=>n(this.axios,this.basePath))}componentSearchControllerPost(t,r,n,o){return se(this.configuration).componentSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}conditionControllerDelete(t,r){return se(this.configuration).conditionControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}conditionControllerGet(t,r){return se(this.configuration).conditionControllerGet(t,r).then(n=>n(this.axios,this.basePath))}conditionControllerIndex(t){return se(this.configuration).conditionControllerIndex(t).then(r=>r(this.axios,this.basePath))}conditionControllerPatch(t,r,n){return se(this.configuration).conditionControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}conditionControllerPost(t,r){return se(this.configuration).conditionControllerPost(t,r).then(n=>n(this.axios,this.basePath))}conditionSearchControllerPost(t,r,n,o){return se(this.configuration).conditionSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}flowControllerCopy(t,r){return se(this.configuration).flowControllerCopy(t,r).then(n=>n(this.axios,this.basePath))}flowControllerDelete(t,r){return se(this.configuration).flowControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}flowControllerGet(t,r){return se(this.configuration).flowControllerGet(t,r).then(n=>n(this.axios,this.basePath))}flowControllerGetBySlug(t,r,n){return se(this.configuration).flowControllerGetBySlug(t,r,n).then(o=>o(this.axios,this.basePath))}flowControllerGetFull(t,r){return se(this.configuration).flowControllerGetFull(t,r).then(n=>n(this.axios,this.basePath))}flowControllerIndex(t){return se(this.configuration).flowControllerIndex(t).then(r=>r(this.axios,this.basePath))}flowControllerPatch(t,r,n){return se(this.configuration).flowControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}flowControllerPost(t,r){return se(this.configuration).flowControllerPost(t,r).then(n=>n(this.axios,this.basePath))}flowFormControllerDelete(t,r,n){return se(this.configuration).flowFormControllerDelete(t,r,n).then(o=>o(this.axios,this.basePath))}flowFormControllerGet(t,r,n){return se(this.configuration).flowFormControllerGet(t,r,n).then(o=>o(this.axios,this.basePath))}flowFormControllerIndex(t){return se(this.configuration).flowFormControllerIndex(t).then(r=>r(this.axios,this.basePath))}flowFormControllerPatch(t,r,n,o){return se(this.configuration).flowFormControllerPatch(t,r,n,o).then(a=>a(this.axios,this.basePath))}flowFormControllerPost(t,r){return se(this.configuration).flowFormControllerPost(t,r).then(n=>n(this.axios,this.basePath))}flowFormSearchControllerPost(t,r,n,o){return se(this.configuration).flowFormSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}flowSearchControllerPost(t,r,n,o){return se(this.configuration).flowSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}formComponentControllerDelete(t,r){return se(this.configuration).formComponentControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}formComponentControllerGetById(t,r){return se(this.configuration).formComponentControllerGetById(t,r).then(n=>n(this.axios,this.basePath))}formComponentControllerIndex(t){return se(this.configuration).formComponentControllerIndex(t).then(r=>r(this.axios,this.basePath))}formComponentControllerPatch(t,r,n){return se(this.configuration).formComponentControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}formComponentControllerPost(t,r){return se(this.configuration).formComponentControllerPost(t,r).then(n=>n(this.axios,this.basePath))}formComponentSearchControllerPost(t,r,n,o){return se(this.configuration).formComponentSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}formControllerCopy(t,r){return se(this.configuration).formControllerCopy(t,r).then(n=>n(this.axios,this.basePath))}formControllerDelete(t,r){return se(this.configuration).formControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}formControllerGet(t,r){return se(this.configuration).formControllerGet(t,r).then(n=>n(this.axios,this.basePath))}formControllerIndex(t){return se(this.configuration).formControllerIndex(t).then(r=>r(this.axios,this.basePath))}formControllerPatch(t,r,n){return se(this.configuration).formControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}formControllerPost(t,r){return se(this.configuration).formControllerPost(t,r).then(n=>n(this.axios,this.basePath))}formSearchControllerPost(t,r,n,o){return se(this.configuration).formSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}healthControllerGet(t){return se(this.configuration).healthControllerGet(t).then(r=>r(this.axios,this.basePath))}oidcConfigControllerGetClient(t,r){return se(this.configuration).oidcConfigControllerGetClient(t,r).then(n=>n(this.axios,this.basePath))}oidcConfigControllerGetEntra(t){return se(this.configuration).oidcConfigControllerGetEntra(t).then(r=>r(this.axios,this.basePath))}oidcCookieControllerPost(t,r,n){return se(this.configuration).oidcCookieControllerPost(t,r,n).then(o=>o(this.axios,this.basePath))}patientControllerDelete(t,r){return se(this.configuration).patientControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}patientControllerGet(t,r){return se(this.configuration).patientControllerGet(t,r).then(n=>n(this.axios,this.basePath))}patientControllerIndex(t){return se(this.configuration).patientControllerIndex(t).then(r=>r(this.axios,this.basePath))}patientControllerPatch(t,r,n){return se(this.configuration).patientControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}patientControllerPost(t,r){return se(this.configuration).patientControllerPost(t,r).then(n=>n(this.axios,this.basePath))}patientSearchControllerPost(t,r,n,o){return se(this.configuration).patientSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}propertyControllerDelete(t,r){return se(this.configuration).propertyControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}propertyControllerGet(t,r){return se(this.configuration).propertyControllerGet(t,r).then(n=>n(this.axios,this.basePath))}propertyControllerIndex(t){return se(this.configuration).propertyControllerIndex(t).then(r=>r(this.axios,this.basePath))}propertyControllerPatch(t,r,n){return se(this.configuration).propertyControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}propertyControllerPost(t,r){return se(this.configuration).propertyControllerPost(t,r).then(n=>n(this.axios,this.basePath))}propertySearchControllerPost(t,r,n,o){return se(this.configuration).propertySearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}tokenValidationControllerPost(t,r){return se(this.configuration).tokenValidationControllerPost(t,r).then(n=>n(this.axios,this.basePath))}}function Qi(e,t=""){return{api:t||(!location.port||location.port==="80"?"":e),ui:location.origin}}const Hn=e=>{const t=Qi("http://localhost:3129",e);return zi(qi,{apiUrl:t.api})},Hi=({dataFetcher:e=()=>{},children:t,configFetcher:r,isPreview:n=!1,onSubmit:o=()=>Promise.resolve(),formidavimHost:a,version:i="1.0",flowName:l=""})=>{const u=Hn(a),[h,b]=Ve.useState({config:null,data:null}),[m,x]=Ve.useState(!0);return Ve.useEffect(()=>{Promise.all([r?r():u.flowControllerGetBySlug(l,i).then(({data:P})=>P).catch(P=>console.warn("DemoConsumer configFetcher failed",P)),e?e():null]).then(([P,D])=>{b({config:P,data:D}),x(!1)}).catch(P=>{x(!1)})},[l,i]),m?null:h.config?O.jsx(Br,{children:O.jsx(Lr,{data:h.data,isPreview:n,config:h.config,onSubmit:o})}):O.jsx(O.Fragment,{children:t})},Wi=({flowName:e,dataFetcher:t,children:r,onSubmit:n,configFetcher:o,formidavimHost:a,version:i})=>{const[l,u]=Ve.useState({}),h=Hn(a);return Ve.useEffect(()=>{Promise.all([o?o():h.flowControllerGetBySlug(e,i).then(({data:b})=>b).catch(b=>console.warn("DemoConsumer configFetcher failed",b)),t().catch(b=>console.warn("DemoConsumer dataFetcher failed",b))]).then(([b,m])=>{console.warn({config:b,data:m,detail:"DemoConsumer"}),u({config:b,data:m})})},[]),l.config?O.jsx(Rt.Provider,{store:Gn,children:O.jsx(Br,{children:O.jsx(Lr,{onSubmit:n,data:l.data,isPreview:!1,config:l.config})})}):O.jsx(O.Fragment,{children:r})};exports.ComponentFactory=pr;exports.DataRenderer=Hi;exports.DemoConsumer=Wi;exports.FlowFormRenderer=Ln;exports.FlowProgressTracker=bn;exports.FlowRenderer=zn;exports.FormComponentRenderer=Bn;exports.FormRenderer=qn;exports.FormWrapper=Qn;exports.Renderer=Lr;exports.RendererWrapper=Br;
|