tocco-entity-browser 1.0.89 → 1.0.91

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -56,4 +56,4 @@ object-assign
56
56
  * LICENSE file in the root directory of this source tree.
57
57
  */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case i:case c:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case v:case m:case s:return e;default:return t}}case o:return t}}}function O(e){return x(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=c,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return O(e)||x(e)===l},t.isConcurrentMode=O,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===c},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===c||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===s||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=x},51976:(e,t,n)=>{"use strict";e.exports=n(9734)},32654:(e,t,n)=>{"use strict";n.d(t,{D:()=>be});var r=n(1024),o=n(30314);function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function a(e){return e instanceof i(e).Element||e instanceof Element}function c(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof i(e).ShadowRoot||e instanceof ShadowRoot)}var u=Math.max,l=Math.min,f=Math.round;function d(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(c(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=f(n.width)/a||1),i>0&&(o=f(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function p(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((a(e)?e.ownerDocument:e.document)||window.document).documentElement}function v(e){return d(m(e)).left+p(e).scrollLeft}function g(e){return i(e).getComputedStyle(e)}function y(e){var t=g(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function b(e,t,n){void 0===n&&(n=!1);var r,o,a=c(t),s=c(t)&&function(e){var t=e.getBoundingClientRect(),n=f(t.width)/e.offsetWidth||1,r=f(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),u=m(t),l=d(e,s),g={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(a||!a&&!n)&&(("body"!==h(t)||y(u))&&(g=(r=t)!==i(r)&&c(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:p(r)),c(t)?((b=d(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):u&&(b.x=v(u))),{x:l.left+g.scrollLeft-b.x,y:l.top+g.scrollTop-b.y,width:l.width,height:l.height}}function w(e){var t=d(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function x(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||m(e)}function O(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:c(e)&&y(e)?e:O(x(e))}function E(e,t){var n;void 0===t&&(t=[]);var r=O(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=i(r),c=o?[a].concat(a.visualViewport||[],y(r)?r:[]):r,s=t.concat(c);return o?s:s.concat(E(x(c)))}function P(e){return["table","td","th"].indexOf(h(e))>=0}function k(e){return c(e)&&"fixed"!==g(e).position?e.offsetParent:null}function S(e){for(var t=i(e),n=k(e);n&&P(n)&&"static"===g(n).position;)n=k(n);return n&&("html"===h(n)||"body"===h(n)&&"static"===g(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&c(e)&&"fixed"===g(e).position)return null;var n=x(e);for(s(n)&&(n=n.host);c(n)&&["html","body"].indexOf(h(n))<0;){var r=g(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var j="top",T="bottom",C="right",_="left",A="auto",Z=[j,T,C,_],N="start",R="end",M="viewport",D="popper",I=Z.reduce((function(e,t){return e.concat([t+"-"+N,t+"-"+R])}),[]),L=[].concat(Z,[A]).reduce((function(e,t){return e.concat([t,t+"-"+N,t+"-"+R])}),[]),H=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function F(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var U={placement:"bottom",modifiers:[],strategy:"absolute"};function W(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function B(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?U:o;return function(e,t,n){void 0===n&&(n=i);var o,c,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},U,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],l=!1,f={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:a(e)?E(e):e.contextElement?E(e.contextElement):[],popper:E(t)};var c=function(e){var t=F(e);return H.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,s.options.modifiers)));return s.orderedModifiers=c.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:f,options:r}),a=function(){};u.push(i||a)}})),f.update()},forceUpdate:function(){if(!l){var e=s.elements,t=e.reference,n=e.popper;if(W(t,n)){s.rects={reference:b(t,S(n),"fixed"===s.options.strategy),popper:w(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,c=void 0===a?{}:a,u=o.name;"function"==typeof i&&(s=i({state:s,options:c,name:u,instance:f})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){f.forceUpdate(),e(s)}))},function(){return c||(c=new Promise((function(e){Promise.resolve().then((function(){c=void 0,e(o())}))}))),c}),destroy:function(){d(),l=!0}};if(!W(e,t))return f;function d(){u.forEach((function(e){return e()})),u=[]}return f.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),f}}var z={passive:!0};function G(e){return e.split("-")[0]}function V(e){return e.split("-")[1]}function q(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?G(o):null,a=o?V(o):null,c=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case j:t={x:c,y:n.y-r.height};break;case T:t={x:c,y:n.y+n.height};break;case C:t={x:n.x+n.width,y:s};break;case _:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?q(i):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case N:t[u]=t[u]-(n[l]/2-r[l]/2);break;case R:t[u]=t[u]+(n[l]/2-r[l]/2)}}return t}var Y={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,c=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,d=e.roundOffsets,p=e.isFixed,h=c.x,v=void 0===h?0:h,y=c.y,b=void 0===y?0:y,w="function"==typeof d?d({x:v,y:b}):{x:v,y:b};v=w.x,b=w.y;var x=c.hasOwnProperty("x"),O=c.hasOwnProperty("y"),E=_,P=j,k=window;if(l){var A=S(n),Z="clientHeight",N="clientWidth";if(A===i(n)&&"static"!==g(A=m(n)).position&&"absolute"===s&&(Z="scrollHeight",N="scrollWidth"),A=A,o===j||(o===_||o===C)&&a===R)P=T,b-=(p&&A===k&&k.visualViewport?k.visualViewport.height:A[Z])-r.height,b*=u?1:-1;if(o===_||(o===j||o===T)&&a===R)E=C,v-=(p&&A===k&&k.visualViewport?k.visualViewport.width:A[N])-r.width,v*=u?1:-1}var M,D=Object.assign({position:s},l&&Y),I=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:f(t*r)/r||0,y:f(n*r)/r||0}}({x:v,y:b}):{x:v,y:b};return v=I.x,b=I.y,u?Object.assign({},D,((M={})[P]=O?"0":"",M[E]=x?"0":"",M.transform=(k.devicePixelRatio||1)<=1?"translate("+v+"px, "+b+"px)":"translate3d("+v+"px, "+b+"px, 0)",M)):Object.assign({},D,((t={})[P]=O?b+"px":"",t[E]=x?v+"px":"",t.transform="",t))}const K={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=L.reduce((function(e,n){return e[n]=function(e,t,n){var r=G(e),o=[_,j].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[_,C].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}(n,t.rects,i),e}),{}),c=a[t.placement],s=c.x,u=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var J={left:"right",right:"left",bottom:"top",top:"bottom"};function Q(e){return e.replace(/left|right|bottom|top/g,(function(e){return J[e]}))}var ee={start:"end",end:"start"};function te(e){return e.replace(/start|end/g,(function(e){return ee[e]}))}function ne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&s(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oe(e,t){return t===M?re(function(e){var t=i(e),n=m(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,c=0,s=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(c=r.offsetLeft,s=r.offsetTop)),{width:o,height:a,x:c+v(e),y:s}}(e)):a(t)?function(e){var t=d(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):re(function(e){var t,n=m(e),r=p(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=u(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=u(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+v(e),s=-r.scrollTop;return"rtl"===g(o||n).direction&&(c+=u(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:s}}(m(e)))}function ie(e,t,n){var r="clippingParents"===t?function(e){var t=E(x(e)),n=["absolute","fixed"].indexOf(g(e).position)>=0&&c(e)?S(e):e;return a(n)?t.filter((function(e){return a(e)&&ne(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],s=o.reduce((function(t,n){var r=oe(e,n);return t.top=u(r.top,t.top),t.right=l(r.right,t.right),t.bottom=l(r.bottom,t.bottom),t.left=u(r.left,t.left),t}),oe(e,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ae(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ce(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function se(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,c=void 0===i?"clippingParents":i,s=n.rootBoundary,u=void 0===s?M:s,l=n.elementContext,f=void 0===l?D:l,p=n.altBoundary,h=void 0!==p&&p,v=n.padding,g=void 0===v?0:v,y=ae("number"!=typeof g?g:ce(g,Z)),b=f===D?"reference":D,w=e.rects.popper,x=e.elements[h?b:f],O=ie(a(x)?x:x.contextElement||m(e.elements.popper),c,u),E=d(e.elements.reference),P=$({reference:E,element:w,strategy:"absolute",placement:o}),k=re(Object.assign({},w,P)),S=f===D?k:E,_={top:O.top-S.top+y.top,bottom:S.bottom-O.bottom+y.bottom,left:O.left-S.left+y.left,right:S.right-O.right+y.right},A=e.modifiersData.offset;if(f===D&&A){var N=A[o];Object.keys(_).forEach((function(e){var t=[C,T].indexOf(e)>=0?1:-1,n=[j,T].indexOf(e)>=0?"y":"x";_[e]+=N[n]*t}))}return _}function ue(e,t,n){return u(e,l(t,n))}const le={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0!==a&&a,s=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.padding,h=n.tether,m=void 0===h||h,v=n.tetherOffset,g=void 0===v?0:v,y=se(t,{boundary:s,rootBoundary:f,padding:p,altBoundary:d}),b=G(t.placement),x=V(t.placement),O=!x,E=q(b),P="x"===E?"y":"x",k=t.modifiersData.popperOffsets,A=t.rects.reference,Z=t.rects.popper,R="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,M="number"==typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(k){if(i){var L,H="y"===E?j:_,F="y"===E?T:C,U="y"===E?"height":"width",W=k[E],B=W+y[H],z=W-y[F],$=m?-Z[U]/2:0,Y=x===N?A[U]:Z[U],X=x===N?-Z[U]:-A[U],K=t.elements.arrow,J=m&&K?w(K):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[H],te=Q[F],ne=ue(0,A[U],J[U]),re=O?A[U]/2-$-ne-ee-M.mainAxis:Y-ne-ee-M.mainAxis,oe=O?-A[U]/2+$+ne+te+M.mainAxis:X+ne+te+M.mainAxis,ie=t.elements.arrow&&S(t.elements.arrow),ae=ie?"y"===E?ie.clientTop||0:ie.clientLeft||0:0,ce=null!=(L=null==D?void 0:D[E])?L:0,le=W+oe-ce,fe=ue(m?l(B,W+re-ce-ae):B,W,m?u(z,le):z);k[E]=fe,I[E]=fe-W}if(c){var de,pe="x"===E?j:_,he="x"===E?T:C,me=k[P],ve="y"===P?"height":"width",ge=me+y[pe],ye=me-y[he],be=-1!==[j,_].indexOf(b),we=null!=(de=null==D?void 0:D[P])?de:0,xe=be?ge:me-A[ve]-Z[ve]-we+M.altAxis,Oe=be?me+A[ve]+Z[ve]-we-M.altAxis:ye,Ee=m&&be?function(e,t,n){var r=ue(e,t,n);return r>n?n:r}(xe,me,Oe):ue(m?xe:ge,me,m?Oe:ye);k[P]=Ee,I[P]=Ee-me}t.modifiersData[r]=I}},requiresIfExists:["offset"]};const fe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=G(n.placement),s=q(c),u=[_,C].indexOf(c)>=0?"height":"width";if(i&&a){var l=function(e,t){return ae("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ce(e,Z))}(o.padding,n),f=w(i),d="y"===s?j:_,p="y"===s?T:C,h=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],m=a[s]-n.rects.reference[s],v=S(i),g=v?"y"===s?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,b=l[d],x=g-f[u]-l[p],O=g/2-f[u]/2+y,E=ue(b,O,x),P=s;n.modifiersData[r]=((t={})[P]=E,t.centerOffset=E-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ne(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function de(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function pe(e){return[j,C,T,_].some((function(t){return e[t]>=0}))}var he=B({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,c=r.resize,s=void 0===c||c,u=i(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,z)})),s&&u.addEventListener("resize",n.update,z),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,z)})),s&&u.removeEventListener("resize",n.update,z)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,c=n.roundOffsets,s=void 0===c||c,u={placement:G(t.placement),variation:V(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,X(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,X(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];c(o)&&h(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});c(r)&&h(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},K,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0===a||a,s=n.fallbackPlacements,u=n.padding,l=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,v=t.options.placement,g=G(v),y=s||(g===v||!h?[Q(v)]:function(e){if(G(e)===A)return[];var t=Q(e);return[te(e),t,te(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(G(n)===A?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?L:s,l=V(r),f=l?c?I:I.filter((function(e){return V(e)===l})):Z,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=se(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[G(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,E=!0,P=b[0],k=0;k<b.length;k++){var S=b[k],R=G(S),M=V(S)===N,D=[j,T].indexOf(R)>=0,H=D?"width":"height",F=se(t,{placement:S,boundary:l,rootBoundary:f,altBoundary:d,padding:u}),U=D?M?C:_:M?T:j;w[H]>x[H]&&(U=Q(U));var W=Q(U),B=[];if(i&&B.push(F[R]<=0),c&&B.push(F[U]<=0,F[W]<=0),B.every((function(e){return e}))){P=S,E=!1;break}O.set(S,B)}if(E)for(var z=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},q=h?3:1;q>0;q--){if("break"===z(q))break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},le,fe,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=se(t,{elementContext:"reference"}),c=se(t,{altBoundary:!0}),s=de(a,r),u=de(c,o,i),l=pe(s),f=pe(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),me=n(98836),ve=n.n(me),ge=n(87568),ye=[],be=function(e,t,n){void 0===n&&(n={});var i=r.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||ye},c=r.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=c[0],u=c[1],l=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);o.flushSync((function(){u({styles:(0,ge.sq)(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:(0,ge.sq)(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),f=r.useMemo((function(){var e={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[l,{name:"applyStyles",enabled:!1}])};return ve()(i.current,e)?i.current||e:(i.current=e,e)}),[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,l]),d=r.useRef();return(0,ge.LI)((function(){d.current&&d.current.setOptions(f)}),[f]),(0,ge.LI)((function(){if(null!=e&&null!=t){var r=(n.createPopper||he)(e,t,f);return d.current=r,function(){r.destroy(),d.current=null}}}),[e,t,n.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}}},87568:(e,t,n)=>{"use strict";n.d(t,{$p:()=>o,DL:()=>i,LI:()=>s,k$:()=>a,sq:()=>c});var r=n(1024),o=function(e){return Array.isArray(e)?e[0]:e},i=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},a=function(e,t){if("function"==typeof e)return i(e,t);null!=e&&(e.current=t)},c=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},s="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect},12864:(e,t,n)=>{"use strict";n.d(t,{A:()=>N,B:()=>R,C:()=>W,D:()=>U,E:()=>F,F:()=>P,G:()=>Ie,H:()=>H,I:()=>j,J:()=>k,K:()=>Z,L:()=>O,M:()=>$,_:()=>w,a:()=>g,b:()=>he,c:()=>De,d:()=>oe,e:()=>we,f:()=>pe,g:()=>Oe,h:()=>Ee,i:()=>ae,j:()=>me,k:()=>ke,l:()=>ge,m:()=>J,n:()=>V,o:()=>Y,p:()=>ne,q:()=>Ce,r:()=>B,s:()=>L,t:()=>_e,u:()=>Ae,v:()=>K,w:()=>Ne,x:()=>Re,y:()=>Me,z:()=>ie});var r=n(3640),o=n(82765),i=n(91411),a=n(56315),c=n(68957),s=n(73891),u=n(11259),l=n(44822),f=n(32208),d=n(46927),p=n(1024),h=n(30314);function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}var x=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],O=function(){};function E(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function P(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(E(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var k=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,s.Z)(e)&&null!==e?[e]:[];var t},S=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,g({},(0,a.Z)(e,x))};function j(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function T(e){return j(e)?window.pageYOffset:e.scrollTop}function C(e,t){j(e)?window.scrollTo(0,t):e.scrollTop=t}function _(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,o=T(e),i=t-o,a=10,c=0;function s(){var t=_(c+=a,o,i,n);C(e,t),c<n?window.requestAnimationFrame(s):r(e)}s()}function Z(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?C(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&C(e,Math.max(t.offsetTop-o,0))}function N(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function R(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var M=!1,D={get passive(){return M=!0}},I="undefined"!=typeof window?window:{};I.addEventListener&&I.removeEventListener&&(I.addEventListener("p",O,D),I.removeEventListener("p",O,!1));var L=M;function H(e){return null!=e}function F(e,t,n){return e?t:n}function U(e){return e}function W(e){return e}var B=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=(0,c.Z)(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=(0,c.Z)(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})};function z(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,c=e.theme.spacing,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l,f=s.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,h=d.height,m=d.top,v=n.offsetParent.getBoundingClientRect().top,g=a?window.innerHeight:j(l=s)?window.innerHeight:l.clientHeight,y=T(s),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=v-w,O=g-m,E=x+y,P=f-y-m,k=p-g+y+b,S=y+m-w,_=160;switch(o){case"auto":case"bottom":if(O>=h)return{placement:"bottom",maxHeight:t};if(P>=h&&!a)return i&&A(s,k,_),{placement:"bottom",maxHeight:t};if(!a&&P>=r||a&&O>=r)return i&&A(s,k,_),{placement:"bottom",maxHeight:a?O-b:P-b};if("auto"===o||a){var Z=t,N=a?x:E;return N>=r&&(Z=Math.min(N-b-c.controlHeight,t)),{placement:"top",maxHeight:Z}}if("bottom"===o)return i&&C(s,k),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(E>=h&&!a)return i&&A(s,S,_),{placement:"top",maxHeight:t};if(!a&&E>=r||a&&x>=r){var R=t;return(!a&&E>=r||a&&x>=r)&&(R=a?x-w:E-w),i&&A(s,S,_),{placement:"top",maxHeight:R}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var G=function(e){return"auto"===e?"bottom":e},V=function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return t={label:"menu"},(0,d.Z)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),(0,d.Z)(t,"backgroundColor",a.neutral0),(0,d.Z)(t,"borderRadius",o),(0,d.Z)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),(0,d.Z)(t,"marginBottom",i.menuGutter),(0,d.Z)(t,"marginTop",i.menuGutter),(0,d.Z)(t,"position","absolute"),(0,d.Z)(t,"width","100%"),(0,d.Z)(t,"zIndex",1),t},q=(0,p.createContext)({getPortalPlacement:null}),$=function(e){(0,f.Z)(n,e);var t=w(n);function n(){var e;(0,u.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.context=void 0,e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,c=n.menuShouldScrollIntoView,s=n.theme;if(t){var u="fixed"===a,l=z({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:c&&!u,isFixedPosition:u,theme:s}),f=e.context.getPortalPlacement;f&&f(l),e.setState(l)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||G(t);return g(g({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return(0,l.Z)(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(p.Component);$.contextType=q;var Y=function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},X=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},K=X,J=X,Q=function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,c=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("noOptionsMessage",e),className:i({"menu-notice":!0,"menu-notice--no-options":!0},n)},c),t)};Q.defaultProps={children:"No options"};var ee=function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,c=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("loadingMessage",e),className:i({"menu-notice":!0,"menu-notice--loading":!0},n)},c),t)};ee.defaultProps={children:"Loading..."};var te,ne=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},re=function(e){(0,f.Z)(n,e);var t=w(n);function n(){var e;(0,u.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==G(e.props.menuPlacement)&&e.setState({placement:n})},e}return(0,l.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,i=e.className,a=e.controlElement,c=e.cx,s=e.innerProps,u=e.menuPlacement,l=e.menuPosition,f=e.getStyles,d="fixed"===l;if(!t&&!d||!a)return null;var p=this.state.placement||G(u),m=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(a),v=d?0:window.pageYOffset,g={offset:m[p]+v,position:l,rect:m},y=(0,o.tZ)("div",(0,r.Z)({css:f("menuPortal",g),className:c({"menu-portal":!0},i)},s),n);return(0,o.tZ)(q.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,h.createPortal)(y,t):y)}}]),n}(p.Component),oe=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},ie=function(e){var t=e.theme.spacing,n=e.isMulti,r=e.hasValue,o=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:n&&r&&o?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},ae=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ce=["size"];var se={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ue=function(e){var t=e.size,n=(0,a.Z)(e,ce);return(0,o.tZ)("svg",(0,r.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:se},n))},le=function(e){return(0,o.tZ)(ue,(0,r.Z)({size:20},e),(0,o.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},fe=function(e){return(0,o.tZ)(ue,(0,r.Z)({size:20},e),(0,o.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},de=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},pe=de,he=de,me=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},ve=(0,o.F4)(te||(te=(0,i.Z)(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),ge=function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},ye=function(e){var t=e.delay,n=e.offset;return(0,o.tZ)("span",{css:(0,o.iv)({animation:"".concat(ve," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},be=function(e){var t=e.className,n=e.cx,i=e.getStyles,a=e.innerProps,c=e.isRtl;return(0,o.tZ)("div",(0,r.Z)({css:i("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},a),(0,o.tZ)(ye,{delay:0,offset:c}),(0,o.tZ)(ye,{delay:160,offset:!0}),(0,o.tZ)(ye,{delay:320,offset:!c}))};be.defaultProps={size:4};var we=function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},xe=["data"],Oe=function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},Ee=function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},Pe=["innerRef","isDisabled","isHidden","inputClassName"],ke=function(e){var t=e.isDisabled,n=e.value,r=e.theme,o=r.spacing,i=r.colors;return g({margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80,transform:n?"translateZ(0)":""},je)},Se={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},je={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":g({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Se)},Te=function(e){return g({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Se)},Ce=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},_e=function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"}},Ae=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused?o.dangerLight:void 0,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},Ze=function(e){var t=e.children,n=e.innerProps;return(0,o.tZ)("div",n,t)};var Ne=function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:r?a.primary:a.primary50}}},Re=function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2}},Me=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},De={ClearIndicator:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,c=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("clearIndicator",e),className:i({indicator:!0,"clear-indicator":!0},n)},c),t||(0,o.tZ)(le,null))},Control:function(e){var t=e.children,n=e.cx,i=e.getStyles,a=e.className,c=e.isDisabled,s=e.isFocused,u=e.innerRef,l=e.innerProps,f=e.menuIsOpen;return(0,o.tZ)("div",(0,r.Z)({ref:u,css:i("control",e),className:n({control:!0,"control--is-disabled":c,"control--is-focused":s,"control--menu-is-open":f},a)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,c=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("dropdownIndicator",e),className:i({indicator:!0,"dropdown-indicator":!0},n)},c),t||(0,o.tZ)(fe,null))},DownChevron:fe,CrossIcon:le,Group:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,c=e.Heading,s=e.headingProps,u=e.innerProps,l=e.label,f=e.theme,d=e.selectProps;return(0,o.tZ)("div",(0,r.Z)({css:a("group",e),className:i({group:!0},n)},u),(0,o.tZ)(c,(0,r.Z)({},s,{selectProps:d,theme:f,getStyles:a,cx:i}),l),(0,o.tZ)("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,i=e.className,c=S(e);c.data;var s=(0,a.Z)(c,xe);return(0,o.tZ)("div",(0,r.Z)({css:t("groupHeading",e),className:n({"group-heading":!0},i)},s))},IndicatorsContainer:function(e){var t=e.children,n=e.className,i=e.cx,a=e.innerProps,c=e.getStyles;return(0,o.tZ)("div",(0,r.Z)({css:c("indicatorsContainer",e),className:i({indicators:!0},n)},a),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,i=e.getStyles,a=e.innerProps;return(0,o.tZ)("span",(0,r.Z)({},a,{css:i("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,i=e.getStyles,c=e.value,s=S(e),u=s.innerRef,l=s.isDisabled,f=s.isHidden,d=s.inputClassName,p=(0,a.Z)(s,Pe);return(0,o.tZ)("div",{className:n({"input-container":!0},t),css:i("input",e),"data-value":c||""},(0,o.tZ)("input",(0,r.Z)({className:n({input:!0},d),ref:u,style:Te(f),disabled:l},p)))},LoadingIndicator:be,Menu:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,c=e.innerRef,s=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("menu",e),className:i({menu:!0},n),ref:c},s),t)},MenuList:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,c=e.innerProps,s=e.innerRef,u=e.isMulti;return(0,o.tZ)("div",(0,r.Z)({css:a("menuList",e),className:i({"menu-list":!0,"menu-list--is-multi":u},n),ref:s},c),t)},MenuPortal:re,LoadingMessage:ee,NoOptionsMessage:Q,MultiValue:function(e){var t=e.children,n=e.className,r=e.components,i=e.cx,a=e.data,c=e.getStyles,s=e.innerProps,u=e.isDisabled,l=e.removeProps,f=e.selectProps,d=r.Container,p=r.Label,h=r.Remove;return(0,o.tZ)(o.ms,null,(function(r){var m=r.css,v=r.cx;return(0,o.tZ)(d,{data:a,innerProps:g({className:v(m(c("multiValue",e)),i({"multi-value":!0,"multi-value--is-disabled":u},n))},s),selectProps:f},(0,o.tZ)(p,{data:a,innerProps:{className:v(m(c("multiValueLabel",e)),i({"multi-value__label":!0},n))},selectProps:f},t),(0,o.tZ)(h,{data:a,innerProps:g({className:v(m(c("multiValueRemove",e)),i({"multi-value__remove":!0},n)),"aria-label":"Remove ".concat(t||"option")},l),selectProps:f}))}))},MultiValueContainer:Ze,MultiValueLabel:Ze,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({role:"button"},n),t||(0,o.tZ)(le,{size:14}))},Option:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,c=e.isDisabled,s=e.isFocused,u=e.isSelected,l=e.innerRef,f=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("option",e),className:i({option:!0,"option--is-disabled":c,"option--is-focused":s,"option--is-selected":u},n),ref:l,"aria-disabled":c},f),t)},Placeholder:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,c=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("placeholder",e),className:i({placeholder:!0},n)},c),t)},SelectContainer:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,c=e.innerProps,s=e.isDisabled,u=e.isRtl;return(0,o.tZ)("div",(0,r.Z)({css:a("container",e),className:i({"--is-disabled":s,"--is-rtl":u},n)},c),t)},SingleValue:function(e){var t=e.children,n=e.className,i=e.cx,a=e.getStyles,c=e.isDisabled,s=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:a("singleValue",e),className:i({"single-value":!0,"single-value--is-disabled":c},n)},s),t)},ValueContainer:function(e){var t=e.children,n=e.className,i=e.cx,a=e.innerProps,c=e.isMulti,s=e.getStyles,u=e.hasValue;return(0,o.tZ)("div",(0,r.Z)({css:s("valueContainer",e),className:i({"value-container":!0,"value-container--is-multi":c,"value-container--has-value":u},n)},a),t)}},Ie=function(e){return g(g({},De),e.components)}},99430:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(1024)),o=c(n(46444)),i=c(n(30314)),a=c(n(83109));function c(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?v(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}a.default||console.error("It looks like Tether has not been included. Please load this dependency first https://github.com/HubSpot/tether");var y=[o.default.string,o.default.shape({appendChild:o.default.func.isRequired})],b=["auto auto","top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],w=function(e){function t(){var e,n;f(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return g(v(v(n=p(this,(e=h(t)).call.apply(e,[this].concat(i))))),"_targetNode",r.default.createRef()),g(v(v(n)),"_elementNode",r.default.createRef()),g(v(v(n)),"_elementParentNode",null),g(v(v(n)),"_tetherInstance",null),n}var n,o,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,e),n=t,o=[{key:"componentDidMount",value:function(){this._createContainer(),this.forceUpdate()}},{key:"componentDidUpdate",value:function(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){var t,n,r=(e.className||"").split(" ").filter((function(e){return e.length>0})),o=(this.props.className||"").split(" ").filter((function(e){return e.length>0}));(t=this._elementParentNode.classList).remove.apply(t,l(r)),(n=this._elementParentNode.classList).add.apply(n,l(o))}this._update()}},{key:"componentWillUnmount",value:function(){this._destroy()}},{key:"getTetherInstance",value:function(){return this._tetherInstance}},{key:"disable",value:function(){this._tetherInstance.disable()}},{key:"enable",value:function(){this._tetherInstance.enable()}},{key:"on",value:function(e,t,n){this._tetherInstance.on(e,t,n)}},{key:"once",value:function(e,t,n){this._tetherInstance.once(e,t,n)}},{key:"off",value:function(e,t){this._tetherInstance.off(e,t)}},{key:"position",value:function(){this._tetherInstance.position()}},{key:"_runRenders",value:function(){var e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,r.isValidElement)(e)||(e=null),(0,r.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}},{key:"_createTetherInstance",value:function(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new a.default(e),this._registerEventListeners()}},{key:"_destroyTetherInstance",value:function(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}},{key:"_registerEventListeners",value:function(){var e=this;this.on("update",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.props.onUpdate&&e.props.onUpdate.apply(e,n)})),this.on("repositioned",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.props.onRepositioned&&e.props.onRepositioned.apply(e,n)}))}},{key:"_destroy",value:function(){this._destroyTetherInstance(),this._removeContainer()}},{key:"_createContainer",value:function(){this._removeContainer();var e=this.props,t=e.renderElementTag,n=e.className;this._elementParentNode=document.createElement(t),this._elementParentNode.className=n||""}},{key:"_addContainerToDOM",value:function(){this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.appendChild(this._elementParentNode)}},{key:"_removeContainer",value:function(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.parentNode.removeChild(this._elementParentNode)}},{key:"_update",value:function(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}},{key:"_updateTether",value:function(){var e=this.props,t=(e.children,e.renderElementTag,e.renderElementTo,e.id),n=(e.className,e.style),r=(e.renderTarget,e.renderElement,u(e,["children","renderElementTag","renderElementTo","id","className","style","renderTarget","renderElement"])),o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){g(e,t,n[t])}))}return e}({target:this._targetNode.current,element:this._elementParentNode},r),i=t||"";if(this._elementParentNode.id!==i&&(this._elementParentNode.id=i),n){var a=this._elementParentNode.style;Object.keys(n).forEach((function(e){a[e]!==n[e]&&(a[e]=n[e])}))}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(o):this._createTetherInstance(o),this._tetherInstance.position()}},{key:"render",value:function(){var e=this._runRenders(),t=e.targetComponent,n=e.elementComponent;return t?r.default.createElement(r.default.Fragment,null,t,n&&this._elementParentNode&&i.default.createPortal(n,this._elementParentNode)):null}},{key:"_renderNode",get:function(){var e=this.props.renderElementTo;return"string"==typeof e?document.querySelector(e):e||document.body}}],o&&d(n.prototype,o),c&&d(n,c),t}(r.Component);g(w,"propTypes",{renderElementTag:o.default.string,renderElementTo:o.default.oneOfType(y),attachment:o.default.oneOf(b).isRequired,targetAttachment:o.default.oneOf(b),offset:o.default.string,targetOffset:o.default.string,targetModifier:o.default.string,enabled:o.default.bool,classes:o.default.object,classPrefix:o.default.string,optimizations:o.default.object,constraints:o.default.array,id:o.default.string,className:o.default.string,style:o.default.object,onUpdate:o.default.func,onRepositioned:o.default.func,renderTarget:o.default.func,renderElement:o.default.func,children:function(e,t,n){var o=e.children;if(r.Children.count(o)>0)return new Error("".concat(n," no longer uses children to render components. Please use renderTarget and renderElement instead."))}}),g(w,"defaultProps",{renderElementTag:"div",renderElementTo:null});var x=w;t.default=x},50855:(e,t,n)=>{"use strict";Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(99430))&&r.__esModule?r:{default:r}},83109:function(e,t){var n,r,o;/*! tether 1.4.7 */r=[],n=function(){"use strict";var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=void 0;void 0===n&&(n={modules:[]});var r=null;function o(e){var t=e.getBoundingClientRect(),n={};for(var r in t)n[r]=t[r];try{if(e.ownerDocument!==document){var i=e.ownerDocument.defaultView.frameElement;if(i){var a=o(i);n.top+=a.top,n.bottom+=a.top,n.left+=a.left,n.right+=a.left}}}catch(e){}return n}function i(e){var t=(getComputedStyle(e)||{}).position,n=[];if("fixed"===t)return[e];for(var r=e;(r=r.parentNode)&&r&&1===r.nodeType;){var o=void 0;try{o=getComputedStyle(r)}catch(e){}if(null==o)return n.push(r),n;var i=o,a=i.overflow,c=i.overflowX,s=i.overflowY;/(auto|scroll|overlay)/.test(a+s+c)&&("absolute"!==t||["relative","absolute","fixed"].indexOf(o.position)>=0)&&n.push(r)}return n.push(e.ownerDocument.body),e.ownerDocument!==document&&n.push(e.ownerDocument.defaultView),n}var a,c=(a=0,function(){return++a}),s={},u=function(){var e=r;e&&document.body.contains(e)||((e=document.createElement("div")).setAttribute("data-tether-id",c()),m(e.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(e),r=e);var t=e.getAttribute("data-tether-id");return void 0===s[t]&&(s[t]=o(e),E((function(){delete s[t]}))),s[t]};function l(){r&&document.body.removeChild(r),r=null}function f(e){var t=void 0;e===document?(t=document,e=document.documentElement):t=e.ownerDocument;var n=t.documentElement,r=o(e),i=u();return r.top-=i.top,r.left-=i.left,void 0===r.width&&(r.width=document.body.scrollWidth-r.left-r.right),void 0===r.height&&(r.height=document.body.scrollHeight-r.top-r.bottom),r.top=r.top-n.clientTop,r.left=r.left-n.clientLeft,r.right=t.body.clientWidth-r.width-r.left,r.bottom=t.body.clientHeight-r.height-r.top,r}function d(e){return e.offsetParent||document.documentElement}var p=null;function h(){if(p)return p;var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");m(t.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var r=e.offsetWidth;n===r&&(r=t.clientWidth),document.body.removeChild(t);var o=n-r;return p={width:o,height:o}}function m(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach((function(t){if(t)for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}function v(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.remove(t)}));else{var n=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),r=b(e).replace(n," ");w(e,r)}}function g(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.add(t)}));else{v(e,t);var n=b(e)+" "+t;w(e,n)}}function y(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=b(e);return new RegExp("(^| )"+t+"( |$)","gi").test(n)}function b(e){return e.className instanceof e.ownerDocument.defaultView.SVGAnimatedString?e.className.baseVal:e.className}function w(e,t){e.setAttribute("class",t)}function x(e,t,n){n.forEach((function(n){-1===t.indexOf(n)&&y(e,n)&&v(e,n)})),t.forEach((function(t){y(e,t)||g(e,t)}))}var O=[],E=function(e){O.push(e)},P=function(){for(var e=void 0;e=O.pop();)e()},k=function(){function n(){t(this,n)}return e(n,[{key:"on",value:function(e,t,n){var r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[e]&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:r})}},{key:"once",value:function(e,t,n){this.on(e,t,n,!0)}},{key:"off",value:function(e,t){if(void 0!==this.bindings&&void 0!==this.bindings[e])if(void 0===t)delete this.bindings[e];else for(var n=0;n<this.bindings[e].length;)this.bindings[e][n].handler===t?this.bindings[e].splice(n,1):++n}},{key:"trigger",value:function(e){if(void 0!==this.bindings&&this.bindings[e]){for(var t=0,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(;t<this.bindings[e].length;){var i=this.bindings[e][t],a=i.handler,c=i.ctx,s=i.once,u=c;void 0===u&&(u=this),a.apply(u,r),s?this.bindings[e].splice(t,1):++t}}}}]),n}();n.Utils={getActualBoundingClientRect:o,getScrollParents:i,getBounds:f,getOffsetParent:d,extend:m,addClass:g,removeClass:v,hasClass:y,updateClasses:x,defer:E,flush:P,uniqueId:c,Evented:k,getScrollBarSize:h,removeUtilElements:l};var S=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),j=(e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;r=!1,null===o&&(o=Function.prototype);var c=Object.getOwnPropertyDescriptor(o,i);if(void 0!==c){if("value"in c)return c.value;var s=c.get;if(void 0===s)return;return s.call(a)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=i,n=a,r=!0,c=u=void 0}});function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}if(void 0===n)throw new Error("You must include the utils.js file before tether.js");var i=(K=n.Utils).getScrollParents,d=(f=K.getBounds,K.getOffsetParent),g=(m=K.extend,K.addClass),v=K.removeClass,h=(x=K.updateClasses,E=K.defer,P=K.flush,K.getScrollBarSize),l=K.removeUtilElements;function C(e,t){var n=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return e+n>=t&&t>=e-n}var _,A,Z,N,R=function(){if("undefined"==typeof document)return"";for(var e=document.createElement("div"),t=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],n=0;n<t.length;++n){var r=t[n];if(void 0!==e.style[r])return r}}(),M=[],D=function(){M.forEach((function(e){e.position(!1)})),P()};function I(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now():+new Date}_=null,A=null,Z=null,N=function e(){if(void 0!==A&&A>16)return A=Math.min(A-16,250),void(Z=setTimeout(e,250));void 0!==_&&I()-_<10||(null!=Z&&(clearTimeout(Z),Z=null),_=I(),D(),A=I()-_)},"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach((function(e){window.addEventListener(e,N)}));var L={center:"center",left:"right",right:"left"},H={middle:"middle",top:"bottom",bottom:"top"},F={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},U=function(e,t){var n=e.left,r=e.top;return"auto"===n&&(n=L[t.left]),"auto"===r&&(r=H[t.top]),{left:n,top:r}},W=function(e){var t=e.left,n=e.top;return void 0!==F[e.left]&&(t=F[e.left]),void 0!==F[e.top]&&(n=F[e.top]),{left:t,top:n}};function B(){for(var e={top:0,left:0},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){var n=t.top,r=t.left;"string"==typeof n&&(n=parseFloat(n,10)),"string"==typeof r&&(r=parseFloat(r,10)),e.top+=n,e.left+=r})),e}function z(e,t){return"string"==typeof e.left&&-1!==e.left.indexOf("%")&&(e.left=parseFloat(e.left,10)/100*t.width),"string"==typeof e.top&&-1!==e.top.indexOf("%")&&(e.top=parseFloat(e.top,10)/100*t.height),e}var G=function(e){var t=e.split(" "),n=S(t,2);return{top:n[0],left:n[1]}},V=G,q=function(r){function o(e){var r=this;t(this,o),j(Object.getPrototypeOf(o.prototype),"constructor",this).call(this),this.position=this.position.bind(this),M.push(this),this.history=[],this.setOptions(e,!1),n.modules.forEach((function(e){void 0!==e.initialize&&e.initialize.call(r)})),this.position()}return T(o,r),e(o,[{key:"getClass",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=this.options.classes;return void 0!==t&&t[e]?this.options.classes[e]:this.options.classPrefix?this.options.classPrefix+"-"+e:e}},{key:"setOptions",value:function(e){var t=this,n=arguments.length<=1||void 0===arguments[1]||arguments[1],r={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=m(r,e);var o=this.options,a=o.element,c=o.target,s=o.targetModifier;if(this.element=a,this.target=c,this.targetModifier=s,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach((function(e){if(void 0===t[e])throw new Error("Tether Error: Both element and target must be defined");void 0!==t[e].jquery?t[e]=t[e][0]:"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),g(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&g(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=V(this.options.targetAttachment),this.attachment=V(this.options.attachment),this.offset=G(this.options.offset),this.targetOffset=G(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=i(this.target),!1!==this.options.enabled&&this.enable(n)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return f(this.target);if("visible"===this.targetModifier)return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:((i={height:(e=f(this.target)).height,width:e.width,top:e.top,left:e.left}).height=Math.min(i.height,e.height-(pageYOffset-e.top)),i.height=Math.min(i.height,e.height-(e.top+e.height-(pageYOffset+innerHeight))),i.height=Math.min(innerHeight,i.height),i.height-=2,i.width=Math.min(i.width,e.width-(pageXOffset-e.left)),i.width=Math.min(i.width,e.width-(e.left+e.width-(pageXOffset+innerWidth))),i.width=Math.min(innerWidth,i.width),i.width-=2,i.top<pageYOffset&&(i.top=pageYOffset),i.left<pageXOffset&&(i.left=pageXOffset),i);if("scroll-handle"===this.targetModifier){var e=void 0,t=this.target;t===document.body?(t=document.documentElement,e={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):e=f(t);var n=getComputedStyle(t),r=0;(t.scrollWidth>t.clientWidth||[n.overflow,n.overflowX].indexOf("scroll")>=0||this.target!==document.body)&&(r=15);var o=e.height-parseFloat(n.borderTopWidth)-parseFloat(n.borderBottomWidth)-r,i={width:15,height:.975*o*(o/t.scrollHeight),left:e.left+e.width-parseFloat(n.borderLeftWidth)-15},a=0;o<408&&this.target===document.body&&(a=-11e-5*Math.pow(o,2)-.00727*o+22.58),this.target!==document.body&&(i.height=Math.max(i.height,24));var c=this.target.scrollTop/(t.scrollHeight-o);return i.top=c*(o-i.height-a)+e.top+parseFloat(n.borderTopWidth),this.target===document.body&&(i.height=Math.max(i.height,24)),i}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(e,t){return void 0===this._cache&&(this._cache={}),void 0===this._cache[e]&&(this._cache[e]=t.call(this)),this._cache[e]}},{key:"enable",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&g(this.target,this.getClass("enabled")),g(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach((function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)})),t&&this.position()}},{key:"disable",value:function(){var e=this;v(this.target,this.getClass("enabled")),v(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.position)}))}},{key:"destroy",value:function(){var e=this;this.disable(),M.forEach((function(t,n){t===e&&M.splice(n,1)})),0===M.length&&l()}},{key:"updateAttachClasses",value:function(e,t){var n=this;e=e||this.attachment,t=t||this.targetAttachment;var r=["left","top","bottom","right","middle","center"];void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var o=this._addAttachClasses;e.top&&o.push(this.getClass("element-attached")+"-"+e.top),e.left&&o.push(this.getClass("element-attached")+"-"+e.left),t.top&&o.push(this.getClass("target-attached")+"-"+t.top),t.left&&o.push(this.getClass("target-attached")+"-"+t.left);var i=[];r.forEach((function(e){i.push(n.getClass("element-attached")+"-"+e),i.push(n.getClass("target-attached")+"-"+e)})),E((function(){void 0!==n._addAttachClasses&&(x(n.element,n._addAttachClasses,i),!1!==n.options.addTargetClasses&&x(n.target,n._addAttachClasses,i),delete n._addAttachClasses)}))}},{key:"position",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var r=U(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,r);var o=this.cache("element-bounds",(function(){return f(e.element)})),i=o.width,a=o.height;if(0===i&&0===a&&void 0!==this.lastSize){var c=this.lastSize;i=c.width,a=c.height}else this.lastSize={width:i,height:a};var s=this.cache("target-bounds",(function(){return e.getTargetBounds()})),u=s,l=z(W(this.attachment),{width:i,height:a}),p=z(W(r),u),m=z(this.offset,{width:i,height:a}),v=z(this.targetOffset,u);l=B(l,m),p=B(p,v);for(var g=s.left+p.left-l.left,y=s.top+p.top-l.top,b=0;b<n.modules.length;++b){var w=n.modules[b].position.call(this,{left:g,top:y,targetAttachment:r,targetPos:s,elementPos:o,offset:l,targetOffset:p,manualOffset:m,manualTargetOffset:v,scrollbarSize:k,attachment:this.attachment});if(!1===w)return!1;void 0!==w&&"object"==typeof w&&(y=w.top,g=w.left)}var x={page:{top:y,left:g},viewport:{top:y-pageYOffset,bottom:pageYOffset-y-a+innerHeight,left:g-pageXOffset,right:pageXOffset-g-i+innerWidth}},O=this.target.ownerDocument,E=O.defaultView,k=void 0;return E.innerHeight>O.documentElement.clientHeight&&(k=this.cache("scrollbar-size",h),x.viewport.bottom-=k.height),E.innerWidth>O.documentElement.clientWidth&&(k=this.cache("scrollbar-size",h),x.viewport.right-=k.width),-1!==["","static"].indexOf(O.body.style.position)&&-1!==["","static"].indexOf(O.body.parentElement.style.position)||(x.page.bottom=O.body.scrollHeight-y-a,x.page.right=O.body.scrollWidth-g-i),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var t=e.cache("target-offsetparent",(function(){return d(e.target)})),n=e.cache("target-offsetparent-bounds",(function(){return f(t)})),r=getComputedStyle(t),o=n,i={};if(["Top","Left","Bottom","Right"].forEach((function(e){i[e.toLowerCase()]=parseFloat(r["border"+e+"Width"])})),n.right=O.body.scrollWidth-n.left-o.width+i.right,n.bottom=O.body.scrollHeight-n.top-o.height+i.bottom,x.page.top>=n.top+i.top&&x.page.bottom>=n.bottom&&x.page.left>=n.left+i.left&&x.page.right>=n.right){var a=t.scrollTop,c=t.scrollLeft;x.offset={top:x.page.top-n.top+a-i.top,left:x.page.left-n.left+c-i.left}}}(),this.move(x),this.history.unshift(x),this.history.length>3&&this.history.pop(),t&&P(),!0}}},{key:"move",value:function(e){var t=this;if(void 0!==this.element.parentNode){var n={};for(var r in e)for(var o in n[r]={},e[r]){for(var i=!1,a=0;a<this.history.length;++a){var c=this.history[a];if(void 0!==c[r]&&!C(c[r][o],e[r][o])){i=!0;break}}i||(n[r][o]=!0)}var s={top:"",left:"",right:"",bottom:""},u=function(e,n){if(!1!==(void 0!==t.options.optimizations?t.options.optimizations.gpu:null)){var r=void 0,o=void 0;e.top?(s.top=0,r=n.top):(s.bottom=0,r=-n.bottom),e.left?(s.left=0,o=n.left):(s.right=0,o=-n.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(o=Math.round(o*devicePixelRatio)/devicePixelRatio,r=Math.round(r*devicePixelRatio)/devicePixelRatio),s[R]="translateX("+o+"px) translateY("+r+"px)","msTransform"!==R&&(s[R]+=" translateZ(0)")}else e.top?s.top=n.top+"px":s.bottom=n.bottom+"px",e.left?s.left=n.left+"px":s.right=n.right+"px"},l=!1;if((n.page.top||n.page.bottom)&&(n.page.left||n.page.right)?(s.position="absolute",u(n.page,e.page)):(n.viewport.top||n.viewport.bottom)&&(n.viewport.left||n.viewport.right)?(s.position="fixed",u(n.viewport,e.viewport)):void 0!==n.offset&&n.offset.top&&n.offset.left?function(){s.position="absolute";var r=t.cache("target-offsetparent",(function(){return d(t.target)}));d(t.element)!==r&&E((function(){t.element.parentNode.removeChild(t.element),r.appendChild(t.element)})),u(n.offset,e.offset),l=!0}():(s.position="absolute",u({top:!0,left:!0},e.page)),!l)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var f=function(e){var t=e.ownerDocument;return(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)===e},p=!0,h=this.element.parentNode;h&&1===h.nodeType&&"BODY"!==h.tagName&&!f(h);){if("static"!==getComputedStyle(h).position){p=!1;break}h=h.parentNode}p||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var v={},g=!1;for(var o in s){var y=s[o];this.element.style[o]!==y&&(g=!0,v[o]=y)}g&&E((function(){m(t.element.style,v),t.trigger("repositioned")}))}}}]),o}(k);q.modules=[],n.position=D;var $=m(q,n);S=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=(K=n.Utils).getBounds;var m=K.extend,Y=(x=K.updateClasses,E=K.defer,["left","top","right","bottom"]);function X(e,t){return"scrollParent"===t?t=e.scrollParents[0]:"window"===t&&(t=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),t===document&&(t=t.documentElement),void 0!==t.nodeType&&function(){var e=t,n=f(t),r=n,o=getComputedStyle(t);if(t=[r.left,r.top,n.width+r.left,n.height+r.top],e.ownerDocument!==document){var i=e.ownerDocument.defaultView;t[0]+=i.pageXOffset,t[1]+=i.pageYOffset,t[2]+=i.pageXOffset,t[3]+=i.pageYOffset}Y.forEach((function(e,n){"Top"===(e=e[0].toUpperCase()+e.substr(1))||"Left"===e?t[n]+=parseFloat(o["border"+e+"Width"]):t[n]-=parseFloat(o["border"+e+"Width"])}))}(),t}n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=e.targetAttachment;if(!this.options.constraints)return!0;var i=this.cache("element-bounds",(function(){return f(t.element)})),a=i.height,c=i.width;if(0===c&&0===a&&void 0!==this.lastSize){var s=this.lastSize;c=s.width,a=s.height}var u=this.cache("target-bounds",(function(){return t.getTargetBounds()})),l=u.height,d=u.width,p=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach((function(e){var t=e.outOfBoundsClass,n=e.pinnedClass;t&&p.push(t),n&&p.push(n)})),p.forEach((function(e){["left","top","right","bottom"].forEach((function(t){p.push(e+"-"+t)}))}));var h=[],v=m({},o),g=m({},this.attachment);return this.options.constraints.forEach((function(e){var i=e.to,s=e.attachment,u=e.pin;void 0===s&&(s="");var f=void 0,p=void 0;if(s.indexOf(" ")>=0){var m=s.split(" "),y=S(m,2);p=y[0],f=y[1]}else f=p=s;var b=X(t,i);"target"!==p&&"both"!==p||(n<b[1]&&"top"===v.top&&(n+=l,v.top="bottom"),n+a>b[3]&&"bottom"===v.top&&(n-=l,v.top="top")),"together"===p&&("top"===v.top&&("bottom"===g.top&&n<b[1]?(n+=l,v.top="bottom",n+=a,g.top="top"):"top"===g.top&&n+a>b[3]&&n-(a-l)>=b[1]&&(n-=a-l,v.top="bottom",g.top="bottom")),"bottom"===v.top&&("top"===g.top&&n+a>b[3]?(n-=l,v.top="top",n-=a,g.top="bottom"):"bottom"===g.top&&n<b[1]&&n+(2*a-l)<=b[3]&&(n+=a-l,v.top="top",g.top="top")),"middle"===v.top&&(n+a>b[3]&&"top"===g.top?(n-=a,g.top="bottom"):n<b[1]&&"bottom"===g.top&&(n+=a,g.top="top"))),"target"!==f&&"both"!==f||(r<b[0]&&"left"===v.left&&(r+=d,v.left="right"),r+c>b[2]&&"right"===v.left&&(r-=d,v.left="left")),"together"===f&&(r<b[0]&&"left"===v.left?"right"===g.left?(r+=d,v.left="right",r+=c,g.left="left"):"left"===g.left&&(r+=d,v.left="right",r-=c,g.left="right"):r+c>b[2]&&"right"===v.left?"left"===g.left?(r-=d,v.left="left",r-=c,g.left="right"):"right"===g.left&&(r-=d,v.left="left",r+=c,g.left="left"):"center"===v.left&&(r+c>b[2]&&"left"===g.left?(r-=c,g.left="right"):r<b[0]&&"right"===g.left&&(r+=c,g.left="left"))),"element"!==p&&"both"!==p||(n<b[1]&&"bottom"===g.top&&(n+=a,g.top="top"),n+a>b[3]&&"top"===g.top&&(n-=a,g.top="bottom")),"element"!==f&&"both"!==f||(r<b[0]&&("right"===g.left?(r+=c,g.left="left"):"center"===g.left&&(r+=c/2,g.left="left")),r+c>b[2]&&("left"===g.left?(r-=c,g.left="right"):"center"===g.left&&(r-=c/2,g.left="right"))),"string"==typeof u?u=u.split(",").map((function(e){return e.trim()})):!0===u&&(u=["top","left","right","bottom"]),u=u||[];var w,x,O=[],E=[];n<b[1]&&(u.indexOf("top")>=0?(n=b[1],O.push("top")):E.push("top")),n+a>b[3]&&(u.indexOf("bottom")>=0?(n=b[3]-a,O.push("bottom")):E.push("bottom")),r<b[0]&&(u.indexOf("left")>=0?(r=b[0],O.push("left")):E.push("left")),r+c>b[2]&&(u.indexOf("right")>=0?(r=b[2]-c,O.push("right")):E.push("right")),O.length&&(w=void 0,w=void 0!==t.options.pinnedClass?t.options.pinnedClass:t.getClass("pinned"),h.push(w),O.forEach((function(e){h.push(w+"-"+e)}))),E.length&&(x=void 0,x=void 0!==t.options.outOfBoundsClass?t.options.outOfBoundsClass:t.getClass("out-of-bounds"),h.push(x),E.forEach((function(e){h.push(x+"-"+e)}))),(O.indexOf("left")>=0||O.indexOf("right")>=0)&&(g.left=v.left=!1),(O.indexOf("top")>=0||O.indexOf("bottom")>=0)&&(g.top=v.top=!1),v.top===o.top&&v.left===o.left&&g.top===t.attachment.top&&g.left===t.attachment.left||(t.updateAttachClasses(g,v),t.trigger("update",{attachment:g,targetAttachment:v}))})),E((function(){!1!==t.options.addTargetClasses&&x(t.target,h,p),x(t.element,h,p)})),{top:n,left:r}}});var K,f=(K=n.Utils).getBounds,x=K.updateClasses;return E=K.defer,n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=this.cache("element-bounds",(function(){return f(t.element)})),i=o.height,a=o.width,c=this.getTargetBounds(),s=n+i,u=r+a,l=[];n<=c.bottom&&s>=c.top&&["left","right"].forEach((function(e){var t=c[e];t!==r&&t!==u||l.push(e)})),r<=c.right&&u>=c.left&&["top","bottom"].forEach((function(e){var t=c[e];t!==n&&t!==s||l.push(e)}));var d=[],p=[],h=["left","top","right","bottom"];return d.push(this.getClass("abutted")),h.forEach((function(e){d.push(t.getClass("abutted")+"-"+e)})),l.length&&p.push(this.getClass("abutted")),l.forEach((function(e){p.push(t.getClass("abutted")+"-"+e)})),E((function(){!1!==t.options.addTargetClasses&&x(t.target,p,d),x(t.element,p,d)})),!0}}),S=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n.modules.push({position:function(e){var t=e.top,n=e.left;if(this.options.shift){var r=this.options.shift;"function"==typeof this.options.shift&&(r=this.options.shift.call(this,{top:t,left:n}));var o=void 0,i=void 0;if("string"==typeof r){(r=r.split(" "))[1]=r[1]||r[0];var a=S(r,2);o=a[0],i=a[1],o=parseFloat(o,10),i=parseFloat(i,10)}else o=r.top,i=r.left;return{top:t+=o,left:n+=i}}}}),$},void 0===(o="function"==typeof n?n.apply(t,r):n)||(e.exports=o)},13615:function(e){
58
58
  /*! @license DOMPurify 2.3.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.10/LICENSE */
59
- e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,i){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i},r.apply(null,arguments)}function o(e){return i(e)||a(e)||c(e)||u()}function i(e){if(Array.isArray(e))return s(e)}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function c(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=Object.hasOwnProperty,f=Object.setPrototypeOf,d=Object.isFrozen,p=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor,m=Object.freeze,v=Object.seal,g=Object.create,y="undefined"!=typeof Reflect&&Reflect,b=y.apply,w=y.construct;b||(b=function(e,t,n){return e.apply(t,n)}),m||(m=function(e){return e}),v||(v=function(e){return e}),w||(w=function(e,t){return r(e,o(t))});var x=A(Array.prototype.forEach),O=A(Array.prototype.pop),E=A(Array.prototype.push),P=A(String.prototype.toLowerCase),k=A(String.prototype.match),S=A(String.prototype.replace),j=A(String.prototype.indexOf),T=A(String.prototype.trim),C=A(RegExp.prototype.test),_=Z(TypeError);function A(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(e,t,r)}}function Z(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(e,n)}}function N(e,t,n){n=n||P,f&&f(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var i=n(o);i!==o&&(d(t)||(t[r]=i),o=i)}e[o]=!0}return e}function R(e){var t,n=g(null);for(t in e)b(l,e,[t])&&(n[t]=e[t]);return n}function M(e,t){for(;null!==e;){var n=h(e,t);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}e=p(e)}function r(e){return console.warn("fallback value for",e),null}return r}var D=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),H=m(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),F=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),U=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),W=m(["#text"]),B=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z=m(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),G=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=v(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$=v(/<%[\w\W]*|[\w\W]*%>/gm),Y=v(/^data-[\-\w.\u00B7-\uFFFF]/),X=v(/^aria-[\-\w]+$/),K=v(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=v(/^(?:\w+script|data):/i),Q=v(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=v(/^html$/i),te=function(){return"undefined"==typeof window?null:window},ne=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function re(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te(),n=function(e){return re(e)};if(n.version="2.3.10",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,a=t.DocumentFragment,c=t.HTMLTemplateElement,s=t.Node,u=t.Element,l=t.NodeFilter,f=t.NamedNodeMap,d=void 0===f?t.NamedNodeMap||t.MozNamedAttrMap:f,p=t.HTMLFormElement,h=t.DOMParser,v=t.trustedTypes,g=u.prototype,y=M(g,"cloneNode"),b=M(g,"nextSibling"),w=M(g,"childNodes"),A=M(g,"parentNode");if("function"==typeof c){var Z=i.createElement("template");Z.content&&Z.content.ownerDocument&&(i=Z.content.ownerDocument)}var oe=ne(v,r),ie=oe?oe.createHTML(""):"",ae=i,ce=ae.implementation,se=ae.createNodeIterator,ue=ae.createDocumentFragment,le=ae.getElementsByTagName,fe=r.importNode,de={};try{de=R(i).documentMode?i.documentMode:{}}catch(e){}var pe={};n.isSupported="function"==typeof A&&ce&&void 0!==ce.createHTMLDocument&&9!==de;var he,me,ve=q,ge=$,ye=Y,be=X,we=J,xe=Q,Oe=K,Ee=null,Pe=N({},[].concat(o(D),o(I),o(L),o(F),o(W))),ke=null,Se=N({},[].concat(o(B),o(z),o(G),o(V))),je=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,Ce=null,_e=!0,Ae=!0,Ze=!1,Ne=!1,Re=!1,Me=!1,De=!1,Ie=!1,Le=!1,He=!1,Fe=!0,Ue=!0,We=!1,Be={},ze=null,Ge=N({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ve=null,qe=N({},["audio","video","img","source","image","track"]),$e=null,Ye=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml",Qe=Je,et=!1,tt=["application/xhtml+xml","text/html"],nt="text/html",rt=null,ot=i.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},at=function(t){rt&&rt===t||(t&&"object"===e(t)||(t={}),t=R(t),he=he=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?nt:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===he?function(e){return e}:P,Ee="ALLOWED_TAGS"in t?N({},t.ALLOWED_TAGS,me):Pe,ke="ALLOWED_ATTR"in t?N({},t.ALLOWED_ATTR,me):Se,$e="ADD_URI_SAFE_ATTR"in t?N(R(Ye),t.ADD_URI_SAFE_ATTR,me):Ye,Ve="ADD_DATA_URI_TAGS"in t?N(R(qe),t.ADD_DATA_URI_TAGS,me):qe,ze="FORBID_CONTENTS"in t?N({},t.FORBID_CONTENTS,me):Ge,Te="FORBID_TAGS"in t?N({},t.FORBID_TAGS,me):{},Ce="FORBID_ATTR"in t?N({},t.FORBID_ATTR,me):{},Be="USE_PROFILES"in t&&t.USE_PROFILES,_e=!1!==t.ALLOW_ARIA_ATTR,Ae=!1!==t.ALLOW_DATA_ATTR,Ze=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=t.SAFE_FOR_TEMPLATES||!1,Re=t.WHOLE_DOCUMENT||!1,Ie=t.RETURN_DOM||!1,Le=t.RETURN_DOM_FRAGMENT||!1,He=t.RETURN_TRUSTED_TYPE||!1,De=t.FORCE_BODY||!1,Fe=!1!==t.SANITIZE_DOM,Ue=!1!==t.KEEP_CONTENT,We=t.IN_PLACE||!1,Oe=t.ALLOWED_URI_REGEXP||Oe,Qe=t.NAMESPACE||Je,t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(je.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(je.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(je.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(Ae=!1),Le&&(Ie=!0),Be&&(Ee=N({},o(W)),ke=[],!0===Be.html&&(N(Ee,D),N(ke,B)),!0===Be.svg&&(N(Ee,I),N(ke,z),N(ke,V)),!0===Be.svgFilters&&(N(Ee,L),N(ke,z),N(ke,V)),!0===Be.mathMl&&(N(Ee,F),N(ke,G),N(ke,V))),t.ADD_TAGS&&(Ee===Pe&&(Ee=R(Ee)),N(Ee,t.ADD_TAGS,me)),t.ADD_ATTR&&(ke===Se&&(ke=R(ke)),N(ke,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&N($e,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(ze===Ge&&(ze=R(ze)),N(ze,t.FORBID_CONTENTS,me)),Ue&&(Ee["#text"]=!0),Re&&N(Ee,["html","head","body"]),Ee.table&&(N(Ee,["tbody"]),delete Te.tbody),m&&m(t),rt=t)},ct=N({},["mi","mo","mn","ms","mtext"]),st=N({},["foreignobject","desc","title","annotation-xml"]),ut=N({},["title","style","font","a","script"]),lt=N({},I);N(lt,L),N(lt,H);var ft=N({},F);N(ft,U);var dt=function(e){var t=A(e);t&&t.tagName||(t={namespaceURI:Je,tagName:"template"});var n=P(e.tagName),r=P(t.tagName);return e.namespaceURI===Ke?t.namespaceURI===Je?"svg"===n:t.namespaceURI===Xe?"svg"===n&&("annotation-xml"===r||ct[r]):Boolean(lt[n]):e.namespaceURI===Xe?t.namespaceURI===Je?"math"===n:t.namespaceURI===Ke?"math"===n&&st[r]:Boolean(ft[n]):e.namespaceURI===Je&&!(t.namespaceURI===Ke&&!st[r])&&!(t.namespaceURI===Xe&&!ct[r])&&!ft[n]&&(ut[n]||!lt[n])},pt=function(e){E(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},ht=function(e,t){try{E(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){E(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ke[e])if(Ie||Le)try{pt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},mt=function(e){var t,n;if(De)e="<remove></remove>"+e;else{var r=k(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(Qe===Je)try{t=(new h).parseFromString(o,he)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?"":o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),Qe===Je?le.call(t,Re?"html":"body")[0]:Re?t.documentElement:a},vt=function(e){return se.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},gt=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},yt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},bt=function(e,t,r){pe[e]&&x(pe[e],(function(e){e.call(n,t,r,rt)}))},wt=function(e){var t;if(bt("beforeSanitizeElements",e,null),gt(e))return pt(e),!0;if(C(/[\u0080-\uFFFF]/,e.nodeName))return pt(e),!0;var r=me(e.nodeName);if(bt("uponSanitizeElement",e,{tagName:r,allowedTags:Ee}),e.hasChildNodes()&&!yt(e.firstElementChild)&&(!yt(e.content)||!yt(e.content.firstElementChild))&&C(/<[/\w]/g,e.innerHTML)&&C(/<[/\w]/g,e.textContent))return pt(e),!0;if("select"===r&&C(/<template/i,e.innerHTML))return pt(e),!0;if(!Ee[r]||Te[r]){if(!Te[r]&&Ot(r)){if(je.tagNameCheck instanceof RegExp&&C(je.tagNameCheck,r))return!1;if(je.tagNameCheck instanceof Function&&je.tagNameCheck(r))return!1}if(Ue&&!ze[r]){var o=A(e)||e.parentNode,i=w(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(y(i[a],!0),b(e))}return pt(e),!0}return e instanceof u&&!dt(e)?(pt(e),!0):"noscript"!==r&&"noembed"!==r||!C(/<\/no(script|embed)/i,e.innerHTML)?(Ne&&3===e.nodeType&&(t=e.textContent,t=S(t,ve," "),t=S(t,ge," "),e.textContent!==t&&(E(n.removed,{element:e.cloneNode()}),e.textContent=t)),bt("afterSanitizeElements",e,null),!1):(pt(e),!0)},xt=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in i||n in ot))return!1;if(Ae&&!Ce[t]&&C(ye,t));else if(_e&&C(be,t));else if(!ke[t]||Ce[t]){if(!(Ot(e)&&(je.tagNameCheck instanceof RegExp&&C(je.tagNameCheck,e)||je.tagNameCheck instanceof Function&&je.tagNameCheck(e))&&(je.attributeNameCheck instanceof RegExp&&C(je.attributeNameCheck,t)||je.attributeNameCheck instanceof Function&&je.attributeNameCheck(t))||"is"===t&&je.allowCustomizedBuiltInElements&&(je.tagNameCheck instanceof RegExp&&C(je.tagNameCheck,n)||je.tagNameCheck instanceof Function&&je.tagNameCheck(n))))return!1}else if($e[t]);else if(C(Oe,S(n,xe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==j(n,"data:")||!Ve[e])if(Ze&&!C(we,S(n,xe,"")));else if(n)return!1;return!0},Ot=function(e){return e.indexOf("-")>0},Et=function(t){var r,o,i,a;bt("beforeSanitizeAttributes",t,null);var c=t.attributes;if(c){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke};for(a=c.length;a--;){var u=r=c[a],l=u.name,f=u.namespaceURI;if(o="value"===l?r.value:T(r.value),i=me(l),s.attrName=i,s.attrValue=o,s.keepAttr=!0,s.forceKeepAttr=void 0,bt("uponSanitizeAttribute",t,s),o=s.attrValue,!s.forceKeepAttr&&(ht(l,t),s.keepAttr))if(C(/\/>/i,o))ht(l,t);else{Ne&&(o=S(o,ve," "),o=S(o,ge," "));var d=me(t.nodeName);if(xt(d,i,o)){if(oe&&"object"===e(v)&&"function"==typeof v.getAttributeType)if(f);else switch(v.getAttributeType(d,i)){case"TrustedHTML":o=oe.createHTML(o);break;case"TrustedScriptURL":o=oe.createScriptURL(o)}try{f?t.setAttributeNS(f,l,o):t.setAttribute(l,o),O(n.removed)}catch(e){}}}}bt("afterSanitizeAttributes",t,null)}},Pt=function e(t){var n,r=vt(t);for(bt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)bt("uponSanitizeShadowNode",n,null),wt(n)||(n.content instanceof a&&e(n.content),Et(n));bt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(o,i){var c,u,l,f,d;if((et=!o)&&(o="\x3c!--\x3e"),"string"!=typeof o&&!yt(o)){if("function"!=typeof o.toString)throw _("toString is not a function");if("string"!=typeof(o=o.toString()))throw _("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof o)return t.toStaticHTML(o);if(yt(o))return t.toStaticHTML(o.outerHTML)}return o}if(Me||at(i),n.removed=[],"string"==typeof o&&(We=!1),We){if(o.nodeName){var p=me(o.nodeName);if(!Ee[p]||Te[p])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof s)1===(u=(c=mt("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?c=u:c.appendChild(u);else{if(!Ie&&!Ne&&!Re&&-1===o.indexOf("<"))return oe&&He?oe.createHTML(o):o;if(!(c=mt(o)))return Ie?null:He?ie:""}c&&De&&pt(c.firstChild);for(var h=vt(We?o:c);l=h.nextNode();)3===l.nodeType&&l===f||wt(l)||(l.content instanceof a&&Pt(l.content),Et(l),f=l);if(f=null,We)return o;if(Ie){if(Le)for(d=ue.call(c.ownerDocument);c.firstChild;)d.appendChild(c.firstChild);else d=c;return ke.shadowroot&&(d=fe.call(r,d,!0)),d}var m=Re?c.outerHTML:c.innerHTML;return Re&&Ee["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&C(ee,c.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+c.ownerDocument.doctype.name+">\n"+m),Ne&&(m=S(m,ve," "),m=S(m,ge," ")),oe&&He?oe.createHTML(m):m},n.setConfig=function(e){at(e),Me=!0},n.clearConfig=function(){rt=null,Me=!1},n.isValidAttribute=function(e,t,n){rt||at({});var r=me(e),o=me(t);return xt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],E(pe[e],t))},n.removeHook=function(e){if(pe[e])return O(pe[e])},n.removeHooks=function(e){pe[e]&&(pe[e]=[])},n.removeAllHooks=function(){pe={}},n}return re()}()},1024:t=>{"use strict";t.exports=e},30314:e=>{"use strict";e.exports=t},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},88911:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},83029:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},11259:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},44822:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:()=>o})},46927:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},3640:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},32208:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,{Z:()=>o})},56265:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},56315:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},68957:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(83029);var o=n(61917),i=n(56265);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},91411:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:()=>r})},73891:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},61917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(88911);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=o,a.amdD=function(){throw new Error("define cannot be used indirect")},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>323===e?"chunk-ckeditor.1abc645fc07566c8fb5e.js":"chunk-"+({85:"code-editor",107:"actions",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"1d742f80c80e0910e94e",107:"433dea2dd90d92e1e63b",200:"4ac5c1e4384d64ab3145",568:"385073900cd04fafc830",594:"b69925641dd935fc64d3",611:"a4bfcae13fcda03f5ccb",614:"53d453d71f31ba2ecad5",701:"a1745bfaf60816644ee7",815:"7b09e3ff78a51b011b7e",817:"e73a823a9955937971f9",877:"9a3b20074efd5807688b"}[e]+".js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-entity-browser:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){c=f;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,a.nc&&c.setAttribute("nonce",a.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var d=(t,r)=>{c.onerror=c.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=d.bind(null,c.onerror),c.onload=d.bind(null,c.onload),s&&document.head.appendChild(c)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.p="/",(()=>{var e={179:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),c=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",c.name="ChunkLoadError",c.type=o,c.request=i,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,c,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in c)a.o(c,r)&&(a.m[r]=c[r]);if(s)s(a)}for(t&&t(n);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_entity_browser=self.webpackChunktocco_entity_browser||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0;var c={};return(()=>{"use strict";a.r(c),a.d(c,{app:()=>lt,default:()=>ut});var e,t=a(59713),n=a.n(t),r=a(52540),o=a(83682),i=a(41609),s=a.n(i),u=a(18446),l=a.n(u),f=a(35937),d=a.n(f),p=a(45697),h=a.n(p),m=a(1024),v=a.n(m),g=a(3975),y=a(50600),b=a(55954),w=a(99227),x=a(22731),O=a(19743),E=a(45430),P="login/SET_LOGGED_IN",k="login/SET_ADMIN_ALLOWED",S="login/DO_SESSION_CHECK",j=function(e){return{type:P,payload:{loggedIn:e}}},T=function(e){return{type:k,payload:{adminAllowed:e}}},C=a(81770),_=(e={},n()(e,P,C.Z.singleTransferReducer("loggedIn")),n()(e,k,C.Z.singleTransferReducer("adminAllowed")),e),A={loggedIn:void 0,adminAllowed:void 0};function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,t=arguments.length>1?arguments[1]:void 0,n=_[t.type];return n?n(e,t):e}var N=a(87757),R=a.n(N),M=a(34857),D=a(44759),I=a(54159),L=a(21913),H=a(47490),F=R().mark(z),U=R().mark(G),W=R().mark(V);function B(e,t){return I.Z.executeRequest(e,t).then(I.Z.extractBody).catch((function(e){return D.Z.logError("Failed to execute request",e),{success:!1}}))}function z(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.RE)(B,"session",{method:"POST"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),F)}function G(){var e,t,n,r,o;return R().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,M.RE)(z);case 2:if(e=i.sent,t=e.success,n=e.businessUnit,r=e.adminAllowed,!(o=L.Z.getLongTerm("session","principal"))||o.currentBusinessUnit.id===n){i.next=10;break}return i.next=10,(0,M.RE)(L.Z.clearAll);case 10:return i.next=12,(0,M.gz)(T(r));case 12:return i.next=14,(0,M.gz)(j(t));case 14:return i.next=16,(0,M.gz)(H.Z.connectSocket());case 16:case"end":return i.stop()}}),U)}function V(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.$6)([(0,M.Fm)(S,G)]);case 2:case"end":return e.stop()}}),W)}const q=function(e){C.Z.injectReducers(e,{login:Z}),e.sagaMiddleware.run(V)},$=function(){return{type:S}};var Y=a(81749),X=a(79311),K=a(98773);const J={propTypes:h().shape({embedType:h().oneOf(K.Nc),widgetConfigKey:function(e,t,n){if("widget"===e.embedType&&!e[t])return new Error("Prop `"+t+"` is missing for `"+n+"`. Validation failed.")}})};var Q,ee=a(23369),te=a(35997),ne=a(41654),re="SET_ENTITY_NAME",oe="SET_FORM_BASE",ie="SET_SCROLL_BEHAVIOUR",ae="root/SET_APP_ID",ce=function(e){return{type:oe,payload:{formBase:e}}},se=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ne.Z.getDispatchActions(e,ue,t)},ue=[{name:"entityName",action:function(e){return{type:re,payload:{entityName:e}}},mandatory:!0,argsFactory:function(e){return[e.entityName]}},{name:"entityName",action:ce,argsFactory:function(e){return[e.formBase||e.entityName]}},{name:"formBase",action:ce,argsFactory:function(e){return[e.formBase]}},{name:"scrollBehaviour",action:function(e){return{type:ie,payload:{scrollBehaviour:e}}},argsFactory:function(e){return[e.scrollBehaviour]}},{name:"id",action:function(e){return{type:ae,payload:{appId:e}}},argsFactory:function(e){return[e.id||(new Date).valueOf()]}}],le=a(30496),fe=a(6766),de=(Q={},n()(Q,fe.zg,C.Z.singleTransferReducer("formTouched")),n()(Q,fe.zJ,C.Z.singleTransferReducer("detailParams")),Q),pe={detailParams:void 0,formTouched:!1};var he=a(63094),me=R().mark(be);function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ye=function(e){var t={};return e.fields.forEach((function(e){t[e.fieldName]=ge({},e)})),e.relations.forEach((function(e){t[e.relationName]=ge({type:"relation"},e)})),t};function be(e){var t,n,r=arguments;return R().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=r.length>1&&void 0!==r[1]?r[1]:ye,o.next=3,(0,M.RE)(he.Z.requestSaga,"entities/".concat(e,"/model"));case 3:return n=o.sent,o.next=6,(0,M.RE)(t,n.body);case 6:return o.abrupt("return",o.sent);case 7:case"end":return o.stop()}}),me)}var we={CREATE:"create",UPDATE:"update"};const xe=function(e){return void 0===e?we.CREATE:we.UPDATE};const Oe=function(e){var t=e.split("/").filter((function(e){return!!e})),n=t[t.length-1],r=t.filter((function(e,t){return t>1&&t%2==0}));if(isNaN(n)){return{modelPaths:r,entityId:undefined,parentUrl:"/"+t.slice(0,-1).join("/")}}return{modelPaths:r,entityId:t[t.length-1],parentUrl:"/"+t.slice(0,-2).join("/")}};const Ee=function(e,t){return 0!==t.length||(!e||isNaN(e))};var Pe=R().mark(_e),ke=R().mark(Ae),Se=R().mark(Ze),je=R().mark(Ne),Te=function(e){return e.entityBrowser},Ce=function(e){return e.input};function _e(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.$6)([(0,M.Fm)(fe.tQ,Ze),(0,M.Fm)(fe.eI,Ae)]);case 2:case"end":return e.stop()}}),Pe)}function Ae(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.gz)(fe.Ek(void 0));case 2:case"end":return e.stop()}}),ke)}function Ze(e){var t,n,r,o,i,a,c,s,u,l,f,d,p,h,m;return R().wrap((function(v){for(;;)switch(v.prev=v.next){case 0:return t=e.payload,v.next=3,(0,M.RE)(Oe,t.url);case 3:return n=v.sent,r=n.modelPaths,o=n.entityId,i=n.parentUrl,v.next=9,(0,M.Ys)(Te);case 9:return a=v.sent,c=a.entityName,s=a.formBase,v.next=14,(0,M.RE)(xe,o);case 14:if(u=v.sent,l=c,f=s,!(r&&r.length>0)){v.next=22;break}return v.next=20,(0,M.RE)(Ne,c,r);case 20:l=v.sent,f="".concat(s,"_").concat(l);case 22:return v.next=24,(0,M.Ys)(Ce);case 24:return d=v.sent,p=d.initialKey,v.next=28,(0,M.RE)(Ee,p,r);case 28:return h=v.sent,m={mode:u,entityId:o,entityName:l,formName:f,parentUrl:i,showBackButton:h},v.next=32,(0,M.gz)(fe.Ek(m));case 32:case"end":return v.stop()}}),Se)}function Ne(e,t){var n,r,o,i,a;return R().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return n=e,c.next=3,(0,M.RE)(be,n);case 3:r=c.sent,o=0;case 5:if(!(o<t.length)){c.next=18;break}if(i=t[o],a=r[i]){c.next=10;break}throw new Error("No such path '".concat(i,"' found on entity model '").concat(n,"'"));case 10:if(n=a.targetEntity,!(o+1<t.length)){c.next=15;break}return c.next=14,(0,M.RE)(be,n);case 14:r=c.sent;case 15:o++,c.next=5;break;case 18:return c.abrupt("return",n);case 19:case"end":return c.stop()}}),je)}var Re=R().mark(Me);function Me(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.$6)([(0,M.rM)(_e)]);case 2:case"end":return e.stop()}}),Re)}const De=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pe,t=arguments.length>1?arguments[1]:void 0,n=de[t.type];return n?n(e,t):e};var Ie;function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function He(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Fe=(Ie={},n()(Ie,re,C.Z.singleTransferReducer("entityName")),n()(Ie,oe,(function(e,t){var n=t.payload.formBase;return n?He(He({},e),{},{formBase:n}):He({},e)})),n()(Ie,ie,C.Z.singleTransferReducer("scrollBehaviour")),n()(Ie,ae,C.Z.singleTransferReducer("appId")),Ie),Ue={entityName:"",formBase:"",scrollBehaviour:"none",appId:""};var We=R().mark(ze),Be=R().mark(Ge);function ze(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.$6)([(0,M.RE)(Ge)]);case 2:case"end":return e.stop()}}),We)}function Ge(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.qn)(b.Z.INPUT_INITIALIZED);case 2:return e.next=4,(0,M.gz)($());case 4:case"end":return e.stop()}}),Be)}var Ve=R().mark(qe);function qe(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.$6)([(0,M.rM)(ze)]);case 2:case"end":return e.stop()}}),Ve)}const $e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ue,t=arguments.length>1?arguments[1]:void 0,n=Fe[t.type];return n?n(e,t):e},Ye={detail:De,form:le.Z,entityBrowser:$e};var Xe,Ke,Je,Qe=[qe,Me],et=a(85893);function tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var rt="entity-browser",ot=v().lazy((function(){return Promise.all([a.e(815),a.e(614)]).then(a.bind(a,87010))})),it=function(){return Xe||(Xe=(0,et.jsx)("div",{children:(0,et.jsx)(m.Suspense,{fallback:"",children:(0,et.jsx)(ot,{})})}))},at=function(e,t){return e.intl.messages[t]||t},ct=function(e,t,n,i){t=nt(nt({},t),{},{id:e}),ee.Z.setInputEnvs(t);var a=b.Z.createStore(Ye,Qe,t,rt);E.Z.addToStore(a,(function(){return{}})),y.Z.addToStore(a),w.Z.dynamicActionsAddToStore(a),O.Z.addToStore(a,!0,["console","remote","notification"]),H.Z.addToStore(a,!0),q(a),x.Z.addToStore(a);var c=function(e,t){return(t?o.Z:r.Z)({getUserConfirmation:function(t,n){var r=e.getState(),o=at(r,"client.common.ok"),i=at(r,"client.common.cancel"),a=H.Z.confirm("",t,o,i,(function(){return n(!0)}),(function(){return n(!1)}));e.dispatch(a)}})}(a,t.memoryHistory);!function(e,t){var n=t.initialKey;if(n&&!isNaN(n)&&!e.location.pathname.match(/\/detail\/[0-9]*/)){var r="/detail/".concat(t.initialKey);e.push(r)}}(c,t);var s=(0,et.jsxs)(g.F0,{history:c,children:[Ke||(Ke=(0,et.jsx)(X.Z,{})),Je||(Je=(0,et.jsx)(it,{}))]});return b.Z.createApp(rt,s,a,{input:t,actions:se(t),publicPath:i,textResourceModules:["component","common","actions","entity-list","entity-detail"]})};b.Z.registerAppInRegistry(rt,ct);var st=function(e){var t=b.Z.useApp({initApp:ct,props:e,packageName:rt}),n=t.component,r=t.store,o=te.Z.usePrevious(e);return te.Z.useDidUpdate((function(){var t=d()(e,(function(e,t){return!l()(e,o[t])}));s()(t)||se(t,!1).forEach((function(e){r.dispatch(e)}))}),[e]),n};st.propTypes={entityName:h().string.isRequired,searchFormType:Y.b,formBase:h().string,limit:h().number,preselectedSearchFields:h().array,searchFilters:h().arrayOf(h().string),simpleSearchFields:h().string,initialKey:h().string,businessUnit:h().string,memoryHistory:h().bool,backendUrl:h().string,scrollBehaviour:h().string,appContext:J.propTypes,modifyFormDefinition:h().func,disableDetailView:h().bool,reportIds:h().arrayOf(h().string)};const ut=st;var lt=b.Z.createBundleableApp(rt,ct,st)})(),c})()));
59
+ e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,i){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i},r.apply(null,arguments)}function o(e){return i(e)||a(e)||c(e)||u()}function i(e){if(Array.isArray(e))return s(e)}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function c(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=Object.hasOwnProperty,f=Object.setPrototypeOf,d=Object.isFrozen,p=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor,m=Object.freeze,v=Object.seal,g=Object.create,y="undefined"!=typeof Reflect&&Reflect,b=y.apply,w=y.construct;b||(b=function(e,t,n){return e.apply(t,n)}),m||(m=function(e){return e}),v||(v=function(e){return e}),w||(w=function(e,t){return r(e,o(t))});var x=A(Array.prototype.forEach),O=A(Array.prototype.pop),E=A(Array.prototype.push),P=A(String.prototype.toLowerCase),k=A(String.prototype.match),S=A(String.prototype.replace),j=A(String.prototype.indexOf),T=A(String.prototype.trim),C=A(RegExp.prototype.test),_=Z(TypeError);function A(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(e,t,r)}}function Z(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(e,n)}}function N(e,t,n){n=n||P,f&&f(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var i=n(o);i!==o&&(d(t)||(t[r]=i),o=i)}e[o]=!0}return e}function R(e){var t,n=g(null);for(t in e)b(l,e,[t])&&(n[t]=e[t]);return n}function M(e,t){for(;null!==e;){var n=h(e,t);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}e=p(e)}function r(e){return console.warn("fallback value for",e),null}return r}var D=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),H=m(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),F=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),U=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),W=m(["#text"]),B=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z=m(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),G=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=v(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$=v(/<%[\w\W]*|[\w\W]*%>/gm),Y=v(/^data-[\-\w.\u00B7-\uFFFF]/),X=v(/^aria-[\-\w]+$/),K=v(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=v(/^(?:\w+script|data):/i),Q=v(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=v(/^html$/i),te=function(){return"undefined"==typeof window?null:window},ne=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function re(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te(),n=function(e){return re(e)};if(n.version="2.3.10",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,a=t.DocumentFragment,c=t.HTMLTemplateElement,s=t.Node,u=t.Element,l=t.NodeFilter,f=t.NamedNodeMap,d=void 0===f?t.NamedNodeMap||t.MozNamedAttrMap:f,p=t.HTMLFormElement,h=t.DOMParser,v=t.trustedTypes,g=u.prototype,y=M(g,"cloneNode"),b=M(g,"nextSibling"),w=M(g,"childNodes"),A=M(g,"parentNode");if("function"==typeof c){var Z=i.createElement("template");Z.content&&Z.content.ownerDocument&&(i=Z.content.ownerDocument)}var oe=ne(v,r),ie=oe?oe.createHTML(""):"",ae=i,ce=ae.implementation,se=ae.createNodeIterator,ue=ae.createDocumentFragment,le=ae.getElementsByTagName,fe=r.importNode,de={};try{de=R(i).documentMode?i.documentMode:{}}catch(e){}var pe={};n.isSupported="function"==typeof A&&ce&&void 0!==ce.createHTMLDocument&&9!==de;var he,me,ve=q,ge=$,ye=Y,be=X,we=J,xe=Q,Oe=K,Ee=null,Pe=N({},[].concat(o(D),o(I),o(L),o(F),o(W))),ke=null,Se=N({},[].concat(o(B),o(z),o(G),o(V))),je=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,Ce=null,_e=!0,Ae=!0,Ze=!1,Ne=!1,Re=!1,Me=!1,De=!1,Ie=!1,Le=!1,He=!1,Fe=!0,Ue=!0,We=!1,Be={},ze=null,Ge=N({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ve=null,qe=N({},["audio","video","img","source","image","track"]),$e=null,Ye=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml",Qe=Je,et=!1,tt=["application/xhtml+xml","text/html"],nt="text/html",rt=null,ot=i.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},at=function(t){rt&&rt===t||(t&&"object"===e(t)||(t={}),t=R(t),he=he=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?nt:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===he?function(e){return e}:P,Ee="ALLOWED_TAGS"in t?N({},t.ALLOWED_TAGS,me):Pe,ke="ALLOWED_ATTR"in t?N({},t.ALLOWED_ATTR,me):Se,$e="ADD_URI_SAFE_ATTR"in t?N(R(Ye),t.ADD_URI_SAFE_ATTR,me):Ye,Ve="ADD_DATA_URI_TAGS"in t?N(R(qe),t.ADD_DATA_URI_TAGS,me):qe,ze="FORBID_CONTENTS"in t?N({},t.FORBID_CONTENTS,me):Ge,Te="FORBID_TAGS"in t?N({},t.FORBID_TAGS,me):{},Ce="FORBID_ATTR"in t?N({},t.FORBID_ATTR,me):{},Be="USE_PROFILES"in t&&t.USE_PROFILES,_e=!1!==t.ALLOW_ARIA_ATTR,Ae=!1!==t.ALLOW_DATA_ATTR,Ze=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=t.SAFE_FOR_TEMPLATES||!1,Re=t.WHOLE_DOCUMENT||!1,Ie=t.RETURN_DOM||!1,Le=t.RETURN_DOM_FRAGMENT||!1,He=t.RETURN_TRUSTED_TYPE||!1,De=t.FORCE_BODY||!1,Fe=!1!==t.SANITIZE_DOM,Ue=!1!==t.KEEP_CONTENT,We=t.IN_PLACE||!1,Oe=t.ALLOWED_URI_REGEXP||Oe,Qe=t.NAMESPACE||Je,t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(je.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(je.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(je.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(Ae=!1),Le&&(Ie=!0),Be&&(Ee=N({},o(W)),ke=[],!0===Be.html&&(N(Ee,D),N(ke,B)),!0===Be.svg&&(N(Ee,I),N(ke,z),N(ke,V)),!0===Be.svgFilters&&(N(Ee,L),N(ke,z),N(ke,V)),!0===Be.mathMl&&(N(Ee,F),N(ke,G),N(ke,V))),t.ADD_TAGS&&(Ee===Pe&&(Ee=R(Ee)),N(Ee,t.ADD_TAGS,me)),t.ADD_ATTR&&(ke===Se&&(ke=R(ke)),N(ke,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&N($e,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(ze===Ge&&(ze=R(ze)),N(ze,t.FORBID_CONTENTS,me)),Ue&&(Ee["#text"]=!0),Re&&N(Ee,["html","head","body"]),Ee.table&&(N(Ee,["tbody"]),delete Te.tbody),m&&m(t),rt=t)},ct=N({},["mi","mo","mn","ms","mtext"]),st=N({},["foreignobject","desc","title","annotation-xml"]),ut=N({},["title","style","font","a","script"]),lt=N({},I);N(lt,L),N(lt,H);var ft=N({},F);N(ft,U);var dt=function(e){var t=A(e);t&&t.tagName||(t={namespaceURI:Je,tagName:"template"});var n=P(e.tagName),r=P(t.tagName);return e.namespaceURI===Ke?t.namespaceURI===Je?"svg"===n:t.namespaceURI===Xe?"svg"===n&&("annotation-xml"===r||ct[r]):Boolean(lt[n]):e.namespaceURI===Xe?t.namespaceURI===Je?"math"===n:t.namespaceURI===Ke?"math"===n&&st[r]:Boolean(ft[n]):e.namespaceURI===Je&&!(t.namespaceURI===Ke&&!st[r])&&!(t.namespaceURI===Xe&&!ct[r])&&!ft[n]&&(ut[n]||!lt[n])},pt=function(e){E(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},ht=function(e,t){try{E(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){E(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ke[e])if(Ie||Le)try{pt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},mt=function(e){var t,n;if(De)e="<remove></remove>"+e;else{var r=k(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(Qe===Je)try{t=(new h).parseFromString(o,he)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?"":o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),Qe===Je?le.call(t,Re?"html":"body")[0]:Re?t.documentElement:a},vt=function(e){return se.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},gt=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},yt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},bt=function(e,t,r){pe[e]&&x(pe[e],(function(e){e.call(n,t,r,rt)}))},wt=function(e){var t;if(bt("beforeSanitizeElements",e,null),gt(e))return pt(e),!0;if(C(/[\u0080-\uFFFF]/,e.nodeName))return pt(e),!0;var r=me(e.nodeName);if(bt("uponSanitizeElement",e,{tagName:r,allowedTags:Ee}),e.hasChildNodes()&&!yt(e.firstElementChild)&&(!yt(e.content)||!yt(e.content.firstElementChild))&&C(/<[/\w]/g,e.innerHTML)&&C(/<[/\w]/g,e.textContent))return pt(e),!0;if("select"===r&&C(/<template/i,e.innerHTML))return pt(e),!0;if(!Ee[r]||Te[r]){if(!Te[r]&&Ot(r)){if(je.tagNameCheck instanceof RegExp&&C(je.tagNameCheck,r))return!1;if(je.tagNameCheck instanceof Function&&je.tagNameCheck(r))return!1}if(Ue&&!ze[r]){var o=A(e)||e.parentNode,i=w(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(y(i[a],!0),b(e))}return pt(e),!0}return e instanceof u&&!dt(e)?(pt(e),!0):"noscript"!==r&&"noembed"!==r||!C(/<\/no(script|embed)/i,e.innerHTML)?(Ne&&3===e.nodeType&&(t=e.textContent,t=S(t,ve," "),t=S(t,ge," "),e.textContent!==t&&(E(n.removed,{element:e.cloneNode()}),e.textContent=t)),bt("afterSanitizeElements",e,null),!1):(pt(e),!0)},xt=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in i||n in ot))return!1;if(Ae&&!Ce[t]&&C(ye,t));else if(_e&&C(be,t));else if(!ke[t]||Ce[t]){if(!(Ot(e)&&(je.tagNameCheck instanceof RegExp&&C(je.tagNameCheck,e)||je.tagNameCheck instanceof Function&&je.tagNameCheck(e))&&(je.attributeNameCheck instanceof RegExp&&C(je.attributeNameCheck,t)||je.attributeNameCheck instanceof Function&&je.attributeNameCheck(t))||"is"===t&&je.allowCustomizedBuiltInElements&&(je.tagNameCheck instanceof RegExp&&C(je.tagNameCheck,n)||je.tagNameCheck instanceof Function&&je.tagNameCheck(n))))return!1}else if($e[t]);else if(C(Oe,S(n,xe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==j(n,"data:")||!Ve[e])if(Ze&&!C(we,S(n,xe,"")));else if(n)return!1;return!0},Ot=function(e){return e.indexOf("-")>0},Et=function(t){var r,o,i,a;bt("beforeSanitizeAttributes",t,null);var c=t.attributes;if(c){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke};for(a=c.length;a--;){var u=r=c[a],l=u.name,f=u.namespaceURI;if(o="value"===l?r.value:T(r.value),i=me(l),s.attrName=i,s.attrValue=o,s.keepAttr=!0,s.forceKeepAttr=void 0,bt("uponSanitizeAttribute",t,s),o=s.attrValue,!s.forceKeepAttr&&(ht(l,t),s.keepAttr))if(C(/\/>/i,o))ht(l,t);else{Ne&&(o=S(o,ve," "),o=S(o,ge," "));var d=me(t.nodeName);if(xt(d,i,o)){if(oe&&"object"===e(v)&&"function"==typeof v.getAttributeType)if(f);else switch(v.getAttributeType(d,i)){case"TrustedHTML":o=oe.createHTML(o);break;case"TrustedScriptURL":o=oe.createScriptURL(o)}try{f?t.setAttributeNS(f,l,o):t.setAttribute(l,o),O(n.removed)}catch(e){}}}}bt("afterSanitizeAttributes",t,null)}},Pt=function e(t){var n,r=vt(t);for(bt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)bt("uponSanitizeShadowNode",n,null),wt(n)||(n.content instanceof a&&e(n.content),Et(n));bt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(o,i){var c,u,l,f,d;if((et=!o)&&(o="\x3c!--\x3e"),"string"!=typeof o&&!yt(o)){if("function"!=typeof o.toString)throw _("toString is not a function");if("string"!=typeof(o=o.toString()))throw _("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof o)return t.toStaticHTML(o);if(yt(o))return t.toStaticHTML(o.outerHTML)}return o}if(Me||at(i),n.removed=[],"string"==typeof o&&(We=!1),We){if(o.nodeName){var p=me(o.nodeName);if(!Ee[p]||Te[p])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof s)1===(u=(c=mt("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?c=u:c.appendChild(u);else{if(!Ie&&!Ne&&!Re&&-1===o.indexOf("<"))return oe&&He?oe.createHTML(o):o;if(!(c=mt(o)))return Ie?null:He?ie:""}c&&De&&pt(c.firstChild);for(var h=vt(We?o:c);l=h.nextNode();)3===l.nodeType&&l===f||wt(l)||(l.content instanceof a&&Pt(l.content),Et(l),f=l);if(f=null,We)return o;if(Ie){if(Le)for(d=ue.call(c.ownerDocument);c.firstChild;)d.appendChild(c.firstChild);else d=c;return ke.shadowroot&&(d=fe.call(r,d,!0)),d}var m=Re?c.outerHTML:c.innerHTML;return Re&&Ee["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&C(ee,c.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+c.ownerDocument.doctype.name+">\n"+m),Ne&&(m=S(m,ve," "),m=S(m,ge," ")),oe&&He?oe.createHTML(m):m},n.setConfig=function(e){at(e),Me=!0},n.clearConfig=function(){rt=null,Me=!1},n.isValidAttribute=function(e,t,n){rt||at({});var r=me(e),o=me(t);return xt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],E(pe[e],t))},n.removeHook=function(e){if(pe[e])return O(pe[e])},n.removeHooks=function(e){pe[e]&&(pe[e]=[])},n.removeAllHooks=function(){pe={}},n}return re()}()},1024:t=>{"use strict";t.exports=e},30314:e=>{"use strict";e.exports=t},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},88911:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},83029:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},11259:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},44822:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:()=>o})},46927:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},3640:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},32208:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,{Z:()=>o})},56265:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},56315:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},68957:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(83029);var o=n(61917),i=n(56265);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},91411:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:()=>r})},73891:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},61917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(88911);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=o,a.amdD=function(){throw new Error("define cannot be used indirect")},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>323===e?"chunk-ckeditor.1abc645fc07566c8fb5e.js":"chunk-"+({85:"code-editor",107:"actions",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"1d742f80c80e0910e94e",107:"433dea2dd90d92e1e63b",200:"4ac5c1e4384d64ab3145",568:"385073900cd04fafc830",594:"b69925641dd935fc64d3",611:"a4bfcae13fcda03f5ccb",614:"1da41164dd4307be623f",701:"a1745bfaf60816644ee7",815:"7b09e3ff78a51b011b7e",817:"e73a823a9955937971f9",877:"9a3b20074efd5807688b"}[e]+".js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-entity-browser:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){c=f;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,a.nc&&c.setAttribute("nonce",a.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var d=(t,r)=>{c.onerror=c.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=d.bind(null,c.onerror),c.onload=d.bind(null,c.onload),s&&document.head.appendChild(c)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.p="/",(()=>{var e={179:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),c=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",c.name="ChunkLoadError",c.type=o,c.request=i,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,c,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in c)a.o(c,r)&&(a.m[r]=c[r]);if(s)s(a)}for(t&&t(n);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_entity_browser=self.webpackChunktocco_entity_browser||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0;var c={};return(()=>{"use strict";a.r(c),a.d(c,{app:()=>lt,default:()=>ut});var e,t=a(59713),n=a.n(t),r=a(52540),o=a(83682),i=a(41609),s=a.n(i),u=a(18446),l=a.n(u),f=a(35937),d=a.n(f),p=a(45697),h=a.n(p),m=a(1024),v=a.n(m),g=a(3975),y=a(50600),b=a(55954),w=a(99227),x=a(22731),O=a(19743),E=a(45430),P="login/SET_LOGGED_IN",k="login/SET_ADMIN_ALLOWED",S="login/DO_SESSION_CHECK",j=function(e){return{type:P,payload:{loggedIn:e}}},T=function(e){return{type:k,payload:{adminAllowed:e}}},C=a(81770),_=(e={},n()(e,P,C.Z.singleTransferReducer("loggedIn")),n()(e,k,C.Z.singleTransferReducer("adminAllowed")),e),A={loggedIn:void 0,adminAllowed:void 0};function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,t=arguments.length>1?arguments[1]:void 0,n=_[t.type];return n?n(e,t):e}var N=a(87757),R=a.n(N),M=a(34857),D=a(44759),I=a(54159),L=a(21913),H=a(47490),F=R().mark(z),U=R().mark(G),W=R().mark(V);function B(e,t){return I.Z.executeRequest(e,t).then(I.Z.extractBody).catch((function(e){return D.Z.logError("Failed to execute request",e),{success:!1}}))}function z(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.RE)(B,"session",{method:"POST"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),F)}function G(){var e,t,n,r,o;return R().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,M.RE)(z);case 2:if(e=i.sent,t=e.success,n=e.businessUnit,r=e.adminAllowed,!(o=L.Z.getLongTerm("session","principal"))||o.currentBusinessUnit.id===n){i.next=10;break}return i.next=10,(0,M.RE)(L.Z.clearAll);case 10:return i.next=12,(0,M.gz)(T(r));case 12:return i.next=14,(0,M.gz)(j(t));case 14:return i.next=16,(0,M.gz)(H.Z.connectSocket());case 16:case"end":return i.stop()}}),U)}function V(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.$6)([(0,M.Fm)(S,G)]);case 2:case"end":return e.stop()}}),W)}const q=function(e){C.Z.injectReducers(e,{login:Z}),e.sagaMiddleware.run(V)},$=function(){return{type:S}};var Y=a(81749),X=a(79311),K=a(98773);const J={propTypes:h().shape({embedType:h().oneOf(K.Nc),widgetConfigKey:function(e,t,n){if("widget"===e.embedType&&!e[t])return new Error("Prop `"+t+"` is missing for `"+n+"`. Validation failed.")}})};var Q,ee=a(23369),te=a(35997),ne=a(41654),re="SET_ENTITY_NAME",oe="SET_FORM_BASE",ie="SET_SCROLL_BEHAVIOUR",ae="root/SET_APP_ID",ce=function(e){return{type:oe,payload:{formBase:e}}},se=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ne.Z.getDispatchActions(e,ue,t)},ue=[{name:"entityName",action:function(e){return{type:re,payload:{entityName:e}}},mandatory:!0,argsFactory:function(e){return[e.entityName]}},{name:"entityName",action:ce,argsFactory:function(e){return[e.formBase||e.entityName]}},{name:"formBase",action:ce,argsFactory:function(e){return[e.formBase]}},{name:"scrollBehaviour",action:function(e){return{type:ie,payload:{scrollBehaviour:e}}},argsFactory:function(e){return[e.scrollBehaviour]}},{name:"id",action:function(e){return{type:ae,payload:{appId:e}}},argsFactory:function(e){return[e.id||(new Date).valueOf()]}}],le=a(30496),fe=a(6766),de=(Q={},n()(Q,fe.zg,C.Z.singleTransferReducer("formTouched")),n()(Q,fe.zJ,C.Z.singleTransferReducer("detailParams")),Q),pe={detailParams:void 0,formTouched:!1};var he=a(63094),me=R().mark(be);function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ye=function(e){var t={};return e.fields.forEach((function(e){t[e.fieldName]=ge({},e)})),e.relations.forEach((function(e){t[e.relationName]=ge({type:"relation"},e)})),t};function be(e){var t,n,r=arguments;return R().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=r.length>1&&void 0!==r[1]?r[1]:ye,o.next=3,(0,M.RE)(he.Z.requestSaga,"entities/".concat(e,"/model"));case 3:return n=o.sent,o.next=6,(0,M.RE)(t,n.body);case 6:return o.abrupt("return",o.sent);case 7:case"end":return o.stop()}}),me)}var we={CREATE:"create",UPDATE:"update"};const xe=function(e){return void 0===e?we.CREATE:we.UPDATE};const Oe=function(e){var t=e.split("/").filter((function(e){return!!e})),n=t[t.length-1],r=t.filter((function(e,t){return t>1&&t%2==0}));if(isNaN(n)){return{modelPaths:r,entityId:undefined,parentUrl:"/"+t.slice(0,-1).join("/")}}return{modelPaths:r,entityId:t[t.length-1],parentUrl:"/"+t.slice(0,-2).join("/")}};const Ee=function(e,t){return 0!==t.length||(!e||isNaN(e))};var Pe=R().mark(_e),ke=R().mark(Ae),Se=R().mark(Ze),je=R().mark(Ne),Te=function(e){return e.entityBrowser},Ce=function(e){return e.input};function _e(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.$6)([(0,M.Fm)(fe.tQ,Ze),(0,M.Fm)(fe.eI,Ae)]);case 2:case"end":return e.stop()}}),Pe)}function Ae(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.gz)(fe.Ek(void 0));case 2:case"end":return e.stop()}}),ke)}function Ze(e){var t,n,r,o,i,a,c,s,u,l,f,d,p,h,m;return R().wrap((function(v){for(;;)switch(v.prev=v.next){case 0:return t=e.payload,v.next=3,(0,M.RE)(Oe,t.url);case 3:return n=v.sent,r=n.modelPaths,o=n.entityId,i=n.parentUrl,v.next=9,(0,M.Ys)(Te);case 9:return a=v.sent,c=a.entityName,s=a.formBase,v.next=14,(0,M.RE)(xe,o);case 14:if(u=v.sent,l=c,f=s,!(r&&r.length>0)){v.next=22;break}return v.next=20,(0,M.RE)(Ne,c,r);case 20:l=v.sent,f="".concat(s,"_").concat(l);case 22:return v.next=24,(0,M.Ys)(Ce);case 24:return d=v.sent,p=d.initialKey,v.next=28,(0,M.RE)(Ee,p,r);case 28:return h=v.sent,m={mode:u,entityId:o,entityName:l,formName:f,parentUrl:i,showBackButton:h},v.next=32,(0,M.gz)(fe.Ek(m));case 32:case"end":return v.stop()}}),Se)}function Ne(e,t){var n,r,o,i,a;return R().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return n=e,c.next=3,(0,M.RE)(be,n);case 3:r=c.sent,o=0;case 5:if(!(o<t.length)){c.next=18;break}if(i=t[o],a=r[i]){c.next=10;break}throw new Error("No such path '".concat(i,"' found on entity model '").concat(n,"'"));case 10:if(n=a.targetEntity,!(o+1<t.length)){c.next=15;break}return c.next=14,(0,M.RE)(be,n);case 14:r=c.sent;case 15:o++,c.next=5;break;case 18:return c.abrupt("return",n);case 19:case"end":return c.stop()}}),je)}var Re=R().mark(Me);function Me(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.$6)([(0,M.rM)(_e)]);case 2:case"end":return e.stop()}}),Re)}const De=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pe,t=arguments.length>1?arguments[1]:void 0,n=de[t.type];return n?n(e,t):e};var Ie;function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function He(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Fe=(Ie={},n()(Ie,re,C.Z.singleTransferReducer("entityName")),n()(Ie,oe,(function(e,t){var n=t.payload.formBase;return n?He(He({},e),{},{formBase:n}):He({},e)})),n()(Ie,ie,C.Z.singleTransferReducer("scrollBehaviour")),n()(Ie,ae,C.Z.singleTransferReducer("appId")),Ie),Ue={entityName:"",formBase:"",scrollBehaviour:"none",appId:""};var We=R().mark(ze),Be=R().mark(Ge);function ze(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.$6)([(0,M.RE)(Ge)]);case 2:case"end":return e.stop()}}),We)}function Ge(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.qn)(b.Z.INPUT_INITIALIZED);case 2:return e.next=4,(0,M.gz)($());case 4:case"end":return e.stop()}}),Be)}var Ve=R().mark(qe);function qe(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.$6)([(0,M.rM)(ze)]);case 2:case"end":return e.stop()}}),Ve)}const $e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ue,t=arguments.length>1?arguments[1]:void 0,n=Fe[t.type];return n?n(e,t):e},Ye={detail:De,form:le.Z,entityBrowser:$e};var Xe,Ke,Je,Qe=[qe,Me],et=a(85893);function tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var rt="entity-browser",ot=v().lazy((function(){return Promise.all([a.e(815),a.e(614)]).then(a.bind(a,87010))})),it=function(){return Xe||(Xe=(0,et.jsx)("div",{children:(0,et.jsx)(m.Suspense,{fallback:"",children:(0,et.jsx)(ot,{})})}))},at=function(e,t){return e.intl.messages[t]||t},ct=function(e,t,n,i){t=nt(nt({},t),{},{id:e}),ee.Z.setInputEnvs(t);var a=b.Z.createStore(Ye,Qe,t,rt);E.Z.addToStore(a,(function(){return{}})),y.Z.addToStore(a),w.Z.dynamicActionsAddToStore(a),O.Z.addToStore(a,!0,["console","remote","notification"]),H.Z.addToStore(a,!0),q(a),x.Z.addToStore(a);var c=function(e,t){return(t?o.Z:r.Z)({getUserConfirmation:function(t,n){var r=e.getState(),o=at(r,"client.common.ok"),i=at(r,"client.common.cancel"),a=H.Z.confirm("",t,o,i,(function(){return n(!0)}),(function(){return n(!1)}));e.dispatch(a)}})}(a,t.memoryHistory);!function(e,t){var n=t.initialKey;if(n&&!isNaN(n)&&!e.location.pathname.match(/\/detail\/[0-9]*/)){var r="/detail/".concat(t.initialKey);e.push(r)}}(c,t);var s=(0,et.jsxs)(g.F0,{history:c,children:[Ke||(Ke=(0,et.jsx)(X.Z,{})),Je||(Je=(0,et.jsx)(it,{}))]});return b.Z.createApp(rt,s,a,{input:t,actions:se(t),publicPath:i,textResourceModules:["component","common","actions","entity-list","entity-detail"]})};b.Z.registerAppInRegistry(rt,ct);var st=function(e){var t=b.Z.useApp({initApp:ct,props:e,packageName:rt}),n=t.component,r=t.store,o=te.Z.usePrevious(e);return te.Z.useDidUpdate((function(){var t=d()(e,(function(e,t){return!l()(e,o[t])}));s()(t)||se(t,!1).forEach((function(e){r.dispatch(e)}))}),[e]),n};st.propTypes={entityName:h().string.isRequired,searchFormType:Y.b,formBase:h().string,limit:h().number,preselectedSearchFields:h().array,searchFilters:h().arrayOf(h().string),simpleSearchFields:h().string,initialKey:h().string,businessUnit:h().string,memoryHistory:h().bool,backendUrl:h().string,scrollBehaviour:h().string,appContext:J.propTypes,modifyFormDefinition:h().func,disableDetailView:h().bool,reportIds:h().arrayOf(h().string)};const ut=st;var lt=b.Z.createBundleableApp(rt,ct,st)})(),c})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tocco-entity-browser",
3
- "version": "1.0.89",
3
+ "version": "1.0.91",
4
4
  "description": "Lists entities and allows to sort and search them",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {