scanbot-web-sdk 5.1.0-dev.1 → 5.1.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/bundle/ScanbotSDK.min.js +1 -1
  2. package/bundle/ScanbotSDK.ui2.min.js +1 -1
  3. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  4. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  5. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  6. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
  7. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
  8. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  9. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
  10. package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
  11. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
  12. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  13. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm-webpack-file-loader +0 -0
  14. package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
  15. package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm-webpack-file-loader +0 -0
  16. package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
  17. package/bundle/bin/complete/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
  18. package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
  19. package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
  20. package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
  21. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  22. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  23. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  24. package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
  25. package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
  26. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  27. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
  28. package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
  29. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see ScanbotSDK.min.js.LICENSE.txt */
2
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=89)}([function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"e",(function(){return l}));var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)};function a(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n}Object.create;function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function l(t,e,n){if(n||2===arguments.length)for(var o,r=0,i=e.length;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}Object.create},function(t,e,n){"use strict";n.r(e),n.d(e,"Component",(function(){return S})),n.d(e,"Fragment",(function(){return A})),n.d(e,"createContext",(function(){return G})),n.d(e,"createElement",(function(){return v})),n.d(e,"createRef",(function(){return b})),n.d(e,"useCallback",(function(){return pt})),n.d(e,"useContext",(function(){return gt})),n.d(e,"useDebugValue",(function(){return mt})),n.d(e,"useEffect",(function(){return ut})),n.d(e,"useErrorBoundary",(function(){return vt})),n.d(e,"useId",(function(){return yt})),n.d(e,"useImperativeHandle",(function(){return ft})),n.d(e,"useLayoutEffect",(function(){return ct})),n.d(e,"useMemo",(function(){return ht})),n.d(e,"useReducer",(function(){return lt})),n.d(e,"useRef",(function(){return dt})),n.d(e,"useState",(function(){return st})),n.d(e,"Children",(function(){return Dt})),n.d(e,"PureComponent",(function(){return Lt})),n.d(e,"StrictMode",(function(){return Ae})),n.d(e,"Suspense",(function(){return Ft})),n.d(e,"SuspenseList",(function(){return Nt})),n.d(e,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return ce})),n.d(e,"cloneElement",(function(){return ge})),n.d(e,"createFactory",(function(){return fe})),n.d(e,"createPortal",(function(){return Yt})),n.d(e,"default",(function(){return Le})),n.d(e,"findDOMNode",(function(){return ve})),n.d(e,"flushSync",(function(){return be})),n.d(e,"forwardRef",(function(){return kt})),n.d(e,"hydrate",(function(){return te})),n.d(e,"isElement",(function(){return xe})),n.d(e,"isFragment",(function(){return pe})),n.d(e,"isValidElement",(function(){return he})),n.d(e,"lazy",(function(){return zt})),n.d(e,"memo",(function(){return Pt})),n.d(e,"render",(function(){return Jt})),n.d(e,"startTransition",(function(){return Se})),n.d(e,"unmountComponentAtNode",(function(){return me})),n.d(e,"unstable_batchedUpdates",(function(){return ye})),n.d(e,"useDeferredValue",(function(){return Ce})),n.d(e,"useInsertionEffect",(function(){return we})),n.d(e,"useSyncExternalStore",(function(){return Oe})),n.d(e,"useTransition",(function(){return _e})),n.d(e,"version",(function(){return de}));var o,r,i,a,s,l,u,c,d={},f=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,p=Array.isArray;function g(t,e){for(var n in e)t[n]=e[n];return t}function m(t){var e=t.parentNode;e&&e.removeChild(t)}function v(t,e,n){var r,i,a,s={};for(a in e)"key"==a?r=e[a]:"ref"==a?i=e[a]:s[a]=e[a];if(arguments.length>2&&(s.children=arguments.length>3?o.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return y(t,s,r,i,null)}function y(t,e,n,o,a){var s={type:t,props:e,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++i:a,__i:-1,__u:0};return null==a&&null!=r.vnode&&r.vnode(s),s}function b(){return{current:null}}function A(t){return t.children}function S(t,e){this.props=t,this.context=e}function C(t,e){if(null==e)return t.__?C(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?C(t):null}function _(t,e,n){var o,i=t.__v,a=i.__e,s=t.__P;if(s)return(o=g({},i)).__v=i.__v+1,r.vnode&&r.vnode(o),W(s,o,i,t.__n,void 0!==s.ownerSVGElement,32&i.__u?[a]:null,e,null==a?C(i):a,!!(32&i.__u),n),o.__v=i.__v,o.__.__k[o.__i]=o,o.__d=void 0,o.__e!=a&&w(o),o}function w(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return w(t)}}function x(t){(!t.__d&&(t.__d=!0)&&a.push(t)&&!O.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||l)(O)}function O(){var t,e,n,o=[],i=[];for(a.sort(u);t=a.shift();)t.__d&&(n=a.length,e=_(t,o,i)||e,0===n||a.length>n?(I(o,e,i),i.length=o.length=0,e=void 0,a.sort(u)):e&&r.__c&&r.__c(e,f));e&&I(o,e,i),O.__r=0}function E(t,e,n,o,r,i,a,s,l,u,c){var h,p,g,m,v,y=o&&o.__k||f,b=e.length;for(n.__d=l,L(n,e,y),l=n.__d,h=0;h<b;h++)null!=(g=n.__k[h])&&"boolean"!=typeof g&&"function"!=typeof g&&(p=-1===g.__i?d:y[g.__i]||d,g.__i=h,W(t,g,p,r,i,a,s,l,u,c),m=g.__e,g.ref&&p.ref!=g.ref&&(p.ref&&F(p.ref,null,g),c.push(g.ref,g.__c||m,g)),null==v&&null!=m&&(v=m),65536&g.__u||p.__k===g.__k?l=P(g,l,t):"function"==typeof g.type&&void 0!==g.__d?l=g.__d:m&&(l=m.nextSibling),g.__d=void 0,g.__u&=-196609);n.__d=l,n.__e=v}function L(t,e,n){var o,r,i,a,s,l=e.length,u=n.length,c=u,d=0;for(t.__k=[],o=0;o<l;o++)null!=(r=t.__k[o]=null==(r=e[o])||"boolean"==typeof r||"function"==typeof r?null:"string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?y(null,r,null,null,r):p(r)?y(A,{children:r},null,null,null):void 0===r.constructor&&r.__b>0?y(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)?(r.__=t,r.__b=t.__b+1,s=T(r,n,a=o+d,c),r.__i=s,i=null,-1!==s&&(c--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof r.type&&(r.__u|=65536)):s!==a&&(s===a+1?d++:s>a?c>l-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==o+d&&(r.__u|=65536))):(i=n[o])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=C(i)),V(i,i,!1),n[o]=null,c--);if(c)for(o=0;o<u;o++)null!=(i=n[o])&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=C(i)),V(i,i))}function P(t,e,n){var o,r;if("function"==typeof t.type){for(o=t.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=t,e=P(o[r],e,n));return e}t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function B(t,e){return e=e||[],null==t||"boolean"==typeof t||(p(t)?t.some((function(t){B(t,e)})):e.push(t)),e}function T(t,e,n,o){var r=t.key,i=t.type,a=n-1,s=n+1,l=e[n];if(null===l||l&&r==l.key&&i===l.type)return n;if(o>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||s<e.length;){if(a>=0){if((l=e[a])&&0==(131072&l.__u)&&r==l.key&&i===l.type)return a;a--}if(s<e.length){if((l=e[s])&&0==(131072&l.__u)&&r==l.key&&i===l.type)return s;s++}}return-1}function k(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||h.test(e)?n:n+"px"}function M(t,e,n,o,r){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||k(t.style,e,"");if(n)for(e in n)o&&n[e]===o[e]||k(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?o?n.u=o.u:(n.u=Date.now(),t.addEventListener(e,i?j:D,i)):t.removeEventListener(e,i?j:D,i);else{if(r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&"rowSpan"!==e&&"colSpan"!==e&&"role"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function D(t){if(this.l){var e=this.l[t.type+!1];if(t.t){if(t.t<=e.u)return}else t.t=Date.now();return e(r.event?r.event(t):t)}}function j(t){if(this.l)return this.l[t.type+!0](r.event?r.event(t):t)}function W(t,e,n,o,i,a,s,l,u,c){var d,f,h,m,v,y,b,C,_,w,x,O,L,P,B,T=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(u=!!(32&n.__u),a=[l=e.__e=n.__e]),(d=r.__b)&&d(e);t:if("function"==typeof T)try{if(C=e.props,_=(d=T.contextType)&&o[d.__c],w=d?_?_.props.value:d.__:o,n.__c?b=(f=e.__c=n.__c).__=f.__E:("prototype"in T&&T.prototype.render?e.__c=f=new T(C,w):(e.__c=f=new S(C,w),f.constructor=T,f.render=z),_&&_.sub(f),f.props=C,f.state||(f.state={}),f.context=w,f.__n=o,h=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=T.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=g({},f.__s)),g(f.__s,T.getDerivedStateFromProps(C,f.__s))),m=f.props,v=f.state,f.__v=e,h)null==T.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==T.getDerivedStateFromProps&&C!==m&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(C,w),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(C,f.__s,w)||e.__v===n.__v)){for(e.__v!==n.__v&&(f.props=C,f.state=f.__s,f.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),x=0;x<f._sb.length;x++)f.__h.push(f._sb[x]);f._sb=[],f.__h.length&&s.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(C,f.__s,w),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(m,v,y)}))}if(f.context=w,f.props=C,f.__P=t,f.__e=!1,O=r.__r,L=0,"prototype"in T&&T.prototype.render){for(f.state=f.__s,f.__d=!1,O&&O(e),d=f.render(f.props,f.state,f.context),P=0;P<f._sb.length;P++)f.__h.push(f._sb[P]);f._sb=[]}else do{f.__d=!1,O&&O(e),d=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++L<25);f.state=f.__s,null!=f.getChildContext&&(o=g(g({},o),f.getChildContext())),h||null==f.getSnapshotBeforeUpdate||(y=f.getSnapshotBeforeUpdate(m,v)),E(t,p(B=null!=d&&d.type===A&&null==d.key?d.props.children:d)?B:[B],e,n,o,i,a,s,l,u,c),f.base=e.__e,e.__u&=-161,f.__h.length&&s.push(f),b&&(f.__E=f.__=null)}catch(t){e.__v=null,u||null!=a?(e.__e=l,e.__u|=u?160:32,a[a.indexOf(l)]=null):(e.__e=n.__e,e.__k=n.__k),r.__e(t,e,n)}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=R(n.__e,e,n,o,i,a,s,u,c);(d=r.diffed)&&d(e)}function I(t,e,n){for(var o=0;o<n.length;o++)F(n[o],n[++o],n[++o]);r.__c&&r.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){r.__e(t,e.__v)}}))}function R(t,e,n,r,i,a,s,l,u){var c,f,h,g,v,y,b,A=n.props,S=e.props,_=e.type;if("svg"===_&&(i=!0),null!=a)for(c=0;c<a.length;c++)if((v=a[c])&&"setAttribute"in v==!!_&&(_?v.localName===_:3===v.nodeType)){t=v,a[c]=null;break}if(null==t){if(null===_)return document.createTextNode(S);t=i?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,S.is&&S),a=null,l=!1}if(null===_)A===S||l&&t.data===S||(t.data=S);else{if(a=a&&o.call(t.childNodes),A=n.props||d,!l&&null!=a)for(A={},c=0;c<t.attributes.length;c++)A[(v=t.attributes[c]).name]=v.value;for(c in A)v=A[c],"children"==c||("dangerouslySetInnerHTML"==c?h=v:"key"===c||c in S||M(t,c,null,v,i));for(c in S)v=S[c],"children"==c?g=v:"dangerouslySetInnerHTML"==c?f=v:"value"==c?y=v:"checked"==c?b=v:"key"===c||l&&"function"!=typeof v||A[c]===v||M(t,c,v,A[c],i);if(f)l||h&&(f.__html===h.__html||f.__html===t.innerHTML)||(t.innerHTML=f.__html),e.__k=[];else if(h&&(t.innerHTML=""),E(t,p(g)?g:[g],e,n,r,i&&"foreignObject"!==_,a,s,a?a[0]:n.__k&&C(n,0),l,u),null!=a)for(c=a.length;c--;)null!=a[c]&&m(a[c]);l||(c="value",void 0!==y&&(y!==t[c]||"progress"===_&&!y||"option"===_&&y!==A[c])&&M(t,c,y,A[c],!1),c="checked",void 0!==b&&b!==t[c]&&M(t,c,b,A[c],!1))}return t}function F(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){r.__e(t,n)}}function V(t,e,n){var o,i;if(r.unmount&&r.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||F(o,null,e)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){r.__e(t,e)}o.base=o.__P=null,t.__c=void 0}if(o=t.__k)for(i=0;i<o.length;i++)o[i]&&V(o[i],e,n||"function"!=typeof t.type);n||null==t.__e||m(t.__e),t.__=t.__e=t.__d=void 0}function z(t,e,n){return this.constructor(t,n)}function N(t,e,n){var i,a,s,l;r.__&&r.__(t,e),a=(i="function"==typeof n)?null:n&&n.__k||e.__k,s=[],l=[],W(e,t=(!i&&n||e).__k=v(A,null,[t]),a||d,d,void 0!==e.ownerSVGElement,!i&&n?[n]:a?null:e.firstChild?o.call(e.childNodes):null,s,!i&&n?n:a?a.__e:e.firstChild,i,l),t.__d=void 0,I(s,t,l)}function U(t,e){N(t,e,U)}function H(t,e,n){var r,i,a,s,l=g({},t.props);for(a in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)"key"==a?r=e[a]:"ref"==a?i=e[a]:l[a]=void 0===e[a]&&void 0!==s?s[a]:e[a];return arguments.length>2&&(l.children=arguments.length>3?o.call(arguments,2):n),y(t.type,l,r||t.key,i||t.ref,null)}function G(t,e){var n={__c:e="__cC"+c++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,o;return this.getChildContext||(n=[],(o={})[e]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,x(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}o=f.slice,r={__e:function(t,e,n,o){for(var r,i,a;e=e.__;)if((r=e.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(t)),a=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t,o||{}),a=r.__d),a)return r.__E=r}catch(e){t=e}throw t}},i=0,S.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof t&&(t=t(g({},n),this.props)),t&&g(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),x(this))},S.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),x(this))},S.prototype.render=A,a=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(t,e){return t.__v.__b-e.__v.__b},O.__r=0,c=0;var Y,X,Q,$,Z=0,q=[],K=[],J=r,tt=J.__b,et=J.__r,nt=J.diffed,ot=J.__c,rt=J.unmount,it=J.__;function at(t,e){J.__h&&J.__h(X,t,Z||e),Z=0;var n=X.__H||(X.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:K}),n.__[t]}function st(t){return Z=1,lt(xt,t)}function lt(t,e,n){var o=at(Y++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):xt(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],n=o.t(e,t);e!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=X,!X.u)){var r=function(t,e,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(t){return!!t.__c}));if(r.every((function(t){return!t.__N})))return!i||i.call(this,t,e,n);var a=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),!(!a&&o.__c.props===t)&&(!i||i.call(this,t,e,n))};X.u=!0;var i=X.shouldComponentUpdate,a=X.componentWillUpdate;X.componentWillUpdate=function(t,e,n){if(this.__e){var o=i;i=void 0,r(t,e,n),i=o}a&&a.call(this,t,e,n)},X.shouldComponentUpdate=r}return o.__N||o.__}function ut(t,e){var n=at(Y++,3);!J.__s&&wt(n.__H,e)&&(n.__=t,n.i=e,X.__H.__h.push(n))}function ct(t,e){var n=at(Y++,4);!J.__s&&wt(n.__H,e)&&(n.__=t,n.i=e,X.__h.push(n))}function dt(t){return Z=5,ht((function(){return{current:t}}),[])}function ft(t,e,n){Z=6,ct((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))}function ht(t,e){var n=at(Y++,7);return wt(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function pt(t,e){return Z=8,ht((function(){return t}),e)}function gt(t){var e=X.context[t.__c],n=at(Y++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(X)),e.props.value):t.__}function mt(t,e){J.useDebugValue&&J.useDebugValue(e?e(t):t)}function vt(t){var e=at(Y++,10),n=st();return e.__=t,X.componentDidCatch||(X.componentDidCatch=function(t,o){e.__&&e.__(t,o),n[1](t)}),[n[0],function(){n[1](void 0)}]}function yt(){var t=at(Y++,11);if(!t.__){for(var e=X.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function bt(){for(var t;t=q.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Ct),t.__H.__h.forEach(_t),t.__H.__h=[]}catch(e){t.__H.__h=[],J.__e(e,t.__v)}}J.__b=function(t){X=null,tt&&tt(t)},J.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),it&&it(t,e)},J.__r=function(t){et&&et(t),Y=0;var e=(X=t.__c).__H;e&&(Q===X?(e.__h=[],X.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=K,t.__N=t.i=void 0}))):(e.__h.forEach(Ct),e.__h.forEach(_t),e.__h=[],Y=0)),Q=X},J.diffed=function(t){nt&&nt(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==q.push(e)&&$===J.requestAnimationFrame||(($=J.requestAnimationFrame)||St)(bt)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==K&&(t.__=t.__V),t.i=void 0,t.__V=K}))),Q=X=null},J.__c=function(t,e){e.some((function(t){try{t.__h.forEach(Ct),t.__h=t.__h.filter((function(t){return!t.__||_t(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],J.__e(n,t.__v)}})),ot&&ot(t,e)},J.unmount=function(t){rt&&rt(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{Ct(t)}catch(t){e=t}})),n.__H=void 0,e&&J.__e(e,n.__v))};var At="function"==typeof requestAnimationFrame;function St(t){var e,n=function(){clearTimeout(o),At&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,100);At&&(e=requestAnimationFrame(n))}function Ct(t){var e=X,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),X=e}function _t(t){var e=X;t.__c=t.__(),X=e}function wt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function xt(t,e){return"function"==typeof e?e(t):e}function Ot(t,e){for(var n in e)t[n]=e[n];return t}function Et(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var o in e)if("__source"!==o&&t[o]!==e[o])return!0;return!1}function Lt(t,e){this.props=t,this.context=e}function Pt(t,e){function n(t){var n=this.props.ref,o=n==t.ref;return!o&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!o:Et(this.props,t)}function o(e){return this.shouldComponentUpdate=n,v(t,e)}return o.displayName="Memo("+(t.displayName||t.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(Lt.prototype=new S).isPureReactComponent=!0,Lt.prototype.shouldComponentUpdate=function(t,e){return Et(this.props,t)||Et(this.state,e)};var Bt=r.__b;r.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Bt&&Bt(t)};var Tt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function kt(t){function e(e){var n=Ot({},e);return delete n.ref,t(n,e.ref||null)}return e.$$typeof=Tt,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Mt=function(t,e){return null==t?null:B(B(t).map(e))},Dt={map:Mt,forEach:Mt,count:function(t){return t?B(t).length:0},only:function(t){var e=B(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:B},jt=r.__e;r.__e=function(t,e,n,o){if(t.then)for(var r,i=e;i=i.__;)if((r=i.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);jt(t,e,n,o)};var Wt=r.unmount;function It(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=Ot({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return It(t,e,n)}))),t}function Rt(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return Rt(t,e,n)})),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function Ft(){this.__u=0,this.t=null,this.__b=null}function Vt(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function zt(t){var e,n,o;function r(r){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){o=t})),o)throw o;if(!n)throw e;return v(n,r)}return r.displayName="Lazy",r.__f=!0,r}function Nt(){this.u=null,this.o=null}r.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Wt&&Wt(t)},(Ft.prototype=new S).__c=function(t,e){var n=e.__c,o=this;null==o.t&&(o.t=[]),o.t.push(n);var r=Vt(o.__v),i=!1,a=function(){i||(i=!0,n.__R=null,r?r(s):s())};n.__R=a;var s=function(){if(!--o.__u){if(o.state.__a){var t=o.state.__a;o.__v.__k[0]=Rt(t,t.__c.__P,t.__c.__O)}var e;for(o.setState({__a:o.__b=null});e=o.t.pop();)e.forceUpdate()}};o.__u++||32&e.__u||o.setState({__a:o.__b=o.__v.__k[0]}),t.then(a,a)},Ft.prototype.componentWillUnmount=function(){this.t=[]},Ft.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=It(this.__b,n,o.__O=o.__P)}this.__b=null}var r=e.__a&&v(A,null,t.fallback);return r&&(r.__u&=-33),[v(A,null,e.__a?null:t.children),r]};var Ut=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function Ht(t){return this.getChildContext=function(){return t.context},t.children}function Gt(t){var e=this,n=t.i;e.componentWillUnmount=function(){N(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t,n){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),N(v(Ht,{context:e.context},t.__v),e.l)}function Yt(t,e){var n=v(Gt,{__v:t,i:e});return n.containerInfo=e,n}(Nt.prototype=new S).__a=function(t){var e=this,n=Vt(e.__v),o=e.o.get(t);return o[0]++,function(r){var i=function(){e.props.revealOrder?(o.push(r),Ut(e,t,o)):r()};n?n(i):i()}},Nt.prototype.render=function(t){this.u=null,this.o=new Map;var e=B(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Nt.prototype.componentDidUpdate=Nt.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){Ut(t,n,e)}))};var Xt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Qt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,$t=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Zt=/[A-Z0-9]/g,qt="undefined"!=typeof document,Kt=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)};function Jt(t,e,n){return null==e.__k&&(e.textContent=""),N(t,e),"function"==typeof n&&n(),t?t.__c:null}function te(t,e,n){return U(t,e),"function"==typeof n&&n(),t?t.__c:null}S.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(S.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var ee=r.event;function ne(){}function oe(){return this.cancelBubble}function re(){return this.defaultPrevented}r.event=function(t){return ee&&(t=ee(t)),t.persist=ne,t.isPropagationStopped=oe,t.isDefaultPrevented=re,t.nativeEvent=t};var ie,ae={enumerable:!1,configurable:!0,get:function(){return this.class}},se=r.vnode;r.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,o={};for(var r in e){var i=e[r];if(!("value"===r&&"defaultValue"in e&&null==i||qt&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in e&&null==e.value?r="value":"download"===r&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Kt(e.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":$t.test(r)?r=a:-1===n.indexOf("-")&&Qt.test(r)?r=r.replace(Zt,"-$&").toLowerCase():null===i&&(i=void 0):a=r="oninput","oninput"===a&&o[r=a]&&(r="oninputCapture"),o[r]=i}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=B(e.children).forEach((function(t){t.props.selected=-1!=o.value.indexOf(t.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=B(e.children).forEach((function(t){t.props.selected=o.multiple?-1!=o.defaultValue.indexOf(t.props.value):o.defaultValue==t.props.value}))),e.class&&!e.className?(o.class=e.class,Object.defineProperty(o,"className",ae)):(e.className&&!e.class||e.class&&e.className)&&(o.class=o.className=e.className),t.props=o}(t),t.$$typeof=Xt,se&&se(t)};var le=r.__r;r.__r=function(t){le&&le(t),ie=t.__c};var ue=r.diffed;r.diffed=function(t){ue&&ue(t);var e=t.props,n=t.__e;null!=n&&"textarea"===t.type&&"value"in e&&e.value!==n.value&&(n.value=null==e.value?"":e.value),ie=null};var ce={ReactCurrentDispatcher:{current:{readContext:function(t){return ie.__n[t.__c].props.value}}}},de="17.0.2";function fe(t){return v.bind(null,t)}function he(t){return!!t&&t.$$typeof===Xt}function pe(t){return he(t)&&t.type===A}function ge(t){return he(t)?H.apply(null,arguments):t}function me(t){return!!t.__k&&(N(null,t),!0)}function ve(t){return t&&(t.base||1===t.nodeType&&t)||null}var ye=function(t,e){return t(e)},be=function(t,e){return t(e)},Ae=A;function Se(t){t()}function Ce(t){return t}function _e(){return[!1,Se]}var we=ct,xe=he;function Oe(t,e){var n=e(),o=st({h:{__:n,v:e}}),r=o[0].h,i=o[1];return ct((function(){r.__=n,r.v=e,Ee(r)&&i({h:r})}),[t,n,e]),ut((function(){return Ee(r)&&i({h:r}),t((function(){Ee(r)&&i({h:r})}))}),[t]),n}function Ee(t){var e,n,o=t.v,r=t.__;try{var i=o();return!((e=r)===(n=i)&&(0!==e||1/e==1/n)||e!=e&&n!=n)}catch(t){return!0}}var Le={useState:st,useId:yt,useReducer:lt,useEffect:ut,useLayoutEffect:ct,useInsertionEffect:ct,useTransition:_e,useDeferredValue:Ce,useSyncExternalStore:Oe,startTransition:Se,useRef:dt,useImperativeHandle:ft,useMemo:ht,useCallback:pt,useContext:gt,useDebugValue:mt,version:"17.0.2",Children:Dt,render:Jt,hydrate:te,unmountComponentAtNode:me,createPortal:Yt,createElement:v,createContext:G,createFactory:fe,cloneElement:ge,createRef:b,Fragment:A,isValidElement:he,isElement:he,isFragment:pe,findDOMNode:ve,Component:S,PureComponent:Lt,memo:Pt,forwardRef:kt,flushSync:be,unstable_batchedUpdates:ye,StrictMode:A,Suspense:Ft,SuspenseList:Nt,lazy:zt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ce}},function(t,e){t.exports=window["@mui"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timeouts=e.Vibration=e.Sound=e.ButtonConfiguration=e.BadgedButton=e.RoundButton=e.AspectRatio=e.ForegroundStyle=e.BackgroundStyle=e.PolygonStyle=e.IconStyle=e.StyledText=e.Palette=void 0;const o=n(6);class r extends o.PartiallyConstructible{constructor(t={}){super(),this.sbColorPrimary="#C8193C",this.sbColorPrimaryDisabled="#F5F5F5",this.sbColorNegative="#FF3737",this.sbColorPositive="#4EFFB4",this.sbColorWarning="#FFCE5C",this.sbColorSecondary="#FFEDEE",this.sbColorSecondaryDisabled="#F5F5F5",this.sbColorOnPrimary="#FFFFFF",this.sbColorOnSecondary="#C8193C",this.sbColorSurface="#FFFFFF",this.sbColorOutline="#EFEFEF",this.sbColorOnSurfaceVariant="#707070",this.sbColorOnSurface="#000000",this.sbColorSurfaceLow="#00000026",this.sbColorSurfaceHigh="#0000007A",this.sbColorModalOverlay="#000000A3",void 0!==t.sbColorPrimary&&(this.sbColorPrimary=t.sbColorPrimary),void 0!==t.sbColorPrimaryDisabled&&(this.sbColorPrimaryDisabled=t.sbColorPrimaryDisabled),void 0!==t.sbColorNegative&&(this.sbColorNegative=t.sbColorNegative),void 0!==t.sbColorPositive&&(this.sbColorPositive=t.sbColorPositive),void 0!==t.sbColorWarning&&(this.sbColorWarning=t.sbColorWarning),void 0!==t.sbColorSecondary&&(this.sbColorSecondary=t.sbColorSecondary),void 0!==t.sbColorSecondaryDisabled&&(this.sbColorSecondaryDisabled=t.sbColorSecondaryDisabled),void 0!==t.sbColorOnPrimary&&(this.sbColorOnPrimary=t.sbColorOnPrimary),void 0!==t.sbColorOnSecondary&&(this.sbColorOnSecondary=t.sbColorOnSecondary),void 0!==t.sbColorSurface&&(this.sbColorSurface=t.sbColorSurface),void 0!==t.sbColorOutline&&(this.sbColorOutline=t.sbColorOutline),void 0!==t.sbColorOnSurfaceVariant&&(this.sbColorOnSurfaceVariant=t.sbColorOnSurfaceVariant),void 0!==t.sbColorOnSurface&&(this.sbColorOnSurface=t.sbColorOnSurface),void 0!==t.sbColorSurfaceLow&&(this.sbColorSurfaceLow=t.sbColorSurfaceLow),void 0!==t.sbColorSurfaceHigh&&(this.sbColorSurfaceHigh=t.sbColorSurfaceHigh),void 0!==t.sbColorModalOverlay&&(this.sbColorModalOverlay=t.sbColorModalOverlay)}}e.Palette=r;class i extends o.PartiallyConstructible{constructor(t={}){super(),this.visible=!0,this.text="",this.color="#FFFFFF",this.useShadow=!1,void 0!==t.visible&&(this.visible=t.visible),void 0!==t.text&&(this.text=t.text),void 0!==t.color&&(this.color=t.color),void 0!==t.useShadow&&(this.useShadow=t.useShadow)}}e.StyledText=i;class a extends o.PartiallyConstructible{constructor(t={}){super(),this.visible=!0,this.color="#FFFFFF",void 0!==t.visible&&(this.visible=t.visible),void 0!==t.color&&(this.color=t.color)}}e.IconStyle=a;class s extends o.PartiallyConstructible{constructor(t={}){super(),this.strokeColor="#FFFFFFFF",this.fillColor="#30FFFFFF",this.strokeWidth=2,this.cornerRadius=0,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.fillColor&&(this.fillColor=t.fillColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth),void 0!==t.cornerRadius&&(this.cornerRadius=t.cornerRadius)}}e.PolygonStyle=s;class l extends o.PartiallyConstructible{constructor(t={}){super(),this.strokeColor="#FFFFFFFF",this.fillColor="#FFFFFF30",this.strokeWidth=2,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.fillColor&&(this.fillColor=t.fillColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth)}}e.BackgroundStyle=l;class u extends o.PartiallyConstructible{constructor(t={}){super(),this.iconVisible=!0,this.color="#FFFFFF",this.useShadow=!1,void 0!==t.iconVisible&&(this.iconVisible=t.iconVisible),void 0!==t.color&&(this.color=t.color),void 0!==t.useShadow&&(this.useShadow=t.useShadow)}}e.ForegroundStyle=u;class c extends o.PartiallyConstructible{constructor(t={}){super(),this.width=1,this.height=1,void 0!==t.width&&(this.width=t.width),void 0!==t.height&&(this.height=t.height)}}e.AspectRatio=c;class d extends o.PartiallyConstructible{constructor(t={}){super(),this.visible=!0,this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==t.visible&&(this.visible=t.visible),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.foregroundColor&&(this.foregroundColor=t.foregroundColor),void 0!==t.activeBackgroundColor&&(this.activeBackgroundColor=t.activeBackgroundColor),void 0!==t.activeForegroundColor&&(this.activeForegroundColor=t.activeForegroundColor)}}e.RoundButton=d;class f extends o.PartiallyConstructible{constructor(t={}){super(),this.badgeBackgroundColor="#FFFFFF",this.badgeForegroundColor="#C8193C",this.visible=!0,this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==t.badgeBackgroundColor&&(this.badgeBackgroundColor=t.badgeBackgroundColor),void 0!==t.badgeForegroundColor&&(this.badgeForegroundColor=t.badgeForegroundColor),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.foregroundColor&&(this.foregroundColor=t.foregroundColor),void 0!==t.activeBackgroundColor&&(this.activeBackgroundColor=t.activeBackgroundColor),void 0!==t.activeForegroundColor&&(this.activeForegroundColor=t.activeForegroundColor)}}e.BadgedButton=f;class h extends o.PartiallyConstructible{constructor(t={}){super(),this.visible=!0,this.text="",this.background=new l({}),this.foreground=new u({}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.text&&(this.text=t.text),void 0!==t.background&&(this.background=new l(t.background)),void 0!==t.foreground&&(this.foreground=new u(t.foreground))}}e.ButtonConfiguration=h;class p extends o.PartiallyConstructible{constructor(t={}){super(),this.successBeepEnabled=!0,this.soundType="MODERN_BEEP",void 0!==t.successBeepEnabled&&(this.successBeepEnabled=t.successBeepEnabled),void 0!==t.soundType&&(this.soundType=t.soundType)}}e.Sound=p;class g extends o.PartiallyConstructible{constructor(t={}){super(),this.enabled=!1,void 0!==t.enabled&&(this.enabled=t.enabled)}}e.Vibration=g;class m extends o.PartiallyConstructible{constructor(t={}){super(),this.autoCancelTimeout=0,this.initialScanDelay=0,void 0!==t.autoCancelTimeout&&(this.autoCancelTimeout=t.autoCancelTimeout),void 0!==t.initialScanDelay&&(this.initialScanDelay=t.initialScanDelay)}}e.Timeouts=m},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SBTheme=e.createSBPaletteContextValue=e.SBPaletteContext=void 0;const r=n(1),i=n(17),a=o(n(24));function s(t){return{getColorValue:e=>{if(e){if(e.startsWith("?")){const n=e.slice(1);if(n in t)return t[n];a.default.debugWarn(`Color ${n} not found in palette`)}return e}a.default.debugWarn("Color is missing")}}}e.SBPaletteContext=(0,r.createContext)(null),e.createSBPaletteContextValue=s;class l{static setPalette(t){this.palette=t}static setBarcodeTextLocalization(t){this.barcodeTextLocalization=t}static getColorValue(t){return s(l.palette).getColorValue(t)}static getLocalizedBarcodeText(t){if(t.startsWith("?")){const e=t.slice(1);if(e in l.barcodeTextLocalization)return l.barcodeTextLocalization[e];a.default.debugWarn(`Barcode text localization key ${e} not found in localization`)}return t}}e.SBTheme=l,l.palette=(new i.BarcodeScannerConfiguration).palette,l.barcodeTextLocalization=(new i.BarcodeScannerConfiguration).localization},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Point=void 0;const o=n(37);class r{constructor(t,e){this.x=t,this.y=e}static toPolygon(t,e){return[r.scaleDownTo(t[0],e),r.scaleDownTo(t[1],e),r.scaleDownTo(t[2],e),r.scaleDownTo(t[3],e)]}static scaleToPoint(t,e,n,o){return new r(o*(t.x-e),o*(t.y-n))}static scaleListToHtmlElement(t,e,n){return t.map((t=>r.scaleToHtmlElement(t,e,n)))}static scaleToHtmlElement(t,e,n){return new r(t.x*(n.clientWidth/e.width),t.y*(n.clientHeight/e.height))}static scaleUpTo(t,e){return new r(t.x*e.width,t.y*e.height)}static scaleDownTo(t,e){return new r(t.x/e.width,t.y/e.height)}static fromHtmlElement(t){return new r(t.offsetLeft,t.offsetTop)}static withScale(t,e,n){return new r(t/n,e/n)}static fromCoordinates(t,e,n,o){if(!t||!e)return new r(0,0);const i=new r(t,e);return o=null!=o?o:1,1===(n=n?n%4:0)?r.withScale(i.y,-i.x,o):2===n?r.withScale(-i.x,-i.y,o):3===n?r.withScale(-i.y,i.x,o):r.withScale(i.x,i.y,o)}static centerOf(t){const e=t.reduce(((t,e)=>t+e.x),0)/t.length,n=t.reduce(((t,e)=>t+e.y),0)/t.length;return new r(e,n)}static smallerSizeOfQuad(t){const e=Math.max(...t.map((t=>t.x)))-Math.min(...t.map((t=>t.x))),n=Math.max(...t.map((t=>t.y)))-Math.min(...t.map((t=>t.y)));return Math.min(e,n)}static empty(){return new r(0,0)}static centerX(t){if(t)return(r.highestX(t)+r.lowestX(t))/2}static highestX(t){if(t)return Math.max(...t.map((t=>t.x)))}static lowestX(t){if(t)return Math.min(...t.map((t=>t.x)))}static lowestY(t){if(t)return Math.min(...t.map((t=>t.y)))}static highestY(t){if(t)return Math.max(...t.map((t=>t.y)))}static width(t){if(t)return r.highestX(t)-r.lowestX(t)}static left(t){if(t)return t.reduce(((t,e)=>t.x<e.x?t:e))}static right(t){if(t)return t.reduce(((t,e)=>t.x>e.x?t:e))}static toSvgString(t){if(void 0!==t)return t.map((t=>`${t.x.toFixed(2)},${t.y.toFixed(2)}`)).join(" ")}static toSvgPathStringWithRoundedCorners(t,e=0){if(void 0===t)return;function n(t,e,n){const o=Math.atan2(t.y-e.y,t.x-e.x);return{x:t.x-n*Math.cos(o),y:t.y-n*Math.sin(o)}}let o="";const i=n(t[0],t[1],r.distance(t[0],t[1])/2);o+=`M ${i.x} ${i.y}`;for(let i=0;i<t.length;i++){const a=t[i],s=t[(i+1)%t.length],l=t[(i+2)%t.length],u=n(s,l,r.distance(s,l)/2),c=Math.abs(Math.atan2(s.y-a.y,s.x-a.x)-Math.atan2(s.y-l.y,s.x-l.x)),d=c>Math.PI?2*Math.PI-c:c,f=Math.min(Math.sqrt(Math.pow(s.x-a.x,2)+Math.pow(s.y-a.y,2)),Math.sqrt(Math.pow(s.x-l.x,2)+Math.pow(s.y-l.y,2))),h=Math.min(e,f*Math.tan(d/2)/2),p=Math.abs(h/Math.tan(d/2)),g=(s.x-a.x)*(s.y-l.y)-(s.x-l.x)*(s.y-a.y)<0?1:0,m=n(s,a,p),v=n(s,l,p);o+=` L${m.x} ${m.y}`,o+=` A${h} ${h} 0 0 ${g} ${v.x} ${v.y}`,o+=` L${u.x} ${u.y}`}return o+" Z"}static distance(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}static subtract(t,e){return new r(t.x-e.x,t.y-e.y)}static add(t,e){return new r(t.x+e.x,t.y+e.y)}static multiply(t,e){return new r(t.x*e,t.y*e)}static cross(t,e){return t.x*e.y-t.y*e.x}static clamp(t,e){return new r((0,o.clamp)(t.x,0,e.width),(0,o.clamp)(t.y,0,e.height))}}e.Point=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PartiallyConstructible=void 0;e.PartiallyConstructible=class{}},,,function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.StyledText=e.styledTextStyle=e.Props=void 0;const r=o(n(1)),i=n(4);function a(t){return{color:i.SBTheme.getColorValue(t.color),textShadow:t.useShadow?"1px 1px 2px":""}}e.Props=class{},e.styledTextStyle=a,e.StyledText=function(t){return t.config.visible?r.default.createElement("span",{ref:t.innerRef,style:Object.assign(Object.assign({},t.style),a(t.config))},i.SBTheme.getLocalizedBarcodeText(t.config.text)):null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArOverlayFindAndPickConfiguration=e.FindAndPickBadgeConfiguration=e.FindAndPickArOverlayPolygonConfiguration=e.ArOverlayGeneralConfiguration=e.BadgeStyle=e.BarcodeItemConfiguration=e.ArOverlayPolygonConfiguration=void 0;const o=n(3),r=n(6),i=n(3),a=n(3);class s extends r.PartiallyConstructible{constructor(t={}){super(),this.visible=!0,this.deselected=new i.PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),this.selected=new i.PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.deselected&&(this.deselected=new i.PolygonStyle(t.deselected)),void 0!==t.selected&&(this.selected=new i.PolygonStyle(t.selected))}}e.ArOverlayPolygonConfiguration=s;class l extends r.PartiallyConstructible{constructor(t={}){super(),this.imageVisible=!0,this.titleSelected=new a.StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleSelected=new a.StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.titleDeselected=new a.StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleDeselected=new a.StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.backgroundSelected=new i.PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:0,cornerRadius:10}),this.backgroundDeselected=new i.PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:0,cornerRadius:10}),void 0!==t.imageVisible&&(this.imageVisible=t.imageVisible),void 0!==t.titleSelected&&(this.titleSelected=new a.StyledText(t.titleSelected)),void 0!==t.subtitleSelected&&(this.subtitleSelected=new a.StyledText(t.subtitleSelected)),void 0!==t.titleDeselected&&(this.titleDeselected=new a.StyledText(t.titleDeselected)),void 0!==t.subtitleDeselected&&(this.subtitleDeselected=new a.StyledText(t.subtitleDeselected)),void 0!==t.backgroundSelected&&(this.backgroundSelected=new i.PolygonStyle(t.backgroundSelected)),void 0!==t.backgroundDeselected&&(this.backgroundDeselected=new i.PolygonStyle(t.backgroundDeselected))}}e.BarcodeItemConfiguration=l;class u extends r.PartiallyConstructible{constructor(t={}){if(super(),this.visible=!0,this.foregroundColor="?sbColorOnSurface",void 0!==t.visible&&(this.visible=t.visible),void 0===t.background)throw new Error("background must be present in constructor argument");this.background=new o.BackgroundStyle(t.background),void 0!==t.foregroundColor&&(this.foregroundColor=t.foregroundColor)}}e.BadgeStyle=u;class c extends r.PartiallyConstructible{constructor(t={}){super(),this.visible=!1,this.counterBadge=new u({background:new o.BackgroundStyle({}),foregroundColor:"?sbColorOnSurface"}),this.automaticSelectionEnabled=!1,this.barcodeItemInfoPosition="BELOW",this.polygon=new s({visible:!0,deselected:new i.PolygonStyle({}),selected:new i.PolygonStyle({})}),this.barcodeItemConfiguration=new l({imageVisible:!0,titleSelected:new a.StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new a.StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new a.StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new a.StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new i.PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new i.PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.counterBadge&&(this.counterBadge=new u(t.counterBadge)),void 0!==t.automaticSelectionEnabled&&(this.automaticSelectionEnabled=t.automaticSelectionEnabled),void 0!==t.barcodeItemInfoPosition&&(this.barcodeItemInfoPosition=t.barcodeItemInfoPosition),void 0!==t.polygon&&(this.polygon=new s(t.polygon)),void 0!==t.barcodeItemConfiguration&&(this.barcodeItemConfiguration=new l(t.barcodeItemConfiguration))}}e.ArOverlayGeneralConfiguration=c;class d extends r.PartiallyConstructible{constructor(t={}){super(),this.visible=!0,this.partiallyScanned=new i.PolygonStyle({strokeColor:"?sbColorWarning",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.rejected=new i.PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.completed=new i.PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.partiallyScanned&&(this.partiallyScanned=new i.PolygonStyle(t.partiallyScanned)),void 0!==t.rejected&&(this.rejected=new i.PolygonStyle(t.rejected)),void 0!==t.completed&&(this.completed=new i.PolygonStyle(t.completed))}}e.FindAndPickArOverlayPolygonConfiguration=d;class f extends r.PartiallyConstructible{constructor(t={}){super(),this.partiallyScanned=new u({visible:!0,background:new o.BackgroundStyle({strokeColor:"#FFFFFF30",fillColor:"?sbColorWarning",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.rejected=new u({visible:!0,background:new o.BackgroundStyle({strokeColor:"#FFFFFF30",fillColor:"?sbColorNegative",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.completed=new u({visible:!0,background:new o.BackgroundStyle({strokeColor:"#FFFFFF30",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),void 0!==t.partiallyScanned&&(this.partiallyScanned=new u(t.partiallyScanned)),void 0!==t.rejected&&(this.rejected=new u(t.rejected)),void 0!==t.completed&&(this.completed=new u(t.completed))}}e.FindAndPickBadgeConfiguration=f;class h extends r.PartiallyConstructible{constructor(t={}){super(),this.visible=!1,this.automaticSelectionEnabled=!0,this.polygon=new d({}),this.badge=new f({}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.automaticSelectionEnabled&&(this.automaticSelectionEnabled=t.automaticSelectionEnabled),void 0!==t.polygon&&(this.polygon=new d(t.polygon)),void 0!==t.badge&&(this.badge=new f(t.badge))}}e.ArOverlayFindAndPickConfiguration=h},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return Y})),n.d(e,"c",(function(){return tt})),n.d(e,"d",(function(){return nt})),n.d(e,"e",(function(){return et})),n.d(e,"f",(function(){return K})),n.d(e,"g",(function(){return J}));var o="-ms-",r="-moz-",i="-webkit-",a="comm",s="rule",l="decl",u="@keyframes",c=Math.abs,d=String.fromCharCode,f=Object.assign;function h(t){return t.trim()}function p(t,e){return(t=e.exec(t))?t[0]:t}function g(t,e,n){return t.replace(e,n)}function m(t,e,n){return t.indexOf(e,n)}function v(t,e){return 0|t.charCodeAt(e)}function y(t,e,n){return t.slice(e,n)}function b(t){return t.length}function A(t){return t.length}function S(t,e){return e.push(t),t}function C(t,e){return t.map(e).join("")}function _(t,e){return t.filter((function(t){return!p(t,e)}))}var w=1,x=1,O=0,E=0,L=0,P="";function B(t,e,n,o,r,i,a,s){return{value:t,root:e,parent:n,type:o,props:r,children:i,line:w,column:x,length:a,return:"",siblings:s}}function T(t,e){return f(B("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},e)}function k(t){for(;t.root;)t=T(t.root,{children:[t]});S(t,t.siblings)}function M(){return L=E<O?v(P,E++):0,x++,10===L&&(x=1,w++),L}function D(){return v(P,E)}function j(){return E}function W(t,e){return y(P,t,e)}function I(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function R(t){return w=x=1,O=b(P=t),E=0,[]}function F(t){return P="",t}function V(t){return h(W(E-1,U(91===t?t+2:40===t?t+1:t)))}function z(t){for(;(L=D())&&L<33;)M();return I(t)>2||I(L)>3?"":" "}function N(t,e){for(;--e&&M()&&!(L<48||L>102||L>57&&L<65||L>70&&L<97););return W(t,j()+(e<6&&32==D()&&32==M()))}function U(t){for(;M();)switch(L){case t:return E;case 34:case 39:34!==t&&39!==t&&U(L);break;case 40:41===t&&U(t);break;case 92:M()}return E}function H(t,e){for(;M()&&t+L!==57&&(t+L!==84||47!==D()););return"/*"+W(e,E-1)+"*"+d(47===t?t:M())}function G(t){for(;!I(D());)M();return W(t,E)}function Y(t){return F(X("",null,null,null,[""],t=R(t),0,[0],t))}function X(t,e,n,o,r,i,a,s,l){for(var u=0,f=0,h=a,p=0,y=0,A=0,C=1,_=1,O=1,B=0,T="",k=r,W=i,I=o,R=T;_;)switch(A=B,B=M()){case 40:if(108!=A&&58==v(R,h-1)){-1!=m(R+=g(V(B),"&","&\f"),"&\f",c(u?s[u-1]:0))&&(O=-1);break}case 34:case 39:case 91:R+=V(B);break;case 9:case 10:case 13:case 32:R+=z(A);break;case 92:R+=N(j()-1,7);continue;case 47:switch(D()){case 42:case 47:S($(H(M(),j()),e,n,l),l);break;default:R+="/"}break;case 123*C:s[u++]=b(R)*O;case 125*C:case 59:case 0:switch(B){case 0:case 125:_=0;case 59+f:-1==O&&(R=g(R,/\f/g,"")),y>0&&b(R)-h&&S(y>32?Z(R+";",o,n,h-1,l):Z(g(R," ","")+";",o,n,h-2,l),l);break;case 59:R+=";";default:if(S(I=Q(R,e,n,u,f,r,s,T,k=[],W=[],h,i),i),123===B)if(0===f)X(R,e,I,I,k,i,h,s,W);else switch(99===p&&110===v(R,3)?100:p){case 100:case 108:case 109:case 115:X(t,I,I,o&&S(Q(t,I,I,0,0,r,s,T,r,k=[],h,W),W),r,W,h,s,o?k:W);break;default:X(R,I,I,I,[""],W,0,s,W)}}u=f=y=0,C=O=1,T=R="",h=a;break;case 58:h=1+b(R),y=A;default:if(C<1)if(123==B)--C;else if(125==B&&0==C++&&125==(L=E>0?v(P,--E):0,x--,10===L&&(x=1,w--),L))continue;switch(R+=d(B),B*C){case 38:O=f>0?1:(R+="\f",-1);break;case 44:s[u++]=(b(R)-1)*O,O=1;break;case 64:45===D()&&(R+=V(M())),p=D(),f=h=b(T=R+=G(j())),B++;break;case 45:45===A&&2==b(R)&&(C=0)}}return i}function Q(t,e,n,o,r,i,a,l,u,d,f,p){for(var m=r-1,v=0===r?i:[""],b=A(v),S=0,C=0,_=0;S<o;++S)for(var w=0,x=y(t,m+1,m=c(C=a[S])),O=t;w<b;++w)(O=h(C>0?v[w]+" "+x:g(x,/&\f/g,v[w])))&&(u[_++]=O);return B(t,e,n,0===r?s:l,u,d,f,p)}function $(t,e,n,o){return B(t,e,n,a,d(L),y(t,2,-2),0,o)}function Z(t,e,n,o,r){return B(t,e,n,l,y(t,0,o),y(t,o+1,-1),o,r)}function q(t,e,n){switch(function(t,e){return 45^v(t,0)?(((e<<2^v(t,0))<<2^v(t,1))<<2^v(t,2))<<2^v(t,3):0}(t,e)){case 5103:return i+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return i+t+t;case 4789:return r+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return i+t+r+t+o+t+t;case 5936:switch(v(t,e+11)){case 114:return i+t+o+g(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return i+t+o+g(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return i+t+o+g(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return i+t+o+t+t;case 6165:return i+t+o+"flex-"+t+t;case 5187:return i+t+g(t,/(\w+).+(:[^]+)/,i+"box-$1$2"+o+"flex-$1$2")+t;case 5443:return i+t+o+"flex-item-"+g(t,/flex-|-self/g,"")+(p(t,/flex-|baseline/)?"":o+"grid-row-"+g(t,/flex-|-self/g,""))+t;case 4675:return i+t+o+"flex-line-pack"+g(t,/align-content|flex-|-self/g,"")+t;case 5548:return i+t+o+g(t,"shrink","negative")+t;case 5292:return i+t+o+g(t,"basis","preferred-size")+t;case 6060:return i+"box-"+g(t,"-grow","")+i+t+o+g(t,"grow","positive")+t;case 4554:return i+g(t,/([^-])(transform)/g,"$1"+i+"$2")+t;case 6187:return g(g(g(t,/(zoom-|grab)/,i+"$1"),/(image-set)/,i+"$1"),t,"")+t;case 5495:case 3959:return g(t,/(image-set\([^]*)/,i+"$1$`$1");case 4968:return g(g(t,/(.+:)(flex-)?(.*)/,i+"box-pack:$3"+o+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+i+t+t;case 4200:if(!p(t,/flex-|baseline/))return o+"grid-column-align"+y(t,e)+t;break;case 2592:case 3360:return o+g(t,"template-","")+t;case 4384:case 3616:return n&&n.some((function(t,n){return e=n,p(t.props,/grid-\w+-end/)}))?~m(t+(n=n[e].value),"span",0)?t:o+g(t,"-start","")+t+o+"grid-row-span:"+(~m(n,"span",0)?p(n,/\d+/):+p(n,/\d+/)-+p(t,/\d+/))+";":o+g(t,"-start","")+t;case 4896:case 4128:return n&&n.some((function(t){return p(t.props,/grid-\w+-start/)}))?t:o+g(g(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return g(t,/(.+)-inline(.+)/,i+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(b(t)-1-e>6)switch(v(t,e+1)){case 109:if(45!==v(t,e+4))break;case 102:return g(t,/(.+:)(.+)-([^]+)/,"$1"+i+"$2-$3$1"+r+(108==v(t,e+3)?"$3":"$2-$3"))+t;case 115:return~m(t,"stretch",0)?q(g(t,"stretch","fill-available"),e,n)+t:t}break;case 5152:case 5920:return g(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(e,n,r,i,a,s,l){return o+n+":"+r+l+(i?o+n+"-span:"+(a?s:+s-+r)+l:"")+t}));case 4949:if(121===v(t,e+6))return g(t,":",":"+i)+t;break;case 6444:switch(v(t,45===v(t,14)?18:11)){case 120:return g(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+i+(45===v(t,14)?"inline-":"")+"box$3$1"+i+"$2$3$1"+o+"$2box$3")+t;case 100:return g(t,":",":"+o)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return g(t,"scroll-","scroll-snap-")+t}return t}function K(t,e){for(var n="",o=0;o<t.length;o++)n+=e(t[o],o,t,e)||"";return n}function J(t,e,n,o){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case l:return t.return=t.return||t.value;case a:return"";case u:return t.return=t.value+"{"+K(t.children,o)+"}";case s:if(!b(t.value=t.props.join(",")))return""}return b(n=K(t.children,o))?t.return=t.value+"{"+n+"}":""}function tt(t){var e=A(t);return function(n,o,r,i){for(var a="",s=0;s<e;s++)a+=t[s](n,o,r,i)||"";return a}}function et(t){return function(e){e.root||(e=e.return)&&t(e)}}function nt(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case l:return void(t.return=q(t.value,t.length,n));case u:return K([T(t,{value:g(t.value,"@","@"+i)})],r);case s:if(t.length)return C(n=t.props,(function(e){switch(p(e,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":k(T(t,{props:[g(e,/:(read-\w+)/,":-moz-$1")]})),k(T(t,{props:[e]})),f(t,{props:_(n,r)});break;case"::placeholder":k(T(t,{props:[g(e,/:(plac\w+)/,":"+i+"input-$1")]})),k(T(t,{props:[g(e,/:(plac\w+)/,":-moz-$1")]})),k(T(t,{props:[g(e,/:(plac\w+)/,o+"input-$1")]})),k(T(t,{props:[e]})),f(t,{props:_(n,r)})}return""}))}}},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.ImageUtils=void 0;const r=n(21),i=n(22);class a{static toDataUrl(t){return new Promise(((e,n)=>{const o=new Blob([t],{type:"image/jpeg"}),r=new FileReader;r.onload=()=>e(r.result),r.onerror=()=>n(r.error),r.readAsDataURL(o)}))}static getObjectFitSize(t,e,n=!0){const o=e.width/e.height,i=t.width/t.height;let a=0,s=0;(n?o>i:o<i)?(a=t.width,s=a/o):(s=t.height,a=s*o);const l=(t.width-a)/2,u=(t.height-s)/2;return new r.Frame(l,u,a,s)}static loadFromUrl(t){return new Promise(((e,n)=>{const r=document.createElement("img");r.src=t,r.onload=()=>o(this,void 0,void 0,(function*(){const t=document.createElement("canvas");t.width=r.width,t.height=r.height;const n=t.getContext("2d");n.drawImage(r,0,0);const o=n.getImageData(0,0,r.width,r.height);e(o)})),r.onerror=n}))}static saveImageData(t){const e=this.createImageDataCanvas(t),n=" ("+t.width+"x"+t.height+")";e.toBlob((t=>this.saveBlob(t,i.Utils.uuid()+n+".png")))}static createImageDataCanvas(t){const e=document.createElement("canvas");return e.className="scanbot-sdk-canvas-element",e.width=t.width,e.height=t.height,e.getContext("2d").putImageData(t,0,0),e}static saveBlob(t,e){let n=document.createElement("a");n.setAttribute("download",e);let o=URL.createObjectURL(t);n.setAttribute("href",o),n.click()}static convertImageDataWrapperToImageData(t){if(t)return new ImageData(t.data,t.width,t.height)}static wrapperToBase64(t){return a.createImageDataCanvas(a.convertImageDataWrapperToImageData(t)).toDataURL("image/png")}static toBase64(t){return o(this,void 0,void 0,(function*(){const e=yield new Promise((e=>{const n=new FileReader;n.onload=()=>e(n.result),n.readAsDataURL(new Blob([t]))}));return e.slice(e.indexOf(",")+1)}))}}e.ImageUtils=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Size=void 0;const o=n(5);class r{constructor(t,e){this.width=t,this.height=e}isPortrait(){return this.height>this.width}ratio(t){return t?this.height/this.width:this.width/this.height}ratioDiff(t,e){return this.ratio(e)/t.ratio(e)}static isEmpty(t){return!t||(0===t.width||0===t.height)}static toPolygon(t){return[new o.Point(0,0),new o.Point(t.width,0),new o.Point(t.width,t.height),new o.Point(0,t.height)]}static fromHtmlElement(t){return t?new r(t.clientWidth,t.clientHeight):new r(0,0)}static fromJson(t){return new r(t.width,t.height)}static subtractFrom(t,e){return new r(t.width-e,t.height-e)}static empty(){return new r(0,0)}}e.Size=r},function(t,e,n){"use strict";n.r(e),n.d(e,"createDomMotionComponent",(function(){return da})),n.d(e,"motion",(function(){return ca})),n.d(e,"m",(function(){return fa})),n.d(e,"AnimatePresence",(function(){return ya})),n.d(e,"AnimateSharedLayout",(function(){return La})),n.d(e,"MotionConfig",(function(){return Pa})),n.d(e,"LazyMotion",(function(){return Ba})),n.d(e,"domAnimation",(function(){return ka})),n.d(e,"domMax",(function(){return Ma})),n.d(e,"useMotionValue",(function(){return Da})),n.d(e,"useMotionTemplate",(function(){return Ia})),n.d(e,"MotionValue",(function(){return ko})),n.d(e,"motionValue",(function(){return Mo})),n.d(e,"resolveMotionValue",(function(){return Ut})),n.d(e,"useTransform",(function(){return Va})),n.d(e,"useSpring",(function(){return Na})),n.d(e,"useVelocity",(function(){return Ua})),n.d(e,"useElementScroll",(function(){return Qa})),n.d(e,"useViewportScroll",(function(){return Ka})),n.d(e,"useReducedMotion",(function(){return Ja})),n.d(e,"animationControls",(function(){return ts})),n.d(e,"useAnimation",(function(){return es})),n.d(e,"animate",(function(){return ba})),n.d(e,"animateVisualElement",(function(){return Go})),n.d(e,"useCycle",(function(){return os})),n.d(e,"transform",(function(){return Fa})),n.d(e,"isValidMotionProp",(function(){return _t})),n.d(e,"useIsPresent",(function(){return v})),n.d(e,"usePresence",(function(){return m})),n.d(e,"DragControls",(function(){return rs})),n.d(e,"useDragControls",(function(){return as})),n.d(e,"useDomEvent",(function(){return Kt})),n.d(e,"createMotionComponent",(function(){return j})),n.d(e,"addScaleCorrection",(function(){return V})),n.d(e,"snapshotViewportBox",(function(){return Wr})),n.d(e,"createCrossfader",(function(){return Aa})),n.d(e,"visualElement",(function(){return zi})),n.d(e,"batchLayout",(function(){return ei})),n.d(e,"flushLayout",(function(){return ni})),n.d(e,"MotionConfigContext",(function(){return d})),n.d(e,"PresenceContext",(function(){return p})),n.d(e,"LayoutGroupContext",(function(){return C})),n.d(e,"VisibilityAction",(function(){return ui})),n.d(e,"FramerTreeLayoutContext",(function(){return Pi})),n.d(e,"SharedLayoutContext",(function(){return Li})),n.d(e,"createBatcher",(function(){return Oi})),n.d(e,"FlatTree",(function(){return Vi})),n.d(e,"useDeprecatedAnimatedState",(function(){return cs})),n.d(e,"useDeprecatedInvertedScale",(function(){return fs}));var o=n(0),r=n(1),i=function(t){return{isEnabled:function(e){return t.some((function(t){return!!e[t]}))}}},a={measureLayout:i(["layout","layoutId","drag","_layoutResetTransform"]),animation:i(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:i(["exit"]),drag:i(["drag","dragControls"]),focus:i(["whileFocus"]),hover:i(["whileHover","onHoverStart","onHoverEnd"]),tap:i(["whileTap","onTap","onTapStart","onTapCancel"]),pan:i(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:i(["layout","layoutId"])};function s(t){for(var e in t){var n=t[e];null!==n&&(a[e].Component=n)}}var l=Object(r.createContext)({strict:!1}),u=Object.keys(a),c=u.length;var d=Object(r.createContext)({transformPagePoint:function(t){return t},isStatic:!1}),f=Object(r.createContext)({});function h(){return Object(r.useContext)(f).visualElement}var p=Object(r.createContext)(null);function g(t){var e=Object(r.useRef)(null);return null===e.current&&(e.current=t()),e.current}function m(){var t=Object(r.useContext)(p);if(null===t)return[!0,null];var e=t.isPresent,n=t.onExitComplete,o=t.register,i=S();Object(r.useEffect)((function(){return o(i)}),[]);return!e&&n?[!1,function(){return null==n?void 0:n(i)}]:[!0]}function v(){return y(Object(r.useContext)(p))}function y(t){return null===t||t.isPresent}var b=0,A=function(){return b++},S=function(){return g(A)},C=Object(r.createContext)(null),_="undefined"!=typeof window,w=_?r.useLayoutEffect:r.useEffect;function x(t,e,n,i){var a=Object(r.useContext)(d),s=Object(r.useContext)(l),u=h(),c=Object(r.useContext)(p),f=function(t){var e=t.layoutId,n=Object(r.useContext)(C);return n&&void 0!==e?n+"-"+e:e}(n),g=Object(r.useRef)(void 0);i||(i=s.renderer),!g.current&&i&&(g.current=i(t,{visualState:e,parent:u,props:Object(o.a)(Object(o.a)({},n),{layoutId:f}),presenceId:null==c?void 0:c.id,blockInitialAnimation:!1===(null==c?void 0:c.initial)}));var m=g.current;return w((function(){m&&(m.setProps(Object(o.a)(Object(o.a)(Object(o.a)({},a),n),{layoutId:f})),m.isPresent=y(c),m.isPresenceRoot=!u||u.presenceId!==(null==c?void 0:c.id),m.syncRender())})),Object(r.useEffect)((function(){var t;m&&(null===(t=m.animationState)||void 0===t||t.animateChanges())})),w((function(){return function(){return null==m?void 0:m.notifyUnmount()}}),[]),m}function O(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function E(t){return Array.isArray(t)}function L(t){return"string"==typeof t||E(t)}function P(t,e,n,o,r){var i;return void 0===o&&(o={}),void 0===r&&(r={}),"string"==typeof e&&(e=null===(i=t.variants)||void 0===i?void 0:i[e]),"function"==typeof e?e(null!=n?n:t.custom,o,r):e}function B(t,e,n){var o=t.getProps();return P(o,e,null!=n?n:o.custom,function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.get()})),e}(t),function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.getVelocity()})),e}(t))}function T(t){var e;return"function"==typeof(null===(e=t.animate)||void 0===e?void 0:e.start)||L(t.initial)||L(t.animate)||L(t.whileHover)||L(t.whileDrag)||L(t.whileTap)||L(t.whileFocus)||L(t.exit)}function k(t){return Boolean(T(t)||t.variants)}function M(t,e){var n=function(t,e){if(T(t)){var n=t.initial,o=t.animate;return{initial:!1===n||L(n)?n:void 0,animate:L(o)?o:void 0}}return!1!==t.inherit?e:{}}(t,Object(r.useContext)(f)),o=n.initial,i=n.animate;return Object(r.useMemo)((function(){return{initial:o,animate:i}}),e?[D(o),D(i)]:[])}function D(t){return Array.isArray(t)?t.join(" "):t}function j(t){var e=t.preloadedFeatures,n=t.createVisualElement,i=t.useRender,h=t.useVisualState,p=t.Component;return e&&s(e),Object(r.forwardRef)((function(t,e){var s=Object(r.useContext)(d).isStatic,g=null,m=M(t,s),v=h(t,s);return!s&&_&&(m.visualElement=x(p,v,t,n),g=function(t,e,n){var i=[];if(Object(r.useContext)(l),!e)return null;for(var s=0;s<c;s++){var d=u[s],f=a[d],h=f.isEnabled,p=f.Component;h(t)&&p&&i.push(r.createElement(p,Object(o.a)({key:d},t,{visualElement:e})))}return i}(t,m.visualElement)),r.createElement(r.Fragment,null,r.createElement(f.Provider,{value:m},i(p,t,function(t,e,n){return Object(r.useCallback)((function(o){var r;o&&(null===(r=t.mount)||void 0===r||r.call(t,o)),e&&(o?e.mount(o):e.unmount()),n&&("function"==typeof n?n(o):O(n)&&(n.current=o))}),[e])}(v,m.visualElement,e),v,s)),g)}))}function W(t){function e(e,n){return void 0===n&&(n={}),j(t(e,n))}var n=new Map;return new Proxy(e,{get:function(t,o){return n.has(o)||n.set(o,e(o)),n.get(o)}})}var I=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function R(t){return"string"==typeof t&&!t.includes("-")&&!!(I.indexOf(t)>-1||/[A-Z]/.test(t))}var F={};function V(t){for(var e in t)F[e]=t[e]}var z=["","X","Y","Z"],N=["transformPerspective","x","y","z"];function U(t,e){return N.indexOf(t)-N.indexOf(e)}["translate","scale","rotate","skew"].forEach((function(t){return z.forEach((function(e){return N.push(t+e)}))}));var H=new Set(N);function G(t){return H.has(t)}var Y=new Set(["originX","originY","originZ"]);function X(t){return Y.has(t)}function Q(t,e){var n=e.layout,o=e.layoutId;return G(t)||X(t)||(n||void 0!==o)&&(!!F[t]||"opacity"===t)}var $=function(t){return null!==t&&"object"==typeof t&&t.getVelocity},Z={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function q(t){return t.startsWith("--")}var K=function(t,e){return e&&"number"==typeof t?e.transform(t):t},J=function(t,e){return function(n){return Math.max(Math.min(n,e),t)}},tt=function(t){return t%1?Number(t.toFixed(5)):t},et=/(-)?([\d]*\.?[\d])+/g,nt=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,ot=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function rt(t){return"string"==typeof t}var it=function(t){return{test:function(e){return rt(e)&&e.endsWith(t)&&1===e.split(" ").length},parse:parseFloat,transform:function(e){return""+e+t}}},at=it("deg"),st=it("%"),lt=it("px"),ut=it("vh"),ct=it("vw"),dt=Object(o.a)(Object(o.a)({},st),{parse:function(t){return st.parse(t)/100},transform:function(t){return st.transform(100*t)}}),ft={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},ht=Object(o.a)(Object(o.a)({},ft),{transform:J(0,1)}),pt=Object(o.a)(Object(o.a)({},ft),{default:1}),gt=Object(o.a)(Object(o.a)({},ft),{transform:Math.round}),mt={borderWidth:lt,borderTopWidth:lt,borderRightWidth:lt,borderBottomWidth:lt,borderLeftWidth:lt,borderRadius:lt,radius:lt,borderTopLeftRadius:lt,borderTopRightRadius:lt,borderBottomRightRadius:lt,borderBottomLeftRadius:lt,width:lt,maxWidth:lt,height:lt,maxHeight:lt,size:lt,top:lt,right:lt,bottom:lt,left:lt,padding:lt,paddingTop:lt,paddingRight:lt,paddingBottom:lt,paddingLeft:lt,margin:lt,marginTop:lt,marginRight:lt,marginBottom:lt,marginLeft:lt,rotate:at,rotateX:at,rotateY:at,rotateZ:at,scale:pt,scaleX:pt,scaleY:pt,scaleZ:pt,skew:at,skewX:at,skewY:at,distance:lt,translateX:lt,translateY:lt,translateZ:lt,x:lt,y:lt,z:lt,perspective:lt,transformPerspective:lt,opacity:ht,originX:dt,originY:dt,originZ:lt,zIndex:gt,fillOpacity:ht,strokeOpacity:ht,numOctaves:gt};function vt(t,e,n,o,r,i,a,s){var l,u=t.style,c=t.vars,d=t.transform,f=t.transformKeys,h=t.transformOrigin;f.length=0;var p=!1,g=!1,m=!0;for(var v in e){var y=e[v];if(q(v))c[v]=y;else{var b=mt[v],A=K(y,b);if(G(v)){if(p=!0,d[v]=A,f.push(v),!m)continue;y!==(null!==(l=b.default)&&void 0!==l?l:0)&&(m=!1)}else if(X(v))h[v]=A,g=!0;else if((null==n?void 0:n.isHydrated)&&(null==o?void 0:o.isHydrated)&&F[v]){var S=F[v].process(y,o,n),C=F[v].applyTo;if(C)for(var _=C.length,w=0;w<_;w++)u[C[w]]=S;else u[v]=S}else u[v]=A}}o&&n&&a&&s?(u.transform=a(o.deltaFinal,o.treeScale,p?d:void 0),i&&(u.transform=i(d,u.transform)),u.transformOrigin=s(o)):(p&&(u.transform=function(t,e,n,o){var r=t.transform,i=t.transformKeys,a=e.enableHardwareAcceleration,s=void 0===a||a,l=e.allowTransformNone,u=void 0===l||l,c="";i.sort(U);for(var d=!1,f=i.length,h=0;h<f;h++){var p=i[h];c+=(Z[p]||p)+"("+r[p]+") ","z"===p&&(d=!0)}return!d&&s?c+="translateZ(0)":c=c.trim(),o?c=o(r,n?"":c):u&&n&&(c="none"),c}(t,r,m,i)),g&&(u.transformOrigin=function(t){var e=t.originX,n=void 0===e?"50%":e,o=t.originY,r=void 0===o?"50%":o,i=t.originZ;return n+" "+r+" "+(void 0===i?0:i)}(h)))}var yt=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function bt(t,e,n){for(var o in e)$(e[o])||Q(o,n)||(t[o]=e[o])}function At(t,e,n){var i={};return bt(i,t.style||{},t),Object.assign(i,function(t,e,n){var i=t.transformTemplate;return Object(r.useMemo)((function(){var t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};vt(t,e,void 0,void 0,{enableHardwareAcceleration:!n},i);var r=t.vars,a=t.style;return Object(o.a)(Object(o.a)({},r),a)}),[e])}(t,e,n)),t.transformValues&&(i=t.transformValues(i)),i}function St(t,e,n){var o={},r=At(t,e,n);return Boolean(t.drag)&&(o.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),o.style=r,o}var Ct=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function _t(t){return Ct.has(t)}var wt=function(t){return!_t(t)};try{var xt=n(177).default;wt=function(t){return t.startsWith("on")?!_t(t):xt(t)}}catch(t){}function Ot(t,e,n){return"string"==typeof t?t:lt.transform(e+n*t)}var Et=function(t,e){return lt.transform(t*e)},Lt={offset:"stroke-dashoffset",array:"stroke-dasharray"},Pt={offset:"strokeDashoffset",array:"strokeDasharray"};function Bt(t,e,n,r,i,a,s,l){var u=e.attrX,c=e.attrY,d=e.originX,f=e.originY,h=e.pathLength,p=e.pathSpacing,g=void 0===p?1:p,m=e.pathOffset,v=void 0===m?0:m;vt(t,Object(o.d)(e,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r,i,a,s,l),t.attrs=t.style,t.style={};var y=t.attrs,b=t.style,A=t.dimensions,S=t.totalPathLength;y.transform&&(A&&(b.transform=y.transform),delete y.transform),A&&(void 0!==d||void 0!==f||b.transform)&&(b.transformOrigin=function(t,e,n){return Ot(e,t.x,t.width)+" "+Ot(n,t.y,t.height)}(A,void 0!==d?d:.5,void 0!==f?f:.5)),void 0!==u&&(y.x=u),void 0!==c&&(y.y=c),void 0!==S&&void 0!==h&&function(t,e,n,o,r,i){void 0===o&&(o=1),void 0===r&&(r=0),void 0===i&&(i=!0);var a=i?Lt:Pt;t[a.offset]=Et(-r,e);var s=Et(n,e),l=Et(o,e);t[a.array]=s+" "+l}(y,S,h,g,v,!1)}var Tt=function(){return Object(o.a)(Object(o.a)({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function kt(t,e){var n=Object(r.useMemo)((function(){var n=Tt();return Bt(n,e,void 0,void 0,{enableHardwareAcceleration:!1},t.transformTemplate),Object(o.a)(Object(o.a)({},n.attrs),{style:Object(o.a)({},n.style)})}),[e]);if(t.style){var i={};bt(i,t.style,t),n.style=Object(o.a)(Object(o.a)({},i),n.style)}return n}function Mt(t){void 0===t&&(t=!1);return function(e,n,i,a,s){var l=a.latestValues,u=(R(e)?kt:St)(n,l,s),c=function(t,e,n){var o={};for(var r in t)(wt(r)||!0===n&&_t(r)||!e&&!_t(r))&&(o[r]=t[r]);return o}(n,"string"==typeof e,t),d=Object(o.a)(Object(o.a)(Object(o.a)({},c),u),{ref:i});return Object(r.createElement)(e,d)}}var Dt=/([a-z])([A-Z])/g,jt=function(t){return t.replace(Dt,"$1-$2").toLowerCase()};function Wt(t,e){var n=e.style,o=e.vars;for(var r in Object.assign(t.style,n),o)t.style.setProperty(r,o[r])}var It=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function Rt(t,e){for(var n in Wt(t,e),e.attrs)t.setAttribute(It.has(n)?n:jt(n),e.attrs[n])}function Ft(t){var e=t.style,n={};for(var o in e)($(e[o])||Q(o,t))&&(n[o]=e[o]);return n}function Vt(t){var e=Ft(t);for(var n in t){if($(t[n]))e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e}function zt(t){return"object"==typeof t&&"function"==typeof t.start}var Nt=function(t){return Array.isArray(t)};function Ut(t){var e,n=$(t)?t.get():t;return e=n,Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)?n.toValue():n}function Ht(t,e,n,o){var r=t.scrapeMotionValuesFromProps,i=t.createRenderState,a=t.onMount,s={latestValues:Yt(e,n,o,r),renderState:i()};return a&&(s.mount=function(t){return a(e,t,s)}),s}var Gt=function(t){return function(e,n){var o=Object(r.useContext)(f),i=Object(r.useContext)(p);return n?Ht(t,e,o,i):g((function(){return Ht(t,e,o,i)}))}};function Yt(t,e,n,r){var i={},a=!1===(null==n?void 0:n.initial),s=r(t);for(var l in s)i[l]=Ut(s[l]);var u=t.initial,c=t.animate,d=T(t),f=k(t);e&&f&&!d&&!1!==t.inherit&&(null!=u||(u=e.initial),null!=c||(c=e.animate));var h=a||!1===u?c:u;h&&"boolean"!=typeof h&&!zt(h)&&(Array.isArray(h)?h:[h]).forEach((function(e){var n=P(t,e);if(n){var r=n.transitionEnd;n.transition;var a=Object(o.d)(n,["transitionEnd","transition"]);for(var s in a)i[s]=a[s];for(var s in r)i[s]=r[s]}}));return i}var Xt={useVisualState:Gt({scrapeMotionValuesFromProps:Vt,createRenderState:Tt,onMount:function(t,e,n){var o=n.renderState,r=n.latestValues;try{o.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){o.dimensions={x:0,y:0,width:0,height:0}}"path"===e.tagName&&(o.totalPathLength=e.getTotalLength()),Bt(o,r,void 0,void 0,{enableHardwareAcceleration:!1},t.transformTemplate),Rt(e,o)}})};var Qt,$t={useVisualState:Gt({scrapeMotionValuesFromProps:Ft,createRenderState:yt})};function Zt(t,e,n,r){var i=e.forwardMotionProps,a=void 0!==i&&i,s=R(t)?Xt:$t;return Object(o.a)(Object(o.a)({},s),{preloadedFeatures:n,useRender:Mt(a),createVisualElement:r,Component:t})}function qt(t,e,n,o){return t.addEventListener(e,n,o),function(){return t.removeEventListener(e,n,o)}}function Kt(t,e,n,o){Object(r.useEffect)((function(){var r=t.current;if(n&&r)return qt(r,e,n,o)}),[t,e,n,o])}function Jt(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function te(t){return!!t.touches}!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.Exit="exit"}(Qt||(Qt={}));var ee={pageX:0,pageY:0};function ne(t,e){void 0===e&&(e="page");var n=t.touches[0]||t.changedTouches[0]||ee;return{x:n[e+"X"],y:n[e+"Y"]}}function oe(t,e){return void 0===e&&(e="page"),{x:t[e+"X"],y:t[e+"Y"]}}function re(t,e){return void 0===e&&(e="page"),{point:te(t)?ne(t,e):oe(t,e)}}var ie=function(t,e){void 0===e&&(e=!1);var n,o=function(e){return t(e,re(e))};return e?(n=o,function(t){var e=t instanceof MouseEvent;(!e||e&&0===t.button)&&n(t)}):o},ae={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},se={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function le(t){return _&&null===window.onpointerdown?t:_&&null===window.ontouchstart?se[t]:_&&null===window.onmousedown?ae[t]:t}function ue(t,e,n,o){return qt(t,le(e),ie(n,"pointerdown"===e),o)}function ce(t,e,n,o){return Kt(t,le(e),n&&ie(n,"pointerdown"===e),o)}function de(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}var fe=de("dragHorizontal"),he=de("dragVertical");function pe(t){var e=!1;if("y"===t)e=he();else if("x"===t)e=fe();else{var n=fe(),o=he();n&&o?e=function(){n(),o()}:(n&&n(),o&&o())}return e}function ge(){var t=pe(!0);return!t||(t(),!1)}function me(t,e,n){return function(o,r){var i;Jt(o)&&!ge()&&(null==n||n(o,r),null===(i=t.animationState)||void 0===i||i.setActive(Qt.Hover,e))}}var ve=function(t,e){return!!e&&(t===e||ve(t,e.parentElement))};function ye(t){return Object(r.useEffect)((function(){return function(){return t()}}),[])}var be=function(t,e){return function(n){return e(t(n))}},Ae=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(be)};var Se=function(t){return function(e){return t(e),null}},Ce={tap:Se((function(t){var e=t.onTap,n=t.onTapStart,o=t.onTapCancel,i=t.whileTap,a=t.visualElement,s=e||n||o||i,l=Object(r.useRef)(!1),u=Object(r.useRef)(null);function c(){var t;null===(t=u.current)||void 0===t||t.call(u),u.current=null}function d(){var t;return c(),l.current=!1,null===(t=a.animationState)||void 0===t||t.setActive(Qt.Tap,!1),!ge()}function f(t,n){d()&&(ve(a.getInstance(),t.target)?null==e||e(t,n):null==o||o(t,n))}function h(t,e){d()&&(null==o||o(t,e))}ce(a,"pointerdown",s?function(t,e){var o;c(),l.current||(l.current=!0,u.current=Ae(ue(window,"pointerup",f),ue(window,"pointercancel",h)),null==n||n(t,e),null===(o=a.animationState)||void 0===o||o.setActive(Qt.Tap,!0))}:void 0),ye(c)})),focus:Se((function(t){var e=t.whileFocus,n=t.visualElement;Kt(n,"focus",e?function(){var t;null===(t=n.animationState)||void 0===t||t.setActive(Qt.Focus,!0)}:void 0),Kt(n,"blur",e?function(){var t;null===(t=n.animationState)||void 0===t||t.setActive(Qt.Focus,!1)}:void 0)})),hover:Se((function(t){var e=t.onHoverStart,n=t.onHoverEnd,o=t.whileHover,r=t.visualElement;ce(r,"pointerenter",e||o?me(r,!0,e):void 0),ce(r,"pointerleave",n||o?me(r,!1,n):void 0)}))};function _e(t,e){if(!Array.isArray(e))return!1;var n=e.length;if(n!==t.length)return!1;for(var o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}var we=function(t,e,n){return Math.min(Math.max(n,t),e)},xe=.001;function Oe(t){var e,n,o=t.duration,r=void 0===o?800:o,i=t.bounce,a=void 0===i?.25:i,s=t.velocity,l=void 0===s?0:s,u=t.mass,c=void 0===u?1:u,d=1-a;d=we(.05,1,d),r=we(.01,10,r/1e3),d<1?(e=function(t){var e=t*d,n=e*r,o=e-l,i=Ee(t,d),a=Math.exp(-n);return xe-o/i*a},n=function(t){var n=t*d*r,o=n*l+l,i=Math.pow(d,2)*Math.pow(t,2)*r,a=Math.exp(-n),s=Ee(Math.pow(t,2),d);return(-e(t)+xe>0?-1:1)*((o-i)*a)/s}):(e=function(t){return Math.exp(-t*r)*((t-l)*r+1)-.001},n=function(t){return Math.exp(-t*r)*(r*r*(l-t))});var f=function(t,e,n){for(var o=n,r=1;r<12;r++)o-=t(o)/e(o);return o}(e,n,5/r);if(r*=1e3,isNaN(f))return{stiffness:100,damping:10,duration:r};var h=Math.pow(f,2)*c;return{stiffness:h,damping:2*d*Math.sqrt(c*h),duration:r}}function Ee(t,e){return t*Math.sqrt(1-e*e)}var Le=["duration","bounce"],Pe=["stiffness","damping","mass"];function Be(t,e){return e.some((function(e){return void 0!==t[e]}))}function Te(t){var e=t.from,n=void 0===e?0:e,r=t.to,i=void 0===r?1:r,a=t.restSpeed,s=void 0===a?2:a,l=t.restDelta,u=Object(o.d)(t,["from","to","restSpeed","restDelta"]),c={done:!1,value:n},d=function(t){var e=Object(o.a)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!Be(t,Pe)&&Be(t,Le)){var n=Oe(t);(e=Object(o.a)(Object(o.a)(Object(o.a)({},e),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return e}(u),f=d.stiffness,h=d.damping,p=d.mass,g=d.velocity,m=d.duration,v=d.isResolvedFromDuration,y=ke,b=ke;function A(){var t=g?-g/1e3:0,e=i-n,o=h/(2*Math.sqrt(f*p)),r=Math.sqrt(f/p)/1e3;if(null!=l||(l=Math.abs(i-n)<=1?.01:.4),o<1){var a=Ee(r,o);y=function(n){var s=Math.exp(-o*r*n);return i-s*((t+o*r*e)/a*Math.sin(a*n)+e*Math.cos(a*n))},b=function(n){var i=Math.exp(-o*r*n);return o*r*i*(Math.sin(a*n)*(t+o*r*e)/a+e*Math.cos(a*n))-i*(Math.cos(a*n)*(t+o*r*e)-a*e*Math.sin(a*n))}}else if(1===o)y=function(n){return i-Math.exp(-r*n)*(e+(t+r*e)*n)};else{var s=r*Math.sqrt(o*o-1);y=function(n){var a=Math.exp(-o*r*n),l=Math.min(s*n,300);return i-a*((t+o*r*e)*Math.sinh(l)+s*e*Math.cosh(l))/s}}}return A(),{next:function(t){var e=y(t);if(v)c.done=t>=m;else{var n=1e3*b(t),o=Math.abs(n)<=s,r=Math.abs(i-e)<=l;c.done=o&&r}return c.value=c.done?i:e,c},flipTarget:function(){var t;g=-g,n=(t=[i,n])[0],i=t[1],A()}}}Te.needsInterpolation=function(t,e){return"string"==typeof t||"string"==typeof e};var ke=function(t){return 0},Me=function(t,e,n){var o=e-t;return 0===o?1:(n-t)/o},De=function(t,e,n){return-n*t+n*e+t},je=function(t,e){return function(n){return Boolean(rt(n)&&ot.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e))}},We=function(t,e,n){return function(o){var r;if(!rt(o))return o;var i=o.match(et),a=i[0],s=i[1],l=i[2],u=i[3];return(r={})[t]=parseFloat(a),r[e]=parseFloat(s),r[n]=parseFloat(l),r.alpha=void 0!==u?parseFloat(u):1,r}},Ie=J(0,255),Re=Object(o.a)(Object(o.a)({},ft),{transform:function(t){return Math.round(Ie(t))}}),Fe={test:je("rgb","red"),parse:We("red","green","blue"),transform:function(t){var e=t.red,n=t.green,o=t.blue,r=t.alpha,i=void 0===r?1:r;return"rgba("+Re.transform(e)+", "+Re.transform(n)+", "+Re.transform(o)+", "+tt(ht.transform(i))+")"}};var Ve={test:je("#"),parse:function(t){var e="",n="",o="",r="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),o=t.substr(5,2),r=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),o=t.substr(3,1),r=t.substr(4,1),e+=e,n+=n,o+=o,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}},transform:Fe.transform},ze={test:je("hsl","hue"),parse:We("hue","saturation","lightness"),transform:function(t){var e=t.hue,n=t.saturation,o=t.lightness,r=t.alpha,i=void 0===r?1:r;return"hsla("+Math.round(e)+", "+st.transform(tt(n))+", "+st.transform(tt(o))+", "+tt(ht.transform(i))+")"}},Ne=function(t,e,n){var o=t*t,r=e*e;return Math.sqrt(Math.max(0,n*(r-o)+o))},Ue=[Ve,Fe,ze],He=function(t){return Ue.find((function(e){return e.test(t)}))},Ge=function(t){return"'"+t+"' is not an animatable color. Use the equivalent color code instead."},Ye=function(t,e){var n=He(t),r=He(e);Ge(t),Ge(e),n.transform,r.transform;var i=n.parse(t),a=r.parse(e),s=Object(o.a)({},i),l=n===ze?De:Ne;return function(t){for(var e in s)"alpha"!==e&&(s[e]=l(i[e],a[e],t));return s.alpha=De(i.alpha,a.alpha,t),n.transform(s)}},Xe={test:function(t){return Fe.test(t)||Ve.test(t)||ze.test(t)},parse:function(t){return Fe.test(t)?Fe.parse(t):ze.test(t)?ze.parse(t):Ve.parse(t)},transform:function(t){return rt(t)?t:t.hasOwnProperty("red")?Fe.transform(t):ze.transform(t)}},Qe="${c}",$e="${n}";function Ze(t){var e=[],n=0,o=t.match(nt);o&&(n=o.length,t=t.replace(nt,Qe),e.push.apply(e,o.map(Xe.parse)));var r=t.match(et);return r&&(t=t.replace(et,$e),e.push.apply(e,r.map(ft.parse))),{values:e,numColors:n,tokenised:t}}function qe(t){return Ze(t).values}function Ke(t){var e=Ze(t),n=e.values,o=e.numColors,r=e.tokenised,i=n.length;return function(t){for(var e=r,n=0;n<i;n++)e=e.replace(n<o?Qe:$e,n<o?Xe.transform(t[n]):tt(t[n]));return e}}var Je=function(t){return"number"==typeof t?0:t};var tn={test:function(t){var e,n,o,r;return isNaN(t)&&rt(t)&&(null!==(n=null===(e=t.match(et))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(r=null===(o=t.match(nt))||void 0===o?void 0:o.length)&&void 0!==r?r:0)>0},parse:qe,createTransformer:Ke,getAnimatableNone:function(t){var e=qe(t);return Ke(t)(e.map(Je))}},en=function(t){return"number"==typeof t};function nn(t,e){return en(t)?function(n){return De(t,e,n)}:Xe.test(t)?Ye(t,e):sn(t,e)}var on=function(t,e){var n=Object(o.e)([],t),r=n.length,i=t.map((function(t,n){return nn(t,e[n])}));return function(t){for(var e=0;e<r;e++)n[e]=i[e](t);return n}},rn=function(t,e){var n=Object(o.a)(Object(o.a)({},t),e),r={};for(var i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=nn(t[i],e[i]));return function(t){for(var e in r)n[e]=r[e](t);return n}};function an(t){for(var e=tn.parse(t),n=e.length,o=0,r=0,i=0,a=0;a<n;a++)o||"number"==typeof e[a]?o++:void 0!==e[a].hue?i++:r++;return{parsed:e,numNumbers:o,numRGB:r,numHSL:i}}var sn=function(t,e){var n=tn.createTransformer(e),o=an(t),r=an(e);return o.numHSL===r.numHSL&&o.numRGB===r.numRGB&&(o.numNumbers,r.numNumbers),Ae(on(o.parsed,r.parsed),n)},ln=function(t,e){return function(n){return De(t,e,n)}};function un(t,e,n){for(var o,r=[],i=n||("number"==typeof(o=t[0])?ln:"string"==typeof o?Xe.test(o)?Ye:sn:Array.isArray(o)?on:"object"==typeof o?rn:void 0),a=t.length-1,s=0;s<a;s++){var l=i(t[s],t[s+1]);if(e){var u=Array.isArray(e)?e[s]:e;l=Ae(u,l)}r.push(l)}return r}function cn(t,e,n){var o=void 0===n?{}:n,r=o.clamp,i=void 0===r||r,a=o.ease,s=o.mixer,l=t.length;e.length,!a||!Array.isArray(a)||a.length,t[0]>t[l-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());var u=un(e,a,s),c=2===l?function(t,e){var n=t[0],o=t[1],r=e[0];return function(t){return r(Me(n,o,t))}}(t,u):function(t,e){var n=t.length,o=n-1;return function(r){var i=0,a=!1;if(r<=t[0]?a=!0:r>=t[o]&&(i=o-1,a=!0),!a){for(var s=1;s<n&&!(t[s]>r||s===o);s++);i=s-1}var l=Me(t[i],t[i+1],r);return e[i](l)}}(t,u);return i?function(e){return c(we(t[0],t[l-1],e))}:c}var dn,fn=function(t){return function(e){return 1-t(1-e)}},hn=function(t){return function(e){return e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2}},pn=function(t){return function(e){return e*e*((t+1)*e-t)}},gn=function(t){return t},mn=(dn=2,function(t){return Math.pow(t,dn)}),vn=fn(mn),yn=hn(mn),bn=function(t){return 1-Math.sin(Math.acos(t))},An=fn(bn),Sn=hn(An),Cn=pn(1.525),_n=fn(Cn),wn=hn(Cn),xn=function(t){var e=pn(t);return function(t){return(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))}}(1.525),On=function(t){if(1===t||0===t)return t;var e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},En=fn(On);function Ln(t,e){return t.map((function(){return e||yn})).splice(0,t.length-1)}function Pn(t){var e=t.from,n=void 0===e?0:e,o=t.to,r=void 0===o?1:o,i=t.ease,a=t.offset,s=t.duration,l=void 0===s?300:s,u={done:!1,value:n},c=Array.isArray(r)?r:[n,r],d=function(t,e){return t.map((function(t){return t*e}))}(a&&a.length===c.length?a:function(t){var e=t.length;return t.map((function(t,n){return 0!==n?n/(e-1):0}))}(c),l);function f(){return cn(d,c,{ease:Array.isArray(i)?i:Ln(c,i)})}var h=f();return{next:function(t){return u.value=h(t),u.done=t>=l,u},flipTarget:function(){c.reverse(),h=f()}}}var Bn={keyframes:Pn,spring:Te,decay:function(t){var e=t.velocity,n=void 0===e?0:e,o=t.from,r=void 0===o?0:o,i=t.power,a=void 0===i?.8:i,s=t.timeConstant,l=void 0===s?350:s,u=t.restDelta,c=void 0===u?.5:u,d=t.modifyTarget,f={done:!1,value:r},h=a*n,p=r+h,g=void 0===d?p:d(p);return g!==p&&(h=g-r),{next:function(t){var e=-h*Math.exp(-t/l);return f.done=!(e>c||e<-c),f.value=f.done?g:g+e,f},flipTarget:function(){}}}};var Tn=1/60*1e3,kn="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},Mn="undefined"!=typeof window?function(t){return window.requestAnimationFrame(t)}:function(t){return setTimeout((function(){return t(kn())}),Tn)};var Dn=!0,jn=!1,Wn=!1,In={delta:0,timestamp:0},Rn=["read","update","preRender","render","postRender"],Fn=Rn.reduce((function(t,e){return t[e]=function(t){var e=[],n=[],o=0,r=!1,i=new WeakSet,a={schedule:function(t,a,s){void 0===a&&(a=!1),void 0===s&&(s=!1);var l=s&&r,u=l?e:n;return a&&i.add(t),-1===u.indexOf(t)&&(u.push(t),l&&r&&(o=e.length)),t},cancel:function(t){var e=n.indexOf(t);-1!==e&&n.splice(e,1),i.delete(t)},process:function(s){var l;if(r=!0,e=(l=[n,e])[0],(n=l[1]).length=0,o=e.length)for(var u=0;u<o;u++){var c=e[u];c(s),i.has(c)&&(a.schedule(c),t())}r=!1}};return a}((function(){return jn=!0})),t}),{}),Vn=Rn.reduce((function(t,e){var n=Fn[e];return t[e]=function(t,e,o){return void 0===e&&(e=!1),void 0===o&&(o=!1),jn||Gn(),n.schedule(t,e,o)},t}),{}),zn=Rn.reduce((function(t,e){return t[e]=Fn[e].cancel,t}),{}),Nn=Rn.reduce((function(t,e){return t[e]=function(){return Fn[e].process(In)},t}),{}),Un=function(t){return Fn[t].process(In)},Hn=function(t){jn=!1,In.delta=Dn?Tn:Math.max(Math.min(t-In.timestamp,40),1),In.timestamp=t,Wn=!0,Rn.forEach(Un),Wn=!1,jn&&(Dn=!1,Mn(Hn))},Gn=function(){jn=!0,Dn=!0,Wn||Mn(Hn)},Yn=function(){return In},Xn=Vn;function Qn(t,e,n){return void 0===n&&(n=0),t-e-n}var $n=function(t){var e=function(e){var n=e.delta;return t(n)};return{start:function(){return Xn.update(e,!0)},stop:function(){return zn.update(e)}}};function Zn(t){var e,n,r,i,a,s=t.from,l=t.autoplay,u=void 0===l||l,c=t.driver,d=void 0===c?$n:c,f=t.elapsed,h=void 0===f?0:f,p=t.repeat,g=void 0===p?0:p,m=t.repeatType,v=void 0===m?"loop":m,y=t.repeatDelay,b=void 0===y?0:y,A=t.onPlay,S=t.onStop,C=t.onComplete,_=t.onRepeat,w=t.onUpdate,x=Object(o.d)(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),O=x.to,E=0,L=x.duration,P=!1,B=!0,T=function(t){if(Array.isArray(t.to))return Pn;if(Bn[t.type])return Bn[t.type];var e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?Pn:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?Te:Pn}(x);(null===(n=(e=T).needsInterpolation)||void 0===n?void 0:n.call(e,s,O))&&(a=cn([0,100],[s,O],{clamp:!1}),s=0,O=100);var k=T(Object(o.a)(Object(o.a)({},x),{from:s,to:O}));function M(){E++,"reverse"===v?h=function(t,e,n,o){return void 0===n&&(n=0),void 0===o&&(o=!0),o?Qn(e+-t,e,n):e-(t-e)+n}(h,L,b,B=E%2==0):(h=Qn(h,L,b),"mirror"===v&&k.flipTarget()),P=!1,_&&_()}function D(t){if(B||(t=-t),h+=t,!P){var e=k.next(Math.max(0,h));i=e.value,a&&(i=a(i)),P=B?e.done:h<=0}null==w||w(i),P&&(0===E&&(null!=L||(L=h)),E<g?function(t,e,n,o){return o?t>=e+n:t<=-n}(h,L,b,B)&&M():(r.stop(),C&&C()))}return u&&(null==A||A(),(r=d(D)).start()),{stop:function(){null==S||S(),r.stop()}}}function qn(t,e){return e?t*(1e3/e):0}var Kn=function(t){return 1e3*t},Jn=function(t,e){return 1-3*e+3*t},to=function(t,e){return 3*e-6*t},eo=function(t){return 3*t},no=function(t,e,n){return((Jn(e,n)*t+to(e,n))*t+eo(e))*t},oo=function(t,e,n){return 3*Jn(e,n)*t*t+2*to(e,n)*t+eo(e)};var ro=.1;function io(t,e,n,o){if(t===e&&n===o)return gn;for(var r=new Float32Array(11),i=0;i<11;++i)r[i]=no(i*ro,t,n);function a(e){for(var o=0,i=1;10!==i&&r[i]<=e;++i)o+=ro;--i;var a=o+(e-r[i])/(r[i+1]-r[i])*ro,s=oo(a,t,n);return s>=.001?function(t,e,n,o){for(var r=0;r<8;++r){var i=oo(e,n,o);if(0===i)return e;e-=(no(e,n,o)-t)/i}return e}(e,a,t,n):0===s?a:function(t,e,n,o,r){var i,a,s=0;do{(i=no(a=e+(n-e)/2,o,r)-t)>0?n=a:e=a}while(Math.abs(i)>1e-7&&++s<10);return a}(e,o,o+ro,t,n)}return function(t){return 0===t||1===t?t:no(a(t),e,o)}}var ao={linear:gn,easeIn:mn,easeInOut:yn,easeOut:vn,circIn:bn,circInOut:Sn,circOut:An,backIn:Cn,backInOut:wn,backOut:_n,anticipate:xn,bounceIn:En,bounceInOut:function(t){return t<.5?.5*(1-On(1-2*t)):.5*On(2*t-1)+.5},bounceOut:On},so=function(t){if(Array.isArray(t)){t.length;var e=Object(o.c)(t,4);return io(e[0],e[1],e[2],e[3])}return"string"==typeof t?ao[t]:t},lo=function(t,e){return"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!tn.test(e)||e.startsWith("url(")))},uo=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},co=function(t){return{type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},fo=function(){return{type:"keyframes",ease:"linear",duration:.3}},ho=function(t){return{type:"keyframes",duration:.8,values:t}},po={x:uo,y:uo,z:uo,rotate:uo,rotateX:uo,rotateY:uo,rotateZ:uo,scaleX:co,scaleY:co,scale:co,opacity:fo,backgroundColor:fo,color:fo,default:co},go=new Set(["brightness","contrast","saturate","opacity"]);function mo(t){var e=t.slice(0,-1).split("("),n=e[0],o=e[1];if("drop-shadow"===n)return t;var r=(o.match(et)||[])[0];if(!r)return t;var i=o.replace(r,""),a=go.has(n)?1:0;return r!==o&&(a*=100),n+"("+a+i+")"}var vo=/([a-z-]*)\(.*?\)/g,yo=Object(o.a)(Object(o.a)({},tn),{getAnimatableNone:function(t){var e=t.match(vo);return e?e.map(mo).join(" "):t}}),bo=Object(o.a)(Object(o.a)({},mt),{color:Xe,backgroundColor:Xe,outlineColor:Xe,fill:Xe,stroke:Xe,borderColor:Xe,borderTopColor:Xe,borderRightColor:Xe,borderBottomColor:Xe,borderLeftColor:Xe,filter:yo,WebkitFilter:yo}),Ao=function(t){return bo[t]};function So(t,e){var n,o=Ao(t);return o!==yo&&(o=tn),null===(n=o.getAnimatableNone)||void 0===n?void 0:n.call(o,e)}function Co(t){var e=t.ease,n=t.times,r=t.yoyo,i=t.flip,a=t.loop,s=Object(o.d)(t,["ease","times","yoyo","flip","loop"]),l=Object(o.a)({},s);return n&&(l.offset=n),s.duration&&(l.duration=Kn(s.duration)),s.repeatDelay&&(l.repeatDelay=Kn(s.repeatDelay)),e&&(l.ease=function(t){return Array.isArray(t)&&"number"!=typeof t[0]}(e)?e.map(so):so(e)),"tween"===s.type&&(l.type="keyframes"),(r||a||i)&&(!0,r?l.repeatType="reverse":a?l.repeatType="loop":i&&(l.repeatType="mirror"),l.repeat=a||r||i||s.repeat),"spring"!==s.type&&(l.type="keyframes"),l}function _o(t,e,n){var r,i,a,s;return Array.isArray(e.to)&&(null!==(r=t.duration)&&void 0!==r||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=Object(o.e)([],Object(o.c)(t.to)),t.to[0]=t.from)}(e),function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var e=Object(o.d)(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(e).length}(t)||(t=Object(o.a)(Object(o.a)({},t),(i=n,a=e.to,s=Nt(a)?ho:po[i]||po.default,Object(o.a)({to:a},s(a))))),Object(o.a)(Object(o.a)({},e),Co(t))}function wo(t,e,n,r,i){var a,s=Eo(r,t),l=null!==(a=s.from)&&void 0!==a?a:e.get(),u=lo(t,n);"none"===l&&u&&"string"==typeof n?l=So(t,n):xo(l)&&"string"==typeof n?l=Oo(n):!Array.isArray(n)&&xo(n)&&"string"==typeof l&&(n=Oo(l));var c=lo(t,l);return c&&u&&!1!==s.type?function(){var r={from:l,to:n,velocity:e.getVelocity(),onComplete:i,onUpdate:function(t){return e.set(t)}};return"inertia"===s.type||"decay"===s.type?function(t){var e,n=t.from,r=void 0===n?0:n,i=t.velocity,a=void 0===i?0:i,s=t.min,l=t.max,u=t.power,c=void 0===u?.8:u,d=t.timeConstant,f=void 0===d?750:d,h=t.bounceStiffness,p=void 0===h?500:h,g=t.bounceDamping,m=void 0===g?10:g,v=t.restDelta,y=void 0===v?1:v,b=t.modifyTarget,A=t.driver,S=t.onUpdate,C=t.onComplete;function _(t){return void 0!==s&&t<s||void 0!==l&&t>l}function w(t){return void 0===s?l:void 0===l||Math.abs(s-t)<Math.abs(l-t)?s:l}function x(t){null==e||e.stop(),e=Zn(Object(o.a)(Object(o.a)({},t),{driver:A,onUpdate:function(e){var n;null==S||S(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:C}))}function O(t){x(Object(o.a)({type:"spring",stiffness:p,damping:m,restDelta:y},t))}if(_(r))O({from:r,velocity:a,to:w(r)});else{var E=c*a+r;"undefined"!=typeof b&&(E=b(E));var L,P,B=w(E),T=B===s?-1:1;x({type:"decay",from:r,velocity:a,timeConstant:f,power:c,restDelta:y,modifyTarget:b,onUpdate:_(E)?function(t){L=P,P=t,a=qn(t-L,Yn().delta),(1===T&&t>B||-1===T&&t<B)&&O({from:t,to:B,velocity:a})}:void 0})}return{stop:function(){return null==e?void 0:e.stop()}}}(Object(o.a)(Object(o.a)({},r),s)):Zn(Object(o.a)(Object(o.a)({},_o(s,r,t)),{onUpdate:function(t){var e;r.onUpdate(t),null===(e=s.onUpdate)||void 0===e||e.call(s,t)},onComplete:function(){var t;r.onComplete(),null===(t=s.onComplete)||void 0===t||t.call(s)}}))}:function(){var t;return e.set(n),i(),null===(t=null==s?void 0:s.onComplete)||void 0===t||t.call(s),{stop:function(){}}}}function xo(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function Oo(t){return"number"==typeof t?0:So("",t)}function Eo(t,e){return t[e]||t.default||t}function Lo(t,e,n,o){return void 0===o&&(o={}),e.start((function(r){var i,a,s=wo(t,e,n,o,r),l=function(t,e){var n;return null!==(n=(Eo(t,e)||{}).delay)&&void 0!==n?n:0}(o,t),u=function(){return a=s()};return l?i=setTimeout(u,Kn(l)):u(),function(){clearTimeout(i),null==a||a.stop()}}))}function Po(t,e){-1===t.indexOf(e)&&t.push(e)}function Bo(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var To=function(){function t(){this.subscriptions=[]}return t.prototype.add=function(t){var e=this;return Po(this.subscriptions,t),function(){return Bo(e.subscriptions,t)}},t.prototype.notify=function(t,e,n){var o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](t,e,n);else for(var r=0;r<o;r++){var i=this.subscriptions[r];i&&i(t,e,n)}},t.prototype.getSize=function(){return this.subscriptions.length},t.prototype.clear=function(){this.subscriptions.length=0},t}(),ko=function(){function t(t){var e,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new To,this.velocityUpdateSubscribers=new To,this.renderSubscribers=new To,this.canTrackVelocity=!1,this.updateAndNotify=function(t,e){void 0===e&&(e=!0),n.prev=n.current,n.current=t;var o=Yn(),r=o.delta,i=o.timestamp;n.lastUpdated!==i&&(n.timeDelta=r,n.lastUpdated=i,Xn.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),e&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return Xn.postRender(n.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}return t.prototype.onChange=function(t){return this.updateSubscribers.add(t)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},t.prototype.attach=function(t){this.passiveEffect=t},t.prototype.set=function(t,e){void 0===e&&(e=!0),e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?qn(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(t){var e=this;return this.stop(),new Promise((function(n){e.hasAnimated=!0,e.stopAnimation=t(n)})).then((function(){return e.clearAnimation()}))},t.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},t.prototype.isAnimating=function(){return!!this.stopAnimation},t.prototype.clearAnimation=function(){this.stopAnimation=null},t.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},t}();function Mo(t){return new ko(t)}var Do=function(t){return function(e){return e.test(t)}},jo=[ft,lt,st,at,ct,ut,{test:function(t){return"auto"===t},parse:function(t){return t}}],Wo=function(t){return jo.find(Do(t))},Io=Object(o.e)(Object(o.e)([],Object(o.c)(jo)),[Xe,tn]),Ro=function(t){return Io.find(Do(t))};function Fo(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Mo(n))}function Vo(t,e){var n=B(t,e),r=n?t.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,a=void 0===i?{}:i;r.transition;var s,l=Object(o.d)(r,["transitionEnd","transition"]);for(var u in l=Object(o.a)(Object(o.a)({},l),a)){Fo(t,u,(s=l[u],Nt(s)?s[s.length-1]||0:s))}}function zo(t,e){Object(o.e)([],Object(o.c)(e)).reverse().forEach((function(n){var o,r=t.getVariant(n);r&&Vo(t,r),null===(o=t.variantChildren)||void 0===o||o.forEach((function(t){zo(t,e)}))}))}function No(t,e,n){var o,r,i,a,s=Object.keys(e).filter((function(e){return!t.hasValue(e)})),l=s.length;if(l)for(var u=0;u<l;u++){var c=s[u],d=e[c],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(r=null!==(o=n[c])&&void 0!==o?o:t.readValue(c))&&void 0!==r?r:e[c]),null!=f&&("string"==typeof f&&/^\-?\d*\.?\d+$/.test(f)?f=parseFloat(f):!Ro(f)&&tn.test(d)&&(f=So(c,d)),t.addValue(c,Mo(f)),null!==(i=(a=n)[c])&&void 0!==i||(a[c]=f),t.setBaseTarget(c,f))}}function Uo(t,e){if(e)return(e[t]||e.default||e).from}function Ho(t,e,n){var o,r,i={};for(var a in t)i[a]=null!==(o=Uo(a,e))&&void 0!==o?o:null===(r=n.getValue(a))||void 0===r?void 0:r.get();return i}function Go(t,e,n){var o;if(void 0===n&&(n={}),t.notifyAnimationStart(),Array.isArray(e)){var r=e.map((function(e){return Yo(t,e,n)}));o=Promise.all(r)}else if("string"==typeof e)o=Yo(t,e,n);else{var i="function"==typeof e?B(t,e,n.custom):e;o=Xo(t,i,n)}return o.then((function(){return t.notifyAnimationComplete(e)}))}function Yo(t,e,n){var r;void 0===n&&(n={});var i=B(t,e,n.custom),a=(i||{}).transition,s=void 0===a?t.getDefaultTransition()||{}:a;n.transitionOverride&&(s=n.transitionOverride);var l=i?function(){return Xo(t,i,n)}:function(){return Promise.resolve()},u=(null===(r=t.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var i=s.delayChildren,a=void 0===i?0:i,l=s.staggerChildren,u=s.staggerDirection;return function(t,e,n,r,i,a){void 0===n&&(n=0);void 0===r&&(r=0);void 0===i&&(i=1);var s=[],l=(t.variantChildren.size-1)*r,u=1===i?function(t){return void 0===t&&(t=0),t*r}:function(t){return void 0===t&&(t=0),l-t*r};return Array.from(t.variantChildren).sort(Qo).forEach((function(t,r){s.push(Yo(t,e,Object(o.a)(Object(o.a)({},a),{delay:n+u(r)})).then((function(){return t.notifyAnimationComplete(e)})))})),Promise.all(s)}(t,e,a+r,l,u,n)}:function(){return Promise.resolve()},c=s.when;if(c){var d=Object(o.c)("beforeChildren"===c?[l,u]:[u,l],2),f=d[0],h=d[1];return f().then(h)}return Promise.all([l(),u(n.delay)])}function Xo(t,e,n){var r,i=void 0===n?{}:n,a=i.delay,s=void 0===a?0:a,l=i.transitionOverride,u=i.type,c=t.makeTargetAnimatable(e),d=c.transition,f=void 0===d?t.getDefaultTransition():d,h=c.transitionEnd,p=Object(o.d)(c,["transition","transitionEnd"]);l&&(f=l);var g=[],m=u&&(null===(r=t.animationState)||void 0===r?void 0:r.getState()[u]);for(var v in p){var y=t.getValue(v),b=p[v];if(!(!y||void 0===b||m&&$o(m,v))){var A=Lo(v,y,b,Object(o.a)({delay:s},f));g.push(A)}}return Promise.all(g).then((function(){h&&Vo(t,h)}))}function Qo(t,e){return t.sortNodePosition(e)}function $o(t,e){var n=t.protectedKeys,o=t.needsAnimating,r=n.hasOwnProperty(e)&&!0!==o[e];return o[e]=!1,r}var Zo=[Qt.Animate,Qt.Hover,Qt.Tap,Qt.Drag,Qt.Focus,Qt.Exit],qo=Object(o.e)([],Object(o.c)(Zo)).reverse(),Ko=Zo.length;function Jo(t){var e,n=function(t){return function(e){return Promise.all(e.map((function(e){var n=e.animation,o=e.options;return Go(t,n,o)})))}}(t),r=((e={})[Qt.Animate]=tr(!0),e[Qt.Hover]=tr(),e[Qt.Tap]=tr(),e[Qt.Drag]=tr(),e[Qt.Focus]=tr(),e[Qt.Exit]=tr(),e),i={},a=!0,s=function(e,n){var r=B(t,n);if(r){r.transition;var i=r.transitionEnd,a=Object(o.d)(r,["transition","transitionEnd"]);e=Object(o.a)(Object(o.a)(Object(o.a)({},e),a),i)}return e};function l(e,l){for(var u,c=t.getProps(),d=t.getVariantContext(!0)||{},f=[],h=new Set,p={},g=1/0,m=function(n){var i=qo[n],m=r[i],v=null!==(u=c[i])&&void 0!==u?u:d[i],y=L(v),b=i===l?m.isActive:null;!1===b&&(g=n);var A=v===d[i]&&v!==c[i]&&y;if(A&&a&&t.manuallyAnimateOnMount&&(A=!1),m.protectedKeys=Object(o.a)({},p),!m.isActive&&null===b||!v&&!m.prevProp||zt(v)||"boolean"==typeof v)return"continue";var S=function(t,e){if("string"==typeof e)return e!==t;if(E(e))return!_e(e,t);return!1}(m.prevProp,v)||i===l&&m.isActive&&!A&&y||n>g&&y,C=Array.isArray(v)?v:[v],_=C.reduce(s,{});!1===b&&(_={});var w=m.prevResolvedValues,x=void 0===w?{}:w,O=Object(o.a)(Object(o.a)({},x),_),P=function(t){S=!0,h.delete(t),m.needsAnimating[t]=!0};for(var B in O){var T=_[B],k=x[B];p.hasOwnProperty(B)||(T!==k?Nt(T)&&Nt(k)?_e(T,k)?m.protectedKeys[B]=!0:P(B):void 0!==T?P(B):h.add(B):void 0!==T&&h.has(B)?P(B):m.protectedKeys[B]=!0)}m.prevProp=v,m.prevResolvedValues=_,m.isActive&&(p=Object(o.a)(Object(o.a)({},p),_)),a&&t.blockInitialAnimation&&(S=!1),S&&!A&&f.push.apply(f,Object(o.e)([],Object(o.c)(C.map((function(t){return{animation:t,options:Object(o.a)({type:i},e)}})))))},v=0;v<Ko;v++)m(v);if(i=Object(o.a)({},p),h.size){var y={};h.forEach((function(e){var n=t.getBaseTarget(e);void 0!==n&&(y[e]=n)})),f.push({animation:y})}var b=Boolean(f.length);return a&&!1===c.initial&&!t.manuallyAnimateOnMount&&(b=!1),a=!1,b?n(f):Promise.resolve()}return{isAnimated:function(t){return void 0!==i[t]},animateChanges:l,setActive:function(e,n,o){var i;return r[e].isActive===n?Promise.resolve():(null===(i=t.variantChildren)||void 0===i||i.forEach((function(t){var o;return null===(o=t.animationState)||void 0===o?void 0:o.setActive(e,n)})),r[e].isActive=n,l(o,e))},setAnimateFunction:function(e){n=e(t)},getState:function(){return r}}}function tr(t){return void 0===t&&(t=!1),{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var er={animation:Se((function(t){var e=t.visualElement,n=t.animate;e.animationState||(e.animationState=Jo(e)),zt(n)&&Object(r.useEffect)((function(){return n.subscribe(e)}),[n])})),exit:Se((function(t){var e=t.custom,n=t.visualElement,i=Object(o.c)(m(),2),a=i[0],s=i[1],l=Object(r.useContext)(p);Object(r.useEffect)((function(){var t,o,r=null===(t=n.animationState)||void 0===t?void 0:t.setActive(Qt.Exit,!a,{custom:null!==(o=null==l?void 0:l.custom)&&void 0!==o?o:e});!a&&(null==r||r.then(s))}),[a])}))},nr=function(t){return t.hasOwnProperty("x")&&t.hasOwnProperty("y")},or=function(t){return nr(t)&&t.hasOwnProperty("z")},rr=function(t,e){return Math.abs(t-e)};function ir(t,e){if(en(t)&&en(e))return rr(t,e);if(nr(t)&&nr(e)){var n=rr(t.x,e.x),o=rr(t.y,e.y),r=or(t)&&or(e)?rr(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(o,2)+Math.pow(r,2))}}var ar=function(){function t(t,e,n){var r=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var t=ur(r.lastMoveEventInfo,r.history),e=null!==r.startEvent,n=ir(t.offset,{x:0,y:0})>=3;if(e||n){var i=t.point,a=Yn().timestamp;r.history.push(Object(o.a)(Object(o.a)({},i),{timestamp:a}));var s=r.handlers,l=s.onStart,u=s.onMove;e||(l&&l(r.lastMoveEvent,t),r.startEvent=r.lastMoveEvent),u&&u(r.lastMoveEvent,t)}}},this.handlePointerMove=function(t,e){r.lastMoveEvent=t,r.lastMoveEventInfo=sr(e,r.transformPagePoint),Jt(t)&&0===t.buttons?r.handlePointerUp(t,e):Xn.update(r.updatePoint,!0)},this.handlePointerUp=function(t,e){r.end();var n=r.handlers,o=n.onEnd,i=n.onSessionEnd,a=ur(sr(e,r.transformPagePoint),r.history);r.startEvent&&o&&o(t,a),i&&i(t,a)},!(te(t)&&t.touches.length>1)){this.handlers=e,this.transformPagePoint=i;var a=sr(re(t),this.transformPagePoint),s=a.point,l=Yn().timestamp;this.history=[Object(o.a)(Object(o.a)({},s),{timestamp:l})];var u=e.onSessionStart;u&&u(t,ur(a,this.history)),this.removeListeners=Ae(ue(window,"pointermove",this.handlePointerMove),ue(window,"pointerup",this.handlePointerUp),ue(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),zn.update(this.updatePoint)},t}();function sr(t,e){return e?{point:e(t.point)}:t}function lr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ur(t,e){var n=t.point;return{point:n,delta:lr(n,dr(e)),offset:lr(n,cr(e)),velocity:fr(e,.1)}}function cr(t){return t[0]}function dr(t){return t[t.length-1]}function fr(t,e){if(t.length<2)return{x:0,y:0};for(var n=t.length-1,o=null,r=dr(t);n>=0&&(o=t[n],!(r.timestamp-o.timestamp>Kn(e)));)n--;if(!o)return{x:0,y:0};var i=(r.timestamp-o.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(r.x-o.x)/i,y:(r.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function hr(t){return t}function pr(t){var e=t.top;return{x:{min:t.left,max:t.right},y:{min:e,max:t.bottom}}}function gr(){return{x:{min:0,max:1},y:{min:0,max:1}}}var mr={translate:0,scale:1,origin:0,originPoint:0};function vr(){return{x:Object(o.a)({},mr),y:Object(o.a)({},mr)}}function yr(t){return[t("x"),t("y")]}function br(t,e,n){var o=e.min,r=e.max;return void 0!==o&&t<o?t=n?De(o,t,n.min):Math.max(t,o):void 0!==r&&t>r&&(t=n?De(r,t,n.max):Math.min(t,r)),t}function Ar(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Sr(t,e){var n,r=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&(r=(n=Object(o.c)([i,r],2))[0],i=n[1]),{min:t.min+r,max:t.min+i}}function Cr(t,e,n){return{min:_r(t,e),max:_r(t,n)}}function _r(t,e){var n;return"number"==typeof t?t:null!==(n=t[e])&&void 0!==n?n:0}function wr(t,e){return pr(function(t,e){var n=t.top,o=t.left,r=t.bottom,i=t.right;void 0===e&&(e=hr);var a=e({x:o,y:n}),s=e({x:i,y:r});return{top:a.y,left:a.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}function xr(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=.01),ir(t,e)<n}function Or(t){return t.max-t.min}function Er(t,e){var n=.5,o=Or(t),r=Or(e);return r>o?n=Me(e.min,e.max-o,t.min):o>r&&(n=Me(t.min,t.max-r,e.min)),we(0,1,n)}function Lr(t,e,n,o){void 0===o&&(o=.5),t.origin=o,t.originPoint=De(e.min,e.max,t.origin),t.scale=Or(n)/Or(e),xr(t.scale,1,1e-4)&&(t.scale=1),t.translate=De(n.min,n.max,t.origin)-t.originPoint,xr(t.translate)&&(t.translate=0)}function Pr(t,e,n,o){Lr(t.x,e.x,n.x,Br(o.originX)),Lr(t.y,e.y,n.y,Br(o.originY))}function Br(t){return"number"==typeof t?t:.5}function Tr(t,e,n){t.min=n.min+e.min,t.max=t.min+Or(e)}var kr=function(t,e){return t.depth-e.depth};function Mr(t){return t.projection.isEnabled||t.shouldResetTransform()}function Dr(t,e){void 0===e&&(e=[]);var n=t.parent;return n&&Dr(n,e),Mr(t)&&e.push(t),e}function jr(t){if(!t.shouldResetTransform()){var e,n=t.getLayoutState();t.notifyBeforeLayoutMeasure(n.layout),n.isHydrated=!0,n.layout=t.measureViewportBox(),n.layoutCorrected=(e=n.layout,{x:Object(o.a)({},e.x),y:Object(o.a)({},e.y)}),t.notifyLayoutMeasure(n.layout,t.prevViewportBox||n.layout),Xn.update((function(){return t.rebaseProjectionTarget()}))}}function Wr(t){t.shouldResetTransform()||(t.prevViewportBox=t.measureViewportBox(!1),t.rebaseProjectionTarget(!1,t.prevViewportBox))}function Ir(t,e){return{min:e.min-t.min,max:e.max-t.min}}function Rr(t,e){return{x:Ir(t.x,e.x),y:Ir(t.y,e.y)}}function Fr(t,e){var n=t.getLayoutId(),o=e.getLayoutId();return n!==o||void 0===o&&t!==e}function Vr(t){var e=t.getProps(),n=e.drag,o=e._dragX;return n&&!o}function zr(t,e){t.min=e.min,t.max=e.max}function Nr(t,e,n){return n+e*(t-n)}function Ur(t,e,n,o,r){return void 0!==r&&(t=Nr(t,r,o)),Nr(t,n,o)+e}function Hr(t,e,n,o,r){void 0===e&&(e=0),void 0===n&&(n=1),t.min=Ur(t.min,e,n,o,r),t.max=Ur(t.max,e,n,o,r)}function Gr(t,e){var n=e.x,o=e.y;Hr(t.x,n.translate,n.scale,n.originPoint),Hr(t.y,o.translate,o.scale,o.originPoint)}function Yr(t,e,n,r){var i=Object(o.c)(r,3),a=i[0],s=i[1],l=i[2];t.min=e.min,t.max=e.max;var u=void 0!==n[l]?n[l]:.5,c=De(e.min,e.max,u);Hr(t,n[a],n[s],c,n.scale)}var Xr=["x","scaleX","originX"],Qr=["y","scaleY","originY"];function $r(t,e,n){Yr(t.x,e.x,n,Xr),Yr(t.y,e.y,n,Qr)}function Zr(t,e,n,o,r){return t=Nr(t-=e,1/n,o),void 0!==r&&(t=Nr(t,1/r,o)),t}function qr(t,e,n){var r=Object(o.c)(n,3),i=r[0],a=r[1],s=r[2];!function(t,e,n,o,r){void 0===e&&(e=0),void 0===n&&(n=1),void 0===o&&(o=.5);var i=De(t.min,t.max,o)-e;t.min=Zr(t.min,e,n,i,r),t.max=Zr(t.max,e,n,i,r)}(t,e[i],e[a],e[s],e.scale)}function Kr(t,e){qr(t.x,e,Xr),qr(t.y,e,Qr)}var Jr=new Set;function ti(t,e,n){t[n]||(t[n]=[]),t[n].push(e)}function ei(t){return Jr.add(t),function(){return Jr.delete(t)}}function ni(){if(Jr.size){var t=0,e=[[]],n=[],o=function(n){return ti(e,n,t)},r=function(e){ti(n,e,t),t++};Jr.forEach((function(e){e(o,r),t=0})),Jr.clear();for(var i=n.length,a=0;a<=i;a++)e[a]&&e[a].forEach(ri),n[a]&&n[a].forEach(ri)}}var oi,ri=function(t){return t()},ii=new WeakMap,ai=function(){function t(t){var e=t.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic={x:{min:0,max:1},y:{min:0,max:1}},this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=e,this.visualElement.enableLayoutProjection(),ii.set(e,this)}return t.prototype.start=function(t,e){var n=this,r=void 0===e?{}:e,i=r.snapToCursor,a=void 0!==i&&i,s=r.cursorProgress,l=this.props.transformPagePoint;this.panSession=new ar(t,{onSessionStart:function(t){var e;n.stopMotion();var r=function(t){return re(t,"client")}(t).point;null===(e=n.cancelLayout)||void 0===e||e.call(n),n.cancelLayout=ei((function(t,e){var i=Dr(n.visualElement),l=function(t){var e=[],n=function(t){Mr(t)&&e.push(t),t.children.forEach(n)};return t.children.forEach(n),e.sort(kr)}(n.visualElement),u=Object(o.e)(Object(o.e)([],Object(o.c)(i)),Object(o.c)(l)),c=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),e((function(){u.forEach((function(t){return t.resetTransform()}))})),t((function(){jr(n.visualElement),l.forEach(jr)})),e((function(){u.forEach((function(t){return t.restoreTransform()})),a&&(c=n.snapToCursor(r))})),t((function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var t=n.visualElement.projection;yr((function(e){if(!c){var o=t.target[e],i=o.min,a=o.max;n.cursorProgress[e]=s?s[e]:Me(i,a,r[e])}var l=n.getAxisMotionValue(e);l&&(n.originPoint[e]=l.get())}))})),e((function(){Nn.update(),Nn.preRender(),Nn.render(),Nn.postRender()})),t((function(){return n.resolveDragConstraints()}))}))},onStart:function(t,e){var o,r,i,a=n.props,s=a.drag,l=a.dragPropagation;(!s||l||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=pe(s),n.openGlobalLock))&&(ni(),n.isDragging=!0,n.currentDirection=null,null===(r=(o=n.props).onDragStart)||void 0===r||r.call(o,t,e),null===(i=n.visualElement.animationState)||void 0===i||i.setActive(Qt.Drag,!0))},onMove:function(t,e){var o,r,i,a,s=n.props,l=s.dragPropagation,u=s.dragDirectionLock;if(l||n.openGlobalLock){var c=e.offset;if(u&&null===n.currentDirection)return n.currentDirection=function(t,e){void 0===e&&(e=10);var n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(c),void(null!==n.currentDirection&&(null===(r=(o=n.props).onDirectionLock)||void 0===r||r.call(o,n.currentDirection)));n.updateAxis("x",e.point,c),n.updateAxis("y",e.point,c),null===(a=(i=n.props).onDrag)||void 0===a||a.call(i,t,e),oi=t}},onSessionEnd:function(t,e){return n.stop(t,e)}},{transformPagePoint:l})},t.prototype.resolveDragConstraints=function(){var t=this,e=this.props,n=e.dragConstraints,o=e.dragElastic,r=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!n&&(O(n)?this.resolveRefConstraints(r,n):function(t,e){var n=e.top,o=e.left,r=e.bottom,i=e.right;return{x:Ar(t.x,o,i),y:Ar(t.y,n,r)}}(r,n)),this.elastic=function(t){return!1===t?t=0:!0===t&&(t=.35),{x:Cr(t,"left","right"),y:Cr(t,"top","bottom")}}(o),this.constraints&&!this.hasMutatedConstraints&&yr((function(e){t.getAxisMotionValue(e)&&(t.constraints[e]=function(t,e){var n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(r[e],t.constraints[e]))}))},t.prototype.resolveRefConstraints=function(t,e){var n=this.props,o=n.onMeasureDragConstraints,r=n.transformPagePoint,i=e.current;this.constraintsBox=wr(i,r);var a=function(t,e){return{x:Sr(t.x,e.x),y:Sr(t.y,e.y)}}(t,this.constraintsBox);if(o){var s=o(function(t){var e=t.x,n=t.y;return{top:n.min,bottom:n.max,left:e.min,right:e.max}}(a));this.hasMutatedConstraints=!!s,s&&(a=pr(s))}return a},t.prototype.cancelDrag=function(){var t,e;this.visualElement.unlockProjectionTarget(),null===(t=this.cancelLayout)||void 0===t||t.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(Qt.Drag,!1)},t.prototype.stop=function(t,e){var n,o,r;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var i=this.isDragging;if(this.cancelDrag(),i){var a=e.velocity;this.animateDragEnd(a),null===(r=(o=this.props).onDragEnd)||void 0===r||r.call(o,t,e)}},t.prototype.snapToCursor=function(t){var e=this;return yr((function(n){if(si(n,e.props.drag,e.currentDirection)){var o=e.getAxisMotionValue(n);if(!o)return e.cursorProgress[n]=.5,!0;var r=e.visualElement.getLayoutState().layout,i=r[n].max-r[n].min,a=r[n].min+i/2,s=t[n]-a;e.originPoint[n]=t[n],o.set(s)}})).includes(!0)},t.prototype.updateAxis=function(t,e,n){if(si(t,this.props.drag,this.currentDirection))return this.getAxisMotionValue(t)?this.updateAxisMotionValue(t,n):this.updateVisualElementAxis(t,e)},t.prototype.updateAxisMotionValue=function(t,e){var n=this.getAxisMotionValue(t);if(e&&n){var o=this.originPoint[t]+e[t],r=this.constraints?br(o,this.constraints[t],this.elastic[t]):o;n.set(r)}},t.prototype.updateVisualElementAxis=function(t,e){var n,o=this.visualElement.getLayoutState().layout[t],r=o.max-o.min,i=this.cursorProgress[t],a=function(t,e,n,o,r){var i=t-e*n;return o?br(i,o,r):i}(e[t],r,i,null===(n=this.constraints)||void 0===n?void 0:n[t],this.elastic[t]);this.visualElement.setProjectionTargetAxis(t,a,a+r)},t.prototype.setProps=function(t){var e=t.drag,n=void 0!==e&&e,r=t.dragDirectionLock,i=void 0!==r&&r,a=t.dragPropagation,s=void 0!==a&&a,l=t.dragConstraints,u=void 0!==l&&l,c=t.dragElastic,d=void 0===c?.35:c,f=t.dragMomentum,h=void 0===f||f,p=Object(o.d)(t,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=Object(o.a)({drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:u,dragElastic:d,dragMomentum:h},p)},t.prototype.getAxisMotionValue=function(t){var e=this.props,n=e.layout,o=e.layoutId,r="_drag"+t.toUpperCase();return this.props[r]?this.props[r]:n||void 0!==o?void 0:this.visualElement.getValue(t,0)},t.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},t.prototype.isExternalDrag=function(){var t=this.props,e=t._dragX,n=t._dragY;return e||n},t.prototype.animateDragEnd=function(t){var e=this,n=this.props,r=n.drag,i=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,l=function(t,e){void 0===e&&(e=!0);var n,o=t.getProjectionParent();return!!o&&(e?Kr(n=Rr(o.projection.target,t.projection.target),o.getLatestValues()):n=Rr(o.getLayoutState().layout,t.getLayoutState().layout),yr((function(e){return t.setProjectionTargetAxis(e,n[e].min,n[e].max,!0)})),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),u=this.constraints||{};if(l&&Object.keys(u).length&&this.isLayoutDrag()){var c=this.visualElement.getProjectionParent();if(c){var d=Rr(c.projection.targetFinal,u);yr((function(t){var e=d[t],n=e.min,o=e.max;u[t]={min:isNaN(n)?void 0:n,max:isNaN(o)?void 0:o}}))}}var f=yr((function(n){var c;if(si(n,r,e.currentDirection)){var d=null!==(c=null==u?void 0:u[n])&&void 0!==c?c:{},f=a?200:1e6,h=a?40:1e7,p=Object(o.a)(Object(o.a)({type:"inertia",velocity:i?t[n]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10},s),d);return e.getAxisMotionValue(n)?e.startAxisValueAnimation(n,p):e.visualElement.startLayoutAnimation(n,p,l)}}));return Promise.all(f).then((function(){var t,n;null===(n=(t=e.props).onDragTransitionEnd)||void 0===n||n.call(t)}))},t.prototype.stopMotion=function(){var t=this;yr((function(e){var n=t.getAxisMotionValue(e);n?n.stop():t.visualElement.stopLayoutAnimation()}))},t.prototype.startAxisValueAnimation=function(t,e){var n=this.getAxisMotionValue(t);if(n){var o=n.get();return n.set(o),n.set(o),Lo(t,n,0,e)}},t.prototype.scalePoint=function(){var t=this,e=this.props,n=e.drag;if(O(e.dragConstraints)&&this.constraintsBox){this.stopMotion();var o={x:0,y:0};yr((function(e){o[e]=Er(t.visualElement.projection.target[e],t.constraintsBox[e])})),this.updateConstraints((function(){yr((function(e){if(si(e,n,null)){var r=function(t,e,n){var o=t.max-t.min,r=De(e.min,e.max-o,n);return{min:r,max:r+o}}(t.visualElement.projection.target[e],t.constraintsBox[e],o[e]),i=r.min,a=r.max;t.visualElement.setProjectionTargetAxis(e,i,a)}}))})),setTimeout(ni,1)}},t.prototype.updateConstraints=function(t){var e=this;this.cancelLayout=ei((function(n,o){var r=Dr(e.visualElement);o((function(){return r.forEach((function(t){return t.resetTransform()}))})),n((function(){return jr(e.visualElement)})),o((function(){return r.forEach((function(t){return t.restoreTransform()}))})),n((function(){e.resolveDragConstraints()})),t&&o(t)}))},t.prototype.mount=function(t){var e=this,n=ue(t.getInstance(),"pointerdown",(function(t){var n=e.props,o=n.drag,r=n.dragListener;o&&(void 0===r||r)&&e.start(t)})),o=qt(window,"resize",(function(){e.scalePoint()})),r=t.onLayoutUpdate((function(){e.isDragging&&e.resolveDragConstraints()})),i=t.prevDragCursor;return i&&this.start(oi,{cursorProgress:i}),function(){null==n||n(),null==o||o(),null==r||r(),e.cancelDrag()}},t}();function si(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}var li,ui,ci={pan:Se((function(t){var e=t.onPan,n=t.onPanStart,o=t.onPanEnd,i=t.onPanSessionStart,a=t.visualElement,s=e||n||o||i,l=Object(r.useRef)(null),u=Object(r.useContext)(d).transformPagePoint,c={onSessionStart:i,onStart:n,onMove:e,onEnd:function(t,e){l.current=null,o&&o(t,e)}};Object(r.useEffect)((function(){null!==l.current&&l.current.updateHandlers(c)})),ce(a,"pointerdown",s&&function(t){l.current=new ar(t,c,{transformPagePoint:u})}),ye((function(){return l.current&&l.current.end()}))})),drag:Se((function(t){var e=t.dragControls,n=t.visualElement,i=Object(r.useContext)(d).transformPagePoint,a=g((function(){return new ai({visualElement:n})}));a.setProps(Object(o.a)(Object(o.a)({},t),{transformPagePoint:i})),Object(r.useEffect)((function(){return e&&e.subscribe(a)}),[a]),Object(r.useEffect)((function(){return a.mount(n)}),[])}))};function di(t){return"string"==typeof t&&t.startsWith("var(--")}!function(t){t[t.Entering=0]="Entering",t[t.Present=1]="Present",t[t.Exiting=2]="Exiting"}(li||(li={})),function(t){t[t.Hide=0]="Hide",t[t.Show=1]="Show"}(ui||(ui={}));var fi=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function hi(t,e,n){void 0===n&&(n=1);var r=Object(o.c)(function(t){var e=fi.exec(t);if(!e)return[,];var n=Object(o.c)(e,3);return[n[1],n[2]]}(t),2),i=r[0],a=r[1];if(i){var s=window.getComputedStyle(e).getPropertyValue(i);return s?s.trim():di(a)?hi(a,e,n+1):a}}function pi(t,e){return t/(e.max-e.min)*100}var gi="_$css";var mi={process:function(t,e,n){var o=n.target;if("string"==typeof t){if(!lt.test(t))return t;t=parseFloat(t)}return pi(t,o.x)+"% "+pi(t,o.y)+"%"}},vi={borderRadius:Object(o.a)(Object(o.a)({},mi),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:mi,borderTopRightRadius:mi,borderBottomLeftRadius:mi,borderBottomRightRadius:mi,boxShadow:{process:function(t,e){var n=e.delta,o=e.treeScale,r=t,i=t.includes("var("),a=[];i&&(t=t.replace(fi,(function(t){return a.push(t),gi})));var s=tn.parse(t);if(s.length>5)return r;var l=tn.createTransformer(t),u="number"!=typeof s[0]?1:0,c=n.x.scale*o.x,d=n.y.scale*o.y;s[0+u]/=c,s[1+u]/=d;var f=De(c,d,.5);"number"==typeof s[2+u]&&(s[2+u]/=f),"number"==typeof s[3+u]&&(s[3+u]/=f);var h=l(s);if(i){var p=0;h=h.replace(gi,(function(){var t=a[p];return p++,t}))}return h}}},yi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.frameTarget={x:{min:0,max:1},y:{min:0,max:1}},e.currentAnimationTarget={x:{min:0,max:1},y:{min:0,max:1}},e.isAnimating={x:!1,y:!1},e.stopAxisAnimation={x:void 0,y:void 0},e.isAnimatingTree=!1,e.animate=function(t,n,r){void 0===r&&(r={});var i=r.originBox,a=r.targetBox,s=r.visibilityAction,l=r.shouldStackAnimate,u=r.onComplete,c=r.prevParent,d=Object(o.d)(r,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),f=e.props,h=f.visualElement,p=f.layout;if(!1===l)return e.isAnimatingTree=!1,e.safeToRemove();if(!e.isAnimatingTree||!0===l){l&&(e.isAnimatingTree=!0),n=i||n,t=a||t;var g=!1,m=h.getProjectionParent();if(m){var v=m.prevViewportBox,y=m.getLayoutState().layout;c&&(a&&(y=c.getLayoutState().layout),i&&!Fr(c,m)&&c.prevViewportBox&&(v=c.prevViewportBox)),v&&wi(c,i,a)&&(g=!0,n=Rr(v,n),t=Rr(y,t))}var b=bi(n,t),A=yr((function(r){var i,a;if("position"===p){var l=t[r].max-t[r].min;n[r].max=n[r].min+l}if(!h.projection.isTargetLocked)return void 0===s?b?e.animateAxis(r,t[r],n[r],Object(o.a)(Object(o.a)({},d),{isRelative:g})):(null===(a=(i=e.stopAxisAnimation)[r])||void 0===a||a.call(i),h.setProjectionTargetAxis(r,t[r].min,t[r].max,g)):void h.setVisibility(s===ui.Show)}));return h.syncRender(),Promise.all(A).then((function(){e.isAnimatingTree=!1,u&&u(),h.notifyLayoutAnimationComplete()}))}},e}return Object(o.b)(e,t),e.prototype.componentDidMount=function(){var t=this,e=this.props.visualElement;e.animateMotionValue=Lo,e.enableLayoutProjection(),this.unsubLayoutReady=e.onLayoutUpdate(this.animate),e.layoutSafeToRemove=function(){return t.safeToRemove()},V(vi)},e.prototype.componentWillUnmount=function(){var t=this;this.unsubLayoutReady(),yr((function(e){var n,o;return null===(o=(n=t.stopAxisAnimation)[e])||void 0===o?void 0:o.call(n)}))},e.prototype.animateAxis=function(t,e,n,o){var r,i,a=this,s=void 0===o?{}:o,l=s.transition,u=s.isRelative;if(!this.isAnimating[t]||!Ci(e,this.currentAnimationTarget[t])){null===(i=(r=this.stopAxisAnimation)[t])||void 0===i||i.call(r),this.isAnimating[t]=!0;var c=this.props.visualElement,d=this.frameTarget[t],f=c.getProjectionAnimationProgress()[t];f.clearListeners(),f.set(0),f.set(0);var h=function(){var o=f.get()/1e3;!function(t,e,n,o){t.min=De(e.min,n.min,o),t.max=De(e.max,n.max,o)}(d,n,e,o),c.setProjectionTargetAxis(t,d.min,d.max,u)};h();var p=f.onChange(h);this.stopAxisAnimation[t]=function(){a.isAnimating[t]=!1,f.stop(),p()},this.currentAnimationTarget[t]=e;var g=l||c.getDefaultTransition()||_i;return Lo("x"===t?"layoutX":"layoutY",f,1e3,g&&Eo(g,"layout")).then(this.stopAxisAnimation[t])}},e.prototype.safeToRemove=function(){var t,e;null===(e=(t=this.props).safeToRemove)||void 0===e||e.call(t)},e.prototype.render=function(){return null},e}(r.Component);function bi(t,e){return!(Si(t)||Si(e)||Ci(t.x,e.x)&&Ci(t.y,e.y))}var Ai={min:0,max:0};function Si(t){return Ci(t.x,Ai)&&Ci(t.y,Ai)}function Ci(t,e){return t.min===e.min&&t.max===e.max}var _i={duration:.45,ease:[.4,0,.1,1]};function wi(t,e,n){return t||!t&&!(e||n)}var xi={layoutReady:function(t){return t.notifyLayoutReady()}};function Oi(){var t=new Set;return{add:function(e){return t.add(e)},flush:function(e){var n=void 0===e?xi:e,r=n.layoutReady,i=n.parent;ei((function(e,n){var a=Array.from(t).sort(kr),s=i?Dr(i):[];n((function(){Object(o.e)(Object(o.e)([],Object(o.c)(s)),Object(o.c)(a)).forEach((function(t){return t.resetTransform()}))})),e((function(){a.forEach(jr)})),n((function(){s.forEach((function(t){return t.restoreTransform()})),a.forEach(r)})),e((function(){a.forEach((function(t){t.isPresent&&(t.presence=li.Present)}))})),n((function(){Nn.preRender(),Nn.render()})),e((function(){Xn.postRender((function(){return a.forEach(Ei)})),t.clear()}))})),ni()}}}function Ei(t){t.prevViewportBox=t.projection.target}var Li=Object(r.createContext)(Oi()),Pi=Object(r.createContext)(Oi());function Bi(t){return!!t.forceUpdate}var Ti=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.b)(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.syncLayout,n=t.framerSyncLayout,o=t.visualElement;Bi(e)&&e.register(o),Bi(n)&&n.register(o),o.onUnmount((function(){Bi(e)&&e.remove(o),Bi(n)&&n.remove(o)}))},e.prototype.getSnapshotBeforeUpdate=function(){var t=this.props,e=t.syncLayout,n=t.visualElement;return Bi(e)?e.syncUpdate():(Wr(n),e.add(n)),null},e.prototype.componentDidUpdate=function(){var t=this.props.syncLayout;Bi(t)||t.flush()},e.prototype.render=function(){return null},e}(r.default.Component);var ki={measureLayout:function(t){var e=Object(r.useContext)(Li),n=Object(r.useContext)(Pi);return r.default.createElement(Ti,Object(o.a)({},t,{syncLayout:e,framerSyncLayout:n}))},layoutAnimation:function(t){var e=Object(o.c)(m(),2)[1];return r.createElement(yi,Object(o.a)({},t,{safeToRemove:e}))}};function Mi(){return{isHydrated:!1,layout:{x:{min:0,max:1},y:{min:0,max:1}},layoutCorrected:{x:{min:0,max:1},y:{min:0,max:1}},treeScale:{x:1,y:1},delta:vr(),deltaFinal:vr(),deltaTransform:""}}var Di=Mi();function ji(t,e,n){var o=t.x,r=t.y,i="translate3d("+o.translate/e.x+"px, "+r.translate/e.y+"px, 0) ";if(n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(i+="rotate("+a+") "),s&&(i+="rotateX("+s+") "),l&&(i+="rotateY("+l+") ")}return i+="scale("+o.scale+", "+r.scale+")",n||i!==Ii?i:""}function Wi(t){var e=t.deltaFinal;return 100*e.x.origin+"% "+100*e.y.origin+"% 0"}var Ii=ji(Di.delta,Di.treeScale,{x:1,y:1}),Ri=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function Fi(t,e,n,o){var r,i,a=t.delta,s=t.layout,l=t.layoutCorrected,u=t.treeScale,c=e.target;i=s,zr((r=l).x,i.x),zr(r.y,i.y),function(t,e,n){var o=n.length;if(o){var r,i;e.x=e.y=1;for(var a=0;a<o;a++)i=(r=n[a]).getLayoutState().delta,e.x*=i.x.scale,e.y*=i.y.scale,Gr(t,i),Vr(r)&&$r(t,t,r.getLatestValues())}}(l,u,n),Pr(a,l,c,o)}var Vi=function(){function t(){this.children=[],this.isDirty=!1}return t.prototype.add=function(t){Po(this.children,t),this.isDirty=!0},t.prototype.remove=function(t){Bo(this.children,t),this.isDirty=!0},t.prototype.forEach=function(t){this.isDirty&&this.children.sort(kr),this.isDirty=!1,this.children.forEach(t)},t}();var zi=function(t){var e=t.treeType,n=void 0===e?"":e,r=t.build,i=t.getBaseTarget,a=t.makeTargetAnimatable,s=t.measureViewportBox,l=t.render,u=t.readValueFromInstance,c=t.resetTransform,d=t.restoreTransform,f=t.removeValueFromRenderState,h=t.sortNodePosition,p=t.scrapeMotionValuesFromProps;return function(t,e){var g=t.parent,m=t.props,v=t.presenceId,y=t.blockInitialAnimation,b=t.visualState;void 0===e&&(e={});var A,S,C,_,w,x,O=b.latestValues,E=b.renderState,P=function(){var t=Ri.map((function(){return new To})),e={},n={clearAllListeners:function(){return t.forEach((function(t){return t.clear()}))},updatePropListeners:function(t){return Ri.forEach((function(o){var r;null===(r=e[o])||void 0===r||r.call(e);var i="on"+o,a=t[i];a&&(e[o]=n[i](a))}))}};return t.forEach((function(t,e){n["on"+Ri[e]]=function(e){return t.add(e)},n["notify"+Ri[e]]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.notify.apply(t,Object(o.e)([],Object(o.c)(e)))}})),n}(),B={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:{x:{min:0,max:1},y:{min:0,max:1}},targetFinal:{x:{min:0,max:1},y:{min:0,max:1}}},M=B,D=O,j=Mi(),W=!1,I=new Map,R=new Map,F={},V=Object(o.a)({},O);function z(){A&&(q.isProjectionReady()&&($r(M.targetFinal,M.target,D),Pr(j.deltaFinal,j.layoutCorrected,M.targetFinal,O)),N(),l(A,E))}function N(){var t=O;if(_&&_.isActive()){var n=_.getCrossfadeState(q);n&&(t=n)}r(q,E,t,M,j,e,m)}function U(){P.notifyUpdate(O)}function H(){q.layoutTree.forEach(Ui)}var G=p(m);for(var Y in G){var X=G[Y];void 0!==O[Y]&&$(X)&&X.set(O[Y],!1)}var Q=T(m),Z=k(m),q=Object(o.a)(Object(o.a)({treeType:n,current:null,depth:g?g.depth+1:0,parent:g,children:new Set,path:g?Object(o.e)(Object(o.e)([],Object(o.c)(g.path)),[g]):[],layoutTree:g?g.layoutTree:new Vi,presenceId:v,projection:B,variantChildren:Z?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==g?void 0:g.isMounted()),blockInitialAnimation:y,isMounted:function(){return Boolean(A)},mount:function(t){A=q.current=t,q.pointTo(q),Z&&g&&!Q&&(x=null==g?void 0:g.addVariantChild(q)),null==g||g.children.add(q)},unmount:function(){zn.update(U),zn.render(z),zn.preRender(q.updateLayoutProjection),R.forEach((function(t){return t()})),q.stopLayoutAnimation(),q.layoutTree.remove(q),null==x||x(),null==g||g.children.delete(q),null==C||C(),P.clearAllListeners()},addVariantChild:function(t){var e,n=q.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),function(){return n.variantChildren.delete(t)}},sortNodePosition:function(t){return h&&n===t.treeType?h(q.getInstance(),t.getInstance()):0},getClosestVariantNode:function(){return Z?q:null==g?void 0:g.getClosestVariantNode()},scheduleUpdateLayoutProjection:g?g.scheduleUpdateLayoutProjection:function(){return Xn.preRender(q.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return m.layoutId},getInstance:function(){return A},getStaticValue:function(t){return O[t]},setStaticValue:function(t,e){return O[t]=e},getLatestValues:function(){return O},setVisibility:function(t){q.isVisible!==t&&(q.isVisible=t,q.scheduleRender())},makeTargetAnimatable:function(t,e){return void 0===e&&(e=!0),a(q,t,m,e)},addValue:function(t,e){q.hasValue(t)&&q.removeValue(t),I.set(t,e),O[t]=e.get(),function(t,e){var n=e.onChange((function(e){O[t]=e,m.onUpdate&&Xn.update(U,!1,!0)})),o=e.onRenderRequest(q.scheduleRender);R.set(t,(function(){n(),o()}))}(t,e)},removeValue:function(t){var e;I.delete(t),null===(e=R.get(t))||void 0===e||e(),R.delete(t),delete O[t],f(t,E)},hasValue:function(t){return I.has(t)},getValue:function(t,e){var n=I.get(t);return void 0===n&&void 0!==e&&(n=Mo(e),q.addValue(t,n)),n},forEachValue:function(t){return I.forEach(t)},readValue:function(t){var n;return null!==(n=O[t])&&void 0!==n?n:u(A,t,e)},setBaseTarget:function(t,e){V[t]=e},getBaseTarget:function(t){if(i){var e=i(m,t);if(void 0!==e&&!$(e))return e}return V[t]}},P),{build:function(){return N(),E},scheduleRender:function(){Xn.render(z,!1,!0)},syncRender:z,setProps:function(t){m=t,P.updatePropListeners(t),F=function(t,e,n){var o;for(var r in e){var i=e[r],a=n[r];if($(i))t.addValue(r,i);else if($(a))t.addValue(r,Mo(i));else if(a!==i)if(t.hasValue(r)){var s=t.getValue(r);!s.hasAnimated&&s.set(i)}else t.addValue(r,Mo(null!==(o=t.getStaticValue(r))&&void 0!==o?o:i))}for(var r in n)void 0===e[r]&&t.removeValue(r);return e}(q,p(m),F)},getProps:function(){return m},getVariant:function(t){var e;return null===(e=m.variants)||void 0===e?void 0:e[t]},getDefaultTransition:function(){return m.transition},getVariantContext:function(t){if(void 0===t&&(t=!1),t)return null==g?void 0:g.getVariantContext();if(!Q){var e=(null==g?void 0:g.getVariantContext())||{};return void 0!==m.initial&&(e.initial=m.initial),e}for(var n={},o=0;o<Yi;o++){var r=Gi[o],i=m[r];(L(i)||!1===i)&&(n[r]=i)}return n},enableLayoutProjection:function(){B.isEnabled=!0,q.layoutTree.add(q)},lockProjectionTarget:function(){B.isTargetLocked=!0},unlockProjectionTarget:function(){q.stopLayoutAnimation(),B.isTargetLocked=!1},getLayoutState:function(){return j},setCrossfader:function(t){_=t},isProjectionReady:function(){return B.isEnabled&&B.isHydrated&&j.isHydrated},startLayoutAnimation:function(t,e,n){void 0===n&&(n=!1);var o=q.getProjectionAnimationProgress()[t],r=n?B.relativeTarget[t]:B.target[t],i=r.min,a=r.max-i;return o.clearListeners(),o.set(i),o.set(i),o.onChange((function(e){q.setProjectionTargetAxis(t,e,e+a,n)})),q.animateMotionValue(t,o,0,e)},stopLayoutAnimation:function(){yr((function(t){return q.getProjectionAnimationProgress()[t].stop()}))},measureViewportBox:function(t){void 0===t&&(t=!0);var n=s(A,e);return t||Kr(n,O),n},getProjectionAnimationProgress:function(){return w||(w={x:Mo(0),y:Mo(0)}),w},setProjectionTargetAxis:function(t,e,n,o){var r;void 0===o&&(o=!1),o?(B.relativeTarget||(B.relativeTarget={x:{min:0,max:1},y:{min:0,max:1}}),r=B.relativeTarget[t]):(B.relativeTarget=void 0,r=B.target[t]),B.isHydrated=!0,r.min=e,r.max=n,W=!0,P.notifySetAxisTarget()},rebaseProjectionTarget:function(t,e){void 0===e&&(e=j.layout);var n=q.getProjectionAnimationProgress(),o=n.x,r=n.y,i=!(B.relativeTarget||B.isTargetLocked||o.isAnimating()||r.isAnimating());(t||i)&&yr((function(t){var n=e[t],o=n.min,r=n.max;q.setProjectionTargetAxis(t,o,r)}))},notifyLayoutReady:function(t){!function(t){var e=t.getProjectionParent();if(e){var n=Rr(e.getLayoutState().layout,t.getLayoutState().layout);yr((function(e){t.setProjectionTargetAxis(e,n[e].min,n[e].max,!0)}))}else t.rebaseProjectionTarget()}(q),q.notifyLayoutUpdate(j.layout,q.prevViewportBox||j.layout,t)},resetTransform:function(){return c(q,A,m)},restoreTransform:function(){return d(A,E)},updateLayoutProjection:function(){if(q.isProjectionReady()){var t=j.delta,e=j.treeScale,n=e.x,o=e.y,r=j.deltaTransform;Fi(j,M,q.path,O),W&&q.notifyViewportBoxUpdate(M.target,t),W=!1;var i=ji(t,e);i===r&&n===e.x&&o===e.y||q.scheduleRender(),j.deltaTransform=i}},updateTreeLayoutProjection:function(){q.layoutTree.forEach(Ni),Xn.preRender(H,!1,!0)},getProjectionParent:function(){if(void 0===S){for(var t=!1,e=q.path.length-1;e>=0;e--){var n=q.path[e];if(n.projection.isEnabled){t=n;break}}S=t}return S},resolveRelativeTargetBox:function(){var t=q.getProjectionParent();if(B.relativeTarget&&t&&(function(t,e){Tr(t.target.x,t.relativeTarget.x,e.target.x),Tr(t.target.y,t.relativeTarget.y,e.target.y)}(B,t.projection),Vr(t))){var e=B.target;$r(e,e,t.getLatestValues())}},shouldResetTransform:function(){return Boolean(m._layoutResetTransform)},pointTo:function(t){M=t.projection,D=t.getLatestValues(),null==C||C(),C=Ae(t.onSetAxisTarget(q.scheduleUpdateLayoutProjection),t.onLayoutAnimationComplete((function(){var t;q.isPresent?q.presence=li.Present:null===(t=q.layoutSafeToRemove)||void 0===t||t.call(q)})))},isPresent:!0,presence:li.Entering});return q}};function Ni(t){t.resolveRelativeTargetBox()}function Ui(t){t.updateLayoutProjection()}var Hi,Gi=Object(o.e)(["initial"],Object(o.c)(Zo)),Yi=Gi.length,Xi=new Set(["width","height","top","left","right","bottom","x","y"]),Qi=function(t){return Xi.has(t)},$i=function(t,e){t.set(e,!1),t.set(e)},Zi=function(t){return t===ft||t===lt};!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Hi||(Hi={}));var qi=function(t,e){return parseFloat(t.split(", ")[e])},Ki=function(t,e){return function(n,o){var r=o.transform;if("none"===r||!r)return 0;var i=r.match(/^matrix3d\((.+)\)$/);if(i)return qi(i[1],e);var a=r.match(/^matrix\((.+)\)$/);return a?qi(a[1],t):0}},Ji=new Set(["x","y","z"]),ta=N.filter((function(t){return!Ji.has(t)}));var ea={width:function(t){var e=t.x;return e.max-e.min},height:function(t){var e=t.y;return e.max-e.min},top:function(t,e){var n=e.top;return parseFloat(n)},left:function(t,e){var n=e.left;return parseFloat(n)},bottom:function(t,e){var n=t.y,o=e.top;return parseFloat(o)+(n.max-n.min)},right:function(t,e){var n=t.x,o=e.left;return parseFloat(o)+(n.max-n.min)},x:Ki(4,13),y:Ki(5,14)},na=function(t,e,n,r){void 0===n&&(n={}),void 0===r&&(r={}),e=Object(o.a)({},e),r=Object(o.a)({},r);var i=Object.keys(e).filter(Qi),a=[],s=!1,l=[];if(i.forEach((function(o){var i=t.getValue(o);if(t.hasValue(o)){var u,c=n[o],d=e[o],f=Wo(c);if(Nt(d))for(var h=d.length,p=null===d[0]?1:0;p<h;p++)u?Wo(d[p]):(u=Wo(d[p]))===f||Zi(f)&&Zi(u);else u=Wo(d);if(f!==u)if(Zi(f)&&Zi(u)){var g=i.get();"string"==typeof g&&i.set(parseFloat(g)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&u===lt&&(e[o]=d.map(parseFloat))}else(null==f?void 0:f.transform)&&(null==u?void 0:u.transform)&&(0===c||0===d)?0===c?i.set(u.transform(c)):e[o]=f.transform(d):(s||(a=function(t){var e=[];return ta.forEach((function(n){var o=t.getValue(n);void 0!==o&&(e.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))})),e.length&&t.syncRender(),e}(t),s=!0),l.push(o),r[o]=void 0!==r[o]?r[o]:e[o],$i(i,d))}})),l.length){var u=function(t,e,n){var o=e.measureViewportBox(),r=e.getInstance(),i=getComputedStyle(r),a=i.display,s={top:i.top,left:i.left,bottom:i.bottom,right:i.right,transform:i.transform};"none"===a&&e.setStaticValue("display",t.display||"block"),e.syncRender();var l=e.measureViewportBox();return n.forEach((function(n){var r=e.getValue(n);$i(r,ea[n](o,s)),t[n]=ea[n](l,i)})),t}(e,t,l);return a.length&&a.forEach((function(e){var n=Object(o.c)(e,2),r=n[0],i=n[1];t.getValue(r).set(i)})),t.syncRender(),{target:u,transitionEnd:r}}return{target:e,transitionEnd:r}};function oa(t,e,n,o){return function(t){return Object.keys(t).some(Qi)}(e)?na(t,e,n,o):{target:e,transitionEnd:o}}var ra=function(t,e,n,r){var i=function(t,e,n){var r,i=Object(o.d)(e,[]),a=t.getInstance();if(!(a instanceof HTMLElement))return{target:i,transitionEnd:n};for(var s in n&&(n=Object(o.a)({},n)),t.forEachValue((function(t){var e=t.get();if(di(e)){var n=hi(e,a);n&&t.set(n)}})),i){var l=i[s];if(di(l)){var u=hi(l,a);u&&(i[s]=u,n&&(null!==(r=n[s])&&void 0!==r||(n[s]=l)))}}return{target:i,transitionEnd:n}}(t,e,r);return oa(t,e=i.target,n,r=i.transitionEnd)};var ia={treeType:"dom",readValueFromInstance:function(t,e){if(G(e)){var n=Ao(e);return n&&n.default||0}var o,r=(o=t,window.getComputedStyle(o));return(q(e)?r.getPropertyValue(e):r[e])||0},sortNodePosition:function(t,e){return 2&t.compareDocumentPosition(e)?1:-1},getBaseTarget:function(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]},measureViewportBox:function(t,e){return wr(t,e.transformPagePoint)},resetTransform:function(t,e,n){var o=n.transformTemplate;e.style.transform=o?o({},""):"none",t.scheduleRender()},restoreTransform:function(t,e){t.style.transform=e.style.transform},removeValueFromRenderState:function(t,e){var n=e.vars,o=e.style;delete n[t],delete o[t]},makeTargetAnimatable:function(t,e,n,r){var i=n.transformValues;void 0===r&&(r=!0);var a=e.transition,s=e.transitionEnd,l=Object(o.d)(e,["transition","transitionEnd"]),u=Ho(l,a||{},t);if(i&&(s&&(s=i(s)),l&&(l=i(l)),u&&(u=i(u))),r){No(t,l,u);var c=ra(t,l,u,s);s=c.transitionEnd,l=c.target}return Object(o.a)({transition:a,transitionEnd:s},l)},scrapeMotionValuesFromProps:Ft,build:function(t,e,n,o,r,i,a){void 0!==t.isVisible&&(e.style.visibility=t.isVisible?"visible":"hidden");var s=o.isEnabled&&r.isHydrated;vt(e,n,o,r,i,a.transformTemplate,s?ji:void 0,s?Wi:void 0)},render:Wt},aa=zi(ia),sa=zi(Object(o.a)(Object(o.a)({},ia),{getBaseTarget:function(t,e){return t[e]},readValueFromInstance:function(t,e){var n;return G(e)?(null===(n=Ao(e))||void 0===n?void 0:n.default)||0:(e=It.has(e)?e:jt(e),t.getAttribute(e))},scrapeMotionValuesFromProps:Vt,build:function(t,e,n,o,r,i,a){var s=o.isEnabled&&r.isHydrated;Bt(e,n,o,r,i,a.transformTemplate,s?ji:void 0,s?Wi:void 0)},render:Rt})),la=function(t,e){return R(t)?sa(e,{enableHardwareAcceleration:!1}):aa(e,{enableHardwareAcceleration:!0})},ua=Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},er),Ce),ci),ki),ca=W((function(t,e){return Zt(t,e,ua,la)}));function da(t){return j(Zt(t,{forwardMotionProps:!1},ua,la))}var fa=W(Zt);var ha=0;function pa(){var t=ha;return ha++,t}var ga=function(t){var e=t.children,n=t.initial,o=t.isPresent,i=t.onExitComplete,a=t.custom,s=t.presenceAffectsLayout,l=g(ma),u=g(pa),c=Object(r.useMemo)((function(){return{id:u,initial:n,isPresent:o,custom:a,onExitComplete:function(t){l.set(t,!0);var e=!0;l.forEach((function(t){t||(e=!1)})),e&&(null==i||i())},register:function(t){return l.set(t,!1),function(){return l.delete(t)}}}}),s?void 0:[o]);return Object(r.useMemo)((function(){l.forEach((function(t,e){return l.set(e,!1)}))}),[o]),r.useEffect((function(){!o&&!l.size&&(null==i||i())}),[o]),r.createElement(p.Provider,{value:c},e)};function ma(){return new Map}function va(t){return t.key||""}var ya=function(t){var e=t.children,n=t.custom,i=t.initial,a=void 0===i||i,s=t.onExitComplete,l=t.exitBeforeEnter,u=t.presenceAffectsLayout,c=void 0===u||u,d=function(){var t=Object(r.useRef)(!1),e=Object(o.c)(Object(r.useState)(0),2),n=e[0],i=e[1];return ye((function(){return t.current=!0})),Object(r.useCallback)((function(){!t.current&&i(n+1)}),[n])}(),f=Object(r.useContext)(Li);Bi(f)&&(d=f.forceUpdate);var h=Object(r.useRef)(!0),p=function(t){var e=[];return r.Children.forEach(t,(function(t){Object(r.isValidElement)(t)&&e.push(t)})),e}(e),g=Object(r.useRef)(p),m=Object(r.useRef)(new Map).current,v=Object(r.useRef)(new Set).current;if(function(t,e){t.forEach((function(t){var n=va(t);e.set(n,t)}))}(p,m),h.current)return h.current=!1,r.createElement(r.Fragment,null,p.map((function(t){return r.createElement(ga,{key:va(t),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:c},t)})));for(var y=Object(o.e)([],Object(o.c)(p)),b=g.current.map(va),A=p.map(va),S=b.length,C=0;C<S;C++){var _=b[C];-1===A.indexOf(_)?v.add(_):v.delete(_)}return l&&v.size&&(y=[]),v.forEach((function(t){if(-1===A.indexOf(t)){var e=m.get(t);if(e){var o=b.indexOf(t);y.splice(o,0,r.createElement(ga,{key:va(e),isPresent:!1,onExitComplete:function(){m.delete(t),v.delete(t);var e=g.current.findIndex((function(e){return e.key===t}));g.current.splice(e,1),v.size||(g.current=p,d(),s&&s())},custom:n,presenceAffectsLayout:c},e))}}})),y=y.map((function(t){var e=t.key;return v.has(e)?t:r.createElement(ga,{key:va(t),isPresent:!0,presenceAffectsLayout:c},t)})),g.current=y,r.createElement(r.Fragment,null,v.size?y:y.map((function(t){return Object(r.cloneElement)(t)})))};function ba(t,e,n){void 0===n&&(n={});var o=$(t)?t:Mo(t);return Lo("",o,e,n),{stop:function(){return o.stop()}}}function Aa(){var t=Mo(1),e={lead:void 0,follow:void 0,crossfadeOpacity:!1,preserveFollowOpacity:!1},n=Object(o.a)({},e),r={},i={},a=!1,s=null,l=0;function u(n,r){var i=e.lead,l=e.follow;a=!0,s=null;var u=!1,c=function(){u=!0,i&&i.scheduleRender(),l&&l.scheduleRender()},d=function(){a=!1,s=Yn().timestamp};return r=r&&Eo(r,"crossfade"),ba(t,n,Object(o.a)(Object(o.a)({},r),{onUpdate:c,onComplete:function(){u?d():(t.set(n),Xn.read(d)),c()}}))}function c(){var n,o,a=Yn().timestamp,s=e.lead,u=e.follow;if(a!==l&&s){l=a;var c=s.getLatestValues();Object.assign(r,c);var d=u?u.getLatestValues():e.prevValues;Object.assign(i,d);var f=t.get(),h=null!==(n=c.opacity)&&void 0!==n?n:1,p=null!==(o=null==d?void 0:d.opacity)&&void 0!==o?o:1;e.crossfadeOpacity&&u?(r.opacity=De(!1!==u.isVisible?0:p,h,Sa(f)),i.opacity=e.preserveFollowOpacity?p:De(p,0,Ca(f))):u||(r.opacity=De(p,h,f)),function(t,e,n,o,r,i){for(var a=0;a<xa;a++){var s="border"+wa[a]+"Radius",l=Oa(o,s),u=Oa(n,s);if((void 0!==l||void 0!==u)&&(l||(l=0),u||(u=0),"number"==typeof l&&"number"==typeof u)){var c=Math.max(De(l,u,i),0);t[s]=e[s]=c}}if(o.rotate||n.rotate){var d=De(o.rotate||0,n.rotate||0,i);t.rotate=e.rotate=d}!r&&n.backgroundColor&&o.backgroundColor&&(t.backgroundColor=e.backgroundColor=Ye(o.backgroundColor,n.backgroundColor)(i))}(r,i,c,d||{},Boolean(u),f)}}return{isActive:function(){return r&&(a||Yn().timestamp===s)},fromLead:function(t){return u(0,t)},toLead:function(o){var r=0;return e.prevValues||e.follow?n.lead===e.follow&&n.follow===e.lead&&(r=1-t.get()):r=1,t.set(r),u(1,o)},reset:function(){return t.set(1)},stop:function(){return t.stop()},getCrossfadeState:function(t){return c(),t===e.lead?r:t===e.follow?i:void 0},setOptions:function(t){n=e,e=t,r={},i={}},getLatestValues:function(){return r}}}var Sa=_a(0,.5,An),Ca=_a(.5,.95,gn);function _a(t,e,n){return function(o){return o<t?0:o>e?1:n(Me(t,e,o))}}var wa=["TopLeft","TopRight","BottomLeft","BottomRight"],xa=wa.length;function Oa(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t.borderRadius}function Ea(){var t,e,n,r=new Set,i={leadIsExiting:!1},a=Object(o.a)({},i),s=Aa(),l=!1;return{add:function(t){t.setCrossfader(s),r.add(t),n&&(t.prevDragCursor=n),i.lead||(i.lead=t)},remove:function(t){r.delete(t)},getLead:function(){return i.lead},updateSnapshot:function(){if(i.lead){t=s.isActive()?s.getLatestValues():i.lead.getLatestValues(),e=i.lead.prevViewportBox;var o=ii.get(i.lead);o&&o.isDragging&&(n=o.cursorProgress)}},clearSnapshot:function(){n=e=void 0},updateLeadAndFollow:function(){var e,n,u;a=Object(o.a)({},i);for(var c=Array.from(r),d=c.length;d--;d>=0){var f=c[d];if(n&&(null!=u||(u=f)),null!=n||(n=f),n&&u)break}i.lead=n,i.follow=u,i.leadIsExiting=(null===(e=i.lead)||void 0===e?void 0:e.presence)===li.Exiting,s.setOptions({lead:n,follow:u,prevValues:t,crossfadeOpacity:(null==u?void 0:u.isPresenceRoot)||(null==n?void 0:n.isPresenceRoot)}),i.lead===a.follow||a.lead===i.lead&&a.leadIsExiting===i.leadIsExiting||(l=!0)},animate:function(t,n){var o;if(void 0===n&&(n=!1),t===i.lead){n?t.pointTo(i.lead):t.setVisibility(!0);var r={},a=null===(o=i.follow)||void 0===o?void 0:o.getProjectionParent();if(a&&(r.prevParent=a),t.presence===li.Entering?r.originBox=i.follow?i.follow.prevViewportBox:e:t.presence===li.Exiting&&(r.targetBox=function(){var t;return null===(t=i.follow)||void 0===t?void 0:t.getLayoutState().layout}()),l){l=!1;var u=t.getDefaultTransition();t.presence===li.Entering?s.toLead(u):s.fromLead(u)}t.notifyLayoutReady(r)}else n?i.lead&&t.pointTo(i.lead):t.setVisibility(!1)}}}var La=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.children=new Set,e.stacks=new Map,e.hasMounted=!1,e.updateScheduled=!1,e.renderScheduled=!1,e.syncContext=Object(o.a)(Object(o.a)({},Oi()),{syncUpdate:function(t){return e.scheduleUpdate(t)},forceUpdate:function(){e.syncContext=Object(o.a)({},e.syncContext),e.scheduleUpdate(!0)},register:function(t){return e.addChild(t)},remove:function(t){return e.removeChild(t)}}),e}return Object(o.b)(e,t),e.prototype.componentDidMount=function(){this.hasMounted=!0},e.prototype.componentDidUpdate=function(){this.startLayoutAnimation()},e.prototype.shouldComponentUpdate=function(){return this.renderScheduled=!0,!0},e.prototype.startLayoutAnimation=function(){var t=this;this.renderScheduled=this.updateScheduled=!1;var e=this.props.type;this.children.forEach((function(t){t.isPresent?t.presence!==li.Entering&&(t.presence=t.presence===li.Exiting?li.Entering:li.Present):t.presence=li.Exiting})),this.updateStacks();var n={layoutReady:function(n){void 0!==n.getLayoutId()?t.getStack(n).animate(n,"crossfade"===e):n.notifyLayoutReady()},parent:this.context.visualElement};this.children.forEach((function(e){return t.syncContext.add(e)})),this.syncContext.flush(n),this.stacks.forEach((function(t){return t.clearSnapshot()}))},e.prototype.updateStacks=function(){this.stacks.forEach((function(t){return t.updateLeadAndFollow()}))},e.prototype.scheduleUpdate=function(t){void 0===t&&(t=!1),!t&&this.updateScheduled||(this.updateScheduled=!0,this.children.forEach((function(t){!function(t){for(var e=!1,n={},o=0;o<z.length;o++){var r="rotate"+z[o];t.hasValue(r)&&0!==t.getStaticValue(r)&&(e=!0,n[r]=t.getStaticValue(r),t.setStaticValue(r,0))}if(e){for(var r in t.syncRender(),n)t.setStaticValue(r,n[r]);t.scheduleRender()}}(t),t.shouldResetTransform()&&t.resetTransform()})),this.children.forEach(Wr),this.stacks.forEach((function(t){return t.updateSnapshot()})),!t&&this.renderScheduled||(this.renderScheduled=!0,this.forceUpdate()))},e.prototype.addChild=function(t){this.children.add(t),this.addToStack(t),t.presence=this.hasMounted?li.Entering:li.Present},e.prototype.removeChild=function(t){this.scheduleUpdate(),this.children.delete(t),this.removeFromStack(t)},e.prototype.addToStack=function(t){var e=this.getStack(t);null==e||e.add(t)},e.prototype.removeFromStack=function(t){var e=this.getStack(t);null==e||e.remove(t)},e.prototype.getStack=function(t){var e=t.getLayoutId();if(void 0!==e)return!this.stacks.has(e)&&this.stacks.set(e,Ea()),this.stacks.get(e)},e.prototype.render=function(){return r.createElement(Li.Provider,{value:this.syncContext},this.props.children)},e.contextType=f,e}(r.Component);function Pa(t){var e=t.children,n=Object(o.d)(t,["children"]);(n=Object(o.a)(Object(o.a)({},Object(r.useContext)(d)),n)).isStatic=g((function(){return n.isStatic}));var i="object"==typeof n.transition?n.transition.toString():"",a=Object(r.useMemo)((function(){return n}),[i,n.transformPagePoint]);return r.createElement(d.Provider,{value:a},e)}function Ba(t){var e=t.children,n=t.features,i=t.strict,a=void 0!==i&&i,u=Object(o.c)(Object(r.useState)(!Ta(n)),2)[1],c=Object(r.useRef)(void 0);if(!Ta(n)){var d=n.renderer,f=Object(o.d)(n,["renderer"]);c.current=d,s(f)}return Object(r.useEffect)((function(){Ta(n)&&n().then((function(t){var e=t.renderer;s(Object(o.d)(t,["renderer"])),c.current=e,u(!0)}))}),[]),r.createElement(l.Provider,{value:{renderer:c.current,strict:a}},e)}function Ta(t){return"function"==typeof t}var ka=Object(o.a)(Object(o.a)({renderer:la},er),Ce),Ma=Object(o.a)(Object(o.a)(Object(o.a)({},ka),ci),ki);function Da(t){var e=g((function(){return Mo(t)}));if(Object(r.useContext)(d).isStatic){var n=Object(o.c)(Object(r.useState)(t),2)[1];Object(r.useEffect)((function(){return e.onChange(n)}),[])}return e}function ja(t,e){Object(r.useEffect)((function(){if($(t))return t.onChange(e)}),[e])}function Wa(t,e){var n=Da(e()),o=function(){return n.set(e())};return o(),function(t,e){Object(r.useEffect)((function(){var n=t.map((function(t){return t.onChange(e)}));return function(){return n.forEach((function(t){return t()}))}}))}(t,(function(){return Xn.update(o,!1,!0)})),n}function Ia(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var o=t.length;function r(){for(var n="",r=0;r<o;r++){n+=t[r],e[r]&&(n+=e[r].get())}return n}return Wa(e,r)}var Ra=function(t){return function(t){return"object"==typeof t&&t.mix}(t)?t.mix:void 0};function Fa(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=!Array.isArray(t[0]),r=n?0:-1,i=t[0+r],a=t[1+r],s=t[2+r],l=t[3+r],u=cn(a,s,Object(o.a)({mixer:Ra(s[0])},l));return n?u(i):u}function Va(t,e,n,r){var i="function"==typeof e?e:Fa(e,n,r);return Array.isArray(t)?za(t,i):za([t],(function(t){var e=Object(o.c)(t,1)[0];return i(e)}))}function za(t,e){var n=g((function(){return[]}));return Wa(t,(function(){n.length=0;for(var o=t.length,r=0;r<o;r++)n[r]=t[r].get();return e(n)}))}function Na(t,e){void 0===e&&(e={});var n=Object(r.useContext)(d).isStatic,i=Object(r.useRef)(null),a=Da($(t)?t.get():t);return Object(r.useMemo)((function(){return a.attach((function(t,r){return n?r(t):(i.current&&i.current.stop(),i.current=Zn(Object(o.a)(Object(o.a)({from:a.get(),to:t,velocity:a.getVelocity()},e),{onUpdate:r})),a.get())}))}),Object.values(e)),ja(t,(function(t){return a.set(parseFloat(t))})),a}function Ua(t){var e=Da(t.getVelocity());return Object(r.useEffect)((function(){return t.velocityUpdateSubscribers.add((function(t){e.set(t)}))}),[t]),e}function Ha(){return{scrollX:Mo(0),scrollY:Mo(0),scrollXProgress:Mo(0),scrollYProgress:Mo(0)}}function Ga(t,e,n){n.set(t&&e?t/e:0)}function Ya(t,e){var n=function(){var n=e(),o=n.xOffset,r=n.yOffset,i=n.xMaxOffset,a=n.yMaxOffset;t.scrollX.set(o),t.scrollY.set(r),Ga(o,i,t.scrollXProgress),Ga(r,a,t.scrollYProgress)};return n(),n}var Xa;function Qa(t){var e=g(Ha);return w((function(){var n=t.current;if(n){var o=Ya(e,function(t){return function(){return{xOffset:t.scrollLeft,yOffset:t.scrollTop,xMaxOffset:t.scrollWidth-t.offsetWidth,yMaxOffset:t.scrollHeight-t.offsetHeight}}}(n)),r=qt(n,"scroll",o,{passive:!0}),i=qt(n,"resize",o);return function(){r&&r(),i&&i()}}}),[]),e}function $a(){return{xOffset:window.pageXOffset,yOffset:window.pageYOffset,xMaxOffset:document.body.clientWidth-window.innerWidth,yMaxOffset:document.body.clientHeight-window.innerHeight}}var Za,qa=!1;function Ka(){return Xa||(Xa=Ha()),w((function(){!qa&&function(){if(qa=!0,"undefined"!=typeof window){var t=Ya(Xa,$a);qt(window,"scroll",t,{passive:!0}),qt(window,"resize",t)}}()}),[]),Xa}function Ja(){!Za&&function(){if(Za=Mo(null),"undefined"!=typeof window)if(window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion)"),e=function(){return Za.set(t.matches)};t.addListener(e),e()}else Za.set(!1)}();var t=Object(o.c)(Object(r.useState)(Za.get()),2),e=t[0],n=t[1];return ja(Za,n),e}function ts(){var t=!1,e=[],n=new Set,r={subscribe:function(t){return n.add(t),function(){n.delete(t)}},start:function(o,r){if(t){var i=[];return n.forEach((function(t){i.push(Go(t,o,{transitionOverride:r}))})),Promise.all(i)}return new Promise((function(t){e.push({animation:[o,r],resolve:t})}))},set:function(t){return n.forEach((function(e){!function(t,e){Array.isArray(e)?zo(t,e):"string"==typeof e?zo(t,[e]):Vo(t,e)}(e,t)}))},stop:function(){n.forEach((function(t){!function(t){t.forEachValue((function(t){return t.stop()}))}(t)}))},mount:function(){return t=!0,e.forEach((function(t){var e=t.animation,n=t.resolve;r.start.apply(r,Object(o.e)([],Object(o.c)(e))).then(n)})),function(){t=!1,r.stop()}}};return r}function es(){var t=g(ts);return Object(r.useEffect)(t.mount,[]),t}var ns=function(t,e,n){var o=e-t;return((n-t)%o+o)%o+t};function os(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Object(r.useRef)(0),i=Object(o.c)(Object(r.useState)(t[n.current]),2),a=i[0],s=i[1];return[a,function(e){n.current="number"!=typeof e?ns(0,t.length,n.current+1):e,s(t[n.current])}]}var rs=function(){function t(){this.componentControls=new Set}return t.prototype.subscribe=function(t){var e=this;return this.componentControls.add(t),function(){return e.componentControls.delete(t)}},t.prototype.start=function(t,e){this.componentControls.forEach((function(n){n.start(t.nativeEvent||t,e)}))},t.prototype.updateConstraints=function(t){void 0===t&&(t=!0),this.componentControls.forEach((function(t){t.updateConstraints()})),t&&ni()},t}(),is=function(){return new rs};function as(){return g(is)}var ss=function(){return{}},ls=zi({build:function(){},measureViewportBox:gr,resetTransform:function(){},restoreTransform:function(){},removeValueFromRenderState:function(){},render:function(){},scrapeMotionValuesFromProps:ss,readValueFromInstance:function(t,e,n){return n.initialState[e]||0},makeTargetAnimatable:function(t,e){var n=e.transition,r=e.transitionEnd,i=Object(o.d)(e,["transition","transitionEnd"]);return No(t,i,Ho(i,n||{},t)),Object(o.a)({transition:n,transitionEnd:r},i)}}),us=Gt({scrapeMotionValuesFromProps:ss,createRenderState:ss});function cs(t){var e=Object(o.c)(Object(r.useState)(t),2),n=e[0],i=e[1],a=us({},!1),s=g((function(){return ls({props:{},visualState:a},{initialState:t})}));return Object(r.useEffect)((function(){return s.mount({}),s.unmount()}),[]),Object(r.useEffect)((function(){s.setProps({onUpdate:function(t){return i(Object(o.a)({},t))}})})),[n,g((function(){return function(t){return Go(s,t)}}))]}var ds=function(t){return t>.001?1/t:1e5};function fs(t){var e=Da(1),n=Da(1),o=h();return!0,t?(e=t.scaleX||e,n=t.scaleY||n):o&&(e=o.getValue("scaleX",1),n=o.getValue("scaleY",1)),{scaleX:Va(e,ds),scaleY:Va(n,ds)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScannerConfiguration=void 0;const o=n(56);class r extends o.BaseConfiguration{constructor(t){super(),this.mirrored=!1,this.spinnerColor="black",this.backgroundColor="black",this.videoConstraints={width:{ideal:t.width},height:{ideal:t.height},facingMode:"environment",resizeMode:"none",experimental:{focusMode:"continous",focusDistance:0}}}static mapVideoConstraints(t,e){t.videoConstraints&&this.mapValues(t.videoConstraints,e.videoConstraints)}}e.ScannerConfiguration=r,r.DEFAULT_VIDEO_RESOLUTION_4K={width:3840,height:2160},r.DEFAULT_VIDEO_RESOLUTION_HD={width:1920,height:1080},r.DEFAULT_ACCEPTED_BRIGHTNESS_SCORE=0,r.DEFAULT_ACCEPTED_ANGLE_SCORE=75,r.DEFAULT_ACCEPTED_SIZE_SCORE=75},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.NavigationBarSizeContext=void 0;const s=n(2),l=i(n(1)),u=a(n(2)),c=n(41),d=n(39),f=n(9),h=n(4),p=n(42);d.TopBarConfiguration;e.NavigationBarSizeContext=l.default.createContext(null),e.default=function(t){const n=t.mode,o="HIDDEN"===n?0:48;(0,l.useEffect)((()=>{if("HIDDEN"===n)return;const e=document.createElement("meta");return e.name="theme-color",e.content=h.SBTheme.getColorValue(t.backgroundColor),document.head.appendChild(e),()=>{document.head.removeChild(e)}}),[n]);const r="SOLID"===n?0:o,i={height:o,remainingVisibleBodyHeight:"SOLID"===n?`calc(100 * ${c.dvhCssValue} - ${o}px)`:`calc(100 * ${c.dvhCssValue})`,minTopPaddingForContent:r,minTopPaddingForViewFinder:10+r},a="SOLID"===n?{backgroundColor:h.SBTheme.getColorValue(t.backgroundColor)}:{backgroundImage:`linear-gradient(to bottom, ${h.SBTheme.getColorValue(t.backgroundColor)}, #00000000)`,position:"absolute",backgroundColor:"transparent"};return l.default.createElement(l.default.Fragment,null,"HIDDEN"!==n&&l.default.createElement(s.AppBar,{position:"static",elevation:0,sx:Object.assign({zIndex:1e5,height:o,minHeight:o},a)},l.default.createElement(s.Toolbar,{variant:"dense",sx:{height:o,minHeight:o}},l.default.createElement(s.Box,{sx:{flex:1}},t.cancelButton.visible&&l.default.createElement(l.default.Fragment,null,l.default.createElement(p.StyledButton,Object.assign({onClick:t.onBackPress,icon:t.cancelButton.foreground.iconVisible&&l.default.createElement(u.default,{sx:{fontSize:12,mr:"5px"}})},t.cancelButton)))),l.default.createElement(s.Box,null,l.default.createElement(s.Typography,{variant:"h6",noWrap:!0,component:"div",fontSize:18,fontWeight:600},l.default.createElement(f.StyledText,{config:t.title}))),l.default.createElement(s.Box,{sx:{flex:1}}))),l.default.createElement(e.NavigationBarSizeContext.Provider,{value:i},t.children))}},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(38),e),r(n(60),e),r(n(39),e),r(n(61),e),r(n(62),e),r(n(3),e),r(n(40),e),r(n(64),e),r(n(18),e),r(n(102),e),r(n(65),e),r(n(66),e),r(n(10),e),r(n(103),e),r(n(68),e),r(n(104),e),r(n(63),e),r(n(105),e),r(n(67),e),r(n(106),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeInfoMapping=e.BarcodeMappedData=e.BarcodeItemErrorState=void 0;const o=n(3),r=n(6),i=n(3);class a extends r.PartiallyConstructible{constructor(t={}){super(),this.title=new i.StyledText({text:"Connection Error!",color:"?sbColorOnSurface"}),this.subtitle=new i.StyledText({text:"There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",color:"?sbColorOnSurfaceVariant"}),this.retryButton=new o.ButtonConfiguration({}),this.cancelButton=new o.ButtonConfiguration({}),void 0!==t.title&&(this.title=new i.StyledText(t.title)),void 0!==t.subtitle&&(this.subtitle=new i.StyledText(t.subtitle)),void 0!==t.retryButton&&(this.retryButton=new o.ButtonConfiguration(t.retryButton)),void 0!==t.cancelButton&&(this.cancelButton=new o.ButtonConfiguration(t.cancelButton))}}e.BarcodeItemErrorState=a;class s extends r.PartiallyConstructible{constructor(t={}){if(super(),void 0===t.title)throw new Error("title must be present in constructor argument");if(this.title=t.title,void 0===t.subtitle)throw new Error("subtitle must be present in constructor argument");if(this.subtitle=t.subtitle,void 0===t.barcodeImage)throw new Error("barcodeImage must be present in constructor argument");this.barcodeImage=t.barcodeImage}}e.BarcodeMappedData=s;class l extends r.PartiallyConstructible{constructor(t={}){super(),this.barcodeItemMapper=null,this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.loadingMessage=new i.StyledText({text:"Loading message for barcode info mapping.",color:"?sbColorPrimary"}),this.errorState=new a({}),void 0!==t.barcodeItemMapper&&(this.barcodeItemMapper=null!=t.barcodeItemMapper?t.barcodeItemMapper:null),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.loadingMessage&&(this.loadingMessage=new i.StyledText(t.loadingMessage)),void 0!==t.errorState&&(this.errorState=new a(t.errorState))}}e.BarcodeInfoMapping=l},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeMapper=e.BarcodeMapperContext=void 0;const r=n(12),i=n(1),a=n(116);e.BarcodeMapperContext=(0,i.createContext)(null);e.BarcodeMapper=class{constructor(t,e){this.barcodeItemMapper=t,this.onError=e,this.cache=new Map,this.cacheEntryPendingRetries=[],this.hash=t=>t.id(),this.onEvictionListeners=new Set}mapBarcodeToBarcodeItem(t,e){return o(this,void 0,void 0,(function*(){return{count:e,rawBytes:yield r.ImageUtils.toBase64(t.rawBytes),type:t.format,text:t.text,parsedDocument:t.parsedDocument}}))}getBarcodeMappedData(t){const e=this.hash(t);if(!this.cache.has(e)){const n=(()=>o(this,void 0,void 0,(function*(){if(this.barcodeItemMapper){const e=yield this.mapBarcodeToBarcodeItem(t,1);return this.barcodeItemMapper(e)}return{title:t.text,subtitle:t.format,barcodeImage:yield r.ImageUtils.toDataUrl(t.barcodeImage)}})))();this.cache.set(e,n)}return this.cache.get(e)}useBarcodeMappedData(t){const e=(0,i.useRef)(!1),n=t&&this.getBarcodeMappedData(t),o=(0,a.usePromise)(n);if((0,i.useEffect)((()=>{o&&o.error&&(e.current=!1,this.cacheEntryPendingRetries.push({barcode:t,retry:()=>{this.cache.delete(this.hash(t)),e.current=!0}}),this.onError((()=>{for(const t of this.cacheEntryPendingRetries)t.retry();this.cacheEntryPendingRetries.length=0}),(()=>{e.current=!0;for(const t of this.cacheEntryPendingRetries)for(const e of this.onEvictionListeners)this.hash(e.barcode)==this.hash(t.barcode)&&e.callback();this.cacheEntryPendingRetries.length=0})))}),[o&&o.error]),!o)return null;let r;return r=o.value?"LOADED":o.error&&!e.current?"RETRY_DIALOG_OPEN":o.error?"FAILED":"LOADING",{value:o.value,state:r}}addOnEvictionListener(t){this.onEvictionListeners.add(t)}removeOnEvictionListener(t){this.onEvictionListeners.delete(t)}}},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},a=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const l=n(90),u=n(53),c=n(55),d=n(93),f=s(n(94)),h=s(n(95)),p=s(n(58)),g=n(12),m=n(52),v=n(36),y=s(n(96)),b=s(n(98)),A=s(n(99)),S=n(101),C=n(107),_=n(108),w=s(n(109)),x=s(n(69)),O=n(57),E=i(n(110)),L=s(n(24)),P=s(n(111));class B{static get UI(){if(!m.Constants.BUILD_WITH_UI)throw new Error("UI components are not included in Scanbot.min.js. Please use ScanbotSDK.ui2.min.js instead.");return B._ui2}static initialize(t){var e;return a(this,void 0,void 0,(function*(){const n=new B,o=t.engine||B.defaultEnginePath,r=!!t.allowThreads,i=null!==(e=t.requestSuffix)&&void 0!==e?e:`?${n.version}`,a=[t.licenseKey,o,window.location.hostname,m.Constants.CDN_PATH+m.Constants.DEFAULT_WASM_FOLDER,{captureConsole:!1,allowThreads:r,profileTfjsKernels:!1,requestSuffix:i}];return n.bridge=new l.WorkerBridge(o,{allowSimd:!0,allowThreads:r,requestSuffix:i},a),B.instance=n,window.scanbotSdk=n,L.default.initialize(t.verboseLogging),t.allowThreads&&!(0,u.areThreadsAvailable)()&&(L.default.debugWarn("Threads are not available in this environment. The SDK will run in single-threaded mode."),window.hasOwnProperty("crossOriginIsolated")&&!window.crossOriginIsolated&&L.default.debugWarn("The site is not cross-origin isolated. This prevents multithreading in the ScanbotSDK. To enable multithreading, you need to set the 'Cross-Origin-Opener-Policy' and 'Cross-Origin-Embedder-Policy' http headers. See our documentation for details.")),n}))}createDocumentScanner(t){return a(this,void 0,void 0,(function*(){let e;try{const o=n(156);return e=yield o.default.create(t),yield this.licenseCheck(),e}catch(t){throw e&&e.dispose(),t}}))}createMrzScanner(t){var e;return a(this,void 0,void 0,(function*(){let o;try{const r=n(163),i=new y.default(this,this.bridge.postByTransferringArgs("createMRZRecognizer",[null==t?void 0:t.accumulatedFrameVerificationConfiguration]),!0),a=null!==(e=r.default)&&void 0!==e?e:r;return o=yield a.create(t,i),yield this.licenseCheck(),o}catch(t){throw o&&o.dispose(),t}}))}createBarcodeScanner(t){var e;return a(this,void 0,void 0,(function*(){let o;try{const r=n(73),i=null!==(e=r.default)&&void 0!==e?e:r;return o=yield i.create(t),yield this.licenseCheck(),o}catch(t){throw o&&o.dispose(),t}}))}openCroppingView(t){return a(this,void 0,void 0,(function*(){yield this.licenseCheck();const e=n(165);return yield e.default.create(t)}))}createTextDataScanner(t){return a(this,void 0,void 0,(function*(){try{const e={languages:(t=S.TextDataScannerConfiguration.fromJson(t)).supportedLanguages,ocrResolutionLimit:t.ocrResolutionLimit},n=yield this.createGenericTextLineScanner(t,t.onTextDetected,e,t.validatorPreset);return yield this.licenseCheck(),n}catch(t){throw t}}))}createVINScanner(t){return a(this,void 0,void 0,(function*(){let e;try{t=C.VINScannerConfiguration.fromJson(t);const n="VehicleIdentificationNumber",o={ocrResolutionLimit:t.ocrResolutionLimit},r=e=>{""!==e.text&&t.onTextDetected(e)};return e=yield this.createGenericTextLineScanner(t,r,o,n),yield this.licenseCheck(),e}catch(t){throw e&&e.dispose(),t}}))}toDataUrl(t){return a(this,void 0,void 0,(function*(){return x.default.throwIfMissingBuffer(t),yield g.ImageUtils.toDataUrl(t)}))}applyFilter(t,e){return a(this,void 0,void 0,(function*(){return yield this.licenseCheck(),x.default.throwIfMissingBuffer(t),yield this.bridge.postByCopyingArgs("applyFilter",[t,e])}))}rotateImageCcw(t,e){return a(this,void 0,void 0,(function*(){return x.default.throwIfMissingBuffer(t),yield this.bridge.postByCopyingArgs("rotateImageCcw",[t,e])}))}cropAndRotateImageCcw(t,e,n){return a(this,void 0,void 0,(function*(){return x.default.throwIfMissingBuffer(t),x.default.throwIfMissing(e,"Polygon may not be null"),yield this.bridge.postByCopyingArgs("cropAndRotateImageCcw",[t,e,n])}))}detectDocument(t,e,n,o){return a(this,void 0,void 0,(function*(){yield this.licenseCheck(),x.default.throwIfMissingBuffer(t);const r=yield this.bridge.postByTransferringArgs("createDocumentDetector",[{useCombinedDetector:!1,acceptedBrightnessThreshold:o||c.DocumentScannerConfiguration.DEFAULT_ACCEPTED_BRIGHTNESS_SCORE,acceptedAngleScore:e||c.DocumentScannerConfiguration.DEFAULT_ACCEPTED_ANGLE_SCORE,acceptedSizeScore:n||c.DocumentScannerConfiguration.DEFAULT_ACCEPTED_SIZE_SCORE}]);return yield this.bridge.postByCopyingArgs("documentDetectorDetect",[r,t])}))}detectAndCropDocument(t){return a(this,void 0,void 0,(function*(){return yield this.licenseCheck(),x.default.throwIfMissingBuffer(t),yield this.bridge.postByCopyingArgs("detectAndCropDocument",[t])}))}detectBarcodes(t,e,n,o,r){return a(this,void 0,void 0,(function*(){return yield this.licenseCheck(),x.default.throwIfMissingBuffer(t),new Promise((i=>{const s=document.createElement("canvas"),l=document.createElement("img");l.src=t,l.onload=()=>a(this,void 0,void 0,(function*(){s.width=l.width,s.height=l.height;const t=s.getContext("2d");t.drawImage(l,0,0);const a=t.getImageData(0,0,l.width,l.height),{result:u,originalImage:c}=yield this.bridge.postByTransferringArgs("recognizeBarcodes",[a,{engineMode:e,barcodeFormats:n,returnBarcodeImage:o,gs1Handling:r}]);i(v.BarcodeResult.fromWorker(u,g.ImageUtils.convertImageDataWrapperToImageData(c)))}))}))}))}createSimpleMRZRecognizer(){return a(this,void 0,void 0,(function*(){return new y.default(this,yield this.bridge.postByTransferringArgs("createMRZRecognizer",[]),!1)}))}createOcrEngine(t){return a(this,void 0,void 0,(function*(){return new b.default(this,yield this.bridge.postByCopyingArgs("createOcrEngine",[t]))}))}createDocumentQualityAnalyzer(t){return a(this,void 0,void 0,(function*(){const e=yield this.bridge.postByTransferringArgs("createDocumentQualityAnalyzer",[null!=t?t:{}]);return new w.default(this,e)}))}createImageProcessor(t){return a(this,void 0,void 0,(function*(){x.default.throwIfMissingBuffer(t);const e=yield this.bridge.postByCopyingArgs("imageProcessorCreate",[t]);return new O.ImageProcessor(this,e)}))}getLicenseInfo(){return a(this,void 0,void 0,(function*(){const t=yield this.bridge.postByTransferringArgs("getLicenseInfo",[]);return d.LicenseInfo.fromJson(t)}))}beginPdf(t={}){return a(this,void 0,void 0,(function*(){return yield this.licenseCheck(),new f.default(this,yield this.bridge.postByCopyingArgs("beginPdf",[t]))}))}beginTiff(t={}){return a(this,void 0,void 0,(function*(){return yield this.licenseCheck(),new h.default(this,yield this.bridge.postByCopyingArgs("beginTiff",[t]))}))}get version(){return m.Constants.VERSION}get utils(){return this._utils||(this._utils=new p.default),this._utils}release(t,e){return a(this,void 0,void 0,(function*(){t&&(console.log("Releasing object: "+e||!1),yield this.bridge.postByTransferringArgs("releaseObject",[t]))}))}licenseCheck(){return a(this,void 0,void 0,(function*(){const t=yield this.getLicenseInfo();if(!t.isValid())throw console.error(`LicenseError: ${t.status}`),new _.LicenseError(t)}))}createGenericTextLineScanner(t,e,o,r){var i;return a(this,void 0,void 0,(function*(){r&&(o.validatorPreset=r);const a=n(176),s=null!==(i=a.default)&&void 0!==i?i:a,l=this.bridge.postByCopyingArgs("createGenericTextLineScanner",[o]),u=new A.default(this,l);return yield s.create(t,e,u)}))}}B.defaultEnginePath="",B._ui2=m.Constants.BUILD_WITH_UI?P.default:void 0,B.imageFilters=E,e.default=B},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Frame=void 0;class o{constructor(t,e,n,o){this.x=t,this.y=e,this.width=n,this.height=o}scaleDown(t){return new o(this.x/t,this.y/t,this.width/t,this.height/t)}bottom(){return this.y+this.height}static withSize(t,e){return new o(0,0,t,e)}static empty(){return new o(0,0,0,0)}static fromRect(t){return t?new o(t.x,t.y,t.width,t.height):o.empty()}static fromPoint(t,e){return new o(t.x-e/2,t.y-e/2,e,e)}static fromDOMRect(t){return new o(t.x,t.y,t.width,t.height)}}e.Frame=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Utils=void 0;e.Utils=class{static toPixelSize(t){return t+"px"}static containsString(t,e){return!!t&&-1!==t.indexOf(e)}static copy(t){return JSON.parse(JSON.stringify(t))}static getProperty(t,e){let n;return t&&t.hasOwnProperty(e)&&(n=t[e]),n}static uuid(){let t="";const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=e.length;for(let o=0;o<5;o++)t+=e.charAt(Math.floor(Math.random()*n));return t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewFinderScannerConfiguration=void 0;const o=n(15),r=n(17);class i extends o.ScannerConfiguration{constructor(t){super(t);const e=new r.BarcodeScannerConfiguration;this.finder=e.viewFinder,this.userGuidance=e.userGuidance}static mapFinderConfiguration(t,e){var n,r;o.ScannerConfiguration.mapValuesDeep(null!==(n=e.finder)&&void 0!==n?n:{},t.finder),o.ScannerConfiguration.mapValuesDeep(null!==(r=e.userGuidance)&&void 0!==r?r:{},t.userGuidance)}}e.ViewFinderScannerConfiguration=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=class{static initialize(t=!1){this.verbose=t}static debug(t){this.verbose&&console.log("ScanbotSDK:",t)}static debugWarn(t){this.verbose&&console.warn("ScanbotSDK:",t)}}},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.DialogButton=void 0;const a=i(n(1)),s=n(17),l=n(2),u=n(9),c=n(4),d=i(n(2));s.ButtonConfiguration;e.DialogButton=function(t){const e=(0,a.useContext)(c.SBPaletteContext).getColorValue;if(!t.visible)return null;const n=d[t.icon];return a.default.createElement(l.Button,{onClick:t.onClick,type:t.type,style:Object.assign(Object.assign({},t.style),{border:"1px solid "+e(t.background.strokeColor),borderWidth:t.background.strokeWidth,backgroundColor:e(t.background.fillColor)})},t.foreground.iconVisible&&t.icon&&a.default.createElement(n,{sx:{color:e(t.foreground.color),pr:2}}),a.default.createElement(u.StyledText,{config:{visible:!0,text:t.text,color:t.foreground.color,useShadow:t.foreground.useShadow}}))}},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ScannerView=e.ScanbotCameraState=e.ScanbotCameraProps=void 0;const i=r(n(1)),a=n(1),s=r(n(20)),l=n(74),u=r(n(120));e.ScanbotCameraProps=class{};class c{constructor(){this.videoReady=!1,this.sdkReady=!1}}e.ScanbotCameraState=c;class d extends i.default.Component{constructor(t){super(t),this.onVideoReady=()=>{this.setState({videoReady:!0},(()=>{const{onSuccess:t}=this.props;t&&t(this)}))},this.onVideoError=t=>{if(!0===this.state.videoReady){const{onError:e}=this.props.configuration;e?e(t):console.error(t)}else{const{onFailure:e}=this.props;e&&e(t),this.dispose()}},this.state=new c,this.bridge.awaitInitialized().then((()=>{this.setState({sdkReady:!0})}))}get bridge(){return s.default.instance.bridge}dispose(){const{container:t}=this.props;t&&(0,a.render)(null,t)}componentDidMount(){this.disposed=!1}componentWillUnmount(){this.disposed=!0}isSupported(){return"localhost"===location.hostname||"https:"===location.protocol}swapCameraFacing(t){this.camera.swapCameraFacing(t)}switchCamera(t,e){return o(this,void 0,void 0,(function*(){this.camera.switchCamera(t,e)}))}getActiveCameraInfo(){return this.camera.getActiveCameraInfo()}fetchAvailableCameras(){return o(this,void 0,void 0,(function*(){return new Promise(((t,e)=>{var n;if(null===(n=navigator.mediaDevices)||void 0===n?void 0:n.enumerateDevices){let n=[];navigator.mediaDevices.enumerateDevices().then((e=>{e.forEach((t=>{"videoinput"===t.kind&&t.deviceId&&n.push({deviceId:t.deviceId,label:t.label})})),t(n)})).catch((t=>{e(l.MediaError.mediaDeviceNotFound())}))}else e(l.MediaError.enumerateDevicesFailed())}))}))}renderSpinner(t){return this.state.videoReady&&this.state.sdkReady?null:i.default.createElement("div",{"data-sb-spinner":"1",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:500}},i.default.createElement(u.default,{color:t}))}setTorchState(t){return this.camera.setTorchState(t)}}e.ScannerView=d,d.DEFAULT_DETECTION_RESOLUTION=600,d.DETECTION_RESULTION_4K=3840},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"ServerStyleSheet",(function(){return ne})),n.d(e,"StyleSheetConsumer",(function(){return Et})),n.d(e,"StyleSheetContext",(function(){return Ot})),n.d(e,"StyleSheetManager",(function(){return Bt})),n.d(e,"ThemeConsumer",(function(){return zt})),n.d(e,"ThemeContext",(function(){return Vt})),n.d(e,"ThemeProvider",(function(){return Ut})),n.d(e,"__PRIVATE__",(function(){return oe})),n.d(e,"createGlobalStyle",(function(){return Jt})),n.d(e,"css",(function(){return Qt})),n.d(e,"default",(function(){return qt})),n.d(e,"isStyledComponent",(function(){return $})),n.d(e,"keyframes",(function(){return te})),n.d(e,"styled",(function(){return qt})),n.d(e,"useTheme",(function(){return Nt})),n.d(e,"version",(function(){return f})),n.d(e,"withTheme",(function(){return ee}));var o=n(0),r=(n(88),n(1)),i=n(86),a=n.n(i),s=n(11),l=n(87),u="undefined"!=typeof t&&void 0!==t.env&&(t.env.REACT_APP_SC_ATTR||t.env.SC_ATTR)||"data-styled",c="active",d="data-styled-version",f="6.1.8",h="/*!sc*/\n",p="undefined"!=typeof window&&"HTMLElement"in window,g=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof t&&void 0!==t.env&&void 0!==t.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==t.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==t.env.REACT_APP_SC_DISABLE_SPEEDY&&t.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof t&&void 0!==t.env&&void 0!==t.env.SC_DISABLE_SPEEDY&&""!==t.env.SC_DISABLE_SPEEDY&&("false"!==t.env.SC_DISABLE_SPEEDY&&t.env.SC_DISABLE_SPEEDY)),m={},v=(new Set,Object.freeze([])),y=Object.freeze({});function b(t,e,n){return void 0===n&&(n=y),t.theme!==n.theme&&t.theme||e||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),S=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,C=/(^-|-$)/g;function _(t){return t.replace(S,"-").replace(C,"")}var w=/(a)(d)/gi,x=function(t){return String.fromCharCode(t+(t>25?39:97))};function O(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=x(e%52)+n;return(x(e%52)+n).replace(w,"$1-$2")}var E,L=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},P=function(t){return L(5381,t)};function B(t){return O(P(t)>>>0)}function T(t){return t.displayName||t.name||"Component"}function k(t){return"string"==typeof t&&!0}var M="function"==typeof Symbol&&Symbol.for,D=M?Symbol.for("react.memo"):60115,j=M?Symbol.for("react.forward_ref"):60112,W={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},I={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},R={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},F=((E={})[j]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},E[D]=R,E);function V(t){return("type"in(e=t)&&e.type.$$typeof)===D?R:"$$typeof"in t?F[t.$$typeof]:W;var e}var z=Object.defineProperty,N=Object.getOwnPropertyNames,U=Object.getOwnPropertySymbols,H=Object.getOwnPropertyDescriptor,G=Object.getPrototypeOf,Y=Object.prototype;function X(t,e,n){if("string"!=typeof e){if(Y){var o=G(e);o&&o!==Y&&X(t,o,n)}var r=N(e);U&&(r=r.concat(U(e)));for(var i=V(t),a=V(e),s=0;s<r.length;++s){var l=r[s];if(!(l in I||n&&n[l]||a&&l in a||i&&l in i)){var u=H(e,l);try{z(t,l,u)}catch(t){}}}}return t}function Q(t){return"function"==typeof t}function $(t){return"object"==typeof t&&"styledComponentId"in t}function Z(t,e){return t&&e?"".concat(t," ").concat(e):t||e||""}function q(t,e){if(0===t.length)return"";for(var n=t[0],o=1;o<t.length;o++)n+=e?e+t[o]:t[o];return n}function K(t){return null!==t&&"object"==typeof t&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function J(t,e,n){if(void 0===n&&(n=!1),!n&&!K(t)&&!Array.isArray(t))return e;if(Array.isArray(e))for(var o=0;o<e.length;o++)t[o]=J(t[o],e[o]);else if(K(e))for(var o in e)t[o]=J(t[o],e[o]);return t}function tt(t,e){Object.defineProperty(t,"toString",{value:e})}function et(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):""))}var nt=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return t.prototype.indexOfGroup=function(t){for(var e=0,n=0;n<t;n++)e+=this.groupSizes[n];return e},t.prototype.insertRules=function(t,e){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;t>=r;)if((r<<=1)<0)throw et(16,"".concat(t));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var i=o;i<r;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(t+1),s=(i=0,e.length);i<s;i++)this.tag.insertRule(a,e[i])&&(this.groupSizes[t]++,a++)},t.prototype.clearGroup=function(t){if(t<this.length){var e=this.groupSizes[t],n=this.indexOfGroup(t),o=n+e;this.groupSizes[t]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},t.prototype.getGroup=function(t){var e="";if(t>=this.length||0===this.groupSizes[t])return e;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),r=o+n,i=o;i<r;i++)e+="".concat(this.tag.getRule(i)).concat(h);return e},t}(),ot=new Map,rt=new Map,it=1,at=function(t){if(ot.has(t))return ot.get(t);for(;rt.has(it);)it++;var e=it++;return ot.set(t,e),rt.set(e,t),e},st=function(t,e){it=e+1,ot.set(t,e),rt.set(e,t)},lt="style[".concat(u,"][").concat(d,'="').concat(f,'"]'),ut=new RegExp("^".concat(u,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ct=function(t,e,n){for(var o,r=n.split(","),i=0,a=r.length;i<a;i++)(o=r[i])&&t.registerName(e,o)},dt=function(t,e){for(var n,o=(null!==(n=e.textContent)&&void 0!==n?n:"").split(h),r=[],i=0,a=o.length;i<a;i++){var s=o[i].trim();if(s){var l=s.match(ut);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(st(c,u),ct(t,c,l[3]),t.getTag().insertRules(u,r)),r.length=0}else r.push(s)}}};function ft(){return n.nc}var ht=function(t){var e=document.head,n=t||e,o=document.createElement("style"),r=function(t){var e=Array.from(t.querySelectorAll("style[".concat(u,"]")));return e[e.length-1]}(n),i=void 0!==r?r.nextSibling:null;o.setAttribute(u,c),o.setAttribute(d,f);var a=ft();return a&&o.setAttribute("nonce",a),n.insertBefore(o,i),o},pt=function(){function t(t){this.element=ht(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var e=document.styleSheets,n=0,o=e.length;n<o;n++){var r=e[n];if(r.ownerNode===t)return r}throw et(17)}(this.element),this.length=0}return t.prototype.insertRule=function(t,e){try{return this.sheet.insertRule(e,t),this.length++,!0}catch(t){return!1}},t.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},t.prototype.getRule=function(t){var e=this.sheet.cssRules[t];return e&&e.cssText?e.cssText:""},t}(),gt=function(){function t(t){this.element=ht(t),this.nodes=this.element.childNodes,this.length=0}return t.prototype.insertRule=function(t,e){if(t<=this.length&&t>=0){var n=document.createTextNode(e);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},t.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},t}(),mt=function(){function t(t){this.rules=[],this.length=0}return t.prototype.insertRule=function(t,e){return t<=this.length&&(this.rules.splice(t,0,e),this.length++,!0)},t.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},t.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},t}(),vt=p,yt={isServer:!p,useCSSOMInjection:!g},bt=function(){function t(t,e,n){void 0===t&&(t=y),void 0===e&&(e={});var r=this;this.options=Object(o.a)(Object(o.a)({},yt),t),this.gs=e,this.names=new Map(n),this.server=!!t.isServer,!this.server&&p&&vt&&(vt=!1,function(t){for(var e=document.querySelectorAll(lt),n=0,o=e.length;n<o;n++){var r=e[n];r&&r.getAttribute(u)!==c&&(dt(t,r),r.parentNode&&r.parentNode.removeChild(r))}}(this)),tt(this,(function(){return function(t){for(var e=t.getTag(),n=e.length,o="",r=function(n){var r=function(t){return rt.get(t)}(n);if(void 0===r)return"continue";var i=t.names.get(r),a=e.getGroup(n);if(void 0===i||0===a.length)return"continue";var s="".concat(u,".g").concat(n,'[id="').concat(r,'"]'),l="";void 0!==i&&i.forEach((function(t){t.length>0&&(l+="".concat(t,","))})),o+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(h)},i=0;i<n;i++)r(i);return o}(r)}))}return t.registerId=function(t){return at(t)},t.prototype.reconstructWithOptions=function(e,n){return void 0===n&&(n=!0),new t(Object(o.a)(Object(o.a)({},this.options),e),this.gs,n&&this.names||void 0)},t.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(t=function(t){var e=t.useCSSOMInjection,n=t.target;return t.isServer?new mt(n):e?new pt(n):new gt(n)}(this.options),new nt(t)));var t},t.prototype.hasNameForId=function(t,e){return this.names.has(t)&&this.names.get(t).has(e)},t.prototype.registerName=function(t,e){if(at(t),this.names.has(t))this.names.get(t).add(e);else{var n=new Set;n.add(e),this.names.set(t,n)}},t.prototype.insertRules=function(t,e,n){this.registerName(t,e),this.getTag().insertRules(at(t),n)},t.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},t.prototype.clearRules=function(t){this.getTag().clearGroup(at(t)),this.clearNames(t)},t.prototype.clearTag=function(){this.tag=void 0},t}(),At=/&/g,St=/^\s*\/\/.*$/gm;function Ct(t,e){return t.map((function(t){return"rule"===t.type&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map((function(t){return"".concat(e," ").concat(t)}))),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=Ct(t.children,e)),t}))}function _t(t){var e,n,o,r=void 0===t?y:t,i=r.options,a=void 0===i?y:i,l=r.plugins,u=void 0===l?v:l,c=function(t,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(e):t},d=u.slice();d.push((function(t){t.type===s.a&&t.value.includes("&")&&(t.props[0]=t.props[0].replace(At,n).replace(o,c))})),a.prefix&&d.push(s.d),d.push(s.g);var f=function(t,r,i,l){void 0===r&&(r=""),void 0===i&&(i=""),void 0===l&&(l="&"),e=l,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var u=t.replace(St,""),c=s.b(i||r?"".concat(i," ").concat(r," { ").concat(u," }"):u);a.namespace&&(c=Ct(c,a.namespace));var f=[];return s.f(c,s.c(d.concat(s.e((function(t){return f.push(t)}))))),f};return f.hash=u.length?u.reduce((function(t,e){return e.name||et(15),L(t,e.name)}),5381).toString():"",f}var wt=new bt,xt=_t(),Ot=r.default.createContext({shouldForwardProp:void 0,styleSheet:wt,stylis:xt}),Et=Ot.Consumer,Lt=r.default.createContext(void 0);function Pt(){return Object(r.useContext)(Ot)}function Bt(t){var e=Object(r.useState)(t.stylisPlugins),n=e[0],o=e[1],i=Pt().styleSheet,s=Object(r.useMemo)((function(){var e=i;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target,i]),l=Object(r.useMemo)((function(){return _t({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:n})}),[t.enableVendorPrefixes,t.namespace,n]);Object(r.useEffect)((function(){a()(n,t.stylisPlugins)||o(t.stylisPlugins)}),[t.stylisPlugins]);var u=Object(r.useMemo)((function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:s,stylis:l}}),[t.shouldForwardProp,s,l]);return r.default.createElement(Ot.Provider,{value:u},r.default.createElement(Lt.Provider,{value:l},t.children))}var Tt=function(){function t(t,e){var n=this;this.inject=function(t,e){void 0===e&&(e=xt);var o=n.name+e.hash;t.hasNameForId(n.id,o)||t.insertRules(n.id,o,e(n.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=e,tt(this,(function(){throw et(12,String(n.name))}))}return t.prototype.getName=function(t){return void 0===t&&(t=xt),this.name+t.hash},t}(),kt=function(t){return t>="A"&&t<="Z"};function Mt(t){for(var e="",n=0;n<t.length;n++){var o=t[n];if(1===n&&"-"===o&&"-"===t[0])return t;kt(o)?e+="-"+o.toLowerCase():e+=o}return e.startsWith("ms-")?"-"+e:e}var Dt=function(t){return null==t||!1===t||""===t},jt=function(t){var e,n,r=[];for(var i in t){var a=t[i];t.hasOwnProperty(i)&&!Dt(a)&&(Array.isArray(a)&&a.isCss||Q(a)?r.push("".concat(Mt(i),":"),a,";"):K(a)?r.push.apply(r,Object(o.e)(Object(o.e)(["".concat(i," {")],jt(a),!1),["}"],!1)):r.push("".concat(Mt(i),": ").concat((e=i,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||e in l.a||e.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Wt(t,e,n,o){return Dt(t)?[]:$(t)?[".".concat(t.styledComponentId)]:Q(t)?!Q(r=t)||r.prototype&&r.prototype.isReactComponent||!e?[t]:Wt(t(e),e,n,o):t instanceof Tt?n?(t.inject(n,o),[t.getName(o)]):[t]:K(t)?jt(t):Array.isArray(t)?Array.prototype.concat.apply(v,t.map((function(t){return Wt(t,e,n,o)}))):[t.toString()];var r}function It(t){for(var e=0;e<t.length;e+=1){var n=t[e];if(Q(n)&&!$(n))return!1}return!0}var Rt=P(f),Ft=function(){function t(t,e,n){this.rules=t,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&It(t),this.componentId=e,this.baseHash=L(Rt,e),this.baseStyle=n,bt.registerId(e)}return t.prototype.generateAndInjectStyles=function(t,e,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,e,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&e.hasNameForId(this.componentId,this.staticRulesId))o=Z(o,this.staticRulesId);else{var r=q(Wt(this.rules,t,e,n)),i=O(L(this.baseHash,r)>>>0);if(!e.hasNameForId(this.componentId,i)){var a=n(r,".".concat(i),void 0,this.componentId);e.insertRules(this.componentId,i,a)}o=Z(o,i),this.staticRulesId=i}else{for(var s=L(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=q(Wt(c,t,e,n));s=L(s,d+u),l+=d}}if(l){var f=O(s>>>0);e.hasNameForId(this.componentId,f)||e.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),o=Z(o,f)}}return o},t}(),Vt=r.default.createContext(void 0),zt=Vt.Consumer;function Nt(){var t=Object(r.useContext)(Vt);if(!t)throw et(18);return t}function Ut(t){var e=r.default.useContext(Vt),n=Object(r.useMemo)((function(){return function(t,e){if(!t)throw et(14);if(Q(t))return t(e);if(Array.isArray(t)||"object"!=typeof t)throw et(8);return e?Object(o.a)(Object(o.a)({},e),t):t}(t.theme,e)}),[t.theme,e]);return t.children?r.default.createElement(Vt.Provider,{value:n},t.children):null}var Ht={};new Set;function Gt(t,e,n){var i=$(t),a=t,s=!k(t),l=e.attrs,u=void 0===l?v:l,c=e.componentId,d=void 0===c?function(t,e){var n="string"!=typeof t?"sc":_(t);Ht[n]=(Ht[n]||0)+1;var o="".concat(n,"-").concat(B(f+n+Ht[n]));return e?"".concat(e,"-").concat(o):o}(e.displayName,e.parentComponentId):c,h=e.displayName,p=void 0===h?function(t){return k(t)?"styled.".concat(t):"Styled(".concat(T(t),")")}(t):h,g=e.displayName&&e.componentId?"".concat(_(e.displayName),"-").concat(e.componentId):e.componentId||d,m=i&&a.attrs?a.attrs.concat(u).filter(Boolean):u,S=e.shouldForwardProp;if(i&&a.shouldForwardProp){var C=a.shouldForwardProp;if(e.shouldForwardProp){var w=e.shouldForwardProp;S=function(t,e){return C(t,e)&&w(t,e)}}else S=C}var x=new Ft(n,g,i?a.componentStyle:void 0);function O(t,e){return function(t,e,n){var i=t.attrs,a=t.componentStyle,s=t.defaultProps,l=t.foldedComponentIds,u=t.styledComponentId,c=t.target,d=r.default.useContext(Vt),f=Pt(),h=t.shouldForwardProp||f.shouldForwardProp,p=b(e,d,s)||y,g=function(t,e,n){for(var r,i=Object(o.a)(Object(o.a)({},e),{className:void 0,theme:n}),a=0;a<t.length;a+=1){var s=Q(r=t[a])?r(i):r;for(var l in s)i[l]="className"===l?Z(i[l],s[l]):"style"===l?Object(o.a)(Object(o.a)({},i[l]),s[l]):s[l]}return e.className&&(i.className=Z(i.className,e.className)),i}(i,e,p),m=g.as||c,v={};for(var S in g)void 0===g[S]||"$"===S[0]||"as"===S||"theme"===S&&g.theme===p||("forwardedAs"===S?v.as=g.forwardedAs:h&&!h(S,m)||(v[S]=g[S]));var C=function(t,e){var n=Pt();return t.generateAndInjectStyles(e,n.styleSheet,n.stylis)}(a,g),_=Z(l,u);return C&&(_+=" "+C),g.className&&(_+=" "+g.className),v[k(m)&&!A.has(m)?"class":"className"]=_,v.ref=n,Object(r.createElement)(m,v)}(E,t,e)}O.displayName=p;var E=r.default.forwardRef(O);return E.attrs=m,E.componentStyle=x,E.displayName=p,E.shouldForwardProp=S,E.foldedComponentIds=i?Z(a.foldedComponentIds,a.styledComponentId):"",E.styledComponentId=g,E.target=i?a.target:t,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var o=0,r=e;o<r.length;o++)J(t,r[o],!0);return t}({},a.defaultProps,t):t}}),tt(E,(function(){return".".concat(E.styledComponentId)})),s&&X(E,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function Yt(t,e){for(var n=[t[0]],o=0,r=e.length;o<r;o+=1)n.push(e[o],t[o+1]);return n}var Xt=function(t){return Object.assign(t,{isCss:!0})};function Qt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Q(t)||K(t))return Xt(Wt(Yt(v,Object(o.e)([t],e,!0))));var r=t;return 0===e.length&&1===r.length&&"string"==typeof r[0]?Wt(r):Xt(Wt(Yt(r,e)))}function $t(t,e,n){if(void 0===n&&(n=y),!e)throw et(1,e);var r=function(r){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return t(e,n,Qt.apply(void 0,Object(o.e)([r],i,!1)))};return r.attrs=function(r){return $t(t,e,Object(o.a)(Object(o.a)({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return $t(t,e,Object(o.a)(Object(o.a)({},n),r))},r}var Zt=function(t){return $t(Gt,t)},qt=Zt;A.forEach((function(t){qt[t]=Zt(t)}));var Kt=function(){function t(t,e){this.rules=t,this.componentId=e,this.isStatic=It(t),bt.registerId(this.componentId+1)}return t.prototype.createStyles=function(t,e,n,o){var r=o(q(Wt(this.rules,e,n,o)),""),i=this.componentId+t;n.insertRules(i,i,r)},t.prototype.removeStyles=function(t,e){e.clearRules(this.componentId+t)},t.prototype.renderStyles=function(t,e,n,o){t>2&&bt.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,e,n,o)},t}();function Jt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=Qt.apply(void 0,Object(o.e)([t],e,!1)),a="sc-global-".concat(B(JSON.stringify(i))),s=new Kt(i,a),l=function(t){var e=Pt(),n=r.default.useContext(Vt),o=r.default.useRef(e.styleSheet.allocateGSInstance(a)).current;return e.styleSheet.server&&u(o,t,e.styleSheet,n,e.stylis),r.default.useLayoutEffect((function(){if(!e.styleSheet.server)return u(o,t,e.styleSheet,n,e.stylis),function(){return s.removeStyles(o,e.styleSheet)}}),[o,t,e.styleSheet,n,e.stylis]),null};function u(t,e,n,r,i){if(s.isStatic)s.renderStyles(t,m,n,i);else{var a=Object(o.a)(Object(o.a)({},e),{theme:b(e,r,l.defaultProps)});s.renderStyles(t,a,n,i)}}return r.default.memo(l)}function te(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=q(Qt.apply(void 0,Object(o.e)([t],e,!1))),i=B(r);return new Tt(i,r)}function ee(t){var e=r.default.forwardRef((function(e,n){var i=b(e,r.default.useContext(Vt),t.defaultProps);return r.default.createElement(t,Object(o.a)({},e,{theme:i,ref:n}))}));return e.displayName="WithTheme(".concat(T(t),")"),X(e,t)}var ne=function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString(),n=ft(),o=q([n&&'nonce="'.concat(n,'"'),"".concat(u,'="true"'),"".concat(d,'="').concat(f,'"')].filter(Boolean)," ");return"<style ".concat(o,">").concat(e,"</style>")},this.getStyleTags=function(){if(t.sealed)throw et(2);return t._emitSheetCSS()},this.getStyleElement=function(){var e;if(t.sealed)throw et(2);var n=((e={})[u]="",e[d]=f,e.dangerouslySetInnerHTML={__html:t.instance.toString()},e),i=ft();return i&&(n.nonce=i),[r.default.createElement("style",Object(o.a)({},n,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new bt({isServer:!0}),this.sealed=!1}return t.prototype.collectStyles=function(t){if(this.sealed)throw et(2);return r.default.createElement(Bt,{sheet:this.instance},t)},t.prototype.interleaveWithNodeStream=function(t){throw et(3)},t}(),oe={StyleSheet:bt,mainSheet:wt};"__sc-".concat(u,"__")}.call(this,n(54))},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(n(1)),a=r(n(121)),s=n(13),l=n(21),u=r(n(24));class c extends i.default.Component{constructor(t){super(t),this.videoLoaded=!1,this.reloadCanvas=!0,this.swapCameraEnabled=!0,this.activeCamera=void 0,this.save=!1,this.onStreamChanged=t=>{this.video.srcObject=t,this.updateCameraInfo(t),this.video.addEventListener("resize",(t=>{this.reloadCanvas=!0}),!1),this.video.addEventListener("loadeddata",(t=>{this.videoLoaded=!0,this.didLoadVideo&&this.didLoadVideo()}),!1)},this.state={facingModeBack:"environment"===this.props.videoConstraints.facingMode,mirrored:this.props.mirrored,deviceId:void 0}}videoSize(){const{clientVideoWidth:t,clientVideoHeight:e}=this.calculateClientVideoConstraints();return new s.Size(t,e)}saveExtractedData(){this.save=!0}zoom(){var t;return null!==(t=this.props.zoom)&&void 0!==t?t:1}imageCapture(){if(this.capture)return this.capture;const t=this.videoStream.getVideoTrack();return this.capture=new ImageCapture(t),this.capture}createImageData(t=0,e){return o(this,void 0,void 0,(function*(){if(!this.video||!this.videoLoaded)return;const n=this.getCanvasRenderingContext();if(!n)return;if(e){const t=yield this.imageCapture().takePhoto(),e=yield createImageBitmap(t);u.default.debug("Bitmap size: "+e.width*e.height),n.canvas.width=e.width,n.canvas.height=e.height,n.drawImage(e,0,0,e.width,e.height);const o=this.windowSize(),r=e.height/(o.height+o.y),i=o.width*r,a=o.height*r,s=e.width/2-i/2,c=o.y*r,d=new l.Frame(s,c,i,a);u.default.debug("Frame size: "+d.x+"-"+d.y+"-"+d.width+"-"+d.height);return n.getImageData(d.x,d.y,d.width,d.height)}let{videoWidth:o,videoHeight:r}=this.video,{clientVideoWidth:i,clientVideoHeight:a,coef:s}=this.calculateClientVideoConstraints();if(0===s)return;const c=this.finderFrame||new l.Frame(0,0,i,a),d=this.zoom(),f=(o-i/d)/2,h=(r-a/d)/2,p=c.x/s+f,g=c.y/s+h,m=this.finderFrame?s:d,v=c.width/m,y=c.height/m,b=this.calculateFrameSize(t,v,y);n.canvas.width=Math.round(b.width),n.canvas.height=Math.round(b.height),n.drawImage(this.video,p,g,v,y,0,0,n.canvas.width,n.canvas.height);const A=n.getImageData(0,0,this.canvas.width,this.canvas.height);return n.clearRect(0,0,this.canvas.width,this.canvas.height),A}))}drawVideoOnCanvasAndExtractFrameFromIt(t){return o(this,void 0,void 0,(function*(){this.getCanvasRenderingContext(),this.video}))}windowSize(){var t;const e=this.props.configuration,n=null!==(t=e.container)&&void 0!==t?t:document.getElementById(e.containerId);if(!n)throw new Error("Container DOM element is required to calculate window size and snap image.");return l.Frame.fromDOMRect(n.getBoundingClientRect())}calculateClientVideoConstraints(){let{videoWidth:t,videoHeight:e}=this.video,n=this.video.getBoundingClientRect(),o=t,r=e,i=1;return n.width/n.height<=t/e?(i=n.height/e,i>0&&(o=n.width/i)):(i=n.width/t,i>0&&(r=n.height/i)),{clientVideoWidth:o,clientVideoHeight:r,coef:i}}calculateFrameSize(t,e,n){let o=e,r=n;if(t>0&&0!=e&&0!=n){const i=e/n;e>n?(o=e>t?t:e,r=o/i):(r=n>t?t:n,o=r*i)}return new s.Size(o,r)}getCanvasRenderingContext(){if(!this.video)return null;if(0===this.video.videoWidth)return null;this.canvas&&!this.reloadCanvas||(this.canvas&&this.canvas.remove(),this.canvas=document.createElement("canvas"),this.canvas.className="scanbot-sdk-canvas-element",this.canvas.width=this.videoSize().width,this.canvas.height=this.videoSize().height,this.reloadCanvas=!1);const t=this.canvas.getContext("2d",{willReadFrequently:!0});return t.imageSmoothingEnabled=!1,t}releaseCanvas(){if(this.canvas){this.canvas.width=1,this.canvas.height=1;const t=this.canvas.getContext("2d");t&&t.clearRect(0,0,1,1),this.canvas=null}}componentWillUnmount(){this.releaseCanvas(),this.video=null,this.videoStream=null}style(){var t;const e={display:"block",width:100*this.zoom()+"%",height:100*this.zoom()+"%",left:`${this.zoomMargin()}%`,top:`${this.zoomMargin()}%`,position:"relative",objectFit:"cover",backgroundColor:null===(t=this.props.configuration)||void 0===t?void 0:t.backgroundColor};return this.state.mirrored&&(e.transform="scaleX(-1)"),e}zoomMargin(){const t=this.zoom();return 1===t?0:(1-t)/2*100}render(){const{videoConstraints:t,onReady:e,onError:n}=this.props;return i.default.createElement(a.default,{videoConstraints:t,preferredCamera:this.state.deviceId||this.props.preferredCamera,onReady:e,onStreamChanged:this.onStreamChanged,onError:n,ref:t=>{this.videoStream=t}},i.default.createElement("video",{autoPlay:!0,muted:!0,playsInline:!0,className:"scanbot-camera-view",ref:t=>{this.video=t},style:this.style()}))}setDirection(t){this.props.videoConstraints.facingMode={ideal:t},this.setState({facingModeBack:"environment"===t,mirrored:"user"===t},(()=>o(this,void 0,void 0,(function*(){yield this.videoStream.refreshStream(),this.swapCameraEnabled=!0}))))}swapCameraFacing(t){if(this.swapCameraEnabled){this.swapCameraEnabled=!1;const e=!this.state.facingModeBack,n=e?"environment":"user";this.props.videoConstraints.facingMode=!0===t?{exact:n}:{ideal:n},this.setState({facingModeBack:e,mirrored:!e},(()=>o(this,void 0,void 0,(function*(){yield this.videoStream.refreshStream(),this.swapCameraEnabled=!0}))))}}switchCamera(t,e){return o(this,void 0,void 0,(function*(){this.swapCameraEnabled&&(this.swapCameraEnabled=!1,this.props.videoConstraints.facingMode=void 0,this.setState({facingModeBack:void 0,mirrored:null!=e?e:this.state.mirrored,deviceId:t},(()=>o(this,void 0,void 0,(function*(){yield this.videoStream.refreshStream(),this.swapCameraEnabled=!0})))))}))}updateCameraInfo(t){const e=t.getTracks().filter((t=>"video"===t.kind));if(e){const t=e.map((t=>{var e;const n=t.label,o=t.getSettings().deviceId,r=t.getSettings().facingMode;let i="unknown";"user"===r?i="front":"environment"===r&&(i="back");return{deviceId:o,label:n,facingMode:i,supportsTorchControl:(null===(e=a.default.getMediaTrackCapabilities(t))||void 0===e?void 0:e.torch)||!1}}));this.activeCamera=t[0]}}getActiveCameraInfo(){return this.activeCamera}setTorchState(t){if(this.activeCamera&&this.activeCamera.supportsTorchControl){return this.videoStream.getVideoTrack().applyConstraints({advanced:[{torch:t}]})}return Promise.reject("Torch is not supported for current camera.")}}e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class o{}o.ScanbotPrimary="#c8193c",o.LightGray="#F5F5F5",o.Gray="#808080",o.DarkGray="#333333",o.Orange="#FF5533",o.White="#FFFFFF",o.TransparentGreen="rgba(0, 255, 0, 0.5)",o.TransparentGray="rgba(50, 50, 50, 0.5)",o.TransparentBlack="rgba(0, 0, 0, 0.3)",o.SBNegative="#FF3737",e.default=o},function(t,e,n){var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var t=[],e=0;e<arguments.length;e++){var o=arguments[e];if(o){var i=typeof o;if("string"===i||"number"===i)t.push(o);else if(Array.isArray(o)){if(o.length){var a=r.apply(null,o);a&&t.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var s in o)n.call(o,s)&&o[s]&&t.push(s);else t.push(o.toString())}}return t.join(" ")}t.exports?(r.default=r,t.exports=r):void 0===(o=function(){return r}.apply(e,[]))||(t.exports=o)}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewUtils=void 0;const o=n(136),r=n(13),i=n(5);class a{static convertLinesToViewportLines(t,e){if(e&&t)return e.map((e=>new o.MagneticLine(new i.Point(e.p1.x*t.width,e.p1.y*t.height),new i.Point(e.p2.x*t.width,e.p2.y*t.height))))}static convertToViewportPointsFromParentSize(t,e){return e?r.Size.isEmpty(t)?void 0:e.map((e=>i.Point.scaleUpTo(e,t))):r.Size.toPolygon(t)}static calculateScale(t){let e,n=0,o=0;return 1>t.width/t.height?(e=t.height/1,n=(1-t.width/e)/2):(e=t.width/1,o=(1-t.height/e)/2),{x:n,y:o,containerScale:e}}static findScale(t,e){let n,o=0,r=0;return e.ratio(!0)>t.ratio(!0)?(n=t.width/e.width,r=(e.height-t.height/n)/2):(n=t.height/e.height,o=(e.width-t.width/n)/2),{x:o,y:r,scale:n}}static preventDefaultCallback(t){t.preventDefault()}static disableScreenMovement(){document.addEventListener("touchmove",a.preventDefaultCallback,{passive:!1}),document.body.scrollTop=document.documentElement.scrollTop=0,document.documentElement.style.overflow="hidden"}static enableScreenMovement(){document.removeEventListener("touchmove",a.preventDefaultCallback),document.documentElement.style.overflow="auto"}static findContainerOrThrow(t){var e;const n=null!==(e=t.container)&&void 0!==e?e:document.getElementById(t.containerId);if(!n)throw Error("Unable to initialize scanner: Cannot find container element either from 'container' property or with the containerId property provided.");return n}}e.ViewUtils=a},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentLineQuad=void 0;const r=o(n(1));class i extends r.default.Component{constructor(){super(...arguments),this.LINE_COUNT=4}render(){return r.default.createElement("svg",{style:{width:"100%",height:"100%",position:"absolute",overflow:"visible",fill:this.props.polygonStyle.fill}},this.fill())}fill(){if(!this.props.points||0===this.props.points.length)return null;const t=[];for(let e=0;e<this.LINE_COUNT;e++){const n=this.props.points[e],o=this.props.points[(e+1)%this.LINE_COUNT];t.push(r.default.createElement("line",{key:e,style:this.props.polygonStyle,className:this.props.polygonClasses,x1:n.x,y1:n.y,x2:o.x,y2:o.y}))}return t}setFrame(){this.forceUpdate()}}e.DocumentLineQuad=i,i.CLASSNAME="scanbot-document-outline"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MathUtils=void 0;const o=n(5);e.MathUtils=class{static isConvex(t){if(t.length<4)return!0;let e=!1,n=t.length;for(let o=0;o<n;o++){const r=t[(o+2)%n].x-t[(o+1)%n].x,i=t[(o+2)%n].y-t[(o+1)%n].y,a=t[o].x-t[(o+1)%n].x,s=r*(t[o].y-t[(o+1)%n].y)-i*a;if(0==o)e=s>0;else if(e!=s>0)return!1}return!0}static distanceBetweenPoints(t,e){return Math.pow(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2),.5)}static intersection(t,e){const n=t[0],r=o.Point.subtract(t[1],n),i=e[0],a=o.Point.subtract(e[1],i);if(0===o.Point.cross(r,a))return;const s=o.Point.cross(o.Point.subtract(i,n),r)/o.Point.cross(r,a);return o.Point.add(i,o.Point.multiply(a,s))}}},function(t,e,n){"use strict";var o,r=function(){return"undefined"==typeof o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var t={};return function(e){if("undefined"==typeof t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},o=[],r=0;r<t.length;r++){var i=t[r],l=e.base?i[0]+e.base:i[0],u=n[l]||0,c="".concat(l," ").concat(u);n[l]=u+1;var d=s(c),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:c,updater:m(f,e),references:1}),o.push(c)}return o}function u(t){var e=document.createElement("style"),o=t.attributes||{};if("undefined"==typeof o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(t){e.setAttribute(t,o[t])})),"function"==typeof t.insert)t.insert(e);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var c,d=(c=[],function(t,e){return c[t]=e,c.filter(Boolean).join("\n")});function f(t,e,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(t.styleSheet)t.styleSheet.cssText=d(e,r);else{var i=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function h(t,e,n){var o=n.css,r=n.media,i=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}var p=null,g=0;function m(t,e){var n,o,r;if(e.singleton){var i=g++;n=p||(p=u(e)),o=f.bind(null,n,i,!1),r=f.bind(null,n,i,!0)}else n=u(e),o=h.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var o=0;o<n.length;o++){var r=s(n[o]);a[r].references--}for(var i=l(t,e),u=0;u<n.length;u++){var c=s(n[u]);0===a[c].references&&(a[c].updater(),a.splice(c,1))}n=i}}}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,o){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(o)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);o&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeResult=void 0;const o=n(12),r=n(59);class i{constructor(t,e){this.barcodes=t,this.imageData=e}static fromWorker(t,e){const n=[];t&&t.forEach((t=>{n.push(r.Barcode.fromWorker(t))}));const a=o.ImageUtils.convertImageDataWrapperToImageData(e);return new i(n,a)}isEmpty(){return 0===this.barcodes.length}}e.BarcodeResult=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clampHandlePosition=e.clamp=void 0;const o=n(5);function r(t,e,n){return Math.min(Math.max(t,e),n)}e.clamp=r,e.clampHandlePosition=function(t,e,n){return new o.Point(r(t.x,-e/2,n.width-e/2),r(t.y,-e/2,n.height-e/2))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SingleScanningMode=void 0;const o=n(10),r=n(10),i=n(3),a=n(10),s=n(18),l=n(10),u=n(18),c=n(3),d=n(6),f=n(3),h=n(3),p=n(3);class g extends d.PartiallyConstructible{constructor(t={}){super(),this._type="SingleScanningMode",this.confirmationSheetEnabled=!1,this.barcodeImageVisible=!0,this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.barcodeTitle=new p.StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.barcodeSubtitle=new p.StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.submitButton=new c.ButtonConfiguration({visible:!0,text:"?sheetSubmitButton",background:new i.BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new f.ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary"})}),this.cancelButton=new c.ButtonConfiguration({visible:!0,text:"?singleModeConfirmationCancelButton",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new f.ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary"})}),this.barcodeInfoMapping=new s.BarcodeInfoMapping({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",loadingMessage:new p.StyledText({text:"?barcodeInfoMappingLoadingMessage",color:"?sbColorPrimary"}),errorState:new u.BarcodeItemErrorState({title:new p.StyledText({text:"?barcodeInfoMappingErrorStateTitle",color:"?sbColorOnSurface"}),subtitle:new p.StyledText({text:"?barcodeInfoMappingErrorStateSubtitle",color:"?sbColorOnSurfaceVariant"}),retryButton:new c.ButtonConfiguration({visible:!0,text:"?barcodeInfoMappingErrorStateRetryButton",background:new i.BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new f.ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary"})}),cancelButton:new c.ButtonConfiguration({text:"?barcodeInfoMappingErrorStateCancelButton",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new f.ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary"})})})}),this.arOverlay=new o.ArOverlayGeneralConfiguration({visible:!1,counterBadge:new a.BadgeStyle({visible:!0,background:new i.BackgroundStyle({strokeColor:"#000000FF",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),automaticSelectionEnabled:!1,barcodeItemInfoPosition:"BELOW",polygon:new r.ArOverlayPolygonConfiguration({visible:!0,deselected:new h.PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),selected:new h.PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),barcodeItemConfiguration:new l.BarcodeItemConfiguration({imageVisible:!0,titleSelected:new p.StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new p.StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new p.StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new p.StyledText({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),backgroundSelected:new h.PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new h.PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})})}),void 0!==t.confirmationSheetEnabled&&(this.confirmationSheetEnabled=t.confirmationSheetEnabled),void 0!==t.barcodeImageVisible&&(this.barcodeImageVisible=t.barcodeImageVisible),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.barcodeTitle&&(this.barcodeTitle=new p.StyledText(t.barcodeTitle)),void 0!==t.barcodeSubtitle&&(this.barcodeSubtitle=new p.StyledText(t.barcodeSubtitle)),void 0!==t.submitButton&&(this.submitButton=new c.ButtonConfiguration(t.submitButton)),void 0!==t.cancelButton&&(this.cancelButton=new c.ButtonConfiguration(t.cancelButton)),void 0!==t.barcodeInfoMapping&&(this.barcodeInfoMapping=new s.BarcodeInfoMapping(t.barcodeInfoMapping)),void 0!==t.arOverlay&&(this.arOverlay=new o.ArOverlayGeneralConfiguration(t.arOverlay))}}e.SingleScanningMode=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TopBarConfiguration=void 0;const o=n(3),r=n(3),i=n(6),a=n(3),s=n(3);class l extends i.PartiallyConstructible{constructor(t={}){super(),this.title=new s.StyledText({visible:!1,text:"Scan Item",color:"?sbColorOnPrimary"}),this.mode="SOLID",this.backgroundColor="?sbColorPrimary",this.cancelButton=new r.ButtonConfiguration({text:"Cancel",background:new o.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new a.ForegroundStyle({color:"?sbColorOnPrimary"})}),void 0!==t.title&&(this.title=new s.StyledText(t.title)),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.cancelButton&&(this.cancelButton=new r.ButtonConfiguration(t.cancelButton))}}e.TopBarConfiguration=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FinderStrokedStyle=e.FinderCorneredStyle=e.FinderStyle=e.ViewFinderConfiguration=void 0;const o=n(3),r=n(6);class i extends r.PartiallyConstructible{constructor(t={}){super(),this.visible=!0,this.style=new s({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),this.overlayColor="?sbColorSurfaceLow",this.aspectRatio=new o.AspectRatio({width:1,height:1}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.style&&(this.style=a.From(t.style)),void 0!==t.overlayColor&&(this.overlayColor=t.overlayColor),void 0!==t.aspectRatio&&(this.aspectRatio=new o.AspectRatio(t.aspectRatio))}}var a;e.ViewFinderConfiguration=i,function(t){t.From=function(t){const e=t._type;switch(e){case"FinderCorneredStyle":return new s(t);case"FinderStrokedStyle":return new l(t);default:throw`Unknown child class name: ${e}`}}}(a||(e.FinderStyle=a={}));class s extends r.PartiallyConstructible{constructor(t={}){super(),this._type="FinderCorneredStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth),void 0!==t.cornerRadius&&(this.cornerRadius=t.cornerRadius)}}e.FinderCorneredStyle=s;class l extends r.PartiallyConstructible{constructor(t={}){super(),this._type="FinderStrokedStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth),void 0!==t.cornerRadius&&(this.cornerRadius=t.cornerRadius)}}e.FinderStrokedStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicViewportHeightCssProperty=e.dvhCssValue=void 0;const o=n(1);e.dvhCssValue="var(--1-sb-dvh, 1vh)",e.DynamicViewportHeightCssProperty=function(){const t=(0,o.useMemo)((()=>{var t,e;return null===(e=null===(t=null===window||void 0===window?void 0:window.CSS)||void 0===t?void 0:t.supports)||void 0===e?void 0:e.call(t,"height: 100dvh")}),[])&&!1,e=()=>{var e=t?"1dvh":window.innerHeight/100+"px";document.documentElement.style.setProperty("--1-sb-dvh",e)};return(0,o.useEffect)((()=>{if(e(),!t)return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}})),null}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.StyledButton=void 0;const r=n(2),i=n(9),a=n(70),s=o(n(1)),l=n(4);e.StyledButton=function(t){var e;return t.visible?s.default.createElement(r.Button,{variant:"text",onClick:t.onClick,sx:Object.assign(Object.assign({flex:1},(0,i.styledTextStyle)(t.foreground)),{textTransform:"none",fontSize:18,"&:hover, &:focus, &:active, &":{outline:"none",backgroundColor:"transparent"},px:0}),disableRipple:!0},s.default.createElement(a.StyledBox,{styleConfig:Object.assign(Object.assign({},t.background),{cornerRadius:4}),sx:{borderStyle:"solid",px:"8px"}},null!==(e=t.icon)&&void 0!==e?e:null,l.SBTheme.getLocalizedBarcodeText(t.text))):null}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeInfo=void 0;const r=n(2),i=o(n(1)),a=o(n(2)),s=n(9),l=n(4),u=o(n(2)),c=o(n(2));function d(t){return{textOverflow:"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":`${t}`,overflow:"hidden",whiteSpace:t>1?"normal":"nowrap",display:t>1?"-webkit-box":"block"}}e.BarcodeInfo=function(t){var e,n;const o=(null===(e=t.barcodeMappedData)||void 0===e?void 0:e.state)||"LOADING",f=(null===(n=t.barcodeMappedData)||void 0===n?void 0:n.value)||{title:"",subtitle:"",barcodeImage:""},h=!t||"LOADED"!==o,p=t.imageSize,g=t.barcodeTitle.visible||t.barcodeSubtitle.visible||t.counterForm,m=t.counterForm&&{"&:hover, &:focus, &:active, &":{borderColor:l.SBTheme.getColorValue(t.counterForm.manualCountOutlineColor),backgroundColor:"transparent"}};return i.default.createElement(r.Box,{sx:{display:"flex"},"data-sb-barcode-info":"1"},t.barcodeImageVisible&&i.default.createElement(r.Box,{sx:{pr:g?"16px":0,display:"flex",alignItems:"center",justifyContent:"center"}},h?i.default.createElement(r.Skeleton,{variant:"rounded",width:p,height:p,style:{borderRadius:8}}):i.default.createElement("img",{src:f.barcodeImage,alt:f.title,style:{width:p,height:p,borderRadius:8}})),g&&i.default.createElement(r.Box,{sx:{flex:1,display:"flex",flexDirection:"column",verticalAlign:"middle",justifyContent:"center",m:0,p:0,minWidth:0}},i.default.createElement(r.Box,{display:h?"block":"flex",sx:{alignItems:"center"}},i.default.createElement(r.Typography,{fontSize:16,fontWeight:"bold",sx:Object.assign(Object.assign({},d(t.maxNumberOfTitleLines)),(0,s.styledTextStyle)(t.barcodeTitle))},h?i.default.createElement(r.Skeleton,{variant:"text"}):f.title),t.displayRightArrow&&!h&&i.default.createElement(a.default,{sx:{fontSize:16,fontWeight:"bold",color:l.SBTheme.getColorValue(t.barcodeTitle.color)}})),i.default.createElement(r.Typography,{fontSize:14,fontWeight:400,sx:Object.assign(Object.assign({},d(t.maxNumberOfSubtitleLines)),(0,s.styledTextStyle)(t.barcodeSubtitle))},h?i.default.createElement(r.Skeleton,{variant:"text"}):f.subtitle),t.counterForm&&i.default.createElement(r.ButtonGroup,{variant:"outlined"},i.default.createElement(r.Button,{sx:m,onClick:()=>t.counterForm.setCounter(t.counterForm.counter-1),disableRipple:!0},i.default.createElement(u.default,{sx:{color:l.SBTheme.getColorValue(t.counterForm.manualCountChangeColor)}})),i.default.createElement(r.Button,{sx:Object.assign(Object.assign({},m),{color:l.SBTheme.getColorValue(t.counterForm.manualCountChangeColor),fontWeight:"bold",fontSize:16}),onClick:t.counterForm.onNumberClick,disableRipple:!0},t.counterForm.counter),i.default.createElement(r.Button,{sx:m,onClick:()=>t.counterForm.setCounter(t.counterForm.counter+1),disableRipple:!0},i.default.createElement(c.default,{sx:{color:l.SBTheme.getColorValue(t.counterForm.manualCountChangeColor)}})))))}},function(t,e,n){"use strict";var o=this&&this.__rest||function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.StyledDialog=void 0;const i=n(2),a=n(4),s=r(n(1));e.StyledDialog=function(t){var e,{modalOverlayColor:n}=t,r=o(t,["modalOverlayColor"]);const l={backdrop:{style:{backgroundColor:a.SBTheme.getColorValue(n)}}},u=Object.assign(Object.assign({},r.PaperProps),{sx:Object.assign(Object.assign({},null===(e=r.PaperProps)||void 0===e?void 0:e.sx),{maxWidth:400})});return s.default.createElement(i.Dialog,Object.assign({},r,{componentsProps:l,PaperProps:u}))}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ACTION_BUTTON_PADDING=e.ACTION_BUTTON_HEIGHT=e.Props=void 0;const r=o(n(1)),i=n(2),a=n(4),s=n(3);class l extends s.RoundButton{}e.Props=l,e.ACTION_BUTTON_HEIGHT=48,e.ACTION_BUTTON_PADDING=16,e.default=function(t){if(!1===t.visible)return null;const n=e.ACTION_BUTTON_HEIGHT,o={backgroundColor:t.active?a.SBTheme.getColorValue(t.activeBackgroundColor):a.SBTheme.getColorValue(t.backgroundColor),color:t.active?a.SBTheme.getColorValue(t.activeForegroundColor):a.SBTheme.getColorValue(t.foregroundColor)};return r.default.createElement(i.IconButton,{sx:Object.assign(Object.assign({},o),{"&:hover, &:focus":Object.assign({outline:"none"},o),width:n,height:n}),onClick:t.onClick},t.text&&r.default.createElement("span",{style:{fontSize:15}},a.SBTheme.getLocalizedBarcodeText(t.text)),t.icon&&r.default.createElement(t.icon,{style:{padding:7}}))}},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(n(117)),a=r(n(118)),s=r(n(119));class l{constructor(){this.audioFile=new Audio}initialize(t){return o(this,void 0,void 0,(function*(){t.successBeepEnabled&&(this.audioFile.src=s.default,yield this.play(),"MODERN_BEEP"===t.soundType&&(this.audioFile.src=i.default),"CLASSIC_BEEP"===t.soundType&&(this.audioFile.src=a.default))}))}beep(t){t.successBeepEnabled&&this.play()}play(){return o(this,void 0,void 0,(function*(){try{yield this.audioFile.play()}catch(t){}}))}}l.INSTANCE=new l,e.default=l},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Props=e.ViewFinderPadding=void 0;const r=o(n(1)),i=n(21),a=n(4),s=n(9);e.ViewFinderPadding=class{};e.Props=class{};class l extends r.default.Component{get style(){return this.props.configuration.style}get holeRect(){return this.holePosition}constructor(t){super(t),this.holePosition=i.Frame.empty(),this.resizeObserver=new ResizeObserver((()=>{this.updateWindowSize()})),this.componentDidUpdate=t=>{var e,n,o,r;(null===(e=this.props.padding)||void 0===e?void 0:e.minTopPadding)===(null===(n=t.padding)||void 0===n?void 0:n.minTopPadding)&&(null===(o=this.props.padding)||void 0===o?void 0:o.minBottomPadding)===(null===(r=t.padding)||void 0===r?void 0:r.minBottomPadding)&&this.props.configuration===t.configuration&&this.props.guidanceConfiguration===t.guidanceConfiguration||this.setState({shouldUpdateCanvas:!0}),this.updateCanvas()},this.updateWindowSize=()=>{this.setState({shouldUpdateCanvas:!0})},this.getVideoSize=()=>{var t;return null!==(t=this.holeCanvas.getBoundingClientRect())&&void 0!==t?t:new DOMRect},this.scaleForRetinaDisplay=t=>{if(window.devicePixelRatio>1){var e=t.width,n=t.height;t.width=e*window.devicePixelRatio,t.height=n*window.devicePixelRatio,t.style.width=e+"px",t.style.height=n+"px",t.getContext("2d").scale(window.devicePixelRatio,window.devicePixelRatio)}},this.updateCanvas=()=>{var t,e,n,o,r;if(!this.state.shouldUpdateCanvas)return;this.setState({shouldUpdateCanvas:!1});const i=this.getVideoSize().width,a=this.getVideoSize().height;this.holeCanvas.width=i,this.holeCanvas.height=a,this.crosshairCanvas.width=i,this.crosshairCanvas.height=a,this.scaleForRetinaDisplay(this.crosshairCanvas);const s=i-2*this.props.configuration.style.strokeWidth,l=Math.max(20,(i-s)/2),u=Math.min(s,i-2*l),c=this.props.configuration.aspectRatio.width/this.props.configuration.aspectRatio.height;this.holePosition.width=u,this.holePosition.height=this.holePosition.width/c,this.holePosition.x=i/2-u/2;const d=(null===(t=this.guidanceText)||void 0===t?void 0:t.clientHeight)+this.guidanceTextTopPadding||0,f=Math.max(10,null!==(n=null===(e=this.props.padding)||void 0===e?void 0:e.minTopPadding)&&void 0!==n?n:0),h=a-f-Math.max(10,null!==(r=null===(o=this.props.padding)||void 0===o?void 0:o.minBottomPadding)&&void 0!==r?r:0)-d;this.holePosition.height>h?(this.holePosition.height=h,this.holePosition.width=this.holePosition.height*c,this.holePosition.x=i/2-this.holePosition.width/2,this.holePosition.y=f):this.holePosition.y=f+(h-this.holePosition.height)/1.9;const p=this.holeCanvas.getContext("2d");p.save(),this.drawBackground(p),p.globalCompositeOperation="destination-out",this.drawHole();const g=this.crosshairCanvas.getContext("2d");g.globalCompositeOperation="source-over","FinderStrokedStyle"===this.props.configuration.style._type?this.drawHoleOutline():"FinderCorneredStyle"===this.props.configuration.style._type&&this.drawHoleCorners(),p.restore(),g.restore()},this.drawBackground=t=>{const{width:e,height:n}=this.getVideoSize();t.clearRect(0,0,e,n),t.beginPath(),t.rect(0,0,e,n),t.fillStyle=a.SBTheme.getColorValue(this.props.configuration.overlayColor),t.fill()},this.drawHole=()=>{const t=this.holeCanvas.getContext("2d"),e=this.cornerRadius(),n=this.holePosition.x,o=this.holePosition.y,r=this.holePosition.width,i=this.holePosition.height;t.beginPath(),t.fillStyle="black",t.moveTo(n+e,o),t.arcTo(n+r,o,n+r,o+i,e),t.arcTo(n+r,o+i,n,o+i,e),t.arcTo(n,o+i,n,o,e),t.arcTo(n,o,n+r,o,e),t.closePath(),t.fill()},this.drawCrosshair=()=>{const t=this.crosshairCanvas.getContext("2d"),e=this.holePosition.x+this.holePosition.width/2,n=this.holePosition.y+this.holePosition.height/2;t.beginPath(),t.moveTo(e-10,n),t.lineTo(e+10,n),t.moveTo(e,n-10),t.lineTo(e,n+10),t.strokeStyle="white",t.fillStyle="white",t.lineWidth=1,t.stroke()},this.drawHoleCorners=()=>{const t=this.crosshairCanvas.getContext("2d"),e=this.holePosition.x,n=this.holePosition.y,o=this.holePosition.width,r=this.holePosition.height,i=15,s=this.style.strokeWidth,l=this.cornerRadius();t.beginPath(),t.moveTo(e,n+i),t.arcTo(e,n,e+o,n,l),t.lineTo(e+i,n),t.moveTo(e+o-i,n),t.arcTo(e+o,n,e+o,n+r,l),t.lineTo(e+o,n+i),t.moveTo(e+o,n+r-i),t.arcTo(e+o,n+r,e,n+r,l),t.lineTo(e+o-i,n+r),t.moveTo(e,n+r-i),t.arcTo(e,n+r,e+o,n+r,l),t.lineTo(e+i,n+r),t.strokeStyle=a.SBTheme.getColorValue(this.style.strokeColor),t.lineWidth=s,t.stroke()},this.drawHoleOutline=()=>{const t=this.crosshairCanvas.getContext("2d"),e=this.holePosition.x,n=this.holePosition.y,o=this.holePosition.width,r=this.holePosition.height,i=this.cornerRadius(),s=this.style.strokeWidth;t.beginPath(),t.moveTo(e+i,n),t.arcTo(e+o,n,e+o,n+r,i),t.moveTo(e+o,n+i),t.arcTo(e+o,n+r,e,n+r,i),t.moveTo(e+o-i,n+r),t.arcTo(e,n+r,e,n,i),t.moveTo(e,n+r-i),t.arcTo(e,n,e+o,n,i),t.strokeStyle=a.SBTheme.getColorValue(this.style.strokeColor),t.lineWidth=s,t.stroke()},this.guidanceTextTopPadding=20,this.render=()=>r.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"},onClick:t=>{const e=this.holePosition;t.clientX>this.holePosition.x&&t.clientX<e.x+e.width&&t.clientY>e.y&&t.clientY<e.y+e.height&&console.log("Clicked inside hole, possibly click events need to be diverted")}},r.default.createElement("canvas",{ref:t=>{this.holeCanvas=t},style:{position:"absolute",width:"100%",height:"100%"}}),r.default.createElement("canvas",{ref:t=>{this.crosshairCanvas=t},style:{position:"absolute",width:"100%",height:"100%"}}),r.default.createElement(s.StyledText,{innerRef:t=>{this.guidanceText=t},style:{position:"absolute",display:"block",top:this.holePosition.y+this.holePosition.height+this.guidanceTextTopPadding,left:0,width:"100%",textAlign:"center"},config:this.guidance.title})),this.state={shouldUpdateCanvas:!0}}componentDidMount(){this.updateWindowSize(),this.resizeObserver.observe(this.holeCanvas)}componentWillUnmount(){this.resizeObserver.disconnect()}bottomOfGuidanceText(){var t,e;return this.holeRect.bottom()+(null!==(e=null===(t=this.guidanceText)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0)+this.guidanceTextTopPadding}get guidance(){return this.props.guidanceConfiguration}cornerRadius(){return Math.max(0,Math.min(this.style.cornerRadius,this.holePosition.width/2,this.holePosition.height/2))}}e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Debugger=void 0;e.Debugger=class{static warn(t){console.warn("[ScanbotSDK]",t)}}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.useIsLayoutEqualOrAbove=e.useIsLayout=e.createSBTheme=void 0;const r=n(2),i=o(n(29)),a=n(2),s=0,l=800,u=1200;e.createSBTheme=()=>(0,r.createTheme)({palette:{primary:{main:i.default.ScanbotPrimary},secondary:{main:i.default.DarkGray}}}),e.useIsLayout=function(t){switch(t){case"mobile":return(0,a.useMediaQuery)("(min-width:"+s+"px) and (max-width:"+(l-1)+"px)");case"tablet":return(0,a.useMediaQuery)("(min-width:"+l+"px) and (max-width:"+(u-1)+"px)");case"desktop":return(0,a.useMediaQuery)("(min-width:"+u+"px)")}},e.useIsLayoutEqualOrAbove=function(t){switch(t){case"mobile":return(0,a.useMediaQuery)("(min-width:"+s+"px)");case"tablet":return(0,a.useMediaQuery)("(min-width:"+l+"px)");case"desktop":return(0,a.useMediaQuery)("(min-width:"+u+"px)")}}},function(t,e,n){"use strict";var o=n(35),r=n.n(o)()((function(t){return t[1]}));r.push([t.i,"\n.scanbot-shutter-fade-in {\n opacity: 1;\n}\n\n.scanbot-shutter-fade-out {\n opacity: 0;\n}\n\n.scanbot-shutter-rotate {\n animation: scanbot-shutter-rotating linear infinite;\n}\n\n.scanbot-shutter-pulse-fast {\n animation: scanbot-shutter-pulsing 1s ease-in-out infinite;\n}\n\n.scanbot-shutter-button {\n position: relative;\n width: 64px;\n height: 64px;\n left: 50%;\n bottom: 12px;\n transform: translate(-50%, -100%);\n}\n\n.scanbot-shutter-button-part {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n transition: opacity 0.5s ease-in-out;\n}\n\n@keyframes scanbot-shutter-rotating {\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes scanbot-shutter-pulsing {\n 0% {\n opacity: 0.25;\n }\n 50% {\n opacity: 0.8;\n }\n 100% {\n opacity: 0.25;\n }\n}\n",""]),e.a=r},function(t,e,n){"use strict";var o=n(35),r=n.n(o)()((function(t){return t[1]}));r.push([t.i,".scanbot-document-hint-text {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n background-color: rgba(0, 0, 0, 0.4);\n color: white;\n border-radius: 0.25em;\n padding: 0.05em 0.3em 0.05em 0.3em;\n font-family: sans-serif;\n font-size: 0.9em;\n font-weight: 300;\n}\n",""]),e.a=r},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Constants=void 0;o(n(91));var r="5.1.0-dev.1";class i{}e.Constants=i,i.VERSION=r,i.CDN_PATH=`https://cdn.jsdelivr.net/npm/scanbot-web-sdk@${r}/bundle/`,i.DEFAULT_WASM_FOLDER="bin/complete/",i.BUILD_WITH_UI=!1},function(t,e,n){"use strict";(function(t){function n(){if("undefined"!=typeof t&&"undefined"!=typeof t.versions&&"undefined"!=typeof t.versions.node)return!1;if(/(iPad|iPhone|iPod)/g.test(navigator.userAgent))return!1;try{return(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]))}catch(t){return!1}}Object.defineProperty(e,"__esModule",{value:!0}),e.gatherTransferables=function(t,e){const n=[];return function t(o){if(!o)return;if(o.constructor===ImageData){const t={data:o.data.slice(),width:o.width,height:o.height};return n.push(t.data.buffer),t}if(o.constructor===ArrayBuffer){const t=e?o.slice(0):o;if(n.push(t),e)return o}else if(ArrayBuffer.isView(o)){let t;if(e){t=new(0,o.constructor)(o.buffer.slice(0))}else t=o;if(n.push(t.buffer),e)return o}else if(Array.isArray(o))for(let e=0;e<o.length;++e){const n=t(o[e]);n&&(o[e]=n)}else if(o.constructor===Object)for(const e in o)if(o.hasOwnProperty(e)){const n=t(o[e]);n&&(o[e]=n)}}(t),n},e.isRemote=function(t){return t.startsWith("http:")||t.startsWith("https:")},e.areThreadsAvailable=n,e.getBuildType=function(t){const{allowSimd:e=!0,allowThreads:o=!0}=t||{};let r="";if(e&&function(){try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))}catch(t){return!1}}()){r+="-simd";o&&n()&&(r+="-threads")}return r}}).call(this,n(54))},function(t,e){var n,o,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(t){o=a}}();var l,u=[],c=!1,d=-1;function f(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&h())}function h(){if(!c){var t=s(f);c=!0;for(var e=u.length;e;){for(l=u,u=[];++d<e;)l&&l[d].run();d=-1,e=u.length}l=null,c=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function g(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new p(t,e)),1!==u.length||c||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentScannerConfiguration=e.CaptureButtonStyleConfiguration=e.OutlineLabelStyleConfiguration=e.CaptureAnimationStyleConfiguration=e.OutlinePolygonStyleConfiguration=e.OutlineStyleConfiguration=e.StyleConfiguration=e.TextConfiguration=void 0;const o=n(15),r={OK:"Capturing your document... Please do not move the camera.",OK_SmallSize:"The document is too small. Try moving closer.",OK_BadAngles:"This is a bad camera angle. Hold the device straight over the document.",OK_BadAspectRatio:"Rotate the device sideways, so that the document fits better into the screen.",OK_OffCenter:"Try holding the device at the center of the document.",Error_NothingDetected:"Please hold the device over a document to start scanning.",Error_Brightness:"It is too dark. Try turning on a light.",Error_Noise:"Please move the document to a clear surface."};class i{constructor(t){this.hint=t}}e.TextConfiguration=i;class a{constructor(){this.outline=new s,this.captureButton=new d}}e.StyleConfiguration=a;class s{constructor(){this.polygon=new l,this.path=new u,this.label=new c}}e.OutlineStyleConfiguration=s;class l{constructor(){this.strokeCapturing="green",this.strokeSearching="yellow",this.fillCapturing="transparent",this.fillSearching="transparent"}}e.OutlinePolygonStyleConfiguration=l;class u{constructor(){this.stroke="green",this.strokeWidth=4}}e.CaptureAnimationStyleConfiguration=u;class c{}e.OutlineLabelStyleConfiguration=c;class d{constructor(){this.color="#FFF"}}e.CaptureButtonStyleConfiguration=d;class f extends o.ScannerConfiguration{constructor(){super(o.ScannerConfiguration.DEFAULT_VIDEO_RESOLUTION_4K),this.acceptedBrightnessThreshold=f.DEFAULT_ACCEPTED_BRIGHTNESS_SCORE,this.acceptedAngleScore=f.DEFAULT_ACCEPTED_ANGLE_SCORE,this.acceptedSizeScore=f.DEFAULT_ACCEPTED_SIZE_SCORE,this.autoCaptureEnabled=!0,this.autoCaptureSensitivity=.66,this.autoCaptureDelay=1e3,this.ignoreBadAspectRatio=!0,this.useImageCaptureAPI=!1,this.text=new i(r),this.style=new a,this.onDocumentDetected=function(t){}}static fromJson(t){const e=new f;if(this.mapValues(t,e,["text","style","videoConstraints"]),t.text&&t.text.hint&&this.mapValues(t.text.hint,e.text.hint),t.style){this.mapValues(t.style,e.style,["outline","captureButton"]);const n=t.style.outline;if(n){this.mapValues(n,e.style.outline,["polygon","path","label"]);const t=n.polygon;t&&this.mapValues(t,e.style.outline.polygon);const o=n.path;o&&this.mapValues(o,e.style.outline.path);const r=n.label;r&&this.mapValues(r,e.style.outline.label)}const o=t.style.captureButton;o&&this.mapValues(o,e.style.captureButton)}return this.mapVideoConstraints(t,e),e}}e.DocumentScannerConfiguration=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseConfiguration=void 0;class o{constructor(){this.container=void 0,this.containerId=void 0}static mapValues(t,e,n){Object.keys(t).forEach((o=>{(null==n?void 0:n.includes(o))||(e[o]=t[o])}))}static mapValuesDeep(t,e){const n=t=>t&&"object"==typeof t&&!Array.isArray(t);Object.keys(t).forEach((r=>{r in e&&n(t[r])&&n(e[r])?o.mapValuesDeep(t[r],e[r]):e[r]=t[r]}))}static _fromJson(t,e){return this.mapValuesDeep(e,t),t}}e.BaseConfiguration=o},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.ImageProcessor=void 0;const r=["ROTATION_NONE","ROTATION_90_CLOCKWISE","ROTATION_180","ROTATION_90_COUNTERCLOCKWISE"];class i{constructor(t,e){this._sdk=t,this._token=e}copy(){return o(this,void 0,void 0,(function*(){const t=yield this._sdk.bridge.postByCopyingArgs("imageProcessorCopy",[this._token]);return new i(this._sdk,t)}))}applyFilter(t){return o(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("imageProcessorApplyFilter",[this._token,t.toWireType()])}))}crop(t){return o(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("imageProcessorCrop",[this._token,t])}))}resize(t){return o(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("imageProcessorResize",[this._token,t])}))}rotate(t){return o(this,void 0,void 0,(function*(){if(!r.includes(t))return Promise.reject("Invalid rotation value! It should be one of "+r.join(", "));yield this._sdk.bridge.postByTransferringArgs("imageProcessorRotate",[this._token,t])}))}processedImage(){return o(this,void 0,void 0,(function*(){return yield this._sdk.bridge.postByCopyingArgs("imageProcessorEncodedProcessedImage",[this._token,".jpg"])}))}release(){return o(this,void 0,void 0,(function*(){yield this._sdk.release(this._token,"ImageProcessor"),this._token=null,this._sdk=null}))}get __token(){return this._token}}e.ImageProcessor=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const o=n(12),r=n(22);e.default=class{saveImageAsJpeg(t,e){if(!t||0===t.length)return void console.log("Data cannot be null or empty");e||(e=r.Utils.uuid()+".jpeg");let n=new Blob([t],{type:"image/jpeg"});o.ImageUtils.saveBlob(n,e)}isCameraSupported(){return!!navigator.mediaDevices}flash(){let t=this.findFlashElement();t.style.display="block",this.animateFlashOpacity("0.5",(()=>{this.animateFlashOpacity("0.0",(()=>{t.style.opacity="1.0",t.style.display="none"}))}))}findFlashElement(){return this.getOrCreateElement("flash",{position:"fixed",top:"0",left:"0",width:"100%",height:"100%","background-color":"#fff",display:"none","z-index":"5000"})}animateFlashOpacity(t,e){const n=this.getElementByClassName("flash");setTimeout((()=>{n.style.opacity=t,e()}),150)}getOrCreateElement(t,e){let n=this.getElementByClassName(t);return n||(this.createElement(t,e),n=this.getElementByClassName(t)),n}createElement(t,e){let n=document.createElement("div");n.className=t,n.style.cssText=this.cssToString(e),document.body.append(n)}cssToString(t){let e="";return Object.keys(t).forEach((n=>{e+=n+":"+t[n]+";"})),e}getElementByClassName(t){const e=document.getElementsByClassName(t);if(0!==e.length)return e[0]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Barcode=void 0;const o=n(5);class r{constructor(t,e,n,o,r,i){this.format=t,this.text=e,this.parsedDocument=n,this.rawBytes=o,this.points=r,this.barcodeImage=i}id(){return this.text+this.format}equals(t){return this.format===t.format&&this.text===t.text}static fromWorker(t){const e=t.quad.map((t=>new o.Point(t[0],t[1])));return new r(t.format,t.text,t.parsedDocument,t.rawBytes,e,t.barcodeImage)}}e.Barcode=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CameraConfiguration=void 0;const o=n(6);class r extends o.PartiallyConstructible{constructor(t={}){super(),this.cameraModule="BACK",this.zoomSteps=[1,2,5],this.defaultZoomFactor=1,this.flashEnabled=!1,void 0!==t.cameraModule&&(this.cameraModule=t.cameraModule),void 0!==t.zoomSteps&&(this.zoomSteps=t.zoomSteps.map((t=>t))),void 0!==t.defaultZoomFactor&&(this.defaultZoomFactor=t.defaultZoomFactor),void 0!==t.flashEnabled&&(this.flashEnabled=t.flashEnabled)}}e.CameraConfiguration=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ActionBarConfiguration=void 0;const o=n(6),r=n(3);class i extends o.PartiallyConstructible{constructor(t={}){super(),this.flashButton=new r.RoundButton({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),this.zoomButton=new r.RoundButton({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),this.flipCameraButton=new r.RoundButton({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),void 0!==t.flashButton&&(this.flashButton=new r.RoundButton(t.flashButton)),void 0!==t.zoomButton&&(this.zoomButton=new r.RoundButton(t.zoomButton)),void 0!==t.flipCameraButton&&(this.flipCameraButton=new r.RoundButton(t.flipCameraButton))}}e.ActionBarConfiguration=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeUseCase=void 0;const o=n(63),r=n(38);var i;!function(t){t.From=function(t){const e=t._type;switch(e){case"SingleScanningMode":return new r.SingleScanningMode(t);case"MultipleScanningMode":return new o.MultipleScanningMode(t);default:throw`Unknown child class name: ${e}`}}}(i||(e.BarcodeUseCase=i={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MultipleScanningMode=e.SheetContent=e.ManualCountEditDialog=e.SwipeToDelete=e.Sheet=void 0;const o=n(10),r=n(10),i=n(3),a=n(10),s=n(3),l=n(18),u=n(10),c=n(18),d=n(3),f=n(6),h=n(3),p=n(3),g=n(3),m=n(3);class v extends f.PartiallyConstructible{constructor(t={}){super(),this.mode="COLLAPSED_SHEET",this.collapsedVisibleHeight="SMALL",this.listButton=new s.BadgedButton({}),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.collapsedVisibleHeight&&(this.collapsedVisibleHeight=t.collapsedVisibleHeight),void 0!==t.listButton&&(this.listButton=new s.BadgedButton(t.listButton))}}e.Sheet=v;class y extends f.PartiallyConstructible{constructor(t={}){super(),this.enabled=!0,this.backgroundColor="?sbColorNegative",this.iconColor="?sbColorOnPrimary",void 0!==t.enabled&&(this.enabled=t.enabled),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.iconColor&&(this.iconColor=t.iconColor)}}e.SwipeToDelete=y;class b extends f.PartiallyConstructible{constructor(t={}){super(),this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.title=new m.StyledText({text:"Update count",color:"?sbColorOnSurface"}),this.info=new m.StyledText({text:"Adjust the number of items you scanned.",color:"?sbColorOnSurfaceVariant"}),this.updateButton=new d.ButtonConfiguration({visible:!0,text:"Update",background:new i.BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),this.cancelButton=new d.ButtonConfiguration({visible:!0,text:"Cancel",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),this.clearTextButton=new p.IconStyle({visible:!0,color:"?sbColorOnSurfaceVariant"}),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.title&&(this.title=new m.StyledText(t.title)),void 0!==t.info&&(this.info=new m.StyledText(t.info)),void 0!==t.updateButton&&(this.updateButton=new d.ButtonConfiguration(t.updateButton)),void 0!==t.cancelButton&&(this.cancelButton=new d.ButtonConfiguration(t.cancelButton)),void 0!==t.clearTextButton&&(this.clearTextButton=new p.IconStyle(t.clearTextButton))}}e.ManualCountEditDialog=b;class A extends f.PartiallyConstructible{constructor(t={}){super(),this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.manualCountChangeEnabled=!0,this.manualCountOutlineColor="?sbColorOutline",this.manualCountChangeColor="?sbColorPrimary",this.title=new m.StyledText({text:"%d items",color:"?sbColorOnSurface"}),this.clearAllButton=new d.ButtonConfiguration({visible:!0,text:"Clear all",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),this.barcodeItemTitle=new m.StyledText({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),this.barcodeItemSubtitle=new m.StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.barcodeItemImageVisible=!0,this.submitButton=new d.ButtonConfiguration({visible:!0,text:"Submit",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),this.startScanningButton=new d.ButtonConfiguration({visible:!0,text:"Start scanning",background:new i.BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.placeholderTitle=new m.StyledText({text:"No barcodes here!",color:"?sbColorOnSurface"}),this.placeholderSubtitle=new m.StyledText({text:"The barcode list is currently empty. Close this sheet and scan your items to add them.",color:"?sbColorOnSurfaceVariant"}),this.placeholderIconBackground="?sbColorOutline",this.placeholderIcon=new p.IconStyle({visible:!0,color:"?sbColorOnSurface"}),this.swipeToDelete=new y({enabled:!0,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"}),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.manualCountChangeEnabled&&(this.manualCountChangeEnabled=t.manualCountChangeEnabled),void 0!==t.manualCountOutlineColor&&(this.manualCountOutlineColor=t.manualCountOutlineColor),void 0!==t.manualCountChangeColor&&(this.manualCountChangeColor=t.manualCountChangeColor),void 0!==t.title&&(this.title=new m.StyledText(t.title)),void 0!==t.clearAllButton&&(this.clearAllButton=new d.ButtonConfiguration(t.clearAllButton)),void 0!==t.barcodeItemTitle&&(this.barcodeItemTitle=new m.StyledText(t.barcodeItemTitle)),void 0!==t.barcodeItemSubtitle&&(this.barcodeItemSubtitle=new m.StyledText(t.barcodeItemSubtitle)),void 0!==t.barcodeItemImageVisible&&(this.barcodeItemImageVisible=t.barcodeItemImageVisible),void 0!==t.submitButton&&(this.submitButton=new d.ButtonConfiguration(t.submitButton)),void 0!==t.startScanningButton&&(this.startScanningButton=new d.ButtonConfiguration(t.startScanningButton)),void 0!==t.placeholderTitle&&(this.placeholderTitle=new m.StyledText(t.placeholderTitle)),void 0!==t.placeholderSubtitle&&(this.placeholderSubtitle=new m.StyledText(t.placeholderSubtitle)),void 0!==t.placeholderIconBackground&&(this.placeholderIconBackground=t.placeholderIconBackground),void 0!==t.placeholderIcon&&(this.placeholderIcon=new p.IconStyle(t.placeholderIcon)),void 0!==t.swipeToDelete&&(this.swipeToDelete=new y(t.swipeToDelete))}}e.SheetContent=A;class S extends f.PartiallyConstructible{constructor(t={}){super(),this._type="MultipleScanningMode",this.countingRepeatDelay=1e3,this.mode="COUNTING",this.sheet=new v({mode:"COLLAPSED_SHEET",collapsedVisibleHeight:"SMALL",listButton:new s.BadgedButton({badgeBackgroundColor:"?sbColorSurface",badgeForegroundColor:"?sbColorPrimary",visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.sheetContent=new A({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",manualCountChangeEnabled:!0,manualCountOutlineColor:"?sbColorOutline",manualCountChangeColor:"?sbColorPrimary",title:new m.StyledText({text:"?multipleModeSheetTitle",color:"?sbColorOnSurface"}),clearAllButton:new d.ButtonConfiguration({visible:!0,text:"?sheetClearAllButton",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),barcodeItemTitle:new m.StyledText({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),barcodeItemSubtitle:new m.StyledText({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),barcodeItemImageVisible:!0,submitButton:new d.ButtonConfiguration({visible:!0,text:"?sheetSubmitButton",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),startScanningButton:new d.ButtonConfiguration({visible:!0,text:"?sheetStartScanningButton",background:new i.BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),placeholderTitle:new m.StyledText({visible:!0,text:"?sheetPlaceholderTitle",color:"?sbColorOnSurface",useShadow:!1}),placeholderSubtitle:new m.StyledText({visible:!0,text:"?sheetPlaceholderSubtitle",color:"?sbColorOnSurfaceVariant",useShadow:!1}),placeholderIconBackground:"?sbColorOutline",placeholderIcon:new p.IconStyle({visible:!0,color:"?sbColorOnSurface"}),swipeToDelete:new y({enabled:!0,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"})}),this.manualCountEditDialog=new b({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",title:new m.StyledText({text:"?manualCountEditDialogTitle",color:"?sbColorOnSurface"}),info:new m.StyledText({text:"?manualCountEditDialogInfo",color:"?sbColorOnSurfaceVariant"}),updateButton:new d.ButtonConfiguration({visible:!0,text:"?manualCountEditDialogUpdateButton",background:new i.BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new d.ButtonConfiguration({visible:!0,text:"?manualCountEditDialogCancelButton",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),clearTextButton:new p.IconStyle({visible:!0,color:"?sbColorOnSurfaceVariant"})}),this.barcodeInfoMapping=new l.BarcodeInfoMapping({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",loadingMessage:new m.StyledText({text:"?barcodeInfoMappingLoadingMessage",color:"?sbColorPrimary"}),errorState:new c.BarcodeItemErrorState({title:new m.StyledText({text:"?barcodeInfoMappingErrorStateTitle",color:"?sbColorOnSurface"}),subtitle:new m.StyledText({text:"?barcodeInfoMappingErrorStateSubtitle",color:"?sbColorOnSurfaceVariant"}),retryButton:new d.ButtonConfiguration({visible:!0,text:"?barcodeInfoMappingErrorStateRetryButton",background:new i.BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new d.ButtonConfiguration({visible:!0,text:"?barcodeInfoMappingErrorStateCancelButton",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})})}),this.arOverlay=new o.ArOverlayGeneralConfiguration({visible:!1,counterBadge:new a.BadgeStyle({visible:!0,background:new i.BackgroundStyle({strokeColor:"#FF000000",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),automaticSelectionEnabled:!1,barcodeItemInfoPosition:"BELOW",polygon:new r.ArOverlayPolygonConfiguration({visible:!0,deselected:new g.PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),selected:new g.PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),barcodeItemConfiguration:new u.BarcodeItemConfiguration({imageVisible:!0,titleSelected:new m.StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new m.StyledText({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),titleDeselected:new m.StyledText({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),subtitleDeselected:new m.StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new g.PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new g.PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})})}),void 0!==t.countingRepeatDelay&&(this.countingRepeatDelay=t.countingRepeatDelay),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.sheet&&(this.sheet=new v(t.sheet)),void 0!==t.sheetContent&&(this.sheetContent=new A(t.sheetContent)),void 0!==t.manualCountEditDialog&&(this.manualCountEditDialog=new b(t.manualCountEditDialog)),void 0!==t.barcodeInfoMapping&&(this.barcodeInfoMapping=new l.BarcodeInfoMapping(t.barcodeInfoMapping)),void 0!==t.arOverlay&&(this.arOverlay=new o.ArOverlayGeneralConfiguration(t.arOverlay))}}e.MultipleScanningMode=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserGuidanceConfiguration=void 0;const o=n(3),r=n(6),i=n(3);class a extends r.PartiallyConstructible{constructor(t={}){super(),this.visible=!0,this.title=new i.StyledText({color:"?sbColorOnPrimary"}),this.background=new o.BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow"}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.title&&(this.title=new i.StyledText(t.title)),void 0!==t.background&&(this.background=new o.BackgroundStyle(t.background))}}e.UserGuidanceConfiguration=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeTextLocalization=void 0;const o=n(6);class r extends o.PartiallyConstructible{constructor(t={}){super(),this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionCloseButton="Close",this.topBarCancelButton="Cancel",this.topBarTitle="Scan Item",this.userGuidance="Move the finder over a barcode",this.barcodeInfoMappingLoadingMessage="Loading details...",this.barcodeInfoMappingErrorStateTitle="Connection Error!",this.barcodeInfoMappingErrorStateSubtitle="There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",this.barcodeInfoMappingErrorStateRetryButton="Retry",this.barcodeInfoMappingErrorStateCancelButton="Cancel",this.manualCountEditDialogTitle="Update count",this.manualCountEditDialogInfo="Adjust the number of items you scanned.",this.manualCountEditDialogUpdateButton="Update",this.manualCountEditDialogCancelButton="Cancel",this.sheetClearAllButton="Clear all",this.sheetSubmitButton="Submit",this.sheetStartScanningButton="Start scanning",this.sheetPlaceholderTitle="No barcodes here!",this.sheetPlaceholderSubtitle="The barcode list is currently empty. Close this sheet and scan your items to add them.",this.singleModeConfirmationCancelButton="Close",this.multipleModeSheetTitle="%d items",void 0!==t.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=t.cameraPermissionEnableCameraTitle),void 0!==t.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=t.cameraPermissionEnableCameraExplanation),void 0!==t.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=t.cameraPermissionCloseButton),void 0!==t.topBarCancelButton&&(this.topBarCancelButton=t.topBarCancelButton),void 0!==t.topBarTitle&&(this.topBarTitle=t.topBarTitle),void 0!==t.userGuidance&&(this.userGuidance=t.userGuidance),void 0!==t.barcodeInfoMappingLoadingMessage&&(this.barcodeInfoMappingLoadingMessage=t.barcodeInfoMappingLoadingMessage),void 0!==t.barcodeInfoMappingErrorStateTitle&&(this.barcodeInfoMappingErrorStateTitle=t.barcodeInfoMappingErrorStateTitle),void 0!==t.barcodeInfoMappingErrorStateSubtitle&&(this.barcodeInfoMappingErrorStateSubtitle=t.barcodeInfoMappingErrorStateSubtitle),void 0!==t.barcodeInfoMappingErrorStateRetryButton&&(this.barcodeInfoMappingErrorStateRetryButton=t.barcodeInfoMappingErrorStateRetryButton),void 0!==t.barcodeInfoMappingErrorStateCancelButton&&(this.barcodeInfoMappingErrorStateCancelButton=t.barcodeInfoMappingErrorStateCancelButton),void 0!==t.manualCountEditDialogTitle&&(this.manualCountEditDialogTitle=t.manualCountEditDialogTitle),void 0!==t.manualCountEditDialogInfo&&(this.manualCountEditDialogInfo=t.manualCountEditDialogInfo),void 0!==t.manualCountEditDialogUpdateButton&&(this.manualCountEditDialogUpdateButton=t.manualCountEditDialogUpdateButton),void 0!==t.manualCountEditDialogCancelButton&&(this.manualCountEditDialogCancelButton=t.manualCountEditDialogCancelButton),void 0!==t.sheetClearAllButton&&(this.sheetClearAllButton=t.sheetClearAllButton),void 0!==t.sheetSubmitButton&&(this.sheetSubmitButton=t.sheetSubmitButton),void 0!==t.sheetStartScanningButton&&(this.sheetStartScanningButton=t.sheetStartScanningButton),void 0!==t.sheetPlaceholderTitle&&(this.sheetPlaceholderTitle=t.sheetPlaceholderTitle),void 0!==t.sheetPlaceholderSubtitle&&(this.sheetPlaceholderSubtitle=t.sheetPlaceholderSubtitle),void 0!==t.singleModeConfirmationCancelButton&&(this.singleModeConfirmationCancelButton=t.singleModeConfirmationCancelButton),void 0!==t.multipleModeSheetTitle&&(this.multipleModeSheetTitle=t.multipleModeSheetTitle)}}e.BarcodeTextLocalization=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeRecognizerConfiguration=void 0;const o=n(6);class r extends o.PartiallyConstructible{constructor(t={}){super(),this.barcodesRegexFilter="",this.barcodeFormats=[],this.gs1Handling="PARSE",void 0!==t.barcodesRegexFilter&&(this.barcodesRegexFilter=t.barcodesRegexFilter),void 0!==t.barcodeFormats&&(this.barcodeFormats=t.barcodeFormats.map((t=>t))),void 0!==t.gs1Handling&&(this.gs1Handling=t.gs1Handling)}}e.BarcodeRecognizerConfiguration=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CameraPermissionScreen=void 0;const o=n(3),r=n(3),i=n(6),a=n(3),s=n(3),l=n(3);class u extends i.PartiallyConstructible{constructor(t={}){super(),this.background="?sbColorSurface",this.iconBackground="?sbColorOutline",this.icon=new s.IconStyle({visible:!0,color:"?sbColorOnSurface"}),this.closeButton=new r.ButtonConfiguration({text:"Close",background:new o.BackgroundStyle({}),foreground:new a.ForegroundStyle({})}),this.enableCameraTitle=new l.StyledText({text:"Camera permission denied!",color:"?colorOnSurface"}),this.enableCameraExplanation=new l.StyledText({text:"Please allow the usage of the camera to start the scanning process.",color:"?sbColorOnSurfaceVariant"}),void 0!==t.background&&(this.background=t.background),void 0!==t.iconBackground&&(this.iconBackground=t.iconBackground),void 0!==t.icon&&(this.icon=new s.IconStyle(t.icon)),void 0!==t.closeButton&&(this.closeButton=new r.ButtonConfiguration(t.closeButton)),void 0!==t.enableCameraTitle&&(this.enableCameraTitle=new l.StyledText(t.enableCameraTitle)),void 0!==t.enableCameraExplanation&&(this.enableCameraExplanation=new l.StyledText(t.enableCameraExplanation))}}e.CameraPermissionScreen=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeItem=void 0;const o=n(6);class r extends o.PartiallyConstructible{constructor(t={}){if(super(),void 0===t.type)throw new Error("type must be present in constructor argument");if(this.type=t.type,void 0===t.count)throw new Error("count must be present in constructor argument");if(this.count=t.count,void 0===t.text)throw new Error("text must be present in constructor argument");if(this.text=t.text,void 0===t.rawBytes)throw new Error("rawBytes must be present in constructor argument");if(this.rawBytes=t.rawBytes,void 0===t.parsedDocument)throw new Error("parsedDocument must be present in constructor argument");this.parsedDocument=null!=t.parsedDocument?t.parsedDocument:null}}e.BarcodeItem=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class o{static throwIfMissingBuffer(t){o.throwIfMissing(t,"ImageBuffer may not be null")}static throwIfMissing(t,e){if(!t)throw new Error(e)}}e.default=o},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},a=this&&this.__rest||function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n};Object.defineProperty(e,"__esModule",{value:!0}),e.StyledBox=void 0;const s=n(2),l=i(n(1)),u=n(4);e.StyledBox=function(t){const e=(0,l.useContext)(u.SBPaletteContext).getColorValue,{styleConfig:n}=t,o=a(t,["styleConfig"]),r=Object.assign(Object.assign({},t.style),{backgroundColor:e(n.fillColor),borderColor:e(n.strokeColor),borderWidth:n.strokeWidth,borderRadius:n.cornerRadius});return l.default.createElement(s.Box,Object.assign({},o,{style:r}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class o{constructor(){this.DURATION=200}vibrate(t){t.enabled&&navigator.vibrate&&navigator.vibrate(this.DURATION)}}o.INSTANCE=new o,e.default=o},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeScanner=e.Props=void 0;const s=a(n(73)),l=i(n(138)),u=n(1),c=a(n(1)),d=n(16),f=a(n(75)),h=n(140),p=n(80),g=n(4);e.Props=class{},e.BarcodeScanner=function(t){const e=(0,u.useRef)(),n=(0,u.useRef)(null),[o,r]=((0,u.useContext)(d.NavigationBarSizeContext),(0,u.useState)(void 0)),[i,a]=(0,u.useState)(!1);(0,u.useEffect)((()=>{var n,o;t.scanningPaused?null===(n=e.current)||void 0===n||n.pause():null===(o=e.current)||void 0===o||o.resume()}),[t.scanningPaused]);const m=function(t){const e=new p.SelectionOverlayConfiguration;return e.visible=t.visible,t.polygon.visible?(e.style.highlightedPolygonFillColor=g.SBTheme.getColorValue(t.polygon.selected.fillColor),e.style.highlightedPolygonStrokeColor=g.SBTheme.getColorValue(t.polygon.selected.strokeColor),e.style.highlightedPolygonStrokeWidth=t.polygon.selected.strokeWidth,e.style.highlightedPolygonCornerRadius=t.polygon.selected.cornerRadius,e.style.polygonFillColor=g.SBTheme.getColorValue(t.polygon.deselected.fillColor),e.style.polygonStrokeColor=g.SBTheme.getColorValue(t.polygon.deselected.strokeColor),e.style.polygonStrokeWidth=t.polygon.deselected.strokeWidth,e.style.polygonCornerRadius=t.polygon.deselected.cornerRadius):(e.style.highlightedPolygonFillColor="transparent",e.style.highlightedPolygonStrokeColor="transparent",e.style.polygonFillColor="transparent",e.style.polygonStrokeColor="transparent"),e.automaticSelectionEnabled=!1,e}(t.arOverlay),v=Object.assign(Object.assign({},t.barcodeScannerViewConfig),{onBarcodesDetected:o=>{var r,i,a,s,l,u;null===(r=n.current)||void 0===r||r.update(null===(a=null===(i=e.current)||void 0===i?void 0:i.finder)||void 0===a?void 0:a.holeRect,null===(s=e.current)||void 0===s?void 0:s.camera,o.imageData,t.containerId,o.barcodes),null===(u=(l=t.barcodeScannerViewConfig).onBarcodesDetected)||void 0===u||u.call(l,o)},_onDetectionFailed:o=>{var r,i,a,s,l,u;null===(r=n.current)||void 0===r||r.update(null===(a=null===(i=e.current)||void 0===i?void 0:i.finder)||void 0===a?void 0:a.holeRect,null===(s=e.current)||void 0===s?void 0:s.camera,o,t.containerId,[]),null===(u=(l=t.barcodeScannerViewConfig)._onDetectionFailed)||void 0===u||u.call(l,o)}});return(0,u.useEffect)((()=>{const e=(0,l.areAnyActionButtonsVisible)(o,t.actionBarConfig);t.setActionButtonsVisible(e),a(e)}),[o,t.actionBarConfig]),c.default.createElement(c.default.Fragment,null,t.arOverlay.visible&&c.default.createElement(f.default,{style:{zIndex:1e3,position:"absolute"},ref:n,LabelComponent:h.ArOverlayBarcodeInfo,labelComponentConfig:t.arOverlay,onBarcodeFound:t.arOnBarcodeEnter,onPolygonClick:t.arOnBarcodeClick,configuration:m}),c.default.createElement(l.default,{config:t.actionBarConfig,scanner:e.current,capabilities:o,bottomPadding:t.actionBarBottomPadding,torchEnabledInitially:t.cameraConfiguration.flashEnabled,zoomSteps:t.cameraConfiguration.zoomSteps,defaultZoomFactor:t.cameraConfiguration.defaultZoomFactor}),c.default.createElement(s.default,{ref:e,viewFinderPadding:t.viewFinderPadding,configuration:v,onSuccess:()=>l.ActionButtonCapabilities.setFromScanner(e,r),onFailure:t.onCameraPermissionDenied}))}},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},a=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeScannerState=e.BarcodeScannerProps=void 0;const l=s(n(1)),u=n(1),c=n(26),d=s(n(28)),f=s(n(47)),h=i(n(122)),p=s(n(75)),g=s(n(127)),m=s(n(131)),v=s(n(133)),y=s(n(134)),b=s(n(78)),A=n(79),S=n(36),C=n(48),_=s(n(58)),w=n(13),x=n(31),O=n(12),E=s(n(137));class L extends c.ScanbotCameraProps{}e.BarcodeScannerProps=L;class P extends c.ScanbotCameraState{constructor(){super(...arguments),this.action="manual"}}e.BarcodeScannerState=P;class B extends c.ScannerView{constructor(t){var e;super(t),this.shouldComputeSize=!0,this.paused=!1,this.barcodes=[],this.detectionRunning=!1,this.updateDimensionsCallback=this.updateDimensions.bind(this),this.backendurl=void 0,this.desiredRecognitionResolution=void 0,Object.assign(this.state,{isFinderVisible:null===(e=this.configuration.finder.visible)||void 0===e||e,zoom:void 0,action:"manual",image:void 0,bottomHintText:void 0})}get configuration(){return this._configuration||(this._configuration=A.BarcodeScannerConfiguration.fromJson(this.props.configuration)),this._configuration}get enabled(){return!this.disposed}static create(t){return a(this,void 0,void 0,(function*(){const e=x.ViewUtils.findContainerOrThrow(t);return new Promise(((n,o)=>{(0,u.render)(l.default.createElement(B,{container:e,configuration:t,onSuccess:n,onFailure:o}),e)}))}))}isDetectionPaused(){return this.paused}resumeDetection(){return a(this,void 0,void 0,(function*(){C.Debugger.warn("Barcode detection resumed"),yield this.resume()}))}pauseDetection(){C.Debugger.warn("Barcode detection paused"),this.pause()}componentDidMount(){const t=Object.create(null,{componentDidMount:{get:()=>super.componentDidMount}});return a(this,void 0,void 0,(function*(){t.componentDidMount.call(this),window.addEventListener("resize",this.updateDimensionsCallback),yield this.resume()}))}componentWillUnmount(){super.componentWillUnmount(),this.pause(),window.removeEventListener("resize",this.updateDimensionsCallback)}updateDimensions(){return a(this,void 0,void 0,(function*(){this.shouldComputeSize=!0,this.forceUpdate()}))}resume(){return a(this,void 0,void 0,(function*(){this.paused=!1,yield this.detect()}))}pause(){this.paused=!0}detect(){var t,e,n,o,r,i;return a(this,void 0,void 0,(function*(){if(!this.enabled)return;if(this.paused)return;if(null===(t=this.configuration.scanAndCount)||void 0===t?void 0:t.enabled)return;if(this.detectionRunning)return;let a=!1;try{this.detectionRunning=!0;const t=yield this.recognizeBarcodes(!0,this.shouldComputeSize,this.configuration.returnBarcodeImage);if(this.shouldComputeSize=!1,!t)return;const s=t.barcodeResult;s.isEmpty()?this.configuration._onDetectionFailed&&(null===(e=this.configuration)||void 0===e||e._onDetectionFailed(null==s?void 0:s.imageData)):(a=!0,this.configuration.overlay.visible||this.configuration.onBarcodesDetected(s)),null===(n=this.overlay)||void 0===n||n.update(null===(o=this.finder)||void 0===o?void 0:o.holeRect,this.camera,t.barcodeResult.imageData,null!==(r=this.configuration.container)&&void 0!==r?r:this.configuration.containerId,t.barcodeResult.barcodes)}catch(t){console.log(t)}finally{this.detectionRunning=!1;const t=()=>requestAnimationFrame(this.detect.bind(this)),e=(null===(i=this.configuration.overlay)||void 0===i?void 0:i.visible)?0:this.configuration.captureDelay;a&&0!=e?setTimeout(t,e):t()}}))}setUseBackendService(t){console.log("Now using backend service for recognition: ",t),this.backendurl=t}recognizeBarcodes(t,e,n){var o,r,i,s;return a(this,void 0,void 0,(function*(){window&&window.__SB_DEBUG_BARCODESCANNER_FORCE_DETERMINISTIC_MODE&&(t=!1);const a=t?c.ScannerView.DEFAULT_DETECTION_RESOLUTION:c.ScannerView.DETECTION_RESULTION_4K,l=null!==(o=this.desiredRecognitionResolution)&&void 0!==o?o:a;this.camera.finderFrame=null===(r=this.finder)||void 0===r?void 0:r.holeRect;const u=yield null===(i=this.camera)||void 0===i?void 0:i.createImageData(l);if(!u)return;e&&this.forceUpdate(),(null===(s=this.configuration.scanAndCount)||void 0===s?void 0:s.enabled)&&(this.setState({image:O.ImageUtils.wrapperToBase64(u)}),void 0!==this.desiredRecognitionResolution?console.log("Recognizing barcodes with custom resolution:",this.desiredRecognitionResolution):console.log("Recognizing barcodes with max resolution:",c.ScannerView.DETECTION_RESULTION_4K,"(the actual resolution depends on your device and may be lower)"));const d=this.configuration.engineMode,f=this.configuration.barcodeFormats;let h;if(this.backendurl&&this.backendurl.length>0)h=yield E.default.recognizeBarcodes(this.backendurl,u);else{const{result:e,originalImage:o}=yield this.bridge.postByTransferringArgs("recognizeBarcodes",[u,{live:t,engineMode:d,barcodeFormats:f,returnBarcodeImage:n,gs1Handling:this.configuration.gs1Handling}]);if(!this.enabled)return;if(null===e)return;h=S.BarcodeResult.fromWorker(e,o)}return this.configuration.barcodesRegexFilter&&(h.barcodes=h.barcodes.filter((t=>{var e;return null===(e=t.text)||void 0===e?void 0:e.match(this.configuration.barcodesRegexFilter)}))),{imageData:u,originalImage:undefined,barcodeResult:h}}))}setRecognitionResolution(t){this.desiredRecognitionResolution=t}getResolution(){return a(this,void 0,void 0,(function*(){return new Promise(((t,e)=>{const n=this.camera.videoSize();n.width>0&&n.height>0?t(w.Size.fromJson(n)):this.camera.didLoadVideo=()=>{const e=this.camera.videoSize();t(w.Size.fromJson(e))}}))}))}saveExtractedImageData(){this.camera.saveExtractedData()}setFinderVisible(t){this.setState({isFinderVisible:t})}setZoom(t){this.setState({zoom:t})}setCameraDirection(t){this.camera.setDirection(t)}updateTorch(t){this.camera.videoStream.updateTorch(t)}getCapabilities(){return this.camera.videoStream.getCapabilities()}render(){var t,e,n,o,r,i,s;const u=(null===(t=this.configuration.scanAndCount)||void 0===t?void 0:t.enabled)?"Tap the shutter button to scan":void 0;return l.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"black"}},this.renderSpinner(null===(e=this.configuration)||void 0===e?void 0:e.spinnerColor),l.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},l.default.createElement(d.default,{configuration:this.configuration,videoConstraints:this.configuration.videoConstraints,mirrored:this.configuration.mirrored,preferredCamera:this.configuration.preferredCamera,zoom:null!==(n=this.state.zoom)&&void 0!==n?n:this.configuration.zoom,onReady:this.onVideoReady,onError:this.onVideoError,ref:t=>{this.camera=t}})),l.default.createElement(y.default,{top:null===(o=this.configuration.scanAndCount)||void 0===o?void 0:o.style.topLabelTop,text:u}),l.default.createElement(m.default,{ref:t=>this.scannedImage=t,image:this.state.image}),this.state.isFinderVisible&&l.default.createElement(f.default,{ref:t=>{this.finder=t},padding:this.props.viewFinderPadding,guidanceConfiguration:this.configuration.userGuidance,configuration:this.configuration.finder}),l.default.createElement(y.default,{bottom:100,text:this.state.bottomHintText}),l.default.createElement(v.default,{visible:"processing"===this.state.action}),(null===(r=this.configuration.overlay)||void 0===r?void 0:r.visible)&&l.default.createElement(p.default,{ref:t=>{t&&(this.overlay=t)},configuration:this.configuration.overlay,onPolygonSelected:t=>{const e=new S.BarcodeResult([t],void 0);this.configuration.onBarcodesDetected(e)},onBarcodeFound:(t,e,n)=>{var o;(null===(o=this.configuration.overlay)||void 0===o?void 0:o.onBarcodeFound)&&this.configuration.overlay.onBarcodeFound(t,e,n)},LabelComponent:b.default,labelComponentConfig:{}}),(null===(i=this.configuration.scanAndCount)||void 0===i?void 0:i.enabled)&&l.default.createElement(g.default,{ref:t=>this.bottomActionBar=t,action:this.state.action,isShowingImage:void 0!==this.state.image,onBurgerClick:()=>{this.popup.push(h.AnimationType.PushBottom,this.barcodes)},onShutterButtonClick:()=>a(this,void 0,void 0,(function*(){(new _.default).flash(),this.setState({action:"processing"});const t=(new Date).getTime(),e=yield this.recognizeBarcodes(!1,!1,!0);console.log("Recognition took:",((new Date).getTime()-t)/1e3),this.recognition=e;const n=this.countLabelText(e.barcodeResult.barcodes);this.setState({action:"manual",bottomHintText:n}),this.scannedImage.update(e.barcodeResult),this.barcodes.push(...e.barcodeResult.barcodes),this.bottomActionBar.update(this.barcodes),e.barcodeResult.barcodes.length>0&&this.configuration.onBarcodesDetected(e.barcodeResult)})),onScanMoreClick:()=>{this.resetCountImage()}}),l.default.createElement(h.default,{ref:t=>this.popup=t,style:null===(s=this.configuration.scanAndCount)||void 0===s?void 0:s.style,onDeleteClick:()=>{if(confirm("Are you sure you want to delete all scanned barcodes?")){for(;this.barcodes.length>0;)this.barcodes.pop();console.log("Cleared barcodes",this.barcodes.length),this.popup.update(this.barcodes),this.bottomActionBar.update(void 0),this.resetCountImage(),this.popup.reset()}}}))}resetCountImage(){this.scannedImage.reset(),this.setState({image:void 0,bottomHintText:void 0})}countLabelText(t){return 0==t.length?"No codes scanned. Try again?":1==t.length?"1 Code Scanned":`${t.length} Codes Scanned`}}e.default=B},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.MediaError=void 0;class r extends Error{constructor(t,e,n){super(e),this.name="",this.name=t,this.message=e,this.webApiError=n}static mediaDevicesUndefined(){return new r(this.MESSAGE.DEVICES_UNDEFINED,"Does your device even have a camera? If so, please use a secure context (HTTPS) or use 'localhost' explicitly.")}static enumerateDevicesFailed(){return new r(this.MESSAGE.DEVICES_UNDEFINED,"Does your device even have a camera? Because we're unable to query query navigator.mediaDevices?.enumerateDevices")}static mediaDeviceNotFound(t){return new r(this.MESSAGE.ENUMERATE_FAILED,"Does your device even have a camera? Because we were unable to query navigator.mediaDevices?.getUserMedia().",t)}static permissionDenied(t){return new r(this.MESSAGE.PERMISSION_DENIED,"Camera permission has not been granted. Please prompt your users again to grant permission.",t)}static unknown(t){return new r(this.MESSAGE.UNKNOWN,"\n Unfortunately we were unable to query navigator.mediaDevicess.getUserMedia, \n and unable to determine the reason why. This may be caused by the user to denied the permission prompt. \n Or you may be using an in-app browser that itself has not been granted permission to use the camera.\n Or your users may be using a niche browser that does not support the media API at all!\n ",t)}static tryCheckPermission(){return o(this,void 0,void 0,(function*(){if(!this.permissionState)try{const t=yield navigator.permissions.query({name:"camera"});this.permissionState=t.state}catch(t){this.permissionState=this.PERMISSION_STATE.UNKNOWN}}))}static hasDeniedPermission(){return this.permissionState===this.PERMISSION_STATE.DENIED}static hasCheckedPermission(){return!!this.permissionState}}e.MediaError=r,r.PERMISSION_STATE={GRANTED:"granted",DENIED:"denied",PROMPT:"prompt",UNKNOWN:"unknown"},r.MESSAGE={DEVICES_UNDEFINED:"MediaError_DevicesUndefined",DEVICE_NOT_FOUND:"MediaError_DeviceNotFound",ENUMERATE_FAILED:"MediaError_EnumerateFailed",PERMISSION_DENIED:"MediaError_PermissionDenied",UNKNOWN:"MediaError_Unknown"}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionOverlayProps=e.BarcodePolygonElement=void 0;const r=o(n(1)),i=n(14),a=n(76),s=n(5),l=o(n(125)),u=o(n(126));e.BarcodePolygonElement=class{};e.SelectionOverlayProps=class{};class c extends r.default.Component{constructor(t){super(t),this.state={polygonElements:[]}}update(t,e,n,o,i){const c=[];i.forEach((o=>{const r=new a.BarcodeOverlay(o);r.points=void 0===t?s.Point.scaleListToHtmlElement(o.points,n,e.video):o.points.map((e=>{const o=new s.Point(e.x,e.y);return o.x*=t.width/n.width,o.y*=t.height/n.height,o.y+=t.y,o.x+=t.x,o})),c.push(r)}));const d=[];this.state.polygonElements.forEach((t=>{const e=c.find((e=>e.code.equals(t.element.code)));let n=!1;void 0===e?t.updatedAt+1e3<l.default.now()&&(n=!0):(t.element=e,t.polygon=r.default.createElement(u.default,{key:t.element.code.id(),ref:e=>t.polygonRef=e,configuration:this.props.configuration,element:t.element,animateToPoints:e.points,onClick:this.onPolygonClick.bind(this)}),t.label=r.default.createElement(this.props.LabelComponent,Object.assign({},this.props.labelComponentConfig,{key:t.element.code.id(),ref:e=>t.labelRef=e,configuration:this.props.configuration,element:t.element,animateToPoints:e.points,onClick:this.onPolygonClick.bind(this)})),t.updatedAt=l.default.now()),n||d.push(t)})),c.forEach((t=>{if(void 0===this.state.polygonElements.find((e=>e.element.code.equals(t.code)))){let e,n;const o=r.default.createElement(u.default,{key:t.code.id(),ref:o=>{e=o,void 0!==n&&this.props.onBarcodeFound(t.code,e,n)},configuration:this.props.configuration,element:t,onClick:this.onPolygonClick.bind(this)}),i=r.default.createElement(this.props.LabelComponent,Object.assign({},this.props.labelComponentConfig,{key:t.code.id(),ref:o=>{n=o,void 0!==e&&this.props.onBarcodeFound(t.code,e,n)},configuration:this.props.configuration,element:t,onClick:this.onPolygonClick.bind(this)})),a={element:t,polygon:o,label:i,polygonRef:e,labelRef:n,updatedAt:l.default.now()};d.push(a)}})),this.setState({polygonElements:d})}onPolygonClick(t){var e,n,o,r;t.highlighted=!t.highlighted,this.forceUpdate(),this.state.polygonElements.forEach((e=>{var n;const o=e.labelRef;o&&e.label.props.element.code.equals(t.code)&&(o.update(t),null===(n=e.polygonRef)||void 0===n||n.update(t))})),t.highlighted&&(null===(n=(e=this.props).onPolygonSelected)||void 0===n||n.call(e,t.code)),null===(r=(o=this.props).onPolygonClick)||void 0===r||r.call(o,t.code)}render(){var t,e;return r.default.createElement("div",{style:Object.assign({width:"100%",height:"100%",position:"absolute"},this.props.style)},r.default.createElement(i.motion.svg,{style:{position:"absolute",maxWidth:"100%",width:"100%",height:"100%"}},null===(t=this.state.polygonElements)||void 0===t?void 0:t.map((t=>t.polygon))),null===(e=this.state.polygonElements)||void 0===e?void 0:e.map((t=>t.label)))}}e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeOverlay=void 0;e.BarcodeOverlay=class{constructor(t){this.highlighted=!1,this.code=t,this.points=[]}}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ShutterButton=e.ShutterButtonProps=void 0;const r=o(n(1));n(128);const i=o(n(30));e.ShutterButtonProps=class{};class a{constructor(t){this.lastTime=0,this.lastDuration=0,this.t=0,this.element=null,this.animationClass="",this.animationClass=t}setDuration(t){const e=Date.now()/1e3,n=e-this.lastTime;this.lastDuration&&(this.t+=n%this.lastDuration/this.lastDuration,this.t-=0|this.t);const o=-t*this.t;this.element&&(this.element.style.animationDuration=`${t}s`,this.element.style.animationDelay=`${o}s`,this.element.classList.remove(this.animationClass),this.element.offsetHeight,this.element.classList.add(this.animationClass)),this.lastTime=e,this.lastDuration=t}}class s extends r.default.Component{constructor(){super(...arguments),this.inner1=new a("scanbot-shutter-rotate"),this.inner2=new a("scanbot-shutter-rotate")}render(){return r.default.createElement("div",{className:"scanbot-shutter-button",style:this.props.style,onClick:this.props.onClick},this.captureBackground(),this.captureInnerCircle(),this.captureSearchingInner1(),this.captureSearchingInner2())}updateAnimationSpeed(t){"searching"==t?(this.inner1.setDuration(3),this.inner2.setDuration(2)):(this.inner1.setDuration(1.5),this.inner2.setDuration(.75))}componentDidMount(){this.updateAnimationSpeed(this.props.action)}componentDidUpdate(){this.updateAnimationSpeed(this.props.action)}captureBackground(){return this.svgBase(null,r.default.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},this.path("M32 0c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32C14.327 64 0 49.673 0 32 0 14.327 14.327 0 32 0zm0 3C15.984 3 3 15.984 3 32s12.984 29 29 29 29-12.984 29-29S48.016 3 32 3z")))}captureInnerCircle(){const{action:t}=this.props;return this.svgBase({"scanbot-shutter-button-part":!0,"scanbot-shutter-fade-in":"processing"==t||"manual"==t,"scanbot-shutter-fade-out":"searching"==t||"capturing"==t,"scanbot-shutter-pulse-fast":"processing"==t},r.default.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},r.default.createElement("circle",{cx:"32",cy:"32",r:"24",fill:this.props.color,fillRule:"nonzero"})))}captureSearchingInner1(){const{action:t}=this.props;return this.svgBase({"scanbot-shutter-button-part":!0,"scanbot-shutter-fade-in":"searching"==t||"capturing"==t,"scanbot-shutter-fade-out":"processing"==t||"manual"==t},r.default.createElement("g",{fill:"none",fillOpacity:"0.7",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},this.path("M44.24 51.476a1 1 0 01-1.066-1.692A20.981 20.981 0 0053 32c0-11.598-9.402-21-21-21a1 1 0 010-2c12.703 0 23 10.297 23 23a22.98 22.98 0 01-10.76 19.476z")),(t=>{this.inner1.element=t}))}captureSearchingInner2(){const{action:t}=this.props;return this.svgBase({"scanbot-shutter-button-part":!0,"scanbot-shutter-fade-in":"searching"==t||"capturing"==t,"scanbot-shutter-fade-out":"processing"==t||"manual"==t},r.default.createElement("g",{fill:"none",fillOpacity:"0.4",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},this.path("M46.624 35.35a1 1 0 01-1.95-.445C44.89 33.96 45 32.988 45 32c0-7.18-5.82-13-13-13a1 1 0 010-2c8.284 0 15 6.716 15 15 0 1.138-.127 2.26-.376 3.35z")),(t=>{this.inner2.element=t}))}path(t){return r.default.createElement("path",{fill:this.props.color,fillRule:"nonzero",d:t})}svgBase(t,e,n){return r.default.createElement("div",{className:(0,i.default)(t),ref:n},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 64 64"},e))}}e.ShutterButton=s},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodePolygonLabelProps=void 0;const r=o(n(1)),i=n(14),a=n(5);e.BarcodePolygonLabelProps=class{};class s extends r.default.Component{constructor(t){super(t),this.state={element:t.element}}style(t){this.customStyle=t,this.forceUpdate()}update(t){this.setState({element:t})}formatText(t,e){if("None"!==e)return"Text"===e?t.text:t.format+" ("+t.text+")"}render(){var t,e,n,o,s;const l=this.state.element,u=this.props.configuration.style,c=this.formatText(l.code,this.props.configuration.textFormat),d=a.Point.width(null!==(t=this.props.animateToPoints)&&void 0!==t?t:l.points);if(!c)return null;if(!l.points)return null;const f=null!==(n=null===(e=this.customStyle)||void 0===e?void 0:e.backgroundColor)&&void 0!==n?n:l.highlighted?u.highlightedTextBackgroundColor:u.textBackgroundColor,h=null!==(s=null===(o=this.customStyle)||void 0===o?void 0:o.textColor)&&void 0!==s?s:l.highlighted?u.highlightedTextColor:u.textColor;return r.default.createElement(i.motion.div,{ref:t=>this.label=t,onClick:()=>{this.props.onClick&&this.props.onClick(l)},style:{x:a.Point.lowestX(l.points),y:a.Point.highestY(l.points)+3,backgroundColor:f,fontSize:12,width:d,overflow:"hidden",maxLines:2,color:h,borderRadius:5,position:"absolute",padding:"3px 7px",textAlign:"center",maxHeight:50,lineBreak:"anywhere",lineHeight:"22px"},animate:this.props.animateToPoints?{x:a.Point.lowestX(this.props.animateToPoints),y:a.Point.highestY(this.props.animateToPoints)+30}:{}},c)}}e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeScannerConfiguration=void 0;const o=n(15),r=n(80),i=n(135),a=n(23);class s extends a.ViewFinderScannerConfiguration{constructor(){super(o.ScannerConfiguration.DEFAULT_VIDEO_RESOLUTION_HD),this.captureDelay=1e3,this.overlay=new r.SelectionOverlayConfiguration,this.scanAndCount=new i.BarcodeCountConfiguration,this.gs1Handling="PARSE",this.onBarcodesDetected=function(t){}}static fromJson(t){const e=new s;return this.mapValues(t,e,["style","videoConstraints","overlay","scanAndCount","finder","userGuidance"]),this.mapFinderConfiguration(e,t),t.overlay&&(this.mapValues(t.overlay,e.overlay,["style"]),t.overlay.style&&this.mapValues(t.overlay.style,e.overlay.style)),t.scanAndCount&&(this.mapValues(t.scanAndCount,e.scanAndCount,["style"]),t.scanAndCount.style&&this.mapValues(t.scanAndCount.style,e.scanAndCount.style)),this.mapVideoConstraints(t,e),e}}e.BarcodeScannerConfiguration=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionOverlayConfiguration=e.SelectionOverlayStyleConfiguration=e.BarcodePolygonLabelStyle=e.BarcodePolygonStyle=void 0;e.BarcodePolygonStyle=class{};e.BarcodePolygonLabelStyle=class{};class o{constructor(){this.defaultFillColor="rgba(255, 0, 0, 0.3)",this.defaultHighlightedFillColor="rgba(0, 255, 0, 0.3)",this.polygonStrokeColor="rgba(255, 0, 0, 1)",this.polygonFillColor=this.defaultFillColor,this.polygonStrokeWidth=1,this.polygonCornerRadius=0,this.highlightedPolygonStrokeColor="rgba(0, 255, 0, 1)",this.highlightedPolygonFillColor=this.defaultHighlightedFillColor,this.highlightedPolygonStrokeWidth=2,this.highlightedPolygonCornerRadius=0,this.textColor="white",this.textBackgroundColor="rgba(255, 0, 0, 0.9)",this.highlightedTextColor="white",this.highlightedTextBackgroundColor="rgba(0, 255, 0, 0.9)"}}e.SelectionOverlayStyleConfiguration=o;e.SelectionOverlayConfiguration=class{constructor(){this.visible=!1,this.textFormat="Text",this.automaticSelectionEnabled=!1,this.style=new o}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.barcodeScannerViewConfigFromRtuUiConfig=void 0;const o=n(79),r=n(1),i=n(4);e.barcodeScannerViewConfigFromRtuUiConfig=function(t){return(0,r.useMemo)((()=>{const e=(new o.BarcodeScannerConfiguration).videoConstraints;return e.facingMode="FRONT"===t.cameraConfiguration.cameraModule?"user":"environment",{videoConstraints:e,backgroundColor:i.SBTheme.getColorValue(t.backgroundColor),userGuidance:t.userGuidance,finder:t.viewFinder,barcodesRegexFilter:new RegExp(t.recognizerConfiguration.barcodesRegexFilter)}}),[t])}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DrawerHeaderContent=e.DrawerHeaderContentProps=void 0;const r=o(n(1)),i=n(42),a=n(2),s=n(9),l=n(4);e.DrawerHeaderContentProps=class{},e.DrawerHeaderContent=function(t){const e=Object.assign(Object.assign({},t.title),{text:l.SBTheme.getLocalizedBarcodeText(t.title.text).replace("%d",t.numBarcodes.toString())});return r.default.createElement(r.default.Fragment,null,r.default.createElement(i.StyledButton,Object.assign({},t.leftButton)),r.default.createElement(a.Typography,{sx:{flex:2,textAlign:"center",fontWeight:600,fontSize:18}},r.default.createElement(s.StyledText,{config:e})),r.default.createElement(i.StyledButton,Object.assign({},t.rightButton)))}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Props=void 0;const r=o(n(1)),i=n(2),a=o(n(144)),s=n(25),l=n(4),u=n(9);e.Props=class{},e.default=function(t){return 0!==t.numBarcodes?null:r.default.createElement("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",marginTop:"auto",marginBottom:"auto",overflowY:"scroll"}},t.style.placeholderIcon.visible&&r.default.createElement(i.Avatar,{style:{backgroundColor:l.SBTheme.getColorValue(t.style.placeholderIconBackground),width:100,height:100}},r.default.createElement(a.default,{color:l.SBTheme.getColorValue(t.style.placeholderIcon.color)})),r.default.createElement(i.Typography,{style:{marginTop:20},variant:"h6"},r.default.createElement(u.StyledText,{config:t.style.placeholderTitle})),r.default.createElement(i.Typography,{style:{marginTop:20,paddingLeft:"10%",paddingRight:"10%",maxWidth:400,textAlign:"center"},variant:"body2"},r.default.createElement(u.StyledText,{config:t.style.placeholderSubtitle})),t.onStartClick&&r.default.createElement(s.DialogButton,Object.assign({style:{width:"60%",marginTop:20}},t.style.startScanningButton,{visible:!0,onClick:t.onStartClick})))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useDragListener=e.TouchEvent=e.DragProps=void 0;const o=n(1),r=n(5);e.DragProps=class{};e.TouchEvent=class{},e.useDragListener=function(t,e,n){const i=(0,o.useRef)(),a=(0,o.useRef)(null),[s,l]=(0,o.useState)(),[u,c]=(0,o.useState)(!1),d=(0,o.useRef)([]),f=t=>{let n="none";if(d.current.length>0){const e=200,o=((t,e)=>{let n=t[0],o=Math.abs(n.time-e);for(let r=1;r<t.length;r++){const i=Math.abs(t[r].time-e);i<o&&(n=t[r],o=i)}return n})(d.current,t.timeStamp-e),r=o.y-t.clientY,i=100;r>i?n="up":r<-i&&(n="down")}d.current.splice(0,d.current.length),e(new r.Point(t.clientX,t.clientY),n)},h={onPointerDown:t=>{t.target.setPointerCapture(t.pointerId),c(!0),a.current=new r.Point(t.clientX,t.clientY),l(r.Point.empty()),t.stopPropagation()},onPointerMove:e=>{if(!u)return;const n=new r.Point(e.clientX,e.clientY);i.current=e,l(n),t(n),d.current.push({x:e.clientX,y:e.clientY,time:e.timeStamp})},onPointerUp:t=>{t.target.releasePointerCapture(t.pointerId),c(!1),f(t)},onPointerCancel:t=>{t.target.releasePointerCapture(t.pointerId),c(!1),n()}};return{startPoint:a,currentPoint:s,props:h,stop:()=>{i.current.stopPropagation()},dragOngoing:u}}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DraggableBaseContainer=void 0;const r=o(n(1));class i extends r.default.Component{constructor(){super(...arguments),this.POINT_COUNT=4,this.items=[],this.DRAG_BUFFER=5}get pointSize(){var t,e;return(null===(t=this.props.style)||void 0===t?void 0:t.size)?(null===(e=this.props)||void 0===e?void 0:e.scale)?this.props.style.size/this.props.scale:this.props.style.size:0}get pointStyle(){var t,e;return{width:this.pointSize+"px",height:this.pointSize+"px",border:null===(t=this.props.style)||void 0===t?void 0:t.border,borderRadius:this.pointSize/2+"px",backgroundColor:null===(e=this.props.style)||void 0===e?void 0:e.color,position:"absolute",cursor:"pointer",zIndex:500}}nextIndex(t){return(t+1)%this.POINT_COUNT}previousIndex(t){return(t-1+this.POINT_COUNT)%this.POINT_COUNT}isHorizontal(t){return t%2==0}isOutOfBounds(t,e){return t<-this.DRAG_BUFFER||t>e+this.DRAG_BUFFER}get invisibleHandleStyle(){return{width:"50px",height:"50px",opacity:0,position:"relative",top:this.pointSize/2-25+"px",left:this.pointSize/2-25+"px",borderRadius:"25px"}}}e.DraggableBaseContainer=i},function(t,e){t.exports=function(t,e,n,o){var r=n?n.call(o,t,e):void 0;if(void 0!==r)return!!r;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=t[u],d=e[u];if(!1===(r=n?n.call(o,c,d,u):void 0)||void 0===r&&c!==d)return!1}return!0}},function(t,e,n){"use strict";e.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(t,e,n){"use strict";function o(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}n.d(e,"a",(function(){return i}));var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=o((function(t){return r.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}))},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ScanbotSDK=void 0;const r=o(n(20));e.ScanbotSDK=r.default},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.WorkerBridge=void 0;const r=n(52),i=n(92);class a{constructor(t,e,n){t||(t=r.Constants.CDN_PATH+r.Constants.DEFAULT_WASM_FOLDER),this.core=new i.WorkerBridge(t,e),this.coreInitializationSuccessful=this.core.postByCopyingArgs("initialize",n)}awaitInitialized(){return o(this,void 0,void 0,(function*(){yield this.getCoreForCommand()}))}postByCopyingArgs(t,e){return o(this,void 0,void 0,(function*(){return(yield this.getCoreForCommand(t)).postByCopyingArgs(t,e)}))}postByTransferringArgs(t,e){return o(this,void 0,void 0,(function*(){return(yield this.getCoreForCommand(t)).postByTransferringArgs(t,e)}))}getCoreForCommand(t=""){return o(this,void 0,void 0,(function*(){const e=yield this.coreInitializationSuccessful;if("getLicenseInfo"===t||e)return this.core;throw new Error("WASM not initialized successfully. This can be due to an invalid license or problems loading the WASM file. Please check the console for more information.")}))}}e.WorkerBridge=a,a.ASM_JS="ScanbotSDK.Core.js"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=""},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WorkerBridge=void 0;var o=n(53);e.WorkerBridge=class{constructor(t,e){const{requestSuffix:n=""}=e||{},r=(0,o.getBuildType)(e),i=`${t}${t.endsWith("/")?"":"/"}ScanbotSDK.Core${r}.js${n}`;if((0,o.isRemote)(i)){const t=new Blob([`importScripts("${i}")`]);this.instance=new Worker(URL.createObjectURL(t))}else this.instance=new Worker(i);this.continuations={},this.nextTicketId=1,this.instance.onmessage=t=>{const{log:e,logError:n}=t.data;if(e)return void console.log(...e);if(n)return void console.error(...n);const{ticket:o,result:r,error:i}=t.data,{resolve:a,reject:s}=this.continuations[o];delete this.continuations[o],i?s(i):a(r)}}post(t,e,n){return new Promise(((r,i)=>{const a=(0,o.gatherTransferables)(e,n),s=this.nextTicketId++;this.continuations[s]={resolve:r,reject:i},this.instance.postMessage({command:t,args:e,ticket:s},a)}))}postByCopyingArgs(t,e){return this.post(t,e,!0)}postByTransferringArgs(t,e){return this.post(t,e,!1)}destroy(){this.instance.terminate()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LicenseInfo=void 0;class o{isValid(){return"Okay"===this.status||"Trial"===this.status}static fromJson(t){const e=new o;return e.status=t.licenseStatus,e.description=t.description,e}}e.LicenseInfo=o},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});e.default=class{constructor(t,e){this._sdk=t,this._pdfOperation=e}addPage(t){return o(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByCopyingArgs("addPageToPdf",[this._pdfOperation,t])}))}complete(){return o(this,void 0,void 0,(function*(){return yield this._sdk.bridge.postByCopyingArgs("completePdf",[this._pdfOperation])}))}}},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=n(57);e.default=class{constructor(t,e){this._sdk=t,this._tiffOperation=e}addPage(t){return o(this,void 0,void 0,(function*(){let e;e=t instanceof r.ImageProcessor?t.__token:t,yield this._sdk.bridge.postByCopyingArgs("addPageToTiff",[this._tiffOperation,e])}))}complete(){return o(this,void 0,void 0,(function*(){return yield this._sdk.bridge.postByCopyingArgs("completeTiff",[this._tiffOperation])}))}}},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=n(97);e.default=class{constructor(t,e,n){this._sdk=t,this._mrzRecognizerToken=e,this.enableFrameAccumulation=n}recognize(t){return o(this,void 0,void 0,(function*(){try{let e=yield this._sdk.bridge.postByTransferringArgs("recognizeMRZ",[yield this._mrzRecognizerToken,t]);if(null===e)return;const n=r.MrzResult.fromWorker(e);return!this.enableFrameAccumulation&&n&&delete n.verificationSuccessful,n}catch(t){return void console.warn(t)}}))}recognizeURL(t){return o(this,void 0,void 0,(function*(){return new Promise((e=>{const n=document.createElement("canvas"),r=document.createElement("img");r.src=t,r.onload=()=>o(this,void 0,void 0,(function*(){n.width=r.width,n.height=r.height;const t=n.getContext("2d");t.drawImage(r,0,0);const o=t.getImageData(0,0,r.width,r.height),i=yield this.recognize(o);e(i||void 0)}))}))}))}release(){return o(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("releaseObject",[yield this._mrzRecognizerToken])}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MrzResult=e.MrzCheckDigits=e.MrzField=void 0;class o{constructor(t,e,n,o){this.value=e,this.confidence=n,this.validated=o,this.name=t}}e.MrzField=o;class r{}e.MrzCheckDigits=r;class i{static fromWorker(t){let e=new i;e.verificationSuccessful=t.verificationSuccessful;const n=new r,a=t.recognitionSuccessful;return(t.fields||[]).forEach((t=>{switch(t.name){case"DocumentNumber":e.documentNumber=new o(t.name,t.text,t.confidence,t.validated);break;case"IssuingAuthority":e.issuingAuthority=new o(t.name,t.text,t.confidence,t.validated);break;case"DepartmentOfIssuance":e.departmentOfIssuance=new o(t.name,t.text,t.confidence,t.validated);break;case"GivenNames":e.givenNames=new o(t.name,t.text,t.confidence,t.validated);break;case"Surname":e.surname=new o(t.name,t.text,t.confidence,t.validated);break;case"Nationality":e.nationality=new o(t.name,t.text,t.confidence,t.validated);break;case"BirthDate":e.birthDate=new o(t.name,t.text,t.confidence,t.validated);break;case"Gender":e.gender=new o(t.name,t.text,t.confidence,t.validated);break;case"ExpiryDate":e.expiryDate=new o(t.name,t.text,t.confidence,t.validated);break;case"PersonalNumber":e.personalNumber=new o(t.name,t.text,t.confidence,t.validated);break;case"TravelDocType":e.travelDocType=new o(t.name,t.text,t.confidence,t.validated);break;case"TravelDocTypeVariant":e.travelDocTypeVariant=new o(t.name,t.text,t.confidence,t.validated);break;case"DiscreetIssuingStateOrOrganization":e.discreetIssuingStateOrOrganization=new o(t.name,t.text,t.confidence,t.validated);break;case"DocumentTypeCode":e.kindOfDocumentField=new o(t.name,t.text,t.confidence,t.validated);break;case"DocumentType":e.documentType=new o(t.name,t.text,t.confidence,t.validated);break;case"Format":e.format=new o(t.name,t.text,t.confidence,t.validated);break;case"PINCode":e.pinCode=new o(t.name,t.text,t.confidence,t.validated);break;case"LanguageCode":e.languageCode=new o(t.name,t.text,t.confidence,t.validated);break;case"VersionNumber":e.versionNumber=new o(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitGeneral":n.general=new o(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitDocumentNumber":n.documentNumber=new o(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitBirthDate":n.birthDate=new o(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitExpiryDate":n.expiryDate=new o(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitPersonalNumber":n.personalNumber=new o(t.name,t.text,t.confidence,t.validated);break;case"Optional1":e.optional1=new o(t.name,t.text,t.confidence,t.validated);break;case"Optional2":e.optional2=new o(t.name,t.text,t.confidence,t.validated)}})),e.documentType||(e.documentType=new o("DocumentType",t.documentType)),a?e.checkDigits=n:e=void 0,e}}e.MrzResult=i},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});e.default=class{constructor(t,e){this._sdk=t,this._OcrEngineToken=e}performOcr(t){return o(this,void 0,void 0,(function*(){return yield this._sdk.bridge.postByCopyingArgs("performOcr",[this._OcrEngineToken,t])}))}recognizeURL(t){return o(this,void 0,void 0,(function*(){return new Promise((e=>{const n=document.createElement("canvas"),r=document.createElement("img");r.src=t,r.onload=()=>o(this,void 0,void 0,(function*(){n.width=r.width,n.height=r.height;const t=n.getContext("2d");t.drawImage(r,0,0);const o=t.getImageData(0,0,r.width,r.height),i=yield this.performOcr(o);e(i)}))}))}))}release(){return o(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("releaseObject",[this._OcrEngineToken])}))}}},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=n(100);e.default=class{constructor(t,e){this._sdk=t,this._textDataScannerToken=e}recognize(t){return o(this,void 0,void 0,(function*(){try{let e=yield this._sdk.bridge.postByTransferringArgs("recognizeTextLine",[yield this._textDataScannerToken,t]);if(null===e)return;return r.TextDataScannerResult.fromWorker(e)}catch(t){return void console.warn(t)}}))}cleanRecognitionQueue(){return o(this,void 0,void 0,(function*(){try{yield this._sdk.bridge.postByTransferringArgs("cleanTextLineRecognitionQueue",[yield this._textDataScannerToken])}catch(t){return void console.warn(t)}}))}recognizeURL(t){return o(this,void 0,void 0,(function*(){return new Promise((e=>{const n=document.createElement("canvas"),r=document.createElement("img");r.src=t,r.onload=()=>o(this,void 0,void 0,(function*(){n.width=r.width,n.height=r.height;const t=n.getContext("2d");t.drawImage(r,0,0);const o=t.getImageData(0,0,r.width,r.height),i=yield this.recognize(o);i&&e(i)}))}))}))}release(){return o(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("releaseObject",[yield this._textDataScannerToken])}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextDataScannerResult=void 0;class o{static fromWorker(t){if(!t)return;const e=new o;return e.text=t.rawText,e.confidence=t.confidence,e.validated=t.validationSuccessful,e}}e.TextDataScannerResult=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextDataScannerConfiguration=void 0;const o=n(15),r=n(23);class i extends r.ViewFinderScannerConfiguration{constructor(){super(o.ScannerConfiguration.DEFAULT_VIDEO_RESOLUTION_HD),this.onTextDetected=function(t){},this.finder.aspectRatio.width=6,this.userGuidance.title.text="Please hold the device over the text to start scanning"}static fromJson(t){const e=new i;return this.mapFinderConfiguration(e,t),this._fromJson(e,t)}}e.TextDataScannerConfiguration=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExpectedBarcode=void 0;const o=n(6);class r extends o.PartiallyConstructible{constructor(t={}){if(super(),this.count=1,void 0===t.barcodeValue)throw new Error("barcodeValue must be present in constructor argument");if(this.barcodeValue=t.barcodeValue,void 0===t.title)throw new Error("title must be present in constructor argument");if(this.title=null!=t.title?t.title:null,void 0===t.image)throw new Error("image must be present in constructor argument");this.image=null!=t.image?t.image:null,void 0!==t.count&&(this.count=t.count)}}e.ExpectedBarcode=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeScannerConfiguration=void 0;const o=n(61),r=n(3),i=n(3),a=n(66),s=n(65),l=n(62),u=n(3),c=n(60),d=n(67),f=n(6),h=n(40),p=n(3),g=n(3),m=n(3),v=n(3),y=n(38),b=n(3),A=n(3),S=n(3),C=n(39),_=n(64),w=n(3),x=n(40);class O extends f.PartiallyConstructible{constructor(t={}){super(),this.version="1.0",this.screen="BarcodeScanner",this.palette=new m.Palette({sbColorPrimary:"#C8193C",sbColorPrimaryDisabled:"#F5F5F5",sbColorNegative:"#FF3737",sbColorPositive:"#4EFFB4",sbColorWarning:"#FFCE5C",sbColorSecondary:"#FFEDEE",sbColorSecondaryDisabled:"#F5F5F5",sbColorOnPrimary:"#FFFFFF",sbColorOnSecondary:"#C8193C",sbColorSurface:"#FFFFFF",sbColorOutline:"#EFEFEF",sbColorOnSurfaceVariant:"#707070",sbColorOnSurface:"#000000",sbColorSurfaceLow:"#00000026",sbColorSurfaceHigh:"#0000007A",sbColorModalOverlay:"#000000A3"}),this.localization=new s.BarcodeTextLocalization({}),this.backgroundColor="?sbColorSurfaceLow",this.topBar=new C.TopBarConfiguration({title:new A.StyledText({text:"?topBarTitle",color:"?sbColorOnPrimary"}),mode:"SOLID",backgroundColor:"?sbColorPrimary",cancelButton:new u.ButtonConfiguration({visible:!0,text:"?topBarCancelButton",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new p.ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})})}),this.actionBar=new o.ActionBarConfiguration({flashButton:new v.RoundButton({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),zoomButton:new v.RoundButton({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),flipCameraButton:new v.RoundButton({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.viewFinder=new x.ViewFinderConfiguration({visible:!0,style:new h.FinderCorneredStyle({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),overlayColor:"?sbColorSurfaceLow",aspectRatio:new r.AspectRatio({width:1,height:1})}),this.userGuidance=new _.UserGuidanceConfiguration({visible:!0,title:new A.StyledText({text:"?userGuidance",color:"?sbColorOnPrimary"}),background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow",strokeWidth:0})}),this.cameraPermission=new d.CameraPermissionScreen({background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new g.IconStyle({visible:!0,color:"?sbColorOnSurface"}),closeButton:new u.ButtonConfiguration({visible:!0,text:"?cameraPermissionCloseButton",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new p.ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),enableCameraTitle:new A.StyledText({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new A.StyledText({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.cameraConfiguration=new c.CameraConfiguration({}),this.recognizerConfiguration=new a.BarcodeRecognizerConfiguration({}),this.useCase=new y.SingleScanningMode({}),this.sound=new b.Sound({successBeepEnabled:!0,soundType:"MODERN_BEEP"}),this.vibration=new w.Vibration({enabled:!0}),this.timeouts=new S.Timeouts({autoCancelTimeout:0,initialScanDelay:0}),void 0!==t.version&&(this.version=t.version),void 0!==t.screen&&(this.screen=t.screen),void 0!==t.palette&&(this.palette=new m.Palette(t.palette)),void 0!==t.localization&&(this.localization=new s.BarcodeTextLocalization(t.localization)),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.topBar&&(this.topBar=new C.TopBarConfiguration(t.topBar)),void 0!==t.actionBar&&(this.actionBar=new o.ActionBarConfiguration(t.actionBar)),void 0!==t.viewFinder&&(this.viewFinder=new x.ViewFinderConfiguration(t.viewFinder)),void 0!==t.userGuidance&&(this.userGuidance=new _.UserGuidanceConfiguration(t.userGuidance)),void 0!==t.cameraPermission&&(this.cameraPermission=new d.CameraPermissionScreen(t.cameraPermission)),void 0!==t.cameraConfiguration&&(this.cameraConfiguration=new c.CameraConfiguration(t.cameraConfiguration)),void 0!==t.recognizerConfiguration&&(this.recognizerConfiguration=new a.BarcodeRecognizerConfiguration(t.recognizerConfiguration)),void 0!==t.useCase&&(this.useCase=l.BarcodeUseCase.From(t.useCase)),void 0!==t.sound&&(this.sound=new b.Sound(t.sound)),void 0!==t.vibration&&(this.vibration=new w.Vibration(t.vibration)),void 0!==t.timeouts&&(this.timeouts=new S.Timeouts(t.timeouts))}}e.BarcodeScannerConfiguration=O},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeScannerResult=void 0;const o=n(68),r=n(6);class i extends r.PartiallyConstructible{constructor(t={}){super(),this.items=[],void 0!==t.items&&(this.items=t.items.map((t=>new o.BarcodeItem(t))))}}e.BarcodeScannerResult=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScanbotAlertDialog=void 0;const o=n(3),r=n(6),i=n(3);class a extends r.PartiallyConstructible{constructor(t={}){if(super(),this.title=new i.StyledText({text:"Title",color:"?sbColorOnSurface"}),this.subtitle=new i.StyledText({text:"Standard explanation message text.",color:"?sbColorOnSurfaceVariant"}),this.sheetColor="?sbColorSurface",this.modalOverlayColor="?sbColorModalOverlay",this.dividerColor="?sbColorOutline",void 0!==t.title&&(this.title=new i.StyledText(t.title)),void 0!==t.subtitle&&(this.subtitle=new i.StyledText(t.subtitle)),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0===t.okButton)throw new Error("okButton must be present in constructor argument");if(this.okButton=new o.ButtonConfiguration(t.okButton),void 0===t.cancelButton)throw new Error("cancelButton must be present in constructor argument");this.cancelButton=new o.ButtonConfiguration(t.cancelButton)}}e.ScanbotAlertDialog=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VINScannerConfiguration=void 0;const o=n(15),r=n(23);class i extends r.ViewFinderScannerConfiguration{constructor(){super(o.ScannerConfiguration.DEFAULT_VIDEO_RESOLUTION_HD),this.onTextDetected=function(t){},this.finder.aspectRatio.width=6,this.userGuidance.title.text="Please hold the device over the vehicle identification number to start scanning"}static fromJson(t){const e=new i;return this.mapFinderConfiguration(e,t),this._fromJson(e,t)}}e.VINScannerConfiguration=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LicenseError=void 0;class o extends Error{constructor(t){super(t.description),this.name="LicenseError"}}e.LicenseError=o},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(n(69));e.default=class{constructor(t,e){this._sdk=t,this._token=e}analyze(t){return o(this,void 0,void 0,(function*(){i.default.throwIfMissingBuffer(t);return yield this._sdk.bridge.postByCopyingArgs("documentQualityAnalyzerAnalyze",[this._token,t])}))}release(){return o(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("releaseObject",[this._token])}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.ScanbotBinarizationFilter=class{constructor(){this.outputMode="BINARY"}toWireType(){return{$type:"ScanbotBinarizationFilter",outputMode:this.outputMode}}};e.CustomBinarizationFilter=class{constructor(){this.preset="PRESET_4",this.outputMode="BINARY",this.denoise=.5,this.radius=32}toWireType(){return{$type:"CustomBinarizationFilter",preset:this.preset,outputMode:this.outputMode,denoise:this.denoise,radius:this.radius}}};e.ColorDocumentFilter=class{constructor(){this.valueStrength=1.5,this.saturationStrength=1.5,this.saturationOffset=64}toWireType(){return{$type:"ColorDocumentFilter",valueStrength:this.valueStrength,saturationStrength:this.saturationStrength,saturationOffset:this.saturationOffset}}};e.BrightnessFilter=class{constructor(){this.brightness=0}toWireType(){return{$type:"BrightnessFilter",brightness:this.brightness}}};e.ContrastFilter=class{constructor(){this.contrast=0}toWireType(){return{$type:"ContrastFilter",contrast:this.contrast}}};e.GrayscaleFilter=class{constructor(){this.autocontrast=!0,this.borderWidthFraction=.06,this.blackOutliersFraction=0,this.whiteOutliersFraction=.02}toWireType(){return{$type:"GrayscaleFilter",autocontrast:this.autocontrast,borderWidthFraction:this.borderWidthFraction,blackOutliersFraction:this.blackOutliersFraction,whiteOutliersFraction:this.whiteOutliersFraction}}};e.LegacyFilter=class{constructor(){this.filterType=0}toWireType(){return{$type:"LegacyFilter",filterType:this.filterType}}};e.WhiteBlackPointFilter=class{constructor(){this.blackPoint=0,this.whitePoint=1}toWireType(){return{$type:"WhiteBlackPointFilter",blackPoint:this.blackPoint,whitePoint:this.whitePoint}}}},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},a=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const l=s(n(1)),u=n(112),c=n(113),d=i(n(17)),f=s(n(46));class h{static createBarcodeScanner(t){return new Promise(((e,n)=>{f.default.INSTANCE.initialize(t.sound);const o=h.createContainer("barcode-scanner-controller"),r=(0,u.createRoot)(o),i=()=>a(this,void 0,void 0,(function*(){return new Promise((t=>{window.setTimeout((()=>{r.unmount(),document.body.removeChild(o),t()}),0)}))}));r.render(l.default.createElement(c.BarcodeScannerController,{configuration:t,onClose:()=>a(this,void 0,void 0,(function*(){yield i(),e(null)})),onSubmit:t=>a(this,void 0,void 0,(function*(){yield i(),e(t)})),onError:t=>a(this,void 0,void 0,(function*(){yield i(),n(t)}))}))}))}static createContainer(t){const e=document.createElement("div");return e.id=t,e.style.position="fixed",e.style.width="100%",e.style.height="100%",e.style.zIndex="1000",e.style.top="0",e.style.backgroundColor="rgba(0, 0, 0, 0.5)",document.body.appendChild(e),e}}h.Config=d,e.default=h},function(t,e,n){const{render:o,hydrate:r,unmountComponentAtNode:i}=n(1);function a(t){return{render(e){o(e,t)},unmount(){i(t)}}}e.createRoot=a,e.hydrateRoot=function(t,e){return r(e,t),a(t)}},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeScannerController=e.Props=void 0;const s=i(n(1)),l=n(2),u=a(n(2)),c=n(4),d=a(n(16)),f=n(114),h=n(141),p=n(153),g=n(19),m=n(154),v=n(49),y=n(41),b=n(155);e.Props=class{},e.BarcodeScannerController=function(t){const e=(0,s.useRef)((0,v.createSBTheme)()),[n,o]=(0,s.useState)(!1),[r,i]=(0,s.useState)(!1),[a,A]=(0,s.useState)(t.configuration.timeouts.initialScanDelay<=0),S=(0,s.useRef)(!1),C=(0,s.useRef)(),_=(0,s.useRef)(),w=(0,s.useMemo)((()=>new g.BarcodeMapper(t.configuration.useCase.barcodeInfoMapping.barcodeItemMapper,((t,e)=>{o(!0),C.current=()=>{o(!1),t()},_.current=()=>{o(!1),e()}}))),[]);let x;if((0,s.useEffect)((()=>{c.SBTheme.setPalette(t.configuration.palette),c.SBTheme.setBarcodeTextLocalization(t.configuration.localization)}),[t.configuration]),(0,s.useEffect)((()=>{if(t.configuration.timeouts.autoCancelTimeout>0){const e=setTimeout((()=>{t.onClose()}),t.configuration.timeouts.autoCancelTimeout);return()=>{clearTimeout(e)}}}),[]),(0,s.useEffect)((()=>{if(t.configuration.timeouts.initialScanDelay>0){const e=setTimeout((()=>{A(!0)}),t.configuration.timeouts.initialScanDelay);return()=>{clearTimeout(e)}}}),[]),(0,s.useEffect)((()=>{S.current=!n&&a}),[n,a]),"SingleScanningMode"===t.configuration.useCase._type)x=s.default.createElement(f.SingleScanningModeController,{configuration:t.configuration,onClose:t.onClose,onSubmit:t.onSubmit,onCameraPermissionDenied:()=>i(!0),scanningEnabled:S});else{if("MultipleScanningMode"!==t.configuration.useCase._type)throw new Error("Unsupported use case type");x=s.default.createElement(h.MultipleScanningModeController,{configuration:t.configuration,onSubmit:t.onSubmit,onCameraPermissionDenied:()=>i(!0),scanningEnabled:S})}return s.default.createElement(s.default.Fragment,null,s.default.createElement(y.DynamicViewportHeightCssProperty,null),s.default.createElement(p.ErrorBoundary,{onError:t.onError,fallback:s.default.createElement("div",null,"Error")},s.default.createElement(c.SBPaletteContext.Provider,{value:(0,c.createSBPaletteContextValue)(t.configuration.palette)},s.default.createElement(g.BarcodeMapperContext.Provider,{value:w},s.default.createElement(l.ThemeProvider,{theme:e.current},s.default.createElement(m.BarcodeMappingErrorDialog,Object.assign({open:n,handleCancel:_.current,handleRetry:C.current,modalOverlayColor:t.configuration.useCase.barcodeInfoMapping.modalOverlayColor,dividerColor:t.configuration.useCase.barcodeInfoMapping.dividerColor,sheetColor:t.configuration.useCase.barcodeInfoMapping.sheetColor},t.configuration.useCase.barcodeInfoMapping.errorState)),s.default.createElement(u.default,{sx:{height:`100 * ${y.dvhCssValue}`,width:"100vw",backgroundColor:c.SBTheme.getColorValue(t.configuration.backgroundColor)}},s.default.createElement(d.default,Object.assign({onBackPress:t.onClose},t.configuration.topBar),!r&&x,r&&s.default.createElement(b.CameraPermissionDenied,{onAppClose:t.onClose,config:t.configuration.cameraPermission}))))))))}},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},a=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SingleScanningModeController=void 0;const l=i(n(1)),u=n(2),c=n(115),d=n(19),f=n(16),h=n(45),p=s(n(46)),g=s(n(71)),m=n(72),v=n(81);e.SingleScanningModeController=function(t){const[e,n]=(0,l.useState)(null),[o,r]=(0,l.useState)(!0),i=(0,l.useMemo)((()=>"__sb_"+Math.random()),[]),s=(0,l.useContext)(d.BarcodeMapperContext),y=t.configuration.useCase,b=Object.assign(Object.assign({},(0,v.barcodeScannerViewConfigFromRtuUiConfig)(t.configuration)),{onBarcodesDetected:e=>{e.barcodes.length>0&&!y.arOverlay.visible&&t.scanningEnabled.current&&n(e.barcodes[0])},onError:t=>{},returnBarcodeImage:!y.barcodeInfoMapping.barcodeItemMapper,containerId:i,captureDelay:0}),A=n=>a(this,void 0,void 0,(function*(){let o;o=null===e?[]:[yield s.mapBarcodeToBarcodeItem(n,1)];const r={items:o};t.onSubmit(r)}));(0,l.useEffect)((()=>{e&&(p.default.INSTANCE.beep(t.configuration.sound),g.default.INSTANCE.vibrate(t.configuration.vibration))}),[e]),(0,l.useEffect)((()=>{null===e||y.confirmationSheetEnabled||A(e)}),[e,y.confirmationSheetEnabled]);const S=s.useBarcodeMappedData(e);(0,l.useEffect)((()=>{"FAILED"===(null==S?void 0:S.state)&&n(null)}),[null==S?void 0:S.state]);const C=(0,l.useContext)(f.NavigationBarSizeContext);return l.default.createElement(l.default.Fragment,null,l.default.createElement(c.BarcodeInfoDialog,Object.assign({open:!!S&&["LOADED","LOADING"].includes(S.state),handleCancel:()=>{n(null)},handleSubmit:()=>{A(e)},barcodeMappedData:S},(0,c.barcodeInfoDialogStylingPropsFromConfig)(y),{displayRightArrow:!1,modalOverlayColor:y.barcodeInfoMapping.modalOverlayColor})),l.default.createElement(u.Box,{id:i,sx:{width:"100%",height:C.remainingVisibleBodyHeight}},l.default.createElement(m.BarcodeScanner,{cameraConfiguration:t.configuration.cameraConfiguration,scanningPaused:null!==e,setActionButtonsVisible:r,viewFinderPadding:{minTopPadding:C.minTopPaddingForViewFinder,minBottomPadding:o?2*h.ACTION_BUTTON_PADDING+h.ACTION_BUTTON_HEIGHT:0},barcodeScannerViewConfig:b,arOnBarcodeClick:t=>n(t),arOnBarcodeEnter:e=>{y.arOverlay.automaticSelectionEnabled&&t.scanningEnabled.current&&n(e)},arOverlay:Object.assign(Object.assign({},y.arOverlay),{counterBadge:Object.assign(Object.assign({},y.arOverlay.counterBadge),{visible:!1})}),containerId:i,actionBarConfig:t.configuration.actionBar,actionBarBottomPadding:h.ACTION_BUTTON_PADDING,onCameraPermissionDenied:t.onCameraPermissionDenied})))}},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeInfoDialog=e.barcodeInfoDialogStylingPropsFromConfig=void 0;const s=n(2),l=i(n(1)),u=n(43),c=n(4),d=a(n(2)),f=a(n(2)),h=n(25),p=n(9),g=n(44);e.barcodeInfoDialogStylingPropsFromConfig=function(t){return{sheetColorLoaded:t.sheetColor,sheetColorLoading:t.barcodeInfoMapping.sheetColor,barcodeImageVisible:t.barcodeImageVisible,barcodeTitle:t.barcodeTitle,barcodeSubtitle:t.barcodeSubtitle,cancelButton:t.cancelButton,submitButton:t.submitButton,dividerColor:t.dividerColor,loadingMessage:t.barcodeInfoMapping.loadingMessage}},e.BarcodeInfoDialog=function(t){const e=(0,l.useContext)(c.SBPaletteContext).getColorValue,n=!t.barcodeMappedData||"LOADED"!==t.barcodeMappedData.state,o={backgroundColor:e(n?t.sheetColorLoading:t.sheetColorLoaded)},[r,i]=l.default.useState(),a=(0,l.useRef)((()=>{}));(0,l.useEffect)((()=>{t.open&&i(!1)}),[t.open]);const m=()=>{a.current=t.handleCancel,i(!0)};return l.default.createElement(g.StyledDialog,{modalOverlayColor:t.modalOverlayColor,open:t.open&&!r,fullWidth:!0,TransitionProps:{onExited:()=>{r&&a.current()}},onClose:()=>{n||m()}},l.default.createElement(s.DialogContent,{style:o},l.default.createElement(u.BarcodeInfo,Object.assign({},t,{maxNumberOfTitleLines:2,maxNumberOfSubtitleLines:1,imageSize:68}))),l.default.createElement(s.DialogActions,{style:o},l.default.createElement(d.default,{container:!0,spacing:2,sx:{overflow:"hidden"}},l.default.createElement(d.default,{item:!0,xs:12},l.default.createElement(f.default,{color:e(t.dividerColor)})),n?l.default.createElement(d.default,{item:!0,xs:12,sx:{textAlign:"center"}},l.default.createElement(s.Box,null,l.default.createElement(s.CircularProgress,{sx:{color:e(t.loadingMessage.color),verticalAlign:"middle",mr:2}}),l.default.createElement(p.StyledText,{config:t.loadingMessage}))):l.default.createElement(l.default.Fragment,null,l.default.createElement(d.default,{item:!0,xs:6},l.default.createElement(h.DialogButton,Object.assign({style:{width:"100%"},onClick:m},t.cancelButton))),l.default.createElement(d.default,{item:!0,xs:6},l.default.createElement(h.DialogButton,Object.assign({style:{width:"100%"},onClick:()=>{a.current=t.handleSubmit,i(!0)}},t.submitButton)))))))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.usePromise=void 0;const o=n(1);e.usePromise=function(t){const e=(0,o.useRef)(!0);(0,o.useEffect)((()=>(e.current=!0,()=>{e.current=!1})));const[,n]=(0,o.useReducer)((t=>t+1),0),r=(0,o.useRef)();return(0,o.useMemo)((()=>{r.current={loading:!0,value:void 0,error:null}}),[t]),function(t,e){(0,o.useMemo)((()=>{t&&t.then((t=>{e({loading:!1,error:null,value:t})})).catch((t=>{e({loading:!1,error:{reason:t},value:void 0})}))}),[t])}(t,(t=>{r.current=t,e.current&&n()})),t?r.current:null}},function(t,e,n){"use strict";n.r(e),e.default="data:audio/mp4;base64,AAAAHGZ0eXBNNEEgAAACAE00QSBpc29taXNvMgAAAAhmcmVlAAAEcm1kYXQBQCKAo30ghS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwDmVAjh8QBrRiUH/88pKh3gJPmPt9t8oIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwDsl6UY83aVqFeq3aVmmYyFp70/kJT+A9hdePd7Z7aRSFKZBhCUP6E1rS/9+DhfmhvTknCnQzE+QHVPD6rhSIRpGIAFmBioF1XkxwAQjxKkQMc+qECgXnCAU1IcgpFDnWo02EdihsnrUx/1bJAUo+x6//p8VmoS0iuleHvPnKj9mjjHOoaDGI/s2DHcYI66Grp+5pezZuKJExJOzoyJRdmv6ltO6ibTdTDZ1YqLauKTebYOtpTWnh3/K3kBQmN3NsieqxzHeZKNiFphWuYSWMhaHIZRnRt6O/WzTXYFGrG0wBT54NCQ3wtSpqr5dHbQN2yY0jcckhLUieNtOSjS3u1NuMqWbOx1zHwlHfJKgI349OU9iZEzeN3rCVbBVdrdcAEW9Cm2Ji2FjQNkiFBViV6ofFsNVeVqpKgpsf3/iWtBG6cpMqFHjy2QhyBEnPtwTbWbm9b1u7frF3bnaVykqieEvTKfqnCYL2u4g1CLiQ4Zb8hkkTL9tnGmdMOeqIkUcHZ0zsspzvHOUXJTlssZTRjqcIsp514HJO9YhVRXALKaCRKQkbMEty3CstONNYzuhq57bbccc+/Pq22226ueWXLLbTTw4bFIoQoGWepZBRJWQFh4yui2+evKOqLp+rLKJ4LKcAtQ7XA0aLCyMRVDDOmuoYcnFEmIrpzmRQNQIJ5HWvOesgzjrK071chBhESdztJ0sMqhdAAyjegdEYPNyA4BCDQtLGRRKQQBQIhXYqGZ65Pu1S7XMxxVXEOWtJGMAARETyDKiMN4tsmFfcvmo+sHuHZrY196169rbT/sHFGNK1cnJrBK2vDu7b0AsBd9VaKrsNHL/KxFHm3Yma/+S365yvTF+abktGk7JSrS++mXLBw76AiuijMPpwzPoP4jNzZjI+R/p7zboMSKiFvZkMx8CDIPGB+K2Ee7XaOqAu8z6cWgazCp76DdzIwsmGw2TiczmQMAafEX0U6lQOAA6jQJAfCsBrSxVH+Hw8fPKIpB7JuhzAB/BwAAAw9tb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAATwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAACOnRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAEAAAAAAAAATwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAE4AAAgAAAEAAAAAAbJtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAVgFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAFdbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAAEhc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAQAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgABAASAgIAUQBUAAAAAARrvAAEa7wWAgIACEggGgICAAQIAAAAgc3R0cwAAAAAAAAACAAAABQAABAAAAAABAAABgAAAABxzdHNjAAAAAAAAAAEAAAABAAAABgAAAAEAAAAsc3RzegAAAAAAAAAAAAAABgAAALkAAAC6AAABIAAAAQAAAAC9AAAAGgAAABRzdGNvAAAAAAAAAAEAAAAsAAAAGnNncGQBAAAAcm9sbAAAAAIAAAAB//8AAAAcc2JncAAAAAByb2xsAAAAAQAAAAYAAAABAAAAYXVkdGEAAABZbWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAsaWxzdAAAACSpdG9vAAAAHGRhdGEAAAABAAAAAExhdmY2MC4zLjEwMA=="},function(t,e,n){"use strict";n.r(e),e.default="data:audio/mp4;base64,AAAAHGZ0eXBNNEEgAAAAAE00QSBtcDQyaXNvbQAAAAFtZGF0AAAAAAAACHchIANAaBv6AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOCFO4v////////gyh+L1JkJB36Cv0yBUdzB8/8/b8vveozPf+/6eH18deTh9kOp11urWAB5ZsMnhMwSjUCF2MQub4hybjxDhHACGof0XiT9tAHVOwt4NPtPOMFr/ndlTpTNXy79GYIfXP7VkPs99ySHNOFkpNrBS1pClU3rRGHp6Dy9FBIlk4KbBNBLGMJRcWQxuVsVJCSMnGw1FuIUrBN2UJLoEMhurMxpIiyGAweBvyfNJy4FbxqDm3WDjCtzP+3yVmOjxhIBDANLYyeG05LNyCZONEOk/c4hCj3Y2XQkgTI7y/39g0a+MuEoAdbRz4gSgRJnjEGB0TnOB0LtiL0XB9kwz2SwCBB0MvIByUSWTPTsRdCA4PvEmwnNdTnJT5/kPGk4swkTgOOuWJBI0EkxFs5mmNIR6wSFql36Hn03/Lf/uHp+6aTmBY0HJ6P6X1atw/Y8vK72LCWpsq0beo5KkrrrMe1eabaDyfZRPYfgPwH4Dv4CHU663VrAA8wchbBRlqQNnYNlYNhYNigNhoTBsTCcTCgLBEQCX+XfNd+3y+piKntTerXdXpDWRpLzsKmJ4iRM4ig+I6R65pDawx8Ry4cxfeifbsbzK/TxNhafR9y2zFVicy8nCVkU6CkmLckGtqbuYvhruBP0TriLNTU1TNhW6tUCdUSyneDUWAox5RTMlF2W1san5MQRlj7Btm2bZhoqoUUAJlpaat54WVuTyOxqwzNVhPenFR9KBpuA3qrUrT+3ShOUdXAkGXmCrMBxH3XmROdVSkS8cccRMOKTN+7OOEIQrMYIcna5hipAqPHk6VSgy0gGXljIk7GR/O606SyhhgglQIZLyxxOa/ZANmzZkyZMlRoqIt/T6xZHaFLcZ6n8jSgTVoOGsK5MvOlIBBkR+AtM5hvkTG2UzEhEAcsA7bZfCZmmZmZjQnqfn/yRwXzQtlZljFYd93mGppQSDDV/oz8HKkKjElN9Pu/inFmh3IHFyXlrJ/dodwM2EUkLZff1jWCO84wYUa3JB52yTMCETuUgA0BWB+I4hDBR1xoligVhgVhgNhYdBcLCcakAb1XLO/eZ9cUtvv6cNzrRYdMWgFvJySSSSscWFxCQElKcwc2dFkyos8dHfXPYFSt0klO2wUeIUxNKf5LiWYGm57bV0dipv7Qpw9uRRu23CuNIbT7++AuwEnyFWIQP0OpdUhc7u2k2fKW3mTZZxCSb+gVCjOzNf7LzxdBpbZxYwuNkcRlqAMdRMhq+tXmbLkMGGph20w4JvwvBm+x4Wtomh4lz0GGBVGQ96+JUXhvqQQAQPRTHtn+e7SwaCKMXnEEWXevaFVrPVEX7wxIBbbcpAHXj2DQz/vO9M0FHzyQFtegQjjn+fM99jgBE2fLJs/PLcErzrmCGJdVHZ19uxTErdmR6viG6cetew2MYQFm5AIDdPmjeXifvbFcjkYQWUsqKoBQJAKMp50hLtJRCKLCTSw2f7e0wzzhr6eGhjlyOQ8blgBiR0fxcjQYM5rBBM/wzuDe972u2f/mN7u8zVqGu7QADPHgAK4PxW8nJJJJLgISwUZaaRYmFRWRBEIwQKfmepncccZoqHnVy0WnFag51Yt48agPiK7D59zNlI+6YR9SHvnKoiJCcRzsskEGDgIrLQoLEgDguNTzeNvuxVpc8wntXmUlTQMa9WLn/geS8F7ku6Vt+I9yiumFP6I5hbEGeXac1BCB3YA3gNA0rLFPwrWq//VvtF6JGKIOVA12lCnpZl8NJojK1yqVsVKp+ZqbDpq0S1duspmvSvCbwmftOnwnfuNqBCnzZfzZF9fkqxTCqlq8GmR3bGK+1uvEcF55cGGx8BNANhkk1438/rWbXeTtPGfukvhUxZBp0M5447+2SFiQW674ySiGSRHgyqcqU0x39tbz3afnWt5BKNHDYj1lzq6sg8dcJlJnSQDUEba4npgEoAqVUkksoqM0UUO3VXDo3Mablwd2GLAoXjgK071swbuWhQJ2AjGYsBx5dtOMYCyPVh+K3jxqA+IuAhTrc+3KVqmDuVmIO5TZmQbDr4vUV+0338fXQ3665PiYnII1REb2klWhUcwjqi/pMe4yYZaDbo9T1ougUKE5h1jUim2NZxM71zBZVa/tWam6wXlmFVVHGuvL76pT3PUGufbO9YwevQzCvXhsabRuJyJjz8A1Haftmewy4gZ0FWlMIO5BoXB49j0TeIiikaxP9ZHcD9oI6x2H4DajNt5WgRXj6/H72V+gj2bgMDVkIZ36j1Tl+wdO6fvFsz56a5V6t9lS+gyWSOvuQP9bqtYgqWlsthXSFkrTfNqni6jSQ5vN9Fp1iYJODbUg8Sg0lYLbNEM7oqvrggxzq13IfO9hGQ0MQVpMIAR0aSGMFWOZzpJmXG1IcjppdZkINTYN2UvrHmGUrVBHvRuueFPuy2GzQoSnMCvkT3WvaR/LoVYw7Voy47wdJee2Va623AFXWNINOpByyoc9SQU4vPQ6X0PMBLQs6GdMlx+RlC3VoMDOryeFFolCTD8B+A/A4AAANKbW9vdgAAAGxtdmhkAAAAANcxfvfXMX73AACsRAAADbEAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAdx0cmFrAAAAXHRraGQAAAAB1zF+99cxfvcAAAABAAAAAAAADbEAAAAAAAAAAAAAAAABAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAF4bWRpYQAAACBtZGhkAAAAANcxfvfXMX73AACsRAAAGABVxAAAAAAAMWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABDb3JlIE1lZGlhIEF1ZGlvAAAAAR9taW5mAAAAEHNtaGQAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAONzdGJsAAAAZ3N0c2QAAAAAAAAAAQAAAFdtcDRhAAAAAAAAAAEAAAAAAAAAAAACABAAAAAArEQAAAAAADNlc2RzAAAAAAOAgIAiAAAABICAgBRAFQAYAAAB9AAAAfQABYCAgAISEAaAgIABAgAAABhzdHRzAAAAAAAAAAEAAAAGAAAEAAAAABxzdHNjAAAAAAAAAAEAAAABAAAABgAAAAEAAAAsc3RzegAAAAAAAAAAAAAABgAAAP4AAAF+AAABjwAAAYQAAAFeAAABegAAABRzdGNvAAAAAAAAAAEAAAAsAAAA+nVkdGEAAADybWV0YQAAAAAAAAAiaGRscgAAAAAAAAAAbWRpcgAAAAAAAAAAAAAAAAAAAAAAxGlsc3QAAAC8LS0tLQAAABxtZWFuAAAAAGNvbS5hcHBsZS5pVHVuZXMAAAAUbmFtZQAAAABpVHVuU01QQgAAAIRkYXRhAAAAAQAAAAAgMDAwMDAwMDAgMDAwMDA4NDAgMDAwMDAyMEYgMDAwMDAwMDAwMDAwMERCMSAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMA=="},function(t,e,n){"use strict";n.r(e),e.default="data:audio/mp4;base64,AAAAHGZ0eXBNNEEgAAACAE00QSBpc29taXNvMgAAAAhmcmVlAAASCG1kYXQBQCKAo3/4hS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS7/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd+aIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwBQCKAo3/4hS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS7/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd+aIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwA6jQEQfEIQGIQaqctMIv9EpiYforpaDbT80WfPFRSswKfd8cy6kN/+IUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0u//EKWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaXfViFLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwA6jQQpRY6EYNCcKDAqAAEUgC2wFy0kF7JTgecsqIp6pxd/lHO7kUuSCLFK6n2mPOKfj5aKhQPOaRtBEKFS85eIYbr71AGaAPJTSIHeIhXTcpA5i155UICz3nXk0Cz0A8QhxIhoqQIJ2Be9MIEiJ6GpuMa1fPXcJmIoxDUKpZuJozBa6iFmjy7O/genSlwPKL6xaiiL8Y1XtgBDY7ke/CAOoawOqmZm6suSVQPbxzaxZJpWFcWva4RqTil72HqDpc2N4eG3KA0JkU8G58RNabxVq9gSLwysPKIzL1fZVF1FQwllEs4YUKpPtoMw2VtepdbZHqGriAsZ5Lu154uiewW41szI4RHfpWOWSH7s1LAzlv/xClpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWl36AhS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0vAA6jQEYVEIDEQDEKCAYhAIXMdbaI5q82OvhmYS1FO11cD3Yt4EwZI+aTsqoctJJaN0FKvNqorQmK3SUWpNOtf+uKNIxX3xeTEq8LKb/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd/+IUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0u+GEKWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpeABMDQD6WqsfRABwAUSib4c3/4hS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS7/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd+EIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS8AAAO4bW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAAAD6AAAAfgAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAiJ0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAABAAAAAAAAAfgAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAH4AAAIAAABAAAAAAGabWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAAfQAAAF8BVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAABRW1pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAABCXN0YmwAAABnc3RzZAAAAAAAAAABAAAAV21wNGEAAAAAAAAAAQAAAAAAAAAAAAEAEAAAAAAfQAAAAAAAM2VzZHMAAAAAA4CAgCIAAQAEgICAFEAVAAAAAAH0AAAAvXkFgICAAhWIBoCAgAECAAAAIHN0dHMAAAAAAAAAAgAAAAUAAAQAAAAAAQAAA8AAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAYAAAABAAAAFHN0c3oAAAAAAAADAAAAAAYAAAAUc3RjbwAAAAAAAAABAAAALAAAABpzZ3BkAQAAAHJvbGwAAAACAAAAAf//AAAAHHNiZ3AAAAAAcm9sbAAAAAEAAAAGAAAAAQAAASJ1ZHRhAAABGm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAA7Wlsc3QAAAAzqW5hbQAAACtkYXRhAAAAAQAAAAAyNTAgTWlsbGlzZWNvbmRzIG9mIFNpbGVuY2UAAAApqUFSVAAAACFkYXRhAAAAAQAAAABBbmFyIFNvZnR3YXJlIExMQwAAAClhQVJUAAAAIWRhdGEAAAABAAAAAEFuYXIgU29mdHdhcmUgTExDAAAAI6lhbGIAAAAbZGF0YQAAAAEAAAAAQmxhbmsgQXVkaW8AAAAkqXRvbwAAABxkYXRhAAAAAQAAAABMYXZmNjAuMy4xMDAAAAAZY3BpbAAAABFkYXRhAAAAFQAAAAAA"},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const r=o(n(1)),i=o(n(27)).default.svg`
2
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=89)}([function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"e",(function(){return l}));var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)};function a(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n}Object.create;function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function l(t,e,n){if(n||2===arguments.length)for(var o,r=0,i=e.length;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}Object.create},function(t,e,n){"use strict";n.r(e),n.d(e,"Component",(function(){return S})),n.d(e,"Fragment",(function(){return A})),n.d(e,"createContext",(function(){return G})),n.d(e,"createElement",(function(){return v})),n.d(e,"createRef",(function(){return b})),n.d(e,"useCallback",(function(){return pt})),n.d(e,"useContext",(function(){return gt})),n.d(e,"useDebugValue",(function(){return mt})),n.d(e,"useEffect",(function(){return ut})),n.d(e,"useErrorBoundary",(function(){return vt})),n.d(e,"useId",(function(){return yt})),n.d(e,"useImperativeHandle",(function(){return ft})),n.d(e,"useLayoutEffect",(function(){return ct})),n.d(e,"useMemo",(function(){return ht})),n.d(e,"useReducer",(function(){return lt})),n.d(e,"useRef",(function(){return dt})),n.d(e,"useState",(function(){return st})),n.d(e,"Children",(function(){return Dt})),n.d(e,"PureComponent",(function(){return Lt})),n.d(e,"StrictMode",(function(){return Ae})),n.d(e,"Suspense",(function(){return Ft})),n.d(e,"SuspenseList",(function(){return Nt})),n.d(e,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return ce})),n.d(e,"cloneElement",(function(){return ge})),n.d(e,"createFactory",(function(){return fe})),n.d(e,"createPortal",(function(){return Yt})),n.d(e,"default",(function(){return Le})),n.d(e,"findDOMNode",(function(){return ve})),n.d(e,"flushSync",(function(){return be})),n.d(e,"forwardRef",(function(){return kt})),n.d(e,"hydrate",(function(){return te})),n.d(e,"isElement",(function(){return xe})),n.d(e,"isFragment",(function(){return pe})),n.d(e,"isValidElement",(function(){return he})),n.d(e,"lazy",(function(){return zt})),n.d(e,"memo",(function(){return Pt})),n.d(e,"render",(function(){return Jt})),n.d(e,"startTransition",(function(){return Se})),n.d(e,"unmountComponentAtNode",(function(){return me})),n.d(e,"unstable_batchedUpdates",(function(){return ye})),n.d(e,"useDeferredValue",(function(){return Ce})),n.d(e,"useInsertionEffect",(function(){return we})),n.d(e,"useSyncExternalStore",(function(){return Oe})),n.d(e,"useTransition",(function(){return _e})),n.d(e,"version",(function(){return de}));var o,r,i,a,s,l,u,c,d={},f=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,p=Array.isArray;function g(t,e){for(var n in e)t[n]=e[n];return t}function m(t){var e=t.parentNode;e&&e.removeChild(t)}function v(t,e,n){var r,i,a,s={};for(a in e)"key"==a?r=e[a]:"ref"==a?i=e[a]:s[a]=e[a];if(arguments.length>2&&(s.children=arguments.length>3?o.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return y(t,s,r,i,null)}function y(t,e,n,o,a){var s={type:t,props:e,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++i:a,__i:-1,__u:0};return null==a&&null!=r.vnode&&r.vnode(s),s}function b(){return{current:null}}function A(t){return t.children}function S(t,e){this.props=t,this.context=e}function C(t,e){if(null==e)return t.__?C(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?C(t):null}function _(t,e,n){var o,i=t.__v,a=i.__e,s=t.__P;if(s)return(o=g({},i)).__v=i.__v+1,r.vnode&&r.vnode(o),W(s,o,i,t.__n,void 0!==s.ownerSVGElement,32&i.__u?[a]:null,e,null==a?C(i):a,!!(32&i.__u),n),o.__v=i.__v,o.__.__k[o.__i]=o,o.__d=void 0,o.__e!=a&&w(o),o}function w(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return w(t)}}function x(t){(!t.__d&&(t.__d=!0)&&a.push(t)&&!O.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||l)(O)}function O(){var t,e,n,o=[],i=[];for(a.sort(u);t=a.shift();)t.__d&&(n=a.length,e=_(t,o,i)||e,0===n||a.length>n?(I(o,e,i),i.length=o.length=0,e=void 0,a.sort(u)):e&&r.__c&&r.__c(e,f));e&&I(o,e,i),O.__r=0}function E(t,e,n,o,r,i,a,s,l,u,c){var h,p,g,m,v,y=o&&o.__k||f,b=e.length;for(n.__d=l,L(n,e,y),l=n.__d,h=0;h<b;h++)null!=(g=n.__k[h])&&"boolean"!=typeof g&&"function"!=typeof g&&(p=-1===g.__i?d:y[g.__i]||d,g.__i=h,W(t,g,p,r,i,a,s,l,u,c),m=g.__e,g.ref&&p.ref!=g.ref&&(p.ref&&F(p.ref,null,g),c.push(g.ref,g.__c||m,g)),null==v&&null!=m&&(v=m),65536&g.__u||p.__k===g.__k?l=P(g,l,t):"function"==typeof g.type&&void 0!==g.__d?l=g.__d:m&&(l=m.nextSibling),g.__d=void 0,g.__u&=-196609);n.__d=l,n.__e=v}function L(t,e,n){var o,r,i,a,s,l=e.length,u=n.length,c=u,d=0;for(t.__k=[],o=0;o<l;o++)null!=(r=t.__k[o]=null==(r=e[o])||"boolean"==typeof r||"function"==typeof r?null:"string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?y(null,r,null,null,r):p(r)?y(A,{children:r},null,null,null):void 0===r.constructor&&r.__b>0?y(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)?(r.__=t,r.__b=t.__b+1,s=T(r,n,a=o+d,c),r.__i=s,i=null,-1!==s&&(c--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof r.type&&(r.__u|=65536)):s!==a&&(s===a+1?d++:s>a?c>l-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==o+d&&(r.__u|=65536))):(i=n[o])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=C(i)),V(i,i,!1),n[o]=null,c--);if(c)for(o=0;o<u;o++)null!=(i=n[o])&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=C(i)),V(i,i))}function P(t,e,n){var o,r;if("function"==typeof t.type){for(o=t.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=t,e=P(o[r],e,n));return e}t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function B(t,e){return e=e||[],null==t||"boolean"==typeof t||(p(t)?t.some((function(t){B(t,e)})):e.push(t)),e}function T(t,e,n,o){var r=t.key,i=t.type,a=n-1,s=n+1,l=e[n];if(null===l||l&&r==l.key&&i===l.type)return n;if(o>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||s<e.length;){if(a>=0){if((l=e[a])&&0==(131072&l.__u)&&r==l.key&&i===l.type)return a;a--}if(s<e.length){if((l=e[s])&&0==(131072&l.__u)&&r==l.key&&i===l.type)return s;s++}}return-1}function k(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||h.test(e)?n:n+"px"}function M(t,e,n,o,r){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||k(t.style,e,"");if(n)for(e in n)o&&n[e]===o[e]||k(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?o?n.u=o.u:(n.u=Date.now(),t.addEventListener(e,i?j:D,i)):t.removeEventListener(e,i?j:D,i);else{if(r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&"rowSpan"!==e&&"colSpan"!==e&&"role"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function D(t){if(this.l){var e=this.l[t.type+!1];if(t.t){if(t.t<=e.u)return}else t.t=Date.now();return e(r.event?r.event(t):t)}}function j(t){if(this.l)return this.l[t.type+!0](r.event?r.event(t):t)}function W(t,e,n,o,i,a,s,l,u,c){var d,f,h,m,v,y,b,C,_,w,x,O,L,P,B,T=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(u=!!(32&n.__u),a=[l=e.__e=n.__e]),(d=r.__b)&&d(e);t:if("function"==typeof T)try{if(C=e.props,_=(d=T.contextType)&&o[d.__c],w=d?_?_.props.value:d.__:o,n.__c?b=(f=e.__c=n.__c).__=f.__E:("prototype"in T&&T.prototype.render?e.__c=f=new T(C,w):(e.__c=f=new S(C,w),f.constructor=T,f.render=z),_&&_.sub(f),f.props=C,f.state||(f.state={}),f.context=w,f.__n=o,h=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=T.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=g({},f.__s)),g(f.__s,T.getDerivedStateFromProps(C,f.__s))),m=f.props,v=f.state,f.__v=e,h)null==T.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==T.getDerivedStateFromProps&&C!==m&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(C,w),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(C,f.__s,w)||e.__v===n.__v)){for(e.__v!==n.__v&&(f.props=C,f.state=f.__s,f.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),x=0;x<f._sb.length;x++)f.__h.push(f._sb[x]);f._sb=[],f.__h.length&&s.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(C,f.__s,w),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(m,v,y)}))}if(f.context=w,f.props=C,f.__P=t,f.__e=!1,O=r.__r,L=0,"prototype"in T&&T.prototype.render){for(f.state=f.__s,f.__d=!1,O&&O(e),d=f.render(f.props,f.state,f.context),P=0;P<f._sb.length;P++)f.__h.push(f._sb[P]);f._sb=[]}else do{f.__d=!1,O&&O(e),d=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++L<25);f.state=f.__s,null!=f.getChildContext&&(o=g(g({},o),f.getChildContext())),h||null==f.getSnapshotBeforeUpdate||(y=f.getSnapshotBeforeUpdate(m,v)),E(t,p(B=null!=d&&d.type===A&&null==d.key?d.props.children:d)?B:[B],e,n,o,i,a,s,l,u,c),f.base=e.__e,e.__u&=-161,f.__h.length&&s.push(f),b&&(f.__E=f.__=null)}catch(t){e.__v=null,u||null!=a?(e.__e=l,e.__u|=u?160:32,a[a.indexOf(l)]=null):(e.__e=n.__e,e.__k=n.__k),r.__e(t,e,n)}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=R(n.__e,e,n,o,i,a,s,u,c);(d=r.diffed)&&d(e)}function I(t,e,n){for(var o=0;o<n.length;o++)F(n[o],n[++o],n[++o]);r.__c&&r.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){r.__e(t,e.__v)}}))}function R(t,e,n,r,i,a,s,l,u){var c,f,h,g,v,y,b,A=n.props,S=e.props,_=e.type;if("svg"===_&&(i=!0),null!=a)for(c=0;c<a.length;c++)if((v=a[c])&&"setAttribute"in v==!!_&&(_?v.localName===_:3===v.nodeType)){t=v,a[c]=null;break}if(null==t){if(null===_)return document.createTextNode(S);t=i?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,S.is&&S),a=null,l=!1}if(null===_)A===S||l&&t.data===S||(t.data=S);else{if(a=a&&o.call(t.childNodes),A=n.props||d,!l&&null!=a)for(A={},c=0;c<t.attributes.length;c++)A[(v=t.attributes[c]).name]=v.value;for(c in A)v=A[c],"children"==c||("dangerouslySetInnerHTML"==c?h=v:"key"===c||c in S||M(t,c,null,v,i));for(c in S)v=S[c],"children"==c?g=v:"dangerouslySetInnerHTML"==c?f=v:"value"==c?y=v:"checked"==c?b=v:"key"===c||l&&"function"!=typeof v||A[c]===v||M(t,c,v,A[c],i);if(f)l||h&&(f.__html===h.__html||f.__html===t.innerHTML)||(t.innerHTML=f.__html),e.__k=[];else if(h&&(t.innerHTML=""),E(t,p(g)?g:[g],e,n,r,i&&"foreignObject"!==_,a,s,a?a[0]:n.__k&&C(n,0),l,u),null!=a)for(c=a.length;c--;)null!=a[c]&&m(a[c]);l||(c="value",void 0!==y&&(y!==t[c]||"progress"===_&&!y||"option"===_&&y!==A[c])&&M(t,c,y,A[c],!1),c="checked",void 0!==b&&b!==t[c]&&M(t,c,b,A[c],!1))}return t}function F(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){r.__e(t,n)}}function V(t,e,n){var o,i;if(r.unmount&&r.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||F(o,null,e)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){r.__e(t,e)}o.base=o.__P=null,t.__c=void 0}if(o=t.__k)for(i=0;i<o.length;i++)o[i]&&V(o[i],e,n||"function"!=typeof t.type);n||null==t.__e||m(t.__e),t.__=t.__e=t.__d=void 0}function z(t,e,n){return this.constructor(t,n)}function N(t,e,n){var i,a,s,l;r.__&&r.__(t,e),a=(i="function"==typeof n)?null:n&&n.__k||e.__k,s=[],l=[],W(e,t=(!i&&n||e).__k=v(A,null,[t]),a||d,d,void 0!==e.ownerSVGElement,!i&&n?[n]:a?null:e.firstChild?o.call(e.childNodes):null,s,!i&&n?n:a?a.__e:e.firstChild,i,l),t.__d=void 0,I(s,t,l)}function U(t,e){N(t,e,U)}function H(t,e,n){var r,i,a,s,l=g({},t.props);for(a in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)"key"==a?r=e[a]:"ref"==a?i=e[a]:l[a]=void 0===e[a]&&void 0!==s?s[a]:e[a];return arguments.length>2&&(l.children=arguments.length>3?o.call(arguments,2):n),y(t.type,l,r||t.key,i||t.ref,null)}function G(t,e){var n={__c:e="__cC"+c++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,o;return this.getChildContext||(n=[],(o={})[e]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,x(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}o=f.slice,r={__e:function(t,e,n,o){for(var r,i,a;e=e.__;)if((r=e.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(t)),a=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t,o||{}),a=r.__d),a)return r.__E=r}catch(e){t=e}throw t}},i=0,S.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof t&&(t=t(g({},n),this.props)),t&&g(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),x(this))},S.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),x(this))},S.prototype.render=A,a=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(t,e){return t.__v.__b-e.__v.__b},O.__r=0,c=0;var Y,X,Q,$,Z=0,q=[],K=[],J=r,tt=J.__b,et=J.__r,nt=J.diffed,ot=J.__c,rt=J.unmount,it=J.__;function at(t,e){J.__h&&J.__h(X,t,Z||e),Z=0;var n=X.__H||(X.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:K}),n.__[t]}function st(t){return Z=1,lt(xt,t)}function lt(t,e,n){var o=at(Y++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):xt(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],n=o.t(e,t);e!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=X,!X.u)){var r=function(t,e,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(t){return!!t.__c}));if(r.every((function(t){return!t.__N})))return!i||i.call(this,t,e,n);var a=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),!(!a&&o.__c.props===t)&&(!i||i.call(this,t,e,n))};X.u=!0;var i=X.shouldComponentUpdate,a=X.componentWillUpdate;X.componentWillUpdate=function(t,e,n){if(this.__e){var o=i;i=void 0,r(t,e,n),i=o}a&&a.call(this,t,e,n)},X.shouldComponentUpdate=r}return o.__N||o.__}function ut(t,e){var n=at(Y++,3);!J.__s&&wt(n.__H,e)&&(n.__=t,n.i=e,X.__H.__h.push(n))}function ct(t,e){var n=at(Y++,4);!J.__s&&wt(n.__H,e)&&(n.__=t,n.i=e,X.__h.push(n))}function dt(t){return Z=5,ht((function(){return{current:t}}),[])}function ft(t,e,n){Z=6,ct((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))}function ht(t,e){var n=at(Y++,7);return wt(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function pt(t,e){return Z=8,ht((function(){return t}),e)}function gt(t){var e=X.context[t.__c],n=at(Y++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(X)),e.props.value):t.__}function mt(t,e){J.useDebugValue&&J.useDebugValue(e?e(t):t)}function vt(t){var e=at(Y++,10),n=st();return e.__=t,X.componentDidCatch||(X.componentDidCatch=function(t,o){e.__&&e.__(t,o),n[1](t)}),[n[0],function(){n[1](void 0)}]}function yt(){var t=at(Y++,11);if(!t.__){for(var e=X.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function bt(){for(var t;t=q.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Ct),t.__H.__h.forEach(_t),t.__H.__h=[]}catch(e){t.__H.__h=[],J.__e(e,t.__v)}}J.__b=function(t){X=null,tt&&tt(t)},J.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),it&&it(t,e)},J.__r=function(t){et&&et(t),Y=0;var e=(X=t.__c).__H;e&&(Q===X?(e.__h=[],X.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=K,t.__N=t.i=void 0}))):(e.__h.forEach(Ct),e.__h.forEach(_t),e.__h=[],Y=0)),Q=X},J.diffed=function(t){nt&&nt(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==q.push(e)&&$===J.requestAnimationFrame||(($=J.requestAnimationFrame)||St)(bt)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==K&&(t.__=t.__V),t.i=void 0,t.__V=K}))),Q=X=null},J.__c=function(t,e){e.some((function(t){try{t.__h.forEach(Ct),t.__h=t.__h.filter((function(t){return!t.__||_t(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],J.__e(n,t.__v)}})),ot&&ot(t,e)},J.unmount=function(t){rt&&rt(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{Ct(t)}catch(t){e=t}})),n.__H=void 0,e&&J.__e(e,n.__v))};var At="function"==typeof requestAnimationFrame;function St(t){var e,n=function(){clearTimeout(o),At&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,100);At&&(e=requestAnimationFrame(n))}function Ct(t){var e=X,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),X=e}function _t(t){var e=X;t.__c=t.__(),X=e}function wt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function xt(t,e){return"function"==typeof e?e(t):e}function Ot(t,e){for(var n in e)t[n]=e[n];return t}function Et(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var o in e)if("__source"!==o&&t[o]!==e[o])return!0;return!1}function Lt(t,e){this.props=t,this.context=e}function Pt(t,e){function n(t){var n=this.props.ref,o=n==t.ref;return!o&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!o:Et(this.props,t)}function o(e){return this.shouldComponentUpdate=n,v(t,e)}return o.displayName="Memo("+(t.displayName||t.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(Lt.prototype=new S).isPureReactComponent=!0,Lt.prototype.shouldComponentUpdate=function(t,e){return Et(this.props,t)||Et(this.state,e)};var Bt=r.__b;r.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Bt&&Bt(t)};var Tt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function kt(t){function e(e){var n=Ot({},e);return delete n.ref,t(n,e.ref||null)}return e.$$typeof=Tt,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Mt=function(t,e){return null==t?null:B(B(t).map(e))},Dt={map:Mt,forEach:Mt,count:function(t){return t?B(t).length:0},only:function(t){var e=B(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:B},jt=r.__e;r.__e=function(t,e,n,o){if(t.then)for(var r,i=e;i=i.__;)if((r=i.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);jt(t,e,n,o)};var Wt=r.unmount;function It(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=Ot({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return It(t,e,n)}))),t}function Rt(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return Rt(t,e,n)})),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function Ft(){this.__u=0,this.t=null,this.__b=null}function Vt(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function zt(t){var e,n,o;function r(r){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){o=t})),o)throw o;if(!n)throw e;return v(n,r)}return r.displayName="Lazy",r.__f=!0,r}function Nt(){this.u=null,this.o=null}r.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Wt&&Wt(t)},(Ft.prototype=new S).__c=function(t,e){var n=e.__c,o=this;null==o.t&&(o.t=[]),o.t.push(n);var r=Vt(o.__v),i=!1,a=function(){i||(i=!0,n.__R=null,r?r(s):s())};n.__R=a;var s=function(){if(!--o.__u){if(o.state.__a){var t=o.state.__a;o.__v.__k[0]=Rt(t,t.__c.__P,t.__c.__O)}var e;for(o.setState({__a:o.__b=null});e=o.t.pop();)e.forceUpdate()}};o.__u++||32&e.__u||o.setState({__a:o.__b=o.__v.__k[0]}),t.then(a,a)},Ft.prototype.componentWillUnmount=function(){this.t=[]},Ft.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=It(this.__b,n,o.__O=o.__P)}this.__b=null}var r=e.__a&&v(A,null,t.fallback);return r&&(r.__u&=-33),[v(A,null,e.__a?null:t.children),r]};var Ut=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function Ht(t){return this.getChildContext=function(){return t.context},t.children}function Gt(t){var e=this,n=t.i;e.componentWillUnmount=function(){N(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t,n){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),N(v(Ht,{context:e.context},t.__v),e.l)}function Yt(t,e){var n=v(Gt,{__v:t,i:e});return n.containerInfo=e,n}(Nt.prototype=new S).__a=function(t){var e=this,n=Vt(e.__v),o=e.o.get(t);return o[0]++,function(r){var i=function(){e.props.revealOrder?(o.push(r),Ut(e,t,o)):r()};n?n(i):i()}},Nt.prototype.render=function(t){this.u=null,this.o=new Map;var e=B(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Nt.prototype.componentDidUpdate=Nt.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){Ut(t,n,e)}))};var Xt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Qt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,$t=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Zt=/[A-Z0-9]/g,qt="undefined"!=typeof document,Kt=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)};function Jt(t,e,n){return null==e.__k&&(e.textContent=""),N(t,e),"function"==typeof n&&n(),t?t.__c:null}function te(t,e,n){return U(t,e),"function"==typeof n&&n(),t?t.__c:null}S.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(S.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var ee=r.event;function ne(){}function oe(){return this.cancelBubble}function re(){return this.defaultPrevented}r.event=function(t){return ee&&(t=ee(t)),t.persist=ne,t.isPropagationStopped=oe,t.isDefaultPrevented=re,t.nativeEvent=t};var ie,ae={enumerable:!1,configurable:!0,get:function(){return this.class}},se=r.vnode;r.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,o={};for(var r in e){var i=e[r];if(!("value"===r&&"defaultValue"in e&&null==i||qt&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in e&&null==e.value?r="value":"download"===r&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Kt(e.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":$t.test(r)?r=a:-1===n.indexOf("-")&&Qt.test(r)?r=r.replace(Zt,"-$&").toLowerCase():null===i&&(i=void 0):a=r="oninput","oninput"===a&&o[r=a]&&(r="oninputCapture"),o[r]=i}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=B(e.children).forEach((function(t){t.props.selected=-1!=o.value.indexOf(t.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=B(e.children).forEach((function(t){t.props.selected=o.multiple?-1!=o.defaultValue.indexOf(t.props.value):o.defaultValue==t.props.value}))),e.class&&!e.className?(o.class=e.class,Object.defineProperty(o,"className",ae)):(e.className&&!e.class||e.class&&e.className)&&(o.class=o.className=e.className),t.props=o}(t),t.$$typeof=Xt,se&&se(t)};var le=r.__r;r.__r=function(t){le&&le(t),ie=t.__c};var ue=r.diffed;r.diffed=function(t){ue&&ue(t);var e=t.props,n=t.__e;null!=n&&"textarea"===t.type&&"value"in e&&e.value!==n.value&&(n.value=null==e.value?"":e.value),ie=null};var ce={ReactCurrentDispatcher:{current:{readContext:function(t){return ie.__n[t.__c].props.value}}}},de="17.0.2";function fe(t){return v.bind(null,t)}function he(t){return!!t&&t.$$typeof===Xt}function pe(t){return he(t)&&t.type===A}function ge(t){return he(t)?H.apply(null,arguments):t}function me(t){return!!t.__k&&(N(null,t),!0)}function ve(t){return t&&(t.base||1===t.nodeType&&t)||null}var ye=function(t,e){return t(e)},be=function(t,e){return t(e)},Ae=A;function Se(t){t()}function Ce(t){return t}function _e(){return[!1,Se]}var we=ct,xe=he;function Oe(t,e){var n=e(),o=st({h:{__:n,v:e}}),r=o[0].h,i=o[1];return ct((function(){r.__=n,r.v=e,Ee(r)&&i({h:r})}),[t,n,e]),ut((function(){return Ee(r)&&i({h:r}),t((function(){Ee(r)&&i({h:r})}))}),[t]),n}function Ee(t){var e,n,o=t.v,r=t.__;try{var i=o();return!((e=r)===(n=i)&&(0!==e||1/e==1/n)||e!=e&&n!=n)}catch(t){return!0}}var Le={useState:st,useId:yt,useReducer:lt,useEffect:ut,useLayoutEffect:ct,useInsertionEffect:ct,useTransition:_e,useDeferredValue:Ce,useSyncExternalStore:Oe,startTransition:Se,useRef:dt,useImperativeHandle:ft,useMemo:ht,useCallback:pt,useContext:gt,useDebugValue:mt,version:"17.0.2",Children:Dt,render:Jt,hydrate:te,unmountComponentAtNode:me,createPortal:Yt,createElement:v,createContext:G,createFactory:fe,cloneElement:ge,createRef:b,Fragment:A,isValidElement:he,isElement:he,isFragment:pe,findDOMNode:ve,Component:S,PureComponent:Lt,memo:Pt,forwardRef:kt,flushSync:be,unstable_batchedUpdates:ye,StrictMode:A,Suspense:Ft,SuspenseList:Nt,lazy:zt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ce}},function(t,e){t.exports=window["@mui"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timeouts=e.Vibration=e.Sound=e.ButtonConfiguration=e.BadgedButton=e.RoundButton=e.AspectRatio=e.ForegroundStyle=e.BackgroundStyle=e.PolygonStyle=e.IconStyle=e.StyledText=e.Palette=void 0;const o=n(6);class r extends o.PartiallyConstructible{constructor(t={}){super(),this.sbColorPrimary="#C8193C",this.sbColorPrimaryDisabled="#F5F5F5",this.sbColorNegative="#FF3737",this.sbColorPositive="#4EFFB4",this.sbColorWarning="#FFCE5C",this.sbColorSecondary="#FFEDEE",this.sbColorSecondaryDisabled="#F5F5F5",this.sbColorOnPrimary="#FFFFFF",this.sbColorOnSecondary="#C8193C",this.sbColorSurface="#FFFFFF",this.sbColorOutline="#EFEFEF",this.sbColorOnSurfaceVariant="#707070",this.sbColorOnSurface="#000000",this.sbColorSurfaceLow="#00000026",this.sbColorSurfaceHigh="#0000007A",this.sbColorModalOverlay="#000000A3",void 0!==t.sbColorPrimary&&(this.sbColorPrimary=t.sbColorPrimary),void 0!==t.sbColorPrimaryDisabled&&(this.sbColorPrimaryDisabled=t.sbColorPrimaryDisabled),void 0!==t.sbColorNegative&&(this.sbColorNegative=t.sbColorNegative),void 0!==t.sbColorPositive&&(this.sbColorPositive=t.sbColorPositive),void 0!==t.sbColorWarning&&(this.sbColorWarning=t.sbColorWarning),void 0!==t.sbColorSecondary&&(this.sbColorSecondary=t.sbColorSecondary),void 0!==t.sbColorSecondaryDisabled&&(this.sbColorSecondaryDisabled=t.sbColorSecondaryDisabled),void 0!==t.sbColorOnPrimary&&(this.sbColorOnPrimary=t.sbColorOnPrimary),void 0!==t.sbColorOnSecondary&&(this.sbColorOnSecondary=t.sbColorOnSecondary),void 0!==t.sbColorSurface&&(this.sbColorSurface=t.sbColorSurface),void 0!==t.sbColorOutline&&(this.sbColorOutline=t.sbColorOutline),void 0!==t.sbColorOnSurfaceVariant&&(this.sbColorOnSurfaceVariant=t.sbColorOnSurfaceVariant),void 0!==t.sbColorOnSurface&&(this.sbColorOnSurface=t.sbColorOnSurface),void 0!==t.sbColorSurfaceLow&&(this.sbColorSurfaceLow=t.sbColorSurfaceLow),void 0!==t.sbColorSurfaceHigh&&(this.sbColorSurfaceHigh=t.sbColorSurfaceHigh),void 0!==t.sbColorModalOverlay&&(this.sbColorModalOverlay=t.sbColorModalOverlay)}}e.Palette=r;class i extends o.PartiallyConstructible{constructor(t={}){super(),this.visible=!0,this.text="",this.color="#FFFFFF",this.useShadow=!1,void 0!==t.visible&&(this.visible=t.visible),void 0!==t.text&&(this.text=t.text),void 0!==t.color&&(this.color=t.color),void 0!==t.useShadow&&(this.useShadow=t.useShadow)}}e.StyledText=i;class a extends o.PartiallyConstructible{constructor(t={}){super(),this.visible=!0,this.color="#FFFFFF",void 0!==t.visible&&(this.visible=t.visible),void 0!==t.color&&(this.color=t.color)}}e.IconStyle=a;class s extends o.PartiallyConstructible{constructor(t={}){super(),this.strokeColor="#FFFFFFFF",this.fillColor="#30FFFFFF",this.strokeWidth=2,this.cornerRadius=0,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.fillColor&&(this.fillColor=t.fillColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth),void 0!==t.cornerRadius&&(this.cornerRadius=t.cornerRadius)}}e.PolygonStyle=s;class l extends o.PartiallyConstructible{constructor(t={}){super(),this.strokeColor="#FFFFFFFF",this.fillColor="#FFFFFF30",this.strokeWidth=2,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.fillColor&&(this.fillColor=t.fillColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth)}}e.BackgroundStyle=l;class u extends o.PartiallyConstructible{constructor(t={}){super(),this.iconVisible=!0,this.color="#FFFFFF",this.useShadow=!1,void 0!==t.iconVisible&&(this.iconVisible=t.iconVisible),void 0!==t.color&&(this.color=t.color),void 0!==t.useShadow&&(this.useShadow=t.useShadow)}}e.ForegroundStyle=u;class c extends o.PartiallyConstructible{constructor(t={}){super(),this.width=1,this.height=1,void 0!==t.width&&(this.width=t.width),void 0!==t.height&&(this.height=t.height)}}e.AspectRatio=c;class d extends o.PartiallyConstructible{constructor(t={}){super(),this.visible=!0,this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==t.visible&&(this.visible=t.visible),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.foregroundColor&&(this.foregroundColor=t.foregroundColor),void 0!==t.activeBackgroundColor&&(this.activeBackgroundColor=t.activeBackgroundColor),void 0!==t.activeForegroundColor&&(this.activeForegroundColor=t.activeForegroundColor)}}e.RoundButton=d;class f extends o.PartiallyConstructible{constructor(t={}){super(),this.badgeBackgroundColor="#FFFFFF",this.badgeForegroundColor="#C8193C",this.visible=!0,this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==t.badgeBackgroundColor&&(this.badgeBackgroundColor=t.badgeBackgroundColor),void 0!==t.badgeForegroundColor&&(this.badgeForegroundColor=t.badgeForegroundColor),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.foregroundColor&&(this.foregroundColor=t.foregroundColor),void 0!==t.activeBackgroundColor&&(this.activeBackgroundColor=t.activeBackgroundColor),void 0!==t.activeForegroundColor&&(this.activeForegroundColor=t.activeForegroundColor)}}e.BadgedButton=f;class h extends o.PartiallyConstructible{constructor(t={}){super(),this.visible=!0,this.text="",this.background=new l({}),this.foreground=new u({}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.text&&(this.text=t.text),void 0!==t.background&&(this.background=new l(t.background)),void 0!==t.foreground&&(this.foreground=new u(t.foreground))}}e.ButtonConfiguration=h;class p extends o.PartiallyConstructible{constructor(t={}){super(),this.successBeepEnabled=!0,this.soundType="MODERN_BEEP",void 0!==t.successBeepEnabled&&(this.successBeepEnabled=t.successBeepEnabled),void 0!==t.soundType&&(this.soundType=t.soundType)}}e.Sound=p;class g extends o.PartiallyConstructible{constructor(t={}){super(),this.enabled=!1,void 0!==t.enabled&&(this.enabled=t.enabled)}}e.Vibration=g;class m extends o.PartiallyConstructible{constructor(t={}){super(),this.autoCancelTimeout=0,this.initialScanDelay=0,void 0!==t.autoCancelTimeout&&(this.autoCancelTimeout=t.autoCancelTimeout),void 0!==t.initialScanDelay&&(this.initialScanDelay=t.initialScanDelay)}}e.Timeouts=m},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SBTheme=e.createSBPaletteContextValue=e.SBPaletteContext=void 0;const r=n(1),i=n(17),a=o(n(24));function s(t){return{getColorValue:e=>{if(e){if(e.startsWith("?")){const n=e.slice(1);if(n in t)return t[n];a.default.debugWarn(`Color ${n} not found in palette`)}return e}a.default.debugWarn("Color is missing")}}}e.SBPaletteContext=(0,r.createContext)(null),e.createSBPaletteContextValue=s;class l{static setPalette(t){this.palette=t}static setBarcodeTextLocalization(t){this.barcodeTextLocalization=t}static getColorValue(t){return s(l.palette).getColorValue(t)}static getLocalizedBarcodeText(t){if(t.startsWith("?")){const e=t.slice(1);if(e in l.barcodeTextLocalization)return l.barcodeTextLocalization[e];a.default.debugWarn(`Barcode text localization key ${e} not found in localization`)}return t}}e.SBTheme=l,l.palette=(new i.BarcodeScannerConfiguration).palette,l.barcodeTextLocalization=(new i.BarcodeScannerConfiguration).localization},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Point=void 0;const o=n(37);class r{constructor(t,e){this.x=t,this.y=e}static toPolygon(t,e){return[r.scaleDownTo(t[0],e),r.scaleDownTo(t[1],e),r.scaleDownTo(t[2],e),r.scaleDownTo(t[3],e)]}static scaleToPoint(t,e,n,o){return new r(o*(t.x-e),o*(t.y-n))}static scaleListToHtmlElement(t,e,n){return t.map((t=>r.scaleToHtmlElement(t,e,n)))}static scaleToHtmlElement(t,e,n){return new r(t.x*(n.clientWidth/e.width),t.y*(n.clientHeight/e.height))}static scaleUpTo(t,e){return new r(t.x*e.width,t.y*e.height)}static scaleDownTo(t,e){return new r(t.x/e.width,t.y/e.height)}static fromHtmlElement(t){return new r(t.offsetLeft,t.offsetTop)}static withScale(t,e,n){return new r(t/n,e/n)}static fromCoordinates(t,e,n,o){if(!t||!e)return new r(0,0);const i=new r(t,e);return o=null!=o?o:1,1===(n=n?n%4:0)?r.withScale(i.y,-i.x,o):2===n?r.withScale(-i.x,-i.y,o):3===n?r.withScale(-i.y,i.x,o):r.withScale(i.x,i.y,o)}static centerOf(t){const e=t.reduce(((t,e)=>t+e.x),0)/t.length,n=t.reduce(((t,e)=>t+e.y),0)/t.length;return new r(e,n)}static smallerSizeOfQuad(t){const e=Math.max(...t.map((t=>t.x)))-Math.min(...t.map((t=>t.x))),n=Math.max(...t.map((t=>t.y)))-Math.min(...t.map((t=>t.y)));return Math.min(e,n)}static empty(){return new r(0,0)}static centerX(t){if(t)return(r.highestX(t)+r.lowestX(t))/2}static highestX(t){if(t)return Math.max(...t.map((t=>t.x)))}static lowestX(t){if(t)return Math.min(...t.map((t=>t.x)))}static lowestY(t){if(t)return Math.min(...t.map((t=>t.y)))}static highestY(t){if(t)return Math.max(...t.map((t=>t.y)))}static width(t){if(t)return r.highestX(t)-r.lowestX(t)}static left(t){if(t)return t.reduce(((t,e)=>t.x<e.x?t:e))}static right(t){if(t)return t.reduce(((t,e)=>t.x>e.x?t:e))}static toSvgString(t){if(void 0!==t)return t.map((t=>`${t.x.toFixed(2)},${t.y.toFixed(2)}`)).join(" ")}static toSvgPathStringWithRoundedCorners(t,e=0){if(void 0===t)return;function n(t,e,n){const o=Math.atan2(t.y-e.y,t.x-e.x);return{x:t.x-n*Math.cos(o),y:t.y-n*Math.sin(o)}}let o="";const i=n(t[0],t[1],r.distance(t[0],t[1])/2);o+=`M ${i.x} ${i.y}`;for(let i=0;i<t.length;i++){const a=t[i],s=t[(i+1)%t.length],l=t[(i+2)%t.length],u=n(s,l,r.distance(s,l)/2),c=Math.abs(Math.atan2(s.y-a.y,s.x-a.x)-Math.atan2(s.y-l.y,s.x-l.x)),d=c>Math.PI?2*Math.PI-c:c,f=Math.min(Math.sqrt(Math.pow(s.x-a.x,2)+Math.pow(s.y-a.y,2)),Math.sqrt(Math.pow(s.x-l.x,2)+Math.pow(s.y-l.y,2))),h=Math.min(e,f*Math.tan(d/2)/2),p=Math.abs(h/Math.tan(d/2)),g=(s.x-a.x)*(s.y-l.y)-(s.x-l.x)*(s.y-a.y)<0?1:0,m=n(s,a,p),v=n(s,l,p);o+=` L${m.x} ${m.y}`,o+=` A${h} ${h} 0 0 ${g} ${v.x} ${v.y}`,o+=` L${u.x} ${u.y}`}return o+" Z"}static distance(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}static subtract(t,e){return new r(t.x-e.x,t.y-e.y)}static add(t,e){return new r(t.x+e.x,t.y+e.y)}static multiply(t,e){return new r(t.x*e,t.y*e)}static cross(t,e){return t.x*e.y-t.y*e.x}static clamp(t,e){return new r((0,o.clamp)(t.x,0,e.width),(0,o.clamp)(t.y,0,e.height))}}e.Point=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PartiallyConstructible=void 0;e.PartiallyConstructible=class{}},,,function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.StyledText=e.styledTextStyle=e.Props=void 0;const r=o(n(1)),i=n(4);function a(t){return{color:i.SBTheme.getColorValue(t.color),textShadow:t.useShadow?"1px 1px 2px":""}}e.Props=class{},e.styledTextStyle=a,e.StyledText=function(t){return t.config.visible?r.default.createElement("span",{ref:t.innerRef,style:Object.assign(Object.assign({},t.style),a(t.config))},i.SBTheme.getLocalizedBarcodeText(t.config.text)):null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArOverlayFindAndPickConfiguration=e.FindAndPickBadgeConfiguration=e.FindAndPickArOverlayPolygonConfiguration=e.ArOverlayGeneralConfiguration=e.BadgeStyle=e.BarcodeItemConfiguration=e.ArOverlayPolygonConfiguration=void 0;const o=n(3),r=n(6),i=n(3),a=n(3);class s extends r.PartiallyConstructible{constructor(t={}){super(),this.visible=!0,this.deselected=new i.PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),this.selected=new i.PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.deselected&&(this.deselected=new i.PolygonStyle(t.deselected)),void 0!==t.selected&&(this.selected=new i.PolygonStyle(t.selected))}}e.ArOverlayPolygonConfiguration=s;class l extends r.PartiallyConstructible{constructor(t={}){super(),this.imageVisible=!0,this.titleSelected=new a.StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleSelected=new a.StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.titleDeselected=new a.StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleDeselected=new a.StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.backgroundSelected=new i.PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:0,cornerRadius:10}),this.backgroundDeselected=new i.PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:0,cornerRadius:10}),void 0!==t.imageVisible&&(this.imageVisible=t.imageVisible),void 0!==t.titleSelected&&(this.titleSelected=new a.StyledText(t.titleSelected)),void 0!==t.subtitleSelected&&(this.subtitleSelected=new a.StyledText(t.subtitleSelected)),void 0!==t.titleDeselected&&(this.titleDeselected=new a.StyledText(t.titleDeselected)),void 0!==t.subtitleDeselected&&(this.subtitleDeselected=new a.StyledText(t.subtitleDeselected)),void 0!==t.backgroundSelected&&(this.backgroundSelected=new i.PolygonStyle(t.backgroundSelected)),void 0!==t.backgroundDeselected&&(this.backgroundDeselected=new i.PolygonStyle(t.backgroundDeselected))}}e.BarcodeItemConfiguration=l;class u extends r.PartiallyConstructible{constructor(t={}){if(super(),this.visible=!0,this.foregroundColor="?sbColorOnSurface",void 0!==t.visible&&(this.visible=t.visible),void 0===t.background)throw new Error("background must be present in constructor argument");this.background=new o.BackgroundStyle(t.background),void 0!==t.foregroundColor&&(this.foregroundColor=t.foregroundColor)}}e.BadgeStyle=u;class c extends r.PartiallyConstructible{constructor(t={}){super(),this.visible=!1,this.counterBadge=new u({background:new o.BackgroundStyle({}),foregroundColor:"?sbColorOnSurface"}),this.automaticSelectionEnabled=!1,this.barcodeItemInfoPosition="BELOW",this.polygon=new s({visible:!0,deselected:new i.PolygonStyle({}),selected:new i.PolygonStyle({})}),this.barcodeItemConfiguration=new l({imageVisible:!0,titleSelected:new a.StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new a.StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new a.StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new a.StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new i.PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new i.PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.counterBadge&&(this.counterBadge=new u(t.counterBadge)),void 0!==t.automaticSelectionEnabled&&(this.automaticSelectionEnabled=t.automaticSelectionEnabled),void 0!==t.barcodeItemInfoPosition&&(this.barcodeItemInfoPosition=t.barcodeItemInfoPosition),void 0!==t.polygon&&(this.polygon=new s(t.polygon)),void 0!==t.barcodeItemConfiguration&&(this.barcodeItemConfiguration=new l(t.barcodeItemConfiguration))}}e.ArOverlayGeneralConfiguration=c;class d extends r.PartiallyConstructible{constructor(t={}){super(),this.visible=!0,this.partiallyScanned=new i.PolygonStyle({strokeColor:"?sbColorWarning",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.rejected=new i.PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.completed=new i.PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.partiallyScanned&&(this.partiallyScanned=new i.PolygonStyle(t.partiallyScanned)),void 0!==t.rejected&&(this.rejected=new i.PolygonStyle(t.rejected)),void 0!==t.completed&&(this.completed=new i.PolygonStyle(t.completed))}}e.FindAndPickArOverlayPolygonConfiguration=d;class f extends r.PartiallyConstructible{constructor(t={}){super(),this.partiallyScanned=new u({visible:!0,background:new o.BackgroundStyle({strokeColor:"#FFFFFF30",fillColor:"?sbColorWarning",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.rejected=new u({visible:!0,background:new o.BackgroundStyle({strokeColor:"#FFFFFF30",fillColor:"?sbColorNegative",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.completed=new u({visible:!0,background:new o.BackgroundStyle({strokeColor:"#FFFFFF30",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),void 0!==t.partiallyScanned&&(this.partiallyScanned=new u(t.partiallyScanned)),void 0!==t.rejected&&(this.rejected=new u(t.rejected)),void 0!==t.completed&&(this.completed=new u(t.completed))}}e.FindAndPickBadgeConfiguration=f;class h extends r.PartiallyConstructible{constructor(t={}){super(),this.visible=!1,this.automaticSelectionEnabled=!0,this.polygon=new d({}),this.badge=new f({}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.automaticSelectionEnabled&&(this.automaticSelectionEnabled=t.automaticSelectionEnabled),void 0!==t.polygon&&(this.polygon=new d(t.polygon)),void 0!==t.badge&&(this.badge=new f(t.badge))}}e.ArOverlayFindAndPickConfiguration=h},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return Y})),n.d(e,"c",(function(){return tt})),n.d(e,"d",(function(){return nt})),n.d(e,"e",(function(){return et})),n.d(e,"f",(function(){return K})),n.d(e,"g",(function(){return J}));var o="-ms-",r="-moz-",i="-webkit-",a="comm",s="rule",l="decl",u="@keyframes",c=Math.abs,d=String.fromCharCode,f=Object.assign;function h(t){return t.trim()}function p(t,e){return(t=e.exec(t))?t[0]:t}function g(t,e,n){return t.replace(e,n)}function m(t,e,n){return t.indexOf(e,n)}function v(t,e){return 0|t.charCodeAt(e)}function y(t,e,n){return t.slice(e,n)}function b(t){return t.length}function A(t){return t.length}function S(t,e){return e.push(t),t}function C(t,e){return t.map(e).join("")}function _(t,e){return t.filter((function(t){return!p(t,e)}))}var w=1,x=1,O=0,E=0,L=0,P="";function B(t,e,n,o,r,i,a,s){return{value:t,root:e,parent:n,type:o,props:r,children:i,line:w,column:x,length:a,return:"",siblings:s}}function T(t,e){return f(B("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},e)}function k(t){for(;t.root;)t=T(t.root,{children:[t]});S(t,t.siblings)}function M(){return L=E<O?v(P,E++):0,x++,10===L&&(x=1,w++),L}function D(){return v(P,E)}function j(){return E}function W(t,e){return y(P,t,e)}function I(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function R(t){return w=x=1,O=b(P=t),E=0,[]}function F(t){return P="",t}function V(t){return h(W(E-1,U(91===t?t+2:40===t?t+1:t)))}function z(t){for(;(L=D())&&L<33;)M();return I(t)>2||I(L)>3?"":" "}function N(t,e){for(;--e&&M()&&!(L<48||L>102||L>57&&L<65||L>70&&L<97););return W(t,j()+(e<6&&32==D()&&32==M()))}function U(t){for(;M();)switch(L){case t:return E;case 34:case 39:34!==t&&39!==t&&U(L);break;case 40:41===t&&U(t);break;case 92:M()}return E}function H(t,e){for(;M()&&t+L!==57&&(t+L!==84||47!==D()););return"/*"+W(e,E-1)+"*"+d(47===t?t:M())}function G(t){for(;!I(D());)M();return W(t,E)}function Y(t){return F(X("",null,null,null,[""],t=R(t),0,[0],t))}function X(t,e,n,o,r,i,a,s,l){for(var u=0,f=0,h=a,p=0,y=0,A=0,C=1,_=1,O=1,B=0,T="",k=r,W=i,I=o,R=T;_;)switch(A=B,B=M()){case 40:if(108!=A&&58==v(R,h-1)){-1!=m(R+=g(V(B),"&","&\f"),"&\f",c(u?s[u-1]:0))&&(O=-1);break}case 34:case 39:case 91:R+=V(B);break;case 9:case 10:case 13:case 32:R+=z(A);break;case 92:R+=N(j()-1,7);continue;case 47:switch(D()){case 42:case 47:S($(H(M(),j()),e,n,l),l);break;default:R+="/"}break;case 123*C:s[u++]=b(R)*O;case 125*C:case 59:case 0:switch(B){case 0:case 125:_=0;case 59+f:-1==O&&(R=g(R,/\f/g,"")),y>0&&b(R)-h&&S(y>32?Z(R+";",o,n,h-1,l):Z(g(R," ","")+";",o,n,h-2,l),l);break;case 59:R+=";";default:if(S(I=Q(R,e,n,u,f,r,s,T,k=[],W=[],h,i),i),123===B)if(0===f)X(R,e,I,I,k,i,h,s,W);else switch(99===p&&110===v(R,3)?100:p){case 100:case 108:case 109:case 115:X(t,I,I,o&&S(Q(t,I,I,0,0,r,s,T,r,k=[],h,W),W),r,W,h,s,o?k:W);break;default:X(R,I,I,I,[""],W,0,s,W)}}u=f=y=0,C=O=1,T=R="",h=a;break;case 58:h=1+b(R),y=A;default:if(C<1)if(123==B)--C;else if(125==B&&0==C++&&125==(L=E>0?v(P,--E):0,x--,10===L&&(x=1,w--),L))continue;switch(R+=d(B),B*C){case 38:O=f>0?1:(R+="\f",-1);break;case 44:s[u++]=(b(R)-1)*O,O=1;break;case 64:45===D()&&(R+=V(M())),p=D(),f=h=b(T=R+=G(j())),B++;break;case 45:45===A&&2==b(R)&&(C=0)}}return i}function Q(t,e,n,o,r,i,a,l,u,d,f,p){for(var m=r-1,v=0===r?i:[""],b=A(v),S=0,C=0,_=0;S<o;++S)for(var w=0,x=y(t,m+1,m=c(C=a[S])),O=t;w<b;++w)(O=h(C>0?v[w]+" "+x:g(x,/&\f/g,v[w])))&&(u[_++]=O);return B(t,e,n,0===r?s:l,u,d,f,p)}function $(t,e,n,o){return B(t,e,n,a,d(L),y(t,2,-2),0,o)}function Z(t,e,n,o,r){return B(t,e,n,l,y(t,0,o),y(t,o+1,-1),o,r)}function q(t,e,n){switch(function(t,e){return 45^v(t,0)?(((e<<2^v(t,0))<<2^v(t,1))<<2^v(t,2))<<2^v(t,3):0}(t,e)){case 5103:return i+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return i+t+t;case 4789:return r+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return i+t+r+t+o+t+t;case 5936:switch(v(t,e+11)){case 114:return i+t+o+g(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return i+t+o+g(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return i+t+o+g(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return i+t+o+t+t;case 6165:return i+t+o+"flex-"+t+t;case 5187:return i+t+g(t,/(\w+).+(:[^]+)/,i+"box-$1$2"+o+"flex-$1$2")+t;case 5443:return i+t+o+"flex-item-"+g(t,/flex-|-self/g,"")+(p(t,/flex-|baseline/)?"":o+"grid-row-"+g(t,/flex-|-self/g,""))+t;case 4675:return i+t+o+"flex-line-pack"+g(t,/align-content|flex-|-self/g,"")+t;case 5548:return i+t+o+g(t,"shrink","negative")+t;case 5292:return i+t+o+g(t,"basis","preferred-size")+t;case 6060:return i+"box-"+g(t,"-grow","")+i+t+o+g(t,"grow","positive")+t;case 4554:return i+g(t,/([^-])(transform)/g,"$1"+i+"$2")+t;case 6187:return g(g(g(t,/(zoom-|grab)/,i+"$1"),/(image-set)/,i+"$1"),t,"")+t;case 5495:case 3959:return g(t,/(image-set\([^]*)/,i+"$1$`$1");case 4968:return g(g(t,/(.+:)(flex-)?(.*)/,i+"box-pack:$3"+o+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+i+t+t;case 4200:if(!p(t,/flex-|baseline/))return o+"grid-column-align"+y(t,e)+t;break;case 2592:case 3360:return o+g(t,"template-","")+t;case 4384:case 3616:return n&&n.some((function(t,n){return e=n,p(t.props,/grid-\w+-end/)}))?~m(t+(n=n[e].value),"span",0)?t:o+g(t,"-start","")+t+o+"grid-row-span:"+(~m(n,"span",0)?p(n,/\d+/):+p(n,/\d+/)-+p(t,/\d+/))+";":o+g(t,"-start","")+t;case 4896:case 4128:return n&&n.some((function(t){return p(t.props,/grid-\w+-start/)}))?t:o+g(g(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return g(t,/(.+)-inline(.+)/,i+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(b(t)-1-e>6)switch(v(t,e+1)){case 109:if(45!==v(t,e+4))break;case 102:return g(t,/(.+:)(.+)-([^]+)/,"$1"+i+"$2-$3$1"+r+(108==v(t,e+3)?"$3":"$2-$3"))+t;case 115:return~m(t,"stretch",0)?q(g(t,"stretch","fill-available"),e,n)+t:t}break;case 5152:case 5920:return g(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(e,n,r,i,a,s,l){return o+n+":"+r+l+(i?o+n+"-span:"+(a?s:+s-+r)+l:"")+t}));case 4949:if(121===v(t,e+6))return g(t,":",":"+i)+t;break;case 6444:switch(v(t,45===v(t,14)?18:11)){case 120:return g(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+i+(45===v(t,14)?"inline-":"")+"box$3$1"+i+"$2$3$1"+o+"$2box$3")+t;case 100:return g(t,":",":"+o)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return g(t,"scroll-","scroll-snap-")+t}return t}function K(t,e){for(var n="",o=0;o<t.length;o++)n+=e(t[o],o,t,e)||"";return n}function J(t,e,n,o){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case l:return t.return=t.return||t.value;case a:return"";case u:return t.return=t.value+"{"+K(t.children,o)+"}";case s:if(!b(t.value=t.props.join(",")))return""}return b(n=K(t.children,o))?t.return=t.value+"{"+n+"}":""}function tt(t){var e=A(t);return function(n,o,r,i){for(var a="",s=0;s<e;s++)a+=t[s](n,o,r,i)||"";return a}}function et(t){return function(e){e.root||(e=e.return)&&t(e)}}function nt(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case l:return void(t.return=q(t.value,t.length,n));case u:return K([T(t,{value:g(t.value,"@","@"+i)})],r);case s:if(t.length)return C(n=t.props,(function(e){switch(p(e,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":k(T(t,{props:[g(e,/:(read-\w+)/,":-moz-$1")]})),k(T(t,{props:[e]})),f(t,{props:_(n,r)});break;case"::placeholder":k(T(t,{props:[g(e,/:(plac\w+)/,":"+i+"input-$1")]})),k(T(t,{props:[g(e,/:(plac\w+)/,":-moz-$1")]})),k(T(t,{props:[g(e,/:(plac\w+)/,o+"input-$1")]})),k(T(t,{props:[e]})),f(t,{props:_(n,r)})}return""}))}}},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.ImageUtils=void 0;const r=n(21),i=n(22);class a{static toDataUrl(t){return new Promise(((e,n)=>{const o=new Blob([t],{type:"image/jpeg"}),r=new FileReader;r.onload=()=>e(r.result),r.onerror=()=>n(r.error),r.readAsDataURL(o)}))}static getObjectFitSize(t,e,n=!0){const o=e.width/e.height,i=t.width/t.height;let a=0,s=0;(n?o>i:o<i)?(a=t.width,s=a/o):(s=t.height,a=s*o);const l=(t.width-a)/2,u=(t.height-s)/2;return new r.Frame(l,u,a,s)}static loadFromUrl(t){return new Promise(((e,n)=>{const r=document.createElement("img");r.src=t,r.onload=()=>o(this,void 0,void 0,(function*(){const t=document.createElement("canvas");t.width=r.width,t.height=r.height;const n=t.getContext("2d");n.drawImage(r,0,0);const o=n.getImageData(0,0,r.width,r.height);e(o)})),r.onerror=n}))}static saveImageData(t){const e=this.createImageDataCanvas(t),n=" ("+t.width+"x"+t.height+")";e.toBlob((t=>this.saveBlob(t,i.Utils.uuid()+n+".png")))}static createImageDataCanvas(t){const e=document.createElement("canvas");return e.className="scanbot-sdk-canvas-element",e.width=t.width,e.height=t.height,e.getContext("2d").putImageData(t,0,0),e}static saveBlob(t,e){let n=document.createElement("a");n.setAttribute("download",e);let o=URL.createObjectURL(t);n.setAttribute("href",o),n.click()}static convertImageDataWrapperToImageData(t){if(t)return new ImageData(t.data,t.width,t.height)}static wrapperToBase64(t){return a.createImageDataCanvas(a.convertImageDataWrapperToImageData(t)).toDataURL("image/png")}static toBase64(t){return o(this,void 0,void 0,(function*(){const e=yield new Promise((e=>{const n=new FileReader;n.onload=()=>e(n.result),n.readAsDataURL(new Blob([t]))}));return e.slice(e.indexOf(",")+1)}))}}e.ImageUtils=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Size=void 0;const o=n(5);class r{constructor(t,e){this.width=t,this.height=e}isPortrait(){return this.height>this.width}ratio(t){return t?this.height/this.width:this.width/this.height}ratioDiff(t,e){return this.ratio(e)/t.ratio(e)}static isEmpty(t){return!t||(0===t.width||0===t.height)}static toPolygon(t){return[new o.Point(0,0),new o.Point(t.width,0),new o.Point(t.width,t.height),new o.Point(0,t.height)]}static fromHtmlElement(t){return t?new r(t.clientWidth,t.clientHeight):new r(0,0)}static fromJson(t){return new r(t.width,t.height)}static subtractFrom(t,e){return new r(t.width-e,t.height-e)}static empty(){return new r(0,0)}}e.Size=r},function(t,e,n){"use strict";n.r(e),n.d(e,"createDomMotionComponent",(function(){return da})),n.d(e,"motion",(function(){return ca})),n.d(e,"m",(function(){return fa})),n.d(e,"AnimatePresence",(function(){return ya})),n.d(e,"AnimateSharedLayout",(function(){return La})),n.d(e,"MotionConfig",(function(){return Pa})),n.d(e,"LazyMotion",(function(){return Ba})),n.d(e,"domAnimation",(function(){return ka})),n.d(e,"domMax",(function(){return Ma})),n.d(e,"useMotionValue",(function(){return Da})),n.d(e,"useMotionTemplate",(function(){return Ia})),n.d(e,"MotionValue",(function(){return ko})),n.d(e,"motionValue",(function(){return Mo})),n.d(e,"resolveMotionValue",(function(){return Ut})),n.d(e,"useTransform",(function(){return Va})),n.d(e,"useSpring",(function(){return Na})),n.d(e,"useVelocity",(function(){return Ua})),n.d(e,"useElementScroll",(function(){return Qa})),n.d(e,"useViewportScroll",(function(){return Ka})),n.d(e,"useReducedMotion",(function(){return Ja})),n.d(e,"animationControls",(function(){return ts})),n.d(e,"useAnimation",(function(){return es})),n.d(e,"animate",(function(){return ba})),n.d(e,"animateVisualElement",(function(){return Go})),n.d(e,"useCycle",(function(){return os})),n.d(e,"transform",(function(){return Fa})),n.d(e,"isValidMotionProp",(function(){return _t})),n.d(e,"useIsPresent",(function(){return v})),n.d(e,"usePresence",(function(){return m})),n.d(e,"DragControls",(function(){return rs})),n.d(e,"useDragControls",(function(){return as})),n.d(e,"useDomEvent",(function(){return Kt})),n.d(e,"createMotionComponent",(function(){return j})),n.d(e,"addScaleCorrection",(function(){return V})),n.d(e,"snapshotViewportBox",(function(){return Wr})),n.d(e,"createCrossfader",(function(){return Aa})),n.d(e,"visualElement",(function(){return zi})),n.d(e,"batchLayout",(function(){return ei})),n.d(e,"flushLayout",(function(){return ni})),n.d(e,"MotionConfigContext",(function(){return d})),n.d(e,"PresenceContext",(function(){return p})),n.d(e,"LayoutGroupContext",(function(){return C})),n.d(e,"VisibilityAction",(function(){return ui})),n.d(e,"FramerTreeLayoutContext",(function(){return Pi})),n.d(e,"SharedLayoutContext",(function(){return Li})),n.d(e,"createBatcher",(function(){return Oi})),n.d(e,"FlatTree",(function(){return Vi})),n.d(e,"useDeprecatedAnimatedState",(function(){return cs})),n.d(e,"useDeprecatedInvertedScale",(function(){return fs}));var o=n(0),r=n(1),i=function(t){return{isEnabled:function(e){return t.some((function(t){return!!e[t]}))}}},a={measureLayout:i(["layout","layoutId","drag","_layoutResetTransform"]),animation:i(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:i(["exit"]),drag:i(["drag","dragControls"]),focus:i(["whileFocus"]),hover:i(["whileHover","onHoverStart","onHoverEnd"]),tap:i(["whileTap","onTap","onTapStart","onTapCancel"]),pan:i(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:i(["layout","layoutId"])};function s(t){for(var e in t){var n=t[e];null!==n&&(a[e].Component=n)}}var l=Object(r.createContext)({strict:!1}),u=Object.keys(a),c=u.length;var d=Object(r.createContext)({transformPagePoint:function(t){return t},isStatic:!1}),f=Object(r.createContext)({});function h(){return Object(r.useContext)(f).visualElement}var p=Object(r.createContext)(null);function g(t){var e=Object(r.useRef)(null);return null===e.current&&(e.current=t()),e.current}function m(){var t=Object(r.useContext)(p);if(null===t)return[!0,null];var e=t.isPresent,n=t.onExitComplete,o=t.register,i=S();Object(r.useEffect)((function(){return o(i)}),[]);return!e&&n?[!1,function(){return null==n?void 0:n(i)}]:[!0]}function v(){return y(Object(r.useContext)(p))}function y(t){return null===t||t.isPresent}var b=0,A=function(){return b++},S=function(){return g(A)},C=Object(r.createContext)(null),_="undefined"!=typeof window,w=_?r.useLayoutEffect:r.useEffect;function x(t,e,n,i){var a=Object(r.useContext)(d),s=Object(r.useContext)(l),u=h(),c=Object(r.useContext)(p),f=function(t){var e=t.layoutId,n=Object(r.useContext)(C);return n&&void 0!==e?n+"-"+e:e}(n),g=Object(r.useRef)(void 0);i||(i=s.renderer),!g.current&&i&&(g.current=i(t,{visualState:e,parent:u,props:Object(o.a)(Object(o.a)({},n),{layoutId:f}),presenceId:null==c?void 0:c.id,blockInitialAnimation:!1===(null==c?void 0:c.initial)}));var m=g.current;return w((function(){m&&(m.setProps(Object(o.a)(Object(o.a)(Object(o.a)({},a),n),{layoutId:f})),m.isPresent=y(c),m.isPresenceRoot=!u||u.presenceId!==(null==c?void 0:c.id),m.syncRender())})),Object(r.useEffect)((function(){var t;m&&(null===(t=m.animationState)||void 0===t||t.animateChanges())})),w((function(){return function(){return null==m?void 0:m.notifyUnmount()}}),[]),m}function O(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function E(t){return Array.isArray(t)}function L(t){return"string"==typeof t||E(t)}function P(t,e,n,o,r){var i;return void 0===o&&(o={}),void 0===r&&(r={}),"string"==typeof e&&(e=null===(i=t.variants)||void 0===i?void 0:i[e]),"function"==typeof e?e(null!=n?n:t.custom,o,r):e}function B(t,e,n){var o=t.getProps();return P(o,e,null!=n?n:o.custom,function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.get()})),e}(t),function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.getVelocity()})),e}(t))}function T(t){var e;return"function"==typeof(null===(e=t.animate)||void 0===e?void 0:e.start)||L(t.initial)||L(t.animate)||L(t.whileHover)||L(t.whileDrag)||L(t.whileTap)||L(t.whileFocus)||L(t.exit)}function k(t){return Boolean(T(t)||t.variants)}function M(t,e){var n=function(t,e){if(T(t)){var n=t.initial,o=t.animate;return{initial:!1===n||L(n)?n:void 0,animate:L(o)?o:void 0}}return!1!==t.inherit?e:{}}(t,Object(r.useContext)(f)),o=n.initial,i=n.animate;return Object(r.useMemo)((function(){return{initial:o,animate:i}}),e?[D(o),D(i)]:[])}function D(t){return Array.isArray(t)?t.join(" "):t}function j(t){var e=t.preloadedFeatures,n=t.createVisualElement,i=t.useRender,h=t.useVisualState,p=t.Component;return e&&s(e),Object(r.forwardRef)((function(t,e){var s=Object(r.useContext)(d).isStatic,g=null,m=M(t,s),v=h(t,s);return!s&&_&&(m.visualElement=x(p,v,t,n),g=function(t,e,n){var i=[];if(Object(r.useContext)(l),!e)return null;for(var s=0;s<c;s++){var d=u[s],f=a[d],h=f.isEnabled,p=f.Component;h(t)&&p&&i.push(r.createElement(p,Object(o.a)({key:d},t,{visualElement:e})))}return i}(t,m.visualElement)),r.createElement(r.Fragment,null,r.createElement(f.Provider,{value:m},i(p,t,function(t,e,n){return Object(r.useCallback)((function(o){var r;o&&(null===(r=t.mount)||void 0===r||r.call(t,o)),e&&(o?e.mount(o):e.unmount()),n&&("function"==typeof n?n(o):O(n)&&(n.current=o))}),[e])}(v,m.visualElement,e),v,s)),g)}))}function W(t){function e(e,n){return void 0===n&&(n={}),j(t(e,n))}var n=new Map;return new Proxy(e,{get:function(t,o){return n.has(o)||n.set(o,e(o)),n.get(o)}})}var I=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function R(t){return"string"==typeof t&&!t.includes("-")&&!!(I.indexOf(t)>-1||/[A-Z]/.test(t))}var F={};function V(t){for(var e in t)F[e]=t[e]}var z=["","X","Y","Z"],N=["transformPerspective","x","y","z"];function U(t,e){return N.indexOf(t)-N.indexOf(e)}["translate","scale","rotate","skew"].forEach((function(t){return z.forEach((function(e){return N.push(t+e)}))}));var H=new Set(N);function G(t){return H.has(t)}var Y=new Set(["originX","originY","originZ"]);function X(t){return Y.has(t)}function Q(t,e){var n=e.layout,o=e.layoutId;return G(t)||X(t)||(n||void 0!==o)&&(!!F[t]||"opacity"===t)}var $=function(t){return null!==t&&"object"==typeof t&&t.getVelocity},Z={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function q(t){return t.startsWith("--")}var K=function(t,e){return e&&"number"==typeof t?e.transform(t):t},J=function(t,e){return function(n){return Math.max(Math.min(n,e),t)}},tt=function(t){return t%1?Number(t.toFixed(5)):t},et=/(-)?([\d]*\.?[\d])+/g,nt=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,ot=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function rt(t){return"string"==typeof t}var it=function(t){return{test:function(e){return rt(e)&&e.endsWith(t)&&1===e.split(" ").length},parse:parseFloat,transform:function(e){return""+e+t}}},at=it("deg"),st=it("%"),lt=it("px"),ut=it("vh"),ct=it("vw"),dt=Object(o.a)(Object(o.a)({},st),{parse:function(t){return st.parse(t)/100},transform:function(t){return st.transform(100*t)}}),ft={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},ht=Object(o.a)(Object(o.a)({},ft),{transform:J(0,1)}),pt=Object(o.a)(Object(o.a)({},ft),{default:1}),gt=Object(o.a)(Object(o.a)({},ft),{transform:Math.round}),mt={borderWidth:lt,borderTopWidth:lt,borderRightWidth:lt,borderBottomWidth:lt,borderLeftWidth:lt,borderRadius:lt,radius:lt,borderTopLeftRadius:lt,borderTopRightRadius:lt,borderBottomRightRadius:lt,borderBottomLeftRadius:lt,width:lt,maxWidth:lt,height:lt,maxHeight:lt,size:lt,top:lt,right:lt,bottom:lt,left:lt,padding:lt,paddingTop:lt,paddingRight:lt,paddingBottom:lt,paddingLeft:lt,margin:lt,marginTop:lt,marginRight:lt,marginBottom:lt,marginLeft:lt,rotate:at,rotateX:at,rotateY:at,rotateZ:at,scale:pt,scaleX:pt,scaleY:pt,scaleZ:pt,skew:at,skewX:at,skewY:at,distance:lt,translateX:lt,translateY:lt,translateZ:lt,x:lt,y:lt,z:lt,perspective:lt,transformPerspective:lt,opacity:ht,originX:dt,originY:dt,originZ:lt,zIndex:gt,fillOpacity:ht,strokeOpacity:ht,numOctaves:gt};function vt(t,e,n,o,r,i,a,s){var l,u=t.style,c=t.vars,d=t.transform,f=t.transformKeys,h=t.transformOrigin;f.length=0;var p=!1,g=!1,m=!0;for(var v in e){var y=e[v];if(q(v))c[v]=y;else{var b=mt[v],A=K(y,b);if(G(v)){if(p=!0,d[v]=A,f.push(v),!m)continue;y!==(null!==(l=b.default)&&void 0!==l?l:0)&&(m=!1)}else if(X(v))h[v]=A,g=!0;else if((null==n?void 0:n.isHydrated)&&(null==o?void 0:o.isHydrated)&&F[v]){var S=F[v].process(y,o,n),C=F[v].applyTo;if(C)for(var _=C.length,w=0;w<_;w++)u[C[w]]=S;else u[v]=S}else u[v]=A}}o&&n&&a&&s?(u.transform=a(o.deltaFinal,o.treeScale,p?d:void 0),i&&(u.transform=i(d,u.transform)),u.transformOrigin=s(o)):(p&&(u.transform=function(t,e,n,o){var r=t.transform,i=t.transformKeys,a=e.enableHardwareAcceleration,s=void 0===a||a,l=e.allowTransformNone,u=void 0===l||l,c="";i.sort(U);for(var d=!1,f=i.length,h=0;h<f;h++){var p=i[h];c+=(Z[p]||p)+"("+r[p]+") ","z"===p&&(d=!0)}return!d&&s?c+="translateZ(0)":c=c.trim(),o?c=o(r,n?"":c):u&&n&&(c="none"),c}(t,r,m,i)),g&&(u.transformOrigin=function(t){var e=t.originX,n=void 0===e?"50%":e,o=t.originY,r=void 0===o?"50%":o,i=t.originZ;return n+" "+r+" "+(void 0===i?0:i)}(h)))}var yt=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function bt(t,e,n){for(var o in e)$(e[o])||Q(o,n)||(t[o]=e[o])}function At(t,e,n){var i={};return bt(i,t.style||{},t),Object.assign(i,function(t,e,n){var i=t.transformTemplate;return Object(r.useMemo)((function(){var t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};vt(t,e,void 0,void 0,{enableHardwareAcceleration:!n},i);var r=t.vars,a=t.style;return Object(o.a)(Object(o.a)({},r),a)}),[e])}(t,e,n)),t.transformValues&&(i=t.transformValues(i)),i}function St(t,e,n){var o={},r=At(t,e,n);return Boolean(t.drag)&&(o.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),o.style=r,o}var Ct=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function _t(t){return Ct.has(t)}var wt=function(t){return!_t(t)};try{var xt=n(177).default;wt=function(t){return t.startsWith("on")?!_t(t):xt(t)}}catch(t){}function Ot(t,e,n){return"string"==typeof t?t:lt.transform(e+n*t)}var Et=function(t,e){return lt.transform(t*e)},Lt={offset:"stroke-dashoffset",array:"stroke-dasharray"},Pt={offset:"strokeDashoffset",array:"strokeDasharray"};function Bt(t,e,n,r,i,a,s,l){var u=e.attrX,c=e.attrY,d=e.originX,f=e.originY,h=e.pathLength,p=e.pathSpacing,g=void 0===p?1:p,m=e.pathOffset,v=void 0===m?0:m;vt(t,Object(o.d)(e,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r,i,a,s,l),t.attrs=t.style,t.style={};var y=t.attrs,b=t.style,A=t.dimensions,S=t.totalPathLength;y.transform&&(A&&(b.transform=y.transform),delete y.transform),A&&(void 0!==d||void 0!==f||b.transform)&&(b.transformOrigin=function(t,e,n){return Ot(e,t.x,t.width)+" "+Ot(n,t.y,t.height)}(A,void 0!==d?d:.5,void 0!==f?f:.5)),void 0!==u&&(y.x=u),void 0!==c&&(y.y=c),void 0!==S&&void 0!==h&&function(t,e,n,o,r,i){void 0===o&&(o=1),void 0===r&&(r=0),void 0===i&&(i=!0);var a=i?Lt:Pt;t[a.offset]=Et(-r,e);var s=Et(n,e),l=Et(o,e);t[a.array]=s+" "+l}(y,S,h,g,v,!1)}var Tt=function(){return Object(o.a)(Object(o.a)({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function kt(t,e){var n=Object(r.useMemo)((function(){var n=Tt();return Bt(n,e,void 0,void 0,{enableHardwareAcceleration:!1},t.transformTemplate),Object(o.a)(Object(o.a)({},n.attrs),{style:Object(o.a)({},n.style)})}),[e]);if(t.style){var i={};bt(i,t.style,t),n.style=Object(o.a)(Object(o.a)({},i),n.style)}return n}function Mt(t){void 0===t&&(t=!1);return function(e,n,i,a,s){var l=a.latestValues,u=(R(e)?kt:St)(n,l,s),c=function(t,e,n){var o={};for(var r in t)(wt(r)||!0===n&&_t(r)||!e&&!_t(r))&&(o[r]=t[r]);return o}(n,"string"==typeof e,t),d=Object(o.a)(Object(o.a)(Object(o.a)({},c),u),{ref:i});return Object(r.createElement)(e,d)}}var Dt=/([a-z])([A-Z])/g,jt=function(t){return t.replace(Dt,"$1-$2").toLowerCase()};function Wt(t,e){var n=e.style,o=e.vars;for(var r in Object.assign(t.style,n),o)t.style.setProperty(r,o[r])}var It=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function Rt(t,e){for(var n in Wt(t,e),e.attrs)t.setAttribute(It.has(n)?n:jt(n),e.attrs[n])}function Ft(t){var e=t.style,n={};for(var o in e)($(e[o])||Q(o,t))&&(n[o]=e[o]);return n}function Vt(t){var e=Ft(t);for(var n in t){if($(t[n]))e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e}function zt(t){return"object"==typeof t&&"function"==typeof t.start}var Nt=function(t){return Array.isArray(t)};function Ut(t){var e,n=$(t)?t.get():t;return e=n,Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)?n.toValue():n}function Ht(t,e,n,o){var r=t.scrapeMotionValuesFromProps,i=t.createRenderState,a=t.onMount,s={latestValues:Yt(e,n,o,r),renderState:i()};return a&&(s.mount=function(t){return a(e,t,s)}),s}var Gt=function(t){return function(e,n){var o=Object(r.useContext)(f),i=Object(r.useContext)(p);return n?Ht(t,e,o,i):g((function(){return Ht(t,e,o,i)}))}};function Yt(t,e,n,r){var i={},a=!1===(null==n?void 0:n.initial),s=r(t);for(var l in s)i[l]=Ut(s[l]);var u=t.initial,c=t.animate,d=T(t),f=k(t);e&&f&&!d&&!1!==t.inherit&&(null!=u||(u=e.initial),null!=c||(c=e.animate));var h=a||!1===u?c:u;h&&"boolean"!=typeof h&&!zt(h)&&(Array.isArray(h)?h:[h]).forEach((function(e){var n=P(t,e);if(n){var r=n.transitionEnd;n.transition;var a=Object(o.d)(n,["transitionEnd","transition"]);for(var s in a)i[s]=a[s];for(var s in r)i[s]=r[s]}}));return i}var Xt={useVisualState:Gt({scrapeMotionValuesFromProps:Vt,createRenderState:Tt,onMount:function(t,e,n){var o=n.renderState,r=n.latestValues;try{o.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){o.dimensions={x:0,y:0,width:0,height:0}}"path"===e.tagName&&(o.totalPathLength=e.getTotalLength()),Bt(o,r,void 0,void 0,{enableHardwareAcceleration:!1},t.transformTemplate),Rt(e,o)}})};var Qt,$t={useVisualState:Gt({scrapeMotionValuesFromProps:Ft,createRenderState:yt})};function Zt(t,e,n,r){var i=e.forwardMotionProps,a=void 0!==i&&i,s=R(t)?Xt:$t;return Object(o.a)(Object(o.a)({},s),{preloadedFeatures:n,useRender:Mt(a),createVisualElement:r,Component:t})}function qt(t,e,n,o){return t.addEventListener(e,n,o),function(){return t.removeEventListener(e,n,o)}}function Kt(t,e,n,o){Object(r.useEffect)((function(){var r=t.current;if(n&&r)return qt(r,e,n,o)}),[t,e,n,o])}function Jt(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function te(t){return!!t.touches}!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.Exit="exit"}(Qt||(Qt={}));var ee={pageX:0,pageY:0};function ne(t,e){void 0===e&&(e="page");var n=t.touches[0]||t.changedTouches[0]||ee;return{x:n[e+"X"],y:n[e+"Y"]}}function oe(t,e){return void 0===e&&(e="page"),{x:t[e+"X"],y:t[e+"Y"]}}function re(t,e){return void 0===e&&(e="page"),{point:te(t)?ne(t,e):oe(t,e)}}var ie=function(t,e){void 0===e&&(e=!1);var n,o=function(e){return t(e,re(e))};return e?(n=o,function(t){var e=t instanceof MouseEvent;(!e||e&&0===t.button)&&n(t)}):o},ae={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},se={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function le(t){return _&&null===window.onpointerdown?t:_&&null===window.ontouchstart?se[t]:_&&null===window.onmousedown?ae[t]:t}function ue(t,e,n,o){return qt(t,le(e),ie(n,"pointerdown"===e),o)}function ce(t,e,n,o){return Kt(t,le(e),n&&ie(n,"pointerdown"===e),o)}function de(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}var fe=de("dragHorizontal"),he=de("dragVertical");function pe(t){var e=!1;if("y"===t)e=he();else if("x"===t)e=fe();else{var n=fe(),o=he();n&&o?e=function(){n(),o()}:(n&&n(),o&&o())}return e}function ge(){var t=pe(!0);return!t||(t(),!1)}function me(t,e,n){return function(o,r){var i;Jt(o)&&!ge()&&(null==n||n(o,r),null===(i=t.animationState)||void 0===i||i.setActive(Qt.Hover,e))}}var ve=function(t,e){return!!e&&(t===e||ve(t,e.parentElement))};function ye(t){return Object(r.useEffect)((function(){return function(){return t()}}),[])}var be=function(t,e){return function(n){return e(t(n))}},Ae=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(be)};var Se=function(t){return function(e){return t(e),null}},Ce={tap:Se((function(t){var e=t.onTap,n=t.onTapStart,o=t.onTapCancel,i=t.whileTap,a=t.visualElement,s=e||n||o||i,l=Object(r.useRef)(!1),u=Object(r.useRef)(null);function c(){var t;null===(t=u.current)||void 0===t||t.call(u),u.current=null}function d(){var t;return c(),l.current=!1,null===(t=a.animationState)||void 0===t||t.setActive(Qt.Tap,!1),!ge()}function f(t,n){d()&&(ve(a.getInstance(),t.target)?null==e||e(t,n):null==o||o(t,n))}function h(t,e){d()&&(null==o||o(t,e))}ce(a,"pointerdown",s?function(t,e){var o;c(),l.current||(l.current=!0,u.current=Ae(ue(window,"pointerup",f),ue(window,"pointercancel",h)),null==n||n(t,e),null===(o=a.animationState)||void 0===o||o.setActive(Qt.Tap,!0))}:void 0),ye(c)})),focus:Se((function(t){var e=t.whileFocus,n=t.visualElement;Kt(n,"focus",e?function(){var t;null===(t=n.animationState)||void 0===t||t.setActive(Qt.Focus,!0)}:void 0),Kt(n,"blur",e?function(){var t;null===(t=n.animationState)||void 0===t||t.setActive(Qt.Focus,!1)}:void 0)})),hover:Se((function(t){var e=t.onHoverStart,n=t.onHoverEnd,o=t.whileHover,r=t.visualElement;ce(r,"pointerenter",e||o?me(r,!0,e):void 0),ce(r,"pointerleave",n||o?me(r,!1,n):void 0)}))};function _e(t,e){if(!Array.isArray(e))return!1;var n=e.length;if(n!==t.length)return!1;for(var o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}var we=function(t,e,n){return Math.min(Math.max(n,t),e)},xe=.001;function Oe(t){var e,n,o=t.duration,r=void 0===o?800:o,i=t.bounce,a=void 0===i?.25:i,s=t.velocity,l=void 0===s?0:s,u=t.mass,c=void 0===u?1:u,d=1-a;d=we(.05,1,d),r=we(.01,10,r/1e3),d<1?(e=function(t){var e=t*d,n=e*r,o=e-l,i=Ee(t,d),a=Math.exp(-n);return xe-o/i*a},n=function(t){var n=t*d*r,o=n*l+l,i=Math.pow(d,2)*Math.pow(t,2)*r,a=Math.exp(-n),s=Ee(Math.pow(t,2),d);return(-e(t)+xe>0?-1:1)*((o-i)*a)/s}):(e=function(t){return Math.exp(-t*r)*((t-l)*r+1)-.001},n=function(t){return Math.exp(-t*r)*(r*r*(l-t))});var f=function(t,e,n){for(var o=n,r=1;r<12;r++)o-=t(o)/e(o);return o}(e,n,5/r);if(r*=1e3,isNaN(f))return{stiffness:100,damping:10,duration:r};var h=Math.pow(f,2)*c;return{stiffness:h,damping:2*d*Math.sqrt(c*h),duration:r}}function Ee(t,e){return t*Math.sqrt(1-e*e)}var Le=["duration","bounce"],Pe=["stiffness","damping","mass"];function Be(t,e){return e.some((function(e){return void 0!==t[e]}))}function Te(t){var e=t.from,n=void 0===e?0:e,r=t.to,i=void 0===r?1:r,a=t.restSpeed,s=void 0===a?2:a,l=t.restDelta,u=Object(o.d)(t,["from","to","restSpeed","restDelta"]),c={done:!1,value:n},d=function(t){var e=Object(o.a)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!Be(t,Pe)&&Be(t,Le)){var n=Oe(t);(e=Object(o.a)(Object(o.a)(Object(o.a)({},e),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return e}(u),f=d.stiffness,h=d.damping,p=d.mass,g=d.velocity,m=d.duration,v=d.isResolvedFromDuration,y=ke,b=ke;function A(){var t=g?-g/1e3:0,e=i-n,o=h/(2*Math.sqrt(f*p)),r=Math.sqrt(f/p)/1e3;if(null!=l||(l=Math.abs(i-n)<=1?.01:.4),o<1){var a=Ee(r,o);y=function(n){var s=Math.exp(-o*r*n);return i-s*((t+o*r*e)/a*Math.sin(a*n)+e*Math.cos(a*n))},b=function(n){var i=Math.exp(-o*r*n);return o*r*i*(Math.sin(a*n)*(t+o*r*e)/a+e*Math.cos(a*n))-i*(Math.cos(a*n)*(t+o*r*e)-a*e*Math.sin(a*n))}}else if(1===o)y=function(n){return i-Math.exp(-r*n)*(e+(t+r*e)*n)};else{var s=r*Math.sqrt(o*o-1);y=function(n){var a=Math.exp(-o*r*n),l=Math.min(s*n,300);return i-a*((t+o*r*e)*Math.sinh(l)+s*e*Math.cosh(l))/s}}}return A(),{next:function(t){var e=y(t);if(v)c.done=t>=m;else{var n=1e3*b(t),o=Math.abs(n)<=s,r=Math.abs(i-e)<=l;c.done=o&&r}return c.value=c.done?i:e,c},flipTarget:function(){var t;g=-g,n=(t=[i,n])[0],i=t[1],A()}}}Te.needsInterpolation=function(t,e){return"string"==typeof t||"string"==typeof e};var ke=function(t){return 0},Me=function(t,e,n){var o=e-t;return 0===o?1:(n-t)/o},De=function(t,e,n){return-n*t+n*e+t},je=function(t,e){return function(n){return Boolean(rt(n)&&ot.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e))}},We=function(t,e,n){return function(o){var r;if(!rt(o))return o;var i=o.match(et),a=i[0],s=i[1],l=i[2],u=i[3];return(r={})[t]=parseFloat(a),r[e]=parseFloat(s),r[n]=parseFloat(l),r.alpha=void 0!==u?parseFloat(u):1,r}},Ie=J(0,255),Re=Object(o.a)(Object(o.a)({},ft),{transform:function(t){return Math.round(Ie(t))}}),Fe={test:je("rgb","red"),parse:We("red","green","blue"),transform:function(t){var e=t.red,n=t.green,o=t.blue,r=t.alpha,i=void 0===r?1:r;return"rgba("+Re.transform(e)+", "+Re.transform(n)+", "+Re.transform(o)+", "+tt(ht.transform(i))+")"}};var Ve={test:je("#"),parse:function(t){var e="",n="",o="",r="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),o=t.substr(5,2),r=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),o=t.substr(3,1),r=t.substr(4,1),e+=e,n+=n,o+=o,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}},transform:Fe.transform},ze={test:je("hsl","hue"),parse:We("hue","saturation","lightness"),transform:function(t){var e=t.hue,n=t.saturation,o=t.lightness,r=t.alpha,i=void 0===r?1:r;return"hsla("+Math.round(e)+", "+st.transform(tt(n))+", "+st.transform(tt(o))+", "+tt(ht.transform(i))+")"}},Ne=function(t,e,n){var o=t*t,r=e*e;return Math.sqrt(Math.max(0,n*(r-o)+o))},Ue=[Ve,Fe,ze],He=function(t){return Ue.find((function(e){return e.test(t)}))},Ge=function(t){return"'"+t+"' is not an animatable color. Use the equivalent color code instead."},Ye=function(t,e){var n=He(t),r=He(e);Ge(t),Ge(e),n.transform,r.transform;var i=n.parse(t),a=r.parse(e),s=Object(o.a)({},i),l=n===ze?De:Ne;return function(t){for(var e in s)"alpha"!==e&&(s[e]=l(i[e],a[e],t));return s.alpha=De(i.alpha,a.alpha,t),n.transform(s)}},Xe={test:function(t){return Fe.test(t)||Ve.test(t)||ze.test(t)},parse:function(t){return Fe.test(t)?Fe.parse(t):ze.test(t)?ze.parse(t):Ve.parse(t)},transform:function(t){return rt(t)?t:t.hasOwnProperty("red")?Fe.transform(t):ze.transform(t)}},Qe="${c}",$e="${n}";function Ze(t){var e=[],n=0,o=t.match(nt);o&&(n=o.length,t=t.replace(nt,Qe),e.push.apply(e,o.map(Xe.parse)));var r=t.match(et);return r&&(t=t.replace(et,$e),e.push.apply(e,r.map(ft.parse))),{values:e,numColors:n,tokenised:t}}function qe(t){return Ze(t).values}function Ke(t){var e=Ze(t),n=e.values,o=e.numColors,r=e.tokenised,i=n.length;return function(t){for(var e=r,n=0;n<i;n++)e=e.replace(n<o?Qe:$e,n<o?Xe.transform(t[n]):tt(t[n]));return e}}var Je=function(t){return"number"==typeof t?0:t};var tn={test:function(t){var e,n,o,r;return isNaN(t)&&rt(t)&&(null!==(n=null===(e=t.match(et))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(r=null===(o=t.match(nt))||void 0===o?void 0:o.length)&&void 0!==r?r:0)>0},parse:qe,createTransformer:Ke,getAnimatableNone:function(t){var e=qe(t);return Ke(t)(e.map(Je))}},en=function(t){return"number"==typeof t};function nn(t,e){return en(t)?function(n){return De(t,e,n)}:Xe.test(t)?Ye(t,e):sn(t,e)}var on=function(t,e){var n=Object(o.e)([],t),r=n.length,i=t.map((function(t,n){return nn(t,e[n])}));return function(t){for(var e=0;e<r;e++)n[e]=i[e](t);return n}},rn=function(t,e){var n=Object(o.a)(Object(o.a)({},t),e),r={};for(var i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=nn(t[i],e[i]));return function(t){for(var e in r)n[e]=r[e](t);return n}};function an(t){for(var e=tn.parse(t),n=e.length,o=0,r=0,i=0,a=0;a<n;a++)o||"number"==typeof e[a]?o++:void 0!==e[a].hue?i++:r++;return{parsed:e,numNumbers:o,numRGB:r,numHSL:i}}var sn=function(t,e){var n=tn.createTransformer(e),o=an(t),r=an(e);return o.numHSL===r.numHSL&&o.numRGB===r.numRGB&&(o.numNumbers,r.numNumbers),Ae(on(o.parsed,r.parsed),n)},ln=function(t,e){return function(n){return De(t,e,n)}};function un(t,e,n){for(var o,r=[],i=n||("number"==typeof(o=t[0])?ln:"string"==typeof o?Xe.test(o)?Ye:sn:Array.isArray(o)?on:"object"==typeof o?rn:void 0),a=t.length-1,s=0;s<a;s++){var l=i(t[s],t[s+1]);if(e){var u=Array.isArray(e)?e[s]:e;l=Ae(u,l)}r.push(l)}return r}function cn(t,e,n){var o=void 0===n?{}:n,r=o.clamp,i=void 0===r||r,a=o.ease,s=o.mixer,l=t.length;e.length,!a||!Array.isArray(a)||a.length,t[0]>t[l-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());var u=un(e,a,s),c=2===l?function(t,e){var n=t[0],o=t[1],r=e[0];return function(t){return r(Me(n,o,t))}}(t,u):function(t,e){var n=t.length,o=n-1;return function(r){var i=0,a=!1;if(r<=t[0]?a=!0:r>=t[o]&&(i=o-1,a=!0),!a){for(var s=1;s<n&&!(t[s]>r||s===o);s++);i=s-1}var l=Me(t[i],t[i+1],r);return e[i](l)}}(t,u);return i?function(e){return c(we(t[0],t[l-1],e))}:c}var dn,fn=function(t){return function(e){return 1-t(1-e)}},hn=function(t){return function(e){return e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2}},pn=function(t){return function(e){return e*e*((t+1)*e-t)}},gn=function(t){return t},mn=(dn=2,function(t){return Math.pow(t,dn)}),vn=fn(mn),yn=hn(mn),bn=function(t){return 1-Math.sin(Math.acos(t))},An=fn(bn),Sn=hn(An),Cn=pn(1.525),_n=fn(Cn),wn=hn(Cn),xn=function(t){var e=pn(t);return function(t){return(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))}}(1.525),On=function(t){if(1===t||0===t)return t;var e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},En=fn(On);function Ln(t,e){return t.map((function(){return e||yn})).splice(0,t.length-1)}function Pn(t){var e=t.from,n=void 0===e?0:e,o=t.to,r=void 0===o?1:o,i=t.ease,a=t.offset,s=t.duration,l=void 0===s?300:s,u={done:!1,value:n},c=Array.isArray(r)?r:[n,r],d=function(t,e){return t.map((function(t){return t*e}))}(a&&a.length===c.length?a:function(t){var e=t.length;return t.map((function(t,n){return 0!==n?n/(e-1):0}))}(c),l);function f(){return cn(d,c,{ease:Array.isArray(i)?i:Ln(c,i)})}var h=f();return{next:function(t){return u.value=h(t),u.done=t>=l,u},flipTarget:function(){c.reverse(),h=f()}}}var Bn={keyframes:Pn,spring:Te,decay:function(t){var e=t.velocity,n=void 0===e?0:e,o=t.from,r=void 0===o?0:o,i=t.power,a=void 0===i?.8:i,s=t.timeConstant,l=void 0===s?350:s,u=t.restDelta,c=void 0===u?.5:u,d=t.modifyTarget,f={done:!1,value:r},h=a*n,p=r+h,g=void 0===d?p:d(p);return g!==p&&(h=g-r),{next:function(t){var e=-h*Math.exp(-t/l);return f.done=!(e>c||e<-c),f.value=f.done?g:g+e,f},flipTarget:function(){}}}};var Tn=1/60*1e3,kn="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},Mn="undefined"!=typeof window?function(t){return window.requestAnimationFrame(t)}:function(t){return setTimeout((function(){return t(kn())}),Tn)};var Dn=!0,jn=!1,Wn=!1,In={delta:0,timestamp:0},Rn=["read","update","preRender","render","postRender"],Fn=Rn.reduce((function(t,e){return t[e]=function(t){var e=[],n=[],o=0,r=!1,i=new WeakSet,a={schedule:function(t,a,s){void 0===a&&(a=!1),void 0===s&&(s=!1);var l=s&&r,u=l?e:n;return a&&i.add(t),-1===u.indexOf(t)&&(u.push(t),l&&r&&(o=e.length)),t},cancel:function(t){var e=n.indexOf(t);-1!==e&&n.splice(e,1),i.delete(t)},process:function(s){var l;if(r=!0,e=(l=[n,e])[0],(n=l[1]).length=0,o=e.length)for(var u=0;u<o;u++){var c=e[u];c(s),i.has(c)&&(a.schedule(c),t())}r=!1}};return a}((function(){return jn=!0})),t}),{}),Vn=Rn.reduce((function(t,e){var n=Fn[e];return t[e]=function(t,e,o){return void 0===e&&(e=!1),void 0===o&&(o=!1),jn||Gn(),n.schedule(t,e,o)},t}),{}),zn=Rn.reduce((function(t,e){return t[e]=Fn[e].cancel,t}),{}),Nn=Rn.reduce((function(t,e){return t[e]=function(){return Fn[e].process(In)},t}),{}),Un=function(t){return Fn[t].process(In)},Hn=function(t){jn=!1,In.delta=Dn?Tn:Math.max(Math.min(t-In.timestamp,40),1),In.timestamp=t,Wn=!0,Rn.forEach(Un),Wn=!1,jn&&(Dn=!1,Mn(Hn))},Gn=function(){jn=!0,Dn=!0,Wn||Mn(Hn)},Yn=function(){return In},Xn=Vn;function Qn(t,e,n){return void 0===n&&(n=0),t-e-n}var $n=function(t){var e=function(e){var n=e.delta;return t(n)};return{start:function(){return Xn.update(e,!0)},stop:function(){return zn.update(e)}}};function Zn(t){var e,n,r,i,a,s=t.from,l=t.autoplay,u=void 0===l||l,c=t.driver,d=void 0===c?$n:c,f=t.elapsed,h=void 0===f?0:f,p=t.repeat,g=void 0===p?0:p,m=t.repeatType,v=void 0===m?"loop":m,y=t.repeatDelay,b=void 0===y?0:y,A=t.onPlay,S=t.onStop,C=t.onComplete,_=t.onRepeat,w=t.onUpdate,x=Object(o.d)(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),O=x.to,E=0,L=x.duration,P=!1,B=!0,T=function(t){if(Array.isArray(t.to))return Pn;if(Bn[t.type])return Bn[t.type];var e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?Pn:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?Te:Pn}(x);(null===(n=(e=T).needsInterpolation)||void 0===n?void 0:n.call(e,s,O))&&(a=cn([0,100],[s,O],{clamp:!1}),s=0,O=100);var k=T(Object(o.a)(Object(o.a)({},x),{from:s,to:O}));function M(){E++,"reverse"===v?h=function(t,e,n,o){return void 0===n&&(n=0),void 0===o&&(o=!0),o?Qn(e+-t,e,n):e-(t-e)+n}(h,L,b,B=E%2==0):(h=Qn(h,L,b),"mirror"===v&&k.flipTarget()),P=!1,_&&_()}function D(t){if(B||(t=-t),h+=t,!P){var e=k.next(Math.max(0,h));i=e.value,a&&(i=a(i)),P=B?e.done:h<=0}null==w||w(i),P&&(0===E&&(null!=L||(L=h)),E<g?function(t,e,n,o){return o?t>=e+n:t<=-n}(h,L,b,B)&&M():(r.stop(),C&&C()))}return u&&(null==A||A(),(r=d(D)).start()),{stop:function(){null==S||S(),r.stop()}}}function qn(t,e){return e?t*(1e3/e):0}var Kn=function(t){return 1e3*t},Jn=function(t,e){return 1-3*e+3*t},to=function(t,e){return 3*e-6*t},eo=function(t){return 3*t},no=function(t,e,n){return((Jn(e,n)*t+to(e,n))*t+eo(e))*t},oo=function(t,e,n){return 3*Jn(e,n)*t*t+2*to(e,n)*t+eo(e)};var ro=.1;function io(t,e,n,o){if(t===e&&n===o)return gn;for(var r=new Float32Array(11),i=0;i<11;++i)r[i]=no(i*ro,t,n);function a(e){for(var o=0,i=1;10!==i&&r[i]<=e;++i)o+=ro;--i;var a=o+(e-r[i])/(r[i+1]-r[i])*ro,s=oo(a,t,n);return s>=.001?function(t,e,n,o){for(var r=0;r<8;++r){var i=oo(e,n,o);if(0===i)return e;e-=(no(e,n,o)-t)/i}return e}(e,a,t,n):0===s?a:function(t,e,n,o,r){var i,a,s=0;do{(i=no(a=e+(n-e)/2,o,r)-t)>0?n=a:e=a}while(Math.abs(i)>1e-7&&++s<10);return a}(e,o,o+ro,t,n)}return function(t){return 0===t||1===t?t:no(a(t),e,o)}}var ao={linear:gn,easeIn:mn,easeInOut:yn,easeOut:vn,circIn:bn,circInOut:Sn,circOut:An,backIn:Cn,backInOut:wn,backOut:_n,anticipate:xn,bounceIn:En,bounceInOut:function(t){return t<.5?.5*(1-On(1-2*t)):.5*On(2*t-1)+.5},bounceOut:On},so=function(t){if(Array.isArray(t)){t.length;var e=Object(o.c)(t,4);return io(e[0],e[1],e[2],e[3])}return"string"==typeof t?ao[t]:t},lo=function(t,e){return"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!tn.test(e)||e.startsWith("url(")))},uo=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},co=function(t){return{type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},fo=function(){return{type:"keyframes",ease:"linear",duration:.3}},ho=function(t){return{type:"keyframes",duration:.8,values:t}},po={x:uo,y:uo,z:uo,rotate:uo,rotateX:uo,rotateY:uo,rotateZ:uo,scaleX:co,scaleY:co,scale:co,opacity:fo,backgroundColor:fo,color:fo,default:co},go=new Set(["brightness","contrast","saturate","opacity"]);function mo(t){var e=t.slice(0,-1).split("("),n=e[0],o=e[1];if("drop-shadow"===n)return t;var r=(o.match(et)||[])[0];if(!r)return t;var i=o.replace(r,""),a=go.has(n)?1:0;return r!==o&&(a*=100),n+"("+a+i+")"}var vo=/([a-z-]*)\(.*?\)/g,yo=Object(o.a)(Object(o.a)({},tn),{getAnimatableNone:function(t){var e=t.match(vo);return e?e.map(mo).join(" "):t}}),bo=Object(o.a)(Object(o.a)({},mt),{color:Xe,backgroundColor:Xe,outlineColor:Xe,fill:Xe,stroke:Xe,borderColor:Xe,borderTopColor:Xe,borderRightColor:Xe,borderBottomColor:Xe,borderLeftColor:Xe,filter:yo,WebkitFilter:yo}),Ao=function(t){return bo[t]};function So(t,e){var n,o=Ao(t);return o!==yo&&(o=tn),null===(n=o.getAnimatableNone)||void 0===n?void 0:n.call(o,e)}function Co(t){var e=t.ease,n=t.times,r=t.yoyo,i=t.flip,a=t.loop,s=Object(o.d)(t,["ease","times","yoyo","flip","loop"]),l=Object(o.a)({},s);return n&&(l.offset=n),s.duration&&(l.duration=Kn(s.duration)),s.repeatDelay&&(l.repeatDelay=Kn(s.repeatDelay)),e&&(l.ease=function(t){return Array.isArray(t)&&"number"!=typeof t[0]}(e)?e.map(so):so(e)),"tween"===s.type&&(l.type="keyframes"),(r||a||i)&&(!0,r?l.repeatType="reverse":a?l.repeatType="loop":i&&(l.repeatType="mirror"),l.repeat=a||r||i||s.repeat),"spring"!==s.type&&(l.type="keyframes"),l}function _o(t,e,n){var r,i,a,s;return Array.isArray(e.to)&&(null!==(r=t.duration)&&void 0!==r||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=Object(o.e)([],Object(o.c)(t.to)),t.to[0]=t.from)}(e),function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var e=Object(o.d)(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(e).length}(t)||(t=Object(o.a)(Object(o.a)({},t),(i=n,a=e.to,s=Nt(a)?ho:po[i]||po.default,Object(o.a)({to:a},s(a))))),Object(o.a)(Object(o.a)({},e),Co(t))}function wo(t,e,n,r,i){var a,s=Eo(r,t),l=null!==(a=s.from)&&void 0!==a?a:e.get(),u=lo(t,n);"none"===l&&u&&"string"==typeof n?l=So(t,n):xo(l)&&"string"==typeof n?l=Oo(n):!Array.isArray(n)&&xo(n)&&"string"==typeof l&&(n=Oo(l));var c=lo(t,l);return c&&u&&!1!==s.type?function(){var r={from:l,to:n,velocity:e.getVelocity(),onComplete:i,onUpdate:function(t){return e.set(t)}};return"inertia"===s.type||"decay"===s.type?function(t){var e,n=t.from,r=void 0===n?0:n,i=t.velocity,a=void 0===i?0:i,s=t.min,l=t.max,u=t.power,c=void 0===u?.8:u,d=t.timeConstant,f=void 0===d?750:d,h=t.bounceStiffness,p=void 0===h?500:h,g=t.bounceDamping,m=void 0===g?10:g,v=t.restDelta,y=void 0===v?1:v,b=t.modifyTarget,A=t.driver,S=t.onUpdate,C=t.onComplete;function _(t){return void 0!==s&&t<s||void 0!==l&&t>l}function w(t){return void 0===s?l:void 0===l||Math.abs(s-t)<Math.abs(l-t)?s:l}function x(t){null==e||e.stop(),e=Zn(Object(o.a)(Object(o.a)({},t),{driver:A,onUpdate:function(e){var n;null==S||S(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:C}))}function O(t){x(Object(o.a)({type:"spring",stiffness:p,damping:m,restDelta:y},t))}if(_(r))O({from:r,velocity:a,to:w(r)});else{var E=c*a+r;"undefined"!=typeof b&&(E=b(E));var L,P,B=w(E),T=B===s?-1:1;x({type:"decay",from:r,velocity:a,timeConstant:f,power:c,restDelta:y,modifyTarget:b,onUpdate:_(E)?function(t){L=P,P=t,a=qn(t-L,Yn().delta),(1===T&&t>B||-1===T&&t<B)&&O({from:t,to:B,velocity:a})}:void 0})}return{stop:function(){return null==e?void 0:e.stop()}}}(Object(o.a)(Object(o.a)({},r),s)):Zn(Object(o.a)(Object(o.a)({},_o(s,r,t)),{onUpdate:function(t){var e;r.onUpdate(t),null===(e=s.onUpdate)||void 0===e||e.call(s,t)},onComplete:function(){var t;r.onComplete(),null===(t=s.onComplete)||void 0===t||t.call(s)}}))}:function(){var t;return e.set(n),i(),null===(t=null==s?void 0:s.onComplete)||void 0===t||t.call(s),{stop:function(){}}}}function xo(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function Oo(t){return"number"==typeof t?0:So("",t)}function Eo(t,e){return t[e]||t.default||t}function Lo(t,e,n,o){return void 0===o&&(o={}),e.start((function(r){var i,a,s=wo(t,e,n,o,r),l=function(t,e){var n;return null!==(n=(Eo(t,e)||{}).delay)&&void 0!==n?n:0}(o,t),u=function(){return a=s()};return l?i=setTimeout(u,Kn(l)):u(),function(){clearTimeout(i),null==a||a.stop()}}))}function Po(t,e){-1===t.indexOf(e)&&t.push(e)}function Bo(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var To=function(){function t(){this.subscriptions=[]}return t.prototype.add=function(t){var e=this;return Po(this.subscriptions,t),function(){return Bo(e.subscriptions,t)}},t.prototype.notify=function(t,e,n){var o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](t,e,n);else for(var r=0;r<o;r++){var i=this.subscriptions[r];i&&i(t,e,n)}},t.prototype.getSize=function(){return this.subscriptions.length},t.prototype.clear=function(){this.subscriptions.length=0},t}(),ko=function(){function t(t){var e,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new To,this.velocityUpdateSubscribers=new To,this.renderSubscribers=new To,this.canTrackVelocity=!1,this.updateAndNotify=function(t,e){void 0===e&&(e=!0),n.prev=n.current,n.current=t;var o=Yn(),r=o.delta,i=o.timestamp;n.lastUpdated!==i&&(n.timeDelta=r,n.lastUpdated=i,Xn.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),e&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return Xn.postRender(n.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}return t.prototype.onChange=function(t){return this.updateSubscribers.add(t)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},t.prototype.attach=function(t){this.passiveEffect=t},t.prototype.set=function(t,e){void 0===e&&(e=!0),e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?qn(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(t){var e=this;return this.stop(),new Promise((function(n){e.hasAnimated=!0,e.stopAnimation=t(n)})).then((function(){return e.clearAnimation()}))},t.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},t.prototype.isAnimating=function(){return!!this.stopAnimation},t.prototype.clearAnimation=function(){this.stopAnimation=null},t.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},t}();function Mo(t){return new ko(t)}var Do=function(t){return function(e){return e.test(t)}},jo=[ft,lt,st,at,ct,ut,{test:function(t){return"auto"===t},parse:function(t){return t}}],Wo=function(t){return jo.find(Do(t))},Io=Object(o.e)(Object(o.e)([],Object(o.c)(jo)),[Xe,tn]),Ro=function(t){return Io.find(Do(t))};function Fo(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Mo(n))}function Vo(t,e){var n=B(t,e),r=n?t.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,a=void 0===i?{}:i;r.transition;var s,l=Object(o.d)(r,["transitionEnd","transition"]);for(var u in l=Object(o.a)(Object(o.a)({},l),a)){Fo(t,u,(s=l[u],Nt(s)?s[s.length-1]||0:s))}}function zo(t,e){Object(o.e)([],Object(o.c)(e)).reverse().forEach((function(n){var o,r=t.getVariant(n);r&&Vo(t,r),null===(o=t.variantChildren)||void 0===o||o.forEach((function(t){zo(t,e)}))}))}function No(t,e,n){var o,r,i,a,s=Object.keys(e).filter((function(e){return!t.hasValue(e)})),l=s.length;if(l)for(var u=0;u<l;u++){var c=s[u],d=e[c],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(r=null!==(o=n[c])&&void 0!==o?o:t.readValue(c))&&void 0!==r?r:e[c]),null!=f&&("string"==typeof f&&/^\-?\d*\.?\d+$/.test(f)?f=parseFloat(f):!Ro(f)&&tn.test(d)&&(f=So(c,d)),t.addValue(c,Mo(f)),null!==(i=(a=n)[c])&&void 0!==i||(a[c]=f),t.setBaseTarget(c,f))}}function Uo(t,e){if(e)return(e[t]||e.default||e).from}function Ho(t,e,n){var o,r,i={};for(var a in t)i[a]=null!==(o=Uo(a,e))&&void 0!==o?o:null===(r=n.getValue(a))||void 0===r?void 0:r.get();return i}function Go(t,e,n){var o;if(void 0===n&&(n={}),t.notifyAnimationStart(),Array.isArray(e)){var r=e.map((function(e){return Yo(t,e,n)}));o=Promise.all(r)}else if("string"==typeof e)o=Yo(t,e,n);else{var i="function"==typeof e?B(t,e,n.custom):e;o=Xo(t,i,n)}return o.then((function(){return t.notifyAnimationComplete(e)}))}function Yo(t,e,n){var r;void 0===n&&(n={});var i=B(t,e,n.custom),a=(i||{}).transition,s=void 0===a?t.getDefaultTransition()||{}:a;n.transitionOverride&&(s=n.transitionOverride);var l=i?function(){return Xo(t,i,n)}:function(){return Promise.resolve()},u=(null===(r=t.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var i=s.delayChildren,a=void 0===i?0:i,l=s.staggerChildren,u=s.staggerDirection;return function(t,e,n,r,i,a){void 0===n&&(n=0);void 0===r&&(r=0);void 0===i&&(i=1);var s=[],l=(t.variantChildren.size-1)*r,u=1===i?function(t){return void 0===t&&(t=0),t*r}:function(t){return void 0===t&&(t=0),l-t*r};return Array.from(t.variantChildren).sort(Qo).forEach((function(t,r){s.push(Yo(t,e,Object(o.a)(Object(o.a)({},a),{delay:n+u(r)})).then((function(){return t.notifyAnimationComplete(e)})))})),Promise.all(s)}(t,e,a+r,l,u,n)}:function(){return Promise.resolve()},c=s.when;if(c){var d=Object(o.c)("beforeChildren"===c?[l,u]:[u,l],2),f=d[0],h=d[1];return f().then(h)}return Promise.all([l(),u(n.delay)])}function Xo(t,e,n){var r,i=void 0===n?{}:n,a=i.delay,s=void 0===a?0:a,l=i.transitionOverride,u=i.type,c=t.makeTargetAnimatable(e),d=c.transition,f=void 0===d?t.getDefaultTransition():d,h=c.transitionEnd,p=Object(o.d)(c,["transition","transitionEnd"]);l&&(f=l);var g=[],m=u&&(null===(r=t.animationState)||void 0===r?void 0:r.getState()[u]);for(var v in p){var y=t.getValue(v),b=p[v];if(!(!y||void 0===b||m&&$o(m,v))){var A=Lo(v,y,b,Object(o.a)({delay:s},f));g.push(A)}}return Promise.all(g).then((function(){h&&Vo(t,h)}))}function Qo(t,e){return t.sortNodePosition(e)}function $o(t,e){var n=t.protectedKeys,o=t.needsAnimating,r=n.hasOwnProperty(e)&&!0!==o[e];return o[e]=!1,r}var Zo=[Qt.Animate,Qt.Hover,Qt.Tap,Qt.Drag,Qt.Focus,Qt.Exit],qo=Object(o.e)([],Object(o.c)(Zo)).reverse(),Ko=Zo.length;function Jo(t){var e,n=function(t){return function(e){return Promise.all(e.map((function(e){var n=e.animation,o=e.options;return Go(t,n,o)})))}}(t),r=((e={})[Qt.Animate]=tr(!0),e[Qt.Hover]=tr(),e[Qt.Tap]=tr(),e[Qt.Drag]=tr(),e[Qt.Focus]=tr(),e[Qt.Exit]=tr(),e),i={},a=!0,s=function(e,n){var r=B(t,n);if(r){r.transition;var i=r.transitionEnd,a=Object(o.d)(r,["transition","transitionEnd"]);e=Object(o.a)(Object(o.a)(Object(o.a)({},e),a),i)}return e};function l(e,l){for(var u,c=t.getProps(),d=t.getVariantContext(!0)||{},f=[],h=new Set,p={},g=1/0,m=function(n){var i=qo[n],m=r[i],v=null!==(u=c[i])&&void 0!==u?u:d[i],y=L(v),b=i===l?m.isActive:null;!1===b&&(g=n);var A=v===d[i]&&v!==c[i]&&y;if(A&&a&&t.manuallyAnimateOnMount&&(A=!1),m.protectedKeys=Object(o.a)({},p),!m.isActive&&null===b||!v&&!m.prevProp||zt(v)||"boolean"==typeof v)return"continue";var S=function(t,e){if("string"==typeof e)return e!==t;if(E(e))return!_e(e,t);return!1}(m.prevProp,v)||i===l&&m.isActive&&!A&&y||n>g&&y,C=Array.isArray(v)?v:[v],_=C.reduce(s,{});!1===b&&(_={});var w=m.prevResolvedValues,x=void 0===w?{}:w,O=Object(o.a)(Object(o.a)({},x),_),P=function(t){S=!0,h.delete(t),m.needsAnimating[t]=!0};for(var B in O){var T=_[B],k=x[B];p.hasOwnProperty(B)||(T!==k?Nt(T)&&Nt(k)?_e(T,k)?m.protectedKeys[B]=!0:P(B):void 0!==T?P(B):h.add(B):void 0!==T&&h.has(B)?P(B):m.protectedKeys[B]=!0)}m.prevProp=v,m.prevResolvedValues=_,m.isActive&&(p=Object(o.a)(Object(o.a)({},p),_)),a&&t.blockInitialAnimation&&(S=!1),S&&!A&&f.push.apply(f,Object(o.e)([],Object(o.c)(C.map((function(t){return{animation:t,options:Object(o.a)({type:i},e)}})))))},v=0;v<Ko;v++)m(v);if(i=Object(o.a)({},p),h.size){var y={};h.forEach((function(e){var n=t.getBaseTarget(e);void 0!==n&&(y[e]=n)})),f.push({animation:y})}var b=Boolean(f.length);return a&&!1===c.initial&&!t.manuallyAnimateOnMount&&(b=!1),a=!1,b?n(f):Promise.resolve()}return{isAnimated:function(t){return void 0!==i[t]},animateChanges:l,setActive:function(e,n,o){var i;return r[e].isActive===n?Promise.resolve():(null===(i=t.variantChildren)||void 0===i||i.forEach((function(t){var o;return null===(o=t.animationState)||void 0===o?void 0:o.setActive(e,n)})),r[e].isActive=n,l(o,e))},setAnimateFunction:function(e){n=e(t)},getState:function(){return r}}}function tr(t){return void 0===t&&(t=!1),{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var er={animation:Se((function(t){var e=t.visualElement,n=t.animate;e.animationState||(e.animationState=Jo(e)),zt(n)&&Object(r.useEffect)((function(){return n.subscribe(e)}),[n])})),exit:Se((function(t){var e=t.custom,n=t.visualElement,i=Object(o.c)(m(),2),a=i[0],s=i[1],l=Object(r.useContext)(p);Object(r.useEffect)((function(){var t,o,r=null===(t=n.animationState)||void 0===t?void 0:t.setActive(Qt.Exit,!a,{custom:null!==(o=null==l?void 0:l.custom)&&void 0!==o?o:e});!a&&(null==r||r.then(s))}),[a])}))},nr=function(t){return t.hasOwnProperty("x")&&t.hasOwnProperty("y")},or=function(t){return nr(t)&&t.hasOwnProperty("z")},rr=function(t,e){return Math.abs(t-e)};function ir(t,e){if(en(t)&&en(e))return rr(t,e);if(nr(t)&&nr(e)){var n=rr(t.x,e.x),o=rr(t.y,e.y),r=or(t)&&or(e)?rr(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(o,2)+Math.pow(r,2))}}var ar=function(){function t(t,e,n){var r=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var t=ur(r.lastMoveEventInfo,r.history),e=null!==r.startEvent,n=ir(t.offset,{x:0,y:0})>=3;if(e||n){var i=t.point,a=Yn().timestamp;r.history.push(Object(o.a)(Object(o.a)({},i),{timestamp:a}));var s=r.handlers,l=s.onStart,u=s.onMove;e||(l&&l(r.lastMoveEvent,t),r.startEvent=r.lastMoveEvent),u&&u(r.lastMoveEvent,t)}}},this.handlePointerMove=function(t,e){r.lastMoveEvent=t,r.lastMoveEventInfo=sr(e,r.transformPagePoint),Jt(t)&&0===t.buttons?r.handlePointerUp(t,e):Xn.update(r.updatePoint,!0)},this.handlePointerUp=function(t,e){r.end();var n=r.handlers,o=n.onEnd,i=n.onSessionEnd,a=ur(sr(e,r.transformPagePoint),r.history);r.startEvent&&o&&o(t,a),i&&i(t,a)},!(te(t)&&t.touches.length>1)){this.handlers=e,this.transformPagePoint=i;var a=sr(re(t),this.transformPagePoint),s=a.point,l=Yn().timestamp;this.history=[Object(o.a)(Object(o.a)({},s),{timestamp:l})];var u=e.onSessionStart;u&&u(t,ur(a,this.history)),this.removeListeners=Ae(ue(window,"pointermove",this.handlePointerMove),ue(window,"pointerup",this.handlePointerUp),ue(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),zn.update(this.updatePoint)},t}();function sr(t,e){return e?{point:e(t.point)}:t}function lr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ur(t,e){var n=t.point;return{point:n,delta:lr(n,dr(e)),offset:lr(n,cr(e)),velocity:fr(e,.1)}}function cr(t){return t[0]}function dr(t){return t[t.length-1]}function fr(t,e){if(t.length<2)return{x:0,y:0};for(var n=t.length-1,o=null,r=dr(t);n>=0&&(o=t[n],!(r.timestamp-o.timestamp>Kn(e)));)n--;if(!o)return{x:0,y:0};var i=(r.timestamp-o.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(r.x-o.x)/i,y:(r.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function hr(t){return t}function pr(t){var e=t.top;return{x:{min:t.left,max:t.right},y:{min:e,max:t.bottom}}}function gr(){return{x:{min:0,max:1},y:{min:0,max:1}}}var mr={translate:0,scale:1,origin:0,originPoint:0};function vr(){return{x:Object(o.a)({},mr),y:Object(o.a)({},mr)}}function yr(t){return[t("x"),t("y")]}function br(t,e,n){var o=e.min,r=e.max;return void 0!==o&&t<o?t=n?De(o,t,n.min):Math.max(t,o):void 0!==r&&t>r&&(t=n?De(r,t,n.max):Math.min(t,r)),t}function Ar(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Sr(t,e){var n,r=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&(r=(n=Object(o.c)([i,r],2))[0],i=n[1]),{min:t.min+r,max:t.min+i}}function Cr(t,e,n){return{min:_r(t,e),max:_r(t,n)}}function _r(t,e){var n;return"number"==typeof t?t:null!==(n=t[e])&&void 0!==n?n:0}function wr(t,e){return pr(function(t,e){var n=t.top,o=t.left,r=t.bottom,i=t.right;void 0===e&&(e=hr);var a=e({x:o,y:n}),s=e({x:i,y:r});return{top:a.y,left:a.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}function xr(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=.01),ir(t,e)<n}function Or(t){return t.max-t.min}function Er(t,e){var n=.5,o=Or(t),r=Or(e);return r>o?n=Me(e.min,e.max-o,t.min):o>r&&(n=Me(t.min,t.max-r,e.min)),we(0,1,n)}function Lr(t,e,n,o){void 0===o&&(o=.5),t.origin=o,t.originPoint=De(e.min,e.max,t.origin),t.scale=Or(n)/Or(e),xr(t.scale,1,1e-4)&&(t.scale=1),t.translate=De(n.min,n.max,t.origin)-t.originPoint,xr(t.translate)&&(t.translate=0)}function Pr(t,e,n,o){Lr(t.x,e.x,n.x,Br(o.originX)),Lr(t.y,e.y,n.y,Br(o.originY))}function Br(t){return"number"==typeof t?t:.5}function Tr(t,e,n){t.min=n.min+e.min,t.max=t.min+Or(e)}var kr=function(t,e){return t.depth-e.depth};function Mr(t){return t.projection.isEnabled||t.shouldResetTransform()}function Dr(t,e){void 0===e&&(e=[]);var n=t.parent;return n&&Dr(n,e),Mr(t)&&e.push(t),e}function jr(t){if(!t.shouldResetTransform()){var e,n=t.getLayoutState();t.notifyBeforeLayoutMeasure(n.layout),n.isHydrated=!0,n.layout=t.measureViewportBox(),n.layoutCorrected=(e=n.layout,{x:Object(o.a)({},e.x),y:Object(o.a)({},e.y)}),t.notifyLayoutMeasure(n.layout,t.prevViewportBox||n.layout),Xn.update((function(){return t.rebaseProjectionTarget()}))}}function Wr(t){t.shouldResetTransform()||(t.prevViewportBox=t.measureViewportBox(!1),t.rebaseProjectionTarget(!1,t.prevViewportBox))}function Ir(t,e){return{min:e.min-t.min,max:e.max-t.min}}function Rr(t,e){return{x:Ir(t.x,e.x),y:Ir(t.y,e.y)}}function Fr(t,e){var n=t.getLayoutId(),o=e.getLayoutId();return n!==o||void 0===o&&t!==e}function Vr(t){var e=t.getProps(),n=e.drag,o=e._dragX;return n&&!o}function zr(t,e){t.min=e.min,t.max=e.max}function Nr(t,e,n){return n+e*(t-n)}function Ur(t,e,n,o,r){return void 0!==r&&(t=Nr(t,r,o)),Nr(t,n,o)+e}function Hr(t,e,n,o,r){void 0===e&&(e=0),void 0===n&&(n=1),t.min=Ur(t.min,e,n,o,r),t.max=Ur(t.max,e,n,o,r)}function Gr(t,e){var n=e.x,o=e.y;Hr(t.x,n.translate,n.scale,n.originPoint),Hr(t.y,o.translate,o.scale,o.originPoint)}function Yr(t,e,n,r){var i=Object(o.c)(r,3),a=i[0],s=i[1],l=i[2];t.min=e.min,t.max=e.max;var u=void 0!==n[l]?n[l]:.5,c=De(e.min,e.max,u);Hr(t,n[a],n[s],c,n.scale)}var Xr=["x","scaleX","originX"],Qr=["y","scaleY","originY"];function $r(t,e,n){Yr(t.x,e.x,n,Xr),Yr(t.y,e.y,n,Qr)}function Zr(t,e,n,o,r){return t=Nr(t-=e,1/n,o),void 0!==r&&(t=Nr(t,1/r,o)),t}function qr(t,e,n){var r=Object(o.c)(n,3),i=r[0],a=r[1],s=r[2];!function(t,e,n,o,r){void 0===e&&(e=0),void 0===n&&(n=1),void 0===o&&(o=.5);var i=De(t.min,t.max,o)-e;t.min=Zr(t.min,e,n,i,r),t.max=Zr(t.max,e,n,i,r)}(t,e[i],e[a],e[s],e.scale)}function Kr(t,e){qr(t.x,e,Xr),qr(t.y,e,Qr)}var Jr=new Set;function ti(t,e,n){t[n]||(t[n]=[]),t[n].push(e)}function ei(t){return Jr.add(t),function(){return Jr.delete(t)}}function ni(){if(Jr.size){var t=0,e=[[]],n=[],o=function(n){return ti(e,n,t)},r=function(e){ti(n,e,t),t++};Jr.forEach((function(e){e(o,r),t=0})),Jr.clear();for(var i=n.length,a=0;a<=i;a++)e[a]&&e[a].forEach(ri),n[a]&&n[a].forEach(ri)}}var oi,ri=function(t){return t()},ii=new WeakMap,ai=function(){function t(t){var e=t.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic={x:{min:0,max:1},y:{min:0,max:1}},this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=e,this.visualElement.enableLayoutProjection(),ii.set(e,this)}return t.prototype.start=function(t,e){var n=this,r=void 0===e?{}:e,i=r.snapToCursor,a=void 0!==i&&i,s=r.cursorProgress,l=this.props.transformPagePoint;this.panSession=new ar(t,{onSessionStart:function(t){var e;n.stopMotion();var r=function(t){return re(t,"client")}(t).point;null===(e=n.cancelLayout)||void 0===e||e.call(n),n.cancelLayout=ei((function(t,e){var i=Dr(n.visualElement),l=function(t){var e=[],n=function(t){Mr(t)&&e.push(t),t.children.forEach(n)};return t.children.forEach(n),e.sort(kr)}(n.visualElement),u=Object(o.e)(Object(o.e)([],Object(o.c)(i)),Object(o.c)(l)),c=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),e((function(){u.forEach((function(t){return t.resetTransform()}))})),t((function(){jr(n.visualElement),l.forEach(jr)})),e((function(){u.forEach((function(t){return t.restoreTransform()})),a&&(c=n.snapToCursor(r))})),t((function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var t=n.visualElement.projection;yr((function(e){if(!c){var o=t.target[e],i=o.min,a=o.max;n.cursorProgress[e]=s?s[e]:Me(i,a,r[e])}var l=n.getAxisMotionValue(e);l&&(n.originPoint[e]=l.get())}))})),e((function(){Nn.update(),Nn.preRender(),Nn.render(),Nn.postRender()})),t((function(){return n.resolveDragConstraints()}))}))},onStart:function(t,e){var o,r,i,a=n.props,s=a.drag,l=a.dragPropagation;(!s||l||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=pe(s),n.openGlobalLock))&&(ni(),n.isDragging=!0,n.currentDirection=null,null===(r=(o=n.props).onDragStart)||void 0===r||r.call(o,t,e),null===(i=n.visualElement.animationState)||void 0===i||i.setActive(Qt.Drag,!0))},onMove:function(t,e){var o,r,i,a,s=n.props,l=s.dragPropagation,u=s.dragDirectionLock;if(l||n.openGlobalLock){var c=e.offset;if(u&&null===n.currentDirection)return n.currentDirection=function(t,e){void 0===e&&(e=10);var n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(c),void(null!==n.currentDirection&&(null===(r=(o=n.props).onDirectionLock)||void 0===r||r.call(o,n.currentDirection)));n.updateAxis("x",e.point,c),n.updateAxis("y",e.point,c),null===(a=(i=n.props).onDrag)||void 0===a||a.call(i,t,e),oi=t}},onSessionEnd:function(t,e){return n.stop(t,e)}},{transformPagePoint:l})},t.prototype.resolveDragConstraints=function(){var t=this,e=this.props,n=e.dragConstraints,o=e.dragElastic,r=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!n&&(O(n)?this.resolveRefConstraints(r,n):function(t,e){var n=e.top,o=e.left,r=e.bottom,i=e.right;return{x:Ar(t.x,o,i),y:Ar(t.y,n,r)}}(r,n)),this.elastic=function(t){return!1===t?t=0:!0===t&&(t=.35),{x:Cr(t,"left","right"),y:Cr(t,"top","bottom")}}(o),this.constraints&&!this.hasMutatedConstraints&&yr((function(e){t.getAxisMotionValue(e)&&(t.constraints[e]=function(t,e){var n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(r[e],t.constraints[e]))}))},t.prototype.resolveRefConstraints=function(t,e){var n=this.props,o=n.onMeasureDragConstraints,r=n.transformPagePoint,i=e.current;this.constraintsBox=wr(i,r);var a=function(t,e){return{x:Sr(t.x,e.x),y:Sr(t.y,e.y)}}(t,this.constraintsBox);if(o){var s=o(function(t){var e=t.x,n=t.y;return{top:n.min,bottom:n.max,left:e.min,right:e.max}}(a));this.hasMutatedConstraints=!!s,s&&(a=pr(s))}return a},t.prototype.cancelDrag=function(){var t,e;this.visualElement.unlockProjectionTarget(),null===(t=this.cancelLayout)||void 0===t||t.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(Qt.Drag,!1)},t.prototype.stop=function(t,e){var n,o,r;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var i=this.isDragging;if(this.cancelDrag(),i){var a=e.velocity;this.animateDragEnd(a),null===(r=(o=this.props).onDragEnd)||void 0===r||r.call(o,t,e)}},t.prototype.snapToCursor=function(t){var e=this;return yr((function(n){if(si(n,e.props.drag,e.currentDirection)){var o=e.getAxisMotionValue(n);if(!o)return e.cursorProgress[n]=.5,!0;var r=e.visualElement.getLayoutState().layout,i=r[n].max-r[n].min,a=r[n].min+i/2,s=t[n]-a;e.originPoint[n]=t[n],o.set(s)}})).includes(!0)},t.prototype.updateAxis=function(t,e,n){if(si(t,this.props.drag,this.currentDirection))return this.getAxisMotionValue(t)?this.updateAxisMotionValue(t,n):this.updateVisualElementAxis(t,e)},t.prototype.updateAxisMotionValue=function(t,e){var n=this.getAxisMotionValue(t);if(e&&n){var o=this.originPoint[t]+e[t],r=this.constraints?br(o,this.constraints[t],this.elastic[t]):o;n.set(r)}},t.prototype.updateVisualElementAxis=function(t,e){var n,o=this.visualElement.getLayoutState().layout[t],r=o.max-o.min,i=this.cursorProgress[t],a=function(t,e,n,o,r){var i=t-e*n;return o?br(i,o,r):i}(e[t],r,i,null===(n=this.constraints)||void 0===n?void 0:n[t],this.elastic[t]);this.visualElement.setProjectionTargetAxis(t,a,a+r)},t.prototype.setProps=function(t){var e=t.drag,n=void 0!==e&&e,r=t.dragDirectionLock,i=void 0!==r&&r,a=t.dragPropagation,s=void 0!==a&&a,l=t.dragConstraints,u=void 0!==l&&l,c=t.dragElastic,d=void 0===c?.35:c,f=t.dragMomentum,h=void 0===f||f,p=Object(o.d)(t,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=Object(o.a)({drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:u,dragElastic:d,dragMomentum:h},p)},t.prototype.getAxisMotionValue=function(t){var e=this.props,n=e.layout,o=e.layoutId,r="_drag"+t.toUpperCase();return this.props[r]?this.props[r]:n||void 0!==o?void 0:this.visualElement.getValue(t,0)},t.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},t.prototype.isExternalDrag=function(){var t=this.props,e=t._dragX,n=t._dragY;return e||n},t.prototype.animateDragEnd=function(t){var e=this,n=this.props,r=n.drag,i=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,l=function(t,e){void 0===e&&(e=!0);var n,o=t.getProjectionParent();return!!o&&(e?Kr(n=Rr(o.projection.target,t.projection.target),o.getLatestValues()):n=Rr(o.getLayoutState().layout,t.getLayoutState().layout),yr((function(e){return t.setProjectionTargetAxis(e,n[e].min,n[e].max,!0)})),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),u=this.constraints||{};if(l&&Object.keys(u).length&&this.isLayoutDrag()){var c=this.visualElement.getProjectionParent();if(c){var d=Rr(c.projection.targetFinal,u);yr((function(t){var e=d[t],n=e.min,o=e.max;u[t]={min:isNaN(n)?void 0:n,max:isNaN(o)?void 0:o}}))}}var f=yr((function(n){var c;if(si(n,r,e.currentDirection)){var d=null!==(c=null==u?void 0:u[n])&&void 0!==c?c:{},f=a?200:1e6,h=a?40:1e7,p=Object(o.a)(Object(o.a)({type:"inertia",velocity:i?t[n]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10},s),d);return e.getAxisMotionValue(n)?e.startAxisValueAnimation(n,p):e.visualElement.startLayoutAnimation(n,p,l)}}));return Promise.all(f).then((function(){var t,n;null===(n=(t=e.props).onDragTransitionEnd)||void 0===n||n.call(t)}))},t.prototype.stopMotion=function(){var t=this;yr((function(e){var n=t.getAxisMotionValue(e);n?n.stop():t.visualElement.stopLayoutAnimation()}))},t.prototype.startAxisValueAnimation=function(t,e){var n=this.getAxisMotionValue(t);if(n){var o=n.get();return n.set(o),n.set(o),Lo(t,n,0,e)}},t.prototype.scalePoint=function(){var t=this,e=this.props,n=e.drag;if(O(e.dragConstraints)&&this.constraintsBox){this.stopMotion();var o={x:0,y:0};yr((function(e){o[e]=Er(t.visualElement.projection.target[e],t.constraintsBox[e])})),this.updateConstraints((function(){yr((function(e){if(si(e,n,null)){var r=function(t,e,n){var o=t.max-t.min,r=De(e.min,e.max-o,n);return{min:r,max:r+o}}(t.visualElement.projection.target[e],t.constraintsBox[e],o[e]),i=r.min,a=r.max;t.visualElement.setProjectionTargetAxis(e,i,a)}}))})),setTimeout(ni,1)}},t.prototype.updateConstraints=function(t){var e=this;this.cancelLayout=ei((function(n,o){var r=Dr(e.visualElement);o((function(){return r.forEach((function(t){return t.resetTransform()}))})),n((function(){return jr(e.visualElement)})),o((function(){return r.forEach((function(t){return t.restoreTransform()}))})),n((function(){e.resolveDragConstraints()})),t&&o(t)}))},t.prototype.mount=function(t){var e=this,n=ue(t.getInstance(),"pointerdown",(function(t){var n=e.props,o=n.drag,r=n.dragListener;o&&(void 0===r||r)&&e.start(t)})),o=qt(window,"resize",(function(){e.scalePoint()})),r=t.onLayoutUpdate((function(){e.isDragging&&e.resolveDragConstraints()})),i=t.prevDragCursor;return i&&this.start(oi,{cursorProgress:i}),function(){null==n||n(),null==o||o(),null==r||r(),e.cancelDrag()}},t}();function si(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}var li,ui,ci={pan:Se((function(t){var e=t.onPan,n=t.onPanStart,o=t.onPanEnd,i=t.onPanSessionStart,a=t.visualElement,s=e||n||o||i,l=Object(r.useRef)(null),u=Object(r.useContext)(d).transformPagePoint,c={onSessionStart:i,onStart:n,onMove:e,onEnd:function(t,e){l.current=null,o&&o(t,e)}};Object(r.useEffect)((function(){null!==l.current&&l.current.updateHandlers(c)})),ce(a,"pointerdown",s&&function(t){l.current=new ar(t,c,{transformPagePoint:u})}),ye((function(){return l.current&&l.current.end()}))})),drag:Se((function(t){var e=t.dragControls,n=t.visualElement,i=Object(r.useContext)(d).transformPagePoint,a=g((function(){return new ai({visualElement:n})}));a.setProps(Object(o.a)(Object(o.a)({},t),{transformPagePoint:i})),Object(r.useEffect)((function(){return e&&e.subscribe(a)}),[a]),Object(r.useEffect)((function(){return a.mount(n)}),[])}))};function di(t){return"string"==typeof t&&t.startsWith("var(--")}!function(t){t[t.Entering=0]="Entering",t[t.Present=1]="Present",t[t.Exiting=2]="Exiting"}(li||(li={})),function(t){t[t.Hide=0]="Hide",t[t.Show=1]="Show"}(ui||(ui={}));var fi=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function hi(t,e,n){void 0===n&&(n=1);var r=Object(o.c)(function(t){var e=fi.exec(t);if(!e)return[,];var n=Object(o.c)(e,3);return[n[1],n[2]]}(t),2),i=r[0],a=r[1];if(i){var s=window.getComputedStyle(e).getPropertyValue(i);return s?s.trim():di(a)?hi(a,e,n+1):a}}function pi(t,e){return t/(e.max-e.min)*100}var gi="_$css";var mi={process:function(t,e,n){var o=n.target;if("string"==typeof t){if(!lt.test(t))return t;t=parseFloat(t)}return pi(t,o.x)+"% "+pi(t,o.y)+"%"}},vi={borderRadius:Object(o.a)(Object(o.a)({},mi),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:mi,borderTopRightRadius:mi,borderBottomLeftRadius:mi,borderBottomRightRadius:mi,boxShadow:{process:function(t,e){var n=e.delta,o=e.treeScale,r=t,i=t.includes("var("),a=[];i&&(t=t.replace(fi,(function(t){return a.push(t),gi})));var s=tn.parse(t);if(s.length>5)return r;var l=tn.createTransformer(t),u="number"!=typeof s[0]?1:0,c=n.x.scale*o.x,d=n.y.scale*o.y;s[0+u]/=c,s[1+u]/=d;var f=De(c,d,.5);"number"==typeof s[2+u]&&(s[2+u]/=f),"number"==typeof s[3+u]&&(s[3+u]/=f);var h=l(s);if(i){var p=0;h=h.replace(gi,(function(){var t=a[p];return p++,t}))}return h}}},yi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.frameTarget={x:{min:0,max:1},y:{min:0,max:1}},e.currentAnimationTarget={x:{min:0,max:1},y:{min:0,max:1}},e.isAnimating={x:!1,y:!1},e.stopAxisAnimation={x:void 0,y:void 0},e.isAnimatingTree=!1,e.animate=function(t,n,r){void 0===r&&(r={});var i=r.originBox,a=r.targetBox,s=r.visibilityAction,l=r.shouldStackAnimate,u=r.onComplete,c=r.prevParent,d=Object(o.d)(r,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),f=e.props,h=f.visualElement,p=f.layout;if(!1===l)return e.isAnimatingTree=!1,e.safeToRemove();if(!e.isAnimatingTree||!0===l){l&&(e.isAnimatingTree=!0),n=i||n,t=a||t;var g=!1,m=h.getProjectionParent();if(m){var v=m.prevViewportBox,y=m.getLayoutState().layout;c&&(a&&(y=c.getLayoutState().layout),i&&!Fr(c,m)&&c.prevViewportBox&&(v=c.prevViewportBox)),v&&wi(c,i,a)&&(g=!0,n=Rr(v,n),t=Rr(y,t))}var b=bi(n,t),A=yr((function(r){var i,a;if("position"===p){var l=t[r].max-t[r].min;n[r].max=n[r].min+l}if(!h.projection.isTargetLocked)return void 0===s?b?e.animateAxis(r,t[r],n[r],Object(o.a)(Object(o.a)({},d),{isRelative:g})):(null===(a=(i=e.stopAxisAnimation)[r])||void 0===a||a.call(i),h.setProjectionTargetAxis(r,t[r].min,t[r].max,g)):void h.setVisibility(s===ui.Show)}));return h.syncRender(),Promise.all(A).then((function(){e.isAnimatingTree=!1,u&&u(),h.notifyLayoutAnimationComplete()}))}},e}return Object(o.b)(e,t),e.prototype.componentDidMount=function(){var t=this,e=this.props.visualElement;e.animateMotionValue=Lo,e.enableLayoutProjection(),this.unsubLayoutReady=e.onLayoutUpdate(this.animate),e.layoutSafeToRemove=function(){return t.safeToRemove()},V(vi)},e.prototype.componentWillUnmount=function(){var t=this;this.unsubLayoutReady(),yr((function(e){var n,o;return null===(o=(n=t.stopAxisAnimation)[e])||void 0===o?void 0:o.call(n)}))},e.prototype.animateAxis=function(t,e,n,o){var r,i,a=this,s=void 0===o?{}:o,l=s.transition,u=s.isRelative;if(!this.isAnimating[t]||!Ci(e,this.currentAnimationTarget[t])){null===(i=(r=this.stopAxisAnimation)[t])||void 0===i||i.call(r),this.isAnimating[t]=!0;var c=this.props.visualElement,d=this.frameTarget[t],f=c.getProjectionAnimationProgress()[t];f.clearListeners(),f.set(0),f.set(0);var h=function(){var o=f.get()/1e3;!function(t,e,n,o){t.min=De(e.min,n.min,o),t.max=De(e.max,n.max,o)}(d,n,e,o),c.setProjectionTargetAxis(t,d.min,d.max,u)};h();var p=f.onChange(h);this.stopAxisAnimation[t]=function(){a.isAnimating[t]=!1,f.stop(),p()},this.currentAnimationTarget[t]=e;var g=l||c.getDefaultTransition()||_i;return Lo("x"===t?"layoutX":"layoutY",f,1e3,g&&Eo(g,"layout")).then(this.stopAxisAnimation[t])}},e.prototype.safeToRemove=function(){var t,e;null===(e=(t=this.props).safeToRemove)||void 0===e||e.call(t)},e.prototype.render=function(){return null},e}(r.Component);function bi(t,e){return!(Si(t)||Si(e)||Ci(t.x,e.x)&&Ci(t.y,e.y))}var Ai={min:0,max:0};function Si(t){return Ci(t.x,Ai)&&Ci(t.y,Ai)}function Ci(t,e){return t.min===e.min&&t.max===e.max}var _i={duration:.45,ease:[.4,0,.1,1]};function wi(t,e,n){return t||!t&&!(e||n)}var xi={layoutReady:function(t){return t.notifyLayoutReady()}};function Oi(){var t=new Set;return{add:function(e){return t.add(e)},flush:function(e){var n=void 0===e?xi:e,r=n.layoutReady,i=n.parent;ei((function(e,n){var a=Array.from(t).sort(kr),s=i?Dr(i):[];n((function(){Object(o.e)(Object(o.e)([],Object(o.c)(s)),Object(o.c)(a)).forEach((function(t){return t.resetTransform()}))})),e((function(){a.forEach(jr)})),n((function(){s.forEach((function(t){return t.restoreTransform()})),a.forEach(r)})),e((function(){a.forEach((function(t){t.isPresent&&(t.presence=li.Present)}))})),n((function(){Nn.preRender(),Nn.render()})),e((function(){Xn.postRender((function(){return a.forEach(Ei)})),t.clear()}))})),ni()}}}function Ei(t){t.prevViewportBox=t.projection.target}var Li=Object(r.createContext)(Oi()),Pi=Object(r.createContext)(Oi());function Bi(t){return!!t.forceUpdate}var Ti=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.b)(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.syncLayout,n=t.framerSyncLayout,o=t.visualElement;Bi(e)&&e.register(o),Bi(n)&&n.register(o),o.onUnmount((function(){Bi(e)&&e.remove(o),Bi(n)&&n.remove(o)}))},e.prototype.getSnapshotBeforeUpdate=function(){var t=this.props,e=t.syncLayout,n=t.visualElement;return Bi(e)?e.syncUpdate():(Wr(n),e.add(n)),null},e.prototype.componentDidUpdate=function(){var t=this.props.syncLayout;Bi(t)||t.flush()},e.prototype.render=function(){return null},e}(r.default.Component);var ki={measureLayout:function(t){var e=Object(r.useContext)(Li),n=Object(r.useContext)(Pi);return r.default.createElement(Ti,Object(o.a)({},t,{syncLayout:e,framerSyncLayout:n}))},layoutAnimation:function(t){var e=Object(o.c)(m(),2)[1];return r.createElement(yi,Object(o.a)({},t,{safeToRemove:e}))}};function Mi(){return{isHydrated:!1,layout:{x:{min:0,max:1},y:{min:0,max:1}},layoutCorrected:{x:{min:0,max:1},y:{min:0,max:1}},treeScale:{x:1,y:1},delta:vr(),deltaFinal:vr(),deltaTransform:""}}var Di=Mi();function ji(t,e,n){var o=t.x,r=t.y,i="translate3d("+o.translate/e.x+"px, "+r.translate/e.y+"px, 0) ";if(n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(i+="rotate("+a+") "),s&&(i+="rotateX("+s+") "),l&&(i+="rotateY("+l+") ")}return i+="scale("+o.scale+", "+r.scale+")",n||i!==Ii?i:""}function Wi(t){var e=t.deltaFinal;return 100*e.x.origin+"% "+100*e.y.origin+"% 0"}var Ii=ji(Di.delta,Di.treeScale,{x:1,y:1}),Ri=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function Fi(t,e,n,o){var r,i,a=t.delta,s=t.layout,l=t.layoutCorrected,u=t.treeScale,c=e.target;i=s,zr((r=l).x,i.x),zr(r.y,i.y),function(t,e,n){var o=n.length;if(o){var r,i;e.x=e.y=1;for(var a=0;a<o;a++)i=(r=n[a]).getLayoutState().delta,e.x*=i.x.scale,e.y*=i.y.scale,Gr(t,i),Vr(r)&&$r(t,t,r.getLatestValues())}}(l,u,n),Pr(a,l,c,o)}var Vi=function(){function t(){this.children=[],this.isDirty=!1}return t.prototype.add=function(t){Po(this.children,t),this.isDirty=!0},t.prototype.remove=function(t){Bo(this.children,t),this.isDirty=!0},t.prototype.forEach=function(t){this.isDirty&&this.children.sort(kr),this.isDirty=!1,this.children.forEach(t)},t}();var zi=function(t){var e=t.treeType,n=void 0===e?"":e,r=t.build,i=t.getBaseTarget,a=t.makeTargetAnimatable,s=t.measureViewportBox,l=t.render,u=t.readValueFromInstance,c=t.resetTransform,d=t.restoreTransform,f=t.removeValueFromRenderState,h=t.sortNodePosition,p=t.scrapeMotionValuesFromProps;return function(t,e){var g=t.parent,m=t.props,v=t.presenceId,y=t.blockInitialAnimation,b=t.visualState;void 0===e&&(e={});var A,S,C,_,w,x,O=b.latestValues,E=b.renderState,P=function(){var t=Ri.map((function(){return new To})),e={},n={clearAllListeners:function(){return t.forEach((function(t){return t.clear()}))},updatePropListeners:function(t){return Ri.forEach((function(o){var r;null===(r=e[o])||void 0===r||r.call(e);var i="on"+o,a=t[i];a&&(e[o]=n[i](a))}))}};return t.forEach((function(t,e){n["on"+Ri[e]]=function(e){return t.add(e)},n["notify"+Ri[e]]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.notify.apply(t,Object(o.e)([],Object(o.c)(e)))}})),n}(),B={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:{x:{min:0,max:1},y:{min:0,max:1}},targetFinal:{x:{min:0,max:1},y:{min:0,max:1}}},M=B,D=O,j=Mi(),W=!1,I=new Map,R=new Map,F={},V=Object(o.a)({},O);function z(){A&&(q.isProjectionReady()&&($r(M.targetFinal,M.target,D),Pr(j.deltaFinal,j.layoutCorrected,M.targetFinal,O)),N(),l(A,E))}function N(){var t=O;if(_&&_.isActive()){var n=_.getCrossfadeState(q);n&&(t=n)}r(q,E,t,M,j,e,m)}function U(){P.notifyUpdate(O)}function H(){q.layoutTree.forEach(Ui)}var G=p(m);for(var Y in G){var X=G[Y];void 0!==O[Y]&&$(X)&&X.set(O[Y],!1)}var Q=T(m),Z=k(m),q=Object(o.a)(Object(o.a)({treeType:n,current:null,depth:g?g.depth+1:0,parent:g,children:new Set,path:g?Object(o.e)(Object(o.e)([],Object(o.c)(g.path)),[g]):[],layoutTree:g?g.layoutTree:new Vi,presenceId:v,projection:B,variantChildren:Z?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==g?void 0:g.isMounted()),blockInitialAnimation:y,isMounted:function(){return Boolean(A)},mount:function(t){A=q.current=t,q.pointTo(q),Z&&g&&!Q&&(x=null==g?void 0:g.addVariantChild(q)),null==g||g.children.add(q)},unmount:function(){zn.update(U),zn.render(z),zn.preRender(q.updateLayoutProjection),R.forEach((function(t){return t()})),q.stopLayoutAnimation(),q.layoutTree.remove(q),null==x||x(),null==g||g.children.delete(q),null==C||C(),P.clearAllListeners()},addVariantChild:function(t){var e,n=q.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),function(){return n.variantChildren.delete(t)}},sortNodePosition:function(t){return h&&n===t.treeType?h(q.getInstance(),t.getInstance()):0},getClosestVariantNode:function(){return Z?q:null==g?void 0:g.getClosestVariantNode()},scheduleUpdateLayoutProjection:g?g.scheduleUpdateLayoutProjection:function(){return Xn.preRender(q.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return m.layoutId},getInstance:function(){return A},getStaticValue:function(t){return O[t]},setStaticValue:function(t,e){return O[t]=e},getLatestValues:function(){return O},setVisibility:function(t){q.isVisible!==t&&(q.isVisible=t,q.scheduleRender())},makeTargetAnimatable:function(t,e){return void 0===e&&(e=!0),a(q,t,m,e)},addValue:function(t,e){q.hasValue(t)&&q.removeValue(t),I.set(t,e),O[t]=e.get(),function(t,e){var n=e.onChange((function(e){O[t]=e,m.onUpdate&&Xn.update(U,!1,!0)})),o=e.onRenderRequest(q.scheduleRender);R.set(t,(function(){n(),o()}))}(t,e)},removeValue:function(t){var e;I.delete(t),null===(e=R.get(t))||void 0===e||e(),R.delete(t),delete O[t],f(t,E)},hasValue:function(t){return I.has(t)},getValue:function(t,e){var n=I.get(t);return void 0===n&&void 0!==e&&(n=Mo(e),q.addValue(t,n)),n},forEachValue:function(t){return I.forEach(t)},readValue:function(t){var n;return null!==(n=O[t])&&void 0!==n?n:u(A,t,e)},setBaseTarget:function(t,e){V[t]=e},getBaseTarget:function(t){if(i){var e=i(m,t);if(void 0!==e&&!$(e))return e}return V[t]}},P),{build:function(){return N(),E},scheduleRender:function(){Xn.render(z,!1,!0)},syncRender:z,setProps:function(t){m=t,P.updatePropListeners(t),F=function(t,e,n){var o;for(var r in e){var i=e[r],a=n[r];if($(i))t.addValue(r,i);else if($(a))t.addValue(r,Mo(i));else if(a!==i)if(t.hasValue(r)){var s=t.getValue(r);!s.hasAnimated&&s.set(i)}else t.addValue(r,Mo(null!==(o=t.getStaticValue(r))&&void 0!==o?o:i))}for(var r in n)void 0===e[r]&&t.removeValue(r);return e}(q,p(m),F)},getProps:function(){return m},getVariant:function(t){var e;return null===(e=m.variants)||void 0===e?void 0:e[t]},getDefaultTransition:function(){return m.transition},getVariantContext:function(t){if(void 0===t&&(t=!1),t)return null==g?void 0:g.getVariantContext();if(!Q){var e=(null==g?void 0:g.getVariantContext())||{};return void 0!==m.initial&&(e.initial=m.initial),e}for(var n={},o=0;o<Yi;o++){var r=Gi[o],i=m[r];(L(i)||!1===i)&&(n[r]=i)}return n},enableLayoutProjection:function(){B.isEnabled=!0,q.layoutTree.add(q)},lockProjectionTarget:function(){B.isTargetLocked=!0},unlockProjectionTarget:function(){q.stopLayoutAnimation(),B.isTargetLocked=!1},getLayoutState:function(){return j},setCrossfader:function(t){_=t},isProjectionReady:function(){return B.isEnabled&&B.isHydrated&&j.isHydrated},startLayoutAnimation:function(t,e,n){void 0===n&&(n=!1);var o=q.getProjectionAnimationProgress()[t],r=n?B.relativeTarget[t]:B.target[t],i=r.min,a=r.max-i;return o.clearListeners(),o.set(i),o.set(i),o.onChange((function(e){q.setProjectionTargetAxis(t,e,e+a,n)})),q.animateMotionValue(t,o,0,e)},stopLayoutAnimation:function(){yr((function(t){return q.getProjectionAnimationProgress()[t].stop()}))},measureViewportBox:function(t){void 0===t&&(t=!0);var n=s(A,e);return t||Kr(n,O),n},getProjectionAnimationProgress:function(){return w||(w={x:Mo(0),y:Mo(0)}),w},setProjectionTargetAxis:function(t,e,n,o){var r;void 0===o&&(o=!1),o?(B.relativeTarget||(B.relativeTarget={x:{min:0,max:1},y:{min:0,max:1}}),r=B.relativeTarget[t]):(B.relativeTarget=void 0,r=B.target[t]),B.isHydrated=!0,r.min=e,r.max=n,W=!0,P.notifySetAxisTarget()},rebaseProjectionTarget:function(t,e){void 0===e&&(e=j.layout);var n=q.getProjectionAnimationProgress(),o=n.x,r=n.y,i=!(B.relativeTarget||B.isTargetLocked||o.isAnimating()||r.isAnimating());(t||i)&&yr((function(t){var n=e[t],o=n.min,r=n.max;q.setProjectionTargetAxis(t,o,r)}))},notifyLayoutReady:function(t){!function(t){var e=t.getProjectionParent();if(e){var n=Rr(e.getLayoutState().layout,t.getLayoutState().layout);yr((function(e){t.setProjectionTargetAxis(e,n[e].min,n[e].max,!0)}))}else t.rebaseProjectionTarget()}(q),q.notifyLayoutUpdate(j.layout,q.prevViewportBox||j.layout,t)},resetTransform:function(){return c(q,A,m)},restoreTransform:function(){return d(A,E)},updateLayoutProjection:function(){if(q.isProjectionReady()){var t=j.delta,e=j.treeScale,n=e.x,o=e.y,r=j.deltaTransform;Fi(j,M,q.path,O),W&&q.notifyViewportBoxUpdate(M.target,t),W=!1;var i=ji(t,e);i===r&&n===e.x&&o===e.y||q.scheduleRender(),j.deltaTransform=i}},updateTreeLayoutProjection:function(){q.layoutTree.forEach(Ni),Xn.preRender(H,!1,!0)},getProjectionParent:function(){if(void 0===S){for(var t=!1,e=q.path.length-1;e>=0;e--){var n=q.path[e];if(n.projection.isEnabled){t=n;break}}S=t}return S},resolveRelativeTargetBox:function(){var t=q.getProjectionParent();if(B.relativeTarget&&t&&(function(t,e){Tr(t.target.x,t.relativeTarget.x,e.target.x),Tr(t.target.y,t.relativeTarget.y,e.target.y)}(B,t.projection),Vr(t))){var e=B.target;$r(e,e,t.getLatestValues())}},shouldResetTransform:function(){return Boolean(m._layoutResetTransform)},pointTo:function(t){M=t.projection,D=t.getLatestValues(),null==C||C(),C=Ae(t.onSetAxisTarget(q.scheduleUpdateLayoutProjection),t.onLayoutAnimationComplete((function(){var t;q.isPresent?q.presence=li.Present:null===(t=q.layoutSafeToRemove)||void 0===t||t.call(q)})))},isPresent:!0,presence:li.Entering});return q}};function Ni(t){t.resolveRelativeTargetBox()}function Ui(t){t.updateLayoutProjection()}var Hi,Gi=Object(o.e)(["initial"],Object(o.c)(Zo)),Yi=Gi.length,Xi=new Set(["width","height","top","left","right","bottom","x","y"]),Qi=function(t){return Xi.has(t)},$i=function(t,e){t.set(e,!1),t.set(e)},Zi=function(t){return t===ft||t===lt};!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Hi||(Hi={}));var qi=function(t,e){return parseFloat(t.split(", ")[e])},Ki=function(t,e){return function(n,o){var r=o.transform;if("none"===r||!r)return 0;var i=r.match(/^matrix3d\((.+)\)$/);if(i)return qi(i[1],e);var a=r.match(/^matrix\((.+)\)$/);return a?qi(a[1],t):0}},Ji=new Set(["x","y","z"]),ta=N.filter((function(t){return!Ji.has(t)}));var ea={width:function(t){var e=t.x;return e.max-e.min},height:function(t){var e=t.y;return e.max-e.min},top:function(t,e){var n=e.top;return parseFloat(n)},left:function(t,e){var n=e.left;return parseFloat(n)},bottom:function(t,e){var n=t.y,o=e.top;return parseFloat(o)+(n.max-n.min)},right:function(t,e){var n=t.x,o=e.left;return parseFloat(o)+(n.max-n.min)},x:Ki(4,13),y:Ki(5,14)},na=function(t,e,n,r){void 0===n&&(n={}),void 0===r&&(r={}),e=Object(o.a)({},e),r=Object(o.a)({},r);var i=Object.keys(e).filter(Qi),a=[],s=!1,l=[];if(i.forEach((function(o){var i=t.getValue(o);if(t.hasValue(o)){var u,c=n[o],d=e[o],f=Wo(c);if(Nt(d))for(var h=d.length,p=null===d[0]?1:0;p<h;p++)u?Wo(d[p]):(u=Wo(d[p]))===f||Zi(f)&&Zi(u);else u=Wo(d);if(f!==u)if(Zi(f)&&Zi(u)){var g=i.get();"string"==typeof g&&i.set(parseFloat(g)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&u===lt&&(e[o]=d.map(parseFloat))}else(null==f?void 0:f.transform)&&(null==u?void 0:u.transform)&&(0===c||0===d)?0===c?i.set(u.transform(c)):e[o]=f.transform(d):(s||(a=function(t){var e=[];return ta.forEach((function(n){var o=t.getValue(n);void 0!==o&&(e.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))})),e.length&&t.syncRender(),e}(t),s=!0),l.push(o),r[o]=void 0!==r[o]?r[o]:e[o],$i(i,d))}})),l.length){var u=function(t,e,n){var o=e.measureViewportBox(),r=e.getInstance(),i=getComputedStyle(r),a=i.display,s={top:i.top,left:i.left,bottom:i.bottom,right:i.right,transform:i.transform};"none"===a&&e.setStaticValue("display",t.display||"block"),e.syncRender();var l=e.measureViewportBox();return n.forEach((function(n){var r=e.getValue(n);$i(r,ea[n](o,s)),t[n]=ea[n](l,i)})),t}(e,t,l);return a.length&&a.forEach((function(e){var n=Object(o.c)(e,2),r=n[0],i=n[1];t.getValue(r).set(i)})),t.syncRender(),{target:u,transitionEnd:r}}return{target:e,transitionEnd:r}};function oa(t,e,n,o){return function(t){return Object.keys(t).some(Qi)}(e)?na(t,e,n,o):{target:e,transitionEnd:o}}var ra=function(t,e,n,r){var i=function(t,e,n){var r,i=Object(o.d)(e,[]),a=t.getInstance();if(!(a instanceof HTMLElement))return{target:i,transitionEnd:n};for(var s in n&&(n=Object(o.a)({},n)),t.forEachValue((function(t){var e=t.get();if(di(e)){var n=hi(e,a);n&&t.set(n)}})),i){var l=i[s];if(di(l)){var u=hi(l,a);u&&(i[s]=u,n&&(null!==(r=n[s])&&void 0!==r||(n[s]=l)))}}return{target:i,transitionEnd:n}}(t,e,r);return oa(t,e=i.target,n,r=i.transitionEnd)};var ia={treeType:"dom",readValueFromInstance:function(t,e){if(G(e)){var n=Ao(e);return n&&n.default||0}var o,r=(o=t,window.getComputedStyle(o));return(q(e)?r.getPropertyValue(e):r[e])||0},sortNodePosition:function(t,e){return 2&t.compareDocumentPosition(e)?1:-1},getBaseTarget:function(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]},measureViewportBox:function(t,e){return wr(t,e.transformPagePoint)},resetTransform:function(t,e,n){var o=n.transformTemplate;e.style.transform=o?o({},""):"none",t.scheduleRender()},restoreTransform:function(t,e){t.style.transform=e.style.transform},removeValueFromRenderState:function(t,e){var n=e.vars,o=e.style;delete n[t],delete o[t]},makeTargetAnimatable:function(t,e,n,r){var i=n.transformValues;void 0===r&&(r=!0);var a=e.transition,s=e.transitionEnd,l=Object(o.d)(e,["transition","transitionEnd"]),u=Ho(l,a||{},t);if(i&&(s&&(s=i(s)),l&&(l=i(l)),u&&(u=i(u))),r){No(t,l,u);var c=ra(t,l,u,s);s=c.transitionEnd,l=c.target}return Object(o.a)({transition:a,transitionEnd:s},l)},scrapeMotionValuesFromProps:Ft,build:function(t,e,n,o,r,i,a){void 0!==t.isVisible&&(e.style.visibility=t.isVisible?"visible":"hidden");var s=o.isEnabled&&r.isHydrated;vt(e,n,o,r,i,a.transformTemplate,s?ji:void 0,s?Wi:void 0)},render:Wt},aa=zi(ia),sa=zi(Object(o.a)(Object(o.a)({},ia),{getBaseTarget:function(t,e){return t[e]},readValueFromInstance:function(t,e){var n;return G(e)?(null===(n=Ao(e))||void 0===n?void 0:n.default)||0:(e=It.has(e)?e:jt(e),t.getAttribute(e))},scrapeMotionValuesFromProps:Vt,build:function(t,e,n,o,r,i,a){var s=o.isEnabled&&r.isHydrated;Bt(e,n,o,r,i,a.transformTemplate,s?ji:void 0,s?Wi:void 0)},render:Rt})),la=function(t,e){return R(t)?sa(e,{enableHardwareAcceleration:!1}):aa(e,{enableHardwareAcceleration:!0})},ua=Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},er),Ce),ci),ki),ca=W((function(t,e){return Zt(t,e,ua,la)}));function da(t){return j(Zt(t,{forwardMotionProps:!1},ua,la))}var fa=W(Zt);var ha=0;function pa(){var t=ha;return ha++,t}var ga=function(t){var e=t.children,n=t.initial,o=t.isPresent,i=t.onExitComplete,a=t.custom,s=t.presenceAffectsLayout,l=g(ma),u=g(pa),c=Object(r.useMemo)((function(){return{id:u,initial:n,isPresent:o,custom:a,onExitComplete:function(t){l.set(t,!0);var e=!0;l.forEach((function(t){t||(e=!1)})),e&&(null==i||i())},register:function(t){return l.set(t,!1),function(){return l.delete(t)}}}}),s?void 0:[o]);return Object(r.useMemo)((function(){l.forEach((function(t,e){return l.set(e,!1)}))}),[o]),r.useEffect((function(){!o&&!l.size&&(null==i||i())}),[o]),r.createElement(p.Provider,{value:c},e)};function ma(){return new Map}function va(t){return t.key||""}var ya=function(t){var e=t.children,n=t.custom,i=t.initial,a=void 0===i||i,s=t.onExitComplete,l=t.exitBeforeEnter,u=t.presenceAffectsLayout,c=void 0===u||u,d=function(){var t=Object(r.useRef)(!1),e=Object(o.c)(Object(r.useState)(0),2),n=e[0],i=e[1];return ye((function(){return t.current=!0})),Object(r.useCallback)((function(){!t.current&&i(n+1)}),[n])}(),f=Object(r.useContext)(Li);Bi(f)&&(d=f.forceUpdate);var h=Object(r.useRef)(!0),p=function(t){var e=[];return r.Children.forEach(t,(function(t){Object(r.isValidElement)(t)&&e.push(t)})),e}(e),g=Object(r.useRef)(p),m=Object(r.useRef)(new Map).current,v=Object(r.useRef)(new Set).current;if(function(t,e){t.forEach((function(t){var n=va(t);e.set(n,t)}))}(p,m),h.current)return h.current=!1,r.createElement(r.Fragment,null,p.map((function(t){return r.createElement(ga,{key:va(t),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:c},t)})));for(var y=Object(o.e)([],Object(o.c)(p)),b=g.current.map(va),A=p.map(va),S=b.length,C=0;C<S;C++){var _=b[C];-1===A.indexOf(_)?v.add(_):v.delete(_)}return l&&v.size&&(y=[]),v.forEach((function(t){if(-1===A.indexOf(t)){var e=m.get(t);if(e){var o=b.indexOf(t);y.splice(o,0,r.createElement(ga,{key:va(e),isPresent:!1,onExitComplete:function(){m.delete(t),v.delete(t);var e=g.current.findIndex((function(e){return e.key===t}));g.current.splice(e,1),v.size||(g.current=p,d(),s&&s())},custom:n,presenceAffectsLayout:c},e))}}})),y=y.map((function(t){var e=t.key;return v.has(e)?t:r.createElement(ga,{key:va(t),isPresent:!0,presenceAffectsLayout:c},t)})),g.current=y,r.createElement(r.Fragment,null,v.size?y:y.map((function(t){return Object(r.cloneElement)(t)})))};function ba(t,e,n){void 0===n&&(n={});var o=$(t)?t:Mo(t);return Lo("",o,e,n),{stop:function(){return o.stop()}}}function Aa(){var t=Mo(1),e={lead:void 0,follow:void 0,crossfadeOpacity:!1,preserveFollowOpacity:!1},n=Object(o.a)({},e),r={},i={},a=!1,s=null,l=0;function u(n,r){var i=e.lead,l=e.follow;a=!0,s=null;var u=!1,c=function(){u=!0,i&&i.scheduleRender(),l&&l.scheduleRender()},d=function(){a=!1,s=Yn().timestamp};return r=r&&Eo(r,"crossfade"),ba(t,n,Object(o.a)(Object(o.a)({},r),{onUpdate:c,onComplete:function(){u?d():(t.set(n),Xn.read(d)),c()}}))}function c(){var n,o,a=Yn().timestamp,s=e.lead,u=e.follow;if(a!==l&&s){l=a;var c=s.getLatestValues();Object.assign(r,c);var d=u?u.getLatestValues():e.prevValues;Object.assign(i,d);var f=t.get(),h=null!==(n=c.opacity)&&void 0!==n?n:1,p=null!==(o=null==d?void 0:d.opacity)&&void 0!==o?o:1;e.crossfadeOpacity&&u?(r.opacity=De(!1!==u.isVisible?0:p,h,Sa(f)),i.opacity=e.preserveFollowOpacity?p:De(p,0,Ca(f))):u||(r.opacity=De(p,h,f)),function(t,e,n,o,r,i){for(var a=0;a<xa;a++){var s="border"+wa[a]+"Radius",l=Oa(o,s),u=Oa(n,s);if((void 0!==l||void 0!==u)&&(l||(l=0),u||(u=0),"number"==typeof l&&"number"==typeof u)){var c=Math.max(De(l,u,i),0);t[s]=e[s]=c}}if(o.rotate||n.rotate){var d=De(o.rotate||0,n.rotate||0,i);t.rotate=e.rotate=d}!r&&n.backgroundColor&&o.backgroundColor&&(t.backgroundColor=e.backgroundColor=Ye(o.backgroundColor,n.backgroundColor)(i))}(r,i,c,d||{},Boolean(u),f)}}return{isActive:function(){return r&&(a||Yn().timestamp===s)},fromLead:function(t){return u(0,t)},toLead:function(o){var r=0;return e.prevValues||e.follow?n.lead===e.follow&&n.follow===e.lead&&(r=1-t.get()):r=1,t.set(r),u(1,o)},reset:function(){return t.set(1)},stop:function(){return t.stop()},getCrossfadeState:function(t){return c(),t===e.lead?r:t===e.follow?i:void 0},setOptions:function(t){n=e,e=t,r={},i={}},getLatestValues:function(){return r}}}var Sa=_a(0,.5,An),Ca=_a(.5,.95,gn);function _a(t,e,n){return function(o){return o<t?0:o>e?1:n(Me(t,e,o))}}var wa=["TopLeft","TopRight","BottomLeft","BottomRight"],xa=wa.length;function Oa(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t.borderRadius}function Ea(){var t,e,n,r=new Set,i={leadIsExiting:!1},a=Object(o.a)({},i),s=Aa(),l=!1;return{add:function(t){t.setCrossfader(s),r.add(t),n&&(t.prevDragCursor=n),i.lead||(i.lead=t)},remove:function(t){r.delete(t)},getLead:function(){return i.lead},updateSnapshot:function(){if(i.lead){t=s.isActive()?s.getLatestValues():i.lead.getLatestValues(),e=i.lead.prevViewportBox;var o=ii.get(i.lead);o&&o.isDragging&&(n=o.cursorProgress)}},clearSnapshot:function(){n=e=void 0},updateLeadAndFollow:function(){var e,n,u;a=Object(o.a)({},i);for(var c=Array.from(r),d=c.length;d--;d>=0){var f=c[d];if(n&&(null!=u||(u=f)),null!=n||(n=f),n&&u)break}i.lead=n,i.follow=u,i.leadIsExiting=(null===(e=i.lead)||void 0===e?void 0:e.presence)===li.Exiting,s.setOptions({lead:n,follow:u,prevValues:t,crossfadeOpacity:(null==u?void 0:u.isPresenceRoot)||(null==n?void 0:n.isPresenceRoot)}),i.lead===a.follow||a.lead===i.lead&&a.leadIsExiting===i.leadIsExiting||(l=!0)},animate:function(t,n){var o;if(void 0===n&&(n=!1),t===i.lead){n?t.pointTo(i.lead):t.setVisibility(!0);var r={},a=null===(o=i.follow)||void 0===o?void 0:o.getProjectionParent();if(a&&(r.prevParent=a),t.presence===li.Entering?r.originBox=i.follow?i.follow.prevViewportBox:e:t.presence===li.Exiting&&(r.targetBox=function(){var t;return null===(t=i.follow)||void 0===t?void 0:t.getLayoutState().layout}()),l){l=!1;var u=t.getDefaultTransition();t.presence===li.Entering?s.toLead(u):s.fromLead(u)}t.notifyLayoutReady(r)}else n?i.lead&&t.pointTo(i.lead):t.setVisibility(!1)}}}var La=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.children=new Set,e.stacks=new Map,e.hasMounted=!1,e.updateScheduled=!1,e.renderScheduled=!1,e.syncContext=Object(o.a)(Object(o.a)({},Oi()),{syncUpdate:function(t){return e.scheduleUpdate(t)},forceUpdate:function(){e.syncContext=Object(o.a)({},e.syncContext),e.scheduleUpdate(!0)},register:function(t){return e.addChild(t)},remove:function(t){return e.removeChild(t)}}),e}return Object(o.b)(e,t),e.prototype.componentDidMount=function(){this.hasMounted=!0},e.prototype.componentDidUpdate=function(){this.startLayoutAnimation()},e.prototype.shouldComponentUpdate=function(){return this.renderScheduled=!0,!0},e.prototype.startLayoutAnimation=function(){var t=this;this.renderScheduled=this.updateScheduled=!1;var e=this.props.type;this.children.forEach((function(t){t.isPresent?t.presence!==li.Entering&&(t.presence=t.presence===li.Exiting?li.Entering:li.Present):t.presence=li.Exiting})),this.updateStacks();var n={layoutReady:function(n){void 0!==n.getLayoutId()?t.getStack(n).animate(n,"crossfade"===e):n.notifyLayoutReady()},parent:this.context.visualElement};this.children.forEach((function(e){return t.syncContext.add(e)})),this.syncContext.flush(n),this.stacks.forEach((function(t){return t.clearSnapshot()}))},e.prototype.updateStacks=function(){this.stacks.forEach((function(t){return t.updateLeadAndFollow()}))},e.prototype.scheduleUpdate=function(t){void 0===t&&(t=!1),!t&&this.updateScheduled||(this.updateScheduled=!0,this.children.forEach((function(t){!function(t){for(var e=!1,n={},o=0;o<z.length;o++){var r="rotate"+z[o];t.hasValue(r)&&0!==t.getStaticValue(r)&&(e=!0,n[r]=t.getStaticValue(r),t.setStaticValue(r,0))}if(e){for(var r in t.syncRender(),n)t.setStaticValue(r,n[r]);t.scheduleRender()}}(t),t.shouldResetTransform()&&t.resetTransform()})),this.children.forEach(Wr),this.stacks.forEach((function(t){return t.updateSnapshot()})),!t&&this.renderScheduled||(this.renderScheduled=!0,this.forceUpdate()))},e.prototype.addChild=function(t){this.children.add(t),this.addToStack(t),t.presence=this.hasMounted?li.Entering:li.Present},e.prototype.removeChild=function(t){this.scheduleUpdate(),this.children.delete(t),this.removeFromStack(t)},e.prototype.addToStack=function(t){var e=this.getStack(t);null==e||e.add(t)},e.prototype.removeFromStack=function(t){var e=this.getStack(t);null==e||e.remove(t)},e.prototype.getStack=function(t){var e=t.getLayoutId();if(void 0!==e)return!this.stacks.has(e)&&this.stacks.set(e,Ea()),this.stacks.get(e)},e.prototype.render=function(){return r.createElement(Li.Provider,{value:this.syncContext},this.props.children)},e.contextType=f,e}(r.Component);function Pa(t){var e=t.children,n=Object(o.d)(t,["children"]);(n=Object(o.a)(Object(o.a)({},Object(r.useContext)(d)),n)).isStatic=g((function(){return n.isStatic}));var i="object"==typeof n.transition?n.transition.toString():"",a=Object(r.useMemo)((function(){return n}),[i,n.transformPagePoint]);return r.createElement(d.Provider,{value:a},e)}function Ba(t){var e=t.children,n=t.features,i=t.strict,a=void 0!==i&&i,u=Object(o.c)(Object(r.useState)(!Ta(n)),2)[1],c=Object(r.useRef)(void 0);if(!Ta(n)){var d=n.renderer,f=Object(o.d)(n,["renderer"]);c.current=d,s(f)}return Object(r.useEffect)((function(){Ta(n)&&n().then((function(t){var e=t.renderer;s(Object(o.d)(t,["renderer"])),c.current=e,u(!0)}))}),[]),r.createElement(l.Provider,{value:{renderer:c.current,strict:a}},e)}function Ta(t){return"function"==typeof t}var ka=Object(o.a)(Object(o.a)({renderer:la},er),Ce),Ma=Object(o.a)(Object(o.a)(Object(o.a)({},ka),ci),ki);function Da(t){var e=g((function(){return Mo(t)}));if(Object(r.useContext)(d).isStatic){var n=Object(o.c)(Object(r.useState)(t),2)[1];Object(r.useEffect)((function(){return e.onChange(n)}),[])}return e}function ja(t,e){Object(r.useEffect)((function(){if($(t))return t.onChange(e)}),[e])}function Wa(t,e){var n=Da(e()),o=function(){return n.set(e())};return o(),function(t,e){Object(r.useEffect)((function(){var n=t.map((function(t){return t.onChange(e)}));return function(){return n.forEach((function(t){return t()}))}}))}(t,(function(){return Xn.update(o,!1,!0)})),n}function Ia(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var o=t.length;function r(){for(var n="",r=0;r<o;r++){n+=t[r],e[r]&&(n+=e[r].get())}return n}return Wa(e,r)}var Ra=function(t){return function(t){return"object"==typeof t&&t.mix}(t)?t.mix:void 0};function Fa(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=!Array.isArray(t[0]),r=n?0:-1,i=t[0+r],a=t[1+r],s=t[2+r],l=t[3+r],u=cn(a,s,Object(o.a)({mixer:Ra(s[0])},l));return n?u(i):u}function Va(t,e,n,r){var i="function"==typeof e?e:Fa(e,n,r);return Array.isArray(t)?za(t,i):za([t],(function(t){var e=Object(o.c)(t,1)[0];return i(e)}))}function za(t,e){var n=g((function(){return[]}));return Wa(t,(function(){n.length=0;for(var o=t.length,r=0;r<o;r++)n[r]=t[r].get();return e(n)}))}function Na(t,e){void 0===e&&(e={});var n=Object(r.useContext)(d).isStatic,i=Object(r.useRef)(null),a=Da($(t)?t.get():t);return Object(r.useMemo)((function(){return a.attach((function(t,r){return n?r(t):(i.current&&i.current.stop(),i.current=Zn(Object(o.a)(Object(o.a)({from:a.get(),to:t,velocity:a.getVelocity()},e),{onUpdate:r})),a.get())}))}),Object.values(e)),ja(t,(function(t){return a.set(parseFloat(t))})),a}function Ua(t){var e=Da(t.getVelocity());return Object(r.useEffect)((function(){return t.velocityUpdateSubscribers.add((function(t){e.set(t)}))}),[t]),e}function Ha(){return{scrollX:Mo(0),scrollY:Mo(0),scrollXProgress:Mo(0),scrollYProgress:Mo(0)}}function Ga(t,e,n){n.set(t&&e?t/e:0)}function Ya(t,e){var n=function(){var n=e(),o=n.xOffset,r=n.yOffset,i=n.xMaxOffset,a=n.yMaxOffset;t.scrollX.set(o),t.scrollY.set(r),Ga(o,i,t.scrollXProgress),Ga(r,a,t.scrollYProgress)};return n(),n}var Xa;function Qa(t){var e=g(Ha);return w((function(){var n=t.current;if(n){var o=Ya(e,function(t){return function(){return{xOffset:t.scrollLeft,yOffset:t.scrollTop,xMaxOffset:t.scrollWidth-t.offsetWidth,yMaxOffset:t.scrollHeight-t.offsetHeight}}}(n)),r=qt(n,"scroll",o,{passive:!0}),i=qt(n,"resize",o);return function(){r&&r(),i&&i()}}}),[]),e}function $a(){return{xOffset:window.pageXOffset,yOffset:window.pageYOffset,xMaxOffset:document.body.clientWidth-window.innerWidth,yMaxOffset:document.body.clientHeight-window.innerHeight}}var Za,qa=!1;function Ka(){return Xa||(Xa=Ha()),w((function(){!qa&&function(){if(qa=!0,"undefined"!=typeof window){var t=Ya(Xa,$a);qt(window,"scroll",t,{passive:!0}),qt(window,"resize",t)}}()}),[]),Xa}function Ja(){!Za&&function(){if(Za=Mo(null),"undefined"!=typeof window)if(window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion)"),e=function(){return Za.set(t.matches)};t.addListener(e),e()}else Za.set(!1)}();var t=Object(o.c)(Object(r.useState)(Za.get()),2),e=t[0],n=t[1];return ja(Za,n),e}function ts(){var t=!1,e=[],n=new Set,r={subscribe:function(t){return n.add(t),function(){n.delete(t)}},start:function(o,r){if(t){var i=[];return n.forEach((function(t){i.push(Go(t,o,{transitionOverride:r}))})),Promise.all(i)}return new Promise((function(t){e.push({animation:[o,r],resolve:t})}))},set:function(t){return n.forEach((function(e){!function(t,e){Array.isArray(e)?zo(t,e):"string"==typeof e?zo(t,[e]):Vo(t,e)}(e,t)}))},stop:function(){n.forEach((function(t){!function(t){t.forEachValue((function(t){return t.stop()}))}(t)}))},mount:function(){return t=!0,e.forEach((function(t){var e=t.animation,n=t.resolve;r.start.apply(r,Object(o.e)([],Object(o.c)(e))).then(n)})),function(){t=!1,r.stop()}}};return r}function es(){var t=g(ts);return Object(r.useEffect)(t.mount,[]),t}var ns=function(t,e,n){var o=e-t;return((n-t)%o+o)%o+t};function os(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Object(r.useRef)(0),i=Object(o.c)(Object(r.useState)(t[n.current]),2),a=i[0],s=i[1];return[a,function(e){n.current="number"!=typeof e?ns(0,t.length,n.current+1):e,s(t[n.current])}]}var rs=function(){function t(){this.componentControls=new Set}return t.prototype.subscribe=function(t){var e=this;return this.componentControls.add(t),function(){return e.componentControls.delete(t)}},t.prototype.start=function(t,e){this.componentControls.forEach((function(n){n.start(t.nativeEvent||t,e)}))},t.prototype.updateConstraints=function(t){void 0===t&&(t=!0),this.componentControls.forEach((function(t){t.updateConstraints()})),t&&ni()},t}(),is=function(){return new rs};function as(){return g(is)}var ss=function(){return{}},ls=zi({build:function(){},measureViewportBox:gr,resetTransform:function(){},restoreTransform:function(){},removeValueFromRenderState:function(){},render:function(){},scrapeMotionValuesFromProps:ss,readValueFromInstance:function(t,e,n){return n.initialState[e]||0},makeTargetAnimatable:function(t,e){var n=e.transition,r=e.transitionEnd,i=Object(o.d)(e,["transition","transitionEnd"]);return No(t,i,Ho(i,n||{},t)),Object(o.a)({transition:n,transitionEnd:r},i)}}),us=Gt({scrapeMotionValuesFromProps:ss,createRenderState:ss});function cs(t){var e=Object(o.c)(Object(r.useState)(t),2),n=e[0],i=e[1],a=us({},!1),s=g((function(){return ls({props:{},visualState:a},{initialState:t})}));return Object(r.useEffect)((function(){return s.mount({}),s.unmount()}),[]),Object(r.useEffect)((function(){s.setProps({onUpdate:function(t){return i(Object(o.a)({},t))}})})),[n,g((function(){return function(t){return Go(s,t)}}))]}var ds=function(t){return t>.001?1/t:1e5};function fs(t){var e=Da(1),n=Da(1),o=h();return!0,t?(e=t.scaleX||e,n=t.scaleY||n):o&&(e=o.getValue("scaleX",1),n=o.getValue("scaleY",1)),{scaleX:Va(e,ds),scaleY:Va(n,ds)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScannerConfiguration=void 0;const o=n(56);class r extends o.BaseConfiguration{constructor(t){super(),this.mirrored=!1,this.spinnerColor="black",this.backgroundColor="black",this.videoConstraints={width:{ideal:t.width},height:{ideal:t.height},facingMode:"environment",resizeMode:"none",experimental:{focusMode:"continous",focusDistance:0}}}static mapVideoConstraints(t,e){t.videoConstraints&&this.mapValues(t.videoConstraints,e.videoConstraints)}}e.ScannerConfiguration=r,r.DEFAULT_VIDEO_RESOLUTION_4K={width:3840,height:2160},r.DEFAULT_VIDEO_RESOLUTION_HD={width:1920,height:1080},r.DEFAULT_ACCEPTED_BRIGHTNESS_SCORE=0,r.DEFAULT_ACCEPTED_ANGLE_SCORE=75,r.DEFAULT_ACCEPTED_SIZE_SCORE=75},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.NavigationBarSizeContext=void 0;const s=n(2),l=i(n(1)),u=a(n(2)),c=n(41),d=n(39),f=n(9),h=n(4),p=n(42);d.TopBarConfiguration;e.NavigationBarSizeContext=l.default.createContext(null),e.default=function(t){const n=t.mode,o="HIDDEN"===n?0:48;(0,l.useEffect)((()=>{if("HIDDEN"===n)return;const e=document.createElement("meta");return e.name="theme-color",e.content=h.SBTheme.getColorValue(t.backgroundColor),document.head.appendChild(e),()=>{document.head.removeChild(e)}}),[n]);const r="SOLID"===n?0:o,i={height:o,remainingVisibleBodyHeight:"SOLID"===n?`calc(100 * ${c.dvhCssValue} - ${o}px)`:`calc(100 * ${c.dvhCssValue})`,minTopPaddingForContent:r,minTopPaddingForViewFinder:10+r},a="SOLID"===n?{backgroundColor:h.SBTheme.getColorValue(t.backgroundColor)}:{backgroundImage:`linear-gradient(to bottom, ${h.SBTheme.getColorValue(t.backgroundColor)}, #00000000)`,position:"absolute",backgroundColor:"transparent"};return l.default.createElement(l.default.Fragment,null,"HIDDEN"!==n&&l.default.createElement(s.AppBar,{position:"static",elevation:0,sx:Object.assign({zIndex:1e5,height:o,minHeight:o},a)},l.default.createElement(s.Toolbar,{variant:"dense",sx:{height:o,minHeight:o}},l.default.createElement(s.Box,{sx:{flex:1}},t.cancelButton.visible&&l.default.createElement(l.default.Fragment,null,l.default.createElement(p.StyledButton,Object.assign({onClick:t.onBackPress,icon:t.cancelButton.foreground.iconVisible&&l.default.createElement(u.default,{sx:{fontSize:12,mr:"5px"}})},t.cancelButton)))),l.default.createElement(s.Box,null,l.default.createElement(s.Typography,{variant:"h6",noWrap:!0,component:"div",fontSize:18,fontWeight:600},l.default.createElement(f.StyledText,{config:t.title}))),l.default.createElement(s.Box,{sx:{flex:1}}))),l.default.createElement(e.NavigationBarSizeContext.Provider,{value:i},t.children))}},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(38),e),r(n(60),e),r(n(39),e),r(n(61),e),r(n(62),e),r(n(3),e),r(n(40),e),r(n(64),e),r(n(18),e),r(n(102),e),r(n(65),e),r(n(66),e),r(n(10),e),r(n(103),e),r(n(68),e),r(n(104),e),r(n(63),e),r(n(105),e),r(n(67),e),r(n(106),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeInfoMapping=e.BarcodeMappedData=e.BarcodeItemErrorState=void 0;const o=n(3),r=n(6),i=n(3);class a extends r.PartiallyConstructible{constructor(t={}){super(),this.title=new i.StyledText({text:"Connection Error!",color:"?sbColorOnSurface"}),this.subtitle=new i.StyledText({text:"There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",color:"?sbColorOnSurfaceVariant"}),this.retryButton=new o.ButtonConfiguration({}),this.cancelButton=new o.ButtonConfiguration({}),void 0!==t.title&&(this.title=new i.StyledText(t.title)),void 0!==t.subtitle&&(this.subtitle=new i.StyledText(t.subtitle)),void 0!==t.retryButton&&(this.retryButton=new o.ButtonConfiguration(t.retryButton)),void 0!==t.cancelButton&&(this.cancelButton=new o.ButtonConfiguration(t.cancelButton))}}e.BarcodeItemErrorState=a;class s extends r.PartiallyConstructible{constructor(t={}){if(super(),void 0===t.title)throw new Error("title must be present in constructor argument");if(this.title=t.title,void 0===t.subtitle)throw new Error("subtitle must be present in constructor argument");if(this.subtitle=t.subtitle,void 0===t.barcodeImage)throw new Error("barcodeImage must be present in constructor argument");this.barcodeImage=t.barcodeImage}}e.BarcodeMappedData=s;class l extends r.PartiallyConstructible{constructor(t={}){super(),this.barcodeItemMapper=null,this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.loadingMessage=new i.StyledText({text:"Loading message for barcode info mapping.",color:"?sbColorPrimary"}),this.errorState=new a({}),void 0!==t.barcodeItemMapper&&(this.barcodeItemMapper=null!=t.barcodeItemMapper?t.barcodeItemMapper:null),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.loadingMessage&&(this.loadingMessage=new i.StyledText(t.loadingMessage)),void 0!==t.errorState&&(this.errorState=new a(t.errorState))}}e.BarcodeInfoMapping=l},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeMapper=e.BarcodeMapperContext=void 0;const r=n(12),i=n(1),a=n(116);e.BarcodeMapperContext=(0,i.createContext)(null);e.BarcodeMapper=class{constructor(t,e){this.barcodeItemMapper=t,this.onError=e,this.cache=new Map,this.cacheEntryPendingRetries=[],this.hash=t=>t.id(),this.onEvictionListeners=new Set}mapBarcodeToBarcodeItem(t,e){return o(this,void 0,void 0,(function*(){return{count:e,rawBytes:yield r.ImageUtils.toBase64(t.rawBytes),type:t.format,text:t.text,parsedDocument:t.parsedDocument}}))}getBarcodeMappedData(t){const e=this.hash(t);if(!this.cache.has(e)){const n=(()=>o(this,void 0,void 0,(function*(){if(this.barcodeItemMapper){const e=yield this.mapBarcodeToBarcodeItem(t,1);return this.barcodeItemMapper(e)}return{title:t.text,subtitle:t.format,barcodeImage:yield r.ImageUtils.toDataUrl(t.barcodeImage)}})))();this.cache.set(e,n)}return this.cache.get(e)}useBarcodeMappedData(t){const e=(0,i.useRef)(!1),n=t&&this.getBarcodeMappedData(t),o=(0,a.usePromise)(n);if((0,i.useEffect)((()=>{o&&o.error&&(e.current=!1,this.cacheEntryPendingRetries.push({barcode:t,retry:()=>{this.cache.delete(this.hash(t)),e.current=!0}}),this.onError((()=>{for(const t of this.cacheEntryPendingRetries)t.retry();this.cacheEntryPendingRetries.length=0}),(()=>{e.current=!0;for(const t of this.cacheEntryPendingRetries)for(const e of this.onEvictionListeners)this.hash(e.barcode)==this.hash(t.barcode)&&e.callback();this.cacheEntryPendingRetries.length=0})))}),[o&&o.error]),!o)return null;let r;return r=o.value?"LOADED":o.error&&!e.current?"RETRY_DIALOG_OPEN":o.error?"FAILED":"LOADING",{value:o.value,state:r}}addOnEvictionListener(t){this.onEvictionListeners.add(t)}removeOnEvictionListener(t){this.onEvictionListeners.delete(t)}}},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},a=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const l=n(90),u=n(53),c=n(55),d=n(93),f=s(n(94)),h=s(n(95)),p=s(n(58)),g=n(12),m=n(52),v=n(36),y=s(n(96)),b=s(n(98)),A=s(n(99)),S=n(101),C=n(107),_=n(108),w=s(n(109)),x=s(n(69)),O=n(57),E=i(n(110)),L=s(n(24)),P=s(n(111));class B{static get UI(){if(!m.Constants.BUILD_WITH_UI)throw new Error("UI components are not included in Scanbot.min.js. Please use ScanbotSDK.ui2.min.js instead.");return B._ui2}static initialize(t){var e;return a(this,void 0,void 0,(function*(){const n=new B,o=t.engine||B.defaultEnginePath,r=!!t.allowThreads,i=null!==(e=t.requestSuffix)&&void 0!==e?e:`?${n.version}`,a=[t.licenseKey,o,window.location.hostname,m.Constants.CDN_PATH+m.Constants.DEFAULT_WASM_FOLDER,{captureConsole:!1,allowThreads:r,profileTfjsKernels:!1,requestSuffix:i}];return n.bridge=new l.WorkerBridge(o,{allowSimd:!0,allowThreads:r,requestSuffix:i},a),B.instance=n,window.scanbotSdk=n,L.default.initialize(t.verboseLogging),t.allowThreads&&!(0,u.areThreadsAvailable)()&&(L.default.debugWarn("Threads are not available in this environment. The SDK will run in single-threaded mode."),window.hasOwnProperty("crossOriginIsolated")&&!window.crossOriginIsolated&&L.default.debugWarn("The site is not cross-origin isolated. This prevents multithreading in the ScanbotSDK. To enable multithreading, you need to set the 'Cross-Origin-Opener-Policy' and 'Cross-Origin-Embedder-Policy' http headers. See our documentation for details.")),n}))}createDocumentScanner(t){return a(this,void 0,void 0,(function*(){let e;try{const o=n(156);return e=yield o.default.create(t),yield this.licenseCheck(),e}catch(t){throw e&&e.dispose(),t}}))}createMrzScanner(t){var e;return a(this,void 0,void 0,(function*(){let o;try{const r=n(163),i=new y.default(this,this.bridge.postByTransferringArgs("createMRZRecognizer",[null==t?void 0:t.accumulatedFrameVerificationConfiguration]),!0),a=null!==(e=r.default)&&void 0!==e?e:r;return o=yield a.create(t,i),yield this.licenseCheck(),o}catch(t){throw o&&o.dispose(),t}}))}createBarcodeScanner(t){var e;return a(this,void 0,void 0,(function*(){let o;try{const r=n(73),i=null!==(e=r.default)&&void 0!==e?e:r;return o=yield i.create(t),yield this.licenseCheck(),o}catch(t){throw o&&o.dispose(),t}}))}openCroppingView(t){return a(this,void 0,void 0,(function*(){yield this.licenseCheck();const e=n(165);return yield e.default.create(t)}))}createTextDataScanner(t){return a(this,void 0,void 0,(function*(){try{const e={languages:(t=S.TextDataScannerConfiguration.fromJson(t)).supportedLanguages,ocrResolutionLimit:t.ocrResolutionLimit},n=yield this.createGenericTextLineScanner(t,t.onTextDetected,e,t.validatorPreset);return yield this.licenseCheck(),n}catch(t){throw t}}))}createVINScanner(t){return a(this,void 0,void 0,(function*(){let e;try{t=C.VINScannerConfiguration.fromJson(t);const n="VehicleIdentificationNumber",o={ocrResolutionLimit:t.ocrResolutionLimit},r=e=>{""!==e.text&&t.onTextDetected(e)};return e=yield this.createGenericTextLineScanner(t,r,o,n),yield this.licenseCheck(),e}catch(t){throw e&&e.dispose(),t}}))}toDataUrl(t){return a(this,void 0,void 0,(function*(){return x.default.throwIfMissingBuffer(t),yield g.ImageUtils.toDataUrl(t)}))}applyFilter(t,e){return a(this,void 0,void 0,(function*(){return yield this.licenseCheck(),x.default.throwIfMissingBuffer(t),yield this.bridge.postByCopyingArgs("applyFilter",[t,e])}))}rotateImageCcw(t,e){return a(this,void 0,void 0,(function*(){return x.default.throwIfMissingBuffer(t),yield this.bridge.postByCopyingArgs("rotateImageCcw",[t,e])}))}cropAndRotateImageCcw(t,e,n){return a(this,void 0,void 0,(function*(){return x.default.throwIfMissingBuffer(t),x.default.throwIfMissing(e,"Polygon may not be null"),yield this.bridge.postByCopyingArgs("cropAndRotateImageCcw",[t,e,n])}))}detectDocument(t,e,n,o){return a(this,void 0,void 0,(function*(){yield this.licenseCheck(),x.default.throwIfMissingBuffer(t);const r=yield this.bridge.postByTransferringArgs("createDocumentDetector",[{useCombinedDetector:!1,acceptedBrightnessThreshold:o||c.DocumentScannerConfiguration.DEFAULT_ACCEPTED_BRIGHTNESS_SCORE,acceptedAngleScore:e||c.DocumentScannerConfiguration.DEFAULT_ACCEPTED_ANGLE_SCORE,acceptedSizeScore:n||c.DocumentScannerConfiguration.DEFAULT_ACCEPTED_SIZE_SCORE}]);return yield this.bridge.postByCopyingArgs("documentDetectorDetect",[r,t])}))}detectAndCropDocument(t){return a(this,void 0,void 0,(function*(){return yield this.licenseCheck(),x.default.throwIfMissingBuffer(t),yield this.bridge.postByCopyingArgs("detectAndCropDocument",[t])}))}detectBarcodes(t,e,n,o,r){return a(this,void 0,void 0,(function*(){return yield this.licenseCheck(),x.default.throwIfMissingBuffer(t),new Promise((i=>{const s=document.createElement("canvas"),l=document.createElement("img");l.src=t,l.onload=()=>a(this,void 0,void 0,(function*(){s.width=l.width,s.height=l.height;const t=s.getContext("2d");t.drawImage(l,0,0);const a=t.getImageData(0,0,l.width,l.height),{result:u,originalImage:c}=yield this.bridge.postByTransferringArgs("recognizeBarcodes",[a,{engineMode:e,barcodeFormats:n,returnBarcodeImage:o,gs1Handling:r}]);i(v.BarcodeResult.fromWorker(u,g.ImageUtils.convertImageDataWrapperToImageData(c)))}))}))}))}createSimpleMRZRecognizer(){return a(this,void 0,void 0,(function*(){return new y.default(this,yield this.bridge.postByTransferringArgs("createMRZRecognizer",[]),!1)}))}createOcrEngine(t){return a(this,void 0,void 0,(function*(){return new b.default(this,yield this.bridge.postByCopyingArgs("createOcrEngine",[t]))}))}createDocumentQualityAnalyzer(t){return a(this,void 0,void 0,(function*(){const e=yield this.bridge.postByTransferringArgs("createDocumentQualityAnalyzer",[null!=t?t:{}]);return new w.default(this,e)}))}createImageProcessor(t){return a(this,void 0,void 0,(function*(){x.default.throwIfMissingBuffer(t);const e=yield this.bridge.postByCopyingArgs("imageProcessorCreate",[t]);return new O.ImageProcessor(this,e)}))}getLicenseInfo(){return a(this,void 0,void 0,(function*(){const t=yield this.bridge.postByTransferringArgs("getLicenseInfo",[]);return d.LicenseInfo.fromJson(t)}))}beginPdf(t={}){return a(this,void 0,void 0,(function*(){return yield this.licenseCheck(),new f.default(this,yield this.bridge.postByCopyingArgs("beginPdf",[t]))}))}beginTiff(t={}){return a(this,void 0,void 0,(function*(){return yield this.licenseCheck(),new h.default(this,yield this.bridge.postByCopyingArgs("beginTiff",[t]))}))}get version(){return m.Constants.VERSION}get utils(){return this._utils||(this._utils=new p.default),this._utils}release(t,e){return a(this,void 0,void 0,(function*(){t&&(console.log("Releasing object: "+e||!1),yield this.bridge.postByTransferringArgs("releaseObject",[t]))}))}licenseCheck(){return a(this,void 0,void 0,(function*(){const t=yield this.getLicenseInfo();if(!t.isValid())throw console.error(`LicenseError: ${t.status}`),new _.LicenseError(t)}))}createGenericTextLineScanner(t,e,o,r){var i;return a(this,void 0,void 0,(function*(){r&&(o.validatorPreset=r);const a=n(176),s=null!==(i=a.default)&&void 0!==i?i:a,l=this.bridge.postByCopyingArgs("createGenericTextLineScanner",[o]),u=new A.default(this,l);return yield s.create(t,e,u)}))}}B.defaultEnginePath="",B._ui2=m.Constants.BUILD_WITH_UI?P.default:void 0,B.imageFilters=E,e.default=B},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Frame=void 0;class o{constructor(t,e,n,o){this.x=t,this.y=e,this.width=n,this.height=o}scaleDown(t){return new o(this.x/t,this.y/t,this.width/t,this.height/t)}bottom(){return this.y+this.height}static withSize(t,e){return new o(0,0,t,e)}static empty(){return new o(0,0,0,0)}static fromRect(t){return t?new o(t.x,t.y,t.width,t.height):o.empty()}static fromPoint(t,e){return new o(t.x-e/2,t.y-e/2,e,e)}static fromDOMRect(t){return new o(t.x,t.y,t.width,t.height)}}e.Frame=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Utils=void 0;e.Utils=class{static toPixelSize(t){return t+"px"}static containsString(t,e){return!!t&&-1!==t.indexOf(e)}static copy(t){return JSON.parse(JSON.stringify(t))}static getProperty(t,e){let n;return t&&t.hasOwnProperty(e)&&(n=t[e]),n}static uuid(){let t="";const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=e.length;for(let o=0;o<5;o++)t+=e.charAt(Math.floor(Math.random()*n));return t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewFinderScannerConfiguration=void 0;const o=n(15),r=n(17);class i extends o.ScannerConfiguration{constructor(t){super(t);const e=new r.BarcodeScannerConfiguration;this.finder=e.viewFinder,this.userGuidance=e.userGuidance}static mapFinderConfiguration(t,e){var n,r;o.ScannerConfiguration.mapValuesDeep(null!==(n=e.finder)&&void 0!==n?n:{},t.finder),o.ScannerConfiguration.mapValuesDeep(null!==(r=e.userGuidance)&&void 0!==r?r:{},t.userGuidance)}}e.ViewFinderScannerConfiguration=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=class{static initialize(t=!1){this.verbose=t}static debug(t){this.verbose&&console.log("ScanbotSDK:",t)}static debugWarn(t){this.verbose&&console.warn("ScanbotSDK:",t)}}},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.DialogButton=void 0;const a=i(n(1)),s=n(17),l=n(2),u=n(9),c=n(4),d=i(n(2));s.ButtonConfiguration;e.DialogButton=function(t){const e=(0,a.useContext)(c.SBPaletteContext).getColorValue;if(!t.visible)return null;const n=d[t.icon];return a.default.createElement(l.Button,{onClick:t.onClick,type:t.type,style:Object.assign(Object.assign({},t.style),{border:"1px solid "+e(t.background.strokeColor),borderWidth:t.background.strokeWidth,backgroundColor:e(t.background.fillColor)})},t.foreground.iconVisible&&t.icon&&a.default.createElement(n,{sx:{color:e(t.foreground.color),pr:2}}),a.default.createElement(u.StyledText,{config:{visible:!0,text:t.text,color:t.foreground.color,useShadow:t.foreground.useShadow}}))}},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ScannerView=e.ScanbotCameraState=e.ScanbotCameraProps=void 0;const i=r(n(1)),a=n(1),s=r(n(20)),l=n(74),u=r(n(120));e.ScanbotCameraProps=class{};class c{constructor(){this.videoReady=!1,this.sdkReady=!1}}e.ScanbotCameraState=c;class d extends i.default.Component{constructor(t){super(t),this.onVideoReady=()=>{this.setState({videoReady:!0},(()=>{const{onSuccess:t}=this.props;t&&t(this)}))},this.onVideoError=t=>{if(!0===this.state.videoReady){const{onError:e}=this.props.configuration;e?e(t):console.error(t)}else{const{onFailure:e}=this.props;e&&e(t),this.dispose()}},this.state=new c,this.bridge.awaitInitialized().then((()=>{this.setState({sdkReady:!0})}))}get bridge(){return s.default.instance.bridge}dispose(){const{container:t}=this.props;t&&(0,a.render)(null,t)}componentDidMount(){this.disposed=!1}componentWillUnmount(){this.disposed=!0}isSupported(){return"localhost"===location.hostname||"https:"===location.protocol}swapCameraFacing(t){this.camera.swapCameraFacing(t)}switchCamera(t,e){return o(this,void 0,void 0,(function*(){this.camera.switchCamera(t,e)}))}getActiveCameraInfo(){return this.camera.getActiveCameraInfo()}fetchAvailableCameras(){return o(this,void 0,void 0,(function*(){return new Promise(((t,e)=>{var n;if(null===(n=navigator.mediaDevices)||void 0===n?void 0:n.enumerateDevices){let n=[];navigator.mediaDevices.enumerateDevices().then((e=>{e.forEach((t=>{"videoinput"===t.kind&&t.deviceId&&n.push({deviceId:t.deviceId,label:t.label})})),t(n)})).catch((t=>{e(l.MediaError.mediaDeviceNotFound())}))}else e(l.MediaError.enumerateDevicesFailed())}))}))}renderSpinner(t){return this.state.videoReady&&this.state.sdkReady?null:i.default.createElement("div",{"data-sb-spinner":"1",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:500}},i.default.createElement(u.default,{color:t}))}setTorchState(t){return this.camera.setTorchState(t)}}e.ScannerView=d,d.DEFAULT_DETECTION_RESOLUTION=600,d.DETECTION_RESULTION_4K=3840},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"ServerStyleSheet",(function(){return ne})),n.d(e,"StyleSheetConsumer",(function(){return Et})),n.d(e,"StyleSheetContext",(function(){return Ot})),n.d(e,"StyleSheetManager",(function(){return Bt})),n.d(e,"ThemeConsumer",(function(){return zt})),n.d(e,"ThemeContext",(function(){return Vt})),n.d(e,"ThemeProvider",(function(){return Ut})),n.d(e,"__PRIVATE__",(function(){return oe})),n.d(e,"createGlobalStyle",(function(){return Jt})),n.d(e,"css",(function(){return Qt})),n.d(e,"default",(function(){return qt})),n.d(e,"isStyledComponent",(function(){return $})),n.d(e,"keyframes",(function(){return te})),n.d(e,"styled",(function(){return qt})),n.d(e,"useTheme",(function(){return Nt})),n.d(e,"version",(function(){return f})),n.d(e,"withTheme",(function(){return ee}));var o=n(0),r=(n(88),n(1)),i=n(86),a=n.n(i),s=n(11),l=n(87),u="undefined"!=typeof t&&void 0!==t.env&&(t.env.REACT_APP_SC_ATTR||t.env.SC_ATTR)||"data-styled",c="active",d="data-styled-version",f="6.1.8",h="/*!sc*/\n",p="undefined"!=typeof window&&"HTMLElement"in window,g=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof t&&void 0!==t.env&&void 0!==t.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==t.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==t.env.REACT_APP_SC_DISABLE_SPEEDY&&t.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof t&&void 0!==t.env&&void 0!==t.env.SC_DISABLE_SPEEDY&&""!==t.env.SC_DISABLE_SPEEDY&&("false"!==t.env.SC_DISABLE_SPEEDY&&t.env.SC_DISABLE_SPEEDY)),m={},v=(new Set,Object.freeze([])),y=Object.freeze({});function b(t,e,n){return void 0===n&&(n=y),t.theme!==n.theme&&t.theme||e||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),S=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,C=/(^-|-$)/g;function _(t){return t.replace(S,"-").replace(C,"")}var w=/(a)(d)/gi,x=function(t){return String.fromCharCode(t+(t>25?39:97))};function O(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=x(e%52)+n;return(x(e%52)+n).replace(w,"$1-$2")}var E,L=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},P=function(t){return L(5381,t)};function B(t){return O(P(t)>>>0)}function T(t){return t.displayName||t.name||"Component"}function k(t){return"string"==typeof t&&!0}var M="function"==typeof Symbol&&Symbol.for,D=M?Symbol.for("react.memo"):60115,j=M?Symbol.for("react.forward_ref"):60112,W={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},I={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},R={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},F=((E={})[j]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},E[D]=R,E);function V(t){return("type"in(e=t)&&e.type.$$typeof)===D?R:"$$typeof"in t?F[t.$$typeof]:W;var e}var z=Object.defineProperty,N=Object.getOwnPropertyNames,U=Object.getOwnPropertySymbols,H=Object.getOwnPropertyDescriptor,G=Object.getPrototypeOf,Y=Object.prototype;function X(t,e,n){if("string"!=typeof e){if(Y){var o=G(e);o&&o!==Y&&X(t,o,n)}var r=N(e);U&&(r=r.concat(U(e)));for(var i=V(t),a=V(e),s=0;s<r.length;++s){var l=r[s];if(!(l in I||n&&n[l]||a&&l in a||i&&l in i)){var u=H(e,l);try{z(t,l,u)}catch(t){}}}}return t}function Q(t){return"function"==typeof t}function $(t){return"object"==typeof t&&"styledComponentId"in t}function Z(t,e){return t&&e?"".concat(t," ").concat(e):t||e||""}function q(t,e){if(0===t.length)return"";for(var n=t[0],o=1;o<t.length;o++)n+=e?e+t[o]:t[o];return n}function K(t){return null!==t&&"object"==typeof t&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function J(t,e,n){if(void 0===n&&(n=!1),!n&&!K(t)&&!Array.isArray(t))return e;if(Array.isArray(e))for(var o=0;o<e.length;o++)t[o]=J(t[o],e[o]);else if(K(e))for(var o in e)t[o]=J(t[o],e[o]);return t}function tt(t,e){Object.defineProperty(t,"toString",{value:e})}function et(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):""))}var nt=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return t.prototype.indexOfGroup=function(t){for(var e=0,n=0;n<t;n++)e+=this.groupSizes[n];return e},t.prototype.insertRules=function(t,e){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;t>=r;)if((r<<=1)<0)throw et(16,"".concat(t));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var i=o;i<r;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(t+1),s=(i=0,e.length);i<s;i++)this.tag.insertRule(a,e[i])&&(this.groupSizes[t]++,a++)},t.prototype.clearGroup=function(t){if(t<this.length){var e=this.groupSizes[t],n=this.indexOfGroup(t),o=n+e;this.groupSizes[t]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},t.prototype.getGroup=function(t){var e="";if(t>=this.length||0===this.groupSizes[t])return e;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),r=o+n,i=o;i<r;i++)e+="".concat(this.tag.getRule(i)).concat(h);return e},t}(),ot=new Map,rt=new Map,it=1,at=function(t){if(ot.has(t))return ot.get(t);for(;rt.has(it);)it++;var e=it++;return ot.set(t,e),rt.set(e,t),e},st=function(t,e){it=e+1,ot.set(t,e),rt.set(e,t)},lt="style[".concat(u,"][").concat(d,'="').concat(f,'"]'),ut=new RegExp("^".concat(u,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ct=function(t,e,n){for(var o,r=n.split(","),i=0,a=r.length;i<a;i++)(o=r[i])&&t.registerName(e,o)},dt=function(t,e){for(var n,o=(null!==(n=e.textContent)&&void 0!==n?n:"").split(h),r=[],i=0,a=o.length;i<a;i++){var s=o[i].trim();if(s){var l=s.match(ut);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(st(c,u),ct(t,c,l[3]),t.getTag().insertRules(u,r)),r.length=0}else r.push(s)}}};function ft(){return n.nc}var ht=function(t){var e=document.head,n=t||e,o=document.createElement("style"),r=function(t){var e=Array.from(t.querySelectorAll("style[".concat(u,"]")));return e[e.length-1]}(n),i=void 0!==r?r.nextSibling:null;o.setAttribute(u,c),o.setAttribute(d,f);var a=ft();return a&&o.setAttribute("nonce",a),n.insertBefore(o,i),o},pt=function(){function t(t){this.element=ht(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var e=document.styleSheets,n=0,o=e.length;n<o;n++){var r=e[n];if(r.ownerNode===t)return r}throw et(17)}(this.element),this.length=0}return t.prototype.insertRule=function(t,e){try{return this.sheet.insertRule(e,t),this.length++,!0}catch(t){return!1}},t.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},t.prototype.getRule=function(t){var e=this.sheet.cssRules[t];return e&&e.cssText?e.cssText:""},t}(),gt=function(){function t(t){this.element=ht(t),this.nodes=this.element.childNodes,this.length=0}return t.prototype.insertRule=function(t,e){if(t<=this.length&&t>=0){var n=document.createTextNode(e);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},t.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},t}(),mt=function(){function t(t){this.rules=[],this.length=0}return t.prototype.insertRule=function(t,e){return t<=this.length&&(this.rules.splice(t,0,e),this.length++,!0)},t.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},t.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},t}(),vt=p,yt={isServer:!p,useCSSOMInjection:!g},bt=function(){function t(t,e,n){void 0===t&&(t=y),void 0===e&&(e={});var r=this;this.options=Object(o.a)(Object(o.a)({},yt),t),this.gs=e,this.names=new Map(n),this.server=!!t.isServer,!this.server&&p&&vt&&(vt=!1,function(t){for(var e=document.querySelectorAll(lt),n=0,o=e.length;n<o;n++){var r=e[n];r&&r.getAttribute(u)!==c&&(dt(t,r),r.parentNode&&r.parentNode.removeChild(r))}}(this)),tt(this,(function(){return function(t){for(var e=t.getTag(),n=e.length,o="",r=function(n){var r=function(t){return rt.get(t)}(n);if(void 0===r)return"continue";var i=t.names.get(r),a=e.getGroup(n);if(void 0===i||0===a.length)return"continue";var s="".concat(u,".g").concat(n,'[id="').concat(r,'"]'),l="";void 0!==i&&i.forEach((function(t){t.length>0&&(l+="".concat(t,","))})),o+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(h)},i=0;i<n;i++)r(i);return o}(r)}))}return t.registerId=function(t){return at(t)},t.prototype.reconstructWithOptions=function(e,n){return void 0===n&&(n=!0),new t(Object(o.a)(Object(o.a)({},this.options),e),this.gs,n&&this.names||void 0)},t.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(t=function(t){var e=t.useCSSOMInjection,n=t.target;return t.isServer?new mt(n):e?new pt(n):new gt(n)}(this.options),new nt(t)));var t},t.prototype.hasNameForId=function(t,e){return this.names.has(t)&&this.names.get(t).has(e)},t.prototype.registerName=function(t,e){if(at(t),this.names.has(t))this.names.get(t).add(e);else{var n=new Set;n.add(e),this.names.set(t,n)}},t.prototype.insertRules=function(t,e,n){this.registerName(t,e),this.getTag().insertRules(at(t),n)},t.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},t.prototype.clearRules=function(t){this.getTag().clearGroup(at(t)),this.clearNames(t)},t.prototype.clearTag=function(){this.tag=void 0},t}(),At=/&/g,St=/^\s*\/\/.*$/gm;function Ct(t,e){return t.map((function(t){return"rule"===t.type&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map((function(t){return"".concat(e," ").concat(t)}))),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=Ct(t.children,e)),t}))}function _t(t){var e,n,o,r=void 0===t?y:t,i=r.options,a=void 0===i?y:i,l=r.plugins,u=void 0===l?v:l,c=function(t,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(e):t},d=u.slice();d.push((function(t){t.type===s.a&&t.value.includes("&")&&(t.props[0]=t.props[0].replace(At,n).replace(o,c))})),a.prefix&&d.push(s.d),d.push(s.g);var f=function(t,r,i,l){void 0===r&&(r=""),void 0===i&&(i=""),void 0===l&&(l="&"),e=l,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var u=t.replace(St,""),c=s.b(i||r?"".concat(i," ").concat(r," { ").concat(u," }"):u);a.namespace&&(c=Ct(c,a.namespace));var f=[];return s.f(c,s.c(d.concat(s.e((function(t){return f.push(t)}))))),f};return f.hash=u.length?u.reduce((function(t,e){return e.name||et(15),L(t,e.name)}),5381).toString():"",f}var wt=new bt,xt=_t(),Ot=r.default.createContext({shouldForwardProp:void 0,styleSheet:wt,stylis:xt}),Et=Ot.Consumer,Lt=r.default.createContext(void 0);function Pt(){return Object(r.useContext)(Ot)}function Bt(t){var e=Object(r.useState)(t.stylisPlugins),n=e[0],o=e[1],i=Pt().styleSheet,s=Object(r.useMemo)((function(){var e=i;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target,i]),l=Object(r.useMemo)((function(){return _t({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:n})}),[t.enableVendorPrefixes,t.namespace,n]);Object(r.useEffect)((function(){a()(n,t.stylisPlugins)||o(t.stylisPlugins)}),[t.stylisPlugins]);var u=Object(r.useMemo)((function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:s,stylis:l}}),[t.shouldForwardProp,s,l]);return r.default.createElement(Ot.Provider,{value:u},r.default.createElement(Lt.Provider,{value:l},t.children))}var Tt=function(){function t(t,e){var n=this;this.inject=function(t,e){void 0===e&&(e=xt);var o=n.name+e.hash;t.hasNameForId(n.id,o)||t.insertRules(n.id,o,e(n.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=e,tt(this,(function(){throw et(12,String(n.name))}))}return t.prototype.getName=function(t){return void 0===t&&(t=xt),this.name+t.hash},t}(),kt=function(t){return t>="A"&&t<="Z"};function Mt(t){for(var e="",n=0;n<t.length;n++){var o=t[n];if(1===n&&"-"===o&&"-"===t[0])return t;kt(o)?e+="-"+o.toLowerCase():e+=o}return e.startsWith("ms-")?"-"+e:e}var Dt=function(t){return null==t||!1===t||""===t},jt=function(t){var e,n,r=[];for(var i in t){var a=t[i];t.hasOwnProperty(i)&&!Dt(a)&&(Array.isArray(a)&&a.isCss||Q(a)?r.push("".concat(Mt(i),":"),a,";"):K(a)?r.push.apply(r,Object(o.e)(Object(o.e)(["".concat(i," {")],jt(a),!1),["}"],!1)):r.push("".concat(Mt(i),": ").concat((e=i,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||e in l.a||e.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Wt(t,e,n,o){return Dt(t)?[]:$(t)?[".".concat(t.styledComponentId)]:Q(t)?!Q(r=t)||r.prototype&&r.prototype.isReactComponent||!e?[t]:Wt(t(e),e,n,o):t instanceof Tt?n?(t.inject(n,o),[t.getName(o)]):[t]:K(t)?jt(t):Array.isArray(t)?Array.prototype.concat.apply(v,t.map((function(t){return Wt(t,e,n,o)}))):[t.toString()];var r}function It(t){for(var e=0;e<t.length;e+=1){var n=t[e];if(Q(n)&&!$(n))return!1}return!0}var Rt=P(f),Ft=function(){function t(t,e,n){this.rules=t,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&It(t),this.componentId=e,this.baseHash=L(Rt,e),this.baseStyle=n,bt.registerId(e)}return t.prototype.generateAndInjectStyles=function(t,e,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,e,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&e.hasNameForId(this.componentId,this.staticRulesId))o=Z(o,this.staticRulesId);else{var r=q(Wt(this.rules,t,e,n)),i=O(L(this.baseHash,r)>>>0);if(!e.hasNameForId(this.componentId,i)){var a=n(r,".".concat(i),void 0,this.componentId);e.insertRules(this.componentId,i,a)}o=Z(o,i),this.staticRulesId=i}else{for(var s=L(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=q(Wt(c,t,e,n));s=L(s,d+u),l+=d}}if(l){var f=O(s>>>0);e.hasNameForId(this.componentId,f)||e.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),o=Z(o,f)}}return o},t}(),Vt=r.default.createContext(void 0),zt=Vt.Consumer;function Nt(){var t=Object(r.useContext)(Vt);if(!t)throw et(18);return t}function Ut(t){var e=r.default.useContext(Vt),n=Object(r.useMemo)((function(){return function(t,e){if(!t)throw et(14);if(Q(t))return t(e);if(Array.isArray(t)||"object"!=typeof t)throw et(8);return e?Object(o.a)(Object(o.a)({},e),t):t}(t.theme,e)}),[t.theme,e]);return t.children?r.default.createElement(Vt.Provider,{value:n},t.children):null}var Ht={};new Set;function Gt(t,e,n){var i=$(t),a=t,s=!k(t),l=e.attrs,u=void 0===l?v:l,c=e.componentId,d=void 0===c?function(t,e){var n="string"!=typeof t?"sc":_(t);Ht[n]=(Ht[n]||0)+1;var o="".concat(n,"-").concat(B(f+n+Ht[n]));return e?"".concat(e,"-").concat(o):o}(e.displayName,e.parentComponentId):c,h=e.displayName,p=void 0===h?function(t){return k(t)?"styled.".concat(t):"Styled(".concat(T(t),")")}(t):h,g=e.displayName&&e.componentId?"".concat(_(e.displayName),"-").concat(e.componentId):e.componentId||d,m=i&&a.attrs?a.attrs.concat(u).filter(Boolean):u,S=e.shouldForwardProp;if(i&&a.shouldForwardProp){var C=a.shouldForwardProp;if(e.shouldForwardProp){var w=e.shouldForwardProp;S=function(t,e){return C(t,e)&&w(t,e)}}else S=C}var x=new Ft(n,g,i?a.componentStyle:void 0);function O(t,e){return function(t,e,n){var i=t.attrs,a=t.componentStyle,s=t.defaultProps,l=t.foldedComponentIds,u=t.styledComponentId,c=t.target,d=r.default.useContext(Vt),f=Pt(),h=t.shouldForwardProp||f.shouldForwardProp,p=b(e,d,s)||y,g=function(t,e,n){for(var r,i=Object(o.a)(Object(o.a)({},e),{className:void 0,theme:n}),a=0;a<t.length;a+=1){var s=Q(r=t[a])?r(i):r;for(var l in s)i[l]="className"===l?Z(i[l],s[l]):"style"===l?Object(o.a)(Object(o.a)({},i[l]),s[l]):s[l]}return e.className&&(i.className=Z(i.className,e.className)),i}(i,e,p),m=g.as||c,v={};for(var S in g)void 0===g[S]||"$"===S[0]||"as"===S||"theme"===S&&g.theme===p||("forwardedAs"===S?v.as=g.forwardedAs:h&&!h(S,m)||(v[S]=g[S]));var C=function(t,e){var n=Pt();return t.generateAndInjectStyles(e,n.styleSheet,n.stylis)}(a,g),_=Z(l,u);return C&&(_+=" "+C),g.className&&(_+=" "+g.className),v[k(m)&&!A.has(m)?"class":"className"]=_,v.ref=n,Object(r.createElement)(m,v)}(E,t,e)}O.displayName=p;var E=r.default.forwardRef(O);return E.attrs=m,E.componentStyle=x,E.displayName=p,E.shouldForwardProp=S,E.foldedComponentIds=i?Z(a.foldedComponentIds,a.styledComponentId):"",E.styledComponentId=g,E.target=i?a.target:t,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var o=0,r=e;o<r.length;o++)J(t,r[o],!0);return t}({},a.defaultProps,t):t}}),tt(E,(function(){return".".concat(E.styledComponentId)})),s&&X(E,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function Yt(t,e){for(var n=[t[0]],o=0,r=e.length;o<r;o+=1)n.push(e[o],t[o+1]);return n}var Xt=function(t){return Object.assign(t,{isCss:!0})};function Qt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Q(t)||K(t))return Xt(Wt(Yt(v,Object(o.e)([t],e,!0))));var r=t;return 0===e.length&&1===r.length&&"string"==typeof r[0]?Wt(r):Xt(Wt(Yt(r,e)))}function $t(t,e,n){if(void 0===n&&(n=y),!e)throw et(1,e);var r=function(r){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return t(e,n,Qt.apply(void 0,Object(o.e)([r],i,!1)))};return r.attrs=function(r){return $t(t,e,Object(o.a)(Object(o.a)({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return $t(t,e,Object(o.a)(Object(o.a)({},n),r))},r}var Zt=function(t){return $t(Gt,t)},qt=Zt;A.forEach((function(t){qt[t]=Zt(t)}));var Kt=function(){function t(t,e){this.rules=t,this.componentId=e,this.isStatic=It(t),bt.registerId(this.componentId+1)}return t.prototype.createStyles=function(t,e,n,o){var r=o(q(Wt(this.rules,e,n,o)),""),i=this.componentId+t;n.insertRules(i,i,r)},t.prototype.removeStyles=function(t,e){e.clearRules(this.componentId+t)},t.prototype.renderStyles=function(t,e,n,o){t>2&&bt.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,e,n,o)},t}();function Jt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=Qt.apply(void 0,Object(o.e)([t],e,!1)),a="sc-global-".concat(B(JSON.stringify(i))),s=new Kt(i,a),l=function(t){var e=Pt(),n=r.default.useContext(Vt),o=r.default.useRef(e.styleSheet.allocateGSInstance(a)).current;return e.styleSheet.server&&u(o,t,e.styleSheet,n,e.stylis),r.default.useLayoutEffect((function(){if(!e.styleSheet.server)return u(o,t,e.styleSheet,n,e.stylis),function(){return s.removeStyles(o,e.styleSheet)}}),[o,t,e.styleSheet,n,e.stylis]),null};function u(t,e,n,r,i){if(s.isStatic)s.renderStyles(t,m,n,i);else{var a=Object(o.a)(Object(o.a)({},e),{theme:b(e,r,l.defaultProps)});s.renderStyles(t,a,n,i)}}return r.default.memo(l)}function te(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=q(Qt.apply(void 0,Object(o.e)([t],e,!1))),i=B(r);return new Tt(i,r)}function ee(t){var e=r.default.forwardRef((function(e,n){var i=b(e,r.default.useContext(Vt),t.defaultProps);return r.default.createElement(t,Object(o.a)({},e,{theme:i,ref:n}))}));return e.displayName="WithTheme(".concat(T(t),")"),X(e,t)}var ne=function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString(),n=ft(),o=q([n&&'nonce="'.concat(n,'"'),"".concat(u,'="true"'),"".concat(d,'="').concat(f,'"')].filter(Boolean)," ");return"<style ".concat(o,">").concat(e,"</style>")},this.getStyleTags=function(){if(t.sealed)throw et(2);return t._emitSheetCSS()},this.getStyleElement=function(){var e;if(t.sealed)throw et(2);var n=((e={})[u]="",e[d]=f,e.dangerouslySetInnerHTML={__html:t.instance.toString()},e),i=ft();return i&&(n.nonce=i),[r.default.createElement("style",Object(o.a)({},n,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new bt({isServer:!0}),this.sealed=!1}return t.prototype.collectStyles=function(t){if(this.sealed)throw et(2);return r.default.createElement(Bt,{sheet:this.instance},t)},t.prototype.interleaveWithNodeStream=function(t){throw et(3)},t}(),oe={StyleSheet:bt,mainSheet:wt};"__sc-".concat(u,"__")}.call(this,n(54))},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(n(1)),a=r(n(121)),s=n(13),l=n(21),u=r(n(24));class c extends i.default.Component{constructor(t){super(t),this.videoLoaded=!1,this.reloadCanvas=!0,this.swapCameraEnabled=!0,this.activeCamera=void 0,this.save=!1,this.onStreamChanged=t=>{this.video.srcObject=t,this.updateCameraInfo(t),this.video.addEventListener("resize",(t=>{this.reloadCanvas=!0}),!1),this.video.addEventListener("loadeddata",(t=>{this.videoLoaded=!0,this.didLoadVideo&&this.didLoadVideo()}),!1)},this.state={facingModeBack:"environment"===this.props.videoConstraints.facingMode,mirrored:this.props.mirrored,deviceId:void 0}}videoSize(){const{clientVideoWidth:t,clientVideoHeight:e}=this.calculateClientVideoConstraints();return new s.Size(t,e)}saveExtractedData(){this.save=!0}zoom(){var t;return null!==(t=this.props.zoom)&&void 0!==t?t:1}imageCapture(){if(this.capture)return this.capture;const t=this.videoStream.getVideoTrack();return this.capture=new ImageCapture(t),this.capture}createImageData(t=0,e){return o(this,void 0,void 0,(function*(){if(!this.video||!this.videoLoaded)return;const n=this.getCanvasRenderingContext();if(!n)return;if(e){const t=yield this.imageCapture().takePhoto(),e=yield createImageBitmap(t);u.default.debug("Bitmap size: "+e.width*e.height),n.canvas.width=e.width,n.canvas.height=e.height,n.drawImage(e,0,0,e.width,e.height);const o=this.windowSize(),r=e.height/(o.height+o.y),i=o.width*r,a=o.height*r,s=e.width/2-i/2,c=o.y*r,d=new l.Frame(s,c,i,a);u.default.debug("Frame size: "+d.x+"-"+d.y+"-"+d.width+"-"+d.height);return n.getImageData(d.x,d.y,d.width,d.height)}let{videoWidth:o,videoHeight:r}=this.video,{clientVideoWidth:i,clientVideoHeight:a,coef:s}=this.calculateClientVideoConstraints();if(0===s)return;const c=this.finderFrame||new l.Frame(0,0,i,a),d=this.zoom(),f=(o-i/d)/2,h=(r-a/d)/2,p=c.x/s+f,g=c.y/s+h,m=this.finderFrame?s:d,v=c.width/m,y=c.height/m,b=this.calculateFrameSize(t,v,y);n.canvas.width=Math.round(b.width),n.canvas.height=Math.round(b.height),n.drawImage(this.video,p,g,v,y,0,0,n.canvas.width,n.canvas.height);const A=n.getImageData(0,0,this.canvas.width,this.canvas.height);return n.clearRect(0,0,this.canvas.width,this.canvas.height),A}))}drawVideoOnCanvasAndExtractFrameFromIt(t){return o(this,void 0,void 0,(function*(){this.getCanvasRenderingContext(),this.video}))}windowSize(){var t;const e=this.props.configuration,n=null!==(t=e.container)&&void 0!==t?t:document.getElementById(e.containerId);if(!n)throw new Error("Container DOM element is required to calculate window size and snap image.");return l.Frame.fromDOMRect(n.getBoundingClientRect())}calculateClientVideoConstraints(){let{videoWidth:t,videoHeight:e}=this.video,n=this.video.getBoundingClientRect(),o=t,r=e,i=1;return n.width/n.height<=t/e?(i=n.height/e,i>0&&(o=n.width/i)):(i=n.width/t,i>0&&(r=n.height/i)),{clientVideoWidth:o,clientVideoHeight:r,coef:i}}calculateFrameSize(t,e,n){let o=e,r=n;if(t>0&&0!=e&&0!=n){const i=e/n;e>n?(o=e>t?t:e,r=o/i):(r=n>t?t:n,o=r*i)}return new s.Size(o,r)}getCanvasRenderingContext(){if(!this.video)return null;if(0===this.video.videoWidth)return null;this.canvas&&!this.reloadCanvas||(this.canvas&&this.canvas.remove(),this.canvas=document.createElement("canvas"),this.canvas.className="scanbot-sdk-canvas-element",this.canvas.width=this.videoSize().width,this.canvas.height=this.videoSize().height,this.reloadCanvas=!1);const t=this.canvas.getContext("2d",{willReadFrequently:!0});return t.imageSmoothingEnabled=!1,t}releaseCanvas(){if(this.canvas){this.canvas.width=1,this.canvas.height=1;const t=this.canvas.getContext("2d");t&&t.clearRect(0,0,1,1),this.canvas=null}}componentWillUnmount(){this.releaseCanvas(),this.video=null,this.videoStream=null}style(){var t;const e={display:"block",width:100*this.zoom()+"%",height:100*this.zoom()+"%",left:`${this.zoomMargin()}%`,top:`${this.zoomMargin()}%`,position:"relative",objectFit:"cover",backgroundColor:null===(t=this.props.configuration)||void 0===t?void 0:t.backgroundColor};return this.state.mirrored&&(e.transform="scaleX(-1)"),e}zoomMargin(){const t=this.zoom();return 1===t?0:(1-t)/2*100}render(){const{videoConstraints:t,onReady:e,onError:n}=this.props;return i.default.createElement(a.default,{videoConstraints:t,preferredCamera:this.state.deviceId||this.props.preferredCamera,onReady:e,onStreamChanged:this.onStreamChanged,onError:n,ref:t=>{this.videoStream=t}},i.default.createElement("video",{autoPlay:!0,muted:!0,playsInline:!0,className:"scanbot-camera-view",ref:t=>{this.video=t},style:this.style()}))}setDirection(t){this.props.videoConstraints.facingMode={ideal:t},this.setState({facingModeBack:"environment"===t,mirrored:"user"===t},(()=>o(this,void 0,void 0,(function*(){yield this.videoStream.refreshStream(),this.swapCameraEnabled=!0}))))}swapCameraFacing(t){if(this.swapCameraEnabled){this.swapCameraEnabled=!1;const e=!this.state.facingModeBack,n=e?"environment":"user";this.props.videoConstraints.facingMode=!0===t?{exact:n}:{ideal:n},this.setState({facingModeBack:e,mirrored:!e},(()=>o(this,void 0,void 0,(function*(){yield this.videoStream.refreshStream(),this.swapCameraEnabled=!0}))))}}switchCamera(t,e){return o(this,void 0,void 0,(function*(){this.swapCameraEnabled&&(this.swapCameraEnabled=!1,this.props.videoConstraints.facingMode=void 0,this.setState({facingModeBack:void 0,mirrored:null!=e?e:this.state.mirrored,deviceId:t},(()=>o(this,void 0,void 0,(function*(){yield this.videoStream.refreshStream(),this.swapCameraEnabled=!0})))))}))}updateCameraInfo(t){const e=t.getTracks().filter((t=>"video"===t.kind));if(e){const t=e.map((t=>{var e;const n=t.label,o=t.getSettings().deviceId,r=t.getSettings().facingMode;let i="unknown";"user"===r?i="front":"environment"===r&&(i="back");return{deviceId:o,label:n,facingMode:i,supportsTorchControl:(null===(e=a.default.getMediaTrackCapabilities(t))||void 0===e?void 0:e.torch)||!1}}));this.activeCamera=t[0]}}getActiveCameraInfo(){return this.activeCamera}setTorchState(t){if(this.activeCamera&&this.activeCamera.supportsTorchControl){return this.videoStream.getVideoTrack().applyConstraints({advanced:[{torch:t}]})}return Promise.reject("Torch is not supported for current camera.")}}e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class o{}o.ScanbotPrimary="#c8193c",o.LightGray="#F5F5F5",o.Gray="#808080",o.DarkGray="#333333",o.Orange="#FF5533",o.White="#FFFFFF",o.TransparentGreen="rgba(0, 255, 0, 0.5)",o.TransparentGray="rgba(50, 50, 50, 0.5)",o.TransparentBlack="rgba(0, 0, 0, 0.3)",o.SBNegative="#FF3737",e.default=o},function(t,e,n){var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var t=[],e=0;e<arguments.length;e++){var o=arguments[e];if(o){var i=typeof o;if("string"===i||"number"===i)t.push(o);else if(Array.isArray(o)){if(o.length){var a=r.apply(null,o);a&&t.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var s in o)n.call(o,s)&&o[s]&&t.push(s);else t.push(o.toString())}}return t.join(" ")}t.exports?(r.default=r,t.exports=r):void 0===(o=function(){return r}.apply(e,[]))||(t.exports=o)}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewUtils=void 0;const o=n(136),r=n(13),i=n(5);class a{static convertLinesToViewportLines(t,e){if(e&&t)return e.map((e=>new o.MagneticLine(new i.Point(e.p1.x*t.width,e.p1.y*t.height),new i.Point(e.p2.x*t.width,e.p2.y*t.height))))}static convertToViewportPointsFromParentSize(t,e){return e?r.Size.isEmpty(t)?void 0:e.map((e=>i.Point.scaleUpTo(e,t))):r.Size.toPolygon(t)}static calculateScale(t){let e,n=0,o=0;return 1>t.width/t.height?(e=t.height/1,n=(1-t.width/e)/2):(e=t.width/1,o=(1-t.height/e)/2),{x:n,y:o,containerScale:e}}static findScale(t,e){let n,o=0,r=0;return e.ratio(!0)>t.ratio(!0)?(n=t.width/e.width,r=(e.height-t.height/n)/2):(n=t.height/e.height,o=(e.width-t.width/n)/2),{x:o,y:r,scale:n}}static preventDefaultCallback(t){t.preventDefault()}static disableScreenMovement(){document.addEventListener("touchmove",a.preventDefaultCallback,{passive:!1}),document.body.scrollTop=document.documentElement.scrollTop=0,document.documentElement.style.overflow="hidden"}static enableScreenMovement(){document.removeEventListener("touchmove",a.preventDefaultCallback),document.documentElement.style.overflow="auto"}static findContainerOrThrow(t){var e;const n=null!==(e=t.container)&&void 0!==e?e:document.getElementById(t.containerId);if(!n)throw Error("Unable to initialize scanner: Cannot find container element either from 'container' property or with the containerId property provided.");return n}}e.ViewUtils=a},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentLineQuad=void 0;const r=o(n(1));class i extends r.default.Component{constructor(){super(...arguments),this.LINE_COUNT=4}render(){return r.default.createElement("svg",{style:{width:"100%",height:"100%",position:"absolute",overflow:"visible",fill:this.props.polygonStyle.fill}},this.fill())}fill(){if(!this.props.points||0===this.props.points.length)return null;const t=[];for(let e=0;e<this.LINE_COUNT;e++){const n=this.props.points[e],o=this.props.points[(e+1)%this.LINE_COUNT];t.push(r.default.createElement("line",{key:e,style:this.props.polygonStyle,className:this.props.polygonClasses,x1:n.x,y1:n.y,x2:o.x,y2:o.y}))}return t}setFrame(){this.forceUpdate()}}e.DocumentLineQuad=i,i.CLASSNAME="scanbot-document-outline"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MathUtils=void 0;const o=n(5);e.MathUtils=class{static isConvex(t){if(t.length<4)return!0;let e=!1,n=t.length;for(let o=0;o<n;o++){const r=t[(o+2)%n].x-t[(o+1)%n].x,i=t[(o+2)%n].y-t[(o+1)%n].y,a=t[o].x-t[(o+1)%n].x,s=r*(t[o].y-t[(o+1)%n].y)-i*a;if(0==o)e=s>0;else if(e!=s>0)return!1}return!0}static distanceBetweenPoints(t,e){return Math.pow(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2),.5)}static intersection(t,e){const n=t[0],r=o.Point.subtract(t[1],n),i=e[0],a=o.Point.subtract(e[1],i);if(0===o.Point.cross(r,a))return;const s=o.Point.cross(o.Point.subtract(i,n),r)/o.Point.cross(r,a);return o.Point.add(i,o.Point.multiply(a,s))}}},function(t,e,n){"use strict";var o,r=function(){return"undefined"==typeof o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var t={};return function(e){if("undefined"==typeof t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},o=[],r=0;r<t.length;r++){var i=t[r],l=e.base?i[0]+e.base:i[0],u=n[l]||0,c="".concat(l," ").concat(u);n[l]=u+1;var d=s(c),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:c,updater:m(f,e),references:1}),o.push(c)}return o}function u(t){var e=document.createElement("style"),o=t.attributes||{};if("undefined"==typeof o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(t){e.setAttribute(t,o[t])})),"function"==typeof t.insert)t.insert(e);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var c,d=(c=[],function(t,e){return c[t]=e,c.filter(Boolean).join("\n")});function f(t,e,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(t.styleSheet)t.styleSheet.cssText=d(e,r);else{var i=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function h(t,e,n){var o=n.css,r=n.media,i=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}var p=null,g=0;function m(t,e){var n,o,r;if(e.singleton){var i=g++;n=p||(p=u(e)),o=f.bind(null,n,i,!1),r=f.bind(null,n,i,!0)}else n=u(e),o=h.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var o=0;o<n.length;o++){var r=s(n[o]);a[r].references--}for(var i=l(t,e),u=0;u<n.length;u++){var c=s(n[u]);0===a[c].references&&(a[c].updater(),a.splice(c,1))}n=i}}}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,o){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(o)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);o&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeResult=void 0;const o=n(12),r=n(59);class i{constructor(t,e){this.barcodes=t,this.imageData=e}static fromWorker(t,e){const n=[];t&&t.forEach((t=>{n.push(r.Barcode.fromWorker(t))}));const a=o.ImageUtils.convertImageDataWrapperToImageData(e);return new i(n,a)}isEmpty(){return 0===this.barcodes.length}}e.BarcodeResult=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clampHandlePosition=e.clamp=void 0;const o=n(5);function r(t,e,n){return Math.min(Math.max(t,e),n)}e.clamp=r,e.clampHandlePosition=function(t,e,n){return new o.Point(r(t.x,-e/2,n.width-e/2),r(t.y,-e/2,n.height-e/2))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SingleScanningMode=void 0;const o=n(10),r=n(10),i=n(3),a=n(10),s=n(18),l=n(10),u=n(18),c=n(3),d=n(6),f=n(3),h=n(3),p=n(3);class g extends d.PartiallyConstructible{constructor(t={}){super(),this._type="SingleScanningMode",this.confirmationSheetEnabled=!1,this.barcodeImageVisible=!0,this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.barcodeTitle=new p.StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.barcodeSubtitle=new p.StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.submitButton=new c.ButtonConfiguration({visible:!0,text:"?sheetSubmitButton",background:new i.BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new f.ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary"})}),this.cancelButton=new c.ButtonConfiguration({visible:!0,text:"?singleModeConfirmationCancelButton",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new f.ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary"})}),this.barcodeInfoMapping=new s.BarcodeInfoMapping({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",loadingMessage:new p.StyledText({text:"?barcodeInfoMappingLoadingMessage",color:"?sbColorPrimary"}),errorState:new u.BarcodeItemErrorState({title:new p.StyledText({text:"?barcodeInfoMappingErrorStateTitle",color:"?sbColorOnSurface"}),subtitle:new p.StyledText({text:"?barcodeInfoMappingErrorStateSubtitle",color:"?sbColorOnSurfaceVariant"}),retryButton:new c.ButtonConfiguration({visible:!0,text:"?barcodeInfoMappingErrorStateRetryButton",background:new i.BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new f.ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary"})}),cancelButton:new c.ButtonConfiguration({text:"?barcodeInfoMappingErrorStateCancelButton",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new f.ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary"})})})}),this.arOverlay=new o.ArOverlayGeneralConfiguration({visible:!1,counterBadge:new a.BadgeStyle({visible:!0,background:new i.BackgroundStyle({strokeColor:"#000000FF",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),automaticSelectionEnabled:!1,barcodeItemInfoPosition:"BELOW",polygon:new r.ArOverlayPolygonConfiguration({visible:!0,deselected:new h.PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),selected:new h.PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),barcodeItemConfiguration:new l.BarcodeItemConfiguration({imageVisible:!0,titleSelected:new p.StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new p.StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new p.StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new p.StyledText({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),backgroundSelected:new h.PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new h.PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})})}),void 0!==t.confirmationSheetEnabled&&(this.confirmationSheetEnabled=t.confirmationSheetEnabled),void 0!==t.barcodeImageVisible&&(this.barcodeImageVisible=t.barcodeImageVisible),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.barcodeTitle&&(this.barcodeTitle=new p.StyledText(t.barcodeTitle)),void 0!==t.barcodeSubtitle&&(this.barcodeSubtitle=new p.StyledText(t.barcodeSubtitle)),void 0!==t.submitButton&&(this.submitButton=new c.ButtonConfiguration(t.submitButton)),void 0!==t.cancelButton&&(this.cancelButton=new c.ButtonConfiguration(t.cancelButton)),void 0!==t.barcodeInfoMapping&&(this.barcodeInfoMapping=new s.BarcodeInfoMapping(t.barcodeInfoMapping)),void 0!==t.arOverlay&&(this.arOverlay=new o.ArOverlayGeneralConfiguration(t.arOverlay))}}e.SingleScanningMode=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TopBarConfiguration=void 0;const o=n(3),r=n(3),i=n(6),a=n(3),s=n(3);class l extends i.PartiallyConstructible{constructor(t={}){super(),this.title=new s.StyledText({visible:!1,text:"Scan Item",color:"?sbColorOnPrimary"}),this.mode="SOLID",this.backgroundColor="?sbColorPrimary",this.cancelButton=new r.ButtonConfiguration({text:"Cancel",background:new o.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new a.ForegroundStyle({color:"?sbColorOnPrimary"})}),void 0!==t.title&&(this.title=new s.StyledText(t.title)),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.cancelButton&&(this.cancelButton=new r.ButtonConfiguration(t.cancelButton))}}e.TopBarConfiguration=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FinderStrokedStyle=e.FinderCorneredStyle=e.FinderStyle=e.ViewFinderConfiguration=void 0;const o=n(3),r=n(6);class i extends r.PartiallyConstructible{constructor(t={}){super(),this.visible=!0,this.style=new s({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),this.overlayColor="?sbColorSurfaceLow",this.aspectRatio=new o.AspectRatio({width:1,height:1}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.style&&(this.style=a.From(t.style)),void 0!==t.overlayColor&&(this.overlayColor=t.overlayColor),void 0!==t.aspectRatio&&(this.aspectRatio=new o.AspectRatio(t.aspectRatio))}}var a;e.ViewFinderConfiguration=i,function(t){t.From=function(t){const e=t._type;switch(e){case"FinderCorneredStyle":return new s(t);case"FinderStrokedStyle":return new l(t);default:throw`Unknown child class name: ${e}`}}}(a||(e.FinderStyle=a={}));class s extends r.PartiallyConstructible{constructor(t={}){super(),this._type="FinderCorneredStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth),void 0!==t.cornerRadius&&(this.cornerRadius=t.cornerRadius)}}e.FinderCorneredStyle=s;class l extends r.PartiallyConstructible{constructor(t={}){super(),this._type="FinderStrokedStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth),void 0!==t.cornerRadius&&(this.cornerRadius=t.cornerRadius)}}e.FinderStrokedStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicViewportHeightCssProperty=e.dvhCssValue=void 0;const o=n(1);e.dvhCssValue="var(--1-sb-dvh, 1vh)",e.DynamicViewportHeightCssProperty=function(){const t=(0,o.useMemo)((()=>{var t,e;return null===(e=null===(t=null===window||void 0===window?void 0:window.CSS)||void 0===t?void 0:t.supports)||void 0===e?void 0:e.call(t,"height: 100dvh")}),[])&&!1,e=()=>{var e=t?"1dvh":window.innerHeight/100+"px";document.documentElement.style.setProperty("--1-sb-dvh",e)};return(0,o.useEffect)((()=>{if(e(),!t)return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}})),null}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.StyledButton=void 0;const r=n(2),i=n(9),a=n(70),s=o(n(1)),l=n(4);e.StyledButton=function(t){var e;return t.visible?s.default.createElement(r.Button,{variant:"text",onClick:t.onClick,sx:Object.assign(Object.assign({flex:1},(0,i.styledTextStyle)(t.foreground)),{textTransform:"none",fontSize:18,"&:hover, &:focus, &:active, &":{outline:"none",backgroundColor:"transparent"},px:0}),disableRipple:!0},s.default.createElement(a.StyledBox,{styleConfig:Object.assign(Object.assign({},t.background),{cornerRadius:4}),sx:{borderStyle:"solid",px:"8px"}},null!==(e=t.icon)&&void 0!==e?e:null,l.SBTheme.getLocalizedBarcodeText(t.text))):null}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeInfo=void 0;const r=n(2),i=o(n(1)),a=o(n(2)),s=n(9),l=n(4),u=o(n(2)),c=o(n(2));function d(t){return{textOverflow:"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":`${t}`,overflow:"hidden",whiteSpace:t>1?"normal":"nowrap",display:t>1?"-webkit-box":"block"}}e.BarcodeInfo=function(t){var e,n;const o=(null===(e=t.barcodeMappedData)||void 0===e?void 0:e.state)||"LOADING",f=(null===(n=t.barcodeMappedData)||void 0===n?void 0:n.value)||{title:"",subtitle:"",barcodeImage:""},h=!t||"LOADED"!==o,p=t.imageSize,g=t.barcodeTitle.visible||t.barcodeSubtitle.visible||t.counterForm,m=t.counterForm&&{"&:hover, &:focus, &:active, &":{borderColor:l.SBTheme.getColorValue(t.counterForm.manualCountOutlineColor),backgroundColor:"transparent"}};return i.default.createElement(r.Box,{sx:{display:"flex"},"data-sb-barcode-info":"1"},t.barcodeImageVisible&&i.default.createElement(r.Box,{sx:{pr:g?"16px":0,display:"flex",alignItems:"center",justifyContent:"center"}},h?i.default.createElement(r.Skeleton,{variant:"rounded",width:p,height:p,style:{borderRadius:8}}):i.default.createElement("img",{src:f.barcodeImage,alt:f.title,style:{width:p,height:p,borderRadius:8}})),g&&i.default.createElement(r.Box,{sx:{flex:1,display:"flex",flexDirection:"column",verticalAlign:"middle",justifyContent:"center",m:0,p:0,minWidth:0}},i.default.createElement(r.Box,{display:h?"block":"flex",sx:{alignItems:"center"}},i.default.createElement(r.Typography,{fontSize:16,fontWeight:"bold",sx:Object.assign(Object.assign({},d(t.maxNumberOfTitleLines)),(0,s.styledTextStyle)(t.barcodeTitle))},h?i.default.createElement(r.Skeleton,{variant:"text"}):f.title),t.displayRightArrow&&!h&&i.default.createElement(a.default,{sx:{fontSize:16,fontWeight:"bold",color:l.SBTheme.getColorValue(t.barcodeTitle.color)}})),i.default.createElement(r.Typography,{fontSize:14,fontWeight:400,sx:Object.assign(Object.assign({},d(t.maxNumberOfSubtitleLines)),(0,s.styledTextStyle)(t.barcodeSubtitle))},h?i.default.createElement(r.Skeleton,{variant:"text"}):f.subtitle),t.counterForm&&i.default.createElement(r.ButtonGroup,{variant:"outlined"},i.default.createElement(r.Button,{sx:m,onClick:()=>t.counterForm.setCounter(t.counterForm.counter-1),disableRipple:!0},i.default.createElement(u.default,{sx:{color:l.SBTheme.getColorValue(t.counterForm.manualCountChangeColor)}})),i.default.createElement(r.Button,{sx:Object.assign(Object.assign({},m),{color:l.SBTheme.getColorValue(t.counterForm.manualCountChangeColor),fontWeight:"bold",fontSize:16}),onClick:t.counterForm.onNumberClick,disableRipple:!0},t.counterForm.counter),i.default.createElement(r.Button,{sx:m,onClick:()=>t.counterForm.setCounter(t.counterForm.counter+1),disableRipple:!0},i.default.createElement(c.default,{sx:{color:l.SBTheme.getColorValue(t.counterForm.manualCountChangeColor)}})))))}},function(t,e,n){"use strict";var o=this&&this.__rest||function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.StyledDialog=void 0;const i=n(2),a=n(4),s=r(n(1));e.StyledDialog=function(t){var e,{modalOverlayColor:n}=t,r=o(t,["modalOverlayColor"]);const l={backdrop:{style:{backgroundColor:a.SBTheme.getColorValue(n)}}},u=Object.assign(Object.assign({},r.PaperProps),{sx:Object.assign(Object.assign({},null===(e=r.PaperProps)||void 0===e?void 0:e.sx),{maxWidth:400})});return s.default.createElement(i.Dialog,Object.assign({},r,{componentsProps:l,PaperProps:u}))}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ACTION_BUTTON_PADDING=e.ACTION_BUTTON_HEIGHT=e.Props=void 0;const r=o(n(1)),i=n(2),a=n(4),s=n(3);class l extends s.RoundButton{}e.Props=l,e.ACTION_BUTTON_HEIGHT=48,e.ACTION_BUTTON_PADDING=16,e.default=function(t){if(!1===t.visible)return null;const n=e.ACTION_BUTTON_HEIGHT,o={backgroundColor:t.active?a.SBTheme.getColorValue(t.activeBackgroundColor):a.SBTheme.getColorValue(t.backgroundColor),color:t.active?a.SBTheme.getColorValue(t.activeForegroundColor):a.SBTheme.getColorValue(t.foregroundColor)};return r.default.createElement(i.IconButton,{sx:Object.assign(Object.assign({},o),{"&:hover, &:focus":Object.assign({outline:"none"},o),width:n,height:n}),onClick:t.onClick},t.text&&r.default.createElement("span",{style:{fontSize:15}},a.SBTheme.getLocalizedBarcodeText(t.text)),t.icon&&r.default.createElement(t.icon,{style:{padding:7}}))}},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(n(117)),a=r(n(118)),s=r(n(119));class l{constructor(){this.audioFile=new Audio}initialize(t){return o(this,void 0,void 0,(function*(){t.successBeepEnabled&&(this.audioFile.src=s.default,yield this.play(),"MODERN_BEEP"===t.soundType&&(this.audioFile.src=i.default),"CLASSIC_BEEP"===t.soundType&&(this.audioFile.src=a.default))}))}beep(t){t.successBeepEnabled&&this.play()}play(){return o(this,void 0,void 0,(function*(){try{yield this.audioFile.play()}catch(t){}}))}}l.INSTANCE=new l,e.default=l},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Props=e.ViewFinderPadding=void 0;const r=o(n(1)),i=n(21),a=n(4),s=n(9);e.ViewFinderPadding=class{};e.Props=class{};class l extends r.default.Component{get style(){return this.props.configuration.style}get holeRect(){return this.holePosition}constructor(t){super(t),this.holePosition=i.Frame.empty(),this.resizeObserver=new ResizeObserver((()=>{this.updateWindowSize()})),this.componentDidUpdate=t=>{var e,n,o,r;(null===(e=this.props.padding)||void 0===e?void 0:e.minTopPadding)===(null===(n=t.padding)||void 0===n?void 0:n.minTopPadding)&&(null===(o=this.props.padding)||void 0===o?void 0:o.minBottomPadding)===(null===(r=t.padding)||void 0===r?void 0:r.minBottomPadding)&&this.props.configuration===t.configuration&&this.props.guidanceConfiguration===t.guidanceConfiguration||this.setState({shouldUpdateCanvas:!0}),this.updateCanvas()},this.updateWindowSize=()=>{this.setState({shouldUpdateCanvas:!0})},this.getVideoSize=()=>{var t;return null!==(t=this.holeCanvas.getBoundingClientRect())&&void 0!==t?t:new DOMRect},this.scaleForRetinaDisplay=t=>{if(window.devicePixelRatio>1){var e=t.width,n=t.height;t.width=e*window.devicePixelRatio,t.height=n*window.devicePixelRatio,t.style.width=e+"px",t.style.height=n+"px",t.getContext("2d").scale(window.devicePixelRatio,window.devicePixelRatio)}},this.updateCanvas=()=>{var t,e,n,o,r;if(!this.state.shouldUpdateCanvas)return;this.setState({shouldUpdateCanvas:!1});const i=this.getVideoSize().width,a=this.getVideoSize().height;this.holeCanvas.width=i,this.holeCanvas.height=a,this.crosshairCanvas.width=i,this.crosshairCanvas.height=a,this.scaleForRetinaDisplay(this.crosshairCanvas);const s=i-2*this.props.configuration.style.strokeWidth,l=Math.max(20,(i-s)/2),u=Math.min(s,i-2*l),c=this.props.configuration.aspectRatio.width/this.props.configuration.aspectRatio.height;this.holePosition.width=u,this.holePosition.height=this.holePosition.width/c,this.holePosition.x=i/2-u/2;const d=(null===(t=this.guidanceText)||void 0===t?void 0:t.clientHeight)+this.guidanceTextTopPadding||0,f=Math.max(10,null!==(n=null===(e=this.props.padding)||void 0===e?void 0:e.minTopPadding)&&void 0!==n?n:0),h=a-f-Math.max(10,null!==(r=null===(o=this.props.padding)||void 0===o?void 0:o.minBottomPadding)&&void 0!==r?r:0)-d;this.holePosition.height>h?(this.holePosition.height=h,this.holePosition.width=this.holePosition.height*c,this.holePosition.x=i/2-this.holePosition.width/2,this.holePosition.y=f):this.holePosition.y=f+(h-this.holePosition.height)/1.9;const p=this.holeCanvas.getContext("2d");p.save(),this.drawBackground(p),p.globalCompositeOperation="destination-out",this.drawHole();const g=this.crosshairCanvas.getContext("2d");g.globalCompositeOperation="source-over","FinderStrokedStyle"===this.props.configuration.style._type?this.drawHoleOutline():"FinderCorneredStyle"===this.props.configuration.style._type&&this.drawHoleCorners(),p.restore(),g.restore()},this.drawBackground=t=>{const{width:e,height:n}=this.getVideoSize();t.clearRect(0,0,e,n),t.beginPath(),t.rect(0,0,e,n),t.fillStyle=a.SBTheme.getColorValue(this.props.configuration.overlayColor),t.fill()},this.drawHole=()=>{const t=this.holeCanvas.getContext("2d"),e=this.cornerRadius(),n=this.holePosition.x,o=this.holePosition.y,r=this.holePosition.width,i=this.holePosition.height;t.beginPath(),t.fillStyle="black",t.moveTo(n+e,o),t.arcTo(n+r,o,n+r,o+i,e),t.arcTo(n+r,o+i,n,o+i,e),t.arcTo(n,o+i,n,o,e),t.arcTo(n,o,n+r,o,e),t.closePath(),t.fill()},this.drawCrosshair=()=>{const t=this.crosshairCanvas.getContext("2d"),e=this.holePosition.x+this.holePosition.width/2,n=this.holePosition.y+this.holePosition.height/2;t.beginPath(),t.moveTo(e-10,n),t.lineTo(e+10,n),t.moveTo(e,n-10),t.lineTo(e,n+10),t.strokeStyle="white",t.fillStyle="white",t.lineWidth=1,t.stroke()},this.drawHoleCorners=()=>{const t=this.crosshairCanvas.getContext("2d"),e=this.holePosition.x,n=this.holePosition.y,o=this.holePosition.width,r=this.holePosition.height,i=15,s=this.style.strokeWidth,l=this.cornerRadius();t.beginPath(),t.moveTo(e,n+i),t.arcTo(e,n,e+o,n,l),t.lineTo(e+i,n),t.moveTo(e+o-i,n),t.arcTo(e+o,n,e+o,n+r,l),t.lineTo(e+o,n+i),t.moveTo(e+o,n+r-i),t.arcTo(e+o,n+r,e,n+r,l),t.lineTo(e+o-i,n+r),t.moveTo(e,n+r-i),t.arcTo(e,n+r,e+o,n+r,l),t.lineTo(e+i,n+r),t.strokeStyle=a.SBTheme.getColorValue(this.style.strokeColor),t.lineWidth=s,t.stroke()},this.drawHoleOutline=()=>{const t=this.crosshairCanvas.getContext("2d"),e=this.holePosition.x,n=this.holePosition.y,o=this.holePosition.width,r=this.holePosition.height,i=this.cornerRadius(),s=this.style.strokeWidth;t.beginPath(),t.moveTo(e+i,n),t.arcTo(e+o,n,e+o,n+r,i),t.moveTo(e+o,n+i),t.arcTo(e+o,n+r,e,n+r,i),t.moveTo(e+o-i,n+r),t.arcTo(e,n+r,e,n,i),t.moveTo(e,n+r-i),t.arcTo(e,n,e+o,n,i),t.strokeStyle=a.SBTheme.getColorValue(this.style.strokeColor),t.lineWidth=s,t.stroke()},this.guidanceTextTopPadding=20,this.render=()=>r.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"},onClick:t=>{const e=this.holePosition;t.clientX>this.holePosition.x&&t.clientX<e.x+e.width&&t.clientY>e.y&&t.clientY<e.y+e.height&&console.log("Clicked inside hole, possibly click events need to be diverted")}},r.default.createElement("canvas",{ref:t=>{this.holeCanvas=t},style:{position:"absolute",width:"100%",height:"100%"}}),r.default.createElement("canvas",{ref:t=>{this.crosshairCanvas=t},style:{position:"absolute",width:"100%",height:"100%"}}),r.default.createElement("div",{style:{position:"absolute",top:this.holePosition.y+this.holePosition.height+this.guidanceTextTopPadding,left:0,display:"flex",justifyContent:"center",width:"100%"}},r.default.createElement(s.StyledText,{innerRef:t=>{this.guidanceText=t},style:{paddingLeft:5,paddingRight:5,backgroundColor:a.SBTheme.getColorValue(this.guidance.background.fillColor),borderStyle:"solid",borderWidth:this.guidance.background.strokeWidth,borderColor:a.SBTheme.getColorValue(this.guidance.background.strokeColor)},config:this.guidance.title}))),this.state={shouldUpdateCanvas:!0}}componentDidMount(){this.updateWindowSize(),this.resizeObserver.observe(this.holeCanvas)}componentWillUnmount(){this.resizeObserver.disconnect()}bottomOfGuidanceText(){var t,e;return this.holeRect.bottom()+(null!==(e=null===(t=this.guidanceText)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0)+this.guidanceTextTopPadding}get guidance(){return this.props.guidanceConfiguration}cornerRadius(){return Math.max(0,Math.min(this.style.cornerRadius,this.holePosition.width/2,this.holePosition.height/2))}}e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Debugger=void 0;e.Debugger=class{static warn(t){console.warn("[ScanbotSDK]",t)}}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.useIsLayoutEqualOrAbove=e.useIsLayout=e.createSBTheme=void 0;const r=n(2),i=o(n(29)),a=n(2),s=0,l=800,u=1200;e.createSBTheme=()=>(0,r.createTheme)({palette:{primary:{main:i.default.ScanbotPrimary},secondary:{main:i.default.DarkGray}}}),e.useIsLayout=function(t){switch(t){case"mobile":return(0,a.useMediaQuery)("(min-width:"+s+"px) and (max-width:"+(l-1)+"px)");case"tablet":return(0,a.useMediaQuery)("(min-width:"+l+"px) and (max-width:"+(u-1)+"px)");case"desktop":return(0,a.useMediaQuery)("(min-width:"+u+"px)")}},e.useIsLayoutEqualOrAbove=function(t){switch(t){case"mobile":return(0,a.useMediaQuery)("(min-width:"+s+"px)");case"tablet":return(0,a.useMediaQuery)("(min-width:"+l+"px)");case"desktop":return(0,a.useMediaQuery)("(min-width:"+u+"px)")}}},function(t,e,n){"use strict";var o=n(35),r=n.n(o)()((function(t){return t[1]}));r.push([t.i,"\n.scanbot-shutter-fade-in {\n opacity: 1;\n}\n\n.scanbot-shutter-fade-out {\n opacity: 0;\n}\n\n.scanbot-shutter-rotate {\n animation: scanbot-shutter-rotating linear infinite;\n}\n\n.scanbot-shutter-pulse-fast {\n animation: scanbot-shutter-pulsing 1s ease-in-out infinite;\n}\n\n.scanbot-shutter-button {\n position: relative;\n width: 64px;\n height: 64px;\n left: 50%;\n bottom: 12px;\n transform: translate(-50%, -100%);\n}\n\n.scanbot-shutter-button-part {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n transition: opacity 0.5s ease-in-out;\n}\n\n@keyframes scanbot-shutter-rotating {\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes scanbot-shutter-pulsing {\n 0% {\n opacity: 0.25;\n }\n 50% {\n opacity: 0.8;\n }\n 100% {\n opacity: 0.25;\n }\n}\n",""]),e.a=r},function(t,e,n){"use strict";var o=n(35),r=n.n(o)()((function(t){return t[1]}));r.push([t.i,".scanbot-document-hint-text {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n background-color: rgba(0, 0, 0, 0.4);\n color: white;\n border-radius: 0.25em;\n padding: 0.05em 0.3em 0.05em 0.3em;\n font-family: sans-serif;\n font-size: 0.9em;\n font-weight: 300;\n}\n",""]),e.a=r},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Constants=void 0;o(n(91));var r="5.1.0-dev.2";class i{}e.Constants=i,i.VERSION=r,i.CDN_PATH=`https://cdn.jsdelivr.net/npm/scanbot-web-sdk@${r}/bundle/`,i.DEFAULT_WASM_FOLDER="bin/complete/",i.BUILD_WITH_UI=!1},function(t,e,n){"use strict";(function(t){function n(){if("undefined"!=typeof t&&"undefined"!=typeof t.versions&&"undefined"!=typeof t.versions.node)return!1;if(/(iPad|iPhone|iPod)/g.test(navigator.userAgent))return!1;try{return(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]))}catch(t){return!1}}Object.defineProperty(e,"__esModule",{value:!0}),e.gatherTransferables=function(t,e){const n=[];return function t(o){if(!o)return;if(o.constructor===ImageData){const t={data:o.data.slice(),width:o.width,height:o.height};return n.push(t.data.buffer),t}if(o.constructor===ArrayBuffer){const t=e?o.slice(0):o;if(n.push(t),e)return o}else if(ArrayBuffer.isView(o)){let t;if(e){t=new(0,o.constructor)(o.buffer.slice(0))}else t=o;if(n.push(t.buffer),e)return o}else if(Array.isArray(o))for(let e=0;e<o.length;++e){const n=t(o[e]);n&&(o[e]=n)}else if(o.constructor===Object)for(const e in o)if(o.hasOwnProperty(e)){const n=t(o[e]);n&&(o[e]=n)}}(t),n},e.isRemote=function(t){return t.startsWith("http:")||t.startsWith("https:")},e.areThreadsAvailable=n,e.getBuildType=function(t){const{allowSimd:e=!0,allowThreads:o=!0}=t||{};let r="";if(e&&function(){try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))}catch(t){return!1}}()){r+="-simd";o&&n()&&(r+="-threads")}return r}}).call(this,n(54))},function(t,e){var n,o,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(t){o=a}}();var l,u=[],c=!1,d=-1;function f(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&h())}function h(){if(!c){var t=s(f);c=!0;for(var e=u.length;e;){for(l=u,u=[];++d<e;)l&&l[d].run();d=-1,e=u.length}l=null,c=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function g(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new p(t,e)),1!==u.length||c||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentScannerConfiguration=e.CaptureButtonStyleConfiguration=e.OutlineLabelStyleConfiguration=e.CaptureAnimationStyleConfiguration=e.OutlinePolygonStyleConfiguration=e.OutlineStyleConfiguration=e.StyleConfiguration=e.TextConfiguration=void 0;const o=n(15),r={OK:"Capturing your document... Please do not move the camera.",OK_SmallSize:"The document is too small. Try moving closer.",OK_BadAngles:"This is a bad camera angle. Hold the device straight over the document.",OK_BadAspectRatio:"Rotate the device sideways, so that the document fits better into the screen.",OK_OffCenter:"Try holding the device at the center of the document.",Error_NothingDetected:"Please hold the device over a document to start scanning.",Error_Brightness:"It is too dark. Try turning on a light.",Error_Noise:"Please move the document to a clear surface."};class i{constructor(t){this.hint=t}}e.TextConfiguration=i;class a{constructor(){this.outline=new s,this.captureButton=new d}}e.StyleConfiguration=a;class s{constructor(){this.polygon=new l,this.path=new u,this.label=new c}}e.OutlineStyleConfiguration=s;class l{constructor(){this.strokeCapturing="green",this.strokeSearching="yellow",this.fillCapturing="transparent",this.fillSearching="transparent"}}e.OutlinePolygonStyleConfiguration=l;class u{constructor(){this.stroke="green",this.strokeWidth=4}}e.CaptureAnimationStyleConfiguration=u;class c{}e.OutlineLabelStyleConfiguration=c;class d{constructor(){this.color="#FFF"}}e.CaptureButtonStyleConfiguration=d;class f extends o.ScannerConfiguration{constructor(){super(o.ScannerConfiguration.DEFAULT_VIDEO_RESOLUTION_4K),this.acceptedBrightnessThreshold=f.DEFAULT_ACCEPTED_BRIGHTNESS_SCORE,this.acceptedAngleScore=f.DEFAULT_ACCEPTED_ANGLE_SCORE,this.acceptedSizeScore=f.DEFAULT_ACCEPTED_SIZE_SCORE,this.autoCaptureEnabled=!0,this.autoCaptureSensitivity=.66,this.autoCaptureDelay=1e3,this.ignoreBadAspectRatio=!0,this.useImageCaptureAPI=!1,this.text=new i(r),this.style=new a,this.onDocumentDetected=function(t){}}static fromJson(t){const e=new f;if(this.mapValues(t,e,["text","style","videoConstraints"]),t.text&&t.text.hint&&this.mapValues(t.text.hint,e.text.hint),t.style){this.mapValues(t.style,e.style,["outline","captureButton"]);const n=t.style.outline;if(n){this.mapValues(n,e.style.outline,["polygon","path","label"]);const t=n.polygon;t&&this.mapValues(t,e.style.outline.polygon);const o=n.path;o&&this.mapValues(o,e.style.outline.path);const r=n.label;r&&this.mapValues(r,e.style.outline.label)}const o=t.style.captureButton;o&&this.mapValues(o,e.style.captureButton)}return this.mapVideoConstraints(t,e),e}}e.DocumentScannerConfiguration=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseConfiguration=void 0;class o{constructor(){this.container=void 0,this.containerId=void 0}static mapValues(t,e,n){Object.keys(t).forEach((o=>{(null==n?void 0:n.includes(o))||(e[o]=t[o])}))}static mapValuesDeep(t,e){const n=t=>t&&"object"==typeof t&&!Array.isArray(t);Object.keys(t).forEach((r=>{r in e&&n(t[r])&&n(e[r])?o.mapValuesDeep(t[r],e[r]):e[r]=t[r]}))}static _fromJson(t,e){return this.mapValuesDeep(e,t),t}}e.BaseConfiguration=o},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.ImageProcessor=void 0;const r=["ROTATION_NONE","ROTATION_90_CLOCKWISE","ROTATION_180","ROTATION_90_COUNTERCLOCKWISE"];class i{constructor(t,e){this._sdk=t,this._token=e}copy(){return o(this,void 0,void 0,(function*(){const t=yield this._sdk.bridge.postByCopyingArgs("imageProcessorCopy",[this._token]);return new i(this._sdk,t)}))}applyFilter(t){return o(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("imageProcessorApplyFilter",[this._token,t.toWireType()])}))}crop(t){return o(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("imageProcessorCrop",[this._token,t])}))}resize(t){return o(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("imageProcessorResize",[this._token,t])}))}rotate(t){return o(this,void 0,void 0,(function*(){if(!r.includes(t))return Promise.reject("Invalid rotation value! It should be one of "+r.join(", "));yield this._sdk.bridge.postByTransferringArgs("imageProcessorRotate",[this._token,t])}))}processedImage(){return o(this,void 0,void 0,(function*(){return yield this._sdk.bridge.postByCopyingArgs("imageProcessorEncodedProcessedImage",[this._token,".jpg"])}))}release(){return o(this,void 0,void 0,(function*(){yield this._sdk.release(this._token,"ImageProcessor"),this._token=null,this._sdk=null}))}get __token(){return this._token}}e.ImageProcessor=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const o=n(12),r=n(22);e.default=class{saveImageAsJpeg(t,e){if(!t||0===t.length)return void console.log("Data cannot be null or empty");e||(e=r.Utils.uuid()+".jpeg");let n=new Blob([t],{type:"image/jpeg"});o.ImageUtils.saveBlob(n,e)}isCameraSupported(){return!!navigator.mediaDevices}flash(){let t=this.findFlashElement();t.style.display="block",this.animateFlashOpacity("0.5",(()=>{this.animateFlashOpacity("0.0",(()=>{t.style.opacity="1.0",t.style.display="none"}))}))}findFlashElement(){return this.getOrCreateElement("flash",{position:"fixed",top:"0",left:"0",width:"100%",height:"100%","background-color":"#fff",display:"none","z-index":"5000"})}animateFlashOpacity(t,e){const n=this.getElementByClassName("flash");setTimeout((()=>{n.style.opacity=t,e()}),150)}getOrCreateElement(t,e){let n=this.getElementByClassName(t);return n||(this.createElement(t,e),n=this.getElementByClassName(t)),n}createElement(t,e){let n=document.createElement("div");n.className=t,n.style.cssText=this.cssToString(e),document.body.append(n)}cssToString(t){let e="";return Object.keys(t).forEach((n=>{e+=n+":"+t[n]+";"})),e}getElementByClassName(t){const e=document.getElementsByClassName(t);if(0!==e.length)return e[0]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Barcode=void 0;const o=n(5);class r{constructor(t,e,n,o,r,i){this.format=t,this.text=e,this.parsedDocument=n,this.rawBytes=o,this.points=r,this.barcodeImage=i}id(){return this.text+this.format}equals(t){return this.format===t.format&&this.text===t.text}static fromWorker(t){const e=t.quad.map((t=>new o.Point(t[0],t[1])));return new r(t.format,t.text,t.parsedDocument,t.rawBytes,e,t.barcodeImage)}}e.Barcode=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CameraConfiguration=void 0;const o=n(6);class r extends o.PartiallyConstructible{constructor(t={}){super(),this.cameraModule="BACK",this.zoomSteps=[1,2,5],this.defaultZoomFactor=1,this.flashEnabled=!1,void 0!==t.cameraModule&&(this.cameraModule=t.cameraModule),void 0!==t.zoomSteps&&(this.zoomSteps=t.zoomSteps.map((t=>t))),void 0!==t.defaultZoomFactor&&(this.defaultZoomFactor=t.defaultZoomFactor),void 0!==t.flashEnabled&&(this.flashEnabled=t.flashEnabled)}}e.CameraConfiguration=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ActionBarConfiguration=void 0;const o=n(6),r=n(3);class i extends o.PartiallyConstructible{constructor(t={}){super(),this.flashButton=new r.RoundButton({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),this.zoomButton=new r.RoundButton({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),this.flipCameraButton=new r.RoundButton({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),void 0!==t.flashButton&&(this.flashButton=new r.RoundButton(t.flashButton)),void 0!==t.zoomButton&&(this.zoomButton=new r.RoundButton(t.zoomButton)),void 0!==t.flipCameraButton&&(this.flipCameraButton=new r.RoundButton(t.flipCameraButton))}}e.ActionBarConfiguration=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeUseCase=void 0;const o=n(63),r=n(38);var i;!function(t){t.From=function(t){const e=t._type;switch(e){case"SingleScanningMode":return new r.SingleScanningMode(t);case"MultipleScanningMode":return new o.MultipleScanningMode(t);default:throw`Unknown child class name: ${e}`}}}(i||(e.BarcodeUseCase=i={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MultipleScanningMode=e.SheetContent=e.ManualCountEditDialog=e.SwipeToDelete=e.Sheet=void 0;const o=n(10),r=n(10),i=n(3),a=n(10),s=n(3),l=n(18),u=n(10),c=n(18),d=n(3),f=n(6),h=n(3),p=n(3),g=n(3),m=n(3);class v extends f.PartiallyConstructible{constructor(t={}){super(),this.mode="COLLAPSED_SHEET",this.collapsedVisibleHeight="SMALL",this.listButton=new s.BadgedButton({}),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.collapsedVisibleHeight&&(this.collapsedVisibleHeight=t.collapsedVisibleHeight),void 0!==t.listButton&&(this.listButton=new s.BadgedButton(t.listButton))}}e.Sheet=v;class y extends f.PartiallyConstructible{constructor(t={}){super(),this.enabled=!0,this.backgroundColor="?sbColorNegative",this.iconColor="?sbColorOnPrimary",void 0!==t.enabled&&(this.enabled=t.enabled),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.iconColor&&(this.iconColor=t.iconColor)}}e.SwipeToDelete=y;class b extends f.PartiallyConstructible{constructor(t={}){super(),this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.title=new m.StyledText({text:"Update count",color:"?sbColorOnSurface"}),this.info=new m.StyledText({text:"Adjust the number of items you scanned.",color:"?sbColorOnSurfaceVariant"}),this.updateButton=new d.ButtonConfiguration({visible:!0,text:"Update",background:new i.BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),this.cancelButton=new d.ButtonConfiguration({visible:!0,text:"Cancel",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),this.clearTextButton=new p.IconStyle({visible:!0,color:"?sbColorOnSurfaceVariant"}),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.title&&(this.title=new m.StyledText(t.title)),void 0!==t.info&&(this.info=new m.StyledText(t.info)),void 0!==t.updateButton&&(this.updateButton=new d.ButtonConfiguration(t.updateButton)),void 0!==t.cancelButton&&(this.cancelButton=new d.ButtonConfiguration(t.cancelButton)),void 0!==t.clearTextButton&&(this.clearTextButton=new p.IconStyle(t.clearTextButton))}}e.ManualCountEditDialog=b;class A extends f.PartiallyConstructible{constructor(t={}){super(),this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.manualCountChangeEnabled=!0,this.manualCountOutlineColor="?sbColorOutline",this.manualCountChangeColor="?sbColorPrimary",this.title=new m.StyledText({text:"%d items",color:"?sbColorOnSurface"}),this.clearAllButton=new d.ButtonConfiguration({visible:!0,text:"Clear all",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),this.barcodeItemTitle=new m.StyledText({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),this.barcodeItemSubtitle=new m.StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.barcodeItemImageVisible=!0,this.submitButton=new d.ButtonConfiguration({visible:!0,text:"Submit",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),this.startScanningButton=new d.ButtonConfiguration({visible:!0,text:"Start scanning",background:new i.BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.placeholderTitle=new m.StyledText({text:"No barcodes here!",color:"?sbColorOnSurface"}),this.placeholderSubtitle=new m.StyledText({text:"The barcode list is currently empty. Close this sheet and scan your items to add them.",color:"?sbColorOnSurfaceVariant"}),this.placeholderIconBackground="?sbColorOutline",this.placeholderIcon=new p.IconStyle({visible:!0,color:"?sbColorOnSurface"}),this.swipeToDelete=new y({enabled:!0,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"}),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.manualCountChangeEnabled&&(this.manualCountChangeEnabled=t.manualCountChangeEnabled),void 0!==t.manualCountOutlineColor&&(this.manualCountOutlineColor=t.manualCountOutlineColor),void 0!==t.manualCountChangeColor&&(this.manualCountChangeColor=t.manualCountChangeColor),void 0!==t.title&&(this.title=new m.StyledText(t.title)),void 0!==t.clearAllButton&&(this.clearAllButton=new d.ButtonConfiguration(t.clearAllButton)),void 0!==t.barcodeItemTitle&&(this.barcodeItemTitle=new m.StyledText(t.barcodeItemTitle)),void 0!==t.barcodeItemSubtitle&&(this.barcodeItemSubtitle=new m.StyledText(t.barcodeItemSubtitle)),void 0!==t.barcodeItemImageVisible&&(this.barcodeItemImageVisible=t.barcodeItemImageVisible),void 0!==t.submitButton&&(this.submitButton=new d.ButtonConfiguration(t.submitButton)),void 0!==t.startScanningButton&&(this.startScanningButton=new d.ButtonConfiguration(t.startScanningButton)),void 0!==t.placeholderTitle&&(this.placeholderTitle=new m.StyledText(t.placeholderTitle)),void 0!==t.placeholderSubtitle&&(this.placeholderSubtitle=new m.StyledText(t.placeholderSubtitle)),void 0!==t.placeholderIconBackground&&(this.placeholderIconBackground=t.placeholderIconBackground),void 0!==t.placeholderIcon&&(this.placeholderIcon=new p.IconStyle(t.placeholderIcon)),void 0!==t.swipeToDelete&&(this.swipeToDelete=new y(t.swipeToDelete))}}e.SheetContent=A;class S extends f.PartiallyConstructible{constructor(t={}){super(),this._type="MultipleScanningMode",this.countingRepeatDelay=1e3,this.mode="COUNTING",this.sheet=new v({mode:"COLLAPSED_SHEET",collapsedVisibleHeight:"SMALL",listButton:new s.BadgedButton({badgeBackgroundColor:"?sbColorSurface",badgeForegroundColor:"?sbColorPrimary",visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.sheetContent=new A({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",manualCountChangeEnabled:!0,manualCountOutlineColor:"?sbColorOutline",manualCountChangeColor:"?sbColorPrimary",title:new m.StyledText({text:"?multipleModeSheetTitle",color:"?sbColorOnSurface"}),clearAllButton:new d.ButtonConfiguration({visible:!0,text:"?sheetClearAllButton",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),barcodeItemTitle:new m.StyledText({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),barcodeItemSubtitle:new m.StyledText({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),barcodeItemImageVisible:!0,submitButton:new d.ButtonConfiguration({visible:!0,text:"?sheetSubmitButton",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),startScanningButton:new d.ButtonConfiguration({visible:!0,text:"?sheetStartScanningButton",background:new i.BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),placeholderTitle:new m.StyledText({visible:!0,text:"?sheetPlaceholderTitle",color:"?sbColorOnSurface",useShadow:!1}),placeholderSubtitle:new m.StyledText({visible:!0,text:"?sheetPlaceholderSubtitle",color:"?sbColorOnSurfaceVariant",useShadow:!1}),placeholderIconBackground:"?sbColorOutline",placeholderIcon:new p.IconStyle({visible:!0,color:"?sbColorOnSurface"}),swipeToDelete:new y({enabled:!0,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"})}),this.manualCountEditDialog=new b({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",title:new m.StyledText({text:"?manualCountEditDialogTitle",color:"?sbColorOnSurface"}),info:new m.StyledText({text:"?manualCountEditDialogInfo",color:"?sbColorOnSurfaceVariant"}),updateButton:new d.ButtonConfiguration({visible:!0,text:"?manualCountEditDialogUpdateButton",background:new i.BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new d.ButtonConfiguration({visible:!0,text:"?manualCountEditDialogCancelButton",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),clearTextButton:new p.IconStyle({visible:!0,color:"?sbColorOnSurfaceVariant"})}),this.barcodeInfoMapping=new l.BarcodeInfoMapping({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",loadingMessage:new m.StyledText({text:"?barcodeInfoMappingLoadingMessage",color:"?sbColorPrimary"}),errorState:new c.BarcodeItemErrorState({title:new m.StyledText({text:"?barcodeInfoMappingErrorStateTitle",color:"?sbColorOnSurface"}),subtitle:new m.StyledText({text:"?barcodeInfoMappingErrorStateSubtitle",color:"?sbColorOnSurfaceVariant"}),retryButton:new d.ButtonConfiguration({visible:!0,text:"?barcodeInfoMappingErrorStateRetryButton",background:new i.BackgroundStyle({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new d.ButtonConfiguration({visible:!0,text:"?barcodeInfoMappingErrorStateCancelButton",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new h.ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})})}),this.arOverlay=new o.ArOverlayGeneralConfiguration({visible:!1,counterBadge:new a.BadgeStyle({visible:!0,background:new i.BackgroundStyle({strokeColor:"#FF000000",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),automaticSelectionEnabled:!1,barcodeItemInfoPosition:"BELOW",polygon:new r.ArOverlayPolygonConfiguration({visible:!0,deselected:new g.PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),selected:new g.PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),barcodeItemConfiguration:new u.BarcodeItemConfiguration({imageVisible:!0,titleSelected:new m.StyledText({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new m.StyledText({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),titleDeselected:new m.StyledText({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),subtitleDeselected:new m.StyledText({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new g.PolygonStyle({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new g.PolygonStyle({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})})}),void 0!==t.countingRepeatDelay&&(this.countingRepeatDelay=t.countingRepeatDelay),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.sheet&&(this.sheet=new v(t.sheet)),void 0!==t.sheetContent&&(this.sheetContent=new A(t.sheetContent)),void 0!==t.manualCountEditDialog&&(this.manualCountEditDialog=new b(t.manualCountEditDialog)),void 0!==t.barcodeInfoMapping&&(this.barcodeInfoMapping=new l.BarcodeInfoMapping(t.barcodeInfoMapping)),void 0!==t.arOverlay&&(this.arOverlay=new o.ArOverlayGeneralConfiguration(t.arOverlay))}}e.MultipleScanningMode=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserGuidanceConfiguration=void 0;const o=n(3),r=n(6),i=n(3);class a extends r.PartiallyConstructible{constructor(t={}){super(),this.visible=!0,this.title=new i.StyledText({color:"?sbColorOnPrimary"}),this.background=new o.BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow"}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.title&&(this.title=new i.StyledText(t.title)),void 0!==t.background&&(this.background=new o.BackgroundStyle(t.background))}}e.UserGuidanceConfiguration=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeTextLocalization=void 0;const o=n(6);class r extends o.PartiallyConstructible{constructor(t={}){super(),this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionCloseButton="Close",this.topBarCancelButton="Cancel",this.topBarTitle="Scan Item",this.userGuidance="Move the finder over a barcode",this.barcodeInfoMappingLoadingMessage="Loading details...",this.barcodeInfoMappingErrorStateTitle="Connection Error!",this.barcodeInfoMappingErrorStateSubtitle="There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",this.barcodeInfoMappingErrorStateRetryButton="Retry",this.barcodeInfoMappingErrorStateCancelButton="Cancel",this.manualCountEditDialogTitle="Update count",this.manualCountEditDialogInfo="Adjust the number of items you scanned.",this.manualCountEditDialogUpdateButton="Update",this.manualCountEditDialogCancelButton="Cancel",this.sheetClearAllButton="Clear all",this.sheetSubmitButton="Submit",this.sheetStartScanningButton="Start scanning",this.sheetPlaceholderTitle="No barcodes here!",this.sheetPlaceholderSubtitle="The barcode list is currently empty. Close this sheet and scan your items to add them.",this.singleModeConfirmationCancelButton="Close",this.multipleModeSheetTitle="%d items",void 0!==t.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=t.cameraPermissionEnableCameraTitle),void 0!==t.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=t.cameraPermissionEnableCameraExplanation),void 0!==t.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=t.cameraPermissionCloseButton),void 0!==t.topBarCancelButton&&(this.topBarCancelButton=t.topBarCancelButton),void 0!==t.topBarTitle&&(this.topBarTitle=t.topBarTitle),void 0!==t.userGuidance&&(this.userGuidance=t.userGuidance),void 0!==t.barcodeInfoMappingLoadingMessage&&(this.barcodeInfoMappingLoadingMessage=t.barcodeInfoMappingLoadingMessage),void 0!==t.barcodeInfoMappingErrorStateTitle&&(this.barcodeInfoMappingErrorStateTitle=t.barcodeInfoMappingErrorStateTitle),void 0!==t.barcodeInfoMappingErrorStateSubtitle&&(this.barcodeInfoMappingErrorStateSubtitle=t.barcodeInfoMappingErrorStateSubtitle),void 0!==t.barcodeInfoMappingErrorStateRetryButton&&(this.barcodeInfoMappingErrorStateRetryButton=t.barcodeInfoMappingErrorStateRetryButton),void 0!==t.barcodeInfoMappingErrorStateCancelButton&&(this.barcodeInfoMappingErrorStateCancelButton=t.barcodeInfoMappingErrorStateCancelButton),void 0!==t.manualCountEditDialogTitle&&(this.manualCountEditDialogTitle=t.manualCountEditDialogTitle),void 0!==t.manualCountEditDialogInfo&&(this.manualCountEditDialogInfo=t.manualCountEditDialogInfo),void 0!==t.manualCountEditDialogUpdateButton&&(this.manualCountEditDialogUpdateButton=t.manualCountEditDialogUpdateButton),void 0!==t.manualCountEditDialogCancelButton&&(this.manualCountEditDialogCancelButton=t.manualCountEditDialogCancelButton),void 0!==t.sheetClearAllButton&&(this.sheetClearAllButton=t.sheetClearAllButton),void 0!==t.sheetSubmitButton&&(this.sheetSubmitButton=t.sheetSubmitButton),void 0!==t.sheetStartScanningButton&&(this.sheetStartScanningButton=t.sheetStartScanningButton),void 0!==t.sheetPlaceholderTitle&&(this.sheetPlaceholderTitle=t.sheetPlaceholderTitle),void 0!==t.sheetPlaceholderSubtitle&&(this.sheetPlaceholderSubtitle=t.sheetPlaceholderSubtitle),void 0!==t.singleModeConfirmationCancelButton&&(this.singleModeConfirmationCancelButton=t.singleModeConfirmationCancelButton),void 0!==t.multipleModeSheetTitle&&(this.multipleModeSheetTitle=t.multipleModeSheetTitle)}}e.BarcodeTextLocalization=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeRecognizerConfiguration=void 0;const o=n(6);class r extends o.PartiallyConstructible{constructor(t={}){super(),this.barcodesRegexFilter="",this.barcodeFormats=[],this.gs1Handling="PARSE",void 0!==t.barcodesRegexFilter&&(this.barcodesRegexFilter=t.barcodesRegexFilter),void 0!==t.barcodeFormats&&(this.barcodeFormats=t.barcodeFormats.map((t=>t))),void 0!==t.gs1Handling&&(this.gs1Handling=t.gs1Handling)}}e.BarcodeRecognizerConfiguration=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CameraPermissionScreen=void 0;const o=n(3),r=n(3),i=n(6),a=n(3),s=n(3),l=n(3);class u extends i.PartiallyConstructible{constructor(t={}){super(),this.background="?sbColorSurface",this.iconBackground="?sbColorOutline",this.icon=new s.IconStyle({visible:!0,color:"?sbColorOnSurface"}),this.closeButton=new r.ButtonConfiguration({text:"Close",background:new o.BackgroundStyle({}),foreground:new a.ForegroundStyle({})}),this.enableCameraTitle=new l.StyledText({text:"Camera permission denied!",color:"?colorOnSurface"}),this.enableCameraExplanation=new l.StyledText({text:"Please allow the usage of the camera to start the scanning process.",color:"?sbColorOnSurfaceVariant"}),void 0!==t.background&&(this.background=t.background),void 0!==t.iconBackground&&(this.iconBackground=t.iconBackground),void 0!==t.icon&&(this.icon=new s.IconStyle(t.icon)),void 0!==t.closeButton&&(this.closeButton=new r.ButtonConfiguration(t.closeButton)),void 0!==t.enableCameraTitle&&(this.enableCameraTitle=new l.StyledText(t.enableCameraTitle)),void 0!==t.enableCameraExplanation&&(this.enableCameraExplanation=new l.StyledText(t.enableCameraExplanation))}}e.CameraPermissionScreen=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeItem=void 0;const o=n(6);class r extends o.PartiallyConstructible{constructor(t={}){if(super(),void 0===t.type)throw new Error("type must be present in constructor argument");if(this.type=t.type,void 0===t.count)throw new Error("count must be present in constructor argument");if(this.count=t.count,void 0===t.text)throw new Error("text must be present in constructor argument");if(this.text=t.text,void 0===t.rawBytes)throw new Error("rawBytes must be present in constructor argument");if(this.rawBytes=t.rawBytes,void 0===t.parsedDocument)throw new Error("parsedDocument must be present in constructor argument");this.parsedDocument=null!=t.parsedDocument?t.parsedDocument:null}}e.BarcodeItem=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class o{static throwIfMissingBuffer(t){o.throwIfMissing(t,"ImageBuffer may not be null")}static throwIfMissing(t,e){if(!t)throw new Error(e)}}e.default=o},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},a=this&&this.__rest||function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n};Object.defineProperty(e,"__esModule",{value:!0}),e.StyledBox=void 0;const s=n(2),l=i(n(1)),u=n(4);e.StyledBox=function(t){const e=(0,l.useContext)(u.SBPaletteContext).getColorValue,{styleConfig:n}=t,o=a(t,["styleConfig"]),r=Object.assign(Object.assign({},t.style),{backgroundColor:e(n.fillColor),borderColor:e(n.strokeColor),borderWidth:n.strokeWidth,borderRadius:n.cornerRadius});return l.default.createElement(s.Box,Object.assign({},o,{style:r}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class o{constructor(){this.DURATION=200}vibrate(t){t.enabled&&navigator.vibrate&&navigator.vibrate(this.DURATION)}}o.INSTANCE=new o,e.default=o},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeScanner=e.Props=void 0;const s=a(n(73)),l=i(n(138)),u=n(1),c=a(n(1)),d=n(16),f=a(n(75)),h=n(140),p=n(80),g=n(4);e.Props=class{},e.BarcodeScanner=function(t){const e=(0,u.useRef)(),n=(0,u.useRef)(null),[o,r]=((0,u.useContext)(d.NavigationBarSizeContext),(0,u.useState)(void 0)),[i,a]=(0,u.useState)(!1);(0,u.useEffect)((()=>{var n,o;t.scanningPaused?null===(n=e.current)||void 0===n||n.pause():null===(o=e.current)||void 0===o||o.resume()}),[t.scanningPaused]);const m=function(t){const e=new p.SelectionOverlayConfiguration;return e.visible=t.visible,t.polygon.visible?(e.style.highlightedPolygonFillColor=g.SBTheme.getColorValue(t.polygon.selected.fillColor),e.style.highlightedPolygonStrokeColor=g.SBTheme.getColorValue(t.polygon.selected.strokeColor),e.style.highlightedPolygonStrokeWidth=t.polygon.selected.strokeWidth,e.style.highlightedPolygonCornerRadius=t.polygon.selected.cornerRadius,e.style.polygonFillColor=g.SBTheme.getColorValue(t.polygon.deselected.fillColor),e.style.polygonStrokeColor=g.SBTheme.getColorValue(t.polygon.deselected.strokeColor),e.style.polygonStrokeWidth=t.polygon.deselected.strokeWidth,e.style.polygonCornerRadius=t.polygon.deselected.cornerRadius):(e.style.highlightedPolygonFillColor="transparent",e.style.highlightedPolygonStrokeColor="transparent",e.style.polygonFillColor="transparent",e.style.polygonStrokeColor="transparent"),e.automaticSelectionEnabled=!1,e}(t.arOverlay),v=Object.assign(Object.assign({},t.barcodeScannerViewConfig),{onBarcodesDetected:o=>{var r,i,a,s,l,u;null===(r=n.current)||void 0===r||r.update(null===(a=null===(i=e.current)||void 0===i?void 0:i.finder)||void 0===a?void 0:a.holeRect,null===(s=e.current)||void 0===s?void 0:s.camera,o.imageData,t.containerId,o.barcodes),null===(u=(l=t.barcodeScannerViewConfig).onBarcodesDetected)||void 0===u||u.call(l,o)},_onDetectionFailed:o=>{var r,i,a,s,l,u;null===(r=n.current)||void 0===r||r.update(null===(a=null===(i=e.current)||void 0===i?void 0:i.finder)||void 0===a?void 0:a.holeRect,null===(s=e.current)||void 0===s?void 0:s.camera,o,t.containerId,[]),null===(u=(l=t.barcodeScannerViewConfig)._onDetectionFailed)||void 0===u||u.call(l,o)}});return(0,u.useEffect)((()=>{const e=(0,l.areAnyActionButtonsVisible)(o,t.actionBarConfig);t.setActionButtonsVisible(e),a(e)}),[o,t.actionBarConfig]),c.default.createElement(c.default.Fragment,null,t.arOverlay.visible&&c.default.createElement(f.default,{style:{zIndex:1e3,position:"absolute"},ref:n,LabelComponent:h.ArOverlayBarcodeInfo,labelComponentConfig:t.arOverlay,onBarcodeFound:t.arOnBarcodeEnter,onPolygonClick:t.arOnBarcodeClick,configuration:m}),c.default.createElement(l.default,{config:t.actionBarConfig,scanner:e.current,capabilities:o,bottomPadding:t.actionBarBottomPadding,torchEnabledInitially:t.cameraConfiguration.flashEnabled,zoomSteps:t.cameraConfiguration.zoomSteps,defaultZoomFactor:t.cameraConfiguration.defaultZoomFactor}),c.default.createElement(s.default,{ref:e,viewFinderPadding:t.viewFinderPadding,configuration:v,onSuccess:()=>l.ActionButtonCapabilities.setFromScanner(e,r),onFailure:t.onCameraPermissionDenied}))}},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},a=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeScannerState=e.BarcodeScannerProps=void 0;const l=s(n(1)),u=n(1),c=n(26),d=s(n(28)),f=s(n(47)),h=i(n(122)),p=s(n(75)),g=s(n(127)),m=s(n(131)),v=s(n(133)),y=s(n(134)),b=s(n(78)),A=n(79),S=n(36),C=n(48),_=s(n(58)),w=n(13),x=n(31),O=n(12),E=s(n(137));class L extends c.ScanbotCameraProps{}e.BarcodeScannerProps=L;class P extends c.ScanbotCameraState{constructor(){super(...arguments),this.action="manual"}}e.BarcodeScannerState=P;class B extends c.ScannerView{constructor(t){var e;super(t),this.shouldComputeSize=!0,this.paused=!1,this.barcodes=[],this.detectionRunning=!1,this.updateDimensionsCallback=this.updateDimensions.bind(this),this.backendurl=void 0,this.desiredRecognitionResolution=void 0,Object.assign(this.state,{isFinderVisible:null===(e=this.configuration.finder.visible)||void 0===e||e,zoom:void 0,action:"manual",image:void 0,bottomHintText:void 0})}get configuration(){return this._configuration||(this._configuration=A.BarcodeScannerConfiguration.fromJson(this.props.configuration)),this._configuration}get enabled(){return!this.disposed}static create(t){return a(this,void 0,void 0,(function*(){const e=x.ViewUtils.findContainerOrThrow(t);return new Promise(((n,o)=>{(0,u.render)(l.default.createElement(B,{container:e,configuration:t,onSuccess:n,onFailure:o}),e)}))}))}isDetectionPaused(){return this.paused}resumeDetection(){return a(this,void 0,void 0,(function*(){C.Debugger.warn("Barcode detection resumed"),yield this.resume()}))}pauseDetection(){C.Debugger.warn("Barcode detection paused"),this.pause()}componentDidMount(){const t=Object.create(null,{componentDidMount:{get:()=>super.componentDidMount}});return a(this,void 0,void 0,(function*(){t.componentDidMount.call(this),window.addEventListener("resize",this.updateDimensionsCallback),yield this.resume()}))}componentWillUnmount(){super.componentWillUnmount(),this.pause(),window.removeEventListener("resize",this.updateDimensionsCallback)}updateDimensions(){return a(this,void 0,void 0,(function*(){this.shouldComputeSize=!0,this.forceUpdate()}))}resume(){return a(this,void 0,void 0,(function*(){this.paused=!1,yield this.detect()}))}pause(){this.paused=!0}detect(){var t,e,n,o,r,i;return a(this,void 0,void 0,(function*(){if(!this.enabled)return;if(this.paused)return;if(null===(t=this.configuration.scanAndCount)||void 0===t?void 0:t.enabled)return;if(this.detectionRunning)return;let a=!1;try{this.detectionRunning=!0;const t=yield this.recognizeBarcodes(!0,this.shouldComputeSize,this.configuration.returnBarcodeImage);if(this.shouldComputeSize=!1,!t)return;const s=t.barcodeResult;s.isEmpty()?this.configuration._onDetectionFailed&&(null===(e=this.configuration)||void 0===e||e._onDetectionFailed(null==s?void 0:s.imageData)):(a=!0,this.configuration.overlay.visible||this.configuration.onBarcodesDetected(s)),null===(n=this.overlay)||void 0===n||n.update(null===(o=this.finder)||void 0===o?void 0:o.holeRect,this.camera,t.barcodeResult.imageData,null!==(r=this.configuration.container)&&void 0!==r?r:this.configuration.containerId,t.barcodeResult.barcodes)}catch(t){console.log(t)}finally{this.detectionRunning=!1;const t=()=>requestAnimationFrame(this.detect.bind(this)),e=(null===(i=this.configuration.overlay)||void 0===i?void 0:i.visible)?0:this.configuration.captureDelay;a&&0!=e?setTimeout(t,e):t()}}))}setUseBackendService(t){console.log("Now using backend service for recognition: ",t),this.backendurl=t}recognizeBarcodes(t,e,n){var o,r,i,s;return a(this,void 0,void 0,(function*(){window&&window.__SB_DEBUG_BARCODESCANNER_FORCE_DETERMINISTIC_MODE&&(t=!1);const a=t?c.ScannerView.DEFAULT_DETECTION_RESOLUTION:c.ScannerView.DETECTION_RESULTION_4K,l=null!==(o=this.desiredRecognitionResolution)&&void 0!==o?o:a;this.camera.finderFrame=null===(r=this.finder)||void 0===r?void 0:r.holeRect;const u=yield null===(i=this.camera)||void 0===i?void 0:i.createImageData(l);if(!u)return;e&&this.forceUpdate(),(null===(s=this.configuration.scanAndCount)||void 0===s?void 0:s.enabled)&&(this.setState({image:O.ImageUtils.wrapperToBase64(u)}),void 0!==this.desiredRecognitionResolution?console.log("Recognizing barcodes with custom resolution:",this.desiredRecognitionResolution):console.log("Recognizing barcodes with max resolution:",c.ScannerView.DETECTION_RESULTION_4K,"(the actual resolution depends on your device and may be lower)"));const d=this.configuration.engineMode,f=this.configuration.barcodeFormats;let h;if(this.backendurl&&this.backendurl.length>0)h=yield E.default.recognizeBarcodes(this.backendurl,u);else{const{result:e,originalImage:o}=yield this.bridge.postByTransferringArgs("recognizeBarcodes",[u,{live:t,engineMode:d,barcodeFormats:f,returnBarcodeImage:n,gs1Handling:this.configuration.gs1Handling}]);if(!this.enabled)return;if(null===e)return;h=S.BarcodeResult.fromWorker(e,o)}return this.configuration.barcodesRegexFilter&&(h.barcodes=h.barcodes.filter((t=>{var e;return null===(e=t.text)||void 0===e?void 0:e.match(this.configuration.barcodesRegexFilter)}))),{imageData:u,originalImage:undefined,barcodeResult:h}}))}setRecognitionResolution(t){this.desiredRecognitionResolution=t}getResolution(){return a(this,void 0,void 0,(function*(){return new Promise(((t,e)=>{const n=this.camera.videoSize();n.width>0&&n.height>0?t(w.Size.fromJson(n)):this.camera.didLoadVideo=()=>{const e=this.camera.videoSize();t(w.Size.fromJson(e))}}))}))}saveExtractedImageData(){this.camera.saveExtractedData()}setFinderVisible(t){this.setState({isFinderVisible:t})}setZoom(t){this.setState({zoom:t})}setCameraDirection(t){this.camera.setDirection(t)}updateTorch(t){this.camera.videoStream.updateTorch(t)}getCapabilities(){return this.camera.videoStream.getCapabilities()}render(){var t,e,n,o,r,i,s;const u=(null===(t=this.configuration.scanAndCount)||void 0===t?void 0:t.enabled)?"Tap the shutter button to scan":void 0;return l.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"black"}},this.renderSpinner(null===(e=this.configuration)||void 0===e?void 0:e.spinnerColor),l.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},l.default.createElement(d.default,{configuration:this.configuration,videoConstraints:this.configuration.videoConstraints,mirrored:this.configuration.mirrored,preferredCamera:this.configuration.preferredCamera,zoom:null!==(n=this.state.zoom)&&void 0!==n?n:this.configuration.zoom,onReady:this.onVideoReady,onError:this.onVideoError,ref:t=>{this.camera=t}})),l.default.createElement(y.default,{top:null===(o=this.configuration.scanAndCount)||void 0===o?void 0:o.style.topLabelTop,text:u}),l.default.createElement(m.default,{ref:t=>this.scannedImage=t,image:this.state.image}),this.state.isFinderVisible&&l.default.createElement(f.default,{ref:t=>{this.finder=t},padding:this.props.viewFinderPadding,guidanceConfiguration:this.configuration.userGuidance,configuration:this.configuration.finder}),l.default.createElement(y.default,{bottom:100,text:this.state.bottomHintText}),l.default.createElement(v.default,{visible:"processing"===this.state.action}),(null===(r=this.configuration.overlay)||void 0===r?void 0:r.visible)&&l.default.createElement(p.default,{ref:t=>{t&&(this.overlay=t)},configuration:this.configuration.overlay,onPolygonSelected:t=>{const e=new S.BarcodeResult([t],void 0);this.configuration.onBarcodesDetected(e)},onBarcodeFound:(t,e,n)=>{var o;(null===(o=this.configuration.overlay)||void 0===o?void 0:o.onBarcodeFound)&&this.configuration.overlay.onBarcodeFound(t,e,n)},LabelComponent:b.default,labelComponentConfig:{}}),(null===(i=this.configuration.scanAndCount)||void 0===i?void 0:i.enabled)&&l.default.createElement(g.default,{ref:t=>this.bottomActionBar=t,action:this.state.action,isShowingImage:void 0!==this.state.image,onBurgerClick:()=>{this.popup.push(h.AnimationType.PushBottom,this.barcodes)},onShutterButtonClick:()=>a(this,void 0,void 0,(function*(){(new _.default).flash(),this.setState({action:"processing"});const t=(new Date).getTime(),e=yield this.recognizeBarcodes(!1,!1,!0);console.log("Recognition took:",((new Date).getTime()-t)/1e3),this.recognition=e;const n=this.countLabelText(e.barcodeResult.barcodes);this.setState({action:"manual",bottomHintText:n}),this.scannedImage.update(e.barcodeResult),this.barcodes.push(...e.barcodeResult.barcodes),this.bottomActionBar.update(this.barcodes),e.barcodeResult.barcodes.length>0&&this.configuration.onBarcodesDetected(e.barcodeResult)})),onScanMoreClick:()=>{this.resetCountImage()}}),l.default.createElement(h.default,{ref:t=>this.popup=t,style:null===(s=this.configuration.scanAndCount)||void 0===s?void 0:s.style,onDeleteClick:()=>{if(confirm("Are you sure you want to delete all scanned barcodes?")){for(;this.barcodes.length>0;)this.barcodes.pop();console.log("Cleared barcodes",this.barcodes.length),this.popup.update(this.barcodes),this.bottomActionBar.update(void 0),this.resetCountImage(),this.popup.reset()}}}))}resetCountImage(){this.scannedImage.reset(),this.setState({image:void 0,bottomHintText:void 0})}countLabelText(t){return 0==t.length?"No codes scanned. Try again?":1==t.length?"1 Code Scanned":`${t.length} Codes Scanned`}}e.default=B},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.MediaError=void 0;class r extends Error{constructor(t,e,n){super(e),this.name="",this.name=t,this.message=e,this.webApiError=n}static mediaDevicesUndefined(){return new r(this.MESSAGE.DEVICES_UNDEFINED,"Does your device even have a camera? If so, please use a secure context (HTTPS) or use 'localhost' explicitly.")}static enumerateDevicesFailed(){return new r(this.MESSAGE.DEVICES_UNDEFINED,"Does your device even have a camera? Because we're unable to query query navigator.mediaDevices?.enumerateDevices")}static mediaDeviceNotFound(t){return new r(this.MESSAGE.ENUMERATE_FAILED,"Does your device even have a camera? Because we were unable to query navigator.mediaDevices?.getUserMedia().",t)}static permissionDenied(t){return new r(this.MESSAGE.PERMISSION_DENIED,"Camera permission has not been granted. Please prompt your users again to grant permission.",t)}static unknown(t){return new r(this.MESSAGE.UNKNOWN,"\n Unfortunately we were unable to query navigator.mediaDevicess.getUserMedia, \n and unable to determine the reason why. This may be caused by the user to denied the permission prompt. \n Or you may be using an in-app browser that itself has not been granted permission to use the camera.\n Or your users may be using a niche browser that does not support the media API at all!\n ",t)}static tryCheckPermission(){return o(this,void 0,void 0,(function*(){if(!this.permissionState)try{const t=yield navigator.permissions.query({name:"camera"});this.permissionState=t.state}catch(t){this.permissionState=this.PERMISSION_STATE.UNKNOWN}}))}static hasDeniedPermission(){return this.permissionState===this.PERMISSION_STATE.DENIED}static hasCheckedPermission(){return!!this.permissionState}}e.MediaError=r,r.PERMISSION_STATE={GRANTED:"granted",DENIED:"denied",PROMPT:"prompt",UNKNOWN:"unknown"},r.MESSAGE={DEVICES_UNDEFINED:"MediaError_DevicesUndefined",DEVICE_NOT_FOUND:"MediaError_DeviceNotFound",ENUMERATE_FAILED:"MediaError_EnumerateFailed",PERMISSION_DENIED:"MediaError_PermissionDenied",UNKNOWN:"MediaError_Unknown"}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionOverlayProps=e.BarcodePolygonElement=void 0;const r=o(n(1)),i=n(14),a=n(76),s=n(5),l=o(n(125)),u=o(n(126));e.BarcodePolygonElement=class{};e.SelectionOverlayProps=class{};class c extends r.default.Component{constructor(t){super(t),this.state={polygonElements:[]}}update(t,e,n,o,i){const c=[];i.forEach((o=>{const r=new a.BarcodeOverlay(o);r.points=void 0===t?s.Point.scaleListToHtmlElement(o.points,n,e.video):o.points.map((e=>{const o=new s.Point(e.x,e.y);return o.x*=t.width/n.width,o.y*=t.height/n.height,o.y+=t.y,o.x+=t.x,o})),c.push(r)}));const d=[];this.state.polygonElements.forEach((t=>{const e=c.find((e=>e.code.equals(t.element.code)));let n=!1;void 0===e?t.updatedAt+1e3<l.default.now()&&(n=!0):(t.element=e,t.polygon=r.default.createElement(u.default,{key:t.element.code.id(),ref:e=>t.polygonRef=e,configuration:this.props.configuration,element:t.element,animateToPoints:e.points,onClick:this.onPolygonClick.bind(this)}),t.label=r.default.createElement(this.props.LabelComponent,Object.assign({},this.props.labelComponentConfig,{key:t.element.code.id(),ref:e=>t.labelRef=e,configuration:this.props.configuration,element:t.element,animateToPoints:e.points,onClick:this.onPolygonClick.bind(this)})),t.updatedAt=l.default.now()),n||d.push(t)})),c.forEach((t=>{if(void 0===this.state.polygonElements.find((e=>e.element.code.equals(t.code)))){let e,n;const o=r.default.createElement(u.default,{key:t.code.id(),ref:o=>{e=o,void 0!==n&&this.props.onBarcodeFound(t.code,e,n)},configuration:this.props.configuration,element:t,onClick:this.onPolygonClick.bind(this)}),i=r.default.createElement(this.props.LabelComponent,Object.assign({},this.props.labelComponentConfig,{key:t.code.id(),ref:o=>{n=o,void 0!==e&&this.props.onBarcodeFound(t.code,e,n)},configuration:this.props.configuration,element:t,onClick:this.onPolygonClick.bind(this)})),a={element:t,polygon:o,label:i,polygonRef:e,labelRef:n,updatedAt:l.default.now()};d.push(a)}})),this.setState({polygonElements:d})}onPolygonClick(t){var e,n,o,r;t.highlighted=!t.highlighted,this.forceUpdate(),this.state.polygonElements.forEach((e=>{var n;const o=e.labelRef;o&&e.label.props.element.code.equals(t.code)&&(o.update(t),null===(n=e.polygonRef)||void 0===n||n.update(t))})),t.highlighted&&(null===(n=(e=this.props).onPolygonSelected)||void 0===n||n.call(e,t.code)),null===(r=(o=this.props).onPolygonClick)||void 0===r||r.call(o,t.code)}render(){var t,e;return r.default.createElement("div",{style:Object.assign({width:"100%",height:"100%",position:"absolute"},this.props.style)},r.default.createElement(i.motion.svg,{style:{position:"absolute",maxWidth:"100%",width:"100%",height:"100%"}},null===(t=this.state.polygonElements)||void 0===t?void 0:t.map((t=>t.polygon))),null===(e=this.state.polygonElements)||void 0===e?void 0:e.map((t=>t.label)))}}e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeOverlay=void 0;e.BarcodeOverlay=class{constructor(t){this.highlighted=!1,this.code=t,this.points=[]}}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ShutterButton=e.ShutterButtonProps=void 0;const r=o(n(1));n(128);const i=o(n(30));e.ShutterButtonProps=class{};class a{constructor(t){this.lastTime=0,this.lastDuration=0,this.t=0,this.element=null,this.animationClass="",this.animationClass=t}setDuration(t){const e=Date.now()/1e3,n=e-this.lastTime;this.lastDuration&&(this.t+=n%this.lastDuration/this.lastDuration,this.t-=0|this.t);const o=-t*this.t;this.element&&(this.element.style.animationDuration=`${t}s`,this.element.style.animationDelay=`${o}s`,this.element.classList.remove(this.animationClass),this.element.offsetHeight,this.element.classList.add(this.animationClass)),this.lastTime=e,this.lastDuration=t}}class s extends r.default.Component{constructor(){super(...arguments),this.inner1=new a("scanbot-shutter-rotate"),this.inner2=new a("scanbot-shutter-rotate")}render(){return r.default.createElement("div",{className:"scanbot-shutter-button",style:this.props.style,onClick:this.props.onClick},this.captureBackground(),this.captureInnerCircle(),this.captureSearchingInner1(),this.captureSearchingInner2())}updateAnimationSpeed(t){"searching"==t?(this.inner1.setDuration(3),this.inner2.setDuration(2)):(this.inner1.setDuration(1.5),this.inner2.setDuration(.75))}componentDidMount(){this.updateAnimationSpeed(this.props.action)}componentDidUpdate(){this.updateAnimationSpeed(this.props.action)}captureBackground(){return this.svgBase(null,r.default.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},this.path("M32 0c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32C14.327 64 0 49.673 0 32 0 14.327 14.327 0 32 0zm0 3C15.984 3 3 15.984 3 32s12.984 29 29 29 29-12.984 29-29S48.016 3 32 3z")))}captureInnerCircle(){const{action:t}=this.props;return this.svgBase({"scanbot-shutter-button-part":!0,"scanbot-shutter-fade-in":"processing"==t||"manual"==t,"scanbot-shutter-fade-out":"searching"==t||"capturing"==t,"scanbot-shutter-pulse-fast":"processing"==t},r.default.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},r.default.createElement("circle",{cx:"32",cy:"32",r:"24",fill:this.props.color,fillRule:"nonzero"})))}captureSearchingInner1(){const{action:t}=this.props;return this.svgBase({"scanbot-shutter-button-part":!0,"scanbot-shutter-fade-in":"searching"==t||"capturing"==t,"scanbot-shutter-fade-out":"processing"==t||"manual"==t},r.default.createElement("g",{fill:"none",fillOpacity:"0.7",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},this.path("M44.24 51.476a1 1 0 01-1.066-1.692A20.981 20.981 0 0053 32c0-11.598-9.402-21-21-21a1 1 0 010-2c12.703 0 23 10.297 23 23a22.98 22.98 0 01-10.76 19.476z")),(t=>{this.inner1.element=t}))}captureSearchingInner2(){const{action:t}=this.props;return this.svgBase({"scanbot-shutter-button-part":!0,"scanbot-shutter-fade-in":"searching"==t||"capturing"==t,"scanbot-shutter-fade-out":"processing"==t||"manual"==t},r.default.createElement("g",{fill:"none",fillOpacity:"0.4",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},this.path("M46.624 35.35a1 1 0 01-1.95-.445C44.89 33.96 45 32.988 45 32c0-7.18-5.82-13-13-13a1 1 0 010-2c8.284 0 15 6.716 15 15 0 1.138-.127 2.26-.376 3.35z")),(t=>{this.inner2.element=t}))}path(t){return r.default.createElement("path",{fill:this.props.color,fillRule:"nonzero",d:t})}svgBase(t,e,n){return r.default.createElement("div",{className:(0,i.default)(t),ref:n},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 64 64"},e))}}e.ShutterButton=s},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodePolygonLabelProps=void 0;const r=o(n(1)),i=n(14),a=n(5);e.BarcodePolygonLabelProps=class{};class s extends r.default.Component{constructor(t){super(t),this.state={element:t.element}}style(t){this.customStyle=t,this.forceUpdate()}update(t){this.setState({element:t})}formatText(t,e){if("None"!==e)return"Text"===e?t.text:t.format+" ("+t.text+")"}render(){var t,e,n,o,s;const l=this.state.element,u=this.props.configuration.style,c=this.formatText(l.code,this.props.configuration.textFormat),d=a.Point.width(null!==(t=this.props.animateToPoints)&&void 0!==t?t:l.points);if(!c)return null;if(!l.points)return null;const f=null!==(n=null===(e=this.customStyle)||void 0===e?void 0:e.backgroundColor)&&void 0!==n?n:l.highlighted?u.highlightedTextBackgroundColor:u.textBackgroundColor,h=null!==(s=null===(o=this.customStyle)||void 0===o?void 0:o.textColor)&&void 0!==s?s:l.highlighted?u.highlightedTextColor:u.textColor;return r.default.createElement(i.motion.div,{ref:t=>this.label=t,onClick:()=>{this.props.onClick&&this.props.onClick(l)},style:{x:a.Point.lowestX(l.points),y:a.Point.highestY(l.points)+3,backgroundColor:f,fontSize:12,width:d,overflow:"hidden",maxLines:2,color:h,borderRadius:5,position:"absolute",padding:"3px 7px",textAlign:"center",maxHeight:50,lineBreak:"anywhere",lineHeight:"22px"},animate:this.props.animateToPoints?{x:a.Point.lowestX(this.props.animateToPoints),y:a.Point.highestY(this.props.animateToPoints)+30}:{}},c)}}e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeScannerConfiguration=void 0;const o=n(15),r=n(80),i=n(135),a=n(23);class s extends a.ViewFinderScannerConfiguration{constructor(){super(o.ScannerConfiguration.DEFAULT_VIDEO_RESOLUTION_HD),this.captureDelay=1e3,this.overlay=new r.SelectionOverlayConfiguration,this.scanAndCount=new i.BarcodeCountConfiguration,this.gs1Handling="PARSE",this.onBarcodesDetected=function(t){}}static fromJson(t){const e=new s;return this.mapValues(t,e,["style","videoConstraints","overlay","scanAndCount","finder","userGuidance"]),this.mapFinderConfiguration(e,t),t.overlay&&(this.mapValues(t.overlay,e.overlay,["style"]),t.overlay.style&&this.mapValues(t.overlay.style,e.overlay.style)),t.scanAndCount&&(this.mapValues(t.scanAndCount,e.scanAndCount,["style"]),t.scanAndCount.style&&this.mapValues(t.scanAndCount.style,e.scanAndCount.style)),this.mapVideoConstraints(t,e),e}}e.BarcodeScannerConfiguration=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionOverlayConfiguration=e.SelectionOverlayStyleConfiguration=e.BarcodePolygonLabelStyle=e.BarcodePolygonStyle=void 0;e.BarcodePolygonStyle=class{};e.BarcodePolygonLabelStyle=class{};class o{constructor(){this.defaultFillColor="rgba(255, 0, 0, 0.3)",this.defaultHighlightedFillColor="rgba(0, 255, 0, 0.3)",this.polygonStrokeColor="rgba(255, 0, 0, 1)",this.polygonFillColor=this.defaultFillColor,this.polygonStrokeWidth=1,this.polygonCornerRadius=0,this.highlightedPolygonStrokeColor="rgba(0, 255, 0, 1)",this.highlightedPolygonFillColor=this.defaultHighlightedFillColor,this.highlightedPolygonStrokeWidth=2,this.highlightedPolygonCornerRadius=0,this.textColor="white",this.textBackgroundColor="rgba(255, 0, 0, 0.9)",this.highlightedTextColor="white",this.highlightedTextBackgroundColor="rgba(0, 255, 0, 0.9)"}}e.SelectionOverlayStyleConfiguration=o;e.SelectionOverlayConfiguration=class{constructor(){this.visible=!1,this.textFormat="Text",this.automaticSelectionEnabled=!1,this.style=new o}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.barcodeScannerViewConfigFromRtuUiConfig=void 0;const o=n(79),r=n(1),i=n(4);e.barcodeScannerViewConfigFromRtuUiConfig=function(t){return(0,r.useMemo)((()=>{const e=(new o.BarcodeScannerConfiguration).videoConstraints;return e.facingMode="FRONT"===t.cameraConfiguration.cameraModule?"user":"environment",{videoConstraints:e,backgroundColor:i.SBTheme.getColorValue(t.backgroundColor),userGuidance:t.userGuidance,finder:t.viewFinder,barcodesRegexFilter:new RegExp(t.recognizerConfiguration.barcodesRegexFilter)}}),[t])}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DrawerHeaderContent=e.DrawerHeaderContentProps=void 0;const r=o(n(1)),i=n(42),a=n(2),s=n(9),l=n(4);e.DrawerHeaderContentProps=class{},e.DrawerHeaderContent=function(t){const e=Object.assign(Object.assign({},t.title),{text:l.SBTheme.getLocalizedBarcodeText(t.title.text).replace("%d",t.numBarcodes.toString())});return r.default.createElement(r.default.Fragment,null,r.default.createElement(i.StyledButton,Object.assign({},t.leftButton)),r.default.createElement(a.Typography,{sx:{flex:2,textAlign:"center",fontWeight:600,fontSize:18}},r.default.createElement(s.StyledText,{config:e})),r.default.createElement(i.StyledButton,Object.assign({},t.rightButton)))}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Props=void 0;const r=o(n(1)),i=n(2),a=o(n(144)),s=n(25),l=n(4),u=n(9);e.Props=class{},e.default=function(t){return 0!==t.numBarcodes?null:r.default.createElement("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",marginTop:"auto",marginBottom:"auto",overflowY:"scroll"}},t.style.placeholderIcon.visible&&r.default.createElement(i.Avatar,{style:{backgroundColor:l.SBTheme.getColorValue(t.style.placeholderIconBackground),width:100,height:100}},r.default.createElement(a.default,{color:l.SBTheme.getColorValue(t.style.placeholderIcon.color)})),r.default.createElement(i.Typography,{style:{marginTop:20},variant:"h6"},r.default.createElement(u.StyledText,{config:t.style.placeholderTitle})),r.default.createElement(i.Typography,{style:{marginTop:20,paddingLeft:"10%",paddingRight:"10%",maxWidth:400,textAlign:"center"},variant:"body2"},r.default.createElement(u.StyledText,{config:t.style.placeholderSubtitle})),t.onStartClick&&r.default.createElement(s.DialogButton,Object.assign({style:{width:"60%",marginTop:20}},t.style.startScanningButton,{visible:!0,onClick:t.onStartClick})))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useDragListener=e.TouchEvent=e.DragProps=void 0;const o=n(1),r=n(5);e.DragProps=class{};e.TouchEvent=class{},e.useDragListener=function(t,e,n){const i=(0,o.useRef)(),a=(0,o.useRef)(null),[s,l]=(0,o.useState)(),[u,c]=(0,o.useState)(!1),d=(0,o.useRef)([]),f=t=>{let n="none";if(d.current.length>0){const e=200,o=((t,e)=>{let n=t[0],o=Math.abs(n.time-e);for(let r=1;r<t.length;r++){const i=Math.abs(t[r].time-e);i<o&&(n=t[r],o=i)}return n})(d.current,t.timeStamp-e),r=o.y-t.clientY,i=100;r>i?n="up":r<-i&&(n="down")}d.current.splice(0,d.current.length),e(new r.Point(t.clientX,t.clientY),n)},h={onPointerDown:t=>{t.target.setPointerCapture(t.pointerId),c(!0),a.current=new r.Point(t.clientX,t.clientY),l(r.Point.empty()),t.stopPropagation()},onPointerMove:e=>{if(!u)return;const n=new r.Point(e.clientX,e.clientY);i.current=e,l(n),t(n),d.current.push({x:e.clientX,y:e.clientY,time:e.timeStamp})},onPointerUp:t=>{t.target.releasePointerCapture(t.pointerId),c(!1),f(t)},onPointerCancel:t=>{t.target.releasePointerCapture(t.pointerId),c(!1),n()}};return{startPoint:a,currentPoint:s,props:h,stop:()=>{i.current.stopPropagation()},dragOngoing:u}}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DraggableBaseContainer=void 0;const r=o(n(1));class i extends r.default.Component{constructor(){super(...arguments),this.POINT_COUNT=4,this.items=[],this.DRAG_BUFFER=5}get pointSize(){var t,e;return(null===(t=this.props.style)||void 0===t?void 0:t.size)?(null===(e=this.props)||void 0===e?void 0:e.scale)?this.props.style.size/this.props.scale:this.props.style.size:0}get pointStyle(){var t,e;return{width:this.pointSize+"px",height:this.pointSize+"px",border:null===(t=this.props.style)||void 0===t?void 0:t.border,borderRadius:this.pointSize/2+"px",backgroundColor:null===(e=this.props.style)||void 0===e?void 0:e.color,position:"absolute",cursor:"pointer",zIndex:500}}nextIndex(t){return(t+1)%this.POINT_COUNT}previousIndex(t){return(t-1+this.POINT_COUNT)%this.POINT_COUNT}isHorizontal(t){return t%2==0}isOutOfBounds(t,e){return t<-this.DRAG_BUFFER||t>e+this.DRAG_BUFFER}get invisibleHandleStyle(){return{width:"50px",height:"50px",opacity:0,position:"relative",top:this.pointSize/2-25+"px",left:this.pointSize/2-25+"px",borderRadius:"25px"}}}e.DraggableBaseContainer=i},function(t,e){t.exports=function(t,e,n,o){var r=n?n.call(o,t,e):void 0;if(void 0!==r)return!!r;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=t[u],d=e[u];if(!1===(r=n?n.call(o,c,d,u):void 0)||void 0===r&&c!==d)return!1}return!0}},function(t,e,n){"use strict";e.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(t,e,n){"use strict";function o(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}n.d(e,"a",(function(){return i}));var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=o((function(t){return r.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}))},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ScanbotSDK=void 0;const r=o(n(20));e.ScanbotSDK=r.default},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.WorkerBridge=void 0;const r=n(52),i=n(92);class a{constructor(t,e,n){t||(t=r.Constants.CDN_PATH+r.Constants.DEFAULT_WASM_FOLDER),this.core=new i.WorkerBridge(t,e),this.coreInitializationSuccessful=this.core.postByCopyingArgs("initialize",n)}awaitInitialized(){return o(this,void 0,void 0,(function*(){yield this.getCoreForCommand()}))}postByCopyingArgs(t,e){return o(this,void 0,void 0,(function*(){return(yield this.getCoreForCommand(t)).postByCopyingArgs(t,e)}))}postByTransferringArgs(t,e){return o(this,void 0,void 0,(function*(){return(yield this.getCoreForCommand(t)).postByTransferringArgs(t,e)}))}getCoreForCommand(t=""){return o(this,void 0,void 0,(function*(){const e=yield this.coreInitializationSuccessful;if("getLicenseInfo"===t||e)return this.core;throw new Error("WASM not initialized successfully. This can be due to an invalid license or problems loading the WASM file. Please check the console for more information.")}))}}e.WorkerBridge=a,a.ASM_JS="ScanbotSDK.Core.js"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=""},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WorkerBridge=void 0;var o=n(53);e.WorkerBridge=class{constructor(t,e){const{requestSuffix:n=""}=e||{},r=(0,o.getBuildType)(e),i=`${t}${t.endsWith("/")?"":"/"}ScanbotSDK.Core${r}.js${n}`;if((0,o.isRemote)(i)){const t=new Blob([`importScripts("${i}")`]);this.instance=new Worker(URL.createObjectURL(t))}else this.instance=new Worker(i);this.continuations={},this.nextTicketId=1,this.instance.onmessage=t=>{const{log:e,logError:n}=t.data;if(e)return void console.log(...e);if(n)return void console.error(...n);const{ticket:o,result:r,error:i}=t.data,{resolve:a,reject:s}=this.continuations[o];delete this.continuations[o],i?s(i):a(r)}}post(t,e,n){return new Promise(((r,i)=>{const a=(0,o.gatherTransferables)(e,n),s=this.nextTicketId++;this.continuations[s]={resolve:r,reject:i},this.instance.postMessage({command:t,args:e,ticket:s},a)}))}postByCopyingArgs(t,e){return this.post(t,e,!0)}postByTransferringArgs(t,e){return this.post(t,e,!1)}destroy(){this.instance.terminate()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LicenseInfo=void 0;class o{isValid(){return"Okay"===this.status||"Trial"===this.status}static fromJson(t){const e=new o;return e.status=t.licenseStatus,e.description=t.description,e}}e.LicenseInfo=o},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});e.default=class{constructor(t,e){this._sdk=t,this._pdfOperation=e}addPage(t){return o(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByCopyingArgs("addPageToPdf",[this._pdfOperation,t])}))}complete(){return o(this,void 0,void 0,(function*(){return yield this._sdk.bridge.postByCopyingArgs("completePdf",[this._pdfOperation])}))}}},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=n(57);e.default=class{constructor(t,e){this._sdk=t,this._tiffOperation=e}addPage(t){return o(this,void 0,void 0,(function*(){let e;e=t instanceof r.ImageProcessor?t.__token:t,yield this._sdk.bridge.postByCopyingArgs("addPageToTiff",[this._tiffOperation,e])}))}complete(){return o(this,void 0,void 0,(function*(){return yield this._sdk.bridge.postByCopyingArgs("completeTiff",[this._tiffOperation])}))}}},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=n(97);e.default=class{constructor(t,e,n){this._sdk=t,this._mrzRecognizerToken=e,this.enableFrameAccumulation=n}recognize(t){return o(this,void 0,void 0,(function*(){try{let e=yield this._sdk.bridge.postByTransferringArgs("recognizeMRZ",[yield this._mrzRecognizerToken,t]);if(null===e)return;const n=r.MrzResult.fromWorker(e);return!this.enableFrameAccumulation&&n&&delete n.verificationSuccessful,n}catch(t){return void console.warn(t)}}))}recognizeURL(t){return o(this,void 0,void 0,(function*(){return new Promise((e=>{const n=document.createElement("canvas"),r=document.createElement("img");r.src=t,r.onload=()=>o(this,void 0,void 0,(function*(){n.width=r.width,n.height=r.height;const t=n.getContext("2d");t.drawImage(r,0,0);const o=t.getImageData(0,0,r.width,r.height),i=yield this.recognize(o);e(i||void 0)}))}))}))}release(){return o(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("releaseObject",[yield this._mrzRecognizerToken])}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MrzResult=e.MrzCheckDigits=e.MrzField=void 0;class o{constructor(t,e,n,o){this.value=e,this.confidence=n,this.validated=o,this.name=t}}e.MrzField=o;class r{}e.MrzCheckDigits=r;class i{static fromWorker(t){let e=new i;e.verificationSuccessful=t.verificationSuccessful;const n=new r,a=t.recognitionSuccessful;return(t.fields||[]).forEach((t=>{switch(t.name){case"DocumentNumber":e.documentNumber=new o(t.name,t.text,t.confidence,t.validated);break;case"IssuingAuthority":e.issuingAuthority=new o(t.name,t.text,t.confidence,t.validated);break;case"DepartmentOfIssuance":e.departmentOfIssuance=new o(t.name,t.text,t.confidence,t.validated);break;case"GivenNames":e.givenNames=new o(t.name,t.text,t.confidence,t.validated);break;case"Surname":e.surname=new o(t.name,t.text,t.confidence,t.validated);break;case"Nationality":e.nationality=new o(t.name,t.text,t.confidence,t.validated);break;case"BirthDate":e.birthDate=new o(t.name,t.text,t.confidence,t.validated);break;case"Gender":e.gender=new o(t.name,t.text,t.confidence,t.validated);break;case"ExpiryDate":e.expiryDate=new o(t.name,t.text,t.confidence,t.validated);break;case"PersonalNumber":e.personalNumber=new o(t.name,t.text,t.confidence,t.validated);break;case"TravelDocType":e.travelDocType=new o(t.name,t.text,t.confidence,t.validated);break;case"TravelDocTypeVariant":e.travelDocTypeVariant=new o(t.name,t.text,t.confidence,t.validated);break;case"DiscreetIssuingStateOrOrganization":e.discreetIssuingStateOrOrganization=new o(t.name,t.text,t.confidence,t.validated);break;case"DocumentTypeCode":e.kindOfDocumentField=new o(t.name,t.text,t.confidence,t.validated);break;case"DocumentType":e.documentType=new o(t.name,t.text,t.confidence,t.validated);break;case"Format":e.format=new o(t.name,t.text,t.confidence,t.validated);break;case"PINCode":e.pinCode=new o(t.name,t.text,t.confidence,t.validated);break;case"LanguageCode":e.languageCode=new o(t.name,t.text,t.confidence,t.validated);break;case"VersionNumber":e.versionNumber=new o(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitGeneral":n.general=new o(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitDocumentNumber":n.documentNumber=new o(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitBirthDate":n.birthDate=new o(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitExpiryDate":n.expiryDate=new o(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitPersonalNumber":n.personalNumber=new o(t.name,t.text,t.confidence,t.validated);break;case"Optional1":e.optional1=new o(t.name,t.text,t.confidence,t.validated);break;case"Optional2":e.optional2=new o(t.name,t.text,t.confidence,t.validated)}})),e.documentType||(e.documentType=new o("DocumentType",t.documentType)),a?e.checkDigits=n:e=void 0,e}}e.MrzResult=i},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});e.default=class{constructor(t,e){this._sdk=t,this._OcrEngineToken=e}performOcr(t){return o(this,void 0,void 0,(function*(){return yield this._sdk.bridge.postByCopyingArgs("performOcr",[this._OcrEngineToken,t])}))}recognizeURL(t){return o(this,void 0,void 0,(function*(){return new Promise((e=>{const n=document.createElement("canvas"),r=document.createElement("img");r.src=t,r.onload=()=>o(this,void 0,void 0,(function*(){n.width=r.width,n.height=r.height;const t=n.getContext("2d");t.drawImage(r,0,0);const o=t.getImageData(0,0,r.width,r.height),i=yield this.performOcr(o);e(i)}))}))}))}release(){return o(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("releaseObject",[this._OcrEngineToken])}))}}},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=n(100);e.default=class{constructor(t,e){this._sdk=t,this._textDataScannerToken=e}recognize(t){return o(this,void 0,void 0,(function*(){try{let e=yield this._sdk.bridge.postByTransferringArgs("recognizeTextLine",[yield this._textDataScannerToken,t]);if(null===e)return;return r.TextDataScannerResult.fromWorker(e)}catch(t){return void console.warn(t)}}))}cleanRecognitionQueue(){return o(this,void 0,void 0,(function*(){try{yield this._sdk.bridge.postByTransferringArgs("cleanTextLineRecognitionQueue",[yield this._textDataScannerToken])}catch(t){return void console.warn(t)}}))}recognizeURL(t){return o(this,void 0,void 0,(function*(){return new Promise((e=>{const n=document.createElement("canvas"),r=document.createElement("img");r.src=t,r.onload=()=>o(this,void 0,void 0,(function*(){n.width=r.width,n.height=r.height;const t=n.getContext("2d");t.drawImage(r,0,0);const o=t.getImageData(0,0,r.width,r.height),i=yield this.recognize(o);i&&e(i)}))}))}))}release(){return o(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("releaseObject",[yield this._textDataScannerToken])}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextDataScannerResult=void 0;class o{static fromWorker(t){if(!t)return;const e=new o;return e.text=t.rawText,e.confidence=t.confidence,e.validated=t.validationSuccessful,e}}e.TextDataScannerResult=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextDataScannerConfiguration=void 0;const o=n(15),r=n(23);class i extends r.ViewFinderScannerConfiguration{constructor(){super(o.ScannerConfiguration.DEFAULT_VIDEO_RESOLUTION_HD),this.onTextDetected=function(t){},this.finder.aspectRatio.width=6,this.userGuidance.title.text="Please hold the device over the text to start scanning"}static fromJson(t){const e=new i;return this.mapFinderConfiguration(e,t),this._fromJson(e,t)}}e.TextDataScannerConfiguration=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExpectedBarcode=void 0;const o=n(6);class r extends o.PartiallyConstructible{constructor(t={}){if(super(),this.count=1,void 0===t.barcodeValue)throw new Error("barcodeValue must be present in constructor argument");if(this.barcodeValue=t.barcodeValue,void 0===t.title)throw new Error("title must be present in constructor argument");if(this.title=null!=t.title?t.title:null,void 0===t.image)throw new Error("image must be present in constructor argument");this.image=null!=t.image?t.image:null,void 0!==t.count&&(this.count=t.count)}}e.ExpectedBarcode=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeScannerConfiguration=void 0;const o=n(61),r=n(3),i=n(3),a=n(66),s=n(65),l=n(62),u=n(3),c=n(60),d=n(67),f=n(6),h=n(40),p=n(3),g=n(3),m=n(3),v=n(3),y=n(38),b=n(3),A=n(3),S=n(3),C=n(39),_=n(64),w=n(3),x=n(40);class O extends f.PartiallyConstructible{constructor(t={}){super(),this.version="1.0",this.screen="BarcodeScanner",this.palette=new m.Palette({sbColorPrimary:"#C8193C",sbColorPrimaryDisabled:"#F5F5F5",sbColorNegative:"#FF3737",sbColorPositive:"#4EFFB4",sbColorWarning:"#FFCE5C",sbColorSecondary:"#FFEDEE",sbColorSecondaryDisabled:"#F5F5F5",sbColorOnPrimary:"#FFFFFF",sbColorOnSecondary:"#C8193C",sbColorSurface:"#FFFFFF",sbColorOutline:"#EFEFEF",sbColorOnSurfaceVariant:"#707070",sbColorOnSurface:"#000000",sbColorSurfaceLow:"#00000026",sbColorSurfaceHigh:"#0000007A",sbColorModalOverlay:"#000000A3"}),this.localization=new s.BarcodeTextLocalization({}),this.backgroundColor="?sbColorSurfaceLow",this.topBar=new C.TopBarConfiguration({title:new A.StyledText({text:"?topBarTitle",color:"?sbColorOnPrimary"}),mode:"SOLID",backgroundColor:"?sbColorPrimary",cancelButton:new u.ButtonConfiguration({visible:!0,text:"?topBarCancelButton",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new p.ForegroundStyle({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})})}),this.actionBar=new o.ActionBarConfiguration({flashButton:new v.RoundButton({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),zoomButton:new v.RoundButton({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),flipCameraButton:new v.RoundButton({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.viewFinder=new x.ViewFinderConfiguration({visible:!0,style:new h.FinderCorneredStyle({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),overlayColor:"?sbColorSurfaceLow",aspectRatio:new r.AspectRatio({width:1,height:1})}),this.userGuidance=new _.UserGuidanceConfiguration({visible:!0,title:new A.StyledText({text:"?userGuidance",color:"?sbColorOnPrimary"}),background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow",strokeWidth:0})}),this.cameraPermission=new d.CameraPermissionScreen({background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new g.IconStyle({visible:!0,color:"?sbColorOnSurface"}),closeButton:new u.ButtonConfiguration({visible:!0,text:"?cameraPermissionCloseButton",background:new i.BackgroundStyle({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new p.ForegroundStyle({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),enableCameraTitle:new A.StyledText({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new A.StyledText({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.cameraConfiguration=new c.CameraConfiguration({}),this.recognizerConfiguration=new a.BarcodeRecognizerConfiguration({}),this.useCase=new y.SingleScanningMode({}),this.sound=new b.Sound({successBeepEnabled:!0,soundType:"MODERN_BEEP"}),this.vibration=new w.Vibration({enabled:!0}),this.timeouts=new S.Timeouts({autoCancelTimeout:0,initialScanDelay:0}),void 0!==t.version&&(this.version=t.version),void 0!==t.screen&&(this.screen=t.screen),void 0!==t.palette&&(this.palette=new m.Palette(t.palette)),void 0!==t.localization&&(this.localization=new s.BarcodeTextLocalization(t.localization)),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.topBar&&(this.topBar=new C.TopBarConfiguration(t.topBar)),void 0!==t.actionBar&&(this.actionBar=new o.ActionBarConfiguration(t.actionBar)),void 0!==t.viewFinder&&(this.viewFinder=new x.ViewFinderConfiguration(t.viewFinder)),void 0!==t.userGuidance&&(this.userGuidance=new _.UserGuidanceConfiguration(t.userGuidance)),void 0!==t.cameraPermission&&(this.cameraPermission=new d.CameraPermissionScreen(t.cameraPermission)),void 0!==t.cameraConfiguration&&(this.cameraConfiguration=new c.CameraConfiguration(t.cameraConfiguration)),void 0!==t.recognizerConfiguration&&(this.recognizerConfiguration=new a.BarcodeRecognizerConfiguration(t.recognizerConfiguration)),void 0!==t.useCase&&(this.useCase=l.BarcodeUseCase.From(t.useCase)),void 0!==t.sound&&(this.sound=new b.Sound(t.sound)),void 0!==t.vibration&&(this.vibration=new w.Vibration(t.vibration)),void 0!==t.timeouts&&(this.timeouts=new S.Timeouts(t.timeouts))}}e.BarcodeScannerConfiguration=O},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeScannerResult=void 0;const o=n(68),r=n(6);class i extends r.PartiallyConstructible{constructor(t={}){super(),this.items=[],void 0!==t.items&&(this.items=t.items.map((t=>new o.BarcodeItem(t))))}}e.BarcodeScannerResult=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScanbotAlertDialog=void 0;const o=n(3),r=n(6),i=n(3);class a extends r.PartiallyConstructible{constructor(t={}){if(super(),this.title=new i.StyledText({text:"Title",color:"?sbColorOnSurface"}),this.subtitle=new i.StyledText({text:"Standard explanation message text.",color:"?sbColorOnSurfaceVariant"}),this.sheetColor="?sbColorSurface",this.modalOverlayColor="?sbColorModalOverlay",this.dividerColor="?sbColorOutline",void 0!==t.title&&(this.title=new i.StyledText(t.title)),void 0!==t.subtitle&&(this.subtitle=new i.StyledText(t.subtitle)),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0===t.okButton)throw new Error("okButton must be present in constructor argument");if(this.okButton=new o.ButtonConfiguration(t.okButton),void 0===t.cancelButton)throw new Error("cancelButton must be present in constructor argument");this.cancelButton=new o.ButtonConfiguration(t.cancelButton)}}e.ScanbotAlertDialog=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VINScannerConfiguration=void 0;const o=n(15),r=n(23);class i extends r.ViewFinderScannerConfiguration{constructor(){super(o.ScannerConfiguration.DEFAULT_VIDEO_RESOLUTION_HD),this.onTextDetected=function(t){},this.finder.aspectRatio.width=6,this.userGuidance.title.text="Please hold the device over the vehicle identification number to start scanning"}static fromJson(t){const e=new i;return this.mapFinderConfiguration(e,t),this._fromJson(e,t)}}e.VINScannerConfiguration=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LicenseError=void 0;class o extends Error{constructor(t){super(t.description),this.name="LicenseError"}}e.LicenseError=o},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(n(69));e.default=class{constructor(t,e){this._sdk=t,this._token=e}analyze(t){return o(this,void 0,void 0,(function*(){i.default.throwIfMissingBuffer(t);return yield this._sdk.bridge.postByCopyingArgs("documentQualityAnalyzerAnalyze",[this._token,t])}))}release(){return o(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("releaseObject",[this._token])}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.ScanbotBinarizationFilter=class{constructor(){this.outputMode="BINARY"}toWireType(){return{$type:"ScanbotBinarizationFilter",outputMode:this.outputMode}}};e.CustomBinarizationFilter=class{constructor(){this.preset="PRESET_4",this.outputMode="BINARY",this.denoise=.5,this.radius=32}toWireType(){return{$type:"CustomBinarizationFilter",preset:this.preset,outputMode:this.outputMode,denoise:this.denoise,radius:this.radius}}};e.ColorDocumentFilter=class{constructor(){this.valueStrength=1.5,this.saturationStrength=1.5,this.saturationOffset=64}toWireType(){return{$type:"ColorDocumentFilter",valueStrength:this.valueStrength,saturationStrength:this.saturationStrength,saturationOffset:this.saturationOffset}}};e.BrightnessFilter=class{constructor(){this.brightness=0}toWireType(){return{$type:"BrightnessFilter",brightness:this.brightness}}};e.ContrastFilter=class{constructor(){this.contrast=0}toWireType(){return{$type:"ContrastFilter",contrast:this.contrast}}};e.GrayscaleFilter=class{constructor(){this.autocontrast=!0,this.borderWidthFraction=.06,this.blackOutliersFraction=0,this.whiteOutliersFraction=.02}toWireType(){return{$type:"GrayscaleFilter",autocontrast:this.autocontrast,borderWidthFraction:this.borderWidthFraction,blackOutliersFraction:this.blackOutliersFraction,whiteOutliersFraction:this.whiteOutliersFraction}}};e.LegacyFilter=class{constructor(){this.filterType=0}toWireType(){return{$type:"LegacyFilter",filterType:this.filterType}}};e.WhiteBlackPointFilter=class{constructor(){this.blackPoint=0,this.whitePoint=1}toWireType(){return{$type:"WhiteBlackPointFilter",blackPoint:this.blackPoint,whitePoint:this.whitePoint}}}},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},a=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const l=s(n(1)),u=n(112),c=n(113),d=i(n(17)),f=s(n(46));class h{static createBarcodeScanner(t){return new Promise(((e,n)=>{f.default.INSTANCE.initialize(t.sound);const o=h.createContainer("barcode-scanner-controller"),r=(0,u.createRoot)(o),i=()=>a(this,void 0,void 0,(function*(){return new Promise((t=>{window.setTimeout((()=>{r.unmount(),document.body.removeChild(o),t()}),0)}))}));r.render(l.default.createElement(c.BarcodeScannerController,{configuration:t,onClose:()=>a(this,void 0,void 0,(function*(){yield i(),e(null)})),onSubmit:t=>a(this,void 0,void 0,(function*(){yield i(),e(t)})),onError:t=>a(this,void 0,void 0,(function*(){yield i(),n(t)}))}))}))}static createContainer(t){const e=document.createElement("div");return e.id=t,e.style.position="fixed",e.style.width="100%",e.style.height="100%",e.style.zIndex="1000",e.style.top="0",e.style.backgroundColor="rgba(0, 0, 0, 0.5)",document.body.appendChild(e),e}}h.Config=d,e.default=h},function(t,e,n){const{render:o,hydrate:r,unmountComponentAtNode:i}=n(1);function a(t){return{render(e){o(e,t)},unmount(){i(t)}}}e.createRoot=a,e.hydrateRoot=function(t,e){return r(e,t),a(t)}},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeScannerController=e.Props=void 0;const s=i(n(1)),l=n(2),u=a(n(2)),c=n(4),d=a(n(16)),f=n(114),h=n(141),p=n(153),g=n(19),m=n(154),v=n(49),y=n(41),b=n(155);e.Props=class{},e.BarcodeScannerController=function(t){const e=(0,s.useRef)((0,v.createSBTheme)()),[n,o]=(0,s.useState)(!1),[r,i]=(0,s.useState)(!1),[a,A]=(0,s.useState)(t.configuration.timeouts.initialScanDelay<=0),S=(0,s.useRef)(!1),C=(0,s.useRef)(),_=(0,s.useRef)(),w=(0,s.useMemo)((()=>new g.BarcodeMapper(t.configuration.useCase.barcodeInfoMapping.barcodeItemMapper,((t,e)=>{o(!0),C.current=()=>{o(!1),t()},_.current=()=>{o(!1),e()}}))),[]);let x;if((0,s.useEffect)((()=>{c.SBTheme.setPalette(t.configuration.palette),c.SBTheme.setBarcodeTextLocalization(t.configuration.localization)}),[t.configuration]),(0,s.useEffect)((()=>{if(t.configuration.timeouts.autoCancelTimeout>0){const e=setTimeout((()=>{t.onClose()}),t.configuration.timeouts.autoCancelTimeout);return()=>{clearTimeout(e)}}}),[]),(0,s.useEffect)((()=>{if(t.configuration.timeouts.initialScanDelay>0){const e=setTimeout((()=>{A(!0)}),t.configuration.timeouts.initialScanDelay);return()=>{clearTimeout(e)}}}),[]),(0,s.useEffect)((()=>{S.current=!n&&a}),[n,a]),"SingleScanningMode"===t.configuration.useCase._type)x=s.default.createElement(f.SingleScanningModeController,{configuration:t.configuration,onClose:t.onClose,onSubmit:t.onSubmit,onCameraPermissionDenied:()=>i(!0),scanningEnabled:S});else{if("MultipleScanningMode"!==t.configuration.useCase._type)throw new Error("Unsupported use case type");x=s.default.createElement(h.MultipleScanningModeController,{configuration:t.configuration,onSubmit:t.onSubmit,onCameraPermissionDenied:()=>i(!0),scanningEnabled:S})}return s.default.createElement(s.default.Fragment,null,s.default.createElement(y.DynamicViewportHeightCssProperty,null),s.default.createElement(p.ErrorBoundary,{onError:t.onError,fallback:s.default.createElement("div",null,"Error")},s.default.createElement(c.SBPaletteContext.Provider,{value:(0,c.createSBPaletteContextValue)(t.configuration.palette)},s.default.createElement(g.BarcodeMapperContext.Provider,{value:w},s.default.createElement(l.ThemeProvider,{theme:e.current},s.default.createElement(m.BarcodeMappingErrorDialog,Object.assign({open:n,handleCancel:_.current,handleRetry:C.current,modalOverlayColor:t.configuration.useCase.barcodeInfoMapping.modalOverlayColor,dividerColor:t.configuration.useCase.barcodeInfoMapping.dividerColor,sheetColor:t.configuration.useCase.barcodeInfoMapping.sheetColor},t.configuration.useCase.barcodeInfoMapping.errorState)),s.default.createElement(u.default,{sx:{height:`100 * ${y.dvhCssValue}`,width:"100vw",backgroundColor:c.SBTheme.getColorValue(t.configuration.backgroundColor)}},s.default.createElement(d.default,Object.assign({onBackPress:t.onClose},t.configuration.topBar),!r&&x,r&&s.default.createElement(b.CameraPermissionDenied,{onAppClose:t.onClose,config:t.configuration.cameraPermission}))))))))}},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},a=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SingleScanningModeController=void 0;const l=i(n(1)),u=n(2),c=n(115),d=n(19),f=n(16),h=n(45),p=s(n(46)),g=s(n(71)),m=n(72),v=n(81);e.SingleScanningModeController=function(t){const[e,n]=(0,l.useState)(null),[o,r]=(0,l.useState)(!0),i=(0,l.useMemo)((()=>"__sb_"+Math.random()),[]),s=(0,l.useContext)(d.BarcodeMapperContext),y=t.configuration.useCase,b=Object.assign(Object.assign({},(0,v.barcodeScannerViewConfigFromRtuUiConfig)(t.configuration)),{onBarcodesDetected:e=>{e.barcodes.length>0&&!y.arOverlay.visible&&t.scanningEnabled.current&&n(e.barcodes[0])},onError:t=>{},returnBarcodeImage:!y.barcodeInfoMapping.barcodeItemMapper,containerId:i,captureDelay:0}),A=n=>a(this,void 0,void 0,(function*(){let o;o=null===e?[]:[yield s.mapBarcodeToBarcodeItem(n,1)];const r={items:o};t.onSubmit(r)}));(0,l.useEffect)((()=>{e&&(p.default.INSTANCE.beep(t.configuration.sound),g.default.INSTANCE.vibrate(t.configuration.vibration))}),[e]),(0,l.useEffect)((()=>{null===e||y.confirmationSheetEnabled||A(e)}),[e,y.confirmationSheetEnabled]);const S=s.useBarcodeMappedData(e);(0,l.useEffect)((()=>{"FAILED"===(null==S?void 0:S.state)&&n(null)}),[null==S?void 0:S.state]);const C=(0,l.useContext)(f.NavigationBarSizeContext);return l.default.createElement(l.default.Fragment,null,l.default.createElement(c.BarcodeInfoDialog,Object.assign({open:!!S&&["LOADED","LOADING"].includes(S.state),handleCancel:()=>{n(null)},handleSubmit:()=>{A(e)},barcodeMappedData:S},(0,c.barcodeInfoDialogStylingPropsFromConfig)(y),{displayRightArrow:!1,modalOverlayColor:y.barcodeInfoMapping.modalOverlayColor})),l.default.createElement(u.Box,{id:i,sx:{width:"100%",height:C.remainingVisibleBodyHeight}},l.default.createElement(m.BarcodeScanner,{cameraConfiguration:t.configuration.cameraConfiguration,scanningPaused:null!==e,setActionButtonsVisible:r,viewFinderPadding:{minTopPadding:C.minTopPaddingForViewFinder,minBottomPadding:o?2*h.ACTION_BUTTON_PADDING+h.ACTION_BUTTON_HEIGHT:0},barcodeScannerViewConfig:b,arOnBarcodeClick:t=>n(t),arOnBarcodeEnter:e=>{y.arOverlay.automaticSelectionEnabled&&t.scanningEnabled.current&&n(e)},arOverlay:Object.assign(Object.assign({},y.arOverlay),{counterBadge:Object.assign(Object.assign({},y.arOverlay.counterBadge),{visible:!1})}),containerId:i,actionBarConfig:t.configuration.actionBar,actionBarBottomPadding:h.ACTION_BUTTON_PADDING,onCameraPermissionDenied:t.onCameraPermissionDenied})))}},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BarcodeInfoDialog=e.barcodeInfoDialogStylingPropsFromConfig=void 0;const s=n(2),l=i(n(1)),u=n(43),c=n(4),d=a(n(2)),f=a(n(2)),h=n(25),p=n(9),g=n(44);e.barcodeInfoDialogStylingPropsFromConfig=function(t){return{sheetColorLoaded:t.sheetColor,sheetColorLoading:t.barcodeInfoMapping.sheetColor,barcodeImageVisible:t.barcodeImageVisible,barcodeTitle:t.barcodeTitle,barcodeSubtitle:t.barcodeSubtitle,cancelButton:t.cancelButton,submitButton:t.submitButton,dividerColor:t.dividerColor,loadingMessage:t.barcodeInfoMapping.loadingMessage}},e.BarcodeInfoDialog=function(t){const e=(0,l.useContext)(c.SBPaletteContext).getColorValue,n=!t.barcodeMappedData||"LOADED"!==t.barcodeMappedData.state,o={backgroundColor:e(n?t.sheetColorLoading:t.sheetColorLoaded)},[r,i]=l.default.useState(),a=(0,l.useRef)((()=>{}));(0,l.useEffect)((()=>{t.open&&i(!1)}),[t.open]);const m=()=>{a.current=t.handleCancel,i(!0)};return l.default.createElement(g.StyledDialog,{modalOverlayColor:t.modalOverlayColor,open:t.open&&!r,fullWidth:!0,TransitionProps:{onExited:()=>{r&&a.current()}},onClose:()=>{n||m()}},l.default.createElement(s.DialogContent,{style:o},l.default.createElement(u.BarcodeInfo,Object.assign({},t,{maxNumberOfTitleLines:2,maxNumberOfSubtitleLines:1,imageSize:68}))),l.default.createElement(s.DialogActions,{style:o},l.default.createElement(d.default,{container:!0,spacing:2,sx:{overflow:"hidden"}},l.default.createElement(d.default,{item:!0,xs:12},l.default.createElement(f.default,{color:e(t.dividerColor)})),n?l.default.createElement(d.default,{item:!0,xs:12,sx:{textAlign:"center"}},l.default.createElement(s.Box,null,l.default.createElement(s.CircularProgress,{sx:{color:e(t.loadingMessage.color),verticalAlign:"middle",mr:2}}),l.default.createElement(p.StyledText,{config:t.loadingMessage}))):l.default.createElement(l.default.Fragment,null,l.default.createElement(d.default,{item:!0,xs:6},l.default.createElement(h.DialogButton,Object.assign({style:{width:"100%"},onClick:m},t.cancelButton))),l.default.createElement(d.default,{item:!0,xs:6},l.default.createElement(h.DialogButton,Object.assign({style:{width:"100%"},onClick:()=>{a.current=t.handleSubmit,i(!0)}},t.submitButton)))))))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.usePromise=void 0;const o=n(1);e.usePromise=function(t){const e=(0,o.useRef)(!0);(0,o.useEffect)((()=>(e.current=!0,()=>{e.current=!1})));const[,n]=(0,o.useReducer)((t=>t+1),0),r=(0,o.useRef)();return(0,o.useMemo)((()=>{r.current={loading:!0,value:void 0,error:null}}),[t]),function(t,e){(0,o.useMemo)((()=>{t&&t.then((t=>{e({loading:!1,error:null,value:t})})).catch((t=>{e({loading:!1,error:{reason:t},value:void 0})}))}),[t])}(t,(t=>{r.current=t,e.current&&n()})),t?r.current:null}},function(t,e,n){"use strict";n.r(e),e.default="data:audio/mp4;base64,AAAAHGZ0eXBNNEEgAAACAE00QSBpc29taXNvMgAAAAhmcmVlAAAEcm1kYXQBQCKAo30ghS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwDmVAjh8QBrRiUH/88pKh3gJPmPt9t8oIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwDsl6UY83aVqFeq3aVmmYyFp70/kJT+A9hdePd7Z7aRSFKZBhCUP6E1rS/9+DhfmhvTknCnQzE+QHVPD6rhSIRpGIAFmBioF1XkxwAQjxKkQMc+qECgXnCAU1IcgpFDnWo02EdihsnrUx/1bJAUo+x6//p8VmoS0iuleHvPnKj9mjjHOoaDGI/s2DHcYI66Grp+5pezZuKJExJOzoyJRdmv6ltO6ibTdTDZ1YqLauKTebYOtpTWnh3/K3kBQmN3NsieqxzHeZKNiFphWuYSWMhaHIZRnRt6O/WzTXYFGrG0wBT54NCQ3wtSpqr5dHbQN2yY0jcckhLUieNtOSjS3u1NuMqWbOx1zHwlHfJKgI349OU9iZEzeN3rCVbBVdrdcAEW9Cm2Ji2FjQNkiFBViV6ofFsNVeVqpKgpsf3/iWtBG6cpMqFHjy2QhyBEnPtwTbWbm9b1u7frF3bnaVykqieEvTKfqnCYL2u4g1CLiQ4Zb8hkkTL9tnGmdMOeqIkUcHZ0zsspzvHOUXJTlssZTRjqcIsp514HJO9YhVRXALKaCRKQkbMEty3CstONNYzuhq57bbccc+/Pq22226ueWXLLbTTw4bFIoQoGWepZBRJWQFh4yui2+evKOqLp+rLKJ4LKcAtQ7XA0aLCyMRVDDOmuoYcnFEmIrpzmRQNQIJ5HWvOesgzjrK071chBhESdztJ0sMqhdAAyjegdEYPNyA4BCDQtLGRRKQQBQIhXYqGZ65Pu1S7XMxxVXEOWtJGMAARETyDKiMN4tsmFfcvmo+sHuHZrY196169rbT/sHFGNK1cnJrBK2vDu7b0AsBd9VaKrsNHL/KxFHm3Yma/+S365yvTF+abktGk7JSrS++mXLBw76AiuijMPpwzPoP4jNzZjI+R/p7zboMSKiFvZkMx8CDIPGB+K2Ee7XaOqAu8z6cWgazCp76DdzIwsmGw2TiczmQMAafEX0U6lQOAA6jQJAfCsBrSxVH+Hw8fPKIpB7JuhzAB/BwAAAw9tb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAATwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAACOnRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAEAAAAAAAAATwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAE4AAAgAAAEAAAAAAbJtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAVgFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAFdbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAAEhc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAQAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgABAASAgIAUQBUAAAAAARrvAAEa7wWAgIACEggGgICAAQIAAAAgc3R0cwAAAAAAAAACAAAABQAABAAAAAABAAABgAAAABxzdHNjAAAAAAAAAAEAAAABAAAABgAAAAEAAAAsc3RzegAAAAAAAAAAAAAABgAAALkAAAC6AAABIAAAAQAAAAC9AAAAGgAAABRzdGNvAAAAAAAAAAEAAAAsAAAAGnNncGQBAAAAcm9sbAAAAAIAAAAB//8AAAAcc2JncAAAAAByb2xsAAAAAQAAAAYAAAABAAAAYXVkdGEAAABZbWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAsaWxzdAAAACSpdG9vAAAAHGRhdGEAAAABAAAAAExhdmY2MC4zLjEwMA=="},function(t,e,n){"use strict";n.r(e),e.default="data:audio/mp4;base64,AAAAHGZ0eXBNNEEgAAAAAE00QSBtcDQyaXNvbQAAAAFtZGF0AAAAAAAACHchIANAaBv6AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOCFO4v////////gyh+L1JkJB36Cv0yBUdzB8/8/b8vveozPf+/6eH18deTh9kOp11urWAB5ZsMnhMwSjUCF2MQub4hybjxDhHACGof0XiT9tAHVOwt4NPtPOMFr/ndlTpTNXy79GYIfXP7VkPs99ySHNOFkpNrBS1pClU3rRGHp6Dy9FBIlk4KbBNBLGMJRcWQxuVsVJCSMnGw1FuIUrBN2UJLoEMhurMxpIiyGAweBvyfNJy4FbxqDm3WDjCtzP+3yVmOjxhIBDANLYyeG05LNyCZONEOk/c4hCj3Y2XQkgTI7y/39g0a+MuEoAdbRz4gSgRJnjEGB0TnOB0LtiL0XB9kwz2SwCBB0MvIByUSWTPTsRdCA4PvEmwnNdTnJT5/kPGk4swkTgOOuWJBI0EkxFs5mmNIR6wSFql36Hn03/Lf/uHp+6aTmBY0HJ6P6X1atw/Y8vK72LCWpsq0beo5KkrrrMe1eabaDyfZRPYfgPwH4Dv4CHU663VrAA8wchbBRlqQNnYNlYNhYNigNhoTBsTCcTCgLBEQCX+XfNd+3y+piKntTerXdXpDWRpLzsKmJ4iRM4ig+I6R65pDawx8Ry4cxfeifbsbzK/TxNhafR9y2zFVicy8nCVkU6CkmLckGtqbuYvhruBP0TriLNTU1TNhW6tUCdUSyneDUWAox5RTMlF2W1san5MQRlj7Btm2bZhoqoUUAJlpaat54WVuTyOxqwzNVhPenFR9KBpuA3qrUrT+3ShOUdXAkGXmCrMBxH3XmROdVSkS8cccRMOKTN+7OOEIQrMYIcna5hipAqPHk6VSgy0gGXljIk7GR/O606SyhhgglQIZLyxxOa/ZANmzZkyZMlRoqIt/T6xZHaFLcZ6n8jSgTVoOGsK5MvOlIBBkR+AtM5hvkTG2UzEhEAcsA7bZfCZmmZmZjQnqfn/yRwXzQtlZljFYd93mGppQSDDV/oz8HKkKjElN9Pu/inFmh3IHFyXlrJ/dodwM2EUkLZff1jWCO84wYUa3JB52yTMCETuUgA0BWB+I4hDBR1xoligVhgVhgNhYdBcLCcakAb1XLO/eZ9cUtvv6cNzrRYdMWgFvJySSSSscWFxCQElKcwc2dFkyos8dHfXPYFSt0klO2wUeIUxNKf5LiWYGm57bV0dipv7Qpw9uRRu23CuNIbT7++AuwEnyFWIQP0OpdUhc7u2k2fKW3mTZZxCSb+gVCjOzNf7LzxdBpbZxYwuNkcRlqAMdRMhq+tXmbLkMGGph20w4JvwvBm+x4Wtomh4lz0GGBVGQ96+JUXhvqQQAQPRTHtn+e7SwaCKMXnEEWXevaFVrPVEX7wxIBbbcpAHXj2DQz/vO9M0FHzyQFtegQjjn+fM99jgBE2fLJs/PLcErzrmCGJdVHZ19uxTErdmR6viG6cetew2MYQFm5AIDdPmjeXifvbFcjkYQWUsqKoBQJAKMp50hLtJRCKLCTSw2f7e0wzzhr6eGhjlyOQ8blgBiR0fxcjQYM5rBBM/wzuDe972u2f/mN7u8zVqGu7QADPHgAK4PxW8nJJJJLgISwUZaaRYmFRWRBEIwQKfmepncccZoqHnVy0WnFag51Yt48agPiK7D59zNlI+6YR9SHvnKoiJCcRzsskEGDgIrLQoLEgDguNTzeNvuxVpc8wntXmUlTQMa9WLn/geS8F7ku6Vt+I9yiumFP6I5hbEGeXac1BCB3YA3gNA0rLFPwrWq//VvtF6JGKIOVA12lCnpZl8NJojK1yqVsVKp+ZqbDpq0S1duspmvSvCbwmftOnwnfuNqBCnzZfzZF9fkqxTCqlq8GmR3bGK+1uvEcF55cGGx8BNANhkk1438/rWbXeTtPGfukvhUxZBp0M5447+2SFiQW674ySiGSRHgyqcqU0x39tbz3afnWt5BKNHDYj1lzq6sg8dcJlJnSQDUEba4npgEoAqVUkksoqM0UUO3VXDo3Mablwd2GLAoXjgK071swbuWhQJ2AjGYsBx5dtOMYCyPVh+K3jxqA+IuAhTrc+3KVqmDuVmIO5TZmQbDr4vUV+0338fXQ3665PiYnII1REb2klWhUcwjqi/pMe4yYZaDbo9T1ougUKE5h1jUim2NZxM71zBZVa/tWam6wXlmFVVHGuvL76pT3PUGufbO9YwevQzCvXhsabRuJyJjz8A1Haftmewy4gZ0FWlMIO5BoXB49j0TeIiikaxP9ZHcD9oI6x2H4DajNt5WgRXj6/H72V+gj2bgMDVkIZ36j1Tl+wdO6fvFsz56a5V6t9lS+gyWSOvuQP9bqtYgqWlsthXSFkrTfNqni6jSQ5vN9Fp1iYJODbUg8Sg0lYLbNEM7oqvrggxzq13IfO9hGQ0MQVpMIAR0aSGMFWOZzpJmXG1IcjppdZkINTYN2UvrHmGUrVBHvRuueFPuy2GzQoSnMCvkT3WvaR/LoVYw7Voy47wdJee2Va623AFXWNINOpByyoc9SQU4vPQ6X0PMBLQs6GdMlx+RlC3VoMDOryeFFolCTD8B+A/A4AAANKbW9vdgAAAGxtdmhkAAAAANcxfvfXMX73AACsRAAADbEAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAdx0cmFrAAAAXHRraGQAAAAB1zF+99cxfvcAAAABAAAAAAAADbEAAAAAAAAAAAAAAAABAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAF4bWRpYQAAACBtZGhkAAAAANcxfvfXMX73AACsRAAAGABVxAAAAAAAMWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABDb3JlIE1lZGlhIEF1ZGlvAAAAAR9taW5mAAAAEHNtaGQAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAONzdGJsAAAAZ3N0c2QAAAAAAAAAAQAAAFdtcDRhAAAAAAAAAAEAAAAAAAAAAAACABAAAAAArEQAAAAAADNlc2RzAAAAAAOAgIAiAAAABICAgBRAFQAYAAAB9AAAAfQABYCAgAISEAaAgIABAgAAABhzdHRzAAAAAAAAAAEAAAAGAAAEAAAAABxzdHNjAAAAAAAAAAEAAAABAAAABgAAAAEAAAAsc3RzegAAAAAAAAAAAAAABgAAAP4AAAF+AAABjwAAAYQAAAFeAAABegAAABRzdGNvAAAAAAAAAAEAAAAsAAAA+nVkdGEAAADybWV0YQAAAAAAAAAiaGRscgAAAAAAAAAAbWRpcgAAAAAAAAAAAAAAAAAAAAAAxGlsc3QAAAC8LS0tLQAAABxtZWFuAAAAAGNvbS5hcHBsZS5pVHVuZXMAAAAUbmFtZQAAAABpVHVuU01QQgAAAIRkYXRhAAAAAQAAAAAgMDAwMDAwMDAgMDAwMDA4NDAgMDAwMDAyMEYgMDAwMDAwMDAwMDAwMERCMSAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMA=="},function(t,e,n){"use strict";n.r(e),e.default="data:audio/mp4;base64,AAAAHGZ0eXBNNEEgAAACAE00QSBpc29taXNvMgAAAAhmcmVlAAASCG1kYXQBQCKAo3/4hS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS7/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd+aIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwBQCKAo3/4hS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS7/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd+aIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwA6jQEQfEIQGIQaqctMIv9EpiYforpaDbT80WfPFRSswKfd8cy6kN/+IUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0u//EKWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaXfViFLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwA6jQQpRY6EYNCcKDAqAAEUgC2wFy0kF7JTgecsqIp6pxd/lHO7kUuSCLFK6n2mPOKfj5aKhQPOaRtBEKFS85eIYbr71AGaAPJTSIHeIhXTcpA5i155UICz3nXk0Cz0A8QhxIhoqQIJ2Be9MIEiJ6GpuMa1fPXcJmIoxDUKpZuJozBa6iFmjy7O/genSlwPKL6xaiiL8Y1XtgBDY7ke/CAOoawOqmZm6suSVQPbxzaxZJpWFcWva4RqTil72HqDpc2N4eG3KA0JkU8G58RNabxVq9gSLwysPKIzL1fZVF1FQwllEs4YUKpPtoMw2VtepdbZHqGriAsZ5Lu154uiewW41szI4RHfpWOWSH7s1LAzlv/xClpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWl36AhS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0vAA6jQEYVEIDEQDEKCAYhAIXMdbaI5q82OvhmYS1FO11cD3Yt4EwZI+aTsqoctJJaN0FKvNqorQmK3SUWpNOtf+uKNIxX3xeTEq8LKb/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd/+IUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0u+GEKWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpeABMDQD6WqsfRABwAUSib4c3/4hS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS7/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd+EIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS8AAAO4bW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAAAD6AAAAfgAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAiJ0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAABAAAAAAAAAfgAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAH4AAAIAAABAAAAAAGabWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAAfQAAAF8BVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAABRW1pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAABCXN0YmwAAABnc3RzZAAAAAAAAAABAAAAV21wNGEAAAAAAAAAAQAAAAAAAAAAAAEAEAAAAAAfQAAAAAAAM2VzZHMAAAAAA4CAgCIAAQAEgICAFEAVAAAAAAH0AAAAvXkFgICAAhWIBoCAgAECAAAAIHN0dHMAAAAAAAAAAgAAAAUAAAQAAAAAAQAAA8AAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAYAAAABAAAAFHN0c3oAAAAAAAADAAAAAAYAAAAUc3RjbwAAAAAAAAABAAAALAAAABpzZ3BkAQAAAHJvbGwAAAACAAAAAf//AAAAHHNiZ3AAAAAAcm9sbAAAAAEAAAAGAAAAAQAAASJ1ZHRhAAABGm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAA7Wlsc3QAAAAzqW5hbQAAACtkYXRhAAAAAQAAAAAyNTAgTWlsbGlzZWNvbmRzIG9mIFNpbGVuY2UAAAApqUFSVAAAACFkYXRhAAAAAQAAAABBbmFyIFNvZnR3YXJlIExMQwAAAClhQVJUAAAAIWRhdGEAAAABAAAAAEFuYXIgU29mdHdhcmUgTExDAAAAI6lhbGIAAAAbZGF0YQAAAAEAAAAAQmxhbmsgQXVkaW8AAAAkqXRvbwAAABxkYXRhAAAAAQAAAABMYXZmNjAuMy4xMDAAAAAZY3BpbAAAABFkYXRhAAAAFQAAAAAA"},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const r=o(n(1)),i=o(n(27)).default.svg`
3
3
  animation: rotate 2s linear infinite;
4
4
  width: 50px;
5
5
  height: 50px;